cecon-interfaces 1.1.64 → 1.1.66
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-credential.d.ts +6 -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 +4 -1
- package/dist/esm2022/installation/entities/installation.entity.mjs +2 -2
- package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -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/esm2022/pubsub/entities/subscription-change-status.entity.mjs +1 -1
- package/dist/esm2022/pubsub/interfaces/i-subscription-change-status.mjs +1 -1
- package/dist/esm2022/subscription/entities/index.mjs +1 -3
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +6 -30
- package/dist/esm2022/subscription/index.mjs +1 -2
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/subscription/interfaces/index.mjs +1 -1
- package/dist/esm2022/subscription-base/entities/index.mjs +5 -0
- package/dist/esm2022/subscription-base/entities/subscription-base-customer.entity.mjs +21 -0
- package/dist/esm2022/subscription-base/entities/subscription-base-item.entity.mjs +21 -0
- package/dist/esm2022/subscription-base/entities/subscription-base-log.entity.mjs +19 -0
- package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +43 -0
- package/dist/esm2022/subscription-base/enums/index.mjs +2 -0
- package/dist/esm2022/subscription-base/enums/subscription-status.enum.mjs +12 -0
- package/dist/esm2022/subscription-base/index.mjs +4 -0
- package/dist/esm2022/subscription-base/interfaces/i-subscription-base-customer.mjs +2 -0
- package/dist/esm2022/subscription-base/interfaces/i-subscription-base-item.mjs +2 -0
- package/dist/esm2022/subscription-base/interfaces/i-subscription-base-log.mjs +2 -0
- package/dist/esm2022/subscription-base/interfaces/i-subscription-base.mjs +2 -0
- package/dist/esm2022/subscription-base/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +224 -78
- 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 +3 -0
- package/dist/index.js +3 -0
- package/dist/installation/entities/installation.entity.d.ts +1 -1
- package/dist/installation/entities/installation.entity.js +2 -2
- package/dist/installation/interfaces/i-installation.d.ts +1 -1
- 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/dist/pubsub/entities/subscription-change-status.entity.d.ts +1 -1
- package/dist/pubsub/interfaces/i-subscription-change-status.d.ts +1 -1
- package/dist/subscription/entities/index.d.ts +0 -2
- package/dist/subscription/entities/index.js +1 -5
- package/dist/subscription/entities/subscription.entity.d.ts +2 -30
- package/dist/subscription/entities/subscription.entity.js +32 -39
- package/dist/subscription/index.d.ts +0 -1
- package/dist/subscription/index.js +0 -1
- package/dist/subscription/interfaces/i-subscription.d.ts +2 -31
- package/dist/subscription/interfaces/index.d.ts +0 -2
- package/dist/subscription-base/entities/index.d.ts +4 -0
- package/dist/subscription-base/entities/index.js +11 -0
- package/dist/subscription-base/entities/subscription-base-customer.entity.d.ts +10 -0
- package/dist/subscription-base/entities/subscription-base-customer.entity.js +25 -0
- package/dist/subscription-base/entities/subscription-base-item.entity.d.ts +10 -0
- package/dist/{subscription/entities/subscription-item.entity.js → subscription-base/entities/subscription-base-item.entity.js} +5 -5
- package/dist/subscription-base/entities/subscription-base-log.entity.d.ts +8 -0
- package/dist/{subscription/entities/subscription-log.entity.js → subscription-base/entities/subscription-base-log.entity.js} +8 -8
- package/dist/subscription-base/entities/subscription-base.entity.d.ts +36 -0
- package/dist/subscription-base/entities/subscription-base.entity.js +47 -0
- package/dist/subscription-base/index.d.ts +3 -0
- package/dist/subscription-base/index.js +19 -0
- package/dist/subscription-base/interfaces/i-subscription-base-customer.d.ts +8 -0
- package/dist/subscription-base/interfaces/i-subscription-base-customer.js +2 -0
- package/dist/{subscription/interfaces/i-subscription-item.d.ts → subscription-base/interfaces/i-subscription-base-item.d.ts} +1 -1
- package/dist/subscription-base/interfaces/i-subscription-base-item.js +2 -0
- package/dist/{subscription/interfaces/i-subscription-log.d.ts → subscription-base/interfaces/i-subscription-base-log.d.ts} +1 -1
- package/dist/subscription-base/interfaces/i-subscription-base-log.js +2 -0
- package/dist/subscription-base/interfaces/i-subscription-base.d.ts +32 -0
- package/dist/subscription-base/interfaces/i-subscription-base.js +2 -0
- package/dist/subscription-base/interfaces/index.d.ts +4 -0
- package/dist/subscription-base/interfaces/index.js +2 -0
- package/package.json +1 -1
- package/dist/esm2022/subscription/entities/subscription-item.entity.mjs +0 -21
- package/dist/esm2022/subscription/entities/subscription-log.entity.mjs +0 -19
- package/dist/esm2022/subscription/enums/index.mjs +0 -2
- package/dist/esm2022/subscription/enums/subscription-status.enum.mjs +0 -12
- package/dist/esm2022/subscription/interfaces/i-subscription-item.mjs +0 -2
- package/dist/esm2022/subscription/interfaces/i-subscription-log.mjs +0 -2
- package/dist/subscription/entities/subscription-item.entity.d.ts +0 -10
- package/dist/subscription/entities/subscription-log.entity.d.ts +0 -8
- /package/dist/{subscription/interfaces/i-subscription-item.js → clients/interfaces/i-client-aplication.js} +0 -0
- /package/dist/{subscription/interfaces/i-subscription-log.js → clients/interfaces/i-client-credential.js} +0 -0
- /package/dist/{subscription → subscription-base}/enums/index.d.ts +0 -0
- /package/dist/{subscription → subscription-base}/enums/index.js +0 -0
- /package/dist/{subscription → subscription-base}/enums/subscription-status.enum.d.ts +0 -0
- /package/dist/{subscription → subscription-base}/enums/subscription-status.enum.js +0 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
import { EPaymentType, IntervalTypeEnum, PaymentEntity } from '../../general';
|
2
|
+
import { ESubscriptionStatus } from '../enums';
|
3
|
+
import { SubscriptionBaseCustomerEntity } from './subscription-base-customer.entity';
|
4
|
+
export class SubscriptionBaseEntity {
|
5
|
+
// #region Properties (25)
|
6
|
+
amount = 0;
|
7
|
+
cancellationReason = '';
|
8
|
+
createdAt = new Date();
|
9
|
+
customVariables = [];
|
10
|
+
customer = new SubscriptionBaseCustomerEntity();
|
11
|
+
expiresAt = new Date();
|
12
|
+
features = [];
|
13
|
+
id = '';
|
14
|
+
interval = 0;
|
15
|
+
intervalType = IntervalTypeEnum.MONTHS;
|
16
|
+
invoices = [];
|
17
|
+
items = [];
|
18
|
+
logs = [];
|
19
|
+
notes = '';
|
20
|
+
payment = new PaymentEntity();
|
21
|
+
paymentType = EPaymentType.NONE;
|
22
|
+
phoneNumberNotification = '';
|
23
|
+
recentInvoices = [];
|
24
|
+
renewPaymentDate = new Date();
|
25
|
+
renovatedAt = new Date();
|
26
|
+
startsAt = new Date();
|
27
|
+
status = ESubscriptionStatus.PENDING;
|
28
|
+
suspendedTimes = 0;
|
29
|
+
tags = [];
|
30
|
+
updatedAt = new Date();
|
31
|
+
// #endregion Properties (25)
|
32
|
+
// #region Constructors (1)
|
33
|
+
constructor(data) {
|
34
|
+
if (data) {
|
35
|
+
for (let key in data) {
|
36
|
+
if (data.hasOwnProperty(key) && key in this) {
|
37
|
+
this[key] = data[key];
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLWJhc2UuZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3N1YnNjcmlwdGlvbi1iYXNlL2VudGl0aWVzL3N1YnNjcmlwdGlvbi1iYXNlLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQXdCLFlBQVksRUFBRSxnQkFBZ0IsRUFBRSxhQUFhLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFcEcsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sVUFBVSxDQUFDO0FBRS9DLE9BQU8sRUFBRSw4QkFBOEIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBSXJGLE1BQU0sT0FBTyxzQkFBc0I7SUFDak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dG9ycyAoMSlcbn1cbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export { ESubscriptionStatus } from './subscription-status.enum';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvc3Vic2NyaXB0aW9uLWJhc2UvZW51bXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sNEJBQTRCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBFU3Vic2NyaXB0aW9uU3RhdHVzIH0gZnJvbSAnLi9zdWJzY3JpcHRpb24tc3RhdHVzLmVudW0nO1xuIl19
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export var ESubscriptionStatus;
|
2
|
+
(function (ESubscriptionStatus) {
|
3
|
+
ESubscriptionStatus["ACTIVE"] = "ACTIVE";
|
4
|
+
ESubscriptionStatus["CANCELLED"] = "CANCELLED";
|
5
|
+
ESubscriptionStatus["PLACED"] = "PLACED";
|
6
|
+
ESubscriptionStatus["EXPIRED"] = "EXPIRED";
|
7
|
+
ESubscriptionStatus["PENDING"] = "PENDING";
|
8
|
+
ESubscriptionStatus["TRIAL"] = "TRIAL";
|
9
|
+
ESubscriptionStatus["FREE"] = "FREE";
|
10
|
+
ESubscriptionStatus["SUSPENDED"] = "SUSPENDED";
|
11
|
+
})(ESubscriptionStatus || (ESubscriptionStatus = {}));
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLXN0YXR1cy5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3N1YnNjcmlwdGlvbi1iYXNlL2VudW1zL3N1YnNjcmlwdGlvbi1zdGF0dXMuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxtQkFTWDtBQVRELFdBQVksbUJBQW1CO0lBQzdCLHdDQUFpQixDQUFBO0lBQ2pCLDhDQUF1QixDQUFBO0lBQ3ZCLHdDQUFpQixDQUFBO0lBQ2pCLDBDQUFtQixDQUFBO0lBQ25CLDBDQUFtQixDQUFBO0lBQ25CLHNDQUFlLENBQUE7SUFDZixvQ0FBYSxDQUFBO0lBQ2IsOENBQXVCLENBQUE7QUFDekIsQ0FBQyxFQVRXLG1CQUFtQixLQUFuQixtQkFBbUIsUUFTOUIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBFU3Vic2NyaXB0aW9uU3RhdHVzIHtcclxuICBBQ1RJVkUgPSAnQUNUSVZFJyxcclxuICBDQU5DRUxMRUQgPSAnQ0FOQ0VMTEVEJyxcclxuICBQTEFDRUQgPSAnUExBQ0VEJyxcclxuICBFWFBJUkVEID0gJ0VYUElSRUQnLFxyXG4gIFBFTkRJTkcgPSAnUEVORElORycsXHJcbiAgVFJJQUwgPSAnVFJJQUwnLFxyXG4gIEZSRUUgPSAnRlJFRScsXHJcbiAgU1VTUEVOREVEID0gJ1NVU1BFTkRFRCcsXHJcbn1cclxuIl19
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export * from './entities';
|
2
|
+
export * from './enums';
|
3
|
+
export * from './interfaces';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc3Vic2NyaXB0aW9uLWJhc2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxTQUFTLENBQUM7QUFDeEIsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2VudGl0aWVzJztcbmV4cG9ydCAqIGZyb20gJy4vZW51bXMnO1xuZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzJztcblxuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zdWJzY3JpcHRpb24tYmFzZS1jdXN0b21lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zdWJzY3JpcHRpb24tYmFzZS9pbnRlcmZhY2VzL2ktc3Vic2NyaXB0aW9uLWJhc2UtY3VzdG9tZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSVN1YnNjcmlwdGlvbkJhc2VDdXN0b21lciB7XG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoNilcblxuICBkb2M6IHN0cmluZyB8IG51bGw7XG4gIGRvY1R5cGU6IHN0cmluZyB8IG51bGw7XG4gIGlkOiBzdHJpbmcgfCBudWxsO1xuICBpbWFnZVVybDogc3RyaW5nIHwgbnVsbDtcbiAgbmFtZTogc3RyaW5nIHwgbnVsbDtcbiAgdWlkOiBzdHJpbmcgfCBudWxsO1xuXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoNilcbn1cbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zdWJzY3JpcHRpb24tYmFzZS1pdGVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3N1YnNjcmlwdGlvbi1iYXNlL2ludGVyZmFjZXMvaS1zdWJzY3JpcHRpb24tYmFzZS1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElTdWJzY3JpcHRpb25CYXNlSXRlbSB7XG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoNSlcblxuICBkZXNjcmlwdGlvbjogc3RyaW5nO1xuICBxdWFudGl0eTogbnVtYmVyO1xuICByZWN1cnJlbnQ6IGJvb2xlYW47XG4gIHZvdWNoZXJLZXk6IHN0cmluZyB8IG51bGw7XG4gIHRvdGFsUHJpY2U6IG51bWJlcjtcbiAgdW5pdFByaWNlOiBudW1iZXI7XG5cbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg1KVxufVxuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zdWJzY3JpcHRpb24tYmFzZS1sb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvc3Vic2NyaXB0aW9uLWJhc2UvaW50ZXJmYWNlcy9pLXN1YnNjcmlwdGlvbi1iYXNlLWxvZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJU3Vic2NyaXB0aW9uQmFzZUxvZyB7XG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoNClcblxuICBjcmVhdGVkQXQ6IERhdGU7XG4gIGRlc2NyaXB0aW9uOiBzdHJpbmc7XG4gIGlkOiBzdHJpbmc7XG4gIG5vdGVzOiBzdHJpbmc7XG5cbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg0KVxufVxuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uI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VDdXN0b21lciB9IGZyb20gJy4vaS1zdWJzY3JpcHRpb24tYmFzZS1jdXN0b21lcic7XG5leHBvcnQgeyBJU3Vic2NyaXB0aW9uQmFzZUl0ZW0gfSBmcm9tICcuL2ktc3Vic2NyaXB0aW9uLWJhc2UtaXRlbSc7XG5leHBvcnQgeyBJU3Vic2NyaXB0aW9uQmFzZUxvZyB9IGZyb20gJy4vaS1zdWJzY3JpcHRpb24tYmFzZS1sb2cnO1xuIl19
|
@@ -536,11 +536,11 @@ var BooleanStringEnum;
|
|
536
536
|
BooleanStringEnum["TRUE"] = "true";
|
537
537
|
})(BooleanStringEnum || (BooleanStringEnum = {}));
|
538
538
|
|
539
|
-
var
|
540
|
-
(function (
|
541
|
-
|
542
|
-
|
543
|
-
})(
|
539
|
+
var EDocType;
|
540
|
+
(function (EDocType) {
|
541
|
+
EDocType["CPF"] = "CPF";
|
542
|
+
EDocType["CNPJ"] = "CNPJ";
|
543
|
+
})(EDocType || (EDocType = {}));
|
544
544
|
|
545
545
|
var EDiscountType;
|
546
546
|
(function (EDiscountType) {
|
@@ -847,6 +847,65 @@ class CampaignEntity {
|
|
847
847
|
}
|
848
848
|
}
|
849
849
|
|
850
|
+
class ClientAplicationCredentialEntity {
|
851
|
+
// #region Properties (4)
|
852
|
+
refreshToken = null;
|
853
|
+
refreshTokenAt = null;
|
854
|
+
secrets = null;
|
855
|
+
token = null;
|
856
|
+
// #endregion Properties (4)
|
857
|
+
// #region Constructors (1)
|
858
|
+
constructor(data) {
|
859
|
+
if (data) {
|
860
|
+
for (let key in data) {
|
861
|
+
if (data.hasOwnProperty(key) && key in this) {
|
862
|
+
this[key] = data[key];
|
863
|
+
}
|
864
|
+
}
|
865
|
+
}
|
866
|
+
}
|
867
|
+
}
|
868
|
+
|
869
|
+
class ClientAplicationEntity {
|
870
|
+
// #region Properties (3)
|
871
|
+
credential = new ClientAplicationCredentialEntity();
|
872
|
+
description = null;
|
873
|
+
name = '';
|
874
|
+
// #endregion Properties (3)
|
875
|
+
// #region Constructors (1)
|
876
|
+
constructor(data) {
|
877
|
+
if (data) {
|
878
|
+
for (let key in data) {
|
879
|
+
if (data.hasOwnProperty(key) && key in this) {
|
880
|
+
this[key] = data[key];
|
881
|
+
}
|
882
|
+
}
|
883
|
+
}
|
884
|
+
}
|
885
|
+
}
|
886
|
+
|
887
|
+
class ClientEntity {
|
888
|
+
// #region Properties (7)
|
889
|
+
address = null;
|
890
|
+
aplications = [];
|
891
|
+
doc = null;
|
892
|
+
docType = EDocType.CPF;
|
893
|
+
email = null;
|
894
|
+
id = '';
|
895
|
+
name = '';
|
896
|
+
// #endregion Properties (7)
|
897
|
+
// #region Constructors (1)
|
898
|
+
constructor(data) {
|
899
|
+
if (data) {
|
900
|
+
for (let key in data) {
|
901
|
+
if (data.hasOwnProperty(key) && key in this) {
|
902
|
+
this[key] = data[key];
|
903
|
+
}
|
904
|
+
}
|
905
|
+
}
|
906
|
+
}
|
907
|
+
}
|
908
|
+
|
850
909
|
class CompanyEntity {
|
851
910
|
// #region Properties (26)
|
852
911
|
active = false;
|
@@ -858,7 +917,7 @@ class CompanyEntity {
|
|
858
917
|
deliveryArea = [];
|
859
918
|
deliveryAreaFixed = null;
|
860
919
|
doc = '';
|
861
|
-
docType =
|
920
|
+
docType = EDocType.CNPJ;
|
862
921
|
email = '';
|
863
922
|
fullName = '';
|
864
923
|
id = '';
|
@@ -925,6 +984,55 @@ class ContainerEntity extends BaseEntity {
|
|
925
984
|
}
|
926
985
|
}
|
927
986
|
|
987
|
+
var ECustomerInterval;
|
988
|
+
(function (ECustomerInterval) {
|
989
|
+
ECustomerInterval["WEEKLY"] = "WEEKLY";
|
990
|
+
ECustomerInterval["BIWEEKLY"] = "BIWEEKLY";
|
991
|
+
ECustomerInterval["MONTHLY"] = "MONTHLY";
|
992
|
+
})(ECustomerInterval || (ECustomerInterval = {}));
|
993
|
+
|
994
|
+
var ECustomerStatus;
|
995
|
+
(function (ECustomerStatus) {
|
996
|
+
ECustomerStatus["BLOCKED"] = "BLOCKED";
|
997
|
+
ECustomerStatus["ACTIVE"] = "ACTIVE";
|
998
|
+
ECustomerStatus["WAITING_CREDIT_ANALYSIS"] = "WAITING_CREDIT_ANALYSIS";
|
999
|
+
})(ECustomerStatus || (ECustomerStatus = {}));
|
1000
|
+
|
1001
|
+
class CustomerEntity {
|
1002
|
+
// #region Properties (20)
|
1003
|
+
address = new AddressEntity();
|
1004
|
+
blockedReason = null;
|
1005
|
+
createdAt = new Date();
|
1006
|
+
deliveryArea = [];
|
1007
|
+
deliveryAreaFixed = undefined;
|
1008
|
+
doc = '';
|
1009
|
+
docType = EDocType.CPF;
|
1010
|
+
email = '';
|
1011
|
+
fullName = '';
|
1012
|
+
id = '';
|
1013
|
+
imageUrl = null;
|
1014
|
+
interval = ECustomerInterval.MONTHLY;
|
1015
|
+
limit = 0;
|
1016
|
+
name = '';
|
1017
|
+
phoneNumber = '';
|
1018
|
+
phoneNumberNotification = null;
|
1019
|
+
sandbox = false;
|
1020
|
+
status = ECustomerStatus.WAITING_CREDIT_ANALYSIS;
|
1021
|
+
tags = [];
|
1022
|
+
updatedAt = new Date();
|
1023
|
+
// #endregion Properties (20)
|
1024
|
+
// #region Constructors (1)
|
1025
|
+
constructor(data) {
|
1026
|
+
if (data) {
|
1027
|
+
for (let key in data) {
|
1028
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1029
|
+
this[key] = data[key];
|
1030
|
+
}
|
1031
|
+
}
|
1032
|
+
}
|
1033
|
+
}
|
1034
|
+
}
|
1035
|
+
|
928
1036
|
class DeviceEntity {
|
929
1037
|
// #region Properties (14)
|
930
1038
|
active = false;
|
@@ -1106,6 +1214,67 @@ class GlobalSettingEntity {
|
|
1106
1214
|
}
|
1107
1215
|
}
|
1108
1216
|
|
1217
|
+
class SubscriptionBaseCustomerEntity {
|
1218
|
+
// #region Properties (6)
|
1219
|
+
doc = '';
|
1220
|
+
docType = '';
|
1221
|
+
id = '';
|
1222
|
+
imageUrl = '';
|
1223
|
+
name = '';
|
1224
|
+
uid = '';
|
1225
|
+
// #endregion Properties (6)
|
1226
|
+
// #region Constructors (1)
|
1227
|
+
constructor(data) {
|
1228
|
+
if (data) {
|
1229
|
+
for (let key in data) {
|
1230
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1231
|
+
this[key] = data[key];
|
1232
|
+
}
|
1233
|
+
}
|
1234
|
+
}
|
1235
|
+
}
|
1236
|
+
}
|
1237
|
+
|
1238
|
+
class SubscriptionBaseItemEntity {
|
1239
|
+
// #region Properties (6)
|
1240
|
+
description = '';
|
1241
|
+
quantity = 1;
|
1242
|
+
recurrent = true;
|
1243
|
+
totalPrice = 0;
|
1244
|
+
unitPrice = 0;
|
1245
|
+
voucherKey = null;
|
1246
|
+
// #endregion Properties (6)
|
1247
|
+
// #region Constructors (1)
|
1248
|
+
constructor(data) {
|
1249
|
+
if (data) {
|
1250
|
+
for (let key in data) {
|
1251
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1252
|
+
this[key] = data[key];
|
1253
|
+
}
|
1254
|
+
}
|
1255
|
+
}
|
1256
|
+
}
|
1257
|
+
}
|
1258
|
+
|
1259
|
+
class SubscriptionBaseLogEntity {
|
1260
|
+
// #region Properties (4)
|
1261
|
+
createdAt = new Date();
|
1262
|
+
description = '';
|
1263
|
+
id = '';
|
1264
|
+
notes = '';
|
1265
|
+
// #endregion Properties (4)
|
1266
|
+
// #region Constructors (1)
|
1267
|
+
constructor(data) {
|
1268
|
+
if (data) {
|
1269
|
+
for (let key in data) {
|
1270
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1271
|
+
this[key] = data[key];
|
1272
|
+
}
|
1273
|
+
}
|
1274
|
+
}
|
1275
|
+
}
|
1276
|
+
}
|
1277
|
+
|
1109
1278
|
var ESubscriptionStatus;
|
1110
1279
|
(function (ESubscriptionStatus) {
|
1111
1280
|
ESubscriptionStatus["ACTIVE"] = "ACTIVE";
|
@@ -1118,6 +1287,46 @@ var ESubscriptionStatus;
|
|
1118
1287
|
ESubscriptionStatus["SUSPENDED"] = "SUSPENDED";
|
1119
1288
|
})(ESubscriptionStatus || (ESubscriptionStatus = {}));
|
1120
1289
|
|
1290
|
+
class SubscriptionBaseEntity {
|
1291
|
+
// #region Properties (25)
|
1292
|
+
amount = 0;
|
1293
|
+
cancellationReason = '';
|
1294
|
+
createdAt = new Date();
|
1295
|
+
customVariables = [];
|
1296
|
+
customer = new SubscriptionBaseCustomerEntity();
|
1297
|
+
expiresAt = new Date();
|
1298
|
+
features = [];
|
1299
|
+
id = '';
|
1300
|
+
interval = 0;
|
1301
|
+
intervalType = IntervalTypeEnum.MONTHS;
|
1302
|
+
invoices = [];
|
1303
|
+
items = [];
|
1304
|
+
logs = [];
|
1305
|
+
notes = '';
|
1306
|
+
payment = new PaymentEntity();
|
1307
|
+
paymentType = EPaymentType.NONE;
|
1308
|
+
phoneNumberNotification = '';
|
1309
|
+
recentInvoices = [];
|
1310
|
+
renewPaymentDate = new Date();
|
1311
|
+
renovatedAt = new Date();
|
1312
|
+
startsAt = new Date();
|
1313
|
+
status = ESubscriptionStatus.PENDING;
|
1314
|
+
suspendedTimes = 0;
|
1315
|
+
tags = [];
|
1316
|
+
updatedAt = new Date();
|
1317
|
+
// #endregion Properties (25)
|
1318
|
+
// #region Constructors (1)
|
1319
|
+
constructor(data) {
|
1320
|
+
if (data) {
|
1321
|
+
for (let key in data) {
|
1322
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1323
|
+
this[key] = data[key];
|
1324
|
+
}
|
1325
|
+
}
|
1326
|
+
}
|
1327
|
+
}
|
1328
|
+
}
|
1329
|
+
|
1121
1330
|
class InstallationAppEntity {
|
1122
1331
|
// #region Properties (5)
|
1123
1332
|
iconUrl = '';
|
@@ -1195,7 +1404,7 @@ class InviteEntity {
|
|
1195
1404
|
containerId = '';
|
1196
1405
|
createdAt = new Date();
|
1197
1406
|
doc = '';
|
1198
|
-
docType =
|
1407
|
+
docType = EDocType.CNPJ;
|
1199
1408
|
email = '';
|
1200
1409
|
expireAt = new Date(new Date().getTime() + 86400000);
|
1201
1410
|
expired = false;
|
@@ -1304,7 +1513,7 @@ class InvoicePayerEntity {
|
|
1304
1513
|
// #region Properties (6)
|
1305
1514
|
address = new AddressEntity();
|
1306
1515
|
doc = '';
|
1307
|
-
docType =
|
1516
|
+
docType = EDocType.CNPJ;
|
1308
1517
|
email = '';
|
1309
1518
|
name = '';
|
1310
1519
|
phoneNumber = null;
|
@@ -2062,7 +2271,7 @@ class LeadEntity {
|
|
2062
2271
|
/**Tipo de documento (CPF, CNPJ, Passaporte, etc.). */
|
2063
2272
|
doc = '';
|
2064
2273
|
/**Identificador único do lead. */
|
2065
|
-
docType =
|
2274
|
+
docType = EDocType.CNPJ;
|
2066
2275
|
/**Nome completo ou razão social do lead. */
|
2067
2276
|
email = '';
|
2068
2277
|
id = '';
|
@@ -2653,7 +2862,7 @@ class PartnerEntity {
|
|
2653
2862
|
active = true;
|
2654
2863
|
address = new AddressEntity();
|
2655
2864
|
doc = '';
|
2656
|
-
docType =
|
2865
|
+
docType = EDocType.CNPJ;
|
2657
2866
|
email = '';
|
2658
2867
|
fullName = '';
|
2659
2868
|
id = '';
|
@@ -2964,82 +3173,19 @@ class SubscriptionCompanyEntity {
|
|
2964
3173
|
}
|
2965
3174
|
}
|
2966
3175
|
|
2967
|
-
class
|
2968
|
-
// #region Properties (
|
2969
|
-
description = '';
|
2970
|
-
quantity = 1;
|
2971
|
-
recurrent = true;
|
2972
|
-
totalPrice = 0;
|
2973
|
-
unitPrice = 0;
|
2974
|
-
voucherKey = null;
|
2975
|
-
// #endregion Properties (6)
|
2976
|
-
// #region Constructors (1)
|
2977
|
-
constructor(data) {
|
2978
|
-
if (data) {
|
2979
|
-
for (let key in data) {
|
2980
|
-
if (data.hasOwnProperty(key) && key in this) {
|
2981
|
-
this[key] = data[key];
|
2982
|
-
}
|
2983
|
-
}
|
2984
|
-
}
|
2985
|
-
}
|
2986
|
-
}
|
2987
|
-
|
2988
|
-
class SubscriptionLogEntity {
|
2989
|
-
// #region Properties (4)
|
2990
|
-
createdAt = new Date();
|
2991
|
-
description = "";
|
2992
|
-
id = "";
|
2993
|
-
notes = "";
|
2994
|
-
// #endregion Properties (4)
|
2995
|
-
// #region Constructors (1)
|
2996
|
-
constructor(data) {
|
2997
|
-
if (data) {
|
2998
|
-
for (let key in data) {
|
2999
|
-
if (data.hasOwnProperty(key) && key in this) {
|
3000
|
-
this[key] = data[key];
|
3001
|
-
}
|
3002
|
-
}
|
3003
|
-
}
|
3004
|
-
}
|
3005
|
-
}
|
3006
|
-
|
3007
|
-
class SubscriptionEntity {
|
3008
|
-
// #region Properties (31)
|
3009
|
-
amount = 0;
|
3176
|
+
class SubscriptionEntity extends SubscriptionBaseEntity {
|
3177
|
+
// #region Properties (7)
|
3010
3178
|
appId = '';
|
3011
3179
|
appName = '';
|
3012
|
-
cancellationReason = '';
|
3013
3180
|
company = new SubscriptionCompanyEntity();
|
3014
|
-
createdAt = new Date();
|
3015
|
-
customVariables = [];
|
3016
|
-
cycledAt = new Date();
|
3017
|
-
expiresAt = new Date();
|
3018
3181
|
features = [];
|
3019
|
-
id = '';
|
3020
|
-
interval = 0;
|
3021
|
-
intervalType = IntervalTypeEnum.MONTHS;
|
3022
|
-
invoices = [];
|
3023
|
-
items = [];
|
3024
|
-
logs = [];
|
3025
|
-
notes = '';
|
3026
3182
|
partnerId = '';
|
3027
|
-
payment = new PaymentEntity();
|
3028
|
-
paymentType = EPaymentType.NONE;
|
3029
|
-
phoneNumberNotification = '';
|
3030
3183
|
planId = '';
|
3031
3184
|
planName = '';
|
3032
|
-
|
3033
|
-
renewPaymentDate = new Date();
|
3034
|
-
renovatedAt = new Date();
|
3035
|
-
startsAt = new Date();
|
3036
|
-
status = ESubscriptionStatus.PENDING;
|
3037
|
-
suspendedTimes = 0;
|
3038
|
-
tags = [];
|
3039
|
-
updatedAt = new Date();
|
3040
|
-
// #endregion Properties (31)
|
3185
|
+
// #endregion Properties (7)
|
3041
3186
|
// #region Constructors (1)
|
3042
3187
|
constructor(data) {
|
3188
|
+
super(data);
|
3043
3189
|
if (data) {
|
3044
3190
|
for (let key in data) {
|
3045
3191
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -3145,5 +3291,5 @@ class VoucherEntity {
|
|
3145
3291
|
* Generated bundle index. Do not edit.
|
3146
3292
|
*/
|
3147
3293
|
|
3148
|
-
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CampaignEntity, CarouselImageEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity,
|
3294
|
+
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CampaignEntity, CarouselImageEntity, ClientAplicationCredentialEntity, ClientAplicationEntity, ClientEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, CustomerEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, EAppCategory, EAppHeaderType, EAppMode, EAppType, EBankSlipStatus, ECampaignStatus, ECompanyKeys, ECompanyMessageType, ECustomerInterval, ECustomerStatus, EDiscountType, EDocType, EFiscalDocModelCode, EInstallationStatus, EInvoiceStatus, EPaymentType, EPlanFeatureType, EPlanIdentifier, EPubSubTopicType, ESponsorshipValues, ESubscriptionStatus, EVoucherStatus, FeatureEntity, GlobalSettingEntity, GlobalSettingIuguEntity, GlobalSettingMasterEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceBankSlipEntity, InvoiceCreditCardEntity, InvoiceEntity, InvoiceItemEntity, InvoiceLogEntity, InvoicePayerEntity, InvoicePixEntity, IuguAccountEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguChargeCreditCardEntity, IuguCustomerEntity, IuguInvoiceBankSlipEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LastVerificationRequestDataEntity, LeadEntity, LeadOriginEnum, LeadStatusEnum, LegalEntiyEnum, MemberEntity, MemberRulesEnum, MemberTypeEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, NotificationActionEntity, NotificationActionTypeEnum, NotificationCategoryEnum, NotificationEntity, NotificationPriorityEnum, NotificationStatusEnum, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, OsEnum, PartnerEntity, PaymentCardEntity, PaymentCashEntity, PaymentChannelEnum, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentModeEnum, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PubsubSubscriptionChangeStatusEntity, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionBaseCustomerEntity, SubscriptionBaseEntity, SubscriptionBaseItemEntity, SubscriptionBaseLogEntity, SubscriptionCompanyEntity, SubscriptionEntity, TokenEntity, VoucherEntity };
|
3149
3295
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|