cecon-interfaces 1.6.7 → 1.6.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/esm2022/payio/index.mjs +2 -1
  2. package/dist/esm2022/payio/payload/entities/index.mjs +2 -1
  3. package/dist/esm2022/payio/payload/entities/payload-info.entity.mjs +19 -0
  4. package/dist/esm2022/payio/payload/interfaces/index.mjs +1 -1
  5. package/dist/esm2022/payio/subscriptions/entities/subscription.entity.mjs +6 -3
  6. package/dist/esm2022/payio/subscriptions/interfaces/i-subscription.mjs +1 -1
  7. package/dist/esm2022/payio/tokens/entities/index.mjs +2 -0
  8. package/dist/esm2022/payio/tokens/entities/token.entity.mjs +24 -0
  9. package/dist/esm2022/payio/tokens/index.mjs +3 -0
  10. package/dist/esm2022/payio/tokens/interfaces/i-token.mjs +2 -0
  11. package/dist/esm2022/payio/tokens/interfaces/index.mjs +2 -0
  12. package/dist/fesm2022/cecon-interfaces.mjs +49 -3
  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/index.d.ts +1 -0
  18. package/dist/payio/payload/entities/index.js +3 -1
  19. package/dist/payio/payload/entities/payload-info.entity.d.ts +8 -0
  20. package/dist/payio/payload/entities/payload-info.entity.js +23 -0
  21. package/dist/payio/payload/interfaces/index.d.ts +1 -0
  22. package/dist/payio/subscriptions/entities/subscription.entity.d.ts +3 -0
  23. package/dist/payio/subscriptions/entities/subscription.entity.js +5 -2
  24. package/dist/payio/subscriptions/interfaces/i-subscription.d.ts +3 -0
  25. package/dist/payio/tokens/entities/index.d.ts +1 -0
  26. package/dist/payio/tokens/entities/index.js +5 -0
  27. package/dist/payio/tokens/entities/token.entity.d.ts +13 -0
  28. package/dist/payio/tokens/entities/token.entity.js +28 -0
  29. package/dist/payio/tokens/index.d.ts +2 -0
  30. package/dist/payio/tokens/index.js +18 -0
  31. package/dist/payio/tokens/interfaces/i-token.d.ts +11 -0
  32. package/dist/payio/tokens/interfaces/i-token.js +2 -0
  33. package/dist/payio/tokens/interfaces/index.d.ts +1 -0
  34. package/dist/payio/tokens/interfaces/index.js +2 -0
  35. 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.07",
3
+ "version": "1.6.10",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -4,3 +4,4 @@ export * from './device';
4
4
  export * from './payload';
5
5
  export * from './permissions';
6
6
  export * from './subscriptions';
7
+ export * from './tokens';
@@ -20,3 +20,4 @@ __exportStar(require("./device"), exports);
20
20
  __exportStar(require("./payload"), exports);
21
21
  __exportStar(require("./permissions"), exports);
22
22
  __exportStar(require("./subscriptions"), exports);
23
+ __exportStar(require("./tokens"), exports);
@@ -1,5 +1,6 @@
1
1
  export { PayioJwtPayloadAppEntity } from './payload-app.entity';
