@natch-the-storage/heathershaw-platform-types 1.10.27 → 1.10.29
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 +9 -6
- package/build/validators.js +1 -0
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER"];
|
|
1
2
|
export declare const orderStatusValues: readonly ["RECEIVED", "PROCESSING", "DISPATCHED", "DELIVERED", "COMPLETED"];
|
|
2
3
|
export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
|
|
3
4
|
export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED"];
|
|
@@ -11,6 +12,7 @@ export declare const staffProfileRoleValues: readonly ["STAFF", "ADMIN", "COUNSE
|
|
|
11
12
|
export declare const staffProfileStatusValues: readonly ["ACTIVE", "SUSPENDED"];
|
|
12
13
|
export declare const auStatesValues: string[];
|
|
13
14
|
export declare const discountTierValues: number[];
|
|
15
|
+
export type OrderFulfillment = (typeof orderFulfillmentValues)[number];
|
|
14
16
|
export type OrderStatus = (typeof orderStatusValues)[number];
|
|
15
17
|
export type PaperScriptReminderStatus = (typeof paperScriptReminderStatusValues)[number];
|
|
16
18
|
export type QuoteStatus = (typeof quoteStatusValues)[number];
|
|
@@ -144,11 +146,7 @@ export interface Order {
|
|
|
144
146
|
partnerPharmacyProfileId?: number | null;
|
|
145
147
|
patientRecordId?: number | null;
|
|
146
148
|
directUserProfileId?: number | null;
|
|
147
|
-
address:
|
|
148
|
-
type: string;
|
|
149
|
-
name: string;
|
|
150
|
-
address: string;
|
|
151
|
-
};
|
|
149
|
+
address: OrderAddress;
|
|
152
150
|
trackingNumber?: string;
|
|
153
151
|
status: string;
|
|
154
152
|
store?: string;
|
|
@@ -176,10 +174,15 @@ export interface Order {
|
|
|
176
174
|
requiredDate: string;
|
|
177
175
|
draft: boolean;
|
|
178
176
|
}
|
|
179
|
-
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created'> & {
|
|
177
|
+
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft'> & {
|
|
180
178
|
draft?: boolean;
|
|
181
179
|
};
|
|
182
180
|
export type OrderUpdate = Partial<Order>;
|
|
181
|
+
export interface OrderAddress {
|
|
182
|
+
type: OrderFulfillment;
|
|
183
|
+
name: string;
|
|
184
|
+
address: string;
|
|
185
|
+
}
|
|
183
186
|
export interface PaperScriptReminder {
|
|
184
187
|
id: number;
|
|
185
188
|
orderId?: number;
|
package/build/validators.js
CHANGED