@xoxno/types 1.0.8 → 1.0.11
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/cosmos-db/cosmos-db-generic-filter.d.ts +5 -5
- package/dist/cosmos-db/cosmos-db-query.d.ts +2 -2
- package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.js +0 -1
- package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.d.ts +1 -1
- package/dist/entities/delegation-data/delegation-data-output.d.ts +7 -1
- package/dist/entities/search-data/filter-query.dto.d.ts +2 -0
- package/dist/entities/search-data/filter-query.dto.js +12 -0
- package/dist/entities/staking-data/staking-summary.dto.js +19 -42
- package/dist/entities/token-data/query-prices.enum.d.ts +0 -27
- package/dist/entities/token-data/query-prices.enum.js +0 -32
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/requests/collection/collection-mint-profile.filter.d.ts +2 -2
- package/dist/requests/collection/collection-offers.filter.d.ts +1 -1
- package/dist/requests/collection/collection-profile.filter.d.ts +4 -2
- package/dist/requests/collection/collection-stats.filter.d.ts +1 -1
- package/dist/requests/lending/lending-market-profile.filter.d.ts +1 -1
- package/dist/requests/nft-activity-data/nft-activity.filter.d.ts +1 -1
- package/dist/requests/nft-data/nft-doc.filter.d.ts +4 -4
- package/dist/requests/nft-data/nft-offer-doc.filter.d.ts +2 -2
- package/dist/requests/nft-data/nft-offer-doc.filter.js +1 -1
- package/package.json +3 -3
- package/dist/entities/bober-battle/battle-sc-endpoints.enum.d.ts +0 -14
- package/dist/entities/bober-battle/battle-sc-endpoints.enum.js +0 -19
- package/dist/entities/bober-battle/battle-sc-event-name.enum.d.ts +0 -9
- package/dist/entities/bober-battle/battle-sc-event-name.enum.js +0 -14
|
@@ -8,14 +8,14 @@ export declare class RangeFilter<T> {
|
|
|
8
8
|
max?: number;
|
|
9
9
|
field?: LeafKeyPaths<T>;
|
|
10
10
|
}
|
|
11
|
-
export declare class CosmosDbGenericFilter {
|
|
12
|
-
filters: Record<string, object | boolean | string | string[] | number | number[] | RangeFilter<
|
|
13
|
-
select?:
|
|
14
|
-
orderBy?:
|
|
11
|
+
export declare class CosmosDbGenericFilter<T> {
|
|
12
|
+
filters: Record<string, object | boolean | string | string[] | number | number[] | RangeFilter<T>[] | NftMetadataAttributes[]>;
|
|
13
|
+
select?: (LeafKeyPaths<T> | keyof T)[];
|
|
14
|
+
orderBy?: `${LeafKeyPaths<T>} ${'asc' | 'desc'}`[];
|
|
15
15
|
includeCount?: boolean;
|
|
16
16
|
strictSelect?: boolean;
|
|
17
17
|
top?: number;
|
|
18
18
|
skip?: number;
|
|
19
|
-
constructor(props?: Partial<CosmosDbGenericFilter
|
|
19
|
+
constructor(props?: Partial<CosmosDbGenericFilter<T>>);
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -60,12 +60,12 @@ export declare class CosmosDbQueryBuilder {
|
|
|
60
60
|
orderBy(field: string, direction: QueryOrderDirection): CosmosDbQueryBuilder;
|
|
61
61
|
setOffset(offset: number): CosmosDbQueryBuilder;
|
|
62
62
|
setLimit(limit: number): CosmosDbQueryBuilder;
|
|
63
|
-
selectFields(fields: string[]): CosmosDbQueryBuilder;
|
|
63
|
+
selectFields(fields: (string | number | symbol)[]): CosmosDbQueryBuilder;
|
|
64
64
|
count(): this;
|
|
65
65
|
buildSqlQuery(applyPagination?: boolean): SqlQuerySpec;
|
|
66
66
|
private buildCustomProjection;
|
|
67
67
|
private getSqlOperator;
|
|
68
|
-
fromFilter(filter: CosmosDbGenericFilter): CosmosDbQueryBuilder;
|
|
68
|
+
fromFilter<T>(filter: CosmosDbGenericFilter<T>): CosmosDbQueryBuilder;
|
|
69
69
|
getMintProfilePricesQueryAndParams(mintToken: string[]): {
|
|
70
70
|
filterString: string;
|
|
71
71
|
parameters: Record<string, string>;
|
|
@@ -9,7 +9,7 @@ export declare class EventGuestFilterCriteriaDto {
|
|
|
9
9
|
questionnaireFilled?: boolean;
|
|
10
10
|
range?: RangeFilter<EventGuestDoc>[];
|
|
11
11
|
}
|
|
12
|
-
export declare class EventGuestFilter extends CosmosDbGenericFilter {
|
|
12
|
+
export declare class EventGuestFilter extends CosmosDbGenericFilter<EventGuestDoc> {
|
|
13
13
|
filters: {
|
|
14
14
|
searchText?: string;
|
|
15
15
|
dataType?: string[];
|
|
@@ -11,7 +11,7 @@ export declare class EventInvitationFilterCriteriaDto {
|
|
|
11
11
|
isUsed?: boolean;
|
|
12
12
|
range?: RangeFilter<EventInvitationDoc>[];
|
|
13
13
|
}
|
|
14
|
-
export declare class EventInvitationFilter extends CosmosDbGenericFilter {
|
|
14
|
+
export declare class EventInvitationFilter extends CosmosDbGenericFilter<EventInvitationDoc> {
|
|
15
15
|
filters: {
|
|
16
16
|
searchText?: string;
|
|
17
17
|
dataType?: string[];
|
|
@@ -13,7 +13,7 @@ export declare class EventExtraProperties {
|
|
|
13
13
|
guestSummary?: boolean;
|
|
14
14
|
startsFrom?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare class EventProfileFilter extends CosmosDbGenericFilter {
|
|
16
|
+
export declare class EventProfileFilter extends CosmosDbGenericFilter<EventProfileDoc> {
|
|
17
17
|
filters: {
|
|
18
18
|
searchText?: string;
|
|
19
19
|
area?: string[];
|
|
@@ -7,7 +7,7 @@ export declare class EventReferralConfigFilterCriteriaDto {
|
|
|
7
7
|
isSelfService?: boolean;
|
|
8
8
|
createdAt?: RangeFilter<EventReferralConfigDoc>[];
|
|
9
9
|
}
|
|
10
|
-
export declare class EventReferralConfigFilter extends CosmosDbGenericFilter {
|
|
10
|
+
export declare class EventReferralConfigFilter extends CosmosDbGenericFilter<EventReferralConfigDoc> {
|
|
11
11
|
filters: {
|
|
12
12
|
searchText?: string;
|
|
13
13
|
ownerId?: string;
|
|
@@ -12,7 +12,7 @@ export declare class EventReferralFilterCriteriaDto {
|
|
|
12
12
|
conditionType?: ReferralConditionType[];
|
|
13
13
|
createdAt?: RangeFilter<EventReferralDoc>[];
|
|
14
14
|
}
|
|
15
|
-
export declare class EventReferralFilter extends CosmosDbGenericFilter {
|
|
15
|
+
export declare class EventReferralFilter extends CosmosDbGenericFilter<EventReferralDoc> {
|
|
16
16
|
filters: {
|
|
17
17
|
searchText?: string;
|
|
18
18
|
referralCode?: string[];
|
|
@@ -12,7 +12,7 @@ export declare class EventVoucherFilterCriteriaDto {
|
|
|
12
12
|
ownerId?: string;
|
|
13
13
|
range?: RangeFilter<EventVoucherDoc>[];
|
|
14
14
|
}
|
|
15
|
-
export declare class EventVoucherFilter extends CosmosDbGenericFilter {
|
|
15
|
+
export declare class EventVoucherFilter extends CosmosDbGenericFilter<EventVoucherDoc> {
|
|
16
16
|
filters: {
|
|
17
17
|
searchText?: string;
|
|
18
18
|
code?: string[];
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
export interface UndelegateInfo {
|
|
2
|
+
id: string;
|
|
3
|
+
value: string;
|
|
4
|
+
timestamp: number;
|
|
5
|
+
valueShort: number;
|
|
6
|
+
}
|
|
1
7
|
export interface DelegationDataOutput {
|
|
2
8
|
address: string;
|
|
3
9
|
contract: string;
|
|
4
10
|
activeStake: string;
|
|
5
11
|
activeStakeShort: number;
|
|
6
|
-
unDelegateInfo:
|
|
12
|
+
unDelegateInfo: UndelegateInfo;
|
|
7
13
|
claimableRewards: number;
|
|
8
14
|
claimableRewardsShort: number;
|
|
9
15
|
totalUnbondEligible: string;
|
|
@@ -13,6 +13,10 @@ exports.FilterQueryDto = void 0;
|
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
class FilterQueryDto {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.top = 25;
|
|
18
|
+
this.skip = 0;
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
exports.FilterQueryDto = FilterQueryDto;
|
|
18
22
|
__decorate([
|
|
@@ -23,3 +27,11 @@ __decorate([
|
|
|
23
27
|
(0, class_validator_1.IsString)(),
|
|
24
28
|
__metadata("design:type", String)
|
|
25
29
|
], FilterQueryDto.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ required: false, type: 'integer' }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], FilterQueryDto.prototype, "top", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({ required: false, type: 'integer' }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], FilterQueryDto.prototype, "skip", void 0);
|
|
@@ -1,51 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.StakingPostDTO = void 0;
|
|
13
4
|
// file: dtos/staking-summary.dto.ts
|
|
14
5
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
6
|
const staking_pool_doc_1 = require("../../cosmos-db/documents/staking/staking-pool-doc");
|
|
16
|
-
class Reward {
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], Reward.prototype, "rewardBalanceShort", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, swagger_1.ApiProperty)({ description: 'Reward per epoch short', example: 8000 }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], Reward.prototype, "rewardPerEpochShort", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, swagger_1.ApiProperty)({ description: 'Reward per day per NFT', example: 1 }),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], Reward.prototype, "rewardPerDayPerNft", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, swagger_1.ApiProperty)({ description: 'USD value', example: 27.64023234925034 }),
|
|
47
|
-
__metadata("design:type", Number)
|
|
48
|
-
], Reward.prototype, "usdValue", void 0);
|
|
7
|
+
// class Reward {
|
|
8
|
+
// @ApiProperty({ description: 'Token identifier', example: 'RARE-99e8b0' })
|
|
9
|
+
// tokenIdentifier!: string;
|
|
10
|
+
// @ApiProperty({ description: 'Token nonce', example: 0 })
|
|
11
|
+
// tokenNonce!: number;
|
|
12
|
+
// @ApiProperty({
|
|
13
|
+
// description: 'Reward balance',
|
|
14
|
+
// example: '322605500000000000000000',
|
|
15
|
+
// })
|
|
16
|
+
// rewardBalance!: string;
|
|
17
|
+
// @ApiProperty({ description: 'Short reward balance', example: 322605.5 })
|
|
18
|
+
// rewardBalanceShort!: number;
|
|
19
|
+
// @ApiProperty({ description: 'Reward per epoch short', example: 8000 })
|
|
20
|
+
// rewardPerEpochShort!: number;
|
|
21
|
+
// @ApiProperty({ description: 'Reward per day per NFT', example: 1 })
|
|
22
|
+
// rewardPerDayPerNft!: number;
|
|
23
|
+
// @ApiProperty({ description: 'USD value', example: 27.64023234925034 })
|
|
24
|
+
// usdValue!: number;
|
|
25
|
+
// }
|
|
49
26
|
// export class StakingSummary {
|
|
50
27
|
// @ApiProperty({ description: 'Pool ID', example: 3 })
|
|
51
28
|
// poolId: number;
|
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
export declare enum QueryPricesSCEndpoints {
|
|
2
|
-
GET_PRICES = "getPrices",
|
|
3
|
-
GET_ASH_PRICES = "getAshPrices",
|
|
4
|
-
GET_ONE_PRICES = "getOneDexPrices",
|
|
5
|
-
GET_XEXCHANGE_PRICES = "getExchangePrices",
|
|
6
|
-
GET_MARKETS = "getMarkets",
|
|
7
|
-
GET_MARKETS_INFO = "getMarketsInfo",
|
|
8
|
-
GET_MARKET_MEMBERS = "getMarketMembers",
|
|
9
|
-
GET_MARKET_MEMBERS_INFO = "getMarketMembersInfo",
|
|
10
|
-
GET_MEMBER_INFO = "getMemberInfo",
|
|
11
|
-
GET_MARKET_MEMBER_INFO = "getMarketMemberInfo",
|
|
12
|
-
GET_MARKET_INFO = "getMarketInfo"
|
|
13
|
-
}
|
|
14
|
-
export declare enum OneDexEndpoints {
|
|
15
|
-
GET_MAIN_PAIR_TOKENS = "getMainPairTokens",
|
|
16
|
-
GET_LAST_PAIR_ID = "getLastPairId",
|
|
17
|
-
VIEW_PAIRS_PAGINATED = "viewPairsPaginated"
|
|
18
|
-
}
|
|
19
|
-
export declare enum AshSwapEndpoints {
|
|
20
|
-
GET_ASH_SWAP_STABLE_POOLS = "getAshSwapStablePools",
|
|
21
|
-
GET_ASH_SWAP_V2_POOLS = "getAshSwapV2Pools"
|
|
22
|
-
}
|
|
23
|
-
export declare enum DexType {
|
|
24
|
-
XExchange = "XExchange",
|
|
25
|
-
OneDex = "OneDex",
|
|
26
|
-
AshSwap = "AshSwap"
|
|
27
|
-
}
|
|
28
1
|
export interface QueryPricesResponse {
|
|
29
2
|
first_token_id: string;
|
|
30
3
|
second_token_id: string;
|
|
@@ -1,34 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DexType = exports.AshSwapEndpoints = exports.OneDexEndpoints = exports.QueryPricesSCEndpoints = void 0;
|
|
4
|
-
var QueryPricesSCEndpoints;
|
|
5
|
-
(function (QueryPricesSCEndpoints) {
|
|
6
|
-
QueryPricesSCEndpoints["GET_PRICES"] = "getPrices";
|
|
7
|
-
QueryPricesSCEndpoints["GET_ASH_PRICES"] = "getAshPrices";
|
|
8
|
-
QueryPricesSCEndpoints["GET_ONE_PRICES"] = "getOneDexPrices";
|
|
9
|
-
QueryPricesSCEndpoints["GET_XEXCHANGE_PRICES"] = "getExchangePrices";
|
|
10
|
-
QueryPricesSCEndpoints["GET_MARKETS"] = "getMarkets";
|
|
11
|
-
QueryPricesSCEndpoints["GET_MARKETS_INFO"] = "getMarketsInfo";
|
|
12
|
-
QueryPricesSCEndpoints["GET_MARKET_MEMBERS"] = "getMarketMembers";
|
|
13
|
-
QueryPricesSCEndpoints["GET_MARKET_MEMBERS_INFO"] = "getMarketMembersInfo";
|
|
14
|
-
QueryPricesSCEndpoints["GET_MEMBER_INFO"] = "getMemberInfo";
|
|
15
|
-
QueryPricesSCEndpoints["GET_MARKET_MEMBER_INFO"] = "getMarketMemberInfo";
|
|
16
|
-
QueryPricesSCEndpoints["GET_MARKET_INFO"] = "getMarketInfo";
|
|
17
|
-
})(QueryPricesSCEndpoints || (exports.QueryPricesSCEndpoints = QueryPricesSCEndpoints = {}));
|
|
18
|
-
var OneDexEndpoints;
|
|
19
|
-
(function (OneDexEndpoints) {
|
|
20
|
-
OneDexEndpoints["GET_MAIN_PAIR_TOKENS"] = "getMainPairTokens";
|
|
21
|
-
OneDexEndpoints["GET_LAST_PAIR_ID"] = "getLastPairId";
|
|
22
|
-
OneDexEndpoints["VIEW_PAIRS_PAGINATED"] = "viewPairsPaginated";
|
|
23
|
-
})(OneDexEndpoints || (exports.OneDexEndpoints = OneDexEndpoints = {}));
|
|
24
|
-
var AshSwapEndpoints;
|
|
25
|
-
(function (AshSwapEndpoints) {
|
|
26
|
-
AshSwapEndpoints["GET_ASH_SWAP_STABLE_POOLS"] = "getAshSwapStablePools";
|
|
27
|
-
AshSwapEndpoints["GET_ASH_SWAP_V2_POOLS"] = "getAshSwapV2Pools";
|
|
28
|
-
})(AshSwapEndpoints || (exports.AshSwapEndpoints = AshSwapEndpoints = {}));
|
|
29
|
-
var DexType;
|
|
30
|
-
(function (DexType) {
|
|
31
|
-
DexType["XExchange"] = "XExchange";
|
|
32
|
-
DexType["OneDex"] = "OneDex";
|
|
33
|
-
DexType["AshSwap"] = "AshSwap";
|
|
34
|
-
})(DexType || (exports.DexType = DexType = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -135,8 +135,6 @@ export * from './cosmos-db/documents/user/user-settings.doc';
|
|
|
135
135
|
export * from './entities/auth/auth-strategy.enum';
|
|
136
136
|
export * from './entities/auth/login-request.dto';
|
|
137
137
|
export * from './entities/auth/role.enum';
|
|
138
|
-
export * from './entities/bober-battle/battle-sc-endpoints.enum';
|
|
139
|
-
export * from './entities/bober-battle/battle-sc-event-name.enum';
|
|
140
138
|
export * from './entities/bober-battle/game-type';
|
|
141
139
|
export * from './entities/delegation-data/delegation-data-output';
|
|
142
140
|
export * from './entities/delegation-data/provider-data';
|
package/dist/index.js
CHANGED
|
@@ -151,8 +151,6 @@ __exportStar(require("./cosmos-db/documents/user/user-settings.doc"), exports);
|
|
|
151
151
|
__exportStar(require("./entities/auth/auth-strategy.enum"), exports);
|
|
152
152
|
__exportStar(require("./entities/auth/login-request.dto"), exports);
|
|
153
153
|
__exportStar(require("./entities/auth/role.enum"), exports);
|
|
154
|
-
__exportStar(require("./entities/bober-battle/battle-sc-endpoints.enum"), exports);
|
|
155
|
-
__exportStar(require("./entities/bober-battle/battle-sc-event-name.enum"), exports);
|
|
156
154
|
__exportStar(require("./entities/bober-battle/game-type"), exports);
|
|
157
155
|
__exportStar(require("./entities/delegation-data/delegation-data-output"), exports);
|
|
158
156
|
__exportStar(require("./entities/delegation-data/provider-data"), exports);
|
|
@@ -2,7 +2,7 @@ import { ActivityChain } from '../../common/enums';
|
|
|
2
2
|
import { CosmosDbGenericFilter, RangeFilter } from '../../cosmos-db/cosmos-db-generic-filter';
|
|
3
3
|
import { CollectionDataType } from '../../cosmos-db/documents/collection/dataTypes';
|
|
4
4
|
import { CollectionMintProfileDoc } from '../../cosmos-db/documents/collection/mintProfile';
|
|
5
|
-
export declare class CollectionMintProfileFilter extends CosmosDbGenericFilter {
|
|
5
|
+
export declare class CollectionMintProfileFilter extends CosmosDbGenericFilter<CollectionMintProfileDoc> {
|
|
6
6
|
filters: {
|
|
7
7
|
dataType?: CollectionDataType;
|
|
8
8
|
collection?: string[];
|
|
@@ -14,7 +14,7 @@ export declare class CollectionMintProfileFilter extends CosmosDbGenericFilter {
|
|
|
14
14
|
activeMint?: boolean;
|
|
15
15
|
chain?: ActivityChain[];
|
|
16
16
|
};
|
|
17
|
-
orderBy
|
|
17
|
+
orderBy: "startTime desc"[];
|
|
18
18
|
strictSelect?: boolean;
|
|
19
19
|
constructor(props: Partial<CollectionMintProfileFilter>);
|
|
20
20
|
}
|
|
@@ -13,7 +13,7 @@ export declare class CollectionOffersFilterCriteriaDto {
|
|
|
13
13
|
isActive?: boolean;
|
|
14
14
|
withAttributes?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare class CollectionOffersFilter extends CosmosDbGenericFilter {
|
|
16
|
+
export declare class CollectionOffersFilter extends CosmosDbGenericFilter<GlobalOfferDoc> {
|
|
17
17
|
filters: {
|
|
18
18
|
dataType?: CollectionDataType;
|
|
19
19
|
collection?: string[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ActivityChain } from '../../common/enums';
|
|
2
|
-
import { CosmosDbGenericFilter } from '../../cosmos-db/cosmos-db-generic-filter';
|
|
2
|
+
import { CosmosDbGenericFilter, RangeFilter } from '../../cosmos-db/cosmos-db-generic-filter';
|
|
3
3
|
import { CollectionDataType } from '../../cosmos-db/documents/collection/dataTypes';
|
|
4
|
-
|
|
4
|
+
import { CollectionProfileDoc } from '../../cosmos-db/documents/collection/profile';
|
|
5
|
+
export declare class CollectionProfileFilter extends CosmosDbGenericFilter<CollectionProfileDoc> {
|
|
5
6
|
filters: {
|
|
6
7
|
dataType?: CollectionDataType;
|
|
7
8
|
collection?: string[];
|
|
@@ -12,6 +13,7 @@ export declare class CollectionProfileFilter extends CosmosDbGenericFilter {
|
|
|
12
13
|
isVerified?: boolean;
|
|
13
14
|
isMintable?: boolean;
|
|
14
15
|
chain?: ActivityChain[];
|
|
16
|
+
range?: RangeFilter<CollectionProfileDoc>[];
|
|
15
17
|
};
|
|
16
18
|
strictSelect?: boolean;
|
|
17
19
|
constructor(props: Partial<CollectionProfileFilter>);
|
|
@@ -8,7 +8,7 @@ export declare class CollectionStatsFilterCriteriaDto {
|
|
|
8
8
|
verifiedOnly?: boolean;
|
|
9
9
|
range?: RangeFilter<CollectionStatsDoc>[];
|
|
10
10
|
}
|
|
11
|
-
export declare class CollectionStatsFilter extends CosmosDbGenericFilter {
|
|
11
|
+
export declare class CollectionStatsFilter extends CosmosDbGenericFilter<CollectionStatsDoc> {
|
|
12
12
|
filters: {
|
|
13
13
|
dataType?: CollectionDataType;
|
|
14
14
|
collection?: string[];
|
|
@@ -17,7 +17,7 @@ export declare class LendingMarketProfileExtraProperties {
|
|
|
17
17
|
oraclePrice?: boolean;
|
|
18
18
|
participants?: boolean;
|
|
19
19
|
}
|
|
20
|
-
export declare class LendingMarketProfileFilter extends CosmosDbGenericFilter {
|
|
20
|
+
export declare class LendingMarketProfileFilter extends CosmosDbGenericFilter<LendingMarketProfileDoc> {
|
|
21
21
|
filters: {
|
|
22
22
|
range?: RangeFilter<LendingMarketProfileDoc>[];
|
|
23
23
|
token?: string[];
|
|
@@ -18,7 +18,7 @@ export declare class NftActivityFilterCriteriaDto {
|
|
|
18
18
|
activityData?: ActivityDataDto;
|
|
19
19
|
pk?: string[];
|
|
20
20
|
}
|
|
21
|
-
export declare class NftActivityFilter extends CosmosDbGenericFilter {
|
|
21
|
+
export declare class NftActivityFilter extends CosmosDbGenericFilter<NftActivityDoc> {
|
|
22
22
|
filters: {
|
|
23
23
|
txHash?: string[];
|
|
24
24
|
activityAddress?: string[];
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { XoxnoAuctionTypeString } from '../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum';
|
|
5
|
-
import {
|
|
5
|
+
import { NftProps } from '../../cosmos-db/documents/token/nft-details.doc';
|
|
6
6
|
export declare class SaleInfoFilterDto {
|
|
7
7
|
seller?: string[];
|
|
8
8
|
paymentToken?: string[];
|
|
@@ -22,7 +22,7 @@ export declare class NftDocFilterCriteriaDto {
|
|
|
22
22
|
owner?: string[];
|
|
23
23
|
currentOwner?: string[];
|
|
24
24
|
saleInfo?: SaleInfoFilterDto;
|
|
25
|
-
range?: RangeFilter<
|
|
25
|
+
range?: RangeFilter<NftProps>[];
|
|
26
26
|
metadata?: MetadataAttributesDto;
|
|
27
27
|
wasProcessed?: boolean;
|
|
28
28
|
cp_staked?: boolean;
|
|
@@ -30,7 +30,7 @@ export declare class NftDocFilterCriteriaDto {
|
|
|
30
30
|
verifiedOnly?: boolean;
|
|
31
31
|
sftOriginalDoc?: boolean;
|
|
32
32
|
}
|
|
33
|
-
export declare class NftDocFilter extends CosmosDbGenericFilter {
|
|
33
|
+
export declare class NftDocFilter extends CosmosDbGenericFilter<NftProps> {
|
|
34
34
|
filters: {
|
|
35
35
|
dataType?: string[];
|
|
36
36
|
identifier?: string[];
|
|
@@ -47,7 +47,7 @@ export declare class NftDocFilter extends CosmosDbGenericFilter {
|
|
|
47
47
|
marketplace?: string[];
|
|
48
48
|
auctionType?: XoxnoAuctionTypeString[];
|
|
49
49
|
};
|
|
50
|
-
range?: RangeFilter<
|
|
50
|
+
range?: RangeFilter<NftProps>[];
|
|
51
51
|
metadata?: {
|
|
52
52
|
attributes?: NftMetadataAttributes[];
|
|
53
53
|
};
|
|
@@ -9,7 +9,7 @@ export declare class NftOfferDocFilterCriteria {
|
|
|
9
9
|
marketplace?: string[];
|
|
10
10
|
range?: RangeFilter<NftOfferDoc>[];
|
|
11
11
|
}
|
|
12
|
-
export declare class NftOfferDocFilter extends CosmosDbGenericFilter {
|
|
12
|
+
export declare class NftOfferDocFilter extends CosmosDbGenericFilter<NftOfferDoc> {
|
|
13
13
|
filters: {
|
|
14
14
|
dataType?: string[];
|
|
15
15
|
isActive?: boolean;
|
|
@@ -19,7 +19,7 @@ export declare class NftOfferDocFilter extends CosmosDbGenericFilter {
|
|
|
19
19
|
marketplace?: string[];
|
|
20
20
|
range?: RangeFilter<NftOfferDoc>[];
|
|
21
21
|
};
|
|
22
|
-
orderBy?:
|
|
22
|
+
orderBy?: "priceShort desc"[] | undefined;
|
|
23
23
|
constructor(props: Partial<NftOfferDocFilter>);
|
|
24
24
|
private setPk;
|
|
25
25
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Shared types and utilities for XOXNO API.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
11
|
+
"build": "node generate-barrel.mjs && eslint 'src/index.ts' --fix && tsc",
|
|
12
12
|
"build:watch": "tsc --watch",
|
|
13
|
-
"prepublishOnly": "
|
|
13
|
+
"prepublishOnly": "npm run build",
|
|
14
14
|
"lint": "eslint 'src/**/*.ts'",
|
|
15
15
|
"lint:fix": "eslint 'src/**/*.ts' --fix",
|
|
16
16
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
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 = {}));
|