cecon-interfaces 1.6.21 → 1.6.23

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 (45) hide show
  1. package/dist/esm2022/payio/app/entities/app.entity.mjs +1 -2
  2. package/dist/esm2022/payio/app/interfaces/i-app.mjs +1 -1
  3. package/dist/esm2022/payio/index.mjs +2 -1
  4. package/dist/esm2022/payio/plan/entities/index.mjs +2 -0
  5. package/dist/esm2022/payio/plan/entities/plan.entity.mjs +28 -0
  6. package/dist/esm2022/payio/plan/index.mjs +3 -0
  7. package/dist/esm2022/payio/plan/interfaces/i-plan.mjs +2 -0
  8. package/dist/esm2022/payio/plan/interfaces/index.mjs +2 -0
  9. package/dist/esm2022/plan/entities/feature.entity.mjs +26 -0
  10. package/dist/esm2022/plan/entities/index.mjs +2 -1
  11. package/dist/esm2022/plan/entities/plan.entity.mjs +1 -1
  12. package/dist/esm2022/plan/enums/plans-feature-type.enum.mjs +6 -0
  13. package/dist/esm2022/plan/interfaces/i-feature.mjs +2 -0
  14. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  15. package/dist/esm2022/plan/interfaces/index.mjs +1 -1
  16. package/dist/fesm2022/cecon-interfaces.mjs +59 -2
  17. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  18. package/dist/package.json +1 -1
  19. package/dist/payio/app/entities/app.entity.d.ts +0 -1
  20. package/dist/payio/app/entities/app.entity.js +0 -1
  21. package/dist/payio/app/interfaces/i-app.d.ts +0 -1
  22. package/dist/payio/index.d.ts +1 -0
  23. package/dist/payio/index.js +1 -0
  24. package/dist/payio/plan/entities/index.d.ts +1 -0
  25. package/dist/payio/plan/entities/index.js +5 -0
  26. package/dist/payio/plan/entities/plan.entity.d.ts +18 -0
  27. package/dist/payio/plan/entities/plan.entity.js +32 -0
  28. package/dist/payio/plan/index.d.ts +2 -0
  29. package/dist/payio/plan/index.js +18 -0
  30. package/dist/payio/plan/interfaces/i-plan.d.ts +16 -0
  31. package/dist/payio/plan/interfaces/i-plan.js +2 -0
  32. package/dist/payio/plan/interfaces/index.d.ts +1 -0
  33. package/dist/payio/plan/interfaces/index.js +2 -0
  34. package/dist/plan/entities/feature.entity.d.ts +15 -0
  35. package/dist/plan/entities/feature.entity.js +30 -0
  36. package/dist/plan/entities/index.d.ts +1 -0
  37. package/dist/plan/entities/index.js +3 -1
  38. package/dist/plan/entities/plan.entity.d.ts +2 -2
  39. package/dist/plan/enums/plans-feature-type.enum.d.ts +4 -0
  40. package/dist/plan/enums/plans-feature-type.enum.js +8 -0
  41. package/dist/plan/interfaces/i-feature.d.ts +13 -0
  42. package/dist/plan/interfaces/i-feature.js +2 -0
  43. package/dist/plan/interfaces/i-plan.d.ts +2 -2
  44. package/dist/plan/interfaces/index.d.ts +1 -0
  45. package/package.json +1 -1
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.21",
3
+ "version": "1.6.23",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,7 +1,6 @@
1
1
  import { IPayioApp } from '../interfaces/i-app';
2
2
  export declare class PayioAppEntity implements IPayioApp {
3
3
  active: boolean;
4
- activeInstalls: number;
5
4
  description: string;
6
5
  downloadUrl: string;
7
6
  features: string[];
@@ -7,7 +7,6 @@ var PayioAppEntity = /** @class */ (function () {
7
7
  function PayioAppEntity(data) {
8
8
  // #region Properties (11)
9
9
  this.active = false;
10
- this.activeInstalls = 0;
11
10
  this.description = '';
12
11
  this.downloadUrl = '';
13
12
  this.features = [];
@@ -1,6 +1,5 @@
1
1
  export interface IPayioApp {
2
2
  active: boolean;
3
- activeInstalls: number;
4
3
  description: string;
5
4
  downloadUrl: string;
6
5
  features: string[];
@@ -4,5 +4,6 @@ export * from './device';
4
4
  export * from './features';
5
5
  export * from './payload';
6
6
  export * from './permissions';
7
+ export * from './plan';
7
8
  export * from './subscriptions';
8
9
  export * from './tokens';
@@ -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,2 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IPayioPlan } from './i-plan';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 +1,2 @@
1
+ export { PlanFeatureEntity } from './feature.entity';
1
2
  export { PlanEntity } from './plan.entity';
@@ -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: PayioFeatureEntity[];
7
+ features: PlanFeatureEntity[];
8
8
  id: string;
9
9
  identifier: EPlanIdentifier;
10
10
  index: number;
@@ -0,0 +1,4 @@
1
+ export declare enum EPlanFeatureType {
2
+ FEATURE = "FEATURE",
3
+ DESCRIPTION = "DESCRIPTION"
4
+ }
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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: IPayioFeature[];
6
+ features: IPlanFeature[];
7
7
  id: string;
8
8
  identifier: EPlanIdentifier;
9
9
  index: number;
@@ -1 +1,2 @@
1
+ export { IPlanFeature } from './i-feature';
1
2
  export { IPlan } from './i-plan';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.21",
3
+ "version": "1.6.23",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",