cecon-interfaces 1.5.97 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/esm2022/member-access/entities/index.mjs +3 -1
  2. package/dist/esm2022/member-access/entities/member-access-permission.entity.mjs +17 -0
  3. package/dist/esm2022/member-access/entities/member-access-role.entity.mjs +18 -0
  4. package/dist/esm2022/member-access/interfaces/i-member-access-permissions.mjs +2 -0
  5. package/dist/esm2022/member-access/interfaces/i-member-access-role.mjs +2 -0
  6. package/dist/esm2022/member-access/interfaces/index.mjs +1 -1
  7. package/dist/esm2022/payio/company/entities/company.entity.mjs +35 -0
  8. package/dist/esm2022/payio/company/entities/index.mjs +2 -0
  9. package/dist/esm2022/payio/company/index.mjs +3 -0
  10. package/dist/esm2022/payio/company/interfaces/i-company.mjs +2 -0
  11. package/dist/esm2022/payio/company/interfaces/index.mjs +2 -0
  12. package/dist/esm2022/payio/index.mjs +2 -1
  13. package/dist/fesm2022/cecon-interfaces.mjs +69 -1
  14. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  15. package/dist/member-access/entities/index.d.ts +2 -0
  16. package/dist/member-access/entities/index.js +5 -1
  17. package/dist/member-access/entities/member-access-permission.entity.d.ts +6 -0
  18. package/dist/member-access/entities/member-access-permission.entity.js +21 -0
  19. package/dist/member-access/entities/member-access-role.entity.d.ts +8 -0
  20. package/dist/member-access/entities/member-access-role.entity.js +22 -0
  21. package/dist/member-access/interfaces/i-member-access-permissions.d.ts +4 -0
  22. package/dist/member-access/interfaces/i-member-access-permissions.js +2 -0
  23. package/dist/member-access/interfaces/i-member-access-role.d.ts +6 -0
  24. package/dist/member-access/interfaces/i-member-access-role.js +2 -0
  25. package/dist/member-access/interfaces/index.d.ts +2 -0
  26. package/dist/package.json +1 -1
  27. package/dist/payio/company/entities/company.entity.d.ts +24 -0
  28. package/dist/payio/company/entities/company.entity.js +39 -0
  29. package/dist/payio/company/entities/index.d.ts +1 -0
  30. package/dist/payio/company/entities/index.js +5 -0
  31. package/dist/payio/company/index.d.ts +2 -0
  32. package/dist/payio/company/index.js +18 -0
  33. package/dist/payio/company/interfaces/i-company.d.ts +24 -0
  34. package/dist/payio/company/interfaces/i-company.js +2 -0
  35. package/dist/payio/company/interfaces/index.d.ts +1 -0
  36. package/dist/payio/company/interfaces/index.js +2 -0
  37. package/dist/payio/index.d.ts +1 -0
  38. package/dist/payio/index.js +1 -0
  39. package/package.json +1 -1
@@ -1 +1,3 @@
1
+ export { MemberAccessRolePermissionEntity } from './member-access-permission.entity';
2
+ export { MemberAccessRoleEntity } from './member-access-role.entity';
1
3
  export { MemberAccessEntity } from './member-access.entity';
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MemberAccessEntity = void 0;
3
+ exports.MemberAccessEntity = exports.MemberAccessRoleEntity = exports.MemberAccessRolePermissionEntity = void 0;
4
+ var member_access_permission_entity_1 = require("./member-access-permission.entity");
5
+ Object.defineProperty(exports, "MemberAccessRolePermissionEntity", { enumerable: true, get: function () { return member_access_permission_entity_1.MemberAccessRolePermissionEntity; } });
6
+ var member_access_role_entity_1 = require("./member-access-role.entity");
7
+ Object.defineProperty(exports, "MemberAccessRoleEntity", { enumerable: true, get: function () { return member_access_role_entity_1.MemberAccessRoleEntity; } });
4
8
  var member_access_entity_1 = require("./member-access.entity");
5
9
  Object.defineProperty(exports, "MemberAccessEntity", { enumerable: true, get: function () { return member_access_entity_1.MemberAccessEntity; } });
