@learnorama/mozaik-sdk 0.21.0-staging.66.1 → 0.22.10-staging.78.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 (223) 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.js.map +1 -1
  4. package/dist/api/admin-consumption.js.map +1 -1
  5. package/dist/api/admin-contracts.d.ts +1 -1
  6. package/dist/api/admin-contracts.js.map +1 -1
  7. package/dist/api/admin-customer.d.ts +1 -1
  8. package/dist/api/admin-customer.js.map +1 -1
  9. package/dist/api/admin-desk.d.ts +1 -1
  10. package/dist/api/admin-desk.js +6 -0
  11. package/dist/api/admin-desk.js.map +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.js.map +1 -1
  16. package/dist/api/admin-reviews.js.map +1 -1
  17. package/dist/api/admin-roles.js.map +1 -1
  18. package/dist/api/admin-support.d.ts +1 -1
  19. package/dist/api/admin-support.js.map +1 -1
  20. package/dist/api/admin-tenants.d.ts +1 -1
  21. package/dist/api/admin-tenants.js.map +1 -1
  22. package/dist/api/admin-tutoring.d.ts +1 -1
  23. package/dist/api/admin-tutoring.js.map +1 -1
  24. package/dist/api/admin-vod.js.map +1 -1
  25. package/dist/api/auth-device.js.map +1 -1
  26. package/dist/api/auth.d.ts +1 -1
  27. package/dist/api/auth.js.map +1 -1
  28. package/dist/api/biblio-billing-webhooks.d.ts +1 -1
  29. package/dist/api/biblio-billing-webhooks.js.map +1 -1
  30. package/dist/api/biblio-billing.d.ts +1 -1
  31. package/dist/api/biblio-billing.js.map +1 -1
  32. package/dist/api/biblio-catalogue.d.ts +1 -1
  33. package/dist/api/biblio-catalogue.js.map +1 -1
  34. package/dist/api/biblio-home.js.map +1 -1
  35. package/dist/api/biblio-learning-author-profiles.d.ts +1 -1
  36. package/dist/api/biblio-learning-author-profiles.js.map +1 -1
  37. package/dist/api/biblio-learning-authoring.d.ts +1 -1
  38. package/dist/api/biblio-learning-authoring.js.map +1 -1
  39. package/dist/api/biblio-learning-editorial.js.map +1 -1
  40. package/dist/api/biblio-learning-feedback.js.map +1 -1
  41. package/dist/api/biblio-learning-finance.js.map +1 -1
  42. package/dist/api/biblio-learning-integrations.d.ts +1 -1
  43. package/dist/api/biblio-learning-integrations.js.map +1 -1
  44. package/dist/api/biblio-learning-membership.js.map +1 -1
  45. package/dist/api/biblio-learning.d.ts +1 -1
  46. package/dist/api/biblio-learning.js.map +1 -1
  47. package/dist/api/biblio-library.d.ts +1 -1
  48. package/dist/api/biblio-library.js.map +1 -1
  49. package/dist/api/biblio-nextory.js.map +1 -1
  50. package/dist/api/biblio-press.js.map +1 -1
  51. package/dist/api/biblio-search.js.map +1 -1
  52. package/dist/api/biblio-telemetry.js.map +1 -1
  53. package/dist/api/biblio-youscribe.js.map +1 -1
  54. package/dist/api/consumption.js.map +1 -1
  55. package/dist/api/cvs-app.js.map +1 -1
  56. package/dist/api/cvs-documents.d.ts +1 -1
  57. package/dist/api/cvs-documents.js.map +1 -1
  58. package/dist/api/cvs-favorites.js.map +1 -1
  59. package/dist/api/cvs-ils.js.map +1 -1
  60. package/dist/api/cvs-loans.d.ts +1 -1
  61. package/dist/api/cvs-loans.js.map +1 -1
  62. package/dist/api/cvs-payments.js.map +1 -1
  63. package/dist/api/cvs-streaming.js.map +1 -1
  64. package/dist/api/partner-catalogue.d.ts +4 -1
  65. package/dist/api/partner-catalogue.js +3 -0
  66. package/dist/api/partner-catalogue.js.map +1 -1
  67. package/dist/api/partner-reader-nextory.d.ts +1 -1
  68. package/dist/api/partner-reader-nextory.js.map +1 -1
  69. package/dist/api/partner-reader-youscribe.js.map +1 -1
  70. package/dist/api/partner-reading.d.ts +1 -1
  71. package/dist/api/partner-reading.js.map +1 -1
  72. package/dist/api/profiles.js.map +1 -1
  73. package/dist/api/search.d.ts +1 -1
  74. package/dist/api/search.js.map +1 -1
  75. package/dist/api/tutoring-catalogue.js.map +1 -1
  76. package/dist/api/tutoring-chat.d.ts +1 -1
  77. package/dist/api/tutoring-chat.js.map +1 -1
  78. package/dist/api/tutoring-dispatch.js.map +1 -1
  79. package/dist/api/tutoring-practitioner.js.map +1 -1
  80. package/dist/api/tutoring-requests.d.ts +1 -1
  81. package/dist/api/tutoring-requests.js.map +1 -1
  82. package/dist/chunks/client2.d.ts +1 -1
  83. package/dist/chunks/index.d.ts +714 -684
  84. package/dist/index.d.ts +3 -3
  85. package/dist/index.js +3 -3
  86. package/dist/index.js.map +1 -1
  87. package/dist/models.d.ts +2 -2
  88. package/dist/models.js +12 -2
  89. package/dist/models.js.map +1 -1
  90. package/dist/react/account.d.ts +1 -1
  91. package/dist/react/account.js +1 -1
  92. package/dist/react/account.js.map +1 -1
  93. package/dist/react/admin-catalogue.js +1 -1
  94. package/dist/react/admin-catalogue.js.map +1 -1
  95. package/dist/react/admin-consumption.js +1 -1
  96. package/dist/react/admin-consumption.js.map +1 -1
  97. package/dist/react/admin-contracts.d.ts +1 -1
  98. package/dist/react/admin-contracts.js +1 -1
  99. package/dist/react/admin-contracts.js.map +1 -1
  100. package/dist/react/admin-customer.d.ts +1 -1
  101. package/dist/react/admin-customer.js +1 -1
  102. package/dist/react/admin-customer.js.map +1 -1
  103. package/dist/react/admin-desk.d.ts +1 -1
  104. package/dist/react/admin-desk.js +7 -1
  105. package/dist/react/admin-desk.js.map +1 -1
  106. package/dist/react/admin-licenses.js +1 -1
  107. package/dist/react/admin-licenses.js.map +1 -1
  108. package/dist/react/admin-partner-selections.d.ts +1 -1
  109. package/dist/react/admin-partner-selections.js +1 -1
  110. package/dist/react/admin-partner-selections.js.map +1 -1
  111. package/dist/react/admin-patrons.js +1 -1
  112. package/dist/react/admin-patrons.js.map +1 -1
  113. package/dist/react/admin-reviews.js +1 -1
  114. package/dist/react/admin-reviews.js.map +1 -1
  115. package/dist/react/admin-roles.js +1 -1
  116. package/dist/react/admin-roles.js.map +1 -1
  117. package/dist/react/admin-support.d.ts +1 -1
  118. package/dist/react/admin-support.js +1 -1
  119. package/dist/react/admin-support.js.map +1 -1
  120. package/dist/react/admin-tenants.d.ts +1 -1
  121. package/dist/react/admin-tenants.js +1 -1
  122. package/dist/react/admin-tenants.js.map +1 -1
  123. package/dist/react/admin-tutoring.d.ts +1 -1
  124. package/dist/react/admin-tutoring.js +1 -1
  125. package/dist/react/admin-tutoring.js.map +1 -1
  126. package/dist/react/admin-vod.js +1 -1
  127. package/dist/react/admin-vod.js.map +1 -1
  128. package/dist/react/auth-device.js +1 -1
  129. package/dist/react/auth-device.js.map +1 -1
  130. package/dist/react/auth.d.ts +1 -1
  131. package/dist/react/auth.js +1 -1
  132. package/dist/react/auth.js.map +1 -1
  133. package/dist/react/biblio-billing-webhooks.d.ts +1 -1
  134. package/dist/react/biblio-billing-webhooks.js +1 -1
  135. package/dist/react/biblio-billing-webhooks.js.map +1 -1
  136. package/dist/react/biblio-billing.d.ts +1 -1
  137. package/dist/react/biblio-billing.js +1 -1
  138. package/dist/react/biblio-billing.js.map +1 -1
  139. package/dist/react/biblio-catalogue.d.ts +1 -1
  140. package/dist/react/biblio-catalogue.js +1 -1
  141. package/dist/react/biblio-catalogue.js.map +1 -1
  142. package/dist/react/biblio-home.js +1 -1
  143. package/dist/react/biblio-home.js.map +1 -1
  144. package/dist/react/biblio-learning-author-profiles.d.ts +1 -1
  145. package/dist/react/biblio-learning-author-profiles.js +1 -1
  146. package/dist/react/biblio-learning-author-profiles.js.map +1 -1
  147. package/dist/react/biblio-learning-authoring.d.ts +1 -1
  148. package/dist/react/biblio-learning-authoring.js +1 -1
  149. package/dist/react/biblio-learning-authoring.js.map +1 -1
  150. package/dist/react/biblio-learning-editorial.js +1 -1
  151. package/dist/react/biblio-learning-editorial.js.map +1 -1
  152. package/dist/react/biblio-learning-feedback.js +1 -1
  153. package/dist/react/biblio-learning-feedback.js.map +1 -1
  154. package/dist/react/biblio-learning-finance.js +1 -1
  155. package/dist/react/biblio-learning-finance.js.map +1 -1
  156. package/dist/react/biblio-learning-integrations.d.ts +1 -1
  157. package/dist/react/biblio-learning-integrations.js +1 -1
  158. package/dist/react/biblio-learning-integrations.js.map +1 -1
  159. package/dist/react/biblio-learning-membership.js +1 -1
  160. package/dist/react/biblio-learning-membership.js.map +1 -1
  161. package/dist/react/biblio-learning.d.ts +1 -1
  162. package/dist/react/biblio-learning.js +1 -1
  163. package/dist/react/biblio-learning.js.map +1 -1
  164. package/dist/react/biblio-library.d.ts +1 -1
  165. package/dist/react/biblio-library.js +1 -1
  166. package/dist/react/biblio-library.js.map +1 -1
  167. package/dist/react/biblio-nextory.js +1 -1
  168. package/dist/react/biblio-nextory.js.map +1 -1
  169. package/dist/react/biblio-press.js +1 -1
  170. package/dist/react/biblio-press.js.map +1 -1
  171. package/dist/react/biblio-search.js +1 -1
  172. package/dist/react/biblio-search.js.map +1 -1
  173. package/dist/react/biblio-telemetry.js +1 -1
  174. package/dist/react/biblio-telemetry.js.map +1 -1
  175. package/dist/react/biblio-youscribe.js +1 -1
  176. package/dist/react/biblio-youscribe.js.map +1 -1
  177. package/dist/react/consumption.js +1 -1
  178. package/dist/react/consumption.js.map +1 -1
  179. package/dist/react/cvs-app.js +1 -1
  180. package/dist/react/cvs-app.js.map +1 -1
  181. package/dist/react/cvs-documents.d.ts +1 -1
  182. package/dist/react/cvs-documents.js +1 -1
  183. package/dist/react/cvs-documents.js.map +1 -1
  184. package/dist/react/cvs-favorites.js +1 -1
  185. package/dist/react/cvs-favorites.js.map +1 -1
  186. package/dist/react/cvs-ils.js +1 -1
  187. package/dist/react/cvs-ils.js.map +1 -1
  188. package/dist/react/cvs-loans.d.ts +1 -1
  189. package/dist/react/cvs-loans.js +1 -1
  190. package/dist/react/cvs-loans.js.map +1 -1
  191. package/dist/react/cvs-payments.js +1 -1
  192. package/dist/react/cvs-payments.js.map +1 -1
  193. package/dist/react/cvs-streaming.js +1 -1
  194. package/dist/react/cvs-streaming.js.map +1 -1
  195. package/dist/react/partner-catalogue.d.ts +4 -1
  196. package/dist/react/partner-catalogue.js +4 -1
  197. package/dist/react/partner-catalogue.js.map +1 -1
  198. package/dist/react/partner-reader-nextory.d.ts +1 -1
  199. package/dist/react/partner-reader-nextory.js +1 -1
  200. package/dist/react/partner-reader-nextory.js.map +1 -1
  201. package/dist/react/partner-reader-youscribe.js +1 -1
  202. package/dist/react/partner-reader-youscribe.js.map +1 -1
  203. package/dist/react/partner-reading.d.ts +1 -1
  204. package/dist/react/partner-reading.js +1 -1
  205. package/dist/react/partner-reading.js.map +1 -1
  206. package/dist/react/profiles.js +1 -1
  207. package/dist/react/profiles.js.map +1 -1
  208. package/dist/react/search.d.ts +1 -1
  209. package/dist/react/search.js +1 -1
  210. package/dist/react/search.js.map +1 -1
  211. package/dist/react/tutoring-catalogue.js +1 -1
  212. package/dist/react/tutoring-catalogue.js.map +1 -1
  213. package/dist/react/tutoring-chat.d.ts +1 -1
  214. package/dist/react/tutoring-chat.js +1 -1
  215. package/dist/react/tutoring-chat.js.map +1 -1
  216. package/dist/react/tutoring-dispatch.js +1 -1
  217. package/dist/react/tutoring-dispatch.js.map +1 -1
  218. package/dist/react/tutoring-practitioner.js +1 -1
  219. package/dist/react/tutoring-practitioner.js.map +1 -1
  220. package/dist/react/tutoring-requests.d.ts +1 -1
  221. package/dist/react/tutoring-requests.js +1 -1
  222. package/dist/react/tutoring-requests.js.map +1 -1
  223. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"biblio-learning-editorial.js","names":[],"sources":["../../src/api/biblio-learning-editorial/biblio-learning-editorial.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.21.0\n */\nimport type {\n LearningAssetRead,\n LearningCatalogueMessagesParams,\n LearningCatalogueRevisionFragmentsParams,\n LearningCourseMessagesParams,\n LearningCourseRevisionFragmentsParams,\n LearningEditorialFragmentDetailRead,\n LearningEditorialFragmentPage,\n LearningEditorialMessagePage,\n LearningEditorialMessageRead,\n LearningEditorialMessageWrite,\n LearningSubmissionHistoryPage,\n LearningSubmissionHistoryParams\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getLearningCatalogueMessagesUrl = (catalogueId: number,\n params?: LearningCatalogueMessagesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/catalogues/${catalogueId}/messages?${stringifiedParams}` : `/learning/author/catalogues/${catalogueId}/messages`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires catalogue review authority. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. Ordered by message ID, including subjects not linked to a native course. sourceObjectClass and sourceObjectId are exact source-subject selectors and must be supplied together; they never grant access to another catalogue.\n * @summary List a catalogue's private editorial archive\n */\nexport const learningCatalogueMessages = async (catalogueId: number,\n params?: LearningCatalogueMessagesParams, options?: Parameters<typeof request>[1]): Promise<LearningEditorialMessagePage> => {\n\n return request<LearningEditorialMessagePage>(getLearningCatalogueMessagesUrl(catalogueId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCatalogueRevisionFragmentsUrl = (catalogueId: number,\n params?: LearningCatalogueRevisionFragmentsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/catalogues/${catalogueId}/revision-fragments?${stringifiedParams}` : `/learning/author/catalogues/${catalogueId}/revision-fragments`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires catalogue review authority. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. A fragment is partial source evidence, not a complete native revision or a replayable patch. Missing source dates and publication facts remain unknown; neither version labels nor source status prove publication. Ordered by fragment ID. Optional sourceObjectClass/sourceObjectId must be supplied together and match exactly; this archive can include subjects without a native course mapping.\n * @summary List a catalogue's imported revision fragments\n */\nexport const learningCatalogueRevisionFragments = async (catalogueId: number,\n params?: LearningCatalogueRevisionFragmentsParams, options?: Parameters<typeof request>[1]): Promise<LearningEditorialFragmentPage> => {\n\n return request<LearningEditorialFragmentPage>(getLearningCatalogueRevisionFragmentsUrl(catalogueId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCourseMessagesUrl = (courseId: number,\n params?: LearningCourseMessagesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/courses/${courseId}/messages?${stringifiedParams}` : `/learning/author/courses/${courseId}/messages`\n}\n\n/**\n * Requires course read-authoring authority; support impersonation is rejected. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. Ordered by message ID. Omitting revisionId includes all course messages; specifying it returns only that revision's messages and requires the revision to belong to courseId. Imported discussion can preserve unknown userId and createdAt.\n * @summary List private course editorial messages\n */\nexport const learningCourseMessages = async (courseId: number,\n params?: LearningCourseMessagesParams, options?: Parameters<typeof request>[1]): Promise<LearningEditorialMessagePage> => {\n\n return request<LearningEditorialMessagePage>(getLearningCourseMessagesUrl(courseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningAddEditorialMessageUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/messages`\n}\n\n/**\n * Requires course edit authority, catalogue review authority or global authority; support impersonation is rejected. Appends an attributed message without changing the course definition. Optional revisionId must identify a revision of this course. Omit it or use null for a course-level discussion.\n * @summary Add a private course editorial message\n */\nexport const learningAddEditorialMessage = async (courseId: number,\n learningEditorialMessageWrite: LearningEditorialMessageWrite, options?: Parameters<typeof request>[1]): Promise<LearningEditorialMessageRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningEditorialMessageRead>(getLearningAddEditorialMessageUrl(courseId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningEditorialMessageWrite)\n }\n);}\n\n\nexport const getLearningCourseRevisionFragmentsUrl = (courseId: number,\n params?: LearningCourseRevisionFragmentsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/courses/${courseId}/revision-fragments?${stringifiedParams}` : `/learning/author/courses/${courseId}/revision-fragments`\n}\n\n/**\n * Requires course read-authoring authority and rejects support impersonation. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. A fragment is partial source evidence, not a complete native revision or a replayable patch. Missing source dates and publication facts remain unknown; neither version labels nor source status prove publication. Summaries are ordered by fragment ID; use the fragment detail route for retained source bytes.\n * @summary List a course's imported revision fragments\n */\nexport const learningCourseRevisionFragments = async (courseId: number,\n params?: LearningCourseRevisionFragmentsParams, options?: Parameters<typeof request>[1]): Promise<LearningEditorialFragmentPage> => {\n\n return request<LearningEditorialFragmentPage>(getLearningCourseRevisionFragmentsUrl(courseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningRevisionFragmentUrl = (fragmentId: number,) => {\n\n\n\n\n return `/learning/author/revision-fragments/${fragmentId}`\n}\n\n/**\n * Requires read-authoring authority on a linked course, or review authority on its catalogue when no course is linked. Unscoped fragments are unavailable. A fragment is partial source evidence, not a complete native revision or a replayable patch. Missing source dates and publication facts remain unknown; neither version labels nor source status prove publication. sourcePayload is opaque base64 source evidence, not a complete native course definition. sourcePayloadSha256 records its evidence digest; payload retention may be absent.\n * @summary Read a private imported revision fragment\n */\nexport const learningRevisionFragment = async (fragmentId: number, options?: Parameters<typeof request>[1]): Promise<LearningEditorialFragmentDetailRead> => {\n\n return request<LearningEditorialFragmentDetailRead>(getLearningRevisionFragmentUrl(fragmentId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSubmissionHistoryUrl = (params?: LearningSubmissionHistoryParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/submissions/history?${stringifiedParams}` : `/learning/submissions/history`\n}\n\n/**\n * Returns only the effective profile's imported submission evidence; support impersonation is rejected. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. Ordered by submission ID. A record attests that a submission existed, without inventing an attempt, date, grade or correction. assetId can be null when no retained file is linked.\n * @summary List my historical exercise submissions\n */\nexport const learningSubmissionHistory = async (params?: LearningSubmissionHistoryParams, options?: Parameters<typeof request>[1]): Promise<LearningSubmissionHistoryPage> => {\n\n return request<LearningSubmissionHistoryPage>(getLearningSubmissionHistoryUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSubmissionHistoryResourceUrl = (submissionId: number,) => {\n\n\n\n\n return `/learning/submissions/history/${submissionId}/resource`\n}\n\n/**\n * Requires ownership of both the historical submission and its active, unshared submission asset. Support impersonation is rejected. Returns a delivery descriptor rather than file bytes; absence of a retained asset returns 404 and does not erase the submission evidence.\n * @summary Get my historical submission's private resource\n */\nexport const learningSubmissionHistoryResource = async (submissionId: number, options?: Parameters<typeof request>[1]): Promise<LearningAssetRead> => {\n\n return request<LearningAssetRead>(getLearningSubmissionHistoryResourceUrl(submissionId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAwBA,MAAa,mCAAmC,aAC5C,WAA8C;CAChD,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,+BAA+B,YAAY,YAAY,sBAAsB,+BAA+B,YAAY;AAChK;;;;;AAMA,MAAa,4BAA4B,OAAO,aAC5C,QAA0C,YAAmF;CAE/H,OAAO,QAAsC,gCAAgC,aAAY,MAAM,GAC/F;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,4CAA4C,aACrD,WAAuD;CACzD,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,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kBAAkB,SAAS,IAAI,iCAAiC,sBAAsB;AAC/F;;;;;AAMA,MAAa,4BAA4B,OAAO,QAA0C,YAAoF;CAE5K,OAAO,QAAuC,gCAAgC,MAAM,GACpF;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2CAA2C,iBAA0B;CAKhF,OAAO,iCAAiC,aAAa;AACvD;;;;;AAMA,MAAa,oCAAoC,OAAO,cAAsB,YAAwE;CAEpJ,OAAO,QAA2B,wCAAwC,YAAY,GACtF;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"biblio-learning-editorial.js","names":[],"sources":["../../src/api/biblio-learning-editorial/biblio-learning-editorial.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.22.10\n */\nimport type {\n LearningAssetRead,\n LearningCatalogueMessagesParams,\n LearningCatalogueRevisionFragmentsParams,\n LearningCourseMessagesParams,\n LearningCourseRevisionFragmentsParams,\n LearningEditorialFragmentDetailRead,\n LearningEditorialFragmentPage,\n LearningEditorialMessagePage,\n LearningEditorialMessageRead,\n LearningEditorialMessageWrite,\n LearningSubmissionHistoryPage,\n LearningSubmissionHistoryParams\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getLearningCatalogueMessagesUrl = (catalogueId: number,\n params?: LearningCatalogueMessagesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/catalogues/${catalogueId}/messages?${stringifiedParams}` : `/learning/author/catalogues/${catalogueId}/messages`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires catalogue review authority. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. Ordered by message ID, including subjects not linked to a native course. sourceObjectClass and sourceObjectId are exact source-subject selectors and must be supplied together; they never grant access to another catalogue.\n * @summary List a catalogue's private editorial archive\n */\nexport const learningCatalogueMessages = async (catalogueId: number,\n params?: LearningCatalogueMessagesParams, options?: Parameters<typeof request>[1]): Promise<LearningEditorialMessagePage> => {\n\n return request<LearningEditorialMessagePage>(getLearningCatalogueMessagesUrl(catalogueId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCatalogueRevisionFragmentsUrl = (catalogueId: number,\n params?: LearningCatalogueRevisionFragmentsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/catalogues/${catalogueId}/revision-fragments?${stringifiedParams}` : `/learning/author/catalogues/${catalogueId}/revision-fragments`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires catalogue review authority. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. A fragment is partial source evidence, not a complete native revision or a replayable patch. Missing source dates and publication facts remain unknown; neither version labels nor source status prove publication. Ordered by fragment ID. Optional sourceObjectClass/sourceObjectId must be supplied together and match exactly; this archive can include subjects without a native course mapping.\n * @summary List a catalogue's imported revision fragments\n */\nexport const learningCatalogueRevisionFragments = async (catalogueId: number,\n params?: LearningCatalogueRevisionFragmentsParams, options?: Parameters<typeof request>[1]): Promise<LearningEditorialFragmentPage> => {\n\n return request<LearningEditorialFragmentPage>(getLearningCatalogueRevisionFragmentsUrl(catalogueId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCourseMessagesUrl = (courseId: number,\n params?: LearningCourseMessagesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/courses/${courseId}/messages?${stringifiedParams}` : `/learning/author/courses/${courseId}/messages`\n}\n\n/**\n * Requires course read-authoring authority; support impersonation is rejected. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. Ordered by message ID. Omitting revisionId includes all course messages; specifying it returns only that revision's messages and requires the revision to belong to courseId. Imported discussion can preserve unknown userId and createdAt.\n * @summary List private course editorial messages\n */\nexport const learningCourseMessages = async (courseId: number,\n params?: LearningCourseMessagesParams, options?: Parameters<typeof request>[1]): Promise<LearningEditorialMessagePage> => {\n\n return request<LearningEditorialMessagePage>(getLearningCourseMessagesUrl(courseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningAddEditorialMessageUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/messages`\n}\n\n/**\n * Requires course edit authority, catalogue review authority or global authority; support impersonation is rejected. Appends an attributed message without changing the course definition. Optional revisionId must identify a revision of this course. Omit it or use null for a course-level discussion.\n * @summary Add a private course editorial message\n */\nexport const learningAddEditorialMessage = async (courseId: number,\n learningEditorialMessageWrite: LearningEditorialMessageWrite, options?: Parameters<typeof request>[1]): Promise<LearningEditorialMessageRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningEditorialMessageRead>(getLearningAddEditorialMessageUrl(courseId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningEditorialMessageWrite)\n }\n);}\n\n\nexport const getLearningCourseRevisionFragmentsUrl = (courseId: number,\n params?: LearningCourseRevisionFragmentsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/courses/${courseId}/revision-fragments?${stringifiedParams}` : `/learning/author/courses/${courseId}/revision-fragments`\n}\n\n/**\n * Requires course read-authoring authority and rejects support impersonation. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. A fragment is partial source evidence, not a complete native revision or a replayable patch. Missing source dates and publication facts remain unknown; neither version labels nor source status prove publication. Summaries are ordered by fragment ID; use the fragment detail route for retained source bytes.\n * @summary List a course's imported revision fragments\n */\nexport const learningCourseRevisionFragments = async (courseId: number,\n params?: LearningCourseRevisionFragmentsParams, options?: Parameters<typeof request>[1]): Promise<LearningEditorialFragmentPage> => {\n\n return request<LearningEditorialFragmentPage>(getLearningCourseRevisionFragmentsUrl(courseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningRevisionFragmentUrl = (fragmentId: number,) => {\n\n\n\n\n return `/learning/author/revision-fragments/${fragmentId}`\n}\n\n/**\n * Requires read-authoring authority on a linked course, or review authority on its catalogue when no course is linked. Unscoped fragments are unavailable. A fragment is partial source evidence, not a complete native revision or a replayable patch. Missing source dates and publication facts remain unknown; neither version labels nor source status prove publication. sourcePayload is opaque base64 source evidence, not a complete native course definition. sourcePayloadSha256 records its evidence digest; payload retention may be absent.\n * @summary Read a private imported revision fragment\n */\nexport const learningRevisionFragment = async (fragmentId: number, options?: Parameters<typeof request>[1]): Promise<LearningEditorialFragmentDetailRead> => {\n\n return request<LearningEditorialFragmentDetailRead>(getLearningRevisionFragmentUrl(fragmentId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSubmissionHistoryUrl = (params?: LearningSubmissionHistoryParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/submissions/history?${stringifiedParams}` : `/learning/submissions/history`\n}\n\n/**\n * Returns only the effective profile's imported submission evidence; support impersonation is rejected. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. Ordered by submission ID. A record attests that a submission existed, without inventing an attempt, date, grade or correction. assetId can be null when no retained file is linked.\n * @summary List my historical exercise submissions\n */\nexport const learningSubmissionHistory = async (params?: LearningSubmissionHistoryParams, options?: Parameters<typeof request>[1]): Promise<LearningSubmissionHistoryPage> => {\n\n return request<LearningSubmissionHistoryPage>(getLearningSubmissionHistoryUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSubmissionHistoryResourceUrl = (submissionId: number,) => {\n\n\n\n\n return `/learning/submissions/history/${submissionId}/resource`\n}\n\n/**\n * Requires ownership of both the historical submission and its active, unshared submission asset. Support impersonation is rejected. Returns a delivery descriptor rather than file bytes; absence of a retained asset returns 404 and does not erase the submission evidence.\n * @summary Get my historical submission's private resource\n */\nexport const learningSubmissionHistoryResource = async (submissionId: number, options?: Parameters<typeof request>[1]): Promise<LearningAssetRead> => {\n\n return request<LearningAssetRead>(getLearningSubmissionHistoryResourceUrl(submissionId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAwBA,MAAa,mCAAmC,aAC5C,WAA8C;CAChD,MAAM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,4BAA4B,SAAS;AAC9J;;;;;AAMA,MAAa,kCAAkC,OAAO,UAClD,QAAgD,YAAoF;CAEtI,OAAO,QAAuC,sCAAsC,UAAS,MAAM,GACnG;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,kCAAkC,eAAwB;CAKrE,OAAO,uCAAuC;AAChD;;;;;AAMA,MAAa,2BAA2B,OAAO,YAAoB,YAA0F;CAE3J,OAAO,QAA6C,+BAA+B,UAAU,GAC7F;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,mCAAmC,WAA8C;CAC5F,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,iCAAiC,sBAAsB;AAC/F;;;;;AAMA,MAAa,4BAA4B,OAAO,QAA0C,YAAoF;CAE5K,OAAO,QAAuC,gCAAgC,MAAM,GACpF;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2CAA2C,iBAA0B;CAKhF,OAAO,iCAAiC,aAAa;AACvD;;;;;AAMA,MAAa,oCAAoC,OAAO,cAAsB,YAAwE;CAEpJ,OAAO,QAA2B,wCAAwC,YAAY,GACtF;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"biblio-learning-feedback.js","names":[],"sources":["../../src/api/biblio-learning-feedback/biblio-learning-feedback.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.21.0\n */\nimport type {\n LearningAuthorStatisticsParams,\n LearningCatalogueCustomerStatisticsParams,\n LearningCourseStatsPage,\n LearningCourseStatsRead,\n LearningCustomerCourseStatisticsParams,\n LearningCustomerGrantWrite,\n LearningCustomerStatisticsParams,\n LearningCustomerStatsRead,\n LearningFeedbackPage,\n LearningFeedbackRead,\n LearningFeedbackWrite,\n LearningOwnFeedbackParams,\n LearningReportingScopePage,\n LearningReportingScopesParams,\n LearningSurveyRead,\n LearningTenantStatsRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getLearningSetCustomerReporterUrl = (catalogueId: number,\n tenantId: number,) => {\n\n\n\n\n return `/learning/author/catalogues/${catalogueId}/customers/${tenantId}/reporters`\n}\n\n/**\n * Enable or disable reporting for exactly this catalogue, customer and user. Requires catalogue review authority or global commercial authority; a finance-only catalogue grant cannot manage reporters. Enabling requires an active independent member of the customer; disabling can revoke a former member. This does not grant general tenant administration or course access. Success returns no body.\n * @summary Grant or revoke a catalogue/customer reporter\n */\nexport const learningSetCustomerReporter = async (catalogueId: number,\n tenantId: number,\n learningCustomerGrantWrite: LearningCustomerGrantWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningSetCustomerReporterUrl(catalogueId,tenantId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCustomerGrantWrite)\n }\n);}\n\n\nexport const getLearningAuthorStatisticsUrl = (courseId: number,\n params: LearningAuthorStatisticsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/courses/${courseId}/statistics?${stringifiedParams}` : `/learning/author/courses/${courseId}/statistics`\n}\n\n/**\n * Aggregate this course across all recorded tenant contexts. Requires an assigned course author, a reviewer for its active catalogue, or a global ADMIN/SUPPORT read operator. It does not expose individual learner records. Dependent profiles and support impersonation are refused. Activity uses inclusive startsOn and exclusive endsBefore accounting dates; feedback uses midnight Europe/Paris boundaries. Intervals must span 1–366 days. Active learners are distinct users with activity records, activeSeconds sums recorded seconds, and lessonActivityRecords counts stored activity rows, not completions or sessions. Feedback is counted independently by creation time; averageRating is null with no feedback and otherwise rounded to two decimals.\n * @summary Read aggregate statistics for an authored course\n */\nexport const learningAuthorStatistics = async (courseId: number,\n params: LearningAuthorStatisticsParams, options?: Parameters<typeof request>[1]): Promise<LearningCourseStatsRead> => {\n\n return request<LearningCourseStatsRead>(getLearningAuthorStatisticsUrl(courseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningOwnFeedbackUrl = (courseId: number,\n params?: LearningOwnFeedbackParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/courses/${courseId}/feedback?${stringifiedParams}` : `/learning/courses/${courseId}/feedback`\n}\n\n/**\n * Page only the effective profile’s feedback for the course, newest creation time then ID first. Includes native and historical records. An unmatched course ID returns an empty page, not another learner’s feedback.\n * @summary List this profile’s course feedback\n */\nexport const learningOwnFeedback = async (courseId: number,\n params?: LearningOwnFeedbackParams, options?: Parameters<typeof request>[1]): Promise<LearningFeedbackPage> => {\n\n return request<LearningFeedbackPage>(getLearningOwnFeedbackUrl(courseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSubmitFeedbackUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/courses/${courseId}/feedback`\n}\n\n/**\n * Create or replace the selected profile’s native feedback at its current enrollment progress. Requires a current enrollment with positive progress. A different progress value produces a separate record; imported feedback is not overwritten. Tenant attribution comes from the latest learning session. Support impersonation is refused.\n * @summary Save private feedback at current course progress\n */\nexport const learningSubmitFeedback = async (courseId: number,\n learningFeedbackWrite: LearningFeedbackWrite, options?: Parameters<typeof request>[1]): Promise<LearningFeedbackRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningFeedbackRead>(getLearningSubmitFeedbackUrl(courseId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningFeedbackWrite)\n }\n);}\n\n\nexport const getLearningCreateSurveyUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/courses/${courseId}/survey-link`\n}\n\n/**\n * Create a 30-day Typeform invitation bound to the current profile, course, current positive progress and latest learning tenant. The URL contains only an opaque mozaik_token, never patron IDs or email. The Typeform form must define that hidden field. Limited to 3 requests per 10 minutes, 10 per hour and 20 per day per profile; support impersonation is refused.\n * @summary Create a private course survey invitation\n */\nexport const learningCreateSurvey = async (courseId: number, options?: Parameters<typeof request>[1]): Promise<LearningSurveyRead> => {\n\n return request<LearningSurveyRead>(getLearningCreateSurveyUrl(courseId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getLearningCatalogueCustomerStatisticsUrl = (catalogueId: number,\n tenantId: number,\n params: LearningCatalogueCustomerStatisticsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/reports/catalogues/${catalogueId}/customers/${tenantId}?${stringifiedParams}` : `/learning/reports/catalogues/${catalogueId}/customers/${tenantId}`\n}\n\n/**\n * Aggregate only the requested customer and courses in the requested active catalogue. Allowed for global read operators, catalogue reviewers/finance holders, or an active customer reporter still affiliated with that customer. Unauthorized scopes are concealed as 404; support impersonation is refused. Activity uses inclusive startsOn and exclusive endsBefore accounting dates; feedback uses midnight Europe/Paris boundaries. Intervals must span 1–366 days. Active learners are distinct users with activity records, activeSeconds sums recorded seconds, and lessonActivityRecords counts stored activity rows, not completions or sessions. Feedback is counted independently by creation time; averageRating is null with no feedback and otherwise rounded to two decimals.\n * @summary Read a catalogue/customer learning summary\n */\nexport const learningCatalogueCustomerStatistics = async (catalogueId: number,\n tenantId: number,\n params: LearningCatalogueCustomerStatisticsParams, options?: Parameters<typeof request>[1]): Promise<LearningCustomerStatsRead> => {\n\n return request<LearningCustomerStatsRead>(getLearningCatalogueCustomerStatisticsUrl(catalogueId,tenantId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningReportingScopesUrl = (params?: LearningReportingScopesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/reports/scopes?${stringifiedParams}` : `/learning/reports/scopes`\n}\n\n/**\n * Page active catalogue/customer grants held by this effective profile where the catalogue remains active and the profile is still a primary-tenant or MEMBER-role affiliate. Ordered by catalogue then tenant ID. This discovery list contains customer mandates, not every scope available through global or catalogue authority. Support impersonation is refused.\n * @summary List the profile’s customer reporting mandates\n */\nexport const learningReportingScopes = async (params?: LearningReportingScopesParams, options?: Parameters<typeof request>[1]): Promise<LearningReportingScopePage> => {\n\n return request<LearningReportingScopePage>(getLearningReportingScopesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCustomerStatisticsUrl = (tenantId: number,\n params: LearningCustomerStatisticsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/reports/tenants/${tenantId}?${stringifiedParams}` : `/learning/reports/tenants/${tenantId}`\n}\n\n/**\n * Aggregate all recorded learning activity and feedback attributed to this tenant. Requires ADMIN or SUPPORT staff authority within the tenant staff scope; customer reporter grants alone do not authorize this endpoint. Support impersonation is refused. Activity uses inclusive startsOn and exclusive endsBefore accounting dates; feedback uses midnight Europe/Paris boundaries. Intervals must span 1–366 days. Active learners are distinct users with activity records, activeSeconds sums recorded seconds, and lessonActivityRecords counts stored activity rows, not completions or sessions. Feedback is counted independently by creation time; averageRating is null with no feedback and otherwise rounded to two decimals.\n * @summary Read staff learning totals for a customer\n */\nexport const learningCustomerStatistics = async (tenantId: number,\n params: LearningCustomerStatisticsParams, options?: Parameters<typeof request>[1]): Promise<LearningTenantStatsRead> => {\n\n return request<LearningTenantStatsRead>(getLearningCustomerStatisticsUrl(tenantId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCustomerCourseStatisticsUrl = (tenantId: number,\n params: LearningCustomerCourseStatisticsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/reports/tenants/${tenantId}/courses?${stringifiedParams}` : `/learning/reports/tenants/${tenantId}/courses`\n}\n\n/**\n * List only courses having activity records for this tenant in the interval, ordered by distinct active learners descending then course ID. Feedback is left joined for those courses; feedback-only courses do not appear. Requires scoped ADMIN/SUPPORT staff authority and refuses support impersonation. Distinct learner counts overlap between courses and must not be summed as a distinct tenant total. Activity uses inclusive startsOn and exclusive endsBefore accounting dates; feedback uses midnight Europe/Paris boundaries. Intervals must span 1–366 days. Active learners are distinct users with activity records, activeSeconds sums recorded seconds, and lessonActivityRecords counts stored activity rows, not completions or sessions. Feedback is counted independently by creation time; averageRating is null with no feedback and otherwise rounded to two decimals.\n * @summary List staff course statistics for a customer\n */\nexport const learningCustomerCourseStatistics = async (tenantId: number,\n params: LearningCustomerCourseStatisticsParams, options?: Parameters<typeof request>[1]): Promise<LearningCourseStatsPage> => {\n\n return request<LearningCourseStatsPage>(getLearningCustomerCourseStatisticsUrl(tenantId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AA4BA,MAAa,qCAAqC,aAC9C,aAAsB;CAKxB,OAAO,+BAA+B,YAAY,aAAa,SAAS;AAC1E;;;;;AAMA,MAAa,8BAA8B,OAAO,aAC9C,UACA,4BAAwD,YAA2D;CAEnH,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MA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AAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,6BAA6B,SAAS,WAAW,sBAAsB,6BAA6B,SAAS;AACrJ;;;;;AAMA,MAAa,mCAAmC,OAAO,UACnD,QAAgD,YAA8E;CAEhI,OAAO,QAAiC,uCAAuC,UAAS,MAAM,GAC9F;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"biblio-learning-feedback.js","names":[],"sources":["../../src/api/biblio-learning-feedback/biblio-learning-feedback.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.22.10\n */\nimport type {\n LearningAuthorStatisticsParams,\n LearningCatalogueCustomerStatisticsParams,\n LearningCourseStatsPage,\n LearningCourseStatsRead,\n LearningCustomerCourseStatisticsParams,\n LearningCustomerGrantWrite,\n LearningCustomerStatisticsParams,\n LearningCustomerStatsRead,\n LearningFeedbackPage,\n LearningFeedbackRead,\n LearningFeedbackWrite,\n LearningOwnFeedbackParams,\n LearningReportingScopePage,\n LearningReportingScopesParams,\n LearningSurveyRead,\n LearningTenantStatsRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getLearningSetCustomerReporterUrl = (catalogueId: number,\n tenantId: number,) => {\n\n\n\n\n return `/learning/author/catalogues/${catalogueId}/customers/${tenantId}/reporters`\n}\n\n/**\n * Enable or disable reporting for exactly this catalogue, customer and user. Requires catalogue review authority or global commercial authority; a finance-only catalogue grant cannot manage reporters. Enabling requires an active independent member of the customer; disabling can revoke a former member. This does not grant general tenant administration or course access. Success returns no body.\n * @summary Grant or revoke a catalogue/customer reporter\n */\nexport const learningSetCustomerReporter = async (catalogueId: number,\n tenantId: number,\n learningCustomerGrantWrite: LearningCustomerGrantWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningSetCustomerReporterUrl(catalogueId,tenantId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCustomerGrantWrite)\n }\n);}\n\n\nexport const getLearningAuthorStatisticsUrl = (courseId: number,\n params: LearningAuthorStatisticsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/courses/${courseId}/statistics?${stringifiedParams}` : `/learning/author/courses/${courseId}/statistics`\n}\n\n/**\n * Aggregate this course across all recorded tenant contexts. Requires an assigned course author, a reviewer for its active catalogue, or a global ADMIN/SUPPORT read operator. It does not expose individual learner records. Dependent profiles and support impersonation are refused. Activity uses inclusive startsOn and exclusive endsBefore accounting dates; feedback uses midnight Europe/Paris boundaries. Intervals must span 1–366 days. Active learners are distinct users with activity records, activeSeconds sums recorded seconds, and lessonActivityRecords counts stored activity rows, not completions or sessions. Feedback is counted independently by creation time; averageRating is null with no feedback and otherwise rounded to two decimals.\n * @summary Read aggregate statistics for an authored course\n */\nexport const learningAuthorStatistics = async (courseId: number,\n params: LearningAuthorStatisticsParams, options?: Parameters<typeof request>[1]): Promise<LearningCourseStatsRead> => {\n\n return request<LearningCourseStatsRead>(getLearningAuthorStatisticsUrl(courseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningOwnFeedbackUrl = (courseId: number,\n params?: LearningOwnFeedbackParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/courses/${courseId}/feedback?${stringifiedParams}` : `/learning/courses/${courseId}/feedback`\n}\n\n/**\n * Page only the effective profile’s feedback for the course, newest creation time then ID first. Includes native and historical records. An unmatched course ID returns an empty page, not another learner’s feedback.\n * @summary List this profile’s course feedback\n */\nexport const learningOwnFeedback = async (courseId: number,\n params?: LearningOwnFeedbackParams, options?: Parameters<typeof request>[1]): Promise<LearningFeedbackPage> => {\n\n return request<LearningFeedbackPage>(getLearningOwnFeedbackUrl(courseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSubmitFeedbackUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/courses/${courseId}/feedback`\n}\n\n/**\n * Create or replace the selected profile’s native feedback at its current enrollment progress. Requires a current enrollment with positive progress. A different progress value produces a separate record; imported feedback is not overwritten. Tenant attribution comes from the latest learning session. Support impersonation is refused.\n * @summary Save private feedback at current course progress\n */\nexport const learningSubmitFeedback = async (courseId: number,\n learningFeedbackWrite: LearningFeedbackWrite, options?: Parameters<typeof request>[1]): Promise<LearningFeedbackRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningFeedbackRead>(getLearningSubmitFeedbackUrl(courseId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningFeedbackWrite)\n }\n);}\n\n\nexport const getLearningCreateSurveyUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/courses/${courseId}/survey-link`\n}\n\n/**\n * Create a 30-day Typeform invitation bound to the current profile, course, current positive progress and latest learning tenant. The URL contains only an opaque mozaik_token, never patron IDs or email. The Typeform form must define that hidden field. Limited to 3 requests per 10 minutes, 10 per hour and 20 per day per profile; support impersonation is refused.\n * @summary Create a private course survey invitation\n */\nexport const learningCreateSurvey = async (courseId: number, options?: Parameters<typeof request>[1]): Promise<LearningSurveyRead> => {\n\n return request<LearningSurveyRead>(getLearningCreateSurveyUrl(courseId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getLearningCatalogueCustomerStatisticsUrl = (catalogueId: number,\n tenantId: number,\n params: LearningCatalogueCustomerStatisticsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/reports/catalogues/${catalogueId}/customers/${tenantId}?${stringifiedParams}` : `/learning/reports/catalogues/${catalogueId}/customers/${tenantId}`\n}\n\n/**\n * Aggregate only the requested customer and courses in the requested active catalogue. Allowed for global read operators, catalogue reviewers/finance holders, or an active customer reporter still affiliated with that customer. Unauthorized scopes are concealed as 404; support impersonation is refused. Activity uses inclusive startsOn and exclusive endsBefore accounting dates; feedback uses midnight Europe/Paris boundaries. Intervals must span 1–366 days. Active learners are distinct users with activity records, activeSeconds sums recorded seconds, and lessonActivityRecords counts stored activity rows, not completions or sessions. Feedback is counted independently by creation time; averageRating is null with no feedback and otherwise rounded to two decimals.\n * @summary Read a catalogue/customer learning summary\n */\nexport const learningCatalogueCustomerStatistics = async (catalogueId: number,\n tenantId: number,\n params: LearningCatalogueCustomerStatisticsParams, options?: Parameters<typeof request>[1]): Promise<LearningCustomerStatsRead> => {\n\n return request<LearningCustomerStatsRead>(getLearningCatalogueCustomerStatisticsUrl(catalogueId,tenantId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningReportingScopesUrl = (params?: LearningReportingScopesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/reports/scopes?${stringifiedParams}` : `/learning/reports/scopes`\n}\n\n/**\n * Page active catalogue/customer grants held by this effective profile where the catalogue remains active and the profile is still a primary-tenant or MEMBER-role affiliate. Ordered by catalogue then tenant ID. This discovery list contains customer mandates, not every scope available through global or catalogue authority. Support impersonation is refused.\n * @summary List the profile’s customer reporting mandates\n */\nexport const learningReportingScopes = async (params?: LearningReportingScopesParams, options?: Parameters<typeof request>[1]): Promise<LearningReportingScopePage> => {\n\n return request<LearningReportingScopePage>(getLearningReportingScopesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCustomerStatisticsUrl = (tenantId: number,\n params: LearningCustomerStatisticsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/reports/tenants/${tenantId}?${stringifiedParams}` : `/learning/reports/tenants/${tenantId}`\n}\n\n/**\n * Aggregate all recorded learning activity and feedback attributed to this tenant. Requires ADMIN or SUPPORT staff authority within the tenant staff scope; customer reporter grants alone do not authorize this endpoint. Support impersonation is refused. Activity uses inclusive startsOn and exclusive endsBefore accounting dates; feedback uses midnight Europe/Paris boundaries. Intervals must span 1–366 days. Active learners are distinct users with activity records, activeSeconds sums recorded seconds, and lessonActivityRecords counts stored activity rows, not completions or sessions. Feedback is counted independently by creation time; averageRating is null with no feedback and otherwise rounded to two decimals.\n * @summary Read staff learning totals for a customer\n */\nexport const learningCustomerStatistics = async (tenantId: number,\n params: LearningCustomerStatisticsParams, options?: Parameters<typeof request>[1]): Promise<LearningTenantStatsRead> => {\n\n return request<LearningTenantStatsRead>(getLearningCustomerStatisticsUrl(tenantId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCustomerCourseStatisticsUrl = (tenantId: number,\n params: LearningCustomerCourseStatisticsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/reports/tenants/${tenantId}/courses?${stringifiedParams}` : `/learning/reports/tenants/${tenantId}/courses`\n}\n\n/**\n * List only courses having activity records for this tenant in the interval, ordered by distinct active learners descending then course ID. Feedback is left joined for those courses; feedback-only courses do not appear. Requires scoped ADMIN/SUPPORT staff authority and refuses support impersonation. Distinct learner counts overlap between courses and must not be summed as a distinct tenant total. Activity uses inclusive startsOn and exclusive endsBefore accounting dates; feedback uses midnight Europe/Paris boundaries. Intervals must span 1–366 days. Active learners are distinct users with activity records, activeSeconds sums recorded seconds, and lessonActivityRecords counts stored activity rows, not completions or sessions. Feedback is counted independently by creation time; averageRating is null with no feedback and otherwise rounded to two decimals.\n * @summary List staff course statistics for a customer\n */\nexport const learningCustomerCourseStatistics = async (tenantId: number,\n params: LearningCustomerCourseStatisticsParams, options?: Parameters<typeof request>[1]): Promise<LearningCourseStatsPage> => {\n\n return request<LearningCourseStatsPage>(getLearningCustomerCourseStatisticsUrl(tenantId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AA4BA,MAAa,qCAAqC,aAC9C,aAAsB;CAKxB,OAAO,+BAA+B,YAAY,aAAa,SAAS;AAC1E;;;;;AAMA,MAAa,8BAA8B,OAAO,aAC9C,UACA,4BAAwD,YAA2D;CAEnH,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAAc,kCAAkC,aAAY,QAAQ,GACzE;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,0BAA0B;CACjD,CACF;AAAE;AAGF,MAAa,kCAAkC,UAC3C,WAA4C;CAC9C,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAA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;CAErK,OAAO,QAAoC,8BAA8B,MAAM,GAC/E;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,oCAAoC,UAC7C,WAA8C;CAChD,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,6BAA6B,SAAS,GAAG,sBAAsB,6BAA6B;AACpI;;;;;AAMA,MAAa,6BAA6B,OAAO,UAC7C,QAA0C,YAA8E;CAE1H,OAAO,QAAiC,iCAAiC,UAAS,MAAM,GACxF;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,0CAA0C,UACnD,WAAoD;CACtD,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,6BAA6B,SAAS,WAAW,sBAAsB,6BAA6B,SAAS;AACrJ;;;;;AAMA,MAAa,mCAAmC,OAAO,UACnD,QAAgD,YAA8E;CAEhI,OAAO,QAAiC,uCAAuC,UAAS,MAAM,GAC9F;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"biblio-learning-finance.js","names":[],"sources":["../../src/api/biblio-learning-finance/biblio-learning-finance.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.21.0\n */\nimport type {\n LearningAssetRead,\n LearningChannelListRead,\n LearningChannelRead,\n LearningChannelWrite,\n LearningContractChannelWrite,\n LearningListPayeeAllocationsParams,\n LearningListPayeeSettlementsParams,\n LearningListPayeesParams,\n LearningListRoyaltyAllocationsParams,\n LearningListRoyaltyPeriodsParams,\n LearningPayeeDocumentPage,\n LearningPayeeDocumentUploadWrite,\n LearningPayeeDocumentsParams,\n LearningPayeePage,\n LearningPayeeRead,\n LearningPayeeWrite,\n LearningRoyaltyAdjustmentWrite,\n LearningRoyaltyAgreementEndWrite,\n LearningRoyaltyAgreementRead,\n LearningRoyaltyAgreementWrite,\n LearningRoyaltyAllocationPage,\n LearningRoyaltyApprovalWrite,\n LearningRoyaltyBudgetListRead,\n LearningRoyaltyBudgetRead,\n LearningRoyaltyBudgetWrite,\n LearningRoyaltyInvoiceRead,\n LearningRoyaltyInvoiceWrite,\n LearningRoyaltyPaidWrite,\n LearningRoyaltyPeriodPage,\n LearningRoyaltyPeriodRead,\n LearningRoyaltyPeriodWrite,\n LearningRoyaltySettlementPage,\n LearningRoyaltySettlementRead,\n LearningRoyaltySettlementWrite,\n LearningUploadRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getLearningEndRoyaltyAgreementUrl = (agreementId: number,) => {\n\n\n\n\n return `/learning/finance/agreements/${agreementId}/end`\n}\n\n/**\n * 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.\n * @summary Set an agreement’s final covered month\n */\nexport const learningEndRoyaltyAgreement = async (agreementId: number,\n learningRoyaltyAgreementEndWrite: LearningRoyaltyAgreementEndWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyAgreementRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyAgreementRead>(getLearningEndRoyaltyAgreementUrl(agreementId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyAgreementEndWrite)\n }\n);}\n\n\nexport const getLearningListDistributionChannelsUrl = (catalogueId: number,) => {\n\n\n\n\n return `/learning/finance/catalogues/${catalogueId}/channels`\n}\n\n/**\n * 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.\n * @summary List catalogue distribution channels\n */\nexport const learningListDistributionChannels = async (catalogueId: number, options?: Parameters<typeof request>[1]): Promise<LearningChannelListRead> => {\n\n return request<LearningChannelListRead>(getLearningListDistributionChannelsUrl(catalogueId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCreateDistributionChannelUrl = (catalogueId: number,) => {\n\n\n\n\n return `/learning/finance/catalogues/${catalogueId}/channels`\n}\n\n/**\n * 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.\n * @summary Create a distribution channel\n */\nexport const learningCreateDistributionChannel = async (catalogueId: number,\n learningChannelWrite: LearningChannelWrite, options?: Parameters<typeof request>[1]): Promise<LearningChannelRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningChannelRead>(getLearningCreateDistributionChannelUrl(catalogueId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningChannelWrite)\n }\n);}\n\n\nexport const getLearningCreatePayeeUrl = (catalogueId: number,) => {\n\n\n\n\n return `/learning/finance/catalogues/${catalogueId}/payees`\n}\n\n/**\n * 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.\n * @summary Create a rightsholder billing profile\n */\nexport const learningCreatePayee = async (catalogueId: number,\n learningPayeeWrite: LearningPayeeWrite, options?: Parameters<typeof request>[1]): Promise<LearningPayeeRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningPayeeRead>(getLearningCreatePayeeUrl(catalogueId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPayeeWrite)\n }\n);}\n\n\nexport const getLearningListRoyaltyPeriodsUrl = (catalogueId: number,\n params?: LearningListRoyaltyPeriodsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/catalogues/${catalogueId}/periods?${stringifiedParams}` : `/learning/finance/catalogues/${catalogueId}/periods`\n}\n\n/**\n * 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.\n * @summary List catalogue accounting months\n */\nexport const learningListRoyaltyPeriods = async (catalogueId: number,\n params?: LearningListRoyaltyPeriodsParams, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodPage> => {\n\n return request<LearningRoyaltyPeriodPage>(getLearningListRoyaltyPeriodsUrl(catalogueId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCreateRoyaltyPeriodUrl = (catalogueId: number,) => {\n\n\n\n\n return `/learning/finance/catalogues/${catalogueId}/periods`\n}\n\n/**\n * 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.\n * @summary Open a monthly royalty period\n */\nexport const learningCreateRoyaltyPeriod = async (catalogueId: number,\n learningRoyaltyPeriodWrite: LearningRoyaltyPeriodWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyPeriodRead>(getLearningCreateRoyaltyPeriodUrl(catalogueId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyPeriodWrite)\n }\n);}\n\n\nexport const getLearningSetContractChannelUrl = (contractId: number,) => {\n\n\n\n\n return `/learning/finance/contracts/${contractId}/channel`\n}\n\n/**\n * 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.\n * @summary Assign a contract’s royalty channel\n */\nexport const learningSetContractChannel = async (contractId: number,\n learningContractChannelWrite: LearningContractChannelWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningSetContractChannelUrl(contractId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningContractChannelWrite)\n }\n);}\n\n\nexport const getLearningCreateRoyaltyAgreementUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/finance/courses/${courseId}/agreements`\n}\n\n/**\n * 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.\n * @summary Create monthly rightsholder terms\n */\nexport const learningCreateRoyaltyAgreement = async (courseId: number,\n learningRoyaltyAgreementWrite: LearningRoyaltyAgreementWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyAgreementRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyAgreementRead>(getLearningCreateRoyaltyAgreementUrl(courseId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyAgreementWrite)\n }\n);}\n\n\nexport const getLearningReadRoyaltyInvoiceUrl = (invoiceId: number,) => {\n\n\n\n\n return `/learning/finance/invoices/${invoiceId}`\n}\n\n/**\n * 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.\n * @summary Read native or source invoice facts\n */\nexport const learningReadRoyaltyInvoice = async (invoiceId: number, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyInvoiceRead> => {\n\n return request<LearningRoyaltyInvoiceRead>(getLearningReadRoyaltyInvoiceUrl(invoiceId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningDownloadRoyaltyInvoiceUrl = (invoiceId: number,) => {\n\n\n\n\n return `/learning/finance/invoices/${invoiceId}/document`\n}\n\n/**\n * 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.\n * @summary Download a private invoice PDF\n */\nexport const learningDownloadRoyaltyInvoice = async (invoiceId: number, options?: Parameters<typeof request>[1]): Promise<Blob> => {\n\n return request<Blob>(getLearningDownloadRoyaltyInvoiceUrl(invoiceId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningListPayeesUrl = (params?: LearningListPayeesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/payees?${stringifiedParams}` : `/learning/finance/payees`\n}\n\n/**\n * 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.\n * @summary List accessible rightsholder billing profiles\n */\nexport const learningListPayees = async (params?: LearningListPayeesParams, options?: Parameters<typeof request>[1]): Promise<LearningPayeePage> => {\n\n return request<LearningPayeePage>(getLearningListPayeesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningReadPayeeUrl = (payeeId: number,) => {\n\n\n\n\n return `/learning/finance/payees/${payeeId}`\n}\n\n/**\n * 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.\n * @summary Read a rightsholder billing profile\n */\nexport const learningReadPayee = async (payeeId: number, options?: Parameters<typeof request>[1]): Promise<LearningPayeeRead> => {\n\n return request<LearningPayeeRead>(getLearningReadPayeeUrl(payeeId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningUpdatePayeeUrl = (payeeId: number,) => {\n\n\n\n\n return `/learning/finance/payees/${payeeId}`\n}\n\n/**\n * 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.\n * @summary Replace a rightsholder’s legal details\n */\nexport const learningUpdatePayee = async (payeeId: number,\n learningPayeeWrite: LearningPayeeWrite, options?: Parameters<typeof request>[1]): Promise<LearningPayeeRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningPayeeRead>(getLearningUpdatePayeeUrl(payeeId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPayeeWrite)\n }\n);}\n\n\nexport const getLearningListPayeeAllocationsUrl = (payeeId: number,\n params?: LearningListPayeeAllocationsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/payees/${payeeId}/allocations?${stringifiedParams}` : `/learning/finance/payees/${payeeId}/allocations`\n}\n\n/**\n * 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.\n * @summary List approved rightsholder allocations\n */\nexport const learningListPayeeAllocations = async (payeeId: number,\n params?: LearningListPayeeAllocationsParams, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyAllocationPage> => {\n\n return request<LearningRoyaltyAllocationPage>(getLearningListPayeeAllocationsUrl(payeeId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningReservePayeeDocumentUrl = (payeeId: number,) => {\n\n\n\n\n return `/learning/finance/payees/${payeeId}/document-uploads`\n}\n\n/**\n * 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.\n * @summary Reserve a private rightsholder document upload\n */\nexport const learningReservePayeeDocument = async (payeeId: number,\n learningPayeeDocumentUploadWrite: LearningPayeeDocumentUploadWrite, options?: Parameters<typeof request>[1]): Promise<LearningUploadRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningUploadRead>(getLearningReservePayeeDocumentUrl(payeeId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPayeeDocumentUploadWrite)\n }\n);}\n\n\nexport const getLearningPayeeDocumentsUrl = (payeeId: number,\n params?: LearningPayeeDocumentsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/payees/${payeeId}/documents?${stringifiedParams}` : `/learning/finance/payees/${payeeId}/documents`\n}\n\n/**\n * 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.\n * @summary List private rightsholder legal documents\n */\nexport const learningPayeeDocuments = async (payeeId: number,\n params?: LearningPayeeDocumentsParams, options?: Parameters<typeof request>[1]): Promise<LearningPayeeDocumentPage> => {\n\n return request<LearningPayeeDocumentPage>(getLearningPayeeDocumentsUrl(payeeId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningDownloadPayeeDocumentUrl = (payeeId: number,\n documentId: number,) => {\n\n\n\n\n return `/learning/finance/payees/${payeeId}/documents/${documentId}`\n}\n\n/**\n * 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.\n * @summary Get delivery for a private legal document\n */\nexport const learningDownloadPayeeDocument = async (payeeId: number,\n documentId: number, options?: Parameters<typeof request>[1]): Promise<LearningAssetRead> => {\n\n return request<LearningAssetRead>(getLearningDownloadPayeeDocumentUrl(payeeId,documentId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningListPayeeSettlementsUrl = (payeeId: number,\n params?: LearningListPayeeSettlementsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/payees/${payeeId}/settlements?${stringifiedParams}` : `/learning/finance/payees/${payeeId}/settlements`\n}\n\n/**\n * 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.\n * @summary List a rightsholder’s settlements\n */\nexport const learningListPayeeSettlements = async (payeeId: number,\n params?: LearningListPayeeSettlementsParams, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltySettlementPage> => {\n\n return request<LearningRoyaltySettlementPage>(getLearningListPayeeSettlementsUrl(payeeId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCreatePayeeSettlementUrl = (payeeId: number,) => {\n\n\n\n\n return `/learning/finance/payees/${payeeId}/settlements`\n}\n\n/**\n * 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.\n * @summary Create a two-month rightsholder settlement\n */\nexport const learningCreatePayeeSettlement = async (payeeId: number,\n learningRoyaltySettlementWrite: LearningRoyaltySettlementWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltySettlementRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltySettlementRead>(getLearningCreatePayeeSettlementUrl(payeeId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltySettlementWrite)\n }\n);}\n\n\nexport const getLearningReadRoyaltyPeriodUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}`\n}\n\n/**\n * 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.\n * @summary Read calculation and approval state\n */\nexport const learningReadRoyaltyPeriod = async (periodId: number, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodRead> => {\n\n return request<LearningRoyaltyPeriodRead>(getLearningReadRoyaltyPeriodUrl(periodId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSetRoyaltyAdjustmentUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/adjustments`\n}\n\n/**\n * 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.\n * @summary Set monthly sales and bonus adjustments\n */\nexport const learningSetRoyaltyAdjustment = async (periodId: number,\n learningRoyaltyAdjustmentWrite: LearningRoyaltyAdjustmentWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningSetRoyaltyAdjustmentUrl(periodId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyAdjustmentWrite)\n }\n);}\n\n\nexport const getLearningListRoyaltyAllocationsUrl = (periodId: number,\n params?: LearningListRoyaltyAllocationsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/periods/${periodId}/allocations?${stringifiedParams}` : `/learning/finance/periods/${periodId}/allocations`\n}\n\n/**\n * 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.\n * @summary Inspect the month’s current allocations\n */\nexport const learningListRoyaltyAllocations = async (periodId: number,\n params?: LearningListRoyaltyAllocationsParams, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyAllocationPage> => {\n\n return request<LearningRoyaltyAllocationPage>(getLearningListRoyaltyAllocationsUrl(periodId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningApproveRoyaltyCalculationUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/approve`\n}\n\n/**\n * 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.\n * @summary Approve a completed royalty generation\n */\nexport const learningApproveRoyaltyCalculation = async (periodId: number,\n learningRoyaltyApprovalWrite: LearningRoyaltyApprovalWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyPeriodRead>(getLearningApproveRoyaltyCalculationUrl(periodId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyApprovalWrite)\n }\n);}\n\n\nexport const getLearningListRoyaltyBudgetsUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/budgets`\n}\n\n/**\n * 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.\n * @summary List channel budgets and calculation results\n */\nexport const learningListRoyaltyBudgets = async (periodId: number, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyBudgetListRead> => {\n\n return request<LearningRoyaltyBudgetListRead>(getLearningListRoyaltyBudgetsUrl(periodId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSetRoyaltyBudgetUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/budgets`\n}\n\n/**\n * 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.\n * @summary Set a channel’s monthly royalty pool\n */\nexport const learningSetRoyaltyBudget = async (periodId: number,\n learningRoyaltyBudgetWrite: LearningRoyaltyBudgetWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyBudgetRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyBudgetRead>(getLearningSetRoyaltyBudgetUrl(periodId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyBudgetWrite)\n }\n);}\n\n\nexport const getLearningRequestRoyaltyCalculationUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/calculate`\n}\n\n/**\n * 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.\n * @summary Queue a closed month’s royalty calculation\n */\nexport const learningRequestRoyaltyCalculation = async (periodId: number, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodRead> => {\n\n return request<LearningRoyaltyPeriodRead>(getLearningRequestRoyaltyCalculationUrl(periodId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getLearningResetRoyaltyCalculationUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/reset`\n}\n\n/**\n * 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.\n * @summary Invalidate an unapproved calculation\n */\nexport const learningResetRoyaltyCalculation = async (periodId: number,\n learningRoyaltyApprovalWrite: LearningRoyaltyApprovalWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyPeriodRead>(getLearningResetRoyaltyCalculationUrl(periodId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyApprovalWrite)\n }\n);}\n\n\nexport const getLearningReadRoyaltySettlementUrl = (settlementId: number,) => {\n\n\n\n\n return `/learning/finance/settlements/${settlementId}`\n}\n\n/**\n * 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.\n * @summary Read a rightsholder settlement\n */\nexport const learningReadRoyaltySettlement = async (settlementId: number, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltySettlementRead> => {\n\n return request<LearningRoyaltySettlementRead>(getLearningReadRoyaltySettlementUrl(settlementId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningIssueRoyaltyInvoiceUrl = (settlementId: number,) => {\n\n\n\n\n return `/learning/finance/settlements/${settlementId}/invoice`\n}\n\n/**\n * 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.\n * @summary Issue an immutable royalty invoice\n */\nexport const learningIssueRoyaltyInvoice = async (settlementId: number,\n learningRoyaltyInvoiceWrite: LearningRoyaltyInvoiceWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyInvoiceRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyInvoiceRead>(getLearningIssueRoyaltyInvoiceUrl(settlementId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyInvoiceWrite)\n }\n);}\n\n\nexport const getLearningRecordRoyaltyPaymentUrl = (settlementId: number,) => {\n\n\n\n\n return `/learning/finance/settlements/${settlementId}/paid`\n}\n\n/**\n * 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.\n * @summary Record an observed royalty payment\n */\nexport const learningRecordRoyaltyPayment = async (settlementId: number,\n learningRoyaltyPaidWrite: LearningRoyaltyPaidWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltySettlementRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltySettlementRead>(getLearningRecordRoyaltyPaymentUrl(settlementId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyPaidWrite)\n }\n);}\n\n\n"],"mappings":";;;AA+CA,MAAa,qCAAqC,gBAAyB;CAKzE,OAAO,gCAAgC,YAAY;AACrD;;;;;AAMA,MAAa,8BAA8B,OAAO,aAC9C,kCAAoE,YAAmF;CAEvJ,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE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GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAAoC,kCAAkC,YAAY,GACvF;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,2BAA2B;CAClD,CACF;AAAE;AAGF,MAAa,sCAAsC,iBAA0B;CAK3E,OAAO,iCAAiC,aAAa;AACvD;;;;;AAMA,MAAa,+BAA+B,OAAO,cAC/C,0BAAoD,YAAoF;CAExI,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAAuC,mCAAmC,YAAY,GAC3F;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,wBAAwB;CAC/C,CACF;AAAE"}
1
+ {"version":3,"file":"biblio-learning-finance.js","names":[],"sources":["../../src/api/biblio-learning-finance/biblio-learning-finance.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.22.10\n */\nimport type {\n LearningAssetRead,\n LearningChannelListRead,\n LearningChannelRead,\n LearningChannelWrite,\n LearningContractChannelWrite,\n LearningListPayeeAllocationsParams,\n LearningListPayeeSettlementsParams,\n LearningListPayeesParams,\n LearningListRoyaltyAllocationsParams,\n LearningListRoyaltyPeriodsParams,\n LearningPayeeDocumentPage,\n LearningPayeeDocumentUploadWrite,\n LearningPayeeDocumentsParams,\n LearningPayeePage,\n LearningPayeeRead,\n LearningPayeeWrite,\n LearningRoyaltyAdjustmentWrite,\n LearningRoyaltyAgreementEndWrite,\n LearningRoyaltyAgreementRead,\n LearningRoyaltyAgreementWrite,\n LearningRoyaltyAllocationPage,\n LearningRoyaltyApprovalWrite,\n LearningRoyaltyBudgetListRead,\n LearningRoyaltyBudgetRead,\n LearningRoyaltyBudgetWrite,\n LearningRoyaltyInvoiceRead,\n LearningRoyaltyInvoiceWrite,\n LearningRoyaltyPaidWrite,\n LearningRoyaltyPeriodPage,\n LearningRoyaltyPeriodRead,\n LearningRoyaltyPeriodWrite,\n LearningRoyaltySettlementPage,\n LearningRoyaltySettlementRead,\n LearningRoyaltySettlementWrite,\n LearningUploadRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getLearningEndRoyaltyAgreementUrl = (agreementId: number,) => {\n\n\n\n\n return `/learning/finance/agreements/${agreementId}/end`\n}\n\n/**\n * 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.\n * @summary Set an agreement’s final covered month\n */\nexport const learningEndRoyaltyAgreement = async (agreementId: number,\n learningRoyaltyAgreementEndWrite: LearningRoyaltyAgreementEndWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyAgreementRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyAgreementRead>(getLearningEndRoyaltyAgreementUrl(agreementId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyAgreementEndWrite)\n }\n);}\n\n\nexport const getLearningListDistributionChannelsUrl = (catalogueId: number,) => {\n\n\n\n\n return `/learning/finance/catalogues/${catalogueId}/channels`\n}\n\n/**\n * 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.\n * @summary List catalogue distribution channels\n */\nexport const learningListDistributionChannels = async (catalogueId: number, options?: Parameters<typeof request>[1]): Promise<LearningChannelListRead> => {\n\n return request<LearningChannelListRead>(getLearningListDistributionChannelsUrl(catalogueId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCreateDistributionChannelUrl = (catalogueId: number,) => {\n\n\n\n\n return `/learning/finance/catalogues/${catalogueId}/channels`\n}\n\n/**\n * 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.\n * @summary Create a distribution channel\n */\nexport const learningCreateDistributionChannel = async (catalogueId: number,\n learningChannelWrite: LearningChannelWrite, options?: Parameters<typeof request>[1]): Promise<LearningChannelRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningChannelRead>(getLearningCreateDistributionChannelUrl(catalogueId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningChannelWrite)\n }\n);}\n\n\nexport const getLearningCreatePayeeUrl = (catalogueId: number,) => {\n\n\n\n\n return `/learning/finance/catalogues/${catalogueId}/payees`\n}\n\n/**\n * 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.\n * @summary Create a rightsholder billing profile\n */\nexport const learningCreatePayee = async (catalogueId: number,\n learningPayeeWrite: LearningPayeeWrite, options?: Parameters<typeof request>[1]): Promise<LearningPayeeRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningPayeeRead>(getLearningCreatePayeeUrl(catalogueId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPayeeWrite)\n }\n);}\n\n\nexport const getLearningListRoyaltyPeriodsUrl = (catalogueId: number,\n params?: LearningListRoyaltyPeriodsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/catalogues/${catalogueId}/periods?${stringifiedParams}` : `/learning/finance/catalogues/${catalogueId}/periods`\n}\n\n/**\n * 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.\n * @summary List catalogue accounting months\n */\nexport const learningListRoyaltyPeriods = async (catalogueId: number,\n params?: LearningListRoyaltyPeriodsParams, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodPage> => {\n\n return request<LearningRoyaltyPeriodPage>(getLearningListRoyaltyPeriodsUrl(catalogueId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCreateRoyaltyPeriodUrl = (catalogueId: number,) => {\n\n\n\n\n return `/learning/finance/catalogues/${catalogueId}/periods`\n}\n\n/**\n * 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.\n * @summary Open a monthly royalty period\n */\nexport const learningCreateRoyaltyPeriod = async (catalogueId: number,\n learningRoyaltyPeriodWrite: LearningRoyaltyPeriodWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyPeriodRead>(getLearningCreateRoyaltyPeriodUrl(catalogueId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyPeriodWrite)\n }\n);}\n\n\nexport const getLearningSetContractChannelUrl = (contractId: number,) => {\n\n\n\n\n return `/learning/finance/contracts/${contractId}/channel`\n}\n\n/**\n * 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.\n * @summary Assign a contract’s royalty channel\n */\nexport const learningSetContractChannel = async (contractId: number,\n learningContractChannelWrite: LearningContractChannelWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningSetContractChannelUrl(contractId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningContractChannelWrite)\n }\n);}\n\n\nexport const getLearningCreateRoyaltyAgreementUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/finance/courses/${courseId}/agreements`\n}\n\n/**\n * 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.\n * @summary Create monthly rightsholder terms\n */\nexport const learningCreateRoyaltyAgreement = async (courseId: number,\n learningRoyaltyAgreementWrite: LearningRoyaltyAgreementWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyAgreementRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyAgreementRead>(getLearningCreateRoyaltyAgreementUrl(courseId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyAgreementWrite)\n }\n);}\n\n\nexport const getLearningReadRoyaltyInvoiceUrl = (invoiceId: number,) => {\n\n\n\n\n return `/learning/finance/invoices/${invoiceId}`\n}\n\n/**\n * 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.\n * @summary Read native or source invoice facts\n */\nexport const learningReadRoyaltyInvoice = async (invoiceId: number, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyInvoiceRead> => {\n\n return request<LearningRoyaltyInvoiceRead>(getLearningReadRoyaltyInvoiceUrl(invoiceId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningDownloadRoyaltyInvoiceUrl = (invoiceId: number,) => {\n\n\n\n\n return `/learning/finance/invoices/${invoiceId}/document`\n}\n\n/**\n * 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.\n * @summary Download a private invoice PDF\n */\nexport const learningDownloadRoyaltyInvoice = async (invoiceId: number, options?: Parameters<typeof request>[1]): Promise<Blob> => {\n\n return request<Blob>(getLearningDownloadRoyaltyInvoiceUrl(invoiceId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningListPayeesUrl = (params?: LearningListPayeesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/payees?${stringifiedParams}` : `/learning/finance/payees`\n}\n\n/**\n * 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.\n * @summary List accessible rightsholder billing profiles\n */\nexport const learningListPayees = async (params?: LearningListPayeesParams, options?: Parameters<typeof request>[1]): Promise<LearningPayeePage> => {\n\n return request<LearningPayeePage>(getLearningListPayeesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningReadPayeeUrl = (payeeId: number,) => {\n\n\n\n\n return `/learning/finance/payees/${payeeId}`\n}\n\n/**\n * 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.\n * @summary Read a rightsholder billing profile\n */\nexport const learningReadPayee = async (payeeId: number, options?: Parameters<typeof request>[1]): Promise<LearningPayeeRead> => {\n\n return request<LearningPayeeRead>(getLearningReadPayeeUrl(payeeId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningUpdatePayeeUrl = (payeeId: number,) => {\n\n\n\n\n return `/learning/finance/payees/${payeeId}`\n}\n\n/**\n * 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.\n * @summary Replace a rightsholder’s legal details\n */\nexport const learningUpdatePayee = async (payeeId: number,\n learningPayeeWrite: LearningPayeeWrite, options?: Parameters<typeof request>[1]): Promise<LearningPayeeRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningPayeeRead>(getLearningUpdatePayeeUrl(payeeId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPayeeWrite)\n }\n);}\n\n\nexport const getLearningListPayeeAllocationsUrl = (payeeId: number,\n params?: LearningListPayeeAllocationsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/payees/${payeeId}/allocations?${stringifiedParams}` : `/learning/finance/payees/${payeeId}/allocations`\n}\n\n/**\n * 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.\n * @summary List approved rightsholder allocations\n */\nexport const learningListPayeeAllocations = async (payeeId: number,\n params?: LearningListPayeeAllocationsParams, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyAllocationPage> => {\n\n return request<LearningRoyaltyAllocationPage>(getLearningListPayeeAllocationsUrl(payeeId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningReservePayeeDocumentUrl = (payeeId: number,) => {\n\n\n\n\n return `/learning/finance/payees/${payeeId}/document-uploads`\n}\n\n/**\n * 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.\n * @summary Reserve a private rightsholder document upload\n */\nexport const learningReservePayeeDocument = async (payeeId: number,\n learningPayeeDocumentUploadWrite: LearningPayeeDocumentUploadWrite, options?: Parameters<typeof request>[1]): Promise<LearningUploadRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningUploadRead>(getLearningReservePayeeDocumentUrl(payeeId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPayeeDocumentUploadWrite)\n }\n);}\n\n\nexport const getLearningPayeeDocumentsUrl = (payeeId: number,\n params?: LearningPayeeDocumentsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/payees/${payeeId}/documents?${stringifiedParams}` : `/learning/finance/payees/${payeeId}/documents`\n}\n\n/**\n * 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.\n * @summary List private rightsholder legal documents\n */\nexport const learningPayeeDocuments = async (payeeId: number,\n params?: LearningPayeeDocumentsParams, options?: Parameters<typeof request>[1]): Promise<LearningPayeeDocumentPage> => {\n\n return request<LearningPayeeDocumentPage>(getLearningPayeeDocumentsUrl(payeeId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningDownloadPayeeDocumentUrl = (payeeId: number,\n documentId: number,) => {\n\n\n\n\n return `/learning/finance/payees/${payeeId}/documents/${documentId}`\n}\n\n/**\n * 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.\n * @summary Get delivery for a private legal document\n */\nexport const learningDownloadPayeeDocument = async (payeeId: number,\n documentId: number, options?: Parameters<typeof request>[1]): Promise<LearningAssetRead> => {\n\n return request<LearningAssetRead>(getLearningDownloadPayeeDocumentUrl(payeeId,documentId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningListPayeeSettlementsUrl = (payeeId: number,\n params?: LearningListPayeeSettlementsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/payees/${payeeId}/settlements?${stringifiedParams}` : `/learning/finance/payees/${payeeId}/settlements`\n}\n\n/**\n * 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.\n * @summary List a rightsholder’s settlements\n */\nexport const learningListPayeeSettlements = async (payeeId: number,\n params?: LearningListPayeeSettlementsParams, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltySettlementPage> => {\n\n return request<LearningRoyaltySettlementPage>(getLearningListPayeeSettlementsUrl(payeeId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningCreatePayeeSettlementUrl = (payeeId: number,) => {\n\n\n\n\n return `/learning/finance/payees/${payeeId}/settlements`\n}\n\n/**\n * 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.\n * @summary Create a two-month rightsholder settlement\n */\nexport const learningCreatePayeeSettlement = async (payeeId: number,\n learningRoyaltySettlementWrite: LearningRoyaltySettlementWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltySettlementRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltySettlementRead>(getLearningCreatePayeeSettlementUrl(payeeId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltySettlementWrite)\n }\n);}\n\n\nexport const getLearningReadRoyaltyPeriodUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}`\n}\n\n/**\n * 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.\n * @summary Read calculation and approval state\n */\nexport const learningReadRoyaltyPeriod = async (periodId: number, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodRead> => {\n\n return request<LearningRoyaltyPeriodRead>(getLearningReadRoyaltyPeriodUrl(periodId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSetRoyaltyAdjustmentUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/adjustments`\n}\n\n/**\n * 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.\n * @summary Set monthly sales and bonus adjustments\n */\nexport const learningSetRoyaltyAdjustment = async (periodId: number,\n learningRoyaltyAdjustmentWrite: LearningRoyaltyAdjustmentWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningSetRoyaltyAdjustmentUrl(periodId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyAdjustmentWrite)\n }\n);}\n\n\nexport const getLearningListRoyaltyAllocationsUrl = (periodId: number,\n params?: LearningListRoyaltyAllocationsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/finance/periods/${periodId}/allocations?${stringifiedParams}` : `/learning/finance/periods/${periodId}/allocations`\n}\n\n/**\n * 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.\n * @summary Inspect the month’s current allocations\n */\nexport const learningListRoyaltyAllocations = async (periodId: number,\n params?: LearningListRoyaltyAllocationsParams, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyAllocationPage> => {\n\n return request<LearningRoyaltyAllocationPage>(getLearningListRoyaltyAllocationsUrl(periodId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningApproveRoyaltyCalculationUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/approve`\n}\n\n/**\n * 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.\n * @summary Approve a completed royalty generation\n */\nexport const learningApproveRoyaltyCalculation = async (periodId: number,\n learningRoyaltyApprovalWrite: LearningRoyaltyApprovalWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyPeriodRead>(getLearningApproveRoyaltyCalculationUrl(periodId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyApprovalWrite)\n }\n);}\n\n\nexport const getLearningListRoyaltyBudgetsUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/budgets`\n}\n\n/**\n * 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.\n * @summary List channel budgets and calculation results\n */\nexport const learningListRoyaltyBudgets = async (periodId: number, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyBudgetListRead> => {\n\n return request<LearningRoyaltyBudgetListRead>(getLearningListRoyaltyBudgetsUrl(periodId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSetRoyaltyBudgetUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/budgets`\n}\n\n/**\n * 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.\n * @summary Set a channel’s monthly royalty pool\n */\nexport const learningSetRoyaltyBudget = async (periodId: number,\n learningRoyaltyBudgetWrite: LearningRoyaltyBudgetWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyBudgetRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyBudgetRead>(getLearningSetRoyaltyBudgetUrl(periodId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyBudgetWrite)\n }\n);}\n\n\nexport const getLearningRequestRoyaltyCalculationUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/calculate`\n}\n\n/**\n * 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.\n * @summary Queue a closed month’s royalty calculation\n */\nexport const learningRequestRoyaltyCalculation = async (periodId: number, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodRead> => {\n\n return request<LearningRoyaltyPeriodRead>(getLearningRequestRoyaltyCalculationUrl(periodId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getLearningResetRoyaltyCalculationUrl = (periodId: number,) => {\n\n\n\n\n return `/learning/finance/periods/${periodId}/reset`\n}\n\n/**\n * 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.\n * @summary Invalidate an unapproved calculation\n */\nexport const learningResetRoyaltyCalculation = async (periodId: number,\n learningRoyaltyApprovalWrite: LearningRoyaltyApprovalWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyPeriodRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyPeriodRead>(getLearningResetRoyaltyCalculationUrl(periodId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyApprovalWrite)\n }\n);}\n\n\nexport const getLearningReadRoyaltySettlementUrl = (settlementId: number,) => {\n\n\n\n\n return `/learning/finance/settlements/${settlementId}`\n}\n\n/**\n * 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.\n * @summary Read a rightsholder settlement\n */\nexport const learningReadRoyaltySettlement = async (settlementId: number, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltySettlementRead> => {\n\n return request<LearningRoyaltySettlementRead>(getLearningReadRoyaltySettlementUrl(settlementId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningIssueRoyaltyInvoiceUrl = (settlementId: number,) => {\n\n\n\n\n return `/learning/finance/settlements/${settlementId}/invoice`\n}\n\n/**\n * 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.\n * @summary Issue an immutable royalty invoice\n */\nexport const learningIssueRoyaltyInvoice = async (settlementId: number,\n learningRoyaltyInvoiceWrite: LearningRoyaltyInvoiceWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltyInvoiceRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltyInvoiceRead>(getLearningIssueRoyaltyInvoiceUrl(settlementId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyInvoiceWrite)\n }\n);}\n\n\nexport const getLearningRecordRoyaltyPaymentUrl = (settlementId: number,) => {\n\n\n\n\n return `/learning/finance/settlements/${settlementId}/paid`\n}\n\n/**\n * 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.\n * @summary Record an observed royalty payment\n */\nexport const learningRecordRoyaltyPayment = async (settlementId: number,\n learningRoyaltyPaidWrite: LearningRoyaltyPaidWrite, options?: Parameters<typeof request>[1]): Promise<LearningRoyaltySettlementRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningRoyaltySettlementRead>(getLearningRecordRoyaltyPaymentUrl(settlementId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningRoyaltyPaidWrite)\n }\n);}\n\n\n"],"mappings":";;;AA+CA,MAAa,qCAAqC,gBAAyB;CAKzE,OAAO,gCAAgC,YAAY;AACrD;;;;;AAMA,MAAa,8BAA8B,OAAO,aAC9C,kCAAoE,YAAmF;CAEvJ,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAA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AAE;EAC/E,MAAM,KAAK,UAAU,2BAA2B;CAClD,CACF;AAAE;AAGF,MAAa,sCAAsC,iBAA0B;CAK3E,OAAO,iCAAiC,aAAa;AACvD;;;;;AAMA,MAAa,+BAA+B,OAAO,cAC/C,0BAAoD,YAAoF;CAExI,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAAuC,mCAAmC,YAAY,GAC3F;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,wBAAwB;CAC/C,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { Dl as LearningIntegrationResolutionWrite, Es as LearningTypeformWebhookBody, Fl as LearningEngagementRead, Is as LearningSsoProofWrite, Pl as LearningEngagementWrite, Ty as CourseRevisionRead, kl as LearningIntegrationDeliveryRead, qs as LearningSalesforceBindingWrite, ru as LearningContractMemberRead, zc as LearningPartnerFeedWrite } from "../chunks/index.js";
2
+ import { Dl as LearningIntegrationResolutionWrite, Es as LearningTypeformWebhookBody, Ey as CourseRevisionRead, Fl as LearningEngagementRead, Is as LearningSsoProofWrite, Pl as LearningEngagementWrite, kl as LearningIntegrationDeliveryRead, qs as LearningSalesforceBindingWrite, ru as LearningContractMemberRead, zc as LearningPartnerFeedWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/biblio-learning-integrations/biblio-learning-integrations.d.ts
5
5
  export declare const getLearningImportPartnerFeedUrl: (courseId: number, provider: 'codes-rousseau' | 'les-bons-profs' | 'loecsen') => string;
@@ -1 +1 @@
1
- {"version":3,"file":"biblio-learning-integrations.js","names":[],"sources":["../../src/api/biblio-learning-integrations/biblio-learning-integrations.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.21.0\n */\nimport type {\n CourseRevisionRead,\n LearningContractMemberRead,\n LearningEngagementRead,\n LearningEngagementWrite,\n LearningIntegrationDeliveryRead,\n LearningIntegrationResolutionWrite,\n LearningPartnerFeedWrite,\n LearningSalesforceBindingWrite,\n LearningSsoProofWrite,\n LearningTypeformWebhookBody\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getLearningImportPartnerFeedUrl = (courseId: number,\n provider: 'codes-rousseau' | 'les-bons-profs' | 'loecsen',) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/imports/${provider}`\n}\n\n/**\n * Authors import content for an existing course they may edit. Select provider=codes-rousseau for a 17-column semicolon CSV (default skipRows=1, title required); les-bons-profs for JSON section objects encoded in the content string; or loecsen for a 20-column comma CSV (default skipRows=4), reviewed template, languageName, languageCode and templateAudio mappings. Examples set skipRows=0 because they contain data rows only. assetMap translates source references to already imported assets the caller may use. Import validates the entire definition, creates a draft and does not download media, publish the course or provision a provider account. The response describes the new revision; retrieve its author definition to inspect the generated chapters and lessons.\n * @summary Import a partner feed as a native draft revision\n */\nexport const learningImportPartnerFeed = async (courseId: number,\n provider: 'codes-rousseau' | 'les-bons-profs' | 'loecsen',\n learningPartnerFeedWrite: LearningPartnerFeedWrite, options?: Parameters<typeof request>[1]): Promise<CourseRevisionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<CourseRevisionRead>(getLearningImportPartnerFeedUrl(courseId,provider),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPartnerFeedWrite)\n }\n);}\n\n\nexport const getLearningDispatchEngagementUrl = (deliveryId: number,) => {\n\n\n\n\n return `/learning/integrations/braze/deliveries/${deliveryId}/dispatch`\n}\n\n/**\n * A global integration operator dispatches the existing pending delivery after checking current consent and earlier deliveries for the same profile. Nonpending rows are returned unchanged. The result can be sent, failed, uncertain or cancelled; HTTP 200 alone does not confirm delivery. A timeout or ambiguous provider acknowledgement becomes uncertain and is never blindly retried. Resolve uncertainty using external evidence before redispatching; newer deliveries wait for earlier unresolved rows.\n * @summary Dispatch one pending Braze delivery\n */\nexport const learningDispatchEngagement = async (deliveryId: number, options?: Parameters<typeof request>[1]): Promise<LearningIntegrationDeliveryRead> => {\n\n return request<LearningIntegrationDeliveryRead>(getLearningDispatchEngagementUrl(deliveryId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getLearningResolveEngagementUrl = (deliveryId: number,) => {\n\n\n\n\n return `/learning/integrations/braze/deliveries/${deliveryId}/resolve`\n}\n\n/**\n * A global integration operator records a reviewed provider outcome for a failed, uncertain or stale sending delivery. confirmed_sent marks it sent and clears stored properties; confirmed_not_sent returns it to pending for a later explicit dispatch. A sending claim younger than 120 seconds cannot be resolved. This operation records evidence and never sends to Braze itself.\n * @summary Resolve an uncertain or failed Braze delivery\n */\nexport const learningResolveEngagement = async (deliveryId: number,\n learningIntegrationResolutionWrite: LearningIntegrationResolutionWrite, options?: Parameters<typeof request>[1]): Promise<LearningIntegrationDeliveryRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningIntegrationDeliveryRead>(getLearningResolveEngagementUrl(deliveryId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningIntegrationResolutionWrite)\n }\n);}\n\n\nexport const getLearningBindSalesforceUrl = (tenantId: number,) => {\n\n\n\n\n return `/learning/integrations/salesforce/customers/${tenantId}`\n}\n\n/**\n * A global commercial operator maps one customer tenant to an exact Salesforce Account, community, catalogue and exclusive institution learning agreement. Repeating the same identity can update isActive and clockZone; moving an already bound identity or agreement returns 409. clockZone is the reviewed IANA source timezone used to interpret source access dates. Support impersonation and dependent profiles are refused. Returns 204 with no response body.\n * @summary Bind a reviewed Salesforce customer identity\n */\nexport const learningBindSalesforce = async (tenantId: number,\n learningSalesforceBindingWrite: LearningSalesforceBindingWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningBindSalesforceUrl(tenantId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningSalesforceBindingWrite)\n }\n);}\n\n\nexport const getLearningEngagementPreferenceUrl = () => {\n\n\n\n\n return `/learning/me/engagement`\n}\n\n/**\n * Return the local engagement consent state without contacting Braze. An absent preference is enabled=false and emailOptIn=null. Null emailOptIn means no explicit email subscription preference was supplied; it is distinct from a confirmed opt-out.\n * @summary Read the current profile's engagement preference\n */\nexport const learningEngagementPreference = async ( options?: Parameters<typeof request>[1]): Promise<LearningEngagementRead> => {\n\n return request<LearningEngagementRead>(getLearningEngagementPreferenceUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSetEngagementPreferenceUrl = () => {\n\n\n\n\n return `/learning/me/engagement`\n}\n\n/**\n * An independent profile explicitly enables or disables engagement and supplies an optional email opt-in. Enabling queues provider attributes; disabling cancels pending/failed deliveries and queues deletion when previously enabled. Personal email is sent only with emailOptIn=true. The response confirms local consent storage, not provider delivery. Repeating unchanged preferences queues no duplicate update. Support impersonation and dependent profiles are refused.\n * @summary Set engagement consent and email preference\n */\nexport const learningSetEngagementPreference = async (learningEngagementWrite: LearningEngagementWrite, options?: Parameters<typeof request>[1]): Promise<LearningEngagementRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningEngagementRead>(getLearningSetEngagementPreferenceUrl(),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningEngagementWrite)\n }\n);}\n\n\nexport const getLearningLinkPartnerIdentityUrl = (bindingKey: string,) => {\n\n\n\n\n return `/learning/me/integrations/sso/${bindingKey}/link`\n}\n\n/**\n * An already authenticated independent profile presents a one-use partner proof for a reviewed bindingKey. The configured CAS, Wizbii or Iguana protocol verifies the proof before linking the identity and bounded catalogue membership. Wizbii also requires username. This endpoint returns membership, not an OAuth token or a seamless login redirect. It cannot select another beneficiary, replace a revoked membership, or claim an identity linked to someone else. A stronger login with entitlement-change authority is required; support impersonation is refused. Proof replay is blocked for 24 hours.\n * @summary Link a verified partner identity to the current profile\n */\nexport const learningLinkPartnerIdentity = async (bindingKey: string,\n learningSsoProofWrite: LearningSsoProofWrite, options?: Parameters<typeof request>[1]): Promise<LearningContractMemberRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningContractMemberRead>(getLearningLinkPartnerIdentityUrl(bindingKey),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningSsoProofWrite)\n }\n);}\n\n\nexport const getLearningSalesforceWebhookUrl = () => {\n\n\n\n\n return `/learning/webhooks/salesforce`\n}\n\n/**\n * Accept a SOAP XML Account notification batch up to 1 MiB with 1–100 unique notification IDs. OrganizationId and EnterpriseUrl must exactly match the configured source. Salesforce Send Session ID must be enabled: the server verifies that session, then fetches authoritative Account snapshots before updating only reviewed customer bindings. Embedded notification fields do not themselves grant authority. Replay receipts prevent conflicting reuse; unknown bindings or ambiguous source data require review. Successful processing returns the Salesforce text/xml Ack envelope. The synthetic session below is a transport fixture and cannot authenticate against a real source.\n * @summary Receive a verified Salesforce SOAP notification\n */\nexport const learningSalesforceWebhook = async (learningSalesforceWebhookBody: string, options?: Parameters<typeof request>[1]): Promise<string> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<string>(getLearningSalesforceWebhookUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'text/xml', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningSalesforceWebhookBody)\n }\n);}\n\n\nexport const getLearningTypeformWebhookUrl = () => {\n\n\n\n\n return `/learning/webhooks/typeform`\n}\n\n/**\n * Verify typeform-signature as sha256= followed by base64 HMAC-SHA256 of the exact raw request bytes using the configured shared secret. This callback authenticates the provider signature, not a user bearer token. form_response.hidden.mozaik_token must be the existing opaque 43-character invitation; it binds the profile, course, tenant and progress. The configured form ID and exactly one integer answer for the configured rating field are required; at most 100 answers and 1 MiB of raw body are accepted. Only configured text comment fields are collected. First acceptance consumes the invitation; an identical normalized response token/body retry is idempotent, a changed response conflicts, and an unconsumed expired invitation returns 410. Success returns no body.\n * @summary Accept a signed Typeform course survey\n */\nexport const learningTypeformWebhook = async (learningTypeformWebhookBody: LearningTypeformWebhookBody, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningTypeformWebhookUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningTypeformWebhookBody)\n }\n);}\n\n\n"],"mappings":";;;AAsBA,MAAa,mCAAmC,UAC5C,aAA+D;CAKjE,OAAO,4BAA4B,SAAS,WAAW;AACzD;;;;;AAMA,MAAa,4BAA4B,OAAO,UAC5C,UACA,0BAAoD,YAAyE;CAE7H,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAA4B,gCAAgC,UAAS,QAAQ,GAClF;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,wBAAwB;CAC/C,CACF;AAAE;AAGF,MAAa,oCAAoC,eAAwB;CAKvE,OAAO,2CAA2C,WAAW;AAC/D;;;;;AAMA,MAAa,6BAA6B,OAAO,YAAoB,YAAsF;CAEzJ,OAAO,QAAyC,iCAAiC,UAAU,GAC3F;EACE,GAAG;EACH,QAAQ;CAGV,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AkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAAc,8BAA8B,GACjD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,2BAA2B;CAClD,CACF;AAAE"}
1
+ {"version":3,"file":"biblio-learning-integrations.js","names":[],"sources":["../../src/api/biblio-learning-integrations/biblio-learning-integrations.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.22.10\n */\nimport type {\n CourseRevisionRead,\n LearningContractMemberRead,\n LearningEngagementRead,\n LearningEngagementWrite,\n LearningIntegrationDeliveryRead,\n LearningIntegrationResolutionWrite,\n LearningPartnerFeedWrite,\n LearningSalesforceBindingWrite,\n LearningSsoProofWrite,\n LearningTypeformWebhookBody\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getLearningImportPartnerFeedUrl = (courseId: number,\n provider: 'codes-rousseau' | 'les-bons-profs' | 'loecsen',) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/imports/${provider}`\n}\n\n/**\n * Authors import content for an existing course they may edit. Select provider=codes-rousseau for a 17-column semicolon CSV (default skipRows=1, title required); les-bons-profs for JSON section objects encoded in the content string; or loecsen for a 20-column comma CSV (default skipRows=4), reviewed template, languageName, languageCode and templateAudio mappings. Examples set skipRows=0 because they contain data rows only. assetMap translates source references to already imported assets the caller may use. Import validates the entire definition, creates a draft and does not download media, publish the course or provision a provider account. The response describes the new revision; retrieve its author definition to inspect the generated chapters and lessons.\n * @summary Import a partner feed as a native draft revision\n */\nexport const learningImportPartnerFeed = async (courseId: number,\n provider: 'codes-rousseau' | 'les-bons-profs' | 'loecsen',\n learningPartnerFeedWrite: LearningPartnerFeedWrite, options?: Parameters<typeof request>[1]): Promise<CourseRevisionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<CourseRevisionRead>(getLearningImportPartnerFeedUrl(courseId,provider),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPartnerFeedWrite)\n }\n);}\n\n\nexport const getLearningDispatchEngagementUrl = (deliveryId: number,) => {\n\n\n\n\n return `/learning/integrations/braze/deliveries/${deliveryId}/dispatch`\n}\n\n/**\n * A global integration operator dispatches the existing pending delivery after checking current consent and earlier deliveries for the same profile. Nonpending rows are returned unchanged. The result can be sent, failed, uncertain or cancelled; HTTP 200 alone does not confirm delivery. A timeout or ambiguous provider acknowledgement becomes uncertain and is never blindly retried. Resolve uncertainty using external evidence before redispatching; newer deliveries wait for earlier unresolved rows.\n * @summary Dispatch one pending Braze delivery\n */\nexport const learningDispatchEngagement = async (deliveryId: number, options?: Parameters<typeof request>[1]): Promise<LearningIntegrationDeliveryRead> => {\n\n return request<LearningIntegrationDeliveryRead>(getLearningDispatchEngagementUrl(deliveryId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getLearningResolveEngagementUrl = (deliveryId: number,) => {\n\n\n\n\n return `/learning/integrations/braze/deliveries/${deliveryId}/resolve`\n}\n\n/**\n * A global integration operator records a reviewed provider outcome for a failed, uncertain or stale sending delivery. confirmed_sent marks it sent and clears stored properties; confirmed_not_sent returns it to pending for a later explicit dispatch. A sending claim younger than 120 seconds cannot be resolved. This operation records evidence and never sends to Braze itself.\n * @summary Resolve an uncertain or failed Braze delivery\n */\nexport const learningResolveEngagement = async (deliveryId: number,\n learningIntegrationResolutionWrite: LearningIntegrationResolutionWrite, options?: Parameters<typeof request>[1]): Promise<LearningIntegrationDeliveryRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningIntegrationDeliveryRead>(getLearningResolveEngagementUrl(deliveryId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningIntegrationResolutionWrite)\n }\n);}\n\n\nexport const getLearningBindSalesforceUrl = (tenantId: number,) => {\n\n\n\n\n return `/learning/integrations/salesforce/customers/${tenantId}`\n}\n\n/**\n * A global commercial operator maps one customer tenant to an exact Salesforce Account, community, catalogue and exclusive institution learning agreement. Repeating the same identity can update isActive and clockZone; moving an already bound identity or agreement returns 409. clockZone is the reviewed IANA source timezone used to interpret source access dates. Support impersonation and dependent profiles are refused. Returns 204 with no response body.\n * @summary Bind a reviewed Salesforce customer identity\n */\nexport const learningBindSalesforce = async (tenantId: number,\n learningSalesforceBindingWrite: LearningSalesforceBindingWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningBindSalesforceUrl(tenantId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningSalesforceBindingWrite)\n }\n);}\n\n\nexport const getLearningEngagementPreferenceUrl = () => {\n\n\n\n\n return `/learning/me/engagement`\n}\n\n/**\n * Return the local engagement consent state without contacting Braze. An absent preference is enabled=false and emailOptIn=null. Null emailOptIn means no explicit email subscription preference was supplied; it is distinct from a confirmed opt-out.\n * @summary Read the current profile's engagement preference\n */\nexport const learningEngagementPreference = async ( options?: Parameters<typeof request>[1]): Promise<LearningEngagementRead> => {\n\n return request<LearningEngagementRead>(getLearningEngagementPreferenceUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getLearningSetEngagementPreferenceUrl = () => {\n\n\n\n\n return `/learning/me/engagement`\n}\n\n/**\n * An independent profile explicitly enables or disables engagement and supplies an optional email opt-in. Enabling queues provider attributes; disabling cancels pending/failed deliveries and queues deletion when previously enabled. Personal email is sent only with emailOptIn=true. The response confirms local consent storage, not provider delivery. Repeating unchanged preferences queues no duplicate update. Support impersonation and dependent profiles are refused.\n * @summary Set engagement consent and email preference\n */\nexport const learningSetEngagementPreference = async (learningEngagementWrite: LearningEngagementWrite, options?: Parameters<typeof request>[1]): Promise<LearningEngagementRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningEngagementRead>(getLearningSetEngagementPreferenceUrl(),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningEngagementWrite)\n }\n);}\n\n\nexport const getLearningLinkPartnerIdentityUrl = (bindingKey: string,) => {\n\n\n\n\n return `/learning/me/integrations/sso/${bindingKey}/link`\n}\n\n/**\n * An already authenticated independent profile presents a one-use partner proof for a reviewed bindingKey. The configured CAS, Wizbii or Iguana protocol verifies the proof before linking the identity and bounded catalogue membership. Wizbii also requires username. This endpoint returns membership, not an OAuth token or a seamless login redirect. It cannot select another beneficiary, replace a revoked membership, or claim an identity linked to someone else. A stronger login with entitlement-change authority is required; support impersonation is refused. Proof replay is blocked for 24 hours.\n * @summary Link a verified partner identity to the current profile\n */\nexport const learningLinkPartnerIdentity = async (bindingKey: string,\n learningSsoProofWrite: LearningSsoProofWrite, options?: Parameters<typeof request>[1]): Promise<LearningContractMemberRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningContractMemberRead>(getLearningLinkPartnerIdentityUrl(bindingKey),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningSsoProofWrite)\n }\n);}\n\n\nexport const getLearningSalesforceWebhookUrl = () => {\n\n\n\n\n return `/learning/webhooks/salesforce`\n}\n\n/**\n * Accept a SOAP XML Account notification batch up to 1 MiB with 1–100 unique notification IDs. OrganizationId and EnterpriseUrl must exactly match the configured source. Salesforce Send Session ID must be enabled: the server verifies that session, then fetches authoritative Account snapshots before updating only reviewed customer bindings. Embedded notification fields do not themselves grant authority. Replay receipts prevent conflicting reuse; unknown bindings or ambiguous source data require review. Successful processing returns the Salesforce text/xml Ack envelope. The synthetic session below is a transport fixture and cannot authenticate against a real source.\n * @summary Receive a verified Salesforce SOAP notification\n */\nexport const learningSalesforceWebhook = async (learningSalesforceWebhookBody: string, options?: Parameters<typeof request>[1]): Promise<string> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<string>(getLearningSalesforceWebhookUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'text/xml', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningSalesforceWebhookBody)\n }\n);}\n\n\nexport const getLearningTypeformWebhookUrl = () => {\n\n\n\n\n return `/learning/webhooks/typeform`\n}\n\n/**\n * Verify typeform-signature as sha256= followed by base64 HMAC-SHA256 of the exact raw request bytes using the configured shared secret. This callback authenticates the provider signature, not a user bearer token. form_response.hidden.mozaik_token must be the existing opaque 43-character invitation; it binds the profile, course, tenant and progress. The configured form ID and exactly one integer answer for the configured rating field are required; at most 100 answers and 1 MiB of raw body are accepted. Only configured text comment fields are collected. First acceptance consumes the invitation; an identical normalized response token/body retry is idempotent, a changed response conflicts, and an unconsumed expired invitation returns 410. Success returns no body.\n * @summary Accept a signed Typeform course survey\n */\nexport const learningTypeformWebhook = async (learningTypeformWebhookBody: LearningTypeformWebhookBody, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningTypeformWebhookUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningTypeformWebhookBody)\n }\n);}\n\n\n"],"mappings":";;;AAsBA,MAAa,mCAAmC,UAC5C,aAA+D;CAKjE,OAAO,4BAA4B,SAAS,WAAW;AACzD;;;;;AAMA,MAAa,4BAA4B,OAAO,UAC5C,UACA,0BAAoD,YAAyE;CAE7H,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAA4B,gCAAgC,UAAS,QAAQ,GAClF;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;E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