@xoxno/types 1.0.15 → 1.0.17

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.
@@ -38,7 +38,7 @@ export declare class NftDoc {
38
38
  royalties: number;
39
39
  url: string;
40
40
  uris?: string[];
41
- creator?: string;
41
+ creator?: string | OwnerDto;
42
42
  wasProcessed: boolean;
43
43
  media?: NftMedia;
44
44
  currentOwner?: string | OwnerDto;
@@ -211,11 +211,11 @@ __decorate([
211
211
  ], NftDoc.prototype, "uris", void 0);
212
212
  __decorate([
213
213
  (0, swagger_1.ApiProperty)({
214
- type: String,
214
+ type: owner_dto_1.OwnerDto,
215
215
  required: false,
216
216
  description: 'The creator of the NFT',
217
217
  }),
218
- __metadata("design:type", String)
218
+ __metadata("design:type", Object)
219
219
  ], NftDoc.prototype, "creator", void 0);
220
220
  __decorate([
221
221
  (0, swagger_1.ApiProperty)({
@@ -21,7 +21,7 @@ export interface Wallet {
21
21
  isVerified: boolean;
22
22
  chain?: ActivityChain;
23
23
  }
24
- export declare class Airdrop extends AirdropRawClass {
24
+ export declare class AirdropDto extends AirdropRawClass {
25
25
  wallet: Wallet;
26
26
  }
27
27
  export {};
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Airdrop = void 0;
3
+ exports.AirdropDto = void 0;
4
4
  class AirdropRawClass {
5
5
  }
6
- class Airdrop extends AirdropRawClass {
6
+ class AirdropDto extends AirdropRawClass {
7
7
  }
8
- exports.Airdrop = Airdrop;
8
+ exports.AirdropDto = AirdropDto;
@@ -15,7 +15,7 @@ declare class PriceDataDto {
15
15
  identifier: string;
16
16
  txHash: string;
17
17
  usdValue: number;
18
- nftInfo: Partial<NftDoc>;
18
+ nftInfo?: Partial<NftDoc>;
19
19
  }
20
20
  export declare class UserStatsDto {
21
21
  wallet: WalletDto;
@@ -83,7 +83,11 @@ __decorate([
83
83
  __metadata("design:type", Number)
84
84
  ], PriceDataDto.prototype, "usdValue", void 0);
85
85
  __decorate([
86
- (0, swagger_1.ApiProperty)({ type: (swagger_1.PartialType), description: 'NFT information' }),
86
+ (0, swagger_1.ApiProperty)({
87
+ type: (swagger_1.PartialType),
88
+ description: 'NFT information',
89
+ required: false,
90
+ }),
87
91
  (0, class_validator_1.ValidateNested)(),
88
92
  (0, class_transformer_1.Type)(() => swagger_1.PartialType),
89
93
  __metadata("design:type", Object)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",