@beach-depository/sdk 0.0.1 → 0.0.3
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/README.md +2 -2
- package/dist/cjs/BaseClient.d.ts +3 -0
- package/dist/cjs/api/resources/fboAccounts/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/fboAccounts/client/Client.js +2 -2
- package/dist/cjs/api/resources/fboAccounts/resources/addresses/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/fboAccounts/resources/addresses/client/Client.js +2 -2
- package/dist/cjs/api/resources/fboAccounts/resources/aliases/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/fboAccounts/resources/aliases/client/Client.js +2 -2
- package/dist/cjs/api/resources/inboundShipments/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/inboundShipments/client/Client.js +2 -2
- package/dist/cjs/api/resources/outboundRequests/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/outboundRequests/client/Client.js +2 -2
- package/dist/cjs/api/resources/transfers/client/Client.d.ts +19 -3
- package/dist/cjs/api/resources/transfers/client/Client.js +47 -2
- package/dist/cjs/api/resources/transfers/client/requests/ConfirmTransfersRequest.d.ts +9 -0
- package/dist/cjs/api/resources/transfers/client/requests/ConfirmTransfersRequest.js +3 -0
- package/dist/cjs/api/resources/transfers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/transfers/types/CancelTransfersResponse.d.ts +8 -2
- package/dist/cjs/api/resources/transfers/types/CancelTransfersResponse.js +6 -2
- package/dist/cjs/api/resources/transfers/types/ConfirmTransfersResponse.d.ts +34 -0
- package/dist/cjs/api/resources/transfers/types/ConfirmTransfersResponse.js +21 -0
- package/dist/cjs/api/resources/transfers/types/CreateTransfersResponse.d.ts +8 -2
- package/dist/cjs/api/resources/transfers/types/CreateTransfersResponse.js +6 -2
- package/dist/cjs/api/resources/transfers/types/GetTransfersResponse.d.ts +8 -2
- package/dist/cjs/api/resources/transfers/types/GetTransfersResponse.js +6 -2
- package/dist/cjs/api/resources/transfers/types/ListTransfersRequestStatus.d.ts +2 -2
- package/dist/cjs/api/resources/transfers/types/ListTransfersRequestStatus.js +2 -2
- package/dist/cjs/api/resources/transfers/types/ListTransfersResponse.d.ts +8 -2
- package/dist/cjs/api/resources/transfers/types/ListTransfersResponse.js +6 -2
- package/dist/cjs/api/resources/transfers/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/transfers/types/index.js +1 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/webhooks/client/Client.js +2 -2
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +3 -0
- package/dist/esm/api/resources/fboAccounts/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/fboAccounts/client/Client.mjs +3 -3
- package/dist/esm/api/resources/fboAccounts/resources/addresses/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/fboAccounts/resources/addresses/client/Client.mjs +3 -3
- package/dist/esm/api/resources/fboAccounts/resources/aliases/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/fboAccounts/resources/aliases/client/Client.mjs +3 -3
- package/dist/esm/api/resources/inboundShipments/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/inboundShipments/client/Client.mjs +3 -3
- package/dist/esm/api/resources/outboundRequests/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/outboundRequests/client/Client.mjs +3 -3
- package/dist/esm/api/resources/transfers/client/Client.d.mts +19 -3
- package/dist/esm/api/resources/transfers/client/Client.mjs +48 -3
- package/dist/esm/api/resources/transfers/client/requests/ConfirmTransfersRequest.d.mts +9 -0
- package/dist/esm/api/resources/transfers/client/requests/ConfirmTransfersRequest.mjs +2 -0
- package/dist/esm/api/resources/transfers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/transfers/types/CancelTransfersResponse.d.mts +8 -2
- package/dist/esm/api/resources/transfers/types/CancelTransfersResponse.mjs +6 -2
- package/dist/esm/api/resources/transfers/types/ConfirmTransfersResponse.d.mts +34 -0
- package/dist/esm/api/resources/transfers/types/ConfirmTransfersResponse.mjs +18 -0
- package/dist/esm/api/resources/transfers/types/CreateTransfersResponse.d.mts +8 -2
- package/dist/esm/api/resources/transfers/types/CreateTransfersResponse.mjs +6 -2
- package/dist/esm/api/resources/transfers/types/GetTransfersResponse.d.mts +8 -2
- package/dist/esm/api/resources/transfers/types/GetTransfersResponse.mjs +6 -2
- package/dist/esm/api/resources/transfers/types/ListTransfersRequestStatus.d.mts +2 -2
- package/dist/esm/api/resources/transfers/types/ListTransfersRequestStatus.mjs +2 -2
- package/dist/esm/api/resources/transfers/types/ListTransfersResponse.d.mts +8 -2
- package/dist/esm/api/resources/transfers/types/ListTransfersResponse.mjs +6 -2
- package/dist/esm/api/resources/transfers/types/index.d.mts +1 -0
- package/dist/esm/api/resources/transfers/types/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/webhooks/client/Client.mjs +3 -3
- package/dist/esm/index.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -5
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { CancelTransfersRequest } from "./CancelTransfersRequest.mjs";
|
|
2
|
+
export type { ConfirmTransfersRequest } from "./ConfirmTransfersRequest.mjs";
|
|
2
3
|
export { CreateTransfersRequest } from "./CreateTransfersRequest.mjs";
|
|
3
4
|
export type { GetTransfersRequest } from "./GetTransfersRequest.mjs";
|
|
4
5
|
export type { ListTransfersRequest } from "./ListTransfersRequest.mjs";
|
|
@@ -8,6 +8,7 @@ export declare namespace CancelTransfersResponse {
|
|
|
8
8
|
toFboAccountId: string;
|
|
9
9
|
organizationId: string;
|
|
10
10
|
status: Data.Status;
|
|
11
|
+
initiatedBy: Data.InitiatedBy;
|
|
11
12
|
totalItems: number;
|
|
12
13
|
approvedBySystem?: boolean | undefined;
|
|
13
14
|
notes?: string | undefined;
|
|
@@ -17,12 +18,17 @@ export declare namespace CancelTransfersResponse {
|
|
|
17
18
|
}
|
|
18
19
|
namespace Data {
|
|
19
20
|
const Status: {
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
21
|
+
readonly PendingApproval: "pending_approval";
|
|
22
|
+
readonly Processing: "processing";
|
|
22
23
|
readonly Completed: "completed";
|
|
23
24
|
readonly Rejected: "rejected";
|
|
24
25
|
readonly Cancelled: "cancelled";
|
|
25
26
|
};
|
|
26
27
|
type Status = (typeof Status)[keyof typeof Status];
|
|
28
|
+
const InitiatedBy: {
|
|
29
|
+
readonly Customer: "customer";
|
|
30
|
+
readonly Vault: "vault";
|
|
31
|
+
};
|
|
32
|
+
type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy];
|
|
27
33
|
}
|
|
28
34
|
}
|
|
@@ -4,11 +4,15 @@ export var CancelTransfersResponse;
|
|
|
4
4
|
let Data;
|
|
5
5
|
(function (Data) {
|
|
6
6
|
Data.Status = {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
PendingApproval: "pending_approval",
|
|
8
|
+
Processing: "processing",
|
|
9
9
|
Completed: "completed",
|
|
10
10
|
Rejected: "rejected",
|
|
11
11
|
Cancelled: "cancelled",
|
|
12
12
|
};
|
|
13
|
+
Data.InitiatedBy = {
|
|
14
|
+
Customer: "customer",
|
|
15
|
+
Vault: "vault",
|
|
16
|
+
};
|
|
13
17
|
})(Data = CancelTransfersResponse.Data || (CancelTransfersResponse.Data = {}));
|
|
14
18
|
})(CancelTransfersResponse || (CancelTransfersResponse = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface ConfirmTransfersResponse {
|
|
2
|
+
data: ConfirmTransfersResponse.Data;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ConfirmTransfersResponse {
|
|
5
|
+
interface Data {
|
|
6
|
+
id: string;
|
|
7
|
+
fromFboAccountId: string;
|
|
8
|
+
toFboAccountId: string;
|
|
9
|
+
organizationId: string;
|
|
10
|
+
status: Data.Status;
|
|
11
|
+
initiatedBy: Data.InitiatedBy;
|
|
12
|
+
totalItems: number;
|
|
13
|
+
approvedBySystem?: boolean | undefined;
|
|
14
|
+
notes?: string | undefined;
|
|
15
|
+
approvedAt?: string | undefined;
|
|
16
|
+
completedAt?: string | undefined;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
}
|
|
19
|
+
namespace Data {
|
|
20
|
+
const Status: {
|
|
21
|
+
readonly PendingApproval: "pending_approval";
|
|
22
|
+
readonly Processing: "processing";
|
|
23
|
+
readonly Completed: "completed";
|
|
24
|
+
readonly Rejected: "rejected";
|
|
25
|
+
readonly Cancelled: "cancelled";
|
|
26
|
+
};
|
|
27
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
28
|
+
const InitiatedBy: {
|
|
29
|
+
readonly Customer: "customer";
|
|
30
|
+
readonly Vault: "vault";
|
|
31
|
+
};
|
|
32
|
+
type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var ConfirmTransfersResponse;
|
|
3
|
+
(function (ConfirmTransfersResponse) {
|
|
4
|
+
let Data;
|
|
5
|
+
(function (Data) {
|
|
6
|
+
Data.Status = {
|
|
7
|
+
PendingApproval: "pending_approval",
|
|
8
|
+
Processing: "processing",
|
|
9
|
+
Completed: "completed",
|
|
10
|
+
Rejected: "rejected",
|
|
11
|
+
Cancelled: "cancelled",
|
|
12
|
+
};
|
|
13
|
+
Data.InitiatedBy = {
|
|
14
|
+
Customer: "customer",
|
|
15
|
+
Vault: "vault",
|
|
16
|
+
};
|
|
17
|
+
})(Data = ConfirmTransfersResponse.Data || (ConfirmTransfersResponse.Data = {}));
|
|
18
|
+
})(ConfirmTransfersResponse || (ConfirmTransfersResponse = {}));
|
|
@@ -8,6 +8,7 @@ export declare namespace CreateTransfersResponse {
|
|
|
8
8
|
toFboAccountId: string;
|
|
9
9
|
organizationId: string;
|
|
10
10
|
status: Data.Status;
|
|
11
|
+
initiatedBy: Data.InitiatedBy;
|
|
11
12
|
totalItems: number;
|
|
12
13
|
approvedBySystem?: boolean | undefined;
|
|
13
14
|
notes?: string | undefined;
|
|
@@ -17,12 +18,17 @@ export declare namespace CreateTransfersResponse {
|
|
|
17
18
|
}
|
|
18
19
|
namespace Data {
|
|
19
20
|
const Status: {
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
21
|
+
readonly PendingApproval: "pending_approval";
|
|
22
|
+
readonly Processing: "processing";
|
|
22
23
|
readonly Completed: "completed";
|
|
23
24
|
readonly Rejected: "rejected";
|
|
24
25
|
readonly Cancelled: "cancelled";
|
|
25
26
|
};
|
|
26
27
|
type Status = (typeof Status)[keyof typeof Status];
|
|
28
|
+
const InitiatedBy: {
|
|
29
|
+
readonly Customer: "customer";
|
|
30
|
+
readonly Vault: "vault";
|
|
31
|
+
};
|
|
32
|
+
type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy];
|
|
27
33
|
}
|
|
28
34
|
}
|
|
@@ -4,11 +4,15 @@ export var CreateTransfersResponse;
|
|
|
4
4
|
let Data;
|
|
5
5
|
(function (Data) {
|
|
6
6
|
Data.Status = {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
PendingApproval: "pending_approval",
|
|
8
|
+
Processing: "processing",
|
|
9
9
|
Completed: "completed",
|
|
10
10
|
Rejected: "rejected",
|
|
11
11
|
Cancelled: "cancelled",
|
|
12
12
|
};
|
|
13
|
+
Data.InitiatedBy = {
|
|
14
|
+
Customer: "customer",
|
|
15
|
+
Vault: "vault",
|
|
16
|
+
};
|
|
13
17
|
})(Data = CreateTransfersResponse.Data || (CreateTransfersResponse.Data = {}));
|
|
14
18
|
})(CreateTransfersResponse || (CreateTransfersResponse = {}));
|
|
@@ -8,6 +8,7 @@ export declare namespace GetTransfersResponse {
|
|
|
8
8
|
toFboAccountId: string;
|
|
9
9
|
organizationId: string;
|
|
10
10
|
status: Data.Status;
|
|
11
|
+
initiatedBy: Data.InitiatedBy;
|
|
11
12
|
totalItems: number;
|
|
12
13
|
approvedBySystem?: boolean | undefined;
|
|
13
14
|
notes?: string | undefined;
|
|
@@ -17,12 +18,17 @@ export declare namespace GetTransfersResponse {
|
|
|
17
18
|
}
|
|
18
19
|
namespace Data {
|
|
19
20
|
const Status: {
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
21
|
+
readonly PendingApproval: "pending_approval";
|
|
22
|
+
readonly Processing: "processing";
|
|
22
23
|
readonly Completed: "completed";
|
|
23
24
|
readonly Rejected: "rejected";
|
|
24
25
|
readonly Cancelled: "cancelled";
|
|
25
26
|
};
|
|
26
27
|
type Status = (typeof Status)[keyof typeof Status];
|
|
28
|
+
const InitiatedBy: {
|
|
29
|
+
readonly Customer: "customer";
|
|
30
|
+
readonly Vault: "vault";
|
|
31
|
+
};
|
|
32
|
+
type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy];
|
|
27
33
|
}
|
|
28
34
|
}
|
|
@@ -4,11 +4,15 @@ export var GetTransfersResponse;
|
|
|
4
4
|
let Data;
|
|
5
5
|
(function (Data) {
|
|
6
6
|
Data.Status = {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
PendingApproval: "pending_approval",
|
|
8
|
+
Processing: "processing",
|
|
9
9
|
Completed: "completed",
|
|
10
10
|
Rejected: "rejected",
|
|
11
11
|
Cancelled: "cancelled",
|
|
12
12
|
};
|
|
13
|
+
Data.InitiatedBy = {
|
|
14
|
+
Customer: "customer",
|
|
15
|
+
Vault: "vault",
|
|
16
|
+
};
|
|
13
17
|
})(Data = GetTransfersResponse.Data || (GetTransfersResponse.Data = {}));
|
|
14
18
|
})(GetTransfersResponse || (GetTransfersResponse = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ListTransfersRequestStatus: {
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
2
|
+
readonly PendingApproval: "pending_approval";
|
|
3
|
+
readonly Processing: "processing";
|
|
4
4
|
readonly Completed: "completed";
|
|
5
5
|
readonly Rejected: "rejected";
|
|
6
6
|
readonly Cancelled: "cancelled";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
export const ListTransfersRequestStatus = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
PendingApproval: "pending_approval",
|
|
4
|
+
Processing: "processing",
|
|
5
5
|
Completed: "completed",
|
|
6
6
|
Rejected: "rejected",
|
|
7
7
|
Cancelled: "cancelled",
|
|
@@ -11,6 +11,7 @@ export declare namespace ListTransfersResponse {
|
|
|
11
11
|
toFboAccountId: string;
|
|
12
12
|
organizationId: string;
|
|
13
13
|
status: Item.Status;
|
|
14
|
+
initiatedBy: Item.InitiatedBy;
|
|
14
15
|
totalItems: number;
|
|
15
16
|
approvedBySystem?: boolean | undefined;
|
|
16
17
|
notes?: string | undefined;
|
|
@@ -20,13 +21,18 @@ export declare namespace ListTransfersResponse {
|
|
|
20
21
|
}
|
|
21
22
|
namespace Item {
|
|
22
23
|
const Status: {
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
24
|
+
readonly PendingApproval: "pending_approval";
|
|
25
|
+
readonly Processing: "processing";
|
|
25
26
|
readonly Completed: "completed";
|
|
26
27
|
readonly Rejected: "rejected";
|
|
27
28
|
readonly Cancelled: "cancelled";
|
|
28
29
|
};
|
|
29
30
|
type Status = (typeof Status)[keyof typeof Status];
|
|
31
|
+
const InitiatedBy: {
|
|
32
|
+
readonly Customer: "customer";
|
|
33
|
+
readonly Vault: "vault";
|
|
34
|
+
};
|
|
35
|
+
type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy];
|
|
30
36
|
}
|
|
31
37
|
}
|
|
32
38
|
interface Pagination {
|
|
@@ -6,12 +6,16 @@ export var ListTransfersResponse;
|
|
|
6
6
|
let Item;
|
|
7
7
|
(function (Item) {
|
|
8
8
|
Item.Status = {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
PendingApproval: "pending_approval",
|
|
10
|
+
Processing: "processing",
|
|
11
11
|
Completed: "completed",
|
|
12
12
|
Rejected: "rejected",
|
|
13
13
|
Cancelled: "cancelled",
|
|
14
14
|
};
|
|
15
|
+
Item.InitiatedBy = {
|
|
16
|
+
Customer: "customer",
|
|
17
|
+
Vault: "vault",
|
|
18
|
+
};
|
|
15
19
|
})(Item = Data.Item || (Data.Item = {}));
|
|
16
20
|
})(Data = ListTransfersResponse.Data || (ListTransfersResponse.Data = {}));
|
|
17
21
|
})(ListTransfersResponse || (ListTransfersResponse = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import type * as BeachApi from "../../../index.mjs";
|
|
@@ -6,6 +6,8 @@ export declare namespace WebhooksClient {
|
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
9
11
|
}
|
|
10
12
|
export declare class WebhooksClient {
|
|
11
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<WebhooksClient.Options>;
|
|
@@ -23,7 +25,7 @@ export declare class WebhooksClient {
|
|
|
23
25
|
private __list;
|
|
24
26
|
/**
|
|
25
27
|
* @param {BeachApi.CreateWebhooksRequest} request
|
|
26
|
-
* @param {WebhooksClient.
|
|
28
|
+
* @param {WebhooksClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
27
29
|
*
|
|
28
30
|
* @throws {@link errors.BeachApiError}
|
|
29
31
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -35,7 +37,7 @@ export declare class WebhooksClient {
|
|
|
35
37
|
* events: ["events"]
|
|
36
38
|
* })
|
|
37
39
|
*/
|
|
38
|
-
create(request: BeachApi.CreateWebhooksRequest, requestOptions?: WebhooksClient.
|
|
40
|
+
create(request: BeachApi.CreateWebhooksRequest, requestOptions?: WebhooksClient.IdempotentRequestOptions): core.HttpResponsePromise<BeachApi.CreateWebhooksResponse>;
|
|
39
41
|
private __create;
|
|
40
42
|
/**
|
|
41
43
|
* @param {BeachApi.DeleteWebhooksRequest} request
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
-
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
12
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../core/index.mjs";
|
|
14
14
|
import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
|
|
15
15
|
import * as environments from "../../../../environments.mjs";
|
|
@@ -62,7 +62,7 @@ export class WebhooksClient {
|
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* @param {BeachApi.CreateWebhooksRequest} request
|
|
65
|
-
* @param {WebhooksClient.
|
|
65
|
+
* @param {WebhooksClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link errors.BeachApiError}
|
|
68
68
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -81,7 +81,7 @@ export class WebhooksClient {
|
|
|
81
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
82
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
83
83
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
84
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
84
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
85
85
|
const _response = yield core.fetcher({
|
|
86
86
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BeachApiEnvironment.Sandbox, "v1/webhooks"),
|
|
87
87
|
method: "POST",
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as BeachApi from "./api/index.mjs";
|
|
2
|
-
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
2
|
+
export type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
3
3
|
export { BeachApiClient } from "./Client.mjs";
|
|
4
4
|
export { BeachApiEnvironment } from "./environments.mjs";
|
|
5
5
|
export { BeachApiError, BeachApiTimeoutError } from "./errors/index.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.3";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.3";
|
package/package.json
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beach-depository/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"private": false,
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/Pure-Technologies/beach-sdk-typescript.git"
|
|
8
|
-
},
|
|
9
5
|
"type": "commonjs",
|
|
10
6
|
"main": "./dist/cjs/index.js",
|
|
11
7
|
"module": "./dist/esm/index.mjs",
|