@xoxno/types 1.0.230 → 1.0.232

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.
@@ -401,6 +401,7 @@ __decorate([
401
401
  required: false,
402
402
  }),
403
403
  (0, class_validator_1.IsString)(),
404
+ (0, class_validator_1.IsOptional)(),
404
405
  __metadata("design:type", String)
405
406
  ], StakingSummary.prototype, "description", void 0);
406
407
  __decorate([
@@ -12,7 +12,7 @@ export declare class UserProfileDoc {
12
12
  joinedDate: number;
13
13
  profile: string;
14
14
  banner: string;
15
- description: string;
15
+ description?: string;
16
16
  herotag: string;
17
17
  isCreator: boolean;
18
18
  isPoolOwner: boolean;
@@ -28,7 +28,6 @@ class UserProfileDoc {
28
28
  this.joinedDate = Math.floor(Date.now() / 1000);
29
29
  this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
30
30
  this.banner = 'https://media.xoxno.com/utils/defaultBanner.webp';
31
- this.description = '';
32
31
  this.herotag = '';
33
32
  this.isCreator = false;
34
33
  this.isPoolOwner = false;
@@ -107,8 +106,10 @@ __decorate([
107
106
  (0, swagger_1.ApiProperty)({
108
107
  example: 'NFT collector and trader',
109
108
  description: 'User description',
109
+ required: false,
110
110
  }),
111
111
  (0, class_validator_1.IsString)(),
112
+ (0, class_validator_1.IsOptional)(),
112
113
  __metadata("design:type", String)
113
114
  ], UserProfileDoc.prototype, "description", void 0);
114
115
  __decorate([
@@ -2,9 +2,3 @@ import { CreatorProfileDoc } from '../../cosmos-db/documents/user/user-creator-p
2
2
  export declare class CreatorProfileDto extends CreatorProfileDoc {
3
3
  followCount: number;
4
4
  }
5
- declare type CreatorUpdateProfileDTO_base = Pick<CreatorProfileDto, "description" | "profile" | "socials">;
6
- export declare type CreatorUpdateProfileDTO = CreatorUpdateProfileDTO_base ;
7
- declare const CreatorUpdateProfileDTONest_base: import("@nestjs/common").Type<Pick<CreatorProfileDto, "description" | "profile" | "socials">>;
8
- export declare class CreatorUpdateProfileDTONest extends CreatorUpdateProfileDTONest_base {
9
- }
10
- export {};
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreatorUpdateProfileDTO = exports.CreatorProfileDto = void 0;
12
+ exports.CreatorProfileDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const user_creator_profile_doc_1 = require("../../cosmos-db/documents/user/user-creator-profile.doc");
15
15
  class CreatorProfileDto extends user_creator_profile_doc_1.CreatorProfileDoc {
@@ -19,12 +19,3 @@ __decorate([
19
19
  (0, swagger_1.ApiProperty)({ example: 0 }),
20
20
  __metadata("design:type", Number)
21
21
  ], CreatorProfileDto.prototype, "followCount", void 0);
22
- class CreatorUpdateProfileDTO extends (0, swagger_1.PickType)(CreatorProfileDto, [
23
- 'socials',
24
- 'description',
25
- 'profile',
26
- ]) {
27
- }
28
- exports.CreatorUpdateProfileDTO = CreatorUpdateProfileDTO;
29
-
30
- exports.CreatorUpdateProfileDTONest = CreatorUpdateProfileDTO;
@@ -10,9 +10,9 @@ declare class UserSettingsDto {
10
10
  export declare class UserProfileDto extends UserProfileDoc {
11
11
  userSettings: UserSettingsDto;
12
12
  }
13
- declare type UserProfileEditDto_base = Partial<Pick<UserProfileDoc, "description" | "profile" | "socials" | "isBoberBattleUser">>;
13
+ declare type UserProfileEditDto_base = Partial<Pick<UserProfileDoc, "description" | "socials" | "isBoberBattleUser">>;
14
14
  export declare type UserProfileEditDto = UserProfileEditDto_base ;
15
- declare const UserProfileEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<UserProfileDoc, "description" | "profile" | "socials" | "isBoberBattleUser">>>;
15
+ declare const UserProfileEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<UserProfileDoc, "description" | "socials" | "isBoberBattleUser">>>;
16
16
  export declare class UserProfileEditDtoNest extends UserProfileEditDtoNest_base {
17
17
  }
18
18
  export {};
@@ -49,7 +49,6 @@ __decorate([
49
49
  class UserProfileEditDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(user_profile_doc_1.UserProfileDoc, [
50
50
  'socials',
51
51
  'description',
52
- 'profile',
53
52
  'isBoberBattleUser',
54
53
  ])) {
55
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.230",
3
+ "version": "1.0.232",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {