@aws-amplify/interactions 4.0.49-next.32 → 4.0.49-next.36

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.
Files changed (43) hide show
  1. package/lib/Interactions.d.ts +24 -0
  2. package/lib/Providers/AWSLexProvider.d.ts +24 -0
  3. package/lib/Providers/AWSLexProvider.js +1 -1
  4. package/lib/Providers/AWSLexProviderHelper/commonUtils.d.ts +1 -0
  5. package/lib/Providers/AWSLexProviderHelper/utils.d.ts +3 -0
  6. package/lib/Providers/AWSLexProviderHelper/utils.native.d.ts +3 -0
  7. package/lib/Providers/AWSLexV2Provider.d.ts +58 -0
  8. package/lib/Providers/InteractionsProvider.d.ts +11 -0
  9. package/lib/Providers/InteractionsProvider.js +1 -1
  10. package/lib/Providers/index.d.ts +3 -0
  11. package/lib/Providers/index.js +7 -5
  12. package/lib/Providers/index.js.map +1 -1
  13. package/lib/index.d.ts +5 -0
  14. package/lib/index.js +7 -5
  15. package/lib/index.js.map +1 -1
  16. package/lib/types/Interactions.d.ts +16 -0
  17. package/lib/types/Provider.d.ts +12 -0
  18. package/lib/types/Providers/AWSLexProvider.d.ts +10 -0
  19. package/lib/types/Providers/AWSLexV2Provider.d.ts +12 -0
  20. package/lib/types/Response.d.ts +3 -0
  21. package/lib/types/Response.js +1 -1
  22. package/lib/types/index.d.ts +5 -0
  23. package/lib-esm/Providers/AWSLexProvider.js +1 -1
  24. package/lib-esm/Providers/InteractionsProvider.js +1 -1
  25. package/lib-esm/Providers/index.d.ts +3 -3
  26. package/lib-esm/Providers/index.js +4 -4
  27. package/lib-esm/Providers/index.js.map +1 -1
  28. package/lib-esm/index.d.ts +3 -3
  29. package/lib-esm/index.js +4 -4
  30. package/lib-esm/index.js.map +1 -1
  31. package/lib-esm/types/Response.js +1 -1
  32. package/package.json +5 -4
  33. package/src/Interactions.ts +1 -1
  34. package/src/Providers/AWSLexProvider.ts +1 -1
  35. package/src/Providers/InteractionsProvider.ts +1 -1
  36. package/src/Providers/index.ts +4 -4
  37. package/src/index.ts +4 -4
  38. package/src/types/Interactions.ts +1 -1
  39. package/src/types/Provider.ts +1 -1
  40. package/src/types/Providers/AWSLexProvider.ts +1 -1
  41. package/src/types/Providers/AWSLexV2Provider.ts +1 -1
  42. package/src/types/Response.ts +1 -1
  43. package/src/types/index.ts +1 -1
