@natch-the-storage/heathershaw-platform-types 1.6.7 → 1.7.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.
@@ -46,20 +46,40 @@ export interface ScriptSelect {
46
46
  export interface OrderSelect {
47
47
  id: number;
48
48
  partnerPharmacyProfileId: number | null;
49
- patientRecordId: number | null;
50
- completed: boolean;
49
+ directUserProfileId: number | null;
50
+ trackingNumber: string;
51
+ status: boolean;
51
52
  paymentModeAtOrder: PaymentModeAtOrder;
52
53
  paymentStatus: PaymentStatus;
53
- scriptType: ScriptType;
54
- paperScriptReceived: boolean;
54
+ store: string;
55
+ staff: string;
55
56
  shippingType: ShippingType;
56
57
  shippingFee: string;
57
- lineItems: unknown;
58
+ lineItems: LineItem[];
58
59
  orderChangeNotes: string | null;
59
60
  counsellingRequired: boolean;
60
- confirmationSentAt: Date | null;
61
- hubspotContactId: string | null;
62
- createdByUserId: string | null;
61
+ counsellingPriority: string;
62
+ counselledBy: string;
63
+ consellingNotes: string;
64
+ counselledStatus: string;
65
+ confirmationSentAt: Date;
66
+ hubspotContactId: string;
67
+ }
68
+ export interface LineItem {
69
+ id: number;
70
+ name: string;
71
+ quantity: number;
72
+ price: number;
73
+ rrp: number;
74
+ flavour?: string;
75
+ adverseSymptoms?: string;
76
+ scriptType: string;
77
+ paperScriptReceived: boolean;
78
+ patientCharged?: string;
79
+ overage?: string;
80
+ tierFee?: string;
81
+ billToPharmacy?: string;
82
+ invoicePrice?: string;
63
83
  }
64
84
  export interface GetById {
65
85
  id: number;
@@ -90,37 +110,45 @@ export interface DirectUserProfileCreate {
90
110
  export interface Order {
91
111
  id: number;
92
112
  partnerPharmacyProfileId?: number | null;
93
- patientRecordId?: number | null;
94
- completed?: boolean;
113
+ directUserProfileId?: number | null;
114
+ trackingNumber?: string;
115
+ status?: boolean;
95
116
  paymentModeAtOrder?: PaymentModeAtOrder;
96
117
  paymentStatus?: PaymentStatus;
97
- scriptType?: ScriptType;
98
- paperScriptReceived?: boolean;
118
+ store?: string;
119
+ staff?: string;
99
120
  shippingType?: ShippingType;
100
121
  shippingFee?: string;
101
- lineItems?: unknown;
122
+ lineItems?: LineItem[];
102
123
  orderChangeNotes?: string | null;
103
124
  counsellingRequired?: boolean;
104
- confirmationSentAt?: Date | null;
105
- hubspotContactId?: string | null;
106
- createdByUserId?: string | null;
125
+ counsellingPriority?: string;
126
+ counselledBy?: string;
127
+ consellingNotes?: string;
128
+ counselledStatus?: string;
129
+ confirmationSentAt?: Date;
130
+ hubspotContactId?: string;
107
131
  }
108
132
  export interface OrderCreate {
109
133
  paymentModeAtOrder: PaymentModeAtOrder;
110
134
  paymentStatus: PaymentStatus;
111
- scriptType: ScriptType;
112
135
  shippingType: ShippingType;
113
136
  shippingFee: string;
114
137
  partnerPharmacyProfileId?: number | null;
115
- patientRecordId?: number | null;
116
- completed?: boolean;
117
- paperScriptReceived?: boolean;
118
- lineItems?: unknown;
138
+ directUserProfileId?: number | null;
139
+ trackingNumber?: string;
140
+ status?: boolean;
141
+ store?: string;
142
+ staff?: string;
143
+ lineItems?: LineItem[];
119
144
  orderChangeNotes?: string | null;
120
145
  counsellingRequired?: boolean;
121
- confirmationSentAt?: Date | null;
122
- hubspotContactId?: string | null;
123
- createdByUserId?: string | null;
146
+ counsellingPriority?: string;
147
+ counselledBy?: string;
148
+ consellingNotes?: string;
149
+ counselledStatus?: string;
150
+ confirmationSentAt?: Date;
151
+ hubspotContactId?: string;
124
152
  }
125
153
  export interface PaperScriptReminder {
126
154
  id: number;
@@ -305,6 +333,15 @@ export interface PaperScriptCreate {
305
333
  uploaded: string;
306
334
  fileKey: string;
307
335
  }
336
+ export interface Cart {
337
+ id: number;
338
+ items: any[];
339
+ updatedAt: Date;
340
+ }
341
+ export interface CartUpdate {
342
+ id: number;
343
+ items: any[];
344
+ }
308
345
  export declare const CompoundDirectAnimalId: {
309
346
  readonly dog: {
310
347
  readonly id: 1;
@@ -570,6 +607,10 @@ export declare const ApiRoutes: {
570
607
  send: string;
571
608
  };
572
609
  email: {};
610
+ cart: {
611
+ get: (id: number) => string;
612
+ put: string;
613
+ };
573
614
  compoundDirect: {
574
615
  searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
575
616
  createCustomer: string;
@@ -141,6 +141,10 @@ export const ApiRoutes = {
141
141
  send: '/api/reminders/sms',
142
142
  },
143
143
  email: {},
144
+ cart: {
145
+ get: (id) => `/api/carts/${id}`,
146
+ put: '/api/carts',
147
+ },
144
148
  compoundDirect: {
145
149
  searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
146
150
  createCustomer: '/api/compound-direct/customer',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.6.7",
3
+ "version": "1.7.1",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",