chatbot-nc 2.0.81 → 2.0.83

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 (185) hide show
  1. package/dist/esm/aws/services/AESEncryptionUsingKMS.js +11 -20
  2. package/dist/esm/aws/services/AESEncryptionUsingKMS.js.map +1 -1
  3. package/dist/esm/aws/services/AWSChimeMeeting.js +15 -24
  4. package/dist/esm/aws/services/AWSChimeMeeting.js.map +1 -1
  5. package/dist/esm/aws/services/AWSCodepipeline.js +21 -34
  6. package/dist/esm/aws/services/AWSCodepipeline.js.map +1 -1
  7. package/dist/esm/aws/services/AWSComprehend.js +3 -12
  8. package/dist/esm/aws/services/AWSComprehend.js.map +1 -1
  9. package/dist/esm/aws/services/AWSConnect.js +135 -146
  10. package/dist/esm/aws/services/AWSConnect.js.map +1 -1
  11. package/dist/esm/aws/services/AWSConnectCases.js +12 -21
  12. package/dist/esm/aws/services/AWSConnectCases.js.map +1 -1
  13. package/dist/esm/aws/services/AWSConnectParticipant.js +12 -21
  14. package/dist/esm/aws/services/AWSConnectParticipant.js.map +1 -1
  15. package/dist/esm/aws/services/AWSCustomerProfiles.js +6 -15
  16. package/dist/esm/aws/services/AWSCustomerProfiles.js.map +1 -1
  17. package/dist/esm/aws/services/AWSDynamoDb.js +9 -18
  18. package/dist/esm/aws/services/AWSDynamoDb.js.map +1 -1
  19. package/dist/esm/aws/services/AWSGateway.js +6 -15
  20. package/dist/esm/aws/services/AWSGateway.js.map +1 -1
  21. package/dist/esm/aws/services/AWSGatewayManagement.js +6 -15
  22. package/dist/esm/aws/services/AWSGatewayManagement.js.map +1 -1
  23. package/dist/esm/aws/services/AWSLambda.js +4 -13
  24. package/dist/esm/aws/services/AWSLambda.js.map +1 -1
  25. package/dist/esm/aws/services/AWSLexModel.js +63 -72
  26. package/dist/esm/aws/services/AWSLexModel.js.map +1 -1
  27. package/dist/esm/aws/services/AWSLexRuntime.js +6 -15
  28. package/dist/esm/aws/services/AWSLexRuntime.js.map +1 -1
  29. package/dist/esm/aws/services/AWSPinpoint.js +9 -18
  30. package/dist/esm/aws/services/AWSPinpoint.js.map +1 -1
  31. package/dist/esm/aws/services/AWSPinpointSMSVoice.js +18 -27
  32. package/dist/esm/aws/services/AWSPinpointSMSVoice.js.map +1 -1
  33. package/dist/esm/aws/services/AWSQConnect.js +18 -27
  34. package/dist/esm/aws/services/AWSQConnect.js.map +1 -1
  35. package/dist/esm/aws/services/AWSS3.js +28 -37
  36. package/dist/esm/aws/services/AWSS3.js.map +1 -1
  37. package/dist/esm/aws/services/AWSSES.js +4 -13
  38. package/dist/esm/aws/services/AWSSES.js.map +1 -1
  39. package/dist/esm/aws/services/AWSSNS.js +11 -20
  40. package/dist/esm/aws/services/AWSSNS.js.map +1 -1
  41. package/dist/esm/aws/services/AWSSSM.js +3 -12
  42. package/dist/esm/aws/services/AWSSSM.js.map +1 -1
  43. package/dist/esm/aws/services/AWSSTS.js +3 -12
  44. package/dist/esm/aws/services/AWSSTS.js.map +1 -1
  45. package/dist/esm/aws/services/AWSTranslate.js +3 -12
  46. package/dist/esm/aws/services/AWSTranslate.js.map +1 -1
  47. package/dist/esm/communication/communicationService.js +29 -38
  48. package/dist/esm/communication/communicationService.js.map +1 -1
  49. package/dist/esm/communication/index.js +125 -148
  50. package/dist/esm/communication/index.js.map +1 -1
  51. package/dist/esm/hashing/idObfuscation.js +29 -43
  52. package/dist/esm/hashing/idObfuscation.js.map +1 -1
  53. package/dist/esm/hashing/index.js +141 -168
  54. package/dist/esm/hashing/index.js.map +1 -1
  55. package/dist/esm/repository/dynamodb.js +369 -398
  56. package/dist/esm/repository/dynamodb.js.map +1 -1
  57. package/dist/esm/shortner/index.js +20 -31
  58. package/dist/esm/shortner/index.js.map +1 -1
  59. package/dist/esm/utils/common.js +2 -11
  60. package/dist/esm/utils/common.js.map +1 -1
  61. package/dist/esm/utils/intent.js +24 -33
  62. package/dist/esm/utils/intent.js.map +1 -1
  63. package/dist/esm/webbookEvent/index.js +105 -128
  64. package/dist/esm/webbookEvent/index.js.map +1 -1
  65. package/package.json +4 -5
  66. package/dist/cjs/aws/index.d.ts +0 -178
  67. package/dist/cjs/aws/index.js +0 -52
  68. package/dist/cjs/aws/index.js.map +0 -1
  69. package/dist/cjs/aws/services/AESEncryptionUsingKMS.d.ts +0 -4
  70. package/dist/cjs/aws/services/AESEncryptionUsingKMS.js +0 -110
  71. package/dist/cjs/aws/services/AESEncryptionUsingKMS.js.map +0 -1
  72. package/dist/cjs/aws/services/AWSChimeMeeting.d.ts +0 -8
  73. package/dist/cjs/aws/services/AWSChimeMeeting.js +0 -108
  74. package/dist/cjs/aws/services/AWSChimeMeeting.js.map +0 -1
  75. package/dist/cjs/aws/services/AWSCodepipeline.d.ts +0 -16
  76. package/dist/cjs/aws/services/AWSCodepipeline.js +0 -56
  77. package/dist/cjs/aws/services/AWSCodepipeline.js.map +0 -1
  78. package/dist/cjs/aws/services/AWSComprehend.d.ts +0 -3
  79. package/dist/cjs/aws/services/AWSComprehend.js +0 -39
  80. package/dist/cjs/aws/services/AWSComprehend.js.map +0 -1
  81. package/dist/cjs/aws/services/AWSConnect.d.ts +0 -296
  82. package/dist/cjs/aws/services/AWSConnect.js +0 -876
  83. package/dist/cjs/aws/services/AWSConnect.js.map +0 -1
  84. package/dist/cjs/aws/services/AWSConnectCases.d.ts +0 -7
  85. package/dist/cjs/aws/services/AWSConnectCases.js +0 -90
  86. package/dist/cjs/aws/services/AWSConnectCases.js.map +0 -1
  87. package/dist/cjs/aws/services/AWSConnectParticipant.d.ts +0 -7
  88. package/dist/cjs/aws/services/AWSConnectParticipant.js +0 -96
  89. package/dist/cjs/aws/services/AWSConnectParticipant.js.map +0 -1
  90. package/dist/cjs/aws/services/AWSCustomerProfiles.d.ts +0 -5
  91. package/dist/cjs/aws/services/AWSCustomerProfiles.js +0 -54
  92. package/dist/cjs/aws/services/AWSCustomerProfiles.js.map +0 -1
  93. package/dist/cjs/aws/services/AWSDynamoDb.d.ts +0 -6
  94. package/dist/cjs/aws/services/AWSDynamoDb.js +0 -86
  95. package/dist/cjs/aws/services/AWSDynamoDb.js.map +0 -1
  96. package/dist/cjs/aws/services/AWSGateway.d.ts +0 -5
  97. package/dist/cjs/aws/services/AWSGateway.js +0 -54
  98. package/dist/cjs/aws/services/AWSGateway.js.map +0 -1
  99. package/dist/cjs/aws/services/AWSGatewayManagement.d.ts +0 -5
  100. package/dist/cjs/aws/services/AWSGatewayManagement.js +0 -58
  101. package/dist/cjs/aws/services/AWSGatewayManagement.js.map +0 -1
  102. package/dist/cjs/aws/services/AWSLambda.d.ts +0 -3
  103. package/dist/cjs/aws/services/AWSLambda.js +0 -34
  104. package/dist/cjs/aws/services/AWSLambda.js.map +0 -1
  105. package/dist/cjs/aws/services/AWSLexModel.d.ts +0 -24
  106. package/dist/cjs/aws/services/AWSLexModel.js +0 -396
  107. package/dist/cjs/aws/services/AWSLexModel.js.map +0 -1
  108. package/dist/cjs/aws/services/AWSLexRuntime.d.ts +0 -5
  109. package/dist/cjs/aws/services/AWSLexRuntime.js +0 -56
  110. package/dist/cjs/aws/services/AWSLexRuntime.js.map +0 -1
  111. package/dist/cjs/aws/services/AWSPinpoint.d.ts +0 -6
  112. package/dist/cjs/aws/services/AWSPinpoint.js +0 -74
  113. package/dist/cjs/aws/services/AWSPinpoint.js.map +0 -1
  114. package/dist/cjs/aws/services/AWSPinpointSMSVoice.d.ts +0 -9
  115. package/dist/cjs/aws/services/AWSPinpointSMSVoice.js +0 -120
  116. package/dist/cjs/aws/services/AWSPinpointSMSVoice.js.map +0 -1
  117. package/dist/cjs/aws/services/AWSQConnect.d.ts +0 -9
  118. package/dist/cjs/aws/services/AWSQConnect.js +0 -127
  119. package/dist/cjs/aws/services/AWSQConnect.js.map +0 -1
  120. package/dist/cjs/aws/services/AWSS3.d.ts +0 -11
  121. package/dist/cjs/aws/services/AWSS3.js +0 -195
  122. package/dist/cjs/aws/services/AWSS3.js.map +0 -1
  123. package/dist/cjs/aws/services/AWSSES.d.ts +0 -4
  124. package/dist/cjs/aws/services/AWSSES.js +0 -32
  125. package/dist/cjs/aws/services/AWSSES.js.map +0 -1
  126. package/dist/cjs/aws/services/AWSSNS.d.ts +0 -12
  127. package/dist/cjs/aws/services/AWSSNS.js +0 -82
  128. package/dist/cjs/aws/services/AWSSNS.js.map +0 -1
  129. package/dist/cjs/aws/services/AWSSSM.d.ts +0 -3
  130. package/dist/cjs/aws/services/AWSSSM.js +0 -53
  131. package/dist/cjs/aws/services/AWSSSM.js.map +0 -1
  132. package/dist/cjs/aws/services/AWSSTS.d.ts +0 -4
  133. package/dist/cjs/aws/services/AWSSTS.js +0 -37
  134. package/dist/cjs/aws/services/AWSSTS.js.map +0 -1
  135. package/dist/cjs/aws/services/AWSTranslate.d.ts +0 -4
  136. package/dist/cjs/aws/services/AWSTranslate.js +0 -36
  137. package/dist/cjs/aws/services/AWSTranslate.js.map +0 -1
  138. package/dist/cjs/communication/communicationService.d.ts +0 -20
  139. package/dist/cjs/communication/communicationService.js +0 -292
  140. package/dist/cjs/communication/communicationService.js.map +0 -1
  141. package/dist/cjs/communication/index.d.ts +0 -49
  142. package/dist/cjs/communication/index.js +0 -242
  143. package/dist/cjs/communication/index.js.map +0 -1
  144. package/dist/cjs/config/SSMParameters.d.ts +0 -26
  145. package/dist/cjs/config/SSMParameters.js +0 -34
  146. package/dist/cjs/config/SSMParameters.js.map +0 -1
  147. package/dist/cjs/enum/index.d.ts +0 -236
  148. package/dist/cjs/enum/index.js +0 -289
  149. package/dist/cjs/enum/index.js.map +0 -1
  150. package/dist/cjs/hashing/idObfuscation.d.ts +0 -20
  151. package/dist/cjs/hashing/idObfuscation.js +0 -70
  152. package/dist/cjs/hashing/idObfuscation.js.map +0 -1
  153. package/dist/cjs/hashing/index.d.ts +0 -33
  154. package/dist/cjs/hashing/index.js +0 -219
  155. package/dist/cjs/hashing/index.js.map +0 -1
  156. package/dist/cjs/index.d.ts +0 -12
  157. package/dist/cjs/index.js +0 -52
  158. package/dist/cjs/index.js.map +0 -1
  159. package/dist/cjs/logger/index.d.ts +0 -3
  160. package/dist/cjs/logger/index.js +0 -70
  161. package/dist/cjs/logger/index.js.map +0 -1
  162. package/dist/cjs/logger/loggerTransports.d.ts +0 -11
  163. package/dist/cjs/logger/loggerTransports.js +0 -72
  164. package/dist/cjs/logger/loggerTransports.js.map +0 -1
  165. package/dist/cjs/repository/dynamodb.d.ts +0 -121
  166. package/dist/cjs/repository/dynamodb.js +0 -725
  167. package/dist/cjs/repository/dynamodb.js.map +0 -1
  168. package/dist/cjs/shortner/index.d.ts +0 -4
  169. package/dist/cjs/shortner/index.js +0 -45
  170. package/dist/cjs/shortner/index.js.map +0 -1
  171. package/dist/cjs/utils/common.d.ts +0 -7
  172. package/dist/cjs/utils/common.js +0 -208
  173. package/dist/cjs/utils/common.js.map +0 -1
  174. package/dist/cjs/utils/date-format.d.ts +0 -16
  175. package/dist/cjs/utils/date-format.js +0 -282
  176. package/dist/cjs/utils/date-format.js.map +0 -1
  177. package/dist/cjs/utils/index.d.ts +0 -37
  178. package/dist/cjs/utils/index.js +0 -12
  179. package/dist/cjs/utils/index.js.map +0 -1
  180. package/dist/cjs/utils/intent.d.ts +0 -12
  181. package/dist/cjs/utils/intent.js +0 -214
  182. package/dist/cjs/utils/intent.js.map +0 -1
  183. package/dist/cjs/webbookEvent/index.d.ts +0 -22
  184. package/dist/cjs/webbookEvent/index.js +0 -174
  185. package/dist/cjs/webbookEvent/index.js.map +0 -1
