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

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,13 @@ 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
+ partnerPharmacyProfileId?: number;
107
+ patientRecordId?: number;
108
+ directUserProfileId?: number;
109
+ phone?: string;
110
+ email?: string;
105
111
  }
106
112
  interface DashboardData {
107
113
  label: string;
@@ -173,6 +179,7 @@ export interface Order {
173
179
  created: string;
174
180
  requiredDate: string;
175
181
  draft: boolean;
182
+ reasonMarkedPaid?: string;
176
183
  }
177
184
  export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft'> & {
178
185
  draft?: boolean;
@@ -182,6 +189,7 @@ export interface OrderAddress {
182
189
  type: OrderFulfillment;
183
190
  name: string;
184
191
  address: string;
192
+ deliveryInstructions?: string;
185
193
  }
186
194
  export interface PaperScriptReminder {
187
195
  id: number;
@@ -268,7 +276,6 @@ export interface PatientRecord {
268
276
  addresses?: Address[];
269
277
  healthInfo?: HealthInfo;
270
278
  reminderEnabled?: boolean;
271
- scripts?: Script[];
272
279
  orderHistory?: Order[];
273
280
  animalSpecies?: string;
274
281
  relationship?: string | null;
@@ -280,6 +287,9 @@ export type PatientRecordCreate = Partial<PatientRecord> & {
280
287
  email: string;
281
288
  phone: string;
282
289
  };
290
+ export type PatientRecordUpdate = Partial<PatientRecord> & {
291
+ id: number;
292
+ };
283
293
  export interface PriceMatch {
284
294
  id: number;
285
295
  partnerPharmacyProfileId: number;
@@ -670,6 +680,9 @@ export declare const ApiRoutes: {
670
680
  email: {
671
681
  contactFormInternal: string;
672
682
  };
683
+ notifications: {
684
+ createPaymentLink: string;
685
+ };
673
686
  orders: {
674
687
  list: (filters?: {
675
688
  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.1",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",