@natch-the-storage/heathershaw-platform-types 1.7.1 → 1.7.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.
- package/build/validators.d.ts +44 -42
- package/build/validators.js +1 -0
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -43,28 +43,6 @@ export interface ScriptSelect {
|
|
|
43
43
|
token?: string | null;
|
|
44
44
|
fileKey?: string | null;
|
|
45
45
|
}
|
|
46
|
-
export interface OrderSelect {
|
|
47
|
-
id: number;
|
|
48
|
-
partnerPharmacyProfileId: number | null;
|
|
49
|
-
directUserProfileId: number | null;
|
|
50
|
-
trackingNumber: string;
|
|
51
|
-
status: boolean;
|
|
52
|
-
paymentModeAtOrder: PaymentModeAtOrder;
|
|
53
|
-
paymentStatus: PaymentStatus;
|
|
54
|
-
store: string;
|
|
55
|
-
staff: string;
|
|
56
|
-
shippingType: ShippingType;
|
|
57
|
-
shippingFee: string;
|
|
58
|
-
lineItems: LineItem[];
|
|
59
|
-
orderChangeNotes: string | null;
|
|
60
|
-
counsellingRequired: boolean;
|
|
61
|
-
counsellingPriority: string;
|
|
62
|
-
counselledBy: string;
|
|
63
|
-
consellingNotes: string;
|
|
64
|
-
counselledStatus: string;
|
|
65
|
-
confirmationSentAt: Date;
|
|
66
|
-
hubspotContactId: string;
|
|
67
|
-
}
|
|
68
46
|
export interface LineItem {
|
|
69
47
|
id: number;
|
|
70
48
|
name: string;
|
|
@@ -72,6 +50,7 @@ export interface LineItem {
|
|
|
72
50
|
price: number;
|
|
73
51
|
rrp: number;
|
|
74
52
|
flavour?: string;
|
|
53
|
+
adverseSymptomsStatus?: string;
|
|
75
54
|
adverseSymptoms?: string;
|
|
76
55
|
scriptType: string;
|
|
77
56
|
paperScriptReceived: boolean;
|
|
@@ -80,6 +59,20 @@ export interface LineItem {
|
|
|
80
59
|
tierFee?: string;
|
|
81
60
|
billToPharmacy?: string;
|
|
82
61
|
invoicePrice?: string;
|
|
62
|
+
otherScriptProperties: {
|
|
63
|
+
for: {
|
|
64
|
+
customerId: number;
|
|
65
|
+
patientRecordId: number;
|
|
66
|
+
patientFirstName: string;
|
|
67
|
+
patientLastName: string;
|
|
68
|
+
};
|
|
69
|
+
quantity: number;
|
|
70
|
+
expiryDate: string;
|
|
71
|
+
repeatsLeft: number;
|
|
72
|
+
supplyNumber: number;
|
|
73
|
+
unit?: string;
|
|
74
|
+
properties: CDScriptProperties[];
|
|
75
|
+
};
|
|
83
76
|
}
|
|
84
77
|
export interface GetById {
|
|
85
78
|
id: number;
|
|
@@ -111,16 +104,18 @@ export interface Order {
|
|
|
111
104
|
id: number;
|
|
112
105
|
partnerPharmacyProfileId?: number | null;
|
|
113
106
|
directUserProfileId?: number | null;
|
|
107
|
+
address: string;
|
|
114
108
|
trackingNumber?: string;
|
|
115
|
-
status
|
|
116
|
-
paymentModeAtOrder?: PaymentModeAtOrder;
|
|
117
|
-
paymentStatus?: PaymentStatus;
|
|
109
|
+
status: string;
|
|
118
110
|
store?: string;
|
|
119
111
|
staff?: string;
|
|
120
|
-
|
|
121
|
-
shippingFee?: string;
|
|
122
|
-
lineItems?: LineItem[];
|
|
112
|
+
lineItems: LineItem[];
|
|
123
113
|
orderChangeNotes?: string | null;
|
|
114
|
+
paymentModeAtOrder?: PaymentModeAtOrder;
|
|
115
|
+
paymentStatus?: PaymentStatus;
|
|
116
|
+
shippingType?: ShippingType;
|
|
117
|
+
shippingFee?: number;
|
|
118
|
+
total: number;
|
|
124
119
|
counsellingRequired?: boolean;
|
|
125
120
|
counsellingPriority?: string;
|
|
126
121
|
counselledBy?: string;
|
|
@@ -128,20 +123,23 @@ export interface Order {
|
|
|
128
123
|
counselledStatus?: string;
|
|
129
124
|
confirmationSentAt?: Date;
|
|
130
125
|
hubspotContactId?: string;
|
|
126
|
+
created: string;
|
|
131
127
|
}
|
|
132
128
|
export interface OrderCreate {
|
|
133
|
-
paymentModeAtOrder: PaymentModeAtOrder;
|
|
134
|
-
paymentStatus: PaymentStatus;
|
|
135
|
-
shippingType: ShippingType;
|
|
136
|
-
shippingFee: string;
|
|
137
129
|
partnerPharmacyProfileId?: number | null;
|
|
138
130
|
directUserProfileId?: number | null;
|
|
131
|
+
address: string;
|
|
139
132
|
trackingNumber?: string;
|
|
140
|
-
status?:
|
|
133
|
+
status?: string;
|
|
141
134
|
store?: string;
|
|
142
135
|
staff?: string;
|
|
143
|
-
lineItems
|
|
136
|
+
lineItems: LineItem[];
|
|
144
137
|
orderChangeNotes?: string | null;
|
|
138
|
+
paymentModeAtOrder: PaymentModeAtOrder;
|
|
139
|
+
paymentStatus: PaymentStatus;
|
|
140
|
+
shippingType: ShippingType;
|
|
141
|
+
shippingFee: number;
|
|
142
|
+
total: number;
|
|
145
143
|
counsellingRequired?: boolean;
|
|
146
144
|
counsellingPriority?: string;
|
|
147
145
|
counselledBy?: string;
|
|
@@ -206,8 +204,8 @@ export interface PatientRecord {
|
|
|
206
204
|
directUserProfileId?: number | null;
|
|
207
205
|
compoundDirectId?: number | null;
|
|
208
206
|
userId?: string | null;
|
|
209
|
-
firstName
|
|
210
|
-
lastName
|
|
207
|
+
firstName: string;
|
|
208
|
+
lastName: string;
|
|
211
209
|
dateOfBirth?: string;
|
|
212
210
|
medicareNumber?: string | null;
|
|
213
211
|
phone?: string;
|
|
@@ -215,7 +213,7 @@ export interface PatientRecord {
|
|
|
215
213
|
healthInfo?: HealthInfo;
|
|
216
214
|
reminderEnabled?: boolean;
|
|
217
215
|
scripts?: ScriptSelect[];
|
|
218
|
-
orderHistory?:
|
|
216
|
+
orderHistory?: Order[];
|
|
219
217
|
animalSpecies?: string;
|
|
220
218
|
relationship?: string | null;
|
|
221
219
|
}
|
|
@@ -233,7 +231,7 @@ export interface PatientRecordCreate {
|
|
|
233
231
|
healthInfo?: HealthInfo;
|
|
234
232
|
reminderEnabled?: boolean;
|
|
235
233
|
scripts?: ScriptSelect[];
|
|
236
|
-
orderHistory?:
|
|
234
|
+
orderHistory?: Order[];
|
|
237
235
|
animalSpecies?: string;
|
|
238
236
|
relationship?: string | null;
|
|
239
237
|
}
|
|
@@ -335,12 +333,12 @@ export interface PaperScriptCreate {
|
|
|
335
333
|
}
|
|
336
334
|
export interface Cart {
|
|
337
335
|
id: number;
|
|
338
|
-
items:
|
|
336
|
+
items: LineItem[];
|
|
339
337
|
updatedAt: Date;
|
|
340
338
|
}
|
|
341
339
|
export interface CartUpdate {
|
|
342
340
|
id: number;
|
|
343
|
-
items:
|
|
341
|
+
items: LineItem[];
|
|
344
342
|
}
|
|
345
343
|
export declare const CompoundDirectAnimalId: {
|
|
346
344
|
readonly dog: {
|
|
@@ -492,10 +490,13 @@ export interface CDScript {
|
|
|
492
490
|
repeatsTotal: number;
|
|
493
491
|
repeatsLeft: number;
|
|
494
492
|
supplyNumber: number;
|
|
493
|
+
ePrescription?: {
|
|
494
|
+
type: string;
|
|
495
|
+
};
|
|
495
496
|
};
|
|
496
497
|
formulation: {
|
|
497
|
-
properties
|
|
498
|
-
ingredients
|
|
498
|
+
properties: CDScriptProperties[];
|
|
499
|
+
ingredients: CDScriptIngredients[];
|
|
499
500
|
};
|
|
500
501
|
itemCount: number;
|
|
501
502
|
}
|
|
@@ -582,6 +583,7 @@ export declare const ApiRoutes: {
|
|
|
582
583
|
list: string;
|
|
583
584
|
get: (id: number) => string;
|
|
584
585
|
getByUser: (userId: string) => string;
|
|
586
|
+
getOrders: (userId: number) => string;
|
|
585
587
|
create: string;
|
|
586
588
|
onboard: (userId: string) => string;
|
|
587
589
|
update: string;
|
package/build/validators.js
CHANGED
|
@@ -116,6 +116,7 @@ export const ApiRoutes = {
|
|
|
116
116
|
list: '/api/profiles/direct-users',
|
|
117
117
|
get: (id) => `/api/profiles/direct-users/${id}`,
|
|
118
118
|
getByUser: (userId) => `/api/profiles/direct-users/user/${userId}`,
|
|
119
|
+
getOrders: (userId) => `/api/profiles/direct-users/user/${userId}/orders`,
|
|
119
120
|
create: '/api/profiles/direct-users',
|
|
120
121
|
onboard: (userId) => `/api/profiles/direct-users/${userId}`,
|
|
121
122
|
update: '/api/profiles/direct-users',
|