cecon-interfaces 1.9.60 → 1.9.63

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 (25) hide show
  1. package/dist/esm2022/payio/cards/entities/card-config.entity.mjs +4 -3
  2. package/dist/esm2022/payio/cards/enums/index.mjs +2 -2
  3. package/dist/esm2022/payio/cards/enums/items-rule.enum.mjs +6 -0
  4. package/dist/esm2022/payio/cards/interfaces/i-card-config.mjs +1 -1
  5. package/dist/esm2022/payio/payload/enums/token-type.enum.mjs +2 -1
  6. package/dist/esm2022/payio/user/entities/user-sessions.entity.mjs +4 -3
  7. package/dist/esm2022/payio/user/interfaces/i-user-sessions.mjs +1 -1
  8. package/dist/fesm2022/cecon-interfaces.mjs +12 -12
  9. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  10. package/dist/payio/cards/entities/card-config.entity.d.ts +2 -1
  11. package/dist/payio/cards/entities/card-config.entity.js +2 -0
  12. package/dist/payio/cards/enums/index.d.ts +1 -1
  13. package/dist/payio/cards/enums/index.js +3 -3
  14. package/dist/payio/cards/enums/items-rule.enum.d.ts +4 -0
  15. package/dist/payio/cards/enums/items-rule.enum.js +8 -0
  16. package/dist/payio/cards/interfaces/i-card-config.d.ts +2 -1
  17. package/dist/payio/payload/enums/token-type.enum.d.ts +1 -0
  18. package/dist/payio/payload/enums/token-type.enum.js +1 -0
  19. package/dist/payio/user/entities/user-sessions.entity.d.ts +4 -3
  20. package/dist/payio/user/entities/user-sessions.entity.js +3 -2
  21. package/dist/payio/user/interfaces/i-user-sessions.d.ts +3 -2
  22. package/package.json +1 -1
  23. package/dist/esm2022/payio/cards/enums/account-provider.enum.mjs +0 -9
  24. package/dist/payio/cards/enums/account-provider.enum.d.ts +0 -7
  25. package/dist/payio/cards/enums/account-provider.enum.js +0 -11
@@ -1,4 +1,4 @@
1
- import { EPayioCardKeyType, PayioCardItemEntity } from '../..';
1
+ import { EItemsRule, EPayioCardKeyType, PayioCardItemEntity } from '../..';
2
2
  import { EAmountMode } from '../../../general';
3
3
  import { IPayioCardAuth, IPayioCardConfig } from '../interfaces';
4
4
  import { PayioCardCompanyEntity } from './card-company.entity';
