@inceptionbg/main 3.0.24 → 3.0.26

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 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, ToastContainerProps, 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, IPagination, IReportTemplate, 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 IProduct {
537
+ interface IIndexDataCodebook {
578
538
  uuid: string;
579
- code?: string;
580
- name?: string;
581
- priceWithoutVat?: number | string;
582
- vatPercentage?: number;
583
- serialNumber?: string;
584
- manufacturer?: string;
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
- vatPercentage: number;
597
- calculateVatAmount?: boolean;
598
- internalVatCalculation?: boolean;
599
- organization?: IOrganization;
549
+ uuid: string;
550
+ active: boolean;
600
551
  }
601
552
 
602
- interface ITaxAllocation {
553
+ interface IIndexData {
603
554
  uuid: string;
604
- vatIndicator: IVatIndicator;
605
- lowerVatTaxBase?: number;
606
- higherVatTaxBase?: number;
607
- lowerVatTaxAmount?: number;
608
- higherVatTaxAmount?: number;
609
- totalAmountWithoutVat?: number;
610
- totalVatAmount?: number;
611
- totalAmountWithVat?: number;
612
- taxExcemptionAmount?: number;
613
- nonVatPayerAmount?: number;
614
- participateInPdfReport?: boolean;
615
- orderNumber?: string;
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 ITaxRecapitulation {
618
- priceWithoutVat: number;
619
- priceWithVat: number;
620
- vatAmount: number;
621
- vatPercentage: number;
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 IPayment {
633
- uuid?: string;
634
- amountWithoutVat?: number | string;
635
- description?: string;
636
- invoice?: IDocument;
637
- paymentAmount?: number | string;
638
- paymentDate?: string;
639
- vatAmount?: number | string;
640
- vatPercentage?: number | string;
641
- organization?: IOrganization;
642
- orderNumber?: string;
643
- account?: IAccount;
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,31 +1332,20 @@ 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>;
1335
+ declare const useGetMyOrganizations: ({ enabled, pagination, filters, }: {
1336
+ enabled?: boolean;
1337
+ pagination: IPagination;
1338
+ filters: {
1339
+ status?: OrganizationStatus;
1340
+ nameLike?: string;
1341
+ subsystem?: IModuleId | null;
1342
+ excludeOrganizationUuid?: string;
1343
+ };
1344
+ }) => _tanstack_react_query.UseQueryResult<{
1345
+ organizations: IOrganization[];
1346
+ totalRows: number;
1347
+ subsystems: IModuleId[];
1348
+ }, Error>;
1346
1349
 
1347
1350
  type IReportTemplatesFetchOption = 'SORT' | 'FILTER_VALUES' | 'COLUMNS' | 'CREATED_BY' | 'ORGANIZATION' | 'OPTIONS';
1348
1351
  type IReportTemplatesProps = {
@@ -1361,21 +1364,18 @@ declare const useGetReportTemplates: (params: IReportTemplatesProps, enabled: bo
1361
1364
  declare const useCreateReportTemplate: () => _tanstack_react_query.UseMutationResult<axios.AxiosResponse<any, any, {}>, Error, Partial<IReportTemplate>, unknown>;
1362
1365
  declare const useDeleteReportTemplates: IDeleteItemMutation;
1363
1366
 
1367
+ interface Props$6 {
1368
+ toastProps?: ToastContainerProps;
1369
+ children: ReactNode;
1370
+ }
1371
+ declare const AppWrapper: FC<Props$6>;
1372
+
1364
1373
  interface IErrorContext {
1365
1374
  errors: IError[];
1366
1375
  setErrors: Dispatch<SetStateAction<IError[]>>;
1367
1376
  }
1368
1377
  declare const useErrorContext: () => IErrorContext;
1369
1378
 
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
1379
  interface IOrganizationContext {
1380
1380
  organization: IOrganization | null;
1381
1381
  changeOrganization: (orgUuid: string, callback?: () => void) => void;
@@ -1389,6 +1389,44 @@ interface IOrganizationContext {
1389
1389
  declare const useOrganization: () => IOrganizationContext;
1390
1390
  declare const useModules: () => IModuleIdsObj;
1391
1391
 
1392
+ interface Props$5 {
1393
+ children: ReactNode;
1394
+ }
1395
+ declare const ReactQueryProvider: FC<Props$5>;
1396
+
1397
+ interface IUserContext {
1398
+ user: IUser | null;
1399
+ refetch: () => void;
1400
+ userSettings: IUserSettings;
1401
+ updateUserSettings: (data: IUserSettings, showToast?: boolean) => void;
1402
+ isFetching: boolean;
1403
+ }
1404
+ declare const useUser: () => IUserContext;
1405
+
1406
+ declare const BusinessYearChooser: FC;
1407
+
1408
+ declare const BusinessYearPage: FC;
1409
+
1410
+ interface Props$4 {
1411
+ controls: {
1412
+ myAccountControl: IPopupControl;
1413
+ changeOrgControl: IPopupControl;
1414
+ orgInvitesControl: IPopupControl;
1415
+ };
1416
+ refetchOrganizationInvites?: () => void;
1417
+ }
1418
+ declare const HeaderUserMenuDialogs: FC<Props$4>;
1419
+
1420
+ interface Props$3 {
1421
+ searchData: IAnyObject;
1422
+ setSearchData: Dispatch<SetStateAction<IAnyObject>>;
1423
+ indexesSearch: Partial<IIndexData>[];
1424
+ setIndexesSearch: Dispatch<SetStateAction<Partial<IIndexData>[]>>;
1425
+ documentTypeUuid?: string;
1426
+ type?: 'document' | 'case' | 'contract';
1427
+ }
1428
+ declare const IndexDataSearch: FC<Props$3>;
1429
+
1392
1430
  interface IBusinessYearContext {
1393
1431
  businessYear: string;
1394
1432
  setBusinessYear: Dispatch<SetStateAction<string>>;
@@ -1404,40 +1442,16 @@ declare const useModuleSelect: (activeModuleId: IModuleId | null) => {
1404
1442
  modules: IModule[];
1405
1443
  };
1406
1444
 
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
1445
  declare const useNotificationsProps: () => INotificationsProps;
1420
1446
 
1421
- declare const useOrgInvites: ({ enabled, pagination, fetchOptions, }: {
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
- };
1447
+ declare const useUserMenuProps: () => IHeaderUserMenuProps;
1434
1448
 
1435
1449
  declare const useDefaultTemplate: (identifier: string) => {
1436
1450
  defaultTemplate: _inceptionbg_iui.IReportTemplate | undefined;
1437
1451
  isLoadingDefaultTemplate: boolean;
1438
1452
  };
1439
1453
 
1440
- interface Props$5 {
1454
+ interface Props$2 {
1441
1455
  identifier: string;
1442
1456
  data: IReportTemplateData;
1443
1457
  limit?: number;
@@ -1445,34 +1459,49 @@ interface Props$5 {
1445
1459
  defaultTemplate?: IReportTemplate;
1446
1460
  fetchOptions?: IReportTemplatesFetchOption[];
1447
1461
  }
1448
- declare const useReportTemplates: ({ identifier, data, limit, allowPublicCreate, defaultTemplate, fetchOptions, }: Props$5) => ITableTemplateData;
1462
+ declare const useReportTemplates: ({ identifier, data, limit, allowPublicCreate, defaultTemplate, fetchOptions, }: Props$2) => ITableTemplateData;
1449
1463
 
1450
- interface Props$4 {
1464
+ interface Props$1 {
1451
1465
  hasAccess: boolean;
1452
1466
  textId: string;
1453
1467
  useDeleteItemsMutation: IDeleteItemMutation;
1454
1468
  onSuccess?: () => void;
1455
1469
  }
1456
- declare const useTableItemsDelete: ({ hasAccess, textId, useDeleteItemsMutation, onSuccess, }: Props$4) => ITableItemDeleteData;
1470
+ declare const useTableItemsDelete: ({ hasAccess, textId, useDeleteItemsMutation, onSuccess, }: Props$1) => ITableItemDeleteData;
1457
1471
 
1458
- interface Props$3 {
1472
+ declare const useOrgInvites: ({ enabled, pagination, fetchOptions, }: {
1473
+ enabled: boolean;
1474
+ pagination?: IPagination;
1475
+ fetchOptions?: IOrganizationInvitesFetchOption[];
1476
+ }) => {
1477
+ invites: IOrganizationInvite[];
1478
+ count: number;
1479
+ isFetching: boolean;
1480
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
1481
+ organizationInvites: IOrganizationInvite[];
1482
+ totalRows: number;
1483
+ }, Error>>;
1484
+ };
1485
+
1486
+ interface Props {
1459
1487
  modulePrivileges: string[];
1460
1488
  usePrivileges: () => IAnyObject;
1461
1489
  }
1462
- declare const RolesWithPrivileges: FC<Props$3>;
1490
+ declare const RolesWithPrivileges: FC<Props>;
1463
1491
 
1464
- interface Props$2 {
1465
- toastProps?: ToastContainerProps;
1466
- children: ReactNode;
1467
- }
1468
- declare const AppWrapper: FC<Props$2>;
1492
+ declare const login: () => void;
1493
+ declare const logout: (options?: {
1494
+ nextUrl?: boolean;
1495
+ clearData?: boolean;
1496
+ redirectUrl?: string;
1497
+ }) => void;
1498
+ declare const decodeToken: (token?: string | null) => IToken | undefined;
1469
1499
 
1470
- interface Props$1 {
1471
- children: ReactNode;
1472
- }
1473
- declare const ReactQueryProvider: FC<Props$1>;
1500
+ declare const debugLog: (...args: any[]) => void;
1474
1501
 
1475
- declare const i18nMainLatin: {
1502
+ declare const envVars: IEnvVar;
1503
+
1504
+ declare const i18nMainCyrilic: {
1476
1505
  ADMIN: string;
1477
1506
  EARCHIVE: string;
1478
1507
  ERDS: string;
@@ -1487,7 +1516,7 @@ declare const i18nMainLatin: {
1487
1516
  DISPATCH_ADVICE: string;
1488
1517
  TELEGRAM_MNGMNT: string;
1489
1518
  VAT_EVIDENCE: string;
1490
- ERP_RIF: string;
1519
+ EPR_RIF: string;
1491
1520
  ERP_CASH_REGISTER: string;
1492
1521
  ERP_MAT_ACC: string;
1493
1522
  ERP_SMALL_INVENTORY: string;
@@ -1526,6 +1555,7 @@ declare const i18nMainLatin: {
1526
1555
  TaxId: string;
1527
1556
  BusinessCode: string;
1528
1557
  BusinessCodeShort: string;
1558
+ JBKJS: string;
1529
1559
  FullPhoneNumber: string;
1530
1560
  Organization: string;
1531
1561
  Organizations: string;
@@ -1600,6 +1630,8 @@ declare const i18nMainLatin: {
1600
1630
  UmcnValidation: string;
1601
1631
  Attachments: string;
1602
1632
  CreationTime: string;
1633
+ DeleteFileDesc: string;
1634
+ DeleteFileTitle: string;
1603
1635
  DisplaySignatureOnDocument: string;
1604
1636
  Download: string;
1605
1637
  DownloadAll: string;
@@ -1633,18 +1665,14 @@ declare const i18nMainLatin: {
1633
1665
  Type: string;
1634
1666
  AddSignatory: string;
1635
1667
  AddSignatories: string;
1668
+ DeleteFileSignatoryTitle: string;
1669
+ DeleteFileSignatoryDesc: string;
1636
1670
  Report: string;
1637
1671
  ReportDate: string;
1638
1672
  ReportFromTo: string;
1639
1673
  DeleteDialogTitle: string;
1640
1674
  DeleteDialogItem: string;
1641
1675
  DeleteDialogItemBulk: string;
1642
- DeleteDialogFile: string;
1643
- DeleteDialogFileBulk: string;
1644
- DeleteDialogReportTemplate: string;
1645
- DeleteDialogReportTemplateBulk: string;
1646
- DeleteDialogFileSignatory: string;
1647
- DeleteDialogFileSignatoryBulk: string;
1648
1676
  InProgress: string;
1649
1677
  FinalStatus: string;
1650
1678
  LatestApprovalStatus: string;
@@ -1683,14 +1711,13 @@ declare const i18nMainLatin: {
1683
1711
  BusinessYearChooser: string;
1684
1712
  Successfully: string;
1685
1713
  Year: string;
1686
- BusinessYearPage: string;
1687
1714
  BusinessYearInfoTitle: string;
1688
1715
  BusinessYearInfoDesc: string;
1689
1716
  ErrorDEFAULT: string;
1690
1717
  TryAgain: string;
1691
1718
  };
1692
1719
 
1693
- declare const i18nMainCyrilic: {
1720
+ declare const i18nMainLatin: {
1694
1721
  ADMIN: string;
1695
1722
  EARCHIVE: string;
1696
1723
  ERDS: string;
@@ -1705,7 +1732,7 @@ declare const i18nMainCyrilic: {
1705
1732
  DISPATCH_ADVICE: string;
1706
1733
  TELEGRAM_MNGMNT: string;
1707
1734
  VAT_EVIDENCE: string;
1708
- EPR_RIF: string;
1735
+ ERP_RIF: string;
1709
1736
  ERP_CASH_REGISTER: string;
1710
1737
  ERP_MAT_ACC: string;
1711
1738
  ERP_SMALL_INVENTORY: string;
@@ -1744,6 +1771,7 @@ declare const i18nMainCyrilic: {
1744
1771
  TaxId: string;
1745
1772
  BusinessCode: string;
1746
1773
  BusinessCodeShort: string;
1774
+ JBKJS: string;
1747
1775
  FullPhoneNumber: string;
1748
1776
  Organization: string;
1749
1777
  Organizations: string;
@@ -1818,8 +1846,6 @@ declare const i18nMainCyrilic: {
1818
1846
  UmcnValidation: string;
1819
1847
  Attachments: string;
1820
1848
  CreationTime: string;
1821
- DeleteFileDesc: string;
1822
- DeleteFileTitle: string;
1823
1849
  DisplaySignatureOnDocument: string;
1824
1850
  Download: string;
1825
1851
  DownloadAll: string;
@@ -1853,14 +1879,18 @@ declare const i18nMainCyrilic: {
1853
1879
  Type: string;
1854
1880
  AddSignatory: string;
1855
1881
  AddSignatories: string;
1856
- DeleteFileSignatoryTitle: string;
1857
- DeleteFileSignatoryDesc: string;
1858
1882
  Report: string;
1859
1883
  ReportDate: string;
1860
1884
  ReportFromTo: string;
1861
1885
  DeleteDialogTitle: string;
1862
1886
  DeleteDialogItem: string;
1863
1887
  DeleteDialogItemBulk: string;
1888
+ DeleteDialogFile: string;
1889
+ DeleteDialogFileBulk: string;
1890
+ DeleteDialogReportTemplate: string;
1891
+ DeleteDialogReportTemplateBulk: string;
1892
+ DeleteDialogFileSignatory: string;
1893
+ DeleteDialogFileSignatoryBulk: string;
1864
1894
  InProgress: string;
1865
1895
  FinalStatus: string;
1866
1896
  LatestApprovalStatus: string;
@@ -1899,6 +1929,7 @@ declare const i18nMainCyrilic: {
1899
1929
  BusinessYearChooser: string;
1900
1930
  Successfully: string;
1901
1931
  Year: string;
1932
+ BusinessYearPage: string;
1902
1933
  BusinessYearInfoTitle: string;
1903
1934
  BusinessYearInfoDesc: string;
1904
1935
  ErrorDEFAULT: string;
@@ -1961,6 +1992,7 @@ declare const i18nMainME: {
1961
1992
  TaxId: string;
1962
1993
  BusinessCode: string;
1963
1994
  BusinessCodeShort: string;
1995
+ JBKJS: string;
1964
1996
  FullPhoneNumber: string;
1965
1997
  Organization: string;
1966
1998
  Organizations: string;
@@ -2125,19 +2157,5 @@ declare const i18nMainME: {
2125
2157
 
2126
2158
  declare const mainFullScreenRoutes: IRoute[];
2127
2159
 
2128
- interface Props {
2129
- searchData: IAnyObject;
2130
- setSearchData: Dispatch<SetStateAction<IAnyObject>>;
2131
- indexesSearch: Partial<IIndexData>[];
2132
- setIndexesSearch: Dispatch<SetStateAction<Partial<IIndexData>[]>>;
2133
- documentTypeUuid?: string;
2134
- type?: 'document' | 'case' | 'contract';
2135
- }
2136
- declare const IndexDataSearch: FC<Props>;
2137
-
2138
- declare const BusinessYearChooser: FC;
2139
-
2140
- declare const BusinessYearPage: FC;
2141
-
2142
- 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 };
2160
+ 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, useGetMyOrganizations, useGetReportTemplates, useModuleSelect, useModules, useNotificationsProps, useOrgInvites, useOrganization, useReportTemplates, useTableItemsDelete, useUser, useUserMenuProps, useUserMenuProps as userMenuProps };
2143
2161
  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-DJ1ZZdFA.js";import"jwt-decode";import"crypto-js";import"@inceptionbg/iui";import"@tanstack/react-query";import"react/jsx-runtime";import"react";import"react-i18next";import"react-router";import"axios";
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,c as useGetMyOrganizations,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-BKy7xbgI.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inceptionbg/main",
3
- "version": "3.0.24",
3
+ "version": "3.0.26",
4
4
  "description": "Main app wrapper for Inception ecosystem",
5
5
  "type": "module",
6
6
  "files": [
@@ -1,2 +0,0 @@
1
- import{jsxs as o,jsx as e}from"react/jsx-runtime";import{parseUrlSearch as r,lsGet as t,Button as n,FullScreenLoader as i,lsRemove as c}from"@inceptionbg/iui";import{useTranslation as a}from"react-i18next";import{useLocation as s}from"react-router";import{useState as d,useEffect as m}from"react";import{l,g as f,a as p}from"./index-DJ1ZZdFA.js";import"jwt-decode";import"crypto-js";import"@tanstack/react-query";import"axios";const g=()=>{const[g,u]=d(""),{t:h}=a(),{search:x}=s();return m(()=>{const o="DEV"===environment,{code:e}=r(x),n=t("token"),i=()=>{const o=t("nextUrl");o?(window.location.href=o,c("nextUrl")):window.location.href="/"};g?o&&console.info("Login error:",g):n?(o&&console.info("Token found, redirecting to app"),i()):e&&t("codeVerifier")?(o&&console.info("Code found, attempting to get new tokens"),f(e).then(i).catch(o=>{"invalid_grant"===o[0].errorCode&&l(),u(h("ErrorMessage"))})):(o&&console.info("No code found, redirecting to login"),l())},[g,x,h]),g?o("div",{className:"flex center column gap-3 mt-5 ",children:[e("h1",{children:g}),e(n,{label:h("TryAgain"),variant:"solid",onClick:()=>p()})]}):e(i,{isLoading:!0})};export{g as default};
2
- //# sourceMappingURL=LoginPage-aI1ZiDaR.js.map