@kommerz/ts-client 1.184.1 → 1.186.0
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/apis/AbsenceEntriesApi.d.ts +80 -3
- package/dist/apis/AbsenceEntriesApi.js +271 -165
- package/dist/apis/AbsenceTypesApi.d.ts +47 -1
- package/dist/apis/AbsenceTypesApi.js +160 -94
- package/dist/apis/AcceptanceDocumentsApi.d.ts +51 -1
- package/dist/apis/AcceptanceDocumentsApi.js +165 -98
- package/dist/apis/AcceptancePortalDocumentsApi.d.ts +42 -3
- package/dist/apis/AcceptancePortalDocumentsApi.js +131 -77
- package/dist/apis/AccessTokensApi.d.ts +47 -1
- package/dist/apis/AccessTokensApi.js +160 -94
- package/dist/apis/AccountingCentersApi.d.ts +40 -1
- package/dist/apis/AccountingCentersApi.js +151 -85
- package/dist/apis/AccountingLedgersApi.d.ts +68 -1
- package/dist/apis/AccountingLedgersApi.js +222 -142
- package/dist/apis/AccountingReceiptsApi.d.ts +51 -1
- package/dist/apis/AccountingReceiptsApi.js +181 -115
- package/dist/apis/AccountingSettlementsApi.d.ts +47 -1
- package/dist/apis/AccountingSettlementsApi.js +160 -94
- package/dist/apis/AccountingStatementsApi.d.ts +34 -1
- package/dist/apis/AccountingStatementsApi.js +92 -65
- package/dist/apis/AccountingTransactionsApi.d.ts +47 -1
- package/dist/apis/AccountingTransactionsApi.js +160 -94
- package/dist/apis/AccountingTurnoversApi.d.ts +66 -1
- package/dist/apis/AccountingTurnoversApi.js +183 -117
- package/dist/apis/ActivitiesApi.d.ts +20 -1
- package/dist/apis/ActivitiesApi.js +65 -38
- package/dist/apis/ApprovalEntriesApi.d.ts +47 -1
- package/dist/apis/ApprovalEntriesApi.js +160 -94
- package/dist/apis/ApprovalEntriesApproveApi.d.ts +29 -1
- package/dist/apis/ApprovalEntriesApproveApi.js +100 -61
- package/dist/apis/ApprovalTypesApi.d.ts +47 -1
- package/dist/apis/ApprovalTypesApi.js +160 -94
- package/dist/apis/BankingAccountsApi.d.ts +64 -1
- package/dist/apis/BankingAccountsApi.js +201 -121
- package/dist/apis/BankingInstitutesApi.d.ts +5 -1
- package/dist/apis/BankingInstitutesApi.js +26 -13
- package/dist/apis/BankingRegistrationsApi.d.ts +56 -1
- package/dist/apis/BankingRegistrationsApi.js +187 -106
- package/dist/apis/CalendarEntriesApi.d.ts +47 -1
- package/dist/apis/CalendarEntriesApi.js +160 -94
- package/dist/apis/CalendarEntryTypesApi.d.ts +47 -1
- package/dist/apis/CalendarEntryTypesApi.js +160 -94
- package/dist/apis/CalendarPortalApi.d.ts +25 -1
- package/dist/apis/CalendarPortalApi.js +73 -46
- package/dist/apis/CommentsApi.d.ts +64 -1
- package/dist/apis/CommentsApi.js +224 -132
- package/dist/apis/ConfigurationsApi.d.ts +47 -1
- package/dist/apis/ConfigurationsApi.js +160 -94
- package/dist/apis/ContractStatusApi.d.ts +47 -1
- package/dist/apis/ContractStatusApi.js +160 -94
- package/dist/apis/ContractTypesApi.d.ts +47 -1
- package/dist/apis/ContractTypesApi.js +160 -94
- package/dist/apis/ContractsApi.d.ts +47 -1
- package/dist/apis/ContractsApi.js +160 -94
- package/dist/apis/CustomersApi.d.ts +47 -1
- package/dist/apis/CustomersApi.js +160 -94
- package/dist/apis/CustomersBankdetailsApi.d.ts +62 -1
- package/dist/apis/CustomersBankdetailsApi.js +180 -114
- package/dist/apis/DataTableRowsApi.d.ts +66 -1
- package/dist/apis/DataTableRowsApi.js +183 -117
- package/dist/apis/DataTablesApi.d.ts +60 -3
- package/dist/apis/DataTablesApi.js +194 -115
- package/dist/apis/DecisionTablesApi.d.ts +47 -1
- package/dist/apis/DecisionTablesApi.js +160 -94
- package/dist/apis/DeliveryNotesApi.d.ts +70 -3
- package/dist/apis/DeliveryNotesApi.js +246 -141
- package/dist/apis/DesignTemplatesApi.d.ts +47 -1
- package/dist/apis/DesignTemplatesApi.js +160 -94
- package/dist/apis/DocumentTemplatesApi.d.ts +47 -1
- package/dist/apis/DocumentTemplatesApi.js +160 -94
- package/dist/apis/DubbingPortalApi.d.ts +25 -1
- package/dist/apis/DubbingPortalApi.js +84 -57
- package/dist/apis/DunningLettersApi.d.ts +63 -3
- package/dist/apis/DunningLettersApi.js +217 -125
- package/dist/apis/EditorTypeApi.d.ts +47 -1
- package/dist/apis/EditorTypeApi.js +160 -94
- package/dist/apis/FileDirectoriesApi.d.ts +93 -5
- package/dist/apis/FileDirectoriesApi.js +272 -158
- package/dist/apis/FileDirectorySharesApi.d.ts +106 -5
- package/dist/apis/FileDirectorySharesApi.js +336 -203
- package/dist/apis/FileTagsApi.d.ts +47 -1
- package/dist/apis/FileTagsApi.js +160 -94
- package/dist/apis/FileUploadsApi.d.ts +34 -1
- package/dist/apis/FileUploadsApi.js +123 -81
- package/dist/apis/FilesApi.d.ts +63 -3
- package/dist/apis/FilesApi.js +194 -127
- package/dist/apis/FormsPortalApi.d.ts +19 -1
- package/dist/apis/FormsPortalApi.js +64 -37
- package/dist/apis/HolidaysApi.d.ts +47 -1
- package/dist/apis/HolidaysApi.js +160 -94
- package/dist/apis/HospitalityReceiptsApi.d.ts +100 -5
- package/dist/apis/HospitalityReceiptsApi.js +336 -203
- package/dist/apis/IdentifiersApi.d.ts +51 -1
- package/dist/apis/IdentifiersApi.js +185 -106
- package/dist/apis/InboxEmailsApi.d.ts +35 -2
- package/dist/apis/InboxEmailsApi.js +123 -70
- package/dist/apis/InvoicePortalApi.d.ts +53 -0
- package/dist/apis/InvoicePortalApi.js +201 -0
- package/dist/apis/InvoicesApi.d.ts +131 -5
- package/dist/apis/InvoicesApi.js +417 -202
- package/dist/apis/JobsApi.d.ts +27 -1
- package/dist/apis/JobsApi.js +93 -53
- package/dist/apis/KanbanBoardsApi.d.ts +47 -1
- package/dist/apis/KanbanBoardsApi.js +160 -94
- package/dist/apis/KanbanCardsApi.d.ts +62 -1
- package/dist/apis/KanbanCardsApi.js +180 -114
- package/dist/apis/KanbanColumnsApi.d.ts +62 -1
- package/dist/apis/KanbanColumnsApi.js +180 -114
- package/dist/apis/MentionsApi.d.ts +34 -1
- package/dist/apis/MentionsApi.js +121 -68
- package/dist/apis/NotificationTargetsApi.d.ts +30 -1
- package/dist/apis/NotificationTargetsApi.js +120 -67
- package/dist/apis/NotificationsAcksApi.d.ts +15 -1
- package/dist/apis/NotificationsAcksApi.js +58 -32
- package/dist/apis/NotificationsApi.d.ts +27 -1
- package/dist/apis/NotificationsApi.js +93 -53
- package/dist/apis/OffersApi.d.ts +82 -3
- package/dist/apis/OffersApi.js +282 -162
- package/dist/apis/OkrKeyresultsApi.d.ts +62 -1
- package/dist/apis/OkrKeyresultsApi.js +180 -114
- package/dist/apis/OkrObjectivesApi.d.ts +47 -1
- package/dist/apis/OkrObjectivesApi.js +160 -94
- package/dist/apis/PaymentBuyProductApi.d.ts +13 -1
- package/dist/apis/PaymentBuyProductApi.js +57 -30
- package/dist/apis/PaymentProductsApi.d.ts +5 -1
- package/dist/apis/PaymentProductsApi.js +26 -13
- package/dist/apis/PaymentSubscriptionsApi.d.ts +28 -1
- package/dist/apis/PaymentSubscriptionsApi.js +95 -54
- package/dist/apis/PaymentsPaymentsApi.d.ts +12 -1
- package/dist/apis/PaymentsPaymentsApi.js +35 -22
- package/dist/apis/PresenceEntriesApi.d.ts +51 -1
- package/dist/apis/PresenceEntriesApi.js +185 -106
- package/dist/apis/PresenceTypesApi.d.ts +47 -1
- package/dist/apis/PresenceTypesApi.js +160 -94
- package/dist/apis/ProductsApi.d.ts +47 -1
- package/dist/apis/ProductsApi.js +160 -94
- package/dist/apis/ReferencesApi.d.ts +30 -1
- package/dist/apis/ReferencesApi.js +100 -60
- package/dist/apis/RolesApi.d.ts +49 -3
- package/dist/apis/RolesApi.js +160 -94
- package/dist/apis/ServiceDeskMessageApi.d.ts +11 -1
- package/dist/apis/ServiceDeskMessageApi.js +34 -21
- package/dist/apis/StatisticsApi.d.ts +9 -1
- package/dist/apis/StatisticsApi.js +32 -18
- package/dist/apis/SystemsFeaturesApi.d.ts +5 -1
- package/dist/apis/SystemsFeaturesApi.js +26 -13
- package/dist/apis/SystemsTimesApi.d.ts +5 -1
- package/dist/apis/SystemsTimesApi.js +26 -13
- package/dist/apis/TagRelationsApi.d.ts +48 -1
- package/dist/apis/TagRelationsApi.js +162 -95
- package/dist/apis/TagsApi.d.ts +61 -1
- package/dist/apis/TagsApi.js +199 -119
- package/dist/apis/TenantsApi.d.ts +131 -3
- package/dist/apis/TenantsApi.js +447 -235
- package/dist/apis/TenantsOwnerAdditionApi.d.ts +37 -0
- package/dist/apis/TenantsOwnerAdditionApi.js +139 -0
- package/dist/apis/TenantsValidationApi.d.ts +17 -1
- package/dist/apis/TenantsValidationApi.js +63 -37
- package/dist/apis/TestApi.d.ts +22 -1
- package/dist/apis/TestApi.js +66 -39
- package/dist/apis/TextModulesApi.d.ts +47 -1
- package/dist/apis/TextModulesApi.js +160 -94
- package/dist/apis/TimeTrackingCalendarApi.d.ts +24 -1
- package/dist/apis/TimeTrackingCalendarApi.js +69 -43
- package/dist/apis/TimeTrackingCalendarExportApi.d.ts +18 -2
- package/dist/apis/TimeTrackingCalendarExportApi.js +42 -29
- package/dist/apis/UnitsApi.d.ts +47 -1
- package/dist/apis/UnitsApi.js +160 -94
- package/dist/apis/UsageMonitorApi.d.ts +5 -1
- package/dist/apis/UsageMonitorApi.js +26 -13
- package/dist/apis/UserPermissionsApi.d.ts +25 -1
- package/dist/apis/UserPermissionsApi.js +92 -53
- package/dist/apis/UserTenantsApi.d.ts +25 -1
- package/dist/apis/UserTenantsApi.js +85 -13
- package/dist/apis/UsersApi.d.ts +27 -1
- package/dist/apis/UsersApi.js +93 -53
- package/dist/apis/UsersMeApi.d.ts +41 -1
- package/dist/apis/UsersMeApi.js +201 -53
- package/dist/apis/UsersRegisterApi.d.ts +8 -1
- package/dist/apis/UsersRegisterApi.js +30 -17
- package/dist/apis/ValidationApi.d.ts +22 -1
- package/dist/apis/ValidationApi.js +89 -50
- package/dist/apis/WikiApi.d.ts +47 -1
- package/dist/apis/WikiApi.js +160 -94
- package/dist/apis/WikiPagesApi.d.ts +65 -1
- package/dist/apis/WikiPagesApi.js +183 -117
- package/dist/apis/WorkHoursApi.d.ts +47 -1
- package/dist/apis/WorkHoursApi.js +160 -94
- package/dist/apis/WorkflowExecutionsApi.d.ts +26 -1
- package/dist/apis/WorkflowExecutionsApi.js +73 -46
- package/dist/apis/WorkflowExternalTasksApi.d.ts +62 -1
- package/dist/apis/WorkflowExternalTasksApi.js +181 -115
- package/dist/apis/WorkflowProcessesApi.d.ts +41 -1
- package/dist/apis/WorkflowProcessesApi.js +152 -86
- package/dist/apis/WorkflowsApi.d.ts +98 -1
- package/dist/apis/WorkflowsApi.js +347 -200
- package/dist/apis/WritingsApi.d.ts +63 -3
- package/dist/apis/WritingsApi.js +217 -125
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AbsenceEntryDto.d.ts +0 -16
- package/dist/models/AbsenceTypeDto.d.ts +0 -12
- package/dist/models/AcceptanceDocumentDto.d.ts +0 -28
- package/dist/models/AcceptanceDocumentDto.js +6 -5
- package/dist/models/AcceptanceDocumentLogEntry.d.ts +0 -6
- package/dist/models/AcceptanceDocumentLogEntry.js +3 -2
- package/dist/models/AcceptanceDocumentLogEntryData.d.ts +0 -4
- package/dist/models/AcceptanceDocumentLogEntryData.js +1 -1
- package/dist/models/AcceptanceDocumentRecipientInfo.d.ts +0 -4
- package/dist/models/AcceptanceDocumentSenderInfo.d.ts +0 -6
- package/dist/models/AcceptancePortalAcceptDto.d.ts +0 -12
- package/dist/models/AcceptancePortalSendConfigDto.d.ts +0 -8
- package/dist/models/AcceptancePortalShareConfigDto.d.ts +0 -18
- package/dist/models/AccessTokenDto.d.ts +0 -16
- package/dist/models/AccessTokenDto.js +3 -2
- package/dist/models/AccountDeletionPreviewDto.d.ts +30 -0
- package/dist/models/AccountDeletionPreviewDto.js +51 -0
- package/dist/models/AccountDeletionTenantDto.d.ts +37 -0
- package/dist/models/AccountDeletionTenantDto.js +58 -0
- package/dist/models/AccountingCenterDto.d.ts +0 -18
- package/dist/models/AccountingCenterDto.js +1 -1
- package/dist/models/AccountingChartType.js +1 -1
- package/dist/models/AccountingConfigDto.d.ts +0 -2
- package/dist/models/AccountingLedgerCustomData.d.ts +0 -4
- package/dist/models/AccountingLedgerDto.d.ts +0 -36
- package/dist/models/AccountingLedgerImportType.js +1 -1
- package/dist/models/AccountingLedgerType.js +1 -1
- package/dist/models/AccountingReceiptDetailsDto.d.ts +13 -26
- package/dist/models/AccountingReceiptDetailsDto.js +7 -0
- package/dist/models/AccountingReceiptDetailsSource.d.ts +25 -0
- package/dist/models/AccountingReceiptDetailsSource.js +51 -0
- package/dist/models/AccountingReceiptDto.d.ts +0 -30
- package/dist/models/AccountingReceiptItemDto.d.ts +4 -12
- package/dist/models/AccountingReceiptItemDto.js +2 -0
- package/dist/models/AccountingReceiptLegalEntityDto.d.ts +20 -24
- package/dist/models/AccountingReceiptLegalEntityDto.js +10 -0
- package/dist/models/AccountingReceiptMetaDataDto.d.ts +0 -4
- package/dist/models/AccountingReceiptType.js +1 -1
- package/dist/models/AccountingScheduleDto.d.ts +0 -12
- package/dist/models/AccountingScheduleDto.js +7 -6
- package/dist/models/AccountingSettlementDto.d.ts +0 -14
- package/dist/models/AccountingSettlementDto.js +7 -6
- package/dist/models/AccountingSplitDto.d.ts +0 -12
- package/dist/models/AccountingSplitPair.d.ts +0 -10
- package/dist/models/AccountingTransactionDto.d.ts +0 -16
- package/dist/models/AccountingTransactionDto.js +3 -2
- package/dist/models/AccountingTransactionStatus.js +1 -1
- package/dist/models/AccountingTransactionTemplateDto.d.ts +0 -2
- package/dist/models/AccountingTurnoverDto.d.ts +0 -6
- package/dist/models/AcknowledgeNotificationsDto.d.ts +0 -2
- package/dist/models/ActivityDto.d.ts +0 -18
- package/dist/models/ActivityDto.js +3 -2
- package/dist/models/ActivityReferenceDto.d.ts +0 -12
- package/dist/models/ActivityType.js +1 -1
- package/dist/models/AddressDto.d.ts +0 -12
- package/dist/models/AmountDto.d.ts +0 -4
- package/dist/models/ApprovalDecisionEnum.js +1 -1
- package/dist/models/ApprovalEntryDto.d.ts +0 -20
- package/dist/models/ApprovalEntryDto.js +5 -4
- package/dist/models/ApprovalModeEnum.js +1 -1
- package/dist/models/ApprovalStatusEnum.js +1 -1
- package/dist/models/ApprovalTypeDto.d.ts +0 -16
- package/dist/models/BankAccountDto.d.ts +0 -22
- package/dist/models/BankAccountRegistrationDto.d.ts +0 -8
- package/dist/models/BankConnectionDto.d.ts +0 -6
- package/dist/models/BankDetailsDto.d.ts +0 -16
- package/dist/models/BankRegistrationDto.d.ts +0 -22
- package/dist/models/BrevoEmailWebhookEvent.d.ts +0 -30
- package/dist/models/CalendarAttendeeDto.d.ts +0 -8
- package/dist/models/CalendarEntryDto.d.ts +0 -20
- package/dist/models/CalendarEntryTypeDto.d.ts +0 -18
- package/dist/models/CalendarPortalEventDto.d.ts +0 -18
- package/dist/models/CalendarPortalRsvpDto.d.ts +0 -4
- package/dist/models/CalendarPortalRsvpStatus.js +1 -1
- package/dist/models/CenterStatementDto.d.ts +0 -14
- package/dist/models/CenterStatementDto.js +5 -4
- package/dist/models/ChannelIdType.js +1 -1
- package/dist/models/CommentDto.d.ts +0 -16
- package/dist/models/CommentDto.js +3 -2
- package/dist/models/ConfigKey.js +1 -1
- package/dist/models/ConfigurationDto.d.ts +0 -10
- package/dist/models/ContactDto.d.ts +0 -6
- package/dist/models/ContractDto.d.ts +0 -24
- package/dist/models/ContractStatusDto.d.ts +0 -10
- package/dist/models/ContractTypeAttributeDto.d.ts +0 -6
- package/dist/models/ContractTypeAttributeDto.js +1 -1
- package/dist/models/ContractTypeDto.d.ts +0 -10
- package/dist/models/CountryCode.js +1 -1
- package/dist/models/CreateTagRelationsDto.d.ts +0 -8
- package/dist/models/CreateTenantRequest.d.ts +0 -4
- package/dist/models/CustomerDto.d.ts +0 -32
- package/dist/models/CustomerDto.js +1 -1
- package/dist/models/DataTableColumnDefinition.d.ts +0 -8
- package/dist/models/DataTableColumnType.js +1 -1
- package/dist/models/DataTableDto.d.ts +0 -12
- package/dist/models/DataTableExportFormat.js +1 -1
- package/dist/models/DataTableKeyType.js +1 -1
- package/dist/models/DataTableRowDto.d.ts +0 -8
- package/dist/models/DataTableRowDtoChange.d.ts +0 -4
- package/dist/models/DataTableRowDtoChange.js +1 -1
- package/dist/models/DecisionTableAggregation.js +1 -1
- package/dist/models/DecisionTableDto.d.ts +0 -22
- package/dist/models/DecisionTableHitPolicy.js +1 -1
- package/dist/models/DecisionTableInput.d.ts +0 -6
- package/dist/models/DecisionTableOutput.d.ts +0 -6
- package/dist/models/DecisionTableRule.d.ts +0 -6
- package/dist/models/DecisionTableType.js +1 -1
- package/dist/models/DeliveryNoteDto.d.ts +0 -30
- package/dist/models/DeliveryNoteItemDto.d.ts +0 -8
- package/dist/models/DeployWorkflowRequest.d.ts +0 -2
- package/dist/models/DesignTemplateContextVersion.js +1 -1
- package/dist/models/DesignTemplateDto.d.ts +0 -18
- package/dist/models/DesignTemplateType.js +1 -1
- package/dist/models/DocumentTemplateDto.d.ts +4 -34
- package/dist/models/DocumentTemplateDto.js +7 -11
- package/dist/models/DubbingPortalFileStatusDto.d.ts +0 -10
- package/dist/models/DubbingPortalResponseDto.d.ts +0 -2
- package/dist/models/DubbingPortalStatusDto.d.ts +0 -10
- package/dist/models/DunningLetterDto.d.ts +0 -42
- package/dist/models/DunningLetterItemDto.d.ts +0 -6
- package/dist/models/EditorTypeDto.d.ts +0 -12
- package/dist/models/EmailDto.d.ts +2 -34
- package/dist/models/EmailDto.js +4 -4
- package/dist/models/EmailEvent.d.ts +0 -10
- package/dist/models/EmailEvent.js +3 -2
- package/dist/models/EntityAccessTokenDto.d.ts +0 -2
- package/dist/models/EntityReference.d.ts +0 -8
- package/dist/models/EntityType.d.ts +1 -0
- package/dist/models/EntityType.js +2 -1
- package/dist/models/FeatureDto.d.ts +0 -8
- package/dist/models/FileConflictResolution.d.ts +24 -0
- package/dist/models/FileConflictResolution.js +50 -0
- package/dist/models/FileDetailsDto.d.ts +0 -20
- package/dist/models/FileDetailsDto.js +3 -2
- package/dist/models/FileDirectoryDto.d.ts +5 -23
- package/dist/models/FileDirectoryDto.js +2 -5
- package/dist/models/FileDownloadDisposition.js +1 -1
- package/dist/models/FileDto.d.ts +0 -16
- package/dist/models/FileDto.js +3 -2
- package/dist/models/FileMovementDto.d.ts +5 -6
- package/dist/models/FileMovementDto.js +3 -0
- package/dist/models/FileSelectionDto.d.ts +0 -4
- package/dist/models/FileShareDto.d.ts +0 -36
- package/dist/models/FileShareDto.js +9 -8
- package/dist/models/FileTagDto.d.ts +0 -6
- package/dist/models/FileUploadDto.d.ts +5 -14
- package/dist/models/FileUploadDto.js +3 -0
- package/dist/models/FileUploadManifestDto.d.ts +0 -2
- package/dist/models/FileUploadPartDto.d.ts +0 -2
- package/dist/models/FilterableEndpointDto.d.ts +0 -6
- package/dist/models/FormsPortalReceiverInfo.d.ts +0 -6
- package/dist/models/FormsPortalSpecDto.d.ts +0 -8
- package/dist/models/FormsPortalSubmitDto.d.ts +0 -2
- package/dist/models/GetAllAbsenceEntries200Response.d.ts +0 -8
- package/dist/models/GetAllAbsenceTypes200Response.d.ts +0 -8
- package/dist/models/GetAllAcceptanceDocuments200Response.d.ts +0 -8
- package/dist/models/GetAllAccessTokens200Response.d.ts +0 -8
- package/dist/models/GetAllAccountingCenterStatements200Response.d.ts +0 -2
- package/dist/models/GetAllAccountingCenters200Response.d.ts +0 -8
- package/dist/models/GetAllAccountingLedgerStatements200Response.d.ts +0 -2
- package/dist/models/GetAllAccountingLedgers200Response.d.ts +0 -8
- package/dist/models/GetAllAccountingReceipts200Response.d.ts +0 -8
- package/dist/models/GetAllAccountingSettlements200Response.d.ts +0 -8
- package/dist/models/GetAllAccountingTransactions200Response.d.ts +0 -8
- package/dist/models/GetAllAccountingTurnover200Response.d.ts +0 -8
- package/dist/models/GetAllAccounts200Response.d.ts +0 -8
- package/dist/models/GetAllActivities200Response.d.ts +0 -8
- package/dist/models/GetAllApprovalEntries200Response.d.ts +0 -8
- package/dist/models/GetAllApprovalTypes200Response.d.ts +0 -8
- package/dist/models/GetAllBankDetails200Response.d.ts +0 -8
- package/dist/models/GetAllCalendarEntries200Response.d.ts +0 -8
- package/dist/models/GetAllCalendarEntryTypes200Response.d.ts +0 -8
- package/dist/models/GetAllComments200Response.d.ts +0 -8
- package/dist/models/GetAllConfigurations200Response.d.ts +0 -8
- package/dist/models/GetAllContractStatus200Response.d.ts +0 -8
- package/dist/models/GetAllContractTypes200Response.d.ts +0 -8
- package/dist/models/GetAllContracts200Response.d.ts +0 -8
- package/dist/models/GetAllCustomers200Response.d.ts +0 -8
- package/dist/models/GetAllDeliveryNotes200Response.d.ts +0 -8
- package/dist/models/GetAllDesignTemplates200Response.d.ts +0 -8
- package/dist/models/GetAllDocumentTemplates200Response.d.ts +0 -8
- package/dist/models/GetAllDunningLetters200Response.d.ts +0 -8
- package/dist/models/GetAllEditorTypes200Response.d.ts +0 -8
- package/dist/models/GetAllEntitiesForTag200Response.d.ts +0 -8
- package/dist/models/GetAllFileTags200Response.d.ts +0 -8
- package/dist/models/GetAllHolidays200Response.d.ts +0 -8
- package/dist/models/GetAllHospitalityReceipts200Response.d.ts +0 -8
- package/dist/models/GetAllInboxEmails200Response.d.ts +0 -8
- package/dist/models/GetAllInvoices200Response.d.ts +0 -8
- package/dist/models/GetAllJobs200Response.d.ts +0 -8
- package/dist/models/GetAllKanbanBoards200Response.d.ts +0 -8
- package/dist/models/GetAllKanbanCards200Response.d.ts +0 -8
- package/dist/models/GetAllKanbanColumns200Response.d.ts +0 -8
- package/dist/models/GetAllMentions200Response.d.ts +0 -8
- package/dist/models/GetAllNotifications200Response.d.ts +0 -8
- package/dist/models/GetAllObjectives200Response.d.ts +0 -8
- package/dist/models/GetAllOffers200Response.d.ts +0 -8
- package/dist/models/GetAllPages200Response.d.ts +0 -8
- package/dist/models/GetAllPayments200Response.d.ts +0 -8
- package/dist/models/GetAllPresenceEntries200Response.d.ts +0 -8
- package/dist/models/GetAllPresenceTypes200Response.d.ts +0 -8
- package/dist/models/GetAllProducts200Response.d.ts +0 -8
- package/dist/models/GetAllReferences200Response.d.ts +0 -8
- package/dist/models/GetAllRegistrations200Response.d.ts +0 -8
- package/dist/models/GetAllResults200Response.d.ts +0 -8
- package/dist/models/GetAllRoles200Response.d.ts +0 -8
- package/dist/models/GetAllShares200Response.d.ts +0 -8
- package/dist/models/GetAllTags200Response.d.ts +0 -8
- package/dist/models/GetAllTextModules200Response.d.ts +0 -8
- package/dist/models/GetAllUnits200Response.d.ts +0 -8
- package/dist/models/GetAllUsers200Response.d.ts +0 -8
- package/dist/models/GetAllWikis200Response.d.ts +0 -8
- package/dist/models/GetAllWorkHours200Response.d.ts +0 -8
- package/dist/models/GetAllWorkflowExecutions200Response.d.ts +0 -8
- package/dist/models/GetAllWorkflowExternalTasks200Response.d.ts +0 -8
- package/dist/models/GetAllWorkflowProcesses200Response.d.ts +0 -8
- package/dist/models/GetAllWorkflows200Response.d.ts +0 -8
- package/dist/models/GetAllWritings200Response.d.ts +0 -8
- package/dist/models/GetSubscribedProducts200Response.d.ts +0 -8
- package/dist/models/GetUserRoles200Response.d.ts +0 -2
- package/dist/models/HolidaysDto.d.ts +0 -14
- package/dist/models/HospitalityReceiptDto.d.ts +0 -28
- package/dist/models/HospitalityReceiptSignatureDto.d.ts +0 -6
- package/dist/models/IdentifierDto.d.ts +0 -2
- package/dist/models/IdentifierType.js +1 -1
- package/dist/models/ImportTransactions200Response.d.ts +0 -2
- package/dist/models/InstituteDto.d.ts +0 -12
- package/dist/models/InternalWorkflowExternalTask.d.ts +0 -6
- package/dist/models/InternalWorkflowProcess.d.ts +0 -6
- package/dist/models/InternalWorkflowProcessLogDto.d.ts +0 -8
- package/dist/models/InternalWorkflowProcessLogDto.js +1 -1
- package/dist/models/InternalWorkflowProcessStopRequestDto.d.ts +0 -2
- package/dist/models/InvoiceConfigDto.d.ts +0 -12
- package/dist/models/InvoiceDto.d.ts +6 -62
- package/dist/models/InvoiceDto.js +1 -1
- package/dist/models/InvoiceItemDto.d.ts +0 -26
- package/dist/models/InvoicePortalDocumentDto.d.ts +78 -0
- package/dist/models/InvoicePortalDocumentDto.js +85 -0
- package/dist/models/InvoicePortalShareConfigDto.d.ts +0 -10
- package/dist/models/InvoiceTaxItemDto.d.ts +0 -8
- package/dist/models/InvoiceTaxItemDto.js +1 -1
- package/dist/models/InvoiceTextFieldsDto.d.ts +0 -14
- package/dist/models/InvoiceType.js +1 -1
- package/dist/models/InvoiceValidationCheck.js +1 -1
- package/dist/models/InvoiceValidationResult.d.ts +0 -2
- package/dist/models/InvoiceWhatsAppMessageDto.d.ts +33 -0
- package/dist/models/InvoiceWhatsAppMessageDto.js +49 -0
- package/dist/models/JobDto.d.ts +0 -24
- package/dist/models/JobDto.js +7 -6
- package/dist/models/KanbanBoardDto.d.ts +0 -12
- package/dist/models/KanbanCardDto.d.ts +0 -30
- package/dist/models/KanbanCardDto.js +7 -6
- package/dist/models/KanbanColumnDto.d.ts +0 -10
- package/dist/models/KommerzPageable.d.ts +0 -6
- package/dist/models/LedgerStatementDto.d.ts +0 -14
- package/dist/models/LedgerStatementDto.js +5 -4
- package/dist/models/LegalInfoDto.d.ts +0 -22
- package/dist/models/ListAllTenants200Response.d.ts +0 -8
- package/dist/models/ListDataTableRows200Response.d.ts +0 -8
- package/dist/models/ListDataTables200Response.d.ts +0 -8
- package/dist/models/ListDecisionTables200Response.d.ts +0 -8
- package/dist/models/ListDirectories200Response.d.ts +0 -8
- package/dist/models/ListFiles200Response.d.ts +0 -8
- package/dist/models/MacroConfig.d.ts +0 -6
- package/dist/models/MacroConfig.js +1 -1
- package/dist/models/MacroConfigReferencesInner.d.ts +0 -4
- package/dist/models/MarkInvoiceAsPaidRequest.d.ts +0 -4
- package/dist/models/MentionDto.d.ts +0 -8
- package/dist/models/MessageDto.d.ts +0 -4
- package/dist/models/MessagingPermissionsDto.d.ts +0 -4
- package/dist/models/NewRegistrationDto.d.ts +0 -2
- package/dist/models/NewRegistrationResponseDto.d.ts +0 -6
- package/dist/models/NotificationDto.d.ts +0 -12
- package/dist/models/NotificationDto.js +3 -2
- package/dist/models/NotificationTargetDto.d.ts +0 -12
- package/dist/models/NotificationTargetOrderDto.d.ts +0 -4
- package/dist/models/NotifierIdType.js +1 -1
- package/dist/models/OfferDto.d.ts +0 -38
- package/dist/models/OfferRendererDto.d.ts +0 -18
- package/dist/models/OkrKeyResultDto.d.ts +0 -18
- package/dist/models/OkrObjectiveDto.d.ts +0 -18
- package/dist/models/PageResponse.d.ts +0 -6
- package/dist/models/ParticipantRole.js +1 -1
- package/dist/models/ParticipantStatus.js +1 -1
- package/dist/models/PatternDto.d.ts +0 -6
- package/dist/models/PaymentConfigurationDto.d.ts +0 -4
- package/dist/models/PaymentInvoiceDto.d.ts +0 -14
- package/dist/models/PaymentProductDto.d.ts +0 -30
- package/dist/models/PaymentProductDto.js +4 -4
- package/dist/models/PaymentUriResponseDto.d.ts +0 -2
- package/dist/models/PaymentsDto.d.ts +0 -20
- package/dist/models/PaymentsDto.js +2 -2
- package/dist/models/Permissions.d.ts +4 -0
- package/dist/models/Permissions.js +5 -1
- package/dist/models/PrepositionType.js +1 -1
- package/dist/models/PresenceEntryDto.d.ts +0 -16
- package/dist/models/PresenceTypeDto.d.ts +0 -14
- package/dist/models/ProductDto.d.ts +0 -24
- package/dist/models/ProductSelectionDto.d.ts +0 -4
- package/dist/models/PublicShareDirectorDto.d.ts +0 -6
- package/dist/models/PublicShareDto.d.ts +0 -18
- package/dist/models/PublicShareDto.js +7 -6
- package/dist/models/PublicShareFileDto.d.ts +0 -10
- package/dist/models/PublicShareListingDto.d.ts +0 -6
- package/dist/models/ReferenceDto.d.ts +0 -12
- package/dist/models/RegisterUserDto.d.ts +0 -10
- package/dist/models/RoleDto.d.ts +5 -11
- package/dist/models/RoleDto.js +1 -0
- package/dist/models/RunWorkflowRequest.d.ts +0 -2
- package/dist/models/ShareInvoiceDto.d.ts +0 -4
- package/dist/models/ShareOfferDto.d.ts +0 -6
- package/dist/models/SkontoDto.d.ts +0 -4
- package/dist/models/SortDirection.js +1 -1
- package/dist/models/StatisticsDataEntry.d.ts +0 -4
- package/dist/models/StatisticsDefinitionDto.d.ts +0 -14
- package/dist/models/StatisticsDefinitionDto.js +2 -2
- package/dist/models/StatisticsResponseDto.d.ts +0 -4
- package/dist/models/SubscriptionChangeDto.d.ts +0 -6
- package/dist/models/SubscriptionChangeDto.js +3 -2
- package/dist/models/SubscriptionDto.d.ts +0 -28
- package/dist/models/SubscriptionDto.js +22 -21
- package/dist/models/SubscriptionResponseDto.d.ts +0 -4
- package/dist/models/TagDto.d.ts +0 -8
- package/dist/models/TagRelationDto.d.ts +0 -6
- package/dist/models/TenantConfigurationDto.d.ts +0 -12
- package/dist/models/TenantDto.d.ts +0 -16
- package/dist/models/TenantInvitationDto.d.ts +0 -4
- package/dist/models/TenantOwnerAdditionDto.d.ts +29 -0
- package/dist/models/TenantOwnerAdditionDto.js +50 -0
- package/dist/models/TestTokenDto.d.ts +0 -2
- package/dist/models/TestTokenRequest.d.ts +0 -6
- package/dist/models/TextModuleDto.d.ts +0 -14
- package/dist/models/TextModuleType.d.ts +1 -0
- package/dist/models/TextModuleType.js +2 -1
- package/dist/models/TimeSpanDto.d.ts +0 -6
- package/dist/models/TimeTrackingCalendarDayDto.d.ts +0 -16
- package/dist/models/TimeTrackingCalendarDto.d.ts +0 -20
- package/dist/models/TimesDto.d.ts +0 -4
- package/dist/models/TimesDto.js +3 -2
- package/dist/models/UiConfigurationDto.d.ts +0 -2
- package/dist/models/UiLandingWelcomeConfigDto.d.ts +0 -2
- package/dist/models/UiModule.js +1 -1
- package/dist/models/UnitCode.js +1 -1
- package/dist/models/UnitDto.d.ts +0 -12
- package/dist/models/UsageMetricType.js +1 -1
- package/dist/models/UsageMonitorDto.d.ts +0 -10
- package/dist/models/UsageMonitorDto.js +2 -2
- package/dist/models/UserAgentInformation.d.ts +0 -12
- package/dist/models/UserApprovalDto.d.ts +0 -6
- package/dist/models/UserApprovalDto.js +3 -2
- package/dist/models/UserDto.d.ts +5 -13
- package/dist/models/UserDto.js +1 -0
- package/dist/models/ValidateHandleHandleParameter.d.ts +0 -2
- package/dist/models/ValidateIbanIbanParameter.d.ts +0 -2
- package/dist/models/ValidationDto.d.ts +0 -4
- package/dist/models/ValidationErrors.d.ts +0 -4
- package/dist/models/ValidationErrorsErrorsInner.d.ts +0 -4
- package/dist/models/WikiDto.d.ts +0 -6
- package/dist/models/WikiPageDto.d.ts +0 -20
- package/dist/models/WikiPageDto.js +3 -1
- package/dist/models/WorkHoursDto.d.ts +0 -22
- package/dist/models/WorkflowDto.d.ts +0 -22
- package/dist/models/WorkflowExecutionDto.d.ts +0 -18
- package/dist/models/WorkflowExecutionDto.js +3 -2
- package/dist/models/WorkflowExecutionStatus.js +1 -1
- package/dist/models/WorkflowExternalTaskDto.d.ts +0 -10
- package/dist/models/WorkflowProcessDto.d.ts +0 -14
- package/dist/models/WorkflowProcessDto.js +5 -4
- package/dist/models/WorkflowProcessLogDto.d.ts +0 -6
- package/dist/models/WorkflowProcessLogDto.js +3 -2
- package/dist/models/WorkflowProcessLogType.js +1 -1
- package/dist/models/WorkflowProcessStatus.js +1 -1
- package/dist/models/WorkflowStatusEnum.js +1 -1
- package/dist/models/WritingDto.d.ts +0 -26
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/dist/runtime.d.ts +34 -1
- package/dist/runtime.js +143 -6
- package/package.json +1 -1
- package/dist/models/DocumentTemplateType.d.ts +0 -24
- package/dist/models/DocumentTemplateType.js +0 -50
package/dist/apis/InvoicesApi.js
CHANGED
|
@@ -65,7 +65,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
65
65
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
66
|
exports.InvoicesApi = void 0;
|
|
67
67
|
var runtime = require("../runtime");
|
|
68
|
-
var
|
|
68
|
+
var GetAllInvoices200Response_1 = require("../models/GetAllInvoices200Response");
|
|
69
|
+
var InvoiceDto_1 = require("../models/InvoiceDto");
|
|
70
|
+
var InvoicePortalShareConfigDto_1 = require("../models/InvoicePortalShareConfigDto");
|
|
71
|
+
var InvoiceValidationResult_1 = require("../models/InvoiceValidationResult");
|
|
72
|
+
var InvoiceWhatsAppMessageDto_1 = require("../models/InvoiceWhatsAppMessageDto");
|
|
73
|
+
var MarkInvoiceAsPaidRequest_1 = require("../models/MarkInvoiceAsPaidRequest");
|
|
74
|
+
var ShareInvoiceDto_1 = require("../models/ShareInvoiceDto");
|
|
69
75
|
/**
|
|
70
76
|
*
|
|
71
77
|
*/
|
|
@@ -74,32 +80,45 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
74
80
|
function InvoicesApi() {
|
|
75
81
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Creates request options for createInvoice without sending the request
|
|
85
|
+
*/
|
|
86
|
+
InvoicesApi.prototype.createInvoiceRequestOpts = function (requestParameters) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88
|
+
var queryParameters, headerParameters, urlPath;
|
|
89
|
+
return __generator(this, function (_a) {
|
|
90
|
+
if (requestParameters['invoiceDto'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('invoiceDto', 'Required parameter "invoiceDto" was null or undefined when calling createInvoice().');
|
|
92
|
+
}
|
|
93
|
+
queryParameters = {};
|
|
94
|
+
headerParameters = {};
|
|
95
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
96
|
+
urlPath = "/ui/invoices/v1";
|
|
97
|
+
return [2 /*return*/, {
|
|
98
|
+
path: urlPath,
|
|
99
|
+
method: 'POST',
|
|
100
|
+
headers: headerParameters,
|
|
101
|
+
query: queryParameters,
|
|
102
|
+
body: (0, InvoiceDto_1.InvoiceDtoToJSON)(requestParameters['invoiceDto']),
|
|
103
|
+
}];
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
77
107
|
/**
|
|
78
108
|
* Create a new invoice
|
|
79
109
|
*/
|
|
80
110
|
InvoicesApi.prototype.createInvoiceRaw = function (requestParameters, initOverrides) {
|
|
81
111
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
var
|
|
112
|
+
var requestOptions, response;
|
|
83
113
|
return __generator(this, function (_a) {
|
|
84
114
|
switch (_a.label) {
|
|
85
|
-
case 0:
|
|
86
|
-
if (requestParameters['invoiceDto'] == null) {
|
|
87
|
-
throw new runtime.RequiredError('invoiceDto', 'Required parameter "invoiceDto" was null or undefined when calling createInvoice().');
|
|
88
|
-
}
|
|
89
|
-
queryParameters = {};
|
|
90
|
-
headerParameters = {};
|
|
91
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
92
|
-
urlPath = "/ui/invoices/v1";
|
|
93
|
-
return [4 /*yield*/, this.request({
|
|
94
|
-
path: urlPath,
|
|
95
|
-
method: 'POST',
|
|
96
|
-
headers: headerParameters,
|
|
97
|
-
query: queryParameters,
|
|
98
|
-
body: (0, index_1.InvoiceDtoToJSON)(requestParameters['invoiceDto']),
|
|
99
|
-
}, initOverrides)];
|
|
115
|
+
case 0: return [4 /*yield*/, this.createInvoiceRequestOpts(requestParameters)];
|
|
100
116
|
case 1:
|
|
117
|
+
requestOptions = _a.sent();
|
|
118
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
119
|
+
case 2:
|
|
101
120
|
response = _a.sent();
|
|
102
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
121
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, InvoiceDto_1.InvoiceDtoFromJSON)(jsonValue); })];
|
|
103
122
|
}
|
|
104
123
|
});
|
|
105
124
|
});
|
|
@@ -121,29 +140,42 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
121
140
|
});
|
|
122
141
|
});
|
|
123
142
|
};
|
|
143
|
+
/**
|
|
144
|
+
* Creates request options for deleteInvoice without sending the request
|
|
145
|
+
*/
|
|
146
|
+
InvoicesApi.prototype.deleteInvoiceRequestOpts = function (requestParameters) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
+
var queryParameters, headerParameters, urlPath;
|
|
149
|
+
return __generator(this, function (_a) {
|
|
150
|
+
if (requestParameters['id'] == null) {
|
|
151
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteInvoice().');
|
|
152
|
+
}
|
|
153
|
+
queryParameters = {};
|
|
154
|
+
headerParameters = {};
|
|
155
|
+
urlPath = "/ui/invoices/v1/{id}";
|
|
156
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
157
|
+
return [2 /*return*/, {
|
|
158
|
+
path: urlPath,
|
|
159
|
+
method: 'DELETE',
|
|
160
|
+
headers: headerParameters,
|
|
161
|
+
query: queryParameters,
|
|
162
|
+
}];
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
};
|
|
124
166
|
/**
|
|
125
167
|
* delete single invoice
|
|
126
168
|
*/
|
|
127
169
|
InvoicesApi.prototype.deleteInvoiceRaw = function (requestParameters, initOverrides) {
|
|
128
170
|
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
-
var
|
|
171
|
+
var requestOptions, response;
|
|
130
172
|
return __generator(this, function (_a) {
|
|
131
173
|
switch (_a.label) {
|
|
132
|
-
case 0:
|
|
133
|
-
if (requestParameters['id'] == null) {
|
|
134
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteInvoice().');
|
|
135
|
-
}
|
|
136
|
-
queryParameters = {};
|
|
137
|
-
headerParameters = {};
|
|
138
|
-
urlPath = "/ui/invoices/v1/{id}";
|
|
139
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
140
|
-
return [4 /*yield*/, this.request({
|
|
141
|
-
path: urlPath,
|
|
142
|
-
method: 'DELETE',
|
|
143
|
-
headers: headerParameters,
|
|
144
|
-
query: queryParameters,
|
|
145
|
-
}, initOverrides)];
|
|
174
|
+
case 0: return [4 /*yield*/, this.deleteInvoiceRequestOpts(requestParameters)];
|
|
146
175
|
case 1:
|
|
176
|
+
requestOptions = _a.sent();
|
|
177
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
178
|
+
case 2:
|
|
147
179
|
response = _a.sent();
|
|
148
180
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
149
181
|
}
|
|
@@ -165,29 +197,42 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
165
197
|
});
|
|
166
198
|
});
|
|
167
199
|
};
|
|
200
|
+
/**
|
|
201
|
+
* Creates request options for downloadInvoice without sending the request
|
|
202
|
+
*/
|
|
203
|
+
InvoicesApi.prototype.downloadInvoiceRequestOpts = function (requestParameters) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
205
|
+
var queryParameters, headerParameters, urlPath;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
if (requestParameters['id'] == null) {
|
|
208
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling downloadInvoice().');
|
|
209
|
+
}
|
|
210
|
+
queryParameters = {};
|
|
211
|
+
headerParameters = {};
|
|
212
|
+
urlPath = "/ui/invoices/v1/{id}/download";
|
|
213
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
214
|
+
return [2 /*return*/, {
|
|
215
|
+
path: urlPath,
|
|
216
|
+
method: 'GET',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
}];
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
};
|
|
168
223
|
/**
|
|
169
224
|
* download final invoice or preview
|
|
170
225
|
*/
|
|
171
226
|
InvoicesApi.prototype.downloadInvoiceRaw = function (requestParameters, initOverrides) {
|
|
172
227
|
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
-
var
|
|
228
|
+
var requestOptions, response;
|
|
174
229
|
return __generator(this, function (_a) {
|
|
175
230
|
switch (_a.label) {
|
|
176
|
-
case 0:
|
|
177
|
-
if (requestParameters['id'] == null) {
|
|
178
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling downloadInvoice().');
|
|
179
|
-
}
|
|
180
|
-
queryParameters = {};
|
|
181
|
-
headerParameters = {};
|
|
182
|
-
urlPath = "/ui/invoices/v1/{id}/download";
|
|
183
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
184
|
-
return [4 /*yield*/, this.request({
|
|
185
|
-
path: urlPath,
|
|
186
|
-
method: 'GET',
|
|
187
|
-
headers: headerParameters,
|
|
188
|
-
query: queryParameters,
|
|
189
|
-
}, initOverrides)];
|
|
231
|
+
case 0: return [4 /*yield*/, this.downloadInvoiceRequestOpts(requestParameters)];
|
|
190
232
|
case 1:
|
|
233
|
+
requestOptions = _a.sent();
|
|
234
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
235
|
+
case 2:
|
|
191
236
|
response = _a.sent();
|
|
192
237
|
return [2 /*return*/, new runtime.BlobApiResponse(response)];
|
|
193
238
|
}
|
|
@@ -211,31 +256,44 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
211
256
|
});
|
|
212
257
|
});
|
|
213
258
|
};
|
|
259
|
+
/**
|
|
260
|
+
* Creates request options for duplicateInvoice without sending the request
|
|
261
|
+
*/
|
|
262
|
+
InvoicesApi.prototype.duplicateInvoiceRequestOpts = function (requestParameters) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
264
|
+
var queryParameters, headerParameters, urlPath;
|
|
265
|
+
return __generator(this, function (_a) {
|
|
266
|
+
if (requestParameters['id'] == null) {
|
|
267
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling duplicateInvoice().');
|
|
268
|
+
}
|
|
269
|
+
queryParameters = {};
|
|
270
|
+
headerParameters = {};
|
|
271
|
+
urlPath = "/ui/invoices/v1/{id}/duplicate";
|
|
272
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
273
|
+
return [2 /*return*/, {
|
|
274
|
+
path: urlPath,
|
|
275
|
+
method: 'GET',
|
|
276
|
+
headers: headerParameters,
|
|
277
|
+
query: queryParameters,
|
|
278
|
+
}];
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
};
|
|
214
282
|
/**
|
|
215
283
|
* get original invoice dto
|
|
216
284
|
*/
|
|
217
285
|
InvoicesApi.prototype.duplicateInvoiceRaw = function (requestParameters, initOverrides) {
|
|
218
286
|
return __awaiter(this, void 0, void 0, function () {
|
|
219
|
-
var
|
|
287
|
+
var requestOptions, response;
|
|
220
288
|
return __generator(this, function (_a) {
|
|
221
289
|
switch (_a.label) {
|
|
222
|
-
case 0:
|
|
223
|
-
if (requestParameters['id'] == null) {
|
|
224
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling duplicateInvoice().');
|
|
225
|
-
}
|
|
226
|
-
queryParameters = {};
|
|
227
|
-
headerParameters = {};
|
|
228
|
-
urlPath = "/ui/invoices/v1/{id}/duplicate";
|
|
229
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
230
|
-
return [4 /*yield*/, this.request({
|
|
231
|
-
path: urlPath,
|
|
232
|
-
method: 'GET',
|
|
233
|
-
headers: headerParameters,
|
|
234
|
-
query: queryParameters,
|
|
235
|
-
}, initOverrides)];
|
|
290
|
+
case 0: return [4 /*yield*/, this.duplicateInvoiceRequestOpts(requestParameters)];
|
|
236
291
|
case 1:
|
|
292
|
+
requestOptions = _a.sent();
|
|
293
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
294
|
+
case 2:
|
|
237
295
|
response = _a.sent();
|
|
238
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
296
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, InvoiceDto_1.InvoiceDtoFromJSON)(jsonValue); })];
|
|
239
297
|
}
|
|
240
298
|
});
|
|
241
299
|
});
|
|
@@ -257,31 +315,44 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
257
315
|
});
|
|
258
316
|
});
|
|
259
317
|
};
|
|
318
|
+
/**
|
|
319
|
+
* Creates request options for finalizeInvoice without sending the request
|
|
320
|
+
*/
|
|
321
|
+
InvoicesApi.prototype.finalizeInvoiceRequestOpts = function (requestParameters) {
|
|
322
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
323
|
+
var queryParameters, headerParameters, urlPath;
|
|
324
|
+
return __generator(this, function (_a) {
|
|
325
|
+
if (requestParameters['id'] == null) {
|
|
326
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling finalizeInvoice().');
|
|
327
|
+
}
|
|
328
|
+
queryParameters = {};
|
|
329
|
+
headerParameters = {};
|
|
330
|
+
urlPath = "/ui/invoices/v1/{id}/finalize";
|
|
331
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
332
|
+
return [2 /*return*/, {
|
|
333
|
+
path: urlPath,
|
|
334
|
+
method: 'POST',
|
|
335
|
+
headers: headerParameters,
|
|
336
|
+
query: queryParameters,
|
|
337
|
+
}];
|
|
338
|
+
});
|
|
339
|
+
});
|
|
340
|
+
};
|
|
260
341
|
/**
|
|
261
342
|
* finalize invoice
|
|
262
343
|
*/
|
|
263
344
|
InvoicesApi.prototype.finalizeInvoiceRaw = function (requestParameters, initOverrides) {
|
|
264
345
|
return __awaiter(this, void 0, void 0, function () {
|
|
265
|
-
var
|
|
346
|
+
var requestOptions, response;
|
|
266
347
|
return __generator(this, function (_a) {
|
|
267
348
|
switch (_a.label) {
|
|
268
|
-
case 0:
|
|
269
|
-
if (requestParameters['id'] == null) {
|
|
270
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling finalizeInvoice().');
|
|
271
|
-
}
|
|
272
|
-
queryParameters = {};
|
|
273
|
-
headerParameters = {};
|
|
274
|
-
urlPath = "/ui/invoices/v1/{id}/finalize";
|
|
275
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
276
|
-
return [4 /*yield*/, this.request({
|
|
277
|
-
path: urlPath,
|
|
278
|
-
method: 'POST',
|
|
279
|
-
headers: headerParameters,
|
|
280
|
-
query: queryParameters,
|
|
281
|
-
}, initOverrides)];
|
|
349
|
+
case 0: return [4 /*yield*/, this.finalizeInvoiceRequestOpts(requestParameters)];
|
|
282
350
|
case 1:
|
|
351
|
+
requestOptions = _a.sent();
|
|
352
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
353
|
+
case 2:
|
|
283
354
|
response = _a.sent();
|
|
284
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
355
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, InvoiceDto_1.InvoiceDtoFromJSON)(jsonValue); })];
|
|
285
356
|
}
|
|
286
357
|
});
|
|
287
358
|
});
|
|
@@ -303,36 +374,49 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
303
374
|
});
|
|
304
375
|
});
|
|
305
376
|
};
|
|
377
|
+
/**
|
|
378
|
+
* Creates request options for getAllInvoices without sending the request
|
|
379
|
+
*/
|
|
380
|
+
InvoicesApi.prototype.getAllInvoicesRequestOpts = function (requestParameters) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
382
|
+
var queryParameters, headerParameters, urlPath;
|
|
383
|
+
return __generator(this, function (_a) {
|
|
384
|
+
if (requestParameters['pageable'] == null) {
|
|
385
|
+
throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllInvoices().');
|
|
386
|
+
}
|
|
387
|
+
queryParameters = {};
|
|
388
|
+
if (requestParameters['pageable'] != null) {
|
|
389
|
+
queryParameters['pageable'] = requestParameters['pageable'];
|
|
390
|
+
}
|
|
391
|
+
if (requestParameters['filter'] != null) {
|
|
392
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
393
|
+
}
|
|
394
|
+
headerParameters = {};
|
|
395
|
+
urlPath = "/ui/invoices/v1";
|
|
396
|
+
return [2 /*return*/, {
|
|
397
|
+
path: urlPath,
|
|
398
|
+
method: 'GET',
|
|
399
|
+
headers: headerParameters,
|
|
400
|
+
query: queryParameters,
|
|
401
|
+
}];
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
};
|
|
306
405
|
/**
|
|
307
406
|
* get all invoices
|
|
308
407
|
*/
|
|
309
408
|
InvoicesApi.prototype.getAllInvoicesRaw = function (requestParameters, initOverrides) {
|
|
310
409
|
return __awaiter(this, void 0, void 0, function () {
|
|
311
|
-
var
|
|
410
|
+
var requestOptions, response;
|
|
312
411
|
return __generator(this, function (_a) {
|
|
313
412
|
switch (_a.label) {
|
|
314
|
-
case 0:
|
|
315
|
-
if (requestParameters['pageable'] == null) {
|
|
316
|
-
throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllInvoices().');
|
|
317
|
-
}
|
|
318
|
-
queryParameters = {};
|
|
319
|
-
if (requestParameters['pageable'] != null) {
|
|
320
|
-
queryParameters['pageable'] = requestParameters['pageable'];
|
|
321
|
-
}
|
|
322
|
-
if (requestParameters['filter'] != null) {
|
|
323
|
-
queryParameters['filter'] = requestParameters['filter'];
|
|
324
|
-
}
|
|
325
|
-
headerParameters = {};
|
|
326
|
-
urlPath = "/ui/invoices/v1";
|
|
327
|
-
return [4 /*yield*/, this.request({
|
|
328
|
-
path: urlPath,
|
|
329
|
-
method: 'GET',
|
|
330
|
-
headers: headerParameters,
|
|
331
|
-
query: queryParameters,
|
|
332
|
-
}, initOverrides)];
|
|
413
|
+
case 0: return [4 /*yield*/, this.getAllInvoicesRequestOpts(requestParameters)];
|
|
333
414
|
case 1:
|
|
415
|
+
requestOptions = _a.sent();
|
|
416
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
417
|
+
case 2:
|
|
334
418
|
response = _a.sent();
|
|
335
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
419
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetAllInvoices200Response_1.GetAllInvoices200ResponseFromJSON)(jsonValue); })];
|
|
336
420
|
}
|
|
337
421
|
});
|
|
338
422
|
});
|
|
@@ -354,31 +438,44 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
354
438
|
});
|
|
355
439
|
});
|
|
356
440
|
};
|
|
441
|
+
/**
|
|
442
|
+
* Creates request options for getInvoice without sending the request
|
|
443
|
+
*/
|
|
444
|
+
InvoicesApi.prototype.getInvoiceRequestOpts = function (requestParameters) {
|
|
445
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
446
|
+
var queryParameters, headerParameters, urlPath;
|
|
447
|
+
return __generator(this, function (_a) {
|
|
448
|
+
if (requestParameters['id'] == null) {
|
|
449
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getInvoice().');
|
|
450
|
+
}
|
|
451
|
+
queryParameters = {};
|
|
452
|
+
headerParameters = {};
|
|
453
|
+
urlPath = "/ui/invoices/v1/{id}";
|
|
454
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
455
|
+
return [2 /*return*/, {
|
|
456
|
+
path: urlPath,
|
|
457
|
+
method: 'GET',
|
|
458
|
+
headers: headerParameters,
|
|
459
|
+
query: queryParameters,
|
|
460
|
+
}];
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
};
|
|
357
464
|
/**
|
|
358
465
|
* read one invoice
|
|
359
466
|
*/
|
|
360
467
|
InvoicesApi.prototype.getInvoiceRaw = function (requestParameters, initOverrides) {
|
|
361
468
|
return __awaiter(this, void 0, void 0, function () {
|
|
362
|
-
var
|
|
469
|
+
var requestOptions, response;
|
|
363
470
|
return __generator(this, function (_a) {
|
|
364
471
|
switch (_a.label) {
|
|
365
|
-
case 0:
|
|
366
|
-
if (requestParameters['id'] == null) {
|
|
367
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getInvoice().');
|
|
368
|
-
}
|
|
369
|
-
queryParameters = {};
|
|
370
|
-
headerParameters = {};
|
|
371
|
-
urlPath = "/ui/invoices/v1/{id}";
|
|
372
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
373
|
-
return [4 /*yield*/, this.request({
|
|
374
|
-
path: urlPath,
|
|
375
|
-
method: 'GET',
|
|
376
|
-
headers: headerParameters,
|
|
377
|
-
query: queryParameters,
|
|
378
|
-
}, initOverrides)];
|
|
472
|
+
case 0: return [4 /*yield*/, this.getInvoiceRequestOpts(requestParameters)];
|
|
379
473
|
case 1:
|
|
474
|
+
requestOptions = _a.sent();
|
|
475
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
476
|
+
case 2:
|
|
380
477
|
response = _a.sent();
|
|
381
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
478
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, InvoiceDto_1.InvoiceDtoFromJSON)(jsonValue); })];
|
|
382
479
|
}
|
|
383
480
|
});
|
|
384
481
|
});
|
|
@@ -400,39 +497,52 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
400
497
|
});
|
|
401
498
|
});
|
|
402
499
|
};
|
|
500
|
+
/**
|
|
501
|
+
* Creates request options for markInvoiceAsPaid without sending the request
|
|
502
|
+
*/
|
|
503
|
+
InvoicesApi.prototype.markInvoiceAsPaidRequestOpts = function (requestParameters) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
505
|
+
var queryParameters, headerParameters, urlPath;
|
|
506
|
+
return __generator(this, function (_a) {
|
|
507
|
+
if (requestParameters['id'] == null) {
|
|
508
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling markInvoiceAsPaid().');
|
|
509
|
+
}
|
|
510
|
+
if (requestParameters['markInvoiceAsPaidRequest'] == null) {
|
|
511
|
+
throw new runtime.RequiredError('markInvoiceAsPaidRequest', 'Required parameter "markInvoiceAsPaidRequest" was null or undefined when calling markInvoiceAsPaid().');
|
|
512
|
+
}
|
|
513
|
+
queryParameters = {};
|
|
514
|
+
if (requestParameters['force'] != null) {
|
|
515
|
+
queryParameters['force'] = requestParameters['force'];
|
|
516
|
+
}
|
|
517
|
+
headerParameters = {};
|
|
518
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
519
|
+
urlPath = "/ui/invoices/v1/{id}/markAsPaid";
|
|
520
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
521
|
+
return [2 /*return*/, {
|
|
522
|
+
path: urlPath,
|
|
523
|
+
method: 'PUT',
|
|
524
|
+
headers: headerParameters,
|
|
525
|
+
query: queryParameters,
|
|
526
|
+
body: (0, MarkInvoiceAsPaidRequest_1.MarkInvoiceAsPaidRequestToJSON)(requestParameters['markInvoiceAsPaidRequest']),
|
|
527
|
+
}];
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
};
|
|
403
531
|
/**
|
|
404
532
|
* mark Invoice as paid
|
|
405
533
|
*/
|
|
406
534
|
InvoicesApi.prototype.markInvoiceAsPaidRaw = function (requestParameters, initOverrides) {
|
|
407
535
|
return __awaiter(this, void 0, void 0, function () {
|
|
408
|
-
var
|
|
536
|
+
var requestOptions, response;
|
|
409
537
|
return __generator(this, function (_a) {
|
|
410
538
|
switch (_a.label) {
|
|
411
|
-
case 0:
|
|
412
|
-
if (requestParameters['id'] == null) {
|
|
413
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling markInvoiceAsPaid().');
|
|
414
|
-
}
|
|
415
|
-
if (requestParameters['markInvoiceAsPaidRequest'] == null) {
|
|
416
|
-
throw new runtime.RequiredError('markInvoiceAsPaidRequest', 'Required parameter "markInvoiceAsPaidRequest" was null or undefined when calling markInvoiceAsPaid().');
|
|
417
|
-
}
|
|
418
|
-
queryParameters = {};
|
|
419
|
-
if (requestParameters['force'] != null) {
|
|
420
|
-
queryParameters['force'] = requestParameters['force'];
|
|
421
|
-
}
|
|
422
|
-
headerParameters = {};
|
|
423
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
424
|
-
urlPath = "/ui/invoices/v1/{id}/markAsPaid";
|
|
425
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
426
|
-
return [4 /*yield*/, this.request({
|
|
427
|
-
path: urlPath,
|
|
428
|
-
method: 'PUT',
|
|
429
|
-
headers: headerParameters,
|
|
430
|
-
query: queryParameters,
|
|
431
|
-
body: (0, index_1.MarkInvoiceAsPaidRequestToJSON)(requestParameters['markInvoiceAsPaidRequest']),
|
|
432
|
-
}, initOverrides)];
|
|
539
|
+
case 0: return [4 /*yield*/, this.markInvoiceAsPaidRequestOpts(requestParameters)];
|
|
433
540
|
case 1:
|
|
541
|
+
requestOptions = _a.sent();
|
|
542
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
543
|
+
case 2:
|
|
434
544
|
response = _a.sent();
|
|
435
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
545
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, InvoiceDto_1.InvoiceDtoFromJSON)(jsonValue); })];
|
|
436
546
|
}
|
|
437
547
|
});
|
|
438
548
|
});
|
|
@@ -454,36 +564,115 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
454
564
|
});
|
|
455
565
|
});
|
|
456
566
|
};
|
|
567
|
+
/**
|
|
568
|
+
* Creates request options for renderInvoiceWhatsAppMessage without sending the request
|
|
569
|
+
*/
|
|
570
|
+
InvoicesApi.prototype.renderInvoiceWhatsAppMessageRequestOpts = function (requestParameters) {
|
|
571
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
572
|
+
var queryParameters, headerParameters, urlPath;
|
|
573
|
+
return __generator(this, function (_a) {
|
|
574
|
+
if (requestParameters['id'] == null) {
|
|
575
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling renderInvoiceWhatsAppMessage().');
|
|
576
|
+
}
|
|
577
|
+
if (requestParameters['invoiceWhatsAppMessageDto'] == null) {
|
|
578
|
+
throw new runtime.RequiredError('invoiceWhatsAppMessageDto', 'Required parameter "invoiceWhatsAppMessageDto" was null or undefined when calling renderInvoiceWhatsAppMessage().');
|
|
579
|
+
}
|
|
580
|
+
queryParameters = {};
|
|
581
|
+
headerParameters = {};
|
|
582
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
583
|
+
urlPath = "/ui/invoices/v1/{id}/whatsapp-message";
|
|
584
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
585
|
+
return [2 /*return*/, {
|
|
586
|
+
path: urlPath,
|
|
587
|
+
method: 'POST',
|
|
588
|
+
headers: headerParameters,
|
|
589
|
+
query: queryParameters,
|
|
590
|
+
body: (0, InvoiceWhatsAppMessageDto_1.InvoiceWhatsAppMessageDtoToJSON)(requestParameters['invoiceWhatsAppMessageDto']),
|
|
591
|
+
}];
|
|
592
|
+
});
|
|
593
|
+
});
|
|
594
|
+
};
|
|
595
|
+
/**
|
|
596
|
+
* Resolves the placeholders of the message template, e.g. the link to the invoice portal, and returns the plain text to be sent via WhatsApp.
|
|
597
|
+
* render the WhatsApp message for a finalized invoice
|
|
598
|
+
*/
|
|
599
|
+
InvoicesApi.prototype.renderInvoiceWhatsAppMessageRaw = function (requestParameters, initOverrides) {
|
|
600
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
601
|
+
var requestOptions, response;
|
|
602
|
+
return __generator(this, function (_a) {
|
|
603
|
+
switch (_a.label) {
|
|
604
|
+
case 0: return [4 /*yield*/, this.renderInvoiceWhatsAppMessageRequestOpts(requestParameters)];
|
|
605
|
+
case 1:
|
|
606
|
+
requestOptions = _a.sent();
|
|
607
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
608
|
+
case 2:
|
|
609
|
+
response = _a.sent();
|
|
610
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, InvoiceWhatsAppMessageDto_1.InvoiceWhatsAppMessageDtoFromJSON)(jsonValue); })];
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
});
|
|
614
|
+
};
|
|
615
|
+
/**
|
|
616
|
+
* Resolves the placeholders of the message template, e.g. the link to the invoice portal, and returns the plain text to be sent via WhatsApp.
|
|
617
|
+
* render the WhatsApp message for a finalized invoice
|
|
618
|
+
*/
|
|
619
|
+
InvoicesApi.prototype.renderInvoiceWhatsAppMessage = function (requestParameters, initOverrides) {
|
|
620
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
621
|
+
var response;
|
|
622
|
+
return __generator(this, function (_a) {
|
|
623
|
+
switch (_a.label) {
|
|
624
|
+
case 0: return [4 /*yield*/, this.renderInvoiceWhatsAppMessageRaw(requestParameters, initOverrides)];
|
|
625
|
+
case 1:
|
|
626
|
+
response = _a.sent();
|
|
627
|
+
return [4 /*yield*/, response.value()];
|
|
628
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
});
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* Creates request options for shareInvoice without sending the request
|
|
635
|
+
*/
|
|
636
|
+
InvoicesApi.prototype.shareInvoiceRequestOpts = function (requestParameters) {
|
|
637
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
638
|
+
var queryParameters, headerParameters, urlPath;
|
|
639
|
+
return __generator(this, function (_a) {
|
|
640
|
+
if (requestParameters['id'] == null) {
|
|
641
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling shareInvoice().');
|
|
642
|
+
}
|
|
643
|
+
if (requestParameters['invoicePortalShareConfigDto'] == null) {
|
|
644
|
+
throw new runtime.RequiredError('invoicePortalShareConfigDto', 'Required parameter "invoicePortalShareConfigDto" was null or undefined when calling shareInvoice().');
|
|
645
|
+
}
|
|
646
|
+
queryParameters = {};
|
|
647
|
+
headerParameters = {};
|
|
648
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
649
|
+
urlPath = "/ui/invoices/v1/{id}/share";
|
|
650
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
651
|
+
return [2 /*return*/, {
|
|
652
|
+
path: urlPath,
|
|
653
|
+
method: 'POST',
|
|
654
|
+
headers: headerParameters,
|
|
655
|
+
query: queryParameters,
|
|
656
|
+
body: (0, InvoicePortalShareConfigDto_1.InvoicePortalShareConfigDtoToJSON)(requestParameters['invoicePortalShareConfigDto']),
|
|
657
|
+
}];
|
|
658
|
+
});
|
|
659
|
+
});
|
|
660
|
+
};
|
|
457
661
|
/**
|
|
458
662
|
* send invoice via email
|
|
459
663
|
*/
|
|
460
664
|
InvoicesApi.prototype.shareInvoiceRaw = function (requestParameters, initOverrides) {
|
|
461
665
|
return __awaiter(this, void 0, void 0, function () {
|
|
462
|
-
var
|
|
666
|
+
var requestOptions, response;
|
|
463
667
|
return __generator(this, function (_a) {
|
|
464
668
|
switch (_a.label) {
|
|
465
|
-
case 0:
|
|
466
|
-
if (requestParameters['id'] == null) {
|
|
467
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling shareInvoice().');
|
|
468
|
-
}
|
|
469
|
-
if (requestParameters['invoicePortalShareConfigDto'] == null) {
|
|
470
|
-
throw new runtime.RequiredError('invoicePortalShareConfigDto', 'Required parameter "invoicePortalShareConfigDto" was null or undefined when calling shareInvoice().');
|
|
471
|
-
}
|
|
472
|
-
queryParameters = {};
|
|
473
|
-
headerParameters = {};
|
|
474
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
475
|
-
urlPath = "/ui/invoices/v1/{id}/share";
|
|
476
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
477
|
-
return [4 /*yield*/, this.request({
|
|
478
|
-
path: urlPath,
|
|
479
|
-
method: 'POST',
|
|
480
|
-
headers: headerParameters,
|
|
481
|
-
query: queryParameters,
|
|
482
|
-
body: (0, index_1.InvoicePortalShareConfigDtoToJSON)(requestParameters['invoicePortalShareConfigDto']),
|
|
483
|
-
}, initOverrides)];
|
|
669
|
+
case 0: return [4 /*yield*/, this.shareInvoiceRequestOpts(requestParameters)];
|
|
484
670
|
case 1:
|
|
671
|
+
requestOptions = _a.sent();
|
|
672
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
673
|
+
case 2:
|
|
485
674
|
response = _a.sent();
|
|
486
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
675
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ShareInvoiceDto_1.ShareInvoiceDtoFromJSON)(jsonValue); })];
|
|
487
676
|
}
|
|
488
677
|
});
|
|
489
678
|
});
|
|
@@ -505,39 +694,52 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
505
694
|
});
|
|
506
695
|
});
|
|
507
696
|
};
|
|
697
|
+
/**
|
|
698
|
+
* Creates request options for updateInvoice without sending the request
|
|
699
|
+
*/
|
|
700
|
+
InvoicesApi.prototype.updateInvoiceRequestOpts = function (requestParameters) {
|
|
701
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
702
|
+
var queryParameters, headerParameters, urlPath;
|
|
703
|
+
return __generator(this, function (_a) {
|
|
704
|
+
if (requestParameters['id'] == null) {
|
|
705
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateInvoice().');
|
|
706
|
+
}
|
|
707
|
+
if (requestParameters['invoiceDto'] == null) {
|
|
708
|
+
throw new runtime.RequiredError('invoiceDto', 'Required parameter "invoiceDto" was null or undefined when calling updateInvoice().');
|
|
709
|
+
}
|
|
710
|
+
queryParameters = {};
|
|
711
|
+
if (requestParameters['force'] != null) {
|
|
712
|
+
queryParameters['force'] = requestParameters['force'];
|
|
713
|
+
}
|
|
714
|
+
headerParameters = {};
|
|
715
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
716
|
+
urlPath = "/ui/invoices/v1/{id}";
|
|
717
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
718
|
+
return [2 /*return*/, {
|
|
719
|
+
path: urlPath,
|
|
720
|
+
method: 'PUT',
|
|
721
|
+
headers: headerParameters,
|
|
722
|
+
query: queryParameters,
|
|
723
|
+
body: (0, InvoiceDto_1.InvoiceDtoToJSON)(requestParameters['invoiceDto']),
|
|
724
|
+
}];
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
};
|
|
508
728
|
/**
|
|
509
729
|
* Update an invoice
|
|
510
730
|
*/
|
|
511
731
|
InvoicesApi.prototype.updateInvoiceRaw = function (requestParameters, initOverrides) {
|
|
512
732
|
return __awaiter(this, void 0, void 0, function () {
|
|
513
|
-
var
|
|
733
|
+
var requestOptions, response;
|
|
514
734
|
return __generator(this, function (_a) {
|
|
515
735
|
switch (_a.label) {
|
|
516
|
-
case 0:
|
|
517
|
-
if (requestParameters['id'] == null) {
|
|
518
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateInvoice().');
|
|
519
|
-
}
|
|
520
|
-
if (requestParameters['invoiceDto'] == null) {
|
|
521
|
-
throw new runtime.RequiredError('invoiceDto', 'Required parameter "invoiceDto" was null or undefined when calling updateInvoice().');
|
|
522
|
-
}
|
|
523
|
-
queryParameters = {};
|
|
524
|
-
if (requestParameters['force'] != null) {
|
|
525
|
-
queryParameters['force'] = requestParameters['force'];
|
|
526
|
-
}
|
|
527
|
-
headerParameters = {};
|
|
528
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
529
|
-
urlPath = "/ui/invoices/v1/{id}";
|
|
530
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
531
|
-
return [4 /*yield*/, this.request({
|
|
532
|
-
path: urlPath,
|
|
533
|
-
method: 'PUT',
|
|
534
|
-
headers: headerParameters,
|
|
535
|
-
query: queryParameters,
|
|
536
|
-
body: (0, index_1.InvoiceDtoToJSON)(requestParameters['invoiceDto']),
|
|
537
|
-
}, initOverrides)];
|
|
736
|
+
case 0: return [4 /*yield*/, this.updateInvoiceRequestOpts(requestParameters)];
|
|
538
737
|
case 1:
|
|
738
|
+
requestOptions = _a.sent();
|
|
739
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
740
|
+
case 2:
|
|
539
741
|
response = _a.sent();
|
|
540
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
742
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, InvoiceDto_1.InvoiceDtoFromJSON)(jsonValue); })];
|
|
541
743
|
}
|
|
542
744
|
});
|
|
543
745
|
});
|
|
@@ -559,31 +761,44 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
559
761
|
});
|
|
560
762
|
});
|
|
561
763
|
};
|
|
764
|
+
/**
|
|
765
|
+
* Creates request options for validateInvoice without sending the request
|
|
766
|
+
*/
|
|
767
|
+
InvoicesApi.prototype.validateInvoiceRequestOpts = function (requestParameters) {
|
|
768
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
769
|
+
var queryParameters, headerParameters, urlPath;
|
|
770
|
+
return __generator(this, function (_a) {
|
|
771
|
+
if (requestParameters['id'] == null) {
|
|
772
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling validateInvoice().');
|
|
773
|
+
}
|
|
774
|
+
queryParameters = {};
|
|
775
|
+
headerParameters = {};
|
|
776
|
+
urlPath = "/ui/invoices/v1/{id}/validate";
|
|
777
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
778
|
+
return [2 /*return*/, {
|
|
779
|
+
path: urlPath,
|
|
780
|
+
method: 'POST',
|
|
781
|
+
headers: headerParameters,
|
|
782
|
+
query: queryParameters,
|
|
783
|
+
}];
|
|
784
|
+
});
|
|
785
|
+
});
|
|
786
|
+
};
|
|
562
787
|
/**
|
|
563
788
|
* validate invoice
|
|
564
789
|
*/
|
|
565
790
|
InvoicesApi.prototype.validateInvoiceRaw = function (requestParameters, initOverrides) {
|
|
566
791
|
return __awaiter(this, void 0, void 0, function () {
|
|
567
|
-
var
|
|
792
|
+
var requestOptions, response;
|
|
568
793
|
return __generator(this, function (_a) {
|
|
569
794
|
switch (_a.label) {
|
|
570
|
-
case 0:
|
|
571
|
-
if (requestParameters['id'] == null) {
|
|
572
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling validateInvoice().');
|
|
573
|
-
}
|
|
574
|
-
queryParameters = {};
|
|
575
|
-
headerParameters = {};
|
|
576
|
-
urlPath = "/ui/invoices/v1/{id}/validate";
|
|
577
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
578
|
-
return [4 /*yield*/, this.request({
|
|
579
|
-
path: urlPath,
|
|
580
|
-
method: 'POST',
|
|
581
|
-
headers: headerParameters,
|
|
582
|
-
query: queryParameters,
|
|
583
|
-
}, initOverrides)];
|
|
795
|
+
case 0: return [4 /*yield*/, this.validateInvoiceRequestOpts(requestParameters)];
|
|
584
796
|
case 1:
|
|
797
|
+
requestOptions = _a.sent();
|
|
798
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
799
|
+
case 2:
|
|
585
800
|
response = _a.sent();
|
|
586
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
801
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, InvoiceValidationResult_1.InvoiceValidationResultFromJSON)(jsonValue); })];
|
|
587
802
|
}
|
|
588
803
|
});
|
|
589
804
|
});
|