@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
package/dist/events.js
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
2
|
+
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/events.ts
|
|
5
|
+
const SpaceEventPayload = defineSchemaModel({
|
|
6
|
+
name: "SpaceEventPayload",
|
|
7
|
+
description: "Payload for space events",
|
|
8
|
+
fields: {
|
|
9
|
+
spaceId: {
|
|
10
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
11
|
+
isOptional: false
|
|
12
|
+
},
|
|
13
|
+
orgId: {
|
|
14
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
15
|
+
isOptional: false
|
|
16
|
+
},
|
|
17
|
+
ownerId: {
|
|
18
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
19
|
+
isOptional: false
|
|
20
|
+
},
|
|
21
|
+
timestamp: {
|
|
22
|
+
type: ScalarTypeEnum.DateTime(),
|
|
23
|
+
isOptional: false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const TaskEventPayload = defineSchemaModel({
|
|
28
|
+
name: "TaskEventPayload",
|
|
29
|
+
description: "Payload for task events",
|
|
30
|
+
fields: {
|
|
31
|
+
taskId: {
|
|
32
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
33
|
+
isOptional: false
|
|
34
|
+
},
|
|
35
|
+
spaceId: {
|
|
36
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
37
|
+
isOptional: false
|
|
38
|
+
},
|
|
39
|
+
status: {
|
|
40
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
41
|
+
isOptional: false
|
|
42
|
+
},
|
|
43
|
+
assigneeId: {
|
|
44
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
45
|
+
isOptional: true
|
|
46
|
+
},
|
|
47
|
+
orgId: {
|
|
48
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
49
|
+
isOptional: false
|
|
50
|
+
},
|
|
51
|
+
timestamp: {
|
|
52
|
+
type: ScalarTypeEnum.DateTime(),
|
|
53
|
+
isOptional: false
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const RitualEventPayload = defineSchemaModel({
|
|
58
|
+
name: "RitualEventPayload",
|
|
59
|
+
description: "Payload for ritual events",
|
|
60
|
+
fields: {
|
|
61
|
+
ritualId: {
|
|
62
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
63
|
+
isOptional: false
|
|
64
|
+
},
|
|
65
|
+
spaceId: {
|
|
66
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
67
|
+
isOptional: false
|
|
68
|
+
},
|
|
69
|
+
scheduledFor: {
|
|
70
|
+
type: ScalarTypeEnum.DateTime(),
|
|
71
|
+
isOptional: false
|
|
72
|
+
},
|
|
73
|
+
status: {
|
|
74
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
75
|
+
isOptional: false
|
|
76
|
+
},
|
|
77
|
+
orgId: {
|
|
78
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
79
|
+
isOptional: false
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
const AnnouncementPayload = defineSchemaModel({
|
|
84
|
+
name: "AnnouncementPayload",
|
|
85
|
+
description: "Payload for announcements",
|
|
86
|
+
fields: {
|
|
87
|
+
announcementId: {
|
|
88
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
89
|
+
isOptional: false
|
|
90
|
+
},
|
|
91
|
+
spaceId: {
|
|
92
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
93
|
+
isOptional: true
|
|
94
|
+
},
|
|
95
|
+
audience: {
|
|
96
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
97
|
+
isOptional: false
|
|
98
|
+
},
|
|
99
|
+
orgId: {
|
|
100
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
101
|
+
isOptional: false
|
|
102
|
+
},
|
|
103
|
+
createdBy: {
|
|
104
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
105
|
+
isOptional: false
|
|
106
|
+
},
|
|
107
|
+
createdAt: {
|
|
108
|
+
type: ScalarTypeEnum.DateTime(),
|
|
109
|
+
isOptional: false
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
const SpaceCreatedEvent = defineEvent({
|
|
114
|
+
meta: {
|
|
115
|
+
key: "team.space.created",
|
|
116
|
+
version: 1,
|
|
117
|
+
description: "A space was created.",
|
|
118
|
+
stability: "stable",
|
|
119
|
+
owners: ["@team-hub"],
|
|
120
|
+
tags: [
|
|
121
|
+
"team",
|
|
122
|
+
"space",
|
|
123
|
+
"created"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
payload: SpaceEventPayload
|
|
127
|
+
});
|
|
128
|
+
const TaskCreatedEvent = defineEvent({
|
|
129
|
+
meta: {
|
|
130
|
+
key: "team.task.created",
|
|
131
|
+
version: 1,
|
|
132
|
+
description: "A task was created.",
|
|
133
|
+
stability: "stable",
|
|
134
|
+
owners: ["@team-hub"],
|
|
135
|
+
tags: [
|
|
136
|
+
"team",
|
|
137
|
+
"task",
|
|
138
|
+
"created"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
payload: TaskEventPayload
|
|
142
|
+
});
|
|
143
|
+
const TaskStatusChangedEvent = defineEvent({
|
|
144
|
+
meta: {
|
|
145
|
+
key: "team.task.status_changed",
|
|
146
|
+
version: 1,
|
|
147
|
+
description: "A task status changed.",
|
|
148
|
+
stability: "stable",
|
|
149
|
+
owners: ["@team-hub"],
|
|
150
|
+
tags: [
|
|
151
|
+
"team",
|
|
152
|
+
"task",
|
|
153
|
+
"status_changed"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
payload: TaskEventPayload
|
|
157
|
+
});
|
|
158
|
+
const RitualScheduledEvent = defineEvent({
|
|
159
|
+
meta: {
|
|
160
|
+
key: "team.ritual.scheduled",
|
|
161
|
+
version: 1,
|
|
162
|
+
description: "A ritual was scheduled.",
|
|
163
|
+
stability: "stable",
|
|
164
|
+
owners: ["@team-hub"],
|
|
165
|
+
tags: [
|
|
166
|
+
"team",
|
|
167
|
+
"ritual",
|
|
168
|
+
"scheduled"
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
payload: RitualEventPayload
|
|
172
|
+
});
|
|
173
|
+
const RitualOccurredEvent = defineEvent({
|
|
174
|
+
meta: {
|
|
175
|
+
key: "team.ritual.occurred",
|
|
176
|
+
version: 1,
|
|
177
|
+
description: "A ritual occurrence was logged.",
|
|
178
|
+
stability: "stable",
|
|
179
|
+
owners: ["@team-hub"],
|
|
180
|
+
tags: [
|
|
181
|
+
"team",
|
|
182
|
+
"ritual",
|
|
183
|
+
"occurred"
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
payload: RitualEventPayload
|
|
187
|
+
});
|
|
188
|
+
const AnnouncementPostedEvent = defineEvent({
|
|
189
|
+
meta: {
|
|
190
|
+
key: "team.announcement.posted",
|
|
191
|
+
version: 1,
|
|
192
|
+
description: "An announcement was posted.",
|
|
193
|
+
stability: "stable",
|
|
194
|
+
owners: ["@team-hub"],
|
|
195
|
+
tags: [
|
|
196
|
+
"team",
|
|
197
|
+
"announcement",
|
|
198
|
+
"posted"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
payload: AnnouncementPayload
|
|
202
|
+
});
|
|
203
|
+
const TeamHubEvents = {
|
|
204
|
+
SpaceCreatedEvent,
|
|
205
|
+
TaskCreatedEvent,
|
|
206
|
+
TaskStatusChangedEvent,
|
|
207
|
+
RitualScheduledEvent,
|
|
208
|
+
RitualOccurredEvent,
|
|
209
|
+
AnnouncementPostedEvent
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
//#endregion
|
|
213
|
+
export { AnnouncementPostedEvent, RitualOccurredEvent, RitualScheduledEvent, SpaceCreatedEvent, TaskCreatedEvent, TaskStatusChangedEvent, TeamHubEvents };
|
|
214
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\nconst SpaceEventPayload = defineSchemaModel({\n name: 'SpaceEventPayload',\n description: 'Payload for space events',\n fields: {\n spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst TaskEventPayload = defineSchemaModel({\n name: 'TaskEventPayload',\n description: 'Payload for task events',\n fields: {\n taskId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n assigneeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst RitualEventPayload = defineSchemaModel({\n name: 'RitualEventPayload',\n description: 'Payload for ritual events',\n fields: {\n ritualId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n scheduledFor: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nconst AnnouncementPayload = defineSchemaModel({\n name: 'AnnouncementPayload',\n description: 'Payload for announcements',\n fields: {\n announcementId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n audience: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const SpaceCreatedEvent = defineEvent({\n meta: {\n key: 'team.space.created',\n version: 1,\n description: 'A space was created.',\n stability: 'stable',\n owners: ['@team-hub'],\n tags: ['team', 'space', 'created'],\n },\n payload: SpaceEventPayload,\n});\n\nexport const TaskCreatedEvent = defineEvent({\n meta: {\n key: 'team.task.created',\n version: 1,\n description: 'A task was created.',\n stability: 'stable',\n owners: ['@team-hub'],\n tags: ['team', 'task', 'created'],\n },\n payload: TaskEventPayload,\n});\n\nexport const TaskStatusChangedEvent = defineEvent({\n meta: {\n key: 'team.task.status_changed',\n version: 1,\n description: 'A task status changed.',\n stability: 'stable',\n owners: ['@team-hub'],\n tags: ['team', 'task', 'status_changed'],\n },\n payload: TaskEventPayload,\n});\n\nexport const RitualScheduledEvent = defineEvent({\n meta: {\n key: 'team.ritual.scheduled',\n version: 1,\n description: 'A ritual was scheduled.',\n stability: 'stable',\n owners: ['@team-hub'],\n tags: ['team', 'ritual', 'scheduled'],\n },\n payload: RitualEventPayload,\n});\n\nexport const RitualOccurredEvent = defineEvent({\n meta: {\n key: 'team.ritual.occurred',\n version: 1,\n description: 'A ritual occurrence was logged.',\n stability: 'stable',\n owners: ['@team-hub'],\n tags: ['team', 'ritual', 'occurred'],\n },\n payload: RitualEventPayload,\n});\n\nexport const AnnouncementPostedEvent = defineEvent({\n meta: {\n key: 'team.announcement.posted',\n version: 1,\n description: 'An announcement was posted.',\n stability: 'stable',\n owners: ['@team-hub'],\n tags: ['team', 'announcement', 'posted'],\n },\n payload: AnnouncementPayload,\n});\n\nexport const TeamHubEvents = {\n SpaceCreatedEvent,\n TaskCreatedEvent,\n TaskStatusChangedEvent,\n RitualScheduledEvent,\n RitualOccurredEvent,\n AnnouncementPostedEvent,\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//#region src/example.d.ts
|
|
2
|
+
declare const example: {
|
|
3
|
+
readonly id: "team-hub";
|
|
4
|
+
readonly title: "Team Hub";
|
|
5
|
+
readonly summary: "Internal collaboration hub with spaces, tasks, rituals, and announcements.";
|
|
6
|
+
readonly tags: readonly ["tasks", "rituals", "announcements", "collaboration"];
|
|
7
|
+
readonly kind: "template";
|
|
8
|
+
readonly visibility: "public";
|
|
9
|
+
readonly docs: {
|
|
10
|
+
readonly rootDocId: "docs.examples.team-hub";
|
|
11
|
+
readonly goalDocId: "docs.examples.team-hub.goal";
|
|
12
|
+
readonly usageDocId: "docs.examples.team-hub.usage";
|
|
13
|
+
readonly constraintsDocId: "docs.examples.team-hub.constraints";
|
|
14
|
+
};
|
|
15
|
+
readonly entrypoints: {
|
|
16
|
+
readonly packageName: "@contractspec/example.team-hub";
|
|
17
|
+
readonly feature: "./feature";
|
|
18
|
+
readonly contracts: "./contracts";
|
|
19
|
+
readonly presentations: "./presentations";
|
|
20
|
+
readonly handlers: "./handlers";
|
|
21
|
+
readonly docs: "./docs";
|
|
22
|
+
};
|
|
23
|
+
readonly surfaces: {
|
|
24
|
+
readonly templates: true;
|
|
25
|
+
readonly sandbox: {
|
|
26
|
+
readonly enabled: true;
|
|
27
|
+
readonly modes: readonly ["playground", "specs", "builder", "markdown", "evolution"];
|
|
28
|
+
};
|
|
29
|
+
readonly studio: {
|
|
30
|
+
readonly enabled: true;
|
|
31
|
+
readonly installable: true;
|
|
32
|
+
};
|
|
33
|
+
readonly mcp: {
|
|
34
|
+
readonly enabled: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { example as default };
|
|
40
|
+
//# sourceMappingURL=example.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA+BI,EAAA,UAAA"}
|
package/dist/example.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//#region src/example.ts
|
|
2
|
+
const example = {
|
|
3
|
+
id: "team-hub",
|
|
4
|
+
title: "Team Hub",
|
|
5
|
+
summary: "Internal collaboration hub with spaces, tasks, rituals, and announcements.",
|
|
6
|
+
tags: [
|
|
7
|
+
"tasks",
|
|
8
|
+
"rituals",
|
|
9
|
+
"announcements",
|
|
10
|
+
"collaboration"
|
|
11
|
+
],
|
|
12
|
+
kind: "template",
|
|
13
|
+
visibility: "public",
|
|
14
|
+
docs: {
|
|
15
|
+
rootDocId: "docs.examples.team-hub",
|
|
16
|
+
goalDocId: "docs.examples.team-hub.goal",
|
|
17
|
+
usageDocId: "docs.examples.team-hub.usage",
|
|
18
|
+
constraintsDocId: "docs.examples.team-hub.constraints"
|
|
19
|
+
},
|
|
20
|
+
entrypoints: {
|
|
21
|
+
packageName: "@contractspec/example.team-hub",
|
|
22
|
+
feature: "./feature",
|
|
23
|
+
contracts: "./contracts",
|
|
24
|
+
presentations: "./presentations",
|
|
25
|
+
handlers: "./handlers",
|
|
26
|
+
docs: "./docs"
|
|
27
|
+
},
|
|
28
|
+
surfaces: {
|
|
29
|
+
templates: true,
|
|
30
|
+
sandbox: {
|
|
31
|
+
enabled: true,
|
|
32
|
+
modes: [
|
|
33
|
+
"playground",
|
|
34
|
+
"specs",
|
|
35
|
+
"builder",
|
|
36
|
+
"markdown",
|
|
37
|
+
"evolution"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
studio: {
|
|
41
|
+
enabled: true,
|
|
42
|
+
installable: true
|
|
43
|
+
},
|
|
44
|
+
mcp: { enabled: true }
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var example_default = example;
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { example_default as default };
|
|
51
|
+
//# sourceMappingURL=example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'team-hub',\n title: 'Team Hub',\n summary:\n 'Internal collaboration hub with spaces, tasks, rituals, and announcements.',\n tags: ['tasks', 'rituals', 'announcements', 'collaboration'],\n kind: 'template',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.team-hub',\n goalDocId: 'docs.examples.team-hub.goal',\n usageDocId: 'docs.examples.team-hub.usage',\n constraintsDocId: 'docs.examples.team-hub.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.team-hub',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAS;EAAW;EAAiB;EAAgB;CAC5D,MAAM;CACN,YAAY;CACZ,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/handlers/index.ts"],"sourcesContent":[],"mappings":";;AAIA;;iBAAgB,uBAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/handlers/index.ts"],"sourcesContent":["/**\n * Placeholder handler registry for Team Hub contracts.\n */\n\nexport function registerTeamHubHandlers() {\n // Bind contracts to runtime implementations in the host app.\n}\n"],"mappings":";;;;AAIA,SAAgB,0BAA0B"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PostAnnouncementContract } from "./announcement/announcement.operations.js";
|
|
2
|
+
import { AnnouncementModel, PostAnnouncementInputModel } from "./announcement/announcement.schema.js";
|
|
3
|
+
import "./announcement/index.js";
|
|
4
|
+
import { CreateSpaceInputModel, SpaceModel } from "./space/space.schema.js";
|
|
5
|
+
import { CreateSpaceContract } from "./space/space.operations.js";
|
|
6
|
+
import "./space/index.js";
|
|
7
|
+
import { CreateTaskInputModel, TaskModel, UpdateTaskStatusInputModel } from "./task/task.schema.js";
|
|
8
|
+
import { CreateTaskContract, ListTasksInputModel, ListTasksOperation, ListTasksOutputModel, UpdateTaskStatusContract } from "./task/task.operations.js";
|
|
9
|
+
import "./task/index.js";
|
|
10
|
+
import { LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualInputModel } from "./ritual/ritual.schema.js";
|
|
11
|
+
import { LogRitualOccurrenceContract, ScheduleRitualContract } from "./ritual/ritual.operations.js";
|
|
12
|
+
import "./ritual/index.js";
|
|
13
|
+
import { AnnouncementFeedPresentation, RitualCalendarPresentation, SpaceListPresentation, TaskBoardPresentation, TaskDetailPresentation, TeamDashboardPresentation } from "./presentations.js";
|
|
14
|
+
import { TeamHubFeature } from "./team-hub.feature.js";
|
|
15
|
+
export { AnnouncementFeedPresentation, AnnouncementModel, CreateSpaceContract, CreateSpaceInputModel, CreateTaskContract, CreateTaskInputModel, ListTasksInputModel, ListTasksOperation, ListTasksOutputModel, LogRitualOccurrenceContract, LogRitualOccurrenceInputModel, PostAnnouncementContract, PostAnnouncementInputModel, RitualCalendarPresentation, RitualModel, ScheduleRitualContract, ScheduleRitualInputModel, SpaceListPresentation, SpaceModel, TaskBoardPresentation, TaskDetailPresentation, TaskModel, TeamDashboardPresentation, TeamHubFeature, UpdateTaskStatusContract, UpdateTaskStatusInputModel };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreateSpaceInputModel, SpaceModel } from "./space/space.schema.js";
|
|
2
|
+
import { CreateSpaceContract } from "./space/space.operations.js";
|
|
3
|
+
import "./space/index.js";
|
|
4
|
+
import { CreateTaskInputModel, TaskModel, UpdateTaskStatusInputModel } from "./task/task.schema.js";
|
|
5
|
+
import { CreateTaskContract, ListTasksInputModel, ListTasksOperation, ListTasksOutputModel, UpdateTaskStatusContract } from "./task/task.operations.js";
|
|
6
|
+
import "./task/index.js";
|
|
7
|
+
import { LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualInputModel } from "./ritual/ritual.schema.js";
|
|
8
|
+
import { LogRitualOccurrenceContract, ScheduleRitualContract } from "./ritual/ritual.operations.js";
|
|
9
|
+
import "./ritual/index.js";
|
|
10
|
+
import { AnnouncementModel, PostAnnouncementInputModel } from "./announcement/announcement.schema.js";
|
|
11
|
+
import { PostAnnouncementContract } from "./announcement/announcement.operations.js";
|
|
12
|
+
import "./announcement/index.js";
|
|
13
|
+
import { AnnouncementFeedPresentation, RitualCalendarPresentation, SpaceListPresentation, TaskBoardPresentation, TaskDetailPresentation, TeamDashboardPresentation } from "./presentations.js";
|
|
14
|
+
import { TeamHubFeature } from "./team-hub.feature.js";
|
|
15
|
+
|
|
16
|
+
export { AnnouncementFeedPresentation, AnnouncementModel, CreateSpaceContract, CreateSpaceInputModel, CreateTaskContract, CreateTaskInputModel, ListTasksInputModel, ListTasksOperation, ListTasksOutputModel, LogRitualOccurrenceContract, LogRitualOccurrenceInputModel, PostAnnouncementContract, PostAnnouncementInputModel, RitualCalendarPresentation, RitualModel, ScheduleRitualContract, ScheduleRitualInputModel, SpaceListPresentation, SpaceModel, TaskBoardPresentation, TaskDetailPresentation, TaskModel, TeamDashboardPresentation, TeamHubFeature, UpdateTaskStatusContract, UpdateTaskStatusInputModel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/presentations/index.ts"],"sourcesContent":[],"mappings":";cAAa"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/presentations/index.ts
|
|
2
|
+
const TeamHubPresentations = [
|
|
3
|
+
"team-hub.dashboard",
|
|
4
|
+
"team-hub.space.list",
|
|
5
|
+
"team-hub.task.board",
|
|
6
|
+
"team-hub.task.detail",
|
|
7
|
+
"team-hub.ritual.calendar",
|
|
8
|
+
"team-hub.announcement.feed"
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { TeamHubPresentations };
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/presentations/index.ts"],"sourcesContent":["export const TeamHubPresentations = [\n 'team-hub.dashboard',\n 'team-hub.space.list',\n 'team-hub.task.board',\n 'team-hub.task.detail',\n 'team-hub.ritual.calendar',\n 'team-hub.announcement.feed',\n];\n"],"mappings":";AAAA,MAAa,uBAAuB;CAClC;CACA;CACA;CACA;CACA;CACA;CACD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PresentationSpec } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/presentations.d.ts
|
|
4
|
+
declare const TeamDashboardPresentation: PresentationSpec;
|
|
5
|
+
declare const SpaceListPresentation: PresentationSpec;
|
|
6
|
+
declare const TaskBoardPresentation: PresentationSpec;
|
|
7
|
+
declare const TaskDetailPresentation: PresentationSpec;
|
|
8
|
+
declare const RitualCalendarPresentation: PresentationSpec;
|
|
9
|
+
declare const AnnouncementFeedPresentation: PresentationSpec;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AnnouncementFeedPresentation, RitualCalendarPresentation, SpaceListPresentation, TaskBoardPresentation, TaskDetailPresentation, TeamDashboardPresentation };
|
|
12
|
+
//# sourceMappingURL=presentations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentations.d.ts","names":[],"sources":["../src/presentations.ts"],"sourcesContent":[],"mappings":";;;cAGa,2BAA2B;cAwB3B,uBAAuB;AAxBvB,cAgDA,qBA1BZ,EA0BmC,gBAhDI;AAwB3B,cAgDA,sBAhDuB,EAgDC,gBA1BpC;AAEY,cAgDA,0BAhDuB,EAgDK,gBA1BxC;AAEY,cAgDA,4BAhDwB,EAgDM,gBA1B1C"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { StabilityEnum } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/presentations.ts
|
|
4
|
+
const TeamDashboardPresentation = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: "team-hub.dashboard",
|
|
7
|
+
version: 1,
|
|
8
|
+
title: "Team Dashboard",
|
|
9
|
+
description: "Team hub dashboard with activity overview",
|
|
10
|
+
domain: "collaboration",
|
|
11
|
+
owners: ["@team-hub"],
|
|
12
|
+
tags: ["team", "dashboard"],
|
|
13
|
+
stability: StabilityEnum.Experimental,
|
|
14
|
+
goal: "High-level overview of team activity",
|
|
15
|
+
context: "Team home page"
|
|
16
|
+
},
|
|
17
|
+
source: {
|
|
18
|
+
type: "component",
|
|
19
|
+
framework: "react",
|
|
20
|
+
componentKey: "TeamDashboard"
|
|
21
|
+
},
|
|
22
|
+
targets: ["react", "markdown"],
|
|
23
|
+
policy: { flags: ["team.dashboard.enabled"] }
|
|
24
|
+
};
|
|
25
|
+
const SpaceListPresentation = {
|
|
26
|
+
meta: {
|
|
27
|
+
key: "team-hub.space.list",
|
|
28
|
+
version: 1,
|
|
29
|
+
title: "Space List",
|
|
30
|
+
description: "List of team spaces",
|
|
31
|
+
domain: "collaboration",
|
|
32
|
+
owners: ["@team-hub"],
|
|
33
|
+
tags: [
|
|
34
|
+
"team",
|
|
35
|
+
"spaces",
|
|
36
|
+
"list"
|
|
37
|
+
],
|
|
38
|
+
stability: StabilityEnum.Experimental,
|
|
39
|
+
goal: "Browse and manage team spaces",
|
|
40
|
+
context: "Team navigation"
|
|
41
|
+
},
|
|
42
|
+
source: {
|
|
43
|
+
type: "component",
|
|
44
|
+
framework: "react",
|
|
45
|
+
componentKey: "SpaceList"
|
|
46
|
+
},
|
|
47
|
+
targets: ["react", "markdown"],
|
|
48
|
+
policy: { flags: ["team.spaces.enabled"] }
|
|
49
|
+
};
|
|
50
|
+
const TaskBoardPresentation = {
|
|
51
|
+
meta: {
|
|
52
|
+
key: "team-hub.task.board",
|
|
53
|
+
version: 1,
|
|
54
|
+
title: "Task Board",
|
|
55
|
+
description: "Task board with kanban view",
|
|
56
|
+
domain: "collaboration",
|
|
57
|
+
owners: ["@team-hub"],
|
|
58
|
+
tags: [
|
|
59
|
+
"team",
|
|
60
|
+
"tasks",
|
|
61
|
+
"board",
|
|
62
|
+
"kanban"
|
|
63
|
+
],
|
|
64
|
+
stability: StabilityEnum.Experimental,
|
|
65
|
+
goal: "Visual task management",
|
|
66
|
+
context: "Team task workflows"
|
|
67
|
+
},
|
|
68
|
+
source: {
|
|
69
|
+
type: "component",
|
|
70
|
+
framework: "react",
|
|
71
|
+
componentKey: "TaskBoard"
|
|
72
|
+
},
|
|
73
|
+
targets: ["react"],
|
|
74
|
+
policy: { flags: ["team.tasks.enabled"] }
|
|
75
|
+
};
|
|
76
|
+
const TaskDetailPresentation = {
|
|
77
|
+
meta: {
|
|
78
|
+
key: "team-hub.task.detail",
|
|
79
|
+
version: 1,
|
|
80
|
+
title: "Task Details",
|
|
81
|
+
description: "Task detail with comments and history",
|
|
82
|
+
domain: "collaboration",
|
|
83
|
+
owners: ["@team-hub"],
|
|
84
|
+
tags: [
|
|
85
|
+
"team",
|
|
86
|
+
"task",
|
|
87
|
+
"detail"
|
|
88
|
+
],
|
|
89
|
+
stability: StabilityEnum.Experimental,
|
|
90
|
+
goal: "Detailed task view with collaboration",
|
|
91
|
+
context: "Task inspection and updates"
|
|
92
|
+
},
|
|
93
|
+
source: {
|
|
94
|
+
type: "component",
|
|
95
|
+
framework: "react",
|
|
96
|
+
componentKey: "TaskDetail"
|
|
97
|
+
},
|
|
98
|
+
targets: ["react", "markdown"],
|
|
99
|
+
policy: { flags: ["team.tasks.enabled"] }
|
|
100
|
+
};
|
|
101
|
+
const RitualCalendarPresentation = {
|
|
102
|
+
meta: {
|
|
103
|
+
key: "team-hub.ritual.calendar",
|
|
104
|
+
version: 1,
|
|
105
|
+
title: "Ritual Calendar",
|
|
106
|
+
description: "Calendar view of team rituals",
|
|
107
|
+
domain: "collaboration",
|
|
108
|
+
owners: ["@team-hub"],
|
|
109
|
+
tags: [
|
|
110
|
+
"team",
|
|
111
|
+
"rituals",
|
|
112
|
+
"calendar"
|
|
113
|
+
],
|
|
114
|
+
stability: StabilityEnum.Experimental,
|
|
115
|
+
goal: "Plan and view recurring team rituals",
|
|
116
|
+
context: "Team scheduling"
|
|
117
|
+
},
|
|
118
|
+
source: {
|
|
119
|
+
type: "component",
|
|
120
|
+
framework: "react",
|
|
121
|
+
componentKey: "RitualCalendar"
|
|
122
|
+
},
|
|
123
|
+
targets: ["react"],
|
|
124
|
+
policy: { flags: ["team.rituals.enabled"] }
|
|
125
|
+
};
|
|
126
|
+
const AnnouncementFeedPresentation = {
|
|
127
|
+
meta: {
|
|
128
|
+
key: "team-hub.announcement.feed",
|
|
129
|
+
version: 1,
|
|
130
|
+
title: "Announcement Feed",
|
|
131
|
+
description: "Feed of team announcements",
|
|
132
|
+
domain: "collaboration",
|
|
133
|
+
owners: ["@team-hub"],
|
|
134
|
+
tags: [
|
|
135
|
+
"team",
|
|
136
|
+
"announcements",
|
|
137
|
+
"feed"
|
|
138
|
+
],
|
|
139
|
+
stability: StabilityEnum.Experimental,
|
|
140
|
+
goal: "Communicate updates to the team",
|
|
141
|
+
context: "Team communication"
|
|
142
|
+
},
|
|
143
|
+
source: {
|
|
144
|
+
type: "component",
|
|
145
|
+
framework: "react",
|
|
146
|
+
componentKey: "AnnouncementFeed"
|
|
147
|
+
},
|
|
148
|
+
targets: ["react", "markdown"],
|
|
149
|
+
policy: { flags: ["team.announcements.enabled"] }
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
//#endregion
|
|
153
|
+
export { AnnouncementFeedPresentation, RitualCalendarPresentation, SpaceListPresentation, TaskBoardPresentation, TaskDetailPresentation, TeamDashboardPresentation };
|
|
154
|
+
//# sourceMappingURL=presentations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentations.js","names":["TeamDashboardPresentation: PresentationSpec","SpaceListPresentation: PresentationSpec","TaskBoardPresentation: PresentationSpec","TaskDetailPresentation: PresentationSpec","RitualCalendarPresentation: PresentationSpec","AnnouncementFeedPresentation: PresentationSpec"],"sources":["../src/presentations.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\n\nexport const TeamDashboardPresentation: PresentationSpec = {\n meta: {\n key: 'team-hub.dashboard',\n version: 1,\n title: 'Team Dashboard',\n description: 'Team hub dashboard with activity overview',\n domain: 'collaboration',\n owners: ['@team-hub'],\n tags: ['team', 'dashboard'],\n stability: StabilityEnum.Experimental,\n goal: 'High-level overview of team activity',\n context: 'Team home page',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'TeamDashboard',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['team.dashboard.enabled'],\n },\n};\n\nexport const SpaceListPresentation: PresentationSpec = {\n meta: {\n key: 'team-hub.space.list',\n version: 1,\n title: 'Space List',\n description: 'List of team spaces',\n domain: 'collaboration',\n owners: ['@team-hub'],\n tags: ['team', 'spaces', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Browse and manage team spaces',\n context: 'Team navigation',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SpaceList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['team.spaces.enabled'],\n },\n};\n\nexport const TaskBoardPresentation: PresentationSpec = {\n meta: {\n key: 'team-hub.task.board',\n version: 1,\n title: 'Task Board',\n description: 'Task board with kanban view',\n domain: 'collaboration',\n owners: ['@team-hub'],\n tags: ['team', 'tasks', 'board', 'kanban'],\n stability: StabilityEnum.Experimental,\n goal: 'Visual task management',\n context: 'Team task workflows',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'TaskBoard',\n },\n targets: ['react'],\n policy: {\n flags: ['team.tasks.enabled'],\n },\n};\n\nexport const TaskDetailPresentation: PresentationSpec = {\n meta: {\n key: 'team-hub.task.detail',\n version: 1,\n title: 'Task Details',\n description: 'Task detail with comments and history',\n domain: 'collaboration',\n owners: ['@team-hub'],\n tags: ['team', 'task', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Detailed task view with collaboration',\n context: 'Task inspection and updates',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'TaskDetail',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['team.tasks.enabled'],\n },\n};\n\nexport const RitualCalendarPresentation: PresentationSpec = {\n meta: {\n key: 'team-hub.ritual.calendar',\n version: 1,\n title: 'Ritual Calendar',\n description: 'Calendar view of team rituals',\n domain: 'collaboration',\n owners: ['@team-hub'],\n tags: ['team', 'rituals', 'calendar'],\n stability: StabilityEnum.Experimental,\n goal: 'Plan and view recurring team rituals',\n context: 'Team scheduling',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'RitualCalendar',\n },\n targets: ['react'],\n policy: {\n flags: ['team.rituals.enabled'],\n },\n};\n\nexport const AnnouncementFeedPresentation: PresentationSpec = {\n meta: {\n key: 'team-hub.announcement.feed',\n version: 1,\n title: 'Announcement Feed',\n description: 'Feed of team announcements',\n domain: 'collaboration',\n owners: ['@team-hub'],\n tags: ['team', 'announcements', 'feed'],\n stability: StabilityEnum.Experimental,\n goal: 'Communicate updates to the team',\n context: 'Team communication',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AnnouncementFeed',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['team.announcements.enabled'],\n },\n};\n"],"mappings":";;;AAGA,MAAaA,4BAA8C;CACzD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM,CAAC,QAAQ,YAAY;EAC3B,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,yBAAyB,EAClC;CACF;AAED,MAAaC,wBAA0C;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAQ;GAAU;GAAO;EAChC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,sBAAsB,EAC/B;CACF;AAED,MAAaC,wBAA0C;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAQ;GAAS;GAAS;GAAS;EAC1C,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,qBAAqB,EAC9B;CACF;AAED,MAAaC,yBAA2C;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAQ;GAAQ;GAAS;EAChC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,qBAAqB,EAC9B;CACF;AAED,MAAaC,6BAA+C;CAC1D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAQ;GAAW;GAAW;EACrC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,uBAAuB,EAChC;CACF;AAED,MAAaC,+BAAiD;CAC5D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAQ;GAAiB;GAAO;EACvC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,6BAA6B,EACtC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualInputModel } from "./ritual.schema.js";
|
|
2
|
+
import { LogRitualOccurrenceContract, ScheduleRitualContract } from "./ritual.operations.js";
|
|
3
|
+
export { LogRitualOccurrenceContract, LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualContract, ScheduleRitualInputModel };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualInputModel } from "./ritual.schema.js";
|
|
2
|
+
import { LogRitualOccurrenceContract, ScheduleRitualContract } from "./ritual.operations.js";
|
|
3
|
+
|
|
4
|
+
export { LogRitualOccurrenceContract, LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualContract, ScheduleRitualInputModel };
|