@persei/perseed-api 5.0.16 → 5.0.18
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/ecosystem-container-widget.cjs +33 -0
- package/dist/ecosystem-container-widget.cjs.map +1 -0
- package/dist/ecosystem-container-widget.d.ts +1 -0
- package/dist/ecosystem-container-widget.mjs +33 -0
- package/dist/ecosystem-container-widget.mjs.map +1 -0
- package/dist/global-dates.cjs +6 -0
- package/dist/global-dates.cjs.map +1 -0
- package/dist/global-dates.d.ts +1 -0
- package/dist/global-dates.mjs +6 -0
- package/dist/global-dates.mjs.map +1 -0
- package/dist/global-locale.cjs +28 -0
- package/dist/global-locale.cjs.map +1 -0
- package/dist/global-locale.d.ts +1 -0
- package/dist/global-locale.mjs +28 -0
- package/dist/global-locale.mjs.map +1 -0
- package/dist/lib-CDM5aEJG.cjs +27 -0
- package/dist/lib-CDM5aEJG.cjs.map +1 -0
- package/dist/lib-XRCJ_UAQ.js +28 -0
- package/dist/lib-XRCJ_UAQ.js.map +1 -0
- package/dist/src/Services/AuthenticationSecurityService.d.ts.map +1 -1
- package/dist/src/Services/ChartService.d.ts.map +1 -1
- package/dist/src/Services/ContainerWidgetService.d.ts.map +1 -1
- package/dist/src/Services/FileServiceProviders/AWSFileServiceProvider.d.ts.map +1 -1
- package/dist/src/Services/MobileService.d.ts.map +1 -1
- package/dist/src/Services/PatientJourneyService.d.ts.map +1 -1
- package/dist/src/Services/ProjectService.d.ts.map +1 -1
- package/dist/src/Services/SignedCookies/SignedCookies.d.ts.map +1 -1
- package/dist/src/Services/SignedCookies/SignedCookies.real-signer.test.d.ts +2 -0
- package/dist/src/Services/SignedCookies/SignedCookies.real-signer.test.d.ts.map +1 -0
- package/dist/src/Services/UserService.d.ts.map +1 -1
- package/dist/src/app.d.ts.map +1 -1
- package/dist/src/config/config.d.ts +1 -0
- package/dist/src/config/config.d.ts.map +1 -1
- package/dist/src/controllers/AuthController.d.ts.map +1 -1
- package/dist/src/controllers/UserController.d.ts.map +1 -1
- package/dist/src/helpers/dashboards.d.ts.map +1 -1
- package/dist/src/helpers/dates.d.ts.map +1 -1
- package/dist/src/helpers/password.d.ts +4 -0
- package/dist/src/helpers/password.d.ts.map +1 -0
- package/dist/src/helpers/password.test.d.ts +2 -0
- package/dist/src/helpers/password.test.d.ts.map +1 -0
- package/dist/src/models/ecosystem/User.d.ts +1 -0
- package/dist/src/models/ecosystem/User.d.ts.map +1 -1
- package/dist/src/schemas/container_widget/create_widget_payload.schema.json +30 -20
- package/dist/src/schemas/container_widget/update_widget_payload.schema.json +30 -20
- package/dist/src/schemas/container_widget/widgetTypes/PatientListProps.d.ts +15 -6
- package/dist/src/schemas/container_widget/widgetTypes/PatientListProps.d.ts.map +1 -1
- package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts +2 -1
- package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts.map +1 -1
- package/dist/src/scripts/seed-preview.d.ts +2 -0
- package/dist/src/scripts/seed-preview.d.ts.map +1 -0
- package/dist/src/test/e2e-config.d.ts.map +1 -0
- package/dist/src/test/e2e-helpers.d.ts.map +1 -0
- package/dist/src/test/e2e-permissions.d.ts.map +1 -0
- package/dist/src/{v2/test/e2e-setup.d.ts → test/e2e-setup-v1.d.ts} +1 -1
- package/dist/src/test/e2e-setup-v1.d.ts.map +1 -0
- package/dist/src/test/e2e-setup.d.ts.map +1 -0
- package/dist/src/test/global-setup.d.ts +2 -0
- package/dist/src/test/global-setup.d.ts.map +1 -0
- package/dist/src/test/test-helpers.d.ts.map +1 -0
- package/dist/src/test/test-setup.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/container-widget/container-widget.helper.d.ts +46 -0
- package/dist/src/v2/modules/ecosystem/container-widget/container-widget.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/container-widget/container-widget.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/container-widget/container-widget.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/container-widget/container-widget.schema.d.ts +22 -0
- package/dist/src/v2/modules/ecosystem/container-widget/container-widget.schema.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/container-widget/container-widget.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/container-widget/index.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/container-widget/index.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/container-widget/lib.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/container-widget/lib.d.ts.map +1 -0
- package/dist/src/v2/modules/global/dates/dates.helper.d.ts +17 -0
- package/dist/src/v2/modules/global/dates/dates.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/global/dates/dates.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/global/dates/dates.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/global/dates/dates.schema.d.ts +7 -0
- package/dist/src/v2/modules/global/dates/dates.schema.d.ts.map +1 -0
- package/dist/src/v2/modules/global/dates/index.d.ts +2 -0
- package/dist/src/v2/modules/global/dates/index.d.ts.map +1 -1
- package/dist/src/v2/modules/global/dates/lib.d.ts +3 -0
- package/dist/src/v2/modules/global/dates/lib.d.ts.map +1 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.d.ts +5 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.test.d.ts +2 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.test.d.ts.map +1 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.middleware.d.ts +2 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.middleware.d.ts.map +1 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.schema.d.ts +19 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.schema.d.ts.map +1 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.schema.test.d.ts +2 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.schema.test.d.ts.map +1 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.d.ts +22 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.d.ts.map +1 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.test.d.ts +2 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/global/e2e-operation/index.d.ts +5 -0
- package/dist/src/v2/modules/global/e2e-operation/index.d.ts.map +1 -0
- package/dist/src/v2/modules/global/locale/index.d.ts +3 -0
- package/dist/src/v2/modules/global/locale/index.d.ts.map +1 -0
- package/dist/src/v2/modules/global/locale/lib.d.ts +3 -0
- package/dist/src/v2/modules/global/locale/lib.d.ts.map +1 -0
- package/dist/src/v2/modules/global/locale/locale.helper.d.ts +17 -0
- package/dist/src/v2/modules/global/locale/locale.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/global/locale/locale.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/global/locale/locale.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/global/locale/locale.schema.d.ts +15 -0
- package/dist/src/v2/modules/global/locale/locale.schema.d.ts.map +1 -0
- package/dist/src/v2/modules/project/document/document.helper.d.ts.map +1 -1
- package/dist/src/v2/modules/project/health-data/health-data.service.d.ts +20 -3
- package/dist/src/v2/modules/project/health-data/health-data.service.d.ts.map +1 -1
- package/dist/src/v2/routes/v2/e2e/index.d.ts +4 -0
- package/dist/src/v2/routes/v2/e2e/index.d.ts.map +1 -0
- package/dist/v1/perseed-api.cjs.map +1 -1
- package/dist/v1/perseed-api.mjs.map +1 -1
- package/package.json +2 -1
- package/dist/src/v1/e2e-setup.d.ts.map +0 -1
- package/dist/src/v1/test-setup.d.ts.map +0 -1
- package/dist/src/v2/modules/container_widget/container-widget.service.test.d.ts.map +0 -1
- package/dist/src/v2/test/e2e-config.d.ts.map +0 -1
- package/dist/src/v2/test/e2e-helpers.d.ts.map +0 -1
- package/dist/src/v2/test/e2e-permissions.d.ts.map +0 -1
- package/dist/src/v2/test/e2e-setup.d.ts.map +0 -1
- package/dist/src/v2/test/test-helpers.d.ts.map +0 -1
- package/dist/src/v2/test/test-setup.d.ts +0 -8
- package/dist/src/v2/test/test-setup.d.ts.map +0 -1
- /package/dist/src/{v2/test → test}/e2e-config.d.ts +0 -0
- /package/dist/src/{v2/test → test}/e2e-helpers.d.ts +0 -0
- /package/dist/src/{v2/test → test}/e2e-permissions.d.ts +0 -0
- /package/dist/src/{v1 → test}/e2e-setup.d.ts +0 -0
- /package/dist/src/{v2/test → test}/test-helpers.d.ts +0 -0
- /package/dist/src/{v1 → test}/test-setup.d.ts +0 -0
- /package/dist/src/v2/modules/{container_widget → ecosystem/container-widget}/container-widget.service.test.d.ts +0 -0
|
@@ -1081,6 +1081,9 @@
|
|
|
1081
1081
|
},
|
|
1082
1082
|
"appearance": {
|
|
1083
1083
|
"$ref": "#/definitions/PatientListAppearance"
|
|
1084
|
+
},
|
|
1085
|
+
"tableSettings": {
|
|
1086
|
+
"$ref": "#/definitions/TableSettings"
|
|
1084
1087
|
}
|
|
1085
1088
|
},
|
|
1086
1089
|
"additionalProperties": false
|
|
@@ -1401,6 +1404,9 @@
|
|
|
1401
1404
|
"items": {
|
|
1402
1405
|
"$ref": "#/definitions/PatientListColumn"
|
|
1403
1406
|
}
|
|
1407
|
+
},
|
|
1408
|
+
"tableSettings": {
|
|
1409
|
+
"$ref": "#/definitions/TableSettings"
|
|
1404
1410
|
}
|
|
1405
1411
|
},
|
|
1406
1412
|
"additionalProperties": false
|
|
@@ -1514,6 +1520,17 @@
|
|
|
1514
1520
|
},
|
|
1515
1521
|
"additionalProperties": false
|
|
1516
1522
|
},
|
|
1523
|
+
"TableSettings": {
|
|
1524
|
+
"type": "object",
|
|
1525
|
+
"properties": {
|
|
1526
|
+
"hideExport": {
|
|
1527
|
+
"type": "boolean",
|
|
1528
|
+
"description": "When true, the export button is hidden in the widget's table."
|
|
1529
|
+
}
|
|
1530
|
+
},
|
|
1531
|
+
"additionalProperties": false,
|
|
1532
|
+
"description": "Common table configuration persisted per widget/panel inside its `params`. Shared by every table-backed widget so the same options apply uniformly to the underlying table. Extensible: future table-level options (column alignment, etc.) live here too."
|
|
1533
|
+
},
|
|
1517
1534
|
"PatientListAppearance": {
|
|
1518
1535
|
"type": "object",
|
|
1519
1536
|
"properties": {
|
|
@@ -1570,6 +1587,9 @@
|
|
|
1570
1587
|
},
|
|
1571
1588
|
"mainForm": {
|
|
1572
1589
|
"type": "string"
|
|
1590
|
+
},
|
|
1591
|
+
"tableSettings": {
|
|
1592
|
+
"$ref": "#/definitions/TableSettings"
|
|
1573
1593
|
}
|
|
1574
1594
|
},
|
|
1575
1595
|
"required": ["mainForm"],
|
|
@@ -1595,6 +1615,9 @@
|
|
|
1595
1615
|
"items": {
|
|
1596
1616
|
"$ref": "#/definitions/FinalParam"
|
|
1597
1617
|
}
|
|
1618
|
+
},
|
|
1619
|
+
"tableSettings": {
|
|
1620
|
+
"$ref": "#/definitions/TableSettings"
|
|
1598
1621
|
}
|
|
1599
1622
|
},
|
|
1600
1623
|
"required": ["data"],
|
|
@@ -1806,7 +1829,7 @@
|
|
|
1806
1829
|
"type": "boolean"
|
|
1807
1830
|
},
|
|
1808
1831
|
"basePeriod": {
|
|
1809
|
-
"$ref": "#/definitions/
|
|
1832
|
+
"$ref": "#/definitions/TrendPeriodConfig"
|
|
1810
1833
|
},
|
|
1811
1834
|
"conditionalProps": {
|
|
1812
1835
|
"type": "array",
|
|
@@ -1837,36 +1860,23 @@
|
|
|
1837
1860
|
"TrendPeriodConfig": {
|
|
1838
1861
|
"type": "object",
|
|
1839
1862
|
"properties": {
|
|
1840
|
-
"value": {
|
|
1841
|
-
"type": "number"
|
|
1842
|
-
},
|
|
1843
1863
|
"unit": {
|
|
1844
1864
|
"$ref": "#/definitions/TrendPeriodUnit"
|
|
1845
|
-
}
|
|
1846
|
-
},
|
|
1847
|
-
"required": ["value", "unit"],
|
|
1848
|
-
"additionalProperties": false
|
|
1849
|
-
},
|
|
1850
|
-
"TrendPeriodUnit": {
|
|
1851
|
-
"type": "string",
|
|
1852
|
-
"enum": ["hour", "day", "week", "month", "records"]
|
|
1853
|
-
},
|
|
1854
|
-
"TrendBasePeriodConfig": {
|
|
1855
|
-
"type": "object",
|
|
1856
|
-
"properties": {
|
|
1865
|
+
},
|
|
1857
1866
|
"fromValue": {
|
|
1858
1867
|
"type": "number"
|
|
1859
1868
|
},
|
|
1860
1869
|
"toValue": {
|
|
1861
1870
|
"type": "number"
|
|
1862
|
-
},
|
|
1863
|
-
"unit": {
|
|
1864
|
-
"$ref": "#/definitions/TrendPeriodUnit"
|
|
1865
1871
|
}
|
|
1866
1872
|
},
|
|
1867
|
-
"required": ["fromValue", "
|
|
1873
|
+
"required": ["unit", "fromValue", "toValue"],
|
|
1868
1874
|
"additionalProperties": false
|
|
1869
1875
|
},
|
|
1876
|
+
"TrendPeriodUnit": {
|
|
1877
|
+
"type": "string",
|
|
1878
|
+
"enum": ["hour", "day", "week", "month", "records"]
|
|
1879
|
+
},
|
|
1870
1880
|
"TrendConditionalStyleProps": {
|
|
1871
1881
|
"type": "object",
|
|
1872
1882
|
"properties": {
|
|
@@ -655,6 +655,9 @@
|
|
|
655
655
|
},
|
|
656
656
|
"appearance": {
|
|
657
657
|
"$ref": "#/definitions/PatientListAppearance"
|
|
658
|
+
},
|
|
659
|
+
"tableSettings": {
|
|
660
|
+
"$ref": "#/definitions/TableSettings"
|
|
658
661
|
}
|
|
659
662
|
},
|
|
660
663
|
"additionalProperties": false
|
|
@@ -975,6 +978,9 @@
|
|
|
975
978
|
"items": {
|
|
976
979
|
"$ref": "#/definitions/PatientListColumn"
|
|
977
980
|
}
|
|
981
|
+
},
|
|
982
|
+
"tableSettings": {
|
|
983
|
+
"$ref": "#/definitions/TableSettings"
|
|
978
984
|
}
|
|
979
985
|
},
|
|
980
986
|
"additionalProperties": false
|
|
@@ -1088,6 +1094,17 @@
|
|
|
1088
1094
|
},
|
|
1089
1095
|
"additionalProperties": false
|
|
1090
1096
|
},
|
|
1097
|
+
"TableSettings": {
|
|
1098
|
+
"type": "object",
|
|
1099
|
+
"properties": {
|
|
1100
|
+
"hideExport": {
|
|
1101
|
+
"type": "boolean",
|
|
1102
|
+
"description": "When true, the export button is hidden in the widget's table."
|
|
1103
|
+
}
|
|
1104
|
+
},
|
|
1105
|
+
"additionalProperties": false,
|
|
1106
|
+
"description": "Common table configuration persisted per widget/panel inside its `params`. Shared by every table-backed widget so the same options apply uniformly to the underlying table. Extensible: future table-level options (column alignment, etc.) live here too."
|
|
1107
|
+
},
|
|
1091
1108
|
"PatientListAppearance": {
|
|
1092
1109
|
"type": "object",
|
|
1093
1110
|
"properties": {
|
|
@@ -1144,6 +1161,9 @@
|
|
|
1144
1161
|
},
|
|
1145
1162
|
"mainForm": {
|
|
1146
1163
|
"type": "string"
|
|
1164
|
+
},
|
|
1165
|
+
"tableSettings": {
|
|
1166
|
+
"$ref": "#/definitions/TableSettings"
|
|
1147
1167
|
}
|
|
1148
1168
|
},
|
|
1149
1169
|
"required": ["mainForm"],
|
|
@@ -1169,6 +1189,9 @@
|
|
|
1169
1189
|
"items": {
|
|
1170
1190
|
"$ref": "#/definitions/FinalParam"
|
|
1171
1191
|
}
|
|
1192
|
+
},
|
|
1193
|
+
"tableSettings": {
|
|
1194
|
+
"$ref": "#/definitions/TableSettings"
|
|
1172
1195
|
}
|
|
1173
1196
|
},
|
|
1174
1197
|
"required": ["data"],
|
|
@@ -1380,7 +1403,7 @@
|
|
|
1380
1403
|
"type": "boolean"
|
|
1381
1404
|
},
|
|
1382
1405
|
"basePeriod": {
|
|
1383
|
-
"$ref": "#/definitions/
|
|
1406
|
+
"$ref": "#/definitions/TrendPeriodConfig"
|
|
1384
1407
|
},
|
|
1385
1408
|
"conditionalProps": {
|
|
1386
1409
|
"type": "array",
|
|
@@ -1411,36 +1434,23 @@
|
|
|
1411
1434
|
"TrendPeriodConfig": {
|
|
1412
1435
|
"type": "object",
|
|
1413
1436
|
"properties": {
|
|
1414
|
-
"value": {
|
|
1415
|
-
"type": "number"
|
|
1416
|
-
},
|
|
1417
1437
|
"unit": {
|
|
1418
1438
|
"$ref": "#/definitions/TrendPeriodUnit"
|
|
1419
|
-
}
|
|
1420
|
-
},
|
|
1421
|
-
"required": ["value", "unit"],
|
|
1422
|
-
"additionalProperties": false
|
|
1423
|
-
},
|
|
1424
|
-
"TrendPeriodUnit": {
|
|
1425
|
-
"type": "string",
|
|
1426
|
-
"enum": ["hour", "day", "week", "month", "records"]
|
|
1427
|
-
},
|
|
1428
|
-
"TrendBasePeriodConfig": {
|
|
1429
|
-
"type": "object",
|
|
1430
|
-
"properties": {
|
|
1439
|
+
},
|
|
1431
1440
|
"fromValue": {
|
|
1432
1441
|
"type": "number"
|
|
1433
1442
|
},
|
|
1434
1443
|
"toValue": {
|
|
1435
1444
|
"type": "number"
|
|
1436
|
-
},
|
|
1437
|
-
"unit": {
|
|
1438
|
-
"$ref": "#/definitions/TrendPeriodUnit"
|
|
1439
1445
|
}
|
|
1440
1446
|
},
|
|
1441
|
-
"required": ["fromValue", "
|
|
1447
|
+
"required": ["unit", "fromValue", "toValue"],
|
|
1442
1448
|
"additionalProperties": false
|
|
1443
1449
|
},
|
|
1450
|
+
"TrendPeriodUnit": {
|
|
1451
|
+
"type": "string",
|
|
1452
|
+
"enum": ["hour", "day", "week", "month", "records"]
|
|
1453
|
+
},
|
|
1444
1454
|
"TrendConditionalStyleProps": {
|
|
1445
1455
|
"type": "object",
|
|
1446
1456
|
"properties": {
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { ConditionsRules } from '../../notification_configuration/types';
|
|
2
2
|
import { IconPresentationWidgetProps, IconTextPresentationWidgetProps, LinkPresentationWidgetFields, TextPresentationWidgetProps } from './presentationWidgetTypes';
|
|
3
3
|
import { ListPresentationWidgetProps } from './presentationWidgetTypes/ListPresentationWidget';
|
|
4
|
+
/**
|
|
5
|
+
* Common table configuration persisted per widget/panel inside its `params`.
|
|
6
|
+
* Shared by every table-backed widget so the same options apply uniformly to
|
|
7
|
+
* the underlying table. Extensible: future table-level options (column
|
|
8
|
+
* alignment, etc.) live here too.
|
|
9
|
+
*/
|
|
10
|
+
export interface TableSettings {
|
|
11
|
+
/** When true, the export button is hidden in the widget's table. */
|
|
12
|
+
hideExport?: boolean;
|
|
13
|
+
}
|
|
4
14
|
export interface PatientListProps {
|
|
5
15
|
loadUserProfiles?: boolean;
|
|
6
16
|
loadAdherence?: boolean;
|
|
@@ -14,6 +24,7 @@ export interface PatientListProps {
|
|
|
14
24
|
calculatedColumns?: CalculatedColumn[];
|
|
15
25
|
columns?: PatientListColumn[];
|
|
16
26
|
appearance?: PatientListAppearance;
|
|
27
|
+
tableSettings?: TableSettings;
|
|
17
28
|
}
|
|
18
29
|
export interface FormListProps {
|
|
19
30
|
fields?: string[];
|
|
@@ -23,6 +34,7 @@ export interface FormListProps {
|
|
|
23
34
|
columns?: PatientListColumn[];
|
|
24
35
|
appearance?: PatientListAppearance;
|
|
25
36
|
mainForm: string;
|
|
37
|
+
tableSettings?: TableSettings;
|
|
26
38
|
}
|
|
27
39
|
export interface SortBy {
|
|
28
40
|
field: string;
|
|
@@ -80,6 +92,7 @@ export interface FormsListProps {
|
|
|
80
92
|
layout?: FormListLayoutConfig;
|
|
81
93
|
appearance?: FormListAppearanceConfig;
|
|
82
94
|
finalParams?: FinalParam[];
|
|
95
|
+
tableSettings?: TableSettings;
|
|
83
96
|
}
|
|
84
97
|
export type TrendPeriodUnit = 'hour' | 'day' | 'week' | 'month' | 'records';
|
|
85
98
|
export interface SelectOptionMapping {
|
|
@@ -88,13 +101,9 @@ export interface SelectOptionMapping {
|
|
|
88
101
|
chartValue: number;
|
|
89
102
|
}
|
|
90
103
|
export interface TrendPeriodConfig {
|
|
91
|
-
value: number;
|
|
92
104
|
unit: TrendPeriodUnit;
|
|
93
|
-
}
|
|
94
|
-
export interface TrendBasePeriodConfig {
|
|
95
105
|
fromValue: number;
|
|
96
|
-
toValue
|
|
97
|
-
unit: TrendPeriodUnit;
|
|
106
|
+
toValue: number;
|
|
98
107
|
}
|
|
99
108
|
export interface TrendPresentationWidgetStyleFields {
|
|
100
109
|
template?: string;
|
|
@@ -116,7 +125,7 @@ export interface TrendPresentationWidgetProps extends TrendPresentationWidgetSty
|
|
|
116
125
|
aggregationType: string;
|
|
117
126
|
comparisonPeriod?: TrendPeriodConfig;
|
|
118
127
|
basePeriodSameAsComparison?: boolean;
|
|
119
|
-
basePeriod?:
|
|
128
|
+
basePeriod?: TrendPeriodConfig;
|
|
120
129
|
conditionalProps?: TrendConditionalStyleProps[];
|
|
121
130
|
}
|
|
122
131
|
export type PresentationWidgetSettingsV2 = TextPresentationWidgetProps | IconPresentationWidgetProps | IconTextPresentationWidgetProps | LinkPresentationWidgetFields | TrendPresentationWidgetProps;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,oEAAoE;IACpE,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,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;IAClC,aAAa,CAAC,EAA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IACjB,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,eAAe,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PatientListBackgroundColor, PatientListColumn } from '../PatientListProps';
|
|
1
|
+
import { PatientListBackgroundColor, PatientListColumn, TableSettings } from '../PatientListProps';
|
|
2
2
|
export type ListPresentationWidgetProps = ListPresentationWidgetFields;
|
|
3
3
|
export interface ListPresentationWidgetFields {
|
|
4
4
|
params: {
|
|
@@ -6,6 +6,7 @@ export interface ListPresentationWidgetFields {
|
|
|
6
6
|
backgroundColor?: PatientListBackgroundColor[];
|
|
7
7
|
};
|
|
8
8
|
columns?: PatientListColumn[];
|
|
9
|
+
tableSettings?: TableSettings;
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=ListPresentationWidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/container_widget/widgetTypes/presentationWidgetTypes/ListPresentationWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"ListPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/container_widget/widgetTypes/presentationWidgetTypes/ListPresentationWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAElG,MAAM,MAAM,2BAA2B,GAAG,4BAA4B,CAAA;AAEtE,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE;QACN,UAAU,CAAC,EAAE;YACX,eAAe,CAAC,EAAE,0BAA0B,EAAE,CAAA;SAC/C,CAAA;QACD,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;QAC7B,aAAa,CAAC,EAAE,aAAa,CAAA;KAC9B,CAAA;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-preview.d.ts","sourceRoot":"","sources":["../../../../src/scripts/seed-preview.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-config.d.ts","sourceRoot":"","sources":["../../../../src/test/e2e-config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,oBAAY,QAAQ;IAClB,eAAe;IACf,GAAG,QAAQ;IACX,mBAAmB;IACnB,OAAO,YAAY;IACnB,yCAAyC;IACzC,iBAAiB,sBAAsB;IACvC,oBAAoB;IACpB,QAAQ,aAAa;IACrB,sFAAsF;IACtF,mBAAmB,wBAAwB;IAC3C,yCAAyC;IACzC,iBAAiB,sBAAsB;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,eAAe,CAyB7D,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU;;;CAGtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-helpers.d.ts","sourceRoot":"","sources":["../../../../src/test/e2e-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,QAAQ,EAAmB,MAAM,cAAc,CAAA;AAmGxD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAM3D;AAED;;;;;;;GAOG;AACH,wBAAsB,SAAS,CAC7B,OAAO,EAAE;IACP,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IACnD,GAAG,EAAE,MAAM,CAAA;IAEX,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B,EACD,QAAQ,CAAC,EAAE,QAAQ,gBA4BpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-permissions.d.ts","sourceRoot":"","sources":["../../../../src/test/e2e-permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAMH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;AAEpE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,kBAAkB;IAClB,MAAM,EAAE,UAAU,CAAA;IAClB;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAA;IACX,sEAAsE;IACtE,WAAW,EAAE,MAAM,CAAA;IACnB,+CAA+C;IAE/C,OAAO,CAAC,EAAE,GAAG,CAAA;CACd;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,sBAAsB,EAAE,GAAG,IAAI,CAiBxF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-setup-v1.d.ts","sourceRoot":"","sources":["../../../../src/test/e2e-setup-v1.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAO,MAAM,SAAS,CAAA;AAqB7B,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAA;IAEpC,IAAI,SAAS,EAAE,KAAK,CAAC,YAAY,CAAA;IAEjC,IAAI,SAAS,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-setup.d.ts","sourceRoot":"","sources":["../../../../src/test/e2e-setup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAO,MAAM,SAAS,CAAA;AAI7B,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAA;IAEpC,IAAI,SAAS,EAAE,KAAK,CAAC,YAAY,CAAA;IAEjC,IAAI,SAAS,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-setup.d.ts","sourceRoot":"","sources":["../../../../src/test/global-setup.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,KAAK,IAAI,IAAI,CAWpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../../../../src/test/test-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,eAAe,QAIxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-setup.d.ts","sourceRoot":"","sources":["../../../../src/test/test-setup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAA;IAEpC,IAAI,SAAS,EAAE,KAAK,CAAC,YAAY,CAAA;CAClC;AAED,eAAO,MAAM,OAAO,oBAAwB,CAAA;AAE5C,eAAO,MAAM,cAAc,4BAAgB,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { RelativePeriodConfig, TrendWindow, TrendWindowConfig } from './container-widget.schema';
|
|
2
|
+
/**
|
|
3
|
+
* Trend-widget time windows: the `value`/`from`/`to` → concrete-window resolution shared by the trend
|
|
4
|
+
* widget (front, viewer-local) and the health-data time-range filter (backend, UTC). Built on the
|
|
5
|
+
* generic calendar primitives of `global/dates` (which take the week start as a plain number) and the
|
|
6
|
+
* locale week-start resolver of `global/locale`, so the trend-specific rules live here in one place.
|
|
7
|
+
*
|
|
8
|
+
* The `utc` flag is forwarded to the primitives: `false` (default) uses the ambient local calendar
|
|
9
|
+
* (the front, viewer's timezone); `true` uses UTC (the backend). Both callers produce the exact same
|
|
10
|
+
* window for the same inputs and timezone.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Resolves a `from`/`to` range into a concrete, calendar-aligned window. `fromValue` and `toValue`
|
|
14
|
+
* are inclusive bucket offsets ("N units ago"), so the window covers the buckets from `toValue`-ago
|
|
15
|
+
* up to `fromValue`-ago and spans `fromValue − toValue + 1` buckets:
|
|
16
|
+
*
|
|
17
|
+
* - `start` (inclusive) = `getPeriodStart(now − fromValue·unit)` — start of the oldest bucket.
|
|
18
|
+
* - `end` (exclusive) = `now` when `toValue = 0` (the current, in-progress bucket is included,
|
|
19
|
+
* up to now); otherwise `getPeriodStart(now − (toValue − 1)·unit)` — the start of the bucket
|
|
20
|
+
* just after the newest included one, which drops the current bucket.
|
|
21
|
+
*
|
|
22
|
+
* Example (unit = week, weekStart = 1 Monday, now = Tue 2026-07-07):
|
|
23
|
+
* from 2, to 0 → [Mon 22 Jun, now) (3 weeks including the current one)
|
|
24
|
+
* from 3, to 1 → [Mon 15 Jun, Mon 06 Jul) (3 complete weeks, current one excluded)
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolveTrendWindow(nowMs: number, config: TrendWindowConfig, weekStart?: number, utc?: boolean): TrendWindow;
|
|
27
|
+
/**
|
|
28
|
+
* Resolves a count-based relative period into a concrete window — the single source of truth for the
|
|
29
|
+
* `value` → from/to mapping shared by every consumer (backend health-data filter, front trend widget),
|
|
30
|
+
* so the "current period counts as one of the N" rule is defined exactly once:
|
|
31
|
+
* - including it → `from = value - 1`, `to = 0` (buckets `value-1`…0 ago, ending now);
|
|
32
|
+
* - excluding it → `from = value`, `to = 1` (`value` complete buckets before the current one).
|
|
33
|
+
*/
|
|
34
|
+
export declare function resolveRelativePeriod(nowMs: number, { value, unit, excludeCurrentPeriod }: RelativePeriodConfig, weekStart?: number, utc?: boolean): TrendWindow;
|
|
35
|
+
/**
|
|
36
|
+
* Resolves a count-based relative period into a formatted date range, keeping the whole calculation
|
|
37
|
+
* (from/to mapping + the day-level rule + formatting) in one shared place:
|
|
38
|
+
* - `daily`: date-only `YYYY-MM-DD`; when excluding the current period the inclusive end becomes the
|
|
39
|
+
* last completed calendar day (the day before the current period's start).
|
|
40
|
+
* - `discrete`: ISO-8601, with the exclusive upper bound used verbatim.
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveRelativeDateRange(nowMs: number, config: RelativePeriodConfig, format: 'daily' | 'discrete', weekStart?: number, utc?: boolean): {
|
|
43
|
+
start_date: string;
|
|
44
|
+
end_date: string;
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=container-widget.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-widget.helper.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/container-widget/container-widget.helper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE/G;;;;;;;;;GASG;AAEH;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,iBAAiB,EACzB,SAAS,GAAE,MAAuB,EAClC,GAAG,UAAQ,GACV,WAAW,CAOb;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,EACb,EAAE,KAAK,EAAE,IAAI,EAAE,oBAA4B,EAAE,EAAE,oBAAoB,EACnE,SAAS,GAAE,MAAuB,EAClC,GAAG,UAAQ,GACV,WAAW,CAOb;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,OAAO,GAAG,UAAU,EAC5B,SAAS,GAAE,MAAuB,EAClC,GAAG,UAAQ,GACV;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAQ1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-widget.helper.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/container-widget/container-widget.helper.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PeriodUnit } from '../../global/dates/dates.schema';
|
|
2
|
+
/**
|
|
3
|
+
* Calendar-aligned relative time window contracts, shared by the trend widget (front, viewer-local)
|
|
4
|
+
* and the health-data time-range filter (backend, UTC). Pure types/constants only — the calculation
|
|
5
|
+
* logic that consumes them lives in `container-widget.helper.ts`.
|
|
6
|
+
*/
|
|
7
|
+
export type TrendWindowUnit = PeriodUnit;
|
|
8
|
+
export interface TrendWindowConfig {
|
|
9
|
+
fromValue: number;
|
|
10
|
+
toValue?: number;
|
|
11
|
+
unit: TrendWindowUnit;
|
|
12
|
+
}
|
|
13
|
+
export interface TrendWindow {
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
}
|
|
17
|
+
export interface RelativePeriodConfig {
|
|
18
|
+
value: number;
|
|
19
|
+
unit: TrendWindowUnit;
|
|
20
|
+
excludeCurrentPeriod?: boolean;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=container-widget.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-widget.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/container-widget/container-widget.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE;;;;GAIG;AAIH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAA;AAExC,MAAM,WAAW,iBAAiB;IAEhC,SAAS,EAAE,MAAM,CAAA;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,eAAe,CAAA;CACtB;AAGD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,eAAe,CAAA;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-widget.service.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/container-widget/container-widget.service.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/container-widget/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/container-widget/lib.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as dayjs } from 'dayjs';
|
|
2
|
+
import { PeriodUnit } from './dates.schema';
|
|
3
|
+
export declare const DEFAULT_WEEK_START = 1;
|
|
4
|
+
export declare function toCalendar(ms: number, utc: boolean): dayjs.Dayjs;
|
|
5
|
+
/**
|
|
6
|
+
* Aligns an instant to the start of the calendar period it falls in:
|
|
7
|
+
* weeks → the injected first weekday at midnight, months → the 1st at midnight,
|
|
8
|
+
* days → midnight, hours → the start of the hour. `utc` runs the alignment in UTC.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getPeriodStart(ms: number, unit: PeriodUnit, weekStart?: number, utc?: boolean): number;
|
|
11
|
+
/**
|
|
12
|
+
* Subtracts `value` whole calendar periods from an instant, without aligning. Month subtraction
|
|
13
|
+
* clamps to the last day of the target month (e.g. 31 Mar − 1 month → 28 Feb), which dayjs does
|
|
14
|
+
* natively. `utc` runs the arithmetic in UTC.
|
|
15
|
+
*/
|
|
16
|
+
export declare function subtractPeriods(ms: number, value: number, unit: PeriodUnit, utc?: boolean): number;
|
|
17
|
+
//# sourceMappingURL=dates.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dates.helper.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/dates/dates.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAmBhD,eAAO,MAAM,kBAAkB,IAAI,CAAA;AAGnC,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,KAAK,CAAC,KAAK,CAEhE;AAQD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,UAAU,EAChB,SAAS,GAAE,MAA2B,EACtC,GAAG,UAAQ,GACV,MAAM,CAQR;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,UAAQ,GAAG,MAAM,CAEhG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dates.helper.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/dates/dates.helper.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic calendar unit shared by the date primitives. Pure type — the calendar arithmetic that
|
|
3
|
+
* consumes it lives in `dates.helper.ts`. Domain modules that need a narrower alias (e.g. the trend
|
|
4
|
+
* widget's `TrendWindowUnit`) build it on top of this one, so the set of units is defined once here.
|
|
5
|
+
*/
|
|
6
|
+
export type PeriodUnit = 'hour' | 'day' | 'week' | 'month';
|
|
7
|
+
//# sourceMappingURL=dates.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dates.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/dates/dates.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/dates/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/dates/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/dates/lib.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-operation.controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAmC1E,eAAO,MAAM,sBAAsB;;CAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-operation.controller.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.controller.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const e2eTokenMiddleware: (fastify: import('fastify').FastifyInstance<import('fastify').RawServerDefault, import('http').IncomingMessage, import('http').ServerResponse<import('http').IncomingMessage>, import('fastify').FastifyBaseLogger, import('fastify').FastifyTypeProviderDefault>) => Promise<void>;
|
|
2
|
+
//# sourceMappingURL=e2e-operation.middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-operation.middleware.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.middleware.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,kBAAkB,qRAS7B,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Type, Static } from 'typebox';
|
|
2
|
+
export declare const e2eOperationParamsSchema: Type.TObject<{
|
|
3
|
+
worldId: Type.TString;
|
|
4
|
+
}>;
|
|
5
|
+
export type E2eOperationParams = Static<typeof e2eOperationParamsSchema>;
|
|
6
|
+
export declare const e2eOperationBodySchema: Type.TObject<{
|
|
7
|
+
operation: Type.TString;
|
|
8
|
+
params: Type.TObject<{
|
|
9
|
+
worldId: Type.TString;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const e2eOperationOkSchema: Type.TObject<{
|
|
13
|
+
ok: Type.TBoolean;
|
|
14
|
+
operation: Type.TString;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const e2eOperationErrorSchema: Type.TObject<{
|
|
17
|
+
message: Type.TString;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=e2e-operation.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-operation.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEtC,eAAO,MAAM,wBAAwB;;EASpC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAExE,eAAO,MAAM,sBAAsB;;;;;EAUlC,CAAA;AAED,eAAO,MAAM,oBAAoB;;;EAGhC,CAAA;AAED,eAAO,MAAM,uBAAuB;;EAGnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-operation.schema.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.schema.test.ts"],"names":[],"mappings":""}
|