skyflow-js 1.5.0 → 1.9.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 +45 -0
- package/README.md +455 -24
- 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 +6 -2
- package/types/Skyflow.d.ts +8 -6
- package/types/{container → core}/constants.d.ts +120 -15
- package/types/{container/external/PureJsController.d.ts → core/external/SkyflowContainer.d.ts} +4 -3
- package/types/core/external/collect/CollectContainer.d.ts +27 -0
- 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 +1 -1
- package/types/core/external/common/SkyflowElement.d.ts +9 -0
- package/types/{container/external → core/external/reveal}/RevealContainer.d.ts +5 -4
- package/types/core/external/reveal/RevealElement.d.ts +21 -0
- package/types/{container → core}/internal/FrameElements.d.ts +2 -1
- package/types/core/internal/SkyflowFrame/SkyflowFrameController.d.ts +10 -0
- package/types/{container → core}/internal/iFrameForm/index.d.ts +13 -4
- package/types/{container → core}/internal/index.d.ts +5 -2
- 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 +0 -0
- package/types/libs/element-options.d.ts +4 -0
- package/types/libs/objectParse.d.ts +3 -0
- package/types/utils/common/index.d.ts +15 -0
- package/types/utils/constants.d.ts +334 -22
- package/types/utils/helpers/index.d.ts +6 -0
- package/types/utils/logs.d.ts +132 -37
- package/types/utils/logsHelper/index.d.ts +1 -1
- package/types/utils/validators/index.d.ts +15 -5
- package/types/container/external/CollectContainer.d.ts +0 -25
- 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: {
|
|
139
|
+
code: number;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
EMPTY_RECORDS_GETBYID: {
|
|
143
|
+
code: number;
|
|
144
|
+
description: string;
|
|
145
|
+
};
|
|
146
|
+
MISSING_IDS_IN_GETBYID: {
|
|
147
|
+
code: number;
|
|
148
|
+
description: string;
|
|
149
|
+
};
|
|
150
|
+
INVALID_IDS_IN_GETBYID: {
|
|
151
|
+
code: number;
|
|
152
|
+
description: string;
|
|
153
|
+
};
|
|
154
|
+
EMPTY_IDS_IN_GETBYID: {
|
|
155
|
+
code: number;
|
|
156
|
+
description: string;
|
|
157
|
+
};
|
|
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: {
|
|
87
195
|
code: number;
|
|
88
196
|
description: string;
|
|
89
197
|
};
|
|
90
|
-
|
|
198
|
+
INVALID_TABLE_IN_ADDITIONAL_FIELDS: {
|
|
91
199
|
code: number;
|
|
92
200
|
description: string;
|
|
93
201
|
};
|
|
94
|
-
|
|
202
|
+
MISSING_FIELDS_IN_ADDITIONAL_FIELDS: {
|
|
95
203
|
code: number;
|
|
96
204
|
description: string;
|
|
97
205
|
};
|
|
98
|
-
|
|
206
|
+
INVALID_FIELDS_IN_ADDITIONAL_FIELDS: {
|
|
99
207
|
code: number;
|
|
100
208
|
description: string;
|
|
101
209
|
};
|
|
102
|
-
|
|
210
|
+
EMPTY_RECORDS_REVEAL: {
|
|
103
211
|
code: number;
|
|
104
212
|
description: string;
|
|
105
213
|
};
|
|
106
|
-
|
|
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
|
};
|
|
@@ -175,5 +359,133 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
175
359
|
code: number;
|
|
176
360
|
description: string;
|
|
177
361
|
};
|
|
362
|
+
INVALID_VALIDATIONS_TYPE: {
|
|
363
|
+
code: number;
|
|
364
|
+
description: string;
|
|
365
|
+
};
|
|
366
|
+
MISSING_VALIDATION_RULE_TYPE: {
|
|
367
|
+
code: number;
|
|
368
|
+
description: string;
|
|
369
|
+
};
|
|
370
|
+
INVALID_VALIDATION_RULE_TYPE: {
|
|
371
|
+
code: number;
|
|
372
|
+
description: string;
|
|
373
|
+
};
|
|
374
|
+
MISSING_VALIDATION_RULE_PARAMS: {
|
|
375
|
+
code: number;
|
|
376
|
+
description: string;
|
|
377
|
+
};
|
|
378
|
+
INVALID_VALIDATION_RULE_PARAMS: {
|
|
379
|
+
code: number;
|
|
380
|
+
description: string;
|
|
381
|
+
};
|
|
382
|
+
MISSING_REGEX_IN_REGEX_MATCH_RULE: {
|
|
383
|
+
code: number;
|
|
384
|
+
description: string;
|
|
385
|
+
};
|
|
386
|
+
INVALID_REGEX_IN_REGEX_MATCH_RULE: {
|
|
387
|
+
code: number;
|
|
388
|
+
description: string;
|
|
389
|
+
};
|
|
390
|
+
MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE: {
|
|
391
|
+
code: number;
|
|
392
|
+
description: string;
|
|
393
|
+
};
|
|
394
|
+
MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE: {
|
|
395
|
+
code: number;
|
|
396
|
+
description: string;
|
|
397
|
+
};
|
|
398
|
+
INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE: {
|
|
399
|
+
code: number;
|
|
400
|
+
description: string;
|
|
401
|
+
};
|
|
402
|
+
ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE: {
|
|
403
|
+
code: number;
|
|
404
|
+
description: string;
|
|
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
|
+
};
|
|
178
490
|
};
|
|
179
491
|
export default SKYFLOW_ERROR_CODE;
|
|
@@ -3,3 +3,9 @@ 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 getIframeNamesInSoapRequest(requestXml: string): string[] | undefined;
|
|
11
|
+
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,68 +41,120 @@ 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;
|
|
47
|
+
LISTEN_COLLECT_FRAME_READY: string;
|
|
48
|
+
EMIT_COLLECT_ELEMENT_FRAME_READY: string;
|
|
49
|
+
ENTERED_COLLECT_FRAME_READY_CB: string;
|
|
50
|
+
EXECUTE_COLLECT_ELEMENT_FRAME_READY_CB: string;
|
|
51
|
+
CLIENT_METADATA_NOT_SET: string;
|
|
52
|
+
EXECUTE_COLLECT_ELEMENT_INIT: string;
|
|
53
|
+
INSIDE__COLLECT_ELEMENT_INIT: string;
|
|
54
|
+
CREATING_COLLECT_ELEMENT_FORM: string;
|
|
55
|
+
COLLECT_FRAME_READY_CB: string;
|
|
56
|
+
INSIDE_FRAME_ELEMENTS_CONSTRUCOTR: string;
|
|
57
|
+
SETUP_IN_START: string;
|
|
58
|
+
SETUP_IN_CONSTRUCTOR: string;
|
|
59
|
+
COLLECT_ELEMET_START: string;
|
|
60
|
+
REVEAL_ELEMENT_START: string;
|
|
61
|
+
EMIT_COLLECT_FRAME_CONTROLLER_EVENT: string;
|
|
62
|
+
EXECUTE_COLLECT_CONTROLLER_READY_CB: string;
|
|
63
|
+
IFRAMEFORM_CONSTRUCTOR_FRAME_READY_LISTNER: string;
|
|
64
|
+
IFRAMEFORM_CONSTRUCTOR_TOKENIZATION_LISTNER: string;
|
|
65
|
+
CURRENT_ENV: string;
|
|
66
|
+
CURRENT_LOG_LEVEL: string;
|
|
44
67
|
};
|
|
45
68
|
errorLogs: {
|
|
46
69
|
CLIENT_CONNECTION: string;
|
|
47
70
|
BEARER_TOKEN_REJECTED: string;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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;
|
|
52
78
|
INVALID_CONTAINER_TYPE: string;
|
|
53
79
|
INVALID_COLLECT_VALUE: string;
|
|
54
80
|
INVALID_COLLECT_VALUE_WITH_LABEL: string;
|
|
55
81
|
RECORDS_KEY_NOT_FOUND: string;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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;
|
|
64
128
|
FETCH_RECORDS_REJECTED: string;
|
|
65
129
|
INSERT_RECORDS_REJECTED: string;
|
|
66
130
|
GET_BY_SKYFLOWID_REJECTED: string;
|
|
67
131
|
SEND_INVOKE_CONNECTION_REJECTED: string;
|
|
132
|
+
SEND_INVOKE_SOAP_CONNECTION_REJECTED: string;
|
|
68
133
|
FAILED_REVEAL: string;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
INVALID_TABLE_OR_COLUMN: string;
|
|
76
|
-
INVALID_COLUMN_NAME: string;
|
|
77
|
-
EMPTY_COLUMN_NAME: string;
|
|
78
|
-
MISSING_TABLE: string;
|
|
79
|
-
INVALID_RECORD_TABLE_VALUE: string;
|
|
80
|
-
INVALID_TOKEN_ID: string;
|
|
81
|
-
INVALID_TOKEN_ID_WITH_ID: string;
|
|
82
|
-
EMPTY_TOKEN_ID: string;
|
|
83
|
-
ID_KEY_ERROR: string;
|
|
84
|
-
MISSING_TOKEN: string;
|
|
85
|
-
MISSING_TOKEN_KEY: string;
|
|
86
|
-
ELEMENT_MUST_HAVE_TOKEN: string;
|
|
87
|
-
REDACTION_KEY_ERROR: string;
|
|
88
|
-
INVALID_REDACTION_TYPE: string;
|
|
89
|
-
MISSING_REDACTION: string;
|
|
90
|
-
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;
|
|
91
140
|
UNIQUE_ELEMENT_NAME: string;
|
|
92
|
-
ELEMENT_NOT_MOUNTED: string;
|
|
93
141
|
ELEMENTS_NOT_MOUNTED: string;
|
|
94
|
-
MISSING_IDS: string;
|
|
95
142
|
DUPLICATE_ELEMENT: string;
|
|
143
|
+
DUPLICATE_ELEMENT_ADDITIONAL_FIELDS: string;
|
|
144
|
+
MISSING_ELEMENT_TYPE: string;
|
|
145
|
+
EMPTY_ELEMENT_TYPE: string;
|
|
96
146
|
INVALID_ELEMENT_TYPE: string;
|
|
97
147
|
INVALID_ELEMENT_SELECTOR: string;
|
|
98
148
|
CANNOT_CHANGE_ELEMENT: string;
|
|
149
|
+
MISSING_CONNECTION_CONFIG: string;
|
|
99
150
|
MISSING_CONNECTION_URL: string;
|
|
151
|
+
EMPTY_CONNECTION_URL: string;
|
|
100
152
|
INVALID_CONNECTION_URL_TYPE: string;
|
|
101
153
|
INVALID_CONNECTION_URL: string;
|
|
102
154
|
MISSING_METHODNAME_KEY: string;
|
|
103
155
|
INVALID_METHODNAME_VALUE: string;
|
|
156
|
+
ELEMENTS_NOT_MOUNTED_INVOKE_CONNECTION: string;
|
|
157
|
+
ELEMENT_MUST_HAVE_TOKEN: string;
|
|
104
158
|
INVALID_IFRAME: string;
|
|
105
159
|
INVALID_FIELD: string;
|
|
106
160
|
FRAME_NOT_FOUND: string;
|
|
@@ -108,11 +162,52 @@ declare const logs: {
|
|
|
108
162
|
REQUIRED_PARAMS_NOT_PROVIDED: string;
|
|
109
163
|
INVALID_EVENT_TYPE: string;
|
|
110
164
|
INVALID_EVENT_LISTENER: string;
|
|
165
|
+
MISSING_HANDLER_IN_EVENT_LISTENER: string;
|
|
166
|
+
INVALID_HANDLER_IN_EVENT_LISTENER: string;
|
|
111
167
|
UNKNOWN_ERROR: string;
|
|
112
|
-
|
|
168
|
+
NETWORK_ERROR: string;
|
|
113
169
|
CONNECTION_ERROR: string;
|
|
114
170
|
ERROR_OCCURED: string;
|
|
115
171
|
RESPONSE_BODY_KEY_MISSING: string;
|
|
172
|
+
INVALID_VALIDATIONS_TYPE: string;
|
|
173
|
+
MISSING_VALIDATION_RULE_TYPE: string;
|
|
174
|
+
INVALID_VALIDATION_RULE_TYPE: string;
|
|
175
|
+
MISSING_VALIDATION_RULE_PARAMS: string;
|
|
176
|
+
INVALID_VALIDATION_RULE_PARAMS: string;
|
|
177
|
+
MISSING_REGEX_IN_REGEX_MATCH_RULE: string;
|
|
178
|
+
INVALID_REGEX_IN_REGEX_MATCH_RULE: string;
|
|
179
|
+
MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE: string;
|
|
180
|
+
MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE: string;
|
|
181
|
+
INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE: string;
|
|
182
|
+
ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE: string;
|
|
183
|
+
EMPTY_ELEMENT_IN_MOUNT: string;
|
|
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
|
+
};
|
|
206
|
+
warnLogs: {
|
|
207
|
+
INVALID_EXPIRATION_DATE_FORMAT: string;
|
|
208
|
+
UNABLE_TO_SET_VALUE_IN_PROD_ENV: string;
|
|
209
|
+
UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV: string;
|
|
210
|
+
COLLECT_ALT_TEXT_DEPERECATED: string;
|
|
116
211
|
};
|
|
117
212
|
};
|
|
118
213
|
export default logs;
|
|
@@ -35,4 +35,4 @@ export declare const EnvOptions: {
|
|
|
35
35
|
};
|
|
36
36
|
export declare const printLog: (message: string, messageType: MessageType, logLevel: LogLevel) => void;
|
|
37
37
|
export declare const parameterizedString: (...args: any[]) => any;
|
|
38
|
-
export declare const getElementName: (name
|
|
38
|
+
export declare const getElementName: (name?: string) => string;
|