@inceptionbg/main 1.0.80 → 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 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", "EOFFICE", "ESIGN", "EVALIDATION", "SETTINGS"];
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
- emailVerificationTime?: string;
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 {
@@ -102,8 +82,9 @@ interface IFileSignatory {
102
82
  personalIdentityNumber?: string;
103
83
  signatureAppearance?: ISignatureAppearance;
104
84
  visualizationProfile?: ISimpleObject;
105
- signatureType?: 'ESIG' | 'ESEAL';
85
+ signatureType?: ISignatureType;
106
86
  }
87
+ type ISignatureType = 'ESIG' | 'ESEAL';
107
88
  interface ISignatureAppearance {
108
89
  pageNumber?: string;
109
90
  x?: string;
@@ -1272,7 +1253,7 @@ interface IOrganizationalUnitType {
1272
1253
  internalCode: 'SECTOR';
1273
1254
  }
1274
1255
 
1275
- interface IUserPrivileges {
1256
+ interface IPrivileges {
1276
1257
  USER_R?: boolean;
1277
1258
  USER_W?: boolean;
1278
1259
  CONTRACT_R?: boolean;
@@ -1372,6 +1353,10 @@ interface IUserPrivileges {
1372
1353
  ORGANIZATION_INVITE?: boolean;
1373
1354
  OFFICE_DOCUMENT_SEND_W?: boolean;
1374
1355
  OFFICE_DOCUMENT_SEND_R?: boolean;
1356
+ FORM_R?: boolean;
1357
+ CODEBOOK_R?: boolean;
1358
+ CODEBOOK_W?: boolean;
1359
+ FORM_W?: boolean;
1375
1360
  }
1376
1361
  interface IOrganizationPrivileges {
1377
1362
  sefApiKey?: string;
@@ -1467,13 +1452,14 @@ declare const logout: (options?: {
1467
1452
  clearData?: boolean;
1468
1453
  redirectUrl?: string;
1469
1454
  }) => void;
1455
+ declare const getUser: () => Promise<IUser>;
1470
1456
 
1471
1457
  declare const decodeToken: (token?: string | null) => IToken | undefined;
1472
1458
 
1473
1459
  interface IUserOrgContext {
1474
1460
  user: IUser | null;
1475
1461
  userPreferences: IUserPreferences;
1476
- userPrivileges: IUserPrivileges;
1462
+ privileges: IPrivileges;
1477
1463
  reloadUser: (callback?: () => void) => void;
1478
1464
  updateUserPreferences: (data: IUserPreferences, showToast?: boolean) => void;
1479
1465
  organization: IOrganization | null;
@@ -1590,4 +1576,4 @@ interface Props {
1590
1576
  }
1591
1577
  declare const IndexDataSearch: FC<Props>;
1592
1578
 
1593
- 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, 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 };