@natch-the-storage/heathershaw-platform-types 1.0.1 → 1.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @natch-the-storage/heathershaw-platform-types
2
2
 
3
- Validation schemas and enums exported from `validators.js` for frontend use.
3
+ Zod validation schemas, enum value arrays, and inferred TypeScript types for frontend use.
4
4
 
5
5
  ## Install
6
6
 
@@ -12,21 +12,39 @@ npm install @natch-the-storage/heathershaw-platform-types zod
12
12
 
13
13
  ## Usage
14
14
 
15
- ES module:
15
+ ### Schemas
16
16
 
17
- ```js
17
+ ```ts
18
18
  import { createOrderBodySchema } from "@natch-the-storage/heathershaw-platform-types";
19
19
 
20
- // or import the built ESM file directly
21
- import { createOrderBodySchema } from "@natch-the-storage/heathershaw-platform-types/build/validators.es.js";
20
+ const result = createOrderBodySchema.parse(data);
22
21
  ```
23
22
 
24
- CommonJS:
23
+ ### TypeScript types
25
24
 
26
- ```js
27
- const {
28
- createOrderBodySchema,
29
- } = require("@natch-the-storage/heathershaw-platform-types");
25
+ Every schema has a matching inferred type exported alongside it:
26
+
27
+ ```ts
28
+ import type { CreateOrderBody, Address, ScriptSelect } from "@natch-the-storage/heathershaw-platform-types";
29
+ ```
30
+
31
+ ### Enum value arrays
32
+
33
+ The raw value arrays are exported for use in UI components (e.g. populating a select):
34
+
35
+ ```ts
36
+ import { shippingTypeValues } from "@natch-the-storage/heathershaw-platform-types";
37
+ // ["STANDARD", "COLD_CHAIN"]
30
38
  ```
31
39
 
