cecon-interfaces 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/.prettierrc +7 -0
- package/dist/README.md +1 -1
- package/dist/app/entities/index.d.ts +1 -0
- package/dist/app/entities/index.js +3 -1
- package/dist/app/entities/rabbit.entity.d.ts +21 -0
- package/dist/app/entities/rabbit.entity.js +36 -0
- package/dist/app/enums/mode.enum.d.ts +1 -0
- package/dist/app/enums/mode.enum.js +1 -0
- package/dist/app/interfaces/i-rabbit.d.ts +64 -0
- package/dist/app/interfaces/i-rabbit.js +2 -0
- package/dist/app/interfaces/index.d.ts +1 -0
- package/dist/company/entities/company.entity.d.ts +3 -3
- package/dist/company/entities/company.entity.js +3 -3
- package/dist/company/interfaces/i-company.d.ts +3 -3
- package/dist/esm2022/app/entities/index.mjs +2 -1
- package/dist/esm2022/app/entities/rabbit.entity.mjs +32 -0
- package/dist/esm2022/app/enums/mode.enum.mjs +2 -1
- package/dist/esm2022/app/interfaces/i-rabbit.mjs +2 -0
- package/dist/esm2022/app/interfaces/index.mjs +1 -1
- package/dist/esm2022/company/entities/company.entity.mjs +4 -4
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/general/enums/fiscal-doc-model-code.enum.mjs +13 -0
- package/dist/esm2022/general/enums/index.mjs +2 -1
- package/dist/esm2022/iugu/enums/iugu-bank.enum.mjs +13 -13
- package/dist/esm2022/member/entities/member.entity.mjs +3 -2
- package/dist/esm2022/member/interfaces/i-member.mjs +1 -1
- package/dist/esm2022/order/entities/item-composition.entity.mjs +2 -2
- package/dist/esm2022/order/interfaces/i-item-composition.mjs +1 -1
- package/dist/esm2022/subscription/entities/index.mjs +2 -1
- package/dist/esm2022/subscription/entities/subscription-company.entity.mjs +21 -0
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +13 -15
- package/dist/esm2022/subscription/interfaces/i-subscription-company.mjs +2 -0
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/subscription/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +93 -30
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/enums/fiscal-doc-model-code.enum.d.ts +11 -0
- package/dist/general/enums/fiscal-doc-model-code.enum.js +15 -0
- package/dist/general/enums/index.d.ts +1 -0
- package/dist/general/enums/index.js +3 -1
- package/dist/iugu/enums/iugu-bank.enum.js +12 -12
- package/dist/member/entities/member.entity.d.ts +2 -1
- package/dist/member/entities/member.entity.js +1 -1
- package/dist/member/interfaces/i-member.d.ts +1 -1
- package/dist/order/entities/item-composition.entity.d.ts +1 -1
- package/dist/order/entities/item-composition.entity.js +1 -1
- package/dist/order/interfaces/i-item-composition.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/subscription/entities/index.d.ts +1 -0
- package/dist/subscription/entities/index.js +3 -1
- package/dist/subscription/entities/subscription-company.entity.d.ts +10 -0
- package/dist/subscription/entities/subscription-company.entity.js +25 -0
- package/dist/subscription/entities/subscription.entity.d.ts +8 -10
- package/dist/subscription/entities/subscription.entity.js +10 -12
- package/dist/subscription/interfaces/i-subscription-company.d.ts +8 -0
- package/dist/subscription/interfaces/i-subscription-company.js +2 -0
- package/dist/subscription/interfaces/i-subscription.d.ts +7 -9
- package/dist/subscription/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
- package/readme.md +1 -1
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EFiscalDocModelCode = void 0;
|
4
|
+
var EFiscalDocModelCode;
|
5
|
+
(function (EFiscalDocModelCode) {
|
6
|
+
EFiscalDocModelCode["NFE"] = "55";
|
7
|
+
EFiscalDocModelCode["CTE"] = "57";
|
8
|
+
EFiscalDocModelCode["SAT"] = "59";
|
9
|
+
EFiscalDocModelCode["ECF"] = "60";
|
10
|
+
EFiscalDocModelCode["NFCOM"] = "62";
|
11
|
+
EFiscalDocModelCode["BPE"] = "63";
|
12
|
+
EFiscalDocModelCode["NFCE"] = "65";
|
13
|
+
EFiscalDocModelCode["NF3E"] = "66";
|
14
|
+
EFiscalDocModelCode["OS"] = "67";
|
15
|
+
})(EFiscalDocModelCode || (exports.EFiscalDocModelCode = EFiscalDocModelCode = {}));
|
@@ -1,5 +1,6 @@
|
|
1
1
|
export { BooleanStringEnum } from './boolean-string.enum';
|
2
2
|
export { DocTypeEnum } from './doc-type.enum';
|
3
|
+
export { EFiscalDocModelCode } from './fiscal-doc-model-code.enum';
|
3
4
|
export { IntervalTypeEnum } from './interval-type.enum';
|
4
5
|
export { LeadOriginEnum } from './lead-origin.enum';
|
5
6
|
export { OsEnum } from './os.enum';
|
@@ -1,10 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.LegalEntiyEnum = exports.PaymentTypeEnum = exports.PaymentStatusEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.OsEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.DocTypeEnum = exports.BooleanStringEnum = void 0;
|
3
|
+
exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.LegalEntiyEnum = exports.PaymentTypeEnum = exports.PaymentStatusEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.OsEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.EFiscalDocModelCode = exports.DocTypeEnum = exports.BooleanStringEnum = void 0;
|
4
4
|
var boolean_string_enum_1 = require("./boolean-string.enum");
|
5
5
|
Object.defineProperty(exports, "BooleanStringEnum", { enumerable: true, get: function () { return boolean_string_enum_1.BooleanStringEnum; } });
|
6
6
|
var doc_type_enum_1 = require("./doc-type.enum");
|
7
7
|
Object.defineProperty(exports, "DocTypeEnum", { enumerable: true, get: function () { return doc_type_enum_1.DocTypeEnum; } });
|
8
|
+
var fiscal_doc_model_code_enum_1 = require("./fiscal-doc-model-code.enum");
|
9
|
+
Object.defineProperty(exports, "EFiscalDocModelCode", { enumerable: true, get: function () { return fiscal_doc_model_code_enum_1.EFiscalDocModelCode; } });
|
8
10
|
var interval_type_enum_1 = require("./interval-type.enum");
|
9
11
|
Object.defineProperty(exports, "IntervalTypeEnum", { enumerable: true, get: function () { return interval_type_enum_1.IntervalTypeEnum; } });
|
10
12
|
var lead_origin_enum_1 = require("./lead-origin.enum");
|
@@ -207,16 +207,16 @@ exports.IuguBankFormatter = [
|
|
207
207
|
{ name: "Neon", agency: "9999", account: "9999999999-D" },
|
208
208
|
{ name: "VORTX DTVM LTDA", agency: "9999-D", account: "999-D" },
|
209
209
|
{ name: "Banco BMG", agency: "9999", account: "99999999-D" },
|
210
|
-
{ name: "Fitbank", agency: "9999", account: "
|
211
|
-
{ name: "Pefisa", agency: "9999", account: "
|
212
|
-
{ name: "J17 - SCD S/A", agency: "9999", account: "
|
213
|
-
{ name: "Credisan", agency: "9999", account: "
|
214
|
-
{ name: "Pinbank", agency: "
|
215
|
-
{ name: "XP Investimentos", agency: "9999", account: "
|
216
|
-
{ name: "Crefisa", agency: "9999", account: "
|
217
|
-
{ name: "Singulare", agency: "9999", account: "
|
218
|
-
{ name: "SUMUP SCD S.A.", agency: "9999", account: "
|
219
|
-
{ name: "Banco ABC Brasil", agency: "9999", account: "
|
220
|
-
{ name: "BCO LETSBANK S.A.", agency: "9999", account: "
|
221
|
-
{ name: "HR Digital Sociedade de Crédito Direto S.A", agency: "9999", account: "
|
210
|
+
{ name: "Fitbank", agency: "9999", account: "999999999-9" },
|
211
|
+
{ name: "Pefisa", agency: "9999", account: "9999999-D" },
|
212
|
+
{ name: "J17 - SCD S/A", agency: "9999", account: "99999999999-D" },
|
213
|
+
{ name: "Credisan", agency: "9999", account: "999999999-D" },
|
214
|
+
{ name: "Pinbank", agency: "999", account: "99999999-D" },
|
215
|
+
{ name: "XP Investimentos", agency: "9999", account: "999999-D" },
|
216
|
+
{ name: "Crefisa", agency: "9999", account: "999999999-D" },
|
217
|
+
{ name: "Singulare", agency: "9999", account: "9999999-D" },
|
218
|
+
{ name: "SUMUP SCD S.A.", agency: "9999", account: "999999999-D" },
|
219
|
+
{ name: "Banco ABC Brasil", agency: "9999-D", account: "9999999999" },
|
220
|
+
{ name: "BCO LETSBANK S.A.", agency: "9999", account: "999999999-D" },
|
221
|
+
{ name: "HR Digital Sociedade de Crédito Direto S.A", agency: "9999", account: "999999999-D" },
|
222
222
|
];
|
@@ -9,10 +9,11 @@ export declare class MemberEntity extends BaseEntity implements IMember {
|
|
9
9
|
name: string;
|
10
10
|
partnerId: string;
|
11
11
|
phoneNumber: string;
|
12
|
-
|
12
|
+
photoUrl: string;
|
13
13
|
rule: MemberRulesEnum;
|
14
14
|
tags: string[];
|
15
15
|
type: MemberTypeEnum;
|
16
16
|
uid: string;
|
17
17
|
constructor(data?: Partial<MemberEntity>);
|
18
|
+
photoURL: string;
|
18
19
|
}
|
@@ -32,7 +32,7 @@ var MemberEntity = /** @class */ (function (_super) {
|
|
32
32
|
_this.name = '';
|
33
33
|
_this.partnerId = '';
|
34
34
|
_this.phoneNumber = '';
|
35
|
-
_this.
|
35
|
+
_this.photoUrl = '';
|
36
36
|
_this.rule = enums_1.MemberRulesEnum.USER;
|
37
37
|
_this.tags = [];
|
38
38
|
_this.type = enums_1.MemberTypeEnum.CLIENT;
|
package/dist/package.json
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
export { SubscriptionCompanyEntity } from './subscription-company.entity';
|
1
2
|
export { SubscriptionItemEntity } from './subscription-item.entity';
|
2
3
|
export { SubscriptionLogEntity } from './subscription-log.entity';
|
3
4
|
export { SubscriptionEntity } from './subscription.entity';
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SubscriptionEntity = exports.SubscriptionLogEntity = exports.SubscriptionItemEntity = void 0;
|
3
|
+
exports.SubscriptionEntity = exports.SubscriptionLogEntity = exports.SubscriptionItemEntity = exports.SubscriptionCompanyEntity = void 0;
|
4
|
+
var subscription_company_entity_1 = require("./subscription-company.entity");
|
5
|
+
Object.defineProperty(exports, "SubscriptionCompanyEntity", { enumerable: true, get: function () { return subscription_company_entity_1.SubscriptionCompanyEntity; } });
|
4
6
|
var subscription_item_entity_1 = require("./subscription-item.entity");
|
5
7
|
Object.defineProperty(exports, "SubscriptionItemEntity", { enumerable: true, get: function () { return subscription_item_entity_1.SubscriptionItemEntity; } });
|
6
8
|
var subscription_log_entity_1 = require("./subscription-log.entity");
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ISubscriptionCompany } from '../interfaces/i-subscription-company';
|
2
|
+
export declare class SubscriptionCompanyEntity implements ISubscriptionCompany {
|
3
|
+
containerId: string | null;
|
4
|
+
doc: string | null;
|
5
|
+
docType: string | null;
|
6
|
+
id: string | null;
|
7
|
+
imageUrl: string | null;
|
8
|
+
name: string | null;
|
9
|
+
constructor(data?: Partial<SubscriptionCompanyEntity>);
|
10
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubscriptionCompanyEntity = void 0;
|
4
|
+
var SubscriptionCompanyEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (6)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function SubscriptionCompanyEntity(data) {
|
8
|
+
// #region Properties (6)
|
9
|
+
this.containerId = '';
|
10
|
+
this.doc = '';
|
11
|
+
this.docType = '';
|
12
|
+
this.id = '';
|
13
|
+
this.imageUrl = '';
|
14
|
+
this.name = '';
|
15
|
+
if (data) {
|
16
|
+
for (var key in data) {
|
17
|
+
if (data.hasOwnProperty(key) && key in this) {
|
18
|
+
this[key] = data[key];
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
return SubscriptionCompanyEntity;
|
24
|
+
}());
|
25
|
+
exports.SubscriptionCompanyEntity = SubscriptionCompanyEntity;
|
@@ -1,15 +1,13 @@
|
|
1
|
-
import { FeatureEntity } from
|
2
|
-
import { CustomVariableEntity, IntervalTypeEnum } from
|
3
|
-
import { SubscriptionStatusEnum } from
|
4
|
-
import { ISubscription } from
|
5
|
-
import {
|
6
|
-
import {
|
1
|
+
import { FeatureEntity } from '../../feature';
|
2
|
+
import { CustomVariableEntity, IntervalTypeEnum } from '../../general';
|
3
|
+
import { SubscriptionStatusEnum } from '../enums';
|
4
|
+
import { ISubscription } from '../interfaces/i-subscription';
|
5
|
+
import { SubscriptionCompanyEntity } from './subscription-company.entity';
|
6
|
+
import { SubscriptionItemEntity } from './subscription-item.entity';
|
7
|
+
import { SubscriptionLogEntity } from './subscription-log.entity';
|
7
8
|
export declare class SubscriptionEntity implements ISubscription {
|
8
9
|
cancellationReason: string;
|
9
|
-
|
10
|
-
companyId: string;
|
11
|
-
companyName: string;
|
12
|
-
containerId: string | null;
|
10
|
+
company: SubscriptionCompanyEntity;
|
13
11
|
createdAt: Date;
|
14
12
|
customVariables: CustomVariableEntity[];
|
15
13
|
expiresAt: Date;
|
@@ -3,29 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionEntity = void 0;
|
4
4
|
var general_1 = require("../../general");
|
5
5
|
var enums_1 = require("../enums");
|
6
|
+
var subscription_company_entity_1 = require("./subscription-company.entity");
|
6
7
|
var SubscriptionEntity = /** @class */ (function () {
|
7
|
-
// #endregion Properties (
|
8
|
+
// #endregion Properties (25)
|
8
9
|
// #region Constructors (1)
|
9
10
|
function SubscriptionEntity(data) {
|
10
|
-
// #region Properties (
|
11
|
-
this.cancellationReason =
|
12
|
-
this.
|
13
|
-
this.companyId = "";
|
14
|
-
this.companyName = "";
|
15
|
-
this.containerId = "";
|
11
|
+
// #region Properties (25)
|
12
|
+
this.cancellationReason = '';
|
13
|
+
this.company = new subscription_company_entity_1.SubscriptionCompanyEntity();
|
16
14
|
this.createdAt = new Date();
|
17
15
|
this.customVariables = [];
|
18
16
|
this.expiresAt = new Date();
|
19
17
|
this.features = [];
|
20
|
-
this.id =
|
18
|
+
this.id = '';
|
21
19
|
this.interval = 0;
|
22
20
|
this.intervalType = general_1.IntervalTypeEnum.MONTHS;
|
23
21
|
this.items = [];
|
24
22
|
this.logs = [];
|
25
|
-
this.notes =
|
26
|
-
this.partnerId =
|
27
|
-
this.planId =
|
28
|
-
this.planName =
|
23
|
+
this.notes = '';
|
24
|
+
this.partnerId = '';
|
25
|
+
this.planId = '';
|
26
|
+
this.planName = '';
|
29
27
|
this.renewPaymentDate = new Date();
|
30
28
|
this.renovatedAt = new Date();
|
31
29
|
this.startsAt = new Date();
|
@@ -1,14 +1,12 @@
|
|
1
|
-
import { IFeature } from
|
2
|
-
import { ICustomVariable, IntervalTypeEnum } from
|
3
|
-
import { SubscriptionStatusEnum } from
|
4
|
-
import {
|
5
|
-
import {
|
1
|
+
import { IFeature } from '../../feature';
|
2
|
+
import { ICustomVariable, IntervalTypeEnum } from '../../general';
|
3
|
+
import { SubscriptionStatusEnum } from '../enums';
|
4
|
+
import { ISubscriptionCompany } from './i-subscription-company';
|
5
|
+
import { ISubscriptionItem } from './i-subscription-item';
|
6
|
+
import { ISubscriptionLog } from './i-subscription-log';
|
6
7
|
export interface ISubscription {
|
7
8
|
cancellationReason: string;
|
8
|
-
|
9
|
-
companyId: string;
|
10
|
-
companyName: string;
|
11
|
-
containerId: string | null;
|
9
|
+
company: ISubscriptionCompany;
|
12
10
|
createdAt: Date;
|
13
11
|
customVariables: ICustomVariable[];
|
14
12
|
expiresAt: Date;
|
package/package.json
CHANGED
package/readme.md
CHANGED