@sortipei/api-contracts 0.1.17 → 0.1.18
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
CHANGED
|
@@ -364,4 +364,45 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
364
364
|
userId: string;
|
|
365
365
|
}>;
|
|
366
366
|
export type ImportDTO = z.infer<typeof ImportDTOSchema>;
|
|
367
|
+
export declare const EventFileUploadDTOSchema: z.ZodObject<{
|
|
368
|
+
imageUploadUrls: z.ZodArray<z.ZodObject<{
|
|
369
|
+
publicUrl: z.ZodString;
|
|
370
|
+
uploadUrl: z.ZodString;
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
372
|
+
publicUrl: string;
|
|
373
|
+
uploadUrl: string;
|
|
374
|
+
}, {
|
|
375
|
+
publicUrl: string;
|
|
376
|
+
uploadUrl: string;
|
|
377
|
+
}>, "many">;
|
|
378
|
+
thumbnailUploadUrl: z.ZodObject<{
|
|
379
|
+
publicUrl: z.ZodString;
|
|
380
|
+
uploadUrl: z.ZodString;
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
publicUrl: string;
|
|
383
|
+
uploadUrl: string;
|
|
384
|
+
}, {
|
|
385
|
+
publicUrl: string;
|
|
386
|
+
uploadUrl: string;
|
|
387
|
+
}>;
|
|
388
|
+
}, "strip", z.ZodTypeAny, {
|
|
389
|
+
imageUploadUrls: {
|
|
390
|
+
publicUrl: string;
|
|
391
|
+
uploadUrl: string;
|
|
392
|
+
}[];
|
|
393
|
+
thumbnailUploadUrl: {
|
|
394
|
+
publicUrl: string;
|
|
395
|
+
uploadUrl: string;
|
|
396
|
+
};
|
|
397
|
+
}, {
|
|
398
|
+
imageUploadUrls: {
|
|
399
|
+
publicUrl: string;
|
|
400
|
+
uploadUrl: string;
|
|
401
|
+
}[];
|
|
402
|
+
thumbnailUploadUrl: {
|
|
403
|
+
publicUrl: string;
|
|
404
|
+
uploadUrl: string;
|
|
405
|
+
};
|
|
406
|
+
}>;
|
|
407
|
+
export type EventFileUploadDTO = z.infer<typeof EventFileUploadDTOSchema>;
|
|
367
408
|
//# sourceMappingURL=event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,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;AAGxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB/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;AAExD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -3,7 +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(
|
|
6
|
+
category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
|
|
7
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
8
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -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(
|
|
17
|
+
region: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Region>>;
|
|
18
18
|
startTime: z.ZodOptional<z.ZodString>;
|
|
19
19
|
title: z.ZodOptional<z.ZodString>;
|
|
20
20
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -34,7 +34,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
adress?: string | undefined;
|
|
36
36
|
capacity?: number | null | undefined;
|
|
37
|
-
category?: import(
|
|
37
|
+
category?: import('../../shared').Category | undefined;
|
|
38
38
|
description?: string | undefined;
|
|
39
39
|
finishTime?: string | null | undefined;
|
|
40
40
|
hasHandicapAccess?: boolean | null | undefined;
|
|
@@ -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(
|
|
48
|
+
region?: import('../../shared').Region | undefined;
|
|
49
49
|
startTime?: string | undefined;
|
|
50
50
|
title?: string | undefined;
|
|
51
51
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -57,7 +57,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
57
57
|
}, {
|
|
58
58
|
adress?: string | undefined;
|
|
59
59
|
capacity?: number | null | undefined;
|
|
60
|
-
category?: import(
|
|
60
|
+
category?: import('../../shared').Category | undefined;
|
|
61
61
|
description?: string | undefined;
|
|
62
62
|
finishTime?: string | null | undefined;
|
|
63
63
|
hasHandicapAccess?: boolean | 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(
|
|
71
|
+
region?: import('../../shared').Region | undefined;
|
|
72
72
|
startTime?: string | undefined;
|
|
73
73
|
title?: string | undefined;
|
|
74
74
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -87,7 +87,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
87
87
|
partialEventState: {
|
|
88
88
|
adress?: string | undefined;
|
|
89
89
|
capacity?: number | null | undefined;
|
|
90
|
-
category?: import(
|
|
90
|
+
category?: import('../../shared').Category | undefined;
|
|
91
91
|
description?: string | undefined;
|
|
92
92
|
finishTime?: string | null | undefined;
|
|
93
93
|
hasHandicapAccess?: boolean | 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(
|
|
101
|
+
region?: import('../../shared').Region | undefined;
|
|
102
102
|
startTime?: string | undefined;
|
|
103
103
|
title?: string | undefined;
|
|
104
104
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -116,7 +116,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
116
116
|
partialEventState: {
|
|
117
117
|
adress?: string | undefined;
|
|
118
118
|
capacity?: number | null | undefined;
|
|
119
|
-
category?: import(
|
|
119
|
+
category?: import('../../shared').Category | undefined;
|
|
120
120
|
description?: string | undefined;
|
|
121
121
|
finishTime?: string | null | undefined;
|
|
122
122
|
hasHandicapAccess?: boolean | 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(
|
|
130
|
+
region?: import('../../shared').Region | undefined;
|
|
131
131
|
startTime?: string | undefined;
|
|
132
132
|
title?: string | undefined;
|
|
133
133
|
thumbnailUrl?: string | null | undefined;
|
package/dist/api-contracts.js
CHANGED
|
@@ -4098,6 +4098,7 @@ const EventDTOSchema = z.object({
|
|
|
4098
4098
|
region: RegionSchema,
|
|
4099
4099
|
startTime: z.string().datetime(),
|
|
4100
4100
|
title: StringSchema,
|
|
4101
|
+
thumbnailUrl: URLSchema.nullable(),
|
|
4101
4102
|
organizers: z.object({
|
|
4102
4103
|
id: OrganizerIdSchema,
|
|
4103
4104
|
name: StringSchema,
|
|
@@ -4120,7 +4121,8 @@ const CreateEventDTOSchema = z.object({
|
|
|
4120
4121
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
4121
4122
|
region: RegionSchema,
|
|
4122
4123
|
startTime: z.string().datetime(),
|
|
4123
|
-
title: StringSchema
|
|
4124
|
+
title: StringSchema,
|
|
4125
|
+
thumbnailUrl: URLSchema.nullable()
|
|
4124
4126
|
});
|
|
4125
4127
|
const UpdateEventDTOSchema = CreateEventDTOSchema.omit({
|
|
4126
4128
|
id: true
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4096,6 +4096,7 @@ const EventDTOSchema = z.object({
|
|
|
4096
4096
|
region: RegionSchema,
|
|
4097
4097
|
startTime: z.string().datetime(),
|
|
4098
4098
|
title: StringSchema,
|
|
4099
|
+
thumbnailUrl: URLSchema.nullable(),
|
|
4099
4100
|
organizers: z.object({
|
|
4100
4101
|
id: OrganizerIdSchema,
|
|
4101
4102
|
name: StringSchema,
|
|
@@ -4118,7 +4119,8 @@ const CreateEventDTOSchema = z.object({
|
|
|
4118
4119
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
4119
4120
|
region: RegionSchema,
|
|
4120
4121
|
startTime: z.string().datetime(),
|
|
4121
|
-
title: StringSchema
|
|
4122
|
+
title: StringSchema,
|
|
4123
|
+
thumbnailUrl: URLSchema.nullable()
|
|
4122
4124
|
});
|
|
4123
4125
|
const UpdateEventDTOSchema = CreateEventDTOSchema.omit({
|
|
4124
4126
|
id: true
|