@imtbl/sdk 0.24.1 → 0.26.0

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
@@ -1159,6 +1159,124 @@ interface NFTMetadataAttribute {
1159
1159
  'value': NFTMetadataAttributeValue;
1160
1160
  }
1161
1161
 
1162
+ /**
1163
+ * Immutable zkEVM API
1164
+ * Immutable Multi Rollup API
1165
+ *
1166
+ * The version of the OpenAPI document: 1.0.0
1167
+ * Contact: support@immutable.com
1168
+ *
1169
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1170
+ * https://openapi-generator.tech
1171
+ * Do not edit the class manually.
1172
+ */
1173
+
1174
+ /**
1175
+ *
1176
+ * @export
1177
+ * @interface Metadata
1178
+ */
1179
+ interface Metadata {
1180
+ /**
1181
+ * Metadata ID in UUIDv4 format
1182
+ * @type {string}
1183
+ * @memberof Metadata
1184
+ */
1185
+ 'id': string;
1186
+ /**
1187
+ *
1188
+ * @type {Chain}
1189
+ * @memberof Metadata
1190
+ */
1191
+ 'chain': Chain$1;
1192
+ /**
1193
+ * The contract address of the metadata
1194
+ * @type {string}
1195
+ * @memberof Metadata
1196
+ */
1197
+ 'contract_address': string;
1198
+ /**
1199
+ * When the metadata was created
1200
+ * @type {string}
1201
+ * @memberof Metadata
1202
+ */
1203
+ 'created_at': string;
1204
+ /**
1205
+ * When the metadata was last updated
1206
+ * @type {string}
1207
+ * @memberof Metadata
1208
+ */
1209
+ 'updated_at': string | null;
1210
+ /**
1211
+ * The name of the NFT
1212
+ * @type {string}
1213
+ * @memberof Metadata
1214
+ */
1215
+ 'name': string | null;
1216
+ /**
1217
+ * The description of the NFT
1218
+ * @type {string}
1219
+ * @memberof Metadata
1220
+ */
1221
+ 'description': string | null;
1222
+ /**
1223
+ * The image url of the NFT
1224
+ * @type {string}
1225
+ * @memberof Metadata
1226
+ */
1227
+ 'image': string | null;
1228
+ /**
1229
+ * The external website link of NFT
1230
+ * @type {string}
1231
+ * @memberof Metadata
1232
+ */
1233
+ 'external_url'?: string | null;
1234
+ /**
1235
+ * The animation url of the NFT
1236
+ * @type {string}
1237
+ * @memberof Metadata
1238
+ */
1239
+ 'animation_url': string | null;
1240
+ /**
1241
+ * The youtube URL of NFT
1242
+ * @type {string}
1243
+ * @memberof Metadata
1244
+ */
1245
+ 'youtube_url': string | null;
1246
+ /**
1247
+ * List of Metadata attributes
1248
+ * @type {Array<NFTMetadataAttribute>}
1249
+ * @memberof Metadata
1250
+ */
1251
+ 'attributes': Array<NFTMetadataAttribute> | null;
1252
+ }
1253
+
1254
+ /**
1255
+ * Immutable zkEVM API
1256
+ * Immutable Multi Rollup API
1257
+ *
1258
+ * The version of the OpenAPI document: 1.0.0
1259
+ * Contact: support@immutable.com
1260
+ *
1261
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1262
+ * https://openapi-generator.tech
1263
+ * Do not edit the class manually.
1264
+ */
1265
+
1266
+ /**
1267
+ * Single metadata
1268
+ * @export
1269
+ * @interface GetMetadataResult
1270
+ */
1271
+ interface GetMetadataResult {
1272
+ /**
1273
+ *
1274
+ * @type {Metadata}
1275
+ * @memberof GetMetadataResult
1276
+ */
1277
+ 'result': Metadata;
1278
+ }
1279
+
1162
1280
  /**
1163
1281
  * Immutable zkEVM API
1164
1282
  * Immutable Multi Rollup API
@@ -1201,6 +1319,12 @@ interface NFT {
1201
1319
  * @memberof NFT
1202
1320
  */
1203
1321
  'indexed_at': string;
1322
+ /**
1323
+ * When the NFT owner was last updated
1324
+ * @type {string}
1325
+ * @memberof NFT
1326
+ */
1327
+ 'updated_at': string;
1204
1328
  /**
1205
1329
  * When NFT metadata was last synced
1206
1330
  * @type {string}
@@ -1388,6 +1512,12 @@ interface Token$1 {
1388
1512
  * @memberof Token
1389
1513
  */
1390
1514
  'name': string | null;
1515
+ /**
1516
+ * When the collection was last updated
1517
+ * @type {string}
1518
+ * @memberof Token
1519
+ */
1520
+ 'updated_at': string;
1391
1521
  }
1392
1522
 
1393
1523
  /**
@@ -1543,6 +1673,38 @@ interface ListCollectionsResult {
1543
1673
  'page': Page$2;
1544
1674
  }
1545
1675
 
1676
+ /**
1677
+ * Immutable zkEVM API
1678
+ * Immutable Multi Rollup API
1679
+ *
1680
+ * The version of the OpenAPI document: 1.0.0
1681
+ * Contact: support@immutable.com
1682
+ *
1683
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1684
+ * https://openapi-generator.tech
1685
+ * Do not edit the class manually.
1686
+ */
1687
+
1688
+ /**
1689
+ *
1690
+ * @export
1691
+ * @interface ListMetadataResult
1692
+ */
1693
+ interface ListMetadataResult {
1694
+ /**
1695
+ * List of metadata
1696
+ * @type {Array<Metadata>}
1697
+ * @memberof ListMetadataResult
1698
+ */
1699
+ 'result': Array<Metadata>;
1700
+ /**
1701
+ *
1702
+ * @type {Page}
1703
+ * @memberof ListMetadataResult
1704
+ */
1705
+ 'page': Page$2;
1706
+ }
1707
+
1546
1708
  /**
1547
1709
  * Immutable zkEVM API
1548
1710
  * Immutable Multi Rollup API
@@ -1591,6 +1753,12 @@ interface NFTOwner {
1591
1753
  * @memberof NFTOwner
1592
1754
  */
1593
1755
  'quantity': string;
1756
+ /**
1757
+ * When the NFT owner was last updated
1758
+ * @type {string}
1759
+ * @memberof NFTOwner
1760
+ */
1761
+ 'updated_at'?: string;
1594
1762
  }
1595
1763
 
1596
1764
  /**
@@ -2134,6 +2302,12 @@ interface CollectionsApiListCollectionsRequest$1 {
2134
2302
  * @memberof CollectionsApiListCollections
2135
2303
  */
2136
2304
  readonly chainName: string;
