oro-sdk-apis 6.0.1 → 6.1.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.
@@ -51,6 +51,7 @@ export interface ConsultTransmission {
51
51
  keyWebhookSecret: string;
52
52
  }
53
53
  export declare enum ConsultType {
54
+ FollowUp = "FollowUp",
54
55
  Onboard = "Onboard",
55
56
  Refill = "Refill"
56
57
  }
@@ -36,6 +36,24 @@ export interface IndexedData<T> {
36
36
  }
37
37
  export declare type SelectedAnswerData = string | string[];
38
38
  export declare type SelectedAnswersData = IndexedData<SelectedAnswerData>[];
39
+ /**
40
+ * Tracking between the selected answers and the previous ones (if exist)
41
+ */
42
+ export interface PreviousAnswerData<T = (SelectedAnswerData | WorkflowUploadedImage[])> {
43
+ /**
44
+ * The answer from the previous consultation
45
+ */
46
+ previousAnswer: T;
47
+ /**
48
+ * The timestamp of when the previous answer was entered
49
+ */
50
+ timestamp?: Date;
51
+ /**
52
+ * Whether the value from the current answer and the previous answer has changed
53
+ */
54
+ changed: boolean;
55
+ }
56
+ export declare type PreviousAnswersData = IndexedData<PreviousAnswerData>[];
39
57
  export interface ChoiceInputData {
40
58
  text: string;
41
59
  className?: string;
@@ -230,6 +248,7 @@ export interface WorkflowData {
230
248
  summaryImageFieldName?: string;
231
249
  summarySymptomsFieldName?: string;
232
250
  selectedAnswers?: SelectedAnswersData;
251
+ previousAnswers?: PreviousAnswersData;
233
252
  serviceImage?: string;
234
253
  walkthroughSlides?: SlideData[];
235
254
  /**
@@ -310,7 +329,8 @@ export interface WorkflowUploadedImage {
310
329
  * This interface describes a workflow prepared and ready to be sent to vault
311
330
  */
312
331
  export interface PopulatedWorkflowField {
313
- answer: SelectedAnswerData | WorkflowUploadedImage[];
332
+ previousAnswer?: PreviousAnswerData;
333
+ answer?: SelectedAnswerData | WorkflowUploadedImage[];
314
334
  displayedAnswer?: any;
315
335
  kind: string;
316
336
  }
@@ -766,6 +766,7 @@ var ApisPracticeManager = /*#__PURE__*/function () {
766
766
  TransmissionStatus["ReceiverIncompatible"] = "ReceiverIncompatible";
767
767
  })(exports.TransmissionStatus || (exports.TransmissionStatus = {}));
768
768
  (function (ConsultType) {
769
+ ConsultType["FollowUp"] = "FollowUp";
769
770
  ConsultType["Onboard"] = "Onboard";
770
771
  ConsultType["Refill"] = "Refill";
771
772
  })(exports.ConsultType || (exports.ConsultType = {}));