@learnorama/mozaik-sdk 0.12.4-staging.47.1 → 0.13.0-staging.48.1

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 (265) hide show
  1. package/dist/api/account.d.ts +1 -1
  2. package/dist/api/account.js.map +1 -1
  3. package/dist/api/admin-catalogue.d.ts +1 -1
  4. package/dist/api/admin-catalogue.js.map +1 -1
  5. package/dist/api/admin-consumption.d.ts +1 -1
  6. package/dist/api/admin-consumption.js.map +1 -1
  7. package/dist/api/admin-contracts.d.ts +1 -1
  8. package/dist/api/admin-contracts.js.map +1 -1
  9. package/dist/api/admin-desk.d.ts +1 -1
  10. package/dist/api/admin-desk.js.map +1 -1
  11. package/dist/api/admin-licenses.d.ts +1 -1
  12. package/dist/api/admin-licenses.js.map +1 -1
  13. package/dist/api/admin-partner-selections.d.ts +1 -1
  14. package/dist/api/admin-partner-selections.js.map +1 -1
  15. package/dist/api/admin-patrons.d.ts +1 -1
  16. package/dist/api/admin-patrons.js.map +1 -1
  17. package/dist/api/admin-reviews.d.ts +1 -1
  18. package/dist/api/admin-reviews.js.map +1 -1
  19. package/dist/api/admin-roles.d.ts +1 -1
  20. package/dist/api/admin-roles.js.map +1 -1
  21. package/dist/api/admin-support.d.ts +1 -1
  22. package/dist/api/admin-support.js.map +1 -1
  23. package/dist/api/admin-tenants.d.ts +1 -1
  24. package/dist/api/admin-tenants.js.map +1 -1
  25. package/dist/api/admin-tutoring.d.ts +1 -1
  26. package/dist/api/admin-tutoring.js.map +1 -1
  27. package/dist/api/auth.d.ts +1 -1
  28. package/dist/api/auth.js.map +1 -1
  29. package/dist/api/biblio-billing-webhooks.d.ts +18 -0
  30. package/dist/api/biblio-billing-webhooks.js +62 -0
  31. package/dist/api/biblio-billing-webhooks.js.map +1 -0
  32. package/dist/api/biblio-billing.d.ts +192 -0
  33. package/dist/api/biblio-billing.js +645 -0
  34. package/dist/api/biblio-billing.js.map +1 -0
  35. package/dist/api/biblio-catalogue.d.ts +1 -1
  36. package/dist/api/biblio-catalogue.js.map +1 -1
  37. package/dist/api/biblio-home.d.ts +1 -1
  38. package/dist/api/biblio-home.js.map +1 -1
  39. package/dist/api/biblio-learning-author-profiles.d.ts +108 -0
  40. package/dist/api/biblio-learning-author-profiles.js +331 -0
  41. package/dist/api/biblio-learning-author-profiles.js.map +1 -0
  42. package/dist/api/biblio-learning-authoring.d.ts +168 -0
  43. package/dist/api/biblio-learning-authoring.js +586 -0
  44. package/dist/api/biblio-learning-authoring.js.map +1 -0
  45. package/dist/api/biblio-learning-editorial.d.ts +54 -0
  46. package/dist/api/biblio-learning-editorial.js +149 -0
  47. package/dist/api/biblio-learning-editorial.js.map +1 -0
  48. package/dist/api/biblio-learning-feedback.d.ts +60 -0
  49. package/dist/api/biblio-learning-feedback.js +180 -0
  50. package/dist/api/biblio-learning-feedback.js.map +1 -0
  51. package/dist/api/biblio-learning-finance.d.ts +186 -0
  52. package/dist/api/biblio-learning-finance.js +622 -0
  53. package/dist/api/biblio-learning-finance.js.map +1 -0
  54. package/dist/api/biblio-learning-integrations.d.ts +60 -0
  55. package/dist/api/biblio-learning-integrations.js +215 -0
  56. package/dist/api/biblio-learning-integrations.js.map +1 -0
  57. package/dist/api/biblio-learning-membership.d.ts +24 -0
  58. package/dist/api/biblio-learning-membership.js +69 -0
  59. package/dist/api/biblio-learning-membership.js.map +1 -0
  60. package/dist/api/biblio-learning.d.ts +222 -0
  61. package/dist/api/biblio-learning.js +697 -0
  62. package/dist/api/biblio-learning.js.map +1 -0
  63. package/dist/api/biblio-library.d.ts +1 -1
  64. package/dist/api/biblio-library.js.map +1 -1
  65. package/dist/api/biblio-nextory.d.ts +1 -1
  66. package/dist/api/biblio-nextory.js.map +1 -1
  67. package/dist/api/biblio-press.d.ts +1 -1
  68. package/dist/api/biblio-press.js.map +1 -1
  69. package/dist/api/biblio-search.d.ts +1 -1
  70. package/dist/api/biblio-search.js.map +1 -1
  71. package/dist/api/biblio-telemetry.d.ts +1 -1
  72. package/dist/api/biblio-telemetry.js.map +1 -1
  73. package/dist/api/consumption.d.ts +1 -1
  74. package/dist/api/consumption.js.map +1 -1
  75. package/dist/api/cvs-app.d.ts +1 -1
  76. package/dist/api/cvs-app.js.map +1 -1
  77. package/dist/api/cvs-documents.d.ts +1 -1
  78. package/dist/api/cvs-documents.js.map +1 -1
  79. package/dist/api/cvs-favorites.d.ts +1 -1
  80. package/dist/api/cvs-favorites.js.map +1 -1
  81. package/dist/api/cvs-ils.d.ts +1 -1
  82. package/dist/api/cvs-ils.js.map +1 -1
  83. package/dist/api/cvs-loans.d.ts +1 -1
  84. package/dist/api/cvs-loans.js.map +1 -1
  85. package/dist/api/cvs-payments.d.ts +1 -1
  86. package/dist/api/cvs-payments.js.map +1 -1
  87. package/dist/api/cvs-streaming.d.ts +1 -1
  88. package/dist/api/cvs-streaming.js.map +1 -1
  89. package/dist/api/index.d.ts +11 -1
  90. package/dist/api/index.js +11 -1
  91. package/dist/api/partner-catalogue.d.ts +1 -1
  92. package/dist/api/partner-catalogue.js.map +1 -1
  93. package/dist/api/partner-reader.d.ts +1 -1
  94. package/dist/api/partner-reader.js.map +1 -1
  95. package/dist/api/profiles.d.ts +1 -1
  96. package/dist/api/profiles.js.map +1 -1
  97. package/dist/api/search.d.ts +1 -1
  98. package/dist/api/search.js.map +1 -1
  99. package/dist/api/tutoring-catalogue.d.ts +1 -1
  100. package/dist/api/tutoring-catalogue.js.map +1 -1
  101. package/dist/api/tutoring-chat.d.ts +1 -1
  102. package/dist/api/tutoring-chat.js.map +1 -1
  103. package/dist/api/tutoring-dispatch.d.ts +1 -1
  104. package/dist/api/tutoring-dispatch.js.map +1 -1
  105. package/dist/api/tutoring-practitioner.d.ts +1 -1
  106. package/dist/api/tutoring-practitioner.js.map +1 -1
  107. package/dist/api/tutoring-requests.d.ts +1 -1
  108. package/dist/api/tutoring-requests.js.map +1 -1
  109. package/dist/chunks/client2.d.ts +1 -1
  110. package/dist/chunks/connection.d.ts +1 -1
  111. package/dist/chunks/index.d.ts +10038 -3487
  112. package/dist/index.d.ts +3 -3
  113. package/dist/index.js +3 -3
  114. package/dist/index.js.map +1 -1
  115. package/dist/models.d.ts +2 -2
  116. package/dist/models.js +329 -1
  117. package/dist/models.js.map +1 -1
  118. package/dist/react/account.d.ts +1 -1
  119. package/dist/react/account.js +1 -1
  120. package/dist/react/account.js.map +1 -1
  121. package/dist/react/admin-catalogue.d.ts +1 -1
  122. package/dist/react/admin-catalogue.js +1 -1
  123. package/dist/react/admin-catalogue.js.map +1 -1
  124. package/dist/react/admin-consumption.d.ts +1 -1
  125. package/dist/react/admin-consumption.js +1 -1
  126. package/dist/react/admin-consumption.js.map +1 -1
  127. package/dist/react/admin-contracts.d.ts +1 -1
  128. package/dist/react/admin-contracts.js +1 -1
  129. package/dist/react/admin-contracts.js.map +1 -1
  130. package/dist/react/admin-desk.d.ts +1 -1
  131. package/dist/react/admin-desk.js +1 -1
  132. package/dist/react/admin-desk.js.map +1 -1
  133. package/dist/react/admin-licenses.d.ts +1 -1
  134. package/dist/react/admin-licenses.js +1 -1
  135. package/dist/react/admin-licenses.js.map +1 -1
  136. package/dist/react/admin-partner-selections.d.ts +1 -1
  137. package/dist/react/admin-partner-selections.js +1 -1
  138. package/dist/react/admin-partner-selections.js.map +1 -1
  139. package/dist/react/admin-patrons.d.ts +1 -1
  140. package/dist/react/admin-patrons.js +1 -1
  141. package/dist/react/admin-patrons.js.map +1 -1
  142. package/dist/react/admin-reviews.d.ts +1 -1
  143. package/dist/react/admin-reviews.js +1 -1
  144. package/dist/react/admin-reviews.js.map +1 -1
  145. package/dist/react/admin-roles.d.ts +1 -1
  146. package/dist/react/admin-roles.js +1 -1
  147. package/dist/react/admin-roles.js.map +1 -1
  148. package/dist/react/admin-support.d.ts +1 -1
  149. package/dist/react/admin-support.js +1 -1
  150. package/dist/react/admin-support.js.map +1 -1
  151. package/dist/react/admin-tenants.d.ts +1 -1
  152. package/dist/react/admin-tenants.js +1 -1
  153. package/dist/react/admin-tenants.js.map +1 -1
  154. package/dist/react/admin-tutoring.d.ts +1 -1
  155. package/dist/react/admin-tutoring.js +1 -1
  156. package/dist/react/admin-tutoring.js.map +1 -1
  157. package/dist/react/auth.d.ts +1 -1
  158. package/dist/react/auth.js +1 -1
  159. package/dist/react/auth.js.map +1 -1
  160. package/dist/react/biblio-billing-webhooks.d.ts +56 -0
  161. package/dist/react/biblio-billing-webhooks.js +126 -0
  162. package/dist/react/biblio-billing-webhooks.js.map +1 -0
  163. package/dist/react/biblio-billing.d.ts +876 -0
  164. package/dist/react/biblio-billing.js +1491 -0
  165. package/dist/react/biblio-billing.js.map +1 -0
  166. package/dist/react/biblio-catalogue.d.ts +1 -1
  167. package/dist/react/biblio-catalogue.js +1 -1
  168. package/dist/react/biblio-catalogue.js.map +1 -1
  169. package/dist/react/biblio-home.d.ts +1 -1
  170. package/dist/react/biblio-home.js +1 -1
  171. package/dist/react/biblio-home.js.map +1 -1
  172. package/dist/react/biblio-learning-author-profiles.d.ts +513 -0
  173. package/dist/react/biblio-learning-author-profiles.js +795 -0
  174. package/dist/react/biblio-learning-author-profiles.js.map +1 -0
  175. package/dist/react/biblio-learning-authoring.d.ts +745 -0
  176. package/dist/react/biblio-learning-authoring.js +1335 -0
  177. package/dist/react/biblio-learning-authoring.js.map +1 -0
  178. package/dist/react/biblio-learning-editorial.d.ts +264 -0
  179. package/dist/react/biblio-learning-editorial.js +371 -0
  180. package/dist/react/biblio-learning-editorial.js.map +1 -0
  181. package/dist/react/biblio-learning-feedback.d.ts +280 -0
  182. package/dist/react/biblio-learning-feedback.js +433 -0
  183. package/dist/react/biblio-learning-feedback.js.map +1 -0
  184. package/dist/react/biblio-learning-finance.d.ts +868 -0
  185. package/dist/react/biblio-learning-finance.js +1439 -0
  186. package/dist/react/biblio-learning-finance.js.map +1 -0
  187. package/dist/react/biblio-learning-integrations.d.ts +237 -0
  188. package/dist/react/biblio-learning-integrations.js +483 -0
  189. package/dist/react/biblio-learning-integrations.js.map +1 -0
  190. package/dist/react/biblio-learning-membership.d.ts +99 -0
  191. package/dist/react/biblio-learning-membership.js +165 -0
  192. package/dist/react/biblio-learning-membership.js.map +1 -0
  193. package/dist/react/biblio-learning.d.ts +1047 -0
  194. package/dist/react/biblio-learning.js +1667 -0
  195. package/dist/react/biblio-learning.js.map +1 -0
  196. package/dist/react/biblio-library.d.ts +1 -1
  197. package/dist/react/biblio-library.js +1 -1
  198. package/dist/react/biblio-library.js.map +1 -1
  199. package/dist/react/biblio-nextory.d.ts +1 -1
  200. package/dist/react/biblio-nextory.js +1 -1
  201. package/dist/react/biblio-nextory.js.map +1 -1
  202. package/dist/react/biblio-press.d.ts +1 -1
  203. package/dist/react/biblio-press.js +1 -1
  204. package/dist/react/biblio-press.js.map +1 -1
  205. package/dist/react/biblio-search.d.ts +1 -1
  206. package/dist/react/biblio-search.js +1 -1
  207. package/dist/react/biblio-search.js.map +1 -1
  208. package/dist/react/biblio-telemetry.d.ts +1 -1
  209. package/dist/react/biblio-telemetry.js +1 -1
  210. package/dist/react/biblio-telemetry.js.map +1 -1
  211. package/dist/react/chat.d.ts +1 -1
  212. package/dist/react/consumption.d.ts +1 -1
  213. package/dist/react/consumption.js +1 -1
  214. package/dist/react/consumption.js.map +1 -1
  215. package/dist/react/cvs-app.d.ts +1 -1
  216. package/dist/react/cvs-app.js +1 -1
  217. package/dist/react/cvs-app.js.map +1 -1
  218. package/dist/react/cvs-documents.d.ts +1 -1
  219. package/dist/react/cvs-documents.js +1 -1
  220. package/dist/react/cvs-documents.js.map +1 -1
  221. package/dist/react/cvs-favorites.d.ts +1 -1
  222. package/dist/react/cvs-favorites.js +1 -1
  223. package/dist/react/cvs-favorites.js.map +1 -1
  224. package/dist/react/cvs-ils.d.ts +1 -1
  225. package/dist/react/cvs-ils.js +1 -1
  226. package/dist/react/cvs-ils.js.map +1 -1
  227. package/dist/react/cvs-loans.d.ts +1 -1
  228. package/dist/react/cvs-loans.js +1 -1
  229. package/dist/react/cvs-loans.js.map +1 -1
  230. package/dist/react/cvs-payments.d.ts +1 -1
  231. package/dist/react/cvs-payments.js +1 -1
  232. package/dist/react/cvs-payments.js.map +1 -1
  233. package/dist/react/cvs-streaming.d.ts +1 -1
  234. package/dist/react/cvs-streaming.js +1 -1
  235. package/dist/react/cvs-streaming.js.map +1 -1
  236. package/dist/react/index.d.ts +11 -1
  237. package/dist/react/index.js +11 -1
  238. package/dist/react/partner-catalogue.d.ts +1 -1
  239. package/dist/react/partner-catalogue.js +1 -1
  240. package/dist/react/partner-catalogue.js.map +1 -1
  241. package/dist/react/partner-reader.d.ts +1 -1
  242. package/dist/react/partner-reader.js +1 -1
  243. package/dist/react/partner-reader.js.map +1 -1
  244. package/dist/react/profiles.d.ts +1 -1
  245. package/dist/react/profiles.js +1 -1
  246. package/dist/react/profiles.js.map +1 -1
  247. package/dist/react/search.d.ts +1 -1
  248. package/dist/react/search.js +1 -1
  249. package/dist/react/search.js.map +1 -1
  250. package/dist/react/tutoring-catalogue.d.ts +1 -1
  251. package/dist/react/tutoring-catalogue.js +1 -1
  252. package/dist/react/tutoring-catalogue.js.map +1 -1
  253. package/dist/react/tutoring-chat.d.ts +1 -1
  254. package/dist/react/tutoring-chat.js +1 -1
  255. package/dist/react/tutoring-chat.js.map +1 -1
  256. package/dist/react/tutoring-dispatch.d.ts +1 -1
  257. package/dist/react/tutoring-dispatch.js +1 -1
  258. package/dist/react/tutoring-dispatch.js.map +1 -1
  259. package/dist/react/tutoring-practitioner.d.ts +1 -1
  260. package/dist/react/tutoring-practitioner.js +1 -1
  261. package/dist/react/tutoring-practitioner.js.map +1 -1
  262. package/dist/react/tutoring-requests.d.ts +1 -1
  263. package/dist/react/tutoring-requests.js +1 -1
  264. package/dist/react/tutoring-requests.js.map +1 -1
  265. package/package.json +7 -7