@@ -1,876 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Connect = exports.disassociateStorageConfig = exports.associateStorageConfig = exports.updateHoursOfOperation = exports.deleteRoutingProfile = exports.updateRoutingProfile = exports.getContactFlowList = exports.updateQueueOutboundCallerConfig = exports.updateSecurityProfile = exports.updateInstanceAttributes = exports.describeUser = exports.updateContact = exports.describeContact = exports.stopContact = exports.associateApprovedOrigin = exports.describeInstance = exports.associatePhoneNumberContactFlow = exports.searchAvailablePhoneNumber = exports.addSecurityProfile = exports.getSecurityProfileList = exports.updateContactFlowContent = exports.updateContactFlowModuleContent = exports.getAgentList = exports.getListPrompts = exports.createContactFlowModule = exports.deleteAgent = exports.createAgent = exports.getCurrentUserMetricData = exports.getCurrentMetricData = exports.getMetricData = exports.getMetricV2Data = exports.updateContactAttributes = exports.getPhoneNumberList = exports.claimPhoneNumber = exports.getHoursOfOperation = exports.createHoursOfOperation = exports.createRoutingProfile = exports.deleteQueue = exports.createQueue = exports.createContactFlow = exports.createInstance = exports.startTaskContact = exports.getContactAttributes = void 0;
13
- const client_connect_1 = require("@aws-sdk/client-connect");
14
- const awsRegion = process.env.AWS_DEFAULT_REGION || 'us-east-1';
15
- const client = new client_connect_1.ConnectClient({
16
- region: awsRegion,
17
- });
18
- /**
19
- * Get the contact details
20
- * @param instanceId // this is use to filter the and connect to the perticular instance of aws connect
21
- * @param CID // this is the connect contact id.
22
- * @returns
23
- */
24
- const getContact = (instanceId, CID) => __awaiter(void 0, void 0, void 0, function* () {
25
- console.log('adding item to db');
26
- try {
27
- const input = {
28
- InstanceId: instanceId,
29
- InitialContactId: CID
30
- };
31
- console.log("get contact attributes params", input);
32
- const command = new client_connect_1.GetContactAttributesCommand(input);
33
- const response = yield client.send(command);
34
- return response;
35
- }
36
- catch (error) {
37
- console.log(error);
38
- return null;
39
- }
40
- });
41
- /**
42
- * This is used to start chat with contact.
43
- * @param params // parameters to start chat with contact
44
- * @returns
45
- */
46
- const startChatContact = (params) => __awaiter(void 0, void 0, void 0, function* () {
47
- try {
48
- const command = new client_connect_1.StartChatContactCommand(params);
49
- const response = yield client.send(command);
50
- console.log("Created new chat results");
51
- return response;
52
- }
53
- catch (error) {
54
- console.log(error);
55
- throw error;
56
- }
57
- });
58
- /**
59
- * This is used to start contact streaming.
60
- * @param params parameters to start streaming contact
61
- * @returns
62
- */
63
- const startContactStreaming = (params) => __awaiter(void 0, void 0, void 0, function* () {
64
- try {
65
- console.log("get contact attributes params", params);
66
- const command = new client_connect_1.StartContactStreamingCommand(params);
67
- const response = yield client.send(command);
68
- console.log("Start Contact Streaming Result");
69
- return response;
70
- }
71
- catch (error) {
72
- console.log(error);
73
- throw error;
74
- }
75
- });
76
- /**
77
- * This is used to get Contact Attribute.
78
- * @param params parameters to get contact attribute
79
- * @returns
80
- */
81
- const getContactAttributes = (params) => __awaiter(void 0, void 0, void 0, function* () {
82
- try {
83
- const command = new client_connect_1.GetContactAttributesCommand(params);
84
- const response = yield client.send(command);
85
- return response;
86
- }
87
- catch (error) {
88
- console.error(error);
89
- throw new Error('error in aws sdk');
90
- }
91
- });
92
- exports.getContactAttributes = getContactAttributes;
93
- /**
94
- * This is used to start task contact.
95
- * @param params parameters to start task contact
96
- * @returns
97
- */
98
- const startTaskContact = (params) => __awaiter(void 0, void 0, void 0, function* () {
99
- try {
100
- const command = new client_connect_1.StartTaskContactCommand(params);
101
- const response = yield client.send(command);
102
- console.log('Start Task Contact');
103
- return response;
104
- }
105
- catch (error) {
106
- console.error(error);
107
- throw new Error('error in create task');
108
- }
109
- });
110
- exports.startTaskContact = startTaskContact;
111
- /**
112
- * This is used to create new instance.
113
- * @param params parameters is used to create new aws connect instance
114
- * @returns
115
- */
116
- const createInstance = (params) => __awaiter(void 0, void 0, void 0, function* () {
117
- try {
118
- const command = new client_connect_1.CreateInstanceCommand(params);
119
- const response = yield client.send(command);
120
- console.log('Instance Details ');
121
- return response;
122
- }
123
- catch (error) {
124
- console.error(error);
125
- throw new Error('error in create instance');
126
- }
127
- });
128
- exports.createInstance = createInstance;
129
- /**
130
- * This is used to create aws instance contact flow.
131
- * @param params parameters is used to create new aws connect contact flow
132
- * @returns
133
- */
134
- const createContactFlow = (params) => __awaiter(void 0, void 0, void 0, function* () {
135
- try {
136
- const command = new client_connect_1.CreateContactFlowCommand(params);
137
- const response = yield client.send(command);
138
- console.log('Contact Flow Details ');
139
- return response;
140
- }
141
- catch (error) {
142
- console.error(error);
143
- throw error;
144
- }
145
- });
146
- exports.createContactFlow = createContactFlow;
147
- /**
148
- * This is used to create aws instance queue.
149
- * @param params parameters is used to create connect instance queue
150
- * @returns
151
- */
152
- const createQueue = (params) => __awaiter(void 0, void 0, void 0, function* () {
153
- try {
154
- const command = new client_connect_1.CreateQueueCommand(params);
155
- const response = yield client.send(command);
156
- console.log('Queue Details');
157
- return response;
158
- }
159
- catch (error) {
160
- console.error(error);
161
- throw new Error('error in create queue');
162
- }
163
- });
164
- exports.createQueue = createQueue;
165
- /**
166
- * This is used to delete aws instance queue.
167
- * @param params parameters is used to delete connect instance queue
168
- * @returns
169
- */
170
- const deleteQueue = (params) => __awaiter(void 0, void 0, void 0, function* () {
171
- try {
172
- const command = new client_connect_1.DeleteQueueCommand(params);
173
- const response = yield client.send(command);
174
- console.log('Deleted Queue Details');
175
- return response;
176
- }
177
- catch (error) {
178
- console.error(error);
179
- throw new Error('error in deleet queue');
180
- }
181
- });
182
- exports.deleteQueue = deleteQueue;
183
- /**
184
- * This is used to create aws instance routing profile
185
- * @param params parameters is used to create connect instance routing profile
186
- * @returns
187
- */
188
- const createRoutingProfile = (params) => __awaiter(void 0, void 0, void 0, function* () {
189
- try {
190
- const command = new client_connect_1.CreateRoutingProfileCommand(params);
191
- const response = yield client.send(command);
192
- console.log('Routing Profile Details ');
193
- return response;
194
- }
195
- catch (error) {
196
- console.error(error);
197
- throw new Error('error in create routing profile');
198
- }
199
- });
200
- exports.createRoutingProfile = createRoutingProfile;
201
- /**
202
- * This is used to create hours of operation.
203
- * @param params parameters is used to create hours of operation
204
- * @returns
205
- */
206
- const createHoursOfOperation = (params) => __awaiter(void 0, void 0, void 0, function* () {
207
- try {
208
- const command = new client_connect_1.CreateHoursOfOperationCommand(params);
209
- const response = yield client.send(command);
210
- console.log('Create Hours Of Operation Details ');
211
- return response;
212
- }
213
- catch (error) {
214
- console.error(error);
215
- throw new Error('error in create Hours Of Operation');
216
- }
217
- });
218
- exports.createHoursOfOperation = createHoursOfOperation;
219
- /**
220
- * This method is used to get hours of operation details with id
221
- * @param params details to pass for getting details
222
- * @returns hoursOfOperation details
223
- */
224
- const getHoursOfOperation = (params) => __awaiter(void 0, void 0, void 0, function* () {
225
- try {
226
- const command = new client_connect_1.ListHoursOfOperationsCommand(params);
227
- const response = yield client.send(command);
228
- console.log('Get Hours Of Operation Command ');
229
- return response;
230
- }
231
- catch (error) {
232
- console.error(error);
233
- throw new Error('Error in get hours of Operation');
234
- }
235
- });
236
- exports.getHoursOfOperation = getHoursOfOperation;
237
- /**
238
- * This is used to claim the phone number.
239
- * @param params parameters is used to claim the phone number
240
- * @returns
241
- */
242
- const claimPhoneNumber = (params) => __awaiter(void 0, void 0, void 0, function* () {
243
- try {
244
- const command = new client_connect_1.ClaimPhoneNumberCommand(params);
245
- const response = yield client.send(command);
246
- console.log('Claim Phone Number for Instance ');
247
- return response;
248
- }
249
- catch (error) {
250
- console.error(error);
251
- throw new Error('error in claim phone number');
252
- }
253
- });
254
- exports.claimPhoneNumber = claimPhoneNumber;
255
- /**
256
- * This is used to phone number list in instance.
257
- * @param params parameters is used to phone number list in instance
258
- * @returns
259
- */
260
- const getPhoneNumberList = (params) => __awaiter(void 0, void 0, void 0, function* () {
261
- try {
262
- const command = new client_connect_1.ListPhoneNumbersV2Command(params);
263
- const response = yield client.send(command);
264
- console.log('List of Phone Number in Instance ');
265
- return response;
266
- }
267
- catch (error) {
268
- console.error(error);
269
- throw new Error('error in list of phone number in instance');
270
- }
271
- });
272
- exports.getPhoneNumberList = getPhoneNumberList;
273
- /**
274
- * This is used to update Contact Attribute.
275
- * @param params parameters to update contact attribute
276
- * @returns
277
- */
278
- const updateContactAttributes = (params) => __awaiter(void 0, void 0, void 0, function* () {
279
- try {
280
- const command = new client_connect_1.UpdateContactAttributesCommand(params);
281
- const response = yield client.send(command);
282
- console.log('update contact Attributes ');
283
- return response;
284
- }
285
- catch (error) {
286
- console.error(error);
287
- throw new Error('error in update contact attributes aws sdk');
288
- }
289
- });
290
- exports.updateContactAttributes = updateContactAttributes;
291
- /**
292
- * This is used to v2 metric data
293
- * @param params parameters to get historic metric v2 data
294
- * @returns
295
- */
296
- const getMetricV2Data = (params) => __awaiter(void 0, void 0, void 0, function* () {
297
- try {
298
- const command = new client_connect_1.GetMetricDataV2Command(params);
299
- const response = yield client.send(command);
300
- console.log('Get Metrics Data ');
301
- return response;
302
- }
303
- catch (error) {
304
- console.error(error);
305
- throw new Error('error in get historic metric data from aws sdk');
306
- }
307
- });
308
- exports.getMetricV2Data = getMetricV2Data;
309
- /**
310
- * This is used to metric data
311
- * @param params parameters to get historic metric data
312
- * @returns
313
- */
314
- const getMetricData = (params) => __awaiter(void 0, void 0, void 0, function* () {
315
- try {
316
- const command = new client_connect_1.GetMetricDataCommand(params);
317
- const response = yield client.send(command);
318
- console.log('Get Metrics Data ');
319
- return response;
320
- }
321
- catch (error) {
322
- console.error(error);
323
- throw new Error('error in get historic metric data from aws sdk');
324
- }
325
- });
326
- exports.getMetricData = getMetricData;
327
- /**
328
- * This is used to get current metric data
329
- * @param params parameters to get current metric
330
- * @returns
331
- */
332
- const getCurrentMetricData = (params) => __awaiter(void 0, void 0, void 0, function* () {
333
- try {
334
- const command = new client_connect_1.GetCurrentMetricDataCommand(params);
335
- const response = yield client.send(command);
336
- console.log('Get Current Metrics Data ');
337
- return response;
338
- }
339
- catch (error) {
340
- console.error(error);
341
- throw new Error('error in get current metric data from aws sdk');
342
- }
343
- });
344
- exports.getCurrentMetricData = getCurrentMetricData;
345
- /**
346
- * This is used to get user current metric data
347
- * @param params parameters to get current metric
348
- * @returns
349
- */
350
- const getCurrentUserMetricData = (params) => __awaiter(void 0, void 0, void 0, function* () {
351
- try {
352
- const command = new client_connect_1.GetCurrentUserDataCommand(params);
353
- const response = yield client.send(command);
354
- console.log('Get User Current Metrics Data ');
355
- return response;
356
- }
357
- catch (error) {
358
- console.error(error);
359
- throw new Error('error in get User current metric data from aws sdk');
360
- }
361
- });
362
- exports.getCurrentUserMetricData = getCurrentUserMetricData;
363
- /**
364
- * This is used to create user profile in aws connect
365
- * @param params parameters to add user
366
- * @returns
367
- */
368
- const createAgent = (params) => __awaiter(void 0, void 0, void 0, function* () {
369
- try {
370
- const command = new client_connect_1.CreateUserCommand(params);
371
- const response = yield client.send(command);
372
- console.log('Create User in Connect Instance ');
373
- return response;
374
- }
375
- catch (error) {
376
- console.error(error);
377
- throw new Error('error in Create User in Connect Instance from aws sdk');
378
- }
379
- });
380
- exports.createAgent = createAgent;
381
- /**
382
- * This is used to delete user profile in aws connect
383
- * @param params parameters to delete user
384
- * @returns
385
- */
386
- const deleteAgent = (params) => __awaiter(void 0, void 0, void 0, function* () {
387
- try {
388
- const command = new client_connect_1.DeleteUserCommand(params);
389
- const response = yield client.send(command);
390
- console.log('Delete User in Connect Instance ');
391
- return response;
392
- }
393
- catch (error) {
394
- console.error(error);
395
- throw new Error('error in Delete User in Connect Instance from aws sdk');
396
- }
397
- });
398
- exports.deleteAgent = deleteAgent;
399
- /**
400
- * This is used to create contact flow module
401
- * @param params parameters to add contact flow
402
- * @returns this will return newly created module
403
- */
404
- const createContactFlowModule = (params) => __awaiter(void 0, void 0, void 0, function* () {
405
- try {
406
- const command = new client_connect_1.CreateContactFlowModuleCommand(params);
407
- const response = yield client.send(command);
408
- console.log('Create Module Response ');
409
- return response;
410
- }
411
- catch (error) {
412
- console.error(error);
413
- throw new Error('error in create module response from aws sdk');
414
- }
415
- });
416
- exports.createContactFlowModule = createContactFlowModule;
417
- /**
418
- * This is used to create contact flow module
419
- * @param params parameters to add contact flow
420
- * @returns this will return newly created module
421
- */
422
- const getListPrompts = (params) => __awaiter(void 0, void 0, void 0, function* () {
423
- try {
424
- const command = new client_connect_1.ListPromptsCommand(params);
425
- const response = yield client.send(command);
426
- console.log('Get List Prompts ');
427
- return response;
428
- }
429
- catch (error) {
430
- console.error(error);
431
- throw new Error('error in get list command prompt from aws sdk');
432
- }
433
- });
434
- exports.getListPrompts = getListPrompts;
435
- /**
436
- * This is used to get user profile list in aws connect
437
- * @param params parameters to get user list
438
- * @returns this will return user list
439
- */
440
- const getAgentList = (params) => __awaiter(void 0, void 0, void 0, function* () {
441
- try {
442
- const command = new client_connect_1.ListUsersCommand(params);
443
- const response = yield client.send(command);
444
- console.log('List of User in Connect Instance ');
445
- return response;
446
- }
447
- catch (error) {
448
- console.error(error);
449
- throw new Error('error in get list of user in connect instance from aws sdk');
450
- }
451
- });
452
- exports.getAgentList = getAgentList;
453
- /**
454
- * This is used to update contact flow module content
455
- * @param params parameters to update the contact flow module
456
- * @returns this will return updated value
457
- */
458
- const updateContactFlowModuleContent = (params) => __awaiter(void 0, void 0, void 0, function* () {
459
- try {
460
- const command = new client_connect_1.UpdateContactFlowModuleContentCommand(params);
461
- const response = yield client.send(command);
462
- console.log('Update Contact Flow Module Content ');
463
- return response;
464
- }
465
- catch (error) {
466
- matchMedia;
467
- console.error(error);
468
- throw new Error('error in update contact flow module content from aws sdk');
469
- }
470
- });
471
- exports.updateContactFlowModuleContent = updateContactFlowModuleContent;
472
- /**
473
- * This is used to update contact flow content
474
- * @param params parameters to update the contact flow
475
- * @returns this will return updated value
476
- */
477
- const updateContactFlowContent = (params) => __awaiter(void 0, void 0, void 0, function* () {
478
- try {
479
- const command = new client_connect_1.UpdateContactFlowContentCommand(params);
480
- const response = yield client.send(command);
481
- console.log('Update Contact Flow Content ');
482
- return response;
483
- }
484
- catch (error) {
485
- matchMedia;
486
- console.error(error);
487
- throw new Error('error in update contact flow content from aws sdk');
488
- }
489
- });
490
- exports.updateContactFlowContent = updateContactFlowContent;
491
- /**
492
- * This is used to get security profile list
493
- * @param params parameters to get security profile list
494
- * @returns this will return list
495
- */
496
- const getSecurityProfileList = (params) => __awaiter(void 0, void 0, void 0, function* () {
497
- try {
498
- const command = new client_connect_1.ListSecurityProfilesCommand(params);
499
- const response = yield client.send(command);
500
- console.log('Get List Security Profile Command ');
501
- return response;
502
- }
503
- catch (error) {
504
- console.error(error);
505
- throw new Error('error in get security profile command from aws sdk');
506
- }
507
- });
508
- exports.getSecurityProfileList = getSecurityProfileList;
509
- /**
510
- * This is used to add security profile
511
- * @param params parameters to get add security profile
512
- * @returns this will return list of security profile
513
- */
514
- const addSecurityProfile = (params) => __awaiter(void 0, void 0, void 0, function* () {
515
- try {
516
- const command = new client_connect_1.CreateSecurityProfileCommand(params);
517
- const response = yield client.send(command);
518
- console.log('Add Security Profile Command ');
519
- return response;
520
- }
521
- catch (error) {
522
- console.error(error);
523
- throw new Error('error in add security profile from aws sdk');
524
- }
525
- });
526
- exports.addSecurityProfile = addSecurityProfile;
527
- /**
528
- * This is used to get available phoneNumber
529
- * @param params parameters to serach available phoneNumber
530
- * @returns this will return list of available phoneNumber
531
- */
532
- const searchAvailablePhoneNumber = (params) => __awaiter(void 0, void 0, void 0, function* () {
533
- try {
534
- const command = new client_connect_1.SearchAvailablePhoneNumbersCommand(params);
535
- const response = yield client.send(command);
536
- console.log('Search Phone Number in Instance ');
537
- return response;
538
- }
539
- catch (error) {
540
- console.error(error);
541
- throw new Error('error in search available phone number from aws sdk');
542
- }
543
- });
544
- exports.searchAvailablePhoneNumber = searchAvailablePhoneNumber;
545
- /**
546
- * This is used to associate phoneNumber contact flow
547
- * @param params parameters add phoneNumber to contact flow
548
- * @returns this will return
549
- */
550
- const associatePhoneNumberContactFlow = (params) => __awaiter(void 0, void 0, void 0, function* () {
551
- try {
552
- const command = new client_connect_1.AssociatePhoneNumberContactFlowCommand(params);
553
- const response = yield client.send(command);
554
- console.log('Associate Phone Number Contact Flow');
555
- return response;
556
- }
557
- catch (error) {
558
- console.error(error);
559
- throw new Error('error in associate phone number from aws sdk');
560
- }
561
- });
562
- exports.associatePhoneNumberContactFlow = associatePhoneNumberContactFlow;
563
- /**
564
- * This is used to get instance id
565
- * @param params parameters to serach instance detail
566
- * @returns this will return instance details
567
- */
568
- const describeInstance = (params) => __awaiter(void 0, void 0, void 0, function* () {
569
- try {
570
- const command = new client_connect_1.DescribeInstanceCommand(params);
571
- const response = yield client.send(command);
572
- console.log('Get Instance Details');
573
- return response;
574
- }
575
- catch (error) {
576
- console.error(error);
577
- throw new Error('error in get instance details from aws sdk');
578
- }
579
- });
580
- exports.describeInstance = describeInstance;
581
- /**
582
- * This is used to associate approved origin
583
- * @param params parameters to serach instance detail
584
- * @returns this will return instance details
585
- */
586
- const associateApprovedOrigin = (params) => __awaiter(void 0, void 0, void 0, function* () {
587
- try {
588
- const command = new client_connect_1.AssociateApprovedOriginCommand(params);
589
- const response = yield client.send(command);
590
- console.log('Get Add Origin to the Instance');
591
- return response;
592
- }
593
- catch (error) {
594
- console.error(error);
595
- throw new Error('error in associate approved domain aws sdk');
596
- }
597
- });
598
- exports.associateApprovedOrigin = associateApprovedOrigin;
599
- /**
600
- * This is used to stop connect contact
601
- * @param params parameters to search instance detail
602
- * @returns
603
- */
604
- const stopContact = (params) => __awaiter(void 0, void 0, void 0, function* () {
605
- try {
606
- const command = new client_connect_1.StopContactCommand(params);
607
- const response = yield client.send(command);
608
- console.log('stop connect contact command');
609
- return response;
610
- }
611
- catch (error) {
612
- console.error(error);
613
- throw new Error('error in stop contact command aws sdk');
614
- }
615
- });
616
- exports.stopContact = stopContact;
617
- /**
618
- * This is used to describe connect contact
619
- * @param params parameters to describe contact
620
- */
621
- const describeContact = (params) => __awaiter(void 0, void 0, void 0, function* () {
622
- try {
623
- const command = new client_connect_1.DescribeContactCommand(params);
624
- const response = yield client.send(command);
625
- console.log('Describe connect contact command');
626
- return response;
627
- }
628
- catch (error) {
629
- console.error(error);
630
- throw new Error('Error in describe connect contact command aws sdk');
631
- }
632
- });
633
- exports.describeContact = describeContact;
634
- /**
635
- * This is used to update connect contact
636
- * @param params parameters to update contact
637
- */
638
- const updateContact = (params) => __awaiter(void 0, void 0, void 0, function* () {
639
- try {
640
- const command = new client_connect_1.UpdateContactCommand(params);
641
- const response = yield client.send(command);
642
- console.log('Update connect contact command');
643
- return response;
644
- }
645
- catch (error) {
646
- console.error(error);
647
- throw new Error('error in update connect contact command aws sdk');
648
- }
649
- });
650
- exports.updateContact = updateContact;
651
- /**
652
- * This is used to describe connect user
653
- * @param params parameters to describe connect user
654
- */
655
- const describeUser = (params) => __awaiter(void 0, void 0, void 0, function* () {
656
- try {
657
- const command = new client_connect_1.DescribeUserCommand(params);
658
- const response = yield client.send(command);
659
- console.log('Describe user connect command');
660
- return response;
661
- }
662
- catch (error) {
663
- console.error(error);
664
- throw new Error('Error in describe user connect command aws sdk');
665
- }
666
- });
667
- exports.describeUser = describeUser;
668
- /**
669
- * This is used to update instance attributes
670
- * @param params parameters to describe connect user
671
- */
672
- const updateInstanceAttributes = (params) => __awaiter(void 0, void 0, void 0, function* () {
673
- try {
674
- const command = new client_connect_1.UpdateInstanceAttributeCommand(params);
675
- const response = yield client.send(command);
676
- console.log('update connect instance attributes user connect command');
677
- return response;
678
- }
679
- catch (error) {
680
- console.error(error);
681
- throw new Error('Error in update instance attributes');
682
- }
683
- });
684
- exports.updateInstanceAttributes = updateInstanceAttributes;
685
- /**
686
- * This is used to update security profile
687
- * @param params parameters to update security profile
688
- * @returns this will return list of security profile
689
- */
690
- const updateSecurityProfile = (params) => __awaiter(void 0, void 0, void 0, function* () {
691
- try {
692
- const command = new client_connect_1.UpdateSecurityProfileCommand(params);
693
- const response = yield client.send(command);
694
- console.log('Update Security Profile Command ');
695
- return response;
696
- }
697
- catch (error) {
698
- console.error(error);
699
- throw new Error('error in update security profile from aws sdk');
700
- }
701
- });
702
- exports.updateSecurityProfile = updateSecurityProfile;
703
- /**
704
- * This is used to update security profile
705
- * @param params parameters to update security profile
706
- * @returns this will return list of security profile
707
- */
708
- const updateQueueOutboundCallerConfig = (params) => __awaiter(void 0, void 0, void 0, function* () {
709
- try {
710
- const command = new client_connect_1.UpdateQueueOutboundCallerConfigCommand(params);
711
- const response = yield client.send(command);
712
- console.log('Update Queue Outbound Config Command ');
713
- return response;
714
- }
715
- catch (error) {
716
- console.error(error);
717
- throw new Error('error in update Queue Outbound Config from aws sdk');
718
- }
719
- });
720
- exports.updateQueueOutboundCallerConfig = updateQueueOutboundCallerConfig;
721
- /**
722
- *
723
- * @param params
724
- * @returns
725
- */
726
- const getContactFlowList = (params) => __awaiter(void 0, void 0, void 0, function* () {
727
- try {
728
- const command = new client_connect_1.ListContactFlowsCommand(params);
729
- const response = yield client.send(command);
730
- console.log('Update Queue Outbound Config Command ');
731
- return response;
732
- }
733
- catch (error) {
734
- console.error(error);
735
- throw new Error('error in update Queue Outbound Config from aws sdk');
736
- }
737
- });
738
- exports.getContactFlowList = getContactFlowList;
739
- /**
740
- * This is used to update aws user routing profile
741
- * @param params parameters is used to create connect instance routing profile
742
- * @returns
743
- */
744
- const updateRoutingProfile = (params) => __awaiter(void 0, void 0, void 0, function* () {
745
- try {
746
- const command = new client_connect_1.UpdateUserRoutingProfileCommand(params);
747
- const response = yield client.send(command);
748
- console.log('Updated User Routing Profile Details ');
749
- return response;
750
- }
751
- catch (error) {
752
- console.error(error);
753
- throw new Error('error in update user routing profile');
754
- }
755
- });
756
- exports.updateRoutingProfile = updateRoutingProfile;
757
- /**
758
- * This is used to delete aws routing profile
759
- * @param params parameters is used to delete connect instance routing profile
760
- * @returns
761
- */
762
- const deleteRoutingProfile = (params) => __awaiter(void 0, void 0, void 0, function* () {
763
- try {
764
- const command = new client_connect_1.DeleteRoutingProfileCommand(params);
765
- const response = yield client.send(command);
766
- console.log('Delete Routing Profile Details ');
767
- return response;
768
- }
769
- catch (error) {
770
- console.error(error);
771
- throw new Error('error in delete routing profile');
772
- }
773
- });
774
- exports.deleteRoutingProfile = deleteRoutingProfile;
775
- /**
776
- * This is used to update hours of operation.
777
- * @param params parameters is used to create hours of operation
778
- * @returns
779
- */
780
- const updateHoursOfOperation = (params) => __awaiter(void 0, void 0, void 0, function* () {
781
- try {
782
- const command = new client_connect_1.UpdateHoursOfOperationCommand(params);
783
- const response = yield client.send(command);
784
- console.log('Update Hours Of Operation Details ');
785
- return response;
786
- }
787
- catch (error) {
788
- console.error(error);
789
- throw new Error('error in update Hours Of Operation');
790
- }
791
- });
792
- exports.updateHoursOfOperation = updateHoursOfOperation;
793
- /**
794
- *
795
- * @param params
796
- * @returns
797
- */
798
- const associateStorageConfig = (params) => __awaiter(void 0, void 0, void 0, function* () {
799
- try {
800
- const command = new client_connect_1.AssociateInstanceStorageConfigCommand(params);
801
- const response = yield client.send(command);
802
- console.log('Add Storage config');
803
- return response;
804
- }
805
- catch (error) {
806
- console.error(error);
807
- throw new Error('error in adding storage config');
808
- }
809
- });
810
- exports.associateStorageConfig = associateStorageConfig;
811
- /**
812
- *
813
- * @param params
814
- * @returns
815
- */
816
- const disassociateStorageConfig = (params) => __awaiter(void 0, void 0, void 0, function* () {
817
- try {
818
- const command = new client_connect_1.DisassociateInstanceStorageConfigCommand(params);
819
- const response = yield client.send(command);
820
- console.log('delete storage config');
821
- return response;
822
- }
823
- catch (error) {
824
- console.error(error);
825
- throw new Error('error in delete storage config');
826
- }
827
- });
828
- exports.disassociateStorageConfig = disassociateStorageConfig;
829
- exports.Connect = {
830
- getContact,
831
- startChatContact,
832
- startContactStreaming,
833
- getContactAttributes: exports.getContactAttributes,
834
- updateContactAttributes: exports.updateContactAttributes,
835
- startTaskContact: exports.startTaskContact,
836
- createInstance: exports.createInstance,
837
- createContactFlow: exports.createContactFlow,
838
- createQueue: exports.createQueue,
839
- deleteQueue: exports.deleteQueue,
840
- createRoutingProfile: exports.createRoutingProfile,
841
- updateRoutingProfile: exports.updateRoutingProfile,
842
- deleteRoutingProfile: exports.deleteRoutingProfile,
843
- createHoursOfOperation: exports.createHoursOfOperation,
844
- updateHoursOfOperation: exports.updateHoursOfOperation,
845
- getHoursOfOperation: exports.getHoursOfOperation,
846
- claimPhoneNumber: exports.claimPhoneNumber,
847
- getPhoneNumberList: exports.getPhoneNumberList,
848
- getMetricData: exports.getMetricData,
849
- getMetricV2Data: exports.getMetricV2Data,
850
- getCurrentMetricData: exports.getCurrentMetricData,
851
- getCurrentUserMetricData: exports.getCurrentUserMetricData,
852
- getAgentList: exports.getAgentList,
853
- createAgent: exports.createAgent,
854
- deleteAgent: exports.deleteAgent,
855
- createContactFlowModule: exports.createContactFlowModule,
856
- getListPrompts: exports.getListPrompts,
857
- updateContactFlowContent: exports.updateContactFlowContent,
858
- updateContactFlowModuleContent: exports.updateContactFlowModuleContent,
859
- getSecurityProfileList: exports.getSecurityProfileList,
860
- addSecurityProfile: exports.addSecurityProfile,
861
- searchAvailablePhoneNumber: exports.searchAvailablePhoneNumber,
862
- associatePhoneNumberContactFlow: exports.associatePhoneNumberContactFlow,
863
- describeInstance: exports.describeInstance,
864
- associateApprovedOrigin: exports.associateApprovedOrigin,
865
- stopContact: exports.stopContact,
866
- updateContact: exports.updateContact,
867
- describeContact: exports.describeContact,
868
- describeUser: exports.describeUser,
869
- updateInstanceAttributes: exports.updateInstanceAttributes,
870
- updateSecurityProfile: exports.updateSecurityProfile,
871
- updateQueueOutboundCallerConfig: exports.updateQueueOutboundCallerConfig,
872
- getContactFlowList: exports.getContactFlowList,
873
- associateStorageConfig: exports.associateStorageConfig,
874
- disassociateStorageConfig: exports.disassociateStorageConfig
875
- };
876
- //# sourceMappingURL=AWSConnect.js.map