@natch-the-storage/heathershaw-platform-types 1.6.6 → 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;
@@ -409,6 +420,9 @@ export interface CDScriptProperties {
409
420
  code: string;
410
421
  type: string;
411
422
  }
423
+ export interface CDScriptIngredients {
424
+ name: string;
425
+ }
412
426
  export interface CDScriptList {
413
427
  draftScriptId: number;
414
428
  customerId: number;
@@ -455,6 +469,7 @@ export interface CDScript {
455
469
  };
456
470
  formulation: {
457
471
  properties?: CDScriptProperties[];
472
+ ingredients?: CDScriptIngredients[];
458
473
  };
459
474
  itemCount: number;
460
475
  }
@@ -566,6 +581,10 @@ export declare const ApiRoutes: {
566
581
  send: string;
567
582
  };
568
583
  email: {};
584
+ cart: {
585
+ get: (userId: string) => string;
586
+ put: string;
587
+ };
569
588
  compoundDirect: {
570
589
  searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
571
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.6",
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",