@natch-the-storage/heathershaw-platform-types 1.20.2 → 1.20.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.
- package/build/validators.d.ts +36 -1
- package/build/validators.js +3 -0
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1181,6 +1213,9 @@ export declare const ApiRoutes: {
|
|
|
1181
1213
|
getByPaymentLinkToken: (token: string) => string;
|
|
1182
1214
|
chargePaymentLink: (token: string) => string;
|
|
1183
1215
|
chargeOrder: (id: string) => string;
|
|
1216
|
+
paymentLinkScaSession: (token: string) => string;
|
|
1217
|
+
internalScaSession: (id: number) => string;
|
|
1218
|
+
adminMoto: (id: number) => string;
|
|
1184
1219
|
};
|
|
1185
1220
|
paperScriptReminders: {
|
|
1186
1221
|
list: string;
|
package/build/validators.js
CHANGED
|
@@ -502,6 +502,9 @@ export const ApiRoutes = {
|
|
|
502
502
|
getByPaymentLinkToken: (token) => `/api/orders/payment-links/${token}`,
|
|
503
503
|
chargePaymentLink: (token) => `/api/orders/payment-links/${token}/charge`,
|
|
504
504
|
chargeOrder: (id) => `/api/orders/${id}/charge`,
|
|
505
|
+
paymentLinkScaSession: (token) => `/api/orders/payment-links/${token}/sca-session`,
|
|
506
|
+
internalScaSession: (id) => `/api/orders/${id}/sca-session`,
|
|
507
|
+
adminMoto: (id) => `/api/orders/${id}/charge/moto`,
|
|
505
508
|
},
|
|
506
509
|
paperScriptReminders: {
|
|
507
510
|
list: '/api/paper-script-reminders',
|