@natch-the-storage/heathershaw-platform-types 1.10.10 → 1.10.11

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.
@@ -1,3 +1,4 @@
1
+ export declare const orderStatusValues: readonly ["received", "processing", "dispatched", "delivered", "completed"];
1
2
  export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
2
3
  export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED"];
3
4
  export declare const paymentModeAtOrderValues: readonly ["INVOICE", "POS"];
@@ -9,6 +10,7 @@ export declare const staffProfileRoleValues: readonly ["STAFF", "ADMIN", "COUNSE
9
10
  export declare const staffProfileStatusValues: readonly ["ACTIVE", "SUSPENDED"];
10
11
  export declare const auStatesValues: string[];
11
12
  export declare const discountTierValues: number[];
13
+ export type OrderStatus = (typeof orderStatusValues)[number];
12
14
  export type PaperScriptReminderStatus = (typeof paperScriptReminderStatusValues)[number];
13
15
  export type QuoteStatus = (typeof quoteStatusValues)[number];
14
16
  export type PaymentModeAtOrder = (typeof paymentModeAtOrderValues)[number];
@@ -239,9 +241,14 @@ export interface PartnerPharmacyProfileReportData {
239
241
  pendingPaperScripts: number;
240
242
  }
241
243
  export type PartnerPharmacyProfileDetailed = PartnerPharmacyProfile & {
244
+ email: string;
245
+ phoneNumber: string;
242
246
  status: boolean | null;
243
247
  patients: PatientRecord[];
244
- orders: Order[];
248
+ orders: Order & {
249
+ patientFirstName: string;
250
+ patientLastName: string;
251
+ }[];
245
252
  priceMatches: PriceMatch[];
246
253
  quotes: Quote[];
247
254
  };
@@ -250,6 +257,8 @@ export type PartnerPharmacyProfileSummary = Pick<PartnerPharmacyProfile, 'id' |
250
257
  ordersCount: number;
251
258
  lastOrderDate: string | null;
252
259
  status: boolean | null;
260
+ phoneNumber: string;
261
+ email: string;
253
262
  };
254
263
  export interface PatientRecord {
255
264
  id: number;
@@ -1,4 +1,11 @@
1
1
  //#region Enum value arrays ──────────────────────────────────────────────────────────
2
+ export const orderStatusValues = [
3
+ 'received',
4
+ 'processing',
5
+ 'dispatched',
6
+ 'delivered',
7
+ 'completed',
8
+ ];
2
9
  export const paperScriptReminderStatusValues = [
3
10
  'PENDING',
4
11
  'RECEIVED',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.10.10",
3
+ "version": "1.10.11",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",