oro-sdk-apis 1.8.0 → 1.8.3

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.
@@ -58,8 +58,8 @@ export interface IdentityResponse {
58
58
  publicKey: Base64String;
59
59
  recoveryLogin?: Uuid;
60
60
  recoveryPassword: Base64String;
61
- recoveryMasterKey: Base64String;
62
- recoverySecurityQuestions: SecretShard[];
61
+ recoveryMasterKey?: Base64String;
62
+ recoverySecurityQuestions?: SecretShard[];
63
63
  legal?: LegalData;
64
64
  createdAt?: string;
65
65
  updatedAt?: string;
@@ -104,7 +104,8 @@ export declare enum PracticeConfigKind {
104
104
  PractitionerChatbox = "PractitionerChatbox",
105
105
  PracticeTheme = "PracticeTheme",
106
106
  PracticeLocaleSwitcher = "PracticeLocaleSwitcher",
107
- PracticeCookieBanner = "PracticeCookieBanner"
107
+ PracticeCookieBanner = "PracticeCookieBanner",
108
+ PracticePharmacyPicker = "PracticePharmacyPicker"
108
109
  }
109
110
  export interface PracticeConfig<K, T> {
110
111
  uuidPractice: string;
@@ -127,6 +128,19 @@ export declare type PracticeConfigPractitionerChatbox = PracticeConfig<PracticeC
127
128
  [languageISO639_3: string]: string;
128
129
  };
129
130
  }>;
131
+ export declare type PracticeConfigPracticeOnlinePharmacy = PracticeConfig<PracticeConfigKind.PracticePharmacyPicker, {
132
+ onlinePharmacy?: {
133
+ name: string;
134
+ id: string;
135
+ phones: {
136
+ countryCode: string;
137
+ number: string;
138
+ extension: string | null;
139
+ type: string;
140
+ isTollFree: boolean;
141
+ }[];
142
+ };
143
+ }>;
130
144
  export declare type PracticeConfigPracticeCookieBanner = PracticeConfig<PracticeConfigKind.PracticeCookieBanner, {
131
145
  showCookieBanner?: boolean;
132
146
  policyLink?: string;
@@ -135,7 +149,7 @@ export declare type PracticeConfigPracticeCookieBanner = PracticeConfig<Practice
135
149
  export declare type PracticeConfigPracticeTheme = PracticeConfig<PracticeConfigKind.PracticeTheme, {
136
150
  primaryColor?: string;
137
151
  }>;
138
- export declare type PracticeConfigs = PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeTheme;
152
+ export declare type PracticeConfigs = PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeTheme;
139
153
  export interface PracticeWorkflow {
140
154
  id?: number;
141
155
  uuidPractice: string;
@@ -301,6 +315,7 @@ export interface HydratedPracticeConfigs {
301
315
  [PracticeConfigKind.PracticeTheme]?: PracticeConfigPracticeTheme;
302
316
  [PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher;
303
317
  [PracticeConfigKind.PracticeCookieBanner]?: PracticeConfigPracticeCookieBanner;
318
+ [PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy;
304
319
  }
305
320
  export interface Practice {
306
321
  uuid: string;
@@ -30,6 +30,15 @@ export interface EntryData {
30
30
  className?: string;
31
31
  triggers?: string[];
32
32
  }
33
+ export interface SlideData {
34
+ header: string;
35
+ body: string;
36
+ image?: {
37
+ src: string;
38
+ alt: string;
39
+ };
40
+ icon?: string;
41
+ }
33
42
  export declare enum MetadataCategory {
34
43
  ChildPersonal = "ChildPersonal",
35
44
  Consultation = "Consultation",
@@ -88,6 +97,7 @@ export interface WorkflowData {
88
97
  summaryImageFieldName?: string;
89
98
  summarySymptomsFieldName?: string;
90
99
  selectedAnswers?: SelectedAnswersData;
100
+ walkthroughSlides?: SlideData[];
91
101
  }
92
102
  /**
93
103
  * This interface describes a workflow prepared and ready to be sent to vault
@@ -1382,6 +1382,7 @@ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
1382
1382
  PracticeConfigKind["PracticeTheme"] = "PracticeTheme";
1383
1383
  PracticeConfigKind["PracticeLocaleSwitcher"] = "PracticeLocaleSwitcher";
1384
1384
  PracticeConfigKind["PracticeCookieBanner"] = "PracticeCookieBanner";
1385
+ PracticeConfigKind["PracticePharmacyPicker"] = "PracticePharmacyPicker";
1385
1386
  })(exports.PracticeConfigKind || (exports.PracticeConfigKind = {}));
1386
1387
 
1387
1388
  (function (StripePriceType) {
@@ -1749,7 +1750,6 @@ var GuardService = /*#__PURE__*/function () {
1749
1750
  this.api = api;
1750
1751
  this.baseURL = baseURL;
1751
1752
  this.api.setAuthRefreshFn(this.authRefresh.bind(this));
1752
- this.identityCache = {};
1753
1753
  this.whoAmICache = {};
1754
1754
  }
1755
1755
  /**
@@ -2037,31 +2037,17 @@ var GuardService = /*#__PURE__*/function () {
2037
2037
  /*#__PURE__*/
2038
2038
  function () {
2039
2039
  var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(identityID) {
2040
- var _tokens$accessToken, _tokens$refreshToken;
2041
-
2042
- var tokens, cacheKey;
2043
2040
  return runtime_1.wrap(function _callee6$(_context6) {
2044
2041
  while (1) {
2045
2042
  switch (_context6.prev = _context6.next) {
2046
2043
  case 0:
2047
- tokens = this.api.getTokens();
2048
- cacheKey = ((_tokens$accessToken = tokens.accessToken) != null ? _tokens$accessToken : '') + ((_tokens$refreshToken = tokens.refreshToken) != null ? _tokens$refreshToken : '') + identityID;
2049
-
2050
- if (!(!tokens.accessToken || !this.identityCache[cacheKey])) {
2051
- _context6.next = 6;
2052
- break;
2053
- }
2054
-
2055
- _context6.next = 5;
2044
+ _context6.next = 2;
2056
2045
  return this.api.get(this.baseURL + "/v1/identities/" + identityID);
2057
2046
 
2058
- case 5:
2059
- this.identityCache[cacheKey] = _context6.sent;
2060
-
2061
- case 6:
2062
- return _context6.abrupt("return", this.identityCache[cacheKey]);
2047
+ case 2:
2048
+ return _context6.abrupt("return", _context6.sent);
2063
2049
 
2064
- case 7:
2050
+ case 3:
2065
2051
  case "end":
2066
2052
  return _context6.stop();
2067
2053
  }
@@ -2185,7 +2171,7 @@ var GuardService = /*#__PURE__*/function () {
2185
2171
  };
2186
2172
  return _context9.abrupt("return", this.api.post(this.baseURL + "/v1/identities/" + identityID + "/mfa", req, {
2187
2173
  headers: {
2188
- 'Accept': 'application/json'
2174
+ Accept: 'application/json'
2189
2175
  }
2190
2176
  }));
2191
2177