@contractspec/example.team-hub 1.57.0 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/announcement/announcement.operations.d.ts +50 -56
  2. package/dist/announcement/announcement.operations.d.ts.map +1 -1
  3. package/dist/announcement/announcement.operations.js +70 -51
  4. package/dist/announcement/announcement.schema.d.ts +50 -55
  5. package/dist/announcement/announcement.schema.d.ts.map +1 -1
  6. package/dist/announcement/announcement.schema.js +29 -71
  7. package/dist/announcement/index.d.ts +6 -3
  8. package/dist/announcement/index.d.ts.map +1 -0
  9. package/dist/announcement/index.js +73 -3
  10. package/dist/browser/announcement/announcement.operations.js +71 -0
  11. package/dist/browser/announcement/announcement.schema.js +30 -0
  12. package/dist/browser/announcement/index.js +73 -0
  13. package/dist/browser/docs/index.js +94 -0
  14. package/dist/browser/docs/team-hub.docblock.js +94 -0
  15. package/dist/browser/entities/index.js +231 -0
  16. package/dist/browser/events.js +134 -0
  17. package/dist/browser/example.js +42 -0
  18. package/dist/browser/handlers/index.js +5 -0
  19. package/dist/browser/index.js +642 -0
  20. package/dist/browser/presentations/index.js +131 -0
  21. package/dist/browser/presentations/team-hub.presentation.js +131 -0
  22. package/dist/browser/presentations.js +148 -0
  23. package/dist/browser/ritual/index.js +124 -0
  24. package/dist/browser/ritual/ritual.operations.js +121 -0
  25. package/dist/browser/ritual/ritual.schema.js +41 -0
  26. package/dist/browser/space/index.js +66 -0
  27. package/dist/browser/space/space.operations.js +64 -0
  28. package/dist/browser/space/space.schema.js +27 -0
  29. package/dist/browser/task/index.js +171 -0
  30. package/dist/browser/task/task.operations.js +168 -0
  31. package/dist/browser/task/task.schema.js +40 -0
  32. package/dist/browser/team-hub.capability.js +40 -0
  33. package/dist/browser/team-hub.feature.js +69 -0
  34. package/dist/docs/index.d.ts +2 -1
  35. package/dist/docs/index.d.ts.map +1 -0
  36. package/dist/docs/index.js +95 -1
  37. package/dist/docs/team-hub.docblock.d.ts +2 -1
  38. package/dist/docs/team-hub.docblock.d.ts.map +1 -0
  39. package/dist/docs/team-hub.docblock.js +45 -56
  40. package/dist/entities/index.d.ts +138 -143
  41. package/dist/entities/index.d.ts.map +1 -1
  42. package/dist/entities/index.js +221 -252
  43. package/dist/events.d.ts +217 -223
  44. package/dist/events.d.ts.map +1 -1
  45. package/dist/events.js +122 -201
  46. package/dist/example.d.ts +2 -6
  47. package/dist/example.d.ts.map +1 -1
  48. package/dist/example.js +41 -55
  49. package/dist/handlers/index.d.ts +1 -4
  50. package/dist/handlers/index.d.ts.map +1 -1
  51. package/dist/handlers/index.js +5 -8
  52. package/dist/index.d.ts +12 -15
  53. package/dist/index.d.ts.map +1 -0
  54. package/dist/index.js +642 -15
  55. package/dist/node/announcement/announcement.operations.js +71 -0
  56. package/dist/node/announcement/announcement.schema.js +30 -0
  57. package/dist/node/announcement/index.js +73 -0
  58. package/dist/node/docs/index.js +94 -0
  59. package/dist/node/docs/team-hub.docblock.js +94 -0
  60. package/dist/node/entities/index.js +231 -0
  61. package/dist/node/events.js +134 -0
  62. package/dist/node/example.js +42 -0
  63. package/dist/node/handlers/index.js +5 -0
  64. package/dist/node/index.js +642 -0
  65. package/dist/node/presentations/index.js +131 -0
  66. package/dist/node/presentations/team-hub.presentation.js +131 -0
  67. package/dist/node/presentations.js +148 -0
  68. package/dist/node/ritual/index.js +124 -0
  69. package/dist/node/ritual/ritual.operations.js +121 -0
  70. package/dist/node/ritual/ritual.schema.js +41 -0
  71. package/dist/node/space/index.js +66 -0
  72. package/dist/node/space/space.operations.js +64 -0
  73. package/dist/node/space/space.schema.js +27 -0
  74. package/dist/node/task/index.js +171 -0
  75. package/dist/node/task/task.operations.js +168 -0
  76. package/dist/node/task/task.schema.js +40 -0
  77. package/dist/node/team-hub.capability.js +40 -0
  78. package/dist/node/team-hub.feature.js +69 -0
  79. package/dist/presentations/index.d.ts +2 -2
  80. package/dist/presentations/index.d.ts.map +1 -0
  81. package/dist/presentations/index.js +132 -3
  82. package/dist/presentations/team-hub.presentation.d.ts +6 -11
  83. package/dist/presentations/team-hub.presentation.d.ts.map +1 -1
  84. package/dist/presentations/team-hub.presentation.js +126 -125
  85. package/dist/presentations.d.ts +7 -11
  86. package/dist/presentations.d.ts.map +1 -1
  87. package/dist/presentations.js +142 -147
  88. package/dist/ritual/index.d.ts +6 -3
  89. package/dist/ritual/index.d.ts.map +1 -0
  90. package/dist/ritual/index.js +124 -3
  91. package/dist/ritual/ritual.operations.d.ts +92 -98
  92. package/dist/ritual/ritual.operations.d.ts.map +1 -1
  93. package/dist/ritual/ritual.operations.js +119 -95
  94. package/dist/ritual/ritual.schema.d.ts +67 -72
  95. package/dist/ritual/ritual.schema.d.ts.map +1 -1
  96. package/dist/ritual/ritual.schema.js +39 -95
  97. package/dist/space/index.d.ts +6 -3
  98. package/dist/space/index.d.ts.map +1 -0
  99. package/dist/space/index.js +66 -3
  100. package/dist/space/space.operations.d.ts +38 -44
  101. package/dist/space/space.operations.d.ts.map +1 -1
  102. package/dist/space/space.operations.js +63 -50
  103. package/dist/space/space.schema.d.ts +38 -43
  104. package/dist/space/space.schema.d.ts.map +1 -1
  105. package/dist/space/space.schema.js +26 -59
  106. package/dist/task/index.d.ts +6 -3
  107. package/dist/task/index.d.ts.map +1 -0
  108. package/dist/task/index.js +171 -3
  109. package/dist/task/task.operations.d.ts +212 -218
  110. package/dist/task/task.operations.d.ts.map +1 -1
  111. package/dist/task/task.operations.js +163 -174
  112. package/dist/task/task.schema.d.ts +63 -68
  113. package/dist/task/task.schema.d.ts.map +1 -1
  114. package/dist/task/task.schema.js +38 -91
  115. package/dist/team-hub.capability.d.ts +3 -8
  116. package/dist/team-hub.capability.d.ts.map +1 -1
  117. package/dist/team-hub.capability.js +41 -38
  118. package/dist/team-hub.feature.d.ts +1 -6
  119. package/dist/team-hub.feature.d.ts.map +1 -1
  120. package/dist/team-hub.feature.js +68 -159
  121. package/package.json +261 -57
  122. package/dist/announcement/announcement.operations.js.map +0 -1
  123. package/dist/announcement/announcement.schema.js.map +0 -1
  124. package/dist/docs/team-hub.docblock.js.map +0 -1
  125. package/dist/entities/index.js.map +0 -1
  126. package/dist/events.js.map +0 -1
  127. package/dist/example.js.map +0 -1
  128. package/dist/handlers/index.js.map +0 -1
  129. package/dist/presentations/team-hub.presentation.js.map +0 -1
  130. package/dist/presentations.js.map +0 -1
  131. package/dist/ritual/ritual.operations.js.map +0 -1
  132. package/dist/ritual/ritual.schema.js.map +0 -1
  133. package/dist/space/space.operations.js.map +0 -1
  134. package/dist/space/space.schema.js.map +0 -1
  135. package/dist/task/task.operations.js.map +0 -1
  136. package/dist/task/task.schema.js.map +0 -1
  137. package/dist/team-hub.capability.js.map +0 -1
  138. package/dist/team-hub.feature.js.map +0 -1
@@ -1,154 +1,149 @@
1
+ // @bun
2
+ // src/presentations.ts
1
3
  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.0.0",
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"] }
4
+ var TeamDashboardPresentation = {
5
+ meta: {
6
+ key: "team-hub.dashboard",
7
+ version: "1.0.0",
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: {
24
+ flags: ["team.dashboard.enabled"]
25
+ }
24
26
  };
25
- const SpaceListPresentation = {
26
- meta: {
27
- key: "team-hub.space.list",
28
- version: "1.0.0",
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"] }
27
+ var SpaceListPresentation = {
28
+ meta: {
29
+ key: "team-hub.space.list",
30
+ version: "1.0.0",
31
+ title: "Space List",
32
+ description: "List of team spaces",
33
+ domain: "collaboration",
34
+ owners: ["@team-hub"],
35
+ tags: ["team", "spaces", "list"],
36
+ stability: StabilityEnum.Experimental,
37
+ goal: "Browse and manage team spaces",
38
+ context: "Team navigation"
39
+ },
40
+ source: {
41
+ type: "component",
42
+ framework: "react",
43
+ componentKey: "SpaceList"
44
+ },
45
+ targets: ["react", "markdown"],
46
+ policy: {
47
+ flags: ["team.spaces.enabled"]
48
+ }
49
49
  };
50
- const TaskBoardPresentation = {
51
- meta: {
52
- key: "team-hub.task.board",
53
- version: "1.0.0",
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"] }
50
+ var TaskBoardPresentation = {
51
+ meta: {
52
+ key: "team-hub.task.board",
53
+ version: "1.0.0",
54
+ title: "Task Board",
55
+ description: "Task board with kanban view",
56
+ domain: "collaboration",
57
+ owners: ["@team-hub"],
58
+ tags: ["team", "tasks", "board", "kanban"],
59
+ stability: StabilityEnum.Experimental,
60
+ goal: "Visual task management",
61
+ context: "Team task workflows"
62
+ },
63
+ source: {
64
+ type: "component",
65
+ framework: "react",
66
+ componentKey: "TaskBoard"
67
+ },
68
+ targets: ["react"],
69
+ policy: {
70
+ flags: ["team.tasks.enabled"]
71
+ }
75
72
  };
76
- const TaskDetailPresentation = {
77
- meta: {
78
- key: "team-hub.task.detail",
79
- version: "1.0.0",
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"] }
73
+ var TaskDetailPresentation = {
74
+ meta: {
75
+ key: "team-hub.task.detail",
76
+ version: "1.0.0",
77
+ title: "Task Details",
78
+ description: "Task detail with comments and history",
79
+ domain: "collaboration",
80
+ owners: ["@team-hub"],
81
+ tags: ["team", "task", "detail"],
82
+ stability: StabilityEnum.Experimental,
83
+ goal: "Detailed task view with collaboration",
84
+ context: "Task inspection and updates"
85
+ },
86
+ source: {
87
+ type: "component",
88
+ framework: "react",
89
+ componentKey: "TaskDetail"
90
+ },
91
+ targets: ["react", "markdown"],
92
+ policy: {
93
+ flags: ["team.tasks.enabled"]
94
+ }
100
95
  };
101
- const RitualCalendarPresentation = {
102
- meta: {
103
- key: "team-hub.ritual.calendar",
104
- version: "1.0.0",
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"] }
96
+ var RitualCalendarPresentation = {
97
+ meta: {
98
+ key: "team-hub.ritual.calendar",
99
+ version: "1.0.0",
100
+ title: "Ritual Calendar",
101
+ description: "Calendar view of team rituals",
102
+ domain: "collaboration",
103
+ owners: ["@team-hub"],
104
+ tags: ["team", "rituals", "calendar"],
105
+ stability: StabilityEnum.Experimental,
106
+ goal: "Plan and view recurring team rituals",
107
+ context: "Team scheduling"
108
+ },
109
+ source: {
110
+ type: "component",
111
+ framework: "react",
112
+ componentKey: "RitualCalendar"
113
+ },
114
+ targets: ["react"],
115
+ policy: {
116
+ flags: ["team.rituals.enabled"]
117
+ }
125
118
  };
126
- const AnnouncementFeedPresentation = {
127
- meta: {
128
- key: "team-hub.announcement.feed",
129
- version: "1.0.0",
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"] }
119
+ var AnnouncementFeedPresentation = {
120
+ meta: {
121
+ key: "team-hub.announcement.feed",
122
+ version: "1.0.0",
123
+ title: "Announcement Feed",
124
+ description: "Feed of team announcements",
125
+ domain: "collaboration",
126
+ owners: ["@team-hub"],
127
+ tags: ["team", "announcements", "feed"],
128
+ stability: StabilityEnum.Experimental,
129
+ goal: "Communicate updates to the team",
130
+ context: "Team communication"
131
+ },
132
+ source: {
133
+ type: "component",
134
+ framework: "react",
135
+ componentKey: "AnnouncementFeed"
136
+ },
137
+ targets: ["react", "markdown"],
138
+ policy: {
139
+ flags: ["team.announcements.enabled"]
140
+ }
141
+ };
142
+ export {
143
+ TeamDashboardPresentation,
144
+ TaskDetailPresentation,
145
+ TaskBoardPresentation,
146
+ SpaceListPresentation,
147
+ RitualCalendarPresentation,
148
+ AnnouncementFeedPresentation
150
149
  };
151
-
152
- //#endregion
153
- export { AnnouncementFeedPresentation, RitualCalendarPresentation, SpaceListPresentation, TaskBoardPresentation, TaskDetailPresentation, TeamDashboardPresentation };
154
- //# sourceMappingURL=presentations.js.map
@@ -1,3 +1,6 @@
1
- import { LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualInputModel } from "./ritual.schema.js";
2
- import { LogRitualOccurrenceContract, ScheduleRitualContract } from "./ritual.operations.js";
3
- export { LogRitualOccurrenceContract, LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualContract, ScheduleRitualInputModel };
1
+ /**
2
+ * Ritual domain - Team ritual management.
3
+ */
4
+ export { RitualModel, ScheduleRitualInputModel, LogRitualOccurrenceInputModel, } from './ritual.schema';
5
+ export { ScheduleRitualContract, LogRitualOccurrenceContract, } from './ritual.operations';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ritual/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC"}
@@ -1,4 +1,125 @@
1
- import { LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualInputModel } from "./ritual.schema.js";
2
- import { LogRitualOccurrenceContract, ScheduleRitualContract } from "./ritual.operations.js";
1
+ // @bun
2
+ // src/ritual/ritual.schema.ts
3
+ import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
4
+ var RitualModel = defineSchemaModel({
5
+ name: "Ritual",
6
+ description: "Recurring ritual",
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
+ cadence: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
12
+ dayOfWeek: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
13
+ time: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
14
+ }
15
+ });
16
+ var ScheduleRitualInputModel = defineSchemaModel({
17
+ name: "ScheduleRitualInput",
18
+ description: "Create a ritual",
19
+ fields: {
20
+ spaceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
21
+ title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
22
+ cadence: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
23
+ dayOfWeek: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
24
+ time: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
25
+ facilitatorId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
26
+ }
27
+ });
28
+ var LogRitualOccurrenceInputModel = defineSchemaModel({
29
+ name: "LogRitualOccurrenceInput",
30
+ description: "Record ritual occurrence results",
31
+ fields: {
32
+ ritualId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
33
+ scheduledFor: { type: ScalarTypeEnum.DateTime(), isOptional: false },
34
+ status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
35
+ summary: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
36
+ }
37
+ });
3
38
 
4
- export { LogRitualOccurrenceContract, LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualContract, ScheduleRitualInputModel };
39
+ // src/ritual/ritual.operations.ts
40
+ import { defineCommand } from "@contractspec/lib.contracts";
41
+ var OWNERS = ["@examples.team-hub"];
42
+ var ScheduleRitualContract = defineCommand({
43
+ meta: {
44
+ key: "team.ritual.schedule",
45
+ version: "1.0.0",
46
+ stability: "stable",
47
+ owners: [...OWNERS],
48
+ tags: ["team-hub", "ritual", "schedule"],
49
+ description: "Schedule a recurring ritual.",
50
+ goal: "Team ceremonies.",
51
+ context: "Ritual management."
52
+ },
53
+ io: {
54
+ input: ScheduleRitualInputModel,
55
+ output: RitualModel
56
+ },
57
+ policy: { auth: "user" },
58
+ acceptance: {
59
+ scenarios: [
60
+ {
61
+ key: "schedule-ritual-happy-path",
62
+ given: ["Space exists"],
63
+ when: ["User schedules ritual"],
64
+ then: ["Ritual is scheduled"]
65
+ }
66
+ ],
67
+ examples: [
68
+ {
69
+ key: "schedule-standup",
70
+ input: {
71
+ spaceId: "space-123",
72
+ name: "Daily Standup",
73
+ interval: "daily",
74
+ time: "10:00"
75
+ },
76
+ output: { id: "rit-123", status: "active" }
77
+ }
78
+ ]
79
+ }
80
+ });
81
+ var LogRitualOccurrenceContract = defineCommand({
82
+ meta: {
83
+ key: "team.ritual.logOccurrence",
84
+ version: "1.0.0",
85
+ stability: "stable",
86
+ owners: [...OWNERS],
87
+ tags: ["team-hub", "ritual", "log"],
88
+ description: "Log a ritual occurrence.",
89
+ goal: "Record ritual history.",
90
+ context: "Ritual management."
91
+ },
92
+ io: {
93
+ input: LogRitualOccurrenceInputModel,
94
+ output: RitualModel
95
+ },
96
+ policy: { auth: "user" },
97
+ acceptance: {
98
+ scenarios: [
99
+ {
100
+ key: "log-occurrence-happy-path",
101
+ given: ["Ritual is scheduled"],
102
+ when: ["User logs occurrence"],
103
+ then: ["Occurrence is recorded"]
104
+ }
105
+ ],
106
+ examples: [
107
+ {
108
+ key: "log-standup",
109
+ input: {
110
+ ritualId: "rit-123",
111
+ date: "2025-01-20",
112
+ attendees: ["user-1", "user-2"]
113
+ },
114
+ output: { id: "rit-123", lastOccurrence: "2025-01-20" }
115
+ }
116
+ ]
117
+ }
118
+ });
119
+ export {
120
+ ScheduleRitualInputModel,
121
+ ScheduleRitualContract,
122
+ RitualModel,
123
+ LogRitualOccurrenceInputModel,
124
+ LogRitualOccurrenceContract
125
+ };
@@ -1,107 +1,101 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
3
-
4
- //#region src/ritual/ritual.operations.d.ts
5
1
  /**
6
2
  * Schedule a ritual.
7
3
  */
8
- declare const ScheduleRitualContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
9
- spaceId: {
10
- type: _contractspec_lib_schema0.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- title: {
14
- type: _contractspec_lib_schema0.FieldType<string, string>;
15
- isOptional: false;
16
- };
17
- cadence: {
18
- type: _contractspec_lib_schema0.FieldType<string, string>;
19
- isOptional: false;
20
- };
21
- dayOfWeek: {
22
- type: _contractspec_lib_schema0.FieldType<string, string>;
23
- isOptional: true;
24
- };
25
- time: {
26
- type: _contractspec_lib_schema0.FieldType<string, string>;
27
- isOptional: true;
28
- };
29
- facilitatorId: {
30
- type: _contractspec_lib_schema0.FieldType<string, string>;
31
- isOptional: true;
32
- };
33
- }>, _contractspec_lib_schema0.SchemaModel<{
34
- id: {
35
- type: _contractspec_lib_schema0.FieldType<string, string>;
36
- isOptional: false;
37
- };
38
- spaceId: {
39
- type: _contractspec_lib_schema0.FieldType<string, string>;
40
- isOptional: false;
41
- };
42
- title: {
43
- type: _contractspec_lib_schema0.FieldType<string, string>;
44
- isOptional: false;
45
- };
46
- cadence: {
47
- type: _contractspec_lib_schema0.FieldType<string, string>;
48
- isOptional: false;
49
- };
50
- dayOfWeek: {
51
- type: _contractspec_lib_schema0.FieldType<string, string>;
52
- isOptional: true;
53
- };
54
- time: {
55
- type: _contractspec_lib_schema0.FieldType<string, string>;
56
- isOptional: true;
57
- };
4
+ export declare const ScheduleRitualContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
5
+ spaceId: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ title: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ cadence: {
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ dayOfWeek: {
18
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
19
+ isOptional: true;
20
+ };
21
+ time: {
22
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
23
+ isOptional: true;
24
+ };
25
+ facilitatorId: {
26
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
27
+ isOptional: true;
28
+ };
29
+ }>, import("@contractspec/lib.schema").SchemaModel<{
30
+ id: {
31
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
32
+ isOptional: false;
33
+ };
34
+ spaceId: {
35
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
36
+ isOptional: false;
37
+ };
38
+ title: {
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ cadence: {
43
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
44
+ isOptional: false;
45
+ };
46
+ dayOfWeek: {
47
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
48
+ isOptional: true;
49
+ };
50
+ time: {
51
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
52
+ isOptional: true;
53
+ };
58
54
  }>, undefined>;
59
55
  /**
60
56
  * Log ritual occurrence.
61
57
  */
62
- declare const LogRitualOccurrenceContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
63
- ritualId: {
64
- type: _contractspec_lib_schema0.FieldType<string, string>;
65
- isOptional: false;
66
- };
67
- scheduledFor: {
68
- type: _contractspec_lib_schema0.FieldType<Date, string>;
69
- isOptional: false;
70
- };
71
- status: {
72
- type: _contractspec_lib_schema0.FieldType<string, string>;
73
- isOptional: false;
74
- };
75
- summary: {
76
- type: _contractspec_lib_schema0.FieldType<string, string>;
77
- isOptional: true;
78
- };
79
- }>, _contractspec_lib_schema0.SchemaModel<{
80
- id: {
81
- type: _contractspec_lib_schema0.FieldType<string, string>;
82
- isOptional: false;
83
- };
84
- spaceId: {
85
- type: _contractspec_lib_schema0.FieldType<string, string>;
86
- isOptional: false;
87
- };
88
- title: {
89
- type: _contractspec_lib_schema0.FieldType<string, string>;
90
- isOptional: false;
91
- };
92
- cadence: {
93
- type: _contractspec_lib_schema0.FieldType<string, string>;
94
- isOptional: false;
95
- };
96
- dayOfWeek: {
97
- type: _contractspec_lib_schema0.FieldType<string, string>;
98
- isOptional: true;
99
- };
100
- time: {
101
- type: _contractspec_lib_schema0.FieldType<string, string>;
102
- isOptional: true;
103
- };
58
+ export declare const LogRitualOccurrenceContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
59
+ ritualId: {
60
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
61
+ isOptional: false;
62
+ };
63
+ scheduledFor: {
64
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
65
+ isOptional: false;
66
+ };
67
+ status: {
68
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
69
+ isOptional: false;
70
+ };
71
+ summary: {
72
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
73
+ isOptional: true;
74
+ };
75
+ }>, import("@contractspec/lib.schema").SchemaModel<{
76
+ id: {
77
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
78
+ isOptional: false;
79
+ };
80
+ spaceId: {
81
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
82
+ isOptional: false;
83
+ };
84
+ title: {
85
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
86
+ isOptional: false;
87
+ };
88
+ cadence: {
89
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
90
+ isOptional: false;
91
+ };
92
+ dayOfWeek: {
93
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
94
+ isOptional: true;
95
+ };
96
+ time: {
97
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
98
+ isOptional: true;
99
+ };
104
100
  }>, undefined>;
105
- //#endregion
106
- export { LogRitualOccurrenceContract, ScheduleRitualContract };
107
101
  //# sourceMappingURL=ritual.operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ritual.operations.d.ts","names":[],"sources":["../../src/ritual/ritual.operations.ts"],"mappings":";;;;;;;cAYa,sBAAA,+BAAsB,aAAA,2BAAA,WAAA;;UAsCjC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;UAtCiC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2CtB,2BAAA,+BAA2B,aAAA,2BAAA,WAAA;;UAqCtC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;UArCsC,yBAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"ritual.operations.d.ts","sourceRoot":"","sources":["../../src/ritual/ritual.operations.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsCjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCtC,CAAC"}