@xoxno/types 1.0.6 → 1.0.7

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.
Files changed (28) hide show
  1. package/dist/common/kusto/wallet-stats.js +1 -0
  2. package/dist/cosmos-db/documents/activity/nft-activity-data.d.ts +2 -2
  3. package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.js +1 -1
  4. package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.js +1 -1
  5. package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.js +1 -1
  6. package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.js +1 -1
  7. package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.js +1 -1
  8. package/dist/cosmos-db/documents/token/nft-sale-info.d.ts +2 -2
  9. package/dist/cosmos-db/documents/token/nft-sale-info.js +1 -0
  10. package/dist/entities/xoxno-marketplace-sc/xoxno-auction-type.enum.d.ts +14 -0
  11. package/dist/entities/xoxno-marketplace-sc/xoxno-auction-type.enum.js +19 -0
  12. package/dist/requests/collection/collection-mint-profile.filter.js +1 -1
  13. package/dist/requests/collection/collection-offers.filter.js +1 -1
  14. package/dist/requests/collection/collection-profile.filter.js +1 -1
  15. package/dist/requests/collection/collection-stats.filter.js +1 -1
  16. package/dist/requests/collection/query-activity.d.ts +2 -2
  17. package/dist/requests/collection/query-activity.js +1 -1
  18. package/dist/requests/lending/lending-market-profile.filter.js +1 -1
  19. package/dist/requests/nft-activity-data/nft-activity-data.d.ts +4 -3
  20. package/dist/requests/nft-activity-data/nft-activity.filter.js +3 -3
  21. package/dist/requests/nft-activity-data/user-stats.d.ts +2 -10
  22. package/dist/requests/nft-activity-data/user-stats.js +3 -40
  23. package/dist/requests/nft-data/nft-doc.filter.d.ts +4 -3
  24. package/dist/requests/nft-data/nft-doc.filter.js +3 -3
  25. package/dist/requests/nft-data/nft-offer-doc.filter.js +3 -3
  26. package/dist/requests/nft-data/user-offers.d.ts +2 -16
  27. package/dist/requests/nft-data/user-offers.js +2 -81
  28. package/package.json +1 -1
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WalletTradingStats = void 0;
4
4
  const enums_1 = require("../enums");
5
5
  class WalletTradingStats {
6
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
7
  constructor(data) {
7
8
  this.wallet = data.Address;
8
9
  this.totalVolume = data.TotalVolume;
@@ -1,4 +1,4 @@
1
- import { AuctionTypes } from '../../../common/enums';
1
+ import { XoxnoAuctionTypeString } from '../../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum';
2
2
  import { NftDoc } from '../token/nft-details.doc';
3
3
  export interface NftActivityData {
4
4
  collection: string;
@@ -9,7 +9,7 @@ export interface NftActivityData {
9
9
  scId: number;
10
10
  usdValue: number;
11
11
  egldValue: number;
12
- auctionType?: AuctionTypes;
12
+ auctionType?: XoxnoAuctionTypeString;
13
13
  deadline?: number;
14
14
  originalPayment?: {
15
15
  paymentToken: string;
@@ -60,7 +60,7 @@ class EventGuestFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter
60
60
  ...props?.filters,
61
61
  };
62
62
  // Assign other properties
63
- const { filters, ...otherProps } = props;
63
+ const { filters: _, ...otherProps } = props;
64
64
  Object.assign(this, otherProps);
65
65
  this.setPk();
66
66
  }
@@ -68,7 +68,7 @@ class EventInvitationFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFi
68
68
  ...props?.filters,
69
69
  };
70
70
  // Assign other properties
71
- const { filters, ...otherProps } = props;
71
+ const { filters: _, ...otherProps } = props;
72
72
  Object.assign(this, otherProps);
73
73
  this.setPk();
74
74
  }
@@ -77,7 +77,7 @@ class EventProfileFilter extends cosmos_db_generic_filter_2.CosmosDbGenericFilte
77
77
  ...props?.filters,
78
78
  };
