oro-sdk-apis 1.5.0 → 1.5.1
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/package.json
CHANGED
package/src/models/workflow.ts
CHANGED
|
@@ -23,6 +23,12 @@ export interface RadioInputData extends ChoiceInputData {
|
|
|
23
23
|
export interface RadioCardInputData extends RadioInputData {
|
|
24
24
|
bodyText: string
|
|
25
25
|
}
|
|
26
|
+
|
|
27
|
+
export interface LanguagePickerData extends ChoiceInputData {
|
|
28
|
+
flag: string // iso3166-1
|
|
29
|
+
locale: string
|
|
30
|
+
}
|
|
31
|
+
|
|
26
32
|
export interface EntryData {
|
|
27
33
|
id?: number
|
|
28
34
|
label?: string
|
|
@@ -46,8 +52,7 @@ export enum MetadataCategory { //these are generic metadata categories
|
|
|
46
52
|
Raw = 'Raw',
|
|
47
53
|
}
|
|
48
54
|
|
|
49
|
-
export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>>
|
|
50
|
-
extends EntryData {
|
|
55
|
+
export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>> extends EntryData {
|
|
51
56
|
kind: T
|
|
52
57
|
metaCategory: MetadataCategory
|
|
53
58
|
answers?: A
|
|
@@ -57,10 +62,7 @@ export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>>
|
|
|
57
62
|
value?: string
|
|
58
63
|
}
|
|
59
64
|
|
|
60
|
-
export interface GroupedGenericQuestionData<
|
|
61
|
-
T,
|
|
62
|
-
A = IndexedData<ChoiceInputData>
|
|
63
|
-
> extends GenericQuestionData<T, A> {
|
|
65
|
+
export interface GroupedGenericQuestionData<T, A = IndexedData<ChoiceInputData>> extends GenericQuestionData<T, A> {
|
|
64
66
|
inline?: boolean
|
|
65
67
|
inlineLabel?: boolean
|
|
66
68
|
order?: number
|
|
@@ -69,21 +71,12 @@ export interface GroupedGenericQuestionData<
|
|
|
69
71
|
export type QuestionData =
|
|
70
72
|
| GenericQuestionData<'title' | 'paragraph' | 'checkbox', void>
|
|
71
73
|
| GenericQuestionData<
|
|
72
|
-
| '
|
|
73
|
-
| 'date'
|
|
74
|
-
| 'number'
|
|
75
|
-
| 'images'
|
|
76
|
-
| 'images-alias'
|
|
77
|
-
| 'body-parts'
|
|
78
|
-
| 'pharmacy-picker'
|
|
79
|
-
| 'place-address'
|
|
80
|
-
>
|
|
81
|
-
| GenericQuestionData<
|
|
82
|
-
'checkbox-group' | 'select' | 'multiple',
|
|
83
|
-
IndexedData<ChoiceInputData>
|
|
74
|
+
'text' | 'date' | 'number' | 'images' | 'images-alias' | 'body-parts' | 'pharmacy-picker' | 'place-address'
|
|
84
75
|
>
|
|
76
|
+
| GenericQuestionData<'checkbox-group' | 'select' | 'multiple', IndexedData<ChoiceInputData>>
|
|
85
77
|
| GroupedGenericQuestionData<'radio', IndexedData<RadioInputData>>
|
|
86
78
|
| GroupedGenericQuestionData<'radio-card', IndexedData<RadioCardInputData>>
|
|
79
|
+
| GroupedGenericQuestionData<'language-picker', IndexedData<LanguagePickerData>>
|
|
87
80
|
|
|
88
81
|
export interface FieldData {
|
|
89
82
|
type: 'field'
|