@uniteverses/shared 1.0.58 → 1.0.60

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.
@@ -65,10 +65,19 @@ export interface DeleteProfileResult {
65
65
  export interface CheckAdminResult {
66
66
  isAdmin: boolean;
67
67
  }
68
- export interface OrganizationType {
68
+ export interface TypeTranslation {
69
+ id: string;
70
+ typeId: string;
71
+ languageId: string;
72
+ name: string;
73
+ createdAt: string | Date;
74
+ language: Language;
75
+ }
76
+ export interface Type {
69
77
  id: string;
70
78
  emoji: string;
71
79
  createdAt: string | Date;
80
+ translations?: TypeTranslation[];
72
81
  }
73
82
  export interface OrganizationAddress {
74
83
  id: string;
@@ -102,7 +111,7 @@ export interface Organization {
102
111
  description?: string | null;
103
112
  createdAt: string | Date;
104
113
  types: {
105
- type: OrganizationType;
114
+ type: Type;
106
115
  }[];
107
116
  addresses: OrganizationAddress[];
108
117
  phones: OrganizationPhone[];
@@ -151,11 +160,13 @@ export interface CreatePostInput {
151
160
  topicId?: string;
152
161
  organizationId?: string;
153
162
  imageStoragePath?: string | null;
163
+ typeIds?: string[];
154
164
  }
155
165
  export interface UpdatePostInput {
156
166
  title: string;
157
167
  body: string;
158
168
  imageStoragePath?: string | null;
169
+ typeIds?: string[];
159
170
  }
160
171
  export interface PostVersion {
161
172
  id: string;
@@ -189,6 +200,9 @@ export interface Post {
189
200
  versions: PostVersion[];
190
201
  translations?: PostTranslation[];
191
202
  comments?: Comment[];
203
+ types?: {
204
+ type: Type;
205
+ }[];
192
206
  _count?: {
193
207
  comments: number;
194
208
  };
@@ -219,6 +233,9 @@ export interface Deal {
219
233
  deletedAt: string | Date | null;
220
234
  organization?: Organization | null;
221
235
  translations?: DealTranslation[];
236
+ types?: {
237
+ type: Type;
238
+ }[];
222
239
  }
223
240
  export interface CreateDealInput {
224
241
  organizationId: string;
@@ -231,6 +248,7 @@ export interface CreateDealInput {
231
248
  bogoGet?: number | null;
232
249
  startsAt?: string | null;
233
250
  endsAt?: string | null;
251
+ typeIds?: string[];
234
252
  }
235
253
  export interface UpdateDealInput {
236
254
  imageStoragePath?: string | null;
@@ -242,6 +260,7 @@ export interface UpdateDealInput {
242
260
  bogoGet?: number | null;
243
261
  startsAt?: string | null;
244
262
  endsAt?: string | null;
263
+ typeIds?: string[];
245
264
  }
246
265
  export interface CreateCommentInput {
247
266
  body: string;
@@ -291,6 +310,9 @@ export interface OrgEvent {
291
310
  occurrences?: OrgEventOccurrence[];
292
311
  translations: OrgEventTranslation[];
293
312
  imageUrl?: string | null;
313
+ types?: {
314
+ type: Type;
315
+ }[];
294
316
  _count?: {
295
317
  occurrences: number;
296
318
  };
@@ -299,12 +321,14 @@ export interface CreateOrgEventInput {
299
321
  translations: OrgEventTranslationInput[];
300
322
  isActive?: boolean;
301
323
  registrationRequired?: boolean;
324
+ typeIds?: string[];
302
325
  }
303
326
  export interface UpdateOrgEventInput {
304
327
  translations: OrgEventTranslationInput[];
305
328
  isActive?: boolean;
306
329
  registrationRequired?: boolean;
307
330
  imageStoragePath?: string | null;
331
+ typeIds?: string[];
308
332
  }
309
333
  export interface OrgEventOccurrenceTranslation {
310
334
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.58",
3
+ "version": "1.0.60",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [