@contractspec/example.team-hub 1.44.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.
Files changed (78) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +15 -0
  3. package/dist/announcement/announcement.operations.d.ts +61 -0
  4. package/dist/announcement/announcement.operations.d.ts.map +1 -0
  5. package/dist/announcement/announcement.operations.js +53 -0
  6. package/dist/announcement/announcement.operations.js.map +1 -0
  7. package/dist/announcement/announcement.schema.d.ts +64 -0
  8. package/dist/announcement/announcement.schema.d.ts.map +1 -0
  9. package/dist/announcement/announcement.schema.js +73 -0
  10. package/dist/announcement/announcement.schema.js.map +1 -0
  11. package/dist/announcement/index.d.ts +3 -0
  12. package/dist/announcement/index.js +4 -0
  13. package/dist/docs/index.d.ts +1 -0
  14. package/dist/docs/index.js +1 -0
  15. package/dist/docs/team-hub.docblock.d.ts +1 -0
  16. package/dist/docs/team-hub.docblock.js +106 -0
  17. package/dist/docs/team-hub.docblock.js.map +1 -0
  18. package/dist/entities/index.d.ts +150 -0
  19. package/dist/entities/index.d.ts.map +1 -0
  20. package/dist/entities/index.js +263 -0
  21. package/dist/entities/index.js.map +1 -0
  22. package/dist/events.d.ts +289 -0
  23. package/dist/events.d.ts.map +1 -0
  24. package/dist/events.js +214 -0
  25. package/dist/events.js.map +1 -0
  26. package/dist/example.d.ts +40 -0
  27. package/dist/example.d.ts.map +1 -0
  28. package/dist/example.js +51 -0
  29. package/dist/example.js.map +1 -0
  30. package/dist/handlers/index.d.ts +8 -0
  31. package/dist/handlers/index.d.ts.map +1 -0
  32. package/dist/handlers/index.js +9 -0
  33. package/dist/handlers/index.js.map +1 -0
  34. package/dist/index.d.ts +15 -0
  35. package/dist/index.js +16 -0
  36. package/dist/presentations/index.d.ts +5 -0
  37. package/dist/presentations/index.d.ts.map +1 -0
  38. package/dist/presentations/index.js +13 -0
  39. package/dist/presentations/index.js.map +1 -0
  40. package/dist/presentations.d.ts +12 -0
  41. package/dist/presentations.d.ts.map +1 -0
  42. package/dist/presentations.js +154 -0
  43. package/dist/presentations.js.map +1 -0
  44. package/dist/ritual/index.d.ts +3 -0
  45. package/dist/ritual/index.js +4 -0
  46. package/dist/ritual/ritual.operations.d.ts +107 -0
  47. package/dist/ritual/ritual.operations.d.ts.map +1 -0
  48. package/dist/ritual/ritual.operations.js +98 -0
  49. package/dist/ritual/ritual.operations.js.map +1 -0
  50. package/dist/ritual/ritual.schema.d.ts +85 -0
  51. package/dist/ritual/ritual.schema.d.ts.map +1 -0
  52. package/dist/ritual/ritual.schema.js +98 -0
  53. package/dist/ritual/ritual.schema.js.map +1 -0
  54. package/dist/space/index.d.ts +3 -0
  55. package/dist/space/index.js +4 -0
  56. package/dist/space/space.operations.d.ts +49 -0
  57. package/dist/space/space.operations.d.ts.map +1 -0
  58. package/dist/space/space.operations.js +52 -0
  59. package/dist/space/space.operations.js.map +1 -0
  60. package/dist/space/space.schema.d.ts +52 -0
  61. package/dist/space/space.schema.d.ts.map +1 -0
  62. package/dist/space/space.schema.js +61 -0
  63. package/dist/space/space.schema.js.map +1 -0
  64. package/dist/task/index.d.ts +3 -0
  65. package/dist/task/index.js +4 -0
  66. package/dist/task/task.operations.d.ts +230 -0
  67. package/dist/task/task.operations.d.ts.map +1 -0
  68. package/dist/task/task.operations.js +180 -0
  69. package/dist/task/task.operations.js.map +1 -0
  70. package/dist/task/task.schema.d.ts +81 -0
  71. package/dist/task/task.schema.d.ts.map +1 -0
  72. package/dist/task/task.schema.js +94 -0
  73. package/dist/task/task.schema.js.map +1 -0
  74. package/dist/team-hub.feature.d.ts +7 -0
  75. package/dist/team-hub.feature.d.ts.map +1 -0
  76. package/dist/team-hub.feature.js +159 -0
  77. package/dist/team-hub.feature.js.map +1 -0
  78. package/package.json +99 -0