2305
+ /**
2306
+ * Datetime to use as the oldest updated timestamp
2307
+ * @type {string}
2308
+ * @memberof CollectionsApiListCollections
2309
+ */
2310
+ readonly fromUpdatedAt?: string;
2137
2311
  /**
2138
2312
  * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2139
2313
  * @type {string}
@@ -2204,6 +2378,68 @@ interface CollectionsApiRefreshCollectionMetadataRequest {
2204
2378
  readonly refreshCollectionMetadataRequest: RefreshCollectionMetadataRequest;
2205
2379
  }
2206
2380
 
2381
+ /**
2382
+ * Request parameters for getMetadata operation in MetadataApi.
2383
+ * @export
2384
+ * @interface MetadataApiGetMetadataRequest
2385
+ */
2386
+ interface MetadataApiGetMetadataRequest {
2387
+ /**
2388
+ * The name of chain
2389
+ * @type {string}
2390
+ * @memberof MetadataApiGetMetadata
2391
+ */
2392
+ readonly chainName: string;
2393
+ /**
2394
+ * The address of metadata contract
2395
+ * @type {string}
2396
+ * @memberof MetadataApiGetMetadata
2397
+ */
2398
+ readonly contractAddress: string;
2399
+ /**
2400
+ * The id of the metadata
2401
+ * @type {string}
2402
+ * @memberof MetadataApiGetMetadata
2403
+ */
2404
+ readonly metadataId: string;
2405
+ }
2406
+ /**
2407
+ * Request parameters for listMetadata operation in MetadataApi.
2408
+ * @export
2409
+ * @interface MetadataApiListMetadataRequest
2410
+ */
2411
+ interface MetadataApiListMetadataRequest {
2412
+ /**
2413
+ * The name of chain
2414
+ * @type {string}
2415
+ * @memberof MetadataApiListMetadata
2416
+ */
2417
+ readonly chainName: string;
2418
+ /**
2419
+ * The address of metadata contract
2420
+ * @type {string}
2421
+ * @memberof MetadataApiListMetadata
2422
+ */
2423
+ readonly contractAddress: string;
2424
+ /**
2425
+ * Datetime to use as the oldest updated timestamp
2426
+ * @type {string}
2427
+ * @memberof MetadataApiListMetadata
2428
+ */
2429
+ readonly fromUpdatedAt?: string;
2430
+ /**
2431
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2432
+ * @type {string}
2433
+ * @memberof MetadataApiListMetadata
2434
+ */
2435
+ readonly pageCursor?: string;
2436
+ /**
2437
+ * Maximum number of items to return
2438
+ * @type {number}
2439
+ * @memberof MetadataApiListMetadata
2440
+ */
2441
+ readonly pageSize?: number;
2442
+ }
2207
2443
  /**
2208
2444
  * Request parameters for refreshMetadataByID operation in MetadataApi.
2209
2445
  * @export
@@ -2292,6 +2528,43 @@ interface NftOwnersApiListNFTOwnersRequest {
2292
2528
  */
2293
2529
  readonly pageSize?: number;
2294
2530
  }
2531
+ /**
2532
+ * Request parameters for listOwnersByContractAddress operation in NftOwnersApi.
2533
+ * @export
2534
+ * @interface NftOwnersApiListOwnersByContractAddressRequest
2535
+ */
2536
+ interface NftOwnersApiListOwnersByContractAddressRequest {
2537
+ /**
2538
+ * The address of contract
2539
+ * @type {string}
2540
+ * @memberof NftOwnersApiListOwnersByContractAddress
2541
+ */
2542
+ readonly contractAddress: string;
2543
+ /**
2544
+ * The name of chain
2545
+ * @type {string}
2546
+ * @memberof NftOwnersApiListOwnersByContractAddress
2547
+ */
2548
+ readonly chainName: string;
2549
+ /**
2550
+ * Datetime to use as the oldest updated timestamp
2551
+ * @type {string}
2552
+ * @memberof NftOwnersApiListOwnersByContractAddress
2553
+ */
2554
+ readonly fromUpdatedAt?: string;
2555
+ /**
2556
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2557
+ * @type {string}
2558
+ * @memberof NftOwnersApiListOwnersByContractAddress
2559
+ */
2560
+ readonly pageCursor?: string;
2561
+ /**
2562
+ * Maximum number of items to return
2563
+ * @type {number}
2564
+ * @memberof NftOwnersApiListOwnersByContractAddress
2565
+ */
2566
+ readonly pageSize?: number;
2567
+ }
2295
2568
 
2296
2569
  /**
2297
2570
  * Request parameters for getNFT operation in NftsApi.
@@ -2318,6 +2591,68 @@ interface NftsApiGetNFTRequest {
2318
2591
  */
2319
2592
  readonly chainName: string;
2320
2593
  }
