@inceptionbg/main 2.0.15 → 2.0.17

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;
@@ -50,6 +37,7 @@ interface IUser {
50
37
  email?: string;
51
38
  representation?: string;
52
39
  umcn?: string;
40
+ active?: boolean;
53
41
  }
54
42
  type UserFetchOption = 'PERSONAL_IDENTITY_NUMBER' | 'PLACE' | 'MUNICIPALITY' | 'ORGANIZATIONAL_UNITS' | 'PRIMARY_ORUN';
55
43
  interface IUserSettings {
@@ -236,141 +224,6 @@ interface IEmployee {
236
224
  costCenter?: ISimpleObjectWithCode;
237
225
  }
238
226
 
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
227
  interface IShipment extends IDocument {
375
228
  conversationView?: {
376
229
  uuid: string;
@@ -1254,6 +1107,154 @@ interface IOrganizationalUnitType {
1254
1107
  internalCode: 'SECTOR';
1255
1108
  }
1256
1109
 
1110
+ interface IApproval {
1111
+ uuid?: string;
1112
+ name?: string;
1113
+ description?: string;
1114
+ active?: boolean;
1115
+ returnResponseToSef?: boolean;
1116
+ orun?: IOrganizationalUnitUpdate;
1117
+ organization?: IOrganization;
1118
+ automaticallyStart?: IApproval;
1119
+ automaticallyStartApprovals?: IApproval[];
1120
+ automaticallyStartApprovalsData?: ISelectData[];
1121
+ generateDocumentApprovalReport?: boolean;
1122
+ startApprovalByConditionsOnApprovalEnd?: boolean;
1123
+ issueDateChange?: boolean;
1124
+ }
1125
+ type DocumentApprovalFetchOption = 'STEPS_WITH_VOTES' | 'APPROVAL' | 'READY_TO_VOTE' | 'DIRECTLY_PROCESS_COMPLETION_USER';
1126
+ interface IApprovalSearch {
1127
+ organizationUuid?: string;
1128
+ active?: boolean;
1129
+ orunUuid?: string;
1130
+ }
1131
+ 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"];
1132
+ type IConstraint = (typeof Constraints)[number];
1133
+ interface IApprovalStep {
1134
+ uuid: string;
1135
+ name?: string;
1136
+ description?: string;
1137
+ deadline?: number;
1138
+ requiredVotes?: number;
1139
+ ordinalNumber?: number;
1140
+ approval?: IApproval;
1141
+ employees?: IEmployee[];
1142
+ step?: IApprovalStep;
1143
+ conditionedStep?: IApprovalStep;
1144
+ job?: IJob;
1145
+ activationTime?: string;
1146
+ documentHold?: boolean;
1147
+ costCenter?: ISimpleObjectWithCode;
1148
+ group?: IPhaseGroup;
1149
+ lastStep?: boolean;
1150
+ constraints?: IConstraint[];
1151
+ indexDataConstraints?: IIndexData[];
1152
+ }
1153
+ interface IApprovalStepSearch {
1154
+ approvalStepGroupUuid?: string;
1155
+ }
1156
+ interface ILatestApprovalProcess {
1157
+ uuid?: string;
1158
+ createdAt?: string;
1159
+ status?: string;
1160
+ latestStep?: IDocumentApprovalStep;
1161
+ }
1162
+ type ApprovalStatus = 'APPROVED' | 'DECLINED';
1163
+ interface IDocumentApproval {
1164
+ uuid?: string;
1165
+ document?: IDocumentAny;
1166
+ approval?: IApproval;
1167
+ steps?: IDocumentApprovalStep[];
1168
+ status?: ApprovalStatus;
1169
+ directlyProcessCompletionUser?: IUser;
1170
+ }
1171
+ interface IDocumentApprovalStep {
1172
+ uuid?: string;
1173
+ activationTime?: string;
1174
+ deadline?: string;
1175
+ requiredVotes?: number;
1176
+ positiveVotes?: number;
1177
+ stepStatus?: ApprovalStatus;
1178
+ step?: IApprovalStep;
1179
+ votes?: IDocumentApprovalVote[];
1180
+ documentApproval?: IDocumentApproval;
1181
+ notReadyToVoteReason?: 'COST_EXPENSE_ALLOCATION' | 'INVOICE_TAX_ALLOCATION' | 'INVOICE_ACCOUNT' | 'INDEX_DATA';
1182
+ customName?: string;
1183
+ additionalAddingTime?: string;
1184
+ }
1185
+ interface IDocumentApprovalVote {
1186
+ uuid: string;
1187
+ document: IDocumentAny;
1188
+ step: IDocumentApprovalStep;
1189
+ employee: IEmployee;
1190
+ vote?: ApprovalStatus;
1191
+ voteTime?: string;
1192
+ votedFiles?: ISimpleObject[];
1193
+ note?: string;
1194
+ returnedStep?: boolean;
1195
+ adHocVote?: boolean;
1196
+ }
1197
+ interface IVoteSearch {
1198
+ invoice?: boolean;
1199
+ voted?: boolean;
1200
+ documentNumber?: string;
1201
+ documentTypeUuid?: string;
1202
+ issuerOrReceiverUuid?: string;
1203
+ dateFrom?: string;
1204
+ dateTo?: string;
1205
+ voteTimeFrom?: string;
1206
+ voteTimeTo?: string;
1207
+ userApprovalStatus?: string;
1208
+ currentApprovalStatus?: string;
1209
+ active?: boolean;
1210
+ myVotes?: boolean;
1211
+ sort?: 'PRIORITY_DESC' | 'ID_DESC';
1212
+ employee?: IEmployee;
1213
+ employeeUuid?: string;
1214
+ }
1215
+ interface IPhaseGroup {
1216
+ uuid?: string;
1217
+ name?: string;
1218
+ organization?: IOrganization;
1219
+ items?: {
1220
+ invoices: IInvoice[];
1221
+ isOpen: boolean;
1222
+ };
1223
+ 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';
1224
+ }
1225
+ interface IPhaseGroupSearch {
1226
+ nameLike?: string;
1227
+ }
1228
+ interface ICondition {
1229
+ uuid?: string;
1230
+ approval?: IApproval;
1231
+ amountFrom?: number | string;
1232
+ amountTo?: number | string;
1233
+ orun?: IOrganizationalUnitUpdate;
1234
+ partner?: IPartner;
1235
+ documentType?: IDocumentType;
1236
+ indexDatas?: IConditionIndexData[];
1237
+ }
1238
+ interface IConditionIndexData {
1239
+ uuid?: string;
1240
+ approvalCondition?: ICondition;
1241
+ indexData?: IIndexData;
1242
+ value?: string;
1243
+ }
1244
+
1245
+ declare const ModuleIds: readonly ["ADMIN", "EARCHIVE", "EDELIVERY", "EINVOICE", "EFORMS", "EDMS", "ESIGN", "EVALIDATION"];
1246
+ type IModuleId = (typeof ModuleIds)[number];
1247
+ type IModule = {
1248
+ [id in IModuleId]: {
1249
+ name: string;
1250
+ icon: any;
1251
+ disabled?: boolean;
1252
+ hidden?: boolean;
1253
+ };
1254
+ };
1255
+
1256
+ type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT';
1257
+
1257
1258
  interface IPrivileges {
1258
1259
  USER_R?: boolean;
1259
1260
  USER_W?: boolean;
@@ -1450,11 +1451,6 @@ interface ISidebarSubItem {
1450
1451
  collapsed?: boolean;
1451
1452
  }
1452
1453
 
1453
- interface IProps$2 {
1454
- children: ReactNode;
1455
- }
1456
- declare const AxiosTokenHandler: FC<IProps$2>;
1457
-
1458
1454
  declare const login: () => void;
1459
1455
  declare const logout: (options?: {
1460
1456
  nextUrl?: boolean;
@@ -1465,6 +1461,28 @@ declare const getUser: () => Promise<IUser>;
1465
1461
 
1466
1462
  declare const decodeToken: (token?: string | null) => IToken | undefined;
1467
1463
 
1464
+ interface IProps$2 {
1465
+ children: ReactNode;
1466
+ }
1467
+ declare const AxiosTokenHandler: FC<IProps$2>;
1468
+
1469
+ interface IErrorContext {
1470
+ errors: string[];
1471
+ setErrors: Dispatch<SetStateAction<string[]>>;
1472
+ }
1473
+ declare const ErrorContext: react.Context<IErrorContext>;
1474
+
1475
+ interface INotificationsContext {
1476
+ notificationCount: number;
1477
+ unreadSends: number;
1478
+ reloadUnreadSends: () => void;
1479
+ getNotificationsCount: () => void;
1480
+ }
1481
+ declare const NotificationsContext: react.Context<INotificationsContext>;
1482
+ declare const NotificationsProvider: ({ children }: {
1483
+ children: ReactNode;
1484
+ }) => react_jsx_runtime.JSX.Element;
1485
+
1468
1486
  interface IUserOrgContext {
1469
1487
  user: IUser | null;
1470
1488
  userSettings: IUserSettings;
@@ -1483,23 +1501,6 @@ interface IProps$1 {
1483
1501
  }
1484
1502
  declare const UserOrgProvider: ({ children }: IProps$1) => react_jsx_runtime.JSX.Element;
1485
1503
 
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
1504
  interface Props$9 {
1504
1505
  routes: IRoute[];
1505
1506
  sidebarItems: ISidebarItem[][];
@@ -1508,8 +1509,6 @@ declare const Router: FC<Props$9>;
1508
1509
 
1509
1510
  declare const LoginPage: FC;
1510
1511
 
1511
- declare const SelectOrgPage: FC;
1512
-
1513
1512
  interface Props$8 {
1514
1513
  title?: string;
1515
1514
  buttonLabel?: string;
@@ -1519,6 +1518,8 @@ declare const NoAccessInfo: FC<Props$8>;
1519
1518
 
1520
1519
  declare const NoMatchPage: FC;
1521
1520
 
1521
+ declare const SelectOrgPage: FC;
1522
+
1522
1523
  interface Props$7 {
1523
1524
  hideModules?: boolean;
1524
1525
  children?: ReactNode;
@@ -1526,16 +1527,16 @@ interface Props$7 {
1526
1527
  declare const Header: FC<Props$7>;
1527
1528
 
1528
1529
  interface Props$6 {
1529
- items: ISidebarItem[][];
1530
- UserBox?: ReactElement;
1530
+ sidebarItems: ISidebarItem[][];
1531
+ children: ReactNode;
1531
1532
  }
1532
- declare const Sidebar: FC<Props$6>;
1533
+ declare const MainPageWrapper: FC<Props$6>;
1533
1534
 
1534
1535
  interface Props$5 {
1535
- sidebarItems: ISidebarItem[][];
1536
- children: ReactNode;
1536
+ items: ISidebarItem[][];
1537
+ UserBox?: ReactElement;
1537
1538
  }
1538
- declare const MainPageWrapper: FC<Props$5>;
1539
+ declare const Sidebar: FC<Props$5>;
1539
1540
 
1540
1541
  interface IProps {
1541
1542
  fileUuid: string;
@@ -1546,27 +1547,27 @@ interface IProps {
1546
1547
  declare const DocumentFileSignDialog: FC<IProps>;
1547
1548
 
1548
1549
  interface Props$4 {
1550
+ url: string;
1551
+ onClose: () => void;
1552
+ }
1553
+ declare const FileSignAppPortal: FC<Props$4>;
1554
+
1555
+ interface Props$3 {
1549
1556
  fileDownloadUrl: string;
1550
1557
  signatoryUuid: string;
1551
1558
  signatories?: IFileSignatory[];
1552
1559
  onClose: () => void;
1553
1560
  setFormData: Dispatch<SetStateAction<IFileSignatory>>;
1554
1561
  }
1555
- declare const PDFSignBox: FC<Props$4>;
1562
+ declare const PDFSignBox: FC<Props$3>;
1556
1563
 
1557
- interface Props$3 {
1564
+ interface Props$2 {
1558
1565
  formData: any;
1559
1566
  setFormData: (formData: any) => void;
1560
1567
  fileDownloadUrl?: string;
1561
1568
  signatories?: IFileSignatory[];
1562
1569
  }
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>;
1570
+ declare const SignatureLocation: FC<Props$2>;
1570
1571
 
1571
1572
  interface Props$1 {
1572
1573
  documentUuid?: string;