@imtbl/sdk 0.1.9-alpha → 0.1.9-alpha.2
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/blockchain-data.d.ts +22 -3
- package/dist/blockchain-data.js +62 -329
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +58 -11
- package/dist/checkout_sdk.js +76 -87
- package/dist/checkout_widgets.d.ts +49 -34
- package/dist/checkout_widgets.js +81 -41
- package/dist/erc721-permissioned-mintable.d.ts +4 -4
- package/dist/erc721-permissioned-mintable.js +4 -4
- package/dist/immutablex_client.js +1 -1
- package/dist/index.cjs +259 -485
- package/dist/index.d.ts +133 -54
- package/dist/index.js +255 -483
- package/dist/orderbook.d.ts +2 -2
- package/dist/orderbook.js +8 -8
- package/dist/passport.d.ts +1 -1
- package/dist/passport.js +27 -16
- package/package.json +1 -1
|
@@ -981,6 +981,25 @@ interface NFT {
|
|
|
981
981
|
* https://openapi-generator.tech
|
|
982
982
|
* Do not edit the class manually.
|
|
983
983
|
*/
|
|
984
|
+
/**
|
|
985
|
+
* @type NFTMetadataAttributeValue
|
|
986
|
+
* The metadata trait value
|
|
987
|
+
* @export
|
|
988
|
+
*/
|
|
989
|
+
type NFTMetadataAttributeValue = boolean | number | string;
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Immutable X API
|
|
993
|
+
* Immutable Multi Rollup API
|
|
994
|
+
*
|
|
995
|
+
* The version of the OpenAPI document: 1.0.0
|
|
996
|
+
* Contact: support@immutable.com
|
|
997
|
+
*
|
|
998
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
999
|
+
* https://openapi-generator.tech
|
|
1000
|
+
* Do not edit the class manually.
|
|
1001
|
+
*/
|
|
1002
|
+
|
|
984
1003
|
/**
|
|
985
1004
|
*
|
|
986
1005
|
* @export
|
|
@@ -994,11 +1013,11 @@ interface NFTMetadataAttribute {
|
|
|
994
1013
|
*/
|
|
995
1014
|
'trait_type': string;
|
|
996
1015
|
/**
|
|
997
|
-
*
|
|
998
|
-
* @type {
|
|
1016
|
+
*
|
|
1017
|
+
* @type {NFTMetadataAttributeValue}
|
|
999
1018
|
* @memberof NFTMetadataAttribute
|
|
1000
1019
|
*/
|
|
1001
|
-
'value':
|
|
1020
|
+
'value': NFTMetadataAttributeValue;
|
|
1002
1021
|
}
|
|
1003
1022
|
|
|
1004
1023
|
/**
|
package/dist/blockchain-data.js
CHANGED
|
@@ -684,292 +684,6 @@ class CollectionsApi extends BaseAPI {
|
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
|
|
687
|
-
/* tslint:disable */
|
|
688
|
-
/* eslint-disable */
|
|
689
|
-
/**
|
|
690
|
-
* Immutable X API
|
|
691
|
-
* Immutable Multi Rollup API
|
|
692
|
-
*
|
|
693
|
-
* The version of the OpenAPI document: 1.0.0
|
|
694
|
-
* Contact: support@immutable.com
|
|
695
|
-
*
|
|
696
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
697
|
-
* https://openapi-generator.tech
|
|
698
|
-
* Do not edit the class manually.
|
|
699
|
-
*/
|
|
700
|
-
/**
|
|
701
|
-
* ListingsApi - axios parameter creator
|
|
702
|
-
* @export
|
|
703
|
-
*/
|
|
704
|
-
const ListingsApiAxiosParamCreator = function (configuration) {
|
|
705
|
-
return {
|
|
706
|
-
/**
|
|
707
|
-
* Create a listing
|
|
708
|
-
* @summary Create a listing
|
|
709
|
-
* @param {string} chainName
|
|
710
|
-
* @param {CreateListingRequestBody} createListingRequestBody
|
|
711
|
-
* @param {*} [options] Override http request option.
|
|
712
|
-
* @throws {RequiredError}
|
|
713
|
-
*/
|
|
714
|
-
createListing: async (chainName, createListingRequestBody, options = {}) => {
|
|
715
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
716
|
-
assertParamExists('createListing', 'chainName', chainName);
|
|
717
|
-
// verify required parameter 'createListingRequestBody' is not null or undefined
|
|
718
|
-
assertParamExists('createListing', 'createListingRequestBody', createListingRequestBody);
|
|
719
|
-
const localVarPath = `/v1/chains/{chain_name}/listings`
|
|
720
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
721
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
722
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
723
|
-
let baseOptions;
|
|
724
|
-
if (configuration) {
|
|
725
|
-
baseOptions = configuration.baseOptions;
|
|
726
|
-
}
|
|
727
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
728
|
-
const localVarHeaderParameter = {};
|
|
729
|
-
const localVarQueryParameter = {};
|
|
730
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
731
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
732
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
733
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
734
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createListingRequestBody, localVarRequestOptions, configuration);
|
|
735
|
-
return {
|
|
736
|
-
url: toPathString(localVarUrlObj),
|
|
737
|
-
options: localVarRequestOptions,
|
|
738
|
-
};
|
|
739
|
-
},
|
|
740
|
-
/**
|
|
741
|
-
* Get a single listing by ID
|
|
742
|
-
* @summary Get a single listing by ID
|
|
743
|
-
* @param {string} chainName
|
|
744
|
-
* @param {string} listingId Global Order identifier
|
|
745
|
-
* @param {*} [options] Override http request option.
|
|
746
|
-
* @throws {RequiredError}
|
|
747
|
-
*/
|
|
748
|
-
getListing: async (chainName, listingId, options = {}) => {
|
|
749
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
750
|
-
assertParamExists('getListing', 'chainName', chainName);
|
|
751
|
-
// verify required parameter 'listingId' is not null or undefined
|
|
752
|
-
assertParamExists('getListing', 'listingId', listingId);
|
|
753
|
-
const localVarPath = `/v1/chains/{chain_name}/listings/{listing_id}`
|
|
754
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
|
|
755
|
-
.replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
756
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
757
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
758
|
-
let baseOptions;
|
|
759
|
-
if (configuration) {
|
|
760
|
-
baseOptions = configuration.baseOptions;
|
|
761
|
-
}
|
|
762
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
763
|
-
const localVarHeaderParameter = {};
|
|
764
|
-
const localVarQueryParameter = {};
|
|
765
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
766
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
767
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
768
|
-
return {
|
|
769
|
-
url: toPathString(localVarUrlObj),
|
|
770
|
-
options: localVarRequestOptions,
|
|
771
|
-
};
|
|
772
|
-
},
|
|
773
|
-
/**
|
|
774
|
-
* List all listings
|
|
775
|
-
* @summary List all listings
|
|
776
|
-
* @param {string} chainName
|
|
777
|
-
* @param {OrderStatus} [status] Order status to filter by
|
|
778
|
-
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
779
|
-
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
780
|
-
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
781
|
-
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
782
|
-
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
783
|
-
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
784
|
-
* @param {*} [options] Override http request option.
|
|
785
|
-
* @throws {RequiredError}
|
|
786
|
-
*/
|
|
787
|
-
listListings: async (chainName, status, sellItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
788
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
789
|
-
assertParamExists('listListings', 'chainName', chainName);
|
|
790
|
-
const localVarPath = `/v1/chains/{chain_name}/listings`
|
|
791
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
792
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
793
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
794
|
-
let baseOptions;
|
|
795
|
-
if (configuration) {
|
|
796
|
-
baseOptions = configuration.baseOptions;
|
|
797
|
-
}
|
|
798
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
799
|
-
const localVarHeaderParameter = {};
|
|
800
|
-
const localVarQueryParameter = {};
|
|
801
|
-
if (status !== undefined) {
|
|
802
|
-
localVarQueryParameter['status'] = status;
|
|
803
|
-
}
|
|
804
|
-
if (sellItemContractAddress !== undefined) {
|
|
805
|
-
localVarQueryParameter['sell_item_contract_address'] = sellItemContractAddress;
|
|
806
|
-
}
|
|
807
|
-
if (sellItemTokenId !== undefined) {
|
|
808
|
-
localVarQueryParameter['sell_item_token_id'] = sellItemTokenId;
|
|
809
|
-
}
|
|
810
|
-
if (pageSize !== undefined) {
|
|
811
|
-
localVarQueryParameter['page_size'] = pageSize;
|
|
812
|
-
}
|
|
813
|
-
if (sortBy !== undefined) {
|
|
814
|
-
localVarQueryParameter['sort_by'] = sortBy;
|
|
815
|
-
}
|
|
816
|
-
if (sortDirection !== undefined) {
|
|
817
|
-
localVarQueryParameter['sort_direction'] = sortDirection;
|
|
818
|
-
}
|
|
819
|
-
if (pageCursor !== undefined) {
|
|
820
|
-
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
821
|
-
}
|
|
822
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
823
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
824
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
825
|
-
return {
|
|
826
|
-
url: toPathString(localVarUrlObj),
|
|
827
|
-
options: localVarRequestOptions,
|
|
828
|
-
};
|
|
829
|
-
},
|
|
830
|
-
};
|
|
831
|
-
};
|
|
832
|
-
/**
|
|
833
|
-
* ListingsApi - functional programming interface
|
|
834
|
-
* @export
|
|
835
|
-
*/
|
|
836
|
-
const ListingsApiFp = function (configuration) {
|
|
837
|
-
const localVarAxiosParamCreator = ListingsApiAxiosParamCreator(configuration);
|
|
838
|
-
return {
|
|
839
|
-
/**
|
|
840
|
-
* Create a listing
|
|
841
|
-
* @summary Create a listing
|
|
842
|
-
* @param {string} chainName
|
|
843
|
-
* @param {CreateListingRequestBody} createListingRequestBody
|
|
844
|
-
* @param {*} [options] Override http request option.
|
|
845
|
-
* @throws {RequiredError}
|
|
846
|
-
*/
|
|
847
|
-
async createListing(chainName, createListingRequestBody, options) {
|
|
848
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createListing(chainName, createListingRequestBody, options);
|
|
849
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
850
|
-
},
|
|
851
|
-
/**
|
|
852
|
-
* Get a single listing by ID
|
|
853
|
-
* @summary Get a single listing by ID
|
|
854
|
-
* @param {string} chainName
|
|
855
|
-
* @param {string} listingId Global Order identifier
|
|
856
|
-
* @param {*} [options] Override http request option.
|
|
857
|
-
* @throws {RequiredError}
|
|
858
|
-
*/
|
|
859
|
-
async getListing(chainName, listingId, options) {
|
|
860
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getListing(chainName, listingId, options);
|
|
861
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
862
|
-
},
|
|
863
|
-
/**
|
|
864
|
-
* List all listings
|
|
865
|
-
* @summary List all listings
|
|
866
|
-
* @param {string} chainName
|
|
867
|
-
* @param {OrderStatus} [status] Order status to filter by
|
|
868
|
-
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
869
|
-
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
870
|
-
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
871
|
-
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
872
|
-
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
873
|
-
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
874
|
-
* @param {*} [options] Override http request option.
|
|
875
|
-
* @throws {RequiredError}
|
|
876
|
-
*/
|
|
877
|
-
async listListings(chainName, status, sellItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
878
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
879
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
880
|
-
},
|
|
881
|
-
};
|
|
882
|
-
};
|
|
883
|
-
/**
|
|
884
|
-
* ListingsApi - factory interface
|
|
885
|
-
* @export
|
|
886
|
-
*/
|
|
887
|
-
const ListingsApiFactory = function (configuration, basePath, axios) {
|
|
888
|
-
const localVarFp = ListingsApiFp(configuration);
|
|
889
|
-
return {
|
|
890
|
-
/**
|
|
891
|
-
* Create a listing
|
|
892
|
-
* @summary Create a listing
|
|
893
|
-
* @param {string} chainName
|
|
894
|
-
* @param {CreateListingRequestBody} createListingRequestBody
|
|
895
|
-
* @param {*} [options] Override http request option.
|
|
896
|
-
* @throws {RequiredError}
|
|
897
|
-
*/
|
|
898
|
-
createListing(chainName, createListingRequestBody, options) {
|
|
899
|
-
return localVarFp.createListing(chainName, createListingRequestBody, options).then((request) => request(axios, basePath));
|
|
900
|
-
},
|
|
901
|
-
/**
|
|
902
|
-
* Get a single listing by ID
|
|
903
|
-
* @summary Get a single listing by ID
|
|
904
|
-
* @param {string} chainName
|
|
905
|
-
* @param {string} listingId Global Order identifier
|
|
906
|
-
* @param {*} [options] Override http request option.
|
|
907
|
-
* @throws {RequiredError}
|
|
908
|
-
*/
|
|
909
|
-
getListing(chainName, listingId, options) {
|
|
910
|
-
return localVarFp.getListing(chainName, listingId, options).then((request) => request(axios, basePath));
|
|
911
|
-
},
|
|
912
|
-
/**
|
|
913
|
-
* List all listings
|
|
914
|
-
* @summary List all listings
|
|
915
|
-
* @param {string} chainName
|
|
916
|
-
* @param {OrderStatus} [status] Order status to filter by
|
|
917
|
-
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
918
|
-
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
919
|
-
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
920
|
-
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
921
|
-
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
922
|
-
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
923
|
-
* @param {*} [options] Override http request option.
|
|
924
|
-
* @throws {RequiredError}
|
|
925
|
-
*/
|
|
926
|
-
listListings(chainName, status, sellItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
927
|
-
return localVarFp.listListings(chainName, status, sellItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
928
|
-
},
|
|
929
|
-
};
|
|
930
|
-
};
|
|
931
|
-
/**
|
|
932
|
-
* ListingsApi - object-oriented interface
|
|
933
|
-
* @export
|
|
934
|
-
* @class ListingsApi
|
|
935
|
-
* @extends {BaseAPI}
|
|
936
|
-
*/
|
|
937
|
-
class ListingsApi extends BaseAPI {
|
|
938
|
-
/**
|
|
939
|
-
* Create a listing
|
|
940
|
-
* @summary Create a listing
|
|
941
|
-
* @param {ListingsApiCreateListingRequest} requestParameters Request parameters.
|
|
942
|
-
* @param {*} [options] Override http request option.
|
|
943
|
-
* @throws {RequiredError}
|
|
944
|
-
* @memberof ListingsApi
|
|
945
|
-
*/
|
|
946
|
-
createListing(requestParameters, options) {
|
|
947
|
-
return ListingsApiFp(this.configuration).createListing(requestParameters.chainName, requestParameters.createListingRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
948
|
-
}
|
|
949
|
-
/**
|
|
950
|
-
* Get a single listing by ID
|
|
951
|
-
* @summary Get a single listing by ID
|
|
952
|
-
* @param {ListingsApiGetListingRequest} requestParameters Request parameters.
|
|
953
|
-
* @param {*} [options] Override http request option.
|
|
954
|
-
* @throws {RequiredError}
|
|
955
|
-
* @memberof ListingsApi
|
|
956
|
-
*/
|
|
957
|
-
getListing(requestParameters, options) {
|
|
958
|
-
return ListingsApiFp(this.configuration).getListing(requestParameters.chainName, requestParameters.listingId, options).then((request) => request(this.axios, this.basePath));
|
|
959
|
-
}
|
|
960
|
-
/**
|
|
961
|
-
* List all listings
|
|
962
|
-
* @summary List all listings
|
|
963
|
-
* @param {ListingsApiListListingsRequest} requestParameters Request parameters.
|
|
964
|
-
* @param {*} [options] Override http request option.
|
|
965
|
-
* @throws {RequiredError}
|
|
966
|
-
* @memberof ListingsApi
|
|
967
|
-
*/
|
|
968
|
-
listListings(requestParameters, options) {
|
|
969
|
-
return ListingsApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
|
|
973
687
|
/* tslint:disable */
|
|
974
688
|
/* eslint-disable */
|
|
975
689
|
/**
|
|
@@ -1420,7 +1134,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1420
1134
|
assertParamExists('createListing', 'chainName', chainName);
|
|
1421
1135
|
// verify required parameter 'createListingRequestBody' is not null or undefined
|
|
1422
1136
|
assertParamExists('createListing', 'createListingRequestBody', createListingRequestBody);
|
|
1423
|
-
const localVarPath = `/v1/chains/{chain_name}/listings`
|
|
1137
|
+
const localVarPath = `/v1/chains/{chain_name}/orders/listings`
|
|
1424
1138
|
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1425
1139
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1426
1140
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1454,7 +1168,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1454
1168
|
assertParamExists('getListing', 'chainName', chainName);
|
|
1455
1169
|
// verify required parameter 'listingId' is not null or undefined
|
|
1456
1170
|
assertParamExists('getListing', 'listingId', listingId);
|
|
1457
|
-
const localVarPath = `/v1/chains/{chain_name}/listings/{listing_id}`
|
|
1171
|
+
const localVarPath = `/v1/chains/{chain_name}/orders/listings/{listing_id}`
|
|
1458
1172
|
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
|
|
1459
1173
|
.replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
1460
1174
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1480,6 +1194,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1480
1194
|
* @param {string} chainName
|
|
1481
1195
|
* @param {OrderStatus} [status] Order status to filter by
|
|
1482
1196
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
1197
|
+
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
1483
1198
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
1484
1199
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
1485
1200
|
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
@@ -1488,10 +1203,10 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1488
1203
|
* @param {*} [options] Override http request option.
|
|
1489
1204
|
* @throws {RequiredError}
|
|
1490
1205
|
*/
|
|
1491
|
-
listListings: async (chainName, status, sellItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
1206
|
+
listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
1492
1207
|
// verify required parameter 'chainName' is not null or undefined
|
|
1493
1208
|
assertParamExists('listListings', 'chainName', chainName);
|
|
1494
|
-
const localVarPath = `/v1/chains/{chain_name}/listings`
|
|
1209
|
+
const localVarPath = `/v1/chains/{chain_name}/orders/listings`
|
|
1495
1210
|
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1496
1211
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1497
1212
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1508,6 +1223,9 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1508
1223
|
if (sellItemContractAddress !== undefined) {
|
|
1509
1224
|
localVarQueryParameter['sell_item_contract_address'] = sellItemContractAddress;
|
|
1510
1225
|
}
|
|
1226
|
+
if (buyItemContractAddress !== undefined) {
|
|
1227
|
+
localVarQueryParameter['buy_item_contract_address'] = buyItemContractAddress;
|
|
1228
|
+
}
|
|
1511
1229
|
if (sellItemTokenId !== undefined) {
|
|
1512
1230
|
localVarQueryParameter['sell_item_token_id'] = sellItemTokenId;
|
|
1513
1231
|
}
|
|
@@ -1570,6 +1288,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
1570
1288
|
* @param {string} chainName
|
|
1571
1289
|
* @param {OrderStatus} [status] Order status to filter by
|
|
1572
1290
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
1291
|
+
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
1573
1292
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
1574
1293
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
1575
1294
|
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
@@ -1578,8 +1297,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
1578
1297
|
* @param {*} [options] Override http request option.
|
|
1579
1298
|
* @throws {RequiredError}
|
|
1580
1299
|
*/
|
|
1581
|
-
async listListings(chainName, status, sellItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1582
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1300
|
+
async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1301
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1583
1302
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1584
1303
|
},
|
|
1585
1304
|
};
|
|
@@ -1619,6 +1338,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1619
1338
|
* @param {string} chainName
|
|
1620
1339
|
* @param {OrderStatus} [status] Order status to filter by
|
|
1621
1340
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
1341
|
+
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
1622
1342
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
1623
1343
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
1624
1344
|
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
@@ -1627,8 +1347,8 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1627
1347
|
* @param {*} [options] Override http request option.
|
|
1628
1348
|
* @throws {RequiredError}
|
|
1629
1349
|
*/
|
|
1630
|
-
listListings(chainName, status, sellItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1631
|
-
return localVarFp.listListings(chainName, status, sellItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
1350
|
+
listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1351
|
+
return localVarFp.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
1632
1352
|
},
|
|
1633
1353
|
};
|
|
1634
1354
|
};
|
|
@@ -1670,7 +1390,7 @@ class OrdersApi extends BaseAPI {
|
|
|
1670
1390
|
* @memberof OrdersApi
|
|
1671
1391
|
*/
|
|
1672
1392
|
listListings(requestParameters, options) {
|
|
1673
|
-
return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
1393
|
+
return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
1674
1394
|
}
|
|
1675
1395
|
}
|
|
1676
1396
|
|
|
@@ -1703,7 +1423,7 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
1703
1423
|
createCounterfactualAddress: async (createCounterfactualAddressRequest, options = {}) => {
|
|
1704
1424
|
// verify required parameter 'createCounterfactualAddressRequest' is not null or undefined
|
|
1705
1425
|
assertParamExists('createCounterfactualAddress', 'createCounterfactualAddressRequest', createCounterfactualAddressRequest);
|
|
1706
|
-
const localVarPath = `/v1/counterfactual-address`;
|
|
1426
|
+
const localVarPath = `/passport-mr/v1/counterfactual-address`;
|
|
1707
1427
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1708
1428
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1709
1429
|
let baseOptions;
|
|
@@ -2203,9 +1923,13 @@ const ActivityType = {
|
|
|
2203
1923
|
* https://openapi-generator.tech
|
|
2204
1924
|
* Do not edit the class manually.
|
|
2205
1925
|
*/
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
1926
|
+
/**
|
|
1927
|
+
* The collection contract type
|
|
1928
|
+
* @export
|
|
1929
|
+
* @enum {string}
|
|
1930
|
+
*/
|
|
1931
|
+
const CollectionContractType = {
|
|
1932
|
+
Erc721: 'ERC721'
|
|
2209
1933
|
};
|
|
2210
1934
|
|
|
2211
1935
|
/* tslint:disable */
|
|
@@ -2221,13 +1945,25 @@ const BuyItemItemTypeEnum = {
|
|
|
2221
1945
|
* https://openapi-generator.tech
|
|
2222
1946
|
* Do not edit the class manually.
|
|
2223
1947
|
*/
|
|
1948
|
+
const CreateOrderProtocolDataOrderTypeEnum = {
|
|
1949
|
+
FullRestricted: 'FULL_RESTRICTED'
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1952
|
+
/* tslint:disable */
|
|
1953
|
+
/* eslint-disable */
|
|
2224
1954
|
/**
|
|
2225
|
-
*
|
|
2226
|
-
*
|
|
2227
|
-
*
|
|
1955
|
+
* Immutable X API
|
|
1956
|
+
* Immutable Multi Rollup API
|
|
1957
|
+
*
|
|
1958
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1959
|
+
* Contact: support@immutable.com
|
|
1960
|
+
*
|
|
1961
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1962
|
+
* https://openapi-generator.tech
|
|
1963
|
+
* Do not edit the class manually.
|
|
2228
1964
|
*/
|
|
2229
|
-
const
|
|
2230
|
-
|
|
1965
|
+
const ERC20ItemItemTypeEnum = {
|
|
1966
|
+
Erc20: 'ERC20'
|
|
2231
1967
|
};
|
|
2232
1968
|
|
|
2233
1969
|
/* tslint:disable */
|
|
@@ -2243,8 +1979,8 @@ const CollectionContractType = {
|
|
|
2243
1979
|
* https://openapi-generator.tech
|
|
2244
1980
|
* Do not edit the class manually.
|
|
2245
1981
|
*/
|
|
2246
|
-
const
|
|
2247
|
-
|
|
1982
|
+
const ERC721ItemItemTypeEnum = {
|
|
1983
|
+
Erc721: 'ERC721'
|
|
2248
1984
|
};
|
|
2249
1985
|
|
|
2250
1986
|
/* tslint:disable */
|
|
@@ -2299,18 +2035,8 @@ const NFTContractType = {
|
|
|
2299
2035
|
* https://openapi-generator.tech
|
|
2300
2036
|
* Do not edit the class manually.
|
|
2301
2037
|
*/
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
* @export
|
|
2305
|
-
* @enum {string}
|
|
2306
|
-
*/
|
|
2307
|
-
const OrderStatus = {
|
|
2308
|
-
Pending: 'PENDING',
|
|
2309
|
-
Active: 'ACTIVE',
|
|
2310
|
-
Inactive: 'INACTIVE',
|
|
2311
|
-
Filled: 'FILLED',
|
|
2312
|
-
Cancelled: 'CANCELLED',
|
|
2313
|
-
Expired: 'EXPIRED'
|
|
2038
|
+
const NativeItemItemTypeEnum = {
|
|
2039
|
+
Native: 'NATIVE'
|
|
2314
2040
|
};
|
|
2315
2041
|
|
|
2316
2042
|
/* tslint:disable */
|
|
@@ -2326,8 +2052,18 @@ const OrderStatus = {
|
|
|
2326
2052
|
* https://openapi-generator.tech
|
|
2327
2053
|
* Do not edit the class manually.
|
|
2328
2054
|
*/
|
|
2329
|
-
|
|
2330
|
-
|
|
2055
|
+
/**
|
|
2056
|
+
* The Order status
|
|
2057
|
+
* @export
|
|
2058
|
+
* @enum {string}
|
|
2059
|
+
*/
|
|
2060
|
+
const OrderStatus = {
|
|
2061
|
+
Pending: 'PENDING',
|
|
2062
|
+
Active: 'ACTIVE',
|
|
2063
|
+
Inactive: 'INACTIVE',
|
|
2064
|
+
Filled: 'FILLED',
|
|
2065
|
+
Cancelled: 'CANCELLED',
|
|
2066
|
+
Expired: 'EXPIRED'
|
|
2331
2067
|
};
|
|
2332
2068
|
|
|
2333
2069
|
/* tslint:disable */
|
|
@@ -2343,8 +2079,8 @@ const SaleFeeTypeEnum = {
|
|
|
2343
2079
|
* https://openapi-generator.tech
|
|
2344
2080
|
* Do not edit the class manually.
|
|
2345
2081
|
*/
|
|
2346
|
-
const
|
|
2347
|
-
|
|
2082
|
+
const SaleFeeTypeEnum = {
|
|
2083
|
+
Royalty: 'ROYALTY'
|
|
2348
2084
|
};
|
|
2349
2085
|
|
|
2350
2086
|
/* tslint:disable */
|
|
@@ -2396,7 +2132,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
2396
2132
|
ActivitiesApiFactory: ActivitiesApiFactory,
|
|
2397
2133
|
ActivitiesApiFp: ActivitiesApiFp,
|
|
2398
2134
|
ActivityType: ActivityType,
|
|
2399
|
-
BuyItemItemTypeEnum: BuyItemItemTypeEnum,
|
|
2400
2135
|
ChainsApi: ChainsApi,
|
|
2401
2136
|
ChainsApiAxiosParamCreator: ChainsApiAxiosParamCreator,
|
|
2402
2137
|
ChainsApiFactory: ChainsApiFactory,
|
|
@@ -2408,12 +2143,11 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
2408
2143
|
CollectionsApiFp: CollectionsApiFp,
|
|
2409
2144
|
Configuration: Configuration,
|
|
2410
2145
|
CreateOrderProtocolDataOrderTypeEnum: CreateOrderProtocolDataOrderTypeEnum,
|
|
2146
|
+
ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
|
|
2147
|
+
ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
|
|
2411
2148
|
FeeFeeTypeEnum: FeeFeeTypeEnum,
|
|
2412
|
-
ListingsApi: ListingsApi,
|
|
2413
|
-
ListingsApiAxiosParamCreator: ListingsApiAxiosParamCreator,
|
|
2414
|
-
ListingsApiFactory: ListingsApiFactory,
|
|
2415
|
-
ListingsApiFp: ListingsApiFp,
|
|
2416
2149
|
NFTContractType: NFTContractType,
|
|
2150
|
+
NativeItemItemTypeEnum: NativeItemItemTypeEnum,
|
|
2417
2151
|
NftOwnersApi: NftOwnersApi,
|
|
2418
2152
|
NftOwnersApiAxiosParamCreator: NftOwnersApiAxiosParamCreator,
|
|
2419
2153
|
NftOwnersApiFactory: NftOwnersApiFactory,
|
|
@@ -2432,7 +2166,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
2432
2166
|
PassportApiFactory: PassportApiFactory,
|
|
2433
2167
|
PassportApiFp: PassportApiFp,
|
|
2434
2168
|
SaleFeeTypeEnum: SaleFeeTypeEnum,
|
|
2435
|
-
SellItemItemTypeEnum: SellItemItemTypeEnum,
|
|
2436
2169
|
TokenContractType: TokenContractType,
|
|
2437
2170
|
TokensApi: TokensApi,
|
|
2438
2171
|
TokensApiAxiosParamCreator: TokensApiAxiosParamCreator,
|
|
@@ -2465,7 +2198,7 @@ class APIError extends Error {
|
|
|
2465
2198
|
|
|
2466
2199
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2467
2200
|
const defaultHeaders = {
|
|
2468
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.1.9-alpha',
|
|
2201
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.1.9-alpha.2',
|
|
2469
2202
|
};
|
|
2470
2203
|
/**
|
|
2471
2204
|
* createAPIConfiguration to create a custom Configuration
|