@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.
- package/build/validators.d.ts +7 -1
- package/build/validators.js +1 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -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
|
-
|
|
572
|
+
searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
|
|
567
573
|
createCustomer: string;
|
|
568
574
|
getDraftScripts: string;
|
|
569
575
|
};
|
package/build/validators.js
CHANGED
|
@@ -148,7 +148,7 @@ export const ApiRoutes = {
|
|
|
148
148
|
},
|
|
149
149
|
email: {},
|
|
150
150
|
compoundDirect: {
|
|
151
|
-
|
|
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
|
}
|