@inceptionbg/main 2.0.171 → 2.0.173

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.
Files changed (132) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/tempTypes/assets/icons/duotone/faBell.d.ts +2 -0
  4. package/dist/tempTypes/assets/icons/duotone/faBoxArchive.d.ts +2 -0
  5. package/dist/tempTypes/assets/icons/duotone/faCabinetFiling.d.ts +2 -0
  6. package/dist/tempTypes/assets/icons/duotone/faCashRegister.d.ts +2 -0
  7. package/dist/tempTypes/assets/icons/duotone/faDisplayChartUpCircleDollar.d.ts +2 -0
  8. package/dist/tempTypes/assets/icons/duotone/faEnvelope.d.ts +2 -0
  9. package/dist/tempTypes/assets/icons/duotone/faFileContract.d.ts +2 -0
  10. package/dist/tempTypes/assets/icons/duotone/faFileInvoice.d.ts +2 -0
  11. package/dist/tempTypes/assets/icons/duotone/faFilePen.d.ts +2 -0
  12. package/dist/tempTypes/assets/icons/duotone/faGear.d.ts +2 -0
  13. package/dist/tempTypes/assets/icons/duotone/faGridHorizontal.d.ts +2 -0
  14. package/dist/tempTypes/assets/icons/duotone/faHandsHoldingHeart.d.ts +2 -0
  15. package/dist/tempTypes/assets/icons/duotone/faList.d.ts +2 -0
  16. package/dist/tempTypes/assets/icons/duotone/faListCheck.d.ts +2 -0
  17. package/dist/tempTypes/assets/icons/duotone/faPlusCircle.d.ts +2 -0
  18. package/dist/tempTypes/assets/icons/duotone/faScreencast.d.ts +2 -0
  19. package/dist/tempTypes/assets/icons/duotone/faShelves.d.ts +2 -0
  20. package/dist/tempTypes/assets/icons/duotone/faSignature.d.ts +2 -0
  21. package/dist/tempTypes/assets/icons/duotone/faWarehouse.d.ts +2 -0
  22. package/dist/tempTypes/assets/icons/duotone/faWarehouseFull.d.ts +2 -0
  23. package/dist/tempTypes/assets/icons/light/faAngleDown.d.ts +2 -0
  24. package/dist/tempTypes/assets/icons/light/faArrowRightFromBracket.d.ts +2 -0
  25. package/dist/tempTypes/assets/icons/light/faBell.d.ts +2 -0
  26. package/dist/tempTypes/assets/icons/light/faBriefcase.d.ts +2 -0
  27. package/dist/tempTypes/assets/icons/light/faBusinessPlus.d.ts +2 -0
  28. package/dist/tempTypes/assets/icons/light/faCalendarDays.d.ts +2 -0
  29. package/dist/tempTypes/assets/icons/light/faCircleUser.d.ts +2 -0
  30. package/dist/tempTypes/assets/icons/light/faEnvelope.d.ts +2 -0
  31. package/dist/tempTypes/assets/icons/light/faMagnifyingGlass.d.ts +2 -0
  32. package/dist/tempTypes/assets/icons/light/faTrashCan.d.ts +2 -0
  33. package/dist/tempTypes/assets/icons/light/faUserGear.d.ts +2 -0
  34. package/dist/tempTypes/assets/icons/regular/faAngleLeft.d.ts +2 -0
  35. package/dist/tempTypes/assets/icons/regular/faAngleRight.d.ts +2 -0
  36. package/dist/tempTypes/assets/icons/regular/faMagnifyingGlassMinus.d.ts +2 -0
  37. package/dist/tempTypes/assets/icons/regular/faMagnifyingGlassPlus.d.ts +2 -0
  38. package/dist/tempTypes/assets/icons/regular/faQrcode.d.ts +2 -0
  39. package/dist/tempTypes/assets/icons/solid/faAngleLeft.d.ts +2 -0
  40. package/dist/tempTypes/assets/icons/solid/faArrowRight.d.ts +2 -0
  41. package/dist/tempTypes/assets/icons/solid/faCaretDown.d.ts +2 -0
  42. package/dist/tempTypes/assets/icons/solid/faCheck.d.ts +2 -0
  43. package/dist/tempTypes/assets/icons/solid/faEnvelopeDot.d.ts +2 -0
  44. package/dist/tempTypes/assets/icons/solid/faPlus.d.ts +2 -0
  45. package/dist/tempTypes/assets/icons/solid/faXmark.d.ts +2 -0
  46. package/dist/tempTypes/auth/Auth.d.ts +55 -0
  47. package/dist/tempTypes/auth/AuthUtils.d.ts +4 -0
  48. package/dist/tempTypes/auth/AxiosTokenHandler.d.ts +6 -0
  49. package/dist/tempTypes/components/BusinessYear/BusinessYearChooser.d.ts +2 -0
  50. package/dist/tempTypes/components/BusinessYear/BusinessYearPage.d.ts +3 -0
  51. package/dist/tempTypes/components/Dialogs/DeleteItemDialog.d.ts +13 -0
  52. package/dist/tempTypes/components/Dialogs/DeleteItemsDialog.d.ts +15 -0
  53. package/dist/tempTypes/components/Header/Components/ModuleSelect.d.ts +6 -0
  54. package/dist/tempTypes/components/Header/Components/Notifications.d.ts +2 -0
  55. package/dist/tempTypes/components/Header/Components/UserMenu.d.ts +2 -0
  56. package/dist/tempTypes/components/Header/Header.d.ts +9 -0
  57. package/dist/tempTypes/components/IndexData/IndexDataSearch.d.ts +13 -0
  58. package/dist/tempTypes/components/IndexData/IndexDataSearchFields.d.ts +10 -0
  59. package/dist/tempTypes/components/Organizations/ChangeOrganizationDialog.d.ts +7 -0
  60. package/dist/tempTypes/components/Organizations/OrganizationInvitesDialog.d.ts +7 -0
  61. package/dist/tempTypes/components/ReactQuery/ReactQueryProvider.d.ts +6 -0
  62. package/dist/tempTypes/components/Router/Router.d.ts +10 -0
  63. package/dist/tempTypes/components/Sidebar/AddButton.d.ts +6 -0
  64. package/dist/tempTypes/components/Sidebar/Sidebar.d.ts +8 -0
  65. package/dist/tempTypes/components/Sidebar/SidebarItem.d.ts +3 -0
  66. package/dist/tempTypes/components/User/MyAccountDialog.d.ts +7 -0
  67. package/dist/tempTypes/components/User/components/ChangePassword.d.ts +7 -0
  68. package/dist/tempTypes/components/User/repo/useUserMutations.d.ts +9 -0
  69. package/dist/tempTypes/components/Wrappers/App/AppContent.d.ts +6 -0
  70. package/dist/tempTypes/components/Wrappers/App/AppWrapper.d.ts +7 -0
  71. package/dist/tempTypes/components/Wrappers/MainPageWrapper.d.ts +9 -0
  72. package/dist/tempTypes/context/BusinessYearContext.d.ts +12 -0
  73. package/dist/tempTypes/context/ErrorContext.d.ts +13 -0
  74. package/dist/tempTypes/context/UserOrgContext.d.ts +28 -0
  75. package/dist/tempTypes/hooks/useOrgInvites.d.ts +12 -0
  76. package/dist/tempTypes/index.d.ts +56 -0
  77. package/dist/tempTypes/pages/LoginPage.d.ts +3 -0
  78. package/dist/tempTypes/pages/NoAccessInfo.d.ts +8 -0
  79. package/dist/tempTypes/pages/NoMatchPage.d.ts +3 -0
  80. package/dist/tempTypes/pages/Roles/RolesWithPrivileges.d.ts +8 -0
  81. package/dist/tempTypes/pages/Roles/components/PrivilegesForm.d.ts +11 -0
  82. package/dist/tempTypes/pages/SelectOrg/SelectOrgPage.d.ts +3 -0
  83. package/dist/tempTypes/pages/SelectOrg/components/OrgInvites.d.ts +2 -0
  84. package/dist/tempTypes/repo/NotificationsRepository.d.ts +8 -0
  85. package/dist/tempTypes/repo/RoleRepo.d.ts +7 -0
  86. package/dist/tempTypes/types/App/Administration/IEmployee.d.ts +23 -0
  87. package/dist/tempTypes/types/App/Administration/IJob.d.ts +10 -0
  88. package/dist/tempTypes/types/App/Contracts/File/IContractFile.d.ts +30 -0
  89. package/dist/tempTypes/types/App/Contracts/IContract.d.ts +241 -0
  90. package/dist/tempTypes/types/App/Document/IApproval.d.ts +143 -0
  91. package/dist/tempTypes/types/App/Document/ICase.d.ts +48 -0
  92. package/dist/tempTypes/types/App/Document/IDocument.d.ts +219 -0
  93. package/dist/tempTypes/types/App/Document/IDocumentFile.d.ts +67 -0
  94. package/dist/tempTypes/types/App/Document/IDocumentSend.d.ts +128 -0
  95. package/dist/tempTypes/types/App/Document/IEmailDocument.d.ts +52 -0
  96. package/dist/tempTypes/types/App/Document/IIndexDataCodebook.d.ts +15 -0
  97. package/dist/tempTypes/types/App/Document/ISignatory.d.ts +34 -0
  98. package/dist/tempTypes/types/App/Document/IndexData.d.ts +60 -0
  99. package/dist/tempTypes/types/App/Document/Invoice/IAccount.d.ts +11 -0
  100. package/dist/tempTypes/types/App/Document/Invoice/IExpenseAllocation.d.ts +39 -0
  101. package/dist/tempTypes/types/App/Document/Invoice/IFactoring.d.ts +6 -0
  102. package/dist/tempTypes/types/App/Document/Invoice/IInvoice.d.ts +236 -0
  103. package/dist/tempTypes/types/App/Document/Invoice/IPayment.d.ts +40 -0
  104. package/dist/tempTypes/types/App/Document/Invoice/IProduct.d.ts +23 -0
  105. package/dist/tempTypes/types/App/Document/Invoice/ITaxAllocation.d.ts +37 -0
  106. package/dist/tempTypes/types/App/Document/Invoice/IVatIndicator.d.ts +14 -0
  107. package/dist/tempTypes/types/App/Document/Office/IOfficeDocument.d.ts +27 -0
  108. package/dist/tempTypes/types/App/Document/Shipment/IShipment.d.ts +25 -0
  109. package/dist/tempTypes/types/App/Partner/IAddress.d.ts +14 -0
  110. package/dist/tempTypes/types/App/Partner/IPartner.d.ts +98 -0
  111. package/dist/tempTypes/types/Auth/IEnv.d.ts +13 -0
  112. package/dist/tempTypes/types/Auth/IModule.d.ts +15 -0
  113. package/dist/tempTypes/types/Auth/IOrganization.d.ts +140 -0
  114. package/dist/tempTypes/types/Auth/IPrivileges.d.ts +2 -0
  115. package/dist/tempTypes/types/Auth/IRole.d.ts +25 -0
  116. package/dist/tempTypes/types/Auth/IRouter.d.ts +7 -0
  117. package/dist/tempTypes/types/Auth/IToken.d.ts +12 -0
  118. package/dist/tempTypes/types/Auth/IUser.d.ts +39 -0
  119. package/dist/tempTypes/types/IError.d.ts +5 -0
  120. package/dist/tempTypes/types/INotifications.d.ts +15 -0
  121. package/dist/tempTypes/types/IReactQuerry.d.ts +4 -0
  122. package/dist/tempTypes/types/IScan.d.ts +17 -0
  123. package/dist/tempTypes/types/ISidebar.d.ts +27 -0
  124. package/dist/tempTypes/types/ISubsystem.d.ts +2 -0
  125. package/dist/tempTypes/utils/EnvVars.d.ts +2 -0
  126. package/dist/tempTypes/utils/ImageUtils.d.ts +4 -0
  127. package/dist/tempTypes/utils/LoadOptions.d.ts +20 -0
  128. package/dist/tempTypes/utils/ModuleUtils.d.ts +3 -0
  129. package/dist/tempTypes/utils/i18nMain.d.ts +662 -0
  130. package/dist/types/global.d.ts +619 -601
  131. package/package.json +2 -2
  132. package/dist/index.d.ts +0 -2154
