@natch-the-storage/heathershaw-platform-types 1.17.8 → 1.17.9
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 +3 -0
- package/build/validators.js +4 -0
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const cDProductCategoryIdValues: readonly ["schedule_1", "schedul
|
|
|
3
3
|
export declare const logItemTypeValues: readonly ["CREATED", "CREATED_PAID", "UPDATED", "UPDATED_DRAFT", "MARKED_FOR_PICKUP", "CANCELLED", "PAYMENT_LINK_PHONE", "PAYMENT_LINK_EMAIL", "PAYMENT_LINK_BOTH", "PARTNER_ORDERED_INVOICE", "PARTNER_ORDERED_POS", "PAID", "MARKED_PAID", "PAYMENT_LINK_PAID"];
|
|
4
4
|
export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
|
|
5
5
|
export declare const orderStatusValues: readonly ["TO_REVIEW", "AWAITING_PICKUP", "POSTED", "IN_TRANSIT", "DELIVERED", "COLLECTED", "CANCELLED"];
|
|
6
|
+
export declare const orderTypeValues: readonly ["CG", "MC"];
|
|
6
7
|
export declare const patientRecordSubAccountRelationshipValues: readonly ["Child", "Spouse", "Parent", "Pet", "Other"];
|
|
7
8
|
export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
|
|
8
9
|
export declare const quoteStatusValues: readonly ["PENDING", "RESOLVED", "DECLINED"];
|
|
@@ -22,6 +23,7 @@ export type CDProductCategoryLabel = (typeof cDProductCategoryLabelValues)[numbe
|
|
|
22
23
|
export type LogItemType = (typeof logItemTypeValues)[number];
|
|
23
24
|
export type OrderFulfillment = (typeof orderFulfillmentValues)[number];
|
|
24
25
|
export type OrderStatus = (typeof orderStatusValues)[number];
|
|
26
|
+
export type OrderType = (typeof orderTypeValues)[number];
|
|
25
27
|
export type PaperScriptReminderStatus = (typeof paperScriptReminderStatusValues)[number];
|
|
26
28
|
export type PatientRecordSubAccountRelationship = (typeof patientRecordSubAccountRelationshipValues)[number];
|
|
27
29
|
export type QuoteStatus = (typeof quoteStatusValues)[number];
|
|
@@ -186,6 +188,7 @@ export interface Order {
|
|
|
186
188
|
patientRecordId?: number | null;
|
|
187
189
|
directUserProfileId?: number | null;
|
|
188
190
|
for: string;
|
|
191
|
+
type: OrderType;
|
|
189
192
|
address: OrderAddress;
|
|
190
193
|
trackingNumber?: string;
|
|
191
194
|
status: OrderStatus;
|
package/build/validators.js
CHANGED
|
@@ -43,6 +43,10 @@ export const orderStatusValues = [
|
|
|
43
43
|
'COLLECTED', // terminal
|
|
44
44
|
'CANCELLED', // terminal
|
|
45
45
|
];
|
|
46
|
+
export const orderTypeValues = [
|
|
47
|
+
'CG' /** compounding order */,
|
|
48
|
+
'MC' /** cannabis order */,
|
|
49
|
+
];
|
|
46
50
|
export const patientRecordSubAccountRelationshipValues = [
|
|
47
51
|
'Child',
|
|
48
52
|
'Spouse',
|