@xoxno/types 1.0.183 → 1.0.184

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.
@@ -22,7 +22,6 @@ __decorate([
22
22
  }),
23
23
  (0, class_validator_1.IsString)(),
24
24
  (0, class_validator_1.Length)(62, 62),
25
- (0, class_validator_1.IsOptional)(),
26
25
  __metadata("design:type", String)
27
26
  ], EventGuestApproveDto.prototype, "address", void 0);
28
27
  __decorate([
@@ -13,11 +13,11 @@ exports.EventInvitationQuery = exports.EventInvitation = exports.EventInvitation
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const uuid_1 = require("uuid");
16
+ const class_transformer_1 = require("class-transformer");
16
17
  const event_invitation_status_enum_1 = require("../../../enums/event-invitation-status.enum");
17
18
  const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
18
19
  const cosmos_db_paginated_response_dto_1 = require("../../cosmos-db-paginated-response.dto");
19
20
  const event_ticket_profile_doc_1 = require("./event-ticket-profile.doc");
20
- const class_transformer_1 = require("class-transformer");
21
21
  class EventInvitationDoc {
22
22
  constructor(props) {
23
23
  this.dataType = ticketing_data_type_enum_1.TicketingDataType.INVITATION;
@@ -60,8 +60,8 @@ __decorate([
60
60
  type: String,
61
61
  required: false,
62
62
  }),
63
+ (0, class_validator_1.IsString)(),
63
64
  (0, class_validator_1.Length)(1, 30),
64
- (0, class_validator_1.IsOptional)(),
65
65
  __metadata("design:type", String)
66
66
  ], EventInvitationDoc.prototype, "name", void 0);
67
67
  __decorate([
@@ -102,7 +102,6 @@ __decorate([
102
102
  }),
103
103
  (0, class_validator_1.IsInt)(),
104
104
  (0, class_validator_1.Min)(1),
105
- (0, class_validator_1.IsOptional)(),
106
105
  __metadata("design:type", Number)
107
106
  ], EventInvitationDoc.prototype, "startTime", void 0);
108
107
  __decorate([
@@ -113,7 +112,6 @@ __decorate([
113
112
  }),
114
113
  (0, class_validator_1.IsInt)(),
115
114
  (0, class_validator_1.Min)(Math.floor(Date.now() / 1000) + 86400),
116
- (0, class_validator_1.IsOptional)(),
117
115
  __metadata("design:type", Number)
118
116
  ], EventInvitationDoc.prototype, "endTime", void 0);
119
117
  __decorate([
@@ -197,10 +195,6 @@ __decorate([
197
195
  }),
198
196
  __metadata("design:type", String)
199
197
  ], EventInvitationDoc.prototype, "pk", void 0);
200
- __decorate([
201
- (0, class_validator_1.IsInt)(),
202
- __metadata("design:type", Number)
203
- ], EventInvitationDoc.prototype, "_ts", void 0);
204
198
  class EventInvitation extends EventInvitationDoc {
205
199
  }
206
200
  exports.EventInvitation = EventInvitation;
@@ -138,13 +138,13 @@ __decorate([
138
138
  (0, swagger_1.ApiProperty)({
139
139
  description: 'Wallet address of the creator of the event.',
140
140
  }),
141
+ (0, class_validator_1.IsString)(),
141
142
  __metadata("design:type", String)
142
143
  ], EventProfileDoc.prototype, "creatorAddress", void 0);
143
144
  __decorate([
144
145
  (0, swagger_1.ApiProperty)({ description: 'Title of the event.' }),
145
146
  (0, class_validator_1.IsString)(),
146
147
  (0, class_validator_1.Length)(3, 30),
147
- (0, class_validator_1.IsOptional)(),
148
148
  __metadata("design:type", String)
149
149
  ], EventProfileDoc.prototype, "title", void 0);
150
150
  __decorate([
@@ -154,7 +154,6 @@ __decorate([
154
154
  }),
155
155
  (0, class_validator_1.IsInt)(),
156
156
  (0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
157
- (0, class_validator_1.IsOptional)(),
158
157
  __metadata("design:type", Number)
159
158
  ], EventProfileDoc.prototype, "startTime", void 0);
160
159
  __decorate([
@@ -165,7 +164,6 @@ __decorate([
165
164
  }),
166
165
  (0, class_validator_1.IsInt)(),
167
166
  (0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
168
- (0, class_validator_1.IsOptional)(),
169
167
  __metadata("design:type", Number)
170
168
  ], EventProfileDoc.prototype, "endTime", void 0);
171
169
  __decorate([
@@ -174,6 +172,8 @@ __decorate([
174
172
  // default: StaticConfig.getDefaultEventDescription(),
175
173
  required: false,
176
174
  }),
175
+ (0, class_validator_1.IsString)(),
176
+ (0, class_validator_1.IsOptional)(),
177
177
  __metadata("design:type", String)
178
178
  ], EventProfileDoc.prototype, "descriptionUrl", void 0);
179
179
  __decorate([
@@ -196,6 +196,7 @@ __decorate([
196
196
  ], EventProfileDoc.prototype, "isVirtualEvent", void 0);
197
197
  __decorate([
198
198
  (0, swagger_1.ApiProperty)({ description: 'Unique slug for the event URL.' }),
199
+ (0, class_validator_1.IsString)(),
199
200
  __metadata("design:type", String)
200
201
  ], EventProfileDoc.prototype, "slug", void 0);
201
202
  __decorate([
@@ -203,6 +204,7 @@ __decorate([
203
204
  description: 'URL to the profile image in Azure storage.',
204
205
  // default: StaticConfig.getDefaultProfilePicture(),
205
206
  }),
207
+ (0, class_validator_1.IsString)(),
206
208
  __metadata("design:type", String)
207
209
  ], EventProfileDoc.prototype, "profile", void 0);
208
210
  __decorate([
@@ -229,6 +231,7 @@ __decorate([
229
231
  description: 'URL to the background image in Azure storage, optional.',
230
232
  required: false,
231
233
  }),
234
+ (0, class_validator_1.IsString)(),
232
235
  __metadata("design:type", String)
233
236
  ], EventProfileDoc.prototype, "background", void 0);
234
237
  __decorate([
@@ -246,6 +249,7 @@ __decorate([
246
249
  description: 'Event premium features',
247
250
  type: () => PremiumType,
248
251
  }),
252
+ (0, class_validator_1.IsEnum)(PremiumType),
249
253
  __metadata("design:type", PremiumType)
250
254
  ], EventProfileDoc.prototype, "premium", void 0);
251
255
  __decorate([
@@ -253,6 +257,7 @@ __decorate([
253
257
  description: 'The address of the contract that manages the event.',
254
258
  required: false,
255
259
  }),
260
+ (0, class_validator_1.IsString)(),
256
261
  __metadata("design:type", String)
257
262
  ], EventProfileDoc.prototype, "contractAddress", void 0);
258
263
  __decorate([
@@ -260,6 +265,7 @@ __decorate([
260
265
  description: 'The NFT collection the event is associated with.',
261
266
  required: false,
262
267
  }),
268
+ (0, class_validator_1.IsString)(),
263
269
  __metadata("design:type", String)
264
270
  ], EventProfileDoc.prototype, "collection", void 0);
265
271
  __decorate([
@@ -286,12 +292,10 @@ __decorate([
286
292
  required: false,
287
293
  type: () => event_user_role_doc_1.EventUserRoleDoc,
288
294
  }),
295
+ (0, class_validator_1.IsObject)(),
296
+ (0, class_transformer_1.Type)(() => event_user_role_doc_1.EventUserRoleDoc),
289
297
  __metadata("design:type", Object)
290
298
  ], EventProfileDoc.prototype, "eventPermissions", void 0);
291
- __decorate([
292
- (0, class_validator_1.IsInt)(),
293
- __metadata("design:type", Number)
294
- ], EventProfileDoc.prototype, "_ts", void 0);
295
299
  // Define a class for the startsFrom object
296
300
  class EventStartPrice {
297
301
  }
@@ -49,7 +49,6 @@ __decorate([
49
49
  description: 'Unique identifier for this guest answer.',
50
50
  example: (0, uuid_1.v4)(),
51
51
  }),
52
- (0, class_validator_1.IsUUID)(),
53
52
  __metadata("design:type", String)
54
53
  ], EventGuestAnswerDoc.prototype, "id", void 0);
55
54
  __decorate([
@@ -40,6 +40,7 @@ __decorate([
40
40
  ], EventQuestionDoc.prototype, "id", void 0);
41
41
  __decorate([
42
42
  (0, swagger_1.ApiProperty)({ description: 'Reference to the EventDoc.' }),
43
+ (0, class_validator_1.IsString)(),
43
44
  __metadata("design:type", String)
44
45
  ], EventQuestionDoc.prototype, "eventId", void 0);
45
46
  __decorate([
@@ -1,7 +1,7 @@
1
1
  import { ReferralConditionType } from '../../../enums/event-referral-config.doc';
2
+ import { EventReferralEnum } from '../../../enums/event-referral.enum';
2
3
  import { TicketingDataType } from '../../../enums/ticketing-data-type.enum';
3
4
  import { ShortVoucherDoc } from '../short/short-voucher.doc';
4
- import { EventReferralEnum } from '../../../enums/event-referral.enum';
5
5
  export declare class RewardDetails {
6
6
  rewardType: EventReferralEnum;
7
7
  conditionType: ReferralConditionType;
@@ -13,11 +13,11 @@ exports.EventReferralConfigDoc = exports.RewardDetails = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const uuid_1 = require("uuid");
16
+ const class_transformer_1 = require("class-transformer");
16
17
  const event_referral_config_doc_1 = require("../../../enums/event-referral-config.doc");
18
+ const event_referral_enum_1 = require("../../../enums/event-referral.enum");
17
19
  const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
18
20
  const short_voucher_doc_1 = require("../short/short-voucher.doc");
19
- const event_referral_enum_1 = require("../../../enums/event-referral.enum");
20
- const class_transformer_1 = require("class-transformer");
21
21
  class RewardDetails {
22
22
  constructor(props) {
23
23
  Object.assign(this, props);
@@ -97,6 +97,7 @@ __decorate([
97
97
  (0, swagger_1.ApiProperty)({
98
98
  description: 'The event this referral configuration is linked to.',
99
99
  }),
100
+ (0, class_validator_1.IsString)(),
100
101
  __metadata("design:type", String)
101
102
  ], EventReferralConfigDoc.prototype, "eventId", void 0);
102
103
  __decorate([
@@ -152,5 +153,6 @@ __decorate([
152
153
  (0, swagger_1.ApiProperty)({
153
154
  description: 'The address of the user who created this referral configuration.',
154
155
  }),
156
+ (0, class_validator_1.IsString)(),
155
157
  __metadata("design:type", String)
156
158
  ], EventReferralConfigDoc.prototype, "createdBy", void 0);
@@ -52,12 +52,14 @@ __decorate([
52
52
  description: 'The user ID of the referral owner.',
53
53
  required: false,
54
54
  }),
55
+ (0, class_validator_1.IsString)(),
55
56
  __metadata("design:type", String)
56
57
  ], EventReferralDoc.prototype, "ownerId", void 0);
57
58
  __decorate([
58
59
  (0, swagger_1.ApiProperty)({
59
60
  description: 'The event this referral applies to.',
60
61
  }),
62
+ (0, class_validator_1.IsUUID)(),
61
63
  __metadata("design:type", String)
62
64
  ], EventReferralDoc.prototype, "eventId", void 0);
63
65
  __decorate([
@@ -1,5 +1,5 @@
1
- import { TicketingDataType } from '../../../enums/ticketing-data-type.enum';
2
1
  import { EgldOrEsdtTokenPayment } from '../../../common/tokenPayent';
2
+ import { TicketingDataType } from '../../../enums/ticketing-data-type.enum';
3
3
  export declare class EventStageProfileDoc {
4
4
  dataType: TicketingDataType;
5
5
  eventId: string;
@@ -13,9 +13,9 @@ exports.EventStageProfileDoc = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const uuid_1 = require("uuid");
16
- const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
17
- const tokenPayent_1 = require("../../../common/tokenPayent");
18
16
  const class_transformer_1 = require("class-transformer");
17
+ const tokenPayent_1 = require("../../../common/tokenPayent");
18
+ const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
19
19
  class EventStageProfileDoc {
20
20
  constructor(props) {
21
21
  this.dataType = ticketing_data_type_enum_1.TicketingDataType.EVENT_TICKET_STAGE;
@@ -54,6 +54,7 @@ __decorate([
54
54
  required: true,
55
55
  type: String,
56
56
  }),
57
+ (0, class_validator_1.IsUUID)(),
57
58
  __metadata("design:type", String)
58
59
  ], EventStageProfileDoc.prototype, "eventId", void 0);
59
60
  __decorate([
@@ -62,6 +63,7 @@ __decorate([
62
63
  required: true,
63
64
  type: String,
64
65
  }),
66
+ (0, class_validator_1.IsUUID)(),
65
67
  __metadata("design:type", String)
66
68
  ], EventStageProfileDoc.prototype, "ticketId", void 0);
67
69
  __decorate([
@@ -70,6 +72,7 @@ __decorate([
70
72
  required: true,
71
73
  type: String,
72
74
  }),
75
+ (0, class_validator_1.IsString)(),
73
76
  __metadata("design:type", String)
74
77
  ], EventStageProfileDoc.prototype, "name", void 0);
75
78
  __decorate([
@@ -81,7 +84,6 @@ __decorate([
81
84
  }),
82
85
  (0, class_validator_1.IsInt)(),
83
86
  (0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
84
- (0, class_validator_1.IsOptional)(),
85
87
  __metadata("design:type", Number)
86
88
  ], EventStageProfileDoc.prototype, "startTime", void 0);
87
89
  __decorate([
@@ -93,7 +95,6 @@ __decorate([
93
95
  }),
94
96
  (0, class_validator_1.IsInt)(),
95
97
  (0, class_validator_1.Min)(Math.floor(Date.now() / 1000) + 86400),
96
- (0, class_validator_1.IsOptional)(),
97
98
  __metadata("design:type", Number)
98
99
  ], EventStageProfileDoc.prototype, "endTime", void 0);
99
100
  __decorate([
@@ -104,7 +105,6 @@ __decorate([
104
105
  }),
105
106
  (0, class_validator_1.IsInt)(),
106
107
  (0, class_validator_1.Min)(0),
107
- (0, class_validator_1.IsOptional)(),
108
108
  __metadata("design:type", Object)
109
109
  ], EventStageProfileDoc.prototype, "maxLimit", void 0);
110
110
  __decorate([
@@ -115,7 +115,6 @@ __decorate([
115
115
  }),
116
116
  (0, class_validator_1.IsInt)(),
117
117
  (0, class_validator_1.Min)(0),
118
- (0, class_validator_1.IsOptional)(),
119
118
  __metadata("design:type", Object)
120
119
  ], EventStageProfileDoc.prototype, "userLimit", void 0);
121
120
  __decorate([
@@ -174,7 +173,3 @@ __decorate([
174
173
  }),
175
174
  __metadata("design:type", String)
176
175
  ], EventStageProfileDoc.prototype, "id", void 0);
177
- __decorate([
178
- (0, class_validator_1.IsInt)(),
179
- __metadata("design:type", Number)
180
- ], EventStageProfileDoc.prototype, "_ts", void 0);
@@ -40,6 +40,7 @@ __decorate([
40
40
  (0, swagger_1.ApiProperty)({
41
41
  description: 'ID of the event this ticket type is associated with.',
42
42
  }),
43
+ (0, class_validator_1.IsUUID)(),
43
44
  __metadata("design:type", String)
44
45
  ], EventTicketProfileDoc.prototype, "eventId", void 0);
45
46
  __decorate([
@@ -47,7 +48,7 @@ __decorate([
47
48
  description: 'Name of the ticket type (e.g., General, VIP).',
48
49
  }),
49
50
  (0, class_validator_1.Length)(3, 30),
50
- (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.IsString)(),
51
52
  __metadata("design:type", String)
52
53
  ], EventTicketProfileDoc.prototype, "name", void 0);
53
54
  __decorate([
@@ -55,13 +56,14 @@ __decorate([
55
56
  description: 'Description of the ticket type.',
56
57
  }),
57
58
  (0, class_validator_1.Length)(3, 300),
58
- (0, class_validator_1.IsOptional)(),
59
+ (0, class_validator_1.IsString)(),
59
60
  __metadata("design:type", String)
60
61
  ], EventTicketProfileDoc.prototype, "description", void 0);
61
62
  __decorate([
62
63
  (0, swagger_1.ApiProperty)({
63
64
  description: 'URL of the image that will be used as the NFT representing this ticket type.',
64
65
  }),
66
+ (0, class_validator_1.IsString)(),
65
67
  __metadata("design:type", String)
66
68
  ], EventTicketProfileDoc.prototype, "profile", void 0);
67
69
  __decorate([
@@ -74,7 +76,6 @@ __decorate([
74
76
  (0, class_validator_1.IsNumber)(),
75
77
  (0, class_validator_1.Min)(0),
76
78
  (0, class_validator_1.Max)(90),
77
- (0, class_validator_1.IsOptional)(),
78
79
  __metadata("design:type", Object)
79
80
  ], EventTicketProfileDoc.prototype, "royalties", void 0);
80
81
  __decorate([
@@ -84,7 +85,6 @@ __decorate([
84
85
  }),
85
86
  (0, class_validator_1.IsString)(),
86
87
  (0, class_validator_1.Length)(3, 30),
87
- (0, class_validator_1.IsOptional)(),
88
88
  (0, class_validator_1.Matches)(/^#([0-9A-F]{3}){1,2}$/i, {
89
89
  message: 'badgeColor must be a valid hex color',
90
90
  }),
@@ -95,6 +95,7 @@ __decorate([
95
95
  required: false,
96
96
  description: 'Other characteristics specific to this ticket type.',
97
97
  }),
98
+ (0, class_validator_1.IsObject)(),
98
99
  __metadata("design:type", Object)
99
100
  ], EventTicketProfileDoc.prototype, "characteristics", void 0);
100
101
  __decorate([
@@ -106,7 +107,6 @@ __decorate([
106
107
  }),
107
108
  (0, class_validator_1.IsInt)(),
108
109
  (0, class_validator_1.Min)(0),
109
- (0, class_validator_1.IsOptional)(),
110
110
  __metadata("design:type", Object)
111
111
  ], EventTicketProfileDoc.prototype, "maxLimit", void 0);
112
112
  __decorate([
@@ -116,7 +116,6 @@ __decorate([
116
116
  }),
117
117
  (0, class_validator_1.IsInt)(),
118
118
  (0, class_validator_1.Min)(0),
119
- (0, class_validator_1.IsOptional)(),
120
119
  __metadata("design:type", Object)
121
120
  ], EventTicketProfileDoc.prototype, "userLimit", void 0);
122
121
  __decorate([
@@ -145,10 +144,6 @@ __decorate([
145
144
  }),
146
145
  __metadata("design:type", String)
147
146
  ], EventTicketProfileDoc.prototype, "id", void 0);
148
- __decorate([
149
- (0, class_validator_1.IsInt)(),
150
- __metadata("design:type", Number)
151
- ], EventTicketProfileDoc.prototype, "_ts", void 0);
152
147
  class TicketProfileSummary extends (0, swagger_1.PickType)(EventTicketProfileDoc, [
153
148
  'name',
154
149
  'description',
@@ -40,6 +40,7 @@ __decorate([
40
40
  description: 'Unique identifier for the event.',
41
41
  required: false,
42
42
  }),
43
+ (0, class_validator_1.IsUUID)(),
43
44
  __metadata("design:type", String)
44
45
  ], EventUserRoleDoc.prototype, "eventId", void 0);
45
46
  __decorate([
@@ -113,12 +114,9 @@ __decorate([
113
114
  enumName: 'RoleStatus',
114
115
  required: false,
115
116
  }),
117
+ (0, class_validator_1.IsEnum)(event_user_role_doc_1.RoleStatus),
116
118
  __metadata("design:type", String)
117
119
  ], EventUserRoleDoc.prototype, "status", void 0);
118
- __decorate([
119
- (0, class_validator_1.IsInt)(),
120
- __metadata("design:type", Number)
121
- ], EventUserRoleDoc.prototype, "_ts", void 0);
122
120
  class EventUserRole extends EventUserRoleDoc {
123
121
  }
124
122
  exports.EventUserRole = EventUserRole;
@@ -65,7 +65,6 @@ __decorate([
65
65
  (0, class_validator_1.IsNumber)(),
66
66
  (0, class_validator_1.Min)(0),
67
67
  (0, class_validator_1.Max)(100),
68
- (0, class_validator_1.IsOptional)(),
69
68
  __metadata("design:type", Number)
70
69
  ], EventVoucherDoc.prototype, "amount", void 0);
71
70
  __decorate([
@@ -76,7 +75,6 @@ __decorate([
76
75
  }),
77
76
  (0, class_validator_1.IsNumber)(),
78
77
  (0, class_validator_1.Min)(0),
79
- (0, class_validator_1.IsOptional)(),
80
78
  __metadata("design:type", Number)
81
79
  ], EventVoucherDoc.prototype, "maxDiscountAmount", void 0);
82
80
  __decorate([
@@ -86,7 +84,6 @@ __decorate([
86
84
  }),
87
85
  (0, class_validator_1.IsInt)(),
88
86
  (0, class_validator_1.Min)(1),
89
- (0, class_validator_1.IsOptional)(),
90
87
  __metadata("design:type", Number)
91
88
  ], EventVoucherDoc.prototype, "maxUses", void 0);
92
89
  __decorate([
@@ -96,7 +93,6 @@ __decorate([
96
93
  }),
97
94
  (0, class_validator_1.IsInt)(),
98
95
  (0, class_validator_1.Min)(1),
99
- (0, class_validator_1.IsOptional)(),
100
96
  __metadata("design:type", Number)
101
97
  ], EventVoucherDoc.prototype, "maxUsesPerUser", void 0);
102
98
  __decorate([
@@ -118,6 +114,7 @@ __decorate([
118
114
  (0, swagger_1.ApiProperty)({
119
115
  description: 'List of specific ticket type IDs where the voucher can be applied.',
120
116
  }),
117
+ (0, class_validator_1.IsArray)(),
121
118
  __metadata("design:type", Array)
122
119
  ], EventVoucherDoc.prototype, "ticketTypeIds", void 0);
123
120
  __decorate([
@@ -125,6 +122,7 @@ __decorate([
125
122
  description: 'List of specific stage IDs where the voucher can be applied, optional.',
126
123
  required: false,
127
124
  }),
125
+ (0, class_validator_1.IsArray)(),
128
126
  __metadata("design:type", Array)
129
127
  ], EventVoucherDoc.prototype, "stageIds", void 0);
130
128
  __decorate([
@@ -153,7 +151,6 @@ __decorate([
153
151
  }),
154
152
  (0, class_validator_1.IsInt)(),
155
153
  (0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
156
- (0, class_validator_1.IsOptional)(),
157
154
  __metadata("design:type", Number)
158
155
  ], EventVoucherDoc.prototype, "startDate", void 0);
159
156
  __decorate([
@@ -164,7 +161,6 @@ __decorate([
164
161
  }),
165
162
  (0, class_validator_1.IsInt)(),
166
163
  (0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
167
- (0, class_validator_1.IsOptional)(),
168
164
  __metadata("design:type", Number)
169
165
  ], EventVoucherDoc.prototype, "endDate", void 0);
170
166
  __decorate([
@@ -181,6 +177,7 @@ __decorate([
181
177
  description: 'Optional ID of the owner who can use this voucher.',
182
178
  required: false,
183
179
  }),
180
+ (0, class_validator_1.IsString)(),
184
181
  __metadata("design:type", String)
185
182
  ], EventVoucherDoc.prototype, "ownerId", void 0);
186
183
  __decorate([
@@ -196,6 +193,7 @@ __decorate([
196
193
  (0, swagger_1.ApiProperty)({
197
194
  description: 'Reference to the admin or system that created the voucher.',
198
195
  }),
196
+ (0, class_validator_1.IsString)(),
199
197
  __metadata("design:type", String)
200
198
  ], EventVoucherDoc.prototype, "createdBy", void 0);
201
199
  class EventVoucherQuery extends (0, cosmos_db_paginated_response_dto_1.createCosmosPaginatedResponse)(EventVoucherDoc) {
@@ -49,14 +49,17 @@ __decorate([
49
49
  example: 'erd1qqqqqqqqqqqqqpgqw0t0ef0jdpeva2v7qy7q7qjjfq6yq0wq0w0qjjfq6yq',
50
50
  description: 'User wallet address',
51
51
  }),
52
+ (0, class_validator_1.IsString)(),
52
53
  __metadata("design:type", String)
53
54
  ], UserProfileDoc.prototype, "address", void 0);
54
55
  __decorate([
55
56
  (0, swagger_1.ApiProperty)({ example: false, description: 'Whether the user is banned' }),
57
+ (0, class_validator_1.IsBoolean)(),
56
58
  __metadata("design:type", Boolean)
57
59
  ], UserProfileDoc.prototype, "isBanned", void 0);
58
60
  __decorate([
59
61
  (0, swagger_1.ApiProperty)({ example: false, description: 'Whether the user is verified' }),
62
+ (0, class_validator_1.IsBoolean)(),
60
63
  __metadata("design:type", Boolean)
61
64
  ], UserProfileDoc.prototype, "isVerified", void 0);
62
65
  __decorate([
@@ -71,6 +74,7 @@ __decorate([
71
74
  ], UserProfileDoc.prototype, "socials", void 0);
72
75
  __decorate([
73
76
  (0, swagger_1.ApiProperty)({ example: 0, description: 'Number of followers' }),
77
+ (0, class_validator_1.IsInt)(),
74
78
  __metadata("design:type", Number)
75
79
  ], UserProfileDoc.prototype, "followCount", void 0);
76
80
  __decorate([
@@ -78,6 +82,7 @@ __decorate([
78
82
  example: 1640995200,
79
83
  description: 'Unix timestamp when user joined',
80
84
  }),
85
+ (0, class_validator_1.IsInt)(),
81
86
  __metadata("design:type", Number)
82
87
  ], UserProfileDoc.prototype, "joinedDate", void 0);
83
88
  __decorate([
@@ -85,6 +90,7 @@ __decorate([
85
90
  example: 'https://media.xoxno.com/userprofile/erd1.../profilePicture.webp',
86
91
  description: 'Profile picture URL',
87
92
  }),
93
+ (0, class_validator_1.IsString)(),
88
94
  __metadata("design:type", String)
89
95
  ], UserProfileDoc.prototype, "profile", void 0);
90
96
  __decorate([
@@ -92,6 +98,7 @@ __decorate([
92
98
  example: 'https://media.xoxno.com/userprofile/erd1.../profileBanner.webp',
93
99
  description: 'Profile banner URL',
94
100
  }),
101
+ (0, class_validator_1.IsString)(),
95
102
  __metadata("design:type", String)
96
103
  ], UserProfileDoc.prototype, "banner", void 0);
97
104
  __decorate([
@@ -99,14 +106,17 @@ __decorate([
99
106
  example: 'NFT collector and trader',
100
107
  description: 'User description',
101
108
  }),
109
+ (0, class_validator_1.IsString)(),
102
110
  __metadata("design:type", String)
103
111
  ], UserProfileDoc.prototype, "description", void 0);
104
112
  __decorate([
105
113
  (0, swagger_1.ApiProperty)({ example: '@username', description: 'User herotag/username' }),
114
+ (0, class_validator_1.IsString)(),
106
115
  __metadata("design:type", String)
107
116
  ], UserProfileDoc.prototype, "herotag", void 0);
108
117
  __decorate([
109
118
  (0, swagger_1.ApiProperty)({ example: false, description: 'Whether the user is a creator' }),
119
+ (0, class_validator_1.IsBoolean)(),
110
120
  __metadata("design:type", Boolean)
111
121
  ], UserProfileDoc.prototype, "isCreator", void 0);
112
122
  __decorate([
@@ -114,18 +124,26 @@ __decorate([
114
124
  example: false,
115
125
  description: 'Whether the user owns a staking pool',
116
126
  }),
127
+ (0, class_validator_1.IsBoolean)(),
117
128
  __metadata("design:type", Boolean)
118
129
  ], UserProfileDoc.prototype, "isPoolOwner", void 0);
119
130
  __decorate([
120
131
  (0, swagger_1.ApiProperty)({ example: 0, description: 'Network shard number' }),
132
+ (0, class_validator_1.IsInt)(),
121
133
  __metadata("design:type", Number)
122
134
  ], UserProfileDoc.prototype, "shard", void 0);
123
135
  __decorate([
124
- (0, swagger_1.ApiProperty)({ type: [user_deposit_1.UserDeposit], description: 'User deposit information' }),
136
+ (0, swagger_1.ApiProperty)({
137
+ type: () => [user_deposit_1.UserDeposit],
138
+ description: 'User deposit information',
139
+ }),
140
+ (0, class_validator_1.IsObject)(),
141
+ (0, class_transformer_1.Type)(() => user_deposit_1.UserDeposit),
125
142
  __metadata("design:type", Array)
126
143
  ], UserProfileDoc.prototype, "userDeposit", void 0);
127
144
  __decorate([
128
145
  (0, swagger_1.ApiProperty)({ example: common_enum_1.ActivityChain.MVX, enum: common_enum_1.ActivityChain }),
146
+ (0, class_validator_1.IsEnum)(common_enum_1.ActivityChain),
129
147
  __metadata("design:type", String)
130
148
  ], UserProfileDoc.prototype, "chain", void 0);
131
149
  __decorate([
@@ -145,5 +163,6 @@ __decorate([
145
163
  description: 'Wether analytics are enabled',
146
164
  required: false,
147
165
  }),
166
+ (0, class_validator_1.IsBoolean)(),
148
167
  __metadata("design:type", Boolean)
149
168
  ], UserProfileDoc.prototype, "isBoberBattleUser", void 0);
@@ -30,7 +30,6 @@ __decorate([
30
30
  ], Web2UserDoc.prototype, "createdOn", void 0);
31
31
  __decorate([
32
32
  (0, swagger_1.ApiProperty)({ description: 'Unique identifier for the user' }),
33
- (0, class_validator_1.IsString)(),
34
33
  __metadata("design:type", String)
35
34
  ], Web2UserDoc.prototype, "id", void 0);
36
35
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.183",
3
+ "version": "1.0.184",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {