@inceptionbg/main 1.0.23 → 1.0.25
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 +62 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -112,17 +112,46 @@ 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
|
-
uuid
|
|
117
|
-
|
|
133
|
+
uuid: string;
|
|
134
|
+
contentType?: string;
|
|
135
|
+
digest?: string;
|
|
136
|
+
digestAlgorithm?: string;
|
|
137
|
+
fileUuid?: string;
|
|
138
|
+
lengthInBytes: number;
|
|
139
|
+
md5?: string;
|
|
140
|
+
originalFileName: string;
|
|
118
141
|
downloadUrl?: string;
|
|
119
|
-
lengthInBytes?: number;
|
|
120
142
|
uploadedAt?: string;
|
|
121
|
-
fileUuid?: string;
|
|
122
143
|
storage?: {
|
|
123
144
|
url?: string;
|
|
124
145
|
};
|
|
125
146
|
}
|
|
147
|
+
interface IFileUpload {
|
|
148
|
+
contentType: string;
|
|
149
|
+
digest: string;
|
|
150
|
+
digestAlgorithm: string;
|
|
151
|
+
lengthInBytes: number;
|
|
152
|
+
uuid: string;
|
|
153
|
+
originalFileName: string;
|
|
154
|
+
}
|
|
126
155
|
interface IFileType {
|
|
127
156
|
uuid?: string;
|
|
128
157
|
name?: string;
|
|
@@ -350,6 +379,29 @@ interface IDocumentSend {
|
|
|
350
379
|
email: string;
|
|
351
380
|
};
|
|
352
381
|
}
|
|
382
|
+
type DocumentSendFetchOption = 'CREATED_BY' | 'DOCUMENT' | 'DOCUMENT_WITH_ISSUER_RECEIVER' | 'ORGANIZATION' | 'FILES_WITH_URLS' | 'SIGNATORIES' | 'DESCRIPTION' | 'RELATED_DOCUMENTS' | 'CONVERSATION_VIEW' | 'RECEIVER_ORGANIZATION' | 'IN_BEHALF_OF';
|
|
383
|
+
interface IDocumentSendSearch {
|
|
384
|
+
documentUuid?: string;
|
|
385
|
+
receiverOrganizationUuid?: string;
|
|
386
|
+
organizationUuid?: string;
|
|
387
|
+
receiverUserUuid?: string;
|
|
388
|
+
status?: ISendStatus;
|
|
389
|
+
excludeStatuses?: ISendStatus[];
|
|
390
|
+
createdFrom?: string;
|
|
391
|
+
createdTo?: string;
|
|
392
|
+
documentNumberLike?: string;
|
|
393
|
+
documentDateFrom?: string;
|
|
394
|
+
documentDateTo?: string;
|
|
395
|
+
documentIssuerFullTextSearch?: string;
|
|
396
|
+
documentTotalPriceWithVatFrom?: number;
|
|
397
|
+
documentTotalPriceWithVatTo?: number;
|
|
398
|
+
documentBestPaidBeforeFrom?: string;
|
|
399
|
+
documentBestPaidBeforeTo?: string;
|
|
400
|
+
firstLevel?: boolean;
|
|
401
|
+
sort?: string;
|
|
402
|
+
conversationViewUuid?: string;
|
|
403
|
+
caseUuid?: string;
|
|
404
|
+
}
|
|
353
405
|
declare const SendStatuses: readonly ["QUEUED", "SENDING", "NOT_REGISTERED_ON_SEF", "ERROR", "SENT", "SEEN", "DOWNLOADED", "APPROVED", "REJECTED", "UNRESOLVED", "MISTAKE", "CANCELLED", "STORNO", "RENOTIFIED"];
|
|
354
406
|
type ISendStatus = (typeof SendStatuses)[number];
|
|
355
407
|
|
|
@@ -786,6 +838,7 @@ interface IDocument {
|
|
|
786
838
|
interface IDocumentAny extends Partial<IInvoice>, Partial<IShipment>, Partial<IOfficeDocument> {
|
|
787
839
|
}
|
|
788
840
|
type IDocumentCategory = 'DOCUMENT' | 'INVOICE' | 'ARCHIVE' | 'SHIPMENT';
|
|
841
|
+
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
842
|
interface IDocumentSearch {
|
|
790
843
|
accountsUuid?: string[];
|
|
791
844
|
approvalProcessEndTimeFrom?: string;
|
|
@@ -916,6 +969,10 @@ interface IDocumentIndex {
|
|
|
916
969
|
}
|
|
917
970
|
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
971
|
type DocumentField = (typeof DocumentFields)[number];
|
|
972
|
+
declare const DocumentStatuses: readonly ["IN_PROGRESS", "CONCLUDED"];
|
|
973
|
+
interface DocumentIndicies {
|
|
974
|
+
[id: string]: IDocumentIndex;
|
|
975
|
+
}
|
|
919
976
|
|
|
920
977
|
interface IPartner {
|
|
921
978
|
uuid: string;
|
|
@@ -1385,4 +1442,4 @@ interface Props {
|
|
|
1385
1442
|
}
|
|
1386
1443
|
declare const Sidebar: FC<Props>;
|
|
1387
1444
|
|
|
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 };
|
|
1445
|
+
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 };
|