@xoxno/types 1.0.12 → 1.0.14
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/entities/airdrop/airdrop.dto.d.ts +33 -0
- package/dist/entities/airdrop/airdrop.dto.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/requests/nft-activity-data/user-stats.d.ts +1 -4
- package/dist/requests/nft-activity-data/user-stats.js +2 -14
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ActivityChain } from '../../common/enums';
|
|
2
|
+
export type IAirdropRaw = {
|
|
3
|
+
wallet: string;
|
|
4
|
+
tokenAllocation: number;
|
|
5
|
+
totalScore: number;
|
|
6
|
+
rank: number;
|
|
7
|
+
isClaimed?: boolean;
|
|
8
|
+
signature?: {
|
|
9
|
+
signature: string;
|
|
10
|
+
data: string;
|
|
11
|
+
};
|
|
12
|
+
amount?: string;
|
|
13
|
+
};
|
|
14
|
+
export interface Wallet {
|
|
15
|
+
address: string;
|
|
16
|
+
addressTrimmed: string;
|
|
17
|
+
profile: string;
|
|
18
|
+
username: string;
|
|
19
|
+
isVerified: boolean;
|
|
20
|
+
chain?: ActivityChain;
|
|
21
|
+
}
|
|
22
|
+
export type IAirdrop = {
|
|
23
|
+
wallet: Wallet;
|
|
24
|
+
tokenAllocation: number;
|
|
25
|
+
totalScore: number;
|
|
26
|
+
rank: number;
|
|
27
|
+
isClaimed?: boolean;
|
|
28
|
+
signature?: {
|
|
29
|
+
signature: string;
|
|
30
|
+
data: string;
|
|
31
|
+
};
|
|
32
|
+
amount?: string;
|
|
33
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ export * from './cosmos-db/documents/user/user-favorite-type.enum';
|
|
|
132
132
|
export * from './cosmos-db/documents/user/user-favorite.doc';
|
|
133
133
|
export * from './cosmos-db/documents/user/user-profile.doc';
|
|
134
134
|
export * from './cosmos-db/documents/user/user-settings.doc';
|
|
135
|
+
export * from './entities/airdrop/airdrop.dto';
|
|
135
136
|
export * from './entities/auth/auth-strategy.enum';
|
|
136
137
|
export * from './entities/auth/login-request.dto';
|
|
137
138
|
export * from './entities/auth/role.enum';
|
package/dist/index.js
CHANGED
|
@@ -148,6 +148,7 @@ __exportStar(require("./cosmos-db/documents/user/user-favorite-type.enum"), expo
|
|
|
148
148
|
__exportStar(require("./cosmos-db/documents/user/user-favorite.doc"), exports);
|
|
149
149
|
__exportStar(require("./cosmos-db/documents/user/user-profile.doc"), exports);
|
|
150
150
|
__exportStar(require("./cosmos-db/documents/user/user-settings.doc"), exports);
|
|
151
|
+
__exportStar(require("./entities/airdrop/airdrop.dto"), exports);
|
|
151
152
|
__exportStar(require("./entities/auth/auth-strategy.enum"), exports);
|
|
152
153
|
__exportStar(require("./entities/auth/login-request.dto"), exports);
|
|
153
154
|
__exportStar(require("./entities/auth/role.enum"), exports);
|
|
@@ -17,7 +17,7 @@ declare class PriceDataDto {
|
|
|
17
17
|
usdValue: number;
|
|
18
18
|
nftInfo: Partial<NftDoc>;
|
|
19
19
|
}
|
|
20
|
-
declare class UserStatsDto {
|
|
20
|
+
export declare class UserStatsDto {
|
|
21
21
|
wallet: WalletDto;
|
|
22
22
|
totalVolume: number;
|
|
23
23
|
totalTrades: number;
|
|
@@ -39,7 +39,4 @@ declare class UserStatsDto {
|
|
|
39
39
|
sellerMaxPriceData: PriceDataDto;
|
|
40
40
|
sellerMinPriceData: PriceDataDto;
|
|
41
41
|
}
|
|
42
|
-
export declare class GetUsersStatsResponseDto {
|
|
43
|
-
usersStats: UserStatsDto[];
|
|
44
|
-
}
|
|
45
42
|
export {};
|
|
@@ -9,7 +9,7 @@ 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.
|
|
12
|
+
exports.UserStatsDto = 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");
|
|
@@ -90,6 +90,7 @@ __decorate([
|
|
|
90
90
|
], PriceDataDto.prototype, "nftInfo", void 0);
|
|
91
91
|
class UserStatsDto {
|
|
92
92
|
}
|
|
93
|
+
exports.UserStatsDto = UserStatsDto;
|
|
93
94
|
__decorate([
|
|
94
95
|
(0, swagger_1.ApiProperty)({ type: WalletDto, description: 'User wallet information' }),
|
|
95
96
|
(0, class_validator_1.ValidateNested)(),
|
|
@@ -195,16 +196,3 @@ __decorate([
|
|
|
195
196
|
(0, class_transformer_1.Type)(() => PriceDataDto),
|
|
196
197
|
__metadata("design:type", PriceDataDto)
|
|
197
198
|
], UserStatsDto.prototype, "sellerMinPriceData", void 0);
|
|
198
|
-
class GetUsersStatsResponseDto {
|
|
199
|
-
}
|
|
200
|
-
exports.GetUsersStatsResponseDto = GetUsersStatsResponseDto;
|
|
201
|
-
__decorate([
|
|
202
|
-
(0, swagger_1.ApiProperty)({
|
|
203
|
-
type: UserStatsDto,
|
|
204
|
-
isArray: true,
|
|
205
|
-
description: 'List of user stats',
|
|
206
|
-
}),
|
|
207
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
208
|
-
(0, class_transformer_1.Type)(() => UserStatsDto),
|
|
209
|
-
__metadata("design:type", Array)
|
|
210
|
-
], GetUsersStatsResponseDto.prototype, "usersStats", void 0);
|