2
2
  export { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
3
+ export { PayioJwtPayloadInfoEntity } from './payload-info.entity';
3
4
  export { PayioJwtPayloadSubscriptionEntity } from './payload-subscription.entity';
4
5
  export { PayioJwtPayloadUserEntity } from './payload-user.entity';
5
6
  export { PayioJwtPayloadEntity } from './payload.entity';
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioJwtPayloadEntity = exports.PayioJwtPayloadUserEntity = exports.PayioJwtPayloadSubscriptionEntity = exports.PayioJwtPayloadDeviceEntity = exports.PayioJwtPayloadAppEntity = void 0;
3
+ exports.PayioJwtPayloadEntity = exports.PayioJwtPayloadUserEntity = exports.PayioJwtPayloadSubscriptionEntity = exports.PayioJwtPayloadInfoEntity = exports.PayioJwtPayloadDeviceEntity = exports.PayioJwtPayloadAppEntity = void 0;
4
4
  var payload_app_entity_1 = require("./payload-app.entity");
5
5
  Object.defineProperty(exports, "PayioJwtPayloadAppEntity", { enumerable: true, get: function () { return payload_app_entity_1.PayioJwtPayloadAppEntity; } });
6
6
  var payload_device_entity_1 = require("./payload-device.entity");
7
7
  Object.defineProperty(exports, "PayioJwtPayloadDeviceEntity", { enumerable: true, get: function () { return payload_device_entity_1.PayioJwtPayloadDeviceEntity; } });
8
+ var payload_info_entity_1 = require("./payload-info.entity");
9
+ Object.defineProperty(exports, "PayioJwtPayloadInfoEntity", { enumerable: true, get: function () { return payload_info_entity_1.PayioJwtPayloadInfoEntity; } });
8
10
  var payload_subscription_entity_1 = require("./payload-subscription.entity");
9
11
  Object.defineProperty(exports, "PayioJwtPayloadSubscriptionEntity", { enumerable: true, get: function () { return payload_subscription_entity_1.PayioJwtPayloadSubscriptionEntity; } });
10
12
  var payload_user_entity_1 = require("./payload-user.entity");
@@ -0,0 +1,8 @@
1
+ import { IPayioJwtPayloadInfo } from '../interfaces/i-payload-info';
2
+ export declare class PayioJwtPayloadInfoEntity implements IPayioJwtPayloadInfo {
3
+ companyId: string;
4
+ companyName: string;
5
+ containerId: string | null;
6
+ containerName: string | null;
7
+ constructor(data?: Partial<PayioJwtPayloadInfoEntity>);
8
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioJwtPayloadInfoEntity = void 0;
4
+ var PayioJwtPayloadInfoEntity = /** @class */ (function () {
5
+ // #endregion Properties (4)
6
+ // #region Constructors (1)
7
+ function PayioJwtPayloadInfoEntity(data) {
8
+ // #region Properties (4)
9
+ this.companyId = '';
10
+ this.companyName = '';
11
+ this.containerId = null;
12
+ this.containerName = null;
13
+ if (data) {
14
+ for (var key in data) {
15
+ if (data.hasOwnProperty(key) && key in this) {
16
+ this[key] = data[key];
17
+ }
18
+ }
19
+ }
20
+ }
21
+ return PayioJwtPayloadInfoEntity;
22
+ }());
23
+ exports.PayioJwtPayloadInfoEntity = PayioJwtPayloadInfoEntity;
@@ -1,5 +1,6 @@
1
1
  export { IPayioJwtPayload } from './i-payload';
2
2
  export { IPayioJwtPayloadApp } from './i-payload-app';
3
3
  export { IPayioJwtPayloadDevice } from './i-payload-device';
4
+ export { IPayioJwtPayloadInfo } from './i-payload-info';
4
5
  export { IPayioJwtPayloadSubscription } from './i-payload-subscription';
5
6
  export { IPayioJwtPayloadUser } from './i-payload-user';
@@ -3,7 +3,9 @@ import { IPayioSubscription } from '../interfaces/i-subscription';
3
3
  import { PayioSubscriptionItemEntity } from './subscription-item.entity';
4
4
  import { PayioSubscriptionLogEntity } from './subscription-log.entity';
5
5
  export declare class PayioSubscriptionEntity implements IPayioSubscription {
6
+ activeDevices: string[];
6
7
  amount: number;
8
+ appIds: string[];
7
9
  cancellationReason: string;
8
10
  createdAt: Date;
9
11
  customVariables: CustomVariableEntity[];
@@ -13,6 +15,7 @@ export declare class PayioSubscriptionEntity implements IPayioSubscription {
13
15
  intervalType: EIntervalType;
14
16
  items: PayioSubscriptionItemEntity[];
15
17
  logs: PayioSubscriptionLogEntity[];
18
+ maxSeats: number;
16
19
  notes: string;
17
20
  payment: PaymentMethodEntity;
18
21
  planId: string;
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioSubscriptionEntity = void 0;
4
4
  var general_1 = require("../../../general");
5
5
  var PayioSubscriptionEntity = /** @class */ (function () {
6
- // #endregion Properties (21)
6
+ // #endregion Properties (24)
7
7
  // #region Constructors (1)
8
8
  function PayioSubscriptionEntity(data) {
9
- // #region Properties (21)
9
+ // #region Properties (24)
10
+ this.activeDevices = [];
10
11
  this.amount = 0;
12
+ this.appIds = [];
11
13
  this.cancellationReason = '';
12
14
  this.createdAt = new Date();
13
15
  this.customVariables = [];
@@ -17,6 +19,7 @@ var PayioSubscriptionEntity = /** @class */ (function () {
17
19
  this.intervalType = general_1.EIntervalType.MONTHS;
18
20
  this.items = [];
19
21
  this.logs = [];
22
+ this.maxSeats = 0;
20
23
  this.notes = '';
21
24
  this.payment = new general_1.PaymentMethodEntity();
22
25
  this.planId = '';
@@ -2,7 +2,9 @@ import { EIntervalType, ESubsStatus, ICustomVariable, IPaymentMethod } from '../
2
2
  import { IPayioSubscriptionItem } from './i-subscription-item';
3
3
  import { IPayioSubscriptionLog } from './i-subscription-log';
4
4
  export interface IPayioSubscription {
5
+ activeDevices: string[];
5
6
  amount: number;
7
+ appIds: string[];
6
8
  cancellationReason: string;
7
9
  createdAt: Date;
8
10
  customVariables: ICustomVariable[];
@@ -12,6 +14,7 @@ export interface IPayioSubscription {
12
14
  intervalType: EIntervalType;
13
15
  items: IPayioSubscriptionItem[];
14
16
  logs: IPayioSubscriptionLog[];
17
+ maxSeats: number;
15
18
  notes: string;
16
19
  payment: IPaymentMethod;
17
20
  planId: string;
@@ -0,0 +1 @@
1
+ export { PayioTokenEntity } from './token.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioTokenEntity = void 0;
4
+ var token_entity_1 = require("./token.entity");
5
+ Object.defineProperty(exports, "PayioTokenEntity", { enumerable: true, get: function () { return token_entity_1.PayioTokenEntity; } });
@@ -0,0 +1,13 @@
1
+ import { IPayioToken } from '../interfaces/i-token';
2
+ export declare class PayioTokenEntity implements IPayioToken {
3
+ createdAt: Date;
4
+ deviceId: string | null;
5
+ expiresAt: Date;
6
+ id: string;
7
+ ipAddress: string | null;
8
+ isRevoked: boolean;
9
+ refreshToken: string;
10
+ userAgent: string | null;
11
+ userId: string;
12
+ constructor(data?: Partial<PayioTokenEntity>);
13
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioTokenEntity = void 0;
4
+ var PayioTokenEntity = /** @class */ (function () {
5
+ // #endregion Properties (9)
6
+ // #region Constructors (1)
7
+ function PayioTokenEntity(data) {
8
+ // #region Properties (9)
9
+ this.createdAt = new Date();
10
+ this.deviceId = null;
11
+ this.expiresAt = new Date();
12
+ this.id = '';
13
+ this.ipAddress = null;
14
+ this.isRevoked = false;
15
+ this.refreshToken = '';
16
+ this.userAgent = null;
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 PayioTokenEntity;
27
+ }());
28
+ exports.PayioTokenEntity = PayioTokenEntity;
@@ -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 IPayioToken {
2
+ createdAt: Date;
3
+ deviceId: string | null;
4
+ expiresAt: Date;
5
+ id: string;
6
+ ipAddress: string | null;
7
+ isRevoked: boolean;
8
+ refreshToken: string;
9
+ userAgent: string | null;
10
+ userId: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IPayioToken } from './i-token';
@@ -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.07",
3
+ "version": "1.6.10",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",