increase 0.8.0 → 0.9.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/CHANGELOG.md +63 -0
- package/README.md +37 -13
- package/_shims/ReadableStream.d.ts +38 -0
- package/_shims/ReadableStream.js +5 -0
- package/_shims/ReadableStream.mjs +7 -0
- package/_shims/ReadableStream.node.d.ts +6 -0
- package/_shims/ReadableStream.node.d.ts.map +1 -0
- package/_shims/ReadableStream.node.js +14 -0
- package/_shims/ReadableStream.node.js.map +1 -0
- package/_shims/ReadableStream.node.mjs +3 -0
- package/_shims/ReadableStream.node.mjs.map +1 -0
- package/_shims/fetch.d.ts +8 -1
- package/_shims/fetch.node.d.ts +11 -1
- package/core.d.ts +85 -27
- package/core.d.ts.map +1 -1
- package/core.js +208 -51
- package/core.js.map +1 -1
- package/core.mjs +194 -51
- package/core.mjs.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.js +12 -3
- package/error.js.map +1 -1
- package/error.mjs +12 -3
- package/error.mjs.map +1 -1
- package/index.d.mts +6 -1
- package/index.d.ts +6 -1
- package/index.d.ts.map +1 -1
- package/index.js +11 -8
- package/index.js.map +1 -1
- package/index.mjs +11 -8
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.ts +2 -2
- package/pagination.d.ts.map +1 -1
- package/pagination.js +4 -4
- package/pagination.js.map +1 -1
- package/pagination.mjs +4 -4
- package/pagination.mjs.map +1 -1
- package/resources/account-numbers.d.ts +8 -8
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-numbers.js.map +1 -1
- package/resources/account-numbers.mjs.map +1 -1
- package/resources/account-statements.d.ts +3 -6
- package/resources/account-statements.d.ts.map +1 -1
- package/resources/account-statements.js.map +1 -1
- package/resources/account-statements.mjs.map +1 -1
- package/resources/account-transfers.d.ts +6 -18
- package/resources/account-transfers.d.ts.map +1 -1
- package/resources/account-transfers.js.map +1 -1
- package/resources/account-transfers.mjs.map +1 -1
- package/resources/accounts.d.ts +6 -6
- package/resources/accounts.d.ts.map +1 -1
- package/resources/ach-prenotifications.d.ts +51 -7
- package/resources/ach-prenotifications.d.ts.map +1 -1
- package/resources/ach-prenotifications.js.map +1 -1
- package/resources/ach-prenotifications.mjs.map +1 -1
- package/resources/ach-transfers.d.ts +16 -9
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/ach-transfers.js.map +1 -1
- package/resources/ach-transfers.mjs.map +1 -1
- package/resources/balance-lookups.d.ts +1 -1
- package/resources/balance-lookups.d.ts.map +1 -1
- package/resources/bookkeeping-accounts.d.ts +3 -3
- package/resources/bookkeeping-accounts.d.ts.map +1 -1
- package/resources/bookkeeping-entries.d.ts +2 -2
- package/resources/bookkeeping-entries.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts +1 -1
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/card-disputes.d.ts +7 -7
- package/resources/card-disputes.d.ts.map +1 -1
- package/resources/card-disputes.js.map +1 -1
- package/resources/card-disputes.mjs.map +1 -1
- package/resources/card-profiles.d.ts +32 -11
- package/resources/card-profiles.d.ts.map +1 -1
- package/resources/card-profiles.js +6 -0
- package/resources/card-profiles.js.map +1 -1
- package/resources/card-profiles.mjs +6 -0
- package/resources/card-profiles.mjs.map +1 -1
- package/resources/card-purchase-supplements.d.ts +270 -0
- package/resources/card-purchase-supplements.d.ts.map +1 -0
- package/resources/card-purchase-supplements.js +28 -0
- package/resources/card-purchase-supplements.js.map +1 -0
- package/resources/card-purchase-supplements.mjs +21 -0
- package/resources/card-purchase-supplements.mjs.map +1 -0
- package/resources/cards.d.ts +6 -13
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/check-deposits.d.ts +7 -7
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-deposits.js.map +1 -1
- package/resources/check-deposits.mjs.map +1 -1
- package/resources/check-transfers.d.ts +18 -11
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +25 -28
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/digital-wallet-tokens.d.ts +3 -6
- package/resources/digital-wallet-tokens.d.ts.map +1 -1
- package/resources/digital-wallet-tokens.js.map +1 -1
- package/resources/digital-wallet-tokens.mjs.map +1 -1
- package/resources/documents.d.ts +3 -3
- package/resources/documents.d.ts.map +1 -1
- package/resources/entities/beneficial-owners.d.ts +215 -0
- package/resources/entities/beneficial-owners.d.ts.map +1 -0
- package/resources/entities/beneficial-owners.js +18 -0
- package/resources/entities/beneficial-owners.js.map +1 -0
- package/resources/entities/beneficial-owners.mjs +12 -0
- package/resources/entities/beneficial-owners.mjs.map +1 -0
- package/resources/entities/entities.d.ts +15 -11
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js +9 -0
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs +9 -0
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/index.d.ts +1 -0
- package/resources/entities/index.d.ts.map +1 -1
- package/resources/entities/index.js +8 -0
- package/resources/entities/index.js.map +1 -1
- package/resources/entities/index.mjs +1 -0
- package/resources/entities/index.mjs.map +1 -1
- package/resources/entities/supplemental-documents.d.ts +2 -2
- package/resources/entities/supplemental-documents.d.ts.map +1 -1
- package/resources/event-subscriptions.d.ts +5 -8
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/event-subscriptions.js.map +1 -1
- package/resources/event-subscriptions.mjs.map +1 -1
- package/resources/events.d.ts +7 -5
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/exports.d.ts +4 -4
- package/resources/exports.d.ts.map +1 -1
- package/resources/external-accounts.d.ts +5 -11
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/files.d.ts +9 -4
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -2
- package/resources/files.mjs.map +1 -1
- package/resources/groups.d.ts +1 -1
- package/resources/groups.d.ts.map +1 -1
- package/resources/inbound-ach-transfer-returns.d.ts +6 -4
- package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
- package/resources/inbound-ach-transfer-returns.js.map +1 -1
- package/resources/inbound-ach-transfer-returns.mjs.map +1 -1
- package/resources/inbound-wire-drawdown-requests.d.ts +5 -3
- package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/inbound-wire-drawdown-requests.js.map +1 -1
- package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +18 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/limits.d.ts +5 -9
- package/resources/limits.d.ts.map +1 -1
- package/resources/limits.js.map +1 -1
- package/resources/limits.mjs.map +1 -1
- package/resources/oauth-connections.d.ts +3 -6
- package/resources/oauth-connections.d.ts.map +1 -1
- package/resources/oauth-connections.js.map +1 -1
- package/resources/oauth-connections.mjs.map +1 -1
- package/resources/pending-transactions.d.ts +32 -37
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/programs.d.ts +3 -3
- package/resources/programs.d.ts.map +1 -1
- package/resources/real-time-decisions.d.ts +2 -5
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/real-time-payments-transfers.d.ts +6 -4
- package/resources/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/real-time-payments-transfers.js.map +1 -1
- package/resources/real-time-payments-transfers.mjs.map +1 -1
- package/resources/routing-numbers.d.ts +4 -1
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/routing-numbers.js.map +1 -1
- package/resources/routing-numbers.mjs.map +1 -1
- package/resources/simulations/account-statements.d.ts +1 -1
- package/resources/simulations/account-statements.d.ts.map +1 -1
- package/resources/simulations/account-transfers.d.ts +1 -1
- package/resources/simulations/account-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +1063 -157
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-disputes.d.ts +1 -1
- package/resources/simulations/card-disputes.d.ts.map +1 -1
- package/resources/simulations/card-profiles.d.ts +1 -4
- package/resources/simulations/card-profiles.d.ts.map +1 -1
- package/resources/simulations/card-profiles.js.map +1 -1
- package/resources/simulations/card-profiles.mjs.map +1 -1
- package/resources/simulations/card-refunds.d.ts +1 -1
- package/resources/simulations/card-refunds.d.ts.map +1 -1
- package/resources/simulations/cards.d.ts +53 -58
- package/resources/simulations/cards.d.ts.map +1 -1
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/check-deposits.d.ts +3 -12
- package/resources/simulations/check-deposits.d.ts.map +1 -1
- package/resources/simulations/check-transfers.d.ts +2 -2
- package/resources/simulations/check-transfers.d.ts.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.d.ts +1 -1
- package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
- package/resources/simulations/documents.d.ts +1 -4
- package/resources/simulations/documents.d.ts.map +1 -1
- package/resources/simulations/documents.js.map +1 -1
- package/resources/simulations/documents.mjs.map +1 -1
- package/resources/simulations/inbound-funds-holds.d.ts +5 -1
- package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
- package/resources/simulations/inbound-funds-holds.js.map +1 -1
- package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/simulations/interest-payments.d.ts +1047 -127
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/programs.d.ts +1 -4
- package/resources/simulations/programs.d.ts.map +1 -1
- package/resources/simulations/programs.js.map +1 -1
- package/resources/simulations/programs.mjs.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +1062 -153
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +1039 -127
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/transactions.d.ts +1044 -130
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-drawdown-requests.d.ts +4 -4
- package/resources/wire-drawdown-requests.d.ts.map +1 -1
- package/resources/wire-transfers.d.ts +11 -11
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/_shims/ReadableStream.d.ts +38 -0
- package/src/_shims/ReadableStream.js +5 -0
- package/src/_shims/ReadableStream.mjs +7 -0
- package/src/_shims/ReadableStream.node.ts +6 -0
- package/src/_shims/fetch.d.ts +8 -1
- package/src/_shims/fetch.deno.ts +23 -0
- package/src/_shims/fetch.node.d.ts +11 -1
- package/src/_shims/formdata.deno.ts +16 -0
- package/src/core.ts +270 -74
- package/src/error.ts +11 -1
- package/src/index.ts +16 -9
- package/src/pagination.ts +5 -5
- package/src/resources/account-numbers.ts +10 -10
- package/src/resources/account-statements.ts +5 -8
- package/src/resources/account-transfers.ts +8 -20
- package/src/resources/accounts.ts +8 -8
- package/src/resources/ach-prenotifications.ts +57 -9
- package/src/resources/ach-transfers.ts +19 -11
- package/src/resources/balance-lookups.ts +2 -2
- package/src/resources/bookkeeping-accounts.ts +5 -5
- package/src/resources/bookkeeping-entries.ts +4 -4
- package/src/resources/bookkeeping-entry-sets.ts +2 -2
- package/src/resources/card-disputes.ts +9 -9
- package/src/resources/card-profiles.ts +39 -13
- package/src/resources/card-purchase-supplements.ts +331 -0
- package/src/resources/cards.ts +8 -15
- package/src/resources/check-deposits.ts +9 -9
- package/src/resources/check-transfers.ts +21 -13
- package/src/resources/declined-transactions.ts +27 -30
- package/src/resources/digital-wallet-tokens.ts +5 -8
- package/src/resources/documents.ts +5 -5
- package/src/resources/entities/beneficial-owners.ts +251 -0
- package/src/resources/entities/entities.ts +21 -13
- package/src/resources/entities/index.ts +1 -0
- package/src/resources/entities/supplemental-documents.ts +3 -3
- package/src/resources/event-subscriptions.ts +7 -10
- package/src/resources/events.ts +9 -7
- package/src/resources/exports.ts +6 -6
- package/src/resources/external-accounts.ts +7 -13
- package/src/resources/files.ts +12 -7
- package/src/resources/groups.ts +2 -2
- package/src/resources/inbound-ach-transfer-returns.ts +8 -6
- package/src/resources/inbound-wire-drawdown-requests.ts +7 -5
- package/src/resources/index.ts +6 -0
- package/src/resources/limits.ts +7 -11
- package/src/resources/oauth-connections.ts +5 -8
- package/src/resources/pending-transactions.ts +35 -39
- package/src/resources/programs.ts +5 -5
- package/src/resources/real-time-decisions.ts +3 -6
- package/src/resources/real-time-payments-transfers.ts +8 -6
- package/src/resources/routing-numbers.ts +5 -2
- package/src/resources/simulations/account-statements.ts +2 -2
- package/src/resources/simulations/account-transfers.ts +1 -1
- package/src/resources/simulations/ach-transfers.ts +1200 -160
- package/src/resources/simulations/card-disputes.ts +2 -2
- package/src/resources/simulations/card-profiles.ts +1 -4
- package/src/resources/simulations/card-refunds.ts +2 -2
- package/src/resources/simulations/cards.ts +55 -59
- package/src/resources/simulations/check-deposits.ts +3 -3
- package/src/resources/simulations/check-transfers.ts +2 -2
- package/src/resources/simulations/digital-wallet-token-requests.ts +2 -2
- package/src/resources/simulations/documents.ts +2 -5
- package/src/resources/simulations/inbound-funds-holds.ts +7 -2
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +2 -2
- package/src/resources/simulations/interest-payments.ts +1186 -130
- package/src/resources/simulations/programs.ts +2 -5
- package/src/resources/simulations/real-time-payments-transfers.ts +1199 -156
- package/src/resources/simulations/simulations.ts +1 -1
- package/src/resources/simulations/wire-transfers.ts +1176 -130
- package/src/resources/transactions.ts +1182 -134
- package/src/resources/wire-drawdown-requests.ts +6 -6
- package/src/resources/wire-transfers.ts +13 -13
- package/src/uploads.ts +7 -6
- package/src/version.ts +1 -1
- package/uploads.d.ts +5 -4
- package/uploads.d.ts.map +1 -1
- package/uploads.js +2 -2
- package/uploads.js.map +1 -1
- package/uploads.mjs +2 -2
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class WireDrawdownRequests extends APIResource {
|
|
@@ -13,7 +13,7 @@ export class WireDrawdownRequests extends APIResource {
|
|
|
13
13
|
create(
|
|
14
14
|
body: WireDrawdownRequestCreateParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
|
-
):
|
|
16
|
+
): Core.APIPromise<WireDrawdownRequest> {
|
|
17
17
|
return this.post('/wire_drawdown_requests', { body, ...options });
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ export class WireDrawdownRequests extends APIResource {
|
|
|
23
23
|
retrieve(
|
|
24
24
|
wireDrawdownRequestId: string,
|
|
25
25
|
options?: Core.RequestOptions,
|
|
26
|
-
):
|
|
26
|
+
): Core.APIPromise<WireDrawdownRequest> {
|
|
27
27
|
return this.get(`/wire_drawdown_requests/${wireDrawdownRequestId}`, options);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -33,12 +33,12 @@ export class WireDrawdownRequests extends APIResource {
|
|
|
33
33
|
list(
|
|
34
34
|
query?: WireDrawdownRequestListParams,
|
|
35
35
|
options?: Core.RequestOptions,
|
|
36
|
-
): Core.PagePromise<WireDrawdownRequestsPage>;
|
|
37
|
-
list(options?: Core.RequestOptions): Core.PagePromise<WireDrawdownRequestsPage>;
|
|
36
|
+
): Core.PagePromise<WireDrawdownRequestsPage, WireDrawdownRequest>;
|
|
37
|
+
list(options?: Core.RequestOptions): Core.PagePromise<WireDrawdownRequestsPage, WireDrawdownRequest>;
|
|
38
38
|
list(
|
|
39
39
|
query: WireDrawdownRequestListParams | Core.RequestOptions = {},
|
|
40
40
|
options?: Core.RequestOptions,
|
|
41
|
-
): Core.PagePromise<WireDrawdownRequestsPage> {
|
|
41
|
+
): Core.PagePromise<WireDrawdownRequestsPage, WireDrawdownRequest> {
|
|
42
42
|
if (isRequestOptions(query)) {
|
|
43
43
|
return this.list({}, query);
|
|
44
44
|
}
|
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class WireTransfers extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Create a Wire Transfer
|
|
12
12
|
*/
|
|
13
|
-
create(
|
|
14
|
-
body: WireTransferCreateParams,
|
|
15
|
-
options?: Core.RequestOptions,
|
|
16
|
-
): Promise<Core.APIResponse<WireTransfer>> {
|
|
13
|
+
create(body: WireTransferCreateParams, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
|
|
17
14
|
return this.post('/wire_transfers', { body, ...options });
|
|
18
15
|
}
|
|
19
16
|
|
|
20
17
|
/**
|
|
21
18
|
* Retrieve a Wire Transfer
|
|
22
19
|
*/
|
|
23
|
-
retrieve(wireTransferId: string, options?: Core.RequestOptions):
|
|
20
|
+
retrieve(wireTransferId: string, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
|
|
24
21
|
return this.get(`/wire_transfers/${wireTransferId}`, options);
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
/**
|
|
28
25
|
* List Wire Transfers
|
|
29
26
|
*/
|
|
30
|
-
list(
|
|
31
|
-
|
|
27
|
+
list(
|
|
28
|
+
query?: WireTransferListParams,
|
|
29
|
+
options?: Core.RequestOptions,
|
|
30
|
+
): Core.PagePromise<WireTransfersPage, WireTransfer>;
|
|
31
|
+
list(options?: Core.RequestOptions): Core.PagePromise<WireTransfersPage, WireTransfer>;
|
|
32
32
|
list(
|
|
33
33
|
query: WireTransferListParams | Core.RequestOptions = {},
|
|
34
34
|
options?: Core.RequestOptions,
|
|
35
|
-
): Core.PagePromise<WireTransfersPage> {
|
|
35
|
+
): Core.PagePromise<WireTransfersPage, WireTransfer> {
|
|
36
36
|
if (isRequestOptions(query)) {
|
|
37
37
|
return this.list({}, query);
|
|
38
38
|
}
|
|
@@ -42,14 +42,14 @@ export class WireTransfers extends APIResource {
|
|
|
42
42
|
/**
|
|
43
43
|
* Approve a Wire Transfer
|
|
44
44
|
*/
|
|
45
|
-
approve(wireTransferId: string, options?: Core.RequestOptions):
|
|
45
|
+
approve(wireTransferId: string, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
|
|
46
46
|
return this.post(`/wire_transfers/${wireTransferId}/approve`, options);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Cancel a pending Wire Transfer
|
|
51
51
|
*/
|
|
52
|
-
cancel(wireTransferId: string, options?: Core.RequestOptions):
|
|
52
|
+
cancel(wireTransferId: string, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
|
|
53
53
|
return this.post(`/wire_transfers/${wireTransferId}/cancel`, options);
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -59,7 +59,7 @@ export class WireTransfers extends APIResource {
|
|
|
59
59
|
* [Transaction](#transaction) to account for the returned funds. This Wire
|
|
60
60
|
* Transfer must first have a `status` of `complete`.'
|
|
61
61
|
*/
|
|
62
|
-
reverse(wireTransferId: string, options?: Core.RequestOptions):
|
|
62
|
+
reverse(wireTransferId: string, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
|
|
63
63
|
return this.post(`/simulations/wire_transfers/${wireTransferId}/reverse`, options);
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -68,7 +68,7 @@ export class WireTransfers extends APIResource {
|
|
|
68
68
|
* Reserve. This transfer must first have a `status` of `pending_approval` or
|
|
69
69
|
* `pending_creating`.
|
|
70
70
|
*/
|
|
71
|
-
submit(wireTransferId: string, options?: Core.RequestOptions):
|
|
71
|
+
submit(wireTransferId: string, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
|
|
72
72
|
return this.post(`/simulations/wire_transfers/${wireTransferId}/submit`, options);
|
|
73
73
|
}
|
|
74
74
|
}
|
package/src/uploads.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type RequestOptions } from './core';
|
|
2
2
|
import { type Readable } from './_shims/node-readable';
|
|
3
3
|
import { type BodyInit } from './_shims/fetch.js';
|
|
4
|
-
import { FormData, File, type FilePropertyBag } from './_shims/formdata.js';
|
|
4
|
+
import { FormData, File, type Blob, type FilePropertyBag } from './_shims/formdata.js';
|
|
5
5
|
import { getMultipartRequestOptions } from './_shims/getMultipartRequestOptions';
|
|
6
6
|
import { fileFromPath } from './_shims/fileFromPath';
|
|
7
7
|
import { type FsReadStream, isFsReadStream } from './_shims/node-readable';
|
|
8
8
|
|
|
9
9
|
export { fileFromPath };
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | Uint8Array | DataView;
|
|
12
|
+
export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | Uint8Array | DataView;
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Typically, this is a native "File" class.
|
|
@@ -84,11 +85,11 @@ export const isUploadable = (value: any): value is Uploadable => {
|
|
|
84
85
|
return isFileLike(value) || isResponseLike(value) || isFsReadStream(value);
|
|
85
86
|
};
|
|
86
87
|
|
|
87
|
-
export type ToFileInput = Uploadable | Exclude<
|
|
88
|
+
export type ToFileInput = Uploadable | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
|
|
88
89
|
|
|
89
90
|
/**
|
|
90
91
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
91
|
-
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link
|
|
92
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
92
93
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
93
94
|
* @param {Object=} options additional properties
|
|
94
95
|
* @param {string=} options.type the MIME type of the content
|
|
@@ -231,10 +232,10 @@ const addFormValue = async (form: FormData, key: string, value: unknown): Promis
|
|
|
231
232
|
|
|
232
233
|
// TODO: make nested formats configurable
|
|
233
234
|
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
234
|
-
form.append(key, value);
|
|
235
|
+
form.append(key, String(value));
|
|
235
236
|
} else if (isUploadable(value)) {
|
|
236
237
|
const file = await toFile(value);
|
|
237
|
-
form.append(key, file);
|
|
238
|
+
form.append(key, file as File);
|
|
238
239
|
} else if (Array.isArray(value)) {
|
|
239
240
|
await Promise.all(value.map((entry) => addFormValue(form, key + '[]', entry)));
|
|
240
241
|
} else if (typeof value === 'object') {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.9.0'; // x-release-please-version
|
package/uploads.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type RequestOptions } from './core.js';
|
|
2
2
|
import { type Readable } from 'increase/_shims/node-readable';
|
|
3
3
|
import { type BodyInit } from 'increase/_shims/fetch';
|
|
4
|
-
import { FormData, type FilePropertyBag } from 'increase/_shims/formdata';
|
|
4
|
+
import { FormData, type Blob, type FilePropertyBag } from 'increase/_shims/formdata';
|
|
5
5
|
import { fileFromPath } from 'increase/_shims/fileFromPath';
|
|
6
6
|
import { type FsReadStream } from 'increase/_shims/node-readable';
|
|
7
7
|
export { fileFromPath };
|
|
8
|
-
|
|
8
|
+
type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | Uint8Array | DataView;
|
|
9
|
+
export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | Uint8Array | DataView;
|
|
9
10
|
/**
|
|
10
11
|
* Typically, this is a native "File" class.
|
|
11
12
|
*
|
|
@@ -55,10 +56,10 @@ export declare const isBlobLike: (value: any) => value is BlobLike & {
|
|
|
55
56
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
56
57
|
};
|
|
57
58
|
export declare const isUploadable: (value: any) => value is Uploadable;
|
|
58
|
-
export type ToFileInput = Uploadable | Exclude<
|
|
59
|
+
export type ToFileInput = Uploadable | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
|
|
59
60
|
/**
|
|
60
61
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
61
|
-
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link
|
|
62
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
62
63
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
63
64
|
* @param {Object=} options additional properties
|
|
64
65
|
* @param {string=} options.type the MIME type of the content
|
package/uploads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAQ,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAQ,KAAK,IAAI,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,+BAA+B,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAC9F,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,IAAI,GAAG,UAAU,GAAG,QAAQ,C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EAChC,OAAO,GAAE,eAAe,GAAG,SAAc,GACxC,OAAO,CAAC,QAAQ,CAAC,CAuBnB;AAoDD,qBAAa,aAAa;IACL,IAAI,EAAE,QAAQ,GAAG,QAAQ;gBAAzB,IAAI,EAAE,QAAQ,GAAG,QAAQ;IAC5C,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAEjC;CACF;AAED,eAAO,MAAM,eAAe,SAAU,GAAG,0BACsD,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,gCAAgC,iHAO5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,iHAKvC,CAAC;AAEF,eAAO,MAAM,UAAU,wDAA6D,QAAQ,QAAQ,CAInG,CAAC"}
|
package/uploads.js
CHANGED
|
@@ -58,7 +58,7 @@ const isUploadable = (value) => {
|
|
|
58
58
|
exports.isUploadable = isUploadable;
|
|
59
59
|
/**
|
|
60
60
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
61
|
-
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link
|
|
61
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
62
62
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
63
63
|
* @param {Object=} options additional properties
|
|
64
64
|
* @param {string=} options.type the MIME type of the content
|
|
@@ -189,7 +189,7 @@ const addFormValue = async (form, key, value) => {
|
|
|
189
189
|
}
|
|
190
190
|
// TODO: make nested formats configurable
|
|
191
191
|
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
192
|
-
form.append(key, value);
|
|
192
|
+
form.append(key, String(value));
|
|
193
193
|
} else if ((0, exports.isUploadable)(value)) {
|
|
194
194
|
const file = await toFile(value);
|
|
195
195
|
form.append(key, file);
|
package/uploads.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["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AAI,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;KACjC;SAAM,IAAI,IAAA,oBAAY,EAAC,KAAK,CAAC,EAAE;QAC9B,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,IAAY,CAAC,CAAC;KAChC;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAC/B,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;KAChF;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QACpC,MAAM,OAAO,CAAC,GAAG,CACf,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,GAAG,EAAE,IAAI,CAAC,CAAC,CACzF,CAAC;KACH;SAAM;QACL,MAAM,IAAI,SAAS,CACjB,wGAAwG,KAAK,UAAU,CACxH,CAAC;KACH;AACH,CAAC,CAAC"}
|
package/uploads.mjs
CHANGED
|
@@ -31,7 +31,7 @@ export const isUploadable = (value) => {
|
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
34
|
-
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link
|
|
34
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
35
35
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
36
36
|
* @param {Object=} options additional properties
|
|
37
37
|
* @param {string=} options.type the MIME type of the content
|
|
@@ -156,7 +156,7 @@ const addFormValue = async (form, key, value) => {
|
|
|
156
156
|
}
|
|
157
157
|
// TODO: make nested formats configurable
|
|
158
158
|
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
159
|
-
form.append(key, value);
|
|
159
|
+
form.append(key, String(value));
|
|
160
160
|
} else if (isUploadable(value)) {
|
|
161
161
|
const file = await toFile(value);
|
|
162
162
|
form.append(key, file);
|
package/uploads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAE,IAAI,EAAmC,MAAM,0BAA0B;OACnF,EAAE,0BAA0B,EAAE,MAAM,4CAA4C;OAChF,EAAE,YAAY,EAAE,MAAM,8BAA8B;OACpD,EAAqB,cAAc,EAAE,MAAM,+BAA+B;AAEjF,OAAO,EAAE,YAAY,EAAE,CAAC;AAiDxB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAU,EAAyB,EAAE,CAClE,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ;IAC7B,OAAO,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC;AAEnC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAU,EAAqB,EAAE,CAC1D,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;IAC9B,OAAO,KAAK,CAAC,YAAY,KAAK,QAAQ;IACtC,UAAU,CAAC,KAAK,CAAC,CAAC;AAEpB;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,G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1
|
-
export declare const VERSION = '0.
|
|
1
|
+
export declare const VERSION = '0.9.0';
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.9.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|