feat: add business brand assets and health checks
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
export {
|
||||
brandAssetKinds,
|
||||
brandAssetThemes,
|
||||
getBrandAssetFieldNames,
|
||||
hasBusinessBrandAsset,
|
||||
resolveBusinessBrandAsset,
|
||||
} from "@beenvoice/domain/brand-assets";
|
||||
export type {
|
||||
BrandAssetKind,
|
||||
BrandAssetTheme,
|
||||
BusinessBrandAssets,
|
||||
} from "@beenvoice/domain/brand-assets";
|
||||
|
||||
import type {
|
||||
BrandAssetKind,
|
||||
BrandAssetTheme,
|
||||
} from "@beenvoice/domain/brand-assets";
|
||||
|
||||
export function businessBrandAssetPath(
|
||||
businessId: string,
|
||||
kind: BrandAssetKind = "logo",
|
||||
theme: BrandAssetTheme = "light",
|
||||
format?: "png",
|
||||
): string {
|
||||
const params = new URLSearchParams({ kind, theme });
|
||||
if (format) params.set("format", format);
|
||||
return `/api/business-logo/${businessId}?${params.toString()}`;
|
||||
}
|
||||
Reference in New Issue
Block a user