@xoxno/types 1.0.125 → 1.0.126

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/index.d.ts CHANGED
@@ -197,7 +197,6 @@ export * from './requests/nft-data/sign-mintdto';
197
197
  export * from './requests/nft-data/sign-withdraw.dto';
198
198
  export * from './requests/user-data/creator-profile.dto';
199
199
  export * from './requests/user-data/edit-creator-profile.dto';
200
- export * from './requests/user-data/edit-user-profile.dto';
201
200
  export * from './requests/user-data/follow-collection.dto';
202
201
  export * from './requests/user-data/follow-user.dto';
203
202
  export * from './requests/user-data/is-favorite';
package/dist/index.js CHANGED
@@ -274,7 +274,6 @@ __exportStar(require("./requests/nft-data/sign-mintdto"), exports);
274
274
  __exportStar(require("./requests/nft-data/sign-withdraw.dto"), exports);
275
275
  __exportStar(require("./requests/user-data/creator-profile.dto"), exports);
276
276
  __exportStar(require("./requests/user-data/edit-creator-profile.dto"), exports);
277
- __exportStar(require("./requests/user-data/edit-user-profile.dto"), exports);
278
277
  __exportStar(require("./requests/user-data/follow-collection.dto"), exports);
279
278
  __exportStar(require("./requests/user-data/follow-user.dto"), exports);
280
279
  __exportStar(require("./requests/user-data/is-favorite"), exports);
@@ -10,9 +10,9 @@ declare class UserSettingsDto {
10
10
  export declare class UserProfileDto extends UserProfileDoc {
11
11
  userSettings: UserSettingsDto;
12
12
  }
13
- declare type UserUpdateDTO_base = Pick<UserProfileDto, "description" | "profile" | "socials" | "isBoberBattleUser">;
13
+ declare type UserUpdateDTO_base = Partial<Pick<UserProfileDoc, "description" | "profile" | "socials" | "isBoberBattleUser">>;
14
14
  export declare type UserUpdateDTO = UserUpdateDTO_base ;
15
- declare const UserUpdateDTONest_base: import("@nestjs/common").Type<Pick<UserProfileDto, "description" | "profile" | "socials" | "isBoberBattleUser">>;
15
+ declare const UserUpdateDTONest_base: import("@nestjs/common").Type<Partial<Pick<UserProfileDoc, "description" | "profile" | "socials" | "isBoberBattleUser">>>;
16
16
  export declare class UserUpdateDTONest extends UserUpdateDTONest_base {
17
17
  }
18
18
  export {};
@@ -46,12 +46,12 @@ __decorate([
46
46
  (0, swagger_1.ApiProperty)({ type: UserSettingsDto, required: false }),
47
47
  __metadata("design:type", UserSettingsDto)
48
48
  ], UserProfileDto.prototype, "userSettings", void 0);
49
- class UserUpdateDTO extends (0, swagger_1.PickType)(UserProfileDto, [
49
+ class UserUpdateDTO extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(user_profile_doc_1.UserProfileDoc, [
50
50
  'socials',
51
51
  'description',
52
52
  'profile',
53
53
  'isBoberBattleUser',
54
- ]) {
54
+ ])) {
55
55
  }
56
56
  exports.UserUpdateDTO = UserUpdateDTO;
57
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.125",
3
+ "version": "1.0.126",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +0,0 @@
1
- import { SocialsDto } from '../../common/socials';
2
- export declare class EditUserProfileDto {
3
- description?: string;
4
- profile?: string;
5
- socials?: SocialsDto;
6
- }
@@ -1,46 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EditUserProfileDto = void 0;
13
- const swagger_1 = require("@nestjs/swagger");
14
- const class_validator_1 = require("class-validator");
15
- const socials_1 = require("../../common/socials");
16
- class EditUserProfileDto {
17
- }
18
- exports.EditUserProfileDto = EditUserProfileDto;
19
- __decorate([
20
- (0, swagger_1.ApiProperty)({
21
- description: 'User description',
22
- maxLength: 300,
23
- example: 'I am a user',
24
- required: false,
25
- }),
26
- (0, class_validator_1.IsString)(),
27
- (0, class_validator_1.Length)(1, 300),
28
- (0, class_validator_1.IsOptional)(),
29
- __metadata("design:type", String)
30
- ], EditUserProfileDto.prototype, "description", void 0);
31
- __decorate([
32
- (0, swagger_1.ApiProperty)({
33
- description: 'Profile picture URL',
34
- example: 'https://media.xoxno.com/example-01',
35
- required: false,
36
- }),
37
- (0, class_validator_1.IsString)(),
38
- (0, class_validator_1.IsOptional)(),
39
- __metadata("design:type", String)
40
- ], EditUserProfileDto.prototype, "profile", void 0);
41
- __decorate([
42
- (0, swagger_1.ApiProperty)({ description: 'Social media profiles', required: false }),
43
- (0, class_validator_1.IsObject)(),
44
- (0, class_validator_1.IsOptional)(),
45
- __metadata("design:type", socials_1.SocialsDto)
46
- ], EditUserProfileDto.prototype, "socials", void 0);