@persei/perseed-api 5.0.3 → 5.0.5

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 (104) 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 +190 -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/{DashboardWidgetController.d.ts.map → ContainerWidgetController.d.ts.map} +1 -1
  13. package/dist/src/helpers/dashboards.d.ts +4 -4
  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 +277 -50
  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 +189 -32
  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 +17 -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 +26 -1
  38. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/PatientListProps.d.ts.map +1 -1
  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 +20 -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 +1 -1
  47. package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/Generic.d.ts.map +1 -0
  48. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconPresentationWidget.d.ts.map +1 -1
  49. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.d.ts.map +1 -1
  50. package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +15 -0
  51. package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +1 -0
  52. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts.map +1 -1
  53. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/TextPresentationWidget.d.ts.map +1 -1
  54. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/index.d.ts.map +1 -1
  55. package/dist/src/schemas/index.d.ts +1 -1
  56. package/dist/src/schemas/user_settings/GenericStringSetting.schema.json +9 -0
  57. package/dist/src/schemas/user_settings/types.d.ts +4 -0
  58. package/dist/src/schemas/user_settings/types.d.ts.map +1 -1
  59. package/dist/src/v2/modules/project/forms-data/forms-data.service.d.ts +1 -0
  60. package/dist/src/v2/modules/project/forms-data/forms-data.service.d.ts.map +1 -1
  61. package/dist/src/v2/modules/project/thryve/index.d.ts +4 -0
  62. package/dist/src/v2/modules/project/thryve/index.d.ts.map +1 -0
  63. package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts +5 -0
  64. package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts.map +1 -0
  65. package/dist/src/v2/modules/project/thryve/thryve.controller.e2e.d.ts +2 -0
  66. package/dist/src/v2/modules/project/thryve/thryve.controller.e2e.d.ts.map +1 -0
  67. package/dist/src/v2/modules/project/thryve/thryve.controller.test.d.ts +2 -0
  68. package/dist/src/v2/modules/project/thryve/thryve.controller.test.d.ts.map +1 -0
  69. package/dist/src/v2/modules/project/thryve/thryve.schema.d.ts +10 -0
  70. package/dist/src/v2/modules/project/thryve/thryve.schema.d.ts.map +1 -0
  71. package/dist/src/v2/modules/project/thryve/thryve.service.d.ts +30 -0
  72. package/dist/src/v2/modules/project/thryve/thryve.service.d.ts.map +1 -0
  73. package/dist/src/v2/modules/project/thryve/thryve.service.test.d.ts +2 -0
  74. package/dist/src/v2/modules/project/thryve/thryve.service.test.d.ts.map +1 -0
  75. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts +3 -0
  76. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts.map +1 -0
  77. package/dist/v1/perseed-api.cjs +67 -14
  78. package/dist/v1/perseed-api.cjs.map +1 -1
  79. package/dist/v1/perseed-api.mjs +67 -14
  80. package/dist/v1/perseed-api.mjs.map +1 -1
  81. package/package.json +1 -1
  82. package/dist/src/Services/DashboardWidgetService.d.ts +0 -14
  83. package/dist/src/Services/DashboardWidgetService.d.ts.map +0 -1
  84. package/dist/src/models/ecosystem/DashboardWidget.d.ts.map +0 -1
  85. package/dist/src/schemas/dashboard_widget/dataLoaders/index.d.ts.map +0 -1
  86. package/dist/src/schemas/dashboard_widget/types.d.ts +0 -137
  87. package/dist/src/schemas/dashboard_widget/types.d.ts.map +0 -1
  88. package/dist/src/schemas/dashboard_widget/widgetTypes/DashboardProps.d.ts +0 -6
  89. package/dist/src/schemas/dashboard_widget/widgetTypes/DashboardProps.d.ts.map +0 -1
  90. package/dist/src/schemas/dashboard_widget/widgetTypes/index.d.ts.map +0 -1
  91. package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/Generic.d.ts.map +0 -1
  92. package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +0 -7
  93. package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +0 -1
  94. /package/dist/src/schemas/{dashboard_widget → container_widget}/col.d.ts +0 -0
  95. /package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/Outcomes.d.ts +0 -0
  96. /package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/index.d.ts +0 -0
  97. /package/dist/src/schemas/{dashboard_widget → container_widget}/i18n.d.ts +0 -0
  98. /package/dist/src/schemas/{dashboard_widget → container_widget}/index.d.ts +0 -0
  99. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts +0 -0
  100. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconPresentationWidget.d.ts +0 -0
  101. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.d.ts +0 -0
  102. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts +0 -0
  103. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/TextPresentationWidget.d.ts +0 -0
  104. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/index.d.ts +0 -0
