@persei/perseed-api 5.0.4 → 5.0.6

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 (114) hide show
  1. package/dist/client.cjs +60 -0
  2. package/dist/client.cjs.map +1 -1
  3. package/dist/client.mjs +60 -0
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/lib/src/generated/client.d.ts +196 -0
  6. package/dist/lib/src/generated/client.d.ts.map +1 -1
  7. package/dist/src/Services/ContainerWidgetService.d.ts +14 -0
  8. package/dist/src/Services/ContainerWidgetService.d.ts.map +1 -0
  9. package/dist/src/config/config.d.ts +9 -2
  10. package/dist/src/config/config.d.ts.map +1 -1
  11. package/dist/src/controllers/{DashboardWidgetController.d.ts → ContainerWidgetController.d.ts} +3 -3
  12. package/dist/src/controllers/ContainerWidgetController.d.ts.map +1 -0
  13. package/dist/src/helpers/dashboards.d.ts +5 -5
  14. package/dist/src/helpers/dashboards.d.ts.map +1 -1
  15. package/dist/src/models/ecosystem/{DashboardWidget.d.ts → ContainerWidget.d.ts} +14 -14
  16. package/dist/src/models/ecosystem/ContainerWidget.d.ts.map +1 -0
  17. package/dist/src/models/ecosystem/{DashboardWidgetBlock.d.ts → ContainerWidgetBlock.d.ts} +5 -5
  18. package/dist/src/models/ecosystem/{DashboardWidgetBlock.d.ts.map → ContainerWidgetBlock.d.ts.map} +1 -1
  19. package/dist/src/models/perseed/UserSettings.d.ts.map +1 -1
  20. package/dist/src/routes/ecosystem/_ecosystemName/dashboardWidget/_id/index.d.ts.map +1 -1
  21. package/dist/src/routes/ecosystem/_ecosystemName/dashboardWidget/index.d.ts.map +1 -1
  22. package/dist/src/routes/ecosystem/_ecosystemName/project/_projectName/dashboardWidget/_id/index.d.ts.map +1 -1
  23. package/dist/src/routes/ecosystem/_ecosystemName/project/_projectName/dashboardWidget/index.d.ts.map +1 -1
  24. package/dist/src/schemas/{dashboard_widget → container_widget}/col.d.ts.map +1 -1
  25. package/dist/src/schemas/{dashboard_widget → container_widget}/create_widget_payload.schema.json +328 -46
  26. package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/Outcomes.d.ts.map +1 -1
  27. package/dist/src/schemas/container_widget/dataLoaders/index.d.ts.map +1 -0
  28. package/dist/src/schemas/{dashboard_widget → container_widget}/i18n.d.ts.map +1 -1
  29. package/dist/src/schemas/{dashboard_widget → container_widget}/index.d.ts.map +1 -1
  30. package/dist/src/schemas/container_widget/types.d.ts +184 -0
  31. package/dist/src/schemas/container_widget/types.d.ts.map +1 -0
  32. package/dist/src/schemas/{dashboard_widget → container_widget}/update_widget_payload.schema.json +240 -28
  33. package/dist/src/schemas/container_widget/widgetTypes/ContainerWidgetProps.d.ts +6 -0
  34. package/dist/src/schemas/container_widget/widgetTypes/ContainerWidgetProps.d.ts.map +1 -0
  35. package/dist/src/schemas/container_widget/widgetTypes/ModalProps.d.ts +19 -0
  36. package/dist/src/schemas/container_widget/widgetTypes/ModalProps.d.ts.map +1 -0
  37. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/PatientListProps.d.ts +50 -1
  38. package/dist/src/schemas/container_widget/widgetTypes/PatientListProps.d.ts.map +1 -0
  39. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts.map +1 -1
  40. package/dist/src/schemas/container_widget/widgetTypes/SidebarProps.d.ts +22 -0
  41. package/dist/src/schemas/container_widget/widgetTypes/SidebarProps.d.ts.map +1 -0
  42. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/ValueCardProps.d.ts +2 -2
  43. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/ValueCardProps.d.ts.map +1 -1
  44. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/index.d.ts +3 -1
  45. package/dist/src/schemas/container_widget/widgetTypes/index.d.ts.map +1 -0
  46. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/Generic.d.ts.map +1 -1
  47. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconPresentationWidget.d.ts.map +1 -1
  48. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.d.ts.map +1 -1
  49. package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +17 -0
  50. package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +1 -0
  51. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts.map +1 -1
  52. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/TextPresentationWidget.d.ts.map +1 -1
  53. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/index.d.ts.map +1 -1
  54. package/dist/src/schemas/index.d.ts +1 -1
  55. package/dist/src/schemas/user_settings/GenericStringSetting.schema.json +9 -0
  56. package/dist/src/schemas/user_settings/types.d.ts +4 -0
  57. package/dist/src/schemas/user_settings/types.d.ts.map +1 -1
  58. package/dist/src/v2/modules/container_widget/container-widget.service.test.d.ts +2 -0
  59. package/dist/src/v2/modules/container_widget/container-widget.service.test.d.ts.map +1 -0
  60. package/dist/src/v2/modules/project/forms-data/forms-data.controller.d.ts.map +1 -1
  61. package/dist/src/v2/modules/project/forms-data/forms-data.helper.d.ts +17 -0
  62. package/dist/src/v2/modules/project/forms-data/forms-data.helper.d.ts.map +1 -0
  63. package/dist/src/v2/modules/project/forms-data/forms-data.helper.test.d.ts +2 -0
  64. package/dist/src/v2/modules/project/forms-data/forms-data.helper.test.d.ts.map +1 -0
  65. package/dist/src/v2/modules/project/forms-data/forms-data.schema.d.ts +1 -0
  66. package/dist/src/v2/modules/project/forms-data/forms-data.schema.d.ts.map +1 -1
  67. package/dist/src/v2/modules/project/forms-data/forms-data.service.d.ts +1 -1
  68. package/dist/src/v2/modules/project/forms-data/forms-data.service.d.ts.map +1 -1
  69. package/dist/src/v2/modules/project/thryve/index.d.ts +4 -0
  70. package/dist/src/v2/modules/project/thryve/index.d.ts.map +1 -0
  71. package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts +5 -0
  72. package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts.map +1 -0
  73. package/dist/src/v2/modules/project/thryve/thryve.controller.e2e.d.ts +2 -0
  74. package/dist/src/v2/modules/project/thryve/thryve.controller.e2e.d.ts.map +1 -0
  75. package/dist/src/v2/modules/project/thryve/thryve.controller.test.d.ts +2 -0
  76. package/dist/src/v2/modules/project/thryve/thryve.controller.test.d.ts.map +1 -0
  77. package/dist/src/v2/modules/project/thryve/thryve.schema.d.ts +10 -0
  78. package/dist/src/v2/modules/project/thryve/thryve.schema.d.ts.map +1 -0
  79. package/dist/src/v2/modules/project/thryve/thryve.service.d.ts +30 -0
  80. package/dist/src/v2/modules/project/thryve/thryve.service.d.ts.map +1 -0
  81. package/dist/src/v2/modules/project/thryve/thryve.service.test.d.ts +2 -0
  82. package/dist/src/v2/modules/project/thryve/thryve.service.test.d.ts.map +1 -0
  83. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts +3 -0
  84. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts.map +1 -0
  85. package/dist/v1/perseed-api.cjs +67 -14
  86. package/dist/v1/perseed-api.cjs.map +1 -1
  87. package/dist/v1/perseed-api.mjs +67 -14
  88. package/dist/v1/perseed-api.mjs.map +1 -1
  89. package/package.json +1 -1
  90. package/dist/src/Services/DashboardWidgetService.d.ts +0 -14
  91. package/dist/src/Services/DashboardWidgetService.d.ts.map +0 -1
  92. package/dist/src/controllers/DashboardWidgetController.d.ts.map +0 -1
  93. package/dist/src/models/ecosystem/DashboardWidget.d.ts.map +0 -1
  94. package/dist/src/schemas/dashboard_widget/dataLoaders/index.d.ts.map +0 -1
  95. package/dist/src/schemas/dashboard_widget/types.d.ts +0 -137
  96. package/dist/src/schemas/dashboard_widget/types.d.ts.map +0 -1
  97. package/dist/src/schemas/dashboard_widget/widgetTypes/DashboardProps.d.ts +0 -6
  98. package/dist/src/schemas/dashboard_widget/widgetTypes/DashboardProps.d.ts.map +0 -1
  99. package/dist/src/schemas/dashboard_widget/widgetTypes/PatientListProps.d.ts.map +0 -1
  100. package/dist/src/schemas/dashboard_widget/widgetTypes/index.d.ts.map +0 -1
  101. package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +0 -7
  102. package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +0 -1
  103. /package/dist/src/schemas/{dashboard_widget → container_widget}/col.d.ts +0 -0
  104. /package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/Outcomes.d.ts +0 -0
  105. /package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/index.d.ts +0 -0
  106. /package/dist/src/schemas/{dashboard_widget → container_widget}/i18n.d.ts +0 -0
  107. /package/dist/src/schemas/{dashboard_widget → container_widget}/index.d.ts +0 -0
  108. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts +0 -0
  109. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/Generic.d.ts +0 -0
  110. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconPresentationWidget.d.ts +0 -0
  111. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.d.ts +0 -0
  112. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts +0 -0
  113. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/TextPresentationWidget.d.ts +0 -0
  114. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/index.d.ts +0 -0
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/CreateDashboardWidgetPayload",
3
+ "$ref": "#/definitions/CreateContainerWidgetPayload",
4
4
  "definitions": {
5
- "CreateDashboardWidgetPayload": {
5
+ "CreateContainerWidgetPayload": {
6
6
  "anyOf": [
7
7
  {
8
8
  "type": "object",
@@ -10,10 +10,10 @@
10
10
  "properties": {
11
11
  "type": {
12
12
  "type": "string",
13
- "const": "SectionCard"
13
+ "const": "Dashboard"
14
14
  },
15
15
  "params": {
16
- "$ref": "#/definitions/SectionCardProps"
16
+ "$ref": "#/definitions/ContainerWidgetProps"
17
17
  },
18
18
  "title": {
19
19
  "type": "string"
@@ -40,7 +40,7 @@
40
40
  "widgetsBlocks": {
41
41
  "type": "array",
42
42
  "items": {
43
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
43
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
44
44
  }
45
45
  }
46
46
  },
@@ -52,10 +52,10 @@
52
52
  "properties": {
53
53
  "type": {
54
54
  "type": "string",
55
- "const": "ValueCard"
55
+ "const": "Modal"
56
56
  },
57
57
  "params": {
58
- "$ref": "#/definitions/ValueCardProps"
58
+ "$ref": "#/definitions/ModalProps"
59
59
  },
60
60
  "title": {
61
61
  "type": "string"
@@ -82,7 +82,7 @@
82
82
  "widgetsBlocks": {
83
83
  "type": "array",
84
84
  "items": {
85
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
85
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
86
86
  }
87
87
  }
88
88
  },
@@ -94,10 +94,10 @@
94
94
  "properties": {
95
95
  "type": {
96
96
  "type": "string",
97
- "const": "PatientList"
97
+ "const": "Sidebar"
98
98
  },
99
99
  "params": {
100
- "$ref": "#/definitions/PatientListProps"
100
+ "$ref": "#/definitions/SidebarProps"
101
101
  },
102
102
  "title": {
103
103
  "type": "string"
@@ -124,7 +124,7 @@
124
124
  "widgetsBlocks": {
125
125
  "type": "array",
126
126
  "items": {
127
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
127
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
128
128
  }
129
129
  }
130
130
  },
@@ -136,10 +136,94 @@
136
136
  "properties": {
137
137
  "type": {
138
138
  "type": "string",
139
- "const": "Dashboard"
139
+ "const": "SectionCard"
140
+ },
141
+ "params": {
142
+ "$ref": "#/definitions/SectionCardProps"
143
+ },
144
+ "title": {
145
+ "type": "string"
146
+ },
147
+ "description": {
148
+ "type": ["string", "null"]
149
+ },
150
+ "weight": {
151
+ "type": "number"
152
+ },
153
+ "size": {
154
+ "anyOf": [
155
+ {
156
+ "type": "number"
157
+ },
158
+ {
159
+ "$ref": "#/definitions/ColProps"
160
+ }
161
+ ]
162
+ },
163
+ "library": {
164
+ "type": "boolean"
165
+ },
166
+ "widgetsBlocks": {
167
+ "type": "array",
168
+ "items": {
169
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
170
+ }
171
+ }
172
+ },
173
+ "required": ["params", "title", "type"]
174
+ },
175
+ {
176
+ "type": "object",
177
+ "additionalProperties": false,
178
+ "properties": {
179
+ "type": {
180
+ "type": "string",
181
+ "const": "ValueCard"
182
+ },
183
+ "params": {
184
+ "$ref": "#/definitions/ValueCardProps"
185
+ },
186
+ "title": {
187
+ "type": "string"
188
+ },
189
+ "description": {
190
+ "type": ["string", "null"]
191
+ },
192
+ "weight": {
193
+ "type": "number"
194
+ },
195
+ "size": {
196
+ "anyOf": [
197
+ {
198
+ "type": "number"
199
+ },
200
+ {
201
+ "$ref": "#/definitions/ColProps"
202
+ }
203
+ ]
204
+ },
205
+ "library": {
206
+ "type": "boolean"
207
+ },
208
+ "widgetsBlocks": {
209
+ "type": "array",
210
+ "items": {
211
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
212
+ }
213
+ }
214
+ },
215
+ "required": ["params", "title", "type"]
216
+ },
217
+ {
218
+ "type": "object",
219
+ "additionalProperties": false,
220
+ "properties": {
221
+ "type": {
222
+ "type": "string",
223
+ "const": "PatientList"
140
224
  },
141
225
  "params": {
142
- "$ref": "#/definitions/DashboardProps"
226
+ "$ref": "#/definitions/PatientListProps"
143
227
  },
144
228
  "title": {
145
229
  "type": "string"
@@ -166,7 +250,7 @@
166
250
  "widgetsBlocks": {
167
251
  "type": "array",
168
252
  "items": {
169
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
253
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
170
254
  }
171
255
  }
172
256
  },
@@ -208,7 +292,7 @@
208
292
  "widgetsBlocks": {
209
293
  "type": "array",
210
294
  "items": {
211
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
295
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
212
296
  }
213
297
  }
214
298
  },
@@ -250,7 +334,7 @@
250
334
  "widgetsBlocks": {
251
335
  "type": "array",
252
336
  "items": {
253
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
337
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
254
338
  }
255
339
  }
256
340
  },
@@ -292,7 +376,7 @@
292
376
  "widgetsBlocks": {
293
377
  "type": "array",
294
378
  "items": {
295
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
379
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
296
380
  }
297
381
  }
298
382
  },
@@ -334,7 +418,7 @@
334
418
  "widgetsBlocks": {
335
419
  "type": "array",
336
420
  "items": {
337
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
421
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
338
422
  }
339
423
  }
340
424
  },
@@ -376,7 +460,7 @@
376
460
  "widgetsBlocks": {
377
461
  "type": "array",
378
462
  "items": {
379
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
463
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
380
464
  }
381
465
  }
382
466
  },
@@ -418,7 +502,7 @@
418
502
  "widgetsBlocks": {
419
503
  "type": "array",
420
504
  "items": {
421
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
505
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
422
506
  }
423
507
  }
424
508
  },
@@ -426,20 +510,20 @@
426
510
  }
427
511
  ]
428
512
  },
