@inceptionbg/main 1.0.22 → 1.0.24
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 +118 -59
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -112,6 +112,23 @@ interface IDocumentFile {
|
|
|
112
112
|
fileType?: IFileType;
|
|
113
113
|
locked?: boolean;
|
|
114
114
|
}
|
|
115
|
+
type DocumentFileFetchOptions = 'PREVIOUS_VERSION' | 'FILE_TYPE';
|
|
116
|
+
interface IDocumentFileParams {
|
|
117
|
+
onlyAttachedFiles?: boolean;
|
|
118
|
+
documentSendUuid?: string;
|
|
119
|
+
includeDeleted?: boolean;
|
|
120
|
+
baseDocumentFileUuid?: string;
|
|
121
|
+
documentFileType?: 'SCAN';
|
|
122
|
+
}
|
|
123
|
+
interface IUploadDocumentType {
|
|
124
|
+
file?: any;
|
|
125
|
+
name?: string;
|
|
126
|
+
}
|
|
127
|
+
interface IFileSignData {
|
|
128
|
+
redirectUrl?: string;
|
|
129
|
+
notificationEmailAddress?: string;
|
|
130
|
+
notificationPhoneNumber?: string;
|
|
131
|
+
}
|
|
115
132
|
interface IFile {
|
|
116
133
|
uuid?: string;
|
|
117
134
|
originalFileName?: string;
|
|
@@ -123,6 +140,14 @@ interface IFile {
|
|
|
123
140
|
url?: string;
|
|
124
141
|
};
|
|
125
142
|
}
|
|
143
|
+
interface IFileUpload {
|
|
144
|
+
contentType: string;
|
|
145
|
+
digest: string;
|
|
146
|
+
digestAlgorithm: string;
|
|
147
|
+
lengthInBytes: number;
|
|
148
|
+
uuid: string;
|
|
149
|
+
originalFileName: string;
|
|
150
|
+
}
|
|
126
151
|
interface IFileType {
|
|
127
152
|
uuid?: string;
|
|
128
153
|
name?: string;
|
|
@@ -350,6 +375,29 @@ interface IDocumentSend {
|
|
|
350
375
|
email: string;
|
|
351
376
|
};
|
|
352
377
|
}
|
|
378
|
+
type DocumentSendFetchOption = 'CREATED_BY' | 'DOCUMENT' | 'DOCUMENT_WITH_ISSUER_RECEIVER' | 'ORGANIZATION' | 'FILES_WITH_URLS' | 'SIGNATORIES' | 'DESCRIPTION' | 'RELATED_DOCUMENTS' | 'CONVERSATION_VIEW' | 'RECEIVER_ORGANIZATION' | 'IN_BEHALF_OF';
|
|
379
|
+
interface IDocumentSendSearch {
|
|
380
|
+
documentUuid?: string;
|
|
381
|
+
receiverOrganizationUuid?: string;
|
|
382
|
+
organizationUuid?: string;
|
|
383
|
+
receiverUserUuid?: string;
|
|
384
|
+
status?: ISendStatus;
|
|
385
|
+
excludeStatuses?: ISendStatus[];
|
|
386
|
+
createdFrom?: string;
|
|
387
|
+
createdTo?: string;
|
|
388
|
+
documentNumberLike?: string;
|
|
389
|
+
documentDateFrom?: string;
|
|
390
|
+
documentDateTo?: string;
|
|
391
|
+
documentIssuerFullTextSearch?: string;
|
|
392
|
+
documentTotalPriceWithVatFrom?: number;
|
|
393
|
+
documentTotalPriceWithVatTo?: number;
|
|
394
|
+
documentBestPaidBeforeFrom?: string;
|
|
395
|
+
documentBestPaidBeforeTo?: string;
|
|
396
|
+
firstLevel?: boolean;
|
|
397
|
+
sort?: string;
|
|
398
|
+
conversationViewUuid?: string;
|
|
399
|
+
caseUuid?: string;
|
|
400
|
+
}
|
|
353
401
|
declare const SendStatuses: readonly ["QUEUED", "SENDING", "NOT_REGISTERED_ON_SEF", "ERROR", "SENT", "SEEN", "DOWNLOADED", "APPROVED", "REJECTED", "UNRESOLVED", "MISTAKE", "CANCELLED", "STORNO", "RENOTIFIED"];
|
|
354
402
|
type ISendStatus = (typeof SendStatuses)[number];
|
|
355
403
|
|
|
@@ -786,83 +834,90 @@ interface IDocument {
|
|
|
786
834
|
interface IDocumentAny extends Partial<IInvoice>, Partial<IShipment>, Partial<IOfficeDocument> {
|
|
787
835
|
}
|
|
788
836
|
type IDocumentCategory = 'DOCUMENT' | 'INVOICE' | 'ARCHIVE' | 'SHIPMENT';
|
|
837
|
+
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';
|
|
789
838
|
interface IDocumentSearch {
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
839
|
+
accountsUuid?: string[];
|
|
840
|
+
approvalProcessEndTimeFrom?: string;
|
|
841
|
+
approvalProcessEndTimeTo?: string;
|
|
842
|
+
approvalStepGroupUuid?: string;
|
|
843
|
+
approvalUuid?: string;
|
|
844
|
+
approvalUuids?: string[];
|
|
845
|
+
archived?: boolean;
|
|
797
846
|
bestPaidBeforeFrom?: string;
|
|
798
847
|
bestPaidBeforeTo?: string;
|
|
799
|
-
|
|
800
|
-
|
|
848
|
+
category?: IDocumentCategory;
|
|
849
|
+
concluded?: boolean;
|
|
850
|
+
contractNumber?: string;
|
|
851
|
+
contractNumberSef?: string;
|
|
852
|
+
contractUuid?: string;
|
|
853
|
+
costCentersUuid?: string;
|
|
854
|
+
createdDateFrom?: string;
|
|
855
|
+
createdDateTo?: string;
|
|
856
|
+
currencyUuid?: string;
|
|
857
|
+
dateFrom?: string;
|
|
858
|
+
dateTo?: string;
|
|
859
|
+
documentApprovalStatus?: string;
|
|
860
|
+
documentNumber?: string;
|
|
861
|
+
documentNumberLike?: string;
|
|
862
|
+
documentSent?: boolean;
|
|
863
|
+
documentTypeUuid?: string;
|
|
864
|
+
documentTypesUuid?: string[];
|
|
865
|
+
documentYearMonth?: string;
|
|
866
|
+
domesticCurrency?: boolean;
|
|
801
867
|
evidenceDateFrom?: string;
|
|
802
868
|
evidenceDateTo?: string;
|
|
803
|
-
|
|
804
|
-
|
|
869
|
+
evidenceNumberLike?: string;
|
|
870
|
+
excludeDocumentUuid?: string;
|
|
871
|
+
excludeSefStatuses?: ISendStatus[];
|
|
872
|
+
factoring?: boolean;
|
|
873
|
+
foreignCurrency?: boolean;
|
|
874
|
+
income?: boolean;
|
|
875
|
+
internalReceiverNotBlank?: boolean;
|
|
876
|
+
internalRoutingNumberLike?: string;
|
|
877
|
+
invoice?: boolean;
|
|
805
878
|
issueDateFrom?: string;
|
|
806
879
|
issueDateTo?: string;
|
|
807
|
-
nameLike?: string;
|
|
808
|
-
issuerUuid?: string;
|
|
809
|
-
receiverUuid?: string;
|
|
810
880
|
issuerOrReceiverUuid?: string;
|
|
811
|
-
|
|
812
|
-
documentNumberLike?: string;
|
|
813
|
-
excludeDocumentUuid?: string;
|
|
814
|
-
invoice?: boolean;
|
|
815
|
-
income?: boolean;
|
|
816
|
-
archived?: boolean;
|
|
817
|
-
documentApprovalStatus?: string;
|
|
818
|
-
sefSendStatus?: ISendStatus;
|
|
819
|
-
receiver?: ISimpleObject;
|
|
820
|
-
issuer?: ISimpleObject;
|
|
821
|
-
documentType?: ISimpleObject;
|
|
822
|
-
sort?: string;
|
|
823
|
-
plannedPaymentDateTo?: string;
|
|
824
|
-
plannedPaymentDateFrom?: string;
|
|
881
|
+
issuerUuid?: string;
|
|
825
882
|
latestDocumentSendStatus?: ISendStatus;
|
|
826
|
-
|
|
883
|
+
latestDocumentSendStatuses?: ISendStatus[];
|
|
884
|
+
nameLike?: string;
|
|
827
885
|
onHold?: boolean;
|
|
828
886
|
onHoldByUserUuid?: string;
|
|
887
|
+
orunUuids?: string[];
|
|
888
|
+
paymentDateFrom?: string;
|
|
889
|
+
paymentDateTo?: string;
|
|
890
|
+
pioInternalCodeBookReportCustomFilter?: boolean;
|
|
891
|
+
plannedPaymentDateFrom?: string;
|
|
892
|
+
plannedPaymentDateTo?: string;
|
|
893
|
+
receiverUuid?: string;
|
|
894
|
+
registerUuid?: string;
|
|
829
895
|
sefDeadlineDaysFrom?: string;
|
|
830
896
|
sefDeadlineDaysTo?: string;
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
orunUuids?: string[];
|
|
835
|
-
oruns?: IOrganizationalUnit[];
|
|
836
|
-
approvals?: ISimpleObject[];
|
|
837
|
-
approvalUuids?: string[];
|
|
838
|
-
internalReceiverNotBlank?: boolean;
|
|
839
|
-
approvalStepGroupUuid?: string;
|
|
840
|
-
contractNumber?: string;
|
|
841
|
-
contractNumberSef?: string;
|
|
842
|
-
costCenters?: ISimpleObjectWithCode;
|
|
843
|
-
costCentersUuid?: string;
|
|
897
|
+
sefInvoice?: boolean;
|
|
898
|
+
sefInvoiceType?: ISefInvoiceType;
|
|
899
|
+
sefSendStatus?: ISendStatus;
|
|
844
900
|
sefStatus?: ISendStatus;
|
|
845
|
-
sefStatuses?: ISendStatus[];
|
|
846
|
-
excludeSefStatuses?: ISendStatus[];
|
|
847
901
|
sefStatusCommentLike?: string;
|
|
902
|
+
sefStatuses?: ISendStatus[];
|
|
848
903
|
signal?: any;
|
|
849
|
-
|
|
850
|
-
sefInvoice?: boolean;
|
|
851
|
-
sefInvoiceType?: ISefInvoiceType;
|
|
852
|
-
register?: ISimpleObject;
|
|
853
|
-
registerUuid?: string;
|
|
854
|
-
internalRoutingNumberLike?: string;
|
|
855
|
-
year?: number;
|
|
856
|
-
factoring?: boolean;
|
|
904
|
+
sort?: string;
|
|
857
905
|
taxCategory?: ITaxCategory;
|
|
858
|
-
currency?: ISimpleObject;
|
|
859
|
-
currencyUuid?: string;
|
|
860
|
-
domesticCurrency?: boolean;
|
|
861
|
-
foreignCurrency?: boolean;
|
|
862
906
|
totalPriceWithVatInCurrency?: number;
|
|
863
|
-
|
|
864
|
-
|
|
907
|
+
trafficDateFrom?: string;
|
|
908
|
+
trafficDateTo?: string;
|
|
865
909
|
vatPercentage?: string;
|
|
910
|
+
year?: number;
|
|
911
|
+
documentTypesObj?: ISelectData[];
|
|
912
|
+
issuerObj?: ISelectData;
|
|
913
|
+
registerObj?: ISelectData;
|
|
914
|
+
receiverObj?: ISelectData;
|
|
915
|
+
approvalObj?: ISelectData;
|
|
916
|
+
accountsObj?: ISelectData[];
|
|
917
|
+
costCentersObj?: ISelectData[];
|
|
918
|
+
concludedObj?: ISelectData;
|
|
919
|
+
currencyObj?: ISelectData;
|
|
920
|
+
approvalStepGroupObj?: ISelectData;
|
|
866
921
|
}
|
|
867
922
|
declare const SefVatEvidenceTypes: readonly ["INVOICE", "CREDIT_NOTE", "DEBIT_NOTE", "PREPAYMENT_INVOICE", "INTERNAL_ACCOUNT_FOR_TURNOVER_OF_FOREIGNER", "OTHER_INTERNAL_STATEMENT"];
|
|
868
923
|
type SefVatEvidenceType = (typeof SefVatEvidenceTypes)[number];
|
|
@@ -910,6 +965,10 @@ interface IDocumentIndex {
|
|
|
910
965
|
}
|
|
911
966
|
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"];
|
|
912
967
|
type DocumentField = (typeof DocumentFields)[number];
|
|
968
|
+
declare const DocumentStatuses: readonly ["IN_PROGRESS", "CONCLUDED"];
|
|
969
|
+
interface DocumentIndicies {
|
|
970
|
+
[id: string]: IDocumentIndex;
|
|
971
|
+
}
|
|
913
972
|
|
|
914
973
|
interface IPartner {
|
|
915
974
|
uuid: string;
|
|
@@ -1379,4 +1438,4 @@ interface Props {
|
|
|
1379
1438
|
}
|
|
1380
1439
|
declare const Sidebar: FC<Props>;
|
|
1381
1440
|
|
|
1382
|
-
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 };
|
|
1441
|
+
export { AxiosTokenHandler, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, ErrorContext, Header, IBankAccount, IBankAccountSearch, IBusinessActivity, IContactPerson, ICountry, ICurrency, IDocument, IDocumentAny, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, IMunicipality, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationPrivileges, IOrganizationSearch, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPlace, ISidebarItem, IToken, IUploadDocumentType, IUser, IUserPreferences, IUserPrivileges, LoginPage, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, PartnerGroupType, SelectOrgPage, Sidebar, UserFetchOption, UserOrgContext, UserOrgProvider };
|