chatbot-nc 2.0.81 → 2.0.84

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 (75) hide show
  1. package/dist/cjs/aws/index.d.ts +1 -0
  2. package/dist/cjs/aws/services/AESEncryptionUsingKMS.js +11 -20
  3. package/dist/cjs/aws/services/AESEncryptionUsingKMS.js.map +1 -1
  4. package/dist/cjs/aws/services/AWSChimeMeeting.js +15 -24
  5. package/dist/cjs/aws/services/AWSChimeMeeting.js.map +1 -1
  6. package/dist/cjs/aws/services/AWSCodepipeline.js +21 -34
  7. package/dist/cjs/aws/services/AWSCodepipeline.js.map +1 -1
  8. package/dist/cjs/aws/services/AWSComprehend.js +3 -12
  9. package/dist/cjs/aws/services/AWSComprehend.js.map +1 -1
  10. package/dist/cjs/aws/services/AWSConnect.js +135 -146
  11. package/dist/cjs/aws/services/AWSConnect.js.map +1 -1
  12. package/dist/cjs/aws/services/AWSConnectCases.js +12 -21
  13. package/dist/cjs/aws/services/AWSConnectCases.js.map +1 -1
  14. package/dist/cjs/aws/services/AWSConnectParticipant.js +12 -21
  15. package/dist/cjs/aws/services/AWSConnectParticipant.js.map +1 -1
  16. package/dist/cjs/aws/services/AWSCustomerProfiles.js +6 -15
  17. package/dist/cjs/aws/services/AWSCustomerProfiles.js.map +1 -1
  18. package/dist/cjs/aws/services/AWSDynamoDb.js +9 -18
  19. package/dist/cjs/aws/services/AWSDynamoDb.js.map +1 -1
  20. package/dist/cjs/aws/services/AWSGateway.js +6 -15
  21. package/dist/cjs/aws/services/AWSGateway.js.map +1 -1
  22. package/dist/cjs/aws/services/AWSGatewayManagement.js +6 -15
  23. package/dist/cjs/aws/services/AWSGatewayManagement.js.map +1 -1
  24. package/dist/cjs/aws/services/AWSLambda.js +4 -13
  25. package/dist/cjs/aws/services/AWSLambda.js.map +1 -1
  26. package/dist/cjs/aws/services/AWSLexModel.js +63 -72
  27. package/dist/cjs/aws/services/AWSLexModel.js.map +1 -1
  28. package/dist/cjs/aws/services/AWSLexRuntime.js +6 -15
  29. package/dist/cjs/aws/services/AWSLexRuntime.js.map +1 -1
  30. package/dist/cjs/aws/services/AWSPinpoint.js +9 -18
  31. package/dist/cjs/aws/services/AWSPinpoint.js.map +1 -1
  32. package/dist/cjs/aws/services/AWSPinpointSMSVoice.js +18 -27
  33. package/dist/cjs/aws/services/AWSPinpointSMSVoice.js.map +1 -1
  34. package/dist/cjs/aws/services/AWSQConnect.js +18 -27
  35. package/dist/cjs/aws/services/AWSQConnect.js.map +1 -1
  36. package/dist/cjs/aws/services/AWSS3.js +28 -37
  37. package/dist/cjs/aws/services/AWSS3.js.map +1 -1
  38. package/dist/cjs/aws/services/AWSSES.js +4 -13
  39. package/dist/cjs/aws/services/AWSSES.js.map +1 -1
  40. package/dist/cjs/aws/services/AWSSNS.js +11 -20
  41. package/dist/cjs/aws/services/AWSSNS.js.map +1 -1
  42. package/dist/cjs/aws/services/AWSSSM.d.ts +1 -0
  43. package/dist/cjs/aws/services/AWSSSM.js +42 -13
  44. package/dist/cjs/aws/services/AWSSSM.js.map +1 -1
  45. package/dist/cjs/aws/services/AWSSTS.js +3 -12
  46. package/dist/cjs/aws/services/AWSSTS.js.map +1 -1
  47. package/dist/cjs/aws/services/AWSTranslate.js +3 -12
  48. package/dist/cjs/aws/services/AWSTranslate.js.map +1 -1
  49. package/dist/cjs/communication/communicationService.js +29 -38
  50. package/dist/cjs/communication/communicationService.js.map +1 -1
  51. package/dist/cjs/communication/index.js +125 -148
  52. package/dist/cjs/communication/index.js.map +1 -1
  53. package/dist/cjs/hashing/idObfuscation.js +28 -42
  54. package/dist/cjs/hashing/idObfuscation.js.map +1 -1
  55. package/dist/cjs/hashing/index.js +141 -168
  56. package/dist/cjs/hashing/index.js.map +1 -1
  57. package/dist/cjs/repository/dynamodb.js +369 -398
  58. package/dist/cjs/repository/dynamodb.js.map +1 -1
  59. package/dist/cjs/shortner/index.js +20 -31
  60. package/dist/cjs/shortner/index.js.map +1 -1
  61. package/dist/cjs/utils/common.js +2 -11
  62. package/dist/cjs/utils/common.js.map +1 -1
  63. package/dist/cjs/utils/intent.js +24 -33
  64. package/dist/cjs/utils/intent.js.map +1 -1
  65. package/dist/cjs/webbookEvent/index.js +105 -128
  66. package/dist/cjs/webbookEvent/index.js.map +1 -1
  67. package/dist/esm/aws/index.d.ts +1 -0
  68. package/dist/esm/aws/services/AWSConnect.js +0 -2
  69. package/dist/esm/aws/services/AWSConnect.js.map +1 -1
  70. package/dist/esm/aws/services/AWSSSM.d.ts +1 -0
  71. package/dist/esm/aws/services/AWSSSM.js +39 -1
  72. package/dist/esm/aws/services/AWSSSM.js.map +1 -1
  73. package/dist/esm/hashing/idObfuscation.js +2 -1
  74. package/dist/esm/hashing/idObfuscation.js.map +1 -1
  75. package/package.json +2 -2
