@inceptionbg/main 2.0.16 → 2.0.18
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/index.d.ts +30 -12
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,33 @@ interface IScanData {
|
|
|
28
28
|
duplex?: boolean;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
declare const ModuleIds: readonly ["ADMIN", "EARCHIVE", "EDELIVERY", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION"];
|
|
32
|
+
type IModuleId = (typeof ModuleIds)[number];
|
|
33
|
+
type IModule = {
|
|
34
|
+
[id in IModuleId]: {
|
|
35
|
+
name: string;
|
|
36
|
+
icon: any;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
hidden?: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
interface IRole {
|
|
43
|
+
uuid: string;
|
|
44
|
+
name: string;
|
|
45
|
+
organization?: IOrganization;
|
|
46
|
+
privileges?: IRolePrivilege[];
|
|
47
|
+
global?: boolean;
|
|
48
|
+
subsystem?: IModuleId;
|
|
49
|
+
children?: IRole[];
|
|
50
|
+
}
|
|
51
|
+
interface IRolePrivilege {
|
|
52
|
+
code: string;
|
|
53
|
+
group: RolePrivilegeGroup;
|
|
54
|
+
}
|
|
55
|
+
declare const rolePrivilegeGroups: readonly ["ADMIN", "INVOICE", "DELIVERY", "CONTRACT", "APPROVAL", "OFFICE", "FACTORING", "VAT_EVIDENCE", "REPORT", "NO_GROUP"];
|
|
56
|
+
type RolePrivilegeGroup = (typeof rolePrivilegeGroups)[number];
|
|
57
|
+
|
|
31
58
|
interface IUser {
|
|
32
59
|
uuid: string;
|
|
33
60
|
username?: string;
|
|
@@ -37,6 +64,8 @@ interface IUser {
|
|
|
37
64
|
email?: string;
|
|
38
65
|
representation?: string;
|
|
39
66
|
umcn?: string;
|
|
67
|
+
roles: IRole[];
|
|
68
|
+
active?: boolean;
|
|
40
69
|
}
|
|
41
70
|
type UserFetchOption = 'PERSONAL_IDENTITY_NUMBER' | 'PLACE' | 'MUNICIPALITY' | 'ORGANIZATIONAL_UNITS' | 'PRIMARY_ORUN';
|
|
42
71
|
interface IUserSettings {
|
|
@@ -1241,17 +1270,6 @@ interface IConditionIndexData {
|
|
|
1241
1270
|
value?: string;
|
|
1242
1271
|
}
|
|
1243
1272
|
|
|
1244
|
-
declare const ModuleIds: readonly ["ADMIN", "EARCHIVE", "EDELIVERY", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION"];
|
|
1245
|
-
type IModuleId = (typeof ModuleIds)[number];
|
|
1246
|
-
type IModule = {
|
|
1247
|
-
[id in IModuleId]: {
|
|
1248
|
-
name: string;
|
|
1249
|
-
icon: any;
|
|
1250
|
-
disabled?: boolean;
|
|
1251
|
-
hidden?: boolean;
|
|
1252
|
-
};
|
|
1253
|
-
};
|
|
1254
|
-
|
|
1255
1273
|
type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT';
|
|
1256
1274
|
|
|
1257
1275
|
interface IPrivileges {
|
|
@@ -1585,4 +1603,4 @@ interface Props {
|
|
|
1585
1603
|
}
|
|
1586
1604
|
declare const IndexDataSearch: FC<Props>;
|
|
1587
1605
|
|
|
1588
|
-
export { ApprovalStatus, AxiosTokenHandler, Constraints, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentFileSignDialog, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, ErrorContext, FileSignAppPortal, FilesDropzone, Header, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, IBusinessActivity, ICondition, IConditionIndexData, IConstraint, IContactPerson, ICountry, ICurrency, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileSignatory, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMunicipality, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, IPrivileges, IRoute, ISidebarItem, ISignatureType, IToken, IUploadDocumentType, IUser, IUserSettings, IVoteSearch, IndexDataSearch, LoginPage, MainPageWrapper, ModuleIds, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, PDFSignBox, PartnerGroupType, Router, SelectOrgPage, Sidebar, SignatureLocation, UserFetchOption, UserOrgContext, UserOrgProvider, decodeToken, getUser, login, logout };
|
|
1606
|
+
export { ApprovalStatus, AxiosTokenHandler, Constraints, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentFileSignDialog, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, ErrorContext, FileSignAppPortal, FilesDropzone, Header, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, IBusinessActivity, ICondition, IConditionIndexData, IConstraint, IContactPerson, ICountry, ICurrency, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileSignatory, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMunicipality, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, IPrivileges, IRole, IRolePrivilege, IRoute, ISidebarItem, ISignatureType, IToken, IUploadDocumentType, IUser, IUserSettings, IVoteSearch, IndexDataSearch, LoginPage, MainPageWrapper, ModuleIds, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, PDFSignBox, PartnerGroupType, RolePrivilegeGroup, Router, SelectOrgPage, Sidebar, SignatureLocation, UserFetchOption, UserOrgContext, UserOrgProvider, decodeToken, getUser, login, logout };
|