429
- "SectionCardProps": {
513
+ "ContainerWidgetProps": {
430
514
  "type": "object",
431
515
  "properties": {
432
- "icon": {
433
- "type": "string"
516
+ "active": {
517
+ "type": "boolean"
434
518
  },
435
- "background": {
436
- "type": "string"
519
+ "config": {
520
+ "type": "object",
521
+ "additionalProperties": {}
437
522
  },
438
- "titleBackground": {
439
- "type": "string"
523
+ "icon": {
524
+ "type": ["string", "null"]
440
525
  }
441
526
  },
442
- "required": ["icon"],
443
527
  "additionalProperties": false
444
528
  },
445
529
  "ColProps": {
@@ -574,7 +658,7 @@
574
658
  },
575
659
  "additionalProperties": false
576
660
  },
577
- "DashboardWidgetBlockCreatePayload": {
661
+ "ContainerWidgetBlockCreatePayload": {
578
662
  "type": "object",
579
663
  "properties": {
580
664
  "parent_id": {
@@ -616,6 +700,130 @@
616
700
  },
617
701
  "additionalProperties": false
618
702
  },
703
+ "ModalProps": {
704
+ "type": "object",
705
+ "properties": {
706
+ "active": {
707
+ "type": "boolean"
708
+ },
709
+ "icon": {
710
+ "type": ["string", "null"]
711
+ },
712
+ "config": {
713
+ "$ref": "#/definitions/ModalConfig"
714
+ },
715
+ "paramMappings": {
716
+ "$ref": "#/definitions/ContainerParamMappings"
717
+ }
718
+ },
719
+ "required": ["config"],
720
+ "additionalProperties": false
721
+ },
722
+ "ModalConfig": {
723
+ "type": "object",
724
+ "properties": {
725
+ "size": {
726
+ "$ref": "#/definitions/ModalSize"
727
+ },
728
+ "width": {
729
+ "type": "string"
730
+ },
731
+ "height": {
732
+ "type": "string"
733
+ }
734
+ },
735
+ "required": ["size"],
736
+ "additionalProperties": false
737
+ },
738
+ "ModalSize": {
739
+ "type": "string",
740
+ "enum": ["small", "medium", "large", "fullscreen", "custom"]
741
+ },
742
+ "ContainerParamMappings": {
743
+ "type": "object",
744
+ "additionalProperties": {
745
+ "type": "object",
746
+ "additionalProperties": {
747
+ "$ref": "#/definitions/ParamMapping"
748
+ }
749
+ }
750
+ },
751
+ "ParamMapping": {
752
+ "type": "object",
753
+ "properties": {
754
+ "source": {
755
+ "$ref": "#/definitions/ParamMappingSource"
756
+ },
757
+ "value": {
758
+ "type": "string"
759
+ }
760
+ },
761
+ "required": ["source"],
762
+ "additionalProperties": false
763
+ },
764
+ "ParamMappingSource": {
765
+ "type": "string",
766
+ "enum": ["field", "literal"]
767
+ },
768
+ "SidebarProps": {
769
+ "type": "object",
770
+ "properties": {
771
+ "active": {
772
+ "type": "boolean"
773
+ },
774
+ "icon": {
775
+ "type": ["string", "null"]
776
+ },
777
+ "config": {
778
+ "$ref": "#/definitions/SidebarConfig"
779
+ },
780
+ "paramMappings": {
781
+ "$ref": "#/definitions/ContainerParamMappings"
782
+ }
783
+ },
784
+ "required": ["config"],
785
+ "additionalProperties": false
786
+ },
787
+ "SidebarConfig": {
788
+ "type": "object",
789
+ "properties": {
790
+ "placement": {
791
+ "$ref": "#/definitions/SidebarPlacement"
792
+ },
793
+ "size": {
794
+ "$ref": "#/definitions/SidebarSize"
795
+ },
796
+ "width": {
797
+ "type": "string"
798
+ }
799
+ },
800
+ "required": ["placement", "size"],
801
+ "additionalProperties": false
802
+ },
803
+ "SidebarPlacement": {
804
+ "type": "string",
805
+ "enum": ["left", "right"]
806
+ },
807
+ "SidebarSize": {
808
+ "type": "string",
809
+ "enum": ["small", "medium", "large", "custom"]
810
+ },
811
+ "SectionCardProps": {
812
+ "type": "object",
813
+ "properties": {
814
+ "icon": {
815
+ "type": "string"
816
+ },
817
+ "background": {
818
+ "type": "string"
819
+ },
820
+ "titleBackground": {
821
+ "type": "string"
822
+ }
823
+ },
824
+ "required": ["icon"],
825
+ "additionalProperties": false
826
+ },
619
827
  "ValueCardProps": {
620
828
  "type": "object",
621
829
  "properties": {
@@ -638,7 +846,7 @@
638
846
  "type": "object"
639
847
  },
640
848
  "dataLoader": {
641
- "$ref": "#/definitions/DashboardWidgetDataLoader%3CWidgetOutcomesDataLoader%3E"
849
+ "$ref": "#/definitions/ContainerWidgetDataLoader%3CWidgetOutcomesDataLoader%3E"
642
850
  }
643
851
  },
644
852
  "required": ["icon", "text"],
@@ -666,7 +874,7 @@
666
874
  "type": "string"
667
875
  }
668
876
  },
669
- "DashboardWidgetDataLoader<WidgetOutcomesDataLoader>": {
877
+ "ContainerWidgetDataLoader<WidgetOutcomesDataLoader>": {
670
878
  "type": "object",
671
879
  "properties": {
672
880
  "type": {
@@ -1318,19 +1526,6 @@
1318
1526
  },
1319
1527
  "additionalProperties": false
1320
1528
  },
1321
- "DashboardProps": {
1322
- "type": "object",
1323
- "properties": {
1324
- "active": {
1325
- "type": "boolean"
1326
- },
1327
- "config": {},
1328
- "icon": {
1329
- "type": ["string", "null"]
1330
- }
1331
- },
1332
- "additionalProperties": false
1333
- },
1334
1529
  "EmptyProps": {
1335
1530
  "type": "object",
1336
1531
  "additionalProperties": {
@@ -1388,6 +1583,12 @@
1388
1583
  },
1389
1584
  "appearance": {
1390
1585
  "$ref": "#/definitions/FormListAppearanceConfig"
1586
+ },
1587
+ "finalParams": {
1588
+ "type": "array",
1589
+ "items": {
1590
+ "$ref": "#/definitions/FinalParam"
1591
+ }
1391
1592
  }
1392
1593
  },
1393
1594
  "required": ["data"],
@@ -1407,7 +1608,7 @@
1407
1608
  "additionalProperties": {}
1408
1609
  },
1409
1610
  "limit": {
1410
- "type": "number"
1611
+ "type": ["number", "null"]
1411
1612
  },
1412
1613
  "sortBy": {
1413
1614
  "type": "array",
@@ -1417,6 +1618,12 @@
1417
1618
  },
1418
1619
  "mainForm": {
1419
1620
  "type": "boolean"
1621
+ },
1622
+ "filterParams": {
1623
+ "type": "array",
1624
+ "items": {
1625
+ "$ref": "#/definitions/FilterParamsBlock"
1626
+ }
1420
1627
  }
1421
1628
  },
1422
1629
  "required": ["fields"],
@@ -1435,6 +1642,23 @@
1435
1642
  "required": ["field", "orderType"],
1436
1643
  "additionalProperties": false
1437
1644
  },
1645
+ "FilterParamsBlock": {
1646
+ "type": "object",
1647
+ "properties": {
1648
+ "required": {
1649
+ "type": "boolean"
1650
+ },
1651
+ "rules": {
1652
+ "type": "object",
1653
+ "additionalProperties": {}
1654
+ },
1655
+ "description": {
1656
+ "type": "string"
1657
+ }
1658
+ },
1659
+ "required": ["required", "rules"],
1660
+ "additionalProperties": false
1661
+ },
1438
1662
  "FormListLayoutConfig": {
1439
1663
  "type": "object",
1440
1664
  "properties": {
@@ -1464,6 +1688,9 @@
1464
1688
  },
1465
1689
  "hidden": {
1466
1690
  "type": "boolean"
1691
+ },
1692
+ "aggregation": {
1693
+ "$ref": "#/definitions/ColumnAggregation"
1467
1694
  }
1468
1695
  },
1469
1696
  "additionalProperties": false
@@ -1498,11 +1725,46 @@
1498
1725
  },
1499
1726
  "textColor": {
1500
1727
  "type": "string"
1728
+ },
1729
+ "underline": {
1730
+ "type": "boolean"
1731
+ },
1732
+ "linkType": {
1733
+ "$ref": "#/definitions/LinkType"
1734
+ },
1735
+ "openInNewTab": {
1736
+ "type": "boolean"
1737
+ },
1738
+ "targetWidgetId": {
1739
+ "type": "number"
1740
+ },
1741
+ "paramMappings": {
1742
+ "$ref": "#/definitions/ContainerParamMappings"
1743
+ }
1744
+ },
1745
+ "additionalProperties": false
1746
+ },
1747
+ "LinkType": {
1748
+ "type": "string",
1749
+ "enum": ["external", "internal"]
1750
+ },
1751
+ "ColumnAggregation": {
1752
+ "type": "object",
1753
+ "properties": {
1754
+ "type": {
1755
+ "$ref": "#/definitions/AggregationType"
1756
+ },
1757
+ "position": {
1758
+ "type": "number"
1501
1759
  }
1502
1760
  },
1503
- "required": ["url"],
1761
+ "required": ["type"],
1504
1762
  "additionalProperties": false
1505
1763
  },
