@persei/perseed-api 4.34.17 → 4.34.19

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.
@@ -1,584 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/CreateDashboardWidgetPayload",
4
- "definitions": {
5
- "CreateDashboardWidgetPayload": {
6
- "anyOf": [
7
- {
8
- "type": "object",
9
- "additionalProperties": false,
10
- "properties": {
11
- "type": {
12
- "type": "string",
13
- "const": "SectionCard"
14
- },
15
- "params": {
16
- "$ref": "#/definitions/SectionCardProps"
17
- },
18
- "title": {
19
- "type": "string"
20
- },
21
- "description": {
22
- "type": "string"
23
- },
24
- "weight": {
25
- "type": "number"
26
- },
27
- "size": {
28
- "anyOf": [
29
- {
30
- "type": "number"
31
- },
32
- {
33
- "$ref": "#/definitions/ColProps"
34
- }
35
- ]
36
- }
37
- },
38
- "required": ["params", "title", "type"]
39
- },
40
- {
41
- "type": "object",
42
- "additionalProperties": false,
43
- "properties": {
44
- "type": {
45
- "type": "string",
46
- "const": "ValueCard"
47
- },
48
- "params": {
49
- "$ref": "#/definitions/ValueCardProps"
50
- },
51
- "title": {
52
- "type": "string"
53
- },
54
- "description": {
55
- "type": "string"
56
- },
57
- "weight": {
58
- "type": "number"
59
- },
60
- "size": {
61
- "anyOf": [
62
- {
63
- "type": "number"
64
- },
65
- {
66
- "$ref": "#/definitions/ColProps"
67
- }
68
- ]
69
- }
70
- },
71
- "required": ["params", "title", "type"]
72
- },
73
- {
74
- "type": "object",
75
- "additionalProperties": false,
76
- "properties": {
77
- "type": {
78
- "type": "string",
79
- "const": "PatientList"
80
- },
81
- "params": {
82
- "$ref": "#/definitions/PatientListProps"
83
- },
84
- "title": {
85
- "type": "string"
86
- },
87
- "description": {
88
- "type": "string"
89
- },
90
- "weight": {
91
- "type": "number"
92
- },
93
- "size": {
94
- "anyOf": [
95
- {
96
- "type": "number"
97
- },
98
- {
99
- "$ref": "#/definitions/ColProps"
100
- }
101
- ]
102
- }
103
- },
104
- "required": ["params", "title", "type"]
105
- },
106
- {
107
- "type": "object",
108
- "additionalProperties": false,
109
- "properties": {
110
- "type": {
111
- "type": "string",
112
- "const": "Dashboard"
113
- },
114
- "params": {
115
- "$ref": "#/definitions/DashboardProps"
116
- },
117
- "title": {
118
- "type": "string"
119
- },
120
- "description": {
121
- "type": "string"
122
- },
123
- "weight": {
124
- "type": "number"
125
- },
126
- "size": {
127
- "anyOf": [
128
- {
129
- "type": "number"
130
- },
131
- {
132
- "$ref": "#/definitions/ColProps"
133
- }
134
- ]
135
- }
136
- },
137
- "required": ["params", "title", "type"]
138
- }
139
- ]
140
- },
141
- "SectionCardProps": {
142
- "type": "object",
143
- "properties": {
144
- "icon": {
145
- "type": "string"
146
- },
147
- "background": {
148
- "type": "string"
149
- },
150
- "titleBackground": {
151
- "type": "string"
152
- },
153
- "title": {
154
- "$ref": "#/definitions/I18nTextTranslation"
155
- },
156
- "widgets": {
157
- "type": "array",
158
- "items": {
159
- "type": "number"
160
- }
161
- }
162
- },
163
- "required": ["icon", "title", "widgets"],
164
- "additionalProperties": false
165
- },
166
- "I18nTextTranslation": {
167
- "anyOf": [
168
- {
169
- "$ref": "#/definitions/I18nTextLocales"
170
- },
171
- {
172
- "type": "string"
173
- }
174
- ]
175
- },
176
- "I18nTextLocales": {
177
- "type": "object",
178
- "properties": {
179
- "default": {
180
- "type": "string"
181
- }
182
- },
183
- "required": ["default"],
184
- "additionalProperties": {
185
- "type": "string"
186
- }
187
- },
188
- "ColProps": {
189
- "type": "object",
190
- "properties": {
191
- "flex": {
192
- "$ref": "#/definitions/FlexType"
193
- },
194
- "span": {
195
- "$ref": "#/definitions/ColSpanType"
196
- },
197
- "order": {
198
- "$ref": "#/definitions/ColSpanType"
199
- },
200
- "offset": {
201
- "$ref": "#/definitions/ColSpanType"
202
- },
203
- "push": {
204
- "$ref": "#/definitions/ColSpanType"
205
- },
206
- "pull": {
207
- "$ref": "#/definitions/ColSpanType"
208
- },
209
- "xs": {
210
- "anyOf": [
211
- {
212
- "$ref": "#/definitions/ColSpanType"
213
- },
214
- {
215
- "$ref": "#/definitions/ColSize"
216
- }
217
- ]
218
- },
219
- "sm": {
220
- "anyOf": [
221
- {
222
- "$ref": "#/definitions/ColSpanType"
223
- },
224
- {
225
- "$ref": "#/definitions/ColSize"
226
- }
227
- ]
228
- },
229
- "md": {
230
- "anyOf": [
231
- {
232
- "$ref": "#/definitions/ColSpanType"
233
- },
234
- {
235
- "$ref": "#/definitions/ColSize"
236
- }
237
- ]
238
- },
239
- "lg": {
240
- "anyOf": [
241
- {
242
- "$ref": "#/definitions/ColSpanType"
243
- },
244
- {
245
- "$ref": "#/definitions/ColSize"
246
- }
247
- ]
248
- },
249
- "xl": {
250
- "anyOf": [
251
- {
252
- "$ref": "#/definitions/ColSpanType"
253
- },
254
- {
255
- "$ref": "#/definitions/ColSize"
256
- }
257
- ]
258
- },
259
- "xxl": {
260
- "anyOf": [
261
- {
262
- "$ref": "#/definitions/ColSpanType"
263
- },
264
- {
265
- "$ref": "#/definitions/ColSize"
266
- }
267
- ]
268
- },
269
- "prefixCls": {
270
- "type": "string"
271
- }
272
- },
273
- "additionalProperties": false
274
- },
275
- "FlexType": {
276
- "anyOf": [
277
- {
278
- "type": "number"
279
- },
280
- {
281
- "type": "string",
282
- "const": "none"
283
- },
284
- {
285
- "type": "string",
286
- "const": "auto"
287
- },
288
- {
289
- "type": "string"
290
- }
291
- ]
292
- },
293
- "ColSpanType": {
294
- "type": ["number", "string"]
295
- },
296
- "ColSize": {
297
- "type": "object",
298
- "properties": {
299
- "flex": {
300
- "$ref": "#/definitions/FlexType"
301
- },
302
- "span": {
303
- "$ref": "#/definitions/ColSpanType"
304
- },
305
- "order": {
306
- "$ref": "#/definitions/ColSpanType"
307
- },
308
- "offset": {
309
- "$ref": "#/definitions/ColSpanType"
310
- },
311
- "push": {
312
- "$ref": "#/definitions/ColSpanType"
313
- },
314
- "pull": {
315
- "$ref": "#/definitions/ColSpanType"
316
- }
317
- },
318
- "additionalProperties": false
319
- },
320
- "ValueCardProps": {
321
- "type": "object",
322
- "properties": {
323
- "title": {
324
- "$ref": "#/definitions/I18nTextTranslation"
325
- },
326
- "icon": {
327
- "type": "string"
328
- },
329
- "text": {
330
- "$ref": "#/definitions/I18nTextTranslation"
331
- },
332
- "subtext": {
333
- "$ref": "#/definitions/I18nTextTranslation"
334
- },
335
- "titleTextColor": {
336
- "type": "string"
337
- },
338
- "bodyTextColor": {
339
- "type": "string"
340
- },
341
- "data": {
342
- "type": "object"
343
- },
344
- "dataLoader": {
345
- "$ref": "#/definitions/DashboardWidgetDataLoader%3CWidgetOutcomesDataLoader%3E"
346
- }
347
- },
348
- "required": ["title", "icon", "text"],
349
- "additionalProperties": false
350
- },
351
- "DashboardWidgetDataLoader<WidgetOutcomesDataLoader>": {
352
- "type": "object",
353
- "properties": {
354
- "type": {
355
- "type": "string",
356
- "const": "outcomes"
357
- },
358
- "params": {
359
- "type": "object",
360
- "properties": {
361
- "ecosystem": {
362
- "type": "string"
363
- },
364
- "projectName": {
365
- "type": "string"
366
- },
367
- "clinicId": {
368
- "type": "number"
369
- },
370
- "name": {
371
- "anyOf": [
372
- {
373
- "type": "string"
374
- },
375
- {
376
- "type": "array",
377
- "items": {
378
- "type": "string"
379
- }
380
- }
381
- ]
382
- },
383
- "identifier": {
384
- "anyOf": [
385
- {
386
- "type": "string"
387
- },
388
- {
389
- "type": "array",
390
- "items": {
391
- "type": "string"
392
- }
393
- }
394
- ]
395
- },
396
- "from": {
397
- "type": "string"
398
- },
399
- "to": {
400
- "type": "string"
401
- },
402
- "datesContained": {
403
- "type": "boolean"
404
- },
405
- "aggType": {
406
- "$ref": "#/definitions/AggFunction"
407
- },
408
- "groupBy": {
409
- "anyOf": [
410
- {
411
- "$ref": "#/definitions/OutcomesGroupBy"
412
- },
413
- {
414
- "type": "array",
415
- "items": {
416
- "$ref": "#/definitions/OutcomesGroupBy"
417
- }
418
- }
419
- ]
420
- },
421
- "limit": {
422
- "type": "number"
423
- },
424
- "orderBy": {
425
- "type": "string"
426
- },
427
- "orderDir": {
428
- "$ref": "#/definitions/OrderDir"
429
- }
430
- },
431
- "required": ["ecosystem", "projectName", "name"],
432
- "additionalProperties": false
433
- }
434
- },
435
- "required": ["type", "params"],
436
- "additionalProperties": false
437
- },
438
- "AggFunction": {
439
- "type": "string",
440
- "enum": ["avg", "count", "max", "min", "sum"]
441
- },
442
- "OutcomesGroupBy": {
443
- "anyOf": [
444
- {
445
- "type": "string",
446
- "const": "name"
447
- },
448
- {
449
- "type": "string",
450
- "const": "identifier"
451
- },
452
- {
453
- "type": "string",
454
- "const": "value"
455
- },
456
- {
457
- "$ref": "#/definitions/OutcomesDateFields"
458
- },
459
- {
460
- "$ref": "#/definitions/OutcomeDateField"
461
- }
462
- ]
463
- },
464
- "OutcomesDateFields": {
465
- "type": "string",
466
- "enum": ["from", "to"]
467
- },
468
- "OutcomeDateField": {
469
- "type": "string",
470
- "enum": [
471
- "from.date",
472
- "from.day",
473
- "from.dayname",
474
- "from.dayofmonth",
475
- "from.dayofweek",
476
- "from.dayofyear",
477
- "from.hour",
478
- "from.minute",
479
- "from.month",
480
- "from.monthname",
481
- "from.time",
482
- "from.second",
483
- "from.week",
484
- "from.weekday",
485
- "from.weekofyear",
486
- "from.year",
487
- "from.yearweek",
488
- "to.date",
489
- "to.day",
490
- "to.dayname",
491
- "to.dayofmonth",
492
- "to.dayofweek",
493
- "to.dayofyear",
494
- "to.hour",
495
- "to.minute",
496
- "to.month",
497
- "to.monthname",
498
- "to.time",
499
- "to.second",
500
- "to.week",
501
- "to.weekday",
502
- "to.weekofyear",
503
- "to.year",
504
- "to.yearweek"
505
- ]
506
- },
507
- "OrderDir": {
508
- "type": "string",
509
- "enum": ["asc", "desc"]
510
- },
511
- "PatientListProps": {
512
- "type": "object",
513
- "properties": {
514
- "loadUserProfiles": {
515
- "type": "boolean"
516
- },
517
- "loadAdherence": {
518
- "type": "boolean"
519
- },
520
- "extraFields": {
521
- "type": "array",
522
- "items": {
523
- "type": "string"
524
- }
525
- },
526
- "loadPushTokens": {
527
- "type": "boolean"
528
- },
529
- "loadUserAccessData": {
530
- "type": "boolean"
531
- },
532
- "programId": {
533
- "type": "number"
534
- },
535
- "prevAdherenceDays": {
536
- "type": "number"
537
- },
538
- "relatedData": {
539
- "type": "object",
540
- "properties": {
541
- "join": {
542
- "type": "array",
543
- "items": {
544
- "type": "string"
545
- }
546
- }
547
- },
548
- "additionalProperties": false
549
- },
550
- "filter": {
551
- "type": "object",
552
- "properties": {
553
- "conditions": {
554
- "type": "object",
555
- "additionalProperties": {}
556
- }
557
- },
558
- "additionalProperties": false
559
- }
560
- },
561
- "additionalProperties": false
562
- },
563
- "DashboardProps": {
564
- "type": "object",
565
- "properties": {
566
- "title": {
567
- "type": "string"
568
- },
569
- "active": {
570
- "type": "boolean"
571
- },
572
- "config": {},
573
- "icon": {
574
- "type": ["string", "null"]
575
- },
576
- "weight": {
577
- "type": "number"
578
- }
579
- },
580
- "required": ["title"],
581
- "additionalProperties": false
582
- }
583
- }
584
- }