@xoxno/types 1.0.181 → 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.
|
@@ -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,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;
|