@imtbl/sdk 0.27.11 → 0.27.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3889,16 +3889,16 @@ type blockchain_data_d_BlockchainDataModuleConfiguration = BlockchainDataModuleC
3889
3889
  declare namespace blockchain_data_d {
3890
3890
  export {
3891
3891
  APIError$1 as APIError,
3892
- activitiesApiTypes_d as ActivitiesApi,
3892
+ activitiesApiTypes_d as ActivitiesTypes,
3893
3893
  blockchain_data_d_ActivityType as ActivityType,
3894
3894
  blockchain_data_d_BlockchainData as BlockchainData,
3895
3895
  blockchain_data_d_BlockchainDataModuleConfiguration as BlockchainDataModuleConfiguration,
3896
- chainsApiTypes_d as ChainsApi,
3897
- collectionsApiTypes_d as CollectionsApi,
3898
- metadataApiTypes_d as MetadataApi,
3899
- nftOwnersApiTypes_d as NFTOwnersApi,
3900
- nftsApiTypes_d as NFTsApi,
3901
- tokensApiTypes_d as TokensApi,
3896
+ chainsApiTypes_d as ChainsTypes,
3897
+ collectionsApiTypes_d as CollectionsTypes,
3898
+ metadataApiTypes_d as MetadataTypes,
3899
+ nftOwnersApiTypes_d as NFTOwnersTypes,
3900
+ nftsApiTypes_d as NFTsTypes,
3901
+ tokensApiTypes_d as TokensTypes,
3902
3902
  };
3903
3903
  }
3904
3904
 
@@ -15172,30 +15172,42 @@ type CancelOrdersRequestBody = {
15172
15172
  signature: string;
15173
15173
  };
15174
15174
 
15175
+ type FailedOrderCancellation = {
15176
+ /**
15177
+ * ID of the order which failed to be cancelled
15178
+ */
15179
+ order: string;
15180
+ /**
15181
+ * Reason code indicating why the order failed to be cancelled
15182
+ */
15183
+ reason_code: FailedOrderCancellation.reason_code;
15184
+ };
15185
+ declare namespace FailedOrderCancellation {
15186
+ /**
15187
+ * Reason code indicating why the order failed to be cancelled
15188
+ */
15189
+ enum reason_code {
15190
+ ALREADY_FILLED = "ALREADY_FILLED"
15191
+ }
15192
+ }
15193
+
15194
+ type CancelOrdersResultData = {
15195
+ /**
15196
+ * Orders which were successfully cancelled
15197
+ */
15198
+ successful_cancellations: Array<string>;
15199
+ /**
15200
+ * Orders which are marked for cancellation but the cancellation cannot be guaranteed
15201
+ */
15202
+ pending_cancellations: Array<string>;
15203
+ /**
15204
+ * Orders which failed to be cancelled
15205
+ */
15206
+ failed_cancellations: Array<FailedOrderCancellation>;
15207
+ };
15208
+
15175
15209
  type CancelOrdersResult = {
15176
- result: {
15177
- /**
15178
- * Orders which were successfully cancelled
15179
- */
15180
- successful_cancellations: Array<string>;
15181
- /**
15182
- * Orders which are marked for cancellation but the cancellation cannot be guaranteed
15183
- */
15184
- pending_cancellations: Array<string>;
15185
- /**
15186
- * Orders which failed to be cancelled
15187
- */
15188
- failed_cancellations: Array<{
15189
- /**
15190
- * ID of the order which failed to be cancelled
15191
- */
15192
- order: string;
15193
- /**
15194
- * Reason code indicating why the order failed to be cancelled
15195
- */
15196
- reason_code: 'ALREADY_FILLED';
15197
- }>;
15198
- };
15210
+ result: CancelOrdersResultData;
15199
15211
  };
15200
15212
 
15201
15213
  /**
@@ -15590,7 +15602,7 @@ declare class OrdersService {
15590
15602
  * @returns ListListingsResult OK response.
15591
15603
  * @throws ApiError
15592
15604
  */
15593
- listListings({ chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, }: {
15605
+ listListings({ chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }: {
15594
15606
  chainName: ChainName$1;
15595
15607
  /**
15596
15608
  * Order status to filter by
@@ -15608,6 +15620,10 @@ declare class OrdersService {
15608
15620
  * Sell item token identifier to filter by
15609
15621
  */
15610
15622
  sellItemTokenId?: string;
15623
+ /**
15624
+ * From updated at including given date
15625
+ */
15626
+ fromUpdatedAt?: string;
15611
15627
  /**
15612
15628
  * Maximum number of orders to return per page
15613
15629
  */
@@ -15669,9 +15685,13 @@ declare class OrdersService {
15669
15685
  * @returns ListTradeResult OK response.
15670
15686
  * @throws ApiError
15671
15687
  */
15672
- listTrades({ chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, }: {
15688
+ listTrades({ chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, }: {
15673
15689
  chainName: ChainName$1;
15674
15690
  accountAddress?: string;
15691
+ /**
15692
+ * From indexed at including given date
15693
+ */
15694
+ fromIndexedAt?: string;
15675
15695
  /**
15676
15696
  * Maximum number of trades to return per page
15677
15697
  */
@@ -16386,7 +16406,7 @@ type ERC20BuyToken = {
16386
16406
  contractAddress: string;
16387
16407
  };
16388
16408
  /**
16389
- * Interface of the SellToken
16409
+ * The SellToken type
16390
16410
  * @property {string} id - The ERC721 token id
16391
16411
  * @property {string} collectionAddress - The ERC721 collection address
16392
16412
  */
@@ -16717,9 +16737,9 @@ type UserBalance = {
16717
16737
  * Represents the transaction requirement for a transaction.
16718
16738
  * @property {ItemType} type - The type of the transaction requirement.
16719
16739
  * @property {boolean} sufficient - If the user address has sufficient funds to cover the transaction.
16720
- * @property {TransactionRequirementItem} required - The required item balance.
16721
- * @property {TransactionRequirementItem} current - The current item balance.
16722
- * @property {TransactionRequirementDelta} delta - The delta between the required and current balances.
16740
+ * @property {ItemBalance} required - The required item balance.
16741
+ * @property {ItemBalance} current - The current item balance.
16742
+ * @property {BalanceDelta} delta - The delta between the required and current balances.
16723
16743
  */
16724
16744
  type TransactionRequirement = {
16725
16745
  type: ItemType;
@@ -16730,6 +16750,7 @@ type TransactionRequirement = {
16730
16750
  };
16731
16751
  /**
16732
16752
  * Represents the balance for either a native or ERC20 token.
16753
+ * @property {ItemType.NATIVE | ItemType.ERC20} type - Type to indicate this is a native or ERC20 token.
16733
16754
  * @property {BigNumber} balance - The balance of the item.
16734
16755
  * @property {string} formattedBalance - The formatted balance of the item.
16735
16756
  * @property {TokenInfo} token - The token info of the item.
@@ -16741,18 +16762,20 @@ type TokenBalance = {
16741
16762
  token: TokenInfo;
16742
16763
  };
16743
16764
  /**
16744
- * Represents the balance for an ERC20.
16765
+ * Represents the balance for an ERC721.
16766
+ * @property {ItemType.ERC721} type - Type to indicate this is an ERC721 token.
16745
16767
  * @property {BigNumber} balance - The balance of the item.
16746
16768
  * @property {string} formattedBalance - The formatted balance of the item.
16747
- * @property {TokenInfo} token - The token info of the item.
16769
+ * @property {string} contractAddress - The contract address of the ERC721 collection.
16770
+ * @property {string} id - The ID of the ERC721 in the collection.
16748
16771
  */
16749
- interface ERC721Balance {
16772
+ type ERC721Balance = {
16750
16773
  type: ItemType.ERC721;
16751
16774
  balance: BigNumber;
16752
16775
  formattedBalance: string;
16753
16776
  contractAddress: string;
16754
16777
  id: string;
16755
- }
16778
+ };
16756
16779
  /**
16757
16780
  * Type representing the balance of an item.
16758
16781
  */
@@ -16769,6 +16792,9 @@ type BalanceDelta = {
16769
16792
  /**
16770
16793
  * A type representing the Smart Checkout routing options available for a user
16771
16794
  * if they are configured and enabled (not geo-blocked etc.)
16795
+ * @property {boolean | undefined} onRamp - If the user can use onramp
16796
+ * @property {boolean | undefined} swap - If the user can use swap
16797
+ * @property {boolean | undefined} bridge - If the user can use bridge
16772
16798
  */
16773
16799
  type AvailableRoutingOptions = {
16774
16800
  onRamp?: boolean;
@@ -17291,7 +17317,8 @@ declare enum CheckoutErrorType {
17291
17317
  BRIDGE_GAS_ESTIMATE_ERROR = "BRIDGE_GAS_ESTIMATE_ERROR",
17292
17318
  ORDER_FEE_ERROR = "ORDER_FEE_ERROR",
17293
17319
  ITEM_REQUIREMENTS_ERROR = "ITEM_REQUIREMENTS_ERROR",
17294
- API_ERROR = "API_ERROR"
17320
+ API_ERROR = "API_ERROR",
17321
+ ORDER_EXPIRED_ERROR = "ORDER_EXPIRED_ERROR"
17295
17322
  }
17296
17323
  /**
17297
17324
  * Represents an error object with a specific type, optional message, and optional data.