@imtbl/sdk 0.26.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.
@@ -2268,6 +2268,12 @@ interface CollectionsApiListCollectionsRequest {
2268
2268
  * @memberof CollectionsApiListCollections
2269
2269
  */
2270
2270
  readonly chainName: string;
2271
+ /**
2272
+ * List of contract addresses to filter by
2273
+ * @type {Array<string>}
2274
+ * @memberof CollectionsApiListCollections
2275
+ */
2276
+ readonly contractAddress?: Array<string>;
2271
2277
  /**
2272
2278
  * Datetime to use as the oldest updated timestamp
2273
2279
  * @type {string}
@@ -564,13 +564,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
564
564
  * List all collections
565
565
  * @summary List all collections
566
566
  * @param {string} chainName The name of chain
567
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
567
568
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
568
569
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
569
570
  * @param {number} [pageSize] Maximum number of items to return
570
571
  * @param {*} [options] Override http request option.
571
572
  * @throws {RequiredError}
572
573
  */
573
- listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
574
+ listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
574
575
  // verify required parameter 'chainName' is not null or undefined
575
576
  assertParamExists('listCollections', 'chainName', chainName);
576
577
  const localVarPath = `/v1/chains/{chain_name}/collections`
@@ -584,6 +585,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
584
585
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
585
586
  const localVarHeaderParameter = {};
586
587
  const localVarQueryParameter = {};
588
+ if (contractAddress) {
589
+ localVarQueryParameter['contract_address'] = contractAddress;
590
+ }
587
591
  if (fromUpdatedAt !== undefined) {
588
592
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
589
593
  fromUpdatedAt.toISOString() :
@@ -709,14 +713,15 @@ const CollectionsApiFp = function (configuration) {
709
713
  * List all collections
710
714
  * @summary List all collections
711
715
  * @param {string} chainName The name of chain
716
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
712
717
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
713
718
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
714
719
  * @param {number} [pageSize] Maximum number of items to return
715
720
  * @param {*} [options] Override http request option.
716
721
  * @throws {RequiredError}
717
722
  */
718
- async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
719
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
723
+ async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
724
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
720
725
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
721
726
  },
722
727
  /**
@@ -770,14 +775,15 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
770
775
  * List all collections
771
776
  * @summary List all collections
772
777
  * @param {string} chainName The name of chain
778
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
773
779
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
774
780
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
775
781
  * @param {number} [pageSize] Maximum number of items to return
776
782
  * @param {*} [options] Override http request option.
777
783
  * @throws {RequiredError}
778
784
  */
779
- listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
780
- return localVarFp.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
785
+ listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
786
+ return localVarFp.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
781
787
  },
782
788
  /**
783
789
  * List collections by NFT owner account address
@@ -833,7 +839,7 @@ class CollectionsApi extends BaseAPI {
833
839
  * @memberof CollectionsApi
834
840
  */
835
841
  listCollections(requestParameters, options) {
836
- return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
842
+ return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
837
843
  }
838
844
  /**
839
845
  * List collections by NFT owner account address
@@ -2087,7 +2093,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2087
2093
  * List all listings
2088
2094
  * @summary List all listings
2089
2095
  * @param {string} chainName
2090
- * @param {OrderStatus} [status] Order status to filter by
2096
+ * @param {OrderStatusName} [status] Order status to filter by
2091
2097
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2092
2098
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2093
2099
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -2266,7 +2272,7 @@ const OrdersApiFp = function (configuration) {
2266
2272
  * List all listings
2267
2273
  * @summary List all listings
2268
2274
  * @param {string} chainName
2269
- * @param {OrderStatus} [status] Order status to filter by
2275
+ * @param {OrderStatusName} [status] Order status to filter by
2270
2276
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2271
2277
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2272
2278
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -2365,7 +2371,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
2365
2371
  * List all listings
2366
2372
  * @summary List all listings
2367
2373
  * @param {string} chainName
2368
- * @param {OrderStatus} [status] Order status to filter by
2374
+ * @param {OrderStatusName} [status] Order status to filter by
2369
2375
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2370
2376
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2371
2377
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -3062,6 +3068,23 @@ const APIError501AllOfCodeEnum = {
3062
3068
  NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
3063
3069
  };
3064
3070
 
3071
+ /* tslint:disable */
3072
+ /* eslint-disable */
3073
+ /**
3074
+ * Immutable zkEVM API
3075
+ * Immutable Multi Rollup API
3076
+ *
3077
+ * The version of the OpenAPI document: 1.0.0
3078
+ * Contact: support@immutable.com
3079
+ *
3080
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3081
+ * https://openapi-generator.tech
3082
+ * Do not edit the class manually.
3083
+ */
3084
+ const ActiveOrderStatusNameEnum = {
3085
+ Active: 'ACTIVE'
3086
+ };
3087
+
3065
3088
  /* tslint:disable */
3066
3089
  /* eslint-disable */
3067
3090
  /**
@@ -3102,8 +3125,12 @@ const ActivityType = {
3102
3125
  * https://openapi-generator.tech
3103
3126
  * Do not edit the class manually.
3104
3127
  */
3105
- const CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum = {
3106
- AlreadyFilled: 'ALREADY_FILLED'
3128
+ const CancelledOrderStatusNameEnum = {
3129
+ Cancelled: 'CANCELLED'
3130
+ };
3131
+ const CancelledOrderStatusCancellationTypeEnum = {
3132
+ OnChain: 'ON_CHAIN',
3133
+ OffChain: 'OFF_CHAIN'
3107
3134
  };
3108
3135
 
3109
3136
  /* tslint:disable */
@@ -3162,6 +3189,40 @@ const ERC721ItemItemTypeEnum = {
3162
3189
  Erc721: 'ERC721'
3163
3190
  };
3164
3191
 
3192
+ /* tslint:disable */
3193
+ /* eslint-disable */
3194
+ /**
3195
+ * Immutable zkEVM API
3196
+ * Immutable Multi Rollup API
3197
+ *
3198
+ * The version of the OpenAPI document: 1.0.0
3199
+ * Contact: support@immutable.com
3200
+ *
3201
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3202
+ * https://openapi-generator.tech
3203
+ * Do not edit the class manually.
3204
+ */
3205
+ const ExpiredOrderStatusNameEnum = {
3206
+ Expired: 'EXPIRED'
3207
+ };
3208
+
3209
+ /* tslint:disable */
3210
+ /* eslint-disable */
3211
+ /**
3212
+ * Immutable zkEVM API
3213
+ * Immutable Multi Rollup API
3214
+ *
3215
+ * The version of the OpenAPI document: 1.0.0
3216
+ * Contact: support@immutable.com
3217
+ *
3218
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3219
+ * https://openapi-generator.tech
3220
+ * Do not edit the class manually.
3221
+ */
3222
+ const FailedOrderCancellationReasonCodeEnum = {
3223
+ AlreadyFilled: 'ALREADY_FILLED'
3224
+ };
3225
+
3165
3226
  /* tslint:disable */
3166
3227
  /* eslint-disable */
3167
3228
  /**
@@ -3182,6 +3243,40 @@ const FeeFeeTypeEnum = {
3182
3243
  Protocol: 'PROTOCOL'
3183
3244
  };
3184
3245
 
3246
+ /* tslint:disable */
3247
+ /* eslint-disable */
3248
+ /**
3249
+ * Immutable zkEVM API
3250
+ * Immutable Multi Rollup API
3251
+ *
3252
+ * The version of the OpenAPI document: 1.0.0
3253
+ * Contact: support@immutable.com
3254
+ *
3255
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3256
+ * https://openapi-generator.tech
3257
+ * Do not edit the class manually.
3258
+ */
3259
+ const FilledOrderStatusNameEnum = {
3260
+ Filled: 'FILLED'
3261
+ };
3262
+
3263
+ /* tslint:disable */
3264
+ /* eslint-disable */
3265
+ /**
3266
+ * Immutable zkEVM API
3267
+ * Immutable Multi Rollup API
3268
+ *
3269
+ * The version of the OpenAPI document: 1.0.0
3270
+ * Contact: support@immutable.com
3271
+ *
3272
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3273
+ * https://openapi-generator.tech
3274
+ * Do not edit the class manually.
3275
+ */
3276
+ const InactiveOrderStatusNameEnum = {
3277
+ Inactive: 'INACTIVE'
3278
+ };
3279
+
3185
3280
  /* tslint:disable */
3186
3281
  /* eslint-disable */
3187
3282
  /**
@@ -3239,13 +3334,30 @@ const NativeItemItemTypeEnum = {
3239
3334
  * @export
3240
3335
  * @enum {string}
3241
3336
  */
3242
- const OrderStatus = {
3337
+ const OrderStatusName = {
3243
3338
  Pending: 'PENDING',
3244
3339
  Active: 'ACTIVE',
3245
3340
  Inactive: 'INACTIVE',
3246
3341
  Filled: 'FILLED',
3247
- Cancelled: 'CANCELLED',
3248
- Expired: 'EXPIRED'
3342
+ Expired: 'EXPIRED',
3343
+ Cancelled: 'CANCELLED'
3344
+ };
3345
+
3346
+ /* tslint:disable */
3347
+ /* eslint-disable */
3348
+ /**
3349
+ * Immutable zkEVM API
3350
+ * Immutable Multi Rollup API
3351
+ *
3352
+ * The version of the OpenAPI document: 1.0.0
3353
+ * Contact: support@immutable.com
3354
+ *
3355
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3356
+ * https://openapi-generator.tech
3357
+ * Do not edit the class manually.
3358
+ */
3359
+ const PendingOrderStatusNameEnum = {
3360
+ Pending: 'PENDING'
3249
3361
  };
3250
3362
 
3251
3363
  /* tslint:disable */
@@ -3327,12 +3439,14 @@ var index = /*#__PURE__*/Object.freeze({
3327
3439
  APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
3328
3440
  APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
3329
3441
  APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
3442
+ ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
3330
3443
  ActivitiesApi: ActivitiesApi,
3331
3444
  ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
3332
3445
  ActivitiesApiFactory: ActivitiesApiFactory,
3333
3446
  ActivitiesApiFp: ActivitiesApiFp,
3334
3447
  ActivityType: ActivityType,
3335
- CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum: CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum,
3448
+ CancelledOrderStatusCancellationTypeEnum: CancelledOrderStatusCancellationTypeEnum,
3449
+ CancelledOrderStatusNameEnum: CancelledOrderStatusNameEnum,
3336
3450
  ChainsApi: ChainsApi,
3337
3451
  ChainsApiAxiosParamCreator: ChainsApiAxiosParamCreator,
3338
3452
  ChainsApiFactory: ChainsApiFactory,
@@ -3345,7 +3459,11 @@ var index = /*#__PURE__*/Object.freeze({
3345
3459
  Configuration: Configuration,
3346
3460
  ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
3347
3461
  ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
3462
+ ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
3463
+ FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
3348
3464
  FeeFeeTypeEnum: FeeFeeTypeEnum,
3465
+ FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
3466
+ InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
3349
3467
  MetadataApi: MetadataApi,
3350
3468
  MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
3351
3469
  MetadataApiFactory: MetadataApiFactory,
@@ -3360,7 +3478,7 @@ var index = /*#__PURE__*/Object.freeze({
3360
3478
  NftsApiAxiosParamCreator: NftsApiAxiosParamCreator,
3361
3479
  NftsApiFactory: NftsApiFactory,
3362
3480
  NftsApiFp: NftsApiFp,
3363
- OrderStatus: OrderStatus,
3481
+ OrderStatusName: OrderStatusName,
3364
3482
  OrdersApi: OrdersApi,
3365
3483
  OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
3366
3484
  OrdersApiFactory: OrdersApiFactory,
@@ -3369,6 +3487,7 @@ var index = /*#__PURE__*/Object.freeze({
3369
3487
  PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
3370
3488
  PassportApiFactory: PassportApiFactory,
3371
3489
  PassportApiFp: PassportApiFp,
3490
+ PendingOrderStatusNameEnum: PendingOrderStatusNameEnum,
3372
3491
  ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
3373
3492
  SaleFeeTypeEnum: SaleFeeTypeEnum,
3374
3493
  TokenContractType: TokenContractType,
@@ -3403,7 +3522,7 @@ class APIError extends Error {
3403
3522
 
3404
3523
  /* eslint-disable implicit-arrow-linebreak */
3405
3524
  const defaultHeaders = {
3406
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.26.0',
3525
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.1',
3407
3526
  };
3408
3527
  /**
3409
3528
  * createAPIConfiguration to create a custom Configuration