@company-semantics/contracts 0.128.0 → 0.129.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 +2 -2
- package/src/content/schemas.ts +1 -5
- package/src/org/teams.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@company-semantics/contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.129.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"guard:decisions-deprecation": "npx tsx scripts/ci/decisions-deprecation-guard.ts",
|
|
90
90
|
"guard:decisions-deprecation:json": "npx tsx scripts/ci/decisions-deprecation-guard.ts --json",
|
|
91
91
|
"guard:quick": "GUARD_DEPENDENCY_ROOT=../ tsx ../company-semantics-ci/run-guards.ts --config scripts/ci/guard-entries.ts --quick",
|
|
92
|
-
"ci:local": "pnpm typecheck && pnpm lint:md && pnpm guard:test",
|
|
92
|
+
"ci:local": "pnpm typecheck && pnpm lint:md && pnpm guard:test && GUARD_DEPENDENCY_ROOT=../ pnpm guard",
|
|
93
93
|
"guard": "GUARD_DEPENDENCY_ROOT=../ tsx ../company-semantics-ci/run-guards.ts --config scripts/ci/guard-entries.ts",
|
|
94
94
|
"guard:test": "vitest run scripts/ci/__tests__",
|
|
95
95
|
"release": "npx tsx scripts/release.ts",
|
package/src/content/schemas.ts
CHANGED
|
@@ -180,11 +180,7 @@ export const TeamListResponseSchema = z.object({
|
|
|
180
180
|
});
|
|
181
181
|
|
|
182
182
|
/** Response for GET /api/teams/:teamId */
|
|
183
|
-
export const TeamResponseSchema =
|
|
184
|
-
id: z.string(),
|
|
185
|
-
name: z.string(),
|
|
186
|
-
slug: z.string(),
|
|
187
|
-
description: z.string().nullable(),
|
|
183
|
+
export const TeamResponseSchema = TeamSummarySchema.extend({
|
|
188
184
|
syncMode: z.enum(['manual_only', 'synced_readonly', 'synced_with_overrides']),
|
|
189
185
|
members: z.array(TeamMemberSchema),
|
|
190
186
|
});
|
package/src/org/teams.ts
CHANGED
|
@@ -47,6 +47,12 @@ export interface TeamMember {
|
|
|
47
47
|
/**
|
|
48
48
|
* Full team detail view including members.
|
|
49
49
|
* Returned by GET /api/teams/:teamId.
|
|
50
|
+
*
|
|
51
|
+
* TODO: Potentially redundant with TeamResponse (z.infer<typeof TeamResponseSchema>)
|
|
52
|
+
* from src/content/schemas.ts now that TeamResponseSchema is derived from
|
|
53
|
+
* TeamSummarySchema.extend(). Follow-up cleanup: check consumers and consider
|
|
54
|
+
* collapsing to the schema-derived type. Not done in PRD-00458 to avoid
|
|
55
|
+
* scope creep into untracked consumers.
|
|
50
56
|
*/
|
|
51
57
|
export interface TeamDetail extends Team {
|
|
52
58
|
readonly members: ReadonlyArray<TeamMember>;
|