@natch-the-storage/heathershaw-platform-types 1.10.4 → 1.10.6

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.
@@ -48,6 +48,7 @@ export interface LineItem {
48
48
  scriptDetails?: {
49
49
  token?: string;
50
50
  fileKey?: string;
51
+ fileName?: string;
51
52
  };
52
53
  paperScriptReceived: boolean;
53
54
  otherScriptProperties: {
@@ -252,6 +253,7 @@ export interface PatientRecord {
252
253
  lastName: string;
253
254
  dateOfBirth: string;
254
255
  medicareNumber?: string | null;
256
+ email: string;
255
257
  phone: string;
256
258
  addresses?: Address[];
257
259
  healthInfo?: HealthInfo;
@@ -269,6 +271,7 @@ export interface PatientRecordCreate {
269
271
  firstName: string;
270
272
  lastName: string;
271
273
  dateOfBirth: string;
274
+ email: string;
272
275
  phone: string;
273
276
  medicareNumber?: string | null;
274
277
  addresses?: Address[];
@@ -346,6 +349,22 @@ export interface Script {
346
349
  processed: boolean;
347
350
  token?: string | null;
348
351
  fileKey?: string | null;
352
+ fileName?: string | null;
353
+ }
354
+ export interface AdminScript {
355
+ id: number;
356
+ patientRecordId: number;
357
+ partnerPharmacyProfileId?: number;
358
+ uploaded: string;
359
+ processed: boolean;
360
+ token?: string | null;
361
+ fileKey?: string | null;
362
+ fileName?: string | null;
363
+ firstName: string;
364
+ lastName: string;
365
+ dateOfBirth: string;
366
+ phone: string;
367
+ email: string;
349
368
  }
350
369
  export interface EScriptCreate {
351
370
  patientRecordId: number;
@@ -356,6 +375,7 @@ export interface PaperScriptCreate {
356
375
  patientRecordId: number;
357
376
  partnerPharmacyProfileId?: number;
358
377
  fileKey: string;
378
+ fileName: string;
359
379
  }
360
380
  export interface getScriptsQuery {
361
381
  patientRecordId?: number;
@@ -743,6 +763,7 @@ export declare const ApiRoutes: {
743
763
  scripts: {
744
764
  get: (filters?: getScriptsQuery) => string;
745
765
  getById: (id: number) => string;
766
+ getAdminScripts: string;
746
767
  createEscript: string;
747
768
  createPaperScript: string;
748
769
  update: string;
@@ -766,6 +787,7 @@ export declare const ApiRoutes: {
766
787
  };
767
788
  uploads: {
768
789
  presign: string;
790
+ getFile: (key: string) => string;
769
791
  delete: string;
770
792
  };
771
793
  users: {
@@ -187,6 +187,7 @@ export const ApiRoutes = {
187
187
  return `/api/scripts${query ? `?${query}` : ''}`;
188
188
  },
189
189
  getById: (id) => `/api/scripts/${id}`,
190
+ getAdminScripts: '/api/scripts/admin-scripts',
190
191
  createEscript: '/api/scripts/escripts',
191
192
  createPaperScript: '/api/scripts/paper-scripts',
192
193
  update: '/api/scripts',
@@ -216,6 +217,7 @@ export const ApiRoutes = {
216
217
  },
217
218
  uploads: {
218
219
  presign: '/api/uploads/presign',
220
+ getFile: (key) => `/api/uploads/presign${key ? '?key=' + key : ''}`,
219
221
  delete: '/api/uploads',
220
222
  },
221
223
  users: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.10.4",
3
+ "version": "1.10.6",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",