@hello.nrfcloud.com/nrfcloud-api-helpers 4.1.0 → 4.1.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.
@@ -1,6 +1,6 @@
1
1
  import { type Static } from '@sinclair/typebox';
2
2
  import type { ValidationError } from 'ajv';
3
- declare const FOTAJobType: import("@sinclair/typebox").TObject<{
3
+ export declare const CreatedFOTAJobType: import("@sinclair/typebox").TObject<{
4
4
  jobId: import("@sinclair/typebox").TString;
5
5
  }>;
6
6
  export declare const createFOTAJob: ({ apiKey, endpoint, }: {
@@ -12,6 +12,5 @@ export declare const createFOTAJob: ({ apiKey, endpoint, }: {
12
12
  }) => Promise<{
13
13
  error: Error | ValidationError;
14
14
  } | {
15
- result: Static<typeof FOTAJobType>;
15
+ result: Static<typeof CreatedFOTAJobType>;
16
16
  }>;
17
- export {};
@@ -1,6 +1,6 @@
1
1
  import { Type } from '@sinclair/typebox';
2
2
  import { JSONPayload, validatedFetch } from './validatedFetch.js';
3
- const FOTAJobType = Type.Object({
3
+ export const CreatedFOTAJobType = Type.Object({
4
4
  jobId: Type.String({
5
5
  minLength: 1,
6
6
  title: 'ID',
@@ -19,10 +19,10 @@ export const createFOTAJob = ({ apiKey, endpoint, }, fetchImplementation) => asy
19
19
  resource: 'fota-jobs',
20
20
  payload: JSONPayload({
21
21
  bundleId,
22
- autoApply: 'true',
22
+ autoApply: true,
23
23
  deviceIds: [deviceId],
24
24
  }),
25
- }, FOTAJobType);
25
+ }, CreatedFOTAJobType);
26
26
  if ('error' in maybeJob)
27
27
  return maybeJob;
28
28
  return maybeJob;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hello.nrfcloud.com/nrfcloud-api-helpers",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Helper functions for integrating nRF Cloud APIs in AWS lambdas written in TypeScript.",
5
5
  "exports": {
6
6
  "./*": {
@@ -33,7 +33,7 @@
33
33
  "license": "BSD-3-Clause",
34
34
  "devDependencies": {
35
35
  "@bifravst/eslint-config-typescript": "6.1.2",
36
- "@bifravst/prettier-config": "1.0.1",
36
+ "@bifravst/prettier-config": "1.0.2",
37
37
  "@commitlint/config-conventional": "19.2.2",
38
38
  "@types/aws-lambda": "8.10.138",
39
39
  "@types/node": "20.14.2",
@@ -86,7 +86,7 @@
86
86
  "@aws-sdk/client-ssm": "^3.590.0",
87
87
  "@aws-sdk/util-dynamodb": "^3.590.0",
88
88
  "@bifravst/aws-ssm-settings-helpers": "^1.1.27",
89
- "@hello.nrfcloud.com/proto": "^13.0.9",
89
+ "@hello.nrfcloud.com/proto": "^13.0.10",
90
90
  "@sinclair/typebox": "^0.32.31"
91
91
  }
92
92
  }