@xoxno/types 1.0.160 → 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.
Files changed (42) hide show
  1. package/dist/cosmos-db/documents/chat/chat-message-content.dto.js +1 -1
  2. package/dist/cosmos-db/documents/ticketing/event-invitation-create.dto.d.ts +7 -5
  3. package/dist/cosmos-db/documents/ticketing/event-invitation-create.dto.js +10 -34
  4. package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +7 -0
  5. package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.d.ts +10 -26
  6. package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.js +40 -151
  7. package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.d.ts +6 -13
  8. package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.js +3 -105
  9. package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +15 -0
  10. package/dist/cosmos-db/documents/ticketing/event-question-create.dto.d.ts +6 -7
  11. package/dist/cosmos-db/documents/ticketing/event-question-create.dto.js +10 -55
  12. package/dist/cosmos-db/documents/ticketing/event-question-edit.dto.d.ts +6 -7
  13. package/dist/cosmos-db/documents/ticketing/event-question-edit.dto.js +4 -60
  14. package/dist/cosmos-db/documents/ticketing/event-question.doc.js +6 -0
  15. package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.d.ts +6 -7
  16. package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.js +3 -52
  17. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +7 -0
  18. package/dist/cosmos-db/documents/ticketing/event-referral-create.dto.d.ts +6 -3
  19. package/dist/cosmos-db/documents/ticketing/event-referral-create.dto.js +7 -25
  20. package/dist/cosmos-db/documents/ticketing/event-referral-edit.dto.d.ts +6 -3
  21. package/dist/cosmos-db/documents/ticketing/event-referral-edit.dto.js +4 -30
  22. package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +2 -0
  23. package/dist/cosmos-db/documents/ticketing/event-stage-profile-create.dto.d.ts +6 -12
  24. package/dist/cosmos-db/documents/ticketing/event-stage-profile-create.dto.js +15 -103
  25. package/dist/cosmos-db/documents/ticketing/event-stage-profile-edit.dto.d.ts +3 -10
  26. package/dist/cosmos-db/documents/ticketing/event-stage-profile-edit.dto.js +1 -41
  27. package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +8 -0
  28. package/dist/cosmos-db/documents/ticketing/event-ticket-profile-create.dto.d.ts +6 -7
  29. package/dist/cosmos-db/documents/ticketing/event-ticket-profile-create.dto.js +12 -68
  30. package/dist/cosmos-db/documents/ticketing/event-ticket-profile-edit.dto.d.ts +3 -8
  31. package/dist/cosmos-db/documents/ticketing/event-ticket-profile-edit.dto.js +1 -24
  32. package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +11 -0
  33. package/dist/cosmos-db/documents/ticketing/event-user-role-create.dto.d.ts +6 -8
  34. package/dist/cosmos-db/documents/ticketing/event-user-role-create.dto.js +11 -63
  35. package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +9 -0
  36. package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.d.ts +1 -23
  37. package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.js +0 -104
  38. package/dist/cosmos-db/documents/ticketing/event-voucher-edit.dto.d.ts +1 -8
  39. package/dist/cosmos-db/documents/ticketing/event-voucher-edit.dto.js +0 -40
  40. package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +11 -1
  41. package/dist/entities/web2user-data/web2user.doc.js +4 -0
  42. 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)({
@@ -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
- export declare class EventInvitationCreateDto {
6
- name?: string;
7
- email: string;
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
- __decorate([
54
- (0, swagger_1.ApiProperty)({
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,6 +70,7 @@ __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);
73
76
  __decorate([
@@ -85,6 +88,8 @@ __decorate([
85
88
  isArray: true,
86
89
  example: [{ ticketId: 'VIP123', quantity: 2 }],
87
90
  }),
91
+ (0, class_transformer_1.Type)(() => event_ticket_profile_doc_1.TicketProfileSummary),
92
+ (0, class_validator_1.ValidateNested)({ each: true }),
88
93
  __metadata("design:type", Array)
89
94
  ], EventInvitationDoc.prototype, "tickets", void 0);
90
95
  __decorate([
@@ -94,6 +99,7 @@ __decorate([
94
99
  type: 'integer',
95
100
  }),
96
101
  (0, class_validator_1.IsInt)(),
102
+ (0, class_validator_1.Min)(1),
97
103
  __metadata("design:type", Number)
98
104
  ], EventInvitationDoc.prototype, "startTime", void 0);
99
105
  __decorate([
@@ -103,6 +109,7 @@ __decorate([
103
109
  type: 'integer',
104
110
  }),
105
111
  (0, class_validator_1.IsInt)(),
112
+ (0, class_validator_1.Min)(Math.floor(Date.now() / 1000) + 86400),
106
113
  __metadata("design:type", Number)
107
114
  ], EventInvitationDoc.prototype, "endTime", void 0);
108
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
- export declare class RegistrationDetailsCreateDto {
39
- visibility: Visibility;
40
- maxLimit: number;
41
- userLimit: number;
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
- export declare class EventProfileCreateDto {
55
- title: string;
56
- startTime: number;
57
- endTime: number;
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
- __metadata("design:type", Number)
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
- __metadata("design:type", Number)
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
- __decorate([
237
- (0, swagger_1.ApiProperty)({
238
- enum: ticketing_visibility_enum_1.Visibility,
239
- enumName: 'Visibility',
240
- }),
241
- (0, class_validator_1.IsEnum)(ticketing_visibility_enum_1.Visibility),
242
- __metadata("design:type", String)
243
- ], RegistrationDetailsCreateDto.prototype, "visibility", void 0);
244
- __decorate([
245
- (0, swagger_1.ApiProperty)({
246
- type: 'integer',
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
- __decorate([
322
- (0, swagger_1.ApiProperty)(),
323
- (0, class_validator_1.IsString)(),
324
- (0, class_validator_1.Length)(3, 30),
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 { EventCategory, EventSubCategory } from '../../../enums/event-category.enum';
2
- import { EventLocationDto, EventSeoDto, RegistrationDetailsCreateDto } from './event-profile-create.dto';
3
- export declare class EventProfileEditDto {
4
- title?: string;
5
- startTime?: number;
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
- __decorate([
22
- (0, swagger_1.ApiProperty)({ example: 'Event Title', type: String, required: false }),
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([
@@ -1,8 +1,7 @@
1
- import { EventQuestionAnswerType } from '../../../enums/event-question-answer-type.enum';
2
- export declare class EventQuestionCreateDto {
3
- title: string;
4
- required: boolean;
5
- answerType: EventQuestionAnswerType;
6
- requireTime: boolean;
7
- answers: string[];
1
+ import { EventQuestionDoc } from './event-question.doc';
2
+ declare type EventQuestionCreateDto_base = Pick<EventQuestionDoc, "required" | "title" | "answerType" | "requireTime" | "answers">;
3
+ export declare type EventQuestionCreateDto = EventQuestionCreateDto_base ;
4
+ declare const EventQuestionCreateDtoNest_base: import("@nestjs/common").Type<Pick<EventQuestionDoc, "required" | "title" | "answerType" | "requireTime" | "answers">>;
5
+ export declare class EventQuestionCreateDtoNest extends EventQuestionCreateDtoNest_base {
8
6
  }
7
+ export {};