@imtbl/sdk 0.27.3 → 0.27.4

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/passport.js CHANGED
@@ -114,8 +114,6 @@ let Configuration$1 = class Configuration {
114
114
  * https://openapi-generator.tech
115
115
  * Do not edit the class manually.
116
116
  */
117
- // Some imports not used depending on template conditions
118
- // @ts-ignore
119
117
  const BASE_PATH$1 = "https://api.sandbox.immutable.com".replace(/\/+$/, "");
120
118
  /**
121
119
  *
@@ -143,10 +141,10 @@ let BaseAPI$1 = class BaseAPI {
143
141
  */
144
142
  let RequiredError$1 = class RequiredError extends Error {
145
143
  field;
146
- name = "RequiredError";
147
144
  constructor(field, msg) {
148
145
  super(msg);
149
146
  this.field = field;
147
+ this.name = "RequiredError";
150
148
  }
151
149
  };
152
150
 
@@ -203,6 +201,8 @@ const setBearerAuthToObject$1 = async function (object, configuration) {
203
201
  }
204
202
  };
205
203
  function setFlattenedQueryParams$1(urlSearchParams, parameter, key = "") {
204
+ if (parameter == null)
205
+ return;
206
206
  if (typeof parameter === "object") {
207
207
  if (Array.isArray(parameter)) {
208
208
  parameter.forEach(item => setFlattenedQueryParams$1(urlSearchParams, item, key));
@@ -255,7 +255,7 @@ const toPathString$1 = function (url) {
255
255
  */
256
256
  const createRequestFunction$1 = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
257
257
  return (axios = globalAxios, basePath = BASE_PATH) => {
258
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
258
+ const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || axios.defaults.baseURL || basePath) + axiosArgs.url };
259
259
  return axios.request(axiosRequestArgs);
260
260
  };
261
261
  };
@@ -1609,8 +1609,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
1609
1609
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
1610
1610
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
1611
1611
  * @param {number} [pageSize] Maximum number of orders to return per page
1612
- * @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
1613
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
1612
+ * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
1613
+ * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
1614
1614
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
1615
1615
  * @param {*} [options] Override http request option.
1616
1616
  * @throws {RequiredError}
@@ -1667,8 +1667,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
1667
1667
  * @param {string} chainName
1668
1668
  * @param {string} [accountAddress]
1669
1669
  * @param {number} [pageSize] Maximum number of trades to return per page
1670
- * @param {'indexed_at'} [sortBy] Trade field to sort by
1671
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
1670
+ * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
1671
+ * @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
1672
1672
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
1673
1673
  * @param {*} [options] Override http request option.
1674
1674
  * @throws {RequiredError}
@@ -1788,8 +1788,8 @@ const OrdersApiFp = function (configuration) {
1788
1788
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
1789
1789
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
1790
1790
  * @param {number} [pageSize] Maximum number of orders to return per page
1791
- * @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
1792
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
1791
+ * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
1792
+ * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
1793
1793
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
1794
1794
  * @param {*} [options] Override http request option.
1795
1795
  * @throws {RequiredError}
@@ -1804,8 +1804,8 @@ const OrdersApiFp = function (configuration) {
1804
1804
  * @param {string} chainName
1805
1805
  * @param {string} [accountAddress]
1806
1806
  * @param {number} [pageSize] Maximum number of trades to return per page
1807
- * @param {'indexed_at'} [sortBy] Trade field to sort by
1808
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
1807
+ * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
1808
+ * @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
1809
1809
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
1810
1810
  * @param {*} [options] Override http request option.
1811
1811
  * @throws {RequiredError}
@@ -2072,7 +2072,7 @@ class MultiRollupApiClients {
2072
2072
  }
2073
2073
 
2074
2074
  // eslint-disable-next-line @typescript-eslint/naming-convention
2075
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.27.3' };
2075
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.27.4' };
2076
2076
  const createConfig = ({ basePath, headers, }) => {
2077
2077
  if (!basePath.trim()) {
2078
2078
  throw Error('basePath can not be empty');
@@ -2128,7 +2128,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2128
2128
  chainID,
2129
2129
  coreContractAddress,
2130
2130
  registrationContractAddress,
2131
- sdkVersion: 'ts-immutable-sdk-0.27.3',
2131
+ sdkVersion: 'ts-immutable-sdk-0.27.4',
2132
2132
  });
2133
2133
  /**
2134
2134
  * 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.27.3",
4
+ "version": "0.27.4",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",