@persei/perseed-api 5.0.4 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.cjs +60 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +60 -0
- package/dist/client.mjs.map +1 -1
- package/dist/lib/src/generated/client.d.ts +196 -0
- package/dist/lib/src/generated/client.d.ts.map +1 -1
- package/dist/src/Services/ContainerWidgetService.d.ts +14 -0
- package/dist/src/Services/ContainerWidgetService.d.ts.map +1 -0
- package/dist/src/config/config.d.ts +9 -2
- package/dist/src/config/config.d.ts.map +1 -1
- package/dist/src/controllers/{DashboardWidgetController.d.ts → ContainerWidgetController.d.ts} +3 -3
- package/dist/src/controllers/ContainerWidgetController.d.ts.map +1 -0
- package/dist/src/helpers/dashboards.d.ts +5 -5
- package/dist/src/helpers/dashboards.d.ts.map +1 -1
- package/dist/src/models/ecosystem/{DashboardWidget.d.ts → ContainerWidget.d.ts} +14 -14
- package/dist/src/models/ecosystem/ContainerWidget.d.ts.map +1 -0
- package/dist/src/models/ecosystem/{DashboardWidgetBlock.d.ts → ContainerWidgetBlock.d.ts} +5 -5
- package/dist/src/models/ecosystem/{DashboardWidgetBlock.d.ts.map → ContainerWidgetBlock.d.ts.map} +1 -1
- package/dist/src/models/perseed/UserSettings.d.ts.map +1 -1
- package/dist/src/routes/ecosystem/_ecosystemName/dashboardWidget/_id/index.d.ts.map +1 -1
- package/dist/src/routes/ecosystem/_ecosystemName/dashboardWidget/index.d.ts.map +1 -1
- package/dist/src/routes/ecosystem/_ecosystemName/project/_projectName/dashboardWidget/_id/index.d.ts.map +1 -1
- package/dist/src/routes/ecosystem/_ecosystemName/project/_projectName/dashboardWidget/index.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/col.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/create_widget_payload.schema.json +328 -46
- package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/Outcomes.d.ts.map +1 -1
- package/dist/src/schemas/container_widget/dataLoaders/index.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/i18n.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/index.d.ts.map +1 -1
- package/dist/src/schemas/container_widget/types.d.ts +184 -0
- package/dist/src/schemas/container_widget/types.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/update_widget_payload.schema.json +240 -28
- package/dist/src/schemas/container_widget/widgetTypes/ContainerWidgetProps.d.ts +6 -0
- package/dist/src/schemas/container_widget/widgetTypes/ContainerWidgetProps.d.ts.map +1 -0
- package/dist/src/schemas/container_widget/widgetTypes/ModalProps.d.ts +19 -0
- package/dist/src/schemas/container_widget/widgetTypes/ModalProps.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/PatientListProps.d.ts +50 -1
- package/dist/src/schemas/container_widget/widgetTypes/PatientListProps.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts.map +1 -1
- package/dist/src/schemas/container_widget/widgetTypes/SidebarProps.d.ts +22 -0
- package/dist/src/schemas/container_widget/widgetTypes/SidebarProps.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/ValueCardProps.d.ts +2 -2
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/ValueCardProps.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/index.d.ts +3 -1
- package/dist/src/schemas/container_widget/widgetTypes/index.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/Generic.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconPresentationWidget.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.d.ts.map +1 -1
- package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +17 -0
- package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/TextPresentationWidget.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/index.d.ts.map +1 -1
- package/dist/src/schemas/index.d.ts +1 -1
- package/dist/src/schemas/user_settings/GenericStringSetting.schema.json +9 -0
- package/dist/src/schemas/user_settings/types.d.ts +4 -0
- package/dist/src/schemas/user_settings/types.d.ts.map +1 -1
- package/dist/src/v2/modules/container_widget/container-widget.service.test.d.ts +2 -0
- package/dist/src/v2/modules/container_widget/container-widget.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/project/forms-data/forms-data.helper.d.ts +17 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.schema.d.ts +1 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.schema.d.ts.map +1 -1
- package/dist/src/v2/modules/project/forms-data/forms-data.service.d.ts +1 -1
- package/dist/src/v2/modules/project/forms-data/forms-data.service.d.ts.map +1 -1
- package/dist/src/v2/modules/project/thryve/index.d.ts +4 -0
- package/dist/src/v2/modules/project/thryve/index.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts +5 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.e2e.d.ts +2 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.test.d.ts +2 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.test.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.schema.d.ts +10 -0
- package/dist/src/v2/modules/project/thryve/thryve.schema.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.service.d.ts +30 -0
- package/dist/src/v2/modules/project/thryve/thryve.service.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.service.test.d.ts +2 -0
- package/dist/src/v2/modules/project/thryve/thryve.service.test.d.ts.map +1 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts.map +1 -0
- package/dist/v1/perseed-api.cjs +67 -14
- package/dist/v1/perseed-api.cjs.map +1 -1
- package/dist/v1/perseed-api.mjs +67 -14
- package/dist/v1/perseed-api.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/src/Services/DashboardWidgetService.d.ts +0 -14
- package/dist/src/Services/DashboardWidgetService.d.ts.map +0 -1
- package/dist/src/controllers/DashboardWidgetController.d.ts.map +0 -1
- package/dist/src/models/ecosystem/DashboardWidget.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/dataLoaders/index.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/types.d.ts +0 -137
- package/dist/src/schemas/dashboard_widget/types.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/DashboardProps.d.ts +0 -6
- package/dist/src/schemas/dashboard_widget/widgetTypes/DashboardProps.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/PatientListProps.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/index.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +0 -7
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +0 -1
- /package/dist/src/schemas/{dashboard_widget → container_widget}/col.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/Outcomes.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/index.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/i18n.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/index.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/Generic.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconPresentationWidget.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/TextPresentationWidget.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/index.d.ts +0 -0
package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/PatientListProps.d.ts
RENAMED
|
@@ -31,9 +31,10 @@ 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
|
+
filterParams?: FilterParamsBlock[];
|
|
37
38
|
}
|
|
38
39
|
export interface FormListColumnLayoutConfig {
|
|
39
40
|
widgetType?: PresentationWidget;
|
|
@@ -41,6 +42,7 @@ export interface FormListColumnLayoutConfig {
|
|
|
41
42
|
source?: string;
|
|
42
43
|
widgetSettings?: PresentationWidgetSettingsV2;
|
|
43
44
|
hidden?: boolean;
|
|
45
|
+
aggregation?: ColumnAggregation;
|
|
44
46
|
}
|
|
45
47
|
export interface FormListBodyConditionalProps {
|
|
46
48
|
conditions?: string;
|
|
@@ -74,6 +76,7 @@ export interface FormsListProps {
|
|
|
74
76
|
};
|
|
75
77
|
layout?: FormListLayoutConfig;
|
|
76
78
|
appearance?: FormListAppearanceConfig;
|
|
79
|
+
finalParams?: FinalParam[];
|
|
77
80
|
}
|
|
78
81
|
export type PresentationWidgetSettingsV2 = TextPresentationWidgetProps | IconPresentationWidgetProps | IconTextPresentationWidgetProps | LinkPresentationWidgetFields;
|
|
79
82
|
export type PresentationWidgetSettings = TextPresentationWidgetProps | IconPresentationWidgetProps | IconTextPresentationWidgetProps | ListPresentationWidgetProps;
|
|
@@ -140,4 +143,50 @@ export declare enum PresentationWidget {
|
|
|
140
143
|
REPEATABLE_FIELD = "repeatable_field",
|
|
141
144
|
LINK = "link"
|
|
142
145
|
}
|
|
146
|
+
export type FinalParamType = 'string' | 'number' | 'boolean' | 'date' | 'time';
|
|
147
|
+
export interface FilterParamsBlock {
|
|
148
|
+
required: boolean;
|
|
149
|
+
rules: Record<string, unknown>;
|
|
150
|
+
description?: string;
|
|
151
|
+
}
|
|
152
|
+
export interface FinalParam {
|
|
153
|
+
name: string;
|
|
154
|
+
type: FinalParamType;
|
|
155
|
+
required: boolean;
|
|
156
|
+
}
|
|
157
|
+
export type ParamMappingSource = 'field' | 'literal';
|
|
158
|
+
export interface ParamMapping {
|
|
159
|
+
source: ParamMappingSource;
|
|
160
|
+
value?: string;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Identifier for a single widget instance inside a container.
|
|
164
|
+
* Today this is just `String(widget.id)` (e.g. `"145"`). Reserved for the future:
|
|
165
|
+
* when the same widget can be added multiple times to the same container, the
|
|
166
|
+
* identifier will use the `<widgetId>-<n>` shape (e.g. `"145-1"`, `"145-2"`).
|
|
167
|
+
* Consumers should treat it as an opaque string and use the helpers in
|
|
168
|
+
* `perseed-react-ui-components` (`toInstanceId`, `getBaseWidgetId`,
|
|
169
|
+
* `hasExplicitInstance`) to construct and destructure it.
|
|
170
|
+
*/
|
|
171
|
+
export type WidgetInstanceId = string;
|
|
172
|
+
export type ContainerParamMappings = {
|
|
173
|
+
[instanceId: WidgetInstanceId]: {
|
|
174
|
+
[paramName: string]: ParamMapping;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
export declare enum AggregationType {
|
|
178
|
+
FIRST = "first",
|
|
179
|
+
LAST = "last",
|
|
180
|
+
POSITION = "position",
|
|
181
|
+
AVG = "avg",
|
|
182
|
+
SUM = "sum",
|
|
183
|
+
MIN = "min",
|
|
184
|
+
MAX = "max",
|
|
185
|
+
MEDIAN = "median",
|
|
186
|
+
STDDEV = "stddev"
|
|
187
|
+
}
|
|
188
|
+
export interface ColumnAggregation {
|
|
189
|
+
type: AggregationType;
|
|
190
|
+
position?: number;
|
|
191
|
+
}
|
|
143
192
|
//# 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,kDAAkD,CAAA;AAE9F,MAAM,WAAW,gBAAgB;IAC/B,gBA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sB,GAAG;IACnC,CAAC,UAAU,EAAE,gBAAgB,GAAG;QAC9B,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,CAAA;KAClC,CAAA;CACF,CAAA;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"}
|
package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionCardProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/
|
|
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,22 @@
|
|
|
1
|
+
import { ContainerWidgetProps } from './ContainerWidgetProps';
|
|
2
|
+
import { ContainerParamMappings } from './PatientListProps';
|
|
3
|
+
export declare enum SidebarPlacement {
|
|
4
|
+
LEFT = "left",
|
|
5
|
+
RIGHT = "right"
|
|
6
|
+
}
|
|
7
|
+
export declare enum SidebarSize {
|
|
8
|
+
SMALL = "small",
|
|
9
|
+
MEDIUM = "medium",
|
|
10
|
+
LARGE = "large",
|
|
11
|
+
CUSTOM = "custom"
|
|
12
|
+
}
|
|
13
|
+
export interface SidebarConfig {
|
|
14
|
+
placement: SidebarPlacement;
|
|
15
|
+
size: SidebarSize;
|
|
16
|
+
width?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SidebarProps extends Omit<ContainerWidgetProps, 'config'> {
|
|
19
|
+
config: SidebarConfig;
|
|
20
|
+
paramMappings?: ContainerParamMappings;
|
|
21
|
+
}
|
|
22
|
+
//# 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;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,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;IACrB,aAAa,CAAC,EAAE,sBAAsB,CAAA;CACvC"}
|
package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/ValueCardProps.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I18nTextTranslation } from '../i18n';
|
|
2
|
-
import {
|
|
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?:
|
|
11
|
+
dataLoader?: ContainerWidgetDataLoader<WidgetOutcomesDataLoader>;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=ValueCardProps.d.ts.map
|
package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/ValueCardProps.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueCardProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/
|
|
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 './
|
|
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/
|
|
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/
|
|
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/
|
|
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,17 @@
|
|
|
1
|
+
import { ContainerParamMappings } from '../PatientListProps';
|
|
2
|
+
export declare enum LinkType {
|
|
3
|
+
EXTERNAL = "external",
|
|
4
|
+
INTERNAL = "internal"
|
|
5
|
+
}
|
|
6
|
+
export interface LinkPresentationWidgetFields {
|
|
7
|
+
url?: string;
|
|
8
|
+
displayText?: string;
|
|
9
|
+
bgColor?: string;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
underline?: boolean;
|
|
12
|
+
linkType?: LinkType;
|
|
13
|
+
openInNewTab?: boolean;
|
|
14
|
+
targetWidgetId?: number;
|
|
15
|
+
paramMappings?: ContainerParamMappings;
|
|
16
|
+
}
|
|
17
|
+
//# 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,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAEjE,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;IACvB,aAAa,CAAC,EAAE,sBAAsB,CAAA;CACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListPresentationWidget.d.ts","sourceRoot":"","sources":["../../../../../../../src/schemas/
|
|
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/
|
|
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/
|
|
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"}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"container-widget.service.test.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/modules/container_widget/container-widget.service.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms-data.controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/forms-data/forms-data.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"forms-data.controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/forms-data/forms-data.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAgD1E,eAAO,MAAM,mBAAmB;;CAE/B,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FilterParamsBlock, FinalParam, FormListDataConfig } from '../../../../schemas';
|
|
2
|
+
export declare class FilterParamsResolutionError extends Error {
|
|
3
|
+
missingParams: string[];
|
|
4
|
+
constructor(missingParams: string[]);
|
|
5
|
+
}
|
|
6
|
+
interface SqlCompiler<Q> {
|
|
7
|
+
compile(query: Q, rules: Record<string, unknown>): void;
|
|
8
|
+
}
|
|
9
|
+
interface FilterableConfig {
|
|
10
|
+
filterParams?: FilterParamsBlock[];
|
|
11
|
+
}
|
|
12
|
+
export declare function validateRequiredFilterParams(configByKey: Record<string, FilterableConfig | undefined>, paramValues: Record<string, unknown>): void;
|
|
13
|
+
export declare function getAppliedRuleTrees(conditions: Record<string, unknown> | undefined, configByKey: Record<string, FilterableConfig | undefined>, paramValues: Record<string, unknown>): Record<string, unknown>[];
|
|
14
|
+
export declare function applyConditionsAndFilterParams<Q>(query: Q, conditions: Record<string, unknown> | undefined, configByKey: Record<string, FilterableConfig | undefined>, paramValues: Record<string, unknown>, compiler: SqlCompiler<Q>): void;
|
|
15
|
+
export declare function deriveFinalParams(data: Record<string, FormListDataConfig> | undefined, designers: Record<string, any> | null | undefined): FinalParam[];
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=forms-data.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms-data.helper.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/forms-data/forms-data.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAkB,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAQpG,qBAAa,2BAA4B,SAAQ,KAAK;IACjC,aAAa,EAAE,MAAM,EAAE;gBAAvB,aAAa,EAAE,MAAM,EAAE;CAI3C;AAED,UAAU,WAAW,CAAC,CAAC;IACrB,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CACxD;AAqBD,UAAU,gBAAgB;IACxB,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAA;CACnC;AA+GD,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAAC,EACzD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,IAAI,CA6BN;AA8DD,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC/C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAAC,EACzD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAmC3B;AAED,wBAAgB,8BAA8B,CAAC,CAAC,EAC9C,KAAK,EAAE,CAAC,EACR,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC/C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAAC,EACzD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,GACvB,IAAI,CAKN;AA0HD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,SAAS,EACpD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,GAChD,UAAU,EAAE,CAwCd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms-data.helper.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/forms-data/forms-data.helper.test.ts"],"names":[],"mappings":""}
|
|
@@ -6,6 +6,7 @@ export declare const formsDataSchema: Type.TObject<{
|
|
|
6
6
|
export type FormsData = Static<typeof formsDataSchema>;
|
|
7
7
|
export declare const formsDataQuerySchema: Type.TIntersect<[Type.TObject<{
|
|
8
8
|
dashboardWidgetId: Type.TNumber;
|
|
9
|
+
paramValues: Type.TOptional<Type.TRecord<"^.*$", Type.TAny>>;
|
|
9
10
|
}>, Type.TObject<{
|
|
10
11
|
page: Type.TOptional<Type.TNumber>;
|
|
11
12
|
perPage: Type.TOptional<Type.TNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms-data.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/forms-data/forms-data.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAGtC,eAAO,MAAM,eAAe;;;EAA8E,CAAA;AAE1G,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA;AAEtD,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"forms-data.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/forms-data/forms-data.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAGtC,eAAO,MAAM,eAAe;;;EAA8E,CAAA;AAE1G,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA;AAEtD,eAAO,MAAM,oBAAoB;;;;;;IAkBhC,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as RequestContext } from '../../../../models/request/RequestContext';
|
|
2
2
|
import { FormsDataQuery } from './forms-data.schema';
|
|
3
3
|
export declare function getCrfBaseName(key: string): string;
|
|
4
|
-
declare function get(ctx: RequestContext, { dashboardWidgetId, ...pagination }: FormsDataQuery): Promise<{
|
|
4
|
+
declare function get(ctx: RequestContext, { dashboardWidgetId, paramValues, ...pagination }: FormsDataQuery): Promise<{
|
|
5
5
|
results: any[];
|
|
6
6
|
total: number;
|
|
7
7
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms-data.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/forms-data/forms-data.service.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"forms-data.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/forms-data/forms-data.service.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,mCAAmC,CAAA;AAc9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAIpD,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,UAGzC;AA2DD,iBAAe,GAAG,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,UAAU,EAAE,EAAE,cAAc;;;GA4HxG;AAED,eAAO,MAAM,gBAAgB;;CAE5B,CAAA"}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"thryve.service.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/project/thryve/thryve.service.test.ts"],"names":[],"mappings":""}
|
package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts.map
ADDED
|
@@ -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"}
|
package/dist/v1/perseed-api.cjs
CHANGED
|
@@ -1213,19 +1213,28 @@ const LOCALE_LANG_CODES = [
|
|
|
1213
1213
|
];
|
|
1214
1214
|
const FORMS_VIEW = "forms";
|
|
1215
1215
|
const HISTORY_VIEW = "history";
|
|
1216
|
-
var
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1216
|
+
var ContainerType = /* @__PURE__ */ ((ContainerType2) => {
|
|
1217
|
+
ContainerType2["DASHBOARD"] = "Dashboard";
|
|
1218
|
+
ContainerType2["MODAL"] = "Modal";
|
|
1219
|
+
ContainerType2["SIDEBAR"] = "Sidebar";
|
|
1220
|
+
return ContainerType2;
|
|
1221
|
+
})(ContainerType || {});
|
|
1222
|
+
var WidgetType = /* @__PURE__ */ ((WidgetType2) => {
|
|
1223
|
+
WidgetType2["VALUECARD"] = "ValueCard";
|
|
1224
|
+
WidgetType2["SECTIONCARD"] = "SectionCard";
|
|
1225
|
+
WidgetType2["PATIENTLIST"] = "PatientList";
|
|
1226
|
+
WidgetType2["QUESTIONNAIRE_LOG"] = "QuestionnaireLog";
|
|
1227
|
+
WidgetType2["PATIENTS_PROGRAMS"] = "PatientsPrograms";
|
|
1228
|
+
WidgetType2["PATIENTS"] = "Patients";
|
|
1229
|
+
WidgetType2["ADHERENCE_SUMMARY"] = "AdherenceSummary";
|
|
1230
|
+
WidgetType2["FORM_LIST"] = "FormList";
|
|
1231
|
+
WidgetType2["FORMS_LIST"] = "FormsList";
|
|
1232
|
+
return WidgetType2;
|
|
1233
|
+
})(WidgetType || {});
|
|
1234
|
+
const ContainerWidgetType = {
|
|
1235
|
+
...ContainerType,
|
|
1236
|
+
...WidgetType
|
|
1237
|
+
};
|
|
1229
1238
|
var DataLoaderType = /* @__PURE__ */ ((DataLoaderType2) => {
|
|
1230
1239
|
DataLoaderType2["OUTCOMES"] = "outcomes";
|
|
1231
1240
|
return DataLoaderType2;
|
|
@@ -1253,6 +1262,18 @@ var PresentationWidget = /* @__PURE__ */ ((PresentationWidget2) => {
|
|
|
1253
1262
|
PresentationWidget2["LINK"] = "link";
|
|
1254
1263
|
return PresentationWidget2;
|
|
1255
1264
|
})(PresentationWidget || {});
|
|
1265
|
+
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
1266
|
+
AggregationType2["FIRST"] = "first";
|
|
1267
|
+
AggregationType2["LAST"] = "last";
|
|
1268
|
+
AggregationType2["POSITION"] = "position";
|
|
1269
|
+
AggregationType2["AVG"] = "avg";
|
|
1270
|
+
AggregationType2["SUM"] = "sum";
|
|
1271
|
+
AggregationType2["MIN"] = "min";
|
|
1272
|
+
AggregationType2["MAX"] = "max";
|
|
1273
|
+
AggregationType2["MEDIAN"] = "median";
|
|
1274
|
+
AggregationType2["STDDEV"] = "stddev";
|
|
1275
|
+
return AggregationType2;
|
|
1276
|
+
})(AggregationType || {});
|
|
1256
1277
|
var IconPosition = /* @__PURE__ */ ((IconPosition2) => {
|
|
1257
1278
|
IconPosition2["UP"] = "up";
|
|
1258
1279
|
IconPosition2["DOWN"] = "down";
|
|
@@ -1260,6 +1281,31 @@ var IconPosition = /* @__PURE__ */ ((IconPosition2) => {
|
|
|
1260
1281
|
IconPosition2["RIGHT"] = "right";
|
|
1261
1282
|
return IconPosition2;
|
|
1262
1283
|
})(IconPosition || {});
|
|
1284
|
+
var LinkType = /* @__PURE__ */ ((LinkType2) => {
|
|
1285
|
+
LinkType2["EXTERNAL"] = "external";
|
|
1286
|
+
LinkType2["INTERNAL"] = "internal";
|
|
1287
|
+
return LinkType2;
|
|
1288
|
+
})(LinkType || {});
|
|
1289
|
+
var ModalSize = /* @__PURE__ */ ((ModalSize2) => {
|
|
1290
|
+
ModalSize2["SMALL"] = "small";
|
|
1291
|
+
ModalSize2["MEDIUM"] = "medium";
|
|
1292
|
+
ModalSize2["LARGE"] = "large";
|
|
1293
|
+
ModalSize2["FULLSCREEN"] = "fullscreen";
|
|
1294
|
+
ModalSize2["CUSTOM"] = "custom";
|
|
1295
|
+
return ModalSize2;
|
|
1296
|
+
})(ModalSize || {});
|
|
1297
|
+
var SidebarPlacement = /* @__PURE__ */ ((SidebarPlacement2) => {
|
|
1298
|
+
SidebarPlacement2["LEFT"] = "left";
|
|
1299
|
+
SidebarPlacement2["RIGHT"] = "right";
|
|
1300
|
+
return SidebarPlacement2;
|
|
1301
|
+
})(SidebarPlacement || {});
|
|
1302
|
+
var SidebarSize = /* @__PURE__ */ ((SidebarSize2) => {
|
|
1303
|
+
SidebarSize2["SMALL"] = "small";
|
|
1304
|
+
SidebarSize2["MEDIUM"] = "medium";
|
|
1305
|
+
SidebarSize2["LARGE"] = "large";
|
|
1306
|
+
SidebarSize2["CUSTOM"] = "custom";
|
|
1307
|
+
return SidebarSize2;
|
|
1308
|
+
})(SidebarSize || {});
|
|
1263
1309
|
var ApiAction = /* @__PURE__ */ ((ApiAction2) => {
|
|
1264
1310
|
ApiAction2["QUESTIONNAIRE_CREATE"] = "questionnaire.create";
|
|
1265
1311
|
ApiAction2["CRF_CREATE"] = "crf.create";
|
|
@@ -1386,18 +1432,20 @@ var BulkUploadStatus = /* @__PURE__ */ ((BulkUploadStatus2) => {
|
|
|
1386
1432
|
exports.AI_PROCESSING_META_NAMES = AI_PROCESSING_META_NAMES;
|
|
1387
1433
|
exports.ALL_SELECT_FIELD_TYPES = ALL_SELECT_FIELD_TYPES;
|
|
1388
1434
|
exports.AUDIT_FLAGS = AUDIT_FLAGS;
|
|
1435
|
+
exports.AggregationType = AggregationType;
|
|
1389
1436
|
exports.ApiAction = ApiAction;
|
|
1390
1437
|
exports.BulkUploadStatus = BulkUploadStatus;
|
|
1391
1438
|
exports.CORE = CORE;
|
|
1392
1439
|
exports.ColumnType = ColumnType;
|
|
1393
1440
|
exports.ConditionsFormat = ConditionsFormat;
|
|
1441
|
+
exports.ContainerType = ContainerType;
|
|
1442
|
+
exports.ContainerWidgetType = ContainerWidgetType;
|
|
1394
1443
|
exports.CountryPhoneCodes = CountryPhoneCodes;
|
|
1395
1444
|
exports.DATETIME_SHORT_FORMAT = DATETIME_SHORT_FORMAT;
|
|
1396
1445
|
exports.DATE_FORMAT = DATE_FORMAT;
|
|
1397
1446
|
exports.DATE_TYPE = DATE_TYPE;
|
|
1398
1447
|
exports.DEFAULT_CONFIGURATION_PATIENT_LIST = DEFAULT_CONFIGURATION_PATIENT_LIST;
|
|
1399
1448
|
exports.DYNAMIC_FILE_VALID_FORMATS = DYNAMIC_FILE_VALID_FORMATS;
|
|
1400
|
-
exports.DashboardWidgetType = DashboardWidgetType;
|
|
1401
1449
|
exports.DataLoaderType = DataLoaderType;
|
|
1402
1450
|
exports.EXCLUDE_FIELDS = EXCLUDE_FIELDS;
|
|
1403
1451
|
exports.Exporter = Exporter;
|
|
@@ -1418,6 +1466,7 @@ exports.IconPosition = IconPosition;
|
|
|
1418
1466
|
exports.IntrospectionSchemaFieldType = IntrospectionSchemaFieldType;
|
|
1419
1467
|
exports.LANG_CODES = LANG_CODES;
|
|
1420
1468
|
exports.LOCALE_LANG_CODES = LOCALE_LANG_CODES;
|
|
1469
|
+
exports.LinkType = LinkType;
|
|
1421
1470
|
exports.META_NAMES = META_NAMES;
|
|
1422
1471
|
exports.META_RESTRICTION = META_RESTRICTION;
|
|
1423
1472
|
exports.META_STATUS = META_STATUS;
|
|
@@ -1426,6 +1475,7 @@ exports.MULTIPLE_SELECTION_SEPARATOR = MULTIPLE_SELECTION_SEPARATOR;
|
|
|
1426
1475
|
exports.MULTIPLE_SELECT_FIELD_TYPES = MULTIPLE_SELECT_FIELD_TYPES;
|
|
1427
1476
|
exports.MYSQL_DATETIME_FORMAT = MYSQL_DATETIME_FORMAT;
|
|
1428
1477
|
exports.MYSQL_DATE_FORMAT = MYSQL_DATE_FORMAT;
|
|
1478
|
+
exports.ModalSize = ModalSize;
|
|
1429
1479
|
exports.NOTIFIED_TYPES = NOTIFIED_TYPES;
|
|
1430
1480
|
exports.NO_FILL_STATUS = NO_FILL_STATUS;
|
|
1431
1481
|
exports.NUMBER_TYPE = NUMBER_TYPE;
|
|
@@ -1453,10 +1503,13 @@ exports.SLIDER_TYPE = SLIDER_TYPE;
|
|
|
1453
1503
|
exports.STATUS = STATUS;
|
|
1454
1504
|
exports.STATUS_FIELD_REGEXP = STATUS_FIELD_REGEXP;
|
|
1455
1505
|
exports.STATUS_SUFFIX = STATUS_SUFFIX;
|
|
1506
|
+
exports.SidebarPlacement = SidebarPlacement;
|
|
1507
|
+
exports.SidebarSize = SidebarSize;
|
|
1456
1508
|
exports.TIME_FORMAT = TIME_FORMAT;
|
|
1457
1509
|
exports.TIME_SCHEMA = TIME_SCHEMA;
|
|
1458
1510
|
exports.TYPE = TYPE;
|
|
1459
1511
|
exports.TriggerAction = TriggerAction;
|
|
1512
|
+
exports.WidgetType = WidgetType;
|
|
1460
1513
|
exports.allCountries = allCountries;
|
|
1461
1514
|
exports.isNotStatusField = isNotStatusField;
|
|
1462
1515
|
//# sourceMappingURL=perseed-api.cjs.map
|