@natch-the-storage/heathershaw-platform-types 1.17.7 → 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.
@@ -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;
@@ -625,7 +628,7 @@ export interface CDScript {
625
628
  supplyNumber: number;
626
629
  ePrescription?: {
627
630
  type: string;
628
- isETP2: boolean; /** If true, indicates this is an eRx script, if false or undefined, assume it is a paper script */
631
+ isETP2?: boolean; /** If true, indicates this is an eRx script, if false or undefined, assume it is a paper script */
629
632
  };
630
633
  };
631
634
  formulation: {
@@ -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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.17.7",
3
+ "version": "1.17.9",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",