@sortipei/api-contracts 0.1.12 → 0.1.13

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.
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ export declare const FileUploadDTOSchema: z.ZodObject<{
3
+ publicUrl: z.ZodString;
4
+ uploadUrl: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ publicUrl: string;
7
+ uploadUrl: string;
8
+ }, {
9
+ publicUrl: string;
10
+ uploadUrl: string;
11
+ }>;
12
+ export type FileUploadDTO = z.infer<typeof FileUploadDTOSchema>;
13
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/V1/api/common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -17,12 +17,15 @@ export declare const EventDTOSchema: z.ZodObject<{
17
17
  organizers: z.ZodArray<z.ZodObject<{
18
18
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
19
19
  name: z.ZodString;
20
+ imageUrl: z.ZodNullable<z.ZodString>;
20
21
  }, "strip", z.ZodTypeAny, {
21
22
  id: string & z.BRAND<"OrganizerId">;
22
23
  name: string;
24
+ imageUrl: string | null;
23
25
  }, {
24
26
  id: string;
25
27
  name: string;
28
+ imageUrl: string | null;
26
29
  }>, "many">;
27
30
  }, "strip", z.ZodTypeAny, {
28
31
  adress: string;
@@ -42,6 +45,7 @@ export declare const EventDTOSchema: z.ZodObject<{
42
45
  organizers: {
43
46
  id: string & z.BRAND<"OrganizerId">;
44
47
  name: string;
48
+ imageUrl: string | null;
45
49
  }[];
46
50
  }, {
47
51
  adress: string;
@@ -61,6 +65,7 @@ export declare const EventDTOSchema: z.ZodObject<{
61
65
  organizers: {
62
66
  id: string;
63
67
  name: string;
68
+ imageUrl: string | null;
64
69
  }[];
65
70
  }>;
66
71
  export declare const CreateEventDTOSchema: z.ZodObject<{
@@ -167,21 +172,10 @@ export declare const PromoteEventDTOSchema: z.ZodObject<{
167
172
  }, {
168
173
  isPromoted: boolean;
169
174
  }>;
170
- export declare const EventFileUploadsDTOSchema: z.ZodArray<z.ZodObject<{
171
- publicUrl: z.ZodString;
172
- uploadUrl: z.ZodString;
173
- }, "strip", z.ZodTypeAny, {
174
- publicUrl: string;
175
- uploadUrl: string;
176
- }, {
177
- publicUrl: string;
178
- uploadUrl: string;
179
- }>, "many">;
180
175
  export type CreateEventDTO = z.infer<typeof CreateEventDTOSchema>;
181
176
  export type UpdateEventDTO = z.infer<typeof UpdateEventDTOSchema>;
182
177
  export type DisplayEventDTO = z.infer<typeof DisplayEventDTOSchema>;
183
178
  export type PromoteEventDTO = z.infer<typeof PromoteEventDTOSchema>;
184
- export type EventFileUploadsDTO = z.infer<typeof EventFileUploadsDTOSchema>;
185
179
  export type EventDTO = z.infer<typeof EventDTOSchema>;
186
180
  export declare const constraints: {
187
181
  adress: {
@@ -219,12 +213,15 @@ export declare const ImportDTOSchema: z.ZodObject<{
219
213
  organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
220
214
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
221
215
  name: z.ZodString;
216
+ imageUrl: z.ZodNullable<z.ZodString>;
222
217
  }, "strip", z.ZodTypeAny, {
223
218
  id: string & z.BRAND<"OrganizerId">;
224
219
  name: string;
220
+ imageUrl: string | null;
225
221
  }, {
226
222
  id: string;
227
223
  name: string;
224
+ imageUrl: string | null;
228
225
  }>, "many">>;
229
226
  }, "strip", z.ZodTypeAny, {
230
227
  adress?: string | undefined;
@@ -244,6 +241,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
244
241
  organizers?: {
245
242
  id: string & z.BRAND<"OrganizerId">;
246
243
  name: string;
244
+ imageUrl: string | null;
247
245
  }[] | undefined;
248
246
  }, {
249
247
  adress?: string | undefined;
@@ -263,6 +261,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
263
261
  organizers?: {
264
262
  id: string;
265
263
  name: string;
264
+ imageUrl: string | null;
266
265
  }[] | undefined;
267
266
  }>;
268
267
  }, "strip", z.ZodTypeAny, {
@@ -287,6 +286,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
287
286
  organizers?: {
288
287
  id: string & z.BRAND<"OrganizerId">;
289
288
  name: string;
289
+ imageUrl: string | null;
290
290
  }[] | undefined;
291
291
  };
292
292
  }, {
@@ -311,6 +311,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
311
311
  organizers?: {
312
312
  id: string;
313
313
  name: string;
314
+ imageUrl: string | null;
314
315
  }[] | undefined;
315
316
  };
316
317
  }>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBzB,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,eAAO,MAAM,yBAAyB;;;;;;;;;WAK5B,CAAC;AAEX,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;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,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":"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,5 +1,6 @@
1
1
  export * from './event';
2
2
  export * from './organizer';
3
+ export * from './common';
3
4
  export declare const constraints: {
4
5
  events: {
5
6
  adress: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAK5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AAKzB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
@@ -2,33 +2,44 @@ import { z } from 'zod';
2
2
  export declare const OrganizerDTOSchema: z.ZodObject<{
3
3
  eventsIds: z.ZodArray<z.ZodBranded<z.ZodString, "EventId">, "many">;
4
4
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
5
+ imageUrl: z.ZodNullable<z.ZodString>;
5
6
  name: z.ZodString;
6
7
  }, "strip", z.ZodTypeAny, {
7
8
  id: string & z.BRAND<"OrganizerId">;
8
9
  name: string;
10
+ imageUrl: string | null;
9
11
  eventsIds: (string & z.BRAND<"EventId">)[];
10
12
  }, {
11
13
  id: string;
12
14
  name: string;
15
+ imageUrl: string | null;
13
16
  eventsIds: string[];
14
17
  }>;
15
18
  export declare const CreateOrganizerDTOSchema: z.ZodObject<{
16
19
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
20
+ imageUrl: z.ZodNullable<z.ZodString>;
17
21
  name: z.ZodString;
18
22
  }, "strip", z.ZodTypeAny, {
19
23
  id: string & z.BRAND<"OrganizerId">;
20
24
  name: string;
25
+ imageUrl: string | null;
21
26
  }, {
22
27
  id: string;
23
28
  name: string;
29
+ imageUrl: string | null;
24
30
  }>;
25
- export declare const UpdateOrganizerDTOSchema: z.ZodObject<Omit<{
31
+ export declare const UpdateOrganizerDTOSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
26
32
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
33
+ imageUrl: z.ZodNullable<z.ZodString>;
27
34
  name: z.ZodString;
28
- }, "id">, "strip", z.ZodTypeAny, {
35
+ }, "id">, {
36
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }>, "strip", z.ZodTypeAny, {
29
38
  name: string;
39
+ imageUrl?: string | null | undefined;
30
40
  }, {
31
41
  name: string;
42
+ imageUrl?: string | null | undefined;
32
43
  }>;
33
44
  export type CreateOrganizerDTO = z.infer<typeof CreateOrganizerDTOSchema>;
34
45
  export type UpdateOrganizerDTO = z.infer<typeof UpdateOrganizerDTOSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"organizer.d.ts","sourceRoot":"","sources":["../../../src/V1/api/organizer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;EAA8C,CAAC;AAEpF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC"}
1
+ {"version":3,"file":"organizer.d.ts","sourceRoot":"","sources":["../../../src/V1/api/organizer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAEnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC"}
@@ -18,12 +18,15 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
18
18
  organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
19
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
20
20
  name: z.ZodString;
21
+ imageUrl: z.ZodNullable<z.ZodString>;
21
22
  }, "strip", z.ZodTypeAny, {
22
23
  id: string & z.BRAND<"OrganizerId">;
23
24
  name: string;
25
+ imageUrl: string | null;
24
26
  }, {
25
27
  id: string;
26
28
  name: string;
29
+ imageUrl: string | null;
27
30
  }>, "many">>;
28
31
  }, "strip", z.ZodTypeAny, {
29
32
  adress?: string | undefined;
@@ -43,6 +46,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
43
46
  organizers?: {
44
47
  id: string & z.BRAND<"OrganizerId">;
45
48
  name: string;
49
+ imageUrl: string | null;
46
50
  }[] | undefined;
47
51
  }, {
48
52
  adress?: string | undefined;
@@ -62,6 +66,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
62
66
  organizers?: {
63
67
  id: string;
64
68
  name: string;
69
+ imageUrl: string | null;
65
70
  }[] | undefined;
66
71
  }>;
67
72
  token: z.ZodString;
@@ -86,6 +91,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
86
91
  organizers?: {
87
92
  id: string & z.BRAND<"OrganizerId">;
88
93
  name: string;
94
+ imageUrl: string | null;
89
95
  }[] | undefined;
90
96
  };
91
97
  token: string;
@@ -109,6 +115,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
109
115
  organizers?: {
110
116
  id: string;
111
117
  name: string;
118
+ imageUrl: string | null;
112
119
  }[] | undefined;
113
120
  };
