@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
|
@@ -1,50 +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.EventStageProfileEditDto = void 0;
|
|
13
4
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
5
|
const event_stage_profile_create_dto_1 = require("./event-stage-profile-create.dto");
|
|
16
|
-
class EventStageProfileEditDto extends (0, swagger_1.
|
|
17
|
-
'maxLimit',
|
|
18
|
-
'userLimit',
|
|
19
|
-
'isEnabled',
|
|
20
|
-
'isWhitelist',
|
|
21
|
-
'requiredApproval',
|
|
22
|
-
'prices',
|
|
23
|
-
]) {
|
|
6
|
+
class EventStageProfileEditDto extends (0, swagger_1.PartialType)((0, swagger_1.OmitType)(event_stage_profile_create_dto_1.EventStageProfileCreateDto, ['ticketId'])) {
|
|
24
7
|
}
|
|
25
8
|
exports.EventStageProfileEditDto = EventStageProfileEditDto;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, swagger_1.ApiProperty)(),
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
(0, class_validator_1.Length)(3, 30),
|
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], EventStageProfileEditDto.prototype, "name", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, swagger_1.ApiProperty)({ minimum: Math.floor(Date.now() / 1000), type: 'integer' }),
|
|
35
|
-
(0, class_validator_1.IsInt)(),
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], EventStageProfileEditDto.prototype, "startTime", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, swagger_1.ApiProperty)({
|
|
41
|
-
minimum: Math.floor(Date.now() / 1000) + 86400,
|
|
42
|
-
type: 'integer',
|
|
43
|
-
}),
|
|
44
|
-
(0, class_validator_1.IsInt)(),
|
|
45
|
-
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000) + 86400),
|
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
|
47
|
-
__metadata("design:type", Number)
|
|
48
|
-
], EventStageProfileEditDto.prototype, "endTime", void 0);
|
|
49
9
|
|
|
50
10
|
exports.EventStageProfileEditDtoNest = EventStageProfileEditDto;
|
|
@@ -15,6 +15,7 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const uuid_1 = require("uuid");
|
|
16
16
|
const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
|
|
17
17
|
const tokenPayent_1 = require("../../../common/tokenPayent");
|
|
18
|
+
const class_transformer_1 = require("class-transformer");
|
|
18
19
|
class EventStageProfileDoc {
|
|
19
20
|
constructor(props) {
|
|
20
21
|
this.dataType = ticketing_data_type_enum_1.TicketingDataType.EVENT_TICKET_STAGE;
|
|
@@ -79,6 +80,7 @@ __decorate([
|
|
|
79
80
|
type: 'integer',
|
|
80
81
|
}),
|
|
81
82
|
(0, class_validator_1.IsInt)(),
|
|
83
|
+
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
82
84
|
__metadata("design:type", Number)
|
|
83
85
|
], EventStageProfileDoc.prototype, "startTime", void 0);
|
|
84
86
|
__decorate([
|
|
@@ -89,6 +91,7 @@ __decorate([
|
|
|
89
91
|
type: 'integer',
|
|
90
92
|
}),
|
|
91
93
|
(0, class_validator_1.IsInt)(),
|
|
94
|
+
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000) + 86400),
|
|
92
95
|
__metadata("design:type", Number)
|
|
93
96
|
], EventStageProfileDoc.prototype, "endTime", void 0);
|
|
94
97
|
__decorate([
|
|
@@ -98,6 +101,7 @@ __decorate([
|
|
|
98
101
|
type: 'integer',
|
|
99
102
|
}),
|
|
100
103
|
(0, class_validator_1.IsInt)(),
|
|
104
|
+
(0, class_validator_1.Min)(0),
|
|
101
105
|
__metadata("design:type", Object)
|
|
102
106
|
], EventStageProfileDoc.prototype, "maxLimit", void 0);
|
|
103
107
|
__decorate([
|
|
@@ -107,6 +111,7 @@ __decorate([
|
|
|
107
111
|
type: 'integer',
|
|
108
112
|
}),
|
|
109
113
|
(0, class_validator_1.IsInt)(),
|
|
114
|
+
(0, class_validator_1.Min)(0),
|
|
110
115
|
__metadata("design:type", Object)
|
|
111
116
|
], EventStageProfileDoc.prototype, "userLimit", void 0);
|
|
112
117
|
__decorate([
|
|
@@ -142,6 +147,9 @@ __decorate([
|
|
|
142
147
|
required: true,
|
|
143
148
|
type: [tokenPayent_1.EgldOrEsdtTokenPayment],
|
|
144
149
|
}),
|
|
150
|
+
(0, class_validator_1.IsArray)(),
|
|
151
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
152
|
+
(0, class_transformer_1.Type)(() => tokenPayent_1.EgldOrEsdtTokenPayment),
|
|
145
153
|
__metadata("design:type", Array)
|
|
146
154
|
], EventStageProfileDoc.prototype, "prices", void 0);
|
|
147
155
|
__decorate([
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
maxLimit: number;
|
|
7
|
-
userLimit: number;
|
|
1
|
+
import { EventTicketProfileDoc } from './event-ticket-profile.doc';
|
|
2
|
+
declare type EventTicketProfileCreateDto_base = Pick<EventTicketProfileDoc, "description" | "name" | "royalties" | "badgeColor" | "characteristics" | "maxLimit" | "userLimit">;
|
|
3
|
+
export declare type EventTicketProfileCreateDto = EventTicketProfileCreateDto_base ;
|
|
4
|
+
declare const EventTicketProfileCreateDtoNest_base: import("@nestjs/common").Type<Pick<EventTicketProfileDoc, "description" | "name" | "royalties" | "badgeColor" | "characteristics" | "maxLimit" | "userLimit">>;
|
|
5
|
+
export declare class EventTicketProfileCreateDtoNest extends EventTicketProfileCreateDtoNest_base {
|
|
8
6
|
}
|
|
7
|
+
export {};
|
|
@@ -1,74 +1,18 @@
|
|
|
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.EventTicketProfileCreateDto = void 0;
|
|
13
4
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const
|
|
15
|
-
class EventTicketProfileCreateDto
|
|
5
|
+
const event_ticket_profile_doc_1 = require("./event-ticket-profile.doc");
|
|
6
|
+
class EventTicketProfileCreateDto extends (0, swagger_1.PickType)(event_ticket_profile_doc_1.EventTicketProfileDoc, [
|
|
7
|
+
'name',
|
|
8
|
+
'description',
|
|
9
|
+
'royalties',
|
|
10
|
+
'badgeColor',
|
|
11
|
+
'maxLimit',
|
|
12
|
+
'userLimit',
|
|
13
|
+
'characteristics',
|
|
14
|
+
]) {
|
|
16
15
|
}
|
|
17
16
|
exports.EventTicketProfileCreateDto = EventTicketProfileCreateDto;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
-
(0, class_validator_1.Length)(3, 30),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], EventTicketProfileCreateDto.prototype, "name", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, swagger_1.ApiProperty)(),
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.Length)(3, 300),
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], EventTicketProfileCreateDto.prototype, "description", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, swagger_1.ApiProperty)({
|
|
33
|
-
type: 'number',
|
|
34
|
-
description: 'Royalties percentage (0-90)',
|
|
35
|
-
required: false,
|
|
36
|
-
}),
|
|
37
|
-
(0, class_validator_1.IsNumber)(),
|
|
38
|
-
(0, class_validator_1.Min)(0),
|
|
39
|
-
(0, class_validator_1.Max)(90),
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], EventTicketProfileCreateDto.prototype, "royalties", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, swagger_1.ApiProperty)(),
|
|
45
|
-
(0, class_validator_1.IsString)(),
|
|
46
|
-
(0, class_validator_1.Length)(3, 30),
|
|
47
|
-
(0, class_validator_1.Matches)(/^#([0-9A-F]{3}){1,2}$/i, {
|
|
48
|
-
message: 'badgeColor must be a valid hex color',
|
|
49
|
-
}),
|
|
50
|
-
(0, class_validator_1.IsOptional)(),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], EventTicketProfileCreateDto.prototype, "badgeColor", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, swagger_1.ApiProperty)({
|
|
55
|
-
type: 'integer',
|
|
56
|
-
description: 'Maximum limit for this ticket type (0 for unlimited)',
|
|
57
|
-
required: false,
|
|
58
|
-
}),
|
|
59
|
-
(0, class_validator_1.IsInt)(),
|
|
60
|
-
(0, class_validator_1.Min)(0),
|
|
61
|
-
(0, class_validator_1.IsOptional)(),
|
|
62
|
-
__metadata("design:type", Number)
|
|
63
|
-
], EventTicketProfileCreateDto.prototype, "maxLimit", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, swagger_1.ApiProperty)({
|
|
66
|
-
type: 'integer',
|
|
67
|
-
description: 'Maximum limit per user for this ticket type (0 for unlimited)',
|
|
68
|
-
required: false,
|
|
69
|
-
}),
|
|
70
|
-
(0, class_validator_1.IsInt)(),
|
|
71
|
-
(0, class_validator_1.Min)(0),
|
|
72
|
-
(0, class_validator_1.IsOptional)(),
|
|
73
|
-
__metadata("design:type", Number)
|
|
74
|
-
], EventTicketProfileCreateDto.prototype, "userLimit", void 0);
|
|
17
|
+
|
|
18
|
+
exports.EventTicketProfileCreateDtoNest = EventTicketProfileCreateDto;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { EventTicketProfileCreateDto } from './event-ticket-profile-create.dto';
|
|
2
|
-
declare type EventTicketProfileEditDto_base =
|
|
3
|
-
export declare type EventTicketProfileEditDto = EventTicketProfileEditDto_base
|
|
4
|
-
|
|
5
|
-
characteristics: Record<string, string | number>;
|
|
6
|
-
};
|
|
7
|
-
declare const EventTicketProfileEditDtoNest_base: import("@nestjs/common").Type<Pick<EventTicketProfileCreateDto, "description" | "royalties" | "badgeColor" | "maxLimit" | "userLimit">>;
|
|
2
|
+
declare type EventTicketProfileEditDto_base = Partial<EventTicketProfileCreateDto>;
|
|
3
|
+
export declare type EventTicketProfileEditDto = EventTicketProfileEditDto_base ;
|
|
4
|
+
declare const EventTicketProfileEditDtoNest_base: import("@nestjs/common").Type<Partial<EventTicketProfileCreateDto>>;
|
|
8
5
|
export declare class EventTicketProfileEditDtoNest extends EventTicketProfileEditDtoNest_base {
|
|
9
|
-
name: string;
|
|
10
|
-
characteristics: Record<string, string | number>;
|
|
11
6
|
}
|
|
12
7
|
export {};
|
|
@@ -1,33 +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.EventTicketProfileEditDto = void 0;
|
|
13
4
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
5
|
const event_ticket_profile_create_dto_1 = require("./event-ticket-profile-create.dto");
|
|
16
|
-
class EventTicketProfileEditDto extends (0, swagger_1.
|
|
6
|
+
class EventTicketProfileEditDto extends (0, swagger_1.PartialType)(event_ticket_profile_create_dto_1.EventTicketProfileCreateDto) {
|
|
17
7
|
}
|
|
18
8
|
exports.EventTicketProfileEditDto = EventTicketProfileEditDto;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, swagger_1.ApiProperty)(),
|
|
21
|
-
(0, class_validator_1.IsString)(),
|
|
22
|
-
(0, class_validator_1.Length)(3, 30),
|
|
23
|
-
(0, class_validator_1.IsOptional)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], EventTicketProfileEditDto.prototype, "name", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, swagger_1.ApiProperty)(),
|
|
28
|
-
(0, class_validator_1.IsObject)(),
|
|
29
|
-
(0, class_validator_1.IsOptional)(),
|
|
30
|
-
__metadata("design:type", Object)
|
|
31
|
-
], EventTicketProfileEditDto.prototype, "characteristics", void 0);
|
|
32
9
|
|
|
33
10
|
exports.EventTicketProfileEditDtoNest = EventTicketProfileEditDto;
|
|
@@ -46,12 +46,14 @@ __decorate([
|
|
|
46
46
|
(0, swagger_1.ApiProperty)({
|
|
47
47
|
description: 'Name of the ticket type (e.g., General, VIP).',
|
|
48
48
|
}),
|
|
49
|
+
(0, class_validator_1.Length)(3, 30),
|
|
49
50
|
__metadata("design:type", String)
|
|
50
51
|
], EventTicketProfileDoc.prototype, "name", void 0);
|
|
51
52
|
__decorate([
|
|
52
53
|
(0, swagger_1.ApiProperty)({
|
|
53
54
|
description: 'Description of the ticket type.',
|
|
54
55
|
}),
|
|
56
|
+
(0, class_validator_1.Length)(3, 300),
|
|
55
57
|
__metadata("design:type", String)
|
|
56
58
|
], EventTicketProfileDoc.prototype, "description", void 0);
|
|
57
59
|
__decorate([
|
|
@@ -68,6 +70,8 @@ __decorate([
|
|
|
68
70
|
type: 'number',
|
|
69
71
|
}),
|
|
70
72
|
(0, class_validator_1.IsNumber)(),
|
|
73
|
+
(0, class_validator_1.Min)(0),
|
|
74
|
+
(0, class_validator_1.Max)(90),
|
|
71
75
|
__metadata("design:type", Object)
|
|
72
76
|
], EventTicketProfileDoc.prototype, "royalties", void 0);
|
|
73
77
|
__decorate([
|
|
@@ -75,6 +79,11 @@ __decorate([
|
|
|
75
79
|
required: false,
|
|
76
80
|
description: 'Optional color code for the badge or wristband to be used during check-in.',
|
|
77
81
|
}),
|
|
82
|
+
(0, class_validator_1.IsString)(),
|
|
83
|
+
(0, class_validator_1.Length)(3, 30),
|
|
84
|
+
(0, class_validator_1.Matches)(/^#([0-9A-F]{3}){1,2}$/i, {
|
|
85
|
+
message: 'badgeColor must be a valid hex color',
|
|
86
|
+
}),
|
|
78
87
|
__metadata("design:type", String)
|
|
79
88
|
], EventTicketProfileDoc.prototype, "badgeColor", void 0);
|
|
80
89
|
__decorate([
|
|
@@ -92,6 +101,7 @@ __decorate([
|
|
|
92
101
|
type: 'integer',
|
|
93
102
|
}),
|
|
94
103
|
(0, class_validator_1.IsInt)(),
|
|
104
|
+
(0, class_validator_1.Min)(0),
|
|
95
105
|
__metadata("design:type", Object)
|
|
96
106
|
], EventTicketProfileDoc.prototype, "maxLimit", void 0);
|
|
97
107
|
__decorate([
|
|
@@ -100,6 +110,7 @@ __decorate([
|
|
|
100
110
|
type: 'integer',
|
|
101
111
|
}),
|
|
102
112
|
(0, class_validator_1.IsInt)(),
|
|
113
|
+
(0, class_validator_1.Min)(0),
|
|
103
114
|
__metadata("design:type", Object)
|
|
104
115
|
], EventTicketProfileDoc.prototype, "userLimit", void 0);
|
|
105
116
|
__decorate([
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
role: EventUserRoles[];
|
|
7
|
-
permissions: EventUserRolePermission[];
|
|
8
|
-
endTime: number;
|
|
1
|
+
import { EventUserRoleDoc } from './event-user-role.doc';
|
|
2
|
+
declare type EventUserRoleCreateDto_base = Pick<EventUserRoleDoc, "wallet" | "name" | "endTime" | "email" | "role" | "permissions">;
|
|
3
|
+
export declare type EventUserRoleCreateDto = EventUserRoleCreateDto_base ;
|
|
4
|
+
declare const EventUserRoleCreateDtoNest_base: import("@nestjs/common").Type<Pick<EventUserRoleDoc, "wallet" | "name" | "endTime" | "email" | "role" | "permissions">>;
|
|
5
|
+
export declare class EventUserRoleCreateDtoNest extends EventUserRoleCreateDtoNest_base {
|
|
9
6
|
}
|
|
7
|
+
export {};
|
|
@@ -1,69 +1,17 @@
|
|
|
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.EventUserRoleCreateDto = void 0;
|
|
13
4
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
const event_user_role_doc_1 = require("./event-user-role.doc");
|
|
6
|
+
class EventUserRoleCreateDto extends (0, swagger_1.PickType)(event_user_role_doc_1.EventUserRoleDoc, [
|
|
7
|
+
'wallet',
|
|
8
|
+
'name',
|
|
9
|
+
'email',
|
|
10
|
+
'role',
|
|
11
|
+
'permissions',
|
|
12
|
+
'endTime',
|
|
13
|
+
]) {
|
|
17
14
|
}
|
|
18
15
|
exports.EventUserRoleCreateDto = EventUserRoleCreateDto;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
(0, class_validator_1.IsString)(),
|
|
22
|
-
(0, class_validator_1.IsOptional)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], EventUserRoleCreateDto.prototype, "wallet", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, swagger_1.ApiProperty)({ description: 'User name' }),
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], EventUserRoleCreateDto.prototype, "name", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, swagger_1.ApiProperty)({ description: 'User email', required: false }),
|
|
32
|
-
(0, class_validator_1.IsEmail)(),
|
|
33
|
-
(0, class_validator_1.IsOptional)(),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], EventUserRoleCreateDto.prototype, "email", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, swagger_1.ApiProperty)({
|
|
38
|
-
description: 'Assigned Roles',
|
|
39
|
-
enum: event_user_roles_enum_1.EventUserRoles,
|
|
40
|
-
enumName: 'EventUserRoles',
|
|
41
|
-
isArray: true,
|
|
42
|
-
}),
|
|
43
|
-
(0, class_validator_1.IsArray)(),
|
|
44
|
-
(0, class_validator_1.ArrayMaxSize)(3),
|
|
45
|
-
(0, class_validator_1.IsEnum)(event_user_roles_enum_1.EventUserRoles, { each: true }),
|
|
46
|
-
__metadata("design:type", Array)
|
|
47
|
-
], EventUserRoleCreateDto.prototype, "role", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, swagger_1.ApiProperty)({
|
|
50
|
-
description: 'Assigned Permissions',
|
|
51
|
-
enum: event_user_roles_enum_1.EventUserRolePermission,
|
|
52
|
-
enumName: 'EventUserRolePermission',
|
|
53
|
-
isArray: true,
|
|
54
|
-
}),
|
|
55
|
-
(0, class_validator_1.IsArray)(),
|
|
56
|
-
(0, class_validator_1.IsEnum)(event_user_roles_enum_1.EventUserRolePermission, { each: true }),
|
|
57
|
-
__metadata("design:type", Array)
|
|
58
|
-
], EventUserRoleCreateDto.prototype, "permissions", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, swagger_1.ApiProperty)({
|
|
61
|
-
description: 'The expiry timestamp of the role.',
|
|
62
|
-
example: 1627852800,
|
|
63
|
-
type: 'integer',
|
|
64
|
-
}),
|
|
65
|
-
(0, class_validator_1.IsInt)(),
|
|
66
|
-
(0, class_validator_1.IsOptional)(),
|
|
67
|
-
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
68
|
-
__metadata("design:type", Number)
|
|
69
|
-
], EventUserRoleCreateDto.prototype, "endTime", void 0);
|
|
16
|
+
|
|
17
|
+
exports.EventUserRoleCreateDtoNest = EventUserRoleCreateDto;
|
|
@@ -44,14 +44,17 @@ __decorate([
|
|
|
44
44
|
], EventUserRoleDoc.prototype, "eventId", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, swagger_1.ApiProperty)({ description: 'User wallet address', required: false }),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
47
48
|
__metadata("design:type", String)
|
|
48
49
|
], EventUserRoleDoc.prototype, "wallet", void 0);
|
|
49
50
|
__decorate([
|
|
50
51
|
(0, swagger_1.ApiProperty)({ description: 'User name', required: false }),
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
51
53
|
__metadata("design:type", String)
|
|
52
54
|
], EventUserRoleDoc.prototype, "name", void 0);
|
|
53
55
|
__decorate([
|
|
54
56
|
(0, swagger_1.ApiProperty)({ description: 'User email address', required: false }),
|
|
57
|
+
(0, class_validator_1.IsEmail)(),
|
|
55
58
|
__metadata("design:type", String)
|
|
56
59
|
], EventUserRoleDoc.prototype, "email", void 0);
|
|
57
60
|
__decorate([
|
|
@@ -61,6 +64,9 @@ __decorate([
|
|
|
61
64
|
enum: event_user_roles_enum_1.EventUserRoles,
|
|
62
65
|
enumName: 'EventUserRoles',
|
|
63
66
|
}),
|
|
67
|
+
(0, class_validator_1.IsArray)(),
|
|
68
|
+
(0, class_validator_1.ArrayMaxSize)(3),
|
|
69
|
+
(0, class_validator_1.IsEnum)(event_user_roles_enum_1.EventUserRoles, { each: true }),
|
|
64
70
|
__metadata("design:type", Array)
|
|
65
71
|
], EventUserRoleDoc.prototype, "role", void 0);
|
|
66
72
|
__decorate([
|
|
@@ -70,6 +76,8 @@ __decorate([
|
|
|
70
76
|
enum: event_user_roles_enum_1.EventUserRolePermission,
|
|
71
77
|
enumName: 'EventUserRolePermission',
|
|
72
78
|
}),
|
|
79
|
+
(0, class_validator_1.IsArray)(),
|
|
80
|
+
(0, class_validator_1.IsEnum)(event_user_roles_enum_1.EventUserRolePermission, { each: true }),
|
|
73
81
|
__metadata("design:type", Array)
|
|
74
82
|
], EventUserRoleDoc.prototype, "permissions", void 0);
|
|
75
83
|
__decorate([
|
|
@@ -88,6 +96,7 @@ __decorate([
|
|
|
88
96
|
required: false,
|
|
89
97
|
}),
|
|
90
98
|
(0, class_validator_1.IsInt)(),
|
|
99
|
+
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
91
100
|
__metadata("design:type", Number)
|
|
92
101
|
], EventUserRoleDoc.prototype, "endTime", void 0);
|
|
93
102
|
__decorate([
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
import { EventVoucherDoc } from './event-voucher.doc';
|
|
2
|
-
import { VoucherType } from '../../../enums/voucher-type.enum';
|
|
3
2
|
declare type EventVoucherCreateDto_base = Partial<Omit<EventVoucherDoc, "id" | "dataType" | "usedCount" | "createdAt" | "createdBy">>;
|
|
4
|
-
export declare type EventVoucherCreateDto = EventVoucherCreateDto_base
|
|
5
|
-
code?: string;
|
|
6
|
-
type: VoucherType;
|
|
7
|
-
amount: number;
|
|
8
|
-
maxDiscountAmount?: number;
|
|
9
|
-
maxUses: number;
|
|
10
|
-
maxUsesPerUser: number;
|
|
11
|
-
eventId: string;
|
|
12
|
-
startDate?: number;
|
|
13
|
-
endDate?: number;
|
|
14
|
-
isActive?: boolean;
|
|
15
|
-
};
|
|
3
|
+
export declare type EventVoucherCreateDto = EventVoucherCreateDto_base ;
|
|
16
4
|
declare const EventVoucherCreateDtoNest_base: import("@nestjs/common").Type<Partial<Omit<EventVoucherDoc, "id" | "dataType" | "usedCount" | "createdAt" | "createdBy">>>;
|
|
17
5
|
export declare class EventVoucherCreateDtoNest extends EventVoucherCreateDtoNest_base {
|
|
18
|
-
code?: string;
|
|
19
|
-
type: VoucherType;
|
|
20
|
-
amount: number;
|
|
21
|
-
maxDiscountAmount?: number;
|
|
22
|
-
maxUses: number;
|
|
23
|
-
maxUsesPerUser: number;
|
|
24
|
-
eventId: string;
|
|
25
|
-
startDate?: number;
|
|
26
|
-
endDate?: number;
|
|
27
|
-
isActive?: boolean;
|
|
28
6
|
}
|
|
29
7
|
export {};
|
|
@@ -1,19 +1,8 @@
|
|
|
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.EventVoucherCreateDto = void 0;
|
|
13
4
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
5
|
const event_voucher_doc_1 = require("./event-voucher.doc");
|
|
16
|
-
const voucher_type_enum_1 = require("../../../enums/voucher-type.enum");
|
|
17
6
|
class EventVoucherCreateDto extends (0, swagger_1.PartialType)((0, swagger_1.OmitType)(event_voucher_doc_1.EventVoucherDoc, [
|
|
18
7
|
'id',
|
|
19
8
|
'dataType',
|
|
@@ -23,98 +12,5 @@ class EventVoucherCreateDto extends (0, swagger_1.PartialType)((0, swagger_1.Omi
|
|
|
23
12
|
])) {
|
|
24
13
|
}
|
|
25
14
|
exports.EventVoucherCreateDto = EventVoucherCreateDto;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, swagger_1.ApiProperty)({ description: 'Unique voucher code.', required: false }),
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], EventVoucherCreateDto.prototype, "code", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, swagger_1.ApiProperty)({
|
|
34
|
-
description: 'Type of discount provided by the voucher.',
|
|
35
|
-
enum: voucher_type_enum_1.VoucherType,
|
|
36
|
-
enumName: 'VoucherType',
|
|
37
|
-
}),
|
|
38
|
-
(0, class_validator_1.IsEnum)(voucher_type_enum_1.VoucherType),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], EventVoucherCreateDto.prototype, "type", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, swagger_1.ApiProperty)({
|
|
43
|
-
description: 'The discount value. Fixed amount or percentage.',
|
|
44
|
-
type: 'number',
|
|
45
|
-
}),
|
|
46
|
-
(0, class_validator_1.IsNumber)(),
|
|
47
|
-
(0, class_validator_1.Min)(0),
|
|
48
|
-
(0, class_validator_1.Max)(100),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], EventVoucherCreateDto.prototype, "amount", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, swagger_1.ApiProperty)({
|
|
53
|
-
description: 'Optional maximum discount cap for percentage-based vouchers.',
|
|
54
|
-
required: false,
|
|
55
|
-
type: 'number',
|
|
56
|
-
}),
|
|
57
|
-
(0, class_validator_1.IsOptional)(),
|
|
58
|
-
(0, class_validator_1.IsNumber)(),
|
|
59
|
-
(0, class_validator_1.Min)(0),
|
|
60
|
-
__metadata("design:type", Number)
|
|
61
|
-
], EventVoucherCreateDto.prototype, "maxDiscountAmount", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, swagger_1.ApiProperty)({
|
|
64
|
-
description: 'Total number of uses allowed for this voucher.',
|
|
65
|
-
type: 'integer',
|
|
66
|
-
}),
|
|
67
|
-
(0, class_validator_1.IsInt)(),
|
|
68
|
-
(0, class_validator_1.Min)(1),
|
|
69
|
-
__metadata("design:type", Number)
|
|
70
|
-
], EventVoucherCreateDto.prototype, "maxUses", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, swagger_1.ApiProperty)({
|
|
73
|
-
description: 'Maximum uses allowed per user.',
|
|
74
|
-
type: 'integer',
|
|
75
|
-
}),
|
|
76
|
-
(0, class_validator_1.IsInt)(),
|
|
77
|
-
(0, class_validator_1.Min)(1),
|
|
78
|
-
__metadata("design:type", Number)
|
|
79
|
-
], EventVoucherCreateDto.prototype, "maxUsesPerUser", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, swagger_1.ApiProperty)({
|
|
82
|
-
description: 'The specific eventId where the voucher can be used',
|
|
83
|
-
}),
|
|
84
|
-
(0, class_validator_1.IsUUID)(4),
|
|
85
|
-
__metadata("design:type", String)
|
|
86
|
-
], EventVoucherCreateDto.prototype, "eventId", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, swagger_1.ApiProperty)({
|
|
89
|
-
description: 'Timestamp when the voucher becomes valid.',
|
|
90
|
-
required: false,
|
|
91
|
-
type: 'integer',
|
|
92
|
-
}),
|
|
93
|
-
(0, class_validator_1.IsOptional)(),
|
|
94
|
-
(0, class_validator_1.IsInt)(),
|
|
95
|
-
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
96
|
-
__metadata("design:type", Number)
|
|
97
|
-
], EventVoucherCreateDto.prototype, "startDate", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, swagger_1.ApiProperty)({
|
|
100
|
-
description: 'Timestamp when the voucher expires.',
|
|
101
|
-
required: false,
|
|
102
|
-
type: 'integer',
|
|
103
|
-
}),
|
|
104
|
-
(0, class_validator_1.IsOptional)(),
|
|
105
|
-
(0, class_validator_1.IsInt)(),
|
|
106
|
-
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
107
|
-
__metadata("design:type", Number)
|
|
108
|
-
], EventVoucherCreateDto.prototype, "endDate", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, swagger_1.ApiProperty)({
|
|
111
|
-
description: 'Indicates whether the voucher is currently active.',
|
|
112
|
-
type: 'boolean',
|
|
113
|
-
required: false,
|
|
114
|
-
}),
|
|
115
|
-
(0, class_validator_1.IsOptional)(),
|
|
116
|
-
(0, class_validator_1.IsBoolean)(),
|
|
117
|
-
__metadata("design:type", Boolean)
|
|
118
|
-
], EventVoucherCreateDto.prototype, "isActive", void 0);
|
|
119
15
|
|
|
120
16
|
exports.EventVoucherCreateDtoNest = EventVoucherCreateDto;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { EventVoucherCreateDto } from './event-voucher-create.dto';
|
|
2
2
|
declare type EventVoucherEditDto_base = Partial<Omit<EventVoucherCreateDto, "eventId" | "code">>;
|
|
3
|
-
export declare type EventVoucherEditDto = EventVoucherEditDto_base
|
|
4
|
-
isActive?: boolean;
|
|
5
|
-
startDate?: number;
|
|
6
|
-
endDate?: number;
|
|
7
|
-
};
|
|
3
|
+
export declare type EventVoucherEditDto = EventVoucherEditDto_base ;
|
|
8
4
|
declare const EventVoucherEditDtoNest_base: import("@nestjs/common").Type<Partial<Omit<EventVoucherCreateDto, "eventId" | "code">>>;
|
|
9
5
|
export declare class EventVoucherEditDtoNest extends EventVoucherEditDtoNest_base {
|
|
10
|
-
isActive?: boolean;
|
|
11
|
-
startDate?: number;
|
|
12
|
-
endDate?: number;
|
|
13
6
|
}
|
|
14
7
|
export {};
|