@natch-the-storage/heathershaw-platform-types 1.10.2 → 1.10.4

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.
@@ -5,7 +5,7 @@ export declare const paymentStatusValues: readonly ["AWAITING_PAYMENT", "PAID",
5
5
  export declare const repeatStorageValues: readonly ["HEATHERSHAWS", "PHARMACY", "PATIENT"];
6
6
  export declare const scriptTypeValues: readonly ["eRx", "PAPER"];
7
7
  export declare const shippingTypeValues: readonly ["STANDARD", "COLD_CHAIN"];
8
- export declare const staffProfileRoleValues: readonly ["ACTIVE", "SUSPENDED"];
8
+ export declare const staffProfileRoleValues: readonly ["ADMIN", "STAFF"];
9
9
  export declare const staffProfileStatusValues: readonly ["ACTIVE", "SUSPENDED"];
10
10
  export type PaperScriptReminderStatus = (typeof paperScriptReminderStatusValues)[number];
11
11
  export type QuoteStatus = (typeof quoteStatusValues)[number];
@@ -689,7 +689,7 @@ export declare const ApiRoutes: {
689
689
  limit?: number;
690
690
  }) => string;
691
691
  get: (id: number) => string;
692
- getSummary: (date: Date) => string;
692
+ getSummary: (date: string) => string;
693
693
  create: string;
694
694
  update: string;
695
695
  delete: (id: number) => string;
@@ -18,7 +18,7 @@ export const repeatStorageValues = [
18
18
  ];
19
19
  export const scriptTypeValues = ['eRx', 'PAPER'];
20
20
  export const shippingTypeValues = ['STANDARD', 'COLD_CHAIN'];
21
- export const staffProfileRoleValues = ['ACTIVE', 'SUSPENDED'];
21
+ export const staffProfileRoleValues = ['ADMIN', 'STAFF'];
22
22
  export const staffProfileStatusValues = ['ACTIVE', 'SUSPENDED'];
23
23
  // ─── Compound Direct ────────────────────────────────────────────────────────────
24
24
  export const CompoundDirectAnimalId = {
@@ -125,7 +125,7 @@ export const ApiRoutes = {
125
125
  return `/api/orders${query ? `?${query}` : ''}`;
126
126
  },
127
127
  get: (id) => `/api/orders/${id}`,
128
- getSummary: (date) => `/api/orders/summary`,
128
+ getSummary: (date) => `/api/orders/summary${date ? '?date=' + date : ''}`,
129
129
  create: '/api/orders',
130
130
  update: '/api/orders',
131
131
  delete: (id) => `/api/orders/${id}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.10.2",
3
+ "version": "1.10.4",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",