@imtbl/sdk 1.9.0-alpha → 1.10.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.
Files changed (38) hide show
  1. package/dist/blockchain_data.d.ts +264 -845
  2. package/dist/blockchain_data.js +2 -274
  3. package/dist/browser/checkout/{BridgeWidget-36fe7401.js → BridgeWidget-31d071b4.js} +1 -1
  4. package/dist/browser/checkout/{OnRampWidget-21725b01.js → OnRampWidget-4eec34f6.js} +1 -1
  5. package/dist/browser/checkout/{SaleWidget-3677a1c5.js → SaleWidget-596fd2e5.js} +2 -2
  6. package/dist/browser/checkout/{SpendingCapHero-5fb4ac25.js → SpendingCapHero-bb5926a7.js} +1 -1
  7. package/dist/browser/checkout/{SwapWidget-0d6bc0d4.js → SwapWidget-35e7e9f2.js} +1 -1
  8. package/dist/browser/checkout/{TopUpView-60d92a82.js → TopUpView-a266b45b.js} +1 -1
  9. package/dist/browser/checkout/{WalletWidget-2fcbc4bb.js → WalletWidget-fbdc8df9.js} +1 -1
  10. package/dist/browser/checkout/{auto-track-62ee6964.js → auto-track-8e44b259.js} +1 -1
  11. package/dist/browser/checkout/{balance-b321aaf7.js → balance-2f1a40a7.js} +1 -1
  12. package/dist/browser/checkout/{index-ab695071.js → index-05c37e37.js} +1 -1
  13. package/dist/browser/checkout/{index-1a8c04a2.js → index-12cfbb8d.js} +1 -1
  14. package/dist/browser/checkout/{index-c4bede96.js → index-44c1fadf.js} +1 -1
  15. package/dist/browser/checkout/{index-407df153.js → index-75030038.js} +1 -1
  16. package/dist/browser/checkout/{index-352de7c2.js → index-881a9811.js} +1 -1
  17. package/dist/browser/checkout/{index-0dadb136.js → index-d506d80c.js} +1 -1
  18. package/dist/browser/checkout/index-d708abfc.js +1 -0
  19. package/dist/browser/checkout/{index-9ae59197.js → index-ec746bdd.js} +2 -2
  20. package/dist/browser/checkout/{index.umd-4c6acdc2.js → index.umd-8511e3cb.js} +1 -1
  21. package/dist/browser/checkout/{retry-d9a527bc.js → retry-d29da2e9.js} +1 -1
  22. package/dist/browser/checkout/sdk.js +8 -8
  23. package/dist/browser/checkout/{useTransakEvents-9ceb1e81.js → useTransakEvents-eca6f619.js} +1 -1
  24. package/dist/browser/checkout/widgets-esm.js +1 -1
  25. package/dist/browser/checkout/widgets.js +3 -3
  26. package/dist/checkout.d.ts +0 -3
  27. package/dist/checkout.js +4 -276
  28. package/dist/config.js +1 -1
  29. package/dist/index.browser.js +13 -13
  30. package/dist/index.browser.js.map +1 -1
  31. package/dist/index.cjs +6 -278
  32. package/dist/index.d.ts +263 -847
  33. package/dist/index.js +6 -278
  34. package/dist/orderbook.js +1 -1
  35. package/dist/passport.js +3 -203
  36. package/dist/x.js +2 -2
  37. package/package.json +1 -1
  38. package/dist/browser/checkout/index-a7be28ed.js +0 -1
