@natch-the-storage/heathershaw-platform-types 1.10.12 → 1.10.14

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.
@@ -1,7 +1,7 @@
1
1
  export declare const orderStatusValues: readonly ["received", "processing", "dispatched", "delivered", "completed"];
2
2
  export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
3
3
  export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED"];
4
- export declare const paymentModeAtOrderValues: readonly ["INVOICE", "POS"];
4
+ export declare const paymentModeAtOrderValues: readonly ["online", "pos"];
5
5
  export declare const paymentStatusValues: readonly ["AWAITING_PAYMENT", "PAID", "PENDING_INVOICE"];
6
6
  export declare const repeatStorageValues: readonly ["HEATHERSHAWS", "PHARMACY", "PATIENT"];
7
7
  export declare const scriptTypeValues: readonly ["eRx", "PAPER"];
@@ -162,39 +162,7 @@ export interface Order {
162
162
  hubspotContactId?: string;
163
163
  created: string;
164
164
  }
165
- export interface OrderCreate {
166
- partnerPharmacyProfileId?: number | null;
167
- patientRecordId?: number | null;
168
- directUserProfileId?: number | null;
169
- address: {
170
- type: string;
171
- name: string;
172
- address: string;
173
- };
174
- trackingNumber?: string;
175
- status?: string;
176
- store?: string;
177
- staff?: string;
178
- lineItems: LineItem[];
179
- orderChangeNotes?: string | null;
180
- paymentModeAtOrder: PaymentModeAtOrder;
181
- paymentStatus: PaymentStatus;
182
- shippingType?: ShippingType;
183
- shippingFee: number;
184
- total: number;
185
- counsellingRequired?: boolean;
186
- counsellingPriority?: string;
187
- counselledBy?: string;
188
- consellingNotes?: string;
189
- counsellingStatus?: string;
190
- confirmationSentAt?: Date;
191
- patientCharged?: number;
192
- overage?: number;
193
- tierFee?: number;
194
- billToPharmacy?: number;
195
- invoicePrice?: number;
196
- hubspotContactId?: string;
197
- }
165
+ export type OrderCreate = Omit<Order, 'id'>;
198
166
  export interface PaperScriptReminder {
199
167
  id: number;
200
168
  orderId?: number;
@@ -294,15 +262,15 @@ export interface PriceMatch {
294
262
  id: number;
295
263
  partnerPharmacyProfileId: number;
296
264
  itemId: number;
265
+ name: string;
297
266
  pricingId: number;
298
267
  overridePrice: number;
268
+ created: string;
299
269
  }
300
- export interface PriceMatchCreate {
301
- partnerPharmacyProfileId: number;
302
- itemId: number;
303
- pricingId: number;
304
- overridePrice: number;
305
- }
270
+ export type PriceMatchCreate = Omit<PriceMatch, 'id' | 'name' | 'created'>;
271
+ export type PriceMatchUpdate = Partial<PriceMatch> & {
272
+ id: number;
273
+ };
306
274
  export interface Quote {
307
275
  id: number;
308
276
  status: QuoteStatus;
@@ -12,7 +12,7 @@ export const paperScriptReminderStatusValues = [
12
12
  'ESCALATED',
13
13
  ];
14
14
  export const quoteStatusValues = ['PENDING', 'PROCESSING', 'RESOLVED'];
15
- export const paymentModeAtOrderValues = ['INVOICE', 'POS'];
15
+ export const paymentModeAtOrderValues = ['online', 'pos'];
16
16
  export const paymentStatusValues = [
17
17
  'AWAITING_PAYMENT',
18
18
  'PAID',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.10.12",
3
+ "version": "1.10.14",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",