@ardrive/turbo-sdk 1.0.0-alpha.24 → 1.0.0-alpha.25
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/bundles/web.bundle.min.js +18 -0
- package/lib/cjs/common/factory.js +1 -23
- package/lib/cjs/common/turbo.js +23 -1
- package/lib/esm/common/factory.js +2 -24
- package/lib/esm/common/turbo.js +24 -2
- package/lib/types/common/factory.d.ts +0 -22
- package/lib/types/common/factory.d.ts.map +1 -1
- package/lib/types/common/turbo.d.ts +22 -0
- package/lib/types/common/turbo.d.ts.map +1 -1
- package/package.json +1 -1
@@ -47574,6 +47574,22 @@ var TurboAuthenticatedUploadService = class extends TurboUnauthenticatedUploadSe
|
|
47574
47574
|
};
|
47575
47575
|
|
47576
47576
|
// src/common/turbo.ts
|
47577
|
+
var developmentTurboConfiguration = {
|
47578
|
+
paymentServiceConfig: {
|
47579
|
+
url: developmentPaymentServiceURL
|
47580
|
+
},
|
47581
|
+
uploadServiceConfig: {
|
47582
|
+
url: developmentUploadServiceURL
|
47583
|
+
}
|
47584
|
+
};
|
47585
|
+
var defaultTurboConfiguration = {
|
47586
|
+
paymentServiceConfig: {
|
47587
|
+
url: defaultPaymentServiceURL
|
47588
|
+
},
|
47589
|
+
uploadServiceConfig: {
|
47590
|
+
url: defaultUploadServiceURL
|
47591
|
+
}
|
47592
|
+
};
|
47577
47593
|
var TurboUnauthenticatedClient = class {
|
47578
47594
|
constructor({
|
47579
47595
|
uploadService = new TurboUnauthenticatedUploadService({}),
|
@@ -55749,8 +55765,10 @@ export {
|
|
55749
55765
|
USD,
|
55750
55766
|
ZeroDecimalCurrency,
|
55751
55767
|
defaultPaymentServiceURL,
|
55768
|
+
defaultTurboConfiguration,
|
55752
55769
|
defaultUploadServiceURL,
|
55753
55770
|
developmentPaymentServiceURL,
|
55771
|
+
developmentTurboConfiguration,
|
55754
55772
|
developmentUploadServiceURL
|
55755
55773
|
};
|
55756
55774
|
/*! Bundled license information:
|
@@ -1,31 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TurboBaseFactory =
|
3
|
+
exports.TurboBaseFactory = void 0;
|
4
4
|
const payment_js_1 = require("./payment.js");
|
5
5
|
const turbo_js_1 = require("./turbo.js");
|
6
6
|
const upload_js_1 = require("./upload.js");
|
7
|
-
/**
|
8
|
-
* Testing configuration.
|
9
|
-
*/
|
10
|
-
exports.developmentTurboConfiguration = {
|
11
|
-
paymentServiceConfig: {
|
12
|
-
url: payment_js_1.developmentPaymentServiceURL,
|
13
|
-
},
|
14
|
-
uploadServiceConfig: {
|
15
|
-
url: upload_js_1.developmentUploadServiceURL,
|
16
|
-
},
|
17
|
-
};
|
18
|
-
/**
|
19
|
-
* Production configuration.
|
20
|
-
*/
|
21
|
-
exports.defaultTurboConfiguration = {
|
22
|
-
paymentServiceConfig: {
|
23
|
-
url: payment_js_1.defaultPaymentServiceURL,
|
24
|
-
},
|
25
|
-
uploadServiceConfig: {
|
26
|
-
url: upload_js_1.defaultUploadServiceURL,
|
27
|
-
},
|
28
|
-
};
|
29
7
|
class TurboBaseFactory {
|
30
8
|
static unauthenticated({ paymentServiceConfig = {}, uploadServiceConfig = {}, } = {}) {
|
31
9
|
const paymentService = new payment_js_1.TurboUnauthenticatedPaymentService({
|
package/lib/cjs/common/turbo.js
CHANGED
@@ -1,8 +1,30 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TurboAuthenticatedClient = exports.TurboUnauthenticatedClient = void 0;
|
3
|
+
exports.TurboAuthenticatedClient = exports.TurboUnauthenticatedClient = exports.defaultTurboConfiguration = exports.developmentTurboConfiguration = void 0;
|
4
4
|
const payment_js_1 = require("./payment.js");
|
5
5
|
const upload_js_1 = require("./upload.js");
|
6
|
+
/**
|
7
|
+
* Testing configuration.
|
8
|
+
*/
|
9
|
+
exports.developmentTurboConfiguration = {
|
10
|
+
paymentServiceConfig: {
|
11
|
+
url: payment_js_1.developmentPaymentServiceURL,
|
12
|
+
},
|
13
|
+
uploadServiceConfig: {
|
14
|
+
url: upload_js_1.developmentUploadServiceURL,
|
15
|
+
},
|
16
|
+
};
|
17
|
+
/**
|
18
|
+
* Production configuration.
|
19
|
+
*/
|
20
|
+
exports.defaultTurboConfiguration = {
|
21
|
+
paymentServiceConfig: {
|
22
|
+
url: payment_js_1.defaultPaymentServiceURL,
|
23
|
+
},
|
24
|
+
uploadServiceConfig: {
|
25
|
+
url: upload_js_1.defaultUploadServiceURL,
|
26
|
+
},
|
27
|
+
};
|
6
28
|
class TurboUnauthenticatedClient {
|
7
29
|
constructor({ uploadService = new upload_js_1.TurboUnauthenticatedUploadService({}), paymentService = new payment_js_1.TurboUnauthenticatedPaymentService({}), }) {
|
8
30
|
this.paymentService = paymentService;
|
@@ -1,28 +1,6 @@
|
|
1
|
-
import { TurboUnauthenticatedPaymentService
|
1
|
+
import { TurboUnauthenticatedPaymentService } from './payment.js';
|
2
2
|
import { TurboUnauthenticatedClient } from './turbo.js';
|
3
|
-
import { TurboUnauthenticatedUploadService
|
4
|
-
/**
|
5
|
-
* Testing configuration.
|
6
|
-
*/
|
7
|
-
export const developmentTurboConfiguration = {
|
8
|
-
paymentServiceConfig: {
|
9
|
-
url: developmentPaymentServiceURL,
|
10
|
-
},
|
11
|
-
uploadServiceConfig: {
|
12
|
-
url: developmentUploadServiceURL,
|
13
|
-
},
|
14
|
-
};
|
15
|
-
/**
|
16
|
-
* Production configuration.
|
17
|
-
*/
|
18
|
-
export const defaultTurboConfiguration = {
|
19
|
-
paymentServiceConfig: {
|
20
|
-
url: defaultPaymentServiceURL,
|
21
|
-
},
|
22
|
-
uploadServiceConfig: {
|
23
|
-
url: defaultUploadServiceURL,
|
24
|
-
},
|
25
|
-
};
|
3
|
+
import { TurboUnauthenticatedUploadService } from './upload.js';
|
26
4
|
export class TurboBaseFactory {
|
27
5
|
static unauthenticated({ paymentServiceConfig = {}, uploadServiceConfig = {}, } = {}) {
|
28
6
|
const paymentService = new TurboUnauthenticatedPaymentService({
|
package/lib/esm/common/turbo.js
CHANGED
@@ -1,5 +1,27 @@
|
|
1
|
-
import { TurboUnauthenticatedPaymentService } from './payment.js';
|
2
|
-
import { TurboUnauthenticatedUploadService } from './upload.js';
|
1
|
+
import { TurboUnauthenticatedPaymentService, defaultPaymentServiceURL, developmentPaymentServiceURL, } from './payment.js';
|
2
|
+
import { TurboUnauthenticatedUploadService, defaultUploadServiceURL, developmentUploadServiceURL, } from './upload.js';
|
3
|
+
/**
|
4
|
+
* Testing configuration.
|
5
|
+
*/
|
6
|
+
export const developmentTurboConfiguration = {
|
7
|
+
paymentServiceConfig: {
|
8
|
+
url: developmentPaymentServiceURL,
|
9
|
+
},
|
10
|
+
uploadServiceConfig: {
|
11
|
+
url: developmentUploadServiceURL,
|
12
|
+
},
|
13
|
+
};
|
14
|
+
/**
|
15
|
+
* Production configuration.
|
16
|
+
*/
|
17
|
+
export const defaultTurboConfiguration = {
|
18
|
+
paymentServiceConfig: {
|
19
|
+
url: defaultPaymentServiceURL,
|
20
|
+
},
|
21
|
+
uploadServiceConfig: {
|
22
|
+
url: defaultUploadServiceURL,
|
23
|
+
},
|
24
|
+
};
|
3
25
|
export class TurboUnauthenticatedClient {
|
4
26
|
constructor({ uploadService = new TurboUnauthenticatedUploadService({}), paymentService = new TurboUnauthenticatedPaymentService({}), }) {
|
5
27
|
this.paymentService = paymentService;
|
@@ -16,28 +16,6 @@
|
|
16
16
|
*/
|
17
17
|
import { TurboUnauthenticatedConfiguration } from '../types.js';
|
18
18
|
import { TurboUnauthenticatedClient } from './turbo.js';
|
19
|
-
/**
|
20
|
-
* Testing configuration.
|
21
|
-
*/
|
22
|
-
export declare const developmentTurboConfiguration: {
|
23
|
-
paymentServiceConfig: {
|
24
|
-
url: string;
|
25
|
-
};
|
26
|
-
uploadServiceConfig: {
|
27
|
-
url: string;
|
28
|
-
};
|
29
|
-
};
|
30
|
-
/**
|
31
|
-
* Production configuration.
|
32
|
-
*/
|
33
|
-
export declare const defaultTurboConfiguration: {
|
34
|
-
paymentServiceConfig: {
|
35
|
-
url: string;
|
36
|
-
};
|
37
|
-
uploadServiceConfig: {
|
38
|
-
url: string;
|
39
|
-
};
|
40
|
-
};
|
41
19
|
export declare class TurboBaseFactory {
|
42
20
|
static unauthenticated({ paymentServiceConfig, uploadServiceConfig, }?: TurboUnauthenticatedConfiguration): TurboUnauthenticatedClient;
|
43
21
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/common/factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/common/factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAGxD,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,eAAe,CAAC,EACrB,oBAAyB,EACzB,mBAAwB,GACzB,GAAE,iCAAsC;CAY1C"}
|
@@ -15,6 +15,28 @@
|
|
15
15
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16
16
|
*/
|
17
17
|
import { Currency, TurboAbortSignal, TurboAuthenticatedClientConfiguration, TurboAuthenticatedClientInterface, TurboAuthenticatedPaymentServiceInterface, TurboAuthenticatedUploadServiceInterface, TurboBalanceResponse, TurboCheckoutSessionParams, TurboCheckoutSessionResponse, TurboCountriesResponse, TurboCurrenciesResponse, TurboFiatToArResponse, TurboFileFactory, TurboPriceResponse, TurboRatesResponse, TurboSignedDataItemFactory, TurboUnauthenticatedClientConfiguration, TurboUnauthenticatedClientInterface, TurboUnauthenticatedPaymentServiceInterface, TurboUnauthenticatedUploadServiceInterface, TurboUploadDataItemResponse, TurboWincForFiatParams, TurboWincForFiatResponse } from '../types.js';
|
18
|
+
/**
|
19
|
+
* Testing configuration.
|
20
|
+
*/
|
21
|
+
export declare const developmentTurboConfiguration: {
|
22
|
+
paymentServiceConfig: {
|
23
|
+
url: string;
|
24
|
+
};
|
25
|
+
uploadServiceConfig: {
|
26
|
+
url: string;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
/**
|
30
|
+
* Production configuration.
|
31
|
+
*/
|
32
|
+
export declare const defaultTurboConfiguration: {
|
33
|
+
paymentServiceConfig: {
|
34
|
+
url: string;
|
35
|
+
};
|
36
|
+
uploadServiceConfig: {
|
37
|
+
url: string;
|
38
|
+
};
|
39
|
+
};
|
18
40
|
export declare class TurboUnauthenticatedClient implements TurboUnauthenticatedClientInterface {
|
19
41
|
protected paymentService: TurboUnauthenticatedPaymentServiceInterface;
|
20
42
|
protected uploadService: TurboUnauthenticatedUploadServiceInterface;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"turbo.d.ts","sourceRoot":"","sources":["../../../src/common/turbo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,qCAAqC,EACrC,iCAAiC,EACjC,yCAAyC,EACzC,wCAAwC,EACxC,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,0BAA0B,EAC1B,uCAAuC,EACvC,mCAAmC,EACnC,2CAA2C,EAC3C,0CAA0C,EAC1C,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"turbo.d.ts","sourceRoot":"","sources":["../../../src/common/turbo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAA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