@xoxno/types 1.0.160 → 1.0.162
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-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.js +7 -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
|
@@ -13,8 +13,8 @@ exports.EventVoucherQuery = exports.EventVoucherDoc = void 0;
|
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
|
|
16
|
-
const cosmos_db_paginated_response_dto_1 = require("../../cosmos-db-paginated-response.dto");
|
|
17
16
|
const voucher_type_enum_1 = require("../../../enums/voucher-type.enum");
|
|
17
|
+
const cosmos_db_paginated_response_dto_1 = require("../../cosmos-db-paginated-response.dto");
|
|
18
18
|
class EventVoucherDoc {
|
|
19
19
|
constructor(props) {
|
|
20
20
|
this.dataType = ticketing_data_type_enum_1.TicketingDataType.VOUCHER;
|
|
@@ -45,6 +45,7 @@ __decorate([
|
|
|
45
45
|
], EventVoucherDoc.prototype, "id", void 0);
|
|
46
46
|
__decorate([
|
|
47
47
|
(0, swagger_1.ApiProperty)({ description: 'Unique voucher code.' }),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
48
49
|
__metadata("design:type", String)
|
|
49
50
|
], EventVoucherDoc.prototype, "code", void 0);
|
|
50
51
|
__decorate([
|
|
@@ -53,6 +54,7 @@ __decorate([
|
|
|
53
54
|
enum: voucher_type_enum_1.VoucherType,
|
|
54
55
|
enumName: 'VoucherType',
|
|
55
56
|
}),
|
|
57
|
+
(0, class_validator_1.IsEnum)(voucher_type_enum_1.VoucherType),
|
|
56
58
|
__metadata("design:type", String)
|
|
57
59
|
], EventVoucherDoc.prototype, "type", void 0);
|
|
58
60
|
__decorate([
|
|
@@ -61,6 +63,8 @@ __decorate([
|
|
|
61
63
|
type: 'number',
|
|
62
64
|
}),
|
|
63
65
|
(0, class_validator_1.IsNumber)(),
|
|
66
|
+
(0, class_validator_1.Min)(0),
|
|
67
|
+
(0, class_validator_1.Max)(100),
|
|
64
68
|
__metadata("design:type", Number)
|
|
65
69
|
], EventVoucherDoc.prototype, "amount", void 0);
|
|
66
70
|
__decorate([
|
|
@@ -70,6 +74,7 @@ __decorate([
|
|
|
70
74
|
required: false,
|
|
71
75
|
}),
|
|
72
76
|
(0, class_validator_1.IsNumber)(),
|
|
77
|
+
(0, class_validator_1.Min)(0),
|
|
73
78
|
__metadata("design:type", Number)
|
|
74
79
|
], EventVoucherDoc.prototype, "maxDiscountAmount", void 0);
|
|
75
80
|
__decorate([
|
|
@@ -78,6 +83,7 @@ __decorate([
|
|
|
78
83
|
type: 'integer',
|
|
79
84
|
}),
|
|
80
85
|
(0, class_validator_1.IsInt)(),
|
|
86
|
+
(0, class_validator_1.Min)(1),
|
|
81
87
|
__metadata("design:type", Number)
|
|
82
88
|
], EventVoucherDoc.prototype, "maxUses", void 0);
|
|
83
89
|
__decorate([
|
|
@@ -86,6 +92,7 @@ __decorate([
|
|
|
86
92
|
type: 'integer',
|
|
87
93
|
}),
|
|
88
94
|
(0, class_validator_1.IsInt)(),
|
|
95
|
+
(0, class_validator_1.Min)(1),
|
|
89
96
|
__metadata("design:type", Number)
|
|
90
97
|
], EventVoucherDoc.prototype, "maxUsesPerUser", void 0);
|
|
91
98
|
__decorate([
|
|
@@ -100,6 +107,7 @@ __decorate([
|
|
|
100
107
|
(0, swagger_1.ApiProperty)({
|
|
101
108
|
description: 'List of specific event IDs where the voucher can be applied.',
|
|
102
109
|
}),
|
|
110
|
+
(0, class_validator_1.IsUUID)(4),
|
|
103
111
|
__metadata("design:type", String)
|
|
104
112
|
], EventVoucherDoc.prototype, "eventId", void 0);
|
|
105
113
|
__decorate([
|
|
@@ -140,6 +148,7 @@ __decorate([
|
|
|
140
148
|
type: 'integer',
|
|
141
149
|
}),
|
|
142
150
|
(0, class_validator_1.IsInt)(),
|
|
151
|
+
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
143
152
|
__metadata("design:type", Number)
|
|
144
153
|
], EventVoucherDoc.prototype, "startDate", void 0);
|
|
145
154
|
__decorate([
|
|
@@ -149,6 +158,7 @@ __decorate([
|
|
|
149
158
|
type: 'integer',
|
|
150
159
|
}),
|
|
151
160
|
(0, class_validator_1.IsInt)(),
|
|
161
|
+
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
152
162
|
__metadata("design:type", Number)
|
|
153
163
|
], EventVoucherDoc.prototype, "endDate", void 0);
|
|
154
164
|
__decorate([
|
|
@@ -40,6 +40,7 @@ __decorate([
|
|
|
40
40
|
}),
|
|
41
41
|
(0, class_validator_1.IsArray)(),
|
|
42
42
|
(0, class_transformer_1.Type)(() => Object),
|
|
43
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
43
44
|
__metadata("design:type", Array)
|
|
44
45
|
], Web2UserDoc.prototype, "linkedAccounts", void 0);
|
|
45
46
|
__decorate([
|
|
@@ -63,6 +64,7 @@ __decorate([
|
|
|
63
64
|
}),
|
|
64
65
|
(0, class_validator_1.IsOptional)(),
|
|
65
66
|
(0, class_transformer_1.Type)(() => web2user_wallet_1.Web2UserWallet),
|
|
67
|
+
(0, class_validator_1.ValidateNested)(),
|
|
66
68
|
__metadata("design:type", web2user_wallet_1.Web2UserWallet)
|
|
67
69
|
], Web2UserDoc.prototype, "wallet", void 0);
|
|
68
70
|
__decorate([
|
|
@@ -77,6 +79,7 @@ __decorate([
|
|
|
77
79
|
required: false,
|
|
78
80
|
}),
|
|
79
81
|
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
(0, class_validator_1.ValidateNested)(),
|
|
80
83
|
(0, class_transformer_1.Type)(() => web2user_account_1.Web2UserAccount),
|
|
81
84
|
__metadata("design:type", web2user_account_1.Web2UserAccount)
|
|
82
85
|
], Web2UserDoc.prototype, "google", void 0);
|
|
@@ -87,6 +90,7 @@ __decorate([
|
|
|
87
90
|
required: false,
|
|
88
91
|
}),
|
|
89
92
|
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
(0, class_validator_1.ValidateNested)(),
|
|
90
94
|
(0, class_transformer_1.Type)(() => web2user_account_1.Web2UserAccount),
|
|
91
95
|
__metadata("design:type", web2user_account_1.Web2UserAccount)
|
|
92
96
|
], Web2UserDoc.prototype, "apple", void 0);
|