@xoxno/types 1.0.159 → 1.0.161
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/cosmos-db/documents/chat/chat-message-content.dto.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-guest.doc.js +2 -2
- package/dist/cosmos-db/documents/ticketing/event-invitation-create.dto.d.ts +7 -5
- package/dist/cosmos-db/documents/ticketing/event-invitation-create.dto.js +10 -34
- package/dist/cosmos-db/documents/ticketing/event-invitation.doc.d.ts +1 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +15 -0
- package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.d.ts +10 -26
- package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.js +40 -151
- package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.d.ts +6 -13
- package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.js +3 -105
- package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +15 -0
- package/dist/cosmos-db/documents/ticketing/event-question-create.dto.d.ts +6 -7
- package/dist/cosmos-db/documents/ticketing/event-question-create.dto.js +10 -55
- package/dist/cosmos-db/documents/ticketing/event-question-edit.dto.d.ts +6 -7
- package/dist/cosmos-db/documents/ticketing/event-question-edit.dto.js +4 -60
- package/dist/cosmos-db/documents/ticketing/event-question.doc.js +6 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.d.ts +6 -7
- package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.js +3 -52
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-create.dto.d.ts +6 -3
- package/dist/cosmos-db/documents/ticketing/event-referral-create.dto.js +7 -25
- package/dist/cosmos-db/documents/ticketing/event-referral-edit.dto.d.ts +6 -3
- package/dist/cosmos-db/documents/ticketing/event-referral-edit.dto.js +4 -30
- package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +2 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile-create.dto.d.ts +6 -12
- package/dist/cosmos-db/documents/ticketing/event-stage-profile-create.dto.js +15 -103
- package/dist/cosmos-db/documents/ticketing/event-stage-profile-edit.dto.d.ts +3 -10
- package/dist/cosmos-db/documents/ticketing/event-stage-profile-edit.dto.js +1 -41
- package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +8 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile-create.dto.d.ts +6 -7
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile-create.dto.js +12 -68
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile-edit.dto.d.ts +3 -8
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile-edit.dto.js +1 -24
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +11 -0
- package/dist/cosmos-db/documents/ticketing/event-user-role-create.dto.d.ts +6 -8
- package/dist/cosmos-db/documents/ticketing/event-user-role-create.dto.js +11 -63
- package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +9 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.d.ts +1 -23
- package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.js +0 -104
- package/dist/cosmos-db/documents/ticketing/event-voucher-edit.dto.d.ts +1 -8
- package/dist/cosmos-db/documents/ticketing/event-voucher-edit.dto.js +0 -40
- package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +11 -1
- package/dist/entities/web2user-data/web2user.doc.js +4 -0
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ __decorate([
|
|
|
30
30
|
], ChatMessageContentDto.prototype, "value", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, class_validator_1.IsOptional)(),
|
|
33
|
-
(0, class_validator_1.ValidateNested)(),
|
|
33
|
+
(0, class_validator_1.ValidateNested)({}),
|
|
34
34
|
(0, class_transformer_1.Type)(() => chat_message_reply_dto_1.ChatMessageReplyDto),
|
|
35
35
|
(0, class_validator_1.IsNotEmptyObject)(),
|
|
36
36
|
(0, swagger_1.ApiProperty)({
|
|
@@ -120,7 +120,7 @@ __decorate([
|
|
|
120
120
|
], EventGuestRegistration.prototype, "email", void 0);
|
|
121
121
|
__decorate([
|
|
122
122
|
(0, swagger_1.ApiProperty)({
|
|
123
|
-
description: '
|
|
123
|
+
description: 'Name of the guest',
|
|
124
124
|
type: String,
|
|
125
125
|
required: false,
|
|
126
126
|
}),
|
|
@@ -128,7 +128,7 @@ __decorate([
|
|
|
128
128
|
], EventGuestRegistration.prototype, "name", void 0);
|
|
129
129
|
__decorate([
|
|
130
130
|
(0, swagger_1.ApiProperty)({
|
|
131
|
-
description: '
|
|
131
|
+
description: 'Phone number of the guest',
|
|
132
132
|
type: String,
|
|
133
133
|
required: false,
|
|
134
134
|
}),
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { EventInvitationDoc } from './event-invitation.doc';
|
|
1
2
|
declare class Ticket {
|
|
2
3
|
ticketId: string;
|
|
3
4
|
quantity: number;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
declare type EventInvitationCreateDto_base = Pick<EventInvitationDoc, "name" | "startTime" | "endTime" | "email">;
|
|
7
|
+
export declare type EventInvitationCreateDto = EventInvitationCreateDto_base & {
|
|
8
|
+
tickets: Ticket[];
|
|
9
|
+
};
|
|
10
|
+
declare const EventInvitationCreateDtoNest_base: import("@nestjs/common").Type<Pick<EventInvitationDoc, "name" | "startTime" | "endTime" | "email">>;
|
|
11
|
+
export declare class EventInvitationCreateDtoNest extends EventInvitationCreateDtoNest_base {
|
|
8
12
|
tickets: Ticket[];
|
|
9
|
-
startTime: number;
|
|
10
|
-
endTime: number;
|
|
11
13
|
}
|
|
12
14
|
export {};
|
|
@@ -13,6 +13,7 @@ exports.EventInvitationCreateDto = void 0;
|
|
|
13
13
|
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
|
+
const event_invitation_doc_1 = require("./event-invitation.doc");
|
|
16
17
|
class Ticket {
|
|
17
18
|
}
|
|
18
19
|
__decorate([
|
|
@@ -25,23 +26,18 @@ __decorate([
|
|
|
25
26
|
(0, class_validator_1.IsNumber)(),
|
|
26
27
|
__metadata("design:type", Number)
|
|
27
28
|
], Ticket.prototype, "quantity", void 0);
|
|
28
|
-
class EventInvitationCreateDto
|
|
29
|
+
class EventInvitationCreateDto extends (0, swagger_1.PickType)(event_invitation_doc_1.EventInvitationDoc, [
|
|
30
|
+
'name',
|
|
31
|
+
'email',
|
|
32
|
+
'startTime',
|
|
33
|
+
'endTime',
|
|
34
|
+
]) {
|
|
29
35
|
constructor() {
|
|
36
|
+
super(...arguments);
|
|
30
37
|
this.tickets = [];
|
|
31
38
|
}
|
|
32
39
|
}
|
|
33
40
|
exports.EventInvitationCreateDto = EventInvitationCreateDto;
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, swagger_1.ApiProperty)(),
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, class_validator_1.Length)(1, 30),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], EventInvitationCreateDto.prototype, "name", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)(),
|
|
42
|
-
(0, class_validator_1.IsEmail)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], EventInvitationCreateDto.prototype, "email", void 0);
|
|
45
41
|
__decorate([
|
|
46
42
|
(0, swagger_1.ApiProperty)({ type: Ticket, isArray: true }),
|
|
47
43
|
(0, class_validator_1.IsArray)(),
|
|
@@ -50,25 +46,5 @@ __decorate([
|
|
|
50
46
|
(0, class_transformer_1.Type)(() => Ticket),
|
|
51
47
|
__metadata("design:type", Array)
|
|
52
48
|
], EventInvitationCreateDto.prototype, "tickets", void 0);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
description: 'The start timestamp of the invitation.',
|
|
56
|
-
example: 1627849200,
|
|
57
|
-
type: 'integer',
|
|
58
|
-
}),
|
|
59
|
-
(0, class_validator_1.IsNumber)(),
|
|
60
|
-
(0, class_validator_1.Min)(1),
|
|
61
|
-
(0, class_validator_1.IsOptional)(),
|
|
62
|
-
__metadata("design:type", Number)
|
|
63
|
-
], EventInvitationCreateDto.prototype, "startTime", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, swagger_1.ApiProperty)({
|
|
66
|
-
description: 'The expiry timestamp of the invitation.',
|
|
67
|
-
example: 1627852800,
|
|
68
|
-
type: 'integer',
|
|
69
|
-
}),
|
|
70
|
-
(0, class_validator_1.IsNumber)(),
|
|
71
|
-
(0, class_validator_1.IsOptional)(),
|
|
72
|
-
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000) + 86400),
|
|
73
|
-
__metadata("design:type", Number)
|
|
74
|
-
], EventInvitationCreateDto.prototype, "endTime", void 0);
|
|
49
|
+
|
|
50
|
+
exports.EventInvitationCreateDtoNest = EventInvitationCreateDto;
|
|
@@ -17,6 +17,7 @@ const event_invitation_status_enum_1 = require("../../../enums/event-invitation-
|
|
|
17
17
|
const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
|
|
18
18
|
const cosmos_db_paginated_response_dto_1 = require("../../cosmos-db-paginated-response.dto");
|
|
19
19
|
const event_ticket_profile_doc_1 = require("./event-ticket-profile.doc");
|
|
20
|
+
const class_transformer_1 = require("class-transformer");
|
|
20
21
|
class EventInvitationDoc {
|
|
21
22
|
constructor(props) {
|
|
22
23
|
this.dataType = ticketing_data_type_enum_1.TicketingDataType.INVITATION;
|
|
@@ -59,6 +60,7 @@ __decorate([
|
|
|
59
60
|
type: String,
|
|
60
61
|
required: false,
|
|
61
62
|
}),
|
|
63
|
+
(0, class_validator_1.Length)(1, 30),
|
|
62
64
|
__metadata("design:type", String)
|
|
63
65
|
], EventInvitationDoc.prototype, "name", void 0);
|
|
64
66
|
__decorate([
|
|
@@ -68,8 +70,17 @@ __decorate([
|
|
|
68
70
|
type: String,
|
|
69
71
|
required: false,
|
|
70
72
|
}),
|
|
73
|
+
(0, class_validator_1.IsEmail)(),
|
|
71
74
|
__metadata("design:type", String)
|
|
72
75
|
], EventInvitationDoc.prototype, "email", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
description: 'Phone number of the guest',
|
|
79
|
+
type: String,
|
|
80
|
+
required: false,
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], EventInvitationDoc.prototype, "phone", void 0);
|
|
73
84
|
__decorate([
|
|
74
85
|
(0, swagger_1.ApiProperty)({
|
|
75
86
|
description: 'List of ticket types with their IDs and quantities.',
|
|
@@ -77,6 +88,8 @@ __decorate([
|
|
|
77
88
|
isArray: true,
|
|
78
89
|
example: [{ ticketId: 'VIP123', quantity: 2 }],
|
|
79
90
|
}),
|
|
91
|
+
(0, class_transformer_1.Type)(() => event_ticket_profile_doc_1.TicketProfileSummary),
|
|
92
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
80
93
|
__metadata("design:type", Array)
|
|
81
94
|
], EventInvitationDoc.prototype, "tickets", void 0);
|
|
82
95
|
__decorate([
|
|
@@ -86,6 +99,7 @@ __decorate([
|
|
|
86
99
|
type: 'integer',
|
|
87
100
|
}),
|
|
88
101
|
(0, class_validator_1.IsInt)(),
|
|
102
|
+
(0, class_validator_1.Min)(1),
|
|
89
103
|
__metadata("design:type", Number)
|
|
90
104
|
], EventInvitationDoc.prototype, "startTime", void 0);
|
|
91
105
|
__decorate([
|
|
@@ -95,6 +109,7 @@ __decorate([
|
|
|
95
109
|
type: 'integer',
|
|
96
110
|
}),
|
|
97
111
|
(0, class_validator_1.IsInt)(),
|
|
112
|
+
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000) + 86400),
|
|
98
113
|
__metadata("design:type", Number)
|
|
99
114
|
], EventInvitationDoc.prototype, "endTime", void 0);
|
|
100
115
|
__decorate([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventCategory, EventSubCategory } from '../../../enums/event-category.enum';
|
|
2
1
|
import { Visibility } from '../../../enums/ticketing-visibility.enum';
|
|
2
|
+
import { EventProfileDoc } from './event-profile.doc';
|
|
3
3
|
export declare class EventSeoDto {
|
|
4
4
|
description?: string;
|
|
5
5
|
tags?: string[];
|
|
@@ -35,30 +35,14 @@ export declare class EventLocationDto {
|
|
|
35
35
|
city?: string;
|
|
36
36
|
country?: string;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
requireKYC: boolean;
|
|
43
|
-
requireName: boolean;
|
|
44
|
-
requireEmail: boolean;
|
|
45
|
-
requirePhoneNumber: boolean;
|
|
46
|
-
isPublished: boolean;
|
|
47
|
-
hasSideEvents: boolean;
|
|
48
|
-
hasWaitlist: boolean;
|
|
49
|
-
showGuestCount: boolean;
|
|
50
|
-
refundable: boolean;
|
|
51
|
-
nameWithNumber: boolean;
|
|
52
|
-
botProtection: boolean;
|
|
38
|
+
declare type RegistrationDetailsCreateDto_base = Pick<RegistrationDetailsDto, "maxLimit" | "userLimit" | "visibility" | "requireKYC" | "requireName" | "requireEmail" | "requirePhoneNumber" | "isPublished" | "hasSideEvents" | "hasWaitlist" | "showGuestCount" | "refundable" | "nameWithNumber" | "botProtection">;
|
|
39
|
+
export declare type RegistrationDetailsCreateDto = RegistrationDetailsCreateDto_base ;
|
|
40
|
+
declare const RegistrationDetailsCreateDtoNest_base: import("@nestjs/common").Type<Pick<RegistrationDetailsDto, "maxLimit" | "userLimit" | "visibility" | "requireKYC" | "requireName" | "requireEmail" | "requirePhoneNumber" | "isPublished" | "hasSideEvents" | "hasWaitlist" | "showGuestCount" | "refundable" | "nameWithNumber" | "botProtection">>;
|
|
41
|
+
export declare class RegistrationDetailsCreateDtoNest extends RegistrationDetailsCreateDtoNest_base {
|
|
53
42
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
location: EventLocationDto;
|
|
59
|
-
registration: RegistrationDetailsCreateDto;
|
|
60
|
-
isVirtualEvent: boolean;
|
|
61
|
-
seo?: EventSeoDto;
|
|
62
|
-
category: EventCategory;
|
|
63
|
-
subCategory?: EventSubCategory;
|
|
43
|
+
declare type EventProfileCreateDto_base = Pick<EventProfileDoc, "title" | "startTime" | "endTime" | "registration" | "location" | "isVirtualEvent" | "category" | "subCategory" | "seo">;
|
|
44
|
+
export declare type EventProfileCreateDto = EventProfileCreateDto_base ;
|
|
45
|
+
declare const EventProfileCreateDtoNest_base: import("@nestjs/common").Type<Pick<EventProfileDoc, "title" | "startTime" | "endTime" | "registration" | "location" | "isVirtualEvent" | "category" | "subCategory" | "seo">>;
|
|
46
|
+
export declare class EventProfileCreateDtoNest extends EventProfileCreateDtoNest_base {
|
|
64
47
|
}
|
|
48
|
+
export {};
|
|
@@ -11,10 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.EventProfileCreateDto = exports.RegistrationDetailsCreateDto = exports.EventLocationDto = exports.RegistrationDetailsDto = exports.EventSeoDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
14
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
const event_category_enum_1 = require("../../../enums/event-category.enum");
|
|
17
15
|
const ticketing_visibility_enum_1 = require("../../../enums/ticketing-visibility.enum");
|
|
16
|
+
const event_profile_doc_1 = require("./event-profile.doc");
|
|
18
17
|
class EventSeoDto {
|
|
19
18
|
}
|
|
20
19
|
exports.EventSeoDto = EventSeoDto;
|
|
@@ -43,6 +42,10 @@ __decorate([
|
|
|
43
42
|
__metadata("design:type", String)
|
|
44
43
|
], EventSeoDto.prototype, "alternativeTitle", void 0);
|
|
45
44
|
class RegistrationDetailsDto {
|
|
45
|
+
constructor() {
|
|
46
|
+
this.maxLimit = 0;
|
|
47
|
+
this.userLimit = 0;
|
|
48
|
+
}
|
|
46
49
|
}
|
|
47
50
|
exports.RegistrationDetailsDto = RegistrationDetailsDto;
|
|
48
51
|
__decorate([
|
|
@@ -59,7 +62,8 @@ __decorate([
|
|
|
59
62
|
description: 'Maximum registrations allowed',
|
|
60
63
|
}),
|
|
61
64
|
(0, class_validator_1.IsInt)(),
|
|
62
|
-
|
|
65
|
+
(0, class_validator_1.Min)(0),
|
|
66
|
+
__metadata("design:type", Object)
|
|
63
67
|
], RegistrationDetailsDto.prototype, "maxLimit", void 0);
|
|
64
68
|
__decorate([
|
|
65
69
|
(0, swagger_1.ApiProperty)({
|
|
@@ -67,7 +71,8 @@ __decorate([
|
|
|
67
71
|
description: 'Maximum registrations per user',
|
|
68
72
|
}),
|
|
69
73
|
(0, class_validator_1.IsInt)(),
|
|
70
|
-
|
|
74
|
+
(0, class_validator_1.Min)(0),
|
|
75
|
+
__metadata("design:type", Object)
|
|
71
76
|
], RegistrationDetailsDto.prototype, "userLimit", void 0);
|
|
72
77
|
__decorate([
|
|
73
78
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -230,154 +235,38 @@ __decorate([
|
|
|
230
235
|
(0, class_validator_1.Length)(3, 100),
|
|
231
236
|
__metadata("design:type", String)
|
|
232
237
|
], EventLocationDto.prototype, "country", void 0);
|
|
233
|
-
class RegistrationDetailsCreateDto
|
|
238
|
+
class RegistrationDetailsCreateDto extends (0, swagger_1.PickType)(RegistrationDetailsDto, [
|
|
239
|
+
'visibility',
|
|
240
|
+
'maxLimit',
|
|
241
|
+
'userLimit',
|
|
242
|
+
'requireKYC',
|
|
243
|
+
'requireName',
|
|
244
|
+
'requireEmail',
|
|
245
|
+
'requirePhoneNumber',
|
|
246
|
+
'isPublished',
|
|
247
|
+
'hasSideEvents',
|
|
248
|
+
'hasWaitlist',
|
|
249
|
+
'showGuestCount',
|
|
250
|
+
'refundable',
|
|
251
|
+
'nameWithNumber',
|
|
252
|
+
'botProtection',
|
|
253
|
+
]) {
|
|
234
254
|
}
|
|
235
255
|
exports.RegistrationDetailsCreateDto = RegistrationDetailsCreateDto;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
description: 'Maximum registrations allowed',
|
|
248
|
-
}),
|
|
249
|
-
(0, class_validator_1.IsInt)(),
|
|
250
|
-
__metadata("design:type", Number)
|
|
251
|
-
], RegistrationDetailsCreateDto.prototype, "maxLimit", void 0);
|
|
252
|
-
__decorate([
|
|
253
|
-
(0, swagger_1.ApiProperty)({
|
|
254
|
-
type: 'integer',
|
|
255
|
-
description: 'Maximum registrations per user',
|
|
256
|
-
}),
|
|
257
|
-
(0, class_validator_1.IsInt)(),
|
|
258
|
-
__metadata("design:type", Number)
|
|
259
|
-
], RegistrationDetailsCreateDto.prototype, "userLimit", void 0);
|
|
260
|
-
__decorate([
|
|
261
|
-
(0, swagger_1.ApiProperty)(),
|
|
262
|
-
(0, class_validator_1.IsBoolean)(),
|
|
263
|
-
__metadata("design:type", Boolean)
|
|
264
|
-
], RegistrationDetailsCreateDto.prototype, "requireKYC", void 0);
|
|
265
|
-
__decorate([
|
|
266
|
-
(0, swagger_1.ApiProperty)(),
|
|
267
|
-
(0, class_validator_1.IsBoolean)(),
|
|
268
|
-
__metadata("design:type", Boolean)
|
|
269
|
-
], RegistrationDetailsCreateDto.prototype, "requireName", void 0);
|
|
270
|
-
__decorate([
|
|
271
|
-
(0, swagger_1.ApiProperty)(),
|
|
272
|
-
(0, class_validator_1.IsBoolean)(),
|
|
273
|
-
__metadata("design:type", Boolean)
|
|
274
|
-
], RegistrationDetailsCreateDto.prototype, "requireEmail", void 0);
|
|
275
|
-
__decorate([
|
|
276
|
-
(0, swagger_1.ApiProperty)(),
|
|
277
|
-
(0, class_validator_1.IsBoolean)(),
|
|
278
|
-
__metadata("design:type", Boolean)
|
|
279
|
-
], RegistrationDetailsCreateDto.prototype, "requirePhoneNumber", void 0);
|
|
280
|
-
__decorate([
|
|
281
|
-
(0, swagger_1.ApiProperty)(),
|
|
282
|
-
(0, class_validator_1.IsBoolean)(),
|
|
283
|
-
(0, class_validator_1.IsOptional)(),
|
|
284
|
-
__metadata("design:type", Boolean)
|
|
285
|
-
], RegistrationDetailsCreateDto.prototype, "isPublished", void 0);
|
|
286
|
-
__decorate([
|
|
287
|
-
(0, swagger_1.ApiProperty)(),
|
|
288
|
-
(0, class_validator_1.IsBoolean)(),
|
|
289
|
-
__metadata("design:type", Boolean)
|
|
290
|
-
], RegistrationDetailsCreateDto.prototype, "hasSideEvents", void 0);
|
|
291
|
-
__decorate([
|
|
292
|
-
(0, swagger_1.ApiProperty)(),
|
|
293
|
-
(0, class_validator_1.IsOptional)(),
|
|
294
|
-
(0, class_validator_1.IsBoolean)(),
|
|
295
|
-
__metadata("design:type", Boolean)
|
|
296
|
-
], RegistrationDetailsCreateDto.prototype, "hasWaitlist", void 0);
|
|
297
|
-
__decorate([
|
|
298
|
-
(0, swagger_1.ApiProperty)(),
|
|
299
|
-
(0, class_validator_1.IsOptional)(),
|
|
300
|
-
(0, class_validator_1.IsBoolean)(),
|
|
301
|
-
__metadata("design:type", Boolean)
|
|
302
|
-
], RegistrationDetailsCreateDto.prototype, "showGuestCount", void 0);
|
|
303
|
-
__decorate([
|
|
304
|
-
(0, swagger_1.ApiProperty)(),
|
|
305
|
-
(0, class_validator_1.IsBoolean)(),
|
|
306
|
-
__metadata("design:type", Boolean)
|
|
307
|
-
], RegistrationDetailsCreateDto.prototype, "refundable", void 0);
|
|
308
|
-
__decorate([
|
|
309
|
-
(0, swagger_1.ApiProperty)(),
|
|
310
|
-
(0, class_validator_1.IsBoolean)(),
|
|
311
|
-
__metadata("design:type", Boolean)
|
|
312
|
-
], RegistrationDetailsCreateDto.prototype, "nameWithNumber", void 0);
|
|
313
|
-
__decorate([
|
|
314
|
-
(0, swagger_1.ApiProperty)(),
|
|
315
|
-
(0, class_validator_1.IsBoolean)(),
|
|
316
|
-
__metadata("design:type", Boolean)
|
|
317
|
-
], RegistrationDetailsCreateDto.prototype, "botProtection", void 0);
|
|
318
|
-
class EventProfileCreateDto {
|
|
256
|
+
class EventProfileCreateDto extends (0, swagger_1.PickType)(event_profile_doc_1.EventProfileDoc, [
|
|
257
|
+
'title',
|
|
258
|
+
'startTime',
|
|
259
|
+
'endTime',
|
|
260
|
+
'location',
|
|
261
|
+
'registration',
|
|
262
|
+
'isVirtualEvent',
|
|
263
|
+
'seo',
|
|
264
|
+
'category',
|
|
265
|
+
'subCategory',
|
|
266
|
+
]) {
|
|
319
267
|
}
|
|
320
268
|
exports.EventProfileCreateDto = EventProfileCreateDto;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
__metadata("design:type", String)
|
|
326
|
-
], EventProfileCreateDto.prototype, "title", void 0);
|
|
327
|
-
__decorate([
|
|
328
|
-
(0, swagger_1.ApiProperty)({ minimum: Math.floor(Date.now() / 1000), type: 'integer' }),
|
|
329
|
-
(0, class_validator_1.IsInt)(),
|
|
330
|
-
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
331
|
-
__metadata("design:type", Number)
|
|
332
|
-
], EventProfileCreateDto.prototype, "startTime", void 0);
|
|
333
|
-
__decorate([
|
|
334
|
-
(0, swagger_1.ApiProperty)({ type: 'integer' }),
|
|
335
|
-
(0, class_validator_1.IsInt)(),
|
|
336
|
-
__metadata("design:type", Number)
|
|
337
|
-
], EventProfileCreateDto.prototype, "endTime", void 0);
|
|
338
|
-
__decorate([
|
|
339
|
-
(0, swagger_1.ApiProperty)({ type: EventLocationDto }),
|
|
340
|
-
(0, class_validator_1.IsObject)(),
|
|
341
|
-
(0, class_validator_1.ValidateNested)(),
|
|
342
|
-
(0, class_transformer_1.Type)(() => EventLocationDto),
|
|
343
|
-
__metadata("design:type", EventLocationDto)
|
|
344
|
-
], EventProfileCreateDto.prototype, "location", void 0);
|
|
345
|
-
__decorate([
|
|
346
|
-
(0, swagger_1.ApiProperty)({ type: RegistrationDetailsCreateDto }),
|
|
347
|
-
(0, class_validator_1.IsObject)(),
|
|
348
|
-
(0, class_validator_1.ValidateNested)(),
|
|
349
|
-
(0, class_transformer_1.Type)(() => RegistrationDetailsCreateDto),
|
|
350
|
-
__metadata("design:type", RegistrationDetailsCreateDto)
|
|
351
|
-
], EventProfileCreateDto.prototype, "registration", void 0);
|
|
352
|
-
__decorate([
|
|
353
|
-
(0, swagger_1.ApiProperty)(),
|
|
354
|
-
(0, class_validator_1.IsBoolean)(),
|
|
355
|
-
__metadata("design:type", Boolean)
|
|
356
|
-
], EventProfileCreateDto.prototype, "isVirtualEvent", void 0);
|
|
357
|
-
__decorate([
|
|
358
|
-
(0, swagger_1.ApiProperty)({ type: EventSeoDto, required: false }),
|
|
359
|
-
(0, class_validator_1.IsObject)(),
|
|
360
|
-
(0, class_validator_1.ValidateNested)(),
|
|
361
|
-
(0, class_transformer_1.Type)(() => EventSeoDto),
|
|
362
|
-
(0, class_validator_1.IsOptional)(),
|
|
363
|
-
__metadata("design:type", EventSeoDto)
|
|
364
|
-
], EventProfileCreateDto.prototype, "seo", void 0);
|
|
365
|
-
__decorate([
|
|
366
|
-
(0, swagger_1.ApiProperty)({
|
|
367
|
-
enum: event_category_enum_1.EventCategory,
|
|
368
|
-
enumName: 'EventCategory',
|
|
369
|
-
}),
|
|
370
|
-
(0, class_validator_1.IsEnum)(event_category_enum_1.EventCategory),
|
|
371
|
-
__metadata("design:type", String)
|
|
372
|
-
], EventProfileCreateDto.prototype, "category", void 0);
|
|
373
|
-
__decorate([
|
|
374
|
-
(0, swagger_1.ApiProperty)({
|
|
375
|
-
required: false,
|
|
376
|
-
enum: event_category_enum_1.EventSubCategory,
|
|
377
|
-
enumName: 'EventSubCategory',
|
|
378
|
-
}),
|
|
379
|
-
(0, class_validator_1.IsString)(),
|
|
380
|
-
(0, class_validator_1.IsOptional)(),
|
|
381
|
-
(0, class_validator_1.IsEnum)(event_category_enum_1.EventSubCategory),
|
|
382
|
-
__metadata("design:type", String)
|
|
383
|
-
], EventProfileCreateDto.prototype, "subCategory", void 0);
|
|
269
|
+
|
|
270
|
+
exports.RegistrationDetailsCreateDtoNest = RegistrationDetailsCreateDto;
|
|
271
|
+
|
|
272
|
+
exports.EventProfileCreateDtoNest = EventProfileCreateDto;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
endTime?: number;
|
|
7
|
-
location?: EventLocationDto;
|
|
8
|
-
isVirtualEvent?: boolean;
|
|
9
|
-
registration?: RegistrationDetailsCreateDto;
|
|
10
|
-
slug?: string;
|
|
11
|
-
seo?: EventSeoDto;
|
|
12
|
-
category?: EventCategory;
|
|
13
|
-
subCategory?: EventSubCategory;
|
|
1
|
+
import { EventProfileCreateDto } from './event-profile-create.dto';
|
|
2
|
+
declare type EventProfileEditDto_base = Partial<EventProfileCreateDto>;
|
|
3
|
+
export declare type EventProfileEditDto = EventProfileEditDto_base ;
|
|
4
|
+
declare const EventProfileEditDtoNest_base: import("@nestjs/common").Type<Partial<EventProfileCreateDto>>;
|
|
5
|
+
export declare class EventProfileEditDtoNest extends EventProfileEditDtoNest_base {
|
|
14
6
|
}
|
|
7
|
+
export {};
|
|
@@ -1,112 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.EventProfileEditDto = void 0;
|
|
13
4
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
const event_category_enum_1 = require("../../../enums/event-category.enum");
|
|
17
5
|
const event_profile_create_dto_1 = require("./event-profile-create.dto");
|
|
18
|
-
class EventProfileEditDto {
|
|
6
|
+
class EventProfileEditDto extends (0, swagger_1.PartialType)(event_profile_create_dto_1.EventProfileCreateDto) {
|
|
19
7
|
}
|
|
20
8
|
exports.EventProfileEditDto = EventProfileEditDto;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.Length)(3, 30),
|
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], EventProfileEditDto.prototype, "title", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, swagger_1.ApiProperty)({
|
|
30
|
-
example: Math.floor(Date.now() / 1000),
|
|
31
|
-
type: 'integer',
|
|
32
|
-
required: false,
|
|
33
|
-
}),
|
|
34
|
-
(0, class_validator_1.IsInt)(),
|
|
35
|
-
(0, class_validator_1.IsOptional)(),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], EventProfileEditDto.prototype, "startTime", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, swagger_1.ApiProperty)({
|
|
40
|
-
example: Math.floor(Date.now() / 1000),
|
|
41
|
-
type: 'integer',
|
|
42
|
-
required: false,
|
|
43
|
-
}),
|
|
44
|
-
(0, class_validator_1.IsInt)(),
|
|
45
|
-
(0, class_validator_1.IsOptional)(),
|
|
46
|
-
__metadata("design:type", Number)
|
|
47
|
-
], EventProfileEditDto.prototype, "endTime", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, swagger_1.ApiProperty)({ type: event_profile_create_dto_1.EventLocationDto, required: false }),
|
|
50
|
-
(0, class_validator_1.IsObject)(),
|
|
51
|
-
(0, class_validator_1.ValidateNested)(),
|
|
52
|
-
(0, class_transformer_1.Type)(() => event_profile_create_dto_1.EventLocationDto),
|
|
53
|
-
(0, class_validator_1.IsOptional)(),
|
|
54
|
-
__metadata("design:type", event_profile_create_dto_1.EventLocationDto)
|
|
55
|
-
], EventProfileEditDto.prototype, "location", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, swagger_1.ApiProperty)({ type: 'boolean', example: false, required: false }),
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsBoolean)(),
|
|
60
|
-
__metadata("design:type", Boolean)
|
|
61
|
-
], EventProfileEditDto.prototype, "isVirtualEvent", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, swagger_1.ApiProperty)({
|
|
64
|
-
type: event_profile_create_dto_1.RegistrationDetailsCreateDto,
|
|
65
|
-
example: {},
|
|
66
|
-
required: false,
|
|
67
|
-
}),
|
|
68
|
-
(0, class_validator_1.IsObject)(),
|
|
69
|
-
(0, class_validator_1.IsOptional)(),
|
|
70
|
-
(0, class_validator_1.ValidateNested)(),
|
|
71
|
-
(0, class_transformer_1.Type)(() => event_profile_create_dto_1.RegistrationDetailsCreateDto),
|
|
72
|
-
__metadata("design:type", event_profile_create_dto_1.RegistrationDetailsCreateDto)
|
|
73
|
-
], EventProfileEditDto.prototype, "registration", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, swagger_1.ApiProperty)({ example: 'my-awesome-event', type: String, required: false }),
|
|
76
|
-
(0, class_validator_1.IsString)(),
|
|
77
|
-
(0, class_validator_1.Matches)(/^[a-z0-9-]+$/, {
|
|
78
|
-
message: 'Slug can only contain lowercase letters, numbers, and hyphens',
|
|
79
|
-
}),
|
|
80
|
-
(0, class_validator_1.Length)(3, 20),
|
|
81
|
-
(0, class_validator_1.IsOptional)(),
|
|
82
|
-
__metadata("design:type", String)
|
|
83
|
-
], EventProfileEditDto.prototype, "slug", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, swagger_1.ApiProperty)({ type: event_profile_create_dto_1.EventSeoDto, example: {}, required: false }),
|
|
86
|
-
(0, class_validator_1.IsObject)(),
|
|
87
|
-
(0, class_validator_1.ValidateNested)(),
|
|
88
|
-
(0, class_transformer_1.Type)(() => event_profile_create_dto_1.EventSeoDto),
|
|
89
|
-
(0, class_validator_1.IsOptional)(),
|
|
90
|
-
__metadata("design:type", event_profile_create_dto_1.EventSeoDto)
|
|
91
|
-
], EventProfileEditDto.prototype, "seo", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, swagger_1.ApiProperty)({
|
|
94
|
-
enum: event_category_enum_1.EventCategory,
|
|
95
|
-
enumName: 'EventCategory',
|
|
96
|
-
required: false,
|
|
97
|
-
}),
|
|
98
|
-
(0, class_validator_1.IsEnum)(event_category_enum_1.EventCategory),
|
|
99
|
-
(0, class_validator_1.IsOptional)(),
|
|
100
|
-
__metadata("design:type", String)
|
|
101
|
-
], EventProfileEditDto.prototype, "category", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
(0, swagger_1.ApiProperty)({
|
|
104
|
-
enum: event_category_enum_1.EventSubCategory,
|
|
105
|
-
enumName: 'EventSubCategory',
|
|
106
|
-
required: false,
|
|
107
|
-
}),
|
|
108
|
-
(0, class_validator_1.IsString)(),
|
|
109
|
-
(0, class_validator_1.IsOptional)(),
|
|
110
|
-
(0, class_validator_1.IsEnum)(event_category_enum_1.EventSubCategory),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], EventProfileEditDto.prototype, "subCategory", void 0);
|
|
9
|
+
|
|
10
|
+
exports.EventProfileEditDtoNest = EventProfileEditDto;
|
|
@@ -23,6 +23,7 @@ const user_creator_profile_doc_1 = require("../user/user-creator-profile.doc");
|
|
|
23
23
|
const event_guest_doc_1 = require("./event-guest.doc");
|
|
24
24
|
const event_profile_create_dto_1 = require("./event-profile-create.dto");
|
|
25
25
|
const event_user_role_doc_1 = require("./event-user-role.doc");
|
|
26
|
+
const class_transformer_1 = require("class-transformer");
|
|
26
27
|
/* export class RegistrationType {
|
|
27
28
|
|
|
28
29
|
} */
|
|
@@ -144,6 +145,8 @@ __decorate([
|
|
|
144
145
|
], EventProfileDoc.prototype, "creatorAddress", void 0);
|
|
145
146
|
__decorate([
|
|
146
147
|
(0, swagger_1.ApiProperty)({ description: 'Title of the event.' }),
|
|
148
|
+
(0, class_validator_1.IsString)(),
|
|
149
|
+
(0, class_validator_1.Length)(3, 30),
|
|
147
150
|
__metadata("design:type", String)
|
|
148
151
|
], EventProfileDoc.prototype, "title", void 0);
|
|
149
152
|
__decorate([
|
|
@@ -152,6 +155,7 @@ __decorate([
|
|
|
152
155
|
type: 'integer',
|
|
153
156
|
}),
|
|
154
157
|
(0, class_validator_1.IsInt)(),
|
|
158
|
+
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
155
159
|
__metadata("design:type", Number)
|
|
156
160
|
], EventProfileDoc.prototype, "startTime", void 0);
|
|
157
161
|
__decorate([
|
|
@@ -176,6 +180,9 @@ __decorate([
|
|
|
176
180
|
type: event_profile_create_dto_1.EventLocationDto,
|
|
177
181
|
description: 'Location details including geo points, address, and optional instructions.',
|
|
178
182
|
}),
|
|
183
|
+
(0, class_validator_1.IsObject)(),
|
|
184
|
+
(0, class_validator_1.ValidateNested)(),
|
|
185
|
+
(0, class_transformer_1.Type)(() => event_profile_create_dto_1.EventLocationDto),
|
|
179
186
|
__metadata("design:type", event_profile_create_dto_1.EventLocationDto)
|
|
180
187
|
], EventProfileDoc.prototype, "location", void 0);
|
|
181
188
|
__decorate([
|
|
@@ -203,6 +210,7 @@ __decorate([
|
|
|
203
210
|
enum: event_category_enum_1.EventCategory,
|
|
204
211
|
enumName: 'EventCategory',
|
|
205
212
|
}),
|
|
213
|
+
(0, class_validator_1.IsEnum)(event_category_enum_1.EventCategory),
|
|
206
214
|
__metadata("design:type", String)
|
|
207
215
|
], EventProfileDoc.prototype, "category", void 0);
|
|
208
216
|
__decorate([
|
|
@@ -212,6 +220,7 @@ __decorate([
|
|
|
212
220
|
enumName: 'EventSubCategory',
|
|
213
221
|
required: false,
|
|
214
222
|
}),
|
|
223
|
+
(0, class_validator_1.IsEnum)(event_category_enum_1.EventSubCategory),
|
|
215
224
|
__metadata("design:type", String)
|
|
216
225
|
], EventProfileDoc.prototype, "subCategory", void 0);
|
|
217
226
|
__decorate([
|
|
@@ -226,6 +235,9 @@ __decorate([
|
|
|
226
235
|
description: 'Registration details such as visibility, max capacity, and ticket limits.',
|
|
227
236
|
type: () => event_profile_create_dto_1.RegistrationDetailsDto,
|
|
228
237
|
}),
|
|
238
|
+
(0, class_validator_1.IsObject)(),
|
|
239
|
+
(0, class_validator_1.ValidateNested)(),
|
|
240
|
+
(0, class_transformer_1.Type)(() => event_profile_create_dto_1.RegistrationDetailsCreateDto),
|
|
229
241
|
__metadata("design:type", event_profile_create_dto_1.RegistrationDetailsDto)
|
|
230
242
|
], EventProfileDoc.prototype, "registration", void 0);
|
|
231
243
|
__decorate([
|
|
@@ -256,6 +268,9 @@ __decorate([
|
|
|
256
268
|
required: false,
|
|
257
269
|
description: 'SEO-related information such as short description, tags, and alternative title.',
|
|
258
270
|
}),
|
|
271
|
+
(0, class_validator_1.IsObject)(),
|
|
272
|
+
(0, class_validator_1.ValidateNested)(),
|
|
273
|
+
(0, class_transformer_1.Type)(() => event_profile_create_dto_1.EventSeoDto),
|
|
259
274
|
__metadata("design:type", event_profile_create_dto_1.EventSeoDto)
|
|
260
275
|
], EventProfileDoc.prototype, "seo", void 0);
|
|
261
276
|
__decorate([
|