@@ -0,0 +1,184 @@
1
+ import { ColProps } from './col';
2
+ import { ContainerWidgetProps, FormListProps, FormsListProps, ModalProps, PatientListProps, SectionCardProps, SidebarProps, ValueCardProps } from './widgetTypes';
3
+ /**
4
+ * True containers: host other widgets inside them.
5
+ */
6
+ export declare enum ContainerType {
7
+ DASHBOARD = "Dashboard",
8
+ MODAL = "Modal",
9
+ SIDEBAR = "Sidebar"
10
+ }
11
+ /**
12
+ * Leaf widgets: rendered inside a container, do not hold other widgets.
13
+ */
14
+ export declare enum WidgetType {
15
+ VALUECARD = "ValueCard",
16
+ SECTIONCARD = "SectionCard",
17
+ PATIENTLIST = "PatientList",
18
+ QUESTIONNAIRE_LOG = "QuestionnaireLog",
19
+ PATIENTS_PROGRAMS = "PatientsPrograms",
20
+ PATIENTS = "Patients",
21
+ ADHERENCE_SUMMARY = "AdherenceSummary",
22
+ FORM_LIST = "FormList",
23
+ FORMS_LIST = "FormsList"
24
+ }
25
+ /**
26
+ * Union of both enums. Exposed as the previous enum name so existing consumers
27
+ * keep compiling. New code should prefer the narrower `ContainerType` or
28
+ * `WidgetType` when the distinction is relevant.
29
+ */
30
+ export declare const ContainerWidgetType: {
31
+ readonly VALUECARD: WidgetType.VALUECARD;
32
+ readonly SECTIONCARD: WidgetType.SECTIONCARD;
33
+ readonly PATIENTLIST: WidgetType.PATIENTLIST;
34
+ readonly QUESTIONNAIRE_LOG: WidgetType.QUESTIONNAIRE_LOG;
35
+ readonly PATIENTS_PROGRAMS: WidgetType.PATIENTS_PROGRAMS;
36
+ readonly PATIENTS: WidgetType.PATIENTS;
37
+ readonly ADHERENCE_SUMMARY: WidgetType.ADHERENCE_SUMMARY;
38
+ readonly FORM_LIST: WidgetType.FORM_LIST;
39
+ readonly FORMS_LIST: WidgetType.FORMS_LIST;
40
+ readonly DASHBOARD: ContainerType.DASHBOARD;
41
+ readonly MODAL: ContainerType.MODAL;
42
+ readonly SIDEBAR: ContainerType.SIDEBAR;
43
+ };
44
+ export type ContainerWidgetType = ContainerType | WidgetType;
45
+ export type WidgetBlockConfig = {
46
+ size?: number | ColProps;
47
+ };
48
+ export type ContainerWidgetBlockCreatePayload = {
49
+ parent_id: number | string;
50
+ child_id: number;
51
+ position: number;
52
+ config?: WidgetBlockConfig | null;
53
+ };
54
+ export type ContainerBaseWidgetPayload = {
55
+ title: string;
56
+ description?: string | null;
57
+ weight?: number;
58
+ size?: number | ColProps;
59
+ library?: boolean;
60
+ widgetsBlocks?: ContainerWidgetBlockCreatePayload[];
61
+ };
62
+ export type EmptyProps = Record<string, never>;
63
+ export type ContainerProps = {
64
+ type: ContainerType.DASHBOARD;
65
+ params: ContainerWidgetProps;
66
+ } | {
67
+ type: ContainerType.MODAL;
68
+ params: ModalProps;
69
+ } | {
70
+ type: ContainerType.SIDEBAR;
71
+ params: SidebarProps;
72
+ };
73
+ export type WidgetProps = {
74
+ type: WidgetType.SECTIONCARD;
75
+ params: SectionCardProps;
76
+ } | {
77
+ type: WidgetType.VALUECARD;
78
+ params: ValueCardProps;
79
+ } | {
80
+ type: WidgetType.PATIENTLIST;
81
+ params: PatientListProps;
82
+ } | {
83
+ type: WidgetType.QUESTIONNAIRE_LOG;
84
+ params: EmptyProps;
85
+ } | {
86
+ type: WidgetType.PATIENTS_PROGRAMS;
87
+ params: EmptyProps;
88
+ } | {
89
+ type: WidgetType.PATIENTS;
90
+ params: EmptyProps;
91
+ } | {
92
+ type: WidgetType.ADHERENCE_SUMMARY;
93
+ params: EmptyProps;
94
+ } | {
95
+ type: WidgetType.FORM_LIST;
96
+ params: FormListProps;
97
+ } | {
98
+ type: WidgetType.FORMS_LIST;
99
+ params: FormsListProps;
100
+ };
101
+ export type WidgetTypeProps = ContainerProps | WidgetProps;
102
+ export type CreateContainerWidgetPayload = ContainerBaseWidgetPayload & WidgetTypeProps;
103
+ export type UpdateContainerWidgetPayload = Partial<CreateContainerWidgetPayload>;
104
+ export declare enum DataLoaderType {
105
+ OUTCOMES = "outcomes"
106
+ }
107
+ export interface GenericContainerWidgetDataLoader {
108
+ type: DataLoaderType;
109
+ params: Record<string, any>;
110
+ }
111
+ export type ContainerWidgetDataLoader<T> = T extends {
112
+ type: infer Type;
113
+ params: infer Params;
114
+ } ? {
115
+ type: Type;
116
+ params: Params;
117
+ } : never;
118
+ export type BaseContainerWidgetPayload<T extends ContainerWidgetType | undefined = undefined> = {
119
+ id?: number;
120
+ title: string;
121
+ description?: string;
122
+ type: T | ContainerWidgetType;
123
+ library: boolean;
124
+ config?: WidgetBlockConfig;
125
+ position?: number;
126
+ created_user: number;
127
+ };
128
+ export type BaseContainerWidget = BaseContainerWidgetPayload & WidgetTypeProps;
129
+ export type GenericParams = SectionCardProps | ValueCardProps | PatientListProps | ContainerWidgetProps | ModalProps | SidebarProps;
130
+ export type ContainerChildrenWidget<T extends ContainerWidgetType | undefined = undefined> = ContainerBaseWidgetPayload & BaseContainerWidgetPayload<T> & {
131
+ id: number;
132
+ type: ContainerWidgetType;
133
+ params: GenericParams;
134
+ };
135
+ export type ContainerWidget<T extends ContainerWidgetType | undefined = undefined> = T extends ContainerWidgetType ? {
136
+ id: number;
137
+ widgets?: ContainerChildrenWidget[];
138
+ } & ContainerWidgetTypeToParams[T] & BaseContainerWidgetPayload<T> : {
139
+ id: number;
140
+ params: any;
141
+ widgets?: ContainerChildrenWidget[];
142
+ } & BaseContainerWidgetPayload<T>;
143
+ export type ContainerTypeToParams = {
144
+ [ContainerType.DASHBOARD]: {
145
+ params: ContainerWidgetProps;
146
+ };
147
+ [ContainerType.MODAL]: {
148
+ params: ModalProps;
149
+ };
150
+ [ContainerType.SIDEBAR]: {
151
+ params: SidebarProps;
152
+ };
153
+ };
154
+ export type WidgetTypeToParams = {
155
+ [WidgetType.SECTIONCARD]: {
156
+ params: SectionCardProps;
157
+ };
158
+ [WidgetType.VALUECARD]: {
159
+ params: ValueCardProps;
160
+ };
161
+ [WidgetType.PATIENTLIST]: {
162
+ params: PatientListProps;
163
+ };
164
+ [WidgetType.QUESTIONNAIRE_LOG]: {
165
+ params: EmptyProps;
166
+ };
167
+ [WidgetType.PATIENTS_PROGRAMS]: {
168
+ params: EmptyProps;
169
+ };
170
+ [WidgetType.PATIENTS]: {
171
+ params: EmptyProps;
172
+ };
173
+ [WidgetType.ADHERENCE_SUMMARY]: {
174
+ params: EmptyProps;
175
+ };
176
+ [WidgetType.FORM_LIST]: {
177
+ params: FormListProps;
178
+ };
179
+ [WidgetType.FORMS_LIST]: {
180
+ params: FormsListProps;
181
+ };
182
+ };
183
+ export type ContainerWidgetTypeToParams = ContainerTypeToParams & WidgetTypeToParams;
184
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/container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AAU,CAAC,QAAQ,CAAC,EAAE;QAAE,MAAM,EAAE,UAAU,CAAA;KAAE,CAAA;IAC7C,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE;QAAE,MAAM,EAAE,UAAU,CAAA;KAAE,CAAA;IACtD,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;QACtB,MAAM,EAAE,aAAa,CAAA;KACtB,CAAA;IACD,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;QACvB,MAAM,EAAE,cAAc,CAAA;KACvB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,GAAG,kBAAkB,CAAA"}
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/UpdateDashboardWidgetPayload",
3
+ "$ref": "#/definitions/UpdateContainerWidgetPayload",
4
4
  "definitions": {
5
- "UpdateDashboardWidgetPayload": {
5
+ "UpdateContainerWidgetPayload": {
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "title": {
@@ -30,26 +30,34 @@
30
30
  "widgetsBlocks": {
31
31
  "type": "array",
32
32
  "items": {
33
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
33
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
34
34
  }
35
35
  },
36
36
  "type": {
37
37
  "anyOf": [
38
38
  {
39
39
  "type": "string",
40
- "const": "SectionCard"
40
+ "const": "Dashboard"
41
41
  },
42
42
  {
43
43
  "type": "string",
44
- "const": "ValueCard"
44
+ "const": "Modal"
45
45
  },
46
46
  {
47
47
  "type": "string",
48
- "const": "PatientList"
48
+ "const": "Sidebar"
49
49
  },
50
50
  {
51
51
  "type": "string",
52
- "const": "Dashboard"
52
+ "const": "SectionCard"
53
+ },
54
+ {
55
+ "type": "string",
56
+ "const": "ValueCard"
57
+ },
58
+ {
59
+ "type": "string",
60
+ "const": "PatientList"
53
61
  },
54
62
  {
55
63
  "type": "string",
@@ -79,6 +87,15 @@
79
87
  },
80
88
  "params": {
81
89
  "anyOf": [
90
+ {
91
+ "$ref": "#/definitions/ContainerWidgetProps"
92
+ },
93
+ {
94
+ "$ref": "#/definitions/ModalProps"
95
+ },
96
+ {
97
+ "$ref": "#/definitions/SidebarProps"
98
+ },
82
99
  {
83
100
  "$ref": "#/definitions/SectionCardProps"
84
101
  },
@@ -88,9 +105,6 @@
88
105
  {
89
106
  "$ref": "#/definitions/PatientListProps"
90
107
  },
91
- {
92
- "$ref": "#/definitions/DashboardProps"
93
- },
94
108
  {
95
109
  "$ref": "#/definitions/EmptyProps"
96
110
  },
@@ -237,7 +251,7 @@
237
251
  },
238
252
  "additionalProperties": false
239
253
  },
240
- "DashboardWidgetBlockCreatePayload": {
254
+ "ContainerWidgetBlockCreatePayload": {
241
255
  "type": "object",
242
256
  "properties": {
243
257
  "parent_id": {
@@ -279,6 +293,98 @@
279
293
  },
280
294
  "additionalProperties": false
281
295
  },
296
+ "ContainerWidgetProps": {
297
+ "type": "object",
298
+ "properties": {
299
+ "active": {
300
+ "type": "boolean"
301
+ },
302
+ "config": {
303
+ "type": "object",
304
+ "additionalProperties": {}
305
+ },
306
+ "icon": {
307
+ "type": ["string", "null"]
308
+ }
309
+ },
310
+ "additionalProperties": false
311
+ },
312
+ "ModalProps": {
313
+ "type": "object",
314
+ "properties": {
315
+ "active": {
316
+ "type": "boolean"
317
+ },
318
+ "icon": {
319
+ "type": ["string", "null"]
320
+ },
321
+ "config": {
322
+ "$ref": "#/definitions/ModalConfig"
323
+ }
324
+ },
325
+ "required": ["config"],
326
+ "additionalProperties": false
327
+ },
328
+ "ModalConfig": {
329
+ "type": "object",
330
+ "properties": {
331
+ "size": {
332
+ "$ref": "#/definitions/ModalSize"
333
+ },
334
+ "width": {
335
+ "type": "string"
336
+ },
337
+ "height": {
338
+ "type": "string"
339
+ }
340
+ },
341
+ "required": ["size"],
342
+ "additionalProperties": false
343
+ },
344
+ "ModalSize": {
345
+ "type": "string",
346
+ "enum": ["small", "medium", "large", "fullscreen", "custom"]
347
+ },
348
+ "SidebarProps": {
349
+ "type": "object",
350
+ "properties": {
351
+ "active": {
352
+ "type": "boolean"
353
+ },
354
+ "icon": {
355
+ "type": ["string", "null"]
356
+ },
357
+ "config": {
358
+ "$ref": "#/definitions/SidebarConfig"
359
+ }
360
+ },
361
+ "required": ["config"],
362
+ "additionalProperties": false
363
+ },
364
+ "SidebarConfig": {
365
+ "type": "object",
366
+ "properties": {
367
+ "placement": {
368
+ "$ref": "#/definitions/SidebarPlacement"
369
+ },
370
+ "size": {
371
+ "$ref": "#/definitions/SidebarSize"
372
+ },
373
+ "width": {
374
+ "type": "string"
375
+ }
376
+ },
377
+ "required": ["placement", "size"],
378
+ "additionalProperties": false
379
+ },
380
+ "SidebarPlacement": {
381
+ "type": "string",
382
+ "enum": ["left", "right"]
383
+ },
384
+ "SidebarSize": {
385
+ "type": "string",
386
+ "enum": ["small", "medium", "large", "custom"]
387
+ },
282
388
  "SectionCardProps": {
283
389
  "type": "object",
284
390
  "properties": {
@@ -317,7 +423,7 @@
317
423
  "type": "object"
318
424
  },
319
425
  "dataLoader": {
320
- "$ref": "#/definitions/DashboardWidgetDataLoader%3CWidgetOutcomesDataLoader%3E"
426
+ "$ref": "#/definitions/ContainerWidgetDataLoader%3CWidgetOutcomesDataLoader%3E"
321
427
  }
322
428
  },
323
429
  "required": ["icon", "text"],
@@ -345,7 +451,7 @@
345
451
  "type": "string"
346
452
  }
347
453
  },
348
- "DashboardWidgetDataLoader<WidgetOutcomesDataLoader>": {
454
+ "ContainerWidgetDataLoader<WidgetOutcomesDataLoader>": {
349
455
  "type": "object",
350
456
  "properties": {
351
457
  "type": {
@@ -720,8 +826,7 @@
720
826
  "bgColor": {
721
827
  "type": "string"
722
828
  }
723
- },
724
- "required": ["conditions"]
829
+ }
725
830
  }
726
831
  },
727
832
  "template": {
@@ -762,7 +867,7 @@
762
867
  "type": "string"
763
868
  }
764
869
  },
765
- "required": ["conditions", "icon"]
870
+ "required": ["icon"]
766
871
  }
767
872
  },
768
873
  "icon": {
@@ -813,7 +918,7 @@
813
918
  "type": "string"
814
919
  }
815
920
  },
816
- "required": ["conditions", "icon", "iconPosition"]
921
+ "required": ["icon", "iconPosition"]
817
922
  }
818
923
  },
