@natch-the-storage/heathershaw-platform-types 1.10.14 → 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 ["online", "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,7 +164,7 @@ export interface Order {
162
164
  hubspotContactId?: string;
163
165
  created: string;
164
166
  }
165
- export type OrderCreate = Omit<Order, 'id'>;
167
+ export type OrderCreate = Omit<Order, 'id' | 'status' | 'created'>;
166
168
  export interface PaperScriptReminder {
167
169
  id: number;
168
170
  orderId?: number;
@@ -268,9 +270,7 @@ export interface PriceMatch {
268
270
  created: string;
269
271
  }
270
272
  export type PriceMatchCreate = Omit<PriceMatch, 'id' | 'name' | 'created'>;
271
- export type PriceMatchUpdate = Partial<PriceMatch> & {
272
- id: number;
273
- };
273
+ export type PriceMatchUpdate = Omit<PriceMatch, 'created' | 'name'>;
274
274
  export interface Quote {
275
275
  id: number;
276
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 = ['online', '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.14",
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",