@company-semantics/contracts 0.66.0 → 0.67.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 +1 -1
- package/src/index.ts +7 -0
- package/src/org/index.ts +10 -0
- package/src/org/strategy.ts +53 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -238,6 +238,13 @@ export type {
|
|
|
238
238
|
PromotionRequest,
|
|
239
239
|
PromotionRecord,
|
|
240
240
|
PromotionReadinessResult,
|
|
241
|
+
// Strategy domain types (PRD-00173)
|
|
242
|
+
StrategyVisibility,
|
|
243
|
+
StrategyDocLevel,
|
|
244
|
+
StrategySource,
|
|
245
|
+
StrategyDependency,
|
|
246
|
+
StrategyTreeNode,
|
|
247
|
+
StrategyDoc,
|
|
241
248
|
} from './org/index'
|
|
242
249
|
|
|
243
250
|
export { ROLE_DISPLAY_MAP, WORKSPACE_CAPABILITIES, ROLE_CAPABILITY_MAP, VIEW_SCOPE_MAP, getViewScope, TRANSFER_RESPONSIBILITIES, IDENTITY_TRUST_LEVEL_LABELS, MANAGEMENT_TIER_LABELS } from './org/index'
|
package/src/org/index.ts
CHANGED
|
@@ -72,3 +72,13 @@ export type {
|
|
|
72
72
|
// View authorization scopes (Phase 5 - ADR-APP-013)
|
|
73
73
|
export type { AuthorizableView } from './view-scopes';
|
|
74
74
|
export { VIEW_SCOPE_MAP, getViewScope } from './view-scopes';
|
|
75
|
+
|
|
76
|
+
// Strategy domain types (PRD-00173)
|
|
77
|
+
export type {
|
|
78
|
+
StrategyVisibility,
|
|
79
|
+
StrategyDocLevel,
|
|
80
|
+
StrategySource,
|
|
81
|
+
StrategyDependency,
|
|
82
|
+
StrategyTreeNode,
|
|
83
|
+
StrategyDoc,
|
|
84
|
+
} from './strategy';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strategy Domain Types
|
|
3
|
+
*
|
|
4
|
+
* Vocabulary types for the Company.md strategy feature.
|
|
5
|
+
* Shared between backend (persistence/service) and app (UI rendering).
|
|
6
|
+
* @see PRD-00173 for design rationale
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export type StrategyVisibility = 'public' | 'private';
|
|
10
|
+
|
|
11
|
+
export type StrategyDocLevel = 'root' | 'department';
|
|
12
|
+
|
|
13
|
+
export interface StrategySource {
|
|
14
|
+
readonly label: string;
|
|
15
|
+
readonly sourceType: 'meeting' | 'document' | 'conversation' | 'manual';
|
|
16
|
+
readonly referencedAt: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface StrategyDependency {
|
|
20
|
+
readonly targetSlug: string;
|
|
21
|
+
readonly description: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface StrategyTreeNode {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly slug: string;
|
|
27
|
+
readonly title: string;
|
|
28
|
+
readonly level: StrategyDocLevel;
|
|
29
|
+
readonly department: string | null;
|
|
30
|
+
readonly visibility: StrategyVisibility;
|
|
31
|
+
readonly canEdit: boolean;
|
|
32
|
+
readonly memberCount: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface StrategyDoc {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly slug: string;
|
|
38
|
+
readonly title: string;
|
|
39
|
+
readonly level: StrategyDocLevel;
|
|
40
|
+
readonly department: string | null;
|
|
41
|
+
readonly content: string;
|
|
42
|
+
readonly visibility: StrategyVisibility;
|
|
43
|
+
readonly parentId: string | null;
|
|
44
|
+
readonly owner: { readonly id: string; readonly name: string } | null;
|
|
45
|
+
readonly coOwners: ReadonlyArray<{ readonly id: string; readonly name: string }>;
|
|
46
|
+
readonly canEdit: boolean;
|
|
47
|
+
readonly inheritsFrom: string | null;
|
|
48
|
+
readonly sources: readonly StrategySource[];
|
|
49
|
+
readonly dependencies: readonly StrategyDependency[];
|
|
50
|
+
readonly members: ReadonlyArray<{ readonly id: string; readonly name: string }>;
|
|
51
|
+
readonly createdAt: string;
|
|
52
|
+
readonly updatedAt: string;
|
|
53
|
+
}
|