@natch-the-storage/heathershaw-platform-types 1.10.26 → 1.10.28
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 +12 -7
- package/build/validators.js +17 -11
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare const orderStatusValues: readonly ["
|
|
1
|
+
export declare const orderStatusValues: readonly ["RECEIVED", "PROCESSING", "DISPATCHED", "DELIVERED", "COMPLETED"];
|
|
2
2
|
export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
|
|
3
3
|
export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED"];
|
|
4
|
-
export declare const paymentModeAtOrderValues: readonly ["
|
|
5
|
-
export declare const partnerPharmacyPaymentModeValues: readonly ["
|
|
4
|
+
export declare const paymentModeAtOrderValues: readonly ["ONLINE", "INVOICE", "POS"];
|
|
5
|
+
export declare const partnerPharmacyPaymentModeValues: readonly ["INVOICE", "POS"];
|
|
6
6
|
export declare const paymentStatusValues: readonly ["AWAITING_PAYMENT", "PAID", "PENDING_INVOICE"];
|
|
7
7
|
export declare const repeatStorageValues: readonly ["HEATHERSHAWS", "PHARMACY", "PATIENT"];
|
|
8
|
-
export declare const scriptTypeValues: readonly ["
|
|
9
|
-
export declare const shippingTypeValues: readonly ["STANDARD", "COLD_CHAIN"];
|
|
10
|
-
export declare const staffProfileRoleValues: readonly ["STAFF", "ADMIN", "COUNSELLING", "
|
|
8
|
+
export declare const scriptTypeValues: readonly ["ERX", "PAPER"];
|
|
9
|
+
export declare const shippingTypeValues: readonly ["STANDARD", "COLD_CHAIN", "SAME_DAY_COURIER"];
|
|
10
|
+
export declare const staffProfileRoleValues: readonly ["STAFF", "ADMIN", "COUNSELLING", "SALES_REP", "ALT_THERAPIES", "COMPOUNDING"];
|
|
11
11
|
export declare const staffProfileStatusValues: readonly ["ACTIVE", "SUSPENDED"];
|
|
12
12
|
export declare const auStatesValues: string[];
|
|
13
13
|
export declare const discountTierValues: number[];
|
|
@@ -174,8 +174,12 @@ export interface Order {
|
|
|
174
174
|
hubspotContactId?: string;
|
|
175
175
|
created: string;
|
|
176
176
|
requiredDate: string;
|
|
177
|
+
draft: boolean;
|
|
177
178
|
}
|
|
178
|
-
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created'
|
|
179
|
+
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft'> & {
|
|
180
|
+
draft?: boolean;
|
|
181
|
+
};
|
|
182
|
+
export type OrderUpdate = Partial<Order>;
|
|
179
183
|
export interface PaperScriptReminder {
|
|
180
184
|
id: number;
|
|
181
185
|
orderId?: number;
|
|
@@ -668,6 +672,7 @@ export declare const ApiRoutes: {
|
|
|
668
672
|
partnerPharmacyProfileId?: number;
|
|
669
673
|
directUserProfileId?: number;
|
|
670
674
|
patientRecordId?: number;
|
|
675
|
+
draft?: boolean;
|
|
671
676
|
page?: number;
|
|
672
677
|
limit?: number;
|
|
673
678
|
}) => string;
|
package/build/validators.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//#region Enum value arrays ──────────────────────────────────────────────────────────
|
|
2
2
|
export const orderStatusValues = [
|
|
3
|
-
'
|
|
4
|
-
'
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'
|
|
3
|
+
'RECEIVED',
|
|
4
|
+
'PROCESSING',
|
|
5
|
+
'DISPATCHED',
|
|
6
|
+
'DELIVERED',
|
|
7
|
+
'COMPLETED',
|
|
8
8
|
];
|
|
9
9
|
export const paperScriptReminderStatusValues = [
|
|
10
10
|
'PENDING',
|
|
@@ -12,8 +12,8 @@ export const paperScriptReminderStatusValues = [
|
|
|
12
12
|
'ESCALATED',
|
|
13
13
|
];
|
|
14
14
|
export const quoteStatusValues = ['PENDING', 'PROCESSING', 'RESOLVED'];
|
|
15
|
-
export const paymentModeAtOrderValues = ['
|
|
16
|
-
export const partnerPharmacyPaymentModeValues = ['
|
|
15
|
+
export const paymentModeAtOrderValues = ['ONLINE', 'INVOICE', 'POS'];
|
|
16
|
+
export const partnerPharmacyPaymentModeValues = ['INVOICE', 'POS'];
|
|
17
17
|
export const paymentStatusValues = [
|
|
18
18
|
'AWAITING_PAYMENT',
|
|
19
19
|
'PAID',
|
|
@@ -24,14 +24,18 @@ export const repeatStorageValues = [
|
|
|
24
24
|
'PHARMACY',
|
|
25
25
|
'PATIENT',
|
|
26
26
|
];
|
|
27
|
-
export const scriptTypeValues = ['
|
|
28
|
-
export const shippingTypeValues = [
|
|
27
|
+
export const scriptTypeValues = ['ERX', 'PAPER'];
|
|
28
|
+
export const shippingTypeValues = [
|
|
29
|
+
'STANDARD',
|
|
30
|
+
'COLD_CHAIN',
|
|
31
|
+
'SAME_DAY_COURIER',
|
|
32
|
+
];
|
|
29
33
|
export const staffProfileRoleValues = [
|
|
30
34
|
'STAFF',
|
|
31
35
|
'ADMIN',
|
|
32
36
|
'COUNSELLING',
|
|
33
|
-
'
|
|
34
|
-
'
|
|
37
|
+
'SALES_REP',
|
|
38
|
+
'ALT_THERAPIES',
|
|
35
39
|
'COMPOUNDING',
|
|
36
40
|
];
|
|
37
41
|
export const staffProfileStatusValues = ['ACTIVE', 'SUSPENDED'];
|
|
@@ -189,6 +193,8 @@ export const ApiRoutes = {
|
|
|
189
193
|
params.set('page', String(filters.page));
|
|
190
194
|
if (filters?.limit)
|
|
191
195
|
params.set('limit', String(filters.limit));
|
|
196
|
+
if (filters?.draft)
|
|
197
|
+
params.set('draft', String(filters.draft));
|
|
192
198
|
const query = params.toString();
|
|
193
199
|
return `/api/orders${query ? `?${query}` : ''}`;
|
|
194
200
|
},
|