@natch-the-storage/heathershaw-platform-types 1.23.4 → 1.23.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.
@@ -1156,6 +1156,12 @@ export interface CDBulkUpdateResultList {
1156
1156
  invalidFormulationPrices: CDPriceOptionUpdate[];
1157
1157
  successfulUpdates: CDPriceOptionUpdate[];
1158
1158
  }
1159
+ export interface CDScriptPriceUpdate {
1160
+ scriptId: number;
1161
+ price: number;
1162
+ quantity: number;
1163
+ isDraft: boolean;
1164
+ }
1159
1165
  export declare const CDProductForms: readonly [{
1160
1166
  readonly id: "capsule";
1161
1167
  readonly label: "Capsules";
@@ -1277,6 +1283,7 @@ export declare const ApiRoutes: {
1277
1283
  listProductPrices: ({ limit, page, nextToken, query }: GetAll) => string;
1278
1284
  createProductPriceOptions: string;
1279
1285
  updateProductPriceOptions: string;
1286
+ updateScriptPrice: string;
1280
1287
  };
1281
1288
  directUserProfiles: {
1282
1289
  list: string;
@@ -467,13 +467,14 @@ export const ApiRoutes = {
467
467
  getCustomerScripts: '/api/compound-direct/customer-scripts',
468
468
  getHouseholdScripts: '/api/compound-direct/customer-scripts/households',
469
469
  searchDispensedScripts: '/api/compound-direct/dispensed-scripts',
470
- getDispensedScriptById: (id) => `/api/compound-direct/script/${id}`,
470
+ getDispensedScriptById: (id) => `/api/compound-direct/dispensed-scripts/${id}`,
471
471
  updateDispensedScriptById: (id) => `/api/compound-direct/script/${id}`,
472
472
  getFormulationById: (id) => `/api/compound-direct/formulations/${id}`,
473
473
  getProductById: (formulationId, pricingId) => `/api/compound-direct/products/${formulationId}/${pricingId}`,
474
474
  listProductPrices: ({ limit, page, nextToken, query }) => `/api/compound-direct/products/prices${handleParams({ limit, page, nextToken, query })}`,
475
475
  createProductPriceOptions: '/api/compound-direct/products/prices',
476
476
  updateProductPriceOptions: '/api/compound-direct/products/prices',
477
+ updateScriptPrice: '/api/compound-direct/scripts/prices',
477
478
  },
478
479
  directUserProfiles: {
479
480
  list: '/api/profiles/direct-users',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.23.4",
3
+ "version": "1.23.5",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",