@imtbl/sdk 0.25.0 → 0.27.0
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 +58 -0
- package/dist/blockchain_data.js +15 -1
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +14 -33
- package/dist/checkout_sdk.js +55 -44
- package/dist/checkout_widgets.d.ts +14 -14
- package/dist/checkout_widgets.js +13 -13
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +10 -10
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +70 -59
- package/dist/index.d.ts +129 -56
- package/dist/index.js +70 -59
- package/dist/passport.js +2 -2
- package/package.json +1 -1
|
@@ -1217,6 +1217,32 @@ interface Metadata {
|
|
|
1217
1217
|
'attributes': Array<NFTMetadataAttribute> | null;
|
|
1218
1218
|
}
|
|
1219
1219
|
|
|
1220
|
+
/**
|
|
1221
|
+
* Immutable zkEVM API
|
|
1222
|
+
* Immutable Multi Rollup API
|
|
1223
|
+
*
|
|
1224
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1225
|
+
* Contact: support@immutable.com
|
|
1226
|
+
*
|
|
1227
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1228
|
+
* https://openapi-generator.tech
|
|
1229
|
+
* Do not edit the class manually.
|
|
1230
|
+
*/
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Single metadata
|
|
1234
|
+
* @export
|
|
1235
|
+
* @interface GetMetadataResult
|
|
1236
|
+
*/
|
|
1237
|
+
interface GetMetadataResult {
|
|
1238
|
+
/**
|
|
1239
|
+
*
|
|
1240
|
+
* @type {Metadata}
|
|
1241
|
+
* @memberof GetMetadataResult
|
|
1242
|
+
*/
|
|
1243
|
+
'result': Metadata;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1220
1246
|
/**
|
|
1221
1247
|
* Immutable zkEVM API
|
|
1222
1248
|
* Immutable Multi Rollup API
|
|
@@ -2318,6 +2344,31 @@ interface CollectionsApiRefreshCollectionMetadataRequest {
|
|
|
2318
2344
|
readonly refreshCollectionMetadataRequest: RefreshCollectionMetadataRequest;
|
|
2319
2345
|
}
|
|
2320
2346
|
|
|
2347
|
+
/**
|
|
2348
|
+
* Request parameters for getMetadata operation in MetadataApi.
|
|
2349
|
+
* @export
|
|
2350
|
+
* @interface MetadataApiGetMetadataRequest
|
|
2351
|
+
*/
|
|
2352
|
+
interface MetadataApiGetMetadataRequest {
|
|
2353
|
+
/**
|
|
2354
|
+
* The name of chain
|
|
2355
|
+
* @type {string}
|
|
2356
|
+
* @memberof MetadataApiGetMetadata
|
|
2357
|
+
*/
|
|
2358
|
+
readonly chainName: string;
|
|
2359
|
+
/**
|
|
2360
|
+
* The address of metadata contract
|
|
2361
|
+
* @type {string}
|
|
2362
|
+
* @memberof MetadataApiGetMetadata
|
|
2363
|
+
*/
|
|
2364
|
+
readonly contractAddress: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* The id of the metadata
|
|
2367
|
+
* @type {string}
|
|
2368
|
+
* @memberof MetadataApiGetMetadata
|
|
2369
|
+
*/
|
|
2370
|
+
readonly metadataId: string;
|
|
2371
|
+
}
|
|
2321
2372
|
/**
|
|
2322
2373
|
* Request parameters for listMetadata operation in MetadataApi.
|
|
2323
2374
|
* @export
|
|
@@ -2858,6 +2909,13 @@ declare class BlockchainData {
|
|
|
2858
2909
|
* @throws {@link index.APIError}
|
|
2859
2910
|
*/
|
|
2860
2911
|
getToken(request: TokensApiGetERC20TokenRequest): Promise<GetTokenResult>;
|
|
2912
|
+
/**
|
|
2913
|
+
* Get metadata by ID
|
|
2914
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
2915
|
+
* @returns a promise that resolves with a single Metadata
|
|
2916
|
+
* @throws {@link index.APIError}
|
|
2917
|
+
*/
|
|
2918
|
+
getMetadata(request: MetadataApiGetMetadataRequest): Promise<GetMetadataResult>;
|
|
2861
2919
|
/**
|
|
2862
2920
|
* List NFT Metadata by contract address
|
|
2863
2921
|
* @param request - the request object containing the parameters to be provided in the API request
|
package/dist/blockchain_data.js
CHANGED
|
@@ -3403,7 +3403,7 @@ class APIError extends Error {
|
|
|
3403
3403
|
|
|
3404
3404
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3405
3405
|
const defaultHeaders = {
|
|
3406
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.
|
|
3406
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.0',
|
|
3407
3407
|
};
|
|
3408
3408
|
/**
|
|
3409
3409
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -3720,6 +3720,20 @@ class BlockchainData {
|
|
|
3720
3720
|
throw formatError(err);
|
|
3721
3721
|
});
|
|
3722
3722
|
}
|
|
3723
|
+
/**
|
|
3724
|
+
* Get metadata by ID
|
|
3725
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
3726
|
+
* @returns a promise that resolves with a single Metadata
|
|
3727
|
+
* @throws {@link index.APIError}
|
|
3728
|
+
*/
|
|
3729
|
+
async getMetadata(request) {
|
|
3730
|
+
return await this.metadata
|
|
3731
|
+
.getMetadata(request)
|
|
3732
|
+
.then((res) => res.data)
|
|
3733
|
+
.catch((err) => {
|
|
3734
|
+
throw formatError(err);
|
|
3735
|
+
});
|
|
3736
|
+
}
|
|
3723
3737
|
/**
|
|
3724
3738
|
* List NFT Metadata by contract address
|
|
3725
3739
|
* @param request - the request object containing the parameters to be provided in the API request
|