@forgerock/davinci-client 0.0.0-beta-20251003204059 → 0.0.0-beta-20251124184351

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 (77) hide show
  1. package/package.json +7 -6
  2. package/dist/src/index.d.ts +0 -3
  3. package/dist/src/index.d.ts.map +0 -1
  4. package/dist/src/index.js +0 -9
  5. package/dist/src/index.js.map +0 -1
  6. package/dist/src/lib/client.store.d.ts +0 -352
  7. package/dist/src/lib/client.store.d.ts.map +0 -1
  8. package/dist/src/lib/client.store.js +0 -306
  9. package/dist/src/lib/client.store.js.map +0 -1
  10. package/dist/src/lib/client.store.utils.d.ts +0 -74
  11. package/dist/src/lib/client.store.utils.d.ts.map +0 -1
  12. package/dist/src/lib/client.store.utils.js +0 -48
  13. package/dist/src/lib/client.store.utils.js.map +0 -1
  14. package/dist/src/lib/client.types.d.ts +0 -21
  15. package/dist/src/lib/client.types.d.ts.map +0 -1
  16. package/dist/src/lib/client.types.js +0 -2
  17. package/dist/src/lib/client.types.js.map +0 -1
  18. package/dist/src/lib/collector.types.d.ts +0 -405
  19. package/dist/src/lib/collector.types.d.ts.map +0 -1
  20. package/dist/src/lib/collector.types.js +0 -8
  21. package/dist/src/lib/collector.types.js.map +0 -1
  22. package/dist/src/lib/collector.utils.d.ts +0 -132
  23. package/dist/src/lib/collector.utils.d.ts.map +0 -1
  24. package/dist/src/lib/collector.utils.js +0 -559
  25. package/dist/src/lib/collector.utils.js.map +0 -1
  26. package/dist/src/lib/config.slice.d.ts +0 -42
  27. package/dist/src/lib/config.slice.d.ts.map +0 -1
  28. package/dist/src/lib/config.slice.js +0 -59
  29. package/dist/src/lib/config.slice.js.map +0 -1
  30. package/dist/src/lib/config.types.d.ts +0 -12
  31. package/dist/src/lib/config.types.d.ts.map +0 -1
  32. package/dist/src/lib/config.types.js +0 -2
  33. package/dist/src/lib/config.types.js.map +0 -1
  34. package/dist/src/lib/davinci.api.d.ts +0 -31
  35. package/dist/src/lib/davinci.api.d.ts.map +0 -1
  36. package/dist/src/lib/davinci.api.js +0 -347
  37. package/dist/src/lib/davinci.api.js.map +0 -1
  38. package/dist/src/lib/davinci.types.d.ts +0 -285
  39. package/dist/src/lib/davinci.types.d.ts.map +0 -1
  40. package/dist/src/lib/davinci.types.js +0 -11
  41. package/dist/src/lib/davinci.types.js.map +0 -1
  42. package/dist/src/lib/davinci.utils.d.ts +0 -22
  43. package/dist/src/lib/davinci.utils.d.ts.map +0 -1
  44. package/dist/src/lib/davinci.utils.js +0 -169
  45. package/dist/src/lib/davinci.utils.js.map +0 -1
  46. package/dist/src/lib/index.d.ts +0 -3
  47. package/dist/src/lib/index.d.ts.map +0 -1
  48. package/dist/src/lib/index.js +0 -9
  49. package/dist/src/lib/index.js.map +0 -1
  50. package/dist/src/lib/node.reducer.d.ts +0 -27
  51. package/dist/src/lib/node.reducer.d.ts.map +0 -1
  52. package/dist/src/lib/node.reducer.js +0 -198
  53. package/dist/src/lib/node.reducer.js.map +0 -1
  54. package/dist/src/lib/node.slice.d.ts +0 -174
  55. package/dist/src/lib/node.slice.d.ts.map +0 -1
  56. package/dist/src/lib/node.slice.js +0 -261
  57. package/dist/src/lib/node.slice.js.map +0 -1
  58. package/dist/src/lib/node.types.d.ts +0 -119
  59. package/dist/src/lib/node.types.d.ts.map +0 -1
  60. package/dist/src/lib/node.types.js +0 -2
  61. package/dist/src/lib/node.types.js.map +0 -1
  62. package/dist/src/lib/node.utils.d.ts +0 -4
  63. package/dist/src/lib/node.utils.d.ts.map +0 -1
  64. package/dist/src/lib/node.utils.js +0 -32
  65. package/dist/src/lib/node.utils.js.map +0 -1
  66. package/dist/src/lib/wellknown.api.d.ts +0 -5
  67. package/dist/src/lib/wellknown.api.d.ts.map +0 -1
  68. package/dist/src/lib/wellknown.api.js +0 -22
  69. package/dist/src/lib/wellknown.api.js.map +0 -1
  70. package/dist/src/lib/wellknown.types.d.ts +0 -38
  71. package/dist/src/lib/wellknown.types.d.ts.map +0 -1
  72. package/dist/src/lib/wellknown.types.js +0 -2
  73. package/dist/src/lib/wellknown.types.js.map +0 -1
  74. package/dist/src/types.d.ts +0 -41
  75. package/dist/src/types.d.ts.map +0 -1
  76. package/dist/src/types.js +0 -7
  77. package/dist/src/types.js.map +0 -1
