@imtbl/sdk 0.27.0 → 0.27.1

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.
@@ -16214,7 +16214,7 @@ var Fee;
16214
16214
  /**
16215
16215
  * The Order status
16216
16216
  */
16217
- var OrderStatusName;
16217
+ var OrderStatusName$1;
16218
16218
  (function (OrderStatusName) {
16219
16219
  OrderStatusName["PENDING"] = "PENDING";
16220
16220
  OrderStatusName["ACTIVE"] = "ACTIVE";
@@ -16222,7 +16222,7 @@ var OrderStatusName;
16222
16222
  OrderStatusName["FILLED"] = "FILLED";
16223
16223
  OrderStatusName["EXPIRED"] = "EXPIRED";
16224
16224
  OrderStatusName["CANCELLED"] = "CANCELLED";
16225
- })(OrderStatusName || (OrderStatusName = {}));
16225
+ })(OrderStatusName$1 || (OrderStatusName$1 = {}));
16226
16226
 
16227
16227
  /* istanbul ignore file */
16228
16228
  /* tslint:disable */
@@ -17011,7 +17011,7 @@ class Orderbook {
17011
17011
  }
17012
17012
  const extraData = fulfillmentDataRes.result.fulfillable_orders[0].extra_data;
17013
17013
  const orderResult = fulfillmentDataRes.result.fulfillable_orders[0].order;
