@kommerz/ts-client 1.184.1 → 1.187.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.
Files changed (587) hide show
  1. package/dist/apis/AbsenceEntriesApi.d.ts +80 -3
  2. package/dist/apis/AbsenceEntriesApi.js +271 -165
  3. package/dist/apis/AbsenceTypesApi.d.ts +47 -1
  4. package/dist/apis/AbsenceTypesApi.js +160 -94
  5. package/dist/apis/AcceptanceDocumentsApi.d.ts +51 -1
  6. package/dist/apis/AcceptanceDocumentsApi.js +165 -98
  7. package/dist/apis/AcceptancePortalDocumentsApi.d.ts +42 -3
  8. package/dist/apis/AcceptancePortalDocumentsApi.js +131 -77
  9. package/dist/apis/AccessTokensApi.d.ts +47 -1
  10. package/dist/apis/AccessTokensApi.js +160 -94
  11. package/dist/apis/AccountingCentersApi.d.ts +40 -1
  12. package/dist/apis/AccountingCentersApi.js +151 -85
  13. package/dist/apis/AccountingLedgersApi.d.ts +68 -1
  14. package/dist/apis/AccountingLedgersApi.js +222 -142
  15. package/dist/apis/AccountingReceiptsApi.d.ts +51 -1
  16. package/dist/apis/AccountingReceiptsApi.js +181 -115
  17. package/dist/apis/AccountingSettlementsApi.d.ts +47 -1
  18. package/dist/apis/AccountingSettlementsApi.js +160 -94
  19. package/dist/apis/AccountingStatementsApi.d.ts +34 -1
  20. package/dist/apis/AccountingStatementsApi.js +92 -65
  21. package/dist/apis/AccountingTransactionsApi.d.ts +47 -1
  22. package/dist/apis/AccountingTransactionsApi.js +160 -94
  23. package/dist/apis/AccountingTurnoversApi.d.ts +66 -1
  24. package/dist/apis/AccountingTurnoversApi.js +183 -117
  25. package/dist/apis/ActivitiesApi.d.ts +20 -1
  26. package/dist/apis/ActivitiesApi.js +65 -38
  27. package/dist/apis/ApprovalEntriesApi.d.ts +47 -1
  28. package/dist/apis/ApprovalEntriesApi.js +160 -94
  29. package/dist/apis/ApprovalEntriesApproveApi.d.ts +29 -1
  30. package/dist/apis/ApprovalEntriesApproveApi.js +100 -61
  31. package/dist/apis/ApprovalTypesApi.d.ts +47 -1
  32. package/dist/apis/ApprovalTypesApi.js +160 -94
  33. package/dist/apis/BankingAccountsApi.d.ts +64 -1
  34. package/dist/apis/BankingAccountsApi.js +201 -121
  35. package/dist/apis/BankingInstitutesApi.d.ts +5 -1
  36. package/dist/apis/BankingInstitutesApi.js +26 -13
  37. package/dist/apis/BankingRegistrationsApi.d.ts +56 -1
  38. package/dist/apis/BankingRegistrationsApi.js +187 -106
  39. package/dist/apis/CalendarEntriesApi.d.ts +47 -1
  40. package/dist/apis/CalendarEntriesApi.js +160 -94
  41. package/dist/apis/CalendarEntryTypesApi.d.ts +47 -1
  42. package/dist/apis/CalendarEntryTypesApi.js +160 -94
  43. package/dist/apis/CalendarPortalApi.d.ts +25 -1
  44. package/dist/apis/CalendarPortalApi.js +73 -46
  45. package/dist/apis/CommentsApi.d.ts +64 -1
  46. package/dist/apis/CommentsApi.js +224 -132
  47. package/dist/apis/ConfigurationsApi.d.ts +47 -1
  48. package/dist/apis/ConfigurationsApi.js +160 -94
  49. package/dist/apis/ContractStatusApi.d.ts +47 -1
  50. package/dist/apis/ContractStatusApi.js +160 -94
  51. package/dist/apis/ContractTypesApi.d.ts +47 -1
  52. package/dist/apis/ContractTypesApi.js +160 -94
  53. package/dist/apis/ContractsApi.d.ts +47 -1
  54. package/dist/apis/ContractsApi.js +160 -94
  55. package/dist/apis/CustomersApi.d.ts +47 -1
  56. package/dist/apis/CustomersApi.js +160 -94
  57. package/dist/apis/CustomersBankdetailsApi.d.ts +62 -1
  58. package/dist/apis/CustomersBankdetailsApi.js +180 -114
  59. package/dist/apis/DataTableRowsApi.d.ts +66 -1
  60. package/dist/apis/DataTableRowsApi.js +183 -117
  61. package/dist/apis/DataTablesApi.d.ts +60 -3
  62. package/dist/apis/DataTablesApi.js +194 -115
  63. package/dist/apis/DecisionTablesApi.d.ts +47 -1
  64. package/dist/apis/DecisionTablesApi.js +160 -94
  65. package/dist/apis/DeliveryNotesApi.d.ts +70 -3
  66. package/dist/apis/DeliveryNotesApi.js +246 -141
  67. package/dist/apis/DesignTemplatesApi.d.ts +47 -1
  68. package/dist/apis/DesignTemplatesApi.js +160 -94
  69. package/dist/apis/DocumentTemplatesApi.d.ts +47 -1
  70. package/dist/apis/DocumentTemplatesApi.js +160 -94
  71. package/dist/apis/DubbingPortalApi.d.ts +25 -1
  72. package/dist/apis/DubbingPortalApi.js +84 -57
  73. package/dist/apis/DunningLettersApi.d.ts +63 -3
  74. package/dist/apis/DunningLettersApi.js +217 -125
  75. package/dist/apis/EditorTypeApi.d.ts +47 -1
  76. package/dist/apis/EditorTypeApi.js +160 -94
  77. package/dist/apis/FileDirectoriesApi.d.ts +93 -5
  78. package/dist/apis/FileDirectoriesApi.js +272 -158
  79. package/dist/apis/FileDirectorySharesApi.d.ts +106 -5
  80. package/dist/apis/FileDirectorySharesApi.js +336 -203
  81. package/dist/apis/FileTagsApi.d.ts +47 -1
  82. package/dist/apis/FileTagsApi.js +160 -94
  83. package/dist/apis/FileUploadsApi.d.ts +34 -1
  84. package/dist/apis/FileUploadsApi.js +123 -81
  85. package/dist/apis/FilesApi.d.ts +63 -3
  86. package/dist/apis/FilesApi.js +194 -127
  87. package/dist/apis/FormsPortalApi.d.ts +19 -1
  88. package/dist/apis/FormsPortalApi.js +64 -37
  89. package/dist/apis/GravatarsApi.d.ts +38 -0
  90. package/dist/apis/GravatarsApi.js +140 -0
  91. package/dist/apis/HolidaysApi.d.ts +47 -1
  92. package/dist/apis/HolidaysApi.js +160 -94
  93. package/dist/apis/HospitalityReceiptsApi.d.ts +100 -5
  94. package/dist/apis/HospitalityReceiptsApi.js +336 -203
  95. package/dist/apis/IdentifiersApi.d.ts +51 -1
  96. package/dist/apis/IdentifiersApi.js +185 -106
  97. package/dist/apis/InboxEmailsApi.d.ts +35 -2
  98. package/dist/apis/InboxEmailsApi.js +123 -70
  99. package/dist/apis/InvoicePortalApi.d.ts +53 -0
  100. package/dist/apis/InvoicePortalApi.js +201 -0
  101. package/dist/apis/InvoicesApi.d.ts +131 -5
  102. package/dist/apis/InvoicesApi.js +417 -202
  103. package/dist/apis/JobsApi.d.ts +27 -1
  104. package/dist/apis/JobsApi.js +93 -53
  105. package/dist/apis/KanbanBoardsApi.d.ts +47 -1
  106. package/dist/apis/KanbanBoardsApi.js +160 -94
  107. package/dist/apis/KanbanCardsApi.d.ts +62 -1
  108. package/dist/apis/KanbanCardsApi.js +180 -114
  109. package/dist/apis/KanbanColumnsApi.d.ts +62 -1
  110. package/dist/apis/KanbanColumnsApi.js +180 -114
  111. package/dist/apis/MentionsApi.d.ts +34 -1
  112. package/dist/apis/MentionsApi.js +121 -68
  113. package/dist/apis/NotificationTargetsApi.d.ts +30 -1
  114. package/dist/apis/NotificationTargetsApi.js +120 -67
  115. package/dist/apis/NotificationsAcksApi.d.ts +15 -1
  116. package/dist/apis/NotificationsAcksApi.js +58 -32
  117. package/dist/apis/NotificationsApi.d.ts +27 -1
  118. package/dist/apis/NotificationsApi.js +93 -53
  119. package/dist/apis/OffersApi.d.ts +82 -3
  120. package/dist/apis/OffersApi.js +282 -162
  121. package/dist/apis/OkrKeyresultsApi.d.ts +62 -1
  122. package/dist/apis/OkrKeyresultsApi.js +180 -114
  123. package/dist/apis/OkrObjectivesApi.d.ts +47 -1
  124. package/dist/apis/OkrObjectivesApi.js +160 -94
  125. package/dist/apis/PaymentBuyProductApi.d.ts +13 -1
  126. package/dist/apis/PaymentBuyProductApi.js +57 -30
  127. package/dist/apis/PaymentProductsApi.d.ts +5 -1
  128. package/dist/apis/PaymentProductsApi.js +26 -13
  129. package/dist/apis/PaymentSubscriptionsApi.d.ts +28 -1
  130. package/dist/apis/PaymentSubscriptionsApi.js +95 -54
  131. package/dist/apis/PaymentsPaymentsApi.d.ts +12 -1
  132. package/dist/apis/PaymentsPaymentsApi.js +35 -22
  133. package/dist/apis/PresenceEntriesApi.d.ts +51 -1
  134. package/dist/apis/PresenceEntriesApi.js +185 -106
  135. package/dist/apis/PresenceTypesApi.d.ts +47 -1
  136. package/dist/apis/PresenceTypesApi.js +160 -94
  137. package/dist/apis/ProductsApi.d.ts +47 -1
  138. package/dist/apis/ProductsApi.js +160 -94
  139. package/dist/apis/ReferencesApi.d.ts +30 -1
  140. package/dist/apis/ReferencesApi.js +100 -60
  141. package/dist/apis/RolesApi.d.ts +68 -3
  142. package/dist/apis/RolesApi.js +220 -94
  143. package/dist/apis/ServiceDeskMessageApi.d.ts +11 -1
  144. package/dist/apis/ServiceDeskMessageApi.js +34 -21
  145. package/dist/apis/StatisticsApi.d.ts +9 -1
  146. package/dist/apis/StatisticsApi.js +32 -18
  147. package/dist/apis/SystemsFeaturesApi.d.ts +5 -1
  148. package/dist/apis/SystemsFeaturesApi.js +26 -13
  149. package/dist/apis/SystemsTimesApi.d.ts +5 -1
  150. package/dist/apis/SystemsTimesApi.js +26 -13
  151. package/dist/apis/TagRelationsApi.d.ts +48 -1
  152. package/dist/apis/TagRelationsApi.js +162 -95
  153. package/dist/apis/TagsApi.d.ts +61 -1
  154. package/dist/apis/TagsApi.js +199 -119
  155. package/dist/apis/TenantsApi.d.ts +131 -3
  156. package/dist/apis/TenantsApi.js +447 -235
  157. package/dist/apis/TenantsOwnerAdditionApi.d.ts +37 -0
  158. package/dist/apis/TenantsOwnerAdditionApi.js +139 -0
  159. package/dist/apis/TenantsValidationApi.d.ts +17 -1
  160. package/dist/apis/TenantsValidationApi.js +63 -37
  161. package/dist/apis/TestApi.d.ts +22 -1
  162. package/dist/apis/TestApi.js +66 -39
  163. package/dist/apis/TextModulesApi.d.ts +47 -1
  164. package/dist/apis/TextModulesApi.js +160 -94
  165. package/dist/apis/TimeTrackingCalendarApi.d.ts +24 -1
  166. package/dist/apis/TimeTrackingCalendarApi.js +69 -43
  167. package/dist/apis/TimeTrackingCalendarExportApi.d.ts +18 -2
  168. package/dist/apis/TimeTrackingCalendarExportApi.js +42 -29
  169. package/dist/apis/UnitsApi.d.ts +47 -1
  170. package/dist/apis/UnitsApi.js +160 -94
  171. package/dist/apis/UsageMonitorApi.d.ts +5 -1
  172. package/dist/apis/UsageMonitorApi.js +26 -13
  173. package/dist/apis/UserPermissionsApi.d.ts +25 -1
  174. package/dist/apis/UserPermissionsApi.js +92 -53
  175. package/dist/apis/UserTenantsApi.d.ts +25 -1
  176. package/dist/apis/UserTenantsApi.js +85 -13
  177. package/dist/apis/UsersApi.d.ts +27 -1
  178. package/dist/apis/UsersApi.js +93 -53
  179. package/dist/apis/UsersMeApi.d.ts +41 -1
  180. package/dist/apis/UsersMeApi.js +201 -53
  181. package/dist/apis/UsersRegisterApi.d.ts +8 -1
  182. package/dist/apis/UsersRegisterApi.js +30 -17
  183. package/dist/apis/ValidationApi.d.ts +22 -1
  184. package/dist/apis/ValidationApi.js +89 -50
  185. package/dist/apis/WikiApi.d.ts +47 -1
  186. package/dist/apis/WikiApi.js +160 -94
  187. package/dist/apis/WikiPagesApi.d.ts +65 -1
  188. package/dist/apis/WikiPagesApi.js +183 -117
  189. package/dist/apis/WorkHoursApi.d.ts +47 -1
  190. package/dist/apis/WorkHoursApi.js +160 -94
  191. package/dist/apis/WorkflowExecutionsApi.d.ts +26 -1
  192. package/dist/apis/WorkflowExecutionsApi.js +73 -46
  193. package/dist/apis/WorkflowExternalTasksApi.d.ts +62 -1
  194. package/dist/apis/WorkflowExternalTasksApi.js +181 -115
  195. package/dist/apis/WorkflowProcessesApi.d.ts +41 -1
  196. package/dist/apis/WorkflowProcessesApi.js +152 -86
  197. package/dist/apis/WorkflowsApi.d.ts +98 -1
  198. package/dist/apis/WorkflowsApi.js +347 -200
  199. package/dist/apis/WritingsApi.d.ts +63 -3
  200. package/dist/apis/WritingsApi.js +217 -125
  201. package/dist/apis/index.d.ts +3 -0
  202. package/dist/apis/index.js +3 -0
  203. package/dist/models/AbsenceEntryDto.d.ts +0 -16
  204. package/dist/models/AbsenceTypeDto.d.ts +0 -12
  205. package/dist/models/AcceptanceDocumentDto.d.ts +0 -28
  206. package/dist/models/AcceptanceDocumentDto.js +6 -5
  207. package/dist/models/AcceptanceDocumentLogEntry.d.ts +0 -6
  208. package/dist/models/AcceptanceDocumentLogEntry.js +3 -2
  209. package/dist/models/AcceptanceDocumentLogEntryData.d.ts +0 -4
  210. package/dist/models/AcceptanceDocumentLogEntryData.js +1 -1
  211. package/dist/models/AcceptanceDocumentRecipientInfo.d.ts +0 -4
  212. package/dist/models/AcceptanceDocumentSenderInfo.d.ts +0 -6
  213. package/dist/models/AcceptancePortalAcceptDto.d.ts +0 -12
  214. package/dist/models/AcceptancePortalSendConfigDto.d.ts +0 -8
  215. package/dist/models/AcceptancePortalShareConfigDto.d.ts +0 -18
  216. package/dist/models/AccessTokenDto.d.ts +0 -16
  217. package/dist/models/AccessTokenDto.js +3 -2
  218. package/dist/models/AccountDeletionPreviewDto.d.ts +30 -0
  219. package/dist/models/AccountDeletionPreviewDto.js +51 -0
  220. package/dist/models/AccountDeletionTenantDto.d.ts +37 -0
  221. package/dist/models/AccountDeletionTenantDto.js +58 -0
  222. package/dist/models/AccountingCenterDto.d.ts +0 -18
  223. package/dist/models/AccountingCenterDto.js +1 -1
  224. package/dist/models/AccountingChartType.js +1 -1
  225. package/dist/models/AccountingConfigDto.d.ts +0 -2
  226. package/dist/models/AccountingLedgerCustomData.d.ts +0 -4
  227. package/dist/models/AccountingLedgerDto.d.ts +0 -36
  228. package/dist/models/AccountingLedgerImportType.js +1 -1
  229. package/dist/models/AccountingLedgerType.js +1 -1
  230. package/dist/models/AccountingReceiptDetailsDto.d.ts +13 -26
  231. package/dist/models/AccountingReceiptDetailsDto.js +7 -0
  232. package/dist/models/AccountingReceiptDetailsSource.d.ts +25 -0
  233. package/dist/models/AccountingReceiptDetailsSource.js +51 -0
  234. package/dist/models/AccountingReceiptDto.d.ts +0 -30
  235. package/dist/models/AccountingReceiptItemDto.d.ts +4 -12
  236. package/dist/models/AccountingReceiptItemDto.js +2 -0
  237. package/dist/models/AccountingReceiptLegalEntityDto.d.ts +20 -24
  238. package/dist/models/AccountingReceiptLegalEntityDto.js +10 -0
  239. package/dist/models/AccountingReceiptMetaDataDto.d.ts +0 -4
  240. package/dist/models/AccountingReceiptType.js +1 -1
  241. package/dist/models/AccountingScheduleDto.d.ts +0 -12
  242. package/dist/models/AccountingScheduleDto.js +7 -6
  243. package/dist/models/AccountingSettlementDto.d.ts +0 -14
  244. package/dist/models/AccountingSettlementDto.js +7 -6
  245. package/dist/models/AccountingSplitDto.d.ts +0 -12
  246. package/dist/models/AccountingSplitPair.d.ts +0 -10
  247. package/dist/models/AccountingTransactionDto.d.ts +0 -16
  248. package/dist/models/AccountingTransactionDto.js +3 -2
  249. package/dist/models/AccountingTransactionStatus.js +1 -1
  250. package/dist/models/AccountingTransactionTemplateDto.d.ts +0 -2
  251. package/dist/models/AccountingTurnoverDto.d.ts +0 -6
  252. package/dist/models/AcknowledgeNotificationsDto.d.ts +0 -2
  253. package/dist/models/ActivityDto.d.ts +0 -18
  254. package/dist/models/ActivityDto.js +3 -2
  255. package/dist/models/ActivityReferenceDto.d.ts +0 -12
  256. package/dist/models/ActivityType.js +1 -1
  257. package/dist/models/AddressDto.d.ts +0 -12
  258. package/dist/models/AmountDto.d.ts +0 -4
  259. package/dist/models/ApprovalDecisionEnum.js +1 -1
  260. package/dist/models/ApprovalEntryDto.d.ts +0 -20
  261. package/dist/models/ApprovalEntryDto.js +5 -4
  262. package/dist/models/ApprovalModeEnum.js +1 -1
  263. package/dist/models/ApprovalStatusEnum.js +1 -1
  264. package/dist/models/ApprovalTypeDto.d.ts +0 -16
  265. package/dist/models/BankAccountDto.d.ts +0 -22
  266. package/dist/models/BankAccountRegistrationDto.d.ts +0 -8
  267. package/dist/models/BankConnectionDto.d.ts +0 -6
  268. package/dist/models/BankDetailsDto.d.ts +0 -16
  269. package/dist/models/BankRegistrationDto.d.ts +0 -22
  270. package/dist/models/BrevoEmailWebhookEvent.d.ts +0 -30
  271. package/dist/models/CalendarAttendeeDto.d.ts +0 -8
  272. package/dist/models/CalendarEntryDto.d.ts +0 -20
  273. package/dist/models/CalendarEntryTypeDto.d.ts +0 -18
  274. package/dist/models/CalendarPortalEventDto.d.ts +0 -18
  275. package/dist/models/CalendarPortalRsvpDto.d.ts +0 -4
  276. package/dist/models/CalendarPortalRsvpStatus.js +1 -1
  277. package/dist/models/CenterStatementDto.d.ts +0 -14
  278. package/dist/models/CenterStatementDto.js +5 -4
  279. package/dist/models/ChannelIdType.js +1 -1
  280. package/dist/models/CommentDto.d.ts +0 -16
  281. package/dist/models/CommentDto.js +3 -2
  282. package/dist/models/ConfigKey.js +1 -1
  283. package/dist/models/ConfigurationDto.d.ts +0 -10
  284. package/dist/models/ContactDto.d.ts +0 -6
  285. package/dist/models/ContractDto.d.ts +0 -24
  286. package/dist/models/ContractStatusDto.d.ts +0 -10
  287. package/dist/models/ContractTypeAttributeDto.d.ts +0 -6
  288. package/dist/models/ContractTypeAttributeDto.js +1 -1
  289. package/dist/models/ContractTypeDto.d.ts +0 -10
  290. package/dist/models/CountryCode.js +1 -1
  291. package/dist/models/CreateTagRelationsDto.d.ts +0 -8
  292. package/dist/models/CreateTenantRequest.d.ts +0 -4
  293. package/dist/models/CustomerDto.d.ts +0 -32
  294. package/dist/models/CustomerDto.js +1 -1
  295. package/dist/models/DataTableColumnDefinition.d.ts +0 -8
  296. package/dist/models/DataTableColumnType.js +1 -1
  297. package/dist/models/DataTableDto.d.ts +0 -12
  298. package/dist/models/DataTableExportFormat.js +1 -1
  299. package/dist/models/DataTableKeyType.js +1 -1
  300. package/dist/models/DataTableRowDto.d.ts +0 -8
  301. package/dist/models/DataTableRowDtoChange.d.ts +0 -4
  302. package/dist/models/DataTableRowDtoChange.js +1 -1
  303. package/dist/models/DecisionTableAggregation.js +1 -1
  304. package/dist/models/DecisionTableDto.d.ts +0 -22
  305. package/dist/models/DecisionTableHitPolicy.js +1 -1
  306. package/dist/models/DecisionTableInput.d.ts +0 -6
  307. package/dist/models/DecisionTableOutput.d.ts +0 -6
  308. package/dist/models/DecisionTableRule.d.ts +0 -6
  309. package/dist/models/DecisionTableType.js +1 -1
  310. package/dist/models/DeliveryNoteDto.d.ts +0 -30
  311. package/dist/models/DeliveryNoteItemDto.d.ts +0 -8
  312. package/dist/models/DeployWorkflowRequest.d.ts +0 -2
  313. package/dist/models/DesignTemplateContextVersion.js +1 -1
  314. package/dist/models/DesignTemplateDto.d.ts +0 -18
  315. package/dist/models/DesignTemplateType.js +1 -1
  316. package/dist/models/DocumentTemplateDto.d.ts +4 -34
  317. package/dist/models/DocumentTemplateDto.js +7 -11
  318. package/dist/models/DubbingPortalFileStatusDto.d.ts +0 -10
  319. package/dist/models/DubbingPortalResponseDto.d.ts +0 -2
  320. package/dist/models/DubbingPortalStatusDto.d.ts +0 -10
  321. package/dist/models/DunningLetterDto.d.ts +0 -42
  322. package/dist/models/DunningLetterItemDto.d.ts +0 -6
  323. package/dist/models/EditorTypeDto.d.ts +0 -12
  324. package/dist/models/EmailDto.d.ts +7 -34
  325. package/dist/models/EmailDto.js +6 -4
  326. package/dist/models/EmailEvent.d.ts +0 -10
  327. package/dist/models/EmailEvent.js +3 -2
  328. package/dist/models/EmailInlineImageDto.d.ts +33 -0
  329. package/dist/models/EmailInlineImageDto.js +54 -0
  330. package/dist/models/EntityAccessTokenDto.d.ts +0 -2
  331. package/dist/models/EntityReference.d.ts +0 -8
  332. package/dist/models/EntityType.d.ts +1 -0
  333. package/dist/models/EntityType.js +2 -1
  334. package/dist/models/FeatureDto.d.ts +0 -8
  335. package/dist/models/FileConflictResolution.d.ts +24 -0
  336. package/dist/models/FileConflictResolution.js +50 -0
  337. package/dist/models/FileDetailsDto.d.ts +0 -20
  338. package/dist/models/FileDetailsDto.js +3 -2
  339. package/dist/models/FileDirectoryDto.d.ts +5 -23
  340. package/dist/models/FileDirectoryDto.js +2 -5
  341. package/dist/models/FileDownloadDisposition.js +1 -1
  342. package/dist/models/FileDto.d.ts +0 -16
  343. package/dist/models/FileDto.js +3 -2
  344. package/dist/models/FileMovementDto.d.ts +5 -6
  345. package/dist/models/FileMovementDto.js +3 -0
  346. package/dist/models/FileSelectionDto.d.ts +0 -4
  347. package/dist/models/FileShareDto.d.ts +0 -36
  348. package/dist/models/FileShareDto.js +9 -8
  349. package/dist/models/FileTagDto.d.ts +0 -6
  350. package/dist/models/FileUploadDto.d.ts +5 -14
  351. package/dist/models/FileUploadDto.js +3 -0
  352. package/dist/models/FileUploadManifestDto.d.ts +0 -2
  353. package/dist/models/FileUploadPartDto.d.ts +0 -2
  354. package/dist/models/FilterableEndpointDto.d.ts +0 -6
  355. package/dist/models/FormsPortalReceiverInfo.d.ts +0 -6
  356. package/dist/models/FormsPortalSpecDto.d.ts +0 -8
  357. package/dist/models/FormsPortalSubmitDto.d.ts +0 -2
  358. package/dist/models/GetAllAbsenceEntries200Response.d.ts +0 -8
  359. package/dist/models/GetAllAbsenceTypes200Response.d.ts +0 -8
  360. package/dist/models/GetAllAcceptanceDocuments200Response.d.ts +0 -8
  361. package/dist/models/GetAllAccessTokens200Response.d.ts +0 -8
  362. package/dist/models/GetAllAccountingCenterStatements200Response.d.ts +0 -2
  363. package/dist/models/GetAllAccountingCenters200Response.d.ts +0 -8
  364. package/dist/models/GetAllAccountingLedgerStatements200Response.d.ts +0 -2
  365. package/dist/models/GetAllAccountingLedgers200Response.d.ts +0 -8
  366. package/dist/models/GetAllAccountingReceipts200Response.d.ts +0 -8
  367. package/dist/models/GetAllAccountingSettlements200Response.d.ts +0 -8
  368. package/dist/models/GetAllAccountingTransactions200Response.d.ts +0 -8
  369. package/dist/models/GetAllAccountingTurnover200Response.d.ts +0 -8
  370. package/dist/models/GetAllAccounts200Response.d.ts +0 -8
  371. package/dist/models/GetAllActivities200Response.d.ts +0 -8
  372. package/dist/models/GetAllApprovalEntries200Response.d.ts +0 -8
  373. package/dist/models/GetAllApprovalTypes200Response.d.ts +0 -8
  374. package/dist/models/GetAllBankDetails200Response.d.ts +0 -8
  375. package/dist/models/GetAllCalendarEntries200Response.d.ts +0 -8
  376. package/dist/models/GetAllCalendarEntryTypes200Response.d.ts +0 -8
  377. package/dist/models/GetAllComments200Response.d.ts +0 -8
  378. package/dist/models/GetAllConfigurations200Response.d.ts +0 -8
  379. package/dist/models/GetAllContractStatus200Response.d.ts +0 -8
  380. package/dist/models/GetAllContractTypes200Response.d.ts +0 -8
  381. package/dist/models/GetAllContracts200Response.d.ts +0 -8
  382. package/dist/models/GetAllCustomers200Response.d.ts +0 -8
  383. package/dist/models/GetAllDeliveryNotes200Response.d.ts +0 -8
  384. package/dist/models/GetAllDesignTemplates200Response.d.ts +0 -8
  385. package/dist/models/GetAllDocumentTemplates200Response.d.ts +0 -8
  386. package/dist/models/GetAllDunningLetters200Response.d.ts +0 -8
  387. package/dist/models/GetAllEditorTypes200Response.d.ts +0 -8
  388. package/dist/models/GetAllEntitiesForTag200Response.d.ts +0 -8
  389. package/dist/models/GetAllFileTags200Response.d.ts +0 -8
  390. package/dist/models/GetAllHolidays200Response.d.ts +0 -8
  391. package/dist/models/GetAllHospitalityReceipts200Response.d.ts +0 -8
  392. package/dist/models/GetAllInboxEmails200Response.d.ts +0 -8
  393. package/dist/models/GetAllInvoices200Response.d.ts +0 -8
  394. package/dist/models/GetAllJobs200Response.d.ts +0 -8
  395. package/dist/models/GetAllKanbanBoards200Response.d.ts +0 -8
  396. package/dist/models/GetAllKanbanCards200Response.d.ts +0 -8
  397. package/dist/models/GetAllKanbanColumns200Response.d.ts +0 -8
  398. package/dist/models/GetAllMentions200Response.d.ts +0 -8
  399. package/dist/models/GetAllNotifications200Response.d.ts +0 -8
  400. package/dist/models/GetAllObjectives200Response.d.ts +0 -8
  401. package/dist/models/GetAllOffers200Response.d.ts +0 -8
  402. package/dist/models/GetAllPages200Response.d.ts +0 -8
  403. package/dist/models/GetAllPayments200Response.d.ts +0 -8
  404. package/dist/models/GetAllPresenceEntries200Response.d.ts +0 -8
  405. package/dist/models/GetAllPresenceTypes200Response.d.ts +0 -8
  406. package/dist/models/GetAllProducts200Response.d.ts +0 -8
  407. package/dist/models/GetAllReferences200Response.d.ts +0 -8
  408. package/dist/models/GetAllRegistrations200Response.d.ts +0 -8
  409. package/dist/models/GetAllResults200Response.d.ts +0 -8
  410. package/dist/models/GetAllRoles200Response.d.ts +0 -8
  411. package/dist/models/GetAllShares200Response.d.ts +0 -8
  412. package/dist/models/GetAllTags200Response.d.ts +0 -8
  413. package/dist/models/GetAllTextModules200Response.d.ts +0 -8
  414. package/dist/models/GetAllUnits200Response.d.ts +0 -8
  415. package/dist/models/GetAllUsers200Response.d.ts +0 -8
  416. package/dist/models/GetAllWikis200Response.d.ts +0 -8
  417. package/dist/models/GetAllWorkHours200Response.d.ts +0 -8
  418. package/dist/models/GetAllWorkflowExecutions200Response.d.ts +0 -8
  419. package/dist/models/GetAllWorkflowExternalTasks200Response.d.ts +0 -8
  420. package/dist/models/GetAllWorkflowProcesses200Response.d.ts +0 -8
  421. package/dist/models/GetAllWorkflows200Response.d.ts +0 -8
  422. package/dist/models/GetAllWritings200Response.d.ts +0 -8
  423. package/dist/models/GetRoleUsers200Response.d.ts +30 -0
  424. package/dist/models/GetRoleUsers200Response.js +51 -0
  425. package/dist/models/GetSubscribedProducts200Response.d.ts +0 -8
  426. package/dist/models/GetUserRoles200Response.d.ts +0 -2
  427. package/dist/models/HolidaysDto.d.ts +0 -14
  428. package/dist/models/HospitalityReceiptDto.d.ts +0 -28
  429. package/dist/models/HospitalityReceiptSignatureDto.d.ts +0 -6
  430. package/dist/models/IdentifierDto.d.ts +0 -2
  431. package/dist/models/IdentifierType.js +1 -1
  432. package/dist/models/ImportTransactions200Response.d.ts +0 -2
  433. package/dist/models/InstituteDto.d.ts +0 -12
  434. package/dist/models/InternalWorkflowExternalTask.d.ts +0 -6
  435. package/dist/models/InternalWorkflowProcess.d.ts +0 -6
  436. package/dist/models/InternalWorkflowProcessLogDto.d.ts +0 -8
  437. package/dist/models/InternalWorkflowProcessLogDto.js +1 -1
  438. package/dist/models/InternalWorkflowProcessStopRequestDto.d.ts +0 -2
  439. package/dist/models/InvoiceConfigDto.d.ts +1 -13
  440. package/dist/models/InvoiceDto.d.ts +6 -62
  441. package/dist/models/InvoiceDto.js +1 -1
  442. package/dist/models/InvoiceItemDto.d.ts +0 -26
  443. package/dist/models/InvoicePortalDocumentDto.d.ts +78 -0
  444. package/dist/models/InvoicePortalDocumentDto.js +85 -0
  445. package/dist/models/InvoicePortalShareConfigDto.d.ts +0 -10
  446. package/dist/models/InvoiceTaxItemDto.d.ts +0 -8
  447. package/dist/models/InvoiceTaxItemDto.js +1 -1
  448. package/dist/models/InvoiceTextFieldsDto.d.ts +0 -14
  449. package/dist/models/InvoiceType.js +1 -1
  450. package/dist/models/InvoiceValidationCheck.js +1 -1
  451. package/dist/models/InvoiceValidationResult.d.ts +0 -2
  452. package/dist/models/InvoiceWhatsAppMessageDto.d.ts +33 -0
  453. package/dist/models/InvoiceWhatsAppMessageDto.js +49 -0
  454. package/dist/models/JobDto.d.ts +0 -24
  455. package/dist/models/JobDto.js +7 -6
  456. package/dist/models/KanbanBoardDto.d.ts +0 -12
  457. package/dist/models/KanbanCardDto.d.ts +0 -30
  458. package/dist/models/KanbanCardDto.js +7 -6
  459. package/dist/models/KanbanColumnDto.d.ts +0 -10
  460. package/dist/models/KommerzPageable.d.ts +0 -6
  461. package/dist/models/LedgerStatementDto.d.ts +0 -14
  462. package/dist/models/LedgerStatementDto.js +5 -4
  463. package/dist/models/LegalInfoDto.d.ts +0 -22
  464. package/dist/models/ListAllTenants200Response.d.ts +0 -8
  465. package/dist/models/ListDataTableRows200Response.d.ts +0 -8
  466. package/dist/models/ListDataTables200Response.d.ts +0 -8
  467. package/dist/models/ListDecisionTables200Response.d.ts +0 -8
  468. package/dist/models/ListDirectories200Response.d.ts +0 -8
  469. package/dist/models/ListFiles200Response.d.ts +0 -8
  470. package/dist/models/MacroConfig.d.ts +0 -6
  471. package/dist/models/MacroConfig.js +1 -1
  472. package/dist/models/MacroConfigReferencesInner.d.ts +0 -4
  473. package/dist/models/MarkInvoiceAsPaidRequest.d.ts +0 -4
  474. package/dist/models/MentionDto.d.ts +0 -8
  475. package/dist/models/MessageDto.d.ts +0 -4
  476. package/dist/models/MessagingPermissionsDto.d.ts +0 -4
  477. package/dist/models/NewRegistrationDto.d.ts +0 -2
  478. package/dist/models/NewRegistrationResponseDto.d.ts +0 -6
  479. package/dist/models/NotificationDto.d.ts +0 -12
  480. package/dist/models/NotificationDto.js +3 -2
  481. package/dist/models/NotificationTargetDto.d.ts +0 -12
  482. package/dist/models/NotificationTargetOrderDto.d.ts +0 -4
  483. package/dist/models/NotifierIdType.js +1 -1
  484. package/dist/models/OfferDto.d.ts +0 -38
  485. package/dist/models/OfferRendererDto.d.ts +0 -18
  486. package/dist/models/OkrKeyResultDto.d.ts +0 -18
  487. package/dist/models/OkrObjectiveDto.d.ts +0 -18
  488. package/dist/models/PageResponse.d.ts +0 -6
  489. package/dist/models/ParticipantRole.js +1 -1
  490. package/dist/models/ParticipantStatus.js +1 -1
  491. package/dist/models/PatternDto.d.ts +0 -6
  492. package/dist/models/PaymentConfigurationDto.d.ts +0 -4
  493. package/dist/models/PaymentInvoiceDto.d.ts +0 -14
  494. package/dist/models/PaymentProductDto.d.ts +0 -30
  495. package/dist/models/PaymentProductDto.js +4 -4
  496. package/dist/models/PaymentUriResponseDto.d.ts +0 -2
  497. package/dist/models/PaymentsDto.d.ts +0 -20
  498. package/dist/models/PaymentsDto.js +2 -2
  499. package/dist/models/Permissions.d.ts +4 -0
  500. package/dist/models/Permissions.js +5 -1
  501. package/dist/models/PrepositionType.js +1 -1
  502. package/dist/models/PresenceEntryDto.d.ts +0 -16
  503. package/dist/models/PresenceTypeDto.d.ts +0 -14
  504. package/dist/models/ProductDto.d.ts +0 -24
  505. package/dist/models/ProductSelectionDto.d.ts +0 -4
  506. package/dist/models/PublicShareDirectorDto.d.ts +0 -6
  507. package/dist/models/PublicShareDto.d.ts +0 -18
  508. package/dist/models/PublicShareDto.js +7 -6
  509. package/dist/models/PublicShareFileDto.d.ts +0 -10
  510. package/dist/models/PublicShareListingDto.d.ts +0 -6
  511. package/dist/models/ReferenceDto.d.ts +0 -12
  512. package/dist/models/RegisterUserDto.d.ts +0 -10
  513. package/dist/models/RoleDto.d.ts +5 -11
  514. package/dist/models/RoleDto.js +1 -0
  515. package/dist/models/RunWorkflowRequest.d.ts +0 -2
  516. package/dist/models/ShareInvoiceDto.d.ts +0 -4
  517. package/dist/models/ShareOfferDto.d.ts +0 -6
  518. package/dist/models/SkontoDto.d.ts +0 -4
  519. package/dist/models/SortDirection.js +1 -1
  520. package/dist/models/StatisticsDataEntry.d.ts +0 -4
  521. package/dist/models/StatisticsDefinitionDto.d.ts +0 -14
  522. package/dist/models/StatisticsDefinitionDto.js +2 -2
  523. package/dist/models/StatisticsResponseDto.d.ts +0 -4
  524. package/dist/models/SubscriptionChangeDto.d.ts +0 -6
  525. package/dist/models/SubscriptionChangeDto.js +3 -2
  526. package/dist/models/SubscriptionDto.d.ts +0 -28
  527. package/dist/models/SubscriptionDto.js +22 -21
  528. package/dist/models/SubscriptionResponseDto.d.ts +0 -4
  529. package/dist/models/TagDto.d.ts +0 -8
  530. package/dist/models/TagRelationDto.d.ts +0 -6
  531. package/dist/models/TenantConfigurationDto.d.ts +0 -12
  532. package/dist/models/TenantDto.d.ts +0 -16
  533. package/dist/models/TenantInvitationDto.d.ts +0 -4
  534. package/dist/models/TenantOwnerAdditionDto.d.ts +29 -0
  535. package/dist/models/TenantOwnerAdditionDto.js +50 -0
  536. package/dist/models/TestTokenDto.d.ts +0 -2
  537. package/dist/models/TestTokenRequest.d.ts +0 -6
  538. package/dist/models/TextModuleDto.d.ts +0 -14
  539. package/dist/models/TextModuleType.d.ts +1 -0
  540. package/dist/models/TextModuleType.js +2 -1
  541. package/dist/models/TimeSpanDto.d.ts +0 -6
  542. package/dist/models/TimeTrackingCalendarDayDto.d.ts +0 -16
  543. package/dist/models/TimeTrackingCalendarDto.d.ts +0 -20
  544. package/dist/models/TimesDto.d.ts +0 -4
  545. package/dist/models/TimesDto.js +3 -2
  546. package/dist/models/UiConfigurationDto.d.ts +0 -2
  547. package/dist/models/UiLandingWelcomeConfigDto.d.ts +0 -2
  548. package/dist/models/UiModule.js +1 -1
  549. package/dist/models/UnitCode.js +1 -1
  550. package/dist/models/UnitDto.d.ts +0 -12
  551. package/dist/models/UsageMetricType.js +1 -1
  552. package/dist/models/UsageMonitorDto.d.ts +0 -10
  553. package/dist/models/UsageMonitorDto.js +2 -2
  554. package/dist/models/UserAgentInformation.d.ts +0 -12
  555. package/dist/models/UserApprovalDto.d.ts +0 -6
  556. package/dist/models/UserApprovalDto.js +3 -2
  557. package/dist/models/UserDto.d.ts +5 -13
  558. package/dist/models/UserDto.js +1 -0
  559. package/dist/models/ValidateHandleHandleParameter.d.ts +0 -2
  560. package/dist/models/ValidateIbanIbanParameter.d.ts +0 -2
  561. package/dist/models/ValidationDto.d.ts +0 -4
  562. package/dist/models/ValidationErrors.d.ts +0 -4
  563. package/dist/models/ValidationErrorsErrorsInner.d.ts +0 -4
  564. package/dist/models/WikiDto.d.ts +0 -6
  565. package/dist/models/WikiPageDto.d.ts +0 -20
  566. package/dist/models/WikiPageDto.js +3 -1
  567. package/dist/models/WorkHoursDto.d.ts +0 -22
  568. package/dist/models/WorkflowDto.d.ts +0 -22
  569. package/dist/models/WorkflowExecutionDto.d.ts +0 -18
  570. package/dist/models/WorkflowExecutionDto.js +3 -2
  571. package/dist/models/WorkflowExecutionStatus.js +1 -1
  572. package/dist/models/WorkflowExternalTaskDto.d.ts +0 -10
  573. package/dist/models/WorkflowProcessDto.d.ts +0 -14
  574. package/dist/models/WorkflowProcessDto.js +5 -4
  575. package/dist/models/WorkflowProcessLogDto.d.ts +0 -6
  576. package/dist/models/WorkflowProcessLogDto.js +3 -2
  577. package/dist/models/WorkflowProcessLogType.js +1 -1
  578. package/dist/models/WorkflowProcessStatus.js +1 -1
  579. package/dist/models/WorkflowStatusEnum.js +1 -1
  580. package/dist/models/WritingDto.d.ts +0 -26
  581. package/dist/models/index.d.ts +9 -1
  582. package/dist/models/index.js +9 -1
  583. package/dist/runtime.d.ts +34 -1
  584. package/dist/runtime.js +143 -6
  585. package/package.json +1 -1
  586. package/dist/models/DocumentTemplateType.d.ts +0 -24
  587. package/dist/models/DocumentTemplateType.js +0 -50
