@xoxno/types 1.0.180 → 1.0.181

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.
@@ -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,
@@ -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)({ type: socials_1.SocialsDto, description: 'User social media links' }),
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.180",
3
+ "version": "1.0.181",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {