@imtbl/sdk 0.27.0 → 0.27.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.
package/dist/passport.js CHANGED
@@ -606,13 +606,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
606
606
  * List all collections
607
607
  * @summary List all collections
608
608
  * @param {string} chainName The name of chain
609
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
609
610
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
610
611
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
611
612
  * @param {number} [pageSize] Maximum number of items to return
612
613
  * @param {*} [options] Override http request option.
613
614
  * @throws {RequiredError}
614
615
  */
615
- listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
616
+ listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
616
617
  // verify required parameter 'chainName' is not null or undefined
617
618
  assertParamExists$1('listCollections', 'chainName', chainName);
618
619
  const localVarPath = `/v1/chains/{chain_name}/collections`
@@ -626,6 +627,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
626
627
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
627
628
  const localVarHeaderParameter = {};
628
629
  const localVarQueryParameter = {};
630
+ if (contractAddress) {
631
+ localVarQueryParameter['contract_address'] = contractAddress;
632
+ }
629
633
  if (fromUpdatedAt !== undefined) {
630
634
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
631
635
  fromUpdatedAt.toISOString() :
@@ -751,14 +755,15 @@ const CollectionsApiFp = function (configuration) {
751
755
  * List all collections
752
756
  * @summary List all collections
753
757
  * @param {string} chainName The name of chain
758
+ * @param {Array<string>} [contractAddress] List of contract addresses to filter by
754
759
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
755
760
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
756
761
  * @param {number} [pageSize] Maximum number of items to return
757
762
  * @param {*} [options] Override http request option.
758
763
  * @throws {RequiredError}
759
764
  */
760
- async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
761
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
765
+ async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
766
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
762
767
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
763
768
  },
764
769
  /**
@@ -817,7 +822,7 @@ class CollectionsApi extends BaseAPI$1 {
817
822
  * @memberof CollectionsApi
818
823
  */
819
824
  listCollections(requestParameters, options) {
820
- return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
825
+ return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
821
826
  }
822
827
  /**
823
828
  * List collections by NFT owner account address
@@ -1599,7 +1604,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
1599
1604
  * List all listings
1600
1605
  * @summary List all listings
1601
1606
  * @param {string} chainName
1602
- * @param {OrderStatus} [status] Order status to filter by
1607
+ * @param {OrderStatusName} [status] Order status to filter by
1603
1608
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
1604
1609
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
1605
1610
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -1778,7 +1783,7 @@ const OrdersApiFp = function (configuration) {
1778
1783
  * List all listings
1779
1784
  * @summary List all listings
1780
1785
  * @param {string} chainName
1781
- * @param {OrderStatus} [status] Order status to filter by
1786
+ * @param {OrderStatusName} [status] Order status to filter by
1782
1787
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
1783
1788
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
1784
1789
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
@@ -2067,7 +2072,7 @@ class MultiRollupApiClients {
2067
2072
  }
2068
2073
 
2069
2074
  // eslint-disable-next-line @typescript-eslint/naming-convention
2070
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.27.0' };
2075
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.27.1' };
2071
2076
  const createConfig = ({ basePath, headers, }) => {
2072
2077
  if (!basePath.trim()) {
2073
2078
  throw Error('basePath can not be empty');
@@ -2123,7 +2128,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2123
2128
  chainID,
2124
2129
  coreContractAddress,
2125
2130
  registrationContractAddress,
2126
- sdkVersion: 'ts-immutable-sdk-0.27.0',
2131
+ sdkVersion: 'ts-immutable-sdk-0.27.1',
2127
2132
  });
2128
2133
  /**
2129
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.0",
4
+ "version": "0.27.1",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",