819
924
  "template": {
@@ -998,19 +1103,6 @@
998
1103
  },
999
1104
  "additionalProperties": false
1000
1105
  },
1001
- "DashboardProps": {
1002
- "type": "object",
1003
- "properties": {
1004
- "active": {
1005
- "type": "boolean"
1006
- },
1007
- "config": {},
1008
- "icon": {
1009
- "type": ["string", "null"]
1010
- }
1011
- },
1012
- "additionalProperties": false
1013
- },
1014
1106
  "EmptyProps": {
1015
1107
  "type": "object",
1016
1108
  "additionalProperties": {
@@ -1087,7 +1179,7 @@
1087
1179
  "additionalProperties": {}
1088
1180
  },
1089
1181
  "limit": {
1090
- "type": "number"
1182
+ "type": ["number", "null"]
1091
1183
  },
1092
1184
  "sortBy": {
1093
1185
  "type": "array",
@@ -1144,6 +1236,9 @@
1144
1236
  },
1145
1237
  "hidden": {
1146
1238
  "type": "boolean"
1239
+ },
1240
+ "aggregation": {
1241
+ "$ref": "#/definitions/ColumnAggregation"
1147
1242
  }
1148
1243
  },
1149
1244
  "additionalProperties": false
@@ -1178,11 +1273,43 @@
1178
1273
  },
