@planeasyinc/le-core 0.0.1

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 (71) hide show
  1. package/README.md +0 -0
  2. package/dist/adapter/config.mock.d.ts +727 -0
  3. package/dist/adapter/config.mock.d.ts.map +1 -0
  4. package/dist/adapter/config.mock.js +1020 -0
  5. package/dist/adapter/config.mock.js.map +1 -0
  6. package/dist/adapter/normalizeConfig.d.ts +3 -0
  7. package/dist/adapter/normalizeConfig.d.ts.map +1 -0
  8. package/dist/adapter/normalizeConfig.js +59 -0
  9. package/dist/adapter/normalizeConfig.js.map +1 -0
  10. package/dist/guards/index.d.ts +7 -0
  11. package/dist/guards/index.d.ts.map +1 -0
  12. package/dist/guards/index.js +16 -0
  13. package/dist/guards/index.js.map +1 -0
  14. package/dist/models/internal.d.ts +69 -0
  15. package/dist/models/internal.d.ts.map +1 -0
  16. package/dist/models/internal.js +2 -0
  17. package/dist/models/internal.js.map +1 -0
  18. package/dist/public-api.d.ts +5 -0
  19. package/dist/public-api.d.ts.map +1 -0
  20. package/dist/public-api.js +4 -0
  21. package/dist/public-api.js.map +1 -0
  22. package/dist/utils/decodeJwt.d.ts +2 -0
  23. package/dist/utils/decodeJwt.d.ts.map +1 -0
  24. package/dist/utils/decodeJwt.js +15 -0
  25. package/dist/utils/decodeJwt.js.map +1 -0
  26. package/dist/utils/extractLayout.d.ts +5 -0
  27. package/dist/utils/extractLayout.d.ts.map +1 -0
  28. package/dist/utils/extractLayout.js +10 -0
  29. package/dist/utils/extractLayout.js.map +1 -0
  30. package/dist/utils/isContainer.d.ts +2 -0
  31. package/dist/utils/isContainer.d.ts.map +1 -0
  32. package/dist/utils/isContainer.js +4 -0
  33. package/dist/utils/isContainer.js.map +1 -0
  34. package/dist/utils/normalizeActions.d.ts +3 -0
  35. package/dist/utils/normalizeActions.d.ts.map +1 -0
  36. package/dist/utils/normalizeActions.js +24 -0
  37. package/dist/utils/normalizeActions.js.map +1 -0
  38. package/dist/utils/normalizeControlSource.d.ts +3 -0
  39. package/dist/utils/normalizeControlSource.d.ts.map +1 -0
  40. package/dist/utils/normalizeControlSource.js +17 -0
  41. package/dist/utils/normalizeControlSource.js.map +1 -0
  42. package/dist/utils/normalizeDataSource.d.ts +3 -0
  43. package/dist/utils/normalizeDataSource.d.ts.map +1 -0
  44. package/dist/utils/normalizeDataSource.js +10 -0
  45. package/dist/utils/normalizeDataSource.js.map +1 -0
  46. package/dist/utils/normalizeUI.d.ts +2 -0
  47. package/dist/utils/normalizeUI.d.ts.map +1 -0
  48. package/dist/utils/normalizeUI.js +17 -0
  49. package/dist/utils/normalizeUI.js.map +1 -0
  50. package/dist/utils/urlFragmantBuilder.d.ts +11 -0
  51. package/dist/utils/urlFragmantBuilder.d.ts.map +1 -0
  52. package/dist/utils/urlFragmantBuilder.js +34 -0
  53. package/dist/utils/urlFragmantBuilder.js.map +1 -0
  54. package/package.json +30 -0
  55. package/planeasyinc-le-core-0.0.1.tgz +0 -0
  56. package/src/adapter/normalizeConfig.ts +68 -0
  57. package/src/guards/index.ts +28 -0
  58. package/src/models/internal.ts +100 -0
  59. package/src/public-api.ts +17 -0
  60. package/src/utils/decodeJwt.ts +23 -0
  61. package/src/utils/extractLayout.ts +10 -0
  62. package/src/utils/isContainer.ts +3 -0
  63. package/src/utils/normalizeActions.ts +29 -0
  64. package/src/utils/normalizeControlSource.ts +20 -0
  65. package/src/utils/normalizeDataSource.ts +11 -0
  66. package/src/utils/normalizeUI.ts +19 -0
  67. package/src/utils/urlFragmantBuilder.ts +41 -0
  68. package/tsconfig.build.json +4 -0
  69. package/tsconfig.build.tsbuildinfo +1 -0
  70. package/tsconfig.json +11 -0
  71. package/vitest.config.js +8 -0
