cecon-interfaces 1.0.26 → 1.0.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/company/enums/keys.enum.d.ts +5 -5
- package/dist/company/enums/keys.enum.js +5 -5
- package/dist/company/enums/message-type.enum.d.ts +3 -3
- package/dist/company/enums/message-type.enum.js +3 -3
- package/dist/device/entities/device.entity.js +1 -1
- package/dist/device/enums/device-mode.enum.d.ts +7 -6
- package/dist/device/enums/device-mode.enum.js +7 -6
- package/dist/esm2022/company/enums/keys.enum.mjs +6 -6
- package/dist/esm2022/company/enums/message-type.enum.mjs +4 -4
- package/dist/esm2022/device/entities/device.entity.mjs +2 -2
- package/dist/esm2022/device/enums/device-mode.enum.mjs +8 -7
- package/dist/esm2022/general/entities/origin.entity.mjs +2 -2
- package/dist/esm2022/general/entities/payment-method.entity.mjs +4 -4
- package/dist/esm2022/general/enums/boolean-string.enum.mjs +3 -3
- package/dist/esm2022/general/enums/index.mjs +3 -1
- package/dist/esm2022/general/enums/interval-type.enum.mjs +4 -4
- package/dist/esm2022/general/enums/lead-origin.enum.mjs +8 -8
- package/dist/esm2022/general/enums/os.enum.mjs +8 -8
- package/dist/esm2022/general/enums/payment-channel.enum.mjs +9 -9
- package/dist/esm2022/general/enums/payment-mode.enum.mjs +4 -4
- package/dist/esm2022/general/enums/payment-type.enum.mjs +19 -19
- package/dist/esm2022/general/enums/person-type.enum.mjs +3 -3
- package/dist/esm2022/general/enums/platform.enum.mjs +8 -5
- package/dist/esm2022/general/enums/providers.enum.mjs +7 -7
- package/dist/esm2022/invite/entities/invite.entity.mjs +2 -2
- package/dist/esm2022/invite/enums/status.enum.mjs +6 -6
- package/dist/esm2022/iugu/entities/account-last-verification-request-data.entity.mjs +4 -4
- package/dist/esm2022/iugu/entities/iugu-account.entity.mjs +2 -2
- package/dist/esm2022/iugu/enums/iugu-auto-advance.enum.mjs +5 -5
- package/dist/esm2022/lead/entities/lead.entity.mjs +9 -7
- package/dist/esm2022/lead/enums/lead-status.enum.mjs +13 -6
- package/dist/esm2022/lead/interfaces/i-lead.mjs +1 -1
- package/dist/esm2022/member/entities/member.entity.mjs +6 -5
- package/dist/esm2022/member/enums/index.mjs +2 -1
- package/dist/esm2022/member/enums/member-rules.enum.mjs +9 -9
- package/dist/esm2022/member/enums/member-type.enum.mjs +7 -0
- package/dist/esm2022/member/interfaces/i-member.mjs +1 -1
- package/dist/esm2022/order/entities/payment-method.entity.mjs +2 -2
- package/dist/esm2022/plan/entities/plan.entity.mjs +3 -3
- package/dist/esm2022/plan/enums/plans-identifier.enum.mjs +3 -3
- package/dist/esm2022/purchases/entities/purchase.entity.mjs +2 -2
- package/dist/fesm2022/cecon-interfaces.mjs +151 -130
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/origin.entity.js +1 -1
- package/dist/general/entities/payment-method.entity.js +3 -3
- package/dist/general/enums/boolean-string.enum.d.ts +2 -2
- package/dist/general/enums/boolean-string.enum.js +2 -2
- package/dist/general/enums/index.d.ts +2 -0
- package/dist/general/enums/index.js +5 -1
- package/dist/general/enums/interval-type.enum.d.ts +3 -3
- package/dist/general/enums/interval-type.enum.js +3 -3
- package/dist/general/enums/lead-origin.enum.d.ts +7 -7
- package/dist/general/enums/lead-origin.enum.js +7 -7
- package/dist/general/enums/os.enum.d.ts +7 -7
- package/dist/general/enums/os.enum.js +7 -7
- package/dist/general/enums/payment-channel.enum.d.ts +8 -8
- package/dist/general/enums/payment-channel.enum.js +8 -8
- package/dist/general/enums/payment-mode.enum.d.ts +3 -3
- package/dist/general/enums/payment-mode.enum.js +3 -3
- package/dist/general/enums/payment-type.enum.d.ts +18 -18
- package/dist/general/enums/payment-type.enum.js +18 -18
- package/dist/general/enums/person-type.enum.d.ts +2 -2
- package/dist/general/enums/person-type.enum.js +2 -2
- package/dist/general/enums/platform.enum.d.ts +7 -4
- package/dist/general/enums/platform.enum.js +7 -4
- package/dist/general/enums/providers.enum.d.ts +6 -6
- package/dist/general/enums/providers.enum.js +6 -6
- package/dist/invite/entities/invite.entity.js +1 -1
- package/dist/invite/enums/status.enum.d.ts +5 -5
- package/dist/invite/enums/status.enum.js +5 -5
- package/dist/iugu/entities/account-last-verification-request-data.entity.js +3 -3
- package/dist/iugu/entities/iugu-account.entity.js +1 -1
- package/dist/iugu/enums/iugu-auto-advance.enum.d.ts +4 -4
- package/dist/iugu/enums/iugu-auto-advance.enum.js +4 -4
- package/dist/lead/entities/lead.entity.d.ts +4 -2
- package/dist/lead/entities/lead.entity.js +8 -6
- package/dist/lead/enums/lead-status.enum.d.ts +12 -5
- package/dist/lead/enums/lead-status.enum.js +12 -5
- package/dist/lead/interfaces/i-lead.d.ts +3 -1
- package/dist/member/entities/member.entity.d.ts +2 -1
- package/dist/member/entities/member.entity.js +4 -3
- package/dist/member/enums/index.d.ts +1 -0
- package/dist/member/enums/index.js +3 -1
- package/dist/member/enums/member-rules.enum.d.ts +8 -8
- package/dist/member/enums/member-rules.enum.js +8 -8
- package/dist/member/enums/member-type.enum.d.ts +5 -0
- package/dist/member/enums/member-type.enum.js +9 -0
- package/dist/member/interfaces/i-member.d.ts +2 -1
- package/dist/order/entities/payment-method.entity.js +1 -1
- package/dist/package.json +1 -1
- package/dist/plan/entities/plan.entity.js +2 -2
- package/dist/plan/enums/plans-identifier.enum.d.ts +2 -2
- package/dist/plan/enums/plans-identifier.enum.js +2 -2
- package/dist/purchases/entities/purchase.entity.js +1 -1
- package/package.json +1 -1
@@ -1,6 +1,7 @@
|
|
1
1
|
import { LeadOriginEnum } from '../../general/enums';
|
2
2
|
import { LeadStatusEnum } from '../enums';
|
3
3
|
export interface ILead {
|
4
|
+
activity?: string[];
|
4
5
|
agentId: string;
|
5
6
|
alternateEmails?: string[];
|
6
7
|
alternatePhones?: string[];
|
@@ -13,8 +14,9 @@ export interface ILead {
|
|
13
14
|
interestedIn: string[];
|
14
15
|
lastContacted?: number;
|
15
16
|
name: string;
|
16
|
-
|
17
|
+
note?: string;
|
17
18
|
phoneNumber?: string;
|
19
|
+
responsibleId?: string;
|
18
20
|
sandbox: boolean;
|
19
21
|
source: LeadOriginEnum;
|
20
22
|
status: LeadStatusEnum;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { BaseEntity } from '../../general';
|
2
|
-
import { MemberRulesEnum } from '../enums';
|
2
|
+
import { MemberRulesEnum, MemberTypeEnum } from '../enums';
|
3
3
|
import { IMember } from '../interfaces';
|
4
4
|
export declare class MemberEntity extends BaseEntity implements IMember {
|
5
5
|
active: boolean;
|
@@ -12,6 +12,7 @@ export declare class MemberEntity extends BaseEntity implements IMember {
|
|
12
12
|
photoURL: string;
|
13
13
|
rule: MemberRulesEnum;
|
14
14
|
tags: string[];
|
15
|
+
type: MemberTypeEnum;
|
15
16
|
uid: string;
|
16
17
|
constructor(data?: Partial<MemberEntity>);
|
17
18
|
}
|
@@ -20,11 +20,11 @@ var general_1 = require("../../general");
|
|
20
20
|
var enums_1 = require("../enums");
|
21
21
|
var MemberEntity = /** @class */ (function (_super) {
|
22
22
|
__extends(MemberEntity, _super);
|
23
|
-
// #endregion Properties (
|
23
|
+
// #endregion Properties (12)
|
24
24
|
// #region Constructors (1)
|
25
25
|
function MemberEntity(data) {
|
26
26
|
var _this = _super.call(this, data) || this;
|
27
|
-
// #region Properties (
|
27
|
+
// #region Properties (12)
|
28
28
|
_this.active = true;
|
29
29
|
_this.companyName = '';
|
30
30
|
_this.containerName = '';
|
@@ -33,8 +33,9 @@ var MemberEntity = /** @class */ (function (_super) {
|
|
33
33
|
_this.partnerId = '';
|
34
34
|
_this.phoneNumber = '';
|
35
35
|
_this.photoURL = '';
|
36
|
-
_this.rule = enums_1.MemberRulesEnum.
|
36
|
+
_this.rule = enums_1.MemberRulesEnum.USER;
|
37
37
|
_this.tags = [];
|
38
|
+
_this.type = enums_1.MemberTypeEnum.CLIENT;
|
38
39
|
_this.uid = '';
|
39
40
|
if (data) {
|
40
41
|
for (var key in data) {
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MemberRulesEnum = void 0;
|
3
|
+
exports.MemberTypeEnum = exports.MemberRulesEnum = void 0;
|
4
4
|
var member_rules_enum_1 = require("./member-rules.enum");
|
5
5
|
Object.defineProperty(exports, "MemberRulesEnum", { enumerable: true, get: function () { return member_rules_enum_1.MemberRulesEnum; } });
|
6
|
+
var member_type_enum_1 = require("./member-type.enum");
|
7
|
+
Object.defineProperty(exports, "MemberTypeEnum", { enumerable: true, get: function () { return member_type_enum_1.MemberTypeEnum; } });
|
@@ -1,10 +1,10 @@
|
|
1
1
|
export declare enum MemberRulesEnum {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
ADMIN = "ADMIN",
|
3
|
+
USER = "USER",
|
4
|
+
OWNER = "OWNER",
|
5
|
+
SUPPORT = "SUPPORT",
|
6
|
+
PARTNER = "PARTNER",
|
7
|
+
FINANCE = "FINANCE",
|
8
|
+
MARKETING = "MARKETING",
|
9
|
+
SALES = "SALES"
|
10
10
|
}
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MemberRulesEnum = void 0;
|
4
4
|
var MemberRulesEnum;
|
5
5
|
(function (MemberRulesEnum) {
|
6
|
-
MemberRulesEnum["
|
7
|
-
MemberRulesEnum["
|
8
|
-
MemberRulesEnum["
|
9
|
-
MemberRulesEnum["
|
10
|
-
MemberRulesEnum["
|
11
|
-
MemberRulesEnum["
|
12
|
-
MemberRulesEnum["
|
13
|
-
MemberRulesEnum["
|
6
|
+
MemberRulesEnum["ADMIN"] = "ADMIN";
|
7
|
+
MemberRulesEnum["USER"] = "USER";
|
8
|
+
MemberRulesEnum["OWNER"] = "OWNER";
|
9
|
+
MemberRulesEnum["SUPPORT"] = "SUPPORT";
|
10
|
+
MemberRulesEnum["PARTNER"] = "PARTNER";
|
11
|
+
MemberRulesEnum["FINANCE"] = "FINANCE";
|
12
|
+
MemberRulesEnum["MARKETING"] = "MARKETING";
|
13
|
+
MemberRulesEnum["SALES"] = "SALES";
|
14
14
|
})(MemberRulesEnum || (exports.MemberRulesEnum = MemberRulesEnum = {}));
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MemberTypeEnum = void 0;
|
4
|
+
var MemberTypeEnum;
|
5
|
+
(function (MemberTypeEnum) {
|
6
|
+
MemberTypeEnum["PARTNER"] = "PARTNER";
|
7
|
+
MemberTypeEnum["ADMIN"] = "ADMIN";
|
8
|
+
MemberTypeEnum["CLIENT"] = "CLIENT";
|
9
|
+
})(MemberTypeEnum || (exports.MemberTypeEnum = MemberTypeEnum = {}));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IBase } from '../../general';
|
2
|
-
import { MemberRulesEnum } from '../enums';
|
2
|
+
import { MemberRulesEnum, MemberTypeEnum } from '../enums';
|
3
3
|
export interface IMember extends IBase {
|
4
4
|
companyName: string;
|
5
5
|
containerName: string;
|
@@ -9,5 +9,6 @@ export interface IMember extends IBase {
|
|
9
9
|
phoneNumber: string;
|
10
10
|
photoURL: string;
|
11
11
|
rule: MemberRulesEnum;
|
12
|
+
type: MemberTypeEnum;
|
12
13
|
uid: string;
|
13
14
|
}
|
@@ -12,7 +12,7 @@ var OrderPaymentMethodEntity = /** @class */ (function () {
|
|
12
12
|
this.code = '';
|
13
13
|
this.currency = 'BRL';
|
14
14
|
this.id = '';
|
15
|
-
this.method = general_1.PaymentTypeEnum.
|
15
|
+
this.method = general_1.PaymentTypeEnum.CASH;
|
16
16
|
this.pix = null;
|
17
17
|
this.prepaid = false;
|
18
18
|
this.type = 'OFFLINE';
|
package/dist/package.json
CHANGED
@@ -11,9 +11,9 @@ var PlanEntity = /** @class */ (function () {
|
|
11
11
|
this.createdAt = Date.now();
|
12
12
|
this.features = [];
|
13
13
|
this.id = '';
|
14
|
-
this.identifier = plans_identifier_enum_1.PlanIdentifierEnum.
|
14
|
+
this.identifier = plans_identifier_enum_1.PlanIdentifierEnum.NATIGO;
|
15
15
|
this.interval = 12;
|
16
|
-
this.intervalType = enums_1.IntervalTypeEnum.
|
16
|
+
this.intervalType = enums_1.IntervalTypeEnum.MONTHS;
|
17
17
|
this.name = '';
|
18
18
|
this.price = 0;
|
19
19
|
this.updatedAt = Date.now();
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlanIdentifierEnum = void 0;
|
4
4
|
var PlanIdentifierEnum;
|
5
5
|
(function (PlanIdentifierEnum) {
|
6
|
-
PlanIdentifierEnum["
|
7
|
-
PlanIdentifierEnum["
|
6
|
+
PlanIdentifierEnum["NATIGO"] = "NATIGO-UNO";
|
7
|
+
PlanIdentifierEnum["SAT_MANAGER_NAPOLEON"] = "SAT-MANAGER-NAPOLEON";
|
8
8
|
})(PlanIdentifierEnum || (exports.PlanIdentifierEnum = PlanIdentifierEnum = {}));
|
@@ -29,7 +29,7 @@ var PurchaseEntity = /** @class */ (function (_super) {
|
|
29
29
|
_this.additionalNotes = '';
|
30
30
|
_this.appInfo = new app_info_entity_1.AppInfoEntity();
|
31
31
|
_this.deviceUid = '';
|
32
|
-
_this.providerName = providers_enum_1.PaymentProviderEnum.
|
32
|
+
_this.providerName = providers_enum_1.PaymentProviderEnum.IUGU;
|
33
33
|
if (data) {
|
34
34
|
for (var key in data) {
|
35
35
|
if (data.hasOwnProperty(key) && key in _this) {
|