@xoxno/types 1.0.199 → 1.0.200
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.
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { EventInvitationDoc } from './event-invitation.doc';
|
|
2
|
-
|
|
3
|
-
ticketId: string;
|
|
4
|
-
quantity: number;
|
|
5
|
-
}
|
|
2
|
+
import { TicketsType } from './event-ticket-qr-type.enum';
|
|
6
3
|
declare type EventInvitationCreateDto_base = Pick<EventInvitationDoc, "name" | "startTime" | "endTime" | "email">;
|
|
7
4
|
export declare type EventInvitationCreateDto = EventInvitationCreateDto_base & {
|
|
8
|
-
tickets:
|
|
5
|
+
tickets: TicketsType[];
|
|
9
6
|
};
|
|
10
7
|
declare const EventInvitationCreateDtoNest_base: import("@nestjs/common").Type<Pick<EventInvitationDoc, "name" | "startTime" | "endTime" | "email">>;
|
|
11
8
|
export declare class EventInvitationCreateDtoNest extends EventInvitationCreateDtoNest_base {
|
|
12
|
-
tickets:
|
|
9
|
+
tickets: TicketsType[];
|
|
13
10
|
}
|
|
14
11
|
export {};
|
|
@@ -14,18 +14,7 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const event_invitation_doc_1 = require("./event-invitation.doc");
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, swagger_1.ApiProperty)({ type: 'string' }),
|
|
21
|
-
(0, class_validator_1.IsUUID)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], Ticket.prototype, "ticketId", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, swagger_1.ApiProperty)({ type: 'integer' }),
|
|
26
|
-
(0, class_validator_1.IsNumber)(),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], Ticket.prototype, "quantity", void 0);
|
|
17
|
+
const event_ticket_qr_type_enum_1 = require("./event-ticket-qr-type.enum");
|
|
29
18
|
class EventInvitationCreateDto extends (0, swagger_1.PickType)(event_invitation_doc_1.EventInvitationDoc, [
|
|
30
19
|
'name',
|
|
31
20
|
'email',
|
|
@@ -39,11 +28,11 @@ class EventInvitationCreateDto extends (0, swagger_1.PickType)(event_invitation_
|
|
|
39
28
|
}
|
|
40
29
|
exports.EventInvitationCreateDto = EventInvitationCreateDto;
|
|
41
30
|
__decorate([
|
|
42
|
-
(0, swagger_1.ApiProperty)({ type: () =>
|
|
31
|
+
(0, swagger_1.ApiProperty)({ type: () => event_ticket_qr_type_enum_1.TicketsType, isArray: true }),
|
|
43
32
|
(0, class_validator_1.IsArray)(),
|
|
44
33
|
(0, class_validator_1.ArrayMaxSize)(100),
|
|
45
34
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
46
|
-
(0, class_transformer_1.Type)(() =>
|
|
35
|
+
(0, class_transformer_1.Type)(() => event_ticket_qr_type_enum_1.TicketsType),
|
|
47
36
|
__metadata("design:type", Array)
|
|
48
37
|
], EventInvitationCreateDto.prototype, "tickets", void 0);
|
|
49
38
|
|