package/README.md ADDED
File without changes
@@ -0,0 +1,727 @@
1
+ declare const _default: {
2
+ title: string;
3
+ elements: ({
4
+ type: string;
5
+ id: string;
6
+ chart_type: null;
7
+ columns: null;
8
+ rows: null;
9
+ title: string;
10
+ elements: null;
11
+ control_source: null;
12
+ data_source: {
13
+ type: string;
14
+ method_type: null;
15
+ entity_name: string;
16
+ query_params: null;
17
+ body: null;
18
+ };
19
+ on_row_click: {
20
+ type: string;
21
+ control_source: {
22
+ type: string;
23
+ static_value: null;
24
+ dynamic_value: {
25
+ type: string;
26
+ method_type: null;
27
+ entity_name: string;
28
+ query_params: null;
29
+ body: {
30
+ application_id: string;
31
+ };
32
+ };
33
+ };
34
+ }[];
35
+ table_actions: {
36
+ id: null;
37
+ type: string;
38
+ name: string;
39
+ label: string;
40
+ required: null;
41
+ hideLabel: boolean;
42
+ actions: {
43
+ type: string;
44
+ control_source: {
45
+ type: string;
46
+ static_value: null;
47
+ dynamic_value: {
48
+ type: string;
49
+ method_type: null;
50
+ entity_name: string;
51
+ query_params: null;
52
+ body: {
53
+ force_new: boolean;
54
+ };
55
+ };
56
+ };
57
+ }[];
58
+ on_enter: null;
59
+ validators: null;
60
+ asyncValidators: null;
61
+ activators: null;
62
+ additionalText: null;
63
+ value: null;
64
+ placeholder: null;
65
+ options: null;
66
+ mask: null;
67
+ controls: null;
68
+ showSearch: null;
69
+ sliderOptions: null;
70
+ customLabel: null;
71
+ control: null;
72
+ entityType: null;
73
+ condition: null;
74
+ additional_styles: null;
75
+ override_styles: null;
76
+ hide_default_buttons: boolean;
77
+ }[];
78
+ pagination: null;
79
+ sort: null;
80
+ } | {
81
+ type: string;
82
+ id: null;
83
+ chart_type: null;
84
+ columns: null;
85
+ rows: null;
86
+ title: string;
87
+ elements: ({
88
+ type: string;
89
+ id: string;
90
+ chart_type: null;
91
+ columns: null;
92
+ rows: null;
93
+ title: string;
94
+ elements: null;
95
+ control_source: {
96
+ type: string;
97
+ static_value: null;
98
+ dynamic_value: {
99
+ type: string;
100
+ method_type: null;
101
+ entity_name: string;
102
+ query_params: null;
103
+ body: null;
104
+ };
105
+ };
106
+ data_source: null;
107
+ on_row_click: null;
108
+ table_actions: null;
109
+ pagination: null;
110
+ sort: null;
111
+ } | {
112
+ type: string;
113
+ id: null;
114
+ chart_type: null;
115
+ columns: null;
116
+ rows: null;
117
+ title: string;
118
+ elements: null;
119
+ control_source: {
120
+ type: string;
121
+ static_value: null;
122
+ dynamic_value: {
123
+ type: string;
124
+ method_type: null;
125
+ entity_name: string;
126
+ query_params: null;
127
+ body: null;
128
+ };
129
+ };
130
+ data_source: null;
131
+ on_row_click: null;
132
+ table_actions: null;
133
+ pagination: null;
134
+ sort: null;
135
+ })[];
136
+ control_source: null;
137
+ data_source: null;
138
+ on_row_click: null;
139
+ table_actions: null;
140
+ pagination: null;
141
+ sort: null;
142
+ } | {
143
+ type: string;
144
+ id: null;
145
+ chart_type: null;
146
+ columns: null;
147
+ rows: null;
148
+ title: string;
149
+ elements: ({
150
+ type: string;
151
+ id: string;
152
+ chart_type: null;
153
+ columns: null;
154
+ rows: null;
155
+ title: string;
156
+ elements: null;
157
+ control_source: {
158
+ type: string;
159
+ static_value: null;
160
+ dynamic_value: {
161
+ type: string;
162
+ method_type: null;
163
+ entity_name: string;
164
+ query_params: null;
165
+ body: null;
166
+ };
167
+ };
168
+ data_source: null;
169
+ on_row_click: null;
170
+ table_actions: null;
171
+ pagination: null;
172
+ sort: null;
173
+ } | {
174
+ type: string;
175
+ id: null;
176
+ chart_type: null;
177
+ columns: null;
178
+ rows: null;
179
+ title: string;
180
+ elements: null;
181
+ control_source: null;
182
+ data_source: {
183
+ type: string;
184
+ method_type: null;
185
+ entity_name: string;
186
+ query_params: null;
187
+ body: null;
188
+ };
189
+ on_row_click: {
190
+ type: string;
191
+ control_source: {
192
+ type: string;
193
+ static_value: null;
194
+ dynamic_value: {
195
+ type: string;
196
+ method_type: null;
197
+ entity_name: string;
198
+ query_params: null;
199
+ body: {
200
+ user_object_id: string;
201
+ };
202
+ };
203
+ };
204
+ }[];
205
+ table_actions: null;
206
+ pagination: null;
207
+ sort: null;
208
+ })[];
209
+ control_source: null;
210
+ data_source: null;
211
+ on_row_click: null;
212
+ table_actions: null;
213
+ pagination: null;
214
+ sort: null;
215
+ } | {
216
+ type: string;
217
+ id: string;
218
+ chart_type: null;
219
+ columns: null;
220
+ rows: null;
221
+ title: string;
222
+ elements: ({
223
+ type: string;
224
+ id: string;
225
+ chart_type: null;
226
+ columns: null;
227
+ rows: null;
228
+ title: string;
229
+ elements: {
230
+ type: string;
231
+ id: null;
232
+ chart_type: null;
233
+ columns: null;
234
+ rows: null;
235
+ title: string;
236
+ elements: null;
237
+ control_source: null;
238
+ data_source: {
239
+ type: string;
240
+ method_type: null;
241
+ entity_name: string;
242
+ query_params: null;
243
+ body: null;
244
+ };
245
+ on_row_click: {
246
+ type: string;
247
+ control_source: {
248
+ type: string;
249
+ static_value: null;
250
+ dynamic_value: {
251
+ type: string;
252
+ method_type: null;
253
+ entity_name: string;
254
+ query_params: null;
255
+ body: {
256
+ deal_id: string;
257
+ activity_id: string;
258
+ activity_type: string;
259
+ };
260
+ };
261
+ };
262
+ }[];
263
+ table_actions: null;
264
+ pagination: null;
265
+ sort: null;
266
+ }[];
267
+ control_source: null;
268
+ data_source: null;
269
+ on_row_click: null;
270
+ table_actions: null;
271
+ pagination: null;
272
+ sort: null;
273
+ } | {
274
+ type: string;
275
+ id: null;
276
+ chart_type: null;
277
+ columns: null;
278
+ rows: null;
279
+ title: string;
280
+ elements: null;
281
+ control_source: null;
282
+ data_source: {
283
+ type: string;
284
+ method_type: null;
285
+ entity_name: string;
286
+ query_params: null;
287
+ body: null;
288
+ };
289
+ on_row_click: {
290
+ type: string;
291
+ control_source: {
292
+ type: string;
293
+ static_value: null;
294
+ dynamic_value: {
295
+ type: string;
296
+ method_type: null;
297
+ entity_name: string;
298
+ query_params: null;
299
+ body: {
300
+ deal_id: string;
301
+ };
302
+ };
303
+ };
304
+ }[];
305
+ table_actions: null;
306
+ pagination: {
307
+ enabled: boolean;
308
+ default_page_size: number;
309
+ page_size_options: number[];
310
+ };
311
+ sort: {
312
+ enabled: boolean;
313
+ default_sort: never[];
314
+ sortable_fields: string[];
315
+ };
316
+ } | {
317
+ type: string;
318
+ id: string;
319
+ chart_type: null;
320
+ columns: null;
321
+ rows: null;
322
+ title: string;
323
+ elements: {
324
+ type: string;
325
+ id: null;
326
+ chart_type: null;
327
+ columns: null;
328
+ rows: null;
329
+ title: string;
330
+ elements: null;
331
+ control_source: null;
332
+ data_source: {
333
+ type: string;
334
+ method_type: null;
335
+ entity_name: string;
336
+ query_params: null;
337
+ body: null;
338
+ };
339
+ on_row_click: {
340
+ type: string;
341
+ control_source: {
342
+ type: string;
343
+ static_value: null;
344
+ dynamic_value: {
345
+ type: string;
346
+ method_type: null;
347
+ entity_name: string;
348
+ query_params: null;
349
+ body: {
350
+ activity_id: string;
351
+ activity_type: string;
352
+ };
353
+ };
354
+ };
355
+ }[];
356
+ table_actions: null;
357
+ pagination: {
358
+ enabled: boolean;
359
+ default_page_size: number;
360
+ page_size_options: number[];
361
+ };
362
+ sort: {
363
+ enabled: boolean;
364
+ default_sort: string[];
365
+ sortable_fields: string[];
366
+ };
367
+ }[];
368
+ control_source: null;
369
+ data_source: null;
370
+ on_row_click: null;
371
+ table_actions: null;
372
+ pagination: null;
373
+ sort: null;
374
+ } | {
375
+ type: string;
376
+ id: null;
377
+ chart_type: null;
378
+ columns: null;
379
+ rows: null;
380
+ title: string;
381
+ elements: null;
382
+ control_source: {
383
+ type: string;
384
+ static_value: null;
385
+ dynamic_value: {
386
+ type: string;
387
+ method_type: null;
388
+ entity_name: string;
389
+ query_params: null;
390
+ body: null;
391
+ };
392
+ };
393
+ data_source: null;
394
+ on_row_click: null;
395
+ table_actions: null;
396
+ pagination: null;
397
+ sort: null;
398
+ })[];
399
+ control_source: null;
400
+ data_source: null;
401
+ on_row_click: null;
402
+ table_actions: null;
403
+ pagination: null;
404
+ sort: null;
405
+ } | {
406
+ type: string;
407
+ id: null;
408
+ chart_type: null;
409
+ columns: null;
410
+ rows: null;
411
+ title: string;
412
+ elements: ({
413
+ type: string;
414
+ id: null;
415
+ chart_type: null;
416
+ columns: null;
417
+ rows: null;
418
+ title: string;
419
+ elements: null;
420
+ control_source: {
421
+ type: string;
422
+ static_value: null;
423
+ dynamic_value: {
424
+ type: string;
425
+ method_type: null;
426
+ entity_name: string;
427
+ query_params: null;
428
+ body: null;
429
+ };
430
+ };
431
+ data_source: null;
432
+ on_row_click: null;
433
+ table_actions: null;
434
+ pagination: null;
435
+ sort: null;
436
+ } | {
437
+ type: string;
438
+ id: string;
439
+ chart_type: null;
440
+ columns: null;
441
+ rows: null;
442
+ title: string;
443
+ elements: null;
444
+ control_source: null;
445
+ data_source: {
446
+ type: string;
447
+ method_type: null;
448
+ entity_name: string;
449
+ query_params: null;
450
+ body: null;
451
+ };
452
+ on_row_click: {
453
+ type: string;
454
+ control_source: {
455
+ type: string;
456
+ static_value: null;
457
+ dynamic_value: {
458
+ type: string;
459
+ method_type: null;
460
+ entity_name: string;
461
+ query_params: null;
462
+ body: {
463
+ policy_id: string;
464
+ };
465
+ };
466
+ };
467
+ }[];
468
+ table_actions: {
469
+ id: null;
470
+ type: string;
471
+ name: string;
472
+ label: string;
473
+ required: null;
474
+ hideLabel: boolean;
475
+ actions: {
476
+ type: string;
477
+ control_source: {
478
+ type: string;
479
+ static_value: null;
480
+ dynamic_value: {
481
+ type: string;
482
+ method_type: null;
483
+ entity_name: string;
484
+ query_params: null;
485
+ body: null;
486
+ };
487
+ };
488
+ }[];
489
+ on_enter: null;
490
+ validators: null;
491
+ asyncValidators: null;
492
+ activators: null;
493
+ additionalText: null;
494
+ value: null;
495
+ placeholder: null;
496
+ options: null;
497
+ mask: null;
498
+ controls: null;
499
+ showSearch: null;
500
+ sliderOptions: null;
501
+ customLabel: null;
502
+ control: null;
503
+ entityType: null;
504
+ condition: null;
505
+ additional_styles: null;
506
+ override_styles: null;
507
+ hide_default_buttons: boolean;
508
+ }[];
509
+ pagination: null;
510
+ sort: null;
511
+ } | {
512
+ type: string;
513
+ id: null;
514
+ chart_type: null;
515
+ columns: null;
516
+ rows: null;
517
+ title: string;
518
+ elements: null;
519
+ control_source: null;
520
+ data_source: {
521
+ type: string;
522
+ method_type: null;
523
+ entity_name: string;
524
+ query_params: null;
525
+ body: null;
526
+ };
527
+ on_row_click: {
528
+ type: string;
529
+ control_source: {
530
+ type: string;
531
+ static_value: null;
532
+ dynamic_value: {
533
+ type: string;
534
+ method_type: null;
535
+ entity_name: string;
536
+ query_params: null;
537
+ body: {
538
+ policy_id: string;
539
+ };
540
+ };
541
+ };
542
+ }[];
543
+ table_actions: null;
544
+ pagination: null;
545
+ sort: null;
546
+ })[];
547
+ control_source: null;
548
+ data_source: null;
549
+ on_row_click: null;
550
+ table_actions: null;
551
+ pagination: null;
552
+ sort: null;
553
+ } | {
554
+ type: string;
555
+ id: null;
556
+ chart_type: null;
557
+ columns: null;
558
+ rows: null;
559
+ title: string;
560
+ elements: ({
561
+ type: string;
562
+ id: null;
563
+ chart_type: null;
564
+ columns: null;
565
+ rows: null;
566
+ title: string;
567
+ elements: null;
568
+ control_source: null;
569
+ data_source: {
570
+ type: string;
571
+ method_type: null;
572
+ entity_name: string;
573
+ query_params: null;
574
+ body: null;
575
+ };
576
+ on_row_click: null;
577
+ table_actions: null;
578
+ pagination: {
579
+ enabled: boolean;
580
+ default_page_size: number;
581
+ page_size_options: number[];
582
+ };
583
+ sort: {
584
+ enabled: boolean;
585
+ default_sort: string[];
586
+ sortable_fields: string[];
587
+ };
588
+ } | {
589
+ type: string;
590
+ id: null;
591
+ chart_type: null;
592
+ columns: null;
593
+ rows: null;
594
+ title: string;
595
+ elements: null;
596
+ control_source: null;
597
+ data_source: {
598
+ type: string;
599
+ method_type: null;
600
+ entity_name: string;
601
+ query_params: null;
602
+ body: null;
603
+ };
604
+ on_row_click: null;
605
+ table_actions: null;
606
+ pagination: null;
607
+ sort: null;
608
+ } | {
609
+ type: string;
610
+ id: null;
611
+ chart_type: null;
612
+ columns: null;
613
+ rows: null;
614
+ title: string;
615
+ elements: null;
616
+ control_source: {
617
+ type: string;
618
+ static_value: null;
619
+ dynamic_value: {
620
+ type: string;
621
+ method_type: null;
622
+ entity_name: string;
623
+ query_params: null;
624
+ body: null;
625
+ };
626
+ };
627
+ data_source: null;
628
+ on_row_click: null;
629
+ table_actions: null;
630
+ pagination: null;
631
+ sort: null;
632
+ })[];
633
+ control_source: null;
634
+ data_source: null;
635
+ on_row_click: null;
636
+ table_actions: null;
637
+ pagination: null;
638
+ sort: null;
639
+ } | {
640
+ type: string;
641
+ id: null;
642
+ chart_type: null;
643
+ columns: number;
644
+ rows: number;
645
+ title: string;
646
+ elements: ({
647
+ type: string;
648
+ id: null;
649
+ chart_type: null;
650
+ columns: null;
651
+ rows: null;
652
+ title: null;
653
+ elements: {
654
+ type: string;
655
+ id: null;
656
+ chart_type: string;
657
+ columns: null;
658
+ rows: null;
659
+ title: string;
660
+ elements: null;
661
+ control_source: null;
662
+ data_source: {
663
+ type: string;
664
+ method_type: null;
665
+ entity_name: string;
666
+ query_params: null;
667
+ body: null;
668
+ };
669
+ on_row_click: null;
670
+ table_actions: null;
671
+ pagination: null;
672
+ sort: null;
673
+ }[];
674
+ control_source: null;
675
+ data_source: null;
676
+ on_row_click: null;
677
+ table_actions: null;
678
+ pagination: null;
679
+ sort: null;
680
+ } | {
681
+ type: string;
682
+ id: null;
683
+ chart_type: null;
684
+ columns: null;
685
+ rows: null;
686
+ title: null;
687
+ elements: {
688
+ type: string;
689
+ id: null;
690
+ chart_type: null;
691
+ columns: null;
692
+ rows: null;
693
+ title: null;
694
+ elements: null;
695
+ control_source: null;
696
+ data_source: {
697
+ type: string;
698
+ method_type: null;
699
+ entity_name: string;
700
+ query_params: null;
701
+ body: {
702
+ transaction_type: string;
703
+ };
704
+ };
705
+ on_row_click: null;
706
+ table_actions: null;
707
+ pagination: null;
708
+ sort: null;
709
+ }[];
710
+ control_source: null;
711
+ data_source: null;
712
+ on_row_click: null;
713
+ table_actions: null;
714
+ pagination: null;
715
+ sort: null;
716
+ })[];
717
+ control_source: null;
718
+ data_source: null;
719
+ on_row_click: null;
720
+ table_actions: null;
721
+ pagination: null;
722
+ sort: null;
723
+ })[];
724
+ custom_css: string;
725
+ };
726
+ export default _default;
727
+ //# sourceMappingURL=config.mock.d.ts.map