@hello.nrfcloud.com/nrfcloud-api-helpers 5.2.15 → 5.2.17

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.
@@ -9,7 +9,7 @@ export declare class ValidationError extends Error {
9
9
  export declare const validatedFetch: ({ endpoint, apiKey }: {
10
10
  apiKey: string;
11
11
  endpoint: URL;
12
- }, fetchImplementation?: typeof fetch) => <Schema extends TObject<import("@sinclair/typebox").TProperties>>(params: ({
12
+ }, fetchImplementation?: typeof fetch) => <Schema extends TObject>(params: ({
13
13
  resource: string;
14
14
  } | {
15
15
  resource: string;
@@ -21,7 +21,7 @@ export declare const getAPISettings: ({ ssm, stackName, account, }: {
21
21
  ssm: SSMClient;
22
22
  stackName: string;
23
23
  account: string;
24
- }) => (() => Promise<Pick<Settings, 'apiKey' | 'apiEndpoint'>>);
24
+ }) => (() => Promise<Pick<Settings, "apiKey" | "apiEndpoint">>);
25
25
  export declare const putSettings: ({ ssm, stackName, account, }: {
26
26
  ssm: SSMClient;
27
27
  stackName: string;
@@ -31,14 +31,20 @@ export declare const putSetting: ({ ssm, stackName, account, }: {
31
31
  ssm: SSMClient;
32
32
  stackName: string;
33
33
  account: string;
34
- }) => (property: keyof Settings, value: string, deleteBeforeUpdate: boolean) => Promise<{
34
+ }) => ((property: keyof Settings, value: string, deleteBeforeUpdate: boolean) => ReturnType<({ property, value, deleteBeforeUpdate, }: {
35
+ property: string;
36
+ value: string;
37
+ deleteBeforeUpdate?: boolean;
38
+ }) => Promise<{
35
39
  name: string;
36
- }>;
40
+ }>>);
37
41
  export declare const deleteSettings: ({ ssm, stackName, account, }: {
38
42
  ssm: SSMClient;
39
43
  stackName: string;
40
44
  account: string;
41
- }) => (property: string) => Promise<{
45
+ }) => ((property: string) => ReturnType<({ property }: {
46
+ property: string;
47
+ }) => Promise<{
42
48
  name: string;
43
- }>;
49
+ }>>);
44
50
  export declare const validateSettings: (p: Record<string, string>) => Settings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hello.nrfcloud.com/nrfcloud-api-helpers",
3
- "version": "5.2.15",
3
+ "version": "5.2.17",
4
4
  "description": "Helper functions for integrating nRF Cloud APIs in AWS lambdas written in TypeScript.",
5
5
  "exports": {
6
6
  "./*": {
@@ -32,14 +32,14 @@
32
32
  "author": "Nordic Semiconductor ASA | nordicsemi.no",
33
33
  "license": "BSD-3-Clause",
34
34
  "devDependencies": {
35
- "@bifravst/eslint-config-typescript": "6.1.4",
35
+ "@bifravst/eslint-config-typescript": "6.1.5",
36
36
  "@bifravst/prettier-config": "1.0.3",
37
37
  "@commitlint/config-conventional": "19.2.2",
38
38
  "@types/aws-lambda": "8.10.140",
39
- "@types/node": "20.14.6",
39
+ "@types/node": "20.14.7",
40
40
  "husky": "9.0.11",
41
41
  "tsmatchers": "5.0.2",
42
- "tsx": "4.15.6"
42
+ "tsx": "4.15.7"
43
43
  },
44
44
  "lint-staged": {
45
45
  "*.ts": [
@@ -82,10 +82,10 @@
82
82
  ],
83
83
  "prettier": "@bifravst/prettier-config",
84
84
  "peerDependencies": {
85
- "@aws-sdk/client-dynamodb": "^3.600.0",
85
+ "@aws-sdk/client-dynamodb": "^3.602.0",
86
86
  "@aws-sdk/client-ssm": "^3.600.0",
87
- "@aws-sdk/util-dynamodb": "^3.600.0",
88
- "@bifravst/aws-ssm-settings-helpers": "^1.1.33",
87
+ "@aws-sdk/util-dynamodb": "^3.602.0",
88
+ "@bifravst/aws-ssm-settings-helpers": "^1.1.34",
89
89
  "@hello.nrfcloud.com/proto": "^14.1.0",
90
90
  "@sinclair/typebox": "^0.32.33"
91
91
  }