2594
+ /**
2595
+ * Request parameters for listAllNFTOwners operation in NftsApi.
2596
+ * @export
2597
+ * @interface NftsApiListAllNFTOwnersRequest
2598
+ */
2599
+ interface NftsApiListAllNFTOwnersRequest {
2600
+ /**
2601
+ * The name of chain
2602
+ * @type {string}
2603
+ * @memberof NftsApiListAllNFTOwners
2604
+ */
2605
+ readonly chainName: string;
2606
+ /**
2607
+ * Datetime to use as the oldest updated timestamp
2608
+ * @type {string}
2609
+ * @memberof NftsApiListAllNFTOwners
2610
+ */
2611
+ readonly fromUpdatedAt: string;
2612
+ /**
2613
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2614
+ * @type {string}
2615
+ * @memberof NftsApiListAllNFTOwners
2616
+ */
2617
+ readonly pageCursor?: string;
2618
+ /**
2619
+ * Maximum number of items to return
2620
+ * @type {number}
2621
+ * @memberof NftsApiListAllNFTOwners
2622
+ */
2623
+ readonly pageSize?: number;
2624
+ }
2625
+ /**
2626
+ * Request parameters for listAllNFTs operation in NftsApi.
2627
+ * @export
2628
+ * @interface NftsApiListAllNFTsRequest
2629
+ */
2630
+ interface NftsApiListAllNFTsRequest {
2631
+ /**
2632
+ * The name of chain
2633
+ * @type {string}
2634
+ * @memberof NftsApiListAllNFTs
2635
+ */
2636
+ readonly chainName: string;
2637
+ /**
2638
+ * Datetime to use as the oldest updated timestamp
2639
+ * @type {string}
2640
+ * @memberof NftsApiListAllNFTs
2641
+ */
2642
+ readonly fromUpdatedAt?: string;
2643
+ /**
2644
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2645
+ * @type {string}
2646
+ * @memberof NftsApiListAllNFTs
2647
+ */
2648
+ readonly pageCursor?: string;
2649
+ /**
2650
+ * Maximum number of items to return
2651
+ * @type {number}
2652
+ * @memberof NftsApiListAllNFTs
2653
+ */
2654
+ readonly pageSize?: number;
2655
+ }
2321
2656
  /**
2322
2657
  * Request parameters for listNFTs operation in NftsApi.
2323
2658
  * @export
@@ -2336,6 +2671,12 @@ interface NftsApiListNFTsRequest {
2336
2671
  * @memberof NftsApiListNFTs
2337
2672
  */
2338
2673
  readonly chainName: string;
2674
+ /**
2675
+ * Datetime to use as the oldest updated timestamp
2676
+ * @type {string}
2677
+ * @memberof NftsApiListNFTs
2678
+ */
2679
+ readonly fromUpdatedAt?: string;
2339
2680
  /**
2340
2681
  * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2341
2682
  * @type {string}
@@ -2418,6 +2759,12 @@ interface TokensApiListERC20TokensRequest {
2418
2759
  * @memberof TokensApiListERC20Tokens
2419
2760
  */
2420
2761
  readonly chainName: string;
2762
+ /**
2763
+ * Datetime to use as the oldest updated timestamp
2764
+ * @type {string}
2765
+ * @memberof TokensApiListERC20Tokens
2766
+ */
2767
+ readonly fromUpdatedAt?: string;
2421
2768
  /**
2422
2769
  * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2423
2770
  * @type {string}
@@ -2537,6 +2884,13 @@ declare class BlockchainData {
2537
2884
  * @throws {@link index.APIError}
2538
2885
  */
2539
2886
  listNFTsByAccountAddress(request: NftsApiListNFTsByAccountAddressRequest): Promise<ListNFTsResult>;
2887
+ /**
2888
+ * List All NFTs on a chain
2889
+ * @param request - the request object containing the parameters to be provided in the API request
2890
+ * @returns a promise that resolves with a list of NFTs
2891
+ * @throws {@link index.APIError}
2892
+ */
2893
+ listAllNFTs(request: NftsApiListAllNFTsRequest): Promise<ListNFTsResult>;
2540
2894
  /**
2541
2895
  * List NFT owners by token ID
2542
2896
  * @param request - the request object containing the parameters to be provided in the API request
@@ -2544,6 +2898,20 @@ declare class BlockchainData {
2544
2898
  * @throws {@link index.APIError}
2545
2899
  */
