@inceptionbg/main 2.0.17 → 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 +29 -12
- 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,7 @@ interface IUser {
|
|
|
37
64
|
email?: string;
|
|
38
65
|
representation?: string;
|
|
39
66
|
umcn?: string;
|
|
67
|
+
roles: IRole[];
|
|
40
68
|
active?: boolean;
|
|
41
69
|
}
|
|
42
70
|
type UserFetchOption = 'PERSONAL_IDENTITY_NUMBER' | 'PLACE' | 'MUNICIPALITY' | 'ORGANIZATIONAL_UNITS' | 'PRIMARY_ORUN';
|
|
@@ -1242,17 +1270,6 @@ interface IConditionIndexData {
|
|
|
1242
1270
|
value?: string;
|
|
1243
1271
|
}
|
|
1244
1272
|
|
|
1245
|
-
declare const ModuleIds: readonly ["ADMIN", "EARCHIVE", "EDELIVERY", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION"];
|
|
1246
|
-
type IModuleId = (typeof ModuleIds)[number];
|
|
1247
|
-
type IModule = {
|
|
1248
|
-
[id in IModuleId]: {
|
|
1249
|
-
name: string;
|
|
1250
|
-
icon: any;
|
|
1251
|
-
disabled?: boolean;
|
|
1252
|
-
hidden?: boolean;
|
|
1253
|
-
};
|
|
1254
|
-
};
|
|
1255
|
-
|
|
1256
1273
|
type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT';
|
|
1257
1274
|
|
|
1258
1275
|
interface IPrivileges {
|
|
@@ -1586,4 +1603,4 @@ interface Props {
|
|
|
1586
1603
|
}
|
|
1587
1604
|
declare const IndexDataSearch: FC<Props>;
|
|
1588
1605
|
|
|
1589
|
-
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 };
|