@natch-the-storage/heathershaw-platform-types 1.23.7 → 1.23.9
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.
- package/build/validators.d.ts +7 -4
- package/build/validators.js +14 -13
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export declare const auStatesValues: readonly ["VIC", "NSW", "QLD", "WA", "SA", "TAS", "ACT", "NT"];
|
|
1
2
|
export declare const cDProductCategoryLabelValues: readonly ["OTC", "Schedule 2", "Schedule 4", "Schedule 8"];
|
|
2
3
|
export declare const cDProductCategoryIdValues: readonly ["schedule_1", "schedule_2", "schedule_4", "schedule_8"];
|
|
3
4
|
export declare const cloudflareR2FolderValues: readonly ["products", "invoices", "documents", "scripts", "price-matches"];
|
|
5
|
+
export declare const discountTierValues: readonly [0.9, 0.88, 0.875, 0.85, 0.8, 0.75, 0.7];
|
|
4
6
|
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"];
|
|
5
7
|
export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
|
|
6
8
|
export declare const orderStatusValues: readonly ["SUBMITTED", "AWAITING_PICKUP", "POSTED", "IN_TRANSIT", "DELIVERED", "COLLECTED", "CANCELLED"];
|
|
@@ -17,10 +19,11 @@ export declare const scriptTypeValues: readonly ["ERX", "PAPER", "OTC"];
|
|
|
17
19
|
export declare const shippingTypeValues: readonly ["STANDARD", "COLD_CHAIN", "SAME_DAY_COURIER"];
|
|
18
20
|
export declare const staffProfileRoleValues: readonly ["STAFF", "ADMIN", "COUNSELLING", "SALES_REP", "ALT_THERAPIES", "COMPOUNDING"];
|
|
19
21
|
export declare const staffProfileStatusValues: readonly ["ACTIVE", "SUSPENDED"];
|
|
20
|
-
export declare const
|
|
21
|
-
export
|
|
22
|
+
export declare const userRoleValues: string[];
|
|
23
|
+
export type AuStates = (typeof auStatesValues)[number];
|
|
22
24
|
export type CDProductCategoryId = (typeof cDProductCategoryIdValues)[number];
|
|
23
25
|
export type CDProductCategoryLabel = (typeof cDProductCategoryLabelValues)[number];
|
|
26
|
+
export type DiscountTiers = (typeof discountTierValues)[number];
|
|
24
27
|
export type CloudflareR2Folder = (typeof cloudflareR2FolderValues)[number];
|
|
25
28
|
export type LogItemType = (typeof logItemTypeValues)[number];
|
|
26
29
|
export type OrderFulfillment = (typeof orderFulfillmentValues)[number];
|
|
@@ -38,8 +41,7 @@ export type ScriptType = (typeof scriptTypeValues)[number];
|
|
|
38
41
|
export type ShippingType = (typeof shippingTypeValues)[number];
|
|
39
42
|
export type StaffProfileRole = (typeof staffProfileRoleValues)[number];
|
|
40
43
|
export type StaffProfileStatus = (typeof staffProfileStatusValues)[number];
|
|
41
|
-
export type
|
|
42
|
-
export type DiscountTiers = (typeof discountTierValues)[number];
|
|
44
|
+
export type UserRole = (typeof userRoleValues)[number];
|
|
43
45
|
export declare const CHILD_AGE: 16;
|
|
44
46
|
export declare const COMPOUNDING_CONTACT_EMAIL: "co@hcip.com.au";
|
|
45
47
|
/** General contact phone */
|
|
@@ -794,6 +796,7 @@ export interface CDScriptList {
|
|
|
794
796
|
costPrice: number;
|
|
795
797
|
}
|
|
796
798
|
export interface CDScript {
|
|
799
|
+
id: number;
|
|
797
800
|
key: string;
|
|
798
801
|
name: string;
|
|
799
802
|
price: number;
|
package/build/validators.js
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
//#region Enum value arrays ──────────────────────────────────────────────────────────
|
|
2
|
+
export const auStatesValues = [
|
|
3
|
+
'VIC',
|
|
4
|
+
'NSW',
|
|
5
|
+
'QLD',
|
|
6
|
+
'WA',
|
|
7
|
+
'SA',
|
|
8
|
+
'TAS',
|
|
9
|
+
'ACT',
|
|
10
|
+
'NT',
|
|
11
|
+
];
|
|
2
12
|
export const cDProductCategoryLabelValues = [
|
|
3
13
|
'OTC',
|
|
4
14
|
'Schedule 2',
|
|
@@ -19,6 +29,9 @@ export const cloudflareR2FolderValues = [
|
|
|
19
29
|
'scripts',
|
|
20
30
|
'price-matches',
|
|
21
31
|
];
|
|
32
|
+
export const discountTierValues = [
|
|
33
|
+
0.9, 0.88, 0.875, 0.85, 0.8, 0.75, 0.7,
|
|
34
|
+
];
|
|
22
35
|
export const logItemTypeValues = [
|
|
23
36
|
'CREATED',
|
|
24
37
|
'CREATED_PAID',
|
|
@@ -97,19 +110,7 @@ export const staffProfileRoleValues = [
|
|
|
97
110
|
'COMPOUNDING',
|
|
98
111
|
];
|
|
99
112
|
export const staffProfileStatusValues = ['ACTIVE', 'SUSPENDED'];
|
|
100
|
-
export const
|
|
101
|
-
'VIC',
|
|
102
|
-
'NSW',
|
|
103
|
-
'QLD',
|
|
104
|
-
'WA',
|
|
105
|
-
'SA',
|
|
106
|
-
'TAS',
|
|
107
|
-
'ACT',
|
|
108
|
-
'NT',
|
|
109
|
-
];
|
|
110
|
-
export const discountTierValues = [
|
|
111
|
-
0.9, 0.88, 0.875, 0.85, 0.8, 0.75, 0.7,
|
|
112
|
-
];
|
|
113
|
+
export const userRoleValues = ['admin', 'partner', 'user', 'internalPartner'];
|
|
113
114
|
//#endregion ──────────────────────────────────────────────────────────────────────
|
|
114
115
|
//#region Constants ──────────────────────────────────────────────────────────────────
|
|
115
116
|
export const CHILD_AGE = 16;
|