cecon-interfaces 1.0.77 → 1.0.78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/dist/app/entities/app.entity.d.ts +10 -8
  2. package/dist/app/entities/app.entity.js +12 -10
  3. package/dist/app/enums/app-type.enum.d.ts +6 -0
  4. package/dist/app/enums/app-type.enum.js +10 -0
  5. package/dist/app/enums/index.d.ts +1 -0
  6. package/dist/app/enums/index.js +3 -1
  7. package/dist/app/interfaces/i-app.d.ts +21 -19
  8. package/dist/esm2022/app/entities/app.entity.mjs +13 -11
  9. package/dist/esm2022/app/enums/app-type.enum.mjs +8 -0
  10. package/dist/esm2022/app/enums/index.mjs +2 -1
  11. package/dist/esm2022/app/interfaces/i-app.mjs +1 -1
  12. package/dist/esm2022/installation/entities/installation-app.entity.mjs +21 -0
  13. package/dist/esm2022/installation/entities/installation.entity.mjs +9 -11
  14. package/dist/esm2022/installation/enums/index.mjs +2 -0
  15. package/dist/esm2022/installation/enums/status.enum.mjs +11 -0
  16. package/dist/esm2022/installation/interfaces/i-installation-app.mjs +2 -0
  17. package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
  18. package/dist/esm2022/plan/entities/plan.entity.mjs +2 -1
  19. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  20. package/dist/esm2022/subscription/entities/subscription.entity.mjs +1 -2
  21. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  22. package/dist/fesm2022/cecon-interfaces.mjs +58 -21
  23. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  24. package/dist/installation/entities/installation-app.entity.d.ts +10 -0
  25. package/dist/installation/entities/installation-app.entity.js +25 -0
  26. package/dist/installation/entities/installation.entity.d.ts +7 -8
  27. package/dist/installation/entities/installation.entity.js +8 -10
  28. package/dist/installation/enums/index.d.ts +1 -0
  29. package/dist/installation/enums/index.js +5 -0
  30. package/dist/installation/enums/status.enum.d.ts +9 -0
  31. package/dist/installation/enums/status.enum.js +13 -0
  32. package/dist/installation/interfaces/i-installation-app.d.ts +8 -0
  33. package/dist/installation/interfaces/i-installation-app.js +2 -0
  34. package/dist/installation/interfaces/i-installation.d.ts +9 -10
  35. package/dist/package.json +1 -1
  36. package/dist/plan/entities/plan.entity.d.ts +1 -0
  37. package/dist/plan/entities/plan.entity.js +1 -0
  38. package/dist/plan/interfaces/i-plan.d.ts +1 -0
  39. package/dist/subscription/entities/subscription.entity.d.ts +0 -1
  40. package/dist/subscription/entities/subscription.entity.js +0 -1
  41. package/dist/subscription/interfaces/i-subscription.d.ts +0 -1
  42. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ import { AppModeEnum } from '../../app';
2
+ import { IInstallationApp } from '../interfaces/i-installation-app';
3
+ export declare class InstallationAppEntity implements IInstallationApp {
4
+ iconUrl: string;
5
+ id: string;
6
+ mode: AppModeEnum;
7
+ name: string;
8
+ version: string;
9
+ constructor(data?: Partial<InstallationAppEntity>);
10
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InstallationAppEntity = void 0;
4
+ var app_1 = require("../../app");
5
+ var InstallationAppEntity = /** @class */ (function () {
6
+ // #endregion Properties (5)
7
+ // #region Constructors (1)
8
+ function InstallationAppEntity(data) {
9
+ // #region Properties (5)
10
+ this.iconUrl = '';
11
+ this.id = '';
12
+ this.mode = app_1.AppModeEnum.NATI_GO;
13
+ this.name = '';
14
+ this.version = '';
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 InstallationAppEntity;
24
+ }());
25
+ exports.InstallationAppEntity = InstallationAppEntity;
@@ -1,21 +1,20 @@
1
- import { AppConfigType, AppModeEnum } from '../../app';
1
+ import { AppConfigType } from '../../app';
2
+ import { InstallationStatusEnum } from '../enums';
2
3
  import { IInstallation } from '../interfaces/i-installation';
4
+ import { InstallationAppEntity } from './installation-app.entity';
3
5
  export declare class InstallationEntity implements IInstallation {
4
- active: boolean;
5
- appIconUrl: string;
6
- appId: string;
7
- appName: string;
6
+ app: InstallationAppEntity;
8
7
  createdAt: Date;
9
8
  customConfig: AppConfigType;
10
9
  expirationDate: Date;
11
10
  featureId: string;
12
11
  id: string;
13
12
  lastCheckAt: Date;
14
- mode: AppModeEnum;
13
+ status: InstallationStatusEnum;
15
14
  subscriptionId: string;
16
- suspended: boolean;
17
15
  tags: string[];
16
+ trialEndDate: Date;
17
+ trialStartDate: Date;
18
18
  updatedAt: Date;
19
- version: string;
20
19
  constructor(data?: Partial<InstallationEntity>);
21
20
  }
@@ -1,28 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InstallationEntity = void 0;
4
- var app_1 = require("../../app");
4
+ var enums_1 = require("../enums");
5
+ var installation_app_entity_1 = require("./installation-app.entity");
5
6
  var InstallationEntity = /** @class */ (function () {
6
- // #endregion Properties (16)
7
+ // #endregion Properties (13)
7
8
  // #region Constructors (1)
8
9
  function InstallationEntity(data) {
9
- // #region Properties (16)
10
- this.active = false;
11
- this.appIconUrl = '';
12
- this.appId = '';
13
- this.appName = '';
10
+ // #region Properties (13)
11
+ this.app = new installation_app_entity_1.InstallationAppEntity();
14
12
  this.createdAt = new Date();
15
13
  this.customConfig = null;
16
14
  this.expirationDate = new Date();
17
15
  this.featureId = '';
18
16
  this.id = '';
19
17
  this.lastCheckAt = new Date();
20
- this.mode = app_1.AppModeEnum.NATI_GO;
18
+ this.status = enums_1.InstallationStatusEnum.PENDING;
21
19
  this.subscriptionId = '';
22
- this.suspended = false;
23
20
  this.tags = [];
21
+ this.trialEndDate = new Date();
22
+ this.trialStartDate = new Date();
24
23
  this.updatedAt = new Date();
25
- this.version = '';
26
24
  if (data) {
27
25
  for (var key in data) {
28
26
  if (data.hasOwnProperty(key) && key in this) {
@@ -0,0 +1 @@
1
+ export { InstallationStatusEnum } from './status.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InstallationStatusEnum = void 0;
4
+ var status_enum_1 = require("./status.enum");
5
+ Object.defineProperty(exports, "InstallationStatusEnum", { enumerable: true, get: function () { return status_enum_1.InstallationStatusEnum; } });
@@ -0,0 +1,9 @@
1
+ export declare enum InstallationStatusEnum {
2
+ TRIAL = "TRIAL",
3
+ ACTIVE = "ACTIVE",
4
+ SUSPENDED = "SUSPENDED",
5
+ EXPIRED = "EXPIRED",
6
+ CANCELLED = "CANCELLED",
7
+ PENDING = "PENDING",
8
+ INACTIVE = "INACTIVE"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InstallationStatusEnum = void 0;
4
+ var InstallationStatusEnum;
5
+ (function (InstallationStatusEnum) {
6
+ InstallationStatusEnum["TRIAL"] = "TRIAL";
7
+ InstallationStatusEnum["ACTIVE"] = "ACTIVE";
8
+ InstallationStatusEnum["SUSPENDED"] = "SUSPENDED";
9
+ InstallationStatusEnum["EXPIRED"] = "EXPIRED";
10
+ InstallationStatusEnum["CANCELLED"] = "CANCELLED";
11
+ InstallationStatusEnum["PENDING"] = "PENDING";
12
+ InstallationStatusEnum["INACTIVE"] = "INACTIVE";
13
+ })(InstallationStatusEnum || (exports.InstallationStatusEnum = InstallationStatusEnum = {}));
@@ -0,0 +1,8 @@
1
+ import { AppModeEnum } from '../../app';
2
+ export interface IInstallationApp {
3
+ iconUrl: string;
4
+ id: string;
5
+ mode: AppModeEnum;
6
+ name: string;
7
+ version: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +1,18 @@
1
- import { AppConfigType, AppModeEnum } from '../../app';
1
+ import { AppConfigType } from '../../app';
2
+ import { InstallationStatusEnum } from '../enums';
3
+ import { IInstallationApp } from './i-installation-app';
2
4
  export interface IInstallation {
3
- active: boolean;
4
- suspended: boolean;
5
- appIconUrl: string;
6
- appId: string;
7
- appName: string;
5
+ app: IInstallationApp;
8
6
  createdAt: Date;
9
7
  customConfig: AppConfigType;
10
8
  expirationDate: Date;
9
+ featureId: string;
11
10
  id: string;
12
- mode: AppModeEnum;
11
+ lastCheckAt: Date;
12
+ status: InstallationStatusEnum;
13
13
  subscriptionId: string;
14
- featureId: string;
15
14
  tags: string[];
15
+ trialEndDate: Date;
16
+ trialStartDate: Date;
16
17
  updatedAt: Date;
17
- lastCheckAt: Date;
18
- version: string;
19
18
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.77",
3
+ "version": "1.0.78",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -6,6 +6,7 @@ export declare class PlanEntity implements IPlan {
6
6
  createdAt: Date;
7
7
  features: PlanFeatureEntity[];
8
8
  id: string;
9
+ index: number;
9
10
  identifier: PlanIdentifierEnum;
10
11
  interval: number;
11
12
  intervalType: IntervalTypeEnum;
@@ -11,6 +11,7 @@ var PlanEntity = /** @class */ (function () {
11
11
  this.createdAt = new Date();
12
12
  this.features = [];
13
13
  this.id = '';
14
+ this.index = 0;
14
15
  this.identifier = plans_identifier_enum_1.PlanIdentifierEnum.NATIGO;
15
16
  this.interval = 12;
16
17
  this.intervalType = enums_1.IntervalTypeEnum.MONTHS;
@@ -8,6 +8,7 @@ export interface IPlan {
8
8
  interval: number;
9
9
  intervalType: IntervalTypeEnum;
10
10
  createdAt: Date;
11
+ index: number;
11
12
  updatedAt: Date;
12
13
  price: number;
13
14
  features: IPlanFeature[];
@@ -16,7 +16,6 @@ export declare class SubscriptionEntity implements ISubscription {
16
16
  renewPaymentDate: Date;
17
17
  startDate: Date;
18
18
  status: SubscriptionStatusEnum;
19
- trialEndDate: Date;
20
19
  updatedAt: Date;
21
20
  constructor(data?: Partial<SubscriptionEntity>);
22
21
  }
@@ -21,7 +21,6 @@ var SubscriptionEntity = /** @class */ (function () {
21
21
  this.renewPaymentDate = new Date();
22
22
  this.startDate = new Date();
23
23
  this.status = enums_1.SubscriptionStatusEnum.PENDING;
24
- this.trialEndDate = new Date();
25
24
  this.updatedAt = new Date();
26
25
  if (data) {
27
26
  for (var key in data) {
@@ -6,7 +6,6 @@ export interface ISubscription {
6
6
  createdAt: Date;
7
7
  customerId: string;
8
8
  endDate: Date;
9
- trialEndDate: Date;
10
9
  id: string;
11
10
  interval: number;
12
11
  intervalType: IntervalTypeEnum;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.77",
3
+ "version": "1.0.78",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {},
6
6
  "peerDependencies": {},