@burdenoff/microfe-product 2026.520.3 → 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.
- package/dist/generated/global-operations.d.ts +7 -0
- package/dist/generated/global-operations.d.ts.map +1 -1
- package/dist/generated/global-operations.js +5 -0
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +3 -0
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +183 -119
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.d.ts.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js +419 -317
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +216 -194
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.d.ts.map +1 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.js +152 -139
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
- package/dist/product-management/modules/products/schemas/index.d.ts +2 -0
- package/dist/product-management/modules/products/schemas/index.d.ts.map +1 -1
- package/dist/product-management/modules/products/schemas/index.js +6 -3
- package/dist/product-management/modules/products/schemas/index.js.map +1 -1
- package/dist/product-management/modules/products/types/index.d.ts +3 -0
- package/dist/product-management/modules/products/types/index.d.ts.map +1 -1
- package/dist/product-management/modules/products/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;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,UAAU,CACV,GAAG,EAAU,GAAG,CAAC;CACpB,aAAa,GACF,CACR,IAAI,KAAK,8CAA8C,CACvD,UAAU,CACV,GAAG,EAAU,GAAG,CAAC;CACpB,SAAS;CACT,aAAa;CACb,cAAc;CACd,aAAa,EAAS,GAAU,EAAE,GAAU,CAAC,CAAC,UAAU,CAAC,GAAG,GAAa,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,CACt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CAC1B,SAAS,EAAkB;CAC3B,WAAW,EAAkB;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;CAC/B,eAAe,EAAkB;CAClC,CAAC,EAGW,IAAsB,EAAS;CAC1C,MAAM,EAAkB,KAAK,UAAU;CACvC,aAAa,EAAkB;CAC/B,QAAQ,EAAkB,OAAO,UAAU;CAC3C,SAAS,EAAkB;CAC3B,SAAS,EAAkB;CAC3B,QAAQ,EAAkB;CAC1B,SAAS,EAAkB;CAC3B,WAAW,EAAkB;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;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,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/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AAE,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,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,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EA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,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,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,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,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 +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"}
|