cecon-interfaces 1.8.50 → 1.8.52

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.
@@ -24,7 +24,7 @@ var GlobalSettingBinanceRateEntity = /** @class */ (function () {
24
24
  this.priceBrl = 0;
25
25
  this.priceUsd = 0;
26
26
  this.spread = 0;
27
- this.spreadMode = enums_1.SpreadAmountMode.PERCENT;
27
+ this.spreadMode = enums_1.SpreadAmountMode.PERCENTAGE;
28
28
  this.status = enums_1.BinanceStatus.ACTIVE;
29
29
  this.timestamp = '';
30
30
  if (data) {
@@ -2,9 +2,9 @@ import { EGlobalSettingsExchange, SpreadAmountMode } from '../enums';
2
2
  import { IGlobalSettingBlockchain } from '../interfaces';
3
3
  import { IGlobalSettingBlockchainSpread } from '../interfaces/i-global-setting-blockchain';
4
4
  export declare class GlobalSettingBlockchainEntity implements IGlobalSettingBlockchain {
5
+ address: string;
5
6
  description: string;
6
7
  id: string;
7
- key: string;
8
8
  spreads: GlobalSettingBlockchainSpreadEntity[];
9
9
  constructor(data?: Partial<GlobalSettingBlockchainEntity>);
10
10
  }
@@ -4,9 +4,9 @@ exports.GlobalSettingBlockchainSpreadEntity = exports.GlobalSettingBlockchainEnt
4
4
  var enums_1 = require("../enums");
5
5
  var GlobalSettingBlockchainEntity = /** @class */ (function () {
6
6
  function GlobalSettingBlockchainEntity(data) {
7
+ this.address = '';
7
8
  this.description = '';
8
9
  this.id = 'blockchain';
9
- this.key = '';
10
10
  this.spreads = [];
11
11
  if (data) {
12
12
  for (var key in data) {
@@ -23,7 +23,7 @@ var GlobalSettingBlockchainSpreadEntity = /** @class */ (function () {
23
23
  function GlobalSettingBlockchainSpreadEntity(data) {
24
24
  this.exchange = enums_1.EGlobalSettingsExchange.BINANCE;
25
25
  this.id = '';
26
- this.mode = enums_1.SpreadAmountMode.PERCENT;
26
+ this.mode = enums_1.SpreadAmountMode.PERCENTAGE;
27
27
  this.value = 0;
28
28
  if (data) {
29
29
  for (var key in data) {
@@ -1,4 +1,4 @@
1
1
  export declare enum SpreadAmountMode {
2
- PERCENT = "PERCENT",
2
+ PERCENTAGE = "PERCENTAGE",
3
3
  FIXED = "FIXED"
4
4
  }
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SpreadAmountMode = void 0;
4
4
  var SpreadAmountMode;
5
5
  (function (SpreadAmountMode) {
6
- SpreadAmountMode["PERCENT"] = "PERCENT";
6
+ SpreadAmountMode["PERCENTAGE"] = "PERCENTAGE";
7
7
  SpreadAmountMode["FIXED"] = "FIXED";
8
8
  })(SpreadAmountMode || (exports.SpreadAmountMode = SpreadAmountMode = {}));
@@ -1,2 +1,3 @@
1
1
  export * from './entities';
2
+ export * from './enums';
2
3
  export * from './interfaces';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./enums"), exports);
18
19
  __exportStar(require("./interfaces"), exports);
@@ -1,13 +1,13 @@
1
1
  import { EGlobalSettingsExchange, SpreadAmountMode } from '../enums';
2
2
  export interface IGlobalSettingBlockchain {
3
+ address: string;
4
+ description: string;
3
5
  id: string;
4
- key: string;
5
6
  spreads: IGlobalSettingBlockchainSpread[];
6
- description: string;
7
7
  }
8
8
  export interface IGlobalSettingBlockchainSpread {
9
+ exchange: EGlobalSettingsExchange;
9
10
  id: string;
10
- value: number;
11
11
  mode: SpreadAmountMode;
12
- exchange: EGlobalSettingsExchange;
12
+ value: number;
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.50",
3
+ "version": "1.8.52",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",