@inceptionbg/main 1.0.21 → 1.0.23
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 +869 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISimpleObject, ISelectData, ISimpleObjectWithCode } from '@inceptionbg/iui';
|
|
2
2
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { FC, ReactNode, Dispatch, SetStateAction, ReactElement } from 'react';
|
|
@@ -79,6 +79,844 @@ interface IUserPreferences {
|
|
|
79
79
|
}
|
|
80
80
|
type IGuideType = 'invoice';
|
|
81
81
|
|
|
82
|
+
interface IFileSignatory {
|
|
83
|
+
uuid?: string;
|
|
84
|
+
firstName?: string;
|
|
85
|
+
lastName?: string;
|
|
86
|
+
email?: string;
|
|
87
|
+
phoneNumber?: string;
|
|
88
|
+
personalIdentityNumber?: string;
|
|
89
|
+
signatureAppearance?: {
|
|
90
|
+
pageNumber?: string;
|
|
91
|
+
x?: string;
|
|
92
|
+
y?: string;
|
|
93
|
+
width?: string | number;
|
|
94
|
+
height?: string | number;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface IDocumentFile {
|
|
99
|
+
uuid?: string;
|
|
100
|
+
name?: string;
|
|
101
|
+
signedFile?: IFile;
|
|
102
|
+
storedFile?: IFile;
|
|
103
|
+
createdBy?: IUser;
|
|
104
|
+
deleted?: boolean;
|
|
105
|
+
downloaded?: boolean;
|
|
106
|
+
previousVersion?: ISimpleObject;
|
|
107
|
+
externalSource?: boolean;
|
|
108
|
+
orderNumber?: string | number;
|
|
109
|
+
requiredSignature?: boolean;
|
|
110
|
+
confidentialDocument?: boolean;
|
|
111
|
+
signatories?: IFileSignatory[];
|
|
112
|
+
fileType?: IFileType;
|
|
113
|
+
locked?: boolean;
|
|
114
|
+
}
|
|
115
|
+
interface IFile {
|
|
116
|
+
uuid?: string;
|
|
117
|
+
originalFileName?: string;
|
|
118
|
+
downloadUrl?: string;
|
|
119
|
+
lengthInBytes?: number;
|
|
120
|
+
uploadedAt?: string;
|
|
121
|
+
fileUuid?: string;
|
|
122
|
+
storage?: {
|
|
123
|
+
url?: string;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
interface IFileType {
|
|
127
|
+
uuid?: string;
|
|
128
|
+
name?: string;
|
|
129
|
+
organization?: IOrganization;
|
|
130
|
+
requireSignature?: boolean;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
interface IIndexDataCodebook {
|
|
134
|
+
uuid: string;
|
|
135
|
+
name: string;
|
|
136
|
+
description: string;
|
|
137
|
+
active?: boolean;
|
|
138
|
+
organization?: {
|
|
139
|
+
uuid: string;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
interface IIndexDataCodebookItem {
|
|
143
|
+
code: string;
|
|
144
|
+
name: string;
|
|
145
|
+
uuid: string;
|
|
146
|
+
active: boolean;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
interface IIndexData {
|
|
150
|
+
uuid?: string;
|
|
151
|
+
name?: string;
|
|
152
|
+
fieldType?: IndexDataFieldType;
|
|
153
|
+
fieldTypeObj?: ISelectData;
|
|
154
|
+
codebook?: Partial<IIndexDataCodebook>;
|
|
155
|
+
codebookObj?: ISelectData;
|
|
156
|
+
documentType?: IDocumentType;
|
|
157
|
+
deletionTime?: string;
|
|
158
|
+
required?: boolean;
|
|
159
|
+
readonly?: boolean;
|
|
160
|
+
organization?: IOrganization;
|
|
161
|
+
minLength?: number;
|
|
162
|
+
maxLength?: number;
|
|
163
|
+
indexOrder?: number;
|
|
164
|
+
code?: string;
|
|
165
|
+
}
|
|
166
|
+
interface IIndex {
|
|
167
|
+
uuid?: string;
|
|
168
|
+
value?: string;
|
|
169
|
+
name?: string;
|
|
170
|
+
position?: IIndexDataPosition;
|
|
171
|
+
indexData?: IIndexData;
|
|
172
|
+
indexOrder?: string;
|
|
173
|
+
defaultCodebookItem?: Partial<IIndexDataCodebookItem>;
|
|
174
|
+
}
|
|
175
|
+
declare const IndexDataFieldTypes: readonly ["TEXT", "DATE", "CODEBOOK", "NUMERIC", "DECIMAL", "LONG_TEXT"];
|
|
176
|
+
type IndexDataFieldType = (typeof IndexDataFieldTypes)[number];
|
|
177
|
+
declare const IndexDataPositions: readonly ["COST_CENTER", "CONTRACT", "CASE", "DOCUMENT", "LEGAL_ENTITY"];
|
|
178
|
+
type IIndexDataPosition = (typeof IndexDataPositions)[number];
|
|
179
|
+
interface IIndicesIndex {
|
|
180
|
+
uuid?: string;
|
|
181
|
+
indexDataPosition?: IIndex;
|
|
182
|
+
value?: string;
|
|
183
|
+
codebookItem?: {
|
|
184
|
+
uuid: string;
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
interface IJob {
|
|
189
|
+
uuid?: string;
|
|
190
|
+
name?: string;
|
|
191
|
+
code?: string;
|
|
192
|
+
organization?: IOrganization;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
interface IEmployee {
|
|
196
|
+
uuid: string;
|
|
197
|
+
firstName?: string;
|
|
198
|
+
lastName?: string;
|
|
199
|
+
personalIdentityNumber?: string;
|
|
200
|
+
evidenceNumber?: string;
|
|
201
|
+
email?: string;
|
|
202
|
+
user?: IUser;
|
|
203
|
+
emailNotifications?: boolean;
|
|
204
|
+
deleted?: boolean;
|
|
205
|
+
job?: IJob;
|
|
206
|
+
orun?: IOrganizationalUnit;
|
|
207
|
+
representation?: string;
|
|
208
|
+
costCenter?: ISimpleObjectWithCode;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
interface IApproval {
|
|
212
|
+
uuid?: string;
|
|
213
|
+
name?: string;
|
|
214
|
+
description?: string;
|
|
215
|
+
active?: boolean;
|
|
216
|
+
returnResponseToSef?: boolean;
|
|
217
|
+
orun?: IOrganizationalUnitUpdate;
|
|
218
|
+
organization?: IOrganization;
|
|
219
|
+
automaticallyStart?: IApproval;
|
|
220
|
+
automaticallyStartApprovals?: IApproval[];
|
|
221
|
+
automaticallyStartApprovalsData?: ISelectData[];
|
|
222
|
+
generateDocumentApprovalReport?: boolean;
|
|
223
|
+
startApprovalByConditionsOnApprovalEnd?: boolean;
|
|
224
|
+
issueDateChange?: boolean;
|
|
225
|
+
}
|
|
226
|
+
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"];
|
|
227
|
+
type IConstraint = (typeof Constraints)[number];
|
|
228
|
+
interface IApprovalStep {
|
|
229
|
+
uuid: string;
|
|
230
|
+
name?: string;
|
|
231
|
+
description?: string;
|
|
232
|
+
deadline?: number;
|
|
233
|
+
requiredVotes?: number;
|
|
234
|
+
ordinalNumber?: number;
|
|
235
|
+
approval?: IApproval;
|
|
236
|
+
employees?: IEmployee[];
|
|
237
|
+
step?: IApprovalStep;
|
|
238
|
+
conditionedStep?: IApprovalStep;
|
|
239
|
+
job?: IJob;
|
|
240
|
+
activationTime?: string;
|
|
241
|
+
documentHold?: boolean;
|
|
242
|
+
costCenter?: ISimpleObjectWithCode;
|
|
243
|
+
group?: IPhaseGroup;
|
|
244
|
+
lastStep?: boolean;
|
|
245
|
+
constraints?: IConstraint[];
|
|
246
|
+
indexDataConstraints?: IIndexData[];
|
|
247
|
+
}
|
|
248
|
+
interface ILatestApprovalProcess {
|
|
249
|
+
uuid?: string;
|
|
250
|
+
createdAt?: string;
|
|
251
|
+
status?: string;
|
|
252
|
+
latestStep?: IDocumentApprovalStep;
|
|
253
|
+
}
|
|
254
|
+
type ApprovalStatus = 'APPROVED' | 'DECLINED';
|
|
255
|
+
interface IDocumentApproval {
|
|
256
|
+
uuid?: string;
|
|
257
|
+
document?: IDocumentAny;
|
|
258
|
+
approval?: IApproval;
|
|
259
|
+
steps?: IDocumentApprovalStep[];
|
|
260
|
+
status?: ApprovalStatus;
|
|
261
|
+
directlyProcessCompletionUser?: IUser;
|
|
262
|
+
}
|
|
263
|
+
interface IDocumentApprovalStep {
|
|
264
|
+
uuid?: string;
|
|
265
|
+
activationTime?: string;
|
|
266
|
+
deadline?: string;
|
|
267
|
+
requiredVotes?: number;
|
|
268
|
+
positiveVotes?: number;
|
|
269
|
+
stepStatus?: ApprovalStatus;
|
|
270
|
+
step?: IApprovalStep;
|
|
271
|
+
votes?: IDocumentApprovalVote[];
|
|
272
|
+
documentApproval?: IDocumentApproval;
|
|
273
|
+
notReadyToVoteReason?: 'COST_EXPENSE_ALLOCATION' | 'INVOICE_TAX_ALLOCATION' | 'INVOICE_ACCOUNT' | 'INDEX_DATA';
|
|
274
|
+
customName?: string;
|
|
275
|
+
additionalAddingTime?: string;
|
|
276
|
+
}
|
|
277
|
+
interface IDocumentApprovalVote {
|
|
278
|
+
uuid: string;
|
|
279
|
+
document: IDocumentAny;
|
|
280
|
+
step: IDocumentApprovalStep;
|
|
281
|
+
employee: IEmployee;
|
|
282
|
+
vote?: ApprovalStatus;
|
|
283
|
+
voteTime?: string;
|
|
284
|
+
votedFiles?: ISimpleObject[];
|
|
285
|
+
note?: string;
|
|
286
|
+
returnedStep?: boolean;
|
|
287
|
+
adHocVote?: boolean;
|
|
288
|
+
}
|
|
289
|
+
interface IPhaseGroup {
|
|
290
|
+
uuid?: string;
|
|
291
|
+
name?: string;
|
|
292
|
+
organization?: IOrganization;
|
|
293
|
+
items?: {
|
|
294
|
+
invoices: IInvoice[];
|
|
295
|
+
isOpen: boolean;
|
|
296
|
+
};
|
|
297
|
+
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';
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
interface IShipment extends IDocument {
|
|
301
|
+
conversationView?: {
|
|
302
|
+
uuid: string;
|
|
303
|
+
};
|
|
304
|
+
receiver?: IPartner;
|
|
305
|
+
issuer?: IPartner;
|
|
306
|
+
receiverOrganization?: {
|
|
307
|
+
uuid: string;
|
|
308
|
+
};
|
|
309
|
+
shipmentUnregisteredReceiver?: {
|
|
310
|
+
firstName?: string;
|
|
311
|
+
lastName?: string;
|
|
312
|
+
email: string;
|
|
313
|
+
inboxUrl?: string;
|
|
314
|
+
personalIdentityNumber?: string;
|
|
315
|
+
phoneNumber?: string;
|
|
316
|
+
};
|
|
317
|
+
messageSubject?: string;
|
|
318
|
+
messageBody?: string;
|
|
319
|
+
generateManualShipmentFiles?: boolean;
|
|
320
|
+
internalReceiver?: IEmployee;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
interface IDocumentSend {
|
|
324
|
+
uuid?: string;
|
|
325
|
+
contactPerson?: IContactPerson;
|
|
326
|
+
createdAt?: string;
|
|
327
|
+
body?: string;
|
|
328
|
+
latestStatus?: ISendStatus;
|
|
329
|
+
requireConsent?: boolean;
|
|
330
|
+
consentDeadlineTime?: string;
|
|
331
|
+
requireDeliveryReceipt?: boolean;
|
|
332
|
+
requireFileSignature?: boolean;
|
|
333
|
+
requireDownloadBeforeConsent?: boolean;
|
|
334
|
+
qualifiedDelivery?: boolean;
|
|
335
|
+
accessHash?: string;
|
|
336
|
+
receiverName?: string;
|
|
337
|
+
email?: string;
|
|
338
|
+
document?: IShipment;
|
|
339
|
+
createdBy?: IUser;
|
|
340
|
+
organization?: IOrganization;
|
|
341
|
+
files?: IDocumentFile[];
|
|
342
|
+
description?: string;
|
|
343
|
+
sendFinal?: boolean;
|
|
344
|
+
relatedDocuments?: IDocumentAny[];
|
|
345
|
+
totalPrice?: number;
|
|
346
|
+
discount?: number;
|
|
347
|
+
deletionTime?: string;
|
|
348
|
+
sefComment?: string;
|
|
349
|
+
inBehalfOf?: {
|
|
350
|
+
email: string;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
declare const SendStatuses: readonly ["QUEUED", "SENDING", "NOT_REGISTERED_ON_SEF", "ERROR", "SENT", "SEEN", "DOWNLOADED", "APPROVED", "REJECTED", "UNRESOLVED", "MISTAKE", "CANCELLED", "STORNO", "RENOTIFIED"];
|
|
354
|
+
type ISendStatus = (typeof SendStatuses)[number];
|
|
355
|
+
|
|
356
|
+
interface IProduct {
|
|
357
|
+
uuid: string;
|
|
358
|
+
code?: string;
|
|
359
|
+
name?: string;
|
|
360
|
+
priceWithoutVat?: number | string;
|
|
361
|
+
vatPercentage?: number;
|
|
362
|
+
serialNumber?: string;
|
|
363
|
+
manufacturer?: string;
|
|
364
|
+
taxCategory?: string;
|
|
365
|
+
barcode?: string;
|
|
366
|
+
taxExemptionNote?: ITaxExemptionNote;
|
|
367
|
+
unitOfMeasure?: ISimpleObject;
|
|
368
|
+
bankingService?: boolean;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
interface IVatIndicator {
|
|
372
|
+
uuid: string;
|
|
373
|
+
code: string;
|
|
374
|
+
name: string;
|
|
375
|
+
vatPercentage: number;
|
|
376
|
+
calculateVatAmount?: boolean;
|
|
377
|
+
internalVatCalculation?: boolean;
|
|
378
|
+
organization?: IOrganization;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
interface ITaxAllocation {
|
|
382
|
+
uuid: string;
|
|
383
|
+
vatIndicator: IVatIndicator;
|
|
384
|
+
lowerVatTaxBase?: number;
|
|
385
|
+
higherVatTaxBase?: number;
|
|
386
|
+
lowerVatTaxAmount?: number;
|
|
387
|
+
higherVatTaxAmount?: number;
|
|
388
|
+
totalAmountWithoutVat?: number;
|
|
389
|
+
totalVatAmount?: number;
|
|
390
|
+
totalAmountWithVat?: number;
|
|
391
|
+
taxExcemptionAmount?: number;
|
|
392
|
+
nonVatPayerAmount?: number;
|
|
393
|
+
participateInPdfReport?: boolean;
|
|
394
|
+
orderNumber?: string;
|
|
395
|
+
}
|
|
396
|
+
interface ITaxRecapitulation {
|
|
397
|
+
priceWithoutVat: number;
|
|
398
|
+
priceWithVat: number;
|
|
399
|
+
vatAmount: number;
|
|
400
|
+
vatPercentage: number;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
interface IAccount {
|
|
404
|
+
uuid?: string;
|
|
405
|
+
name?: string;
|
|
406
|
+
code?: string;
|
|
407
|
+
deleted?: boolean;
|
|
408
|
+
organization?: IOrganization;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
interface IPayment {
|
|
412
|
+
uuid?: string;
|
|
413
|
+
amountWithoutVat?: number | string;
|
|
414
|
+
description?: string;
|
|
415
|
+
invoice?: IDocument;
|
|
416
|
+
paymentAmount?: number | string;
|
|
417
|
+
paymentDate?: string;
|
|
418
|
+
vatAmount?: number | string;
|
|
419
|
+
vatPercentage?: number | string;
|
|
420
|
+
organization?: IOrganization;
|
|
421
|
+
orderNumber?: string;
|
|
422
|
+
account?: IAccount;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
interface IContractNew {
|
|
426
|
+
uuid?: string;
|
|
427
|
+
contractor?: IPartner;
|
|
428
|
+
contractors?: IPartner[];
|
|
429
|
+
partnerContractNumber?: string;
|
|
430
|
+
type?: ContractType;
|
|
431
|
+
contractNumber?: string;
|
|
432
|
+
conclusionDate?: string;
|
|
433
|
+
expirationDate?: string;
|
|
434
|
+
periodFrom?: string;
|
|
435
|
+
periodTo?: string;
|
|
436
|
+
subject?: string;
|
|
437
|
+
note?: string;
|
|
438
|
+
active?: boolean;
|
|
439
|
+
organization?: IOrganization;
|
|
440
|
+
manager?: IEmployee;
|
|
441
|
+
amountWithVat?: number;
|
|
442
|
+
amountWithoutVat?: number;
|
|
443
|
+
warningAmountWithVat?: number;
|
|
444
|
+
warningAmountWithoutVat?: number;
|
|
445
|
+
currency?: ICurrency;
|
|
446
|
+
exchangeRate?: number;
|
|
447
|
+
warningDate?: string;
|
|
448
|
+
deactivationDate?: string;
|
|
449
|
+
deactivationNote?: string;
|
|
450
|
+
utilization?: IContractUtilization;
|
|
451
|
+
paymentUtilization?: IContractUtilization;
|
|
452
|
+
frameworkAgreementUtilization?: IContractUtilization;
|
|
453
|
+
bestPaidBefore?: number;
|
|
454
|
+
deliveryTime?: number;
|
|
455
|
+
complaintDeadline?: number;
|
|
456
|
+
warrantyPeriod?: number;
|
|
457
|
+
discount?: number;
|
|
458
|
+
account?: IAccount;
|
|
459
|
+
organizationalUnit?: IOrganizationalUnitUpdate;
|
|
460
|
+
amountWarningPercentage?: number;
|
|
461
|
+
foreignAmountWithVat?: number;
|
|
462
|
+
foreignAmountWithoutVat?: number;
|
|
463
|
+
warningForeignAmountWithVat?: number;
|
|
464
|
+
warningForeignAmountWithoutVat?: number;
|
|
465
|
+
lastAnnex?: IAnnex;
|
|
466
|
+
annexes?: IAnnex[];
|
|
467
|
+
frameworkAgreement?: IContract;
|
|
468
|
+
group?: 'CONTRACT' | 'FRAMEWORK_AGREEMENT';
|
|
469
|
+
estimatedValueWithVat?: number;
|
|
470
|
+
estimatedValueWithoutVat?: number;
|
|
471
|
+
jointOffer?: boolean;
|
|
472
|
+
subContractor?: boolean;
|
|
473
|
+
procurementCaseType?: IProcurementCaseType;
|
|
474
|
+
publicProcurementLaw?: boolean;
|
|
475
|
+
publicProcurementLawObj?: ISimpleObject;
|
|
476
|
+
procurementLawReferenceNUmber?: string;
|
|
477
|
+
procurementLawReason?: string;
|
|
478
|
+
reservedAmountWithoutVat?: string;
|
|
479
|
+
reservedAmountWithVat?: string;
|
|
480
|
+
foreignExchange?: boolean;
|
|
481
|
+
procurementOrdinalNumber?: string;
|
|
482
|
+
providingServicesDeadline?: ServiceCostCenter;
|
|
483
|
+
providingServicesCostCenter?: ISimpleObjectWithCode;
|
|
484
|
+
commissionMembers?: IEmployee[];
|
|
485
|
+
contractType?: IContractType;
|
|
486
|
+
contractIndices?: IIndicesIndex[];
|
|
487
|
+
indicesData?: IIndicesIndex[];
|
|
488
|
+
}
|
|
489
|
+
interface IContract extends IContractNew {
|
|
490
|
+
uuid: string;
|
|
491
|
+
}
|
|
492
|
+
type ContractFieldOption = 'EXPIRATION_DATE' | 'SUBJECT' | 'BEST_PAID_BEFORE' | 'DELIVERY_TIME' | 'COMPLAINT_DEADLINE' | 'WARRANTY_PERIOD' | 'AMOUNT_WITH_VAT' | 'AMOUNT_WITHOUT_VAT' | 'DISCOUNT' | 'CONTRACTOR';
|
|
493
|
+
declare const ContractTypes: readonly ["INCOME", "OUTCOME"];
|
|
494
|
+
type ContractType = (typeof ContractTypes)[number];
|
|
495
|
+
interface IAnnex {
|
|
496
|
+
uuid?: string;
|
|
497
|
+
annexNumber: string;
|
|
498
|
+
changes: IAnnexChange[];
|
|
499
|
+
contract: IContract;
|
|
500
|
+
date: string;
|
|
501
|
+
partnerAnnexNumber: string;
|
|
502
|
+
}
|
|
503
|
+
interface IAnnexChange {
|
|
504
|
+
field?: ContractFieldOption;
|
|
505
|
+
newValue?: string | number;
|
|
506
|
+
oldValue?: string | number;
|
|
507
|
+
representation?: string;
|
|
508
|
+
}
|
|
509
|
+
interface IContractUtilization {
|
|
510
|
+
utilizationWithVat?: number;
|
|
511
|
+
utilizationWithoutVat?: number;
|
|
512
|
+
remainingAmountWithVat?: number;
|
|
513
|
+
remainingAmountWithoutVat?: number;
|
|
514
|
+
utilizationPercentage?: number;
|
|
515
|
+
}
|
|
516
|
+
interface IContractUtilization {
|
|
517
|
+
uuid: string;
|
|
518
|
+
contractNumber: string;
|
|
519
|
+
amountWithVat?: number;
|
|
520
|
+
amountWithoutVat?: number;
|
|
521
|
+
contractorName: string;
|
|
522
|
+
contractUtilizationThisYear: IContractUtilizationByYear;
|
|
523
|
+
contractUtilizationLastYear: IContractUtilizationByYear;
|
|
524
|
+
}
|
|
525
|
+
interface IContractUtilizationByYear {
|
|
526
|
+
utilizationWithVat?: number;
|
|
527
|
+
utilizationWithoutVat?: number;
|
|
528
|
+
year: number;
|
|
529
|
+
}
|
|
530
|
+
interface IProcurementCaseType {
|
|
531
|
+
uuid?: string;
|
|
532
|
+
name?: string;
|
|
533
|
+
organization?: IOrganization;
|
|
534
|
+
}
|
|
535
|
+
declare const ServiceCostCenters: readonly ["SUCCESSIVELY", "COMPLETELY"];
|
|
536
|
+
type ServiceCostCenter = (typeof ServiceCostCenters)[number];
|
|
537
|
+
interface IContractType {
|
|
538
|
+
uuid?: string;
|
|
539
|
+
name?: string;
|
|
540
|
+
organization?: IOrganization;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
interface ICase {
|
|
544
|
+
uuid: string;
|
|
545
|
+
number: string;
|
|
546
|
+
thirdPartyOrganization?: IOrganization;
|
|
547
|
+
deletable?: boolean;
|
|
548
|
+
name?: string;
|
|
549
|
+
caseType?: IDocumentType;
|
|
550
|
+
organization?: IOrganization;
|
|
551
|
+
caseIndices?: IDocumentIndex[];
|
|
552
|
+
indicesData?: IDocumentIndex[];
|
|
553
|
+
latestStatus?: {
|
|
554
|
+
uuid: string;
|
|
555
|
+
name: string;
|
|
556
|
+
order: number;
|
|
557
|
+
};
|
|
558
|
+
createdAt?: string;
|
|
559
|
+
evidenceNumber?: string;
|
|
560
|
+
assigned?: IEmployee;
|
|
561
|
+
notSeenShipments?: boolean;
|
|
562
|
+
seen?: boolean;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
interface IExpenseAllocation {
|
|
566
|
+
uuid: string;
|
|
567
|
+
document: {
|
|
568
|
+
uuid: string;
|
|
569
|
+
};
|
|
570
|
+
costCenter: {
|
|
571
|
+
uuid: string;
|
|
572
|
+
code: string;
|
|
573
|
+
name: string;
|
|
574
|
+
};
|
|
575
|
+
expenseAmount: string;
|
|
576
|
+
orderNumber?: string;
|
|
577
|
+
note?: string;
|
|
578
|
+
account?: IAccount;
|
|
579
|
+
costCenterExpenseAllocationIndexes?: ICostCenterExpenseAllocationIndex[];
|
|
580
|
+
}
|
|
581
|
+
interface ICostCenterExpenseAllocationIndex {
|
|
582
|
+
uuid?: string;
|
|
583
|
+
indexDataPosition?: IIndex;
|
|
584
|
+
value?: string;
|
|
585
|
+
codebookItem?: {
|
|
586
|
+
uuid: string;
|
|
587
|
+
code?: string;
|
|
588
|
+
name?: string;
|
|
589
|
+
active?: boolean;
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
interface IInvoice extends IDocument {
|
|
594
|
+
name?: string;
|
|
595
|
+
trafficDate?: string;
|
|
596
|
+
bestPaidBefore?: string;
|
|
597
|
+
plannedPaymentDate?: string;
|
|
598
|
+
orun?: IOrganizationalUnitUpdate;
|
|
599
|
+
description?: string;
|
|
600
|
+
issuer?: IPartner;
|
|
601
|
+
receiver?: IPartner;
|
|
602
|
+
contract?: IContract;
|
|
603
|
+
annex?: IAnnex;
|
|
604
|
+
contractNumberText?: string;
|
|
605
|
+
contractRepresentation?: string;
|
|
606
|
+
issueDate?: string;
|
|
607
|
+
copyItemsFrom?: IDocument;
|
|
608
|
+
totalPriceWithoutVat?: number;
|
|
609
|
+
totalPriceWithVat?: number;
|
|
610
|
+
roundingAmount?: number | string;
|
|
611
|
+
sefStatus?: ISendStatus;
|
|
612
|
+
sefStatusComment?: string;
|
|
613
|
+
advancePaymentSum?: {
|
|
614
|
+
totalPriceWithVat?: number;
|
|
615
|
+
totalPriceWithoutVat?: number;
|
|
616
|
+
latestSefSend?: IDocumentSend;
|
|
617
|
+
generateInvoicePdf?: boolean;
|
|
618
|
+
creditNoteInvoices?: ICreditNoteInvoice[];
|
|
619
|
+
periodFrom?: string;
|
|
620
|
+
periodTo?: string;
|
|
621
|
+
purchaseOrderReference?: string;
|
|
622
|
+
frameworkAgreementNumber?: string;
|
|
623
|
+
objectCode?: string;
|
|
624
|
+
internalRoutingNumber?: string;
|
|
625
|
+
tenderReference?: string;
|
|
626
|
+
contractNumberSef?: string;
|
|
627
|
+
invoiceTaxCategories?: IInvoiceTaxCategory[];
|
|
628
|
+
referenceCreditNumber?: string;
|
|
629
|
+
referenceDebitNumber?: string;
|
|
630
|
+
taxLiabilityDate?: TaxLiabilityDate;
|
|
631
|
+
issuerBankAccount?: Partial<IBankAccount>;
|
|
632
|
+
receiverBankAccount?: Partial<IBankAccount>;
|
|
633
|
+
purposePayment?: string;
|
|
634
|
+
sourceOfFinance?: Partial<ISimpleObjectWithCode>;
|
|
635
|
+
paymentCode?: Partial<ISimpleObjectWithCode>;
|
|
636
|
+
approvalStepGroup?: {
|
|
637
|
+
name: string;
|
|
638
|
+
uuid: string;
|
|
639
|
+
};
|
|
640
|
+
sefApprovalUser?: IUser;
|
|
641
|
+
sefApprovalTime?: string;
|
|
642
|
+
payments?: IPayment[];
|
|
643
|
+
frameworkAgreement?: IContract;
|
|
644
|
+
sendToCir?: ISendToCir;
|
|
645
|
+
sefStatusChangeTime?: string;
|
|
646
|
+
usedInFactoring?: boolean;
|
|
647
|
+
numberNonSTaxCategories?: number;
|
|
648
|
+
currency?: ICurrency;
|
|
649
|
+
exchangeRate?: string;
|
|
650
|
+
costCenterExpenseAllocations?: IExpenseAllocation[];
|
|
651
|
+
taxAllocations?: ITaxAllocation[];
|
|
652
|
+
taxRecapitulationItems?: ITaxRecapitulation[];
|
|
653
|
+
items?: IInvoiceItem[];
|
|
654
|
+
contractDate?: string;
|
|
655
|
+
sefVerificationDeadlineTime?: string;
|
|
656
|
+
sefVerificationDeadlineTimeExpired?: boolean;
|
|
657
|
+
};
|
|
658
|
+
foreignCurrency?: boolean;
|
|
659
|
+
forceNoteSefSend?: boolean;
|
|
660
|
+
evidenceDate?: string;
|
|
661
|
+
registerOrdinalNumber?: number;
|
|
662
|
+
documentIndices?: IDocumentIndex[];
|
|
663
|
+
latestApprovalProcess?: ILatestApprovalProcess;
|
|
664
|
+
latestApprovalStatus?: LatestApprovalStatus;
|
|
665
|
+
latestSend?: IDocumentSend;
|
|
666
|
+
hold?: {
|
|
667
|
+
user: IUser;
|
|
668
|
+
startTime: string;
|
|
669
|
+
endTime?: string;
|
|
670
|
+
};
|
|
671
|
+
evidenceNumber?: string;
|
|
672
|
+
documentWatch?: boolean;
|
|
673
|
+
cases?: ICase[];
|
|
674
|
+
}
|
|
675
|
+
declare const TaxCategoriesFull: readonly ["S", ...string[]];
|
|
676
|
+
type ITaxCategory = (typeof TaxCategoriesFull)[number];
|
|
677
|
+
interface IInvoiceItemNew {
|
|
678
|
+
uuid?: string;
|
|
679
|
+
name?: string;
|
|
680
|
+
unitOfMeasure?: ISimpleObject;
|
|
681
|
+
quantity?: number | string;
|
|
682
|
+
vatPercentage?: VatPercentage;
|
|
683
|
+
product?: IProduct;
|
|
684
|
+
orderNumber?: string | number;
|
|
685
|
+
taxCategory?: ITaxCategory;
|
|
686
|
+
allowancePercentage?: number | string;
|
|
687
|
+
allowanceAmount?: number | string;
|
|
688
|
+
unitPriceWithoutVat?: number | string;
|
|
689
|
+
totalPriceWithoutVat?: number;
|
|
690
|
+
totalPriceWithVat?: number | string;
|
|
691
|
+
allowanceAmountInCurrency?: number | string;
|
|
692
|
+
unitPriceWithoutVatInCurrency?: number | string;
|
|
693
|
+
totalPriceWithoutVatInCurrency?: number;
|
|
694
|
+
totalPriceWithVatInCurrency?: number | string;
|
|
695
|
+
}
|
|
696
|
+
interface IInvoiceItem extends IInvoiceItemNew {
|
|
697
|
+
uuid: string;
|
|
698
|
+
name: string;
|
|
699
|
+
unitOfMeasure?: ISimpleObject;
|
|
700
|
+
quantity: number;
|
|
701
|
+
unitPriceWithoutVat: number | string;
|
|
702
|
+
totalPriceWithoutVat: number;
|
|
703
|
+
totalPriceWithVat: number | string;
|
|
704
|
+
vatPercentage: VatPercentage;
|
|
705
|
+
product?: IProduct;
|
|
706
|
+
taxCategory: ITaxCategory;
|
|
707
|
+
allowancePercentage?: number | string;
|
|
708
|
+
allowanceAmount?: number | string;
|
|
709
|
+
}
|
|
710
|
+
declare const VatPercentages: readonly [20, 10, 8, 0];
|
|
711
|
+
type VatPercentage = (typeof VatPercentages)[number];
|
|
712
|
+
interface ITaxExemptionNote {
|
|
713
|
+
uuid?: string;
|
|
714
|
+
name?: string;
|
|
715
|
+
code?: string;
|
|
716
|
+
taxCategory?: string;
|
|
717
|
+
decisionNumberRequired?: boolean;
|
|
718
|
+
}
|
|
719
|
+
interface IInvoiceTaxCategoryNew {
|
|
720
|
+
uuid?: string;
|
|
721
|
+
taxCategory?: ITaxCategory;
|
|
722
|
+
taxExemptionNote?: ITaxExemptionNote;
|
|
723
|
+
decisionNumber?: string;
|
|
724
|
+
}
|
|
725
|
+
interface IInvoiceTaxCategory extends IInvoiceTaxCategoryNew {
|
|
726
|
+
uuid: string;
|
|
727
|
+
taxCategory: ITaxCategory;
|
|
728
|
+
}
|
|
729
|
+
declare const TaxLiabilityDates: readonly ["TRAFFIC_DATE", "PAYMENT_DATE", "ISSUE_DATE"];
|
|
730
|
+
type TaxLiabilityDate = (typeof TaxLiabilityDates)[number];
|
|
731
|
+
|
|
732
|
+
interface IEmailDocumentSaved {
|
|
733
|
+
uuid?: string;
|
|
734
|
+
document?: IDocument;
|
|
735
|
+
emailAccount?: IEmailCredential;
|
|
736
|
+
electronicReturnReceiptTime?: string;
|
|
737
|
+
documentFiles?: IDocumentFile[];
|
|
738
|
+
}
|
|
739
|
+
interface IEmailCredential {
|
|
740
|
+
uuid?: string;
|
|
741
|
+
username?: string;
|
|
742
|
+
password?: string;
|
|
743
|
+
imapHost?: string;
|
|
744
|
+
imapPort?: number;
|
|
745
|
+
organization?: IOrganization;
|
|
746
|
+
usersWithAccess?: IUser[];
|
|
747
|
+
createdBy?: IUser;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
interface IOfficeDocument extends IDocument {
|
|
751
|
+
documentSource?: IEmailDocumentSaved;
|
|
752
|
+
documentSourceType?: IDocumentSourceType;
|
|
753
|
+
emailDocument?: IEmailDocumentSaved;
|
|
754
|
+
caseNumber?: string;
|
|
755
|
+
canCreateSubOrdinalNumber?: boolean;
|
|
756
|
+
evidenceDate?: string;
|
|
757
|
+
registerOrdinalNumber?: number;
|
|
758
|
+
documentIndices?: IDocumentIndex[];
|
|
759
|
+
latestApprovalProcess?: ILatestApprovalProcess;
|
|
760
|
+
latestApprovalStatus?: LatestApprovalStatus;
|
|
761
|
+
latestSend?: IDocumentSend;
|
|
762
|
+
hold?: {
|
|
763
|
+
user: IUser;
|
|
764
|
+
startTime: string;
|
|
765
|
+
endTime?: string;
|
|
766
|
+
};
|
|
767
|
+
evidenceNumber?: string;
|
|
768
|
+
documentWatch?: boolean;
|
|
769
|
+
cases?: ICase[];
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
interface IDocument {
|
|
773
|
+
uuid: string;
|
|
774
|
+
documentNumber?: string;
|
|
775
|
+
documentType?: IDocumentType;
|
|
776
|
+
files?: IDocumentFile[];
|
|
777
|
+
date?: string;
|
|
778
|
+
note?: string;
|
|
779
|
+
createdAt?: string;
|
|
780
|
+
createdBy?: IUser;
|
|
781
|
+
concluded?: boolean;
|
|
782
|
+
organization?: {
|
|
783
|
+
uuid: string;
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
interface IDocumentAny extends Partial<IInvoice>, Partial<IShipment>, Partial<IOfficeDocument> {
|
|
787
|
+
}
|
|
788
|
+
type IDocumentCategory = 'DOCUMENT' | 'INVOICE' | 'ARCHIVE' | 'SHIPMENT';
|
|
789
|
+
interface IDocumentSearch {
|
|
790
|
+
accountsUuid?: string[];
|
|
791
|
+
approvalProcessEndTimeFrom?: string;
|
|
792
|
+
approvalProcessEndTimeTo?: string;
|
|
793
|
+
approvalStepGroupUuid?: string;
|
|
794
|
+
approvalUuid?: string;
|
|
795
|
+
approvalUuids?: string[];
|
|
796
|
+
archived?: boolean;
|
|
797
|
+
bestPaidBeforeFrom?: string;
|
|
798
|
+
bestPaidBeforeTo?: string;
|
|
799
|
+
category?: IDocumentCategory;
|
|
800
|
+
concluded?: boolean;
|
|
801
|
+
contractNumber?: string;
|
|
802
|
+
contractNumberSef?: string;
|
|
803
|
+
contractUuid?: string;
|
|
804
|
+
costCentersUuid?: string;
|
|
805
|
+
createdDateFrom?: string;
|
|
806
|
+
createdDateTo?: string;
|
|
807
|
+
currencyUuid?: string;
|
|
808
|
+
dateFrom?: string;
|
|
809
|
+
dateTo?: string;
|
|
810
|
+
documentApprovalStatus?: string;
|
|
811
|
+
documentNumber?: string;
|
|
812
|
+
documentNumberLike?: string;
|
|
813
|
+
documentSent?: boolean;
|
|
814
|
+
documentTypeUuid?: string;
|
|
815
|
+
documentTypesUuid?: string[];
|
|
816
|
+
documentYearMonth?: string;
|
|
817
|
+
domesticCurrency?: boolean;
|
|
818
|
+
evidenceDateFrom?: string;
|
|
819
|
+
evidenceDateTo?: string;
|
|
820
|
+
evidenceNumberLike?: string;
|
|
821
|
+
excludeDocumentUuid?: string;
|
|
822
|
+
excludeSefStatuses?: ISendStatus[];
|
|
823
|
+
factoring?: boolean;
|
|
824
|
+
foreignCurrency?: boolean;
|
|
825
|
+
income?: boolean;
|
|
826
|
+
internalReceiverNotBlank?: boolean;
|
|
827
|
+
internalRoutingNumberLike?: string;
|
|
828
|
+
invoice?: boolean;
|
|
829
|
+
issueDateFrom?: string;
|
|
830
|
+
issueDateTo?: string;
|
|
831
|
+
issuerOrReceiverUuid?: string;
|
|
832
|
+
issuerUuid?: string;
|
|
833
|
+
latestDocumentSendStatus?: ISendStatus;
|
|
834
|
+
latestDocumentSendStatuses?: ISendStatus[];
|
|
835
|
+
nameLike?: string;
|
|
836
|
+
onHold?: boolean;
|
|
837
|
+
onHoldByUserUuid?: string;
|
|
838
|
+
orunUuids?: string[];
|
|
839
|
+
paymentDateFrom?: string;
|
|
840
|
+
paymentDateTo?: string;
|
|
841
|
+
pioInternalCodeBookReportCustomFilter?: boolean;
|
|
842
|
+
plannedPaymentDateFrom?: string;
|
|
843
|
+
plannedPaymentDateTo?: string;
|
|
844
|
+
receiverUuid?: string;
|
|
845
|
+
registerUuid?: string;
|
|
846
|
+
sefDeadlineDaysFrom?: string;
|
|
847
|
+
sefDeadlineDaysTo?: string;
|
|
848
|
+
sefInvoice?: boolean;
|
|
849
|
+
sefInvoiceType?: ISefInvoiceType;
|
|
850
|
+
sefSendStatus?: ISendStatus;
|
|
851
|
+
sefStatus?: ISendStatus;
|
|
852
|
+
sefStatusCommentLike?: string;
|
|
853
|
+
sefStatuses?: ISendStatus[];
|
|
854
|
+
signal?: any;
|
|
855
|
+
sort?: string;
|
|
856
|
+
taxCategory?: ITaxCategory;
|
|
857
|
+
totalPriceWithVatInCurrency?: number;
|
|
858
|
+
trafficDateFrom?: string;
|
|
859
|
+
trafficDateTo?: string;
|
|
860
|
+
vatPercentage?: string;
|
|
861
|
+
year?: number;
|
|
862
|
+
documentTypesObj?: ISelectData[];
|
|
863
|
+
issuerObj?: ISelectData;
|
|
864
|
+
registerObj?: ISelectData;
|
|
865
|
+
receiverObj?: ISelectData;
|
|
866
|
+
approvalObj?: ISelectData;
|
|
867
|
+
accountsObj?: ISelectData[];
|
|
868
|
+
costCentersObj?: ISelectData[];
|
|
869
|
+
concludedObj?: ISelectData;
|
|
870
|
+
currencyObj?: ISelectData;
|
|
871
|
+
approvalStepGroupObj?: ISelectData;
|
|
872
|
+
}
|
|
873
|
+
declare const SefVatEvidenceTypes: readonly ["INVOICE", "CREDIT_NOTE", "DEBIT_NOTE", "PREPAYMENT_INVOICE", "INTERNAL_ACCOUNT_FOR_TURNOVER_OF_FOREIGNER", "OTHER_INTERNAL_STATEMENT"];
|
|
874
|
+
type SefVatEvidenceType = (typeof SefVatEvidenceTypes)[number];
|
|
875
|
+
interface IDocumentType {
|
|
876
|
+
uuid?: string;
|
|
877
|
+
name?: string;
|
|
878
|
+
printName?: string;
|
|
879
|
+
invoice?: boolean;
|
|
880
|
+
income?: boolean;
|
|
881
|
+
fields?: DocumentField[];
|
|
882
|
+
organization?: IOrganization;
|
|
883
|
+
participateInContractRealization?: boolean;
|
|
884
|
+
participateInContractPaymentRealization?: boolean;
|
|
885
|
+
sort?: number;
|
|
886
|
+
sefInvoiceType?: ISefInvoiceType;
|
|
887
|
+
shipment?: boolean;
|
|
888
|
+
category?: 'DOCUMENT' | 'CASE';
|
|
889
|
+
internalCode?: string;
|
|
890
|
+
caseNumberRequired?: boolean;
|
|
891
|
+
retentionPeriod?: string;
|
|
892
|
+
code?: string;
|
|
893
|
+
sefVatEvidenceType?: SefVatEvidenceType;
|
|
894
|
+
}
|
|
895
|
+
type ISefInvoiceType = 'COMMERCIAL_INVOICE' | 'CREDIT_NOTE' | 'DEBIT_NOTE' | 'PREPAYMENT_INVOICE';
|
|
896
|
+
declare const SendToCirValues: readonly ["YES", "NO"];
|
|
897
|
+
type ISendToCir = (typeof SendToCirValues)[number];
|
|
898
|
+
interface ICreditNoteInvoice {
|
|
899
|
+
uuid?: string;
|
|
900
|
+
creditNote?: IDocument;
|
|
901
|
+
invoice?: IDocument;
|
|
902
|
+
invoiceNumber?: string;
|
|
903
|
+
invoiceIssueDate?: string;
|
|
904
|
+
}
|
|
905
|
+
declare const LatestApprovalStatuses: readonly ["IN_PROGRESS", "DECLINED", "APPROVED", "NOT_STARTED"];
|
|
906
|
+
type LatestApprovalStatus = (typeof LatestApprovalStatuses)[number];
|
|
907
|
+
type IDocumentSourceType = 'EMAIL' | 'INTERNAL_SEND' | 'MANUAL_INPUT';
|
|
908
|
+
interface IDocumentIndex {
|
|
909
|
+
uuid?: string;
|
|
910
|
+
index?: IIndexData;
|
|
911
|
+
indexDataPosition?: IIndex;
|
|
912
|
+
value?: string;
|
|
913
|
+
codebookItem?: {
|
|
914
|
+
uuid: string;
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
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"];
|
|
918
|
+
type DocumentField = (typeof DocumentFields)[number];
|
|
919
|
+
|
|
82
920
|
interface IPartner {
|
|
83
921
|
uuid: string;
|
|
84
922
|
name: string;
|
|
@@ -99,8 +937,7 @@ interface IPartner {
|
|
|
99
937
|
email?: string;
|
|
100
938
|
website?: string;
|
|
101
939
|
phoneNumber?: string;
|
|
102
|
-
|
|
103
|
-
groups?: IGroup[];
|
|
940
|
+
groups?: IPartnerGroup[];
|
|
104
941
|
organization?: IOrganization;
|
|
105
942
|
updateMissingData?: boolean;
|
|
106
943
|
personalIdentificationNumber?: string;
|
|
@@ -115,6 +952,8 @@ interface IPartner {
|
|
|
115
952
|
checkAuthorizedPersonsOnApr?: boolean;
|
|
116
953
|
internalSend?: boolean;
|
|
117
954
|
sefSend?: boolean;
|
|
955
|
+
legalEntityIndices?: IDocumentIndex[];
|
|
956
|
+
legal_entityIndices?: IDocumentIndex[];
|
|
118
957
|
}
|
|
119
958
|
interface IPartnersSearch {
|
|
120
959
|
name?: string;
|
|
@@ -147,6 +986,11 @@ interface IBankAccountSearch {
|
|
|
147
986
|
accountNumberLike?: string;
|
|
148
987
|
main?: boolean;
|
|
149
988
|
}
|
|
989
|
+
interface ICurrency {
|
|
990
|
+
uuid: string;
|
|
991
|
+
code: string;
|
|
992
|
+
name: string;
|
|
993
|
+
}
|
|
150
994
|
interface INote {
|
|
151
995
|
uuid: string;
|
|
152
996
|
subject: string;
|
|
@@ -154,6 +998,9 @@ interface INote {
|
|
|
154
998
|
date?: string;
|
|
155
999
|
createdBy?: IUser;
|
|
156
1000
|
}
|
|
1001
|
+
interface INoteSearch {
|
|
1002
|
+
note?: string;
|
|
1003
|
+
}
|
|
157
1004
|
interface IContactPerson {
|
|
158
1005
|
uuid: string;
|
|
159
1006
|
representation: string;
|
|
@@ -173,11 +1020,13 @@ interface IContactPerson {
|
|
|
173
1020
|
phoneNumber?: string;
|
|
174
1021
|
factoringRepresentative?: boolean;
|
|
175
1022
|
}
|
|
176
|
-
interface
|
|
1023
|
+
interface IPartnerGroup {
|
|
177
1024
|
uuid: string;
|
|
178
1025
|
name: string;
|
|
179
1026
|
organization?: IOrganization;
|
|
180
1027
|
}
|
|
1028
|
+
type PartnerGroupType = 'BANK';
|
|
1029
|
+
type IPartnerType = 'legalEntity' | 'physicalPerson' | 'foreignPartner';
|
|
181
1030
|
|
|
182
1031
|
interface IOrganization {
|
|
183
1032
|
uuid: string;
|
|
@@ -199,7 +1048,6 @@ interface IOrganization {
|
|
|
199
1048
|
email?: string;
|
|
200
1049
|
website?: string;
|
|
201
1050
|
phoneNumber?: string;
|
|
202
|
-
group?: any;
|
|
203
1051
|
contactPerson?: IContactPerson;
|
|
204
1052
|
physicalPerson?: boolean;
|
|
205
1053
|
personalIdentificationNumber?: string;
|
|
@@ -271,18 +1119,32 @@ interface IResellerContract {
|
|
|
271
1119
|
pdfDownloadUrl?: string;
|
|
272
1120
|
freeTrail?: boolean;
|
|
273
1121
|
}
|
|
1122
|
+
interface IOrganizationalUnit {
|
|
1123
|
+
uuid: string;
|
|
1124
|
+
name: string;
|
|
1125
|
+
code: string;
|
|
1126
|
+
type: IOrganizationalUnitType;
|
|
1127
|
+
parent?: string;
|
|
1128
|
+
primaryForInvoiceReceive?: boolean;
|
|
1129
|
+
}
|
|
274
1130
|
interface IOrganizationalUnitUpdate {
|
|
275
1131
|
uuid?: string;
|
|
276
1132
|
name?: string;
|
|
277
1133
|
code?: string;
|
|
278
1134
|
jbkjs?: string;
|
|
279
|
-
type?:
|
|
1135
|
+
type?: IOrganizationalUnitType;
|
|
280
1136
|
organization?: {
|
|
281
1137
|
uuid: string;
|
|
282
1138
|
};
|
|
283
1139
|
parent?: {
|
|
284
1140
|
uuid: string;
|
|
285
1141
|
};
|
|
1142
|
+
primaryForInvoiceReceive?: boolean;
|
|
1143
|
+
}
|
|
1144
|
+
interface IOrganizationalUnitType {
|
|
1145
|
+
uuid: string;
|
|
1146
|
+
name: string;
|
|
1147
|
+
internalCode: 'SECTOR';
|
|
286
1148
|
}
|
|
287
1149
|
|
|
288
1150
|
interface IUserPrivileges {
|
|
@@ -523,4 +1385,4 @@ interface Props {
|
|
|
523
1385
|
}
|
|
524
1386
|
declare const Sidebar: FC<Props>;
|
|
525
1387
|
|
|
526
|
-
export { AxiosTokenHandler, ErrorContext, Header, IBankAccount, IBankAccountSearch, IContactPerson, ICountry, IMunicipality, INote, IOrganization, IOrganizationFetchOption, IOrganizationPrivileges, IOrganizationSearch, IPartner, IPartnersSearch, IPlace, ISidebarItem, IToken, IUser, IUserPreferences, IUserPrivileges, LoginPage, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, SelectOrgPage, Sidebar, UserFetchOption, UserOrgContext, UserOrgProvider };
|
|
1388
|
+
export { AxiosTokenHandler, ErrorContext, Header, IBankAccount, IBankAccountSearch, IBusinessActivity, IContactPerson, ICountry, ICurrency, IDocument, IDocumentAny, IDocumentSearch, IInvoice, IInvoiceItem, IMunicipality, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationPrivileges, IOrganizationSearch, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPlace, ISidebarItem, IToken, IUser, IUserPreferences, IUserPrivileges, LoginPage, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, PartnerGroupType, SelectOrgPage, Sidebar, UserFetchOption, UserOrgContext, UserOrgProvider };
|