@hello.nrfcloud.com/nrfcloud-api-helpers 1.1.2 → 1.1.3
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.
|
@@ -3,7 +3,7 @@ import { type Settings } from './settings.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* Returns settings for all accounts
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const getAllAccountsSettings: ({ ssm, stackName, }: {
|
|
7
7
|
ssm: SSMClient;
|
|
8
8
|
stackName: string;
|
|
9
9
|
}) => Promise<Record<string, Settings>>;
|
|
@@ -6,7 +6,7 @@ import { NRFCLOUD_ACCOUNT_SCOPE } from './scope.js';
|
|
|
6
6
|
/**
|
|
7
7
|
* Returns settings for all accounts
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const getAllAccountsSettings = async ({ ssm, stackName, }) => {
|
|
10
10
|
const allSettings = await get(ssm)({
|
|
11
11
|
stackName,
|
|
12
12
|
scope: NRFCLOUD_ACCOUNT_SCOPE,
|
|
@@ -23,7 +23,7 @@ export const getAllAccountSettings = async ({ ssm, stackName, }) => {
|
|
|
23
23
|
.reduce((s, [k, v]) => ({ ...s, [k]: v }), {})),
|
|
24
24
|
}), {});
|
|
25
25
|
};
|
|
26
|
-
console.log(await
|
|
26
|
+
console.log(await getAllAccountsSettings({
|
|
27
27
|
ssm: new SSMClient(),
|
|
28
28
|
stackName: 'hello-nrfcloud-backend',
|
|
29
29
|
}));
|