@inceptionbg/main 3.1.8 → 3.1.10
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/SelectOrgPage-2538db6e.js +2 -0
- package/dist/SelectOrgPage-2538db6e.js.map +1 -0
- package/dist/index-d9fcffe1.js +2 -0
- package/dist/index-d9fcffe1.js.map +1 -0
- package/dist/index.d.ts +45 -116
- package/dist/index.js +1 -1
- package/dist/types/global.d.ts +128 -126
- package/package.json +55 -55
- package/dist/SelectOrgPage-D3upLjuO.js +0 -2
- package/dist/SelectOrgPage-D3upLjuO.js.map +0 -1
- package/dist/index-CLR0NBpL.js +0 -2
- package/dist/index-CLR0NBpL.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
2
|
import { AxiosResponse } from 'axios';
|
|
3
3
|
export { AxiosError } from 'axios';
|
|
4
|
-
import
|
|
5
|
-
import { ISimpleObjectWithCode, ISimpleObject, ISelectData, IPagination, IReportTemplate, ToastContainerProps, IPopupControl, IAnyObject, INotificationsProps, IHeaderUserMenuProps, IReportTemplateData, ITableTemplateData, ITableItemDeleteData, IRoute } from '@inceptionbg/iui';
|
|
4
|
+
import { ISimpleObjectWithCode, ISimpleObject, ISelectData, IPagination, ToastContainerProps, IHeaderUserMenuDialogsProps, IAnyObject, INotificationsProps, IReportTemplateData, IReportTemplate as IReportTemplate$1, IRoute } from '@inceptionbg/iui';
|
|
6
5
|
import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-svg-core';
|
|
7
6
|
import { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
8
|
-
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
9
7
|
import { UseMutationResult, QueryClient } from '@tanstack/react-query';
|
|
8
|
+
import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
|
|
10
9
|
import { FC, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
11
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
12
|
-
import * as
|
|
13
|
-
import * as zustand from 'zustand';
|
|
11
|
+
import * as _tanstack_query_core_build_legacy_hydration_DgUcX5FN from '@tanstack/query-core/build/legacy/hydration-DgUcX5FN';
|
|
14
12
|
|
|
15
13
|
declare const moduleIds: readonly ["DASHBOARD", "ADMIN", "EARCHIVE", "ERDS", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION", "EPROCUREMENT", "EREGISTER", "PAM", "DISPATCH_ADVICE", "TELEGRAM_MNGMNT", "VAT_EVIDENCE", "VEOSP", "ERP_CASH_REGISTER", "ERP_FIXED_ASSETS", "ERP_RIF", "ERP_MAT_ACC", "ERP_SMALL_INVENTORY", "ERP_WMS", "JISUSZ_BACKOFFICE", "MONITORING"];
|
|
16
14
|
declare const moduleIcon: {
|
|
@@ -24,12 +22,6 @@ type IModule = {
|
|
|
24
22
|
url: string;
|
|
25
23
|
disabled?: boolean;
|
|
26
24
|
};
|
|
27
|
-
interface IModuleIdsObj {
|
|
28
|
-
availableModules: IModuleId[];
|
|
29
|
-
userModules: IModuleId[];
|
|
30
|
-
organizationModules: IModuleId[];
|
|
31
|
-
activeModules: IModuleId[];
|
|
32
|
-
}
|
|
33
25
|
|
|
34
26
|
interface IRole {
|
|
35
27
|
uuid: string;
|
|
@@ -1178,7 +1170,7 @@ interface IConditionIndexData {
|
|
|
1178
1170
|
|
|
1179
1171
|
type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT' | 'TEST_PPLCG' | 'PROD_PPLCG' | 'TEST_MSP' | 'PROD_MSP' | 'TEST_LOCAL_MSP' | 'TEST_PTT' | 'PROD_PTT';
|
|
1180
1172
|
type IRequiredServiceApi = 'auth' | 'idm' | 'registration' | 'userSettings';
|
|
1181
|
-
type IOptionalServiceApi = 'codebook' | 'auditLog' | 'notifications' | 'indexData' | 'reportTemplates' | 'approvalProcess' | 'procurement' | 'archive' | 'invoice' | 'delivery' | 'edms' | 'rif' | 'cashRegister' | 'jisuszProxy' | 'fosterCare' | 'article' | 'approval' | 'messenger' | 'veosp' | 'fixedAssets' | 'dispatchAdvice';
|
|
1173
|
+
type IOptionalServiceApi = 'codebook' | 'auditLog' | 'notifications' | 'indexData' | 'reportTemplates' | 'approvalProcess' | 'procurement' | 'archive' | 'invoice' | 'delivery' | 'edms' | 'rif' | 'cashRegister' | 'jisuszProxy' | 'fosterCare' | 'article' | 'approval' | 'messenger' | 'veosp' | 'fixedAssets' | 'dispatchAdvice' | 'tasks' | 'nbs';
|
|
1182
1174
|
type IServiceApi = IRequiredServiceApi | IOptionalServiceApi;
|
|
1183
1175
|
type IEnvVar = {
|
|
1184
1176
|
[env in IEnv]: {
|
|
@@ -1234,7 +1226,7 @@ type IDeleteItemMutation = (props: {
|
|
|
1234
1226
|
}, unknown>;
|
|
1235
1227
|
|
|
1236
1228
|
declare const useGetMyOrganizations: ({ enabled, pagination, filters, }: {
|
|
1237
|
-
enabled?: boolean;
|
|
1229
|
+
enabled?: boolean | undefined;
|
|
1238
1230
|
pagination: IPagination;
|
|
1239
1231
|
filters: {
|
|
1240
1232
|
status?: OrganizationStatus;
|
|
@@ -1242,10 +1234,10 @@ declare const useGetMyOrganizations: ({ enabled, pagination, filters, }: {
|
|
|
1242
1234
|
subsystem?: IModuleId | null;
|
|
1243
1235
|
excludeOrganizationUuid?: string;
|
|
1244
1236
|
};
|
|
1245
|
-
}) =>
|
|
1237
|
+
}) => _tanstack_react_query_build_legacy_types.UseQueryResult<{
|
|
1246
1238
|
organizations: IOrganization[];
|
|
1247
1239
|
totalRows: number;
|
|
1248
|
-
subsystems:
|
|
1240
|
+
subsystems: ("DASHBOARD" | "ADMIN" | "EARCHIVE" | "ERDS" | "EINVOICE" | "EFORMS" | "EDMS" | "ESIGN" | "EVALIDATION" | "EPROCUREMENT" | "EREGISTER" | "PAM" | "DISPATCH_ADVICE" | "TELEGRAM_MNGMNT" | "VAT_EVIDENCE" | "VEOSP" | "ERP_CASH_REGISTER" | "ERP_FIXED_ASSETS" | "ERP_RIF" | "ERP_MAT_ACC" | "ERP_SMALL_INVENTORY" | "ERP_WMS" | "JISUSZ_BACKOFFICE" | "MONITORING")[];
|
|
1249
1241
|
}, Error>;
|
|
1250
1242
|
|
|
1251
1243
|
type IReportTemplatesFetchOption = 'SORT' | 'FILTER_VALUES' | 'COLUMNS' | 'CREATED_BY' | 'ORGANIZATION' | 'OPTIONS';
|
|
@@ -1258,30 +1250,25 @@ type IReportTemplatesProps = {
|
|
|
1258
1250
|
};
|
|
1259
1251
|
fetchOptions?: IReportTemplatesFetchOption[];
|
|
1260
1252
|
};
|
|
1261
|
-
declare const useGetReportTemplates: (params: IReportTemplatesProps, enabled: boolean) =>
|
|
1253
|
+
declare const useGetReportTemplates: (params: IReportTemplatesProps, enabled: boolean) => _tanstack_react_query_build_legacy_types.UseQueryResult<{
|
|
1262
1254
|
templates: IReportTemplate[];
|
|
1263
1255
|
totalRows: number;
|
|
1264
1256
|
}, Error>;
|
|
1265
|
-
declare const useCreateReportTemplate: () =>
|
|
1257
|
+
declare const useCreateReportTemplate: () => _tanstack_react_query_build_legacy_types.UseMutationResult<axios.AxiosResponse<any, any>, Error, IReportTemplate, unknown>;
|
|
1266
1258
|
declare const useDeleteReportTemplates: IDeleteItemMutation;
|
|
1267
1259
|
|
|
1268
|
-
|
|
1269
|
-
noToast?: boolean;
|
|
1270
|
-
refetchQueries?: boolean;
|
|
1271
|
-
onSuccess?: () => void;
|
|
1272
|
-
}
|
|
1273
|
-
declare const useGetUserSettings: (setUserSettings: (data: IUserSettings) => void) => _tanstack_react_query.UseQueryResult<IUserSettings, Error>;
|
|
1260
|
+
declare const useGetUserSettings: (setUserSettings: (data: IUserSettings) => void) => _tanstack_react_query_build_legacy_types.UseQueryResult<IUserSettings, Error>;
|
|
1274
1261
|
declare const useGetUserSettingsItem: (filters: {
|
|
1275
1262
|
key: string;
|
|
1276
1263
|
subsystemOrNull?: string;
|
|
1277
1264
|
organizationUuidOrNull?: string;
|
|
1278
|
-
}) =>
|
|
1265
|
+
}) => _tanstack_react_query_build_legacy_types.UseQueryResult<IUserSettingsItem, Error>;
|
|
1279
1266
|
|
|
1280
|
-
interface Props$
|
|
1267
|
+
interface Props$7 {
|
|
1281
1268
|
toastProps?: ToastContainerProps;
|
|
1282
1269
|
children: ReactNode;
|
|
1283
1270
|
}
|
|
1284
|
-
declare const AppWrapper: FC<Props$
|
|
1271
|
+
declare const AppWrapper: FC<Props$7>;
|
|
1285
1272
|
|
|
1286
1273
|
interface IError {
|
|
1287
1274
|
errorMessage?: string;
|
|
@@ -1295,42 +1282,34 @@ interface IErrorContext {
|
|
|
1295
1282
|
}
|
|
1296
1283
|
declare const useErrorContext: () => IErrorContext;
|
|
1297
1284
|
|
|
1298
|
-
interface Props$
|
|
1285
|
+
interface Props$6 {
|
|
1299
1286
|
children: ReactNode;
|
|
1300
1287
|
}
|
|
1301
1288
|
declare const queryClient: QueryClient;
|
|
1302
|
-
declare const ReactQueryProvider: FC<Props$
|
|
1289
|
+
declare const ReactQueryProvider: FC<Props$6>;
|
|
1303
1290
|
|
|
1304
1291
|
declare const ArticlesPage: FC;
|
|
1305
1292
|
|
|
1306
|
-
interface Props$
|
|
1293
|
+
interface Props$5 {
|
|
1307
1294
|
span?: 2 | 3 | 4;
|
|
1308
1295
|
onClick?: () => void;
|
|
1309
1296
|
}
|
|
1310
|
-
declare const LastArticlesWidget: FC<Props$
|
|
1297
|
+
declare const LastArticlesWidget: FC<Props$5>;
|
|
1311
1298
|
|
|
1312
1299
|
declare const BusinessYearChooser: FC;
|
|
1313
1300
|
|
|
1314
1301
|
declare const BusinessYearPage: FC;
|
|
1315
1302
|
|
|
1316
|
-
interface Props$
|
|
1303
|
+
interface Props$4 {
|
|
1317
1304
|
textId?: string;
|
|
1318
1305
|
itemUuids: string[];
|
|
1319
1306
|
setItemUuids: Dispatch<SetStateAction<string[]>>;
|
|
1320
1307
|
onSuccess?: () => void;
|
|
1321
1308
|
useDeleteItemsMutation: IDeleteItemMutation;
|
|
1322
1309
|
}
|
|
1323
|
-
declare const DeleteItemsDialog: FC<Props$
|
|
1310
|
+
declare const DeleteItemsDialog: FC<Props$4>;
|
|
1324
1311
|
|
|
1325
|
-
|
|
1326
|
-
controls: {
|
|
1327
|
-
myAccountControl: IPopupControl;
|
|
1328
|
-
changeOrgControl: IPopupControl;
|
|
1329
|
-
orgInvitesControl: IPopupControl;
|
|
1330
|
-
};
|
|
1331
|
-
refetchOrganizationInvites?: () => void;
|
|
1332
|
-
}
|
|
1333
|
-
declare const HeaderUserMenuDialogs: FC<Props$4>;
|
|
1312
|
+
declare const HeaderUserMenuDialogs: FC<IHeaderUserMenuDialogsProps>;
|
|
1334
1313
|
|
|
1335
1314
|
interface Props$3 {
|
|
1336
1315
|
searchData: IAnyObject;
|
|
@@ -1360,15 +1339,18 @@ declare const useModuleSelect: (activeModuleId: IModuleId | null) => {
|
|
|
1360
1339
|
declare const useNotificationsProps: () => INotificationsProps;
|
|
1361
1340
|
|
|
1362
1341
|
interface IUseUserMenuPropsOptions {
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1342
|
+
myAccount?: {
|
|
1343
|
+
hidden?: boolean;
|
|
1344
|
+
changePasswordHidden?: boolean;
|
|
1345
|
+
};
|
|
1346
|
+
changeOrganization?: {
|
|
1347
|
+
hidden?: boolean;
|
|
1366
1348
|
};
|
|
1367
1349
|
}
|
|
1368
|
-
declare const useUserMenuProps: ({
|
|
1350
|
+
declare const useUserMenuProps: ({ myAccount, changeOrganization, }?: IUseUserMenuPropsOptions) => IHeaderUserMenuProps;
|
|
1369
1351
|
|
|
1370
1352
|
declare const useDefaultTemplate: (identifier: string) => {
|
|
1371
|
-
defaultTemplate:
|
|
1353
|
+
defaultTemplate: any;
|
|
1372
1354
|
isLoadingDefaultTemplate: boolean;
|
|
1373
1355
|
};
|
|
1374
1356
|
|
|
@@ -1377,7 +1359,7 @@ interface Props$2 {
|
|
|
1377
1359
|
data: IReportTemplateData;
|
|
1378
1360
|
limit?: number;
|
|
1379
1361
|
allowPublicCreate?: boolean;
|
|
1380
|
-
defaultTemplate?: IReportTemplate;
|
|
1362
|
+
defaultTemplate?: IReportTemplate$1;
|
|
1381
1363
|
fetchOptions?: IReportTemplatesFetchOption[];
|
|
1382
1364
|
}
|
|
1383
1365
|
declare const useReportTemplates: ({ identifier, data, limit, allowPublicCreate, defaultTemplate, fetchOptions, }: Props$2) => ITableTemplateData;
|
|
@@ -1392,13 +1374,13 @@ declare const useTableItemsDelete: ({ hasAccess, textId, useDeleteItemsMutation,
|
|
|
1392
1374
|
|
|
1393
1375
|
declare const useOrgInvites: ({ enabled, pagination, fetchOptions, }: {
|
|
1394
1376
|
enabled: boolean;
|
|
1395
|
-
pagination?: IPagination;
|
|
1396
|
-
fetchOptions?: IOrganizationInvitesFetchOption[];
|
|
1377
|
+
pagination?: IPagination | undefined;
|
|
1378
|
+
fetchOptions?: IOrganizationInvitesFetchOption[] | undefined;
|
|
1397
1379
|
}) => {
|
|
1398
1380
|
invites: IOrganizationInvite[];
|
|
1399
1381
|
count: number;
|
|
1400
1382
|
isFetching: boolean;
|
|
1401
|
-
refetch: (options?:
|
|
1383
|
+
refetch: (options?: _tanstack_query_core_build_legacy_hydration_DgUcX5FN.af | undefined) => Promise<_tanstack_query_core_build_legacy_hydration_DgUcX5FN.av<{
|
|
1402
1384
|
organizationInvites: IOrganizationInvite[];
|
|
1403
1385
|
totalRows: number;
|
|
1404
1386
|
}, Error>>;
|
|
@@ -1410,67 +1392,15 @@ interface Props {
|
|
|
1410
1392
|
}
|
|
1411
1393
|
declare const RolesWithPrivileges: FC<Props>;
|
|
1412
1394
|
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
interface OrganizationState extends OrganizationData {
|
|
1420
|
-
setOrganizationData: (data: OrganizationData) => void;
|
|
1421
|
-
updateOrgSettings: (data: IOrganizationSettings) => void;
|
|
1422
|
-
reset: () => void;
|
|
1423
|
-
}
|
|
1424
|
-
declare const useOrganizationStore: zustand.UseBoundStore<Omit<zustand.StoreApi<OrganizationState>, "setState" | "devtools"> & {
|
|
1425
|
-
setState(partial: OrganizationState | Partial<OrganizationState> | ((state: OrganizationState) => OrganizationState | Partial<OrganizationState>), replace?: false | undefined, action?: (string | {
|
|
1426
|
-
[x: string]: unknown;
|
|
1427
|
-
[x: number]: unknown;
|
|
1428
|
-
[x: symbol]: unknown;
|
|
1429
|
-
type: string;
|
|
1430
|
-
}) | undefined): void;
|
|
1431
|
-
setState(state: OrganizationState | ((state: OrganizationState) => OrganizationState), replace: true, action?: (string | {
|
|
1432
|
-
[x: string]: unknown;
|
|
1433
|
-
[x: number]: unknown;
|
|
1434
|
-
[x: symbol]: unknown;
|
|
1435
|
-
type: string;
|
|
1436
|
-
}) | undefined): void;
|
|
1437
|
-
devtools: {
|
|
1438
|
-
cleanup: () => void;
|
|
1439
|
-
};
|
|
1440
|
-
}>;
|
|
1441
|
-
declare const useModules: () => IModuleIdsObj;
|
|
1442
|
-
|
|
1443
|
-
declare const getToken: () => string | null;
|
|
1444
|
-
|
|
1445
|
-
interface UserState {
|
|
1446
|
-
user: IUser | null;
|
|
1447
|
-
userSettings: IUserSettings;
|
|
1448
|
-
isUpdatingUserSettings: boolean;
|
|
1449
|
-
setUser: (user: IUser | null) => void;
|
|
1450
|
-
setUserSettings: (userSettings: IUserSettings) => void;
|
|
1451
|
-
updateUserSettings: <T extends string = string & {}>(data: IUserSettingsItem<T>, options?: IUserSettingsUpdateOptions) => void;
|
|
1452
|
-
deleteUserSettingsItem: <T extends string = string & {}>(data: Omit<IUserSettingsItem<T>, 'value'>, options?: IUserSettingsUpdateOptions) => void;
|
|
1453
|
-
}
|
|
1454
|
-
declare const useUserStore: zustand.UseBoundStore<Omit<zustand.StoreApi<UserState>, "setState" | "devtools"> & {
|
|
1455
|
-
setState(partial: UserState | Partial<UserState> | ((state: UserState) => UserState | Partial<UserState>), replace?: false | undefined, action?: (string | {
|
|
1456
|
-
[x: string]: unknown;
|
|
1457
|
-
[x: number]: unknown;
|
|
1458
|
-
[x: symbol]: unknown;
|
|
1459
|
-
type: string;
|
|
1460
|
-
}) | undefined): void;
|
|
1461
|
-
setState(state: UserState | ((state: UserState) => UserState), replace: true, action?: (string | {
|
|
1462
|
-
[x: string]: unknown;
|
|
1463
|
-
[x: number]: unknown;
|
|
1464
|
-
[x: symbol]: unknown;
|
|
1465
|
-
type: string;
|
|
1466
|
-
}) | undefined): void;
|
|
1467
|
-
devtools: {
|
|
1468
|
-
cleanup: () => void;
|
|
1469
|
-
};
|
|
1470
|
-
}>;
|
|
1395
|
+
declare const useOrganizationStore: any;
|
|
1396
|
+
declare const useModules: () => any;
|
|
1397
|
+
|
|
1398
|
+
declare const getToken: () => any;
|
|
1399
|
+
|
|
1400
|
+
declare const useUserStore: any;
|
|
1471
1401
|
declare const useUserSettings: <T extends string = string & {}>() => {
|
|
1472
1402
|
userSettings: IUserSettings<T>;
|
|
1473
|
-
isUpdatingUserSettings:
|
|
1403
|
+
isUpdatingUserSettings: any;
|
|
1474
1404
|
updateUserSettings: (data: IUserSettingsItem<T>) => void;
|
|
1475
1405
|
deleteUserSettingsItem: (data: Omit<IUserSettingsItem<T>, "value">) => void;
|
|
1476
1406
|
};
|
|
@@ -1478,18 +1408,18 @@ declare const useActiveOrgUuid: () => any;
|
|
|
1478
1408
|
declare const getActiveOrgUuid: () => any;
|
|
1479
1409
|
declare const changeOrganization: (uuid: string, updateDefaultOrg?: boolean) => void;
|
|
1480
1410
|
declare const clearActiveOrg: ({ onSuccess }?: {
|
|
1481
|
-
onSuccess?: () => void;
|
|
1482
|
-
}) =>
|
|
1411
|
+
onSuccess?: (() => void) | undefined;
|
|
1412
|
+
}) => any;
|
|
1483
1413
|
|
|
1484
1414
|
declare const login: () => void;
|
|
1485
1415
|
declare const logout: (options?: {
|
|
1486
1416
|
appRedirectUrl?: boolean;
|
|
1487
1417
|
clearData?: boolean;
|
|
1488
1418
|
}) => void;
|
|
1489
|
-
declare const decodeToken: (token?: string | null) =>
|
|
1419
|
+
declare const decodeToken: (token?: string | null) => any;
|
|
1490
1420
|
declare const checkToken: (token?: string | null) => {
|
|
1491
|
-
token:
|
|
1492
|
-
isTokenExpired:
|
|
1421
|
+
token: any;
|
|
1422
|
+
isTokenExpired: any;
|
|
1493
1423
|
};
|
|
1494
1424
|
|
|
1495
1425
|
declare const debugLog: (...args: any[]) => void;
|
|
@@ -2207,5 +2137,4 @@ declare const ssGet: (key: LocalStorageItem) => string | null;
|
|
|
2207
2137
|
declare const ssSet: (key: LocalStorageItem, value: string) => void;
|
|
2208
2138
|
declare const ssRemove: (key: LocalStorageItem) => void;
|
|
2209
2139
|
|
|
2210
|
-
export { AppWrapper, ArticlesPage, BusinessYearChooser, BusinessYearPage, BusinessYearProvider, Constraints, DeleteItemsDialog, DocumentStatuses, HeaderUserMenuDialogs, IndexDataSearch, LastArticlesWidget, OrganizationStatuses, ReactQueryProvider, RolesWithPrivileges, changeOrganization, checkToken, clearActiveOrg, debugLog, decodeToken, envVars, getActiveOrgUuid, getToken, i18nMainCyrilic, i18nMainLatin, i18nMainME, login, logout, mainFullScreenRoutes, moduleIcon, moduleIds, queryClient, setBusinessYearContext, ssGet, ssRemove, ssSet, useActiveOrgUuid, useBusinessYearContext, useCreateReportTemplate, useDefaultTemplate, useDeleteReportTemplates, useErrorContext, useGetMyOrganizations, useGetReportTemplates, useGetUserSettings, useGetUserSettingsItem, useModuleSelect, useModules, useNotificationsProps, useOrgInvites, useOrganizationStore, useReportTemplates, useTableItemsDelete, useUserMenuProps, useUserSettings, useUserStore, useUserMenuProps as userMenuProps };
|
|
2211
|
-
export type { ApprovalStatus, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, ICondition, IConditionIndexData, IConstraint, IContactPerson, IDeleteItemMutation, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMutationSuccess, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IRole, IRolePrivilege, IServiceApi, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, OrganizationStatus, PartnerGroupType, RolePrivilegeGroup, UserFetchOption };
|
|
2140
|
+
export { AppWrapper, ApprovalStatus, ArticlesPage, BusinessYearChooser, BusinessYearPage, BusinessYearProvider, Constraints, DeleteItemsDialog, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, HeaderUserMenuDialogs, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, ICondition, IConditionIndexData, IConstraint, IContactPerson, IDeleteItemMutation, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMutationSuccess, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IRole, IRolePrivilege, IServiceApi, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, IndexDataSearch, LastArticlesWidget, OrganizationStatus, OrganizationStatuses, PartnerGroupType, ReactQueryProvider, RolePrivilegeGroup, RolesWithPrivileges, UserFetchOption, changeOrganization, checkToken, clearActiveOrg, debugLog, decodeToken, envVars, getActiveOrgUuid, getToken, i18nMainCyrilic, i18nMainLatin, i18nMainME, login, logout, mainFullScreenRoutes, moduleIcon, moduleIds, queryClient, setBusinessYearContext, ssGet, ssRemove, ssSet, useActiveOrgUuid, useBusinessYearContext, useCreateReportTemplate, useDefaultTemplate, useDeleteReportTemplates, useErrorContext, useGetMyOrganizations, useGetReportTemplates, useGetUserSettings, useGetUserSettingsItem, useModuleSelect, useModules, useNotificationsProps, useOrgInvites, useOrganizationStore, useReportTemplates, useTableItemsDelete, useUserMenuProps, useUserSettings, useUserStore, useUserMenuProps as userMenuProps };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{W as AppWrapper,A as ArticlesPage,x as BusinessYearChooser,y as BusinessYearPage,B as BusinessYearProvider,X as DeleteItemsDialog,H as HeaderUserMenuDialogs,Y as IndexDataSearch,L as LastArticlesWidget,_ as ReactQueryProvider,R as RolesWithPrivileges,c as changeOrganization,K as checkToken,g as clearActiveOrg,M as debugLog,N as decodeToken,P as envVars,h as getActiveOrgUuid,m as getToken,F as i18nMainCyrilic,E as i18nMainLatin,G as i18nMainME,Q as login,l as logout,I as mainFullScreenRoutes,S as moduleIcon,J as moduleIds,Z as queryClient,w as setBusinessYearContext,s as ssGet,f as ssRemove,e as ssSet,d as useActiveOrgUuid,v as useBusinessYearContext,T as useCreateReportTemplate,q as useDefaultTemplate,V as useDeleteReportTemplates,p as useErrorContext,b as useGetMyOrganizations,U as useGetReportTemplates,n as useGetUserSettings,o as useGetUserSettingsItem,z as useModuleSelect,k as useModules,D as useNotificationsProps,a as useOrgInvites,j as useOrganizationStore,r as useReportTemplates,t as useTableItemsDelete,C as useUserMenuProps,i as useUserSettings,u as useUserStore,C as userMenuProps}from"./index-d9fcffe1.js";import"@inceptionbg/iui";import"@tanstack/react-query";import"zustand";import"zustand/middleware";import"react-router";import"react/jsx-runtime";import"axios";import"react";import"crypto-js";import"jwt-decode";import"react-i18next";import"@inceptionbg/icons";import"@inceptionbg/icons/regular";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/types/global.d.ts
CHANGED
|
@@ -1,139 +1,141 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
|
|
3
|
-
declare const moduleIds = [
|
|
4
|
-
'DASHBOARD',
|
|
5
|
-
'ADMIN',
|
|
6
|
-
'EARCHIVE',
|
|
7
|
-
'ERDS',
|
|
8
|
-
'EINVOICE',
|
|
9
|
-
'EFORMS',
|
|
10
|
-
'EDMS',
|
|
11
|
-
'ESIGN',
|
|
12
|
-
'EVALIDATION',
|
|
13
|
-
'EPROCUREMENT',
|
|
14
|
-
'EREGISTER',
|
|
15
|
-
'PAM',
|
|
16
|
-
'DISPATCH_ADVICE',
|
|
17
|
-
'TELEGRAM_MNGMNT',
|
|
18
|
-
'VAT_EVIDENCE',
|
|
19
|
-
'VEOSP',
|
|
20
|
-
// ERP
|
|
21
|
-
'ERP_CASH_REGISTER',
|
|
22
|
-
'ERP_FIXED_ASSETS',
|
|
23
|
-
'ERP_RIF',
|
|
24
|
-
'ERP_MAT_ACC',
|
|
25
|
-
'ERP_SMALL_INVENTORY',
|
|
26
|
-
'ERP_WMS',
|
|
27
|
-
// PRIVATE
|
|
28
|
-
'JISUSZ_BACKOFFICE',
|
|
29
|
-
'MONITORING',
|
|
30
|
-
|
|
31
|
-
// 'ERP',
|
|
32
|
-
// 'FINANCES',
|
|
33
|
-
// 'CONTRACTS',
|
|
34
|
-
// 'IDM',
|
|
35
|
-
// 'REGISTRATION',
|
|
36
|
-
// 'QC_REGISTRATION',
|
|
37
|
-
// 'SETTINGS',
|
|
3
|
+
declare const moduleIds = [
|
|
4
|
+
'DASHBOARD',
|
|
5
|
+
'ADMIN',
|
|
6
|
+
'EARCHIVE',
|
|
7
|
+
'ERDS',
|
|
8
|
+
'EINVOICE',
|
|
9
|
+
'EFORMS',
|
|
10
|
+
'EDMS',
|
|
11
|
+
'ESIGN',
|
|
12
|
+
'EVALIDATION',
|
|
13
|
+
'EPROCUREMENT',
|
|
14
|
+
'EREGISTER',
|
|
15
|
+
'PAM',
|
|
16
|
+
'DISPATCH_ADVICE',
|
|
17
|
+
'TELEGRAM_MNGMNT',
|
|
18
|
+
'VAT_EVIDENCE',
|
|
19
|
+
'VEOSP',
|
|
20
|
+
// ERP
|
|
21
|
+
'ERP_CASH_REGISTER',
|
|
22
|
+
'ERP_FIXED_ASSETS',
|
|
23
|
+
'ERP_RIF',
|
|
24
|
+
'ERP_MAT_ACC',
|
|
25
|
+
'ERP_SMALL_INVENTORY',
|
|
26
|
+
'ERP_WMS',
|
|
27
|
+
// PRIVATE
|
|
28
|
+
'JISUSZ_BACKOFFICE',
|
|
29
|
+
'MONITORING',
|
|
30
|
+
|
|
31
|
+
// 'ERP',
|
|
32
|
+
// 'FINANCES',
|
|
33
|
+
// 'CONTRACTS',
|
|
34
|
+
// 'IDM',
|
|
35
|
+
// 'REGISTRATION',
|
|
36
|
+
// 'QC_REGISTRATION',
|
|
37
|
+
// 'SETTINGS',
|
|
38
38
|
] as const;
|
|
39
39
|
|
|
40
40
|
type IModuleId = (typeof moduleIds)[number];
|
|
41
41
|
|
|
42
|
-
type IEnv =
|
|
43
|
-
| 'DEV'
|
|
44
|
-
| 'TEST'
|
|
45
|
-
| 'PROD'
|
|
46
|
-
| 'LOCAL'
|
|
47
|
-
| 'UAT'
|
|
48
|
-
| 'TEST_PPLCG'
|
|
49
|
-
| 'PROD_PPLCG'
|
|
50
|
-
| 'TEST_MSP'
|
|
51
|
-
| 'PROD_MSP'
|
|
52
|
-
| 'TEST_LOCAL_MSP'
|
|
53
|
-
| 'TEST_PTT'
|
|
54
|
-
| 'PROD_PTT';
|
|
55
|
-
|
|
56
|
-
type IRequiredServiceApi = 'auth' | 'idm' | 'registration' | 'userSettings';
|
|
57
|
-
|
|
58
|
-
type IOptionalServiceApi =
|
|
59
|
-
| 'codebook'
|
|
60
|
-
| 'auditLog'
|
|
61
|
-
| 'notifications'
|
|
62
|
-
| 'indexData'
|
|
63
|
-
| 'reportTemplates'
|
|
64
|
-
| 'approvalProcess'
|
|
65
|
-
| 'procurement'
|
|
66
|
-
| 'archive'
|
|
67
|
-
| 'invoice'
|
|
68
|
-
| 'delivery'
|
|
69
|
-
| 'edms'
|
|
70
|
-
| 'rif'
|
|
71
|
-
| 'cashRegister'
|
|
72
|
-
| 'jisuszProxy'
|
|
73
|
-
| 'fosterCare'
|
|
74
|
-
| 'article'
|
|
75
|
-
| 'approval'
|
|
76
|
-
| 'messenger'
|
|
77
|
-
| 'veosp'
|
|
78
|
-
| 'fixedAssets'
|
|
79
|
-
| 'dispatchAdvice'
|
|
80
|
-
|
|
42
|
+
type IEnv =
|
|
43
|
+
| 'DEV'
|
|
44
|
+
| 'TEST'
|
|
45
|
+
| 'PROD'
|
|
46
|
+
| 'LOCAL'
|
|
47
|
+
| 'UAT'
|
|
48
|
+
| 'TEST_PPLCG'
|
|
49
|
+
| 'PROD_PPLCG'
|
|
50
|
+
| 'TEST_MSP'
|
|
51
|
+
| 'PROD_MSP'
|
|
52
|
+
| 'TEST_LOCAL_MSP'
|
|
53
|
+
| 'TEST_PTT'
|
|
54
|
+
| 'PROD_PTT';
|
|
55
|
+
|
|
56
|
+
type IRequiredServiceApi = 'auth' | 'idm' | 'registration' | 'userSettings';
|
|
57
|
+
|
|
58
|
+
type IOptionalServiceApi =
|
|
59
|
+
| 'codebook'
|
|
60
|
+
| 'auditLog'
|
|
61
|
+
| 'notifications'
|
|
62
|
+
| 'indexData'
|
|
63
|
+
| 'reportTemplates'
|
|
64
|
+
| 'approvalProcess'
|
|
65
|
+
| 'procurement'
|
|
66
|
+
| 'archive'
|
|
67
|
+
| 'invoice'
|
|
68
|
+
| 'delivery'
|
|
69
|
+
| 'edms'
|
|
70
|
+
| 'rif'
|
|
71
|
+
| 'cashRegister'
|
|
72
|
+
| 'jisuszProxy'
|
|
73
|
+
| 'fosterCare'
|
|
74
|
+
| 'article'
|
|
75
|
+
| 'approval'
|
|
76
|
+
| 'messenger'
|
|
77
|
+
| 'veosp'
|
|
78
|
+
| 'fixedAssets'
|
|
79
|
+
| 'dispatchAdvice'
|
|
80
|
+
| 'tasks'
|
|
81
|
+
| 'nbs';
|
|
82
|
+
|
|
81
83
|
type IServiceApi$1 = IRequiredServiceApi | IOptionalServiceApi;
|
|
82
84
|
|
|
83
|
-
declare module 'axios' {
|
|
84
|
-
interface AxiosRequestConfig {
|
|
85
|
-
public?: boolean;
|
|
86
|
-
service?: IServiceApi$1;
|
|
87
|
-
token?: string;
|
|
88
|
-
noToast?: boolean;
|
|
89
|
-
noErrors?: boolean;
|
|
90
|
-
}
|
|
85
|
+
declare module 'axios' {
|
|
86
|
+
interface AxiosRequestConfig {
|
|
87
|
+
public?: boolean;
|
|
88
|
+
service?: IServiceApi$1;
|
|
89
|
+
token?: string;
|
|
90
|
+
noToast?: boolean;
|
|
91
|
+
noErrors?: boolean;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare module '*.scss' {
|
|
96
|
+
const classes: { readonly [key: string]: string };
|
|
97
|
+
export { classes };
|
|
98
|
+
}
|
|
99
|
+
declare module '*.png' {
|
|
100
|
+
const src: string;
|
|
101
|
+
export { src };
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare module '*.svg' {
|
|
105
|
+
const src: string;
|
|
106
|
+
export { src };
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare module '*.json' {
|
|
110
|
+
const data: any;
|
|
111
|
+
export { data };
|
|
91
112
|
}
|
|
92
113
|
|
|
93
|
-
declare module '*.
|
|
94
|
-
const
|
|
95
|
-
export {
|
|
96
|
-
}
|
|
97
|
-
declare module '*.png' {
|
|
98
|
-
const src: string;
|
|
99
|
-
export { src };
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
declare module '*.svg' {
|
|
103
|
-
const src: string;
|
|
104
|
-
export { src };
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
declare module '*.json' {
|
|
108
|
-
const data: any;
|
|
109
|
-
export { data };
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
declare module '*.mp3' {
|
|
113
|
-
const src: string;
|
|
114
|
-
export { src };
|
|
114
|
+
declare module '*.mp3' {
|
|
115
|
+
const src: string;
|
|
116
|
+
export { src };
|
|
115
117
|
}
|
|
116
118
|
|
|
117
|
-
declare global {
|
|
118
|
-
var environment: IEnv;
|
|
119
|
-
var moduleId: IModuleId | null;
|
|
120
|
-
var moduleUrls: {
|
|
121
|
-
[id in IModuleId]?: string;
|
|
122
|
-
};
|
|
123
|
-
var axiosInstance: AxiosInstance;
|
|
124
|
-
var appVersion: string | undefined;
|
|
125
|
-
var api: {
|
|
126
|
-
apiUrl: string;
|
|
127
|
-
clientId: string;
|
|
128
|
-
authScope?: string;
|
|
129
|
-
additionalScopes?: string[];
|
|
130
|
-
redirectUrl?: string;
|
|
131
|
-
};
|
|
132
|
-
var serviceApiUrls: Partial<Record<IServiceApi, string>> | undefined;
|
|
133
|
-
var zE: {
|
|
134
|
-
show: () => void;
|
|
135
|
-
hide: () => void;
|
|
136
|
-
activate: () => void;
|
|
137
|
-
setLocale: (locale: string) => void;
|
|
138
|
-
};
|
|
119
|
+
declare global {
|
|
120
|
+
var environment: IEnv;
|
|
121
|
+
var moduleId: IModuleId | null;
|
|
122
|
+
var moduleUrls: {
|
|
123
|
+
[id in IModuleId]?: string;
|
|
124
|
+
};
|
|
125
|
+
var axiosInstance: AxiosInstance;
|
|
126
|
+
var appVersion: string | undefined;
|
|
127
|
+
var api: {
|
|
128
|
+
apiUrl: string;
|
|
129
|
+
clientId: string;
|
|
130
|
+
authScope?: string;
|
|
131
|
+
additionalScopes?: string[];
|
|
132
|
+
redirectUrl?: string;
|
|
133
|
+
};
|
|
134
|
+
var serviceApiUrls: Partial<Record<IServiceApi, string>> | undefined;
|
|
135
|
+
var zE: {
|
|
136
|
+
show: () => void;
|
|
137
|
+
hide: () => void;
|
|
138
|
+
activate: () => void;
|
|
139
|
+
setLocale: (locale: string) => void;
|
|
140
|
+
};
|
|
139
141
|
}
|