@imtbl/sdk 0.16.0 → 0.17.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 +151 -26
- package/dist/blockchain_data.js +351 -33
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +236 -3
- package/dist/checkout_sdk.js +1139 -309
- package/dist/checkout_widgets.d.ts +1 -0
- package/dist/checkout_widgets.js +1 -1
- package/dist/erc721.d.ts +40 -0
- package/dist/erc721.js +173 -1
- package/dist/erc721_mint_by_id.d.ts +14 -0
- package/dist/erc721_mint_by_id.js +165 -19
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +15 -15
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1967 -489
- package/dist/index.d.ts +594 -18
- package/dist/index.js +1809 -331
- package/dist/orderbook.d.ts +150 -4
- package/dist/orderbook.js +135 -0
- package/dist/passport.d.ts +1 -0
- package/dist/passport.js +275 -12
- package/package.json +6 -2
package/dist/blockchain_data.js
CHANGED
|
@@ -585,6 +585,47 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
585
585
|
options: localVarRequestOptions,
|
|
586
586
|
};
|
|
587
587
|
},
|
|
588
|
+
/**
|
|
589
|
+
* List collections by NFT owner account address
|
|
590
|
+
* @summary List collections by NFT owner
|
|
591
|
+
* @param {string} accountAddress Account address
|
|
592
|
+
* @param {string} chainName The name of chain
|
|
593
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
594
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
listCollectionsByNFTOwner: async (accountAddress, chainName, pageCursor, pageSize, options = {}) => {
|
|
599
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
600
|
+
assertParamExists('listCollectionsByNFTOwner', 'accountAddress', accountAddress);
|
|
601
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
602
|
+
assertParamExists('listCollectionsByNFTOwner', 'chainName', chainName);
|
|
603
|
+
const localVarPath = `/v1/chains/{chain_name}/accounts/{account_address}/collections`
|
|
604
|
+
.replace(`{${"account_address"}}`, encodeURIComponent(String(accountAddress)))
|
|
605
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
606
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
607
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
608
|
+
let baseOptions;
|
|
609
|
+
if (configuration) {
|
|
610
|
+
baseOptions = configuration.baseOptions;
|
|
611
|
+
}
|
|
612
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
613
|
+
const localVarHeaderParameter = {};
|
|
614
|
+
const localVarQueryParameter = {};
|
|
615
|
+
if (pageCursor !== undefined) {
|
|
616
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
617
|
+
}
|
|
618
|
+
if (pageSize !== undefined) {
|
|
619
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
620
|
+
}
|
|
621
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
622
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
623
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
624
|
+
return {
|
|
625
|
+
url: toPathString(localVarUrlObj),
|
|
626
|
+
options: localVarRequestOptions,
|
|
627
|
+
};
|
|
628
|
+
},
|
|
588
629
|
};
|
|
589
630
|
};
|
|
590
631
|
/**
|
|
@@ -619,6 +660,20 @@ const CollectionsApiFp = function (configuration) {
|
|
|
619
660
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, pageCursor, pageSize, options);
|
|
620
661
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
621
662
|
},
|
|
663
|
+
/**
|
|
664
|
+
* List collections by NFT owner account address
|
|
665
|
+
* @summary List collections by NFT owner
|
|
666
|
+
* @param {string} accountAddress Account address
|
|
667
|
+
* @param {string} chainName The name of chain
|
|
668
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
669
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
*/
|
|
673
|
+
async listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options) {
|
|
674
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options);
|
|
675
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
676
|
+
},
|
|
622
677
|
};
|
|
623
678
|
};
|
|
624
679
|
/**
|
|
@@ -651,6 +706,19 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
651
706
|
listCollections(chainName, pageCursor, pageSize, options) {
|
|
652
707
|
return localVarFp.listCollections(chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
653
708
|
},
|
|
709
|
+
/**
|
|
710
|
+
* List collections by NFT owner account address
|
|
711
|
+
* @summary List collections by NFT owner
|
|
712
|
+
* @param {string} accountAddress Account address
|
|
713
|
+
* @param {string} chainName The name of chain
|
|
714
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
715
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options) {
|
|
720
|
+
return localVarFp.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
721
|
+
},
|
|
654
722
|
};
|
|
655
723
|
};
|
|
656
724
|
/**
|
|
@@ -682,6 +750,17 @@ class CollectionsApi extends BaseAPI {
|
|
|
682
750
|
listCollections(requestParameters, options) {
|
|
683
751
|
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
684
752
|
}
|
|
753
|
+
/**
|
|
754
|
+
* List collections by NFT owner account address
|
|
755
|
+
* @summary List collections by NFT owner
|
|
756
|
+
* @param {CollectionsApiListCollectionsByNFTOwnerRequest} requestParameters Request parameters.
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
* @memberof CollectionsApi
|
|
760
|
+
*/
|
|
761
|
+
listCollectionsByNFTOwner(requestParameters, options) {
|
|
762
|
+
return CollectionsApiFp(this.configuration).listCollectionsByNFTOwner(requestParameters.accountAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
763
|
+
}
|
|
685
764
|
}
|
|
686
765
|
|
|
687
766
|
/* tslint:disable */
|
|
@@ -1159,16 +1238,16 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1159
1238
|
* Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
|
|
1160
1239
|
* @summary Retrieve fulfillment data for orders
|
|
1161
1240
|
* @param {string} chainName
|
|
1162
|
-
* @param {Array<
|
|
1241
|
+
* @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
|
|
1163
1242
|
* @param {*} [options] Override http request option.
|
|
1164
1243
|
* @throws {RequiredError}
|
|
1165
1244
|
*/
|
|
1166
|
-
fulfillmentData: async (chainName,
|
|
1245
|
+
fulfillmentData: async (chainName, fulfillmentDataRequest, options = {}) => {
|
|
1167
1246
|
// verify required parameter 'chainName' is not null or undefined
|
|
1168
1247
|
assertParamExists('fulfillmentData', 'chainName', chainName);
|
|
1169
|
-
// verify required parameter '
|
|
1170
|
-
assertParamExists('fulfillmentData', '
|
|
1171
|
-
const localVarPath = `/v1/chains/{chain_name}/orders/
|
|
1248
|
+
// verify required parameter 'fulfillmentDataRequest' is not null or undefined
|
|
1249
|
+
assertParamExists('fulfillmentData', 'fulfillmentDataRequest', fulfillmentDataRequest);
|
|
1250
|
+
const localVarPath = `/v1/chains/{chain_name}/orders/fulfillment-data`
|
|
1172
1251
|
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1173
1252
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1174
1253
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1183,7 +1262,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1183
1262
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1184
1263
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1185
1264
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1186
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1265
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fulfillmentDataRequest, localVarRequestOptions, configuration);
|
|
1187
1266
|
return {
|
|
1188
1267
|
url: toPathString(localVarUrlObj),
|
|
1189
1268
|
options: localVarRequestOptions,
|
|
@@ -1222,6 +1301,39 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1222
1301
|
options: localVarRequestOptions,
|
|
1223
1302
|
};
|
|
1224
1303
|
},
|
|
1304
|
+
/**
|
|
1305
|
+
* Get a single trade by ID
|
|
1306
|
+
* @summary Get a single trade by ID
|
|
1307
|
+
* @param {string} chainName
|
|
1308
|
+
* @param {string} tradeId Global Trade identifier
|
|
1309
|
+
* @param {*} [options] Override http request option.
|
|
1310
|
+
* @throws {RequiredError}
|
|
1311
|
+
*/
|
|
1312
|
+
getTrade: async (chainName, tradeId, options = {}) => {
|
|
1313
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1314
|
+
assertParamExists('getTrade', 'chainName', chainName);
|
|
1315
|
+
// verify required parameter 'tradeId' is not null or undefined
|
|
1316
|
+
assertParamExists('getTrade', 'tradeId', tradeId);
|
|
1317
|
+
const localVarPath = `/v1/chains/{chain_name}/trades/{trade_id}`
|
|
1318
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
|
|
1319
|
+
.replace(`{${"trade_id"}}`, encodeURIComponent(String(tradeId)));
|
|
1320
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1321
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1322
|
+
let baseOptions;
|
|
1323
|
+
if (configuration) {
|
|
1324
|
+
baseOptions = configuration.baseOptions;
|
|
1325
|
+
}
|
|
1326
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1327
|
+
const localVarHeaderParameter = {};
|
|
1328
|
+
const localVarQueryParameter = {};
|
|
1329
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1330
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1331
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1332
|
+
return {
|
|
1333
|
+
url: toPathString(localVarUrlObj),
|
|
1334
|
+
options: localVarRequestOptions,
|
|
1335
|
+
};
|
|
1336
|
+
},
|
|
1225
1337
|
/**
|
|
1226
1338
|
* List all listings
|
|
1227
1339
|
* @summary List all listings
|
|
@@ -1283,6 +1395,55 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1283
1395
|
options: localVarRequestOptions,
|
|
1284
1396
|
};
|
|
1285
1397
|
},
|
|
1398
|
+
/**
|
|
1399
|
+
* List all trades
|
|
1400
|
+
* @summary List all trades
|
|
1401
|
+
* @param {string} chainName
|
|
1402
|
+
* @param {string} [accountAddress]
|
|
1403
|
+
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1404
|
+
* @param {'created_at'} [sortBy] Trade field to sort by
|
|
1405
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
1406
|
+
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1407
|
+
* @param {*} [options] Override http request option.
|
|
1408
|
+
* @throws {RequiredError}
|
|
1409
|
+
*/
|
|
1410
|
+
listTrades: async (chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
1411
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1412
|
+
assertParamExists('listTrades', 'chainName', chainName);
|
|
1413
|
+
const localVarPath = `/v1/chains/{chain_name}/trades`
|
|
1414
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1415
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1416
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1417
|
+
let baseOptions;
|
|
1418
|
+
if (configuration) {
|
|
1419
|
+
baseOptions = configuration.baseOptions;
|
|
1420
|
+
}
|
|
1421
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1422
|
+
const localVarHeaderParameter = {};
|
|
1423
|
+
const localVarQueryParameter = {};
|
|
1424
|
+
if (accountAddress !== undefined) {
|
|
1425
|
+
localVarQueryParameter['account_address'] = accountAddress;
|
|
1426
|
+
}
|
|
1427
|
+
if (pageSize !== undefined) {
|
|
1428
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1429
|
+
}
|
|
1430
|
+
if (sortBy !== undefined) {
|
|
1431
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
1432
|
+
}
|
|
1433
|
+
if (sortDirection !== undefined) {
|
|
1434
|
+
localVarQueryParameter['sort_direction'] = sortDirection;
|
|
1435
|
+
}
|
|
1436
|
+
if (pageCursor !== undefined) {
|
|
1437
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1438
|
+
}
|
|
1439
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1440
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1441
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1442
|
+
return {
|
|
1443
|
+
url: toPathString(localVarUrlObj),
|
|
1444
|
+
options: localVarRequestOptions,
|
|
1445
|
+
};
|
|
1446
|
+
},
|
|
1286
1447
|
};
|
|
1287
1448
|
};
|
|
1288
1449
|
/**
|
|
@@ -1308,12 +1469,12 @@ const OrdersApiFp = function (configuration) {
|
|
|
1308
1469
|
* Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
|
|
1309
1470
|
* @summary Retrieve fulfillment data for orders
|
|
1310
1471
|
* @param {string} chainName
|
|
1311
|
-
* @param {Array<
|
|
1472
|
+
* @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
|
|
1312
1473
|
* @param {*} [options] Override http request option.
|
|
1313
1474
|
* @throws {RequiredError}
|
|
1314
1475
|
*/
|
|
1315
|
-
async fulfillmentData(chainName,
|
|
1316
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.fulfillmentData(chainName,
|
|
1476
|
+
async fulfillmentData(chainName, fulfillmentDataRequest, options) {
|
|
1477
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fulfillmentData(chainName, fulfillmentDataRequest, options);
|
|
1317
1478
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1318
1479
|
},
|
|
1319
1480
|
/**
|
|
@@ -1328,6 +1489,18 @@ const OrdersApiFp = function (configuration) {
|
|
|
1328
1489
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getListing(chainName, listingId, options);
|
|
1329
1490
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1330
1491
|
},
|
|
1492
|
+
/**
|
|
1493
|
+
* Get a single trade by ID
|
|
1494
|
+
* @summary Get a single trade by ID
|
|
1495
|
+
* @param {string} chainName
|
|
1496
|
+
* @param {string} tradeId Global Trade identifier
|
|
1497
|
+
* @param {*} [options] Override http request option.
|
|
1498
|
+
* @throws {RequiredError}
|
|
1499
|
+
*/
|
|
1500
|
+
async getTrade(chainName, tradeId, options) {
|
|
1501
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTrade(chainName, tradeId, options);
|
|
1502
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1503
|
+
},
|
|
1331
1504
|
/**
|
|
1332
1505
|
* List all listings
|
|
1333
1506
|
* @summary List all listings
|
|
@@ -1347,6 +1520,22 @@ const OrdersApiFp = function (configuration) {
|
|
|
1347
1520
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1348
1521
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1349
1522
|
},
|
|
1523
|
+
/**
|
|
1524
|
+
* List all trades
|
|
1525
|
+
* @summary List all trades
|
|
1526
|
+
* @param {string} chainName
|
|
1527
|
+
* @param {string} [accountAddress]
|
|
1528
|
+
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1529
|
+
* @param {'created_at'} [sortBy] Trade field to sort by
|
|
1530
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
1531
|
+
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1532
|
+
* @param {*} [options] Override http request option.
|
|
1533
|
+
* @throws {RequiredError}
|
|
1534
|
+
*/
|
|
1535
|
+
async listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1537
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1538
|
+
},
|
|
1350
1539
|
};
|
|
1351
1540
|
};
|
|
1352
1541
|
/**
|
|
@@ -1371,12 +1560,12 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1371
1560
|
* Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
|
|
1372
1561
|
* @summary Retrieve fulfillment data for orders
|
|
1373
1562
|
* @param {string} chainName
|
|
1374
|
-
* @param {Array<
|
|
1563
|
+
* @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
|
|
1375
1564
|
* @param {*} [options] Override http request option.
|
|
1376
1565
|
* @throws {RequiredError}
|
|
1377
1566
|
*/
|
|
1378
|
-
fulfillmentData(chainName,
|
|
1379
|
-
return localVarFp.fulfillmentData(chainName,
|
|
1567
|
+
fulfillmentData(chainName, fulfillmentDataRequest, options) {
|
|
1568
|
+
return localVarFp.fulfillmentData(chainName, fulfillmentDataRequest, options).then((request) => request(axios, basePath));
|
|
1380
1569
|
},
|
|
1381
1570
|
/**
|
|
1382
1571
|
* Get a single listing by ID
|
|
@@ -1389,6 +1578,17 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1389
1578
|
getListing(chainName, listingId, options) {
|
|
1390
1579
|
return localVarFp.getListing(chainName, listingId, options).then((request) => request(axios, basePath));
|
|
1391
1580
|
},
|
|
1581
|
+
/**
|
|
1582
|
+
* Get a single trade by ID
|
|
1583
|
+
* @summary Get a single trade by ID
|
|
1584
|
+
* @param {string} chainName
|
|
1585
|
+
* @param {string} tradeId Global Trade identifier
|
|
1586
|
+
* @param {*} [options] Override http request option.
|
|
1587
|
+
* @throws {RequiredError}
|
|
1588
|
+
*/
|
|
1589
|
+
getTrade(chainName, tradeId, options) {
|
|
1590
|
+
return localVarFp.getTrade(chainName, tradeId, options).then((request) => request(axios, basePath));
|
|
1591
|
+
},
|
|
1392
1592
|
/**
|
|
1393
1593
|
* List all listings
|
|
1394
1594
|
* @summary List all listings
|
|
@@ -1407,6 +1607,21 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1407
1607
|
listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1408
1608
|
return localVarFp.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
1409
1609
|
},
|
|
1610
|
+
/**
|
|
1611
|
+
* List all trades
|
|
1612
|
+
* @summary List all trades
|
|
1613
|
+
* @param {string} chainName
|
|
1614
|
+
* @param {string} [accountAddress]
|
|
1615
|
+
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1616
|
+
* @param {'created_at'} [sortBy] Trade field to sort by
|
|
1617
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
1618
|
+
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1619
|
+
* @param {*} [options] Override http request option.
|
|
1620
|
+
* @throws {RequiredError}
|
|
1621
|
+
*/
|
|
1622
|
+
listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1623
|
+
return localVarFp.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
1624
|
+
},
|
|
1410
1625
|
};
|
|
1411
1626
|
};
|
|
1412
1627
|
/**
|
|
@@ -1436,7 +1651,7 @@ class OrdersApi extends BaseAPI {
|
|
|
1436
1651
|
* @memberof OrdersApi
|
|
1437
1652
|
*/
|
|
1438
1653
|
fulfillmentData(requestParameters, options) {
|
|
1439
|
-
return OrdersApiFp(this.configuration).fulfillmentData(requestParameters.chainName, requestParameters.
|
|
1654
|
+
return OrdersApiFp(this.configuration).fulfillmentData(requestParameters.chainName, requestParameters.fulfillmentDataRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1440
1655
|
}
|
|
1441
1656
|
/**
|
|
1442
1657
|
* Get a single listing by ID
|
|
@@ -1449,6 +1664,17 @@ class OrdersApi extends BaseAPI {
|
|
|
1449
1664
|
getListing(requestParameters, options) {
|
|
1450
1665
|
return OrdersApiFp(this.configuration).getListing(requestParameters.chainName, requestParameters.listingId, options).then((request) => request(this.axios, this.basePath));
|
|
1451
1666
|
}
|
|
1667
|
+
/**
|
|
1668
|
+
* Get a single trade by ID
|
|
1669
|
+
* @summary Get a single trade by ID
|
|
1670
|
+
* @param {OrdersApiGetTradeRequest} requestParameters Request parameters.
|
|
1671
|
+
* @param {*} [options] Override http request option.
|
|
1672
|
+
* @throws {RequiredError}
|
|
1673
|
+
* @memberof OrdersApi
|
|
1674
|
+
*/
|
|
1675
|
+
getTrade(requestParameters, options) {
|
|
1676
|
+
return OrdersApiFp(this.configuration).getTrade(requestParameters.chainName, requestParameters.tradeId, options).then((request) => request(this.axios, this.basePath));
|
|
1677
|
+
}
|
|
1452
1678
|
/**
|
|
1453
1679
|
* List all listings
|
|
1454
1680
|
* @summary List all listings
|
|
@@ -1460,6 +1686,17 @@ class OrdersApi extends BaseAPI {
|
|
|
1460
1686
|
listListings(requestParameters, options) {
|
|
1461
1687
|
return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
1462
1688
|
}
|
|
1689
|
+
/**
|
|
1690
|
+
* List all trades
|
|
1691
|
+
* @summary List all trades
|
|
1692
|
+
* @param {OrdersApiListTradesRequest} requestParameters Request parameters.
|
|
1693
|
+
* @param {*} [options] Override http request option.
|
|
1694
|
+
* @throws {RequiredError}
|
|
1695
|
+
* @memberof OrdersApi
|
|
1696
|
+
*/
|
|
1697
|
+
listTrades(requestParameters, options) {
|
|
1698
|
+
return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
1699
|
+
}
|
|
1463
1700
|
}
|
|
1464
1701
|
|
|
1465
1702
|
/* tslint:disable */
|
|
@@ -1514,6 +1751,38 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
1514
1751
|
options: localVarRequestOptions,
|
|
1515
1752
|
};
|
|
1516
1753
|
},
|
|
1754
|
+
/**
|
|
1755
|
+
* Get all the Ethereum linked addresses for a user based on its userId
|
|
1756
|
+
* @summary Get Ethereum linked addresses for a user
|
|
1757
|
+
* @param {string} userId The user\'s userId
|
|
1758
|
+
* @param {*} [options] Override http request option.
|
|
1759
|
+
* @throws {RequiredError}
|
|
1760
|
+
*/
|
|
1761
|
+
getLinkedAddresses: async (userId, options = {}) => {
|
|
1762
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1763
|
+
assertParamExists('getLinkedAddresses', 'userId', userId);
|
|
1764
|
+
const localVarPath = `/passport-mr/v1/users/{userId}/linked-addresses`
|
|
1765
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
1766
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1767
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1768
|
+
let baseOptions;
|
|
1769
|
+
if (configuration) {
|
|
1770
|
+
baseOptions = configuration.baseOptions;
|
|
1771
|
+
}
|
|
1772
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1773
|
+
const localVarHeaderParameter = {};
|
|
1774
|
+
const localVarQueryParameter = {};
|
|
1775
|
+
// authentication BearerAuth required
|
|
1776
|
+
// http bearer authentication required
|
|
1777
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1778
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1779
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1780
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1781
|
+
return {
|
|
1782
|
+
url: toPathString(localVarUrlObj),
|
|
1783
|
+
options: localVarRequestOptions,
|
|
1784
|
+
};
|
|
1785
|
+
},
|
|
1517
1786
|
};
|
|
1518
1787
|
};
|
|
1519
1788
|
/**
|
|
@@ -1534,6 +1803,17 @@ const PassportApiFp = function (configuration) {
|
|
|
1534
1803
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterfactualAddress(createCounterfactualAddressRequest, options);
|
|
1535
1804
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1536
1805
|
},
|
|
1806
|
+
/**
|
|
1807
|
+
* Get all the Ethereum linked addresses for a user based on its userId
|
|
1808
|
+
* @summary Get Ethereum linked addresses for a user
|
|
1809
|
+
* @param {string} userId The user\'s userId
|
|
1810
|
+
* @param {*} [options] Override http request option.
|
|
1811
|
+
* @throws {RequiredError}
|
|
1812
|
+
*/
|
|
1813
|
+
async getLinkedAddresses(userId, options) {
|
|
1814
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLinkedAddresses(userId, options);
|
|
1815
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1816
|
+
},
|
|
1537
1817
|
};
|
|
1538
1818
|
};
|
|
1539
1819
|
/**
|
|
@@ -1553,6 +1833,16 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
1553
1833
|
createCounterfactualAddress(createCounterfactualAddressRequest, options) {
|
|
1554
1834
|
return localVarFp.createCounterfactualAddress(createCounterfactualAddressRequest, options).then((request) => request(axios, basePath));
|
|
1555
1835
|
},
|
|
1836
|
+
/**
|
|
1837
|
+
* Get all the Ethereum linked addresses for a user based on its userId
|
|
1838
|
+
* @summary Get Ethereum linked addresses for a user
|
|
1839
|
+
* @param {string} userId The user\'s userId
|
|
1840
|
+
* @param {*} [options] Override http request option.
|
|
1841
|
+
* @throws {RequiredError}
|
|
1842
|
+
*/
|
|
1843
|
+
getLinkedAddresses(userId, options) {
|
|
1844
|
+
return localVarFp.getLinkedAddresses(userId, options).then((request) => request(axios, basePath));
|
|
1845
|
+
},
|
|
1556
1846
|
};
|
|
1557
1847
|
};
|
|
1558
1848
|
/**
|
|
@@ -1573,6 +1863,17 @@ class PassportApi extends BaseAPI {
|
|
|
1573
1863
|
createCounterfactualAddress(requestParameters, options) {
|
|
1574
1864
|
return PassportApiFp(this.configuration).createCounterfactualAddress(requestParameters.createCounterfactualAddressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1575
1865
|
}
|
|
1866
|
+
/**
|
|
1867
|
+
* Get all the Ethereum linked addresses for a user based on its userId
|
|
1868
|
+
* @summary Get Ethereum linked addresses for a user
|
|
1869
|
+
* @param {PassportApiGetLinkedAddressesRequest} requestParameters Request parameters.
|
|
1870
|
+
* @param {*} [options] Override http request option.
|
|
1871
|
+
* @throws {RequiredError}
|
|
1872
|
+
* @memberof PassportApi
|
|
1873
|
+
*/
|
|
1874
|
+
getLinkedAddresses(requestParameters, options) {
|
|
1875
|
+
return PassportApiFp(this.configuration).getLinkedAddresses(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1876
|
+
}
|
|
1576
1877
|
}
|
|
1577
1878
|
|
|
1578
1879
|
/* tslint:disable */
|
|
@@ -2002,23 +2303,6 @@ const CollectionContractType = {
|
|
|
2002
2303
|
Erc721: 'ERC721'
|
|
2003
2304
|
};
|
|
2004
2305
|
|
|
2005
|
-
/* tslint:disable */
|
|
2006
|
-
/* eslint-disable */
|
|
2007
|
-
/**
|
|
2008
|
-
* Immutable zkEVM API
|
|
2009
|
-
* Immutable Multi Rollup API
|
|
2010
|
-
*
|
|
2011
|
-
* The version of the OpenAPI document: 1.0.0
|
|
2012
|
-
* Contact: support@immutable.com
|
|
2013
|
-
*
|
|
2014
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2015
|
-
* https://openapi-generator.tech
|
|
2016
|
-
* Do not edit the class manually.
|
|
2017
|
-
*/
|
|
2018
|
-
const CreateOrderProtocolDataOrderTypeEnum = {
|
|
2019
|
-
FullRestricted: 'FULL_RESTRICTED'
|
|
2020
|
-
};
|
|
2021
|
-
|
|
2022
2306
|
/* tslint:disable */
|
|
2023
2307
|
/* eslint-disable */
|
|
2024
2308
|
/**
|
|
@@ -2067,7 +2351,10 @@ const ERC721ItemItemTypeEnum = {
|
|
|
2067
2351
|
* Do not edit the class manually.
|
|
2068
2352
|
*/
|
|
2069
2353
|
const FeeFeeTypeEnum = {
|
|
2070
|
-
Royalty: 'ROYALTY'
|
|
2354
|
+
Royalty: 'ROYALTY',
|
|
2355
|
+
MakerMarketplace: 'MAKER_MARKETPLACE',
|
|
2356
|
+
TakerMarketplace: 'TAKER_MARKETPLACE',
|
|
2357
|
+
Protocol: 'PROTOCOL'
|
|
2071
2358
|
};
|
|
2072
2359
|
|
|
2073
2360
|
/* tslint:disable */
|
|
@@ -2136,6 +2423,23 @@ const OrderStatus = {
|
|
|
2136
2423
|
Expired: 'EXPIRED'
|
|
2137
2424
|
};
|
|
2138
2425
|
|
|
2426
|
+
/* tslint:disable */
|
|
2427
|
+
/* eslint-disable */
|
|
2428
|
+
/**
|
|
2429
|
+
* Immutable zkEVM API
|
|
2430
|
+
* Immutable Multi Rollup API
|
|
2431
|
+
*
|
|
2432
|
+
* The version of the OpenAPI document: 1.0.0
|
|
2433
|
+
* Contact: support@immutable.com
|
|
2434
|
+
*
|
|
2435
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2436
|
+
* https://openapi-generator.tech
|
|
2437
|
+
* Do not edit the class manually.
|
|
2438
|
+
*/
|
|
2439
|
+
const ProtocolDataOrderTypeEnum = {
|
|
2440
|
+
FullRestricted: 'FULL_RESTRICTED'
|
|
2441
|
+
};
|
|
2442
|
+
|
|
2139
2443
|
/* tslint:disable */
|
|
2140
2444
|
/* eslint-disable */
|
|
2141
2445
|
/**
|
|
@@ -2212,7 +2516,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
2212
2516
|
CollectionsApiFactory: CollectionsApiFactory,
|
|
2213
2517
|
CollectionsApiFp: CollectionsApiFp,
|
|
2214
2518
|
Configuration: Configuration,
|
|
2215
|
-
CreateOrderProtocolDataOrderTypeEnum: CreateOrderProtocolDataOrderTypeEnum,
|
|
2216
2519
|
ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
|
|
2217
2520
|
ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
|
|
2218
2521
|
FeeFeeTypeEnum: FeeFeeTypeEnum,
|
|
@@ -2235,6 +2538,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
2235
2538
|
PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
|
|
2236
2539
|
PassportApiFactory: PassportApiFactory,
|
|
2237
2540
|
PassportApiFp: PassportApiFp,
|
|
2541
|
+
ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
|
|
2238
2542
|
SaleFeeTypeEnum: SaleFeeTypeEnum,
|
|
2239
2543
|
TokenContractType: TokenContractType,
|
|
2240
2544
|
TokensApi: TokensApi,
|
|
@@ -2268,7 +2572,7 @@ class APIError extends Error {
|
|
|
2268
2572
|
|
|
2269
2573
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2270
2574
|
const defaultHeaders = {
|
|
2271
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.
|
|
2575
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.17.1',
|
|
2272
2576
|
};
|
|
2273
2577
|
/**
|
|
2274
2578
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -2425,6 +2729,20 @@ class BlockchainData {
|
|
|
2425
2729
|
throw formatError(err);
|
|
2426
2730
|
});
|
|
2427
2731
|
}
|
|
2732
|
+
/**
|
|
2733
|
+
* List collections by NFT owner
|
|
2734
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
2735
|
+
* @returns a promise that resolves with a list of collections
|
|
2736
|
+
* @throws {@link index.APIError}
|
|
2737
|
+
*/
|
|
2738
|
+
async listCollectionsByNFTOwner(request) {
|
|
2739
|
+
return await this.collections
|
|
2740
|
+
.listCollectionsByNFTOwner(request)
|
|
2741
|
+
.then((res) => res.data)
|
|
2742
|
+
.catch((err) => {
|
|
2743
|
+
throw formatError(err);
|
|
2744
|
+
});
|
|
2745
|
+
}
|
|
2428
2746
|
/**
|
|
2429
2747
|
* Get collection by contract address
|
|
2430
2748
|
* @param request - the request object containing the parameters to be provided in the API request
|