@xoxno/types 1.0.182 → 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.
Files changed (24) hide show
  1. package/dist/cosmos-db/documents/collection/profile.d.ts +2 -2
  2. package/dist/cosmos-db/documents/collection/profile.js +4 -7
  3. package/dist/cosmos-db/documents/staking/staking-pool-doc.d.ts +1 -1
  4. package/dist/cosmos-db/documents/staking/staking-pool-doc.js +2 -2
  5. package/dist/cosmos-db/documents/ticketing/event-guest-approve.dto.js +0 -1
  6. package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +2 -8
  7. package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +11 -7
  8. package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.js +0 -1
  9. package/dist/cosmos-db/documents/ticketing/event-question.doc.js +1 -0
  10. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.d.ts +1 -1
  11. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +4 -2
  12. package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +2 -0
  13. package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.d.ts +1 -1
  14. package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +5 -10
  15. package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +5 -10
  16. package/dist/cosmos-db/documents/ticketing/event-user-role.doc.d.ts +1 -1
  17. package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +2 -5
  18. package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +4 -6
  19. package/dist/cosmos-db/documents/user/user-profile.doc.js +22 -4
  20. package/dist/cosmos-db/documents/user/user-settings.doc.js +0 -5
  21. package/dist/entities/web2user-data/web2user.doc.js +0 -1
  22. package/dist/requests/user-data/edit-creator-profile.dto.js +0 -1
  23. package/dist/requests/user-data/verify-email.dto.js +0 -1
  24. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { EsdtTokenType, EsdtTokenSubType, ActivityChain } from '../../../enums/common.enum';
2
1
  import { SocialsDto } from '../../../common/socials';
3
2
  import { StatisticsDto } from '../../../common/statistics';
4
- import { XoxnoMarketplaceScCollectionConfig } from './collectionConfig';
5
3
  import { CollectionDataType } from '../../../enums/collection.enum';
4
+ import { ActivityChain, EsdtTokenSubType, EsdtTokenType } from '../../../enums/common.enum';
5
+ import { XoxnoMarketplaceScCollectionConfig } from './collectionConfig';
6
6
  export declare class Rule {
7
7
  type: 'kiosk_lock_rule' | 'royalty_rule';
8
8
  amount_bp?: number;
@@ -11,13 +11,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CollectionProfileEditDto = exports.CollectionProfileDoc = exports.TransferPolicy = exports.Rule = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
- const common_enum_1 = require("../../../enums/common.enum");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
15
16
  const socials_1 = require("../../../common/socials");
16
17
  const statistics_1 = require("../../../common/statistics");
17
- const collectionConfig_1 = require("./collectionConfig");
18
18
  const collection_enum_1 = require("../../../enums/collection.enum");
19
- const class_validator_1 = require("class-validator");
20
- const class_transformer_1 = require("class-transformer");
19
+ const common_enum_1 = require("../../../enums/common.enum");
20
+ const collectionConfig_1 = require("./collectionConfig");
21
21
  class Rule {
22
22
  }
23
23
  exports.Rule = Rule;
@@ -122,7 +122,6 @@ __decorate([
122
122
  }),
123
123
  (0, class_validator_1.IsString)(),
124
124
  (0, class_validator_1.Length)(3, 30),
125
- (0, class_validator_1.IsOptional)(),
126
125
  __metadata("design:type", String)
127
126
  ], CollectionProfileDoc.prototype, "name", void 0);
128
127
  __decorate([
@@ -132,7 +131,6 @@ __decorate([
132
131
  }),
133
132
  (0, class_validator_1.IsString)(),
134
133
  (0, class_validator_1.Length)(3, 300),
135
- (0, class_validator_1.IsOptional)(),
136
134
  __metadata("design:type", String)
137
135
  ], CollectionProfileDoc.prototype, "description", void 0);
