@xoxno/types 1.0.61 → 1.0.63
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/common/kusto/order-by-column.enum.d.ts +0 -11
- package/dist/common/kusto/order-by-column.enum.js +1 -13
- package/dist/cosmos-db/documents/external-payment/external-payment-request.js +11 -11
- package/dist/cosmos-db/documents/user/user-creator-profile.doc.d.ts +2 -2
- package/dist/cosmos-db/documents/user/user-creator-profile.doc.js +5 -2
- package/dist/entities/web2user-data/web2user-account.dto.js +6 -3
- package/dist/entities/web2user-data/web2user-account.js +8 -4
- package/dist/entities/web2user-data/web2user-wallet.dto.js +11 -4
- package/dist/entities/web2user-data/web2user-wallet.js +8 -4
- package/dist/entities/web2user-data/web2user.doc.js +7 -4
- package/dist/requests/bober-battle/analytics.d.ts +1 -1
- package/dist/requests/bober-battle/analytics.js +1 -1
- package/dist/requests/user-data/edit-creator-profile.dto.js +9 -4
- package/dist/requests/user-data/edit-user-profile.dto.js +5 -3
- package/dist/requests/user-data/set-email.dto.js +2 -1
- package/dist/requests/user-data/set-phone.dto.js +2 -1
- package/package.json +1 -1
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
export declare enum UserStatsOrderByColumn {
|
|
2
2
|
TOTAL_VOLUME = "totalVolume"
|
|
3
3
|
}
|
|
4
|
-
export declare enum BoberLeaderboardOrderByColumn {
|
|
5
|
-
GAMES_CREATED = "GamesCreated",
|
|
6
|
-
GAMES_CREATED_HEAD = "GamesCreatedHead",
|
|
7
|
-
GAMES_CREATED_TAIL = "GamesCreatedTail",
|
|
8
|
-
GAMES_JOINED = "GamesJoined",
|
|
9
|
-
GAMES_JOINED_HEAD = "GamesJoinedHead",
|
|
10
|
-
GAMES_JOINED_TAIL = "GamesJoinedTail",
|
|
11
|
-
TOTAL_GAMES = "TotalGames",
|
|
12
|
-
TOTAL_VOLUME = "TotalVolume",
|
|
13
|
-
TOTAL_VOLUME_USD = "TotalVolumeUSD"
|
|
14
|
-
}
|
|
15
4
|
export declare enum LendingPositionOrderByColumn {
|
|
16
5
|
SUPPLIED = "supplied",
|
|
17
6
|
BORROWED = "borrowed",
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LendingPositionOrderByColumn = exports.
|
|
3
|
+
exports.LendingPositionOrderByColumn = exports.UserStatsOrderByColumn = void 0;
|
|
4
4
|
var UserStatsOrderByColumn;
|
|
5
5
|
(function (UserStatsOrderByColumn) {
|
|
6
6
|
UserStatsOrderByColumn["TOTAL_VOLUME"] = "totalVolume";
|
|
7
7
|
})(UserStatsOrderByColumn || (exports.UserStatsOrderByColumn = UserStatsOrderByColumn = {}));
|
|
8
|
-
var BoberLeaderboardOrderByColumn;
|
|
9
|
-
(function (BoberLeaderboardOrderByColumn) {
|
|
10
|
-
BoberLeaderboardOrderByColumn["GAMES_CREATED"] = "GamesCreated";
|
|
11
|
-
BoberLeaderboardOrderByColumn["GAMES_CREATED_HEAD"] = "GamesCreatedHead";
|
|
12
|
-
BoberLeaderboardOrderByColumn["GAMES_CREATED_TAIL"] = "GamesCreatedTail";
|
|
13
|
-
BoberLeaderboardOrderByColumn["GAMES_JOINED"] = "GamesJoined";
|
|
14
|
-
BoberLeaderboardOrderByColumn["GAMES_JOINED_HEAD"] = "GamesJoinedHead";
|
|
15
|
-
BoberLeaderboardOrderByColumn["GAMES_JOINED_TAIL"] = "GamesJoinedTail";
|
|
16
|
-
BoberLeaderboardOrderByColumn["TOTAL_GAMES"] = "TotalGames";
|
|
17
|
-
BoberLeaderboardOrderByColumn["TOTAL_VOLUME"] = "TotalVolume";
|
|
18
|
-
BoberLeaderboardOrderByColumn["TOTAL_VOLUME_USD"] = "TotalVolumeUSD";
|
|
19
|
-
})(BoberLeaderboardOrderByColumn || (exports.BoberLeaderboardOrderByColumn = BoberLeaderboardOrderByColumn = {}));
|
|
20
8
|
var LendingPositionOrderByColumn;
|
|
21
9
|
(function (LendingPositionOrderByColumn) {
|
|
22
10
|
LendingPositionOrderByColumn["SUPPLIED"] = "supplied";
|
|
@@ -152,13 +152,13 @@ __decorate([
|
|
|
152
152
|
__metadata("design:type", String)
|
|
153
153
|
], ExternalPaymentRequest.prototype, "name", void 0);
|
|
154
154
|
__decorate([
|
|
155
|
-
(0, swagger_1.
|
|
155
|
+
(0, swagger_1.ApiProperty)({ type: String, isArray: true, required: false }),
|
|
156
156
|
(0, class_validator_1.IsArray)(),
|
|
157
157
|
(0, class_validator_1.IsOptional)(),
|
|
158
158
|
__metadata("design:type", Array)
|
|
159
159
|
], ExternalPaymentRequest.prototype, "images", void 0);
|
|
160
160
|
__decorate([
|
|
161
|
-
(0, swagger_1.
|
|
161
|
+
(0, swagger_1.ApiProperty)({ enum: ['embedded', 'custom'], required: false }),
|
|
162
162
|
(0, class_validator_1.IsEnum)(['embedded', 'custom']),
|
|
163
163
|
(0, class_validator_1.IsOptional)(),
|
|
164
164
|
__metadata("design:type", String)
|
|
@@ -182,54 +182,54 @@ __decorate([
|
|
|
182
182
|
__metadata("design:type", Object)
|
|
183
183
|
], ExternalPaymentRequest.prototype, "customData", void 0);
|
|
184
184
|
__decorate([
|
|
185
|
-
(0, swagger_1.
|
|
185
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
186
186
|
(0, class_validator_1.IsString)(),
|
|
187
187
|
(0, class_validator_1.IsOptional)(),
|
|
188
188
|
__metadata("design:type", String)
|
|
189
189
|
], ExternalPaymentRequest.prototype, "description", void 0);
|
|
190
190
|
__decorate([
|
|
191
|
-
(0, swagger_1.
|
|
191
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
192
192
|
(0, class_validator_1.IsNumber)(),
|
|
193
193
|
(0, class_validator_1.IsOptional)(),
|
|
194
194
|
__metadata("design:type", Number)
|
|
195
195
|
], ExternalPaymentRequest.prototype, "amount", void 0);
|
|
196
196
|
__decorate([
|
|
197
|
-
(0, swagger_1.
|
|
197
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
198
198
|
(0, class_validator_1.IsNumber)(),
|
|
199
199
|
(0, class_validator_1.IsOptional)(),
|
|
200
200
|
__metadata("design:type", Number)
|
|
201
201
|
], ExternalPaymentRequest.prototype, "egldPrice", void 0);
|
|
202
202
|
__decorate([
|
|
203
|
-
(0, swagger_1.
|
|
203
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
204
204
|
(0, class_validator_1.IsNumber)(),
|
|
205
205
|
(0, class_validator_1.IsOptional)(),
|
|
206
206
|
__metadata("design:type", Number)
|
|
207
207
|
], ExternalPaymentRequest.prototype, "egldFiatPrice", void 0);
|
|
208
208
|
__decorate([
|
|
209
|
-
(0, swagger_1.
|
|
209
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
210
210
|
(0, class_validator_1.IsOptional)(),
|
|
211
211
|
__metadata("design:type", String)
|
|
212
212
|
], ExternalPaymentRequest.prototype, "collection", void 0);
|
|
213
213
|
__decorate([
|
|
214
|
-
(0, swagger_1.
|
|
214
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
215
215
|
(0, class_validator_1.IsNumber)(),
|
|
216
216
|
(0, class_validator_1.IsOptional)(),
|
|
217
217
|
__metadata("design:type", Number)
|
|
218
218
|
], ExternalPaymentRequest.prototype, "nftNonce", void 0);
|
|
219
219
|
__decorate([
|
|
220
|
-
(0, swagger_1.
|
|
220
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
221
221
|
(0, class_validator_1.IsString)(),
|
|
222
222
|
(0, class_validator_1.IsOptional)(),
|
|
223
223
|
__metadata("design:type", String)
|
|
224
224
|
], ExternalPaymentRequest.prototype, "identifier", void 0);
|
|
225
225
|
__decorate([
|
|
226
|
-
(0, swagger_1.
|
|
226
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
227
227
|
(0, class_validator_1.IsString)(),
|
|
228
228
|
(0, class_validator_1.IsOptional)(),
|
|
229
229
|
__metadata("design:type", String)
|
|
230
230
|
], ExternalPaymentRequest.prototype, "paymentProviderId", void 0);
|
|
231
231
|
__decorate([
|
|
232
|
-
(0, swagger_1.
|
|
232
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
233
233
|
(0, class_validator_1.IsString)(),
|
|
234
234
|
(0, class_validator_1.IsOptional)(),
|
|
235
235
|
__metadata("design:type", String)
|
|
@@ -5,8 +5,8 @@ export declare class CreatorProfileDoc {
|
|
|
5
5
|
address: string;
|
|
6
6
|
name: string;
|
|
7
7
|
creatorTag: string;
|
|
8
|
-
contractAddress
|
|
9
|
-
ticketingContractAddress
|
|
8
|
+
contractAddress?: string;
|
|
9
|
+
ticketingContractAddress?: string;
|
|
10
10
|
profile: string;
|
|
11
11
|
banner: string;
|
|
12
12
|
joinedDate: number;
|
|
@@ -51,6 +51,7 @@ __decorate([
|
|
|
51
51
|
(0, swagger_1.ApiProperty)({
|
|
52
52
|
example: 'erd1qqqqqqqqqqqqqpgqcollection123456789abcdef',
|
|
53
53
|
description: 'Contract address for regular NFT creators',
|
|
54
|
+
required: false,
|
|
54
55
|
}),
|
|
55
56
|
__metadata("design:type", String)
|
|
56
57
|
], CreatorProfileDoc.prototype, "contractAddress", void 0);
|
|
@@ -58,6 +59,7 @@ __decorate([
|
|
|
58
59
|
(0, swagger_1.ApiProperty)({
|
|
59
60
|
example: 'erd1qqqqqqqqqqqqqpgqticket123456789abcdef',
|
|
60
61
|
description: 'Contract address for ticketing creators',
|
|
62
|
+
required: false,
|
|
61
63
|
}),
|
|
62
64
|
__metadata("design:type", String)
|
|
63
65
|
], CreatorProfileDoc.prototype, "ticketingContractAddress", void 0);
|
|
@@ -83,14 +85,15 @@ __decorate([
|
|
|
83
85
|
__metadata("design:type", Number)
|
|
84
86
|
], CreatorProfileDoc.prototype, "joinedDate", void 0);
|
|
85
87
|
__decorate([
|
|
86
|
-
(0, swagger_1.
|
|
88
|
+
(0, swagger_1.ApiProperty)({
|
|
87
89
|
example: 'Leading NFT creator and artist',
|
|
88
90
|
description: 'Creator description',
|
|
91
|
+
required: false,
|
|
89
92
|
}),
|
|
90
93
|
__metadata("design:type", String)
|
|
91
94
|
], CreatorProfileDoc.prototype, "description", void 0);
|
|
92
95
|
__decorate([
|
|
93
|
-
(0, swagger_1.
|
|
96
|
+
(0, swagger_1.ApiProperty)({ description: 'Creator social media links', required: false }),
|
|
94
97
|
__metadata("design:type", socials_1.SocialsDto)
|
|
95
98
|
], CreatorProfileDoc.prototype, "socials", void 0);
|
|
96
99
|
__decorate([
|
|
@@ -31,19 +31,22 @@ __decorate([
|
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], Web2UserAccountDto.prototype, "subject", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, swagger_1.
|
|
34
|
+
(0, swagger_1.ApiProperty)({
|
|
35
|
+
description: "URL of the user's profile picture",
|
|
36
|
+
required: false,
|
|
37
|
+
}),
|
|
35
38
|
(0, class_validator_1.IsOptional)(),
|
|
36
39
|
(0, class_validator_1.IsString)(),
|
|
37
40
|
__metadata("design:type", String)
|
|
38
41
|
], Web2UserAccountDto.prototype, "profilePicture", void 0);
|
|
39
42
|
__decorate([
|
|
40
|
-
(0, swagger_1.
|
|
43
|
+
(0, swagger_1.ApiProperty)({ description: "User's email address", required: false }),
|
|
41
44
|
(0, class_validator_1.IsOptional)(),
|
|
42
45
|
(0, class_validator_1.IsString)(),
|
|
43
46
|
__metadata("design:type", String)
|
|
44
47
|
], Web2UserAccountDto.prototype, "email", void 0);
|
|
45
48
|
__decorate([
|
|
46
|
-
(0, swagger_1.
|
|
49
|
+
(0, swagger_1.ApiProperty)({ description: "User's username", required: false }),
|
|
47
50
|
(0, class_validator_1.IsOptional)(),
|
|
48
51
|
(0, class_validator_1.IsString)(),
|
|
49
52
|
__metadata("design:type", String)
|
|
@@ -36,34 +36,38 @@ __decorate([
|
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], Web2UserAccount.prototype, "subject", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, swagger_1.
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
40
|
type: String,
|
|
41
41
|
description: "User's name",
|
|
42
42
|
example: 'John Doe',
|
|
43
|
+
required: false,
|
|
43
44
|
}),
|
|
44
45
|
__metadata("design:type", String)
|
|
45
46
|
], Web2UserAccount.prototype, "name", void 0);
|
|
46
47
|
__decorate([
|
|
47
|
-
(0, swagger_1.
|
|
48
|
+
(0, swagger_1.ApiProperty)({
|
|
48
49
|
type: String,
|
|
49
50
|
description: "URL of the user's profile picture",
|
|
50
51
|
example: 'https://example.com/profile.jpg',
|
|
52
|
+
required: false,
|
|
51
53
|
}),
|
|
52
54
|
__metadata("design:type", String)
|
|
53
55
|
], Web2UserAccount.prototype, "profilePicture", void 0);
|
|
54
56
|
__decorate([
|
|
55
|
-
(0, swagger_1.
|
|
57
|
+
(0, swagger_1.ApiProperty)({
|
|
56
58
|
type: String,
|
|
57
59
|
description: "User's email address",
|
|
58
60
|
example: 'john.doe@example.com',
|
|
61
|
+
required: false,
|
|
59
62
|
}),
|
|
60
63
|
__metadata("design:type", String)
|
|
61
64
|
], Web2UserAccount.prototype, "email", void 0);
|
|
62
65
|
__decorate([
|
|
63
|
-
(0, swagger_1.
|
|
66
|
+
(0, swagger_1.ApiProperty)({
|
|
64
67
|
type: String,
|
|
65
68
|
description: "User's username",
|
|
66
69
|
example: 'johndoe123',
|
|
70
|
+
required: false,
|
|
67
71
|
}),
|
|
68
72
|
__metadata("design:type", String)
|
|
69
73
|
], Web2UserAccount.prototype, "username", void 0);
|
|
@@ -37,13 +37,13 @@ __decorate([
|
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], Web2WalletDto.prototype, "chain", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0, swagger_1.
|
|
40
|
+
(0, swagger_1.ApiProperty)({ description: 'Signature for authentication', required: false }),
|
|
41
41
|
(0, class_validator_1.IsOptional)(),
|
|
42
42
|
(0, class_validator_1.IsString)(),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], Web2WalletDto.prototype, "signature", void 0);
|
|
45
45
|
__decorate([
|
|
46
|
-
(0, swagger_1.
|
|
46
|
+
(0, swagger_1.ApiProperty)({ description: 'Authentication token', required: false }),
|
|
47
47
|
(0, class_validator_1.IsOptional)(),
|
|
48
48
|
(0, class_validator_1.IsString)(),
|
|
49
49
|
__metadata("design:type", String)
|
|
@@ -58,13 +58,20 @@ __decorate([
|
|
|
58
58
|
__metadata("design:type", String)
|
|
59
59
|
], Web2WalletDto.prototype, "walletClientType", void 0);
|
|
60
60
|
__decorate([
|
|
61
|
-
(0, swagger_1.
|
|
61
|
+
(0, swagger_1.ApiProperty)({
|
|
62
|
+
description: 'Index of the wallet',
|
|
63
|
+
type: Number,
|
|
64
|
+
required: false,
|
|
65
|
+
}),
|
|
62
66
|
(0, class_validator_1.IsOptional)(),
|
|
63
67
|
(0, class_validator_1.IsNumber)(),
|
|
64
68
|
__metadata("design:type", Number)
|
|
65
69
|
], Web2WalletDto.prototype, "index", void 0);
|
|
66
70
|
__decorate([
|
|
67
|
-
(0, swagger_1.
|
|
71
|
+
(0, swagger_1.ApiProperty)({
|
|
72
|
+
description: 'Method used for wallet recovery',
|
|
73
|
+
required: false,
|
|
74
|
+
}),
|
|
68
75
|
(0, class_validator_1.IsOptional)(),
|
|
69
76
|
(0, class_validator_1.IsString)(),
|
|
70
77
|
__metadata("design:type", String)
|
|
@@ -36,13 +36,13 @@ __decorate([
|
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], Web2UserWallet.prototype, "address", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, swagger_1.
|
|
39
|
+
(0, swagger_1.ApiProperty)({ description: 'Wallet index', required: false }),
|
|
40
40
|
(0, class_validator_1.IsOptional)(),
|
|
41
41
|
(0, class_validator_1.IsNumber)(),
|
|
42
42
|
__metadata("design:type", Number)
|
|
43
43
|
], Web2UserWallet.prototype, "index", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
(0, swagger_1.
|
|
45
|
+
(0, swagger_1.ApiProperty)({ description: 'Signature for the wallet', required: false }),
|
|
46
46
|
(0, class_validator_1.IsOptional)(),
|
|
47
47
|
(0, class_validator_1.IsString)(),
|
|
48
48
|
__metadata("design:type", String)
|
|
@@ -62,14 +62,18 @@ __decorate([
|
|
|
62
62
|
__metadata("design:type", String)
|
|
63
63
|
], Web2UserWallet.prototype, "walletClientType", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, swagger_1.
|
|
65
|
+
(0, swagger_1.ApiProperty)({
|
|
66
|
+
description: 'Method used for wallet recovery',
|
|
67
|
+
required: false,
|
|
68
|
+
}),
|
|
66
69
|
(0, class_validator_1.IsOptional)(),
|
|
67
70
|
(0, class_validator_1.IsString)(),
|
|
68
71
|
__metadata("design:type", String)
|
|
69
72
|
], Web2UserWallet.prototype, "recoveryMethod", void 0);
|
|
70
73
|
__decorate([
|
|
71
|
-
(0, swagger_1.
|
|
74
|
+
(0, swagger_1.ApiProperty)({
|
|
72
75
|
description: 'Unique identifier for the wallet',
|
|
76
|
+
required: false,
|
|
73
77
|
}),
|
|
74
78
|
(0, class_validator_1.IsOptional)(),
|
|
75
79
|
(0, class_validator_1.IsString)(),
|
|
@@ -56,9 +56,10 @@ __decorate([
|
|
|
56
56
|
__metadata("design:type", Object)
|
|
57
57
|
], Web2UserDoc.prototype, "hasNativeWallet", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, swagger_1.
|
|
59
|
+
(0, swagger_1.ApiProperty)({
|
|
60
60
|
type: () => web2user_wallet_1.Web2UserWallet,
|
|
61
61
|
description: "User's wallet information",
|
|
62
|
+
required: false,
|
|
62
63
|
}),
|
|
63
64
|
(0, class_validator_1.IsOptional)(),
|
|
64
65
|
(0, class_transformer_1.Type)(() => web2user_wallet_1.Web2UserWallet),
|
|
@@ -70,18 +71,20 @@ __decorate([
|
|
|
70
71
|
__metadata("design:type", String)
|
|
71
72
|
], Web2UserDoc.prototype, "salt", void 0);
|
|
72
73
|
__decorate([
|
|
73
|
-
(0, swagger_1.
|
|
74
|
+
(0, swagger_1.ApiProperty)({
|
|
74
75
|
type: () => web2user_account_1.Web2UserAccount,
|
|
75
76
|
description: "User's Google account information",
|
|
77
|
+
required: false,
|
|
76
78
|
}),
|
|
77
79
|
(0, class_validator_1.IsOptional)(),
|
|
78
80
|
(0, class_transformer_1.Type)(() => web2user_account_1.Web2UserAccount),
|
|
79
81
|
__metadata("design:type", web2user_account_1.Web2UserAccount)
|
|
80
82
|
], Web2UserDoc.prototype, "google", void 0);
|
|
81
83
|
__decorate([
|
|
82
|
-
(0, swagger_1.
|
|
84
|
+
(0, swagger_1.ApiProperty)({
|
|
83
85
|
type: () => web2user_account_1.Web2UserAccount,
|
|
84
86
|
description: "User's Apple account information",
|
|
87
|
+
required: false,
|
|
85
88
|
}),
|
|
86
89
|
(0, class_validator_1.IsOptional)(),
|
|
87
90
|
(0, class_transformer_1.Type)(() => web2user_account_1.Web2UserAccount),
|
|
@@ -93,7 +96,7 @@ __decorate([
|
|
|
93
96
|
__metadata("design:type", String)
|
|
94
97
|
], Web2UserDoc.prototype, "pk", void 0);
|
|
95
98
|
__decorate([
|
|
96
|
-
(0, swagger_1.
|
|
99
|
+
(0, swagger_1.ApiProperty)({ description: 'Timestamp of the last update', required: false }),
|
|
97
100
|
(0, class_validator_1.IsOptional)(),
|
|
98
101
|
(0, class_validator_1.IsNumber)(),
|
|
99
102
|
__metadata("design:type", Number)
|
|
@@ -26,6 +26,6 @@ export declare class BoberBattleUserDto extends BoberBattleLeaderboardDto {
|
|
|
26
26
|
WinRate: number;
|
|
27
27
|
constructor(data: Partial<BoberBattleUserDto>);
|
|
28
28
|
}
|
|
29
|
-
export declare class BoberBattleUserDtoHydrated extends
|
|
29
|
+
export declare class BoberBattleUserDtoHydrated extends BoberBattleUserDto {
|
|
30
30
|
wallet: Wallet;
|
|
31
31
|
}
|
|
@@ -14,6 +14,6 @@ class BoberBattleUserDto extends BoberBattleLeaderboardDto {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
exports.BoberBattleUserDto = BoberBattleUserDto;
|
|
17
|
-
class BoberBattleUserDtoHydrated extends
|
|
17
|
+
class BoberBattleUserDtoHydrated extends BoberBattleUserDto {
|
|
18
18
|
}
|
|
19
19
|
exports.BoberBattleUserDtoHydrated = BoberBattleUserDtoHydrated;
|
|
@@ -17,10 +17,11 @@ class EditUserCreatorProfileDto {
|
|
|
17
17
|
}
|
|
18
18
|
exports.EditUserCreatorProfileDto = EditUserCreatorProfileDto;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, swagger_1.
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
21
|
description: 'User description',
|
|
22
22
|
maxLength: 300,
|
|
23
23
|
example: 'I am a creator',
|
|
24
|
+
required: false,
|
|
24
25
|
}),
|
|
25
26
|
(0, class_validator_1.IsString)(),
|
|
26
27
|
(0, class_validator_1.Length)(1, 300),
|
|
@@ -28,16 +29,20 @@ __decorate([
|
|
|
28
29
|
__metadata("design:type", String)
|
|
29
30
|
], EditUserCreatorProfileDto.prototype, "description", void 0);
|
|
30
31
|
__decorate([
|
|
31
|
-
(0, swagger_1.
|
|
32
|
-
|
|
32
|
+
(0, swagger_1.ApiProperty)({
|
|
33
|
+
description: 'Social media profiles',
|
|
34
|
+
required: false,
|
|
35
|
+
}),
|
|
36
|
+
(0, class_validator_1.IsObject)({ each: true }),
|
|
33
37
|
(0, class_validator_1.IsOptional)(),
|
|
34
38
|
__metadata("design:type", socials_1.SocialsDto)
|
|
35
39
|
], EditUserCreatorProfileDto.prototype, "socials", void 0);
|
|
36
40
|
__decorate([
|
|
37
|
-
(0, swagger_1.
|
|
41
|
+
(0, swagger_1.ApiProperty)({
|
|
38
42
|
description: 'Creator name',
|
|
39
43
|
maxLength: 30,
|
|
40
44
|
example: 'Creator Name',
|
|
45
|
+
required: false,
|
|
41
46
|
}),
|
|
42
47
|
(0, class_validator_1.IsString)(),
|
|
43
48
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -17,10 +17,11 @@ class EditUserProfileDto {
|
|
|
17
17
|
}
|
|
18
18
|
exports.EditUserProfileDto = EditUserProfileDto;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, swagger_1.
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
21
|
description: 'User description',
|
|
22
22
|
maxLength: 300,
|
|
23
23
|
example: 'I am a user',
|
|
24
|
+
required: false,
|
|
24
25
|
}),
|
|
25
26
|
(0, class_validator_1.IsString)(),
|
|
26
27
|
(0, class_validator_1.Length)(1, 300),
|
|
@@ -28,16 +29,17 @@ __decorate([
|
|
|
28
29
|
__metadata("design:type", String)
|
|
29
30
|
], EditUserProfileDto.prototype, "description", void 0);
|
|
30
31
|
__decorate([
|
|
31
|
-
(0, swagger_1.
|
|
32
|
+
(0, swagger_1.ApiProperty)({
|
|
32
33
|
description: 'Profile picture URL',
|
|
33
34
|
example: 'https://media.xoxno.com/example-01',
|
|
35
|
+
required: false,
|
|
34
36
|
}),
|
|
35
37
|
(0, class_validator_1.IsString)(),
|
|
36
38
|
(0, class_validator_1.IsOptional)(),
|
|
37
39
|
__metadata("design:type", String)
|
|
38
40
|
], EditUserProfileDto.prototype, "profile", void 0);
|
|
39
41
|
__decorate([
|
|
40
|
-
(0, swagger_1.
|
|
42
|
+
(0, swagger_1.ApiProperty)({ description: 'Social media profiles', required: false }),
|
|
41
43
|
(0, class_validator_1.IsObject)(),
|
|
42
44
|
(0, class_validator_1.IsOptional)(),
|
|
43
45
|
__metadata("design:type", socials_1.SocialsDto)
|
|
@@ -24,9 +24,10 @@ __decorate([
|
|
|
24
24
|
__metadata("design:type", Boolean)
|
|
25
25
|
], SetEmailDto.prototype, "enabled", void 0);
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, swagger_1.
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
28
|
description: 'The email address to be set',
|
|
29
29
|
example: 'example@example.com',
|
|
30
|
+
required: false,
|
|
30
31
|
}),
|
|
31
32
|
(0, class_validator_1.IsOptional)(),
|
|
32
33
|
(0, class_validator_1.IsEmail)(),
|
|
@@ -24,9 +24,10 @@ __decorate([
|
|
|
24
24
|
__metadata("design:type", Boolean)
|
|
25
25
|
], SetPhoneDto.prototype, "enabled", void 0);
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, swagger_1.
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
28
|
description: 'The phone number to be set',
|
|
29
29
|
example: '+1234567890',
|
|
30
|
+
required: false,
|
|
30
31
|
}),
|
|
31
32
|
(0, class_validator_1.IsOptional)(),
|
|
32
33
|
(0, class_validator_1.IsPhoneNumber)(),
|