cecon-interfaces 1.8.49 → 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.
Files changed (34) hide show
  1. package/dist/esm2022/global-settings/entities/global-setting-binance.entity.mjs +3 -3
  2. package/dist/esm2022/global-settings/entities/global-setting-blockchain.entity.mjs +20 -4
  3. package/dist/esm2022/global-settings/entities/index.mjs +2 -2
  4. package/dist/esm2022/global-settings/enums/exchange.enum.mjs +6 -0
  5. package/dist/esm2022/global-settings/enums/index.mjs +3 -2
  6. package/dist/esm2022/global-settings/enums/spread-amount-mode.enum.mjs +6 -0
  7. package/dist/esm2022/global-settings/index.mjs +2 -1
  8. package/dist/esm2022/global-settings/interfaces/i-global-setting-binance.mjs +1 -1
  9. package/dist/esm2022/global-settings/interfaces/i-global-setting-blockchain.mjs +1 -1
  10. package/dist/esm2022/global-settings/interfaces/index.mjs +2 -1
  11. package/dist/fesm2022/cecon-interfaces.mjs +32 -11
  12. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  13. package/dist/global-settings/entities/global-setting-binance.entity.d.ts +2 -2
  14. package/dist/global-settings/entities/global-setting-binance.entity.js +1 -1
  15. package/dist/global-settings/entities/global-setting-blockchain.entity.d.ts +12 -3
  16. package/dist/global-settings/entities/global-setting-blockchain.entity.js +22 -4
  17. package/dist/global-settings/entities/index.d.ts +1 -1
  18. package/dist/global-settings/entities/index.js +2 -3
  19. package/dist/global-settings/enums/exchange.enum.d.ts +4 -0
  20. package/dist/global-settings/enums/exchange.enum.js +8 -0
  21. package/dist/global-settings/enums/index.d.ts +2 -1
  22. package/dist/global-settings/enums/index.js +5 -3
  23. package/dist/global-settings/enums/spread-amount-mode.enum.d.ts +4 -0
  24. package/dist/global-settings/enums/spread-amount-mode.enum.js +8 -0
  25. package/dist/global-settings/index.d.ts +1 -0
  26. package/dist/global-settings/index.js +1 -0
  27. package/dist/global-settings/interfaces/i-global-setting-binance.d.ts +2 -2
  28. package/dist/global-settings/interfaces/i-global-setting-blockchain.d.ts +10 -3
  29. package/dist/global-settings/interfaces/index.d.ts +1 -1
  30. package/dist/global-settings/interfaces/index.js +1 -0
  31. package/package.json +1 -1
  32. package/dist/esm2022/global-settings/enums/binance-amount-mode.enum.mjs +0 -6
  33. package/dist/global-settings/enums/binance-amount-mode.enum.d.ts +0 -4
  34. package/dist/global-settings/enums/binance-amount-mode.enum.js +0 -8
@@ -1,4 +1,4 @@
1
- import { BinanceAmountMode, BinanceStatus } from '../enums';
1
+ import { BinanceStatus, SpreadAmountMode } from '../enums';
2
2
  import { IGlobalSettingBinance, IGlobalSettingBinanceRate } from '../interfaces';
