cecon-interfaces 1.5.42 → 1.5.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/dist/esm2022/index.mjs +2 -1
  2. package/dist/esm2022/integrators/entities/index.mjs +2 -0
  3. package/dist/esm2022/integrators/entities/integrator.entity.mjs +30 -0
  4. package/dist/esm2022/integrators/index.mjs +3 -0
  5. package/dist/esm2022/integrators/interfaces/i-integrator.mjs +2 -0
  6. package/dist/esm2022/integrators/interfaces/index.mjs +2 -0
  7. package/dist/esm2022/partner/entities/partner.entity.mjs +1 -1
  8. package/dist/esm2022/partner/interfaces/i-partner.mjs +1 -1
  9. package/dist/esm2022/requested-items/entities/requested-items.entity.mjs +3 -1
  10. package/dist/esm2022/requested-items/interfaces/i-requested-items.mjs +1 -1
  11. package/dist/fesm2022/cecon-interfaces.mjs +31 -1
  12. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.js +1 -0
  15. package/dist/integrators/entities/index.d.ts +1 -0
  16. package/dist/integrators/entities/index.js +5 -0
  17. package/dist/integrators/entities/integrator.entity.d.ts +19 -0
  18. package/dist/integrators/entities/integrator.entity.js +34 -0
  19. package/dist/integrators/index.d.ts +2 -0
  20. package/dist/integrators/index.js +18 -0
  21. package/dist/integrators/interfaces/i-integrator.d.ts +17 -0
  22. package/dist/integrators/interfaces/i-integrator.js +2 -0
  23. package/dist/integrators/interfaces/index.d.ts +1 -0
  24. package/dist/integrators/interfaces/index.js +2 -0
  25. package/dist/package.json +1 -1
  26. package/dist/partner/entities/partner.entity.d.ts +1 -1
  27. package/dist/partner/interfaces/i-partner.d.ts +2 -2
  28. package/dist/requested-items/entities/requested-items.entity.d.ts +2 -0
  29. package/dist/requested-items/entities/requested-items.entity.js +2 -0
  30. package/dist/requested-items/interfaces/i-requested-items.d.ts +2 -0
  31. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ export * from './feature';
18
18
  export * from './general';
19
19
  export * from './global-settings';
20
20
  export * from './installation';
21
+ export * from './integrators';
21
22
  export * from './invite';
22
23
  export * from './invoice';
23
24
  export * from './iugu';
package/dist/index.js CHANGED
@@ -34,6 +34,7 @@ __exportStar(require("./feature"), exports);
34
34
  __exportStar(require("./general"), exports);
35
35
  __exportStar(require("./global-settings"), exports);
36
36
  __exportStar(require("./installation"), exports);
37
+ __exportStar(require("./integrators"), exports);
37
38
  __exportStar(require("./invite"), exports);
38
39
  __exportStar(require("./invoice"), exports);
39
40
  __exportStar(require("./iugu"), exports);
@@ -0,0 +1 @@
1
+ export { IntegratorEntity } from './integrator.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IntegratorEntity = void 0;
4
+ var integrator_entity_1 = require("./integrator.entity");
5
+ Object.defineProperty(exports, "IntegratorEntity", { enumerable: true, get: function () { return integrator_entity_1.IntegratorEntity; } });
@@ -0,0 +1,19 @@
1
+ import { AddressEntity } from '../../general';
2
+ import { EDocType } from '../../general/enums';
3
+ import { IIntegrator } from '../interfaces';
4
+ export declare class IntegratorEntity implements IIntegrator {
5
+ active: boolean;
6
+ address: AddressEntity;
7
+ doc: string;
8
+ docType: EDocType;
9
+ email: string;
10
+ id: string;
11
+ imageUrl: string | null;
12
+ internationalCode: string;
13
+ name: string;
14
+ phoneNumber: string;
15
+ sandbox: boolean;
16
+ tags: string[];
17
+ updatedAt: Date;
18
+ constructor(data?: Partial<IntegratorEntity>);
19
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IntegratorEntity = void 0;
4
+ var general_1 = require("../../general");
5
+ var enums_1 = require("../../general/enums");
6
+ var IntegratorEntity = /** @class */ (function () {
7
+ // #endregion Properties (13)
8
+ // #region Constructors (1)
9
+ function IntegratorEntity(data) {
10
+ // #region Properties (13)
11
+ this.active = true;
12
+ this.address = new general_1.AddressEntity();
13
+ this.doc = '';
14
+ this.docType = enums_1.EDocType.CNPJ;
15
+ this.email = '';
16
+ this.id = '';
17
+ this.imageUrl = null;
18
+ this.internationalCode = '';
19
+ this.name = '';
20
+ this.phoneNumber = '';
21
+ this.sandbox = false;
22
+ this.tags = [];
23
+ this.updatedAt = new Date();
24
+ if (data) {
25
+ for (var key in data) {
26
+ if (data.hasOwnProperty(key) && key in this) {
27
+ this[key] = data[key];
28
+ }
29
+ }
30
+ }
31
+ }
32
+ return IntegratorEntity;
33
+ }());
34
+ exports.IntegratorEntity = IntegratorEntity;
@@ -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,17 @@
1
+ import { IAddress } from '../../general';
2
+ import { EDocType } from '../../general/enums';
3
+ export interface IIntegrator {
4
+ active: boolean;
5
+ address: IAddress;
6
+ doc: string;
7
+ docType: EDocType;
8
+ email: string;
9
+ id: string;
10
+ imageUrl: string | null;
11
+ internationalCode: string;
12
+ name: string;
13
+ phoneNumber: string;
14
+ sandbox: boolean;
15
+ tags: string[];
16
+ updatedAt: Date;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IIntegrator } from './i-integrator';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.42",
3
+ "version": "1.5.44",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@ export declare class PartnerEntity implements IPartner {
9
9
  email: string;
10
10
  fullName: string;
11
11
  id: string;
12
- imageUrl?: string;
12
+ imageUrl: string | null;
13
13
  internationalCode: string;
14
14
  level: number;
15
15
  logoUrl?: string;
@@ -6,11 +6,11 @@ export interface IPartner {
6
6
  doc: string;
7
7
  docType: EDocType;
8
8
  email: string;
9
- level: number;
10
9
  fullName: string;
11
10
  id: string;
12
- imageUrl?: string;
11
+ imageUrl: string | null;
13
12
  internationalCode: string;
13
+ level: number;
14
14
  logoUrl?: string;
15
15
  name: string;
16
16
  paymentProvider: IPaymentProvider;
@@ -11,5 +11,7 @@ export declare class RequestedItemsEntity implements IRequestedItems {
11
11
  token: string;
12
12
  updatedAt: Date;
13
13
  isPaid: boolean;
14
+ referenceToken: string | null;
15
+ resendCount: number;
14
16
  constructor(data?: Partial<RequestedItemsEntity>);
15
17
  }
@@ -16,6 +16,8 @@ var RequestedItemsEntity = /** @class */ (function () {
16
16
  this.token = '';
17
17
  this.updatedAt = new Date();
18
18
  this.isPaid = false;
19
+ this.referenceToken = null;
20
+ this.resendCount = 0;
19
21
  if (data) {
20
22
  for (var key in data) {
21
23
  if (data.hasOwnProperty(key) && key in this) {
@@ -10,4 +10,6 @@ export interface IRequestedItems {
10
10
  isPaid: boolean;
11
11
  token: string;
12
12
  data: IRequestedItemData[];
13
+ referenceToken: string | null;
14
+ resendCount: number;
13
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.42",
3
+ "version": "1.5.44",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",