@imtbl/sdk 0.15.2-alpha → 0.16.0-alpha.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.js +252 -33
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +56 -1
- package/dist/checkout_sdk.js +394 -16
- package/dist/checkout_widgets.d.ts +1 -0
- package/dist/checkout_widgets.js +1 -1
- package/dist/erc721.d.ts +4 -4
- package/dist/erc721.js +57 -69
- package/dist/erc721_mint_by_id.d.ts +4 -4
- package/dist/erc721_mint_by_id.js +51 -51
- 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 +789 -175
- package/dist/index.d.ts +225 -16
- package/dist/index.js +789 -175
- package/dist/orderbook.d.ts +150 -4
- package/dist/orderbook.js +135 -0
- package/dist/passport.d.ts +1 -0
- package/dist/passport.js +228 -18
- package/package.json +1 -1
package/dist/blockchain_data.js
CHANGED
|
@@ -1159,16 +1159,16 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1159
1159
|
* Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
|
|
1160
1160
|
* @summary Retrieve fulfillment data for orders
|
|
1161
1161
|
* @param {string} chainName
|
|
1162
|
-
* @param {Array<
|
|
1162
|
+
* @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
|
|
1163
1163
|
* @param {*} [options] Override http request option.
|
|
1164
1164
|
* @throws {RequiredError}
|
|
1165
1165
|
*/
|
|
1166
|
-
fulfillmentData: async (chainName,
|
|
1166
|
+
fulfillmentData: async (chainName, fulfillmentDataRequest, options = {}) => {
|
|
1167
1167
|
// verify required parameter 'chainName' is not null or undefined
|
|
1168
1168
|
assertParamExists('fulfillmentData', 'chainName', chainName);
|
|
1169
|
-
// verify required parameter '
|
|
1170
|
-
assertParamExists('fulfillmentData', '
|
|
1171
|
-
const localVarPath = `/v1/chains/{chain_name}/orders/
|
|
1169
|
+
// verify required parameter 'fulfillmentDataRequest' is not null or undefined
|
|
1170
|
+
assertParamExists('fulfillmentData', 'fulfillmentDataRequest', fulfillmentDataRequest);
|
|
1171
|
+
const localVarPath = `/v1/chains/{chain_name}/orders/fulfillment-data`
|
|
1172
1172
|
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1173
1173
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1174
1174
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1183,7 +1183,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1183
1183
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1184
1184
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1185
1185
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1186
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1186
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fulfillmentDataRequest, localVarRequestOptions, configuration);
|
|
1187
1187
|
return {
|
|
1188
1188
|
url: toPathString(localVarUrlObj),
|
|
1189
1189
|
options: localVarRequestOptions,
|
|
@@ -1222,6 +1222,39 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1222
1222
|
options: localVarRequestOptions,
|
|
1223
1223
|
};
|
|
1224
1224
|
},
|
|
1225
|
+
/**
|
|
1226
|
+
* Get a single trade by ID
|
|
1227
|
+
* @summary Get a single trade by ID
|
|
1228
|
+
* @param {string} chainName
|
|
1229
|
+
* @param {string} tradeId Global Trade identifier
|
|
1230
|
+
* @param {*} [options] Override http request option.
|
|
1231
|
+
* @throws {RequiredError}
|
|
1232
|
+
*/
|
|
1233
|
+
getTrade: async (chainName, tradeId, options = {}) => {
|
|
1234
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1235
|
+
assertParamExists('getTrade', 'chainName', chainName);
|
|
1236
|
+
// verify required parameter 'tradeId' is not null or undefined
|
|
1237
|
+
assertParamExists('getTrade', 'tradeId', tradeId);
|
|
1238
|
+
const localVarPath = `/v1/chains/{chain_name}/trades/{trade_id}`
|
|
1239
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
|
|
1240
|
+
.replace(`{${"trade_id"}}`, encodeURIComponent(String(tradeId)));
|
|
1241
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1242
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1243
|
+
let baseOptions;
|
|
1244
|
+
if (configuration) {
|
|
1245
|
+
baseOptions = configuration.baseOptions;
|
|
1246
|
+
}
|
|
1247
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1248
|
+
const localVarHeaderParameter = {};
|
|
1249
|
+
const localVarQueryParameter = {};
|
|
1250
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1251
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1252
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1253
|
+
return {
|
|
1254
|
+
url: toPathString(localVarUrlObj),
|
|
1255
|
+
options: localVarRequestOptions,
|
|
1256
|
+
};
|
|
1257
|
+
},
|
|
1225
1258
|
/**
|
|
1226
1259
|
* List all listings
|
|
1227
1260
|
* @summary List all listings
|
|
@@ -1283,6 +1316,51 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1283
1316
|
options: localVarRequestOptions,
|
|
1284
1317
|
};
|
|
1285
1318
|
},
|
|
1319
|
+
/**
|
|
1320
|
+
* List all trades
|
|
1321
|
+
* @summary List all trades
|
|
1322
|
+
* @param {string} chainName
|
|
1323
|
+
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1324
|
+
* @param {'created_at'} [sortBy] Trade field to sort by
|
|
1325
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
1326
|
+
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1327
|
+
* @param {*} [options] Override http request option.
|
|
1328
|
+
* @throws {RequiredError}
|
|
1329
|
+
*/
|
|
1330
|
+
listTrades: async (chainName, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
1331
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1332
|
+
assertParamExists('listTrades', 'chainName', chainName);
|
|
1333
|
+
const localVarPath = `/v1/chains/{chain_name}/trades`
|
|
1334
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1335
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1336
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1337
|
+
let baseOptions;
|
|
1338
|
+
if (configuration) {
|
|
1339
|
+
baseOptions = configuration.baseOptions;
|
|
1340
|
+
}
|
|
1341
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1342
|
+
const localVarHeaderParameter = {};
|
|
1343
|
+
const localVarQueryParameter = {};
|
|
1344
|
+
if (pageSize !== undefined) {
|
|
1345
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1346
|
+
}
|
|
1347
|
+
if (sortBy !== undefined) {
|
|
1348
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
1349
|
+
}
|
|
1350
|
+
if (sortDirection !== undefined) {
|
|
1351
|
+
localVarQueryParameter['sort_direction'] = sortDirection;
|
|
1352
|
+
}
|
|
1353
|
+
if (pageCursor !== undefined) {
|
|
1354
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1355
|
+
}
|
|
1356
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1357
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1358
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1359
|
+
return {
|
|
1360
|
+
url: toPathString(localVarUrlObj),
|
|
1361
|
+
options: localVarRequestOptions,
|
|
1362
|
+
};
|
|
1363
|
+
},
|
|
1286
1364
|
};
|
|
1287
1365
|
};
|
|
1288
1366
|
/**
|
|
@@ -1308,12 +1386,12 @@ const OrdersApiFp = function (configuration) {
|
|
|
1308
1386
|
* Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
|
|
1309
1387
|
* @summary Retrieve fulfillment data for orders
|
|
1310
1388
|
* @param {string} chainName
|
|
1311
|
-
* @param {Array<
|
|
1389
|
+
* @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
|
|
1312
1390
|
* @param {*} [options] Override http request option.
|
|
1313
1391
|
* @throws {RequiredError}
|
|
1314
1392
|
*/
|
|
1315
|
-
async fulfillmentData(chainName,
|
|
1316
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.fulfillmentData(chainName,
|
|
1393
|
+
async fulfillmentData(chainName, fulfillmentDataRequest, options) {
|
|
1394
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fulfillmentData(chainName, fulfillmentDataRequest, options);
|
|
1317
1395
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1318
1396
|
},
|
|
1319
1397
|
/**
|
|
@@ -1328,6 +1406,18 @@ const OrdersApiFp = function (configuration) {
|
|
|
1328
1406
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getListing(chainName, listingId, options);
|
|
1329
1407
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1330
1408
|
},
|
|
1409
|
+
/**
|
|
1410
|
+
* Get a single trade by ID
|
|
1411
|
+
* @summary Get a single trade by ID
|
|
1412
|
+
* @param {string} chainName
|
|
1413
|
+
* @param {string} tradeId Global Trade identifier
|
|
1414
|
+
* @param {*} [options] Override http request option.
|
|
1415
|
+
* @throws {RequiredError}
|
|
1416
|
+
*/
|
|
1417
|
+
async getTrade(chainName, tradeId, options) {
|
|
1418
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTrade(chainName, tradeId, options);
|
|
1419
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1420
|
+
},
|
|
1331
1421
|
/**
|
|
1332
1422
|
* List all listings
|
|
1333
1423
|
* @summary List all listings
|
|
@@ -1347,6 +1437,21 @@ const OrdersApiFp = function (configuration) {
|
|
|
1347
1437
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1348
1438
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1349
1439
|
},
|
|
1440
|
+
/**
|
|
1441
|
+
* List all trades
|
|
1442
|
+
* @summary List all trades
|
|
1443
|
+
* @param {string} chainName
|
|
1444
|
+
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1445
|
+
* @param {'created_at'} [sortBy] Trade field to sort by
|
|
1446
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
1447
|
+
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1448
|
+
* @param {*} [options] Override http request option.
|
|
1449
|
+
* @throws {RequiredError}
|
|
1450
|
+
*/
|
|
1451
|
+
async listTrades(chainName, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1452
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1453
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1454
|
+
},
|
|
1350
1455
|
};
|
|
1351
1456
|
};
|
|
1352
1457
|
/**
|
|
@@ -1371,12 +1476,12 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1371
1476
|
* Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
|
|
1372
1477
|
* @summary Retrieve fulfillment data for orders
|
|
1373
1478
|
* @param {string} chainName
|
|
1374
|
-
* @param {Array<
|
|
1479
|
+
* @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
|
|
1375
1480
|
* @param {*} [options] Override http request option.
|
|
1376
1481
|
* @throws {RequiredError}
|
|
1377
1482
|
*/
|
|
1378
|
-
fulfillmentData(chainName,
|
|
1379
|
-
return localVarFp.fulfillmentData(chainName,
|
|
1483
|
+
fulfillmentData(chainName, fulfillmentDataRequest, options) {
|
|
1484
|
+
return localVarFp.fulfillmentData(chainName, fulfillmentDataRequest, options).then((request) => request(axios, basePath));
|
|
1380
1485
|
},
|
|
1381
1486
|
/**
|
|
1382
1487
|
* Get a single listing by ID
|
|
@@ -1389,6 +1494,17 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1389
1494
|
getListing(chainName, listingId, options) {
|
|
1390
1495
|
return localVarFp.getListing(chainName, listingId, options).then((request) => request(axios, basePath));
|
|
1391
1496
|
},
|
|
1497
|
+
/**
|
|
1498
|
+
* Get a single trade by ID
|
|
1499
|
+
* @summary Get a single trade by ID
|
|
1500
|
+
* @param {string} chainName
|
|
1501
|
+
* @param {string} tradeId Global Trade identifier
|
|
1502
|
+
* @param {*} [options] Override http request option.
|
|
1503
|
+
* @throws {RequiredError}
|
|
1504
|
+
*/
|
|
1505
|
+
getTrade(chainName, tradeId, options) {
|
|
1506
|
+
return localVarFp.getTrade(chainName, tradeId, options).then((request) => request(axios, basePath));
|
|
1507
|
+
},
|
|
1392
1508
|
/**
|
|
1393
1509
|
* List all listings
|
|
1394
1510
|
* @summary List all listings
|
|
@@ -1407,6 +1523,20 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1407
1523
|
listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1408
1524
|
return localVarFp.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
1409
1525
|
},
|
|
1526
|
+
/**
|
|
1527
|
+
* List all trades
|
|
1528
|
+
* @summary List all trades
|
|
1529
|
+
* @param {string} chainName
|
|
1530
|
+
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1531
|
+
* @param {'created_at'} [sortBy] Trade field to sort by
|
|
1532
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
1533
|
+
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1534
|
+
* @param {*} [options] Override http request option.
|
|
1535
|
+
* @throws {RequiredError}
|
|
1536
|
+
*/
|
|
1537
|
+
listTrades(chainName, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1538
|
+
return localVarFp.listTrades(chainName, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
1539
|
+
},
|
|
1410
1540
|
};
|
|
1411
1541
|
};
|
|
1412
1542
|
/**
|
|
@@ -1436,7 +1566,7 @@ class OrdersApi extends BaseAPI {
|
|
|
1436
1566
|
* @memberof OrdersApi
|
|
1437
1567
|
*/
|
|
1438
1568
|
fulfillmentData(requestParameters, options) {
|
|
1439
|
-
return OrdersApiFp(this.configuration).fulfillmentData(requestParameters.chainName, requestParameters.
|
|
1569
|
+
return OrdersApiFp(this.configuration).fulfillmentData(requestParameters.chainName, requestParameters.fulfillmentDataRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1440
1570
|
}
|
|
1441
1571
|
/**
|
|
1442
1572
|
* Get a single listing by ID
|
|
@@ -1449,6 +1579,17 @@ class OrdersApi extends BaseAPI {
|
|
|
1449
1579
|
getListing(requestParameters, options) {
|
|
1450
1580
|
return OrdersApiFp(this.configuration).getListing(requestParameters.chainName, requestParameters.listingId, options).then((request) => request(this.axios, this.basePath));
|
|
1451
1581
|
}
|
|
1582
|
+
/**
|
|
1583
|
+
* Get a single trade by ID
|
|
1584
|
+
* @summary Get a single trade by ID
|
|
1585
|
+
* @param {OrdersApiGetTradeRequest} requestParameters Request parameters.
|
|
1586
|
+
* @param {*} [options] Override http request option.
|
|
1587
|
+
* @throws {RequiredError}
|
|
1588
|
+
* @memberof OrdersApi
|
|
1589
|
+
*/
|
|
1590
|
+
getTrade(requestParameters, options) {
|
|
1591
|
+
return OrdersApiFp(this.configuration).getTrade(requestParameters.chainName, requestParameters.tradeId, options).then((request) => request(this.axios, this.basePath));
|
|
1592
|
+
}
|
|
1452
1593
|
/**
|
|
1453
1594
|
* List all listings
|
|
1454
1595
|
* @summary List all listings
|
|
@@ -1460,6 +1601,17 @@ class OrdersApi extends BaseAPI {
|
|
|
1460
1601
|
listListings(requestParameters, options) {
|
|
1461
1602
|
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
1603
|
}
|
|
1604
|
+
/**
|
|
1605
|
+
* List all trades
|
|
1606
|
+
* @summary List all trades
|
|
1607
|
+
* @param {OrdersApiListTradesRequest} requestParameters Request parameters.
|
|
1608
|
+
* @param {*} [options] Override http request option.
|
|
1609
|
+
* @throws {RequiredError}
|
|
1610
|
+
* @memberof OrdersApi
|
|
1611
|
+
*/
|
|
1612
|
+
listTrades(requestParameters, options) {
|
|
1613
|
+
return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
1614
|
+
}
|
|
1463
1615
|
}
|
|
1464
1616
|
|
|
1465
1617
|
/* tslint:disable */
|
|
@@ -1514,6 +1666,38 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
1514
1666
|
options: localVarRequestOptions,
|
|
1515
1667
|
};
|
|
1516
1668
|
},
|
|
1669
|
+
/**
|
|
1670
|
+
* Get all the Ethereum linked addresses for a user based on its userId
|
|
1671
|
+
* @summary Get Ethereum linked addresses for a user
|
|
1672
|
+
* @param {string} userId The user\'s userId
|
|
1673
|
+
* @param {*} [options] Override http request option.
|
|
1674
|
+
* @throws {RequiredError}
|
|
1675
|
+
*/
|
|
1676
|
+
getLinkedAddresses: async (userId, options = {}) => {
|
|
1677
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1678
|
+
assertParamExists('getLinkedAddresses', 'userId', userId);
|
|
1679
|
+
const localVarPath = `/passport-mr/v1/users/{userId}/linked-addresses`
|
|
1680
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
1681
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1682
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1683
|
+
let baseOptions;
|
|
1684
|
+
if (configuration) {
|
|
1685
|
+
baseOptions = configuration.baseOptions;
|
|
1686
|
+
}
|
|
1687
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1688
|
+
const localVarHeaderParameter = {};
|
|
1689
|
+
const localVarQueryParameter = {};
|
|
1690
|
+
// authentication BearerAuth required
|
|
1691
|
+
// http bearer authentication required
|
|
1692
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1693
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1694
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1695
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1696
|
+
return {
|
|
1697
|
+
url: toPathString(localVarUrlObj),
|
|
1698
|
+
options: localVarRequestOptions,
|
|
1699
|
+
};
|
|
1700
|
+
},
|
|
1517
1701
|
};
|
|
1518
1702
|
};
|
|
1519
1703
|
/**
|
|
@@ -1534,6 +1718,17 @@ const PassportApiFp = function (configuration) {
|
|
|
1534
1718
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterfactualAddress(createCounterfactualAddressRequest, options);
|
|
1535
1719
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1536
1720
|
},
|
|
1721
|
+
/**
|
|
1722
|
+
* Get all the Ethereum linked addresses for a user based on its userId
|
|
1723
|
+
* @summary Get Ethereum linked addresses for a user
|
|
1724
|
+
* @param {string} userId The user\'s userId
|
|
1725
|
+
* @param {*} [options] Override http request option.
|
|
1726
|
+
* @throws {RequiredError}
|
|
1727
|
+
*/
|
|
1728
|
+
async getLinkedAddresses(userId, options) {
|
|
1729
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLinkedAddresses(userId, options);
|
|
1730
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1731
|
+
},
|
|
1537
1732
|
};
|
|
1538
1733
|
};
|
|
1539
1734
|
/**
|
|
@@ -1553,6 +1748,16 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
1553
1748
|
createCounterfactualAddress(createCounterfactualAddressRequest, options) {
|
|
1554
1749
|
return localVarFp.createCounterfactualAddress(createCounterfactualAddressRequest, options).then((request) => request(axios, basePath));
|
|
1555
1750
|
},
|
|
1751
|
+
/**
|
|
1752
|
+
* Get all the Ethereum linked addresses for a user based on its userId
|
|
1753
|
+
* @summary Get Ethereum linked addresses for a user
|
|
1754
|
+
* @param {string} userId The user\'s userId
|
|
1755
|
+
* @param {*} [options] Override http request option.
|
|
1756
|
+
* @throws {RequiredError}
|
|
1757
|
+
*/
|
|
1758
|
+
getLinkedAddresses(userId, options) {
|
|
1759
|
+
return localVarFp.getLinkedAddresses(userId, options).then((request) => request(axios, basePath));
|
|
1760
|
+
},
|
|
1556
1761
|
};
|
|
1557
1762
|
};
|
|
1558
1763
|
/**
|
|
@@ -1573,6 +1778,17 @@ class PassportApi extends BaseAPI {
|
|
|
1573
1778
|
createCounterfactualAddress(requestParameters, options) {
|
|
1574
1779
|
return PassportApiFp(this.configuration).createCounterfactualAddress(requestParameters.createCounterfactualAddressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1575
1780
|
}
|
|
1781
|
+
/**
|
|
1782
|
+
* Get all the Ethereum linked addresses for a user based on its userId
|
|
1783
|
+
* @summary Get Ethereum linked addresses for a user
|
|
1784
|
+
* @param {PassportApiGetLinkedAddressesRequest} requestParameters Request parameters.
|
|
1785
|
+
* @param {*} [options] Override http request option.
|
|
1786
|
+
* @throws {RequiredError}
|
|
1787
|
+
* @memberof PassportApi
|
|
1788
|
+
*/
|
|
1789
|
+
getLinkedAddresses(requestParameters, options) {
|
|
1790
|
+
return PassportApiFp(this.configuration).getLinkedAddresses(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1791
|
+
}
|
|
1576
1792
|
}
|
|
1577
1793
|
|
|
1578
1794
|
/* tslint:disable */
|
|
@@ -2002,23 +2218,6 @@ const CollectionContractType = {
|
|
|
2002
2218
|
Erc721: 'ERC721'
|
|
2003
2219
|
};
|
|
2004
2220
|
|
|
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
2221
|
/* tslint:disable */
|
|
2023
2222
|
/* eslint-disable */
|
|
2024
2223
|
/**
|
|
@@ -2067,7 +2266,10 @@ const ERC721ItemItemTypeEnum = {
|
|
|
2067
2266
|
* Do not edit the class manually.
|
|
2068
2267
|
*/
|
|
2069
2268
|
const FeeFeeTypeEnum = {
|
|
2070
|
-
Royalty: 'ROYALTY'
|
|
2269
|
+
Royalty: 'ROYALTY',
|
|
2270
|
+
MakerMarketplace: 'MAKER_MARKETPLACE',
|
|
2271
|
+
TakerMarketplace: 'TAKER_MARKETPLACE',
|
|
2272
|
+
Protocol: 'PROTOCOL'
|
|
2071
2273
|
};
|
|
2072
2274
|
|
|
2073
2275
|
/* tslint:disable */
|
|
@@ -2136,6 +2338,23 @@ const OrderStatus = {
|
|
|
2136
2338
|
Expired: 'EXPIRED'
|
|
2137
2339
|
};
|
|
2138
2340
|
|
|
2341
|
+
/* tslint:disable */
|
|
2342
|
+
/* eslint-disable */
|
|
2343
|
+
/**
|
|
2344
|
+
* Immutable zkEVM API
|
|
2345
|
+
* Immutable Multi Rollup API
|
|
2346
|
+
*
|
|
2347
|
+
* The version of the OpenAPI document: 1.0.0
|
|
2348
|
+
* Contact: support@immutable.com
|
|
2349
|
+
*
|
|
2350
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2351
|
+
* https://openapi-generator.tech
|
|
2352
|
+
* Do not edit the class manually.
|
|
2353
|
+
*/
|
|
2354
|
+
const ProtocolDataOrderTypeEnum = {
|
|
2355
|
+
FullRestricted: 'FULL_RESTRICTED'
|
|
2356
|
+
};
|
|
2357
|
+
|
|
2139
2358
|
/* tslint:disable */
|
|
2140
2359
|
/* eslint-disable */
|
|
2141
2360
|
/**
|
|
@@ -2212,7 +2431,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
2212
2431
|
CollectionsApiFactory: CollectionsApiFactory,
|
|
2213
2432
|
CollectionsApiFp: CollectionsApiFp,
|
|
2214
2433
|
Configuration: Configuration,
|
|
2215
|
-
CreateOrderProtocolDataOrderTypeEnum: CreateOrderProtocolDataOrderTypeEnum,
|
|
2216
2434
|
ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
|
|
2217
2435
|
ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
|
|
2218
2436
|
FeeFeeTypeEnum: FeeFeeTypeEnum,
|
|
@@ -2235,6 +2453,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
2235
2453
|
PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
|
|
2236
2454
|
PassportApiFactory: PassportApiFactory,
|
|
2237
2455
|
PassportApiFp: PassportApiFp,
|
|
2456
|
+
ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
|
|
2238
2457
|
SaleFeeTypeEnum: SaleFeeTypeEnum,
|
|
2239
2458
|
TokenContractType: TokenContractType,
|
|
2240
2459
|
TokensApi: TokensApi,
|
|
@@ -2268,7 +2487,7 @@ class APIError extends Error {
|
|
|
2268
2487
|
|
|
2269
2488
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2270
2489
|
const defaultHeaders = {
|
|
2271
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.
|
|
2490
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.16.0-alpha.1',
|
|
2272
2491
|
};
|
|
2273
2492
|
/**
|
|
2274
2493
|
* createAPIConfiguration to create a custom Configuration
|