@imtbl/sdk 1.7.1 → 1.7.3
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 +78 -34
- package/dist/blockchain_data.js +5 -4
- package/dist/browser/checkout/sdk.js +7 -7
- package/dist/browser/checkout/widgets.js +63 -63
- package/dist/checkout.d.ts +11 -0
- package/dist/checkout.js +10 -8
- package/dist/config.js +4 -3
- package/dist/index.browser.js +13 -13
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +30 -13
- package/dist/index.d.ts +89 -34
- package/dist/index.js +30 -13
- package/dist/orderbook.js +4 -3
- package/dist/passport.js +24 -8
- package/dist/x.js +5 -4
- package/package.json +1 -1
|
@@ -1843,51 +1843,51 @@ interface MetadataRefreshRateLimitResult$1 {
|
|
|
1843
1843
|
/**
|
|
1844
1844
|
*
|
|
1845
1845
|
* @export
|
|
1846
|
-
* @interface
|
|
1846
|
+
* @interface NFTMetadataRequest
|
|
1847
1847
|
*/
|
|
1848
|
-
interface
|
|
1848
|
+
interface NFTMetadataRequest$1 {
|
|
1849
1849
|
/**
|
|
1850
1850
|
* The name of the NFT
|
|
1851
1851
|
* @type {string}
|
|
1852
|
-
* @memberof
|
|
1852
|
+
* @memberof NFTMetadataRequest
|
|
1853
1853
|
*/
|
|
1854
|
-
'name'
|
|
1854
|
+
'name'?: string | null;
|
|
1855
1855
|
/**
|
|
1856
1856
|
* The description of the NFT
|
|
1857
1857
|
* @type {string}
|
|
1858
|
-
* @memberof
|
|
1858
|
+
* @memberof NFTMetadataRequest
|
|
1859
1859
|
*/
|
|
1860
|
-
'description'
|
|
1860
|
+
'description'?: string | null;
|
|
1861
1861
|
/**
|
|
1862
1862
|
* The image url of the NFT
|
|
1863
1863
|
* @type {string}
|
|
1864
|
-
* @memberof
|
|
1864
|
+
* @memberof NFTMetadataRequest
|
|
1865
1865
|
*/
|
|
1866
|
-
'image'
|
|
1866
|
+
'image'?: string | null;
|
|
1867
1867
|
/**
|
|
1868
1868
|
* The external link of the NFT
|
|
1869
1869
|
* @type {string}
|
|
1870
|
-
* @memberof
|
|
1870
|
+
* @memberof NFTMetadataRequest
|
|
1871
1871
|
*/
|
|
1872
|
-
'external_url'
|
|
1872
|
+
'external_url'?: string | null;
|
|
1873
1873
|
/**
|
|
1874
1874
|
* The animation url of the NFT
|
|
1875
1875
|
* @type {string}
|
|
1876
|
-
* @memberof
|
|
1876
|
+
* @memberof NFTMetadataRequest
|
|
1877
1877
|
*/
|
|
1878
|
-
'animation_url'
|
|
1878
|
+
'animation_url'?: string | null;
|
|
1879
1879
|
/**
|
|
1880
1880
|
* The youtube link of the NFT
|
|
1881
1881
|
* @type {string}
|
|
1882
|
-
* @memberof
|
|
1882
|
+
* @memberof NFTMetadataRequest
|
|
1883
1883
|
*/
|
|
1884
|
-
'youtube_url'
|
|
1884
|
+
'youtube_url'?: string | null;
|
|
1885
1885
|
/**
|
|
1886
1886
|
* List of Metadata attributes
|
|
1887
1887
|
* @type {Array<NFTMetadataAttribute>}
|
|
1888
|
-
* @memberof
|
|
1888
|
+
* @memberof NFTMetadataRequest
|
|
1889
1889
|
*/
|
|
1890
|
-
'attributes'
|
|
1890
|
+
'attributes'?: Array<NFTMetadataAttribute$1> | null;
|
|
1891
1891
|
}
|
|
1892
1892
|
|
|
1893
1893
|
/**
|
|
@@ -1979,6 +1979,24 @@ interface RefreshMetadataByIDAllOf$1 {
|
|
|
1979
1979
|
'metadata_id': string;
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
|
+
/**
|
|
1983
|
+
* Immutable zkEVM API
|
|
1984
|
+
* Immutable Multi Rollup API
|
|
1985
|
+
*
|
|
1986
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1987
|
+
* Contact: support@immutable.com
|
|
1988
|
+
*
|
|
1989
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1990
|
+
* https://openapi-generator.tech
|
|
1991
|
+
* Do not edit the class manually.
|
|
1992
|
+
*/
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* @type RefreshableNFTAttributes
|
|
1996
|
+
* @export
|
|
1997
|
+
*/
|
|
1998
|
+
type RefreshableNFTAttributes$1 = NFTMetadataRequest$1;
|
|
1999
|
+
|
|
1982
2000
|
/**
|
|
1983
2001
|
* Immutable zkEVM API
|
|
1984
2002
|
* Immutable Multi Rollup API
|
|
@@ -4574,6 +4592,12 @@ interface GetMintRequestResult {
|
|
|
4574
4592
|
* @memberof GetMintRequestResult
|
|
4575
4593
|
*/
|
|
4576
4594
|
'token_id': string | null;
|
|
4595
|
+
/**
|
|
4596
|
+
* The id of the mint activity associated with this mint request
|
|
4597
|
+
* @type {string}
|
|
4598
|
+
* @memberof GetMintRequestResult
|
|
4599
|
+
*/
|
|
4600
|
+
'activity_id'?: string | null;
|
|
4577
4601
|
/**
|
|
4578
4602
|
* The transaction hash of the activity
|
|
4579
4603
|
* @type {string}
|
|
@@ -5502,51 +5526,51 @@ interface MetadataRefreshRateLimitResult {
|
|
|
5502
5526
|
/**
|
|
5503
5527
|
*
|
|
5504
5528
|
* @export
|
|
5505
|
-
* @interface
|
|
5529
|
+
* @interface NFTMetadataRequest
|
|
5506
5530
|
*/
|
|
5507
|
-
interface
|
|
5531
|
+
interface NFTMetadataRequest {
|
|
5508
5532
|
/**
|
|
5509
5533
|
* The name of the NFT
|
|
5510
5534
|
* @type {string}
|
|
5511
|
-
* @memberof
|
|
5535
|
+
* @memberof NFTMetadataRequest
|
|
5512
5536
|
*/
|
|
5513
|
-
'name'
|
|
5537
|
+
'name'?: string | null;
|
|
5514
5538
|
/**
|
|
5515
5539
|
* The description of the NFT
|
|
5516
5540
|
* @type {string}
|
|
5517
|
-
* @memberof
|
|
5541
|
+
* @memberof NFTMetadataRequest
|
|
5518
5542
|
*/
|
|
5519
|
-
'description'
|
|
5543
|
+
'description'?: string | null;
|
|
5520
5544
|
/**
|
|
5521
5545
|
* The image url of the NFT
|
|
5522
5546
|
* @type {string}
|
|
5523
|
-
* @memberof
|
|
5547
|
+
* @memberof NFTMetadataRequest
|
|
5524
5548
|
*/
|
|
5525
|
-
'image'
|
|
5549
|
+
'image'?: string | null;
|
|
5526
5550
|
/**
|
|
5527
5551
|
* The external link of the NFT
|
|
5528
5552
|
* @type {string}
|
|
5529
|
-
* @memberof
|
|
5553
|
+
* @memberof NFTMetadataRequest
|
|
5530
5554
|
*/
|
|
5531
|
-
'external_url'
|
|
5555
|
+
'external_url'?: string | null;
|
|
5532
5556
|
/**
|
|
5533
5557
|
* The animation url of the NFT
|
|
5534
5558
|
* @type {string}
|
|
5535
|
-
* @memberof
|
|
5559
|
+
* @memberof NFTMetadataRequest
|
|
5536
5560
|
*/
|
|
5537
|
-
'animation_url'
|
|
5561
|
+
'animation_url'?: string | null;
|
|
5538
5562
|
/**
|
|
5539
5563
|
* The youtube link of the NFT
|
|
5540
5564
|
* @type {string}
|
|
5541
|
-
* @memberof
|
|
5565
|
+
* @memberof NFTMetadataRequest
|
|
5542
5566
|
*/
|
|
5543
|
-
'youtube_url'
|
|
5567
|
+
'youtube_url'?: string | null;
|
|
5544
5568
|
/**
|
|
5545
5569
|
* List of Metadata attributes
|
|
5546
5570
|
* @type {Array<NFTMetadataAttribute>}
|
|
5547
|
-
* @memberof
|
|
5571
|
+
* @memberof NFTMetadataRequest
|
|
5548
5572
|
*/
|
|
5549
|
-
'attributes'
|
|
5573
|
+
'attributes'?: Array<NFTMetadataAttribute> | null;
|
|
5550
5574
|
}
|
|
5551
5575
|
|
|
5552
5576
|
/**
|
|
@@ -5581,10 +5605,10 @@ interface MintAsset {
|
|
|
5581
5605
|
'owner_address': string;
|
|
5582
5606
|
/**
|
|
5583
5607
|
*
|
|
5584
|
-
* @type {
|
|
5608
|
+
* @type {NFTMetadataRequest}
|
|
5585
5609
|
* @memberof MintAsset
|
|
5586
5610
|
*/
|
|
5587
|
-
'metadata'?:
|
|
5611
|
+
'metadata'?: NFTMetadataRequest;
|
|
5588
5612
|
}
|
|
5589
5613
|
|
|
5590
5614
|
/**
|
|
@@ -5676,6 +5700,24 @@ interface RefreshMetadataByIDAllOf {
|
|
|
5676
5700
|
'metadata_id': string;
|
|
5677
5701
|
}
|
|
5678
5702
|
|
|
5703
|
+
/**
|
|
5704
|
+
* Immutable zkEVM API
|
|
5705
|
+
* Immutable Multi Rollup API
|
|
5706
|
+
*
|
|
5707
|
+
* The version of the OpenAPI document: 1.0.0
|
|
5708
|
+
* Contact: support@immutable.com
|
|
5709
|
+
*
|
|
5710
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5711
|
+
* https://openapi-generator.tech
|
|
5712
|
+
* Do not edit the class manually.
|
|
5713
|
+
*/
|
|
5714
|
+
|
|
5715
|
+
/**
|
|
5716
|
+
* @type RefreshableNFTAttributes
|
|
5717
|
+
* @export
|
|
5718
|
+
*/
|
|
5719
|
+
type RefreshableNFTAttributes = NFTMetadataRequest;
|
|
5720
|
+
|
|
5679
5721
|
/**
|
|
5680
5722
|
* Immutable zkEVM API
|
|
5681
5723
|
* Immutable Multi Rollup API
|
|
@@ -6678,6 +6720,7 @@ type index_d_NFTContractType = NFTContractType;
|
|
|
6678
6720
|
declare const index_d_NFTContractType: typeof NFTContractType;
|
|
6679
6721
|
type index_d_NFTMetadataAttribute = NFTMetadataAttribute;
|
|
6680
6722
|
type index_d_NFTMetadataAttributeValue = NFTMetadataAttributeValue;
|
|
6723
|
+
type index_d_NFTMetadataRequest = NFTMetadataRequest;
|
|
6681
6724
|
type index_d_NFTOwner = NFTOwner;
|
|
6682
6725
|
type index_d_NFTSale = NFTSale;
|
|
6683
6726
|
type index_d_NFTWithBalance = NFTWithBalance;
|
|
@@ -6801,6 +6844,7 @@ declare namespace index_d {
|
|
|
6801
6844
|
index_d_NFTContractType as NFTContractType,
|
|
6802
6845
|
index_d_NFTMetadataAttribute as NFTMetadataAttribute,
|
|
6803
6846
|
index_d_NFTMetadataAttributeValue as NFTMetadataAttributeValue,
|
|
6847
|
+
index_d_NFTMetadataRequest as NFTMetadataRequest,
|
|
6804
6848
|
index_d_NFTOwner as NFTOwner,
|
|
6805
6849
|
index_d_NFTSale as NFTSale,
|
|
6806
6850
|
index_d_NFTWithBalance as NFTWithBalance,
|
package/dist/blockchain_data.js
CHANGED
|
@@ -4552,7 +4552,7 @@ const storeDetail = (key, value) => {
|
|
|
4552
4552
|
};
|
|
4553
4553
|
setItem(Store.RUNTIME, RUNTIME_DETAILS);
|
|
4554
4554
|
};
|
|
4555
|
-
const getDetail = (key) => {
|
|
4555
|
+
const getDetail$1 = (key) => {
|
|
4556
4556
|
// Handle the scenario where detail is a falsy value
|
|
4557
4557
|
if (RUNTIME_DETAILS[key] === undefined) {
|
|
4558
4558
|
return undefined;
|
|
@@ -4584,7 +4584,7 @@ const flattenProperties = (properties) => {
|
|
|
4584
4584
|
};
|
|
4585
4585
|
|
|
4586
4586
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
4587
|
-
const SDK_VERSION = '1.7.
|
|
4587
|
+
const SDK_VERSION = '1.7.3';
|
|
4588
4588
|
const getReferrer = () => {
|
|
4589
4589
|
if (isNode()) {
|
|
4590
4590
|
return '';
|
|
@@ -4627,7 +4627,7 @@ const initialise = async () => {
|
|
|
4627
4627
|
initialised = true;
|
|
4628
4628
|
try {
|
|
4629
4629
|
const runtimeDetails = flattenProperties(getRuntimeDetails());
|
|
4630
|
-
const existingRuntimeId = getDetail(Detail.RUNTIME_ID);
|
|
4630
|
+
const existingRuntimeId = getDetail$1(Detail.RUNTIME_ID);
|
|
4631
4631
|
const body = {
|
|
4632
4632
|
version: 1,
|
|
4633
4633
|
data: {
|
|
@@ -4759,6 +4759,7 @@ const setPublishableApiKeyFn = (publishableApiKey) => {
|
|
|
4759
4759
|
storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
|
|
4760
4760
|
};
|
|
4761
4761
|
errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
|
|
4762
|
+
errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
|
|
4762
4763
|
|
|
4763
4764
|
var Environment;
|
|
4764
4765
|
(function (Environment) {
|
|
@@ -4785,7 +4786,7 @@ class APIError extends Error {
|
|
|
4785
4786
|
|
|
4786
4787
|
/* eslint-disable implicit-arrow-linebreak */
|
|
4787
4788
|
const defaultHeaders = {
|
|
4788
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.
|
|
4789
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.3',
|
|
4789
4790
|
};
|
|
4790
4791
|
/**
|
|
4791
4792
|
* createAPIConfiguration to create a custom Configuration
|