@company-semantics/contracts 17.0.0 → 18.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": "17.0.0",
3
+ "version": "18.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,8 +26,8 @@ describe("EMAIL_KINDS golden snapshot", () => {
26
26
  plainTextRequired: true,
27
27
  htmlSupported: true,
28
28
  },
29
- "org.leadership_granted": {
30
- kind: "org.leadership_granted",
29
+ "org.unit_owner_granted": {
30
+ kind: "org.unit_owner_granted",
31
31
  subject: "You've been added to a team",
32
32
  plainTextRequired: true,
33
33
  htmlSupported: true,
@@ -76,8 +76,8 @@ export const EMAIL_KINDS = {
76
76
  plainTextRequired: true,
77
77
  htmlSupported: true,
78
78
  },
79
- "org.leadership_granted": {
80
- kind: "org.leadership_granted",
79
+ "org.unit_owner_granted": {
80
+ kind: "org.unit_owner_granted",
81
81
  subject: "You've been added to a team",
82
82
  plainTextRequired: true,
83
83
  htmlSupported: true,
@@ -27,7 +27,7 @@ export type EmailKind =
27
27
  | "auth.otp"
28
28
  | "auth.magic_link" // future
29
29
  | "org.invite" // future
30
- | "org.leadership_granted"
30
+ | "org.unit_owner_granted"
31
31
  | "org.ownership_transfer"
32
32
  | "org.ownership_transfer_completed"
33
33
  | "security.alert" // future
@@ -62,7 +62,7 @@ export interface EmailPayloads {
62
62
  acceptUrl: string;
63
63
  expiresInDays: number;
64
64
  };
65
- "org.leadership_granted": {
65
+ "org.unit_owner_granted": {
66
66
  /** Display name of the person who granted access */
67
67
  granterName: string;
68
68
  /** Display name of the recipient (optional; falls back to a neutral greeting) */
@@ -96,8 +96,8 @@ export const openApiRoutes = {
96
96
  '/api/org-units/{unitId}/relationships': ['GET', 'POST'],
97
97
  '/api/org-units/{unitId}/reorder': ['POST'],
98
98
  '/api/org-units/{unitId}/reparent': ['POST'],
99
- '/api/org-units/{unitId}/structural-leaders': ['POST'],
100
- '/api/org-units/{unitId}/structural-leaders/{userId}': ['DELETE'],
99
+ '/api/org-units/{unitId}/unit-owners': ['POST'],
100
+ '/api/org-units/{unitId}/unit-owners/{userId}': ['DELETE'],
101
101
  '/api/org/cancel-deletion': ['POST'],
102
102
  '/api/org/delete': ['POST'],
103
103
  '/api/org/deletion-eligibility': ['GET'],