@xoxno/types 1.0.232 → 1.0.234

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.
@@ -75,8 +75,8 @@ class CollectionProfileDoc {
75
75
  this.isVisible = true;
76
76
  this.isVerified = false;
77
77
  this.socials = new socials_1.SocialsDto();
78
- this.profile = '';
79
- this.banner = '';
78
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
79
+ this.banner = 'https://media.xoxno.com/utils/defaultBanner.webp';
80
80
  this.statistics = new statistics_1.StatisticsDto({
81
81
  other: new statistics_1.StatisticsOtherDto({
82
82
  followCount: 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);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.232",
3
+ "version": "1.0.234",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {