@allthings/cloud-toolkit 1.1.0-dev.2 → 1.1.0

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,4 +1,2 @@
1
- import parameterStore, { DEFAULT_CLIENT_CONFIG as DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore } from './parameterStore';
2
- import ses, { DEFAULT_CLIENT_CONFIG as DEFAULT_SES_CLIENT_CONFIG, IEmailAttachment, IEmailOptions, ISES } from './ses';
3
- export { DEFAULT_SES_CLIENT_CONFIG, IEmailAttachment, IEmailOptions, ISES, ses };
4
- export { DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore, parameterStore, };
1
+ export { DEFAULT_CLIENT_CONFIG as DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore, default as parameterStore, } from './parameterStore';
2
+ export { DEFAULT_CLIENT_CONFIG as DEFAULT_SES_CLIENT_CONFIG, IEmailAttachment, IEmailOptions, ISES, default as ses, } from './ses';
@@ -1,8 +1,9 @@
1
1
  import { SSMClient, SSMClientConfig } from '@aws-sdk/client-ssm';
2
+ import { TAWSLogger } from './types';
2
3
  export interface IParameterStore {
3
4
  clientConfig?: SSMClientConfig;
4
5
  endpoint?: string;
5
- logger?: (messageType: 'error' | 'info' | 'log', message: string) => void;
6
+ logger?: TAWSLogger;
6
7
  onlyDefault?: boolean;
7
8
  prefix?: string;
8
9
  }
@@ -3,6 +3,7 @@
3
3
  /// <reference types="node" />
4
4
  import * as aws from '@aws-sdk/client-ses';
5
5
  import { Transporter } from 'nodemailer';
6
+ import { TAWSLogger } from './types';
6
7
  export interface ISES {
7
8
  clientConfig?: aws.SESClientConfig;
8
9
  customSMTPConfig?: {
@@ -10,7 +11,7 @@ export interface ISES {
10
11
  port: number;
11
12
  secure: boolean;
12
13
  };
13
- logger?: (messageType: 'error' | 'info' | 'log', message: string) => void;
14
+ logger?: TAWSLogger;
14
15
  }
15
16
  export declare const DEFAULT_CLIENT_CONFIG: ISES;
16
17
  export interface IEmailAttachment {
@@ -0,0 +1 @@
1
+ export type TAWSLogger = (messageType: 'error' | 'info' | 'log', message: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/cloud-toolkit",
3
- "version": "1.1.0-dev.2",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "author": "Allthings GmbH",
6
6
  "keywords": [