@xoxno/types 1.0.233 → 1.0.235
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/kusto/lending-position-status.d.ts +2 -0
- package/dist/common/kusto/lending-position-status.js +8 -0
- package/dist/cosmos-db/documents/lending/lending-account-profile.d.ts +1 -1
- package/dist/cosmos-db/documents/lending/lending-account-profile.js +1 -1
- package/dist/cosmos-db/documents/lending/lending-account-summary.d.ts +19 -0
- package/dist/cosmos-db/documents/lending/lending-account-summary.js +79 -0
- package/dist/cosmos-db/documents/short/short-nft.doc.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/requests/collection/pinned-collections.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OwnerDto } from '../owner.dto';
|
|
2
|
+
import { PositionMode } from '../../enums';
|
|
2
3
|
export declare class LendingPositionStatus {
|
|
3
4
|
position: number;
|
|
4
5
|
identifier: string;
|
|
@@ -7,5 +8,6 @@ export declare class LendingPositionStatus {
|
|
|
7
8
|
healthFactor: number;
|
|
8
9
|
wallet: OwnerDto;
|
|
9
10
|
isEMode: boolean;
|
|
11
|
+
positionMode: PositionMode;
|
|
10
12
|
constructor(props?: Partial<LendingPositionStatus>);
|
|
11
13
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.LendingPositionStatus = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const owner_dto_1 = require("../owner.dto");
|
|
15
|
+
const enums_1 = require("../../enums");
|
|
15
16
|
class LendingPositionStatus {
|
|
16
17
|
constructor(props) {
|
|
17
18
|
Object.assign(this, props);
|
|
@@ -67,3 +68,10 @@ __decorate([
|
|
|
67
68
|
}),
|
|
68
69
|
__metadata("design:type", Boolean)
|
|
69
70
|
], LendingPositionStatus.prototype, "isEMode", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
description: 'The position mode of the lending account',
|
|
74
|
+
enum: enums_1.PositionMode,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], LendingPositionStatus.prototype, "positionMode", void 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LendingDataType } from '../../../enums/lending-data-type.enum';
|
|
2
|
+
import { PositionMode } from '../../../enums/lending.enum';
|
|
2
3
|
import { LendingEModeCategoryProfileDoc } from './lending-emode-category-profile.doc';
|
|
3
4
|
import { LendingMarketProfile } from './lending-market-profile.doc';
|
|
4
|
-
import { PositionMode } from '../../../enums/lending.enum';
|
|
5
5
|
export declare class InitialPaymentMultiplier {
|
|
6
6
|
initialPaymentAmount: string;
|
|
7
7
|
initialPaymentToken: string;
|
|
@@ -12,9 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.LendingAccountProfile = exports.LendingAccountProfileDoc = exports.InitialPaymentMultiplier = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const lending_data_type_enum_1 = require("../../../enums/lending-data-type.enum");
|
|
15
|
+
const lending_enum_1 = require("../../../enums/lending.enum");
|
|
15
16
|
const lending_emode_category_profile_doc_1 = require("./lending-emode-category-profile.doc");
|
|
16
17
|
const lending_market_profile_doc_1 = require("./lending-market-profile.doc");
|
|
17
|
-
const lending_enum_1 = require("../../../enums/lending.enum");
|
|
18
18
|
class InitialPaymentMultiplier {
|
|
19
19
|
}
|
|
20
20
|
exports.InitialPaymentMultiplier = InitialPaymentMultiplier;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class SingleLendingAccountToken {
|
|
2
|
+
amount: string;
|
|
3
|
+
amountShort: number;
|
|
4
|
+
decimals: number;
|
|
5
|
+
liquidationThreshold: string;
|
|
6
|
+
ltv: string;
|
|
7
|
+
usdPrice: number;
|
|
8
|
+
apy: string;
|
|
9
|
+
token: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class LendingAccountSummary {
|
|
12
|
+
supplied: SingleLendingAccountToken[];
|
|
13
|
+
borrowed: SingleLendingAccountToken[];
|
|
14
|
+
liquidationCollateralInDollars: string;
|
|
15
|
+
collateralInDollars: string;
|
|
16
|
+
borrowedInDollars: string;
|
|
17
|
+
totalApy: string;
|
|
18
|
+
healthFactor: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LendingAccountSummary = exports.SingleLendingAccountToken = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class SingleLendingAccountToken {
|
|
15
|
+
}
|
|
16
|
+
exports.SingleLendingAccountToken = SingleLendingAccountToken;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], SingleLendingAccountToken.prototype, "amount", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], SingleLendingAccountToken.prototype, "amountShort", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], SingleLendingAccountToken.prototype, "decimals", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SingleLendingAccountToken.prototype, "liquidationThreshold", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SingleLendingAccountToken.prototype, "ltv", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], SingleLendingAccountToken.prototype, "usdPrice", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], SingleLendingAccountToken.prototype, "apy", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], SingleLendingAccountToken.prototype, "token", void 0);
|
|
49
|
+
class LendingAccountSummary {
|
|
50
|
+
}
|
|
51
|
+
exports.LendingAccountSummary = LendingAccountSummary;
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)(),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], LendingAccountSummary.prototype, "supplied", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)(),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], LendingAccountSummary.prototype, "borrowed", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], LendingAccountSummary.prototype, "liquidationCollateralInDollars", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], LendingAccountSummary.prototype, "collateralInDollars", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], LendingAccountSummary.prototype, "borrowedInDollars", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, swagger_1.ApiProperty)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], LendingAccountSummary.prototype, "totalApy", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], LendingAccountSummary.prototype, "healthFactor", void 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NftDoc } from '../token/nft-details.doc';
|
|
2
|
-
declare type ShortNftDoc_base = Pick<NftDoc, "
|
|
2
|
+
declare type ShortNftDoc_base = Pick<NftDoc, "collection" | "identifier" | "name" | "url" | "wasProcessed" | "media" | "metadata">;
|
|
3
3
|
export declare type ShortNftDoc = ShortNftDoc_base ;
|
|
4
|
-
declare const ShortNftDocNest_base: import("@nestjs/common").Type<Pick<NftDoc, "
|
|
4
|
+
declare const ShortNftDocNest_base: import("@nestjs/common").Type<Pick<NftDoc, "collection" | "identifier" | "name" | "url" | "wasProcessed" | "media" | "metadata">>;
|
|
5
5
|
export declare class ShortNftDocNest extends ShortNftDocNest_base {
|
|
6
6
|
}
|
|
7
7
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from './cosmos-db/documents/external-payment/twispay-customer';
|
|
|
38
38
|
export * from './cosmos-db/documents/external-payment/twispay-payment-form';
|
|
39
39
|
export * from './cosmos-db/documents/external-payment/twispay-transaction';
|
|
40
40
|
export * from './cosmos-db/documents/lending/lending-account-profile';
|
|
41
|
+
export * from './cosmos-db/documents/lending/lending-account-summary';
|
|
41
42
|
export * from './cosmos-db/documents/lending/lending-emode-category-profile.doc';
|
|
42
43
|
export * from './cosmos-db/documents/lending/lending-market-profile.doc';
|
|
43
44
|
export * from './cosmos-db/documents/lending/lending-nft-attributes';
|
package/dist/index.js
CHANGED
|
@@ -54,6 +54,7 @@ __exportStar(require("./cosmos-db/documents/external-payment/twispay-customer"),
|
|
|
54
54
|
__exportStar(require("./cosmos-db/documents/external-payment/twispay-payment-form"), exports);
|
|
55
55
|
__exportStar(require("./cosmos-db/documents/external-payment/twispay-transaction"), exports);
|
|
56
56
|
__exportStar(require("./cosmos-db/documents/lending/lending-account-profile"), exports);
|
|
57
|
+
__exportStar(require("./cosmos-db/documents/lending/lending-account-summary"), exports);
|
|
57
58
|
__exportStar(require("./cosmos-db/documents/lending/lending-emode-category-profile.doc"), exports);
|
|
58
59
|
__exportStar(require("./cosmos-db/documents/lending/lending-market-profile.doc"), exports);
|
|
59
60
|
__exportStar(require("./cosmos-db/documents/lending/lending-nft-attributes"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CollectionProfileDoc } from '../../cosmos-db/documents/collection/profile';
|
|
2
|
-
declare type PinnedCollectionDto_base = Pick<CollectionProfileDoc, "description" | "profile" | "
|
|
2
|
+
declare type PinnedCollectionDto_base = Pick<CollectionProfileDoc, "description" | "profile" | "creator" | "collection" | "chain" | "name" | "isVerified" | "banner" | "isMintable">;
|
|
3
3
|
export declare type PinnedCollectionDto = PinnedCollectionDto_base ;
|
|
4
|
-
declare const PinnedCollectionDtoNest_base: import("@nestjs/common").Type<Pick<CollectionProfileDoc, "description" | "profile" | "
|
|
4
|
+
declare const PinnedCollectionDtoNest_base: import("@nestjs/common").Type<Pick<CollectionProfileDoc, "description" | "profile" | "creator" | "collection" | "chain" | "name" | "isVerified" | "banner" | "isMintable">>;
|
|
5
5
|
export declare class PinnedCollectionDtoNest extends PinnedCollectionDtoNest_base {
|
|
6
6
|
}
|
|
7
7
|
export {};
|