@dfns/sdk 0.5.6-alpha.6 → 0.5.6
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/generated/auth/client.d.ts +1 -1
- package/generated/auth/client.js +29 -28
- package/generated/auth/types.d.ts +2 -2
- package/generated/exchanges/client.d.ts +1 -1
- package/generated/exchanges/client.js +5 -4
- package/generated/exchanges/types.d.ts +45 -85
- package/generated/networks/client.d.ts +1 -1
- package/generated/networks/types.d.ts +3 -3
- package/generated/permissions/client.d.ts +1 -1
- package/generated/permissions/client.js +6 -5
- package/generated/policies/client.d.ts +1 -1
- package/generated/policies/client.js +5 -4
- package/generated/policies/types.d.ts +45 -45
- package/generated/signers/client.d.ts +1 -1
- package/generated/wallets/client.d.ts +1 -1
- package/generated/wallets/client.js +11 -10
- package/generated/wallets/types.d.ts +34 -34
- package/generated/webhooks/client.d.ts +1 -1
- package/generated/webhooks/client.js +5 -4
- package/package.json +1 -1
- package/types/generic.d.ts +13 -0
- package/types/generic.js +2 -0
- package/utils/fetch.d.ts +6 -3
- package/utils/fetch.js +8 -38
- package/utils/userActionFetch.d.ts +3 -0
- package/utils/userActionFetch.js +41 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PermissionsClient = void 0;
|
|
4
4
|
const fetch_1 = require("../../utils/fetch");
|
|
5
|
+
const userActionFetch_1 = require("../../utils/userActionFetch");
|
|
5
6
|
const url_1 = require("../../utils/url");
|
|
6
7
|
class PermissionsClient {
|
|
7
8
|
constructor(apiOptions) {
|
|
@@ -12,7 +13,7 @@ class PermissionsClient {
|
|
|
12
13
|
path: request ?? {},
|
|
13
14
|
query: {},
|
|
14
15
|
});
|
|
15
|
-
const response = await (0,
|
|
16
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
16
17
|
method: 'PUT',
|
|
17
18
|
body: request.body,
|
|
18
19
|
apiOptions: this.apiOptions,
|
|
@@ -24,7 +25,7 @@ class PermissionsClient {
|
|
|
24
25
|
path: request ?? {},
|
|
25
26
|
query: {},
|
|
26
27
|
});
|
|
27
|
-
const response = await (0,
|
|
28
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
28
29
|
method: 'POST',
|
|
29
30
|
body: request.body,
|
|
30
31
|
apiOptions: this.apiOptions,
|
|
@@ -36,7 +37,7 @@ class PermissionsClient {
|
|
|
36
37
|
path: request ?? {},
|
|
37
38
|
query: {},
|
|
38
39
|
});
|
|
39
|
-
const response = await (0,
|
|
40
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
40
41
|
method: 'POST',
|
|
41
42
|
body: request.body,
|
|
42
43
|
apiOptions: this.apiOptions,
|
|
@@ -48,7 +49,7 @@ class PermissionsClient {
|
|
|
48
49
|
path: request ?? {},
|
|
49
50
|
query: {},
|
|
50
51
|
});
|
|
51
|
-
const response = await (0,
|
|
52
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
52
53
|
method: 'DELETE',
|
|
53
54
|
body: {},
|
|
54
55
|
apiOptions: this.apiOptions,
|
|
@@ -93,7 +94,7 @@ class PermissionsClient {
|
|
|
93
94
|
path: request ?? {},
|
|
94
95
|
query: {},
|
|
95
96
|
});
|
|
96
|
-
const response = await (0,
|
|
97
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
97
98
|
method: 'PUT',
|
|
98
99
|
body: request.body,
|
|
99
100
|
apiOptions: this.apiOptions,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PoliciesClient = void 0;
|
|
4
4
|
const fetch_1 = require("../../utils/fetch");
|
|
5
|
+
const userActionFetch_1 = require("../../utils/userActionFetch");
|
|
5
6
|
const url_1 = require("../../utils/url");
|
|
6
7
|
class PoliciesClient {
|
|
7
8
|
constructor(apiOptions) {
|
|
@@ -12,7 +13,7 @@ class PoliciesClient {
|
|
|
12
13
|
path: request ?? {},
|
|
13
14
|
query: {},
|
|
14
15
|
});
|
|
15
|
-
const response = await (0,
|
|
16
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
16
17
|
method: 'DELETE',
|
|
17
18
|
body: {},
|
|
18
19
|
apiOptions: this.apiOptions,
|
|
@@ -24,7 +25,7 @@ class PoliciesClient {
|
|
|
24
25
|
path: request ?? {},
|
|
25
26
|
query: {},
|
|
26
27
|
});
|
|
27
|
-
const response = await (0,
|
|
28
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
28
29
|
method: 'POST',
|
|
29
30
|
body: request.body,
|
|
30
31
|
apiOptions: this.apiOptions,
|
|
@@ -36,7 +37,7 @@ class PoliciesClient {
|
|
|
36
37
|
path: request ?? {},
|
|
37
38
|
query: {},
|
|
38
39
|
});
|
|
39
|
-
const response = await (0,
|
|
40
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
40
41
|
method: 'POST',
|
|
41
42
|
body: request.body,
|
|
42
43
|
apiOptions: this.apiOptions,
|
|
@@ -92,7 +93,7 @@ class PoliciesClient {
|
|
|
92
93
|
path: request ?? {},
|
|
93
94
|
query: {},
|
|
94
95
|
});
|
|
95
|
-
const response = await (0,
|
|
96
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
96
97
|
method: 'PUT',
|
|
97
98
|
body: request.body,
|
|
98
99
|
apiOptions: this.apiOptions,
|