@hello.nrfcloud.com/nrfcloud-api-helpers 3.0.55 → 3.0.57

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,5 +1,5 @@
1
1
  import { type Static } from '@sinclair/typebox';
2
- import { ValidationError } from './validatedFetch.js';
2
+ import { type ValidationError } from './validatedFetch.js';
3
3
  /**
4
4
  * @link https://api.nrfcloud.com/v1/#tag/Bulk-Ops-Requests/operation/FetchBulkOpsRequest
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { Type } from '@sinclair/typebox';
2
- import { ValidationError, validatedFetch } from './validatedFetch.js';
2
+ import { validatedFetch } from './validatedFetch.js';
3
3
  /**
4
4
  * @link https://api.nrfcloud.com/v1/#tag/Bulk-Ops-Requests/operation/FetchBulkOpsRequest
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { type Static } from '@sinclair/typebox';
2
- import { ValidationError } from './validatedFetch.js';
2
+ import { type ValidationError } from './validatedFetch.js';
3
3
  import { DeviceShadow } from './DeviceShadow.js';
4
4
  declare const Devices: import("@sinclair/typebox").TObject<{
5
5
  total: import("@sinclair/typebox").TInteger;
@@ -1,6 +1,6 @@
1
1
  import { Type } from '@sinclair/typebox';
2
2
  import { slashless } from './slashless.js';
3
- import { ValidationError, validatedFetch } from './validatedFetch.js';
3
+ import { validatedFetch } from './validatedFetch.js';
4
4
  import { DeviceShadow } from './DeviceShadow.js';
5
5
  const Page = (Item) => Type.Object({
6
6
  total: Type.Integer(),
@@ -1,5 +1,5 @@
1
1
  import { type Static } from '@sinclair/typebox';
2
- import { ValidationError } from './validatedFetch.js';
2
+ import { type ValidationError } from './validatedFetch.js';
3
3
  /**
4
4
  * @link https://api.nrfcloud.com/v1/#tag/Ground-Fix
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { accuracy as TAccuracy, lat as TLat, lng as TLng, } from '@hello.nrfcloud.com/proto/hello';
2
2
  import { Type } from '@sinclair/typebox';
3
- import { JSONPayload, ValidationError, validatedFetch, } from './validatedFetch.js';
3
+ import { JSONPayload, validatedFetch, } from './validatedFetch.js';
4
4
  /**
5
5
  * @link https://api.nrfcloud.com/v1/#tag/Ground-Fix
6
6
  */
@@ -1,4 +1,4 @@
1
- import { ValidationError } from './validatedFetch.js';
1
+ import { type ValidationError } from './validatedFetch.js';
2
2
  /**
3
3
  * @link https://api.nrfcloud.com/v1/#tag/Account/operation/GetServiceToken
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import { Type } from '@sinclair/typebox';
2
- import { ValidationError, validatedFetch } from './validatedFetch.js';
2
+ import { validatedFetch } from './validatedFetch.js';
3
3
  /**
4
4
  * @link https://api.nrfcloud.com/v1/#tag/Account/operation/GetServiceToken
5
5
  */
@@ -1,4 +1,4 @@
1
- import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
1
+ import { type DynamoDBClient } from '@aws-sdk/client-dynamodb';
2
2
  import { cellId } from './cellId.js';
3
3
  export declare const get: ({ db, TableName }: {
4
4
  db: DynamoDBClient;
@@ -1,4 +1,4 @@
1
- import { DynamoDBClient, GetItemCommand, PutItemCommand, } from '@aws-sdk/client-dynamodb';
1
+ import { GetItemCommand, PutItemCommand, } from '@aws-sdk/client-dynamodb';
2
2
  import { cellId } from './cellId.js';
3
3
  import { marshall, unmarshall } from '@aws-sdk/util-dynamodb';
4
4
  export const get = ({ db, TableName }) => async (cell) => {
@@ -1,4 +1,4 @@
1
- import { SSMClient } from '@aws-sdk/client-ssm';
1
+ import type { SSMClient } from '@aws-sdk/client-ssm';
2
2
  export declare const getAllAccounts: ({ ssm, stackName, }: {
3
3
  ssm: SSMClient;
4
4
  stackName: string;
@@ -1,4 +1,3 @@
1
- import { SSMClient } from '@aws-sdk/client-ssm';
2
1
  import { get } from '@bifravst/aws-ssm-settings-helpers';
3
2
  import { NRFCLOUD_ACCOUNT_SCOPE } from './scope.js';
4
3
  export const getAllAccounts = async ({ ssm, stackName, }) => [
@@ -1,4 +1,4 @@
1
- import { SSMClient } from '@aws-sdk/client-ssm';
1
+ import type { SSMClient } from '@aws-sdk/client-ssm';
2
2
  import { type Settings } from './settings.js';
3
3
  /**
4
4
  * Returns settings for all accounts
@@ -1,4 +1,3 @@
1
- import { SSMClient } from '@aws-sdk/client-ssm';
2
1
  import { get } from '@bifravst/aws-ssm-settings-helpers';
3
2
  import { NRFCLOUD_ACCOUNT_SCOPE } from './scope.js';
4
3
  import { groupByAccount } from './groupByAccount.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hello.nrfcloud.com/nrfcloud-api-helpers",
3
- "version": "3.0.55",
3
+ "version": "3.0.57",
4
4
  "description": "Helper functions for integrating nRF Cloud APIs in AWS lambdas written in TypeScript.",
5
5
  "exports": {
6
6
  "./*": {
@@ -32,7 +32,7 @@
32
32
  "author": "Nordic Semiconductor ASA | nordicsemi.no",
33
33
  "license": "BSD-3-Clause",
34
34
  "devDependencies": {
35
- "@bifravst/eslint-config-typescript": "6.0.26",
35
+ "@bifravst/eslint-config-typescript": "6.1.0",
36
36
  "@bifravst/prettier-config": "1.0.0",
37
37
  "@commitlint/config-conventional": "19.2.2",
38
38
  "@types/aws-lambda": "8.10.138",
@@ -82,11 +82,11 @@
82
82
  ],
83
83
  "prettier": "@bifravst/prettier-config",
84
84
  "peerDependencies": {
85
- "@aws-sdk/client-dynamodb": "^3.583.0",
85
+ "@aws-sdk/client-dynamodb": "^3.584.0",
86
86
  "@aws-sdk/client-ssm": "^3.583.0",
87
- "@aws-sdk/util-dynamodb": "^3.583.0",
87
+ "@aws-sdk/util-dynamodb": "^3.584.0",
88
88
  "@bifravst/aws-ssm-settings-helpers": "^1.1.21",
89
- "@hello.nrfcloud.com/proto": "^9.0.12",
89
+ "@hello.nrfcloud.com/proto": "^12.0.0",
90
90
  "@sinclair/typebox": "^0.32.31"
91
91
  }
92
92
  }