@imtbl/sdk 0.19.0-alpha → 0.20.1-alpha.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/blockchain_data.d.ts +56 -50
- package/dist/blockchain_data.js +289 -4
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +71 -25
- package/dist/checkout_sdk.js +529 -133
- package/dist/checkout_widgets.js +1 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +12 -30
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +563 -137
- package/dist/index.d.ts +149 -89
- package/dist/index.js +563 -137
- package/dist/orderbook.d.ts +15 -15
- package/dist/orderbook.js +14 -14
- package/dist/passport.js +111 -5
- package/package.json +2 -2
|
@@ -1014,6 +1014,56 @@ interface GetCollectionResult {
|
|
|
1014
1014
|
'result': Collection;
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
|
+
/**
|
|
1018
|
+
* Immutable zkEVM API
|
|
1019
|
+
* Immutable Multi Rollup API
|
|
1020
|
+
*
|
|
1021
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1022
|
+
* Contact: support@immutable.com
|
|
1023
|
+
*
|
|
1024
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1025
|
+
* https://openapi-generator.tech
|
|
1026
|
+
* Do not edit the class manually.
|
|
1027
|
+
*/
|
|
1028
|
+
/**
|
|
1029
|
+
* @type NFTMetadataAttributeValue
|
|
1030
|
+
* The metadata trait value
|
|
1031
|
+
* @export
|
|
1032
|
+
*/
|
|
1033
|
+
type NFTMetadataAttributeValue = boolean | number | string;
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* Immutable zkEVM API
|
|
1037
|
+
* Immutable Multi Rollup API
|
|
1038
|
+
*
|
|
1039
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1040
|
+
* Contact: support@immutable.com
|
|
1041
|
+
*
|
|
1042
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1043
|
+
* https://openapi-generator.tech
|
|
1044
|
+
* Do not edit the class manually.
|
|
1045
|
+
*/
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
*
|
|
1049
|
+
* @export
|
|
1050
|
+
* @interface NFTMetadataAttribute
|
|
1051
|
+
*/
|
|
1052
|
+
interface NFTMetadataAttribute {
|
|
1053
|
+
/**
|
|
1054
|
+
* The metadata trait type
|
|
1055
|
+
* @type {string}
|
|
1056
|
+
* @memberof NFTMetadataAttribute
|
|
1057
|
+
*/
|
|
1058
|
+
'trait_type': string;
|
|
1059
|
+
/**
|
|
1060
|
+
*
|
|
1061
|
+
* @type {NFTMetadataAttributeValue}
|
|
1062
|
+
* @memberof NFTMetadataAttribute
|
|
1063
|
+
*/
|
|
1064
|
+
'value': NFTMetadataAttributeValue;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1017
1067
|
/**
|
|
1018
1068
|
* Immutable zkEVM API
|
|
1019
1069
|
* Immutable Multi Rollup API
|
|
@@ -1062,6 +1112,12 @@ interface NFT {
|
|
|
1062
1112
|
* @memberof NFT
|
|
1063
1113
|
*/
|
|
1064
1114
|
'metadata_synced_at': string | null;
|
|
1115
|
+
/**
|
|
1116
|
+
* The id of the metadata of this NFT
|
|
1117
|
+
* @type {string}
|
|
1118
|
+
* @memberof NFT
|
|
1119
|
+
*/
|
|
1120
|
+
'metadata_id'?: string | null;
|
|
1065
1121
|
/**
|
|
1066
1122
|
* The name of the NFT
|
|
1067
1123
|
* @type {string}
|
|
@@ -1106,56 +1162,6 @@ interface NFT {
|
|
|
1106
1162
|
'mint_activity_id': string | null;
|
|
1107
1163
|
}
|
|
1108
1164
|
|
|
1109
|
-
/**
|
|
1110
|
-
* Immutable zkEVM API
|
|
1111
|
-
* Immutable Multi Rollup API
|
|
1112
|
-
*
|
|
1113
|
-
* The version of the OpenAPI document: 1.0.0
|
|
1114
|
-
* Contact: support@immutable.com
|
|
1115
|
-
*
|
|
1116
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1117
|
-
* https://openapi-generator.tech
|
|
1118
|
-
* Do not edit the class manually.
|
|
1119
|
-
*/
|
|
1120
|
-
/**
|
|
1121
|
-
* @type NFTMetadataAttributeValue
|
|
1122
|
-
* The metadata trait value
|
|
1123
|
-
* @export
|
|
1124
|
-
*/
|
|
1125
|
-
type NFTMetadataAttributeValue = boolean | number | string;
|
|
1126
|
-
|
|
1127
|
-
/**
|
|
1128
|
-
* Immutable zkEVM API
|
|
1129
|
-
* Immutable Multi Rollup API
|
|
1130
|
-
*
|
|
1131
|
-
* The version of the OpenAPI document: 1.0.0
|
|
1132
|
-
* Contact: support@immutable.com
|
|
1133
|
-
*
|
|
1134
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1135
|
-
* https://openapi-generator.tech
|
|
1136
|
-
* Do not edit the class manually.
|
|
1137
|
-
*/
|
|
1138
|
-
|
|
1139
|
-
/**
|
|
1140
|
-
*
|
|
1141
|
-
* @export
|
|
1142
|
-
* @interface NFTMetadataAttribute
|
|
1143
|
-
*/
|
|
1144
|
-
interface NFTMetadataAttribute {
|
|
1145
|
-
/**
|
|
1146
|
-
* The metadata trait type
|
|
1147
|
-
* @type {string}
|
|
1148
|
-
* @memberof NFTMetadataAttribute
|
|
1149
|
-
*/
|
|
1150
|
-
'trait_type': string;
|
|
1151
|
-
/**
|
|
1152
|
-
*
|
|
1153
|
-
* @type {NFTMetadataAttributeValue}
|
|
1154
|
-
* @memberof NFTMetadataAttribute
|
|
1155
|
-
*/
|
|
1156
|
-
'value': NFTMetadataAttributeValue;
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
1165
|
/**
|
|
1160
1166
|
* Immutable zkEVM API
|
|
1161
1167
|
* Immutable Multi Rollup API
|
package/dist/blockchain_data.js
CHANGED
|
@@ -77,6 +77,18 @@ const assertParamExists = function (functionName, paramName, paramValue) {
|
|
|
77
77
|
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
85
|
+
if (configuration && configuration.apiKey) {
|
|
86
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
87
|
+
? await configuration.apiKey(keyParamName)
|
|
88
|
+
: await configuration.apiKey;
|
|
89
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
80
92
|
/**
|
|
81
93
|
*
|
|
82
94
|
* @export
|
|
@@ -626,6 +638,46 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
626
638
|
options: localVarRequestOptions,
|
|
627
639
|
};
|
|
628
640
|
},
|
|
641
|
+
/**
|
|
642
|
+
* Refresh collection metadata
|
|
643
|
+
* @summary Refresh collection metadata
|
|
644
|
+
* @param {string} contractAddress The address contract
|
|
645
|
+
* @param {string} chainName The name of chain
|
|
646
|
+
* @param {RefreshCollectionMetadataRequest} refreshCollectionMetadataRequest The request body
|
|
647
|
+
* @param {*} [options] Override http request option.
|
|
648
|
+
* @throws {RequiredError}
|
|
649
|
+
*/
|
|
650
|
+
refreshCollectionMetadata: async (contractAddress, chainName, refreshCollectionMetadataRequest, options = {}) => {
|
|
651
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
652
|
+
assertParamExists('refreshCollectionMetadata', 'contractAddress', contractAddress);
|
|
653
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
654
|
+
assertParamExists('refreshCollectionMetadata', 'chainName', chainName);
|
|
655
|
+
// verify required parameter 'refreshCollectionMetadataRequest' is not null or undefined
|
|
656
|
+
assertParamExists('refreshCollectionMetadata', 'refreshCollectionMetadataRequest', refreshCollectionMetadataRequest);
|
|
657
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata`
|
|
658
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
659
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
660
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
661
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
662
|
+
let baseOptions;
|
|
663
|
+
if (configuration) {
|
|
664
|
+
baseOptions = configuration.baseOptions;
|
|
665
|
+
}
|
|
666
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
667
|
+
const localVarHeaderParameter = {};
|
|
668
|
+
const localVarQueryParameter = {};
|
|
669
|
+
// authentication ImmutableApiKey required
|
|
670
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-Immutable-API-Key", configuration);
|
|
671
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
672
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
673
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
674
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
675
|
+
localVarRequestOptions.data = serializeDataIfNeeded(refreshCollectionMetadataRequest, localVarRequestOptions, configuration);
|
|
676
|
+
return {
|
|
677
|
+
url: toPathString(localVarUrlObj),
|
|
678
|
+
options: localVarRequestOptions,
|
|
679
|
+
};
|
|
680
|
+
},
|
|
629
681
|
};
|
|
630
682
|
};
|
|
631
683
|
/**
|
|
@@ -674,6 +726,19 @@ const CollectionsApiFp = function (configuration) {
|
|
|
674
726
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options);
|
|
675
727
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
676
728
|
},
|
|
729
|
+
/**
|
|
730
|
+
* Refresh collection metadata
|
|
731
|
+
* @summary Refresh collection metadata
|
|
732
|
+
* @param {string} contractAddress The address contract
|
|
733
|
+
* @param {string} chainName The name of chain
|
|
734
|
+
* @param {RefreshCollectionMetadataRequest} refreshCollectionMetadataRequest The request body
|
|
735
|
+
* @param {*} [options] Override http request option.
|
|
736
|
+
* @throws {RequiredError}
|
|
737
|
+
*/
|
|
738
|
+
async refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options) {
|
|
739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options);
|
|
740
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
741
|
+
},
|
|
677
742
|
};
|
|
678
743
|
};
|
|
679
744
|
/**
|
|
@@ -719,6 +784,18 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
719
784
|
listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options) {
|
|
720
785
|
return localVarFp.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
721
786
|
},
|
|
787
|
+
/**
|
|
788
|
+
* Refresh collection metadata
|
|
789
|
+
* @summary Refresh collection metadata
|
|
790
|
+
* @param {string} contractAddress The address contract
|
|
791
|
+
* @param {string} chainName The name of chain
|
|
792
|
+
* @param {RefreshCollectionMetadataRequest} refreshCollectionMetadataRequest The request body
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options) {
|
|
797
|
+
return localVarFp.refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options).then((request) => request(axios, basePath));
|
|
798
|
+
},
|
|
722
799
|
};
|
|
723
800
|
};
|
|
724
801
|
/**
|
|
@@ -761,6 +838,210 @@ class CollectionsApi extends BaseAPI {
|
|
|
761
838
|
listCollectionsByNFTOwner(requestParameters, options) {
|
|
762
839
|
return CollectionsApiFp(this.configuration).listCollectionsByNFTOwner(requestParameters.accountAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
763
840
|
}
|
|
841
|
+
/**
|
|
842
|
+
* Refresh collection metadata
|
|
843
|
+
* @summary Refresh collection metadata
|
|
844
|
+
* @param {CollectionsApiRefreshCollectionMetadataRequest} requestParameters Request parameters.
|
|
845
|
+
* @param {*} [options] Override http request option.
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
* @memberof CollectionsApi
|
|
848
|
+
*/
|
|
849
|
+
refreshCollectionMetadata(requestParameters, options) {
|
|
850
|
+
return CollectionsApiFp(this.configuration).refreshCollectionMetadata(requestParameters.contractAddress, requestParameters.chainName, requestParameters.refreshCollectionMetadataRequest, options).then((request) => request(this.axios, this.basePath));
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/* tslint:disable */
|
|
855
|
+
/* eslint-disable */
|
|
856
|
+
/**
|
|
857
|
+
* Immutable zkEVM API
|
|
858
|
+
* Immutable Multi Rollup API
|
|
859
|
+
*
|
|
860
|
+
* The version of the OpenAPI document: 1.0.0
|
|
861
|
+
* Contact: support@immutable.com
|
|
862
|
+
*
|
|
863
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
864
|
+
* https://openapi-generator.tech
|
|
865
|
+
* Do not edit the class manually.
|
|
866
|
+
*/
|
|
867
|
+
/**
|
|
868
|
+
* MetadataApi - axios parameter creator
|
|
869
|
+
* @export
|
|
870
|
+
*/
|
|
871
|
+
const MetadataApiAxiosParamCreator = function (configuration) {
|
|
872
|
+
return {
|
|
873
|
+
/**
|
|
874
|
+
* Get a single metadata by ID
|
|
875
|
+
* @summary Get a single metadata by ID
|
|
876
|
+
* @param {string} chainName The name of chain
|
|
877
|
+
* @param {string} contractAddress The address of metadata contract
|
|
878
|
+
* @param {string} metadataId The id of the metadata
|
|
879
|
+
* @param {*} [options] Override http request option.
|
|
880
|
+
* @throws {RequiredError}
|
|
881
|
+
*/
|
|
882
|
+
getMetadata: async (chainName, contractAddress, metadataId, options = {}) => {
|
|
883
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
884
|
+
assertParamExists('getMetadata', 'chainName', chainName);
|
|
885
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
886
|
+
assertParamExists('getMetadata', 'contractAddress', contractAddress);
|
|
887
|
+
// verify required parameter 'metadataId' is not null or undefined
|
|
888
|
+
assertParamExists('getMetadata', 'metadataId', metadataId);
|
|
889
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}`
|
|
890
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
|
|
891
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
892
|
+
.replace(`{${"metadata_id"}}`, encodeURIComponent(String(metadataId)));
|
|
893
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
894
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
895
|
+
let baseOptions;
|
|
896
|
+
if (configuration) {
|
|
897
|
+
baseOptions = configuration.baseOptions;
|
|
898
|
+
}
|
|
899
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
900
|
+
const localVarHeaderParameter = {};
|
|
901
|
+
const localVarQueryParameter = {};
|
|
902
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
903
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
904
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
905
|
+
return {
|
|
906
|
+
url: toPathString(localVarUrlObj),
|
|
907
|
+
options: localVarRequestOptions,
|
|
908
|
+
};
|
|
909
|
+
},
|
|
910
|
+
/**
|
|
911
|
+
* Refresh shared metadata for a collection
|
|
912
|
+
* @param {string} chainName The name of chain
|
|
913
|
+
* @param {string} contractAddress Contract address
|
|
914
|
+
* @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
*/
|
|
918
|
+
refreshMetadataByID: async (chainName, contractAddress, refreshMetadataByIDRequest, options = {}) => {
|
|
919
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
920
|
+
assertParamExists('refreshMetadataByID', 'chainName', chainName);
|
|
921
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
922
|
+
assertParamExists('refreshMetadataByID', 'contractAddress', contractAddress);
|
|
923
|
+
// verify required parameter 'refreshMetadataByIDRequest' is not null or undefined
|
|
924
|
+
assertParamExists('refreshMetadataByID', 'refreshMetadataByIDRequest', refreshMetadataByIDRequest);
|
|
925
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata`
|
|
926
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
|
|
927
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)));
|
|
928
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
929
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
930
|
+
let baseOptions;
|
|
931
|
+
if (configuration) {
|
|
932
|
+
baseOptions = configuration.baseOptions;
|
|
933
|
+
}
|
|
934
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
935
|
+
const localVarHeaderParameter = {};
|
|
936
|
+
const localVarQueryParameter = {};
|
|
937
|
+
// authentication ImmutableApiKey required
|
|
938
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-Immutable-API-Key", configuration);
|
|
939
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
940
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
941
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
942
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
943
|
+
localVarRequestOptions.data = serializeDataIfNeeded(refreshMetadataByIDRequest, localVarRequestOptions, configuration);
|
|
944
|
+
return {
|
|
945
|
+
url: toPathString(localVarUrlObj),
|
|
946
|
+
options: localVarRequestOptions,
|
|
947
|
+
};
|
|
948
|
+
},
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
/**
|
|
952
|
+
* MetadataApi - functional programming interface
|
|
953
|
+
* @export
|
|
954
|
+
*/
|
|
955
|
+
const MetadataApiFp = function (configuration) {
|
|
956
|
+
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration);
|
|
957
|
+
return {
|
|
958
|
+
/**
|
|
959
|
+
* Get a single metadata by ID
|
|
960
|
+
* @summary Get a single metadata by ID
|
|
961
|
+
* @param {string} chainName The name of chain
|
|
962
|
+
* @param {string} contractAddress The address of metadata contract
|
|
963
|
+
* @param {string} metadataId The id of the metadata
|
|
964
|
+
* @param {*} [options] Override http request option.
|
|
965
|
+
* @throws {RequiredError}
|
|
966
|
+
*/
|
|
967
|
+
async getMetadata(chainName, contractAddress, metadataId, options) {
|
|
968
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMetadata(chainName, contractAddress, metadataId, options);
|
|
969
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
970
|
+
},
|
|
971
|
+
/**
|
|
972
|
+
* Refresh shared metadata for a collection
|
|
973
|
+
* @param {string} chainName The name of chain
|
|
974
|
+
* @param {string} contractAddress Contract address
|
|
975
|
+
* @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
|
|
976
|
+
* @param {*} [options] Override http request option.
|
|
977
|
+
* @throws {RequiredError}
|
|
978
|
+
*/
|
|
979
|
+
async refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options) {
|
|
980
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options);
|
|
981
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
982
|
+
},
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
/**
|
|
986
|
+
* MetadataApi - factory interface
|
|
987
|
+
* @export
|
|
988
|
+
*/
|
|
989
|
+
const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
990
|
+
const localVarFp = MetadataApiFp(configuration);
|
|
991
|
+
return {
|
|
992
|
+
/**
|
|
993
|
+
* Get a single metadata by ID
|
|
994
|
+
* @summary Get a single metadata by ID
|
|
995
|
+
* @param {string} chainName The name of chain
|
|
996
|
+
* @param {string} contractAddress The address of metadata contract
|
|
997
|
+
* @param {string} metadataId The id of the metadata
|
|
998
|
+
* @param {*} [options] Override http request option.
|
|
999
|
+
* @throws {RequiredError}
|
|
1000
|
+
*/
|
|
1001
|
+
getMetadata(chainName, contractAddress, metadataId, options) {
|
|
1002
|
+
return localVarFp.getMetadata(chainName, contractAddress, metadataId, options).then((request) => request(axios, basePath));
|
|
1003
|
+
},
|
|
1004
|
+
/**
|
|
1005
|
+
* Refresh shared metadata for a collection
|
|
1006
|
+
* @param {string} chainName The name of chain
|
|
1007
|
+
* @param {string} contractAddress Contract address
|
|
1008
|
+
* @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
*/
|
|
1012
|
+
refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options) {
|
|
1013
|
+
return localVarFp.refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options).then((request) => request(axios, basePath));
|
|
1014
|
+
},
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
/**
|
|
1018
|
+
* MetadataApi - object-oriented interface
|
|
1019
|
+
* @export
|
|
1020
|
+
* @class MetadataApi
|
|
1021
|
+
* @extends {BaseAPI}
|
|
1022
|
+
*/
|
|
1023
|
+
class MetadataApi extends BaseAPI {
|
|
1024
|
+
/**
|
|
1025
|
+
* Get a single metadata by ID
|
|
1026
|
+
* @summary Get a single metadata by ID
|
|
1027
|
+
* @param {MetadataApiGetMetadataRequest} requestParameters Request parameters.
|
|
1028
|
+
* @param {*} [options] Override http request option.
|
|
1029
|
+
* @throws {RequiredError}
|
|
1030
|
+
* @memberof MetadataApi
|
|
1031
|
+
*/
|
|
1032
|
+
getMetadata(requestParameters, options) {
|
|
1033
|
+
return MetadataApiFp(this.configuration).getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(this.axios, this.basePath));
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
* Refresh shared metadata for a collection
|
|
1037
|
+
* @param {MetadataApiRefreshMetadataByIDRequest} requestParameters Request parameters.
|
|
1038
|
+
* @param {*} [options] Override http request option.
|
|
1039
|
+
* @throws {RequiredError}
|
|
1040
|
+
* @memberof MetadataApi
|
|
1041
|
+
*/
|
|
1042
|
+
refreshMetadataByID(requestParameters, options) {
|
|
1043
|
+
return MetadataApiFp(this.configuration).refreshMetadataByID(requestParameters.chainName, requestParameters.contractAddress, requestParameters.refreshMetadataByIDRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1044
|
+
}
|
|
764
1045
|
}
|
|
765
1046
|
|
|
766
1047
|
/* tslint:disable */
|
|
@@ -1401,7 +1682,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1401
1682
|
* @param {string} chainName
|
|
1402
1683
|
* @param {string} [accountAddress]
|
|
1403
1684
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1404
|
-
* @param {'
|
|
1685
|
+
* @param {'indexed_at'} [sortBy] Trade field to sort by
|
|
1405
1686
|
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
1406
1687
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1407
1688
|
* @param {*} [options] Override http request option.
|
|
@@ -1526,7 +1807,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
1526
1807
|
* @param {string} chainName
|
|
1527
1808
|
* @param {string} [accountAddress]
|
|
1528
1809
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1529
|
-
* @param {'
|
|
1810
|
+
* @param {'indexed_at'} [sortBy] Trade field to sort by
|
|
1530
1811
|
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
1531
1812
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1532
1813
|
* @param {*} [options] Override http request option.
|
|
@@ -1613,7 +1894,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1613
1894
|
* @param {string} chainName
|
|
1614
1895
|
* @param {string} [accountAddress]
|
|
1615
1896
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1616
|
-
* @param {'
|
|
1897
|
+
* @param {'indexed_at'} [sortBy] Trade field to sort by
|
|
1617
1898
|
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
1618
1899
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1619
1900
|
* @param {*} [options] Override http request option.
|
|
@@ -2519,6 +2800,10 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
2519
2800
|
ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
|
|
2520
2801
|
ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
|
|
2521
2802
|
FeeFeeTypeEnum: FeeFeeTypeEnum,
|
|
2803
|
+
MetadataApi: MetadataApi,
|
|
2804
|
+
MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
|
|
2805
|
+
MetadataApiFactory: MetadataApiFactory,
|
|
2806
|
+
MetadataApiFp: MetadataApiFp,
|
|
2522
2807
|
NFTContractType: NFTContractType,
|
|
2523
2808
|
NativeItemItemTypeEnum: NativeItemItemTypeEnum,
|
|
2524
2809
|
NftOwnersApi: NftOwnersApi,
|
|
@@ -2572,7 +2857,7 @@ class APIError extends Error {
|
|
|
2572
2857
|
|
|
2573
2858
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2574
2859
|
const defaultHeaders = {
|
|
2575
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.
|
|
2860
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.20.1-alpha.1',
|
|
2576
2861
|
};
|
|
2577
2862
|
/**
|
|
2578
2863
|
* createAPIConfiguration to create a custom Configuration
|