diff --git a/.changeset/adr-0057-d11-drop-bu-kind-team.md b/.changeset/adr-0057-d11-drop-bu-kind-team.md new file mode 100644 index 0000000000..34638d04e0 --- /dev/null +++ b/.changeset/adr-0057-d11-drop-bu-kind-team.md @@ -0,0 +1,13 @@ +--- +"@objectstack/platform-objects": minor +--- + +Drop the unused `team` value from `sys_business_unit.kind` (ADR-0057 addendum D11). + +The `team` kind collided head-on with the first-class `sys_team` object: a +`kind='team'` business unit walks the hierarchical `BusinessUnitGraphService`, +while `sys_team` is the flat better-auth collaboration grouping served by +`TeamGraphService`. `kind` is a display-only categorisation hint (it does not +change graph semantics) and had **zero** usages anywhere in the repo, so this is a +safe narrowing with no data migration. New enum: +`company | division | department | office | cost_center`. diff --git a/packages/platform-objects/src/apps/translations/en.objects.generated.ts b/packages/platform-objects/src/apps/translations/en.objects.generated.ts index f0d2381546..0e471edfad 100644 --- a/packages/platform-objects/src/apps/translations/en.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/en.objects.generated.ts @@ -599,7 +599,6 @@ export const enObjects: NonNullable = { company: "company", division: "division", department: "department", - team: "team", office: "office", cost_center: "cost_center" } diff --git a/packages/platform-objects/src/apps/translations/es-ES.objects.generated.ts b/packages/platform-objects/src/apps/translations/es-ES.objects.generated.ts index b4e528be34..a21f3348b0 100644 --- a/packages/platform-objects/src/apps/translations/es-ES.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/es-ES.objects.generated.ts @@ -599,7 +599,6 @@ export const esESObjects: NonNullable = { company: "Empresa", division: "División", department: "Departamento", - team: "Equipo", office: "Oficina", cost_center: "Centro de coste" } diff --git a/packages/platform-objects/src/apps/translations/ja-JP.objects.generated.ts b/packages/platform-objects/src/apps/translations/ja-JP.objects.generated.ts index afd1dadcdc..df1bac7ce9 100644 --- a/packages/platform-objects/src/apps/translations/ja-JP.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/ja-JP.objects.generated.ts @@ -599,7 +599,6 @@ export const jaJPObjects: NonNullable = { company: "会社", division: "事業部", department: "部門", - team: "チーム", office: "オフィス", cost_center: "コストセンター" } diff --git a/packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts b/packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts index 1f9cfdc601..2911786e5b 100644 --- a/packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts @@ -599,7 +599,6 @@ export const zhCNObjects: NonNullable = { company: "公司", division: "事业部", department: "部门", - team: "团队", office: "办公地点", cost_center: "成本中心" } diff --git a/packages/platform-objects/src/identity/sys-business-unit.object.ts b/packages/platform-objects/src/identity/sys-business-unit.object.ts index b946df3a6e..6a9bc26244 100644 --- a/packages/platform-objects/src/identity/sys-business-unit.object.ts +++ b/packages/platform-objects/src/identity/sys-business-unit.object.ts @@ -9,7 +9,7 @@ import { ObjectSchema, Field } from '@objectstack/spec/data'; * `sys_team`** (which is the flat better-auth collaboration grouping). * * A single tenant typically has one `kind='company'` root, then nested - * `division` / `department` / `team` / `office` nodes underneath. The + * `division` / `department` / `office` nodes underneath. The * `kind` enum is purely a display/categorisation hint — the recursive * structure works identically regardless of value. * @@ -94,7 +94,7 @@ export const SysBusinessUnit = ObjectSchema.create({ }), kind: Field.select( - ['company', 'division', 'department', 'team', 'office', 'cost_center'], + ['company', 'division', 'department', 'office', 'cost_center'], { label: 'Kind', required: true,