@inceptionbg/main 2.0.17 → 2.0.19
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/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,34 @@ 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
|
+
parent?: IRole;
|
|
50
|
+
children?: IRole[];
|
|
51
|
+
}
|
|
52
|
+
interface IRolePrivilege {
|
|
53
|
+
code: string;
|
|
54
|
+
group: RolePrivilegeGroup;
|
|
55
|
+
}
|
|
56
|
+
declare const rolePrivilegeGroups: readonly ["ADMIN", "INVOICE", "DELIVERY", "CONTRACT", "APPROVAL", "OFFICE", "FACTORING", "VAT_EVIDENCE", "REPORT", "NO_GROUP"];
|
|
57
|
+
type RolePrivilegeGroup = (typeof rolePrivilegeGroups)[number];
|
|
58
|
+
|
|
31
59
|
interface IUser {
|
|
32
60
|
uuid: string;
|
|
33
61
|
username?: string;
|
|
@@ -37,6 +65,7 @@ interface IUser {
|
|
|
37
65
|
email?: string;
|
|
38
66
|
representation?: string;
|
|
39
67
|
umcn?: string;
|
|
68
|
+
roles: IRole[];
|
|
40
69
|
active?: boolean;
|
|
41
70
|
}
|
|
42
71
|
type UserFetchOption = 'PERSONAL_IDENTITY_NUMBER' | 'PLACE' | 'MUNICIPALITY' | 'ORGANIZATIONAL_UNITS' | 'PRIMARY_ORUN';
|
|
@@ -1242,17 +1271,6 @@ interface IConditionIndexData {
|
|
|
1242
1271
|
value?: string;
|
|
1243
1272
|
}
|
|
1244
1273
|
|
|
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
1274
|
type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT';
|
|
1257
1275
|
|
|
1258
1276
|
interface IPrivileges {
|
|
@@ -1586,4 +1604,4 @@ interface Props {
|
|
|
1586
1604
|
}
|
|
1587
1605
|
declare const IndexDataSearch: FC<Props>;
|
|
1588
1606
|
|
|
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 };
|
|
1607
|
+
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 };
|