@metaboliccode-dev/widget 0.2.12 → 0.2.13

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.
@@ -0,0 +1,9 @@
1
+ import type { FetchReportPageOptions } from "./fetchReportPage";
2
+ export type CheckMetabolicReportExistsOptions = Omit<FetchReportPageOptions, "baseUrl" | "headers"> & {
3
+ apiKey?: string;
4
+ userId?: string;
5
+ questionnaireResponseId?: string;
6
+ headers?: HeadersInit;
7
+ };
8
+ export declare function buildReportExistsUrl(baseUrl: string, reportId?: string): string;
9
+ export declare function checkMetabolicReportExists(options: CheckMetabolicReportExistsOptions): Promise<boolean>;
@@ -3,6 +3,8 @@ export type { HttpDashboardContentFetchersConfig } from "./createHttpDashboardCo
3
3
  export { createHttpDashboardContentFetchers } from "./createHttpDashboardContentFetchers";
4
4
  export type { DownloadReportPdfOptions } from "./downloadReportPdf";
5
5
  export { createReportPdfDownloader } from "./downloadReportPdf";
6
+ export type { CheckMetabolicReportExistsOptions } from "./fetchReportExists";
7
+ export { buildReportExistsUrl, checkMetabolicReportExists } from "./fetchReportExists";
6
8
  export type { FetchReportPageOptions } from "./fetchReportPage";
7
9
  export { buildReportPageUrl, fetchReportPage } from "./fetchReportPage";
8
10
  export { mapAlertLabSummaryDtoToTabContent, mapDashboardPageDtoToTabContent, mapLabAnalysisDtoToTabContent, mapLabResultsDtoToTabContent, mapQuestionnaireAnalysisDtoToTabContent, mapSuggestedProductsDtoToTabContent, mapSupplementScheduleDtoToTabContent, mapTotalPredictiveIndexDtoToTabContent, mapWellnessIndicatorsDtoToTabContent, } from "./mapReportPages";
@@ -1,6 +1,6 @@
1
1
  export type { MetabolicDashboardProps, MetabolicDashboardReportHttpConfig } from "../layout";
2
- export type { AlertLabMetricDto, AlertLabSummaryPageDto, DashboardPageDto, DownloadReportPdfOptions, FetchReportPageOptions, HttpDashboardContentFetchersConfig, LabAnalysisPageDto, LabResultsPageDto, QuestionnaireAnalysisPageDto, ReportPageDtoByNavId, ReportPageDtoFor, ReportPageNavKey, SuggestedProductsPageDto, SupplementSchedulePageDto, TotalPredictiveIndexPageDto, WellnessIndicatorsPageDto, } from "./api";
3
- export { buildReportPageUrl, createHttpDashboardContentFetchers, createReportPdfDownloader, fetchReportPage, getBuiltInReportPagesApiBaseUrl, isMetabolicDashboardApiKeyAccepted, METABOLIC_DASHBOARD_STUB_API_KEY, METABOLIC_REPORT_PAGES_API_BASE_URL, mapAlertLabSummaryDtoToTabContent, mapDashboardPageDtoToTabContent, mapLabAnalysisDtoToTabContent, mapLabResultsDtoToTabContent, mapQuestionnaireAnalysisDtoToTabContent, mapSuggestedProductsDtoToTabContent, mapSupplementScheduleDtoToTabContent, mapTotalPredictiveIndexDtoToTabContent, mapWellnessIndicatorsDtoToTabContent, } from "./api";
2
+ export type { AlertLabMetricDto, AlertLabSummaryPageDto, DashboardPageDto, DownloadReportPdfOptions, FetchReportPageOptions, CheckMetabolicReportExistsOptions, HttpDashboardContentFetchersConfig, LabAnalysisPageDto, LabResultsPageDto, QuestionnaireAnalysisPageDto, ReportPageDtoByNavId, ReportPageDtoFor, ReportPageNavKey, SuggestedProductsPageDto, SupplementSchedulePageDto, TotalPredictiveIndexPageDto, WellnessIndicatorsPageDto, } from "./api";
3
+ export { buildReportPageUrl, buildReportExistsUrl, checkMetabolicReportExists, createHttpDashboardContentFetchers, createReportPdfDownloader, fetchReportPage, getBuiltInReportPagesApiBaseUrl, isMetabolicDashboardApiKeyAccepted, METABOLIC_DASHBOARD_STUB_API_KEY, METABOLIC_REPORT_PAGES_API_BASE_URL, mapAlertLabSummaryDtoToTabContent, mapDashboardPageDtoToTabContent, mapLabAnalysisDtoToTabContent, mapLabResultsDtoToTabContent, mapQuestionnaireAnalysisDtoToTabContent, mapSuggestedProductsDtoToTabContent, mapSupplementScheduleDtoToTabContent, mapTotalPredictiveIndexDtoToTabContent, mapWellnessIndicatorsDtoToTabContent, } from "./api";
4
4
  export { mergeDashboardContentFetchers } from "./dashboardContentFetchers";
5
5
  export type { DashboardTabContentCacheContextValue } from "./dashboardTab/DashboardTabContentCacheContext";
6
6
  export { DashboardTabContentCacheProvider, DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS, useInvalidateDashboardTabContentCache, } from "./dashboardTab/DashboardTabContentCacheContext";
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export { ensureAgChartsModules, useAgCharts } from "./hooks/useAgCharts";
7
7
  export { decodeMetabolicIframeConfig, emitMetabolicDashboardLogout, encodeMetabolicIframeConfig, isMetabolicEmbedPostMessageOriginAllowed, METABOLIC_IFRAME_CONFIG_QUERY_KEY, METABOLIC_IFRAME_SET_CONFIG_MESSAGE, metabolicIframeSrcAppendStealthParams, metabolicIframeSrcWithConfig, postMetabolicIframeConfig, readMetabolicEmbedStealthParams, readMetabolicIframeConfigFromSearchParams, } from "./iframe-config";
8
8
  export type { MetabolicDashboardProps, MetabolicDashboardReportHttpConfig, MetabolicDashboardViewerRole, ShellLayoutProps, SideMenuFooterProps, SideMenuItem, SideMenuNavButtonProps, SideMenuProps, SideMenuUserProfile, } from "./layout";
9
9
  export { AlertLabSummaryIcon, DashboardIcon, LabAnalysisIcon, LabResultsIcon, LogoutIcon, PredictiveIndexIcon, QuestionnaireIcon, ShellLayout, SideMenu, SideMenuFooter, SideMenuNavButton, SuggestedProductsIcon, SupplementScheduleIcon, sideMenuItemIconClass, WellnessIndicatorsIcon, } from "./layout";
10
- export type { AlertLabMetricDto, AlertLabSummaryPageDto, ContentByNavId, DashboardContentFetchers, DashboardNavItemId, DashboardPageDto, DashboardTabContentCacheContextValue, DashboardTabContentLoadErrorInfo, DashboardTabDefinitionId, DashboardTabPluginDefinition, DashboardTabStaticPageHeader, DownloadReportPdfOptions, FetchReportPageOptions, HttpDashboardContentFetchersConfig, LabAnalysisPageDto, LabResultsPageDto, QuestionnaireAnalysisPageDto, ReportPageDtoByNavId, ReportPageDtoFor, ReportPageNavKey, SuggestedProductsPageDto, SupplementSchedulePageDto, TotalPredictiveIndexPageDto, UseDashboardTabContentOptions, UseDashboardTabContentResult, WellnessIndicatorsPageDto, } from "./MetabolicDashboard";
11
- export { buildReportPageUrl, createHttpDashboardContentFetchers, createReportPdfDownloader, DASHBOARD_TAB_NAV_IDS, DASHBOARD_TAB_PLUGINS, DashboardTabContentCacheProvider, DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS, fetchReportPage, getBuiltInReportPagesApiBaseUrl, getDashboardTabStaticPageHeader, isDashboardNavItemId, isMetabolicDashboardApiKeyAccepted, METABOLIC_DASHBOARD_STUB_API_KEY, METABOLIC_REPORT_PAGES_API_BASE_URL, MetabolicDashboard, MetabolicDashboardDefaultMain, mapAlertLabSummaryDtoToTabContent, mapDashboardPageDtoToTabContent, mapLabAnalysisDtoToTabContent, mapLabResultsDtoToTabContent, mapQuestionnaireAnalysisDtoToTabContent, mapSuggestedProductsDtoToTabContent, mapSupplementScheduleDtoToTabContent, mapTotalPredictiveIndexDtoToTabContent, mapWellnessIndicatorsDtoToTabContent, mergeDashboardContentFetchers, useDashboardTabContent, useInvalidateDashboardTabContentCache, } from "./MetabolicDashboard";
10
+ export type { AlertLabMetricDto, AlertLabSummaryPageDto, ContentByNavId, DashboardContentFetchers, DashboardNavItemId, DashboardPageDto, DashboardTabContentCacheContextValue, DashboardTabContentLoadErrorInfo, DashboardTabDefinitionId, DashboardTabPluginDefinition, DashboardTabStaticPageHeader, DownloadReportPdfOptions, FetchReportPageOptions, CheckMetabolicReportExistsOptions, HttpDashboardContentFetchersConfig, LabAnalysisPageDto, LabResultsPageDto, QuestionnaireAnalysisPageDto, ReportPageDtoByNavId, ReportPageDtoFor, ReportPageNavKey, SuggestedProductsPageDto, SupplementSchedulePageDto, TotalPredictiveIndexPageDto, UseDashboardTabContentOptions, UseDashboardTabContentResult, WellnessIndicatorsPageDto, } from "./MetabolicDashboard";
11
+ export { buildReportPageUrl, buildReportExistsUrl, checkMetabolicReportExists, createHttpDashboardContentFetchers, createReportPdfDownloader, DASHBOARD_TAB_NAV_IDS, DASHBOARD_TAB_PLUGINS, DashboardTabContentCacheProvider, DEFAULT_DASHBOARD_TAB_CONTENT_CACHE_TTL_MS, fetchReportPage, getBuiltInReportPagesApiBaseUrl, getDashboardTabStaticPageHeader, isDashboardNavItemId, isMetabolicDashboardApiKeyAccepted, METABOLIC_DASHBOARD_STUB_API_KEY, METABOLIC_REPORT_PAGES_API_BASE_URL, MetabolicDashboard, MetabolicDashboardDefaultMain, mapAlertLabSummaryDtoToTabContent, mapDashboardPageDtoToTabContent, mapLabAnalysisDtoToTabContent, mapLabResultsDtoToTabContent, mapQuestionnaireAnalysisDtoToTabContent, mapSuggestedProductsDtoToTabContent, mapSupplementScheduleDtoToTabContent, mapTotalPredictiveIndexDtoToTabContent, mapWellnessIndicatorsDtoToTabContent, mergeDashboardContentFetchers, useDashboardTabContent, useInvalidateDashboardTabContentCache, } from "./MetabolicDashboard";
12
12
  export { MetabolicEmbedRoot, type MetabolicEmbedRootProps, } from "./MetabolicEmbedRoot";
13
13
  export { type MountMetabolicEmbedOptions, mountMetabolicEmbed, } from "./mountMetabolicEmbed";