@@ -65,7 +65,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
65
65
  Object.defineProperty(exports, "__esModule", { value: true });
66
66
  exports.FileDirectorySharesApi = void 0;
67
67
  var runtime = require("../runtime");
68
- var index_1 = require("../models/index");
68
+ var FileShareDto_1 = require("../models/FileShareDto");
69
+ var GetAllShares200Response_1 = require("../models/GetAllShares200Response");
70
+ var PublicShareDto_1 = require("../models/PublicShareDto");
71
+ var PublicShareListingDto_1 = require("../models/PublicShareListingDto");
69
72
  /**
70
73
  *
71
74
  */
@@ -74,32 +77,45 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
74
77
  function FileDirectorySharesApi() {
75
78
  return _super !== null && _super.apply(this, arguments) || this;
76
79
  }
80
+ /**
81
+ * Creates request options for addShare without sending the request
82
+ */
83
+ FileDirectorySharesApi.prototype.addShareRequestOpts = function (requestParameters) {
84
+ return __awaiter(this, void 0, void 0, function () {
85
+ var queryParameters, headerParameters, urlPath;
86
+ return __generator(this, function (_a) {
87
+ if (requestParameters['fileShareDto'] == null) {
88
+ throw new runtime.RequiredError('fileShareDto', 'Required parameter "fileShareDto" was null or undefined when calling addShare().');
89
+ }
90
+ queryParameters = {};
91
+ headerParameters = {};
92
+ headerParameters['Content-Type'] = 'application/json';
93
+ urlPath = "/ui/files/v1/shares";
94
+ return [2 /*return*/, {
95
+ path: urlPath,
96
+ method: 'POST',
97
+ headers: headerParameters,
98
+ query: queryParameters,
99
+ body: (0, FileShareDto_1.FileShareDtoToJSON)(requestParameters['fileShareDto']),
100
+ }];
101
+ });
102
+ });
103
+ };
77
104
  /**
78
105
  * add a share
79
106
  */
