@persei/perseed-api 5.0.4 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/client.cjs +60 -0
  2. package/dist/client.cjs.map +1 -1
  3. package/dist/client.mjs +60 -0
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/lib/src/generated/client.d.ts +190 -0
  6. package/dist/lib/src/generated/client.d.ts.map +1 -1
  7. package/dist/src/Services/ContainerWidgetService.d.ts +14 -0
  8. package/dist/src/Services/ContainerWidgetService.d.ts.map +1 -0
  9. package/dist/src/config/config.d.ts +9 -2
  10. package/dist/src/config/config.d.ts.map +1 -1
  11. package/dist/src/controllers/{DashboardWidgetController.d.ts → ContainerWidgetController.d.ts} +3 -3
  12. package/dist/src/controllers/{DashboardWidgetController.d.ts.map → ContainerWidgetController.d.ts.map} +1 -1
  13. package/dist/src/helpers/dashboards.d.ts +4 -4
  14. package/dist/src/helpers/dashboards.d.ts.map +1 -1
  15. package/dist/src/models/ecosystem/{DashboardWidget.d.ts → ContainerWidget.d.ts} +14 -14
  16. package/dist/src/models/ecosystem/ContainerWidget.d.ts.map +1 -0
  17. package/dist/src/models/ecosystem/{DashboardWidgetBlock.d.ts → ContainerWidgetBlock.d.ts} +5 -5
  18. package/dist/src/models/ecosystem/{DashboardWidgetBlock.d.ts.map → ContainerWidgetBlock.d.ts.map} +1 -1
  19. package/dist/src/models/perseed/UserSettings.d.ts.map +1 -1
  20. package/dist/src/routes/ecosystem/_ecosystemName/dashboardWidget/_id/index.d.ts.map +1 -1
  21. package/dist/src/routes/ecosystem/_ecosystemName/dashboardWidget/index.d.ts.map +1 -1
  22. package/dist/src/routes/ecosystem/_ecosystemName/project/_projectName/dashboardWidget/_id/index.d.ts.map +1 -1
  23. package/dist/src/routes/ecosystem/_ecosystemName/project/_projectName/dashboardWidget/index.d.ts.map +1 -1
  24. package/dist/src/schemas/{dashboard_widget → container_widget}/col.d.ts.map +1 -1
  25. package/dist/src/schemas/{dashboard_widget → container_widget}/create_widget_payload.schema.json +244 -46
  26. package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/Outcomes.d.ts.map +1 -1
  27. package/dist/src/schemas/container_widget/dataLoaders/index.d.ts.map +1 -0
  28. package/dist/src/schemas/{dashboard_widget → container_widget}/i18n.d.ts.map +1 -1
  29. package/dist/src/schemas/{dashboard_widget → container_widget}/index.d.ts.map +1 -1
  30. package/dist/src/schemas/container_widget/types.d.ts +184 -0
  31. package/dist/src/schemas/container_widget/types.d.ts.map +1 -0
  32. package/dist/src/schemas/{dashboard_widget → container_widget}/update_widget_payload.schema.json +156 -28
  33. package/dist/src/schemas/container_widget/widgetTypes/ContainerWidgetProps.d.ts +6 -0
  34. package/dist/src/schemas/container_widget/widgetTypes/ContainerWidgetProps.d.ts.map +1 -0
  35. package/dist/src/schemas/container_widget/widgetTypes/ModalProps.d.ts +17 -0
  36. package/dist/src/schemas/container_widget/widgetTypes/ModalProps.d.ts.map +1 -0
  37. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/PatientListProps.d.ts +17 -1
  38. package/dist/src/schemas/container_widget/widgetTypes/PatientListProps.d.ts.map +1 -0
  39. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts.map +1 -1
  40. package/dist/src/schemas/container_widget/widgetTypes/SidebarProps.d.ts +20 -0
  41. package/dist/src/schemas/container_widget/widgetTypes/SidebarProps.d.ts.map +1 -0
  42. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/ValueCardProps.d.ts +2 -2
  43. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/ValueCardProps.d.ts.map +1 -1
  44. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/index.d.ts +3 -1
  45. package/dist/src/schemas/container_widget/widgetTypes/index.d.ts.map +1 -0
  46. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/Generic.d.ts.map +1 -1
  47. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconPresentationWidget.d.ts.map +1 -1
  48. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.d.ts.map +1 -1
  49. package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +15 -0
  50. package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +1 -0
  51. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts.map +1 -1
  52. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/TextPresentationWidget.d.ts.map +1 -1
  53. package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/index.d.ts.map +1 -1
  54. package/dist/src/schemas/index.d.ts +1 -1
  55. package/dist/src/schemas/user_settings/GenericStringSetting.schema.json +9 -0
  56. package/dist/src/schemas/user_settings/types.d.ts +4 -0
  57. package/dist/src/schemas/user_settings/types.d.ts.map +1 -1
  58. package/dist/src/v2/modules/project/thryve/index.d.ts +4 -0
  59. package/dist/src/v2/modules/project/thryve/index.d.ts.map +1 -0
  60. package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts +5 -0
  61. package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts.map +1 -0
  62. package/dist/src/v2/modules/project/thryve/thryve.controller.e2e.d.ts +2 -0
  63. package/dist/src/v2/modules/project/thryve/thryve.controller.e2e.d.ts.map +1 -0
  64. package/dist/src/v2/modules/project/thryve/thryve.controller.test.d.ts +2 -0
  65. package/dist/src/v2/modules/project/thryve/thryve.controller.test.d.ts.map +1 -0
  66. package/dist/src/v2/modules/project/thryve/thryve.schema.d.ts +10 -0
  67. package/dist/src/v2/modules/project/thryve/thryve.schema.d.ts.map +1 -0
  68. package/dist/src/v2/modules/project/thryve/thryve.service.d.ts +30 -0
  69. package/dist/src/v2/modules/project/thryve/thryve.service.d.ts.map +1 -0
  70. package/dist/src/v2/modules/project/thryve/thryve.service.test.d.ts +2 -0
  71. package/dist/src/v2/modules/project/thryve/thryve.service.test.d.ts.map +1 -0
  72. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts +3 -0
  73. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts.map +1 -0
  74. package/dist/v1/perseed-api.cjs +67 -14
  75. package/dist/v1/perseed-api.cjs.map +1 -1
  76. package/dist/v1/perseed-api.mjs +67 -14
  77. package/dist/v1/perseed-api.mjs.map +1 -1
  78. package/package.json +1 -1
  79. package/dist/src/Services/DashboardWidgetService.d.ts +0 -14
  80. package/dist/src/Services/DashboardWidgetService.d.ts.map +0 -1
  81. package/dist/src/models/ecosystem/DashboardWidget.d.ts.map +0 -1
  82. package/dist/src/schemas/dashboard_widget/dataLoaders/index.d.ts.map +0 -1
  83. package/dist/src/schemas/dashboard_widget/types.d.ts +0 -137
  84. package/dist/src/schemas/dashboard_widget/types.d.ts.map +0 -1
  85. package/dist/src/schemas/dashboard_widget/widgetTypes/DashboardProps.d.ts +0 -6
  86. package/dist/src/schemas/dashboard_widget/widgetTypes/DashboardProps.d.ts.map +0 -1
  87. package/dist/src/schemas/dashboard_widget/widgetTypes/PatientListProps.d.ts.map +0 -1
  88. package/dist/src/schemas/dashboard_widget/widgetTypes/index.d.ts.map +0 -1
  89. package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +0 -7
  90. package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +0 -1
  91. /package/dist/src/schemas/{dashboard_widget → container_widget}/col.d.ts +0 -0
  92. /package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/Outcomes.d.ts +0 -0
  93. /package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/index.d.ts +0 -0
  94. /package/dist/src/schemas/{dashboard_widget → container_widget}/i18n.d.ts +0 -0
  95. /package/dist/src/schemas/{dashboard_widget → container_widget}/index.d.ts +0 -0
  96. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts +0 -0
  97. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/Generic.d.ts +0 -0
  98. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconPresentationWidget.d.ts +0 -0
  99. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.d.ts +0 -0
  100. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts +0 -0
  101. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/TextPresentationWidget.d.ts +0 -0
  102. /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/index.d.ts +0 -0
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/UpdateDashboardWidgetPayload",
3
+ "$ref": "#/definitions/UpdateContainerWidgetPayload",
4
4
  "definitions": {
5
- "UpdateDashboardWidgetPayload": {
5
+ "UpdateContainerWidgetPayload": {
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "title": {
@@ -30,26 +30,34 @@
30
30
  "widgetsBlocks": {
31
31
  "type": "array",
32
32
  "items": {
33
- "$ref": "#/definitions/DashboardWidgetBlockCreatePayload"
33
+ "$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
34
34
  }
35
35
  },
36
36
  "type": {
37
37
  "anyOf": [
38
38
  {
39
39
  "type": "string",
40
- "const": "SectionCard"
40
+ "const": "Dashboard"
41
41
  },
42
42
  {
43
43
  "type": "string",
44
- "const": "ValueCard"
44
+ "const": "Modal"
45
45
  },
46
46
  {
47
47
  "type": "string",
48
- "const": "PatientList"
48
+ "const": "Sidebar"
49
49
  },
50
50
  {
51
51
  "type": "string",
52
- "const": "Dashboard"
52
+ "const": "SectionCard"
53
+ },
54
+ {
55
+ "type": "string",
56
+ "const": "ValueCard"
57
+ },
58
+ {
59
+ "type": "string",
60
+ "const": "PatientList"
53
61
  },
54
62
  {
55
63
  "type": "string",
@@ -79,6 +87,15 @@
79
87
  },
80
88
  "params": {
81
89
  "anyOf": [
90
+ {
91
+ "$ref": "#/definitions/ContainerWidgetProps"
92
+ },
93
+ {
94
+ "$ref": "#/definitions/ModalProps"
95
+ },
96
+ {
97
+ "$ref": "#/definitions/SidebarProps"
98
+ },
82
99
  {
83
100
  "$ref": "#/definitions/SectionCardProps"
84
101
  },
@@ -88,9 +105,6 @@
88
105
  {
89
106
  "$ref": "#/definitions/PatientListProps"
90
107
  },
91
- {
92
- "$ref": "#/definitions/DashboardProps"
93
- },
94
108
  {
95
109
  "$ref": "#/definitions/EmptyProps"
96
110
  },
@@ -237,7 +251,7 @@
237
251
  },
238
252
  "additionalProperties": false
239
253
  },
240
- "DashboardWidgetBlockCreatePayload": {
254
+ "ContainerWidgetBlockCreatePayload": {
241
255
  "type": "object",
242
256
  "properties": {
243
257
  "parent_id": {
@@ -279,6 +293,98 @@
279
293
  },
280
294
  "additionalProperties": false
281
295
  },
296
+ "ContainerWidgetProps": {
297
+ "type": "object",
298
+ "properties": {
299
+ "active": {
300
+ "type": "boolean"
301
+ },
302
+ "config": {
303
+ "type": "object",
304
+ "additionalProperties": {}
305
+ },
306
+ "icon": {
307
+ "type": ["string", "null"]
308
+ }
309
+ },
310
+ "additionalProperties": false
311
+ },
312
+ "ModalProps": {
313
+ "type": "object",
314
+ "properties": {
315
+ "active": {
316
+ "type": "boolean"
317
+ },
318
+ "icon": {
319
+ "type": ["string", "null"]
320
+ },
321
+ "config": {
322
+ "$ref": "#/definitions/ModalConfig"
323
+ }
324
+ },
325
+ "required": ["config"],
326
+ "additionalProperties": false
327
+ },
328
+ "ModalConfig": {
329
+ "type": "object",
330
+ "properties": {
331
+ "size": {
332
+ "$ref": "#/definitions/ModalSize"
333
+ },
334
+ "width": {
335
+ "type": "string"
336
+ },
337
+ "height": {
338
+ "type": "string"
339
+ }
340
+ },
341
+ "required": ["size"],
342
+ "additionalProperties": false
343
+ },
344
+ "ModalSize": {
345
+ "type": "string",
346
+ "enum": ["small", "medium", "large", "fullscreen", "custom"]
347
+ },
348
+ "SidebarProps": {
349
+ "type": "object",
350
+ "properties": {
351
+ "active": {
352
+ "type": "boolean"
353
+ },
354
+ "icon": {
355
+ "type": ["string", "null"]
356
+ },
357
+ "config": {
358
+ "$ref": "#/definitions/SidebarConfig"
359
+ }
360
+ },
361
+ "required": ["config"],
362
+ "additionalProperties": false
363
+ },
364
+ "SidebarConfig": {
365
+ "type": "object",
366
+ "properties": {
367
+ "placement": {
368
+ "$ref": "#/definitions/SidebarPlacement"
369
+ },
370
+ "size": {
371
+ "$ref": "#/definitions/SidebarSize"
372
+ },
373
+ "width": {
374
+ "type": "string"
375
+ }
376
+ },
377
+ "required": ["placement", "size"],
378
+ "additionalProperties": false
379
+ },
380
+ "SidebarPlacement": {
381
+ "type": "string",
382
+ "enum": ["left", "right"]
383
+ },
384
+ "SidebarSize": {
385
+ "type": "string",
386
+ "enum": ["small", "medium", "large", "custom"]
387
+ },
282
388
  "SectionCardProps": {
283
389
  "type": "object",
284
390
  "properties": {
@@ -317,7 +423,7 @@
317
423
  "type": "object"
318
424
  },
319
425
  "dataLoader": {
320
- "$ref": "#/definitions/DashboardWidgetDataLoader%3CWidgetOutcomesDataLoader%3E"
426
+ "$ref": "#/definitions/ContainerWidgetDataLoader%3CWidgetOutcomesDataLoader%3E"
321
427
  }
322
428
  },
323
429
  "required": ["icon", "text"],
@@ -345,7 +451,7 @@
345
451
  "type": "string"
346
452
  }
347
453
  },
348
- "DashboardWidgetDataLoader<WidgetOutcomesDataLoader>": {
454
+ "ContainerWidgetDataLoader<WidgetOutcomesDataLoader>": {
349
455
  "type": "object",
350
456
  "properties": {
351
457
  "type": {
@@ -997,19 +1103,6 @@
997
1103
  },
998
1104
  "additionalProperties": false
999
1105
  },
1000
- "DashboardProps": {
1001
- "type": "object",
1002
- "properties": {
1003
- "active": {
1004
- "type": "boolean"
1005
- },
1006
- "config": {},
1007
- "icon": {
1008
- "type": ["string", "null"]
1009
- }
1010
- },
1011
- "additionalProperties": false
1012
- },
1013
1106
  "EmptyProps": {
1014
1107
  "type": "object",
1015
1108
  "additionalProperties": {
@@ -1086,7 +1179,7 @@
1086
1179
  "additionalProperties": {}
1087
1180
  },
1088
1181
  "limit": {
1089
- "type": "number"
1182
+ "type": ["number", "null"]
1090
1183
  },
1091
1184
  "sortBy": {
1092
1185
  "type": "array",
@@ -1143,6 +1236,9 @@
1143
1236
  },
1144
1237
  "hidden": {
1145
1238
  "type": "boolean"
1239
+ },
1240
+ "aggregation": {
1241
+ "$ref": "#/definitions/ColumnAggregation"
1146
1242
  }
1147
1243
  },
1148
1244
  "additionalProperties": false
@@ -1177,11 +1273,43 @@
1177
1273
  },
1178
1274
  "textColor": {
1179
1275
  "type": "string"
1276
+ },
1277
+ "underline": {
1278
+ "type": "boolean"
1279
+ },
1280
+ "linkType": {
1281
+ "$ref": "#/definitions/LinkType"
1282
+ },
1283
+ "openInNewTab": {
1284
+ "type": "boolean"
1285
+ },
1286
+ "targetWidgetId": {
1287
+ "type": "number"
1180
1288
  }
1181
1289
  },
1182
- "required": ["url"],
1183
1290
  "additionalProperties": false
1184
1291
  },
1292
+ "LinkType": {
1293
+ "type": "string",
1294
+ "enum": ["external", "internal"]
1295
+ },
1296
+ "ColumnAggregation": {
1297
+ "type": "object",
1298
+ "properties": {
1299
+ "type": {
1300
+ "$ref": "#/definitions/AggregationType"
1301
+ },
1302
+ "position": {
1303
+ "type": "number"
1304
+ }
1305
+ },
1306
+ "required": ["type"],
1307
+ "additionalProperties": false
1308
+ },
1309
+ "AggregationType": {
1310
+ "type": "string",
1311
+ "enum": ["first", "last", "position", "avg", "sum", "min", "max", "median", "stddev"]
1312
+ },
1185
1313
  "FormListAppearanceConfig": {
1186
1314
  "type": "object",
1187
1315
  "properties": {
@@ -0,0 +1,6 @@
1
+ export interface ContainerWidgetProps {
2
+ active?: boolean;
3
+ config?: Record<string, unknown>;
4
+ icon?: string | null;
5
+ }
6
+ //# sourceMappingURL=ContainerWidgetProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContainerWidgetProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/ContainerWidgetProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB"}
@@ -0,0 +1,17 @@
1
+ import { ContainerWidgetProps } from './ContainerWidgetProps';
2
+ export declare enum ModalSize {
3
+ SMALL = "small",
4
+ MEDIUM = "medium",
5
+ LARGE = "large",
6
+ FULLSCREEN = "fullscreen",
7
+ CUSTOM = "custom"
8
+ }
9
+ export interface ModalConfig {
10
+ size: ModalSize;
11
+ width?: string;
12
+ height?: string;
13
+ }
14
+ export interface ModalProps extends Omit<ContainerWidgetProps, 'config'> {
15
+ config: ModalConfig;
16
+ }
17
+ //# sourceMappingURL=ModalProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/ModalProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACtE,MAAM,EAAE,WAAW,CAAA;CACpB"}
@@ -31,7 +31,7 @@ export interface SortBy {
31
31
  export interface FormListDataConfig {
32
32
  fields: string[];
33
33
  conditions?: Record<string, unknown>;
34
- limit?: number;
34
+ limit?: number | null;
35
35
  sortBy?: SortBy[];
36
36
  mainForm?: boolean;
37
37
  }
@@ -41,6 +41,7 @@ export interface FormListColumnLayoutConfig {
41
41
  source?: string;
42
42
  widgetSettings?: PresentationWidgetSettingsV2;
43
43
  hidden?: boolean;
44
+ aggregation?: ColumnAggregation;
44
45
  }
45
46
  export interface FormListBodyConditionalProps {
46
47
  conditions?: string;
@@ -140,4 +141,19 @@ export declare enum PresentationWidget {
140
141
  REPEATABLE_FIELD = "repeatable_field",
141
142
  LINK = "link"
142
143
  }
144
+ export declare enum AggregationType {
145
+ FIRST = "first",
146
+ LAST = "last",
147
+ POSITION = "position",
148
+ AVG = "avg",
149
+ SUM = "sum",
150
+ MIN = "min",
151
+ MAX = "max",
152
+ MEDIAN = "median",
153
+ STDDEV = "stddev"
154
+ }
155
+ export interface ColumnAggregation {
156
+ type: AggregationType;
157
+ position?: number;
158
+ }
143
159
  //# sourceMappingURL=PatientListProps.d.ts.map
@@ -0,0 +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,k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AE,KAAK,EAAE,CAAA;CAChB;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,SAAS,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,gBAAgB,qBAAqB;IACrC,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,eAAe,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"SectionCardProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/dashboard_widget/widgetTypes/SectionCardProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
1
+ {"version":3,"file":"SectionCardProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/SectionCardProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
@@ -0,0 +1,20 @@
1
+ import { ContainerWidgetProps } from './ContainerWidgetProps';
2
+ export declare enum SidebarPlacement {
3
+ LEFT = "left",
4
+ RIGHT = "right"
5
+ }
6
+ export declare enum SidebarSize {
7
+ SMALL = "small",
8
+ MEDIUM = "medium",
9
+ LARGE = "large",
10
+ CUSTOM = "custom"
11
+ }
12
+ export interface SidebarConfig {
13
+ placement: SidebarPlacement;
14
+ size: SidebarSize;
15
+ width?: string;
16
+ }
17
+ export interface SidebarProps extends Omit<ContainerWidgetProps, 'config'> {
18
+ config: SidebarConfig;
19
+ }
20
+ //# sourceMappingURL=SidebarProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/SidebarProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,gBAAgB,CAAA;IAC3B,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACxE,MAAM,EAAE,aAAa,CAAA;CACtB"}
@@ -1,5 +1,5 @@
1
1
  import { I18nTextTranslation } from '../i18n';
2
- import { DashboardWidgetDataLoader } from '../types';
2
+ import { ContainerWidgetDataLoader } from '../types';
3
3
  import { WidgetOutcomesDataLoader } from '../dataLoaders/Outcomes';
4
4
  export interface ValueCardProps {
5
5
  icon: string;
@@ -8,6 +8,6 @@ export interface ValueCardProps {
8
8
  titleTextColor?: string;
9
9
  bodyTextColor?: string;
10
10
  data?: Record<string, any>;
11
- dataLoader?: DashboardWidgetDataLoader<WidgetOutcomesDataLoader>;
11
+ dataLoader?: ContainerWidgetDataLoader<WidgetOutcomesDataLoader>;
12
12
  }
13
13
  //# sourceMappingURL=ValueCardProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ValueCardProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/dashboard_widget/widgetTypes/ValueCardProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,mBAAmB,CAAA;IACzB,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,UAAU,CAAC,EAAE,yBAAyB,CAAC,wBAAwB,CAAC,CAAA;CACjE"}
1
+ {"version":3,"file":"ValueCardProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/ValueCardProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,mBAAmB,CAAA;IACzB,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,UAAU,CAAC,EAAE,yBAAyB,CAAC,wBAAwB,CAAC,CAAA;CACjE"}
@@ -1,6 +1,8 @@
1
1
  export * from './PatientListProps';
2
2
  export * from './SectionCardProps';
3
3
  export * from './ValueCardProps';
4
- export * from './DashboardProps';
4
+ export * from './ContainerWidgetProps';
5
5
  export * from './presentationWidgetTypes';
6
+ export * from './ModalProps';
7
+ export * from './SidebarProps';
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA;AACzC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Generic.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/Generic.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wCAAwC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACrF,gBAAgB,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,GAAG,CAAC;QAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,EAAE,CAAA;CAC5E;AAED,MAAM,MAAM,sCAAsC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,GACnF,wCAAwC,CAAC,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"Generic.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/container_widget/widgetTypes/presentationWidgetTypes/Generic.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wCAAwC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACrF,gBAAgB,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,GAAG,CAAC;QAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,EAAE,CAAA;CAC5E;AAED,MAAM,MAAM,sCAAsC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,GACnF,wCAAwC,CAAC,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"IconPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/IconPresentationWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,WAAW,CAAA;AAElE,MAAM,MAAM,2BAA2B,GAAG,sCAAsC,CAAC,4BAA4B,CAAC,CAAA;AAE9G,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
1
+ {"version":3,"file":"IconPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/container_widget/widgetTypes/presentationWidgetTypes/IconPresentationWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,WAAW,CAAA;AAElE,MAAM,MAAM,2BAA2B,GAAG,sCAAsC,CAAC,4BAA4B,CAAC,CAAA;AAE9G,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"IconTextPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,WAAW,CAAA;AAElE,MAAM,MAAM,+BAA+B,GAAG,sCAAsC,CAAC,gCAAgC,CAAC,CAAA;AAEtH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,YAAY,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,oBAAY,YAAY;IACtB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
1
+ {"version":3,"file":"IconTextPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/container_widget/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,WAAW,CAAA;AAElE,MAAM,MAAM,+BAA+B,GAAG,sCAAsC,CAAC,gCAAgC,CAAC,CAAA;AAEtH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,YAAY,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,oBAAY,YAAY;IACtB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
@@ -0,0 +1,15 @@
1
+ export declare enum LinkType {
2
+ EXTERNAL = "external",
3
+ INTERNAL = "internal"
4
+ }
5
+ export interface LinkPresentationWidgetFields {
6
+ url?: string;
7
+ displayText?: string;
8
+ bgColor?: string;
9
+ textColor?: string;
10
+ underline?: boolean;
11
+ linkType?: LinkType;
12
+ openInNewTab?: boolean;
13
+ targetWidgetId?: number;
14
+ }
15
+ //# sourceMappingURL=LinkPresentationWidget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,4BAA4B;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/ListPresentationWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEnF,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;KAC9B,CAAA;CACF"}
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;AAEnF,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;KAC9B,CAAA;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/TextPresentationWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,WAAW,CAAA;AAElE,MAAM,MAAM,2BAA2B,GAAG,sCAAsC,CAAC,4BAA4B,CAAC,CAAA;AAE9G,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
1
+ {"version":3,"file":"TextPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/container_widget/widgetTypes/presentationWidgetTypes/TextPresentationWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,WAAW,CAAA;AAElE,MAAM,MAAM,2BAA2B,GAAG,sCAAsC,CAAC,4BAA4B,CAAC,CAAA;AAE9G,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,WAAW,CAAA;AACzB,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/container_widget/widgetTypes/presentationWidgetTypes/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,WAAW,CAAA;AACzB,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
@@ -1,4 +1,4 @@
1
- export * from './dashboard_widget';
1
+ export * from './container_widget';
2
2
  export * from './authentication_security';
3
3
  export * from './notification_configuration';
4
4
  export * from './outcomes';
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/GenericStringSetting",
4
+ "definitions": {
5
+ "GenericStringSetting": {
6
+ "type": "string"
7
+ }
8
+ }
9
+ }
@@ -3,4 +3,8 @@
3
3
  */
4
4
  export type AppFontFactor = number;
5
5
  export type GenericBooleanSetting = boolean;
6
+ /**
7
+ * Opaque per-user identifier used as partnerUserID when creating/looking up the end user in Thryve
8
+ */
9
+ export type ThryveUserId = string;
6
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/user_settings/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAA;AAElC,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/user_settings/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAA;AAElC,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAA;AAE3C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './thryve.controller';
2
+ export * from './thryve.schema';
3
+ export * from './thryve.service';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/thryve/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox';
2
+ export declare const ThryveController: {
3
+ router: FastifyPluginAsyncTypebox;
4
+ };
5
+ //# sourceMappingURL=thryve.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thryve.controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/thryve/thryve.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAsD1E,eAAO,MAAM,gBAAgB;;CAE5B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=thryve.controller.e2e.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thryve.controller.e2e.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/thryve/thryve.controller.e2e.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=thryve.controller.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thryve.controller.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/thryve/thryve.controller.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { Static, Type } from 'typebox';
2
+ export declare const thryveIframeUrlResponseSchema: Type.TObject<{
3
+ url: Type.TString;
4
+ }>;
5
+ export type ThryveIframeUrlResponse = Static<typeof thryveIframeUrlResponseSchema>;
6
+ export declare const thryveAuthorizationStatusResponseSchema: Type.TObject<{
7
+ authorized: Type.TBoolean;
8
+ }>;
9
+ export type ThryveAuthorizationStatusResponse = Static<typeof thryveAuthorizationStatusResponseSchema>;
10
+ //# sourceMappingURL=thryve.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thryve.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/thryve/thryve.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEtC,eAAO,MAAM,6BAA6B;;EAOzC,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAElF,eAAO,MAAM,uCAAuC;;EAQnD,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG,MAAM,CAAC,OAAO,uCAAuC,CAAC,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { default as RequestContext } from '../../../../models/request/RequestContext';
2
+ /**
3
+ * Checks the `THRYVE_ENABLED` config flag. The value can be defined at project level (winning)
4
+ * or at ecosystem level as a fallback. When it is not set to a truthy value, the Thryve feature
5
+ * is considered disabled for that project and every endpoint will return 404 to the client.
6
+ *
7
+ * Fails fast if the caller did not resolve a `projectId` — every Thryve endpoint is mounted
8
+ * under `/v2/ecosystem/:ecosystemName/project/:projectName/thryve/...` so the upstream middleware
9
+ * is expected to populate it. Silently falling back to an ecosystem-wide check would hide
10
+ * middleware regressions.
11
+ */
12
+ declare function isEnabled(ctx: RequestContext): Promise<boolean>;
13
+ /**
14
+ * Requests a short-lived Thryve Connection Widget URL. The caller embeds this URL in an iframe
15
+ * (web) or a WebView (native) so the end user can authorize their wearable sources.
16
+ */
17
+ declare function getIframeUrl(ctx: RequestContext): Promise<string>;
18
+ /**
19
+ * Returns whether the current user has at least one connected data source in the `thryve_integration`
20
+ * service. Any failure (missing config, network error, non-2xx, malformed body) degrades to `false`
21
+ * so the app surfaces "unauthorized" instead of a 5xx.
22
+ */
23
+ declare function isAuthorized(ctx: RequestContext): Promise<boolean>;
24
+ export declare const ThryveService: {
25
+ isEnabled: typeof isEnabled;
26
+ getIframeUrl: typeof getIframeUrl;
27
+ isAuthorized: typeof isAuthorized;
28
+ };
29
+ export {};
30
+ //# sourceMappingURL=thryve.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thryve.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/thryve/thryve.service.ts"],"names":[],"mappings":"AAQA,OAAO,cAAc,MAAM,mCAAmC,CAAA;AA2E9D;;;;;;;;;GASG;AACH,iBAAe,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAO9D;AA6ID;;;GAGG;AACH,iBAAe,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAehE;AAyBD;;;;GAIG;AACH,iBAAe,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CA4BjE;AAED,eAAO,MAAM,aAAa;;;;CAIzB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=thryve.service.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thryve.service.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/thryve/thryve.service.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('@fastify/type-provider-typebox').FastifyPluginAsyncTypebox;
2
+ export default _default;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.ts"],"names":[],"mappings":";AACA,wBAAsC"}