@natch-the-storage/heathershaw-platform-types 1.7.5 → 1.7.7

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.
@@ -527,6 +527,27 @@ export interface CDCustomerSearch {
527
527
  email: string;
528
528
  phone: string;
529
529
  }
530
+ export declare const parseCategory: (category: string) => "Order or delivery" | "Prescription" | "Profile or account" | "Compounding" | "General";
531
+ export interface ContactFormInternalCreate {
532
+ category: string;
533
+ name: string;
534
+ email: string;
535
+ phone?: string;
536
+ orderNumber?: string;
537
+ message: string;
538
+ }
539
+ export declare const BucketObjects: {
540
+ dev: {
541
+ emailLogo: {
542
+ url: string;
543
+ };
544
+ };
545
+ prod: {
546
+ emailLogo: {
547
+ url: undefined;
548
+ };
549
+ };
550
+ };
530
551
  export declare const ApiRoutes: {
531
552
  orders: {
532
553
  list: string;
@@ -52,6 +52,33 @@ export const CompoundDirectAnimalId = {
52
52
  monkey: { id: 24, name: 'Monkey' },
53
53
  };
54
54
  export const AnimalSpeciesKeys = Object.keys(CompoundDirectAnimalId);
55
+ // contact form
56
+ export const parseCategory = (category) => {
57
+ switch (category) {
58
+ case 'orderOrDelivery':
59
+ return 'Order or delivery';
60
+ case 'prescription':
61
+ return 'Prescription';
62
+ case 'profileOrAccount':
63
+ return 'Profile or account';
64
+ case 'compounding':
65
+ return 'Compounding';
66
+ default:
67
+ return 'General';
68
+ }
69
+ };
70
+ export const BucketObjects = {
71
+ dev: {
72
+ emailLogo: {
73
+ url: 'https://pub-8a1a0de58ef143239a849bfea14018bf.r2.dev/core/logo-no-tagline-white-green.svg',
74
+ },
75
+ },
76
+ prod: {
77
+ emailLogo: {
78
+ url: undefined,
79
+ },
80
+ },
81
+ };
55
82
  export const ApiRoutes = {
56
83
  orders: {
57
84
  list: '/api/orders',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",