cecon-interfaces 1.0.77 → 1.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) 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/notification/enums/category.enum.mjs +4 -1
  19. package/dist/esm2022/plan/entities/feature.entity.mjs +4 -2
  20. package/dist/esm2022/plan/entities/plan.entity.mjs +2 -1
  21. package/dist/esm2022/plan/interfaces/i-feature.mjs +1 -1
  22. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  23. package/dist/esm2022/subscription/entities/subscription.entity.mjs +1 -2
  24. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  25. package/dist/fesm2022/cecon-interfaces.mjs +64 -22
  26. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  27. package/dist/installation/entities/installation-app.entity.d.ts +10 -0
  28. package/dist/installation/entities/installation-app.entity.js +25 -0
  29. package/dist/installation/entities/installation.entity.d.ts +7 -8
  30. package/dist/installation/entities/installation.entity.js +8 -10
  31. package/dist/installation/enums/index.d.ts +1 -0
  32. package/dist/installation/enums/index.js +5 -0
  33. package/dist/installation/enums/status.enum.d.ts +9 -0
  34. package/dist/installation/enums/status.enum.js +13 -0
  35. package/dist/installation/interfaces/i-installation-app.d.ts +8 -0
  36. package/dist/installation/interfaces/i-installation-app.js +2 -0
  37. package/dist/installation/interfaces/i-installation.d.ts +9 -10
  38. package/dist/notification/enums/category.enum.d.ts +3 -0
  39. package/dist/notification/enums/category.enum.js +3 -0
  40. package/dist/package.json +5 -6
  41. package/dist/plan/entities/feature.entity.d.ts +3 -1
  42. package/dist/plan/entities/feature.entity.js +3 -1
  43. package/dist/plan/entities/plan.entity.d.ts +1 -0
  44. package/dist/plan/entities/plan.entity.js +1 -0
  45. package/dist/plan/interfaces/i-feature.d.ts +3 -1
  46. package/dist/plan/interfaces/i-plan.d.ts +1 -0
  47. package/dist/subscription/entities/subscription.entity.d.ts +0 -1
  48. package/dist/subscription/entities/subscription.entity.js +0 -1
  49. package/dist/subscription/interfaces/i-subscription.d.ts +0 -1
  50. package/ng-package.json +4 -1
  51. package/package.json +2 -4
@@ -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
  }
@@ -5,6 +5,9 @@ export declare enum NotificationCategoryEnum {
5
5
  TASK = "task",
6
6
  MEETING = "meeting",
7
7
  ALERT = "alert",
8
+ INFO = "info",
9
+ DANGER = "danger",
10
+ WARN = "warning",
8
11
  UPDATE = "update",
9
12
  OTHER = "other"
10
13
  }
@@ -9,6 +9,9 @@ var NotificationCategoryEnum;
9
9
  NotificationCategoryEnum["TASK"] = "task";
10
10
  NotificationCategoryEnum["MEETING"] = "meeting";
11
11
  NotificationCategoryEnum["ALERT"] = "alert";
12
+ NotificationCategoryEnum["INFO"] = "info";
13
+ NotificationCategoryEnum["DANGER"] = "danger";
14
+ NotificationCategoryEnum["WARN"] = "warning";
12
15
  NotificationCategoryEnum["UPDATE"] = "update";
13
16
  NotificationCategoryEnum["OTHER"] = "other";
14
17
  })(NotificationCategoryEnum || (exports.NotificationCategoryEnum = NotificationCategoryEnum = {}));
package/dist/package.json CHANGED
@@ -1,11 +1,7 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "description": "Interfaces de Projetos Cecon",
5
- "dependencies": {
6
- "tslib": "^2.3.0"
7
- },
8
- "peerDependencies": {},
9
5
  "main": "dist/index.js",
10
6
  "types": "dist/index.d.ts",
11
7
  "private": false,
@@ -39,5 +35,8 @@
39
35
  "default": "./fesm2022/cecon-interfaces.mjs"
40
36
  }
41
37
  },
42
- "sideEffects": false
38
+ "sideEffects": false,
39
+ "dependencies": {
40
+ "tslib": "^2.3.0"
41
+ }
43
42
  }
@@ -7,7 +7,9 @@ export declare class PlanFeatureEntity implements IPlanFeature {
7
7
  name: string;
8
8
  planId: string;
9
9
  position: number;
10
+ quantity: number;
10
11
  updatedAt: Date;
11
- value: number;
12
+ price: number;
13
+ isFeature: boolean;
12
14
  constructor(data?: Partial<PlanFeatureEntity>);
13
15
  }
@@ -13,8 +13,10 @@ var PlanFeatureEntity = /** @class */ (function () {
13
13
  this.name = '';
14
14
  this.planId = '';
15
15
  this.position = 0;
16
+ this.quantity = 0;
16
17
  this.updatedAt = new Date();
17
- this.value = 0;
18
+ this.price = 0;
19
+ this.isFeature = false;
18
20
  if (data) {
19
21
  for (var key in data) {
20
22
  if (data.hasOwnProperty(key) && key in this) {
@@ -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;
@@ -7,5 +7,7 @@ export interface IPlanFeature {
7
7
  planId: string;
8
8
  position: number;
9
9
  updatedAt: Date;
10
- value: number;
10
+ quantity: number;
11
+ price: number;
12
+ isFeature: boolean;
11
13
  }
@@ -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/ng-package.json CHANGED
@@ -2,5 +2,8 @@
2
2
  "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
3
3
  "lib": {
4
4
  "entryFile": "src/index.ts"
5
- }
5
+ },
6
+ "allowedNonPeerDependencies": [
7
+ "pako"
8
+ ]
6
9
  }
package/package.json CHANGED
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "description": "Interfaces de Projetos Cecon",
5
- "dependencies": {},
6
- "peerDependencies": {},
7
5
  "main": "dist/index.js",
8
6
  "types": "dist/index.d.ts",
9
7
  "private": false,
@@ -32,4 +30,4 @@
32
30
  "devDependencies": {
33
31
  "ng-packagr": "^16.2.0"
34
32
  }
35
- }
33
+ }