@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.
- package/dist/blockchain_data.d.ts +6 -0
- package/dist/blockchain_data.js +136 -17
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.js +142 -23
- package/dist/checkout_widgets.js +1 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +139 -20
- package/dist/index.d.ts +6 -0
- package/dist/index.js +139 -20
- package/dist/passport.js +13 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -719,13 +719,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
719
719
|
* List all collections
|
|
720
720
|
* @summary List all collections
|
|
721
721
|
* @param {string} chainName The name of chain
|
|
722
|
+
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
722
723
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
723
724
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
724
725
|
* @param {number} [pageSize] Maximum number of items to return
|
|
725
726
|
* @param {*} [options] Override http request option.
|
|
726
727
|
* @throws {RequiredError}
|
|
727
728
|
*/
|
|
728
|
-
listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
729
|
+
listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
729
730
|
// verify required parameter 'chainName' is not null or undefined
|
|
730
731
|
assertParamExists$1('listCollections', 'chainName', chainName);
|
|
731
732
|
const localVarPath = `/v1/chains/{chain_name}/collections`
|
|
@@ -739,6 +740,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
739
740
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
740
741
|
const localVarHeaderParameter = {};
|
|
741
742
|
const localVarQueryParameter = {};
|
|
743
|
+
if (contractAddress) {
|
|
744
|
+
localVarQueryParameter['contract_address'] = contractAddress;
|
|
745
|
+
}
|
|
742
746
|
if (fromUpdatedAt !== undefined) {
|
|
743
747
|
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
744
748
|
fromUpdatedAt.toISOString() :
|
|
@@ -864,14 +868,15 @@ const CollectionsApiFp = function (configuration) {
|
|
|
864
868
|
* List all collections
|
|
865
869
|
* @summary List all collections
|
|
866
870
|
* @param {string} chainName The name of chain
|
|
871
|
+
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
867
872
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
868
873
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
869
874
|
* @param {number} [pageSize] Maximum number of items to return
|
|
870
875
|
* @param {*} [options] Override http request option.
|
|
871
876
|
* @throws {RequiredError}
|
|
872
877
|
*/
|
|
873
|
-
async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
874
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
878
|
+
async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
879
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
|
|
875
880
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
876
881
|
},
|
|
877
882
|
/**
|
|
@@ -925,14 +930,15 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
925
930
|
* List all collections
|
|
926
931
|
* @summary List all collections
|
|
927
932
|
* @param {string} chainName The name of chain
|
|
933
|
+
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
928
934
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
929
935
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
930
936
|
* @param {number} [pageSize] Maximum number of items to return
|
|
931
937
|
* @param {*} [options] Override http request option.
|
|
932
938
|
* @throws {RequiredError}
|
|
933
939
|
*/
|
|
934
|
-
listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
935
|
-
return localVarFp.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
940
|
+
listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
941
|
+
return localVarFp.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
936
942
|
},
|
|
937
943
|
/**
|
|
938
944
|
* List collections by NFT owner account address
|
|
@@ -988,7 +994,7 @@ class CollectionsApi extends BaseAPI$1 {
|
|
|
988
994
|
* @memberof CollectionsApi
|
|
989
995
|
*/
|
|
990
996
|
listCollections(requestParameters, options) {
|
|
991
|
-
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
997
|
+
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
992
998
|
}
|
|
993
999
|
/**
|
|
994
1000
|
* List collections by NFT owner account address
|
|
@@ -2242,7 +2248,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2242
2248
|
* List all listings
|
|
2243
2249
|
* @summary List all listings
|
|
2244
2250
|
* @param {string} chainName
|
|
2245
|
-
* @param {
|
|
2251
|
+
* @param {OrderStatusName} [status] Order status to filter by
|
|
2246
2252
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
2247
2253
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2248
2254
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
@@ -2421,7 +2427,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
2421
2427
|
* List all listings
|
|
2422
2428
|
* @summary List all listings
|
|
2423
2429
|
* @param {string} chainName
|
|
2424
|
-
* @param {
|
|
2430
|
+
* @param {OrderStatusName} [status] Order status to filter by
|
|
2425
2431
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
2426
2432
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2427
2433
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
@@ -2520,7 +2526,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
2520
2526
|
* List all listings
|
|
2521
2527
|
* @summary List all listings
|
|
2522
2528
|
* @param {string} chainName
|
|
2523
|
-
* @param {
|
|
2529
|
+
* @param {OrderStatusName} [status] Order status to filter by
|
|
2524
2530
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
2525
2531
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2526
2532
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
@@ -3217,6 +3223,23 @@ const APIError501AllOfCodeEnum = {
|
|
|
3217
3223
|
NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
|
|
3218
3224
|
};
|
|
3219
3225
|
|
|
3226
|
+
/* tslint:disable */
|
|
3227
|
+
/* eslint-disable */
|
|
3228
|
+
/**
|
|
3229
|
+
* Immutable zkEVM API
|
|
3230
|
+
* Immutable Multi Rollup API
|
|
3231
|
+
*
|
|
3232
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3233
|
+
* Contact: support@immutable.com
|
|
3234
|
+
*
|
|
3235
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3236
|
+
* https://openapi-generator.tech
|
|
3237
|
+
* Do not edit the class manually.
|
|
3238
|
+
*/
|
|
3239
|
+
const ActiveOrderStatusNameEnum = {
|
|
3240
|
+
Active: 'ACTIVE'
|
|
3241
|
+
};
|
|
3242
|
+
|
|
3220
3243
|
/* tslint:disable */
|
|
3221
3244
|
/* eslint-disable */
|
|
3222
3245
|
/**
|
|
@@ -3257,8 +3280,12 @@ const ActivityType = {
|
|
|
3257
3280
|
* https://openapi-generator.tech
|
|
3258
3281
|
* Do not edit the class manually.
|
|
3259
3282
|
*/
|
|
3260
|
-
const
|
|
3261
|
-
|
|
3283
|
+
const CancelledOrderStatusNameEnum = {
|
|
3284
|
+
Cancelled: 'CANCELLED'
|
|
3285
|
+
};
|
|
3286
|
+
const CancelledOrderStatusCancellationTypeEnum = {
|
|
3287
|
+
OnChain: 'ON_CHAIN',
|
|
3288
|
+
OffChain: 'OFF_CHAIN'
|
|
3262
3289
|
};
|
|
3263
3290
|
|
|
3264
3291
|
/* tslint:disable */
|
|
@@ -3317,6 +3344,40 @@ const ERC721ItemItemTypeEnum = {
|
|
|
3317
3344
|
Erc721: 'ERC721'
|
|
3318
3345
|
};
|
|
3319
3346
|
|
|
3347
|
+
/* tslint:disable */
|
|
3348
|
+
/* eslint-disable */
|
|
3349
|
+
/**
|
|
3350
|
+
* Immutable zkEVM API
|
|
3351
|
+
* Immutable Multi Rollup API
|
|
3352
|
+
*
|
|
3353
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3354
|
+
* Contact: support@immutable.com
|
|
3355
|
+
*
|
|
3356
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3357
|
+
* https://openapi-generator.tech
|
|
3358
|
+
* Do not edit the class manually.
|
|
3359
|
+
*/
|
|
3360
|
+
const ExpiredOrderStatusNameEnum = {
|
|
3361
|
+
Expired: 'EXPIRED'
|
|
3362
|
+
};
|
|
3363
|
+
|
|
3364
|
+
/* tslint:disable */
|
|
3365
|
+
/* eslint-disable */
|
|
3366
|
+
/**
|
|
3367
|
+
* Immutable zkEVM API
|
|
3368
|
+
* Immutable Multi Rollup API
|
|
3369
|
+
*
|
|
3370
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3371
|
+
* Contact: support@immutable.com
|
|
3372
|
+
*
|
|
3373
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3374
|
+
* https://openapi-generator.tech
|
|
3375
|
+
* Do not edit the class manually.
|
|
3376
|
+
*/
|
|
3377
|
+
const FailedOrderCancellationReasonCodeEnum = {
|
|
3378
|
+
AlreadyFilled: 'ALREADY_FILLED'
|
|
3379
|
+
};
|
|
3380
|
+
|
|
3320
3381
|
/* tslint:disable */
|
|
3321
3382
|
/* eslint-disable */
|
|
3322
3383
|
/**
|
|
@@ -3337,6 +3398,40 @@ const FeeFeeTypeEnum = {
|
|
|
3337
3398
|
Protocol: 'PROTOCOL'
|
|
3338
3399
|
};
|
|
3339
3400
|
|
|
3401
|
+
/* tslint:disable */
|
|
3402
|
+
/* eslint-disable */
|
|
3403
|
+
/**
|
|
3404
|
+
* Immutable zkEVM API
|
|
3405
|
+
* Immutable Multi Rollup API
|
|
3406
|
+
*
|
|
3407
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3408
|
+
* Contact: support@immutable.com
|
|
3409
|
+
*
|
|
3410
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3411
|
+
* https://openapi-generator.tech
|
|
3412
|
+
* Do not edit the class manually.
|
|
3413
|
+
*/
|
|
3414
|
+
const FilledOrderStatusNameEnum = {
|
|
3415
|
+
Filled: 'FILLED'
|
|
3416
|
+
};
|
|
3417
|
+
|
|
3418
|
+
/* tslint:disable */
|
|
3419
|
+
/* eslint-disable */
|
|
3420
|
+
/**
|
|
3421
|
+
* Immutable zkEVM API
|
|
3422
|
+
* Immutable Multi Rollup API
|
|
3423
|
+
*
|
|
3424
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3425
|
+
* Contact: support@immutable.com
|
|
3426
|
+
*
|
|
3427
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3428
|
+
* https://openapi-generator.tech
|
|
3429
|
+
* Do not edit the class manually.
|
|
3430
|
+
*/
|
|
3431
|
+
const InactiveOrderStatusNameEnum = {
|
|
3432
|
+
Inactive: 'INACTIVE'
|
|
3433
|
+
};
|
|
3434
|
+
|
|
3340
3435
|
/* tslint:disable */
|
|
3341
3436
|
/* eslint-disable */
|
|
3342
3437
|
/**
|
|
@@ -3394,13 +3489,30 @@ const NativeItemItemTypeEnum = {
|
|
|
3394
3489
|
* @export
|
|
3395
3490
|
* @enum {string}
|
|
3396
3491
|
*/
|
|
3397
|
-
const
|
|
3492
|
+
const OrderStatusName$1 = {
|
|
3398
3493
|
Pending: 'PENDING',
|
|
3399
3494
|
Active: 'ACTIVE',
|
|
3400
3495
|
Inactive: 'INACTIVE',
|
|
3401
3496
|
Filled: 'FILLED',
|
|
3402
|
-
|
|
3403
|
-
|
|
3497
|
+
Expired: 'EXPIRED',
|
|
3498
|
+
Cancelled: 'CANCELLED'
|
|
3499
|
+
};
|
|
3500
|
+
|
|
3501
|
+
/* tslint:disable */
|
|
3502
|
+
/* eslint-disable */
|
|
3503
|
+
/**
|
|
3504
|
+
* Immutable zkEVM API
|
|
3505
|
+
* Immutable Multi Rollup API
|
|
3506
|
+
*
|
|
3507
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3508
|
+
* Contact: support@immutable.com
|
|
3509
|
+
*
|
|
3510
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3511
|
+
* https://openapi-generator.tech
|
|
3512
|
+
* Do not edit the class manually.
|
|
3513
|
+
*/
|
|
3514
|
+
const PendingOrderStatusNameEnum = {
|
|
3515
|
+
Pending: 'PENDING'
|
|
3404
3516
|
};
|
|
3405
3517
|
|
|
3406
3518
|
/* tslint:disable */
|
|
@@ -3482,12 +3594,14 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3482
3594
|
APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
|
|
3483
3595
|
APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
|
|
3484
3596
|
APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
|
|
3597
|
+
ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
|
|
3485
3598
|
ActivitiesApi: ActivitiesApi,
|
|
3486
3599
|
ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
|
|
3487
3600
|
ActivitiesApiFactory: ActivitiesApiFactory,
|
|
3488
3601
|
ActivitiesApiFp: ActivitiesApiFp,
|
|
3489
3602
|
ActivityType: ActivityType,
|
|
3490
|
-
|
|
3603
|
+
CancelledOrderStatusCancellationTypeEnum: CancelledOrderStatusCancellationTypeEnum,
|
|
3604
|
+
CancelledOrderStatusNameEnum: CancelledOrderStatusNameEnum,
|
|
3491
3605
|
ChainsApi: ChainsApi,
|
|
3492
3606
|
ChainsApiAxiosParamCreator: ChainsApiAxiosParamCreator,
|
|
3493
3607
|
ChainsApiFactory: ChainsApiFactory,
|
|
@@ -3500,7 +3614,11 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3500
3614
|
Configuration: Configuration$2,
|
|
3501
3615
|
ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
|
|
3502
3616
|
ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
|
|
3617
|
+
ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
|
|
3618
|
+
FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
|
|
3503
3619
|
FeeFeeTypeEnum: FeeFeeTypeEnum,
|
|
3620
|
+
FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
|
|
3621
|
+
InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
|
|
3504
3622
|
MetadataApi: MetadataApi,
|
|
3505
3623
|
MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
|
|
3506
3624
|
MetadataApiFactory: MetadataApiFactory,
|
|
@@ -3515,7 +3633,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3515
3633
|
NftsApiAxiosParamCreator: NftsApiAxiosParamCreator,
|
|
3516
3634
|
NftsApiFactory: NftsApiFactory,
|
|
3517
3635
|
NftsApiFp: NftsApiFp,
|
|
3518
|
-
|
|
3636
|
+
OrderStatusName: OrderStatusName$1,
|
|
3519
3637
|
OrdersApi: OrdersApi,
|
|
3520
3638
|
OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
|
|
3521
3639
|
OrdersApiFactory: OrdersApiFactory,
|
|
@@ -3524,6 +3642,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3524
3642
|
PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
|
|
3525
3643
|
PassportApiFactory: PassportApiFactory,
|
|
3526
3644
|
PassportApiFp: PassportApiFp,
|
|
3645
|
+
PendingOrderStatusNameEnum: PendingOrderStatusNameEnum,
|
|
3527
3646
|
ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
|
|
3528
3647
|
SaleFeeTypeEnum: SaleFeeTypeEnum,
|
|
3529
3648
|
TokenContractType: TokenContractType,
|
|
@@ -3555,7 +3674,7 @@ class MultiRollupApiClients {
|
|
|
3555
3674
|
}
|
|
3556
3675
|
|
|
3557
3676
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3558
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.27.
|
|
3677
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.27.1' };
|
|
3559
3678
|
const createConfig = ({ basePath, headers, }) => {
|
|
3560
3679
|
if (!basePath.trim()) {
|
|
3561
3680
|
throw Error('basePath can not be empty');
|
|
@@ -3615,7 +3734,7 @@ class APIError extends Error {
|
|
|
3615
3734
|
|
|
3616
3735
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3617
3736
|
const defaultHeaders = {
|
|
3618
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.
|
|
3737
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.1',
|
|
3619
3738
|
};
|
|
3620
3739
|
/**
|
|
3621
3740
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -4019,7 +4138,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
4019
4138
|
chainID,
|
|
4020
4139
|
coreContractAddress,
|
|
4021
4140
|
registrationContractAddress,
|
|
4022
|
-
sdkVersion: 'ts-immutable-sdk-0.27.
|
|
4141
|
+
sdkVersion: 'ts-immutable-sdk-0.27.1',
|
|
4023
4142
|
});
|
|
4024
4143
|
/**
|
|
4025
4144
|
* Sets `sdkVersion` at the time of build
|
|
@@ -32944,7 +33063,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
|
|
|
32944
33063
|
})($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
|
|
32945
33064
|
|
|
32946
33065
|
|
|
32947
|
-
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.
|
|
33066
|
+
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.1";
|
|
32948
33067
|
const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
|
|
32949
33068
|
const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
|
|
32950
33069
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2302,6 +2302,12 @@ interface CollectionsApiListCollectionsRequest$1 {
|
|
|
2302
2302
|
* @memberof CollectionsApiListCollections
|
|
2303
2303
|
*/
|
|
2304
2304
|
readonly chainName: string;
|
|
2305
|
+
/**
|
|
2306
|
+
* List of contract addresses to filter by
|
|
2307
|
+
* @type {Array<string>}
|
|
2308
|
+
* @memberof CollectionsApiListCollections
|
|
2309
|
+
*/
|
|
2310
|
+
readonly contractAddress?: Array<string>;
|
|
2305
2311
|
/**
|
|
2306
2312
|
* Datetime to use as the oldest updated timestamp
|
|
2307
2313
|
* @type {string}
|
package/dist/index.js
CHANGED
|
@@ -697,13 +697,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
697
697
|
* List all collections
|
|
698
698
|
* @summary List all collections
|
|
699
699
|
* @param {string} chainName The name of chain
|
|
700
|
+
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
700
701
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
701
702
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
702
703
|
* @param {number} [pageSize] Maximum number of items to return
|
|
703
704
|
* @param {*} [options] Override http request option.
|
|
704
705
|
* @throws {RequiredError}
|
|
705
706
|
*/
|
|
706
|
-
listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
707
|
+
listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
707
708
|
// verify required parameter 'chainName' is not null or undefined
|
|
708
709
|
assertParamExists$1('listCollections', 'chainName', chainName);
|
|
709
710
|
const localVarPath = `/v1/chains/{chain_name}/collections`
|
|
@@ -717,6 +718,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
717
718
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
718
719
|
const localVarHeaderParameter = {};
|
|
719
720
|
const localVarQueryParameter = {};
|
|
721
|
+
if (contractAddress) {
|
|
722
|
+
localVarQueryParameter['contract_address'] = contractAddress;
|
|
723
|
+
}
|
|
720
724
|
if (fromUpdatedAt !== undefined) {
|
|
721
725
|
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
722
726
|
fromUpdatedAt.toISOString() :
|
|
@@ -842,14 +846,15 @@ const CollectionsApiFp = function (configuration) {
|
|
|
842
846
|
* List all collections
|
|
843
847
|
* @summary List all collections
|
|
844
848
|
* @param {string} chainName The name of chain
|
|
849
|
+
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
845
850
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
846
851
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
847
852
|
* @param {number} [pageSize] Maximum number of items to return
|
|
848
853
|
* @param {*} [options] Override http request option.
|
|
849
854
|
* @throws {RequiredError}
|
|
850
855
|
*/
|
|
851
|
-
async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
852
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
856
|
+
async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
857
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
|
|
853
858
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
854
859
|
},
|
|
855
860
|
/**
|
|
@@ -903,14 +908,15 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
903
908
|
* List all collections
|
|
904
909
|
* @summary List all collections
|
|
905
910
|
* @param {string} chainName The name of chain
|
|
911
|
+
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
906
912
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
907
913
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
908
914
|
* @param {number} [pageSize] Maximum number of items to return
|
|
909
915
|
* @param {*} [options] Override http request option.
|
|
910
916
|
* @throws {RequiredError}
|
|
911
917
|
*/
|
|
912
|
-
listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
913
|
-
return localVarFp.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
918
|
+
listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
919
|
+
return localVarFp.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
914
920
|
},
|
|
915
921
|
/**
|
|
916
922
|
* List collections by NFT owner account address
|
|
@@ -966,7 +972,7 @@ class CollectionsApi extends BaseAPI$1 {
|
|
|
966
972
|
* @memberof CollectionsApi
|
|
967
973
|
*/
|
|
968
974
|
listCollections(requestParameters, options) {
|
|
969
|
-
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
975
|
+
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
970
976
|
}
|
|
971
977
|
/**
|
|
972
978
|
* List collections by NFT owner account address
|
|
@@ -2220,7 +2226,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2220
2226
|
* List all listings
|
|
2221
2227
|
* @summary List all listings
|
|
2222
2228
|
* @param {string} chainName
|
|
2223
|
-
* @param {
|
|
2229
|
+
* @param {OrderStatusName} [status] Order status to filter by
|
|
2224
2230
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
2225
2231
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2226
2232
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
@@ -2399,7 +2405,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
2399
2405
|
* List all listings
|
|
2400
2406
|
* @summary List all listings
|
|
2401
2407
|
* @param {string} chainName
|
|
2402
|
-
* @param {
|
|
2408
|
+
* @param {OrderStatusName} [status] Order status to filter by
|
|
2403
2409
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
2404
2410
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2405
2411
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
@@ -2498,7 +2504,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
2498
2504
|
* List all listings
|
|
2499
2505
|
* @summary List all listings
|
|
2500
2506
|
* @param {string} chainName
|
|
2501
|
-
* @param {
|
|
2507
|
+
* @param {OrderStatusName} [status] Order status to filter by
|
|
2502
2508
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
2503
2509
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2504
2510
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
@@ -3195,6 +3201,23 @@ const APIError501AllOfCodeEnum = {
|
|
|
3195
3201
|
NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
|
|
3196
3202
|
};
|
|
3197
3203
|
|
|
3204
|
+
/* tslint:disable */
|
|
3205
|
+
/* eslint-disable */
|
|
3206
|
+
/**
|
|
3207
|
+
* Immutable zkEVM API
|
|
3208
|
+
* Immutable Multi Rollup API
|
|
3209
|
+
*
|
|
3210
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3211
|
+
* Contact: support@immutable.com
|
|
3212
|
+
*
|
|
3213
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3214
|
+
* https://openapi-generator.tech
|
|
3215
|
+
* Do not edit the class manually.
|
|
3216
|
+
*/
|
|
3217
|
+
const ActiveOrderStatusNameEnum = {
|
|
3218
|
+
Active: 'ACTIVE'
|
|
3219
|
+
};
|
|
3220
|
+
|
|
3198
3221
|
/* tslint:disable */
|
|
3199
3222
|
/* eslint-disable */
|
|
3200
3223
|
/**
|
|
@@ -3235,8 +3258,12 @@ const ActivityType = {
|
|
|
3235
3258
|
* https://openapi-generator.tech
|
|
3236
3259
|
* Do not edit the class manually.
|
|
3237
3260
|
*/
|
|
3238
|
-
const
|
|
3239
|
-
|
|
3261
|
+
const CancelledOrderStatusNameEnum = {
|
|
3262
|
+
Cancelled: 'CANCELLED'
|
|
3263
|
+
};
|
|
3264
|
+
const CancelledOrderStatusCancellationTypeEnum = {
|
|
3265
|
+
OnChain: 'ON_CHAIN',
|
|
3266
|
+
OffChain: 'OFF_CHAIN'
|
|
3240
3267
|
};
|
|
3241
3268
|
|
|
3242
3269
|
/* tslint:disable */
|
|
@@ -3295,6 +3322,40 @@ const ERC721ItemItemTypeEnum = {
|
|
|
3295
3322
|
Erc721: 'ERC721'
|
|
3296
3323
|
};
|
|
3297
3324
|
|
|
3325
|
+
/* tslint:disable */
|
|
3326
|
+
/* eslint-disable */
|
|
3327
|
+
/**
|
|
3328
|
+
* Immutable zkEVM API
|
|
3329
|
+
* Immutable Multi Rollup API
|
|
3330
|
+
*
|
|
3331
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3332
|
+
* Contact: support@immutable.com
|
|
3333
|
+
*
|
|
3334
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3335
|
+
* https://openapi-generator.tech
|
|
3336
|
+
* Do not edit the class manually.
|
|
3337
|
+
*/
|
|
3338
|
+
const ExpiredOrderStatusNameEnum = {
|
|
3339
|
+
Expired: 'EXPIRED'
|
|
3340
|
+
};
|
|
3341
|
+
|
|
3342
|
+
/* tslint:disable */
|
|
3343
|
+
/* eslint-disable */
|
|
3344
|
+
/**
|
|
3345
|
+
* Immutable zkEVM API
|
|
3346
|
+
* Immutable Multi Rollup API
|
|
3347
|
+
*
|
|
3348
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3349
|
+
* Contact: support@immutable.com
|
|
3350
|
+
*
|
|
3351
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3352
|
+
* https://openapi-generator.tech
|
|
3353
|
+
* Do not edit the class manually.
|
|
3354
|
+
*/
|
|
3355
|
+
const FailedOrderCancellationReasonCodeEnum = {
|
|
3356
|
+
AlreadyFilled: 'ALREADY_FILLED'
|
|
3357
|
+
};
|
|
3358
|
+
|
|
3298
3359
|
/* tslint:disable */
|
|
3299
3360
|
/* eslint-disable */
|
|
3300
3361
|
/**
|
|
@@ -3315,6 +3376,40 @@ const FeeFeeTypeEnum = {
|
|
|
3315
3376
|
Protocol: 'PROTOCOL'
|
|
3316
3377
|
};
|
|
3317
3378
|
|
|
3379
|
+
/* tslint:disable */
|
|
3380
|
+
/* eslint-disable */
|
|
3381
|
+
/**
|
|
3382
|
+
* Immutable zkEVM API
|
|
3383
|
+
* Immutable Multi Rollup API
|
|
3384
|
+
*
|
|
3385
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3386
|
+
* Contact: support@immutable.com
|
|
3387
|
+
*
|
|
3388
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3389
|
+
* https://openapi-generator.tech
|
|
3390
|
+
* Do not edit the class manually.
|
|
3391
|
+
*/
|
|
3392
|
+
const FilledOrderStatusNameEnum = {
|
|
3393
|
+
Filled: 'FILLED'
|
|
3394
|
+
};
|
|
3395
|
+
|
|
3396
|
+
/* tslint:disable */
|
|
3397
|
+
/* eslint-disable */
|
|
3398
|
+
/**
|
|
3399
|
+
* Immutable zkEVM API
|
|
3400
|
+
* Immutable Multi Rollup API
|
|
3401
|
+
*
|
|
3402
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3403
|
+
* Contact: support@immutable.com
|
|
3404
|
+
*
|
|
3405
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3406
|
+
* https://openapi-generator.tech
|
|
3407
|
+
* Do not edit the class manually.
|
|
3408
|
+
*/
|
|
3409
|
+
const InactiveOrderStatusNameEnum = {
|
|
3410
|
+
Inactive: 'INACTIVE'
|
|
3411
|
+
};
|
|
3412
|
+
|
|
3318
3413
|
/* tslint:disable */
|
|
3319
3414
|
/* eslint-disable */
|
|
3320
3415
|
/**
|
|
@@ -3372,13 +3467,30 @@ const NativeItemItemTypeEnum = {
|
|
|
3372
3467
|
* @export
|
|
3373
3468
|
* @enum {string}
|
|
3374
3469
|
*/
|
|
3375
|
-
const
|
|
3470
|
+
const OrderStatusName$1 = {
|
|
3376
3471
|
Pending: 'PENDING',
|
|
3377
3472
|
Active: 'ACTIVE',
|
|
3378
3473
|
Inactive: 'INACTIVE',
|
|
3379
3474
|
Filled: 'FILLED',
|
|
3380
|
-
|
|
3381
|
-
|
|
3475
|
+
Expired: 'EXPIRED',
|
|
3476
|
+
Cancelled: 'CANCELLED'
|
|
3477
|
+
};
|
|
3478
|
+
|
|
3479
|
+
/* tslint:disable */
|
|
3480
|
+
/* eslint-disable */
|
|
3481
|
+
/**
|
|
3482
|
+
* Immutable zkEVM API
|
|
3483
|
+
* Immutable Multi Rollup API
|
|
3484
|
+
*
|
|
3485
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3486
|
+
* Contact: support@immutable.com
|
|
3487
|
+
*
|
|
3488
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3489
|
+
* https://openapi-generator.tech
|
|
3490
|
+
* Do not edit the class manually.
|
|
3491
|
+
*/
|
|
3492
|
+
const PendingOrderStatusNameEnum = {
|
|
3493
|
+
Pending: 'PENDING'
|
|
3382
3494
|
};
|
|
3383
3495
|
|
|
3384
3496
|
/* tslint:disable */
|
|
@@ -3460,12 +3572,14 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3460
3572
|
APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
|
|
3461
3573
|
APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
|
|
3462
3574
|
APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
|
|
3575
|
+
ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
|
|
3463
3576
|
ActivitiesApi: ActivitiesApi,
|
|
3464
3577
|
ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
|
|
3465
3578
|
ActivitiesApiFactory: ActivitiesApiFactory,
|
|
3466
3579
|
ActivitiesApiFp: ActivitiesApiFp,
|
|
3467
3580
|
ActivityType: ActivityType,
|
|
3468
|
-
|
|
3581
|
+
CancelledOrderStatusCancellationTypeEnum: CancelledOrderStatusCancellationTypeEnum,
|
|
3582
|
+
CancelledOrderStatusNameEnum: CancelledOrderStatusNameEnum,
|
|
3469
3583
|
ChainsApi: ChainsApi,
|
|
3470
3584
|
ChainsApiAxiosParamCreator: ChainsApiAxiosParamCreator,
|
|
3471
3585
|
ChainsApiFactory: ChainsApiFactory,
|
|
@@ -3478,7 +3592,11 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3478
3592
|
Configuration: Configuration$2,
|
|
3479
3593
|
ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
|
|
3480
3594
|
ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
|
|
3595
|
+
ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
|
|
3596
|
+
FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
|
|
3481
3597
|
FeeFeeTypeEnum: FeeFeeTypeEnum,
|
|
3598
|
+
FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
|
|
3599
|
+
InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
|
|
3482
3600
|
MetadataApi: MetadataApi,
|
|
3483
3601
|
MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
|
|
3484
3602
|
MetadataApiFactory: MetadataApiFactory,
|
|
@@ -3493,7 +3611,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3493
3611
|
NftsApiAxiosParamCreator: NftsApiAxiosParamCreator,
|
|
3494
3612
|
NftsApiFactory: NftsApiFactory,
|
|
3495
3613
|
NftsApiFp: NftsApiFp,
|
|
3496
|
-
|
|
3614
|
+
OrderStatusName: OrderStatusName$1,
|
|
3497
3615
|
OrdersApi: OrdersApi,
|
|
3498
3616
|
OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
|
|
3499
3617
|
OrdersApiFactory: OrdersApiFactory,
|
|
@@ -3502,6 +3620,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3502
3620
|
PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
|
|
3503
3621
|
PassportApiFactory: PassportApiFactory,
|
|
3504
3622
|
PassportApiFp: PassportApiFp,
|
|
3623
|
+
PendingOrderStatusNameEnum: PendingOrderStatusNameEnum,
|
|
3505
3624
|
ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
|
|
3506
3625
|
SaleFeeTypeEnum: SaleFeeTypeEnum,
|
|
3507
3626
|
TokenContractType: TokenContractType,
|
|
@@ -3533,7 +3652,7 @@ class MultiRollupApiClients {
|
|
|
3533
3652
|
}
|
|
3534
3653
|
|
|
3535
3654
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3536
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.27.
|
|
3655
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.27.1' };
|
|
3537
3656
|
const createConfig = ({ basePath, headers, }) => {
|
|
3538
3657
|
if (!basePath.trim()) {
|
|
3539
3658
|
throw Error('basePath can not be empty');
|
|
@@ -3593,7 +3712,7 @@ class APIError extends Error {
|
|
|
3593
3712
|
|
|
3594
3713
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3595
3714
|
const defaultHeaders = {
|
|
3596
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.
|
|
3715
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.1',
|
|
3597
3716
|
};
|
|
3598
3717
|
/**
|
|
3599
3718
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -3997,7 +4116,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
3997
4116
|
chainID,
|
|
3998
4117
|
coreContractAddress,
|
|
3999
4118
|
registrationContractAddress,
|
|
4000
|
-
sdkVersion: 'ts-immutable-sdk-0.27.
|
|
4119
|
+
sdkVersion: 'ts-immutable-sdk-0.27.1',
|
|
4001
4120
|
});
|
|
4002
4121
|
/**
|
|
4003
4122
|
* Sets `sdkVersion` at the time of build
|
|
@@ -32922,7 +33041,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
|
|
|
32922
33041
|
})($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
|
|
32923
33042
|
|
|
32924
33043
|
|
|
32925
|
-
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.
|
|
33044
|
+
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.1";
|
|
32926
33045
|
const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
|
|
32927
33046
|
const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
|
|
32928
33047
|
|