79
79
  // Assign other properties
80
- const { filters, ...otherProps } = props;
80
+ const { filters: _, ...otherProps } = props;
81
81
  Object.assign(this, otherProps);
82
82
  this.applySelectPropertyLogic(props);
83
83
  }
@@ -83,7 +83,7 @@ class EventReferralConfigFilter extends cosmos_db_generic_filter_1.CosmosDbGener
83
83
  ...props?.filters,
84
84
  };
85
85
  // Assign other properties if any
86
- const { filters, ...otherProps } = props;
86
+ const { filters: _, ...otherProps } = props;
87
87
  Object.assign(this, otherProps);
88
88
  this.setPk();
89
89
  }
@@ -129,7 +129,7 @@ class EventReferralFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilt
129
129
  ...props?.filters,
130
130
  };
131
131
  // Assign other properties if any
132
- const { filters, ...otherProps } = props;
132
+ const { filters: _, ...otherProps } = props;
133
133
  Object.assign(this, otherProps);
134
134
  this.setPk();
135
135
  }
@@ -1,5 +1,5 @@
1
1
  import { OwnerDto } from '../../../common/owner.dto';
2
- import { AuctionTypes } from '../../../common/enums';
2
+ import { XoxnoAuctionTypeString } from '../../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum';
3
3
  export declare class NftSaleInfo {
4
4
  auctionId: number;
5
5
  seller: string;
@@ -11,7 +11,7 @@ export declare class NftSaleInfo {
11
11
  deadline: number;
12
12
  paymentToken: string;
13
13
  paymentTokenNonce: number;
14
- auctionType: AuctionTypes;
14
+ auctionType: XoxnoAuctionTypeString;
15
15
  timestamp: number;
16
16
  minBidShort: number;
17
17
  minBidUsdValue?: number;
@@ -13,6 +13,7 @@ exports.NftSaleInfo = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const owner_dto_1 = require("../../../common/owner.dto");
15
15
  const enums_1 = require("../../../common/enums");
16
+ const xoxno_auction_type_enum_1 = require("../../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum");
16
17
  class NftSaleInfo {
17
18
  }
18
19
  exports.NftSaleInfo = NftSaleInfo;
@@ -0,0 +1,14 @@
1
+ export declare enum XoxnoAuctionType {
2
+ None = 0,
3
+ NftBid = 1,
4
+ Nft = 2,
5
+ SftAll = 3,
6
+ SftOnePerPayment = 4
7
+ }
8
+ export declare enum XoxnoAuctionTypeString {
9
+ None = "None",
10
+ NftBid = "NftBid",
11
+ Nft = "Nft",
12
+ SftAll = "SftAll",
13
+ SftOnePerPayment = "SftOnePerPayment"
14
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.XoxnoAuctionTypeString = exports.XoxnoAuctionType = void 0;
4
+ var XoxnoAuctionType;
5
+ (function (XoxnoAuctionType) {
6
+ XoxnoAuctionType[XoxnoAuctionType["None"] = 0] = "None";
7
+ XoxnoAuctionType[XoxnoAuctionType["NftBid"] = 1] = "NftBid";
8
+ XoxnoAuctionType[XoxnoAuctionType["Nft"] = 2] = "Nft";
9
+ XoxnoAuctionType[XoxnoAuctionType["SftAll"] = 3] = "SftAll";
10
+ XoxnoAuctionType[XoxnoAuctionType["SftOnePerPayment"] = 4] = "SftOnePerPayment";
11
+ })(XoxnoAuctionType || (exports.XoxnoAuctionType = XoxnoAuctionType = {}));
12
+ var XoxnoAuctionTypeString;
13
+ (function (XoxnoAuctionTypeString) {
14
+ XoxnoAuctionTypeString["None"] = "None";
15
+ XoxnoAuctionTypeString["NftBid"] = "NftBid";
16
+ XoxnoAuctionTypeString["Nft"] = "Nft";
17
+ XoxnoAuctionTypeString["SftAll"] = "SftAll";
18
+ XoxnoAuctionTypeString["SftOnePerPayment"] = "SftOnePerPayment";
19
+ })(XoxnoAuctionTypeString || (exports.XoxnoAuctionTypeString = XoxnoAuctionTypeString = {}));
@@ -33,7 +33,7 @@ class CollectionMintProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGen
33
33
  ...props?.filters,
34
34
  };
35
35
  // Assign other properties
36
- const { filters, ...otherProps } = props;
36
+ const { filters: _, ...otherProps } = props;
37
37
  Object.assign(this, otherProps);
38
38
  }
39
39
  }
