@natch-the-storage/heathershaw-platform-types 1.15.0 → 1.15.2

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.
@@ -688,9 +688,11 @@ export interface CDCustomerCreate {
688
688
  animalOwnerName?: string;
689
689
  }
690
690
  /**
691
- * Identical to CDCustomer, fully overwrites fields, so you must update using the entire CDCustomer
691
+ * Fields that can be updated on the portal for a CDCustomer
692
692
  */
693
- export type CDCustomerUpdate = CDCustomer;
693
+ export type CDCustomerUpdate = Omit<CDCustomerCreate, 'animalSpecies' | 'animalOwnerName'> & {
694
+ id: number;
695
+ };
694
696
  export interface CDCustomerSearch {
695
697
  query: string;
696
698
  dobStartDate: string;
@@ -840,6 +842,7 @@ export declare const ApiRoutes: {
840
842
  };
841
843
  compoundDirect: {
842
844
  searchCustomers: string;
845
+ getCustomer: string;
843
846
  createCustomer: string;
844
847
  updateCustomer: string;
845
848
  getDraftScripts: string;
@@ -229,6 +229,7 @@ export const ApiRoutes = {
229
229
  },
230
230
  compoundDirect: {
231
231
  searchCustomers: '/api/compound-direct/customers',
232
+ getCustomer: '/api/compound-direct/customers',
232
233
  createCustomer: '/api/compound-direct/new-customers',
233
234
  updateCustomer: '/api/compound-direct/customers',
234
235
  getDraftScripts: '/api/compound-direct/draft-scripts',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.15.0",
3
+ "version": "1.15.2",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",