cecon-interfaces 1.1.68 → 1.1.70
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/app/entities/app.entity.d.ts +6 -6
- package/dist/app/entities/app.entity.js +1 -1
- package/dist/app/interfaces/i-app.d.ts +6 -6
- package/dist/billing/entities/billing-payment.entity.d.ts +19 -0
- package/dist/billing/entities/billing-payment.entity.js +33 -0
- package/dist/billing/entities/billing-total.entity.d.ts +10 -0
- package/dist/billing/entities/billing-total.entity.js +25 -0
- package/dist/billing/entities/billing.entity.d.ts +14 -0
- package/dist/billing/entities/billing.entity.js +29 -0
- package/dist/billing/entities/index.d.ts +3 -0
- package/dist/billing/entities/index.js +9 -0
- package/dist/billing/enums/billing-status.enum.d.ts +6 -0
- package/dist/billing/enums/billing-status.enum.js +12 -0
- package/dist/billing/enums/index.d.ts +1 -0
- package/dist/billing/enums/index.js +5 -0
- package/dist/billing/index.d.ts +3 -0
- package/dist/billing/index.js +19 -0
- package/dist/billing/interfaces/i-billing-payment.d.ts +17 -0
- package/dist/billing/interfaces/i-billing-payment.js +2 -0
- package/dist/billing/interfaces/i-billing-total.d.ts +8 -0
- package/dist/billing/interfaces/i-billing-total.js +2 -0
- package/dist/billing/interfaces/i-billing.d.ts +14 -0
- package/dist/billing/interfaces/i-billing.js +2 -0
- package/dist/billing/interfaces/index.d.ts +3 -0
- package/dist/billing/interfaces/index.js +2 -0
- package/dist/billing-order/entities/billing-order.entity.d.ts +6 -0
- package/dist/billing-order/entities/billing-order.entity.js +39 -0
- package/dist/billing-order/entities/index.d.ts +1 -0
- package/dist/billing-order/entities/index.js +5 -0
- package/dist/billing-order/index.d.ts +2 -0
- package/dist/billing-order/index.js +18 -0
- package/dist/billing-order/interfaces/i-billing-order.d.ts +4 -0
- package/dist/billing-order/interfaces/i-billing-order.js +2 -0
- package/dist/billing-order/interfaces/index.d.ts +1 -0
- package/dist/billing-order/interfaces/index.js +2 -0
- package/dist/device/entities/device.entity.d.ts +2 -2
- package/dist/device/entities/device.entity.js +1 -1
- package/dist/device/interfaces/i-device.d.ts +2 -2
- package/dist/esm2022/app/entities/app.entity.mjs +3 -3
- package/dist/esm2022/app/interfaces/i-app.mjs +1 -1
- package/dist/esm2022/billing/entities/billing-payment.entity.mjs +29 -0
- package/dist/esm2022/billing/entities/billing-total.entity.mjs +21 -0
- package/dist/esm2022/billing/entities/billing.entity.mjs +25 -0
- package/dist/esm2022/billing/entities/index.mjs +4 -0
- package/dist/esm2022/billing/enums/billing-status.enum.mjs +10 -0
- package/dist/esm2022/billing/enums/index.mjs +2 -0
- package/dist/esm2022/billing/index.mjs +4 -0
- package/dist/esm2022/billing/interfaces/i-billing-payment.mjs +2 -0
- package/dist/esm2022/billing/interfaces/i-billing-total.mjs +2 -0
- package/dist/esm2022/billing/interfaces/i-billing.mjs +2 -0
- package/dist/esm2022/billing/interfaces/index.mjs +2 -0
- package/dist/esm2022/billing-order/entities/billing-order.entity.mjs +18 -0
- package/dist/esm2022/billing-order/entities/index.mjs +2 -0
- package/dist/esm2022/billing-order/index.mjs +3 -0
- package/dist/esm2022/billing-order/interfaces/i-billing-order.mjs +2 -0
- package/dist/esm2022/billing-order/interfaces/index.mjs +2 -0
- package/dist/esm2022/device/entities/device.entity.mjs +3 -3
- package/dist/esm2022/device/interfaces/i-device.mjs +1 -1
- package/dist/esm2022/general/entities/origin.entity.mjs +3 -3
- package/dist/esm2022/general/entities/payment-method-option.entity.mjs +5 -5
- package/dist/esm2022/general/enums/boolean-string.enum.mjs +6 -6
- package/dist/esm2022/general/enums/index.mjs +12 -11
- package/dist/esm2022/general/enums/interval-type.enum.mjs +7 -7
- package/dist/esm2022/general/enums/lead-origin.enum.mjs +11 -11
- package/dist/esm2022/general/enums/os.enum.mjs +12 -12
- package/dist/esm2022/general/enums/payment-channel.enum.mjs +12 -12
- package/dist/esm2022/general/enums/payment-mode.enum.mjs +7 -7
- package/dist/esm2022/general/enums/payment-status.enum.mjs +14 -13
- package/dist/esm2022/general/enums/person-type.enum.mjs +6 -6
- package/dist/esm2022/general/enums/platform.enum.mjs +11 -11
- package/dist/esm2022/general/enums/providers.enum.mjs +10 -10
- package/dist/esm2022/general/enums/pubsub.enum.mjs +6 -0
- package/dist/esm2022/general/interfaces/i-origin.mjs +1 -1
- package/dist/esm2022/general/interfaces/i-payment-method-option.mjs +1 -1
- package/dist/esm2022/index.mjs +3 -1
- package/dist/esm2022/iugu/entities/account-last-verification-request-data.entity.mjs +6 -6
- package/dist/esm2022/iugu/interfaces/i-account-info-last-ver-req-data.mjs +1 -1
- package/dist/esm2022/lead/entities/lead.entity.mjs +3 -3
- package/dist/esm2022/lead/interfaces/i-lead.mjs +1 -1
- package/dist/esm2022/plan/entities/plan.entity.mjs +3 -3
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/esm2022/purchases/entities/purchase.entity.mjs +3 -3
- package/dist/esm2022/purchases/interfaces/i-purchase.mjs +1 -1
- package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +3 -3
- package/dist/esm2022/subscription-base/interfaces/i-subscription-base.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +1532 -1426
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/origin.entity.d.ts +2 -2
- package/dist/general/entities/origin.entity.js +1 -1
- package/dist/general/entities/payment-method-option.entity.d.ts +4 -4
- package/dist/general/entities/payment-method-option.entity.js +2 -2
- package/dist/general/enums/boolean-string.enum.d.ts +1 -1
- package/dist/general/enums/boolean-string.enum.js +6 -6
- package/dist/general/enums/index.d.ts +11 -10
- package/dist/general/enums/index.js +13 -11
- package/dist/general/enums/interval-type.enum.d.ts +1 -1
- package/dist/general/enums/interval-type.enum.js +7 -7
- package/dist/general/enums/lead-origin.enum.d.ts +1 -1
- package/dist/general/enums/lead-origin.enum.js +11 -11
- package/dist/general/enums/os.enum.d.ts +1 -1
- package/dist/general/enums/os.enum.js +12 -12
- package/dist/general/enums/payment-channel.enum.d.ts +1 -1
- package/dist/general/enums/payment-channel.enum.js +12 -12
- package/dist/general/enums/payment-mode.enum.d.ts +1 -1
- package/dist/general/enums/payment-mode.enum.js +7 -7
- package/dist/general/enums/payment-status.enum.d.ts +2 -1
- package/dist/general/enums/payment-status.enum.js +14 -13
- package/dist/general/enums/person-type.enum.d.ts +1 -1
- package/dist/general/enums/person-type.enum.js +6 -6
- package/dist/general/enums/platform.enum.d.ts +1 -1
- package/dist/general/enums/platform.enum.js +11 -11
- package/dist/general/enums/providers.enum.d.ts +1 -1
- package/dist/general/enums/providers.enum.js +10 -10
- package/dist/general/enums/pubsub.enum.d.ts +4 -0
- package/dist/general/enums/pubsub.enum.js +8 -0
- package/dist/general/interfaces/i-origin.d.ts +2 -2
- package/dist/general/interfaces/i-payment-method-option.d.ts +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/iugu/entities/account-last-verification-request-data.entity.d.ts +5 -5
- package/dist/iugu/entities/account-last-verification-request-data.entity.js +3 -3
- package/dist/iugu/interfaces/i-account-info-last-ver-req-data.d.ts +5 -5
- package/dist/lead/entities/lead.entity.d.ts +2 -2
- package/dist/lead/entities/lead.entity.js +1 -1
- package/dist/lead/interfaces/i-lead.d.ts +6 -6
- package/dist/package.json +1 -1
- package/dist/plan/entities/plan.entity.d.ts +2 -2
- package/dist/plan/entities/plan.entity.js +1 -1
- package/dist/plan/interfaces/i-plan.d.ts +2 -2
- package/dist/purchases/entities/purchase.entity.d.ts +2 -2
- package/dist/purchases/entities/purchase.entity.js +1 -1
- package/dist/purchases/interfaces/i-purchase.d.ts +2 -2
- package/dist/subscription-base/entities/subscription-base.entity.d.ts +2 -2
- package/dist/subscription-base/entities/subscription-base.entity.js +1 -1
- package/dist/subscription-base/interfaces/i-subscription-base.d.ts +2 -2
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ELeadOrigin } from '../../general/enums';
|
2
2
|
import { LeadStatusEnum } from '../enums';
|
3
3
|
export interface ILead {
|
4
4
|
/**
|
@@ -24,11 +24,11 @@ export interface ILead {
|
|
24
24
|
createdAt: Date;
|
25
25
|
/**
|
26
26
|
* Número do documento conforme o tipo.
|
27
|
-
|
27
|
+
**/
|
28
28
|
doc: string;
|
29
29
|
/**
|
30
30
|
* Tipo de documento (CPF, CNPJ, Passaporte, etc.).
|
31
|
-
|
31
|
+
**/
|
32
32
|
docType: any;
|
33
33
|
/**
|
34
34
|
* Endereço de e-mail principal para contato.
|
@@ -36,7 +36,7 @@ export interface ILead {
|
|
36
36
|
email: string;
|
37
37
|
/**
|
38
38
|
* Identificador único do lead.
|
39
|
-
|
39
|
+
**/
|
40
40
|
id: string;
|
41
41
|
/**
|
42
42
|
* Lista de produtos ou serviços de interesse.
|
@@ -48,7 +48,7 @@ export interface ILead {
|
|
48
48
|
lastContacted?: Date;
|
49
49
|
/**
|
50
50
|
* Nome completo ou razão social do lead.
|
51
|
-
|
51
|
+
**/
|
52
52
|
name: string;
|
53
53
|
/**
|
54
54
|
* Notas ou observações adicionais.
|
@@ -57,7 +57,7 @@ export interface ILead {
|
|
57
57
|
/**
|
58
58
|
* Fonte de origem do lead.
|
59
59
|
**/
|
60
|
-
origin:
|
60
|
+
origin: ELeadOrigin;
|
61
61
|
/**
|
62
62
|
* Id do afiliado responsável pelo lead.
|
63
63
|
*/
|
package/dist/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EIntervalType } from '../../general/enums';
|
2
2
|
import { EPlanIdentifier } from '../enums/plans-identifier.enum';
|
3
3
|
import { IPlan } from '../interfaces';
|
4
4
|
import { PlanFeatureEntity } from './feature.entity';
|
@@ -10,7 +10,7 @@ export declare class PlanEntity implements IPlan {
|
|
10
10
|
index: number;
|
11
11
|
identifier: EPlanIdentifier;
|
12
12
|
interval: number;
|
13
|
-
intervalType:
|
13
|
+
intervalType: EIntervalType;
|
14
14
|
name: string;
|
15
15
|
price: number;
|
16
16
|
updatedAt: Date;
|
@@ -15,7 +15,7 @@ var PlanEntity = /** @class */ (function () {
|
|
15
15
|
this.index = 0;
|
16
16
|
this.identifier = plans_identifier_enum_1.EPlanIdentifier.NATIGO;
|
17
17
|
this.interval = 12;
|
18
|
-
this.intervalType = enums_1.
|
18
|
+
this.intervalType = enums_1.EIntervalType.MONTHS;
|
19
19
|
this.name = '';
|
20
20
|
this.price = 0;
|
21
21
|
this.updatedAt = new Date();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EIntervalType } from '../../general/enums';
|
2
2
|
import { EPlanIdentifier } from '../enums';
|
3
3
|
import { IPlanFeature } from './i-feature';
|
4
4
|
export interface IPlan {
|
@@ -8,7 +8,7 @@ export interface IPlan {
|
|
8
8
|
identifier: EPlanIdentifier;
|
9
9
|
index: number;
|
10
10
|
interval: number;
|
11
|
-
intervalType:
|
11
|
+
intervalType: EIntervalType;
|
12
12
|
tags: string[];
|
13
13
|
name: string;
|
14
14
|
price: number;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { EPaymentProvider } from '../../general/enums/providers.enum';
|
2
2
|
import { OrderEntity } from '../../order';
|
3
3
|
import { AppInfoEntity } from './app-info.entity';
|
4
4
|
export declare class PurchaseEntity extends OrderEntity {
|
5
5
|
additionalNotes?: string;
|
6
6
|
appInfo: AppInfoEntity;
|
7
7
|
deviceUid: string;
|
8
|
-
providerName:
|
8
|
+
providerName: EPaymentProvider;
|
9
9
|
constructor(data?: Partial<PurchaseEntity>);
|
10
10
|
}
|
@@ -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.
|
32
|
+
_this.providerName = providers_enum_1.EPaymentProvider.IUGU;
|
33
33
|
if (data) {
|
34
34
|
for (var key in data) {
|
35
35
|
if (data.hasOwnProperty(key) && key in _this) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EPaymentProvider } from '../../general/enums/providers.enum';
|
2
2
|
import { IOrder } from '../../order';
|
3
3
|
import { IAppInfo } from './i-app-info';
|
4
4
|
/**
|
@@ -14,5 +14,5 @@ export interface IPurchase extends IOrder {
|
|
14
14
|
/** ID do dispositivo para o qual o aplicativo foi ativado. */
|
15
15
|
deviceUid: string;
|
16
16
|
/** Identificação da origem do pagamento ex: DESENFILA */
|
17
|
-
providerName:
|
17
|
+
providerName: EPaymentProvider;
|
18
18
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CustomVariableEntity,
|
1
|
+
import { CustomVariableEntity, EIntervalType, EPaymentType, PaymentEntity } from '../../general';
|
2
2
|
import { InvoiceEntity } from '../../invoice';
|
3
3
|
import { ESubscriptionStatus } from '../enums';
|
4
4
|
import { ISubscriptionBase } from '../interfaces/i-subscription-base';
|
@@ -12,7 +12,7 @@ export declare class SubscriptionBaseEntity implements ISubscriptionBase {
|
|
12
12
|
expiresAt: Date;
|
13
13
|
id: string;
|
14
14
|
interval: number;
|
15
|
-
intervalType:
|
15
|
+
intervalType: EIntervalType;
|
16
16
|
invoices: InvoiceEntity[];
|
17
17
|
items: SubscriptionBaseItemEntity[];
|
18
18
|
logs: SubscriptionBaseLogEntity[];
|
@@ -15,7 +15,7 @@ var SubscriptionBaseEntity = /** @class */ (function () {
|
|
15
15
|
this.expiresAt = new Date();
|
16
16
|
this.id = '';
|
17
17
|
this.interval = 0;
|
18
|
-
this.intervalType = general_1.
|
18
|
+
this.intervalType = general_1.EIntervalType.MONTHS;
|
19
19
|
this.invoices = [];
|
20
20
|
this.items = [];
|
21
21
|
this.logs = [];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { EPaymentType, ICustomVariable, IPayment
|
1
|
+
import { EIntervalType, EPaymentType, ICustomVariable, IPayment } from '../../general';
|
2
2
|
import { IInvoice } from '../../invoice';
|
3
3
|
import { ESubscriptionStatus } from '../enums';
|
4
4
|
import { ISubscriptionBaseItem } from './i-subscription-base-item';
|
@@ -11,7 +11,7 @@ export interface ISubscriptionBase {
|
|
11
11
|
expiresAt: Date;
|
12
12
|
id: string;
|
13
13
|
interval: number;
|
14
|
-
intervalType:
|
14
|
+
intervalType: EIntervalType;
|
15
15
|
invoices: IInvoice[];
|
16
16
|
items: ISubscriptionBaseItem[];
|
17
17
|
logs: ISubscriptionBaseLog[];
|