@@ -0,0 +1,159 @@
1
+ //#region src/team-hub.feature.ts
2
+ const TeamHubFeature = {
3
+ meta: {
4
+ key: "team-hub",
5
+ title: "Team Hub",
6
+ description: "Tasks, rituals, and announcements for internal teams with ceremonies.",
7
+ domain: "collaboration",
8
+ owners: ["@team-hub"],
9
+ tags: [
10
+ "tasks",
11
+ "rituals",
12
+ "announcements"
13
+ ],
14
+ stability: "experimental",
15
+ version: 1
16
+ },
17
+ operations: [
18
+ {
19
+ key: "team.space.create",
20
+ version: 1
21
+ },
22
+ {
23
+ key: "team.task.create",
24
+ version: 1
25
+ },
26
+ {
27
+ key: "team.task.updateStatus",
28
+ version: 1
29
+ },
30
+ {
31
+ key: "team.task.list",
32
+ version: 1
33
+ },
34
+ {
35
+ key: "team.ritual.schedule",
36
+ version: 1
37
+ },
38
+ {
39
+ key: "team.ritual.logOccurrence",
40
+ version: 1
41
+ },
42
+ {
43
+ key: "team.announcement.post",
44
+ version: 1
45
+ }
46
+ ],
47
+ events: [
48
+ {
49
+ key: "team.space.created",
50
+ version: 1
51
+ },
52
+ {
53
+ key: "team.task.created",
54
+ version: 1
55
+ },
56
+ {
57
+ key: "team.task.status_changed",
58
+ version: 1
59
+ },
60
+ {
61
+ key: "team.ritual.scheduled",
62
+ version: 1
63
+ },
64
+ {
65
+ key: "team.ritual.occurred",
66
+ version: 1
67
+ },
68
+ {
69
+ key: "team.announcement.posted",
70
+ version: 1
71
+ }
72
+ ],
73
+ presentations: [
74
+ {
75
+ key: "team-hub.dashboard",
76
+ version: 1
77
+ },
78
+ {
79
+ key: "team-hub.space.list",
80
+ version: 1
81
+ },
82
+ {
83
+ key: "team-hub.task.board",
84
+ version: 1
85
+ },
86
+ {
87
+ key: "team-hub.task.detail",
88
+ version: 1
89
+ },
90
+ {
91
+ key: "team-hub.ritual.calendar",
92
+ version: 1
93
+ },
94
+ {
95
+ key: "team-hub.announcement.feed",
96
+ version: 1
97
+ }
98
+ ],
99
+ presentationsTargets: [
100
+ {
101
+ key: "team-hub.dashboard",
102
+ version: 1,
103
+ targets: ["react", "markdown"]
104
+ },
105
+ {
106
+ key: "team-hub.task.board",
107
+ version: 1,
108
+ targets: ["react"]
109
+ },
110
+ {
111
+ key: "team-hub.ritual.calendar",
112
+ version: 1,
113
+ targets: ["react"]
114
+ },
115
+ {
116
+ key: "team-hub.announcement.feed",
117
+ version: 1,
118
+ targets: ["react", "markdown"]
119
+ }
120
+ ],
121
+ capabilities: {
122
+ requires: [
123
+ {
124
+ key: "identity",
125
+ version: 1
126
+ },
127
+ {
128
+ key: "audit-trail",
129
+ version: 1
130
+ },
131
+ {
132
+ key: "notifications",
133
+ version: 1
134
+ },
135
+ {
136
+ key: "feature-flags",
137
+ version: 1
138
+ }
139
+ ],
140
+ provides: [
141
+ {
142
+ key: "tasks",
143
+ version: 1
144
+ },
145
+ {
146
+ key: "rituals",
147
+ version: 1
148
+ },
149
+ {
150
+ key: "announcements",
151
+ version: 1
152
+ }
153
+ ]
154
+ }
155
+ };
156
+
157
+ //#endregion
158
+ export { TeamHubFeature };
159
+ //# sourceMappingURL=team-hub.feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team-hub.feature.js","names":["TeamHubFeature: FeatureModuleSpec"],"sources":["../src/team-hub.feature.ts"],"sourcesContent":["import type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\nexport const TeamHubFeature: FeatureModuleSpec = {\n meta: {\n key: 'team-hub',\n title: 'Team Hub',\n description:\n 'Tasks, rituals, and announcements for internal teams with ceremonies.',\n domain: 'collaboration',\n owners: ['@team-hub'],\n tags: ['tasks', 'rituals', 'announcements'],\n stability: 'experimental',\n version: 1,\n },\n operations: [\n { key: 'team.space.create', version: 1 },\n { key: 'team.task.create', version: 1 },\n { key: 'team.task.updateStatus', version: 1 },\n { key: 'team.task.list', version: 1 },\n { key: 'team.ritual.schedule', version: 1 },\n { key: 'team.ritual.logOccurrence', version: 1 },\n { key: 'team.announcement.post', version: 1 },\n ],\n events: [\n { key: 'team.space.created', version: 1 },\n { key: 'team.task.created', version: 1 },\n { key: 'team.task.status_changed', version: 1 },\n { key: 'team.ritual.scheduled', version: 1 },\n { key: 'team.ritual.occurred', version: 1 },\n { key: 'team.announcement.posted', version: 1 },\n ],\n presentations: [\n { key: 'team-hub.dashboard', version: 1 },\n { key: 'team-hub.space.list', version: 1 },\n { key: 'team-hub.task.board', version: 1 },\n { key: 'team-hub.task.detail', version: 1 },\n { key: 'team-hub.ritual.calendar', version: 1 },\n { key: 'team-hub.announcement.feed', version: 1 },\n ],\n presentationsTargets: [\n { key: 'team-hub.dashboard', version: 1, targets: ['react', 'markdown'] },\n { key: 'team-hub.task.board', version: 1, targets: ['react'] },\n { key: 'team-hub.ritual.calendar', version: 1, targets: ['react'] },\n {\n key: 'team-hub.announcement.feed',\n version: 1,\n targets: ['react', 'markdown'],\n },\n ],\n capabilities: {\n requires: [\n { key: 'identity', version: 1 },\n { key: 'audit-trail', version: 1 },\n { key: 'notifications', version: 1 },\n { key: 'feature-flags', version: 1 },\n ],\n provides: [\n { key: 'tasks', version: 1 },\n { key: 'rituals', version: 1 },\n { key: 'announcements', version: 1 },\n ],\n },\n};\n"],"mappings":";AAEA,MAAaA,iBAAoC;CAC/C,MAAM;EACJ,KAAK;EACL,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAS;GAAW;GAAgB;EAC3C,WAAW;EACX,SAAS;EACV;CACD,YAAY;EACV;GAAE,KAAK;GAAqB,SAAS;GAAG;EACxC;GAAE,KAAK;GAAoB,SAAS;GAAG;EACvC;GAAE,KAAK;GAA0B,SAAS;GAAG;EAC7C;GAAE,KAAK;GAAkB,SAAS;GAAG;EACrC;GAAE,KAAK;GAAwB,SAAS;GAAG;EAC3C;GAAE,KAAK;GAA6B,SAAS;GAAG;EAChD;GAAE,KAAK;GAA0B,SAAS;GAAG;EAC9C;CACD,QAAQ;EACN;GAAE,KAAK;GAAsB,SAAS;GAAG;EACzC;GAAE,KAAK;GAAqB,SAAS;GAAG;EACxC;GAAE,KAAK;GAA4B,SAAS;GAAG;EAC/C;GAAE,KAAK;GAAyB,SAAS;GAAG;EAC5C;GAAE,KAAK;GAAwB,SAAS;GAAG;EAC3C;GAAE,KAAK;GAA4B,SAAS;GAAG;EAChD;CACD,eAAe;EACb;GAAE,KAAK;GAAsB,SAAS;GAAG;EACzC;GAAE,KAAK;GAAuB,SAAS;GAAG;EAC1C;GAAE,KAAK;GAAuB,SAAS;GAAG;EAC1C;GAAE,KAAK;GAAwB,SAAS;GAAG;EAC3C;GAAE,KAAK;GAA4B,SAAS;GAAG;EAC/C;GAAE,KAAK;GAA8B,SAAS;GAAG;EAClD;CACD,sBAAsB;EACpB;GAAE,KAAK;GAAsB,SAAS;GAAG,SAAS,CAAC,SAAS,WAAW;GAAE;EACzE;GAAE,KAAK;GAAuB,SAAS;GAAG,SAAS,CAAC,QAAQ;GAAE;EAC9D;GAAE,KAAK;GAA4B,SAAS;GAAG,SAAS,CAAC,QAAQ;GAAE;EACnE;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACF;CACD,cAAc;EACZ,UAAU;GACR;IAAE,KAAK;IAAY,SAAS;IAAG;GAC/B;IAAE,KAAK;IAAe,SAAS;IAAG;GAClC;IAAE,KAAK;IAAiB,SAAS;IAAG;GACpC;IAAE,KAAK;IAAiB,SAAS;IAAG;GACrC;EACD,UAAU;GACR;IAAE,KAAK;IAAS,SAAS;IAAG;GAC5B;IAAE,KAAK;IAAW,SAAS;IAAG;GAC9B;IAAE,KAAK;IAAiB,SAAS;IAAG;GACrC;EACF;CACF"}
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@contractspec/example.team-hub",
3
+ "version": "1.44.0",
4
+ "description": "Team Hub example with spaces, tasks, rituals, and announcements",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "type": "module",
8
+ "scripts": {
9
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
10
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
11
+ "build": "bun build:types && bun build:bundle",
12
+ "build:bundle": "tsdown",
13
+ "build:types": "tsc --noEmit",
14
+ "dev": "bun build:bundle --watch",
15
+ "clean": "rimraf dist .turbo",
16
+ "lint": "bun lint:fix",
17
+ "lint:fix": "eslint src --fix",
18
+ "lint:check": "eslint src"
19
+ },
20
+ "dependencies": {
21
+ "@contractspec/lib.schema": "1.44.0",
22
+ "@contractspec/lib.contracts": "1.44.0",
23
+ "@contractspec/lib.bus": "1.44.0",
24
+ "@contractspec/lib.identity-rbac": "1.44.0",
25
+ "@contractspec/lib.jobs": "1.44.0",
26
+ "@contractspec/module.audit-trail": "1.44.0",
27
+ "@contractspec/module.notifications": "1.44.0",
28
+ "zod": "^4.1.13"
29
+ },
30
+ "devDependencies": {
31
+ "@contractspec/tool.typescript": "1.44.0",
32
+ "@contractspec/tool.tsdown": "1.44.0",
33
+ "typescript": "^5.9.3"
34
+ },
35
+ "exports": {
36
+ ".": "./dist/index.js",
37
+ "./announcement": "./dist/announcement/index.js",
38
+ "./announcement/announcement.operations": "./dist/announcement/announcement.operations.js",
39
+ "./announcement/announcement.schema": "./dist/announcement/announcement.schema.js",
40
+ "./docs": "./dist/docs/index.js",
41
+ "./docs/team-hub.docblock": "./dist/docs/team-hub.docblock.js",
42
+ "./entities": "./dist/entities/index.js",
43
+ "./events": "./dist/events.js",
44
+ "./example": "./dist/example.js",
45
+ "./handlers": "./dist/handlers/index.js",
46
+ "./presentations": "./dist/presentations/index.js",
47
+ "./ritual": "./dist/ritual/index.js",
48
+ "./ritual/ritual.operations": "./dist/ritual/ritual.operations.js",
49
+ "./ritual/ritual.schema": "./dist/ritual/ritual.schema.js",
50
+ "./space": "./dist/space/index.js",
51
+ "./space/space.operations": "./dist/space/space.operations.js",
52
+ "./space/space.schema": "./dist/space/space.schema.js",
53
+ "./task": "./dist/task/index.js",
54
+ "./task/task.operations": "./dist/task/task.operations.js",
55
+ "./task/task.schema": "./dist/task/task.schema.js",
56
+ "./team-hub.feature": "./dist/team-hub.feature.js",
57
+ "./*": "./*"
58
+ },
59
+ "module": "./dist/index.js",
60
+ "files": [
61
+ "dist",
62
+ "README.md"
63
+ ],
64
+ "publishConfig": {
65
+ "access": "public",
66
+ "exports": {
67
+ ".": "./dist/index.js",
68
+ "./announcement": "./dist/announcement/index.js",
69
+ "./announcement/announcement.contracts": "./dist/announcement/announcement.operations.js",
70
+ "./announcement/announcement.schema": "./dist/announcement/announcement.schema.js",
71
+ "./docs": "./dist/docs/index.js",
72
+ "./docs/team-hub.docblock": "./dist/docs/team-hub.docblock.js",
73
+ "./entities": "./dist/entities/index.js",
74
+ "./events": "./dist/events.js",
75
+ "./example": "./dist/example.js",
76
+ "./handlers": "./dist/handlers/index.js",
77
+ "./presentations": "./dist/presentations/index.js",
78
+ "./ritual": "./dist/ritual/index.js",
79
+ "./ritual/ritual.contracts": "./dist/ritual/ritual.operations.js",
80
+ "./ritual/ritual.schema": "./dist/ritual/ritual.schema.js",
81
+ "./space": "./dist/space/index.js",
82
+ "./space/space.contracts": "./dist/space/space.operations.js",
83
+ "./space/space.schema": "./dist/space/space.schema.js",
84
+ "./task": "./dist/task/index.js",
85
+ "./task/task.contracts": "./dist/task/task.operations.js",
86
+ "./task/task.schema": "./dist/task/task.schema.js",
87
+ "./team-hub.feature": "./dist/team-hub.feature.js",
88
+ "./*": "./*"
89
+ },
90
+ "registry": "https://registry.npmjs.org/"
91
+ },
92
+ "license": "MIT",
93
+ "repository": {
94
+ "type": "git",
95
+ "url": "https://github.com/lssm-tech/contractspec.git",
96
+ "directory": "packages/examples/team-hub"
97
+ },
98
+ "homepage": "https://contractspec.io"
99
+ }