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.
@@ -1,70 +1,110 @@
1
- export declare const createEventSchema: import("zod").ZodObject<Pick<{
2
- id: import("zod").ZodString;
3
- name: import("zod").ZodString;
4
- date: import("zod").ZodDate;
5
- location: import("zod").ZodString;
6
- folderId: import("zod").ZodNullable<import("zod").ZodString>;
7
- tagAssistedId: import("zod").ZodString;
8
- tagConfirmedId: import("zod").ZodString;
9
- supraEventId: import("zod").ZodNullable<import("zod").ZodString>;
10
- created_at: import("zod").ZodDate;
11
- updated_at: import("zod").ZodDate;
12
- }, "location" | "name" | "date" | "folderId" | "tagAssistedId" | "tagConfirmedId" | "supraEventId">, "strip", import("zod").ZodTypeAny, {
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
- tagAssistedId: string;
18
- tagConfirmedId: string;
19
- supraEventId: string | null;
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
- tagAssistedId: string;
26
- tagConfirmedId: string;
27
- supraEventId: string | null;
49
+ subEvents: {
50
+ location: string;
51
+ name: string;
52
+ date: Date;
53
+ }[];
28
54
  }>;
29
- declare const CreateEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
30
- location: import("zod").ZodString;
31
- name: import("zod").ZodString;
32
- date: import("zod").ZodString;
33
- folderId: import("zod").ZodNullable<import("zod").ZodString>;
34
- tagAssistedId: import("zod").ZodString;
35
- tagConfirmedId: import("zod").ZodString;
36
- supraEventId: import("zod").ZodNullable<import("zod").ZodString>;
37
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
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
- tagAssistedId: string;
43
- tagConfirmedId: string;
44
- supraEventId: string | null;
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
- tagAssistedId: string;
51
- tagConfirmedId: string;
52
- supraEventId: string | null;
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: import("zod").ZodObject<{
57
- id: import("zod").ZodString;
58
- name: import("zod").ZodString;
59
- date: import("zod").ZodDate;
60
- location: import("zod").ZodString;
61
- folderId: import("zod").ZodNullable<import("zod").ZodString>;
62
- tagAssistedId: import("zod").ZodString;
63
- tagConfirmedId: import("zod").ZodString;
64
- supraEventId: import("zod").ZodNullable<import("zod").ZodString>;
65
- created_at: import("zod").ZodDate;
66
- updated_at: import("zod").ZodDate;
67
- }, "strip", import("zod").ZodTypeAny, {
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<import("zod").ZodObject<{
91
- id: import("zod").ZodString;
92
- name: import("zod").ZodString;
93
- date: import("zod").ZodString;
94
- location: import("zod").ZodString;
95
- folderId: import("zod").ZodNullable<import("zod").ZodString>;
96
- tagAssistedId: import("zod").ZodString;
97
- tagConfirmedId: import("zod").ZodString;
98
- supraEventId: import("zod").ZodNullable<import("zod").ZodString>;
99
- created_at: import("zod").ZodString;
100
- updated_at: import("zod").ZodString;
101
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
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.pick({
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
- tagAssistedId: true,
12
- tagConfirmedId: true,
13
- supraEventId: true,
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;