@inceptionbg/main 3.0.23 → 3.0.25
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/LoginPage-DKjeQdr6.js +2 -0
- package/dist/{LoginPage-CuyNAkkE.js.map → LoginPage-DKjeQdr6.js.map} +1 -1
- package/dist/{SelectOrgPage-DfqyEXVp.js → SelectOrgPage-BYiUMwLI.js} +2 -2
- package/dist/{SelectOrgPage-DfqyEXVp.js.map → SelectOrgPage-BYiUMwLI.js.map} +1 -1
- package/dist/index-lM24RKH7.js +2 -0
- package/dist/index-lM24RKH7.js.map +1 -0
- package/dist/index.d.ts +220 -216
- package/dist/index.js +1 -1
- package/dist/types/global.d.ts +60 -60
- package/package.json +2 -2
- package/dist/LoginPage-CuyNAkkE.js +0 -2
- package/dist/index-C0YfqTSC.js +0 -2
- package/dist/index-C0YfqTSC.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
import * as _inceptionbg_iui from '@inceptionbg/iui';
|
|
2
|
-
import { ISimpleObjectWithCode, ISimpleObject, ISelectData, IReportTemplate, IPagination, IError, IPopupControl, IHeaderUserMenuProps, INotificationsProps, IReportTemplateData, ITableTemplateData, ITableItemDeleteData, IAnyObject, IRoute } from '@inceptionbg/iui';
|
|
3
|
-
import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-svg-core';
|
|
4
|
-
import { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
5
1
|
import * as axios from 'axios';
|
|
6
2
|
import { AxiosResponse } from 'axios';
|
|
7
3
|
export { AxiosError } from 'axios';
|
|
8
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
9
5
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
10
6
|
import { FC, Dispatch, SetStateAction, ReactNode } from 'react';
|
|
7
|
+
import * as _inceptionbg_iui from '@inceptionbg/iui';
|
|
8
|
+
import { ISimpleObjectWithCode, ISimpleObject, ISelectData, IReportTemplate, IPagination, ToastContainerProps, IError, IPopupControl, IAnyObject, INotificationsProps, IHeaderUserMenuProps, IReportTemplateData, ITableTemplateData, ITableItemDeleteData, IRoute } from '@inceptionbg/iui';
|
|
9
|
+
import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-svg-core';
|
|
10
|
+
import { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
11
11
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
12
12
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
13
13
|
|
|
14
|
+
type IDeleteItemMutation = (props: {
|
|
15
|
+
onSuccess: () => void;
|
|
16
|
+
}) => UseMutationResult<AxiosResponse<any, any>, Error, {
|
|
17
|
+
itemUuids: string[];
|
|
18
|
+
}, unknown>;
|
|
19
|
+
interface Props$7 {
|
|
20
|
+
textId?: string;
|
|
21
|
+
itemUuids: string[];
|
|
22
|
+
setItemUuids: Dispatch<SetStateAction<string[]>>;
|
|
23
|
+
onSuccess?: () => void;
|
|
24
|
+
useDeleteItemsMutation: IDeleteItemMutation;
|
|
25
|
+
}
|
|
26
|
+
declare const DeleteItemsDialog: FC<Props$7>;
|
|
27
|
+
|
|
14
28
|
interface IPlace {
|
|
15
29
|
uuid: string;
|
|
16
30
|
name: string;
|
|
@@ -357,60 +371,6 @@ interface IEmployee {
|
|
|
357
371
|
costCenter?: ISimpleObjectWithCode;
|
|
358
372
|
}
|
|
359
373
|
|
|
360
|
-
interface IIndexDataCodebook {
|
|
361
|
-
uuid: string;
|
|
362
|
-
name: string;
|
|
363
|
-
description: string;
|
|
364
|
-
active?: boolean;
|
|
365
|
-
organization?: {
|
|
366
|
-
uuid: string;
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
interface IIndexDataCodebookItem {
|
|
370
|
-
code: string;
|
|
371
|
-
name: string;
|
|
372
|
-
uuid: string;
|
|
373
|
-
active: boolean;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
interface IIndexData {
|
|
377
|
-
uuid: string;
|
|
378
|
-
name: string;
|
|
379
|
-
code: string;
|
|
380
|
-
createdAt: string;
|
|
381
|
-
fieldType: IndexDataFieldType;
|
|
382
|
-
indexDataCodebook?: Partial<IIndexDataCodebook>;
|
|
383
|
-
deletionTime?: string;
|
|
384
|
-
readonly?: boolean;
|
|
385
|
-
organization?: IOrganization;
|
|
386
|
-
minLength?: number;
|
|
387
|
-
maxLength?: number;
|
|
388
|
-
order?: number;
|
|
389
|
-
fieldTypeObj?: ISelectData;
|
|
390
|
-
codebookObj?: ISelectData;
|
|
391
|
-
}
|
|
392
|
-
interface IIndex {
|
|
393
|
-
uuid?: string;
|
|
394
|
-
value?: string;
|
|
395
|
-
name?: string;
|
|
396
|
-
position?: IIndexDataPosition;
|
|
397
|
-
indexData?: IIndexData;
|
|
398
|
-
indexOrder?: string;
|
|
399
|
-
defaultCodebookItem?: Partial<IIndexDataCodebookItem>;
|
|
400
|
-
}
|
|
401
|
-
declare const IndexDataFieldTypes: readonly ["TEXT", "DATE", "CODEBOOK", "NUMERIC", "DECIMAL", "LONG_TEXT"];
|
|
402
|
-
type IndexDataFieldType = (typeof IndexDataFieldTypes)[number];
|
|
403
|
-
declare const IndexDataPositions: readonly ["COST_CENTER", "CONTRACT", "CASE", "DOCUMENT", "LEGAL_ENTITY"];
|
|
404
|
-
type IIndexDataPosition = (typeof IndexDataPositions)[number];
|
|
405
|
-
interface IIndicesIndex {
|
|
406
|
-
uuid?: string;
|
|
407
|
-
indexDataPosition?: IIndex;
|
|
408
|
-
value?: string;
|
|
409
|
-
codebookItem?: {
|
|
410
|
-
uuid: string;
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
|
|
414
374
|
interface IFileSignatory {
|
|
415
375
|
uuid?: string;
|
|
416
376
|
firstName?: string;
|
|
@@ -574,51 +534,58 @@ interface IDocumentSendSearch {
|
|
|
574
534
|
declare const SendStatuses: readonly ["QUEUED", "SENDING", "NOT_REGISTERED_ON_SEF", "ERROR", "SENT", "SEEN", "DOWNLOADED", "APPROVED", "REJECTED", "UNRESOLVED", "MISTAKE", "CANCELLED", "STORNO", "RENOTIFIED"];
|
|
575
535
|
type ISendStatus = (typeof SendStatuses)[number];
|
|
576
536
|
|
|
577
|
-
interface
|
|
537
|
+
interface IIndexDataCodebook {
|
|
578
538
|
uuid: string;
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
taxCategory?: string;
|
|
586
|
-
barcode?: string;
|
|
587
|
-
taxExemptionNote?: ITaxExemptionNote;
|
|
588
|
-
unitOfMeasure?: ISimpleObject;
|
|
589
|
-
bankingService?: boolean;
|
|
539
|
+
name: string;
|
|
540
|
+
description: string;
|
|
541
|
+
active?: boolean;
|
|
542
|
+
organization?: {
|
|
543
|
+
uuid: string;
|
|
544
|
+
};
|
|
590
545
|
}
|
|
591
|
-
|
|
592
|
-
interface IVatIndicator {
|
|
593
|
-
uuid: string;
|
|
546
|
+
interface IIndexDataCodebookItem {
|
|
594
547
|
code: string;
|
|
595
548
|
name: string;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
internalVatCalculation?: boolean;
|
|
599
|
-
organization?: IOrganization;
|
|
549
|
+
uuid: string;
|
|
550
|
+
active: boolean;
|
|
600
551
|
}
|
|
601
552
|
|
|
602
|
-
interface
|
|
553
|
+
interface IIndexData {
|
|
603
554
|
uuid: string;
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
555
|
+
name: string;
|
|
556
|
+
code: string;
|
|
557
|
+
createdAt: string;
|
|
558
|
+
fieldType: IndexDataFieldType;
|
|
559
|
+
indexDataCodebook?: Partial<IIndexDataCodebook>;
|
|
560
|
+
deletionTime?: string;
|
|
561
|
+
readonly?: boolean;
|
|
562
|
+
organization?: IOrganization;
|
|
563
|
+
minLength?: number;
|
|
564
|
+
maxLength?: number;
|
|
565
|
+
order?: number;
|
|
566
|
+
fieldTypeObj?: ISelectData;
|
|
567
|
+
codebookObj?: ISelectData;
|
|
616
568
|
}
|
|
617
|
-
interface
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
569
|
+
interface IIndex {
|
|
570
|
+
uuid?: string;
|
|
571
|
+
value?: string;
|
|
572
|
+
name?: string;
|
|
573
|
+
position?: IIndexDataPosition;
|
|
574
|
+
indexData?: IIndexData;
|
|
575
|
+
indexOrder?: string;
|
|
576
|
+
defaultCodebookItem?: Partial<IIndexDataCodebookItem>;
|
|
577
|
+
}
|
|
578
|
+
declare const IndexDataFieldTypes: readonly ["TEXT", "DATE", "CODEBOOK", "NUMERIC", "DECIMAL", "LONG_TEXT"];
|
|
579
|
+
type IndexDataFieldType = (typeof IndexDataFieldTypes)[number];
|
|
580
|
+
declare const IndexDataPositions: readonly ["COST_CENTER", "CONTRACT", "CASE", "DOCUMENT", "LEGAL_ENTITY"];
|
|
581
|
+
type IIndexDataPosition = (typeof IndexDataPositions)[number];
|
|
582
|
+
interface IIndicesIndex {
|
|
583
|
+
uuid?: string;
|
|
584
|
+
indexDataPosition?: IIndex;
|
|
585
|
+
value?: string;
|
|
586
|
+
codebookItem?: {
|
|
587
|
+
uuid: string;
|
|
588
|
+
};
|
|
622
589
|
}
|
|
623
590
|
|
|
624
591
|
interface IAccount {
|
|
@@ -629,18 +596,19 @@ interface IAccount {
|
|
|
629
596
|
organization?: IOrganization;
|
|
630
597
|
}
|
|
631
598
|
|
|
632
|
-
interface
|
|
633
|
-
uuid
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
599
|
+
interface IProduct {
|
|
600
|
+
uuid: string;
|
|
601
|
+
code?: string;
|
|
602
|
+
name?: string;
|
|
603
|
+
priceWithoutVat?: number | string;
|
|
604
|
+
vatPercentage?: number;
|
|
605
|
+
serialNumber?: string;
|
|
606
|
+
manufacturer?: string;
|
|
607
|
+
taxCategory?: string;
|
|
608
|
+
barcode?: string;
|
|
609
|
+
taxExemptionNote?: ITaxExemptionNote;
|
|
610
|
+
unitOfMeasure?: ISimpleObject;
|
|
611
|
+
bankingService?: boolean;
|
|
644
612
|
}
|
|
645
613
|
|
|
646
614
|
interface IContractNew {
|
|
@@ -811,6 +779,52 @@ interface ICostCenterExpenseAllocationIndex {
|
|
|
811
779
|
};
|
|
812
780
|
}
|
|
813
781
|
|
|
782
|
+
interface IPayment {
|
|
783
|
+
uuid?: string;
|
|
784
|
+
amountWithoutVat?: number | string;
|
|
785
|
+
description?: string;
|
|
786
|
+
invoice?: IDocument;
|
|
787
|
+
paymentAmount?: number | string;
|
|
788
|
+
paymentDate?: string;
|
|
789
|
+
vatAmount?: number | string;
|
|
790
|
+
vatPercentage?: number | string;
|
|
791
|
+
organization?: IOrganization;
|
|
792
|
+
orderNumber?: string;
|
|
793
|
+
account?: IAccount;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
interface IVatIndicator {
|
|
797
|
+
uuid: string;
|
|
798
|
+
code: string;
|
|
799
|
+
name: string;
|
|
800
|
+
vatPercentage: number;
|
|
801
|
+
calculateVatAmount?: boolean;
|
|
802
|
+
internalVatCalculation?: boolean;
|
|
803
|
+
organization?: IOrganization;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
interface ITaxAllocation {
|
|
807
|
+
uuid: string;
|
|
808
|
+
vatIndicator: IVatIndicator;
|
|
809
|
+
lowerVatTaxBase?: number;
|
|
810
|
+
higherVatTaxBase?: number;
|
|
811
|
+
lowerVatTaxAmount?: number;
|
|
812
|
+
higherVatTaxAmount?: number;
|
|
813
|
+
totalAmountWithoutVat?: number;
|
|
814
|
+
totalVatAmount?: number;
|
|
815
|
+
totalAmountWithVat?: number;
|
|
816
|
+
taxExcemptionAmount?: number;
|
|
817
|
+
nonVatPayerAmount?: number;
|
|
818
|
+
participateInPdfReport?: boolean;
|
|
819
|
+
orderNumber?: string;
|
|
820
|
+
}
|
|
821
|
+
interface ITaxRecapitulation {
|
|
822
|
+
priceWithoutVat: number;
|
|
823
|
+
priceWithVat: number;
|
|
824
|
+
vatAmount: number;
|
|
825
|
+
vatPercentage: number;
|
|
826
|
+
}
|
|
827
|
+
|
|
814
828
|
interface IInvoice extends IDocument {
|
|
815
829
|
name?: string;
|
|
816
830
|
trafficDate?: string;
|
|
@@ -1318,32 +1332,6 @@ type IUseMutationData = {
|
|
|
1318
1332
|
onSuccess: IMutationSuccess;
|
|
1319
1333
|
};
|
|
1320
1334
|
|
|
1321
|
-
declare const login: () => void;
|
|
1322
|
-
declare const logout: (options?: {
|
|
1323
|
-
nextUrl?: boolean;
|
|
1324
|
-
clearData?: boolean;
|
|
1325
|
-
redirectUrl?: string;
|
|
1326
|
-
}) => void;
|
|
1327
|
-
declare const decodeToken: (token?: string | null) => IToken | undefined;
|
|
1328
|
-
|
|
1329
|
-
declare const debugLog: (...args: any[]) => void;
|
|
1330
|
-
|
|
1331
|
-
declare const envVars: IEnvVar;
|
|
1332
|
-
|
|
1333
|
-
type IDeleteItemMutation = (props: {
|
|
1334
|
-
onSuccess: () => void;
|
|
1335
|
-
}) => UseMutationResult<AxiosResponse<any, any>, Error, {
|
|
1336
|
-
itemUuids: string[];
|
|
1337
|
-
}, unknown>;
|
|
1338
|
-
interface Props$7 {
|
|
1339
|
-
textId?: string;
|
|
1340
|
-
itemUuids: string[];
|
|
1341
|
-
setItemUuids: Dispatch<SetStateAction<string[]>>;
|
|
1342
|
-
onSuccess?: () => void;
|
|
1343
|
-
useDeleteItemsMutation: IDeleteItemMutation;
|
|
1344
|
-
}
|
|
1345
|
-
declare const DeleteItemsDialog: FC<Props$7>;
|
|
1346
|
-
|
|
1347
1335
|
type IReportTemplatesFetchOption = 'SORT' | 'FILTER_VALUES' | 'COLUMNS' | 'CREATED_BY' | 'ORGANIZATION' | 'OPTIONS';
|
|
1348
1336
|
type IReportTemplatesProps = {
|
|
1349
1337
|
pagination: IPagination;
|
|
@@ -1361,21 +1349,18 @@ declare const useGetReportTemplates: (params: IReportTemplatesProps, enabled: bo
|
|
|
1361
1349
|
declare const useCreateReportTemplate: () => _tanstack_react_query.UseMutationResult<axios.AxiosResponse<any, any, {}>, Error, Partial<IReportTemplate>, unknown>;
|
|
1362
1350
|
declare const useDeleteReportTemplates: IDeleteItemMutation;
|
|
1363
1351
|
|
|
1352
|
+
interface Props$6 {
|
|
1353
|
+
toastProps?: ToastContainerProps;
|
|
1354
|
+
children: ReactNode;
|
|
1355
|
+
}
|
|
1356
|
+
declare const AppWrapper: FC<Props$6>;
|
|
1357
|
+
|
|
1364
1358
|
interface IErrorContext {
|
|
1365
1359
|
errors: IError[];
|
|
1366
1360
|
setErrors: Dispatch<SetStateAction<IError[]>>;
|
|
1367
1361
|
}
|
|
1368
1362
|
declare const useErrorContext: () => IErrorContext;
|
|
1369
1363
|
|
|
1370
|
-
interface IUserContext {
|
|
1371
|
-
user: IUser | null;
|
|
1372
|
-
refetch: () => void;
|
|
1373
|
-
userSettings: IUserSettings;
|
|
1374
|
-
updateUserSettings: (data: IUserSettings, showToast?: boolean) => void;
|
|
1375
|
-
isFetching: boolean;
|
|
1376
|
-
}
|
|
1377
|
-
declare const useUser: () => IUserContext;
|
|
1378
|
-
|
|
1379
1364
|
interface IOrganizationContext {
|
|
1380
1365
|
organization: IOrganization | null;
|
|
1381
1366
|
changeOrganization: (orgUuid: string, callback?: () => void) => void;
|
|
@@ -1389,6 +1374,44 @@ interface IOrganizationContext {
|
|
|
1389
1374
|
declare const useOrganization: () => IOrganizationContext;
|
|
1390
1375
|
declare const useModules: () => IModuleIdsObj;
|
|
1391
1376
|
|
|
1377
|
+
interface Props$5 {
|
|
1378
|
+
children: ReactNode;
|
|
1379
|
+
}
|
|
1380
|
+
declare const ReactQueryProvider: FC<Props$5>;
|
|
1381
|
+
|
|
1382
|
+
interface IUserContext {
|
|
1383
|
+
user: IUser | null;
|
|
1384
|
+
refetch: () => void;
|
|
1385
|
+
userSettings: IUserSettings;
|
|
1386
|
+
updateUserSettings: (data: IUserSettings, showToast?: boolean) => void;
|
|
1387
|
+
isFetching: boolean;
|
|
1388
|
+
}
|
|
1389
|
+
declare const useUser: () => IUserContext;
|
|
1390
|
+
|
|
1391
|
+
declare const BusinessYearChooser: FC;
|
|
1392
|
+
|
|
1393
|
+
declare const BusinessYearPage: FC;
|
|
1394
|
+
|
|
1395
|
+
interface Props$4 {
|
|
1396
|
+
controls: {
|
|
1397
|
+
myAccountControl: IPopupControl;
|
|
1398
|
+
changeOrgControl: IPopupControl;
|
|
1399
|
+
orgInvitesControl: IPopupControl;
|
|
1400
|
+
};
|
|
1401
|
+
refetchOrganizationInvites?: () => void;
|
|
1402
|
+
}
|
|
1403
|
+
declare const HeaderUserMenuDialogs: FC<Props$4>;
|
|
1404
|
+
|
|
1405
|
+
interface Props$3 {
|
|
1406
|
+
searchData: IAnyObject;
|
|
1407
|
+
setSearchData: Dispatch<SetStateAction<IAnyObject>>;
|
|
1408
|
+
indexesSearch: Partial<IIndexData>[];
|
|
1409
|
+
setIndexesSearch: Dispatch<SetStateAction<Partial<IIndexData>[]>>;
|
|
1410
|
+
documentTypeUuid?: string;
|
|
1411
|
+
type?: 'document' | 'case' | 'contract';
|
|
1412
|
+
}
|
|
1413
|
+
declare const IndexDataSearch: FC<Props$3>;
|
|
1414
|
+
|
|
1392
1415
|
interface IBusinessYearContext {
|
|
1393
1416
|
businessYear: string;
|
|
1394
1417
|
setBusinessYear: Dispatch<SetStateAction<string>>;
|
|
@@ -1404,40 +1427,16 @@ declare const useModuleSelect: (activeModuleId: IModuleId | null) => {
|
|
|
1404
1427
|
modules: IModule[];
|
|
1405
1428
|
};
|
|
1406
1429
|
|
|
1407
|
-
interface Props$6 {
|
|
1408
|
-
controls: {
|
|
1409
|
-
myAccountControl: IPopupControl;
|
|
1410
|
-
changeOrgControl: IPopupControl;
|
|
1411
|
-
orgInvitesControl: IPopupControl;
|
|
1412
|
-
};
|
|
1413
|
-
refetchOrganizationInvites?: () => void;
|
|
1414
|
-
}
|
|
1415
|
-
declare const HeaderUserMenuDialogs: FC<Props$6>;
|
|
1416
|
-
|
|
1417
|
-
declare const useUserMenuProps: () => IHeaderUserMenuProps;
|
|
1418
|
-
|
|
1419
1430
|
declare const useNotificationsProps: () => INotificationsProps;
|
|
1420
1431
|
|
|
1421
|
-
declare const
|
|
1422
|
-
enabled: boolean;
|
|
1423
|
-
pagination?: IPagination;
|
|
1424
|
-
fetchOptions?: IOrganizationInvitesFetchOption[];
|
|
1425
|
-
}) => {
|
|
1426
|
-
invites: IOrganizationInvite[];
|
|
1427
|
-
count: number;
|
|
1428
|
-
isFetching: boolean;
|
|
1429
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1430
|
-
organizationInvites: IOrganizationInvite[];
|
|
1431
|
-
totalRows: number;
|
|
1432
|
-
}, Error>>;
|
|
1433
|
-
};
|
|
1432
|
+
declare const useUserMenuProps: () => IHeaderUserMenuProps;
|
|
1434
1433
|
|
|
1435
1434
|
declare const useDefaultTemplate: (identifier: string) => {
|
|
1436
1435
|
defaultTemplate: _inceptionbg_iui.IReportTemplate | undefined;
|
|
1437
1436
|
isLoadingDefaultTemplate: boolean;
|
|
1438
1437
|
};
|
|
1439
1438
|
|
|
1440
|
-
interface Props$
|
|
1439
|
+
interface Props$2 {
|
|
1441
1440
|
identifier: string;
|
|
1442
1441
|
data: IReportTemplateData;
|
|
1443
1442
|
limit?: number;
|
|
@@ -1445,33 +1444,49 @@ interface Props$5 {
|
|
|
1445
1444
|
defaultTemplate?: IReportTemplate;
|
|
1446
1445
|
fetchOptions?: IReportTemplatesFetchOption[];
|
|
1447
1446
|
}
|
|
1448
|
-
declare const useReportTemplates: ({ identifier, data, limit, allowPublicCreate, defaultTemplate, fetchOptions, }: Props$
|
|
1447
|
+
declare const useReportTemplates: ({ identifier, data, limit, allowPublicCreate, defaultTemplate, fetchOptions, }: Props$2) => ITableTemplateData;
|
|
1449
1448
|
|
|
1450
|
-
interface Props$
|
|
1449
|
+
interface Props$1 {
|
|
1451
1450
|
hasAccess: boolean;
|
|
1452
1451
|
textId: string;
|
|
1453
1452
|
useDeleteItemsMutation: IDeleteItemMutation;
|
|
1454
1453
|
onSuccess?: () => void;
|
|
1455
1454
|
}
|
|
1456
|
-
declare const useTableItemsDelete: ({ hasAccess, textId, useDeleteItemsMutation, onSuccess, }: Props$
|
|
1455
|
+
declare const useTableItemsDelete: ({ hasAccess, textId, useDeleteItemsMutation, onSuccess, }: Props$1) => ITableItemDeleteData;
|
|
1457
1456
|
|
|
1458
|
-
|
|
1457
|
+
declare const useOrgInvites: ({ enabled, pagination, fetchOptions, }: {
|
|
1458
|
+
enabled: boolean;
|
|
1459
|
+
pagination?: IPagination;
|
|
1460
|
+
fetchOptions?: IOrganizationInvitesFetchOption[];
|
|
1461
|
+
}) => {
|
|
1462
|
+
invites: IOrganizationInvite[];
|
|
1463
|
+
count: number;
|
|
1464
|
+
isFetching: boolean;
|
|
1465
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1466
|
+
organizationInvites: IOrganizationInvite[];
|
|
1467
|
+
totalRows: number;
|
|
1468
|
+
}, Error>>;
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
interface Props {
|
|
1459
1472
|
modulePrivileges: string[];
|
|
1460
1473
|
usePrivileges: () => IAnyObject;
|
|
1461
1474
|
}
|
|
1462
|
-
declare const RolesWithPrivileges: FC<Props
|
|
1475
|
+
declare const RolesWithPrivileges: FC<Props>;
|
|
1463
1476
|
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1477
|
+
declare const login: () => void;
|
|
1478
|
+
declare const logout: (options?: {
|
|
1479
|
+
nextUrl?: boolean;
|
|
1480
|
+
clearData?: boolean;
|
|
1481
|
+
redirectUrl?: string;
|
|
1482
|
+
}) => void;
|
|
1483
|
+
declare const decodeToken: (token?: string | null) => IToken | undefined;
|
|
1468
1484
|
|
|
1469
|
-
|
|
1470
|
-
children: ReactNode;
|
|
1471
|
-
}
|
|
1472
|
-
declare const ReactQueryProvider: FC<Props$1>;
|
|
1485
|
+
declare const debugLog: (...args: any[]) => void;
|
|
1473
1486
|
|
|
1474
|
-
declare const
|
|
1487
|
+
declare const envVars: IEnvVar;
|
|
1488
|
+
|
|
1489
|
+
declare const i18nMainCyrilic: {
|
|
1475
1490
|
ADMIN: string;
|
|
1476
1491
|
EARCHIVE: string;
|
|
1477
1492
|
ERDS: string;
|
|
@@ -1486,7 +1501,7 @@ declare const i18nMainLatin: {
|
|
|
1486
1501
|
DISPATCH_ADVICE: string;
|
|
1487
1502
|
TELEGRAM_MNGMNT: string;
|
|
1488
1503
|
VAT_EVIDENCE: string;
|
|
1489
|
-
|
|
1504
|
+
EPR_RIF: string;
|
|
1490
1505
|
ERP_CASH_REGISTER: string;
|
|
1491
1506
|
ERP_MAT_ACC: string;
|
|
1492
1507
|
ERP_SMALL_INVENTORY: string;
|
|
@@ -1525,6 +1540,7 @@ declare const i18nMainLatin: {
|
|
|
1525
1540
|
TaxId: string;
|
|
1526
1541
|
BusinessCode: string;
|
|
1527
1542
|
BusinessCodeShort: string;
|
|
1543
|
+
JBKJS: string;
|
|
1528
1544
|
FullPhoneNumber: string;
|
|
1529
1545
|
Organization: string;
|
|
1530
1546
|
Organizations: string;
|
|
@@ -1533,8 +1549,8 @@ declare const i18nMainLatin: {
|
|
|
1533
1549
|
OrganizationName: string;
|
|
1534
1550
|
Partner: string;
|
|
1535
1551
|
Partners: string;
|
|
1536
|
-
|
|
1537
|
-
|
|
1552
|
+
NaturalPerson: string;
|
|
1553
|
+
NaturalPersons: string;
|
|
1538
1554
|
LegalEntity: string;
|
|
1539
1555
|
LegalEntities: string;
|
|
1540
1556
|
ForeignPartner: string;
|
|
@@ -1599,6 +1615,8 @@ declare const i18nMainLatin: {
|
|
|
1599
1615
|
UmcnValidation: string;
|
|
1600
1616
|
Attachments: string;
|
|
1601
1617
|
CreationTime: string;
|
|
1618
|
+
DeleteFileDesc: string;
|
|
1619
|
+
DeleteFileTitle: string;
|
|
1602
1620
|
DisplaySignatureOnDocument: string;
|
|
1603
1621
|
Download: string;
|
|
1604
1622
|
DownloadAll: string;
|
|
@@ -1632,18 +1650,14 @@ declare const i18nMainLatin: {
|
|
|
1632
1650
|
Type: string;
|
|
1633
1651
|
AddSignatory: string;
|
|
1634
1652
|
AddSignatories: string;
|
|
1653
|
+
DeleteFileSignatoryTitle: string;
|
|
1654
|
+
DeleteFileSignatoryDesc: string;
|
|
1635
1655
|
Report: string;
|
|
1636
1656
|
ReportDate: string;
|
|
1637
1657
|
ReportFromTo: string;
|
|
1638
1658
|
DeleteDialogTitle: string;
|
|
1639
1659
|
DeleteDialogItem: string;
|
|
1640
1660
|
DeleteDialogItemBulk: string;
|
|
1641
|
-
DeleteDialogFile: string;
|
|
1642
|
-
DeleteDialogFileBulk: string;
|
|
1643
|
-
DeleteDialogReportTemplate: string;
|
|
1644
|
-
DeleteDialogReportTemplateBulk: string;
|
|
1645
|
-
DeleteDialogFileSignatory: string;
|
|
1646
|
-
DeleteDialogFileSignatoryBulk: string;
|
|
1647
1661
|
InProgress: string;
|
|
1648
1662
|
FinalStatus: string;
|
|
1649
1663
|
LatestApprovalStatus: string;
|
|
@@ -1682,14 +1696,13 @@ declare const i18nMainLatin: {
|
|
|
1682
1696
|
BusinessYearChooser: string;
|
|
1683
1697
|
Successfully: string;
|
|
1684
1698
|
Year: string;
|
|
1685
|
-
BusinessYearPage: string;
|
|
1686
1699
|
BusinessYearInfoTitle: string;
|
|
1687
1700
|
BusinessYearInfoDesc: string;
|
|
1688
1701
|
ErrorDEFAULT: string;
|
|
1689
1702
|
TryAgain: string;
|
|
1690
1703
|
};
|
|
1691
1704
|
|
|
1692
|
-
declare const
|
|
1705
|
+
declare const i18nMainLatin: {
|
|
1693
1706
|
ADMIN: string;
|
|
1694
1707
|
EARCHIVE: string;
|
|
1695
1708
|
ERDS: string;
|
|
@@ -1704,7 +1717,7 @@ declare const i18nMainCyrilic: {
|
|
|
1704
1717
|
DISPATCH_ADVICE: string;
|
|
1705
1718
|
TELEGRAM_MNGMNT: string;
|
|
1706
1719
|
VAT_EVIDENCE: string;
|
|
1707
|
-
|
|
1720
|
+
ERP_RIF: string;
|
|
1708
1721
|
ERP_CASH_REGISTER: string;
|
|
1709
1722
|
ERP_MAT_ACC: string;
|
|
1710
1723
|
ERP_SMALL_INVENTORY: string;
|
|
@@ -1743,6 +1756,7 @@ declare const i18nMainCyrilic: {
|
|
|
1743
1756
|
TaxId: string;
|
|
1744
1757
|
BusinessCode: string;
|
|
1745
1758
|
BusinessCodeShort: string;
|
|
1759
|
+
JBKJS: string;
|
|
1746
1760
|
FullPhoneNumber: string;
|
|
1747
1761
|
Organization: string;
|
|
1748
1762
|
Organizations: string;
|
|
@@ -1751,8 +1765,8 @@ declare const i18nMainCyrilic: {
|
|
|
1751
1765
|
OrganizationName: string;
|
|
1752
1766
|
Partner: string;
|
|
1753
1767
|
Partners: string;
|
|
1754
|
-
|
|
1755
|
-
|
|
1768
|
+
NaturalPerson: string;
|
|
1769
|
+
NaturalPersons: string;
|
|
1756
1770
|
LegalEntity: string;
|
|
1757
1771
|
LegalEntities: string;
|
|
1758
1772
|
ForeignPartner: string;
|
|
@@ -1817,8 +1831,6 @@ declare const i18nMainCyrilic: {
|
|
|
1817
1831
|
UmcnValidation: string;
|
|
1818
1832
|
Attachments: string;
|
|
1819
1833
|
CreationTime: string;
|
|
1820
|
-
DeleteFileDesc: string;
|
|
1821
|
-
DeleteFileTitle: string;
|
|
1822
1834
|
DisplaySignatureOnDocument: string;
|
|
1823
1835
|
Download: string;
|
|
1824
1836
|
DownloadAll: string;
|
|
@@ -1852,14 +1864,18 @@ declare const i18nMainCyrilic: {
|
|
|
1852
1864
|
Type: string;
|
|
1853
1865
|
AddSignatory: string;
|
|
1854
1866
|
AddSignatories: string;
|
|
1855
|
-
DeleteFileSignatoryTitle: string;
|
|
1856
|
-
DeleteFileSignatoryDesc: string;
|
|
1857
1867
|
Report: string;
|
|
1858
1868
|
ReportDate: string;
|
|
1859
1869
|
ReportFromTo: string;
|
|
1860
1870
|
DeleteDialogTitle: string;
|
|
1861
1871
|
DeleteDialogItem: string;
|
|
1862
1872
|
DeleteDialogItemBulk: string;
|
|
1873
|
+
DeleteDialogFile: string;
|
|
1874
|
+
DeleteDialogFileBulk: string;
|
|
1875
|
+
DeleteDialogReportTemplate: string;
|
|
1876
|
+
DeleteDialogReportTemplateBulk: string;
|
|
1877
|
+
DeleteDialogFileSignatory: string;
|
|
1878
|
+
DeleteDialogFileSignatoryBulk: string;
|
|
1863
1879
|
InProgress: string;
|
|
1864
1880
|
FinalStatus: string;
|
|
1865
1881
|
LatestApprovalStatus: string;
|
|
@@ -1898,6 +1914,7 @@ declare const i18nMainCyrilic: {
|
|
|
1898
1914
|
BusinessYearChooser: string;
|
|
1899
1915
|
Successfully: string;
|
|
1900
1916
|
Year: string;
|
|
1917
|
+
BusinessYearPage: string;
|
|
1901
1918
|
BusinessYearInfoTitle: string;
|
|
1902
1919
|
BusinessYearInfoDesc: string;
|
|
1903
1920
|
ErrorDEFAULT: string;
|
|
@@ -1960,6 +1977,7 @@ declare const i18nMainME: {
|
|
|
1960
1977
|
TaxId: string;
|
|
1961
1978
|
BusinessCode: string;
|
|
1962
1979
|
BusinessCodeShort: string;
|
|
1980
|
+
JBKJS: string;
|
|
1963
1981
|
FullPhoneNumber: string;
|
|
1964
1982
|
Organization: string;
|
|
1965
1983
|
Organizations: string;
|
|
@@ -1968,8 +1986,8 @@ declare const i18nMainME: {
|
|
|
1968
1986
|
OrganizationName: string;
|
|
1969
1987
|
Partner: string;
|
|
1970
1988
|
Partners: string;
|
|
1971
|
-
|
|
1972
|
-
|
|
1989
|
+
NaturalPerson: string;
|
|
1990
|
+
NaturalPersons: string;
|
|
1973
1991
|
LegalEntity: string;
|
|
1974
1992
|
LegalEntities: string;
|
|
1975
1993
|
ForeignPartner: string;
|
|
@@ -2124,19 +2142,5 @@ declare const i18nMainME: {
|
|
|
2124
2142
|
|
|
2125
2143
|
declare const mainFullScreenRoutes: IRoute[];
|
|
2126
2144
|
|
|
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
|
-
|
|
2137
|
-
declare const BusinessYearChooser: FC;
|
|
2138
|
-
|
|
2139
|
-
declare const BusinessYearPage: FC;
|
|
2140
|
-
|
|
2141
2145
|
export { AppWrapper, BusinessYearChooser, BusinessYearPage, BusinessYearProvider, Constraints, DeleteItemsDialog, DocumentStatuses, HeaderUserMenuDialogs, IndexDataSearch, OrganizationStatuses, ReactQueryProvider, RolesWithPrivileges, debugLog, decodeToken, envVars, i18nMainCyrilic, i18nMainLatin, i18nMainME, login, logout, mainFullScreenRoutes, moduleIcon, moduleIds, setBusinessYearContext, useBusinessYearContext, useCreateReportTemplate, useDefaultTemplate, useDeleteReportTemplates, useErrorContext, useGetReportTemplates, useModuleSelect, useModules, useNotificationsProps, useOrgInvites, useOrganization, useReportTemplates, useTableItemsDelete, useUser, useUserMenuProps, useUserMenuProps as userMenuProps };
|
|
2142
2146
|
export type { ApprovalStatus, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, ICondition, IConditionIndexData, IConstraint, IContactPerson, ICountry, IDeleteItemMutation, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMunicipality, IMutationSuccess, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, IRole, IRolePrivilege, IServiceApi, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, OrganizationStatus, PartnerGroupType, RolePrivilegeGroup, UserFetchOption };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{G as AppWrapper,m as BusinessYearChooser,n as BusinessYearPage,B as BusinessYearProvider,I as DeleteItemsDialog,H as HeaderUserMenuDialogs,J as IndexDataSearch,K as ReactQueryProvider,R as RolesWithPrivileges,y as debugLog,z as decodeToken,A as envVars,t as i18nMainCyrilic,r as i18nMainLatin,v as i18nMainME,l as login,a as logout,w as mainFullScreenRoutes,C as moduleIcon,x as moduleIds,s as setBusinessYearContext,k as useBusinessYearContext,D as useCreateReportTemplate,h as useDefaultTemplate,F as useDeleteReportTemplates,d as useErrorContext,E as useGetReportTemplates,o as useModuleSelect,f as useModules,q as useNotificationsProps,u as useOrgInvites,b as useOrganization,i as useReportTemplates,j as useTableItemsDelete,e as useUser,p as useUserMenuProps,p as userMenuProps}from"./index-
|
|
1
|
+
export{G as AppWrapper,m as BusinessYearChooser,n as BusinessYearPage,B as BusinessYearProvider,I as DeleteItemsDialog,H as HeaderUserMenuDialogs,J as IndexDataSearch,K as ReactQueryProvider,R as RolesWithPrivileges,y as debugLog,z as decodeToken,A as envVars,t as i18nMainCyrilic,r as i18nMainLatin,v as i18nMainME,l as login,a as logout,w as mainFullScreenRoutes,C as moduleIcon,x as moduleIds,s as setBusinessYearContext,k as useBusinessYearContext,D as useCreateReportTemplate,h as useDefaultTemplate,F as useDeleteReportTemplates,d as useErrorContext,E as useGetReportTemplates,o as useModuleSelect,f as useModules,q as useNotificationsProps,u as useOrgInvites,b as useOrganization,i as useReportTemplates,j as useTableItemsDelete,e as useUser,p as useUserMenuProps,p as userMenuProps}from"./index-lM24RKH7.js";import"@inceptionbg/iui";import"@tanstack/react-query";import"react/jsx-runtime";import"axios";import"react-router";import"react";import"crypto-js";import"jwt-decode";import"react-i18next";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|