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