80
107
  FileDirectorySharesApi.prototype.addShareRaw = function (requestParameters, initOverrides) {
81
108
  return __awaiter(this, void 0, void 0, function () {
82
- var queryParameters, headerParameters, urlPath, response;
109
+ var requestOptions, response;
83
110
  return __generator(this, function (_a) {
84
111
  switch (_a.label) {
85
- case 0:
86
- if (requestParameters['fileShareDto'] == null) {
87
- throw new runtime.RequiredError('fileShareDto', 'Required parameter "fileShareDto" was null or undefined when calling addShare().');
88
- }
89
- queryParameters = {};
90
- headerParameters = {};
91
- headerParameters['Content-Type'] = 'application/json';
92
- urlPath = "/ui/files/v1/shares";
93
- return [4 /*yield*/, this.request({
94
- path: urlPath,
95
- method: 'POST',
96
- headers: headerParameters,
97
- query: queryParameters,
98
- body: (0, index_1.FileShareDtoToJSON)(requestParameters['fileShareDto']),
99
- }, initOverrides)];
112
+ case 0: return [4 /*yield*/, this.addShareRequestOpts(requestParameters)];
100
113
  case 1:
114
+ requestOptions = _a.sent();
115
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
116
+ case 2:
101
117
  response = _a.sent();
102
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FileShareDtoFromJSON)(jsonValue); })];
118
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FileShareDto_1.FileShareDtoFromJSON)(jsonValue); })];
103
119
  }
