@inceptionbg/main 2.0.14 → 2.0.16

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
@@ -5,19 +5,6 @@ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { Accept } from 'react-dropzone';
7
7
 
8
- declare const ModuleIds: readonly ["EARCHIVE", "EDELIVERY", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION", "SETTINGS"];
9
- type IModuleId = (typeof ModuleIds)[number];
10
- type IModule = {
11
- [id in IModuleId]: {
12
- name: string;
13
- icon: any;
14
- disabled?: boolean;
15
- hidden?: boolean;
16
- };
17
- };
18
-
19
- type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT';
20
-
21
8
  interface IPlace {
22
9
  uuid: string;
23
10
  name: string;
@@ -236,141 +223,6 @@ interface IEmployee {
236
223
  costCenter?: ISimpleObjectWithCode;
237
224
  }
238
225
 
239
- interface IApproval {
240
- uuid?: string;
241
- name?: string;
242
- description?: string;
243
- active?: boolean;
244
- returnResponseToSef?: boolean;
245
- orun?: IOrganizationalUnitUpdate;
246
- organization?: IOrganization;
247
- automaticallyStart?: IApproval;
248
- automaticallyStartApprovals?: IApproval[];
249
- automaticallyStartApprovalsData?: ISelectData[];
250
- generateDocumentApprovalReport?: boolean;
251
- startApprovalByConditionsOnApprovalEnd?: boolean;
252
- issueDateChange?: boolean;
253
- }
254
- type DocumentApprovalFetchOption = 'STEPS_WITH_VOTES' | 'APPROVAL' | 'READY_TO_VOTE' | 'DIRECTLY_PROCESS_COMPLETION_USER';
255
- interface IApprovalSearch {
256
- organizationUuid?: string;
257
- active?: boolean;
258
- orunUuid?: string;
259
- }
260
- declare const Constraints: readonly ["TAX_ALLOCATION_NOT_EMPTY", "TAX_ALLOCATION_BALANCE", "COST_CENTER_EXPENSES_NOT_EMPTY", "ACCOUNTS_NOT_EMPTY", "ACCOUNTS_BALANCE", "ORGANIZATIONAL_UNIT_NOT_EMPTY", "PAYMENT_NOT_EMPTY", "SUGGESTED_PAYMENT_ORDER_NOT_EMPTY", "INDEX_DATA", "ACCOUNTS_SUM_LESS_THAN_INVOICE_TOTAL_PRICE", "VAT_EVIDENCE_TYPE_NOT_EMPTY", "PAYMENT_PLANNED_DATE_NOT_EMPTY"];
261
- type IConstraint = (typeof Constraints)[number];
262
- interface IApprovalStep {
263
- uuid: string;
264
- name?: string;
265
- description?: string;
266
- deadline?: number;
267
- requiredVotes?: number;
268
- ordinalNumber?: number;
269
- approval?: IApproval;
270
- employees?: IEmployee[];
271
- step?: IApprovalStep;
272
- conditionedStep?: IApprovalStep;
273
- job?: IJob;
274
- activationTime?: string;
275
- documentHold?: boolean;
276
- costCenter?: ISimpleObjectWithCode;
277
- group?: IPhaseGroup;
278
- lastStep?: boolean;
279
- constraints?: IConstraint[];
280
- indexDataConstraints?: IIndexData[];
281
- }
282
- interface IApprovalStepSearch {
283
- approvalStepGroupUuid?: string;
284
- }
285
- interface ILatestApprovalProcess {
286
- uuid?: string;
287
- createdAt?: string;
288
- status?: string;
289
- latestStep?: IDocumentApprovalStep;
290
- }
291
- type ApprovalStatus = 'APPROVED' | 'DECLINED';
292
- interface IDocumentApproval {
293
- uuid?: string;
294
- document?: IDocumentAny;
295
- approval?: IApproval;
296
- steps?: IDocumentApprovalStep[];
297
- status?: ApprovalStatus;
298
- directlyProcessCompletionUser?: IUser;
299
- }
300
- interface IDocumentApprovalStep {
301
- uuid?: string;
302
- activationTime?: string;
303
- deadline?: string;
304
- requiredVotes?: number;
305
- positiveVotes?: number;
306
- stepStatus?: ApprovalStatus;
307
- step?: IApprovalStep;
308
- votes?: IDocumentApprovalVote[];
309
- documentApproval?: IDocumentApproval;
310
- notReadyToVoteReason?: 'COST_EXPENSE_ALLOCATION' | 'INVOICE_TAX_ALLOCATION' | 'INVOICE_ACCOUNT' | 'INDEX_DATA';
311
- customName?: string;
312
- additionalAddingTime?: string;
313
- }
314
- interface IDocumentApprovalVote {
315
- uuid: string;
316
- document: IDocumentAny;
317
- step: IDocumentApprovalStep;
318
- employee: IEmployee;
319
- vote?: ApprovalStatus;
320
- voteTime?: string;
321
- votedFiles?: ISimpleObject[];
322
- note?: string;
323
- returnedStep?: boolean;
324
- adHocVote?: boolean;
325
- }
326
- interface IVoteSearch {
327
- invoice?: boolean;
328
- voted?: boolean;
329
- documentNumber?: string;
330
- documentTypeUuid?: string;
331
- issuerOrReceiverUuid?: string;
332
- dateFrom?: string;
333
- dateTo?: string;
334
- voteTimeFrom?: string;
335
- voteTimeTo?: string;
336
- userApprovalStatus?: string;
337
- currentApprovalStatus?: string;
338
- active?: boolean;
339
- myVotes?: boolean;
340
- sort?: 'PRIORITY_DESC' | 'ID_DESC';
341
- employee?: IEmployee;
342
- employeeUuid?: string;
343
- }
344
- interface IPhaseGroup {
345
- uuid?: string;
346
- name?: string;
347
- organization?: IOrganization;
348
- items?: {
349
- invoices: IInvoice[];
350
- isOpen: boolean;
351
- };
352
- internalCode?: 'PIO_RECEIPT_AND_SCANNING_DOCUMENT' | 'PIO_DETERMINING_LEGAL_BASIS_AND_COMPLETING_DOCUMENTATION' | 'PIO_DOCUMENTATION_CORRECTNESS_CHECK' | 'PIO_SUPPLIER_OBLIGATION_RECORDING' | 'PIO_PAYMENT_APPROVAL' | 'PIO_PAYMENT_READY' | 'PIO_PAYMENT_DONE' | 'PIO_DOCUMENTATION_VERIFICATION';
353
- }
354
- interface IPhaseGroupSearch {
355
- nameLike?: string;
356
- }
357
- interface ICondition {
358
- uuid?: string;
359
- approval?: IApproval;
360
- amountFrom?: number | string;
361
- amountTo?: number | string;
362
- orun?: IOrganizationalUnitUpdate;
363
- partner?: IPartner;
364
- documentType?: IDocumentType;
365
- indexDatas?: IConditionIndexData[];
366
- }
367
- interface IConditionIndexData {
368
- uuid?: string;
369
- approvalCondition?: ICondition;
370
- indexData?: IIndexData;
371
- value?: string;
372
- }
373
-
374
226
  interface IShipment extends IDocument {
375
227
  conversationView?: {
376
228
  uuid: string;
@@ -1254,6 +1106,154 @@ interface IOrganizationalUnitType {
1254
1106
  internalCode: 'SECTOR';
1255
1107
  }
1256
1108
 
1109
+ interface IApproval {
1110
+ uuid?: string;
1111
+ name?: string;
1112
+ description?: string;
1113
+ active?: boolean;
1114
+ returnResponseToSef?: boolean;
1115
+ orun?: IOrganizationalUnitUpdate;
1116
+ organization?: IOrganization;
1117
+ automaticallyStart?: IApproval;
1118
+ automaticallyStartApprovals?: IApproval[];
1119
+ automaticallyStartApprovalsData?: ISelectData[];
1120
+ generateDocumentApprovalReport?: boolean;
1121
+ startApprovalByConditionsOnApprovalEnd?: boolean;
1122
+ issueDateChange?: boolean;
1123
+ }
1124
+ type DocumentApprovalFetchOption = 'STEPS_WITH_VOTES' | 'APPROVAL' | 'READY_TO_VOTE' | 'DIRECTLY_PROCESS_COMPLETION_USER';
1125
+ interface IApprovalSearch {
1126
+ organizationUuid?: string;
1127
+ active?: boolean;
1128
+ orunUuid?: string;
1129
+ }
1130
+ declare const Constraints: readonly ["TAX_ALLOCATION_NOT_EMPTY", "TAX_ALLOCATION_BALANCE", "COST_CENTER_EXPENSES_NOT_EMPTY", "ACCOUNTS_NOT_EMPTY", "ACCOUNTS_BALANCE", "ORGANIZATIONAL_UNIT_NOT_EMPTY", "PAYMENT_NOT_EMPTY", "SUGGESTED_PAYMENT_ORDER_NOT_EMPTY", "INDEX_DATA", "ACCOUNTS_SUM_LESS_THAN_INVOICE_TOTAL_PRICE", "VAT_EVIDENCE_TYPE_NOT_EMPTY", "PAYMENT_PLANNED_DATE_NOT_EMPTY"];
1131
+ type IConstraint = (typeof Constraints)[number];
1132
+ interface IApprovalStep {
1133
+ uuid: string;
1134
+ name?: string;
1135
+ description?: string;
1136
+ deadline?: number;
1137
+ requiredVotes?: number;
1138
+ ordinalNumber?: number;
1139
+ approval?: IApproval;
1140
+ employees?: IEmployee[];
1141
+ step?: IApprovalStep;
1142
+ conditionedStep?: IApprovalStep;
1143
+ job?: IJob;
1144
+ activationTime?: string;
1145
+ documentHold?: boolean;
1146
+ costCenter?: ISimpleObjectWithCode;
1147
+ group?: IPhaseGroup;
1148
+ lastStep?: boolean;
1149
+ constraints?: IConstraint[];
1150
+ indexDataConstraints?: IIndexData[];
1151
+ }
1152
+ interface IApprovalStepSearch {
1153
+ approvalStepGroupUuid?: string;
1154
+ }
1155
+ interface ILatestApprovalProcess {
1156
+ uuid?: string;
1157
+ createdAt?: string;
1158
+ status?: string;
1159
+ latestStep?: IDocumentApprovalStep;
1160
+ }
1161
+ type ApprovalStatus = 'APPROVED' | 'DECLINED';
1162
+ interface IDocumentApproval {
1163
+ uuid?: string;
1164
+ document?: IDocumentAny;
1165
+ approval?: IApproval;
1166
+ steps?: IDocumentApprovalStep[];
1167
+ status?: ApprovalStatus;
1168
+ directlyProcessCompletionUser?: IUser;
1169
+ }
1170
+ interface IDocumentApprovalStep {
1171
+ uuid?: string;
1172
+ activationTime?: string;
1173
+ deadline?: string;
1174
+ requiredVotes?: number;
1175
+ positiveVotes?: number;
1176
+ stepStatus?: ApprovalStatus;
1177
+ step?: IApprovalStep;
1178
+ votes?: IDocumentApprovalVote[];
1179
+ documentApproval?: IDocumentApproval;
1180
+ notReadyToVoteReason?: 'COST_EXPENSE_ALLOCATION' | 'INVOICE_TAX_ALLOCATION' | 'INVOICE_ACCOUNT' | 'INDEX_DATA';
1181
+ customName?: string;
1182
+ additionalAddingTime?: string;
1183
+ }
1184
+ interface IDocumentApprovalVote {
1185
+ uuid: string;
1186
+ document: IDocumentAny;
1187
+ step: IDocumentApprovalStep;
1188
+ employee: IEmployee;
1189
+ vote?: ApprovalStatus;
1190
+ voteTime?: string;
1191
+ votedFiles?: ISimpleObject[];
1192
+ note?: string;
1193
+ returnedStep?: boolean;
1194
+ adHocVote?: boolean;
1195
+ }
1196
+ interface IVoteSearch {
1197
+ invoice?: boolean;
1198
+ voted?: boolean;
1199
+ documentNumber?: string;
1200
+ documentTypeUuid?: string;
1201
+ issuerOrReceiverUuid?: string;
1202
+ dateFrom?: string;
1203
+ dateTo?: string;
1204
+ voteTimeFrom?: string;
1205
+ voteTimeTo?: string;
1206
+ userApprovalStatus?: string;
1207
+ currentApprovalStatus?: string;
1208
+ active?: boolean;
1209
+ myVotes?: boolean;
1210
+ sort?: 'PRIORITY_DESC' | 'ID_DESC';
1211
+ employee?: IEmployee;
1212
+ employeeUuid?: string;
1213
+ }
1214
+ interface IPhaseGroup {
1215
+ uuid?: string;
1216
+ name?: string;
1217
+ organization?: IOrganization;
1218
+ items?: {
1219
+ invoices: IInvoice[];
1220
+ isOpen: boolean;
1221
+ };
1222
+ internalCode?: 'PIO_RECEIPT_AND_SCANNING_DOCUMENT' | 'PIO_DETERMINING_LEGAL_BASIS_AND_COMPLETING_DOCUMENTATION' | 'PIO_DOCUMENTATION_CORRECTNESS_CHECK' | 'PIO_SUPPLIER_OBLIGATION_RECORDING' | 'PIO_PAYMENT_APPROVAL' | 'PIO_PAYMENT_READY' | 'PIO_PAYMENT_DONE' | 'PIO_DOCUMENTATION_VERIFICATION';
1223
+ }
1224
+ interface IPhaseGroupSearch {
1225
+ nameLike?: string;
1226
+ }
1227
+ interface ICondition {
1228
+ uuid?: string;
1229
+ approval?: IApproval;
1230
+ amountFrom?: number | string;
1231
+ amountTo?: number | string;
1232
+ orun?: IOrganizationalUnitUpdate;
1233
+ partner?: IPartner;
1234
+ documentType?: IDocumentType;
1235
+ indexDatas?: IConditionIndexData[];
1236
+ }
1237
+ interface IConditionIndexData {
1238
+ uuid?: string;
1239
+ approvalCondition?: ICondition;
1240
+ indexData?: IIndexData;
1241
+ value?: string;
1242
+ }
1243
+
1244
+ declare const ModuleIds: readonly ["ADMIN", "EARCHIVE", "EDELIVERY", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION"];
1245
+ type IModuleId = (typeof ModuleIds)[number];
1246
+ type IModule = {
1247
+ [id in IModuleId]: {
1248
+ name: string;
1249
+ icon: any;
1250
+ disabled?: boolean;
1251
+ hidden?: boolean;
1252
+ };
1253
+ };
1254
+
1255
+ type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT';
1256
+
1257
1257
  interface IPrivileges {
1258
1258
  USER_R?: boolean;
1259
1259
  USER_W?: boolean;
@@ -1359,13 +1359,13 @@ interface IPrivileges {
1359
1359
  CODEBOOK_R?: boolean;
1360
1360
  CODEBOOK_W?: boolean;
1361
1361
  FORM_SUBMISSION_R?: boolean;
1362
- ARC_CATEGORY_W: boolean;
1363
- ARC_PRESERVATION_W: boolean;
1364
- ARC_ARCHIVE_BOOK_W: boolean;
1365
- ARC_ORGANIZATION_SETTINGS_W: boolean;
1366
- ARC_CATEGORY_R: boolean;
1367
- ARC_ARCHIVE_BOOK_R: boolean;
1368
- ARC_PRESERVATION_R: boolean;
1362
+ ARC_CATEGORY_W?: boolean;
1363
+ ARC_PRESERVATION_W?: boolean;
1364
+ ARC_ARCHIVE_BOOK_W?: boolean;
1365
+ ARC_ORGANIZATION_SETTINGS_W?: boolean;
1366
+ ARC_CATEGORY_R?: boolean;
1367
+ ARC_ARCHIVE_BOOK_R?: boolean;
1368
+ ARC_PRESERVATION_R?: boolean;
1369
1369
  }
1370
1370
  interface IOrganizationSettings {
1371
1371
  sefApiKey?: string;
@@ -1450,11 +1450,6 @@ interface ISidebarSubItem {
1450
1450
  collapsed?: boolean;
1451
1451
  }
1452
1452
 
1453
- interface IProps$2 {
1454
- children: ReactNode;
1455
- }
1456
- declare const AxiosTokenHandler: FC<IProps$2>;
1457
-
1458
1453
  declare const login: () => void;
1459
1454
  declare const logout: (options?: {
1460
1455
  nextUrl?: boolean;
@@ -1465,6 +1460,28 @@ declare const getUser: () => Promise<IUser>;
1465
1460
 
1466
1461
  declare const decodeToken: (token?: string | null) => IToken | undefined;
1467
1462
 
1463
+ interface IProps$2 {
1464
+ children: ReactNode;
1465
+ }
1466
+ declare const AxiosTokenHandler: FC<IProps$2>;
1467
+
1468
+ interface IErrorContext {
1469
+ errors: string[];
1470
+ setErrors: Dispatch<SetStateAction<string[]>>;
1471
+ }
1472
+ declare const ErrorContext: react.Context<IErrorContext>;
1473
+
1474
+ interface INotificationsContext {
1475
+ notificationCount: number;
1476
+ unreadSends: number;
1477
+ reloadUnreadSends: () => void;
1478
+ getNotificationsCount: () => void;
1479
+ }
1480
+ declare const NotificationsContext: react.Context<INotificationsContext>;
1481
+ declare const NotificationsProvider: ({ children }: {
1482
+ children: ReactNode;
1483
+ }) => react_jsx_runtime.JSX.Element;
1484
+
1468
1485
  interface IUserOrgContext {
1469
1486
  user: IUser | null;
1470
1487
  userSettings: IUserSettings;
@@ -1483,23 +1500,6 @@ interface IProps$1 {
1483
1500
  }
1484
1501
  declare const UserOrgProvider: ({ children }: IProps$1) => react_jsx_runtime.JSX.Element;
1485
1502
 
1486
- interface INotificationsContext {
1487
- notificationCount: number;
1488
- unreadSends: number;
1489
- reloadUnreadSends: () => void;
1490
- getNotificationsCount: () => void;
1491
- }
1492
- declare const NotificationsContext: react.Context<INotificationsContext>;
1493
- declare const NotificationsProvider: ({ children }: {
1494
- children: ReactNode;
1495
- }) => react_jsx_runtime.JSX.Element;
1496
-
1497
- interface IErrorContext {
1498
- errors: string[];
1499
- setErrors: Dispatch<SetStateAction<string[]>>;
1500
- }
1501
- declare const ErrorContext: react.Context<IErrorContext>;
1502
-
1503
1503
  interface Props$9 {
1504
1504
  routes: IRoute[];
1505
1505
  sidebarItems: ISidebarItem[][];
@@ -1508,8 +1508,6 @@ declare const Router: FC<Props$9>;
1508
1508
 
1509
1509
  declare const LoginPage: FC;
1510
1510
 
1511
- declare const SelectOrgPage: FC;
1512
-
1513
1511
  interface Props$8 {
1514
1512
  title?: string;
1515
1513
  buttonLabel?: string;
@@ -1519,6 +1517,8 @@ declare const NoAccessInfo: FC<Props$8>;
1519
1517
 
1520
1518
  declare const NoMatchPage: FC;
1521
1519
 
1520
+ declare const SelectOrgPage: FC;
1521
+
1522
1522
  interface Props$7 {
1523
1523
  hideModules?: boolean;
1524
1524
  children?: ReactNode;
@@ -1526,16 +1526,16 @@ interface Props$7 {
1526
1526
  declare const Header: FC<Props$7>;
1527
1527
 
1528
1528
  interface Props$6 {
1529
- items: ISidebarItem[][];
1530
- UserBox?: ReactElement;
1529
+ sidebarItems: ISidebarItem[][];
1530
+ children: ReactNode;
1531
1531
  }
1532
- declare const Sidebar: FC<Props$6>;
1532
+ declare const MainPageWrapper: FC<Props$6>;
1533
1533
 
1534
1534
  interface Props$5 {
1535
- sidebarItems: ISidebarItem[][];
1536
- children: ReactNode;
1535
+ items: ISidebarItem[][];
1536
+ UserBox?: ReactElement;
1537
1537
  }
1538
- declare const MainPageWrapper: FC<Props$5>;
1538
+ declare const Sidebar: FC<Props$5>;
1539
1539
 
1540
1540
  interface IProps {
1541
1541
  fileUuid: string;
@@ -1546,27 +1546,27 @@ interface IProps {
1546
1546
  declare const DocumentFileSignDialog: FC<IProps>;
1547
1547
 
1548
1548
  interface Props$4 {
1549
+ url: string;
1550
+ onClose: () => void;
1551
+ }
1552
+ declare const FileSignAppPortal: FC<Props$4>;
1553
+
1554
+ interface Props$3 {
1549
1555
  fileDownloadUrl: string;
1550
1556
  signatoryUuid: string;
1551
1557
  signatories?: IFileSignatory[];
1552
1558
  onClose: () => void;
1553
1559
  setFormData: Dispatch<SetStateAction<IFileSignatory>>;
1554
1560
  }
1555
- declare const PDFSignBox: FC<Props$4>;
1561
+ declare const PDFSignBox: FC<Props$3>;
1556
1562
 
1557
- interface Props$3 {
1563
+ interface Props$2 {
1558
1564
  formData: any;
1559
1565
  setFormData: (formData: any) => void;
1560
1566
  fileDownloadUrl?: string;
1561
1567
  signatories?: IFileSignatory[];
1562
1568
  }
1563
- declare const SignatureLocation: FC<Props$3>;
1564
-
1565
- interface Props$2 {
1566
- url: string;
1567
- onClose: () => void;
1568
- }
1569
- declare const FileSignAppPortal: FC<Props$2>;
1569
+ declare const SignatureLocation: FC<Props$2>;
1570
1570
 
1571
1571
  interface Props$1 {
1572
1572
  documentUuid?: string;