@inceptionbg/main 1.0.23 → 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +54 -1
  2. 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,6 +834,7 @@ 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
839
  accountsUuid?: string[];
791
840
  approvalProcessEndTimeFrom?: string;
@@ -916,6 +965,10 @@ interface IDocumentIndex {
916
965
  }
917
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"];
918
967
  type DocumentField = (typeof DocumentFields)[number];
968
+ declare const DocumentStatuses: readonly ["IN_PROGRESS", "CONCLUDED"];
969
+ interface DocumentIndicies {
970
+ [id: string]: IDocumentIndex;
971
+ }
919
972
 
920
973
  interface IPartner {
921
974
  uuid: string;
@@ -1385,4 +1438,4 @@ interface Props {
1385
1438
  }
1386
1439
  declare const Sidebar: FC<Props>;
1387
1440
 
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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inceptionbg/main",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Main app wrapper for Inception ecosystem",
5
5
  "type": "module",
6
6
  "files": [