1764
+ "AggregationType": {
1765
+ "type": "string",
1766
+ "enum": ["first", "last", "position", "avg", "sum", "min", "max", "median", "stddev"]
1767
+ },
1506
1768
  "FormListAppearanceConfig": {
1507
1769
  "type": "object",
1508
1770
  "properties": {
@@ -1574,6 +1836,26 @@
1574
1836
  }
1575
1837
  },
1576
1838
  "additionalProperties": false
1839
+ },
1840
+ "FinalParam": {
1841
+ "type": "object",
1842
+ "properties": {
1843
+ "name": {
1844
+ "type": "string"
1845
+ },
1846
+ "type": {
1847
+ "$ref": "#/definitions/FinalParamType"
1848
+ },
1849
+ "required": {
1850
+ "type": "boolean"
1851
+ }
1852
+ },
1853
+ "required": ["name", "type", "required"],
1854
+ "additionalProperties": false
1855
+ },
1856
+ "FinalParamType": {
1857
+ "type": "string",
1858
+ "enum": ["string", "number", "boolean", "date", "time"]
1577
1859
  }
1578
1860
  }
1579
1861
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Outcomes.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/dashboard_widget/dataLoaders/Outcomes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAA;IAC7B,MAAM,EAAE,cAAc,CAAA;CACvB"}
1
+ {"version":3,"file":"Outcomes.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/dataLoaders/Outcomes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAA;IAC7B,MAAM,EAAE,cAAc,CAAA;CACvB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/dataLoaders/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/dashboard_widget/i18n.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IAEf,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,MAAM,CAAA"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/container_widget/i18n.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IAEf,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,MAAM,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/dashboard_widget/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,OAAO,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/container_widget/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,OAAO,CAAA"}