@natch-the-storage/heathershaw-platform-types 1.6.2 → 1.6.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.
@@ -409,6 +409,29 @@ export interface CDScriptProperties {
409
409
  code: string;
410
410
  type: string;
411
411
  }
412
+ export interface CDScriptList {
413
+ draftScriptId: number;
414
+ customerId: number;
415
+ scriptType: string;
416
+ name: string;
417
+ isReorderable: boolean;
418
+ instructions?: string;
419
+ price: number;
420
+ repeatsTotal: number;
421
+ repeatsLeft: number;
422
+ supplyNumber: number;
423
+ quantity: number;
424
+ unit?: string;
425
+ itemCount: number;
426
+ routeOfAdministration: string;
427
+ dosageFormName: string;
428
+ datePrescribed: string;
429
+ expiryDate: string;
430
+ isExpired: boolean;
431
+ excludeUnitsFromLabel: boolean;
432
+ calculationType: number;
433
+ costPrice: number;
434
+ }
412
435
  export interface CDScript {
413
436
  draftScriptId: number;
414
437
  name: string;
@@ -545,5 +568,6 @@ export declare const ApiRoutes: {
545
568
  searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
546
569
  createCustomer: string;
547
570
  getDraftScripts: string;
571
+ getDraftScriptById: (id: number) => string;
548
572
  };
549
573
  };
@@ -144,6 +144,7 @@ export const ApiRoutes = {
144
144
  compoundDirect: {
145
145
  searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
146
146
  createCustomer: '/api/compound-direct/customer',
147
- getDraftScripts: '/api/compound-direct/draft-scripts/customers',
147
+ getDraftScripts: '/api/compound-direct/draft-scripts',
148
+ getDraftScriptById: (id) => `/api/compound-direct/draft-scripts/${id}`,
148
149
  },
149
150
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",