oro-sdk-apis 1.25.0 → 1.26.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.
|
@@ -96,7 +96,25 @@ export declare enum MetadataCategory {
|
|
|
96
96
|
Prescription = "Prescription",
|
|
97
97
|
Raw = "Raw"
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
/**
|
|
100
|
+
* This interface describes all images-alias question kind options
|
|
101
|
+
*/
|
|
102
|
+
export interface ImagesAliasQuestionOptions {
|
|
103
|
+
/**
|
|
104
|
+
* Comma separated list of accepted formats. Will be given to the input html element.
|
|
105
|
+
* Use same format as described [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#accept)
|
|
106
|
+
*/
|
|
107
|
+
accept?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Should allow multiple uploads or not
|
|
110
|
+
*/
|
|
111
|
+
multiple?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Should display photo guide instructions or not
|
|
114
|
+
*/
|
|
115
|
+
photoGuide?: boolean;
|
|
116
|
+
}
|
|
117
|
+
export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>, O = undefined> extends EntryData {
|
|
100
118
|
kind: T;
|
|
101
119
|
metaCategory: MetadataCategory;
|
|
102
120
|
answers?: A;
|
|
@@ -104,13 +122,17 @@ export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>> extend
|
|
|
104
122
|
placeholder?: string;
|
|
105
123
|
defaultValue?: any;
|
|
106
124
|
value?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Options to forward to the workflow component
|
|
127
|
+
*/
|
|
128
|
+
options?: O;
|
|
107
129
|
}
|
|
108
130
|
export interface GroupedGenericQuestionData<T, A = IndexedData<ChoiceInputData>> extends GenericQuestionData<T, A> {
|
|
109
131
|
inline?: boolean;
|
|
110
132
|
inlineLabel?: boolean;
|
|
111
133
|
order?: number;
|
|
112
134
|
}
|
|
113
|
-
export declare type QuestionData = GenericQuestionData<'title' | 'paragraph' | 'checkbox', void> | GenericQuestionData<'text' | 'text-area' | 'date' | 'number' | 'images' | '
|
|
135
|
+
export declare type QuestionData = GenericQuestionData<'title' | 'paragraph' | 'checkbox', void> | GenericQuestionData<'text' | 'text-area' | 'date' | 'number' | 'images' | 'body-parts' | 'pharmacy-picker' | 'online-pharmacy-picker' | 'place-address'> | GenericQuestionData<'images-alias', IndexedData<ChoiceInputData>, ImagesAliasQuestionOptions> | GenericQuestionData<'checkbox-group' | 'select' | 'multiple' | 'text-select-group', IndexedData<ChoiceInputData>> | GroupedGenericQuestionData<'radio', IndexedData<RadioInputData>> | GroupedGenericQuestionData<'radio-card' | 'profile-selector', IndexedData<RadioCardInputData>> | GroupedGenericQuestionData<'language-picker', IndexedData<LanguagePickerData>>;
|
|
114
136
|
export interface FieldData {
|
|
115
137
|
type: 'field';
|
|
116
138
|
className?: string;
|
|
@@ -148,13 +170,27 @@ export interface WorkflowData {
|
|
|
148
170
|
walkthroughSlides?: SlideData[];
|
|
149
171
|
}
|
|
150
172
|
/**
|
|
151
|
-
* This interface describes
|
|
173
|
+
* This interface describes an upload of an image (could be a picture, a pdf, a text file, etc.)
|
|
152
174
|
*/
|
|
153
175
|
export interface WorkflowUploadedImage {
|
|
176
|
+
/**
|
|
177
|
+
* Depending on the driver used by WorkflowInput:
|
|
178
|
+
* - 'indexdb': will fetch the image in IndexDB with this id
|
|
179
|
+
* - 'vault': will fetch the image in the vault with this id
|
|
180
|
+
*/
|
|
154
181
|
idbId?: string;
|
|
182
|
+
/**
|
|
183
|
+
* The name of the image
|
|
184
|
+
*/
|
|
155
185
|
name: string;
|
|
186
|
+
/**
|
|
187
|
+
* the image data (could be a picture, a pdf, a text file, etc.)
|
|
188
|
+
*/
|
|
156
189
|
imageData?: string;
|
|
157
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* This interface describes a workflow prepared and ready to be sent to vault
|
|
193
|
+
*/
|
|
158
194
|
export interface PopulatedWorkflowField {
|
|
159
195
|
answer: SelectedAnswerData | WorkflowUploadedImage[];
|
|
160
196
|
displayedAnswer?: any;
|