cecon-interfaces 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/company/entities/company.entity.d.ts +3 -3
- package/dist/company/entities/company.entity.js +3 -3
- package/dist/company/interfaces/i-company.d.ts +3 -3
- package/dist/esm2022/company/entities/company.entity.mjs +4 -4
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/member/entities/member.entity.mjs +3 -2
- package/dist/esm2022/member/interfaces/i-member.mjs +1 -1
- package/dist/esm2022/order/entities/item-composition.entity.mjs +2 -2
- package/dist/esm2022/order/interfaces/i-item-composition.mjs +1 -1
- package/dist/esm2022/subscription/entities/index.mjs +2 -1
- package/dist/esm2022/subscription/entities/subscription-company.entity.mjs +21 -0
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +13 -15
- package/dist/esm2022/subscription/interfaces/i-subscription-company.mjs +2 -0
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/subscription/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +37 -18
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/member/entities/member.entity.d.ts +2 -1
- package/dist/member/entities/member.entity.js +1 -1
- package/dist/member/interfaces/i-member.d.ts +1 -1
- package/dist/order/entities/item-composition.entity.d.ts +1 -1
- package/dist/order/entities/item-composition.entity.js +1 -1
- package/dist/order/interfaces/i-item-composition.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/subscription/entities/index.d.ts +1 -0
- package/dist/subscription/entities/index.js +3 -1
- package/dist/subscription/entities/subscription-company.entity.d.ts +10 -0
- package/dist/subscription/entities/subscription-company.entity.js +25 -0
- package/dist/subscription/entities/subscription.entity.d.ts +8 -10
- package/dist/subscription/entities/subscription.entity.js +10 -12
- package/dist/subscription/interfaces/i-subscription-company.d.ts +8 -0
- package/dist/subscription/interfaces/i-subscription-company.js +2 -0
- package/dist/subscription/interfaces/i-subscription.d.ts +7 -9
- package/dist/subscription/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
@@ -9,10 +9,11 @@ export declare class MemberEntity extends BaseEntity implements IMember {
|
|
9
9
|
name: string;
|
10
10
|
partnerId: string;
|
11
11
|
phoneNumber: string;
|
12
|
-
|
12
|
+
photoUrl: string;
|
13
13
|
rule: MemberRulesEnum;
|
14
14
|
tags: string[];
|
15
15
|
type: MemberTypeEnum;
|
16
16
|
uid: string;
|
17
17
|
constructor(data?: Partial<MemberEntity>);
|
18
|
+
photoURL: string;
|
18
19
|
}
|
@@ -32,7 +32,7 @@ var MemberEntity = /** @class */ (function (_super) {
|
|
32
32
|
_this.name = '';
|
33
33
|
_this.partnerId = '';
|
34
34
|
_this.phoneNumber = '';
|
35
|
-
_this.
|
35
|
+
_this.photoUrl = '';
|
36
36
|
_this.rule = enums_1.MemberRulesEnum.USER;
|
37
37
|
_this.tags = [];
|
38
38
|
_this.type = enums_1.MemberTypeEnum.CLIENT;
|
package/dist/package.json
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
export { SubscriptionCompanyEntity } from './subscription-company.entity';
|
1
2
|
export { SubscriptionItemEntity } from './subscription-item.entity';
|
2
3
|
export { SubscriptionLogEntity } from './subscription-log.entity';
|
3
4
|
export { SubscriptionEntity } from './subscription.entity';
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SubscriptionEntity = exports.SubscriptionLogEntity = exports.SubscriptionItemEntity = void 0;
|
3
|
+
exports.SubscriptionEntity = exports.SubscriptionLogEntity = exports.SubscriptionItemEntity = exports.SubscriptionCompanyEntity = void 0;
|
4
|
+
var subscription_company_entity_1 = require("./subscription-company.entity");
|
5
|
+
Object.defineProperty(exports, "SubscriptionCompanyEntity", { enumerable: true, get: function () { return subscription_company_entity_1.SubscriptionCompanyEntity; } });
|
4
6
|
var subscription_item_entity_1 = require("./subscription-item.entity");
|
5
7
|
Object.defineProperty(exports, "SubscriptionItemEntity", { enumerable: true, get: function () { return subscription_item_entity_1.SubscriptionItemEntity; } });
|
6
8
|
var subscription_log_entity_1 = require("./subscription-log.entity");
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ISubscriptionCompany } from '../interfaces/i-subscription-company';
|
2
|
+
export declare class SubscriptionCompanyEntity implements ISubscriptionCompany {
|
3
|
+
containerId: string | null;
|
4
|
+
doc: string | null;
|
5
|
+
docType: string | null;
|
6
|
+
id: string | null;
|
7
|
+
imageUrl: string | null;
|
8
|
+
name: string | null;
|
9
|
+
constructor(data?: Partial<SubscriptionCompanyEntity>);
|
10
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubscriptionCompanyEntity = void 0;
|
4
|
+
var SubscriptionCompanyEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (6)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function SubscriptionCompanyEntity(data) {
|
8
|
+
// #region Properties (6)
|
9
|
+
this.containerId = '';
|
10
|
+
this.doc = '';
|
11
|
+
this.docType = '';
|
12
|
+
this.id = '';
|
13
|
+
this.imageUrl = '';
|
14
|
+
this.name = '';
|
15
|
+
if (data) {
|
16
|
+
for (var key in data) {
|
17
|
+
if (data.hasOwnProperty(key) && key in this) {
|
18
|
+
this[key] = data[key];
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
return SubscriptionCompanyEntity;
|
24
|
+
}());
|
25
|
+
exports.SubscriptionCompanyEntity = SubscriptionCompanyEntity;
|
@@ -1,15 +1,13 @@
|
|
1
|
-
import { FeatureEntity } from
|
2
|
-
import { CustomVariableEntity, IntervalTypeEnum } from
|
3
|
-
import { SubscriptionStatusEnum } from
|
4
|
-
import { ISubscription } from
|
5
|
-
import {
|
6
|
-
import {
|
1
|
+
import { FeatureEntity } from '../../feature';
|
2
|
+
import { CustomVariableEntity, IntervalTypeEnum } from '../../general';
|
3
|
+
import { SubscriptionStatusEnum } from '../enums';
|
4
|
+
import { ISubscription } from '../interfaces/i-subscription';
|
5
|
+
import { SubscriptionCompanyEntity } from './subscription-company.entity';
|
6
|
+
import { SubscriptionItemEntity } from './subscription-item.entity';
|
7
|
+
import { SubscriptionLogEntity } from './subscription-log.entity';
|
7
8
|
export declare class SubscriptionEntity implements ISubscription {
|
8
9
|
cancellationReason: string;
|
9
|
-
|
10
|
-
companyId: string;
|
11
|
-
companyName: string;
|
12
|
-
containerId: string | null;
|
10
|
+
company: SubscriptionCompanyEntity;
|
13
11
|
createdAt: Date;
|
14
12
|
customVariables: CustomVariableEntity[];
|
15
13
|
expiresAt: Date;
|
@@ -3,29 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionEntity = void 0;
|
4
4
|
var general_1 = require("../../general");
|
5
5
|
var enums_1 = require("../enums");
|
6
|
+
var subscription_company_entity_1 = require("./subscription-company.entity");
|
6
7
|
var SubscriptionEntity = /** @class */ (function () {
|
7
|
-
// #endregion Properties (
|
8
|
+
// #endregion Properties (25)
|
8
9
|
// #region Constructors (1)
|
9
10
|
function SubscriptionEntity(data) {
|
10
|
-
// #region Properties (
|
11
|
-
this.cancellationReason =
|
12
|
-
this.
|
13
|
-
this.companyId = "";
|
14
|
-
this.companyName = "";
|
15
|
-
this.containerId = "";
|
11
|
+
// #region Properties (25)
|
12
|
+
this.cancellationReason = '';
|
13
|
+
this.company = new subscription_company_entity_1.SubscriptionCompanyEntity();
|
16
14
|
this.createdAt = new Date();
|
17
15
|
this.customVariables = [];
|
18
16
|
this.expiresAt = new Date();
|
19
17
|
this.features = [];
|
20
|
-
this.id =
|
18
|
+
this.id = '';
|
21
19
|
this.interval = 0;
|
22
20
|
this.intervalType = general_1.IntervalTypeEnum.MONTHS;
|
23
21
|
this.items = [];
|
24
22
|
this.logs = [];
|
25
|
-
this.notes =
|
26
|
-
this.partnerId =
|
27
|
-
this.planId =
|
28
|
-
this.planName =
|
23
|
+
this.notes = '';
|
24
|
+
this.partnerId = '';
|
25
|
+
this.planId = '';
|
26
|
+
this.planName = '';
|
29
27
|
this.renewPaymentDate = new Date();
|
30
28
|
this.renovatedAt = new Date();
|
31
29
|
this.startsAt = new Date();
|
@@ -1,14 +1,12 @@
|
|
1
|
-
import { IFeature } from
|
2
|
-
import { ICustomVariable, IntervalTypeEnum } from
|
3
|
-
import { SubscriptionStatusEnum } from
|
4
|
-
import {
|
5
|
-
import {
|
1
|
+
import { IFeature } from '../../feature';
|
2
|
+
import { ICustomVariable, IntervalTypeEnum } from '../../general';
|
3
|
+
import { SubscriptionStatusEnum } from '../enums';
|
4
|
+
import { ISubscriptionCompany } from './i-subscription-company';
|
5
|
+
import { ISubscriptionItem } from './i-subscription-item';
|
6
|
+
import { ISubscriptionLog } from './i-subscription-log';
|
6
7
|
export interface ISubscription {
|
7
8
|
cancellationReason: string;
|
8
|
-
|
9
|
-
companyId: string;
|
10
|
-
companyName: string;
|
11
|
-
containerId: string | null;
|
9
|
+
company: ISubscriptionCompany;
|
12
10
|
createdAt: Date;
|
13
11
|
customVariables: ICustomVariable[];
|
14
12
|
expiresAt: Date;
|