@natch-the-storage/heathershaw-platform-types 1.10.13 → 1.10.15

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,8 @@
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", "invoice", "pos"];
5
+ export declare const partnerPharmacyPaymentModeValues: readonly ["invoice", "pos"];
5
6
  export declare const paymentStatusValues: readonly ["AWAITING_PAYMENT", "PAID", "PENDING_INVOICE"];
6
7
  export declare const repeatStorageValues: readonly ["HEATHERSHAWS", "PHARMACY", "PATIENT"];
7
8
  export declare const scriptTypeValues: readonly ["eRx", "PAPER"];
@@ -14,6 +15,7 @@ export type OrderStatus = (typeof orderStatusValues)[number];
14
15
  export type PaperScriptReminderStatus = (typeof paperScriptReminderStatusValues)[number];
15
16
  export type QuoteStatus = (typeof quoteStatusValues)[number];
16
17
  export type PaymentModeAtOrder = (typeof paymentModeAtOrderValues)[number];
18
+ export type PartnerPharmacyPaymentMode = (typeof partnerPharmacyPaymentModeValues)[number];
17
19
  export type PaymentStatus = (typeof paymentStatusValues)[number];
18
20
  export type RepeatStorage = (typeof repeatStorageValues)[number];
19
21
  export type ScriptType = (typeof scriptTypeValues)[number];
@@ -162,39 +164,7 @@ export interface Order {
162
164
  hubspotContactId?: string;
163
165
  created: string;
164
166
  }
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
- }
167
+ export type OrderCreate = Omit<Order, 'id' | 'status' | 'created'>;
198
168
  export interface PaperScriptReminder {
199
169
  id: number;
200
170
  orderId?: number;
@@ -297,8 +267,10 @@ export interface PriceMatch {
297
267
  name: string;
298
268
  pricingId: number;
299
269
  overridePrice: number;
270
+ created: string;
300
271
  }
301
- export type PriceMatchCreate = Omit<PriceMatch, 'id' | 'name'>;
272
+ export type PriceMatchCreate = Omit<PriceMatch, 'id' | 'name' | 'created'>;
273
+ export type PriceMatchUpdate = Omit<PriceMatch, 'created' | 'name'>;
302
274
  export interface Quote {
303
275
  id: number;
304
276
  status: QuoteStatus;
@@ -12,7 +12,8 @@ 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', 'invoice', 'pos'];
16
+ export const partnerPharmacyPaymentModeValues = ['invoice', 'pos'];
16
17
  export const paymentStatusValues = [
17
18
  'AWAITING_PAYMENT',
18
19
  'PAID',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.10.13",
3
+ "version": "1.10.15",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",