@natch-the-storage/heathershaw-platform-types 1.6.7 → 1.7.0

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.
@@ -190,6 +190,7 @@ export interface PatientRecord {
190
190
  orderHistory?: OrderSelect[];
191
191
  animalSpecies?: string;
192
192
  relationship?: string | null;
193
+ cartId?: string | null;
193
194
  }
194
195
  export interface PatientRecordCreate {
195
196
  firstName: string;
@@ -208,6 +209,7 @@ export interface PatientRecordCreate {
208
209
  orderHistory?: OrderSelect[];
209
210
  animalSpecies?: string;
210
211
  relationship?: string | null;
212
+ cartId?: string | null;
211
213
  }
212
214
  export interface PriceMatch {
213
215
  id: number;
@@ -305,6 +307,15 @@ export interface PaperScriptCreate {
305
307
  uploaded: string;
306
308
  fileKey: string;
307
309
  }
310
+ export interface Cart {
311
+ patientRecordId: number;
312
+ items: any[];
313
+ updatedAt: Date;
314
+ }
315
+ export interface CartUpdate {
316
+ patientRecordId: number;
317
+ items: any[];
318
+ }
308
319
  export declare const CompoundDirectAnimalId: {
309
320
  readonly dog: {
310
321
  readonly id: 1;
@@ -570,6 +581,10 @@ export declare const ApiRoutes: {
570
581
  send: string;
571
582
  };
572
583
  email: {};
584
+ cart: {
585
+ get: (userId: string) => string;
586
+ put: string;
587
+ };
573
588
  compoundDirect: {
574
589
  searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
575
590
  createCustomer: string;
@@ -141,6 +141,10 @@ export const ApiRoutes = {
141
141
  send: '/api/reminders/sms',
142
142
  },
143
143
  email: {},
144
+ cart: {
145
+ get: (userId) => `/api/carts/${userId}`,
146
+ put: '/api/carts',
147
+ },
144
148
  compoundDirect: {
145
149
  searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
146
150
  createCustomer: '/api/compound-direct/customer',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.6.7",
3
+ "version": "1.7.0",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",