32
- Note: `zod` is a peer dependency — you must install it in the consumer project.
40
+ Each array also has a matching union type:
41
+
42
+ ```ts
43
+ import type { ShippingType } from "@natch-the-storage/heathershaw-platform-types";
44
+ // "STANDARD" | "COLD_CHAIN"
45
+ ```
46
+
47
+ ## Notes
48
+
49
+ - ESM only — requires a bundler (Vite, Next.js, webpack 5, etc.)
50
+ - `zod` is a peer dependency — install it in the consumer project
@@ -0,0 +1,629 @@
1
+ import { z } from 'zod';
2
+ export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
3
+ export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED"];
4
+ export declare const paymentModeAtOrderValues: readonly ["INVOICE", "POS"];
5
+ export declare const paymentStatusValues: readonly ["AWAITING_PAYMENT", "PAID", "PENDING_INVOICE"];
6
+ export declare const productCategoryValues: readonly ["TODO1", "TODO2", "TODO3"];
7
+ export declare const repeatStorageValues: readonly ["HEATHERSHAWS", "PHARMACY", "PATIENT"];
8
+ export declare const scriptTypeValues: readonly ["eRx", "PAPER"];
9
+ export declare const shippingTypeValues: readonly ["STANDARD", "COLD_CHAIN"];
10
+ export declare const hazardTagsValues: readonly ["Hazardous", "Cytotoxic", "High-Risk"];
11
+ export type PaperScriptReminderStatus = (typeof paperScriptReminderStatusValues)[number];
12
+ export type QuoteStatus = (typeof quoteStatusValues)[number];
13
+ export type PaymentModeAtOrder = (typeof paymentModeAtOrderValues)[number];
14
+ export type PaymentStatus = (typeof paymentStatusValues)[number];
15
+ export type ProductCategory = (typeof productCategoryValues)[number];
16
+ export type RepeatStorage = (typeof repeatStorageValues)[number];
17
+ export type ScriptType = (typeof scriptTypeValues)[number];
18
+ export type ShippingType = (typeof shippingTypeValues)[number];
19
+ export type HazardTag = (typeof hazardTagsValues)[number];
20
+ export declare const addressSchema: z.ZodObject<{
21
+ street: z.ZodString;
22
+ suburb: z.ZodString;
23
+ state: z.ZodString;
24
+ postcode: z.ZodString;
25
+ deliveryInstructions: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strip>;
27
+ export declare const prescriberSelectSchema: z.ZodObject<{
28
+ id: z.ZodNumber;
29
+ name: z.ZodString;
30
+ email: z.ZodString;
31
+ phone: z.ZodString;
32
+ }, z.core.$strip>;
33
+ export declare const healthInfoSchema: z.ZodObject<{
34
+ allergies: z.ZodNullable<z.ZodString>;
35
+ conditions: z.ZodNullable<z.ZodString>;
36
+ relevantHistory: z.ZodNullable<z.ZodString>;
37
+ currentMedications: z.ZodNullable<z.ZodString>;
38
+ prescriber: z.ZodNullable<z.ZodObject<{
39
+ id: z.ZodNumber;
40
+ name: z.ZodString;
41
+ email: z.ZodString;
42
+ phone: z.ZodString;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>;
45
+ export declare const scriptSelectSchema: z.ZodObject<{
46
+ id: z.ZodNumber;
47
+ prescriberId: z.ZodNumber;
48
+ patientRecordId: z.ZodNumber;
49
+ productId: z.ZodNumber;
50
+ dateIssued: z.ZodString;
51
+ processed: z.ZodBoolean;
52
+ repeatsRemaining: z.ZodNumber;
53
+ daysSupply: z.ZodNumber;
54
+ repeatStorage: z.ZodEnum<{
55
+ HEATHERSHAWS: "HEATHERSHAWS";
56
+ PHARMACY: "PHARMACY";
57
+ PATIENT: "PATIENT";
58
+ }>;
59
+ compoundDirectId: z.ZodNullable<z.ZodString>;
60
+ imageKey: z.ZodNullable<z.ZodString>;
61
+ }, z.core.$strip>;
62
+ export declare const orderSelectSchema: z.ZodObject<{
63
+ id: z.ZodNumber;
64
+ partnerPharmacyProfileId: z.ZodNullable<z.ZodNumber>;
65
+ patientRecordId: z.ZodNullable<z.ZodNumber>;
66
+ completed: z.ZodBoolean;
67
+ paymentModeAtOrder: z.ZodEnum<{
68
+ INVOICE: "INVOICE";
69
+ POS: "POS";
70
+ }>;
71
+ paymentStatus: z.ZodEnum<{
72
+ AWAITING_PAYMENT: "AWAITING_PAYMENT";
73
+ PAID: "PAID";
74
+ PENDING_INVOICE: "PENDING_INVOICE";
75
+ }>;
76
+ scriptType: z.ZodEnum<{
77
+ eRx: "eRx";
78
+ PAPER: "PAPER";
79
+ }>;
80
+ paperScriptReceived: z.ZodBoolean;
81
+ shippingType: z.ZodEnum<{
82
+ STANDARD: "STANDARD";
83
+ COLD_CHAIN: "COLD_CHAIN";
84
+ }>;
85
+ shippingFee: z.ZodString;
86
+ lineItems: z.ZodUnknown;
87
+ orderChangeNotes: z.ZodNullable<z.ZodString>;
88
+ counsellingRequired: z.ZodBoolean;
89
+ confirmationSentAt: z.ZodNullable<z.ZodDate>;
90
+ hubspotContactId: z.ZodNullable<z.ZodString>;
91
+ createdByUserId: z.ZodNullable<z.ZodString>;
92
+ }, z.core.$strip>;
93
+ export type Address = z.infer<typeof addressSchema>;
94
+ export type PrescriberSelect = z.infer<typeof prescriberSelectSchema>;
95
+ export type HealthInfo = z.infer<typeof healthInfoSchema>;
96
+ export type ScriptSelect = z.infer<typeof scriptSelectSchema>;
97
+ export type OrderSelect = z.infer<typeof orderSelectSchema>;
98
+ export declare const getByIdSchema: z.ZodObject<{
99
+ id: z.ZodPreprocess<z.ZodNumber>;
100
+ }, z.core.$strip>;
101
+ export declare const getAllSchema: z.ZodObject<{
102
+ page: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
103
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
104
+ }, z.core.$strip>;
105
+ export declare const devEmailSchema: z.ZodObject<{
106
+ to: z.ZodString;
107
+ name: z.ZodString;
108
+ number: z.ZodNumber;
109
+ }, z.core.$strip>;
110
+ export declare const smsSchema: z.ZodObject<{
111
+ body: z.ZodString;
112
+ to: z.ZodString;
113
+ from: z.ZodString;
114
+ }, z.core.$strip>;
115
+ export type GetById = z.infer<typeof getByIdSchema>;
116
+ export type GetAll = z.infer<typeof getAllSchema>;
117
+ export type DevEmail = z.infer<typeof devEmailSchema>;
118
+ export type Sms = z.infer<typeof smsSchema>;
119
+ export declare const createDirectUserProfileBodySchema: z.ZodObject<{
120
+ userId: z.ZodString;
121
+ patientRecordId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
122
+ compoundDirectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ remindersEnabled: z.ZodOptional<z.ZodBoolean>;
124
+ scriptSubmissions: z.ZodNullable<z.ZodArray<z.ZodObject<{
125
+ id: z.ZodNumber;
126
+ prescriberId: z.ZodNumber;
127
+ patientRecordId: z.ZodNumber;
128
+ productId: z.ZodNumber;
129
+ dateIssued: z.ZodString;
130
+ processed: z.ZodBoolean;
131
+ repeatsRemaining: z.ZodNumber;
132
+ daysSupply: z.ZodNumber;
133
+ repeatStorage: z.ZodEnum<{
134
+ HEATHERSHAWS: "HEATHERSHAWS";
135
+ PHARMACY: "PHARMACY";
136
+ PATIENT: "PATIENT";
137
+ }>;
138
+ compoundDirectId: z.ZodNullable<z.ZodString>;
139
+ imageKey: z.ZodNullable<z.ZodString>;
140
+ }, z.core.$strip>>>;
141
+ }, z.core.$strip>;
142
+ export declare const updateDirectUserProfileBodySchema: z.ZodObject<{
143
+ id: z.ZodNumber;
144
+ userId: z.ZodOptional<z.ZodString>;
145
+ patientRecordId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
146
+ compoundDirectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ remindersEnabled: z.ZodOptional<z.ZodBoolean>;
148
+ scriptSubmissions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
149
+ id: z.ZodNumber;
150
+ prescriberId: z.ZodNumber;
151
+ patientRecordId: z.ZodNumber;
152
+ productId: z.ZodNumber;
153
+ dateIssued: z.ZodString;
154
+ processed: z.ZodBoolean;
155
+ repeatsRemaining: z.ZodNumber;
156
+ daysSupply: z.ZodNumber;
157
+ repeatStorage: z.ZodEnum<{
158
+ HEATHERSHAWS: "HEATHERSHAWS";
159
+ PHARMACY: "PHARMACY";
160
+ PATIENT: "PATIENT";
161
+ }>;
162
+ compoundDirectId: z.ZodNullable<z.ZodString>;
163
+ imageKey: z.ZodNullable<z.ZodString>;
164
+ }, z.core.$strip>>>>;
165
+ }, z.core.$strip>;
166
+ export type CreateDirectUserProfileBody = z.infer<typeof createDirectUserProfileBodySchema>;
167
+ export type UpdateDirectUserProfileBody = z.infer<typeof updateDirectUserProfileBodySchema>;
168
+ export declare const createOrderBodySchema: z.ZodObject<{
169
+ partnerPharmacyProfileId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
170
+ patientRecordId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
171
+ completed: z.ZodOptional<z.ZodBoolean>;
172
+ paymentModeAtOrder: z.ZodEnum<{
173
+ INVOICE: "INVOICE";
174
+ POS: "POS";
175
+ }>;
176
+ paymentStatus: z.ZodEnum<{
177
+ AWAITING_PAYMENT: "AWAITING_PAYMENT";
178
+ PAID: "PAID";
179
+ PENDING_INVOICE: "PENDING_INVOICE";
180
+ }>;
181
+ scriptType: z.ZodEnum<{
182
+ eRx: "eRx";
183
+ PAPER: "PAPER";
184
+ }>;
185
+ paperScriptReceived: z.ZodOptional<z.ZodBoolean>;
186
+ shippingType: z.ZodEnum<{
187
+ STANDARD: "STANDARD";
188
+ COLD_CHAIN: "COLD_CHAIN";
189
+ }>;
190
+ shippingFee: z.ZodString;
191
+ lineItems: z.ZodOptional<z.ZodUnknown>;
192
+ orderChangeNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ counsellingRequired: z.ZodOptional<z.ZodBoolean>;
194
+ confirmationSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
195
+ hubspotContactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ createdByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ }, z.core.$strip>;
198
+ export declare const updateOrderBodySchema: z.ZodObject<{
199
+ id: z.ZodNumber;
200
+ partnerPharmacyProfileId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
201
+ patientRecordId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
202
+ completed: z.ZodOptional<z.ZodBoolean>;
203
+ paymentModeAtOrder: z.ZodOptional<z.ZodEnum<{
204
+ INVOICE: "INVOICE";
205
+ POS: "POS";
206
+ }>>;
207
+ paymentStatus: z.ZodOptional<z.ZodEnum<{
208
+ AWAITING_PAYMENT: "AWAITING_PAYMENT";
209
+ PAID: "PAID";
210
+ PENDING_INVOICE: "PENDING_INVOICE";
211
+ }>>;
212
+ scriptType: z.ZodOptional<z.ZodEnum<{
213
+ eRx: "eRx";
214
+ PAPER: "PAPER";
215
+ }>>;
216
+ paperScriptReceived: z.ZodOptional<z.ZodBoolean>;
217
+ shippingType: z.ZodOptional<z.ZodEnum<{
218
+ STANDARD: "STANDARD";
219
+ COLD_CHAIN: "COLD_CHAIN";
220
+ }>>;
221
+ shippingFee: z.ZodOptional<z.ZodString>;
222
+ lineItems: z.ZodOptional<z.ZodUnknown>;
223
+ orderChangeNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
+ counsellingRequired: z.ZodOptional<z.ZodBoolean>;
225
+ confirmationSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
226
+ hubspotContactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ createdByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
+ }, z.core.$strip>;
229
+ export type CreateOrderBody = z.infer<typeof createOrderBodySchema>;
230
+ export type UpdateOrderBody = z.infer<typeof updateOrderBodySchema>;
231
+ export declare const createPaperScriptReminderBodySchema: z.ZodObject<{
232
+ orderId: z.ZodNumber;
233
+ partnerPharmacyProfileId: z.ZodNumber;
234
+ status: z.ZodEnum<{
235
+ PENDING: "PENDING";
236
+ RECEIVED: "RECEIVED";
237
+ ESCALATED: "ESCALATED";
238
+ }>;
239
+ remindersSent: z.ZodNumber;
240
+ reminderIntervalDays: z.ZodOptional<z.ZodNumber>;
241
+ escalationEmail: z.ZodString;
242
+ receivedMarked: z.ZodBoolean;
243
+ }, z.core.$strip>;
244
+ export declare const updatePaperScriptReminderBodySchema: z.ZodObject<{
245
+ id: z.ZodNumber;
246
+ orderId: z.ZodOptional<z.ZodNumber>;
247
+ partnerPharmacyProfileId: z.ZodOptional<z.ZodNumber>;
248
+ status: z.ZodOptional<z.ZodEnum<{
249
+ PENDING: "PENDING";
250
+ RECEIVED: "RECEIVED";
251
+ ESCALATED: "ESCALATED";
252
+ }>>;
253
+ remindersSent: z.ZodOptional<z.ZodNumber>;
254
+ reminderIntervalDays: z.ZodOptional<z.ZodNumber>;
255
+ escalationEmail: z.ZodOptional<z.ZodString>;
256
+ receivedMarked: z.ZodOptional<z.ZodBoolean>;
257
+ }, z.core.$strip>;
258
+ export type CreatePaperScriptReminderBody = z.infer<typeof createPaperScriptReminderBodySchema>;
259
+ export type UpdatePaperScriptReminderBody = z.infer<typeof updatePaperScriptReminderBodySchema>;
260
+ export declare const createPartnerPharmacyProfileBodySchema: z.ZodObject<{
261
+ userId: z.ZodString;
262
+ abn: z.ZodString;
263
+ contactName: z.ZodString;
264
+ invoiceEmail: z.ZodString;
265
+ phone: z.ZodString;
266
+ discountTier: z.ZodString;
267
+ paymentMode: z.ZodEnum<{
268
+ INVOICE: "INVOICE";
269
+ POS: "POS";
270
+ }>;
271
+ remindersEnabled: z.ZodOptional<z.ZodBoolean>;
272
+ priceMatches: z.ZodOptional<z.ZodUnknown>;
273
+ dispatchAddress: z.ZodNullable<z.ZodObject<{
274
+ street: z.ZodString;
275
+ suburb: z.ZodString;
276
+ state: z.ZodString;
277
+ postcode: z.ZodString;
278
+ deliveryInstructions: z.ZodOptional<z.ZodString>;
279
+ }, z.core.$strip>>;
280
+ orders: z.ZodOptional<z.ZodUnknown>;
281
+ xeroContactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
+ }, z.core.$strip>;
283
+ export declare const updatePartnerPharmacyProfileBodySchema: z.ZodObject<{
284
+ id: z.ZodNumber;
285
+ userId: z.ZodOptional<z.ZodString>;
286
+ abn: z.ZodOptional<z.ZodString>;
287
+ contactName: z.ZodOptional<z.ZodString>;
288
+ invoiceEmail: z.ZodOptional<z.ZodString>;
289
+ phone: z.ZodOptional<z.ZodString>;
290
+ discountTier: z.ZodOptional<z.ZodString>;
291
+ paymentMode: z.ZodOptional<z.ZodEnum<{
292
+ INVOICE: "INVOICE";
293
+ POS: "POS";
294
+ }>>;
295
+ remindersEnabled: z.ZodOptional<z.ZodBoolean>;
296
+ priceMatches: z.ZodOptional<z.ZodUnknown>;
297
+ dispatchAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
298
+ street: z.ZodString;
299
+ suburb: z.ZodString;
300
+ state: z.ZodString;
301
+ postcode: z.ZodString;
302
+ deliveryInstructions: z.ZodOptional<z.ZodString>;
303
+ }, z.core.$strip>>>;
304
+ orders: z.ZodOptional<z.ZodUnknown>;
305
+ xeroContactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ }, z.core.$strip>;
307
+ export type CreatePartnerPharmacyProfileBody = z.infer<typeof createPartnerPharmacyProfileBodySchema>;
308
+ export type UpdatePartnerPharmacyProfileBody = z.infer<typeof updatePartnerPharmacyProfileBodySchema>;
309
+ export declare const getPatientRecordsQuerySchema: z.ZodObject<{
310
+ page: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
311
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
312
+ partner_pharmacy_profile_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
313
+ }, z.core.$strip>;
314
+ export declare const createPatientRecordBodySchema: z.ZodObject<{
315
+ partnerPharmacyProfileId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
316
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
+ firstName: z.ZodString;
318
+ lastName: z.ZodString;
319
+ dateOfBirth: z.ZodString;
320
+ medicareNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
321
+ phone: z.ZodString;
322
+ address: z.ZodNullable<z.ZodObject<{
323
+ street: z.ZodString;
324
+ suburb: z.ZodString;
325
+ state: z.ZodString;
326
+ postcode: z.ZodString;
327
+ deliveryInstructions: z.ZodOptional<z.ZodString>;
328
+ }, z.core.$strip>>;
329
+ healthInfo: z.ZodNullable<z.ZodObject<{
330
+ allergies: z.ZodNullable<z.ZodString>;
331
+ conditions: z.ZodNullable<z.ZodString>;
332
+ relevantHistory: z.ZodNullable<z.ZodString>;
333
+ currentMedications: z.ZodNullable<z.ZodString>;
334
+ prescriber: z.ZodNullable<z.ZodObject<{
335
+ id: z.ZodNumber;
336
+ name: z.ZodString;
337
+ email: z.ZodString;
338
+ phone: z.ZodString;
339
+ }, z.core.$strip>>;
340
+ }, z.core.$strip>>;
341
+ reminderEnabled: z.ZodOptional<z.ZodBoolean>;
342
+ scripts: z.ZodNullable<z.ZodArray<z.ZodObject<{
343
+ id: z.ZodNumber;
344
+ prescriberId: z.ZodNumber;
345
+ patientRecordId: z.ZodNumber;
346
+ productId: z.ZodNumber;
347
+ dateIssued: z.ZodString;
348
+ processed: z.ZodBoolean;
349
+ repeatsRemaining: z.ZodNumber;
350
+ daysSupply: z.ZodNumber;
351
+ repeatStorage: z.ZodEnum<{
352
+ HEATHERSHAWS: "HEATHERSHAWS";
353
+ PHARMACY: "PHARMACY";
354
+ PATIENT: "PATIENT";
355
+ }>;
356
+ compoundDirectId: z.ZodNullable<z.ZodString>;
357
+ imageKey: z.ZodNullable<z.ZodString>;
358
+ }, z.core.$strip>>>;
359
+ orderHistory: z.ZodNullable<z.ZodArray<z.ZodObject<{
360
+ id: z.ZodNumber;
361
+ partnerPharmacyProfileId: z.ZodNullable<z.ZodNumber>;
362
+ patientRecordId: z.ZodNullable<z.ZodNumber>;
363
+ completed: z.ZodBoolean;
364
+ paymentModeAtOrder: z.ZodEnum<{
365
+ INVOICE: "INVOICE";
366
+ POS: "POS";
367
+ }>;
368
+ paymentStatus: z.ZodEnum<{
369
+ AWAITING_PAYMENT: "AWAITING_PAYMENT";
370
+ PAID: "PAID";
371
+ PENDING_INVOICE: "PENDING_INVOICE";
372
+ }>;
373
+ scriptType: z.ZodEnum<{
374
+ eRx: "eRx";
375
+ PAPER: "PAPER";
376
+ }>;
377
+ paperScriptReceived: z.ZodBoolean;
378
+ shippingType: z.ZodEnum<{
379
+ STANDARD: "STANDARD";
380
+ COLD_CHAIN: "COLD_CHAIN";
381
+ }>;
382
+ shippingFee: z.ZodString;
383
+ lineItems: z.ZodUnknown;
384
+ orderChangeNotes: z.ZodNullable<z.ZodString>;
385
+ counsellingRequired: z.ZodBoolean;
386
+ confirmationSentAt: z.ZodNullable<z.ZodDate>;
387
+ hubspotContactId: z.ZodNullable<z.ZodString>;
388
+ createdByUserId: z.ZodNullable<z.ZodString>;
389
+ }, z.core.$strip>>>;
390
+ }, z.core.$strip>;
391
+ export declare const updatePatientRecordBodySchema: z.ZodObject<{
392
+ id: z.ZodNumber;
393
+ partnerPharmacyProfileId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
394
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
395
+ firstName: z.ZodOptional<z.ZodString>;
396
+ lastName: z.ZodOptional<z.ZodString>;
397
+ dateOfBirth: z.ZodOptional<z.ZodString>;
398
+ medicareNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
399
+ phone: z.ZodOptional<z.ZodString>;
400
+ address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
401
+ street: z.ZodString;
402
+ suburb: z.ZodString;
403
+ state: z.ZodString;
404
+ postcode: z.ZodString;
405
+ deliveryInstructions: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$strip>>>;
407
+ healthInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
408
+ allergies: z.ZodNullable<z.ZodString>;
409
+ conditions: z.ZodNullable<z.ZodString>;
410
+ relevantHistory: z.ZodNullable<z.ZodString>;
411
+ currentMedications: z.ZodNullable<z.ZodString>;
412
+ prescriber: z.ZodNullable<z.ZodObject<{
413
+ id: z.ZodNumber;
414
+ name: z.ZodString;
415
+ email: z.ZodString;
416
+ phone: z.ZodString;
417
+ }, z.core.$strip>>;
418
+ }, z.core.$strip>>>;
419
+ reminderEnabled: z.ZodOptional<z.ZodBoolean>;
420
+ scripts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
421
+ id: z.ZodNumber;
422
+ prescriberId: z.ZodNumber;
423
+ patientRecordId: z.ZodNumber;
424
+ productId: z.ZodNumber;
425
+ dateIssued: z.ZodString;
426
+ processed: z.ZodBoolean;
427
+ repeatsRemaining: z.ZodNumber;
428
+ daysSupply: z.ZodNumber;
429
+ repeatStorage: z.ZodEnum<{
430
+ HEATHERSHAWS: "HEATHERSHAWS";
431
+ PHARMACY: "PHARMACY";
432
+ PATIENT: "PATIENT";
433
+ }>;
434
+ compoundDirectId: z.ZodNullable<z.ZodString>;
435
+ imageKey: z.ZodNullable<z.ZodString>;
436
+ }, z.core.$strip>>>>;
437
+ orderHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
438
+ id: z.ZodNumber;
439
+ partnerPharmacyProfileId: z.ZodNullable<z.ZodNumber>;
440
+ patientRecordId: z.ZodNullable<z.ZodNumber>;
441
+ completed: z.ZodBoolean;
442
+ paymentModeAtOrder: z.ZodEnum<{
443
+ INVOICE: "INVOICE";
444
+ POS: "POS";
445
+ }>;
446
+ paymentStatus: z.ZodEnum<{
447
+ AWAITING_PAYMENT: "AWAITING_PAYMENT";
448
+ PAID: "PAID";
449
+ PENDING_INVOICE: "PENDING_INVOICE";
450
+ }>;
451
+ scriptType: z.ZodEnum<{
452
+ eRx: "eRx";
453
+ PAPER: "PAPER";
454
+ }>;
455
+ paperScriptReceived: z.ZodBoolean;
456
+ shippingType: z.ZodEnum<{
457
+ STANDARD: "STANDARD";
458
+ COLD_CHAIN: "COLD_CHAIN";
459
+ }>;
460
+ shippingFee: z.ZodString;
461
+ lineItems: z.ZodUnknown;
462
+ orderChangeNotes: z.ZodNullable<z.ZodString>;
463
+ counsellingRequired: z.ZodBoolean;
464
+ confirmationSentAt: z.ZodNullable<z.ZodDate>;
465
+ hubspotContactId: z.ZodNullable<z.ZodString>;
466
+ createdByUserId: z.ZodNullable<z.ZodString>;
467
+ }, z.core.$strip>>>>;
468
+ }, z.core.$strip>;
469
+ export type GetPatientRecordsQuery = z.infer<typeof getPatientRecordsQuerySchema>;
470
+ export type CreatePatientRecordBody = z.infer<typeof createPatientRecordBodySchema>;
471
+ export type UpdatePatientRecordBody = z.infer<typeof updatePatientRecordBodySchema>;
472
+ export declare const createPrescriberBodySchema: z.ZodObject<{
473
+ name: z.ZodString;
474
+ email: z.ZodString;
475
+ phone: z.ZodString;
476
+ }, z.core.$strip>;
477
+ export declare const updatePrescriberBodySchema: z.ZodObject<{
478
+ id: z.ZodNumber;
479
+ name: z.ZodOptional<z.ZodString>;
480
+ email: z.ZodOptional<z.ZodString>;
481
+ phone: z.ZodOptional<z.ZodString>;
482
+ }, z.core.$strip>;
483
+ export type CreatePrescriberBody = z.infer<typeof createPrescriberBodySchema>;
484
+ export type UpdatePrescriberBody = z.infer<typeof updatePrescriberBodySchema>;
485
+ export declare const createPriceMatchBodySchema: z.ZodObject<{
486
+ partnerPharmacyProfileId: z.ZodNumber;
487
+ productId: z.ZodNumber;
488
+ overridePrice: z.ZodString;
489
+ }, z.core.$strip>;
490
+ export declare const updatePriceMatchBodySchema: z.ZodObject<{
491
+ id: z.ZodNumber;
492
+ partnerPharmacyProfileId: z.ZodOptional<z.ZodNumber>;
493
+ productId: z.ZodOptional<z.ZodNumber>;
494
+ overridePrice: z.ZodOptional<z.ZodString>;
495
+ }, z.core.$strip>;
496
+ export type CreatePriceMatchBody = z.infer<typeof createPriceMatchBodySchema>;
497
+ export type UpdatePriceMatchBody = z.infer<typeof updatePriceMatchBodySchema>;
498
+ export declare const createProductBodySchema: z.ZodObject<{
499
+ name: z.ZodString;
500
+ imageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
501
+ abbreviations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
502
+ category: z.ZodEnum<{
503
+ TODO1: "TODO1";
504
+ TODO2: "TODO2";
505
+ TODO3: "TODO3";
506
+ }>;
507
+ rrp: z.ZodString;
508
+ hazardTags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
509
+ Hazardous: "Hazardous";
510
+ Cytotoxic: "Cytotoxic";
511
+ "High-Risk": "High-Risk";
512
+ }>>>>;
513
+ compoundDirectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
514
+ requiresFridge: z.ZodOptional<z.ZodBoolean>;
515
+ flavours: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
516
+ requiresS8Medicare: z.ZodOptional<z.ZodBoolean>;
517
+ }, z.core.$strip>;
518
+ export declare const updateProductBodySchema: z.ZodObject<{
519
+ id: z.ZodNumber;
520
+ name: z.ZodOptional<z.ZodString>;
521
+ imageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
522
+ abbreviations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
523
+ category: z.ZodOptional<z.ZodEnum<{
524
+ TODO1: "TODO1";
525
+ TODO2: "TODO2";
526
+ TODO3: "TODO3";
527
+ }>>;
528
+ rrp: z.ZodOptional<z.ZodString>;
529
+ hazardTags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
530
+ Hazardous: "Hazardous";
531
+ Cytotoxic: "Cytotoxic";
532
+ "High-Risk": "High-Risk";
533
+ }>>>>;
534
+ compoundDirectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
+ requiresFridge: z.ZodOptional<z.ZodBoolean>;
536
+ flavours: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
537
+ requiresS8Medicare: z.ZodOptional<z.ZodBoolean>;
538
+ }, z.core.$strip>;
539
+ export type CreateProductBody = z.infer<typeof createProductBodySchema>;
540
+ export type UpdateProductBody = z.infer<typeof updateProductBodySchema>;
541
+ export declare const createQuoteBodySchema: z.ZodObject<{
542
+ status: z.ZodOptional<z.ZodEnum<{
543
+ PENDING: "PENDING";
544
+ PROCESSING: "PROCESSING";
545
+ RESOLVED: "RESOLVED";
546
+ }>>;
547
+ partnerPharmacyProfileId: z.ZodNumber;
548
+ name: z.ZodString;
549
+ strength: z.ZodString;
550
+ form: z.ZodString;
551
+ quantity: z.ZodNumber;
552
+ patientContext: z.ZodString;
553
+ }, z.core.$strip>;
554
+ export declare const updateQuoteBodySchema: z.ZodObject<{
555
+ id: z.ZodNumber;
556
+ status: z.ZodOptional<z.ZodEnum<{
557
+ PENDING: "PENDING";
558
+ PROCESSING: "PROCESSING";
559
+ RESOLVED: "RESOLVED";
560
+ }>>;
561
+ partnerPharmacyProfileId: z.ZodOptional<z.ZodNumber>;
562
+ name: z.ZodOptional<z.ZodString>;
563
+ strength: z.ZodOptional<z.ZodString>;
564
+ form: z.ZodOptional<z.ZodString>;
565
+ quantity: z.ZodOptional<z.ZodNumber>;
566
+ patientContext: z.ZodOptional<z.ZodString>;
567
+ }, z.core.$strip>;
568
+ export type CreateQuoteBody = z.infer<typeof createQuoteBodySchema>;
569
+ export type UpdateQuoteBody = z.infer<typeof updateQuoteBodySchema>;
570
+ export declare const createRepeatReminderBodySchema: z.ZodObject<{
571
+ orderId: z.ZodNumber;
572
+ patientRecordId: z.ZodNumber;
573
+ daysSupply: z.ZodNumber;
574
+ dispatchedAt: z.ZodCoercedDate<unknown>;
575
+ reminderDueAt: z.ZodCoercedDate<unknown>;
576
+ reminderOffsetDays: z.ZodOptional<z.ZodNumber>;
577
+ pharmacyReminderSent: z.ZodOptional<z.ZodBoolean>;
578
+ patientSmsSent: z.ZodOptional<z.ZodBoolean>;
579
+ enabled: z.ZodOptional<z.ZodBoolean>;
580
+ }, z.core.$strip>;
581
+ export declare const updateRepeatReminderBodySchema: z.ZodObject<{
582
+ id: z.ZodNumber;
583
+ orderId: z.ZodOptional<z.ZodNumber>;
584
+ patientRecordId: z.ZodOptional<z.ZodNumber>;
585
+ daysSupply: z.ZodOptional<z.ZodNumber>;
586
+ dispatchedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
587
+ reminderDueAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
588
+ reminderOffsetDays: z.ZodOptional<z.ZodNumber>;
589
+ pharmacyReminderSent: z.ZodOptional<z.ZodBoolean>;
590
+ patientSmsSent: z.ZodOptional<z.ZodBoolean>;
591
+ enabled: z.ZodOptional<z.ZodBoolean>;
592
+ }, z.core.$strip>;
593
+ export type CreateRepeatReminderBody = z.infer<typeof createRepeatReminderBodySchema>;
594
+ export type UpdateRepeatReminderBody = z.infer<typeof updateRepeatReminderBodySchema>;
595
+ export declare const createScriptBodySchema: z.ZodObject<{
596
+ prescriberId: z.ZodNumber;
597
+ patientRecordId: z.ZodNumber;
598
+ productId: z.ZodNumber;
599
+ dateIssued: z.ZodString;
600
+ processed: z.ZodOptional<z.ZodBoolean>;
601
+ repeatsRemaining: z.ZodOptional<z.ZodNumber>;
602
+ daysSupply: z.ZodNumber;
603
+ repeatStorage: z.ZodEnum<{
604
+ HEATHERSHAWS: "HEATHERSHAWS";
605
+ PHARMACY: "PHARMACY";
606
+ PATIENT: "PATIENT";
607
+ }>;
608
+ compoundDirectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
609
+ imageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
+ }, z.core.$strip>;
611
+ export declare const updateScriptBodySchema: z.ZodObject<{
612
+ id: z.ZodNumber;
613
+ prescriberId: z.ZodOptional<z.ZodNumber>;
614
+ patientRecordId: z.ZodOptional<z.ZodNumber>;
615
+ productId: z.ZodOptional<z.ZodNumber>;
616
+ dateIssued: z.ZodOptional<z.ZodString>;
617
+ processed: z.ZodOptional<z.ZodBoolean>;
618
+ repeatsRemaining: z.ZodOptional<z.ZodNumber>;
619
+ daysSupply: z.ZodOptional<z.ZodNumber>;
620
+ repeatStorage: z.ZodOptional<z.ZodEnum<{
621
+ HEATHERSHAWS: "HEATHERSHAWS";
622
+ PHARMACY: "PHARMACY";
623
+ PATIENT: "PATIENT";
624
+ }>>;
625
+ compoundDirectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
626
+ imageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
627
+ }, z.core.$strip>;
628
+ export type CreateScriptBody = z.infer<typeof createScriptBodySchema>;
629
+ export type UpdateScriptBody = z.infer<typeof updateScriptBodySchema>;
@@ -1,5 +1,5 @@
1
1
  import { z as e } from "zod";
