@natch-the-storage/heathershaw-platform-types 1.7.0 → 1.7.1
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 +55 -29
- package/build/validators.js +1 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -46,20 +46,40 @@ export interface ScriptSelect {
|
|
|
46
46
|
export interface OrderSelect {
|
|
47
47
|
id: number;
|
|
48
48
|
partnerPharmacyProfileId: number | null;
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
directUserProfileId: number | null;
|
|
50
|
+
trackingNumber: string;
|
|
51
|
+
status: boolean;
|
|
51
52
|
paymentModeAtOrder: PaymentModeAtOrder;
|
|
52
53
|
paymentStatus: PaymentStatus;
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
store: string;
|
|
55
|
+
staff: string;
|
|
55
56
|
shippingType: ShippingType;
|
|
56
57
|
shippingFee: string;
|
|
57
|
-
lineItems:
|
|
58
|
+
lineItems: LineItem[];
|
|
58
59
|
orderChangeNotes: string | null;
|
|
59
60
|
counsellingRequired: boolean;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
counsellingPriority: string;
|
|
62
|
+
counselledBy: string;
|
|
63
|
+
consellingNotes: string;
|
|
64
|
+
counselledStatus: string;
|
|
65
|
+
confirmationSentAt: Date;
|
|
66
|
+
hubspotContactId: string;
|
|
67
|
+
}
|
|
68
|
+
export interface LineItem {
|
|
69
|
+
id: number;
|
|
70
|
+
name: string;
|
|
71
|
+
quantity: number;
|
|
72
|
+
price: number;
|
|
73
|
+
rrp: number;
|
|
74
|
+
flavour?: string;
|
|
75
|
+
adverseSymptoms?: string;
|
|
76
|
+
scriptType: string;
|
|
77
|
+
paperScriptReceived: boolean;
|
|
78
|
+
patientCharged?: string;
|
|
79
|
+
overage?: string;
|
|
80
|
+
tierFee?: string;
|
|
81
|
+
billToPharmacy?: string;
|
|
82
|
+
invoicePrice?: string;
|
|
63
83
|
}
|
|
64
84
|
export interface GetById {
|
|
65
85
|
id: number;
|
|
@@ -90,37 +110,45 @@ export interface DirectUserProfileCreate {
|
|
|
90
110
|
export interface Order {
|
|
91
111
|
id: number;
|
|
92
112
|
partnerPharmacyProfileId?: number | null;
|
|
93
|
-
|
|
94
|
-
|
|
113
|
+
directUserProfileId?: number | null;
|
|
114
|
+
trackingNumber?: string;
|
|
115
|
+
status?: boolean;
|
|
95
116
|
paymentModeAtOrder?: PaymentModeAtOrder;
|
|
96
117
|
paymentStatus?: PaymentStatus;
|
|
97
|
-
|
|
98
|
-
|
|
118
|
+
store?: string;
|
|
119
|
+
staff?: string;
|
|
99
120
|
shippingType?: ShippingType;
|
|
100
121
|
shippingFee?: string;
|
|
101
|
-
lineItems?:
|
|
122
|
+
lineItems?: LineItem[];
|
|
102
123
|
orderChangeNotes?: string | null;
|
|
103
124
|
counsellingRequired?: boolean;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
125
|
+
counsellingPriority?: string;
|
|
126
|
+
counselledBy?: string;
|
|
127
|
+
consellingNotes?: string;
|
|
128
|
+
counselledStatus?: string;
|
|
129
|
+
confirmationSentAt?: Date;
|
|
130
|
+
hubspotContactId?: string;
|
|
107
131
|
}
|
|
108
132
|
export interface OrderCreate {
|
|
109
133
|
paymentModeAtOrder: PaymentModeAtOrder;
|
|
110
134
|
paymentStatus: PaymentStatus;
|
|
111
|
-
scriptType: ScriptType;
|
|
112
135
|
shippingType: ShippingType;
|
|
113
136
|
shippingFee: string;
|
|
114
137
|
partnerPharmacyProfileId?: number | null;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
138
|
+
directUserProfileId?: number | null;
|
|
139
|
+
trackingNumber?: string;
|
|
140
|
+
status?: boolean;
|
|
141
|
+
store?: string;
|
|
142
|
+
staff?: string;
|
|
143
|
+
lineItems?: LineItem[];
|
|
119
144
|
orderChangeNotes?: string | null;
|
|
120
145
|
counsellingRequired?: boolean;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
146
|
+
counsellingPriority?: string;
|
|
147
|
+
counselledBy?: string;
|
|
148
|
+
consellingNotes?: string;
|
|
149
|
+
counselledStatus?: string;
|
|
150
|
+
confirmationSentAt?: Date;
|
|
151
|
+
hubspotContactId?: string;
|
|
124
152
|
}
|
|
125
153
|
export interface PaperScriptReminder {
|
|
126
154
|
id: number;
|
|
@@ -190,7 +218,6 @@ export interface PatientRecord {
|
|
|
190
218
|
orderHistory?: OrderSelect[];
|
|
191
219
|
animalSpecies?: string;
|
|
192
220
|
relationship?: string | null;
|
|
193
|
-
cartId?: string | null;
|
|
194
221
|
}
|
|
195
222
|
export interface PatientRecordCreate {
|
|
196
223
|
firstName: string;
|
|
@@ -209,7 +236,6 @@ export interface PatientRecordCreate {
|
|
|
209
236
|
orderHistory?: OrderSelect[];
|
|
210
237
|
animalSpecies?: string;
|
|
211
238
|
relationship?: string | null;
|
|
212
|
-
cartId?: string | null;
|
|
213
239
|
}
|
|
214
240
|
export interface PriceMatch {
|
|
215
241
|
id: number;
|
|
@@ -308,12 +334,12 @@ export interface PaperScriptCreate {
|
|
|
308
334
|
fileKey: string;
|
|
309
335
|
}
|
|
310
336
|
export interface Cart {
|
|
311
|
-
|
|
337
|
+
id: number;
|
|
312
338
|
items: any[];
|
|
313
339
|
updatedAt: Date;
|
|
314
340
|
}
|
|
315
341
|
export interface CartUpdate {
|
|
316
|
-
|
|
342
|
+
id: number;
|
|
317
343
|
items: any[];
|
|
318
344
|
}
|
|
319
345
|
export declare const CompoundDirectAnimalId: {
|
|
@@ -582,7 +608,7 @@ export declare const ApiRoutes: {
|
|
|
582
608
|
};
|
|
583
609
|
email: {};
|
|
584
610
|
cart: {
|
|
585
|
-
get: (
|
|
611
|
+
get: (id: number) => string;
|
|
586
612
|
put: string;
|
|
587
613
|
};
|
|
588
614
|
compoundDirect: {
|
package/build/validators.js
CHANGED