@natch-the-storage/heathershaw-platform-types 1.10.25 → 1.10.26
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 +13 -39
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -325,38 +325,26 @@ export interface Script {
|
|
|
325
325
|
id: number;
|
|
326
326
|
patientRecordId: number;
|
|
327
327
|
partnerPharmacyProfileId?: number;
|
|
328
|
-
uploaded: string;
|
|
329
328
|
processed: boolean;
|
|
330
329
|
token?: string | null;
|
|
331
330
|
fileKey?: string | null;
|
|
332
331
|
fileName?: string | null;
|
|
332
|
+
created: string;
|
|
333
333
|
}
|
|
334
|
-
export
|
|
335
|
-
id: number;
|
|
336
|
-
patientRecordId: number;
|
|
337
|
-
partnerPharmacyProfileId?: number;
|
|
338
|
-
uploaded: string;
|
|
339
|
-
processed: boolean;
|
|
340
|
-
token?: string | null;
|
|
341
|
-
fileKey?: string | null;
|
|
342
|
-
fileName?: string | null;
|
|
334
|
+
export type AdminScript = Script & {
|
|
343
335
|
firstName: string;
|
|
344
336
|
lastName: string;
|
|
345
337
|
dateOfBirth: string;
|
|
346
338
|
phone: string;
|
|
347
339
|
email: string;
|
|
348
|
-
}
|
|
349
|
-
export
|
|
350
|
-
patientRecordId: number;
|
|
351
|
-
partnerPharmacyProfileId?: number;
|
|
340
|
+
};
|
|
341
|
+
export type EScriptCreate = Pick<Script, 'patientRecordId' | 'partnerPharmacyProfileId'> & {
|
|
352
342
|
token: string;
|
|
353
|
-
}
|
|
354
|
-
export
|
|
355
|
-
patientRecordId: number;
|
|
356
|
-
partnerPharmacyProfileId?: number;
|
|
343
|
+
};
|
|
344
|
+
export type PaperScriptCreate = Pick<Script, 'patientRecordId' | 'partnerPharmacyProfileId'> & {
|
|
357
345
|
fileKey: string;
|
|
358
346
|
fileName: string;
|
|
359
|
-
}
|
|
347
|
+
};
|
|
360
348
|
export interface getScriptsQuery {
|
|
361
349
|
patientRecordId?: number;
|
|
362
350
|
partnerPharmacyProfileId?: number;
|
|
@@ -371,24 +359,14 @@ export interface StaffProfile {
|
|
|
371
359
|
name: string;
|
|
372
360
|
status: StaffProfileStatus;
|
|
373
361
|
}
|
|
374
|
-
export
|
|
375
|
-
userId: string;
|
|
376
|
-
role: StaffProfileRole;
|
|
377
|
-
name: string;
|
|
378
|
-
status: StaffProfileStatus;
|
|
379
|
-
}
|
|
362
|
+
export type StaffProfileCreate = Omit<StaffProfile, 'id'>;
|
|
380
363
|
/**
|
|
381
|
-
* A union of the StaffProfile with the
|
|
364
|
+
* A union of the StaffProfile with the username and email fields from the user
|
|
382
365
|
*/
|
|
383
|
-
export
|
|
384
|
-
id: number;
|
|
385
|
-
userId: string;
|
|
386
|
-
name: string;
|
|
387
|
-
email: string;
|
|
366
|
+
export type StaffProfileWithUser = StaffProfile & {
|
|
388
367
|
username: string;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
}
|
|
368
|
+
email: string;
|
|
369
|
+
};
|
|
392
370
|
export interface GetStaffProfilesQuery {
|
|
393
371
|
page?: number;
|
|
394
372
|
limit?: number;
|
|
@@ -401,11 +379,7 @@ export interface Cart {
|
|
|
401
379
|
items: LineItem[];
|
|
402
380
|
updatedAt: Date;
|
|
403
381
|
}
|
|
404
|
-
export
|
|
405
|
-
directUserProfileId?: number;
|
|
406
|
-
partnerPharmacyProfileId?: number;
|
|
407
|
-
items: LineItem[];
|
|
408
|
-
}
|
|
382
|
+
export type CartUpdate = Omit<Cart, 'id' | 'updatedAt'>;
|
|
409
383
|
export declare const CompoundDirectAnimalId: {
|
|
410
384
|
readonly dog: {
|
|
411
385
|
readonly id: 1;
|