skyflow-js 1.7.0 → 1.10.0
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/CHANGELOG.md +34 -0
- package/README.md +342 -16
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.LICENSE.txt +27 -0
- package/dist/sdkNodeBuild/index.js.LICENSE.txt.gz +0 -0
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +7 -4
- package/types/Skyflow.d.ts +8 -7
- package/types/{container → core}/constants.d.ts +87 -14
- package/types/{container/external/PureJsController.d.ts → core/external/SkyflowContainer.d.ts} +4 -3
- package/types/{container/external → core/external/collect}/CollectContainer.d.ts +7 -6
- package/types/{container/external/element/index.d.ts → core/external/collect/CollectElement.d.ts} +9 -3
- package/types/core/external/common/Container.d.ts +3 -0
- package/types/{container/external/element → core/external/common}/IFrame.d.ts +0 -0
- package/types/core/external/common/SkyflowElement.d.ts +9 -0
- package/types/core/external/reveal/RevealContainer.d.ts +22 -0
- package/types/core/external/reveal/RevealElement.d.ts +22 -0
- package/types/{container → core}/internal/FrameElements.d.ts +0 -0
- package/types/core/internal/SkyflowFrame/SkyflowFrameController.d.ts +10 -0
- package/types/{container → core}/internal/iFrameForm/index.d.ts +4 -0
- package/types/{container → core}/internal/index.d.ts +2 -0
- package/types/{container → core}/internal/reveal/RevealFrame.d.ts +3 -0
- package/types/{container → core}/internal/reveal/RevealFrameController.d.ts +0 -0
- package/types/{core → core-utils}/collect.d.ts +2 -1
- package/types/{core → core-utils}/reveal.d.ts +5 -8
- package/types/libs/element-options.d.ts +2 -1
- package/types/libs/objectParse.d.ts +5 -1
- package/types/utils/busEvents/index.d.ts +1 -1
- package/types/utils/common/index.d.ts +6 -0
- package/types/utils/constants.d.ts +298 -22
- package/types/utils/helpers/index.d.ts +7 -0
- package/types/utils/logs.d.ts +104 -37
- package/types/utils/validators/index.d.ts +16 -6
- package/types/container/external/RevealContainer.d.ts +0 -18
- package/types/container/external/reveal/RevealElement.d.ts +0 -11
- package/types/container/internal/pureJs/PureJsFrameController.d.ts +0 -9
|
@@ -3,7 +3,31 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
3
3
|
code: number;
|
|
4
4
|
description: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
VAULTID_IS_REQUIRED: {
|
|
7
|
+
code: number;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
EMPTY_VAULTID_IN_INIT: {
|
|
11
|
+
code: number;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
VAULTURL_IS_REQUIRED: {
|
|
15
|
+
code: number;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
EMPTY_VAULTURL_IN_INIT: {
|
|
19
|
+
code: number;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
INVALID_VAULTURL_IN_INIT: {
|
|
23
|
+
code: number;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
GET_BEARER_TOKEN_IS_REQUIRED: {
|
|
27
|
+
code: number;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
EMPTY_CONTAINER_TYPE: {
|
|
7
31
|
code: number;
|
|
8
32
|
description: string;
|
|
9
33
|
};
|
|
@@ -19,7 +43,27 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
19
43
|
code: number;
|
|
20
44
|
description: string;
|
|
21
45
|
};
|
|
22
|
-
|
|
46
|
+
MISSING_TABLE_IN_COLLECT: {
|
|
47
|
+
code: number;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
EMPTY_TABLE_IN_COLLECT: {
|
|
51
|
+
code: number;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
INVALID_TABLE_IN_COLLECT: {
|
|
55
|
+
code: number;
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
MISSING_COLUMN_IN_COLLECT: {
|
|
59
|
+
code: number;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
EMPTY_COLUMN_IN_COLLECT: {
|
|
63
|
+
code: number;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
66
|
+
INVALID_COLUMN_IN_COLLECT: {
|
|
23
67
|
code: number;
|
|
24
68
|
description: string;
|
|
25
69
|
};
|
|
@@ -31,79 +75,187 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
31
75
|
code: number;
|
|
32
76
|
description: string;
|
|
33
77
|
};
|
|
34
|
-
|
|
78
|
+
EMPTY_RECORDS_IN_INSERT: {
|
|
35
79
|
code: number;
|
|
36
80
|
description: string;
|
|
37
81
|
};
|
|
38
|
-
|
|
82
|
+
INVALID_RECORDS_IN_INSERT: {
|
|
39
83
|
code: number;
|
|
40
84
|
description: string;
|
|
41
85
|
};
|
|
42
|
-
|
|
86
|
+
INVALID_TABLE_IN_INSERT: {
|
|
43
87
|
code: number;
|
|
44
88
|
description: string;
|
|
45
89
|
};
|
|
46
|
-
|
|
90
|
+
EMPTY_TABLE_IN_INSERT: {
|
|
47
91
|
code: number;
|
|
48
92
|
description: string;
|
|
49
93
|
};
|
|
50
|
-
|
|
94
|
+
MISSING_TABLE_IN_INSERT: {
|
|
51
95
|
code: number;
|
|
52
96
|
description: string;
|
|
53
97
|
};
|
|
54
|
-
|
|
98
|
+
EMPTY_FIELDS_IN_INSERT: {
|
|
55
99
|
code: number;
|
|
56
100
|
description: string;
|
|
57
101
|
};
|
|
58
|
-
|
|
102
|
+
MISSING_FIELDS_IN_INSERT: {
|
|
59
103
|
code: number;
|
|
60
104
|
description: string;
|
|
61
105
|
};
|
|
62
|
-
|
|
106
|
+
INVALID_FIELDS_IN_INSERT: {
|
|
63
107
|
code: number;
|
|
64
108
|
description: string;
|
|
65
109
|
};
|
|
66
|
-
|
|
110
|
+
INVALID_TOKENS_IN_INSERT: {
|
|
67
111
|
code: number;
|
|
68
112
|
description: string;
|
|
69
113
|
};
|
|
70
|
-
|
|
114
|
+
RECORDS_KEY_NOT_FOUND_DETOKENIZE: {
|
|
71
115
|
code: number;
|
|
72
116
|
description: string;
|
|
73
117
|
};
|
|
74
|
-
|
|
118
|
+
EMPTY_RECORDS_DETOKENIZE: {
|
|
75
119
|
code: number;
|
|
76
120
|
description: string;
|
|
77
121
|
};
|
|
78
|
-
|
|
122
|
+
INVALID_RECORDS_IN_DETOKENIZE: {
|
|
79
123
|
code: number;
|
|
80
124
|
description: string;
|
|
81
125
|
};
|
|
82
|
-
|
|
126
|
+
MISSING_TOKEN_IN_DETOKENIZE: {
|
|
83
127
|
code: number;
|
|
84
128
|
description: string;
|
|
85
129
|
};
|
|
86
|
-
|
|
130
|
+
INVALID_TOKEN_IN_DETOKENIZE: {
|
|
131
|
+
code: number;
|
|
132
|
+
description: string;
|
|
133
|
+
};
|
|
134
|
+
RECORDS_KEY_NOT_FOUND_GETBYID: {
|
|
135
|
+
code: number;
|
|
136
|
+
description: string;
|
|
137
|
+
};
|
|
138
|
+
INVALID_RECORDS_IN_GETBYID: {
|
|
87
139
|
code: number;
|
|
88
140
|
description: string;
|
|
89
141
|
};
|
|
90
|
-
|
|
142
|
+
EMPTY_RECORDS_GETBYID: {
|
|
91
143
|
code: number;
|
|
92
144
|
description: string;
|
|
93
145
|
};
|
|
94
|
-
|
|
146
|
+
MISSING_IDS_IN_GETBYID: {
|
|
95
147
|
code: number;
|
|
96
148
|
description: string;
|
|
97
149
|
};
|
|
98
|
-
|
|
150
|
+
INVALID_IDS_IN_GETBYID: {
|
|
99
151
|
code: number;
|
|
100
152
|
description: string;
|
|
101
153
|
};
|
|
102
|
-
|
|
154
|
+
EMPTY_IDS_IN_GETBYID: {
|
|
103
155
|
code: number;
|
|
104
156
|
description: string;
|
|
105
157
|
};
|
|
106
|
-
|
|
158
|
+
INVALID_SKYFLOWID_TYPE_IN_GETBYID: {
|
|
159
|
+
code: number;
|
|
160
|
+
description: string;
|
|
161
|
+
};
|
|
162
|
+
MISSING_TABLE_IN_GETBYID: {
|
|
163
|
+
code: number;
|
|
164
|
+
description: string;
|
|
165
|
+
};
|
|
166
|
+
INVALID_TABLE_IN_GETBYID: {
|
|
167
|
+
code: number;
|
|
168
|
+
description: string;
|
|
169
|
+
};
|
|
170
|
+
MISSING_REDACTION_IN_GETBYID: {
|
|
171
|
+
code: number;
|
|
172
|
+
description: string;
|
|
173
|
+
};
|
|
174
|
+
INVALID_REDACTION_TYPE_IN_GETBYID: {
|
|
175
|
+
code: number;
|
|
176
|
+
description: string;
|
|
177
|
+
};
|
|
178
|
+
INVALID_TOKENS_IN_COLLECT: {
|
|
179
|
+
code: number;
|
|
180
|
+
description: string;
|
|
181
|
+
};
|
|
182
|
+
RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS: {
|
|
183
|
+
code: number;
|
|
184
|
+
description: string;
|
|
185
|
+
};
|
|
186
|
+
INVALID_RECORDS_IN_ADDITIONAL_FIELDS: {
|
|
187
|
+
code: number;
|
|
188
|
+
description: string;
|
|
189
|
+
};
|
|
190
|
+
EMPTY_RECORDS_IN_ADDITIONAL_FIELDS: {
|
|
191
|
+
code: number;
|
|
192
|
+
description: string;
|
|
193
|
+
};
|
|
194
|
+
MISSING_TABLE_IN_ADDITIONAL_FIELDS: {
|
|
195
|
+
code: number;
|
|
196
|
+
description: string;
|
|
197
|
+
};
|
|
198
|
+
INVALID_TABLE_IN_ADDITIONAL_FIELDS: {
|
|
199
|
+
code: number;
|
|
200
|
+
description: string;
|
|
201
|
+
};
|
|
202
|
+
MISSING_FIELDS_IN_ADDITIONAL_FIELDS: {
|
|
203
|
+
code: number;
|
|
204
|
+
description: string;
|
|
205
|
+
};
|
|
206
|
+
INVALID_FIELDS_IN_ADDITIONAL_FIELDS: {
|
|
207
|
+
code: number;
|
|
208
|
+
description: string;
|
|
209
|
+
};
|
|
210
|
+
EMPTY_RECORDS_REVEAL: {
|
|
211
|
+
code: number;
|
|
212
|
+
description: string;
|
|
213
|
+
};
|
|
214
|
+
MISSING_TOKEN_KEY_REVEAL: {
|
|
215
|
+
code: number;
|
|
216
|
+
description: string;
|
|
217
|
+
};
|
|
218
|
+
INVALID_TOKEN_ID_REVEAL: {
|
|
219
|
+
code: number;
|
|
220
|
+
description: string;
|
|
221
|
+
};
|
|
222
|
+
INVALID_LABEL_REVEAL: {
|
|
223
|
+
code: number;
|
|
224
|
+
description: string;
|
|
225
|
+
};
|
|
226
|
+
INVALID_ALT_TEXT_REVEAL: {
|
|
227
|
+
code: number;
|
|
228
|
+
description: string;
|
|
229
|
+
};
|
|
230
|
+
EMPTY_TABLE_IN_ADDITIONAL_FIELDS: {
|
|
231
|
+
code: number;
|
|
232
|
+
description: string;
|
|
233
|
+
};
|
|
234
|
+
EMPTY_FIELDS_IN_ADDITIONAL_FIELDS: {
|
|
235
|
+
code: number;
|
|
236
|
+
description: string;
|
|
237
|
+
};
|
|
238
|
+
EMPTY_TOKEN_IN_DETOKENIZE: {
|
|
239
|
+
code: number;
|
|
240
|
+
description: string;
|
|
241
|
+
};
|
|
242
|
+
EMPTY_SKYFLOWID_IN_GETBYID: {
|
|
243
|
+
code: number;
|
|
244
|
+
description: string;
|
|
245
|
+
};
|
|
246
|
+
EMPTY_TABLE_IN_GETBYID: {
|
|
247
|
+
code: number;
|
|
248
|
+
description: string;
|
|
249
|
+
};
|
|
250
|
+
EMPTY_REDACTION_TYPE_IN_GETBYID: {
|
|
251
|
+
code: number;
|
|
252
|
+
description: string;
|
|
253
|
+
};
|
|
254
|
+
EMPTY_TOKEN_ID_REVEAL: {
|
|
255
|
+
code: number;
|
|
256
|
+
description: string;
|
|
257
|
+
};
|
|
258
|
+
ELEMENT_MUST_HAVE_TOKEN: {
|
|
107
259
|
code: number;
|
|
108
260
|
description: string;
|
|
109
261
|
};
|
|
@@ -111,6 +263,18 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
111
263
|
code: number;
|
|
112
264
|
description: string;
|
|
113
265
|
};
|
|
266
|
+
DUPLICATE_ELEMENT_ADDITIONAL_FIELDS: {
|
|
267
|
+
code: number;
|
|
268
|
+
description: string;
|
|
269
|
+
};
|
|
270
|
+
MISSING_ELEMENT_TYPE: {
|
|
271
|
+
code: number;
|
|
272
|
+
description: string;
|
|
273
|
+
};
|
|
274
|
+
EMPTY_ELEMENT_TYPE: {
|
|
275
|
+
code: number;
|
|
276
|
+
description: string;
|
|
277
|
+
};
|
|
114
278
|
INVALID_ELEMENT_TYPE: {
|
|
115
279
|
code: number;
|
|
116
280
|
description: string;
|
|
@@ -119,6 +283,14 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
119
283
|
code: number;
|
|
120
284
|
description: string;
|
|
121
285
|
};
|
|
286
|
+
MISSING_CONNECTION_CONFIG: {
|
|
287
|
+
code: number;
|
|
288
|
+
description: string;
|
|
289
|
+
};
|
|
290
|
+
EMPTY_CONNECTION_URL: {
|
|
291
|
+
code: number;
|
|
292
|
+
description: string;
|
|
293
|
+
};
|
|
122
294
|
MISSING_CONNECTION_URL: {
|
|
123
295
|
code: number;
|
|
124
296
|
description: string;
|
|
@@ -127,6 +299,10 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
127
299
|
code: number;
|
|
128
300
|
description: string;
|
|
129
301
|
};
|
|
302
|
+
ELEMENTS_NOT_MOUNTED_INVOKE_CONNECTION: {
|
|
303
|
+
code: number;
|
|
304
|
+
description: string;
|
|
305
|
+
};
|
|
130
306
|
INVALID_CONNECTION_URL: {
|
|
131
307
|
code: number;
|
|
132
308
|
description: string;
|
|
@@ -155,6 +331,14 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
155
331
|
code: number;
|
|
156
332
|
description: string;
|
|
157
333
|
};
|
|
334
|
+
MISSING_HANDLER_IN_EVENT_LISTENER: {
|
|
335
|
+
code: number;
|
|
336
|
+
description: string;
|
|
337
|
+
};
|
|
338
|
+
INVALID_HANDLER_IN_EVENT_LISTENER: {
|
|
339
|
+
code: number;
|
|
340
|
+
description: string;
|
|
341
|
+
};
|
|
158
342
|
UNKNOWN_ERROR: {
|
|
159
343
|
code: number;
|
|
160
344
|
description: string;
|
|
@@ -163,7 +347,7 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
163
347
|
code: number;
|
|
164
348
|
description: string;
|
|
165
349
|
};
|
|
166
|
-
|
|
350
|
+
NETWORK_ERROR: {
|
|
167
351
|
code: number;
|
|
168
352
|
description: string;
|
|
169
353
|
};
|
|
@@ -219,5 +403,97 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
219
403
|
code: number;
|
|
220
404
|
description: string;
|
|
221
405
|
};
|
|
406
|
+
EMPTY_ELEMENT_IN_MOUNT: {
|
|
407
|
+
code: number;
|
|
408
|
+
description: string;
|
|
409
|
+
};
|
|
410
|
+
REVEAL_ELEMENT_ERROR_STATE: {
|
|
411
|
+
code: number;
|
|
412
|
+
description: string;
|
|
413
|
+
};
|
|
414
|
+
MISSING_SOAP_CONNECTION_CONFIG: {
|
|
415
|
+
code: number;
|
|
416
|
+
description: string;
|
|
417
|
+
};
|
|
418
|
+
MISSING_SOAP_CONNECTION_URL: {
|
|
419
|
+
code: number;
|
|
420
|
+
description: string;
|
|
421
|
+
};
|
|
422
|
+
EMPTY_SOAP_CONNECTION_URL: {
|
|
423
|
+
code: number;
|
|
424
|
+
description: string;
|
|
425
|
+
};
|
|
426
|
+
INVALID_SOAP_CONNECTION_URL_TYPE: {
|
|
427
|
+
code: number;
|
|
428
|
+
description: string;
|
|
429
|
+
};
|
|
430
|
+
INVALID_SOAP_CONNECTION_URL: {
|
|
431
|
+
code: number;
|
|
432
|
+
description: string;
|
|
433
|
+
};
|
|
434
|
+
INVALID_ELEMENT_ID_IN_SOAP_REQUEST_XML: {
|
|
435
|
+
code: number;
|
|
436
|
+
description: string;
|
|
437
|
+
};
|
|
438
|
+
ELEMENT_NOT_MOUNTED_IN_SOAP_REQUEST_XML: {
|
|
439
|
+
code: number;
|
|
440
|
+
description: string;
|
|
441
|
+
};
|
|
442
|
+
ELEMENT_NOT_MOUNTED_IN_SOAP_RESPONSE_XML: {
|
|
443
|
+
code: number;
|
|
444
|
+
description: string;
|
|
445
|
+
};
|
|
446
|
+
DUPLICATE_ELEMENT_IN_SOAP_RESPONSE_XML: {
|
|
447
|
+
code: number;
|
|
448
|
+
description: string;
|
|
449
|
+
};
|
|
450
|
+
INVALID_ELEMENT_ID_IN_SOAP_RESPONSE_XML: {
|
|
451
|
+
code: number;
|
|
452
|
+
description: string;
|
|
453
|
+
};
|
|
454
|
+
MISSING_SOAP_REQUEST_XML: {
|
|
455
|
+
code: number;
|
|
456
|
+
description: string;
|
|
457
|
+
};
|
|
458
|
+
EMPTY_SOAP_REQUEST_XML: {
|
|
459
|
+
code: number;
|
|
460
|
+
description: string;
|
|
461
|
+
};
|
|
462
|
+
INVALID_SOAP_REQUEST_XML_TYPE: {
|
|
463
|
+
code: number;
|
|
464
|
+
description: string;
|
|
465
|
+
};
|
|
466
|
+
INVALID_SOAP_RESPONSE_XML_TYPE: {
|
|
467
|
+
code: number;
|
|
468
|
+
description: string;
|
|
469
|
+
};
|
|
470
|
+
INVALID_SOAP_REQUEST_XML: {
|
|
471
|
+
code: number;
|
|
472
|
+
description: string;
|
|
473
|
+
};
|
|
474
|
+
INVALID_SOAP_RESPONSE_XML: {
|
|
475
|
+
code: number;
|
|
476
|
+
description: string;
|
|
477
|
+
};
|
|
478
|
+
INVALID_HTTP_HEADERS_TYPE: {
|
|
479
|
+
code: number;
|
|
480
|
+
description: string;
|
|
481
|
+
};
|
|
482
|
+
INVALID_PATH_IN_RES_XML: {
|
|
483
|
+
code: number;
|
|
484
|
+
description: string;
|
|
485
|
+
};
|
|
486
|
+
INVALID_PATH_IN_ARRAY_RES_XML: {
|
|
487
|
+
code: number;
|
|
488
|
+
description: string;
|
|
489
|
+
};
|
|
490
|
+
NO_MATCH_FOUND_FOR_FORMAT_REGEX: {
|
|
491
|
+
code: number;
|
|
492
|
+
description: string;
|
|
493
|
+
};
|
|
494
|
+
INVALID_FORMAT_REGEX: {
|
|
495
|
+
code: number;
|
|
496
|
+
description: string;
|
|
497
|
+
};
|
|
222
498
|
};
|
|
223
499
|
export default SKYFLOW_ERROR_CODE;
|
|
@@ -3,3 +3,10 @@ export declare function deletePropertyPath(obj: any, path: any): void;
|
|
|
3
3
|
export declare function clearEmpties(o: any): void;
|
|
4
4
|
export declare function formatFrameNameToId(name: string): string;
|
|
5
5
|
export declare function fillUrlWithPathAndQueryParams(url: string, pathParams?: object, queryParams?: object): string;
|
|
6
|
+
export declare function removeSpaces(inputString: string): string;
|
|
7
|
+
export declare function formatVaultURL(vaultURL: any): any;
|
|
8
|
+
export declare function checkIfDuplicateExists(arr: any): boolean;
|
|
9
|
+
export declare function replaceIdInXml(xml: string, elementLookup: any, errors: any): string;
|
|
10
|
+
export declare function replaceIdInResponseXml(xml: string, elementLookup: any, errors: any): string;
|
|
11
|
+
export declare function getIframeNamesInSoapRequest(requestXml: string): string[] | undefined;
|
|
12
|
+
export declare function replaceIframeNameWithValues(requestXml: string, elementValuesLookup: any): string;
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare const logs: {
|
|
|
10
10
|
VALIDATE_DETOKENIZE_INPUT: string;
|
|
11
11
|
VALIDATE_GET_BY_ID_INPUT: string;
|
|
12
12
|
VALIDATE_CONNECTION_CONFIG: string;
|
|
13
|
+
VALIDATE_SOAP_CONNECTION_CONFIG: string;
|
|
13
14
|
VALIDATE_COLLECT_RECORDS: string;
|
|
14
15
|
VALIDATE_REVEAL_RECORDS: string;
|
|
15
16
|
CREATED_ELEMENT: string;
|
|
@@ -31,6 +32,7 @@ declare const logs: {
|
|
|
31
32
|
DETOKENIZE_TRIGGERED: string;
|
|
32
33
|
GET_BY_ID_TRIGGERED: string;
|
|
33
34
|
INVOKE_CONNECTION_TRIGGERED: string;
|
|
35
|
+
INVOKE_SOAP_CONNECTION_TRIGGERED: string;
|
|
34
36
|
EMIT_PURE_JS_REQUEST: string;
|
|
35
37
|
CAPTURE_PURE_JS_REQUEST: string;
|
|
36
38
|
LISTEN_PURE_JS_REQUEST: string;
|
|
@@ -39,6 +41,7 @@ declare const logs: {
|
|
|
39
41
|
INSERT_RECORDS_RESOLVED: string;
|
|
40
42
|
GET_BY_SKYFLOWID_RESOLVED: string;
|
|
41
43
|
SEND_INVOKE_CONNECTION_RESOLVED: string;
|
|
44
|
+
SEND_SOAP_INVOKE_CONNECTION_RESOLVED: string;
|
|
42
45
|
EMIT_EVENT: string;
|
|
43
46
|
CAPTURE_EVENT: string;
|
|
44
47
|
LISTEN_COLLECT_FRAME_READY: string;
|
|
@@ -59,66 +62,99 @@ declare const logs: {
|
|
|
59
62
|
EXECUTE_COLLECT_CONTROLLER_READY_CB: string;
|
|
60
63
|
IFRAMEFORM_CONSTRUCTOR_FRAME_READY_LISTNER: string;
|
|
61
64
|
IFRAMEFORM_CONSTRUCTOR_TOKENIZATION_LISTNER: string;
|
|
65
|
+
CURRENT_ENV: string;
|
|
66
|
+
CURRENT_LOG_LEVEL: string;
|
|
62
67
|
};
|
|
63
68
|
errorLogs: {
|
|
64
69
|
CLIENT_CONNECTION: string;
|
|
65
70
|
BEARER_TOKEN_REJECTED: string;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
VAULTID_IS_REQUIRED: string;
|
|
72
|
+
EMPTY_VAULTID_IN_INIT: string;
|
|
73
|
+
VAULTURL_IS_REQUIRED: string;
|
|
74
|
+
EMPTY_VAULTURL_IN_INIT: string;
|
|
75
|
+
INVALID_VAULTURL_IN_INIT: string;
|
|
76
|
+
GET_BEARER_TOKEN_IS_REQUIRED: string;
|
|
77
|
+
EMPTY_CONTAINER_TYPE: string;
|
|
70
78
|
INVALID_CONTAINER_TYPE: string;
|
|
71
79
|
INVALID_COLLECT_VALUE: string;
|
|
72
80
|
INVALID_COLLECT_VALUE_WITH_LABEL: string;
|
|
73
81
|
RECORDS_KEY_NOT_FOUND: string;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
INVALID_RECORDS_IN_INSERT: string;
|
|
83
|
+
EMPTY_RECORDS_IN_INSERT: string;
|
|
84
|
+
MISSING_TABLE_IN_INSERT: string;
|
|
85
|
+
EMPTY_TABLE_IN_INSERT: string;
|
|
86
|
+
INVALID_TABLE_IN_INSERT: string;
|
|
87
|
+
EMPTY_FIELDS_IN_INSERT: string;
|
|
88
|
+
MISSING_FIELDS_IN_INSERT: string;
|
|
89
|
+
INVALID_FIELDS_IN_INSERT: string;
|
|
90
|
+
INVALID_TOKENS_IN_INSERT: string;
|
|
91
|
+
INVALID_TOKENS_IN_COLLECT: string;
|
|
92
|
+
RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS: string;
|
|
93
|
+
INVALID_RECORDS_IN_ADDITIONAL_FIELDS: string;
|
|
94
|
+
EMPTY_RECORDS_IN_ADDITIONAL_FIELDS: string;
|
|
95
|
+
MISSING_TABLE_IN_ADDITIONAL_FIELDS: string;
|
|
96
|
+
INVALID_TABLE_IN_ADDITIONAL_FIELDS: string;
|
|
97
|
+
MISSING_FIELDS_IN_ADDITIONAL_FIELDS: string;
|
|
98
|
+
INVALID_FIELDS_IN_ADDITIONAL_FIELDS: string;
|
|
99
|
+
RECORDS_KEY_NOT_FOUND_DETOKENIZE: string;
|
|
100
|
+
EMPTY_RECORDS_DETOKENIZE: string;
|
|
101
|
+
INVALID_RECORDS_IN_DETOKENIZE: string;
|
|
102
|
+
MISSING_TOKEN_IN_DETOKENIZE: string;
|
|
103
|
+
INVALID_TOKEN_IN_DETOKENIZE: string;
|
|
104
|
+
RECORDS_KEY_NOT_FOUND_GETBYID: string;
|
|
105
|
+
INVALID_RECORDS_IN_GETBYID: string;
|
|
106
|
+
EMPTY_RECORDS_GETBYID: string;
|
|
107
|
+
MISSING_IDS_IN_GETBYID: string;
|
|
108
|
+
INVALID_IDS_IN_GETBYID: string;
|
|
109
|
+
EMPTY_IDS_IN_GETBYID: string;
|
|
110
|
+
INVALID_SKYFLOWID_TYPE_IN_GETBYID: string;
|
|
111
|
+
MISSING_TABLE_IN_GETBYID: string;
|
|
112
|
+
INVALID_TABLE_IN_GETBYID: string;
|
|
113
|
+
MISSING_REDACTION_IN_GETBYID: string;
|
|
114
|
+
INVALID_REDACTION_TYPE_IN_GETBYID: string;
|
|
115
|
+
EMPTY_RECORDS_REVEAL: string;
|
|
116
|
+
MISSING_TOKEN_KEY_REVEAL: string;
|
|
117
|
+
INVALID_TOKEN_ID_REVEAL: string;
|
|
118
|
+
INVALID_LABEL_REVEAL: string;
|
|
119
|
+
INVALID_ALT_TEXT_REVEAL: string;
|
|
120
|
+
ELEMENTS_NOT_MOUNTED_REVEAL: string;
|
|
121
|
+
EMPTY_TABLE_IN_ADDITIONAL_FIELDS: string;
|
|
122
|
+
EMPTY_FIELDS_IN_ADDITIONAL_FIELDS: string;
|
|
123
|
+
EMPTY_TOKEN_IN_DETOKENIZE: string;
|
|
124
|
+
EMPTY_SKYFLOWID_IN_GETBYID: string;
|
|
125
|
+
EMPTY_TABLE_IN_GETBYID: string;
|
|
126
|
+
EMPTY_REDACTION_TYPE_IN_GETBYID: string;
|
|
127
|
+
EMPTY_TOKEN_ID_REVEAL: string;
|
|
82
128
|
FETCH_RECORDS_REJECTED: string;
|
|
83
129
|
INSERT_RECORDS_REJECTED: string;
|
|
84
130
|
GET_BY_SKYFLOWID_REJECTED: string;
|
|
85
131
|
SEND_INVOKE_CONNECTION_REJECTED: string;
|
|
132
|
+
SEND_INVOKE_SOAP_CONNECTION_REJECTED: string;
|
|
86
133
|
FAILED_REVEAL: string;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
INVALID_TABLE_OR_COLUMN: string;
|
|
94
|
-
INVALID_COLUMN_NAME: string;
|
|
95
|
-
EMPTY_COLUMN_NAME: string;
|
|
96
|
-
MISSING_TABLE: string;
|
|
97
|
-
INVALID_RECORD_TABLE_VALUE: string;
|
|
98
|
-
INVALID_TOKEN_ID: string;
|
|
99
|
-
INVALID_TOKEN_ID_WITH_ID: string;
|
|
100
|
-
EMPTY_TOKEN_ID: string;
|
|
101
|
-
ID_KEY_ERROR: string;
|
|
102
|
-
MISSING_TOKEN: string;
|
|
103
|
-
MISSING_TOKEN_KEY: string;
|
|
104
|
-
ELEMENT_MUST_HAVE_TOKEN: string;
|
|
105
|
-
REDACTION_KEY_ERROR: string;
|
|
106
|
-
INVALID_REDACTION_TYPE: string;
|
|
107
|
-
MISSING_REDACTION: string;
|
|
108
|
-
MISSING_REDACTION_VALUE: string;
|
|
134
|
+
MISSING_TABLE_IN_COLLECT: string;
|
|
135
|
+
EMPTY_TABLE_IN_COLLECT: string;
|
|
136
|
+
INVALID_TABLE_IN_COLLECT: string;
|
|
137
|
+
MISSING_COLUMN_IN_COLLECT: string;
|
|
138
|
+
EMPTY_COLUMN_IN_COLLECT: string;
|
|
139
|
+
INVALID_COLUMN_IN_COLLECT: string;
|
|
109
140
|
UNIQUE_ELEMENT_NAME: string;
|
|
110
|
-
ELEMENT_NOT_MOUNTED: string;
|
|
111
141
|
ELEMENTS_NOT_MOUNTED: string;
|
|
112
|
-
MISSING_IDS: string;
|
|
113
142
|
DUPLICATE_ELEMENT: string;
|
|
143
|
+
DUPLICATE_ELEMENT_ADDITIONAL_FIELDS: string;
|
|
144
|
+
MISSING_ELEMENT_TYPE: string;
|
|
145
|
+
EMPTY_ELEMENT_TYPE: string;
|
|
114
146
|
INVALID_ELEMENT_TYPE: string;
|
|
115
147
|
INVALID_ELEMENT_SELECTOR: string;
|
|
116
148
|
CANNOT_CHANGE_ELEMENT: string;
|
|
149
|
+
MISSING_CONNECTION_CONFIG: string;
|
|
117
150
|
MISSING_CONNECTION_URL: string;
|
|
151
|
+
EMPTY_CONNECTION_URL: string;
|
|
118
152
|
INVALID_CONNECTION_URL_TYPE: string;
|
|
119
153
|
INVALID_CONNECTION_URL: string;
|
|
120
154
|
MISSING_METHODNAME_KEY: string;
|
|
121
155
|
INVALID_METHODNAME_VALUE: string;
|
|
156
|
+
ELEMENTS_NOT_MOUNTED_INVOKE_CONNECTION: string;
|
|
157
|
+
ELEMENT_MUST_HAVE_TOKEN: string;
|
|
122
158
|
INVALID_IFRAME: string;
|
|
123
159
|
INVALID_FIELD: string;
|
|
124
160
|
FRAME_NOT_FOUND: string;
|
|
@@ -126,8 +162,10 @@ declare const logs: {
|
|
|
126
162
|
REQUIRED_PARAMS_NOT_PROVIDED: string;
|
|
127
163
|
INVALID_EVENT_TYPE: string;
|
|
128
164
|
INVALID_EVENT_LISTENER: string;
|
|
165
|
+
MISSING_HANDLER_IN_EVENT_LISTENER: string;
|
|
166
|
+
INVALID_HANDLER_IN_EVENT_LISTENER: string;
|
|
129
167
|
UNKNOWN_ERROR: string;
|
|
130
|
-
|
|
168
|
+
NETWORK_ERROR: string;
|
|
131
169
|
CONNECTION_ERROR: string;
|
|
132
170
|
ERROR_OCCURED: string;
|
|
133
171
|
RESPONSE_BODY_KEY_MISSING: string;
|
|
@@ -142,7 +180,36 @@ declare const logs: {
|
|
|
142
180
|
MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE: string;
|
|
143
181
|
INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE: string;
|
|
144
182
|
ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE: string;
|
|
183
|
+
EMPTY_ELEMENT_IN_MOUNT: string;
|
|
145
184
|
VALIDATION_FAILED: string;
|
|
185
|
+
REVEAL_ELEMENT_ERROR_STATE: string;
|
|
186
|
+
MISSING_SOAP_CONNECTION_CONFIG: string;
|
|
187
|
+
MISSING_SOAP_CONNECTION_URL: string;
|
|
188
|
+
EMPTY_SOAP_CONNECTION_URL: string;
|
|
189
|
+
INVALID_SOAP_CONNECTION_URL_TYPE: string;
|
|
190
|
+
INVALID_SOAP_CONNECTION_URL: string;
|
|
191
|
+
INVALID_ELEMENT_ID_IN_SOAP_REQUEST_XML: string;
|
|
192
|
+
INVALID_ELEMENT_ID_IN_SOAP_RESPONSE_XML: string;
|
|
193
|
+
DUPLICATE_ELEMENT_IN_SOAP_RESPONSE_XML: string;
|
|
194
|
+
ELEMENT_NOT_MOUNTED_IN_SOAP_RESPONSE_XML: string;
|
|
195
|
+
ELEMENT_NOT_MOUNTED_IN_SOAP_REQUEST_XML: string;
|
|
196
|
+
MISSING_SOAP_REQUEST_XML: string;
|
|
197
|
+
EMPTY_SOAP_REQUEST_XML: string;
|
|
198
|
+
INVALID_SOAP_REQUEST_XML_TYPE: string;
|
|
199
|
+
INVALID_SOAP_RESPONSE_XML_TYPE: string;
|
|
200
|
+
INVALID_HTTP_HEADERS_TYPE: string;
|
|
201
|
+
INVALID_SOAP_REQUEST_XML: string;
|
|
202
|
+
INVALID_SOAP_RESPONSE_XML: string;
|
|
203
|
+
INVALID_PATH_IN_RES_XML: string;
|
|
204
|
+
INVALID_PATH_IN_ARRAY_RES_XML: string;
|
|
205
|
+
NO_MATCH_FOUND_FOR_FORMAT_REGEX: string;
|
|
206
|
+
INVALID_FORMAT_REGEX: string;
|
|
207
|
+
};
|
|
208
|
+
warnLogs: {
|
|
209
|
+
INVALID_EXPIRATION_DATE_FORMAT: string;
|
|
210
|
+
UNABLE_TO_SET_VALUE_IN_PROD_ENV: string;
|
|
211
|
+
UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV: string;
|
|
212
|
+
COLLECT_ALT_TEXT_DEPERECATED: string;
|
|
146
213
|
};
|
|
147
214
|
};
|
|
148
215
|
export default logs;
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import { CardType } from '../../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { CardType } from '../../core/constants';
|
|
2
|
+
import { CollectElementInput } from '../../core/external/collect/CollectContainer';
|
|
3
|
+
import { IRevealElementInput, IRevealElementOptions } from '../../core/external/reveal/RevealContainer';
|
|
4
|
+
import { ISkyflow } from '../../Skyflow';
|
|
5
|
+
import { IInsertRecordInput, IDetokenizeInput, IGetByIdInput, IConnectionConfig, ISoapConnectionConfig } from '../common';
|
|
4
6
|
export declare const validateCreditCardNumber: (cardNumber: string) => boolean;
|
|
5
7
|
export declare const detectCardType: (cardNumber: string) => CardType.DEFAULT;
|
|
6
|
-
export declare const validateExpiryDate: (date: string) => boolean;
|
|
7
|
-
export declare const
|
|
8
|
+
export declare const validateExpiryDate: (date: string, format: string) => boolean;
|
|
9
|
+
export declare const isValidExpiryDateFormat: (format: string) => boolean;
|
|
10
|
+
export declare const validateInsertRecords: (recordObj: IInsertRecordInput, options: any) => void;
|
|
11
|
+
export declare const validateAdditionalFieldsInCollect: (recordObj: IInsertRecordInput) => void;
|
|
8
12
|
export declare const validateDetokenizeInput: (detokenizeInput: IDetokenizeInput) => void;
|
|
9
13
|
export declare const validateGetByIdInput: (getByIdInput: IGetByIdInput) => void;
|
|
10
14
|
export declare const validateRevealElementRecords: (records: IRevealElementInput[]) => void;
|
|
11
15
|
export declare const isValidURL: (url: string) => boolean;
|
|
12
16
|
export declare const isValidRegExp: (input: any) => boolean;
|
|
13
|
-
export declare const
|
|
17
|
+
export declare const validateRevealOptions: (options: IRevealElementOptions) => void;
|
|
18
|
+
export declare const validateConnectionConfig: (config: IConnectionConfig, initConfig: ISkyflow) => void;
|
|
14
19
|
export declare const validateCardNumberLengthCheck: (cardNumber: string) => boolean;
|
|
20
|
+
export declare const validateInitConfig: (initConfig: ISkyflow) => void;
|
|
21
|
+
export declare const validateInitConfigInConnections: (initConfig: ISkyflow) => void;
|
|
22
|
+
export declare const validateCollectElementInput: (input: CollectElementInput, logLevel: any) => void;
|
|
23
|
+
export declare const isValidXml: (xml: string) => boolean;
|
|
24
|
+
export declare const validateSoapConnectionConfig: (config: ISoapConnectionConfig, initConfig: ISkyflow) => void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import RevealElement from './reveal/RevealElement';
|
|
2
|
-
import { RedactionType } from '../../utils/common';
|
|
3
|
-
export interface IRevealElementInput {
|
|
4
|
-
token?: string;
|
|
5
|
-
redaction?: RedactionType;
|
|
6
|
-
inputStyles?: object;
|
|
7
|
-
label?: string;
|
|
8
|
-
labelStyles?: object;
|
|
9
|
-
altText?: string;
|
|
10
|
-
errorTextStyles?: object;
|
|
11
|
-
}
|
|
12
|
-
declare class RevealContainer {
|
|
13
|
-
#private;
|
|
14
|
-
constructor(metaData: any, context: any);
|
|
15
|
-
create(record: IRevealElementInput): RevealElement;
|
|
16
|
-
reveal(): Promise<unknown>;
|
|
17
|
-
}
|
|
18
|
-
export default RevealContainer;
|