cecon-interfaces 1.5.79 → 1.5.81

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 { MemberRulesEnum } from '../../member/enums';
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
- roles: string[];
15
- rule: MemberRulesEnum;
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 { MemberRulesEnum } from '../../member/enums';
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: string[];
14
- rule: MemberRulesEnum;
13
+ roles: ERole[];
14
+ permissions: string[];
15
15
  tags: string[];
16
16
  updated: Date;
17
17
  userId: string;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.79",
3
+ "version": "1.5.81",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +1,8 @@
1
- import { EJwtStatus } from '../../../general';
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: EJwtStatus;
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 general_1 = require("../../../general");
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 = general_1.EJwtStatus.INACTIVE;
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 { EJwtStatus } from '../../../general/enums/jwt-status.enum';
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: EJwtStatus;
5
+ status: ESubscriptionStatus;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.79",
3
+ "version": "1.5.81",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",