@xoxno/types 1.0.182 → 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.
@@ -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 common_enum_1 = require("../../../enums/common.enum");
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 class_validator_1 = require("class-validator");
20
- const class_transformer_1 = require("class-transformer");
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,9 +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 nft_details_doc_1 = require("../token/nft-details.doc");
15
- const staking_data_type_enum_1 = require("../../../enums/staking-data-type.enum");
16
14
  const class_validator_1 = require("class-validator");
15
+ const staking_data_type_enum_1 = require("../../../enums/staking-data-type.enum");
16
+ const nft_details_doc_1 = require("../token/nft-details.doc");
17
17
  class StakingPoolDoc {
18
18
  constructor(props) {
19
19
  this.dataType = staking_data_type_enum_1.StakingDataType.Pool;
@@ -1,5 +1,5 @@
1
1
  import { RoleStatus } from '../../../enums/event-user-role.doc';
2
- import { EventUserRoles, EventUserRolePermission } from '../../../enums/event-user-roles.enum';
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
  }),
@@ -46,6 +46,5 @@ __decorate([
46
46
  }),
47
47
  (0, class_validator_1.IsString)(),
48
48
  (0, class_validator_1.Length)(1, 300),
49
- (0, class_validator_1.IsOptional)(),
50
49
  __metadata("design:type", String)
51
50
  ], EditUserCreatorProfileDto.prototype, "name", void 0);
@@ -24,6 +24,5 @@ __decorate([
24
24
  }),
25
25
  (0, class_validator_1.IsNumberString)(),
26
26
  (0, class_validator_1.Length)(6, 6),
27
- (0, class_validator_1.IsOptional)(),
28
27
  __metadata("design:type", String)
29
28
  ], VerifyEmailDto.prototype, "verificationCode", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.182",
3
+ "version": "1.0.183",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {