cecon-interfaces 1.2.94 → 1.2.96

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/sponsor/entities/index.mjs +2 -0
  3. package/dist/esm2022/sponsor/entities/sponsor.entity.mjs +26 -0
  4. package/dist/esm2022/sponsor/enums/index.mjs +2 -0
  5. package/dist/esm2022/sponsor/enums/sponsor-identifier.enum.mjs +6 -0
  6. package/dist/esm2022/sponsor/index.mjs +4 -0
  7. package/dist/esm2022/sponsor/interfaces/i-sponsor-fee.mjs +2 -0
  8. package/dist/esm2022/sponsor/interfaces/i-sponsor.mjs +2 -0
  9. package/dist/esm2022/sponsor/interfaces/index.mjs +2 -0
  10. package/dist/fesm2022/cecon-interfaces.mjs +32 -1
  11. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +1 -0
  14. package/dist/package.json +1 -1
  15. package/dist/sponsor/entities/index.d.ts +1 -0
  16. package/dist/sponsor/entities/index.js +5 -0
  17. package/dist/sponsor/entities/sponsor.entity.d.ts +19 -0
  18. package/dist/sponsor/entities/sponsor.entity.js +30 -0
  19. package/dist/sponsor/enums/index.d.ts +1 -0
  20. package/dist/sponsor/enums/index.js +5 -0
  21. package/dist/sponsor/enums/sponsor-identifier.enum.d.ts +4 -0
  22. package/dist/sponsor/enums/sponsor-identifier.enum.js +8 -0
  23. package/dist/sponsor/index.d.ts +3 -0
  24. package/dist/sponsor/index.js +19 -0
  25. package/dist/sponsor/interfaces/i-sponsor-fee.d.ts +7 -0
  26. package/dist/sponsor/interfaces/i-sponsor-fee.js +2 -0
  27. package/dist/sponsor/interfaces/i-sponsor.d.ts +17 -0
  28. package/dist/sponsor/interfaces/i-sponsor.js +2 -0
  29. package/dist/sponsor/interfaces/index.d.ts +2 -0
  30. package/dist/sponsor/interfaces/index.js +2 -0
  31. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -49,3 +49,4 @@ export * from './voucher';
49
49
  export * from './wa-server';
50
50
  export * from './withdraw';
51
51
  export * from './logss';
52
+ export * from './sponsor';
package/dist/index.js CHANGED
@@ -66,3 +66,4 @@ __exportStar(require("./voucher"), exports);
66
66
  __exportStar(require("./wa-server"), exports);
67
67
  __exportStar(require("./withdraw"), exports);
68
68
  __exportStar(require("./logss"), exports);
69
+ __exportStar(require("./sponsor"), exports);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.94",
3
+ "version": "1.2.96",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1 @@
1
+ export { SponsorEntity } from './sponsor.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SponsorEntity = void 0;
4
+ var sponsor_entity_1 = require("./sponsor.entity");
5
+ Object.defineProperty(exports, "SponsorEntity", { enumerable: true, get: function () { return sponsor_entity_1.SponsorEntity; } });
@@ -0,0 +1,19 @@
1
+ import { EDesenfilaFrom, EDocType } from '../../general';
2
+ import { ISponsor } from '../interfaces/i-sponsor';
3
+ import { ISponsorFee } from '../interfaces/i-sponsor-fee';
4
+ export declare class SponsorEntity implements ISponsor {
5
+ id: string;
6
+ name: string;
7
+ doc: string;
8
+ createdAt: Date;
9
+ fees: ISponsorFee[];
10
+ docType: EDocType;
11
+ desenfilaRefId: string | null;
12
+ natiRefId: string | null;
13
+ mobyoRefId: string | null;
14
+ from: EDesenfilaFrom;
15
+ internationalCode: string;
16
+ phoneNumer: string;
17
+ email: string;
18
+ constructor(data?: Partial<SponsorEntity>);
19
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SponsorEntity = void 0;
4
+ var general_1 = require("../../general");
5
+ var SponsorEntity = /** @class */ (function () {
6
+ function SponsorEntity(data) {
7
+ this.id = '';
8
+ this.name = '';
9
+ this.doc = '';
10
+ this.createdAt = new Date();
11
+ this.fees = [];
12
+ this.docType = general_1.EDocType.CNPJ;
13
+ this.desenfilaRefId = null;
14
+ this.natiRefId = null;
15
+ this.mobyoRefId = null;
16
+ this.from = general_1.EDesenfilaFrom.DEFAULT;
17
+ this.internationalCode = '';
18
+ this.phoneNumer = '';
19
+ this.email = '';
20
+ if (data) {
21
+ for (var key in data) {
22
+ if (data.hasOwnProperty(key) && key in this) {
23
+ this[key] = data[key];
24
+ }
25
+ }
26
+ }
27
+ }
28
+ return SponsorEntity;
29
+ }());
30
+ exports.SponsorEntity = SponsorEntity;
@@ -0,0 +1 @@
1
+ export { ESponsorIdentifier } from './sponsor-identifier.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ESponsorIdentifier = void 0;
4
+ var sponsor_identifier_enum_1 = require("./sponsor-identifier.enum");
5
+ Object.defineProperty(exports, "ESponsorIdentifier", { enumerable: true, get: function () { return sponsor_identifier_enum_1.ESponsorIdentifier; } });
@@ -0,0 +1,4 @@
1
+ export declare enum ESponsorIdentifier {
2
+ DEFAULT_PERCENT = "DEFAULT_PERCENT",
3
+ DEFAULT_FIXED_AMOUNT = "DEFAULT_FIXED_AMOUNT"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ESponsorIdentifier = void 0;
4
+ var ESponsorIdentifier;
5
+ (function (ESponsorIdentifier) {
6
+ ESponsorIdentifier["DEFAULT_PERCENT"] = "DEFAULT_PERCENT";
7
+ ESponsorIdentifier["DEFAULT_FIXED_AMOUNT"] = "DEFAULT_FIXED_AMOUNT";
8
+ })(ESponsorIdentifier || (exports.ESponsorIdentifier = ESponsorIdentifier = {}));
@@ -0,0 +1,3 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
3
+ export * from './enums';
@@ -0,0 +1,19 @@
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);
19
+ __exportStar(require("./enums"), exports);
@@ -0,0 +1,7 @@
1
+ import { EDiscountType } from '../../general';
2
+ import { ESponsorIdentifier } from '../enums/sponsor-identifier.enum';
3
+ export interface ISponsorFee {
4
+ type: EDiscountType;
5
+ amount: number;
6
+ method: ESponsorIdentifier;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { EDesenfilaFrom, EDocType } from '../../general';
2
+ import { ISponsorFee } from './i-sponsor-fee';
3
+ export interface ISponsor {
4
+ id: string;
5
+ fees: ISponsorFee[];
6
+ createdAt: Date;
7
+ name: string;
8
+ doc: string;
9
+ docType: EDocType;
10
+ from: EDesenfilaFrom;
11
+ desenfilaRefId: string | null;
12
+ internationalCode: string;
13
+ phoneNumer: string;
14
+ email: string;
15
+ natiRefId: string | null;
16
+ mobyoRefId: string | null;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ISponsor } from './i-sponsor';
2
+ export { ISponsorFee } from './i-sponsor-fee';
@@ -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.2.94",
3
+ "version": "1.2.96",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",