@aws-amplify/interactions 4.1.9 → 4.1.10-unstable.2

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 (83) hide show
  1. package/CHANGELOG.md +0 -8
  2. package/lib/.tsbuildinfo +3 -0
  3. package/lib/Interactions.d.ts +24 -0
  4. package/lib/Interactions.js +4 -50
  5. package/lib/Interactions.js.map +1 -1
  6. package/lib/Providers/AWSLexProvider.d.ts +24 -0
  7. package/lib/Providers/AWSLexProvider.js +7 -76
  8. package/lib/Providers/AWSLexProvider.js.map +1 -1
  9. package/lib/Providers/AWSLexProviderHelper/commonUtils.d.ts +1 -0
  10. package/lib/Providers/AWSLexProviderHelper/commonUtils.js +5 -50
  11. package/lib/Providers/AWSLexProviderHelper/commonUtils.js.map +1 -1
  12. package/lib/Providers/AWSLexProviderHelper/utils.d.ts +3 -0
  13. package/lib/Providers/AWSLexProviderHelper/utils.js +7 -52
  14. package/lib/Providers/AWSLexProviderHelper/utils.js.map +1 -1
  15. package/lib/Providers/AWSLexProviderHelper/utils.native.d.ts +3 -0
  16. package/lib/Providers/AWSLexProviderHelper/utils.native.js +11 -56
  17. package/lib/Providers/AWSLexProviderHelper/utils.native.js.map +1 -1
  18. package/lib/Providers/AWSLexV2Provider.d.ts +58 -0
  19. package/lib/Providers/AWSLexV2Provider.js +17 -86
  20. package/lib/Providers/AWSLexV2Provider.js.map +1 -1
  21. package/lib/Providers/InteractionsProvider.d.ts +11 -0
  22. package/lib/Providers/InteractionsProvider.js +5 -25
  23. package/lib/Providers/InteractionsProvider.js.map +1 -1
  24. package/lib/Providers/index.d.ts +3 -0
  25. package/lib/Providers/index.js +8 -18
  26. package/lib/Providers/index.js.map +1 -1
  27. package/lib/index.d.ts +5 -0
  28. package/lib/index.js +8 -22
  29. package/lib/index.js.map +1 -1
  30. package/lib/types/Interactions.d.ts +16 -0
  31. package/lib/types/Provider.d.ts +12 -0
  32. package/lib/types/Providers/AWSLexProvider.d.ts +10 -0
  33. package/lib/types/Providers/AWSLexV2Provider.d.ts +12 -0
  34. package/lib/types/Response.d.ts +3 -0
  35. package/lib/types/Response.js +2 -12
  36. package/lib/types/Response.js.map +1 -1
  37. package/lib/types/index.d.ts +5 -0
  38. package/lib-esm/.tsbuildinfo +3 -0
  39. package/lib-esm/Interactions.js +1 -47
  40. package/lib-esm/Interactions.js.map +1 -1
  41. package/lib-esm/Providers/AWSLexProvider.js +3 -72
  42. package/lib-esm/Providers/AWSLexProvider.js.map +1 -1
  43. package/lib-esm/Providers/AWSLexProviderHelper/commonUtils.js +3 -48
  44. package/lib-esm/Providers/AWSLexProviderHelper/commonUtils.js.map +1 -1
  45. package/lib-esm/Providers/AWSLexProviderHelper/utils.js +3 -48
  46. package/lib-esm/Providers/AWSLexProviderHelper/utils.js.map +1 -1
  47. package/lib-esm/Providers/AWSLexProviderHelper/utils.native.js +3 -48
  48. package/lib-esm/Providers/AWSLexProviderHelper/utils.native.js.map +1 -1
  49. package/lib-esm/Providers/AWSLexV2Provider.js +3 -72
  50. package/lib-esm/Providers/AWSLexV2Provider.js.map +1 -1
  51. package/lib-esm/Providers/InteractionsProvider.js +3 -23
  52. package/lib-esm/Providers/InteractionsProvider.js.map +1 -1
  53. package/lib-esm/Providers/index.d.ts +3 -3
  54. package/lib-esm/Providers/index.js +5 -15
  55. package/lib-esm/Providers/index.js.map +1 -1
  56. package/lib-esm/index.d.ts +4 -9
  57. package/lib-esm/index.js +6 -21
  58. package/lib-esm/index.js.map +1 -1
  59. package/lib-esm/types/Response.js +2 -12
  60. package/lib-esm/types/Response.js.map +1 -1
  61. package/package.json +13 -9
  62. package/src/Interactions.ts +2 -12
  63. package/src/Providers/AWSLexProvider.ts +2 -12
  64. package/src/Providers/AWSLexProviderHelper/commonUtils.ts +2 -12
  65. package/src/Providers/AWSLexProviderHelper/utils.native.ts +2 -12
  66. package/src/Providers/AWSLexProviderHelper/utils.ts +2 -12
  67. package/src/Providers/AWSLexV2Provider.ts +2 -12
  68. package/src/Providers/InteractionsProvider.ts +2 -12
  69. package/src/Providers/index.ts +5 -15
  70. package/src/index.ts +6 -23
  71. package/src/types/Interactions.ts +2 -12
  72. package/src/types/Provider.ts +2 -12
  73. package/src/types/Providers/AWSLexProvider.ts +2 -12
  74. package/src/types/Providers/AWSLexV2Provider.ts +2 -12
  75. package/src/types/Response.ts +2 -12
  76. package/src/types/index.ts +2 -12
  77. package/build.js +0 -5
  78. package/dist/aws-amplify-interactions.js +0 -33213
  79. package/dist/aws-amplify-interactions.js.map +0 -1
  80. package/dist/aws-amplify-interactions.min.js +0 -116
  81. package/dist/aws-amplify-interactions.min.js.map +0 -1
  82. package/index.js +0 -7
  83. package/webpack.config.dev.js +0 -6
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { gunzip, strFromU8 } from 'fflate';
15
5
 
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  import { AbstractInteractionsProvider } from './InteractionsProvider';
14
4
  import {
15
5
  InteractionsOptions,
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import {
15
5
  InteractionsProvider,
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
13
- export * from './AWSLexProvider';
14
- export * from './AWSLexV2Provider';
15
- export * from './InteractionsProvider';
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ export { AWSLexProvider } from './AWSLexProvider';
4
+ export { AWSLexV2Provider } from './AWSLexV2Provider';
5
+ export { AbstractInteractionsProvider } from './InteractionsProvider';
package/src/index.ts CHANGED
@@ -1,25 +1,8 @@
1
- /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
13
- import { Interactions } from './Interactions';
14
-
15
- /**
16
- * @deprecated use named import
17
- */
18
- export default Interactions;
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
19
3
 
4
+ export { Interactions } from './Interactions';
20
5
  export * from './types';
21
- export * from './Providers/InteractionsProvider';
22
- export * from './Providers/AWSLexProvider';
23
- export * from './Providers/AWSLexV2Provider';
24
-
25
- export { Interactions };
6
+ export { AbstractInteractionsProvider } from './Providers/InteractionsProvider';
7
+ export { AWSLexProvider } from './Providers/AWSLexProvider';
8
+ export { AWSLexV2Provider } from './Providers/AWSLexV2Provider';
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  export interface InteractionsOptions {
14
4
  [key: string]: any;
15
5
  }
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  import { InteractionsOptions } from './Interactions';
14
4
  import { InteractionsResponse } from './Response';
15
5
 
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  export interface AWSLexProviderOption {
14
4
  name: string;
15
5
  alias: string;
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  export interface AWSLexV2ProviderOption {
14
4
  name: string;
15
5
  botId: string;
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  export type InteractionsResponse = {
15
5
  [key: string]: any;
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  export * from './Interactions';
14
4
  export * from './Provider';
15
5
  export * from './Providers/AWSLexProvider';
package/build.js DELETED
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- const build = require('../../scripts/build');
4
-
5
- build(process.argv[2], process.argv[3]);