oro-sdk-apis 1.18.0 → 1.19.0
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.
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This type represents all the patient profile kind
|
|
3
|
+
*/
|
|
4
|
+
export declare type ProfileKind = 'myself' | 'child' | 'other';
|
|
5
|
+
/**
|
|
6
|
+
* this type is done as an example on how to add another data kind
|
|
7
|
+
*/
|
|
8
|
+
export declare type OtherKind = 'otherKindOfType';
|
|
9
|
+
/**
|
|
10
|
+
* This type represents all the kind a data that can define `ChoiceInputData` (`OtherKind` is here only as an example on how to add a new kind)
|
|
11
|
+
*/
|
|
12
|
+
export declare type AllChoiceInputDataKind = ProfileKind | OtherKind;
|
|
13
|
+
/**
|
|
14
|
+
* This interface represents a `StateTrigger` on selected profile kind
|
|
15
|
+
*/
|
|
16
|
+
export interface ProfileTrigger {
|
|
17
|
+
kind: 'profileTrigger';
|
|
18
|
+
value: ProfileKind;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* This interface is meant as an example of another kind of `StateTrigger`
|
|
22
|
+
*/
|
|
23
|
+
export interface OtherTrigger {
|
|
24
|
+
kind: 'otherTrigger';
|
|
25
|
+
field1: number;
|
|
26
|
+
field2: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This type represents all the state triggers that are defined.
|
|
30
|
+
*
|
|
31
|
+
* A state trigger is triggered onto app states. In other words, it is for triggers that cannot be defined thanks to pure workflow answers.
|
|
32
|
+
*/
|
|
33
|
+
export declare type StateTrigger = ProfileTrigger | OtherTrigger;
|
|
1
34
|
export interface IndexedData<T> {
|
|
2
35
|
[key: string]: T;
|
|
3
36
|
}
|
|
@@ -7,6 +40,8 @@ export interface ChoiceInputData {
|
|
|
7
40
|
text: string;
|
|
8
41
|
className?: string;
|
|
9
42
|
order?: number;
|
|
43
|
+
/** If defined, the choice input contains a kind that can be used into app. For instance, to check if a specific `kind` of answer has been selected */
|
|
44
|
+
kind?: AllChoiceInputDataKind;
|
|
10
45
|
}
|
|
11
46
|
export interface RadioInputIconOptionsData {
|
|
12
47
|
variant: 'icon';
|
|
@@ -30,7 +65,14 @@ export interface EntryData {
|
|
|
30
65
|
summaryLabel?: string;
|
|
31
66
|
summaryHidden?: boolean;
|
|
32
67
|
className?: string;
|
|
68
|
+
/**
|
|
69
|
+
* This field represents a list of `selectedAnswers` that must be set for this entry to be displayed.
|
|
70
|
+
*/
|
|
33
71
|
triggers?: string[];
|
|
72
|
+
/**
|
|
73
|
+
* This field represents a list of `StateTrigger` that must be fulfilled for this entry to be displayed.
|
|
74
|
+
*/
|
|
75
|
+
stateTriggers?: StateTrigger[];
|
|
34
76
|
}
|
|
35
77
|
export interface SlideData {
|
|
36
78
|
header: string;
|