@xoxno/types 1.0.93 → 1.0.94

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,9 +1,9 @@
1
1
  import { CollectionProfileDoc } from '../collection/profile';
2
- declare type ShortCollectionInfoDoc_base = Pick<CollectionProfileDoc, "description" | "name" | "profile" | "followCount" | "holdersCount" | "isVisible" | "isVerified" | "chain" | "owner" | "pinnedAtDrops" | "collectionSize">;
2
+ declare type ShortCollectionInfoDoc_base = Pick<CollectionProfileDoc, "description" | "name" | "profile" | "followCount" | "holdersCount" | "isVisible" | "isVerified" | "banner" | "chain" | "owner" | "pinnedAtDrops" | "collectionSize">;
3
3
  export declare type ShortCollectionInfoDoc = ShortCollectionInfoDoc_base & {
4
4
  volume: number;
5
5
  };
6
- declare const ShortCollectionInfoDocNest_base: import("@nestjs/common").Type<Pick<CollectionProfileDoc, "description" | "name" | "profile" | "followCount" | "holdersCount" | "isVisible" | "isVerified" | "chain" | "owner" | "pinnedAtDrops" | "collectionSize">>;
6
+ declare const ShortCollectionInfoDocNest_base: import("@nestjs/common").Type<Pick<CollectionProfileDoc, "description" | "name" | "profile" | "followCount" | "holdersCount" | "isVisible" | "isVerified" | "banner" | "chain" | "owner" | "pinnedAtDrops" | "collectionSize">>;
7
7
  export declare class ShortCollectionInfoDocNest extends ShortCollectionInfoDocNest_base {
8
8
  volume: number;
9
9
  }
@@ -24,6 +24,7 @@ class ShortCollectionInfoDoc extends (0, swagger_1.PickType)(profile_1.Collectio
24
24
  'followCount',
25
25
  'holdersCount',
26
26
  'owner',
27
+ 'banner',
27
28
  ]) {
28
29
  }
29
30
  exports.ShortCollectionInfoDoc = ShortCollectionInfoDoc;
@@ -0,0 +1,7 @@
1
+ import { CollectionProfileDoc } from '../collection/profile';
2
+ declare type ShortNftCollectionInfoDoc_base = Pick<CollectionProfileDoc, "description" | "name" | "profile" | "followCount" | "holdersCount" | "isVisible" | "isVerified" | "banner" | "chain" | "roles" | "customConfig" | "collectionSize">;
3
+ export declare type ShortNftCollectionInfoDoc = ShortNftCollectionInfoDoc_base ;
4
+ declare const ShortNftCollectionInfoDocNest_base: import("@nestjs/common").Type<Pick<CollectionProfileDoc, "description" | "name" | "profile" | "followCount" | "holdersCount" | "isVisible" | "isVerified" | "banner" | "chain" | "roles" | "customConfig" | "collectionSize">>;
5
+ export declare class ShortNftCollectionInfoDocNest extends ShortNftCollectionInfoDocNest_base {
6
+ }
7
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShortNftCollectionInfoDoc = void 0;
4
+ const swagger_1 = require("@nestjs/swagger");
5
+ const profile_1 = require("../collection/profile");
6
+ class ShortNftCollectionInfoDoc extends (0, swagger_1.PickType)(profile_1.CollectionProfileDoc, [
7
+ 'name',
8
+ 'isVerified',
9
+ 'isVisible',
10
+ 'profile',
11
+ 'banner',
12
+ 'collectionSize',
13
+ 'description',
14
+ 'holdersCount',
15
+ 'followCount',
16
+ 'customConfig',
17
+ 'roles',
18
+ 'chain',
19
+ ]) {
20
+ }
21
+ exports.ShortNftCollectionInfoDoc = ShortNftCollectionInfoDoc;
22
+
23
+ exports.ShortNftCollectionInfoDocNest = ShortNftCollectionInfoDoc;
@@ -1,7 +1,7 @@
1
1
  import { OwnerDto } from '../../../common/owner.dto';
2
2
  import { ActivityChain, EsdtTokenSubType, EsdtTokenType } from '../../../enums/common.enum';
