@natch-the-storage/heathershaw-platform-types 1.8.3 → 1.8.5
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/build/validators.d.ts +34 -10
- package/build/validators.js +3 -2
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -224,6 +224,11 @@ export interface PartnerPharmacyProfileCreate {
|
|
|
224
224
|
orders?: unknown;
|
|
225
225
|
xeroContactId?: string | null;
|
|
226
226
|
}
|
|
227
|
+
export interface PartnerPharmacyProfileReportData {
|
|
228
|
+
orderCount: number;
|
|
229
|
+
patientRecordCount: number;
|
|
230
|
+
awaitingPatientPayment: number;
|
|
231
|
+
}
|
|
227
232
|
export interface PatientRecord {
|
|
228
233
|
id: number;
|
|
229
234
|
partnerPharmacyProfileId?: number | null;
|
|
@@ -299,22 +304,26 @@ export interface ProductCreate {
|
|
|
299
304
|
}
|
|
300
305
|
export interface Quote {
|
|
301
306
|
id: number;
|
|
302
|
-
status
|
|
303
|
-
partnerPharmacyProfileId
|
|
304
|
-
name
|
|
305
|
-
strength
|
|
306
|
-
form
|
|
307
|
-
quantity
|
|
308
|
-
|
|
307
|
+
status: QuoteStatus;
|
|
308
|
+
partnerPharmacyProfileId: number;
|
|
309
|
+
name: string;
|
|
310
|
+
strength: string;
|
|
311
|
+
form: string;
|
|
312
|
+
quantity: string;
|
|
313
|
+
details?: string;
|
|
314
|
+
token?: string;
|
|
315
|
+
fileKey?: string;
|
|
309
316
|
}
|
|
310
317
|
export interface QuoteCreate {
|
|
318
|
+
status?: QuoteStatus;
|
|
311
319
|
partnerPharmacyProfileId: number;
|
|
312
320
|
name: string;
|
|
313
321
|
strength: string;
|
|
314
322
|
form: string;
|
|
315
|
-
quantity:
|
|
316
|
-
|
|
317
|
-
|
|
323
|
+
quantity: string;
|
|
324
|
+
details?: string;
|
|
325
|
+
token?: string;
|
|
326
|
+
fileKey?: string;
|
|
318
327
|
}
|
|
319
328
|
export interface RepeatReminder {
|
|
320
329
|
id: number;
|
|
@@ -561,6 +570,7 @@ export interface CDFormulation {
|
|
|
561
570
|
capsuleSize: string;
|
|
562
571
|
unit: string;
|
|
563
572
|
dosageFormRouteOfAdministration: string;
|
|
573
|
+
dosageFormName: string;
|
|
564
574
|
enableRiskAssessment: boolean;
|
|
565
575
|
standardInstructions: string;
|
|
566
576
|
infoUrl: string;
|
|
@@ -574,6 +584,19 @@ export interface CDFormulation {
|
|
|
574
584
|
pricing: CDScriptPriceOption[];
|
|
575
585
|
properties: CDScriptProperties[];
|
|
576
586
|
}
|
|
587
|
+
export interface CDFormulationList {
|
|
588
|
+
formulationId: number;
|
|
589
|
+
name: string;
|
|
590
|
+
quantity: number;
|
|
591
|
+
standardExpiryDays: number;
|
|
592
|
+
unit: string;
|
|
593
|
+
dosageFormName: string;
|
|
594
|
+
dosageFormRouteOfAdministration: string;
|
|
595
|
+
enableRiskAssessment: boolean;
|
|
596
|
+
standardInstructions: string;
|
|
597
|
+
infoUrl: string;
|
|
598
|
+
isSignedOff: boolean;
|
|
599
|
+
}
|
|
577
600
|
export declare const parseCategory: (category: string) => "Order or delivery" | "Prescription" | "Profile or account" | "Compounding" | "General";
|
|
578
601
|
export interface ContactFormInternalCreate {
|
|
579
602
|
category: string;
|
|
@@ -677,6 +700,7 @@ export declare const ApiRoutes: {
|
|
|
677
700
|
create: string;
|
|
678
701
|
update: string;
|
|
679
702
|
delete: (id: number) => string;
|
|
703
|
+
getReportData: (id: number) => string;
|
|
680
704
|
};
|
|
681
705
|
users: {
|
|
682
706
|
data: (userId: string) => string;
|
package/build/validators.js
CHANGED
|
@@ -153,8 +153,8 @@ export const ApiRoutes = {
|
|
|
153
153
|
directUserProfiles: {
|
|
154
154
|
list: '/api/profiles/direct-users',
|
|
155
155
|
get: (id) => `/api/profiles/direct-users/${id}`,
|
|
156
|
-
getByUser: (userId) => `/api/profiles/direct-users/
|
|
157
|
-
getOrders: (userId) => `/api/profiles/direct-users/
|
|
156
|
+
getByUser: (userId) => `/api/profiles/direct-users/users/${userId}`,
|
|
157
|
+
getOrders: (userId) => `/api/profiles/direct-users/users/${userId}/orders`,
|
|
158
158
|
create: '/api/profiles/direct-users',
|
|
159
159
|
onboard: (userId) => `/api/profiles/direct-users/${userId}`,
|
|
160
160
|
update: '/api/profiles/direct-users',
|
|
@@ -167,6 +167,7 @@ export const ApiRoutes = {
|
|
|
167
167
|
create: '/api/profiles/partner-pharmacies',
|
|
168
168
|
update: '/api/profiles/partner-pharmacies',
|
|
169
169
|
delete: (id) => `/api/profiles/partner-pharmacies/${id}`,
|
|
170
|
+
getReportData: (id) => `/api/profiles/partner-pharmacies/${id}/reports`,
|
|
170
171
|
},
|
|
171
172
|
users: {
|
|
172
173
|
data: (userId) => `/api/users/data/${userId}`,
|