@natch-the-storage/heathershaw-platform-types 1.7.0 → 1.7.2
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 +73 -31
- package/build/validators.js +1 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -46,20 +46,53 @@ 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;
|
|
83
|
+
otherScriptProperties: {
|
|
84
|
+
for: {
|
|
85
|
+
customerId: number;
|
|
86
|
+
patientRecordId: number;
|
|
87
|
+
patientName: string;
|
|
88
|
+
};
|
|
89
|
+
quantity: string;
|
|
90
|
+
expiryDate: string;
|
|
91
|
+
repeatsLeft: number;
|
|
92
|
+
supplyNumber: number;
|
|
93
|
+
unit?: string;
|
|
94
|
+
properties: CDScriptProperties[];
|
|
95
|
+
};
|
|
63
96
|
}
|
|
64
97
|
export interface GetById {
|
|
65
98
|
id: number;
|
|
@@ -90,37 +123,45 @@ export interface DirectUserProfileCreate {
|
|
|
90
123
|
export interface Order {
|
|
91
124
|
id: number;
|
|
92
125
|
partnerPharmacyProfileId?: number | null;
|
|
93
|
-
|
|
94
|
-
|
|
126
|
+
directUserProfileId?: number | null;
|
|
127
|
+
trackingNumber?: string;
|
|
128
|
+
status?: boolean;
|
|
95
129
|
paymentModeAtOrder?: PaymentModeAtOrder;
|
|
96
130
|
paymentStatus?: PaymentStatus;
|
|
97
|
-
|
|
98
|
-
|
|
131
|
+
store?: string;
|
|
132
|
+
staff?: string;
|
|
99
133
|
shippingType?: ShippingType;
|
|
100
134
|
shippingFee?: string;
|
|
101
|
-
lineItems?:
|
|
135
|
+
lineItems?: LineItem[];
|
|
102
136
|
orderChangeNotes?: string | null;
|
|
103
137
|
counsellingRequired?: boolean;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
138
|
+
counsellingPriority?: string;
|
|
139
|
+
counselledBy?: string;
|
|
140
|
+
consellingNotes?: string;
|
|
141
|
+
counselledStatus?: string;
|
|
142
|
+
confirmationSentAt?: Date;
|
|
143
|
+
hubspotContactId?: string;
|
|
107
144
|
}
|
|
108
145
|
export interface OrderCreate {
|
|
109
146
|
paymentModeAtOrder: PaymentModeAtOrder;
|
|
110
147
|
paymentStatus: PaymentStatus;
|
|
111
|
-
scriptType: ScriptType;
|
|
112
148
|
shippingType: ShippingType;
|
|
113
149
|
shippingFee: string;
|
|
114
150
|
partnerPharmacyProfileId?: number | null;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
151
|
+
directUserProfileId?: number | null;
|
|
152
|
+
trackingNumber?: string;
|
|
153
|
+
status?: boolean;
|
|
154
|
+
store?: string;
|
|
155
|
+
staff?: string;
|
|
156
|
+
lineItems?: LineItem[];
|
|
119
157
|
orderChangeNotes?: string | null;
|
|
120
158
|
counsellingRequired?: boolean;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
159
|
+
counsellingPriority?: string;
|
|
160
|
+
counselledBy?: string;
|
|
161
|
+
consellingNotes?: string;
|
|
162
|
+
counselledStatus?: string;
|
|
163
|
+
confirmationSentAt?: Date;
|
|
164
|
+
hubspotContactId?: string;
|
|
124
165
|
}
|
|
125
166
|
export interface PaperScriptReminder {
|
|
126
167
|
id: number;
|
|
@@ -190,7 +231,6 @@ export interface PatientRecord {
|
|
|
190
231
|
orderHistory?: OrderSelect[];
|
|
191
232
|
animalSpecies?: string;
|
|
192
233
|
relationship?: string | null;
|
|
193
|
-
cartId?: string | null;
|
|
194
234
|
}
|
|
195
235
|
export interface PatientRecordCreate {
|
|
196
236
|
firstName: string;
|
|
@@ -209,7 +249,6 @@ export interface PatientRecordCreate {
|
|
|
209
249
|
orderHistory?: OrderSelect[];
|
|
210
250
|
animalSpecies?: string;
|
|
211
251
|
relationship?: string | null;
|
|
212
|
-
cartId?: string | null;
|
|
213
252
|
}
|
|
214
253
|
export interface PriceMatch {
|
|
215
254
|
id: number;
|
|
@@ -308,13 +347,13 @@ export interface PaperScriptCreate {
|
|
|
308
347
|
fileKey: string;
|
|
309
348
|
}
|
|
310
349
|
export interface Cart {
|
|
311
|
-
|
|
312
|
-
items:
|
|
350
|
+
id: number;
|
|
351
|
+
items: LineItem[];
|
|
313
352
|
updatedAt: Date;
|
|
314
353
|
}
|
|
315
354
|
export interface CartUpdate {
|
|
316
|
-
|
|
317
|
-
items:
|
|
355
|
+
id: number;
|
|
356
|
+
items: LineItem[];
|
|
318
357
|
}
|
|
319
358
|
export declare const CompoundDirectAnimalId: {
|
|
320
359
|
readonly dog: {
|
|
@@ -466,6 +505,9 @@ export interface CDScript {
|
|
|
466
505
|
repeatsTotal: number;
|
|
467
506
|
repeatsLeft: number;
|
|
468
507
|
supplyNumber: number;
|
|
508
|
+
ePrescription?: {
|
|
509
|
+
type: string;
|
|
510
|
+
};
|
|
469
511
|
};
|
|
470
512
|
formulation: {
|
|
471
513
|
properties?: CDScriptProperties[];
|
|
@@ -582,7 +624,7 @@ export declare const ApiRoutes: {
|
|
|
582
624
|
};
|
|
583
625
|
email: {};
|
|
584
626
|
cart: {
|
|
585
|
-
get: (
|
|
627
|
+
get: (id: number) => string;
|
|
586
628
|
put: string;
|
|
587
629
|
};
|
|
588
630
|
compoundDirect: {
|
package/build/validators.js
CHANGED