3
3
  export declare class GlobalSettingBinanceEntity implements IGlobalSettingBinance {
4
4
  id: string;
@@ -11,7 +11,7 @@ export declare class GlobalSettingBinanceRateEntity implements IGlobalSettingBin
11
11
  priceBrl: number;
12
12
  priceUsd: number;
13
13
  spread: number;
14
- spreadMode: BinanceAmountMode;
14
+ spreadMode: SpreadAmountMode;
15
15
  status: BinanceStatus;
16
16
  timestamp: string;
17
17
  constructor(data?: Partial<GlobalSettingBinanceRateEntity>);
@@ -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.BinanceAmountMode.PERCENT;
27
+ this.spreadMode = enums_1.SpreadAmountMode.PERCENTAGE;
28
28
  this.status = enums_1.BinanceStatus.ACTIVE;
29
29
  this.timestamp = '';
30
30
  if (data) {
@@ -1,8 +1,17 @@
1
+ import { EGlobalSettingsExchange, SpreadAmountMode } from '../enums';
1
2
  import { IGlobalSettingBlockchain } from '../interfaces';
3
+ import { IGlobalSettingBlockchainSpread } from '../interfaces/i-global-setting-blockchain';
2
4
  export declare class GlobalSettingBlockchainEntity implements IGlobalSettingBlockchain {
5
+ address: string;
6
+ description: string;
3
7
  id: string;
4
- key: string;
5
- password: string;
6
- user: string;
8
+ spreads: GlobalSettingBlockchainSpreadEntity[];
7
9
  constructor(data?: Partial<GlobalSettingBlockchainEntity>);
8
10
  }
11
+ export declare class GlobalSettingBlockchainSpreadEntity implements IGlobalSettingBlockchainSpread {
12
+ exchange: EGlobalSettingsExchange;
13
+ id: string;
14
+ mode: SpreadAmountMode;
15
+ value: number;
16
+ constructor(data?: Partial<GlobalSettingBlockchainSpreadEntity>);
17
+ }
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GlobalSettingBlockchainEntity = void 0;
3
+ exports.GlobalSettingBlockchainSpreadEntity = exports.GlobalSettingBlockchainEntity = void 0;
4
+ var enums_1 = require("../enums");
4
5
  var GlobalSettingBlockchainEntity = /** @class */ (function () {
5
6
  function GlobalSettingBlockchainEntity(data) {
7
+ this.address = '';
8
+ this.description = '';
6
9
  this.id = 'blockchain';
7
- this.key = '';
8
- this.password = '';
9
- this.user = '';
10
+ this.spreads = [];
10
11
  if (data) {
11
12
  for (var key in data) {
12
13
  if (data.hasOwnProperty(key) && key in this) {
@@ -18,3 +19,20 @@ var GlobalSettingBlockchainEntity = /** @class */ (function () {
18
19
  return GlobalSettingBlockchainEntity;
19
20
  }());
20
21
  exports.GlobalSettingBlockchainEntity = GlobalSettingBlockchainEntity;
22
+ var GlobalSettingBlockchainSpreadEntity = /** @class */ (function () {
23
+ function GlobalSettingBlockchainSpreadEntity(data) {
24
+ this.exchange = enums_1.EGlobalSettingsExchange.BINANCE;
25
+ this.id = '';
26
+ this.mode = enums_1.SpreadAmountMode.PERCENTAGE;
27
+ this.value = 0;
28
+ if (data) {
29
+ for (var key in data) {
30
+ if (data.hasOwnProperty(key) && key in this) {
31
+ this[key] = data[key];
32
+ }
33
+ }
34
+ }
35
+ }
36
+ return GlobalSettingBlockchainSpreadEntity;
37
+ }());
38
+ exports.GlobalSettingBlockchainSpreadEntity = GlobalSettingBlockchainSpreadEntity;
@@ -1,5 +1,5 @@
1
1
  export * from './global-setting-binance.entity';
2
- export { GlobalSettingBlockchainEntity } from './global-setting-blockchain.entity';
2
+ export * from './global-setting-blockchain.entity';
3
3
  export { GlobalSettingFirebankEntity } from './global-setting-firebank.entity';
4
4
  export * from './global-setting-ifood.entity';
5
5
  export { GlobalSettingIuguEntity } from './global-setting-iugu.entity';
@@ -14,10 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.GlobalSettingEntity = exports.GlobalSettingTaxesEntity = exports.GlobalSettingNatiPayEntity = exports.GlobalSettingMercadoPagoEntity = exports.GlobalSettingMasterEntity = exports.GlobalSettingIuguEntity = exports.GlobalSettingFirebankEntity = exports.GlobalSettingBlockchainEntity = void 0;
17
+ exports.GlobalSettingEntity = exports.GlobalSettingTaxesEntity = exports.GlobalSettingNatiPayEntity = exports.GlobalSettingMercadoPagoEntity = exports.GlobalSettingMasterEntity = exports.GlobalSettingIuguEntity = exports.GlobalSettingFirebankEntity = void 0;
18
18
  __exportStar(require("./global-setting-binance.entity"), exports);
19
- var global_setting_blockchain_entity_1 = require("./global-setting-blockchain.entity");
20
- Object.defineProperty(exports, "GlobalSettingBlockchainEntity", { enumerable: true, get: function () { return global_setting_blockchain_entity_1.GlobalSettingBlockchainEntity; } });
19
+ __exportStar(require("./global-setting-blockchain.entity"), exports);
21
20
  var global_setting_firebank_entity_1 = require("./global-setting-firebank.entity");
22
21
  Object.defineProperty(exports, "GlobalSettingFirebankEntity", { enumerable: true, get: function () { return global_setting_firebank_entity_1.GlobalSettingFirebankEntity; } });
23
22
  __exportStar(require("./global-setting-ifood.entity"), exports);
@@ -0,0 +1,4 @@
1
+ export declare enum EGlobalSettingsExchange {
2
+ BINANCE = "binance",
3
+ COINBASE = "coinbase"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EGlobalSettingsExchange = void 0;
4
+ var EGlobalSettingsExchange;
5
+ (function (EGlobalSettingsExchange) {
6
+ EGlobalSettingsExchange["BINANCE"] = "binance";
7
+ EGlobalSettingsExchange["COINBASE"] = "coinbase";
8
+ })(EGlobalSettingsExchange || (exports.EGlobalSettingsExchange = EGlobalSettingsExchange = {}));
@@ -1,2 +1,3 @@
1
- export { BinanceAmountMode } from './binance-amount-mode.enum';
2
1
  export { BinanceStatus } from './binance-status.enum';
2
+ export { EGlobalSettingsExchange } from './exchange.enum';
3
+ export { SpreadAmountMode } from './spread-amount-mode.enum';
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BinanceStatus = exports.BinanceAmountMode = void 0;
4
- var binance_amount_mode_enum_1 = require("./binance-amount-mode.enum");
5
- Object.defineProperty(exports, "BinanceAmountMode", { enumerable: true, get: function () { return binance_amount_mode_enum_1.BinanceAmountMode; } });
3
+ exports.SpreadAmountMode = exports.EGlobalSettingsExchange = exports.BinanceStatus = void 0;
6
4
  var binance_status_enum_1 = require("./binance-status.enum");
7
5
  Object.defineProperty(exports, "BinanceStatus", { enumerable: true, get: function () { return binance_status_enum_1.BinanceStatus; } });
6
+ var exchange_enum_1 = require("./exchange.enum");
7
+ Object.defineProperty(exports, "EGlobalSettingsExchange", { enumerable: true, get: function () { return exchange_enum_1.EGlobalSettingsExchange; } });
8
+ var spread_amount_mode_enum_1 = require("./spread-amount-mode.enum");
9
+ Object.defineProperty(exports, "SpreadAmountMode", { enumerable: true, get: function () { return spread_amount_mode_enum_1.SpreadAmountMode; } });
@@ -0,0 +1,4 @@
1
+ export declare enum SpreadAmountMode {
2
+ PERCENTAGE = "PERCENTAGE",
3
+ FIXED = "FIXED"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpreadAmountMode = void 0;
4
+ var SpreadAmountMode;
5
+ (function (SpreadAmountMode) {
6
+ SpreadAmountMode["PERCENTAGE"] = "PERCENTAGE";
7
+ SpreadAmountMode["FIXED"] = "FIXED";
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,4 +1,4 @@
1
- import { BinanceAmountMode, BinanceStatus } from '../enums';
1
+ import { BinanceStatus, SpreadAmountMode } from '../enums';
2
2
  export interface IGlobalSettingBinance {
3
3
  id: string;
4
4
  key: string;
@@ -9,7 +9,7 @@ export interface IGlobalSettingBinanceRate {
9
9
  priceBrl: number;
10
10
  priceUsd: number;
11
11
  spread: number;
12
- spreadMode: BinanceAmountMode;
12
+ spreadMode: SpreadAmountMode;
13
13
  status: BinanceStatus;
14
14
  timestamp: string;
15
15
  }
@@ -1,6 +1,13 @@
1
+ import { EGlobalSettingsExchange, SpreadAmountMode } from '../enums';
1
2
  export interface IGlobalSettingBlockchain {
3
+ address: string;
4
+ description: string;
2
5
  id: string;
3
- key: string;
4
- user: string;
5
- password: string;
6
+ spreads: IGlobalSettingBlockchainSpread[];
7
+ }
8
+ export interface IGlobalSettingBlockchainSpread {
9
+ exchange: EGlobalSettingsExchange;
10
+ id: string;
11
+ mode: SpreadAmountMode;
12
+ value: number;
6
13
  }
@@ -7,4 +7,4 @@ export { IGlobalSettingNatiPay } from './i-global-setting-nati-pay';
7
7
  export * from './i-global-setting-binance';
8
8
  export * from './i-global-setting-ifood';
9
9
  export { IGlobalSettingTaxes } from './i-global-setting-taxes';
10
- export { IGlobalSettingBlockchain } from './i-global-setting-blockchain';
10
+ export * from './i-global-setting-blockchain';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./i-global-setting-binance"), exports);
18
18
  __exportStar(require("./i-global-setting-ifood"), exports);
19
+ __exportStar(require("./i-global-setting-blockchain"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.49",
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",
@@ -1,6 +0,0 @@
1
- export var BinanceAmountMode;
2
- (function (BinanceAmountMode) {
3
- BinanceAmountMode["PERCENT"] = "PERCENT";
4
- BinanceAmountMode["FIXED"] = "FIXED";
5
- })(BinanceAmountMode || (BinanceAmountMode = {}));
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmluYW5jZS1hbW91bnQtbW9kZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2dsb2JhbC1zZXR0aW5ncy9lbnVtcy9iaW5hbmNlLWFtb3VudC1tb2RlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksaUJBR1g7QUFIRCxXQUFZLGlCQUFpQjtJQUMzQix3Q0FBbUIsQ0FBQTtJQUNuQixvQ0FBZSxDQUFBO0FBQ2pCLENBQUMsRUFIVyxpQkFBaUIsS0FBakIsaUJBQWlCLFFBRzVCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gQmluYW5jZUFtb3VudE1vZGUge1xyXG4gIFBFUkNFTlQgPSAnUEVSQ0VOVCcsXHJcbiAgRklYRUQgPSAnRklYRUQnLFxyXG59XHJcblxyXG4iXX0=
@@ -1,4 +0,0 @@
1
- export declare enum BinanceAmountMode {
2
- PERCENT = "PERCENT",
3
- FIXED = "FIXED"
4
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BinanceAmountMode = void 0;
4
- var BinanceAmountMode;
5
- (function (BinanceAmountMode) {
6
- BinanceAmountMode["PERCENT"] = "PERCENT";
7
- BinanceAmountMode["FIXED"] = "FIXED";
8
- })(BinanceAmountMode || (exports.BinanceAmountMode = BinanceAmountMode = {}));