@@ -85,7 +85,7 @@ class CollectionOffersFilter extends cosmos_db_generic_filter_1.CosmosDbGenericF
85
85
  ...props?.filters,
86
86
  };
87
87
  // Assign other properties
88
- const { filters, ...otherProps } = props;
88
+ const { filters: _, ...otherProps } = props;
89
89
  Object.assign(this, otherProps);
90
90
  }
91
91
  }
@@ -21,7 +21,7 @@ class CollectionProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGeneric
21
21
  : props.filters?.chain,
22
22
  };
23
23
  // Assign other properties
24
- const { filters, ...otherProps } = props;
24
+ const { filters: _, ...otherProps } = props;
25
25
  Object.assign(this, otherProps);
26
26
  }
27
27
  }
@@ -55,7 +55,7 @@ class CollectionStatsFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFi
55
55
  : props?.filters?.chain,
56
56
  };
57
57
  // Assign other properties
58
- const { filters, ...otherProps } = props ?? {};
58
+ const { filters: _, ...otherProps } = props ?? {};
59
59
  Object.assign(this, otherProps);
60
60
  this.applySelectPropertyLogic(props);
61
61
  }
@@ -1,7 +1,7 @@
1
1
  import { CollectionInfoDto } from './collection-info.dto';
2
2
  import { NftDoc } from '../../cosmos-db/documents/token/nft-details.doc';
3
3
  import { NftActivityData } from '../../cosmos-db/documents/activity/nft-activity-data';
