@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.
- package/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/announcement/announcement.operations.d.ts +61 -0
- package/dist/announcement/announcement.operations.d.ts.map +1 -0
- package/dist/announcement/announcement.operations.js +53 -0
- package/dist/announcement/announcement.operations.js.map +1 -0
- package/dist/announcement/announcement.schema.d.ts +64 -0
- package/dist/announcement/announcement.schema.d.ts.map +1 -0
- package/dist/announcement/announcement.schema.js +73 -0
- package/dist/announcement/announcement.schema.js.map +1 -0
- package/dist/announcement/index.d.ts +3 -0
- package/dist/announcement/index.js +4 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -0
- package/dist/docs/team-hub.docblock.d.ts +1 -0
- package/dist/docs/team-hub.docblock.js +106 -0
- package/dist/docs/team-hub.docblock.js.map +1 -0
- package/dist/entities/index.d.ts +150 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +263 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/events.d.ts +289 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +214 -0
- package/dist/events.js.map +1 -0
- package/dist/example.d.ts +40 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +51 -0
- package/dist/example.js.map +1 -0
- package/dist/handlers/index.d.ts +8 -0
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +9 -0
- package/dist/handlers/index.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +16 -0
- package/dist/presentations/index.d.ts +5 -0
- package/dist/presentations/index.d.ts.map +1 -0
- package/dist/presentations/index.js +13 -0
- package/dist/presentations/index.js.map +1 -0
- package/dist/presentations.d.ts +12 -0
- package/dist/presentations.d.ts.map +1 -0
- package/dist/presentations.js +154 -0
- package/dist/presentations.js.map +1 -0
- package/dist/ritual/index.d.ts +3 -0
- package/dist/ritual/index.js +4 -0
- package/dist/ritual/ritual.operations.d.ts +107 -0
- package/dist/ritual/ritual.operations.d.ts.map +1 -0
- package/dist/ritual/ritual.operations.js +98 -0
- package/dist/ritual/ritual.operations.js.map +1 -0
- package/dist/ritual/ritual.schema.d.ts +85 -0
- package/dist/ritual/ritual.schema.d.ts.map +1 -0
- package/dist/ritual/ritual.schema.js +98 -0
- package/dist/ritual/ritual.schema.js.map +1 -0
- package/dist/space/index.d.ts +3 -0
- package/dist/space/index.js +4 -0
- package/dist/space/space.operations.d.ts +49 -0
- package/dist/space/space.operations.d.ts.map +1 -0
- package/dist/space/space.operations.js +52 -0
- package/dist/space/space.operations.js.map +1 -0
- package/dist/space/space.schema.d.ts +52 -0
- package/dist/space/space.schema.d.ts.map +1 -0
- package/dist/space/space.schema.js +61 -0
- package/dist/space/space.schema.js.map +1 -0
- package/dist/task/index.d.ts +3 -0
- package/dist/task/index.js +4 -0
- package/dist/task/task.operations.d.ts +230 -0
- package/dist/task/task.operations.d.ts.map +1 -0
- package/dist/task/task.operations.js +180 -0
- package/dist/task/task.operations.js.map +1 -0
- package/dist/task/task.schema.d.ts +81 -0
- package/dist/task/task.schema.d.ts.map +1 -0
- package/dist/task/task.schema.js +94 -0
- package/dist/task/task.schema.js.map +1 -0
- package/dist/team-hub.feature.d.ts +7 -0
- package/dist/team-hub.feature.d.ts.map +1 -0
- package/dist/team-hub.feature.js +159 -0
- package/dist/team-hub.feature.js.map +1 -0
- package/package.json +99 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { defineEntity, defineEntityEnum, field, index } from "@contractspec/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/index.ts
|
|
4
|
+
const schema = "lssm_team_hub";
|
|
5
|
+
const TaskStatusEnum = defineEntityEnum({
|
|
6
|
+
name: "TaskStatus",
|
|
7
|
+
schema,
|
|
8
|
+
values: [
|
|
9
|
+
"BACKLOG",
|
|
10
|
+
"IN_PROGRESS",
|
|
11
|
+
"BLOCKED",
|
|
12
|
+
"DONE"
|
|
13
|
+
],
|
|
14
|
+
description: "Task workflow status."
|
|
15
|
+
});
|
|
16
|
+
const TaskPriorityEnum = defineEntityEnum({
|
|
17
|
+
name: "TaskPriority",
|
|
18
|
+
schema,
|
|
19
|
+
values: [
|
|
20
|
+
"LOW",
|
|
21
|
+
"MEDIUM",
|
|
22
|
+
"HIGH",
|
|
23
|
+
"CRITICAL"
|
|
24
|
+
],
|
|
25
|
+
description: "Task priority levels."
|
|
26
|
+
});
|
|
27
|
+
const RitualCadenceEnum = defineEntityEnum({
|
|
28
|
+
name: "RitualCadence",
|
|
29
|
+
schema,
|
|
30
|
+
values: [
|
|
31
|
+
"DAILY",
|
|
32
|
+
"WEEKLY",
|
|
33
|
+
"BIWEEKLY",
|
|
34
|
+
"MONTHLY"
|
|
35
|
+
],
|
|
36
|
+
description: "Recurrence cadence for rituals."
|
|
37
|
+
});
|
|
38
|
+
const AnnouncementAudienceEnum = defineEntityEnum({
|
|
39
|
+
name: "AnnouncementAudience",
|
|
40
|
+
schema,
|
|
41
|
+
values: [
|
|
42
|
+
"ALL",
|
|
43
|
+
"SPACE",
|
|
44
|
+
"ROLE"
|
|
45
|
+
],
|
|
46
|
+
description: "Targeting scope for announcements."
|
|
47
|
+
});
|
|
48
|
+
const SpaceEntity = defineEntity({
|
|
49
|
+
name: "Space",
|
|
50
|
+
description: "Space/project container for a team.",
|
|
51
|
+
schema,
|
|
52
|
+
map: "space",
|
|
53
|
+
fields: {
|
|
54
|
+
id: field.id({ description: "Unique space identifier" }),
|
|
55
|
+
name: field.string({ description: "Space name" }),
|
|
56
|
+
description: field.string({
|
|
57
|
+
description: "Space description",
|
|
58
|
+
isOptional: true
|
|
59
|
+
}),
|
|
60
|
+
orgId: field.string({ description: "Organization ID" }),
|
|
61
|
+
ownerId: field.string({ description: "Space owner" }),
|
|
62
|
+
members: field.json({
|
|
63
|
+
description: "Member roles map",
|
|
64
|
+
isOptional: true
|
|
65
|
+
}),
|
|
66
|
+
createdAt: field.createdAt(),
|
|
67
|
+
updatedAt: field.updatedAt(),
|
|
68
|
+
tasks: field.hasMany("Task"),
|
|
69
|
+
rituals: field.hasMany("Ritual"),
|
|
70
|
+
announcements: field.hasMany("Announcement")
|
|
71
|
+
},
|
|
72
|
+
indexes: [
|
|
73
|
+
index.on(["orgId"]),
|
|
74
|
+
index.on(["ownerId"]),
|
|
75
|
+
index.on(["name"])
|
|
76
|
+
]
|
|
77
|
+
});
|
|
78
|
+
const TaskEntity = defineEntity({
|
|
79
|
+
name: "Task",
|
|
80
|
+
description: "Work item within a space.",
|
|
81
|
+
schema,
|
|
82
|
+
map: "task",
|
|
83
|
+
fields: {
|
|
84
|
+
id: field.id({ description: "Unique task identifier" }),
|
|
85
|
+
spaceId: field.foreignKey({ description: "Parent space" }),
|
|
86
|
+
title: field.string({ description: "Task title" }),
|
|
87
|
+
description: field.string({
|
|
88
|
+
description: "Task details",
|
|
89
|
+
isOptional: true
|
|
90
|
+
}),
|
|
91
|
+
status: field.enum("TaskStatus", {
|
|
92
|
+
description: "Task status",
|
|
93
|
+
default: "BACKLOG"
|
|
94
|
+
}),
|
|
95
|
+
priority: field.enum("TaskPriority", {
|
|
96
|
+
description: "Task priority",
|
|
97
|
+
default: "MEDIUM"
|
|
98
|
+
}),
|
|
99
|
+
assigneeId: field.string({
|
|
100
|
+
description: "User assigned",
|
|
101
|
+
isOptional: true
|
|
102
|
+
}),
|
|
103
|
+
dueDate: field.dateTime({
|
|
104
|
+
description: "Due date",
|
|
105
|
+
isOptional: true
|
|
106
|
+
}),
|
|
107
|
+
tags: field.json({
|
|
108
|
+
description: "Labels/tags",
|
|
109
|
+
isOptional: true
|
|
110
|
+
}),
|
|
111
|
+
orgId: field.string({ description: "Organization ID" }),
|
|
112
|
+
createdAt: field.createdAt(),
|
|
113
|
+
updatedAt: field.updatedAt(),
|
|
114
|
+
space: field.belongsTo("Space", ["spaceId"], ["id"], { onDelete: "Cascade" })
|
|
115
|
+
},
|
|
116
|
+
enums: [TaskStatusEnum, TaskPriorityEnum],
|
|
117
|
+
indexes: [
|
|
118
|
+
index.on(["spaceId"]),
|
|
119
|
+
index.on(["orgId", "status"]),
|
|
120
|
+
index.on(["assigneeId", "status"]),
|
|
121
|
+
index.on(["dueDate"])
|
|
122
|
+
]
|
|
123
|
+
});
|
|
124
|
+
const RitualEntity = defineEntity({
|
|
125
|
+
name: "Ritual",
|
|
126
|
+
description: "Recurring ceremony (standup, retro, planning).",
|
|
127
|
+
schema,
|
|
128
|
+
map: "ritual",
|
|
129
|
+
fields: {
|
|
130
|
+
id: field.id({ description: "Unique ritual identifier" }),
|
|
131
|
+
spaceId: field.foreignKey({ description: "Parent space" }),
|
|
132
|
+
title: field.string({ description: "Ritual title" }),
|
|
133
|
+
cadence: field.enum("RitualCadence", { description: "Ritual cadence" }),
|
|
134
|
+
dayOfWeek: field.string({
|
|
135
|
+
description: "Day of week",
|
|
136
|
+
isOptional: true
|
|
137
|
+
}),
|
|
138
|
+
time: field.string({
|
|
139
|
+
description: "Local time (HH:mm)",
|
|
140
|
+
isOptional: true
|
|
141
|
+
}),
|
|
142
|
+
facilitatorId: field.string({
|
|
143
|
+
description: "Facilitator user ID",
|
|
144
|
+
isOptional: true
|
|
145
|
+
}),
|
|
146
|
+
participants: field.json({
|
|
147
|
+
description: "Participant user IDs",
|
|
148
|
+
isOptional: true
|
|
149
|
+
}),
|
|
150
|
+
location: field.string({
|
|
151
|
+
description: "Location/URL",
|
|
152
|
+
isOptional: true
|
|
153
|
+
}),
|
|
154
|
+
agendaTemplate: field.string({
|
|
155
|
+
description: "Agenda template markdown",
|
|
156
|
+
isOptional: true
|
|
157
|
+
}),
|
|
158
|
+
orgId: field.string({ description: "Organization ID" }),
|
|
159
|
+
createdAt: field.createdAt(),
|
|
160
|
+
updatedAt: field.updatedAt(),
|
|
161
|
+
occurrences: field.hasMany("RitualOccurrence"),
|
|
162
|
+
space: field.belongsTo("Space", ["spaceId"], ["id"], { onDelete: "Cascade" })
|
|
163
|
+
},
|
|
164
|
+
enums: [RitualCadenceEnum],
|
|
165
|
+
indexes: [index.on(["spaceId"]), index.on(["orgId"])]
|
|
166
|
+
});
|
|
167
|
+
const RitualOccurrenceEntity = defineEntity({
|
|
168
|
+
name: "RitualOccurrence",
|
|
169
|
+
description: "Specific occurrence of a ritual.",
|
|
170
|
+
schema,
|
|
171
|
+
map: "ritual_occurrence",
|
|
172
|
+
fields: {
|
|
173
|
+
id: field.id({ description: "Unique occurrence identifier" }),
|
|
174
|
+
ritualId: field.foreignKey({ description: "Parent ritual" }),
|
|
175
|
+
scheduledFor: field.dateTime({ description: "Scheduled datetime" }),
|
|
176
|
+
status: field.string({
|
|
177
|
+
description: "Occurrence status",
|
|
178
|
+
default: "\"scheduled\""
|
|
179
|
+
}),
|
|
180
|
+
summary: field.string({
|
|
181
|
+
description: "Summary/notes",
|
|
182
|
+
isOptional: true
|
|
183
|
+
}),
|
|
184
|
+
attendance: field.json({
|
|
185
|
+
description: "Attendance list with responses",
|
|
186
|
+
isOptional: true
|
|
187
|
+
}),
|
|
188
|
+
recordingUrl: field.string({
|
|
189
|
+
description: "Recording link",
|
|
190
|
+
isOptional: true
|
|
191
|
+
}),
|
|
192
|
+
orgId: field.string({ description: "Organization ID" }),
|
|
193
|
+
createdAt: field.createdAt(),
|
|
194
|
+
updatedAt: field.updatedAt(),
|
|
195
|
+
ritual: field.belongsTo("Ritual", ["ritualId"], ["id"], { onDelete: "Cascade" })
|
|
196
|
+
},
|
|
197
|
+
indexes: [
|
|
198
|
+
index.on(["ritualId"]),
|
|
199
|
+
index.on(["scheduledFor"]),
|
|
200
|
+
index.on(["orgId"])
|
|
201
|
+
]
|
|
202
|
+
});
|
|
203
|
+
const AnnouncementEntity = defineEntity({
|
|
204
|
+
name: "Announcement",
|
|
205
|
+
description: "Announcement to a space or org.",
|
|
206
|
+
schema,
|
|
207
|
+
map: "announcement",
|
|
208
|
+
fields: {
|
|
209
|
+
id: field.id({ description: "Unique announcement identifier" }),
|
|
210
|
+
spaceId: field.string({
|
|
211
|
+
description: "Target space",
|
|
212
|
+
isOptional: true
|
|
213
|
+
}),
|
|
214
|
+
title: field.string({ description: "Announcement title" }),
|
|
215
|
+
body: field.string({ description: "Announcement body" }),
|
|
216
|
+
audience: field.enum("AnnouncementAudience", {
|
|
217
|
+
description: "Audience targeting",
|
|
218
|
+
default: "ALL"
|
|
219
|
+
}),
|
|
220
|
+
audienceRole: field.string({
|
|
221
|
+
description: "Role targeted when audience is ROLE",
|
|
222
|
+
isOptional: true
|
|
223
|
+
}),
|
|
224
|
+
pinnedUntil: field.dateTime({
|
|
225
|
+
description: "Pin expiration",
|
|
226
|
+
isOptional: true
|
|
227
|
+
}),
|
|
228
|
+
orgId: field.string({ description: "Organization ID" }),
|
|
229
|
+
createdBy: field.string({ description: "Creator user ID" }),
|
|
230
|
+
createdAt: field.createdAt(),
|
|
231
|
+
expiresAt: field.dateTime({
|
|
232
|
+
description: "Expiration time",
|
|
233
|
+
isOptional: true
|
|
234
|
+
})
|
|
235
|
+
},
|
|
236
|
+
enums: [AnnouncementAudienceEnum],
|
|
237
|
+
indexes: [
|
|
238
|
+
index.on(["orgId"]),
|
|
239
|
+
index.on(["spaceId"]),
|
|
240
|
+
index.on(["audience"])
|
|
241
|
+
]
|
|
242
|
+
});
|
|
243
|
+
const teamHubEntities = [
|
|
244
|
+
SpaceEntity,
|
|
245
|
+
TaskEntity,
|
|
246
|
+
RitualEntity,
|
|
247
|
+
RitualOccurrenceEntity,
|
|
248
|
+
AnnouncementEntity
|
|
249
|
+
];
|
|
250
|
+
const teamHubSchemaContribution = {
|
|
251
|
+
moduleId: "@contractspec/example.team-hub",
|
|
252
|
+
entities: teamHubEntities,
|
|
253
|
+
enums: [
|
|
254
|
+
TaskStatusEnum,
|
|
255
|
+
TaskPriorityEnum,
|
|
256
|
+
RitualCadenceEnum,
|
|
257
|
+
AnnouncementAudienceEnum
|
|
258
|
+
]
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
//#endregion
|
|
262
|
+
export { AnnouncementAudienceEnum, AnnouncementEntity, RitualCadenceEnum, RitualEntity, RitualOccurrenceEntity, SpaceEntity, TaskEntity, TaskPriorityEnum, TaskStatusEnum, teamHubEntities, teamHubSchemaContribution };
|
|
263
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["teamHubSchemaContribution: ModuleSchemaContribution"],"sources":["../../src/entities/index.ts"],"sourcesContent":["import {\n defineEntity,\n defineEntityEnum,\n field,\n index,\n} from '@contractspec/lib.schema';\nimport type { ModuleSchemaContribution } from '@contractspec/lib.schema';\n\nconst schema = 'lssm_team_hub';\n\nexport const TaskStatusEnum = defineEntityEnum({\n name: 'TaskStatus',\n schema,\n values: ['BACKLOG', 'IN_PROGRESS', 'BLOCKED', 'DONE'] as const,\n description: 'Task workflow status.',\n});\n\nexport const TaskPriorityEnum = defineEntityEnum({\n name: 'TaskPriority',\n schema,\n values: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL'] as const,\n description: 'Task priority levels.',\n});\n\nexport const RitualCadenceEnum = defineEntityEnum({\n name: 'RitualCadence',\n schema,\n values: ['DAILY', 'WEEKLY', 'BIWEEKLY', 'MONTHLY'] as const,\n description: 'Recurrence cadence for rituals.',\n});\n\nexport const AnnouncementAudienceEnum = defineEntityEnum({\n name: 'AnnouncementAudience',\n schema,\n values: ['ALL', 'SPACE', 'ROLE'] as const,\n description: 'Targeting scope for announcements.',\n});\n\nexport const SpaceEntity = defineEntity({\n name: 'Space',\n description: 'Space/project container for a team.',\n schema,\n map: 'space',\n fields: {\n id: field.id({ description: 'Unique space identifier' }),\n name: field.string({ description: 'Space name' }),\n description: field.string({\n description: 'Space description',\n isOptional: true,\n }),\n orgId: field.string({ description: 'Organization ID' }),\n ownerId: field.string({ description: 'Space owner' }),\n members: field.json({ description: 'Member roles map', isOptional: true }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n tasks: field.hasMany('Task'),\n rituals: field.hasMany('Ritual'),\n announcements: field.hasMany('Announcement'),\n },\n indexes: [index.on(['orgId']), index.on(['ownerId']), index.on(['name'])],\n});\n\nexport const TaskEntity = defineEntity({\n name: 'Task',\n description: 'Work item within a space.',\n schema,\n map: 'task',\n fields: {\n id: field.id({ description: 'Unique task identifier' }),\n spaceId: field.foreignKey({ description: 'Parent space' }),\n title: field.string({ description: 'Task title' }),\n description: field.string({\n description: 'Task details',\n isOptional: true,\n }),\n status: field.enum('TaskStatus', {\n description: 'Task status',\n default: 'BACKLOG',\n }),\n priority: field.enum('TaskPriority', {\n description: 'Task priority',\n default: 'MEDIUM',\n }),\n assigneeId: field.string({\n description: 'User assigned',\n isOptional: true,\n }),\n dueDate: field.dateTime({ description: 'Due date', isOptional: true }),\n tags: field.json({ description: 'Labels/tags', isOptional: true }),\n orgId: field.string({ description: 'Organization ID' }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n space: field.belongsTo('Space', ['spaceId'], ['id'], {\n onDelete: 'Cascade',\n }),\n },\n enums: [TaskStatusEnum, TaskPriorityEnum],\n indexes: [\n index.on(['spaceId']),\n index.on(['orgId', 'status']),\n index.on(['assigneeId', 'status']),\n index.on(['dueDate']),\n ],\n});\n\nexport const RitualEntity = defineEntity({\n name: 'Ritual',\n description: 'Recurring ceremony (standup, retro, planning).',\n schema,\n map: 'ritual',\n fields: {\n id: field.id({ description: 'Unique ritual identifier' }),\n spaceId: field.foreignKey({ description: 'Parent space' }),\n title: field.string({ description: 'Ritual title' }),\n cadence: field.enum('RitualCadence', { description: 'Ritual cadence' }),\n dayOfWeek: field.string({ description: 'Day of week', isOptional: true }),\n time: field.string({ description: 'Local time (HH:mm)', isOptional: true }),\n facilitatorId: field.string({\n description: 'Facilitator user ID',\n isOptional: true,\n }),\n participants: field.json({\n description: 'Participant user IDs',\n isOptional: true,\n }),\n location: field.string({ description: 'Location/URL', isOptional: true }),\n agendaTemplate: field.string({\n description: 'Agenda template markdown',\n isOptional: true,\n }),\n orgId: field.string({ description: 'Organization ID' }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n occurrences: field.hasMany('RitualOccurrence'),\n space: field.belongsTo('Space', ['spaceId'], ['id'], {\n onDelete: 'Cascade',\n }),\n },\n enums: [RitualCadenceEnum],\n indexes: [index.on(['spaceId']), index.on(['orgId'])],\n});\n\nexport const RitualOccurrenceEntity = defineEntity({\n name: 'RitualOccurrence',\n description: 'Specific occurrence of a ritual.',\n schema,\n map: 'ritual_occurrence',\n fields: {\n id: field.id({ description: 'Unique occurrence identifier' }),\n ritualId: field.foreignKey({ description: 'Parent ritual' }),\n scheduledFor: field.dateTime({ description: 'Scheduled datetime' }),\n status: field.string({\n description: 'Occurrence status',\n default: '\"scheduled\"',\n }),\n summary: field.string({ description: 'Summary/notes', isOptional: true }),\n attendance: field.json({\n description: 'Attendance list with responses',\n isOptional: true,\n }),\n recordingUrl: field.string({\n description: 'Recording link',\n isOptional: true,\n }),\n orgId: field.string({ description: 'Organization ID' }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n ritual: field.belongsTo('Ritual', ['ritualId'], ['id'], {\n onDelete: 'Cascade',\n }),\n },\n indexes: [\n index.on(['ritualId']),\n index.on(['scheduledFor']),\n index.on(['orgId']),\n ],\n});\n\nexport const AnnouncementEntity = defineEntity({\n name: 'Announcement',\n description: 'Announcement to a space or org.',\n schema,\n map: 'announcement',\n fields: {\n id: field.id({ description: 'Unique announcement identifier' }),\n spaceId: field.string({ description: 'Target space', isOptional: true }),\n title: field.string({ description: 'Announcement title' }),\n body: field.string({ description: 'Announcement body' }),\n audience: field.enum('AnnouncementAudience', {\n description: 'Audience targeting',\n default: 'ALL',\n }),\n audienceRole: field.string({\n description: 'Role targeted when audience is ROLE',\n isOptional: true,\n }),\n pinnedUntil: field.dateTime({\n description: 'Pin expiration',\n isOptional: true,\n }),\n orgId: field.string({ description: 'Organization ID' }),\n createdBy: field.string({ description: 'Creator user ID' }),\n createdAt: field.createdAt(),\n expiresAt: field.dateTime({\n description: 'Expiration time',\n isOptional: true,\n }),\n },\n enums: [AnnouncementAudienceEnum],\n indexes: [index.on(['orgId']), index.on(['spaceId']), index.on(['audience'])],\n});\n\nexport const teamHubEntities = [\n SpaceEntity,\n TaskEntity,\n RitualEntity,\n RitualOccurrenceEntity,\n AnnouncementEntity,\n];\n\nexport const teamHubSchemaContribution: ModuleSchemaContribution = {\n moduleId: '@contractspec/example.team-hub',\n // schema,\n entities: teamHubEntities,\n enums: [\n TaskStatusEnum,\n TaskPriorityEnum,\n RitualCadenceEnum,\n AnnouncementAudienceEnum,\n ],\n};\n"],"mappings":";;;AAQA,MAAM,SAAS;AAEf,MAAa,iBAAiB,iBAAiB;CAC7C,MAAM;CACN;CACA,QAAQ;EAAC;EAAW;EAAe;EAAW;EAAO;CACrD,aAAa;CACd,CAAC;AAEF,MAAa,mBAAmB,iBAAiB;CAC/C,MAAM;CACN;CACA,QAAQ;EAAC;EAAO;EAAU;EAAQ;EAAW;CAC7C,aAAa;CACd,CAAC;AAEF,MAAa,oBAAoB,iBAAiB;CAChD,MAAM;CACN;CACA,QAAQ;EAAC;EAAS;EAAU;EAAY;EAAU;CAClD,aAAa;CACd,CAAC;AAEF,MAAa,2BAA2B,iBAAiB;CACvD,MAAM;CACN;CACA,QAAQ;EAAC;EAAO;EAAS;EAAO;CAChC,aAAa;CACd,CAAC;AAEF,MAAa,cAAc,aAAa;CACtC,MAAM;CACN,aAAa;CACb;CACA,KAAK;CACL,QAAQ;EACN,IAAI,MAAM,GAAG,EAAE,aAAa,2BAA2B,CAAC;EACxD,MAAM,MAAM,OAAO,EAAE,aAAa,cAAc,CAAC;EACjD,aAAa,MAAM,OAAO;GACxB,aAAa;GACb,YAAY;GACb,CAAC;EACF,OAAO,MAAM,OAAO,EAAE,aAAa,mBAAmB,CAAC;EACvD,SAAS,MAAM,OAAO,EAAE,aAAa,eAAe,CAAC;EACrD,SAAS,MAAM,KAAK;GA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CAAC;EAC3D,WAAW,MAAM,WAAW;EAC5B,WAAW,MAAM,SAAS;GACxB,aAAa;GACb,YAAY;GACb,CAAC;EACH;CACD,OAAO,CAAC,yBAAyB;CACjC,SAAS;EAAC,MAAM,GAAG,CAAC,QAAQ,CAAC;EAAE,MAAM,GAAG,CAAC,UAAU,CAAC;EAAE,MAAM,GAAG,CAAC,WAAW,CAAC;EAAC;CAC9E,CAAC;AAEF,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACD;AAED,MAAaA,4BAAsD;CACjE,UAAU;CAEV,UAAU;CACV,OAAO;EACL;EACA;EACA;EACA;EACD;CACF"}
|
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import * as _contractspec_lib_schema17 from "@contractspec/lib.schema";
|
|
2
|
+
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/events.d.ts
|
|
5
|
+
declare const SpaceCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
6
|
+
spaceId: {
|
|
7
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
orgId: {
|
|
11
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
14
|
+
ownerId: {
|
|
15
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
timestamp: {
|
|
19
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
20
|
+
isOptional: false;
|
|
21
|
+
};
|
|
22
|
+
}>>;
|
|
23
|
+
declare const TaskCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
24
|
+
taskId: {
|
|
25
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
spaceId: {
|
|
29
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
status: {
|
|
33
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
assigneeId: {
|
|
37
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
38
|
+
isOptional: true;
|
|
39
|
+
};
|
|
40
|
+
orgId: {
|
|
41
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
42
|
+
isOptional: false;
|
|
43
|
+
};
|
|
44
|
+
timestamp: {
|
|
45
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
46
|
+
isOptional: false;
|
|
47
|
+
};
|
|
48
|
+
}>>;
|
|
49
|
+
declare const TaskStatusChangedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
50
|
+
taskId: {
|
|
51
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
52
|
+
isOptional: false;
|
|
53
|
+
};
|
|
54
|
+
spaceId: {
|
|
55
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
56
|
+
isOptional: false;
|
|
57
|
+
};
|
|
58
|
+
status: {
|
|
59
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
60
|
+
isOptional: false;
|
|
61
|
+
};
|
|
62
|
+
assigneeId: {
|
|
63
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
64
|
+
isOptional: true;
|
|
65
|
+
};
|
|
66
|
+
orgId: {
|
|
67
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
68
|
+
isOptional: false;
|
|
69
|
+
};
|
|
70
|
+
timestamp: {
|
|
71
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
72
|
+
isOptional: false;
|
|
73
|
+
};
|
|
74
|
+
}>>;
|
|
75
|
+
declare const RitualScheduledEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
76
|
+
ritualId: {
|
|
77
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
78
|
+
isOptional: false;
|
|
79
|
+
};
|
|
80
|
+
spaceId: {
|
|
81
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
82
|
+
isOptional: false;
|
|
83
|
+
};
|
|
84
|
+
scheduledFor: {
|
|
85
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
86
|
+
isOptional: false;
|
|
87
|
+
};
|
|
88
|
+
status: {
|
|
89
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
90
|
+
isOptional: false;
|
|
91
|
+
};
|
|
92
|
+
orgId: {
|
|
93
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
94
|
+
isOptional: false;
|
|
95
|
+
};
|
|
96
|
+
}>>;
|
|
97
|
+
declare const RitualOccurredEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
98
|
+
ritualId: {
|
|
99
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
100
|
+
isOptional: false;
|
|
101
|
+
};
|
|
102
|
+
spaceId: {
|
|
103
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
104
|
+
isOptional: false;
|
|
105
|
+
};
|
|
106
|
+
scheduledFor: {
|
|
107
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
108
|
+
isOptional: false;
|
|
109
|
+
};
|
|
110
|
+
status: {
|
|
111
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
112
|
+
isOptional: false;
|
|
113
|
+
};
|
|
114
|
+
orgId: {
|
|
115
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
116
|
+
isOptional: false;
|
|
117
|
+
};
|
|
118
|
+
}>>;
|
|
119
|
+
declare const AnnouncementPostedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
120
|
+
announcementId: {
|
|
121
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
122
|
+
isOptional: false;
|
|
123
|
+
};
|
|
124
|
+
spaceId: {
|
|
125
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
126
|
+
isOptional: true;
|
|
127
|
+
};
|
|
128
|
+
audience: {
|
|
129
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
130
|
+
isOptional: false;
|
|
131
|
+
};
|
|
132
|
+
orgId: {
|
|
133
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
134
|
+
isOptional: false;
|
|
135
|
+
};
|
|
136
|
+
createdBy: {
|
|
137
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
138
|
+
isOptional: false;
|
|
139
|
+
};
|
|
140
|
+
createdAt: {
|
|
141
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
142
|
+
isOptional: false;
|
|
143
|
+
};
|
|
144
|
+
}>>;
|
|
145
|
+
declare const TeamHubEvents: {
|
|
146
|
+
SpaceCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
147
|
+
spaceId: {
|
|
148
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
149
|
+
isOptional: false;
|
|
150
|
+
};
|
|
151
|
+
orgId: {
|
|
152
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
153
|
+
isOptional: false;
|
|
154
|
+
};
|
|
155
|
+
ownerId: {
|
|
156
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
157
|
+
isOptional: false;
|
|
158
|
+
};
|
|
159
|
+
timestamp: {
|
|
160
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
161
|
+
isOptional: false;
|
|
162
|
+
};
|
|
163
|
+
}>>;
|
|
164
|
+
TaskCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
165
|
+
taskId: {
|
|
166
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
167
|
+
isOptional: false;
|
|
168
|
+
};
|
|
169
|
+
spaceId: {
|
|
170
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
171
|
+
isOptional: false;
|
|
172
|
+
};
|
|
173
|
+
status: {
|
|
174
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
175
|
+
isOptional: false;
|
|
176
|
+
};
|
|
177
|
+
assigneeId: {
|
|
178
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
179
|
+
isOptional: true;
|
|
180
|
+
};
|
|
181
|
+
orgId: {
|
|
182
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
183
|
+
isOptional: false;
|
|
184
|
+
};
|
|
185
|
+
timestamp: {
|
|
186
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
187
|
+
isOptional: false;
|
|
188
|
+
};
|
|
189
|
+
}>>;
|
|
190
|
+
TaskStatusChangedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
191
|
+
taskId: {
|
|
192
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
193
|
+
isOptional: false;
|
|
194
|
+
};
|
|
195
|
+
spaceId: {
|
|
196
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
197
|
+
isOptional: false;
|
|
198
|
+
};
|
|
199
|
+
status: {
|
|
200
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
201
|
+
isOptional: false;
|
|
202
|
+
};
|
|
203
|
+
assigneeId: {
|
|
204
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
205
|
+
isOptional: true;
|
|
206
|
+
};
|
|
207
|
+
orgId: {
|
|
208
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
209
|
+
isOptional: false;
|
|
210
|
+
};
|
|
211
|
+
timestamp: {
|
|
212
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
213
|
+
isOptional: false;
|
|
214
|
+
};
|
|
215
|
+
}>>;
|
|
216
|
+
RitualScheduledEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
217
|
+
ritualId: {
|
|
218
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
219
|
+
isOptional: false;
|
|
220
|
+
};
|
|
221
|
+
spaceId: {
|
|
222
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
223
|
+
isOptional: false;
|
|
224
|
+
};
|
|
225
|
+
scheduledFor: {
|
|
226
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
227
|
+
isOptional: false;
|
|
228
|
+
};
|
|
229
|
+
status: {
|
|
230
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
231
|
+
isOptional: false;
|
|
232
|
+
};
|
|
233
|
+
orgId: {
|
|
234
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
235
|
+
isOptional: false;
|
|
236
|
+
};
|
|
237
|
+
}>>;
|
|
238
|
+
RitualOccurredEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
239
|
+
ritualId: {
|
|
240
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
241
|
+
isOptional: false;
|
|
242
|
+
};
|
|
243
|
+
spaceId: {
|
|
244
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
245
|
+
isOptional: false;
|
|
246
|
+
};
|
|
247
|
+
scheduledFor: {
|
|
248
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
249
|
+
isOptional: false;
|
|
250
|
+
};
|
|
251
|
+
status: {
|
|
252
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
253
|
+
isOptional: false;
|
|
254
|
+
};
|
|
255
|
+
orgId: {
|
|
256
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
257
|
+
isOptional: false;
|
|
258
|
+
};
|
|
259
|
+
}>>;
|
|
260
|
+
AnnouncementPostedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema17.SchemaModel<{
|
|
261
|
+
announcementId: {
|
|
262
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
263
|
+
isOptional: false;
|
|
264
|
+
};
|
|
265
|
+
spaceId: {
|
|
266
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
267
|
+
isOptional: true;
|
|
268
|
+
};
|
|
269
|
+
audience: {
|
|
270
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
271
|
+
isOptional: false;
|
|
272
|
+
};
|
|
273
|
+
orgId: {
|
|
274
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
275
|
+
isOptional: false;
|
|
276
|
+
};
|
|
277
|
+
createdBy: {
|
|
278
|
+
type: _contractspec_lib_schema17.FieldType<string, string>;
|
|
279
|
+
isOptional: false;
|
|
280
|
+
};
|
|
281
|
+
createdAt: {
|
|
282
|
+
type: _contractspec_lib_schema17.FieldType<Date, string>;
|
|
283
|
+
isOptional: false;
|
|
284
|
+
};
|
|
285
|
+
}>>;
|
|
286
|
+
};
|
|
287
|
+
//#endregion
|
|
288
|
+
export { AnnouncementPostedEvent, RitualOccurredEvent, RitualScheduledEvent, SpaceCreatedEvent, TaskCreatedEvent, TaskStatusChangedEvent, TeamHubEvents };
|
|
289
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAuDa,mBAAiB,4BAAA,CAAA,qCAAA;;UAU5B,0BAAA,CAAA;;EAVW,CAAA;EAUX,KAAA,EAAA;;;;;8CAV4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAYjB,SAAA,EAAA;IAUX,IAAA,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