@inceptionbg/main 2.0.173 → 2.0.175

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 (130) hide show
  1. package/dist/index.d.ts +2154 -0
  2. package/dist/types/global.d.ts +63 -63
  3. package/package.json +48 -48
  4. package/dist/tempTypes/assets/icons/duotone/faBell.d.ts +0 -2
  5. package/dist/tempTypes/assets/icons/duotone/faBoxArchive.d.ts +0 -2
  6. package/dist/tempTypes/assets/icons/duotone/faCabinetFiling.d.ts +0 -2
  7. package/dist/tempTypes/assets/icons/duotone/faCashRegister.d.ts +0 -2
  8. package/dist/tempTypes/assets/icons/duotone/faDisplayChartUpCircleDollar.d.ts +0 -2
  9. package/dist/tempTypes/assets/icons/duotone/faEnvelope.d.ts +0 -2
  10. package/dist/tempTypes/assets/icons/duotone/faFileContract.d.ts +0 -2
  11. package/dist/tempTypes/assets/icons/duotone/faFileInvoice.d.ts +0 -2
  12. package/dist/tempTypes/assets/icons/duotone/faFilePen.d.ts +0 -2
  13. package/dist/tempTypes/assets/icons/duotone/faGear.d.ts +0 -2
  14. package/dist/tempTypes/assets/icons/duotone/faGridHorizontal.d.ts +0 -2
  15. package/dist/tempTypes/assets/icons/duotone/faHandsHoldingHeart.d.ts +0 -2
  16. package/dist/tempTypes/assets/icons/duotone/faList.d.ts +0 -2
  17. package/dist/tempTypes/assets/icons/duotone/faListCheck.d.ts +0 -2
  18. package/dist/tempTypes/assets/icons/duotone/faPlusCircle.d.ts +0 -2
  19. package/dist/tempTypes/assets/icons/duotone/faScreencast.d.ts +0 -2
  20. package/dist/tempTypes/assets/icons/duotone/faShelves.d.ts +0 -2
  21. package/dist/tempTypes/assets/icons/duotone/faSignature.d.ts +0 -2
  22. package/dist/tempTypes/assets/icons/duotone/faWarehouse.d.ts +0 -2
  23. package/dist/tempTypes/assets/icons/duotone/faWarehouseFull.d.ts +0 -2
  24. package/dist/tempTypes/assets/icons/light/faAngleDown.d.ts +0 -2
  25. package/dist/tempTypes/assets/icons/light/faArrowRightFromBracket.d.ts +0 -2
  26. package/dist/tempTypes/assets/icons/light/faBell.d.ts +0 -2
  27. package/dist/tempTypes/assets/icons/light/faBriefcase.d.ts +0 -2
  28. package/dist/tempTypes/assets/icons/light/faBusinessPlus.d.ts +0 -2
  29. package/dist/tempTypes/assets/icons/light/faCalendarDays.d.ts +0 -2
  30. package/dist/tempTypes/assets/icons/light/faCircleUser.d.ts +0 -2
  31. package/dist/tempTypes/assets/icons/light/faEnvelope.d.ts +0 -2
  32. package/dist/tempTypes/assets/icons/light/faMagnifyingGlass.d.ts +0 -2
  33. package/dist/tempTypes/assets/icons/light/faTrashCan.d.ts +0 -2
  34. package/dist/tempTypes/assets/icons/light/faUserGear.d.ts +0 -2
  35. package/dist/tempTypes/assets/icons/regular/faAngleLeft.d.ts +0 -2
  36. package/dist/tempTypes/assets/icons/regular/faAngleRight.d.ts +0 -2
  37. package/dist/tempTypes/assets/icons/regular/faMagnifyingGlassMinus.d.ts +0 -2
  38. package/dist/tempTypes/assets/icons/regular/faMagnifyingGlassPlus.d.ts +0 -2
  39. package/dist/tempTypes/assets/icons/regular/faQrcode.d.ts +0 -2
  40. package/dist/tempTypes/assets/icons/solid/faAngleLeft.d.ts +0 -2
  41. package/dist/tempTypes/assets/icons/solid/faArrowRight.d.ts +0 -2
  42. package/dist/tempTypes/assets/icons/solid/faCaretDown.d.ts +0 -2
  43. package/dist/tempTypes/assets/icons/solid/faCheck.d.ts +0 -2
  44. package/dist/tempTypes/assets/icons/solid/faEnvelopeDot.d.ts +0 -2
  45. package/dist/tempTypes/assets/icons/solid/faPlus.d.ts +0 -2
  46. package/dist/tempTypes/assets/icons/solid/faXmark.d.ts +0 -2
  47. package/dist/tempTypes/auth/Auth.d.ts +0 -55
  48. package/dist/tempTypes/auth/AuthUtils.d.ts +0 -4
  49. package/dist/tempTypes/auth/AxiosTokenHandler.d.ts +0 -6
  50. package/dist/tempTypes/components/BusinessYear/BusinessYearChooser.d.ts +0 -2
  51. package/dist/tempTypes/components/BusinessYear/BusinessYearPage.d.ts +0 -3
  52. package/dist/tempTypes/components/Dialogs/DeleteItemDialog.d.ts +0 -13
  53. package/dist/tempTypes/components/Dialogs/DeleteItemsDialog.d.ts +0 -15
  54. package/dist/tempTypes/components/Header/Components/ModuleSelect.d.ts +0 -6
  55. package/dist/tempTypes/components/Header/Components/Notifications.d.ts +0 -2
  56. package/dist/tempTypes/components/Header/Components/UserMenu.d.ts +0 -2
  57. package/dist/tempTypes/components/Header/Header.d.ts +0 -9
  58. package/dist/tempTypes/components/IndexData/IndexDataSearch.d.ts +0 -13
  59. package/dist/tempTypes/components/IndexData/IndexDataSearchFields.d.ts +0 -10
  60. package/dist/tempTypes/components/Organizations/ChangeOrganizationDialog.d.ts +0 -7
  61. package/dist/tempTypes/components/Organizations/OrganizationInvitesDialog.d.ts +0 -7
  62. package/dist/tempTypes/components/ReactQuery/ReactQueryProvider.d.ts +0 -6
  63. package/dist/tempTypes/components/Router/Router.d.ts +0 -10
  64. package/dist/tempTypes/components/Sidebar/AddButton.d.ts +0 -6
  65. package/dist/tempTypes/components/Sidebar/Sidebar.d.ts +0 -8
  66. package/dist/tempTypes/components/Sidebar/SidebarItem.d.ts +0 -3
  67. package/dist/tempTypes/components/User/MyAccountDialog.d.ts +0 -7
  68. package/dist/tempTypes/components/User/components/ChangePassword.d.ts +0 -7
  69. package/dist/tempTypes/components/User/repo/useUserMutations.d.ts +0 -9
  70. package/dist/tempTypes/components/Wrappers/App/AppContent.d.ts +0 -6
  71. package/dist/tempTypes/components/Wrappers/App/AppWrapper.d.ts +0 -7
  72. package/dist/tempTypes/components/Wrappers/MainPageWrapper.d.ts +0 -9
  73. package/dist/tempTypes/context/BusinessYearContext.d.ts +0 -12
  74. package/dist/tempTypes/context/ErrorContext.d.ts +0 -13
  75. package/dist/tempTypes/context/UserOrgContext.d.ts +0 -28
  76. package/dist/tempTypes/hooks/useOrgInvites.d.ts +0 -12
  77. package/dist/tempTypes/index.d.ts +0 -56
  78. package/dist/tempTypes/pages/LoginPage.d.ts +0 -3
  79. package/dist/tempTypes/pages/NoAccessInfo.d.ts +0 -8
  80. package/dist/tempTypes/pages/NoMatchPage.d.ts +0 -3
  81. package/dist/tempTypes/pages/Roles/RolesWithPrivileges.d.ts +0 -8
  82. package/dist/tempTypes/pages/Roles/components/PrivilegesForm.d.ts +0 -11
  83. package/dist/tempTypes/pages/SelectOrg/SelectOrgPage.d.ts +0 -3
  84. package/dist/tempTypes/pages/SelectOrg/components/OrgInvites.d.ts +0 -2
  85. package/dist/tempTypes/repo/NotificationsRepository.d.ts +0 -8
  86. package/dist/tempTypes/repo/RoleRepo.d.ts +0 -7
  87. package/dist/tempTypes/types/App/Administration/IEmployee.d.ts +0 -23
  88. package/dist/tempTypes/types/App/Administration/IJob.d.ts +0 -10
  89. package/dist/tempTypes/types/App/Contracts/File/IContractFile.d.ts +0 -30
  90. package/dist/tempTypes/types/App/Contracts/IContract.d.ts +0 -241
  91. package/dist/tempTypes/types/App/Document/IApproval.d.ts +0 -143
  92. package/dist/tempTypes/types/App/Document/ICase.d.ts +0 -48
  93. package/dist/tempTypes/types/App/Document/IDocument.d.ts +0 -219
  94. package/dist/tempTypes/types/App/Document/IDocumentFile.d.ts +0 -67
  95. package/dist/tempTypes/types/App/Document/IDocumentSend.d.ts +0 -128
  96. package/dist/tempTypes/types/App/Document/IEmailDocument.d.ts +0 -52
  97. package/dist/tempTypes/types/App/Document/IIndexDataCodebook.d.ts +0 -15
  98. package/dist/tempTypes/types/App/Document/ISignatory.d.ts +0 -34
  99. package/dist/tempTypes/types/App/Document/IndexData.d.ts +0 -60
  100. package/dist/tempTypes/types/App/Document/Invoice/IAccount.d.ts +0 -11
  101. package/dist/tempTypes/types/App/Document/Invoice/IExpenseAllocation.d.ts +0 -39
  102. package/dist/tempTypes/types/App/Document/Invoice/IFactoring.d.ts +0 -6
  103. package/dist/tempTypes/types/App/Document/Invoice/IInvoice.d.ts +0 -236
  104. package/dist/tempTypes/types/App/Document/Invoice/IPayment.d.ts +0 -40
  105. package/dist/tempTypes/types/App/Document/Invoice/IProduct.d.ts +0 -23
  106. package/dist/tempTypes/types/App/Document/Invoice/ITaxAllocation.d.ts +0 -37
  107. package/dist/tempTypes/types/App/Document/Invoice/IVatIndicator.d.ts +0 -14
  108. package/dist/tempTypes/types/App/Document/Office/IOfficeDocument.d.ts +0 -27
  109. package/dist/tempTypes/types/App/Document/Shipment/IShipment.d.ts +0 -25
  110. package/dist/tempTypes/types/App/Partner/IAddress.d.ts +0 -14
  111. package/dist/tempTypes/types/App/Partner/IPartner.d.ts +0 -98
  112. package/dist/tempTypes/types/Auth/IEnv.d.ts +0 -13
  113. package/dist/tempTypes/types/Auth/IModule.d.ts +0 -15
  114. package/dist/tempTypes/types/Auth/IOrganization.d.ts +0 -140
  115. package/dist/tempTypes/types/Auth/IPrivileges.d.ts +0 -2
  116. package/dist/tempTypes/types/Auth/IRole.d.ts +0 -25
  117. package/dist/tempTypes/types/Auth/IRouter.d.ts +0 -7
  118. package/dist/tempTypes/types/Auth/IToken.d.ts +0 -12
  119. package/dist/tempTypes/types/Auth/IUser.d.ts +0 -39
  120. package/dist/tempTypes/types/IError.d.ts +0 -5
  121. package/dist/tempTypes/types/INotifications.d.ts +0 -15
  122. package/dist/tempTypes/types/IReactQuerry.d.ts +0 -4
  123. package/dist/tempTypes/types/IScan.d.ts +0 -17
  124. package/dist/tempTypes/types/ISidebar.d.ts +0 -27
  125. package/dist/tempTypes/types/ISubsystem.d.ts +0 -2
  126. package/dist/tempTypes/utils/EnvVars.d.ts +0 -2
  127. package/dist/tempTypes/utils/ImageUtils.d.ts +0 -4
  128. package/dist/tempTypes/utils/LoadOptions.d.ts +0 -20
  129. package/dist/tempTypes/utils/ModuleUtils.d.ts +0 -3
  130. package/dist/tempTypes/utils/i18nMain.d.ts +0 -662
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- interface Props {
3
- link: string;
4
- }
5
- export declare const AddButton: FC<Props>;
6
- export {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { ISidebarItem } from '../../types/ISidebar';
3
- export declare const SidebarItem: FC<ISidebarItem>;
@@ -1,7 +0,0 @@
1
- import { FC } from 'react';
2
- interface Props {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- }
6
- export declare const MyAccountDialog: FC<Props>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { FC } from 'react';
2
- interface Props {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- }
6
- export declare const ChangePassword: FC<Props>;
7
- export {};
@@ -1,9 +0,0 @@
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>;
@@ -1,6 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- interface Props {
3
- children: ReactNode;
4
- }
5
- export declare const AppContent: FC<Props>;
6
- export {};
@@ -1,7 +0,0 @@
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 {};
@@ -1,9 +0,0 @@
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 {};
@@ -1,12 +0,0 @@
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 {};
@@ -1,13 +0,0 @@
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 {};
@@ -1,28 +0,0 @@
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 {};
@@ -1,12 +0,0 @@
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
- };
@@ -1,56 +0,0 @@
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, };
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- declare const LoginPage: FC;
3
- export default LoginPage;
@@ -1,8 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- declare const NoMatchPage: FC;
3
- export default NoMatchPage;
@@ -1,8 +0,0 @@
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 {};
@@ -1,11 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- declare const SelectOrgPage: FC;
3
- export default SelectOrgPage;
@@ -1,2 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const OrgInvites: FC;
@@ -1,8 +0,0 @@
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>>;
@@ -1,7 +0,0 @@
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>>;
@@ -1,23 +0,0 @@
1
- import { IJob } from './IJob';
2
- import { IUser } from '../../Auth/IUser';
3
- import { ISimpleObjectWithCode } from '@inceptionbg/iui';
4
- import { IOrganizationalUnit } from '../../Auth/IOrganization';
5
- export interface IEmployee {
6
- uuid: string;
7
- firstName?: string;
8
- lastName?: string;
9
- personalIdentityNumber?: string;
10
- evidenceNumber?: string;
11
- email?: string;
12
- user?: IUser;
13
- emailNotifications?: boolean;
14
- deleted?: boolean;
15
- job?: IJob;
16
- orun?: IOrganizationalUnit;
17
- representation?: string;
18
- costCenter?: ISimpleObjectWithCode;
19
- }
20
- export interface IEmployeeSearch {
21
- fullText?: string;
22
- }
23
- export type EmployeeFetchOption = 'JOB' | 'COST_CENTER';
@@ -1,10 +0,0 @@
1
- import { IOrganization } from '../../Auth/IOrganization';
2
- export interface IJob {
3
- uuid?: string;
4
- name?: string;
5
- code?: string;
6
- organization?: IOrganization;
7
- }
8
- export interface IJobSearch {
9
- fullText?: string;
10
- }
@@ -1,30 +0,0 @@
1
- import { ISimpleObject } from '@inceptionbg/iui';
2
- import { IUser } from '../../../Auth/IUser';
3
- export interface IContractFile {
4
- uuid?: string;
5
- name?: string;
6
- storedFile?: {
7
- uuid?: string;
8
- originalFileName?: string;
9
- downloadUrl?: string;
10
- lengthInBytes?: number;
11
- uploadedAt?: string;
12
- fileUuid?: string;
13
- storage?: {
14
- url?: string;
15
- };
16
- };
17
- createdBy?: IUser;
18
- deleted?: boolean;
19
- previousVersion?: ISimpleObject;
20
- externalSource?: boolean;
21
- orderNumber?: string | number;
22
- }
23
- export interface IContractFileParams {
24
- onlyAttachedFiles?: boolean;
25
- includeDeleted?: boolean;
26
- }
27
- export interface IUploadContractType {
28
- file?: any;
29
- name?: string;
30
- }
@@ -1,241 +0,0 @@
1
- import { ISimpleObject, ISimpleObjectWithCode } from '@inceptionbg/iui';
2
- import { IOrganization, IOrganizationalUnitUpdate } from '../../Auth/IOrganization';
3
- import { IEmployee } from '../Administration/IEmployee';
4
- import { IAccount } from '../Document/Invoice/IAccount';
5
- import { IPartner } from '../Partner/IPartner';
6
- import { IIndicesIndex } from '../Document/IndexData';
7
- import { IProduct } from '../Document/Invoice/IProduct';
8
- export interface IContractNew {
9
- uuid?: string;
10
- contractor?: IPartner;
11
- contractors?: IPartner[];
12
- partnerContractNumber?: string;
13
- type?: ContractType;
14
- contractNumber?: string;
15
- conclusionDate?: string;
16
- expirationDate?: string;
17
- periodFrom?: string;
18
- periodTo?: string;
19
- subject?: string;
20
- note?: string;
21
- active?: boolean;
22
- organization?: IOrganization;
23
- manager?: IEmployee;
24
- amountWithVat?: number;
25
- amountWithoutVat?: number;
26
- warningAmountWithVat?: number;
27
- warningAmountWithoutVat?: number;
28
- currency?: ISimpleObjectWithCode;
29
- exchangeRate?: number;
30
- warningDate?: string;
31
- deactivationDate?: string;
32
- deactivationNote?: string;
33
- utilization?: IContractUtilization;
34
- paymentUtilization?: IContractUtilization;
35
- frameworkAgreementUtilization?: IContractUtilization;
36
- bestPaidBefore?: number;
37
- deliveryTime?: number;
38
- complaintDeadline?: number;
39
- warrantyPeriod?: number;
40
- discount?: number;
41
- account?: IAccount;
42
- organizationalUnit?: IOrganizationalUnitUpdate;
43
- amountWarningPercentage?: number;
44
- foreignAmountWithVat?: number;
45
- foreignAmountWithoutVat?: number;
46
- warningForeignAmountWithVat?: number;
47
- warningForeignAmountWithoutVat?: number;
48
- lastAnnex?: IAnnex;
49
- annexes?: IAnnex[];
50
- frameworkAgreement?: IContract;
51
- group?: 'CONTRACT' | 'FRAMEWORK_AGREEMENT';
52
- estimatedValueWithVat?: number;
53
- estimatedValueWithoutVat?: number;
54
- jointOffer?: boolean;
55
- subContractor?: boolean;
56
- procurementCaseType?: IProcurementCaseType;
57
- publicProcurementLaw?: boolean;
58
- publicProcurementLawObj?: ISimpleObject;
59
- procurementLawReferenceNUmber?: string;
60
- procurementLawReason?: string;
61
- reservedAmountWithoutVat?: string;
62
- reservedAmountWithVat?: string;
63
- foreignExchange?: boolean;
64
- procurementOrdinalNumber?: string;
65
- providingServicesDeadline?: ServiceCostCenter;
66
- providingServicesCostCenter?: ISimpleObjectWithCode;
67
- commissionMembers?: IEmployee[];
68
- contractType?: IContractType;
69
- contractIndices?: IIndicesIndex[];
70
- indicesData?: IIndicesIndex[];
71
- }
72
- export interface IContract extends IContractNew {
73
- uuid: string;
74
- }
75
- export type ContractFetchOption = 'ACCOUNT' | 'ANNEX' | 'CONTRACTORS' | 'CURRENCY' | 'DEACTIVATED_BY' | 'FRAMEWORK_AGREEMENT' | 'MANAGER' | 'ORGANIZATIONAL_UNIT' | 'UTILIZATION' | 'PAYMENT_UTILIZATION' | 'ANNEXES' | 'RESERVED_AMOUNT' | 'CONTRACT_TYPE' | 'INDEX_DATA';
76
- export type ContractFieldOption = 'EXPIRATION_DATE' | 'SUBJECT' | 'BEST_PAID_BEFORE' | 'DELIVERY_TIME' | 'COMPLAINT_DEADLINE' | 'WARRANTY_PERIOD' | 'AMOUNT_WITH_VAT' | 'AMOUNT_WITHOUT_VAT' | 'DISCOUNT' | 'CONTRACTOR';
77
- export interface IContractSearch {
78
- contractNumberLike?: string;
79
- conclusionDateFrom?: string;
80
- conclusionDateTo?: string;
81
- expirationDateFrom?: string;
82
- expirationDateTo?: string;
83
- contractorUuid?: string;
84
- active?: boolean;
85
- type?: ContractType;
86
- expireInDays?: number;
87
- sort?: string;
88
- accountUuid?: string;
89
- manager?: IEmployee;
90
- managerUuid?: string;
91
- contractorsUuid?: string[];
92
- frameworkAgreementUuid?: string;
93
- periodFromFrom?: string;
94
- periodFromTo?: string;
95
- periodToFrom?: string;
96
- periodToTo?: string;
97
- annexDateFrom?: string;
98
- annexDateTo?: string;
99
- partnerContractNumberLike?: string;
100
- documentAccountUuids?: string[];
101
- annexNumberLike?: string;
102
- jointOffer?: boolean;
103
- subContractor?: boolean;
104
- }
105
- export interface IContractItemSearch {
106
- nameLike?: string;
107
- codeLike?: string;
108
- manufacturerLike?: string;
109
- serialNumberLike?: string;
110
- }
111
- export interface IContractItem {
112
- uuid?: string;
113
- name?: string;
114
- valueWithoutVat?: number;
115
- valueWithVat?: number;
116
- vatPercentage?: number;
117
- vatAmount?: number;
118
- product?: IProduct;
119
- quantity?: number | string;
120
- discountPercentage?: number | string;
121
- unitPriceWithoutVat?: number | string;
122
- unitPriceWithVat?: number | string;
123
- unitOfMeasure?: ISimpleObject;
124
- }
125
- export declare const ContractTypes: readonly ["INCOME", "OUTCOME"];
126
- export type ContractType = (typeof ContractTypes)[number];
127
- export declare const ContractStatuses: readonly ["ACTIVE", "INACTIVE"];
128
- export type ContractStatus = (typeof ContractStatuses)[number];
129
- export interface IContractUtilization {
130
- utilizationWithVat?: number;
131
- utilizationWithoutVat?: number;
132
- remainingAmountWithVat?: number;
133
- remainingAmountWithoutVat?: number;
134
- utilizationPercentage?: number;
135
- }
136
- export interface IContractUtilizationSearch {
137
- type?: 'PAYMENT_UTILIZATION';
138
- }
139
- export interface IContractDeactivation {
140
- deactivationNote?: string;
141
- deactivationDate: string;
142
- }
143
- export interface IPlannedFund {
144
- uuid?: string;
145
- year?: number;
146
- amountWithVat?: number | string;
147
- amountWithoutVat?: number | string;
148
- }
149
- export interface IPlannedFundSearch {
150
- year?: number;
151
- amountWithVatFrom?: number | string;
152
- amountWithVatTo?: number | string;
153
- amountWithoutVatFrom?: number | string;
154
- amountWithoutVatTo?: number | string;
155
- }
156
- export type PlannedFundFetchOption = 'CONTRACT';
157
- export interface IAnnex {
158
- uuid?: string;
159
- annexNumber: string;
160
- changes: IAnnexChange[];
161
- contract: IContract;
162
- date: string;
163
- partnerAnnexNumber: string;
164
- }
165
- export interface IAnnexChange {
166
- field?: ContractFieldOption;
167
- newValue?: string | number;
168
- oldValue?: string | number;
169
- representation?: string;
170
- }
171
- export interface IAnnexSearch {
172
- annexNumberLike?: string;
173
- dateFrom?: string;
174
- dateTo?: string;
175
- }
176
- export type AnnexFetchOption = 'CONTRACT' | 'CHANGES';
177
- export interface IWarrantyNew {
178
- uuid?: string;
179
- contract?: IContract;
180
- organization?: IOrganization;
181
- number?: string;
182
- registrationDate?: string;
183
- authorizationNumber?: string;
184
- authorizationDate?: string;
185
- validUntil?: string;
186
- amount?: string;
187
- note?: string;
188
- returnDate?: string;
189
- returnDateWarning?: string;
190
- category?: IWarrantyCategory;
191
- given?: boolean;
192
- type?: IWarrantyType;
193
- contractorBank?: IPartner;
194
- contractWithBank?: IContract;
195
- }
196
- export interface IWarranty extends IWarrantyNew {
197
- uuid: string;
198
- contract: IContract;
199
- organization: IOrganization;
200
- number: string;
201
- type: IWarrantyType;
202
- }
203
- export type IWarrantyCategory = 'BANK_GUARANTEE' | 'BILL_OF_EXCHANGE';
204
- export interface IWarrantyType {
205
- uuid: string;
206
- name: string;
207
- }
208
- export interface IWarrantySearch {
209
- warrantyNumberLike?: string;
210
- contractNumberLike?: string;
211
- contractUuid?: string;
212
- }
213
- export interface IContractUtilization {
214
- uuid: string;
215
- contractNumber: string;
216
- amountWithVat?: number;
217
- amountWithoutVat?: number;
218
- contractorName: string;
219
- contractUtilizationThisYear: IContractUtilizationByYear;
220
- contractUtilizationLastYear: IContractUtilizationByYear;
221
- }
222
- export interface IContractUtilizationByYear {
223
- utilizationWithVat?: number;
224
- utilizationWithoutVat?: number;
225
- year: number;
226
- }
227
- export interface IProcurementCaseType {
228
- uuid?: string;
229
- name?: string;
230
- organization?: IOrganization;
231
- }
232
- export interface IProcurementCaseTypeSearch {
233
- nameLike?: string;
234
- }
235
- export declare const ServiceCostCenters: readonly ["SUCCESSIVELY", "COMPLETELY"];
236
- export type ServiceCostCenter = (typeof ServiceCostCenters)[number];
237
- export interface IContractType {
238
- uuid?: string;
239
- name?: string;
240
- organization?: IOrganization;
241
- }