cecon-interfaces 1.0.77 → 1.0.79
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/app/entities/app.entity.d.ts +10 -8
- package/dist/app/entities/app.entity.js +12 -10
- package/dist/app/enums/app-type.enum.d.ts +6 -0
- package/dist/app/enums/app-type.enum.js +10 -0
- package/dist/app/enums/index.d.ts +1 -0
- package/dist/app/enums/index.js +3 -1
- package/dist/app/interfaces/i-app.d.ts +21 -19
- package/dist/esm2022/app/entities/app.entity.mjs +13 -11
- package/dist/esm2022/app/enums/app-type.enum.mjs +8 -0
- package/dist/esm2022/app/enums/index.mjs +2 -1
- package/dist/esm2022/app/interfaces/i-app.mjs +1 -1
- package/dist/esm2022/installation/entities/installation-app.entity.mjs +21 -0
- package/dist/esm2022/installation/entities/installation.entity.mjs +9 -11
- package/dist/esm2022/installation/enums/index.mjs +2 -0
- package/dist/esm2022/installation/enums/status.enum.mjs +11 -0
- package/dist/esm2022/installation/interfaces/i-installation-app.mjs +2 -0
- package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
- package/dist/esm2022/notification/enums/category.enum.mjs +4 -1
- package/dist/esm2022/plan/entities/feature.entity.mjs +4 -2
- package/dist/esm2022/plan/entities/plan.entity.mjs +2 -1
- package/dist/esm2022/plan/interfaces/i-feature.mjs +1 -1
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +1 -2
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +64 -22
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/installation/entities/installation-app.entity.d.ts +10 -0
- package/dist/installation/entities/installation-app.entity.js +25 -0
- package/dist/installation/entities/installation.entity.d.ts +7 -8
- package/dist/installation/entities/installation.entity.js +8 -10
- package/dist/installation/enums/index.d.ts +1 -0
- package/dist/installation/enums/index.js +5 -0
- package/dist/installation/enums/status.enum.d.ts +9 -0
- package/dist/installation/enums/status.enum.js +13 -0
- package/dist/installation/interfaces/i-installation-app.d.ts +8 -0
- package/dist/installation/interfaces/i-installation-app.js +2 -0
- package/dist/installation/interfaces/i-installation.d.ts +9 -10
- package/dist/notification/enums/category.enum.d.ts +3 -0
- package/dist/notification/enums/category.enum.js +3 -0
- package/dist/package.json +5 -6
- package/dist/plan/entities/feature.entity.d.ts +3 -1
- package/dist/plan/entities/feature.entity.js +3 -1
- package/dist/plan/entities/plan.entity.d.ts +1 -0
- package/dist/plan/entities/plan.entity.js +1 -0
- package/dist/plan/interfaces/i-feature.d.ts +3 -1
- package/dist/plan/interfaces/i-plan.d.ts +1 -0
- package/dist/subscription/entities/subscription.entity.d.ts +0 -1
- package/dist/subscription/entities/subscription.entity.js +0 -1
- package/dist/subscription/interfaces/i-subscription.d.ts +0 -1
- package/ng-package.json +4 -1
- 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
|
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
|
-
|
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
|
-
|
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
|
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 (
|
7
|
+
// #endregion Properties (13)
|
7
8
|
// #region Constructors (1)
|
8
9
|
function InstallationEntity(data) {
|
9
|
-
// #region Properties (
|
10
|
-
this.
|
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.
|
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,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 = {}));
|
@@ -1,19 +1,18 @@
|
|
1
|
-
import { AppConfigType
|
1
|
+
import { AppConfigType } from '../../app';
|
2
|
+
import { InstallationStatusEnum } from '../enums';
|
3
|
+
import { IInstallationApp } from './i-installation-app';
|
2
4
|
export interface IInstallation {
|
3
|
-
|
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
|
-
|
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
|
}
|
@@ -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.
|
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
|
-
|
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.
|
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) {
|
@@ -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;
|
@@ -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) {
|
package/ng-package.json
CHANGED
package/package.json
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "cecon-interfaces",
|
3
|
-
"version": "1.0.
|
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
|
+
}
|