cecon-interfaces 1.2.95 → 1.2.96
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/index.mjs +2 -1
- package/dist/esm2022/sponsor/entities/index.mjs +2 -0
- package/dist/esm2022/sponsor/entities/sponsor.entity.mjs +26 -0
- package/dist/esm2022/sponsor/enums/index.mjs +2 -0
- package/dist/esm2022/sponsor/enums/sponsor-identifier.enum.mjs +6 -0
- package/dist/esm2022/sponsor/index.mjs +4 -0
- package/dist/esm2022/sponsor/interfaces/i-sponsor-fee.mjs +2 -0
- package/dist/esm2022/sponsor/interfaces/i-sponsor.mjs +2 -0
- package/dist/esm2022/sponsor/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +32 -1
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/package.json +1 -1
- package/dist/sponsor/entities/index.d.ts +1 -0
- package/dist/sponsor/entities/index.js +5 -0
- package/dist/sponsor/entities/sponsor.entity.d.ts +19 -0
- package/dist/sponsor/entities/sponsor.entity.js +30 -0
- package/dist/sponsor/enums/index.d.ts +1 -0
- package/dist/sponsor/enums/index.js +5 -0
- package/dist/sponsor/enums/sponsor-identifier.enum.d.ts +4 -0
- package/dist/sponsor/enums/sponsor-identifier.enum.js +8 -0
- package/dist/sponsor/index.d.ts +3 -0
- package/dist/sponsor/index.js +19 -0
- package/dist/sponsor/interfaces/i-sponsor-fee.d.ts +7 -0
- package/dist/sponsor/interfaces/i-sponsor-fee.js +2 -0
- package/dist/sponsor/interfaces/i-sponsor.d.ts +17 -0
- package/dist/sponsor/interfaces/i-sponsor.js +2 -0
- package/dist/sponsor/interfaces/index.d.ts +2 -0
- package/dist/sponsor/interfaces/index.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/package.json
CHANGED
@@ -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,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,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,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
|
+
}
|