104
120
  });
105
121
  });
@@ -121,29 +137,42 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
121
137
  });
122
138
  });
123
139
  };
140
+ /**
141
+ * Creates request options for deleteShare without sending the request
142
+ */
143
+ FileDirectorySharesApi.prototype.deleteShareRequestOpts = function (requestParameters) {
144
+ return __awaiter(this, void 0, void 0, function () {
145
+ var queryParameters, headerParameters, urlPath;
146
+ return __generator(this, function (_a) {
147
+ if (requestParameters['id'] == null) {
148
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteShare().');
149
+ }
150
+ queryParameters = {};
151
+ headerParameters = {};
152
+ urlPath = "/ui/files/v1/shares/{id}";
153
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
154
+ return [2 /*return*/, {
155
+ path: urlPath,
156
+ method: 'DELETE',
157
+ headers: headerParameters,
158
+ query: queryParameters,
159
+ }];
160
+ });
161
+ });
162
+ };
124
163
  /**
125
164
  * delete a single share
126
165
  */
127
166
  FileDirectorySharesApi.prototype.deleteShareRaw = function (requestParameters, initOverrides) {
128
167
  return __awaiter(this, void 0, void 0, function () {
129
- var queryParameters, headerParameters, urlPath, response;
168
+ var requestOptions, response;
130
169
  return __generator(this, function (_a) {
131
170
  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 deleteShare().');
135
- }
136
- queryParameters = {};
137
- headerParameters = {};
138
- urlPath = "/ui/files/v1/shares/{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)];
171
+ case 0: return [4 /*yield*/, this.deleteShareRequestOpts(requestParameters)];
146
172
  case 1:
173
+ requestOptions = _a.sent();
174
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
175
+ case 2:
147
176
  response = _a.sent();
148
177
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
149
178
  }
@@ -165,41 +194,54 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
165
194
  });
166
195
  });
