@imtbl/sdk 1.4.2 → 1.5.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/index.cjs CHANGED
@@ -173,7 +173,7 @@ const flattenProperties$1 = (properties) => {
173
173
  };
174
174
 
175
175
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
176
- const SDK_VERSION$1 = '1.4.2';
176
+ const SDK_VERSION$1 = '1.5.0';
177
177
  let initialised$1 = false;
178
178
  const isInitialised$1 = () => initialised$1;
179
179
  const getReferrer$1 = () => {
@@ -11260,7 +11260,7 @@ class MultiRollupApiClients {
11260
11260
  }
11261
11261
 
11262
11262
  // eslint-disable-next-line @typescript-eslint/naming-convention
11263
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.4.2' };
11263
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.5.0' };
11264
11264
  const createConfig = ({ basePath, headers, }) => {
11265
11265
  if (!basePath.trim()) {
11266
11266
  throw Error('basePath can not be empty');
@@ -11332,7 +11332,7 @@ class APIError extends Error {
11332
11332
 
11333
11333
  /* eslint-disable implicit-arrow-linebreak */
11334
11334
  const defaultHeaders = {
11335
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.4.2',
11335
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.5.0',
11336
11336
  };
11337
11337
  /**
11338
11338
  * createAPIConfiguration to create a custom Configuration
@@ -11765,7 +11765,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11765
11765
  chainID,
11766
11766
  coreContractAddress,
11767
11767
  registrationContractAddress,
11768
- sdkVersion: 'ts-immutable-sdk-1.4.2',
11768
+ sdkVersion: 'ts-immutable-sdk-1.5.0',
11769
11769
  });
11770
11770
  /**
11771
11771
  * Sets `sdkVersion` at the time of build
@@ -19089,7 +19089,7 @@ class OrdersService {
19089
19089
  * @returns ListListingsResult OK response.
19090
19090
  * @throws ApiError
19091
19091
  */
19092
- listListings({ chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }) {
19092
+ listListings({ chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }) {
19093
19093
  return this.httpRequest.request({
19094
19094
  method: 'GET',
19095
19095
  url: '/v1/chains/{chain_name}/orders/listings',
@@ -19099,6 +19099,7 @@ class OrdersService {
19099
19099
  query: {
19100
19100
  'status': status,
19101
19101
  'sell_item_contract_address': sellItemContractAddress,
19102
+ 'buy_item_type': buyItemType,
19102
19103
  'buy_item_contract_address': buyItemContractAddress,
19103
19104
  'account_address': accountAddress,
19104
19105
  'sell_item_metadata_id': sellItemMetadataId,
@@ -37061,7 +37062,7 @@ const flattenProperties = (properties) => {
37061
37062
  };
37062
37063
 
37063
37064
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
37064
- const SDK_VERSION = '1.4.2';
37065
+ const SDK_VERSION = '1.5.0';
37065
37066
  let initialised = false;
37066
37067
  const isInitialised = () => initialised;
37067
37068
  const getReferrer = () => {
@@ -42169,7 +42170,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
42169
42170
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
42170
42171
  };
42171
42172
 
42172
- const SDK_VERSION_MARKER = '1.4.2';
42173
+ const SDK_VERSION_MARKER = '1.5.0';
42173
42174
  // This SDK version is replaced by the `yarn build` command ran on the root level
42174
42175
  const globalPackageVersion = () => SDK_VERSION_MARKER;
42175
42176
 
package/dist/index.d.ts CHANGED
@@ -29148,7 +29148,7 @@ type FulfillmentDataRequest = {
29148
29148
  /**
29149
29149
  * Address of the intended account fulfilling the order
29150
29150
  */
29151
- taker_address?: string;
29151
+ taker_address: string;
29152
29152
  fees: Array<Fee$2>;
29153
29153
  };
29154
29154
 
@@ -29279,7 +29279,7 @@ declare class OrdersService {
29279
29279
  * @returns ListListingsResult OK response.
29280
29280
  * @throws ApiError
29281
29281
  */
29282
- listListings({ chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }: {
29282
+ listListings({ chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }: {
29283
29283
  chainName: ChainName$1;
29284
29284
  /**
29285
29285
  * Order status to filter by
@@ -29289,6 +29289,10 @@ declare class OrdersService {
29289
29289
  * Sell item contract address to filter by
29290
29290
  */
29291
29291
  sellItemContractAddress?: string;
29292
+ /**
29293
+ * Buy item type to filter by
29294
+ */
29295
+ buyItemType?: 'NATIVE' | 'ERC20';
29292
29296
  /**
29293
29297
  * Buy item contract address to filter by
29294
29298
  */
package/dist/index.js CHANGED
@@ -151,7 +151,7 @@ const flattenProperties$1 = (properties) => {
151
151
  };
152
152
 
153
153
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
154
- const SDK_VERSION$1 = '1.4.2';
154
+ const SDK_VERSION$1 = '1.5.0';
155
155
  let initialised$1 = false;
156
156
  const isInitialised$1 = () => initialised$1;
157
157
  const getReferrer$1 = () => {
@@ -11238,7 +11238,7 @@ class MultiRollupApiClients {
11238
11238
  }
11239
11239
 
11240
11240
  // eslint-disable-next-line @typescript-eslint/naming-convention
11241
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.4.2' };
11241
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.5.0' };
11242
11242
  const createConfig = ({ basePath, headers, }) => {
11243
11243
  if (!basePath.trim()) {
11244
11244
  throw Error('basePath can not be empty');
@@ -11310,7 +11310,7 @@ class APIError extends Error {
11310
11310
 
11311
11311
  /* eslint-disable implicit-arrow-linebreak */
11312
11312
  const defaultHeaders = {
11313
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.4.2',
11313
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.5.0',
11314
11314
  };
11315
11315
  /**
11316
11316
  * createAPIConfiguration to create a custom Configuration
@@ -11743,7 +11743,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11743
11743
  chainID,
11744
11744
  coreContractAddress,
11745
11745
  registrationContractAddress,
11746
- sdkVersion: 'ts-immutable-sdk-1.4.2',
11746
+ sdkVersion: 'ts-immutable-sdk-1.5.0',
11747
11747
  });
11748
11748
  /**
11749
11749
  * Sets `sdkVersion` at the time of build
@@ -19067,7 +19067,7 @@ class OrdersService {
19067
19067
  * @returns ListListingsResult OK response.
19068
19068
  * @throws ApiError
19069
19069
  */
19070
- listListings({ chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }) {
19070
+ listListings({ chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }) {
19071
19071
  return this.httpRequest.request({
19072
19072
  method: 'GET',
19073
19073
  url: '/v1/chains/{chain_name}/orders/listings',
@@ -19077,6 +19077,7 @@ class OrdersService {
19077
19077
  query: {
19078
19078
  'status': status,
19079
19079
  'sell_item_contract_address': sellItemContractAddress,
19080
+ 'buy_item_type': buyItemType,
19080
19081
  'buy_item_contract_address': buyItemContractAddress,
19081
19082
  'account_address': accountAddress,
19082
19083
  'sell_item_metadata_id': sellItemMetadataId,
@@ -37039,7 +37040,7 @@ const flattenProperties = (properties) => {
37039
37040
  };
37040
37041
 
37041
37042
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
37042
- const SDK_VERSION = '1.4.2';
37043
+ const SDK_VERSION = '1.5.0';
37043
37044
  let initialised = false;
37044
37045
  const isInitialised = () => initialised;
37045
37046
  const getReferrer = () => {
@@ -42147,7 +42148,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
42147
42148
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
42148
42149
  };
42149
42150
 
42150
- const SDK_VERSION_MARKER = '1.4.2';
42151
+ const SDK_VERSION_MARKER = '1.5.0';
42151
42152
  // This SDK version is replaced by the `yarn build` command ran on the root level
42152
42153
  const globalPackageVersion = () => SDK_VERSION_MARKER;
42153
42154
 
@@ -1031,7 +1031,7 @@ type FulfillmentDataRequest = {
1031
1031
  /**
1032
1032
  * Address of the intended account fulfilling the order
1033
1033
  */
1034
- taker_address?: string;
1034
+ taker_address: string;
1035
1035
  fees: Array<Fee$1>;
1036
1036
  };
1037
1037
 
@@ -1162,7 +1162,7 @@ declare class OrdersService {
1162
1162
  * @returns ListListingsResult OK response.
1163
1163
  * @throws ApiError
1164
1164
  */
1165
- listListings({ chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }: {
1165
+ listListings({ chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }: {
1166
1166
  chainName: ChainName;
1167
1167
  /**
1168
1168
  * Order status to filter by
@@ -1172,6 +1172,10 @@ declare class OrdersService {
1172
1172
  * Sell item contract address to filter by
1173
1173
  */
1174
1174
  sellItemContractAddress?: string;
1175
+ /**
1176
+ * Buy item type to filter by
1177
+ */
1178
+ buyItemType?: 'NATIVE' | 'ERC20';
1175
1179
  /**
1176
1180
  * Buy item contract address to filter by
1177
1181
  */
package/dist/orderbook.js CHANGED
@@ -126,7 +126,7 @@ const flattenProperties = (properties) => {
126
126
  };
127
127
 
128
128
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
129
- const SDK_VERSION = '1.4.2';
129
+ const SDK_VERSION = '1.5.0';
130
130
  let initialised = false;
131
131
  const isInitialised = () => initialised;
132
132
  const getReferrer = () => {
@@ -676,7 +676,7 @@ class OrdersService {
676
676
  * @returns ListListingsResult OK response.
677
677
  * @throws ApiError
678
678
  */
679
- listListings({ chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }) {
679
+ listListings({ chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }) {
680
680
  return this.httpRequest.request({
681
681
  method: 'GET',
682
682
  url: '/v1/chains/{chain_name}/orders/listings',
@@ -686,6 +686,7 @@ class OrdersService {
686
686
  query: {
687
687
  'status': status,
688
688
  'sell_item_contract_address': sellItemContractAddress,
689
+ 'buy_item_type': buyItemType,
689
690
  'buy_item_contract_address': buyItemContractAddress,
690
691
  'account_address': accountAddress,
691
692
  'sell_item_metadata_id': sellItemMetadataId,
package/dist/passport.js CHANGED
@@ -9136,7 +9136,7 @@ class MultiRollupApiClients {
9136
9136
  }
9137
9137
 
9138
9138
  // eslint-disable-next-line @typescript-eslint/naming-convention
9139
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.4.2' };
9139
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.5.0' };
9140
9140
  const createConfig = ({ basePath, headers, }) => {
9141
9141
  if (!basePath.trim()) {
9142
9142
  throw Error('basePath can not be empty');
@@ -9316,7 +9316,7 @@ const flattenProperties = (properties) => {
9316
9316
  };
9317
9317
 
9318
9318
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
9319
- const SDK_VERSION = '1.4.2';
9319
+ const SDK_VERSION = '1.5.0';
9320
9320
  let initialised = false;
9321
9321
  const isInitialised = () => initialised;
9322
9322
  const getReferrer = () => {
@@ -9491,7 +9491,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9491
9491
  chainID,
9492
9492
  coreContractAddress,
9493
9493
  registrationContractAddress,
9494
- sdkVersion: 'ts-immutable-sdk-1.4.2',
9494
+ sdkVersion: 'ts-immutable-sdk-1.5.0',
9495
9495
  });
9496
9496
  /**
9497
9497
  * Sets `sdkVersion` at the time of build
package/dist/x.js CHANGED
@@ -131,7 +131,7 @@ const flattenProperties = (properties) => {
131
131
  };
132
132
 
133
133
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
134
- const SDK_VERSION = '1.4.2';
134
+ const SDK_VERSION = '1.5.0';
135
135
  let initialised = false;
136
136
  const isInitialised = () => initialised;
137
137
  const getReferrer = () => {
@@ -270,7 +270,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
270
270
  chainID,
271
271
  coreContractAddress,
272
272
  registrationContractAddress,
273
- sdkVersion: 'ts-immutable-sdk-1.4.2',
273
+ sdkVersion: 'ts-immutable-sdk-1.5.0',
274
274
  });
275
275
  /**
276
276
  * Sets `sdkVersion` at the time of build
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "1.4.2",
4
+ "version": "1.5.0",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",