@@ -10,6 +10,7 @@ export declare class PayioCardConfigEntity implements IPayioCardConfig {
10
10
  discountAmount: number;
11
11
  discountAmountType: EAmountMode;
12
12
  items: PayioCardItemEntity[];
13
+ itemsRule: EItemsRule;
13
14
  key: string | null;
14
15
  keyType: EPayioCardKeyType;
15
16
  label: string;
@@ -11,8 +11,10 @@ var PayioCardConfigEntity = /** @class */ (function () {
11
11
  this.discountAmount = 0;
12
12
  this.discountAmountType = general_1.EAmountMode.PERCENTAGE;
13
13
  this.items = [];
14
+ this.itemsRule = __1.EItemsRule.INCLUDED_ONLY;
14
15
  this.key = null;
15
16
  this.keyType = __1.EPayioCardKeyType.CPF;
17
+ this.label = '';
16
18
  this.password = null;
17
19
  if (data) {
18
20
  for (var key in data) {
@@ -1,4 +1,4 @@
1
- export { EPayioCardAccountProvider } from './account-provider.enum';
1
+ export { EItemsRule } from './items-rule.enum';
2
2
  export { ECardMode } from './mode.enum';
3
3
  export { EPayioCardStatus } from './status.enum';
4
4
  export { EPayioCardStatusProduction } from './status-production.enum';
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPayioCardKeyType = exports.EPayioCardStatusProduction = exports.EPayioCardStatus = exports.ECardMode = exports.EPayioCardAccountProvider = void 0;
4
- var account_provider_enum_1 = require("./account-provider.enum");
5
- Object.defineProperty(exports, "EPayioCardAccountProvider", { enumerable: true, get: function () { return account_provider_enum_1.EPayioCardAccountProvider; } });
3
+ exports.EPayioCardKeyType = exports.EPayioCardStatusProduction = exports.EPayioCardStatus = exports.ECardMode = exports.EItemsRule = void 0;
4
+ var items_rule_enum_1 = require("./items-rule.enum");
5
+ Object.defineProperty(exports, "EItemsRule", { enumerable: true, get: function () { return items_rule_enum_1.EItemsRule; } });
6
6
  var mode_enum_1 = require("./mode.enum");
7
7
  Object.defineProperty(exports, "ECardMode", { enumerable: true, get: function () { return mode_enum_1.ECardMode; } });
8
8
  var status_enum_1 = require("./status.enum");
@@ -0,0 +1,4 @@
1
+ export declare enum EItemsRule {
2
+ INCLUDED_ONLY = "INCLUDED_ONLY",
3
+ EXCLUDED_ALL = "EXCLUDED_ALL"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EItemsRule = void 0;
4
+ var EItemsRule;
5
+ (function (EItemsRule) {
6
+ EItemsRule["INCLUDED_ONLY"] = "INCLUDED_ONLY";
7
+ EItemsRule["EXCLUDED_ALL"] = "EXCLUDED_ALL";
8
+ })(EItemsRule || (exports.EItemsRule = EItemsRule = {}));
@@ -1,5 +1,5 @@
1
1
  import { EAmountMode } from "../../../general";
2
- import { EPayioCardKeyType } from "../enums";
2
+ import { EItemsRule, EPayioCardKeyType } from "../enums";
3
3
  import { IPayioCardAuth } from "./i-card-auth";
4
4
  import { IPayioCardCompany } from "./i-card-company";
5
5
  import { IPayioCardItem } from "./i-card-item";
@@ -11,6 +11,7 @@ export interface IPayioCardConfig {
11
11
  discountAmount: number;
12
12
  discountAmountType: EAmountMode;
13
13
  items: IPayioCardItem[];
14
+ itemsRule: EItemsRule;
14
15
  key: string | null;
15
16
  keyType: EPayioCardKeyType;
16
17
  label: string;
@@ -1,6 +1,7 @@
1
1
  export declare enum EPayioJwtTokenType {
2
2
  SIGNIN = "SIGNIN",
3
3
  SIGNUP = "SIGNUP",
4
+ SIGNOUT = "SIGNOUT",
4
5
  REFRESH_TOKEN = "REFRESH_TOKEN",
5
6
  CHECKIN = "CHECKIN",
6
7
  CHECKOUT = "CHECKOUT",
@@ -5,6 +5,7 @@ var EPayioJwtTokenType;
5
5
  (function (EPayioJwtTokenType) {
6
6
  EPayioJwtTokenType["SIGNIN"] = "SIGNIN";
7
7
  EPayioJwtTokenType["SIGNUP"] = "SIGNUP";
8
+ EPayioJwtTokenType["SIGNOUT"] = "SIGNOUT";
8
9
  EPayioJwtTokenType["REFRESH_TOKEN"] = "REFRESH_TOKEN";
9
10
  EPayioJwtTokenType["CHECKIN"] = "CHECKIN";
10
11
  EPayioJwtTokenType["CHECKOUT"] = "CHECKOUT";
@@ -1,8 +1,9 @@
1
- import { IPayioUserSession } from '../interfaces/i-user-sessions';
1
+ import { IPayioUserSession } from "../interfaces/i-user-sessions";
2
2
  export declare class PayioUserSessionEntity implements IPayioUserSession {
3
+ appId: string;
3
4
  companyId: string | null;
4
5
  companyName: string | null;
5
- deviceId: string | null;
6
- appId: string | null;
6
+ deviceId: string;
7
+ lastAccessAt: Date;
7
8
  constructor(data?: Partial<PayioUserSessionEntity>);
8
9
  }
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioUserSessionEntity = void 0;
4
4
  var PayioUserSessionEntity = /** @class */ (function () {
5
5
  function PayioUserSessionEntity(data) {
6
+ this.appId = '';
6
7
  this.companyId = null;
7
8
  this.companyName = null;
8
- this.deviceId = null;
9
- this.appId = null;
9
+ this.deviceId = '';
10
+ this.lastAccessAt = new Date();
10
11
  if (data) {
11
12
  for (var key in data) {
12
13
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,6 +1,7 @@
1
1
  export interface IPayioUserSession {
2
2
  companyId: string | null;
3
3
  companyName: string | null;
4
- deviceId: string | null;
5
- appId: string | null;
4
+ deviceId: string;
5
+ appId: string;
6
+ lastAccessAt: Date;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.60",
3
+ "version": "1.9.63",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,9 +0,0 @@
1
- export var EPayioCardAccountProvider;
2
- (function (EPayioCardAccountProvider) {
3
- EPayioCardAccountProvider["NATIPAY"] = "NATIPAY";
4
- EPayioCardAccountProvider["IUGU"] = "IUGU";
5
- EPayioCardAccountProvider["ASAAS"] = "ASAAS";
6
- EPayioCardAccountProvider["MERCADOPAGO"] = "MERCADOPAGO";
7
- EPayioCardAccountProvider["PAGARME"] = "PAGARME";
8
- })(EPayioCardAccountProvider || (EPayioCardAccountProvider = {}));
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1wcm92aWRlci5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3BheWlvL2NhcmRzL2VudW1zL2FjY291bnQtcHJvdmlkZXIuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSx5QkFNWDtBQU5ELFdBQVkseUJBQXlCO0lBQ25DLGdEQUFtQixDQUFBO0lBQ25CLDBDQUFhLENBQUE7SUFDYiw0Q0FBZSxDQUFBO0lBQ2Ysd0RBQTJCLENBQUE7SUFDM0IsZ0RBQW1CLENBQUE7QUFDckIsQ0FBQyxFQU5XLHlCQUF5QixLQUF6Qix5QkFBeUIsUUFNcEMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBFUGF5aW9DYXJkQWNjb3VudFByb3ZpZGVyIHtcclxuICBOQVRJUEFZID0gJ05BVElQQVknLFxyXG4gIElVR1UgPSAnSVVHVScsXHJcbiAgQVNBQVMgPSAnQVNBQVMnLFxyXG4gIE1FUkNBRE9QQUdPID0gJ01FUkNBRE9QQUdPJyxcclxuICBQQUdBUk1FID0gJ1BBR0FSTUUnLFxyXG59XHJcbiJdfQ==
@@ -1,7 +0,0 @@
1
- export declare enum EPayioCardAccountProvider {
2
- NATIPAY = "NATIPAY",
3
- IUGU = "IUGU",
4
- ASAAS = "ASAAS",
5
- MERCADOPAGO = "MERCADOPAGO",
6
- PAGARME = "PAGARME"
7
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPayioCardAccountProvider = void 0;
4
- var EPayioCardAccountProvider;
5
- (function (EPayioCardAccountProvider) {
6
- EPayioCardAccountProvider["NATIPAY"] = "NATIPAY";
7
- EPayioCardAccountProvider["IUGU"] = "IUGU";
8
- EPayioCardAccountProvider["ASAAS"] = "ASAAS";
9
- EPayioCardAccountProvider["MERCADOPAGO"] = "MERCADOPAGO";
10
- EPayioCardAccountProvider["PAGARME"] = "PAGARME";
11
- })(EPayioCardAccountProvider || (exports.EPayioCardAccountProvider = EPayioCardAccountProvider = {}));