@natch-the-storage/heathershaw-platform-types 1.9.2 → 1.9.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.
@@ -41,7 +41,7 @@ export interface ScriptSelect {
41
41
  fileKey?: string | null;
42
42
  }
43
43
  export interface LineItem {
44
- id: number;
44
+ id: string;
45
45
  name: string;
46
46
  quantity: number;
47
47
  price: number;
@@ -274,14 +274,16 @@ export interface PatientRecordCreate {
274
274
  }
275
275
  export interface PriceMatch {
276
276
  id: number;
277
- partnerPharmacyProfileId?: number;
277
+ partnerPharmacyProfileId: number;
278
278
  itemId: number;
279
- overridePrice: string;
279
+ pricingId: number;
280
+ overridePrice: number;
280
281
  }
281
282
  export interface PriceMatchCreate {
282
283
  partnerPharmacyProfileId: number;
283
284
  itemId: number;
284
- overridePrice: string;
285
+ pricingId: number;
286
+ overridePrice: number;
285
287
  }
286
288
  export interface Quote {
287
289
  id: number;
@@ -348,6 +350,10 @@ export interface PaperScriptCreate {
348
350
  partnerPharmacyProfileId?: number;
349
351
  fileKey: string;
350
352
  }
353
+ export interface getScriptsQuery {
354
+ patientRecordId?: number;
355
+ partnerPharmacyProfileId?: number;
356
+ }
351
357
  export interface Cart {
352
358
  id: number;
353
359
  directUserProfileId?: number;
@@ -464,6 +470,7 @@ export declare const CompoundDirectAnimalId: {
464
470
  };
465
471
  export declare const AnimalSpeciesKeys: [keyof typeof CompoundDirectAnimalId, ...(keyof typeof CompoundDirectAnimalId)[]];
466
472
  export interface CDScriptPriceOption {
473
+ id: number;
467
474
  quantity: number;
468
475
  price: number;
469
476
  }
@@ -503,6 +510,7 @@ export interface CDScript {
503
510
  name: string;
504
511
  price: number;
505
512
  quantity: number;
513
+ createdDate: string;
506
514
  originalScript: {
507
515
  draftScriptId: number;
508
516
  };
@@ -542,10 +550,9 @@ export interface CDCustomerCreate {
542
550
  animalOwnerName?: string;
543
551
  }
544
552
  export interface CDCustomerSearch {
545
- name: string;
546
- dateOfBirth: string;
547
- email?: string;
548
- phone: string;
553
+ query: string;
554
+ dobStartDate: string;
555
+ dobEndDate: string;
549
556
  }
550
557
  export interface CDFormulation {
551
558
  formulationId: number;
@@ -626,10 +633,8 @@ export declare const ApiRoutes: {
626
633
  };
627
634
  scripts: {
628
635
  list: string;
629
- get: (id: number, filters?: {
630
- partnerPharmacyProfileId?: number;
631
- patientRecordId?: number;
632
- }) => string;
636
+ get: (filters?: getScriptsQuery) => string;
637
+ getById: (id: number) => string;
633
638
  createEscript: string;
634
639
  createPaperScript: string;
635
640
  update: string;
@@ -102,15 +102,16 @@ export const ApiRoutes = {
102
102
  },
103
103
  scripts: {
104
104
  list: '/api/scripts',
105
- get: (id, filters) => {
105
+ get: (filters) => {
106
106
  const params = new URLSearchParams();
107
107
  if (filters?.partnerPharmacyProfileId)
108
108
  params.set('partnerPharmacyProfileId', String(filters.partnerPharmacyProfileId));
109
109
  if (filters?.patientRecordId)
110
110
  params.set('patientRecordId', String(filters.patientRecordId));
111
111
  const query = params.toString();
112
- return `/api/scripts/${id}${query ? `?${query}` : ''}`;
112
+ return `/api/scripts/${query ? `?${query}` : ''}`;
113
113
  },
114
+ getById: (id) => `/api/scripts/${id}`,
114
115
  createEscript: '/api/scripts/escripts',
115
116
  createPaperScript: '/api/scripts/paper-scripts',
116
117
  update: '/api/scripts',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",