@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,23 @@
1
+ import { IJob } from './IJob';
2
+ import { IUser } from '../../Auth/IUser';
3
+ import { ISimpleObjectWithCode } from '@inceptionbg/iui';
4
+ import { IOrganizationalUnit } from '../../Auth/IOrganization';
5
+ export interface IEmployee {
6
+ uuid: string;
7
+ firstName?: string;
8
+ lastName?: string;
9
+ personalIdentityNumber?: string;
10
+ evidenceNumber?: string;
11
+ email?: string;
12
+ user?: IUser;
13
+ emailNotifications?: boolean;
14
+ deleted?: boolean;
15
+ job?: IJob;
16
+ orun?: IOrganizationalUnit;
17
+ representation?: string;
18
+ costCenter?: ISimpleObjectWithCode;
19
+ }
20
+ export interface IEmployeeSearch {
21
+ fullText?: string;
22
+ }
23
+ export type EmployeeFetchOption = 'JOB' | 'COST_CENTER';
@@ -0,0 +1,10 @@
1
+ import { IOrganization } from '../../Auth/IOrganization';
2
+ export interface IJob {
3
+ uuid?: string;
4
+ name?: string;
5
+ code?: string;
6
+ organization?: IOrganization;
7
+ }
8
+ export interface IJobSearch {
9
+ fullText?: string;
10
+ }
@@ -0,0 +1,30 @@
1
+ import { ISimpleObject } from '@inceptionbg/iui';
2
+ import { IUser } from '../../../Auth/IUser';
3
+ export interface IContractFile {
4
+ uuid?: string;
5
+ name?: string;
6
+ storedFile?: {
7
+ uuid?: string;
8
+ originalFileName?: string;
9
+ downloadUrl?: string;
10
+ lengthInBytes?: number;
11
+ uploadedAt?: string;
12
+ fileUuid?: string;
13
+ storage?: {
14
+ url?: string;
15
+ };
16
+ };
17
+ createdBy?: IUser;
18
+ deleted?: boolean;
19
+ previousVersion?: ISimpleObject;
20
+ externalSource?: boolean;
21
+ orderNumber?: string | number;
22
+ }
23
+ export interface IContractFileParams {
24
+ onlyAttachedFiles?: boolean;
25
+ includeDeleted?: boolean;
26
+ }
27
+ export interface IUploadContractType {
28
+ file?: any;
29
+ name?: string;
30
+ }
@@ -0,0 +1,241 @@
1
+ import { ISimpleObject, ISimpleObjectWithCode } from '@inceptionbg/iui';
2
+ import { IOrganization, IOrganizationalUnitUpdate } from '../../Auth/IOrganization';
3
+ import { IEmployee } from '../Administration/IEmployee';
4
+ import { IAccount } from '../Document/Invoice/IAccount';
5
+ import { IPartner } from '../Partner/IPartner';
6
+ import { IIndicesIndex } from '../Document/IndexData';
7
+ import { IProduct } from '../Document/Invoice/IProduct';
8
+ export interface IContractNew {
9
+ uuid?: string;
10
+ contractor?: IPartner;
11
+ contractors?: IPartner[];
12
+ partnerContractNumber?: string;
13
+ type?: ContractType;
14
+ contractNumber?: string;
15
+ conclusionDate?: string;
16
+ expirationDate?: string;
17
+ periodFrom?: string;
18
+ periodTo?: string;
19
+ subject?: string;
20
+ note?: string;
21
+ active?: boolean;
22
+ organization?: IOrganization;
23
+ manager?: IEmployee;
24
+ amountWithVat?: number;
25
+ amountWithoutVat?: number;
26
+ warningAmountWithVat?: number;
27
+ warningAmountWithoutVat?: number;
28
+ currency?: ISimpleObjectWithCode;
29
+ exchangeRate?: number;
30
+ warningDate?: string;
31
+ deactivationDate?: string;
32
+ deactivationNote?: string;
33
+ utilization?: IContractUtilization;
34
+ paymentUtilization?: IContractUtilization;
35
+ frameworkAgreementUtilization?: IContractUtilization;
36
+ bestPaidBefore?: number;
37
+ deliveryTime?: number;
38
+ complaintDeadline?: number;
39
+ warrantyPeriod?: number;
40
+ discount?: number;
41
+ account?: IAccount;
42
+ organizationalUnit?: IOrganizationalUnitUpdate;
43
+ amountWarningPercentage?: number;
44
+ foreignAmountWithVat?: number;
45
+ foreignAmountWithoutVat?: number;
46
+ warningForeignAmountWithVat?: number;
47
+ warningForeignAmountWithoutVat?: number;
48
+ lastAnnex?: IAnnex;
49
+ annexes?: IAnnex[];
50
+ frameworkAgreement?: IContract;
51
+ group?: 'CONTRACT' | 'FRAMEWORK_AGREEMENT';
52
+ estimatedValueWithVat?: number;
53
+ estimatedValueWithoutVat?: number;
54
+ jointOffer?: boolean;
55
+ subContractor?: boolean;
56
+ procurementCaseType?: IProcurementCaseType;
57
+ publicProcurementLaw?: boolean;
58
+ publicProcurementLawObj?: ISimpleObject;
59
+ procurementLawReferenceNUmber?: string;
60
+ procurementLawReason?: string;
61
+ reservedAmountWithoutVat?: string;
62
+ reservedAmountWithVat?: string;
63
+ foreignExchange?: boolean;
64
+ procurementOrdinalNumber?: string;
65
+ providingServicesDeadline?: ServiceCostCenter;
66
+ providingServicesCostCenter?: ISimpleObjectWithCode;
67
+ commissionMembers?: IEmployee[];
68
+ contractType?: IContractType;
69
+ contractIndices?: IIndicesIndex[];
70
+ indicesData?: IIndicesIndex[];
71
+ }
72
+ export interface IContract extends IContractNew {
73
+ uuid: string;
74
+ }
75
+ export type ContractFetchOption = 'ACCOUNT' | 'ANNEX' | 'CONTRACTORS' | 'CURRENCY' | 'DEACTIVATED_BY' | 'FRAMEWORK_AGREEMENT' | 'MANAGER' | 'ORGANIZATIONAL_UNIT' | 'UTILIZATION' | 'PAYMENT_UTILIZATION' | 'ANNEXES' | 'RESERVED_AMOUNT' | 'CONTRACT_TYPE' | 'INDEX_DATA';
76
+ export type ContractFieldOption = 'EXPIRATION_DATE' | 'SUBJECT' | 'BEST_PAID_BEFORE' | 'DELIVERY_TIME' | 'COMPLAINT_DEADLINE' | 'WARRANTY_PERIOD' | 'AMOUNT_WITH_VAT' | 'AMOUNT_WITHOUT_VAT' | 'DISCOUNT' | 'CONTRACTOR';
77
+ export interface IContractSearch {
78
+ contractNumberLike?: string;
79
+ conclusionDateFrom?: string;
80
+ conclusionDateTo?: string;
81
+ expirationDateFrom?: string;
82
+ expirationDateTo?: string;
83
+ contractorUuid?: string;
84
+ active?: boolean;
85
+ type?: ContractType;
86
+ expireInDays?: number;
87
+ sort?: string;
88
+ accountUuid?: string;
89
+ manager?: IEmployee;
90
+ managerUuid?: string;
91
+ contractorsUuid?: string[];
92
+ frameworkAgreementUuid?: string;
93
+ periodFromFrom?: string;
94
+ periodFromTo?: string;
95
+ periodToFrom?: string;
96
+ periodToTo?: string;
97
+ annexDateFrom?: string;
98
+ annexDateTo?: string;
99
+ partnerContractNumberLike?: string;
100
+ documentAccountUuids?: string[];
101
+ annexNumberLike?: string;
102
+ jointOffer?: boolean;
103
+ subContractor?: boolean;
104
+ }
105
+ export interface IContractItemSearch {
106
+ nameLike?: string;
107
+ codeLike?: string;
108
+ manufacturerLike?: string;
109
+ serialNumberLike?: string;
110
+ }
111
+ export interface IContractItem {
112
+ uuid?: string;
113
+ name?: string;
114
+ valueWithoutVat?: number;
115
+ valueWithVat?: number;
116
+ vatPercentage?: number;
117
+ vatAmount?: number;
118
+ product?: IProduct;
119
+ quantity?: number | string;
120
+ discountPercentage?: number | string;
121
+ unitPriceWithoutVat?: number | string;
122
+ unitPriceWithVat?: number | string;
123
+ unitOfMeasure?: ISimpleObject;
124
+ }
125
+ export declare const ContractTypes: readonly ["INCOME", "OUTCOME"];
126
+ export type ContractType = (typeof ContractTypes)[number];
127
+ export declare const ContractStatuses: readonly ["ACTIVE", "INACTIVE"];
128
+ export type ContractStatus = (typeof ContractStatuses)[number];
129
+ export interface IContractUtilization {
130
+ utilizationWithVat?: number;
131
+ utilizationWithoutVat?: number;
132
+ remainingAmountWithVat?: number;
133
+ remainingAmountWithoutVat?: number;
134
+ utilizationPercentage?: number;
135
+ }
136
+ export interface IContractUtilizationSearch {
137
+ type?: 'PAYMENT_UTILIZATION';
138
+ }
139
+ export interface IContractDeactivation {
140
+ deactivationNote?: string;
141
+ deactivationDate: string;
142
+ }
143
+ export interface IPlannedFund {
144
+ uuid?: string;
145
+ year?: number;
146
+ amountWithVat?: number | string;
147
+ amountWithoutVat?: number | string;
148
+ }
149
+ export interface IPlannedFundSearch {
150
+ year?: number;
151
+ amountWithVatFrom?: number | string;
152
+ amountWithVatTo?: number | string;
153
+ amountWithoutVatFrom?: number | string;
154
+ amountWithoutVatTo?: number | string;
155
+ }
156
+ export type PlannedFundFetchOption = 'CONTRACT';
157
+ export interface IAnnex {
158
+ uuid?: string;
159
+ annexNumber: string;
160
+ changes: IAnnexChange[];
161
+ contract: IContract;
162
+ date: string;
163
+ partnerAnnexNumber: string;
164
+ }
165
+ export interface IAnnexChange {
166
+ field?: ContractFieldOption;
167
+ newValue?: string | number;
168
+ oldValue?: string | number;
169
+ representation?: string;
170
+ }
171
+ export interface IAnnexSearch {
172
+ annexNumberLike?: string;
173
+ dateFrom?: string;
174
+ dateTo?: string;
175
+ }
176
+ export type AnnexFetchOption = 'CONTRACT' | 'CHANGES';
177
+ export interface IWarrantyNew {
178
+ uuid?: string;
179
+ contract?: IContract;
180
+ organization?: IOrganization;
181
+ number?: string;
182
+ registrationDate?: string;
183
+ authorizationNumber?: string;
184
+ authorizationDate?: string;
185
+ validUntil?: string;
186
+ amount?: string;
187
+ note?: string;
188
+ returnDate?: string;
189
+ returnDateWarning?: string;
190
+ category?: IWarrantyCategory;
191
+ given?: boolean;
192
+ type?: IWarrantyType;
193
+ contractorBank?: IPartner;
194
+ contractWithBank?: IContract;
195
+ }
196
+ export interface IWarranty extends IWarrantyNew {
197
+ uuid: string;
198
+ contract: IContract;
199
+ organization: IOrganization;
200
+ number: string;
201
+ type: IWarrantyType;
202
+ }
203
+ export type IWarrantyCategory = 'BANK_GUARANTEE' | 'BILL_OF_EXCHANGE';
204
+ export interface IWarrantyType {
205
+ uuid: string;
206
+ name: string;
207
+ }
208
+ export interface IWarrantySearch {
209
+ warrantyNumberLike?: string;
210
+ contractNumberLike?: string;
211
+ contractUuid?: string;
212
+ }
213
+ export interface IContractUtilization {
214
+ uuid: string;
215
+ contractNumber: string;
216
+ amountWithVat?: number;
217
+ amountWithoutVat?: number;
218
+ contractorName: string;
219
+ contractUtilizationThisYear: IContractUtilizationByYear;
220
+ contractUtilizationLastYear: IContractUtilizationByYear;
221
+ }
222
+ export interface IContractUtilizationByYear {
223
+ utilizationWithVat?: number;
224
+ utilizationWithoutVat?: number;
225
+ year: number;
226
+ }
227
+ export interface IProcurementCaseType {
228
+ uuid?: string;
229
+ name?: string;
230
+ organization?: IOrganization;
231
+ }
232
+ export interface IProcurementCaseTypeSearch {
233
+ nameLike?: string;
234
+ }
235
+ export declare const ServiceCostCenters: readonly ["SUCCESSIVELY", "COMPLETELY"];
236
+ export type ServiceCostCenter = (typeof ServiceCostCenters)[number];
237
+ export interface IContractType {
238
+ uuid?: string;
239
+ name?: string;
240
+ organization?: IOrganization;
241
+ }
@@ -0,0 +1,143 @@
1
+ import { ISelectData, ISimpleObject, ISimpleObjectWithCode } from '@inceptionbg/iui';
2
+ import { IOrganization, IOrganizationalUnitUpdate } from '../../Auth/IOrganization';
3
+ import { IEmployee } from '../Administration/IEmployee';
4
+ import { IJob } from '../Administration/IJob';
5
+ import { IIndexData } from './IndexData';
6
+ import { IDocumentAny, IDocumentType } from './IDocument';
7
+ import { IUser } from '../../Auth/IUser';
8
+ import { IPartner } from '../Partner/IPartner';
9
+ import { IInvoice } from './Invoice/IInvoice';
10
+ export interface IApproval {
11
+ uuid?: string;
12
+ name?: string;
13
+ description?: string;
14
+ active?: boolean;
15
+ returnResponseToSef?: boolean;
16
+ orun?: IOrganizationalUnitUpdate;
17
+ organization?: IOrganization;
18
+ automaticallyStart?: IApproval;
19
+ automaticallyStartApprovals?: IApproval[];
20
+ automaticallyStartApprovalsData?: ISelectData[];
21
+ generateDocumentApprovalReport?: boolean;
22
+ startApprovalByConditionsOnApprovalEnd?: boolean;
23
+ issueDateChange?: boolean;
24
+ }
25
+ export type DocumentApprovalFetchOption = 'STEPS_WITH_VOTES' | 'APPROVAL' | 'READY_TO_VOTE' | 'DIRECTLY_PROCESS_COMPLETION_USER';
26
+ export interface IApprovalSearch {
27
+ organizationUuid?: string;
28
+ active?: boolean;
29
+ orunUuid?: string;
30
+ }
31
+ export 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"];
32
+ export type IConstraint = (typeof Constraints)[number];
33
+ export interface IApprovalStep {
34
+ uuid: string;
35
+ name?: string;
36
+ description?: string;
37
+ deadline?: number;
38
+ requiredVotes?: number;
39
+ ordinalNumber?: number;
40
+ approval?: IApproval;
41
+ employees?: IEmployee[];
42
+ step?: IApprovalStep;
43
+ conditionedStep?: IApprovalStep;
44
+ job?: IJob;
45
+ activationTime?: string;
46
+ documentHold?: boolean;
47
+ costCenter?: ISimpleObjectWithCode;
48
+ group?: IPhaseGroup;
49
+ lastStep?: boolean;
50
+ constraints?: IConstraint[];
51
+ indexDataConstraints?: IIndexData[];
52
+ }
53
+ export interface IApprovalStepSearch {
54
+ approvalStepGroupUuid?: string;
55
+ }
56
+ export interface ILatestApprovalProcess {
57
+ uuid?: string;
58
+ createdAt?: string;
59
+ status?: string;
60
+ latestStep?: IDocumentApprovalStep;
61
+ }
62
+ export type ApprovalStatus = 'APPROVED' | 'DECLINED';
63
+ export interface IDocumentApproval {
64
+ uuid?: string;
65
+ document?: IDocumentAny;
66
+ approval?: IApproval;
67
+ steps?: IDocumentApprovalStep[];
68
+ status?: ApprovalStatus;
69
+ directlyProcessCompletionUser?: IUser;
70
+ }
71
+ export interface IDocumentApprovalStep {
72
+ uuid?: string;
73
+ activationTime?: string;
74
+ deadline?: string;
75
+ requiredVotes?: number;
76
+ positiveVotes?: number;
77
+ stepStatus?: ApprovalStatus;
78
+ step?: IApprovalStep;
79
+ votes?: IDocumentApprovalVote[];
80
+ documentApproval?: IDocumentApproval;
81
+ notReadyToVoteReason?: 'COST_EXPENSE_ALLOCATION' | 'INVOICE_TAX_ALLOCATION' | 'INVOICE_ACCOUNT' | 'INDEX_DATA';
82
+ customName?: string;
83
+ additionalAddingTime?: string;
84
+ }
85
+ export interface IDocumentApprovalVote {
86
+ uuid: string;
87
+ document: IDocumentAny;
88
+ step: IDocumentApprovalStep;
89
+ employee: IEmployee;
90
+ vote?: ApprovalStatus;
91
+ voteTime?: string;
92
+ votedFiles?: ISimpleObject[];
93
+ note?: string;
94
+ returnedStep?: boolean;
95
+ adHocVote?: boolean;
96
+ }
97
+ export interface IVoteSearch {
98
+ invoice?: boolean;
99
+ voted?: boolean;
100
+ documentNumber?: string;
101
+ documentTypeUuid?: string;
102
+ issuerOrReceiverUuid?: string;
103
+ dateFrom?: string;
104
+ dateTo?: string;
105
+ voteTimeFrom?: string;
106
+ voteTimeTo?: string;
107
+ userApprovalStatus?: string;
108
+ currentApprovalStatus?: string;
109
+ active?: boolean;
110
+ myVotes?: boolean;
111
+ sort?: 'PRIORITY_DESC' | 'ID_DESC';
112
+ employee?: IEmployee;
113
+ employeeUuid?: string;
114
+ }
115
+ export interface IPhaseGroup {
116
+ uuid?: string;
117
+ name?: string;
118
+ organization?: IOrganization;
119
+ items?: {
120
+ invoices: IInvoice[];
121
+ isOpen: boolean;
122
+ };
123
+ 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';
124
+ }
125
+ export interface IPhaseGroupSearch {
126
+ nameLike?: string;
127
+ }
128
+ export interface ICondition {
129
+ uuid?: string;
130
+ approval?: IApproval;
131
+ amountFrom?: number | string;
132
+ amountTo?: number | string;
133
+ orun?: IOrganizationalUnitUpdate;
134
+ partner?: IPartner;
135
+ documentType?: IDocumentType;
136
+ indexDatas?: IConditionIndexData[];
137
+ }
138
+ export interface IConditionIndexData {
139
+ uuid?: string;
140
+ approvalCondition?: ICondition;
141
+ indexData?: IIndexData;
142
+ value?: string;
143
+ }
@@ -0,0 +1,48 @@
1
+ import { IOrganization } from '../../Auth/IOrganization';
2
+ import { IEmployee } from '../Administration/IEmployee';
3
+ import { IDocumentIndex, IDocumentType } from './IDocument';
4
+ import { IFactoringType } from './Invoice/IFactoring';
5
+ export interface ICase {
6
+ uuid: string;
7
+ number: string;
8
+ thirdPartyOrganization?: IOrganization;
9
+ deletable?: boolean;
10
+ name?: string;
11
+ caseType?: IDocumentType;
12
+ organization?: IOrganization;
13
+ caseIndices?: IDocumentIndex[];
14
+ indicesData?: IDocumentIndex[];
15
+ latestStatus?: {
16
+ uuid: string;
17
+ name: string;
18
+ order: number;
19
+ };
20
+ createdAt?: string;
21
+ evidenceNumber?: string;
22
+ assigned?: IEmployee;
23
+ notSeenShipments?: boolean;
24
+ seen?: boolean;
25
+ }
26
+ export type CaseFetchOption = 'CASE_TYPE' | 'LATEST_STATUS' | 'INDEX_DATA' | 'ASSIGNED_EMPLOYEE' | 'ORGANIZATION' | 'THIRD_PARTY_ORGANIZATION';
27
+ export type CasesCountFetchOption = 'FACTORING' | 'FACTORING_REGULAR' | 'FACTORING_REVERSE';
28
+ export interface ICaseSearch {
29
+ nameLike?: string;
30
+ caseTypeUuid?: string;
31
+ latestStatusUuid?: boolean;
32
+ factoringCases?: boolean;
33
+ factoringType?: IFactoringType;
34
+ hasAtLeastOneDocumentWithSend?: boolean;
35
+ }
36
+ export interface ICaseTypeStatus {
37
+ uuid?: string;
38
+ name?: string;
39
+ order?: string;
40
+ caseType?: IDocumentType;
41
+ }
42
+ export interface ICaseStatus {
43
+ createdAt?: string;
44
+ caseStatus?: ICaseTypeStatus;
45
+ }
46
+ export interface ICaseTypeSearch {
47
+ group?: 'FACTORING';
48
+ }