@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.
Files changed (58) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/BaseClient.d.ts +3 -0
  3. package/dist/cjs/api/resources/fboAccounts/client/Client.d.ts +5 -3
  4. package/dist/cjs/api/resources/fboAccounts/client/Client.js +2 -2
  5. package/dist/cjs/api/resources/fboAccounts/resources/addresses/client/Client.d.ts +5 -3
  6. package/dist/cjs/api/resources/fboAccounts/resources/addresses/client/Client.js +2 -2
  7. package/dist/cjs/api/resources/fboAccounts/resources/aliases/client/Client.d.ts +5 -3
  8. package/dist/cjs/api/resources/fboAccounts/resources/aliases/client/Client.js +2 -2
  9. package/dist/cjs/api/resources/inboundShipments/client/Client.d.ts +5 -3
  10. package/dist/cjs/api/resources/inboundShipments/client/Client.js +2 -2
  11. package/dist/cjs/api/resources/outboundRequests/client/Client.d.ts +5 -3
  12. package/dist/cjs/api/resources/outboundRequests/client/Client.js +2 -2
  13. package/dist/cjs/api/resources/transfers/client/Client.d.ts +5 -3
  14. package/dist/cjs/api/resources/transfers/client/Client.js +2 -2
  15. package/dist/cjs/api/resources/transfers/types/CancelTransfersResponse.d.ts +8 -2
  16. package/dist/cjs/api/resources/transfers/types/CancelTransfersResponse.js +6 -2
  17. package/dist/cjs/api/resources/transfers/types/CreateTransfersResponse.d.ts +8 -2
  18. package/dist/cjs/api/resources/transfers/types/CreateTransfersResponse.js +6 -2
  19. package/dist/cjs/api/resources/transfers/types/GetTransfersResponse.d.ts +8 -2
  20. package/dist/cjs/api/resources/transfers/types/GetTransfersResponse.js +6 -2
  21. package/dist/cjs/api/resources/transfers/types/ListTransfersRequestStatus.d.ts +2 -2
  22. package/dist/cjs/api/resources/transfers/types/ListTransfersRequestStatus.js +2 -2
  23. package/dist/cjs/api/resources/transfers/types/ListTransfersResponse.d.ts +8 -2
  24. package/dist/cjs/api/resources/transfers/types/ListTransfersResponse.js +6 -2
  25. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +5 -3
  26. package/dist/cjs/api/resources/webhooks/client/Client.js +2 -2
  27. package/dist/cjs/index.d.ts +1 -1
  28. package/dist/cjs/version.d.ts +1 -1
  29. package/dist/cjs/version.js +1 -1
  30. package/dist/esm/BaseClient.d.mts +3 -0
  31. package/dist/esm/api/resources/fboAccounts/client/Client.d.mts +5 -3
  32. package/dist/esm/api/resources/fboAccounts/client/Client.mjs +3 -3
  33. package/dist/esm/api/resources/fboAccounts/resources/addresses/client/Client.d.mts +5 -3
  34. package/dist/esm/api/resources/fboAccounts/resources/addresses/client/Client.mjs +3 -3
  35. package/dist/esm/api/resources/fboAccounts/resources/aliases/client/Client.d.mts +5 -3
  36. package/dist/esm/api/resources/fboAccounts/resources/aliases/client/Client.mjs +3 -3
  37. package/dist/esm/api/resources/inboundShipments/client/Client.d.mts +5 -3
  38. package/dist/esm/api/resources/inboundShipments/client/Client.mjs +3 -3
  39. package/dist/esm/api/resources/outboundRequests/client/Client.d.mts +5 -3
  40. package/dist/esm/api/resources/outboundRequests/client/Client.mjs +3 -3
  41. package/dist/esm/api/resources/transfers/client/Client.d.mts +5 -3
  42. package/dist/esm/api/resources/transfers/client/Client.mjs +3 -3
  43. package/dist/esm/api/resources/transfers/types/CancelTransfersResponse.d.mts +8 -2
  44. package/dist/esm/api/resources/transfers/types/CancelTransfersResponse.mjs +6 -2
  45. package/dist/esm/api/resources/transfers/types/CreateTransfersResponse.d.mts +8 -2
  46. package/dist/esm/api/resources/transfers/types/CreateTransfersResponse.mjs +6 -2
  47. package/dist/esm/api/resources/transfers/types/GetTransfersResponse.d.mts +8 -2
  48. package/dist/esm/api/resources/transfers/types/GetTransfersResponse.mjs +6 -2
  49. package/dist/esm/api/resources/transfers/types/ListTransfersRequestStatus.d.mts +2 -2
  50. package/dist/esm/api/resources/transfers/types/ListTransfersRequestStatus.mjs +2 -2
  51. package/dist/esm/api/resources/transfers/types/ListTransfersResponse.d.mts +8 -2
  52. package/dist/esm/api/resources/transfers/types/ListTransfersResponse.mjs +6 -2
  53. package/dist/esm/api/resources/webhooks/client/Client.d.mts +5 -3
  54. package/dist/esm/api/resources/webhooks/client/Client.mjs +3 -3
  55. package/dist/esm/index.d.mts +1 -1
  56. package/dist/esm/version.d.mts +1 -1
  57. package/dist/esm/version.mjs +1 -1
  58. 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.RequestOptions} requestOptions - Request-specific configuration.
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",
@@ -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";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1";
1
+ export declare const SDK_VERSION = "0.0.2";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.1";
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.1",
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",