cecon-interfaces 1.6.21 → 1.6.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/payio/app/entities/app.entity.mjs +1 -2
- package/dist/esm2022/payio/app/interfaces/i-app.mjs +1 -1
- package/dist/esm2022/payio/index.mjs +2 -1
- package/dist/esm2022/payio/plan/entities/index.mjs +2 -0
- package/dist/esm2022/payio/plan/entities/plan.entity.mjs +28 -0
- package/dist/esm2022/payio/plan/index.mjs +3 -0
- package/dist/esm2022/payio/plan/interfaces/i-plan.mjs +2 -0
- package/dist/esm2022/payio/plan/interfaces/index.mjs +2 -0
- package/dist/esm2022/plan/entities/feature.entity.mjs +26 -0
- package/dist/esm2022/plan/entities/index.mjs +2 -1
- package/dist/esm2022/plan/entities/plan.entity.mjs +1 -1
- package/dist/esm2022/plan/enums/plans-feature-type.enum.mjs +6 -0
- package/dist/esm2022/plan/interfaces/i-feature.mjs +2 -0
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/esm2022/plan/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +59 -2
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/payio/app/entities/app.entity.d.ts +0 -1
- package/dist/payio/app/entities/app.entity.js +0 -1
- package/dist/payio/app/interfaces/i-app.d.ts +0 -1
- package/dist/payio/index.d.ts +1 -0
- package/dist/payio/index.js +1 -0
- package/dist/payio/plan/entities/index.d.ts +1 -0
- package/dist/payio/plan/entities/index.js +5 -0
- package/dist/payio/plan/entities/plan.entity.d.ts +18 -0
- package/dist/payio/plan/entities/plan.entity.js +32 -0
- package/dist/payio/plan/index.d.ts +2 -0
- package/dist/payio/plan/index.js +18 -0
- package/dist/payio/plan/interfaces/i-plan.d.ts +16 -0
- package/dist/payio/plan/interfaces/i-plan.js +2 -0
- package/dist/payio/plan/interfaces/index.d.ts +1 -0
- package/dist/payio/plan/interfaces/index.js +2 -0
- package/dist/plan/entities/feature.entity.d.ts +15 -0
- package/dist/plan/entities/feature.entity.js +30 -0
- package/dist/plan/entities/index.d.ts +1 -0
- package/dist/plan/entities/index.js +3 -1
- package/dist/plan/entities/plan.entity.d.ts +2 -2
- package/dist/plan/enums/plans-feature-type.enum.d.ts +4 -0
- package/dist/plan/enums/plans-feature-type.enum.js +8 -0
- package/dist/plan/interfaces/i-feature.d.ts +13 -0
- package/dist/plan/interfaces/i-feature.js +2 -0
- package/dist/plan/interfaces/i-plan.d.ts +2 -2
- package/dist/plan/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/payio/index.d.ts
CHANGED
package/dist/payio/index.js
CHANGED
@@ -20,5 +20,6 @@ __exportStar(require("./device"), exports);
|
|
20
20
|
__exportStar(require("./features"), exports);
|
21
21
|
__exportStar(require("./payload"), exports);
|
22
22
|
__exportStar(require("./permissions"), exports);
|
23
|
+
__exportStar(require("./plan"), exports);
|
23
24
|
__exportStar(require("./subscriptions"), exports);
|
24
25
|
__exportStar(require("./tokens"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
export { PayioPlanEntity } from './plan.entity';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioPlanEntity = void 0;
|
4
|
+
var plan_entity_1 = require("./plan.entity");
|
5
|
+
Object.defineProperty(exports, "PayioPlanEntity", { enumerable: true, get: function () { return plan_entity_1.PayioPlanEntity; } });
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { EIntervalType } from '../../../general';
|
2
|
+
import { PayioFeatureEntity } from '../../features';
|
3
|
+
import { IPayioPlan } from '../interfaces';
|
4
|
+
export declare class PayioPlanEntity implements IPayioPlan {
|
5
|
+
createdAt: Date;
|
6
|
+
features: PayioFeatureEntity[];
|
7
|
+
id: string;
|
8
|
+
identifier: string;
|
9
|
+
index: number;
|
10
|
+
interval: number;
|
11
|
+
intervalType: EIntervalType;
|
12
|
+
name: string;
|
13
|
+
price: number;
|
14
|
+
tags: string[];
|
15
|
+
trialDays: number;
|
16
|
+
updatedAt: Date;
|
17
|
+
constructor(data?: Partial<PayioPlanEntity>);
|
18
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioPlanEntity = void 0;
|
4
|
+
var general_1 = require("../../../general");
|
5
|
+
var PayioPlanEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (12)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function PayioPlanEntity(data) {
|
9
|
+
// #region Properties (12)
|
10
|
+
this.createdAt = new Date();
|
11
|
+
this.features = [];
|
12
|
+
this.id = '';
|
13
|
+
this.identifier = 'payio-selfcheckout-3';
|
14
|
+
this.index = 0;
|
15
|
+
this.interval = 12;
|
16
|
+
this.intervalType = general_1.EIntervalType.MONTHS;
|
17
|
+
this.name = '';
|
18
|
+
this.price = 0;
|
19
|
+
this.tags = [];
|
20
|
+
this.trialDays = 0;
|
21
|
+
this.updatedAt = new Date();
|
22
|
+
if (data) {
|
23
|
+
for (var key in data) {
|
24
|
+
if (data.hasOwnProperty(key) && key in this) {
|
25
|
+
this[key] = data[key];
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
return PayioPlanEntity;
|
31
|
+
}());
|
32
|
+
exports.PayioPlanEntity = PayioPlanEntity;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./entities"), exports);
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { EIntervalType } from '../../../general';
|
2
|
+
import { IPayioFeature } from '../../features';
|
3
|
+
export interface IPayioPlan {
|
4
|
+
createdAt: Date;
|
5
|
+
features: IPayioFeature[];
|
6
|
+
id: string;
|
7
|
+
identifier: string;
|
8
|
+
index: number;
|
9
|
+
interval: number;
|
10
|
+
intervalType: EIntervalType;
|
11
|
+
tags: string[];
|
12
|
+
name: string;
|
13
|
+
trialDays: number;
|
14
|
+
price: number;
|
15
|
+
updatedAt: Date;
|
16
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { IPayioPlan } from './i-plan';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { EPlanFeatureType } from '../enums/plans-feature-type.enum';
|
2
|
+
import { IPlanFeature } from '../interfaces';
|
3
|
+
export declare class PlanFeatureEntity implements IPlanFeature {
|
4
|
+
appId: string;
|
5
|
+
createdAt: Date;
|
6
|
+
featureType: EPlanFeatureType;
|
7
|
+
id: string;
|
8
|
+
index: number;
|
9
|
+
name: string;
|
10
|
+
planId: string;
|
11
|
+
price: number;
|
12
|
+
quantity: number;
|
13
|
+
updatedAt: Date;
|
14
|
+
constructor(data?: Partial<PlanFeatureEntity>);
|
15
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PlanFeatureEntity = void 0;
|
4
|
+
var plans_feature_type_enum_1 = require("../enums/plans-feature-type.enum");
|
5
|
+
var PlanFeatureEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (10)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function PlanFeatureEntity(data) {
|
9
|
+
// #region Properties (10)
|
10
|
+
this.appId = '';
|
11
|
+
this.createdAt = new Date();
|
12
|
+
this.featureType = plans_feature_type_enum_1.EPlanFeatureType.FEATURE;
|
13
|
+
this.id = '';
|
14
|
+
this.index = 0;
|
15
|
+
this.name = '';
|
16
|
+
this.planId = '';
|
17
|
+
this.price = 0;
|
18
|
+
this.quantity = 0;
|
19
|
+
this.updatedAt = new Date();
|
20
|
+
if (data) {
|
21
|
+
for (var key in data) {
|
22
|
+
if (data.hasOwnProperty(key) && key in this) {
|
23
|
+
this[key] = data[key];
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
return PlanFeatureEntity;
|
29
|
+
}());
|
30
|
+
exports.PlanFeatureEntity = PlanFeatureEntity;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PlanEntity = void 0;
|
3
|
+
exports.PlanEntity = exports.PlanFeatureEntity = void 0;
|
4
|
+
var feature_entity_1 = require("./feature.entity");
|
5
|
+
Object.defineProperty(exports, "PlanFeatureEntity", { enumerable: true, get: function () { return feature_entity_1.PlanFeatureEntity; } });
|
4
6
|
var plan_entity_1 = require("./plan.entity");
|
5
7
|
Object.defineProperty(exports, "PlanEntity", { enumerable: true, get: function () { return plan_entity_1.PlanEntity; } });
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { EIntervalType } from '../../general/enums';
|
2
|
-
import { PayioFeatureEntity } from '../../payio';
|
3
2
|
import { EPlanIdentifier } from '../enums/plans-identifier.enum';
|
4
3
|
import { IPlan } from '../interfaces';
|
4
|
+
import { PlanFeatureEntity } from './feature.entity';
|
5
5
|
export declare class PlanEntity implements IPlan {
|
6
6
|
createdAt: Date;
|
7
|
-
features:
|
7
|
+
features: PlanFeatureEntity[];
|
8
8
|
id: string;
|
9
9
|
identifier: EPlanIdentifier;
|
10
10
|
index: number;
|
@@ -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 = {}));
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { EPlanFeatureType } from '../enums/plans-feature-type.enum';
|
2
|
+
export interface IPlanFeature {
|
3
|
+
appId: string;
|
4
|
+
createdAt: Date;
|
5
|
+
featureType: EPlanFeatureType;
|
6
|
+
id: string;
|
7
|
+
index: number;
|
8
|
+
name: string;
|
9
|
+
planId: string;
|
10
|
+
price: number;
|
11
|
+
quantity: number;
|
12
|
+
updatedAt: Date;
|
13
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { EIntervalType } from '../../general/enums';
|
2
|
-
import { IPayioFeature } from '../../payio';
|
3
2
|
import { EPlanIdentifier } from '../enums';
|
3
|
+
import { IPlanFeature } from './i-feature';
|
4
4
|
export interface IPlan {
|
5
5
|
createdAt: Date;
|
6
|
-
features:
|
6
|
+
features: IPlanFeature[];
|
7
7
|
id: string;
|
8
8
|
identifier: EPlanIdentifier;
|
9
9
|
index: number;
|