@xoxno/types 1.0.183 → 1.0.185
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-guest-approve.dto.js +0 -1
- package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +2 -8
- package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.d.ts +6 -3
- package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.js +11 -1
- package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.d.ts +1 -4
- package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.js +0 -23
- package/dist/cosmos-db/documents/ticketing/event-profile.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +20 -8
- package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.js +0 -1
- package/dist/cosmos-db/documents/ticketing/event-question.doc.js +1 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +4 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-edit.dto.d.ts +2 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-edit.dto.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +2 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +5 -10
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +5 -10
- package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +2 -4
- package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +4 -6
- package/dist/cosmos-db/documents/user/user-profile.doc.js +20 -1
- package/dist/entities/web2user-data/web2user.doc.js +0 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -40,9 +40,12 @@ export declare type RegistrationDetailsCreateDto = RegistrationDetailsCreateDto_
|
|
|
40
40
|
declare const RegistrationDetailsCreateDtoNest_base: import("@nestjs/common").Type<Pick<RegistrationDetailsDto, "maxLimit" | "userLimit" | "visibility" | "requireKYC" | "requireName" | "requireEmail" | "requirePhoneNumber" | "isPublished" | "hasSideEvents" | "hasWaitlist" | "showGuestCount" | "refundable" | "nameWithNumber" | "botProtection">>;
|
|
41
41
|
export declare class RegistrationDetailsCreateDtoNest extends RegistrationDetailsCreateDtoNest_base {
|
|
42
42
|
}
|
|
43
|
-
declare type EventProfileCreateDto_base = Pick<EventProfileDoc, "title" | "startTime" | "endTime" | "
|
|
44
|
-
export declare type EventProfileCreateDto = EventProfileCreateDto_base
|
|
45
|
-
|
|
43
|
+
declare type EventProfileCreateDto_base = Pick<EventProfileDoc, "title" | "startTime" | "endTime" | "location" | "isVirtualEvent" | "slug" | "category" | "subCategory" | "seo">;
|
|
44
|
+
export declare type EventProfileCreateDto = EventProfileCreateDto_base & {
|
|
45
|
+
registration: RegistrationDetailsCreateDto;
|
|
46
|
+
};
|
|
47
|
+
declare const EventProfileCreateDtoNest_base: import("@nestjs/common").Type<Pick<EventProfileDoc, "title" | "startTime" | "endTime" | "location" | "isVirtualEvent" | "slug" | "category" | "subCategory" | "seo">>;
|
|
46
48
|
export declare class EventProfileCreateDtoNest extends EventProfileCreateDtoNest_base {
|
|
49
|
+
registration: RegistrationDetailsCreateDto;
|
|
47
50
|
}
|
|
48
51
|
export {};
|
|
@@ -14,6 +14,7 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const ticketing_visibility_enum_1 = require("../../../enums/ticketing-visibility.enum");
|
|
16
16
|
const event_profile_doc_1 = require("./event-profile.doc");
|
|
17
|
+
const class_transformer_1 = require("class-transformer");
|
|
17
18
|
class EventSeoDto {
|
|
18
19
|
}
|
|
19
20
|
exports.EventSeoDto = EventSeoDto;
|
|
@@ -147,6 +148,7 @@ __decorate([
|
|
|
147
148
|
description: 'Current number of tickets sold',
|
|
148
149
|
}),
|
|
149
150
|
(0, class_validator_1.IsInt)(),
|
|
151
|
+
(0, class_validator_1.IsOptional)(),
|
|
150
152
|
__metadata("design:type", Number)
|
|
151
153
|
], RegistrationDetailsDto.prototype, "soldCount", void 0);
|
|
152
154
|
__decorate([
|
|
@@ -156,6 +158,7 @@ __decorate([
|
|
|
156
158
|
description: 'Whether the event has custom questions',
|
|
157
159
|
}),
|
|
158
160
|
(0, class_validator_1.IsBoolean)(),
|
|
161
|
+
(0, class_validator_1.IsOptional)(),
|
|
159
162
|
__metadata("design:type", Boolean)
|
|
160
163
|
], RegistrationDetailsDto.prototype, "hasCustomQuestions", void 0);
|
|
161
164
|
__decorate([
|
|
@@ -165,6 +168,7 @@ __decorate([
|
|
|
165
168
|
description: 'Email sender for notifications',
|
|
166
169
|
}),
|
|
167
170
|
(0, class_validator_1.IsString)(),
|
|
171
|
+
(0, class_validator_1.IsOptional)(),
|
|
168
172
|
__metadata("design:type", String)
|
|
169
173
|
], RegistrationDetailsDto.prototype, "emailSender", void 0);
|
|
170
174
|
class EventLocationDto {
|
|
@@ -256,11 +260,11 @@ class RegistrationDetailsCreateDto extends (0, swagger_1.PickType)(RegistrationD
|
|
|
256
260
|
}
|
|
257
261
|
exports.RegistrationDetailsCreateDto = RegistrationDetailsCreateDto;
|
|
258
262
|
class EventProfileCreateDto extends (0, swagger_1.PickType)(event_profile_doc_1.EventProfileDoc, [
|
|
263
|
+
'slug',
|
|
259
264
|
'title',
|
|
260
265
|
'startTime',
|
|
261
266
|
'endTime',
|
|
262
267
|
'location',
|
|
263
|
-
'registration',
|
|
264
268
|
'isVirtualEvent',
|
|
265
269
|
'seo',
|
|
266
270
|
'category',
|
|
@@ -268,6 +272,12 @@ class EventProfileCreateDto extends (0, swagger_1.PickType)(event_profile_doc_1.
|
|
|
268
272
|
]) {
|
|
269
273
|
}
|
|
270
274
|
exports.EventProfileCreateDto = EventProfileCreateDto;
|
|
275
|
+
__decorate([
|
|
276
|
+
(0, class_validator_1.IsObject)(),
|
|
277
|
+
(0, class_validator_1.ValidateNested)(),
|
|
278
|
+
(0, class_transformer_1.Type)(() => RegistrationDetailsDto),
|
|
279
|
+
__metadata("design:type", RegistrationDetailsCreateDto)
|
|
280
|
+
], EventProfileCreateDto.prototype, "registration", void 0);
|
|
271
281
|
|
|
272
282
|
exports.RegistrationDetailsCreateDtoNest = RegistrationDetailsCreateDto;
|
|
273
283
|
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { EventProfileCreateDto } from './event-profile-create.dto';
|
|
2
2
|
declare type EventProfileEditDto_base = Partial<EventProfileCreateDto>;
|
|
3
|
-
export declare type EventProfileEditDto = EventProfileEditDto_base
|
|
4
|
-
slug?: string;
|
|
5
|
-
};
|
|
3
|
+
export declare type EventProfileEditDto = EventProfileEditDto_base ;
|
|
6
4
|
declare const EventProfileEditDtoNest_base: import("@nestjs/common").Type<Partial<EventProfileCreateDto>>;
|
|
7
5
|
export declare class EventProfileEditDtoNest extends EventProfileEditDtoNest_base {
|
|
8
|
-
slug?: string;
|
|
9
6
|
}
|
|
10
7
|
export {};
|
|
@@ -1,33 +1,10 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.EventProfileEditDto = void 0;
|
|
13
4
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
5
|
const event_profile_create_dto_1 = require("./event-profile-create.dto");
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
6
|
class EventProfileEditDto extends (0, swagger_1.PartialType)(event_profile_create_dto_1.EventProfileCreateDto) {
|
|
17
7
|
}
|
|
18
8
|
exports.EventProfileEditDto = EventProfileEditDto;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, swagger_1.ApiProperty)({
|
|
21
|
-
description: 'Unique slug for the event URL.',
|
|
22
|
-
required: false,
|
|
23
|
-
}),
|
|
24
|
-
(0, class_validator_1.IsString)(),
|
|
25
|
-
(0, class_validator_1.Matches)(/^[a-z0-9-]+$/, {
|
|
26
|
-
message: 'Slug can only contain lowercase letters, numbers, and hyphens',
|
|
27
|
-
}),
|
|
28
|
-
(0, class_validator_1.Length)(3, 20),
|
|
29
|
-
(0, class_validator_1.IsOptional)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], EventProfileEditDto.prototype, "slug", void 0);
|
|
32
9
|
|
|
33
10
|
exports.EventProfileEditDtoNest = EventProfileEditDto;
|
|
@@ -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([
|
|
@@ -195,7 +195,16 @@ __decorate([
|
|
|
195
195
|
__metadata("design:type", Boolean)
|
|
196
196
|
], EventProfileDoc.prototype, "isVirtualEvent", void 0);
|
|
197
197
|
__decorate([
|
|
198
|
-
(0, swagger_1.ApiProperty)({
|
|
198
|
+
(0, swagger_1.ApiProperty)({
|
|
199
|
+
description: 'Unique slug for the event URL.',
|
|
200
|
+
required: false,
|
|
201
|
+
}),
|
|
202
|
+
(0, class_validator_1.IsString)(),
|
|
203
|
+
(0, class_validator_1.Matches)(/^[a-z0-9-]+$/, {
|
|
204
|
+
message: 'Slug can only contain lowercase letters, numbers, and hyphens',
|
|
205
|
+
}),
|
|
206
|
+
(0, class_validator_1.Length)(3, 20),
|
|
207
|
+
(0, class_validator_1.IsOptional)(),
|
|
199
208
|
__metadata("design:type", String)
|
|
200
209
|
], EventProfileDoc.prototype, "slug", void 0);
|
|
201
210
|
__decorate([
|
|
@@ -203,6 +212,7 @@ __decorate([
|
|
|
203
212
|
description: 'URL to the profile image in Azure storage.',
|
|
204
213
|
// default: StaticConfig.getDefaultProfilePicture(),
|
|
205
214
|
}),
|
|
215
|
+
(0, class_validator_1.IsString)(),
|
|
206
216
|
__metadata("design:type", String)
|
|
207
217
|
], EventProfileDoc.prototype, "profile", void 0);
|
|
208
218
|
__decorate([
|
|
@@ -229,6 +239,7 @@ __decorate([
|
|
|
229
239
|
description: 'URL to the background image in Azure storage, optional.',
|
|
230
240
|
required: false,
|
|
231
241
|
}),
|
|
242
|
+
(0, class_validator_1.IsString)(),
|
|
232
243
|
__metadata("design:type", String)
|
|
233
244
|
], EventProfileDoc.prototype, "background", void 0);
|
|
234
245
|
__decorate([
|
|
@@ -246,6 +257,7 @@ __decorate([
|
|
|
246
257
|
description: 'Event premium features',
|
|
247
258
|
type: () => PremiumType,
|
|
248
259
|
}),
|
|
260
|
+
(0, class_validator_1.IsEnum)(PremiumType),
|
|
249
261
|
__metadata("design:type", PremiumType)
|
|
250
262
|
], EventProfileDoc.prototype, "premium", void 0);
|
|
251
263
|
__decorate([
|
|
@@ -253,6 +265,7 @@ __decorate([
|
|
|
253
265
|
description: 'The address of the contract that manages the event.',
|
|
254
266
|
required: false,
|
|
255
267
|
}),
|
|
268
|
+
(0, class_validator_1.IsString)(),
|
|
256
269
|
__metadata("design:type", String)
|
|
257
270
|
], EventProfileDoc.prototype, "contractAddress", void 0);
|
|
258
271
|
__decorate([
|
|
@@ -260,6 +273,7 @@ __decorate([
|
|
|
260
273
|
description: 'The NFT collection the event is associated with.',
|
|
261
274
|
required: false,
|
|
262
275
|
}),
|
|
276
|
+
(0, class_validator_1.IsString)(),
|
|
263
277
|
__metadata("design:type", String)
|
|
264
278
|
], EventProfileDoc.prototype, "collection", void 0);
|
|
265
279
|
__decorate([
|
|
@@ -286,12 +300,10 @@ __decorate([
|
|
|
286
300
|
required: false,
|
|
287
301
|
type: () => event_user_role_doc_1.EventUserRoleDoc,
|
|
288
302
|
}),
|
|
303
|
+
(0, class_validator_1.IsObject)(),
|
|
304
|
+
(0, class_transformer_1.Type)(() => event_user_role_doc_1.EventUserRoleDoc),
|
|
289
305
|
__metadata("design:type", Object)
|
|
290
306
|
], 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
307
|
// Define a class for the startsFrom object
|
|
296
308
|
class EventStartPrice {
|
|
297
309
|
}
|
|
@@ -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);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventReferralDoc } from './event-referral.doc';
|
|
2
|
-
declare type EventReferralEditDto_base = Partial<Pick<EventReferralDoc, "isActive"
|
|
2
|
+
declare type EventReferralEditDto_base = Partial<Pick<EventReferralDoc, "isActive">>;
|
|
3
3
|
export declare type EventReferralEditDto = EventReferralEditDto_base ;
|
|
4
|
-
declare const EventReferralEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<EventReferralDoc, "isActive"
|
|
4
|
+
declare const EventReferralEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<EventReferralDoc, "isActive">>>;
|
|
5
5
|
export declare class EventReferralEditDtoNest extends EventReferralEditDtoNest_base {
|
|
6
6
|
}
|
|
7
7
|
export {};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EventReferralEditDto = void 0;
|
|
4
4
|
const swagger_1 = require("@nestjs/swagger");
|
|
5
5
|
const event_referral_doc_1 = require("./event-referral.doc");
|
|
6
|
-
class EventReferralEditDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(event_referral_doc_1.EventReferralDoc, ['
|
|
6
|
+
class EventReferralEditDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(event_referral_doc_1.EventReferralDoc, ['isActive'])) {
|
|
7
7
|
}
|
|
8
8
|
exports.EventReferralEditDto = EventReferralEditDto;
|
|
9
9
|
|
|
@@ -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.
|
|
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.
|
|
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)({
|
|
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([
|