cecon-interfaces 1.6.77 → 1.6.78
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/payio/admins/entities/admin.entity.mjs +16 -8
- package/dist/esm2022/payio/admins/enums/index.mjs +2 -2
- package/dist/esm2022/payio/admins/enums/role.enum.mjs +14 -0
- package/dist/esm2022/payio/admins/interfaces/i-admin.mjs +1 -1
- package/dist/esm2022/payio/distributors/entities/distributor.entity.mjs +3 -3
- package/dist/esm2022/payio/distributors/enums/index.mjs +2 -2
- package/dist/esm2022/payio/distributors/enums/status.enum.mjs +17 -17
- package/dist/esm2022/payio/distributors/interfaces/i-distributor.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +98 -89
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/payio/admins/entities/admin.entity.d.ts +13 -4
- package/dist/payio/admins/entities/admin.entity.js +18 -27
- package/dist/payio/admins/enums/index.d.ts +1 -1
- package/dist/payio/admins/enums/index.js +3 -3
- package/dist/payio/admins/enums/{profile.enum.d.ts → role.enum.d.ts} +1 -1
- package/dist/payio/admins/enums/role.enum.js +16 -0
- package/dist/payio/admins/interfaces/i-admin.d.ts +13 -4
- package/dist/payio/distributors/entities/distributor.entity.d.ts +2 -2
- package/dist/payio/distributors/entities/distributor.entity.js +1 -1
- package/dist/payio/distributors/enums/index.d.ts +1 -1
- package/dist/payio/distributors/enums/index.js +2 -2
- package/dist/payio/distributors/enums/status.enum.d.ts +1 -1
- package/dist/payio/distributors/enums/status.enum.js +17 -17
- package/dist/payio/distributors/interfaces/i-distributor.d.ts +2 -2
- package/package.json +1 -1
- package/dist/esm2022/payio/admins/enums/profile.enum.mjs +0 -14
- package/dist/payio/admins/enums/profile.enum.js +0 -16
package/dist/package.json
CHANGED
@@ -1,7 +1,16 @@
|
|
1
|
-
import {
|
2
|
-
import { EPayuioDistributorProfile } from '../enums/profile.enum';
|
1
|
+
import { EPayioAdminRole } from '../enums/role.enum';
|
3
2
|
import { IPayioAdmin } from '../interfaces/i-admin';
|
4
|
-
export declare class PayioAdminEntity
|
5
|
-
|
3
|
+
export declare class PayioAdminEntity implements IPayioAdmin {
|
4
|
+
accessCount: number | null;
|
5
|
+
active: boolean;
|
6
|
+
createdAt: Date;
|
7
|
+
id: string;
|
8
|
+
imageUrl: string | null;
|
9
|
+
lastAccessAt: Date | null;
|
10
|
+
name: string;
|
11
|
+
role: EPayioAdminRole;
|
12
|
+
tags: string[];
|
13
|
+
updatedAt: Date;
|
14
|
+
userId: string;
|
6
15
|
constructor(data?: Partial<PayioAdminEntity>);
|
7
16
|
}
|
@@ -1,40 +1,31 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
3
|
-
var extendStatics = function (d, b) {
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
-
return extendStatics(d, b);
|
8
|
-
};
|
9
|
-
return function (d, b) {
|
10
|
-
if (typeof b !== "function" && b !== null)
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
-
extendStatics(d, b);
|
13
|
-
function __() { this.constructor = d; }
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
-
};
|
16
|
-
})();
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
3
|
exports.PayioAdminEntity = void 0;
|
19
|
-
var
|
20
|
-
var
|
21
|
-
|
22
|
-
__extends(PayioAdminEntity, _super);
|
23
|
-
// #endregion Properties (1)
|
4
|
+
var role_enum_1 = require("../enums/role.enum");
|
5
|
+
var PayioAdminEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (11)
|
24
7
|
// #region Constructors (1)
|
25
8
|
function PayioAdminEntity(data) {
|
26
|
-
|
27
|
-
|
28
|
-
|
9
|
+
// #region Properties (11)
|
10
|
+
this.accessCount = null;
|
11
|
+
this.active = true;
|
12
|
+
this.createdAt = new Date();
|
13
|
+
this.id = '';
|
14
|
+
this.imageUrl = null;
|
15
|
+
this.lastAccessAt = null;
|
16
|
+
this.name = '';
|
17
|
+
this.role = role_enum_1.EPayioAdminRole.USER;
|
18
|
+
this.tags = [];
|
19
|
+
this.updatedAt = new Date();
|
20
|
+
this.userId = '';
|
29
21
|
if (data) {
|
30
22
|
for (var key in data) {
|
31
|
-
if (data.hasOwnProperty(key) && key in
|
32
|
-
|
23
|
+
if (data.hasOwnProperty(key) && key in this) {
|
24
|
+
this[key] = data[key];
|
33
25
|
}
|
34
26
|
}
|
35
27
|
}
|
36
|
-
return _this;
|
37
28
|
}
|
38
29
|
return PayioAdminEntity;
|
39
|
-
}(
|
30
|
+
}());
|
40
31
|
exports.PayioAdminEntity = PayioAdminEntity;
|
@@ -1 +1 @@
|
|
1
|
-
export {
|
1
|
+
export { EPayioAdminRole } from './role.enum';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
5
|
-
Object.defineProperty(exports, "
|
3
|
+
exports.EPayioAdminRole = void 0;
|
4
|
+
var role_enum_1 = require("./role.enum");
|
5
|
+
Object.defineProperty(exports, "EPayioAdminRole", { enumerable: true, get: function () { return role_enum_1.EPayioAdminRole; } });
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EPayioAdminRole = void 0;
|
4
|
+
var EPayioAdminRole;
|
5
|
+
(function (EPayioAdminRole) {
|
6
|
+
// #region Properties (1)
|
7
|
+
// Usuário ou sistema que gerou a chave
|
8
|
+
EPayioAdminRole["SYSTEM"] = "SYSTEM";
|
9
|
+
EPayioAdminRole["SUPPORT"] = "SUPPORT";
|
10
|
+
EPayioAdminRole["USER"] = "USER";
|
11
|
+
EPayioAdminRole["OWNER"] = "OWNER";
|
12
|
+
EPayioAdminRole["ADMIN"] = "ADMIN";
|
13
|
+
EPayioAdminRole["MANAGER"] = "MANAGER";
|
14
|
+
EPayioAdminRole["SALES"] = "SALES";
|
15
|
+
// #endregion Properties (1)
|
16
|
+
})(EPayioAdminRole || (exports.EPayioAdminRole = EPayioAdminRole = {}));
|
@@ -1,5 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import { EPayioAdminRole } from '../enums/role.enum';
|
2
|
+
export interface IPayioAdmin {
|
3
|
+
accessCount: number | null;
|
4
|
+
active: boolean;
|
5
|
+
createdAt: Date;
|
6
|
+
id: string;
|
7
|
+
imageUrl: string | null;
|
8
|
+
lastAccessAt: Date | null;
|
9
|
+
name: string;
|
10
|
+
role: EPayioAdminRole;
|
11
|
+
tags: string[];
|
12
|
+
updatedAt: Date;
|
13
|
+
userId: string;
|
5
14
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EDocType } from '../../../general';
|
2
2
|
import { IAction } from '../../../mobyo/mobyo-api/interfaces/action.interface';
|
3
3
|
import { PayioAddressEntity } from '../../company';
|
4
|
-
import {
|
4
|
+
import { EPayioDistributorStatus } from '../enums';
|
5
5
|
import { IPayioDistributor } from '../interfaces';
|
6
6
|
import { PayioDistributorResponsibleEntity } from './distributor-responsible.entity';
|
7
7
|
export declare class PayioDistributorEntity implements IPayioDistributor {
|
@@ -21,7 +21,7 @@ export declare class PayioDistributorEntity implements IPayioDistributor {
|
|
21
21
|
responsible: PayioDistributorResponsibleEntity;
|
22
22
|
sandbox: boolean;
|
23
23
|
slug: string;
|
24
|
-
status:
|
24
|
+
status: EPayioDistributorStatus;
|
25
25
|
tags: string[];
|
26
26
|
updatedAt: Date;
|
27
27
|
constructor(data?: Partial<PayioDistributorEntity>);
|
@@ -26,7 +26,7 @@ var PayioDistributorEntity = /** @class */ (function () {
|
|
26
26
|
this.responsible = new distributor_responsible_entity_1.PayioDistributorResponsibleEntity();
|
27
27
|
this.sandbox = false;
|
28
28
|
this.slug = '';
|
29
|
-
this.status = enums_1.
|
29
|
+
this.status = enums_1.EPayioDistributorStatus.PLACED;
|
30
30
|
this.tags = [];
|
31
31
|
this.updatedAt = new Date();
|
32
32
|
if (data) {
|
@@ -1 +1 @@
|
|
1
|
-
export {
|
1
|
+
export { EPayioDistributorStatus } from './status.enum';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.EPayioDistributorStatus = void 0;
|
4
4
|
var status_enum_1 = require("./status.enum");
|
5
|
-
Object.defineProperty(exports, "
|
5
|
+
Object.defineProperty(exports, "EPayioDistributorStatus", { enumerable: true, get: function () { return status_enum_1.EPayioDistributorStatus; } });
|
@@ -1,19 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
5
|
-
(function (
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
})(
|
3
|
+
exports.EPayioDistributorStatus = void 0;
|
4
|
+
var EPayioDistributorStatus;
|
5
|
+
(function (EPayioDistributorStatus) {
|
6
|
+
EPayioDistributorStatus["BLOCKED"] = "BLOCKED";
|
7
|
+
EPayioDistributorStatus["ACTIVE"] = "ACTIVE";
|
8
|
+
EPayioDistributorStatus["PLACED"] = "PLACED";
|
9
|
+
EPayioDistributorStatus["INACTIVE"] = "INACTIVE";
|
10
|
+
EPayioDistributorStatus["DELETED"] = "DELETED";
|
11
|
+
EPayioDistributorStatus["PENDING"] = "PENDING";
|
12
|
+
EPayioDistributorStatus["SUSPENDED"] = "SUSPENDED";
|
13
|
+
EPayioDistributorStatus["REJECTED"] = "REJECTED";
|
14
|
+
EPayioDistributorStatus["APPROVED"] = "APPROVED";
|
15
|
+
EPayioDistributorStatus["PARTIALLY_APPROVED"] = "PARTIALLY_APPROVED";
|
16
|
+
EPayioDistributorStatus["REJECTED_BY_ADMIN"] = "REJECTED_BY_ADMIN";
|
17
|
+
EPayioDistributorStatus["REJECTED_BY_SYSTEM"] = "REJECTED_BY_SYSTEM";
|
18
|
+
EPayioDistributorStatus["PAUSED"] = "PAUSED";
|
19
|
+
})(EPayioDistributorStatus || (exports.EPayioDistributorStatus = EPayioDistributorStatus = {}));
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EDocType } from '../../../general/enums/doc-type.enum';
|
2
2
|
import { IAction } from '../../../mobyo/mobyo-api/interfaces/action.interface';
|
3
3
|
import { IPayioAddress } from '../../company';
|
4
|
-
import {
|
4
|
+
import { EPayioDistributorStatus } from '../enums';
|
5
5
|
import { IPayioDistributorResponsible } from './i-distributor-responsible';
|
6
6
|
export interface IPayioDistributor {
|
7
7
|
actions: IAction[];
|
@@ -20,7 +20,7 @@ export interface IPayioDistributor {
|
|
20
20
|
responsible: IPayioDistributorResponsible;
|
21
21
|
sandbox: boolean;
|
22
22
|
slug: string;
|
23
|
-
status:
|
23
|
+
status: EPayioDistributorStatus;
|
24
24
|
tags: string[];
|
25
25
|
updatedAt: Date;
|
26
26
|
}
|
package/package.json
CHANGED
@@ -1,14 +0,0 @@
|
|
1
|
-
export var EPayuioDistributorProfile;
|
2
|
-
(function (EPayuioDistributorProfile) {
|
3
|
-
// #region Properties (1)
|
4
|
-
// Usuário ou sistema que gerou a chave
|
5
|
-
EPayuioDistributorProfile["SYSTEM"] = "SYSTEM";
|
6
|
-
EPayuioDistributorProfile["SUPPORT"] = "SUPPORT";
|
7
|
-
EPayuioDistributorProfile["USER"] = "USER";
|
8
|
-
EPayuioDistributorProfile["OWNER"] = "OWNER";
|
9
|
-
EPayuioDistributorProfile["ADMIN"] = "ADMIN";
|
10
|
-
EPayuioDistributorProfile["MANAGER"] = "MANAGER";
|
11
|
-
EPayuioDistributorProfile["SALES"] = "SALES";
|
12
|
-
// #endregion Properties (1)
|
13
|
-
})(EPayuioDistributorProfile || (EPayuioDistributorProfile = {}));
|
14
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZmlsZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3BheWlvL2FkbWlucy9lbnVtcy9wcm9maWxlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVkseUJBWVg7QUFaRCxXQUFZLHlCQUF5QjtJQUNuQyx5QkFBeUI7SUFDekIsdUNBQXVDO0lBQ3ZDLDhDQUFpQixDQUFBO0lBQ2pCLGdEQUFtQixDQUFBO0lBQ25CLDBDQUFhLENBQUE7SUFDYiw0Q0FBZSxDQUFBO0lBQ2YsNENBQWUsQ0FBQTtJQUNmLGdEQUFtQixDQUFBO0lBQ25CLDRDQUFlLENBQUE7SUFFZiw0QkFBNEI7QUFDOUIsQ0FBQyxFQVpXLHlCQUF5QixLQUF6Qix5QkFBeUIsUUFZcEMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBFUGF5dWlvRGlzdHJpYnV0b3JQcm9maWxlIHtcclxuICAvLyAjcmVnaW9uIFByb3BlcnRpZXMgKDEpXHJcbiAgLy8gVXN1w6FyaW8gb3Ugc2lzdGVtYSBxdWUgZ2Vyb3UgYSBjaGF2ZVxyXG4gIFNZU1RFTSA9ICdTWVNURU0nLFxyXG4gIFNVUFBPUlQgPSAnU1VQUE9SVCcsXHJcbiAgVVNFUiA9ICdVU0VSJyxcclxuICBPV05FUiA9ICdPV05FUicsXHJcbiAgQURNSU4gPSAnQURNSU4nLFxyXG4gIE1BTkFHRVIgPSAnTUFOQUdFUicsXHJcbiAgU0FMRVMgPSAnU0FMRVMnLFxyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDEpXHJcbn1cclxuIl19
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EPayuioDistributorProfile = void 0;
|
4
|
-
var EPayuioDistributorProfile;
|
5
|
-
(function (EPayuioDistributorProfile) {
|
6
|
-
// #region Properties (1)
|
7
|
-
// Usuário ou sistema que gerou a chave
|
8
|
-
EPayuioDistributorProfile["SYSTEM"] = "SYSTEM";
|
9
|
-
EPayuioDistributorProfile["SUPPORT"] = "SUPPORT";
|
10
|
-
EPayuioDistributorProfile["USER"] = "USER";
|
11
|
-
EPayuioDistributorProfile["OWNER"] = "OWNER";
|
12
|
-
EPayuioDistributorProfile["ADMIN"] = "ADMIN";
|
13
|
-
EPayuioDistributorProfile["MANAGER"] = "MANAGER";
|
14
|
-
EPayuioDistributorProfile["SALES"] = "SALES";
|
15
|
-
// #endregion Properties (1)
|
16
|
-
})(EPayuioDistributorProfile || (exports.EPayuioDistributorProfile = EPayuioDistributorProfile = {}));
|