@natch-the-storage/heathershaw-platform-types 1.5.1 → 1.5.3

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.
@@ -92,13 +92,11 @@ export interface Sms {
92
92
  export interface DirectUserProfile {
93
93
  id: number;
94
94
  userId?: string;
95
- compoundDirectId?: string | null;
96
95
  remindersEnabled?: boolean;
97
96
  scriptSubmissions?: ScriptSelect[];
98
97
  }
99
98
  export interface DirectUserProfileCreate {
100
99
  userId: string;
101
- compoundDirectId?: string | null;
102
100
  remindersEnabled?: boolean;
103
101
  scriptSubmissions?: ScriptSelect[];
104
102
  }
@@ -191,6 +189,7 @@ export interface PatientRecord {
191
189
  id: number;
192
190
  partnerPharmacyProfileId?: number | null;
193
191
  directUserProfileId?: number | null;
192
+ compoundDirectId?: number | null;
194
193
  userId?: string | null;
195
194
  firstName?: string;
196
195
  lastName?: string;
@@ -212,6 +211,7 @@ export interface PatientRecordCreate {
212
211
  phone: string;
213
212
  partnerPharmacyProfileId?: number | null;
214
213
  directUserProfileId?: number | null;
214
+ compoundDirectId?: number | null;
215
215
  userId?: string | null;
216
216
  medicareNumber?: string | null;
217
217
  address?: Address[];
@@ -467,6 +467,12 @@ export interface CDCustomerCreate {
467
467
  animalSpecies?: typeof AnimalSpeciesKeys;
468
468
  animalOwnerName?: string;
469
469
  }
470
+ export interface CDCustomerSearch {
471
+ name: string;
472
+ dateOfBirth: string;
473
+ email: string;
474
+ phone: string;
475
+ }
470
476
  export declare const ApiRoutes: {
471
477
  orders: {
472
478
  list: string;
@@ -563,7 +569,7 @@ export declare const ApiRoutes: {
563
569
  };
564
570
  email: {};
565
571
  compoundDirect: {
566
- searchForCustomer: string;
572
+ searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
567
573
  createCustomer: string;
568
574
  getDraftScripts: string;
569
575
  };
@@ -148,7 +148,7 @@ export const ApiRoutes = {
148
148
  },
149
149
  email: {},
150
150
  compoundDirect: {
151
- searchForCustomer: "/api/compound-direct/customers",
151
+ searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
152
152
  createCustomer: "/api/compound-direct/customer",
153
153
  getDraftScripts: "/api/compound-direct/draft-scripts/customers"
154
154
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",