expo-backend-types 0.40.0-EXPO-327-EB-Escanear-entrada.3 → 0.40.0-EXPO-327-EB-Escanear-entrada.4

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.
@@ -22,18 +22,92 @@ declare const ScanTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.Z
22
22
  export declare class ScanTicketDto extends ScanTicketDto_base {
23
23
  }
24
24
  export declare const scanTicketResponseSchema: z.ZodObject<{
25
- success: z.ZodBoolean;
25
+ id: z.ZodString;
26
+ eventId: z.ZodString;
27
+ type: z.ZodNativeEnum<{
28
+ PARTICIPANT: "PARTICIPANT";
29
+ STAFF: "STAFF";
30
+ SPECTATOR: "SPECTATOR";
31
+ }>;
32
+ fullName: z.ZodString;
33
+ mail: z.ZodString;
34
+ dni: z.ZodString;
35
+ seat: z.ZodNullable<z.ZodNumber>;
36
+ scanned: z.ZodBoolean;
37
+ scannedAt: z.ZodNullable<z.ZodDate>;
38
+ ticketGroupId: z.ZodNullable<z.ZodString>;
39
+ created_at: z.ZodDate;
40
+ updated_at: z.ZodDate;
26
41
  }, "strip", z.ZodTypeAny, {
27
- success: boolean;
42
+ id: string;
43
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
44
+ fullName: string;
45
+ mail: string;
46
+ eventId: string;
47
+ dni: string;
48
+ seat: number | null;
49
+ created_at: Date;
50
+ updated_at: Date;
51
+ scanned: boolean;
52
+ scannedAt: Date | null;
53
+ ticketGroupId: string | null;
28
54
  }, {
29
- success: boolean;
55
+ id: string;
56
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
57
+ fullName: string;
58
+ mail: string;
59
+ eventId: string;
60
+ dni: string;
61
+ seat: number | null;
62
+ created_at: Date;
63
+ updated_at: Date;
64
+ scanned: boolean;
65
+ scannedAt: Date | null;
66
+ ticketGroupId: string | null;
30
67
  }>;
31
68
  declare const ScanTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
32
- success: z.ZodBoolean;
69
+ id: z.ZodString;
70
+ eventId: z.ZodString;
71
+ type: z.ZodNativeEnum<{
72
+ PARTICIPANT: "PARTICIPANT";
73
+ STAFF: "STAFF";
74
+ SPECTATOR: "SPECTATOR";
75
+ }>;
76
+ fullName: z.ZodString;
77
+ mail: z.ZodString;
78
+ dni: z.ZodString;
79
+ seat: z.ZodNullable<z.ZodNumber>;
80
+ scanned: z.ZodBoolean;
81
+ scannedAt: z.ZodNullable<z.ZodString>;
82
+ ticketGroupId: z.ZodNullable<z.ZodString>;
83
+ created_at: z.ZodString;
84
+ updated_at: z.ZodString;
33
85
  }, z.UnknownKeysParam, z.ZodTypeAny, {
34
- success: boolean;
86
+ id: string;
87
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
88
+ fullName: string;
89
+ mail: string;
90
+ eventId: string;
91
+ dni: string;
92
+ seat: number | null;
93
+ created_at: string;
94
+ updated_at: string;
95
+ scanned: boolean;
96
+ scannedAt: string | null;
97
+ ticketGroupId: string | null;
35
98
  }, {
36
- success: boolean;
99
+ id: string;
100
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
101
+ fullName: string;
102
+ mail: string;
103
+ eventId: string;
104
+ dni: string;
105
+ seat: number | null;
106
+ created_at: string;
107
+ updated_at: string;
108
+ scanned: boolean;
109
+ scannedAt: string | null;
110
+ ticketGroupId: string | null;
37
111
  }>>;
38
112
  export declare class ScanTicketResponseDto extends ScanTicketResponseDto_base {
39
113
  }
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ScanTicketResponseDto = exports.scanTicketResponseSchema = exports.ScanTicketDto = exports.scanTicketSchema = void 0;
7
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");
8
9
  const zod_1 = __importDefault(require("zod"));
9
10
  exports.scanTicketSchema = zod_1.default.object({
10
11
  type: zod_1.default.enum(['id', 'barcode']),
@@ -13,9 +14,7 @@ exports.scanTicketSchema = zod_1.default.object({
13
14
  class ScanTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.scanTicketSchema) {
14
15
  }
15
16
  exports.ScanTicketDto = ScanTicketDto;
16
- exports.scanTicketResponseSchema = zod_1.default.object({
17
- success: zod_1.default.boolean(),
18
- });
17
+ exports.scanTicketResponseSchema = ticket_dto_1.ticketSchema;
19
18
  class ScanTicketResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.scanTicketResponseSchema) {
20
19
  }
21
20
  exports.ScanTicketResponseDto = ScanTicketResponseDto;
@@ -3162,7 +3162,18 @@ export interface components {
3162
3162
  value: string;
3163
3163
  };
3164
3164
  ScanTicketResponseDto: {
3165
- success: boolean;
3165
+ id: string;
3166
+ eventId: string;
3167
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
3168
+ fullName: string;
3169
+ mail: string;
3170
+ dni: string;
3171
+ seat: number | null;
3172
+ scanned: boolean;
3173
+ scannedAt: string | null;
3174
+ ticketGroupId: string | null;
3175
+ created_at: string;
3176
+ updated_at: string;
3166
3177
  };
3167
3178
  SendEmailResponseDto: {
3168
3179
  mailId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.40.0-EXPO-327-EB-Escanear-entrada.3",
3
+ "version": "0.40.0-EXPO-327-EB-Escanear-entrada.4",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,