@persei/perseed-api 5.0.2 → 5.0.4
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.
- package/dist/client.cjs +37 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +37 -0
- package/dist/client.mjs.map +1 -1
- package/dist/lib/src/generated/client.d.ts +114 -0
- package/dist/lib/src/generated/client.d.ts.map +1 -1
- package/dist/src/Services/FormService.d.ts +20 -7
- package/dist/src/Services/FormService.d.ts.map +1 -1
- package/dist/src/Services/PatientService.d.ts +7 -0
- package/dist/src/Services/PatientService.d.ts.map +1 -1
- package/dist/src/controllers/FormController.d.ts.map +1 -1
- package/dist/src/helpers/dashboards.d.ts +4 -1
- package/dist/src/helpers/dashboards.d.ts.map +1 -1
- package/dist/src/models/ecosystem/DashboardWidget.d.ts +2 -2
- package/dist/src/models/ecosystem/DashboardWidget.d.ts.map +1 -1
- package/dist/src/models/project/DesignerCrf.d.ts +6 -1
- package/dist/src/models/project/DesignerCrf.d.ts.map +1 -1
- package/dist/src/schemas/dashboard_widget/create_widget_payload.schema.json +247 -5
- package/dist/src/schemas/dashboard_widget/types.d.ts +9 -2
- package/dist/src/schemas/dashboard_widget/types.d.ts.map +1 -1
- package/dist/src/schemas/dashboard_widget/update_widget_payload.schema.json +212 -5
- package/dist/src/schemas/dashboard_widget/widgetTypes/PatientListProps.d.ts +55 -2
- package/dist/src/schemas/dashboard_widget/widgetTypes/PatientListProps.d.ts.map +1 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/Generic.d.ts +1 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/Generic.d.ts.map +1 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +7 -0
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +1 -0
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/index.d.ts +1 -0
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/index.d.ts.map +1 -1
- package/dist/src/v2/modules/global/auth-token/auth-token.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/project/forms-data/forms-data.controller.d.ts +5 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.controller.e2e.d.ts +2 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.controller.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.controller.test.d.ts +2 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.controller.test.d.ts.map +1 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.schema.d.ts +14 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.schema.d.ts.map +1 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.service.d.ts +12 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.service.d.ts.map +1 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.service.test.d.ts +2 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/project/forms-data/index.d.ts +4 -0
- package/dist/src/v2/modules/project/forms-data/index.d.ts.map +1 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/forms-data/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/forms-data/index.d.ts.map +1 -0
- package/dist/v1/perseed-api.cjs +2 -0
- package/dist/v1/perseed-api.cjs.map +1 -1
- package/dist/v1/perseed-api.mjs +2 -0
- package/dist/v1/perseed-api.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -381,6 +381,48 @@
|
|
|
381
381
|
}
|
|
382
382
|
},
|
|
383
383
|
"required": ["params", "title", "type"]
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"type": "object",
|
|
387
|
+
"additionalProperties": false,
|
|
388
|
+
"properties": {
|
|
389
|
+
"type": {
|
|
390
|
+
"type": "string",
|
|
391
|
+
"const": "FormsList"
|
|
392
|
+
},
|
|
393
|
+
"params": {
|
|
394
|
+
"$ref": "#/definitions/FormsListProps"
|
|
395
|
+
},
|
|
396
|
+
"title": {
|
|
397
|
+
"type": "string"
|
|
398
|
+
},
|
|
399
|
+
"description": {
|
|
400
|
+
"type": ["string", "null"]
|
|
401
|
+
},
|
|
402
|
+
"weight": {
|
|
403
|
+
"type": "number"
|
|
404
|
+
},
|
|
405
|
+
"size": {
|
|
406
|
+
"anyOf": [
|
|
407
|
+
{
|
|
408
|
+
"type": "number"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"$ref": "#/definitions/ColProps"
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
"library": {
|
|
416
|
+
"type": "boolean"
|
|
417
|
+
},
|
|
418
|
+
"widgetsBlocks": {
|
|
419
|
+
"type": "array",
|
|
420
|
+
"items": {
|
|
421
|
+
"$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"required": ["params", "title", "type"]
|
|
384
426
|
}
|
|
385
427
|
]
|
|
386
428
|
},
|
|
@@ -955,7 +997,7 @@
|
|
|
955
997
|
},
|
|
956
998
|
"PresentationWidget": {
|
|
957
999
|
"type": "string",
|
|
958
|
-
"enum": ["text", "icon", "icon_text", "list", "repeatable_field"]
|
|
1000
|
+
"enum": ["text", "icon", "icon_text", "list", "repeatable_field", "link"]
|
|
959
1001
|
},
|
|
960
1002
|
"PresentationWidgetSettings": {
|
|
961
1003
|
"anyOf": [
|
|
@@ -999,8 +1041,7 @@
|
|
|
999
1041
|
"bgColor": {
|
|
1000
1042
|
"type": "string"
|
|
1001
1043
|
}
|
|
1002
|
-
}
|
|
1003
|
-
"required": ["conditions"]
|
|
1044
|
+
}
|
|
1004
1045
|
}
|
|
1005
1046
|
},
|
|
1006
1047
|
"template": {
|
|
@@ -1041,7 +1082,7 @@
|
|
|
1041
1082
|
"type": "string"
|
|
1042
1083
|
}
|
|
1043
1084
|
},
|
|
1044
|
-
"required": ["
|
|
1085
|
+
"required": ["icon"]
|
|
1045
1086
|
}
|
|
1046
1087
|
},
|
|
1047
1088
|
"icon": {
|
|
@@ -1092,7 +1133,7 @@
|
|
|
1092
1133
|
"type": "string"
|
|
1093
1134
|
}
|
|
1094
1135
|
},
|
|
1095
|
-
"required": ["
|
|
1136
|
+
"required": ["icon", "iconPosition"]
|
|
1096
1137
|
}
|
|
1097
1138
|
},
|
|
1098
1139
|
"template": {
|
|
@@ -1332,6 +1373,207 @@
|
|
|
1332
1373
|
},
|
|
1333
1374
|
"required": ["mainForm"],
|
|
1334
1375
|
"additionalProperties": false
|
|
1376
|
+
},
|
|
1377
|
+
"FormsListProps": {
|
|
1378
|
+
"type": "object",
|
|
1379
|
+
"properties": {
|
|
1380
|
+
"data": {
|
|
1381
|
+
"type": "object",
|
|
1382
|
+
"additionalProperties": {
|
|
1383
|
+
"$ref": "#/definitions/FormListDataConfig"
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
"layout": {
|
|
1387
|
+
"$ref": "#/definitions/FormListLayoutConfig"
|
|
1388
|
+
},
|
|
1389
|
+
"appearance": {
|
|
1390
|
+
"$ref": "#/definitions/FormListAppearanceConfig"
|
|
1391
|
+
}
|
|
1392
|
+
},
|
|
1393
|
+
"required": ["data"],
|
|
1394
|
+
"additionalProperties": false
|
|
1395
|
+
},
|
|
1396
|
+
"FormListDataConfig": {
|
|
1397
|
+
"type": "object",
|
|
1398
|
+
"properties": {
|
|
1399
|
+
"fields": {
|
|
1400
|
+
"type": "array",
|
|
1401
|
+
"items": {
|
|
1402
|
+
"type": "string"
|
|
1403
|
+
}
|
|
1404
|
+
},
|
|
1405
|
+
"conditions": {
|
|
1406
|
+
"type": "object",
|
|
1407
|
+
"additionalProperties": {}
|
|
1408
|
+
},
|
|
1409
|
+
"limit": {
|
|
1410
|
+
"type": "number"
|
|
1411
|
+
},
|
|
1412
|
+
"sortBy": {
|
|
1413
|
+
"type": "array",
|
|
1414
|
+
"items": {
|
|
1415
|
+
"$ref": "#/definitions/SortBy"
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
"mainForm": {
|
|
1419
|
+
"type": "boolean"
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
"required": ["fields"],
|
|
1423
|
+
"additionalProperties": false
|
|
1424
|
+
},
|
|
1425
|
+
"SortBy": {
|
|
1426
|
+
"type": "object",
|
|
1427
|
+
"properties": {
|
|
1428
|
+
"field": {
|
|
1429
|
+
"type": "string"
|
|
1430
|
+
},
|
|
1431
|
+
"orderType": {
|
|
1432
|
+
"$ref": "#/definitions/OrderType"
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
"required": ["field", "orderType"],
|
|
1436
|
+
"additionalProperties": false
|
|
1437
|
+
},
|
|
1438
|
+
"FormListLayoutConfig": {
|
|
1439
|
+
"type": "object",
|
|
1440
|
+
"properties": {
|
|
1441
|
+
"columns": {
|
|
1442
|
+
"type": "array",
|
|
1443
|
+
"items": {
|
|
1444
|
+
"$ref": "#/definitions/FormListColumnLayoutConfig"
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
"additionalProperties": false
|
|
1449
|
+
},
|
|
1450
|
+
"FormListColumnLayoutConfig": {
|
|
1451
|
+
"type": "object",
|
|
1452
|
+
"properties": {
|
|
1453
|
+
"widgetType": {
|
|
1454
|
+
"$ref": "#/definitions/PresentationWidget"
|
|
1455
|
+
},
|
|
1456
|
+
"title": {
|
|
1457
|
+
"type": "string"
|
|
1458
|
+
},
|
|
1459
|
+
"source": {
|
|
1460
|
+
"type": "string"
|
|
1461
|
+
},
|
|
1462
|
+
"widgetSettings": {
|
|
1463
|
+
"$ref": "#/definitions/PresentationWidgetSettingsV2"
|
|
1464
|
+
},
|
|
1465
|
+
"hidden": {
|
|
1466
|
+
"type": "boolean"
|
|
1467
|
+
}
|
|
1468
|
+
},
|
|
1469
|
+
"additionalProperties": false
|
|
1470
|
+
},
|
|
1471
|
+
"PresentationWidgetSettingsV2": {
|
|
1472
|
+
"anyOf": [
|
|
1473
|
+
{
|
|
1474
|
+
"$ref": "#/definitions/TextPresentationWidgetProps"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"$ref": "#/definitions/IconPresentationWidgetProps"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"$ref": "#/definitions/IconTextPresentationWidgetProps"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"$ref": "#/definitions/LinkPresentationWidgetFields"
|
|
1484
|
+
}
|
|
1485
|
+
]
|
|
1486
|
+
},
|
|
1487
|
+
"LinkPresentationWidgetFields": {
|
|
1488
|
+
"type": "object",
|
|
1489
|
+
"properties": {
|
|
1490
|
+
"url": {
|
|
1491
|
+
"type": "string"
|
|
1492
|
+
},
|
|
1493
|
+
"displayText": {
|
|
1494
|
+
"type": "string"
|
|
1495
|
+
},
|
|
1496
|
+
"bgColor": {
|
|
1497
|
+
"type": "string"
|
|
1498
|
+
},
|
|
1499
|
+
"textColor": {
|
|
1500
|
+
"type": "string"
|
|
1501
|
+
}
|
|
1502
|
+
},
|
|
1503
|
+
"required": ["url"],
|
|
1504
|
+
"additionalProperties": false
|
|
1505
|
+
},
|
|
1506
|
+
"FormListAppearanceConfig": {
|
|
1507
|
+
"type": "object",
|
|
1508
|
+
"properties": {
|
|
1509
|
+
"body": {
|
|
1510
|
+
"type": "object",
|
|
1511
|
+
"properties": {
|
|
1512
|
+
"textColor": {
|
|
1513
|
+
"type": "string"
|
|
1514
|
+
},
|
|
1515
|
+
"bgColor": {
|
|
1516
|
+
"type": "string"
|
|
1517
|
+
},
|
|
1518
|
+
"fontSize": {
|
|
1519
|
+
"type": ["number", "null"]
|
|
1520
|
+
},
|
|
1521
|
+
"fontWeight": {
|
|
1522
|
+
"type": ["number", "null"]
|
|
1523
|
+
},
|
|
1524
|
+
"conditionalProps": {
|
|
1525
|
+
"type": "array",
|
|
1526
|
+
"items": {
|
|
1527
|
+
"$ref": "#/definitions/FormListBodyConditionalProps"
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
},
|
|
1531
|
+
"additionalProperties": false
|
|
1532
|
+
},
|
|
1533
|
+
"header": {
|
|
1534
|
+
"type": "object",
|
|
1535
|
+
"properties": {
|
|
1536
|
+
"textColor": {
|
|
1537
|
+
"type": "string"
|
|
1538
|
+
},
|
|
1539
|
+
"bgColor": {
|
|
1540
|
+
"type": "string"
|
|
1541
|
+
},
|
|
1542
|
+
"fontSize": {
|
|
1543
|
+
"type": ["number", "null"]
|
|
1544
|
+
},
|
|
1545
|
+
"fontWeight": {
|
|
1546
|
+
"type": ["number", "null"]
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
"additionalProperties": false
|
|
1550
|
+
}
|
|
1551
|
+
},
|
|
1552
|
+
"additionalProperties": false
|
|
1553
|
+
},
|
|
1554
|
+
"FormListBodyConditionalProps": {
|
|
1555
|
+
"type": "object",
|
|
1556
|
+
"properties": {
|
|
1557
|
+
"conditions": {
|
|
1558
|
+
"type": "string"
|
|
1559
|
+
},
|
|
1560
|
+
"continueEvaluate": {
|
|
1561
|
+
"type": "boolean"
|
|
1562
|
+
},
|
|
1563
|
+
"textColor": {
|
|
1564
|
+
"type": "string"
|
|
1565
|
+
},
|
|
1566
|
+
"bgColor": {
|
|
1567
|
+
"type": "string"
|
|
1568
|
+
},
|
|
1569
|
+
"fontSize": {
|
|
1570
|
+
"type": ["number", "null"]
|
|
1571
|
+
},
|
|
1572
|
+
"fontWeight": {
|
|
1573
|
+
"type": ["number", "null"]
|
|
1574
|
+
}
|
|
1575
|
+
},
|
|
1576
|
+
"additionalProperties": false
|
|
1335
1577
|
}
|
|
1336
1578
|
}
|
|
1337
1579
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColProps } from './col';
|
|
2
|
-
import { DashboardProps, FormListProps, PatientListProps, SectionCardProps, ValueCardProps } from './widgetTypes';
|
|
2
|
+
import { DashboardProps, FormListProps, FormsListProps, PatientListProps, SectionCardProps, ValueCardProps } from './widgetTypes';
|
|
3
3
|
export declare enum DashboardWidgetType {
|
|
4
4
|
VALUECARD = "ValueCard",
|
|
5
5
|
SECTIONCARD = "SectionCard",
|
|
@@ -9,7 +9,8 @@ export declare enum DashboardWidgetType {
|
|
|
9
9
|
PATIENTS_PROGRAMS = "PatientsPrograms",
|
|
10
10
|
PATIENTS = "Patients",
|
|
11
11
|
ADHERENCE_SUMMARY = "AdherenceSummary",
|
|
12
|
-
FORM_LIST = "FormList"
|
|
12
|
+
FORM_LIST = "FormList",
|
|
13
|
+
FORMS_LIST = "FormsList"
|
|
13
14
|
}
|
|
14
15
|
export type WidgetBlockConfig = {
|
|
15
16
|
size?: number | ColProps;
|
|
@@ -56,6 +57,9 @@ export type WidgetTypeProps = {
|
|
|
56
57
|
} | {
|
|
57
58
|
type: DashboardWidgetType.FORM_LIST;
|
|
58
59
|
params: FormListProps;
|
|
60
|
+
} | {
|
|
61
|
+
type: DashboardWidgetType.FORMS_LIST;
|
|
62
|
+
params: FormsListProps;
|
|
59
63
|
};
|
|
60
64
|
export type CreateDashboardWidgetPayload = DashboardBaseWidgetPayload & WidgetTypeProps;
|
|
61
65
|
export type UpdateDashboardWidgetPayload = Partial<CreateDashboardWidgetPayload>;
|
|
@@ -126,5 +130,8 @@ export type DashboardWidgetTypeToParams = {
|
|
|
126
130
|
[DashboardWidgetType.FORM_LIST]: {
|
|
127
131
|
params: FormListProps;
|
|
128
132
|
};
|
|
133
|
+
[DashboardWidgetType.FORMS_LIST]: {
|
|
134
|
+
params: FormsListProps;
|
|
135
|
+
};
|
|
129
136
|
};
|
|
130
137
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/dashboard_widget/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/dashboard_widget/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EACL,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACf,MAAM,eAAe,CAAA;AAEtB,oBAAY,mBAAmB;IAC7B,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,iBAAiB,qBAAqB;IACtC,iBAAiB,qBAAqB;IACtC,QAAQ,aAAa;IACrB,iBAAiB,qBAAqB;IACtC,SAAS,aAAa;IACtB,UAAU,cAAc;CACzB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG;IAC9C,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,iCAAiC,EAAE,CAAA;CACpD,CAAA;AAED,M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|
+
{
|
|
75
|
+
"type": "string",
|
|
76
|
+
"const": "FormsList"
|
|
73
77
|
}
|
|
74
78
|
]
|
|
75
79
|
},
|
|
@@ -92,6 +96,9 @@
|
|
|
92
96
|
},
|
|
93
97
|
{
|
|
94
98
|
"$ref": "#/definitions/FormListProps"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"$ref": "#/definitions/FormsListProps"
|
|
95
102
|
}
|
|
96
103
|
]
|
|
97
104
|
}
|
|
@@ -669,7 +676,7 @@
|
|
|
669
676
|
},
|
|
670
677
|
"PresentationWidget": {
|
|
671
678
|
"type": "string",
|
|
672
|
-
"enum": ["text", "icon", "icon_text", "list", "repeatable_field"]
|
|
679
|
+
"enum": ["text", "icon", "icon_text", "list", "repeatable_field", "link"]
|
|
673
680
|
},
|
|
674
681
|
"PresentationWidgetSettings": {
|
|
675
682
|
"anyOf": [
|
|
@@ -713,8 +720,7 @@
|
|
|
713
720
|
"bgColor": {
|
|
714
721
|
"type": "string"
|
|
715
722
|
}
|
|
716
|
-
}
|
|
717
|
-
"required": ["conditions"]
|
|
723
|
+
}
|
|
718
724
|
}
|
|
719
725
|
},
|
|
720
726
|
"template": {
|
|
@@ -755,7 +761,7 @@
|
|
|
755
761
|
"type": "string"
|
|
756
762
|
}
|
|
757
763
|
},
|
|
758
|
-
"required": ["
|
|
764
|
+
"required": ["icon"]
|
|
759
765
|
}
|
|
760
766
|
},
|
|
761
767
|
"icon": {
|
|
@@ -806,7 +812,7 @@
|
|
|
806
812
|
"type": "string"
|
|
807
813
|
}
|
|
808
814
|
},
|
|
809
|
-
"required": ["
|
|
815
|
+
"required": ["icon", "iconPosition"]
|
|
810
816
|
}
|
|
811
817
|
},
|
|
812
818
|
"template": {
|
|
@@ -1046,6 +1052,207 @@
|
|
|
1046
1052
|
},
|
|
1047
1053
|
"required": ["mainForm"],
|
|
1048
1054
|
"additionalProperties": false
|
|
1055
|
+
},
|
|
1056
|
+
"FormsListProps": {
|
|
1057
|
+
"type": "object",
|
|
1058
|
+
"properties": {
|
|
1059
|
+
"data": {
|
|
1060
|
+
"type": "object",
|
|
1061
|
+
"additionalProperties": {
|
|
1062
|
+
"$ref": "#/definitions/FormListDataConfig"
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1065
|
+
"layout": {
|
|
1066
|
+
"$ref": "#/definitions/FormListLayoutConfig"
|
|
1067
|
+
},
|
|
1068
|
+
"appearance": {
|
|
1069
|
+
"$ref": "#/definitions/FormListAppearanceConfig"
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
"required": ["data"],
|
|
1073
|
+
"additionalProperties": false
|
|
1074
|
+
},
|
|
1075
|
+
"FormListDataConfig": {
|
|
1076
|
+
"type": "object",
|
|
1077
|
+
"properties": {
|
|
1078
|
+
"fields": {
|
|
1079
|
+
"type": "array",
|
|
1080
|
+
"items": {
|
|
1081
|
+
"type": "string"
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
"conditions": {
|
|
1085
|
+
"type": "object",
|
|
1086
|
+
"additionalProperties": {}
|
|
1087
|
+
},
|
|
1088
|
+
"limit": {
|
|
1089
|
+
"type": "number"
|
|
1090
|
+
},
|
|
1091
|
+
"sortBy": {
|
|
1092
|
+
"type": "array",
|
|
1093
|
+
"items": {
|
|
1094
|
+
"$ref": "#/definitions/SortBy"
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
"mainForm": {
|
|
1098
|
+
"type": "boolean"
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"required": ["fields"],
|
|
1102
|
+
"additionalProperties": false
|
|
1103
|
+
},
|
|
1104
|
+
"SortBy": {
|
|
1105
|
+
"type": "object",
|
|
1106
|
+
"properties": {
|
|
1107
|
+
"field": {
|
|
1108
|
+
"type": "string"
|
|
1109
|
+
},
|
|
1110
|
+
"orderType": {
|
|
1111
|
+
"$ref": "#/definitions/OrderType"
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1114
|
+
"required": ["field", "orderType"],
|
|
1115
|
+
"additionalProperties": false
|
|
1116
|
+
},
|
|
1117
|
+
"FormListLayoutConfig": {
|
|
1118
|
+
"type": "object",
|
|
1119
|
+
"properties": {
|
|
1120
|
+
"columns": {
|
|
1121
|
+
"type": "array",
|
|
1122
|
+
"items": {
|
|
1123
|
+
"$ref": "#/definitions/FormListColumnLayoutConfig"
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
"additionalProperties": false
|
|
1128
|
+
},
|
|
1129
|
+
"FormListColumnLayoutConfig": {
|
|
1130
|
+
"type": "object",
|
|
1131
|
+
"properties": {
|
|
1132
|
+
"widgetType": {
|
|
1133
|
+
"$ref": "#/definitions/PresentationWidget"
|
|
1134
|
+
},
|
|
1135
|
+
"title": {
|
|
1136
|
+
"type": "string"
|
|
1137
|
+
},
|
|
1138
|
+
"source": {
|
|
1139
|
+
"type": "string"
|
|
1140
|
+
},
|
|
1141
|
+
"widgetSettings": {
|
|
1142
|
+
"$ref": "#/definitions/PresentationWidgetSettingsV2"
|
|
1143
|
+
},
|
|
1144
|
+
"hidden": {
|
|
1145
|
+
"type": "boolean"
|
|
1146
|
+
}
|
|
1147
|
+
},
|
|
1148
|
+
"additionalProperties": false
|
|
1149
|
+
},
|
|
1150
|
+
"PresentationWidgetSettingsV2": {
|
|
1151
|
+
"anyOf": [
|
|
1152
|
+
{
|
|
1153
|
+
"$ref": "#/definitions/TextPresentationWidgetProps"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"$ref": "#/definitions/IconPresentationWidgetProps"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"$ref": "#/definitions/IconTextPresentationWidgetProps"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"$ref": "#/definitions/LinkPresentationWidgetFields"
|
|
1163
|
+
}
|
|
1164
|
+
]
|
|
1165
|
+
},
|
|
1166
|
+
"LinkPresentationWidgetFields": {
|
|
1167
|
+
"type": "object",
|
|
1168
|
+
"properties": {
|
|
1169
|
+
"url": {
|
|
1170
|
+
"type": "string"
|
|
1171
|
+
},
|
|
1172
|
+
"displayText": {
|
|
1173
|
+
"type": "string"
|
|
1174
|
+
},
|
|
1175
|
+
"bgColor": {
|
|
1176
|
+
"type": "string"
|
|
1177
|
+
},
|
|
1178
|
+
"textColor": {
|
|
1179
|
+
"type": "string"
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
"required": ["url"],
|
|
1183
|
+
"additionalProperties": false
|
|
1184
|
+
},
|
|
1185
|
+
"FormListAppearanceConfig": {
|
|
1186
|
+
"type": "object",
|
|
1187
|
+
"properties": {
|
|
1188
|
+
"body": {
|
|
1189
|
+
"type": "object",
|
|
1190
|
+
"properties": {
|
|
1191
|
+
"textColor": {
|
|
1192
|
+
"type": "string"
|
|
1193
|
+
},
|
|
1194
|
+
"bgColor": {
|
|
1195
|
+
"type": "string"
|
|
1196
|
+
},
|
|
1197
|
+
"fontSize": {
|
|
1198
|
+
"type": ["number", "null"]
|
|
1199
|
+
},
|
|
1200
|
+
"fontWeight": {
|
|
1201
|
+
"type": ["number", "null"]
|
|
1202
|
+
},
|
|
1203
|
+
"conditionalProps": {
|
|
1204
|
+
"type": "array",
|
|
1205
|
+
"items": {
|
|
1206
|
+
"$ref": "#/definitions/FormListBodyConditionalProps"
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
"additionalProperties": false
|
|
1211
|
+
},
|
|
1212
|
+
"header": {
|
|
1213
|
+
"type": "object",
|
|
1214
|
+
"properties": {
|
|
1215
|
+
"textColor": {
|
|
1216
|
+
"type": "string"
|
|
1217
|
+
},
|
|
1218
|
+
"bgColor": {
|
|
1219
|
+
"type": "string"
|
|
1220
|
+
},
|
|
1221
|
+
"fontSize": {
|
|
1222
|
+
"type": ["number", "null"]
|
|
1223
|
+
},
|
|
1224
|
+
"fontWeight": {
|
|
1225
|
+
"type": ["number", "null"]
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
"additionalProperties": false
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
"additionalProperties": false
|
|
1232
|
+
},
|
|
1233
|
+
"FormListBodyConditionalProps": {
|
|
1234
|
+
"type": "object",
|
|
1235
|
+
"properties": {
|
|
1236
|
+
"conditions": {
|
|
1237
|
+
"type": "string"
|
|
1238
|
+
},
|
|
1239
|
+
"continueEvaluate": {
|
|
1240
|
+
"type": "boolean"
|
|
1241
|
+
},
|
|
1242
|
+
"textColor": {
|
|
1243
|
+
"type": "string"
|
|
1244
|
+
},
|
|
1245
|
+
"bgColor": {
|
|
1246
|
+
"type": "string"
|
|
1247
|
+
},
|
|
1248
|
+
"fontSize": {
|
|
1249
|
+
"type": ["number", "null"]
|
|
1250
|
+
},
|
|
1251
|
+
"fontWeight": {
|
|
1252
|
+
"type": ["number", "null"]
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
"additionalProperties": false
|
|
1049
1256
|
}
|
|
1050
1257
|
}
|
|
1051
1258
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConditionsRules } from '../../notification_configuration/types';
|
|
2
|
-
import { IconPresentationWidgetProps, IconTextPresentationWidgetProps, TextPresentationWidgetProps } from './presentationWidgetTypes';
|
|
2
|
+
import { IconPresentationWidgetProps, IconTextPresentationWidgetProps, LinkPresentationWidgetFields, TextPresentationWidgetProps } from './presentationWidgetTypes';
|
|
3
3
|
import { ListPresentationWidgetProps } from './presentationWidgetTypes/ListPresentationWidget';
|
|
4
4
|
export interface PatientListProps {
|
|
5
5
|
loadUserProfiles?: boolean;
|
|
@@ -24,6 +24,58 @@ export interface FormListProps {
|
|
|
24
24
|
appearance?: PatientListAppearance;
|
|
25
25
|
mainForm: string;
|
|
26
26
|
}
|
|
27
|
+
export interface SortBy {
|
|
28
|
+
field: string;
|
|
29
|
+
orderType: OrderType;
|
|
30
|
+
}
|
|
31
|
+
export interface FormListDataConfig {
|
|
32
|
+
fields: string[];
|
|
33
|
+
conditions?: Record<string, unknown>;
|
|
34
|
+
limit?: number;
|
|
35
|
+
sortBy?: SortBy[];
|
|
36
|
+
mainForm?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface FormListColumnLayoutConfig {
|
|
39
|
+
widgetType?: PresentationWidget;
|
|
40
|
+
title?: string;
|
|
41
|
+
source?: string;
|
|
42
|
+
widgetSettings?: PresentationWidgetSettingsV2;
|
|
43
|
+
hidden?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface FormListBodyConditionalProps {
|
|
46
|
+
conditions?: string;
|
|
47
|
+
continueEvaluate?: boolean;
|
|
48
|
+
textColor?: string;
|
|
49
|
+
bgColor?: string;
|
|
50
|
+
fontSize?: number | null;
|
|
51
|
+
fontWeight?: number | null;
|
|
52
|
+
}
|
|
53
|
+
export interface FormListAppearanceConfig {
|
|
54
|
+
body?: {
|
|
55
|
+
textColor?: string;
|
|
56
|
+
bgColor?: string;
|
|
57
|
+
fontSize?: number | null;
|
|
58
|
+
fontWeight?: number | null;
|
|
59
|
+
conditionalProps?: FormListBodyConditionalProps[];
|
|
60
|
+
};
|
|
61
|
+
header?: {
|
|
62
|
+
textColor?: string;
|
|
63
|
+
bgColor?: string;
|
|
64
|
+
fontSize?: number | null;
|
|
65
|
+
fontWeight?: number | null;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface FormListLayoutConfig {
|
|
69
|
+
columns?: FormListColumnLayoutConfig[];
|
|
70
|
+
}
|
|
71
|
+
export interface FormsListProps {
|
|
72
|
+
data: {
|
|
73
|
+
[key: string]: FormListDataConfig;
|
|
74
|
+
};
|
|
75
|
+
layout?: FormListLayoutConfig;
|
|
76
|
+
appearance?: FormListAppearanceConfig;
|
|
77
|
+
}
|
|
78
|
+
export type PresentationWidgetSettingsV2 = TextPresentationWidgetProps | IconPresentationWidgetProps | IconTextPresentationWidgetProps | LinkPresentationWidgetFields;
|
|
27
79
|
export type PresentationWidgetSettings = TextPresentationWidgetProps | IconPresentationWidgetProps | IconTextPresentationWidgetProps | ListPresentationWidgetProps;
|
|
28
80
|
export interface PatientListColumn {
|
|
29
81
|
hidden?: boolean;
|
|
@@ -85,6 +137,7 @@ export declare enum PresentationWidget {
|
|
|
85
137
|
ICON = "icon",
|
|
86
138
|
ICON_TEXT = "icon_text",
|
|
87
139
|
LIST = "list",
|
|
88
|
-
REPEATABLE_FIELD = "repeatable_field"
|
|
140
|
+
REPEATABLE_FIELD = "repeatable_field",
|
|
141
|
+
LINK = "link"
|
|
89
142
|
}
|
|
90
143
|
//# sourceMappingURL=PatientListProps.d.ts.map
|