4
- import { AuctionTypes } from '../../common/enums';
4
+ import { XoxnoAuctionTypeString } from '../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum';
5
5
  declare class FromToDto {
6
6
  address: string;
7
7
  profile: string;
@@ -16,7 +16,7 @@ declare class ActivityDataDto implements NftActivityData {
16
16
  scId: number;
17
17
  usdValue: number;
18
18
  egldValue: number;
19
- auctionType?: AuctionTypes;
19
+ auctionType?: XoxnoAuctionTypeString;
20
20
  deadline?: number;
21
21
  originalPayment?: {
22
22
  paymentToken: string;
@@ -14,7 +14,7 @@ exports.ActivityHistoryDto = void 0;
14
14
  const swagger_1 = require("@nestjs/swagger");
15
15
  const collection_info_dto_1 = require("./collection-info.dto");
16
16
  const nft_details_doc_1 = require("../../cosmos-db/documents/token/nft-details.doc");
17
- const enums_1 = require("../../common/enums");
17
+ const xoxno_auction_type_enum_1 = require("../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum");
18
18
  class FromToDto {
19
19
  }
20
20
  __decorate([
@@ -89,7 +89,7 @@ class LendingMarketProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGene
89
89
  ...props?.filters,
90
90
  };
91
91
  // Assign other properties
92
- const { filters, ...otherProps } = props;
92
+ const { filters: _, ...otherProps } = props;
93
93
  Object.assign(this, otherProps);
94
94
  this.applySelectPropertyLogic(props);
95
95
  }
@@ -1,4 +1,5 @@
1
- import { AuctionTypes } from '../../common/enums';
1
+ import { NftDoc } from '../../cosmos-db/documents/token/nft-details.doc';
2
+ import { XoxnoAuctionTypeString } from '../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum';
2
3
  export interface NftActivityData {
3
4
  collection: string;
4
5
  identifier?: string;
@@ -8,13 +9,13 @@ export interface NftActivityData {
8
9
  scId: number;
9
10
  usdValue: number;
10
11
  egldValue: number;
11
- auctionType?: AuctionTypes;
12
+ auctionType?: XoxnoAuctionTypeString;
12
13
  deadline?: number;
13
14
  originalPayment?: {
14
15
  paymentToken: string;
15
16
  price: number;
16
17
  };
17
- nftInfo?: any;
18
+ nftInfo?: Partial<NftDoc>;
18
19
  }
19
20
  export interface NftMvxBuiltIn {
20
21
  collection: string;
@@ -104,7 +104,7 @@ class NftActivityFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter
104
104
  };
105
105
  // Assign other properties
106
106
  if (props) {
107
- const { filters, ...otherProps } = props;
107
+ const { filters: _, ...otherProps } = props;
108
108
  Object.assign(this, otherProps);
109
109
  }
110
110
  this.setPk();
@@ -114,12 +114,12 @@ class NftActivityFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter
114
114
  return;
115
115
  const uniqueCollections = new Set();
116
116
  const activityData = this.filters.activityData;
117
- if (activityData?.collection?.length > 0) {
117
+ if ((activityData?.collection?.length ?? 0) > 0) {
118
118
  activityData.collection.forEach((collection) => {
119
119
  uniqueCollections.add(collection);
120
120
  });
121
121
  }
122
- if (activityData?.identifier?.length > 0) {
122
+ if ((activityData?.identifier?.length ?? 0) > 0) {
123
123
  activityData.identifier.forEach((identifier) => {
124
124
  // Extract collection ticker from identifier (format: COLLECTION-NONCE)
125
125
  const collectionTicker = identifier.split('-').slice(0, -1).join('-');
@@ -1,3 +1,4 @@
1
+ import { NftDoc } from '../../cosmos-db/documents/token/nft-details.doc';
1
2
  declare class WalletDto {
2
3
  address: string;
3
4
  profile: string;
@@ -8,22 +9,13 @@ declare class WalletDto {
8
9
  listed: number;
9
10
  followCount: number;
10
11
  }
11
- declare class NftInfoDto {
12
- identifier: string;
13
- collection: string;
14
- name: string;
15
- metadata: Record<string, any>;
16
- url: string;
17
- wasProcessed: boolean;
18
- media: Record<string, any>;
19
- }
20
12
  declare class PriceDataDto {
21
13
  price: number;
22
14
  timestamp: number;
23
15
  identifier: string;
24
16
  txHash: string;
25
17
  usdValue: number;
26
- nftInfo: NftInfoDto;
18
+ nftInfo: Partial<NftDoc>;
27
19
  }
28
20
  declare class UserStatsDto {
29
21
  wallet: WalletDto;
@@ -55,43 +55,6 @@ __decorate([
55
55
  (0, class_validator_1.IsNumber)(),
56
56
  __metadata("design:type", Number)
57
57
  ], WalletDto.prototype, "followCount", void 0);
58
- class NftInfoDto {
59
- }
60
- __decorate([
61
- (0, swagger_1.ApiProperty)({ description: 'NFT identifier' }),
62
- (0, class_validator_1.IsString)(),
63
- __metadata("design:type", String)
64
- ], NftInfoDto.prototype, "identifier", void 0);
65
- __decorate([
66
- (0, swagger_1.ApiProperty)({ description: 'NFT collection' }),
67
- (0, class_validator_1.IsString)(),
68
- __metadata("design:type", String)
69
- ], NftInfoDto.prototype, "collection", void 0);
70
- __decorate([
71
- (0, swagger_1.ApiProperty)({ description: 'NFT name' }),
72
- (0, class_validator_1.IsString)(),
73
- __metadata("design:type", String)
74
- ], NftInfoDto.prototype, "name", void 0);
75
- __decorate([
76
- (0, swagger_1.ApiProperty)({ description: 'NFT metadata' }),
77
- (0, class_validator_1.IsObject)(),
78
- __metadata("design:type", Object)
79
- ], NftInfoDto.prototype, "metadata", void 0);
80
- __decorate([
81
- (0, swagger_1.ApiProperty)({ description: 'NFT URL' }),
82
- (0, class_validator_1.IsString)(),
83
- __metadata("design:type", String)
84
- ], NftInfoDto.prototype, "url", void 0);
85
- __decorate([
86
- (0, swagger_1.ApiProperty)({ description: 'Whether the NFT was processed' }),
87
- (0, class_validator_1.IsBoolean)(),
88
- __metadata("design:type", Boolean)
89
- ], NftInfoDto.prototype, "wasProcessed", void 0);
90
- __decorate([
91
- (0, swagger_1.ApiProperty)({ description: 'NFT media information' }),
92
- (0, class_validator_1.IsObject)(),
93
- __metadata("design:type", Object)
94
- ], NftInfoDto.prototype, "media", void 0);
95
58
  class PriceDataDto {
96
59
  }
97
60
  __decorate([
@@ -120,10 +83,10 @@ __decorate([
120
83
  __metadata("design:type", Number)
121
84
  ], PriceDataDto.prototype, "usdValue", void 0);
122
85
  __decorate([
123
- (0, swagger_1.ApiProperty)({ type: NftInfoDto, description: 'NFT information' }),
86
+ (0, swagger_1.ApiProperty)({ type: (swagger_1.PartialType), description: 'NFT information' }),
124
87
  (0, class_validator_1.ValidateNested)(),
125
- (0, class_transformer_1.Type)(() => NftInfoDto),
126
- __metadata("design:type", NftInfoDto)
88
+ (0, class_transformer_1.Type)(() => swagger_1.PartialType),
89
+ __metadata("design:type", Object)
127
90
  ], PriceDataDto.prototype, "nftInfo", void 0);
128
91
  class UserStatsDto {
129
92
  }
@@ -1,11 +1,12 @@
1
- import { ActivityChain, AuctionTypes } from '../../common/enums';
1
+ import { ActivityChain } from '../../common/enums';
2
2
  import { NftMetadataAttributes } from '../../cosmos-db/documents/token/nft-metadata-attributes';
3
3
  import { CosmosDbGenericFilter, RangeFilter } from '../../cosmos-db/cosmos-db-generic-filter';
4
+ import { XoxnoAuctionTypeString } from '../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum';
4
5
  export declare class SaleInfoFilterDto {
5
6
  seller?: string[];
6
7
  paymentToken?: string[];
7
8
  marketplace?: string[];
8
- auctionType?: AuctionTypes[];
9
+ auctionType?: XoxnoAuctionTypeString[];
9
10
  }
10
11
  export declare class MetadataAttributesDto {
11
12
  attributes?: NftMetadataAttributes[];
@@ -43,7 +44,7 @@ export declare class NftDocFilter extends CosmosDbGenericFilter {
43
44
  seller?: string[];
44
45
  paymentToken?: string[];
45
46
  marketplace?: string[];
46
- auctionType?: AuctionTypes[];
47
+ auctionType?: XoxnoAuctionTypeString[];
47
48
  };
48
49
  range?: RangeFilter[];
49
50
  metadata?: {
@@ -132,7 +132,7 @@ class NftDocFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter {
132
132
  : props.filters?.chain,
133
133
  };
134
134
  // Assign other properties
135
- const { filters, ...otherProps } = props;
135
+ const { filters: _, ...otherProps } = props;
136
136
  Object.assign(this, otherProps);
137
137
  this.applySelectPropertyLogic(props);
138
138
  this.setPk();
@@ -142,12 +142,12 @@ class NftDocFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter {
142
142
  return;
143
143
  const uniqueCollections = new Set();
144
144
  const { collection, identifier } = this.filters;
145
- if (collection?.length > 0) {
145
+ if ((collection?.length ?? 0) > 0) {
146
146
  collection.forEach((coll) => {
147
147
  uniqueCollections.add(coll);
148
148
  });
149
149
  }
150
- if (identifier?.length > 0) {
150
+ if ((identifier?.length ?? 0) > 0) {
151
151
  identifier.forEach((id) => {
152
152
  // Extract collection ticker from identifier (format: COLLECTION-NONCE)
153
153
  const collectionTicker = id.split('-').slice(0, -1).join('-');
@@ -56,7 +56,7 @@ class NftOfferDocFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter
56
56
  ...props?.filters,
57
57
  };
58
58
  // Assign other properties
59
- const { filters, ...otherProps } = props;
59
+ const { filters: _, ...otherProps } = props;
60
60
  Object.assign(this, otherProps);
61
61
  this.setPk();
62
62
  }
@@ -65,12 +65,12 @@ class NftOfferDocFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter
65
65
  return;
66
66
  const uniqueCollections = new Set();
67
67
  const { collection, identifier } = this.filters;
68
- if (collection?.length > 0) {
68
+ if ((collection?.length ?? 0) > 0) {
69
69
  collection.forEach((coll) => {
70
70
  uniqueCollections.add(coll);
71
71
  });
72
72
  }
73
- if (identifier?.length > 0) {
73
+ if ((identifier?.length ?? 0) > 0) {
74
74
  identifier.forEach((id) => {
75
75
  // Extract collection ticker from identifier (format: COLLECTION-NONCE)
76
76
  const collectionTicker = id.split('-').slice(0, -1).join('-');
@@ -1,18 +1,5 @@
1
1
  import { OwnerDto } from '../../common/owner.dto';
2
- declare class NftInfoDto {
3
- identifier: string;
4
- nonce: number;
5
- name: string;
6
- url: string;
7
- wasProcessed: boolean;
8
- media: Record<string, any>;
9
- onSale: boolean;
10
- saleInfo: Record<string, any>;
11
- metadata: Record<string, any>;
12
- owner: OwnerDto;
13
- currentOwner: OwnerDto;
14
- receiverIsNotOwner: boolean;
15
- }
2
+ import { NftDoc } from '../../cosmos-db/documents/token/nft-details.doc';
16
3
  export declare class OfferDto {
17
4
  isActive: boolean;
18
5
  identifier: string;
@@ -30,11 +17,10 @@ export declare class OfferDto {
30
17
  usdValue: number;
31
18
  floorPriceMargin: number;
32
19
  floorPrice: number;
33
- nftInfo: NftInfoDto;
20
+ nftInfo: Partial<NftDoc>;
34
21
  }
35
22
  export declare class GetUserOffersResponseDto {
36
23
  count: number;
37
24
  hasMoreResults: boolean;
38
25
  resources: OfferDto[];
39
26
  }
40
- export {};
@@ -12,85 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.GetUserOffersResponseDto = exports.OfferDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const owner_dto_1 = require("../../common/owner.dto");
15
- class NftInfoDto {
16
- }
17
- __decorate([
18
- (0, swagger_1.ApiProperty)({ example: 'HLSR-374950-1934' }),
19
- __metadata("design:type", String)
20
- ], NftInfoDto.prototype, "identifier", void 0);
21
- __decorate([
22
- (0, swagger_1.ApiProperty)({ example: 6452 }),
23
- __metadata("design:type", Number)
24
- ], NftInfoDto.prototype, "nonce", void 0);
25
- __decorate([
26
- (0, swagger_1.ApiProperty)({ example: '37.43 EGLD' }),
27
- __metadata("design:type", String)
28
- ], NftInfoDto.prototype, "name", void 0);
29
- __decorate([
30
- (0, swagger_1.ApiProperty)({
31
- example: 'https://arweave.net/mfjIHO6ckE8m1ck_b46BdV4ZFVGEEHJSno2MnFKuzgk/undelegate-nft.png',
32
- }),
33
- __metadata("design:type", String)
34
- ], NftInfoDto.prototype, "url", void 0);
35
- __decorate([
36
- (0, swagger_1.ApiProperty)({ example: true }),
37
- __metadata("design:type", Boolean)
38
- ], NftInfoDto.prototype, "wasProcessed", void 0);
39
- __decorate([
40
- (0, swagger_1.ApiProperty)({
41
- example: {
42
- avifUrl: 'https://media.xoxno.com/nftmedia/HLSR-374950/receipt.avif',
43
- webpUrl: 'https://media.xoxno.com/nftmedia/HLSR-374950/receipt.webp',
44
- originalMedia: {
45
- contentLength: 2639394,
46
- contentType: 'image/png',
47
- },
48
- },
49
- }),
50
- __metadata("design:type", Object)
51
- ], NftInfoDto.prototype, "media", void 0);
52
- __decorate([
53
- (0, swagger_1.ApiProperty)({ example: false }),
54
- __metadata("design:type", Boolean)
55
- ], NftInfoDto.prototype, "onSale", void 0);
56
- __decorate([
57
- (0, swagger_1.ApiProperty)({ example: {} }),
58
- __metadata("design:type", Object)
59
- ], NftInfoDto.prototype, "saleInfo", void 0);
60
- __decorate([
61
- (0, swagger_1.ApiProperty)({
62
- example: {
63
- rarity: {
64
- rank: 202,
65
- },
66
- },
67
- }),
68
- __metadata("design:type", Object)
69
- ], NftInfoDto.prototype, "metadata", void 0);
70
- __decorate([
71
- (0, swagger_1.ApiProperty)({
72
- example: {
73
- address: 'erd1vdr8jnyhp0wlk3cwe2j5ejwkzwepexqgtnqxanravgv0d6vg59dqnfkjmm',
74
- profile: 'https://media.xoxno.com/userprofile/erd1vdr8jnyhp0wlk3cwe2j5ejwkzwepexqgtnqxanravgv0d6vg59dqnfkjmm/profilePicture.webp',
75
- username: '@xtrading',
76
- },
77
- }),
78
- __metadata("design:type", owner_dto_1.OwnerDto)
79
- ], NftInfoDto.prototype, "owner", void 0);
80
- __decorate([
81
- (0, swagger_1.ApiProperty)({
82
- example: {
83
- address: 'erd1vdr8jnyhp0wlk3cwe2j5ejwkzwepexqgtnqxanravgv0d6vg59dqnfkjmm',
84
- profile: 'https://media.xoxno.com/userprofile/erd1vdr8jnyhp0wlk3cwe2j5ejwkzwepexqgtnqxanravgv0d6vg59dqnfkjmm/profilePicture.webp',
85
- username: '@xtrading',
86
- },
87
- }),
88
- __metadata("design:type", owner_dto_1.OwnerDto)
89
- ], NftInfoDto.prototype, "currentOwner", void 0);
90
- __decorate([
91
- (0, swagger_1.ApiProperty)({ example: true }),
92
- __metadata("design:type", Boolean)
93
- ], NftInfoDto.prototype, "receiverIsNotOwner", void 0);
94
15
  class OfferDto {
95
16
  }
96
17
  exports.OfferDto = OfferDto;
@@ -162,9 +83,9 @@ __decorate([
162
83
  ], OfferDto.prototype, "floorPrice", void 0);
163
84
  __decorate([
164
85
  (0, swagger_1.ApiProperty)({
165
- type: NftInfoDto,
86
+ type: (swagger_1.PartialType),
166
87
  }),
167
- __metadata("design:type", NftInfoDto)
88
+ __metadata("design:type", Object)
168
89
  ], OfferDto.prototype, "nftInfo", void 0);
169
90
  class GetUserOffersResponseDto {
170
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",