138
136
  __decorate([
@@ -157,7 +155,6 @@ __decorate([
157
155
  (0, class_validator_1.ValidateNested)(),
158
156
  (0, class_transformer_1.Type)(() => socials_1.SocialsDto),
159
157
  (0, class_validator_1.IsObject)(),
160
- (0, class_validator_1.IsOptional)(),
161
158
  __metadata("design:type", socials_1.SocialsDto)
162
159
  ], CollectionProfileDoc.prototype, "socials", void 0);
163
160
  __decorate([
@@ -1,7 +1,7 @@
1
- import { NftDocHydrated } from '../token/nft-details.doc';
2
1
  import { StakingDataType } from '../../../enums/staking-data-type.enum';
3
2
  import { StakingIssuingTypeString } from '../../../enums/staking-issuing-type-string.enum';
4
3
  import { StakingPoolTypeString } from '../../../enums/staking-pool-type-string.enum';
4
+ import { NftDocHydrated } from '../token/nft-details.doc';
5
5
  export declare class StakingPoolDoc {
6
6
  dataType: StakingDataType;
7
7
  poolId: number;
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.StakingUserPoolNfts = exports.StakingSummary = exports.XoxnoStakingIssuingReward = exports.XoxnoStakingRewardClaim = exports.XoxnoStakingReward = exports.StakingPoolDoc = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
- const nft_details_doc_1 = require("../token/nft-details.doc");
15
- const staking_data_type_enum_1 = require("../../../enums/staking-data-type.enum");
16
14
  const class_validator_1 = require("class-validator");
15
+ const staking_data_type_enum_1 = require("../../../enums/staking-data-type.enum");
16
+ const nft_details_doc_1 = require("../token/nft-details.doc");
17
17
  class StakingPoolDoc {
18
18
  constructor(props) {
19
19
  this.dataType = staking_data_type_enum_1.StakingDataType.Pool;
@@ -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',
@@ -1,5 +1,5 @@
1
1
  import { RoleStatus } from '../../../enums/event-user-role.doc';
2
- import { EventUserRoles, EventUserRolePermission } from '../../../enums/event-user-roles.enum';
2
+ import { EventUserRolePermission, EventUserRoles } from '../../../enums/event-user-roles.enum';
3
3
  import { TicketingDataType } from '../../../enums/ticketing-data-type.enum';
4
4
  export declare class EventUserRoleDoc {
5
5
  dataType: TicketingDataType;
@@ -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([
@@ -97,7 +98,6 @@ __decorate([
97
98
  }),
98
99
  (0, class_validator_1.IsInt)(),
99
100
  (0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
100
- (0, class_validator_1.IsOptional)(),
101
101
  __metadata("design:type", Number)
102
102
  ], EventUserRoleDoc.prototype, "endTime", void 0);
103
103
  __decorate([
@@ -114,12 +114,9 @@ __decorate([
114
114
  enumName: 'RoleStatus',
115
115
  required: false,
116
116
  }),
117
+ (0, class_validator_1.IsEnum)(event_user_role_doc_1.RoleStatus),
117
118
  __metadata("design:type", String)
118
119
  ], EventUserRoleDoc.prototype, "status", void 0);
119
- __decorate([
120
- (0, class_validator_1.IsInt)(),
121
- __metadata("design:type", Number)
122
- ], EventUserRoleDoc.prototype, "_ts", void 0);
123
120
  class EventUserRole extends EventUserRoleDoc {
124
121
  }
125
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) {
@@ -11,12 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UserProfileDoc = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
14
16
  const socials_1 = require("../../../common/socials");
15
17
  const common_enum_1 = require("../../../enums/common.enum");
16
18
  const user_data_type_enum_1 = require("../../../enums/user-data-type.enum");
17
19
  const user_deposit_1 = require("./user-deposit");
18
- const class_transformer_1 = require("class-transformer");
19
- const class_validator_1 = require("class-validator");
20
20
  class UserProfileDoc {
21
21
  constructor(props) {
22
22
  this.dataType = user_data_type_enum_1.UserDataType.UserProfile;
@@ -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([
@@ -67,11 +70,11 @@ __decorate([
67
70
  (0, class_validator_1.ValidateNested)(),
68
71
  (0, class_transformer_1.Type)(() => socials_1.SocialsDto),
69
72
  (0, class_validator_1.IsObject)(),
70
- (0, class_validator_1.IsOptional)(),
71
73
  __metadata("design:type", socials_1.SocialsDto)
72
74
  ], UserProfileDoc.prototype, "socials", void 0);
73
75
  __decorate([
74
76
  (0, swagger_1.ApiProperty)({ example: 0, description: 'Number of followers' }),
77
+ (0, class_validator_1.IsInt)(),
75
78
  __metadata("design:type", Number)
76
79
  ], UserProfileDoc.prototype, "followCount", void 0);
77
80
  __decorate([
@@ -79,6 +82,7 @@ __decorate([
79
82
  example: 1640995200,
80
83
  description: 'Unix timestamp when user joined',
81
84
  }),
85
+ (0, class_validator_1.IsInt)(),
82
86
  __metadata("design:type", Number)
83
87
  ], UserProfileDoc.prototype, "joinedDate", void 0);
84
88
  __decorate([
@@ -86,6 +90,7 @@ __decorate([
86
90
  example: 'https://media.xoxno.com/userprofile/erd1.../profilePicture.webp',
87
91
  description: 'Profile picture URL',
88
92
  }),
93
+ (0, class_validator_1.IsString)(),
89
94
  __metadata("design:type", String)
90
95
  ], UserProfileDoc.prototype, "profile", void 0);
91
96
  __decorate([
@@ -93,6 +98,7 @@ __decorate([
93
98
  example: 'https://media.xoxno.com/userprofile/erd1.../profileBanner.webp',
94
99
  description: 'Profile banner URL',
95
100
  }),
101
+ (0, class_validator_1.IsString)(),
96
102
  __metadata("design:type", String)
97
103
  ], UserProfileDoc.prototype, "banner", void 0);
98
104
  __decorate([
@@ -100,14 +106,17 @@ __decorate([
100
106
  example: 'NFT collector and trader',
101
107
  description: 'User description',
102
108
  }),
109
+ (0, class_validator_1.IsString)(),
103
110
  __metadata("design:type", String)
104
111
  ], UserProfileDoc.prototype, "description", void 0);
105
112
  __decorate([
106
113
  (0, swagger_1.ApiProperty)({ example: '@username', description: 'User herotag/username' }),
114
+ (0, class_validator_1.IsString)(),
107
115
  __metadata("design:type", String)
108
116
  ], UserProfileDoc.prototype, "herotag", void 0);
109
117
  __decorate([
110
118
  (0, swagger_1.ApiProperty)({ example: false, description: 'Whether the user is a creator' }),
119
+ (0, class_validator_1.IsBoolean)(),
111
120
  __metadata("design:type", Boolean)
112
121
  ], UserProfileDoc.prototype, "isCreator", void 0);
113
122
  __decorate([
@@ -115,18 +124,26 @@ __decorate([
115
124
  example: false,
116
125
  description: 'Whether the user owns a staking pool',
117
126
  }),
127
+ (0, class_validator_1.IsBoolean)(),
118
128
  __metadata("design:type", Boolean)
119
129
  ], UserProfileDoc.prototype, "isPoolOwner", void 0);
120
130
  __decorate([
121
131
  (0, swagger_1.ApiProperty)({ example: 0, description: 'Network shard number' }),
132
+ (0, class_validator_1.IsInt)(),
122
133
  __metadata("design:type", Number)
123
134
  ], UserProfileDoc.prototype, "shard", void 0);
124
135
  __decorate([
125
- (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),
126
142
  __metadata("design:type", Array)
127
143
  ], UserProfileDoc.prototype, "userDeposit", void 0);
128
144
  __decorate([
129
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),
130
147
  __metadata("design:type", String)
131
148
  ], UserProfileDoc.prototype, "chain", void 0);
132
149
  __decorate([
@@ -146,5 +163,6 @@ __decorate([
146
163
  description: 'Wether analytics are enabled',
147
164
  required: false,
148
165
  }),
166
+ (0, class_validator_1.IsBoolean)(),
149
167
  __metadata("design:type", Boolean)
150
168
  ], UserProfileDoc.prototype, "isBoberBattleUser", void 0);
@@ -24,7 +24,6 @@ __decorate([
24
24
  __decorate([
25
25
  (0, class_validator_1.IsString)(),
26
26
  (0, class_validator_1.Length)(5, 50),
27
- (0, class_validator_1.IsOptional)(),
28
27
  (0, swagger_1.ApiProperty)({ description: 'Name of the company or user.' }),
29
28
  __metadata("design:type", String)
30
29
  ], UserBillingDetails.prototype, "name", void 0);
@@ -45,28 +44,24 @@ __decorate([
45
44
  __decorate([
46
45
  (0, class_validator_1.IsEmail)(),
47
46
  (0, class_validator_1.Length)(1, 50),
48
- (0, class_validator_1.IsOptional)(),
49
47
  (0, swagger_1.ApiProperty)({ description: 'Email address.' }),
50
48
  __metadata("design:type", String)
51
49
  ], UserBillingDetails.prototype, "email", void 0);
52
50
  __decorate([
53
51
  (0, class_validator_1.IsString)(),
54
52
  (0, class_validator_1.Length)(1, 50),
55
- (0, class_validator_1.IsOptional)(),
56
53
  (0, swagger_1.ApiProperty)({ description: 'Country' }),
57
54
  __metadata("design:type", String)
58
55
  ], UserBillingDetails.prototype, "country", void 0);
59
56
  __decorate([
60
57
  (0, class_validator_1.IsString)(),
61
58
  (0, class_validator_1.Length)(1, 100),
62
- (0, class_validator_1.IsOptional)(),
63
59
  (0, swagger_1.ApiProperty)({ description: 'City' }),
64
60
  __metadata("design:type", String)
65
61
  ], UserBillingDetails.prototype, "city", void 0);
66
62
  __decorate([
67
63
  (0, class_validator_1.IsString)(),
68
64
  (0, class_validator_1.Length)(1, 100),
69
- (0, class_validator_1.IsOptional)(),
70
65
  (0, swagger_1.ApiProperty)({
71
66
  description: 'Address line 1',
72
67
  }),
@@ -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([
@@ -46,6 +46,5 @@ __decorate([
46
46
  }),
47
47
  (0, class_validator_1.IsString)(),
48
48
  (0, class_validator_1.Length)(1, 300),
49
- (0, class_validator_1.IsOptional)(),
50
49
  __metadata("design:type", String)
51
50
  ], EditUserCreatorProfileDto.prototype, "name", void 0);
@@ -24,6 +24,5 @@ __decorate([
24
24
  }),
25
25
  (0, class_validator_1.IsNumberString)(),
26
26
  (0, class_validator_1.Length)(6, 6),
27
- (0, class_validator_1.IsOptional)(),
28
27
  __metadata("design:type", String)
29
28
  ], VerifyEmailDto.prototype, "verificationCode", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.182",
3
+ "version": "1.0.184",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {