cecon-interfaces 1.6.45 → 1.6.47

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 (30) hide show
  1. package/dist/esm2022/envelope/interfaces/factory-envelope-array-pag.functions.mjs +1 -1
  2. package/dist/esm2022/envelope/interfaces/factory-envelope-array.functions.mjs +1 -1
  3. package/dist/esm2022/envelope/interfaces/factory-envelope.functions.mjs +1 -1
  4. package/dist/esm2022/payio/index.mjs +2 -1
  5. package/dist/esm2022/payio/payload/entities/payload-subscription.entity.mjs +2 -1
  6. package/dist/esm2022/payio/payload/interfaces/i-payload-subscription.mjs +1 -1
  7. package/dist/esm2022/payio/trials/entities/index.mjs +2 -0
  8. package/dist/esm2022/payio/trials/entities/trial.entity.mjs +24 -0
  9. package/dist/esm2022/payio/trials/index.mjs +3 -0
  10. package/dist/esm2022/payio/trials/interfaces/i-trial.mjs +2 -0
  11. package/dist/esm2022/payio/trials/interfaces/index.mjs +2 -0
  12. package/dist/fesm2022/cecon-interfaces.mjs +26 -1
  13. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  14. package/dist/package.json +1 -1
  15. package/dist/payio/index.d.ts +1 -0
  16. package/dist/payio/index.js +1 -0
  17. package/dist/payio/payload/entities/payload-subscription.entity.d.ts +1 -0
  18. package/dist/payio/payload/entities/payload-subscription.entity.js +1 -0
  19. package/dist/payio/payload/interfaces/i-payload-subscription.d.ts +1 -0
  20. package/dist/payio/trials/entities/index.d.ts +1 -0
  21. package/dist/payio/trials/entities/index.js +5 -0
  22. package/dist/payio/trials/entities/trial.entity.d.ts +13 -0
  23. package/dist/payio/trials/entities/trial.entity.js +28 -0
  24. package/dist/payio/trials/index.d.ts +2 -0
  25. package/dist/payio/trials/index.js +18 -0
  26. package/dist/payio/trials/interfaces/i-trial.d.ts +11 -0
  27. package/dist/payio/trials/interfaces/i-trial.js +2 -0
  28. package/dist/payio/trials/interfaces/index.d.ts +1 -0
  29. package/dist/payio/trials/interfaces/index.js +2 -0
  30. 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.45",
3
+ "version": "1.6.47",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,3 +13,4 @@ export * from './resume-queues';
13
13
  export * from './schedules';
14
14
  export * from './subscriptions';
15
15
  export * from './tokens';
16
+ export * from './trials';
@@ -29,3 +29,4 @@ __exportStar(require("./resume-queues"), exports);
29
29
  __exportStar(require("./schedules"), exports);
30
30
  __exportStar(require("./subscriptions"), exports);
31
31
  __exportStar(require("./tokens"), exports);
32
+ __exportStar(require("./trials"), exports);
@@ -4,5 +4,6 @@ export declare class PayioJwtPayloadSubscriptionEntity implements IPayioJwtPaylo
4
4
  expiresAt: number;
5
5
  id: string;
6
6
  status: ESubsStatus;
7
+ usedTrial: boolean;
7
8
  constructor(data?: Partial<PayioJwtPayloadSubscriptionEntity>);
8
9
  }
@@ -10,6 +10,7 @@ var PayioJwtPayloadSubscriptionEntity = /** @class */ (function () {
10
10
  this.expiresAt = 0;
11
11
  this.id = '';
12
12
  this.status = general_1.ESubsStatus.PENDING;
13
+ this.usedTrial = false;
13
14
  if (data) {
14
15
  for (var key in data) {
15
16
  if (data.hasOwnProperty(key) && key in this) {
@@ -3,4 +3,5 @@ export interface IPayioJwtPayloadSubscription {
3
3
  expiresAt: number;
4
4
  id: string;
5
5
  status: ESubsStatus;
6
+ usedTrial: boolean;
6
7
  }
@@ -0,0 +1 @@
1
+ export { PayioTrialEntity } from './trial.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioTrialEntity = void 0;
4
+ var trial_entity_1 = require("./trial.entity");
5
+ Object.defineProperty(exports, "PayioTrialEntity", { enumerable: true, get: function () { return trial_entity_1.PayioTrialEntity; } });
@@ -0,0 +1,13 @@
1
+ import { IPayioTrial } from '../interfaces/i-trial';
2
+ export declare class PayioTrialEntity implements IPayioTrial {
3
+ companyId: string;
4
+ createdAt: Date;
5
+ id: string;
6
+ planId: string;
7
+ subscriptionId: string;
8
+ trialEndAt: Date;
9
+ trialStartAt: Date;
10
+ updatedAt: Date;
11
+ userId: string;
12
+ constructor(data?: Partial<PayioTrialEntity>);
13
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioTrialEntity = void 0;
4
+ var PayioTrialEntity = /** @class */ (function () {
5
+ // #endregion Properties (9)
6
+ // #region Constructors (1)
7
+ function PayioTrialEntity(data) {
8
+ // #region Properties (9)
9
+ this.companyId = '';
10
+ this.createdAt = new Date();
11
+ this.id = '';
12
+ this.planId = '';
13
+ this.subscriptionId = '';
14
+ this.trialEndAt = new Date();
15
+ this.trialStartAt = new Date();
16
+ this.updatedAt = new Date();
17
+ this.userId = '';
18
+ if (data) {
19
+ for (var key in data) {
20
+ if (data.hasOwnProperty(key) && key in this) {
21
+ this[key] = data[key];
22
+ }
23
+ }
24
+ }
25
+ }
26
+ return PayioTrialEntity;
27
+ }());
28
+ exports.PayioTrialEntity = PayioTrialEntity;
@@ -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,11 @@
1
+ export interface IPayioTrial {
2
+ companyId: string;
3
+ createdAt: Date;
4
+ id: string;
5
+ planId: string;
6
+ subscriptionId: string;
7
+ trialEndAt: Date;
8
+ trialStartAt: Date;
9
+ updatedAt: Date;
10
+ userId: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IPayioTrial } from './i-trial';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.45",
3
+ "version": "1.6.47",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",