@natch-the-storage/heathershaw-platform-types 1.11.7 → 1.11.8

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.
@@ -1,3 +1,8 @@
1
+ export declare const cDProductCategoryValues: string[];
2
+ export declare const CDProductCategoriesIdLabel: {
3
+ id: string;
4
+ label: CDProductCategory;
5
+ }[];
1
6
  export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
2
7
  export declare const orderStatusValues: readonly ["RECEIVED", "PROCESSING", "DISPATCHED", "DELIVERED", "COMPLETED"];
3
8
  export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
@@ -12,6 +17,7 @@ export declare const staffProfileRoleValues: readonly ["STAFF", "ADMIN", "COUNSE
12
17
  export declare const staffProfileStatusValues: readonly ["ACTIVE", "SUSPENDED"];
13
18
  export declare const auStatesValues: string[];
14
19
  export declare const discountTierValues: number[];
20
+ export type CDProductCategory = (typeof cDProductCategoryValues)[number];
15
21
  export type OrderFulfillment = (typeof orderFulfillmentValues)[number];
16
22
  export type OrderStatus = (typeof orderStatusValues)[number];
17
23
  export type PaperScriptReminderStatus = (typeof paperScriptReminderStatusValues)[number];
@@ -624,6 +630,14 @@ export interface CDFormulationList {
624
630
  infoUrl: string;
625
631
  isSignedOff: boolean;
626
632
  }
633
+ export type CDProduct = Omit<CDFormulation, 'pricing'> & Omit<CDScriptPriceOption, 'id'> & {
634
+ pricingId: number;
635
+ category: CDProductCategory;
636
+ };
637
+ export declare const CDProductFormsIdLabels: {
638
+ id: string;
639
+ label: string;
640
+ }[];
627
641
  export interface CDPriceOptionUpdate {
628
642
  formulationPriceId: number;
629
643
  formulationId: number;
@@ -1,4 +1,8 @@
1
1
  //#region Enum value arrays ──────────────────────────────────────────────────────────
2
+ export const cDProductCategoryValues = ['OTC', 'Schedule 4', 'Schedule 8'];
3
+ export const CDProductCategoriesIdLabel = cDProductCategoryValues.map((v) => {
4
+ return { id: v, label: v === 'schedule_1' ? 'OTC' : v.replace('_', ' ') };
5
+ });
2
6
  export const orderFulfillmentValues = [
3
7
  'PICKUP',
4
8
  'POST',
@@ -124,6 +128,26 @@ export const CompoundDirectAnimalId = {
124
128
  other: { id: 25, name: 'N/A' },
125
129
  };
126
130
  export const AnimalSpeciesKeys = Object.keys(CompoundDirectAnimalId);
131
+ export const CDProductFormsIdLabels = [
132
+ { id: 'capsule', label: 'Capsules' },
133
+ { id: 'oral liquid', label: 'Oral liquids / suspensions' },
134
+ { id: 'suppository', label: 'Suppositories' },
135
+ { id: 'ointment', label: 'Ointments' },
136
+ { id: 'topical liquid', label: 'Topical Liquids' },
137
+ { id: 'scooped powder', label: 'Scooped Powders' },
138
+ { id: 'cream', label: 'Creams' },
139
+ { id: 'troche', label: 'Troches / lozenges' },
140
+ { id: 'pessary', label: 'Pessaries' },
141
+ { id: 'gummy', label: 'Gummies' },
142
+ { id: 'gel', label: 'Gels' },
143
+ { id: 'lotion', label: 'Lotions' },
144
+ { id: 'patch', label: 'Transdermal patches' },
145
+ { id: 'nasal spray', label: 'Nasal sprays' },
146
+ { id: 'vaginal', label: 'Vaginal creams / gels' },
147
+ { id: 'drop', label: 'Drops' },
148
+ { id: 'spray', label: 'Sprays' },
149
+ { id: 'tablet', label: 'Tablets' },
150
+ ];
127
151
  //#endregion ──────────────────────────────────────────────────────────────────────
128
152
  //#region contact form ────────────────────────────────────────────────────────────
129
153
  export const parseCategory = (category) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.11.7",
3
+ "version": "1.11.8",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",