cecon-interfaces 1.2.20 → 1.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm2022/plan/entities/plan.entity.mjs +6 -5
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +3 -3
- package/dist/esm2022/subscription-company/entities/subscription.entity.mjs +4 -4
- package/dist/esm2022/subscription-customer/entities/subscription.entity.mjs +3 -3
- package/dist/esm2022/subscription-customer/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +12 -11
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/plan/entities/plan.entity.d.ts +3 -2
- package/dist/plan/entities/plan.entity.js +5 -4
- package/dist/plan/interfaces/i-plan.d.ts +1 -0
- package/dist/subscription-base/entities/subscription-base.entity.js +2 -2
- package/dist/subscription-company/entities/subscription.entity.d.ts +1 -1
- package/dist/subscription-company/entities/subscription.entity.js +3 -3
- package/dist/subscription-customer/entities/subscription.entity.js +2 -2
- package/dist/subscription-customer/interfaces/i-subscription.d.ts +4 -4
- package/package.json +1 -1
package/dist/package.json
CHANGED
@@ -6,13 +6,14 @@ export declare class PlanEntity implements IPlan {
|
|
6
6
|
createdAt: Date;
|
7
7
|
features: PlanFeatureEntity[];
|
8
8
|
id: string;
|
9
|
-
tags: string[];
|
10
|
-
index: number;
|
11
9
|
identifier: EPlanIdentifier;
|
10
|
+
index: number;
|
12
11
|
interval: number;
|
13
12
|
intervalType: EIntervalType;
|
14
13
|
name: string;
|
15
14
|
price: number;
|
15
|
+
tags: string[];
|
16
|
+
trialDays: number;
|
16
17
|
updatedAt: Date;
|
17
18
|
constructor(data?: Partial<PlanEntity>);
|
18
19
|
}
|
@@ -4,20 +4,21 @@ exports.PlanEntity = void 0;
|
|
4
4
|
var enums_1 = require("../../general/enums");
|
5
5
|
var plans_identifier_enum_1 = require("../enums/plans-identifier.enum");
|
6
6
|
var PlanEntity = /** @class */ (function () {
|
7
|
-
// #endregion Properties (
|
7
|
+
// #endregion Properties (12)
|
8
8
|
// #region Constructors (1)
|
9
9
|
function PlanEntity(data) {
|
10
|
-
// #region Properties (
|
10
|
+
// #region Properties (12)
|
11
11
|
this.createdAt = new Date();
|
12
12
|
this.features = [];
|
13
13
|
this.id = '';
|
14
|
-
this.tags = [];
|
15
|
-
this.index = 0;
|
16
14
|
this.identifier = plans_identifier_enum_1.EPlanIdentifier.NATIGO;
|
15
|
+
this.index = 0;
|
17
16
|
this.interval = 12;
|
18
17
|
this.intervalType = enums_1.EIntervalType.MONTHS;
|
19
18
|
this.name = '';
|
20
19
|
this.price = 0;
|
20
|
+
this.tags = [];
|
21
|
+
this.trialDays = 0;
|
21
22
|
this.updatedAt = new Date();
|
22
23
|
if (data) {
|
23
24
|
for (var key in data) {
|
@@ -4,10 +4,10 @@ exports.SubscriptionBaseEntity = void 0;
|
|
4
4
|
var general_1 = require("../../general");
|
5
5
|
var enums_1 = require("../enums");
|
6
6
|
var SubscriptionBaseEntity = /** @class */ (function () {
|
7
|
-
// #endregion Properties (
|
7
|
+
// #endregion Properties (23)
|
8
8
|
// #region Constructors (1)
|
9
9
|
function SubscriptionBaseEntity(data) {
|
10
|
-
// #region Properties (
|
10
|
+
// #region Properties (23)
|
11
11
|
this.amount = 0;
|
12
12
|
this.cancellationReason = '';
|
13
13
|
this.createdAt = new Date();
|
@@ -5,10 +5,10 @@ import { SubscriptionCompanyProfileEntity } from './subscription-company.entity'
|
|
5
5
|
export declare class SubscriptionCompanyEntity extends SubscriptionBaseEntity implements ISubscriptionCompany {
|
6
6
|
appId: string;
|
7
7
|
appName: string;
|
8
|
-
profile: SubscriptionCompanyProfileEntity;
|
9
8
|
features: FeatureEntity[];
|
10
9
|
partnerId: string | null;
|
11
10
|
planId: string;
|
12
11
|
planName: string;
|
12
|
+
profile: SubscriptionCompanyProfileEntity;
|
13
13
|
constructor(data?: Partial<SubscriptionCompanyEntity>);
|
14
14
|
}
|
@@ -20,18 +20,18 @@ var subscription_base_entity_1 = require("../../subscription-base/entities/subsc
|
|
20
20
|
var subscription_company_entity_1 = require("./subscription-company.entity");
|
21
21
|
var SubscriptionCompanyEntity = /** @class */ (function (_super) {
|
22
22
|
__extends(SubscriptionCompanyEntity, _super);
|
23
|
-
// #endregion Properties (
|
23
|
+
// #endregion Properties (9)
|
24
24
|
// #region Constructors (1)
|
25
25
|
function SubscriptionCompanyEntity(data) {
|
26
26
|
var _this = _super.call(this, data) || this;
|
27
|
-
// #region Properties (
|
27
|
+
// #region Properties (9)
|
28
28
|
_this.appId = '';
|
29
29
|
_this.appName = '';
|
30
|
-
_this.profile = new subscription_company_entity_1.SubscriptionCompanyProfileEntity();
|
31
30
|
_this.features = [];
|
32
31
|
_this.partnerId = '';
|
33
32
|
_this.planId = '';
|
34
33
|
_this.planName = '';
|
34
|
+
_this.profile = new subscription_company_entity_1.SubscriptionCompanyProfileEntity();
|
35
35
|
if (data) {
|
36
36
|
for (var key in data) {
|
37
37
|
if (data.hasOwnProperty(key) && key in _this) {
|
@@ -21,11 +21,11 @@ var subscription_base_1 = require("../../subscription-base");
|
|
21
21
|
var subscription_customer_entity_1 = require("./subscription-customer.entity");
|
22
22
|
var SubscriptionCustomerEntity = /** @class */ (function (_super) {
|
23
23
|
__extends(SubscriptionCustomerEntity, _super);
|
24
|
-
// #endregion Properties (
|
24
|
+
// #endregion Properties (9)
|
25
25
|
// #region Constructors (1)
|
26
26
|
function SubscriptionCustomerEntity(data) {
|
27
27
|
var _this = _super.call(this, data) || this;
|
28
|
-
// #region Properties (
|
28
|
+
// #region Properties (9)
|
29
29
|
_this.amountUsed = 0;
|
30
30
|
_this.creditLimit = 0;
|
31
31
|
_this.currentBalance = 0;
|
@@ -3,12 +3,12 @@ import { IInvoice } from '../../invoice';
|
|
3
3
|
import { ISubscriptionBase } from '../../subscription-base';
|
4
4
|
import { ISubscriptionCustomerProfile } from './i-subscription-customer';
|
5
5
|
export interface ISubscriptionCustomer extends ISubscriptionBase {
|
6
|
-
profile: ISubscriptionCustomerProfile;
|
7
|
-
creditLimit: number;
|
8
|
-
preferedDueDate: number;
|
9
|
-
customerInterval: ECustomerInterval;
|
10
6
|
amountUsed: number;
|
7
|
+
creditLimit: number;
|
11
8
|
currentBalance: number;
|
12
9
|
customerId: string | null;
|
10
|
+
customerInterval: ECustomerInterval;
|
13
11
|
openedInvoices: IInvoice[];
|
12
|
+
preferedDueDate: number;
|
13
|
+
profile: ISubscriptionCustomerProfile;
|
14
14
|
}
|