@sortipei/api-contracts 0.1.40 → 0.1.41

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.
@@ -7,6 +7,7 @@ export declare const MainAdDTOSchema: z.ZodObject<{
7
7
  isEnabled: z.ZodBoolean;
8
8
  link: z.ZodNullable<z.ZodString>;
9
9
  startTime: z.ZodString;
10
+ title: z.ZodString;
10
11
  }, "strip", z.ZodTypeAny, {
11
12
  startTime: string;
12
13
  endTime: string;
@@ -15,6 +16,7 @@ export declare const MainAdDTOSchema: z.ZodObject<{
15
16
  imageUrl: string;
16
17
  isEnabled: boolean;
17
18
  link: string | null;
19
+ title: string;
18
20
  }, {
19
21
  startTime: string;
20
22
  endTime: string;
@@ -23,6 +25,7 @@ export declare const MainAdDTOSchema: z.ZodObject<{
23
25
  imageUrl: string;
24
26
  isEnabled: boolean;
25
27
  link: string | null;
28
+ title: string;
26
29
  }>;
27
30
  export declare const UpdateMainAdDTOSchema: z.ZodObject<Omit<{
28
31
  createdAt: z.ZodString;
@@ -32,18 +35,21 @@ export declare const UpdateMainAdDTOSchema: z.ZodObject<Omit<{
32
35
  isEnabled: z.ZodBoolean;
33
36
  link: z.ZodNullable<z.ZodString>;
34
37
  startTime: z.ZodString;
38
+ title: z.ZodString;
35
39
  }, "createdAt" | "id">, "strip", z.ZodTypeAny, {
36
40
  startTime: string;
37
41
  endTime: string;
38
42
  imageUrl: string;
39
43
  isEnabled: boolean;
40
44
  link: string | null;
45
+ title: string;
41
46
  }, {
42
47
  startTime: string;
43
48
  endTime: string;
44
49
  imageUrl: string;
45
50
  isEnabled: boolean;
46
51
  link: string | null;
52
+ title: string;
47
53
  }>;
48
54
  export declare const RegionalAdDTOSchema: z.ZodObject<{
49
55
  createdAt: z.ZodString;
@@ -54,6 +60,7 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
54
60
  link: z.ZodNullable<z.ZodString>;
55
61
  regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
56
62
  startTime: z.ZodString;
63
+ title: z.ZodString;
57
64
  }, "strip", z.ZodTypeAny, {
58
65
  regions: import('../../shared').Region[];
59
66
  startTime: string;
@@ -63,6 +70,7 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
63
70
  imageUrl: string;
64
71
  isEnabled: boolean;
65
72
  link: string | null;
73
+ title: string;
66
74
  }, {
67
75
  regions: import('../../shared').Region[];
68
76
  startTime: string;
@@ -72,6 +80,7 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
72
80
  imageUrl: string;
73
81
  isEnabled: boolean;
74
82
  link: string | null;
83
+ title: string;
75
84
  }>;
76
85
  export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
77
86
  createdAt: z.ZodString;
@@ -82,6 +91,7 @@ export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
82
91
  link: z.ZodNullable<z.ZodString>;
83
92
  regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
84
93
  startTime: z.ZodString;
94
+ title: z.ZodString;
85
95
  }, "createdAt" | "id">, "strip", z.ZodTypeAny, {
86
96
  regions: import('../../shared').Region[];
87
97
  startTime: string;
@@ -89,6 +99,7 @@ export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
89
99
  imageUrl: string;
90
100
  isEnabled: boolean;
91
101
  link: string | null;
102
+ title: string;
92
103
  }, {
93
104
  regions: import('../../shared').Region[];
94
105
  startTime: string;
@@ -96,6 +107,7 @@ export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
96
107
  imageUrl: string;
97
108
  isEnabled: boolean;
98
109
  link: string | null;
110
+ title: string;
99
111
  }>;
100
112
  export type MainAdDTO = z.infer<typeof MainAdDTOSchema>;
101
113
  export type UpdateMainAdDTO = z.infer<typeof UpdateMainAdDTOSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"ad.d.ts","sourceRoot":"","sources":["../../../src/V1/api/ad.ts"],"names":[],"mapp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G,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -44,6 +44,7 @@ export declare const EventDTOSchema: z.ZodObject<{
44
44
  createdAt: string;
45
45
  id: string & z.BRAND<"EventId">;
46
46
  link: string | null;
47
+ title: string;
47
48
  adress: string;
48
49
  capacity: number | null;
49
50
  description: string;
@@ -61,7 +62,6 @@ export declare const EventDTOSchema: z.ZodObject<{
61
62
  secondaryCategory: import('../../shared').Category | null;
62
63
  thumbnailUrl: string | null;
63
64
  ticketsUrl: string | null;
64
- title: string;
65
65
  organizers: {
66
66
  id: string & z.BRAND<"OrganizerId">;
67
67
  imageUrl: string | null;
@@ -74,6 +74,7 @@ export declare const EventDTOSchema: z.ZodObject<{
74
74
  createdAt: string;
75
75
  id: string;
76
76
  link: string | null;
77
+ title: string;
77
78
  adress: string;
78
79
  capacity: number | null;
79
80
  description: string;
@@ -91,7 +92,6 @@ export declare const EventDTOSchema: z.ZodObject<{
91
92
  secondaryCategory: import('../../shared').Category | null;
92
93
  thumbnailUrl: string | null;
93
94
  ticketsUrl: string | null;
94
- title: string;
95
95
  organizers: {
96
96
  id: string;
97
97
  imageUrl: string | null;
@@ -128,6 +128,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
128
128
  startTime: string;
129
129
  id: string & z.BRAND<"EventId">;
130
130
  link: string | null;
131
+ title: string;
131
132
  adress: string;
132
133
  capacity: number | null;
133
134
  description: string;
@@ -144,7 +145,6 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
144
145
  secondaryCategory: import('../../shared').Category | null;
145
146
  thumbnailUrl: string | null;
146
147
  ticketsUrl: string | null;
147
- title: string;
148
148
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
149
149
  }, {
150
150
  regions: import('../../shared').Region[];
@@ -152,6 +152,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
152
152
  startTime: string;
153
153
  id: string;
154
154
  link: string | null;
155
+ title: string;
155
156
  adress: string;
156
157
  capacity: number | null;
157
158
  description: string;
@@ -168,7 +169,6 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
168
169
  secondaryCategory: import('../../shared').Category | null;
169
170
  thumbnailUrl: string | null;
170
171
  ticketsUrl: string | null;
171
- title: string;
172
172
  organizersIds: string[];
173
173
  }>;
174
174
  export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
@@ -200,6 +200,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
200
200
  category: import('../../shared').Category;
201
201
  startTime: string;
202
202
  link: string | null;
203
+ title: string;
203
204
  adress: string;
204
205
  capacity: number | null;
205
206
  description: string;
@@ -216,13 +217,13 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
216
217
  secondaryCategory: import('../../shared').Category | null;
217
218
  thumbnailUrl: string | null;
218
219
  ticketsUrl: string | null;
219
- title: string;
220
220
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
221
221
  }, {
222
222
  regions: import('../../shared').Region[];
223
223
  category: import('../../shared').Category;
224
224
  startTime: string;
225
225
  link: string | null;
226
+ title: string;
226
227
  adress: string;
227
228
  capacity: number | null;
228
229
  description: string;
@@ -239,7 +240,6 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
239
240
  secondaryCategory: import('../../shared').Category | null;
240
241
  thumbnailUrl: string | null;
241
242
  ticketsUrl: string | null;
242
- title: string;
243
243
  organizersIds: string[];
244
244
  }>;
245
245
  export declare const DisplayEventDTOSchema: z.ZodObject<{
@@ -324,6 +324,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
324
324
  createdAt?: string | undefined;
325
325
  id?: (string & z.BRAND<"EventId">) | undefined;
326
326
  link?: string | null | undefined;
327
+ title?: string | undefined;
327
328
  adress?: string | undefined;
328
329
  capacity?: number | null | undefined;
329
330
  description?: string | undefined;
@@ -341,7 +342,6 @@ export declare const ImportDTOSchema: z.ZodObject<{
341
342
  secondaryCategory?: import('../../shared').Category | null | undefined;
342
343
  thumbnailUrl?: string | null | undefined;
343
344
  ticketsUrl?: string | null | undefined;
344
- title?: string | undefined;
345
345
  organizers?: {
346
346
  id: string & z.BRAND<"OrganizerId">;
347
347
  imageUrl: string | null;
@@ -354,6 +354,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
354
354
  createdAt?: string | undefined;
355
355
  id?: string | undefined;
356
356
  link?: string | null | undefined;
357
+ title?: string | undefined;
357
358
  adress?: string | undefined;
358
359
  capacity?: number | null | undefined;
359
360
  description?: string | undefined;
@@ -371,7 +372,6 @@ export declare const ImportDTOSchema: z.ZodObject<{
371
372
  secondaryCategory?: import('../../shared').Category | null | undefined;
372
373
  thumbnailUrl?: string | null | undefined;
373
374
  ticketsUrl?: string | null | undefined;
374
- title?: string | undefined;
375
375
  organizers?: {
376
376
  id: string;
377
377
  imageUrl: string | null;
@@ -392,6 +392,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
392
392
  createdAt?: string | undefined;
393
393
  id?: (string & z.BRAND<"EventId">) | undefined;
394
394
  link?: string | null | undefined;
395
+ title?: string | undefined;
395
396
  adress?: string | undefined;
396
397
  capacity?: number | null | undefined;
397
398
  description?: string | undefined;
@@ -409,7 +410,6 @@ export declare const ImportDTOSchema: z.ZodObject<{
409
410
  secondaryCategory?: import('../../shared').Category | null | undefined;
410
411
  thumbnailUrl?: string | null | undefined;
411
412
  ticketsUrl?: string | null | undefined;
412
- title?: string | undefined;
413
413
  organizers?: {
414
414
  id: string & z.BRAND<"OrganizerId">;
415
415
  imageUrl: string | null;
@@ -429,6 +429,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
429
429
  createdAt?: string | undefined;
430
430
  id?: string | undefined;
431
431
  link?: string | null | undefined;
432
+ title?: string | undefined;
432
433
  adress?: string | undefined;
433
434
  capacity?: number | null | undefined;
434
435
  description?: string | undefined;
@@ -446,7 +447,6 @@ export declare const ImportDTOSchema: z.ZodObject<{
446
447
  secondaryCategory?: import('../../shared').Category | null | undefined;
447
448
  thumbnailUrl?: string | null | undefined;
448
449
  ticketsUrl?: string | null | undefined;
449
- title?: string | undefined;
450
450
  organizers?: {
451
451
  id: string;
452
452
  imageUrl: string | null;
@@ -45,6 +45,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
45
45
  createdAt?: string | undefined;
46
46
  id?: (string & z.BRAND<"EventId">) | undefined;
47
47
  link?: string | null | undefined;
48
+ title?: string | undefined;
48
49
  adress?: string | undefined;
49
50
  capacity?: number | null | undefined;
50
51
  description?: string | undefined;
@@ -62,7 +63,6 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
62
63
  secondaryCategory?: import('../../shared').Category | null | undefined;
63
64
  thumbnailUrl?: string | null | undefined;
64
65
  ticketsUrl?: string | null | undefined;
65
- title?: string | undefined;
66
66
  organizers?: {
67
67
  id: string & z.BRAND<"OrganizerId">;
68
68
  imageUrl: string | null;
@@ -75,6 +75,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
75
75
  createdAt?: string | undefined;
76
76
  id?: string | undefined;
77
77
  link?: string | null | undefined;
78
+ title?: string | undefined;
78
79
  adress?: string | undefined;
79
80
  capacity?: number | null | undefined;
80
81
  description?: string | undefined;
@@ -92,7 +93,6 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
92
93
  secondaryCategory?: import('../../shared').Category | null | undefined;
93
94
  thumbnailUrl?: string | null | undefined;
94
95
  ticketsUrl?: string | null | undefined;
95
- title?: string | undefined;
96
96
  organizers?: {
97
97
  id: string;
98
98
  imageUrl: string | null;
@@ -113,6 +113,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
113
113
  createdAt?: string | undefined;
114
114
  id?: (string & z.BRAND<"EventId">) | undefined;
115
115
  link?: string | null | undefined;
116
+ title?: string | undefined;
116
117
  adress?: string | undefined;
117
118
  capacity?: number | null | undefined;
118
119
  description?: string | undefined;
@@ -130,7 +131,6 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
130
131
  secondaryCategory?: import('../../shared').Category | null | undefined;
131
132
  thumbnailUrl?: string | null | undefined;
132
133
  ticketsUrl?: string | null | undefined;
133
- title?: string | undefined;
134
134
  organizers?: {
135
135
  id: string & z.BRAND<"OrganizerId">;
136
136
  imageUrl: string | null;
@@ -149,6 +149,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
149
149
  createdAt?: string | undefined;
150
150
  id?: string | undefined;
151
151
  link?: string | null | undefined;
152
+ title?: string | undefined;
152
153
  adress?: string | undefined;
153
154
  capacity?: number | null | undefined;
154
155
  description?: string | undefined;
@@ -166,7 +167,6 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
166
167
  secondaryCategory?: import('../../shared').Category | null | undefined;
167
168
  thumbnailUrl?: string | null | undefined;
168
169
  ticketsUrl?: string | null | undefined;
169
- title?: string | undefined;
170
170
  organizers?: {
171
171
  id: string;
172
172
  imageUrl: string | null;
@@ -4210,7 +4210,8 @@ const MainAdDTOSchema = z.object({
4210
4210
  imageUrl: URLSchema,
4211
4211
  isEnabled: z.boolean(),
4212
4212
  link: URLSchema.nullable(),
4213
- startTime: StringSchema
4213
+ startTime: StringSchema,
4214
+ title: z.string()
4214
4215
  });
4215
4216
  const UpdateMainAdDTOSchema = MainAdDTOSchema.omit({
4216
4217
  createdAt: true,
@@ -4224,7 +4225,8 @@ const RegionalAdDTOSchema = z.object({
4224
4225
  isEnabled: z.boolean(),
4225
4226
  link: URLSchema.nullable(),
4226
4227
  regions: RegionSchema.array(),
4227
- startTime: StringSchema
4228
+ startTime: StringSchema,
4229
+ title: z.string()
4228
4230
  });
4229
4231
  const UpdateRegionalAdDTOSchema = RegionalAdDTOSchema.omit({
4230
4232
  createdAt: true,
@@ -4208,7 +4208,8 @@ const MainAdDTOSchema = z.object({
4208
4208
  imageUrl: URLSchema,
4209
4209
  isEnabled: z.boolean(),
4210
4210
  link: URLSchema.nullable(),
4211
- startTime: StringSchema
4211
+ startTime: StringSchema,
4212
+ title: z.string()
4212
4213
  });
4213
4214
  const UpdateMainAdDTOSchema = MainAdDTOSchema.omit({
4214
4215
  createdAt: true,
@@ -4222,7 +4223,8 @@ const RegionalAdDTOSchema = z.object({
4222
4223
  isEnabled: z.boolean(),
4223
4224
  link: URLSchema.nullable(),
4224
4225
  regions: RegionSchema.array(),
4225
- startTime: StringSchema
4226
+ startTime: StringSchema,
4227
+ title: z.string()
4226
4228
  });
4227
4229
  const UpdateRegionalAdDTOSchema = RegionalAdDTOSchema.omit({
4228
4230
  createdAt: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",