@imtbl/sdk 0.27.0 → 0.27.2-alpha

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.
@@ -13,8 +13,6 @@ import globalAxios from 'axios';
13
13
  * https://openapi-generator.tech
14
14
  * Do not edit the class manually.
15
15
  */
16
- // Some imports not used depending on template conditions
17
- // @ts-ignore
18
16
  const BASE_PATH = "https://api.sandbox.immutable.com".replace(/\/+$/, "");
19
17
  /**
20
18
  *
@@ -42,10 +40,10 @@ class BaseAPI {
42
40
  */
43
41
  class RequiredError extends Error {
44
42
  field;
45
- name = "RequiredError";
46
43
  constructor(field, msg) {
47
44
  super(msg);
48
45
  this.field = field;
46
+ this.name = "RequiredError";
49
47
  }
50
48
  }
51
49
 
@@ -102,6 +100,8 @@ const setBearerAuthToObject = async function (object, configuration) {
102
100
  }
103
101
  };
104
102
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
103
+ if (parameter == null)
104
+ return;
105
105
  if (typeof parameter === "object") {
106
106
  if (Array.isArray(parameter)) {
107
107
  parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
@@ -154,7 +154,7 @@ const toPathString = function (url) {
154
154
  */
155
155
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
156
156
  return (axios = globalAxios, basePath = BASE_PATH) => {
157
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
157
+ const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || axios.defaults.baseURL || basePath) + axiosArgs.url };
158
158
  return axios.request(axiosRequestArgs);
159
159
  };
160
160
  };
@@ -333,32 +333,22 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
333
333
  /**
334
334
  * Get a single activity by ID
335
335
  * @summary Get a single activity by ID
336
- * @param {string} chainName The name of chain
337
- * @param {string} activityId The id of activity
336
+ * @param {ActivitiesApiGetActivityRequest} requestParameters Request parameters.
338
337
  * @param {*} [options] Override http request option.
339
338
  * @throws {RequiredError}
340
339
  */
341
- getActivity(chainName, activityId, options) {
342
- return localVarFp.getActivity(chainName, activityId, options).then((request) => request(axios, basePath));
340
+ getActivity(requestParameters, options) {
341
+ return localVarFp.getActivity(requestParameters.chainName, requestParameters.activityId, options).then((request) => request(axios, basePath));
343
342
  },
344
343
  /**
345
344
  * List all activities
346
345
  * @summary List all activities
347
- * @param {string} chainName The name of chain
348
- * @param {string} [contractAddress] The contract address of NFT or ERC20 Token
349
- * @param {string} [tokenId] An `uint256` token id as string
350
- * @param {string} [accountAddress] The account address activity contains
351
- * @param {ActivityType} [activityType] The activity type
352
- * @param {string} [fromIndexedAt] From indexed at including given date
353
- * @param {string} [toIndexedAt] To indexed at including given date
354
- * @param {string} [transactionHash] The transaction hash of activity
355
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
356
- * @param {number} [pageSize] Maximum number of items to return
346
+ * @param {ActivitiesApiListActivitiesRequest} requestParameters Request parameters.
357
347
  * @param {*} [options] Override http request option.
358
348
  * @throws {RequiredError}
359
349
  */
360
- listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options) {
361
- return localVarFp.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options).then((request) => request(axios, basePath));
350
+ listActivities(requestParameters, options) {
351
+ return localVarFp.listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.fromIndexedAt, requestParameters.toIndexedAt, requestParameters.transactionHash, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
362
352
  },
363
353
  };
364
354
  };
