@xoxno/types 1.0.2 → 1.0.4

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.
@@ -50,3 +50,9 @@ export declare enum MarketplacesOnSaleNames {
50
50
  DEADRARE_MARKETPLACE = "deadrare",
51
51
  KROGAN_MARKETPLACE = "krogan"
52
52
  }
53
+ export declare enum AuctionTypes {
54
+ FixedPrice = "FixedPrice",
55
+ Auctions = "Auctions",
56
+ All = "All",
57
+ AllListed = "AllListed"
58
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MarketplacesOnSaleNames = exports.MarketplaceActivity = exports.StorageContainerName = exports.EsdtTokenType = exports.EsdtTokenSubType = exports.ActivityChain = void 0;
3
+ exports.AuctionTypes = exports.MarketplacesOnSaleNames = exports.MarketplaceActivity = exports.StorageContainerName = exports.EsdtTokenType = exports.EsdtTokenSubType = exports.ActivityChain = void 0;
4
4
  var ActivityChain;
5
5
  (function (ActivityChain) {
6
6
  ActivityChain["MULTIVERSX"] = "MVX";
@@ -59,3 +59,10 @@ var MarketplacesOnSaleNames;
59
59
  MarketplacesOnSaleNames["DEADRARE_MARKETPLACE"] = "deadrare";
60
60
  MarketplacesOnSaleNames["KROGAN_MARKETPLACE"] = "krogan";
61
61
  })(MarketplacesOnSaleNames || (exports.MarketplacesOnSaleNames = MarketplacesOnSaleNames = {}));
62
+ var AuctionTypes;
63
+ (function (AuctionTypes) {
64
+ AuctionTypes["FixedPrice"] = "FixedPrice";
65
+ AuctionTypes["Auctions"] = "Auctions";
66
+ AuctionTypes["All"] = "All";
67
+ AuctionTypes["AllListed"] = "AllListed";
68
+ })(AuctionTypes || (exports.AuctionTypes = AuctionTypes = {}));
@@ -1,3 +1,4 @@
1
+ import { AuctionTypes } from '../../../common/enums';
1
2
  import { NftDoc } from '../token/nft-details.doc';
2
3
  export interface NftActivityData {
3
4
  collection: string;
@@ -8,7 +9,7 @@ export interface NftActivityData {
8
9
  scId: number;
9
10
  usdValue: number;
10
11
  egldValue: number;
11
- auctionType?: string;
12
+ auctionType?: AuctionTypes;
12
13
  deadline?: number;
13
14
  originalPayment?: {
14
15
  paymentToken: string;
@@ -1,4 +1,5 @@
1
1
  import { OwnerDto } from '../../../common/owner.dto';
2
+ import { AuctionTypes } from '../../../common/enums';
2
3
  export declare class NftSaleInfo {
3
4
  auctionId: number;
4
5
  seller: string;
@@ -10,7 +11,7 @@ export declare class NftSaleInfo {
10
11
  deadline: number;
11
12
  paymentToken: string;
12
13
  paymentTokenNonce: number;
13
- auctionType: string;
14
+ auctionType: AuctionTypes;
14
15
  timestamp: number;
15
16
  minBidShort: number;
16
17
  minBidUsdValue?: number;
package/dist/index.d.ts CHANGED
@@ -175,7 +175,6 @@ export * from './cosmos-db/documents/token/token-data.enum';
175
175
  /**
176
176
  * Cosmos DB Documents - User
177
177
  */
178
- export * from './cosmos-db/documents/user/account-on-network';
179
178
  export * from './cosmos-db/documents/user/user-creator-profile.doc';
180
179
  export * from './cosmos-db/documents/user/user-data.type';
181
180
  export * from './cosmos-db/documents/user/user-deposit';
package/dist/index.js CHANGED
@@ -197,7 +197,6 @@ __exportStar(require("./cosmos-db/documents/token/token-data.enum"), exports);
197
197
  /**
198
198
  * Cosmos DB Documents - User
199
199
  */
200
- __exportStar(require("./cosmos-db/documents/user/account-on-network"), exports);
201
200
  __exportStar(require("./cosmos-db/documents/user/user-creator-profile.doc"), exports);
202
201
  __exportStar(require("./cosmos-db/documents/user/user-data.type"), exports);
203
202
  __exportStar(require("./cosmos-db/documents/user/user-deposit"), exports);
@@ -1,6 +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
5
  declare class FromToDto {
5
6
  address: string;
6
7
  profile: string;
@@ -15,7 +16,7 @@ declare class ActivityDataDto implements NftActivityData {
15
16
  scId: number;
16
17
  usdValue: number;
17
18
  egldValue: number;
18
- auctionType?: string;
19
+ auctionType?: AuctionTypes;
19
20
  deadline?: number;
20
21
  originalPayment?: {
21
22
  paymentToken: string;
@@ -14,6 +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
18
  class FromToDto {
18
19
  }
19
20
  __decorate([
@@ -1,3 +1,4 @@
1
+ import { AuctionTypes } from '../../common/enums';
1
2
  export interface NftActivityData {
2
3
  collection: string;
3
4
  identifier?: string;
@@ -7,7 +8,7 @@ export interface NftActivityData {
7
8
  scId: number;
8
9
  usdValue: number;
9
10
  egldValue: number;
10
- auctionType?: string;
11
+ auctionType?: AuctionTypes;
11
12
  deadline?: number;
12
13
  originalPayment?: {
13
14
  paymentToken: string;
@@ -1,11 +1,11 @@
1
- import { ActivityChain } from '../../common/enums';
1
+ import { ActivityChain, AuctionTypes } 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
4
  export declare class SaleInfoFilterDto {
5
5
  seller?: string[];
6
6
  paymentToken?: string[];
7
7
  marketplace?: string[];
8
- auctionType?: string[];
8
+ auctionType?: AuctionTypes[];
9
9
  }
10
10
  export declare class MetadataAttributesDto {
11
11
  attributes?: NftMetadataAttributes[];
@@ -43,7 +43,7 @@ export declare class NftDocFilter extends CosmosDbGenericFilter {
43
43
  seller?: string[];
44
44
  paymentToken?: string[];
45
45
  marketplace?: string[];
46
- auctionType?: string[];
46
+ auctionType?: AuctionTypes[];
47
47
  };
48
48
  range?: RangeFilter[];
49
49
  metadata?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,21 +0,0 @@
1
- export declare class MvxAccountDetails {
2
- address: string;
3
- nonce: number;
4
- balance: string;
5
- balanceShort: number;
6
- username: string;
7
- ownerAddress?: string;
8
- isUpgradeable?: boolean;
9
- isReadable?: boolean;
10
- isGuarded?: boolean;
11
- isPayable?: boolean;
12
- isPayableBySmartContract?: boolean;
13
- shard?: number;
14
- usdValue?: number;
15
- code?: string;
16
- codeHash?: string;
17
- rootHash?: string;
18
- developerReward?: string;
19
- codeMetadata?: string;
20
- constructor(init?: Partial<MvxAccountDetails>);
21
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MvxAccountDetails = void 0;
4
- class MvxAccountDetails {
5
- constructor(init) {
6
- this.address = '';
7
- this.nonce = 0;
8
- this.balanceShort = 0;
9
- this.username = '';
10
- delete init?.['code'];
11
- delete init?.['codeHash'];
12
- delete init?.['rootHash'];
13
- delete init?.['developerReward'];
14
- if (init?.['codeMetadata']) {
15
- delete init['codeMetadata'];
16
- // const codeMetadata = AddressUtils.decodeCodeMetadata(
17
- // init['codeMetadata'],
18
- // );
19
- // this.isUpgradeable = codeMetadata.isUpgradeable;
20
- // this.isReadable = codeMetadata.isReadable;
21
- // this.isGuarded = codeMetadata.isGuarded;
22
- // this.isPayable = codeMetadata.isPayable;
23
- // this.isPayableBySmartContract = codeMetadata.isPayableBySmartContract;
24
- }
25
- Object.assign(this, init);
26
- if (this.ownerAddress === '') {
27
- delete this.ownerAddress;
28
- }
29
- // TODO: Add sahrd number
30
- // this.shard = AddressUtils.computeShard(
31
- // AddressUtils.bech32Decode(this.address),
32
- // 3,
33
- // );
34
- }
35
- }
36
- exports.MvxAccountDetails = MvxAccountDetails;