@imtbl/sdk 1.5.4 → 1.6.0

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/checkout.js CHANGED
@@ -139,7 +139,7 @@ const flattenProperties$1 = (properties) => {
139
139
  };
140
140
 
141
141
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
142
- const SDK_VERSION$1 = '1.5.4';
142
+ const SDK_VERSION$1 = '1.6.0';
143
143
  const getReferrer$1 = () => {
144
144
  if (isNode$1()) {
145
145
  return '';
@@ -17478,7 +17478,7 @@ const flattenProperties = (properties) => {
17478
17478
  };
17479
17479
 
17480
17480
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
17481
- const SDK_VERSION = '1.5.4';
17481
+ const SDK_VERSION = '1.6.0';
17482
17482
  const getReferrer = () => {
17483
17483
  if (isNode()) {
17484
17484
  return '';
@@ -24029,6 +24029,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
24029
24029
  const localVarQueryParameter = {};
24030
24030
  // authentication ImmutableApiKey required
24031
24031
  await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
24032
+ // authentication BearerAuth required
24033
+ // http bearer authentication required
24034
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
24032
24035
  localVarHeaderParameter['Content-Type'] = 'application/json';
24033
24036
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24034
24037
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -25028,13 +25031,14 @@ const NftsApiAxiosParamCreator = function (configuration) {
25028
25031
  * @summary List NFTs by contract address
25029
25032
  * @param {string} contractAddress Contract address
25030
25033
  * @param {string} chainName The name of chain
25034
+ * @param {Array<string>} [tokenId] List of token IDs to filter by
25031
25035
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
25032
25036
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
25033
25037
  * @param {number} [pageSize] Maximum number of items to return
25034
25038
  * @param {*} [options] Override http request option.
25035
25039
  * @throws {RequiredError}
25036
25040
  */
25037
- listNFTs: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
25041
+ listNFTs: async (contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
25038
25042
  // verify required parameter 'contractAddress' is not null or undefined
25039
25043
  assertParamExists('listNFTs', 'contractAddress', contractAddress);
25040
25044
  // verify required parameter 'chainName' is not null or undefined
@@ -25051,6 +25055,9 @@ const NftsApiAxiosParamCreator = function (configuration) {
25051
25055
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
25052
25056
  const localVarHeaderParameter = {};
25053
25057
  const localVarQueryParameter = {};
25058
+ if (tokenId) {
25059
+ localVarQueryParameter['token_id'] = tokenId;
25060
+ }
25054
25061
  if (fromUpdatedAt !== undefined) {
25055
25062
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
25056
25063
  fromUpdatedAt.toISOString() :
@@ -25156,14 +25163,15 @@ const NftsApiFp = function (configuration) {
25156
25163
  * @summary List NFTs by contract address
25157
25164
  * @param {string} contractAddress Contract address
25158
25165
  * @param {string} chainName The name of chain
25166
+ * @param {Array<string>} [tokenId] List of token IDs to filter by
25159
25167
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
25160
25168
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
25161
25169
  * @param {number} [pageSize] Maximum number of items to return
25162
25170
  * @param {*} [options] Override http request option.
25163
25171
  * @throws {RequiredError}
25164
25172
  */
25165
- async listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
25166
- const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
25173
+ async listNFTs(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options) {
25174
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options);
25167
25175
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
25168
25176
  },
25169
25177
  /**
@@ -25218,7 +25226,7 @@ const NftsApiFactory = function (configuration, basePath, axios) {
25218
25226
  * @throws {RequiredError}
25219
25227
  */
25220
25228
  listNFTs(requestParameters, options) {
25221
- return localVarFp.listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
25229
+ return localVarFp.listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
25222
25230
  },
25223
25231
  /**
25224
25232
  * List NFTs by account address
@@ -25270,7 +25278,7 @@ class NftsApi extends BaseAPI {
25270
25278
  * @memberof NftsApi
25271
25279
  */
25272
25280
  listNFTs(requestParameters, options) {
25273
- return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
25281
+ return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
25274
25282
  }
25275
25283
  /**
25276
25284
  * List NFTs by account address
@@ -27715,7 +27723,7 @@ class APIError extends Error {
27715
27723
 
27716
27724
  /* eslint-disable implicit-arrow-linebreak */
27717
27725
  const defaultHeaders = {
27718
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.5.4',
27726
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.6.0',
27719
27727
  };
27720
27728
  /**
27721
27729
  * createAPIConfiguration to create a custom Configuration
@@ -29082,7 +29090,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
29082
29090
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
29083
29091
  };
29084
29092
 
29085
- const SDK_VERSION_MARKER = '1.5.4';
29093
+ const SDK_VERSION_MARKER = '1.6.0';
29086
29094
  // This SDK version is replaced by the `yarn build` command ran on the root level
29087
29095
  const globalPackageVersion = () => SDK_VERSION_MARKER;
29088
29096
 
package/dist/config.js CHANGED
@@ -128,7 +128,7 @@ const flattenProperties = (properties) => {
128
128
  };
129
129
 
130
130
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
131
- const SDK_VERSION = '1.5.4';
131
+ const SDK_VERSION = '1.6.0';
132
132
  const getReferrer = () => {
133
133
  if (isNode()) {
134
134
  return '';