expo-backend-types 0.10.0-EXPO-247-EB-Evento.1 → 0.10.0-EXPO-247-EB-Evento.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/event/dto/create-event.dto.d.ts +97 -57
- package/dist/src/event/dto/create-event.dto.js +14 -5
- package/dist/src/event/dto/get-all-event.dto.d.ts +920 -30
- package/dist/src/event/dto/get-all-event.dto.js +9 -2
- package/dist/src/event-folder/dto/get-all-event-folder.dto.d.ts +6 -6
- package/dist/src/event-folder/dto/get-all-event-folder.dto.js +1 -1
- package/dist/src/i18n/es.d.ts +5 -0
- package/dist/src/i18n/es.js +5 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/types/schema.d.ts +69 -7
- package/package.json +1 -1
@@ -1,70 +1,110 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const createEventSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
3
|
+
id: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
date: z.ZodDate;
|
6
|
+
location: z.ZodString;
|
7
|
+
folderId: z.ZodNullable<z.ZodString>;
|
8
|
+
tagAssistedId: z.ZodString;
|
9
|
+
tagConfirmedId: z.ZodString;
|
10
|
+
supraEventId: z.ZodNullable<z.ZodString>;
|
11
|
+
created_at: z.ZodDate;
|
12
|
+
updated_at: z.ZodDate;
|
13
|
+
}, "location" | "name" | "date" | "folderId">, {
|
14
|
+
subEvents: z.ZodArray<z.ZodObject<Pick<{
|
15
|
+
id: z.ZodString;
|
16
|
+
name: z.ZodString;
|
17
|
+
date: z.ZodDate;
|
18
|
+
location: z.ZodString;
|
19
|
+
folderId: z.ZodNullable<z.ZodString>;
|
20
|
+
tagAssistedId: z.ZodString;
|
21
|
+
tagConfirmedId: z.ZodString;
|
22
|
+
supraEventId: z.ZodNullable<z.ZodString>;
|
23
|
+
created_at: z.ZodDate;
|
24
|
+
updated_at: z.ZodDate;
|
25
|
+
}, "location" | "name" | "date">, "strip", z.ZodTypeAny, {
|
26
|
+
location: string;
|
27
|
+
name: string;
|
28
|
+
date: Date;
|
29
|
+
}, {
|
30
|
+
location: string;
|
31
|
+
name: string;
|
32
|
+
date: Date;
|
33
|
+
}>, "many">;
|
34
|
+
}>, "strip", z.ZodTypeAny, {
|
13
35
|
location: string;
|
14
36
|
name: string;
|
15
37
|
date: Date;
|
16
38
|
folderId: string | null;
|
17
|
-
|
18
|
-
|
19
|
-
|
39
|
+
subEvents: {
|
40
|
+
location: string;
|
41
|
+
name: string;
|
42
|
+
date: Date;
|
43
|
+
}[];
|
20
44
|
}, {
|
21
45
|
location: string;
|
22
46
|
name: string;
|
23
47
|
date: Date;
|
24
48
|
folderId: string | null;
|
25
|
-
|
26
|
-
|
27
|
-
|
49
|
+
subEvents: {
|
50
|
+
location: string;
|
51
|
+
name: string;
|
52
|
+
date: Date;
|
53
|
+
}[];
|
28
54
|
}>;
|
29
|
-
declare const CreateEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
30
|
-
location:
|
31
|
-
name:
|
32
|
-
date:
|
33
|
-
folderId:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
55
|
+
declare const CreateEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
56
|
+
location: z.ZodString;
|
57
|
+
name: z.ZodString;
|
58
|
+
date: z.ZodString;
|
59
|
+
folderId: z.ZodNullable<z.ZodString>;
|
60
|
+
subEvents: z.ZodArray<z.ZodObject<{
|
61
|
+
location: z.ZodString;
|
62
|
+
name: z.ZodString;
|
63
|
+
date: z.ZodString;
|
64
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
65
|
+
location: string;
|
66
|
+
name: string;
|
67
|
+
date: string;
|
68
|
+
}, {
|
69
|
+
location: string;
|
70
|
+
name: string;
|
71
|
+
date: string;
|
72
|
+
}>, "many">;
|
73
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
38
74
|
location: string;
|
39
75
|
name: string;
|
40
76
|
date: string;
|
41
77
|
folderId: string | null;
|
42
|
-
|
43
|
-
|
44
|
-
|
78
|
+
subEvents: {
|
79
|
+
location: string;
|
80
|
+
name: string;
|
81
|
+
date: string;
|
82
|
+
}[];
|
45
83
|
}, {
|
46
84
|
location: string;
|
47
85
|
name: string;
|
48
86
|
date: string;
|
49
87
|
folderId: string | null;
|
50
|
-
|
51
|
-
|
52
|
-
|
88
|
+
subEvents: {
|
89
|
+
location: string;
|
90
|
+
name: string;
|
91
|
+
date: string;
|
92
|
+
}[];
|
53
93
|
}>>;
|
54
94
|
export declare class CreateEventDto extends CreateEventDto_base {
|
55
95
|
}
|
56
|
-
export declare const createEventResponseSchema:
|
57
|
-
id:
|
58
|
-
name:
|
59
|
-
date:
|
60
|
-
location:
|
61
|
-
folderId:
|
62
|
-
tagAssistedId:
|
63
|
-
tagConfirmedId:
|
64
|
-
supraEventId:
|
65
|
-
created_at:
|
66
|
-
updated_at:
|
67
|
-
}, "strip",
|
96
|
+
export declare const createEventResponseSchema: z.ZodObject<{
|
97
|
+
id: z.ZodString;
|
98
|
+
name: z.ZodString;
|
99
|
+
date: z.ZodDate;
|
100
|
+
location: z.ZodString;
|
101
|
+
folderId: z.ZodNullable<z.ZodString>;
|
102
|
+
tagAssistedId: z.ZodString;
|
103
|
+
tagConfirmedId: z.ZodString;
|
104
|
+
supraEventId: z.ZodNullable<z.ZodString>;
|
105
|
+
created_at: z.ZodDate;
|
106
|
+
updated_at: z.ZodDate;
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
68
108
|
location: string;
|
69
109
|
id: string;
|
70
110
|
name: string;
|
@@ -87,18 +127,18 @@ export declare const createEventResponseSchema: import("zod").ZodObject<{
|
|
87
127
|
tagConfirmedId: string;
|
88
128
|
supraEventId: string | null;
|
89
129
|
}>;
|
90
|
-
declare const CreateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
91
|
-
id:
|
92
|
-
name:
|
93
|
-
date:
|
94
|
-
location:
|
95
|
-
folderId:
|
96
|
-
tagAssistedId:
|
97
|
-
tagConfirmedId:
|
98
|
-
supraEventId:
|
99
|
-
created_at:
|
100
|
-
updated_at:
|
101
|
-
},
|
130
|
+
declare const CreateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
131
|
+
id: z.ZodString;
|
132
|
+
name: z.ZodString;
|
133
|
+
date: z.ZodString;
|
134
|
+
location: z.ZodString;
|
135
|
+
folderId: z.ZodNullable<z.ZodString>;
|
136
|
+
tagAssistedId: z.ZodString;
|
137
|
+
tagConfirmedId: z.ZodString;
|
138
|
+
supraEventId: z.ZodNullable<z.ZodString>;
|
139
|
+
created_at: z.ZodString;
|
140
|
+
updated_at: z.ZodString;
|
141
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
102
142
|
location: string;
|
103
143
|
id: string;
|
104
144
|
name: string;
|
@@ -1,17 +1,26 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
6
|
exports.CreateEventResponseDto = exports.createEventResponseSchema = exports.CreateEventDto = exports.createEventSchema = void 0;
|
4
7
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
5
9
|
const event_dto_1 = require("./event.dto");
|
6
|
-
exports.createEventSchema = event_dto_1.eventSchema
|
10
|
+
exports.createEventSchema = event_dto_1.eventSchema
|
11
|
+
.pick({
|
7
12
|
name: true,
|
8
13
|
date: true,
|
9
14
|
location: true,
|
10
15
|
folderId: true,
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
})
|
17
|
+
.merge(zod_1.default.object({
|
18
|
+
subEvents: zod_1.default.array(event_dto_1.eventSchema.pick({
|
19
|
+
name: true,
|
20
|
+
date: true,
|
21
|
+
location: true,
|
22
|
+
})),
|
23
|
+
}));
|
15
24
|
class CreateEventDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createEventSchema) {
|
16
25
|
}
|
17
26
|
exports.CreateEventDto = CreateEventDto;
|