@natch-the-storage/heathershaw-platform-types 1.14.1 → 1.14.3

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.
@@ -8,6 +8,7 @@ export declare const paymentModeAtOrderValues: readonly ["ONLINE", "INVOICE", "P
8
8
  export declare const partnerPharmacyPaymentModeValues: readonly ["INVOICE", "POS"];
9
9
  export declare const paymentStatusValues: readonly ["AWAITING_PAYMENT", "PAID", "PENDING_INVOICE"];
10
10
  export declare const repeatStorageValues: readonly ["HEATHERSHAWS", "PHARMACY", "PATIENT"];
11
+ export declare const scriptStatusValues: readonly ["PENDING", "PROCESSED"];
11
12
  export declare const scriptTypeValues: readonly ["ERX", "PAPER"];
12
13
  export declare const shippingTypeValues: readonly ["STANDARD", "COLD_CHAIN", "SAME_DAY_COURIER"];
13
14
  export declare const staffProfileRoleValues: readonly ["STAFF", "ADMIN", "COUNSELLING", "SALES_REP", "ALT_THERAPIES", "COMPOUNDING"];
@@ -24,6 +25,7 @@ export type PaymentModeAtOrder = (typeof paymentModeAtOrderValues)[number];
24
25
  export type PartnerPharmacyPaymentMode = (typeof partnerPharmacyPaymentModeValues)[number];
25
26
  export type PaymentStatus = (typeof paymentStatusValues)[number];
26
27
  export type RepeatStorage = (typeof repeatStorageValues)[number];
28
+ export type ScriptStatus = (typeof scriptTypeValues)[number];
27
29
  export type ScriptType = (typeof scriptTypeValues)[number];
28
30
  export type ShippingType = (typeof shippingTypeValues)[number];
29
31
  export type StaffProfileRole = (typeof staffProfileRoleValues)[number];
@@ -646,10 +648,6 @@ export type CDProduct = Omit<CDFormulation, 'pricing'> & Omit<CDScriptPriceOptio
646
648
  category: CDProductCategoryId;
647
649
  categoryLabel: CDProductCategoryLabel;
648
650
  };
649
- export declare const CDProductFormsIdLabels: {
650
- id: string;
651
- label: string;
652
- }[];
653
651
  export interface CDPriceOptionUpdate {
654
652
  formulationPriceId: number;
655
653
  formulationId: number;
@@ -660,6 +658,61 @@ export interface CDBulkUpdateResultList {
660
658
  invalidFormulationPrices: CDPriceOptionUpdate[];
661
659
  successfulUpdates: CDPriceOptionUpdate[];
662
660
  }
661
+ export declare const CDProductForms: readonly [{
662
+ readonly id: "capsule";
663
+ readonly label: "Capsules";
664
+ }, {
665
+ readonly id: "oral liquid";
666
+ readonly label: "Oral liquids / suspensions";
667
+ }, {
668
+ readonly id: "suppository";
669
+ readonly label: "Suppositories";
670
+ }, {
671
+ readonly id: "ointment";
672
+ readonly label: "Ointments";
673
+ }, {
674
+ readonly id: "topical liquid";
675
+ readonly label: "Topical Liquids";
676
+ }, {
677
+ readonly id: "scooped powder";
678
+ readonly label: "Scooped Powders";
679
+ }, {
680
+ readonly id: "cream";
681
+ readonly label: "Creams";
682
+ }, {
683
+ readonly id: "troche";
684
+ readonly label: "Troches / lozenges";
685
+ }, {
686
+ readonly id: "pessary";
687
+ readonly label: "Pessaries";
688
+ }, {
689
+ readonly id: "gummy";
690
+ readonly label: "Gummies";
691
+ }, {
692
+ readonly id: "gel";
693
+ readonly label: "Gels";
694
+ }, {
695
+ readonly id: "lotion";
696
+ readonly label: "Lotions";
697
+ }, {
698
+ readonly id: "patch";
699
+ readonly label: "Transdermal patches";
700
+ }, {
701
+ readonly id: "nasal spray";
702
+ readonly label: "Nasal sprays";
703
+ }, {
704
+ readonly id: "vaginal";
705
+ readonly label: "Vaginal creams / gels";
706
+ }, {
707
+ readonly id: "drop";
708
+ readonly label: "Drops";
709
+ }, {
710
+ readonly id: "spray";
711
+ readonly label: "Sprays";
712
+ }, {
713
+ readonly id: "tablet";
714
+ readonly label: "Tablets";
715
+ }];
663
716
  export declare const parseCategory: (category: string) => "Compounding" | "Order or delivery" | "Prescription" | "Profile or account" | "General";
664
717
  export interface ContactFormInternalCreate {
665
718
  category: string;
@@ -39,6 +39,7 @@ export const repeatStorageValues = [
39
39
  'PHARMACY',
40
40
  'PATIENT',
41
41
  ];
42
+ export const scriptStatusValues = ['PENDING', 'PROCESSED'];
42
43
  export const scriptTypeValues = ['ERX', 'PAPER'];
43
44
  export const shippingTypeValues = [
44
45
  'STANDARD',
@@ -156,7 +157,7 @@ export const CompoundDirectAnimalId = {
156
157
  other: { id: 25, name: 'N/A' },
157
158
  };
158
159
  export const AnimalSpeciesKeys = Object.keys(CompoundDirectAnimalId);
159
- export const CDProductFormsIdLabels = [
160
+ export const CDProductForms = [
160
161
  { id: 'capsule', label: 'Capsules' },
161
162
  { id: 'oral liquid', label: 'Oral liquids / suspensions' },
162
163
  { id: 'suppository', label: 'Suppositories' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.14.1",
3
+ "version": "1.14.3",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",