@xoxno/types 1.0.181 → 1.0.183
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/collection/profile.d.ts +2 -2
- package/dist/cosmos-db/documents/collection/profile.js +4 -7
- package/dist/cosmos-db/documents/staking/staking-pool-doc.d.ts +1 -1
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +4 -1
- package/dist/cosmos-db/documents/ticketing/event-user-role.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +0 -1
- package/dist/cosmos-db/documents/user/user-profile.doc.js +2 -3
- package/dist/cosmos-db/documents/user/user-settings.doc.js +0 -5
- package/dist/entities/staking-data/staking-summary.dto.d.ts +4 -4
- package/dist/entities/staking-data/staking-summary.dto.js +4 -7
- package/dist/requests/user-data/edit-creator-profile.dto.js +0 -1
- package/dist/requests/user-data/verify-email.dto.js +0 -1
- 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
|
|
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
|
|
20
|
-
const
|
|
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,8 +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
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
15
|
const staking_data_type_enum_1 = require("../../../enums/staking-data-type.enum");
|
|
16
|
+
const nft_details_doc_1 = require("../token/nft-details.doc");
|
|
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
1
|
import { RoleStatus } from '../../../enums/event-user-role.doc';
|
|
2
|
-
import {
|
|
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;
|
|
@@ -97,7 +97,6 @@ __decorate([
|
|
|
97
97
|
}),
|
|
98
98
|
(0, class_validator_1.IsInt)(),
|
|
99
99
|
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
100
|
-
(0, class_validator_1.IsOptional)(),
|
|
101
100
|
__metadata("design:type", Number)
|
|
102
101
|
], EventUserRoleDoc.prototype, "endTime", void 0);
|
|
103
102
|
__decorate([
|
|
@@ -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;
|
|
@@ -67,7 +67,6 @@ __decorate([
|
|
|
67
67
|
(0, class_validator_1.ValidateNested)(),
|
|
68
68
|
(0, class_transformer_1.Type)(() => socials_1.SocialsDto),
|
|
69
69
|
(0, class_validator_1.IsObject)(),
|
|
70
|
-
(0, class_validator_1.IsOptional)(),
|
|
71
70
|
__metadata("design:type", socials_1.SocialsDto)
|
|
72
71
|
], UserProfileDoc.prototype, "socials", void 0);
|
|
73
72
|
__decorate([
|
|
@@ -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
|
}),
|
|
@@ -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;
|