@xoxno/types 1.0.180 → 1.0.182
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/socials.js +7 -0
- package/dist/cosmos-db/documents/collection/profile.js +1 -0
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +3 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.js +1 -5
- package/dist/cosmos-db/documents/ticketing/event-question.doc.js +0 -1
- package/dist/cosmos-db/documents/user/user-profile.doc.js +10 -1
- package/dist/entities/auth/login-request.dto.js +0 -4
- package/dist/entities/staking-data/staking-summary.dto.d.ts +4 -4
- package/dist/entities/staking-data/staking-summary.dto.js +4 -7
- package/package.json +1 -1
package/dist/common/socials.js
CHANGED
|
@@ -21,6 +21,7 @@ exports.SocialsDto = SocialsDto;
|
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, decorators_1.ApiProperty)({ example: 'https://twitter.com/example', required: false }),
|
|
23
23
|
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
25
|
__metadata("design:type", String)
|
|
25
26
|
], SocialsDto.prototype, "twitter", void 0);
|
|
26
27
|
__decorate([
|
|
@@ -29,16 +30,19 @@ __decorate([
|
|
|
29
30
|
required: false,
|
|
30
31
|
}),
|
|
31
32
|
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
34
|
__metadata("design:type", String)
|
|
33
35
|
], SocialsDto.prototype, "instagram", void 0);
|
|
34
36
|
__decorate([
|
|
35
37
|
(0, decorators_1.ApiProperty)({ example: 'https://example.com', required: false }),
|
|
36
38
|
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
40
|
__metadata("design:type", String)
|
|
38
41
|
], SocialsDto.prototype, "website", void 0);
|
|
39
42
|
__decorate([
|
|
40
43
|
(0, decorators_1.ApiProperty)({ example: 'https://t.me/example', required: false }),
|
|
41
44
|
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
46
|
__metadata("design:type", String)
|
|
43
47
|
], SocialsDto.prototype, "telegram", void 0);
|
|
44
48
|
__decorate([
|
|
@@ -47,15 +51,18 @@ __decorate([
|
|
|
47
51
|
required: false,
|
|
48
52
|
}),
|
|
49
53
|
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
55
|
__metadata("design:type", String)
|
|
51
56
|
], SocialsDto.prototype, "discord", void 0);
|
|
52
57
|
__decorate([
|
|
53
58
|
(0, decorators_1.ApiProperty)({ example: '', required: false }),
|
|
54
59
|
(0, class_validator_1.IsString)(),
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
61
|
__metadata("design:type", String)
|
|
56
62
|
], SocialsDto.prototype, "facebook", void 0);
|
|
57
63
|
__decorate([
|
|
58
64
|
(0, decorators_1.ApiProperty)({ example: '', required: false }),
|
|
59
65
|
(0, class_validator_1.IsString)(),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
67
|
__metadata("design:type", String)
|
|
61
68
|
], SocialsDto.prototype, "youtube", void 0);
|
|
@@ -59,6 +59,7 @@ class CollectionProfileDoc {
|
|
|
59
59
|
this.originalCollection = '';
|
|
60
60
|
this.isVisible = true;
|
|
61
61
|
this.isVerified = false;
|
|
62
|
+
this.socials = new socials_1.SocialsDto();
|
|
62
63
|
this.statistics = new statistics_1.StatisticsDto({
|
|
63
64
|
other: new statistics_1.StatisticsOtherDto({
|
|
64
65
|
followCount: 0,
|
|
@@ -13,6 +13,7 @@ exports.StakingUserPoolNfts = exports.StakingSummary = exports.XoxnoStakingIssui
|
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const nft_details_doc_1 = require("../token/nft-details.doc");
|
|
15
15
|
const staking_data_type_enum_1 = require("../../../enums/staking-data-type.enum");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
16
17
|
class StakingPoolDoc {
|
|
17
18
|
constructor(props) {
|
|
18
19
|
this.dataType = staking_data_type_enum_1.StakingDataType.Pool;
|
|
@@ -115,6 +116,7 @@ __decorate([
|
|
|
115
116
|
], StakingSummary.prototype, "poolId", void 0);
|
|
116
117
|
__decorate([
|
|
117
118
|
(0, swagger_1.ApiProperty)({ description: 'Pool name', example: 'SRB - MiceCity' }),
|
|
119
|
+
(0, class_validator_1.IsString)(),
|
|
118
120
|
__metadata("design:type", String)
|
|
119
121
|
], StakingSummary.prototype, "name", void 0);
|
|
120
122
|
__decorate([
|
|
@@ -123,6 +125,7 @@ __decorate([
|
|
|
123
125
|
example: 'The largest staking pool',
|
|
124
126
|
required: false,
|
|
125
127
|
}),
|
|
128
|
+
(0, class_validator_1.IsString)(),
|
|
126
129
|
__metadata("design:type", String)
|
|
127
130
|
], StakingSummary.prototype, "description", void 0);
|
|
128
131
|
__decorate([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventQuestionAnswerDto } from './event-question-answer.doc';
|
|
2
1
|
import { CallbackUrl } from '../external-payment/external-payment-request';
|
|
2
|
+
import { EventQuestionAnswerDto } from './event-question-answer.doc';
|
|
3
3
|
export declare class TicketSelectionDto {
|
|
4
4
|
ticketProfileId: string;
|
|
5
5
|
ticketStageId: string;
|
|
@@ -13,8 +13,8 @@ exports.EventGuestRegistrationDto = exports.TicketSelectionDto = void 0;
|
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
const event_question_answer_doc_1 = require("./event-question-answer.doc");
|
|
17
16
|
const external_payment_request_1 = require("../external-payment/external-payment-request");
|
|
17
|
+
const event_question_answer_doc_1 = require("./event-question-answer.doc");
|
|
18
18
|
class TicketSelectionDto {
|
|
19
19
|
}
|
|
20
20
|
exports.TicketSelectionDto = TicketSelectionDto;
|
|
@@ -24,7 +24,6 @@ __decorate([
|
|
|
24
24
|
type: String,
|
|
25
25
|
}),
|
|
26
26
|
(0, class_validator_1.IsUUID)(),
|
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
28
27
|
__metadata("design:type", String)
|
|
29
28
|
], TicketSelectionDto.prototype, "ticketProfileId", void 0);
|
|
30
29
|
__decorate([
|
|
@@ -33,7 +32,6 @@ __decorate([
|
|
|
33
32
|
type: String,
|
|
34
33
|
}),
|
|
35
34
|
(0, class_validator_1.IsUUID)(),
|
|
36
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
37
35
|
__metadata("design:type", String)
|
|
38
36
|
], TicketSelectionDto.prototype, "ticketStageId", void 0);
|
|
39
37
|
__decorate([
|
|
@@ -42,7 +40,6 @@ __decorate([
|
|
|
42
40
|
minimum: 1,
|
|
43
41
|
type: 'integer',
|
|
44
42
|
}),
|
|
45
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
46
43
|
(0, class_validator_1.IsInt)(),
|
|
47
44
|
__metadata("design:type", Number)
|
|
48
45
|
], TicketSelectionDto.prototype, "quantity", void 0);
|
|
@@ -107,7 +104,6 @@ __decorate([
|
|
|
107
104
|
type: String,
|
|
108
105
|
required: false,
|
|
109
106
|
}),
|
|
110
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
111
107
|
(0, class_validator_1.IsString)(),
|
|
112
108
|
(0, class_validator_1.IsOptional)(),
|
|
113
109
|
__metadata("design:type", String)
|
|
@@ -44,7 +44,6 @@ __decorate([
|
|
|
44
44
|
], EventQuestionDoc.prototype, "eventId", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, swagger_1.ApiProperty)({ description: 'The actual question text.' }),
|
|
47
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
48
47
|
(0, class_validator_1.IsString)(),
|
|
49
48
|
__metadata("design:type", String)
|
|
50
49
|
], EventQuestionDoc.prototype, "title", void 0);
|
|
@@ -15,6 +15,8 @@ const socials_1 = require("../../../common/socials");
|
|
|
15
15
|
const common_enum_1 = require("../../../enums/common.enum");
|
|
16
16
|
const user_data_type_enum_1 = require("../../../enums/user-data-type.enum");
|
|
17
17
|
const user_deposit_1 = require("./user-deposit");
|
|
18
|
+
const class_transformer_1 = require("class-transformer");
|
|
19
|
+
const class_validator_1 = require("class-validator");
|
|
18
20
|
class UserProfileDoc {
|
|
19
21
|
constructor(props) {
|
|
20
22
|
this.dataType = user_data_type_enum_1.UserDataType.UserProfile;
|
|
@@ -58,7 +60,14 @@ __decorate([
|
|
|
58
60
|
__metadata("design:type", Boolean)
|
|
59
61
|
], UserProfileDoc.prototype, "isVerified", void 0);
|
|
60
62
|
__decorate([
|
|
61
|
-
(0, swagger_1.ApiProperty)({
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
description: 'Social media links for the user',
|
|
65
|
+
type: () => socials_1.SocialsDto,
|
|
66
|
+
}),
|
|
67
|
+
(0, class_validator_1.ValidateNested)(),
|
|
68
|
+
(0, class_transformer_1.Type)(() => socials_1.SocialsDto),
|
|
69
|
+
(0, class_validator_1.IsObject)(),
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
71
|
__metadata("design:type", socials_1.SocialsDto)
|
|
63
72
|
], UserProfileDoc.prototype, "socials", void 0);
|
|
64
73
|
__decorate([
|
|
@@ -22,14 +22,12 @@ exports.LoginRequestDto = LoginRequestDto;
|
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, swagger_1.ApiProperty)({ description: 'The address of the user', required: false }),
|
|
24
24
|
(0, class_validator_1.IsString)(),
|
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
26
25
|
(0, class_validator_1.IsOptional)(),
|
|
27
26
|
__metadata("design:type", String)
|
|
28
27
|
], LoginRequestDto.prototype, "address", void 0);
|
|
29
28
|
__decorate([
|
|
30
29
|
(0, swagger_1.ApiProperty)({ description: 'The login token' }),
|
|
31
30
|
(0, class_validator_1.IsString)(),
|
|
32
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
33
31
|
__metadata("design:type", String)
|
|
34
32
|
], LoginRequestDto.prototype, "loginToken", void 0);
|
|
35
33
|
__decorate([
|
|
@@ -38,7 +36,6 @@ __decorate([
|
|
|
38
36
|
required: false,
|
|
39
37
|
}),
|
|
40
38
|
(0, class_validator_1.IsString)(),
|
|
41
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
42
39
|
(0, class_validator_1.IsOptional)(),
|
|
43
40
|
__metadata("design:type", String)
|
|
44
41
|
], LoginRequestDto.prototype, "signature", void 0);
|
|
@@ -56,7 +53,6 @@ __decorate([
|
|
|
56
53
|
], LoginRequestDto.prototype, "data", void 0);
|
|
57
54
|
__decorate([
|
|
58
55
|
(0, class_validator_1.IsEnum)(login_request_service_enum_1.LoginRequestService),
|
|
59
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
60
56
|
(0, class_validator_1.IsOptional)(),
|
|
61
57
|
__metadata("design:type", String)
|
|
62
58
|
], LoginRequestDto.prototype, "service", void 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StakingSummary } from '../../cosmos-db/documents/staking/staking-pool-doc';
|
|
2
|
-
declare type
|
|
3
|
-
export declare type
|
|
4
|
-
declare const
|
|
5
|
-
export declare class
|
|
2
|
+
declare type StakingEditDto_base = Partial<Pick<StakingSummary, "description" | "name">>;
|
|
3
|
+
export declare type StakingEditDto = StakingEditDto_base ;
|
|
4
|
+
declare const StakingEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<StakingSummary, "description" | "name">>>;
|
|
5
|
+
export declare class StakingEditDtoNest extends StakingEditDtoNest_base {
|
|
6
6
|
}
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StakingEditDto = void 0;
|
|
4
4
|
// file: dtos/staking-summary.dto.ts
|
|
5
5
|
const swagger_1 = require("@nestjs/swagger");
|
|
6
6
|
const staking_pool_doc_1 = require("../../cosmos-db/documents/staking/staking-pool-doc");
|
|
@@ -102,11 +102,8 @@ const staking_pool_doc_1 = require("../../cosmos-db/documents/staking/staking-po
|
|
|
102
102
|
// @ApiProperty({ description: 'Percentage filled', example: 36.84375 })
|
|
103
103
|
// percentageFilled: number;
|
|
104
104
|
// }
|
|
105
|
-
class
|
|
106
|
-
'name',
|
|
107
|
-
'description',
|
|
108
|
-
]) {
|
|
105
|
+
class StakingEditDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(staking_pool_doc_1.StakingSummary, ['name', 'description'])) {
|
|
109
106
|
}
|
|
110
|
-
exports.
|
|
107
|
+
exports.StakingEditDto = StakingEditDto;
|
|
111
108
|
|
|
112
|
-
exports.
|
|
109
|
+
exports.StakingEditDtoNest = StakingEditDto;
|