114
121
  token: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -4088,7 +4088,8 @@ const EventDTOSchema = z.object({
4088
4088
  title: StringSchema,
4089
4089
  organizers: z.object({
4090
4090
  id: OrganizerIdSchema,
4091
- name: StringSchema
4091
+ name: StringSchema,
4092
+ imageUrl: URLSchema.nullable()
4092
4093
  }).array().min(1)
4093
4094
  });
4094
4095
  const CreateEventDTOSchema = z.object({
@@ -4116,10 +4117,6 @@ const DisplayEventDTOSchema = z.object({
4116
4117
  const PromoteEventDTOSchema = z.object({
4117
4118
  isPromoted: z.boolean()
4118
4119
  });
4119
- const EventFileUploadsDTOSchema = z.object({
4120
- publicUrl: URLSchema,
4121
- uploadUrl: URLSchema
4122
- }).array();
4123
4120
  const constraints$2 = {
4124
4121
  adress: {
4125
4122
  minLength: 3,
@@ -4143,19 +4140,27 @@ const ImportDTOSchema = z.object({
4143
4140
  const OrganizerDTOSchema = z.object({
4144
4141
  eventsIds: EventIdSchema.array(),
4145
4142
  id: OrganizerIdSchema,
4143
+ imageUrl: URLSchema.nullable(),
4146
4144
  name: StringSchema
4147
4145
  });
4148
4146
  const CreateOrganizerDTOSchema = z.object({
4149
4147
  id: OrganizerIdSchema,
4148
+ imageUrl: URLSchema.nullable(),
4150
4149
  name: StringSchema
4151
4150
  });
4152
- const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true });
4151
+ const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true }).extend({
4152
+ imageUrl: URLSchema.nullable().optional()
4153
+ });
4153
4154
  const constraints$1 = {
4154
4155
  name: {
4155
4156
  minLength: 3,
4156
4157
  maxLength: 100
4157
4158
  }
4158
4159
  };
4160
+ const FileUploadDTOSchema = z.object({
4161
+ publicUrl: URLSchema,
4162
+ uploadUrl: URLSchema
4163
+ });
4159
4164
  const constraints = {
4160
4165
  events: constraints$2,
4161
4166
  organizers: constraints$1
@@ -4166,7 +4171,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4166
4171
  CreateOrganizerDTOSchema,
4167
4172
  DisplayEventDTOSchema,
4168
4173
  EventDTOSchema,
4169
- EventFileUploadsDTOSchema,
4174
+ FileUploadDTOSchema,
4170
4175
  ImportDTOSchema,
4171
4176
  OrganizerDTOSchema,
4172
4177
  PromoteEventDTOSchema,
@@ -4086,7 +4086,8 @@ const EventDTOSchema = z.object({
4086
4086
  title: StringSchema,
4087
4087
  organizers: z.object({
4088
4088
  id: OrganizerIdSchema,
4089
- name: StringSchema
4089
+ name: StringSchema,
4090
+ imageUrl: URLSchema.nullable()
4090
4091
  }).array().min(1)
4091
4092
  });
4092
4093
  const CreateEventDTOSchema = z.object({
@@ -4114,10 +4115,6 @@ const DisplayEventDTOSchema = z.object({
4114
4115
  const PromoteEventDTOSchema = z.object({
4115
4116
  isPromoted: z.boolean()
4116
4117
  });
4117
- const EventFileUploadsDTOSchema = z.object({
4118
- publicUrl: URLSchema,
4119
- uploadUrl: URLSchema
4120
- }).array();
4121
4118
  const constraints$2 = {
4122
4119
  adress: {
4123
4120
  minLength: 3,
@@ -4141,19 +4138,27 @@ const ImportDTOSchema = z.object({
4141
4138
  const OrganizerDTOSchema = z.object({
4142
4139
  eventsIds: EventIdSchema.array(),
4143
4140
  id: OrganizerIdSchema,
4141
+ imageUrl: URLSchema.nullable(),
4144
4142
  name: StringSchema
4145
4143
  });
4146
4144
  const CreateOrganizerDTOSchema = z.object({
4147
4145
  id: OrganizerIdSchema,
4146
+ imageUrl: URLSchema.nullable(),
4148
4147
  name: StringSchema
4149
4148
  });
4150
- const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true });
4149
+ const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true }).extend({
4150
+ imageUrl: URLSchema.nullable().optional()
4151
+ });
4151
4152
  const constraints$1 = {
4152
4153
  name: {
4153
4154
  minLength: 3,
4154
4155
  maxLength: 100
4155
4156
  }
4156
4157
  };
4158
+ const FileUploadDTOSchema = z.object({
4159
+ publicUrl: URLSchema,
4160
+ uploadUrl: URLSchema
4161
+ });
4157
4162
  const constraints = {
4158
4163
  events: constraints$2,
4159
4164
  organizers: constraints$1
@@ -4164,7 +4169,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4164
4169
  CreateOrganizerDTOSchema,
4165
4170
  DisplayEventDTOSchema,
4166
4171
  EventDTOSchema,
4167
- EventFileUploadsDTOSchema,
4172
+ FileUploadDTOSchema,
4168
4173
  ImportDTOSchema,
4169
4174
  OrganizerDTOSchema,
4170
4175
  PromoteEventDTOSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",