@@ -0,0 +1,24 @@
1
+ import { InteractionsOptions, InteractionsProvider, InteractionsMessage, InteractionsResponse } from './types';
2
+ export declare class InteractionsClass {
3
+ private _options;
4
+ private _pluggables;
5
+ /**
6
+ * Initialize PubSub with AWS configurations
7
+ *
8
+ * @param {InteractionsOptions} options - Configuration object for Interactions
9
+ */
10
+ constructor(options?: InteractionsOptions);
11
+ getModuleName(): string;
12
+ /**
13
+ *
14
+ * @param {InteractionsOptions} options - Configuration object for Interactions
15
+ * @return {InteractionsOptions} - The current configuration
16
+ */
17
+ configure(options: InteractionsOptions): InteractionsOptions;
18
+ addPluggable(pluggable: InteractionsProvider): void;
19
+ send(botname: string, message: string): Promise<InteractionsResponse>;
20
+ send(botname: string, message: InteractionsMessage): Promise<InteractionsResponse>;
21
+ send(botname: string, message: object): Promise<InteractionsResponse>;
22
+ onComplete(botname: string, callback: (err: any, confirmation: any) => void): void;
23
+ }
24
+ export declare const Interactions: InteractionsClass;
@@ -0,0 +1,24 @@
1
+ import { AbstractInteractionsProvider } from './InteractionsProvider';
2
+ import { InteractionsOptions, AWSLexProviderOptions, InteractionsResponse, InteractionsMessage } from '../types';
3
+ import { PostTextCommandOutput, PostContentCommandOutput } from '@aws-sdk/client-lex-runtime-service';
4
+ interface PostContentCommandOutputFormatted extends Omit<PostContentCommandOutput, 'audioStream'> {
5
+ audioStream?: Uint8Array;
6
+ }
7
+ declare type AWSLexProviderSendResponse = PostTextCommandOutput | PostContentCommandOutputFormatted;
8
+ export declare class AWSLexProvider extends AbstractInteractionsProvider {
9
+ private lexRuntimeServiceClient;
10
+ private _botsCompleteCallback;
11
+ constructor(options?: InteractionsOptions);
12
+ getProviderName(): string;
13
+ configure(config?: AWSLexProviderOptions): AWSLexProviderOptions;
14
+ /**
15
+ * @private
16
+ * @deprecated
17
+ * This is used internally by 'sendMessage' to call onComplete callback
18
+ * for a bot if configured
19
+ */
20
+ reportBotStatus(data: AWSLexProviderSendResponse, botname: string): void;
21
+ sendMessage(botname: string, message: string | InteractionsMessage): Promise<InteractionsResponse>;
22
+ onComplete(botname: string, callback: (err: any, confirmation: any) => void): void;
23
+ }
24
+ export {};
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  /*
5
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
5
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
8
8
  * the License. A copy of the License is located at
@@ -0,0 +1 @@
1
+ export declare const unGzipBase64AsJson: (gzipBase64: string) => Promise<any>;
@@ -0,0 +1,3 @@
1
+ export declare const convert: (stream: object) => Promise<Uint8Array>;
2
+ export declare const base64ToArrayBuffer: (base64: string) => Uint8Array;
3
+ export declare const gzipDecompressToString: (data: Uint8Array) => Promise<string>;
@@ -0,0 +1,3 @@
1
+ export declare const convert: (stream: object) => Promise<Uint8Array>;
2
+ export declare const base64ToArrayBuffer: (base64: string) => Uint8Array;
3
+ export declare const gzipDecompressToString: (data: Uint8Array) => Promise<string>;
@@ -0,0 +1,58 @@
1
+ import { AbstractInteractionsProvider } from './InteractionsProvider';
2
+ import { InteractionsOptions, AWSLexV2ProviderOptions, InteractionsResponse, InteractionsMessage } from '../types';
3
+ export declare class AWSLexV2Provider extends AbstractInteractionsProvider {
4
+ private _lexRuntimeServiceV2Client;
5
+ private _botsCompleteCallback;
6
+ /**
7
+ * Initialize Interactions with AWS configurations
8
+ * @param {InteractionsOptions} options - Configuration object for Interactions
9
+ */
10
+ constructor(options?: InteractionsOptions);
11
+ /**
12
+ * get provider name of the plugin
13
+ * @returns {string} name of the provider
14
+ */
15
+ getProviderName(): string;
16
+ /**
17
+ * Configure Interactions part with aws configuration
18
+ * @param {AWSLexV2ProviderOptions} config - Configuration of the Interactions
19
+ * @return {AWSLexV2ProviderOptions} - Current configuration
20
+ */
21
+ configure(config?: AWSLexV2ProviderOptions): AWSLexV2ProviderOptions;
22
+ /**
23
+ * Send a message to a bot
24
+ * @async
25
+ * @param {string} botname - Bot name to send the message
26
+ * @param {string | InteractionsMessage} message - message to send to the bot
27
+ * @return {Promise<InteractionsResponse>} A promise resolves to the response from the bot
28
+ */
29
+ sendMessage(botname: string, message: string | InteractionsMessage): Promise<InteractionsResponse>;
30
+ /**
31
+ * Attach a onComplete callback function to a bot.
32
+ * The callback is called once the bot's intent is fulfilled
33
+ * @param {string} botname - Bot name to attach the onComplete callback
34
+ * @param {(err: Error | null, confirmation: InteractionsResponse) => void} callback - called when Intent Fulfilled
35
+ */
36
+ onComplete(botname: string, callback: (err: Error | null, confirmation: InteractionsResponse) => void): void;
37
+ /**
38
+ * @private
39
+ * call onComplete callback for a bot if configured
40
+ */
41
+ private _reportBotStatus;
42
+ /**
43
+ * Format UtteranceCommandOutput's response
44
+ * decompress attributes
45
+ * update audioStream format
46
+ */
47
+ private _formatUtteranceCommandOutput;
48
+ /**
49
+ * handle client's `RecognizeTextCommand`
50
+ * used for sending simple text message
51
+ */
52
+ private _handleRecognizeTextCommand;
53
+ /**
54
+ * handle client's `RecognizeUtteranceCommand`
55
+ * used for obj text or obj voice message
56
+ */
57
+ private _handleRecognizeUtteranceCommand;
58
+ }
@@ -0,0 +1,11 @@
1
+ import { InteractionsProvider, InteractionsOptions, InteractionsResponse } from '../types';
2
+ export declare abstract class AbstractInteractionsProvider implements InteractionsProvider {
3
+ protected _config: InteractionsOptions;
4
+ constructor(options?: InteractionsOptions);
5
+ configure(config?: InteractionsOptions): InteractionsOptions;
6
+ getCategory(): string;
7
+ abstract getProviderName(): string;
8
+ protected get options(): InteractionsOptions;
9
+ abstract sendMessage(botname: string, message: string | Object): Promise<object>;
10
+ abstract onComplete(botname: string, callback: (err: any, confirmation: InteractionsResponse) => void): any;
11
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
6
6
  * the License. A copy of the License is located at
@@ -0,0 +1,3 @@
1
+ export { AWSLexProvider } from './AWSLexProvider';
2
+ export { AWSLexV2Provider } from './AWSLexV2Provider';
3
+ export { AbstractInteractionsProvider } from './InteractionsProvider';
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
3
  /*
5
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
5
  *
7
6
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
8
7
  * the License. A copy of the License is located at
@@ -13,7 +12,10 @@ var tslib_1 = require("tslib");
13
12
  * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
14
13
  * and limitations under the License.
15
14
  */
16
- tslib_1.__exportStar(require("./AWSLexProvider"), exports);
17
- tslib_1.__exportStar(require("./AWSLexV2Provider"), exports);
18
- tslib_1.__exportStar(require("./InteractionsProvider"), exports);
15
+ var AWSLexProvider_1 = require("./AWSLexProvider");
16
+ exports.AWSLexProvider = AWSLexProvider_1.AWSLexProvider;
17
+ var AWSLexV2Provider_1 = require("./AWSLexV2Provider");
18
+ exports.AWSLexV2Provider = AWSLexV2Provider_1.AWSLexV2Provider;
19
+ var InteractionsProvider_1 = require("./InteractionsProvider");
20
+ exports.AbstractInteractionsProvider = InteractionsProvider_1.AbstractInteractionsProvider;
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;GAWG;AACH,2DAAiC;AACjC,6DAAmC;AACnC,iEAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;GAWG;AACH,mDAAkD;AAAzC,0CAAA,cAAc,CAAA;AACvB,uDAAsD;AAA7C,8CAAA,gBAAgB,CAAA;AACzB,+DAAsE;AAA7D,8DAAA,4BAA4B,CAAA"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export { Interactions } from './Interactions';
2
+ export * from './types';
3
+ export { AbstractInteractionsProvider } from './Providers/InteractionsProvider';
4
+ export { AWSLexProvider } from './Providers/AWSLexProvider';
5
+ export { AWSLexV2Provider } from './Providers/AWSLexV2Provider';
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
6
6
  * the License. A copy of the License is located at
@@ -12,10 +12,12 @@
12
12
  * and limitations under the License.
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- var tslib_1 = require("tslib");
16
15
  var Interactions_1 = require("./Interactions");
17
16
  exports.Interactions = Interactions_1.Interactions;
18
- tslib_1.__exportStar(require("./Providers/InteractionsProvider"), exports);
19
- tslib_1.__exportStar(require("./Providers/AWSLexProvider"), exports);
20
- tslib_1.__exportStar(require("./Providers/AWSLexV2Provider"), exports);
17
+ var InteractionsProvider_1 = require("./Providers/InteractionsProvider");
18
+ exports.AbstractInteractionsProvider = InteractionsProvider_1.AbstractInteractionsProvider;
19
+ var AWSLexProvider_1 = require("./Providers/AWSLexProvider");
20
+ exports.AWSLexProvider = AWSLexProvider_1.AWSLexProvider;
21
+ var AWSLexV2Provider_1 = require("./Providers/AWSLexV2Provider");
22
+ exports.AWSLexV2Provider = AWSLexV2Provider_1.AWSLexV2Provider;
21
23
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,+CAA8C;AAArC,sCAAA,YAAY,CAAA;AAErB,2EAAiD;AACjD,qEAA2C;AAC3C,uEAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,+CAA8C;AAArC,sCAAA,YAAY,CAAA;AAErB,yEAAgF;AAAvE,8DAAA,4BAA4B,CAAA;AACrC,6DAA4D;AAAnD,0CAAA,cAAc,CAAA;AACvB,iEAAgE;AAAvD,8CAAA,gBAAgB,CAAA"}
@@ -0,0 +1,16 @@
1
+ export interface InteractionsOptions {
2
+ [key: string]: any;
3
+ }
4
+ export declare type InteractionsTextMessage = {
5
+ content: string;
6
+ options: {
7
+ messageType: 'text';
8
+ };
9
+ };
10
+ export declare type InteractionsVoiceMessage = {
11
+ content: object;
12
+ options: {
13
+ messageType: 'voice';
14
+ };
15
+ };
16
+ export declare type InteractionsMessage = InteractionsTextMessage | InteractionsVoiceMessage;
@@ -0,0 +1,12 @@
1
+ import { InteractionsOptions } from './Interactions';
2
+ import { InteractionsResponse } from './Response';
3
+ export interface InteractionsProvider {
4
+ configure(config: InteractionsOptions): InteractionsOptions;
5
+ getCategory(): string;
6
+ getProviderName(): string;
7
+ sendMessage(botname: string, message: string | Object): Promise<object>;
8
+ onComplete(botname: string, callback: (err: any, confirmation: InteractionsResponse) => void): any;
9
+ }
10
+ export interface InteractionsProviders {
11
+ [key: string]: InteractionsProvider;
12
+ }
@@ -0,0 +1,10 @@
1
+ export interface AWSLexProviderOption {
2
+ name: string;
3
+ alias: string;
4
+ region: string;
5
+ providerName?: string;
6
+ onComplete?(botname: string, callback: (err: any, confirmation: any) => void): void;
7
+ }
8
+ export interface AWSLexProviderOptions {
9
+ [key: string]: AWSLexProviderOption;
10
+ }
@@ -0,0 +1,12 @@
1
+ export interface AWSLexV2ProviderOption {
2
+ name: string;
3
+ botId: string;
4
+ aliasId: string;
5
+ localeId: string;
6
+ region: string;
7
+ providerName: string;
8
+ onComplete?(botname: string, callback: (err: any, confirmation: any) => void): void;
9
+ }
10
+ export interface AWSLexV2ProviderOptions {
11
+ [key: string]: AWSLexV2ProviderOption;
12
+ }
@@ -0,0 +1,3 @@
1
+ export declare type InteractionsResponse = {
2
+ [key: string]: any;
3
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
6
6
  * the License. A copy of the License is located at
@@ -0,0 +1,5 @@
1
+ export * from './Interactions';
2
+ export * from './Provider';
3
+ export * from './Providers/AWSLexProvider';
4
+ export * from './Providers/AWSLexV2Provider';
5
+ export * from './Response';
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __extends, __generator } from "tslib";
2
2
  /*
3
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
6
6
  * the License. A copy of the License is located at
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -1,3 +1,3 @@
1
- export * from './AWSLexProvider';
2
- export * from './AWSLexV2Provider';
3
- export * from './InteractionsProvider';
1
+ export { AWSLexProvider } from './AWSLexProvider';
2
+ export { AWSLexV2Provider } from './AWSLexV2Provider';
3
+ export { AbstractInteractionsProvider } from './InteractionsProvider';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -10,7 +10,7 @@
10
10
  * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
11
  * and limitations under the License.
12
12
  */
13
- export * from './AWSLexProvider';
14
- export * from './AWSLexV2Provider';
15
- export * from './InteractionsProvider';
13
+ export { AWSLexProvider } from './AWSLexProvider';
14
+ export { AWSLexV2Provider } from './AWSLexV2Provider';
15
+ export { AbstractInteractionsProvider } from './InteractionsProvider';
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export { Interactions } from './Interactions';
2
2
  export * from './types';
3
- export * from './Providers/InteractionsProvider';
4
- export * from './Providers/AWSLexProvider';
5
- export * from './Providers/AWSLexV2Provider';
3
+ export { AbstractInteractionsProvider } from './Providers/InteractionsProvider';
4
+ export { AWSLexProvider } from './Providers/AWSLexProvider';
5
+ export { AWSLexV2Provider } from './Providers/AWSLexV2Provider';
package/lib-esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -11,7 +11,7 @@
11
11
  * and limitations under the License.
12
12
  */
13
13
  export { Interactions } from './Interactions';
14
- export * from './Providers/InteractionsProvider';
15
- export * from './Providers/AWSLexProvider';
16
- export * from './Providers/AWSLexV2Provider';
14
+ export { AbstractInteractionsProvider } from './Providers/InteractionsProvider';
15
+ export { AWSLexProvider } from './Providers/AWSLexProvider';
16
+ export { AWSLexV2Provider } from './Providers/AWSLexV2Provider';
17
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/interactions",
3
- "version": "4.0.49-next.32+4137aa79c",
3
+ "version": "4.0.49-next.36+580cda186",
4
4
  "description": "Interactions category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -28,7 +28,8 @@
28
28
  "build": "npm run clean && npm run build:esm && npm run build:cjs",
29
29
  "clean": "rimraf lib-esm lib dist",
30
30
  "format": "echo \"Not implemented\"",
31
- "lint": "tslint 'src/**/*.ts'"
31
+ "lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
32
+ "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 88.6"
32
33
  },