167
196
  };
197
+ /**
198
+ * Creates request options for downloadShare without sending the request
199
+ */
200
+ FileDirectorySharesApi.prototype.downloadShareRequestOpts = function (requestParameters) {
201
+ return __awaiter(this, void 0, void 0, function () {
202
+ var queryParameters, headerParameters, urlPath;
203
+ return __generator(this, function (_a) {
204
+ if (requestParameters['key'] == null) {
205
+ throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling downloadShare().');
206
+ }
207
+ if (requestParameters['accessToken'] == null) {
208
+ throw new runtime.RequiredError('accessToken', 'Required parameter "accessToken" was null or undefined when calling downloadShare().');
209
+ }
210
+ if (requestParameters['expires'] == null) {
211
+ throw new runtime.RequiredError('expires', 'Required parameter "expires" was null or undefined when calling downloadShare().');
212
+ }
213
+ queryParameters = {};
214
+ if (requestParameters['accessToken'] != null) {
215
+ queryParameters['accessToken'] = requestParameters['accessToken'];
216
+ }
217
+ if (requestParameters['expires'] != null) {
218
+ queryParameters['expires'] = requestParameters['expires'];
219
+ }
220
+ headerParameters = {};
221
+ urlPath = "/ui/file-shares/v1/shares/{key}/archives";
222
+ urlPath = urlPath.replace('{key}', encodeURIComponent(String(requestParameters['key'])));
223
+ return [2 /*return*/, {
224
+ path: urlPath,
225
+ method: 'GET',
226
+ headers: headerParameters,
227
+ query: queryParameters,
228
+ }];
229
+ });
230
+ });
231
+ };
168
232
  /**
169
233
  * download a share
170
234
  */