3
3
  import { TokenDataType } from '../../../enums/token-data.enum';
4
- import { CollectionProfileDoc } from '../collection/profile';
4
+ import { ShortNftCollectionInfoDoc } from '../short/short-nft-collection-info.doc';
5
5
  import { NftMetadata } from './nft-metadata';
6
6
  import { NftSaleInfo, NftSaleInfoHydrated } from './nft-sale-info';
7
7
  export declare class NFTEventData {
@@ -67,7 +67,7 @@ export declare class NftDocHydrated extends NftDocBase {
67
67
  currentOwner?: OwnerDto;
68
68
  owner?: OwnerDto;
69
69
  saleInfo?: NftSaleInfoHydrated;
70
- collectionInfo: CollectionProfileDoc;
70
+ collectionInfo: ShortNftCollectionInfoDoc;
71
71
  balance?: number;
72
72
  balanceLong?: string;
73
73
  unboundDaysLeft?: number;
@@ -14,7 +14,7 @@ const swagger_1 = require("@nestjs/swagger");
14
14
  const owner_dto_1 = require("../../../common/owner.dto");
15
15
  const common_enum_1 = require("../../../enums/common.enum");
16
16
  const token_data_enum_1 = require("../../../enums/token-data.enum");
17
- const profile_1 = require("../collection/profile");
17
+ const short_nft_collection_info_doc_1 = require("../short/short-nft-collection-info.doc");
18
18
  const nft_metadata_1 = require("./nft-metadata");
19
19
  const nft_sale_info_1 = require("./nft-sale-info");
20
20
  // Sale: Check Last Owner nfts from GuestDoc [1,2,3] -> 0 -> Delete GuestDoc > 0: Edit GuestDoc nftIds [1,2]
@@ -397,10 +397,10 @@ __decorate([
397
397
  ], NftDocHydrated.prototype, "saleInfo", void 0);
398
398
  __decorate([
399
399
  (0, swagger_1.ApiProperty)({
400
- type: profile_1.CollectionProfileDoc,
400
+ type: short_nft_collection_info_doc_1.ShortNftCollectionInfoDoc,
401
401
  description: 'The extra information about the collection of this specific NFT',
402
402
  }),
403
- __metadata("design:type", profile_1.CollectionProfileDoc)
403
+ __metadata("design:type", short_nft_collection_info_doc_1.ShortNftCollectionInfoDoc)
404
404
  ], NftDocHydrated.prototype, "collectionInfo", void 0);
405
405
  __decorate([
406
406
  (0, swagger_1.ApiProperty)({
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export * from './cosmos-db/documents/notification/notification.doc';
45
45
  export * from './cosmos-db/documents/short/short-collection-info.doc';
46
46
  export * from './cosmos-db/documents/short/short-collection.doc';
47
47
  export * from './cosmos-db/documents/short/short-creator.doc';
48
+ export * from './cosmos-db/documents/short/short-nft-collection-info.doc';
48
49
  export * from './cosmos-db/documents/short/short-nft.doc';
49
50
  export * from './cosmos-db/documents/short/short-voucher.doc';
50
51
  export * from './cosmos-db/documents/staking/staking-delegator-doc';
package/dist/index.js CHANGED
@@ -61,6 +61,7 @@ __exportStar(require("./cosmos-db/documents/notification/notification.doc"), exp
61
61
  __exportStar(require("./cosmos-db/documents/short/short-collection-info.doc"), exports);
62
62
  __exportStar(require("./cosmos-db/documents/short/short-collection.doc"), exports);
63
63
  __exportStar(require("./cosmos-db/documents/short/short-creator.doc"), exports);
64
+ __exportStar(require("./cosmos-db/documents/short/short-nft-collection-info.doc"), exports);
64
65
  __exportStar(require("./cosmos-db/documents/short/short-nft.doc"), exports);
65
66
  __exportStar(require("./cosmos-db/documents/short/short-voucher.doc"), exports);
66
67
  __exportStar(require("./cosmos-db/documents/staking/staking-delegator-doc"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.93",
3
+ "version": "1.0.94",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",