@xoxno/types 1.0.109 → 1.0.111
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/ticketing/event-profile-create.dto.d.ts +17 -1
- package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.js +89 -4
- package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.d.ts +2 -2
- package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.js +7 -3
- package/package.json +1 -1
|
@@ -35,12 +35,28 @@ 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;
|
|
53
|
+
}
|
|
38
54
|
export declare class EventProfileCreateDto {
|
|
39
55
|
title: string;
|
|
40
56
|
startTime: number;
|
|
41
57
|
endTime: number;
|
|
42
58
|
location: EventLocationDto;
|
|
43
|
-
registration:
|
|
59
|
+
registration: RegistrationDetailsCreateDto;
|
|
44
60
|
isVirtualEvent: boolean;
|
|
45
61
|
seo?: EventSeoDto;
|
|
46
62
|
category: EventCategory;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EventProfileCreateDto = exports.EventLocationDto = exports.RegistrationDetailsDto = exports.EventSeoDto = void 0;
|
|
12
|
+
exports.EventProfileCreateDto = exports.RegistrationDetailsCreateDto = exports.EventLocationDto = exports.RegistrationDetailsDto = exports.EventSeoDto = 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");
|
|
@@ -230,6 +230,91 @@ __decorate([
|
|
|
230
230
|
(0, class_validator_1.Length)(3, 100),
|
|
231
231
|
__metadata("design:type", String)
|
|
232
232
|
], EventLocationDto.prototype, "country", void 0);
|
|
233
|
+
class RegistrationDetailsCreateDto {
|
|
234
|
+
}
|
|
235
|
+
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);
|
|
233
318
|
class EventProfileCreateDto {
|
|
234
319
|
}
|
|
235
320
|
exports.EventProfileCreateDto = EventProfileCreateDto;
|
|
@@ -258,11 +343,11 @@ __decorate([
|
|
|
258
343
|
__metadata("design:type", EventLocationDto)
|
|
259
344
|
], EventProfileCreateDto.prototype, "location", void 0);
|
|
260
345
|
__decorate([
|
|
261
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
346
|
+
(0, swagger_1.ApiProperty)({ type: RegistrationDetailsCreateDto }),
|
|
262
347
|
(0, class_validator_1.IsObject)(),
|
|
263
348
|
(0, class_validator_1.ValidateNested)(),
|
|
264
|
-
(0, class_transformer_1.Type)(() =>
|
|
265
|
-
__metadata("design:type",
|
|
349
|
+
(0, class_transformer_1.Type)(() => RegistrationDetailsCreateDto),
|
|
350
|
+
__metadata("design:type", RegistrationDetailsCreateDto)
|
|
266
351
|
], EventProfileCreateDto.prototype, "registration", void 0);
|
|
267
352
|
__decorate([
|
|
268
353
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventCategory, EventSubCategory } from '../../../enums/event-category.enum';
|
|
2
|
-
import { EventLocationDto, EventSeoDto,
|
|
2
|
+
import { EventLocationDto, EventSeoDto, RegistrationDetailsCreateDto } from './event-profile-create.dto';
|
|
3
3
|
export declare class EventProfileEditDto {
|
|
4
4
|
title?: string;
|
|
5
5
|
startTime?: number;
|
|
6
6
|
endTime?: number;
|
|
7
7
|
location?: EventLocationDto;
|
|
8
8
|
isVirtualEvent?: boolean;
|
|
9
|
-
registration?:
|
|
9
|
+
registration?: RegistrationDetailsCreateDto;
|
|
10
10
|
slug?: string;
|
|
11
11
|
seo?: EventSeoDto;
|
|
12
12
|
category?: EventCategory;
|
|
@@ -60,12 +60,16 @@ __decorate([
|
|
|
60
60
|
__metadata("design:type", Boolean)
|
|
61
61
|
], EventProfileEditDto.prototype, "isVirtualEvent", void 0);
|
|
62
62
|
__decorate([
|
|
63
|
-
(0, swagger_1.ApiProperty)({
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
type: event_profile_create_dto_1.RegistrationDetailsCreateDto,
|
|
65
|
+
example: {},
|
|
66
|
+
required: false,
|
|
67
|
+
}),
|
|
64
68
|
(0, class_validator_1.IsObject)(),
|
|
65
69
|
(0, class_validator_1.IsOptional)(),
|
|
66
70
|
(0, class_validator_1.ValidateNested)(),
|
|
67
|
-
(0, class_transformer_1.Type)(() => event_profile_create_dto_1.
|
|
68
|
-
__metadata("design:type", event_profile_create_dto_1.
|
|
71
|
+
(0, class_transformer_1.Type)(() => event_profile_create_dto_1.RegistrationDetailsCreateDto),
|
|
72
|
+
__metadata("design:type", event_profile_create_dto_1.RegistrationDetailsCreateDto)
|
|
69
73
|
], EventProfileEditDto.prototype, "registration", void 0);
|
|
70
74
|
__decorate([
|
|
71
75
|
(0, swagger_1.ApiProperty)({ example: 'my-awesome-event', type: String, required: false }),
|