@natch-the-storage/heathershaw-platform-types 1.10.24 → 1.10.26

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.
@@ -24,6 +24,16 @@ export type StaffProfileRole = (typeof staffProfileRoleValues)[number];
24
24
  export type StaffProfileStatus = (typeof staffProfileStatusValues)[number];
25
25
  export type AuStates = (typeof auStatesValues)[number];
26
26
  export type DiscountTiers = (typeof discountTierValues)[number];
27
+ export type Pharmacy = {
28
+ name: string;
29
+ address: string;
30
+ openingHours: string;
31
+ tag: string;
32
+ color: 'default' | 'secondary' | 'alert' | 'warning';
33
+ location: string;
34
+ link: string;
35
+ };
36
+ export declare const PHARMACIES: Pharmacy[];
27
37
  export interface Address {
28
38
  street: string;
29
39
  suburb: string;
@@ -315,38 +325,26 @@ export interface Script {
315
325
  id: number;
316
326
  patientRecordId: number;
317
327
  partnerPharmacyProfileId?: number;
318
- uploaded: string;
319
328
  processed: boolean;
320
329
  token?: string | null;
321
330
  fileKey?: string | null;
322
331
  fileName?: string | null;
332
+ created: string;
323
333
  }
324
- export interface AdminScript {
325
- id: number;
326
- patientRecordId: number;
327
- partnerPharmacyProfileId?: number;
328
- uploaded: string;
329
- processed: boolean;
330
- token?: string | null;
331
- fileKey?: string | null;
332
- fileName?: string | null;
334
+ export type AdminScript = Script & {
333
335
  firstName: string;
334
336
  lastName: string;
335
337
  dateOfBirth: string;
336
338
  phone: string;
337
339
  email: string;
338
- }
339
- export interface EScriptCreate {
340
- patientRecordId: number;
341
- partnerPharmacyProfileId?: number;
340
+ };
341
+ export type EScriptCreate = Pick<Script, 'patientRecordId' | 'partnerPharmacyProfileId'> & {
342
342
  token: string;
343
- }
344
- export interface PaperScriptCreate {
345
- patientRecordId: number;
346
- partnerPharmacyProfileId?: number;
343
+ };
344
+ export type PaperScriptCreate = Pick<Script, 'patientRecordId' | 'partnerPharmacyProfileId'> & {
347
345
  fileKey: string;
348
346
  fileName: string;
349
- }
347
+ };
350
348
  export interface getScriptsQuery {
351
349
  patientRecordId?: number;
352
350
  partnerPharmacyProfileId?: number;
@@ -361,24 +359,14 @@ export interface StaffProfile {
361
359
  name: string;
362
360
  status: StaffProfileStatus;
363
361
  }
364
- export interface StaffProfileCreate {
365
- userId: string;
366
- role: StaffProfileRole;
367
- name: string;
368
- status: StaffProfileStatus;
369
- }
362
+ export type StaffProfileCreate = Omit<StaffProfile, 'id'>;
370
363
  /**
371
- * A union of the StaffProfile with the name, username and email fields from the user
364
+ * A union of the StaffProfile with the username and email fields from the user
372
365
  */
373
- export interface StaffProfileWithUser {
374
- id: number;
375
- userId: string;
376
- name: string;
377
- email: string;
366
+ export type StaffProfileWithUser = StaffProfile & {
378
367
  username: string;
379
- role: StaffProfileRole;
380
- status: StaffProfileStatus;
381
- }
368
+ email: string;
369
+ };
382
370
  export interface GetStaffProfilesQuery {
383
371
  page?: number;
384
372
  limit?: number;
@@ -391,11 +379,7 @@ export interface Cart {
391
379
  items: LineItem[];
392
380
  updatedAt: Date;
393
381
  }
394
- export interface CartUpdate {
395
- directUserProfileId?: number;
396
- partnerPharmacyProfileId?: number;
397
- items: LineItem[];
398
- }
382
+ export type CartUpdate = Omit<Cart, 'id' | 'updatedAt'>;
399
383
  export declare const CompoundDirectAnimalId: {
400
384
  readonly dog: {
401
385
  readonly id: 1;
@@ -624,7 +608,7 @@ export interface CDFormulationList {
624
608
  infoUrl: string;
625
609
  isSignedOff: boolean;
626
610
  }
627
- export declare const parseCategory: (category: string) => "Order or delivery" | "Prescription" | "Profile or account" | "Compounding" | "General";
611
+ export declare const parseCategory: (category: string) => "Compounding" | "Order or delivery" | "Prescription" | "Profile or account" | "General";
628
612
  export interface ContactFormInternalCreate {
629
613
  category: string;
630
614
  pharmacyName?: string;
@@ -46,6 +46,44 @@ export const auStatesValues = [
46
46
  'NT',
47
47
  ];
48
48
  export const discountTierValues = [0.9, 0.88, 0.875, 0.85, 0.8, 0.75, 0.7];
49
+ export const PHARMACIES = [
50
+ {
51
+ name: 'Malvern Road',
52
+ address: '1402 Malvern Road, Glen Iris VIC 3146',
53
+ openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
54
+ tag: 'Compounding',
55
+ color: 'secondary',
56
+ location: 'test',
57
+ link: 'https://maps.app.goo.gl/FEFLybPjW3XH7VzZ7',
58
+ },
59
+ {
60
+ name: 'Burke Road',
61
+ address: '153 Burke Road, Glen Iris VIC 3146',
62
+ openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
63
+ tag: 'Since 1926',
64
+ color: 'default',
65
+ location: 'test',
66
+ link: 'https://maps.app.goo.gl/MNL831qc358NoACb9',
67
+ },
68
+ {
69
+ name: 'High Street',
70
+ address: '123 High Street, Malvern VIC 3144',
71
+ openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
72
+ tag: 'Alt. therapies',
73
+ color: 'secondary',
74
+ location: 'test',
75
+ link: 'https://maps.app.goo.gl/yJh72Am8egSSPFyp6',
76
+ },
77
+ {
78
+ name: 'Wattletree Road',
79
+ address: '284 Wattletree Road, Glen Iris VIC 3146',
80
+ openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
81
+ tag: 'Newest',
82
+ color: 'alert',
83
+ location: 'test',
84
+ link: 'https://maps.app.goo.gl/g1wAP1K8R8NCeqL89',
85
+ },
86
+ ];
49
87
  //#endregion ──────────────────────────────────────────────────────────────────────
50
88
  //#region compound direct ────────────────────────────────────────────────────────────
51
89
  export const CompoundDirectAnimalId = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.10.24",
3
+ "version": "1.10.26",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",