@sortipei/api-contracts 0.1.21 → 0.1.22

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.
@@ -13,7 +13,7 @@ export declare const EventDTOSchema: z.ZodObject<{
13
13
  isPromoted: z.ZodBoolean;
14
14
  link: z.ZodNullable<z.ZodString>;
15
15
  price: z.ZodNullable<z.ZodNumber>;
16
- region: z.ZodNativeEnum<typeof import('../../shared').Region>;
16
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
17
17
  startTime: z.ZodString;
18
18
  title: z.ZodString;
19
19
  thumbnailUrl: z.ZodNullable<z.ZodString>;
@@ -44,7 +44,7 @@ export declare const EventDTOSchema: z.ZodObject<{
44
44
  isPromoted: boolean;
45
45
  link: string | null;
46
46
  price: number | null;
47
- region: import('../../shared').Region;
47
+ regions: import('../../shared').Region[];
48
48
  startTime: string;
49
49
  title: string;
50
50
  thumbnailUrl: string | null;
@@ -67,7 +67,7 @@ export declare const EventDTOSchema: z.ZodObject<{
67
67
  isPromoted: boolean;
68
68
  link: string | null;
69
69
  price: number | null;
70
- region: import('../../shared').Region;
70
+ regions: import('../../shared').Region[];
71
71
  startTime: string;
72
72
  title: string;
73
73
  thumbnailUrl: string | null;
@@ -91,7 +91,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
91
91
  link: z.ZodNullable<z.ZodString>;
92
92
  organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
93
93
  price: z.ZodNullable<z.ZodNumber>;
94
- region: z.ZodNativeEnum<typeof import('../../shared').Region>;
94
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
95
95
  startTime: z.ZodString;
96
96
  title: z.ZodString;
97
97
  thumbnailUrl: z.ZodNullable<z.ZodString>;
@@ -108,7 +108,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
108
108
  isDisplayed: boolean;
109
109
  link: string | null;
110
110
  price: number | null;
111
- region: import('../../shared').Region;
111
+ regions: import('../../shared').Region[];
112
112
  startTime: string;
113
113
  title: string;
114
114
  thumbnailUrl: string | null;
@@ -126,7 +126,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
126
126
  isDisplayed: boolean;
127
127
  link: string | null;
128
128
  price: number | null;
129
- region: import('../../shared').Region;
129
+ regions: import('../../shared').Region[];
130
130
  startTime: string;
131
131
  title: string;
132
132
  thumbnailUrl: string | null;
@@ -146,7 +146,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
146
146
  link: z.ZodNullable<z.ZodString>;
147
147
  organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
148
148
  price: z.ZodNullable<z.ZodNumber>;
149
- region: z.ZodNativeEnum<typeof import('../../shared').Region>;
149
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
150
150
  startTime: z.ZodString;
151
151
  title: z.ZodString;
152
152
  thumbnailUrl: z.ZodNullable<z.ZodString>;
@@ -162,7 +162,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
162
162
  isDisplayed: boolean;
163
163
  link: string | null;
164
164
  price: number | null;
165
- region: import('../../shared').Region;
165
+ regions: import('../../shared').Region[];
166
166
  startTime: string;
167
167
  title: string;
168
168
  thumbnailUrl: string | null;
@@ -179,7 +179,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
179
179
  isDisplayed: boolean;
180
180
  link: string | null;
181
181
  price: number | null;
182
- region: import('../../shared').Region;
182
+ regions: import('../../shared').Region[];
183
183
  startTime: string;
184
184
  title: string;
185
185
  thumbnailUrl: string | null;
@@ -236,7 +236,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
236
236
  isPromoted: z.ZodOptional<z.ZodBoolean>;
237
237
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
238
238
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
239
- region: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Region>>;
239
+ regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">>;
240
240
  startTime: z.ZodOptional<z.ZodString>;
241
241
  title: z.ZodOptional<z.ZodString>;
242
242
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -267,7 +267,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
267
267
  isPromoted?: boolean | undefined;
268
268
  link?: string | null | undefined;
269
269
  price?: number | null | undefined;
270
- region?: import('../../shared').Region | undefined;
270
+ regions?: import('../../shared').Region[] | undefined;
271
271
  startTime?: string | undefined;
272
272
  title?: string | undefined;
273
273
  thumbnailUrl?: string | null | undefined;
@@ -290,7 +290,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
290
290
  isPromoted?: boolean | undefined;
291
291
  link?: string | null | undefined;
292
292
  price?: number | null | undefined;
293
- region?: import('../../shared').Region | undefined;
293
+ regions?: import('../../shared').Region[] | undefined;
294
294
  startTime?: string | undefined;
295
295
  title?: string | undefined;
296
296
  thumbnailUrl?: string | null | undefined;
@@ -320,7 +320,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
320
320
  isPromoted?: boolean | undefined;
321
321
  link?: string | null | undefined;
322
322
  price?: number | null | undefined;
323
- region?: import('../../shared').Region | undefined;
323
+ regions?: import('../../shared').Region[] | undefined;
324
324
  startTime?: string | undefined;
325
325
  title?: string | undefined;
326
326
  thumbnailUrl?: string | null | undefined;
@@ -350,7 +350,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
350
350
  isPromoted?: boolean | undefined;
351
351
  link?: string | null | undefined;
352
352
  price?: number | null | undefined;
353
- region?: import('../../shared').Region | undefined;
353
+ regions?: import('../../shared').Region[] | undefined;
354
354
  startTime?: string | undefined;
355
355
  title?: string | undefined;
356
356
  thumbnailUrl?: string | null | undefined;
@@ -14,7 +14,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
14
14
  isPromoted: z.ZodOptional<z.ZodBoolean>;
15
15
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
- region: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Region>>;
17
+ regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">>;
18
18
  startTime: z.ZodOptional<z.ZodString>;
19
19
  title: z.ZodOptional<z.ZodString>;
20
20
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -45,7 +45,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
45
45
  isPromoted?: boolean | undefined;
46
46
  link?: string | null | undefined;
47
47
  price?: number | null | undefined;
48
- region?: import('../../shared').Region | undefined;
48
+ regions?: import('../../shared').Region[] | undefined;
49
49
  startTime?: string | undefined;
50
50
  title?: string | undefined;
51
51
  thumbnailUrl?: string | null | undefined;
@@ -68,7 +68,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
68
68
  isPromoted?: boolean | undefined;
69
69
  link?: string | null | undefined;
70
70
  price?: number | null | undefined;
71
- region?: import('../../shared').Region | undefined;
71
+ regions?: import('../../shared').Region[] | undefined;
72
72
  startTime?: string | undefined;
73
73
  title?: string | undefined;
74
74
  thumbnailUrl?: string | null | undefined;
@@ -98,7 +98,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
98
98
  isPromoted?: boolean | undefined;
99
99
  link?: string | null | undefined;
100
100
  price?: number | null | undefined;
101
- region?: import('../../shared').Region | undefined;
101
+ regions?: import('../../shared').Region[] | undefined;
102
102
  startTime?: string | undefined;
103
103
  title?: string | undefined;
104
104
  thumbnailUrl?: string | null | undefined;
@@ -127,7 +127,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
127
127
  isPromoted?: boolean | undefined;
128
128
  link?: string | null | undefined;
129
129
  price?: number | null | undefined;
130
- region?: import('../../shared').Region | undefined;
130
+ regions?: import('../../shared').Region[] | undefined;
131
131
  startTime?: string | undefined;
132
132
  title?: string | undefined;
133
133
  thumbnailUrl?: string | null | undefined;
@@ -4100,7 +4100,7 @@ const EventDTOSchema = z.object({
4100
4100
  isPromoted: z.boolean(),
4101
4101
  link: URLSchema.nullable(),
4102
4102
  price: SafeNonNegativeFloatSchema.nullable(),
4103
- region: RegionSchema,
4103
+ regions: RegionSchema.array(),
4104
4104
  startTime: z.string().datetime(),
4105
4105
  title: StringSchema,
4106
4106
  thumbnailUrl: URLSchema.nullable(),
@@ -4124,7 +4124,7 @@ const CreateEventDTOSchema = z.object({
4124
4124
  link: URLSchema.nullable(),
4125
4125
  organizersIds: OrganizerIdSchema.array().min(1),
4126
4126
  price: SafeNonNegativeFloatSchema.nullable(),
4127
- region: RegionSchema,
4127
+ regions: RegionSchema.array(),
4128
4128
  startTime: z.string().datetime(),
4129
4129
  title: StringSchema,
4130
4130
  thumbnailUrl: URLSchema.nullable()
@@ -4098,7 +4098,7 @@ const EventDTOSchema = z.object({
4098
4098
  isPromoted: z.boolean(),
4099
4099
  link: URLSchema.nullable(),
4100
4100
  price: SafeNonNegativeFloatSchema.nullable(),
4101
- region: RegionSchema,
4101
+ regions: RegionSchema.array(),
4102
4102
  startTime: z.string().datetime(),
4103
4103
  title: StringSchema,
4104
4104
  thumbnailUrl: URLSchema.nullable(),
@@ -4122,7 +4122,7 @@ const CreateEventDTOSchema = z.object({
4122
4122
  link: URLSchema.nullable(),
4123
4123
  organizersIds: OrganizerIdSchema.array().min(1),
4124
4124
  price: SafeNonNegativeFloatSchema.nullable(),
4125
- region: RegionSchema,
4125
+ regions: RegionSchema.array(),
4126
4126
  startTime: z.string().datetime(),
4127
4127
  title: StringSchema,
4128
4128
  thumbnailUrl: URLSchema.nullable()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",