@xoxno/types 1.0.205 → 1.0.207

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.
@@ -2,6 +2,11 @@ import { LendingDataType } from '../../../enums/lending-data-type.enum';
2
2
  import { LendingEModeCategoryProfileDoc } from './lending-emode-category-profile.doc';
3
3
  import { LendingMarketProfile } from './lending-market-profile.doc';
4
4
  import { PositionMode } from '../../../enums/lending.enum';
5
+ export declare class InitialPaymentMultiplier {
6
+ initialPaymentAmount: string;
7
+ initialPaymentToken: string;
8
+ usdValue: string;
9
+ }
5
10
  export declare class LendingAccountProfileDoc {
6
11
  dataType: LendingDataType;
7
12
  identifier: string;
@@ -23,6 +28,7 @@ export declare class LendingAccountProfileDoc {
23
28
  leverageInitialSupplyPrice?: number;
24
29
  leverageInitialBorrow?: number;
25
30
  leverageInitialBorrowPrice?: number;
31
+ initialPaymentMultiplier?: InitialPaymentMultiplier;
26
32
  id: string;
27
33
  pk: string;
28
34
  _ts: number;
@@ -9,12 +9,36 @@ 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.LendingAccountProfile = exports.LendingAccountProfileDoc = void 0;
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
15
  const lending_emode_category_profile_doc_1 = require("./lending-emode-category-profile.doc");
16
16
  const lending_market_profile_doc_1 = require("./lending-market-profile.doc");
17
17
  const lending_enum_1 = require("../../../enums/lending.enum");
18
+ class InitialPaymentMultiplier {
19
+ }
20
+ exports.InitialPaymentMultiplier = InitialPaymentMultiplier;
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({
23
+ description: 'Initial payment amount',
24
+ example: 1.0,
25
+ }),
26
+ __metadata("design:type", String)
27
+ ], InitialPaymentMultiplier.prototype, "initialPaymentAmount", void 0);
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({
30
+ description: 'Initial payment token',
31
+ example: 1.0,
32
+ }),
33
+ __metadata("design:type", String)
34
+ ], InitialPaymentMultiplier.prototype, "initialPaymentToken", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({
37
+ description: 'USD value',
38
+ example: 1.0,
39
+ }),
40
+ __metadata("design:type", String)
41
+ ], InitialPaymentMultiplier.prototype, "usdValue", void 0);
18
42
  class LendingAccountProfileDoc {
19
43
  constructor(props) {
20
44
  this.dataType = lending_data_type_enum_1.LendingDataType.ACCOUNT_PROFILE;
@@ -189,6 +213,14 @@ __decorate([
189
213
  }),
190
214
  __metadata("design:type", Number)
191
215
  ], LendingAccountProfileDoc.prototype, "leverageInitialBorrowPrice", void 0);
216
+ __decorate([
217
+ (0, swagger_1.ApiProperty)({
218
+ description: 'Initial payment multiplier',
219
+ type: InitialPaymentMultiplier,
220
+ required: false,
221
+ }),
222
+ __metadata("design:type", InitialPaymentMultiplier)
223
+ ], LendingAccountProfileDoc.prototype, "initialPaymentMultiplier", void 0);
192
224
  __decorate([
193
225
  (0, swagger_1.ApiProperty)({
194
226
  description: 'Cosmos DB document identifier',
@@ -3,11 +3,6 @@ import { OwnerDto } from '../../../common/owner.dto';
3
3
  import { LendingEModeCategoryProfileDoc } from './lending-emode-category-profile.doc';
4
4
  import { LendingOracleUpdateStruct } from './lending-oracle';
5
5
  import { LendingIndexesDto } from '../../../requests/lending/lending-indexes.dto';
6
- export declare class InitialPaymentMultiplier {
7
- initialPaymentAmount: string;
8
- initialPaymentToken: number;
9
- usdValue: string;
10
- }
11
6
  export declare class LendingMarketProfileDoc {
12
7
  dataType: LendingDataType;
13
8
  token: string;
@@ -60,7 +55,6 @@ export declare class LendingMarketProfileDoc {
60
55
  flashLoanFee: string;
61
56
  canBorrowInIsolation: boolean;
62
57
  oracleProvider: LendingOracleUpdateStruct;
63
- initialPaymentMultiplier?: InitialPaymentMultiplier;
64
58
  id: string;
65
59
  pk: string;
66
60
  _ts: number;
@@ -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.LendingMarketProfileQuery = exports.LendingMarketProfile = exports.MarketExtraApy = exports.LendingMarketParticipants = exports.LendingMarketProfileDoc = exports.InitialPaymentMultiplier = void 0;
12
+ exports.LendingMarketProfileQuery = exports.LendingMarketProfile = exports.MarketExtraApy = exports.LendingMarketParticipants = exports.LendingMarketProfileDoc = 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
15
  const owner_dto_1 = require("../../../common/owner.dto");
@@ -17,30 +17,6 @@ const lending_emode_category_profile_doc_1 = require("./lending-emode-category-p
17
17
  const cosmos_db_paginated_response_dto_1 = require("../../cosmos-db-paginated-response.dto");
18
18
  const lending_oracle_1 = require("./lending-oracle");
19
19
  const lending_indexes_dto_1 = require("../../../requests/lending/lending-indexes.dto");
20
- class InitialPaymentMultiplier {
21
- }
22
- exports.InitialPaymentMultiplier = InitialPaymentMultiplier;
23
- __decorate([
24
- (0, swagger_1.ApiProperty)({
25
- description: 'Initial payment amount',
26
- example: 1.0,
27
- }),
28
- __metadata("design:type", String)
29
- ], InitialPaymentMultiplier.prototype, "initialPaymentAmount", void 0);
30
- __decorate([
31
- (0, swagger_1.ApiProperty)({
32
- description: 'Initial payment token',
33
- example: 1.0,
34
- }),
35
- __metadata("design:type", Number)
36
- ], InitialPaymentMultiplier.prototype, "initialPaymentToken", void 0);
37
- __decorate([
38
- (0, swagger_1.ApiProperty)({
39
- description: 'USD value',
40
- example: 1.0,
41
- }),
42
- __metadata("design:type", String)
43
- ], InitialPaymentMultiplier.prototype, "usdValue", void 0);
44
20
  class LendingMarketProfileDoc {
45
21
  constructor(props) {
46
22
  this.dataType = lending_data_type_enum_1.LendingDataType.MARKET_PROFILE;
@@ -330,14 +306,6 @@ __decorate([
330
306
  }),
331
307
  __metadata("design:type", lending_oracle_1.LendingOracleUpdateStruct)
332
308
  ], LendingMarketProfileDoc.prototype, "oracleProvider", void 0);
333
- __decorate([
334
- (0, swagger_1.ApiProperty)({
335
- description: 'Initial payment multiplier',
336
- type: InitialPaymentMultiplier,
337
- required: false,
338
- }),
339
- __metadata("design:type", InitialPaymentMultiplier)
340
- ], LendingMarketProfileDoc.prototype, "initialPaymentMultiplier", void 0);
341
309
  __decorate([
342
310
  (0, swagger_1.ApiProperty)({
343
311
  description: 'Cosmos DB document identifier',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.205",
3
+ "version": "1.0.207",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {