@famgia/omnify-react-sso 2.2.3 → 2.2.4
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/ant/index.cjs +3235 -0
- package/dist/ant/index.cjs.map +1 -0
- package/dist/ant/index.d.cts +685 -0
- package/dist/ant/index.d.ts +685 -0
- package/dist/ant/index.js +3268 -0
- package/dist/ant/index.js.map +1 -0
- package/dist/core/index.cjs +2432 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +112 -0
- package/dist/core/index.d.ts +112 -0
- package/dist/core/index.js +2360 -0
- package/dist/core/index.js.map +1 -0
- package/dist/{testing → core/testing}/index.cjs +1 -1
- package/dist/core/testing/index.cjs.map +1 -0
- package/dist/{testing → core/testing}/index.d.cts +1 -1
- package/dist/{testing → core/testing}/index.d.ts +1 -1
- package/dist/{testing → core/testing}/index.js +1 -1
- package/dist/core/testing/index.js.map +1 -0
- package/dist/index-CHuDTvHg.d.ts +2250 -0
- package/dist/index-DVssHZFD.d.cts +2250 -0
- package/dist/index.cjs +2464 -784
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1822
- package/dist/index.d.ts +10 -1822
- package/dist/index.js +2528 -771
- package/dist/index.js.map +1 -1
- package/dist/{types-bD5deLxs.d.cts → types-BxClyvTX.d.cts} +2 -3
- package/dist/{types-bD5deLxs.d.ts → types-BxClyvTX.d.ts} +2 -3
- package/dist/userService-DH9-vPSg.d.cts +269 -0
- package/dist/userService-DH9-vPSg.d.ts +269 -0
- package/package.json +27 -48
- package/dist/@omnify-base/package.json +0 -16
- package/dist/@omnify-base/schemas/Branch.ts +0 -131
- package/dist/@omnify-base/schemas/BranchCache.ts +0 -131
- package/dist/@omnify-base/schemas/OrganizationCache.ts +0 -117
- package/dist/@omnify-base/schemas/Permission.ts +0 -114
- package/dist/@omnify-base/schemas/Role.ts +0 -128
- package/dist/@omnify-base/schemas/RolePermission.ts +0 -97
- package/dist/@omnify-base/schemas/Team.ts +0 -110
- package/dist/@omnify-base/schemas/TeamCache.ts +0 -110
- package/dist/@omnify-base/schemas/TeamPermission.ts +0 -109
- package/dist/@omnify-base/schemas/User.ts +0 -135
- package/dist/@omnify-base/schemas/UserCache.ts +0 -142
- package/dist/@omnify-base/schemas/common.ts +0 -47
- package/dist/@omnify-base/schemas/i18n.ts +0 -118
- package/dist/schemas/index.cjs +0 -645
- package/dist/schemas/index.cjs.map +0 -1
- package/dist/schemas/index.d.cts +0 -260
- package/dist/schemas/index.d.ts +0 -260
- package/dist/schemas/index.js +0 -557
- package/dist/schemas/index.js.map +0 -1
- package/dist/testing/index.cjs.map +0 -1
- package/dist/testing/index.js.map +0 -1
- package/scripts/build-schemas.ts +0 -191
- package/scripts/postinstall.cjs +0 -43
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/index.ts","../../node_modules/@omnify-base/schemas/i18n.ts","../../node_modules/@omnify-base/schemas/BranchCache.ts","../../src/schemas/BranchCache.ts","../../node_modules/@omnify-base/schemas/OrganizationCache.ts","../../src/schemas/OrganizationCache.ts","../../node_modules/@omnify-base/schemas/Permission.ts","../../src/schemas/Permission.ts","../../node_modules/@omnify-base/schemas/Role.ts","../../src/schemas/Role.ts","../../node_modules/@omnify-base/schemas/RolePermission.ts","../../src/schemas/RolePermission.ts","../../node_modules/@omnify-base/schemas/TeamCache.ts","../../src/schemas/TeamCache.ts","../../node_modules/@omnify-base/schemas/TeamPermission.ts","../../src/schemas/TeamPermission.ts","../../node_modules/@omnify-base/schemas/UserCache.ts","../../src/schemas/UserCache.ts"],"sourcesContent":["/**\n * ⚠️ DO NOT EDIT THIS FILE! ⚠️\n * このファイルを編集しないでください!\n * KHÔNG ĐƯỢC SỬA FILE NÀY!\n *\n * Auto-generated TypeScript types from Omnify schemas.\n * Any manual changes will be OVERWRITTEN on next generation.\n *\n * To modify: Edit the schema YAML file and run: npx omnify generate\n */\n\n// Common Types\nexport type { LocaleMap, Locale, ValidationRule, DateTimeString, DateString } from '@omnify-base/schemas/common';\n\n// i18n (Internationalization)\nexport {\n defaultLocale,\n fallbackLocale,\n supportedLocales,\n validationMessages,\n getMessage,\n getMessages,\n} from '@omnify-base/schemas/i18n';\n\n// Models (with Zod schemas, i18n, and Create/Update types)\nexport type { BranchCache, BranchCacheCreate, BranchCacheUpdate } from './BranchCache';\nexport {\n branchCacheSchemas,\n branchCacheCreateSchema,\n branchCacheUpdateSchema,\n branchCacheI18n,\n getBranchCacheLabel,\n getBranchCacheFieldLabel,\n getBranchCacheFieldPlaceholder,\n} from './BranchCache';\nexport type { OrganizationCache, OrganizationCacheCreate, OrganizationCacheUpdate } from './OrganizationCache';\nexport {\n organizationCacheSchemas,\n organizationCacheCreateSchema,\n organizationCacheUpdateSchema,\n organizationCacheI18n,\n getOrganizationCacheLabel,\n getOrganizationCacheFieldLabel,\n getOrganizationCacheFieldPlaceholder,\n} from './OrganizationCache';\nexport type { Permission, PermissionCreate, PermissionUpdate } from './Permission';\nexport {\n permissionSchemas,\n permissionCreateSchema,\n permissionUpdateSchema,\n permissionI18n,\n getPermissionLabel,\n getPermissionFieldLabel,\n getPermissionFieldPlaceholder,\n} from './Permission';\nexport type { Role, RoleCreate, RoleUpdate } from './Role';\nexport {\n roleSchemas,\n roleCreateSchema,\n roleUpdateSchema,\n roleI18n,\n getRoleLabel,\n getRoleFieldLabel,\n getRoleFieldPlaceholder,\n} from './Role';\nexport type { RolePermission, RolePermissionCreate, RolePermissionUpdate } from './RolePermission';\nexport {\n rolePermissionSchemas,\n rolePermissionCreateSchema,\n rolePermissionUpdateSchema,\n rolePermissionI18n,\n getRolePermissionLabel,\n getRolePermissionFieldLabel,\n getRolePermissionFieldPlaceholder,\n} from './RolePermission';\nexport type { TeamCache, TeamCacheCreate, TeamCacheUpdate } from './TeamCache';\nexport {\n teamCacheSchemas,\n teamCacheCreateSchema,\n teamCacheUpdateSchema,\n teamCacheI18n,\n getTeamCacheLabel,\n getTeamCacheFieldLabel,\n getTeamCacheFieldPlaceholder,\n} from './TeamCache';\nexport type { TeamPermission, TeamPermissionCreate, TeamPermissionUpdate } from './TeamPermission';\nexport {\n teamPermissionSchemas,\n teamPermissionCreateSchema,\n teamPermissionUpdateSchema,\n teamPermissionI18n,\n getTeamPermissionLabel,\n getTeamPermissionFieldLabel,\n getTeamPermissionFieldPlaceholder,\n} from './TeamPermission';\nexport type { UserCache, UserCacheCreate, UserCacheUpdate } from './UserCache';\nexport {\n userCacheSchemas,\n userCacheCreateSchema,\n userCacheUpdateSchema,\n userCacheI18n,\n getUserCacheLabel,\n getUserCacheFieldLabel,\n getUserCacheFieldPlaceholder,\n} from './UserCache';\n","/**\n * ⚠️ DO NOT EDIT THIS FILE! ⚠️\n * このファイルを編集しないでください!\n * KHÔNG ĐƯỢC SỬA FILE NÀY!\n *\n * Auto-generated TypeScript types from Omnify schemas.\n * Any manual changes will be OVERWRITTEN on next generation.\n *\n * To modify: Edit the schema YAML file and run: npx omnify generate\n */\n\n\nimport type { LocaleMap } from '@omnify-base/schemas/common';\n\n/**\n * Default locale for this project.\n */\nexport const defaultLocale = 'ja' as const;\n\n/**\n * Fallback locale when requested locale is not found.\n */\nexport const fallbackLocale = 'en' as const;\n\n/**\n * Supported locales in this project.\n */\nexport const supportedLocales = [\"ja\",\"en\"] as const;\n\n/**\n * Validation messages for all supported locales.\n * Use getMessage(key, locale, params) to get formatted message.\n */\nexport const validationMessages = {\n \"required\": {\n \"ja\": \"${displayName}は必須です\",\n \"en\": \"${displayName} is required\"\n },\n \"minLength\": {\n \"ja\": \"${displayName}は${min}文字以上で入力してください\",\n \"en\": \"${displayName} must be at least ${min} characters\"\n },\n \"maxLength\": {\n \"ja\": \"${displayName}は${max}文字以内で入力してください\",\n \"en\": \"${displayName} must be at most ${max} characters\"\n },\n \"min\": {\n \"ja\": \"${displayName}は${min}以上で入力してください\",\n \"en\": \"${displayName} must be at least ${min}\"\n },\n \"max\": {\n \"ja\": \"${displayName}は${max}以下で入力してください\",\n \"en\": \"${displayName} must be at most ${max}\"\n },\n \"email\": {\n \"ja\": \"有効なメールアドレスを入力してください\",\n \"en\": \"Please enter a valid email address\"\n },\n \"url\": {\n \"ja\": \"有効なURLを入力してください\",\n \"en\": \"Please enter a valid URL\"\n },\n \"pattern\": {\n \"ja\": \"${displayName}の形式が正しくありません\",\n \"en\": \"${displayName} format is invalid\"\n }\n} as const;\n\n/**\n * Get validation message for a specific key and locale.\n * Supports template placeholders: ${displayName}, ${min}, ${max}, etc.\n *\n * @param key - Message key (e.g., 'required', 'minLength')\n * @param locale - Locale code (e.g., 'ja', 'en')\n * @param params - Template parameters to replace\n * @returns Formatted message string\n *\n * @example\n * getMessage('required', 'ja', { displayName: '氏名' })\n * // => '氏名は必須です'\n */\nexport function getMessage(\n key: string,\n locale: string,\n params: Record<string, string | number> = {}\n): string {\n const messages = validationMessages[key as keyof typeof validationMessages];\n if (!messages) return key;\n\n let message = (messages as LocaleMap)[locale]\n ?? (messages as LocaleMap)[fallbackLocale]\n ?? (messages as LocaleMap)[defaultLocale]\n ?? key;\n\n // Replace template placeholders\n for (const [param, value] of Object.entries(params)) {\n message = message.replace(new RegExp(`\\\\$\\{${param}\\}`, 'g'), String(value));\n }\n\n return message;\n}\n\n/**\n * Get all validation messages for a specific locale.\n *\n * @param locale - Locale code\n * @returns Object with all messages for the locale\n */\nexport function getMessages(locale: string): Record<string, string> {\n const result: Record<string, string> = {};\n for (const [key, messages] of Object.entries(validationMessages)) {\n result[key] = (messages as LocaleMap)[locale]\n ?? (messages as LocaleMap)[fallbackLocale]\n ?? (messages as LocaleMap)[defaultLocale]\n ?? key;\n }\n return result;\n}\n","/**\n * ⚠️ DO NOT EDIT THIS FILE! ⚠️\n * このファイルを編集しないでください!\n * KHÔNG ĐƯỢC SỬA FILE NÀY!\n *\n * Auto-generated TypeScript types from Omnify schemas.\n * Any manual changes will be OVERWRITTEN on next generation.\n *\n * To modify: Edit the schema YAML file and run: npx omnify generate\n */\n\nimport { z } from 'zod';\nimport type { DateTimeString } from './common';\n\n/**\n * 支店キャッシュ\n */\nexport interface BranchCache {\n /** Primary key */\n id: string;\n /** Console Branch ID */\n console_branch_id: unknown;\n /** Console Organization ID */\n console_org_id: unknown;\n /** 支店コード */\n code: string;\n /** 支店名 */\n name: string;\n /** 本社 */\n is_headquarters: boolean;\n /** 有効 */\n is_active: boolean;\n /** Creation timestamp */\n created_at?: DateTimeString;\n /** Last update timestamp */\n updated_at?: DateTimeString;\n /** Soft delete timestamp */\n deleted_at?: DateTimeString;\n}\n\n// ============================================================================\n// I18n (Internationalization)\n// ============================================================================\n\n/**\n * Unified i18n object for BranchCache\n * Contains model label and all field labels/placeholders\n */\nexport const branchCacheI18n = {\n /** Model display name */\n label: {\"ja\":\"支店キャッシュ\",\"en\":\"Branch Cache\"},\n /** Field labels and placeholders */\n fields: {\n console_branch_id: {\n label: {\"ja\":\"Console Branch ID\",\"en\":\"Console Branch ID\"},\n },\n console_org_id: {\n label: {\"ja\":\"Console Organization ID\",\"en\":\"Console Organization ID\"},\n },\n code: {\n label: {\"ja\":\"支店コード\",\"en\":\"Branch Code\"},\n },\n name: {\n label: {\"ja\":\"支店名\",\"en\":\"Branch Name\"},\n },\n is_headquarters: {\n label: {\"ja\":\"本社\",\"en\":\"Is Headquarters\"},\n },\n is_active: {\n label: {\"ja\":\"有効\",\"en\":\"Active\"},\n },\n },\n} as const;\n\n// ============================================================================\n// Zod Schemas\n// ============================================================================\n\n/** Field schemas for BranchCache */\nexport const baseBranchCacheSchemas = {\n console_branch_id: z.string(),\n console_org_id: z.string(),\n code: z.string().min(1).max(20),\n name: z.string().min(1).max(100),\n is_headquarters: z.boolean(),\n is_active: z.boolean(),\n} as const;\n\n/** Create schema for BranchCache (POST requests) */\nexport const baseBranchCacheCreateSchema = z.object({\n console_branch_id: baseBranchCacheSchemas.console_branch_id,\n console_org_id: baseBranchCacheSchemas.console_org_id,\n code: baseBranchCacheSchemas.code,\n name: baseBranchCacheSchemas.name,\n is_headquarters: baseBranchCacheSchemas.is_headquarters,\n is_active: baseBranchCacheSchemas.is_active,\n});\n\n/** Update schema for BranchCache (PUT/PATCH requests) */\nexport const baseBranchCacheUpdateSchema = baseBranchCacheCreateSchema.partial();\n\n// ============================================================================\n// Inferred Types\n// ============================================================================\n\nexport type BaseBranchCacheCreate = z.infer<typeof baseBranchCacheCreateSchema>;\nexport type BaseBranchCacheUpdate = z.infer<typeof baseBranchCacheUpdateSchema>;\n\n// ============================================================================\n// I18n Helper Functions\n// ============================================================================\n\n/** Get model label for a specific locale */\nexport function getBranchCacheLabel(locale: string): string {\n return branchCacheI18n.label[locale as keyof typeof branchCacheI18n.label] ?? branchCacheI18n.label['en'] ?? 'BranchCache';\n}\n\n/** Get field label for a specific locale */\nexport function getBranchCacheFieldLabel(field: string, locale: string): string {\n const fieldI18n = branchCacheI18n.fields[field as keyof typeof branchCacheI18n.fields];\n if (!fieldI18n) return field;\n return fieldI18n.label[locale as keyof typeof fieldI18n.label] ?? fieldI18n.label['en'] ?? field;\n}\n\n/** Get field placeholder for a specific locale */\nexport function getBranchCacheFieldPlaceholder(field: string, locale: string): string {\n const fieldI18n = branchCacheI18n.fields[field as keyof typeof branchCacheI18n.fields];\n if (!fieldI18n || !('placeholder' in fieldI18n)) return '';\n const placeholder = fieldI18n.placeholder as Record<string, string>;\n return placeholder[locale] ?? placeholder['en'] ?? '';\n}\n","/**\n * BranchCache Model\n *\n * This file extends the auto-generated base interface.\n * You can add custom methods, computed properties, or override types/schemas here.\n * This file will NOT be overwritten by the generator.\n */\n\nimport { z } from 'zod';\nimport type { BranchCache as BranchCacheBase } from '@omnify-base/schemas/BranchCache';\nimport {\n baseBranchCacheSchemas,\n baseBranchCacheCreateSchema,\n baseBranchCacheUpdateSchema,\n branchCacheI18n,\n getBranchCacheLabel,\n getBranchCacheFieldLabel,\n getBranchCacheFieldPlaceholder,\n} from '@omnify-base/schemas/BranchCache';\n\n// ============================================================================\n// Types (extend or re-export)\n// ============================================================================\n\nexport interface BranchCache extends BranchCacheBase {\n // Add custom properties here\n}\n\n// ============================================================================\n// Schemas (extend or re-export)\n// ============================================================================\n\nexport const branchCacheSchemas = { ...baseBranchCacheSchemas };\nexport const branchCacheCreateSchema = baseBranchCacheCreateSchema;\nexport const branchCacheUpdateSchema = baseBranchCacheUpdateSchema;\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport type BranchCacheCreate = z.infer<typeof branchCacheCreateSchema>;\nexport type BranchCacheUpdate = z.infer<typeof branchCacheUpdateSchema>;\n\n// Re-export i18n and helpers\nexport {\n branchCacheI18n,\n getBranchCacheLabel,\n getBranchCacheFieldLabel,\n getBranchCacheFieldPlaceholder,\n};\n\n// Re-export base type for internal use\nexport type { BranchCacheBase };\n","/**\n * ⚠️ DO NOT EDIT THIS FILE! ⚠️\n * このファイルを編集しないでください!\n * KHÔNG ĐƯỢC SỬA FILE NÀY!\n *\n * Auto-generated TypeScript types from Omnify schemas.\n * Any manual changes will be OVERWRITTEN on next generation.\n *\n * To modify: Edit the schema YAML file and run: npx omnify generate\n */\n\nimport { z } from 'zod';\nimport type { DateTimeString } from './common';\n\n/**\n * 組織キャッシュ\n */\nexport interface OrganizationCache {\n /** Primary key */\n id: string;\n /** Console Organization ID */\n console_org_id: unknown;\n /** 組織名 */\n name: string;\n /** 組織コード */\n code: string;\n /** 有効 */\n is_active: boolean;\n /** Creation timestamp */\n created_at?: DateTimeString;\n /** Last update timestamp */\n updated_at?: DateTimeString;\n /** Soft delete timestamp */\n deleted_at?: DateTimeString;\n}\n\n// ============================================================================\n// I18n (Internationalization)\n// ============================================================================\n\n/**\n * Unified i18n object for OrganizationCache\n * Contains model label and all field labels/placeholders\n */\nexport const organizationCacheI18n = {\n /** Model display name */\n label: {\"ja\":\"組織キャッシュ\",\"en\":\"Organization Cache\"},\n /** Field labels and placeholders */\n fields: {\n console_org_id: {\n label: {\"ja\":\"Console Organization ID\",\"en\":\"Console Organization ID\"},\n },\n name: {\n label: {\"ja\":\"組織名\",\"en\":\"Organization Name\"},\n },\n code: {\n label: {\"ja\":\"組織コード\",\"en\":\"Organization Code\"},\n },\n is_active: {\n label: {\"ja\":\"有効\",\"en\":\"Active\"},\n },\n },\n} as const;\n\n// ============================================================================\n// Zod Schemas\n// ============================================================================\n\n/** Field schemas for OrganizationCache */\nexport const baseOrganizationCacheSchemas = {\n console_org_id: z.string(),\n name: z.string().min(1).max(100),\n code: z.string().min(1).max(20),\n is_active: z.boolean(),\n} as const;\n\n/** Create schema for OrganizationCache (POST requests) */\nexport const baseOrganizationCacheCreateSchema = z.object({\n console_org_id: baseOrganizationCacheSchemas.console_org_id,\n name: baseOrganizationCacheSchemas.name,\n code: baseOrganizationCacheSchemas.code,\n is_active: baseOrganizationCacheSchemas.is_active,\n});\n\n/** Update schema for OrganizationCache (PUT/PATCH requests) */\nexport const baseOrganizationCacheUpdateSchema = baseOrganizationCacheCreateSchema.partial();\n\n// ============================================================================\n// Inferred Types\n// ============================================================================\n\nexport type BaseOrganizationCacheCreate = z.infer<typeof baseOrganizationCacheCreateSchema>;\nexport type BaseOrganizationCacheUpdate = z.infer<typeof baseOrganizationCacheUpdateSchema>;\n\n// ============================================================================\n// I18n Helper Functions\n// ============================================================================\n\n/** Get model label for a specific locale */\nexport function getOrganizationCacheLabel(locale: string): string {\n return organizationCacheI18n.label[locale as keyof typeof organizationCacheI18n.label] ?? organizationCacheI18n.label['en'] ?? 'OrganizationCache';\n}\n\n/** Get field label for a specific locale */\nexport function getOrganizationCacheFieldLabel(field: string, locale: string): string {\n const fieldI18n = organizationCacheI18n.fields[field as keyof typeof organizationCacheI18n.fields];\n if (!fieldI18n) return field;\n return fieldI18n.label[locale as keyof typeof fieldI18n.label] ?? fieldI18n.label['en'] ?? field;\n}\n\n/** Get field placeholder for a specific locale */\nexport function getOrganizationCacheFieldPlaceholder(field: string, locale: string): string {\n const fieldI18n = organizationCacheI18n.fields[field as keyof typeof organizationCacheI18n.fields];\n if (!fieldI18n || !('placeholder' in fieldI18n)) return '';\n const placeholder = fieldI18n.placeholder as Record<string, string>;\n return placeholder[locale] ?? placeholder['en'] ?? '';\n}\n","/**\n * OrganizationCache Model\n *\n * This file extends the auto-generated base interface.\n * You can add custom methods, computed properties, or override types/schemas here.\n * This file will NOT be overwritten by the generator.\n */\n\nimport { z } from 'zod';\nimport type { OrganizationCache as OrganizationCacheBase } from '@omnify-base/schemas/OrganizationCache';\nimport {\n baseOrganizationCacheSchemas,\n baseOrganizationCacheCreateSchema,\n baseOrganizationCacheUpdateSchema,\n organizationCacheI18n,\n getOrganizationCacheLabel,\n getOrganizationCacheFieldLabel,\n getOrganizationCacheFieldPlaceholder,\n} from '@omnify-base/schemas/OrganizationCache';\n\n// ============================================================================\n// Types (extend or re-export)\n// ============================================================================\n\nexport interface OrganizationCache extends OrganizationCacheBase {\n // Add custom properties here\n}\n\n// ============================================================================\n// Schemas (extend or re-export)\n// ============================================================================\n\nexport const organizationCacheSchemas = { ...baseOrganizationCacheSchemas };\nexport const organizationCacheCreateSchema = baseOrganizationCacheCreateSchema;\nexport const organizationCacheUpdateSchema = baseOrganizationCacheUpdateSchema;\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport type OrganizationCacheCreate = z.infer<typeof organizationCacheCreateSchema>;\nexport type OrganizationCacheUpdate = z.infer<typeof organizationCacheUpdateSchema>;\n\n// Re-export i18n and helpers\nexport {\n organizationCacheI18n,\n getOrganizationCacheLabel,\n getOrganizationCacheFieldLabel,\n getOrganizationCacheFieldPlaceholder,\n};\n\n// Re-export base type for internal use\nexport type { OrganizationCacheBase };\n","/**\n * ⚠️ DO NOT EDIT THIS FILE! ⚠️\n * このファイルを編集しないでください!\n * KHÔNG ĐƯỢC SỬA FILE NÀY!\n *\n * Auto-generated TypeScript types from Omnify schemas.\n * Any manual changes will be OVERWRITTEN on next generation.\n *\n * To modify: Edit the schema YAML file and run: npx omnify generate\n */\n\nimport { z } from 'zod';\nimport type { DateTimeString } from './common';\nimport type { Role } from './Role';\n\n/**\n * 権限\n */\nexport interface Permission {\n /** Primary key */\n id: string;\n /** 権限名 */\n name: string;\n /** スラッグ */\n slug: string;\n /** グループ */\n group?: string;\n /** ロール */\n roles: Role[];\n /** Creation timestamp */\n created_at?: DateTimeString;\n /** Last update timestamp */\n updated_at?: DateTimeString;\n}\n\n// ============================================================================\n// I18n (Internationalization)\n// ============================================================================\n\n/**\n * Unified i18n object for Permission\n * Contains model label and all field labels/placeholders\n */\nexport const permissionI18n = {\n /** Model display name */\n label: {\"ja\":\"権限\",\"en\":\"Permission\"},\n /** Field labels and placeholders */\n fields: {\n name: {\n label: {\"ja\":\"権限名\",\"en\":\"Permission Name\"},\n },\n slug: {\n label: {\"ja\":\"スラッグ\",\"en\":\"Slug\"},\n },\n group: {\n label: {\"ja\":\"グループ\",\"en\":\"Group\"},\n },\n roles: {\n label: {\"ja\":\"ロール\",\"en\":\"Roles\"},\n },\n },\n} as const;\n\n// ============================================================================\n// Zod Schemas\n// ============================================================================\n\n/** Field schemas for Permission */\nexport const basePermissionSchemas = {\n name: z.string().min(1).max(100),\n slug: z.string().min(1).max(100),\n group: z.string().max(50).optional().nullable(),\n} as const;\n\n/** Create schema for Permission (POST requests) */\nexport const basePermissionCreateSchema = z.object({\n name: basePermissionSchemas.name,\n slug: basePermissionSchemas.slug,\n group: basePermissionSchemas.group,\n});\n\n/** Update schema for Permission (PUT/PATCH requests) */\nexport const basePermissionUpdateSchema = basePermissionCreateSchema.partial();\n\n// ============================================================================\n// Inferred Types\n// ============================================================================\n\nexport type BasePermissionCreate = z.infer<typeof basePermissionCreateSchema>;\nexport type BasePermissionUpdate = z.infer<typeof basePermissionUpdateSchema>;\n\n// ============================================================================\n// I18n Helper Functions\n// ============================================================================\n\n/** Get model label for a specific locale */\nexport function getPermissionLabel(locale: string): string {\n return permissionI18n.label[locale as keyof typeof permissionI18n.label] ?? permissionI18n.label['en'] ?? 'Permission';\n}\n\n/** Get field label for a specific locale */\nexport function getPermissionFieldLabel(field: string, locale: string): string {\n const fieldI18n = permissionI18n.fields[field as keyof typeof permissionI18n.fields];\n if (!fieldI18n) return field;\n return fieldI18n.label[locale as keyof typeof fieldI18n.label] ?? fieldI18n.label['en'] ?? field;\n}\n\n/** Get field placeholder for a specific locale */\nexport function getPermissionFieldPlaceholder(field: string, locale: string): string {\n const fieldI18n = permissionI18n.fields[field as keyof typeof permissionI18n.fields];\n if (!fieldI18n || !('placeholder' in fieldI18n)) return '';\n const placeholder = fieldI18n.placeholder as Record<string, string>;\n return placeholder[locale] ?? placeholder['en'] ?? '';\n}\n","/**\n * Permission Model\n *\n * This file extends the auto-generated base interface.\n * You can add custom methods, computed properties, or override types/schemas here.\n * This file will NOT be overwritten by the generator.\n */\n\nimport { z } from 'zod';\nimport type { Permission as PermissionBase } from '@omnify-base/schemas/Permission';\nimport {\n basePermissionSchemas,\n basePermissionCreateSchema,\n basePermissionUpdateSchema,\n permissionI18n,\n getPermissionLabel,\n getPermissionFieldLabel,\n getPermissionFieldPlaceholder,\n} from '@omnify-base/schemas/Permission';\n\n// ============================================================================\n// Types (extend or re-export)\n// ============================================================================\n\nexport interface Permission extends PermissionBase {\n // Add custom properties here\n}\n\n// ============================================================================\n// Schemas (extend or re-export)\n// ============================================================================\n\nexport const permissionSchemas = { ...basePermissionSchemas };\nexport const permissionCreateSchema = basePermissionCreateSchema;\nexport const permissionUpdateSchema = basePermissionUpdateSchema;\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport type PermissionCreate = z.infer<typeof permissionCreateSchema>;\nexport type PermissionUpdate = z.infer<typeof permissionUpdateSchema>;\n\n// Re-export i18n and helpers\nexport {\n permissionI18n,\n getPermissionLabel,\n getPermissionFieldLabel,\n getPermissionFieldPlaceholder,\n};\n\n// Re-export base type for internal use\nexport type { PermissionBase };\n","/**\n * ⚠️ DO NOT EDIT THIS FILE! ⚠️\n * このファイルを編集しないでください!\n * KHÔNG ĐƯỢC SỬA FILE NÀY!\n *\n * Auto-generated TypeScript types from Omnify schemas.\n * Any manual changes will be OVERWRITTEN on next generation.\n *\n * To modify: Edit the schema YAML file and run: npx omnify generate\n */\n\nimport { z } from 'zod';\nimport type { DateTimeString } from './common';\nimport type { Permission } from './Permission';\n\n/**\n * ロール\n */\nexport interface Role {\n /** Primary key */\n id: string;\n /** 組織ID */\n console_org_id?: string;\n /** ロール名 */\n name: string;\n /** スラッグ */\n slug: string;\n /** 説明 */\n description?: string;\n /** レベル */\n level: number;\n /** 権限 */\n permissions: Permission[];\n /** Creation timestamp */\n created_at?: DateTimeString;\n /** Last update timestamp */\n updated_at?: DateTimeString;\n}\n\n// ============================================================================\n// I18n (Internationalization)\n// ============================================================================\n\n/**\n * Unified i18n object for Role\n * Contains model label and all field labels/placeholders\n */\nexport const roleI18n = {\n /** Model display name */\n label: {\"ja\":\"ロール\",\"en\":\"Role\"},\n /** Field labels and placeholders */\n fields: {\n console_org_id: {\n label: {\"ja\":\"組織ID\",\"en\":\"Organization ID\"},\n },\n name: {\n label: {\"ja\":\"ロール名\",\"en\":\"Role Name\"},\n },\n slug: {\n label: {\"ja\":\"スラッグ\",\"en\":\"Slug\"},\n },\n description: {\n label: {\"ja\":\"説明\",\"en\":\"Description\"},\n },\n level: {\n label: {\"ja\":\"レベル\",\"en\":\"Level\"},\n },\n permissions: {\n label: {\"ja\":\"権限\",\"en\":\"Permissions\"},\n },\n },\n} as const;\n\n// ============================================================================\n// Zod Schemas\n// ============================================================================\n\n/** Field schemas for Role */\nexport const baseRoleSchemas = {\n console_org_id: z.string().max(36).optional().nullable(),\n name: z.string().min(1).max(100),\n slug: z.string().min(1).max(100),\n description: z.string().optional().nullable(),\n level: z.number().int(),\n} as const;\n\n/** Create schema for Role (POST requests) */\nexport const baseRoleCreateSchema = z.object({\n console_org_id: baseRoleSchemas.console_org_id,\n name: baseRoleSchemas.name,\n slug: baseRoleSchemas.slug,\n description: baseRoleSchemas.description,\n level: baseRoleSchemas.level,\n});\n\n/** Update schema for Role (PUT/PATCH requests) */\nexport const baseRoleUpdateSchema = baseRoleCreateSchema.partial();\n\n// ============================================================================\n// Inferred Types\n// ============================================================================\n\nexport type BaseRoleCreate = z.infer<typeof baseRoleCreateSchema>;\nexport type BaseRoleUpdate = z.infer<typeof baseRoleUpdateSchema>;\n\n// ============================================================================\n// I18n Helper Functions\n// ============================================================================\n\n/** Get model label for a specific locale */\nexport function getRoleLabel(locale: string): string {\n return roleI18n.label[locale as keyof typeof roleI18n.label] ?? roleI18n.label['en'] ?? 'Role';\n}\n\n/** Get field label for a specific locale */\nexport function getRoleFieldLabel(field: string, locale: string): string {\n const fieldI18n = roleI18n.fields[field as keyof typeof roleI18n.fields];\n if (!fieldI18n) return field;\n return fieldI18n.label[locale as keyof typeof fieldI18n.label] ?? fieldI18n.label['en'] ?? field;\n}\n\n/** Get field placeholder for a specific locale */\nexport function getRoleFieldPlaceholder(field: string, locale: string): string {\n const fieldI18n = roleI18n.fields[field as keyof typeof roleI18n.fields];\n if (!fieldI18n || !('placeholder' in fieldI18n)) return '';\n const placeholder = fieldI18n.placeholder as Record<string, string>;\n return placeholder[locale] ?? placeholder['en'] ?? '';\n}\n","/**\n * Role Model\n *\n * This file extends the auto-generated base interface.\n * You can add custom methods, computed properties, or override types/schemas here.\n * This file will NOT be overwritten by the generator.\n */\n\nimport { z } from 'zod';\nimport type { Role as RoleBase } from '@omnify-base/schemas/Role';\nimport {\n baseRoleSchemas,\n baseRoleCreateSchema,\n baseRoleUpdateSchema,\n roleI18n,\n getRoleLabel,\n getRoleFieldLabel,\n getRoleFieldPlaceholder,\n} from '@omnify-base/schemas/Role';\n\n// ============================================================================\n// Types (extend or re-export)\n// ============================================================================\n\nexport interface Role extends RoleBase {\n // Add custom properties here\n}\n\n// ============================================================================\n// Schemas (extend or re-export)\n// ============================================================================\n\nexport const roleSchemas = { ...baseRoleSchemas };\nexport const roleCreateSchema = baseRoleCreateSchema;\nexport const roleUpdateSchema = baseRoleUpdateSchema;\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport type RoleCreate = z.infer<typeof roleCreateSchema>;\nexport type RoleUpdate = z.infer<typeof roleUpdateSchema>;\n\n// Re-export i18n and helpers\nexport {\n roleI18n,\n getRoleLabel,\n getRoleFieldLabel,\n getRoleFieldPlaceholder,\n};\n\n// Re-export base type for internal use\nexport type { RoleBase };\n","/**\n * ⚠️ DO NOT EDIT THIS FILE! ⚠️\n * このファイルを編集しないでください!\n * KHÔNG ĐƯỢC SỬA FILE NÀY!\n *\n * Auto-generated TypeScript types from Omnify schemas.\n * Any manual changes will be OVERWRITTEN on next generation.\n *\n * To modify: Edit the schema YAML file and run: npx omnify generate\n */\n\nimport { z } from 'zod';\nimport type { DateTimeString } from './common';\nimport type { Permission } from './Permission';\nimport type { Role } from './Role';\n\n/**\n * ロール権限\n */\nexport interface RolePermission {\n /** ロール */\n role: Role;\n /** 権限 */\n permission: Permission;\n /** Creation timestamp */\n created_at?: DateTimeString;\n /** Last update timestamp */\n updated_at?: DateTimeString;\n}\n\n// ============================================================================\n// I18n (Internationalization)\n// ============================================================================\n\n/**\n * Unified i18n object for RolePermission\n * Contains model label and all field labels/placeholders\n */\nexport const rolePermissionI18n = {\n /** Model display name */\n label: {\"ja\":\"ロール権限\",\"en\":\"Role Permission\"},\n /** Field labels and placeholders */\n fields: {\n role: {\n label: {\"ja\":\"ロール\",\"en\":\"Role\"},\n },\n permission: {\n label: {\"ja\":\"権限\",\"en\":\"Permission\"},\n },\n },\n} as const;\n\n// ============================================================================\n// Zod Schemas\n// ============================================================================\n\n/** Field schemas for RolePermission */\nexport const baseRolePermissionSchemas = {\n} as const;\n\n/** Create schema for RolePermission (POST requests) */\nexport const baseRolePermissionCreateSchema = z.object({\n});\n\n/** Update schema for RolePermission (PUT/PATCH requests) */\nexport const baseRolePermissionUpdateSchema = baseRolePermissionCreateSchema.partial();\n\n// ============================================================================\n// Inferred Types\n// ============================================================================\n\nexport type BaseRolePermissionCreate = z.infer<typeof baseRolePermissionCreateSchema>;\nexport type BaseRolePermissionUpdate = z.infer<typeof baseRolePermissionUpdateSchema>;\n\n// ============================================================================\n// I18n Helper Functions\n// ============================================================================\n\n/** Get model label for a specific locale */\nexport function getRolePermissionLabel(locale: string): string {\n return rolePermissionI18n.label[locale as keyof typeof rolePermissionI18n.label] ?? rolePermissionI18n.label['en'] ?? 'RolePermission';\n}\n\n/** Get field label for a specific locale */\nexport function getRolePermissionFieldLabel(field: string, locale: string): string {\n const fieldI18n = rolePermissionI18n.fields[field as keyof typeof rolePermissionI18n.fields];\n if (!fieldI18n) return field;\n return fieldI18n.label[locale as keyof typeof fieldI18n.label] ?? fieldI18n.label['en'] ?? field;\n}\n\n/** Get field placeholder for a specific locale */\nexport function getRolePermissionFieldPlaceholder(field: string, locale: string): string {\n const fieldI18n = rolePermissionI18n.fields[field as keyof typeof rolePermissionI18n.fields];\n if (!fieldI18n || !('placeholder' in fieldI18n)) return '';\n const placeholder = fieldI18n.placeholder as Record<string, string>;\n return placeholder[locale] ?? placeholder['en'] ?? '';\n}\n","/**\n * RolePermission Model\n *\n * This file extends the auto-generated base interface.\n * You can add custom methods, computed properties, or override types/schemas here.\n * This file will NOT be overwritten by the generator.\n */\n\nimport { z } from 'zod';\nimport type { RolePermission as RolePermissionBase } from '@omnify-base/schemas/RolePermission';\nimport {\n baseRolePermissionSchemas,\n baseRolePermissionCreateSchema,\n baseRolePermissionUpdateSchema,\n rolePermissionI18n,\n getRolePermissionLabel,\n getRolePermissionFieldLabel,\n getRolePermissionFieldPlaceholder,\n} from '@omnify-base/schemas/RolePermission';\n\n// ============================================================================\n// Types (extend or re-export)\n// ============================================================================\n\nexport interface RolePermission extends RolePermissionBase {\n // Add custom properties here\n}\n\n// ============================================================================\n// Schemas (extend or re-export)\n// ============================================================================\n\nexport const rolePermissionSchemas = { ...baseRolePermissionSchemas };\nexport const rolePermissionCreateSchema = baseRolePermissionCreateSchema;\nexport const rolePermissionUpdateSchema = baseRolePermissionUpdateSchema;\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport type RolePermissionCreate = z.infer<typeof rolePermissionCreateSchema>;\nexport type RolePermissionUpdate = z.infer<typeof rolePermissionUpdateSchema>;\n\n// Re-export i18n and helpers\nexport {\n rolePermissionI18n,\n getRolePermissionLabel,\n getRolePermissionFieldLabel,\n getRolePermissionFieldPlaceholder,\n};\n\n// Re-export base type for internal use\nexport type { RolePermissionBase };\n","/**\n * ⚠️ DO NOT EDIT THIS FILE! ⚠️\n * このファイルを編集しないでください!\n * KHÔNG ĐƯỢC SỬA FILE NÀY!\n *\n * Auto-generated TypeScript types from Omnify schemas.\n * Any manual changes will be OVERWRITTEN on next generation.\n *\n * To modify: Edit the schema YAML file and run: npx omnify generate\n */\n\nimport { z } from 'zod';\nimport type { DateTimeString } from './common';\n\n/**\n * チームキャッシュ\n */\nexport interface TeamCache {\n /** Primary key */\n id: string;\n /** Console Team ID */\n console_team_id: unknown;\n /** Console Organization ID */\n console_org_id: unknown;\n /** チーム名 */\n name: string;\n /** Creation timestamp */\n created_at?: DateTimeString;\n /** Last update timestamp */\n updated_at?: DateTimeString;\n /** Soft delete timestamp */\n deleted_at?: DateTimeString;\n}\n\n// ============================================================================\n// I18n (Internationalization)\n// ============================================================================\n\n/**\n * Unified i18n object for TeamCache\n * Contains model label and all field labels/placeholders\n */\nexport const teamCacheI18n = {\n /** Model display name */\n label: {\"ja\":\"チームキャッシュ\",\"en\":\"Team Cache\"},\n /** Field labels and placeholders */\n fields: {\n console_team_id: {\n label: {\"ja\":\"Console Team ID\",\"en\":\"Console Team ID\"},\n },\n console_org_id: {\n label: {\"ja\":\"Console Organization ID\",\"en\":\"Console Organization ID\"},\n },\n name: {\n label: {\"ja\":\"チーム名\",\"en\":\"Team Name\"},\n },\n },\n} as const;\n\n// ============================================================================\n// Zod Schemas\n// ============================================================================\n\n/** Field schemas for TeamCache */\nexport const baseTeamCacheSchemas = {\n console_team_id: z.string(),\n console_org_id: z.string(),\n name: z.string().min(1).max(100),\n} as const;\n\n/** Create schema for TeamCache (POST requests) */\nexport const baseTeamCacheCreateSchema = z.object({\n console_team_id: baseTeamCacheSchemas.console_team_id,\n console_org_id: baseTeamCacheSchemas.console_org_id,\n name: baseTeamCacheSchemas.name,\n});\n\n/** Update schema for TeamCache (PUT/PATCH requests) */\nexport const baseTeamCacheUpdateSchema = baseTeamCacheCreateSchema.partial();\n\n// ============================================================================\n// Inferred Types\n// ============================================================================\n\nexport type BaseTeamCacheCreate = z.infer<typeof baseTeamCacheCreateSchema>;\nexport type BaseTeamCacheUpdate = z.infer<typeof baseTeamCacheUpdateSchema>;\n\n// ============================================================================\n// I18n Helper Functions\n// ============================================================================\n\n/** Get model label for a specific locale */\nexport function getTeamCacheLabel(locale: string): string {\n return teamCacheI18n.label[locale as keyof typeof teamCacheI18n.label] ?? teamCacheI18n.label['en'] ?? 'TeamCache';\n}\n\n/** Get field label for a specific locale */\nexport function getTeamCacheFieldLabel(field: string, locale: string): string {\n const fieldI18n = teamCacheI18n.fields[field as keyof typeof teamCacheI18n.fields];\n if (!fieldI18n) return field;\n return fieldI18n.label[locale as keyof typeof fieldI18n.label] ?? fieldI18n.label['en'] ?? field;\n}\n\n/** Get field placeholder for a specific locale */\nexport function getTeamCacheFieldPlaceholder(field: string, locale: string): string {\n const fieldI18n = teamCacheI18n.fields[field as keyof typeof teamCacheI18n.fields];\n if (!fieldI18n || !('placeholder' in fieldI18n)) return '';\n const placeholder = fieldI18n.placeholder as Record<string, string>;\n return placeholder[locale] ?? placeholder['en'] ?? '';\n}\n","/**\n * TeamCache Model\n *\n * This file extends the auto-generated base interface.\n * You can add custom methods, computed properties, or override types/schemas here.\n * This file will NOT be overwritten by the generator.\n */\n\nimport { z } from 'zod';\nimport type { TeamCache as TeamCacheBase } from '@omnify-base/schemas/TeamCache';\nimport {\n baseTeamCacheSchemas,\n baseTeamCacheCreateSchema,\n baseTeamCacheUpdateSchema,\n teamCacheI18n,\n getTeamCacheLabel,\n getTeamCacheFieldLabel,\n getTeamCacheFieldPlaceholder,\n} from '@omnify-base/schemas/TeamCache';\n\n// ============================================================================\n// Types (extend or re-export)\n// ============================================================================\n\nexport interface TeamCache extends TeamCacheBase {\n // Add custom properties here\n}\n\n// ============================================================================\n// Schemas (extend or re-export)\n// ============================================================================\n\nexport const teamCacheSchemas = { ...baseTeamCacheSchemas };\nexport const teamCacheCreateSchema = baseTeamCacheCreateSchema;\nexport const teamCacheUpdateSchema = baseTeamCacheUpdateSchema;\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport type TeamCacheCreate = z.infer<typeof teamCacheCreateSchema>;\nexport type TeamCacheUpdate = z.infer<typeof teamCacheUpdateSchema>;\n\n// Re-export i18n and helpers\nexport {\n teamCacheI18n,\n getTeamCacheLabel,\n getTeamCacheFieldLabel,\n getTeamCacheFieldPlaceholder,\n};\n\n// Re-export base type for internal use\nexport type { TeamCacheBase };\n","/**\n * ⚠️ DO NOT EDIT THIS FILE! ⚠️\n * このファイルを編集しないでください!\n * KHÔNG ĐƯỢC SỬA FILE NÀY!\n *\n * Auto-generated TypeScript types from Omnify schemas.\n * Any manual changes will be OVERWRITTEN on next generation.\n *\n * To modify: Edit the schema YAML file and run: npx omnify generate\n */\n\nimport { z } from 'zod';\nimport type { DateTimeString } from './common';\nimport type { Permission } from './Permission';\n\n/**\n * チーム権限\n */\nexport interface TeamPermission {\n /** Primary key */\n id: string;\n /** Console Organization ID */\n console_org_id: unknown;\n /** Console Team ID */\n console_team_id: unknown;\n /** 権限 */\n permission: Permission;\n /** Creation timestamp */\n created_at?: DateTimeString;\n /** Last update timestamp */\n updated_at?: DateTimeString;\n /** Soft delete timestamp */\n deleted_at?: DateTimeString;\n}\n\n// ============================================================================\n// I18n (Internationalization)\n// ============================================================================\n\n/**\n * Unified i18n object for TeamPermission\n * Contains model label and all field labels/placeholders\n */\nexport const teamPermissionI18n = {\n /** Model display name */\n label: {\"ja\":\"チーム権限\",\"en\":\"Team Permission\"},\n /** Field labels and placeholders */\n fields: {\n console_org_id: {\n label: {\"ja\":\"Console Organization ID\",\"en\":\"Console Organization ID\"},\n },\n console_team_id: {\n label: {\"ja\":\"Console Team ID\",\"en\":\"Console Team ID\"},\n },\n permission: {\n label: {\"ja\":\"権限\",\"en\":\"Permission\"},\n },\n },\n} as const;\n\n// ============================================================================\n// Zod Schemas\n// ============================================================================\n\n/** Field schemas for TeamPermission */\nexport const baseTeamPermissionSchemas = {\n console_org_id: z.string(),\n console_team_id: z.string(),\n} as const;\n\n/** Create schema for TeamPermission (POST requests) */\nexport const baseTeamPermissionCreateSchema = z.object({\n console_org_id: baseTeamPermissionSchemas.console_org_id,\n console_team_id: baseTeamPermissionSchemas.console_team_id,\n});\n\n/** Update schema for TeamPermission (PUT/PATCH requests) */\nexport const baseTeamPermissionUpdateSchema = baseTeamPermissionCreateSchema.partial();\n\n// ============================================================================\n// Inferred Types\n// ============================================================================\n\nexport type BaseTeamPermissionCreate = z.infer<typeof baseTeamPermissionCreateSchema>;\nexport type BaseTeamPermissionUpdate = z.infer<typeof baseTeamPermissionUpdateSchema>;\n\n// ============================================================================\n// I18n Helper Functions\n// ============================================================================\n\n/** Get model label for a specific locale */\nexport function getTeamPermissionLabel(locale: string): string {\n return teamPermissionI18n.label[locale as keyof typeof teamPermissionI18n.label] ?? teamPermissionI18n.label['en'] ?? 'TeamPermission';\n}\n\n/** Get field label for a specific locale */\nexport function getTeamPermissionFieldLabel(field: string, locale: string): string {\n const fieldI18n = teamPermissionI18n.fields[field as keyof typeof teamPermissionI18n.fields];\n if (!fieldI18n) return field;\n return fieldI18n.label[locale as keyof typeof fieldI18n.label] ?? fieldI18n.label['en'] ?? field;\n}\n\n/** Get field placeholder for a specific locale */\nexport function getTeamPermissionFieldPlaceholder(field: string, locale: string): string {\n const fieldI18n = teamPermissionI18n.fields[field as keyof typeof teamPermissionI18n.fields];\n if (!fieldI18n || !('placeholder' in fieldI18n)) return '';\n const placeholder = fieldI18n.placeholder as Record<string, string>;\n return placeholder[locale] ?? placeholder['en'] ?? '';\n}\n","/**\n * TeamPermission Model\n *\n * This file extends the auto-generated base interface.\n * You can add custom methods, computed properties, or override types/schemas here.\n * This file will NOT be overwritten by the generator.\n */\n\nimport { z } from 'zod';\nimport type { TeamPermission as TeamPermissionBase } from '@omnify-base/schemas/TeamPermission';\nimport {\n baseTeamPermissionSchemas,\n baseTeamPermissionCreateSchema,\n baseTeamPermissionUpdateSchema,\n teamPermissionI18n,\n getTeamPermissionLabel,\n getTeamPermissionFieldLabel,\n getTeamPermissionFieldPlaceholder,\n} from '@omnify-base/schemas/TeamPermission';\n\n// ============================================================================\n// Types (extend or re-export)\n// ============================================================================\n\nexport interface TeamPermission extends TeamPermissionBase {\n // Add custom properties here\n}\n\n// ============================================================================\n// Schemas (extend or re-export)\n// ============================================================================\n\nexport const teamPermissionSchemas = { ...baseTeamPermissionSchemas };\nexport const teamPermissionCreateSchema = baseTeamPermissionCreateSchema;\nexport const teamPermissionUpdateSchema = baseTeamPermissionUpdateSchema;\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport type TeamPermissionCreate = z.infer<typeof teamPermissionCreateSchema>;\nexport type TeamPermissionUpdate = z.infer<typeof teamPermissionUpdateSchema>;\n\n// Re-export i18n and helpers\nexport {\n teamPermissionI18n,\n getTeamPermissionLabel,\n getTeamPermissionFieldLabel,\n getTeamPermissionFieldPlaceholder,\n};\n\n// Re-export base type for internal use\nexport type { TeamPermissionBase };\n","/**\n * ⚠️ DO NOT EDIT THIS FILE! ⚠️\n * このファイルを編集しないでください!\n * KHÔNG ĐƯỢC SỬA FILE NÀY!\n *\n * Auto-generated TypeScript types from Omnify schemas.\n * Any manual changes will be OVERWRITTEN on next generation.\n *\n * To modify: Edit the schema YAML file and run: npx omnify generate\n */\n\nimport { z } from 'zod';\nimport type { DateTimeString } from './common';\nimport type { Role } from './Role';\n\n/**\n * ユーザーキャッシュ\n */\nexport interface UserCache {\n /** Primary key */\n id: string;\n /** 名前 */\n name: string;\n /** メールアドレス */\n email: string;\n /** Console User ID */\n console_user_id?: unknown;\n /** 所属組織ID */\n console_org_id?: unknown;\n /** Console Access Token */\n console_access_token?: string;\n /** Console Refresh Token */\n console_refresh_token?: string;\n /** Console Token有効期限 */\n console_token_expires_at?: DateTimeString;\n /** ロール */\n roles: Role[];\n /** Creation timestamp */\n created_at?: DateTimeString;\n /** Last update timestamp */\n updated_at?: DateTimeString;\n}\n\n// ============================================================================\n// I18n (Internationalization)\n// ============================================================================\n\n/**\n * Unified i18n object for UserCache\n * Contains model label and all field labels/placeholders\n */\nexport const userCacheI18n = {\n /** Model display name */\n label: {\"ja\":\"ユーザーキャッシュ\",\"en\":\"User Cache\"},\n /** Field labels and placeholders */\n fields: {\n name: {\n label: {\"ja\":\"名前\",\"en\":\"Name\"},\n },\n email: {\n label: {\"ja\":\"メールアドレス\",\"en\":\"Email\"},\n },\n console_user_id: {\n label: {\"ja\":\"Console User ID\",\"en\":\"Console User ID\"},\n },\n console_org_id: {\n label: {\"ja\":\"所属組織ID\",\"en\":\"Organization ID\"},\n },\n console_access_token: {\n label: {\"ja\":\"Console Access Token\",\"en\":\"Console Access Token\"},\n },\n console_refresh_token: {\n label: {\"ja\":\"Console Refresh Token\",\"en\":\"Console Refresh Token\"},\n },\n console_token_expires_at: {\n label: {\"ja\":\"Console Token有効期限\",\"en\":\"Console Token Expiry\"},\n },\n roles: {\n label: {\"ja\":\"ロール\",\"en\":\"Roles\"},\n },\n },\n} as const;\n\n// ============================================================================\n// Zod Schemas\n// ============================================================================\n\n/** Field schemas for UserCache */\nexport const baseUserCacheSchemas = {\n name: z.string().min(1),\n email: z.string().min(1),\n console_user_id: z.string().optional().nullable(),\n console_org_id: z.string().optional().nullable(),\n console_access_token: z.string().optional().nullable(),\n console_refresh_token: z.string().optional().nullable(),\n console_token_expires_at: z.string().datetime({ offset: true }).optional().nullable(),\n} as const;\n\n/** Create schema for UserCache (POST requests) */\nexport const baseUserCacheCreateSchema = z.object({\n name: baseUserCacheSchemas.name,\n email: baseUserCacheSchemas.email,\n console_user_id: baseUserCacheSchemas.console_user_id,\n console_org_id: baseUserCacheSchemas.console_org_id,\n console_access_token: baseUserCacheSchemas.console_access_token,\n console_refresh_token: baseUserCacheSchemas.console_refresh_token,\n console_token_expires_at: baseUserCacheSchemas.console_token_expires_at,\n});\n\n/** Update schema for UserCache (PUT/PATCH requests) */\nexport const baseUserCacheUpdateSchema = baseUserCacheCreateSchema.partial();\n\n// ============================================================================\n// Inferred Types\n// ============================================================================\n\nexport type BaseUserCacheCreate = z.infer<typeof baseUserCacheCreateSchema>;\nexport type BaseUserCacheUpdate = z.infer<typeof baseUserCacheUpdateSchema>;\n\n// ============================================================================\n// I18n Helper Functions\n// ============================================================================\n\n/** Get model label for a specific locale */\nexport function getUserCacheLabel(locale: string): string {\n return userCacheI18n.label[locale as keyof typeof userCacheI18n.label] ?? userCacheI18n.label['en'] ?? 'UserCache';\n}\n\n/** Get field label for a specific locale */\nexport function getUserCacheFieldLabel(field: string, locale: string): string {\n const fieldI18n = userCacheI18n.fields[field as keyof typeof userCacheI18n.fields];\n if (!fieldI18n) return field;\n return fieldI18n.label[locale as keyof typeof fieldI18n.label] ?? fieldI18n.label['en'] ?? field;\n}\n\n/** Get field placeholder for a specific locale */\nexport function getUserCacheFieldPlaceholder(field: string, locale: string): string {\n const fieldI18n = userCacheI18n.fields[field as keyof typeof userCacheI18n.fields];\n if (!fieldI18n || !('placeholder' in fieldI18n)) return '';\n const placeholder = fieldI18n.placeholder as Record<string, string>;\n return placeholder[locale] ?? placeholder['en'] ?? '';\n}\n","/**\n * UserCache Model\n *\n * This file extends the auto-generated base interface.\n * You can add custom methods, computed properties, or override types/schemas here.\n * This file will NOT be overwritten by the generator.\n */\n\nimport { z } from 'zod';\nimport type { UserCache as UserCacheBase } from '@omnify-base/schemas/UserCache';\nimport {\n baseUserCacheSchemas,\n baseUserCacheCreateSchema,\n baseUserCacheUpdateSchema,\n userCacheI18n,\n getUserCacheLabel,\n getUserCacheFieldLabel,\n getUserCacheFieldPlaceholder,\n} from '@omnify-base/schemas/UserCache';\n\n// ============================================================================\n// Types (extend or re-export)\n// ============================================================================\n\nexport interface UserCache extends UserCacheBase {\n // Add custom properties here\n}\n\n// ============================================================================\n// Schemas (extend or re-export)\n// ============================================================================\n\nexport const userCacheSchemas = { ...baseUserCacheSchemas };\nexport const userCacheCreateSchema = baseUserCacheCreateSchema;\nexport const userCacheUpdateSchema = baseUserCacheUpdateSchema;\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport type UserCacheCreate = z.infer<typeof userCacheCreateSchema>;\nexport type UserCacheUpdate = z.infer<typeof userCacheUpdateSchema>;\n\n// Re-export i18n and helpers\nexport {\n userCacheI18n,\n getUserCacheLabel,\n getUserCacheFieldLabel,\n getUserCacheFieldPlaceholder,\n};\n\n// Re-export base type for internal use\nexport type { UserCacheBase };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACiBO,IAAM,gBAAgB;AAKtB,IAAM,iBAAiB;AAKvB,IAAM,mBAAmB,CAAC,MAAK,IAAI;AAMnC,IAAM,qBAAqB;AAAA,EAChC,YAAY;AAAA,IACV,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AAAA,EACA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AAAA,EACA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AAAA,EACA,OAAO;AAAA,IACL,MAAM;A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AAI,CAAC,UAAW,QAAO;AACvB,SAAO,UAAU,MAAM,MAAsC,KAAK,UAAU,MAAM,IAAI,KAAK;AAC7F;AAGO,SAAS,6BAA6B,OAAe,QAAwB;AAClF,QAAM,YAAY,cAAc,OAAO,KAA0C;AACjF,MAAI,CAAC,aAAa,EAAE,iBAAiB,WAAY,QAAO;AACxD,QAAM,cAAc,UAAU;AAC9B,SAAO,YAAY,MAAM,KAAK,YAAY,IAAI,KAAK;AACrD;;;AC7GO,IAAM,mBAAmB,EAAE,GAAG,qBAAqB;AACnD,IAAM,wBAAwB;AAC9B,IAAM,wBAAwB;","names":["import_zod","import_zod","import_zod","import_zod","import_zod","import_zod","import_zod"]}
|
package/dist/schemas/index.d.cts
DELETED
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
export { DateString, DateTimeString, Locale, LocaleMap, ValidationRule } from '@omnify-base/schemas/common';
|
|
2
|
-
export { defaultLocale, fallbackLocale, getMessage, getMessages, supportedLocales, validationMessages } from '@omnify-base/schemas/i18n';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { BranchCache as BranchCache$1 } from '@omnify-base/schemas/BranchCache';
|
|
5
|
-
export { branchCacheI18n, getBranchCacheFieldLabel, getBranchCacheFieldPlaceholder, getBranchCacheLabel } from '@omnify-base/schemas/BranchCache';
|
|
6
|
-
import { OrganizationCache as OrganizationCache$1 } from '@omnify-base/schemas/OrganizationCache';
|
|
7
|
-
export { getOrganizationCacheFieldLabel, getOrganizationCacheFieldPlaceholder, getOrganizationCacheLabel, organizationCacheI18n } from '@omnify-base/schemas/OrganizationCache';
|
|
8
|
-
import { Permission as Permission$1 } from '@omnify-base/schemas/Permission';
|
|
9
|
-
export { getPermissionFieldLabel, getPermissionFieldPlaceholder, getPermissionLabel, permissionI18n } from '@omnify-base/schemas/Permission';
|
|
10
|
-
import { Role as Role$1 } from '@omnify-base/schemas/Role';
|
|
11
|
-
export { getRoleFieldLabel, getRoleFieldPlaceholder, getRoleLabel, roleI18n } from '@omnify-base/schemas/Role';
|
|
12
|
-
import { RolePermission as RolePermission$1 } from '@omnify-base/schemas/RolePermission';
|
|
13
|
-
export { getRolePermissionFieldLabel, getRolePermissionFieldPlaceholder, getRolePermissionLabel, rolePermissionI18n } from '@omnify-base/schemas/RolePermission';
|
|
14
|
-
import { TeamCache as TeamCache$1 } from '@omnify-base/schemas/TeamCache';
|
|
15
|
-
export { getTeamCacheFieldLabel, getTeamCacheFieldPlaceholder, getTeamCacheLabel, teamCacheI18n } from '@omnify-base/schemas/TeamCache';
|
|
16
|
-
import { TeamPermission as TeamPermission$1 } from '@omnify-base/schemas/TeamPermission';
|
|
17
|
-
export { getTeamPermissionFieldLabel, getTeamPermissionFieldPlaceholder, getTeamPermissionLabel, teamPermissionI18n } from '@omnify-base/schemas/TeamPermission';
|
|
18
|
-
import { UserCache as UserCache$1 } from '@omnify-base/schemas/UserCache';
|
|
19
|
-
export { getUserCacheFieldLabel, getUserCacheFieldPlaceholder, getUserCacheLabel, userCacheI18n } from '@omnify-base/schemas/UserCache';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* BranchCache Model
|
|
23
|
-
*
|
|
24
|
-
* This file extends the auto-generated base interface.
|
|
25
|
-
* You can add custom methods, computed properties, or override types/schemas here.
|
|
26
|
-
* This file will NOT be overwritten by the generator.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
interface BranchCache extends BranchCache$1 {
|
|
30
|
-
}
|
|
31
|
-
declare const branchCacheSchemas: {
|
|
32
|
-
console_branch_id: z.ZodString;
|
|
33
|
-
console_org_id: z.ZodString;
|
|
34
|
-
code: z.ZodString;
|
|
35
|
-
name: z.ZodString;
|
|
36
|
-
is_headquarters: z.ZodBoolean;
|
|
37
|
-
is_active: z.ZodBoolean;
|
|
38
|
-
};
|
|
39
|
-
declare const branchCacheCreateSchema: z.ZodObject<{
|
|
40
|
-
console_branch_id: z.ZodString;
|
|
41
|
-
console_org_id: z.ZodString;
|
|
42
|
-
code: z.ZodString;
|
|
43
|
-
name: z.ZodString;
|
|
44
|
-
is_headquarters: z.ZodBoolean;
|
|
45
|
-
is_active: z.ZodBoolean;
|
|
46
|
-
}, z.core.$strip>;
|
|
47
|
-
declare const branchCacheUpdateSchema: z.ZodObject<{
|
|
48
|
-
console_branch_id: z.ZodOptional<z.ZodString>;
|
|
49
|
-
console_org_id: z.ZodOptional<z.ZodString>;
|
|
50
|
-
code: z.ZodOptional<z.ZodString>;
|
|
51
|
-
name: z.ZodOptional<z.ZodString>;
|
|
52
|
-
is_headquarters: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
-
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
type BranchCacheCreate = z.infer<typeof branchCacheCreateSchema>;
|
|
56
|
-
type BranchCacheUpdate = z.infer<typeof branchCacheUpdateSchema>;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* OrganizationCache Model
|
|
60
|
-
*
|
|
61
|
-
* This file extends the auto-generated base interface.
|
|
62
|
-
* You can add custom methods, computed properties, or override types/schemas here.
|
|
63
|
-
* This file will NOT be overwritten by the generator.
|
|
64
|
-
*/
|
|
65
|
-
|
|
66
|
-
interface OrganizationCache extends OrganizationCache$1 {
|
|
67
|
-
}
|
|
68
|
-
declare const organizationCacheSchemas: {
|
|
69
|
-
console_org_id: z.ZodString;
|
|
70
|
-
name: z.ZodString;
|
|
71
|
-
code: z.ZodString;
|
|
72
|
-
is_active: z.ZodBoolean;
|
|
73
|
-
};
|
|
74
|
-
declare const organizationCacheCreateSchema: z.ZodObject<{
|
|
75
|
-
console_org_id: z.ZodString;
|
|
76
|
-
name: z.ZodString;
|
|
77
|
-
code: z.ZodString;
|
|
78
|
-
is_active: z.ZodBoolean;
|
|
79
|
-
}, z.core.$strip>;
|
|
80
|
-
declare const organizationCacheUpdateSchema: z.ZodObject<{
|
|
81
|
-
console_org_id: z.ZodOptional<z.ZodString>;
|
|
82
|
-
name: z.ZodOptional<z.ZodString>;
|
|
83
|
-
code: z.ZodOptional<z.ZodString>;
|
|
84
|
-
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
|
-
type OrganizationCacheCreate = z.infer<typeof organizationCacheCreateSchema>;
|
|
87
|
-
type OrganizationCacheUpdate = z.infer<typeof organizationCacheUpdateSchema>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Permission Model
|
|
91
|
-
*
|
|
92
|
-
* This file extends the auto-generated base interface.
|
|
93
|
-
* You can add custom methods, computed properties, or override types/schemas here.
|
|
94
|
-
* This file will NOT be overwritten by the generator.
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
interface Permission extends Permission$1 {
|
|
98
|
-
}
|
|
99
|
-
declare const permissionSchemas: {
|
|
100
|
-
name: z.ZodString;
|
|
101
|
-
slug: z.ZodString;
|
|
102
|
-
group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
103
|
-
};
|
|
104
|
-
declare const permissionCreateSchema: z.ZodObject<{
|
|
105
|
-
name: z.ZodString;
|
|
106
|
-
slug: z.ZodString;
|
|
107
|
-
group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
108
|
-
}, z.core.$strip>;
|
|
109
|
-
declare const permissionUpdateSchema: z.ZodObject<{
|
|
110
|
-
name: z.ZodOptional<z.ZodString>;
|
|
111
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
112
|
-
group: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
type PermissionCreate = z.infer<typeof permissionCreateSchema>;
|
|
115
|
-
type PermissionUpdate = z.infer<typeof permissionUpdateSchema>;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Role Model
|
|
119
|
-
*
|
|
120
|
-
* This file extends the auto-generated base interface.
|
|
121
|
-
* You can add custom methods, computed properties, or override types/schemas here.
|
|
122
|
-
* This file will NOT be overwritten by the generator.
|
|
123
|
-
*/
|
|
124
|
-
|
|
125
|
-
interface Role extends Role$1 {
|
|
126
|
-
}
|
|
127
|
-
declare const roleSchemas: {
|
|
128
|
-
console_org_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
129
|
-
name: z.ZodString;
|
|
130
|
-
slug: z.ZodString;
|
|
131
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
132
|
-
level: z.ZodNumber;
|
|
133
|
-
};
|
|
134
|
-
declare const roleCreateSchema: z.ZodObject<{
|
|
135
|
-
console_org_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
136
|
-
name: z.ZodString;
|
|
137
|
-
slug: z.ZodString;
|
|
138
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
139
|
-
level: z.ZodNumber;
|
|
140
|
-
}, z.core.$strip>;
|
|
141
|
-
declare const roleUpdateSchema: z.ZodObject<{
|
|
142
|
-
console_org_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
143
|
-
name: z.ZodOptional<z.ZodString>;
|
|
144
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
145
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
146
|
-
level: z.ZodOptional<z.ZodNumber>;
|
|
147
|
-
}, z.core.$strip>;
|
|
148
|
-
type RoleCreate = z.infer<typeof roleCreateSchema>;
|
|
149
|
-
type RoleUpdate = z.infer<typeof roleUpdateSchema>;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* RolePermission Model
|
|
153
|
-
*
|
|
154
|
-
* This file extends the auto-generated base interface.
|
|
155
|
-
* You can add custom methods, computed properties, or override types/schemas here.
|
|
156
|
-
* This file will NOT be overwritten by the generator.
|
|
157
|
-
*/
|
|
158
|
-
|
|
159
|
-
interface RolePermission extends RolePermission$1 {
|
|
160
|
-
}
|
|
161
|
-
declare const rolePermissionSchemas: {};
|
|
162
|
-
declare const rolePermissionCreateSchema: z.ZodObject<{}, z.core.$strip>;
|
|
163
|
-
declare const rolePermissionUpdateSchema: z.ZodObject<{}, z.core.$strip>;
|
|
164
|
-
type RolePermissionCreate = z.infer<typeof rolePermissionCreateSchema>;
|
|
165
|
-
type RolePermissionUpdate = z.infer<typeof rolePermissionUpdateSchema>;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* TeamCache Model
|
|
169
|
-
*
|
|
170
|
-
* This file extends the auto-generated base interface.
|
|
171
|
-
* You can add custom methods, computed properties, or override types/schemas here.
|
|
172
|
-
* This file will NOT be overwritten by the generator.
|
|
173
|
-
*/
|
|
174
|
-
|
|
175
|
-
interface TeamCache extends TeamCache$1 {
|
|
176
|
-
}
|
|
177
|
-
declare const teamCacheSchemas: {
|
|
178
|
-
console_team_id: z.ZodString;
|
|
179
|
-
console_org_id: z.ZodString;
|
|
180
|
-
name: z.ZodString;
|
|
181
|
-
};
|
|
182
|
-
declare const teamCacheCreateSchema: z.ZodObject<{
|
|
183
|
-
console_team_id: z.ZodString;
|
|
184
|
-
console_org_id: z.ZodString;
|
|
185
|
-
name: z.ZodString;
|
|
186
|
-
}, z.core.$strip>;
|
|
187
|
-
declare const teamCacheUpdateSchema: z.ZodObject<{
|
|
188
|
-
console_team_id: z.ZodOptional<z.ZodString>;
|
|
189
|
-
console_org_id: z.ZodOptional<z.ZodString>;
|
|
190
|
-
name: z.ZodOptional<z.ZodString>;
|
|
191
|
-
}, z.core.$strip>;
|
|
192
|
-
type TeamCacheCreate = z.infer<typeof teamCacheCreateSchema>;
|
|
193
|
-
type TeamCacheUpdate = z.infer<typeof teamCacheUpdateSchema>;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* TeamPermission Model
|
|
197
|
-
*
|
|
198
|
-
* This file extends the auto-generated base interface.
|
|
199
|
-
* You can add custom methods, computed properties, or override types/schemas here.
|
|
200
|
-
* This file will NOT be overwritten by the generator.
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
interface TeamPermission extends TeamPermission$1 {
|
|
204
|
-
}
|
|
205
|
-
declare const teamPermissionSchemas: {
|
|
206
|
-
console_org_id: z.ZodString;
|
|
207
|
-
console_team_id: z.ZodString;
|
|
208
|
-
};
|
|
209
|
-
declare const teamPermissionCreateSchema: z.ZodObject<{
|
|
210
|
-
console_org_id: z.ZodString;
|
|
211
|
-
console_team_id: z.ZodString;
|
|
212
|
-
}, z.core.$strip>;
|
|
213
|
-
declare const teamPermissionUpdateSchema: z.ZodObject<{
|
|
214
|
-
console_org_id: z.ZodOptional<z.ZodString>;
|
|
215
|
-
console_team_id: z.ZodOptional<z.ZodString>;
|
|
216
|
-
}, z.core.$strip>;
|
|
217
|
-
type TeamPermissionCreate = z.infer<typeof teamPermissionCreateSchema>;
|
|
218
|
-
type TeamPermissionUpdate = z.infer<typeof teamPermissionUpdateSchema>;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* UserCache Model
|
|
222
|
-
*
|
|
223
|
-
* This file extends the auto-generated base interface.
|
|
224
|
-
* You can add custom methods, computed properties, or override types/schemas here.
|
|
225
|
-
* This file will NOT be overwritten by the generator.
|
|
226
|
-
*/
|
|
227
|
-
|
|
228
|
-
interface UserCache extends UserCache$1 {
|
|
229
|
-
}
|
|
230
|
-
declare const userCacheSchemas: {
|
|
231
|
-
name: z.ZodString;
|
|
232
|
-
email: z.ZodString;
|
|
233
|
-
console_user_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
234
|
-
console_org_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
235
|
-
console_access_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
236
|
-
console_refresh_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
237
|
-
console_token_expires_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
238
|
-
};
|
|
239
|
-
declare const userCacheCreateSchema: z.ZodObject<{
|
|
240
|
-
name: z.ZodString;
|
|
241
|
-
email: z.ZodString;
|
|
242
|
-
console_user_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
243
|
-
console_org_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
244
|
-
console_access_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
245
|
-
console_refresh_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
246
|
-
console_token_expires_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
247
|
-
}, z.core.$strip>;
|
|
248
|
-
declare const userCacheUpdateSchema: z.ZodObject<{
|
|
249
|
-
name: z.ZodOptional<z.ZodString>;
|
|
250
|
-
email: z.ZodOptional<z.ZodString>;
|
|
251
|
-
console_user_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
252
|
-
console_org_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
253
|
-
console_access_token: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
254
|
-
console_refresh_token: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
255
|
-
console_token_expires_at: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
256
|
-
}, z.core.$strip>;
|
|
257
|
-
type UserCacheCreate = z.infer<typeof userCacheCreateSchema>;
|
|
258
|
-
type UserCacheUpdate = z.infer<typeof userCacheUpdateSchema>;
|
|
259
|
-
|
|
260
|
-
export { type BranchCache, type BranchCacheCreate, type BranchCacheUpdate, type OrganizationCache, type OrganizationCacheCreate, type OrganizationCacheUpdate, type Permission, type PermissionCreate, type PermissionUpdate, type Role, type RoleCreate, type RolePermission, type RolePermissionCreate, type RolePermissionUpdate, type RoleUpdate, type TeamCache, type TeamCacheCreate, type TeamCacheUpdate, type TeamPermission, type TeamPermissionCreate, type TeamPermissionUpdate, type UserCache, type UserCacheCreate, type UserCacheUpdate, branchCacheCreateSchema, branchCacheSchemas, branchCacheUpdateSchema, organizationCacheCreateSchema, organizationCacheSchemas, organizationCacheUpdateSchema, permissionCreateSchema, permissionSchemas, permissionUpdateSchema, roleCreateSchema, rolePermissionCreateSchema, rolePermissionSchemas, rolePermissionUpdateSchema, roleSchemas, roleUpdateSchema, teamCacheCreateSchema, teamCacheSchemas, teamCacheUpdateSchema, teamPermissionCreateSchema, teamPermissionSchemas, teamPermissionUpdateSchema, userCacheCreateSchema, userCacheSchemas, userCacheUpdateSchema };
|