@0xsequence/api 0.43.34 → 1.0.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/0xsequence-api.cjs.dev.js +13 -12
- package/dist/0xsequence-api.cjs.prod.js +13 -12
- package/dist/0xsequence-api.esm.js +10 -12
- package/package.json +1 -1
|
@@ -37,32 +37,30 @@ const WebRPCSchemaHash = "e4aaaf3a3c07a1f339226fcac3b8addcb3120c7b";
|
|
|
37
37
|
// Types
|
|
38
38
|
//
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
(function (SmartRampOrderStatus) {
|
|
40
|
+
let SmartRampOrderStatus = /*#__PURE__*/function (SmartRampOrderStatus) {
|
|
42
41
|
SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
|
|
43
42
|
SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
|
|
44
43
|
SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
|
|
45
44
|
SmartRampOrderStatus["FAILED"] = "FAILED";
|
|
46
45
|
SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
return SmartRampOrderStatus;
|
|
47
|
+
}({});
|
|
48
|
+
let SmartRampTxnStatus = /*#__PURE__*/function (SmartRampTxnStatus) {
|
|
50
49
|
SmartRampTxnStatus["UNKNOWN"] = "UNKNOWN";
|
|
51
50
|
SmartRampTxnStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
52
51
|
SmartRampTxnStatus["FAILED"] = "FAILED";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
return SmartRampTxnStatus;
|
|
53
|
+
}({});
|
|
54
|
+
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
56
55
|
SortOrder["DESC"] = "DESC";
|
|
57
56
|
SortOrder["ASC"] = "ASC";
|
|
58
|
-
|
|
57
|
+
return SortOrder;
|
|
58
|
+
}({});
|
|
59
59
|
//
|
|
60
60
|
// Client
|
|
61
61
|
//
|
|
62
62
|
class API {
|
|
63
63
|
constructor(hostname, fetch) {
|
|
64
|
-
this.hostname = void 0;
|
|
65
|
-
this.fetch = void 0;
|
|
66
64
|
this.path = '/rpc/API/';
|
|
67
65
|
this.ping = headers => {
|
|
68
66
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -604,7 +602,6 @@ const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
|
604
602
|
class SequenceAPIClient extends API {
|
|
605
603
|
constructor(hostname, jwtAuth) {
|
|
606
604
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
607
|
-
this.jwtAuth = jwtAuth;
|
|
608
605
|
this._fetch = (input, init) => {
|
|
609
606
|
// automatically include jwt auth header to requests
|
|
610
607
|
// if its been set on the api client
|
|
@@ -617,12 +614,16 @@ class SequenceAPIClient extends API {
|
|
|
617
614
|
init.headers = _extends({}, init.headers, headers);
|
|
618
615
|
return fetch(input, init);
|
|
619
616
|
};
|
|
617
|
+
this.jwtAuth = jwtAuth;
|
|
620
618
|
this.fetch = this._fetch;
|
|
621
619
|
}
|
|
622
620
|
}
|
|
623
621
|
|
|
624
622
|
exports.API = API;
|
|
625
623
|
exports.SequenceAPIClient = SequenceAPIClient;
|
|
624
|
+
exports.SmartRampOrderStatus = SmartRampOrderStatus;
|
|
625
|
+
exports.SmartRampTxnStatus = SmartRampTxnStatus;
|
|
626
|
+
exports.SortOrder = SortOrder;
|
|
626
627
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
627
628
|
exports.WebRPCSchemaVersion = WebRPCSchemaVersion;
|
|
628
629
|
exports.WebRPCVersion = WebRPCVersion;
|
|
@@ -37,32 +37,30 @@ const WebRPCSchemaHash = "e4aaaf3a3c07a1f339226fcac3b8addcb3120c7b";
|
|
|
37
37
|
// Types
|
|
38
38
|
//
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
(function (SmartRampOrderStatus) {
|
|
40
|
+
let SmartRampOrderStatus = /*#__PURE__*/function (SmartRampOrderStatus) {
|
|
42
41
|
SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
|
|
43
42
|
SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
|
|
44
43
|
SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
|
|
45
44
|
SmartRampOrderStatus["FAILED"] = "FAILED";
|
|
46
45
|
SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
return SmartRampOrderStatus;
|
|
47
|
+
}({});
|
|
48
|
+
let SmartRampTxnStatus = /*#__PURE__*/function (SmartRampTxnStatus) {
|
|
50
49
|
SmartRampTxnStatus["UNKNOWN"] = "UNKNOWN";
|
|
51
50
|
SmartRampTxnStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
52
51
|
SmartRampTxnStatus["FAILED"] = "FAILED";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
return SmartRampTxnStatus;
|
|
53
|
+
}({});
|
|
54
|
+
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
56
55
|
SortOrder["DESC"] = "DESC";
|
|
57
56
|
SortOrder["ASC"] = "ASC";
|
|
58
|
-
|
|
57
|
+
return SortOrder;
|
|
58
|
+
}({});
|
|
59
59
|
//
|
|
60
60
|
// Client
|
|
61
61
|
//
|
|
62
62
|
class API {
|
|
63
63
|
constructor(hostname, fetch) {
|
|
64
|
-
this.hostname = void 0;
|
|
65
|
-
this.fetch = void 0;
|
|
66
64
|
this.path = '/rpc/API/';
|
|
67
65
|
this.ping = headers => {
|
|
68
66
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -604,7 +602,6 @@ const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
|
604
602
|
class SequenceAPIClient extends API {
|
|
605
603
|
constructor(hostname, jwtAuth) {
|
|
606
604
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
607
|
-
this.jwtAuth = jwtAuth;
|
|
608
605
|
this._fetch = (input, init) => {
|
|
609
606
|
// automatically include jwt auth header to requests
|
|
610
607
|
// if its been set on the api client
|
|
@@ -617,12 +614,16 @@ class SequenceAPIClient extends API {
|
|
|
617
614
|
init.headers = _extends({}, init.headers, headers);
|
|
618
615
|
return fetch(input, init);
|
|
619
616
|
};
|
|
617
|
+
this.jwtAuth = jwtAuth;
|
|
620
618
|
this.fetch = this._fetch;
|
|
621
619
|
}
|
|
622
620
|
}
|
|
623
621
|
|
|
624
622
|
exports.API = API;
|
|
625
623
|
exports.SequenceAPIClient = SequenceAPIClient;
|
|
624
|
+
exports.SmartRampOrderStatus = SmartRampOrderStatus;
|
|
625
|
+
exports.SmartRampTxnStatus = SmartRampTxnStatus;
|
|
626
|
+
exports.SortOrder = SortOrder;
|
|
626
627
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
627
628
|
exports.WebRPCSchemaVersion = WebRPCSchemaVersion;
|
|
628
629
|
exports.WebRPCVersion = WebRPCVersion;
|
|
@@ -33,32 +33,30 @@ const WebRPCSchemaHash = "e4aaaf3a3c07a1f339226fcac3b8addcb3120c7b";
|
|
|
33
33
|
// Types
|
|
34
34
|
//
|
|
35
35
|
|
|
36
|
-
let SmartRampOrderStatus
|
|
37
|
-
(function (SmartRampOrderStatus) {
|
|
36
|
+
let SmartRampOrderStatus = /*#__PURE__*/function (SmartRampOrderStatus) {
|
|
38
37
|
SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
|
|
39
38
|
SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
|
|
40
39
|
SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
|
|
41
40
|
SmartRampOrderStatus["FAILED"] = "FAILED";
|
|
42
41
|
SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
return SmartRampOrderStatus;
|
|
43
|
+
}({});
|
|
44
|
+
let SmartRampTxnStatus = /*#__PURE__*/function (SmartRampTxnStatus) {
|
|
46
45
|
SmartRampTxnStatus["UNKNOWN"] = "UNKNOWN";
|
|
47
46
|
SmartRampTxnStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
48
47
|
SmartRampTxnStatus["FAILED"] = "FAILED";
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
return SmartRampTxnStatus;
|
|
49
|
+
}({});
|
|
50
|
+
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
52
51
|
SortOrder["DESC"] = "DESC";
|
|
53
52
|
SortOrder["ASC"] = "ASC";
|
|
54
|
-
|
|
53
|
+
return SortOrder;
|
|
54
|
+
}({});
|
|
55
55
|
//
|
|
56
56
|
// Client
|
|
57
57
|
//
|
|
58
58
|
class API {
|
|
59
59
|
constructor(hostname, fetch) {
|
|
60
|
-
this.hostname = void 0;
|
|
61
|
-
this.fetch = void 0;
|
|
62
60
|
this.path = '/rpc/API/';
|
|
63
61
|
this.ping = headers => {
|
|
64
62
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -600,7 +598,6 @@ const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
|
600
598
|
class SequenceAPIClient extends API {
|
|
601
599
|
constructor(hostname, jwtAuth) {
|
|
602
600
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
603
|
-
this.jwtAuth = jwtAuth;
|
|
604
601
|
this._fetch = (input, init) => {
|
|
605
602
|
// automatically include jwt auth header to requests
|
|
606
603
|
// if its been set on the api client
|
|
@@ -613,6 +610,7 @@ class SequenceAPIClient extends API {
|
|
|
613
610
|
init.headers = _extends({}, init.headers, headers);
|
|
614
611
|
return fetch(input, init);
|
|
615
612
|
};
|
|
613
|
+
this.jwtAuth = jwtAuth;
|
|
616
614
|
this.fetch = this._fetch;
|
|
617
615
|
}
|
|
618
616
|
}
|
package/package.json
CHANGED