@natch-the-storage/heathershaw-platform-types 1.10.31 → 1.11.0

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.
@@ -101,7 +101,10 @@ export interface DevEmail {
101
101
  export interface Sms {
102
102
  body: string;
103
103
  to: string;
104
- from: string;
104
+ }
105
+ export interface PaymentLinkCreate {
106
+ phone?: string;
107
+ email?: string;
105
108
  }
106
109
  interface DashboardData {
107
110
  label: string;
@@ -173,6 +176,7 @@ export interface Order {
173
176
  created: string;
174
177
  requiredDate: string;
175
178
  draft: boolean;
179
+ reasonMarkedPaid?: string;
176
180
  }
177
181
  export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft'> & {
178
182
  draft?: boolean;
@@ -268,7 +272,6 @@ export interface PatientRecord {
268
272
  addresses?: Address[];
269
273
  healthInfo?: HealthInfo;
270
274
  reminderEnabled?: boolean;
271
- scripts?: Script[];
272
275
  orderHistory?: Order[];
273
276
  animalSpecies?: string;
274
277
  relationship?: string | null;
@@ -280,6 +283,9 @@ export type PatientRecordCreate = Partial<PatientRecord> & {
280
283
  email: string;
281
284
  phone: string;
282
285
  };
286
+ export type PatientRecordUpdate = Partial<PatientRecord> & {
287
+ id: number;
288
+ };
283
289
  export interface PriceMatch {
284
290
  id: number;
285
291
  partnerPharmacyProfileId: number;
@@ -670,6 +676,9 @@ export declare const ApiRoutes: {
670
676
  email: {
671
677
  contactFormInternal: string;
672
678
  };
679
+ notifications: {
680
+ createPaymentLink: string;
681
+ };
673
682
  orders: {
674
683
  list: (filters?: {
675
684
  partnerPharmacyProfileId?: number;
@@ -1,5 +1,10 @@
1
1
  //#region Enum value arrays ──────────────────────────────────────────────────────────
2
- export const orderFulfillmentValues = ['PICKUP', 'POST', 'COURIER', 'DELIVER'];
2
+ export const orderFulfillmentValues = [
3
+ 'PICKUP',
4
+ 'POST',
5
+ 'COURIER',
6
+ 'DELIVER',
7
+ ];
3
8
  export const orderStatusValues = [
4
9
  'RECEIVED',
5
10
  'PROCESSING',
@@ -181,6 +186,9 @@ export const ApiRoutes = {
181
186
  email: {
182
187
  contactFormInternal: '/api/emails/contact-requests',
183
188
  },
189
+ notifications: {
190
+ createPaymentLink: '/api/notifications/payment-links',
191
+ },
184
192
  orders: {
185
193
  list: (filters) => {
186
194
  const params = new URLSearchParams();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.10.31",
3
+ "version": "1.11.0",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",