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

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.
@@ -104,17 +104,21 @@ export interface Order {
104
104
  id: number;
105
105
  partnerPharmacyProfileId?: number | null;
106
106
  directUserProfileId?: number | null;
107
- address: string;
107
+ address: {
108
+ type: string;
109
+ name: string;
110
+ address: string;
111
+ };
108
112
  trackingNumber?: string;
109
113
  status: string;
110
114
  store?: string;
111
115
  staff?: string;
112
116
  lineItems: LineItem[];
113
117
  orderChangeNotes?: string | null;
114
- paymentModeAtOrder?: PaymentModeAtOrder;
115
- paymentStatus?: PaymentStatus;
118
+ paymentModeAtOrder: PaymentModeAtOrder;
119
+ paymentStatus: PaymentStatus;
116
120
  shippingType?: ShippingType;
117
- shippingFee?: number;
121
+ shippingFee: number;
118
122
  total: number;
119
123
  counsellingRequired?: boolean;
120
124
  counsellingPriority?: string;
@@ -128,7 +132,11 @@ export interface Order {
128
132
  export interface OrderCreate {
129
133
  partnerPharmacyProfileId?: number | null;
130
134
  directUserProfileId?: number | null;
131
- address: string;
135
+ address: {
136
+ type: string;
137
+ name: string;
138
+ address: string;
139
+ };
132
140
  trackingNumber?: string;
133
141
  status?: string;
134
142
  store?: string;
@@ -137,7 +145,7 @@ export interface OrderCreate {
137
145
  orderChangeNotes?: string | null;
138
146
  paymentModeAtOrder: PaymentModeAtOrder;
139
147
  paymentStatus: PaymentStatus;
140
- shippingType: ShippingType;
148
+ shippingType?: ShippingType;
141
149
  shippingFee: number;
142
150
  total: number;
143
151
  counsellingRequired?: boolean;
@@ -608,10 +616,13 @@ export declare const ApiRoutes: {
608
616
  twilioStatus: string;
609
617
  send: string;
610
618
  };
611
- email: {};
619
+ email: {
620
+ contactFormInternal: string;
621
+ };
612
622
  cart: {
613
623
  get: (id: number) => string;
614
624
  put: string;
625
+ delete: (id: number) => string;
615
626
  };
616
627
  compoundDirect: {
617
628
  searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
@@ -141,10 +141,13 @@ export const ApiRoutes = {
141
141
  twilioStatus: '/api/webhooks/twilio/status',
142
142
  send: '/api/reminders/sms',
143
143
  },
144
- email: {},
144
+ email: {
145
+ contactFormInternal: '/api/emails/contact-requests',
146
+ },
145
147
  cart: {
146
148
  get: (id) => `/api/carts/${id}`,
147
149
  put: '/api/carts',
150
+ delete: (id) => `/api/carts/${id}`,
148
151
  },
149
152
  compoundDirect: {
150
153
  searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",