cecon-interfaces 1.0.95 → 1.0.98

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/dist/esm2022/plan/entities/feature.entity.mjs +6 -6
  2. package/dist/esm2022/plan/entities/plan.entity.mjs +3 -3
  3. package/dist/esm2022/plan/enums/index.mjs +3 -2
  4. package/dist/esm2022/plan/enums/plans-feature-type.enum.mjs +6 -0
  5. package/dist/esm2022/plan/enums/plans-identifier.enum.mjs +6 -6
  6. package/dist/esm2022/plan/interfaces/i-feature.mjs +1 -1
  7. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  8. package/dist/esm2022/subscription/entities/subscription.entity.mjs +2 -2
  9. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  10. package/dist/fesm2022/cecon-interfaces.mjs +19 -14
  11. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  12. package/dist/package.json +1 -1
  13. package/dist/plan/entities/feature.entity.d.ts +3 -3
  14. package/dist/plan/entities/feature.entity.js +5 -5
  15. package/dist/plan/entities/plan.entity.d.ts +2 -2
  16. package/dist/plan/entities/plan.entity.js +1 -1
  17. package/dist/plan/enums/index.d.ts +2 -1
  18. package/dist/plan/enums/index.js +4 -2
  19. package/dist/plan/enums/plans-feature-type.enum.d.ts +4 -0
  20. package/dist/plan/enums/plans-feature-type.enum.js +8 -0
  21. package/dist/plan/enums/plans-identifier.enum.d.ts +1 -1
  22. package/dist/plan/enums/plans-identifier.enum.js +6 -6
  23. package/dist/plan/interfaces/i-feature.d.ts +3 -3
  24. package/dist/plan/interfaces/i-plan.d.ts +2 -2
  25. package/dist/subscription/entities/subscription.entity.d.ts +1 -1
  26. package/dist/subscription/entities/subscription.entity.js +1 -1
  27. package/dist/subscription/interfaces/i-subscription.d.ts +1 -1
  28. package/package.json +1 -1
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.95",
3
+ "version": "1.0.98",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,13 +1,13 @@
1
+ import { EPlanFeatureType } from "../enums";
1
2
  import { IPlanFeature } from "../interfaces";
