@inceptionbg/main 3.1.27 → 3.1.29
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-D9oIhQUE.js → SelectOrgPage-TY2pOvFY.js} +2 -2
- package/dist/{SelectOrgPage-D9oIhQUE.js.map → SelectOrgPage-TY2pOvFY.js.map} +1 -1
- package/dist/index-Dy-7IGPi.js +2 -0
- package/dist/index-Dy-7IGPi.js.map +1 -0
- package/dist/index.d.ts +51 -3
- package/dist/index.js +1 -1
- package/dist/main.css +1 -1
- package/dist/types/global.d.ts +129 -129
- package/package.json +55 -55
- package/dist/index-DBJybBGM.js +0 -2
- package/dist/index-DBJybBGM.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -227,6 +227,8 @@ interface IOrganizationalUnitType {
|
|
|
227
227
|
name: string;
|
|
228
228
|
internalCode: 'SECTOR';
|
|
229
229
|
}
|
|
230
|
+
declare const FiscalYearActions: readonly ["CLOSE", "REOPEN"];
|
|
231
|
+
type FiscalYearAction = (typeof FiscalYearActions)[number];
|
|
230
232
|
|
|
231
233
|
interface IJob {
|
|
232
234
|
uuid?: string;
|
|
@@ -1195,6 +1197,7 @@ type IEnvVar = {
|
|
|
1195
1197
|
|
|
1196
1198
|
type IOrganizationSettings = Record<string, any> & {
|
|
1197
1199
|
language?: string;
|
|
1200
|
+
closedFiscalYears?: number[];
|
|
1198
1201
|
};
|
|
1199
1202
|
type IUserSettingsDefKeys = 'language' | 'activeOrgUuid' | 'defaultOrgUuid' | 'tableLimit';
|
|
1200
1203
|
type IUserSettings<T extends string = string> = {
|
|
@@ -1247,6 +1250,12 @@ declare const useGetMyOrganizations: ({ enabled, pagination, filters, }: {
|
|
|
1247
1250
|
totalRows: number;
|
|
1248
1251
|
subsystems: IModuleId[];
|
|
1249
1252
|
}, Error>;
|
|
1253
|
+
declare const usePatchFiscalYear: ({ onSuccess }?: {
|
|
1254
|
+
onSuccess?: () => void;
|
|
1255
|
+
}) => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
1256
|
+
year: number;
|
|
1257
|
+
action: FiscalYearAction;
|
|
1258
|
+
}, unknown>;
|
|
1250
1259
|
|
|
1251
1260
|
type IReportTemplatesFetchOption = 'SORT' | 'FILTER_VALUES' | 'COLUMNS' | 'CREATED_BY' | 'ORGANIZATION' | 'OPTIONS';
|
|
1252
1261
|
type IReportTemplatesProps = {
|
|
@@ -1311,7 +1320,15 @@ declare const LastArticlesWidget: FC<Props$5>;
|
|
|
1311
1320
|
|
|
1312
1321
|
declare const BusinessYearChooser: FC;
|
|
1313
1322
|
|
|
1314
|
-
|
|
1323
|
+
interface FiscalYearLockManagerProps {
|
|
1324
|
+
canReopen?: boolean;
|
|
1325
|
+
}
|
|
1326
|
+
declare const FiscalYearLockManager: FC<FiscalYearLockManagerProps>;
|
|
1327
|
+
|
|
1328
|
+
interface BusinessYearPageProps {
|
|
1329
|
+
canReopenFiscalYear?: boolean;
|
|
1330
|
+
}
|
|
1331
|
+
declare const BusinessYearPage: FC<BusinessYearPageProps>;
|
|
1315
1332
|
|
|
1316
1333
|
interface Props$4 {
|
|
1317
1334
|
textId?: string;
|
|
@@ -1337,6 +1354,8 @@ declare const IndexDataSearch: FC<Props$3>;
|
|
|
1337
1354
|
interface IBusinessYearContext {
|
|
1338
1355
|
businessYear: string;
|
|
1339
1356
|
setBusinessYear: Dispatch<SetStateAction<string>>;
|
|
1357
|
+
closedFiscalYears?: number[];
|
|
1358
|
+
setClosedFiscalYears?: Dispatch<SetStateAction<number[]>>;
|
|
1340
1359
|
}
|
|
1341
1360
|
declare const BusinessYearProvider: ({ children }: {
|
|
1342
1361
|
children: ReactNode;
|
|
@@ -1355,6 +1374,11 @@ declare const useModuleSelect: (activeModuleId: IModuleId | null, { showBusiness
|
|
|
1355
1374
|
|
|
1356
1375
|
declare const useNotificationsProps: () => INotificationsProps;
|
|
1357
1376
|
|
|
1377
|
+
declare const useFiscalYearStatus: () => {
|
|
1378
|
+
isClosed: boolean;
|
|
1379
|
+
year: number;
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1358
1382
|
interface IUseUserMenuPropsOptions {
|
|
1359
1383
|
myAccount?: {
|
|
1360
1384
|
hidden?: boolean;
|
|
@@ -1724,6 +1748,14 @@ declare const i18nMainCyrilic: {
|
|
|
1724
1748
|
Year: string;
|
|
1725
1749
|
BusinessYearInfoTitle: string;
|
|
1726
1750
|
BusinessYearInfoDesc: string;
|
|
1751
|
+
FiscalYearStatus: string;
|
|
1752
|
+
FiscalYearIsLocked: string;
|
|
1753
|
+
FiscalYearIsOpen: string;
|
|
1754
|
+
CloseFiscalYear: string;
|
|
1755
|
+
ReopenFiscalYear: string;
|
|
1756
|
+
FiscalYearClosed: string;
|
|
1757
|
+
FiscalYearReopened: string;
|
|
1758
|
+
NoPrivilegeToReopenFiscalYear: string;
|
|
1727
1759
|
ErrorDEFAULT: string;
|
|
1728
1760
|
TryAgain: string;
|
|
1729
1761
|
};
|
|
@@ -1961,6 +1993,14 @@ declare const i18nMainLatin: {
|
|
|
1961
1993
|
BusinessYearPage: string;
|
|
1962
1994
|
BusinessYearInfoTitle: string;
|
|
1963
1995
|
BusinessYearInfoDesc: string;
|
|
1996
|
+
FiscalYearStatus: string;
|
|
1997
|
+
FiscalYearIsLocked: string;
|
|
1998
|
+
FiscalYearIsOpen: string;
|
|
1999
|
+
CloseFiscalYear: string;
|
|
2000
|
+
ReopenFiscalYear: string;
|
|
2001
|
+
FiscalYearClosed: string;
|
|
2002
|
+
FiscalYearReopened: string;
|
|
2003
|
+
NoPrivilegeToReopenFiscalYear: string;
|
|
1964
2004
|
ErrorDEFAULT: string;
|
|
1965
2005
|
TryAgain: string;
|
|
1966
2006
|
};
|
|
@@ -2198,6 +2238,14 @@ declare const i18nMainME: {
|
|
|
2198
2238
|
BusinessYearPage: string;
|
|
2199
2239
|
BusinessYearInfoTitle: string;
|
|
2200
2240
|
BusinessYearInfoDesc: string;
|
|
2241
|
+
FiscalYearStatus: string;
|
|
2242
|
+
FiscalYearIsLocked: string;
|
|
2243
|
+
FiscalYearIsOpen: string;
|
|
2244
|
+
CloseFiscalYear: string;
|
|
2245
|
+
ReopenFiscalYear: string;
|
|
2246
|
+
FiscalYearClosed: string;
|
|
2247
|
+
FiscalYearReopened: string;
|
|
2248
|
+
NoPrivilegeToReopenFiscalYear: string;
|
|
2201
2249
|
ErrorDEFAULT: string;
|
|
2202
2250
|
TryAgain: string;
|
|
2203
2251
|
};
|
|
@@ -2209,5 +2257,5 @@ declare const ssGet: (key: LocalStorageItem) => string | null;
|
|
|
2209
2257
|
declare const ssSet: (key: LocalStorageItem, value: string) => void;
|
|
2210
2258
|
declare const ssRemove: (key: LocalStorageItem) => void;
|
|
2211
2259
|
|
|
2212
|
-
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 };
|
|
2213
|
-
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 };
|
|
2260
|
+
export { AppWrapper, ArticlesPage, BusinessYearChooser, BusinessYearPage, BusinessYearProvider, Constraints, DeleteItemsDialog, DocumentStatuses, FiscalYearActions, FiscalYearLockManager, 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, useFiscalYearStatus, useGetMyOrganizations, useGetReportTemplates, useGetUserSettings, useGetUserSettingsItem, useModuleSelect, useModules, useNotificationsProps, useOrgInvites, useOrganizationStore, usePatchFiscalYear, useReportTemplates, useTableItemsDelete, useUserMenuProps, useUserSettings, useUserStore, useUserMenuProps as userMenuProps };
|
|
2261
|
+
export type { ApprovalStatus, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, FiscalYearAction, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{A as AppWrapper,e as ArticlesPage,B as BusinessYearChooser,f as BusinessYearPage,g as BusinessYearProvider,D as DeleteItemsDialog,H as HeaderUserMenuDialogs,I as IndexDataSearch,L as LastArticlesWidget,R as ReactQueryProvider,h as RolesWithPrivileges,c as changeOrganization,i as checkToken,j as clearActiveOrg,k as debugLog,m as decodeToken,n as envVars,o as getActiveOrgUuid,p as getToken,q as i18nMainCyrilic,r as i18nMainLatin,s as i18nMainME,t as login,l as logout,v as mainFullScreenRoutes,w as moduleIcon,x as moduleIds,y as queryClient,z as setBusinessYearContext,C as ssGet,E as ssRemove,
|
|
1
|
+
export{A as AppWrapper,e as ArticlesPage,B as BusinessYearChooser,f as BusinessYearPage,g as BusinessYearProvider,D as DeleteItemsDialog,F as FiscalYearLockManager,H as HeaderUserMenuDialogs,I as IndexDataSearch,L as LastArticlesWidget,R as ReactQueryProvider,h as RolesWithPrivileges,c as changeOrganization,i as checkToken,j as clearActiveOrg,k as debugLog,m as decodeToken,n as envVars,o as getActiveOrgUuid,p as getToken,q as i18nMainCyrilic,r as i18nMainLatin,s as i18nMainME,t as login,l as logout,v as mainFullScreenRoutes,w as moduleIcon,x as moduleIds,y as queryClient,z as setBusinessYearContext,C as ssGet,E as ssRemove,G as ssSet,d as useActiveOrgUuid,J as useBusinessYearContext,K as useCreateReportTemplate,M as useDefaultTemplate,N as useDeleteReportTemplates,P as useErrorContext,Q as useFiscalYearStatus,b as useGetMyOrganizations,S as useGetReportTemplates,T as useGetUserSettings,U as useGetUserSettingsItem,V as useModuleSelect,W as useModules,X as useNotificationsProps,a as useOrgInvites,Y as useOrganizationStore,Z as usePatchFiscalYear,_ as useReportTemplates,$ as useTableItemsDelete,a0 as useUserMenuProps,a1 as useUserSettings,u as useUserStore,a0 as userMenuProps}from"./index-Dy-7IGPi.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/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.article-body{line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-align:justify}.article-footer{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-top:auto}@media screen and (max-width:700px){.article-footer{align-items:flex-start;flex-direction:column-reverse}}.select-org-page{padding:32px 48px}.select-org-page h1{font-size:40px;font-weight:900;margin-bottom:12px}.select-org-page h2{color:#333;font-size:16px;line-height:1.6}.select-org-page .org-page-content{display:grid;gap:32px;grid-template-columns:1fr 1fr;padding:24px 48px}.select-org{display:flex;flex-direction:column;gap:16px;max-width:600px}.select-org .iui-list{max-height:50vh}
|
|
1
|
+
.article-body{line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-align:justify}.article-footer{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-top:auto}@media screen and (max-width:700px){.article-footer{align-items:flex-start;flex-direction:column-reverse}}.fiscal-year-container{padding:16px}.fiscal-year-yearInfo{margin-bottom:16px}.fiscal-year-statusBadge{border-radius:4px;margin-top:8px;padding:8px}.fiscal-year-statusBadge.locked{background-color:#fee;color:#c33}.fiscal-year-statusBadge.open{background-color:#efe;color:#3c3}.fiscal-year-helpText{color:#666;font-size:14px;margin-top:8px}.select-org-page{padding:32px 48px}.select-org-page h1{font-size:40px;font-weight:900;margin-bottom:12px}.select-org-page h2{color:#333;font-size:16px;line-height:1.6}.select-org-page .org-page-content{display:grid;gap:32px;grid-template-columns:1fr 1fr;padding:24px 48px}.select-org{display:flex;flex-direction:column;gap:16px;max-width:600px}.select-org .iui-list{max-height:50vh}
|
package/dist/types/global.d.ts
CHANGED
|
@@ -1,142 +1,142 @@
|
|
|
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
|
-
'ERP_HR',
|
|
28
|
-
// PRIVATE
|
|
29
|
-
'JISUSZ_BACKOFFICE',
|
|
30
|
-
'MONITORING',
|
|
31
|
-
|
|
32
|
-
// 'ERP',
|
|
33
|
-
// 'FINANCES',
|
|
34
|
-
// 'CONTRACTS',
|
|
35
|
-
// 'IDM',
|
|
36
|
-
// 'REGISTRATION',
|
|
37
|
-
// 'QC_REGISTRATION',
|
|
38
|
-
// '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
|
+
'ERP_HR',
|
|
28
|
+
// PRIVATE
|
|
29
|
+
'JISUSZ_BACKOFFICE',
|
|
30
|
+
'MONITORING',
|
|
31
|
+
|
|
32
|
+
// 'ERP',
|
|
33
|
+
// 'FINANCES',
|
|
34
|
+
// 'CONTRACTS',
|
|
35
|
+
// 'IDM',
|
|
36
|
+
// 'REGISTRATION',
|
|
37
|
+
// 'QC_REGISTRATION',
|
|
38
|
+
// 'SETTINGS',
|
|
39
39
|
] as const;
|
|
40
40
|
|
|
41
41
|
type IModuleId = (typeof moduleIds)[number];
|
|
42
42
|
|
|
43
|
-
type IEnv =
|
|
44
|
-
| 'DEV'
|
|
45
|
-
| 'TEST'
|
|
46
|
-
| 'PROD'
|
|
47
|
-
| 'LOCAL'
|
|
48
|
-
| 'UAT'
|
|
49
|
-
| 'TEST_PPLCG'
|
|
50
|
-
| 'PROD_PPLCG'
|
|
51
|
-
| 'TEST_MSP'
|
|
52
|
-
| 'PROD_MSP'
|
|
53
|
-
| 'TEST_LOCAL_MSP'
|
|
54
|
-
| 'TEST_PTT'
|
|
55
|
-
| 'PROD_PTT';
|
|
56
|
-
|
|
57
|
-
type IRequiredServiceApi = 'auth' | 'idm' | 'registration' | 'userSettings';
|
|
58
|
-
|
|
59
|
-
type IOptionalServiceApi =
|
|
60
|
-
| 'codebook'
|
|
61
|
-
| 'auditLog'
|
|
62
|
-
| 'notifications'
|
|
63
|
-
| 'indexData'
|
|
64
|
-
| 'reportTemplates'
|
|
65
|
-
| 'approvalProcess'
|
|
66
|
-
| 'procurement'
|
|
67
|
-
| 'archive'
|
|
68
|
-
| 'invoice'
|
|
69
|
-
| 'delivery'
|
|
70
|
-
| 'edms'
|
|
71
|
-
| 'rif'
|
|
72
|
-
| 'cashRegister'
|
|
73
|
-
| 'jisuszProxy'
|
|
74
|
-
| 'fosterCare'
|
|
75
|
-
| 'article'
|
|
76
|
-
| 'approval'
|
|
77
|
-
| 'messenger'
|
|
78
|
-
| 'veosp'
|
|
79
|
-
| 'fixedAssets'
|
|
80
|
-
| 'dispatchAdvice'
|
|
81
|
-
| 'tasks'
|
|
82
|
-
| 'nbs';
|
|
83
|
-
|
|
43
|
+
type IEnv =
|
|
44
|
+
| 'DEV'
|
|
45
|
+
| 'TEST'
|
|
46
|
+
| 'PROD'
|
|
47
|
+
| 'LOCAL'
|
|
48
|
+
| 'UAT'
|
|
49
|
+
| 'TEST_PPLCG'
|
|
50
|
+
| 'PROD_PPLCG'
|
|
51
|
+
| 'TEST_MSP'
|
|
52
|
+
| 'PROD_MSP'
|
|
53
|
+
| 'TEST_LOCAL_MSP'
|
|
54
|
+
| 'TEST_PTT'
|
|
55
|
+
| 'PROD_PTT';
|
|
56
|
+
|
|
57
|
+
type IRequiredServiceApi = 'auth' | 'idm' | 'registration' | 'userSettings';
|
|
58
|
+
|
|
59
|
+
type IOptionalServiceApi =
|
|
60
|
+
| 'codebook'
|
|
61
|
+
| 'auditLog'
|
|
62
|
+
| 'notifications'
|
|
63
|
+
| 'indexData'
|
|
64
|
+
| 'reportTemplates'
|
|
65
|
+
| 'approvalProcess'
|
|
66
|
+
| 'procurement'
|
|
67
|
+
| 'archive'
|
|
68
|
+
| 'invoice'
|
|
69
|
+
| 'delivery'
|
|
70
|
+
| 'edms'
|
|
71
|
+
| 'rif'
|
|
72
|
+
| 'cashRegister'
|
|
73
|
+
| 'jisuszProxy'
|
|
74
|
+
| 'fosterCare'
|
|
75
|
+
| 'article'
|
|
76
|
+
| 'approval'
|
|
77
|
+
| 'messenger'
|
|
78
|
+
| 'veosp'
|
|
79
|
+
| 'fixedAssets'
|
|
80
|
+
| 'dispatchAdvice'
|
|
81
|
+
| 'tasks'
|
|
82
|
+
| 'nbs';
|
|
83
|
+
|
|
84
84
|
type IServiceApi$1 = IRequiredServiceApi | IOptionalServiceApi;
|
|
85
85
|
|
|
86
|
-
declare module 'axios' {
|
|
87
|
-
interface AxiosRequestConfig {
|
|
88
|
-
public?: boolean;
|
|
89
|
-
service?: IServiceApi$1;
|
|
90
|
-
token?: string;
|
|
91
|
-
noToast?: boolean;
|
|
92
|
-
noErrors?: boolean;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare module '*.scss' {
|
|
97
|
-
const classes: { readonly [key: string]: string };
|
|
98
|
-
export { classes };
|
|
99
|
-
}
|
|
100
|
-
declare module '*.png' {
|
|
101
|
-
const src: string;
|
|
102
|
-
export { src };
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
declare module '*.svg' {
|
|
106
|
-
const src: string;
|
|
107
|
-
export { src };
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
declare module '*.json' {
|
|
111
|
-
const data: any;
|
|
112
|
-
export { data };
|
|
86
|
+
declare module 'axios' {
|
|
87
|
+
interface AxiosRequestConfig {
|
|
88
|
+
public?: boolean;
|
|
89
|
+
service?: IServiceApi$1;
|
|
90
|
+
token?: string;
|
|
91
|
+
noToast?: boolean;
|
|
92
|
+
noErrors?: boolean;
|
|
93
|
+
}
|
|
113
94
|
}
|
|
114
95
|
|
|
115
|
-
declare module '*.
|
|
116
|
-
const
|
|
117
|
-
export {
|
|
96
|
+
declare module '*.scss' {
|
|
97
|
+
const classes: { readonly [key: string]: string };
|
|
98
|
+
export { classes };
|
|
99
|
+
}
|
|
100
|
+
declare module '*.png' {
|
|
101
|
+
const src: string;
|
|
102
|
+
export { src };
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
declare module '*.svg' {
|
|
106
|
+
const src: string;
|
|
107
|
+
export { src };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
declare module '*.json' {
|
|
111
|
+
const data: any;
|
|
112
|
+
export { data };
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare module '*.mp3' {
|
|
116
|
+
const src: string;
|
|
117
|
+
export { src };
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
declare global {
|
|
121
|
-
var environment: IEnv;
|
|
122
|
-
var moduleId: IModuleId | null;
|
|
123
|
-
var moduleUrls: {
|
|
124
|
-
[id in IModuleId]?: string;
|
|
125
|
-
};
|
|
126
|
-
var axiosInstance: AxiosInstance;
|
|
127
|
-
var appVersion: string | undefined;
|
|
128
|
-
var api: {
|
|
129
|
-
apiUrl: string;
|
|
130
|
-
clientId: string;
|
|
131
|
-
authScope?: string;
|
|
132
|
-
additionalScopes?: string[];
|
|
133
|
-
redirectUrl?: string;
|
|
134
|
-
};
|
|
135
|
-
var serviceApiUrls: Partial<Record<IServiceApi, string>> | undefined;
|
|
136
|
-
var zE: {
|
|
137
|
-
show: () => void;
|
|
138
|
-
hide: () => void;
|
|
139
|
-
activate: () => void;
|
|
140
|
-
setLocale: (locale: string) => void;
|
|
141
|
-
};
|
|
120
|
+
declare global {
|
|
121
|
+
var environment: IEnv;
|
|
122
|
+
var moduleId: IModuleId | null;
|
|
123
|
+
var moduleUrls: {
|
|
124
|
+
[id in IModuleId]?: string;
|
|
125
|
+
};
|
|
126
|
+
var axiosInstance: AxiosInstance;
|
|
127
|
+
var appVersion: string | undefined;
|
|
128
|
+
var api: {
|
|
129
|
+
apiUrl: string;
|
|
130
|
+
clientId: string;
|
|
131
|
+
authScope?: string;
|
|
132
|
+
additionalScopes?: string[];
|
|
133
|
+
redirectUrl?: string;
|
|
134
|
+
};
|
|
135
|
+
var serviceApiUrls: Partial<Record<IServiceApi, string>> | undefined;
|
|
136
|
+
var zE: {
|
|
137
|
+
show: () => void;
|
|
138
|
+
hide: () => void;
|
|
139
|
+
activate: () => void;
|
|
140
|
+
setLocale: (locale: string) => void;
|
|
141
|
+
};
|
|
142
142
|
}
|
package/package.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@inceptionbg/main",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"description": "Main app wrapper for Inception ecosystem",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
],
|
|
9
|
-
"main": "dist/index.js",
|
|
10
|
-
"types": "dist/index.d.ts",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "rollup -c",
|
|
13
|
-
"tsc": "tsc --noEmit",
|
|
14
|
-
"lint": "eslint --max-warnings=0 src",
|
|
15
|
-
"link-i": "npm link @inceptionbg/iui",
|
|
16
|
-
"update-i": "npm i @inceptionbg/iui@latest",
|
|
17
|
-
"update-ic": "npm i @inceptionbg/icons@latest",
|
|
18
|
-
"release": "npm version patch && npm run build && npm publish"
|
|
19
|
-
},
|
|
20
|
-
"author": "Aleksandar Sadzak",
|
|
21
|
-
"license": "ISC",
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"axios": "^1.13.5",
|
|
24
|
-
"crypto-js": "^4.2.0",
|
|
25
|
-
"jwt-decode": "^4.0.0"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@rollup/plugin-commonjs": "^29.0.0",
|
|
29
|
-
"@rollup/plugin-image": "^3.0.3",
|
|
30
|
-
"@rollup/plugin-terser": "^1.0.0",
|
|
31
|
-
"@rollup/plugin-typescript": "^12.3.0",
|
|
32
|
-
"@rollup/plugin-url": "^8.0.2",
|
|
33
|
-
"@types/crypto-js": "^4.2.2",
|
|
34
|
-
"@types/react": "^19.2.14",
|
|
35
|
-
"@types/react-dom": "^19.2.3",
|
|
36
|
-
"rollup": "^4.57.1",
|
|
37
|
-
"rollup-plugin-delete": "^3.0.2",
|
|
38
|
-
"rollup-plugin-dts": "^6.3.0",
|
|
39
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
40
|
-
"tslib": "^2.8.1"
|
|
41
|
-
},
|
|
42
|
-
"peerDependencies": {
|
|
43
|
-
"@fortawesome/fontawesome-svg-core": ">=7.2.0",
|
|
44
|
-
"@inceptionbg/icons": "^1.0.8",
|
|
45
|
-
"@inceptionbg/iui": "^2.0.62",
|
|
46
|
-
"@tanstack/react-query": ">=5.90.21",
|
|
47
|
-
"i18next": ">=26.3.0",
|
|
48
|
-
"react": ">=19.2.4 <20",
|
|
49
|
-
"react-dom": ">=19.2.4 <20",
|
|
50
|
-
"react-i18next": ">=17.0.8",
|
|
51
|
-
"react-router": ">=7.17.0",
|
|
52
|
-
"sass": ">=1.97.3",
|
|
53
|
-
"zustand": ">=5.0.12"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@inceptionbg/main",
|
|
3
|
+
"version": "3.1.29",
|
|
4
|
+
"description": "Main app wrapper for Inception ecosystem",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"main": "dist/index.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "rollup -c",
|
|
13
|
+
"tsc": "tsc --noEmit",
|
|
14
|
+
"lint": "eslint --max-warnings=0 src",
|
|
15
|
+
"link-i": "npm link @inceptionbg/iui",
|
|
16
|
+
"update-i": "npm i @inceptionbg/iui@latest",
|
|
17
|
+
"update-ic": "npm i @inceptionbg/icons@latest",
|
|
18
|
+
"release": "npm version patch && npm run build && npm publish"
|
|
19
|
+
},
|
|
20
|
+
"author": "Aleksandar Sadzak",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"axios": "^1.13.5",
|
|
24
|
+
"crypto-js": "^4.2.0",
|
|
25
|
+
"jwt-decode": "^4.0.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
29
|
+
"@rollup/plugin-image": "^3.0.3",
|
|
30
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
31
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
32
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
33
|
+
"@types/crypto-js": "^4.2.2",
|
|
34
|
+
"@types/react": "^19.2.14",
|
|
35
|
+
"@types/react-dom": "^19.2.3",
|
|
36
|
+
"rollup": "^4.57.1",
|
|
37
|
+
"rollup-plugin-delete": "^3.0.2",
|
|
38
|
+
"rollup-plugin-dts": "^6.3.0",
|
|
39
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
40
|
+
"tslib": "^2.8.1"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@fortawesome/fontawesome-svg-core": ">=7.2.0",
|
|
44
|
+
"@inceptionbg/icons": "^1.0.8",
|
|
45
|
+
"@inceptionbg/iui": "^2.0.62",
|
|
46
|
+
"@tanstack/react-query": ">=5.90.21",
|
|
47
|
+
"i18next": ">=26.3.0",
|
|
48
|
+
"react": ">=19.2.4 <20",
|
|
49
|
+
"react-dom": ">=19.2.4 <20",
|
|
50
|
+
"react-i18next": ">=17.0.8",
|
|
51
|
+
"react-router": ">=7.17.0",
|
|
52
|
+
"sass": ">=1.97.3",
|
|
53
|
+
"zustand": ">=5.0.12"
|
|
54
|
+
}
|
|
55
|
+
}
|