oro-sdk-apis 1.7.1 → 1.8.2
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/dist/models/diagnosis.d.ts +4 -0
- package/dist/models/guard.d.ts +2 -2
- package/dist/models/practice.d.ts +16 -2
- package/dist/oro-sdk-apis.cjs.development.js +6 -20
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +6 -20
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/guard.d.ts +0 -1
- package/package.json +1 -1
- package/src/models/diagnosis.ts +4 -0
- package/src/models/guard.ts +2 -3
- package/src/models/practice.ts +13 -0
- package/src/services/guard.ts +38 -47
|
@@ -81,6 +81,8 @@ export interface TreatmentPlan {
|
|
|
81
81
|
uuidTreatment?: string;
|
|
82
82
|
notes?: string;
|
|
83
83
|
status: PlanStatus;
|
|
84
|
+
decidedAt: string;
|
|
85
|
+
createdAt: string;
|
|
84
86
|
}
|
|
85
87
|
export interface DrugPrescription {
|
|
86
88
|
prescription: Prescription;
|
|
@@ -92,6 +94,8 @@ export interface TreatmentAndDrugPrescription {
|
|
|
92
94
|
notes?: string;
|
|
93
95
|
status: PlanStatus;
|
|
94
96
|
uuidTreatmentPlan: string;
|
|
97
|
+
decidedAt: string;
|
|
98
|
+
createdAt: string;
|
|
95
99
|
}
|
|
96
100
|
export interface TreatmentPlans {
|
|
97
101
|
uuidConsult: string;
|
package/dist/models/guard.d.ts
CHANGED
|
@@ -58,8 +58,8 @@ export interface IdentityResponse {
|
|
|
58
58
|
publicKey: Base64String;
|
|
59
59
|
recoveryLogin?: Uuid;
|
|
60
60
|
recoveryPassword: Base64String;
|
|
61
|
-
recoveryMasterKey
|
|
62
|
-
recoverySecurityQuestions
|
|
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;
|
|
@@ -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
|
-
|
|
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
|
|
2059
|
-
|
|
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
|
|
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
|
-
|
|
2174
|
+
Accept: 'application/json'
|
|
2189
2175
|
}
|
|
2190
2176
|
}));
|
|
2191
2177
|
|