expo-backend-types 0.49.0-EXPO-355-ExpoBackend-Rutas-de-produccion.5 → 0.49.0-EXPO-350-ExpoBackend-Estadisticas-de-evento.8
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/src/account/dto/get-global-filter.dto.d.ts +8 -10
- package/dist/src/account/dto/get-me.dto.d.ts +16 -20
- package/dist/src/account/dto/update-global-filter.dto.d.ts +8 -10
- package/dist/src/event/dto/get-all-event.dto.d.ts +232 -236
- package/dist/src/event/dto/get-all-event.dto.js +1 -1
- package/dist/src/event/dto/get-all-statistics.dto.d.ts +364 -0
- package/dist/src/event/dto/get-all-statistics.dto.js +40 -0
- package/dist/src/event/dto/get-by-id-event.dto.d.ts +126 -136
- package/dist/src/event/dto/get-by-id-event.dto.js +1 -1
- package/dist/src/event/dto/get-statistics-by-id-event.dto.d.ts +402 -0
- package/dist/src/event/dto/get-statistics-by-id-event.dto.js +35 -0
- package/dist/src/event/dto/update-event.dto.d.ts +8 -10
- package/dist/src/exports.d.ts +0 -1
- package/dist/src/exports.js +0 -1
- package/dist/src/i18n/es.d.ts +7 -48
- package/dist/src/i18n/es.js +7 -48
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +12 -14
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +20 -24
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +8 -10
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +12 -14
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +12 -14
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +12 -14
- package/dist/src/tag/dto/create-tag.dto.d.ts +4 -7
- package/dist/src/tag/dto/delete-tag.dto.d.ts +4 -6
- package/dist/src/tag/dto/find-all-tag.dto.d.ts +8 -10
- package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +8 -10
- package/dist/src/tag/dto/find-one-tag.dto.d.ts +4 -6
- package/dist/src/tag/dto/tag.dto.d.ts +4 -6
- package/dist/src/tag/dto/update-tag.dto.d.ts +4 -7
- package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +12 -14
- package/dist/src/tag-group/dto/find-all-with-tags.dto.d.ts +12 -14
- package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +8 -10
- package/dist/types/prisma-schema/edge.js +5 -32
- package/dist/types/prisma-schema/index-browser.js +2 -29
- package/dist/types/prisma-schema/index.d.ts +6849 -11395
- package/dist/types/prisma-schema/index.js +5 -32
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +4 -54
- package/dist/types/prisma-schema/wasm.js +2 -29
- package/dist/types/schema.d.ts +165 -491
- package/package.json +1 -1
- package/dist/src/production/dto/create-production.dto.d.ts +0 -36
- package/dist/src/production/dto/create-production.dto.js +0 -17
- package/dist/src/production/dto/delete-production.dto.d.ts +0 -41
- package/dist/src/production/dto/delete-production.dto.js +0 -10
- package/dist/src/production/dto/production.dto.d.ts +0 -20
- package/dist/src/production/dto/production.dto.js +0 -21
- package/dist/src/production/dto/update-production.dto.d.ts +0 -63
- package/dist/src/production/dto/update-production.dto.js +0 -19
- package/dist/src/production/exports.d.ts +0 -4
- package/dist/src/production/exports.js +0 -21
- package/dist/src/production-affiliation-request/dto/create-production-affiliation-request.dto.d.ts +0 -80
- package/dist/src/production-affiliation-request/dto/create-production-affiliation-request.dto.js +0 -16
- package/dist/src/production-affiliation-request/dto/find-by-production-affiliation-request.dto.d.ts +0 -563
- package/dist/src/production-affiliation-request/dto/find-by-production-affiliation-request.dto.js +0 -21
- package/dist/src/production-affiliation-request/dto/production-affiliation-request.dto.d.ts +0 -27
- package/dist/src/production-affiliation-request/dto/production-affiliation-request.dto.js +0 -22
- package/dist/src/production-affiliation-request/dto/update-production-affiliation-request.dto.d.ts +0 -390
- package/dist/src/production-affiliation-request/dto/update-production-affiliation-request.dto.js +0 -15
- package/dist/src/production-affiliation-request/exports.d.ts +0 -4
- package/dist/src/production-affiliation-request/exports.js +0 -21
@@ -0,0 +1,402 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const getStatisticsByIdSchema: z.ZodObject<z.objectUtil.extendShape<{
|
3
|
+
id: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
date: z.ZodDate;
|
6
|
+
startingDate: z.ZodDate;
|
7
|
+
endingDate: z.ZodDate;
|
8
|
+
location: z.ZodString;
|
9
|
+
folderId: z.ZodNullable<z.ZodString>;
|
10
|
+
tagAssistedId: z.ZodString;
|
11
|
+
tagConfirmedId: z.ZodString;
|
12
|
+
active: z.ZodBoolean;
|
13
|
+
supraEventId: z.ZodNullable<z.ZodString>;
|
14
|
+
created_at: z.ZodDate;
|
15
|
+
updated_at: z.ZodDate;
|
16
|
+
}, {
|
17
|
+
tickets: z.ZodArray<z.ZodObject<{
|
18
|
+
id: z.ZodString;
|
19
|
+
eventId: z.ZodString;
|
20
|
+
type: z.ZodNativeEnum<{
|
21
|
+
PARTICIPANT: "PARTICIPANT";
|
22
|
+
STAFF: "STAFF";
|
23
|
+
SPECTATOR: "SPECTATOR";
|
24
|
+
}>;
|
25
|
+
fullName: z.ZodString;
|
26
|
+
mail: z.ZodString;
|
27
|
+
dni: z.ZodString;
|
28
|
+
seat: z.ZodNullable<z.ZodNumber>;
|
29
|
+
scanned: z.ZodBoolean;
|
30
|
+
scannedAt: z.ZodNullable<z.ZodDate>;
|
31
|
+
ticketGroupId: z.ZodNullable<z.ZodString>;
|
32
|
+
created_at: z.ZodDate;
|
33
|
+
updated_at: z.ZodDate;
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
35
|
+
id: string;
|
36
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
37
|
+
fullName: string;
|
38
|
+
mail: string;
|
39
|
+
eventId: string;
|
40
|
+
dni: string;
|
41
|
+
seat: number | null;
|
42
|
+
created_at: Date;
|
43
|
+
updated_at: Date;
|
44
|
+
scanned: boolean;
|
45
|
+
scannedAt: Date | null;
|
46
|
+
ticketGroupId: string | null;
|
47
|
+
}, {
|
48
|
+
id: string;
|
49
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
50
|
+
fullName: string;
|
51
|
+
mail: string;
|
52
|
+
eventId: string;
|
53
|
+
dni: string;
|
54
|
+
seat: number | null;
|
55
|
+
created_at: Date;
|
56
|
+
updated_at: Date;
|
57
|
+
scanned: boolean;
|
58
|
+
scannedAt: Date | null;
|
59
|
+
ticketGroupId: string | null;
|
60
|
+
}>, "many">;
|
61
|
+
eventTickets: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
62
|
+
id: z.ZodString;
|
63
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
64
|
+
type: z.ZodNativeEnum<{
|
65
|
+
PARTICIPANT: "PARTICIPANT";
|
66
|
+
STAFF: "STAFF";
|
67
|
+
SPECTATOR: "SPECTATOR";
|
68
|
+
}>;
|
69
|
+
price: z.ZodNullable<z.ZodNumber>;
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
71
|
+
id: string;
|
72
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
73
|
+
amount: number | null;
|
74
|
+
price: number | null;
|
75
|
+
}, {
|
76
|
+
id: string;
|
77
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
78
|
+
amount: number | null;
|
79
|
+
price: number | null;
|
80
|
+
}>, {
|
81
|
+
id: string;
|
82
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
83
|
+
amount: number | null;
|
84
|
+
price: number | null;
|
85
|
+
}, {
|
86
|
+
id: string;
|
87
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
88
|
+
amount: number | null;
|
89
|
+
price: number | null;
|
90
|
+
}>, "many">;
|
91
|
+
}>, "strip", z.ZodTypeAny, {
|
92
|
+
location: string;
|
93
|
+
id: string;
|
94
|
+
name: string;
|
95
|
+
date: Date;
|
96
|
+
startingDate: Date;
|
97
|
+
endingDate: Date;
|
98
|
+
created_at: Date;
|
99
|
+
updated_at: Date;
|
100
|
+
active: boolean;
|
101
|
+
folderId: string | null;
|
102
|
+
tagAssistedId: string;
|
103
|
+
tagConfirmedId: string;
|
104
|
+
supraEventId: string | null;
|
105
|
+
eventTickets: {
|
106
|
+
id: string;
|
107
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
108
|
+
amount: number | null;
|
109
|
+
price: number | null;
|
110
|
+
}[];
|
111
|
+
tickets: {
|
112
|
+
id: string;
|
113
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
114
|
+
fullName: string;
|
115
|
+
mail: string;
|
116
|
+
eventId: string;
|
117
|
+
dni: string;
|
118
|
+
seat: number | null;
|
119
|
+
created_at: Date;
|
120
|
+
updated_at: Date;
|
121
|
+
scanned: boolean;
|
122
|
+
scannedAt: Date | null;
|
123
|
+
ticketGroupId: string | null;
|
124
|
+
}[];
|
125
|
+
}, {
|
126
|
+
location: string;
|
127
|
+
id: string;
|
128
|
+
name: string;
|
129
|
+
date: Date;
|
130
|
+
startingDate: Date;
|
131
|
+
endingDate: Date;
|
132
|
+
created_at: Date;
|
133
|
+
updated_at: Date;
|
134
|
+
active: boolean;
|
135
|
+
folderId: string | null;
|
136
|
+
tagAssistedId: string;
|
137
|
+
tagConfirmedId: string;
|
138
|
+
supraEventId: string | null;
|
139
|
+
eventTickets: {
|
140
|
+
id: string;
|
141
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
142
|
+
amount: number | null;
|
143
|
+
price: number | null;
|
144
|
+
}[];
|
145
|
+
tickets: {
|
146
|
+
id: string;
|
147
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
148
|
+
fullName: string;
|
149
|
+
mail: string;
|
150
|
+
eventId: string;
|
151
|
+
dni: string;
|
152
|
+
seat: number | null;
|
153
|
+
created_at: Date;
|
154
|
+
updated_at: Date;
|
155
|
+
scanned: boolean;
|
156
|
+
scannedAt: Date | null;
|
157
|
+
ticketGroupId: string | null;
|
158
|
+
}[];
|
159
|
+
}>;
|
160
|
+
export declare const getStatisticsByIdResponseSchema: z.ZodObject<{
|
161
|
+
maxTickets: z.ZodNumber;
|
162
|
+
emmitedTickets: z.ZodNumber;
|
163
|
+
emittedTicketsPercent: z.ZodNumber;
|
164
|
+
emmitedticketPerType: z.ZodRecord<z.ZodNativeEnum<{
|
165
|
+
PARTICIPANT: "PARTICIPANT";
|
166
|
+
STAFF: "STAFF";
|
167
|
+
SPECTATOR: "SPECTATOR";
|
168
|
+
}>, z.ZodNumber>;
|
169
|
+
totalIncome: z.ZodNumber;
|
170
|
+
maxTotalIncome: z.ZodNumber;
|
171
|
+
maxTicketPerType: z.ZodRecord<z.ZodNativeEnum<{
|
172
|
+
PARTICIPANT: "PARTICIPANT";
|
173
|
+
STAFF: "STAFF";
|
174
|
+
SPECTATOR: "SPECTATOR";
|
175
|
+
}>, z.ZodNumber>;
|
176
|
+
totalTicketsScanned: z.ZodNumber;
|
177
|
+
notScanned: z.ZodNumber;
|
178
|
+
attendancePercent: z.ZodNumber;
|
179
|
+
attendancePerHour: z.ZodArray<z.ZodObject<{
|
180
|
+
id: z.ZodString;
|
181
|
+
eventId: z.ZodString;
|
182
|
+
type: z.ZodNativeEnum<{
|
183
|
+
PARTICIPANT: "PARTICIPANT";
|
184
|
+
STAFF: "STAFF";
|
185
|
+
SPECTATOR: "SPECTATOR";
|
186
|
+
}>;
|
187
|
+
fullName: z.ZodString;
|
188
|
+
mail: z.ZodString;
|
189
|
+
dni: z.ZodString;
|
190
|
+
seat: z.ZodNullable<z.ZodNumber>;
|
191
|
+
scanned: z.ZodBoolean;
|
192
|
+
scannedAt: z.ZodNullable<z.ZodDate>;
|
193
|
+
ticketGroupId: z.ZodNullable<z.ZodString>;
|
194
|
+
created_at: z.ZodDate;
|
195
|
+
updated_at: z.ZodDate;
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
197
|
+
id: string;
|
198
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
199
|
+
fullName: string;
|
200
|
+
mail: string;
|
201
|
+
eventId: string;
|
202
|
+
dni: string;
|
203
|
+
seat: number | null;
|
204
|
+
created_at: Date;
|
205
|
+
updated_at: Date;
|
206
|
+
scanned: boolean;
|
207
|
+
scannedAt: Date | null;
|
208
|
+
ticketGroupId: string | null;
|
209
|
+
}, {
|
210
|
+
id: string;
|
211
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
212
|
+
fullName: string;
|
213
|
+
mail: string;
|
214
|
+
eventId: string;
|
215
|
+
dni: string;
|
216
|
+
seat: number | null;
|
217
|
+
created_at: Date;
|
218
|
+
updated_at: Date;
|
219
|
+
scanned: boolean;
|
220
|
+
scannedAt: Date | null;
|
221
|
+
ticketGroupId: string | null;
|
222
|
+
}>, "many">;
|
223
|
+
avgAmountPerTicketGroup: z.ZodNullable<z.ZodNumber>;
|
224
|
+
heatMapDates: z.ZodArray<z.ZodDate, "many">;
|
225
|
+
}, "strip", z.ZodTypeAny, {
|
226
|
+
totalIncome: number;
|
227
|
+
attendancePercent: number;
|
228
|
+
maxTickets: number;
|
229
|
+
emmitedTickets: number;
|
230
|
+
emittedTicketsPercent: number;
|
231
|
+
emmitedticketPerType: Partial<Record<"STAFF" | "SPECTATOR" | "PARTICIPANT", number>>;
|
232
|
+
maxTotalIncome: number;
|
233
|
+
maxTicketPerType: Partial<Record<"STAFF" | "SPECTATOR" | "PARTICIPANT", number>>;
|
234
|
+
totalTicketsScanned: number;
|
235
|
+
notScanned: number;
|
236
|
+
attendancePerHour: {
|
237
|
+
id: string;
|
238
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
239
|
+
fullName: string;
|
240
|
+
mail: string;
|
241
|
+
eventId: string;
|
242
|
+
dni: string;
|
243
|
+
seat: number | null;
|
244
|
+
created_at: Date;
|
245
|
+
updated_at: Date;
|
246
|
+
scanned: boolean;
|
247
|
+
scannedAt: Date | null;
|
248
|
+
ticketGroupId: string | null;
|
249
|
+
}[];
|
250
|
+
avgAmountPerTicketGroup: number | null;
|
251
|
+
heatMapDates: Date[];
|
252
|
+
}, {
|
253
|
+
totalIncome: number;
|
254
|
+
attendancePercent: number;
|
255
|
+
maxTickets: number;
|
256
|
+
emmitedTickets: number;
|
257
|
+
emittedTicketsPercent: number;
|
258
|
+
emmitedticketPerType: Partial<Record<"STAFF" | "SPECTATOR" | "PARTICIPANT", number>>;
|
259
|
+
maxTotalIncome: number;
|
260
|
+
maxTicketPerType: Partial<Record<"STAFF" | "SPECTATOR" | "PARTICIPANT", number>>;
|
261
|
+
totalTicketsScanned: number;
|
262
|
+
notScanned: number;
|
263
|
+
attendancePerHour: {
|
264
|
+
id: string;
|
265
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
266
|
+
fullName: string;
|
267
|
+
mail: string;
|
268
|
+
eventId: string;
|
269
|
+
dni: string;
|
270
|
+
seat: number | null;
|
271
|
+
created_at: Date;
|
272
|
+
updated_at: Date;
|
273
|
+
scanned: boolean;
|
274
|
+
scannedAt: Date | null;
|
275
|
+
ticketGroupId: string | null;
|
276
|
+
}[];
|
277
|
+
avgAmountPerTicketGroup: number | null;
|
278
|
+
heatMapDates: Date[];
|
279
|
+
}>;
|
280
|
+
declare const GetStatisticsByIdResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
281
|
+
maxTickets: z.ZodNumber;
|
282
|
+
emmitedTickets: z.ZodNumber;
|
283
|
+
emittedTicketsPercent: z.ZodNumber;
|
284
|
+
emmitedticketPerType: z.ZodRecord<z.ZodNativeEnum<{
|
285
|
+
PARTICIPANT: "PARTICIPANT";
|
286
|
+
STAFF: "STAFF";
|
287
|
+
SPECTATOR: "SPECTATOR";
|
288
|
+
}>, z.ZodNumber>;
|
289
|
+
totalIncome: z.ZodNumber;
|
290
|
+
maxTotalIncome: z.ZodNumber;
|
291
|
+
maxTicketPerType: z.ZodRecord<z.ZodNativeEnum<{
|
292
|
+
PARTICIPANT: "PARTICIPANT";
|
293
|
+
STAFF: "STAFF";
|
294
|
+
SPECTATOR: "SPECTATOR";
|
295
|
+
}>, z.ZodNumber>;
|
296
|
+
totalTicketsScanned: z.ZodNumber;
|
297
|
+
notScanned: z.ZodNumber;
|
298
|
+
attendancePercent: z.ZodNumber;
|
299
|
+
attendancePerHour: z.ZodArray<z.ZodObject<{
|
300
|
+
id: z.ZodString;
|
301
|
+
eventId: z.ZodString;
|
302
|
+
type: z.ZodNativeEnum<{
|
303
|
+
PARTICIPANT: "PARTICIPANT";
|
304
|
+
STAFF: "STAFF";
|
305
|
+
SPECTATOR: "SPECTATOR";
|
306
|
+
}>;
|
307
|
+
fullName: z.ZodString;
|
308
|
+
mail: z.ZodString;
|
309
|
+
dni: z.ZodString;
|
310
|
+
seat: z.ZodNullable<z.ZodNumber>;
|
311
|
+
scanned: z.ZodBoolean;
|
312
|
+
scannedAt: z.ZodNullable<z.ZodString>;
|
313
|
+
ticketGroupId: z.ZodNullable<z.ZodString>;
|
314
|
+
created_at: z.ZodString;
|
315
|
+
updated_at: z.ZodString;
|
316
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
317
|
+
id: string;
|
318
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
319
|
+
fullName: string;
|
320
|
+
mail: string;
|
321
|
+
eventId: string;
|
322
|
+
dni: string;
|
323
|
+
seat: number | null;
|
324
|
+
created_at: string;
|
325
|
+
updated_at: string;
|
326
|
+
scanned: boolean;
|
327
|
+
scannedAt: string | null;
|
328
|
+
ticketGroupId: string | null;
|
329
|
+
}, {
|
330
|
+
id: string;
|
331
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
332
|
+
fullName: string;
|
333
|
+
mail: string;
|
334
|
+
eventId: string;
|
335
|
+
dni: string;
|
336
|
+
seat: number | null;
|
337
|
+
created_at: string;
|
338
|
+
updated_at: string;
|
339
|
+
scanned: boolean;
|
340
|
+
scannedAt: string | null;
|
341
|
+
ticketGroupId: string | null;
|
342
|
+
}>, "many">;
|
343
|
+
avgAmountPerTicketGroup: z.ZodNullable<z.ZodNumber>;
|
344
|
+
heatMapDates: z.ZodArray<z.ZodString, "many">;
|
345
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
346
|
+
totalIncome: number;
|
347
|
+
attendancePercent: number;
|
348
|
+
maxTickets: number;
|
349
|
+
emmitedTickets: number;
|
350
|
+
emittedTicketsPercent: number;
|
351
|
+
emmitedticketPerType: Partial<Record<"STAFF" | "SPECTATOR" | "PARTICIPANT", number>>;
|
352
|
+
maxTotalIncome: number;
|
353
|
+
maxTicketPerType: Partial<Record<"STAFF" | "SPECTATOR" | "PARTICIPANT", number>>;
|
354
|
+
totalTicketsScanned: number;
|
355
|
+
notScanned: number;
|
356
|
+
attendancePerHour: {
|
357
|
+
id: string;
|
358
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
359
|
+
fullName: string;
|
360
|
+
mail: string;
|
361
|
+
eventId: string;
|
362
|
+
dni: string;
|
363
|
+
seat: number | null;
|
364
|
+
created_at: string;
|
365
|
+
updated_at: string;
|
366
|
+
scanned: boolean;
|
367
|
+
scannedAt: string | null;
|
368
|
+
ticketGroupId: string | null;
|
369
|
+
}[];
|
370
|
+
avgAmountPerTicketGroup: number | null;
|
371
|
+
heatMapDates: string[];
|
372
|
+
}, {
|
373
|
+
totalIncome: number;
|
374
|
+
attendancePercent: number;
|
375
|
+
maxTickets: number;
|
376
|
+
emmitedTickets: number;
|
377
|
+
emittedTicketsPercent: number;
|
378
|
+
emmitedticketPerType: Partial<Record<"STAFF" | "SPECTATOR" | "PARTICIPANT", number>>;
|
379
|
+
maxTotalIncome: number;
|
380
|
+
maxTicketPerType: Partial<Record<"STAFF" | "SPECTATOR" | "PARTICIPANT", number>>;
|
381
|
+
totalTicketsScanned: number;
|
382
|
+
notScanned: number;
|
383
|
+
attendancePerHour: {
|
384
|
+
id: string;
|
385
|
+
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
386
|
+
fullName: string;
|
387
|
+
mail: string;
|
388
|
+
eventId: string;
|
389
|
+
dni: string;
|
390
|
+
seat: number | null;
|
391
|
+
created_at: string;
|
392
|
+
updated_at: string;
|
393
|
+
scanned: boolean;
|
394
|
+
scannedAt: string | null;
|
395
|
+
ticketGroupId: string | null;
|
396
|
+
}[];
|
397
|
+
avgAmountPerTicketGroup: number | null;
|
398
|
+
heatMapDates: string[];
|
399
|
+
}>>;
|
400
|
+
export declare class GetStatisticsByIdResponseDto extends GetStatisticsByIdResponseDto_base {
|
401
|
+
}
|
402
|
+
export {};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.GetStatisticsByIdResponseDto = exports.getStatisticsByIdResponseSchema = exports.getStatisticsByIdSchema = void 0;
|
7
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
8
|
+
const ticket_dto_1 = require("../../ticket/dto/ticket.dto");
|
9
|
+
const zod_1 = __importDefault(require("zod"));
|
10
|
+
const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
|
11
|
+
const event_tickets_dto_1 = require("./event-tickets.dto");
|
12
|
+
const event_dto_1 = require("./event.dto");
|
13
|
+
exports.getStatisticsByIdSchema = event_dto_1.eventSchema.merge(zod_1.default.object({
|
14
|
+
tickets: zod_1.default.array(ticket_dto_1.ticketSchema),
|
15
|
+
eventTickets: zod_1.default.array(event_tickets_dto_1.eventTicketsSchema),
|
16
|
+
}));
|
17
|
+
exports.getStatisticsByIdResponseSchema = zod_1.default.object({
|
18
|
+
maxTickets: zod_1.default.number(),
|
19
|
+
emmitedTickets: zod_1.default.number(),
|
20
|
+
emittedTicketsPercent: zod_1.default.number(),
|
21
|
+
emmitedticketPerType: zod_1.default.record(zod_1.default.nativeEnum(prisma_schema_1.TicketType), zod_1.default.number()),
|
22
|
+
totalIncome: zod_1.default.number(),
|
23
|
+
maxTotalIncome: zod_1.default.number(),
|
24
|
+
maxTicketPerType: zod_1.default.record(zod_1.default.nativeEnum(prisma_schema_1.TicketType), zod_1.default.number()),
|
25
|
+
totalTicketsScanned: zod_1.default.number(),
|
26
|
+
notScanned: zod_1.default.number(),
|
27
|
+
attendancePercent: zod_1.default.number(),
|
28
|
+
attendancePerHour: ticket_dto_1.ticketSchema.array(),
|
29
|
+
avgAmountPerTicketGroup: zod_1.default.number().nullable(),
|
30
|
+
heatMapDates: zod_1.default.date().array(),
|
31
|
+
});
|
32
|
+
class GetStatisticsByIdResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.getStatisticsByIdResponseSchema) {
|
33
|
+
}
|
34
|
+
exports.GetStatisticsByIdResponseDto = GetStatisticsByIdResponseDto;
|
35
|
+
//# sourceMappingURL=get-statistics-by-id-event.dto.js.map
|
@@ -240,7 +240,6 @@ export declare const updateEventResponseSchema: z.ZodObject<z.objectUtil.extendS
|
|
240
240
|
EVENT: "EVENT";
|
241
241
|
PARTICIPANT: "PARTICIPANT";
|
242
242
|
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
243
|
-
PRODUCTION_ROLE: "PRODUCTION_ROLE";
|
244
243
|
}>;
|
245
244
|
created_at: z.ZodDate;
|
246
245
|
updated_at: z.ZodDate;
|
@@ -270,7 +269,7 @@ export declare const updateEventResponseSchema: z.ZodObject<z.objectUtil.extendS
|
|
270
269
|
}>, "strip", z.ZodTypeAny, {
|
271
270
|
id: string;
|
272
271
|
name: string;
|
273
|
-
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM"
|
272
|
+
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM";
|
274
273
|
created_at: Date;
|
275
274
|
updated_at: Date;
|
276
275
|
groupId: string;
|
@@ -285,7 +284,7 @@ export declare const updateEventResponseSchema: z.ZodObject<z.objectUtil.extendS
|
|
285
284
|
}, {
|
286
285
|
id: string;
|
287
286
|
name: string;
|
288
|
-
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM"
|
287
|
+
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM";
|
289
288
|
created_at: Date;
|
290
289
|
updated_at: Date;
|
291
290
|
groupId: string;
|
@@ -351,7 +350,7 @@ export declare const updateEventResponseSchema: z.ZodObject<z.objectUtil.extendS
|
|
351
350
|
tagAssisted: {
|
352
351
|
id: string;
|
353
352
|
name: string;
|
354
|
-
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM"
|
353
|
+
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM";
|
355
354
|
created_at: Date;
|
356
355
|
updated_at: Date;
|
357
356
|
groupId: string;
|
@@ -387,7 +386,7 @@ export declare const updateEventResponseSchema: z.ZodObject<z.objectUtil.extendS
|
|
387
386
|
tagAssisted: {
|
388
387
|
id: string;
|
389
388
|
name: string;
|
390
|
-
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM"
|
389
|
+
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM";
|
391
390
|
created_at: Date;
|
392
391
|
updated_at: Date;
|
393
392
|
groupId: string;
|
@@ -424,7 +423,6 @@ declare const UpdateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
|
|
424
423
|
EVENT: "EVENT";
|
425
424
|
PARTICIPANT: "PARTICIPANT";
|
426
425
|
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
427
|
-
PRODUCTION_ROLE: "PRODUCTION_ROLE";
|
428
426
|
}>;
|
429
427
|
created_at: z.ZodString;
|
430
428
|
updated_at: z.ZodString;
|
@@ -453,7 +451,7 @@ declare const UpdateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
|
|
453
451
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
454
452
|
id: string;
|
455
453
|
name: string;
|
456
|
-
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM"
|
454
|
+
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM";
|
457
455
|
created_at: string;
|
458
456
|
updated_at: string;
|
459
457
|
groupId: string;
|
@@ -468,7 +466,7 @@ declare const UpdateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
|
|
468
466
|
}, {
|
469
467
|
id: string;
|
470
468
|
name: string;
|
471
|
-
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM"
|
469
|
+
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM";
|
472
470
|
created_at: string;
|
473
471
|
updated_at: string;
|
474
472
|
groupId: string;
|
@@ -534,7 +532,7 @@ declare const UpdateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
|
|
534
532
|
tagAssisted: {
|
535
533
|
id: string;
|
536
534
|
name: string;
|
537
|
-
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM"
|
535
|
+
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM";
|
538
536
|
created_at: string;
|
539
537
|
updated_at: string;
|
540
538
|
groupId: string;
|
@@ -570,7 +568,7 @@ declare const UpdateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
|
|
570
568
|
tagAssisted: {
|
571
569
|
id: string;
|
572
570
|
name: string;
|
573
|
-
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM"
|
571
|
+
type: "PARTICIPANT" | "PROFILE" | "EVENT" | "NOT_IN_SYSTEM";
|
574
572
|
created_at: string;
|
575
573
|
updated_at: string;
|
576
574
|
groupId: string;
|
package/dist/src/exports.d.ts
CHANGED
@@ -10,7 +10,6 @@ export * from './mercadopago/exports';
|
|
10
10
|
export * from './message/exports';
|
11
11
|
export * from './mi-expo/exports';
|
12
12
|
export * from './otp/exports';
|
13
|
-
export * from './production/exports';
|
14
13
|
export * from './profile/exports';
|
15
14
|
export * from './schema/exports';
|
16
15
|
export * from './shared/dto-modification/zod-without-dates';
|
package/dist/src/exports.js
CHANGED
@@ -26,7 +26,6 @@ __exportStar(require("./mercadopago/exports"), exports);
|
|
26
26
|
__exportStar(require("./message/exports"), exports);
|
27
27
|
__exportStar(require("./mi-expo/exports"), exports);
|
28
28
|
__exportStar(require("./otp/exports"), exports);
|
29
|
-
__exportStar(require("./production/exports"), exports);
|
30
29
|
__exportStar(require("./profile/exports"), exports);
|
31
30
|
__exportStar(require("./schema/exports"), exports);
|
32
31
|
__exportStar(require("./shared/dto-modification/zod-without-dates"), exports);
|
package/dist/src/i18n/es.d.ts
CHANGED
@@ -15,8 +15,6 @@ declare const _default: {
|
|
15
15
|
readonly ticket: "Ticket";
|
16
16
|
readonly eventTicket: "Tickets del evento";
|
17
17
|
readonly ticketGroup: "Grupo de tickets";
|
18
|
-
readonly production: "Producción";
|
19
|
-
readonly productionAffiliationRequest: "Solicitud de afiliación a producción";
|
20
18
|
};
|
21
19
|
readonly tag: {
|
22
20
|
readonly assisted: "Asistió";
|
@@ -242,19 +240,6 @@ declare const _default: {
|
|
242
240
|
readonly min: "El precio de los tickets debe ser mayor a 0";
|
243
241
|
};
|
244
242
|
};
|
245
|
-
readonly production: {
|
246
|
-
readonly id: {
|
247
|
-
readonly uuid: "El ID debe ser un UUID";
|
248
|
-
};
|
249
|
-
readonly name: {
|
250
|
-
readonly min: "El nombre de la producción debe tener al menos 1 caracter";
|
251
|
-
};
|
252
|
-
};
|
253
|
-
readonly productionAffiliationRequest: {
|
254
|
-
readonly id: {
|
255
|
-
readonly uuid: "El ID debe ser un UUID";
|
256
|
-
};
|
257
|
-
};
|
258
243
|
};
|
259
244
|
readonly route: {
|
260
245
|
readonly auth: {
|
@@ -428,6 +413,13 @@ declare const _default: {
|
|
428
413
|
readonly success: "Evento obtenido con éxito";
|
429
414
|
readonly 'not-found': "Evento no encontrado";
|
430
415
|
};
|
416
|
+
readonly 'get-statistics': {
|
417
|
+
readonly success: "Estadisticas obtenidas con éxito";
|
418
|
+
};
|
419
|
+
readonly 'get-statistics-by-id': {
|
420
|
+
readonly success: "Estadisticas del evento obtenidas con éxito";
|
421
|
+
readonly 'not-found': "Evento no encontrado";
|
422
|
+
};
|
431
423
|
readonly update: {
|
432
424
|
readonly success: "Evento actualizado con éxito";
|
433
425
|
readonly 'not-found': "Evento no encontrado";
|
@@ -740,39 +732,6 @@ declare const _default: {
|
|
740
732
|
readonly 'invalid-signature': "Firma inválida";
|
741
733
|
};
|
742
734
|
};
|
743
|
-
readonly production: {
|
744
|
-
readonly create: {
|
745
|
-
readonly success: "Producción creada con éxito";
|
746
|
-
readonly 'already-exists': "Producción ya existente";
|
747
|
-
};
|
748
|
-
readonly delete: {
|
749
|
-
readonly 'event-active': "No se puede eliminar la producción {{productionName}} porque tiene eventos activos";
|
750
|
-
readonly 'not-found': "Producción no encontrada";
|
751
|
-
readonly success: "Producción eliminada con éxito";
|
752
|
-
};
|
753
|
-
readonly update: {
|
754
|
-
readonly success: "Producción actualizada con éxito";
|
755
|
-
readonly 'not-found': "Producción no encontrada";
|
756
|
-
readonly 'already-exists': "Producción ya existente";
|
757
|
-
};
|
758
|
-
};
|
759
|
-
readonly 'production-affiliation-request': {
|
760
|
-
readonly create: {
|
761
|
-
readonly success: "Solicitud de afiliación a producción creada con éxito";
|
762
|
-
readonly conflict: "Error en la creación de la solicitud de afiliación";
|
763
|
-
readonly 'already-admin': "Ya eres administrador de una producción";
|
764
|
-
};
|
765
|
-
readonly update: {
|
766
|
-
readonly success: "Solicitud de afiliación a producción actualizada con éxito";
|
767
|
-
readonly conflict: "Error en la actualización de la solicitud de afiliación";
|
768
|
-
readonly 'not-found': "Solicitud de afiliación no encontrada";
|
769
|
-
readonly unauthorized: "No tienes autorización para actualizar la solicitud";
|
770
|
-
};
|
771
|
-
readonly 'find-by-production': {
|
772
|
-
readonly success: "Solicitud de afiliación a producción obtenida con éxito";
|
773
|
-
readonly 'not-found': "Producción no encontrada";
|
774
|
-
};
|
775
|
-
};
|
776
735
|
};
|
777
736
|
};
|
778
737
|
export default _default;
|