@natch-the-storage/heathershaw-platform-types 1.17.1 → 1.17.2
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 +1 -1
- package/build/validators.js +3 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const cDProductCategoryLabelValues: readonly ["OTC", "Schedule 4", "Schedule 8"];
|
|
2
|
-
export declare const cDProductCategoryIdValues: readonly ["schedule_1", "schedule_4", "schedule_8"];
|
|
2
|
+
export declare const cDProductCategoryIdValues: readonly ["schedule_1", "schedule_2", "schedule_4", "schedule_8"];
|
|
3
3
|
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
4
|
export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
|
|
5
5
|
export declare const orderStatusValues: readonly ["TO_REVIEW", "AWAITING_PICKUP", "POSTED", "IN_TRANSIT", "DELIVERED", "COLLECTED", "CANCELLED"];
|
package/build/validators.js
CHANGED
|
@@ -7,6 +7,7 @@ export const cDProductCategoryLabelValues = [
|
|
|
7
7
|
// don't touch, this is how they exist in Compound Direct
|
|
8
8
|
export const cDProductCategoryIdValues = [
|
|
9
9
|
'schedule_1',
|
|
10
|
+
'schedule_2',
|
|
10
11
|
'schedule_4',
|
|
11
12
|
'schedule_8',
|
|
12
13
|
];
|
|
@@ -157,7 +158,8 @@ export const PHARMACIES = [
|
|
|
157
158
|
//#endregion ──────────────────────────────────────────────────────────────────────
|
|
158
159
|
//#region compound direct ────────────────────────────────────────────────────────────
|
|
159
160
|
export const CDProductCategoriesIdLabel = cDProductCategoryIdValues.map((v, i) => {
|
|
160
|
-
|
|
161
|
+
const index = i >= 1 ? i - 1 : i;
|
|
162
|
+
return { id: v, label: cDProductCategoryLabelValues[index] };
|
|
161
163
|
});
|
|
162
164
|
export const CompoundDirectAnimalId = {
|
|
163
165
|
dog: { id: 1, name: 'Dog' },
|