33
34
  "repository": {
34
35
  "type": "git",
@@ -46,7 +47,7 @@
46
47
  "src"
47
48
  ],
48
49
  "dependencies": {
49
- "@aws-amplify/core": "4.6.2-next.32+4137aa79c",
50
+ "@aws-amplify/core": "4.6.2-next.36+580cda186",
50
51
  "@aws-sdk/client-lex-runtime-service": "3.186.0",
51
52
  "@aws-sdk/client-lex-runtime-v2": "3.186.0",
52
53
  "base-64": "1.0.0",
@@ -98,5 +99,5 @@
98
99
  "lib-esm"
99
100
  ]
100
101
  },
101
- "gitHead": "4137aa79c6c2362afc581d3915d77f5067ea6700"
102
+ "gitHead": "580cda186f10ead3bb99acb7a4825c435c657d33"
102
103
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -10,6 +10,6 @@
10
10
  * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
11
  * and limitations under the License.
12
12
  */
13
- export * from './AWSLexProvider';
14
- export * from './AWSLexV2Provider';
15
- export * from './InteractionsProvider';
13
+ export { AWSLexProvider } from './AWSLexProvider';
14
+ export { AWSLexV2Provider } from './AWSLexV2Provider';
15
+ export { AbstractInteractionsProvider } from './InteractionsProvider';
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -13,6 +13,6 @@
13
13
 
14
14
  export { Interactions } from './Interactions';
15
15
  export * from './types';
16
- export * from './Providers/InteractionsProvider';
17
- export * from './Providers/AWSLexProvider';
18
- export * from './Providers/AWSLexV2Provider';
16
+ export { AbstractInteractionsProvider } from './Providers/InteractionsProvider';
17
+ export { AWSLexProvider } from './Providers/AWSLexProvider';
18
+ export { AWSLexV2Provider } from './Providers/AWSLexV2Provider';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at