171
235
  FileDirectorySharesApi.prototype.downloadShareRaw = function (requestParameters, initOverrides) {
172
236
  return __awaiter(this, void 0, void 0, function () {
173
- var queryParameters, headerParameters, urlPath, response;
237
+ var requestOptions, response;
174
238
  return __generator(this, function (_a) {
175
239
  switch (_a.label) {
176
- case 0:
177
- if (requestParameters['key'] == null) {
178
- throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling downloadShare().');
179
- }
180
- if (requestParameters['accessToken'] == null) {
181
- throw new runtime.RequiredError('accessToken', 'Required parameter "accessToken" was null or undefined when calling downloadShare().');
182
- }
183
- if (requestParameters['expires'] == null) {
184
- throw new runtime.RequiredError('expires', 'Required parameter "expires" was null or undefined when calling downloadShare().');
185
- }
186
- queryParameters = {};
187
- if (requestParameters['accessToken'] != null) {
188
- queryParameters['accessToken'] = requestParameters['accessToken'];
189
- }
190
- if (requestParameters['expires'] != null) {
191
- queryParameters['expires'] = requestParameters['expires'];
192
- }
193
- headerParameters = {};
194
- urlPath = "/ui/file-shares/v1/shares/{key}/archives";
195
- urlPath = urlPath.replace("{".concat("key", "}"), encodeURIComponent(String(requestParameters['key'])));
196
- return [4 /*yield*/, this.request({
197
- path: urlPath,
198
- method: 'GET',
199
- headers: headerParameters,
200
- query: queryParameters,
201
- }, initOverrides)];
240
+ case 0: return [4 /*yield*/, this.downloadShareRequestOpts(requestParameters)];
202
241
  case 1:
242
+ requestOptions = _a.sent();
243
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
244
+ case 2:
203
245
  response = _a.sent();
204
246
  return [2 /*return*/, new runtime.BlobApiResponse(response)];
205
247
  }
@@ -223,45 +265,58 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
223
265
  });
224
266
  });
225
267
  };
268
+ /**
269
+ * Creates request options for downloadShareFile without sending the request
270
+ */
271
+ FileDirectorySharesApi.prototype.downloadShareFileRequestOpts = function (requestParameters) {
272
+ return __awaiter(this, void 0, void 0, function () {
273
+ var queryParameters, headerParameters, urlPath;
274
+ return __generator(this, function (_a) {
275
+ if (requestParameters['key'] == null) {
276
+ throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling downloadShareFile().');
277
+ }
278
+ if (requestParameters['fileId'] == null) {
279
+ throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling downloadShareFile().');
280
+ }
281
+ if (requestParameters['accessToken'] == null) {
282
+ throw new runtime.RequiredError('accessToken', 'Required parameter "accessToken" was null or undefined when calling downloadShareFile().');
283
+ }
284
+ if (requestParameters['expires'] == null) {
285
+ throw new runtime.RequiredError('expires', 'Required parameter "expires" was null or undefined when calling downloadShareFile().');
286
+ }
287
+ queryParameters = {};
288
+ if (requestParameters['accessToken'] != null) {
289
+ queryParameters['accessToken'] = requestParameters['accessToken'];
290
+ }
291
+ if (requestParameters['expires'] != null) {
292
+ queryParameters['expires'] = requestParameters['expires'];
293
+ }
294
+ headerParameters = {};
295
+ urlPath = "/ui/file-shares/v1/shares/{key}/files/{fileId}";
296
+ urlPath = urlPath.replace('{key}', encodeURIComponent(String(requestParameters['key'])));
297
+ urlPath = urlPath.replace('{fileId}', encodeURIComponent(String(requestParameters['fileId'])));
298
+ return [2 /*return*/, {
299
+ path: urlPath,
300
+ method: 'GET',
301
+ headers: headerParameters,
302
+ query: queryParameters,
303
+ }];
304
+ });
305
+ });
306
+ };
226
307
  /**
227
308
  * download a single file
228
309
  */
