@natch-the-storage/heathershaw-platform-types 1.18.1 → 1.18.3

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.
@@ -125,6 +125,7 @@ export interface GetAll {
125
125
  page?: number;
126
126
  limit?: number;
127
127
  nextToken?: string | null;
128
+ query?: string;
128
129
  }
129
130
  export interface DevEmail {
130
131
  to: string;
@@ -920,9 +921,9 @@ export declare const ApiRoutes: {
920
921
  getDraftScriptById: (id: number) => string;
921
922
  getHouseholdDraftScripts: string;
922
923
  listFormulations: string;
923
- listProducts: string;
924
- listPrices: ({ limit, page, nextToken }: GetAll) => string;
925
924
  getFormulationById: (id: number) => string;
925
+ listProducts: string;
926
+ listProductPrices: ({ limit, page, nextToken, query }: GetAll) => string;
926
927
  getProductById: (formulationId: number, pricingId: number) => string;
927
928
  updatePriceOptions: string;
928
929
  };
@@ -284,10 +284,10 @@ export const ApiRoutes = {
284
284
  getDraftScriptById: (id) => `/api/compound-direct/draft-scripts/${id}`,
285
285
  getHouseholdDraftScripts: '/api/compound-direct/scripts/households',
286
286
  listFormulations: '/api/compound-direct/formulations',
287
- listProducts: '/api/compound-direct/products',
288
- listPrices: ({ limit, page, nextToken }) => `/api/compound-direct/products/prices${handleParams({ limit, page, nextToken })}`,
289
287
  getFormulationById: (id) => `/api/compound-direct/formulations/${id}`,
290
- getProductById: (formulationId, pricingId) => `/api/compound-direct/formulations/${formulationId}/${pricingId}`,
288
+ listProducts: '/api/compound-direct/products',
289
+ listProductPrices: ({ limit, page, nextToken, query }) => `/api/compound-direct/products/prices${handleParams({ limit, page, nextToken, query })}`,
290
+ getProductById: (formulationId, pricingId) => `/api/compound-direct/products/${formulationId}/${pricingId}`,
291
291
  updatePriceOptions: '/api/compound-direct/formulations/prices',
292
292
  },
293
293
  directUserProfiles: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.18.1",
3
+ "version": "1.18.3",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",