cecon-interfaces 1.5.79 → 1.5.82
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/general/enums/index.mjs +2 -1
- package/dist/esm2022/general/enums/role.enum.mjs +15 -0
- package/dist/esm2022/member-access/entities/member-access.entity.mjs +2 -3
- package/dist/esm2022/member-access/interfaces/i-member-access.mjs +1 -1
- package/dist/esm2022/payio/payload/entities/payload-subscription.entity.mjs +3 -3
- package/dist/esm2022/payio/payload/interfaces/i-payload-subscription.mjs +1 -1
- package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +5 -3
- package/dist/esm2022/subscription-base/interfaces/i-subscription-base.mjs +1 -1
- package/dist/esm2022/subscription-company/entities/subscription.entity.mjs +1 -3
- package/dist/esm2022/subscription-company/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +22 -7
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/enums/index.d.ts +1 -0
- package/dist/general/enums/index.js +3 -1
- package/dist/general/enums/role.enum.d.ts +13 -0
- package/dist/general/enums/role.enum.js +17 -0
- package/dist/member-access/entities/member-access.entity.d.ts +3 -3
- package/dist/member-access/entities/member-access.entity.js +1 -2
- package/dist/member-access/interfaces/i-member-access.d.ts +3 -3
- package/dist/package.json +1 -1
- package/dist/payio/payload/entities/payload-subscription.entity.d.ts +2 -2
- package/dist/payio/payload/entities/payload-subscription.entity.js +2 -2
- package/dist/payio/payload/interfaces/i-payload-subscription.d.ts +2 -2
- package/dist/subscription-base/entities/subscription-base.entity.d.ts +2 -0
- package/dist/subscription-base/entities/subscription-base.entity.js +4 -2
- package/dist/subscription-base/interfaces/i-subscription-base.d.ts +2 -0
- package/dist/subscription-company/entities/subscription.entity.d.ts +0 -2
- package/dist/subscription-company/entities/subscription.entity.js +0 -2
- package/dist/subscription-company/interfaces/i-subscription.d.ts +0 -2
- package/package.json +1 -1
@@ -19,4 +19,5 @@ export { ELegalEntiy } from './person-type.enum';
|
|
19
19
|
export { EPlatform } from './platform.enum';
|
20
20
|
export { EPaymentProvider } from './providers.enum';
|
21
21
|
export { EPubSub } from './pubsub.enum';
|
22
|
+
export { ERole } from './role.enum';
|
22
23
|
export { ESponsorshipValues } from './sponsorship-values.enum';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ESponsorshipValues = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EJwtStatus = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EDesenfilaFrom = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
|
3
|
+
exports.ESponsorshipValues = exports.ERole = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EJwtStatus = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EDesenfilaFrom = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
|
4
4
|
var skill_enum_1 = require("../../fcm-token-message/enums/skill.enum");
|
5
5
|
Object.defineProperty(exports, "EFcmSkill", { enumerable: true, get: function () { return skill_enum_1.EFcmSkill; } });
|
6
6
|
var bank_slip_status_enum_1 = require("./bank-slip-status.enum");
|
@@ -43,5 +43,7 @@ var providers_enum_1 = require("./providers.enum");
|
|
43
43
|
Object.defineProperty(exports, "EPaymentProvider", { enumerable: true, get: function () { return providers_enum_1.EPaymentProvider; } });
|
44
44
|
var pubsub_enum_1 = require("./pubsub.enum");
|
45
45
|
Object.defineProperty(exports, "EPubSub", { enumerable: true, get: function () { return pubsub_enum_1.EPubSub; } });
|
46
|
+
var role_enum_1 = require("./role.enum");
|
47
|
+
Object.defineProperty(exports, "ERole", { enumerable: true, get: function () { return role_enum_1.ERole; } });
|
46
48
|
var sponsorship_values_enum_1 = require("./sponsorship-values.enum");
|
47
49
|
Object.defineProperty(exports, "ESponsorshipValues", { enumerable: true, get: function () { return sponsorship_values_enum_1.ESponsorshipValues; } });
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare enum ERole {
|
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
|
+
MENAGER = "MENAGER",
|
11
|
+
DEVELOPER = "DEVELOPER",
|
12
|
+
GUEST = "GUEST"
|
13
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ERole = void 0;
|
4
|
+
var ERole;
|
5
|
+
(function (ERole) {
|
6
|
+
ERole["ADMIN"] = "ADMIN";
|
7
|
+
ERole["USER"] = "USER";
|
8
|
+
ERole["OWNER"] = "OWNER";
|
9
|
+
ERole["SUPPORT"] = "SUPPORT";
|
10
|
+
ERole["PARTNER"] = "PARTNER";
|
11
|
+
ERole["FINANCE"] = "FINANCE";
|
12
|
+
ERole["MARKETING"] = "MARKETING";
|
13
|
+
ERole["SALES"] = "SALES";
|
14
|
+
ERole["MENAGER"] = "MENAGER";
|
15
|
+
ERole["DEVELOPER"] = "DEVELOPER";
|
16
|
+
ERole["GUEST"] = "GUEST";
|
17
|
+
})(ERole || (exports.ERole = ERole = {}));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ERole } from '../../general';
|
2
2
|
import { IMemberAccess } from '../interfaces/i-member-access';
|
3
3
|
export declare class MemberAccessEntity implements IMemberAccess {
|
4
4
|
accessCount: number | null;
|
@@ -11,8 +11,8 @@ export declare class MemberAccessEntity implements IMemberAccess {
|
|
11
11
|
imageUrl: string | null;
|
12
12
|
lastAccessAt: Date | null;
|
13
13
|
name: string;
|
14
|
-
|
15
|
-
|
14
|
+
permissions: string[];
|
15
|
+
roles: ERole[];
|
16
16
|
tags: string[];
|
17
17
|
updated: Date;
|
18
18
|
userId: string;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.MemberAccessEntity = void 0;
|
4
|
-
var enums_1 = require("../../member/enums");
|
5
4
|
var MemberAccessEntity = /** @class */ (function () {
|
6
5
|
// #endregion Properties (15)
|
7
6
|
// #region Constructors (1)
|
@@ -17,8 +16,8 @@ var MemberAccessEntity = /** @class */ (function () {
|
|
17
16
|
this.imageUrl = null;
|
18
17
|
this.lastAccessAt = null;
|
19
18
|
this.name = '';
|
19
|
+
this.permissions = [];
|
20
20
|
this.roles = [];
|
21
|
-
this.rule = enums_1.MemberRulesEnum.USER;
|
22
21
|
this.tags = [];
|
23
22
|
this.updated = new Date();
|
24
23
|
this.userId = '';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ERole } from '../../general';
|
2
2
|
export interface IMemberAccess {
|
3
3
|
accessCount: number | null;
|
4
4
|
active: boolean;
|
@@ -10,8 +10,8 @@ export interface IMemberAccess {
|
|
10
10
|
imageUrl: string | null;
|
11
11
|
lastAccessAt: Date | null;
|
12
12
|
name: string;
|
13
|
-
roles:
|
14
|
-
|
13
|
+
roles: ERole[];
|
14
|
+
permissions: string[];
|
15
15
|
tags: string[];
|
16
16
|
updated: Date;
|
17
17
|
userId: string;
|
package/dist/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ESubscriptionStatus } from '../../../subscription-base/enums/subscription-status.enum';
|
2
2
|
import { IPayioJwtPayloadSubscription } from '../interfaces/i-payload-subscription';
|
3
3
|
export declare class PayioJwtPayloadSubscriptionEntity implements IPayioJwtPayloadSubscription {
|
4
4
|
expiresAt: number;
|
5
5
|
plan: string;
|
6
|
-
status:
|
6
|
+
status: ESubscriptionStatus;
|
7
7
|
constructor(data?: Partial<PayioJwtPayloadSubscriptionEntity>);
|
8
8
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PayioJwtPayloadSubscriptionEntity = void 0;
|
4
|
-
var
|
4
|
+
var subscription_status_enum_1 = require("../../../subscription-base/enums/subscription-status.enum");
|
5
5
|
var PayioJwtPayloadSubscriptionEntity = /** @class */ (function () {
|
6
6
|
// #endregion Properties (3)
|
7
7
|
// #region Constructors (1)
|
@@ -9,7 +9,7 @@ var PayioJwtPayloadSubscriptionEntity = /** @class */ (function () {
|
|
9
9
|
// #region Properties (3)
|
10
10
|
this.expiresAt = 0;
|
11
11
|
this.plan = '';
|
12
|
-
this.status =
|
12
|
+
this.status = subscription_status_enum_1.ESubscriptionStatus.PENDING;
|
13
13
|
if (data) {
|
14
14
|
for (var key in data) {
|
15
15
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { ESubscriptionStatus } from '../../../subscription-base/enums/subscription-status.enum';
|
2
2
|
export interface IPayioJwtPayloadSubscription {
|
3
3
|
expiresAt: number;
|
4
4
|
plan: string;
|
5
|
-
status:
|
5
|
+
status: ESubscriptionStatus;
|
6
6
|
}
|
@@ -20,6 +20,8 @@ export declare class SubscriptionBaseEntity implements ISubscriptionBase {
|
|
20
20
|
payment: PaymentEntity;
|
21
21
|
paymentType: EPaymentType;
|
22
22
|
phoneNumbersNotification: string[];
|
23
|
+
planId: string;
|
24
|
+
planName: string;
|
23
25
|
recentInvoices: IInvoice[];
|
24
26
|
renewPaymentDate: Date;
|
25
27
|
renovatedAt: Date;
|
@@ -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 (25)
|
8
8
|
// #region Constructors (1)
|
9
9
|
function SubscriptionBaseEntity(data) {
|
10
|
-
// #region Properties (
|
10
|
+
// #region Properties (25)
|
11
11
|
this.amount = 0;
|
12
12
|
this.cancellationReason = '';
|
13
13
|
this.createdAt = new Date();
|
@@ -23,6 +23,8 @@ var SubscriptionBaseEntity = /** @class */ (function () {
|
|
23
23
|
this.payment = new general_1.PaymentEntity();
|
24
24
|
this.paymentType = general_1.EPaymentType.NONE;
|
25
25
|
this.phoneNumbersNotification = [];
|
26
|
+
this.planId = '';
|
27
|
+
this.planName = '';
|
26
28
|
this.recentInvoices = [];
|
27
29
|
this.renewPaymentDate = new Date();
|
28
30
|
this.renovatedAt = new Date();
|
@@ -5,8 +5,6 @@ import { SubscriptionCompanyProfileEntity } from './subscription-profile.entity'
|
|
5
5
|
export declare class SubscriptionCompanyEntity extends SubscriptionBaseEntity implements ISubscriptionCompany {
|
6
6
|
features: FeatureEntity[];
|
7
7
|
partnerId: string | null;
|
8
|
-
planId: string;
|
9
|
-
planName: string;
|
10
8
|
profile: SubscriptionCompanyProfileEntity;
|
11
9
|
constructor(data?: Partial<SubscriptionCompanyEntity>);
|
12
10
|
}
|
@@ -27,8 +27,6 @@ var SubscriptionCompanyEntity = /** @class */ (function (_super) {
|
|
27
27
|
// #region Properties (9)
|
28
28
|
_this.features = [];
|
29
29
|
_this.partnerId = '';
|
30
|
-
_this.planId = '';
|
31
|
-
_this.planName = '';
|
32
30
|
_this.profile = new subscription_profile_entity_1.SubscriptionCompanyProfileEntity();
|
33
31
|
if (data) {
|
34
32
|
for (var key in data) {
|
@@ -4,7 +4,5 @@ import { ISubscriptionCompanyProfile } from './i-subscription-profile';
|
|
4
4
|
export interface ISubscriptionCompany extends ISubscriptionBase {
|
5
5
|
features: IFeature[];
|
6
6
|
partnerId: string | null;
|
7
|
-
planId: string;
|
8
|
-
planName: string;
|
9
7
|
profile: ISubscriptionCompanyProfile;
|
10
8
|
}
|