cecon-interfaces 1.8.44 → 1.8.45
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/esm2022/global-settings/entities/global-setting-binance.entity.mjs +32 -0
- package/dist/esm2022/global-settings/entities/global-setting-ifood.entity.mjs +59 -0
- package/dist/esm2022/global-settings/entities/index.mjs +3 -1
- package/dist/esm2022/global-settings/enums/binance-amount-mode.enum.mjs +6 -0
- package/dist/esm2022/global-settings/enums/binance-status.enum.mjs +6 -0
- package/dist/esm2022/global-settings/enums/index.mjs +3 -0
- package/dist/esm2022/global-settings/interfaces/i-global-setting-binance.mjs +2 -0
- package/dist/esm2022/global-settings/interfaces/i-global-setting-ifood.mjs +2 -0
- package/dist/esm2022/global-settings/interfaces/index.mjs +3 -2
- package/dist/fesm2022/cecon-interfaces.mjs +103 -1
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/global-settings/entities/global-setting-binance.entity.d.ts +16 -0
- package/dist/global-settings/entities/global-setting-binance.entity.js +38 -0
- package/dist/global-settings/entities/global-setting-ifood.entity.d.ts +27 -0
- package/dist/global-settings/entities/global-setting-ifood.entity.js +69 -0
- package/dist/global-settings/entities/index.d.ts +2 -0
- package/dist/global-settings/entities/index.js +16 -0
- package/dist/global-settings/enums/binance-amount-mode.enum.d.ts +4 -0
- package/dist/global-settings/enums/binance-amount-mode.enum.js +8 -0
- package/dist/global-settings/enums/binance-status.enum.d.ts +4 -0
- package/dist/global-settings/enums/binance-status.enum.js +8 -0
- package/dist/global-settings/enums/index.d.ts +2 -0
- package/dist/global-settings/enums/index.js +7 -0
- package/dist/global-settings/interfaces/i-global-setting-binance.d.ts +13 -0
- package/dist/global-settings/interfaces/i-global-setting-binance.js +2 -0
- package/dist/global-settings/interfaces/i-global-setting-ifood.d.ts +22 -0
- package/dist/global-settings/interfaces/i-global-setting-ifood.js +2 -0
- package/dist/global-settings/interfaces/index.d.ts +2 -0
- package/dist/global-settings/interfaces/index.js +16 -0
- package/package.json +1 -1
@@ -0,0 +1,16 @@
|
|
1
|
+
import { BinanceAmountMode, BinanceStatus } from '../enums';
|
2
|
+
import { IGlobalSettingBinance, IGlobalSettingBinanceRate } from '../interfaces';
|
3
|
+
export declare class GlobalSettingBinanceEntity implements IGlobalSettingBinance {
|
4
|
+
rate: GlobalSettingBinanceRateEntity;
|
5
|
+
constructor(data?: Partial<GlobalSettingBinanceEntity>);
|
6
|
+
}
|
7
|
+
export declare class GlobalSettingBinanceRateEntity implements IGlobalSettingBinanceRate {
|
8
|
+
amount: number;
|
9
|
+
priceBrl: number;
|
10
|
+
priceUsd: number;
|
11
|
+
spread: number;
|
12
|
+
spreadMode: BinanceAmountMode;
|
13
|
+
status: BinanceStatus;
|
14
|
+
timestamp: string;
|
15
|
+
constructor(data?: Partial<GlobalSettingBinanceRateEntity>);
|
16
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GlobalSettingBinanceRateEntity = exports.GlobalSettingBinanceEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var GlobalSettingBinanceEntity = /** @class */ (function () {
|
6
|
+
function GlobalSettingBinanceEntity(data) {
|
7
|
+
this.rate = new GlobalSettingBinanceRateEntity();
|
8
|
+
if (data) {
|
9
|
+
for (var key in data) {
|
10
|
+
if (data.hasOwnProperty(key) && key in this) {
|
11
|
+
this[key] = data[key];
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
return GlobalSettingBinanceEntity;
|
17
|
+
}());
|
18
|
+
exports.GlobalSettingBinanceEntity = GlobalSettingBinanceEntity;
|
19
|
+
var GlobalSettingBinanceRateEntity = /** @class */ (function () {
|
20
|
+
function GlobalSettingBinanceRateEntity(data) {
|
21
|
+
this.amount = 0;
|
22
|
+
this.priceBrl = 0;
|
23
|
+
this.priceUsd = 0;
|
24
|
+
this.spread = 0;
|
25
|
+
this.spreadMode = enums_1.BinanceAmountMode.PERCENT;
|
26
|
+
this.status = enums_1.BinanceStatus.ACTIVE;
|
27
|
+
this.timestamp = '';
|
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 GlobalSettingBinanceRateEntity;
|
37
|
+
}());
|
38
|
+
exports.GlobalSettingBinanceRateEntity = GlobalSettingBinanceRateEntity;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { IGlobalSettingIfood, IGlobalSettingIfoodCredentials, IGlobalSettingIfoodProduction, IGlobalSettingIfoodSandbox } from '../interfaces';
|
2
|
+
export declare class GlobalSettingIfoodCredentialsEntity implements IGlobalSettingIfoodCredentials {
|
3
|
+
accessToken: string;
|
4
|
+
expiresIn: number;
|
5
|
+
type: 'Bearer';
|
6
|
+
constructor(data?: Partial<GlobalSettingIfoodCredentialsEntity>);
|
7
|
+
}
|
8
|
+
export declare class GlobalSettingIfoodEntity implements IGlobalSettingIfood {
|
9
|
+
active: boolean;
|
10
|
+
clientCredentials: GlobalSettingIfoodCredentialsEntity;
|
11
|
+
createdAt: Date;
|
12
|
+
id: string;
|
13
|
+
production: GlobalSettingIfoodProductionEntity;
|
14
|
+
sandbox: GlobalSettingIfoodSandboxEntity;
|
15
|
+
updatedAt: Date;
|
16
|
+
constructor(data?: Partial<GlobalSettingIfoodEntity>);
|
17
|
+
}
|
18
|
+
export declare class GlobalSettingIfoodProductionEntity implements IGlobalSettingIfoodProduction {
|
19
|
+
clientId: string;
|
20
|
+
clientSecret: string;
|
21
|
+
constructor(data?: Partial<GlobalSettingIfoodProductionEntity>);
|
22
|
+
}
|
23
|
+
export declare class GlobalSettingIfoodSandboxEntity implements IGlobalSettingIfoodSandbox {
|
24
|
+
clientId: string;
|
25
|
+
clientSecret: string;
|
26
|
+
constructor(data?: Partial<GlobalSettingIfoodSandboxEntity>);
|
27
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GlobalSettingIfoodSandboxEntity = exports.GlobalSettingIfoodProductionEntity = exports.GlobalSettingIfoodEntity = exports.GlobalSettingIfoodCredentialsEntity = void 0;
|
4
|
+
var GlobalSettingIfoodCredentialsEntity = /** @class */ (function () {
|
5
|
+
function GlobalSettingIfoodCredentialsEntity(data) {
|
6
|
+
this.accessToken = '';
|
7
|
+
this.expiresIn = 0;
|
8
|
+
this.type = 'Bearer';
|
9
|
+
if (data) {
|
10
|
+
for (var key in data) {
|
11
|
+
if (data.hasOwnProperty(key) && key in this) {
|
12
|
+
this[key] = data[key];
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
return GlobalSettingIfoodCredentialsEntity;
|
18
|
+
}());
|
19
|
+
exports.GlobalSettingIfoodCredentialsEntity = GlobalSettingIfoodCredentialsEntity;
|
20
|
+
var GlobalSettingIfoodEntity = /** @class */ (function () {
|
21
|
+
function GlobalSettingIfoodEntity(data) {
|
22
|
+
this.active = false;
|
23
|
+
this.clientCredentials = new GlobalSettingIfoodCredentialsEntity();
|
24
|
+
this.createdAt = new Date();
|
25
|
+
this.id = 'IFOOD';
|
26
|
+
this.production = new GlobalSettingIfoodProductionEntity();
|
27
|
+
this.sandbox = new GlobalSettingIfoodSandboxEntity();
|
28
|
+
this.updatedAt = new Date();
|
29
|
+
if (data) {
|
30
|
+
for (var key in data) {
|
31
|
+
if (data.hasOwnProperty(key) && key in this) {
|
32
|
+
this[key] = data[key];
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
return GlobalSettingIfoodEntity;
|
38
|
+
}());
|
39
|
+
exports.GlobalSettingIfoodEntity = GlobalSettingIfoodEntity;
|
40
|
+
var GlobalSettingIfoodProductionEntity = /** @class */ (function () {
|
41
|
+
function GlobalSettingIfoodProductionEntity(data) {
|
42
|
+
this.clientId = '';
|
43
|
+
this.clientSecret = '';
|
44
|
+
if (data) {
|
45
|
+
for (var key in data) {
|
46
|
+
if (data.hasOwnProperty(key) && key in this) {
|
47
|
+
this[key] = data[key];
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
return GlobalSettingIfoodProductionEntity;
|
53
|
+
}());
|
54
|
+
exports.GlobalSettingIfoodProductionEntity = GlobalSettingIfoodProductionEntity;
|
55
|
+
var GlobalSettingIfoodSandboxEntity = /** @class */ (function () {
|
56
|
+
function GlobalSettingIfoodSandboxEntity(data) {
|
57
|
+
this.clientId = '';
|
58
|
+
this.clientSecret = '';
|
59
|
+
if (data) {
|
60
|
+
for (var key in data) {
|
61
|
+
if (data.hasOwnProperty(key) && key in this) {
|
62
|
+
this[key] = data[key];
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
return GlobalSettingIfoodSandboxEntity;
|
68
|
+
}());
|
69
|
+
exports.GlobalSettingIfoodSandboxEntity = GlobalSettingIfoodSandboxEntity;
|
@@ -1,4 +1,6 @@
|
|
1
|
+
export * from './global-setting-binance.entity';
|
1
2
|
export { GlobalSettingFirebankEntity } from './global-setting-firebank.entity';
|
3
|
+
export * from './global-setting-ifood.entity';
|
2
4
|
export { GlobalSettingIuguEntity } from './global-setting-iugu.entity';
|
3
5
|
export { GlobalSettingMasterEntity } from './global-setting-master.entity';
|
4
6
|
export { GlobalSettingMercadoPagoEntity } from './global-setting-mercado-pago.entity';
|
@@ -1,8 +1,24 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
17
|
exports.GlobalSettingEntity = exports.GlobalSettingTaxesEntity = exports.GlobalSettingNatiPayEntity = exports.GlobalSettingMercadoPagoEntity = exports.GlobalSettingMasterEntity = exports.GlobalSettingIuguEntity = exports.GlobalSettingFirebankEntity = void 0;
|
18
|
+
__exportStar(require("./global-setting-binance.entity"), exports);
|
4
19
|
var global_setting_firebank_entity_1 = require("./global-setting-firebank.entity");
|
5
20
|
Object.defineProperty(exports, "GlobalSettingFirebankEntity", { enumerable: true, get: function () { return global_setting_firebank_entity_1.GlobalSettingFirebankEntity; } });
|
21
|
+
__exportStar(require("./global-setting-ifood.entity"), exports);
|
6
22
|
var global_setting_iugu_entity_1 = require("./global-setting-iugu.entity");
|
7
23
|
Object.defineProperty(exports, "GlobalSettingIuguEntity", { enumerable: true, get: function () { return global_setting_iugu_entity_1.GlobalSettingIuguEntity; } });
|
8
24
|
var global_setting_master_entity_1 = require("./global-setting-master.entity");
|
@@ -0,0 +1,8 @@
|
|
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 = {}));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BinanceStatus = void 0;
|
4
|
+
var BinanceStatus;
|
5
|
+
(function (BinanceStatus) {
|
6
|
+
BinanceStatus["ACTIVE"] = "active";
|
7
|
+
BinanceStatus["INACTIVE"] = "inactive";
|
8
|
+
})(BinanceStatus || (exports.BinanceStatus = BinanceStatus = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
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; } });
|
6
|
+
var binance_status_enum_1 = require("./binance-status.enum");
|
7
|
+
Object.defineProperty(exports, "BinanceStatus", { enumerable: true, get: function () { return binance_status_enum_1.BinanceStatus; } });
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { BinanceAmountMode, BinanceStatus } from '../enums';
|
2
|
+
export interface IGlobalSettingBinance {
|
3
|
+
rate: IGlobalSettingBinanceRate;
|
4
|
+
}
|
5
|
+
export interface IGlobalSettingBinanceRate {
|
6
|
+
amount: number;
|
7
|
+
priceBrl: number;
|
8
|
+
priceUsd: number;
|
9
|
+
spread: number;
|
10
|
+
spreadMode: BinanceAmountMode;
|
11
|
+
status: BinanceStatus;
|
12
|
+
timestamp: string;
|
13
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export interface IGlobalSettingIfood {
|
2
|
+
active: boolean;
|
3
|
+
clientCredentials: IGlobalSettingIfoodCredentials;
|
4
|
+
createdAt: Date;
|
5
|
+
id: string;
|
6
|
+
production: IGlobalSettingIfoodProduction;
|
7
|
+
sandbox: IGlobalSettingIfoodSandbox;
|
8
|
+
updatedAt: Date;
|
9
|
+
}
|
10
|
+
export interface IGlobalSettingIfoodCredentials {
|
11
|
+
accessToken: string;
|
12
|
+
expiresIn: number;
|
13
|
+
type: 'Bearer';
|
14
|
+
}
|
15
|
+
export interface IGlobalSettingIfoodProduction {
|
16
|
+
clientId: string;
|
17
|
+
clientSecret: string;
|
18
|
+
}
|
19
|
+
export interface IGlobalSettingIfoodSandbox {
|
20
|
+
clientId: string;
|
21
|
+
clientSecret: string;
|
22
|
+
}
|
@@ -4,4 +4,6 @@ export { IGlobalSettingIugu } from './i-global-setting-iugu';
|
|
4
4
|
export { IGlobalSettingMaster } from './i-global-setting-master';
|
5
5
|
export { IGlobalSettingMercadoPago } from './i-global-setting-mercado-pago';
|
6
6
|
export { IGlobalSettingNatiPay } from './i-global-setting-nati-pay';
|
7
|
+
export * from './i-global-setting-binance';
|
8
|
+
export * from './i-global-setting-ifood';
|
7
9
|
export { IGlobalSettingTaxes } from './i-global-setting-taxes';
|
@@ -1,2 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./i-global-setting-binance"), exports);
|
18
|
+
__exportStar(require("./i-global-setting-ifood"), exports);
|