17014
- if (orderResult.status.name !== OrderStatusName.ACTIVE) {
17014
+ if (orderResult.status.name !== OrderStatusName$1.ACTIVE) {
17015
17015
  throw new Error(`Cannot fulfil order that is not active. Current status: ${orderResult.status}`);
17016
17016
  }
17017
17017
  return this.seaport.fulfillOrder(orderResult, takerAddress, extraData);
@@ -17043,9 +17043,9 @@ class Orderbook {
17043
17043
  */
17044
17044
  async cancelOrder(listingId, accountAddress) {
17045
17045
  const orderResult = await this.apiClient.getListing(listingId);
17046
- if (orderResult.result.status.name !== OrderStatusName.ACTIVE
17047
- && orderResult.result.status.name !== OrderStatusName.INACTIVE
17048
- && orderResult.result.status.name !== OrderStatusName.PENDING) {
17046
+ if (orderResult.result.status.name !== OrderStatusName$1.ACTIVE
17047
+ && orderResult.result.status.name !== OrderStatusName$1.INACTIVE
17048
+ && orderResult.result.status.name !== OrderStatusName$1.PENDING) {
17049
17049
  throw new Error(`Cannot cancel order with status ${orderResult.result.status}`);
17050
17050
  }
17051
17051
  if (orderResult.result.account_address !== accountAddress.toLowerCase()) {
@@ -17628,13 +17628,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
17628
17628
  * List all collections
17629
17629
  * @summary List all collections
17630
17630
  * @param {string} chainName The name of chain
17631
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
17631
17632
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
17632
17633
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17633
17634
  * @param {number} [pageSize] Maximum number of items to return
17634
17635
  * @param {*} [options] Override http request option.
17635
17636
  * @throws {RequiredError}
17636
17637
  */
17637
- listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
17638
+ listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
17638
17639
  // verify required parameter 'chainName' is not null or undefined
17639
17640
  assertParamExists('listCollections', 'chainName', chainName);
17640
17641
  const localVarPath = `/v1/chains/{chain_name}/collections`
@@ -17648,6 +17649,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
17648
17649
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
17649
17650
  const localVarHeaderParameter = {};
17650
17651
  const localVarQueryParameter = {};
17652
+ if (contractAddress) {
17653
+ localVarQueryParameter['contract_address'] = contractAddress;
17654
+ }
17651
17655
  if (fromUpdatedAt !== undefined) {
17652
17656
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
17653
17657
  fromUpdatedAt.toISOString() :
@@ -17773,14 +17777,15 @@ const CollectionsApiFp = function (configuration) {
17773
17777
  * List all collections
17774
17778
  * @summary List all collections
17775
17779
  * @param {string} chainName The name of chain
17780
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
17776
17781
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
17777
17782
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17778
17783
  * @param {number} [pageSize] Maximum number of items to return
17779
17784
  * @param {*} [options] Override http request option.
17780
17785
  * @throws {RequiredError}
17781
17786
  */
17782
- async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
17783
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
17787
+ async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
17788
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
17784
17789
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
17785
17790
  },
17786
17791
  /**
@@ -17834,14 +17839,15 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
17834
17839
  * List all collections
17835
17840
  * @summary List all collections
17836
17841
  * @param {string} chainName The name of chain
17842
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
17837
17843
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
17838
17844
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17839
17845
  * @param {number} [pageSize] Maximum number of items to return
17840
17846
  * @param {*} [options] Override http request option.
17841
17847
  * @throws {RequiredError}
17842
17848
  */
17843
- listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
17844
- return localVarFp.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
17849
+ listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
17850
+ return localVarFp.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
17845
17851
  },
17846
17852
  /**
17847
17853
  * List collections by NFT owner account address
@@ -17897,7 +17903,7 @@ class CollectionsApi extends BaseAPI {
17897
17903
  * @memberof CollectionsApi
17898
17904
  */
17899
17905
  listCollections(requestParameters, options) {
17900
- return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
17906
+ return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
17901
17907
  }
17902
17908
  /**
17903
17909
  * List collections by NFT owner account address
@@ -19151,7 +19157,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
19151
19157
  * List all listings
19152
19158
  * @summary List all listings
19153
19159
  * @param {string} chainName
19154
- * @param {OrderStatus} [status] Order status to filter by
19160
+ * @param {OrderStatusName} [status] Order status to filter by
19155
19161
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
19156
19162
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
19157
19163
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -19330,7 +19336,7 @@ const OrdersApiFp = function (configuration) {
19330
19336
  * List all listings
19331
19337
  * @summary List all listings
19332
19338
  * @param {string} chainName
19333
- * @param {OrderStatus} [status] Order status to filter by
19339
+ * @param {OrderStatusName} [status] Order status to filter by
19334
19340
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
19335
19341
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
19336
19342
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -19429,7 +19435,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
19429
19435
  * List all listings
19430
19436
  * @summary List all listings
19431
19437
  * @param {string} chainName
19432
- * @param {OrderStatus} [status] Order status to filter by
19438
+ * @param {OrderStatusName} [status] Order status to filter by
19433
19439
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
19434
19440
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
19435
19441
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -20126,6 +20132,23 @@ const APIError501AllOfCodeEnum = {
20126
20132
  NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
20127
20133
  };
20128
20134
 
20135
+ /* tslint:disable */
20136
+ /* eslint-disable */
20137
+ /**
20138
+ * Immutable zkEVM API
20139
+ * Immutable Multi Rollup API
20140
+ *
20141
+ * The version of the OpenAPI document: 1.0.0
20142
+ * Contact: support@immutable.com
20143
+ *
20144
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20145
+ * https://openapi-generator.tech
20146
+ * Do not edit the class manually.
20147
+ */
20148
+ const ActiveOrderStatusNameEnum = {
20149
+ Active: 'ACTIVE'
20150
+ };
20151
+
20129
20152
  /* tslint:disable */
20130
20153
  /* eslint-disable */
20131
20154
  /**
@@ -20166,8 +20189,12 @@ const ActivityType = {
20166
20189
  * https://openapi-generator.tech
20167
20190
  * Do not edit the class manually.
20168
20191
  */
20169
- const CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum = {
20170
- AlreadyFilled: 'ALREADY_FILLED'
20192
+ const CancelledOrderStatusNameEnum = {
20193
+ Cancelled: 'CANCELLED'
20194
+ };
20195
+ const CancelledOrderStatusCancellationTypeEnum = {
20196
+ OnChain: 'ON_CHAIN',
20197
+ OffChain: 'OFF_CHAIN'
20171
20198
  };
20172
20199
 
20173
20200
  /* tslint:disable */
@@ -20226,6 +20253,40 @@ const ERC721ItemItemTypeEnum = {
20226
20253
  Erc721: 'ERC721'
20227
20254
  };
20228
20255
 
20256
+ /* tslint:disable */
20257
+ /* eslint-disable */
20258
+ /**
20259
+ * Immutable zkEVM API
20260
+ * Immutable Multi Rollup API
20261
+ *
20262
+ * The version of the OpenAPI document: 1.0.0
20263
+ * Contact: support@immutable.com
20264
+ *
20265
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20266
+ * https://openapi-generator.tech
20267
+ * Do not edit the class manually.
20268
+ */
20269
+ const ExpiredOrderStatusNameEnum = {
20270
+ Expired: 'EXPIRED'
20271
+ };
20272
+
20273
+ /* tslint:disable */
20274
+ /* eslint-disable */
20275
+ /**
20276
+ * Immutable zkEVM API
20277
+ * Immutable Multi Rollup API
20278
+ *
20279
+ * The version of the OpenAPI document: 1.0.0
20280
+ * Contact: support@immutable.com
20281
+ *
20282
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20283
+ * https://openapi-generator.tech
20284
+ * Do not edit the class manually.
20285
+ */
20286
+ const FailedOrderCancellationReasonCodeEnum = {
20287
+ AlreadyFilled: 'ALREADY_FILLED'
20288
+ };
20289
+
20229
20290
  /* tslint:disable */
20230
20291
  /* eslint-disable */
20231
20292
  /**
@@ -20246,6 +20307,40 @@ const FeeFeeTypeEnum = {
20246
20307
  Protocol: 'PROTOCOL'
20247
20308
  };
20248
20309
 
20310
+ /* tslint:disable */
20311
+ /* eslint-disable */
20312
+ /**
20313
+ * Immutable zkEVM API
20314
+ * Immutable Multi Rollup API
20315
+ *
20316
+ * The version of the OpenAPI document: 1.0.0
20317
+ * Contact: support@immutable.com
20318
+ *
20319
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20320
+ * https://openapi-generator.tech
20321
+ * Do not edit the class manually.
20322
+ */
20323
+ const FilledOrderStatusNameEnum = {
20324
+ Filled: 'FILLED'
20325
+ };
20326
+
20327
+ /* tslint:disable */
20328
+ /* eslint-disable */
20329
+ /**
20330
+ * Immutable zkEVM API
20331
+ * Immutable Multi Rollup API
20332
+ *
20333
+ * The version of the OpenAPI document: 1.0.0
20334
+ * Contact: support@immutable.com
20335
+ *
20336
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20337
+ * https://openapi-generator.tech
20338
+ * Do not edit the class manually.
20339
+ */
20340
+ const InactiveOrderStatusNameEnum = {
20341
+ Inactive: 'INACTIVE'
20342
+ };
20343
+
20249
20344
  /* tslint:disable */
20250
20345
  /* eslint-disable */
20251
20346
  /**
@@ -20303,13 +20398,30 @@ const NativeItemItemTypeEnum = {
20303
20398
  * @export
20304
20399
  * @enum {string}
20305
20400
  */
20306
- const OrderStatus = {
20401
+ const OrderStatusName = {
20307
20402
  Pending: 'PENDING',
20308
20403
  Active: 'ACTIVE',
20309
20404
  Inactive: 'INACTIVE',
20310
20405
  Filled: 'FILLED',
20311
- Cancelled: 'CANCELLED',
20312
- Expired: 'EXPIRED'
20406
+ Expired: 'EXPIRED',
20407
+ Cancelled: 'CANCELLED'
20408
+ };
20409
+
20410
+ /* tslint:disable */
20411
+ /* eslint-disable */
20412
+ /**
20413
+ * Immutable zkEVM API
20414
+ * Immutable Multi Rollup API
20415
+ *
20416
+ * The version of the OpenAPI document: 1.0.0
20417
+ * Contact: support@immutable.com
20418
+ *
20419
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20420
+ * https://openapi-generator.tech
20421
+ * Do not edit the class manually.
20422
+ */
20423
+ const PendingOrderStatusNameEnum = {
20424
+ Pending: 'PENDING'
20313
20425
  };
20314
20426
 
20315
20427
  /* tslint:disable */
@@ -20391,12 +20503,14 @@ var index = /*#__PURE__*/Object.freeze({
20391
20503
  APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
20392
20504
  APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
20393
20505
  APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
20506
+ ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
20394
20507
  ActivitiesApi: ActivitiesApi,
20395
20508
  ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
20396
20509
  ActivitiesApiFactory: ActivitiesApiFactory,
20397
20510
  ActivitiesApiFp: ActivitiesApiFp,
20398
20511
  ActivityType: ActivityType,
20399
- CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum: CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum,
20512
+ CancelledOrderStatusCancellationTypeEnum: CancelledOrderStatusCancellationTypeEnum,
20513
+ CancelledOrderStatusNameEnum: CancelledOrderStatusNameEnum,
20400
20514
  ChainsApi: ChainsApi,
20401
20515
  ChainsApiAxiosParamCreator: ChainsApiAxiosParamCreator,
20402
20516
  ChainsApiFactory: ChainsApiFactory,
@@ -20409,7 +20523,11 @@ var index = /*#__PURE__*/Object.freeze({
20409
20523
  Configuration: Configuration,
20410
20524
  ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
20411
20525
  ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
20526
+ ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
20527
+ FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
20412
20528
  FeeFeeTypeEnum: FeeFeeTypeEnum,
20529
+ FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
20530
+ InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
20413
20531
  MetadataApi: MetadataApi,
20414
20532
  MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
20415
20533
  MetadataApiFactory: MetadataApiFactory,
@@ -20424,7 +20542,7 @@ var index = /*#__PURE__*/Object.freeze({
20424
20542
  NftsApiAxiosParamCreator: NftsApiAxiosParamCreator,
20425
20543
  NftsApiFactory: NftsApiFactory,
20426
20544
  NftsApiFp: NftsApiFp,
20427
- OrderStatus: OrderStatus,
20545
+ OrderStatusName: OrderStatusName,
20428
20546
  OrdersApi: OrdersApi,
20429
20547
  OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
20430
20548
  OrdersApiFactory: OrdersApiFactory,
@@ -20433,6 +20551,7 @@ var index = /*#__PURE__*/Object.freeze({
20433
20551
  PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
20434
20552
  PassportApiFactory: PassportApiFactory,
20435
20553
  PassportApiFp: PassportApiFp,
20554
+ PendingOrderStatusNameEnum: PendingOrderStatusNameEnum,
20436
20555
  ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
20437
20556
  SaleFeeTypeEnum: SaleFeeTypeEnum,
20438
20557
  TokenContractType: TokenContractType,
@@ -20461,7 +20580,7 @@ class APIError extends Error {
20461
20580
 
20462
20581
  /* eslint-disable implicit-arrow-linebreak */
20463
20582
  const defaultHeaders = {
20464
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.0',
20583
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.1',
20465
20584
  };
20466
20585
  /**
20467
20586
  * createAPIConfiguration to create a custom Configuration
@@ -25,7 +25,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
25
25
  })($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
26
26
 
27
27
 
28
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.0";
28
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.1";
29
29
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
30
30
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
31
31
 
@@ -16,7 +16,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
16
16
  chainID,
17
17
  coreContractAddress,
18
18
  registrationContractAddress,
19
- sdkVersion: 'ts-immutable-sdk-0.27.0',
19
+ sdkVersion: 'ts-immutable-sdk-0.27.1',
20
20
  });
21
21
  /**
22
22
  * Sets `sdkVersion` at the time of build