@blindpay/node 1.0.0 → 1.1.1
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/LICENSE +1 -1
- package/README.md +24 -37
- package/dist/{chunk-HKFAJXJG.mjs → chunk-3QQCDR3E.mjs} +12 -32
- package/dist/{chunk-LUDGZPXY.mjs → chunk-5XJJKYXE.mjs} +9 -16
- package/dist/chunk-64EFLUS3.mjs +106 -0
- package/dist/chunk-B5T7AQLH.mjs +38 -0
- package/dist/{chunk-VKN2AMCW.mjs → chunk-BONN6PYB.mjs} +12 -30
- package/dist/{chunk-M6IYYMRW.mjs → chunk-E7M4CJKR.mjs} +4 -12
- package/dist/chunk-IZYPRCCV.mjs +82 -0
- package/dist/{chunk-QVOSGLUO.mjs → chunk-LRHWT4JU.mjs} +6 -10
- package/dist/chunk-QGNLMN6Z.mjs +49 -0
- package/dist/{chunk-3CZJEDS5.mjs → chunk-RC5NN5UF.mjs} +5 -14
- package/dist/{chunk-GNDAATIJ.mjs → chunk-TBTA7A2P.mjs} +4 -12
- package/dist/{chunk-CNNEROQ7.mjs → chunk-UC57SCKQ.mjs} +6 -17
- package/dist/{chunk-UCAW3RTZ.mjs → chunk-W7NJUABI.mjs} +12 -20
- package/dist/{chunk-ES7RXEM7.mjs → chunk-YPXYUS2X.mjs} +46 -37
- package/dist/index.d.mts +14 -10
- package/dist/index.d.ts +14 -10
- package/dist/index.js +237 -435
- package/dist/index.mjs +19 -19
- package/dist/resources/api-keys/api-keys.test.js +238 -445
- package/dist/resources/api-keys/api-keys.test.mjs +19 -28
- package/dist/resources/api-keys/index.d.mts +20 -20
- package/dist/resources/api-keys/index.d.ts +20 -20
- package/dist/resources/api-keys/index.js +6 -10
- package/dist/resources/api-keys/index.mjs +1 -1
- package/dist/resources/available/available.test.js +235 -433
- package/dist/resources/available/available.test.mjs +16 -16
- package/dist/resources/bank-accounts/bank-accounts.test.js +245 -455
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +26 -38
- package/dist/resources/bank-accounts/index.d.mts +22 -145
- package/dist/resources/bank-accounts/index.d.ts +22 -145
- package/dist/resources/bank-accounts/index.js +102 -184
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/instances/index.d.mts +9 -20
- package/dist/resources/instances/index.d.ts +9 -20
- package/dist/resources/instances/index.js +11 -20
- package/dist/resources/instances/index.mjs +1 -1
- package/dist/resources/instances/instances.test.js +239 -446
- package/dist/resources/instances/instances.test.mjs +20 -29
- package/dist/resources/partner-fees/index.d.mts +8 -18
- package/dist/resources/partner-fees/index.d.ts +8 -18
- package/dist/resources/partner-fees/index.js +5 -14
- package/dist/resources/partner-fees/index.mjs +1 -1
- package/dist/resources/partner-fees/partner-fees.test.js +238 -445
- package/dist/resources/partner-fees/partner-fees.test.mjs +19 -28
- package/dist/resources/payins/index.d.mts +15 -30
- package/dist/resources/payins/index.d.ts +15 -30
- package/dist/resources/payins/index.js +12 -20
- package/dist/resources/payins/index.mjs +1 -1
- package/dist/resources/payins/payins-quotes.test.js +235 -435
- package/dist/resources/payins/payins-quotes.test.mjs +16 -18
- package/dist/resources/payins/payins.test.js +240 -449
- package/dist/resources/payins/payins.test.mjs +21 -32
- package/dist/resources/payins/quotes.d.mts +3 -5
- package/dist/resources/payins/quotes.d.ts +3 -5
- package/dist/resources/payins/quotes.js +4 -12
- package/dist/resources/payins/quotes.mjs +1 -1
- package/dist/resources/payouts/index.d.mts +13 -28
- package/dist/resources/payouts/index.d.ts +13 -28
- package/dist/resources/payouts/index.js +12 -32
- package/dist/resources/payouts/index.mjs +1 -1
- package/dist/resources/payouts/payouts.test.js +239 -449
- package/dist/resources/payouts/payouts.test.mjs +20 -32
- package/dist/resources/quotes/index.d.mts +3 -5
- package/dist/resources/quotes/index.d.ts +3 -5
- package/dist/resources/quotes/index.js +4 -12
- package/dist/resources/quotes/index.mjs +1 -1
- package/dist/resources/quotes/quotes.test.js +235 -435
- package/dist/resources/quotes/quotes.test.mjs +16 -18
- package/dist/resources/receivers/index.d.mts +13 -27
- package/dist/resources/receivers/index.d.ts +13 -27
- package/dist/resources/receivers/index.js +12 -30
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +241 -452
- package/dist/resources/receivers/receivers.test.mjs +22 -35
- package/dist/resources/virtual-accounts/index.d.mts +7 -12
- package/dist/resources/virtual-accounts/index.d.ts +7 -12
- package/dist/resources/virtual-accounts/index.js +9 -16
- package/dist/resources/virtual-accounts/index.mjs +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +238 -441
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +19 -24
- package/dist/resources/wallets/blockchain.d.mts +23 -31
- package/dist/resources/wallets/blockchain.d.ts +23 -31
- package/dist/resources/wallets/blockchain.js +51 -33
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +268 -451
- package/dist/resources/wallets/blockchain.test.mjs +49 -34
- package/dist/resources/wallets/offramp.d.mts +10 -13
- package/dist/resources/wallets/offramp.d.ts +10 -13
- package/dist/resources/wallets/offramp.js +14 -14
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +241 -442
- package/dist/resources/wallets/offramp.test.mjs +22 -25
- package/dist/resources/webhooks/index.d.mts +9 -22
- package/dist/resources/webhooks/index.d.ts +9 -22
- package/dist/resources/webhooks/index.js +6 -17
- package/dist/resources/webhooks/index.mjs +1 -1
- package/dist/resources/webhooks/webhooks.test.js +239 -448
- package/dist/resources/webhooks/webhooks.test.mjs +20 -31
- package/package.json +2 -4
- package/dist/chunk-2DAKB5XK.mjs +0 -212
- package/dist/chunk-GEDDLCJY.mjs +0 -77
- package/dist/chunk-LK3JPQ6I.mjs +0 -49
- package/dist/chunk-LLWEHHKB.mjs +0 -47
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
it
|
|
7
7
|
} from "../../chunk-GCCHFONX.mjs";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-2DAKB5XK.mjs";
|
|
11
|
+
} from "../../chunk-YPXYUS2X.mjs";
|
|
12
|
+
import "../../chunk-IZYPRCCV.mjs";
|
|
13
|
+
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
15
|
+
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
+
import "../../chunk-BONN6PYB.mjs";
|
|
17
|
+
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
+
import "../../chunk-RC5NN5UF.mjs";
|
|
19
|
+
import "../../chunk-W7NJUABI.mjs";
|
|
20
|
+
import "../../chunk-E7M4CJKR.mjs";
|
|
21
|
+
import "../../chunk-3QQCDR3E.mjs";
|
|
22
|
+
import "../../chunk-LRHWT4JU.mjs";
|
|
24
23
|
import "../../chunk-QHMIK7U3.mjs";
|
|
25
|
-
import "../../chunk-
|
|
24
|
+
import "../../chunk-64EFLUS3.mjs";
|
|
25
|
+
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|
|
28
28
|
__commonJS
|
|
@@ -35,7 +35,7 @@ var require_webhooks_test = __commonJS({
|
|
|
35
35
|
init_client();
|
|
36
36
|
describe("Webhooks", () => {
|
|
37
37
|
afterEach(() => fetchMock.resetMocks());
|
|
38
|
-
const blindpay = new
|
|
38
|
+
const blindpay = new BlindPay({ apiKey: "test-key", instanceId: "in_000000000000" });
|
|
39
39
|
describe("Create webhook endpoint", () => {
|
|
40
40
|
it("should create a webhook endpoint", () => __async(null, null, function* () {
|
|
41
41
|
const mockedWebhookEndpoint = {
|
|
@@ -45,7 +45,6 @@ var require_webhooks_test = __commonJS({
|
|
|
45
45
|
headers: { "Content-Type": "application/json" }
|
|
46
46
|
});
|
|
47
47
|
const { data, error } = yield blindpay.instances.webhookEndpoints.create({
|
|
48
|
-
instanceId: "in_000000000000",
|
|
49
48
|
url: "https://example.com/webhook",
|
|
50
49
|
events: ["receiver.new"]
|
|
51
50
|
});
|
|
@@ -69,9 +68,7 @@ var require_webhooks_test = __commonJS({
|
|
|
69
68
|
fetchMock.mockResponseOnce(JSON.stringify(mockedWebhookEndpoints), {
|
|
70
69
|
headers: { "Content-Type": "application/json" }
|
|
71
70
|
});
|
|
72
|
-
const { data, error } = yield blindpay.instances.webhookEndpoints.list(
|
|
73
|
-
instanceId: "in_000000000000"
|
|
74
|
-
});
|
|
71
|
+
const { data, error } = yield blindpay.instances.webhookEndpoints.list();
|
|
75
72
|
globalExpect(error).toBeNull();
|
|
76
73
|
globalExpect(data).toEqual(mockedWebhookEndpoints);
|
|
77
74
|
}));
|
|
@@ -82,10 +79,7 @@ var require_webhooks_test = __commonJS({
|
|
|
82
79
|
fetchMock.mockResponseOnce(JSON.stringify(mockedResponse), {
|
|
83
80
|
headers: { "Content-Type": "application/json" }
|
|
84
81
|
});
|
|
85
|
-
const { data, error } = yield blindpay.instances.webhookEndpoints.delete(
|
|
86
|
-
instanceId: "in_000000000000",
|
|
87
|
-
id: "we_000000000000"
|
|
88
|
-
});
|
|
82
|
+
const { data, error } = yield blindpay.instances.webhookEndpoints.delete("we_000000000000");
|
|
89
83
|
globalExpect(error).toBeNull();
|
|
90
84
|
globalExpect(data).toEqual(mockedResponse);
|
|
91
85
|
}));
|
|
@@ -96,10 +90,7 @@ var require_webhooks_test = __commonJS({
|
|
|
96
90
|
fetchMock.mockResponseOnce(JSON.stringify(mockedWebhookSecret), {
|
|
97
91
|
headers: { "Content-Type": "application/json" }
|
|
98
92
|
});
|
|
99
|
-
const { data, error } = yield blindpay.instances.webhookEndpoints.getSecret(
|
|
100
|
-
instanceId: "in_000000000000",
|
|
101
|
-
id: "we_000000000000"
|
|
102
|
-
});
|
|
93
|
+
const { data, error } = yield blindpay.instances.webhookEndpoints.getSecret("we_000000000000");
|
|
103
94
|
globalExpect(error).toBeNull();
|
|
104
95
|
globalExpect(data).toEqual(mockedWebhookSecret);
|
|
105
96
|
}));
|
|
@@ -110,9 +101,7 @@ var require_webhooks_test = __commonJS({
|
|
|
110
101
|
fetchMock.mockResponseOnce(JSON.stringify(mockedWebhookUrl), {
|
|
111
102
|
headers: { "Content-Type": "application/json" }
|
|
112
103
|
});
|
|
113
|
-
const { data, error } = yield blindpay.instances.webhookEndpoints.getPortalAccessUrl(
|
|
114
|
-
instanceId: "in_000000000000"
|
|
115
|
-
});
|
|
104
|
+
const { data, error } = yield blindpay.instances.webhookEndpoints.getPortalAccessUrl();
|
|
116
105
|
globalExpect(error).toBeNull();
|
|
117
106
|
globalExpect(data).toEqual(mockedWebhookUrl);
|
|
118
107
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blindpay/node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Official Node.js SDK for Blindpay API - Global payments infrastructure",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blindpay",
|
|
@@ -50,9 +50,7 @@
|
|
|
50
50
|
"lint:check": "biome check .",
|
|
51
51
|
"lint:fix": "biome check --write .",
|
|
52
52
|
"test": "vitest run",
|
|
53
|
-
"test:coverage": "vitest run --coverage"
|
|
54
|
-
"ci:publish": "npm publish --access public",
|
|
55
|
-
"ci:version": "changeset version && bun install --no-frozen-lockfile"
|
|
53
|
+
"test:coverage": "vitest run --coverage"
|
|
56
54
|
},
|
|
57
55
|
"exports": {
|
|
58
56
|
".": {
|
package/dist/chunk-2DAKB5XK.mjs
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__esm
|
|
3
|
-
} from "./chunk-OBKEW4AQ.mjs";
|
|
4
|
-
|
|
5
|
-
// src/resources/bank-accounts/index.ts
|
|
6
|
-
function createBankAccountsResource(client) {
|
|
7
|
-
return {
|
|
8
|
-
list({
|
|
9
|
-
instanceId,
|
|
10
|
-
receiverId
|
|
11
|
-
}) {
|
|
12
|
-
return client.get(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`);
|
|
13
|
-
},
|
|
14
|
-
createPix({
|
|
15
|
-
instanceId,
|
|
16
|
-
receiverId,
|
|
17
|
-
name,
|
|
18
|
-
pix_key
|
|
19
|
-
}) {
|
|
20
|
-
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
21
|
-
type: "pix",
|
|
22
|
-
name,
|
|
23
|
-
pix_key
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
createArgentinaTransfers({
|
|
27
|
-
instanceId,
|
|
28
|
-
receiverId,
|
|
29
|
-
beneficiary_name,
|
|
30
|
-
name,
|
|
31
|
-
transfers_account,
|
|
32
|
-
transfers_type
|
|
33
|
-
}) {
|
|
34
|
-
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
35
|
-
type: "transfers_bitso",
|
|
36
|
-
beneficiary_name,
|
|
37
|
-
name,
|
|
38
|
-
transfers_account,
|
|
39
|
-
transfers_type
|
|
40
|
-
});
|
|
41
|
-
},
|
|
42
|
-
createSpei({
|
|
43
|
-
instanceId,
|
|
44
|
-
receiverId,
|
|
45
|
-
beneficiary_name,
|
|
46
|
-
name,
|
|
47
|
-
spei_clabe,
|
|
48
|
-
spei_institution_code,
|
|
49
|
-
spei_protocol
|
|
50
|
-
}) {
|
|
51
|
-
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
52
|
-
type: "spei_bitso",
|
|
53
|
-
beneficiary_name,
|
|
54
|
-
name,
|
|
55
|
-
spei_clabe,
|
|
56
|
-
spei_institution_code,
|
|
57
|
-
spei_protocol
|
|
58
|
-
});
|
|
59
|
-
},
|
|
60
|
-
createColombiaAch({
|
|
61
|
-
instanceId,
|
|
62
|
-
receiverId,
|
|
63
|
-
name,
|
|
64
|
-
account_type,
|
|
65
|
-
ach_cop_beneficiary_first_name,
|
|
66
|
-
ach_cop_beneficiary_last_name,
|
|
67
|
-
ach_cop_document_id,
|
|
68
|
-
ach_cop_document_type,
|
|
69
|
-
ach_cop_email,
|
|
70
|
-
ach_cop_bank_code,
|
|
71
|
-
ach_cop_bank_account
|
|
72
|
-
}) {
|
|
73
|
-
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
74
|
-
type: "ach_cop_bitso",
|
|
75
|
-
name,
|
|
76
|
-
account_type,
|
|
77
|
-
ach_cop_beneficiary_first_name,
|
|
78
|
-
ach_cop_beneficiary_last_name,
|
|
79
|
-
ach_cop_document_id,
|
|
80
|
-
ach_cop_document_type,
|
|
81
|
-
ach_cop_email,
|
|
82
|
-
ach_cop_bank_code,
|
|
83
|
-
ach_cop_bank_account
|
|
84
|
-
});
|
|
85
|
-
},
|
|
86
|
-
createAch({
|
|
87
|
-
instanceId,
|
|
88
|
-
receiverId,
|
|
89
|
-
name,
|
|
90
|
-
account_class,
|
|
91
|
-
account_number,
|
|
92
|
-
account_type,
|
|
93
|
-
beneficiary_name,
|
|
94
|
-
routing_number
|
|
95
|
-
}) {
|
|
96
|
-
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
97
|
-
type: "ach",
|
|
98
|
-
name,
|
|
99
|
-
account_class,
|
|
100
|
-
account_number,
|
|
101
|
-
account_type,
|
|
102
|
-
beneficiary_name,
|
|
103
|
-
routing_number
|
|
104
|
-
});
|
|
105
|
-
},
|
|
106
|
-
createWire({
|
|
107
|
-
instanceId,
|
|
108
|
-
receiverId,
|
|
109
|
-
name,
|
|
110
|
-
account_number,
|
|
111
|
-
beneficiary_name,
|
|
112
|
-
routing_number,
|
|
113
|
-
address_line_1,
|
|
114
|
-
address_line_2,
|
|
115
|
-
city,
|
|
116
|
-
state_province_region,
|
|
117
|
-
country,
|
|
118
|
-
postal_code
|
|
119
|
-
}) {
|
|
120
|
-
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
121
|
-
type: "wire",
|
|
122
|
-
name,
|
|
123
|
-
account_number,
|
|
124
|
-
beneficiary_name,
|
|
125
|
-
routing_number,
|
|
126
|
-
address_line_1,
|
|
127
|
-
address_line_2,
|
|
128
|
-
city,
|
|
129
|
-
state_province_region,
|
|
130
|
-
country,
|
|
131
|
-
postal_code
|
|
132
|
-
});
|
|
133
|
-
},
|
|
134
|
-
createInternationalSwift({
|
|
135
|
-
instanceId,
|
|
136
|
-
receiverId,
|
|
137
|
-
name,
|
|
138
|
-
swift_account_holder_name,
|
|
139
|
-
swift_account_number_iban,
|
|
140
|
-
swift_bank_address_line_1,
|
|
141
|
-
swift_bank_address_line_2,
|
|
142
|
-
swift_bank_city,
|
|
143
|
-
swift_bank_country,
|
|
144
|
-
swift_bank_name,
|
|
145
|
-
swift_bank_postal_code,
|
|
146
|
-
swift_bank_state_province_region,
|
|
147
|
-
swift_beneficiary_address_line_1,
|
|
148
|
-
swift_beneficiary_address_line_2,
|
|
149
|
-
swift_beneficiary_city,
|
|
150
|
-
swift_beneficiary_country,
|
|
151
|
-
swift_beneficiary_postal_code,
|
|
152
|
-
swift_beneficiary_state_province_region,
|
|
153
|
-
swift_code_bic,
|
|
154
|
-
swift_intermediary_bank_account_number_iban,
|
|
155
|
-
swift_intermediary_bank_country,
|
|
156
|
-
swift_intermediary_bank_name,
|
|
157
|
-
swift_intermediary_bank_swift_code_bic
|
|
158
|
-
}) {
|
|
159
|
-
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
160
|
-
type: "international_swift",
|
|
161
|
-
name,
|
|
162
|
-
swift_account_holder_name,
|
|
163
|
-
swift_account_number_iban,
|
|
164
|
-
swift_bank_address_line_1,
|
|
165
|
-
swift_bank_address_line_2,
|
|
166
|
-
swift_bank_city,
|
|
167
|
-
swift_bank_country,
|
|
168
|
-
swift_bank_name,
|
|
169
|
-
swift_bank_postal_code,
|
|
170
|
-
swift_bank_state_province_region,
|
|
171
|
-
swift_beneficiary_address_line_1,
|
|
172
|
-
swift_beneficiary_address_line_2,
|
|
173
|
-
swift_beneficiary_city,
|
|
174
|
-
swift_beneficiary_country,
|
|
175
|
-
swift_beneficiary_postal_code,
|
|
176
|
-
swift_beneficiary_state_province_region,
|
|
177
|
-
swift_code_bic,
|
|
178
|
-
swift_intermediary_bank_account_number_iban,
|
|
179
|
-
swift_intermediary_bank_country,
|
|
180
|
-
swift_intermediary_bank_name,
|
|
181
|
-
swift_intermediary_bank_swift_code_bic
|
|
182
|
-
});
|
|
183
|
-
},
|
|
184
|
-
get({
|
|
185
|
-
instanceId,
|
|
186
|
-
receiverId,
|
|
187
|
-
id
|
|
188
|
-
}) {
|
|
189
|
-
return client.get(
|
|
190
|
-
`/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${id}`
|
|
191
|
-
);
|
|
192
|
-
},
|
|
193
|
-
delete({
|
|
194
|
-
instanceId,
|
|
195
|
-
receiverId,
|
|
196
|
-
id
|
|
197
|
-
}) {
|
|
198
|
-
return client.delete(
|
|
199
|
-
`/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${id}`
|
|
200
|
-
);
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
var init_bank_accounts = __esm({
|
|
205
|
-
"src/resources/bank-accounts/index.ts"() {
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
export {
|
|
210
|
-
createBankAccountsResource,
|
|
211
|
-
init_bank_accounts
|
|
212
|
-
};
|
package/dist/chunk-GEDDLCJY.mjs
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__esm,
|
|
3
|
-
__objRest
|
|
4
|
-
} from "./chunk-OBKEW4AQ.mjs";
|
|
5
|
-
|
|
6
|
-
// src/resources/wallets/blockchain.ts
|
|
7
|
-
function createBlockchainWalletsResource(client) {
|
|
8
|
-
return {
|
|
9
|
-
list({
|
|
10
|
-
instanceId,
|
|
11
|
-
receiverId
|
|
12
|
-
}) {
|
|
13
|
-
return client.get(
|
|
14
|
-
`/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets`
|
|
15
|
-
);
|
|
16
|
-
},
|
|
17
|
-
create(_a) {
|
|
18
|
-
var _b = _a, {
|
|
19
|
-
instanceId
|
|
20
|
-
} = _b, data = __objRest(_b, [
|
|
21
|
-
"instanceId"
|
|
22
|
-
]);
|
|
23
|
-
return client.post(`/instances/${instanceId}/blockchain-wallets`, data);
|
|
24
|
-
},
|
|
25
|
-
getWalletMessage({
|
|
26
|
-
receiverId,
|
|
27
|
-
instanceId
|
|
28
|
-
}) {
|
|
29
|
-
return client.get(
|
|
30
|
-
`/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/sign-message`
|
|
31
|
-
);
|
|
32
|
-
},
|
|
33
|
-
get({
|
|
34
|
-
instanceId,
|
|
35
|
-
receiverId,
|
|
36
|
-
id
|
|
37
|
-
}) {
|
|
38
|
-
return client.get(
|
|
39
|
-
`/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/${id}`
|
|
40
|
-
);
|
|
41
|
-
},
|
|
42
|
-
delete({
|
|
43
|
-
instanceId,
|
|
44
|
-
receiverId,
|
|
45
|
-
id
|
|
46
|
-
}) {
|
|
47
|
-
return client.delete(
|
|
48
|
-
`/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/${id}`
|
|
49
|
-
);
|
|
50
|
-
},
|
|
51
|
-
createAssetTrustline(_c) {
|
|
52
|
-
var _d = _c, {
|
|
53
|
-
instanceId
|
|
54
|
-
} = _d, data = __objRest(_d, [
|
|
55
|
-
"instanceId"
|
|
56
|
-
]);
|
|
57
|
-
return client.post(`/instances/${instanceId}/create-asset-trustline`, data);
|
|
58
|
-
},
|
|
59
|
-
mintUsdbStellar(_e) {
|
|
60
|
-
var _f = _e, {
|
|
61
|
-
instanceId
|
|
62
|
-
} = _f, data = __objRest(_f, [
|
|
63
|
-
"instanceId"
|
|
64
|
-
]);
|
|
65
|
-
return client.post(`/instances/${instanceId}/mint-usdb-stellar`, data);
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
var init_blockchain = __esm({
|
|
70
|
-
"src/resources/wallets/blockchain.ts"() {
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
export {
|
|
75
|
-
createBlockchainWalletsResource,
|
|
76
|
-
init_blockchain
|
|
77
|
-
};
|
package/dist/chunk-LK3JPQ6I.mjs
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__esm,
|
|
3
|
-
__objRest
|
|
4
|
-
} from "./chunk-OBKEW4AQ.mjs";
|
|
5
|
-
|
|
6
|
-
// src/resources/wallets/offramp.ts
|
|
7
|
-
function createOfframpWalletsResource(client) {
|
|
8
|
-
return {
|
|
9
|
-
list({
|
|
10
|
-
instanceId
|
|
11
|
-
}) {
|
|
12
|
-
return client.get(`/instances/${instanceId}/offramp_wallets`);
|
|
13
|
-
},
|
|
14
|
-
create(_a) {
|
|
15
|
-
var _b = _a, {
|
|
16
|
-
receiverId,
|
|
17
|
-
instanceId,
|
|
18
|
-
bankAccountId
|
|
19
|
-
} = _b, data = __objRest(_b, [
|
|
20
|
-
"receiverId",
|
|
21
|
-
"instanceId",
|
|
22
|
-
"bankAccountId"
|
|
23
|
-
]);
|
|
24
|
-
return client.post(
|
|
25
|
-
`/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${bankAccountId}/offramp_wallets`,
|
|
26
|
-
data
|
|
27
|
-
);
|
|
28
|
-
},
|
|
29
|
-
get({
|
|
30
|
-
receiverId,
|
|
31
|
-
instanceId,
|
|
32
|
-
bankAccountId,
|
|
33
|
-
id
|
|
34
|
-
}) {
|
|
35
|
-
return client.get(
|
|
36
|
-
`/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${bankAccountId}/offramp_wallets/${id}`
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
var init_offramp = __esm({
|
|
42
|
-
"src/resources/wallets/offramp.ts"() {
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
export {
|
|
47
|
-
createOfframpWalletsResource,
|
|
48
|
-
init_offramp
|
|
49
|
-
};
|
package/dist/chunk-LLWEHHKB.mjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__esm,
|
|
3
|
-
__objRest
|
|
4
|
-
} from "./chunk-OBKEW4AQ.mjs";
|
|
5
|
-
|
|
6
|
-
// src/resources/instances/index.ts
|
|
7
|
-
function createInstancesResource(client) {
|
|
8
|
-
return {
|
|
9
|
-
getMembers({
|
|
10
|
-
instanceId
|
|
11
|
-
}) {
|
|
12
|
-
return client.get(`/instances/${instanceId}/members`);
|
|
13
|
-
},
|
|
14
|
-
update(_a) {
|
|
15
|
-
var _b = _a, { instanceId } = _b, data = __objRest(_b, ["instanceId"]);
|
|
16
|
-
return client.put(`/instances/${instanceId}`, data);
|
|
17
|
-
},
|
|
18
|
-
delete({ instanceId }) {
|
|
19
|
-
return client.delete(`/instances/${instanceId}`);
|
|
20
|
-
},
|
|
21
|
-
deleteMember({
|
|
22
|
-
instanceId,
|
|
23
|
-
id
|
|
24
|
-
}) {
|
|
25
|
-
return client.delete(`/instances/${instanceId}/members/${id}`);
|
|
26
|
-
},
|
|
27
|
-
updateMemberRole(_c) {
|
|
28
|
-
var _d = _c, {
|
|
29
|
-
instanceId,
|
|
30
|
-
id
|
|
31
|
-
} = _d, data = __objRest(_d, [
|
|
32
|
-
"instanceId",
|
|
33
|
-
"id"
|
|
34
|
-
]);
|
|
35
|
-
return client.put(`/instances/${instanceId}/members/${id}`, data);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
var init_instances = __esm({
|
|
40
|
-
"src/resources/instances/index.ts"() {
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export {
|
|
45
|
-
createInstancesResource,
|
|
46
|
-
init_instances
|
|
47
|
-
};
|