@burdenoff/microfe-product 2026.521.1 → 2026.521.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ProductDetailPage.js","names":[],"sources":["../../../../../src/product-management/modules/products/pages/ProductDetailPage.tsx"],"sourcesContent":["import { useParams } from 'react-router-dom';\nimport {\n ArrowLeft,\n Edit,\n ExternalLink,\n FileText,\n Mail,\n MapPin,\n Package,\n Phone,\n Search,\n Share2,\n Shield,\n Trash2,\n} from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useProduct, useDeleteProduct } from '../hooks/useProducts';\nimport { ProductStatusBadge } from '../components/ProductStatusBadge';\nimport { ProductPlans } from '../components/ProductPlans';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport { TagList } from '../../../shared/components/TagList';\nimport { AuditHistoryTab } from '../../../shared/components/AuditHistoryTab';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../../../utils/nativeBridge';\n\n/**\n * Product Detail Page\n * Shows comprehensive product information\n */\nexport function ProductDetailPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const { t } = useI18n();\n const tr = (key: string, fallback: string) => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n const { product, loading, error } = useProduct(id!);\n const { deleteProduct, loading: deleteLoading } = useDeleteProduct();\n\n const handleDelete = async () => {\n void nativeImpact('medium');\n const message = tr(\n 'products.confirmDeleteProduct',\n 'Are you sure you want to delete this product?'\n );\n const native = await nativeConfirm({\n title: 'Delete product',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n const ok = native === null ? window.confirm(message) : native;\n if (!ok) return;\n\n try {\n await deleteProduct(id!);\n void nativeNotify('success');\n navigate(basePath);\n } catch (error) {\n void nativeNotify('error');\n console.error('Failed to delete product:', error);\n }\n };\n\n if (loading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState\n message={tr('products.loadingProductDetails', 'Loading product details...')}\n />\n </div>\n );\n }\n\n if (error || !product) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={error?.message || tr('products.productNotFound', 'Product not found')}\n action={{\n label: tr('products.backToProducts', 'Back to Products'),\n onClick: () => navigate(basePath),\n }}\n />\n </div>\n );\n }\n\n const formatDate = (dateString: string) => {\n return new Date(dateString).toLocaleDateString('en-US', {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n });\n };\n\n const hasContactInfo =\n product.contactEmail || product.supportEmail || product.contactPhone || product.contactAddress;\n\n const hasSeoMetadata =\n product.seoTitle || product.seoDescription || product.seoKeywords || product.ogImage;\n\n const hasAppStoreLinks = product.appStoreUrl || product.playStoreUrl;\n\n const hasSocialLinks = product.socialLinks && Object.keys(product.socialLinks).length > 0;\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <button\n onClick={() => navigate(basePath)}\n className=\"\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n \"\n >\n <ArrowLeft size={20} />\n <span className=\"text-sm font-medium\">\n {tr('products.backToProducts', 'Back to Products')}\n </span>\n </button>\n\n <div className=\"flex items-start justify-between\">\n <div className=\"flex items-center gap-4\">\n {product.logoUrl ? (\n <img\n src={product.logoUrl}\n alt={product.name}\n className=\"w-16 h-16 rounded-lg object-cover\"\n />\n ) : (\n <div className=\"w-16 h-16 rounded-lg bg-[var(--color-status-warning-subtle)] flex items-center justify-center\">\n <Package size={32} className=\"text-[var(--color-status-warning)]\" />\n </div>\n )}\n\n <div>\n <div className=\"flex items-center gap-3 mb-2\">\n <h1 className=\"text-3xl font-bold text-text-primary\">{product.name}</h1>\n <ProductStatusBadge status={product.status} />\n </div>\n <p className=\"text-text-secondary\">/{product.slug}</p>\n </div>\n </div>\n\n <div className=\"flex gap-2\">\n <button\n onClick={() => navigate(`${basePath}/${id}/edit`)}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n font-medium\n \"\n >\n <Edit size={16} />\n {tr('products.editProduct', 'Edit Product')}\n </button>\n\n <button\n onClick={handleDelete}\n disabled={deleteLoading}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error-border)]\n rounded-lg\n hover:opacity-80\n transition-all duration-200\n font-medium\n disabled:opacity-50\n \"\n >\n <Trash2 size={16} />\n {tr('products.delete', 'Delete')}\n </button>\n </div>\n </div>\n </div>\n\n {/* Content */}\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-6\">\n {/* Basic Information */}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('products.basicInformation', 'Basic Information')}\n </h2>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.name', 'Name')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{product.name}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.slug', 'Slug')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">{product.slug}</dd>\n </div>\n {product.tags && product.tags.length > 0 && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary mb-1\">\n {tr('products.tags', 'Tags')}\n </dt>\n <dd>\n <TagList tags={product.tags} />\n </dd>\n </div>\n )}\n </dl>\n </div>\n\n {/* Description */}\n {product.description && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('products.description', 'Description')}\n </h2>\n <p className=\"text-sm text-text-secondary leading-relaxed\">{product.description}</p>\n </div>\n )}\n\n {/* Timestamps */}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('products.timestamps', 'Timestamps')}\n </h2>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.created', 'Created')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{formatDate(product.createdAt)}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.lastUpdated', 'Last Updated')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{formatDate(product.updatedAt)}</dd>\n </div>\n </dl>\n </div>\n\n {/* Contact Information */}\n {hasContactInfo && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('products.contactInformation', 'Contact Information')}\n </h2>\n <dl className=\"space-y-3\">\n {product.contactEmail && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary flex items-center gap-1.5\">\n <Mail size={14} />\n {tr('products.contactEmail', 'Contact Email')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={`mailto:${product.contactEmail}`}\n className=\"text-[var(--color-text-link)] hover:underline\"\n >\n {product.contactEmail}\n </a>\n </dd>\n </div>\n )}\n {product.supportEmail && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary flex items-center gap-1.5\">\n <Mail size={14} />\n {tr('products.supportEmail', 'Support Email')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={`mailto:${product.supportEmail}`}\n className=\"text-[var(--color-text-link)] hover:underline\"\n >\n {product.supportEmail}\n </a>\n </dd>\n </div>\n )}\n {product.contactPhone && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary flex items-center gap-1.5\">\n <Phone size={14} />\n {tr('products.phone', 'Phone')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={`tel:${product.contactPhone}`}\n className=\"text-[var(--color-text-link)] hover:underline\"\n >\n {product.contactPhone}\n </a>\n </dd>\n </div>\n )}\n {product.contactAddress && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary flex items-center gap-1.5\">\n <MapPin size={14} />\n {tr('products.address', 'Address')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{product.contactAddress}</dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* SEO Metadata */}\n {hasSeoMetadata && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <Search size={18} />\n {tr('products.seoMetadata', 'SEO Metadata')}\n </h2>\n <dl className=\"space-y-3\">\n {product.seoTitle && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.seoTitle', 'SEO Title')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{product.seoTitle}</dd>\n </div>\n )}\n {product.seoDescription && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.seoDescription', 'SEO Description')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 leading-relaxed\">\n {product.seoDescription}\n </dd>\n </div>\n )}\n {product.seoKeywords && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.keywords', 'Keywords')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n <div className=\"flex flex-wrap gap-1.5 mt-1\">\n {(typeof product.seoKeywords === 'string'\n ? product.seoKeywords.split(',').map((k: string) => k.trim())\n : product.seoKeywords\n ).map((keyword: string) => (\n <span\n key={keyword}\n className=\"inline-flex px-2 py-0.5 text-xs font-medium rounded-full bg-muted text-text-secondary border border-default\"\n >\n {keyword}\n </span>\n ))}\n </div>\n </dd>\n </div>\n )}\n {product.ogImage && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.ogImage', 'OG Image')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={product.ogImage}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"text-[var(--color-text-link)] hover:underline break-all\"\n >\n {product.ogImage}\n </a>\n <img\n src={product.ogImage}\n alt={tr('products.ogImagePreview', 'OG Image preview')}\n className=\"mt-2 max-w-[200px] max-h-[120px] rounded border border-default object-cover\"\n onError={(e) => {\n (e.target as HTMLImageElement).style.display = 'none';\n }}\n />\n </dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* App Store Links */}\n {hasAppStoreLinks && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <ExternalLink size={18} />\n {tr('products.appStoreLinks', 'App Store Links')}\n </h2>\n <dl className=\"space-y-3\">\n {product.appStoreUrl && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.appleAppStore', 'Apple App Store')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={product.appStoreUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline\"\n >\n {product.appStoreUrl}\n <ExternalLink size={12} />\n </a>\n </dd>\n </div>\n )}\n {product.playStoreUrl && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.googlePlayStore', 'Google Play Store')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={product.playStoreUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline\"\n >\n {product.playStoreUrl}\n <ExternalLink size={12} />\n </a>\n </dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* Social Media Links */}\n {hasSocialLinks && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <Share2 size={18} />\n {tr('products.socialMediaLinks', 'Social Media Links')}\n </h2>\n <dl className=\"space-y-3\">\n {Object.entries(product.socialLinks!).map(([platform, url]) => (\n <div key={platform}>\n <dt className=\"text-sm font-medium text-text-secondary capitalize\">{platform}</dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline\"\n >\n {url}\n <ExternalLink size={12} />\n </a>\n </dd>\n </div>\n ))}\n </dl>\n </div>\n )}\n\n {/* Content Pages */}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <FileText size={18} />\n {tr('products.contentPages', 'Content Pages')}\n </h2>\n <p className=\"text-sm text-text-secondary mb-4\">\n {tr(\n 'products.manageContentPages',\n 'Manage content pages associated with this product.'\n )}\n </p>\n <button\n onClick={() => navigate(`${basePath}/content-pages`)}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n font-medium\n text-sm\n \"\n >\n <FileText size={16} />\n {tr('products.viewContentPages', 'View Content Pages')}\n </button>\n </div>\n\n {/* Integrations */}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <div className=\"flex items-center gap-2 mb-4\">\n <Shield size={20} className=\"text-text-secondary\" />\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {tr('products.integrations', 'Integrations')}\n </h2>\n </div>\n <div className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.recaptchaSiteKey', 'reCAPTCHA Site Key')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-0.5 font-mono\">\n {product.recaptchaSiteKey || (\n <span className=\"text-text-secondary italic\">\n {tr('products.notConfigured', 'Not configured')}\n </span>\n )}\n </dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.recaptchaSecretKey', 'reCAPTCHA Secret Key')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-0.5\">\n <span className=\"text-text-secondary italic\">\n {tr('products.hiddenSetViaEdit', 'Hidden — set via Edit page')}\n </span>\n </dd>\n </div>\n </div>\n </div>\n\n {/* Pricing Plans (view only) */}\n <ProductPlans productId={product.slug} productName={product.name} readOnly />\n\n {/* Activity History */}\n <div className=\"lg:col-span-2 bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)]\">\n <h2 className=\"text-lg font-semibold text-text-primary p-6 pb-0\">\n {tr('products.activityHistory', 'Activity History')}\n </h2>\n <AuditHistoryTab resourceId={product.id} resourceType=\"PlatformProduct\" />\n </div>\n\n {/* Metadata */}\n {product.metadata && Object.keys(product.metadata).length > 0 && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('products.metadata', 'Metadata')}\n </h2>\n <dl className=\"space-y-3\">\n {Object.entries(product.metadata).map(([key, value]) => (\n <div key={key}>\n <dt className=\"text-sm font-medium text-text-secondary capitalize\">\n {key.replace(/([A-Z])/g, ' $1').trim()}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">\n {JSON.stringify(value)}\n </dd>\n </div>\n ))}\n </dl>\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AA8BA,SAAgB,IAAoB;CAClC,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,EAAE,SAAM,GAAS,EACjB,KAAM,GAAa,MAAqB;EAC5C,IAAM,IAAa,EAAE,EAAI;AACzB,SAAO,MAAe,IAAM,IAAW;IAEnC,EAAE,YAAS,YAAS,aAAU,EAAW,EAAI,EAC7C,EAAE,kBAAe,SAAS,MAAkB,GAAkB,EAE9D,IAAe,YAAY;AAC1B,IAAa,SAAS;EAC3B,IAAM,IAAU,EACd,iCACA,gDACD,EACK,IAAS,MAAM,EAAc;GACjC,OAAO;GACP;GACA,eAAe;GACf,mBAAmB;GACpB,CAAC;AACS,YAAW,OAAO,OAAO,QAAQ,EAAQ,GAAG,EAGvD,KAAI;AAGF,GAFA,MAAM,EAAc,EAAI,EACnB,EAAa,UAAU,EAC5B,EAAS,EAAS;WACX,GAAO;AAEd,GADK,EAAa,QAAQ,EAC1B,QAAQ,MAAM,6BAA6B,EAAM;;;AAIrD,KAAI,EACF,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EACE,SAAS,EAAG,kCAAkC,6BAA6B,EAC3E,CAAA;EACE,CAAA;AAIV,KAAI,KAAS,CAAC,EACZ,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD;GACE,SAAS,GAAO,WAAW,EAAG,4BAA4B,oBAAoB;GAC9E,QAAQ;IACN,OAAO,EAAG,2BAA2B,mBAAmB;IACxD,eAAe,EAAS,EAAS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L,kBAAC,MAAD;MAAI,WAAU;gBACX,OAAO,QAAQ,EAAQ,SAAS,CAAC,KAAK,CAAC,GAAK,OAC3C,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;iBACX,EAAI,QAAQ,YAAY,MAAM,CAAC,MAAM;OACnC,CAAA,EACL,kBAAC,MAAD;OAAI,WAAU;iBACX,KAAK,UAAU,EAAM;OACnB,CAAA,CACD,EAAA,EAPI,EAOJ,CACN;MACC,CAAA,CACD;;IAEJ;KACF"}
1
+ {"version":3,"file":"ProductDetailPage.js","names":[],"sources":["../../../../../src/product-management/modules/products/pages/ProductDetailPage.tsx"],"sourcesContent":["import { useParams } from 'react-router-dom';\nimport {\n ArrowLeft,\n Edit,\n ExternalLink,\n FileText,\n Link as LinkIcon,\n Mail,\n MapPin,\n Package,\n Phone,\n Search,\n Share2,\n Shield,\n Trash2,\n} from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useProduct, useDeleteProduct } from '../hooks/useProducts';\nimport { ProductStatusBadge } from '../components/ProductStatusBadge';\nimport { ProductPlans } from '../components/ProductPlans';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport { TagList } from '../../../shared/components/TagList';\nimport { AuditHistoryTab } from '../../../shared/components/AuditHistoryTab';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../../../utils/nativeBridge';\n\n/**\n * Product Detail Page\n * Shows comprehensive product information\n */\nexport function ProductDetailPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const { t } = useI18n();\n const tr = (key: string, fallback: string) => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n const { product, loading, error } = useProduct(id!);\n const { deleteProduct, loading: deleteLoading } = useDeleteProduct();\n\n const handleDelete = async () => {\n void nativeImpact('medium');\n const message = tr(\n 'products.confirmDeleteProduct',\n 'Are you sure you want to delete this product?'\n );\n const native = await nativeConfirm({\n title: 'Delete product',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n const ok = native === null ? window.confirm(message) : native;\n if (!ok) return;\n\n try {\n await deleteProduct(id!);\n void nativeNotify('success');\n navigate(basePath);\n } catch (error) {\n void nativeNotify('error');\n console.error('Failed to delete product:', error);\n }\n };\n\n if (loading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState\n message={tr('products.loadingProductDetails', 'Loading product details...')}\n />\n </div>\n );\n }\n\n if (error || !product) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={error?.message || tr('products.productNotFound', 'Product not found')}\n action={{\n label: tr('products.backToProducts', 'Back to Products'),\n onClick: () => navigate(basePath),\n }}\n />\n </div>\n );\n }\n\n const formatDate = (dateString: string) => {\n return new Date(dateString).toLocaleDateString('en-US', {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n });\n };\n\n const hasContactInfo =\n product.contactEmail || product.supportEmail || product.contactPhone || product.contactAddress;\n\n const hasSeoMetadata =\n product.seoTitle || product.seoDescription || product.seoKeywords || product.ogImage;\n\n const hasAppStoreLinks = product.appStoreUrl || product.playStoreUrl;\n\n const hasSocialLinks = product.socialLinks && Object.keys(product.socialLinks).length > 0;\n const hasResourceLinks = product.resourceLinks && Object.keys(product.resourceLinks).length > 0;\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <button\n onClick={() => navigate(basePath)}\n className=\"\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n \"\n >\n <ArrowLeft size={20} />\n <span className=\"text-sm font-medium\">\n {tr('products.backToProducts', 'Back to Products')}\n </span>\n </button>\n\n <div className=\"flex items-start justify-between\">\n <div className=\"flex items-center gap-4\">\n {product.logoUrl ? (\n <img\n src={product.logoUrl}\n alt={product.name}\n className=\"w-16 h-16 rounded-lg object-cover\"\n />\n ) : (\n <div className=\"w-16 h-16 rounded-lg bg-[var(--color-status-warning-subtle)] flex items-center justify-center\">\n <Package size={32} className=\"text-[var(--color-status-warning)]\" />\n </div>\n )}\n\n <div>\n <div className=\"flex items-center gap-3 mb-2\">\n <h1 className=\"text-3xl font-bold text-text-primary\">{product.name}</h1>\n <ProductStatusBadge status={product.status} />\n </div>\n <p className=\"text-text-secondary\">/{product.slug}</p>\n </div>\n </div>\n\n <div className=\"flex gap-2\">\n <button\n onClick={() => navigate(`${basePath}/${id}/edit`)}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n font-medium\n \"\n >\n <Edit size={16} />\n {tr('products.editProduct', 'Edit Product')}\n </button>\n\n <button\n onClick={handleDelete}\n disabled={deleteLoading}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error-border)]\n rounded-lg\n hover:opacity-80\n transition-all duration-200\n font-medium\n disabled:opacity-50\n \"\n >\n <Trash2 size={16} />\n {tr('products.delete', 'Delete')}\n </button>\n </div>\n </div>\n </div>\n\n {/* Content */}\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-6\">\n {/* Basic Information */}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('products.basicInformation', 'Basic Information')}\n </h2>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.name', 'Name')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{product.name}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.slug', 'Slug')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">{product.slug}</dd>\n </div>\n {product.tags && product.tags.length > 0 && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary mb-1\">\n {tr('products.tags', 'Tags')}\n </dt>\n <dd>\n <TagList tags={product.tags} />\n </dd>\n </div>\n )}\n </dl>\n </div>\n\n {/* Description */}\n {product.description && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('products.description', 'Description')}\n </h2>\n <p className=\"text-sm text-text-secondary leading-relaxed\">{product.description}</p>\n </div>\n )}\n\n {/* Timestamps */}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('products.timestamps', 'Timestamps')}\n </h2>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.created', 'Created')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{formatDate(product.createdAt)}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.lastUpdated', 'Last Updated')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{formatDate(product.updatedAt)}</dd>\n </div>\n </dl>\n </div>\n\n {/* Contact Information */}\n {hasContactInfo && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('products.contactInformation', 'Contact Information')}\n </h2>\n <dl className=\"space-y-3\">\n {product.contactEmail && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary flex items-center gap-1.5\">\n <Mail size={14} />\n {tr('products.contactEmail', 'Contact Email')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={`mailto:${product.contactEmail}`}\n className=\"text-[var(--color-text-link)] hover:underline\"\n >\n {product.contactEmail}\n </a>\n </dd>\n </div>\n )}\n {product.supportEmail && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary flex items-center gap-1.5\">\n <Mail size={14} />\n {tr('products.supportEmail', 'Support Email')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={`mailto:${product.supportEmail}`}\n className=\"text-[var(--color-text-link)] hover:underline\"\n >\n {product.supportEmail}\n </a>\n </dd>\n </div>\n )}\n {product.contactPhone && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary flex items-center gap-1.5\">\n <Phone size={14} />\n {tr('products.phone', 'Phone')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={`tel:${product.contactPhone}`}\n className=\"text-[var(--color-text-link)] hover:underline\"\n >\n {product.contactPhone}\n </a>\n </dd>\n </div>\n )}\n {product.contactAddress && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary flex items-center gap-1.5\">\n <MapPin size={14} />\n {tr('products.address', 'Address')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{product.contactAddress}</dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* SEO Metadata */}\n {hasSeoMetadata && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <Search size={18} />\n {tr('products.seoMetadata', 'SEO Metadata')}\n </h2>\n <dl className=\"space-y-3\">\n {product.seoTitle && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.seoTitle', 'SEO Title')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{product.seoTitle}</dd>\n </div>\n )}\n {product.seoDescription && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.seoDescription', 'SEO Description')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 leading-relaxed\">\n {product.seoDescription}\n </dd>\n </div>\n )}\n {product.seoKeywords && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.keywords', 'Keywords')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n <div className=\"flex flex-wrap gap-1.5 mt-1\">\n {(typeof product.seoKeywords === 'string'\n ? product.seoKeywords.split(',').map((k: string) => k.trim())\n : product.seoKeywords\n ).map((keyword: string) => (\n <span\n key={keyword}\n className=\"inline-flex px-2 py-0.5 text-xs font-medium rounded-full bg-muted text-text-secondary border border-default\"\n >\n {keyword}\n </span>\n ))}\n </div>\n </dd>\n </div>\n )}\n {product.ogImage && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.ogImage', 'OG Image')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={product.ogImage}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"text-[var(--color-text-link)] hover:underline break-all\"\n >\n {product.ogImage}\n </a>\n <img\n src={product.ogImage}\n alt={tr('products.ogImagePreview', 'OG Image preview')}\n className=\"mt-2 max-w-[200px] max-h-[120px] rounded border border-default object-cover\"\n onError={(e) => {\n (e.target as HTMLImageElement).style.display = 'none';\n }}\n />\n </dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* App Store Links */}\n {hasAppStoreLinks && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <ExternalLink size={18} />\n {tr('products.appStoreLinks', 'App Store Links')}\n </h2>\n <dl className=\"space-y-3\">\n {product.appStoreUrl && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.appleAppStore', 'Apple App Store')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={product.appStoreUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline\"\n >\n {product.appStoreUrl}\n <ExternalLink size={12} />\n </a>\n </dd>\n </div>\n )}\n {product.playStoreUrl && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.googlePlayStore', 'Google Play Store')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={product.playStoreUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline\"\n >\n {product.playStoreUrl}\n <ExternalLink size={12} />\n </a>\n </dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* Social Media Links */}\n {hasSocialLinks && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <Share2 size={18} />\n {tr('products.socialMediaLinks', 'Social Media Links')}\n </h2>\n <dl className=\"space-y-3\">\n {Object.entries(product.socialLinks!).map(([platform, url]) => (\n <div key={platform}>\n <dt className=\"text-sm font-medium text-text-secondary capitalize\">{platform}</dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline\"\n >\n {url}\n <ExternalLink size={12} />\n </a>\n </dd>\n </div>\n ))}\n </dl>\n </div>\n )}\n\n {/*\n * Resource Links — surfaces the same data set the website footer\n * \"Resources\" column renders. Same display shape as Social Links;\n * different JSON column on the backend (Product.resourceLinks).\n */}\n {hasResourceLinks && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <LinkIcon size={18} />\n {tr('products.resourceLinks', 'Resource Links')}\n </h2>\n <dl className=\"space-y-3\">\n {Object.entries(product.resourceLinks!).map(([resource, url]) => (\n <div key={resource}>\n <dt className=\"text-sm font-medium text-text-secondary capitalize\">{resource}</dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline\"\n >\n {url}\n <ExternalLink size={12} />\n </a>\n </dd>\n </div>\n ))}\n </dl>\n </div>\n )}\n\n {/* Content Pages */}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <FileText size={18} />\n {tr('products.contentPages', 'Content Pages')}\n </h2>\n <p className=\"text-sm text-text-secondary mb-4\">\n {tr(\n 'products.manageContentPages',\n 'Manage content pages associated with this product.'\n )}\n </p>\n <button\n onClick={() => navigate(`${basePath}/content-pages`)}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n font-medium\n text-sm\n \"\n >\n <FileText size={16} />\n {tr('products.viewContentPages', 'View Content Pages')}\n </button>\n </div>\n\n {/* Integrations */}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <div className=\"flex items-center gap-2 mb-4\">\n <Shield size={20} className=\"text-text-secondary\" />\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {tr('products.integrations', 'Integrations')}\n </h2>\n </div>\n <div className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.recaptchaSiteKey', 'reCAPTCHA Site Key')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-0.5 font-mono\">\n {product.recaptchaSiteKey || (\n <span className=\"text-text-secondary italic\">\n {tr('products.notConfigured', 'Not configured')}\n </span>\n )}\n </dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('products.recaptchaSecretKey', 'reCAPTCHA Secret Key')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-0.5\">\n <span className=\"text-text-secondary italic\">\n {tr('products.hiddenSetViaEdit', 'Hidden — set via Edit page')}\n </span>\n </dd>\n </div>\n </div>\n </div>\n\n {/* Pricing Plans (view only) */}\n <ProductPlans productId={product.slug} productName={product.name} readOnly />\n\n {/* Activity History */}\n <div className=\"lg:col-span-2 bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)]\">\n <h2 className=\"text-lg font-semibold text-text-primary p-6 pb-0\">\n {tr('products.activityHistory', 'Activity History')}\n </h2>\n <AuditHistoryTab resourceId={product.id} resourceType=\"PlatformProduct\" />\n </div>\n\n {/* Metadata */}\n {product.metadata && Object.keys(product.metadata).length > 0 && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('products.metadata', 'Metadata')}\n </h2>\n <dl className=\"space-y-3\">\n {Object.entries(product.metadata).map(([key, value]) => (\n <div key={key}>\n <dt className=\"text-sm font-medium text-text-secondary capitalize\">\n {key.replace(/([A-Z])/g, ' $1').trim()}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">\n {JSON.stringify(value)}\n </dd>\n </div>\n ))}\n </dl>\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AA+BA,SAAgB,IAAoB;CAClC,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,cAAW,gBAAg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MAChD,CAAA,EACL,kBAAC,GAAD;MAAiB,YAAY,EAAQ;MAAI,cAAa;MAAoB,CAAA,CACtE;;IAGL,EAAQ,YAAY,OAAO,KAAK,EAAQ,SAAS,CAAC,SAAS,KAC1D,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAG,qBAAqB,WAAW;MACjC,CAAA,EACL,kBAAC,MAAD;MAAI,WAAU;gBACX,OAAO,QAAQ,EAAQ,SAAS,CAAC,KAAK,CAAC,GAAK,OAC3C,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;iBACX,EAAI,QAAQ,YAAY,MAAM,CAAC,MAAM;OACnC,CAAA,EACL,kBAAC,MAAD;OAAI,WAAU;iBACX,KAAK,UAAU,EAAM;OACnB,CAAA,CACD,EAAA,EAPI,EAOJ,CACN;MACC,CAAA,CACD;;IAEJ;KACF"}
@@ -26,6 +26,7 @@ export declare const createProductSchema: z.ZodObject<{
26
26
  appStoreUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
27
27
  playStoreUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
28
28
  socialLinks: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodUndefined]>;
29
+ resourceLinks: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodUndefined]>;
29
30
  }, z.core.$strip>;
30
31
  export declare const updateProductSchema: z.ZodObject<{
31
32
  name: z.ZodOptional<z.ZodString>;
@@ -53,6 +54,7 @@ export declare const updateProductSchema: z.ZodObject<{
53
54
  appStoreUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
54
55
  playStoreUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
55
56
  socialLinks: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodUndefined]>;
57
+ resourceLinks: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodUndefined]>;
56
58
  }, z.core.$strip>;
57
59
  export type CreateProductFormData = z.infer<typeof createProductSchema>;
58
60
  export type UpdateProductFormData = z.infer<typeof updateProductSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/products/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8ExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsB9B,CAAC;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqB9B,CAAC;AAGH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACxE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/products/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+ExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuB9B,CAAC;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsB9B,CAAC;AAGH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACxE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -22,7 +22,8 @@ var s = o().url("Must be a valid URL").optional().or(n("")), c = o().email("Must
22
22
  ogImage: s,
23
23
  appStoreUrl: s,
24
24
  playStoreUrl: s,
25
- socialLinks: a(o(), o()).optional().or(t())
25
+ socialLinks: a(o(), o()).optional().or(t()),
26
+ resourceLinks: a(o(), o()).optional().or(t())
26
27
  }, u = i({
27
28
  name: l.name,
28
29
  slug: l.slug,
@@ -44,7 +45,8 @@ var s = o().url("Must be a valid URL").optional().or(n("")), c = o().email("Must
44
45
  ogImage: l.ogImage,
45
46
  appStoreUrl: l.appStoreUrl,
46
47
  playStoreUrl: l.playStoreUrl,
47
- socialLinks: l.socialLinks
48
+ socialLinks: l.socialLinks,
49
+ resourceLinks: l.resourceLinks
48
50
  }), d = i({
49
51
  name: l.name.optional(),
50
52
  description: l.description,
@@ -65,7 +67,8 @@ var s = o().url("Must be a valid URL").optional().or(n("")), c = o().email("Must
65
67
  ogImage: l.ogImage,
66
68
  appStoreUrl: l.appStoreUrl,
67
69
  playStoreUrl: l.playStoreUrl,
68
- socialLinks: l.socialLinks
70
+ socialLinks: l.socialLinks,
71
+ resourceLinks: l.resourceLinks
69
72
  });
70
73
  //#endregion
71
74
  export { u as createProductSchema, d as updateProductSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/product-management/modules/products/schemas/index.ts"],"sourcesContent":["import { z } from 'zod';\nimport { ProductStatus } from '../types';\n\n/**\n * Product Validation Schemas\n * Zod schemas for validating product form inputs\n * Aligned with backend PlatformProduct schema\n */\n\n// URL validation helper - allows empty string or valid URL\nconst optionalUrl = z.string().url('Must be a valid URL').optional().or(z.literal(''));\n\n// Email validation helper - allows empty string or valid email\nconst optionalEmail = z\n .string()\n .email('Must be a valid email address')\n .optional()\n .or(z.literal(''));\n\n// Base product schema with common fields\nconst baseProductSchema = {\n name: z\n .string()\n .min(2, 'Name must be at least 2 characters')\n .max(100, 'Name must not exceed 100 characters')\n .trim(),\n slug: z\n .string()\n .min(2, 'Slug must be at least 2 characters')\n .max(50, 'Slug must not exceed 50 characters')\n .regex(/^[a-z0-9-]+$/, 'Slug must contain only lowercase letters, numbers, and hyphens')\n .trim(),\n description: z\n .string()\n .max(1000, 'Description must not exceed 1000 characters')\n .optional()\n .or(z.literal('')),\n status: z.nativeEnum(ProductStatus),\n logoUrl: optionalUrl,\n website: optionalUrl,\n appUrl: optionalUrl,\n docsUrl: optionalUrl,\n githubUrl: optionalUrl,\n statusPageUrl: optionalUrl,\n contactEmail: optionalEmail,\n supportEmail: optionalEmail,\n contactPhone: z\n .string()\n .max(30, 'Phone number must not exceed 30 characters')\n .optional()\n .or(z.literal('')),\n contactAddress: z\n .string()\n .max(500, 'Address must not exceed 500 characters')\n .optional()\n .or(z.literal('')),\n seoTitle: z\n .string()\n .max(100, 'SEO title must not exceed 100 characters')\n .optional()\n .or(z.literal('')),\n seoDescription: z\n .string()\n .max(300, 'SEO description must not exceed 300 characters')\n .optional()\n .or(z.literal('')),\n seoKeywords: z\n .string()\n .max(200, 'SEO keywords must not exceed 200 characters')\n .optional()\n .or(z.literal('')),\n ogImage: optionalUrl,\n appStoreUrl: optionalUrl,\n playStoreUrl: optionalUrl,\n socialLinks: z.record(z.string(), z.string()).optional().or(z.undefined()),\n};\n\n// Create Product Schema\nexport const createProductSchema = z.object({\n name: baseProductSchema.name,\n slug: baseProductSchema.slug,\n description: baseProductSchema.description,\n status: baseProductSchema.status.optional(),\n logoUrl: baseProductSchema.logoUrl,\n website: baseProductSchema.website,\n appUrl: baseProductSchema.appUrl,\n docsUrl: baseProductSchema.docsUrl,\n githubUrl: baseProductSchema.githubUrl,\n statusPageUrl: baseProductSchema.statusPageUrl,\n contactEmail: baseProductSchema.contactEmail,\n supportEmail: baseProductSchema.supportEmail,\n contactPhone: baseProductSchema.contactPhone,\n contactAddress: baseProductSchema.contactAddress,\n seoTitle: baseProductSchema.seoTitle,\n seoDescription: baseProductSchema.seoDescription,\n seoKeywords: baseProductSchema.seoKeywords,\n ogImage: baseProductSchema.ogImage,\n appStoreUrl: baseProductSchema.appStoreUrl,\n playStoreUrl: baseProductSchema.playStoreUrl,\n socialLinks: baseProductSchema.socialLinks,\n});\n\n// Update Product Schema (all fields optional except name)\nexport const updateProductSchema = z.object({\n name: baseProductSchema.name.optional(),\n description: baseProductSchema.description,\n status: baseProductSchema.status.optional(),\n logoUrl: baseProductSchema.logoUrl,\n website: baseProductSchema.website,\n appUrl: baseProductSchema.appUrl,\n docsUrl: baseProductSchema.docsUrl,\n githubUrl: baseProductSchema.githubUrl,\n statusPageUrl: baseProductSchema.statusPageUrl,\n contactEmail: baseProductSchema.contactEmail,\n supportEmail: baseProductSchema.supportEmail,\n contactPhone: baseProductSchema.contactPhone,\n contactAddress: baseProductSchema.contactAddress,\n seoTitle: baseProductSchema.seoTitle,\n seoDescription: baseProductSchema.seoDescription,\n seoKeywords: baseProductSchema.seoKeywords,\n ogImage: baseProductSchema.ogImage,\n appStoreUrl: baseProductSchema.appStoreUrl,\n playStoreUrl: baseProductSchema.playStoreUrl,\n socialLinks: baseProductSchema.socialLinks,\n});\n\n// Type exports\nexport type CreateProductFormData = z.infer<typeof createProductSchema>;\nexport type UpdateProductFormData = z.infer<typeof updateProductSchema>;\n"],"mappings":";;;AAUA,IAAM,IAAc,GAAU,CAAC,IAAI,sBAAsB,CAAC,UAAU,CAAC,GAAG,EAAU,GAAG,CAAC,EAGhF,IAAgB,GACX,CACR,MAAM,gCAAgC,CACtC,UAAU,CACV,GAAG,EAAU,GAAG,CAAC,EAGd,IAAoB;CACxB,MAAM,GACK,CACR,IAAI,GAAG,qCAAqC,CAC5C,IAAI,KAAK,sCAAsC,CAC/C,MAAM;CACT,MAAM,GACK,CACR,IAAI,GAAG,qCAAqC,CAC5C,IAAI,IAAI,qCAAqC,CAC7C,MAAM,gBAAgB,iEAAiE,CACvF,MAAM;CACT,aAAa,GACF,CACR,IAAI,KAAM,8CAA8C,CACxD,UAAU,CACV,GAAG,EAAU,GAAG,CAAC;CACpB,QAAQ,EAAa,EAAc;CACnC,SAAS;CACT,SAAS;CACT,QAAQ;CACR,SAAS;CACT,WAAW;CACX,eAAe;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AkB;CAC7B,eAAe,EAAkB;CACjC,cAAc,EAAkB;CAChC,cAAc,EAAkB;CAChC,cAAc,EAAkB;CAChC,gBAAgB,EAAkB;CAClC,UAAU,EAAkB;CAC5B,gBAAgB,EAAkB;CAClC,aAAa,EAAkB;CAC/B,SAAS,EAAkB;CAC3B,aAAa,EAAkB;CAC/B,cAAc,EAAkB;CAChC,aAAa,EAAkB;CAChC,CAAC"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/product-management/modules/products/schemas/index.ts"],"sourcesContent":["import { z } from 'zod';\nimport { ProductStatus } from '../types';\n\n/**\n * Product Validation Schemas\n * Zod schemas for validating product form inputs\n * Aligned with backend PlatformProduct schema\n */\n\n// URL validation helper - allows empty string or valid URL\nconst optionalUrl = z.string().url('Must be a valid URL').optional().or(z.literal(''));\n\n// Email validation helper - allows empty string or valid email\nconst optionalEmail = z\n .string()\n .email('Must be a valid email address')\n .optional()\n .or(z.literal(''));\n\n// Base product schema with common fields\nconst baseProductSchema = {\n name: z\n .string()\n .min(2, 'Name must be at least 2 characters')\n .max(100, 'Name must not exceed 100 characters')\n .trim(),\n slug: z\n .string()\n .min(2, 'Slug must be at least 2 characters')\n .max(50, 'Slug must not exceed 50 characters')\n .regex(/^[a-z0-9-]+$/, 'Slug must contain only lowercase letters, numbers, and hyphens')\n .trim(),\n description: z\n .string()\n .max(1000, 'Description must not exceed 1000 characters')\n .optional()\n .or(z.literal('')),\n status: z.nativeEnum(ProductStatus),\n logoUrl: optionalUrl,\n website: optionalUrl,\n appUrl: optionalUrl,\n docsUrl: optionalUrl,\n githubUrl: optionalUrl,\n statusPageUrl: optionalUrl,\n contactEmail: optionalEmail,\n supportEmail: optionalEmail,\n contactPhone: z\n .string()\n .max(30, 'Phone number must not exceed 30 characters')\n .optional()\n .or(z.literal('')),\n contactAddress: z\n .string()\n .max(500, 'Address must not exceed 500 characters')\n .optional()\n .or(z.literal('')),\n seoTitle: z\n .string()\n .max(100, 'SEO title must not exceed 100 characters')\n .optional()\n .or(z.literal('')),\n seoDescription: z\n .string()\n .max(300, 'SEO description must not exceed 300 characters')\n .optional()\n .or(z.literal('')),\n seoKeywords: z\n .string()\n .max(200, 'SEO keywords must not exceed 200 characters')\n .optional()\n .or(z.literal('')),\n ogImage: optionalUrl,\n appStoreUrl: optionalUrl,\n playStoreUrl: optionalUrl,\n socialLinks: z.record(z.string(), z.string()).optional().or(z.undefined()),\n resourceLinks: z.record(z.string(), z.string()).optional().or(z.undefined()),\n};\n\n// Create Product Schema\nexport const createProductSchema = z.object({\n name: baseProductSchema.name,\n slug: baseProductSchema.slug,\n description: baseProductSchema.description,\n status: baseProductSchema.status.optional(),\n logoUrl: baseProductSchema.logoUrl,\n website: baseProductSchema.website,\n appUrl: baseProductSchema.appUrl,\n docsUrl: baseProductSchema.docsUrl,\n githubUrl: baseProductSchema.githubUrl,\n statusPageUrl: baseProductSchema.statusPageUrl,\n contactEmail: baseProductSchema.contactEmail,\n supportEmail: baseProductSchema.supportEmail,\n contactPhone: baseProductSchema.contactPhone,\n contactAddress: baseProductSchema.contactAddress,\n seoTitle: baseProductSchema.seoTitle,\n seoDescription: baseProductSchema.seoDescription,\n seoKeywords: baseProductSchema.seoKeywords,\n ogImage: baseProductSchema.ogImage,\n appStoreUrl: baseProductSchema.appStoreUrl,\n playStoreUrl: baseProductSchema.playStoreUrl,\n socialLinks: baseProductSchema.socialLinks,\n resourceLinks: baseProductSchema.resourceLinks,\n});\n\n// Update Product Schema (all fields optional except name)\nexport const updateProductSchema = z.object({\n name: baseProductSchema.name.optional(),\n description: baseProductSchema.description,\n status: baseProductSchema.status.optional(),\n logoUrl: baseProductSchema.logoUrl,\n website: baseProductSchema.website,\n appUrl: baseProductSchema.appUrl,\n docsUrl: baseProductSchema.docsUrl,\n githubUrl: baseProductSchema.githubUrl,\n statusPageUrl: baseProductSchema.statusPageUrl,\n contactEmail: baseProductSchema.contactEmail,\n supportEmail: baseProductSchema.supportEmail,\n contactPhone: baseProductSchema.contactPhone,\n contactAddress: baseProductSchema.contactAddress,\n seoTitle: baseProductSchema.seoTitle,\n seoDescription: baseProductSchema.seoDescription,\n seoKeywords: baseProductSchema.seoKeywords,\n ogImage: baseProductSchema.ogImage,\n appStoreUrl: baseProductSchema.appStoreUrl,\n playStoreUrl: baseProductSchema.playStoreUrl,\n socialLinks: baseProductSchema.socialLinks,\n resourceLinks: baseProductSchema.resourceLinks,\n});\n\n// Type exports\nexport type CreateProductFormData = z.infer<typeof createProductSchema>;\nexport type UpdateProductFormData = z.infer<typeof updateProductSchema>;\n"],"mappings":";;;AAUA,IAAM,IAAc,GAAU,CAAC,IAAI,sBAAsB,CAAC,UAAU,CAAC,GAAG,EAAU,GAAG,CAAC,EAGhF,IAAgB,GACX,CACR,MAAM,gCAAgC,CACtC,UAAU,CACV,GAAG,EAAU,GAAG,CAAC,EAGd,IAAoB;CACxB,MAAM,GACK,CACR,IAAI,GAAG,qCAAqC,CAC5C,IAAI,KAAK,sCAAsC,CAC/C,MAAM;CACT,MAAM,GACK,CACR,IAAI,GAAG,qCAAqC,CAC5C,IAAI,IAAI,qCAAqC,CAC7C,MAAM,gBAAgB,iEAAiE,CACvF,MAAM;CACT,aAAa,GACF,CACR,IAAI,KAAM,8CAA8C,CACxD,UAAU,CACV,GAAG,EAAU,GAAG,CAAC;CACpB,QAAQ,EAAa,EAAc;CACnC,SAAS;CACT,SAAS;CACT,QAAQ;CACR,SAAS;CACT,WAAW;CACX,eAAe;CACf,cAAc;CACd,cAAc;CACd,cAAc,GACH,CACR,IAAI,IAAI,6CAA6C,CACrD,UAAU,CACV,GAAG,EAAU,GAAG,CAAC;CACpB,gBAAgB,GACL,CACR,IAAI,KAAK,yCAAyC,CAClD,UAAU,CACV,GAAG,EAAU,GAAG,CAAC;CACpB,UAAU,GACC,CACR,IAAI,KAAK,2CAA2C,CACpD,UAAU,CACV,GAAG,EAAU,GAAG,CAAC;CACpB,gBAAgB,GACL,CACR,IAAI,KAAK,iDAAiD,CAC1D,U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B;CAChC,aAAa,EAAkB;CAC/B,eAAe,EAAkB;CAClC,CAAC"}
@@ -32,6 +32,7 @@ export interface PlatformProduct {
32
32
  appStoreUrl?: string | null;
33
33
  playStoreUrl?: string | null;
34
34
  socialLinks?: Record<string, string> | null;
35
+ resourceLinks?: Record<string, string> | null;
35
36
  recaptchaSiteKey?: string | null;
36
37
  tenantCount: number;
37
38
  activeUsers: number;
@@ -70,6 +71,7 @@ export interface CreateProductInput {
70
71
  appStoreUrl?: string;
71
72
  playStoreUrl?: string;
72
73
  socialLinks?: Record<string, string>;
74
+ resourceLinks?: Record<string, string>;
73
75
  tags?: string[];
74
76
  recaptchaSiteKey?: string;
75
77
  recaptchaSecretKey?: string;
@@ -95,6 +97,7 @@ export interface UpdateProductInput {
95
97
  appStoreUrl?: string;
96
98
  playStoreUrl?: string;
97
99
  socialLinks?: Record<string, string>;
100
+ resourceLinks?: Record<string, string>;
98
101
  tags?: string[];
99
102
  recaptchaSiteKey?: string;
100
103
  recaptchaSecretKey?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/products/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,aAAa,GAAG,OAAO,GAAG,UAAU,CAAC;AAGpF,eAAO,MAAM,aAAa;;;;;CAKzB,CAAC;AAGF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,MA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MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/products/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,aAAa,GAAG,OAAO,GAAG,UAAU,CAAC;AAGpF,eAAO,MAAM,aAAa;;;;;CAKzB,CAAC;AAGF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI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,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/product-management/modules/products/types/index.ts"],"sourcesContent":["/**\n * Products Module Types\n * Aligned with backend PlatformProduct schema\n */\n\n// Platform Product Status enum matching backend\nexport type PlatformProductStatus = 'ACTIVE' | 'COMING_SOON' | 'DRAFT' | 'WAITLIST';\n\n// Status enum object for runtime use\nexport const ProductStatus = {\n ACTIVE: 'ACTIVE' as const,\n COMING_SOON: 'COMING_SOON' as const,\n DRAFT: 'DRAFT' as const,\n WAITLIST: 'WAITLIST' as const,\n};\n\n// Platform Product type matching backend schema\nexport interface PlatformProduct {\n id: string;\n name: string;\n slug: string;\n description?: string | null;\n status: PlatformProductStatus;\n logoUrl?: string | null;\n website?: string | null;\n appUrl?: string | null;\n docsUrl?: string | null;\n githubUrl?: string | null;\n statusPageUrl?: string | null;\n contactEmail?: string | null;\n supportEmail?: string | null;\n contactPhone?: string | null;\n contactAddress?: string | null;\n seoTitle?: string | null;\n seoDescription?: string | null;\n seoKeywords?: string | null;\n ogImage?: string | null;\n appStoreUrl?: string | null;\n playStoreUrl?: string | null;\n socialLinks?: Record<string, string> | null;\n recaptchaSiteKey?: string | null;\n tenantCount: number;\n activeUsers: number;\n apiCalls: number;\n storageGB: number;\n uptime: number;\n tags: string[];\n metadata?: Record<string, unknown> | null;\n createdAt: string;\n updatedAt: string;\n}\n\n// Alias for convenience\nexport type Product = PlatformProduct;\n\n// Filter types matching backend PlatformProductFilterInput\nexport interface ProductFilterInput {\n status?: PlatformProductStatus;\n search?: string;\n}\n\n// Input types matching backend CreatePlatformProductInput\nexport interface CreateProductInput {\n name: string;\n slug: string;\n description?: string;\n status?: PlatformProductStatus;\n logoUrl?: string;\n website?: string;\n appUrl?: string;\n docsUrl?: string;\n githubUrl?: string;\n statusPageUrl?: string;\n contactEmail?: string;\n supportEmail?: string;\n contactPhone?: string;\n contactAddress?: string;\n seoTitle?: string;\n seoDescription?: string;\n seoKeywords?: string;\n ogImage?: string;\n appStoreUrl?: string;\n playStoreUrl?: string;\n socialLinks?: Record<string, string>;\n tags?: string[];\n recaptchaSiteKey?: string;\n recaptchaSecretKey?: string;\n}\n\n// Update input matching backend UpdatePlatformProductInput\nexport interface UpdateProductInput {\n name?: string;\n description?: string;\n status?: PlatformProductStatus;\n logoUrl?: string;\n website?: string;\n appUrl?: string;\n docsUrl?: string;\n githubUrl?: string;\n statusPageUrl?: string;\n contactEmail?: string;\n supportEmail?: string;\n contactPhone?: string;\n contactAddress?: string;\n seoTitle?: string;\n seoDescription?: string;\n seoKeywords?: string;\n ogImage?: string;\n appStoreUrl?: string;\n playStoreUrl?: string;\n socialLinks?: Record<string, string>;\n tags?: string[];\n recaptchaSiteKey?: string;\n recaptchaSecretKey?: string;\n tenantCount?: number;\n activeUsers?: number;\n apiCalls?: number;\n storageGB?: number;\n uptime?: number;\n}\n\n// Connection type matching backend PlatformProductList\nexport interface ProductsConnection {\n items: PlatformProduct[];\n total: number;\n hasMore: boolean;\n}\n"],"mappings":";AASA,IAAa,IAAgB;CAC3B,QAAQ;CACR,aAAa;CACb,OAAO;CACP,UAAU;CACX"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/product-management/modules/products/types/index.ts"],"sourcesContent":["/**\n * Products Module Types\n * Aligned with backend PlatformProduct schema\n */\n\n// Platform Product Status enum matching backend\nexport type PlatformProductStatus = 'ACTIVE' | 'COMING_SOON' | 'DRAFT' | 'WAITLIST';\n\n// Status enum object for runtime use\nexport const ProductStatus = {\n ACTIVE: 'ACTIVE' as const,\n COMING_SOON: 'COMING_SOON' as const,\n DRAFT: 'DRAFT' as const,\n WAITLIST: 'WAITLIST' as const,\n};\n\n// Platform Product type matching backend schema\nexport interface PlatformProduct {\n id: string;\n name: string;\n slug: string;\n description?: string | null;\n status: PlatformProductStatus;\n logoUrl?: string | null;\n website?: string | null;\n appUrl?: string | null;\n docsUrl?: string | null;\n githubUrl?: string | null;\n statusPageUrl?: string | null;\n contactEmail?: string | null;\n supportEmail?: string | null;\n contactPhone?: string | null;\n contactAddress?: string | null;\n seoTitle?: string | null;\n seoDescription?: string | null;\n seoKeywords?: string | null;\n ogImage?: string | null;\n appStoreUrl?: string | null;\n playStoreUrl?: string | null;\n socialLinks?: Record<string, string> | null;\n resourceLinks?: Record<string, string> | null;\n recaptchaSiteKey?: string | null;\n tenantCount: number;\n activeUsers: number;\n apiCalls: number;\n storageGB: number;\n uptime: number;\n tags: string[];\n metadata?: Record<string, unknown> | null;\n createdAt: string;\n updatedAt: string;\n}\n\n// Alias for convenience\nexport type Product = PlatformProduct;\n\n// Filter types matching backend PlatformProductFilterInput\nexport interface ProductFilterInput {\n status?: PlatformProductStatus;\n search?: string;\n}\n\n// Input types matching backend CreatePlatformProductInput\nexport interface CreateProductInput {\n name: string;\n slug: string;\n description?: string;\n status?: PlatformProductStatus;\n logoUrl?: string;\n website?: string;\n appUrl?: string;\n docsUrl?: string;\n githubUrl?: string;\n statusPageUrl?: string;\n contactEmail?: string;\n supportEmail?: string;\n contactPhone?: string;\n contactAddress?: string;\n seoTitle?: string;\n seoDescription?: string;\n seoKeywords?: string;\n ogImage?: string;\n appStoreUrl?: string;\n playStoreUrl?: string;\n socialLinks?: Record<string, string>;\n resourceLinks?: Record<string, string>;\n tags?: string[];\n recaptchaSiteKey?: string;\n recaptchaSecretKey?: string;\n}\n\n// Update input matching backend UpdatePlatformProductInput\nexport interface UpdateProductInput {\n name?: string;\n description?: string;\n status?: PlatformProductStatus;\n logoUrl?: string;\n website?: string;\n appUrl?: string;\n docsUrl?: string;\n githubUrl?: string;\n statusPageUrl?: string;\n contactEmail?: string;\n supportEmail?: string;\n contactPhone?: string;\n contactAddress?: string;\n seoTitle?: string;\n seoDescription?: string;\n seoKeywords?: string;\n ogImage?: string;\n appStoreUrl?: string;\n playStoreUrl?: string;\n socialLinks?: Record<string, string>;\n resourceLinks?: Record<string, string>;\n tags?: string[];\n recaptchaSiteKey?: string;\n recaptchaSecretKey?: string;\n tenantCount?: number;\n activeUsers?: number;\n apiCalls?: number;\n storageGB?: number;\n uptime?: number;\n}\n\n// Connection type matching backend PlatformProductList\nexport interface ProductsConnection {\n items: PlatformProduct[];\n total: number;\n hasMore: boolean;\n}\n"],"mappings":";AASA,IAAa,IAAgB;CAC3B,QAAQ;CACR,aAAa;CACb,OAAO;CACP,UAAU;CACX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-product",
3
- "version": "2026.521.1",
3
+ "version": "2026.521.2",
4
4
  "description": "Product management microfrontend for Burdenoff products",
5
5
  "type": "module",
6
6
  "files": [