@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,230 @@
1
+ import * as _contractspec_lib_schema324 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts15 from "@contractspec/lib.contracts";
3
+
4
+ //#region src/task/task.operations.d.ts
5
+ declare const ListTasksInputModel: _contractspec_lib_schema324.SchemaModel<{
6
+ spaceId: {
7
+ type: _contractspec_lib_schema324.FieldType<string, string>;
8
+ isOptional: true;
9
+ };
10
+ status: {
11
+ type: _contractspec_lib_schema324.FieldType<string, string>;
12
+ isOptional: true;
13
+ };
14
+ assigneeId: {
15
+ type: _contractspec_lib_schema324.FieldType<string, string>;
16
+ isOptional: true;
17
+ };
18
+ limit: {
19
+ type: _contractspec_lib_schema324.FieldType<number, number>;
20
+ isOptional: true;
21
+ };
22
+ offset: {
23
+ type: _contractspec_lib_schema324.FieldType<number, number>;
24
+ isOptional: true;
25
+ };
26
+ }>;
27
+ declare const ListTasksOutputModel: _contractspec_lib_schema324.SchemaModel<{
28
+ tasks: {
29
+ type: _contractspec_lib_schema324.SchemaModel<{
30
+ id: {
31
+ type: _contractspec_lib_schema324.FieldType<string, string>;
32
+ isOptional: false;
33
+ };
34
+ spaceId: {
35
+ type: _contractspec_lib_schema324.FieldType<string, string>;
36
+ isOptional: false;
37
+ };
38
+ title: {
39
+ type: _contractspec_lib_schema324.FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ status: {
43
+ type: _contractspec_lib_schema324.FieldType<string, string>;
44
+ isOptional: false;
45
+ };
46
+ priority: {
47
+ type: _contractspec_lib_schema324.FieldType<string, string>;
48
+ isOptional: false;
49
+ };
50
+ assigneeId: {
51
+ type: _contractspec_lib_schema324.FieldType<string, string>;
52
+ isOptional: true;
53
+ };
54
+ dueDate: {
55
+ type: _contractspec_lib_schema324.FieldType<Date, string>;
56
+ isOptional: true;
57
+ };
58
+ }>;
59
+ isOptional: false;
60
+ isList: boolean;
61
+ };
62
+ total: {
63
+ type: _contractspec_lib_schema324.FieldType<number, number>;
64
+ isOptional: false;
65
+ };
66
+ }>;
67
+ declare const ListTasksOperation: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema324.SchemaModel<{
68
+ spaceId: {
69
+ type: _contractspec_lib_schema324.FieldType<string, string>;
70
+ isOptional: true;
71
+ };
72
+ status: {
73
+ type: _contractspec_lib_schema324.FieldType<string, string>;
74
+ isOptional: true;
75
+ };
76
+ assigneeId: {
77
+ type: _contractspec_lib_schema324.FieldType<string, string>;
78
+ isOptional: true;
79
+ };
80
+ limit: {
81
+ type: _contractspec_lib_schema324.FieldType<number, number>;
82
+ isOptional: true;
83
+ };
84
+ offset: {
85
+ type: _contractspec_lib_schema324.FieldType<number, number>;
86
+ isOptional: true;
87
+ };
88
+ }>, _contractspec_lib_schema324.SchemaModel<{
89
+ tasks: {
90
+ type: _contractspec_lib_schema324.SchemaModel<{
91
+ id: {
92
+ type: _contractspec_lib_schema324.FieldType<string, string>;
93
+ isOptional: false;
94
+ };
95
+ spaceId: {
96
+ type: _contractspec_lib_schema324.FieldType<string, string>;
97
+ isOptional: false;
98
+ };
99
+ title: {
100
+ type: _contractspec_lib_schema324.FieldType<string, string>;
101
+ isOptional: false;
102
+ };
103
+ status: {
104
+ type: _contractspec_lib_schema324.FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ priority: {
108
+ type: _contractspec_lib_schema324.FieldType<string, string>;
109
+ isOptional: false;
110
+ };
111
+ assigneeId: {
112
+ type: _contractspec_lib_schema324.FieldType<string, string>;
113
+ isOptional: true;
114
+ };
115
+ dueDate: {
116
+ type: _contractspec_lib_schema324.FieldType<Date, string>;
117
+ isOptional: true;
118
+ };
119
+ }>;
120
+ isOptional: false;
121
+ isList: boolean;
122
+ };
123
+ total: {
124
+ type: _contractspec_lib_schema324.FieldType<number, number>;
125
+ isOptional: false;
126
+ };
127
+ }>, undefined>;
128
+ /**
129
+ * Create a task.
130
+ */
131
+ declare const CreateTaskContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema324.SchemaModel<{
132
+ spaceId: {
133
+ type: _contractspec_lib_schema324.FieldType<string, string>;
134
+ isOptional: false;
135
+ };
136
+ title: {
137
+ type: _contractspec_lib_schema324.FieldType<string, string>;
138
+ isOptional: false;
139
+ };
140
+ description: {
141
+ type: _contractspec_lib_schema324.FieldType<string, string>;
142
+ isOptional: true;
143
+ };
144
+ priority: {
145
+ type: _contractspec_lib_schema324.FieldType<string, string>;
146
+ isOptional: true;
147
+ };
148
+ assigneeId: {
149
+ type: _contractspec_lib_schema324.FieldType<string, string>;
150
+ isOptional: true;
151
+ };
152
+ dueDate: {
153
+ type: _contractspec_lib_schema324.FieldType<Date, string>;
154
+ isOptional: true;
155
+ };
156
+ }>, _contractspec_lib_schema324.SchemaModel<{
157
+ id: {
158
+ type: _contractspec_lib_schema324.FieldType<string, string>;
159
+ isOptional: false;
160
+ };
161
+ spaceId: {
162
+ type: _contractspec_lib_schema324.FieldType<string, string>;
163
+ isOptional: false;
164
+ };
165
+ title: {
166
+ type: _contractspec_lib_schema324.FieldType<string, string>;
167
+ isOptional: false;
168
+ };
169
+ status: {
170
+ type: _contractspec_lib_schema324.FieldType<string, string>;
171
+ isOptional: false;
172
+ };
173
+ priority: {
174
+ type: _contractspec_lib_schema324.FieldType<string, string>;
175
+ isOptional: false;
176
+ };
177
+ assigneeId: {
178
+ type: _contractspec_lib_schema324.FieldType<string, string>;
179
+ isOptional: true;
180
+ };
181
+ dueDate: {
182
+ type: _contractspec_lib_schema324.FieldType<Date, string>;
183
+ isOptional: true;
184
+ };
185
+ }>, undefined>;
186
+ /**
187
+ * Update task status.
188
+ */
189
+ declare const UpdateTaskStatusContract: _contractspec_lib_contracts15.OperationSpec<_contractspec_lib_schema324.SchemaModel<{
190
+ taskId: {
191
+ type: _contractspec_lib_schema324.FieldType<string, string>;
192
+ isOptional: false;
193
+ };
194
+ status: {
195
+ type: _contractspec_lib_schema324.FieldType<string, string>;
196
+ isOptional: false;
197
+ };
198
+ }>, _contractspec_lib_schema324.SchemaModel<{
199
+ id: {
200
+ type: _contractspec_lib_schema324.FieldType<string, string>;
201
+ isOptional: false;
202
+ };
203
+ spaceId: {
204
+ type: _contractspec_lib_schema324.FieldType<string, string>;
205
+ isOptional: false;
206
+ };
207
+ title: {
208
+ type: _contractspec_lib_schema324.FieldType<string, string>;
209
+ isOptional: false;
210
+ };
211
+ status: {
212
+ type: _contractspec_lib_schema324.FieldType<string, string>;
213
+ isOptional: false;
214
+ };
215
+ priority: {
216
+ type: _contractspec_lib_schema324.FieldType<string, string>;
217
+ isOptional: false;
218
+ };
219
+ assigneeId: {
220
+ type: _contractspec_lib_schema324.FieldType<string, string>;
221
+ isOptional: true;
222
+ };
223
+ dueDate: {
224
+ type: _contractspec_lib_schema324.FieldType<Date, string>;
225
+ isOptional: true;
226
+ };
227
+ }>, undefined>;
228
+ //#endregion
229
+ export { CreateTaskContract, ListTasksInputModel, ListTasksOperation, ListTasksOutputModel, UpdateTaskStatusContract };
230
+ //# sourceMappingURL=task.operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.operations.d.ts","names":[],"sources":["../../src/task/task.operations.ts"],"sourcesContent":[],"mappings":";;;;cAYa,iDAAmB;;UAU9B,2BAAA,CAAA;;EAVW,CAAA;EAUX,MAAA,EAAA;;;;;+CAV8B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;EAYnB,CAAA;EAOX,KAAA,EAAA;;;;;;;;;cAPW,kDAAoB;;IAAA,IAAA,yCAAA,CAAA;MASpB,EAAA,EAAA;QAiCX,IAAA,EAnCA,2BAAA,CAAA,SAmCA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;yBAjC6B;MAAA,CAAA;;;;;;;;;;;yBAAA;MAAA,CAAA;MAwClB,UAAA,EAAA;QAiCX,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;IAjC6B,UAAA,EAAA,KAAA;;;;;;;;cAxClB,kDAAkB,0CAAA;;IAwCA,IAAA,EAP7B,2BAAA,CAAA,SAO6B,CAAA,MAAA,EAAA,MAAA,CAAA;IAsClB,UAAA,EAAA,IAAA;EAiCX,CAAA;;+CAjCmC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;EAAA,MAAA,EAAA;;;;;;;;cA9EN,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwClB,kDAAkB,0CAAA;;UAiC7B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;UAjC6B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsClB,wDAAwB,0CAAA;;UAiCnC,2BAAA,CAAA;;;;;;;;;UAjCmC,2BAAA,CAAA"}
@@ -0,0 +1,180 @@
1
+ import { CreateTaskInputModel, TaskModel, UpdateTaskStatusInputModel } from "./task.schema.js";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
+ import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
4
+
5
+ //#region src/task/task.operations.ts
6
+ const OWNERS = ["@examples.team-hub"];
7
+ const ListTasksInputModel = defineSchemaModel({
8
+ name: "ListTasksInput",
9
+ description: "Input for listing tasks",
10
+ fields: {
11
+ spaceId: {
12
+ type: ScalarTypeEnum.String_unsecure(),
13
+ isOptional: true
14
+ },
15
+ status: {
16
+ type: ScalarTypeEnum.String_unsecure(),
17
+ isOptional: true
18
+ },
19
+ assigneeId: {
20
+ type: ScalarTypeEnum.String_unsecure(),
21
+ isOptional: true
22
+ },
23
+ limit: {
24
+ type: ScalarTypeEnum.Int_unsecure(),
25
+ isOptional: true
26
+ },
27
+ offset: {
28
+ type: ScalarTypeEnum.Int_unsecure(),
29
+ isOptional: true
30
+ }
31
+ }
32
+ });
33
+ const ListTasksOutputModel = defineSchemaModel({
34
+ name: "ListTasksOutput",
35
+ description: "Output for listing tasks",
36
+ fields: {
37
+ tasks: {
38
+ type: TaskModel,
39
+ isOptional: false,
40
+ isList: true
41
+ },
42
+ total: {
43
+ type: ScalarTypeEnum.Int_unsecure(),
44
+ isOptional: false
45
+ }
46
+ }
47
+ });
48
+ const ListTasksOperation = defineQuery({
49
+ meta: {
50
+ key: "team.task.list",
51
+ version: 1,
52
+ stability: "stable",
53
+ owners: [...OWNERS],
54
+ tags: [
55
+ "team-hub",
56
+ "task",
57
+ "list",
58
+ "query"
59
+ ],
60
+ description: "List all tasks with filtering",
61
+ goal: "Retrieve list of tasks",
62
+ context: "Task management"
63
+ },
64
+ io: {
65
+ input: ListTasksInputModel,
66
+ output: ListTasksOutputModel
67
+ },
68
+ policy: { auth: "user" },
69
+ acceptance: {
70
+ scenarios: [{
71
+ key: "list-tasks-happy-path",
72
+ given: ["Tasks exist"],
73
+ when: ["User lists tasks"],
74
+ then: ["List of tasks is returned"]
75
+ }],
76
+ examples: [{
77
+ key: "list-my-tasks",
78
+ input: {
79
+ assigneeId: "user-123",
80
+ status: "open",
81
+ limit: 10
82
+ },
83
+ output: {
84
+ tasks: [],
85
+ total: 3
86
+ }
87
+ }]
88
+ }
89
+ });
90
+ /**
91
+ * Create a task.
92
+ */
93
+ const CreateTaskContract = defineCommand({
94
+ meta: {
95
+ key: "team.task.create",
96
+ version: 1,
97
+ stability: "stable",
98
+ owners: [...OWNERS],
99
+ tags: [
100
+ "team-hub",
101
+ "task",
102
+ "create"
103
+ ],
104
+ description: "Create a task.",
105
+ goal: "Track work.",
106
+ context: "Task management."
107
+ },
108
+ io: {
109
+ input: CreateTaskInputModel,
110
+ output: TaskModel
111
+ },
112
+ policy: { auth: "user" },
113
+ acceptance: {
114
+ scenarios: [{
115
+ key: "create-task-happy-path",
116
+ given: ["Space exists"],
117
+ when: ["User creates task"],
118
+ then: ["Task is created"]
119
+ }],
120
+ examples: [{
121
+ key: "create-bug",
122
+ input: {
123
+ spaceId: "space-123",
124
+ title: "Fix login bug",
125
+ type: "bug"
126
+ },
127
+ output: {
128
+ id: "task-456",
129
+ status: "todo"
130
+ }
131
+ }]
132
+ }
133
+ });
134
+ /**
135
+ * Update task status.
136
+ */
137
+ const UpdateTaskStatusContract = defineCommand({
138
+ meta: {
139
+ key: "team.task.updateStatus",
140
+ version: 1,
141
+ stability: "stable",
142
+ owners: [...OWNERS],
143
+ tags: [
144
+ "team-hub",
145
+ "task",
146
+ "status"
147
+ ],
148
+ description: "Update task status.",
149
+ goal: "Track progress.",
150
+ context: "Task management."
151
+ },
152
+ io: {
153
+ input: UpdateTaskStatusInputModel,
154
+ output: TaskModel
155
+ },
156
+ policy: { auth: "user" },
157
+ acceptance: {
158
+ scenarios: [{
159
+ key: "update-status-happy-path",
160
+ given: ["Task exists"],
161
+ when: ["User updates status"],
162
+ then: ["Status is updated"]
163
+ }],
164
+ examples: [{
165
+ key: "markup-done",
166
+ input: {
167
+ taskId: "task-456",
168
+ status: "done"
169
+ },
170
+ output: {
171
+ id: "task-456",
172
+ status: "done"
173
+ }
174
+ }]
175
+ }
176
+ });
177
+
178
+ //#endregion
179
+ export { CreateTaskContract, ListTasksInputModel, ListTasksOperation, ListTasksOutputModel, UpdateTaskStatusContract };
180
+ //# sourceMappingURL=task.operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.operations.js","names":[],"sources":["../../src/task/task.operations.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@contractspec/lib.contracts';\nimport { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';\nimport {\n CreateTaskInputModel,\n TaskModel,\n UpdateTaskStatusInputModel,\n} from './task.schema';\n\nconst OWNERS = ['@examples.team-hub'] as const;\n\n// ============ List Tasks Query ============\n\nexport const ListTasksInputModel = defineSchemaModel({\n name: 'ListTasksInput',\n description: 'Input for listing tasks',\n fields: {\n spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n assigneeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n offset: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n});\n\nexport const ListTasksOutputModel = defineSchemaModel({\n name: 'ListTasksOutput',\n description: 'Output for listing tasks',\n fields: {\n tasks: { type: TaskModel, isOptional: false, isList: true },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n },\n});\n\nexport const ListTasksOperation = defineQuery({\n meta: {\n key: 'team.task.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['team-hub', 'task', 'list', 'query'],\n description: 'List all tasks with filtering',\n goal: 'Retrieve list of tasks',\n context: 'Task management',\n },\n io: {\n input: ListTasksInputModel,\n output: ListTasksOutputModel,\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'list-tasks-happy-path',\n given: ['Tasks exist'],\n when: ['User lists tasks'],\n then: ['List of tasks is returned'],\n },\n ],\n examples: [\n {\n key: 'list-my-tasks',\n input: { assigneeId: 'user-123', status: 'open', limit: 10 },\n output: { tasks: [], total: 3 },\n },\n ],\n },\n});\n\n// ============ Task Commands ============\n\n/**\n * Create a task.\n */\nexport const CreateTaskContract = defineCommand({\n meta: {\n key: 'team.task.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['team-hub', 'task', 'create'],\n description: 'Create a task.',\n goal: 'Track work.',\n context: 'Task management.',\n },\n io: {\n input: CreateTaskInputModel,\n output: TaskModel,\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'create-task-happy-path',\n given: ['Space exists'],\n when: ['User creates task'],\n then: ['Task is created'],\n },\n ],\n examples: [\n {\n key: 'create-bug',\n input: { spaceId: 'space-123', title: 'Fix login bug', type: 'bug' },\n output: { id: 'task-456', status: 'todo' },\n },\n ],\n },\n});\n\n/**\n * Update task status.\n */\nexport const UpdateTaskStatusContract = defineCommand({\n meta: {\n key: 'team.task.updateStatus',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['team-hub', 'task', 'status'],\n description: 'Update task status.',\n goal: 'Track progress.',\n context: 'Task management.',\n },\n io: {\n input: UpdateTaskStatusInputModel,\n output: TaskModel,\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'update-status-happy-path',\n given: ['Task exists'],\n when: ['User updates status'],\n then: ['Status is updated'],\n },\n ],\n examples: [\n {\n key: 'markup-done',\n input: { taskId: 'task-456', status: 'done' },\n output: { id: 'task-456', status: 'done' },\n },\n ],\n },\n});\n"],"mappings":";;;;;AAQA,MAAM,SAAS,CAAC,qBAAqB;AAIrC,MAAa,sBAAsB,kBAAkB;CACnD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACpE,YAAY;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACxE,OAAO;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EAChE,QAAQ;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EAClE;CACF,CAAC;AAEF,MAAa,uBAAuB,kBAAkB;CACpD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,OAAO;GAAE,MAAM;GAAW,YAAY;GAAO,QAAQ;GAAM;EAC3D,OAAO;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAa,qBAAqB,YAAY;CAC5C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAY;GAAQ;GAAQ;GAAQ;EAC3C,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,cAAc;GACtB,MAAM,CAAC,mBAAmB;GAC1B,MAAM,CAAC,4BAA4B;GACpC,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IAAE,YAAY;IAAY,QAAQ;IAAQ,OAAO;IAAI;GAC5D,QAAQ;IAAE,OAAO,EAAE;IAAE,OAAO;IAAG;GAChC,CACF;EACF;CACF,CAAC;;;;AAOF,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAY;GAAQ;GAAS;EACpC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,eAAe;GACvB,MAAM,CAAC,oBAAoB;GAC3B,MAAM,CAAC,kBAAkB;GAC1B,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IAAE,SAAS;IAAa,OAAO;IAAiB,MAAM;IAAO;GACpE,QAAQ;IAAE,IAAI;IAAY,QAAQ;IAAQ;GAC3C,CACF;EACF;CACF,CAAC;;;;AAKF,MAAa,2BAA2B,cAAc;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAY;GAAQ;GAAS;EACpC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,cAAc;GACtB,MAAM,CAAC,sBAAsB;GAC7B,MAAM,CAAC,oBAAoB;GAC5B,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IAAE,QAAQ;IAAY,QAAQ;IAAQ;GAC7C,QAAQ;IAAE,IAAI;IAAY,QAAQ;IAAQ;GAC3C,CACF;EACF;CACF,CAAC"}
@@ -0,0 +1,81 @@
1
+ import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
+
3
+ //#region src/task/task.schema.d.ts
4
+ /**
5
+ * Task in a space.
6
+ */
7
+ declare const TaskModel: _contractspec_lib_schema0.SchemaModel<{
8
+ id: {
9
+ type: _contractspec_lib_schema0.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ spaceId: {
13
+ type: _contractspec_lib_schema0.FieldType<string, string>;
14
+ isOptional: false;
15
+ };
16
+ title: {
17
+ type: _contractspec_lib_schema0.FieldType<string, string>;
18
+ isOptional: false;
19
+ };
20
+ status: {
21
+ type: _contractspec_lib_schema0.FieldType<string, string>;
22
+ isOptional: false;
23
+ };
24
+ priority: {
25
+ type: _contractspec_lib_schema0.FieldType<string, string>;
26
+ isOptional: false;
27
+ };
28
+ assigneeId: {
29
+ type: _contractspec_lib_schema0.FieldType<string, string>;
30
+ isOptional: true;
31
+ };
32
+ dueDate: {
33
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
34
+ isOptional: true;
35
+ };
36
+ }>;
37
+ /**
38
+ * Input for creating a task.
39
+ */
40
+ declare const CreateTaskInputModel: _contractspec_lib_schema0.SchemaModel<{
41
+ spaceId: {
42
+ type: _contractspec_lib_schema0.FieldType<string, string>;
43
+ isOptional: false;
44
+ };
45
+ title: {
46
+ type: _contractspec_lib_schema0.FieldType<string, string>;
47
+ isOptional: false;
48
+ };
49
+ description: {
50
+ type: _contractspec_lib_schema0.FieldType<string, string>;
51
+ isOptional: true;
52
+ };
53
+ priority: {
54
+ type: _contractspec_lib_schema0.FieldType<string, string>;
55
+ isOptional: true;
56
+ };
57
+ assigneeId: {
58
+ type: _contractspec_lib_schema0.FieldType<string, string>;
59
+ isOptional: true;
60
+ };
61
+ dueDate: {
62
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
63
+ isOptional: true;
64
+ };
65
+ }>;
66
+ /**
67
+ * Input for updating task status.
68
+ */
69
+ declare const UpdateTaskStatusInputModel: _contractspec_lib_schema0.SchemaModel<{
70
+ taskId: {
71
+ type: _contractspec_lib_schema0.FieldType<string, string>;
72
+ isOptional: false;
73
+ };
74
+ status: {
75
+ type: _contractspec_lib_schema0.FieldType<string, string>;
76
+ isOptional: false;
77
+ };
78
+ }>;
79
+ //#endregion
80
+ export { CreateTaskInputModel, TaskModel, UpdateTaskStatusInputModel };
81
+ //# sourceMappingURL=task.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.schema.d.ts","names":[],"sources":["../../src/task/task.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,SAYX,4BAZoB,WAYpB,CAAA;EAAA,EAAA,EAAA;UAAA,yBAAA,CAAA;;;;;;;;IAZoB,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAiBT,UAAA,EAAA,KAAA;EAWX,CAAA;;;;;;;;EAX+B,CAAA;EAgBpB,UAAA,EAAA;IAOX,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;EAPqC,OAAA,EAAA;;;;;;;;cAhB1B,gDAAoB;;UAW/B,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,sDAA0B;;UAOrC,yBAAA,CAAA"}
@@ -0,0 +1,94 @@
1
+ import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
2
+
3
+ //#region src/task/task.schema.ts
4
+ /**
5
+ * Task in a space.
6
+ */
7
+ const TaskModel = defineSchemaModel({
8
+ name: "Task",
9
+ description: "Task in a space",
10
+ fields: {
11
+ id: {
12
+ type: ScalarTypeEnum.String_unsecure(),
13
+ isOptional: false
14
+ },
15
+ spaceId: {
16
+ type: ScalarTypeEnum.String_unsecure(),
17
+ isOptional: false
18
+ },
19
+ title: {
20
+ type: ScalarTypeEnum.String_unsecure(),
21
+ isOptional: false
22
+ },
23
+ status: {
24
+ type: ScalarTypeEnum.String_unsecure(),
25
+ isOptional: false
26
+ },
27
+ priority: {
28
+ type: ScalarTypeEnum.String_unsecure(),
29
+ isOptional: false
30
+ },
31
+ assigneeId: {
32
+ type: ScalarTypeEnum.String_unsecure(),
33
+ isOptional: true
34
+ },
35
+ dueDate: {
36
+ type: ScalarTypeEnum.DateTime(),
37
+ isOptional: true
38
+ }
39
+ }
40
+ });
41
+ /**
42
+ * Input for creating a task.
43
+ */
44
+ const CreateTaskInputModel = defineSchemaModel({
45
+ name: "CreateTaskInput",
46
+ description: "Input for creating a task",
47
+ fields: {
48
+ spaceId: {
49
+ type: ScalarTypeEnum.String_unsecure(),
50
+ isOptional: false
51
+ },
52
+ title: {
53
+ type: ScalarTypeEnum.String_unsecure(),
54
+ isOptional: false
55
+ },
56
+ description: {
57
+ type: ScalarTypeEnum.String_unsecure(),
58
+ isOptional: true
59
+ },
60
+ priority: {
61
+ type: ScalarTypeEnum.String_unsecure(),
62
+ isOptional: true
63
+ },
64
+ assigneeId: {
65
+ type: ScalarTypeEnum.String_unsecure(),
66
+ isOptional: true
67
+ },
68
+ dueDate: {
69
+ type: ScalarTypeEnum.DateTime(),
70
+ isOptional: true
71
+ }
72
+ }
73
+ });
74
+ /**
75
+ * Input for updating task status.
76
+ */
77
+ const UpdateTaskStatusInputModel = defineSchemaModel({
78
+ name: "UpdateTaskStatusInput",
79
+ description: "Update task status",
80
+ fields: {
81
+ taskId: {
82
+ type: ScalarTypeEnum.String_unsecure(),
83
+ isOptional: false
84
+ },
85
+ status: {
86
+ type: ScalarTypeEnum.String_unsecure(),
87
+ isOptional: false
88
+ }
89
+ }
90
+ });
91
+
92
+ //#endregion
93
+ export { CreateTaskInputModel, TaskModel, UpdateTaskStatusInputModel };
94
+ //# sourceMappingURL=task.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.schema.js","names":[],"sources":["../../src/task/task.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';\n\n/**\n * Task in a space.\n */\nexport const TaskModel = defineSchemaModel({\n name: 'Task',\n description: 'Task in a space',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n priority: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n assigneeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n dueDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n },\n});\n\n/**\n * Input for creating a task.\n */\nexport const CreateTaskInputModel = defineSchemaModel({\n name: 'CreateTaskInput',\n description: 'Input for creating a task',\n fields: {\n spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n priority: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n assigneeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n dueDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n },\n});\n\n/**\n * Input for updating task status.\n */\nexport const UpdateTaskStatusInputModel = defineSchemaModel({\n name: 'UpdateTaskStatusInput',\n description: 'Update task status',\n fields: {\n taskId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n"],"mappings":";;;;;;AAKA,MAAa,YAAY,kBAAkB;CACzC,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,UAAU;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,YAAY;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACxE,SAAS;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAM;EAC/D;CACF,CAAC;;;;AAKF,MAAa,uBAAuB,kBAAkB;CACpD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,UAAU;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACtE,YAAY;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACxE,SAAS;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAM;EAC/D;CACF,CAAC;;;;AAKF,MAAa,6BAA6B,kBAAkB;CAC1D,MAAM;CACN,aAAa;CACb,QAAQ;EACN,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE;CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FeatureModuleSpec } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/team-hub.feature.d.ts
4
+ declare const TeamHubFeature: FeatureModuleSpec;
5
+ //#endregion
6
+ export { TeamHubFeature };
7
+ //# sourceMappingURL=team-hub.feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team-hub.feature.d.ts","names":[],"sources":["../src/team-hub.feature.ts"],"sourcesContent":[],"mappings":";;;cAEa,gBAAgB"}