229
310
  FileDirectorySharesApi.prototype.downloadShareFileRaw = function (requestParameters, initOverrides) {
230
311
  return __awaiter(this, void 0, void 0, function () {
231
- var queryParameters, headerParameters, urlPath, response;
312
+ var requestOptions, response;
232
313
  return __generator(this, function (_a) {
233
314
  switch (_a.label) {
234
- case 0:
235
- if (requestParameters['key'] == null) {
236
- throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling downloadShareFile().');
237
- }
238
- if (requestParameters['fileId'] == null) {
239
- throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling downloadShareFile().');
240
- }
241
- if (requestParameters['accessToken'] == null) {
242
- throw new runtime.RequiredError('accessToken', 'Required parameter "accessToken" was null or undefined when calling downloadShareFile().');
243
- }
244
- if (requestParameters['expires'] == null) {
245
- throw new runtime.RequiredError('expires', 'Required parameter "expires" was null or undefined when calling downloadShareFile().');
246
- }
247
- queryParameters = {};
248
- if (requestParameters['accessToken'] != null) {
249
- queryParameters['accessToken'] = requestParameters['accessToken'];
250
- }
251
- if (requestParameters['expires'] != null) {
252
- queryParameters['expires'] = requestParameters['expires'];
253
- }
254
- headerParameters = {};
255
- urlPath = "/ui/file-shares/v1/shares/{key}/files/{fileId}";
256
- urlPath = urlPath.replace("{".concat("key", "}"), encodeURIComponent(String(requestParameters['key'])));
257
- urlPath = urlPath.replace("{".concat("fileId", "}"), encodeURIComponent(String(requestParameters['fileId'])));
258
- return [4 /*yield*/, this.request({
259
- path: urlPath,
260
- method: 'GET',
261
- headers: headerParameters,
262
- query: queryParameters,
263
- }, initOverrides)];
315
+ case 0: return [4 /*yield*/, this.downloadShareFileRequestOpts(requestParameters)];
264
316
  case 1:
317
+ requestOptions = _a.sent();
318
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
319
+ case 2:
265
320
  response = _a.sent();
266
321
  return [2 /*return*/, new runtime.BlobApiResponse(response)];
267
322
  }
@@ -285,36 +340,49 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
285
340
  });
286
341
  });
287
342
  };
343
+ /**
344
+ * Creates request options for getAllShares without sending the request
345
+ */
346
+ FileDirectorySharesApi.prototype.getAllSharesRequestOpts = function (requestParameters) {
347
+ return __awaiter(this, void 0, void 0, function () {
348
+ var queryParameters, headerParameters, urlPath;
349
+ return __generator(this, function (_a) {
350
+ if (requestParameters['pageable'] == null) {
351
+ throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllShares().');
352
+ }
353
+ queryParameters = {};
354
+ if (requestParameters['pageable'] != null) {
355
+ queryParameters['pageable'] = requestParameters['pageable'];
356
+ }
357
+ if (requestParameters['filter'] != null) {
358
+ queryParameters['filter'] = requestParameters['filter'];
359
+ }
360
+ headerParameters = {};
361
+ urlPath = "/ui/files/v1/shares";
362
+ return [2 /*return*/, {
363
+ path: urlPath,
364
+ method: 'GET',
365
+ headers: headerParameters,
366
+ query: queryParameters,
367
+ }];
368
+ });
369
+ });
370
+ };
288
371
  /**
289
372
  * get all directory shares
290
373
  */
291
374
  FileDirectorySharesApi.prototype.getAllSharesRaw = function (requestParameters, initOverrides) {
292
375
  return __awaiter(this, void 0, void 0, function () {
293
- var queryParameters, headerParameters, urlPath, response;
376
+ var requestOptions, response;
294
377
  return __generator(this, function (_a) {
295
378
  switch (_a.label) {
296
- case 0:
297
- if (requestParameters['pageable'] == null) {
298
- throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllShares().');
299
- }
300
- queryParameters = {};
301
- if (requestParameters['pageable'] != null) {
302
- queryParameters['pageable'] = requestParameters['pageable'];
303
- }
304
- if (requestParameters['filter'] != null) {
305
- queryParameters['filter'] = requestParameters['filter'];
306
- }
307
- headerParameters = {};
308
- urlPath = "/ui/files/v1/shares";
309
- return [4 /*yield*/, this.request({
310
- path: urlPath,
311
- method: 'GET',
312
- headers: headerParameters,
313
- query: queryParameters,
314
- }, initOverrides)];
379
+ case 0: return [4 /*yield*/, this.getAllSharesRequestOpts(requestParameters)];
315
380
  case 1:
381
+ requestOptions = _a.sent();
382
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
383
+ case 2:
316
384
  response = _a.sent();
317
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllShares200ResponseFromJSON)(jsonValue); })];
385
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetAllShares200Response_1.GetAllShares200ResponseFromJSON)(jsonValue); })];
318
386
  }
319
387
  });
320
388
  });
@@ -336,31 +404,44 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
336
404
  });
337
405
  });
338
406
  };
407
+ /**
408
+ * Creates request options for getDownloadShareInfo without sending the request
409
+ */
410
+ FileDirectorySharesApi.prototype.getDownloadShareInfoRequestOpts = function (requestParameters) {
411
+ return __awaiter(this, void 0, void 0, function () {
412
+ var queryParameters, headerParameters, urlPath;
413
+ return __generator(this, function (_a) {
414
+ if (requestParameters['key'] == null) {
415
+ throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling getDownloadShareInfo().');
416
+ }
417
+ queryParameters = {};
418
+ headerParameters = {};
419
+ urlPath = "/ui/file-shares/v1/shares/{key}";
420
+ urlPath = urlPath.replace('{key}', encodeURIComponent(String(requestParameters['key'])));
421
+ return [2 /*return*/, {
422
+ path: urlPath,
423
+ method: 'GET',
424
+ headers: headerParameters,
425
+ query: queryParameters,
426
+ }];
427
+ });
428
+ });
429
+ };
339
430
  /**
340
431
  * get download share info
341
432
  */
342
433
  FileDirectorySharesApi.prototype.getDownloadShareInfoRaw = function (requestParameters, initOverrides) {
343
434
  return __awaiter(this, void 0, void 0, function () {
344
- var queryParameters, headerParameters, urlPath, response;
435
+ var requestOptions, response;
345
436
  return __generator(this, function (_a) {
346
437
  switch (_a.label) {
347
- case 0:
348
- if (requestParameters['key'] == null) {
349
- throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling getDownloadShareInfo().');
350
- }
351
- queryParameters = {};
352
- headerParameters = {};
353
- urlPath = "/ui/file-shares/v1/shares/{key}";
354
- urlPath = urlPath.replace("{".concat("key", "}"), encodeURIComponent(String(requestParameters['key'])));
355
- return [4 /*yield*/, this.request({
356
- path: urlPath,
357
- method: 'GET',
358
- headers: headerParameters,
359
- query: queryParameters,
360
- }, initOverrides)];
438
+ case 0: return [4 /*yield*/, this.getDownloadShareInfoRequestOpts(requestParameters)];
361
439
  case 1:
440
+ requestOptions = _a.sent();
441
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
442
+ case 2:
362
443
  response = _a.sent();
363
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicShareDtoFromJSON)(jsonValue); })];
444
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PublicShareDto_1.PublicShareDtoFromJSON)(jsonValue); })];
364
445
  }
365
446
  });
366
447
  });
@@ -382,34 +463,47 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
382
463
  });
383
464
  });
384
465
  };
466
+ /**
467
+ * Creates request options for getDownloadShareListing without sending the request
468
+ */
469
+ FileDirectorySharesApi.prototype.getDownloadShareListingRequestOpts = function (requestParameters) {
470
+ return __awaiter(this, void 0, void 0, function () {
471
+ var queryParameters, headerParameters, urlPath;
472
+ return __generator(this, function (_a) {
473
+ if (requestParameters['key'] == null) {
474
+ throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling getDownloadShareListing().');
475
+ }
476
+ queryParameters = {};
477
+ headerParameters = {};
478
+ if (requestParameters['password'] != null) {
479
+ headerParameters['password'] = String(requestParameters['password']);
480
+ }
481
+ urlPath = "/ui/file-shares/v1/shares/{key}/listings";
482
+ urlPath = urlPath.replace('{key}', encodeURIComponent(String(requestParameters['key'])));
483
+ return [2 /*return*/, {
484
+ path: urlPath,
485
+ method: 'GET',
486
+ headers: headerParameters,
487
+ query: queryParameters,
488
+ }];
489
+ });
490
+ });
491
+ };
385
492
  /**
386
493
  * get download share file listing
387
494
  */
