@inceptionbg/main 2.0.172 → 2.0.173

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.
Files changed (131) hide show
  1. package/dist/index.js.map +1 -1
  2. package/dist/tempTypes/assets/icons/duotone/faBell.d.ts +2 -0
  3. package/dist/tempTypes/assets/icons/duotone/faBoxArchive.d.ts +2 -0
  4. package/dist/tempTypes/assets/icons/duotone/faCabinetFiling.d.ts +2 -0
  5. package/dist/tempTypes/assets/icons/duotone/faCashRegister.d.ts +2 -0
  6. package/dist/tempTypes/assets/icons/duotone/faDisplayChartUpCircleDollar.d.ts +2 -0
  7. package/dist/tempTypes/assets/icons/duotone/faEnvelope.d.ts +2 -0
  8. package/dist/tempTypes/assets/icons/duotone/faFileContract.d.ts +2 -0
  9. package/dist/tempTypes/assets/icons/duotone/faFileInvoice.d.ts +2 -0
  10. package/dist/tempTypes/assets/icons/duotone/faFilePen.d.ts +2 -0
  11. package/dist/tempTypes/assets/icons/duotone/faGear.d.ts +2 -0
  12. package/dist/tempTypes/assets/icons/duotone/faGridHorizontal.d.ts +2 -0
  13. package/dist/tempTypes/assets/icons/duotone/faHandsHoldingHeart.d.ts +2 -0
  14. package/dist/tempTypes/assets/icons/duotone/faList.d.ts +2 -0
  15. package/dist/tempTypes/assets/icons/duotone/faListCheck.d.ts +2 -0
  16. package/dist/tempTypes/assets/icons/duotone/faPlusCircle.d.ts +2 -0
  17. package/dist/tempTypes/assets/icons/duotone/faScreencast.d.ts +2 -0
  18. package/dist/tempTypes/assets/icons/duotone/faShelves.d.ts +2 -0
  19. package/dist/tempTypes/assets/icons/duotone/faSignature.d.ts +2 -0
  20. package/dist/tempTypes/assets/icons/duotone/faWarehouse.d.ts +2 -0
  21. package/dist/tempTypes/assets/icons/duotone/faWarehouseFull.d.ts +2 -0
  22. package/dist/tempTypes/assets/icons/light/faAngleDown.d.ts +2 -0
  23. package/dist/tempTypes/assets/icons/light/faArrowRightFromBracket.d.ts +2 -0
  24. package/dist/tempTypes/assets/icons/light/faBell.d.ts +2 -0
  25. package/dist/tempTypes/assets/icons/light/faBriefcase.d.ts +2 -0
  26. package/dist/tempTypes/assets/icons/light/faBusinessPlus.d.ts +2 -0
  27. package/dist/tempTypes/assets/icons/light/faCalendarDays.d.ts +2 -0
  28. package/dist/tempTypes/assets/icons/light/faCircleUser.d.ts +2 -0
  29. package/dist/tempTypes/assets/icons/light/faEnvelope.d.ts +2 -0
  30. package/dist/tempTypes/assets/icons/light/faMagnifyingGlass.d.ts +2 -0
  31. package/dist/tempTypes/assets/icons/light/faTrashCan.d.ts +2 -0
  32. package/dist/tempTypes/assets/icons/light/faUserGear.d.ts +2 -0
  33. package/dist/tempTypes/assets/icons/regular/faAngleLeft.d.ts +2 -0
  34. package/dist/tempTypes/assets/icons/regular/faAngleRight.d.ts +2 -0
  35. package/dist/tempTypes/assets/icons/regular/faMagnifyingGlassMinus.d.ts +2 -0
  36. package/dist/tempTypes/assets/icons/regular/faMagnifyingGlassPlus.d.ts +2 -0
  37. package/dist/tempTypes/assets/icons/regular/faQrcode.d.ts +2 -0
  38. package/dist/tempTypes/assets/icons/solid/faAngleLeft.d.ts +2 -0
  39. package/dist/tempTypes/assets/icons/solid/faArrowRight.d.ts +2 -0
  40. package/dist/tempTypes/assets/icons/solid/faCaretDown.d.ts +2 -0
  41. package/dist/tempTypes/assets/icons/solid/faCheck.d.ts +2 -0
  42. package/dist/tempTypes/assets/icons/solid/faEnvelopeDot.d.ts +2 -0
  43. package/dist/tempTypes/assets/icons/solid/faPlus.d.ts +2 -0
  44. package/dist/tempTypes/assets/icons/solid/faXmark.d.ts +2 -0
  45. package/dist/tempTypes/auth/Auth.d.ts +55 -0
  46. package/dist/tempTypes/auth/AuthUtils.d.ts +4 -0
  47. package/dist/tempTypes/auth/AxiosTokenHandler.d.ts +6 -0
  48. package/dist/tempTypes/components/BusinessYear/BusinessYearChooser.d.ts +2 -0
  49. package/dist/tempTypes/components/BusinessYear/BusinessYearPage.d.ts +3 -0
  50. package/dist/tempTypes/components/Dialogs/DeleteItemDialog.d.ts +13 -0
  51. package/dist/tempTypes/components/Dialogs/DeleteItemsDialog.d.ts +15 -0
  52. package/dist/tempTypes/components/Header/Components/ModuleSelect.d.ts +6 -0
  53. package/dist/tempTypes/components/Header/Components/Notifications.d.ts +2 -0
  54. package/dist/tempTypes/components/Header/Components/UserMenu.d.ts +2 -0
  55. package/dist/tempTypes/components/Header/Header.d.ts +9 -0
  56. package/dist/tempTypes/components/IndexData/IndexDataSearch.d.ts +13 -0
  57. package/dist/tempTypes/components/IndexData/IndexDataSearchFields.d.ts +10 -0
  58. package/dist/tempTypes/components/Organizations/ChangeOrganizationDialog.d.ts +7 -0
  59. package/dist/tempTypes/components/Organizations/OrganizationInvitesDialog.d.ts +7 -0
  60. package/dist/tempTypes/components/ReactQuery/ReactQueryProvider.d.ts +6 -0
  61. package/dist/tempTypes/components/Router/Router.d.ts +10 -0
  62. package/dist/tempTypes/components/Sidebar/AddButton.d.ts +6 -0
  63. package/dist/tempTypes/components/Sidebar/Sidebar.d.ts +8 -0
  64. package/dist/tempTypes/components/Sidebar/SidebarItem.d.ts +3 -0
  65. package/dist/tempTypes/components/User/MyAccountDialog.d.ts +7 -0
  66. package/dist/tempTypes/components/User/components/ChangePassword.d.ts +7 -0
  67. package/dist/tempTypes/components/User/repo/useUserMutations.d.ts +9 -0
  68. package/dist/tempTypes/components/Wrappers/App/AppContent.d.ts +6 -0
  69. package/dist/tempTypes/components/Wrappers/App/AppWrapper.d.ts +7 -0
  70. package/dist/tempTypes/components/Wrappers/MainPageWrapper.d.ts +9 -0
  71. package/dist/tempTypes/context/BusinessYearContext.d.ts +12 -0
  72. package/dist/tempTypes/context/ErrorContext.d.ts +13 -0
  73. package/dist/tempTypes/context/UserOrgContext.d.ts +28 -0
  74. package/dist/tempTypes/hooks/useOrgInvites.d.ts +12 -0
  75. package/dist/tempTypes/index.d.ts +56 -0
  76. package/dist/tempTypes/pages/LoginPage.d.ts +3 -0
  77. package/dist/tempTypes/pages/NoAccessInfo.d.ts +8 -0
  78. package/dist/tempTypes/pages/NoMatchPage.d.ts +3 -0
  79. package/dist/tempTypes/pages/Roles/RolesWithPrivileges.d.ts +8 -0
  80. package/dist/tempTypes/pages/Roles/components/PrivilegesForm.d.ts +11 -0
  81. package/dist/tempTypes/pages/SelectOrg/SelectOrgPage.d.ts +3 -0
  82. package/dist/tempTypes/pages/SelectOrg/components/OrgInvites.d.ts +2 -0
  83. package/dist/tempTypes/repo/NotificationsRepository.d.ts +8 -0
  84. package/dist/tempTypes/repo/RoleRepo.d.ts +7 -0
  85. package/dist/tempTypes/types/App/Administration/IEmployee.d.ts +23 -0
  86. package/dist/tempTypes/types/App/Administration/IJob.d.ts +10 -0
  87. package/dist/tempTypes/types/App/Contracts/File/IContractFile.d.ts +30 -0
  88. package/dist/tempTypes/types/App/Contracts/IContract.d.ts +241 -0
  89. package/dist/tempTypes/types/App/Document/IApproval.d.ts +143 -0
  90. package/dist/tempTypes/types/App/Document/ICase.d.ts +48 -0
  91. package/dist/tempTypes/types/App/Document/IDocument.d.ts +219 -0
  92. package/dist/tempTypes/types/App/Document/IDocumentFile.d.ts +67 -0
  93. package/dist/tempTypes/types/App/Document/IDocumentSend.d.ts +128 -0
  94. package/dist/tempTypes/types/App/Document/IEmailDocument.d.ts +52 -0
  95. package/dist/tempTypes/types/App/Document/IIndexDataCodebook.d.ts +15 -0
  96. package/dist/tempTypes/types/App/Document/ISignatory.d.ts +34 -0
  97. package/dist/tempTypes/types/App/Document/IndexData.d.ts +60 -0
  98. package/dist/tempTypes/types/App/Document/Invoice/IAccount.d.ts +11 -0
  99. package/dist/tempTypes/types/App/Document/Invoice/IExpenseAllocation.d.ts +39 -0
  100. package/dist/tempTypes/types/App/Document/Invoice/IFactoring.d.ts +6 -0
  101. package/dist/tempTypes/types/App/Document/Invoice/IInvoice.d.ts +236 -0
  102. package/dist/tempTypes/types/App/Document/Invoice/IPayment.d.ts +40 -0
  103. package/dist/tempTypes/types/App/Document/Invoice/IProduct.d.ts +23 -0
  104. package/dist/tempTypes/types/App/Document/Invoice/ITaxAllocation.d.ts +37 -0
  105. package/dist/tempTypes/types/App/Document/Invoice/IVatIndicator.d.ts +14 -0
  106. package/dist/tempTypes/types/App/Document/Office/IOfficeDocument.d.ts +27 -0
  107. package/dist/tempTypes/types/App/Document/Shipment/IShipment.d.ts +25 -0
  108. package/dist/tempTypes/types/App/Partner/IAddress.d.ts +14 -0
  109. package/dist/tempTypes/types/App/Partner/IPartner.d.ts +98 -0
  110. package/dist/tempTypes/types/Auth/IEnv.d.ts +13 -0
  111. package/dist/tempTypes/types/Auth/IModule.d.ts +15 -0
  112. package/dist/tempTypes/types/Auth/IOrganization.d.ts +140 -0
  113. package/dist/tempTypes/types/Auth/IPrivileges.d.ts +2 -0
  114. package/dist/tempTypes/types/Auth/IRole.d.ts +25 -0
  115. package/dist/tempTypes/types/Auth/IRouter.d.ts +7 -0
  116. package/dist/tempTypes/types/Auth/IToken.d.ts +12 -0
  117. package/dist/tempTypes/types/Auth/IUser.d.ts +39 -0
  118. package/dist/tempTypes/types/IError.d.ts +5 -0
  119. package/dist/tempTypes/types/INotifications.d.ts +15 -0
  120. package/dist/tempTypes/types/IReactQuerry.d.ts +4 -0
  121. package/dist/tempTypes/types/IScan.d.ts +17 -0
  122. package/dist/tempTypes/types/ISidebar.d.ts +27 -0
  123. package/dist/tempTypes/types/ISubsystem.d.ts +2 -0
  124. package/dist/tempTypes/utils/EnvVars.d.ts +2 -0
  125. package/dist/tempTypes/utils/ImageUtils.d.ts +4 -0
  126. package/dist/tempTypes/utils/LoadOptions.d.ts +20 -0
  127. package/dist/tempTypes/utils/ModuleUtils.d.ts +3 -0
  128. package/dist/tempTypes/utils/i18nMain.d.ts +662 -0
  129. package/dist/types/global.d.ts +619 -601
  130. package/package.json +2 -2
  131. package/dist/index.d.ts +0 -2154