@@ -1,559 +0,0 @@
1
- /**
2
- * @function returnActionCollector - Creates an ActionCollector object based on the provided field and index.
3
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
4
- * @param {number} idx - The index to be used in the id of the ActionCollector.
5
- * @param {ActionCollectorTypes} [collectorType] - Optional type of the ActionCollector.
6
- * @returns {ActionCollector} The constructed ActionCollector object.
7
- */
8
- export function returnActionCollector(field, idx, collectorType) {
9
- let error = '';
10
- if (!('label' in field)) {
11
- error = `${error}Label is not found in the field object. `;
12
- }
13
- if (!('type' in field)) {
14
- error = `${error}Type is not found in the field object. `;
15
- }
16
- if (collectorType === 'IdpCollector') {
17
- let link;
18
- if (!('links' in field)) {
19
- error = `${error}Links property is not found in the field object. `;
20
- link = null;
21
- }
22
- else {
23
- link = field.links?.['authenticate']?.href || null;
24
- }
25
- return {
26
- category: 'ActionCollector',
27
- error: error || null,
28
- type: collectorType,
29
- id: `${field.key || field.type}-${idx}`,
30
- name: field.key || field.type,
31
- output: {
32
- key: `${field.key || field.type}-${idx}`,
33
- label: field.label,
34
- type: field.type,
35
- url: link,
36
- },
37
- };
38
- }
39
- else {
40
- if (!('key' in field)) {
41
- error = `${error}Key is not found in the field object. `;
42
- }
43
- return {
44
- category: 'ActionCollector',
45
- error: error || null,
46
- type: collectorType || 'ActionCollector',
47
- id: `${field.key}-${idx}`,
48
- name: field.key,
49
- output: {
50
- key: field.key,
51
- label: field.label,
52
- type: field.type,
53
- },
54
- };
55
- }
56
- }
57
- /**
58
- * @function returnFlowCollector - Returns a flow collector object
59
- * @param {DaVinciField} field - The field representing the flow button
60
- * @param {number} idx - The index of the field in the form
61
- * @returns {FlowCollector} - The flow collector object
62
- */
63
- export function returnFlowCollector(field, idx) {
64
- return returnActionCollector(field, idx, 'FlowCollector');
65
- }
66
- /**
67
- * @function returnIdpCollector - Returns a social login collector object
68
- * @param {DaVinciField} field - The field representing the social login button
69
- * @param {number} idx - The index of the field in the form
70
- * @returns {SocialLoginCollector} - The social login collector object
71
- */
72
- export function returnIdpCollector(field, idx) {
73
- return returnActionCollector(field, idx, 'IdpCollector');
74
- }
75
- /**
76
- * @function returnSubmitCollector - Returns a submit collector object
77
- * @param {DaVinciField} field - The field representing the submit button
78
- * @param {number} idx - The index of the field in the form
79
- * @returns {ActionCollector} - The submit collector object
80
- */
81
- export function returnSubmitCollector(field, idx) {
82
- return returnActionCollector(field, idx, 'SubmitCollector');
83
- }
84
- /**
85
- * @function returnSingleValueCollector - Creates a SingleValueCollector object based on the provided field, index, and optional collector type.
86
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
87
- * @param {number} idx - The index to be used in the id of the SingleValueCollector.
88
- * @param {SingleValueCollectorTypes} [collectorType] - Optional type of the SingleValueCollector.
89
- * @returns {SingleValueCollector} The constructed SingleValueCollector object.
90
- */
91
- export function returnSingleValueCollector(field, idx, collectorType, data) {
92
- let error = '';
93
- if (!('key' in field)) {
94
- error = `${error}Key is not found in the field object. `;
95
- }
96
- if (!('label' in field)) {
97
- error = `${error}Label is not found in the field object. `;
98
- }
99
- if (!('type' in field)) {
100
- error = `${error}Type is not found in the field object. `;
101
- }
102
- if (collectorType === 'PasswordCollector') {
103
- return {
104
- category: 'SingleValueCollector',
105
- error: error || null,
106
- type: collectorType,
107
- id: `${field?.key}-${idx}`,
108
- name: field.key,
109
- input: {
110
- key: field.key,
111
- value: '',
112
- type: field.type,
113
- },
114
- output: {
115
- key: field.key,
116
- label: field.label,
117
- type: field.type,
118
- // No default or existing value is passed
119
- },
120
- };
121
- }
122
- else if (collectorType === 'SingleSelectCollector') {
123
- /**
124
- * Check if options are present in the field object first
125
- * If found, return existing error, which should be ''
126
- * If not found, add additional message to error string
127
- */
128
- const err = 'options' in field ? error : `${error}Options are not found in the field object. `;
129
- const options = 'options' in field ? field.options : []; // Fallback to ensure type consistency
130
- return {
131
- category: 'SingleValueCollector',
132
- error: err || null,
133
- type: collectorType,
134
- id: `${field.key}-${idx}`,
135
- name: field.key,
136
- input: {
137
- key: field.key,
138
- value: '',
139
- type: field.type,
140
- },
141
- output: {
142
- key: field.key,
143
- label: field.label,
144
- type: field.type,
145
- value: data || '',
146
- options: options,
147
- },
148
- };
149
- }
150
- else if ('validation' in field || 'required' in field) {
151
- const validationArray = [];
152
- if ('validation' in field) {
153
- validationArray.push({
154
- type: 'regex',
155
- message: field.validation?.errorMessage || '',
156
- rule: field.validation?.regex || '',
157
- });
158
- }
159
- if ('required' in field && field.required === true) {
160
- validationArray.push({
161
- type: 'required',
162
- message: 'Value cannot be empty',
163
- rule: true,
164
- });
165
- }
166
- return {
167
- category: 'ValidatedSingleValueCollector',
168
- error: error || null,
169
- type: 'TextCollector',
170
- id: `${field.key}-${idx}`,
171
- name: field.key,
172
- input: {
173
- key: field.key,
174
- value: data || '',
175
- type: field.type,
176
- validation: validationArray,
177
- },
178
- output: {
179
- key: field.key,
180
- label: field.label,
181
- type: field.type,
182
- value: data || '',
183
- },
184
- };
185
- }
186
- else {
187
- return {
188
- category: 'SingleValueCollector',
189
- error: error || null,
190
- type: collectorType || 'SingleValueCollector',
191
- id: `${field.key}-${idx}`,
192
- name: field.key,
193
- input: {
194
- key: field.key,
195
- value: '',
196
- type: field.type,
197
- },
198
- output: {
199
- key: field.key,
200
- label: field.label,
201
- type: field.type,
202
- value: data || '',
203
- },
204
- };
205
- }
206
- }
207
- /**
208
- * @function returnAutoCollector - Creates an AutoCollector object based on the provided field, index, and optional collector type.
209
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
210
- * @param {number} idx - The index to be used in the id of the AutoCollector.
211
- * @param {AutoCollectorTypes} [collectorType] - Optional type of the AutoCollector.
212
- * @returns {AutoCollector} The constructed AutoCollector object.
213
- */
214
- export function returnAutoCollector(field, idx, collectorType, data) {
215
- let error = '';
216
- if (!('key' in field)) {
217
- error = `${error}Key is not found in the field object. `;
218
- }
219
- if (!('type' in field)) {
220
- error = `${error}Type is not found in the field object. `;
221
- }
222
- if (collectorType === 'ProtectCollector') {
223
- return {
224
- category: 'SingleValueAutoCollector',
225
- error: error || null,
226
- type: collectorType,
227
- id: `${field?.key}-${idx}`,
228
- name: field.key,
229
- input: {
230
- key: field.key,
231
- value: data || '',
232
- type: field.type,
233
- },
234
- output: {
235
- key: field.key,
236
- type: field.type,
237
- config: {
238
- behavioralDataCollection: field.behavioralDataCollection,
239
- universalDeviceIdentification: field.universalDeviceIdentification,
240
- },
241
- },
242
- };
243
- }
244
- else {
245
- return {
246
- category: 'SingleValueAutoCollector',
247
- error: error || null,
248
- type: collectorType || 'SingleValueAutoCollector',
249
- id: `${field.key}-${idx}`,
250
- name: field.key,
251
- input: {
252
- key: field.key,
253
- value: data || '',
254
- type: field.type,
255
- },
256
- output: {
257
- key: field.key,
258
- type: field.type,
259
- },
260
- };
261
- }
262
- }
263
- /**
264
- * @function returnPasswordCollector - Creates a PasswordCollector object based on the provided field and index.
265
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
266
- * @param {number} idx - The index to be used in the id of the PasswordCollector.
267
- * @returns {PasswordCollector} The constructed PasswordCollector object.
268
- */
269
- export function returnPasswordCollector(field, idx) {
270
- return returnSingleValueCollector(field, idx, 'PasswordCollector');
271
- }
272
- /**
273
- * @function returnTextCollector - Creates a TextCollector object based on the provided field and index.
274
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
275
- * @param {number} idx - The index to be used in the id of the TextCollector.
276
- * @returns {TextCollector} The constructed TextCollector object.
277
- */
278
- export function returnTextCollector(field, idx, data) {
279
- return returnSingleValueCollector(field, idx, 'TextCollector', data);
280
- }
281
- /**
282
- * @function returnSingleSelectCollector - Creates a SingleCollector object based on the provided field and index.
283
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
284
- * @param {number} idx - The index to be used in the id of the SingleCollector.
285
- * @returns {SingleValueCollector} The constructed SingleCollector object.
286
- */
287
- export function returnSingleSelectCollector(field, idx, data) {
288
- return returnSingleValueCollector(field, idx, 'SingleSelectCollector', data);
289
- }
290
- /**
291
- * @function returnProtectCollector - Creates a ProtectCollector object based on the provided field and index.
292
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
293
- * @param {number} idx - The index to be used in the id of the ProtectCollector.
294
- * @returns {ProtectCollector} The constructed ProtectCollector object.
295
- */
296
- export function returnProtectCollector(field, idx, data) {
297
- return returnAutoCollector(field, idx, 'ProtectCollector', data);
298
- }
299
- /**
300
- * @function returnMultiValueCollector - Creates a MultiValueCollector object based on the provided field, index, and optional collector type.
301
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
302
- * @param {number} idx - The index to be used in the id of the MultiValueCollector.
303
- * @param {MultiValueCollectorTypes} [collectorType] - Optional type of the MultiValueCollector.
304
- * @returns {MultiValueCollector} The constructed MultiValueCollector object.
305
- */
306
- export function returnMultiValueCollector(field, idx, collectorType, data) {
307
- let error = '';
308
- if (!('key' in field)) {
309
- error = `${error}Key is not found in the field object. `;
310
- }
311
- if (!('label' in field)) {
312
- error = `${error}Label is not found in the field object. `;
313
- }
314
- if (!('type' in field)) {
315
- error = `${error}Type is not found in the field object. `;
316
- }
317
- if (!('options' in field)) {
318
- error = `${error}Options are not found in the field object. `;
319
- }
320
- const validationArray = [];
321
- if ('required' in field && field.required === true) {
322
- validationArray.push({
323
- type: 'required',
324
- message: 'Value cannot be empty',
325
- rule: true,
326
- });
327
- }
328
- return {
329
- category: 'MultiValueCollector',
330
- error: error || null,
331
- type: collectorType || 'MultiValueCollector',
332
- id: `${field.key}-${idx}`,
333
- name: field.key,
334
- input: {
335
- key: field.key,
336
- value: data || [],
337
- type: field.type,
338
- validation: validationArray.length ? validationArray : undefined,
339
- },
340
- output: {
341
- key: field.key,
342
- label: field.label,
343
- type: field.type,
344
- value: data || [],
345
- options: field.options || [],
346
- },
347
- };
348
- }
349
- /**
350
- * @function returnMultiSelectCollector - Creates a DropDownCollector object based on the provided field and index.
351
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
352
- * @param {number} idx - The index to be used in the id of the DropDownCollector.
353
- * @returns {SingleValueCollector} The constructed DropDownCollector object.
354
- */
355
- export function returnMultiSelectCollector(field, idx, data) {
356
- return returnMultiValueCollector(field, idx, 'MultiSelectCollector', data);
357
- }
358
- /**
359
- * @function returnObjectCollector - Creates a ObjectCollector object based on the provided field, index, and optional collector type.
360
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
361
- * @param {number} idx - The index to be used in the id of the ObjectCollector.
362
- * @param {ObjectValueCollectorTypes} [collectorType] - Optional type of the ObjectCollector.
363
- * @returns {ObjectCollector} The constructed ObjectCollector object.
364
- */
365
- export function returnObjectCollector(field, idx, collectorType, prefillData) {
366
- let error = '';
367
- if (!('key' in field)) {
368
- error = `${error}Key is not found in the field object. `;
369
- }
370
- if (!('label' in field)) {
371
- error = `${error}Label is not found in the field object. `;
372
- }
373
- if (!('type' in field)) {
374
- error = `${error}Type is not found in the field object. `;
375
- }
376
- const validationArray = [];
377
- if ('required' in field && field.required === true) {
378
- validationArray.push({
379
- type: 'required',
380
- message: 'Value cannot be empty',
381
- rule: true,
382
- });
383
- }
384
- let options;
385
- let defaultValue;
386
- if (field.type === 'DEVICE_AUTHENTICATION') {
387
- if (!('options' in field)) {
388
- error = `${error}Device options are not found in the field object. `;
389
- }
390
- if (Array.isArray(field.options) && field.options.length === 0) {
391
- error = `${error}Device options are not an array or is empty. `;
392
- }
393
- const unmappedDefault = field.options.find((device) => device.default);
394
- defaultValue = {
395
- type: unmappedDefault ? unmappedDefault.type : '',
396
- value: unmappedDefault ? unmappedDefault.description : '',
397
- id: unmappedDefault ? unmappedDefault.id : '',
398
- };
399
- // Map DaVinci spec to normalized SDK API
400
- options = field.options.map((device) => ({
401
- type: device.type,
402
- label: device.title,
403
- content: device.description,
404
- value: device.id,
405
- key: device.id,
406
- default: device.default,
407
- }));
408
- }
409
- else if (field.type === 'DEVICE_REGISTRATION') {
410
- if (!('options' in field)) {
411
- error = `${error}Device options are not found in the field object. `;
412
- }
413
- if (Array.isArray(field.options) && field.options.length === 0) {
414
- error = `${error}Device options are not an array or is empty. `;
415
- }
416
- defaultValue = '';
417
- // Map DaVinci spec to normalized SDK API
418
- options = field.options.map((device, idx) => ({
419
- type: device.type,
420
- label: device.title,
421
- content: device.description,
422
- value: device.type,
423
- key: `${device.type}-${idx}`,
424
- }));
425
- }
426
- else if (field.type === 'PHONE_NUMBER') {
427
- if ('validatePhoneNumber' in field && field.validatePhoneNumber === true) {
428
- validationArray.push({
429
- type: 'validatePhoneNumber',
430
- message: 'Phone number should be validated',
431
- rule: true,
432
- });
433
- }
434
- const prefilledCountryCode = prefillData?.countryCode;
435
- const prefilledPhone = prefillData?.phoneNumber;
436
- defaultValue = {
437
- countryCode: prefilledCountryCode ? prefilledCountryCode : field.defaultCountryCode || '',
438
- phoneNumber: prefilledPhone || '',
439
- };
440
- }
441
- return {
442
- category: 'ObjectValueCollector',
443
- error: error || null,
444
- type: collectorType || 'ObjectValueCollector',
445
- id: `${field.key}-${idx}`,
446
- name: field.key,
447
- input: {
448
- key: field.key,
449
- value: defaultValue,
450
- type: field.type,
451
- validation: validationArray.length ? validationArray : undefined,
452
- },
453
- output: {
454
- key: field.key,
455
- label: field.label,
456
- type: field.type,
457
- ...(options && { options: options || [] }),
458
- ...(defaultValue && { value: defaultValue }),
459
- },
460
- };
461
- }
462
- /**
463
- * @function returnObjectSelectCollector - Creates a DropDownCollector object based on the provided field and index.
464
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
465
- * @param {number} idx - The index to be used in the id of the DropDownCollector.
466
- * @returns {SingleValueCollector} The constructed DropDownCollector object.
467
- */
468
- export function returnObjectSelectCollector(field, idx) {
469
- return returnObjectCollector(field, idx, field.type === 'DEVICE_AUTHENTICATION'
470
- ? 'DeviceAuthenticationCollector'
471
- : 'DeviceRegistrationCollector');
472
- }
473
- export function returnObjectValueCollector(field, idx, prefillData) {
474
- return returnObjectCollector(field, idx, 'PhoneNumberCollector', prefillData);
475
- }
476
- /**
477
- * @function returnNoValueCollector - Creates a NoValueCollector object based on the provided field, index, and optional collector type.
478
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
479
- * @param {number} idx - The index to be used in the id of the NoValueCollector.
480
- * @param {NoValueCollectorTypes} [collectorType] - Optional type of the NoValueCollector.
481
- * @returns {NoValueCollector} The constructed NoValueCollector object.
482
- */
483
- export function returnNoValueCollector(field, idx, collectorType) {
484
- let error = '';
485
- if (!('content' in field)) {
486
- error = `${error}Content is not found in the field object. `;
487
- }
488
- if (!('type' in field)) {
489
- error = `${error}Type is not found in the field object. `;
490
- }
491
- return {
492
- category: 'NoValueCollector',
493
- error: error || null,
494
- type: collectorType || 'NoValueCollector',
495
- id: `${field.key || field.type}-${idx}`,
496
- name: `${field.key || field.type}-${idx}`,
497
- output: {
498
- key: `${field.key || field.type}-${idx}`,
499
- label: field.content,
500
- type: field.type,
501
- },
502
- };
503
- }
504
- /**
505
- * @function returnReadOnlyCollector - Creates a ReadOnlyCollector object based on the provided field and index.
506
- * @param {DaVinciField} field - The field object containing key, label, type, and links.
507
- * @param {number} idx - The index to be used in the id of the ReadOnlyCollector.
508
- * @returns {ReadOnlyCollector} The constructed ReadOnlyCollector object.
509
- */
510
- export function returnReadOnlyCollector(field, idx) {
511
- return returnNoValueCollector(field, idx, 'ReadOnlyCollector');
512
- }
513
- /**
514
- * @function returnValidator - Creates a validator function based on the provided collector
515
- * @param {ValidatedTextCollector | ObjectValueCollectors | MultiValueCollectors} collector - The collector to which the value will be validated
516
- * @returns {function} - A "validator" function that validates the input value
517
- */
518
- export function returnValidator(collector) {
519
- const rules = collector.input.validation;
520
- return (value) => {
521
- return (rules?.reduce((acc, next) => {
522
- if (next.type === 'required') {
523
- if (!value ||
524
- (Array.isArray(value) && !value.length) ||
525
- (typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length)) {
526
- acc.push(next.message);
527
- }
528
- }
529
- else if (next.type === 'regex' && typeof value === 'string') {
530
- try {
531
- const result = new RegExp(next.rule).test(value);
532
- if (!result) {
533
- acc.push(next.message);
534
- }
535
- }
536
- catch (err) {
537
- const error = err;
538
- acc.push(error.message);
539
- }
540
- }
541
- return acc;
542
- }, []) ?? []);
543
- };
544
- }
545
- export function returnUnknownCollector(field, idx) {
546
- return {
547
- category: 'UnknownCollector',
548
- error: 'Detected an unknown or unsupported collector type',
549
- type: field['type'],
550
- id: `${field['key'] || field['type']}-${idx}`,
551
- name: field['key'] || field['type'],
552
- output: {
553
- key: `${field['key'] || field['type']}-${idx}`,
554
- label: field['label'] || field['content'],
555
- type: field['type'],
556
- },
557
- };
558
- }
559
- //# sourceMappingURL=collector.utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collector.utils.js","sourceRoot":"","sources":["../../../src/lib/collector.utils.ts"],"names":[],"mappings":"AA2CA;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CACnC,KAAoC,EACpC,GAAW,EACX,aAA4B;IAE5B,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC;QACxB,KAAK,GAAG,GAAG,KAAK,0CAA0C,CAAC;IAC7D,CAAC;IACD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,EAAE,CAAC;QACvB,KAAK,GAAG,GAAG,KAAK,yCAAyC,CAAC;IAC5D,CAAC;IAED,IAAI,aAAa,KAAK,cAAc,EAAE,CAAC;QACrC,IAAI,IAAI,CAAC;QACT,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC;YACxB,KAAK,GAAG,GAAG,KAAK,mDAAmD,CAAC;YACpE,IAAI,GAAG,IAAI,CAAC;QACd,CAAC;aAAM,CAAC;YACN,IAAI,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC,cAAc,CAAC,EAAE,IAA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MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACjD,IAAI,CAAC,MAAM,EAAE,CAAC;wBACZ,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;oBACzB,CAAC;gBACH,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACb,MAAM,KAAK,GAAG,GAAY,CAAC;oBAC3B,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAC1B,CAAC;YACH,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAc,CAAC,IAAI,EAAE,CACzB,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,KAA8B,EAAE,GAAW;IAChF,OAAO;QACL,QAAQ,EAAE,kBAAkB;QAC5B,KAAK,EAAE,mDAAmD;QAC1D,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;QACnB,EAAE,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,GAAG,EAAE;QAC7C,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC;QACnC,MAAM,EAAE;YACN,GAAG,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,GAAG,EAAE;YAC9C,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC;YACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;SACpB;KACkB,CAAC;AACxB,CAAC"}
@@ -1,42 +0,0 @@
1
- /**
2
- * Import the createSlice and PayloadAction utilities from Redux Toolkit
3
- * @see https://redux-toolkit.js.org/api/createslice
4
- */
5
- import { type PayloadAction } from '@reduxjs/toolkit';
6
- /**
7
- * Import the types
8
- */
9
- import type { InternalDaVinciConfig } from './config.types.js';
10
- import { Endpoints } from './wellknown.types.js';
11
- /**
12
- * @const configSlice - Define the configuration slice for Redux state management
13
- * @see https://redux-toolkit.js.org/api/createslice
14
- */
15
- export declare const configSlice: import("@reduxjs/toolkit").Slice<{
16
- endpoints: Endpoints;
17
- clientId: string;
18
- redirectUri: string;
19
- responseType: string;
20
- scope: string;
21
- }, {
22
- /**
23
- * @method set - Set the configuration for the DaVinci client
24
- * @param {Object} state - The current state of the slice
25
- * @param {PayloadAction<InternalDaVinciConfig>} action - The action to be dispatched
26
- * @returns {void}
27
- */
28
- set(state: import("immer").WritableDraft<{
29
- endpoints: Endpoints;
30
- clientId: string;
31
- redirectUri: string;
32
- responseType: string;
33
- scope: string;
34
- }>, action: PayloadAction<InternalDaVinciConfig>): void;
35
- }, "config", "config", import("@reduxjs/toolkit").SliceSelectors<{
36
- endpoints: Endpoints;
37
- clientId: string;
38
- redirectUri: string;
39
- responseType: string;
40
- scope: string;
41
- }>>;
42
- //# sourceMappingURL=config.slice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.slice.d.ts","sourceRoot":"","sources":["../../../src/lib/config.slice.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,OAAO,EAAe,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEnE;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAcjD;;;GAGG;AACH,eAAO,MAAM,WAAW;eAXL,SAAS;;;;;;IAgBxB;;;;;OAKG;;mBArBY,SAAS;;;;;gBAsBL,aAAa,CAAC,qBAAqB,CAAC;;eAtBxC,SAAS;;;;;GAkD1B,CAAC"}