@sortipei/api-contracts 0.1.14 → 0.1.16
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.
- package/dist/V1/api/event.d.ts +28 -0
- package/dist/V1/api/event.d.ts.map +1 -1
- package/dist/V1/external/partial-imported-event.d.ts +10 -0
- package/dist/V1/external/partial-imported-event.d.ts.map +1 -1
- package/dist/api-contracts.js +16 -0
- package/dist/api-contracts.mjs +16 -0
- package/dist/shared/event.d.ts +9 -0
- package/dist/shared/event.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/V1/api/event.d.ts
CHANGED
|
@@ -2,10 +2,12 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const EventDTOSchema: z.ZodObject<{
|
|
3
3
|
adress: z.ZodString;
|
|
4
4
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
5
|
+
category: z.ZodNativeEnum<typeof import('../../shared').Category>;
|
|
5
6
|
description: z.ZodString;
|
|
6
7
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
7
8
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
8
9
|
id: z.ZodBranded<z.ZodString, "EventId">;
|
|
10
|
+
imageBlurHashes: z.ZodArray<z.ZodString, "many">;
|
|
9
11
|
imageUrls: z.ZodArray<z.ZodString, "many">;
|
|
10
12
|
isDisplayed: z.ZodBoolean;
|
|
11
13
|
isPromoted: z.ZodBoolean;
|
|
@@ -30,10 +32,12 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
30
32
|
}, "strip", z.ZodTypeAny, {
|
|
31
33
|
adress: string;
|
|
32
34
|
capacity: number | null;
|
|
35
|
+
category: import('../../shared').Category;
|
|
33
36
|
description: string;
|
|
34
37
|
finishTime: string | null;
|
|
35
38
|
hasHandicapAccess: boolean | null;
|
|
36
39
|
id: string & z.BRAND<"EventId">;
|
|
40
|
+
imageBlurHashes: string[];
|
|
37
41
|
imageUrls: string[];
|
|
38
42
|
isDisplayed: boolean;
|
|
39
43
|
isPromoted: boolean;
|
|
@@ -50,10 +54,12 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
50
54
|
}, {
|
|
51
55
|
adress: string;
|
|
52
56
|
capacity: number | null;
|
|
57
|
+
category: import('../../shared').Category;
|
|
53
58
|
description: string;
|
|
54
59
|
finishTime: string | null;
|
|
55
60
|
hasHandicapAccess: boolean | null;
|
|
56
61
|
id: string;
|
|
62
|
+
imageBlurHashes: string[];
|
|
57
63
|
imageUrls: string[];
|
|
58
64
|
isDisplayed: boolean;
|
|
59
65
|
isPromoted: boolean;
|
|
@@ -71,10 +77,12 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
71
77
|
export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
72
78
|
adress: z.ZodString;
|
|
73
79
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
category: z.ZodNativeEnum<typeof import('../../shared').Category>;
|
|
74
81
|
description: z.ZodString;
|
|
75
82
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
76
83
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
77
84
|
id: z.ZodBranded<z.ZodString, "EventId">;
|
|
85
|
+
imageBlurHashes: z.ZodArray<z.ZodString, "many">;
|
|
78
86
|
imageUrls: z.ZodArray<z.ZodString, "many">;
|
|
79
87
|
isDisplayed: z.ZodBoolean;
|
|
80
88
|
link: z.ZodNullable<z.ZodString>;
|
|
@@ -86,10 +94,12 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
86
94
|
}, "strip", z.ZodTypeAny, {
|
|
87
95
|
adress: string;
|
|
88
96
|
capacity: number | null;
|
|
97
|
+
category: import('../../shared').Category;
|
|
89
98
|
description: string;
|
|
90
99
|
finishTime: string | null;
|
|
91
100
|
hasHandicapAccess: boolean | null;
|
|
92
101
|
id: string & z.BRAND<"EventId">;
|
|
102
|
+
imageBlurHashes: string[];
|
|
93
103
|
imageUrls: string[];
|
|
94
104
|
isDisplayed: boolean;
|
|
95
105
|
link: string | null;
|
|
@@ -101,10 +111,12 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
101
111
|
}, {
|
|
102
112
|
adress: string;
|
|
103
113
|
capacity: number | null;
|
|
114
|
+
category: import('../../shared').Category;
|
|
104
115
|
description: string;
|
|
105
116
|
finishTime: string | null;
|
|
106
117
|
hasHandicapAccess: boolean | null;
|
|
107
118
|
id: string;
|
|
119
|
+
imageBlurHashes: string[];
|
|
108
120
|
imageUrls: string[];
|
|
109
121
|
isDisplayed: boolean;
|
|
110
122
|
link: string | null;
|
|
@@ -117,10 +129,12 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
117
129
|
export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
118
130
|
adress: z.ZodString;
|
|
119
131
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
132
|
+
category: z.ZodNativeEnum<typeof import('../../shared').Category>;
|
|
120
133
|
description: z.ZodString;
|
|
121
134
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
122
135
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
123
136
|
id: z.ZodBranded<z.ZodString, "EventId">;
|
|
137
|
+
imageBlurHashes: z.ZodArray<z.ZodString, "many">;
|
|
124
138
|
imageUrls: z.ZodArray<z.ZodString, "many">;
|
|
125
139
|
isDisplayed: z.ZodBoolean;
|
|
126
140
|
link: z.ZodNullable<z.ZodString>;
|
|
@@ -132,9 +146,11 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
132
146
|
}, "id">, "strip", z.ZodTypeAny, {
|
|
133
147
|
adress: string;
|
|
134
148
|
capacity: number | null;
|
|
149
|
+
category: import('../../shared').Category;
|
|
135
150
|
description: string;
|
|
136
151
|
finishTime: string | null;
|
|
137
152
|
hasHandicapAccess: boolean | null;
|
|
153
|
+
imageBlurHashes: string[];
|
|
138
154
|
imageUrls: string[];
|
|
139
155
|
isDisplayed: boolean;
|
|
140
156
|
link: string | null;
|
|
@@ -146,9 +162,11 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
146
162
|
}, {
|
|
147
163
|
adress: string;
|
|
148
164
|
capacity: number | null;
|
|
165
|
+
category: import('../../shared').Category;
|
|
149
166
|
description: string;
|
|
150
167
|
finishTime: string | null;
|
|
151
168
|
hasHandicapAccess: boolean | null;
|
|
169
|
+
imageBlurHashes: string[];
|
|
152
170
|
imageUrls: string[];
|
|
153
171
|
isDisplayed: boolean;
|
|
154
172
|
link: string | null;
|
|
@@ -198,10 +216,12 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
198
216
|
partialEventState: z.ZodObject<{
|
|
199
217
|
adress: z.ZodOptional<z.ZodString>;
|
|
200
218
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
219
|
+
category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
|
|
201
220
|
description: z.ZodOptional<z.ZodString>;
|
|
202
221
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
222
|
hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
204
223
|
id: z.ZodOptional<z.ZodBranded<z.ZodString, "EventId">>;
|
|
224
|
+
imageBlurHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
205
225
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
206
226
|
isDisplayed: z.ZodOptional<z.ZodBoolean>;
|
|
207
227
|
isPromoted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -226,10 +246,12 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
226
246
|
}, "strip", z.ZodTypeAny, {
|
|
227
247
|
adress?: string | undefined;
|
|
228
248
|
capacity?: number | null | undefined;
|
|
249
|
+
category?: import('../../shared').Category | undefined;
|
|
229
250
|
description?: string | undefined;
|
|
230
251
|
finishTime?: string | null | undefined;
|
|
231
252
|
hasHandicapAccess?: boolean | null | undefined;
|
|
232
253
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
254
|
+
imageBlurHashes?: string[] | undefined;
|
|
233
255
|
imageUrls?: string[] | undefined;
|
|
234
256
|
isDisplayed?: boolean | undefined;
|
|
235
257
|
isPromoted?: boolean | undefined;
|
|
@@ -246,10 +268,12 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
246
268
|
}, {
|
|
247
269
|
adress?: string | undefined;
|
|
248
270
|
capacity?: number | null | undefined;
|
|
271
|
+
category?: import('../../shared').Category | undefined;
|
|
249
272
|
description?: string | undefined;
|
|
250
273
|
finishTime?: string | null | undefined;
|
|
251
274
|
hasHandicapAccess?: boolean | null | undefined;
|
|
252
275
|
id?: string | undefined;
|
|
276
|
+
imageBlurHashes?: string[] | undefined;
|
|
253
277
|
imageUrls?: string[] | undefined;
|
|
254
278
|
isDisplayed?: boolean | undefined;
|
|
255
279
|
isPromoted?: boolean | undefined;
|
|
@@ -273,10 +297,12 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
273
297
|
partialEventState: {
|
|
274
298
|
adress?: string | undefined;
|
|
275
299
|
capacity?: number | null | undefined;
|
|
300
|
+
category?: import('../../shared').Category | undefined;
|
|
276
301
|
description?: string | undefined;
|
|
277
302
|
finishTime?: string | null | undefined;
|
|
278
303
|
hasHandicapAccess?: boolean | null | undefined;
|
|
279
304
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
305
|
+
imageBlurHashes?: string[] | undefined;
|
|
280
306
|
imageUrls?: string[] | undefined;
|
|
281
307
|
isDisplayed?: boolean | undefined;
|
|
282
308
|
isPromoted?: boolean | undefined;
|
|
@@ -300,10 +326,12 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
300
326
|
partialEventState: {
|
|
301
327
|
adress?: string | undefined;
|
|
302
328
|
capacity?: number | null | undefined;
|
|
329
|
+
category?: import('../../shared').Category | undefined;
|
|
303
330
|
description?: string | undefined;
|
|
304
331
|
finishTime?: string | null | undefined;
|
|
305
332
|
hasHandicapAccess?: boolean | null | undefined;
|
|
306
333
|
id?: string | undefined;
|
|
334
|
+
imageBlurHashes?: string[] | undefined;
|
|
307
335
|
imageUrls?: string[] | undefined;
|
|
308
336
|
isDisplayed?: boolean | undefined;
|
|
309
337
|
isPromoted?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -3,10 +3,12 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
3
3
|
partialEventState: z.ZodObject<{
|
|
4
4
|
adress: z.ZodOptional<z.ZodString>;
|
|
5
5
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
|
|
6
7
|
description: z.ZodOptional<z.ZodString>;
|
|
7
8
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
9
|
hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
9
10
|
id: z.ZodOptional<z.ZodBranded<z.ZodString, "EventId">>;
|
|
11
|
+
imageBlurHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10
12
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
13
|
isDisplayed: z.ZodOptional<z.ZodBoolean>;
|
|
12
14
|
isPromoted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -31,10 +33,12 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
31
33
|
}, "strip", z.ZodTypeAny, {
|
|
32
34
|
adress?: string | undefined;
|
|
33
35
|
capacity?: number | null | undefined;
|
|
36
|
+
category?: import('../../shared').Category | undefined;
|
|
34
37
|
description?: string | undefined;
|
|
35
38
|
finishTime?: string | null | undefined;
|
|
36
39
|
hasHandicapAccess?: boolean | null | undefined;
|
|
37
40
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
41
|
+
imageBlurHashes?: string[] | undefined;
|
|
38
42
|
imageUrls?: string[] | undefined;
|
|
39
43
|
isDisplayed?: boolean | undefined;
|
|
40
44
|
isPromoted?: boolean | undefined;
|
|
@@ -51,10 +55,12 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
51
55
|
}, {
|
|
52
56
|
adress?: string | undefined;
|
|
53
57
|
capacity?: number | null | undefined;
|
|
58
|
+
category?: import('../../shared').Category | undefined;
|
|
54
59
|
description?: string | undefined;
|
|
55
60
|
finishTime?: string | null | undefined;
|
|
56
61
|
hasHandicapAccess?: boolean | null | undefined;
|
|
57
62
|
id?: string | undefined;
|
|
63
|
+
imageBlurHashes?: string[] | undefined;
|
|
58
64
|
imageUrls?: string[] | undefined;
|
|
59
65
|
isDisplayed?: boolean | undefined;
|
|
60
66
|
isPromoted?: boolean | undefined;
|
|
@@ -78,10 +84,12 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
78
84
|
partialEventState: {
|
|
79
85
|
adress?: string | undefined;
|
|
80
86
|
capacity?: number | null | undefined;
|
|
87
|
+
category?: import('../../shared').Category | undefined;
|
|
81
88
|
description?: string | undefined;
|
|
82
89
|
finishTime?: string | null | undefined;
|
|
83
90
|
hasHandicapAccess?: boolean | null | undefined;
|
|
84
91
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
92
|
+
imageBlurHashes?: string[] | undefined;
|
|
85
93
|
imageUrls?: string[] | undefined;
|
|
86
94
|
isDisplayed?: boolean | undefined;
|
|
87
95
|
isPromoted?: boolean | undefined;
|
|
@@ -104,10 +112,12 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
104
112
|
partialEventState: {
|
|
105
113
|
adress?: string | undefined;
|
|
106
114
|
capacity?: number | null | undefined;
|
|
115
|
+
category?: import('../../shared').Category | undefined;
|
|
107
116
|
description?: string | undefined;
|
|
108
117
|
finishTime?: string | null | undefined;
|
|
109
118
|
hasHandicapAccess?: boolean | null | undefined;
|
|
110
119
|
id?: string | undefined;
|
|
120
|
+
imageBlurHashes?: string[] | undefined;
|
|
111
121
|
imageUrls?: string[] | undefined;
|
|
112
122
|
isDisplayed?: boolean | undefined;
|
|
113
123
|
isPromoted?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partial-imported-event.d.ts","sourceRoot":"","sources":["../../../src/V1/external/partial-imported-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC
|
|
1
|
+
{"version":3,"file":"partial-imported-event.d.ts","sourceRoot":"","sources":["../../../src/V1/external/partial-imported-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
package/dist/api-contracts.js
CHANGED
|
@@ -4065,6 +4065,16 @@ var Region = /* @__PURE__ */ ((Region2) => {
|
|
|
4065
4065
|
return Region2;
|
|
4066
4066
|
})(Region || {});
|
|
4067
4067
|
const RegionSchema = z.nativeEnum(Region);
|
|
4068
|
+
var Category = /* @__PURE__ */ ((Category2) => {
|
|
4069
|
+
Category2["ArtsAndCulture"] = "ArtsAndCulture";
|
|
4070
|
+
Category2["ConferencesAndWorkshops"] = "ConferencesAndWorkshops";
|
|
4071
|
+
Category2["Kids"] = "Kids";
|
|
4072
|
+
Category2["LocalLife"] = "LocalLife";
|
|
4073
|
+
Category2["MusicAndFestivals"] = "MusicAndFestivals";
|
|
4074
|
+
Category2["SportAndWellness"] = "SportAndWellness";
|
|
4075
|
+
return Category2;
|
|
4076
|
+
})(Category || {});
|
|
4077
|
+
const CategorySchema = z.nativeEnum(Category);
|
|
4068
4078
|
const EventIdSchema = UUIDSchema.brand("EventId");
|
|
4069
4079
|
const createEventId = (id = crypto.randomUUID()) => EventIdSchema.parse(id);
|
|
4070
4080
|
const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
|
|
@@ -4074,10 +4084,12 @@ const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
|
|
|
4074
4084
|
const EventDTOSchema = z.object({
|
|
4075
4085
|
adress: StringSchema,
|
|
4076
4086
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4087
|
+
category: CategorySchema,
|
|
4077
4088
|
description: StringSchema,
|
|
4078
4089
|
finishTime: z.string().datetime().nullable(),
|
|
4079
4090
|
hasHandicapAccess: z.boolean().nullable(),
|
|
4080
4091
|
id: EventIdSchema,
|
|
4092
|
+
imageBlurHashes: StringSchema.array(),
|
|
4081
4093
|
imageUrls: URLSchema.array(),
|
|
4082
4094
|
isDisplayed: z.boolean(),
|
|
4083
4095
|
isPromoted: z.boolean(),
|
|
@@ -4095,10 +4107,12 @@ const EventDTOSchema = z.object({
|
|
|
4095
4107
|
const CreateEventDTOSchema = z.object({
|
|
4096
4108
|
adress: StringSchema,
|
|
4097
4109
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4110
|
+
category: CategorySchema,
|
|
4098
4111
|
description: StringSchema,
|
|
4099
4112
|
finishTime: z.string().datetime().nullable(),
|
|
4100
4113
|
hasHandicapAccess: z.boolean().nullable(),
|
|
4101
4114
|
id: EventIdSchema,
|
|
4115
|
+
imageBlurHashes: StringSchema.array(),
|
|
4102
4116
|
imageUrls: URLSchema.array(),
|
|
4103
4117
|
isDisplayed: z.boolean(),
|
|
4104
4118
|
link: URLSchema.nullable(),
|
|
@@ -4197,6 +4211,8 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
4197
4211
|
api: index$2,
|
|
4198
4212
|
external: index$1
|
|
4199
4213
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4214
|
+
exports.Category = Category;
|
|
4215
|
+
exports.CategorySchema = CategorySchema;
|
|
4200
4216
|
exports.CoerceDateSchema = CoerceDateSchema;
|
|
4201
4217
|
exports.CoerceNullableDateSchema = CoerceNullableDateSchema;
|
|
4202
4218
|
exports.ErrorCodes = ErrorCodes;
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4063,6 +4063,16 @@ var Region = /* @__PURE__ */ ((Region2) => {
|
|
|
4063
4063
|
return Region2;
|
|
4064
4064
|
})(Region || {});
|
|
4065
4065
|
const RegionSchema = z.nativeEnum(Region);
|
|
4066
|
+
var Category = /* @__PURE__ */ ((Category2) => {
|
|
4067
|
+
Category2["ArtsAndCulture"] = "ArtsAndCulture";
|
|
4068
|
+
Category2["ConferencesAndWorkshops"] = "ConferencesAndWorkshops";
|
|
4069
|
+
Category2["Kids"] = "Kids";
|
|
4070
|
+
Category2["LocalLife"] = "LocalLife";
|
|
4071
|
+
Category2["MusicAndFestivals"] = "MusicAndFestivals";
|
|
4072
|
+
Category2["SportAndWellness"] = "SportAndWellness";
|
|
4073
|
+
return Category2;
|
|
4074
|
+
})(Category || {});
|
|
4075
|
+
const CategorySchema = z.nativeEnum(Category);
|
|
4066
4076
|
const EventIdSchema = UUIDSchema.brand("EventId");
|
|
4067
4077
|
const createEventId = (id = crypto.randomUUID()) => EventIdSchema.parse(id);
|
|
4068
4078
|
const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
|
|
@@ -4072,10 +4082,12 @@ const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
|
|
|
4072
4082
|
const EventDTOSchema = z.object({
|
|
4073
4083
|
adress: StringSchema,
|
|
4074
4084
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4085
|
+
category: CategorySchema,
|
|
4075
4086
|
description: StringSchema,
|
|
4076
4087
|
finishTime: z.string().datetime().nullable(),
|
|
4077
4088
|
hasHandicapAccess: z.boolean().nullable(),
|
|
4078
4089
|
id: EventIdSchema,
|
|
4090
|
+
imageBlurHashes: StringSchema.array(),
|
|
4079
4091
|
imageUrls: URLSchema.array(),
|
|
4080
4092
|
isDisplayed: z.boolean(),
|
|
4081
4093
|
isPromoted: z.boolean(),
|
|
@@ -4093,10 +4105,12 @@ const EventDTOSchema = z.object({
|
|
|
4093
4105
|
const CreateEventDTOSchema = z.object({
|
|
4094
4106
|
adress: StringSchema,
|
|
4095
4107
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4108
|
+
category: CategorySchema,
|
|
4096
4109
|
description: StringSchema,
|
|
4097
4110
|
finishTime: z.string().datetime().nullable(),
|
|
4098
4111
|
hasHandicapAccess: z.boolean().nullable(),
|
|
4099
4112
|
id: EventIdSchema,
|
|
4113
|
+
imageBlurHashes: StringSchema.array(),
|
|
4100
4114
|
imageUrls: URLSchema.array(),
|
|
4101
4115
|
isDisplayed: z.boolean(),
|
|
4102
4116
|
link: URLSchema.nullable(),
|
|
@@ -4196,6 +4210,8 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
4196
4210
|
external: index$1
|
|
4197
4211
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4198
4212
|
export {
|
|
4213
|
+
Category,
|
|
4214
|
+
CategorySchema,
|
|
4199
4215
|
CoerceDateSchema,
|
|
4200
4216
|
CoerceNullableDateSchema,
|
|
4201
4217
|
ErrorCodes,
|
package/dist/shared/event.d.ts
CHANGED
|
@@ -6,4 +6,13 @@ export declare enum Region {
|
|
|
6
6
|
West = "West"
|
|
7
7
|
}
|
|
8
8
|
export declare const RegionSchema: z.ZodNativeEnum<typeof Region>;
|
|
9
|
+
export declare enum Category {
|
|
10
|
+
ArtsAndCulture = "ArtsAndCulture",
|
|
11
|
+
ConferencesAndWorkshops = "ConferencesAndWorkshops",
|
|
12
|
+
Kids = "Kids",
|
|
13
|
+
LocalLife = "LocalLife",
|
|
14
|
+
MusicAndFestivals = "MusicAndFestivals",
|
|
15
|
+
SportAndWellness = "SportAndWellness"
|
|
16
|
+
}
|
|
17
|
+
export declare const CategorySchema: z.ZodNativeEnum<typeof Category>;
|
|
9
18
|
//# sourceMappingURL=event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/shared/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,MAAM;IAChB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,YAAY,gCAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/shared/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,MAAM;IAChB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,YAAY,gCAAuB,CAAC;AAEjD,oBAAY,QAAQ;IAClB,cAAc,mBAAmB;IACjC,uBAAuB,4BAA4B;IACnD,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;CACtC;AAED,eAAO,MAAM,cAAc,kCAAyB,CAAC"}
|