@@ -478,13 +468,12 @@ const ChainsApiFactory = function (configuration, basePath, axios) {
478
468
  /**
479
469
  * List supported chains
480
470
  * @summary List supported chains
481
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
482
- * @param {number} [pageSize] Maximum number of items to return
471
+ * @param {ChainsApiListChainsRequest} requestParameters Request parameters.
483
472
  * @param {*} [options] Override http request option.
484
473
  * @throws {RequiredError}
485
474
  */
486
- listChains(pageCursor, pageSize, options) {
487
- return localVarFp.listChains(pageCursor, pageSize, options).then((request) => request(axios, basePath));
475
+ listChains(requestParameters = {}, options) {
476
+ return localVarFp.listChains(requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
488
477
  },
489
478
  };
490
479
  };
@@ -564,13 +553,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
564
553
  * List all collections
565
554
  * @summary List all collections
566
555
  * @param {string} chainName The name of chain
556
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
567
557
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
568
558
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
569
559
  * @param {number} [pageSize] Maximum number of items to return
570
560
  * @param {*} [options] Override http request option.
571
561
  * @throws {RequiredError}
572
562
  */
573
- listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
563
+ listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
574
564
  // verify required parameter 'chainName' is not null or undefined
575
565
  assertParamExists('listCollections', 'chainName', chainName);
576
566
  const localVarPath = `/v1/chains/{chain_name}/collections`
@@ -584,6 +574,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
584
574
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
585
575
  const localVarHeaderParameter = {};
586
576
  const localVarQueryParameter = {};
577
+ if (contractAddress) {
578
+ localVarQueryParameter['contract_address'] = contractAddress;
579
+ }
587
580
  if (fromUpdatedAt !== undefined) {
588
581
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
589
582
  fromUpdatedAt.toISOString() :
@@ -709,14 +702,15 @@ const CollectionsApiFp = function (configuration) {
709
702
  * List all collections
710
703
  * @summary List all collections
711
704
  * @param {string} chainName The name of chain
705
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
712
706
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
713
707
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
714
708
  * @param {number} [pageSize] Maximum number of items to return
715
709
  * @param {*} [options] Override http request option.
716
710
  * @throws {RequiredError}
717
711
  */
718
- async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
719
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
712
+ async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
713
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
720
714
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
721
715
  },
722
716
  /**
@@ -758,51 +752,42 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
758
752
  /**
759
753
  * Get collection by contract address
760
754
  * @summary Get collection by contract address
761
- * @param {string} contractAddress The address contract
762
- * @param {string} chainName The name of chain
755
+ * @param {CollectionsApiGetCollectionRequest} requestParameters Request parameters.
763
756
  * @param {*} [options] Override http request option.
764
757
  * @throws {RequiredError}
765
758
  */
766
- getCollection(contractAddress, chainName, options) {
767
- return localVarFp.getCollection(contractAddress, chainName, options).then((request) => request(axios, basePath));
759
+ getCollection(requestParameters, options) {
760
+ return localVarFp.getCollection(requestParameters.contractAddress, requestParameters.chainName, options).then((request) => request(axios, basePath));
768
761
  },
769
762
  /**
770
763
  * List all collections
771
764
  * @summary List all collections
772
- * @param {string} chainName The name of chain
773
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
774
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
775
- * @param {number} [pageSize] Maximum number of items to return
765
+ * @param {CollectionsApiListCollectionsRequest} requestParameters Request parameters.
776
766
  * @param {*} [options] Override http request option.
777
767
  * @throws {RequiredError}
778
768
  */
779
- listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
780
- return localVarFp.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
769
+ listCollections(requestParameters, options) {
770
+ return localVarFp.listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
781
771
  },
782
772
  /**
783
773
  * List collections by NFT owner account address
784
774
  * @summary List collections by NFT owner
785
- * @param {string} accountAddress Account address
786
- * @param {string} chainName The name of chain
787
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
788
- * @param {number} [pageSize] Maximum number of items to return
775
+ * @param {CollectionsApiListCollectionsByNFTOwnerRequest} requestParameters Request parameters.
789
776
  * @param {*} [options] Override http request option.
790
777
  * @throws {RequiredError}
791
778
  */
792
- listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options) {
793
- return localVarFp.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
779
+ listCollectionsByNFTOwner(requestParameters, options) {
780
+ return localVarFp.listCollectionsByNFTOwner(requestParameters.accountAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
794
781
  },
795
782
  /**
796
783
  * Refresh collection metadata
797
784
  * @summary Refresh collection metadata
798
- * @param {string} contractAddress The address contract
799
- * @param {string} chainName The name of chain
800
- * @param {RefreshCollectionMetadataRequest} refreshCollectionMetadataRequest The request body
785
+ * @param {CollectionsApiRefreshCollectionMetadataRequest} requestParameters Request parameters.
801
786
  * @param {*} [options] Override http request option.
802
787
  * @throws {RequiredError}
803
788
  */
804
- refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options) {
805
- return localVarFp.refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options).then((request) => request(axios, basePath));
789
+ refreshCollectionMetadata(requestParameters, options) {
790
+ return localVarFp.refreshCollectionMetadata(requestParameters.contractAddress, requestParameters.chainName, requestParameters.refreshCollectionMetadataRequest, options).then((request) => request(axios, basePath));
806
791
  },
807
792
  };
808
793
  };
@@ -833,7 +818,7 @@ class CollectionsApi extends BaseAPI {
833
818
  * @memberof CollectionsApi
834
819
  */
835
820
  listCollections(requestParameters, options) {
836
- return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
821
+ return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
837
822
  }
838
823
  /**
839
824
  * List collections by NFT owner account address
@@ -1117,52 +1102,42 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
1117
1102
  /**
1118
1103
  * Get metadata by ID
1119
1104
  * @summary Get metadata by ID
1120
- * @param {string} chainName The name of chain
1121
- * @param {string} contractAddress The address of metadata contract
1122
- * @param {string} metadataId The id of the metadata
1105
+ * @param {MetadataApiGetMetadataRequest} requestParameters Request parameters.
1123
1106
  * @param {*} [options] Override http request option.
1124
1107
  * @throws {RequiredError}
1125
1108
  */
1126
- getMetadata(chainName, contractAddress, metadataId, options) {
1127
- return localVarFp.getMetadata(chainName, contractAddress, metadataId, options).then((request) => request(axios, basePath));
1109
+ getMetadata(requestParameters, options) {
1110
+ return localVarFp.getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(axios, basePath));
1128
1111
  },
1129
1112
  /**
1130
1113
  * Get a list of metadata by from the a given contract
1131
1114
  * @summary Get a list of metadata by from the a given contract
1132
- * @param {string} chainName The name of chain
1133
- * @param {string} contractAddress The address of metadata contract
1134
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1135
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1136
- * @param {number} [pageSize] Maximum number of items to return
1115
+ * @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
1137
1116
  * @param {*} [options] Override http request option.
1138
1117
  * @throws {RequiredError}
1139
1118
  */
1140
- listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
1141
- return localVarFp.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1119
+ listMetadata(requestParameters, options) {
1120
+ return localVarFp.listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1142
1121
  },
1143
1122
  /**
1144
1123
  * Refresh stacked metadata
1145
1124
  * @summary Refresh stacked metadata
1146
- * @param {string} chainName The name of chain
1147
- * @param {string} contractAddress Contract address
1148
- * @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
1125
+ * @param {MetadataApiRefreshMetadataByIDRequest} requestParameters Request parameters.
1149
1126
  * @param {*} [options] Override http request option.
1150
1127
  * @throws {RequiredError}
1151
1128
  */
1152
- refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options) {
1153
- return localVarFp.refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options).then((request) => request(axios, basePath));
1129
+ refreshMetadataByID(requestParameters, options) {
1130
+ return localVarFp.refreshMetadataByID(requestParameters.chainName, requestParameters.contractAddress, requestParameters.refreshMetadataByIDRequest, options).then((request) => request(axios, basePath));
1154
1131
  },
1155
1132
  /**
1156
1133
  * Refresh NFT metadata
1157
1134
  * @summary Refresh NFT metadata
1158
- * @param {string} contractAddress The address of contract
1159
- * @param {string} chainName The name of chain
1160
- * @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
1135
+ * @param {MetadataApiRefreshNFTMetadataByTokenIDRequest} requestParameters Request parameters.
1161
1136
  * @param {*} [options] Override http request option.
1162
1137
  * @throws {RequiredError}
1163
1138
  */
1164
- refreshNFTMetadataByTokenID(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest, options) {
1165
- return localVarFp.refreshNFTMetadataByTokenID(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest, options).then((request) => request(axios, basePath));
1139
+ refreshNFTMetadataByTokenID(requestParameters, options) {
1140
+ return localVarFp.refreshNFTMetadataByTokenID(requestParameters.contractAddress, requestParameters.chainName, requestParameters.refreshNFTMetadataByTokenIDRequest, options).then((request) => request(axios, basePath));
1166
1141
  },
1167
1142
  };
1168
1143
  };
