@natch-the-storage/heathershaw-platform-types 1.19.11 → 1.19.13

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,5 +1,6 @@
1
1
  export declare const cDProductCategoryLabelValues: readonly ["OTC", "Schedule 2", "Schedule 4", "Schedule 8"];
2
2
  export declare const cDProductCategoryIdValues: readonly ["schedule_1", "schedule_2", "schedule_4", "schedule_8"];
3
+ export declare const cloudflareR2FolderValues: readonly ["products", "invoices", "documents", "scripts", "price-matches"];
3
4
  export declare const logItemTypeValues: readonly ["CREATED", "CREATED_PAID", "UPDATED", "UPDATED_DRAFT", "MARKED_FOR_PICKUP", "CANCELLED", "PAYMENT_LINK_PHONE", "PAYMENT_LINK_EMAIL", "PAYMENT_LINK_BOTH", "PARTNER_ORDERED_INVOICE", "PARTNER_ORDERED_POS", "PAID", "MARKED_PAID", "PAYMENT_LINK_PAID"];
4
5
  export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
5
6
  export declare const orderStatusValues: readonly ["TO_REVIEW", "AWAITING_PICKUP", "POSTED", "IN_TRANSIT", "DELIVERED", "COLLECTED", "CANCELLED"];
@@ -20,6 +21,7 @@ export declare const auStatesValues: readonly ["VIC", "NSW", "QLD", "WA", "SA",
20
21
  export declare const discountTierValues: readonly [0.9, 0.88, 0.875, 0.85, 0.8, 0.75, 0.7];
21
22
  export type CDProductCategoryId = (typeof cDProductCategoryIdValues)[number];
22
23
  export type CDProductCategoryLabel = (typeof cDProductCategoryLabelValues)[number];
24
+ export type CloudflareR2Folder = (typeof cloudflareR2FolderValues)[number];
23
25
  export type LogItemType = (typeof logItemTypeValues)[number];
24
26
  export type OrderFulfillment = (typeof orderFulfillmentValues)[number];
25
27
  export type OrderStatus = (typeof orderStatusValues)[number];
@@ -158,13 +160,14 @@ export interface LineItem {
158
160
  fileName?: string;
159
161
  };
160
162
  paperScriptReceived: boolean;
161
- otherScriptProperties: {
163
+ itemProperties: {
162
164
  for: {
163
165
  customerId: number;
164
166
  patientRecordId: number;
165
167
  patientFirstName: string;
166
168
  patientLastName: string;
167
169
  };
170
+ formulationId: number;
168
171
  expiryDate: string;
169
172
  repeatsLeft: number;
170
173
  supplyNumber: number;
@@ -12,6 +12,13 @@ export const cDProductCategoryIdValues = [
12
12
  'schedule_4',
13
13
  'schedule_8',
14
14
  ];
15
+ export const cloudflareR2FolderValues = [
16
+ 'products',
17
+ 'invoices',
18
+ 'documents',
19
+ 'scripts',
20
+ 'price-matches',
21
+ ];
15
22
  export const logItemTypeValues = [
16
23
  'CREATED',
17
24
  'CREATED_PAID',
@@ -197,7 +204,7 @@ export const PHARMACIES = [
197
204
  * @returns
198
205
  */
199
206
  export function lineItemsHasColdChain(items) {
200
- return items.some((item) => item.otherScriptProperties.properties.some((p) => p.code === 'WARN 6' || p.code === 'WARN H'));
207
+ return items.some((item) => item.itemProperties.properties.some((p) => p.code === 'WARN 6' || p.code === 'WARN H'));
201
208
  }
202
209
  /**
203
210
  * Gets an iso timestamp based on the current AU-Sydney/Melbourne timezone
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.19.11",
3
+ "version": "1.19.13",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",