@@ -0,0 +1,6 @@
1
+ import { IMemberAccessRolePermission } from '../interfaces/i-member-access-permissions';
2
+ export declare class MemberAccessRolePermissionEntity implements IMemberAccessRolePermission {
3
+ id: string;
4
+ name: string;
5
+ constructor(data?: Partial<MemberAccessRolePermissionEntity>);
6
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MemberAccessRolePermissionEntity = void 0;
4
+ var MemberAccessRolePermissionEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function MemberAccessRolePermissionEntity(data) {
8
+ // #region Properties (2)
9
+ this.id = '';
10
+ this.name = '';
11
+ if (data) {
12
+ for (var key in data) {
13
+ if (data.hasOwnProperty(key) && key in this) {
14
+ this[key] = data[key];
15
+ }
16
+ }
17
+ }
18
+ }
19
+ return MemberAccessRolePermissionEntity;
20
+ }());
21
+ exports.MemberAccessRolePermissionEntity = MemberAccessRolePermissionEntity;
@@ -0,0 +1,8 @@
1
+ import { ERole } from '../../general';
2
+ import { IMemberAccessRole } from '../interfaces/i-member-access-role';
3
+ import { MemberAccessRolePermissionEntity } from './member-access-permission.entity';
4
+ export declare class MemberAccessRoleEntity implements IMemberAccessRole {
5
+ permissions: MemberAccessRolePermissionEntity[];
6
+ role: ERole;
7
+ constructor(data?: Partial<MemberAccessRoleEntity>);
8
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MemberAccessRoleEntity = void 0;
4
+ var general_1 = require("../../general");
5
+ var MemberAccessRoleEntity = /** @class */ (function () {
6
+ // #endregion Properties (2)
7
+ // #region Constructors (1)
8
+ function MemberAccessRoleEntity(data) {
9
+ // #region Properties (2)
10
+ this.permissions = [];
11
+ this.role = general_1.ERole.USER;
12
+ if (data) {
13
+ for (var key in data) {
14
+ if (data.hasOwnProperty(key) && key in this) {
15
+ this[key] = data[key];
16
+ }
17
+ }
18
+ }
19
+ }
20
+ return MemberAccessRoleEntity;
21
+ }());
22
+ exports.MemberAccessRoleEntity = MemberAccessRoleEntity;
@@ -0,0 +1,4 @@
1
+ export interface IMemberAccessRolePermission {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { ERole } from '../../general/enums/role.enum';
2
+ import { IMemberAccessRolePermission } from './i-member-access-permissions';
3
+ export interface IMemberAccessRole {
4
+ permissions: IMemberAccessRolePermission[];
5
+ role: ERole;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,3 @@
1
1
  export { IMemberAccess } from './i-member-access';
2
+ export { IMemberAccessRolePermission } from './i-member-access-permissions';
3
+ export { IMemberAccessRole } from './i-member-access-role';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.97",
3
+ "version": "1.6.0",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,24 @@
1
+ import { AddressEntity, EDocType, IPaymentProvider } from '../../../general';
2
+ import { IPayioCompany } from '../interfaces/i-company';
3
+ export declare class PayioCompanyEntity implements IPayioCompany {
4
+ active: boolean;
5
+ address: AddressEntity;
6
+ containerId: string;
7
+ createdAt: Date;
8
+ doc: string;
9
+ docType: EDocType;
10
+ email: string;
11
+ fullName: string;
12
+ id: string;
13
+ imageUrl: string | null;
14
+ internationalCode: string;
15
+ logoUrl: string | null;
16
+ name: string;
17
+ paymentProvider: IPaymentProvider | null;
18
+ phoneNumber: string;
19
+ sandbox: boolean;
20
+ tags: string[];
21
+ updatedAt: Date;
22
+ version: string;
23
+ constructor(data?: Partial<PayioCompanyEntity>);
24
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCompanyEntity = void 0;
4
+ var general_1 = require("../../../general");
5
+ var PayioCompanyEntity = /** @class */ (function () {
6
+ // #endregion Properties (19)
7
+ // #region Constructors (1)
8
+ function PayioCompanyEntity(data) {
9
+ // #region Properties (19)
10
+ this.active = false;
11
+ this.address = new general_1.AddressEntity();
12
+ this.containerId = '';
13
+ this.createdAt = new Date();
14
+ this.doc = '';
15
+ this.docType = general_1.EDocType.CNPJ;
16
+ this.email = '';
17
+ this.fullName = '';
18
+ this.id = '';
19
+ this.imageUrl = null;
20
+ this.internationalCode = '55';
21
+ this.logoUrl = null;
22
+ this.name = '';
23
+ this.paymentProvider = null;
24
+ this.phoneNumber = '';
25
+ this.sandbox = false;
26
+ this.tags = [];
27
+ this.updatedAt = new Date();
28
+ this.version = '';
29
+ if (data) {
30
+ for (var key in data) {
31
+ if (data.hasOwnProperty(key) && key in this) {
32
+ this[key] = data[key];
33
+ }
34
+ }
35
+ }
36
+ }
37
+ return PayioCompanyEntity;
38
+ }());
39
+ exports.PayioCompanyEntity = PayioCompanyEntity;
@@ -0,0 +1 @@
1
+ export { PayioCompanyEntity } from './company.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCompanyEntity = void 0;
4
+ var company_entity_1 = require("./company.entity");
5
+ Object.defineProperty(exports, "PayioCompanyEntity", { enumerable: true, get: function () { return company_entity_1.PayioCompanyEntity; } });
@@ -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,24 @@
1
+ import { EDocType } from '../../../general/enums/doc-type.enum';
2
+ import { IAddress } from '../../../general/interfaces/i-address';
3
+ import { IPaymentProvider } from '../../../general/interfaces/i-payment-provider';
4
+ export interface IPayioCompany {
5
+ active: boolean;
6
+ address: IAddress;
7
+ containerId: string;
8
+ createdAt: Date;
9
+ doc: string;
10
+ docType: EDocType;
11
+ email: string;
12
+ fullName: string;
13
+ id: string;
14
+ imageUrl: string | null;
15
+ internationalCode: string;
16
+ logoUrl: string | null;
17
+ name: string;
18
+ paymentProvider: IPaymentProvider | null;
19
+ phoneNumber: string;
20
+ sandbox: boolean;
21
+ tags: string[];
22
+ updatedAt: Date;
23
+ version: string;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IPayioCompany } from './i-company';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
+ export * from './company';
1
2
  export * from './payload';
2
3
  export * from './permissions';
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./company"), exports);
17
18
  __exportStar(require("./payload"), exports);
18
19
  __exportStar(require("./permissions"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.97",
3
+ "version": "1.6.0",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",