@contractspec/example.team-hub 1.57.0 → 1.59.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/dist/announcement/announcement.operations.d.ts +50 -56
- package/dist/announcement/announcement.operations.d.ts.map +1 -1
- package/dist/announcement/announcement.operations.js +70 -51
- package/dist/announcement/announcement.schema.d.ts +50 -55
- package/dist/announcement/announcement.schema.d.ts.map +1 -1
- package/dist/announcement/announcement.schema.js +29 -71
- package/dist/announcement/index.d.ts +6 -3
- package/dist/announcement/index.d.ts.map +1 -0
- package/dist/announcement/index.js +73 -3
- package/dist/browser/announcement/announcement.operations.js +71 -0
- package/dist/browser/announcement/announcement.schema.js +30 -0
- package/dist/browser/announcement/index.js +73 -0
- package/dist/browser/docs/index.js +94 -0
- package/dist/browser/docs/team-hub.docblock.js +94 -0
- package/dist/browser/entities/index.js +231 -0
- package/dist/browser/events.js +134 -0
- package/dist/browser/example.js +42 -0
- package/dist/browser/handlers/index.js +5 -0
- package/dist/browser/index.js +642 -0
- package/dist/browser/presentations/index.js +131 -0
- package/dist/browser/presentations/team-hub.presentation.js +131 -0
- package/dist/browser/presentations.js +148 -0
- package/dist/browser/ritual/index.js +124 -0
- package/dist/browser/ritual/ritual.operations.js +121 -0
- package/dist/browser/ritual/ritual.schema.js +41 -0
- package/dist/browser/space/index.js +66 -0
- package/dist/browser/space/space.operations.js +64 -0
- package/dist/browser/space/space.schema.js +27 -0
- package/dist/browser/task/index.js +171 -0
- package/dist/browser/task/task.operations.js +168 -0
- package/dist/browser/task/task.schema.js +40 -0
- package/dist/browser/team-hub.capability.js +40 -0
- package/dist/browser/team-hub.feature.js +69 -0
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +95 -1
- package/dist/docs/team-hub.docblock.d.ts +2 -1
- package/dist/docs/team-hub.docblock.d.ts.map +1 -0
- package/dist/docs/team-hub.docblock.js +45 -56
- package/dist/entities/index.d.ts +138 -143
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +221 -252
- package/dist/events.d.ts +217 -223
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +122 -201
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +41 -55
- package/dist/handlers/index.d.ts +1 -4
- package/dist/handlers/index.d.ts.map +1 -1
- package/dist/handlers/index.js +5 -8
- package/dist/index.d.ts +12 -15
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +642 -15
- package/dist/node/announcement/announcement.operations.js +71 -0
- package/dist/node/announcement/announcement.schema.js +30 -0
- package/dist/node/announcement/index.js +73 -0
- package/dist/node/docs/index.js +94 -0
- package/dist/node/docs/team-hub.docblock.js +94 -0
- package/dist/node/entities/index.js +231 -0
- package/dist/node/events.js +134 -0
- package/dist/node/example.js +42 -0
- package/dist/node/handlers/index.js +5 -0
- package/dist/node/index.js +642 -0
- package/dist/node/presentations/index.js +131 -0
- package/dist/node/presentations/team-hub.presentation.js +131 -0
- package/dist/node/presentations.js +148 -0
- package/dist/node/ritual/index.js +124 -0
- package/dist/node/ritual/ritual.operations.js +121 -0
- package/dist/node/ritual/ritual.schema.js +41 -0
- package/dist/node/space/index.js +66 -0
- package/dist/node/space/space.operations.js +64 -0
- package/dist/node/space/space.schema.js +27 -0
- package/dist/node/task/index.js +171 -0
- package/dist/node/task/task.operations.js +168 -0
- package/dist/node/task/task.schema.js +40 -0
- package/dist/node/team-hub.capability.js +40 -0
- package/dist/node/team-hub.feature.js +69 -0
- package/dist/presentations/index.d.ts +2 -2
- package/dist/presentations/index.d.ts.map +1 -0
- package/dist/presentations/index.js +132 -3
- package/dist/presentations/team-hub.presentation.d.ts +6 -11
- package/dist/presentations/team-hub.presentation.d.ts.map +1 -1
- package/dist/presentations/team-hub.presentation.js +126 -125
- package/dist/presentations.d.ts +7 -11
- package/dist/presentations.d.ts.map +1 -1
- package/dist/presentations.js +142 -147
- package/dist/ritual/index.d.ts +6 -3
- package/dist/ritual/index.d.ts.map +1 -0
- package/dist/ritual/index.js +124 -3
- package/dist/ritual/ritual.operations.d.ts +92 -98
- package/dist/ritual/ritual.operations.d.ts.map +1 -1
- package/dist/ritual/ritual.operations.js +119 -95
- package/dist/ritual/ritual.schema.d.ts +67 -72
- package/dist/ritual/ritual.schema.d.ts.map +1 -1
- package/dist/ritual/ritual.schema.js +39 -95
- package/dist/space/index.d.ts +6 -3
- package/dist/space/index.d.ts.map +1 -0
- package/dist/space/index.js +66 -3
- package/dist/space/space.operations.d.ts +38 -44
- package/dist/space/space.operations.d.ts.map +1 -1
- package/dist/space/space.operations.js +63 -50
- package/dist/space/space.schema.d.ts +38 -43
- package/dist/space/space.schema.d.ts.map +1 -1
- package/dist/space/space.schema.js +26 -59
- package/dist/task/index.d.ts +6 -3
- package/dist/task/index.d.ts.map +1 -0
- package/dist/task/index.js +171 -3
- package/dist/task/task.operations.d.ts +212 -218
- package/dist/task/task.operations.d.ts.map +1 -1
- package/dist/task/task.operations.js +163 -174
- package/dist/task/task.schema.d.ts +63 -68
- package/dist/task/task.schema.d.ts.map +1 -1
- package/dist/task/task.schema.js +38 -91
- package/dist/team-hub.capability.d.ts +3 -8
- package/dist/team-hub.capability.d.ts.map +1 -1
- package/dist/team-hub.capability.js +41 -38
- package/dist/team-hub.feature.d.ts +1 -6
- package/dist/team-hub.feature.d.ts.map +1 -1
- package/dist/team-hub.feature.js +68 -159
- package/package.json +261 -57
- package/dist/announcement/announcement.operations.js.map +0 -1
- package/dist/announcement/announcement.schema.js.map +0 -1
- package/dist/docs/team-hub.docblock.js.map +0 -1
- package/dist/entities/index.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/index.js.map +0 -1
- package/dist/presentations/team-hub.presentation.js.map +0 -1
- package/dist/presentations.js.map +0 -1
- package/dist/ritual/ritual.operations.js.map +0 -1
- package/dist/ritual/ritual.schema.js.map +0 -1
- package/dist/space/space.operations.js.map +0 -1
- package/dist/space/space.schema.js.map +0 -1
- package/dist/task/task.operations.js.map +0 -1
- package/dist/task/task.schema.js.map +0 -1
- package/dist/team-hub.capability.js.map +0 -1
- package/dist/team-hub.feature.js.map +0 -1
|
@@ -1,180 +1,169 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
// @bun
|
|
2
|
+
// src/task/task.schema.ts
|
|
3
|
+
import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
4
|
+
var TaskModel = defineSchemaModel({
|
|
5
|
+
name: "Task",
|
|
6
|
+
description: "Task in a space",
|
|
7
|
+
fields: {
|
|
8
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
9
|
+
spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
10
|
+
title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
11
|
+
status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
12
|
+
priority: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
13
|
+
assigneeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
14
|
+
dueDate: { type: ScalarTypeEnum.DateTime(), isOptional: true }
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
var CreateTaskInputModel = defineSchemaModel({
|
|
18
|
+
name: "CreateTaskInput",
|
|
19
|
+
description: "Input for creating a task",
|
|
20
|
+
fields: {
|
|
21
|
+
spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
22
|
+
title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
23
|
+
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
24
|
+
priority: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
25
|
+
assigneeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
26
|
+
dueDate: { type: ScalarTypeEnum.DateTime(), isOptional: true }
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
var UpdateTaskStatusInputModel = defineSchemaModel({
|
|
30
|
+
name: "UpdateTaskStatusInput",
|
|
31
|
+
description: "Update task status",
|
|
32
|
+
fields: {
|
|
33
|
+
taskId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
34
|
+
status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
35
|
+
}
|
|
36
|
+
});
|
|
4
37
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
}
|
|
38
|
+
// src/task/task.operations.ts
|
|
39
|
+
import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
|
|
40
|
+
import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
|
|
41
|
+
var OWNERS = ["@examples.team-hub"];
|
|
42
|
+
var ListTasksInputModel = defineSchemaModel2({
|
|
43
|
+
name: "ListTasksInput",
|
|
44
|
+
description: "Input for listing tasks",
|
|
45
|
+
fields: {
|
|
46
|
+
spaceId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
47
|
+
status: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
48
|
+
assigneeId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
49
|
+
limit: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
|
|
50
|
+
offset: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true }
|
|
51
|
+
}
|
|
32
52
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
isList: true
|
|
41
|
-
},
|
|
42
|
-
total: {
|
|
43
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
44
|
-
isOptional: false
|
|
45
|
-
}
|
|
46
|
-
}
|
|
53
|
+
var ListTasksOutputModel = defineSchemaModel2({
|
|
54
|
+
name: "ListTasksOutput",
|
|
55
|
+
description: "Output for listing tasks",
|
|
56
|
+
fields: {
|
|
57
|
+
tasks: { type: TaskModel, isOptional: false, isList: true },
|
|
58
|
+
total: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false }
|
|
59
|
+
}
|
|
47
60
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
limit: 10
|
|
82
|
-
},
|
|
83
|
-
output: {
|
|
84
|
-
tasks: [],
|
|
85
|
-
total: 3
|
|
86
|
-
}
|
|
87
|
-
}]
|
|
88
|
-
}
|
|
61
|
+
var ListTasksOperation = defineQuery({
|
|
62
|
+
meta: {
|
|
63
|
+
key: "team.task.list",
|
|
64
|
+
version: "1.0.0",
|
|
65
|
+
stability: "stable",
|
|
66
|
+
owners: [...OWNERS],
|
|
67
|
+
tags: ["team-hub", "task", "list", "query"],
|
|
68
|
+
description: "List all tasks with filtering",
|
|
69
|
+
goal: "Retrieve list of tasks",
|
|
70
|
+
context: "Task management"
|
|
71
|
+
},
|
|
72
|
+
io: {
|
|
73
|
+
input: ListTasksInputModel,
|
|
74
|
+
output: ListTasksOutputModel
|
|
75
|
+
},
|
|
76
|
+
policy: { auth: "user" },
|
|
77
|
+
acceptance: {
|
|
78
|
+
scenarios: [
|
|
79
|
+
{
|
|
80
|
+
key: "list-tasks-happy-path",
|
|
81
|
+
given: ["Tasks exist"],
|
|
82
|
+
when: ["User lists tasks"],
|
|
83
|
+
then: ["List of tasks is returned"]
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
examples: [
|
|
87
|
+
{
|
|
88
|
+
key: "list-my-tasks",
|
|
89
|
+
input: { assigneeId: "user-123", status: "open", limit: 10 },
|
|
90
|
+
output: { tasks: [], total: 3 }
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
89
94
|
});
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
}
|
|
95
|
+
var CreateTaskContract = defineCommand({
|
|
96
|
+
meta: {
|
|
97
|
+
key: "team.task.create",
|
|
98
|
+
version: "1.0.0",
|
|
99
|
+
stability: "stable",
|
|
100
|
+
owners: [...OWNERS],
|
|
101
|
+
tags: ["team-hub", "task", "create"],
|
|
102
|
+
description: "Create a task.",
|
|
103
|
+
goal: "Track work.",
|
|
104
|
+
context: "Task management."
|
|
105
|
+
},
|
|
106
|
+
io: {
|
|
107
|
+
input: CreateTaskInputModel,
|
|
108
|
+
output: TaskModel
|
|
109
|
+
},
|
|
110
|
+
policy: { auth: "user" },
|
|
111
|
+
acceptance: {
|
|
112
|
+
scenarios: [
|
|
113
|
+
{
|
|
114
|
+
key: "create-task-happy-path",
|
|
115
|
+
given: ["Space exists"],
|
|
116
|
+
when: ["User creates task"],
|
|
117
|
+
then: ["Task is created"]
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
examples: [
|
|
121
|
+
{
|
|
122
|
+
key: "create-bug",
|
|
123
|
+
input: { spaceId: "space-123", title: "Fix login bug", type: "bug" },
|
|
124
|
+
output: { id: "task-456", status: "todo" }
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
133
128
|
});
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
taskId: "task-456",
|
|
168
|
-
status: "done"
|
|
169
|
-
},
|
|
170
|
-
output: {
|
|
171
|
-
id: "task-456",
|
|
172
|
-
status: "done"
|
|
173
|
-
}
|
|
174
|
-
}]
|
|
175
|
-
}
|
|
129
|
+
var UpdateTaskStatusContract = defineCommand({
|
|
130
|
+
meta: {
|
|
131
|
+
key: "team.task.updateStatus",
|
|
132
|
+
version: "1.0.0",
|
|
133
|
+
stability: "stable",
|
|
134
|
+
owners: [...OWNERS],
|
|
135
|
+
tags: ["team-hub", "task", "status"],
|
|
136
|
+
description: "Update task status.",
|
|
137
|
+
goal: "Track progress.",
|
|
138
|
+
context: "Task management."
|
|
139
|
+
},
|
|
140
|
+
io: {
|
|
141
|
+
input: UpdateTaskStatusInputModel,
|
|
142
|
+
output: TaskModel
|
|
143
|
+
},
|
|
144
|
+
policy: { auth: "user" },
|
|
145
|
+
acceptance: {
|
|
146
|
+
scenarios: [
|
|
147
|
+
{
|
|
148
|
+
key: "update-status-happy-path",
|
|
149
|
+
given: ["Task exists"],
|
|
150
|
+
when: ["User updates status"],
|
|
151
|
+
then: ["Status is updated"]
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
examples: [
|
|
155
|
+
{
|
|
156
|
+
key: "markup-done",
|
|
157
|
+
input: { taskId: "task-456", status: "done" },
|
|
158
|
+
output: { id: "task-456", status: "done" }
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
176
162
|
});
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
163
|
+
export {
|
|
164
|
+
UpdateTaskStatusContract,
|
|
165
|
+
ListTasksOutputModel,
|
|
166
|
+
ListTasksOperation,
|
|
167
|
+
ListTasksInputModel,
|
|
168
|
+
CreateTaskContract
|
|
169
|
+
};
|
|
@@ -1,81 +1,76 @@
|
|
|
1
|
-
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
2
|
-
|
|
3
|
-
//#region src/task/task.schema.d.ts
|
|
4
1
|
/**
|
|
5
2
|
* Task in a space.
|
|
6
3
|
*/
|
|
7
|
-
declare const TaskModel:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
4
|
+
export declare const TaskModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
5
|
+
id: {
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
8
|
+
};
|
|
9
|
+
spaceId: {
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
title: {
|
|
14
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
status: {
|
|
18
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
19
|
+
isOptional: false;
|
|
20
|
+
};
|
|
21
|
+
priority: {
|
|
22
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
assigneeId: {
|
|
26
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
27
|
+
isOptional: true;
|
|
28
|
+
};
|
|
29
|
+
dueDate: {
|
|
30
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
31
|
+
isOptional: true;
|
|
32
|
+
};
|
|
36
33
|
}>;
|
|
37
34
|
/**
|
|
38
35
|
* Input for creating a task.
|
|
39
36
|
*/
|
|
40
|
-
declare const CreateTaskInputModel:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
37
|
+
export declare const CreateTaskInputModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
38
|
+
spaceId: {
|
|
39
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
40
|
+
isOptional: false;
|
|
41
|
+
};
|
|
42
|
+
title: {
|
|
43
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
45
|
+
};
|
|
46
|
+
description: {
|
|
47
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
48
|
+
isOptional: true;
|
|
49
|
+
};
|
|
50
|
+
priority: {
|
|
51
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
52
|
+
isOptional: true;
|
|
53
|
+
};
|
|
54
|
+
assigneeId: {
|
|
55
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
56
|
+
isOptional: true;
|
|
57
|
+
};
|
|
58
|
+
dueDate: {
|
|
59
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
60
|
+
isOptional: true;
|
|
61
|
+
};
|
|
65
62
|
}>;
|
|
66
63
|
/**
|
|
67
64
|
* Input for updating task status.
|
|
68
65
|
*/
|
|
69
|
-
declare const UpdateTaskStatusInputModel:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
66
|
+
export declare const UpdateTaskStatusInputModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
67
|
+
taskId: {
|
|
68
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
69
|
+
isOptional: false;
|
|
70
|
+
};
|
|
71
|
+
status: {
|
|
72
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
73
|
+
isOptional: false;
|
|
74
|
+
};
|
|
78
75
|
}>;
|
|
79
|
-
//#endregion
|
|
80
|
-
export { CreateTaskInputModel, TaskModel, UpdateTaskStatusInputModel };
|
|
81
76
|
//# sourceMappingURL=task.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.schema.d.ts","
|
|
1
|
+
{"version":3,"file":"task.schema.d.ts","sourceRoot":"","sources":["../../src/task/task.schema.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;EAOrC,CAAC"}
|
package/dist/task/task.schema.js
CHANGED
|
@@ -1,94 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
}
|
|
1
|
+
// @bun
|
|
2
|
+
// src/task/task.schema.ts
|
|
3
|
+
import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
4
|
+
var TaskModel = defineSchemaModel({
|
|
5
|
+
name: "Task",
|
|
6
|
+
description: "Task in a space",
|
|
7
|
+
fields: {
|
|
8
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
9
|
+
spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
10
|
+
title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
11
|
+
status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
12
|
+
priority: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
13
|
+
assigneeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
14
|
+
dueDate: { type: ScalarTypeEnum.DateTime(), isOptional: true }
|
|
15
|
+
}
|
|
40
16
|
});
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
}
|
|
17
|
+
var CreateTaskInputModel = defineSchemaModel({
|
|
18
|
+
name: "CreateTaskInput",
|
|
19
|
+
description: "Input for creating a task",
|
|
20
|
+
fields: {
|
|
21
|
+
spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
22
|
+
title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
23
|
+
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
24
|
+
priority: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
25
|
+
assigneeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
26
|
+
dueDate: { type: ScalarTypeEnum.DateTime(), isOptional: true }
|
|
27
|
+
}
|
|
73
28
|
});
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
taskId: {
|
|
82
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
83
|
-
isOptional: false
|
|
84
|
-
},
|
|
85
|
-
status: {
|
|
86
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
87
|
-
isOptional: false
|
|
88
|
-
}
|
|
89
|
-
}
|
|
29
|
+
var UpdateTaskStatusInputModel = defineSchemaModel({
|
|
30
|
+
name: "UpdateTaskStatusInput",
|
|
31
|
+
description: "Update task status",
|
|
32
|
+
fields: {
|
|
33
|
+
taskId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
34
|
+
status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
35
|
+
}
|
|
90
36
|
});
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
37
|
+
export {
|
|
38
|
+
UpdateTaskStatusInputModel,
|
|
39
|
+
TaskModel,
|
|
40
|
+
CreateTaskInputModel
|
|
41
|
+
};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const TasksCapability: _contractspec_lib_contracts0.CapabilitySpec;
|
|
5
|
-
declare const RitualsCapability: _contractspec_lib_contracts0.CapabilitySpec;
|
|
6
|
-
declare const AnnouncementsCapability: _contractspec_lib_contracts0.CapabilitySpec;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { AnnouncementsCapability, RitualsCapability, TasksCapability };
|
|
1
|
+
export declare const TasksCapability: import("@contractspec/lib.contracts").CapabilitySpec;
|
|
2
|
+
export declare const RitualsCapability: import("@contractspec/lib.contracts").CapabilitySpec;
|
|
3
|
+
export declare const AnnouncementsCapability: import("@contractspec/lib.contracts").CapabilitySpec;
|
|
9
4
|
//# sourceMappingURL=team-hub.capability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-hub.capability.d.ts","
|
|
1
|
+
{"version":3,"file":"team-hub.capability.d.ts","sourceRoot":"","sources":["../src/team-hub.capability.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,sDAU1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,sDAU5B,CAAC;AAEH,eAAO,MAAM,uBAAuB,sDAUlC,CAAC"}
|