@@ -0,0 +1,219 @@
1
+ import { ISelectData, IStringObject } from '@inceptionbg/iui';
2
+ import { IUser } from '../../Auth/IUser';
3
+ import { IOrganization, IOrganizationalUnitUpdate } from '../../Auth/IOrganization';
4
+ import { IDocumentFile } from './IDocumentFile';
5
+ import { IIndex, IIndexData } from './IndexData';
6
+ import { IInvoice, ITaxCategory } from './Invoice/IInvoice';
7
+ import { IShipment } from './Shipment/IShipment';
8
+ import { IOfficeDocument } from './Office/IOfficeDocument';
9
+ import { ISendStatus } from './IDocumentSend';
10
+ import { IPartner } from '../Partner/IPartner';
11
+ export interface IDocument {
12
+ uuid: string;
13
+ documentNumber?: string;
14
+ documentType?: IDocumentType;
15
+ files?: IDocumentFile[];
16
+ date?: string;
17
+ note?: string;
18
+ createdAt?: string;
19
+ createdBy?: IUser;
20
+ concluded?: boolean;
21
+ organization?: {
22
+ uuid: string;
23
+ };
24
+ issueDate?: string;
25
+ issuer?: IPartner;
26
+ receiver?: IPartner;
27
+ }
28
+ export interface IDocumentAny extends Partial<IInvoice>, Partial<IShipment>, Partial<IOfficeDocument> {
29
+ }
30
+ export declare const DocumentTypes: readonly ["INDIVIDUAL", "COLLECTIVE"];
31
+ export type DocumentType = (typeof DocumentTypes)[number];
32
+ export type IDocumentCategory = 'DOCUMENT' | 'INVOICE' | 'ARCHIVE' | 'SHIPMENT';
33
+ export type IDocumentSort = 'DOCUMENT_NUMBER_ASC' | 'DOCUMENT_NUMBER_DESC' | 'CONCLUDED_ASC' | 'CONCLUDED_DESC' | 'DATE_ASC' | 'DATE_DESC' | 'RECEIVER_NAME_ASC' | 'RECEIVER_NAME_DESC' | 'ISSUER_NAME_ASC' | 'ISSUER_NAME_DESC' | 'ORUN_ASC' | 'ORUN_DESC' | 'SEF_VERIFICATION_DEADLINE_ASC' | 'SEF_VERIFICATION_DEADLINE_DESC';
34
+ export type DocumentFetchOption = 'TYPE' | 'FILES' | 'ISSUER' | 'RECEIVER' | 'CREATED_BY' | 'SIMPLE' | 'DOCUMENT_SOURCE_TYPE' | 'LATEST_APPROVAL_PROCESS_SIMPLE' | 'CONTRACT' | 'ORUN' | 'LATEST_SEF_SEND' | 'LATEST_SEND' | 'DOCUMENT_LATEST_SEND_TOTAL_PRICE_SUM' | 'EMAIL_DOCUMENT' | 'INDEX_DATA' | 'INDEX_DATA_WITH_NAMES' | 'SHIPMENT_UNREGISTERED_RECEIVER' | 'CREDIT_NOTE_INVOICES' | 'INTERNAL_RECEIVER' | 'APPROVAL_STEP_GROUP' | 'HOLD' | 'PAYMENTS' | 'ADVANCE_PAYMENT_SUM' | 'SEF_APPROVAL_USER' | 'BANK_ACCOUNT' | 'FACTORING' | 'CASES' | 'COST_CENTER_EXPENSE_ALLOCATION' | 'INVOICE_TAX_ALLOCATION' | 'TAX_RECAPITULATION' | 'TAX_CATEGORIES' | 'INVOICE_ITEMS';
35
+ export interface IDocumentSearch {
36
+ accountsUuid?: string[];
37
+ approvalProcessEndTimeFrom?: string;
38
+ approvalProcessEndTimeTo?: string;
39
+ approvalStepGroupUuid?: string;
40
+ approvalUuid?: string;
41
+ approvalUuids?: string[];
42
+ archived?: boolean;
43
+ bestPaidBeforeFrom?: string;
44
+ bestPaidBeforeTo?: string;
45
+ category?: IDocumentCategory;
46
+ concluded?: boolean;
47
+ contractNumber?: string;
48
+ contractNumberSef?: string;
49
+ contractUuid?: string;
50
+ costCentersUuid?: string;
51
+ createdDateFrom?: string;
52
+ createdDateTo?: string;
53
+ currencyUuid?: string;
54
+ dateFrom?: string;
55
+ dateTo?: string;
56
+ documentApprovalStatus?: string;
57
+ documentNumber?: string;
58
+ documentNumberLike?: string;
59
+ documentSent?: boolean;
60
+ documentTypeUuid?: string;
61
+ documentTypesUuid?: string[];
62
+ documentYearMonth?: string;
63
+ domesticCurrency?: boolean;
64
+ evidenceDateFrom?: string;
65
+ evidenceDateTo?: string;
66
+ evidenceNumberLike?: string;
67
+ excludeDocumentUuid?: string;
68
+ excludeSefStatuses?: ISendStatus[];
69
+ factoring?: boolean;
70
+ foreignCurrency?: boolean;
71
+ income?: boolean;
72
+ internalReceiverNotBlank?: boolean;
73
+ internalRoutingNumberLike?: string;
74
+ invoice?: boolean;
75
+ issueDateFrom?: string;
76
+ issueDateTo?: string;
77
+ issuerOrReceiverUuid?: string;
78
+ issuerUuid?: string;
79
+ latestDocumentSendStatus?: ISendStatus;
80
+ latestDocumentSendStatuses?: ISendStatus[];
81
+ nameLike?: string;
82
+ onHold?: boolean;
83
+ onHoldByUserUuid?: string;
84
+ orunUuids?: string[];
85
+ paymentDateFrom?: string;
86
+ paymentDateTo?: string;
87
+ pioInternalCodeBookReportCustomFilter?: boolean;
88
+ plannedPaymentDateFrom?: string;
89
+ plannedPaymentDateTo?: string;
90
+ receiverUuid?: string;
91
+ registerUuid?: string;
92
+ sefDeadlineDaysFrom?: string;
93
+ sefDeadlineDaysTo?: string;
94
+ sefInvoice?: boolean;
95
+ sefInvoiceType?: ISefInvoiceType;
96
+ sefSendStatus?: ISendStatus;
97
+ sefStatus?: ISendStatus;
98
+ sefStatusCommentLike?: string;
99
+ sefStatuses?: ISendStatus[];
100
+ signal?: any;
101
+ sort?: string;
102
+ taxCategory?: ITaxCategory;
103
+ totalPriceWithVatInCurrency?: number;
104
+ trafficDateFrom?: string;
105
+ trafficDateTo?: string;
106
+ vatPercentage?: string;
107
+ year?: number;
108
+ documentTypesObj?: ISelectData[];
109
+ issuerObj?: ISelectData;
110
+ registerObj?: ISelectData;
111
+ receiverObj?: ISelectData;
112
+ approvalObj?: ISelectData;
113
+ accountsObj?: ISelectData[];
114
+ costCentersObj?: ISelectData[];
115
+ concludedObj?: ISelectData;
116
+ currencyObj?: ISelectData;
117
+ approvalStepGroupObj?: ISelectData;
118
+ }
119
+ export declare const SefVatEvidenceTypes: readonly ["INVOICE", "CREDIT_NOTE", "DEBIT_NOTE", "PREPAYMENT_INVOICE", "INTERNAL_ACCOUNT_FOR_TURNOVER_OF_FOREIGNER", "OTHER_INTERNAL_STATEMENT"];
120
+ export type SefVatEvidenceType = (typeof SefVatEvidenceTypes)[number];
121
+ export interface IDocumentType {
122
+ uuid?: string;
123
+ name?: string;
124
+ printName?: string;
125
+ invoice?: boolean;
126
+ income?: boolean;
127
+ fields?: DocumentField[];
128
+ organization?: IOrganization;
129
+ participateInContractRealization?: boolean;
130
+ participateInContractPaymentRealization?: boolean;
131
+ sort?: number;
132
+ sefInvoiceType?: ISefInvoiceType;
133
+ shipment?: boolean;
134
+ category?: 'DOCUMENT' | 'CASE';
135
+ internalCode?: string;
136
+ caseNumberRequired?: boolean;
137
+ retentionPeriod?: string;
138
+ code?: string;
139
+ sefVatEvidenceType?: SefVatEvidenceType;
140
+ }
141
+ export type DocumentTypeFetchOptions = 'FILES' | 'INDEX_DATA' | 'EMAIL_DOCUMENT' | 'SUM_ADVANCED_PAYMENTS';
142
+ export type ISefInvoiceType = 'COMMERCIAL_INVOICE' | 'CREDIT_NOTE' | 'DEBIT_NOTE' | 'PREPAYMENT_INVOICE';
143
+ export declare const SendToCirValues: readonly ["YES", "NO"];
144
+ export type ISendToCir = (typeof SendToCirValues)[number];
145
+ export interface IAdvancedPayment {
146
+ uuid?: string;
147
+ targetDocument?: IDocument;
148
+ totalPriceWithoutVat?: number | string;
149
+ totalPriceWithVat?: number | string;
150
+ totalPriceWithoutVatInCurrency?: number | string;
151
+ totalPriceWithVatInCurrency?: number | string;
152
+ vatPercentage?: number;
153
+ sourceDocumentUuid?: string;
154
+ targetDocumentNumber?: string;
155
+ targetDocumentIssueDate?: string;
156
+ taxCategory?: string;
157
+ externalSource?: string;
158
+ }
159
+ export interface IAdvancedPaymentSum {
160
+ totalPriceWithoutVat?: number;
161
+ totalPriceWithVat?: number;
162
+ }
163
+ export interface ICreditNoteInvoice {
164
+ uuid?: string;
165
+ creditNote?: IDocument;
166
+ invoice?: IDocument;
167
+ invoiceNumber?: string;
168
+ invoiceIssueDate?: string;
169
+ }
170
+ export declare const LatestApprovalStatuses: readonly ["IN_PROGRESS", "DECLINED", "APPROVED", "NOT_STARTED"];
171
+ export type LatestApprovalStatus = (typeof LatestApprovalStatuses)[number];
172
+ export interface IDocumentSource {
173
+ document?: Document;
174
+ uuid?: string;
175
+ }
176
+ export type IDocumentSourceType = 'EMAIL' | 'INTERNAL_SEND' | 'MANUAL_INPUT';
177
+ export interface IDocumentNote {
178
+ uuid?: string;
179
+ document?: IDocument;
180
+ text?: string;
181
+ createdAt?: string;
182
+ createdBy?: IUser;
183
+ }
184
+ export interface IDocumentIndex {
185
+ uuid?: string;
186
+ index?: IIndexData;
187
+ indexDataPosition?: IIndex;
188
+ value?: string;
189
+ codebookItem?: {
190
+ uuid: string;
191
+ };
192
+ }
193
+ export interface IDocumentWarning {
194
+ uuid: string;
195
+ document?: IDocument | null;
196
+ type: string;
197
+ message: string;
198
+ createdAt: string;
199
+ }
200
+ export declare const DocumentFields: readonly ["TRAFFIC_DATE", "BEST_PAID_BEFORE", "CONTRACT", "DOCUMENT_NUMBER", "NOTE", "ORUN", "INVOICE_ITEM_CODE", "INVOICE_ITEM_UNIT_OF_MEASURE", "INVOICE_ITEM_QUANTITY", "INVOICE_ITEM_UNIT_PRICE_WITHOUT_VAT", "INVOICE_ITEM_TOTAL_PRICE_WITHOUT_VAT", "INVOICE_ITEM_TOTAL_PRICE_WITH_VAT", "INVOICE_ITEM_VAT_PERCENTAGE", "TOTAL_PRICES", "PLANNED_PAYMENT_DATE", "ALLOWANCE_PERCENTAGE", "ALLOWANCE"];
201
+ export type DocumentField = (typeof DocumentFields)[number];
202
+ export declare const DocumentStatuses: readonly ["IN_PROGRESS", "CONCLUDED"];
203
+ export type IDocumentStatus = (typeof DocumentStatuses)[number];
204
+ export interface DocumentIndicies {
205
+ [id: string]: IDocumentIndex;
206
+ }
207
+ export declare const GroupItems: readonly ["ISSUER", "ORUN", "STEP_GROUP", "ACCOUNT", "CONTRACT"];
208
+ export type IGroupItem = (typeof GroupItems)[number];
209
+ export declare const GroupItemsSubLevel: readonly ["ISSUER", "ACCOUNT", "CONTRACT"];
210
+ export type IGroupItemSubLevel = (typeof GroupItemsSubLevel)[number];
211
+ export interface IDocumentForward {
212
+ uuid?: string;
213
+ createdAt?: string;
214
+ createdBy?: IUser;
215
+ note?: string;
216
+ orun?: IOrganizationalUnitUpdate;
217
+ }
218
+ export type DocumentForwardsFetchOption = 'ORUN' | 'CREATED_BY';
219
+ export declare const documentsColumnsMap: IStringObject;
@@ -0,0 +1,67 @@
1
+ import { ISimpleObject } from '@inceptionbg/iui';
2
+ import { IFileSignatory } from './ISignatory';
3
+ import { IUser } from '../../Auth/IUser';
4
+ import { IOrganization } from '../../Auth/IOrganization';
5
+ export interface IDocumentFile {
6
+ uuid: string;
7
+ name?: string;
8
+ signedFile?: IFile;
9
+ storedFile?: IFile;
10
+ createdBy?: IUser;
11
+ deleted?: boolean;
12
+ downloaded?: boolean;
13
+ previousVersion?: ISimpleObject;
14
+ externalSource?: boolean;
15
+ orderNumber?: string | number;
16
+ requiredSignature?: boolean;
17
+ confidentialDocument?: boolean;
18
+ signatories?: IFileSignatory[];
19
+ fileType?: IFileType;
20
+ locked?: boolean;
21
+ }
22
+ export type DocumentFileFetchOptions = 'PREVIOUS_VERSION' | 'FILE_TYPE';
23
+ export interface IDocumentFileParams {
24
+ onlyAttachedFiles?: boolean;
25
+ documentSendUuid?: string;
26
+ includeDeleted?: boolean;
27
+ baseDocumentFileUuid?: string;
28
+ documentFileType?: 'SCAN';
29
+ }
30
+ export interface IUploadDocumentType {
31
+ file?: any;
32
+ name?: string;
33
+ }
34
+ export interface IFileSignData {
35
+ redirectUrl?: string;
36
+ notificationEmailAddress?: string;
37
+ notificationPhoneNumber?: string;
38
+ }
39
+ export interface IFile {
40
+ uuid: string;
41
+ contentType?: string;
42
+ digest?: string;
43
+ digestAlgorithm?: string;
44
+ fileUuid?: string;
45
+ lengthInBytes: number;
46
+ md5?: string;
47
+ originalFileName: string;
48
+ downloadUrl?: string;
49
+ uploadedAt?: string;
50
+ storage?: {
51
+ url?: string;
52
+ };
53
+ }
54
+ export interface IFileUpload {
55
+ contentType: string;
56
+ digest: string;
57
+ digestAlgorithm: string;
58
+ lengthInBytes: number;
59
+ uuid: string;
60
+ originalFileName: string;
61
+ }
62
+ export interface IFileType {
63
+ uuid?: string;
64
+ name?: string;
65
+ organization?: IOrganization;
66
+ requireSignature?: boolean;
67
+ }
@@ -0,0 +1,128 @@
1
+ import { IOrganization } from '../../Auth/IOrganization';
2
+ import { IUser } from '../../Auth/IUser';
3
+ import { IContactPerson } from '../Partner/IPartner';
4
+ import { IApproval } from './IApproval';
5
+ import { IDocumentAny, IDocumentType } from './IDocument';
6
+ import { IDocumentFile } from './IDocumentFile';
7
+ import { IShipment } from './Shipment/IShipment';
8
+ export interface IDocumentSend {
9
+ uuid?: string;
10
+ contactPerson?: IContactPerson;
11
+ createdAt?: string;
12
+ body?: string;
13
+ latestStatus?: ISendStatus;
14
+ requireConsent?: boolean;
15
+ consentDeadlineTime?: string;
16
+ requireDeliveryReceipt?: boolean;
17
+ requireFileSignature?: boolean;
18
+ requireDownloadBeforeConsent?: boolean;
19
+ qualifiedDelivery?: boolean;
20
+ accessHash?: string;
21
+ receiverName?: string;
22
+ email?: string;
23
+ document?: IShipment;
24
+ createdBy?: IUser;
25
+ organization?: IOrganization;
26
+ files?: IDocumentFile[];
27
+ description?: string;
28
+ sendFinal?: boolean;
29
+ relatedDocuments?: IDocumentAny[];
30
+ totalPrice?: number;
31
+ discount?: number;
32
+ deletionTime?: string;
33
+ sefComment?: string;
34
+ inBehalfOf?: {
35
+ email: string;
36
+ };
37
+ }
38
+ export interface IDocumentSendPub {
39
+ uuid: string;
40
+ files: IDocumentFile[];
41
+ sender: IOrganization;
42
+ receiver: IOrganization;
43
+ sendFinal?: boolean;
44
+ latestStatus: ISendStatus;
45
+ requireConsent?: boolean;
46
+ requireFileSignature?: boolean;
47
+ requireDownloadBeforeConsent?: boolean;
48
+ qualifiedDelivery?: boolean;
49
+ required2Fa?: boolean;
50
+ receiverName: string;
51
+ email?: string;
52
+ shipmentNumber: string;
53
+ shipmentType?: string;
54
+ internalRoutingNumber?: string;
55
+ consentDeadlineTime?: string;
56
+ redirectUrl?: string;
57
+ locale?: string;
58
+ createdAt?: string;
59
+ messageSubject?: string;
60
+ note?: string;
61
+ visualizationProfile?: 'OTP' | 'OTP_VIDEO_KYC' | 'OTP_CLOUD';
62
+ bulkDownoloadUrl: string;
63
+ deliveryConfirmationSigned?: string;
64
+ }
65
+ export type DocumentSendFetchOption = 'CREATED_BY' | 'DOCUMENT' | 'DOCUMENT_WITH_ISSUER_RECEIVER' | 'ORGANIZATION' | 'FILES_WITH_URLS' | 'SIGNATORIES' | 'DESCRIPTION' | 'RELATED_DOCUMENTS' | 'CONVERSATION_VIEW' | 'RECEIVER_ORGANIZATION' | 'IN_BEHALF_OF';
66
+ export interface IDocumentSendSearch {
67
+ documentUuid?: string;
68
+ receiverOrganizationUuid?: string;
69
+ organizationUuid?: string;
70
+ receiverUserUuid?: string;
71
+ status?: ISendStatus;
72
+ excludeStatuses?: ISendStatus[];
73
+ createdFrom?: string;
74
+ createdTo?: string;
75
+ documentNumberLike?: string;
76
+ documentDateFrom?: string;
77
+ documentDateTo?: string;
78
+ documentIssuerFullTextSearch?: string;
79
+ documentTotalPriceWithVatFrom?: number;
80
+ documentTotalPriceWithVatTo?: number;
81
+ documentBestPaidBeforeFrom?: string;
82
+ documentBestPaidBeforeTo?: string;
83
+ firstLevel?: boolean;
84
+ sort?: string;
85
+ conversationViewUuid?: string;
86
+ caseUuid?: string;
87
+ }
88
+ export declare const SendStatuses: readonly ["QUEUED", "SENDING", "NOT_REGISTERED_ON_SEF", "ERROR", "SENT", "SEEN", "DOWNLOADED", "APPROVED", "REJECTED", "UNRESOLVED", "MISTAKE", "CANCELLED", "STORNO", "RENOTIFIED"];
89
+ export type ISendStatus = (typeof SendStatuses)[number];
90
+ export interface IDocumentSendStatusChange {
91
+ status: ISendStatus;
92
+ time: string;
93
+ }
94
+ export interface IDocumentInternalSend extends IDocumentSend {
95
+ receiverOrganization?: IOrganization;
96
+ receiverUser?: IUser;
97
+ internalSend?: boolean;
98
+ }
99
+ export type InternalExchangeFilterType = 'ALL_DOCUMENTS' | 'MY_DOCUMENTS' | 'DECLINED_DOCUMENTS';
100
+ /**
101
+ * Create document from DocumentInternalSend request
102
+ */
103
+ export interface ICreateDocumentFromDISRequest {
104
+ internalSend: IDocumentInternalSend;
105
+ documentNumber: string;
106
+ documentType: IDocumentType;
107
+ date: string;
108
+ documentFiles?: IDocumentFile[];
109
+ approval?: IApproval;
110
+ }
111
+ export interface IDocumentSendInBulk {
112
+ emailSends?: IEmailSend[];
113
+ sef?: boolean;
114
+ internalSend?: IDocumentInternalSend;
115
+ files?: IDocumentFile[];
116
+ }
117
+ export interface IEmailSend {
118
+ email?: string;
119
+ requireConsent?: boolean;
120
+ emailSend?: boolean;
121
+ qualifiedDelivery?: boolean;
122
+ }
123
+ export interface IDocumentStornOrCancelData {
124
+ status?: 'CANCELLED' | 'STORNO' | '';
125
+ comment?: string;
126
+ stornoNumber?: string;
127
+ invoiceUuids?: string[];
128
+ }
@@ -0,0 +1,52 @@
1
+ import { IOrganization } from '../../Auth/IOrganization';
2
+ import { IUser } from '../../Auth/IUser';
3
+ import { IPartner } from '../Partner/IPartner';
4
+ import { IApproval } from './IApproval';
5
+ import { IDocument, IDocumentType } from './IDocument';
6
+ import { IDocumentFile } from './IDocumentFile';
7
+ export interface IEmailDocument {
8
+ documentNumber?: string;
9
+ date: string;
10
+ documentType: IDocumentType;
11
+ attachments: IEmailMessageAttachment[];
12
+ emailAccount: IEmailCredential;
13
+ emailMessage: IEmailMessage;
14
+ issuer: IPartner;
15
+ approval?: IApproval;
16
+ }
17
+ export interface IEmailDocumentSaved {
18
+ uuid?: string;
19
+ document?: IDocument;
20
+ emailAccount?: IEmailCredential;
21
+ electronicReturnReceiptTime?: string;
22
+ documentFiles?: IDocumentFile[];
23
+ }
24
+ export interface IEmailMessage {
25
+ subject?: string;
26
+ number?: string;
27
+ from?: string[];
28
+ time?: string;
29
+ textBody?: string;
30
+ htmlBody?: string;
31
+ attachments?: IEmailMessageAttachment[];
32
+ relatedDocuments?: IDocument[];
33
+ emailAccount?: IEmailCredential;
34
+ }
35
+ export interface IEmailMessageAttachment {
36
+ name?: string;
37
+ downloadUrl?: string;
38
+ lengthInBytes?: number;
39
+ }
40
+ export interface IEmailCredential {
41
+ uuid?: string;
42
+ username?: string;
43
+ password?: string;
44
+ imapHost?: string;
45
+ imapPort?: number;
46
+ organization?: IOrganization;
47
+ usersWithAccess?: IUser[];
48
+ createdBy?: IUser;
49
+ }
50
+ export interface IEmailAccountSearch {
51
+ userHasAccess?: boolean;
52
+ }
@@ -0,0 +1,15 @@
1
+ export interface IIndexDataCodebook {
2
+ uuid: string;
3
+ name: string;
4
+ description: string;
5
+ active?: boolean;
6
+ organization?: {
7
+ uuid: string;
8
+ };
9
+ }
10
+ export interface IIndexDataCodebookItem {
11
+ code: string;
12
+ name: string;
13
+ uuid: string;
14
+ active: boolean;
15
+ }
@@ -0,0 +1,34 @@
1
+ import { ISimpleObject } from '@inceptionbg/iui';
2
+ export interface IFileSignatory {
3
+ uuid?: string;
4
+ firstName?: string;
5
+ lastName?: string;
6
+ email?: string;
7
+ phoneNumber?: string;
8
+ personalIdentityNumber?: string;
9
+ signatureAppearance?: ISignatureAppearance;
10
+ visualizationProfile?: ISimpleObject;
11
+ signatureType?: ISignatureType;
12
+ }
13
+ export type ISignatureType = 'ESIG' | 'ESEAL';
14
+ export interface ISignatureAppearance {
15
+ pageNumber?: string;
16
+ x?: string;
17
+ y?: string;
18
+ width?: string | number;
19
+ height?: string | number;
20
+ }
21
+ export interface ISignatoriesTemplateNew {
22
+ uuid?: string;
23
+ name?: string;
24
+ signatories?: IFileSignatory[];
25
+ }
26
+ export interface ISignatoriesTemplate extends ISignatoriesTemplateNew {
27
+ uuid: string;
28
+ name: string;
29
+ signatories: IFileSignatory[];
30
+ }
31
+ export interface ISignatoriesTemplateSearch {
32
+ nameLike?: string;
33
+ }
34
+ export type ISignatoriesTemplateFetchOption = 'SIGNATORIES';
@@ -0,0 +1,60 @@
1
+ import { ISelectData } from '@inceptionbg/iui';
2
+ import { IIndexDataCodebookItem, IIndexDataCodebook } from './IIndexDataCodebook';
3
+ import { IOrganization } from '../../Auth/IOrganization';
4
+ export interface IIndexData {
5
+ uuid: string;
6
+ name: string;
7
+ code: string;
8
+ createdAt: string;
9
+ fieldType: IndexDataFieldType;
10
+ indexDataCodebook?: Partial<IIndexDataCodebook>;
11
+ deletionTime?: string;
12
+ readonly?: boolean;
13
+ organization?: IOrganization;
14
+ minLength?: number;
15
+ maxLength?: number;
16
+ order?: number;
17
+ fieldTypeObj?: ISelectData;
18
+ codebookObj?: ISelectData;
19
+ }
20
+ export interface IIndex {
21
+ uuid?: string;
22
+ value?: string;
23
+ name?: string;
24
+ position?: IIndexDataPosition;
25
+ indexData?: IIndexData;
26
+ indexOrder?: string;
27
+ defaultCodebookItem?: Partial<IIndexDataCodebookItem>;
28
+ }
29
+ export declare const IndexDataFieldTypes: readonly ["TEXT", "DATE", "CODEBOOK", "NUMERIC", "DECIMAL", "LONG_TEXT"];
30
+ export type IndexDataFieldType = (typeof IndexDataFieldTypes)[number];
31
+ export declare const IndexDataPositions: readonly ["COST_CENTER", "CONTRACT", "CASE", "DOCUMENT", "LEGAL_ENTITY"];
32
+ export type IIndexDataPosition = (typeof IndexDataPositions)[number];
33
+ export interface IIndicesIndex {
34
+ uuid?: string;
35
+ indexDataPosition?: IIndex;
36
+ value?: string;
37
+ codebookItem?: {
38
+ uuid: string;
39
+ };
40
+ }
41
+ export interface IIndexDataPositionSearch {
42
+ contractTypeUuid?: string;
43
+ caseTypeUuid?: string;
44
+ documentTypeUuid?: string;
45
+ }
46
+ export interface IIndexDataCreate {
47
+ uuid?: string;
48
+ position: IIndexDataPosition;
49
+ indexData: IIndexData;
50
+ contractType?: {
51
+ uuid: string;
52
+ };
53
+ caseType?: {
54
+ uuid: string;
55
+ };
56
+ documentType?: {
57
+ uuid: string;
58
+ };
59
+ indexOrder?: number;
60
+ }
@@ -0,0 +1,11 @@
1
+ import { IOrganization } from '../../../Auth/IOrganization';
2
+ export interface IAccount {
3
+ uuid?: string;
4
+ name?: string;
5
+ code?: string;
6
+ deleted?: boolean;
7
+ organization?: IOrganization;
8
+ }
9
+ export interface IAccountSearch {
10
+ fullText?: string;
11
+ }
@@ -0,0 +1,39 @@
1
+ import { IIndex } from '../IndexData';
2
+ import { IAccount } from './IAccount';
3
+ export interface IExpenseAllocation {
4
+ uuid: string;
5
+ document: {
6
+ uuid: string;
7
+ };
8
+ costCenter: {
9
+ uuid: string;
10
+ code: string;
11
+ name: string;
12
+ };
13
+ expenseAmount: string;
14
+ orderNumber?: string;
15
+ note?: string;
16
+ account?: IAccount;
17
+ costCenterExpenseAllocationIndexes?: ICostCenterExpenseAllocationIndex[];
18
+ }
19
+ export interface ICostCenterAdditionalCodebook {
20
+ uuid: string;
21
+ name: string;
22
+ code?: string;
23
+ description?: string;
24
+ active?: boolean;
25
+ }
26
+ export interface ICostCenterExpenseAllocationIndex {
27
+ uuid?: string;
28
+ indexDataPosition?: IIndex;
29
+ value?: string;
30
+ codebookItem?: {
31
+ uuid: string;
32
+ code?: string;
33
+ name?: string;
34
+ active?: boolean;
35
+ };
36
+ }
37
+ export interface ICostCenterIndices {
38
+ [id: string]: ICostCenterExpenseAllocationIndex;
39
+ }
@@ -0,0 +1,6 @@
1
+ export interface IFactoringAccess {
2
+ regular?: boolean;
3
+ reverse?: boolean;
4
+ futureClaims?: boolean;
5
+ }
6
+ export type IFactoringType = 'FACTORING_REGULAR' | 'FACTORING_REVERSE';