@imtbl/sdk 0.14.0-alpha.2 → 0.15.0-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.
package/dist/index.cjs CHANGED
@@ -2420,7 +2420,7 @@ class MultiRollupApiClients {
2420
2420
  }
2421
2421
 
2422
2422
  // eslint-disable-next-line @typescript-eslint/naming-convention
2423
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.14.0-alpha.2' };
2423
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.15.0-alpha' };
2424
2424
  const createConfig = ({ basePath, headers, }) => {
2425
2425
  if (!basePath.trim()) {
2426
2426
  throw Error('basePath can not be empty');
@@ -2480,7 +2480,7 @@ class APIError extends Error {
2480
2480
 
2481
2481
  /* eslint-disable implicit-arrow-linebreak */
2482
2482
  const defaultHeaders = {
2483
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.14.0-alpha.2',
2483
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.15.0-alpha',
2484
2484
  };
2485
2485
  /**
2486
2486
  * createAPIConfiguration to create a custom Configuration
@@ -2752,7 +2752,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2752
2752
  chainID,
2753
2753
  coreContractAddress,
2754
2754
  registrationContractAddress,
2755
- sdkVersion: 'ts-immutable-sdk-0.14.0-alpha.2',
2755
+ sdkVersion: 'ts-immutable-sdk-0.15.0-alpha',
2756
2756
  });
2757
2757
  /**
2758
2758
  * Sets `sdkVersion` at the time of build
@@ -9946,11 +9946,11 @@ class ImmutableApiClient {
9946
9946
  contract_address: orderComponents.consideration[0].token,
9947
9947
  },
9948
9948
  ],
9949
- fees: makerFee ? [{
9950
- amount: makerFee.amount,
9951
- fee_type: FeeType.MAKER_MARKETPLACE,
9952
- recipient: makerFee.recipient,
9953
- }] : [],
9949
+ fee: makerFee ? {
9950
+ amount: makerFee.amount,
9951
+ fee_type: FeeType.MAKER_MARKETPLACE,
9952
+ recipient: makerFee.recipient,
9953
+ } : undefined,
9954
9954
  end_time: new Date(parseInt(`${orderComponents.endTime.toString()}000`, 10)).toISOString(),
9955
9955
  protocol_data: {
9956
9956
  order_type: ProtocolData.order_type.FULL_RESTRICTED,
@@ -28995,7 +28995,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
28995
28995
  function $parcel$export(e, n, v, s) {
28996
28996
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
28997
28997
  }
28998
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.14.0-alpha.2";
28998
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.15.0-alpha";
28999
28999
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
29000
29000
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
29001
29001
 
package/dist/index.d.ts CHANGED
@@ -13276,7 +13276,10 @@ type CreateListingRequestBody = {
13276
13276
  * Buy item for listing should either be NATIVE or ERC20 item
13277
13277
  */
13278
13278
  buy: Array<Item>;
13279
- fees: Array<Fee$1>;
13279
+ /**
13280
+ * The maker marketplace fee
13281
+ */
13282
+ fee?: Fee$1;
13280
13283
  /**
13281
13284
  * Time after which the Order is considered expired
13282
13285
  */
package/dist/index.js CHANGED
@@ -2398,7 +2398,7 @@ class MultiRollupApiClients {
2398
2398
  }
2399
2399
 
2400
2400
  // eslint-disable-next-line @typescript-eslint/naming-convention
2401
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.14.0-alpha.2' };
2401
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.15.0-alpha' };
2402
2402
  const createConfig = ({ basePath, headers, }) => {
2403
2403
  if (!basePath.trim()) {
2404
2404
  throw Error('basePath can not be empty');
@@ -2458,7 +2458,7 @@ class APIError extends Error {
2458
2458
 
2459
2459
  /* eslint-disable implicit-arrow-linebreak */
2460
2460
  const defaultHeaders = {
2461
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.14.0-alpha.2',
2461
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.15.0-alpha',
2462
2462
  };
2463
2463
  /**
2464
2464
  * createAPIConfiguration to create a custom Configuration
@@ -2730,7 +2730,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2730
2730
  chainID,
2731
2731
  coreContractAddress,
2732
2732
  registrationContractAddress,
2733
- sdkVersion: 'ts-immutable-sdk-0.14.0-alpha.2',
2733
+ sdkVersion: 'ts-immutable-sdk-0.15.0-alpha',
2734
2734
  });
2735
2735
  /**
2736
2736
  * Sets `sdkVersion` at the time of build
@@ -9924,11 +9924,11 @@ class ImmutableApiClient {
9924
9924
  contract_address: orderComponents.consideration[0].token,
9925
9925
  },
9926
9926
  ],
9927
- fees: makerFee ? [{
9928
- amount: makerFee.amount,
9929
- fee_type: FeeType.MAKER_MARKETPLACE,
9930
- recipient: makerFee.recipient,
9931
- }] : [],
9927
+ fee: makerFee ? {
9928
+ amount: makerFee.amount,
9929
+ fee_type: FeeType.MAKER_MARKETPLACE,
9930
+ recipient: makerFee.recipient,
9931
+ } : undefined,
9932
9932
  end_time: new Date(parseInt(`${orderComponents.endTime.toString()}000`, 10)).toISOString(),
9933
9933
  protocol_data: {
9934
9934
  order_type: ProtocolData.order_type.FULL_RESTRICTED,
@@ -28973,7 +28973,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
28973
28973
  function $parcel$export(e, n, v, s) {
28974
28974
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
28975
28975
  }
28976
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.14.0-alpha.2";
28976
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.15.0-alpha";
28977
28977
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
28978
28978
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
28979
28979
 
@@ -811,7 +811,10 @@ type CreateListingRequestBody = {
811
811
  * Buy item for listing should either be NATIVE or ERC20 item
812
812
  */
813
813
  buy: Array<Item>;
814
- fees: Array<Fee$1>;
814
+ /**
815
+ * The maker marketplace fee
816
+ */
817
+ fee?: Fee$1;
815
818
  /**
816
819
  * Time after which the Order is considered expired
817
820
  */
package/dist/orderbook.js CHANGED
@@ -993,11 +993,11 @@ class ImmutableApiClient {
993
993
  contract_address: orderComponents.consideration[0].token,
994
994
  },
995
995
  ],
996
- fees: makerFee ? [{
997
- amount: makerFee.amount,
998
- fee_type: FeeType.MAKER_MARKETPLACE,
999
- recipient: makerFee.recipient,
1000
- }] : [],
996
+ fee: makerFee ? {
997
+ amount: makerFee.amount,
998
+ fee_type: FeeType.MAKER_MARKETPLACE,
999
+ recipient: makerFee.recipient,
1000
+ } : undefined,
1001
1001
  end_time: new Date(parseInt(`${orderComponents.endTime.toString()}000`, 10)).toISOString(),
1002
1002
  protocol_data: {
1003
1003
  order_type: ProtocolData.order_type.FULL_RESTRICTED,
package/dist/passport.js CHANGED
@@ -1457,7 +1457,7 @@ class MultiRollupApiClients {
1457
1457
  }
1458
1458
 
1459
1459
  // eslint-disable-next-line @typescript-eslint/naming-convention
1460
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.14.0-alpha.2' };
1460
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.15.0-alpha' };
1461
1461
  const createConfig = ({ basePath, headers, }) => {
1462
1462
  if (!basePath.trim()) {
1463
1463
  throw Error('basePath can not be empty');
@@ -1513,7 +1513,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
1513
1513
  chainID,
1514
1514
  coreContractAddress,
1515
1515
  registrationContractAddress,
1516
- sdkVersion: 'ts-immutable-sdk-0.14.0-alpha.2',
1516
+ sdkVersion: 'ts-immutable-sdk-0.15.0-alpha',
1517
1517
  });
1518
1518
  /**
1519
1519
  * 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": "0.14.0-alpha.2",
4
+ "version": "0.15.0-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",