cecon-interfaces 1.5.78 → 1.5.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm2022/envelope/interfaces/factory-envelope-array-pag.functions.mjs +1 -1
- package/dist/esm2022/envelope/interfaces/factory-envelope-array.functions.mjs +1 -1
- package/dist/esm2022/envelope/interfaces/factory-envelope.functions.mjs +1 -1
- package/dist/esm2022/general/enums/index.mjs +3 -1
- package/dist/esm2022/general/enums/jwt-status.enum.mjs +7 -0
- package/dist/esm2022/general/enums/role.enum.mjs +15 -0
- package/dist/esm2022/index.mjs +2 -1
- package/dist/esm2022/member-access/entities/member-access.entity.mjs +5 -5
- package/dist/esm2022/member-access/interfaces/i-member-access.mjs +1 -1
- package/dist/esm2022/payio/index.mjs +2 -0
- package/dist/esm2022/payio/payload/entities/index.mjs +6 -0
- package/dist/esm2022/payio/payload/entities/payload-app.entity.mjs +18 -0
- package/dist/esm2022/payio/payload/entities/payload-device.entity.mjs +18 -0
- package/dist/esm2022/payio/payload/entities/payload-subscription.entity.mjs +19 -0
- package/dist/esm2022/payio/payload/entities/payload-user.entity.mjs +20 -0
- package/dist/esm2022/payio/payload/entities/payload.entity.mjs +26 -0
- package/dist/esm2022/payio/payload/index.mjs +3 -0
- package/dist/esm2022/payio/payload/interfaces/i-payload-app.mjs +2 -0
- package/dist/esm2022/payio/payload/interfaces/i-payload-device.mjs +2 -0
- package/dist/esm2022/payio/payload/interfaces/i-payload-subscription.mjs +2 -0
- package/dist/esm2022/payio/payload/interfaces/i-payload-user.mjs +2 -0
- package/dist/esm2022/payio/payload/interfaces/i-payload.mjs +2 -0
- package/dist/esm2022/payio/payload/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +127 -4
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/enums/index.d.ts +2 -0
- package/dist/general/enums/index.js +5 -1
- package/dist/general/enums/jwt-status.enum.d.ts +5 -0
- package/dist/general/enums/jwt-status.enum.js +9 -0
- package/dist/general/enums/role.enum.d.ts +13 -0
- package/dist/general/enums/role.enum.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/member-access/entities/member-access.entity.d.ts +3 -2
- package/dist/member-access/entities/member-access.entity.js +4 -4
- package/dist/member-access/interfaces/i-member-access.d.ts +3 -2
- package/dist/package.json +1 -1
- package/dist/payio/index.d.ts +1 -0
- package/dist/payio/index.js +17 -0
- package/dist/payio/payload/entities/index.d.ts +5 -0
- package/dist/payio/payload/entities/index.js +13 -0
- package/dist/payio/payload/entities/payload-app.entity.d.ts +7 -0
- package/dist/payio/payload/entities/payload-app.entity.js +22 -0
- package/dist/payio/payload/entities/payload-device.entity.d.ts +7 -0
- package/dist/payio/payload/entities/payload-device.entity.js +22 -0
- package/dist/payio/payload/entities/payload-subscription.entity.d.ts +8 -0
- package/dist/payio/payload/entities/payload-subscription.entity.js +23 -0
- package/dist/payio/payload/entities/payload-user.entity.d.ts +9 -0
- package/dist/payio/payload/entities/payload-user.entity.js +24 -0
- package/dist/payio/payload/entities/payload.entity.d.ts +19 -0
- package/dist/payio/payload/entities/payload.entity.js +30 -0
- package/dist/payio/payload/index.d.ts +2 -0
- package/dist/payio/payload/index.js +18 -0
- package/dist/payio/payload/interfaces/i-payload-app.d.ts +5 -0
- package/dist/payio/payload/interfaces/i-payload-app.js +2 -0
- package/dist/payio/payload/interfaces/i-payload-device.d.ts +5 -0
- package/dist/payio/payload/interfaces/i-payload-device.js +2 -0
- package/dist/payio/payload/interfaces/i-payload-subscription.d.ts +6 -0
- package/dist/payio/payload/interfaces/i-payload-subscription.js +2 -0
- package/dist/payio/payload/interfaces/i-payload-user.d.ts +7 -0
- package/dist/payio/payload/interfaces/i-payload-user.js +2 -0
- package/dist/payio/payload/interfaces/i-payload.d.ts +29 -0
- package/dist/payio/payload/interfaces/i-payload.js +2 -0
- package/dist/payio/payload/interfaces/index.d.ts +5 -0
- package/dist/payio/payload/interfaces/index.js +2 -0
- package/package.json +1 -1
@@ -7,6 +7,7 @@ export { EDocType } from './doc-type.enum';
|
|
7
7
|
export { EDiscountType } from './e-discount-type.enum';
|
8
8
|
export { EFiscalDocModelCode } from './fiscal-doc-model-code.enum';
|
9
9
|
export { EIntervalType } from './interval-type.enum';
|
10
|
+
export { EJwtStatus } from './jwt-status.enum';
|
10
11
|
export { ELeadOrigin } from './lead-origin.enum';
|
11
12
|
export { EOperator } from './operators.enum';
|
12
13
|
export { EOs } from './os.enum';
|
@@ -18,4 +19,5 @@ export { ELegalEntiy } from './person-type.enum';
|
|
18
19
|
export { EPlatform } from './platform.enum';
|
19
20
|
export { EPaymentProvider } from './providers.enum';
|
20
21
|
export { EPubSub } from './pubsub.enum';
|
22
|
+
export { ERole } from './role.enum';
|
21
23
|
export { ESponsorshipValues } from './sponsorship-values.enum';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ESponsorshipValues = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EDesenfilaFrom = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
|
3
|
+
exports.ESponsorshipValues = exports.ERole = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EJwtStatus = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EDesenfilaFrom = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
|
4
4
|
var skill_enum_1 = require("../../fcm-token-message/enums/skill.enum");
|
5
5
|
Object.defineProperty(exports, "EFcmSkill", { enumerable: true, get: function () { return skill_enum_1.EFcmSkill; } });
|
6
6
|
var bank_slip_status_enum_1 = require("./bank-slip-status.enum");
|
@@ -19,6 +19,8 @@ var fiscal_doc_model_code_enum_1 = require("./fiscal-doc-model-code.enum");
|
|
19
19
|
Object.defineProperty(exports, "EFiscalDocModelCode", { enumerable: true, get: function () { return fiscal_doc_model_code_enum_1.EFiscalDocModelCode; } });
|
20
20
|
var interval_type_enum_1 = require("./interval-type.enum");
|
21
21
|
Object.defineProperty(exports, "EIntervalType", { enumerable: true, get: function () { return interval_type_enum_1.EIntervalType; } });
|
22
|
+
var jwt_status_enum_1 = require("./jwt-status.enum");
|
23
|
+
Object.defineProperty(exports, "EJwtStatus", { enumerable: true, get: function () { return jwt_status_enum_1.EJwtStatus; } });
|
22
24
|
var lead_origin_enum_1 = require("./lead-origin.enum");
|
23
25
|
Object.defineProperty(exports, "ELeadOrigin", { enumerable: true, get: function () { return lead_origin_enum_1.ELeadOrigin; } });
|
24
26
|
var operators_enum_1 = require("./operators.enum");
|
@@ -41,5 +43,7 @@ var providers_enum_1 = require("./providers.enum");
|
|
41
43
|
Object.defineProperty(exports, "EPaymentProvider", { enumerable: true, get: function () { return providers_enum_1.EPaymentProvider; } });
|
42
44
|
var pubsub_enum_1 = require("./pubsub.enum");
|
43
45
|
Object.defineProperty(exports, "EPubSub", { enumerable: true, get: function () { return pubsub_enum_1.EPubSub; } });
|
46
|
+
var role_enum_1 = require("./role.enum");
|
47
|
+
Object.defineProperty(exports, "ERole", { enumerable: true, get: function () { return role_enum_1.ERole; } });
|
44
48
|
var sponsorship_values_enum_1 = require("./sponsorship-values.enum");
|
45
49
|
Object.defineProperty(exports, "ESponsorshipValues", { enumerable: true, get: function () { return sponsorship_values_enum_1.ESponsorshipValues; } });
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EJwtStatus = void 0;
|
4
|
+
var EJwtStatus;
|
5
|
+
(function (EJwtStatus) {
|
6
|
+
EJwtStatus["ACTIVE"] = "ACTIVE";
|
7
|
+
EJwtStatus["INACTIVE"] = "INACTIVE";
|
8
|
+
EJwtStatus["EXPIRED"] = "EXPIRED";
|
9
|
+
})(EJwtStatus || (exports.EJwtStatus = EJwtStatus = {}));
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare enum ERole {
|
2
|
+
ADMIN = "ADMIN",
|
3
|
+
USER = "USER",
|
4
|
+
OWNER = "OWNER",
|
5
|
+
SUPPORT = "SUPPORT",
|
6
|
+
PARTNER = "PARTNER",
|
7
|
+
FINANCE = "FINANCE",
|
8
|
+
MARKETING = "MARKETING",
|
9
|
+
SALES = "SALES",
|
10
|
+
MENAGER = "MENAGER",
|
11
|
+
DEVELOPER = "DEVELOPER",
|
12
|
+
GUEST = "GUEST"
|
13
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ERole = void 0;
|
4
|
+
var ERole;
|
5
|
+
(function (ERole) {
|
6
|
+
ERole["ADMIN"] = "ADMIN";
|
7
|
+
ERole["USER"] = "USER";
|
8
|
+
ERole["OWNER"] = "OWNER";
|
9
|
+
ERole["SUPPORT"] = "SUPPORT";
|
10
|
+
ERole["PARTNER"] = "PARTNER";
|
11
|
+
ERole["FINANCE"] = "FINANCE";
|
12
|
+
ERole["MARKETING"] = "MARKETING";
|
13
|
+
ERole["SALES"] = "SALES";
|
14
|
+
ERole["MENAGER"] = "MENAGER";
|
15
|
+
ERole["DEVELOPER"] = "DEVELOPER";
|
16
|
+
ERole["GUEST"] = "GUEST";
|
17
|
+
})(ERole || (exports.ERole = ERole = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -54,6 +54,7 @@ __exportStar(require("./nati-v1"), exports);
|
|
54
54
|
__exportStar(require("./notification"), exports);
|
55
55
|
__exportStar(require("./order"), exports);
|
56
56
|
__exportStar(require("./partner"), exports);
|
57
|
+
__exportStar(require("./payio"), exports);
|
57
58
|
__exportStar(require("./plan"), exports);
|
58
59
|
__exportStar(require("./product-company"), exports);
|
59
60
|
__exportStar(require("./product-container"), exports);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ERole } from '../../general';
|
2
2
|
import { IMemberAccess } from '../interfaces/i-member-access';
|
3
3
|
export declare class MemberAccessEntity implements IMemberAccess {
|
4
4
|
accessCount: number | null;
|
@@ -11,7 +11,8 @@ export declare class MemberAccessEntity implements IMemberAccess {
|
|
11
11
|
imageUrl: string | null;
|
12
12
|
lastAccessAt: Date | null;
|
13
13
|
name: string;
|
14
|
-
|
14
|
+
permissions: string[];
|
15
|
+
roles: ERole[];
|
15
16
|
tags: string[];
|
16
17
|
updated: Date;
|
17
18
|
userId: string;
|
@@ -1,12 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.MemberAccessEntity = void 0;
|
4
|
-
var enums_1 = require("../../member/enums");
|
5
4
|
var MemberAccessEntity = /** @class */ (function () {
|
6
|
-
// #endregion Properties (
|
5
|
+
// #endregion Properties (15)
|
7
6
|
// #region Constructors (1)
|
8
7
|
function MemberAccessEntity(data) {
|
9
|
-
// #region Properties (
|
8
|
+
// #region Properties (15)
|
10
9
|
this.accessCount = null;
|
11
10
|
this.active = true;
|
12
11
|
this.companyId = '';
|
@@ -17,7 +16,8 @@ var MemberAccessEntity = /** @class */ (function () {
|
|
17
16
|
this.imageUrl = null;
|
18
17
|
this.lastAccessAt = null;
|
19
18
|
this.name = '';
|
20
|
-
this.
|
19
|
+
this.permissions = [];
|
20
|
+
this.roles = [];
|
21
21
|
this.tags = [];
|
22
22
|
this.updated = new Date();
|
23
23
|
this.userId = '';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ERole } from '../../general';
|
2
2
|
export interface IMemberAccess {
|
3
3
|
accessCount: number | null;
|
4
4
|
active: boolean;
|
@@ -10,7 +10,8 @@ export interface IMemberAccess {
|
|
10
10
|
imageUrl: string | null;
|
11
11
|
lastAccessAt: Date | null;
|
12
12
|
name: string;
|
13
|
-
|
13
|
+
roles: ERole[];
|
14
|
+
permissions: string[];
|
14
15
|
tags: string[];
|
15
16
|
updated: Date;
|
16
17
|
userId: string;
|
package/dist/package.json
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './payload';
|
@@ -0,0 +1,17 @@
|
|
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("./payload"), exports);
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export { PayioJwtPayloadAppEntity } from './payload-app.entity';
|
2
|
+
export { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
|
3
|
+
export { PayioJwtPayloadSubscriptionEntity } from './payload-subscription.entity';
|
4
|
+
export { PayioJwtPayloadUserEntity } from './payload-user.entity';
|
5
|
+
export { PayioJwtPayloadEntity } from './payload.entity';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioJwtPayloadEntity = exports.PayioJwtPayloadUserEntity = exports.PayioJwtPayloadSubscriptionEntity = exports.PayioJwtPayloadDeviceEntity = exports.PayioJwtPayloadAppEntity = void 0;
|
4
|
+
var payload_app_entity_1 = require("./payload-app.entity");
|
5
|
+
Object.defineProperty(exports, "PayioJwtPayloadAppEntity", { enumerable: true, get: function () { return payload_app_entity_1.PayioJwtPayloadAppEntity; } });
|
6
|
+
var payload_device_entity_1 = require("./payload-device.entity");
|
7
|
+
Object.defineProperty(exports, "PayioJwtPayloadDeviceEntity", { enumerable: true, get: function () { return payload_device_entity_1.PayioJwtPayloadDeviceEntity; } });
|
8
|
+
var payload_subscription_entity_1 = require("./payload-subscription.entity");
|
9
|
+
Object.defineProperty(exports, "PayioJwtPayloadSubscriptionEntity", { enumerable: true, get: function () { return payload_subscription_entity_1.PayioJwtPayloadSubscriptionEntity; } });
|
10
|
+
var payload_user_entity_1 = require("./payload-user.entity");
|
11
|
+
Object.defineProperty(exports, "PayioJwtPayloadUserEntity", { enumerable: true, get: function () { return payload_user_entity_1.PayioJwtPayloadUserEntity; } });
|
12
|
+
var payload_entity_1 = require("./payload.entity");
|
13
|
+
Object.defineProperty(exports, "PayioJwtPayloadEntity", { enumerable: true, get: function () { return payload_entity_1.PayioJwtPayloadEntity; } });
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioJwtPayloadAppEntity = void 0;
|
4
|
+
var PayioJwtPayloadAppEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (3)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function PayioJwtPayloadAppEntity(data) {
|
8
|
+
// #region Properties (3)
|
9
|
+
this.id = '';
|
10
|
+
this.name = '';
|
11
|
+
this.version = null;
|
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 PayioJwtPayloadAppEntity;
|
21
|
+
}());
|
22
|
+
exports.PayioJwtPayloadAppEntity = PayioJwtPayloadAppEntity;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { IPayioJwtPayloadDevice } from '../interfaces/i-payload-device';
|
2
|
+
export declare class PayioJwtPayloadDeviceEntity implements IPayioJwtPayloadDevice {
|
3
|
+
id: string;
|
4
|
+
registeredAt: number;
|
5
|
+
type: string;
|
6
|
+
constructor(data?: Partial<PayioJwtPayloadDeviceEntity>);
|
7
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioJwtPayloadDeviceEntity = void 0;
|
4
|
+
var PayioJwtPayloadDeviceEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (3)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function PayioJwtPayloadDeviceEntity(data) {
|
8
|
+
// #region Properties (3)
|
9
|
+
this.id = '';
|
10
|
+
this.registeredAt = 0;
|
11
|
+
this.type = '';
|
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 PayioJwtPayloadDeviceEntity;
|
21
|
+
}());
|
22
|
+
exports.PayioJwtPayloadDeviceEntity = PayioJwtPayloadDeviceEntity;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ESubscriptionStatus } from '../../../subscription-base/enums/subscription-status.enum';
|
2
|
+
import { IPayioJwtPayloadSubscription } from '../interfaces/i-payload-subscription';
|
3
|
+
export declare class PayioJwtPayloadSubscriptionEntity implements IPayioJwtPayloadSubscription {
|
4
|
+
expiresAt: number;
|
5
|
+
plan: string;
|
6
|
+
status: ESubscriptionStatus;
|
7
|
+
constructor(data?: Partial<PayioJwtPayloadSubscriptionEntity>);
|
8
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioJwtPayloadSubscriptionEntity = void 0;
|
4
|
+
var subscription_status_enum_1 = require("../../../subscription-base/enums/subscription-status.enum");
|
5
|
+
var PayioJwtPayloadSubscriptionEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (3)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function PayioJwtPayloadSubscriptionEntity(data) {
|
9
|
+
// #region Properties (3)
|
10
|
+
this.expiresAt = 0;
|
11
|
+
this.plan = '';
|
12
|
+
this.status = subscription_status_enum_1.ESubscriptionStatus.PENDING;
|
13
|
+
if (data) {
|
14
|
+
for (var key in data) {
|
15
|
+
if (data.hasOwnProperty(key) && key in this) {
|
16
|
+
this[key] = data[key];
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
return PayioJwtPayloadSubscriptionEntity;
|
22
|
+
}());
|
23
|
+
exports.PayioJwtPayloadSubscriptionEntity = PayioJwtPayloadSubscriptionEntity;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { IPayioJwtPayloadUser } from '../interfaces/i-payload-user';
|
2
|
+
export declare class PayioJwtPayloadUserEntity implements IPayioJwtPayloadUser {
|
3
|
+
email: string | null;
|
4
|
+
id: string;
|
5
|
+
internationalCode: string;
|
6
|
+
phoneNumber: string;
|
7
|
+
roles: string[];
|
8
|
+
constructor(data?: Partial<PayioJwtPayloadUserEntity>);
|
9
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioJwtPayloadUserEntity = void 0;
|
4
|
+
var PayioJwtPayloadUserEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (5)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function PayioJwtPayloadUserEntity(data) {
|
8
|
+
// #region Properties (5)
|
9
|
+
this.email = null;
|
10
|
+
this.id = '';
|
11
|
+
this.internationalCode = '';
|
12
|
+
this.phoneNumber = '';
|
13
|
+
this.roles = [];
|
14
|
+
if (data) {
|
15
|
+
for (var key in data) {
|
16
|
+
if (data.hasOwnProperty(key) && key in this) {
|
17
|
+
this[key] = data[key];
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
return PayioJwtPayloadUserEntity;
|
23
|
+
}());
|
24
|
+
exports.PayioJwtPayloadUserEntity = PayioJwtPayloadUserEntity;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { IPayioJwtPayload } from '../interfaces/i-payload';
|
2
|
+
import { IPayioJwtPayloadApp } from '../interfaces/i-payload-app';
|
3
|
+
import { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
|
4
|
+
import { PayioJwtPayloadSubscriptionEntity } from './payload-subscription.entity';
|
5
|
+
import { PayioJwtPayloadUserEntity } from './payload-user.entity';
|
6
|
+
export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
|
7
|
+
app: IPayioJwtPayloadApp | null;
|
8
|
+
aud: string;
|
9
|
+
device: PayioJwtPayloadDeviceEntity | null;
|
10
|
+
exp: number;
|
11
|
+
iat: number;
|
12
|
+
iss: string;
|
13
|
+
permissions: string[];
|
14
|
+
sub: string;
|
15
|
+
subscription: PayioJwtPayloadSubscriptionEntity | null;
|
16
|
+
type: string | null;
|
17
|
+
user: PayioJwtPayloadUserEntity | null;
|
18
|
+
constructor(data?: Partial<PayioJwtPayloadEntity>);
|
19
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioJwtPayloadEntity = void 0;
|
4
|
+
var PayioJwtPayloadEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (11)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function PayioJwtPayloadEntity(data) {
|
8
|
+
// #region Properties (11)
|
9
|
+
this.app = null;
|
10
|
+
this.aud = '';
|
11
|
+
this.device = null;
|
12
|
+
this.exp = 0;
|
13
|
+
this.iat = 0;
|
14
|
+
this.iss = '';
|
15
|
+
this.permissions = [];
|
16
|
+
this.sub = '';
|
17
|
+
this.subscription = null;
|
18
|
+
this.type = null;
|
19
|
+
this.user = null;
|
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 PayioJwtPayloadEntity;
|
29
|
+
}());
|
30
|
+
exports.PayioJwtPayloadEntity = PayioJwtPayloadEntity;
|
@@ -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,29 @@
|
|
1
|
+
import { IPayioJwtPayloadApp } from './i-payload-app';
|
2
|
+
import { IPayioJwtPayloadDevice } from './i-payload-device';
|
3
|
+
import { IPayioJwtPayloadSubscription } from './i-payload-subscription';
|
4
|
+
import { IPayioJwtPayloadUser } from './i-payload-user';
|
5
|
+
export interface IPayioJwtPayload {
|
6
|
+
app: IPayioJwtPayloadApp | null;
|
7
|
+
/**
|
8
|
+
* (Audiência): Identifica os destinatários pretendidos do JWT (sua aplicação).
|
9
|
+
*/
|
10
|
+
aud: string;
|
11
|
+
device: IPayioJwtPayloadDevice | null;
|
12
|
+
/**
|
13
|
+
* (Expiração): Timestamp de quando o JWT expira
|
14
|
+
*/
|
15
|
+
exp: number;
|
16
|
+
/**
|
17
|
+
* (Emitido em): Timestamp de quando o JWT foi emitido
|
18
|
+
*/
|
19
|
+
iat: number;
|
20
|
+
/**
|
21
|
+
* (Emissor): Identifica quem emitiu o JWT (o domínio da sua aplicação).
|
22
|
+
*/
|
23
|
+
iss: string;
|
24
|
+
permissions: string[];
|
25
|
+
sub: string;
|
26
|
+
subscription: IPayioJwtPayloadSubscription | null;
|
27
|
+
type: string | null;
|
28
|
+
user: IPayioJwtPayloadUser | null;
|
29
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export { IPayioJwtPayload } from './i-payload';
|
2
|
+
export { IPayioJwtPayloadApp } from './i-payload-app';
|
3
|
+
export { IPayioJwtPayloadDevice } from './i-payload-device';
|
4
|
+
export { IPayioJwtPayloadSubscription } from './i-payload-subscription';
|
5
|
+
export { IPayioJwtPayloadUser } from './i-payload-user';
|