388
495
  FileDirectorySharesApi.prototype.getDownloadShareListingRaw = function (requestParameters, initOverrides) {
389
496
  return __awaiter(this, void 0, void 0, function () {
390
- var queryParameters, headerParameters, urlPath, response;
497
+ var requestOptions, response;
391
498
  return __generator(this, function (_a) {
392
499
  switch (_a.label) {
393
- case 0:
394
- if (requestParameters['key'] == null) {
395
- throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling getDownloadShareListing().');
396
- }
397
- queryParameters = {};
398
- headerParameters = {};
399
- if (requestParameters['password'] != null) {
400
- headerParameters['password'] = String(requestParameters['password']);
401
- }
402
- urlPath = "/ui/file-shares/v1/shares/{key}/listings";
403
- urlPath = urlPath.replace("{".concat("key", "}"), encodeURIComponent(String(requestParameters['key'])));
404
- return [4 /*yield*/, this.request({
405
- path: urlPath,
406
- method: 'GET',
407
- headers: headerParameters,
408
- query: queryParameters,
409
- }, initOverrides)];
500
+ case 0: return [4 /*yield*/, this.getDownloadShareListingRequestOpts(requestParameters)];
410
501
  case 1:
502
+ requestOptions = _a.sent();
503
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
504
+ case 2:
411
505
  response = _a.sent();
412
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicShareListingDtoFromJSON)(jsonValue); })];
506
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PublicShareListingDto_1.PublicShareListingDtoFromJSON)(jsonValue); })];
413
507
  }
414
508
  });
415
509
  });
@@ -431,31 +525,44 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
431
525
  });
432
526
  });
433
527
  };
528
+ /**
529
+ * Creates request options for getShare without sending the request
530
+ */
531
+ FileDirectorySharesApi.prototype.getShareRequestOpts = function (requestParameters) {
532
+ return __awaiter(this, void 0, void 0, function () {
533
+ var queryParameters, headerParameters, urlPath;
534
+ return __generator(this, function (_a) {
535
+ if (requestParameters['id'] == null) {
536
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getShare().');
537
+ }
538
+ queryParameters = {};
539
+ headerParameters = {};
540
+ urlPath = "/ui/files/v1/shares/{id}";
541
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
542
+ return [2 /*return*/, {
543
+ path: urlPath,
544
+ method: 'GET',
545
+ headers: headerParameters,
546
+ query: queryParameters,
547
+ }];
548
+ });
549
+ });
550
+ };
434
551
  /**
435
552
  * read one result
436
553
  */
437
554
  FileDirectorySharesApi.prototype.getShareRaw = function (requestParameters, initOverrides) {
438
555
  return __awaiter(this, void 0, void 0, function () {
439
- var queryParameters, headerParameters, urlPath, response;
556
+ var requestOptions, response;
440
557
  return __generator(this, function (_a) {
441
558
  switch (_a.label) {
442
- case 0:
443
- if (requestParameters['id'] == null) {
444
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getShare().');
445
- }
446
- queryParameters = {};
447
- headerParameters = {};
448
- urlPath = "/ui/files/v1/shares/{id}";
449
- urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
450
- return [4 /*yield*/, this.request({
451
- path: urlPath,
452
- method: 'GET',
453
- headers: headerParameters,
454
- query: queryParameters,
455
- }, initOverrides)];
559
+ case 0: return [4 /*yield*/, this.getShareRequestOpts(requestParameters)];
456
560
  case 1:
561
+ requestOptions = _a.sent();
562
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
563
+ case 2:
457
564
  response = _a.sent();
458
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FileShareDtoFromJSON)(jsonValue); })];
565
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FileShareDto_1.FileShareDtoFromJSON)(jsonValue); })];
459
566
  }
460
567
  });
461
568
  });
@@ -477,31 +584,44 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
477
584
  });
478
585
  });
479
586
  };
587
+ /**
588
+ * Creates request options for resetShareCounters without sending the request
589
+ */
590
+ FileDirectorySharesApi.prototype.resetShareCountersRequestOpts = function (requestParameters) {
591
+ return __awaiter(this, void 0, void 0, function () {
592
+ var queryParameters, headerParameters, urlPath;
593
+ return __generator(this, function (_a) {
594
+ if (requestParameters['id'] == null) {
595
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling resetShareCounters().');
596
+ }
597
+ queryParameters = {};
598
+ headerParameters = {};
599
+ urlPath = "/ui/files/v1/shares/{id}/reset";
600
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
601
+ return [2 /*return*/, {
602
+ path: urlPath,
603
+ method: 'PUT',
604
+ headers: headerParameters,
605
+ query: queryParameters,
606
+ }];
607
+ });
608
+ });
609
+ };
480
610
  /**
481
611
  * Reset file share counters
482
612
  */
483
613
  FileDirectorySharesApi.prototype.resetShareCountersRaw = function (requestParameters, initOverrides) {
484
614
  return __awaiter(this, void 0, void 0, function () {
485
- var queryParameters, headerParameters, urlPath, response;
615
+ var requestOptions, response;
486
616
  return __generator(this, function (_a) {
487
617
  switch (_a.label) {
488
- case 0:
489
- if (requestParameters['id'] == null) {
490
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling resetShareCounters().');
491
- }
492
- queryParameters = {};
493
- headerParameters = {};
494
- urlPath = "/ui/files/v1/shares/{id}/reset";
495
- urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
496
- return [4 /*yield*/, this.request({
497
- path: urlPath,
498
- method: 'PUT',
499
- headers: headerParameters,
500
- query: queryParameters,
501
- }, initOverrides)];
618
+ case 0: return [4 /*yield*/, this.resetShareCountersRequestOpts(requestParameters)];
502
619
  case 1:
620
+ requestOptions = _a.sent();
621
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
622
+ case 2:
503
623
  response = _a.sent();
504
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FileShareDtoFromJSON)(jsonValue); })];
624
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FileShareDto_1.FileShareDtoFromJSON)(jsonValue); })];
505
625
  }
506
626
  });
507
627
  });
@@ -523,39 +643,52 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
523
643
  });
524
644
  });
525
645
  };
646
+ /**
647
+ * Creates request options for updateShare without sending the request
648
+ */
649
+ FileDirectorySharesApi.prototype.updateShareRequestOpts = function (requestParameters) {
650
+ return __awaiter(this, void 0, void 0, function () {
651
+ var queryParameters, headerParameters, urlPath;
652
+ return __generator(this, function (_a) {
653
+ if (requestParameters['id'] == null) {
654
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateShare().');
655
+ }
656
+ if (requestParameters['fileShareDto'] == null) {
657
+ throw new runtime.RequiredError('fileShareDto', 'Required parameter "fileShareDto" was null or undefined when calling updateShare().');
658
+ }
659
+ queryParameters = {};
660
+ if (requestParameters['force'] != null) {
661
+ queryParameters['force'] = requestParameters['force'];
662
+ }
663
+ headerParameters = {};
664
+ headerParameters['Content-Type'] = 'application/json';
665
+ urlPath = "/ui/files/v1/shares/{id}";
666
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
667
+ return [2 /*return*/, {
668
+ path: urlPath,
669
+ method: 'PUT',
670
+ headers: headerParameters,
671
+ query: queryParameters,
672
+ body: (0, FileShareDto_1.FileShareDtoToJSON)(requestParameters['fileShareDto']),
673
+ }];
674
+ });
675
+ });
676
+ };
526
677
  /**
527
678
  * Update a share
528
679
  */
529
680
  FileDirectorySharesApi.prototype.updateShareRaw = function (requestParameters, initOverrides) {
530
681
  return __awaiter(this, void 0, void 0, function () {
531
- var queryParameters, headerParameters, urlPath, response;
682
+ var requestOptions, response;
532
683
  return __generator(this, function (_a) {
533
684
  switch (_a.label) {
534
- case 0:
535
- if (requestParameters['id'] == null) {
536
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateShare().');
537
- }
538
- if (requestParameters['fileShareDto'] == null) {
539
- throw new runtime.RequiredError('fileShareDto', 'Required parameter "fileShareDto" was null or undefined when calling updateShare().');
540
- }
541
- queryParameters = {};
542
- if (requestParameters['force'] != null) {
543
- queryParameters['force'] = requestParameters['force'];
544
- }
545
- headerParameters = {};
546
- headerParameters['Content-Type'] = 'application/json';
547
- urlPath = "/ui/files/v1/shares/{id}";
548
- urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
549
- return [4 /*yield*/, this.request({
550
- path: urlPath,
551
- method: 'PUT',
552
- headers: headerParameters,
553
- query: queryParameters,
554
- body: (0, index_1.FileShareDtoToJSON)(requestParameters['fileShareDto']),
555
- }, initOverrides)];
685
+ case 0: return [4 /*yield*/, this.updateShareRequestOpts(requestParameters)];
556
686
  case 1:
687
+ requestOptions = _a.sent();
688
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
689
+ case 2:
557
690
  response = _a.sent();
558
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FileShareDtoFromJSON)(jsonValue); })];
691
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FileShareDto_1.FileShareDtoFromJSON)(jsonValue); })];
559
692
  }
560
693
  });
561
694
  });