@beach-depository/sdk 0.0.1 → 0.0.2
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 +5 -3
- package/dist/cjs/api/resources/transfers/client/Client.js +2 -2
- 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/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/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 +5 -3
- package/dist/esm/api/resources/transfers/client/Client.mjs +3 -3
- 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/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/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
|
@@ -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.2";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.2";
|
package/package.json
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beach-depository/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
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",
|