@imtbl/sdk 0.1.9-alpha.2 → 0.1.9-alpha.4
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 +25 -49
- package/dist/blockchain-data.js +5 -4
- package/dist/browser/checkout.js +2 -2
- package/dist/immutablex_client.js +1 -1
- package/dist/index.cjs +8 -1349
- package/dist/index.d.ts +28 -15689
- package/dist/index.js +7 -1341
- package/dist/passport.js +1 -1
- package/package.json +1 -9
- package/dist/checkout_sdk.d.ts +0 -1109
- package/dist/checkout_sdk.js +0 -1096
- package/dist/checkout_widgets.d.ts +0 -15350
- package/dist/checkout_widgets.js +0 -261
|
@@ -168,30 +168,6 @@ interface ActivityToken {
|
|
|
168
168
|
*/
|
|
169
169
|
type ActivityAsset = ActivityNFT | ActivityToken;
|
|
170
170
|
|
|
171
|
-
/**
|
|
172
|
-
* Immutable X API
|
|
173
|
-
* Immutable Multi Rollup API
|
|
174
|
-
*
|
|
175
|
-
* The version of the OpenAPI document: 1.0.0
|
|
176
|
-
* Contact: support@immutable.com
|
|
177
|
-
*
|
|
178
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
179
|
-
* https://openapi-generator.tech
|
|
180
|
-
* Do not edit the class manually.
|
|
181
|
-
*/
|
|
182
|
-
/**
|
|
183
|
-
* The activity type
|
|
184
|
-
* @export
|
|
185
|
-
* @enum {string}
|
|
186
|
-
*/
|
|
187
|
-
declare const ActivityType: {
|
|
188
|
-
readonly Mint: "mint";
|
|
189
|
-
readonly Burn: "burn";
|
|
190
|
-
readonly Transfer: "transfer";
|
|
191
|
-
readonly Sale: "sale";
|
|
192
|
-
};
|
|
193
|
-
type ActivityType = typeof ActivityType[keyof typeof ActivityType];
|
|
194
|
-
|
|
195
171
|
/**
|
|
196
172
|
* Immutable X API
|
|
197
173
|
* Immutable Multi Rollup API
|
|
@@ -210,12 +186,6 @@ type ActivityType = typeof ActivityType[keyof typeof ActivityType];
|
|
|
210
186
|
* @interface Burn
|
|
211
187
|
*/
|
|
212
188
|
interface Burn {
|
|
213
|
-
/**
|
|
214
|
-
*
|
|
215
|
-
* @type {ActivityType}
|
|
216
|
-
* @memberof Burn
|
|
217
|
-
*/
|
|
218
|
-
'activity_type': ActivityType;
|
|
219
189
|
/**
|
|
220
190
|
* The account address the asset was transferred from
|
|
221
191
|
* @type {string}
|
|
@@ -254,12 +224,6 @@ interface Burn {
|
|
|
254
224
|
* @interface Mint
|
|
255
225
|
*/
|
|
256
226
|
interface Mint {
|
|
257
|
-
/**
|
|
258
|
-
*
|
|
259
|
-
* @type {ActivityType}
|
|
260
|
-
* @memberof Mint
|
|
261
|
-
*/
|
|
262
|
-
'activity_type': ActivityType;
|
|
263
227
|
/**
|
|
264
228
|
* The account address the asset was minted to
|
|
265
229
|
* @type {string}
|
|
@@ -427,12 +391,6 @@ interface SalePayment {
|
|
|
427
391
|
* @interface NFTSale
|
|
428
392
|
*/
|
|
429
393
|
interface NFTSale {
|
|
430
|
-
/**
|
|
431
|
-
*
|
|
432
|
-
* @type {ActivityType}
|
|
433
|
-
* @memberof NFTSale
|
|
434
|
-
*/
|
|
435
|
-
'activity_type': ActivityType;
|
|
436
394
|
/**
|
|
437
395
|
* The id of order
|
|
438
396
|
* @type {string}
|
|
@@ -483,12 +441,6 @@ interface NFTSale {
|
|
|
483
441
|
* @interface Transfer
|
|
484
442
|
*/
|
|
485
443
|
interface Transfer {
|
|
486
|
-
/**
|
|
487
|
-
*
|
|
488
|
-
* @type {ActivityType}
|
|
489
|
-
* @memberof Transfer
|
|
490
|
-
*/
|
|
491
|
-
'activity_type': ActivityType;
|
|
492
444
|
/**
|
|
493
445
|
* The account address the asset was transferred from
|
|
494
446
|
* @type {string}
|
|
@@ -534,6 +486,30 @@ interface Transfer {
|
|
|
534
486
|
*/
|
|
535
487
|
type ActivityDetails = Burn | Mint | NFTSale | Transfer;
|
|
536
488
|
|
|
489
|
+
/**
|
|
490
|
+
* Immutable X API
|
|
491
|
+
* Immutable Multi Rollup API
|
|
492
|
+
*
|
|
493
|
+
* The version of the OpenAPI document: 1.0.0
|
|
494
|
+
* Contact: support@immutable.com
|
|
495
|
+
*
|
|
496
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
497
|
+
* https://openapi-generator.tech
|
|
498
|
+
* Do not edit the class manually.
|
|
499
|
+
*/
|
|
500
|
+
/**
|
|
501
|
+
* The activity type
|
|
502
|
+
* @export
|
|
503
|
+
* @enum {string}
|
|
504
|
+
*/
|
|
505
|
+
declare const ActivityType: {
|
|
506
|
+
readonly Mint: "mint";
|
|
507
|
+
readonly Burn: "burn";
|
|
508
|
+
readonly Transfer: "transfer";
|
|
509
|
+
readonly Sale: "sale";
|
|
510
|
+
};
|
|
511
|
+
type ActivityType = typeof ActivityType[keyof typeof ActivityType];
|
|
512
|
+
|
|
537
513
|
/**
|
|
538
514
|
* Immutable X API
|
|
539
515
|
* Immutable Multi Rollup API
|
|
@@ -1906,4 +1882,4 @@ interface APIConfigurationParams {
|
|
|
1906
1882
|
interface BlockchainDataModuleConfiguration extends ModuleConfiguration<APIConfigurationParams> {
|
|
1907
1883
|
}
|
|
1908
1884
|
|
|
1909
|
-
export { APIError, BlockchainData, BlockchainDataModuleConfiguration };
|
|
1885
|
+
export { APIError, ActivityType, BlockchainData, BlockchainDataModuleConfiguration };
|
package/dist/blockchain-data.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { ActivityType } from '@imtbl/generated-clients/dist/multi-rollup';
|
|
1
2
|
import globalAxios from 'axios';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
@@ -15,7 +16,7 @@ import globalAxios from 'axios';
|
|
|
15
16
|
*/
|
|
16
17
|
// Some imports not used depending on template conditions
|
|
17
18
|
// @ts-ignore
|
|
18
|
-
const BASE_PATH = "https://indexer-mr.
|
|
19
|
+
const BASE_PATH = "https://indexer-mr.sandbox.imtbl.com".replace(/\/+$/, "");
|
|
19
20
|
/**
|
|
20
21
|
*
|
|
21
22
|
* @export
|
|
@@ -2198,7 +2199,7 @@ class APIError extends Error {
|
|
|
2198
2199
|
|
|
2199
2200
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2200
2201
|
const defaultHeaders = {
|
|
2201
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.1.9-alpha.
|
|
2202
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.1.9-alpha.4',
|
|
2202
2203
|
};
|
|
2203
2204
|
/**
|
|
2204
2205
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -2216,10 +2217,10 @@ const createAPIConfiguration = ({ basePath, headers: baseHeaders, }) => {
|
|
|
2216
2217
|
return new index.Configuration(configParams);
|
|
2217
2218
|
};
|
|
2218
2219
|
const production = () => createAPIConfiguration({
|
|
2219
|
-
basePath: 'https://indexer-mr.
|
|
2220
|
+
basePath: 'https://indexer-mr.imtbl.com',
|
|
2220
2221
|
});
|
|
2221
2222
|
const sandbox = () => createAPIConfiguration({
|
|
2222
|
-
basePath: 'https://indexer-mr.
|
|
2223
|
+
basePath: 'https://indexer-mr.sandbox.imtbl.com',
|
|
2223
2224
|
});
|
|
2224
2225
|
class BlockchainDataConfiguration {
|
|
2225
2226
|
apiConfig;
|