@natch-the-storage/heathershaw-platform-types 1.5.2 → 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.
@@ -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.2",
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",