@inceptionbg/main 2.0.172 → 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 (131) hide show
  1. package/dist/index.js.map +1 -1
  2. package/dist/tempTypes/assets/icons/duotone/faBell.d.ts +2 -0
  3. package/dist/tempTypes/assets/icons/duotone/faBoxArchive.d.ts +2 -0
  4. package/dist/tempTypes/assets/icons/duotone/faCabinetFiling.d.ts +2 -0
  5. package/dist/tempTypes/assets/icons/duotone/faCashRegister.d.ts +2 -0
  6. package/dist/tempTypes/assets/icons/duotone/faDisplayChartUpCircleDollar.d.ts +2 -0
  7. package/dist/tempTypes/assets/icons/duotone/faEnvelope.d.ts +2 -0
  8. package/dist/tempTypes/assets/icons/duotone/faFileContract.d.ts +2 -0
  9. package/dist/tempTypes/assets/icons/duotone/faFileInvoice.d.ts +2 -0
  10. package/dist/tempTypes/assets/icons/duotone/faFilePen.d.ts +2 -0
  11. package/dist/tempTypes/assets/icons/duotone/faGear.d.ts +2 -0
  12. package/dist/tempTypes/assets/icons/duotone/faGridHorizontal.d.ts +2 -0
  13. package/dist/tempTypes/assets/icons/duotone/faHandsHoldingHeart.d.ts +2 -0
  14. package/dist/tempTypes/assets/icons/duotone/faList.d.ts +2 -0
  15. package/dist/tempTypes/assets/icons/duotone/faListCheck.d.ts +2 -0
  16. package/dist/tempTypes/assets/icons/duotone/faPlusCircle.d.ts +2 -0
  17. package/dist/tempTypes/assets/icons/duotone/faScreencast.d.ts +2 -0
  18. package/dist/tempTypes/assets/icons/duotone/faShelves.d.ts +2 -0
  19. package/dist/tempTypes/assets/icons/duotone/faSignature.d.ts +2 -0
  20. package/dist/tempTypes/assets/icons/duotone/faWarehouse.d.ts +2 -0
  21. package/dist/tempTypes/assets/icons/duotone/faWarehouseFull.d.ts +2 -0
  22. package/dist/tempTypes/assets/icons/light/faAngleDown.d.ts +2 -0
  23. package/dist/tempTypes/assets/icons/light/faArrowRightFromBracket.d.ts +2 -0
  24. package/dist/tempTypes/assets/icons/light/faBell.d.ts +2 -0
  25. package/dist/tempTypes/assets/icons/light/faBriefcase.d.ts +2 -0
  26. package/dist/tempTypes/assets/icons/light/faBusinessPlus.d.ts +2 -0
  27. package/dist/tempTypes/assets/icons/light/faCalendarDays.d.ts +2 -0
  28. package/dist/tempTypes/assets/icons/light/faCircleUser.d.ts +2 -0
  29. package/dist/tempTypes/assets/icons/light/faEnvelope.d.ts +2 -0
  30. package/dist/tempTypes/assets/icons/light/faMagnifyingGlass.d.ts +2 -0
  31. package/dist/tempTypes/assets/icons/light/faTrashCan.d.ts +2 -0
  32. package/dist/tempTypes/assets/icons/light/faUserGear.d.ts +2 -0
  33. package/dist/tempTypes/assets/icons/regular/faAngleLeft.d.ts +2 -0
  34. package/dist/tempTypes/assets/icons/regular/faAngleRight.d.ts +2 -0
  35. package/dist/tempTypes/assets/icons/regular/faMagnifyingGlassMinus.d.ts +2 -0
  36. package/dist/tempTypes/assets/icons/regular/faMagnifyingGlassPlus.d.ts +2 -0
  37. package/dist/tempTypes/assets/icons/regular/faQrcode.d.ts +2 -0
  38. package/dist/tempTypes/assets/icons/solid/faAngleLeft.d.ts +2 -0
  39. package/dist/tempTypes/assets/icons/solid/faArrowRight.d.ts +2 -0
  40. package/dist/tempTypes/assets/icons/solid/faCaretDown.d.ts +2 -0
  41. package/dist/tempTypes/assets/icons/solid/faCheck.d.ts +2 -0
  42. package/dist/tempTypes/assets/icons/solid/faEnvelopeDot.d.ts +2 -0
  43. package/dist/tempTypes/assets/icons/solid/faPlus.d.ts +2 -0
  44. package/dist/tempTypes/assets/icons/solid/faXmark.d.ts +2 -0
  45. package/dist/tempTypes/auth/Auth.d.ts +55 -0
  46. package/dist/tempTypes/auth/AuthUtils.d.ts +4 -0
  47. package/dist/tempTypes/auth/AxiosTokenHandler.d.ts +6 -0
  48. package/dist/tempTypes/components/BusinessYear/BusinessYearChooser.d.ts +2 -0
  49. package/dist/tempTypes/components/BusinessYear/BusinessYearPage.d.ts +3 -0
  50. package/dist/tempTypes/components/Dialogs/DeleteItemDialog.d.ts +13 -0
  51. package/dist/tempTypes/components/Dialogs/DeleteItemsDialog.d.ts +15 -0
  52. package/dist/tempTypes/components/Header/Components/ModuleSelect.d.ts +6 -0
  53. package/dist/tempTypes/components/Header/Components/Notifications.d.ts +2 -0
  54. package/dist/tempTypes/components/Header/Components/UserMenu.d.ts +2 -0
  55. package/dist/tempTypes/components/Header/Header.d.ts +9 -0
  56. package/dist/tempTypes/components/IndexData/IndexDataSearch.d.ts +13 -0
  57. package/dist/tempTypes/components/IndexData/IndexDataSearchFields.d.ts +10 -0
  58. package/dist/tempTypes/components/Organizations/ChangeOrganizationDialog.d.ts +7 -0
  59. package/dist/tempTypes/components/Organizations/OrganizationInvitesDialog.d.ts +7 -0
  60. package/dist/tempTypes/components/ReactQuery/ReactQueryProvider.d.ts +6 -0
  61. package/dist/tempTypes/components/Router/Router.d.ts +10 -0
  62. package/dist/tempTypes/components/Sidebar/AddButton.d.ts +6 -0
  63. package/dist/tempTypes/components/Sidebar/Sidebar.d.ts +8 -0
  64. package/dist/tempTypes/components/Sidebar/SidebarItem.d.ts +3 -0
  65. package/dist/tempTypes/components/User/MyAccountDialog.d.ts +7 -0
  66. package/dist/tempTypes/components/User/components/ChangePassword.d.ts +7 -0
  67. package/dist/tempTypes/components/User/repo/useUserMutations.d.ts +9 -0
  68. package/dist/tempTypes/components/Wrappers/App/AppContent.d.ts +6 -0
  69. package/dist/tempTypes/components/Wrappers/App/AppWrapper.d.ts +7 -0
  70. package/dist/tempTypes/components/Wrappers/MainPageWrapper.d.ts +9 -0
  71. package/dist/tempTypes/context/BusinessYearContext.d.ts +12 -0
  72. package/dist/tempTypes/context/ErrorContext.d.ts +13 -0
  73. package/dist/tempTypes/context/UserOrgContext.d.ts +28 -0
  74. package/dist/tempTypes/hooks/useOrgInvites.d.ts +12 -0
  75. package/dist/tempTypes/index.d.ts +56 -0
  76. package/dist/tempTypes/pages/LoginPage.d.ts +3 -0
  77. package/dist/tempTypes/pages/NoAccessInfo.d.ts +8 -0
  78. package/dist/tempTypes/pages/NoMatchPage.d.ts +3 -0
  79. package/dist/tempTypes/pages/Roles/RolesWithPrivileges.d.ts +8 -0
  80. package/dist/tempTypes/pages/Roles/components/PrivilegesForm.d.ts +11 -0
  81. package/dist/tempTypes/pages/SelectOrg/SelectOrgPage.d.ts +3 -0
  82. package/dist/tempTypes/pages/SelectOrg/components/OrgInvites.d.ts +2 -0
  83. package/dist/tempTypes/repo/NotificationsRepository.d.ts +8 -0
  84. package/dist/tempTypes/repo/RoleRepo.d.ts +7 -0
  85. package/dist/tempTypes/types/App/Administration/IEmployee.d.ts +23 -0
  86. package/dist/tempTypes/types/App/Administration/IJob.d.ts +10 -0
  87. package/dist/tempTypes/types/App/Contracts/File/IContractFile.d.ts +30 -0
  88. package/dist/tempTypes/types/App/Contracts/IContract.d.ts +241 -0
  89. package/dist/tempTypes/types/App/Document/IApproval.d.ts +143 -0
  90. package/dist/tempTypes/types/App/Document/ICase.d.ts +48 -0
  91. package/dist/tempTypes/types/App/Document/IDocument.d.ts +219 -0
  92. package/dist/tempTypes/types/App/Document/IDocumentFile.d.ts +67 -0
  93. package/dist/tempTypes/types/App/Document/IDocumentSend.d.ts +128 -0
  94. package/dist/tempTypes/types/App/Document/IEmailDocument.d.ts +52 -0
  95. package/dist/tempTypes/types/App/Document/IIndexDataCodebook.d.ts +15 -0
  96. package/dist/tempTypes/types/App/Document/ISignatory.d.ts +34 -0
  97. package/dist/tempTypes/types/App/Document/IndexData.d.ts +60 -0
  98. package/dist/tempTypes/types/App/Document/Invoice/IAccount.d.ts +11 -0
  99. package/dist/tempTypes/types/App/Document/Invoice/IExpenseAllocation.d.ts +39 -0
  100. package/dist/tempTypes/types/App/Document/Invoice/IFactoring.d.ts +6 -0
  101. package/dist/tempTypes/types/App/Document/Invoice/IInvoice.d.ts +236 -0
  102. package/dist/tempTypes/types/App/Document/Invoice/IPayment.d.ts +40 -0
  103. package/dist/tempTypes/types/App/Document/Invoice/IProduct.d.ts +23 -0
  104. package/dist/tempTypes/types/App/Document/Invoice/ITaxAllocation.d.ts +37 -0
  105. package/dist/tempTypes/types/App/Document/Invoice/IVatIndicator.d.ts +14 -0
  106. package/dist/tempTypes/types/App/Document/Office/IOfficeDocument.d.ts +27 -0
  107. package/dist/tempTypes/types/App/Document/Shipment/IShipment.d.ts +25 -0
  108. package/dist/tempTypes/types/App/Partner/IAddress.d.ts +14 -0
  109. package/dist/tempTypes/types/App/Partner/IPartner.d.ts +98 -0
  110. package/dist/tempTypes/types/Auth/IEnv.d.ts +13 -0
  111. package/dist/tempTypes/types/Auth/IModule.d.ts +15 -0
  112. package/dist/tempTypes/types/Auth/IOrganization.d.ts +140 -0
  113. package/dist/tempTypes/types/Auth/IPrivileges.d.ts +2 -0
  114. package/dist/tempTypes/types/Auth/IRole.d.ts +25 -0
  115. package/dist/tempTypes/types/Auth/IRouter.d.ts +7 -0
  116. package/dist/tempTypes/types/Auth/IToken.d.ts +12 -0
  117. package/dist/tempTypes/types/Auth/IUser.d.ts +39 -0
  118. package/dist/tempTypes/types/IError.d.ts +5 -0
  119. package/dist/tempTypes/types/INotifications.d.ts +15 -0
  120. package/dist/tempTypes/types/IReactQuerry.d.ts +4 -0
  121. package/dist/tempTypes/types/IScan.d.ts +17 -0
  122. package/dist/tempTypes/types/ISidebar.d.ts +27 -0
  123. package/dist/tempTypes/types/ISubsystem.d.ts +2 -0
  124. package/dist/tempTypes/utils/EnvVars.d.ts +2 -0
  125. package/dist/tempTypes/utils/ImageUtils.d.ts +4 -0
  126. package/dist/tempTypes/utils/LoadOptions.d.ts +20 -0
  127. package/dist/tempTypes/utils/ModuleUtils.d.ts +3 -0
  128. package/dist/tempTypes/utils/i18nMain.d.ts +662 -0
  129. package/dist/types/global.d.ts +619 -601
  130. package/package.json +2 -2
  131. package/dist/index.d.ts +0 -2154
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faShelves: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faSignature: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faWarehouse: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faWarehouseFull: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export declare const faAngleDown: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faArrowRightFromBracket: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export declare const faBell: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faBriefcase: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export declare const faBusinessPlus: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export declare const faCalendarDays: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faCircleUser: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export declare const faEnvelope: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faMagnifyingGlass: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faTrashCan: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faUserGear: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faAngleLeft: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faAngleRight: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faMagnifyingGlassMinus: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faMagnifyingGlassPlus: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faQrcode: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export declare const faAngleLeft: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export declare const faArrowRight: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export declare const faCaretDown: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faCheck: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export declare const faEnvelopeDot: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ export declare const faPlus: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export declare const faXmark: IconDefinition;
@@ -0,0 +1,55 @@
1
+ import { IModuleId } from '../types/Auth/IModule';
2
+ import { IOrganization, IOrganizationInvite, OrganizationStatus } from '../types/Auth/IOrganization';
3
+ import { IOrganizationSettings, IUserSettingsByOrg } from '../types/Auth/IPrivileges';
4
+ import { IUser, IUserSettings } from '../types/Auth/IUser';
5
+ export declare const login: () => void;
6
+ export declare const clearToken: () => void;
7
+ export declare const logout: (options?: {
8
+ nextUrl?: boolean;
9
+ clearData?: boolean;
10
+ redirectUrl?: string;
11
+ }) => void;
12
+ export declare const getNewTokens: (code?: string) => Promise<void>;
13
+ export declare const onRefreshToken: () => Promise<void> | undefined;
14
+ export declare const getUser: () => Promise<IUser>;
15
+ export declare const getOrgAndSettingsData: (organizationUuid: string) => Promise<{
16
+ organization: IOrganization | undefined;
17
+ userHasAccessToOrganization: boolean | undefined;
18
+ userSettings: IUserSettings | undefined;
19
+ organizationSettings: IOrganizationSettings | undefined;
20
+ userSettingsByOrganization: IUserSettingsByOrg | undefined;
21
+ privileges: {
22
+ [x: string]: boolean;
23
+ };
24
+ moduleIds: {
25
+ availableModules: ("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")[];
26
+ userModules: ("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")[];
27
+ organizationModules: ("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")[];
28
+ activeModules: ("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")[];
29
+ };
30
+ }>;
31
+ export declare const getMyOrganizations: (limit: number, offset: number, filters: {
32
+ status?: OrganizationStatus;
33
+ nameLike?: string;
34
+ subsystem?: IModuleId | null;
35
+ excludeOrganizationUuid?: string;
36
+ }) => Promise<{
37
+ organizations: IOrganization[];
38
+ totalRows: number;
39
+ subsystems: ("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")[];
40
+ }>;
41
+ export declare const getOrganizationInvites: ({ limit, offset, fetchOptions, }: {
42
+ limit: number;
43
+ offset: number;
44
+ fetchOptions?: ("SENDER" | "ORGANIZATION" | "ROLE" | "RECEIVER")[] | undefined;
45
+ }) => Promise<{
46
+ organizationInvites: IOrganizationInvite[];
47
+ totalRows: number;
48
+ }>;
49
+ export declare const updateOrganizationInvite: ({ inviteUuid, approve, }: {
50
+ inviteUuid: string;
51
+ approve: boolean;
52
+ }) => Promise<any>;
53
+ export declare const changeUserSettings: (data: IUserSettings, showToast?: boolean) => Promise<any>;
54
+ export declare const changeOrganizationSettings: (data: IOrganizationSettings) => Promise<any>;
55
+ export declare const changeUserSettingsByOrg: (data: IUserSettingsByOrg) => Promise<any>;
@@ -0,0 +1,4 @@
1
+ import { IToken } from '../types/Auth/IToken';
2
+ export declare const decodeToken: (token?: string | null) => IToken | undefined;
3
+ export declare const createCodeVerifier: () => string;
4
+ export declare const createCodeChallenge: (codeVerifier: string) => string;
@@ -0,0 +1,6 @@
1
+ import { FC, ReactNode } from 'react';
2
+ interface IProps {
3
+ children: ReactNode;
4
+ }
5
+ export declare const AxiosTokenHandler: FC<IProps>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const BusinessYearChooser: FC;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const BusinessYearPage: FC;
3
+ export default BusinessYearPage;
@@ -0,0 +1,13 @@
1
+ import { Dispatch, FC, SetStateAction } from 'react';
2
+ import { IUseMutationData } from '../../types/IReactQuerry';
3
+ import { UseMutationResult } from '@tanstack/react-query';
4
+ import { AxiosResponse } from 'axios';
5
+ interface Props {
6
+ textId: string;
7
+ itemUuid: string;
8
+ setItemUuid: Dispatch<SetStateAction<string>>;
9
+ onSuccess: () => void;
10
+ useDeleteItemMutation: ({ onSuccess, }: IUseMutationData) => UseMutationResult<AxiosResponse<any, any>, Error, string, unknown>;
11
+ }
12
+ export declare const DeleteItemDialog: FC<Props>;
13
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Dispatch, FC, SetStateAction } from 'react';
2
+ import { IUseMutationData } from '../../types/IReactQuerry';
3
+ import { UseMutationResult } from '@tanstack/react-query';
4
+ import { AxiosResponse } from 'axios';
5
+ interface Props {
6
+ textId: string;
7
+ itemUuids: string[];
8
+ setItemUuids: Dispatch<SetStateAction<string[]>>;
9
+ onSuccess: () => void;
10
+ useDeleteItemMutation: ({ onSuccess, }: IUseMutationData) => UseMutationResult<AxiosResponse<any, any>, Error, {
11
+ itemUuids: string[];
12
+ }, unknown>;
13
+ }
14
+ export declare const DeleteItemsDialog: FC<Props>;
15
+ export {};
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ hideModules?: boolean;
4
+ }
5
+ export declare const ModuleSelect: FC<Props>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Notifications: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const UserMenu: FC;
@@ -0,0 +1,9 @@
1
+ import { FC, ReactNode } from 'react';
2
+ interface Props {
3
+ customTitle?: string;
4
+ hideModules?: boolean;
5
+ hideNotifications?: boolean;
6
+ children?: ReactNode;
7
+ }
8
+ export declare const Header: FC<Props>;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ import { IAnyObject } from '@inceptionbg/iui';
2
+ import { Dispatch, FC, SetStateAction } from 'react';
3
+ import { IIndexData } from '../../types/App/Document/IndexData';
4
+ interface Props {
5
+ searchData: IAnyObject;
6
+ setSearchData: Dispatch<SetStateAction<IAnyObject>>;
7
+ indexesSearch: Partial<IIndexData>[];
8
+ setIndexesSearch: Dispatch<SetStateAction<Partial<IIndexData>[]>>;
9
+ documentTypeUuid?: string;
10
+ type?: 'document' | 'case' | 'contract';
11
+ }
12
+ export declare const IndexDataSearch: FC<Props>;
13
+ export {};
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { IIndexData } from '../../types/App/Document/IndexData';
3
+ interface Props {
4
+ indexes: Partial<IIndexData>[];
5
+ search: any;
6
+ setSearch: (search: any) => void;
7
+ type?: 'document' | 'case' | 'contract';
8
+ }
9
+ export declare const IndexDataSearchFields: FC<Props>;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ isOpen: boolean;
4
+ handleClosePopover: () => void;
5
+ }
6
+ export declare const ChangeOrganizationDialog: FC<Props>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ }
6
+ export declare const OrganizationInvitesDialog: FC<Props>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { FC, ReactNode } from 'react';
2
+ interface Props {
3
+ children: ReactNode;
4
+ }
5
+ export declare const ReactQueryProvider: FC<Props>;
6
+ export {};
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { IRoute } from '../../types/Auth/IRouter';
3
+ import { ISidebarItem } from '../../types/ISidebar';
4
+ interface Props {
5
+ routes: IRoute[];
6
+ sidebarItems: ISidebarItem[][];
7
+ hideNotifications?: boolean;
8
+ }
9
+ export declare const Router: FC<Props>;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ link: string;
4
+ }
5
+ export declare const AddButton: FC<Props>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { FC, ReactElement } from 'react';
2
+ import { ISidebarItem } from '../../types/ISidebar';
3
+ interface Props {
4
+ items: ISidebarItem[][];
5
+ UserBox?: ReactElement;
6
+ }
7
+ export declare const Sidebar: FC<Props>;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { ISidebarItem } from '../../types/ISidebar';
3
+ export declare const SidebarItem: FC<ISidebarItem>;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ }
6
+ export declare const MyAccountDialog: FC<Props>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ }
6
+ export declare const ChangePassword: FC<Props>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import { IUser } from '../../../types/Auth/IUser';
2
+ export declare const useUpdateUser: (onSuccess: () => void) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../types/Base/axios").AxiosResponse<any, any>, Error, Partial<IUser>, unknown>;
3
+ export declare const useChangeUserPass: (onSuccess: () => void) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../types/Base/axios").AxiosResponse<any, any>, Error, {
4
+ userUuid: string;
5
+ data: {
6
+ oldPassword: string;
7
+ newPassword: string;
8
+ };
9
+ }, unknown>;
@@ -0,0 +1,6 @@
1
+ import { FC, ReactNode } from 'react';
2
+ interface Props {
3
+ children: ReactNode;
4
+ }
5
+ export declare const AppContent: FC<Props>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { FC, ReactNode } from 'react';
2
+ interface Props {
3
+ i18n: any;
4
+ children: ReactNode;
5
+ }
6
+ export declare const AppWrapper: FC<Props>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ISidebarItem } from '../../types/ISidebar';
3
+ interface Props {
4
+ sidebarItems: ISidebarItem[][];
5
+ hideNotifications?: boolean;
6
+ children: ReactNode;
7
+ }
8
+ export declare const MainPageWrapper: FC<Props>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ import { Dispatch, ReactNode, SetStateAction } from 'react';
2
+ interface IBusinessYearContext {
3
+ businessYear: string;
4
+ setBusinessYear: Dispatch<SetStateAction<string>>;
5
+ }
6
+ export declare const BusinessYearContext: import("react").Context<IBusinessYearContext>;
7
+ export declare const BusinessYearProvider: ({ children }: {
8
+ children: ReactNode;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const useBusinessYearContext: () => IBusinessYearContext;
11
+ export declare const setBusinessYearContext: (year: string) => void;
12
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Dispatch, FC, ReactNode, SetStateAction } from 'react';
2
+ interface IErrorContext {
3
+ errors: string[];
4
+ setErrors: Dispatch<SetStateAction<string[]>>;
5
+ }
6
+ export declare const ErrorContext: import("react").Context<IErrorContext>;
7
+ interface IProps {
8
+ errors: string[];
9
+ setErrors: Dispatch<SetStateAction<string[]>>;
10
+ children: ReactNode;
11
+ }
12
+ export declare const ErrorProvider: FC<IProps>;
13
+ export {};
@@ -0,0 +1,28 @@
1
+ import { IAnyObject, IBooleanObject } from '@inceptionbg/iui';
2
+ import { ReactNode } from 'react';
3
+ import { IModuleIdsObj } from '../types/Auth/IModule';
4
+ import { IOrganization } from '../types/Auth/IOrganization';
5
+ import { IOrganizationSettings } from '../types/Auth/IPrivileges';
6
+ import { IUser, IUserSettings } from '../types/Auth/IUser';
7
+ interface IUserOrgContext {
8
+ user: IUser | null;
9
+ reloadUser: (callback?: () => void) => void;
10
+ userSettings: IUserSettings;
11
+ updateUserSettings: (data: IUserSettings, showToast?: boolean) => void;
12
+ privileges: IBooleanObject;
13
+ organization: IOrganization | null;
14
+ changeOrganization: (orgUuid: string, callback?: () => void) => void;
15
+ orgSettings: IOrganizationSettings;
16
+ updateOrgSettings: (data: IOrganizationSettings) => void;
17
+ userSettingsByOrg: IAnyObject;
18
+ updateUserSettingsByOrg: (data: IOrganizationSettings) => void;
19
+ moduleIds: IModuleIdsObj;
20
+ }
21
+ export declare const UserOrgContext: import("react").Context<IUserOrgContext>;
22
+ interface IProps {
23
+ children: ReactNode;
24
+ }
25
+ export declare const UserOrgProvider: ({ children }: IProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const useUserAndOrg: () => IUserOrgContext;
27
+ export declare const useModules: () => IModuleIdsObj;
28
+ export {};
@@ -0,0 +1,12 @@
1
+ import { IOrganizationInvite, IOrganizationInvitesFetchOption } from '../types/Auth/IOrganization';
2
+ import { IPagination } from '@inceptionbg/iui';
3
+ export declare const useOrgInvites: ({ enabled, pagination, fetchOptions, }: {
4
+ enabled: boolean;
5
+ pagination?: IPagination | undefined;
6
+ fetchOptions?: IOrganizationInvitesFetchOption[] | undefined;
7
+ }) => {
8
+ invites: IOrganizationInvite[];
9
+ count: number;
10
+ isLoading: boolean;
11
+ refetch: () => void;
12
+ };
@@ -0,0 +1,56 @@
1
+ import './styles/App.scss';
2
+ import type { ApprovalStatus, Constraints, DocumentApprovalFetchOption, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, ICondition, IConditionIndexData, IConstraint, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, ILatestApprovalProcess, IPhaseGroup, IPhaseGroupSearch, IVoteSearch } from './types/App/Document/IApproval';
3
+ import type { DocumentFetchOption, DocumentIndicies, DocumentStatuses, IDocument, IDocumentAny, IDocumentIndex, IDocumentSearch, IDocumentType } from './types/App/Document/IDocument';
4
+ import type { DocumentFileFetchOptions, IDocumentFile, IDocumentFileParams, IFile, IFileSignData, IFileType, IFileUpload, IUploadDocumentType } from './types/App/Document/IDocumentFile';
5
+ import type { DocumentSendFetchOption, IDocumentSend, IDocumentSendSearch } from './types/App/Document/IDocumentSend';
6
+ import type { IInvoice, IInvoiceItem } from './types/App/Document/Invoice/IInvoice';
7
+ import type { ICountry, IMunicipality, IPlace } from './types/App/Partner/IAddress';
8
+ import type { IBankAccount, IBankAccountSearch, IContactPerson, INote, INoteSearch, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, PartnerGroupType } from './types/App/Partner/IPartner';
9
+ import type { IEnv, IServiceApi } from './types/Auth/IEnv';
10
+ import type { IModule, IModuleId } from './types/Auth/IModule';
11
+ import type { IOrganization, IOrganizationFetchOption, IOrganizationSearch, OrganizationStatus, OrganizationStatuses } from './types/Auth/IOrganization';
12
+ import type { IOrganizationSettings } from './types/Auth/IPrivileges';
13
+ import type { IRole, IRolePrivilege, RolePrivilegeGroup } from './types/Auth/IRole';
14
+ import type { IRoute } from './types/Auth/IRouter';
15
+ import type { IToken } from './types/Auth/IToken';
16
+ import type { IUser, IUserSettings, UserFetchOption } from './types/Auth/IUser';
17
+ import type { IUseMutationData } from './types/IReactQuerry';
18
+ import type { ISidebarItem } from './types/ISidebar';
19
+ import type { AxiosError } from 'axios';
20
+ import type { ISubsystem } from './types/ISubsystem';
21
+ import { getUser, login, logout } from './auth/Auth';
22
+ import { decodeToken } from './auth/AuthUtils';
23
+ import { AxiosTokenHandler } from './auth/AxiosTokenHandler';
24
+ import { envVars } from './utils/EnvVars';
25
+ import { ModuleIds, modules } from './utils/ModuleUtils';
26
+ import * as ReactQuery from '@tanstack/react-query';
27
+ import { useQuery, useMutation, keepPreviousData } from '@tanstack/react-query';
28
+ import { ErrorContext } from './context/ErrorContext';
29
+ import { useModules, UserOrgContext, UserOrgProvider, useUserAndOrg } from './context/UserOrgContext';
30
+ import { useBusinessYearContext, BusinessYearProvider, setBusinessYearContext } from './context/BusinessYearContext';
31
+ import { Router } from './components/Router/Router';
32
+ import LoginPage from './pages/LoginPage';
33
+ import { NoAccessInfo } from './pages/NoAccessInfo';
34
+ import NoMatchPage from './pages/NoMatchPage';
35
+ import SelectOrgPage from './pages/SelectOrg/SelectOrgPage';
36
+ import { RolesWithPrivileges } from './pages/Roles/RolesWithPrivileges';
37
+ import { AppWrapper } from './components/Wrappers/App/AppWrapper';
38
+ import { Header } from './components/Header/Header';
39
+ import { MainPageWrapper } from './components/Wrappers/MainPageWrapper';
40
+ import { ReactQueryProvider } from './components/ReactQuery/ReactQueryProvider';
41
+ import { Sidebar } from './components/Sidebar/Sidebar';
42
+ import { IndexDataSearch } from './components/IndexData/IndexDataSearch';
43
+ import { DeleteItemDialog } from './components/Dialogs/DeleteItemDialog';
44
+ import { DeleteItemsDialog } from './components/Dialogs/DeleteItemsDialog';
45
+ import { i18nMainCyrilic, i18nMainLatin, i18nMainME_Latin } from './utils/i18nMain';
46
+ import { SubSystems } from './types/ISubsystem';
47
+ import { BusinessYearChooser } from './components/BusinessYear/BusinessYearChooser';
48
+ import BusinessYearPage from './components/BusinessYear/BusinessYearPage';
49
+ export { AxiosError, IEnv, IServiceApi, IModule, IModuleId, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IUser, IUserSettings, OrganizationStatus, OrganizationStatuses, UserFetchOption, };
50
+ export { ApprovalStatus, Constraints, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, ICondition, IConditionIndexData, IConstraint, IContactPerson, ICountry, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IMunicipality, INote, INoteSearch, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, IRoute, ISidebarItem, IToken, IUploadDocumentType, IVoteSearch, PartnerGroupType, SubSystems, ISubsystem, };
51
+ export { IRole, IRolePrivilege, RolePrivilegeGroup };
52
+ export { AxiosTokenHandler };
53
+ export { ErrorContext, useModules, useUserAndOrg, UserOrgContext, UserOrgProvider, BusinessYearProvider, useBusinessYearContext, setBusinessYearContext, BusinessYearChooser, BusinessYearPage, };
54
+ export { i18nMainLatin, i18nMainCyrilic, i18nMainME_Latin, LoginPage, ModuleIds, NoAccessInfo, NoMatchPage, Router, SelectOrgPage, RolesWithPrivileges, decodeToken, envVars, getUser, login, logout, modules, };
55
+ export { AppWrapper, DeleteItemDialog, DeleteItemsDialog, Header, IndexDataSearch, MainPageWrapper, Sidebar, };
56
+ export { ReactQuery, ReactQueryProvider, useQuery, useMutation, keepPreviousData, IUseMutationData, };
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const LoginPage: FC;
3
+ export default LoginPage;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ title?: string;
4
+ buttonLabel?: string;
5
+ showLogout?: boolean;
6
+ }
7
+ export declare const NoAccessInfo: FC<Props>;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const NoMatchPage: FC;
3
+ export default NoMatchPage;
@@ -0,0 +1,8 @@
1
+ import { IAnyObject } from '@inceptionbg/iui';
2
+ import { FC } from 'react';
3
+ interface Props {
4
+ modulePrivileges: string[];
5
+ usePrivileges: () => IAnyObject;
6
+ }
7
+ export declare const RolesWithPrivileges: FC<Props>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ import { IAnyObject } from '@inceptionbg/iui';
2
+ import { FC } from 'react';
3
+ import { IRoleData } from '../../../types/Auth/IRole';
4
+ interface Props {
5
+ modulePrivileges: string[];
6
+ roleData: IRoleData | null;
7
+ onCancel: () => void;
8
+ usePrivileges: () => IAnyObject;
9
+ }
10
+ export declare const PrivilegesForm: FC<Props>;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const SelectOrgPage: FC;
3
+ export default SelectOrgPage;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const OrgInvites: FC;
@@ -0,0 +1,8 @@
1
+ import { INotification } from '../types/INotifications';
2
+ export declare const getNotifications: (limit: number, seen: boolean | null) => Promise<{
3
+ notifications: INotification[];
4
+ totalRows: number;
5
+ }>;
6
+ export declare const getNewNotificationCount: () => Promise<number>;
7
+ export declare const markNotificationAsSeen: (notificationUuid: string) => Promise<import("../types/Base/axios").AxiosResponse<any, any>>;
8
+ export declare const markAllNotificationsAsSeen: () => Promise<import("../types/Base/axios").AxiosResponse<any, any>>;
@@ -0,0 +1,7 @@
1
+ import { IRole, IRoleData } from '../types/Auth/IRole';
2
+ export declare const getRoles: () => Promise<IRole[]>;
3
+ export declare const getRole: (roleUuid: string) => Promise<IRoleData>;
4
+ export declare const postRolePrivileges: (data: {
5
+ roleUuid: string;
6
+ privileges: string[];
7
+ }) => Promise<import("../types/Base/axios").AxiosResponse<any, any>>;