@natch-the-storage/heathershaw-platform-types 1.6.3 → 1.6.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.
- package/build/validators.d.ts +4 -1
- package/build/validators.js +2 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -453,8 +453,10 @@ export interface CDScript {
|
|
|
453
453
|
repeatsLeft: number;
|
|
454
454
|
supplyNumber: number;
|
|
455
455
|
};
|
|
456
|
+
formulation: {
|
|
457
|
+
properties?: CDScriptProperties[];
|
|
458
|
+
};
|
|
456
459
|
itemCount: number;
|
|
457
|
-
properties?: CDScriptProperties;
|
|
458
460
|
}
|
|
459
461
|
export interface CDCustomerCreate {
|
|
460
462
|
firstName: string;
|
|
@@ -568,5 +570,6 @@ export declare const ApiRoutes: {
|
|
|
568
570
|
searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
|
|
569
571
|
createCustomer: string;
|
|
570
572
|
getDraftScripts: string;
|
|
573
|
+
getDraftScriptById: (id: number) => string;
|
|
571
574
|
};
|
|
572
575
|
};
|
package/build/validators.js
CHANGED
|
@@ -144,6 +144,7 @@ export const ApiRoutes = {
|
|
|
144
144
|
compoundDirect: {
|
|
145
145
|
searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
|
|
146
146
|
createCustomer: '/api/compound-direct/customer',
|
|
147
|
-
getDraftScripts: '/api/compound-direct/draft-scripts
|
|
147
|
+
getDraftScripts: '/api/compound-direct/draft-scripts',
|
|
148
|
+
getDraftScriptById: (id) => `/api/compound-direct/draft-scripts/${id}`,
|
|
148
149
|
},
|
|
149
150
|
};
|