@natch-the-storage/heathershaw-platform-types 1.8.2 → 1.8.4

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.
@@ -299,22 +299,26 @@ export interface ProductCreate {
299
299
  }
300
300
  export interface Quote {
301
301
  id: number;
302
- status?: QuoteStatus;
303
- partnerPharmacyProfileId?: number;
304
- name?: string;
305
- strength?: string;
306
- form?: string;
307
- quantity?: number;
308
- patientContext?: string;
302
+ status: QuoteStatus;
303
+ partnerPharmacyProfileId: number;
304
+ name: string;
305
+ strength: string;
306
+ form: string;
307
+ quantity: string;
308
+ details?: string;
309
+ token?: string;
310
+ fileKey?: string;
309
311
  }
310
312
  export interface QuoteCreate {
313
+ status?: QuoteStatus;
311
314
  partnerPharmacyProfileId: number;
312
315
  name: string;
313
316
  strength: string;
314
317
  form: string;
315
- quantity: number;
316
- patientContext: string;
317
- status?: QuoteStatus;
318
+ quantity: string;
319
+ details?: string;
320
+ token?: string;
321
+ fileKey?: string;
318
322
  }
319
323
  export interface RepeatReminder {
320
324
  id: number;
@@ -463,8 +467,16 @@ export declare const CompoundDirectAnimalId: {
463
467
  readonly id: 24;
464
468
  readonly name: "Monkey";
465
469
  };
470
+ readonly other: {
471
+ readonly id: 25;
472
+ readonly name: "N/A";
473
+ };
466
474
  };
467
475
  export declare const AnimalSpeciesKeys: [keyof typeof CompoundDirectAnimalId, ...(keyof typeof CompoundDirectAnimalId)[]];
476
+ export interface CDScriptPriceOption {
477
+ quantity: number;
478
+ price: number;
479
+ }
468
480
  export interface CDScriptProperties {
469
481
  propertyId: number;
470
482
  code: string;
@@ -534,7 +546,7 @@ export interface CDCustomerCreate {
534
546
  state: string;
535
547
  postCode: string;
536
548
  mobile: string;
537
- email: string;
549
+ email?: string;
538
550
  dateOfBirth: string;
539
551
  animalSpecies?: typeof AnimalSpeciesKeys;
540
552
  animalOwnerName?: string;
@@ -542,9 +554,44 @@ export interface CDCustomerCreate {
542
554
  export interface CDCustomerSearch {
543
555
  name: string;
544
556
  dateOfBirth: string;
545
- email: string;
557
+ email?: string;
546
558
  phone: string;
547
559
  }
560
+ export interface CDFormulation {
561
+ formulationId: number;
562
+ name: string;
563
+ quantity: number;
564
+ isCapsule: boolean;
565
+ capsuleSize: string;
566
+ unit: string;
567
+ dosageFormRouteOfAdministration: string;
568
+ dosageFormName: string;
569
+ enableRiskAssessment: boolean;
570
+ standardInstructions: string;
571
+ infoUrl: string;
572
+ compound: {
573
+ isCapsule: boolean;
574
+ capsuleSize: string;
575
+ expiryDays: number;
576
+ dosageFormId: number;
577
+ dosageFormName: string;
578
+ };
579
+ pricing: CDScriptPriceOption[];
580
+ properties: CDScriptProperties[];
581
+ }
582
+ export interface CDFormulationList {
583
+ formulationId: number;
584
+ name: string;
585
+ quantity: number;
586
+ standardExpiryDays: number;
587
+ unit: string;
588
+ dosageFormName: string;
589
+ dosageFormRouteOfAdministration: string;
590
+ enableRiskAssessment: boolean;
591
+ standardInstructions: string;
592
+ infoUrl: string;
593
+ isSignedOff: boolean;
594
+ }
548
595
  export declare const parseCategory: (category: string) => "Order or delivery" | "Prescription" | "Profile or account" | "Compounding" | "General";
549
596
  export interface ContactFormInternalCreate {
550
597
  category: string;
@@ -673,5 +720,7 @@ export declare const ApiRoutes: {
673
720
  createCustomer: string;
674
721
  getDraftScripts: string;
675
722
  getDraftScriptById: (id: number) => string;
723
+ listFormulations: string;
724
+ getFormulationById: (id: number) => string;
676
725
  };
677
726
  };
@@ -50,6 +50,7 @@ export const CompoundDirectAnimalId = {
50
50
  bee: { id: 22, name: 'Bee' },
51
51
  koala: { id: 23, name: 'Koala' },
52
52
  monkey: { id: 24, name: 'Monkey' },
53
+ other: { id: 25, name: 'N/A' },
53
54
  };
54
55
  export const AnimalSpeciesKeys = Object.keys(CompoundDirectAnimalId);
55
56
  // contact form
@@ -191,5 +192,7 @@ export const ApiRoutes = {
191
192
  createCustomer: '/api/compound-direct/customer',
192
193
  getDraftScripts: '/api/compound-direct/draft-scripts',
193
194
  getDraftScriptById: (id) => `/api/compound-direct/draft-scripts/${id}`,
195
+ listFormulations: '/api/compound-direct/formulations',
196
+ getFormulationById: (id) => `/api/compound-direct/formulations/${id}`,
194
197
  },
195
198
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",