@xoxno/types 1.0.164 → 1.0.166

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.
@@ -49,9 +49,9 @@ export declare class CollectionProfileDoc {
49
49
  _ts?: number;
50
50
  constructor(props?: Partial<CollectionProfileDoc>);
51
51
  }
52
- declare type CollectionProfileEditDto_base = Partial<Pick<CollectionProfileDoc, "description" | "name">>;
52
+ declare type CollectionProfileEditDto_base = Partial<Pick<CollectionProfileDoc, "description" | "name" | "socials">>;
53
53
  export declare type CollectionProfileEditDto = CollectionProfileEditDto_base ;
54
- declare const CollectionProfileEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<CollectionProfileDoc, "description" | "name">>>;
54
+ declare const CollectionProfileEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<CollectionProfileDoc, "description" | "name" | "socials">>>;
55
55
  export declare class CollectionProfileEditDtoNest extends CollectionProfileEditDtoNest_base {
56
56
  }
57
57
  export {};
@@ -16,6 +16,8 @@ const socials_1 = require("../../../common/socials");
16
16
  const statistics_1 = require("../../../common/statistics");
17
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
21
  class Rule {
20
22
  }
21
23
  exports.Rule = Rule;
@@ -119,6 +121,8 @@ __decorate([
119
121
  description: 'Name of the collection',
120
122
  example: 'My NFT Collection',
121
123
  }),
124
+ (0, class_validator_1.IsString)(),
125
+ (0, class_validator_1.Length)(3, 30),
122
126
  __metadata("design:type", String)
123
127
  ], CollectionProfileDoc.prototype, "name", void 0);
124
128
  __decorate([
@@ -126,6 +130,8 @@ __decorate([
126
130
  description: 'Description of the collection',
127
131
  example: 'A unique collection of digital artwork',
128
132
  }),
133
+ (0, class_validator_1.IsString)(),
134
+ (0, class_validator_1.Length)(3, 300),
129
135
  __metadata("design:type", String)
130
136
  ], CollectionProfileDoc.prototype, "description", void 0);
131
137
  __decorate([
@@ -147,6 +153,8 @@ __decorate([
147
153
  description: 'Social media links for the collection',
148
154
  type: socials_1.SocialsDto,
149
155
  }),
156
+ (0, class_validator_1.ValidateNested)(),
157
+ (0, class_transformer_1.Type)(() => socials_1.SocialsDto),
150
158
  __metadata("design:type", socials_1.SocialsDto)
151
159
  ], CollectionProfileDoc.prototype, "socials", void 0);
152
160
  __decorate([
@@ -332,7 +340,7 @@ __decorate([
332
340
  }),
333
341
  __metadata("design:type", Number)
334
342
  ], CollectionProfileDoc.prototype, "_ts", void 0);
335
- class CollectionProfileEditDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(CollectionProfileDoc, ['description', 'name'])) {
343
+ class CollectionProfileEditDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(CollectionProfileDoc, ['description', 'name', 'socials'])) {
336
344
  }
337
345
  exports.CollectionProfileEditDto = CollectionProfileEditDto;
338
346
 
package/dist/index.d.ts CHANGED
@@ -170,7 +170,6 @@ export * from './requests/collection/collection-pinned-status.dto';
170
170
  export * from './requests/collection/collection-profile.filter';
171
171
  export * from './requests/collection/collection-stats.filter';
172
172
  export * from './requests/collection/collection-stats';
173
- export * from './requests/collection/collections';
174
173
  export * from './requests/collection/creator-details.dto';
175
174
  export * from './requests/collection/creator-drop-info';
176
175
  export * from './requests/collection/floor';
package/dist/index.js CHANGED
@@ -249,7 +249,6 @@ __exportStar(require("./requests/collection/collection-pinned-status.dto"), expo
249
249
  __exportStar(require("./requests/collection/collection-profile.filter"), exports);
250
250
  __exportStar(require("./requests/collection/collection-stats.filter"), exports);
251
251
  __exportStar(require("./requests/collection/collection-stats"), exports);
252
- __exportStar(require("./requests/collection/collections"), exports);
253
252
  __exportStar(require("./requests/collection/creator-details.dto"), exports);
254
253
  __exportStar(require("./requests/collection/creator-drop-info"), exports);
255
254
  __exportStar(require("./requests/collection/floor"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.164",
3
+ "version": "1.0.166",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {
@@ -1,7 +0,0 @@
1
- import { CollectionProfileDoc } from '../../cosmos-db/documents/collection/profile';
2
- declare type CollectionProfileUpdateDto_base = Pick<CollectionProfileDoc, "description" | "profile" | "socials">;
3
- export declare type CollectionProfileUpdateDto = CollectionProfileUpdateDto_base ;
4
- declare const CollectionProfileUpdateDtoNest_base: import("@nestjs/common").Type<Pick<CollectionProfileDoc, "description" | "profile" | "socials">>;
5
- export declare class CollectionProfileUpdateDtoNest extends CollectionProfileUpdateDtoNest_base {
6
- }
7
- export {};
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CollectionProfileUpdateDto = void 0;
4
- const swagger_1 = require("@nestjs/swagger");
5
- const profile_1 = require("../../cosmos-db/documents/collection/profile");
6
- class CollectionProfileUpdateDto extends (0, swagger_1.PickType)(profile_1.CollectionProfileDoc, [
7
- 'socials',
8
- 'description',
9
- 'profile',
10
- ]) {
11
- }
12
- exports.CollectionProfileUpdateDto = CollectionProfileUpdateDto;
13
-
14
- exports.CollectionProfileUpdateDtoNest = CollectionProfileUpdateDto;