@natch-the-storage/heathershaw-platform-types 1.7.3 → 1.7.4
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.
- package/build/validators.d.ts +11 -2
- package/build/validators.js +1 -0
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -104,7 +104,11 @@ export interface Order {
|
|
|
104
104
|
id: number;
|
|
105
105
|
partnerPharmacyProfileId?: number | null;
|
|
106
106
|
directUserProfileId?: number | null;
|
|
107
|
-
address:
|
|
107
|
+
address: {
|
|
108
|
+
type: string;
|
|
109
|
+
name: string;
|
|
110
|
+
address: string;
|
|
111
|
+
};
|
|
108
112
|
trackingNumber?: string;
|
|
109
113
|
status: string;
|
|
110
114
|
store?: 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:
|
|
135
|
+
address: {
|
|
136
|
+
type: string;
|
|
137
|
+
name: string;
|
|
138
|
+
address: string;
|
|
139
|
+
};
|
|
132
140
|
trackingNumber?: string;
|
|
133
141
|
status?: string;
|
|
134
142
|
store?: string;
|
|
@@ -612,6 +620,7 @@ export declare const ApiRoutes: {
|
|
|
612
620
|
cart: {
|
|
613
621
|
get: (id: number) => string;
|
|
614
622
|
put: string;
|
|
623
|
+
delete: (id: number) => string;
|
|
615
624
|
};
|
|
616
625
|
compoundDirect: {
|
|
617
626
|
searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
|
package/build/validators.js
CHANGED
|
@@ -145,6 +145,7 @@ export const ApiRoutes = {
|
|
|
145
145
|
cart: {
|
|
146
146
|
get: (id) => `/api/carts/${id}`,
|
|
147
147
|
put: '/api/carts',
|
|
148
|
+
delete: (id) => `/api/carts/${id}`,
|
|
148
149
|
},
|
|
149
150
|
compoundDirect: {
|
|
150
151
|
searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
|