Skip to content

Commit

Permalink
revert removing nullable fields from specs as it breaks typescript sdk.
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPawelec-RDX committed Dec 10, 2024
1 parent a335eb2 commit 8923604
Show file tree
Hide file tree
Showing 94 changed files with 159 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface AccountAuthorizedDepositorsCollection {
* @type {string}
* @memberof AccountAuthorizedDepositorsCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<AccountAuthorizedDepositorsResponseItem>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface AccountLockerVaultCollection {
* @type {string}
* @memberof AccountLockerVaultCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<AccountLockerVaultCollectionItem>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface AccountResourcePreferencesCollection {
* @type {string}
* @memberof AccountResourcePreferencesCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<AccountResourcePreferencesResponseItem>}
Expand Down
2 changes: 1 addition & 1 deletion sdk/typescript/lib/generated/models/AtLedgerStateMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface AtLedgerStateMixin {
* @type {LedgerStateSelector}
* @memberof AtLedgerStateMixin
*/
at_ledger_state?: LedgerStateSelector;
at_ledger_state?: LedgerStateSelector | null;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export interface CommittedTransactionInfo {
* @type {string}
* @memberof CommittedTransactionInfo
*/
error_message?: string;
error_message?: string | null;
/**
* Hex-encoded binary blob.
* @type {string}
Expand Down Expand Up @@ -158,7 +158,7 @@ This type is defined in the Core API as `TransactionMessage`. See the Core API d
* @type {TransactionBalanceChanges}
* @memberof CommittedTransactionInfo
*/
balance_changes?: TransactionBalanceChanges;
balance_changes?: TransactionBalanceChanges | null;
/**
* Subintent details.
Please note that it is returned regardless of whether the transaction was committed successfully or failed, and it can be returned in multiple transactions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ import {
} from './RoleAssignmentResolution';

/**
*
* Resolving the rule for this role:
If the resolution is Explicit, the rule can be read off the `explicit_rule` property on this object.
If the resolution is Owner, the rule can be read off `role_assignments.owner.rule `off the role assignments object two levels up.
* @export
* @interface ComponentEntityRoleAssignmentEntryAssignmentBase
*/
Expand Down
2 changes: 1 addition & 1 deletion sdk/typescript/lib/generated/models/CursorLimitMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface CursorLimitMixin {
* @type {string}
* @memberof CursorLimitMixin
*/
cursor?: string;
cursor?: string | null;
/**
* The page size requested.
* @type {number}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface EntityMetadataCollection {
* @type {string}
* @memberof EntityMetadataCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<EntityMetadataItem>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface EntitySchemaCollection {
* @type {string}
* @memberof EntitySchemaCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<EntitySchemaCollectionItem>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface FromLedgerStateMixin {
* @type {LedgerStateSelector}
* @memberof FromLedgerStateMixin
*/
from_ledger_state?: LedgerStateSelector;
from_ledger_state?: LedgerStateSelector | null;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface FungibleResourcesCollection {
* @type {string}
* @memberof FungibleResourcesCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<FungibleResourcesCollectionItem>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface FungibleResourcesCollectionItemVaultAggregatedVault {
* @type {string}
* @memberof FungibleResourcesCollectionItemVaultAggregatedVault
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<FungibleResourcesCollectionItemVaultAggregatedVaultItem>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface NonFungibleIdsCollection {
* @type {string}
* @memberof NonFungibleIdsCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<string>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface NonFungibleResourcesCollection {
* @type {string}
* @memberof NonFungibleResourcesCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<NonFungibleResourcesCollectionItem>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface NonFungibleResourcesCollectionItemVaultAggregatedVault {
* @type {string}
* @memberof NonFungibleResourcesCollectionItemVaultAggregatedVault
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<NonFungibleResourcesCollectionItemVaultAggregatedVaultItem>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface NonFungibleResourcesCollectionItemVaultAggregatedVaultItem {
* @type {string}
* @memberof NonFungibleResourcesCollectionItemVaultAggregatedVaultItem
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<string>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface OptionalNonFungibleIdsCollection {
* @type {string}
* @memberof OptionalNonFungibleIdsCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<string>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface PackageBlueprintCollection {
* @type {string}
* @memberof PackageBlueprintCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<PackageBlueprintCollectionItem>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface PackageCodeCollection {
* @type {string}
* @memberof PackageCodeCollection
*/
next_cursor?: string;
next_cursor?: string | null;
/**
*
* @type {Array<PackageCodeCollectionItem>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueArray
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -55,7 +55,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueArray
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {ProgrammaticScryptoSborValueKind}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueBase
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -80,7 +80,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueBase
*/
field_name?: string;
field_name?: string | null;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueBool
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -42,7 +42,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueBool
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {boolean}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueBytes
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -49,7 +49,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueBytes
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {ProgrammaticScryptoSborValueKind}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueDecimal
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -42,7 +42,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueDecimal
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueEnum
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -49,7 +49,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueEnum
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueI128
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -42,7 +42,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueI128
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueI16
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -42,7 +42,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueI16
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueI32
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -42,7 +42,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueI32
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueI64
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -42,7 +42,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueI64
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueI8
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -42,7 +42,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueI8
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueMap
*/
type_name?: string;
type_name?: string | null;
/**
* The name of the field which hosts this value.
This property is only included if this value is a child of a `Tuple` or `Enum` with named fields.
Expand All @@ -55,7 +55,7 @@ This property is ignored when the value is used as an input to the API.
* @type {string}
* @memberof ProgrammaticScryptoSborValueMap
*/
field_name?: string;
field_name?: string | null;
/**
*
* @type {ProgrammaticScryptoSborValueKind}
Expand Down
Loading

0 comments on commit 8923604

Please sign in to comment.