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

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,8 +1,4 @@
1
1
  export declare const cDProductCategoryValues: string[];
2
- export declare const CDProductCategoriesIdLabel: {
3
- id: string;
4
- label: CDProductCategory;
5
- }[];
6
2
  export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
7
3
  export declare const orderStatusValues: readonly ["RECEIVED", "PROCESSING", "DISPATCHED", "DELIVERED", "COMPLETED"];
8
4
  export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
@@ -32,6 +28,10 @@ export type StaffProfileRole = (typeof staffProfileRoleValues)[number];
32
28
  export type StaffProfileStatus = (typeof staffProfileStatusValues)[number];
33
29
  export type AuStates = (typeof auStatesValues)[number];
34
30
  export type DiscountTiers = (typeof discountTierValues)[number];
31
+ export declare const CDProductCategoriesIdLabel: {
32
+ id: string;
33
+ label: CDProductCategory;
34
+ }[];
35
35
  export type Pharmacy = {
36
36
  name: string;
37
37
  address: string;
@@ -688,6 +688,7 @@ export declare const ApiRoutes: {
688
688
  getDraftScriptById: (id: number) => string;
689
689
  getHouseholdDraftScripts: string;
690
690
  listFormulations: string;
691
+ listProducts: string;
691
692
  getFormulationById: (id: number) => string;
692
693
  updatePriceOptions: string;
693
694
  };
@@ -1,8 +1,5 @@
1
1
  //#region Enum value arrays ──────────────────────────────────────────────────────────
2
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
- });
6
3
  export const orderFulfillmentValues = [
7
4
  'PICKUP',
8
5
  'POST',
@@ -60,6 +57,11 @@ export const auStatesValues = [
60
57
  'NT',
61
58
  ];
62
59
  export const discountTierValues = [0.9, 0.88, 0.875, 0.85, 0.8, 0.75, 0.7];
60
+ //#endregion ──────────────────────────────────────────────────────────────────────
61
+ // #region Functions
62
+ export const CDProductCategoriesIdLabel = cDProductCategoryValues.map((v) => {
63
+ return { id: v, label: v === 'schedule_1' ? 'OTC' : v.replace('_', ' ') };
64
+ });
63
65
  export const PHARMACIES = [
64
66
  {
65
67
  name: 'Malvern Road',
@@ -205,6 +207,7 @@ export const ApiRoutes = {
205
207
  getDraftScriptById: (id) => `/api/compound-direct/draft-scripts/${id}`,
206
208
  getHouseholdDraftScripts: '/api/compound-direct/scripts/households',
207
209
  listFormulations: '/api/compound-direct/formulations',
210
+ listProducts: '/api/compound-direct/products',
208
211
  getFormulationById: (id) => `/api/compound-direct/formulations/${id}`,
209
212
  updatePriceOptions: '/api/compound-direct/formulations/prices',
210
213
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.11.8",
3
+ "version": "1.12.0",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",