2
- //#region validators.js
2
+ //#region validators.ts
3
3
  var t = [
4
4
  "PENDING",
5
5
  "RECEIVED",
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Validation and interfaces to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",
7
7
  "type": "module",
8
- "main": "build/validators.cjs.js",
9
- "module": "build/validators.es.js",
8
+ "module": "build/validators.js",
9
+ "types": "build/validators.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "import": "./build/validators.es.js",
13
- "require": "./build/validators.cjs.js"
12
+ "types": "./build/validators.d.ts",
13
+ "import": "./build/validators.js"
14
14
  }
15
15
  },
16
16
  "peerDependencies": {
@@ -20,10 +20,11 @@
20
20
  "build"
21
21
  ],
22
22
  "scripts": {
23
- "test": "exit 0",
24
23
  "build": "vite build"
25
24
  },
26
- "dependencies": {
27
- "vite": "^8.0.16"
25
+ "devDependencies": {
26
+ "typescript": "^6.0.3",
27
+ "vite": "^8.0.16",
28
+ "vite-plugin-dts": "^5.0.2"
28
29
  }
29
30
  }
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("zod");var t=[`PENDING`,`RECEIVED`,`ESCALATED`],n=[`PENDING`,`PROCESSING`,`RESOLVED`],r=[`INVOICE`,`POS`],i=[`AWAITING_PAYMENT`,`PAID`,`PENDING_INVOICE`],a=[`TODO1`,`TODO2`,`TODO3`],o=[`HEATHERSHAWS`,`PHARMACY`,`PATIENT`],s=[`eRx`,`PAPER`],c=[`STANDARD`,`COLD_CHAIN`],l=[`Hazardous`,`Cytotoxic`,`High-Risk`],u=e.z.object({street:e.z.string().min(1),suburb:e.z.string().min(1),state:e.z.string().min(1),postcode:e.z.string().min(1),deliveryInstructions:e.z.string().optional()}),d=e.z.object({id:e.z.number(),name:e.z.string(),email:e.z.string(),phone:e.z.string()}),f=e.z.object({allergies:e.z.string().nullable(),conditions:e.z.string().nullable(),relevantHistory:e.z.string().nullable(),currentMedications:e.z.string().nullable(),prescriber:d.nullable()}),p=e.z.object({id:e.z.number(),prescriberId:e.z.number(),patientRecordId:e.z.number(),productId:e.z.number(),dateIssued:e.z.string(),processed:e.z.boolean(),repeatsRemaining:e.z.number(),daysSupply:e.z.number(),repeatStorage:e.z.enum(o),compoundDirectId:e.z.string().nullable(),imageKey:e.z.string().nullable()}),m=e.z.object({id:e.z.number(),partnerPharmacyProfileId:e.z.number().nullable(),patientRecordId:e.z.number().nullable(),completed:e.z.boolean(),paymentModeAtOrder:e.z.enum(r),paymentStatus:e.z.enum(i),scriptType:e.z.enum(s),paperScriptReceived:e.z.boolean(),shippingType:e.z.enum(c),shippingFee:e.z.string(),lineItems:e.z.unknown(),orderChangeNotes:e.z.string().nullable(),counsellingRequired:e.z.boolean(),confirmationSentAt:e.z.date().nullable(),hubspotContactId:e.z.string().nullable(),createdByUserId:e.z.string().nullable()}),h=e.z.object({id:e.z.preprocess(e=>typeof e==`string`&&e!==``?Number(e):e,e.z.number().int().min(1))}),g=e.z.object({page:e.z.preprocess(e=>{if(typeof e==`string`&&e!==``)return Number(e)},e.z.number().int().min(1).optional()),limit:e.z.preprocess(e=>{if(typeof e==`string`&&e!==``)return Number(e)},e.z.number().int().min(1).max(100).optional())}),_=e.z.object({to:e.z.string(),name:e.z.string(),number:e.z.number()}),v=e.z.object({body:e.z.string(),to:e.z.string(),from:e.z.string()}),y=e.z.object({userId:e.z.string(),patientRecordId:e.z.number().int().nullable().optional(),compoundDirectId:e.z.string().nullable().optional(),remindersEnabled:e.z.boolean().optional(),scriptSubmissions:e.z.array(p).nullable()}),b=e.z.object({id:e.z.number().int().min(1),userId:e.z.string().optional(),patientRecordId:e.z.number().int().nullable().optional(),compoundDirectId:e.z.string().nullable().optional(),remindersEnabled:e.z.boolean().optional(),scriptSubmissions:e.z.array(p).nullable().optional()}),x=e.z.object({partnerPharmacyProfileId:e.z.number().int().nullable().optional(),patientRecordId:e.z.number().int().nullable().optional(),completed:e.z.boolean().optional(),paymentModeAtOrder:e.z.enum(r),paymentStatus:e.z.enum(i),scriptType:e.z.enum(s),paperScriptReceived:e.z.boolean().optional(),shippingType:e.z.enum(c),shippingFee:e.z.string(),lineItems:e.z.unknown().optional(),orderChangeNotes:e.z.string().nullable().optional(),counsellingRequired:e.z.boolean().optional(),confirmationSentAt:e.z.coerce.date().nullable().optional(),hubspotContactId:e.z.string().nullable().optional(),createdByUserId:e.z.string().nullable().optional()}),S=e.z.object({id:e.z.number().int().min(1),partnerPharmacyProfileId:e.z.number().int().nullable().optional(),patientRecordId:e.z.number().int().nullable().optional(),completed:e.z.boolean().optional(),paymentModeAtOrder:e.z.enum(r).optional(),paymentStatus:e.z.enum(i).optional(),scriptType:e.z.enum(s).optional(),paperScriptReceived:e.z.boolean().optional(),shippingType:e.z.enum(c).optional(),shippingFee:e.z.string().optional(),lineItems:e.z.unknown().optional(),orderChangeNotes:e.z.string().nullable().optional(),counsellingRequired:e.z.boolean().optional(),confirmationSentAt:e.z.coerce.date().nullable().optional(),hubspotContactId:e.z.string().nullable().optional(),createdByUserId:e.z.string().nullable().optional()}),C=e.z.object({orderId:e.z.number().int(),partnerPharmacyProfileId:e.z.number().int(),status:e.z.enum(t),remindersSent:e.z.number().int(),reminderIntervalDays:e.z.number().int().optional(),escalationEmail:e.z.string(),receivedMarked:e.z.boolean()}),w=e.z.object({id:e.z.number().int().min(1),orderId:e.z.number().int().optional(),partnerPharmacyProfileId:e.z.number().int().optional(),status:e.z.enum(t).optional(),remindersSent:e.z.number().int().optional(),reminderIntervalDays:e.z.number().int().optional(),escalationEmail:e.z.string().optional(),receivedMarked:e.z.boolean().optional()}),T=e.z.object({userId:e.z.string(),abn:e.z.string(),contactName:e.z.string(),invoiceEmail:e.z.string(),phone:e.z.string(),discountTier:e.z.string(),paymentMode:e.z.enum(r),remindersEnabled:e.z.boolean().optional(),priceMatches:e.z.unknown().optional(),dispatchAddress:u.nullable(),orders:e.z.unknown().optional(),xeroContactId:e.z.string().nullable().optional()}),E=e.z.object({id:e.z.number().int().min(1),userId:e.z.string().optional(),abn:e.z.string().optional(),contactName:e.z.string().optional(),invoiceEmail:e.z.string().optional(),phone:e.z.string().optional(),discountTier:e.z.string().optional(),paymentMode:e.z.enum(r).optional(),remindersEnabled:e.z.boolean().optional(),priceMatches:e.z.unknown().optional(),dispatchAddress:u.nullable().optional(),orders:e.z.unknown().optional(),xeroContactId:e.z.string().nullable().optional()}),D=g.extend({partner_pharmacy_profile_id:e.z.preprocess(e=>{if(typeof e==`string`&&e!==``)return Number(e)},e.z.number().int().min(1).optional())}),O=e.z.object({partnerPharmacyProfileId:e.z.number().int().nullable().optional(),userId:e.z.string().nullable().optional(),firstName:e.z.string(),lastName:e.z.string(),dateOfBirth:e.z.string(),medicareNumber:e.z.string().nullable().optional(),phone:e.z.string(),address:u.nullable(),healthInfo:f.nullable(),reminderEnabled:e.z.boolean().optional(),scripts:e.z.array(p).nullable(),orderHistory:e.z.array(m).nullable()}),k=e.z.object({id:e.z.number().int().min(1),partnerPharmacyProfileId:e.z.number().int().nullable().optional(),userId:e.z.string().nullable().optional(),firstName:e.z.string().optional(),lastName:e.z.string().optional(),dateOfBirth:e.z.string().optional(),medicareNumber:e.z.string().nullable().optional(),phone:e.z.string().optional(),address:u.nullable().optional(),healthInfo:f.nullable().optional(),reminderEnabled:e.z.boolean().optional(),scripts:e.z.array(p).nullable().optional(),orderHistory:e.z.array(m).nullable().optional()}),A=e.z.object({name:e.z.string(),email:e.z.string(),phone:e.z.string()}),j=e.z.object({id:e.z.number().int().min(1),name:e.z.string().optional(),email:e.z.string().optional(),phone:e.z.string().optional()}),M=e.z.object({partnerPharmacyProfileId:e.z.number().int(),productId:e.z.number().int(),overridePrice:e.z.string()}),N=e.z.object({id:e.z.number().int().min(1),partnerPharmacyProfileId:e.z.number().int().optional(),productId:e.z.number().int().optional(),overridePrice:e.z.string().optional()}),P=e.z.object({name:e.z.string(),imageKey:e.z.string().nullable().optional(),abbreviations:e.z.array(e.z.string()).nullable().optional(),category:e.z.enum(a),rrp:e.z.string(),hazardTags:e.z.array(e.z.enum(l)).nullable().optional(),compoundDirectId:e.z.string().nullable().optional(),requiresFridge:e.z.boolean().optional(),flavours:e.z.array(e.z.string()).nullable().optional(),requiresS8Medicare:e.z.boolean().optional()}),F=e.z.object({id:e.z.number().int().min(1),name:e.z.string().optional(),imageKey:e.z.string().nullable().optional(),abbreviations:e.z.array(e.z.string()).nullable().optional(),category:e.z.enum(a).optional(),rrp:e.z.string().optional(),hazardTags:e.z.array(e.z.enum(l)).nullable().optional(),compoundDirectId:e.z.string().nullable().optional(),requiresFridge:e.z.boolean().optional(),flavours:e.z.array(e.z.string()).nullable().optional(),requiresS8Medicare:e.z.boolean().optional()}),I=e.z.object({status:e.z.enum(n).optional(),partnerPharmacyProfileId:e.z.number().int(),name:e.z.string(),strength:e.z.string(),form:e.z.string(),quantity:e.z.number().int(),patientContext:e.z.string()}),L=e.z.object({id:e.z.number().int().min(1),status:e.z.enum(n).optional(),partnerPharmacyProfileId:e.z.number().int().optional(),name:e.z.string().optional(),strength:e.z.string().optional(),form:e.z.string().optional(),quantity:e.z.number().int().optional(),patientContext:e.z.string().optional()}),R=e.z.object({orderId:e.z.number().int(),patientRecordId:e.z.number().int(),daysSupply:e.z.number().int(),dispatchedAt:e.z.coerce.date(),reminderDueAt:e.z.coerce.date(),reminderOffsetDays:e.z.number().int().optional(),pharmacyReminderSent:e.z.boolean().optional(),patientSmsSent:e.z.boolean().optional(),enabled:e.z.boolean().optional()}),z=e.z.object({id:e.z.number().int().min(1),orderId:e.z.number().int().optional(),patientRecordId:e.z.number().int().optional(),daysSupply:e.z.number().int().optional(),dispatchedAt:e.z.coerce.date().optional(),reminderDueAt:e.z.coerce.date().optional(),reminderOffsetDays:e.z.number().int().optional(),pharmacyReminderSent:e.z.boolean().optional(),patientSmsSent:e.z.boolean().optional(),enabled:e.z.boolean().optional()}),B=e.z.object({prescriberId:e.z.number().int(),patientRecordId:e.z.number().int(),productId:e.z.number().int(),dateIssued:e.z.string(),processed:e.z.boolean().optional(),repeatsRemaining:e.z.number().int().optional(),daysSupply:e.z.number().int(),repeatStorage:e.z.enum(o),compoundDirectId:e.z.string().nullable().optional(),imageKey:e.z.string().nullable().optional()}),V=e.z.object({id:e.z.number().int().min(1),prescriberId:e.z.number().int().optional(),patientRecordId:e.z.number().int().optional(),productId:e.z.number().int().optional(),dateIssued:e.z.string().optional(),processed:e.z.boolean().optional(),repeatsRemaining:e.z.number().int().optional(),daysSupply:e.z.number().int().optional(),repeatStorage:e.z.enum(o).optional(),compoundDirectId:e.z.string().nullable().optional(),imageKey:e.z.string().nullable().optional()});exports.addressSchema=u,exports.createDirectUserProfileBodySchema=y,exports.createOrderBodySchema=x,exports.createPaperScriptReminderBodySchema=C,exports.createPartnerPharmacyProfileBodySchema=T,exports.createPatientRecordBodySchema=O,exports.createPrescriberBodySchema=A,exports.createPriceMatchBodySchema=M,exports.createProductBodySchema=P,exports.createQuoteBodySchema=I,exports.createRepeatReminderBodySchema=R,exports.createScriptBodySchema=B,exports.devEmailSchema=_,exports.getAllSchema=g,exports.getByIdSchema=h,exports.getPatientRecordsQuerySchema=D,exports.hazardTagsValues=l,exports.healthInfoSchema=f,exports.orderSelectSchema=m,exports.paperScriptReminderStatusValues=t,exports.paymentModeAtOrderValues=r,exports.paymentStatusValues=i,exports.prescriberSelectSchema=d,exports.productCategoryValues=a,exports.quoteStatusValues=n,exports.repeatStorageValues=o,exports.scriptSelectSchema=p,exports.scriptTypeValues=s,exports.shippingTypeValues=c,exports.smsSchema=v,exports.updateDirectUserProfileBodySchema=b,exports.updateOrderBodySchema=S,exports.updatePaperScriptReminderBodySchema=w,exports.updatePartnerPharmacyProfileBodySchema=E,exports.updatePatientRecordBodySchema=k,exports.updatePrescriberBodySchema=j,exports.updatePriceMatchBodySchema=N,exports.updateProductBodySchema=F,exports.updateQuoteBodySchema=L,exports.updateRepeatReminderBodySchema=z,exports.updateScriptBodySchema=V;