@@ -1664,85 +1664,6 @@ class NftOwnersApi extends BaseAPI {
1664
1664
  */
1665
1665
  const NftsApiAxiosParamCreator = function (configuration) {
1666
1666
  return {
1667
- /**
1668
- * Create a mint request to mint a set of NFTs for a given collection
1669
- * @summary Mint NFTs
1670
- * @param {string} contractAddress The address of contract
1671
- * @param {string} chainName The name of chain
1672
- * @param {CreateMintRequestRequest} createMintRequestRequest the request body
1673
- * @param {*} [options] Override http request option.
1674
- * @throws {RequiredError}
1675
- */
1676
- createMintRequest: async (contractAddress, chainName, createMintRequestRequest, options = {}) => {
1677
- // verify required parameter 'contractAddress' is not null or undefined
1678
- assertParamExists('createMintRequest', 'contractAddress', contractAddress);
1679
- // verify required parameter 'chainName' is not null or undefined
1680
- assertParamExists('createMintRequest', 'chainName', chainName);
1681
- // verify required parameter 'createMintRequestRequest' is not null or undefined
1682
- assertParamExists('createMintRequest', 'createMintRequestRequest', createMintRequestRequest);
1683
- const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
1684
- .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
1685
- .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1686
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1687
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1688
- let baseOptions;
1689
- if (configuration) {
1690
- baseOptions = configuration.baseOptions;
1691
- }
1692
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1693
- const localVarHeaderParameter = {};
1694
- const localVarQueryParameter = {};
1695
- // authentication ImmutableApiKey required
1696
- await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
1697
- localVarHeaderParameter['Content-Type'] = 'application/json';
1698
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1699
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1700
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1701
- localVarRequestOptions.data = serializeDataIfNeeded(createMintRequestRequest, localVarRequestOptions, configuration);
1702
- return {
1703
- url: toPathString(localVarUrlObj),
1704
- options: localVarRequestOptions,
1705
- };
1706
- },
1707
- /**
1708
- * Retrieve the status of a mint request identified by its reference_id
1709
- * @summary Mint NFTs
1710
- * @param {string} contractAddress The address of contract
1711
- * @param {string} chainName The name of chain
1712
- * @param {string} referenceId The ID of the mint request
1713
- * @param {*} [options] Override http request option.
1714
- * @throws {RequiredError}
1715
- */
1716
- getMintRequest: async (contractAddress, chainName, referenceId, options = {}) => {
1717
- // verify required parameter 'contractAddress' is not null or undefined
1718
- assertParamExists('getMintRequest', 'contractAddress', contractAddress);
1719
- // verify required parameter 'chainName' is not null or undefined
1720
- assertParamExists('getMintRequest', 'chainName', chainName);
1721
- // verify required parameter 'referenceId' is not null or undefined
1722
- assertParamExists('getMintRequest', 'referenceId', referenceId);
1723
- const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}`
1724
- .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
1725
- .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
1726
- .replace(`{${"reference_id"}}`, encodeURIComponent(String(referenceId)));
1727
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1728
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1729
- let baseOptions;
1730
- if (configuration) {
1731
- baseOptions = configuration.baseOptions;
1732
- }
1733
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1734
- const localVarHeaderParameter = {};
1735
- const localVarQueryParameter = {};
1736
- // authentication ImmutableApiKey required
1737
- await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
1738
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1739
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1740
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1741
- return {
1742
- url: toPathString(localVarUrlObj),
1743
- options: localVarRequestOptions,
1744
- };
1745
- },
1746
1667
  /**
1747
1668
  * Get NFT by token ID
1748
1669
  * @summary Get NFT by token ID
@@ -1823,53 +1744,6 @@ const NftsApiAxiosParamCreator = function (configuration) {
1823
1744
  options: localVarRequestOptions,
1824
1745
  };
1825
1746
  },
1826
- /**
1827
- * Retrieve the status of all mints for a given contract address
1828
- * @summary Mint NFTs
1829
- * @param {string} contractAddress The address of contract
1830
- * @param {string} chainName The name of chain
1831
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1832
- * @param {number} [pageSize] Maximum number of items to return
1833
- * @param {MintRequestStatus} [status] The status of the mint request
1834
- * @param {*} [options] Override http request option.
1835
- * @throws {RequiredError}
1836
- */
1837
- listMintRequests: async (contractAddress, chainName, pageCursor, pageSize, status, options = {}) => {
1838
- // verify required parameter 'contractAddress' is not null or undefined
1839
- assertParamExists('listMintRequests', 'contractAddress', contractAddress);
1840
- // verify required parameter 'chainName' is not null or undefined
1841
- assertParamExists('listMintRequests', 'chainName', chainName);
1842
- const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
1843
- .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
1844
- .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1845
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1846
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1847
- let baseOptions;
1848
- if (configuration) {
1849
- baseOptions = configuration.baseOptions;
1850
- }
1851
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1852
- const localVarHeaderParameter = {};
1853
- const localVarQueryParameter = {};
1854
- // authentication ImmutableApiKey required
1855
- await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
1856
- if (pageCursor !== undefined) {
1857
- localVarQueryParameter['page_cursor'] = pageCursor;
1858
- }
1859
- if (pageSize !== undefined) {
1860
- localVarQueryParameter['page_size'] = pageSize;
1861
- }
1862
- if (status !== undefined) {
1863
- localVarQueryParameter['status'] = status;
1864
- }
1865
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1866
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1867
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1868
- return {
1869
- url: toPathString(localVarUrlObj),
1870
- options: localVarRequestOptions,
1871
- };
1872
- },
1873
1747
  /**
1874
1748
  * List NFTs by contract address
1875
1749
  * @summary List NFTs by contract address
@@ -1975,32 +1849,6 @@ const NftsApiAxiosParamCreator = function (configuration) {
1975
1849
  const NftsApiFp = function (configuration) {
1976
1850
  const localVarAxiosParamCreator = NftsApiAxiosParamCreator(configuration);
1977
1851
  return {
1978
- /**
1979
- * Create a mint request to mint a set of NFTs for a given collection
1980
- * @summary Mint NFTs
1981
- * @param {string} contractAddress The address of contract
1982
- * @param {string} chainName The name of chain
1983
- * @param {CreateMintRequestRequest} createMintRequestRequest the request body
1984
- * @param {*} [options] Override http request option.
1985
- * @throws {RequiredError}
1986
- */
1987
- async createMintRequest(contractAddress, chainName, createMintRequestRequest, options) {
1988
- const localVarAxiosArgs = await localVarAxiosParamCreator.createMintRequest(contractAddress, chainName, createMintRequestRequest, options);
1989
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1990
- },
1991
- /**
1992
- * Retrieve the status of a mint request identified by its reference_id
1993
- * @summary Mint NFTs
1994
- * @param {string} contractAddress The address of contract
1995
- * @param {string} chainName The name of chain
1996
- * @param {string} referenceId The ID of the mint request
1997
- * @param {*} [options] Override http request option.
1998
- * @throws {RequiredError}
1999
- */
2000
- async getMintRequest(contractAddress, chainName, referenceId, options) {
2001
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMintRequest(contractAddress, chainName, referenceId, options);
2002
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2003
- },
2004
1852
  /**
2005
1853
  * Get NFT by token ID
2006
1854
  * @summary Get NFT by token ID
@@ -2028,21 +1876,6 @@ const NftsApiFp = function (configuration) {
2028
1876
  const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options);
2029
1877
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2030
1878
  },
2031
- /**
2032
- * Retrieve the status of all mints for a given contract address
2033
- * @summary Mint NFTs
2034
- * @param {string} contractAddress The address of contract
2035
- * @param {string} chainName The name of chain
2036
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2037
- * @param {number} [pageSize] Maximum number of items to return
2038
- * @param {MintRequestStatus} [status] The status of the mint request
2039
- * @param {*} [options] Override http request option.
2040
- * @throws {RequiredError}
2041
- */
2042
- async listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options) {
2043
- const localVarAxiosArgs = await localVarAxiosParamCreator.listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options);
2044
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2045
- },
2046
1879
  /**
2047
1880
  * List NFTs by contract address
2048
1881
  * @summary List NFTs by contract address
@@ -2083,26 +1916,6 @@ const NftsApiFp = function (configuration) {
2083
1916
  const NftsApiFactory = function (configuration, basePath, axios) {
2084
1917
  const localVarFp = NftsApiFp(configuration);
2085
1918
  return {
2086
- /**
2087
- * Create a mint request to mint a set of NFTs for a given collection
2088
- * @summary Mint NFTs
2089
- * @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
2090
- * @param {*} [options] Override http request option.
2091
- * @throws {RequiredError}
2092
- */
2093
- createMintRequest(requestParameters, options) {
2094
- return localVarFp.createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(axios, basePath));
2095
- },
2096
- /**
2097
- * Retrieve the status of a mint request identified by its reference_id
2098
- * @summary Mint NFTs
2099
- * @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
2100
- * @param {*} [options] Override http request option.
2101
- * @throws {RequiredError}
2102
- */
2103
- getMintRequest(requestParameters, options) {
2104
- return localVarFp.getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(axios, basePath));
2105
- },
2106
1919
  /**
2107
1920
  * Get NFT by token ID
2108
1921
  * @summary Get NFT by token ID
@@ -2123,16 +1936,6 @@ const NftsApiFactory = function (configuration, basePath, axios) {
2123
1936
  listAllNFTs(requestParameters, options) {
2124
1937
  return localVarFp.listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
2125
1938
  },
2126
- /**
2127
- * Retrieve the status of all mints for a given contract address
2128
- * @summary Mint NFTs
2129
- * @param {NftsApiListMintRequestsRequest} requestParameters Request parameters.
2130
- * @param {*} [options] Override http request option.
2131
- * @throws {RequiredError}
2132
- */
2133
- listMintRequests(requestParameters, options) {
2134
- return localVarFp.listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(axios, basePath));
2135
- },
2136
1939
  /**
2137
1940
  * List NFTs by contract address
2138
1941
  * @summary List NFTs by contract address
@@ -2162,28 +1965,6 @@ const NftsApiFactory = function (configuration, basePath, axios) {
2162
1965
  * @extends {BaseAPI}
2163
1966
  */
2164
1967
  class NftsApi extends BaseAPI {
2165
- /**
2166
- * Create a mint request to mint a set of NFTs for a given collection
2167
- * @summary Mint NFTs
2168
- * @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
2169
- * @param {*} [options] Override http request option.
2170
- * @throws {RequiredError}
2171
- * @memberof NftsApi
2172
- */
2173
- createMintRequest(requestParameters, options) {
2174
- return NftsApiFp(this.configuration).createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(this.axios, this.basePath));
2175
- }
2176
- /**
2177
- * Retrieve the status of a mint request identified by its reference_id
2178
- * @summary Mint NFTs
2179
- * @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
2180
- * @param {*} [options] Override http request option.
2181
- * @throws {RequiredError}
2182
- * @memberof NftsApi
2183
- */
2184
- getMintRequest(requestParameters, options) {
2185
- return NftsApiFp(this.configuration).getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(this.axios, this.basePath));
2186
- }
2187
1968
  /**
2188
1969
  * Get NFT by token ID
2189
1970
  * @summary Get NFT by token ID
@@ -2206,17 +1987,6 @@ class NftsApi extends BaseAPI {
2206
1987
  listAllNFTs(requestParameters, options) {
2207
1988
  return NftsApiFp(this.configuration).listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2208
1989
  }
2209
- /**
2210
- * Retrieve the status of all mints for a given contract address
2211
- * @summary Mint NFTs
2212
- * @param {NftsApiListMintRequestsRequest} requestParameters Request parameters.
2213
- * @param {*} [options] Override http request option.
2214
- * @throws {RequiredError}
2215
- * @memberof NftsApi
2216
- */
2217
- listMintRequests(requestParameters, options) {
2218
- return NftsApiFp(this.configuration).listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2219
- }
2220
1990
  /**
2221
1991
  * List NFTs by contract address
2222
1992
  * @summary List NFTs by contract address
@@ -4814,7 +4584,7 @@ const flattenProperties = (properties) => {
4814
4584
  };
4815
4585
 
4816
4586
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
4817
- const SDK_VERSION = '1.9.0-alpha';
4587
+ const SDK_VERSION = '1.10.0-alpha.1';
4818
4588
  const getReferrer = () => {
4819
4589
  if (isNode()) {
4820
4590
  return '';
@@ -5016,7 +4786,7 @@ class APIError extends Error {
5016
4786
 
5017
4787
  /* eslint-disable implicit-arrow-linebreak */
5018
4788
  const defaultHeaders = {
5019
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.9.0-alpha',
4789
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.10.0-alpha.1',
5020
4790
  };
5021
4791
  /**
5022
4792
  * createAPIConfiguration to create a custom Configuration
@@ -5277,48 +5047,6 @@ class BlockchainData {
5277
5047
  throw formatError(err);
5278
5048
  });
5279
5049
  }
5280
- /**
5281
- * Create a mint request to mint a set of NFTs for a given collection
5282
- * @param request - the request object containing the parameters to be provided in the API request
5283
- * @returns a promise that resolves with the remaining rate limits
5284
- * @throws {@link index.APIError}
5285
- */
5286
- async createMintRequest(request) {
5287
- return await this.nfts
5288
- .createMintRequest(request)
5289
- .then((res) => res.data)
5290
- .catch((err) => {
5291
- throw formatError(err);
5292
- });
5293
- }
5294
- /**
5295
- * List all mint requests for a given contract address
5296
- * @param request - the request object containing the parameters to be provided in the API request
5297
- * @returns a promise that resolves with a list of mint requests
5298
- * @throws {@link index.APIError}
5299
- */
5300
- async listMintRequests(request) {
5301
- return await this.nfts
5302
- .listMintRequests(request)
5303
- .then((res) => res.data)
5304
- .catch((err) => {
5305
- throw formatError(err);
5306
- });
5307
- }
5308
- /**
5309
- * Retrieve the status of a single mint request identified by its reference ID
5310
- * @param request - the request object containing the parameters to be provided in the API request
5311
- * @returns a promise that resolves with a single mint request
5312
- * @throws {@link index.APIError}
5313
- */
5314
- async getMintRequest(request) {
5315
- return await this.nfts
5316
- .getMintRequest(request)
5317
- .then((res) => res.data)
5318
- .catch((err) => {
5319
- throw formatError(err);
5320
- });
5321
- }
5322
5050
  /**
5323
5051
  * List NFT owners by token ID
5324
5052
  * @param request - the request object containing the parameters to be provided in the API request