@@ -1,13 +1,4 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.HashService = void 0;
13
4
  const node_crypto_1 = require("node:crypto");
@@ -20,11 +11,9 @@ class HashService {
20
11
  * @param value
21
12
  * @returns
22
13
  */
23
- getHashedDataString(value) {
24
- return __awaiter(this, void 0, void 0, function* () {
25
- return (0, node_crypto_1.createHash)('sha256').update(value, 'utf8').digest('base64');
26
- ;
27
- });
14
+ async getHashedDataString(value) {
15
+ return (0, node_crypto_1.createHash)('sha256').update(value, 'utf8').digest('base64');
16
+ ;
28
17
  }
29
18
  /**
30
19
  *
@@ -34,22 +23,20 @@ class HashService {
34
23
  * @param dateproperties
35
24
  * @returns
36
25
  */
37
- hashResponse(hashConfig, response, properties, dateproperties) {
38
- return __awaiter(this, void 0, void 0, function* () {
39
- try {
40
- this.hashids = hashConfig;
41
- if (properties === undefined || response === undefined) {
42
- // log.error('No properties to unhash');
43
- console.error('No properties to unhash');
44
- }
45
- response = yield this.hash(response, properties, dateproperties);
46
- return response;
47
- }
48
- catch (error) {
49
- console.error(error);
50
- throw error;
51
- }
52
- });
26
+ async hashResponse(hashConfig, response, properties, dateproperties) {
27
+ try {
28
+ this.hashids = hashConfig;
29
+ if (properties === undefined || response === undefined) {
30
+ // log.error('No properties to unhash');
31
+ console.error('No properties to unhash');
32
+ }
33
+ response = await this.hash(response, properties, dateproperties);
34
+ return response;
35
+ }
36
+ catch (error) {
37
+ console.error(error);
38
+ throw error;
39
+ }
53
40
  }
54
41
  /**
55
42
  *
@@ -58,161 +45,147 @@ class HashService {
58
45
  * @param properties
59
46
  * @returns
60
47
  */
61
- unHashRequest(hashConfig, request, properties) {
62
- return __awaiter(this, void 0, void 0, function* () {
63
- try {
64
- this.hashids = hashConfig;
65
- if (properties === undefined || request === undefined) {
66
- // log.error('No properties to unhash');
67
- console.error('No properties to unhash');
68
- }
69
- request = yield this.unHash(request, properties);
48
+ async unHashRequest(hashConfig, request, properties) {
49
+ try {
50
+ this.hashids = hashConfig;
51
+ if (properties === undefined || request === undefined) {
52
+ // log.error('No properties to unhash');
53
+ console.error('No properties to unhash');
54
+ }
55
+ request = await this.unHash(request, properties);
56
+ return request;
57
+ }
58
+ catch (error) {
59
+ console.error(error);
60
+ throw error;
61
+ }
62
+ }
63
+ async unHash(request, properties) {
64
+ try {
65
+ if (typeof request !== 'object' || request === null) {
70
66
  return request;
71
67
  }
72
- catch (error) {
73
- console.error(error);
74
- throw error;
68
+ if (Array.isArray(request)) {
69
+ return await this.deepUnHashedArray(request, properties);
75
70
  }
76
- });
71
+ return await this.deepUnHashedObject(request, properties);
72
+ }
73
+ catch (error) {
74
+ console.error(error);
75
+ throw error;
76
+ }
77
77
  }
78
- unHash(request, properties) {
79
- return __awaiter(this, void 0, void 0, function* () {
80
- try {
81
- if (typeof request !== 'object' || request === null) {
82
- return request;
83
- }
84
- if (Array.isArray(request)) {
85
- return yield this.deepUnHashedArray(request, properties);
86
- }
87
- return yield this.deepUnHashedObject(request, properties);
78
+ async hash(response, properties, dateproperties) {
79
+ try {
80
+ if (typeof response !== 'object' || response === null) {
81
+ return response;
88
82
  }
89
- catch (error) {
90
- console.error(error);
91
- throw error;
83
+ if (Array.isArray(response)) {
84
+ return await this.deepHashedArray(response, properties, dateproperties);
92
85
  }
93
- });
86
+ return await this.deepHashedObject(response, properties, dateproperties);
87
+ }
88
+ catch (error) {
89
+ console.error(error);
90
+ throw error;
91
+ }
94
92
  }
95
- hash(response, properties, dateproperties) {
96
- return __awaiter(this, void 0, void 0, function* () {
97
- try {
98
- if (typeof response !== 'object' || response === null) {
99
- return response;
93
+ async deepUnHashedObject(request, properties) {
94
+ try {
95
+ const result = {};
96
+ Object.keys(request).forEach(async (key) => {
97
+ let requestKey = request[key];
98
+ // let timeZone = httpContext.get("TimeZone");
99
+ if (properties.includes(key) && (typeof requestKey === "string")) {
100
+ const hashedValue = requestKey;
101
+ result[key] = await this.hashids.decode(hashedValue);
100
102
  }
101
- if (Array.isArray(response)) {
102
- return yield this.deepHashedArray(response, properties, dateproperties);
103
+ else if (utils_1.Utils.Common.isInputDateTime(requestKey)) {
104
+ // result[key] = CoreUtils.getUTCDate(requestKey, timeZone);
105
+ result[key] = requestKey;
103
106
  }
104
- return yield this.deepHashedObject(response, properties, dateproperties);
105
- }
106
- catch (error) {
107
- console.error(error);
108
- throw error;
109
- }
110
- });
107
+ else if (utils_1.Utils.Common.isInputDate(requestKey)) {
108
+ // let dateProperty = `${requestKey} 00:00:00`
109
+ // result[key] = CoreUtils.getUTCDate(dateProperty, timeZone);
110
+ result[key] = requestKey;
111
+ }
112
+ else {
113
+ // const value = requestKey;
114
+ result[key] = await this.unHash(requestKey, properties);
115
+ }
116
+ }, {});
117
+ return result;
118
+ }
119
+ catch (error) {
120
+ console.error(error);
121
+ throw error;
122
+ }
111
123
  }
112
- deepUnHashedObject(request, properties) {
113
- return __awaiter(this, void 0, void 0, function* () {
114
- try {
115
- const result = {};
116
- Object.keys(request).forEach((key) => __awaiter(this, void 0, void 0, function* () {
117
- let requestKey = request[key];
118
- // let timeZone = httpContext.get("TimeZone");
119
- if (properties.includes(key) && (typeof requestKey === "string")) {
120
- const hashedValue = requestKey;
121
- result[key] = yield this.hashids.decode(hashedValue);
122
- }
123
- else if (utils_1.Utils.Common.isInputDateTime(requestKey)) {
124
- // result[key] = CoreUtils.getUTCDate(requestKey, timeZone);
125
- result[key] = requestKey;
126
- }
127
- else if (utils_1.Utils.Common.isInputDate(requestKey)) {
128
- // let dateProperty = `${requestKey} 00:00:00`
129
- // result[key] = CoreUtils.getUTCDate(dateProperty, timeZone);
130
- result[key] = requestKey;
124
+ async deepUnHashedArray(collection, properties) {
125
+ try {
126
+ return Promise.all(collection.map(async (value) => {
127
+ return await this.unHash(value, properties);
128
+ }));
129
+ }
130
+ catch (error) {
131
+ console.error(error);
132
+ throw error;
133
+ }
134
+ }
135
+ async deepHashedObject(response, properties, dateproperties) {
136
+ try {
137
+ const result = {};
138
+ Object.keys(response).forEach(async (key) => {
139
+ if (properties.includes(key)) {
140
+ const unHashedValue = response[key];
141
+ if (unHashedValue !== null && unHashedValue !== "" && unHashedValue != 0 && (typeof (unHashedValue) === 'number')) {
142
+ result[key] = await this.hashids.encode("" + unHashedValue);
131
143
  }
132
144
  else {
133
- // const value = requestKey;
134
- result[key] = yield this.unHash(requestKey, properties);
145
+ result[key] = unHashedValue;
135
146
  }
136
- }), {});
137
- return result;
138
- }
139
- catch (error) {
140
- console.error(error);
141
- throw error;
142
- }
143
- });
144
- }
145
- deepUnHashedArray(collection, properties) {
146
- return __awaiter(this, void 0, void 0, function* () {
147
- try {
148
- return Promise.all(collection.map((value) => __awaiter(this, void 0, void 0, function* () {
149
- return yield this.unHash(value, properties);
150
- })));
151
- }
152
- catch (error) {
153
- console.error(error);
154
- throw error;
155
- }
156
- });
157
- }
158
- deepHashedObject(response, properties, dateproperties) {
159
- return __awaiter(this, void 0, void 0, function* () {
160
- try {
161
- const result = {};
162
- Object.keys(response).forEach((key) => __awaiter(this, void 0, void 0, function* () {
163
- if (properties.includes(key)) {
164
- const unHashedValue = response[key];
165
- if (unHashedValue !== null && unHashedValue !== "" && unHashedValue != 0 && (typeof (unHashedValue) === 'number')) {
166
- result[key] = yield this.hashids.encode("" + unHashedValue);
167
- }
168
- else {
169
- result[key] = unHashedValue;
170
- }
147
+ }
148
+ else {
149
+ const value = response[key];
150
+ if (value instanceof Date && value != null) {
151
+ // let timezone = 0;
152
+ // if (httpContext.get("TimeZone")) {
153
+ // timezone = parseInt(httpContext.get("TimeZone"))
154
+ // }
155
+ // let toMerchantTimeZone = TimeZoneConvertor.timeZoneConvert(timezone, moment(value).utc(true));
156
+ // if (!toMerchantTimeZone) {
157
+ // toMerchantTimeZone = moment(value).utc(true).format('MM-DD-YYYY HH:mm:ss')
158
+ // }
159
+ // if (dateproperties != undefined && Array.isArray(dateproperties) && dateproperties.includes(key)) {
160
+ // toMerchantTimeZone = toMerchantTimeZone.substring(0, 10);
161
+ // }
162
+ // result[key] = toMerchantTimeZone;
163
+ //Just to written a data
164
+ result[key] = value;
171
165
  }
172
166
  else {
173
- const value = response[key];
174
- if (value instanceof Date && value != null) {
175
- // let timezone = 0;
176
- // if (httpContext.get("TimeZone")) {
177
- // timezone = parseInt(httpContext.get("TimeZone"))
178
- // }
179
- // let toMerchantTimeZone = TimeZoneConvertor.timeZoneConvert(timezone, moment(value).utc(true));
180
- // if (!toMerchantTimeZone) {
181
- // toMerchantTimeZone = moment(value).utc(true).format('MM-DD-YYYY HH:mm:ss')
182
- // }
183
- // if (dateproperties != undefined && Array.isArray(dateproperties) && dateproperties.includes(key)) {
184
- // toMerchantTimeZone = toMerchantTimeZone.substring(0, 10);
185
- // }
186
- // result[key] = toMerchantTimeZone;
187
- //Just to written a data
188
- result[key] = value;
189
- }
190
- else {
191
- result[key] = yield this.hash(response[key], properties);
192
- }
167
+ result[key] = await this.hash(response[key], properties);
193
168
  }
194
- }), {});
195
- return result;
196
- // return camelcaseKeys(result);
197
- }
198
- catch (error) {
199
- console.error(error);
200
- throw error;
201
- }
202
- });
169
+ }
170
+ }, {});
171
+ return result;
172
+ // return camelcaseKeys(result);
173
+ }
174
+ catch (error) {
175
+ console.error(error);
176
+ throw error;
177
+ }
203
178
  }
204
- deepHashedArray(collection, properties, dateproperties) {
205
- return __awaiter(this, void 0, void 0, function* () {
206
- try {
207
- return Promise.all(collection.map((value) => __awaiter(this, void 0, void 0, function* () {
208
- return yield this.hash(value, properties, dateproperties);
209
- })));
210
- }
211
- catch (error) {
212
- console.error(error);
213
- throw error;
214
- }
215
- });
179
+ async deepHashedArray(collection, properties, dateproperties) {
180
+ try {
181
+ return Promise.all(collection.map(async (value) => {
182
+ return await this.hash(value, properties, dateproperties);
183
+ }));
184
+ }
185
+ catch (error) {
186
+ console.error(error);
187
+ throw error;
188
+ }
216
189
  }
217
190
  }
218
191
  exports.HashService = HashService;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../hashing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyC;AACzC,oCAAiC;AAGjC,MAAa,WAAW;IAGpB;IACA,CAAC;IAED;;;;OAIG;IACG,mBAAmB,CAAC,KAAa;;YACnC,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAAA,CAAC;QACxE,CAAC;KAAA;IAED;;;;;;;OAOG;IACG,YAAY,CAAC,UAAe,EAAE,QAAa,EAAE,UAAe,EAAE,cAAoB;;YACpF,IAAI;gB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