@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.
Files changed (133) hide show
  1. package/dist/ecosystem-container-widget.cjs +33 -0
  2. package/dist/ecosystem-container-widget.cjs.map +1 -0
  3. package/dist/ecosystem-container-widget.d.ts +1 -0
  4. package/dist/ecosystem-container-widget.mjs +33 -0
  5. package/dist/ecosystem-container-widget.mjs.map +1 -0
  6. package/dist/global-dates.cjs +6 -0
  7. package/dist/global-dates.cjs.map +1 -0
  8. package/dist/global-dates.d.ts +1 -0
  9. package/dist/global-dates.mjs +6 -0
  10. package/dist/global-dates.mjs.map +1 -0
  11. package/dist/global-locale.cjs +28 -0
  12. package/dist/global-locale.cjs.map +1 -0
  13. package/dist/global-locale.d.ts +1 -0
  14. package/dist/global-locale.mjs +28 -0
  15. package/dist/global-locale.mjs.map +1 -0
  16. package/dist/lib-CDM5aEJG.cjs +27 -0
  17. package/dist/lib-CDM5aEJG.cjs.map +1 -0
  18. package/dist/lib-XRCJ_UAQ.js +28 -0
  19. package/dist/lib-XRCJ_UAQ.js.map +1 -0
  20. package/dist/src/Services/AuthenticationSecurityService.d.ts.map +1 -1
  21. package/dist/src/Services/ChartService.d.ts.map +1 -1
  22. package/dist/src/Services/ContainerWidgetService.d.ts.map +1 -1
  23. package/dist/src/Services/FileServiceProviders/AWSFileServiceProvider.d.ts.map +1 -1
  24. package/dist/src/Services/MobileService.d.ts.map +1 -1
  25. package/dist/src/Services/PatientJourneyService.d.ts.map +1 -1
  26. package/dist/src/Services/ProjectService.d.ts.map +1 -1
  27. package/dist/src/Services/SignedCookies/SignedCookies.d.ts.map +1 -1
  28. package/dist/src/Services/SignedCookies/SignedCookies.real-signer.test.d.ts +2 -0
  29. package/dist/src/Services/SignedCookies/SignedCookies.real-signer.test.d.ts.map +1 -0
  30. package/dist/src/Services/UserService.d.ts.map +1 -1
  31. package/dist/src/app.d.ts.map +1 -1
  32. package/dist/src/config/config.d.ts +1 -0
  33. package/dist/src/config/config.d.ts.map +1 -1
  34. package/dist/src/controllers/AuthController.d.ts.map +1 -1
  35. package/dist/src/controllers/UserController.d.ts.map +1 -1
  36. package/dist/src/helpers/dashboards.d.ts.map +1 -1
  37. package/dist/src/helpers/dates.d.ts.map +1 -1
  38. package/dist/src/helpers/password.d.ts +4 -0
  39. package/dist/src/helpers/password.d.ts.map +1 -0
  40. package/dist/src/helpers/password.test.d.ts +2 -0
  41. package/dist/src/helpers/password.test.d.ts.map +1 -0
  42. package/dist/src/models/ecosystem/User.d.ts +1 -0
  43. package/dist/src/models/ecosystem/User.d.ts.map +1 -1
  44. package/dist/src/schemas/container_widget/create_widget_payload.schema.json +30 -20
  45. package/dist/src/schemas/container_widget/update_widget_payload.schema.json +30 -20
  46. package/dist/src/schemas/container_widget/widgetTypes/PatientListProps.d.ts +15 -6
  47. package/dist/src/schemas/container_widget/widgetTypes/PatientListProps.d.ts.map +1 -1
  48. package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts +2 -1
  49. package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts.map +1 -1
  50. package/dist/src/scripts/seed-preview.d.ts +2 -0
  51. package/dist/src/scripts/seed-preview.d.ts.map +1 -0
  52. package/dist/src/test/e2e-config.d.ts.map +1 -0
  53. package/dist/src/test/e2e-helpers.d.ts.map +1 -0
  54. package/dist/src/test/e2e-permissions.d.ts.map +1 -0
  55. package/dist/src/{v2/test/e2e-setup.d.ts → test/e2e-setup-v1.d.ts} +1 -1
  56. package/dist/src/test/e2e-setup-v1.d.ts.map +1 -0
  57. package/dist/src/test/e2e-setup.d.ts.map +1 -0
  58. package/dist/src/test/global-setup.d.ts +2 -0
  59. package/dist/src/test/global-setup.d.ts.map +1 -0
  60. package/dist/src/test/test-helpers.d.ts.map +1 -0
  61. package/dist/src/test/test-setup.d.ts.map +1 -0
  62. package/dist/src/v2/modules/ecosystem/container-widget/container-widget.helper.d.ts +46 -0
  63. package/dist/src/v2/modules/ecosystem/container-widget/container-widget.helper.d.ts.map +1 -0
  64. package/dist/src/v2/modules/ecosystem/container-widget/container-widget.helper.test.d.ts +2 -0
  65. package/dist/src/v2/modules/ecosystem/container-widget/container-widget.helper.test.d.ts.map +1 -0
  66. package/dist/src/v2/modules/ecosystem/container-widget/container-widget.schema.d.ts +22 -0
  67. package/dist/src/v2/modules/ecosystem/container-widget/container-widget.schema.d.ts.map +1 -0
  68. package/dist/src/v2/modules/ecosystem/container-widget/container-widget.service.test.d.ts.map +1 -0
  69. package/dist/src/v2/modules/ecosystem/container-widget/index.d.ts +3 -0
  70. package/dist/src/v2/modules/ecosystem/container-widget/index.d.ts.map +1 -0
  71. package/dist/src/v2/modules/ecosystem/container-widget/lib.d.ts +3 -0
  72. package/dist/src/v2/modules/ecosystem/container-widget/lib.d.ts.map +1 -0
  73. package/dist/src/v2/modules/global/dates/dates.helper.d.ts +17 -0
  74. package/dist/src/v2/modules/global/dates/dates.helper.d.ts.map +1 -0
  75. package/dist/src/v2/modules/global/dates/dates.helper.test.d.ts +2 -0
  76. package/dist/src/v2/modules/global/dates/dates.helper.test.d.ts.map +1 -0
  77. package/dist/src/v2/modules/global/dates/dates.schema.d.ts +7 -0
  78. package/dist/src/v2/modules/global/dates/dates.schema.d.ts.map +1 -0
  79. package/dist/src/v2/modules/global/dates/index.d.ts +2 -0
  80. package/dist/src/v2/modules/global/dates/index.d.ts.map +1 -1
  81. package/dist/src/v2/modules/global/dates/lib.d.ts +3 -0
  82. package/dist/src/v2/modules/global/dates/lib.d.ts.map +1 -0
  83. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.d.ts +5 -0
  84. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.d.ts.map +1 -0
  85. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.test.d.ts +2 -0
  86. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.test.d.ts.map +1 -0
  87. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.middleware.d.ts +2 -0
  88. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.middleware.d.ts.map +1 -0
  89. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.schema.d.ts +19 -0
  90. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.schema.d.ts.map +1 -0
  91. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.schema.test.d.ts +2 -0
  92. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.schema.test.d.ts.map +1 -0
  93. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.d.ts +22 -0
  94. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.d.ts.map +1 -0
  95. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.test.d.ts +2 -0
  96. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.test.d.ts.map +1 -0
  97. package/dist/src/v2/modules/global/e2e-operation/index.d.ts +5 -0
  98. package/dist/src/v2/modules/global/e2e-operation/index.d.ts.map +1 -0
  99. package/dist/src/v2/modules/global/locale/index.d.ts +3 -0
  100. package/dist/src/v2/modules/global/locale/index.d.ts.map +1 -0
  101. package/dist/src/v2/modules/global/locale/lib.d.ts +3 -0
  102. package/dist/src/v2/modules/global/locale/lib.d.ts.map +1 -0
  103. package/dist/src/v2/modules/global/locale/locale.helper.d.ts +17 -0
  104. package/dist/src/v2/modules/global/locale/locale.helper.d.ts.map +1 -0
  105. package/dist/src/v2/modules/global/locale/locale.helper.test.d.ts +2 -0
  106. package/dist/src/v2/modules/global/locale/locale.helper.test.d.ts.map +1 -0
  107. package/dist/src/v2/modules/global/locale/locale.schema.d.ts +15 -0
  108. package/dist/src/v2/modules/global/locale/locale.schema.d.ts.map +1 -0
  109. package/dist/src/v2/modules/project/document/document.helper.d.ts.map +1 -1
  110. package/dist/src/v2/modules/project/health-data/health-data.service.d.ts +20 -3
  111. package/dist/src/v2/modules/project/health-data/health-data.service.d.ts.map +1 -1
  112. package/dist/src/v2/routes/v2/e2e/index.d.ts +4 -0
  113. package/dist/src/v2/routes/v2/e2e/index.d.ts.map +1 -0
  114. package/dist/v1/perseed-api.cjs.map +1 -1
  115. package/dist/v1/perseed-api.mjs.map +1 -1
  116. package/package.json +2 -1
  117. package/dist/src/v1/e2e-setup.d.ts.map +0 -1
  118. package/dist/src/v1/test-setup.d.ts.map +0 -1
  119. package/dist/src/v2/modules/container_widget/container-widget.service.test.d.ts.map +0 -1
  120. package/dist/src/v2/test/e2e-config.d.ts.map +0 -1
  121. package/dist/src/v2/test/e2e-helpers.d.ts.map +0 -1
  122. package/dist/src/v2/test/e2e-permissions.d.ts.map +0 -1
  123. package/dist/src/v2/test/e2e-setup.d.ts.map +0 -1
  124. package/dist/src/v2/test/test-helpers.d.ts.map +0 -1
  125. package/dist/src/v2/test/test-setup.d.ts +0 -8
  126. package/dist/src/v2/test/test-setup.d.ts.map +0 -1
  127. /package/dist/src/{v2/test → test}/e2e-config.d.ts +0 -0
  128. /package/dist/src/{v2/test → test}/e2e-helpers.d.ts +0 -0
  129. /package/dist/src/{v2/test → test}/e2e-permissions.d.ts +0 -0
  130. /package/dist/src/{v1 → test}/e2e-setup.d.ts +0 -0
  131. /package/dist/src/{v2/test → test}/test-helpers.d.ts +0 -0
  132. /package/dist/src/{v1 → test}/test-setup.d.ts +0 -0
  133. /package/dist/src/v2/modules/{container_widget → ecosystem/container-widget}/container-widget.service.test.d.ts +0 -0
