@natch-the-storage/heathershaw-platform-types 1.10.8 → 1.10.9
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 +20 -0
- package/build/validators.js +8 -3
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -245,6 +245,24 @@ export interface PartnerPharmacyProfileReportData {
|
|
|
245
245
|
patientRecordCount: number;
|
|
246
246
|
pendingPaperScripts: number;
|
|
247
247
|
}
|
|
248
|
+
export type PartnerPharmacyProfileDetailed = PartnerPharmacyProfile & {
|
|
249
|
+
status: boolean | null;
|
|
250
|
+
patients: PatientRecord[];
|
|
251
|
+
orders: Order[];
|
|
252
|
+
priceMatches: PriceMatch[];
|
|
253
|
+
quotes: Quote[];
|
|
254
|
+
};
|
|
255
|
+
export type PartnerPharmacyProfileSummary = {
|
|
256
|
+
id: number;
|
|
257
|
+
userId: string;
|
|
258
|
+
pharmacyName: string;
|
|
259
|
+
discountTier: number;
|
|
260
|
+
paymentMode: PaymentModeAtOrder;
|
|
261
|
+
patientsCount: number;
|
|
262
|
+
ordersCount: number;
|
|
263
|
+
lastOrderDate: string | null;
|
|
264
|
+
status: boolean | null;
|
|
265
|
+
};
|
|
248
266
|
export interface PatientRecord {
|
|
249
267
|
id: number;
|
|
250
268
|
partnerPharmacyProfileId?: number | null;
|
|
@@ -728,8 +746,10 @@ export declare const ApiRoutes: {
|
|
|
728
746
|
};
|
|
729
747
|
partnerPharmacyProfiles: {
|
|
730
748
|
list: string;
|
|
749
|
+
getSummaries: string;
|
|
731
750
|
get: (id: number) => string;
|
|
732
751
|
getByUser: (userId: string) => string;
|
|
752
|
+
getDetailed: (id: number) => string;
|
|
733
753
|
create: string;
|
|
734
754
|
update: string;
|
|
735
755
|
delete: (id: number) => string;
|
package/build/validators.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region Enum value arrays ──────────────────────────────────────────────────────────
|
|
2
2
|
export const paperScriptReminderStatusValues = [
|
|
3
3
|
'PENDING',
|
|
4
4
|
'RECEIVED',
|
|
@@ -27,7 +27,8 @@ export const staffProfileRoleValues = [
|
|
|
27
27
|
'COMPOUNDING',
|
|
28
28
|
];
|
|
29
29
|
export const staffProfileStatusValues = ['ACTIVE', 'SUSPENDED'];
|
|
30
|
-
|
|
30
|
+
//#endregion ──────────────────────────────────────────────────────────────────────
|
|
31
|
+
//#region compound direct ────────────────────────────────────────────────────────────
|
|
31
32
|
export const CompoundDirectAnimalId = {
|
|
32
33
|
dog: { id: 1, name: 'Dog' },
|
|
33
34
|
cat: { id: 2, name: 'Cat' },
|
|
@@ -56,7 +57,8 @@ export const CompoundDirectAnimalId = {
|
|
|
56
57
|
other: { id: 25, name: 'N/A' },
|
|
57
58
|
};
|
|
58
59
|
export const AnimalSpeciesKeys = Object.keys(CompoundDirectAnimalId);
|
|
59
|
-
|
|
60
|
+
//#endregion ──────────────────────────────────────────────────────────────────────
|
|
61
|
+
//#region contact form ────────────────────────────────────────────────────────────
|
|
60
62
|
export const parseCategory = (category) => {
|
|
61
63
|
switch (category) {
|
|
62
64
|
case 'orderOrDelivery':
|
|
@@ -71,6 +73,7 @@ export const parseCategory = (category) => {
|
|
|
71
73
|
return 'General';
|
|
72
74
|
}
|
|
73
75
|
};
|
|
76
|
+
//#endregion ──────────────────────────────────────────────────────────────────────
|
|
74
77
|
export const BucketObjects = {
|
|
75
78
|
dev: {
|
|
76
79
|
emailLogo: {
|
|
@@ -146,8 +149,10 @@ export const ApiRoutes = {
|
|
|
146
149
|
},
|
|
147
150
|
partnerPharmacyProfiles: {
|
|
148
151
|
list: '/api/profiles/partner-pharmacies',
|
|
152
|
+
getSummaries: '/api/profiles/partner-pharmacies/summaries',
|
|
149
153
|
get: (id) => `/api/profiles/partner-pharmacies/${id}`,
|
|
150
154
|
getByUser: (userId) => `/api/profiles/partner-pharmacies/users/${userId}`,
|
|
155
|
+
getDetailed: (id) => `/api/profiles/partner-pharmacies/${id}/detailed-profiles`,
|
|
151
156
|
create: '/api/profiles/partner-pharmacies',
|
|
152
157
|
update: '/api/profiles/partner-pharmacies',
|
|
153
158
|
delete: (id) => `/api/profiles/partner-pharmacies/${id}`,
|