@@ -0,0 +1,868 @@
1
+
2
+ import { $i as LearningRoyaltyAdjustmentWrite, Bi as LearningRoyaltyPaidWrite, Fi as LearningRoyaltySettlementRead, Ga as LearningListPayeesParams, Gi as LearningRoyaltyBudgetRead, Go as LearningChannelListRead, Ha as LearningListRoyaltyPeriodsParams, Hi as LearningRoyaltyInvoiceRead, Ii as LearningRoyaltyPeriodWrite, Ji as LearningRoyaltyAllocationPage, Ka as LearningListPayeeSettlementsParams, Ko as LearningChannelRead, Li as LearningRoyaltyPeriodPage, Ni as LearningRoyaltySettlementWrite, Ns as LearningAssetRead, Pi as LearningRoyaltySettlementPage, Qi as LearningRoyaltyAgreementEndWrite, Ri as LearningRoyaltyPeriodRead, Ua as LearningListRoyaltyAllocationsParams, Ui as LearningRoyaltyBudgetWrite, Uo as LearningContractChannelWrite, Vi as LearningRoyaltyInvoiceWrite, Wi as LearningRoyaltyBudgetListRead, Wo as LearningChannelWrite, Xi as LearningRoyaltyAgreementWrite, Zi as LearningRoyaltyAgreementRead, a as ValidationErrorResponse, ca as LearningPayeeRead, da as LearningPayeeDocumentsParams, fa as LearningPayeeDocumentPage, fc as HTTPExceptionResponse, la as LearningPayeeDocumentUploadWrite, oa as LearningPayeeWrite, qa as LearningListPayeeAllocationsParams, qi as LearningRoyaltyApprovalWrite, sa as LearningPayeePage, ui as LearningUploadRead } from "../chunks/index.js";
3
+ import { a as ErrorType, c as request, n as BodyType } from "../chunks/client.js";
4
+ import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
5
+ //#region src/react/biblio-learning-finance/biblio-learning-finance.d.ts
6
+ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
7
+ export declare const getLearningEndRoyaltyAgreementUrl: (agreementId: number) => string;
8
+ /**
9
+ * Set the inclusive final month using first-of-month dates. expectedEndsMonth must match the current end unless this exact end is already applied. The change cannot precede the start, overlap other terms, or invalidate approved accounting. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
10
+ * @summary Set an agreement’s final covered month
11
+ */
12
+ export declare const learningEndRoyaltyAgreement: (agreementId: number, learningRoyaltyAgreementEndWrite: LearningRoyaltyAgreementEndWrite, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyAgreementRead>;
13
+ export declare const getLearningEndRoyaltyAgreementMutationKey: () => readonly ['learningEndRoyaltyAgreement'];
14
+ export declare const getLearningEndRoyaltyAgreementMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
15
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningEndRoyaltyAgreement>>, TError, LearningEndRoyaltyAgreementMutationVariables, TContext>;
16
+ request?: SecondParameter<typeof request>;
17
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningEndRoyaltyAgreement>>, TError, LearningEndRoyaltyAgreementMutationVariables, TContext>;
18
+ export type LearningEndRoyaltyAgreementMutationResult = NonNullable<Awaited<ReturnType<typeof learningEndRoyaltyAgreement>>>;
19
+ export type LearningEndRoyaltyAgreementMutationBody = BodyType<LearningRoyaltyAgreementEndWrite>;
20
+ export type LearningEndRoyaltyAgreementMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
21
+ export type LearningEndRoyaltyAgreementMutationVariables = {
22
+ agreementId: number;
23
+ data: BodyType<LearningRoyaltyAgreementEndWrite>;
24
+ };
25
+ /**
26
+ * @summary Set an agreement’s final covered month
27
+ */
28
+ export declare const useLearningEndRoyaltyAgreement: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
29
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningEndRoyaltyAgreement>>, TError, LearningEndRoyaltyAgreementMutationVariables, TContext>;
30
+ request?: SecondParameter<typeof request>;
31
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningEndRoyaltyAgreement>>, TError, LearningEndRoyaltyAgreementMutationVariables, TContext>;
32
+ export declare const getLearningListDistributionChannelsUrl: (catalogueId: number) => string;
33
+ /**
34
+ * List every channel in the catalogue, including inactive channels, ordered by channel ID. Organic identifies the direct distribution pool; a channel does not grant course access. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused.
35
+ * @summary List catalogue distribution channels
36
+ */
37
+ export declare const learningListDistributionChannels: (catalogueId: number, options?: Parameters<typeof request>[1]) => Promise<LearningChannelListRead>;
38
+ export declare const getLearningListDistributionChannelsQueryKey: (catalogueId: number) => readonly [`/learning/finance/catalogues/${number}/channels`];
39
+ export declare const getLearningListDistributionChannelsQueryOptions: <TData = Awaited<ReturnType<typeof learningListDistributionChannels>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(catalogueId: number, options?: {
40
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListDistributionChannels>>, TError, TData>>;
41
+ request?: SecondParameter<typeof request>;
42
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningListDistributionChannels>>, TError, TData> & {
43
+ queryKey: DataTag<QueryKey, TData, TError>;
44
+ };
45
+ export type LearningListDistributionChannelsQueryResult = NonNullable<Awaited<ReturnType<typeof learningListDistributionChannels>>>;
46
+ export type LearningListDistributionChannelsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
47
+ export declare function useLearningListDistributionChannels<TData = Awaited<ReturnType<typeof learningListDistributionChannels>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(catalogueId: number, options: {
48
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListDistributionChannels>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningListDistributionChannels>>, TError, Awaited<ReturnType<typeof learningListDistributionChannels>>>, 'initialData'>;
49
+ request?: SecondParameter<typeof request>;
50
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
51
+ queryKey: DataTag<QueryKey, TData, TError>;
52
+ };
53
+ export declare function useLearningListDistributionChannels<TData = Awaited<ReturnType<typeof learningListDistributionChannels>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(catalogueId: number, options?: {
54
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListDistributionChannels>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningListDistributionChannels>>, TError, Awaited<ReturnType<typeof learningListDistributionChannels>>>, 'initialData'>;
55
+ request?: SecondParameter<typeof request>;
56
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
57
+ queryKey: DataTag<QueryKey, TData, TError>;
58
+ };
59
+ export declare function useLearningListDistributionChannels<TData = Awaited<ReturnType<typeof learningListDistributionChannels>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(catalogueId: number, options?: {
60
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListDistributionChannels>>, TError, TData>>;
61
+ request?: SecondParameter<typeof request>;
62
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
63
+ queryKey: DataTag<QueryKey, TData, TError>;
64
+ };
65
+ export declare const getLearningCreateDistributionChannelUrl: (catalogueId: number) => string;
66
+ /**
67
+ * Create an active organic or promotional accounting channel. At most one active organic channel is permitted per catalogue. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
68
+ * @summary Create a distribution channel
69
+ */
70
+ export declare const learningCreateDistributionChannel: (catalogueId: number, learningChannelWrite: LearningChannelWrite, options?: Parameters<typeof request>[1]) => Promise<LearningChannelRead>;
71
+ export declare const getLearningCreateDistributionChannelMutationKey: () => readonly ['learningCreateDistributionChannel'];
72
+ export declare const getLearningCreateDistributionChannelMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
73
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningCreateDistributionChannel>>, TError, LearningCreateDistributionChannelMutationVariables, TContext>;
74
+ request?: SecondParameter<typeof request>;
75
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningCreateDistributionChannel>>, TError, LearningCreateDistributionChannelMutationVariables, TContext>;
76
+ export type LearningCreateDistributionChannelMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateDistributionChannel>>>;
77
+ export type LearningCreateDistributionChannelMutationBody = BodyType<LearningChannelWrite>;
78
+ export type LearningCreateDistributionChannelMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
79
+ export type LearningCreateDistributionChannelMutationVariables = {
80
+ catalogueId: number;
81
+ data: BodyType<LearningChannelWrite>;
82
+ };
83
+ /**
84
+ * @summary Create a distribution channel
85
+ */
86
+ export declare const useLearningCreateDistributionChannel: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
87
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningCreateDistributionChannel>>, TError, LearningCreateDistributionChannelMutationVariables, TContext>;
88
+ request?: SecondParameter<typeof request>;
89
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningCreateDistributionChannel>>, TError, LearningCreateDistributionChannelMutationVariables, TContext>;
90
+ export declare const getLearningCreatePayeeUrl: (catalogueId: number) => string;
91
+ /**
92
+ * Link an active independent account to one catalogue’s billing profile. The (catalogue, user) pair must be unique. expectedUpdatedAt is ignored on creation; optional legal details may be completed before invoicing. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
93
+ * @summary Create a rightsholder billing profile
94
+ */
95
+ export declare const learningCreatePayee: (catalogueId: number, learningPayeeWrite: LearningPayeeWrite, options?: Parameters<typeof request>[1]) => Promise<LearningPayeeRead>;
96
+ export declare const getLearningCreatePayeeMutationKey: () => readonly ['learningCreatePayee'];
97
+ export declare const getLearningCreatePayeeMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
98
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningCreatePayee>>, TError, LearningCreatePayeeMutationVariables, TContext>;
99
+ request?: SecondParameter<typeof request>;
100
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningCreatePayee>>, TError, LearningCreatePayeeMutationVariables, TContext>;
101
+ export type LearningCreatePayeeMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreatePayee>>>;
102
+ export type LearningCreatePayeeMutationBody = BodyType<LearningPayeeWrite>;
103
+ export type LearningCreatePayeeMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
104
+ export type LearningCreatePayeeMutationVariables = {
105
+ catalogueId: number;
106
+ data: BodyType<LearningPayeeWrite>;
107
+ };
108
+ /**
109
+ * @summary Create a rightsholder billing profile
110
+ */
111
+ export declare const useLearningCreatePayee: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
112
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningCreatePayee>>, TError, LearningCreatePayeeMutationVariables, TContext>;
113
+ request?: SecondParameter<typeof request>;
114
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningCreatePayee>>, TError, LearningCreatePayeeMutationVariables, TContext>;
115
+ export declare const getLearningListRoyaltyPeriodsUrl: (catalogueId: number, params?: LearningListRoyaltyPeriodsParams) => string;
116
+ /**
117
+ * List accounting periods for the catalogue, newest month then ID first. State and generation identify which inputs/results are current; historical accounting remains readable even when a catalogue closes. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused.
118
+ * @summary List catalogue accounting months
119
+ */
120
+ export declare const learningListRoyaltyPeriods: (catalogueId: number, params?: LearningListRoyaltyPeriodsParams, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyPeriodPage>;
121
+ export declare const getLearningListRoyaltyPeriodsQueryKey: (catalogueId: number, params?: LearningListRoyaltyPeriodsParams) => readonly [`/learning/finance/catalogues/${number}/periods`, ...LearningListRoyaltyPeriodsParams[]];
122
+ export declare const getLearningListRoyaltyPeriodsQueryOptions: <TData = Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(catalogueId: number, params?: LearningListRoyaltyPeriodsParams, options?: {
123
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError, TData>>;
124
+ request?: SecondParameter<typeof request>;
125
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError, TData> & {
126
+ queryKey: DataTag<QueryKey, TData, TError>;
127
+ };
128
+ export type LearningListRoyaltyPeriodsQueryResult = NonNullable<Awaited<ReturnType<typeof learningListRoyaltyPeriods>>>;
129
+ export type LearningListRoyaltyPeriodsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
130
+ export declare function useLearningListRoyaltyPeriods<TData = Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(catalogueId: number, params: undefined | LearningListRoyaltyPeriodsParams, options: {
131
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError, Awaited<ReturnType<typeof learningListRoyaltyPeriods>>>, 'initialData'>;
132
+ request?: SecondParameter<typeof request>;
133
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
134
+ queryKey: DataTag<QueryKey, TData, TError>;
135
+ };
136
+ export declare function useLearningListRoyaltyPeriods<TData = Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(catalogueId: number, params?: LearningListRoyaltyPeriodsParams, options?: {
137
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError, Awaited<ReturnType<typeof learningListRoyaltyPeriods>>>, 'initialData'>;
138
+ request?: SecondParameter<typeof request>;
139
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
140
+ queryKey: DataTag<QueryKey, TData, TError>;
141
+ };
142
+ export declare function useLearningListRoyaltyPeriods<TData = Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(catalogueId: number, params?: LearningListRoyaltyPeriodsParams, options?: {
143
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyPeriods>>, TError, TData>>;
144
+ request?: SecondParameter<typeof request>;
145
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
146
+ queryKey: DataTag<QueryKey, TData, TError>;
147
+ };
148
+ export declare const getLearningCreateRoyaltyPeriodUrl: (catalogueId: number) => string;
149
+ /**
150
+ * Create a draft period for one catalogue, calendar month and currency. month must be the first day; currency is three uppercase letters. A period may be opened before the month closes, but calculation must wait for its Europe/Paris month boundary. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
151
+ * @summary Open a monthly royalty period
152
+ */
153
+ export declare const learningCreateRoyaltyPeriod: (catalogueId: number, learningRoyaltyPeriodWrite: LearningRoyaltyPeriodWrite, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyPeriodRead>;
154
+ export declare const getLearningCreateRoyaltyPeriodMutationKey: () => readonly ['learningCreateRoyaltyPeriod'];
155
+ export declare const getLearningCreateRoyaltyPeriodMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
156
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningCreateRoyaltyPeriod>>, TError, LearningCreateRoyaltyPeriodMutationVariables, TContext>;
157
+ request?: SecondParameter<typeof request>;
158
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningCreateRoyaltyPeriod>>, TError, LearningCreateRoyaltyPeriodMutationVariables, TContext>;
159
+ export type LearningCreateRoyaltyPeriodMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateRoyaltyPeriod>>>;
160
+ export type LearningCreateRoyaltyPeriodMutationBody = BodyType<LearningRoyaltyPeriodWrite>;
161
+ export type LearningCreateRoyaltyPeriodMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
162
+ export type LearningCreateRoyaltyPeriodMutationVariables = {
163
+ catalogueId: number;
164
+ data: BodyType<LearningRoyaltyPeriodWrite>;
165
+ };
166
+ /**
167
+ * @summary Open a monthly royalty period
168
+ */
169
+ export declare const useLearningCreateRoyaltyPeriod: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
170
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningCreateRoyaltyPeriod>>, TError, LearningCreateRoyaltyPeriodMutationVariables, TContext>;
171
+ request?: SecondParameter<typeof request>;
172
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningCreateRoyaltyPeriod>>, TError, LearningCreateRoyaltyPeriodMutationVariables, TContext>;
173
+ export declare const getLearningSetContractChannelUrl: (contractId: number) => string;
174
+ /**
175
+ * Replace the contract’s distribution mapping and eligibility flag. The channel must be active; this mapping controls royalty attribution and does not grant reader access. Global commercial authority is required in addition to the channel catalogue scope. Success returns no body. Mutations require high authentication assurance.
176
+ * @summary Assign a contract’s royalty channel
177
+ */
178
+ export declare const learningSetContractChannel: (contractId: number, learningContractChannelWrite: LearningContractChannelWrite, options?: Parameters<typeof request>[1]) => Promise<void>;
179
+ export declare const getLearningSetContractChannelMutationKey: () => readonly ['learningSetContractChannel'];
180
+ export declare const getLearningSetContractChannelMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
181
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningSetContractChannel>>, TError, LearningSetContractChannelMutationVariables, TContext>;
182
+ request?: SecondParameter<typeof request>;
183
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningSetContractChannel>>, TError, LearningSetContractChannelMutationVariables, TContext>;
184
+ export type LearningSetContractChannelMutationResult = NonNullable<Awaited<ReturnType<typeof learningSetContractChannel>>>;
185
+ export type LearningSetContractChannelMutationBody = BodyType<LearningContractChannelWrite>;
186
+ export type LearningSetContractChannelMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
187
+ export type LearningSetContractChannelMutationVariables = {
188
+ contractId: number;
189
+ data: BodyType<LearningContractChannelWrite>;
190
+ };
191
+ /**
192
+ * @summary Assign a contract’s royalty channel
193
+ */
194
+ export declare const useLearningSetContractChannel: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
195
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningSetContractChannel>>, TError, LearningSetContractChannelMutationVariables, TContext>;
196
+ request?: SecondParameter<typeof request>;
197
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningSetContractChannel>>, TError, LearningSetContractChannelMutationVariables, TContext>;
198
+ export declare const getLearningCreateRoyaltyAgreementUrl: (courseId: number) => string;
199
+ /**
200
+ * Create terms for an active rightsholder in the course’s financial catalogue. First-of-month bounds are inclusive; null endsMonth leaves the agreement open. Overlapping terms for the same course/payee are refused. share is a fraction; coefficients are negotiated multipliers. Calculation requires the course’s applicable shares to sum to one. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
201
+ * @summary Create monthly rightsholder terms
202
+ */
203
+ export declare const learningCreateRoyaltyAgreement: (courseId: number, learningRoyaltyAgreementWrite: LearningRoyaltyAgreementWrite, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyAgreementRead>;
204
+ export declare const getLearningCreateRoyaltyAgreementMutationKey: () => readonly ['learningCreateRoyaltyAgreement'];
205
+ export declare const getLearningCreateRoyaltyAgreementMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
206
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningCreateRoyaltyAgreement>>, TError, LearningCreateRoyaltyAgreementMutationVariables, TContext>;
207
+ request?: SecondParameter<typeof request>;
208
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningCreateRoyaltyAgreement>>, TError, LearningCreateRoyaltyAgreementMutationVariables, TContext>;
209
+ export type LearningCreateRoyaltyAgreementMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateRoyaltyAgreement>>>;
210
+ export type LearningCreateRoyaltyAgreementMutationBody = BodyType<LearningRoyaltyAgreementWrite>;
211
+ export type LearningCreateRoyaltyAgreementMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
212
+ export type LearningCreateRoyaltyAgreementMutationVariables = {
213
+ courseId: number;
214
+ data: BodyType<LearningRoyaltyAgreementWrite>;
215
+ };
216
+ /**
217
+ * @summary Create monthly rightsholder terms
218
+ */
219
+ export declare const useLearningCreateRoyaltyAgreement: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
220
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningCreateRoyaltyAgreement>>, TError, LearningCreateRoyaltyAgreementMutationVariables, TContext>;
221
+ request?: SecondParameter<typeof request>;
222
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningCreateRoyaltyAgreement>>, TError, LearningCreateRoyaltyAgreementMutationVariables, TContext>;
223
+ export declare const getLearningReadRoyaltyInvoiceUrl: (invoiceId: number) => string;
224
+ /**
225
+ * Read immutable issuance facts and the authenticated document endpoint. number is the native sequence; sourceNumber preserves an imported reference. Historical missing net/tax facts stay null and must not be reconstructed from current legal details. A source invoice without a settlement requires catalogue finance authority. Available to the linked independent rightsholder or catalogue finance/global commercial authority; support impersonation is refused.
226
+ * @summary Read native or source invoice facts
227
+ */
228
+ export declare const learningReadRoyaltyInvoice: (invoiceId: number, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyInvoiceRead>;
229
+ export declare const getLearningReadRoyaltyInvoiceQueryKey: (invoiceId: number) => readonly [`/learning/finance/invoices/${number}`];
230
+ export declare const getLearningReadRoyaltyInvoiceQueryOptions: <TData = Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(invoiceId: number, options?: {
231
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError, TData>>;
232
+ request?: SecondParameter<typeof request>;
233
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError, TData> & {
234
+ queryKey: DataTag<QueryKey, TData, TError>;
235
+ };
236
+ export type LearningReadRoyaltyInvoiceQueryResult = NonNullable<Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>>;
237
+ export type LearningReadRoyaltyInvoiceQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
238
+ export declare function useLearningReadRoyaltyInvoice<TData = Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(invoiceId: number, options: {
239
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError, Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>>, 'initialData'>;
240
+ request?: SecondParameter<typeof request>;
241
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
242
+ queryKey: DataTag<QueryKey, TData, TError>;
243
+ };
244
+ export declare function useLearningReadRoyaltyInvoice<TData = Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(invoiceId: number, options?: {
245
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError, Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>>, 'initialData'>;
246
+ request?: SecondParameter<typeof request>;
247
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
248
+ queryKey: DataTag<QueryKey, TData, TError>;
249
+ };
250
+ export declare function useLearningReadRoyaltyInvoice<TData = Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(invoiceId: number, options?: {
251
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltyInvoice>>, TError, TData>>;
252
+ request?: SecondParameter<typeof request>;
253
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
254
+ queryKey: DataTag<QueryKey, TData, TError>;
255
+ };
256
+ export declare const getLearningDownloadRoyaltyInvoiceUrl: (invoiceId: number) => string;
257
+ /**
258
+ * Render the stored issuance snapshots as binary application/pdf. Returns Cache-Control: private, no-store and an attachment filename invoice-{invoice_id}.pdf. Missing original parties, amount, tax rate or supported layout prevents rendering; current billing details are never substituted into old invoices. A source invoice without a settlement requires catalogue finance authority. Available to the linked independent rightsholder or catalogue finance/global commercial authority; support impersonation is refused.
259
+ * @summary Download a private invoice PDF
260
+ */
261
+ export declare const learningDownloadRoyaltyInvoice: (invoiceId: number, options?: Parameters<typeof request>[1]) => Promise<Blob>;
262
+ export declare const getLearningDownloadRoyaltyInvoiceQueryKey: (invoiceId: number) => readonly [`/learning/finance/invoices/${number}/document`];
263
+ export declare const getLearningDownloadRoyaltyInvoiceQueryOptions: <TData = Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(invoiceId: number, options?: {
264
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError, TData>>;
265
+ request?: SecondParameter<typeof request>;
266
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError, TData> & {
267
+ queryKey: DataTag<QueryKey, TData, TError>;
268
+ };
269
+ export type LearningDownloadRoyaltyInvoiceQueryResult = NonNullable<Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>>;
270
+ export type LearningDownloadRoyaltyInvoiceQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
271
+ export declare function useLearningDownloadRoyaltyInvoice<TData = Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(invoiceId: number, options: {
272
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError, Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>>, 'initialData'>;
273
+ request?: SecondParameter<typeof request>;
274
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
275
+ queryKey: DataTag<QueryKey, TData, TError>;
276
+ };
277
+ export declare function useLearningDownloadRoyaltyInvoice<TData = Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(invoiceId: number, options?: {
278
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError, Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>>, 'initialData'>;
279
+ request?: SecondParameter<typeof request>;
280
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
281
+ queryKey: DataTag<QueryKey, TData, TError>;
282
+ };
283
+ export declare function useLearningDownloadRoyaltyInvoice<TData = Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(invoiceId: number, options?: {
284
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningDownloadRoyaltyInvoice>>, TError, TData>>;
285
+ request?: SecondParameter<typeof request>;
286
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
287
+ queryKey: DataTag<QueryKey, TData, TError>;
288
+ };
289
+ export declare const getLearningListPayeesUrl: (params?: LearningListPayeesParams) => string;
290
+ /**
291
+ * List the caller’s linked rightsholders plus profiles in catalogues where they hold a finance grant; global commercial operators see all. Includes inactive and historical rows, ordered by ID. Public author attribution alone grants no finance access. Dependent profiles and support impersonation are refused.
292
+ * @summary List accessible rightsholder billing profiles
293
+ */
294
+ export declare const learningListPayees: (params?: LearningListPayeesParams, options?: Parameters<typeof request>[1]) => Promise<LearningPayeePage>;
295
+ export declare const getLearningListPayeesQueryKey: (params?: LearningListPayeesParams) => readonly ["/learning/finance/payees", ...LearningListPayeesParams[]];
296
+ export declare const getLearningListPayeesQueryOptions: <TData = Awaited<ReturnType<typeof learningListPayees>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: LearningListPayeesParams, options?: {
297
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayees>>, TError, TData>>;
298
+ request?: SecondParameter<typeof request>;
299
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningListPayees>>, TError, TData> & {
300
+ queryKey: DataTag<QueryKey, TData, TError>;
301
+ };
302
+ export type LearningListPayeesQueryResult = NonNullable<Awaited<ReturnType<typeof learningListPayees>>>;
303
+ export type LearningListPayeesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
304
+ export declare function useLearningListPayees<TData = Awaited<ReturnType<typeof learningListPayees>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params: undefined | LearningListPayeesParams, options: {
305
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayees>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningListPayees>>, TError, Awaited<ReturnType<typeof learningListPayees>>>, 'initialData'>;
306
+ request?: SecondParameter<typeof request>;
307
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
308
+ queryKey: DataTag<QueryKey, TData, TError>;
309
+ };
310
+ export declare function useLearningListPayees<TData = Awaited<ReturnType<typeof learningListPayees>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: LearningListPayeesParams, options?: {
311
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayees>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningListPayees>>, TError, Awaited<ReturnType<typeof learningListPayees>>>, 'initialData'>;
312
+ request?: SecondParameter<typeof request>;
313
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
314
+ queryKey: DataTag<QueryKey, TData, TError>;
315
+ };
316
+ export declare function useLearningListPayees<TData = Awaited<ReturnType<typeof learningListPayees>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: LearningListPayeesParams, options?: {
317
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayees>>, TError, TData>>;
318
+ request?: SecondParameter<typeof request>;
319
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
320
+ queryKey: DataTag<QueryKey, TData, TError>;
321
+ };
322
+ export declare const getLearningReadPayeeUrl: (payeeId: number) => string;
323
+ /**
324
+ * Read current legal details and the updatedAt concurrency value needed for replacement. Historical null values remain unknown. Available to the linked independent rightsholder or catalogue finance/global commercial authority; support impersonation is refused.
325
+ * @summary Read a rightsholder billing profile
326
+ */
327
+ export declare const learningReadPayee: (payeeId: number, options?: Parameters<typeof request>[1]) => Promise<LearningPayeeRead>;
328
+ export declare const getLearningReadPayeeQueryKey: (payeeId: number) => readonly [`/learning/finance/payees/${number}`];
329
+ export declare const getLearningReadPayeeQueryOptions: <TData = Awaited<ReturnType<typeof learningReadPayee>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, options?: {
330
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadPayee>>, TError, TData>>;
331
+ request?: SecondParameter<typeof request>;
332
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningReadPayee>>, TError, TData> & {
333
+ queryKey: DataTag<QueryKey, TData, TError>;
334
+ };
335
+ export type LearningReadPayeeQueryResult = NonNullable<Awaited<ReturnType<typeof learningReadPayee>>>;
336
+ export type LearningReadPayeeQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
337
+ export declare function useLearningReadPayee<TData = Awaited<ReturnType<typeof learningReadPayee>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, options: {
338
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadPayee>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningReadPayee>>, TError, Awaited<ReturnType<typeof learningReadPayee>>>, 'initialData'>;
339
+ request?: SecondParameter<typeof request>;
340
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
341
+ queryKey: DataTag<QueryKey, TData, TError>;
342
+ };
343
+ export declare function useLearningReadPayee<TData = Awaited<ReturnType<typeof learningReadPayee>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, options?: {
344
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadPayee>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningReadPayee>>, TError, Awaited<ReturnType<typeof learningReadPayee>>>, 'initialData'>;
345
+ request?: SecondParameter<typeof request>;
346
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
347
+ queryKey: DataTag<QueryKey, TData, TError>;
348
+ };
349
+ export declare function useLearningReadPayee<TData = Awaited<ReturnType<typeof learningReadPayee>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, options?: {
350
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadPayee>>, TError, TData>>;
351
+ request?: SecondParameter<typeof request>;
352
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
353
+ queryKey: DataTag<QueryKey, TData, TError>;
354
+ };
355
+ export declare const getLearningUpdatePayeeUrl: (payeeId: number) => string;
356
+ /**
357
+ * Replace all editable billing fields; omitted optional fields become null. Send the current updatedAt as expectedUpdatedAt and keep userId unchanged. Returns the new concurrency timestamp. Available to the linked independent rightsholder or catalogue finance/global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
358
+ * @summary Replace a rightsholder’s legal details
359
+ */
360
+ export declare const learningUpdatePayee: (payeeId: number, learningPayeeWrite: LearningPayeeWrite, options?: Parameters<typeof request>[1]) => Promise<LearningPayeeRead>;
361
+ export declare const getLearningUpdatePayeeMutationKey: () => readonly ['learningUpdatePayee'];
362
+ export declare const getLearningUpdatePayeeMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
363
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningUpdatePayee>>, TError, LearningUpdatePayeeMutationVariables, TContext>;
364
+ request?: SecondParameter<typeof request>;
365
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningUpdatePayee>>, TError, LearningUpdatePayeeMutationVariables, TContext>;
366
+ export type LearningUpdatePayeeMutationResult = NonNullable<Awaited<ReturnType<typeof learningUpdatePayee>>>;
367
+ export type LearningUpdatePayeeMutationBody = BodyType<LearningPayeeWrite>;
368
+ export type LearningUpdatePayeeMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
369
+ export type LearningUpdatePayeeMutationVariables = {
370
+ payeeId: number;
371
+ data: BodyType<LearningPayeeWrite>;
372
+ };
373
+ /**
374
+ * @summary Replace a rightsholder’s legal details
375
+ */
376
+ export declare const useLearningUpdatePayee: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
377
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningUpdatePayee>>, TError, LearningUpdatePayeeMutationVariables, TContext>;
378
+ request?: SecondParameter<typeof request>;
379
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningUpdatePayee>>, TError, LearningUpdatePayeeMutationVariables, TContext>;
380
+ export declare const getLearningListPayeeAllocationsUrl: (payeeId: number, params?: LearningListPayeeAllocationsParams) => string;
381
+ /**
382
+ * Page only this rightsholder’s allocations from approved months and each month’s current generation, newest month then allocation ID. Unapproved calculation output stays in the catalogue finance review endpoint. Amounts are decimal major currency units, not integer cents. Available to the linked independent rightsholder or catalogue finance/global commercial authority; support impersonation is refused.
383
+ * @summary List approved rightsholder allocations
384
+ */
385
+ export declare const learningListPayeeAllocations: (payeeId: number, params?: LearningListPayeeAllocationsParams, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyAllocationPage>;
386
+ export declare const getLearningListPayeeAllocationsQueryKey: (payeeId: number, params?: LearningListPayeeAllocationsParams) => readonly [`/learning/finance/payees/${number}/allocations`, ...LearningListPayeeAllocationsParams[]];
387
+ export declare const getLearningListPayeeAllocationsQueryOptions: <TData = Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params?: LearningListPayeeAllocationsParams, options?: {
388
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError, TData>>;
389
+ request?: SecondParameter<typeof request>;
390
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError, TData> & {
391
+ queryKey: DataTag<QueryKey, TData, TError>;
392
+ };
393
+ export type LearningListPayeeAllocationsQueryResult = NonNullable<Awaited<ReturnType<typeof learningListPayeeAllocations>>>;
394
+ export type LearningListPayeeAllocationsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
395
+ export declare function useLearningListPayeeAllocations<TData = Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params: undefined | LearningListPayeeAllocationsParams, options: {
396
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError, Awaited<ReturnType<typeof learningListPayeeAllocations>>>, 'initialData'>;
397
+ request?: SecondParameter<typeof request>;
398
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
399
+ queryKey: DataTag<QueryKey, TData, TError>;
400
+ };
401
+ export declare function useLearningListPayeeAllocations<TData = Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params?: LearningListPayeeAllocationsParams, options?: {
402
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError, Awaited<ReturnType<typeof learningListPayeeAllocations>>>, 'initialData'>;
403
+ request?: SecondParameter<typeof request>;
404
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
405
+ queryKey: DataTag<QueryKey, TData, TError>;
406
+ };
407
+ export declare function useLearningListPayeeAllocations<TData = Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params?: LearningListPayeeAllocationsParams, options?: {
408
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayeeAllocations>>, TError, TData>>;
409
+ request?: SecondParameter<typeof request>;
410
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
411
+ queryKey: DataTag<QueryKey, TData, TError>;
412
+ };
413
+ export declare const getLearningReservePayeeDocumentUrl: (payeeId: number) => string;
414
+ /**
415
+ * Reserve legal evidence, then PUT exactly sizeBytes raw bytes to uploadUrl with the declared Content-Type. For this purpose only PDF, JPEG and PNG are accepted, with a 10 MiB (10,485,760 byte) maximum despite the broader shared upload schema. Reservation alone does not create a completed legal document; completion validates the bytes. At most ten unexpired pending uploads are allowed per profile. Available to the linked independent rightsholder or catalogue finance/global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
416
+ * @summary Reserve a private rightsholder document upload
417
+ */
418
+ export declare const learningReservePayeeDocument: (payeeId: number, learningPayeeDocumentUploadWrite: LearningPayeeDocumentUploadWrite, options?: Parameters<typeof request>[1]) => Promise<LearningUploadRead>;
419
+ export declare const getLearningReservePayeeDocumentMutationKey: () => readonly ['learningReservePayeeDocument'];
420
+ export declare const getLearningReservePayeeDocumentMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
421
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningReservePayeeDocument>>, TError, LearningReservePayeeDocumentMutationVariables, TContext>;
422
+ request?: SecondParameter<typeof request>;
423
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningReservePayeeDocument>>, TError, LearningReservePayeeDocumentMutationVariables, TContext>;
424
+ export type LearningReservePayeeDocumentMutationResult = NonNullable<Awaited<ReturnType<typeof learningReservePayeeDocument>>>;
425
+ export type LearningReservePayeeDocumentMutationBody = BodyType<LearningPayeeDocumentUploadWrite>;
426
+ export type LearningReservePayeeDocumentMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
427
+ export type LearningReservePayeeDocumentMutationVariables = {
428
+ payeeId: number;
429
+ data: BodyType<LearningPayeeDocumentUploadWrite>;
430
+ };
431
+ /**
432
+ * @summary Reserve a private rightsholder document upload
433
+ */
434
+ export declare const useLearningReservePayeeDocument: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
435
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningReservePayeeDocument>>, TError, LearningReservePayeeDocumentMutationVariables, TContext>;
436
+ request?: SecondParameter<typeof request>;
437
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningReservePayeeDocument>>, TError, LearningReservePayeeDocumentMutationVariables, TContext>;
438
+ export declare const getLearningPayeeDocumentsUrl: (payeeId: number, params?: LearningPayeeDocumentsParams) => string;
439
+ /**
440
+ * List completed document metadata, newest ID first. No file bytes or storage keys appear here; use the scoped document endpoint for delivery. Source creation dates may be unknown. This read also requires high authentication assurance. Available to the linked independent rightsholder or catalogue finance/global commercial authority; support impersonation is refused.
441
+ * @summary List private rightsholder legal documents
442
+ */
443
+ export declare const learningPayeeDocuments: (payeeId: number, params?: LearningPayeeDocumentsParams, options?: Parameters<typeof request>[1]) => Promise<LearningPayeeDocumentPage>;
444
+ export declare const getLearningPayeeDocumentsQueryKey: (payeeId: number, params?: LearningPayeeDocumentsParams) => readonly [`/learning/finance/payees/${number}/documents`, ...LearningPayeeDocumentsParams[]];
445
+ export declare const getLearningPayeeDocumentsQueryOptions: <TData = Awaited<ReturnType<typeof learningPayeeDocuments>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params?: LearningPayeeDocumentsParams, options?: {
446
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningPayeeDocuments>>, TError, TData>>;
447
+ request?: SecondParameter<typeof request>;
448
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningPayeeDocuments>>, TError, TData> & {
449
+ queryKey: DataTag<QueryKey, TData, TError>;
450
+ };
451
+ export type LearningPayeeDocumentsQueryResult = NonNullable<Awaited<ReturnType<typeof learningPayeeDocuments>>>;
452
+ export type LearningPayeeDocumentsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
453
+ export declare function useLearningPayeeDocuments<TData = Awaited<ReturnType<typeof learningPayeeDocuments>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params: undefined | LearningPayeeDocumentsParams, options: {
454
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningPayeeDocuments>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningPayeeDocuments>>, TError, Awaited<ReturnType<typeof learningPayeeDocuments>>>, 'initialData'>;
455
+ request?: SecondParameter<typeof request>;
456
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
457
+ queryKey: DataTag<QueryKey, TData, TError>;
458
+ };
459
+ export declare function useLearningPayeeDocuments<TData = Awaited<ReturnType<typeof learningPayeeDocuments>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params?: LearningPayeeDocumentsParams, options?: {
460
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningPayeeDocuments>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningPayeeDocuments>>, TError, Awaited<ReturnType<typeof learningPayeeDocuments>>>, 'initialData'>;
461
+ request?: SecondParameter<typeof request>;
462
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
463
+ queryKey: DataTag<QueryKey, TData, TError>;
464
+ };
465
+ export declare function useLearningPayeeDocuments<TData = Awaited<ReturnType<typeof learningPayeeDocuments>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params?: LearningPayeeDocumentsParams, options?: {
466
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningPayeeDocuments>>, TError, TData>>;
467
+ request?: SecondParameter<typeof request>;
468
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
469
+ queryKey: DataTag<QueryKey, TData, TError>;
470
+ };
471
+ export declare const getLearningDownloadPayeeDocumentUrl: (payeeId: number, documentId: number) => string;
472
+ /**
473
+ * Authorize both the payee and its document, then return a JSON asset descriptor. Follow its url to retrieve PDF/image bytes; this operation itself does not return a binary file. Treat temporary signed delivery URLs as private capabilities. This read requires high authentication assurance. Available to the linked independent rightsholder or catalogue finance/global commercial authority; support impersonation is refused.
474
+ * @summary Get delivery for a private legal document
475
+ */
476
+ export declare const learningDownloadPayeeDocument: (payeeId: number, documentId: number, options?: Parameters<typeof request>[1]) => Promise<LearningAssetRead>;
477
+ export declare const getLearningDownloadPayeeDocumentQueryKey: (payeeId: number, documentId: number) => readonly [`/learning/finance/payees/${number}/documents/${number}`];
478
+ export declare const getLearningDownloadPayeeDocumentQueryOptions: <TData = Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, documentId: number, options?: {
479
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError, TData>>;
480
+ request?: SecondParameter<typeof request>;
481
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError, TData> & {
482
+ queryKey: DataTag<QueryKey, TData, TError>;
483
+ };
484
+ export type LearningDownloadPayeeDocumentQueryResult = NonNullable<Awaited<ReturnType<typeof learningDownloadPayeeDocument>>>;
485
+ export type LearningDownloadPayeeDocumentQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
486
+ export declare function useLearningDownloadPayeeDocument<TData = Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, documentId: number, options: {
487
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError, Awaited<ReturnType<typeof learningDownloadPayeeDocument>>>, 'initialData'>;
488
+ request?: SecondParameter<typeof request>;
489
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
490
+ queryKey: DataTag<QueryKey, TData, TError>;
491
+ };
492
+ export declare function useLearningDownloadPayeeDocument<TData = Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, documentId: number, options?: {
493
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError, Awaited<ReturnType<typeof learningDownloadPayeeDocument>>>, 'initialData'>;
494
+ request?: SecondParameter<typeof request>;
495
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
496
+ queryKey: DataTag<QueryKey, TData, TError>;
497
+ };
498
+ export declare function useLearningDownloadPayeeDocument<TData = Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, documentId: number, options?: {
499
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningDownloadPayeeDocument>>, TError, TData>>;
500
+ request?: SecondParameter<typeof request>;
501
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
502
+ queryKey: DataTag<QueryKey, TData, TError>;
503
+ };
504
+ export declare const getLearningListPayeeSettlementsUrl: (payeeId: number, params?: LearningListPayeeSettlementsParams) => string;
505
+ /**
506
+ * Page all settlements for this rightsholder, newest year/period/ID first. Each period covers two calendar months. Source component nulls remain unknown even when the displayed payable total applies zero-for-missing arithmetic; an unpaid flag alone is not complete source payment evidence. Available to the linked independent rightsholder or catalogue finance/global commercial authority; support impersonation is refused.
507
+ * @summary List a rightsholder’s settlements
508
+ */
509
+ export declare const learningListPayeeSettlements: (payeeId: number, params?: LearningListPayeeSettlementsParams, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltySettlementPage>;
510
+ export declare const getLearningListPayeeSettlementsQueryKey: (payeeId: number, params?: LearningListPayeeSettlementsParams) => readonly [`/learning/finance/payees/${number}/settlements`, ...LearningListPayeeSettlementsParams[]];
511
+ export declare const getLearningListPayeeSettlementsQueryOptions: <TData = Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params?: LearningListPayeeSettlementsParams, options?: {
512
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError, TData>>;
513
+ request?: SecondParameter<typeof request>;
514
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError, TData> & {
515
+ queryKey: DataTag<QueryKey, TData, TError>;
516
+ };
517
+ export type LearningListPayeeSettlementsQueryResult = NonNullable<Awaited<ReturnType<typeof learningListPayeeSettlements>>>;
518
+ export type LearningListPayeeSettlementsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
519
+ export declare function useLearningListPayeeSettlements<TData = Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params: undefined | LearningListPayeeSettlementsParams, options: {
520
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError, Awaited<ReturnType<typeof learningListPayeeSettlements>>>, 'initialData'>;
521
+ request?: SecondParameter<typeof request>;
522
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
523
+ queryKey: DataTag<QueryKey, TData, TError>;
524
+ };
525
+ export declare function useLearningListPayeeSettlements<TData = Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params?: LearningListPayeeSettlementsParams, options?: {
526
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError, Awaited<ReturnType<typeof learningListPayeeSettlements>>>, 'initialData'>;
527
+ request?: SecondParameter<typeof request>;
528
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
529
+ queryKey: DataTag<QueryKey, TData, TError>;
530
+ };
531
+ export declare function useLearningListPayeeSettlements<TData = Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(payeeId: number, params?: LearningListPayeeSettlementsParams, options?: {
532
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListPayeeSettlements>>, TError, TData>>;
533
+ request?: SecondParameter<typeof request>;
534
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
535
+ queryKey: DataTag<QueryKey, TData, TError>;
536
+ };
537
+ export declare const getLearningCreatePayeeSettlementUrl: (payeeId: number) => string;
538
+ /**
539
+ * Require both monthly periods in the same currency to be approved. period 1 means January–February and period 5 means September–October. Organic totals include slices, sales and bonuses; promotional totals include slices. Payable is max(0, organic + promotional + affiliate - advance), rounded half up to two decimals. Matching retries return the existing native settlement; source or conflicting settlements require review. Creation records accounting and initiates no transfer. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
540
+ * @summary Create a two-month rightsholder settlement
541
+ */
542
+ export declare const learningCreatePayeeSettlement: (payeeId: number, learningRoyaltySettlementWrite: LearningRoyaltySettlementWrite, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltySettlementRead>;
543
+ export declare const getLearningCreatePayeeSettlementMutationKey: () => readonly ['learningCreatePayeeSettlement'];
544
+ export declare const getLearningCreatePayeeSettlementMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
545
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningCreatePayeeSettlement>>, TError, LearningCreatePayeeSettlementMutationVariables, TContext>;
546
+ request?: SecondParameter<typeof request>;
547
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningCreatePayeeSettlement>>, TError, LearningCreatePayeeSettlementMutationVariables, TContext>;
548
+ export type LearningCreatePayeeSettlementMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreatePayeeSettlement>>>;
549
+ export type LearningCreatePayeeSettlementMutationBody = BodyType<LearningRoyaltySettlementWrite>;
550
+ export type LearningCreatePayeeSettlementMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
551
+ export type LearningCreatePayeeSettlementMutationVariables = {
552
+ payeeId: number;
553
+ data: BodyType<LearningRoyaltySettlementWrite>;
554
+ };
555
+ /**
556
+ * @summary Create a two-month rightsholder settlement
557
+ */
558
+ export declare const useLearningCreatePayeeSettlement: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
559
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningCreatePayeeSettlement>>, TError, LearningCreatePayeeSettlementMutationVariables, TContext>;
560
+ request?: SecondParameter<typeof request>;
561
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningCreatePayeeSettlement>>, TError, LearningCreatePayeeSettlementMutationVariables, TContext>;
562
+ export declare const getLearningReadRoyaltyPeriodUrl: (periodId: number) => string;
563
+ /**
564
+ * Poll state, inputState and generation after requesting calculation. draft → calculating → calculated → approved; failed input preparation is reported by inputState and inputErrorCode. Read channel budgets for channel-specific failures. Approval requires complete inputs and all current budgets. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused.
565
+ * @summary Read calculation and approval state
566
+ */
567
+ export declare const learningReadRoyaltyPeriod: (periodId: number, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyPeriodRead>;
568
+ export declare const getLearningReadRoyaltyPeriodQueryKey: (periodId: number) => readonly [`/learning/finance/periods/${number}`];
569
+ export declare const getLearningReadRoyaltyPeriodQueryOptions: <TData = Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, options?: {
570
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError, TData>>;
571
+ request?: SecondParameter<typeof request>;
572
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError, TData> & {
573
+ queryKey: DataTag<QueryKey, TData, TError>;
574
+ };
575
+ export type LearningReadRoyaltyPeriodQueryResult = NonNullable<Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>>;
576
+ export type LearningReadRoyaltyPeriodQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
577
+ export declare function useLearningReadRoyaltyPeriod<TData = Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, options: {
578
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError, Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>>, 'initialData'>;
579
+ request?: SecondParameter<typeof request>;
580
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
581
+ queryKey: DataTag<QueryKey, TData, TError>;
582
+ };
583
+ export declare function useLearningReadRoyaltyPeriod<TData = Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, options?: {
584
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError, Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>>, 'initialData'>;
585
+ request?: SecondParameter<typeof request>;
586
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
587
+ queryKey: DataTag<QueryKey, TData, TError>;
588
+ };
589
+ export declare function useLearningReadRoyaltyPeriod<TData = Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, options?: {
590
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltyPeriod>>, TError, TData>>;
591
+ request?: SecondParameter<typeof request>;
592
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
593
+ queryKey: DataTag<QueryKey, TData, TError>;
594
+ };
595
+ export declare const getLearningSetRoyaltyAdjustmentUrl: (periodId: number) => string;
596
+ /**
597
+ * Replace the signed sale and bonus amounts for one course/payee in this period’s catalogue. Adjustments are attached only to the organic channel during calculation, which requires exactly one organic budget when adjustments exist. Historical, approved and running calculations cannot be edited. Success returns no body. Amounts are decimal major currency units, not integer cents. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
598
+ * @summary Set monthly sales and bonus adjustments
599
+ */
600
+ export declare const learningSetRoyaltyAdjustment: (periodId: number, learningRoyaltyAdjustmentWrite: LearningRoyaltyAdjustmentWrite, options?: Parameters<typeof request>[1]) => Promise<void>;
601
+ export declare const getLearningSetRoyaltyAdjustmentMutationKey: () => readonly ['learningSetRoyaltyAdjustment'];
602
+ export declare const getLearningSetRoyaltyAdjustmentMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
603
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningSetRoyaltyAdjustment>>, TError, LearningSetRoyaltyAdjustmentMutationVariables, TContext>;
604
+ request?: SecondParameter<typeof request>;
605
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningSetRoyaltyAdjustment>>, TError, LearningSetRoyaltyAdjustmentMutationVariables, TContext>;
606
+ export type LearningSetRoyaltyAdjustmentMutationResult = NonNullable<Awaited<ReturnType<typeof learningSetRoyaltyAdjustment>>>;
607
+ export type LearningSetRoyaltyAdjustmentMutationBody = BodyType<LearningRoyaltyAdjustmentWrite>;
608
+ export type LearningSetRoyaltyAdjustmentMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
609
+ export type LearningSetRoyaltyAdjustmentMutationVariables = {
610
+ periodId: number;
611
+ data: BodyType<LearningRoyaltyAdjustmentWrite>;
612
+ };
613
+ /**
614
+ * @summary Set monthly sales and bonus adjustments
615
+ */
616
+ export declare const useLearningSetRoyaltyAdjustment: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
617
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningSetRoyaltyAdjustment>>, TError, LearningSetRoyaltyAdjustmentMutationVariables, TContext>;
618
+ request?: SecondParameter<typeof request>;
619
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningSetRoyaltyAdjustment>>, TError, LearningSetRoyaltyAdjustmentMutationVariables, TContext>;
620
+ export declare const getLearningListRoyaltyAllocationsUrl: (periodId: number, params?: LearningListRoyaltyAllocationsParams) => string;
621
+ /**
622
+ * Page allocations for the period’s current generation, ordered by allocation ID, including unapproved calculation output for review. Within a channel, each subject contributes one unit split across courses in proportion to eligible seconds; course weight sums those fractions. Native percentage is that weight divided by the budget’s subject count times 100. sliceAmount additionally applies rightsholder share and channel coefficient; sales/bonuses are separate organic adjustments. Imported unknown percentages remain null. Amounts are decimal major currency units, not integer cents. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused.
623
+ * @summary Inspect the month’s current allocations
624
+ */
625
+ export declare const learningListRoyaltyAllocations: (periodId: number, params?: LearningListRoyaltyAllocationsParams, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyAllocationPage>;
626
+ export declare const getLearningListRoyaltyAllocationsQueryKey: (periodId: number, params?: LearningListRoyaltyAllocationsParams) => readonly [`/learning/finance/periods/${number}/allocations`, ...LearningListRoyaltyAllocationsParams[]];
627
+ export declare const getLearningListRoyaltyAllocationsQueryOptions: <TData = Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, params?: LearningListRoyaltyAllocationsParams, options?: {
628
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError, TData>>;
629
+ request?: SecondParameter<typeof request>;
630
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError, TData> & {
631
+ queryKey: DataTag<QueryKey, TData, TError>;
632
+ };
633
+ export type LearningListRoyaltyAllocationsQueryResult = NonNullable<Awaited<ReturnType<typeof learningListRoyaltyAllocations>>>;
634
+ export type LearningListRoyaltyAllocationsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
635
+ export declare function useLearningListRoyaltyAllocations<TData = Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, params: undefined | LearningListRoyaltyAllocationsParams, options: {
636
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError, Awaited<ReturnType<typeof learningListRoyaltyAllocations>>>, 'initialData'>;
637
+ request?: SecondParameter<typeof request>;
638
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
639
+ queryKey: DataTag<QueryKey, TData, TError>;
640
+ };
641
+ export declare function useLearningListRoyaltyAllocations<TData = Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, params?: LearningListRoyaltyAllocationsParams, options?: {
642
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError, Awaited<ReturnType<typeof learningListRoyaltyAllocations>>>, 'initialData'>;
643
+ request?: SecondParameter<typeof request>;
644
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
645
+ queryKey: DataTag<QueryKey, TData, TError>;
646
+ };
647
+ export declare function useLearningListRoyaltyAllocations<TData = Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, params?: LearningListRoyaltyAllocationsParams, options?: {
648
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyAllocations>>, TError, TData>>;
649
+ request?: SecondParameter<typeof request>;
650
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
651
+ queryKey: DataTag<QueryKey, TData, TError>;
652
+ };
653
+ export declare const getLearningApproveRoyaltyCalculationUrl: (periodId: number) => string;
654
+ /**
655
+ * Make a native month immutable after the input snapshot and every channel budget complete in expectedGeneration. Repeating approval of that same generation returns its approved state. Only approved allocations are visible through payee allocation history and eligible for settlement. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
656
+ * @summary Approve a completed royalty generation
657
+ */
658
+ export declare const learningApproveRoyaltyCalculation: (periodId: number, learningRoyaltyApprovalWrite: LearningRoyaltyApprovalWrite, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyPeriodRead>;
659
+ export declare const getLearningApproveRoyaltyCalculationMutationKey: () => readonly ['learningApproveRoyaltyCalculation'];
660
+ export declare const getLearningApproveRoyaltyCalculationMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
661
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningApproveRoyaltyCalculation>>, TError, LearningApproveRoyaltyCalculationMutationVariables, TContext>;
662
+ request?: SecondParameter<typeof request>;
663
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningApproveRoyaltyCalculation>>, TError, LearningApproveRoyaltyCalculationMutationVariables, TContext>;
664
+ export type LearningApproveRoyaltyCalculationMutationResult = NonNullable<Awaited<ReturnType<typeof learningApproveRoyaltyCalculation>>>;
665
+ export type LearningApproveRoyaltyCalculationMutationBody = BodyType<LearningRoyaltyApprovalWrite>;
666
+ export type LearningApproveRoyaltyCalculationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
667
+ export type LearningApproveRoyaltyCalculationMutationVariables = {
668
+ periodId: number;
669
+ data: BodyType<LearningRoyaltyApprovalWrite>;
670
+ };
671
+ /**
672
+ * @summary Approve a completed royalty generation
673
+ */
674
+ export declare const useLearningApproveRoyaltyCalculation: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
675
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningApproveRoyaltyCalculation>>, TError, LearningApproveRoyaltyCalculationMutationVariables, TContext>;
676
+ request?: SecondParameter<typeof request>;
677
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningApproveRoyaltyCalculation>>, TError, LearningApproveRoyaltyCalculationMutationVariables, TContext>;
678
+ export declare const getLearningListRoyaltyBudgetsUrl: (periodId: number) => string;
679
+ /**
680
+ * List every budget for the month, ordered by ID. Compare each budget generation with its period before reviewing results. inputSubjectCount is the distinct subject denominator of the frozen activity population, not minutes or lesson counts. Amounts are decimal major currency units, not integer cents. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused.
681
+ * @summary List channel budgets and calculation results
682
+ */
683
+ export declare const learningListRoyaltyBudgets: (periodId: number, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyBudgetListRead>;
684
+ export declare const getLearningListRoyaltyBudgetsQueryKey: (periodId: number) => readonly [`/learning/finance/periods/${number}/budgets`];
685
+ export declare const getLearningListRoyaltyBudgetsQueryOptions: <TData = Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, options?: {
686
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError, TData>>;
687
+ request?: SecondParameter<typeof request>;
688
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError, TData> & {
689
+ queryKey: DataTag<QueryKey, TData, TError>;
690
+ };
691
+ export type LearningListRoyaltyBudgetsQueryResult = NonNullable<Awaited<ReturnType<typeof learningListRoyaltyBudgets>>>;
692
+ export type LearningListRoyaltyBudgetsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
693
+ export declare function useLearningListRoyaltyBudgets<TData = Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, options: {
694
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError, Awaited<ReturnType<typeof learningListRoyaltyBudgets>>>, 'initialData'>;
695
+ request?: SecondParameter<typeof request>;
696
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
697
+ queryKey: DataTag<QueryKey, TData, TError>;
698
+ };
699
+ export declare function useLearningListRoyaltyBudgets<TData = Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, options?: {
700
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError, Awaited<ReturnType<typeof learningListRoyaltyBudgets>>>, 'initialData'>;
701
+ request?: SecondParameter<typeof request>;
702
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
703
+ queryKey: DataTag<QueryKey, TData, TError>;
704
+ };
705
+ export declare function useLearningListRoyaltyBudgets<TData = Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(periodId: number, options?: {
706
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRoyaltyBudgets>>, TError, TData>>;
707
+ request?: SecondParameter<typeof request>;
708
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
709
+ queryKey: DataTag<QueryKey, TData, TError>;
710
+ };
711
+ export declare const getLearningSetRoyaltyBudgetUrl: (periodId: number) => string;
712
+ /**
713
+ * Create or replace the channel budget for an editable period. amount is nonnegative with at most eight decimal places and 24 total digits, in the period’s currency. Editing calculated inputs advances the period generation and returns it to draft; historical, approved and running calculations cannot be edited. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
714
+ * @summary Set a channel’s monthly royalty pool
715
+ */
716
+ export declare const learningSetRoyaltyBudget: (periodId: number, learningRoyaltyBudgetWrite: LearningRoyaltyBudgetWrite, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyBudgetRead>;
717
+ export declare const getLearningSetRoyaltyBudgetMutationKey: () => readonly ['learningSetRoyaltyBudget'];
718
+ export declare const getLearningSetRoyaltyBudgetMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
719
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningSetRoyaltyBudget>>, TError, LearningSetRoyaltyBudgetMutationVariables, TContext>;
720
+ request?: SecondParameter<typeof request>;
721
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningSetRoyaltyBudget>>, TError, LearningSetRoyaltyBudgetMutationVariables, TContext>;
722
+ export type LearningSetRoyaltyBudgetMutationResult = NonNullable<Awaited<ReturnType<typeof learningSetRoyaltyBudget>>>;
723
+ export type LearningSetRoyaltyBudgetMutationBody = BodyType<LearningRoyaltyBudgetWrite>;
724
+ export type LearningSetRoyaltyBudgetMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
725
+ export type LearningSetRoyaltyBudgetMutationVariables = {
726
+ periodId: number;
727
+ data: BodyType<LearningRoyaltyBudgetWrite>;
728
+ };
729
+ /**
730
+ * @summary Set a channel’s monthly royalty pool
731
+ */
732
+ export declare const useLearningSetRoyaltyBudget: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
733
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningSetRoyaltyBudget>>, TError, LearningSetRoyaltyBudgetMutationVariables, TContext>;
734
+ request?: SecondParameter<typeof request>;
735
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningSetRoyaltyBudget>>, TError, LearningSetRoyaltyBudgetMutationVariables, TContext>;
736
+ export declare const getLearningRequestRoyaltyCalculationUrl: (periodId: number) => string;
737
+ /**
738
+ * Freeze applicable agreements, channels, adjustments and activity cutoff, then queue input and channel processing. The month must have closed in Europe/Paris and have at least one active channel budget. Poll the period and budgets. Repeating while calculating requeues failed work without replacing frozen facts; an already calculated period returns its current result. HTTP 202 is acceptance, not approval or payment. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
739
+ * @summary Queue a closed month’s royalty calculation
740
+ */
741
+ export declare const learningRequestRoyaltyCalculation: (periodId: number, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyPeriodRead>;
742
+ export declare const getLearningRequestRoyaltyCalculationMutationKey: () => readonly ['learningRequestRoyaltyCalculation'];
743
+ export declare const getLearningRequestRoyaltyCalculationMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
744
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningRequestRoyaltyCalculation>>, TError, LearningRequestRoyaltyCalculationMutationVariables, TContext>;
745
+ request?: SecondParameter<typeof request>;
746
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningRequestRoyaltyCalculation>>, TError, LearningRequestRoyaltyCalculationMutationVariables, TContext>;
747
+ export type LearningRequestRoyaltyCalculationMutationResult = NonNullable<Awaited<ReturnType<typeof learningRequestRoyaltyCalculation>>>;
748
+ export type LearningRequestRoyaltyCalculationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
749
+ export type LearningRequestRoyaltyCalculationMutationVariables = {
750
+ periodId: number;
751
+ };
752
+ /**
753
+ * @summary Queue a closed month’s royalty calculation
754
+ */
755
+ export declare const useLearningRequestRoyaltyCalculation: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
756
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningRequestRoyaltyCalculation>>, TError, LearningRequestRoyaltyCalculationMutationVariables, TContext>;
757
+ request?: SecondParameter<typeof request>;
758
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningRequestRoyaltyCalculation>>, TError, LearningRequestRoyaltyCalculationMutationVariables, TContext>;
759
+ export declare const getLearningResetRoyaltyCalculationUrl: (periodId: number) => string;
760
+ /**
761
+ * Require the generation just reviewed, advance it, clear frozen inputs and worker claims, and reset channel budgets to draft. This permits corrected inputs after a failed or unwanted calculation. Historical and approved months are immutable. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
762
+ * @summary Invalidate an unapproved calculation
763
+ */
764
+ export declare const learningResetRoyaltyCalculation: (periodId: number, learningRoyaltyApprovalWrite: LearningRoyaltyApprovalWrite, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyPeriodRead>;
765
+ export declare const getLearningResetRoyaltyCalculationMutationKey: () => readonly ['learningResetRoyaltyCalculation'];
766
+ export declare const getLearningResetRoyaltyCalculationMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
767
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningResetRoyaltyCalculation>>, TError, LearningResetRoyaltyCalculationMutationVariables, TContext>;
768
+ request?: SecondParameter<typeof request>;
769
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningResetRoyaltyCalculation>>, TError, LearningResetRoyaltyCalculationMutationVariables, TContext>;
770
+ export type LearningResetRoyaltyCalculationMutationResult = NonNullable<Awaited<ReturnType<typeof learningResetRoyaltyCalculation>>>;
771
+ export type LearningResetRoyaltyCalculationMutationBody = BodyType<LearningRoyaltyApprovalWrite>;
772
+ export type LearningResetRoyaltyCalculationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
773
+ export type LearningResetRoyaltyCalculationMutationVariables = {
774
+ periodId: number;
775
+ data: BodyType<LearningRoyaltyApprovalWrite>;
776
+ };
777
+ /**
778
+ * @summary Invalidate an unapproved calculation
779
+ */
780
+ export declare const useLearningResetRoyaltyCalculation: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
781
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningResetRoyaltyCalculation>>, TError, LearningResetRoyaltyCalculationMutationVariables, TContext>;
782
+ request?: SecondParameter<typeof request>;
783
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningResetRoyaltyCalculation>>, TError, LearningResetRoyaltyCalculationMutationVariables, TContext>;
784
+ export declare const getLearningReadRoyaltySettlementUrl: (settlementId: number) => string;
785
+ /**
786
+ * Read the two-month components, computed payable amount and recorded payment status. A historical settlement without a resolved payee requires catalogue finance authority; otherwise the linked rightsholder may read it. Amounts are decimal major currency units, not integer cents. Available to the linked independent rightsholder or catalogue finance/global commercial authority; support impersonation is refused.
787
+ * @summary Read a rightsholder settlement
788
+ */
789
+ export declare const learningReadRoyaltySettlement: (settlementId: number, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltySettlementRead>;
790
+ export declare const getLearningReadRoyaltySettlementQueryKey: (settlementId: number) => readonly [`/learning/finance/settlements/${number}`];
791
+ export declare const getLearningReadRoyaltySettlementQueryOptions: <TData = Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(settlementId: number, options?: {
792
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError, TData>>;
793
+ request?: SecondParameter<typeof request>;
794
+ }) => UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError, TData> & {
795
+ queryKey: DataTag<QueryKey, TData, TError>;
796
+ };
797
+ export type LearningReadRoyaltySettlementQueryResult = NonNullable<Awaited<ReturnType<typeof learningReadRoyaltySettlement>>>;
798
+ export type LearningReadRoyaltySettlementQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
799
+ export declare function useLearningReadRoyaltySettlement<TData = Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(settlementId: number, options: {
800
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError, Awaited<ReturnType<typeof learningReadRoyaltySettlement>>>, 'initialData'>;
801
+ request?: SecondParameter<typeof request>;
802
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
803
+ queryKey: DataTag<QueryKey, TData, TError>;
804
+ };
805
+ export declare function useLearningReadRoyaltySettlement<TData = Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(settlementId: number, options?: {
806
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError, Awaited<ReturnType<typeof learningReadRoyaltySettlement>>>, 'initialData'>;
807
+ request?: SecondParameter<typeof request>;
808
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
809
+ queryKey: DataTag<QueryKey, TData, TError>;
810
+ };
811
+ export declare function useLearningReadRoyaltySettlement<TData = Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(settlementId: number, options?: {
812
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadRoyaltySettlement>>, TError, TData>>;
813
+ request?: SecondParameter<typeof request>;
814
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
815
+ queryKey: DataTag<QueryKey, TData, TError>;
816
+ };
817
+ export declare const getLearningIssueRoyaltyInvoiceUrl: (settlementId: number) => string;
818
+ /**
819
+ * Snapshot the rightsholder’s complete billing address, recipient, settlement net amount and percentage tax rate. Generate a native number per payee/year. Matching recipient/tax retries return the existing invoice; issued facts cannot be replaced. The example EUR 590 net at 20% produces EUR 118 tax and EUR 708 total in the PDF. Issuance does not mark the settlement paid. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
820
+ * @summary Issue an immutable royalty invoice
821
+ */
822
+ export declare const learningIssueRoyaltyInvoice: (settlementId: number, learningRoyaltyInvoiceWrite: LearningRoyaltyInvoiceWrite, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltyInvoiceRead>;
823
+ export declare const getLearningIssueRoyaltyInvoiceMutationKey: () => readonly ['learningIssueRoyaltyInvoice'];
824
+ export declare const getLearningIssueRoyaltyInvoiceMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
825
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningIssueRoyaltyInvoice>>, TError, LearningIssueRoyaltyInvoiceMutationVariables, TContext>;
826
+ request?: SecondParameter<typeof request>;
827
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningIssueRoyaltyInvoice>>, TError, LearningIssueRoyaltyInvoiceMutationVariables, TContext>;
828
+ export type LearningIssueRoyaltyInvoiceMutationResult = NonNullable<Awaited<ReturnType<typeof learningIssueRoyaltyInvoice>>>;
829
+ export type LearningIssueRoyaltyInvoiceMutationBody = BodyType<LearningRoyaltyInvoiceWrite>;
830
+ export type LearningIssueRoyaltyInvoiceMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
831
+ export type LearningIssueRoyaltyInvoiceMutationVariables = {
832
+ settlementId: number;
833
+ data: BodyType<LearningRoyaltyInvoiceWrite>;
834
+ };
835
+ /**
836
+ * @summary Issue an immutable royalty invoice
837
+ */
838
+ export declare const useLearningIssueRoyaltyInvoice: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
839
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningIssueRoyaltyInvoice>>, TError, LearningIssueRoyaltyInvoiceMutationVariables, TContext>;
840
+ request?: SecondParameter<typeof request>;
841
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningIssueRoyaltyInvoice>>, TError, LearningIssueRoyaltyInvoiceMutationVariables, TContext>;
842
+ export declare const getLearningRecordRoyaltyPaymentUrl: (settlementId: number) => string;
843
+ /**
844
+ * Mark the settlement paid using external accounting evidence and record the current time as paidAt. This operation never initiates a bank transfer or sends money. A matching paymentReference is idempotent; different existing evidence conflicts. Historical unresolved payee/payment facts must first be reconciled. Available to an independent profile with this catalogue’s finance grant or global commercial authority; support impersonation is refused. Mutations require high authentication assurance.
845
+ * @summary Record an observed royalty payment
846
+ */
847
+ export declare const learningRecordRoyaltyPayment: (settlementId: number, learningRoyaltyPaidWrite: LearningRoyaltyPaidWrite, options?: Parameters<typeof request>[1]) => Promise<LearningRoyaltySettlementRead>;
848
+ export declare const getLearningRecordRoyaltyPaymentMutationKey: () => readonly ['learningRecordRoyaltyPayment'];
849
+ export declare const getLearningRecordRoyaltyPaymentMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
850
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningRecordRoyaltyPayment>>, TError, LearningRecordRoyaltyPaymentMutationVariables, TContext>;
851
+ request?: SecondParameter<typeof request>;
852
+ }) => UseMutationOptions<Awaited<ReturnType<typeof learningRecordRoyaltyPayment>>, TError, LearningRecordRoyaltyPaymentMutationVariables, TContext>;
853
+ export type LearningRecordRoyaltyPaymentMutationResult = NonNullable<Awaited<ReturnType<typeof learningRecordRoyaltyPayment>>>;
854
+ export type LearningRecordRoyaltyPaymentMutationBody = BodyType<LearningRoyaltyPaidWrite>;
855
+ export type LearningRecordRoyaltyPaymentMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
856
+ export type LearningRecordRoyaltyPaymentMutationVariables = {
857
+ settlementId: number;
858
+ data: BodyType<LearningRoyaltyPaidWrite>;
859
+ };
860
+ /**
861
+ * @summary Record an observed royalty payment
862
+ */
863
+ export declare const useLearningRecordRoyaltyPayment: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
864
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof learningRecordRoyaltyPayment>>, TError, LearningRecordRoyaltyPaymentMutationVariables, TContext>;
865
+ request?: SecondParameter<typeof request>;
866
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof learningRecordRoyaltyPayment>>, TError, LearningRecordRoyaltyPaymentMutationVariables, TContext>;
867
+ //#endregion
868
+ //# sourceMappingURL=biblio-learning-finance.d.ts.map