2546
2900
  listNFTOwners(request: NftOwnersApiListNFTOwnersRequest): Promise<ListNFTOwnersResult>;
2901
+ /**
2902
+ * List NFT owners by contract address
2903
+ * @param request - the request object containing the parameters to be provided in the API request
2904
+ * @returns a promise that resolves with a list of NFT owners
2905
+ * @throws {@link index.APIError}
2906
+ */
2907
+ listNFTOwnersByContractAddress(request: NftOwnersApiListOwnersByContractAddressRequest): Promise<ListNFTOwnersResult>;
2908
+ /**
2909
+ * List All NFT owners on a chain
2910
+ * @param request - the request object containing the parameters to be provided in the API request
2911
+ * @returns a promise that resolves with a list of NFT owners
2912
+ * @throws {@link index.APIError}
2913
+ */
2914
+ listAllNFTOwners(request: NftsApiListAllNFTOwnersRequest): Promise<ListNFTOwnersResult>;
2547
2915
  /**
2548
2916
  * List ERC20 Token contracts
2549
2917
  * @param request - the request object containing the parameters to be provided in the API request
@@ -2558,6 +2926,20 @@ declare class BlockchainData {
2558
2926
  * @throws {@link index.APIError}
2559
2927
  */
2560
2928
  getToken(request: TokensApiGetERC20TokenRequest): Promise<GetTokenResult>;
2929
+ /**
2930
+ * Get metadata by ID
2931
+ * @param request - the request object containing the parameters to be provided in the API request
2932
+ * @returns a promise that resolves with a single Metadata
2933
+ * @throws {@link index.APIError}
2934
+ */
2935
+ getMetadata(request: MetadataApiGetMetadataRequest): Promise<GetMetadataResult>;
2936
+ /**
2937
+ * List NFT Metadata by contract address
2938
+ * @param request - the request object containing the parameters to be provided in the API request
2939
+ * @returns a promise that resolves with a list of Metadata
2940
+ * @throws {@link index.APIError}
2941
+ */
2942
+ listNFTMetadataByContractAddress(request: MetadataApiListMetadataRequest): Promise<ListMetadataResult>;
2561
2943
  /**
2562
2944
  * Refresh collection metadata
2563
2945
  * @param request - the request object containing the parameters to be provided in the API request
@@ -13850,6 +14232,47 @@ declare abstract class BaseHttpRequest {
13850
14232
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
13851
14233
  }
13852
14234
 
14235
+ type CancelOrdersRequestBody = {
14236
+ /**
14237
+ * Address of the user initiating the cancel request
14238
+ */
14239
+ account_address: string;
14240
+ /**
14241
+ * List of order ids proposed for cancellation
14242
+ */
14243
+ orders: Array<string>;
14244
+ /**
14245
+ * Signature generated by the user for the specific cancellation request
14246
+ */
14247
+ signature: string;
14248
+ };
14249
+
14250
+ type CancelOrdersResult = {
14251
+ result: {
14252
+ /**
14253
+ * Orders which were successfully cancelled
14254
+ */
14255
+ successful_cancellations: Array<string>;
14256
+ /**
14257
+ * Orders which are marked for cancellation but the cancellation cannot be guaranteed
14258
+ */
14259
+ pending_cancellations: Array<string>;
14260
+ /**
14261
+ * Orders which failed to be cancelled
14262
+ */
14263
+ failed_cancellations: Array<{
14264
+ /**
14265
+ * ID of the order which failed to be cancelled
14266
+ */
14267
+ order: string;
14268
+ /**
14269
+ * Reason code indicating why the order failed to be cancelled
14270
+ */
14271
+ reason_code: 'ALREADY_FILLED';
14272
+ }>;
14273
+ };
14274
+ };
14275
+
13853
14276
  /**
13854
14277
  * The name of chain
13855
14278
  */
@@ -14003,17 +14426,69 @@ type Chain = {
14003
14426
  name: string;
14004
14427
  };
14005
14428
 
14429
+ type ActiveOrderStatus = {
14430
+ /**
14431
+ * The order status
14432
+ */
14433
+ name: 'ACTIVE';
14434
+ };
14435
+
14436
+ type CancelledOrderStatus = {
14437
+ /**
14438
+ * The order status
14439
+ */
14440
+ name: 'CANCELLED';
14441
+ /**
14442
+ * Whether the cancellation of the order is pending
14443
+ */
14444
+ is_pending: boolean;
14445
+ /**
14446
+ * Whether the cancellation was done on-chain or off-chain
14447
+ */
14448
+ cancellation_type: CancelledOrderStatus.cancellation_type;
14449
+ };
14450
+ declare namespace CancelledOrderStatus {
14451
+ /**
14452
+ * Whether the cancellation was done on-chain or off-chain
14453
+ */
14454
+ enum cancellation_type {
14455
+ ON_CHAIN = "ON_CHAIN",
14456
+ OFF_CHAIN = "OFF_CHAIN"
14457
+ }
14458
+ }
14459
+
14460
+ type ExpiredOrderStatus = {
14461
+ /**
14462
+ * The order status
14463
+ */
14464
+ name: 'EXPIRED';
14465
+ };
14466
+
14467
+ type FilledOrderStatus = {
14468
+ /**
14469
+ * The order status
14470
+ */
14471
+ name: 'FILLED';
14472
+ };
14473
+
14474
+ type InactiveOrderStatus = {
14475
+ /**
14476
+ * The order status
14477
+ */
14478
+ name: 'INACTIVE';
14479
+ };
14480
+
14481
+ type PendingOrderStatus = {
14482
+ /**
14483
+ * The order status
14484
+ */
14485
+ name: 'PENDING';
14486
+ };
14487
+
14006
14488
  /**
14007
14489
  * The Order status
14008
14490
  */
14009
- declare enum OrderStatus {
14010
- PENDING = "PENDING",
14011
- ACTIVE = "ACTIVE",
14012
- INACTIVE = "INACTIVE",
14013
- FILLED = "FILLED",
14014
- CANCELLED = "CANCELLED",
14015
- EXPIRED = "EXPIRED"
14016
- }
14491
+ type OrderStatus = (CancelledOrderStatus | PendingOrderStatus | ActiveOrderStatus | InactiveOrderStatus | FilledOrderStatus | ExpiredOrderStatus);
14017
14492
 
