@xoxno/types 1.0.263 → 1.0.264
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.js +0 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +2 -1
- package/package.json +4 -1
|
@@ -64,7 +64,6 @@ __decorate([
|
|
|
64
64
|
}),
|
|
65
65
|
(0, class_validator_1.IsInt)(),
|
|
66
66
|
(0, class_validator_1.Min)(0),
|
|
67
|
-
(0, class_validator_1.IsOptional)(),
|
|
68
67
|
__metadata("design:type", Object)
|
|
69
68
|
], RegistrationDetailsDto.prototype, "maxLimit", void 0);
|
|
70
69
|
__decorate([
|
|
@@ -74,7 +73,6 @@ __decorate([
|
|
|
74
73
|
}),
|
|
75
74
|
(0, class_validator_1.IsInt)(),
|
|
76
75
|
(0, class_validator_1.Min)(0),
|
|
77
|
-
(0, class_validator_1.IsOptional)(),
|
|
78
76
|
__metadata("design:type", Object)
|
|
79
77
|
], RegistrationDetailsDto.prototype, "userLimit", void 0);
|
|
80
78
|
__decorate([
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EventReferralConfigCreateDto = void 0;
|
|
4
4
|
const swagger_1 = require("@nestjs/swagger");
|
|
5
5
|
const event_referral_config_doc_1 = require("./event-referral-config.doc");
|
|
6
|
-
class EventReferralConfigCreateDto extends (0, swagger_1.PickType)(event_referral_config_doc_1.EventReferralConfigDoc, ['
|
|
6
|
+
class EventReferralConfigCreateDto extends (0, swagger_1.PickType)(event_referral_config_doc_1.EventReferralConfigDoc, ['isSelfService', 'isActive', 'appliedVoucher', 'rewardDetails']) {
|
|
7
7
|
}
|
|
8
8
|
exports.EventReferralConfigCreateDto = EventReferralConfigCreateDto;
|
|
9
9
|
|
|
@@ -30,6 +30,7 @@ __decorate([
|
|
|
30
30
|
enum: event_referral_enum_1.EventReferralEnum,
|
|
31
31
|
enumName: 'EventReferralEnum',
|
|
32
32
|
}),
|
|
33
|
+
(0, class_validator_1.IsEnum)(event_referral_enum_1.EventReferralEnum),
|
|
33
34
|
__metadata("design:type", String)
|
|
34
35
|
], RewardDetails.prototype, "rewardType", void 0);
|
|
35
36
|
__decorate([
|
|
@@ -38,6 +39,7 @@ __decorate([
|
|
|
38
39
|
enum: event_referral_config_doc_1.ReferralConditionType,
|
|
39
40
|
enumName: 'ReferralConditionType',
|
|
40
41
|
}),
|
|
42
|
+
(0, class_validator_1.IsEnum)(event_referral_config_doc_1.ReferralConditionType),
|
|
41
43
|
__metadata("design:type", String)
|
|
42
44
|
], RewardDetails.prototype, "conditionType", void 0);
|
|
43
45
|
__decorate([
|
|
@@ -54,6 +56,8 @@ __decorate([
|
|
|
54
56
|
description: 'Currency type in case of conditionType = revenueCount',
|
|
55
57
|
required: false,
|
|
56
58
|
}),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
57
61
|
__metadata("design:type", String)
|
|
58
62
|
], RewardDetails.prototype, "currency", void 0);
|
|
59
63
|
__decorate([
|
|
@@ -62,6 +66,9 @@ __decorate([
|
|
|
62
66
|
description: 'Voucher details that will be issued when the condition is met.',
|
|
63
67
|
type: short_voucher_doc_1.ShortVoucherDoc,
|
|
64
68
|
}),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.ValidateNested)(),
|
|
71
|
+
(0, class_transformer_1.Type)(() => short_voucher_doc_1.ShortVoucherDoc),
|
|
65
72
|
__metadata("design:type", short_voucher_doc_1.ShortVoucherDoc)
|
|
66
73
|
], RewardDetails.prototype, "voucherInfo", void 0);
|
|
67
74
|
class EventReferralConfigDoc {
|
|
@@ -18,6 +18,7 @@ const cosmos_db_paginated_response_dto_1 = require("../../cosmos-db-paginated-re
|
|
|
18
18
|
class EventVoucherDoc {
|
|
19
19
|
constructor(props) {
|
|
20
20
|
this.dataType = ticketing_data_type_enum_1.TicketingDataType.VOUCHER;
|
|
21
|
+
this.maxDiscountAmount = 0;
|
|
21
22
|
this.usedCount = 0;
|
|
22
23
|
this.ticketTypeIds = [];
|
|
23
24
|
this.isActive = true;
|
|
@@ -75,7 +76,7 @@ __decorate([
|
|
|
75
76
|
}),
|
|
76
77
|
(0, class_validator_1.IsNumber)(),
|
|
77
78
|
(0, class_validator_1.Min)(0),
|
|
78
|
-
__metadata("design:type",
|
|
79
|
+
__metadata("design:type", Object)
|
|
79
80
|
], EventVoucherDoc.prototype, "maxDiscountAmount", void 0);
|
|
80
81
|
__decorate([
|
|
81
82
|
(0, swagger_1.ApiProperty)({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.264",
|
|
4
4
|
"description": "Shared types and utilities for XOXNO API.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"@azure/cosmos": "^4.5.0",
|
|
48
48
|
"@multiversx/sdk-nestjs-common": "^6.0.0",
|
|
49
49
|
"@nestjs/common": "^11.1.5",
|
|
50
|
+
"@nestjs/core": "^11.1.6",
|
|
50
51
|
"@nestjs/swagger": "^11.2.0",
|
|
51
52
|
"@types/node": "^24.0.15",
|
|
52
53
|
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
@@ -58,8 +59,10 @@
|
|
|
58
59
|
"eslint-plugin-prettier": "^5.5.3",
|
|
59
60
|
"glob": "^11.0.3",
|
|
60
61
|
"prettier": "^3.6.2",
|
|
62
|
+
"reflect-metadata": "^0.2.2",
|
|
61
63
|
"rollup": "^4.45.1",
|
|
62
64
|
"rollup-plugin-dts": "^6.2.1",
|
|
65
|
+
"rxjs": "^7.8.2",
|
|
63
66
|
"typescript": "^5.8.3",
|
|
64
67
|
"typescript-eslint": "^8.38.0",
|
|
65
68
|
"uuid": "^11.1.0"
|