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.
- package/dist/cjs/aws/index.d.ts +1 -0
- package/dist/cjs/aws/services/AESEncryptionUsingKMS.js +11 -20
- package/dist/cjs/aws/services/AESEncryptionUsingKMS.js.map +1 -1
- package/dist/cjs/aws/services/AWSChimeMeeting.js +15 -24
- package/dist/cjs/aws/services/AWSChimeMeeting.js.map +1 -1
- package/dist/cjs/aws/services/AWSCodepipeline.js +21 -34
- package/dist/cjs/aws/services/AWSCodepipeline.js.map +1 -1
- package/dist/cjs/aws/services/AWSComprehend.js +3 -12
- package/dist/cjs/aws/services/AWSComprehend.js.map +1 -1
- package/dist/cjs/aws/services/AWSConnect.js +135 -146
- package/dist/cjs/aws/services/AWSConnect.js.map +1 -1
- package/dist/cjs/aws/services/AWSConnectCases.js +12 -21
- package/dist/cjs/aws/services/AWSConnectCases.js.map +1 -1
- package/dist/cjs/aws/services/AWSConnectParticipant.js +12 -21
- package/dist/cjs/aws/services/AWSConnectParticipant.js.map +1 -1
- package/dist/cjs/aws/services/AWSCustomerProfiles.js +6 -15
- package/dist/cjs/aws/services/AWSCustomerProfiles.js.map +1 -1
- package/dist/cjs/aws/services/AWSDynamoDb.js +9 -18
- package/dist/cjs/aws/services/AWSDynamoDb.js.map +1 -1
- package/dist/cjs/aws/services/AWSGateway.js +6 -15
- package/dist/cjs/aws/services/AWSGateway.js.map +1 -1
- package/dist/cjs/aws/services/AWSGatewayManagement.js +6 -15
- package/dist/cjs/aws/services/AWSGatewayManagement.js.map +1 -1
- package/dist/cjs/aws/services/AWSLambda.js +4 -13
- package/dist/cjs/aws/services/AWSLambda.js.map +1 -1
- package/dist/cjs/aws/services/AWSLexModel.js +63 -72
- package/dist/cjs/aws/services/AWSLexModel.js.map +1 -1
- package/dist/cjs/aws/services/AWSLexRuntime.js +6 -15
- package/dist/cjs/aws/services/AWSLexRuntime.js.map +1 -1
- package/dist/cjs/aws/services/AWSPinpoint.js +9 -18
- package/dist/cjs/aws/services/AWSPinpoint.js.map +1 -1
- package/dist/cjs/aws/services/AWSPinpointSMSVoice.js +18 -27
- package/dist/cjs/aws/services/AWSPinpointSMSVoice.js.map +1 -1
- package/dist/cjs/aws/services/AWSQConnect.js +18 -27
- package/dist/cjs/aws/services/AWSQConnect.js.map +1 -1
- package/dist/cjs/aws/services/AWSS3.js +28 -37
- package/dist/cjs/aws/services/AWSS3.js.map +1 -1
- package/dist/cjs/aws/services/AWSSES.js +4 -13
- package/dist/cjs/aws/services/AWSSES.js.map +1 -1
- package/dist/cjs/aws/services/AWSSNS.js +11 -20
- package/dist/cjs/aws/services/AWSSNS.js.map +1 -1
- package/dist/cjs/aws/services/AWSSSM.d.ts +1 -0
- package/dist/cjs/aws/services/AWSSSM.js +42 -13
- package/dist/cjs/aws/services/AWSSSM.js.map +1 -1
- package/dist/cjs/aws/services/AWSSTS.js +3 -12
- package/dist/cjs/aws/services/AWSSTS.js.map +1 -1
- package/dist/cjs/aws/services/AWSTranslate.js +3 -12
- package/dist/cjs/aws/services/AWSTranslate.js.map +1 -1
- package/dist/cjs/communication/communicationService.js +29 -38
- package/dist/cjs/communication/communicationService.js.map +1 -1
- package/dist/cjs/communication/index.js +125 -148
- package/dist/cjs/communication/index.js.map +1 -1
- package/dist/cjs/hashing/idObfuscation.js +28 -42
- package/dist/cjs/hashing/idObfuscation.js.map +1 -1
- package/dist/cjs/hashing/index.js +141 -168
- package/dist/cjs/hashing/index.js.map +1 -1
- package/dist/cjs/repository/dynamodb.js +369 -398
- package/dist/cjs/repository/dynamodb.js.map +1 -1
- package/dist/cjs/shortner/index.js +20 -31
- package/dist/cjs/shortner/index.js.map +1 -1
- package/dist/cjs/utils/common.js +2 -11
- package/dist/cjs/utils/common.js.map +1 -1
- package/dist/cjs/utils/intent.js +24 -33
- package/dist/cjs/utils/intent.js.map +1 -1
- package/dist/cjs/webbookEvent/index.js +105 -128
- package/dist/cjs/webbookEvent/index.js.map +1 -1
- package/dist/esm/aws/index.d.ts +1 -0
- package/dist/esm/aws/services/AWSConnect.js +0 -2
- package/dist/esm/aws/services/AWSConnect.js.map +1 -1
- package/dist/esm/aws/services/AWSSSM.d.ts +1 -0
- package/dist/esm/aws/services/AWSSSM.js +39 -1
- package/dist/esm/aws/services/AWSSSM.js.map +1 -1
- package/dist/esm/hashing/idObfuscation.js +2 -1
- package/dist/esm/hashing/idObfuscation.js.map +1 -1
- 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
|
|
25
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
73
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
90
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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 (
|
|
102
|
-
|
|
103
|
+
else if (utils_1.Utils.Common.isInputDateTime(requestKey)) {
|
|
104
|
+
// result[key] = CoreUtils.getUTCDate(requestKey, timeZone);
|
|
105
|
+
result[key] = requestKey;
|
|
103
106
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
result[key] =
|
|
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
|
-
|
|
134
|
-
result[key] = yield this.unHash(requestKey, properties);
|
|
145
|
+
result[key] = unHashedValue;
|
|
135
146
|
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
-
|
|
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
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
-
|
|
206
|
-
|
|
207
|
-
return
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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":"
|
|
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;IACH,KAAK,CAAC,mBAAmB,CAAC,KAAa;QACnC,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAAA,CAAC;IACxE,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,YAAY,CAAC,UAAe,EAAE,QAAa,EAAE,UAAe,EAAE,cAAoB;QACpF,IAAI;YACA,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC;YAC1B,IAAI,UAAU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