@inceptionbg/main 1.0.81 → 2.0.1
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 +10 -25
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { Accept } from 'react-dropzone';
|
|
7
7
|
|
|
8
|
-
declare const ModuleIds: readonly ["EARCHIVE", "EDELIVERY", "EINVOICE", "EFORMS", "
|
|
8
|
+
declare const ModuleIds: readonly ["EARCHIVE", "EDELIVERY", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION", "SETTINGS"];
|
|
9
9
|
type IModuleId = (typeof ModuleIds)[number];
|
|
10
10
|
type IModule = {
|
|
11
11
|
[id in IModuleId]: {
|
|
@@ -48,27 +48,7 @@ interface IUser {
|
|
|
48
48
|
lastName?: string;
|
|
49
49
|
password?: string;
|
|
50
50
|
email?: string;
|
|
51
|
-
|
|
52
|
-
phoneNumber?: string;
|
|
53
|
-
phoneNumberVerified?: boolean;
|
|
54
|
-
confirmedPersonalIdentityNumber?: string;
|
|
55
|
-
idCardNumber?: string;
|
|
56
|
-
country?: ICountry;
|
|
57
|
-
municipality?: IMunicipality;
|
|
58
|
-
place?: IPlace;
|
|
59
|
-
street?: string;
|
|
60
|
-
houseNumber?: string;
|
|
61
|
-
postalCode?: string;
|
|
62
|
-
roles?: [];
|
|
63
|
-
organizationalUnits?: IOrganizationalUnitUpdate[];
|
|
64
|
-
selfManage?: boolean;
|
|
65
|
-
ownerOrganization?: IOrganization;
|
|
66
|
-
representation?: string;
|
|
67
|
-
signAppPort?: string;
|
|
68
|
-
identificationOfficer?: boolean;
|
|
69
|
-
identityConfirmationMethod?: 'QC' | 'SELFIE_IDENTIFICATION';
|
|
70
|
-
active?: boolean;
|
|
71
|
-
primaryOrun?: IOrganizationalUnitUpdate;
|
|
51
|
+
umcn: string;
|
|
72
52
|
}
|
|
73
53
|
type UserFetchOption = 'PERSONAL_IDENTITY_NUMBER' | 'PLACE' | 'MUNICIPALITY' | 'ORGANIZATIONAL_UNITS' | 'PRIMARY_ORUN';
|
|
74
54
|
interface IUserPreferences {
|
|
@@ -1273,7 +1253,7 @@ interface IOrganizationalUnitType {
|
|
|
1273
1253
|
internalCode: 'SECTOR';
|
|
1274
1254
|
}
|
|
1275
1255
|
|
|
1276
|
-
interface
|
|
1256
|
+
interface IPrivileges {
|
|
1277
1257
|
USER_R?: boolean;
|
|
1278
1258
|
USER_W?: boolean;
|
|
1279
1259
|
CONTRACT_R?: boolean;
|
|
@@ -1373,6 +1353,10 @@ interface IUserPrivileges {
|
|
|
1373
1353
|
ORGANIZATION_INVITE?: boolean;
|
|
1374
1354
|
OFFICE_DOCUMENT_SEND_W?: boolean;
|
|
1375
1355
|
OFFICE_DOCUMENT_SEND_R?: boolean;
|
|
1356
|
+
FORM_R?: boolean;
|
|
1357
|
+
CODEBOOK_R?: boolean;
|
|
1358
|
+
CODEBOOK_W?: boolean;
|
|
1359
|
+
FORM_W?: boolean;
|
|
1376
1360
|
}
|
|
1377
1361
|
interface IOrganizationPrivileges {
|
|
1378
1362
|
sefApiKey?: string;
|
|
@@ -1468,13 +1452,14 @@ declare const logout: (options?: {
|
|
|
1468
1452
|
clearData?: boolean;
|
|
1469
1453
|
redirectUrl?: string;
|
|
1470
1454
|
}) => void;
|
|
1455
|
+
declare const getUser: () => Promise<IUser>;
|
|
1471
1456
|
|
|
1472
1457
|
declare const decodeToken: (token?: string | null) => IToken | undefined;
|
|
1473
1458
|
|
|
1474
1459
|
interface IUserOrgContext {
|
|
1475
1460
|
user: IUser | null;
|
|
1476
1461
|
userPreferences: IUserPreferences;
|
|
1477
|
-
|
|
1462
|
+
privileges: IPrivileges;
|
|
1478
1463
|
reloadUser: (callback?: () => void) => void;
|
|
1479
1464
|
updateUserPreferences: (data: IUserPreferences, showToast?: boolean) => void;
|
|
1480
1465
|
organization: IOrganization | null;
|
|
@@ -1591,4 +1576,4 @@ interface Props {
|
|
|
1591
1576
|
}
|
|
1592
1577
|
declare const IndexDataSearch: FC<Props>;
|
|
1593
1578
|
|
|
1594
|
-
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, IOrganizationPrivileges, IOrganizationSearch, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, IRoute, ISidebarItem, ISignatureType, IToken, IUploadDocumentType, IUser, IUserPreferences, IUserPrivileges, IVoteSearch, IndexDataSearch, LoginPage, MainPageWrapper, ModuleIds, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, PDFSignBox, PartnerGroupType, Router, SelectOrgPage, Sidebar, SignatureLocation, UserFetchOption, UserOrgContext, UserOrgProvider, decodeToken, login, logout };
|
|
1579
|
+
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, IOrganizationPrivileges, IOrganizationSearch, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, IRoute, ISidebarItem, ISignatureType, IToken, IUploadDocumentType, IUser, IUserPreferences, IPrivileges as IUserPrivileges, IVoteSearch, IndexDataSearch, LoginPage, MainPageWrapper, ModuleIds, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, PDFSignBox, PartnerGroupType, Router, SelectOrgPage, Sidebar, SignatureLocation, UserFetchOption, UserOrgContext, UserOrgProvider, decodeToken, getUser, login, logout };
|