@uniteverses/shared 1.0.13 → 1.0.15

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.
@@ -172,23 +172,46 @@ export interface Comment {
172
172
  versions: CommentVersion[];
173
173
  replies?: Comment[];
174
174
  }
175
- export interface OrgEvent {
175
+ export interface OrgEventTranslation {
176
176
  id: string;
177
- organizationId: string;
177
+ eventId: string;
178
+ languageId: string;
178
179
  name: string;
179
180
  description: string | null;
180
181
  createdAt: string | Date;
182
+ language: Language;
183
+ }
184
+ export interface OrgEventTranslationInput {
185
+ languageId: string;
186
+ name: string;
187
+ description?: string;
188
+ }
189
+ export interface OrgEvent {
190
+ id: string;
191
+ organizationId: string;
192
+ createdAt: string | Date;
181
193
  occurrences?: OrgEventOccurrence[];
194
+ translations: OrgEventTranslation[];
182
195
  _count?: {
183
196
  occurrences: number;
184
197
  };
185
198
  }
186
199
  export interface CreateOrgEventInput {
187
- name: string;
188
- description?: string;
200
+ translations: OrgEventTranslationInput[];
189
201
  }
190
202
  export interface UpdateOrgEventInput {
191
- name?: string;
203
+ translations: OrgEventTranslationInput[];
204
+ }
205
+ export interface OrgEventOccurrenceTranslation {
206
+ id: string;
207
+ occurrenceId: string;
208
+ languageId: string;
209
+ description: string | null;
210
+ createdAt: string | Date;
211
+ language: Language;
212
+ }
213
+ export interface OrgEventOccurrenceTranslationInput {
214
+ languageId: string;
192
215
  description?: string;
193
216
  }
194
217
  export interface OrgEventOccurrence {
@@ -198,10 +221,10 @@ export interface OrgEventOccurrence {
198
221
  endsAt: string | Date | null;
199
222
  location: string | null;
200
223
  capacity: number | null;
201
- description: string | null;
202
224
  createdAt: string | Date;
203
225
  applicants?: OrgEventOccurrenceApplicant[];
204
226
  participants?: OrgEventOccurrenceParticipant[];
227
+ translations: OrgEventOccurrenceTranslation[];
205
228
  _count?: {
206
229
  applicants: number;
207
230
  participants: number;
@@ -212,14 +235,14 @@ export interface CreateOrgEventOccurrenceInput {
212
235
  endsAt?: string;
213
236
  location?: string;
214
237
  capacity?: number;
215
- description?: string;
238
+ translations?: OrgEventOccurrenceTranslationInput[];
216
239
  }
217
240
  export interface UpdateOrgEventOccurrenceInput {
218
241
  startsAt?: string;
219
242
  endsAt?: string;
220
243
  location?: string;
221
244
  capacity?: number;
222
- description?: string;
245
+ translations?: OrgEventOccurrenceTranslationInput[];
223
246
  }
224
247
  export interface OrgEventOccurrenceApplicant {
225
248
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [