@sortipei/api-contracts 0.1.13 → 0.1.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.
@@ -2,6 +2,7 @@ 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>;
@@ -30,6 +31,7 @@ export declare const EventDTOSchema: z.ZodObject<{
30
31
  }, "strip", z.ZodTypeAny, {
31
32
  adress: string;
32
33
  capacity: number | null;
34
+ category: import('../../shared').Category;
33
35
  description: string;
34
36
  finishTime: string | null;
35
37
  hasHandicapAccess: boolean | null;
@@ -50,6 +52,7 @@ export declare const EventDTOSchema: z.ZodObject<{
50
52
  }, {
51
53
  adress: string;
52
54
  capacity: number | null;
55
+ category: import('../../shared').Category;
53
56
  description: string;
54
57
  finishTime: string | null;
55
58
  hasHandicapAccess: boolean | null;
@@ -71,6 +74,7 @@ export declare const EventDTOSchema: z.ZodObject<{
71
74
  export declare const CreateEventDTOSchema: z.ZodObject<{
72
75
  adress: z.ZodString;
73
76
  capacity: z.ZodNullable<z.ZodNumber>;
77
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
74
78
  description: z.ZodString;
75
79
  finishTime: z.ZodNullable<z.ZodString>;
76
80
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
@@ -86,6 +90,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
86
90
  }, "strip", z.ZodTypeAny, {
87
91
  adress: string;
88
92
  capacity: number | null;
93
+ category: import('../../shared').Category;
89
94
  description: string;
90
95
  finishTime: string | null;
91
96
  hasHandicapAccess: boolean | null;
@@ -101,6 +106,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
101
106
  }, {
102
107
  adress: string;
103
108
  capacity: number | null;
109
+ category: import('../../shared').Category;
104
110
  description: string;
105
111
  finishTime: string | null;
106
112
  hasHandicapAccess: boolean | null;
@@ -117,6 +123,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
117
123
  export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
118
124
  adress: z.ZodString;
119
125
  capacity: z.ZodNullable<z.ZodNumber>;
126
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
120
127
  description: z.ZodString;
121
128
  finishTime: z.ZodNullable<z.ZodString>;
122
129
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
@@ -132,6 +139,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
132
139
  }, "id">, "strip", z.ZodTypeAny, {
133
140
  adress: string;
134
141
  capacity: number | null;
142
+ category: import('../../shared').Category;
135
143
  description: string;
136
144
  finishTime: string | null;
137
145
  hasHandicapAccess: boolean | null;
@@ -146,6 +154,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
146
154
  }, {
147
155
  adress: string;
148
156
  capacity: number | null;
157
+ category: import('../../shared').Category;
149
158
  description: string;
150
159
  finishTime: string | null;
151
160
  hasHandicapAccess: boolean | null;
@@ -192,12 +201,13 @@ export declare const constraints: {
192
201
  };
193
202
  };
194
203
  export declare const ImportDTOSchema: z.ZodObject<{
195
- id: z.ZodString;
196
- userId: z.ZodString;
197
204
  createdAt: z.ZodString;
205
+ id: z.ZodString;
206
+ organizersNames: z.ZodArray<z.ZodString, "many">;
198
207
  partialEventState: z.ZodObject<{
199
208
  adress: z.ZodOptional<z.ZodString>;
200
209
  capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
210
+ category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
201
211
  description: z.ZodOptional<z.ZodString>;
202
212
  finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
213
  hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -226,6 +236,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
226
236
  }, "strip", z.ZodTypeAny, {
227
237
  adress?: string | undefined;
228
238
  capacity?: number | null | undefined;
239
+ category?: import('../../shared').Category | undefined;
229
240
  description?: string | undefined;
230
241
  finishTime?: string | null | undefined;
231
242
  hasHandicapAccess?: boolean | null | undefined;
@@ -246,6 +257,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
246
257
  }, {
247
258
  adress?: string | undefined;
248
259
  capacity?: number | null | undefined;
260
+ category?: import('../../shared').Category | undefined;
249
261
  description?: string | undefined;
250
262
  finishTime?: string | null | undefined;
251
263
  hasHandicapAccess?: boolean | null | undefined;
@@ -264,13 +276,16 @@ export declare const ImportDTOSchema: z.ZodObject<{
264
276
  imageUrl: string | null;
265
277
  }[] | undefined;
266
278
  }>;
279
+ source: z.ZodLiteral<"facebook">;
280
+ userId: z.ZodString;
267
281
  }, "strip", z.ZodTypeAny, {
268
282
  id: string;
269
- userId: string;
270
283
  createdAt: string;
284
+ organizersNames: string[];
271
285
  partialEventState: {
272
286
  adress?: string | undefined;
273
287
  capacity?: number | null | undefined;
288
+ category?: import('../../shared').Category | undefined;
274
289
  description?: string | undefined;
275
290
  finishTime?: string | null | undefined;
276
291
  hasHandicapAccess?: boolean | null | undefined;
@@ -289,13 +304,16 @@ export declare const ImportDTOSchema: z.ZodObject<{
289
304
  imageUrl: string | null;
290
305
  }[] | undefined;
291
306
  };
307
+ source: "facebook";
308
+ userId: string;
292
309
  }, {
293
310
  id: string;
294
- userId: string;
295
311
  createdAt: string;
312
+ organizersNames: string[];
296
313
  partialEventState: {
297
314
  adress?: string | undefined;
298
315
  capacity?: number | null | undefined;
316
+ category?: import('../../shared').Category | undefined;
299
317
  description?: string | undefined;
300
318
  finishTime?: string | null | undefined;
301
319
  hasHandicapAccess?: boolean | null | undefined;
@@ -314,6 +332,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
314
332
  imageUrl: string | null;
315
333
  }[] | undefined;
316
334
  };
335
+ source: "facebook";
336
+ userId: string;
317
337
  }>;
318
338
  export type ImportDTO = z.infer<typeof ImportDTOSchema>;
319
339
  //# sourceMappingURL=event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe/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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB/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,6 +3,7 @@ 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>>;
@@ -31,6 +32,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
31
32
  }, "strip", z.ZodTypeAny, {
32
33
  adress?: string | undefined;
33
34
  capacity?: number | null | undefined;
35
+ category?: import('../../shared').Category | undefined;
34
36
  description?: string | undefined;
35
37
  finishTime?: string | null | undefined;
36
38
  hasHandicapAccess?: boolean | null | undefined;
@@ -51,6 +53,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
51
53
  }, {
52
54
  adress?: string | undefined;
53
55
  capacity?: number | null | undefined;
56
+ category?: import('../../shared').Category | undefined;
54
57
  description?: string | undefined;
55
58
  finishTime?: string | null | undefined;
56
59
  hasHandicapAccess?: boolean | null | undefined;
@@ -71,11 +74,14 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
71
74
  }>;
72
75
  token: z.ZodString;
73
76
  userId: z.ZodString;
77
+ organizersNames: z.ZodArray<z.ZodString, "many">;
78
+ source: z.ZodLiteral<"facebook">;
74
79
  }, "strip", z.ZodTypeAny, {
75
- userId: string;
80
+ organizersNames: string[];
76
81
  partialEventState: {
77
82
  adress?: string | undefined;
78
83
  capacity?: number | null | undefined;
84
+ category?: import('../../shared').Category | undefined;
79
85
  description?: string | undefined;
80
86
  finishTime?: string | null | undefined;
81
87
  hasHandicapAccess?: boolean | null | undefined;
@@ -94,12 +100,15 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
94
100
  imageUrl: string | null;
95
101
  }[] | undefined;
96
102
  };
103
+ source: "facebook";
104
+ userId: string;
97
105
  token: string;
98
106
  }, {
99
- userId: string;
107
+ organizersNames: string[];
100
108
  partialEventState: {
101
109
  adress?: string | undefined;
102
110
  capacity?: number | null | undefined;
111
+ category?: import('../../shared').Category | undefined;
103
112
  description?: string | undefined;
104
113
  finishTime?: string | null | undefined;
105
114
  hasHandicapAccess?: boolean | null | undefined;
@@ -118,6 +127,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
118
127
  imageUrl: string | null;
119
128
  }[] | undefined;
120
129
  };
130
+ source: "facebook";
131
+ userId: string;
121
132
  token: string;
122
133
  }>;
123
134
  export type CreatePartialImportedEventDTO = z.infer<typeof CreatePartialImportedEventDTOSchema>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
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"}
@@ -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,6 +4084,7 @@ 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(),
@@ -4095,6 +4106,7 @@ const EventDTOSchema = z.object({
4095
4106
  const CreateEventDTOSchema = z.object({
4096
4107
  adress: StringSchema,
4097
4108
  capacity: SafeNonNegativeIntegerSchema.nullable(),
4109
+ category: CategorySchema,
4098
4110
  description: StringSchema,
4099
4111
  finishTime: z.string().datetime().nullable(),
4100
4112
  hasHandicapAccess: z.boolean().nullable(),
@@ -4132,10 +4144,12 @@ const constraints$2 = {
4132
4144
  }
4133
4145
  };
4134
4146
  const ImportDTOSchema = z.object({
4147
+ createdAt: z.string().datetime(),
4135
4148
  id: StringSchema,
4136
- userId: StringSchema,
4137
- createdAt: StringSchema.datetime(),
4138
- partialEventState: EventDTOSchema.partial()
4149
+ organizersNames: StringSchema.array(),
4150
+ partialEventState: EventDTOSchema.partial(),
4151
+ source: z.literal("facebook"),
4152
+ userId: StringSchema
4139
4153
  });
4140
4154
  const OrganizerDTOSchema = z.object({
4141
4155
  eventsIds: EventIdSchema.array(),
@@ -4182,7 +4196,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4182
4196
  const CreatePartialImportedEventDTOSchema = z.object({
4183
4197
  partialEventState: EventDTOSchema.partial(),
4184
4198
  token: StringSchema,
4185
- userId: StringSchema
4199
+ userId: StringSchema,
4200
+ organizersNames: StringSchema.array(),
4201
+ source: z.literal("facebook")
4186
4202
  });
4187
4203
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4188
4204
  __proto__: null,
@@ -4193,6 +4209,8 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
4193
4209
  api: index$2,
4194
4210
  external: index$1
4195
4211
  }, Symbol.toStringTag, { value: "Module" }));
4212
+ exports.Category = Category;
4213
+ exports.CategorySchema = CategorySchema;
4196
4214
  exports.CoerceDateSchema = CoerceDateSchema;
4197
4215
  exports.CoerceNullableDateSchema = CoerceNullableDateSchema;
4198
4216
  exports.ErrorCodes = ErrorCodes;
@@ -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,6 +4082,7 @@ 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(),
@@ -4093,6 +4104,7 @@ const EventDTOSchema = z.object({
4093
4104
  const CreateEventDTOSchema = z.object({
4094
4105
  adress: StringSchema,
4095
4106
  capacity: SafeNonNegativeIntegerSchema.nullable(),
4107
+ category: CategorySchema,
4096
4108
  description: StringSchema,
4097
4109
  finishTime: z.string().datetime().nullable(),
4098
4110
  hasHandicapAccess: z.boolean().nullable(),
@@ -4130,10 +4142,12 @@ const constraints$2 = {
4130
4142
  }
4131
4143
  };
4132
4144
  const ImportDTOSchema = z.object({
4145
+ createdAt: z.string().datetime(),
4133
4146
  id: StringSchema,
4134
- userId: StringSchema,
4135
- createdAt: StringSchema.datetime(),
4136
- partialEventState: EventDTOSchema.partial()
4147
+ organizersNames: StringSchema.array(),
4148
+ partialEventState: EventDTOSchema.partial(),
4149
+ source: z.literal("facebook"),
4150
+ userId: StringSchema
4137
4151
  });
4138
4152
  const OrganizerDTOSchema = z.object({
4139
4153
  eventsIds: EventIdSchema.array(),
@@ -4180,7 +4194,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4180
4194
  const CreatePartialImportedEventDTOSchema = z.object({
4181
4195
  partialEventState: EventDTOSchema.partial(),
4182
4196
  token: StringSchema,
4183
- userId: StringSchema
4197
+ userId: StringSchema,
4198
+ organizersNames: StringSchema.array(),
4199
+ source: z.literal("facebook")
4184
4200
  });
4185
4201
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4186
4202
  __proto__: null,
@@ -4192,6 +4208,8 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
4192
4208
  external: index$1
4193
4209
  }, Symbol.toStringTag, { value: "Module" }));
4194
4210
  export {
4211
+ Category,
4212
+ CategorySchema,
4195
4213
  CoerceDateSchema,
4196
4214
  CoerceNullableDateSchema,
4197
4215
  ErrorCodes,
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",