14018
14493
  type Order$1 = {
14019
14494
  account_address: string;
@@ -14134,6 +14609,18 @@ type ListTradeResult = {
14134
14609
  result: Array<Trade$1>;
14135
14610
  };
14136
14611
 
14612
+ /**
14613
+ * The Order status
14614
+ */
14615
+ declare enum OrderStatusName {
14616
+ PENDING = "PENDING",
14617
+ ACTIVE = "ACTIVE",
14618
+ INACTIVE = "INACTIVE",
14619
+ FILLED = "FILLED",
14620
+ EXPIRED = "EXPIRED",
14621
+ CANCELLED = "CANCELLED"
14622
+ }
14623
+
14137
14624
  /**
14138
14625
  * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
14139
14626
  */
@@ -14148,7 +14635,7 @@ type TradeResult$1 = {
14148
14635
  result: Trade$1;
14149
14636
  };
14150
14637
 
14151
- type UnfulfillableOrder = {
14638
+ type UnfulfillableOrder$1 = {
14152
14639
  /**
14153
14640
  * OrderID for the requested but unfulfillable order
14154
14641
  */
@@ -14162,6 +14649,16 @@ type UnfulfillableOrder = {
14162
14649
  declare class OrdersService {
14163
14650
  readonly httpRequest: BaseHttpRequest;
14164
14651
  constructor(httpRequest: BaseHttpRequest);
14652
+ /**
14653
+ * Cancel one or more orders
14654
+ * Cancel one or more orders
14655
+ * @returns CancelOrdersResult Orders cancellation response.
14656
+ * @throws ApiError
14657
+ */
14658
+ cancelOrders({ chainName, requestBody, }: {
14659
+ chainName: ChainName$1;
14660
+ requestBody: CancelOrdersRequestBody;
14661
+ }): CancelablePromise<CancelOrdersResult>;
14165
14662
  /**
14166
14663
  * List all listings
14167
14664
  * List all listings
@@ -14173,7 +14670,7 @@ declare class OrdersService {
14173
14670
  /**
14174
14671
  * Order status to filter by
14175
14672
  */
14176
- status?: OrderStatus;
14673
+ status?: OrderStatusName;
14177
14674
  /**
14178
14675
  * Sell item contract address to filter by
14179
14676
  */
@@ -14238,7 +14735,7 @@ declare class OrdersService {
14238
14735
  }): CancelablePromise<{
14239
14736
  result: {
14240
14737
  fulfillable_orders: Array<FulfillableOrder>;
14241
- unfulfillable_orders: Array<UnfulfillableOrder>;
14738
+ unfulfillable_orders: Array<UnfulfillableOrder$1>;
14242
14739
  };
14243
14740
  }>;
14244
14741
  /**
@@ -14359,6 +14856,20 @@ interface SignableAction {
14359
14856
  };
14360
14857
  }
14361
14858
  type Action = TransactionAction | SignableAction;
14859
+ interface FulfillmentListing {
14860
+ listingId: string;
14861
+ takerFees: Array<FeeValue>;
14862
+ }
14863
+ interface FulfillBulkOrdersResponse {
14864
+ actions: Action[];
14865
+ expiration: string;
14866
+ fulfillableOrders: Order[];
14867
+ unfulfillableOrders: UnfulfillableOrder[];
14868
+ }
14869
+ interface UnfulfillableOrder {
14870
+ orderId: string;
14871
+ reason: string;
14872
+ }
14362
14873
  interface FulfillOrderResponse {
14363
14874
  actions: Action[];
14364
14875
  /**
@@ -14529,6 +15040,7 @@ declare class Orderbook {
14529
15040
  * @return {FulfillOrderResponse} Approval and fulfilment transactions.
14530
15041
  */
14531
15042
  fulfillOrder(listingId: string, takerAddress: string, takerFees: FeeValue[]): Promise<FulfillOrderResponse>;
15043
+ fulfillBulkOrders(listings: Array<FulfillmentListing>, takerAddress: string): Promise<FulfillBulkOrdersResponse>;
14532
15044
  /**
14533
15045
  * Get an unsigned cancel order transaction. Orders can only be cancelled by
14534
15046
  * the account that created them.
@@ -14553,7 +15065,9 @@ type orderbook_d_ERC721Item = ERC721Item;
14553
15065
  type orderbook_d_FeeType = FeeType;
14554
15066
  declare const orderbook_d_FeeType: typeof FeeType;
14555
15067
  type orderbook_d_FeeValue = FeeValue;
15068
+ type orderbook_d_FulfillBulkOrdersResponse = FulfillBulkOrdersResponse;
14556
15069
  type orderbook_d_FulfillOrderResponse = FulfillOrderResponse;
15070
+ type orderbook_d_FulfillmentListing = FulfillmentListing;
14557
15071
  type orderbook_d_ListListingsParams = ListListingsParams;
14558
15072
  type orderbook_d_ListListingsResult = ListListingsResult;
14559
15073
  type orderbook_d_ListTradesParams = ListTradesParams;
@@ -14561,8 +15075,8 @@ type orderbook_d_ListTradesResult = ListTradesResult;
14561
15075
  type orderbook_d_ListingResult = ListingResult;
14562
15076
  type orderbook_d_NativeItem = NativeItem;
14563
15077
  type orderbook_d_Order = Order;
14564
- type orderbook_d_OrderStatus = OrderStatus;
14565
- declare const orderbook_d_OrderStatus: typeof OrderStatus;
15078
+ type orderbook_d_OrderStatusName = OrderStatusName;
15079
+ declare const orderbook_d_OrderStatusName: typeof OrderStatusName;
14566
15080
  type orderbook_d_Orderbook = Orderbook;
14567
15081
  declare const orderbook_d_Orderbook: typeof Orderbook;
14568
15082
  type orderbook_d_Page = Page;
@@ -14578,6 +15092,7 @@ type orderbook_d_TransactionAction = TransactionAction;
14578
15092
  type orderbook_d_TransactionBuilder = TransactionBuilder;
14579
15093
  type orderbook_d_TransactionPurpose = TransactionPurpose;
14580
15094
  declare const orderbook_d_TransactionPurpose: typeof TransactionPurpose;
15095
+ type orderbook_d_UnfulfillableOrder = UnfulfillableOrder;
14581
15096
  declare const orderbook_d_constants: typeof constants;
14582
15097
  declare namespace orderbook_d {
14583
15098
  export {
@@ -14590,7 +15105,9 @@ declare namespace orderbook_d {
14590
15105
  Fee$1 as Fee,
14591
15106
  orderbook_d_FeeType as FeeType,
14592
15107
  orderbook_d_FeeValue as FeeValue,
15108
+ orderbook_d_FulfillBulkOrdersResponse as FulfillBulkOrdersResponse,
14593
15109
  orderbook_d_FulfillOrderResponse as FulfillOrderResponse,
15110
+ orderbook_d_FulfillmentListing as FulfillmentListing,
14594
15111
  orderbook_d_ListListingsParams as ListListingsParams,
14595
15112
  orderbook_d_ListListingsResult as ListListingsResult,
14596
15113
  orderbook_d_ListTradesParams as ListTradesParams,
@@ -14598,7 +15115,7 @@ declare namespace orderbook_d {
14598
15115
  orderbook_d_ListingResult as ListingResult,
14599
15116
  orderbook_d_NativeItem as NativeItem,
14600
15117
  orderbook_d_Order as Order,
14601
- orderbook_d_OrderStatus as OrderStatus,
15118
+ orderbook_d_OrderStatusName as OrderStatusName,
14602
15119
  orderbook_d_Orderbook as Orderbook,
14603
15120
  orderbook_d_Page as Page,
14604
15121
  orderbook_d_PrepareListingParams as PrepareListingParams,
@@ -14611,6 +15128,7 @@ declare namespace orderbook_d {
14611
15128
  orderbook_d_TransactionAction as TransactionAction,
14612
15129
  orderbook_d_TransactionBuilder as TransactionBuilder,
14613
15130
  orderbook_d_TransactionPurpose as TransactionPurpose,
15131
+ orderbook_d_UnfulfillableOrder as UnfulfillableOrder,
14614
15132
  orderbook_d_constants as constants,
14615
15133
  };
14616
15134
  }
@@ -15826,7 +16344,8 @@ declare enum CheckoutErrorType {
15826
16344
  SIGN_MESSAGE_ERROR = "SIGN_MESSAGE_ERROR",
15827
16345
  BRIDGE_GAS_ESTIMATE_ERROR = "BRIDGE_GAS_ESTIMATE_ERROR",
15828
16346
  ORDER_FEE_ERROR = "ORDER_FEE_ERROR",
15829
- ITEM_REQUIREMENTS_ERROR = "ITEM_REQUIREMENTS_ERROR"
16347
+ ITEM_REQUIREMENTS_ERROR = "ITEM_REQUIREMENTS_ERROR",
16348
+ API_ERROR = "API_ERROR"
15830
16349
  }
15831
16350
  /**
15832
16351
  * Represents an error object with a specific type, optional message, and optional data.