@0xsequence/api 0.0.0-20230417133433 → 0.0.0-20230505164841
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 = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
|
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 => {
|
|
@@ -595,7 +593,6 @@ const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
|
595
593
|
class SequenceAPIClient extends API {
|
|
596
594
|
constructor(hostname, jwtAuth) {
|
|
597
595
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
598
|
-
this.jwtAuth = jwtAuth;
|
|
599
596
|
this._fetch = (input, init) => {
|
|
600
597
|
// automatically include jwt auth header to requests
|
|
601
598
|
// if its been set on the api client
|
|
@@ -608,12 +605,16 @@ class SequenceAPIClient extends API {
|
|
|
608
605
|
init.headers = _extends({}, init.headers, headers);
|
|
609
606
|
return fetch(input, init);
|
|
610
607
|
};
|
|
608
|
+
this.jwtAuth = jwtAuth;
|
|
611
609
|
this.fetch = this._fetch;
|
|
612
610
|
}
|
|
613
611
|
}
|
|
614
612
|
|
|
615
613
|
exports.API = API;
|
|
616
614
|
exports.SequenceAPIClient = SequenceAPIClient;
|
|
615
|
+
exports.SmartRampOrderStatus = SmartRampOrderStatus;
|
|
616
|
+
exports.SmartRampTxnStatus = SmartRampTxnStatus;
|
|
617
|
+
exports.SortOrder = SortOrder;
|
|
617
618
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
618
619
|
exports.WebRPCSchemaVersion = WebRPCSchemaVersion;
|
|
619
620
|
exports.WebRPCVersion = WebRPCVersion;
|
|
@@ -37,32 +37,30 @@ const WebRPCSchemaHash = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
|
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 => {
|
|
@@ -595,7 +593,6 @@ const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
|
595
593
|
class SequenceAPIClient extends API {
|
|
596
594
|
constructor(hostname, jwtAuth) {
|
|
597
595
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
598
|
-
this.jwtAuth = jwtAuth;
|
|
599
596
|
this._fetch = (input, init) => {
|
|
600
597
|
// automatically include jwt auth header to requests
|
|
601
598
|
// if its been set on the api client
|
|
@@ -608,12 +605,16 @@ class SequenceAPIClient extends API {
|
|
|
608
605
|
init.headers = _extends({}, init.headers, headers);
|
|
609
606
|
return fetch(input, init);
|
|
610
607
|
};
|
|
608
|
+
this.jwtAuth = jwtAuth;
|
|
611
609
|
this.fetch = this._fetch;
|
|
612
610
|
}
|
|
613
611
|
}
|
|
614
612
|
|
|
615
613
|
exports.API = API;
|
|
616
614
|
exports.SequenceAPIClient = SequenceAPIClient;
|
|
615
|
+
exports.SmartRampOrderStatus = SmartRampOrderStatus;
|
|
616
|
+
exports.SmartRampTxnStatus = SmartRampTxnStatus;
|
|
617
|
+
exports.SortOrder = SortOrder;
|
|
617
618
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
618
619
|
exports.WebRPCSchemaVersion = WebRPCSchemaVersion;
|
|
619
620
|
exports.WebRPCVersion = WebRPCVersion;
|
|
@@ -33,32 +33,30 @@ const WebRPCSchemaHash = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
|
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 => {
|
|
@@ -591,7 +589,6 @@ const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
|
591
589
|
class SequenceAPIClient extends API {
|
|
592
590
|
constructor(hostname, jwtAuth) {
|
|
593
591
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
594
|
-
this.jwtAuth = jwtAuth;
|
|
595
592
|
this._fetch = (input, init) => {
|
|
596
593
|
// automatically include jwt auth header to requests
|
|
597
594
|
// if its been set on the api client
|
|
@@ -604,6 +601,7 @@ class SequenceAPIClient extends API {
|
|
|
604
601
|
init.headers = _extends({}, init.headers, headers);
|
|
605
602
|
return fetch(input, init);
|
|
606
603
|
};
|
|
604
|
+
this.jwtAuth = jwtAuth;
|
|
607
605
|
this.fetch = this._fetch;
|
|
608
606
|
}
|
|
609
607
|
}
|
package/package.json
CHANGED