@natch-the-storage/heathershaw-platform-types 1.7.0 → 1.7.1

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.
@@ -46,20 +46,40 @@ export interface ScriptSelect {
46
46
  export interface OrderSelect {
47
47
  id: number;
48
48
  partnerPharmacyProfileId: number | null;
49
- patientRecordId: number | null;
50
- completed: boolean;
49
+ directUserProfileId: number | null;
50
+ trackingNumber: string;
51
+ status: boolean;
51
52
  paymentModeAtOrder: PaymentModeAtOrder;
52
53
  paymentStatus: PaymentStatus;
53
- scriptType: ScriptType;
54
- paperScriptReceived: boolean;
54
+ store: string;
55
+ staff: string;
55
56
  shippingType: ShippingType;
56
57
  shippingFee: string;
57
- lineItems: unknown;
58
+ lineItems: LineItem[];
58
59
  orderChangeNotes: string | null;
59
60
  counsellingRequired: boolean;
60
- confirmationSentAt: Date | null;
61
- hubspotContactId: string | null;
62
- createdByUserId: string | null;
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;
63
83
  }
64
84
  export interface GetById {
65
85
  id: number;
@@ -90,37 +110,45 @@ export interface DirectUserProfileCreate {
90
110
  export interface Order {
91
111
  id: number;
92
112
  partnerPharmacyProfileId?: number | null;
93
- patientRecordId?: number | null;
94
- completed?: boolean;
113
+ directUserProfileId?: number | null;
114
+ trackingNumber?: string;
115
+ status?: boolean;
95
116
  paymentModeAtOrder?: PaymentModeAtOrder;
96
117
  paymentStatus?: PaymentStatus;
97
- scriptType?: ScriptType;
98
- paperScriptReceived?: boolean;
118
+ store?: string;
119
+ staff?: string;
99
120
  shippingType?: ShippingType;
100
121
  shippingFee?: string;
101
- lineItems?: unknown;
122
+ lineItems?: LineItem[];
102
123
  orderChangeNotes?: string | null;
103
124
  counsellingRequired?: boolean;
104
- confirmationSentAt?: Date | null;
105
- hubspotContactId?: string | null;
106
- createdByUserId?: string | null;
125
+ counsellingPriority?: string;
126
+ counselledBy?: string;
127
+ consellingNotes?: string;
128
+ counselledStatus?: string;
129
+ confirmationSentAt?: Date;
130
+ hubspotContactId?: string;
107
131
  }
108
132
  export interface OrderCreate {
109
133
  paymentModeAtOrder: PaymentModeAtOrder;
110
134
  paymentStatus: PaymentStatus;
111
- scriptType: ScriptType;
112
135
  shippingType: ShippingType;
113
136
  shippingFee: string;
114
137
  partnerPharmacyProfileId?: number | null;
115
- patientRecordId?: number | null;
116
- completed?: boolean;
117
- paperScriptReceived?: boolean;
118
- lineItems?: unknown;
138
+ directUserProfileId?: number | null;
139
+ trackingNumber?: string;
140
+ status?: boolean;
141
+ store?: string;
142
+ staff?: string;
143
+ lineItems?: LineItem[];
119
144
  orderChangeNotes?: string | null;
120
145
  counsellingRequired?: boolean;
121
- confirmationSentAt?: Date | null;
122
- hubspotContactId?: string | null;
123
- createdByUserId?: string | null;
146
+ counsellingPriority?: string;
147
+ counselledBy?: string;
148
+ consellingNotes?: string;
149
+ counselledStatus?: string;
150
+ confirmationSentAt?: Date;
151
+ hubspotContactId?: string;
124
152
  }
125
153
  export interface PaperScriptReminder {
126
154
  id: number;
@@ -190,7 +218,6 @@ export interface PatientRecord {
190
218
  orderHistory?: OrderSelect[];
191
219
  animalSpecies?: string;
192
220
  relationship?: string | null;
193
- cartId?: string | null;
194
221
  }
195
222
  export interface PatientRecordCreate {
196
223
  firstName: string;
@@ -209,7 +236,6 @@ export interface PatientRecordCreate {
209
236
  orderHistory?: OrderSelect[];
210
237
  animalSpecies?: string;
211
238
  relationship?: string | null;
212
- cartId?: string | null;
213
239
  }
214
240
  export interface PriceMatch {
215
241
  id: number;
@@ -308,12 +334,12 @@ export interface PaperScriptCreate {
308
334
  fileKey: string;
309
335
  }
310
336
  export interface Cart {
311
- patientRecordId: number;
337
+ id: number;
312
338
  items: any[];
313
339
  updatedAt: Date;
314
340
  }
315
341
  export interface CartUpdate {
316
- patientRecordId: number;
342
+ id: number;
317
343
  items: any[];
318
344
  }
319
345
  export declare const CompoundDirectAnimalId: {
@@ -582,7 +608,7 @@ export declare const ApiRoutes: {
582
608
  };
583
609
  email: {};
584
610
  cart: {
585
- get: (userId: string) => string;
611
+ get: (id: number) => string;
586
612
  put: string;
587
613
  };
588
614
  compoundDirect: {
@@ -142,7 +142,7 @@ export const ApiRoutes = {
142
142
  },
143
143
  email: {},
144
144
  cart: {
145
- get: (userId) => `/api/carts/${userId}`,
145
+ get: (id) => `/api/carts/${id}`,
146
146
  put: '/api/carts',
147
147
  },
148
148
  compoundDirect: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",