@natch-the-storage/heathershaw-platform-types 1.14.0 → 1.14.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.
@@ -8,6 +8,7 @@ export declare const paymentModeAtOrderValues: readonly ["ONLINE", "INVOICE", "P
8
8
  export declare const partnerPharmacyPaymentModeValues: readonly ["INVOICE", "POS"];
9
9
  export declare const paymentStatusValues: readonly ["AWAITING_PAYMENT", "PAID", "PENDING_INVOICE"];
10
10
  export declare const repeatStorageValues: readonly ["HEATHERSHAWS", "PHARMACY", "PATIENT"];
11
+ export declare const scriptStatusValues: readonly ["PENDING", "PROCESSED"];
11
12
  export declare const scriptTypeValues: readonly ["ERX", "PAPER"];
12
13
  export declare const shippingTypeValues: readonly ["STANDARD", "COLD_CHAIN", "SAME_DAY_COURIER"];
13
14
  export declare const staffProfileRoleValues: readonly ["STAFF", "ADMIN", "COUNSELLING", "SALES_REP", "ALT_THERAPIES", "COMPOUNDING"];
@@ -24,6 +25,7 @@ export type PaymentModeAtOrder = (typeof paymentModeAtOrderValues)[number];
24
25
  export type PartnerPharmacyPaymentMode = (typeof partnerPharmacyPaymentModeValues)[number];
25
26
  export type PaymentStatus = (typeof paymentStatusValues)[number];
26
27
  export type RepeatStorage = (typeof repeatStorageValues)[number];
28
+ export type ScriptStatus = (typeof scriptTypeValues)[number];
27
29
  export type ScriptType = (typeof scriptTypeValues)[number];
28
30
  export type ShippingType = (typeof shippingTypeValues)[number];
29
31
  export type StaffProfileRole = (typeof staffProfileRoleValues)[number];
@@ -32,7 +34,7 @@ export type AuStates = (typeof auStatesValues)[number];
32
34
  export type DiscountTiers = (typeof discountTierValues)[number];
33
35
  export type Pharmacy = {
34
36
  name: string;
35
- address: string;
37
+ address: Address;
36
38
  openingHours: string;
37
39
  tag: string;
38
40
  color: 'default' | 'secondary' | 'alert' | 'warning';
@@ -646,7 +648,7 @@ export type CDProduct = Omit<CDFormulation, 'pricing'> & Omit<CDScriptPriceOptio
646
648
  category: CDProductCategoryId;
647
649
  categoryLabel: CDProductCategoryLabel;
648
650
  };
649
- export declare const CDProductFormsIdLabels: {
651
+ export declare const CDProductForms: {
650
652
  id: string;
651
653
  label: string;
652
654
  }[];
@@ -39,6 +39,7 @@ export const repeatStorageValues = [
39
39
  'PHARMACY',
40
40
  'PATIENT',
41
41
  ];
42
+ export const scriptStatusValues = ['PENDING', 'PROCESSED'];
42
43
  export const scriptTypeValues = ['ERX', 'PAPER'];
43
44
  export const shippingTypeValues = [
44
45
  'STANDARD',
@@ -68,7 +69,12 @@ export const discountTierValues = [0.9, 0.88, 0.875, 0.85, 0.8, 0.75, 0.7];
68
69
  export const PHARMACIES = [
69
70
  {
70
71
  name: 'Malvern Road',
71
- address: '1402 Malvern Road, Glen Iris VIC 3146',
72
+ address: {
73
+ street: '1402 Malvern Road',
74
+ suburb: 'Glen Iris',
75
+ state: 'VIC',
76
+ postcode: '3146',
77
+ },
72
78
  openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
73
79
  tag: 'Compounding',
74
80
  color: 'secondary',
@@ -77,7 +83,12 @@ export const PHARMACIES = [
77
83
  },
78
84
  {
79
85
  name: 'Burke Road',
80
- address: '153 Burke Road, Glen Iris VIC 3146',
86
+ address: {
87
+ street: '153 Burke Road',
88
+ suburb: 'Glen Iris',
89
+ state: 'VIC',
90
+ postcode: '3146',
91
+ },
81
92
  openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
82
93
  tag: 'Since 1926',
83
94
  color: 'default',
@@ -86,7 +97,12 @@ export const PHARMACIES = [
86
97
  },
87
98
  {
88
99
  name: 'High Street',
89
- address: '123 High Street, Malvern VIC 3144',
100
+ address: {
101
+ street: '123 High Street',
102
+ suburb: 'Malvern',
103
+ state: 'VIC',
104
+ postcode: '3144',
105
+ },
90
106
  openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
91
107
  tag: 'Alt. therapies',
92
108
  color: 'secondary',
@@ -95,7 +111,12 @@ export const PHARMACIES = [
95
111
  },
96
112
  {
97
113
  name: 'Wattletree Road',
98
- address: '284 Wattletree Road, Glen Iris VIC 3146',
114
+ address: {
115
+ street: '284 Wattletree Road',
116
+ suburb: 'Glen Iris',
117
+ state: 'VIC',
118
+ postcode: '3146',
119
+ },
99
120
  openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
100
121
  tag: 'Newest',
101
122
  color: 'alert',
@@ -136,7 +157,7 @@ export const CompoundDirectAnimalId = {
136
157
  other: { id: 25, name: 'N/A' },
137
158
  };
138
159
  export const AnimalSpeciesKeys = Object.keys(CompoundDirectAnimalId);
139
- export const CDProductFormsIdLabels = [
160
+ export const CDProductForms = [
140
161
  { id: 'capsule', label: 'Capsules' },
141
162
  { id: 'oral liquid', label: 'Oral liquids / suspensions' },
142
163
  { id: 'suppository', label: 'Suppositories' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.14.0",
3
+ "version": "1.14.2",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",