@xoxno/types 1.0.6 → 1.0.8
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.
- package/dist/common/enums.d.ts +0 -21
- package/dist/common/enums.js +1 -23
- package/dist/common/kusto/wallet-stats.js +1 -0
- package/dist/cosmos-db/cosmos-db-generic-filter.d.ts +8 -3
- package/dist/cosmos-db/documents/activity/nft-activity.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/activity/nft-activity.doc.js +2 -2
- package/dist/cosmos-db/documents/notification/notification.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.d.ts +1 -1
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +1 -1
- package/dist/cosmos-db/documents/staking/staking-pool-doc.d.ts +3 -3
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.d.ts +1 -6
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.js +4 -26
- package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.js +6 -2
- package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/token/nft-sale-info.d.ts +2 -2
- package/dist/cosmos-db/documents/token/nft-sale-info.js +1 -0
- package/dist/entities/bober-battle/battle-sc-endpoints.enum.d.ts +14 -0
- package/dist/entities/bober-battle/battle-sc-endpoints.enum.js +19 -0
- package/dist/entities/bober-battle/battle-sc-event-name.enum.d.ts +9 -0
- package/dist/entities/bober-battle/battle-sc-event-name.enum.js +14 -0
- package/dist/entities/bober-battle/game-type.d.ts +68 -0
- package/dist/entities/delegation-data/delegation-data-output.d.ts +10 -0
- package/dist/entities/delegation-data/delegation-data-output.js +2 -0
- package/dist/entities/delegation-data/provider-data.d.ts +37 -0
- package/dist/entities/delegation-data/provider-data.js +2 -0
- package/dist/entities/search-data/collection-data-search.type.d.ts +27 -0
- package/dist/entities/search-data/collection-data-search.type.js +2 -0
- package/dist/entities/search-data/event-guest-data-search.type.d.ts +12 -0
- package/dist/entities/search-data/event-guest-data-search.type.js +2 -0
- package/dist/entities/search-data/event-guest-invitation-search.type.d.ts +12 -0
- package/dist/entities/search-data/event-guest-invitation-search.type.js +2 -0
- package/dist/entities/search-data/filter-query.dto.d.ts +3 -0
- package/dist/entities/search-data/filter-query.dto.js +25 -0
- package/dist/entities/search-data/nft-data-search.type.d.ts +9 -0
- package/dist/entities/search-data/nft-data-search.type.js +2 -0
- package/dist/entities/search-data/search-index-name.enum.d.ts +8 -0
- package/dist/entities/search-data/search-index-name.enum.js +12 -0
- package/dist/entities/search-data/search.dto.d.ts +54 -0
- package/dist/entities/search-data/search.dto.js +193 -0
- package/dist/entities/search-data/user-data-search.type.d.ts +21 -0
- package/dist/entities/search-data/user-data-search.type.js +2 -0
- package/dist/entities/staking-data/owned-collections.dto.d.ts +4 -0
- package/dist/entities/staking-data/owned-collections.dto.js +35 -0
- package/dist/entities/staking-data/owned-services.dto.d.ts +11 -0
- package/dist/entities/staking-data/owned-services.dto.js +40 -0
- package/dist/entities/staking-data/staking-creator.doc.js +54 -0
- package/dist/entities/staking-data/staking-explore.d.ts +9 -0
- package/dist/entities/staking-data/staking-explore.js +41 -0
- package/dist/entities/staking-data/staking-summary.dto.d.ts +5 -0
- package/dist/entities/staking-data/staking-summary.dto.js +133 -0
- package/dist/entities/staking-data/user-staking-summary.dto.d.ts +16 -0
- package/dist/entities/staking-data/user-staking-summary.dto.js +83 -0
- package/dist/entities/token-data/token.dto.d.ts +15 -0
- package/dist/entities/token-data/token.dto.js +96 -0
- package/dist/entities/token-data/xoxno-liquid-stats.dto.d.ts +14 -0
- package/dist/entities/token-data/xoxno-liquid-stats.dto.js +95 -0
- package/dist/entities/xoxno-marketplace-sc/xoxno-auction-type.enum.d.ts +14 -0
- package/dist/entities/xoxno-marketplace-sc/xoxno-auction-type.enum.js +19 -0
- package/dist/index.d.ts +88 -114
- package/dist/index.js +88 -126
- package/dist/requests/collection/collection-mint-profile.filter.d.ts +2 -1
- package/dist/requests/collection/collection-mint-profile.filter.js +1 -1
- package/dist/requests/collection/collection-offers.filter.d.ts +3 -2
- package/dist/requests/collection/collection-offers.filter.js +1 -1
- package/dist/requests/collection/collection-profile.filter.js +1 -1
- package/dist/requests/collection/collection-stats.filter.d.ts +3 -2
- package/dist/requests/collection/collection-stats.filter.js +1 -1
- package/dist/requests/collection/query-activity.d.ts +3 -3
- package/dist/requests/collection/query-activity.js +1 -1
- package/dist/requests/lending/lending-market-profile.filter.d.ts +3 -2
- package/dist/requests/lending/lending-market-profile.filter.js +1 -1
- package/dist/requests/nft-activity-data/nft-activity-data.d.ts +4 -3
- package/dist/requests/nft-activity-data/nft-activity.filter.d.ts +3 -2
- package/dist/requests/nft-activity-data/nft-activity.filter.js +3 -3
- package/dist/requests/nft-activity-data/user-stats.d.ts +2 -10
- package/dist/requests/nft-activity-data/user-stats.js +3 -40
- package/dist/requests/nft-data/nft-doc.filter.d.ts +7 -5
- package/dist/requests/nft-data/nft-doc.filter.js +3 -3
- package/dist/requests/nft-data/nft-offer-doc.filter.d.ts +3 -2
- package/dist/requests/nft-data/nft-offer-doc.filter.js +3 -3
- package/dist/requests/nft-data/user-offers.d.ts +2 -16
- package/dist/requests/nft-data/user-offers.js +2 -81
- package/package.json +2 -2
- package/dist/common/kusto/trading-stats.d.ts +0 -28
- package/dist/common/kusto/trading-stats.js +0 -35
- package/dist/cosmos-db/documents/activity/event-source.enum.d.ts +0 -15
- package/dist/cosmos-db/documents/activity/event-source.enum.js +0 -19
- package/dist/cosmos-db/documents/activity/nft-activity-data.d.ts +0 -23
- package/dist/cosmos-db/documents/activity/nft-activity-type.enum.d.ts +0 -28
- package/dist/cosmos-db/documents/activity/nft-activity-type.enum.js +0 -36
- package/dist/cosmos-db/documents/staking/staking-creator.js +0 -13
- package/dist/cosmos-db/documents/token/nft-extra-attributes.type.d.ts +0 -3
- package/dist/cosmos-db/documents/token/nft-extra-attributes.type.js +0 -7
- package/dist/entities/token-data/known-mvx-tokens.enum.d.ts +0 -34
- package/dist/entities/token-data/known-mvx-tokens.enum.js +0 -32
- /package/dist/{cosmos-db/documents/activity/nft-activity-data.js → entities/bober-battle/game-type.js} +0 -0
- /package/dist/{cosmos-db/documents/staking/staking-creator.d.ts → entities/staking-data/staking-creator.doc.d.ts} +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-data-type.enum.d.ts +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-data-type.enum.js +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-issuing-type-string.enum.d.ts +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-issuing-type-string.enum.js +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-pool-type-string.enum.d.ts +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-pool-type-string.enum.js +0 -0
package/dist/common/enums.d.ts
CHANGED
|
@@ -23,27 +23,6 @@ export declare enum StorageContainerName {
|
|
|
23
23
|
SMART_CONTRACT_ABI = "smartcontractabi",
|
|
24
24
|
UTILS = "utils"
|
|
25
25
|
}
|
|
26
|
-
export declare enum MarketplaceActivity {
|
|
27
|
-
LISTING_CREATE = "listingCreate",
|
|
28
|
-
LISTING_WITHDRAW = "listingWithdraw",
|
|
29
|
-
LISTING_UPDATE = "listingUpdate",
|
|
30
|
-
AUCTION_BID = "auctionBid",
|
|
31
|
-
AUCTION_OUT_BID = "auctionOutBid",
|
|
32
|
-
OFFER_CREATE = "offerCreate",
|
|
33
|
-
OFFER_WITHDRAW = "offerWithdraw",
|
|
34
|
-
OFFER_REJECT = "offerReject",
|
|
35
|
-
GLOBAL_OFFER_CREATE = "globalOfferCreate",
|
|
36
|
-
GLOBAL_OFFER_WITHDRAW = "globalOfferWithdraw",
|
|
37
|
-
TRADE = "trade",
|
|
38
|
-
BULK_TRADE = "bulkTrade",
|
|
39
|
-
AUCTION_TRADE = "auctionTrade",
|
|
40
|
-
OTHER_TRADE = "otherTrade",// fiat or binance buy
|
|
41
|
-
OFFER_TRADE = "offerTrade",
|
|
42
|
-
GLOBAL_OFFER_TRADE = "globalOfferTrade",
|
|
43
|
-
DEPOSIT = "deposit",
|
|
44
|
-
WITHDRAW_DEPOSIT = "withdrawDeposit",
|
|
45
|
-
SET_COLLECTION_CONFIG = "setCollectionConfig"
|
|
46
|
-
}
|
|
47
26
|
export declare enum MarketplacesOnSaleNames {
|
|
48
27
|
XOXNO_MARKETPLACE = "xoxno",
|
|
49
28
|
FRAMEIT_MARKETPLACE = "frameit",
|
package/dist/common/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuctionTypes = exports.MarketplacesOnSaleNames = exports.
|
|
3
|
+
exports.AuctionTypes = exports.MarketplacesOnSaleNames = exports.StorageContainerName = exports.EsdtTokenType = exports.EsdtTokenSubType = exports.ActivityChain = void 0;
|
|
4
4
|
var ActivityChain;
|
|
5
5
|
(function (ActivityChain) {
|
|
6
6
|
ActivityChain["MULTIVERSX"] = "MVX";
|
|
@@ -30,28 +30,6 @@ var StorageContainerName;
|
|
|
30
30
|
StorageContainerName["SMART_CONTRACT_ABI"] = "smartcontractabi";
|
|
31
31
|
StorageContainerName["UTILS"] = "utils";
|
|
32
32
|
})(StorageContainerName || (exports.StorageContainerName = StorageContainerName = {}));
|
|
33
|
-
var MarketplaceActivity;
|
|
34
|
-
(function (MarketplaceActivity) {
|
|
35
|
-
MarketplaceActivity["LISTING_CREATE"] = "listingCreate";
|
|
36
|
-
MarketplaceActivity["LISTING_WITHDRAW"] = "listingWithdraw";
|
|
37
|
-
MarketplaceActivity["LISTING_UPDATE"] = "listingUpdate";
|
|
38
|
-
MarketplaceActivity["AUCTION_BID"] = "auctionBid";
|
|
39
|
-
MarketplaceActivity["AUCTION_OUT_BID"] = "auctionOutBid";
|
|
40
|
-
MarketplaceActivity["OFFER_CREATE"] = "offerCreate";
|
|
41
|
-
MarketplaceActivity["OFFER_WITHDRAW"] = "offerWithdraw";
|
|
42
|
-
MarketplaceActivity["OFFER_REJECT"] = "offerReject";
|
|
43
|
-
MarketplaceActivity["GLOBAL_OFFER_CREATE"] = "globalOfferCreate";
|
|
44
|
-
MarketplaceActivity["GLOBAL_OFFER_WITHDRAW"] = "globalOfferWithdraw";
|
|
45
|
-
MarketplaceActivity["TRADE"] = "trade";
|
|
46
|
-
MarketplaceActivity["BULK_TRADE"] = "bulkTrade";
|
|
47
|
-
MarketplaceActivity["AUCTION_TRADE"] = "auctionTrade";
|
|
48
|
-
MarketplaceActivity["OTHER_TRADE"] = "otherTrade";
|
|
49
|
-
MarketplaceActivity["OFFER_TRADE"] = "offerTrade";
|
|
50
|
-
MarketplaceActivity["GLOBAL_OFFER_TRADE"] = "globalOfferTrade";
|
|
51
|
-
MarketplaceActivity["DEPOSIT"] = "deposit";
|
|
52
|
-
MarketplaceActivity["WITHDRAW_DEPOSIT"] = "withdrawDeposit";
|
|
53
|
-
MarketplaceActivity["SET_COLLECTION_CONFIG"] = "setCollectionConfig";
|
|
54
|
-
})(MarketplaceActivity || (exports.MarketplaceActivity = MarketplaceActivity = {}));
|
|
55
33
|
var MarketplacesOnSaleNames;
|
|
56
34
|
(function (MarketplacesOnSaleNames) {
|
|
57
35
|
MarketplacesOnSaleNames["XOXNO_MARKETPLACE"] = "xoxno";
|
|
@@ -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,11 +1,15 @@
|
|
|
1
1
|
import { NftMetadataAttributes } from './documents/token/nft-metadata-attributes';
|
|
2
|
-
|
|
2
|
+
type IsLeaf<T> = [T] extends [object] ? T extends Function | any[] ? true : keyof T extends never ? true : false : true;
|
|
3
|
+
type LeafKeyPaths<T, Prefix extends string = ''> = T extends string ? string : {
|
|
4
|
+
[K in keyof T]-?: IsLeaf<NonNullable<T[K]>> extends true ? `${Prefix}${Extract<K, string>}` : LeafKeyPaths<NonNullable<T[K]>, `${Prefix}${Extract<K, string>}.`>;
|
|
5
|
+
}[keyof T];
|
|
6
|
+
export declare class RangeFilter<T> {
|
|
3
7
|
min?: number;
|
|
4
8
|
max?: number;
|
|
5
|
-
field?:
|
|
9
|
+
field?: LeafKeyPaths<T>;
|
|
6
10
|
}
|
|
7
11
|
export declare class CosmosDbGenericFilter {
|
|
8
|
-
filters: Record<string, object | boolean | string | string[] | number | number[] | RangeFilter[] | NftMetadataAttributes[]>;
|
|
12
|
+
filters: Record<string, object | boolean | string | string[] | number | number[] | RangeFilter<string>[] | NftMetadataAttributes[]>;
|
|
9
13
|
select?: string[];
|
|
10
14
|
orderBy?: string[];
|
|
11
15
|
includeCount?: boolean;
|
|
@@ -14,3 +18,4 @@ export declare class CosmosDbGenericFilter {
|
|
|
14
18
|
skip?: number;
|
|
15
19
|
constructor(props?: Partial<CosmosDbGenericFilter>);
|
|
16
20
|
}
|
|
21
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActivityChain } from '../../../common/enums';
|
|
2
|
-
import { NftActivityEventSource } from '
|
|
3
|
-
import { NftActivityData, NftMvxBuiltIn } from '
|
|
4
|
-
import { NftActivityType } from '
|
|
2
|
+
import { NftActivityEventSource } from '../../../requests/nft-activity-data/event-source.enum';
|
|
3
|
+
import { NftActivityData, NftMvxBuiltIn } from '../../../requests/nft-activity-data/nft-activity-data';
|
|
4
|
+
import { NftActivityType } from '../../../requests/nft-activity-data/nft-activity-type.enum';
|
|
5
5
|
export declare class NftActivityDoc {
|
|
6
6
|
timestamp: number;
|
|
7
7
|
txHash: string;
|
|
@@ -12,9 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.NftActivityDoc = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const enums_1 = require("../../../common/enums");
|
|
15
|
-
const event_source_enum_1 = require("./event-source.enum");
|
|
16
|
-
const nft_activity_type_enum_1 = require("./nft-activity-type.enum");
|
|
17
15
|
const uuid_1 = require("uuid");
|
|
16
|
+
const event_source_enum_1 = require("../../../requests/nft-activity-data/event-source.enum");
|
|
17
|
+
const nft_activity_type_enum_1 = require("../../../requests/nft-activity-data/nft-activity-type.enum");
|
|
18
18
|
class NftActivityDoc {
|
|
19
19
|
constructor(data) {
|
|
20
20
|
this.chain = enums_1.ActivityChain.MULTIVERSX;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NotificationAssetType } from './notification-asset-type.enum';
|
|
2
|
-
import { MarketplaceActivity } from '../../../
|
|
2
|
+
import { MarketplaceActivity } from '../../../requests/nft-activity-data/marketplace-activity.enum';
|
|
3
3
|
export declare class NotificationDoc {
|
|
4
4
|
dataType: string;
|
|
5
5
|
txHash: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StakingDataType } from '
|
|
1
|
+
import { StakingDataType } from '../../../entities/staking-data/staking-data-type.enum';
|
|
2
2
|
import { XoxnoStakingRewardClaim } from './staking-pool-doc';
|
|
3
3
|
export declare class StakingDelegatorDoc {
|
|
4
4
|
dataType: StakingDataType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StakingDelegatorDoc = void 0;
|
|
4
|
-
const staking_data_type_enum_1 = require("
|
|
4
|
+
const staking_data_type_enum_1 = require("../../../entities/staking-data/staking-data-type.enum");
|
|
5
5
|
class StakingDelegatorDoc {
|
|
6
6
|
constructor(props) {
|
|
7
7
|
this.dataType = staking_data_type_enum_1.StakingDataType.Delegator;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StakingIssuingTypeString } from './staking-issuing-type-string.enum';
|
|
2
|
-
import { StakingPoolTypeString } from './staking-pool-type-string.enum';
|
|
3
|
-
import { StakingDataType } from './staking-data-type.enum';
|
|
4
1
|
import { NftProps } from '../token/nft-details.doc';
|
|
2
|
+
import { StakingDataType } from '../../../entities/staking-data/staking-data-type.enum';
|
|
3
|
+
import { StakingIssuingTypeString } from '../../../entities/staking-data/staking-issuing-type-string.enum';
|
|
4
|
+
import { StakingPoolTypeString } from '../../../entities/staking-data/staking-pool-type-string.enum';
|
|
5
5
|
export declare class StakingPoolDoc {
|
|
6
6
|
dataType: StakingDataType;
|
|
7
7
|
poolId: number;
|
|
@@ -10,9 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.StakingUserPoolNfts = exports.StakingSummary = exports.XoxnoStakingIssuingReward = exports.XoxnoStakingRewardClaim = exports.XoxnoStakingReward = exports.StakingPoolDoc = void 0;
|
|
13
|
-
const staking_data_type_enum_1 = require("./staking-data-type.enum");
|
|
14
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
14
|
const nft_details_doc_1 = require("../token/nft-details.doc");
|
|
15
|
+
const staking_data_type_enum_1 = require("../../../entities/staking-data/staking-data-type.enum");
|
|
16
16
|
class StakingPoolDoc {
|
|
17
17
|
constructor(props) {
|
|
18
18
|
this.dataType = staking_data_type_enum_1.StakingDataType.Pool;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { EventGuestStatus } from './event-guest-status.enum';
|
|
2
2
|
import { CosmosDbGenericFilter, RangeFilter } from '../../cosmos-db-generic-filter';
|
|
3
|
+
import { EventGuestDoc } from './event-guest.doc';
|
|
3
4
|
export declare class EventGuestFilterCriteriaDto {
|
|
4
5
|
searchText?: string;
|
|
5
6
|
wallet?: string[];
|
|
6
7
|
eventId?: string[];
|
|
7
8
|
status?: EventGuestStatus[];
|
|
8
9
|
questionnaireFilled?: boolean;
|
|
9
|
-
range?: RangeFilter[];
|
|
10
|
+
range?: RangeFilter<EventGuestDoc>[];
|
|
10
11
|
}
|
|
11
12
|
export declare class EventGuestFilter extends CosmosDbGenericFilter {
|
|
12
13
|
filters: {
|
|
@@ -16,7 +17,7 @@ export declare class EventGuestFilter extends CosmosDbGenericFilter {
|
|
|
16
17
|
eventId?: string[];
|
|
17
18
|
status?: EventGuestStatus[];
|
|
18
19
|
questionnaireFilled?: boolean;
|
|
19
|
-
range?: RangeFilter[];
|
|
20
|
+
range?: RangeFilter<EventGuestDoc>[];
|
|
20
21
|
};
|
|
21
22
|
strictSelect?: boolean;
|
|
22
23
|
includeCount?: boolean;
|
|
@@ -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
|
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { EventQuestionAnswerDto } from './event-question-answer.doc';
|
|
2
|
-
|
|
3
|
-
success: string;
|
|
4
|
-
error: string;
|
|
5
|
-
successClose: string;
|
|
6
|
-
errorClose: string;
|
|
7
|
-
}
|
|
2
|
+
import { CallbackUrl } from '../external-payment/external-payment-request';
|
|
8
3
|
export declare class TicketSelectionDto {
|
|
9
4
|
ticketProfileId: string;
|
|
10
5
|
ticketStageId: string;
|
|
@@ -9,34 +9,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EventGuestRegistrationDto = exports.TicketSelectionDto =
|
|
12
|
+
exports.EventGuestRegistrationDto = exports.TicketSelectionDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const event_question_answer_doc_1 = require("./event-question-answer.doc");
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
exports.CallbackUrl = CallbackUrl;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, swagger_1.ApiProperty)(),
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], CallbackUrl.prototype, "success", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, swagger_1.ApiProperty)(),
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], CallbackUrl.prototype, "error", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, swagger_1.ApiProperty)(),
|
|
32
|
-
(0, class_validator_1.IsString)(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], CallbackUrl.prototype, "successClose", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, swagger_1.ApiProperty)(),
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], CallbackUrl.prototype, "errorClose", void 0);
|
|
17
|
+
const external_payment_request_1 = require("../external-payment/external-payment-request");
|
|
40
18
|
class TicketSelectionDto {
|
|
41
19
|
}
|
|
42
20
|
exports.TicketSelectionDto = TicketSelectionDto;
|
|
@@ -209,9 +187,9 @@ __decorate([
|
|
|
209
187
|
(0, swagger_1.ApiProperty)({
|
|
210
188
|
description: 'Callback URL',
|
|
211
189
|
required: false,
|
|
212
|
-
type: CallbackUrl,
|
|
190
|
+
type: external_payment_request_1.CallbackUrl,
|
|
213
191
|
}),
|
|
214
192
|
(0, class_validator_1.IsOptional)(),
|
|
215
193
|
(0, class_validator_1.IsObject)(),
|
|
216
|
-
__metadata("design:type", CallbackUrl)
|
|
194
|
+
__metadata("design:type", external_payment_request_1.CallbackUrl)
|
|
217
195
|
], EventGuestRegistrationDto.prototype, "callbackUrl", void 0);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventInvitationStatus } from './event-invitation-status.enum';
|
|
2
2
|
import { CosmosDbGenericFilter, RangeFilter } from '../../cosmos-db-generic-filter';
|
|
3
|
+
import { EventInvitationDoc } from './event-invitation.doc';
|
|
3
4
|
export declare class EventInvitationFilterCriteriaDto {
|
|
4
5
|
searchText?: string;
|
|
5
6
|
claimedBy?: string[];
|
|
@@ -8,7 +9,7 @@ export declare class EventInvitationFilterCriteriaDto {
|
|
|
8
9
|
status?: EventInvitationStatus[];
|
|
9
10
|
isClaimed?: boolean;
|
|
10
11
|
isUsed?: boolean;
|
|
11
|
-
range?: RangeFilter[];
|
|
12
|
+
range?: RangeFilter<EventInvitationDoc>[];
|
|
12
13
|
}
|
|
13
14
|
export declare class EventInvitationFilter extends CosmosDbGenericFilter {
|
|
14
15
|
filters: {
|
|
@@ -22,7 +23,7 @@ export declare class EventInvitationFilter extends CosmosDbGenericFilter {
|
|
|
22
23
|
status?: EventInvitationStatus[];
|
|
23
24
|
tickets?: unknown[];
|
|
24
25
|
claimedBy?: string[];
|
|
25
|
-
range?: RangeFilter[];
|
|
26
|
+
range?: RangeFilter<EventInvitationDoc>[];
|
|
26
27
|
};
|
|
27
28
|
strictSelect?: boolean;
|
|
28
29
|
includeCount?: boolean;
|
|
@@ -52,7 +52,11 @@ __decorate([
|
|
|
52
52
|
__metadata("design:type", Boolean)
|
|
53
53
|
], EventInvitationFilterCriteriaDto.prototype, "isUsed", void 0);
|
|
54
54
|
__decorate([
|
|
55
|
-
(0, swagger_1.ApiProperty)({
|
|
55
|
+
(0, swagger_1.ApiProperty)({
|
|
56
|
+
required: false,
|
|
57
|
+
type: cosmos_db_generic_filter_1.RangeFilter,
|
|
58
|
+
isArray: true,
|
|
59
|
+
}),
|
|
56
60
|
__metadata("design:type", Array)
|
|
57
61
|
], EventInvitationFilterCriteriaDto.prototype, "range", void 0);
|
|
58
62
|
class EventInvitationFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter {
|
|
@@ -68,7 +72,7 @@ class EventInvitationFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFi
|
|
|
68
72
|
...props?.filters,
|
|
69
73
|
};
|
|
70
74
|
// Assign other properties
|
|
71
|
-
const { filters, ...otherProps } = props;
|
|
75
|
+
const { filters: _, ...otherProps } = props;
|
|
72
76
|
Object.assign(this, otherProps);
|
|
73
77
|
this.setPk();
|
|
74
78
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { RangeFilter } from '../../cosmos-db-generic-filter';
|
|
2
2
|
import { CosmosDbGenericFilter } from '../../cosmos-db-generic-filter';
|
|
3
|
+
import { EventProfileDoc } from './event-profile.doc';
|
|
3
4
|
export declare class EventProfileFilterCriteriaDto {
|
|
4
5
|
searchText?: string;
|
|
5
6
|
area?: string[];
|
|
6
|
-
range?: RangeFilter[];
|
|
7
|
+
range?: RangeFilter<EventProfileDoc>[];
|
|
7
8
|
category?: string[];
|
|
8
9
|
subCategory?: string[];
|
|
9
10
|
}
|
|
@@ -19,7 +20,7 @@ export declare class EventProfileFilter extends CosmosDbGenericFilter {
|
|
|
19
20
|
id?: string[];
|
|
20
21
|
category?: string[];
|
|
21
22
|
subCategory?: string[];
|
|
22
|
-
range?: RangeFilter[];
|
|
23
|
+
range?: RangeFilter<EventProfileDoc>[];
|
|
23
24
|
registration?: {
|
|
24
25
|
visibility?: string;
|
|
25
26
|
isPublished?: boolean;
|
|
@@ -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
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { CosmosDbGenericFilter, RangeFilter } from '../../cosmos-db-generic-filter';
|
|
2
|
+
import { EventReferralConfigDoc } from './event-referral-config.doc';
|
|
2
3
|
export declare class EventReferralConfigFilterCriteriaDto {
|
|
3
4
|
searchText?: string;
|
|
4
5
|
ownerId?: string;
|
|
5
6
|
isActive?: boolean;
|
|
6
7
|
isSelfService?: boolean;
|
|
7
|
-
createdAt?: RangeFilter[];
|
|
8
|
+
createdAt?: RangeFilter<EventReferralConfigDoc>[];
|
|
8
9
|
}
|
|
9
10
|
export declare class EventReferralConfigFilter extends CosmosDbGenericFilter {
|
|
10
11
|
filters: {
|
|
@@ -13,7 +14,7 @@ export declare class EventReferralConfigFilter extends CosmosDbGenericFilter {
|
|
|
13
14
|
createdBy?: string[];
|
|
14
15
|
isActive?: boolean;
|
|
15
16
|
isSelfService?: boolean;
|
|
16
|
-
createdAt?: RangeFilter[];
|
|
17
|
+
createdAt?: RangeFilter<EventReferralConfigDoc>[];
|
|
17
18
|
dataType?: string[];
|
|
18
19
|
eventId?: string[];
|
|
19
20
|
};
|
|
@@ -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
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReferralConditionType } from './event-referral-config.doc';
|
|
2
2
|
import { CosmosDbGenericFilter, RangeFilter } from '../../cosmos-db-generic-filter';
|
|
3
|
+
import { EventReferralDoc } from './event-referral.doc';
|
|
3
4
|
export declare class EventReferralFilterCriteriaDto {
|
|
4
5
|
searchText?: string;
|
|
5
6
|
referralCode?: string[];
|
|
@@ -9,7 +10,7 @@ export declare class EventReferralFilterCriteriaDto {
|
|
|
9
10
|
minSuccessfulReferrals?: number;
|
|
10
11
|
maxSuccessfulReferrals?: number;
|
|
11
12
|
conditionType?: ReferralConditionType[];
|
|
12
|
-
createdAt?: RangeFilter[];
|
|
13
|
+
createdAt?: RangeFilter<EventReferralDoc>[];
|
|
13
14
|
}
|
|
14
15
|
export declare class EventReferralFilter extends CosmosDbGenericFilter {
|
|
15
16
|
filters: {
|
|
@@ -20,7 +21,7 @@ export declare class EventReferralFilter extends CosmosDbGenericFilter {
|
|
|
20
21
|
minSuccessfulReferrals?: number;
|
|
21
22
|
maxSuccessfulReferrals?: number;
|
|
22
23
|
conditionType?: ReferralConditionType[];
|
|
23
|
-
createdAt?: RangeFilter[];
|
|
24
|
+
createdAt?: RangeFilter<EventReferralDoc>[];
|
|
24
25
|
dataType?: string[];
|
|
25
26
|
eventId?: string[];
|
|
26
27
|
referralConfigId?: string;
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { VoucherType } from './event-voucher.doc';
|
|
1
|
+
import { EventVoucherDoc, VoucherType } from './event-voucher.doc';
|
|
2
2
|
import { CosmosDbGenericFilter, RangeFilter } from '../../cosmos-db-generic-filter';
|
|
3
3
|
export declare class EventVoucherFilterCriteriaDto {
|
|
4
4
|
searchText?: string;
|
|
@@ -10,7 +10,7 @@ export declare class EventVoucherFilterCriteriaDto {
|
|
|
10
10
|
maxUsesPerUser?: number;
|
|
11
11
|
isActive?: boolean;
|
|
12
12
|
ownerId?: string;
|
|
13
|
-
range?: RangeFilter[];
|
|
13
|
+
range?: RangeFilter<EventVoucherDoc>[];
|
|
14
14
|
}
|
|
15
15
|
export declare class EventVoucherFilter extends CosmosDbGenericFilter {
|
|
16
16
|
filters: {
|
|
@@ -23,7 +23,7 @@ export declare class EventVoucherFilter extends CosmosDbGenericFilter {
|
|
|
23
23
|
maxUsesPerUser?: number;
|
|
24
24
|
isActive?: boolean;
|
|
25
25
|
ownerId?: string;
|
|
26
|
-
range?: RangeFilter[];
|
|
26
|
+
range?: RangeFilter<EventVoucherDoc>[];
|
|
27
27
|
dataType?: string[];
|
|
28
28
|
eventId?: string[];
|
|
29
29
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NftExtraAttributesType } from '
|
|
1
|
+
import { NftExtraAttributesType } from '../../../requests/nft-data/nft-extra-attributes.type';
|
|
2
2
|
import { TokenDataType } from './token-data.enum';
|
|
3
3
|
export declare class NftExtraMetadata {
|
|
4
4
|
dataType: TokenDataType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OwnerDto } from '../../../common/owner.dto';
|
|
2
|
-
import {
|
|
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:
|
|
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 BoberBattleScEndpoints {
|
|
2
|
+
JOIN_GAME = "joinGame",
|
|
3
|
+
CANCEL_GAME = "cancelGame",
|
|
4
|
+
CREATE_GAME = "createGame",
|
|
5
|
+
ACTIVE_GAMES = "activeGames",// view
|
|
6
|
+
ALLOWED_TOKENS = "allowedTokens",
|
|
7
|
+
USER_GAMES = "userGames"
|
|
8
|
+
}
|
|
9
|
+
export declare enum BoberWheelScEndpoints {
|
|
10
|
+
JOIN_WHEEL = "joinWheel",
|
|
11
|
+
SPIN = "spin",
|
|
12
|
+
GET_CURRENT_GAME = "getCurrentGame",
|
|
13
|
+
GET_CONFIG = "getConfigs"
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BoberWheelScEndpoints = exports.BoberBattleScEndpoints = void 0;
|
|
4
|
+
var BoberBattleScEndpoints;
|
|
5
|
+
(function (BoberBattleScEndpoints) {
|
|
6
|
+
BoberBattleScEndpoints["JOIN_GAME"] = "joinGame";
|
|
7
|
+
BoberBattleScEndpoints["CANCEL_GAME"] = "cancelGame";
|
|
8
|
+
BoberBattleScEndpoints["CREATE_GAME"] = "createGame";
|
|
9
|
+
BoberBattleScEndpoints["ACTIVE_GAMES"] = "activeGames";
|
|
10
|
+
BoberBattleScEndpoints["ALLOWED_TOKENS"] = "allowedTokens";
|
|
11
|
+
BoberBattleScEndpoints["USER_GAMES"] = "userGames";
|
|
12
|
+
})(BoberBattleScEndpoints || (exports.BoberBattleScEndpoints = BoberBattleScEndpoints = {}));
|
|
13
|
+
var BoberWheelScEndpoints;
|
|
14
|
+
(function (BoberWheelScEndpoints) {
|
|
15
|
+
BoberWheelScEndpoints["JOIN_WHEEL"] = "joinWheel";
|
|
16
|
+
BoberWheelScEndpoints["SPIN"] = "spin";
|
|
17
|
+
BoberWheelScEndpoints["GET_CURRENT_GAME"] = "getCurrentGame";
|
|
18
|
+
BoberWheelScEndpoints["GET_CONFIG"] = "getConfigs";
|
|
19
|
+
})(BoberWheelScEndpoints || (exports.BoberWheelScEndpoints = BoberWheelScEndpoints = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BoberWheelScEventName = exports.BoberBattleScEventName = void 0;
|
|
4
|
+
var BoberBattleScEventName;
|
|
5
|
+
(function (BoberBattleScEventName) {
|
|
6
|
+
BoberBattleScEventName["NEW_GAME"] = "game_created";
|
|
7
|
+
BoberBattleScEventName["END_GAME"] = "game_ended";
|
|
8
|
+
BoberBattleScEventName["CANCEL_GAME"] = "game_cancel";
|
|
9
|
+
})(BoberBattleScEventName || (exports.BoberBattleScEventName = BoberBattleScEventName = {}));
|
|
10
|
+
var BoberWheelScEventName;
|
|
11
|
+
(function (BoberWheelScEventName) {
|
|
12
|
+
BoberWheelScEventName["JOIN_WHEEL"] = "player_joined";
|
|
13
|
+
BoberWheelScEventName["PICK_WINNER"] = "pick_winner";
|
|
14
|
+
})(BoberWheelScEventName || (exports.BoberWheelScEventName = BoberWheelScEventName = {}));
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ActivityChain } from '../../common/enums';
|
|
2
|
+
import { TokenDataDoc } from '../token-data/token-data.doc';
|
|
3
|
+
export interface BoberBattleGame {
|
|
4
|
+
id: string;
|
|
5
|
+
choice: string;
|
|
6
|
+
token: string;
|
|
7
|
+
value: string;
|
|
8
|
+
valueShort: number;
|
|
9
|
+
creator: string;
|
|
10
|
+
creatorUsername?: string;
|
|
11
|
+
creatorProfile?: string;
|
|
12
|
+
player?: string;
|
|
13
|
+
playerUsername?: string;
|
|
14
|
+
playerProfile?: string;
|
|
15
|
+
winner?: string;
|
|
16
|
+
winnerChoice?: string;
|
|
17
|
+
isPrivate: boolean;
|
|
18
|
+
chain?: ActivityChain;
|
|
19
|
+
createdAt?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface GameConfigs {
|
|
22
|
+
admins: string[];
|
|
23
|
+
gameToken: TokenDataDoc;
|
|
24
|
+
gameFees: number;
|
|
25
|
+
gameMinBet: string;
|
|
26
|
+
gameRevenue: string;
|
|
27
|
+
jackpotChance: number;
|
|
28
|
+
jackpotBalance: string;
|
|
29
|
+
jackpotThreshold: string;
|
|
30
|
+
jackpotPercentage: number;
|
|
31
|
+
roundTime: number;
|
|
32
|
+
lastGameId: number;
|
|
33
|
+
isPaused: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface BoberWheelPlayer {
|
|
36
|
+
gameId: number;
|
|
37
|
+
player: string;
|
|
38
|
+
playerProfile?: string;
|
|
39
|
+
playerUsername?: string;
|
|
40
|
+
value: string;
|
|
41
|
+
valueShort: number;
|
|
42
|
+
jackpot: string;
|
|
43
|
+
startsAt: number;
|
|
44
|
+
activityType?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface BoberWheelGame {
|
|
47
|
+
players: BoberWheelPlayer[];
|
|
48
|
+
totalBet: string;
|
|
49
|
+
startsAt: number;
|
|
50
|
+
jackpot: string;
|
|
51
|
+
gameId: number;
|
|
52
|
+
winners: BoberWheelWinner[];
|
|
53
|
+
}
|
|
54
|
+
export interface BoberWheelWinner extends Pick<BoberWheelPlayer, 'gameId' | 'value' | 'valueShort'> {
|
|
55
|
+
wonJackpot: boolean;
|
|
56
|
+
winner: string;
|
|
57
|
+
winnerProfile?: string;
|
|
58
|
+
winnerUsername?: string;
|
|
59
|
+
activityType?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface BoberWheelPlayerStreamEvent extends BoberWheelPlayer {
|
|
62
|
+
activityType: string;
|
|
63
|
+
chain?: ActivityChain;
|
|
64
|
+
}
|
|
65
|
+
export interface BoberWheelWinnerStreamEvent extends BoberWheelWinner {
|
|
66
|
+
activityType: string;
|
|
67
|
+
chain?: ActivityChain;
|
|
68
|
+
}
|