@inceptionbg/main 2.0.187 → 3.0.2
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 +85 -100
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/global.d.ts +683 -691
- package/package.json +50 -48
- package/dist/index.css +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _inceptionbg_iui from '@inceptionbg/iui';
|
|
3
|
+
import { ISimpleObjectWithCode, ISimpleObject, ISelectData, IHeaderUserMenuProps, IBooleanObject, IAnyObject, IPagination } from '@inceptionbg/iui';
|
|
4
|
+
import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-svg-core';
|
|
5
|
+
import { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
4
6
|
import { AxiosResponse } from 'axios';
|
|
5
7
|
export { AxiosError } from 'axios';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import * as reactQuery from '@tanstack/react-query';
|
|
9
|
-
export { reactQuery as ReactQuery };
|
|
10
|
-
export { keepPreviousData, useMutation, useQuery } from '@tanstack/react-query';
|
|
8
|
+
import * as react from 'react';
|
|
9
|
+
import { Dispatch, SetStateAction, ReactNode, FC } from 'react';
|
|
11
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
11
|
+
import { UseMutationResult } from '@tanstack/react-query';
|
|
12
12
|
|
|
13
13
|
interface IPlace {
|
|
14
14
|
uuid: string;
|
|
@@ -33,16 +33,17 @@ interface IScanData {
|
|
|
33
33
|
duplex?: boolean;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
declare const
|
|
37
|
-
declare const
|
|
36
|
+
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"];
|
|
37
|
+
declare const moduleIcon: {
|
|
38
|
+
[id in IModuleId]: IconDefinition;
|
|
39
|
+
};
|
|
38
40
|
|
|
39
|
-
type IModuleId = (typeof
|
|
41
|
+
type IModuleId = (typeof moduleIds)[number];
|
|
40
42
|
type IModule = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
43
|
+
name: string;
|
|
44
|
+
icon: IconDefinition$1;
|
|
45
|
+
url: string;
|
|
46
|
+
disabled?: boolean;
|
|
46
47
|
};
|
|
47
48
|
interface IModuleIdsObj {
|
|
48
49
|
availableModules: IModuleId[];
|
|
@@ -244,6 +245,15 @@ interface IOrganization {
|
|
|
244
245
|
type?: 'BASIC';
|
|
245
246
|
reseller?: 'MTS' | 'PPL';
|
|
246
247
|
}
|
|
248
|
+
interface IOrganizationInvite {
|
|
249
|
+
uuid: string;
|
|
250
|
+
createdAt: string;
|
|
251
|
+
organization?: IOrganization;
|
|
252
|
+
sender?: IPartner;
|
|
253
|
+
receiver?: IPartner;
|
|
254
|
+
roles?: IRole[];
|
|
255
|
+
}
|
|
256
|
+
type IOrganizationInvitesFetchOption = 'SENDER' | 'ORGANIZATION' | 'ROLE';
|
|
247
257
|
interface serviceDoc {
|
|
248
258
|
uuid: string;
|
|
249
259
|
originalFileName: string;
|
|
@@ -1273,7 +1283,7 @@ interface IConditionIndexData {
|
|
|
1273
1283
|
}
|
|
1274
1284
|
|
|
1275
1285
|
type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT' | 'TEST_PPLCG' | 'PROD_PPLCG';
|
|
1276
|
-
type IServiceApi = 'auth' | 'idm' | 'codebook' | 'auditLog' | 'notifications' | 'indexData' | 'registration' | 'reportTemplates' | 'procurement' | 'archive' | 'invoice' | 'edms' | 'rif' | 'cashRegister' | 'jisuszProxy' | 'fosterCare' | 'article'
|
|
1286
|
+
type IServiceApi = 'auth' | 'idm' | 'codebook' | 'auditLog' | 'notifications' | 'indexData' | 'registration' | 'reportTemplates' | 'procurement' | 'archive' | 'invoice' | 'edms' | 'rif' | 'cashRegister' | 'jisuszProxy' | 'fosterCare' | 'article';
|
|
1277
1287
|
type IEnvVar = {
|
|
1278
1288
|
[env in IEnv]: {
|
|
1279
1289
|
serviceApiUrl: {
|
|
@@ -1287,13 +1297,6 @@ type IEnvVar = {
|
|
|
1287
1297
|
|
|
1288
1298
|
type IOrganizationSettings = Record<string, any>;
|
|
1289
1299
|
|
|
1290
|
-
interface IRoute {
|
|
1291
|
-
path?: string;
|
|
1292
|
-
element?: ReactElement;
|
|
1293
|
-
fullPage?: boolean;
|
|
1294
|
-
childrenRoutes?: IRoute[];
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
1300
|
interface IToken {
|
|
1298
1301
|
sub: string;
|
|
1299
1302
|
userUuid: string;
|
|
@@ -1313,7 +1316,7 @@ type IUseMutationData = {
|
|
|
1313
1316
|
|
|
1314
1317
|
interface ISidebarItem {
|
|
1315
1318
|
label: string;
|
|
1316
|
-
icon?: IconDefinition;
|
|
1319
|
+
icon?: IconDefinition$1;
|
|
1317
1320
|
to?: string;
|
|
1318
1321
|
content?: ISidebarSubItem[];
|
|
1319
1322
|
menu?: {
|
|
@@ -1351,11 +1354,6 @@ declare const getUser: () => Promise<IUser>;
|
|
|
1351
1354
|
|
|
1352
1355
|
declare const decodeToken: (token?: string | null) => IToken | undefined;
|
|
1353
1356
|
|
|
1354
|
-
interface IProps$1 {
|
|
1355
|
-
children: ReactNode;
|
|
1356
|
-
}
|
|
1357
|
-
declare const AxiosTokenHandler: FC<IProps$1>;
|
|
1358
|
-
|
|
1359
1357
|
declare const envVars: IEnvVar;
|
|
1360
1358
|
|
|
1361
1359
|
interface IErrorContext {
|
|
@@ -1364,6 +1362,11 @@ interface IErrorContext {
|
|
|
1364
1362
|
}
|
|
1365
1363
|
declare const ErrorContext: react.Context<IErrorContext>;
|
|
1366
1364
|
|
|
1365
|
+
declare const HeaderUserProvider: ({ children }: {
|
|
1366
|
+
children: ReactNode;
|
|
1367
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1368
|
+
declare const useHeaderUserContext: () => IHeaderUserMenuProps;
|
|
1369
|
+
|
|
1367
1370
|
interface IUserOrgContext {
|
|
1368
1371
|
user: IUser | null;
|
|
1369
1372
|
reloadUser: (callback?: () => void) => void;
|
|
@@ -1396,84 +1399,53 @@ declare const BusinessYearProvider: ({ children }: {
|
|
|
1396
1399
|
declare const useBusinessYearContext: () => IBusinessYearContext;
|
|
1397
1400
|
declare const setBusinessYearContext: (year: string) => void;
|
|
1398
1401
|
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
}
|
|
1404
|
-
declare const Router: FC<Props$a>;
|
|
1405
|
-
|
|
1406
|
-
declare const LoginPage: FC;
|
|
1402
|
+
declare const useModuleSelect: (activeModuleId: IModuleId | null) => {
|
|
1403
|
+
activeModule: IModule | null;
|
|
1404
|
+
modules: IModule[];
|
|
1405
|
+
};
|
|
1407
1406
|
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1407
|
+
declare const useOrgInvites: ({ enabled, pagination, fetchOptions, }: {
|
|
1408
|
+
enabled: boolean;
|
|
1409
|
+
pagination?: IPagination | undefined;
|
|
1410
|
+
fetchOptions?: IOrganizationInvitesFetchOption[] | undefined;
|
|
1411
|
+
}) => {
|
|
1412
|
+
invites: IOrganizationInvite[];
|
|
1413
|
+
count: number;
|
|
1414
|
+
isLoading: boolean;
|
|
1415
|
+
refetch: () => void;
|
|
1416
|
+
};
|
|
1414
1417
|
|
|
1415
|
-
declare const
|
|
1418
|
+
declare const LoginPage: FC;
|
|
1416
1419
|
|
|
1417
1420
|
declare const SelectOrgPage: FC;
|
|
1418
1421
|
|
|
1419
|
-
interface Props$
|
|
1422
|
+
interface Props$5 {
|
|
1420
1423
|
modulePrivileges: string[];
|
|
1421
1424
|
usePrivileges: () => IAnyObject;
|
|
1422
1425
|
}
|
|
1423
|
-
declare const RolesWithPrivileges: FC<Props$
|
|
1424
|
-
|
|
1425
|
-
interface Props$7 {
|
|
1426
|
-
i18n: any;
|
|
1427
|
-
children: ReactNode;
|
|
1428
|
-
}
|
|
1429
|
-
declare const AppWrapper: FC<Props$7>;
|
|
1430
|
-
|
|
1431
|
-
interface Props$6 {
|
|
1432
|
-
customTitle?: string;
|
|
1433
|
-
hideModules?: boolean;
|
|
1434
|
-
hideNotifications?: boolean;
|
|
1435
|
-
children?: ReactNode;
|
|
1436
|
-
}
|
|
1437
|
-
declare const Header: FC<Props$6>;
|
|
1438
|
-
|
|
1439
|
-
interface Props$5 {
|
|
1440
|
-
sidebarItems: ISidebarItem[][];
|
|
1441
|
-
hideNotifications?: boolean;
|
|
1442
|
-
children: ReactNode;
|
|
1443
|
-
}
|
|
1444
|
-
declare const MainPageWrapper: FC<Props$5>;
|
|
1426
|
+
declare const RolesWithPrivileges: FC<Props$5>;
|
|
1445
1427
|
|
|
1446
1428
|
interface Props$4 {
|
|
1429
|
+
i18n: any;
|
|
1447
1430
|
children: ReactNode;
|
|
1448
1431
|
}
|
|
1449
|
-
declare const
|
|
1432
|
+
declare const AppWrapper: FC<Props$4>;
|
|
1450
1433
|
|
|
1451
1434
|
interface Props$3 {
|
|
1452
|
-
|
|
1453
|
-
UserBox?: ReactElement;
|
|
1435
|
+
children: ReactNode;
|
|
1454
1436
|
}
|
|
1455
|
-
declare const
|
|
1437
|
+
declare const ReactQueryProvider: FC<Props$3>;
|
|
1456
1438
|
|
|
1457
1439
|
interface Props$2 {
|
|
1458
|
-
searchData: IAnyObject;
|
|
1459
|
-
setSearchData: Dispatch<SetStateAction<IAnyObject>>;
|
|
1460
|
-
indexesSearch: Partial<IIndexData>[];
|
|
1461
|
-
setIndexesSearch: Dispatch<SetStateAction<Partial<IIndexData>[]>>;
|
|
1462
|
-
documentTypeUuid?: string;
|
|
1463
|
-
type?: 'document' | 'case' | 'contract';
|
|
1464
|
-
}
|
|
1465
|
-
declare const IndexDataSearch: FC<Props$2>;
|
|
1466
|
-
|
|
1467
|
-
interface Props$1 {
|
|
1468
1440
|
textId: string;
|
|
1469
1441
|
itemUuid: string;
|
|
1470
1442
|
setItemUuid: Dispatch<SetStateAction<string>>;
|
|
1471
1443
|
onSuccess: () => void;
|
|
1472
1444
|
useDeleteItemMutation: ({ onSuccess, }: IUseMutationData) => UseMutationResult<AxiosResponse<any, any>, Error, string, unknown>;
|
|
1473
1445
|
}
|
|
1474
|
-
declare const DeleteItemDialog: FC<Props$
|
|
1446
|
+
declare const DeleteItemDialog: FC<Props$2>;
|
|
1475
1447
|
|
|
1476
|
-
interface Props {
|
|
1448
|
+
interface Props$1 {
|
|
1477
1449
|
textId: string;
|
|
1478
1450
|
itemUuids: string[];
|
|
1479
1451
|
setItemUuids: Dispatch<SetStateAction<string[]>>;
|
|
@@ -1482,7 +1454,7 @@ interface Props {
|
|
|
1482
1454
|
itemUuids: string[];
|
|
1483
1455
|
}, unknown>;
|
|
1484
1456
|
}
|
|
1485
|
-
declare const DeleteItemsDialog: FC<Props>;
|
|
1457
|
+
declare const DeleteItemsDialog: FC<Props$1>;
|
|
1486
1458
|
|
|
1487
1459
|
declare const i18nMainLatin: {
|
|
1488
1460
|
ADMIN: string;
|
|
@@ -1506,8 +1478,6 @@ declare const i18nMainLatin: {
|
|
|
1506
1478
|
SendHistory: string;
|
|
1507
1479
|
AccordionView: string;
|
|
1508
1480
|
TabView: string;
|
|
1509
|
-
FooterText: string;
|
|
1510
|
-
PageNotFound: string;
|
|
1511
1481
|
Settings: string;
|
|
1512
1482
|
Roles: string;
|
|
1513
1483
|
Logout: string;
|
|
@@ -1518,8 +1488,6 @@ declare const i18nMainLatin: {
|
|
|
1518
1488
|
SessionExpiredInfo: string;
|
|
1519
1489
|
SetOrgAsDefault: string;
|
|
1520
1490
|
SignInWithDifferentAccount: string;
|
|
1521
|
-
NoAccessTitle: string;
|
|
1522
|
-
ReturnToHomepage: string;
|
|
1523
1491
|
ChangeOrganization: string;
|
|
1524
1492
|
OrganizationInvite: string;
|
|
1525
1493
|
RejectInvite: string;
|
|
@@ -1553,7 +1521,6 @@ declare const i18nMainLatin: {
|
|
|
1553
1521
|
ForeignPartners: string;
|
|
1554
1522
|
BusinessId: string;
|
|
1555
1523
|
BusinessActivity: string;
|
|
1556
|
-
BusinessPartnerCode: string;
|
|
1557
1524
|
Country: string;
|
|
1558
1525
|
Town: string;
|
|
1559
1526
|
PostalCode: string;
|
|
@@ -1704,8 +1671,11 @@ declare const i18nMainLatin: {
|
|
|
1704
1671
|
BusinessYearPage: string;
|
|
1705
1672
|
BusinessYearInfoTitle: string;
|
|
1706
1673
|
BusinessYearInfoDesc: string;
|
|
1674
|
+
ErrorDEFAULT: string;
|
|
1675
|
+
TryAgain: string;
|
|
1707
1676
|
HomePage: string;
|
|
1708
1677
|
};
|
|
1678
|
+
|
|
1709
1679
|
declare const i18nMainCyrilic: {
|
|
1710
1680
|
ADMIN: string;
|
|
1711
1681
|
EARCHIVE: string;
|
|
@@ -1728,8 +1698,6 @@ declare const i18nMainCyrilic: {
|
|
|
1728
1698
|
SendHistory: string;
|
|
1729
1699
|
AccordionView: string;
|
|
1730
1700
|
TabView: string;
|
|
1731
|
-
FooterText: string;
|
|
1732
|
-
PageNotFound: string;
|
|
1733
1701
|
Settings: string;
|
|
1734
1702
|
Roles: string;
|
|
1735
1703
|
Logout: string;
|
|
@@ -1740,8 +1708,6 @@ declare const i18nMainCyrilic: {
|
|
|
1740
1708
|
SessionExpiredInfo: string;
|
|
1741
1709
|
SetOrgAsDefault: string;
|
|
1742
1710
|
SignInWithDifferentAccount: string;
|
|
1743
|
-
NoAccessTitle: string;
|
|
1744
|
-
ReturnToHomepage: string;
|
|
1745
1711
|
ChangeOrganization: string;
|
|
1746
1712
|
OrganizationInvite: string;
|
|
1747
1713
|
RejectInvite: string;
|
|
@@ -1775,7 +1741,6 @@ declare const i18nMainCyrilic: {
|
|
|
1775
1741
|
ForeignPartners: string;
|
|
1776
1742
|
BusinessId: string;
|
|
1777
1743
|
BusinessActivity: string;
|
|
1778
|
-
BusinessPartnerCode: string;
|
|
1779
1744
|
Country: string;
|
|
1780
1745
|
Town: string;
|
|
1781
1746
|
PostalCode: string;
|
|
@@ -1925,9 +1890,12 @@ declare const i18nMainCyrilic: {
|
|
|
1925
1890
|
Year: string;
|
|
1926
1891
|
BusinessYearInfoTitle: string;
|
|
1927
1892
|
BusinessYearInfoDesc: string;
|
|
1893
|
+
ErrorDEFAULT: string;
|
|
1894
|
+
TryAgain: string;
|
|
1928
1895
|
HomePage: string;
|
|
1929
1896
|
};
|
|
1930
|
-
|
|
1897
|
+
|
|
1898
|
+
declare const i18nMainME: {
|
|
1931
1899
|
ADMIN: string;
|
|
1932
1900
|
EARCHIVE: string;
|
|
1933
1901
|
ERDS: string;
|
|
@@ -1950,7 +1918,6 @@ declare const i18nMainME_Latin: {
|
|
|
1950
1918
|
AccordionView: string;
|
|
1951
1919
|
TabView: string;
|
|
1952
1920
|
FooterText: string;
|
|
1953
|
-
PageNotFound: string;
|
|
1954
1921
|
Settings: string;
|
|
1955
1922
|
Roles: string;
|
|
1956
1923
|
Logout: string;
|
|
@@ -1961,7 +1928,6 @@ declare const i18nMainME_Latin: {
|
|
|
1961
1928
|
SessionExpiredInfo: string;
|
|
1962
1929
|
SetOrgAsDefault: string;
|
|
1963
1930
|
SignInWithDifferentAccount: string;
|
|
1964
|
-
NoAccessTitle: string;
|
|
1965
1931
|
ReturnToHomepage: string;
|
|
1966
1932
|
ChangeOrganization: string;
|
|
1967
1933
|
OrganizationInvite: string;
|
|
@@ -1996,7 +1962,6 @@ declare const i18nMainME_Latin: {
|
|
|
1996
1962
|
ForeignPartners: string;
|
|
1997
1963
|
BusinessId: string;
|
|
1998
1964
|
BusinessActivity: string;
|
|
1999
|
-
BusinessPartnerCode: string;
|
|
2000
1965
|
Country: string;
|
|
2001
1966
|
Town: string;
|
|
2002
1967
|
PostalCode: string;
|
|
@@ -2147,11 +2112,31 @@ declare const i18nMainME_Latin: {
|
|
|
2147
2112
|
BusinessYearPage: string;
|
|
2148
2113
|
BusinessYearInfoTitle: string;
|
|
2149
2114
|
BusinessYearInfoDesc: string;
|
|
2115
|
+
ErrorDEFAULT: string;
|
|
2116
|
+
TryAgain: string;
|
|
2150
2117
|
HomePage: string;
|
|
2151
2118
|
};
|
|
2152
2119
|
|
|
2120
|
+
declare const userMenuProps: {
|
|
2121
|
+
useHeaderUserContext: () => _inceptionbg_iui.IHeaderUserMenuProps;
|
|
2122
|
+
HeaderUserProvider: ({ children }: {
|
|
2123
|
+
children: react.ReactNode;
|
|
2124
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2125
|
+
};
|
|
2126
|
+
|
|
2127
|
+
interface Props {
|
|
2128
|
+
searchData: IAnyObject;
|
|
2129
|
+
setSearchData: Dispatch<SetStateAction<IAnyObject>>;
|
|
2130
|
+
indexesSearch: Partial<IIndexData>[];
|
|
2131
|
+
setIndexesSearch: Dispatch<SetStateAction<Partial<IIndexData>[]>>;
|
|
2132
|
+
documentTypeUuid?: string;
|
|
2133
|
+
type?: 'document' | 'case' | 'contract';
|
|
2134
|
+
}
|
|
2135
|
+
declare const IndexDataSearch: FC<Props>;
|
|
2136
|
+
|
|
2153
2137
|
declare const BusinessYearChooser: FC;
|
|
2154
2138
|
|
|
2155
2139
|
declare const BusinessYearPage: FC;
|
|
2156
2140
|
|
|
2157
|
-
export { AppWrapper,
|
|
2141
|
+
export { AppWrapper, BusinessYearChooser, BusinessYearPage, BusinessYearProvider, Constraints, DeleteItemDialog, DeleteItemsDialog, DocumentStatuses, ErrorContext, HeaderUserProvider, IndexDataSearch, LoginPage, OrganizationStatuses, ReactQueryProvider, RolesWithPrivileges, SelectOrgPage, SubSystems, UserOrgContext, UserOrgProvider, decodeToken, envVars, getUser, i18nMainCyrilic, i18nMainLatin, i18nMainME, login, logout, moduleIcon, moduleIds, setBusinessYearContext, useBusinessYearContext, useHeaderUserContext, useModuleSelect, useModules, useOrgInvites, useUserAndOrg, userMenuProps };
|
|
2142
|
+
export type { ApprovalStatus, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, ICondition, IConditionIndexData, IConstraint, IContactPerson, ICountry, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMunicipality, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, IRole, IRolePrivilege, IServiceApi, ISidebarItem, ISubsystem, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, OrganizationStatus, PartnerGroupType, RolePrivilegeGroup, UserFetchOption };
|