@allthings/sdk 6.2.0-1 → 6.2.0-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.
@@ -1,11 +1,12 @@
1
- import { DEFAULT_CLIENT_CONFIG as DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore } from './parameterStore';
1
+ import parameterStore, { DEFAULT_CLIENT_CONFIG as DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore } from './parameterStore';
2
2
  declare const DEFAULT_AWS_CONFIGURATION: {
3
3
  region: string;
4
4
  };
5
- export { DEFAULT_AWS_CONFIGURATION, DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore, };
5
+ export { DEFAULT_AWS_CONFIGURATION, DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore, parameterStore, };
6
6
  declare const _default: {
7
7
  parameterStore: (userConfig: IParameterStore) => {
8
- getSecret: (param: string) => Promise<string>;
8
+ getSecret: (param: string, defaultValue?: string | undefined) => Promise<string>;
9
+ getSecrets: (params: string[], defaultValue?: string | undefined) => Promise<string[]>;
9
10
  };
10
11
  };
11
12
  export default _default;
@@ -1,13 +1,15 @@
1
- import { SSMClientConfig } from '@aws-sdk/client-ssm';
1
+ import { SSMClient, SSMClientConfig } from '@aws-sdk/client-ssm';
2
2
  export interface IParameterStore {
3
3
  clientConfig?: SSMClientConfig;
4
- defaultValue?: string;
5
4
  logger?: (message: string) => void;
6
5
  onlyDefault?: boolean;
7
6
  prefix?: string;
8
7
  }
9
8
  export declare const DEFAULT_CLIENT_CONFIG: IParameterStore;
9
+ declare const getSecrets: (ssm: SSMClient, config: IParameterStore, params: string[], defaultValue?: string) => Promise<string[]>;
10
+ declare const getSecret: (ssm: SSMClient, config: IParameterStore, param: string, defaultValue?: string) => Promise<string>;
10
11
  declare const parameterStore: (userConfig: IParameterStore) => {
11
- getSecret: (param: string) => Promise<string>;
12
+ getSecret: (param: string, defaultValue?: string) => Promise<string>;
13
+ getSecrets: (params: string[], defaultValue?: string) => Promise<string[]>;
12
14
  };
13
15
  export default parameterStore;
@@ -1,3 +1,4 @@
1
+ export { default as awsClients, DEFAULT_AWS_CONFIGURATION, DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore, parameterStore, } from './aws';
1
2
  export { default as createTokenStore } from './oauth/createTokenStore';
2
3
  export { EnumCommunicationPreferenceChannel, EnumUnitObjectType, EnumUnitType, EnumUserPermissionObjectType, EnumUserPermissionRole, EnumUserRelationType, EnumUtilisationPeriodType, default as restClient, } from './rest';
3
4
  export { IApp } from './rest/methods/app';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/sdk",
3
- "version": "6.2.0-1",
3
+ "version": "6.2.0-3",
4
4
  "description": "",
5
5
  "author": "Allthings GmbH",
6
6
  "keywords": [
@@ -61,7 +61,11 @@
61
61
  "@allthings/eslint-config": "1.1.0",
62
62
  "@commitlint/cli": "19.3.0",
63
63
  "@commitlint/config-conventional": "19.2.2",
64
+ "@rollup/plugin-commonjs": "25.0.7",
65
+ "@rollup/plugin-json": "6.1.0",
64
66
  "@rollup/plugin-node-resolve": "15.2.3",
67
+ "@rollup/plugin-replace": "5.0.5",
68
+ "@rollup/plugin-terser": "0.4.4",
65
69
  "@types/form-data": "2.5.0",
66
70
  "@types/jest": "26.0.24",
67
71
  "@types/node": "18.19.31",
@@ -76,12 +80,8 @@
76
80
  "nanoid": "3.3.7",
77
81
  "prettier": "3.2.5",
78
82
  "rimraf": "5.0.5",
79
- "rollup": "3.29.4",
80
- "rollup-plugin-commonjs": "10.1.0",
83
+ "rollup": "4.17.2",
81
84
  "rollup-plugin-hashbang": "2.2.2",
82
- "rollup-plugin-json": "4.0.0",
83
- "rollup-plugin-replace": "2.2.0",
84
- "rollup-plugin-terser": "7.0.2",
85
85
  "semantic-release": "19.0.5",
86
86
  "ts-jest": "26.5.6",
87
87
  "typescript": "4.9.5"