2
3
  export declare class PlanFeatureEntity implements IPlanFeature {
3
4
  appId: string;
4
5
  createdAt: Date;
6
+ featureType: EPlanFeatureType;
5
7
  id: string;
6
- identifier: string;
7
- isFeature: boolean;
8
+ index: number;
8
9
  name: string;
9
10
  planId: string;
10
- index: number;
11
11
  price: number;
12
12
  quantity: number;
13
13
  updatedAt: Date;
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PlanFeatureEntity = void 0;
4
+ var enums_1 = require("../enums");
4
5
  var PlanFeatureEntity = /** @class */ (function () {
5
- // #endregion Properties (12)
6
+ // #endregion Properties (10)
6
7
  // #region Constructors (1)
7
8
  function PlanFeatureEntity(data) {
8
- // #region Properties (12)
9
+ // #region Properties (10)
9
10
  this.appId = "";
10
11
  this.createdAt = new Date();
12
+ this.featureType = enums_1.EPlanFeatureType.FEATURE;
11
13
  this.id = "";
12
- this.identifier = "";
13
- this.isFeature = false;
14
+ this.index = 0;
14
15
  this.name = "";
15
16
  this.planId = "";
16
- this.index = 0;
17
17
  this.price = 0;
18
18
  this.quantity = 0;
19
19
  this.updatedAt = new Date();
@@ -1,5 +1,5 @@
1
1
  import { IntervalTypeEnum } from '../../general/enums';
2
- import { PlanIdentifierEnum } from '../enums/plans-identifier.enum';
2
+ import { EPlanIdentifierType } from '../enums/plans-identifier.enum';
3
3
  import { IPlan } from '../interfaces';
4
4
  import { PlanFeatureEntity } from './feature.entity';
5
5
  export declare class PlanEntity implements IPlan {
@@ -8,7 +8,7 @@ export declare class PlanEntity implements IPlan {
8
8
  id: string;
9
9
  tags: string[];
10
10
  index: number;
11
- identifier: PlanIdentifierEnum;
11
+ identifier: EPlanIdentifierType;
12
12
  interval: number;
13
13
  intervalType: IntervalTypeEnum;
14
14
  name: string;
@@ -13,7 +13,7 @@ var PlanEntity = /** @class */ (function () {
13
13
  this.id = '';
14
14
  this.tags = [];
15
15
  this.index = 0;
16
- this.identifier = plans_identifier_enum_1.PlanIdentifierEnum.NATIGO;
16
+ this.identifier = plans_identifier_enum_1.EPlanIdentifierType.NATIGO;
17
17
  this.interval = 12;
18
18
  this.intervalType = enums_1.IntervalTypeEnum.MONTHS;
19
19
  this.name = '';
@@ -1 +1,2 @@
1
- export { PlanIdentifierEnum } from './plans-identifier.enum';
1
+ export { EPlanFeatureType } from './plans-feature-type.enum';
2
+ export { EPlanIdentifierType } from './plans-identifier.enum';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlanIdentifierEnum = void 0;
3
+ exports.EPlanIdentifierType = exports.EPlanFeatureType = void 0;
4
+ var plans_feature_type_enum_1 = require("./plans-feature-type.enum");
5
+ Object.defineProperty(exports, "EPlanFeatureType", { enumerable: true, get: function () { return plans_feature_type_enum_1.EPlanFeatureType; } });
4
6
  var plans_identifier_enum_1 = require("./plans-identifier.enum");
5
- Object.defineProperty(exports, "PlanIdentifierEnum", { enumerable: true, get: function () { return plans_identifier_enum_1.PlanIdentifierEnum; } });
7
+ Object.defineProperty(exports, "EPlanIdentifierType", { enumerable: true, get: function () { return plans_identifier_enum_1.EPlanIdentifierType; } });
@@ -0,0 +1,4 @@
1
+ export declare enum EPlanFeatureType {
2
+ FEATURE = "FEATURE",
3
+ DESCRIPTION = "DESCRIPTION"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPlanFeatureType = void 0;
4
+ var EPlanFeatureType;
5
+ (function (EPlanFeatureType) {
6
+ EPlanFeatureType["FEATURE"] = "FEATURE";
7
+ EPlanFeatureType["DESCRIPTION"] = "DESCRIPTION";
8
+ })(EPlanFeatureType || (exports.EPlanFeatureType = EPlanFeatureType = {}));
@@ -1,4 +1,4 @@
1
- export declare enum PlanIdentifierEnum {
1
+ export declare enum EPlanIdentifierType {
2
2
  NATIGO = "NATIGO-UNO",
3
3
  SAT_MANAGER_NAPOLEON = "SAT-MANAGER-NAPOLEON"
4
4
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlanIdentifierEnum = void 0;
4
- var PlanIdentifierEnum;
5
- (function (PlanIdentifierEnum) {
6
- PlanIdentifierEnum["NATIGO"] = "NATIGO-UNO";
7
- PlanIdentifierEnum["SAT_MANAGER_NAPOLEON"] = "SAT-MANAGER-NAPOLEON";
8
- })(PlanIdentifierEnum || (exports.PlanIdentifierEnum = PlanIdentifierEnum = {}));
3
+ exports.EPlanIdentifierType = void 0;
4
+ var EPlanIdentifierType;
5
+ (function (EPlanIdentifierType) {
6
+ EPlanIdentifierType["NATIGO"] = "NATIGO-UNO";
7
+ EPlanIdentifierType["SAT_MANAGER_NAPOLEON"] = "SAT-MANAGER-NAPOLEON";
8
+ })(EPlanIdentifierType || (exports.EPlanIdentifierType = EPlanIdentifierType = {}));
@@ -1,12 +1,12 @@
1
+ import { EPlanFeatureType } from "../enums";
1
2
  export interface IPlanFeature {
2
3
  appId: string;
3
4
  createdAt: Date;
5
+ featureType: EPlanFeatureType;
4
6
  id: string;
5
- identifier: string;
6
- isFeature: boolean;
7
+ index: number;
7
8
  name: string;
8
9
  planId: string;
9
- index: number;
10
10
  price: number;
11
11
  quantity: number;
12
12
  updatedAt: Date;
@@ -1,11 +1,11 @@
1
1
  import { IntervalTypeEnum } from '../../general/enums';
2
- import { PlanIdentifierEnum } from '../enums/plans-identifier.enum';
2
+ import { EPlanIdentifierType } from '../enums/plans-identifier.enum';
3
3
  import { IPlanFeature } from './i-feature';
4
4
  export interface IPlan {
5
5
  createdAt: Date;
6
6
  features: IPlanFeature[];
7
7
  id: string;
8
- identifier: PlanIdentifierEnum;
8
+ identifier: EPlanIdentifierType;
9
9
  index: number;
10
10
  interval: number;
11
11
  intervalType: IntervalTypeEnum;
@@ -11,7 +11,7 @@ export declare class SubscriptionEntity implements ISubscription {
11
11
  companyName: string;
12
12
  containerId: string | null;
13
13
  createdAt: Date;
14
- customVariable: CustomVariableEntity[];
14
+ customVariables: CustomVariableEntity[];
15
15
  expiresAt: Date;
16
16
  features: FeatureEntity[];
17
17
  id: string;
@@ -14,7 +14,7 @@ var SubscriptionEntity = /** @class */ (function () {
14
14
  this.companyName = "";
15
15
  this.containerId = "";
16
16
  this.createdAt = new Date();
17
- this.customVariable = [];
17
+ this.customVariables = [];
18
18
  this.expiresAt = new Date();
19
19
  this.features = [];
20
20
  this.id = "";
@@ -10,7 +10,7 @@ export interface ISubscription {
10
10
  companyName: string;
11
11
  containerId: string | null;
12
12
  createdAt: Date;
13
- customVariable: ICustomVariable[];
13
+ customVariables: ICustomVariable[];
14
14
  expiresAt: Date;
15
15
  features: IFeature[];
16
16
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.95",
3
+ "version": "1.0.98",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",