@@ -1381,30 +1356,22 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
1381
1356
  /**
1382
1357
  * List NFT owners by token ID
1383
1358
  * @summary List NFT owners by token ID
1384
- * @param {string} contractAddress The address of contract
1385
- * @param {string} tokenId An &#x60;uint256&#x60; token id as string
1386
- * @param {string} chainName The name of chain
1387
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1388
- * @param {number} [pageSize] Maximum number of items to return
1359
+ * @param {NftOwnersApiListNFTOwnersRequest} requestParameters Request parameters.
1389
1360
  * @param {*} [options] Override http request option.
1390
1361
  * @throws {RequiredError}
1391
1362
  */
1392
- listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options) {
1393
- return localVarFp.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1363
+ listNFTOwners(requestParameters, options) {
1364
+ return localVarFp.listNFTOwners(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1394
1365
  },
1395
1366
  /**
1396
1367
  * List owners by contract address
1397
1368
  * @summary List owners by contract address
1398
- * @param {string} contractAddress The address of contract
1399
- * @param {string} chainName The name of chain
1400
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1401
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1402
- * @param {number} [pageSize] Maximum number of items to return
1369
+ * @param {NftOwnersApiListOwnersByContractAddressRequest} requestParameters Request parameters.
1403
1370
  * @param {*} [options] Override http request option.
1404
1371
  * @throws {RequiredError}
1405
1372
  */
1406
- listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1407
- return localVarFp.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1373
+ listOwnersByContractAddress(requestParameters, options) {
1374
+ return localVarFp.listOwnersByContractAddress(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1408
1375
  },
1409
1376
  };
1410
1377
  };
@@ -1767,68 +1734,52 @@ const NftsApiFactory = function (configuration, basePath, axios) {
1767
1734
  /**
1768
1735
  * Get NFT by token ID
1769
1736
  * @summary Get NFT by token ID
1770
- * @param {string} contractAddress The address of NFT contract
1771
- * @param {string} tokenId An &#x60;uint256&#x60; token id as string
1772
- * @param {string} chainName The name of chain
1737
+ * @param {NftsApiGetNFTRequest} requestParameters Request parameters.
1773
1738
  * @param {*} [options] Override http request option.
1774
1739
  * @throws {RequiredError}
1775
1740
  */
1776
- getNFT(contractAddress, tokenId, chainName, options) {
1777
- return localVarFp.getNFT(contractAddress, tokenId, chainName, options).then((request) => request(axios, basePath));
1741
+ getNFT(requestParameters, options) {
1742
+ return localVarFp.getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(axios, basePath));
1778
1743
  },
1779
1744
  /**
1780
1745
  * List all NFT owners on a chain
1781
1746
  * @summary List all NFT owners
1782
- * @param {string} chainName The name of chain
1783
- * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
1784
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1785
- * @param {number} [pageSize] Maximum number of items to return
1747
+ * @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
1786
1748
  * @param {*} [options] Override http request option.
1787
1749
  * @throws {RequiredError}
1788
1750
  */
1789
- listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1790
- return localVarFp.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1751
+ listAllNFTOwners(requestParameters, options) {
1752
+ return localVarFp.listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1791
1753
  },
1792
1754
  /**
1793
1755
  * List all NFTs on a chain
1794
1756
  * @summary List all NFTs
1795
- * @param {string} chainName The name of chain
1796
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1797
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1798
- * @param {number} [pageSize] Maximum number of items to return
1757
+ * @param {NftsApiListAllNFTsRequest} requestParameters Request parameters.
1799
1758
  * @param {*} [options] Override http request option.
1800
1759
  * @throws {RequiredError}
1801
1760
  */
1802
- listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1803
- return localVarFp.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1761
+ listAllNFTs(requestParameters, options) {
1762
+ return localVarFp.listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1804
1763
  },
1805
1764
  /**
1806
1765
  * List NFTs by contract address
1807
1766
  * @summary List NFTs by contract address
1808
- * @param {string} contractAddress Contract address
1809
- * @param {string} chainName The name of chain
1810
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1811
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1812
- * @param {number} [pageSize] Maximum number of items to return
1767
+ * @param {NftsApiListNFTsRequest} requestParameters Request parameters.
1813
1768
  * @param {*} [options] Override http request option.
1814
1769
  * @throws {RequiredError}
1815
1770
  */
1816
- listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1817
- return localVarFp.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1771
+ listNFTs(requestParameters, options) {
1772
+ return localVarFp.listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1818
1773
  },
1819
1774
  /**
1820
1775
  * List NFTs by account address
1821
1776
  * @summary List NFTs by account address
1822
- * @param {string} accountAddress Account address
1823
- * @param {string} chainName The name of chain
1824
- * @param {string} [contractAddress] The address of contract
1825
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1826
- * @param {number} [pageSize] Maximum number of items to return
1777
+ * @param {NftsApiListNFTsByAccountAddressRequest} requestParameters Request parameters.
1827
1778
  * @param {*} [options] Override http request option.
1828
1779
  * @throws {RequiredError}
1829
1780
  */
1830
- listNFTsByAccountAddress(accountAddress, chainName, contractAddress, pageCursor, pageSize, options) {
1831
- return localVarFp.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1781
+ listNFTsByAccountAddress(requestParameters, options) {
1782
+ return localVarFp.listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1832
1783
  },
1833
1784
  };
1834
1785
  };
@@ -2087,13 +2038,13 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2087
2038
  * List all listings
2088
2039
  * @summary List all listings
2089
2040
  * @param {string} chainName
2090
- * @param {OrderStatus} [status] Order status to filter by
2041
+ * @param {OrderStatusName} [status] Order status to filter by
2091
2042
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2092
2043
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2093
2044
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
2094
2045
  * @param {number} [pageSize] Maximum number of orders to return per page
2095
- * @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
2096
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
2046
+ * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
2047
+ * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
2097
2048
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
2098
2049
  * @param {*} [options] Override http request option.
2099
2050
  * @throws {RequiredError}
@@ -2150,8 +2101,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2150
2101
  * @param {string} chainName
2151
2102
  * @param {string} [accountAddress]
2152
2103
  * @param {number} [pageSize] Maximum number of trades to return per page
2153
- * @param {'indexed_at'} [sortBy] Trade field to sort by
2154
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
2104
+ * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
2105
+ * @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
2155
2106
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
2156
2107
  * @param {*} [options] Override http request option.
2157
2108
  * @throws {RequiredError}
@@ -2266,13 +2217,13 @@ const OrdersApiFp = function (configuration) {
2266
2217
  * List all listings
2267
2218
  * @summary List all listings
2268
2219
  * @param {string} chainName
2269
- * @param {OrderStatus} [status] Order status to filter by
2220
+ * @param {OrderStatusName} [status] Order status to filter by
2270
2221
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2271
2222
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2272
2223
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
2273
2224
  * @param {number} [pageSize] Maximum number of orders to return per page
2274
- * @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
2275
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
2225
+ * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
2226
+ * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
2276
2227
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
2277
2228
  * @param {*} [options] Override http request option.
2278
2229
  * @throws {RequiredError}
@@ -2287,8 +2238,8 @@ const OrdersApiFp = function (configuration) {
2287
2238
  * @param {string} chainName
2288
2239
  * @param {string} [accountAddress]
2289
2240
  * @param {number} [pageSize] Maximum number of trades to return per page
2290
- * @param {'indexed_at'} [sortBy] Trade field to sort by
2291
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
2241
+ * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
2242
+ * @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
2292
2243
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
2293
2244
  * @param {*} [options] Override http request option.
2294
2245
  * @throws {RequiredError}
@@ -2309,90 +2260,72 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
2309
2260
  /**
2310
2261
  * Cancel one or more orders
2311
2262
  * @summary Cancel one or more orders
2312
- * @param {string} chainName
2313
- * @param {CancelOrdersRequestBody} cancelOrdersRequestBody
2263
+ * @param {OrdersApiCancelOrdersRequest} requestParameters Request parameters.
2314
2264
  * @param {*} [options] Override http request option.
2315
2265
  * @throws {RequiredError}
2316
2266
  */
2317
- cancelOrders(chainName, cancelOrdersRequestBody, options) {
2318
- return localVarFp.cancelOrders(chainName, cancelOrdersRequestBody, options).then((request) => request(axios, basePath));
2267
+ cancelOrders(requestParameters, options) {
2268
+ return localVarFp.cancelOrders(requestParameters.chainName, requestParameters.cancelOrdersRequestBody, options).then((request) => request(axios, basePath));
2319
2269
  },
2320
2270
  /**
2321
2271
  * Create a listing
2322
2272
  * @summary Create a listing
2323
- * @param {string} chainName
2324
- * @param {CreateListingRequestBody} createListingRequestBody
2273
+ * @param {OrdersApiCreateListingRequest} requestParameters Request parameters.
2325
2274
  * @param {*} [options] Override http request option.
2326
2275
  * @throws {RequiredError}
2327
2276
  */
2328
- createListing(chainName, createListingRequestBody, options) {
2329
- return localVarFp.createListing(chainName, createListingRequestBody, options).then((request) => request(axios, basePath));
2277
+ createListing(requestParameters, options) {
2278
+ return localVarFp.createListing(requestParameters.chainName, requestParameters.createListingRequestBody, options).then((request) => request(axios, basePath));
2330
2279
  },
2331
2280
  /**
2332
2281
  * Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
2333
2282
  * @summary Retrieve fulfillment data for orders
2334
- * @param {string} chainName
2335
- * @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
2283
+ * @param {OrdersApiFulfillmentDataRequest} requestParameters Request parameters.
2336
2284
  * @param {*} [options] Override http request option.
2337
2285
  * @throws {RequiredError}
2338
2286
  */
2339
- fulfillmentData(chainName, fulfillmentDataRequest, options) {
2340
- return localVarFp.fulfillmentData(chainName, fulfillmentDataRequest, options).then((request) => request(axios, basePath));
2287
+ fulfillmentData(requestParameters, options) {
2288
+ return localVarFp.fulfillmentData(requestParameters.chainName, requestParameters.fulfillmentDataRequest, options).then((request) => request(axios, basePath));
2341
2289
  },
2342
2290
  /**
2343
2291
  * Get a single listing by ID
2344
2292
  * @summary Get a single listing by ID
2345
- * @param {string} chainName
2346
- * @param {string} listingId Global Order identifier
2293
+ * @param {OrdersApiGetListingRequest} requestParameters Request parameters.
2347
2294
  * @param {*} [options] Override http request option.
2348
2295
  * @throws {RequiredError}
2349
2296
  */
2350
- getListing(chainName, listingId, options) {
2351
- return localVarFp.getListing(chainName, listingId, options).then((request) => request(axios, basePath));
2297
+ getListing(requestParameters, options) {
2298
+ return localVarFp.getListing(requestParameters.chainName, requestParameters.listingId, options).then((request) => request(axios, basePath));
2352
2299
  },
2353
2300
  /**
2354
2301
  * Get a single trade by ID
2355
2302
  * @summary Get a single trade by ID
2356
- * @param {string} chainName
2357
- * @param {string} tradeId Global Trade identifier
2303
+ * @param {OrdersApiGetTradeRequest} requestParameters Request parameters.
2358
2304
  * @param {*} [options] Override http request option.
2359
2305
  * @throws {RequiredError}
2360
2306
  */
2361
- getTrade(chainName, tradeId, options) {
2362
- return localVarFp.getTrade(chainName, tradeId, options).then((request) => request(axios, basePath));
2307
+ getTrade(requestParameters, options) {
2308
+ return localVarFp.getTrade(requestParameters.chainName, requestParameters.tradeId, options).then((request) => request(axios, basePath));
2363
2309
  },
2364
2310
  /**
2365
2311
  * List all listings
2366
2312
  * @summary List all listings
2367
- * @param {string} chainName
2368
- * @param {OrderStatus} [status] Order status to filter by
2369
- * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2370
- * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2371
- * @param {string} [sellItemTokenId] Sell item token identifier to filter by
2372
- * @param {number} [pageSize] Maximum number of orders to return per page
2373
- * @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
2374
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
2375
- * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
2313
+ * @param {OrdersApiListListingsRequest} requestParameters Request parameters.
2376
2314
  * @param {*} [options] Override http request option.
2377
2315
  * @throws {RequiredError}
2378
2316
  */
2379
- listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
2380
- return localVarFp.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
2317
+ listListings(requestParameters, options) {
2318
+ return localVarFp.listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
2381
2319
  },
2382
2320
  /**
2383
2321
  * List all trades
2384
2322
  * @summary List all trades
2385
- * @param {string} chainName
2386
- * @param {string} [accountAddress]
2387
- * @param {number} [pageSize] Maximum number of trades to return per page
2388
- * @param {'indexed_at'} [sortBy] Trade field to sort by
2389
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
2390
- * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
2323
+ * @param {OrdersApiListTradesRequest} requestParameters Request parameters.
2391
2324
  * @param {*} [options] Override http request option.
2392
2325
  * @throws {RequiredError}
2393
2326
  */
2394
- listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
2395
- return localVarFp.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
2327
+ listTrades(requestParameters, options) {
2328
+ return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
2396
2329
  },
2397
2330
  };
2398
2331
  };
@@ -2481,6 +2414,34 @@ class OrdersApi extends BaseAPI {
2481
2414
  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));
2482
2415
  }
2483
2416
  }
2417
+ /**
2418
+ * @export
2419
+ */
2420
+ const ListListingsSortByEnum$1 = {
2421
+ CreatedAt: 'created_at',
2422
+ UpdatedAt: 'updated_at',
2423
+ BuyItemAmount: 'buy_item_amount'
2424
+ };
2425
+ /**
2426
+ * @export
2427
+ */
2428
+ const ListListingsSortDirectionEnum$1 = {
2429
+ Asc: 'asc',
2430
+ Desc: 'desc'
2431
+ };
2432
+ /**
2433
+ * @export
2434
+ */
2435
+ const ListTradesSortByEnum$1 = {
2436
+ IndexedAt: 'indexed_at'
2437
+ };
2438
+ /**
2439
+ * @export
2440
+ */
2441
+ const ListTradesSortDirectionEnum$1 = {
2442
+ Asc: 'asc',
2443
+ Desc: 'desc'
2444
+ };
2484
2445
 
2485
2446
  /* tslint:disable */
2486
2447
  /* eslint-disable */
@@ -2609,22 +2570,22 @@ const PassportApiFactory = function (configuration, basePath, axios) {
2609
2570
  /**
2610
2571
  * Create a counterfactual address for a user based on their Ethereum address
2611
2572
  * @summary Create a counterfactual address
2612
- * @param {CreateCounterfactualAddressRequest} createCounterfactualAddressRequest
2573
+ * @param {PassportApiCreateCounterfactualAddressRequest} requestParameters Request parameters.
2613
2574
  * @param {*} [options] Override http request option.
2614
2575
  * @throws {RequiredError}
2615
2576
  */
2616
- createCounterfactualAddress(createCounterfactualAddressRequest, options) {
2617
- return localVarFp.createCounterfactualAddress(createCounterfactualAddressRequest, options).then((request) => request(axios, basePath));
2577
+ createCounterfactualAddress(requestParameters, options) {
2578
+ return localVarFp.createCounterfactualAddress(requestParameters.createCounterfactualAddressRequest, options).then((request) => request(axios, basePath));
2618
2579
  },
2619
2580
  /**
2620
2581
  * Get all the Ethereum linked addresses for a user based on its userId
2621
2582
  * @summary Get Ethereum linked addresses for a user
2622
- * @param {string} userId The user\&#39;s userId
2583
+ * @param {PassportApiGetLinkedAddressesRequest} requestParameters Request parameters.
2623
2584
  * @param {*} [options] Override http request option.
2624
2585
  * @throws {RequiredError}
2625
2586
  */
2626
- getLinkedAddresses(userId, options) {
2627
- return localVarFp.getLinkedAddresses(userId, options).then((request) => request(axios, basePath));
2587
+ getLinkedAddresses(requestParameters, options) {
2588
+ return localVarFp.getLinkedAddresses(requestParameters.userId, options).then((request) => request(axios, basePath));
2628
2589
  },
2629
2590
  };
2630
2591
  };
@@ -2801,26 +2762,22 @@ const TokensApiFactory = function (configuration, basePath, axios) {
2801
2762
  /**
2802
2763
  * Get single ERC20 token
2803
2764
  * @summary Get single ERC20 token
2804
- * @param {string} contractAddress The address of contract
2805
- * @param {string} chainName The name of chain
2765
+ * @param {TokensApiGetERC20TokenRequest} requestParameters Request parameters.
2806
2766
  * @param {*} [options] Override http request option.
2807
2767
  * @throws {RequiredError}
2808
2768
  */
2809
- getERC20Token(contractAddress, chainName, options) {
2810
- return localVarFp.getERC20Token(contractAddress, chainName, options).then((request) => request(axios, basePath));
2769
+ getERC20Token(requestParameters, options) {
2770
+ return localVarFp.getERC20Token(requestParameters.contractAddress, requestParameters.chainName, options).then((request) => request(axios, basePath));
2811
2771
  },
2812
2772
  /**
2813
2773
  * List ERC20 tokens
2814
2774
  * @summary List ERC20 tokens
2815
- * @param {string} chainName The name of chain
2816
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
2817
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2818
- * @param {number} [pageSize] Maximum number of items to return
2775
+ * @param {TokensApiListERC20TokensRequest} requestParameters Request parameters.
2819
2776
  * @param {*} [options] Override http request option.
2820
2777
  * @throws {RequiredError}
2821
2778
  */
2822
- listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
2823
- return localVarFp.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
2779
+ listERC20Tokens(requestParameters, options) {
2780
+ return localVarFp.listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
2824
2781
  },
2825
2782
  };
2826
2783
  };
@@ -2956,8 +2913,8 @@ class Configuration {
2956
2913
  * https://openapi-generator.tech
2957
2914
  * Do not edit the class manually.
2958
2915
  */
2959
- const APIError400AllOfCodeEnum = {
2960
- ValidationError: 'VALIDATION_ERROR'
2916
+ const ActiveOrderStatusNameEnum = {
2917
+ Active: 'ACTIVE'
2961
2918
  };
2962
2919
 
2963
2920
  /* tslint:disable */
@@ -2973,25 +2930,18 @@ const APIError400AllOfCodeEnum = {
2973
2930
  * https://openapi-generator.tech
2974
2931
  * Do not edit the class manually.
2975
2932
  */
2976
- const APIError401AllOfCodeEnum = {
2977
- UnauthorisedRequest: 'UNAUTHORISED_REQUEST'
2978
- };
2979
-
2980
- /* tslint:disable */
2981
- /* eslint-disable */
2982
2933
  /**
2983
- * Immutable zkEVM API
2984
- * Immutable Multi Rollup API
2985
- *
2986
- * The version of the OpenAPI document: 1.0.0
2987
- * Contact: support@immutable.com
2988
- *
2989
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2990
- * https://openapi-generator.tech
2991
- * Do not edit the class manually.
2934
+ * The activity type
2935
+ * @export
2936
+ * @enum {string}
2992
2937
  */
2993
- const APIError403AllOfCodeEnum = {
2994
- AuthenticationError: 'AUTHENTICATION_ERROR'
2938
+ const ActivityType = {
2939
+ Mint: 'mint',
2940
+ Burn: 'burn',
2941
+ Transfer: 'transfer',
2942
+ Sale: 'sale',
2943
+ Deposit: 'deposit',
2944
+ Withdrawal: 'withdrawal'
2995
2945
  };
2996
2946
 
2997
2947
  /* tslint:disable */
@@ -3007,8 +2957,12 @@ const APIError403AllOfCodeEnum = {
3007
2957
  * https://openapi-generator.tech
3008
2958
  * Do not edit the class manually.
3009
2959
  */
3010
- const APIError404AllOfCodeEnum = {
3011
- ResourceNotFound: 'RESOURCE_NOT_FOUND'
2960
+ const CancelledOrderStatusNameEnum = {
2961
+ Cancelled: 'CANCELLED'
2962
+ };
2963
+ const CancelledOrderStatusCancellationTypeEnum = {
2964
+ OnChain: 'ON_CHAIN',
2965
+ OffChain: 'OFF_CHAIN'
3012
2966
  };
3013
2967
 
3014
2968
  /* tslint:disable */
@@ -3024,25 +2978,13 @@ const APIError404AllOfCodeEnum = {
3024
2978
  * https://openapi-generator.tech
3025
2979
  * Do not edit the class manually.
3026
2980
  */
3027
- const APIError429AllOfCodeEnum = {
3028
- TooManyRequestsError: 'TOO_MANY_REQUESTS_ERROR'
3029
- };
3030
-
3031
- /* tslint:disable */
3032
- /* eslint-disable */
3033
2981
  /**
3034
- * Immutable zkEVM API
3035
- * Immutable Multi Rollup API
3036
- *
3037
- * The version of the OpenAPI document: 1.0.0
3038
- * Contact: support@immutable.com
3039
- *
3040
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3041
- * https://openapi-generator.tech
3042
- * Do not edit the class manually.
2982
+ * The collection contract type
2983
+ * @export
2984
+ * @enum {string}
3043
2985
  */
3044
- const APIError500AllOfCodeEnum = {
3045
- InternalServerError: 'INTERNAL_SERVER_ERROR'
2986
+ const CollectionContractType = {
2987
+ Erc721: 'ERC721'
3046
2988
  };
3047
2989
 
3048
2990
  /* tslint:disable */
@@ -3058,8 +3000,8 @@ const APIError500AllOfCodeEnum = {
3058
3000
  * https://openapi-generator.tech
3059
3001
  * Do not edit the class manually.
3060
3002
  */
3061
- const APIError501AllOfCodeEnum = {
3062
- NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
3003
+ const ERC20ItemItemTypeEnum = {
3004
+ Erc20: 'ERC20'
3063
3005
  };
3064
3006
 
3065
3007
  /* tslint:disable */
@@ -3075,18 +3017,8 @@ const APIError501AllOfCodeEnum = {
3075
3017
  * https://openapi-generator.tech
3076
3018
  * Do not edit the class manually.
3077
3019
  */
3078
- /**
3079
- * The activity type
3080
- * @export
3081
- * @enum {string}
3082
- */
3083
- const ActivityType = {
3084
- Mint: 'mint',
3085
- Burn: 'burn',
3086
- Transfer: 'transfer',
3087
- Sale: 'sale',
3088
- Deposit: 'deposit',
3089
- Withdrawal: 'withdrawal'
3020
+ const ERC721ItemItemTypeEnum = {
3021
+ Erc721: 'ERC721'
3090
3022
  };
3091
3023
 
3092
3024
  /* tslint:disable */
@@ -3102,8 +3034,8 @@ const ActivityType = {
3102
3034
  * https://openapi-generator.tech
3103
3035
  * Do not edit the class manually.
3104
3036
  */
3105
- const CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum = {
3106
- AlreadyFilled: 'ALREADY_FILLED'
3037
+ const ExpiredOrderStatusNameEnum = {
3038
+ Expired: 'EXPIRED'
3107
3039
  };
3108
3040
 
3109
3041
  /* tslint:disable */
@@ -3119,13 +3051,8 @@ const CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum = {
3119
3051
  * https://openapi-generator.tech
3120
3052
  * Do not edit the class manually.
3121
3053
  */
3122
- /**
3123
- * The collection contract type
3124
- * @export
3125
- * @enum {string}
3126
- */
3127
- const CollectionContractType = {
3128
- Erc721: 'ERC721'
3054
+ const FailedOrderCancellationReasonCodeEnum = {
3055
+ AlreadyFilled: 'ALREADY_FILLED'
3129
3056
  };
3130
3057
 
3131
3058
  /* tslint:disable */
@@ -3141,8 +3068,11 @@ const CollectionContractType = {
3141
3068
  * https://openapi-generator.tech
3142
3069
  * Do not edit the class manually.
3143
3070
  */
3144
- const ERC20ItemItemTypeEnum = {
3145
- Erc20: 'ERC20'
3071
+ const FeeFeeTypeEnum = {
3072
+ Royalty: 'ROYALTY',
3073
+ MakerEcosystem: 'MAKER_ECOSYSTEM',
3074
+ TakerEcosystem: 'TAKER_ECOSYSTEM',
3075
+ Protocol: 'PROTOCOL'
3146
3076
  };
3147
3077
 
3148
3078
  /* tslint:disable */
@@ -3158,8 +3088,8 @@ const ERC20ItemItemTypeEnum = {
3158
3088
  * https://openapi-generator.tech
3159
3089
  * Do not edit the class manually.
3160
3090
  */
3161
- const ERC721ItemItemTypeEnum = {
3162
- Erc721: 'ERC721'
3091
+ const FilledOrderStatusNameEnum = {
3092
+ Filled: 'FILLED'
3163
3093
  };
3164
3094
 
3165
3095
  /* tslint:disable */
@@ -3175,11 +3105,8 @@ const ERC721ItemItemTypeEnum = {
3175
3105
  * https://openapi-generator.tech
3176
3106
  * Do not edit the class manually.
3177
3107
  */
3178
- const FeeFeeTypeEnum = {
3179
- Royalty: 'ROYALTY',
3180
- MakerEcosystem: 'MAKER_ECOSYSTEM',
3181
- TakerEcosystem: 'TAKER_ECOSYSTEM',
3182
- Protocol: 'PROTOCOL'
3108
+ const InactiveOrderStatusNameEnum = {
3109
+ Inactive: 'INACTIVE'
3183
3110
  };
3184
3111
 
3185
3112
  /* tslint:disable */
@@ -3239,13 +3166,30 @@ const NativeItemItemTypeEnum = {
3239
3166
  * @export
3240
3167
  * @enum {string}
3241
3168
  */
3242
- const OrderStatus = {
3169
+ const OrderStatusName = {
3243
3170
  Pending: 'PENDING',
3244
3171
  Active: 'ACTIVE',
3245
3172
  Inactive: 'INACTIVE',
3246
3173
  Filled: 'FILLED',
3247
- Cancelled: 'CANCELLED',
3248
- Expired: 'EXPIRED'
3174
+ Expired: 'EXPIRED',
3175
+ Cancelled: 'CANCELLED'
3176
+ };
3177
+
3178
+ /* tslint:disable */
3179
+ /* eslint-disable */
3180
+ /**
3181
+ * Immutable zkEVM API
3182
+ * Immutable Multi Rollup API
3183
+ *
3184
+ * The version of the OpenAPI document: 1.0.0
3185
+ * Contact: support@immutable.com
3186
+ *
3187
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3188
+ * https://openapi-generator.tech
3189
+ * Do not edit the class manually.
3190
+ */
3191
+ const PendingOrderStatusNameEnum = {
3192
+ Pending: 'PENDING'
3249
3193
  };
3250
3194
 
3251
3195
  /* tslint:disable */
@@ -3320,19 +3264,14 @@ const TokenContractType = {
3320
3264
 
3321
3265
  var index = /*#__PURE__*/Object.freeze({
3322
3266
  __proto__: null,
3323
- APIError400AllOfCodeEnum: APIError400AllOfCodeEnum,
3324
- APIError401AllOfCodeEnum: APIError401AllOfCodeEnum,
3325
- APIError403AllOfCodeEnum: APIError403AllOfCodeEnum,
3326
- APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
3327
- APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
3328
- APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
3329
- APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
3267
+ ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
3330
3268
  ActivitiesApi: ActivitiesApi,
3331
3269
  ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
3332
3270
  ActivitiesApiFactory: ActivitiesApiFactory,
3333
3271
  ActivitiesApiFp: ActivitiesApiFp,
3334
3272
  ActivityType: ActivityType,
3335
- CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum: CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum,
3273
+ CancelledOrderStatusCancellationTypeEnum: CancelledOrderStatusCancellationTypeEnum,
3274
+ CancelledOrderStatusNameEnum: CancelledOrderStatusNameEnum,
3336
3275
  ChainsApi: ChainsApi,
3337
3276
  ChainsApiAxiosParamCreator: ChainsApiAxiosParamCreator,
3338
3277
  ChainsApiFactory: ChainsApiFactory,
@@ -3345,7 +3284,15 @@ var index = /*#__PURE__*/Object.freeze({
3345
3284
  Configuration: Configuration,
3346
3285
  ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
3347
3286
  ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
3287
+ ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
3288
+ FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
3348
3289
  FeeFeeTypeEnum: FeeFeeTypeEnum,
3290
+ FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
3291
+ InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
3292
+ ListListingsSortByEnum: ListListingsSortByEnum$1,
3293
+ ListListingsSortDirectionEnum: ListListingsSortDirectionEnum$1,
3294
+ ListTradesSortByEnum: ListTradesSortByEnum$1,
3295
+ ListTradesSortDirectionEnum: ListTradesSortDirectionEnum$1,
3349
3296
  MetadataApi: MetadataApi,
3350
3297
  MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
3351
3298
  MetadataApiFactory: MetadataApiFactory,
@@ -3360,7 +3307,7 @@ var index = /*#__PURE__*/Object.freeze({
3360
3307
  NftsApiAxiosParamCreator: NftsApiAxiosParamCreator,
3361
3308
  NftsApiFactory: NftsApiFactory,
3362
3309
  NftsApiFp: NftsApiFp,
3363
- OrderStatus: OrderStatus,
3310
+ OrderStatusName: OrderStatusName,
3364
3311
  OrdersApi: OrdersApi,
3365
3312
  OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
3366
3313
  OrdersApiFactory: OrdersApiFactory,
@@ -3369,6 +3316,7 @@ var index = /*#__PURE__*/Object.freeze({
3369
3316
  PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
3370
3317
  PassportApiFactory: PassportApiFactory,
3371
3318
  PassportApiFp: PassportApiFp,
3319
+ PendingOrderStatusNameEnum: PendingOrderStatusNameEnum,
3372
3320
  ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
3373
3321
  SaleFeeTypeEnum: SaleFeeTypeEnum,
3374
3322
  TokenContractType: TokenContractType,
@@ -3378,6 +3326,134 @@ var index = /*#__PURE__*/Object.freeze({
3378
3326
  TokensApiFp: TokensApiFp
3379
3327
  });
3380
3328
 
3329
+ /* tslint:disable */
3330
+ /* eslint-disable */
3331
+ /**
3332
+ * Immutable zkEVM API
3333
+ * Immutable Multi Rollup API
3334
+ *
3335
+ * The version of the OpenAPI document: 1.0.0
3336
+ * Contact: support@immutable.com
3337
+ *
3338
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3339
+ * https://openapi-generator.tech
3340
+ * Do not edit the class manually.
3341
+ */
3342
+ // @ts-ignore
3343
+
3344
+ var activitiesApiTypes = /*#__PURE__*/Object.freeze({
3345
+ __proto__: null,
3346
+ ActivityType: ActivityType
3347
+ });
3348
+
3349
+ /* tslint:disable */
3350
+ /* eslint-disable */
3351
+ /**
3352
+ * Immutable zkEVM API
3353
+ * Immutable Multi Rollup API
3354
+ *
3355
+ * The version of the OpenAPI document: 1.0.0
3356
+ * Contact: support@immutable.com
3357
+ *
3358
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3359
+ * https://openapi-generator.tech
3360
+ * Do not edit the class manually.
3361
+ */
3362
+
3363
+ var chainsApiTypes = /*#__PURE__*/Object.freeze({
3364
+ __proto__: null
3365
+ });
3366
+
3367
+ /* tslint:disable */
3368
+ /* eslint-disable */
3369
+ /**
3370
+ * Immutable zkEVM API
3371
+ * Immutable Multi Rollup API
3372
+ *
3373
+ * The version of the OpenAPI document: 1.0.0
3374
+ * Contact: support@immutable.com
3375
+ *
3376
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3377
+ * https://openapi-generator.tech
3378
+ * Do not edit the class manually.
3379
+ */
3380
+
3381
+ var collectionsApiTypes = /*#__PURE__*/Object.freeze({
3382
+ __proto__: null
3383
+ });
3384
+
3385
+ /* tslint:disable */
3386
+ /* eslint-disable */
3387
+ /**
3388
+ * Immutable zkEVM API
3389
+ * Immutable Multi Rollup API
3390
+ *
3391
+ * The version of the OpenAPI document: 1.0.0
3392
+ * Contact: support@immutable.com
3393
+ *
3394
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3395
+ * https://openapi-generator.tech
3396
+ * Do not edit the class manually.
3397
+ */
3398
+
3399
+ var metadataApiTypes = /*#__PURE__*/Object.freeze({
3400
+ __proto__: null
3401
+ });
3402
+
3403
+ /* tslint:disable */
3404
+ /* eslint-disable */
3405
+ /**
3406
+ * Immutable zkEVM API
3407
+ * Immutable Multi Rollup API
3408
+ *
3409
+ * The version of the OpenAPI document: 1.0.0
3410
+ * Contact: support@immutable.com
3411
+ *
3412
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3413
+ * https://openapi-generator.tech
3414
+ * Do not edit the class manually.
3415
+ */
3416
+
3417
+ var nftOwnersApiTypes = /*#__PURE__*/Object.freeze({
3418
+ __proto__: null
3419
+ });
3420
+
3421
+ /* tslint:disable */
3422
+ /* eslint-disable */
3423
+ /**
3424
+ * Immutable zkEVM API
3425
+ * Immutable Multi Rollup API
3426
+ *
3427
+ * The version of the OpenAPI document: 1.0.0
3428
+ * Contact: support@immutable.com
3429
+ *
3430
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3431
+ * https://openapi-generator.tech
3432
+ * Do not edit the class manually.
3433
+ */
3434
+
3435
+ var nftsApiTypes = /*#__PURE__*/Object.freeze({
3436
+ __proto__: null
3437
+ });
3438
+
3439
+ /* tslint:disable */
3440
+ /* eslint-disable */
3441
+ /**
3442
+ * Immutable zkEVM API
3443
+ * Immutable Multi Rollup API
3444
+ *
3445
+ * The version of the OpenAPI document: 1.0.0
3446
+ * Contact: support@immutable.com
3447
+ *
3448
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3449
+ * https://openapi-generator.tech
3450
+ * Do not edit the class manually.
3451
+ */
3452
+
3453
+ var tokensApiTypes = /*#__PURE__*/Object.freeze({
3454
+ __proto__: null
3455
+ });
3456
+
3381
3457
  var Environment;
3382
3458
  (function (Environment) {
3383
3459
  Environment["PRODUCTION"] = "production";
@@ -3403,7 +3479,7 @@ class APIError extends Error {
3403
3479
 
3404
3480
  /* eslint-disable implicit-arrow-linebreak */
3405
3481
  const defaultHeaders = {
3406
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.0',
3482
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.2-alpha',
3407
3483
  };
3408
3484
  /**
3409
3485
  * createAPIConfiguration to create a custom Configuration
@@ -3792,4 +3868,4 @@ class BlockchainData {
3792
3868
  }
3793
3869
  }
3794
3870
 
3795
- export { APIError, BlockchainData };
3871
+ export { APIError, activitiesApiTypes as ActivitiesApi, BlockchainData, chainsApiTypes as ChainsApi, collectionsApiTypes as CollectionsApi, metadataApiTypes as MetadataApi, nftOwnersApiTypes as NFTOwnersApi, nftsApiTypes as NFTsApi, tokensApiTypes as TokensApi };