@natch-the-storage/heathershaw-platform-types 1.20.2 → 1.20.3

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.
@@ -682,6 +682,7 @@ export interface CDScriptProperties {
682
682
  export interface CDScriptIngredients {
683
683
  name: string;
684
684
  }
685
+ /** An abbrievated CDDraftScript retrieved from the searchDraftScripts route */
685
686
  export interface CDScriptList {
686
687
  draftScriptId: number;
687
688
  customerId: number;
@@ -746,12 +747,12 @@ export interface CDDispensedScript {
746
747
  scriptNumber: number;
747
748
  scriptBarcode: string;
748
749
  scriptType: string;
749
- name: string;
750
750
  quantity: number;
751
751
  itemCount: number;
752
752
  isReorderable: boolean;
753
753
  isArchived: boolean;
754
754
  disableRiskAssessment: boolean;
755
+ name?: string;
755
756
  comment?: string;
756
757
  notes?: string;
757
758
  draftScriptId?: number;
@@ -801,6 +802,37 @@ export interface CDDispensedScriptRepeatChain {
801
802
  draftScriptId?: number;
802
803
  dispensedScriptId?: number;
803
804
  }
805
+ /** An abbrievated CDDispensedScript retrieved from the searchDispensedScript route */
806
+ export type CDDispensedScriptList = Pick<CDDispensedScript, 'scriptId' | 'scriptNumber' | 'scriptType' | 'isArchived' | 'name' | 'comment' | 'dateDispensed' | 'quantity' | 'itemCount' | 'createdDate'> & {
807
+ customerName: string;
808
+ customerInitials?: string;
809
+ tags?: string[];
810
+ instructions: string;
811
+ repeatsLeft: number;
812
+ repeatsTotal: number;
813
+ supplyNumber?: number;
814
+ totalQuantityPrescribed?: number;
815
+ totalQuantityRemaining?: number;
816
+ /** URL of product image */
817
+ imageUrl?: string;
818
+ unit?: string;
819
+ price: number;
820
+ productReferenceCode?: string;
821
+ retailProductQuantity?: string;
822
+ retailProductBrand?: string;
823
+ retailProductGroupId?: string;
824
+ quantity: 5;
825
+ itemCount: 1;
826
+ /** ISO timestamp yyyy-mm-ddThh:mm:ss.000Z */
827
+ modifiedDate?: string;
828
+ schedule?: 'S4';
829
+ refillReminderEnabled?: boolean;
830
+ /** ISO date yyyy-mm-dd */
831
+ defaultNextRefillReminderDate?: string;
832
+ /** ISO date yyyy-mm-dd */
833
+ manualNextRefillReminderDate?: string;
834
+ daysSupply?: number;
835
+ };
804
836
  /** The script item retrieved from a customer_scripts search on compound direct */
805
837
  export interface CDSearchScripts {
806
838
  key: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.20.2",
3
+ "version": "1.20.3",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",