@uniteverses/shared 1.0.11 → 1.0.13

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.
@@ -119,6 +119,7 @@ export interface TopicWithChildren {
119
119
  export interface CreatePostInput {
120
120
  title: string;
121
121
  body: string;
122
+ topicId?: string;
122
123
  }
123
124
  export interface UpdatePostInput {
124
125
  title: string;
@@ -135,9 +136,11 @@ export interface PostVersion {
135
136
  export interface Post {
136
137
  id: string;
137
138
  userId: string;
139
+ topicId: string | null;
138
140
  createdAt: string | Date;
139
141
  deletedAt: string | Date | null;
140
142
  user: User;
143
+ topic?: Topic | null;
141
144
  versions: PostVersion[];
142
145
  comments?: Comment[];
143
146
  _count?: {
@@ -169,6 +172,70 @@ export interface Comment {
169
172
  versions: CommentVersion[];
170
173
  replies?: Comment[];
171
174
  }
175
+ export interface OrgEvent {
176
+ id: string;
177
+ organizationId: string;
178
+ name: string;
179
+ description: string | null;
180
+ createdAt: string | Date;
181
+ occurrences?: OrgEventOccurrence[];
182
+ _count?: {
183
+ occurrences: number;
184
+ };
185
+ }
186
+ export interface CreateOrgEventInput {
187
+ name: string;
188
+ description?: string;
189
+ }
190
+ export interface UpdateOrgEventInput {
191
+ name?: string;
192
+ description?: string;
193
+ }
194
+ export interface OrgEventOccurrence {
195
+ id: string;
196
+ eventId: string;
197
+ startsAt: string | Date;
198
+ endsAt: string | Date | null;
199
+ location: string | null;
200
+ capacity: number | null;
201
+ description: string | null;
202
+ createdAt: string | Date;
203
+ applicants?: OrgEventOccurrenceApplicant[];
204
+ participants?: OrgEventOccurrenceParticipant[];
205
+ _count?: {
206
+ applicants: number;
207
+ participants: number;
208
+ };
209
+ }
210
+ export interface CreateOrgEventOccurrenceInput {
211
+ startsAt: string;
212
+ endsAt?: string;
213
+ location?: string;
214
+ capacity?: number;
215
+ description?: string;
216
+ }
217
+ export interface UpdateOrgEventOccurrenceInput {
218
+ startsAt?: string;
219
+ endsAt?: string;
220
+ location?: string;
221
+ capacity?: number;
222
+ description?: string;
223
+ }
224
+ export interface OrgEventOccurrenceApplicant {
225
+ id: string;
226
+ occurrenceId: string;
227
+ userId: string;
228
+ status: string;
229
+ appliedAt: string | Date;
230
+ user: User;
231
+ }
232
+ export interface OrgEventOccurrenceParticipant {
233
+ id: string;
234
+ occurrenceId: string;
235
+ userId: string;
236
+ joinedAt: string | Date;
237
+ user: User;
238
+ }
172
239
  export interface FoodGroup {
173
240
  id: string;
174
241
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [