@natch-the-storage/heathershaw-platform-types 1.17.13 → 1.18.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.
@@ -124,6 +124,7 @@ export interface GetById {
124
124
  export interface GetAll {
125
125
  page?: number;
126
126
  limit?: number;
127
+ nextToken?: string | null;
127
128
  }
128
129
  export interface DevEmail {
129
130
  to: string;
@@ -789,11 +790,25 @@ export interface CDFormulationList {
789
790
  infoUrl: string;
790
791
  isSignedOff: boolean;
791
792
  }
792
- export type CDProduct = Omit<CDFormulation, 'pricing'> & Omit<CDScriptPriceOption, 'id'> & {
793
+ export type CDProduct = Omit<CDFormulation, 'pricing'> & Omit<CDScriptPriceOption, 'id'> & CDProductCategory & {
793
794
  pricingId: number;
794
- category: CDProductCategoryId;
795
- categoryLabel: CDProductCategoryLabel;
796
795
  };
796
+ export interface CDFormulationPrice {
797
+ formulationId: number;
798
+ formulationName: string;
799
+ formulationModifiedDate: string;
800
+ dosageFormName: string;
801
+ formulationPriceId: number;
802
+ quantity: number;
803
+ price: number;
804
+ barcode: string;
805
+ name: string;
806
+ itemCount: number;
807
+ }
808
+ export interface CDProductCategory {
809
+ categoryLabel: CDProductCategoryLabel;
810
+ category: CDProductCategoryId;
811
+ }
797
812
  export interface CDPriceOptionUpdate {
798
813
  formulationPriceId: number;
799
814
  formulationId: number;
@@ -906,7 +921,9 @@ export declare const ApiRoutes: {
906
921
  getHouseholdDraftScripts: string;
907
922
  listFormulations: string;
908
923
  listProducts: string;
924
+ listPrices: ({ limit, page, nextToken }: GetAll) => string;
909
925
  getFormulationById: (id: number) => string;
926
+ getProductById: (formulationId: number, pricingId: number) => string;
910
927
  updatePriceOptions: string;
911
928
  };
912
929
  directUserProfiles: {
@@ -285,7 +285,9 @@ export const ApiRoutes = {
285
285
  getHouseholdDraftScripts: '/api/compound-direct/scripts/households',
286
286
  listFormulations: '/api/compound-direct/formulations',
287
287
  listProducts: '/api/compound-direct/products',
288
+ listPrices: ({ limit, page, nextToken }) => `/api/compound-direct/products/prices${handleParams({ limit, page, nextToken })}`,
288
289
  getFormulationById: (id) => `/api/compound-direct/formulations/${id}`,
290
+ getProductById: (formulationId, pricingId) => `/api/compound-direct/formulations/${formulationId}/${pricingId}`,
289
291
  updatePriceOptions: '/api/compound-direct/formulations/prices',
290
292
  },
291
293
  directUserProfiles: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.17.13",
3
+ "version": "1.18.1",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",