@@ -0,0 +1,25 @@
1
+ import { IModuleId } from './IModule';
2
+ import { IOrganization } from './IOrganization';
3
+ export interface IRole {
4
+ uuid: string;
5
+ name: string;
6
+ organization?: IOrganization;
7
+ privileges?: IRolePrivilege[];
8
+ global?: boolean;
9
+ subsystem?: IModuleId;
10
+ createdAt?: string;
11
+ parent?: IRole;
12
+ children?: IRole[];
13
+ }
14
+ export interface IRoleData {
15
+ directPrivileges: string[];
16
+ successorsPrivileges: string[];
17
+ combinedPrivileges: string[];
18
+ role: IRole;
19
+ }
20
+ export interface IRolePrivilege {
21
+ code: string;
22
+ group: RolePrivilegeGroup;
23
+ }
24
+ export declare const rolePrivilegeGroups: readonly ["ADMIN", "INVOICE", "DELIVERY", "CONTRACT", "APPROVAL", "OFFICE", "FACTORING", "VAT_EVIDENCE", "REPORT", "NO_GROUP"];
25
+ export type RolePrivilegeGroup = (typeof rolePrivilegeGroups)[number];
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ export interface IRoute {
3
+ path?: string;
4
+ element?: ReactElement;
5
+ fullPage?: boolean;
6
+ childrenRoutes?: IRoute[];
7
+ }
@@ -0,0 +1,12 @@
1
+ export interface IToken {
2
+ sub: string;
3
+ userUuid: string;
4
+ clientCertificate: string;
5
+ scope: string[];
6
+ iat: number;
7
+ exp: number;
8
+ iss: string;
9
+ firstName?: string;
10
+ lastName?: string;
11
+ umcn?: string;
12
+ }
@@ -0,0 +1,39 @@
1
+ import { IScanData } from '../IScan';
2
+ import { IOrganizationalUnit } from './IOrganization';
3
+ import { IRole } from './IRole';
4
+ export interface IUser {
5
+ uuid: string;
6
+ username?: string;
7
+ firstName?: string;
8
+ lastName?: string;
9
+ password?: string;
10
+ email?: string;
11
+ representation?: string;
12
+ umcn?: string;
13
+ roles: IRole[];
14
+ active?: boolean;
15
+ organizationalUnits?: IOrganizationalUnit[];
16
+ }
17
+ export type UserFetchOption = 'PERSONAL_IDENTITY_NUMBER' | 'PLACE' | 'MUNICIPALITY' | 'ORGANIZATIONAL_UNITS' | 'PRIMARY_ORUN';
18
+ export interface IUserSettings {
19
+ documentTabOrientation?: 'HORIZONTAL' | 'VERTICAL';
20
+ shipmentView?: 'CONVERSATION' | 'LIST';
21
+ consolidated?: boolean;
22
+ tableLimit?: number;
23
+ zoomInfoWidgetVisible?: boolean;
24
+ accountStatusWidgetVisible?: boolean;
25
+ organizationRegistrationWidgetVisible?: boolean;
26
+ personalAccountWidgetVisible?: boolean;
27
+ singingApplicationWidgetVisible?: boolean;
28
+ organizationSettingsWidgetVisible?: boolean;
29
+ approvalListWidgetVisible?: boolean;
30
+ expiringContractsWidgetVisible?: boolean;
31
+ exchangeRateWidgetVisible?: boolean;
32
+ notificationsSound?: boolean;
33
+ startGuideOpen?: boolean;
34
+ scannerData?: IScanData;
35
+ guide?: {
36
+ [key in IGuideType]: boolean;
37
+ };
38
+ }
39
+ export type IGuideType = 'invoice';
@@ -0,0 +1,5 @@
1
+ export interface IError {
2
+ errorMessage: string;
3
+ errorCode?: string;
4
+ values?: Record<string, string>;
5
+ }
@@ -0,0 +1,15 @@
1
+ export interface INotification {
2
+ uuid: string;
3
+ event: string;
4
+ type: INotificationType;
5
+ values?: {
6
+ key: INotificationValueKey;
7
+ value: string;
8
+ url?: string;
9
+ format?: 'TRANSLATE' | 'DATE' | 'DATE_TIME';
10
+ }[];
11
+ seen: boolean;
12
+ createdAt: string;
13
+ }
14
+ export type INotificationType = 'WEB' | 'EMAIL';
15
+ export type INotificationValueKey = 'documentNumber' | 'userName' | 'invoiceIssuer' | 'status' | 'date';
@@ -0,0 +1,4 @@
1
+ import { AxiosResponse } from './Base/axios';
2
+ export type IUseMutationData = {
3
+ onSuccess: (data: AxiosResponse<any, any>, variables: any) => void;
4
+ };
@@ -0,0 +1,17 @@
1
+ export interface IScanner {
2
+ uid: string;
3
+ name: string;
4
+ }
5
+ export interface IScanClient {
6
+ allowBatch: boolean;
7
+ signatureEnabled: boolean;
8
+ status: boolean;
9
+ version: string;
10
+ }
11
+ export interface IScanData {
12
+ scannerUId?: string;
13
+ mod?: 'GRAY_8' | 'RGB_8' | 'BLACK_AND_WHITE';
14
+ resolution?: string;
15
+ adf?: boolean;
16
+ duplex?: boolean;
17
+ }
@@ -0,0 +1,27 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export interface ISidebarItem {
3
+ label: string;
4
+ icon?: IconDefinition;
5
+ to?: string;
6
+ content?: ISidebarSubItem[];
7
+ menu?: {
8
+ content: ISidebarSubItem[];
9
+ openedMenu: string;
10
+ setOpenedMenu: (label: string) => void;
11
+ };
12
+ hidden?: boolean;
13
+ badge?: number;
14
+ addUrl?: string;
15
+ collapsed?: boolean;
16
+ }
17
+ export interface ISidebarSubItem {
18
+ label: string;
19
+ to?: string;
20
+ content?: ISidebarItem[];
21
+ hidden?: boolean;
22
+ tooltip?: string;
23
+ badge?: number;
24
+ addUrl?: string;
25
+ primary?: boolean;
26
+ collapsed?: boolean;
27
+ }
@@ -0,0 +1,2 @@
1
+ export declare const SubSystems: readonly ["ADMIN", "EARCHIVE", "EDELIVERY", "EDMS", "EFORMS", "EINVOICE", "EPROCUREMENT", "ERDS", "EREGISTER", "ERP", "ERP_SMALL_INVENTORY", "ERP_WMS", "ERP_MAT_ACC", "FINANCES", "CONTRACTS", "ESIGN", "EVALIDATION", "IDM", "REGISTRATION", "QC_REGISTRATION", "ERP_CASH_REGISTER", "ERP_RIF", "SETTINGS", "JISUSZ_BACKOFFICE"];
2
+ export type ISubsystem = (typeof SubSystems)[number];
@@ -0,0 +1,2 @@
1
+ import { IEnvVar } from '../types/Auth/IEnv';
2
+ export declare const envVars: IEnvVar;
@@ -0,0 +1,4 @@
1
+ export declare const orgLogo: {
2
+ MTS: string;
3
+ PPL: string;
4
+ };
@@ -0,0 +1,20 @@
1
+ export declare const getIndexDataOptions: (nameLike: string, loadedOptions: [], offset: {
2
+ page: number;
3
+ }, documentTypeUuid?: string, excludeIndexDataUuids?: string[], atLeastOneCaseType?: boolean) => Promise<void | {
4
+ options: any;
5
+ hasMore: boolean;
6
+ additional: {
7
+ page: number;
8
+ };
9
+ }>;
10
+ export declare const getIndexDataCodebookItemsOptions: (fullText: string, loadedOptions: [], offset: {
11
+ page: number;
12
+ }, codebookUuid: string, filters?: {
13
+ active?: boolean;
14
+ }) => Promise<void | {
15
+ options: any;
16
+ hasMore: boolean;
17
+ additional: {
18
+ page: number;
19
+ };
20
+ }>;
@@ -0,0 +1,3 @@
1
+ import { IModule } from '../types/Auth/IModule';
2
+ export declare const ModuleIds: readonly ["DASHBOARD", "ADMIN", "EARCHIVE", "ERDS", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION", "EPROCUREMENT", "EREGISTER", "PAM", "ERP_CASH_REGISTER", "ERP_RIF", "ERP_MAT_ACC", "ERP_SMALL_INVENTORY", "ERP_WMS", "JISUSZ_BACKOFFICE"];
3
+ export declare const modules: IModule;