1179
1274
  "textColor": {
1180
1275
  "type": "string"
1276
+ },
1277
+ "underline": {
1278
+ "type": "boolean"
1279
+ },
1280
+ "linkType": {
1281
+ "$ref": "#/definitions/LinkType"
1282
+ },
1283
+ "openInNewTab": {
1284
+ "type": "boolean"
1285
+ },
1286
+ "targetWidgetId": {
1287
+ "type": "number"
1288
+ }
1289
+ },
1290
+ "additionalProperties": false
1291
+ },
1292
+ "LinkType": {
1293
+ "type": "string",
1294
+ "enum": ["external", "internal"]
1295
+ },
1296
+ "ColumnAggregation": {
1297
+ "type": "object",
1298
+ "properties": {
1299
+ "type": {
1300
+ "$ref": "#/definitions/AggregationType"
1301
+ },
1302
+ "position": {
1303
+ "type": "number"
1181
1304
  }
1182
1305
  },
1183
- "required": ["url"],
1306
+ "required": ["type"],
1184
1307
  "additionalProperties": false
1185
1308
  },
1309
+ "AggregationType": {
1310
+ "type": "string",
1311
+ "enum": ["first", "last", "position", "avg", "sum", "min", "max", "median", "stddev"]
1312
+ },
1186
1313
  "FormListAppearanceConfig": {
1187
1314
  "type": "object",
1188
1315
  "properties": {
@@ -1200,6 +1327,12 @@
1200
1327
  },
1201
1328
  "fontWeight": {
1202
1329
  "type": ["number", "null"]
1330
+ },
1331
+ "conditionalProps": {
1332
+ "type": "array",
1333
+ "items": {
1334
+ "$ref": "#/definitions/FormListBodyConditionalProps"
1335
+ }
1203
1336
  }
1204
1337
  },
