cecon-interfaces 1.0.76 → 1.0.78
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 +10 -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/plan/entities/plan.entity.mjs +2 -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 +59 -21
- 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 +8 -8
- package/dist/installation/entities/installation.entity.js +9 -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 -9
- package/dist/package.json +1 -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-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/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,20 +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;
|
13
|
+
status: InstallationStatusEnum;
|
14
14
|
subscriptionId: string;
|
15
|
-
suspended: boolean;
|
16
15
|
tags: string[];
|
16
|
+
trialEndDate: Date;
|
17
|
+
trialStartDate: Date;
|
17
18
|
updatedAt: Date;
|
18
|
-
version: string;
|
19
19
|
constructor(data?: Partial<InstallationEntity>);
|
20
20
|
}
|
@@ -1,27 +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
|
-
this.
|
17
|
+
this.lastCheckAt = new Date();
|
18
|
+
this.status = enums_1.InstallationStatusEnum.PENDING;
|
20
19
|
this.subscriptionId = '';
|
21
|
-
this.suspended = false;
|
22
20
|
this.tags = [];
|
21
|
+
this.trialEndDate = new Date();
|
22
|
+
this.trialStartDate = new Date();
|
23
23
|
this.updatedAt = new Date();
|
24
|
-
this.version = '';
|
25
24
|
if (data) {
|
26
25
|
for (var key in data) {
|
27
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,18 +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
|
-
version: string;
|
18
18
|
}
|
package/dist/package.json
CHANGED
@@ -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) {
|