@xoxno/types 1.0.1 → 1.0.2
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/package.json +2 -2
- package/dist/cosmos-db/documents/activity/chain-activity.enum.d.ts +0 -4
- package/dist/cosmos-db/documents/activity/chain-activity.enum.js +0 -5
- package/dist/cosmos-db/documents/ticketing/entities/discount-code-validation-response.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/entities/discount-code-validation-response.js +0 -38
- package/dist/cosmos-db/documents/ticketing/entities/event-category.enum.d.ts +0 -90
- package/dist/cosmos-db/documents/ticketing/entities/event-category.enum.js +0 -99
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-approve.dto.d.ts +0 -4
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-approve.dto.js +0 -32
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-doc.filter.d.ts +0 -25
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-doc.filter.js +0 -91
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-registration.dto.d.ts +0 -23
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-registration.dto.js +0 -196
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-status.enum.d.ts +0 -10
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-status.enum.js +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/event-guest.doc.d.ts +0 -64
- package/dist/cosmos-db/documents/ticketing/entities/event-guest.doc.js +0 -387
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-create.dto.d.ts +0 -12
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-create.dto.js +0 -74
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-doc.filter.d.ts +0 -31
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-doc.filter.js +0 -99
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-status.enum.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-status.enum.js +0 -10
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation.doc.d.ts +0 -32
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation.doc.js +0 -206
- package/dist/cosmos-db/documents/ticketing/entities/event-location.d.ts +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/event-location.js +0 -68
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-create.dto.d.ts +0 -47
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-create.dto.js +0 -269
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-doc.filter.d.ts +0 -41
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-doc.filter.js +0 -129
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-edit.dto.d.ts +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-edit.dto.js +0 -108
- package/dist/cosmos-db/documents/ticketing/entities/event-profile.doc.d.ts +0 -93
- package/dist/cosmos-db/documents/ticketing/entities/event-profile.doc.js +0 -544
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer-type.enum.d.ts +0 -9
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer-type.enum.js +0 -13
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer.doc.d.ts +0 -23
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer.doc.js +0 -127
- package/dist/cosmos-db/documents/ticketing/entities/event-question-create.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-question-create.dto.js +0 -61
- package/dist/cosmos-db/documents/ticketing/entities/event-question-edit.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-question-edit.dto.js +0 -65
- package/dist/cosmos-db/documents/ticketing/entities/event-question-validator.d.ts +0 -4
- package/dist/cosmos-db/documents/ticketing/entities/event-question-validator.js +0 -32
- package/dist/cosmos-db/documents/ticketing/entities/event-question.doc.d.ts +0 -15
- package/dist/cosmos-db/documents/ticketing/entities/event-question.doc.js +0 -87
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-create.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-create.dto.js +0 -58
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-edit.dto.d.ts +0 -5
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-edit.dto.js +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-filter.doc.d.ts +0 -23
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-filter.doc.js +0 -116
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-query.doc.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-query.doc.js +0 -38
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config.doc.d.ts +0 -27
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config.doc.js +0 -148
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-create.dto.d.ts +0 -4
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-create.dto.js +0 -31
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-edit.dto.d.ts +0 -4
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-edit.dto.js +0 -36
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-filter.doc.d.ts +0 -31
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-filter.doc.js +0 -161
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-query.doc.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-query.doc.js +0 -38
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-usage.doc.d.ts +0 -16
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-usage.doc.js +0 -100
- package/dist/cosmos-db/documents/ticketing/entities/event-referral.doc.d.ts +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/event-referral.doc.js +0 -92
- package/dist/cosmos-db/documents/ticketing/entities/event-scan-status.enum.d.ts +0 -24
- package/dist/cosmos-db/documents/ticketing/entities/event-scan-status.enum.js +0 -46
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-create.dto.d.ts +0 -13
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-create.dto.js +0 -109
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-edit.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-edit.dto.js +0 -48
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile.doc.d.ts +0 -21
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile.doc.js +0 -168
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-create.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-create.dto.js +0 -74
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-edit.dto.d.ts +0 -7
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-edit.dto.js +0 -31
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile.doc.d.ts +0 -25
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile.doc.js +0 -166
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-qr-type.enum.d.ts +0 -43
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-qr-type.enum.js +0 -201
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role-create.dto.d.ts +0 -9
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role-create.dto.js +0 -69
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role.doc.d.ts +0 -25
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role.doc.js +0 -130
- package/dist/cosmos-db/documents/ticketing/entities/event-user-roles.enum.d.ts +0 -15
- package/dist/cosmos-db/documents/ticketing/entities/event-user-roles.enum.js +0 -20
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-create.dto.d.ts +0 -15
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-create.dto.js +0 -116
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-edit.dto.d.ts +0 -8
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-edit.dto.js +0 -48
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-filter.doc.d.ts +0 -33
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-filter.doc.js +0 -173
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher.doc.d.ts +0 -33
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher.doc.js +0 -189
- package/dist/cosmos-db/documents/ticketing/entities/manual-check-in.dto.d.ts +0 -5
- package/dist/cosmos-db/documents/ticketing/entities/manual-check-in.dto.js +0 -38
- package/dist/cosmos-db/documents/ticketing/entities/ticket-calculation-request.dto.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/entities/ticket-calculation-request.dto.js +0 -38
- package/dist/cosmos-db/documents/ticketing/entities/ticket-prices-response.d.ts +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/ticket-prices-response.js +0 -74
- package/dist/cosmos-db/documents/ticketing/entities/ticketing-data-type.enum.d.ts +0 -14
- package/dist/cosmos-db/documents/ticketing/entities/ticketing-data-type.enum.js +0 -18
- package/dist/cosmos-db/documents/token-data/nft-details.doc.d.ts +0 -56
- package/dist/cosmos-db/documents/token-data/nft-details.doc.js +0 -31
- package/dist/redis/keys.d.ts +0 -11
- package/dist/redis/keys.js +0 -12
- package/dist/redis/ttl.d.ts +0 -10
- package/dist/redis/ttl.js +0 -11
- package/dist/requests/collection/collection-mint-stage.doc.d.ts +0 -19
- package/dist/requests/collection/collection-mint-stage.doc.js +0 -12
- package/dist/types/common.d.ts +0 -12
- package/dist/types/common.js +0 -12
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare enum EventUserRoles {
|
|
2
|
-
EVENT_READER = "event-reader",
|
|
3
|
-
EVENT_MANAGER = "event-manager",
|
|
4
|
-
CHECK_IN_MANAGER = "check-in-manager"
|
|
5
|
-
}
|
|
6
|
-
export declare enum EventUserRolePermission {
|
|
7
|
-
EVENT_READER_VIEW = "event-reader-view",
|
|
8
|
-
EVENT_MANAGER_EDIT_PAGE = "event-manager-edit-page",
|
|
9
|
-
EVENT_MANAGER_CREATE_TICKET = "event-manager-create-ticket",
|
|
10
|
-
EVENT_MANAGER_EDIT_TICKET = "event-manager-edit-ticket",
|
|
11
|
-
EVENT_MANAGER_DELETE_TICKET = "event-manager-delete-ticket",
|
|
12
|
-
EVENT_MANAGER_EDIT_GUEST = "event-manager-edit-guest",
|
|
13
|
-
EVENT_MANAGER_CREATE_STAGE = "event-manager-create-stage",
|
|
14
|
-
EVENT_MANAGER_EDIT_STAGE = "event-manager-edit-stage"
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventUserRolePermission = exports.EventUserRoles = void 0;
|
|
4
|
-
var EventUserRoles;
|
|
5
|
-
(function (EventUserRoles) {
|
|
6
|
-
EventUserRoles["EVENT_READER"] = "event-reader";
|
|
7
|
-
EventUserRoles["EVENT_MANAGER"] = "event-manager";
|
|
8
|
-
EventUserRoles["CHECK_IN_MANAGER"] = "check-in-manager";
|
|
9
|
-
})(EventUserRoles || (exports.EventUserRoles = EventUserRoles = {}));
|
|
10
|
-
var EventUserRolePermission;
|
|
11
|
-
(function (EventUserRolePermission) {
|
|
12
|
-
EventUserRolePermission["EVENT_READER_VIEW"] = "event-reader-view";
|
|
13
|
-
EventUserRolePermission["EVENT_MANAGER_EDIT_PAGE"] = "event-manager-edit-page";
|
|
14
|
-
EventUserRolePermission["EVENT_MANAGER_CREATE_TICKET"] = "event-manager-create-ticket";
|
|
15
|
-
EventUserRolePermission["EVENT_MANAGER_EDIT_TICKET"] = "event-manager-edit-ticket";
|
|
16
|
-
EventUserRolePermission["EVENT_MANAGER_DELETE_TICKET"] = "event-manager-delete-ticket";
|
|
17
|
-
EventUserRolePermission["EVENT_MANAGER_EDIT_GUEST"] = "event-manager-edit-guest";
|
|
18
|
-
EventUserRolePermission["EVENT_MANAGER_CREATE_STAGE"] = "event-manager-create-stage";
|
|
19
|
-
EventUserRolePermission["EVENT_MANAGER_EDIT_STAGE"] = "event-manager-edit-stage";
|
|
20
|
-
})(EventUserRolePermission || (exports.EventUserRolePermission = EventUserRolePermission = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EventVoucherDoc, VoucherType } from './event-voucher.doc';
|
|
2
|
-
declare const EventVoucherCreateDto_base: import("@nestjs/common").Type<Partial<Omit<EventVoucherDoc, "dataType" | "createdAt" | "id" | "usedCount" | "createdBy">>>;
|
|
3
|
-
export declare class EventVoucherCreateDto extends EventVoucherCreateDto_base {
|
|
4
|
-
code?: string;
|
|
5
|
-
type: VoucherType;
|
|
6
|
-
amount: number;
|
|
7
|
-
maxDiscountAmount?: number;
|
|
8
|
-
maxUses: number;
|
|
9
|
-
maxUsesPerUser: number;
|
|
10
|
-
eventId: string;
|
|
11
|
-
startDate?: number;
|
|
12
|
-
endDate?: number;
|
|
13
|
-
isActive?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,116 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EventVoucherCreateDto = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const event_voucher_doc_1 = require("./event-voucher.doc");
|
|
16
|
-
class EventVoucherCreateDto extends (0, swagger_1.PartialType)((0, swagger_1.OmitType)(event_voucher_doc_1.EventVoucherDoc, [
|
|
17
|
-
'id',
|
|
18
|
-
'dataType',
|
|
19
|
-
'usedCount',
|
|
20
|
-
'createdAt',
|
|
21
|
-
'createdBy',
|
|
22
|
-
])) {
|
|
23
|
-
}
|
|
24
|
-
exports.EventVoucherCreateDto = EventVoucherCreateDto;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, swagger_1.ApiProperty)({ description: 'Unique voucher code.', required: false }),
|
|
27
|
-
(0, class_validator_1.IsOptional)(),
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], EventVoucherCreateDto.prototype, "code", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, swagger_1.ApiProperty)({
|
|
33
|
-
description: 'Type of discount provided by the voucher.',
|
|
34
|
-
enum: event_voucher_doc_1.VoucherType,
|
|
35
|
-
enumName: 'VoucherType',
|
|
36
|
-
}),
|
|
37
|
-
(0, class_validator_1.IsEnum)(event_voucher_doc_1.VoucherType),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], EventVoucherCreateDto.prototype, "type", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)({
|
|
42
|
-
description: 'The discount value. Fixed amount or percentage.',
|
|
43
|
-
type: 'number',
|
|
44
|
-
}),
|
|
45
|
-
(0, class_validator_1.IsNumber)(),
|
|
46
|
-
(0, class_validator_1.Min)(0),
|
|
47
|
-
(0, class_validator_1.Max)(100),
|
|
48
|
-
__metadata("design:type", Number)
|
|
49
|
-
], EventVoucherCreateDto.prototype, "amount", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, swagger_1.ApiProperty)({
|
|
52
|
-
description: 'Optional maximum discount cap for percentage-based vouchers.',
|
|
53
|
-
required: false,
|
|
54
|
-
type: 'number',
|
|
55
|
-
}),
|
|
56
|
-
(0, class_validator_1.IsOptional)(),
|
|
57
|
-
(0, class_validator_1.IsNumber)(),
|
|
58
|
-
(0, class_validator_1.Min)(0),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], EventVoucherCreateDto.prototype, "maxDiscountAmount", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, swagger_1.ApiProperty)({
|
|
63
|
-
description: 'Total number of uses allowed for this voucher.',
|
|
64
|
-
type: 'integer',
|
|
65
|
-
}),
|
|
66
|
-
(0, class_validator_1.IsInt)(),
|
|
67
|
-
(0, class_validator_1.Min)(1),
|
|
68
|
-
__metadata("design:type", Number)
|
|
69
|
-
], EventVoucherCreateDto.prototype, "maxUses", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, swagger_1.ApiProperty)({
|
|
72
|
-
description: 'Maximum uses allowed per user.',
|
|
73
|
-
type: 'integer',
|
|
74
|
-
}),
|
|
75
|
-
(0, class_validator_1.IsInt)(),
|
|
76
|
-
(0, class_validator_1.Min)(1),
|
|
77
|
-
__metadata("design:type", Number)
|
|
78
|
-
], EventVoucherCreateDto.prototype, "maxUsesPerUser", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, swagger_1.ApiProperty)({
|
|
81
|
-
description: 'The specific eventId where the voucher can be used',
|
|
82
|
-
}),
|
|
83
|
-
(0, class_validator_1.IsUUID)(4),
|
|
84
|
-
__metadata("design:type", String)
|
|
85
|
-
], EventVoucherCreateDto.prototype, "eventId", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, swagger_1.ApiProperty)({
|
|
88
|
-
description: 'Timestamp when the voucher becomes valid.',
|
|
89
|
-
required: false,
|
|
90
|
-
type: 'integer',
|
|
91
|
-
}),
|
|
92
|
-
(0, class_validator_1.IsOptional)(),
|
|
93
|
-
(0, class_validator_1.IsInt)(),
|
|
94
|
-
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
95
|
-
__metadata("design:type", Number)
|
|
96
|
-
], EventVoucherCreateDto.prototype, "startDate", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, swagger_1.ApiProperty)({
|
|
99
|
-
description: 'Timestamp when the voucher expires.',
|
|
100
|
-
required: false,
|
|
101
|
-
type: 'integer',
|
|
102
|
-
}),
|
|
103
|
-
(0, class_validator_1.IsOptional)(),
|
|
104
|
-
(0, class_validator_1.IsInt)(),
|
|
105
|
-
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
106
|
-
__metadata("design:type", Number)
|
|
107
|
-
], EventVoucherCreateDto.prototype, "endDate", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, swagger_1.ApiProperty)({
|
|
110
|
-
description: 'Indicates whether the voucher is currently active.',
|
|
111
|
-
type: 'boolean',
|
|
112
|
-
}),
|
|
113
|
-
(0, class_validator_1.IsOptional)(),
|
|
114
|
-
(0, class_validator_1.IsBoolean)(),
|
|
115
|
-
__metadata("design:type", Boolean)
|
|
116
|
-
], EventVoucherCreateDto.prototype, "isActive", void 0);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { EventVoucherCreateDto } from './event-voucher-create.dto';
|
|
2
|
-
declare const EventVoucherEditDto_base: import("@nestjs/common").Type<Partial<Omit<EventVoucherCreateDto, "eventId" | "code">>>;
|
|
3
|
-
export declare class EventVoucherEditDto extends EventVoucherEditDto_base {
|
|
4
|
-
isActive?: boolean;
|
|
5
|
-
startDate?: number;
|
|
6
|
-
endDate?: number;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EventVoucherEditDto = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const event_voucher_create_dto_1 = require("./event-voucher-create.dto");
|
|
16
|
-
class EventVoucherEditDto extends (0, swagger_1.PartialType)((0, swagger_1.OmitType)(event_voucher_create_dto_1.EventVoucherCreateDto, ['code', 'eventId'])) {
|
|
17
|
-
}
|
|
18
|
-
exports.EventVoucherEditDto = EventVoucherEditDto;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, swagger_1.ApiProperty)({
|
|
21
|
-
description: 'Indicates whether the voucher is currently active.',
|
|
22
|
-
required: false,
|
|
23
|
-
type: 'boolean',
|
|
24
|
-
}),
|
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
|
26
|
-
(0, class_validator_1.IsBoolean)(),
|
|
27
|
-
__metadata("design:type", Boolean)
|
|
28
|
-
], EventVoucherEditDto.prototype, "isActive", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, swagger_1.ApiProperty)({
|
|
31
|
-
description: 'Timestamp when the voucher becomes valid.',
|
|
32
|
-
required: false,
|
|
33
|
-
type: 'integer',
|
|
34
|
-
}),
|
|
35
|
-
(0, class_validator_1.IsOptional)(),
|
|
36
|
-
(0, class_validator_1.IsInt)(),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], EventVoucherEditDto.prototype, "startDate", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, swagger_1.ApiProperty)({
|
|
41
|
-
description: 'Timestamp when the voucher expires.',
|
|
42
|
-
required: false,
|
|
43
|
-
type: 'integer',
|
|
44
|
-
}),
|
|
45
|
-
(0, class_validator_1.IsOptional)(),
|
|
46
|
-
(0, class_validator_1.IsInt)(),
|
|
47
|
-
__metadata("design:type", Number)
|
|
48
|
-
], EventVoucherEditDto.prototype, "endDate", void 0);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { CosmosDbGenericFilter, RangeFilter } from 'src/common/cosmos-db/entities/cosmos-db-generic-filter';
|
|
2
|
-
import { VoucherType } from './event-voucher.doc';
|
|
3
|
-
export declare class EventVoucherFilterCriteriaDto {
|
|
4
|
-
searchText?: string;
|
|
5
|
-
code?: string[];
|
|
6
|
-
type?: VoucherType[];
|
|
7
|
-
amount?: number;
|
|
8
|
-
maxDiscountAmount?: number;
|
|
9
|
-
maxUses?: number;
|
|
10
|
-
maxUsesPerUser?: number;
|
|
11
|
-
isActive?: boolean;
|
|
12
|
-
ownerId?: string;
|
|
13
|
-
range?: RangeFilter[];
|
|
14
|
-
}
|
|
15
|
-
export declare class EventVoucherFilter extends CosmosDbGenericFilter {
|
|
16
|
-
filters: {
|
|
17
|
-
searchText?: string;
|
|
18
|
-
code?: string[];
|
|
19
|
-
type?: VoucherType[];
|
|
20
|
-
amount?: number;
|
|
21
|
-
maxDiscountAmount?: number;
|
|
22
|
-
maxUses?: number;
|
|
23
|
-
maxUsesPerUser?: number;
|
|
24
|
-
isActive?: boolean;
|
|
25
|
-
ownerId?: string;
|
|
26
|
-
range?: RangeFilter[];
|
|
27
|
-
dataType?: string[];
|
|
28
|
-
eventId?: string[];
|
|
29
|
-
};
|
|
30
|
-
includeCount?: boolean;
|
|
31
|
-
constructor(props: Partial<EventVoucherFilter>);
|
|
32
|
-
private setPk;
|
|
33
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EventVoucherFilter = exports.EventVoucherFilterCriteriaDto = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
const cosmos_db_generic_filter_1 = require("src/common/cosmos-db/entities/cosmos-db-generic-filter");
|
|
17
|
-
const event_voucher_doc_1 = require("./event-voucher.doc");
|
|
18
|
-
const ticketing_data_type_enum_1 = require("./ticketing-data-type.enum");
|
|
19
|
-
class EventVoucherFilterCriteriaDto {
|
|
20
|
-
}
|
|
21
|
-
exports.EventVoucherFilterCriteriaDto = EventVoucherFilterCriteriaDto;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, swagger_1.ApiProperty)({
|
|
24
|
-
required: false,
|
|
25
|
-
type: String,
|
|
26
|
-
description: 'Search text for voucher code or other attributes.',
|
|
27
|
-
}),
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], EventVoucherFilterCriteriaDto.prototype, "searchText", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, swagger_1.ApiProperty)({
|
|
34
|
-
required: false,
|
|
35
|
-
type: String,
|
|
36
|
-
isArray: true,
|
|
37
|
-
description: 'Filter by specific voucher codes.',
|
|
38
|
-
}),
|
|
39
|
-
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
(0, class_validator_1.IsArray)(),
|
|
41
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
42
|
-
__metadata("design:type", Array)
|
|
43
|
-
], EventVoucherFilterCriteriaDto.prototype, "code", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, swagger_1.ApiProperty)({
|
|
46
|
-
required: false,
|
|
47
|
-
type: String,
|
|
48
|
-
isArray: true,
|
|
49
|
-
enum: event_voucher_doc_1.VoucherType,
|
|
50
|
-
enumName: 'VoucherType',
|
|
51
|
-
description: 'Filter by type of discount (fixed or percentage).',
|
|
52
|
-
}),
|
|
53
|
-
(0, class_validator_1.IsOptional)(),
|
|
54
|
-
(0, class_validator_1.IsArray)(),
|
|
55
|
-
(0, class_validator_1.IsEnum)(event_voucher_doc_1.VoucherType, { each: true }),
|
|
56
|
-
__metadata("design:type", Array)
|
|
57
|
-
], EventVoucherFilterCriteriaDto.prototype, "type", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, swagger_1.ApiProperty)({
|
|
60
|
-
required: false,
|
|
61
|
-
type: Number,
|
|
62
|
-
description: 'Filter vouchers by exact discount amount.',
|
|
63
|
-
}),
|
|
64
|
-
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(0, class_validator_1.IsNumber)(),
|
|
66
|
-
__metadata("design:type", Number)
|
|
67
|
-
], EventVoucherFilterCriteriaDto.prototype, "amount", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, swagger_1.ApiProperty)({
|
|
70
|
-
required: false,
|
|
71
|
-
type: Number,
|
|
72
|
-
description: 'Optional maximum discount cap for percentage-based vouchers.',
|
|
73
|
-
}),
|
|
74
|
-
(0, class_validator_1.IsOptional)(),
|
|
75
|
-
(0, class_validator_1.IsNumber)(),
|
|
76
|
-
__metadata("design:type", Number)
|
|
77
|
-
], EventVoucherFilterCriteriaDto.prototype, "maxDiscountAmount", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, swagger_1.ApiProperty)({
|
|
80
|
-
required: false,
|
|
81
|
-
type: Number,
|
|
82
|
-
description: 'Filter vouchers by maximum allowed uses.',
|
|
83
|
-
}),
|
|
84
|
-
(0, class_validator_1.IsOptional)(),
|
|
85
|
-
(0, class_validator_1.IsNumber)(),
|
|
86
|
-
__metadata("design:type", Number)
|
|
87
|
-
], EventVoucherFilterCriteriaDto.prototype, "maxUses", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, swagger_1.ApiProperty)({
|
|
90
|
-
required: false,
|
|
91
|
-
type: Number,
|
|
92
|
-
description: 'Filter vouchers by maximum uses per user.',
|
|
93
|
-
}),
|
|
94
|
-
(0, class_validator_1.IsOptional)(),
|
|
95
|
-
(0, class_validator_1.IsNumber)(),
|
|
96
|
-
__metadata("design:type", Number)
|
|
97
|
-
], EventVoucherFilterCriteriaDto.prototype, "maxUsesPerUser", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, swagger_1.ApiProperty)({
|
|
100
|
-
required: false,
|
|
101
|
-
type: Boolean,
|
|
102
|
-
description: 'Filter by active status of the voucher.',
|
|
103
|
-
}),
|
|
104
|
-
(0, class_validator_1.IsOptional)(),
|
|
105
|
-
(0, class_validator_1.IsBoolean)(),
|
|
106
|
-
__metadata("design:type", Boolean)
|
|
107
|
-
], EventVoucherFilterCriteriaDto.prototype, "isActive", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, swagger_1.ApiProperty)({
|
|
110
|
-
required: false,
|
|
111
|
-
type: String,
|
|
112
|
-
description: 'Filter by owner ID who can use the voucher.',
|
|
113
|
-
}),
|
|
114
|
-
(0, class_validator_1.IsOptional)(),
|
|
115
|
-
(0, class_validator_1.IsString)(),
|
|
116
|
-
__metadata("design:type", String)
|
|
117
|
-
], EventVoucherFilterCriteriaDto.prototype, "ownerId", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, swagger_1.ApiProperty)({
|
|
120
|
-
required: false,
|
|
121
|
-
type: cosmos_db_generic_filter_1.RangeFilter,
|
|
122
|
-
isArray: true,
|
|
123
|
-
description: 'Filter vouchers within a range of dates.',
|
|
124
|
-
}),
|
|
125
|
-
(0, class_validator_1.IsOptional)(),
|
|
126
|
-
(0, class_validator_1.IsArray)(),
|
|
127
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
128
|
-
(0, class_transformer_1.Type)(() => cosmos_db_generic_filter_1.RangeFilter),
|
|
129
|
-
__metadata("design:type", Array)
|
|
130
|
-
], EventVoucherFilterCriteriaDto.prototype, "range", void 0);
|
|
131
|
-
class EventVoucherFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter {
|
|
132
|
-
constructor(props) {
|
|
133
|
-
super(props);
|
|
134
|
-
this.filters = {
|
|
135
|
-
dataType: [ticketing_data_type_enum_1.TicketingDataType.VOUCHER],
|
|
136
|
-
};
|
|
137
|
-
this.includeCount = false;
|
|
138
|
-
this.filters = {
|
|
139
|
-
...this.filters,
|
|
140
|
-
...props?.filters,
|
|
141
|
-
};
|
|
142
|
-
// Assign other properties if any
|
|
143
|
-
const { filters, ...otherProps } = props;
|
|
144
|
-
Object.assign(this, otherProps);
|
|
145
|
-
this.setPk();
|
|
146
|
-
}
|
|
147
|
-
setPk() {
|
|
148
|
-
const uniqueEvents = new Set();
|
|
149
|
-
if (this.filters?.eventId?.length > 0) {
|
|
150
|
-
this.filters.eventId.forEach((event) => {
|
|
151
|
-
uniqueEvents.add(event);
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
this.filters.eventId = Array.from(uniqueEvents);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
exports.EventVoucherFilter = EventVoucherFilter;
|
|
158
|
-
__decorate([
|
|
159
|
-
(0, swagger_1.ApiProperty)({
|
|
160
|
-
type: EventVoucherFilterCriteriaDto,
|
|
161
|
-
description: 'Criteria to filter event vouchers.',
|
|
162
|
-
}),
|
|
163
|
-
__metadata("design:type", Object)
|
|
164
|
-
], EventVoucherFilter.prototype, "filters", void 0);
|
|
165
|
-
__decorate([
|
|
166
|
-
(0, swagger_1.ApiProperty)({
|
|
167
|
-
required: false,
|
|
168
|
-
type: 'boolean',
|
|
169
|
-
default: false,
|
|
170
|
-
description: 'Include total count of results.',
|
|
171
|
-
}),
|
|
172
|
-
__metadata("design:type", Boolean)
|
|
173
|
-
], EventVoucherFilter.prototype, "includeCount", void 0);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { TicketingDataType } from './ticketing-data-type.enum';
|
|
2
|
-
export declare enum VoucherType {
|
|
3
|
-
FIXED = "fixed",
|
|
4
|
-
PERCENTAGE = "percentage"
|
|
5
|
-
}
|
|
6
|
-
export declare class EventVoucherDoc {
|
|
7
|
-
dataType: TicketingDataType;
|
|
8
|
-
id: string;
|
|
9
|
-
code: string;
|
|
10
|
-
type: VoucherType;
|
|
11
|
-
amount: number;
|
|
12
|
-
maxDiscountAmount?: number;
|
|
13
|
-
maxUses: number;
|
|
14
|
-
maxUsesPerUser: number;
|
|
15
|
-
usedCount: number;
|
|
16
|
-
eventId: string;
|
|
17
|
-
ticketTypeIds: string[];
|
|
18
|
-
stageIds?: string[];
|
|
19
|
-
minTicketCount?: number;
|
|
20
|
-
maxTicketCount?: number;
|
|
21
|
-
startDate: number;
|
|
22
|
-
endDate: number;
|
|
23
|
-
isActive: boolean;
|
|
24
|
-
ownerId?: string;
|
|
25
|
-
createdAt: number;
|
|
26
|
-
createdBy: string;
|
|
27
|
-
pk: string;
|
|
28
|
-
constructor(props?: Partial<EventVoucherDoc>);
|
|
29
|
-
}
|
|
30
|
-
declare const EventVoucherQuery_base: any;
|
|
31
|
-
export declare class EventVoucherQuery extends EventVoucherQuery_base {
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1,189 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EventVoucherQuery = exports.EventVoucherDoc = exports.VoucherType = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const cosmos_db_paginated_response_dto_1 = require("src/common/cosmos-db/entities/cosmos-db-paginated-response.dto");
|
|
16
|
-
const ticketing_data_type_enum_1 = require("./ticketing-data-type.enum");
|
|
17
|
-
var VoucherType;
|
|
18
|
-
(function (VoucherType) {
|
|
19
|
-
VoucherType["FIXED"] = "fixed";
|
|
20
|
-
VoucherType["PERCENTAGE"] = "percentage";
|
|
21
|
-
})(VoucherType || (exports.VoucherType = VoucherType = {}));
|
|
22
|
-
class EventVoucherDoc {
|
|
23
|
-
constructor(props) {
|
|
24
|
-
this.dataType = ticketing_data_type_enum_1.TicketingDataType.VOUCHER;
|
|
25
|
-
this.usedCount = 0;
|
|
26
|
-
this.ticketTypeIds = [];
|
|
27
|
-
this.isActive = true;
|
|
28
|
-
this.createdAt = Math.floor(Date.now() / 1000);
|
|
29
|
-
Object.assign(this, props);
|
|
30
|
-
this.id = `${this.code}_${this.eventId}_${this.dataType}`;
|
|
31
|
-
this.pk = this.eventId;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.EventVoucherDoc = EventVoucherDoc;
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, swagger_1.ApiProperty)({
|
|
37
|
-
description: 'The type of event data.',
|
|
38
|
-
enum: ticketing_data_type_enum_1.TicketingDataType,
|
|
39
|
-
enumName: 'TicketingDataType',
|
|
40
|
-
default: ticketing_data_type_enum_1.TicketingDataType.VOUCHER,
|
|
41
|
-
}),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], EventVoucherDoc.prototype, "dataType", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, swagger_1.ApiProperty)({
|
|
46
|
-
description: 'Unique identifier for the voucher.',
|
|
47
|
-
}),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], EventVoucherDoc.prototype, "id", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, swagger_1.ApiProperty)({ description: 'Unique voucher code.' }),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], EventVoucherDoc.prototype, "code", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, swagger_1.ApiProperty)({
|
|
56
|
-
description: 'Type of discount provided by the voucher.',
|
|
57
|
-
enum: VoucherType,
|
|
58
|
-
enumName: 'VoucherType',
|
|
59
|
-
}),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], EventVoucherDoc.prototype, "type", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, swagger_1.ApiProperty)({
|
|
64
|
-
description: 'The discount value. Fixed amount or percentage.',
|
|
65
|
-
type: 'number',
|
|
66
|
-
}),
|
|
67
|
-
(0, class_validator_1.IsNumber)(),
|
|
68
|
-
__metadata("design:type", Number)
|
|
69
|
-
], EventVoucherDoc.prototype, "amount", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, swagger_1.ApiProperty)({
|
|
72
|
-
description: 'Optional maximum discount cap for percentage-based vouchers.',
|
|
73
|
-
type: 'number',
|
|
74
|
-
required: false,
|
|
75
|
-
}),
|
|
76
|
-
(0, class_validator_1.IsNumber)(),
|
|
77
|
-
__metadata("design:type", Number)
|
|
78
|
-
], EventVoucherDoc.prototype, "maxDiscountAmount", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, swagger_1.ApiProperty)({
|
|
81
|
-
description: 'Total number of uses allowed for this voucher.',
|
|
82
|
-
type: 'integer',
|
|
83
|
-
}),
|
|
84
|
-
(0, class_validator_1.IsInt)(),
|
|
85
|
-
__metadata("design:type", Number)
|
|
86
|
-
], EventVoucherDoc.prototype, "maxUses", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, swagger_1.ApiProperty)({
|
|
89
|
-
description: 'Maximum uses allowed per user.',
|
|
90
|
-
type: 'integer',
|
|
91
|
-
}),
|
|
92
|
-
(0, class_validator_1.IsInt)(),
|
|
93
|
-
__metadata("design:type", Number)
|
|
94
|
-
], EventVoucherDoc.prototype, "maxUsesPerUser", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, swagger_1.ApiProperty)({
|
|
97
|
-
description: 'Tracks the number of times the voucher has been used.',
|
|
98
|
-
type: 'integer',
|
|
99
|
-
}),
|
|
100
|
-
(0, class_validator_1.IsInt)(),
|
|
101
|
-
__metadata("design:type", Object)
|
|
102
|
-
], EventVoucherDoc.prototype, "usedCount", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, swagger_1.ApiProperty)({
|
|
105
|
-
description: 'List of specific event IDs where the voucher can be applied.',
|
|
106
|
-
}),
|
|
107
|
-
__metadata("design:type", String)
|
|
108
|
-
], EventVoucherDoc.prototype, "eventId", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, swagger_1.ApiProperty)({
|
|
111
|
-
description: 'List of specific ticket type IDs where the voucher can be applied.',
|
|
112
|
-
}),
|
|
113
|
-
__metadata("design:type", Array)
|
|
114
|
-
], EventVoucherDoc.prototype, "ticketTypeIds", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
(0, swagger_1.ApiProperty)({
|
|
117
|
-
description: 'List of specific stage IDs where the voucher can be applied, optional.',
|
|
118
|
-
}),
|
|
119
|
-
__metadata("design:type", Array)
|
|
120
|
-
], EventVoucherDoc.prototype, "stageIds", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, swagger_1.ApiProperty)({
|
|
123
|
-
description: 'Minimum number of tickets required to use the voucher, optional.',
|
|
124
|
-
type: 'integer',
|
|
125
|
-
required: false,
|
|
126
|
-
}),
|
|
127
|
-
(0, class_validator_1.IsInt)(),
|
|
128
|
-
__metadata("design:type", Number)
|
|
129
|
-
], EventVoucherDoc.prototype, "minTicketCount", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
(0, swagger_1.ApiProperty)({
|
|
132
|
-
description: 'Maximum number of tickets in a single transaction where the voucher can be applied, optional.',
|
|
133
|
-
type: 'integer',
|
|
134
|
-
required: false,
|
|
135
|
-
}),
|
|
136
|
-
(0, class_validator_1.IsInt)(),
|
|
137
|
-
__metadata("design:type", Number)
|
|
138
|
-
], EventVoucherDoc.prototype, "maxTicketCount", void 0);
|
|
139
|
-
__decorate([
|
|
140
|
-
(0, swagger_1.ApiProperty)({
|
|
141
|
-
description: 'Timestamp when the voucher becomes valid.',
|
|
142
|
-
example: Math.floor(Date.now() / 1000),
|
|
143
|
-
type: 'integer',
|
|
144
|
-
}),
|
|
145
|
-
(0, class_validator_1.IsInt)(),
|
|
146
|
-
__metadata("design:type", Number)
|
|
147
|
-
], EventVoucherDoc.prototype, "startDate", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, swagger_1.ApiProperty)({
|
|
150
|
-
description: 'Timestamp when the voucher expires.',
|
|
151
|
-
example: Math.floor(Date.now() / 1000),
|
|
152
|
-
type: 'integer',
|
|
153
|
-
}),
|
|
154
|
-
(0, class_validator_1.IsInt)(),
|
|
155
|
-
__metadata("design:type", Number)
|
|
156
|
-
], EventVoucherDoc.prototype, "endDate", void 0);
|
|
157
|
-
__decorate([
|
|
158
|
-
(0, swagger_1.ApiProperty)({
|
|
159
|
-
description: 'Indicates whether the voucher is currently active.',
|
|
160
|
-
type: 'boolean',
|
|
161
|
-
default: true,
|
|
162
|
-
}),
|
|
163
|
-
(0, class_validator_1.IsBoolean)(),
|
|
164
|
-
__metadata("design:type", Object)
|
|
165
|
-
], EventVoucherDoc.prototype, "isActive", void 0);
|
|
166
|
-
__decorate([
|
|
167
|
-
(0, swagger_1.ApiProperty)({
|
|
168
|
-
description: 'Optional ID of the owner who can use this voucher.',
|
|
169
|
-
}),
|
|
170
|
-
__metadata("design:type", String)
|
|
171
|
-
], EventVoucherDoc.prototype, "ownerId", void 0);
|
|
172
|
-
__decorate([
|
|
173
|
-
(0, swagger_1.ApiProperty)({
|
|
174
|
-
description: 'Timestamp when the voucher was created.',
|
|
175
|
-
example: Math.floor(Date.now() / 1000),
|
|
176
|
-
type: 'integer',
|
|
177
|
-
}),
|
|
178
|
-
(0, class_validator_1.IsInt)(),
|
|
179
|
-
__metadata("design:type", Number)
|
|
180
|
-
], EventVoucherDoc.prototype, "createdAt", void 0);
|
|
181
|
-
__decorate([
|
|
182
|
-
(0, swagger_1.ApiProperty)({
|
|
183
|
-
description: 'Reference to the admin or system that created the voucher.',
|
|
184
|
-
}),
|
|
185
|
-
__metadata("design:type", String)
|
|
186
|
-
], EventVoucherDoc.prototype, "createdBy", void 0);
|
|
187
|
-
class EventVoucherQuery extends (0, cosmos_db_paginated_response_dto_1.createCosmosPaginatedResponse)(EventVoucherDoc) {
|
|
188
|
-
}
|
|
189
|
-
exports.EventVoucherQuery = EventVoucherQuery;
|