@company-semantics/contracts 1.26.0 → 2.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "1.26.0",
3
+ "version": "2.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -676,7 +676,14 @@ export const OrgUnitRelationshipTypeSchema = z.enum([
676
676
 
677
677
  export const OrgUnitRelationshipRoleSchema = z.enum(['owner', 'participant', 'supporting']);
678
678
 
679
- export const OrgUnitMembershipRoleSchema = z.enum(['member', 'manager', 'owner']);
679
+ export const OrgUnitMembershipRoleSchema = z.enum([
680
+ 'member',
681
+ 'l1_unit_owner',
682
+ 'l2_unit_owner',
683
+ 'l3_unit_owner',
684
+ 'l4_unit_owner',
685
+ 'l5_unit_owner',
686
+ ]);
680
687
 
681
688
  export const OrgUnitMembershipStatusSchema = z.enum(['active', 'pending', 'removed']);
682
689
 
@@ -698,7 +705,6 @@ export const OrgUnitErrorCodeSchema = z.enum([
698
705
  'ORDERKEY_CONFLICT',
699
706
  'SIBLING_NOT_FOUND',
700
707
  'SIBLINGS_DIFFERENT_PARENT',
701
- 'LEADERSHIP_IMMUTABLE',
702
708
  ]);
703
709
 
704
710
  export const OrgUnitSchema = z.object({