cecon-interfaces 1.1.64 → 1.1.65
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/clients/entities/client-aplication-credential.entity.d.ts +8 -0
- package/dist/clients/entities/client-aplication-credential.entity.js +23 -0
- package/dist/clients/entities/client-aplication.entity.d.ts +8 -0
- package/dist/clients/entities/client-aplication.entity.js +23 -0
- package/dist/clients/entities/client.entity.d.ts +13 -0
- package/dist/clients/entities/client.entity.js +27 -0
- package/dist/clients/entities/index.d.ts +3 -0
- package/dist/clients/entities/index.js +9 -0
- package/dist/clients/index.d.ts +2 -0
- package/dist/clients/index.js +18 -0
- package/dist/clients/interfaces/i-client-aplication.d.ts +6 -0
- package/dist/clients/interfaces/i-client-aplication.js +2 -0
- package/dist/clients/interfaces/i-client-credential.d.ts +6 -0
- package/dist/clients/interfaces/i-client-credential.js +2 -0
- package/dist/clients/interfaces/i-client.d.ts +12 -0
- package/dist/clients/interfaces/i-client.js +2 -0
- package/dist/clients/interfaces/index.d.ts +3 -0
- package/dist/clients/interfaces/index.js +2 -0
- package/dist/company/entities/company.entity.d.ts +2 -2
- package/dist/company/entities/company.entity.js +1 -1
- package/dist/company/interfaces/i-company.d.ts +2 -2
- package/dist/customer/entities/customer.entity.d.ts +26 -0
- package/dist/customer/entities/customer.entity.js +41 -0
- package/dist/customer/entities/index.d.ts +1 -0
- package/dist/customer/entities/index.js +5 -0
- package/dist/customer/enums/index.d.ts +2 -0
- package/dist/customer/enums/index.js +7 -0
- package/dist/customer/enums/interval.enum.d.ts +5 -0
- package/dist/customer/enums/interval.enum.js +9 -0
- package/dist/customer/enums/status.enum.d.ts +5 -0
- package/dist/customer/enums/status.enum.js +9 -0
- package/dist/customer/index.d.ts +3 -0
- package/dist/customer/index.js +19 -0
- package/dist/customer/interfaces/i-customer.d.ts +24 -0
- package/dist/customer/interfaces/i-customer.js +2 -0
- package/dist/customer/interfaces/index.d.ts +1 -0
- package/dist/customer/interfaces/index.js +2 -0
- package/dist/esm2022/clients/entities/client-aplication-credential.entity.mjs +19 -0
- package/dist/esm2022/clients/entities/client-aplication.entity.mjs +19 -0
- package/dist/esm2022/clients/entities/client.entity.mjs +23 -0
- package/dist/esm2022/clients/entities/index.mjs +4 -0
- package/dist/esm2022/clients/index.mjs +3 -0
- package/dist/esm2022/clients/interfaces/i-client-aplication.mjs +2 -0
- package/dist/esm2022/clients/interfaces/i-client-credential.mjs +2 -0
- package/dist/esm2022/clients/interfaces/i-client.mjs +2 -0
- package/dist/esm2022/clients/interfaces/index.mjs +2 -0
- package/dist/esm2022/company/entities/company.entity.mjs +3 -3
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/customer/entities/customer.entity.mjs +37 -0
- package/dist/esm2022/customer/entities/index.mjs +2 -0
- package/dist/esm2022/customer/enums/index.mjs +3 -0
- package/dist/esm2022/customer/enums/interval.enum.mjs +7 -0
- package/dist/esm2022/customer/enums/status.enum.mjs +7 -0
- package/dist/esm2022/customer/index.mjs +4 -0
- package/dist/esm2022/customer/interfaces/i-customer.mjs +2 -0
- package/dist/esm2022/customer/interfaces/index.mjs +2 -0
- package/dist/esm2022/general/enums/doc-type.enum.mjs +6 -6
- package/dist/esm2022/general/enums/index.mjs +2 -2
- package/dist/esm2022/index.mjs +3 -1
- package/dist/esm2022/invite/entities/invite.entity.mjs +3 -3
- package/dist/esm2022/invite/interfaces/i-invite.mjs +1 -1
- package/dist/esm2022/invoice/entities/invoice-payer.entity.mjs +3 -3
- package/dist/esm2022/invoice/interfaces/i-invoice-payer.mjs +1 -1
- package/dist/esm2022/lead/entities/lead.entity.mjs +3 -3
- package/dist/esm2022/partner/entities/partner.entity.mjs +3 -3
- package/dist/esm2022/partner/interfaces/i-partner.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +119 -11
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/enums/doc-type.enum.d.ts +1 -1
- package/dist/general/enums/doc-type.enum.js +6 -6
- package/dist/general/enums/index.d.ts +1 -1
- package/dist/general/enums/index.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/invite/entities/invite.entity.d.ts +2 -2
- package/dist/invite/entities/invite.entity.js +1 -1
- package/dist/invite/interfaces/i-invite.d.ts +2 -2
- package/dist/invoice/entities/invoice-payer.entity.d.ts +2 -2
- package/dist/invoice/entities/invoice-payer.entity.js +1 -1
- package/dist/invoice/interfaces/i-invoice-payer.d.ts +2 -2
- package/dist/lead/entities/lead.entity.d.ts +2 -2
- package/dist/lead/entities/lead.entity.js +1 -1
- package/dist/package.json +1 -1
- package/dist/partner/entities/partner.entity.d.ts +2 -2
- package/dist/partner/entities/partner.entity.js +1 -1
- package/dist/partner/interfaces/i-partner.d.ts +2 -2
- package/package.json +1 -1
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
5
|
-
(function (
|
6
|
-
|
7
|
-
|
8
|
-
})(
|
3
|
+
exports.EDocType = void 0;
|
4
|
+
var EDocType;
|
5
|
+
(function (EDocType) {
|
6
|
+
EDocType["CPF"] = "CPF";
|
7
|
+
EDocType["CNPJ"] = "CNPJ";
|
8
|
+
})(EDocType || (exports.EDocType = EDocType = {}));
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export { EBankSlipStatus } from './bank-slip-status.enum';
|
2
2
|
export { BooleanStringEnum } from './boolean-string.enum';
|
3
|
-
export {
|
3
|
+
export { EDocType } from './doc-type.enum';
|
4
4
|
export { EDiscountType } from './e-discount-type.enum';
|
5
5
|
export { EFiscalDocModelCode } from './fiscal-doc-model-code.enum';
|
6
6
|
export { IntervalTypeEnum } from './interval-type.enum';
|
@@ -1,12 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ESponsorshipValues = exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.LegalEntiyEnum = exports.EPaymentType = exports.PaymentStatusEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.OsEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.EFiscalDocModelCode = exports.EDiscountType = exports.
|
3
|
+
exports.ESponsorshipValues = exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.LegalEntiyEnum = exports.EPaymentType = exports.PaymentStatusEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.OsEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.BooleanStringEnum = exports.EBankSlipStatus = void 0;
|
4
4
|
var bank_slip_status_enum_1 = require("./bank-slip-status.enum");
|
5
5
|
Object.defineProperty(exports, "EBankSlipStatus", { enumerable: true, get: function () { return bank_slip_status_enum_1.EBankSlipStatus; } });
|
6
6
|
var boolean_string_enum_1 = require("./boolean-string.enum");
|
7
7
|
Object.defineProperty(exports, "BooleanStringEnum", { enumerable: true, get: function () { return boolean_string_enum_1.BooleanStringEnum; } });
|
8
8
|
var doc_type_enum_1 = require("./doc-type.enum");
|
9
|
-
Object.defineProperty(exports, "
|
9
|
+
Object.defineProperty(exports, "EDocType", { enumerable: true, get: function () { return doc_type_enum_1.EDocType; } });
|
10
10
|
var e_discount_type_enum_1 = require("./e-discount-type.enum");
|
11
11
|
Object.defineProperty(exports, "EDiscountType", { enumerable: true, get: function () { return e_discount_type_enum_1.EDiscountType; } });
|
12
12
|
var fiscal_doc_model_code_enum_1 = require("./fiscal-doc-model-code.enum");
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -16,8 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./app"), exports);
|
18
18
|
__exportStar(require("./campaign"), exports);
|
19
|
+
__exportStar(require("./clients"), exports);
|
19
20
|
__exportStar(require("./company"), exports);
|
20
21
|
__exportStar(require("./container"), exports);
|
22
|
+
__exportStar(require("./customer"), exports);
|
21
23
|
__exportStar(require("./device"), exports);
|
22
24
|
__exportStar(require("./feature"), exports);
|
23
25
|
__exportStar(require("./general"), exports);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EDocType } from '../../general';
|
2
2
|
import { InviteStatusEnum } from '../enums';
|
3
3
|
import { IInvite } from '../interfaces';
|
4
4
|
export declare class InviteEntity implements IInvite {
|
@@ -7,7 +7,7 @@ export declare class InviteEntity implements IInvite {
|
|
7
7
|
containerId: string;
|
8
8
|
createdAt: Date;
|
9
9
|
doc: string;
|
10
|
-
docType:
|
10
|
+
docType: EDocType;
|
11
11
|
email: string;
|
12
12
|
expireAt: Date;
|
13
13
|
expired: boolean;
|
@@ -13,7 +13,7 @@ var InviteEntity = /** @class */ (function () {
|
|
13
13
|
this.containerId = '';
|
14
14
|
this.createdAt = new Date();
|
15
15
|
this.doc = '';
|
16
|
-
this.docType = general_1.
|
16
|
+
this.docType = general_1.EDocType.CNPJ;
|
17
17
|
this.email = '';
|
18
18
|
this.expireAt = new Date(new Date().getTime() + 86400000);
|
19
19
|
this.expired = false;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EDocType } from '../../general';
|
2
2
|
import { InviteStatusEnum } from '../enums';
|
3
3
|
export interface IInvite {
|
4
4
|
companyId: string;
|
@@ -6,7 +6,7 @@ export interface IInvite {
|
|
6
6
|
containerId: string;
|
7
7
|
createdAt: Date;
|
8
8
|
doc: string;
|
9
|
-
docType:
|
9
|
+
docType: EDocType;
|
10
10
|
email: string;
|
11
11
|
expireAt: Date;
|
12
12
|
expired: boolean;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { AddressEntity,
|
1
|
+
import { AddressEntity, EDocType } from '../../general';
|
2
2
|
import { IInvoicePayer } from '../interfaces/i-invoice-payer';
|
3
3
|
export declare class InvoicePayerEntity implements IInvoicePayer {
|
4
4
|
address: AddressEntity;
|
5
5
|
doc: string;
|
6
|
-
docType:
|
6
|
+
docType: EDocType;
|
7
7
|
email: string;
|
8
8
|
name: string;
|
9
9
|
phoneNumber: string | null;
|
@@ -9,7 +9,7 @@ var InvoicePayerEntity = /** @class */ (function () {
|
|
9
9
|
// #region Properties (6)
|
10
10
|
this.address = new general_1.AddressEntity();
|
11
11
|
this.doc = '';
|
12
|
-
this.docType = general_1.
|
12
|
+
this.docType = general_1.EDocType.CNPJ;
|
13
13
|
this.email = '';
|
14
14
|
this.name = '';
|
15
15
|
this.phoneNumber = null;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { EDocType, IAddress } from '../../general';
|
2
2
|
export interface IInvoicePayer {
|
3
3
|
address: IAddress;
|
4
4
|
doc: string;
|
5
|
-
docType:
|
5
|
+
docType: EDocType;
|
6
6
|
email: string;
|
7
7
|
name: string;
|
8
8
|
phoneNumber: string | null;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EDocType, LeadOriginEnum } from '../../general/enums';
|
2
2
|
import { LeadStatusEnum } from '../enums';
|
3
3
|
import { ILead } from '../interfaces';
|
4
4
|
export declare class LeadEntity implements ILead {
|
@@ -15,7 +15,7 @@ export declare class LeadEntity implements ILead {
|
|
15
15
|
/**Tipo de documento (CPF, CNPJ, Passaporte, etc.). */
|
16
16
|
doc: string;
|
17
17
|
/**Identificador único do lead. */
|
18
|
-
docType:
|
18
|
+
docType: EDocType;
|
19
19
|
/**Nome completo ou razão social do lead. */
|
20
20
|
email: string;
|
21
21
|
id: string;
|
@@ -21,7 +21,7 @@ var LeadEntity = /** @class */ (function () {
|
|
21
21
|
/**Tipo de documento (CPF, CNPJ, Passaporte, etc.). */
|
22
22
|
this.doc = '';
|
23
23
|
/**Identificador único do lead. */
|
24
|
-
this.docType = enums_1.
|
24
|
+
this.docType = enums_1.EDocType.CNPJ;
|
25
25
|
/**Nome completo ou razão social do lead. */
|
26
26
|
this.email = '';
|
27
27
|
this.id = '';
|
package/dist/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { AddressEntity, PaymentProviderEntity } from '../../general';
|
2
|
-
import {
|
2
|
+
import { EDocType } from '../../general/enums';
|
3
3
|
import { IPartner } from '../interfaces';
|
4
4
|
export declare class PartnerEntity implements IPartner {
|
5
5
|
active: boolean;
|
6
6
|
address: AddressEntity;
|
7
7
|
doc: string;
|
8
|
-
docType:
|
8
|
+
docType: EDocType;
|
9
9
|
email: string;
|
10
10
|
fullName: string;
|
11
11
|
id: string;
|
@@ -11,7 +11,7 @@ var PartnerEntity = /** @class */ (function () {
|
|
11
11
|
this.active = true;
|
12
12
|
this.address = new general_1.AddressEntity();
|
13
13
|
this.doc = '';
|
14
|
-
this.docType = enums_1.
|
14
|
+
this.docType = enums_1.EDocType.CNPJ;
|
15
15
|
this.email = '';
|
16
16
|
this.fullName = '';
|
17
17
|
this.id = '';
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { IAddress, IPaymentProvider } from '../../general';
|
2
|
-
import {
|
2
|
+
import { EDocType } from '../../general/enums';
|
3
3
|
export interface IPartner {
|
4
4
|
active: boolean;
|
5
5
|
address: IAddress;
|
6
6
|
doc: string;
|
7
|
-
docType:
|
7
|
+
docType: EDocType;
|
8
8
|
email: string;
|
9
9
|
level: number;
|
10
10
|
fullName: string;
|