@uniteverses/shared 1.0.59 → 1.0.61
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,19 +65,42 @@ export interface DeleteProfileResult {
|
|
|
65
65
|
export interface CheckAdminResult {
|
|
66
66
|
isAdmin: boolean;
|
|
67
67
|
}
|
|
68
|
-
export interface
|
|
68
|
+
export interface TypeTranslation {
|
|
69
69
|
id: string;
|
|
70
|
-
|
|
70
|
+
typeId: string;
|
|
71
71
|
languageId: string;
|
|
72
72
|
name: string;
|
|
73
73
|
createdAt: string | Date;
|
|
74
74
|
language: Language;
|
|
75
75
|
}
|
|
76
|
-
export interface
|
|
76
|
+
export interface Type {
|
|
77
77
|
id: string;
|
|
78
78
|
emoji: string;
|
|
79
79
|
createdAt: string | Date;
|
|
80
|
-
translations?:
|
|
80
|
+
translations?: TypeTranslation[];
|
|
81
|
+
groups?: TypeGroupType[];
|
|
82
|
+
}
|
|
83
|
+
export interface TypeGroupTranslation {
|
|
84
|
+
id: string;
|
|
85
|
+
typeGroupId: string;
|
|
86
|
+
languageId: string;
|
|
87
|
+
name: string;
|
|
88
|
+
createdAt: string | Date;
|
|
89
|
+
language: Language;
|
|
90
|
+
}
|
|
91
|
+
export interface TypeGroupType {
|
|
92
|
+
id: string;
|
|
93
|
+
typeGroupId: string;
|
|
94
|
+
typeId: string;
|
|
95
|
+
createdAt: string | Date;
|
|
96
|
+
type?: Type;
|
|
97
|
+
}
|
|
98
|
+
export interface TypeGroup {
|
|
99
|
+
id: string;
|
|
100
|
+
emoji: string;
|
|
101
|
+
createdAt: string | Date;
|
|
102
|
+
translations?: TypeGroupTranslation[];
|
|
103
|
+
types?: TypeGroupType[];
|
|
81
104
|
}
|
|
82
105
|
export interface OrganizationAddress {
|
|
83
106
|
id: string;
|
|
@@ -111,7 +134,7 @@ export interface Organization {
|
|
|
111
134
|
description?: string | null;
|
|
112
135
|
createdAt: string | Date;
|
|
113
136
|
types: {
|
|
114
|
-
type:
|
|
137
|
+
type: Type;
|
|
115
138
|
}[];
|
|
116
139
|
addresses: OrganizationAddress[];
|
|
117
140
|
phones: OrganizationPhone[];
|
|
@@ -160,11 +183,13 @@ export interface CreatePostInput {
|
|
|
160
183
|
topicId?: string;
|
|
161
184
|
organizationId?: string;
|
|
162
185
|
imageStoragePath?: string | null;
|
|
186
|
+
typeIds?: string[];
|
|
163
187
|
}
|
|
164
188
|
export interface UpdatePostInput {
|
|
165
189
|
title: string;
|
|
166
190
|
body: string;
|
|
167
191
|
imageStoragePath?: string | null;
|
|
192
|
+
typeIds?: string[];
|
|
168
193
|
}
|
|
169
194
|
export interface PostVersion {
|
|
170
195
|
id: string;
|
|
@@ -198,6 +223,9 @@ export interface Post {
|
|
|
198
223
|
versions: PostVersion[];
|
|
199
224
|
translations?: PostTranslation[];
|
|
200
225
|
comments?: Comment[];
|
|
226
|
+
types?: {
|
|
227
|
+
type: Type;
|
|
228
|
+
}[];
|
|
201
229
|
_count?: {
|
|
202
230
|
comments: number;
|
|
203
231
|
};
|
|
@@ -228,6 +256,9 @@ export interface Deal {
|
|
|
228
256
|
deletedAt: string | Date | null;
|
|
229
257
|
organization?: Organization | null;
|
|
230
258
|
translations?: DealTranslation[];
|
|
259
|
+
types?: {
|
|
260
|
+
type: Type;
|
|
261
|
+
}[];
|
|
231
262
|
}
|
|
232
263
|
export interface CreateDealInput {
|
|
233
264
|
organizationId: string;
|
|
@@ -240,6 +271,7 @@ export interface CreateDealInput {
|
|
|
240
271
|
bogoGet?: number | null;
|
|
241
272
|
startsAt?: string | null;
|
|
242
273
|
endsAt?: string | null;
|
|
274
|
+
typeIds?: string[];
|
|
243
275
|
}
|
|
244
276
|
export interface UpdateDealInput {
|
|
245
277
|
imageStoragePath?: string | null;
|
|
@@ -251,6 +283,7 @@ export interface UpdateDealInput {
|
|
|
251
283
|
bogoGet?: number | null;
|
|
252
284
|
startsAt?: string | null;
|
|
253
285
|
endsAt?: string | null;
|
|
286
|
+
typeIds?: string[];
|
|
254
287
|
}
|
|
255
288
|
export interface CreateCommentInput {
|
|
256
289
|
body: string;
|
|
@@ -300,6 +333,9 @@ export interface OrgEvent {
|
|
|
300
333
|
occurrences?: OrgEventOccurrence[];
|
|
301
334
|
translations: OrgEventTranslation[];
|
|
302
335
|
imageUrl?: string | null;
|
|
336
|
+
types?: {
|
|
337
|
+
type: Type;
|
|
338
|
+
}[];
|
|
303
339
|
_count?: {
|
|
304
340
|
occurrences: number;
|
|
305
341
|
};
|
|
@@ -308,12 +344,14 @@ export interface CreateOrgEventInput {
|
|
|
308
344
|
translations: OrgEventTranslationInput[];
|
|
309
345
|
isActive?: boolean;
|
|
310
346
|
registrationRequired?: boolean;
|
|
347
|
+
typeIds?: string[];
|
|
311
348
|
}
|
|
312
349
|
export interface UpdateOrgEventInput {
|
|
313
350
|
translations: OrgEventTranslationInput[];
|
|
314
351
|
isActive?: boolean;
|
|
315
352
|
registrationRequired?: boolean;
|
|
316
353
|
imageStoragePath?: string | null;
|
|
354
|
+
typeIds?: string[];
|
|
317
355
|
}
|
|
318
356
|
export interface OrgEventOccurrenceTranslation {
|
|
319
357
|
id: string;
|