@@ -0,0 +1,22 @@
1
+ import { E2eOperationParams } from './e2e-operation.schema';
2
+ export interface TrxLike {
3
+ raw(sql: string, bindings?: unknown[]): Promise<[{
4
+ id: number;
5
+ }[]]>;
6
+ }
7
+ export interface WorldOptions {
8
+ projectName?: string;
9
+ roleId?: number;
10
+ }
11
+ export declare const teardownWorld: (trx: TrxLike, worldId: string, opts?: WorldOptions) => Promise<void>;
12
+ export declare const createBaseWorld: (trx: TrxLike, worldId: string, opts?: WorldOptions) => Promise<{
13
+ userId: number;
14
+ profilingId: number;
15
+ projectId: number;
16
+ clinicId: number;
17
+ }>;
18
+ export declare const E2eOperationService: {
19
+ registry: Record<string, (params: E2eOperationParams) => Promise<void>>;
20
+ run(operation: string, params: E2eOperationParams): Promise<void>;
21
+ };
22
+ //# sourceMappingURL=e2e-operation.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"e2e-operation.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAqBhE,MAAM,WAAW,OAAO;IACtB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAAC,CAAA;CACpE;AAKD,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AA+BD,eAAO,MAAM,aAAa,GAAU,KAAK,OAAO,EAAE,SAAS,MAAM,EAAE,OAAM,YAAiB,KAAG,OAAO,CAAC,IAAI,CAsCxG,CAAA;AAYD,eAAO,MAAM,eAAe,GAC1B,KAAK,OAAO,EACZ,SAAS,MAAM,EACf,OAAM,YAAiB,KACtB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAwDtF,CAAA;AAkLD,eAAO,MAAM,mBAAmB;sCARQ,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC;mBAUrD,MAAM,UAAU,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;CAQxE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=e2e-operation.service.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"e2e-operation.service.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.service.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './e2e-operation.schema';
2
+ export * from './e2e-operation.middleware';
3
+ export * from './e2e-operation.service';
4
+ export * from './e2e-operation.controller';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './locale.schema';
2
+ export * from './locale.helper';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/locale/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './locale.schema';
2
+ export { toLocale, getWeekStart } from './locale.helper';
3
+ //# sourceMappingURL=lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/locale/lib.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { Locale } from './locale.schema';
2
+ /**
3
+ * Normalizes any raw locale into the canonical {@link Locale}. Converts `_`→`-`, and when the tag
4
+ * carries no region, resolves the language's OWN default region via `Intl.Locale.maximize()` (CLDR
5
+ * likely-subtags): `en` → `en-US`, `es` → `es-ES`, `de` → `de-DE`. An explicit region is preserved
6
+ * (`en-GB` stays `en-GB`). Empty/blank/unparseable input falls back to {@link DEFAULT_LOCALE}. Call
7
+ * this ONCE at each boundary; downstream functions take an already-normalized `Locale`.
8
+ */
9
+ export declare function toLocale(raw?: string | null): Locale;
10
+ /**
11
+ * Returns the ISO weekday number (1 = Monday … 7 = Sunday) that starts the week for `locale`. Takes
12
+ * an already-canonical {@link Locale} (normalize raw input with {@link toLocale} first), so no format
13
+ * parsing happens here. Falls back to {@link DEFAULT_LOCALE}'s week start only on runtimes without
14
+ * Intl week info.
15
+ */
16
+ export declare function getWeekStart(locale?: Locale): number;
17
+ //# sourceMappingURL=locale.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.helper.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/locale/locale.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,MAAM,EAA2B,MAAM,iBAAiB,CAAA;AAYtF;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAWpD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,GAAE,MAAuB,GAAG,MAAM,CASpE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=locale.helper.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.helper.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/locale/locale.helper.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Locale contracts owned by this module. Pure types/constants only — the normalization and week-info
3
+ * logic that consumes them lives in `locale.helper.ts`.
4
+ */
5
+ export type Locale = `${Lowercase<string>}-${Uppercase<string>}`;
6
+ export declare const DEFAULT_LOCALE: Locale;
7
+ export type LocaleWithWeekInfo = Intl.Locale & {
8
+ weekInfo?: {
9
+ firstDay: number;
10
+ };
11
+ getWeekInfo?: () => {
12
+ firstDay: number;
13
+ };
14
+ };
15
+ //# sourceMappingURL=locale.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/locale/locale.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,MAAM,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAA;AAGhE,eAAO,MAAM,cAAc,EAAE,MAAgB,CAAA;AAG7C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,MAAM,GAAG;IAC7C,QAAQ,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;CACzC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"document.helper.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/document/document.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAoCxC,6DAA6D;AAC7D,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAO7E;AAED,0EAA0E;AAC1E,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAO/E;AAED,kEAAkE;AAClE,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAO/E"}
1
+ {"version":3,"file":"document.helper.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/document/document.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAmCxC,6DAA6D;AAC7D,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAI7E;AAED,0EAA0E;AAC1E,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAI/E;AAED,kEAAkE;AAClE,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAI/E"}
@@ -19,11 +19,28 @@ export interface ExternalDataRow {
19
19
  declare function isUserAuthorized(providerUserId: string): Promise<boolean>;
20
20
  declare function getDailyDataForPatients(ctx: RequestContext, patientIds: number[], filters: HealthDataFilters): Promise<PatientDailyHealthData[]>;
21
21
  declare function getDiscreteDataForPatients(ctx: RequestContext, patientIds: number[], filters: HealthDataFilters): Promise<PatientDiscreteHealthData[]>;
22
- export declare function resolveRelativeTimeRange(value: unknown, unit: unknown, endpointType?: 'daily' | 'discrete'): {
22
+ type HealthDataTimeUnit = 'days' | 'weeks' | 'months' | 'hours';
23
+ /**
24
+ * Validates raw config values into a typed (value, unit) pair, or null when out of range.
25
+ * Accepts 'hours' only for the 'discrete' endpoint type.
26
+ */
27
+ export declare function parseRelativeTimeRange(rawValue: unknown, rawUnit: unknown, endpointType?: 'daily' | 'discrete'): {
28
+ value: number;
29
+ unit: HealthDataTimeUnit;
30
+ } | null;
31
+ /**
32
+ * Resolves a relative time range (`value` + `excludeCurrentPeriod`) into concrete start/end dates.
33
+ * The whole calculation — from/to mapping, the day-level rule and formatting — lives in the shared
34
+ * `resolveRelativeDateRange` primitive (UTC) so it can never diverge between backend and front.
35
+ *
36
+ * Receives already-validated, typed values — call `parseRelativeTimeRange` first to validate raw
37
+ * inputs.
38
+ */
39
+ export declare function resolveRelativeTimeRange(value: number, unit: HealthDataTimeUnit, endpointType?: 'daily' | 'discrete', excludeCurrentPeriod?: boolean, weekStart?: number): {
23
40
  start_date: string;
24
41
  end_date: string;
25
- } | null;
26
- declare function resolveFilters(config: FormListDataConfig, paramValues: Record<string, unknown>, sourceType?: ExternalSourceType): HealthDataFilters;
42
+ };
43
+ declare function resolveFilters(config: FormListDataConfig, paramValues: Record<string, unknown>, sourceType?: ExternalSourceType, weekStart?: number): HealthDataFilters;
27
44
  declare function getDataForPatients(ctx: RequestContext, patientIds: number[], key: string, sourceType: ExternalSourceType, config: FormListDataConfig, paramValues: Record<string, unknown>): Promise<ExternalDataRow[]>;
28
45
  export declare const HealthDataService: {
29
46
  getDailyDataForPatients: typeof getDailyDataForPatients;
@@ -1 +1 @@
1
- {"version":3,"file":"health-data.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/health-data/health-data.service.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,cAAc,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEzE,OAAO,KAAK,EAGV,iBAAiB,EACjB,sBAAsB,EACtB,yBAAyB,EAG1B,MAAM,sBAAsB,CAAA;AAI7B,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE;QAAE,IAAI,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,IAAI,CAAA;SAAE,CAAA;KAAE,CAAA;IACxD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC;AA0FD;;;;GAIG;AACH,iBAAe,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CA2BxE;AA+ED,iBAAe,uBAAuB,CACpC,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAMnC;AAED,iBAAe,0BAA0B,CACvC,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAMtC;AAqBD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,EACb,YAAY,GAAE,OAAO,GAAG,UAAoB,GAC3C;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAWjD;AAID,iBAAS,cAAc,CACrB,MAAM,EAAE,kBAAkB,EAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,UAAU,CAAC,EAAE,kBAAkB,GAC9B,iBAAiB,CA0CnB;AAMD,iBAAe,kBAAkB,CAC/B,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,MAAM,EAAE,EACpB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,kBAAkB,EAC9B,MAAM,EAAE,kBAAkB,EAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,eAAe,EAAE,CAAC,CAoB5B;AAED,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAA"}
1
+ {"version":3,"file":"health-data.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/health-data/health-data.service.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,cAAc,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAIzE,OAAO,KAAK,EAGV,iBAAiB,EACjB,sBAAsB,EACtB,yBAAyB,EAG1B,MAAM,sBAAsB,CAAA;AAI7B,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE;QAAE,IAAI,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,IAAI,CAAA;SAAE,CAAA;KAAE,CAAA;IACxD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC;AA0FD;;;;GAIG;AACH,iBAAe,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CA2BxE;AA+ED,iBAAe,uBAAuB,CACpC,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAMnC;AAED,iBAAe,0BAA0B,CACvC,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAMtC;AAsBD,KAAK,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAU/D;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,OAAO,EAChB,YAAY,GAAE,OAAO,GAAG,UAAoB,GAC3C;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAAG,IAAI,CAMpD;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,kBAAkB,EACxB,YAAY,GAAE,OAAO,GAAG,UAAoB,EAC5C,oBAAoB,UAAQ,EAC5B,SAAS,GAAE,MAAuB,GACjC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAQ1C;AAMD,iBAAS,cAAc,CACrB,MAAM,EAAE,kBAAkB,EAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,UAAU,CAAC,EAAE,kBAAkB,EAC/B,SAAS,GAAE,MAAuB,GACjC,iBAAiB,CA4CnB;AAMD,iBAAe,kBAAkB,CAC/B,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,MAAM,EAAE,EACpB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,kBAAkB,EAC9B,MAAM,EAAE,kBAAkB,EAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,eAAe,EAAE,CAAC,CAsB5B;AAED,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { FastifyPluginAsync } from 'fastify';
2
+ declare const routes: FastifyPluginAsync;
3
+ export default routes;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/routes/v2/e2e/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAQ5C,QAAA,MAAM,MAAM,EAAE,kBAKb,CAAA;AAED,eAAe,MAAM,CAAA"}