1205
1338
  "additionalProperties": false
@@ -1224,6 +1357,30 @@
1224
1357
  }
1225
1358
  },
1226
1359
  "additionalProperties": false
1360
+ },
1361
+ "FormListBodyConditionalProps": {
1362
+ "type": "object",
1363
+ "properties": {
1364
+ "conditions": {
1365
+ "type": "string"
1366
+ },
1367
+ "continueEvaluate": {
1368
+ "type": "boolean"
1369
+ },
1370
+ "textColor": {
1371
+ "type": "string"
1372
+ },
1373
+ "bgColor": {
1374
+ "type": "string"
1375
+ },
1376
+ "fontSize": {
1377
+ "type": ["number", "null"]
1378
+ },
1379
+ "fontWeight": {
1380
+ "type": ["number", "null"]
1381
+ }
1382
+ },
1383
+ "additionalProperties": false
1227
1384
  }
1228
1385
  }
1229
1386
  }
@@ -0,0 +1,6 @@
1
+ export interface ContainerWidgetProps {
2
+ active?: boolean;
3
+ config?: Record<string, unknown>;
4
+ icon?: string | null;
5
+ }
6
+ //# sourceMappingURL=ContainerWidgetProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContainerWidgetProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/ContainerWidgetProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB"}
@@ -0,0 +1,17 @@
1
+ import { ContainerWidgetProps } from './ContainerWidgetProps';
2
+ export declare enum ModalSize {
3
+ SMALL = "small",
4
+ MEDIUM = "medium",
5
+ LARGE = "large",
6
+ FULLSCREEN = "fullscreen",
7
+ CUSTOM = "custom"
8
+ }
9
+ export interface ModalConfig {
10
+ size: ModalSize;
11
+ width?: string;
12
+ height?: string;
13
+ }
14
+ export interface ModalProps extends Omit<ContainerWidgetProps, 'config'> {
15
+ config: ModalConfig;
16
+ }
17
+ //# sourceMappingURL=ModalProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/ModalProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACtE,MAAM,EAAE,WAAW,CAAA;CACpB"}
@@ -31,7 +31,7 @@ export interface SortBy {
31
31
  export interface FormListDataConfig {
32
32
  fields: string[];
33
33
  conditions?: Record<string, unknown>;
34
- limit?: number;
34
+ limit?: number | null;
35
35
  sortBy?: SortBy[];
36
36
  mainForm?: boolean;
37
37
  }
@@ -41,6 +41,15 @@ export interface FormListColumnLayoutConfig {
41
41
  source?: string;
42
42
  widgetSettings?: PresentationWidgetSettingsV2;
43
43
  hidden?: boolean;
44
+ aggregation?: ColumnAggregation;
45
+ }
46
+ export interface FormListBodyConditionalProps {
47
+ conditions?: string;
48
+ continueEvaluate?: boolean;
49
+ textColor?: string;
50
+ bgColor?: string;
51
+ fontSize?: number | null;
52
+ fontWeight?: number | null;
44
53
  }
45
54
  export interface FormListAppearanceConfig {
46
55
  body?: {
@@ -48,6 +57,7 @@ export interface FormListAppearanceConfig {
48
57
  bgColor?: string;
49
58
  fontSize?: number | null;
50
59
  fontWeight?: number | null;
60
+ conditionalProps?: FormListBodyConditionalProps[];
51
61
  };
52
62
  header?: {
53
63
  textColor?: string;
@@ -131,4 +141,19 @@ export declare enum PresentationWidget {
131
141
  REPEATABLE_FIELD = "repeatable_field",
132
142
  LINK = "link"
133
143
  }
144
+ export declare enum AggregationType {
145
+ FIRST = "first",
146
+ LAST = "last",
147
+ POSITION = "position",
148
+ AVG = "avg",
149
+ SUM = "sum",
150
+ MIN = "min",
151
+ MAX = "max",
152
+ MEDIAN = "median",
153
+ STDDEV = "stddev"
154
+ }
155
+ export interface ColumnAggregation {
156
+ type: AggregationType;
157
+ position?: number;
158
+ }
134
159
  //# sourceMappingURL=PatientListProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PatientListProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/dashboard_widget/widgetTypes/PatientListProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AACxE,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAA;AAE9F,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,cAAc,CAAC,EA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ACrC,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"PatientListProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/PatientListProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AACxE,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAA;AAE9F,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,qBAAqB,CAAA;CACnC;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,qBAAqB,CAAA;IAClC,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,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Root":"","sources":["../../../../../../src/schemas/dashboard_widget/widgetTypes/SectionCardProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
1
+ {"version":3,"file":"SectionCardProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/SectionCardProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
@@ -0,0 +1,20 @@
1
+ import { ContainerWidgetProps } from './ContainerWidgetProps';
2
+ export declare enum SidebarPlacement {
3
+ LEFT = "left",
4
+ RIGHT = "right"
5
+ }
6
+ export declare enum SidebarSize {
7
+ SMALL = "small",
8
+ MEDIUM = "medium",
9
+ LARGE = "large",
10
+ CUSTOM = "custom"
11
+ }
12
+ export interface SidebarConfig {
13
+ placement: SidebarPlacement;
14
+ size: SidebarSize;
15
+ width?: string;
16
+ }
17
+ export interface SidebarProps extends Omit<ContainerWidgetProps, 'config'> {
18
+ config: SidebarConfig;
19
+ }
20
+ //# sourceMappingURL=SidebarProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/SidebarProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,gBAAgB,CAAA;IAC3B,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACxE,MAAM,EAAE,aAAa,CAAA;CACtB"}