@learnorama/mozaik-sdk 0.19.0-staging.60.1 → 0.20.2-staging.63.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 (310) hide show
  1. package/COURSES.md +18 -1
  2. package/CUSTOMER-ADMIN.md +7 -0
  3. package/CVS-PLAYBACK.md +9 -1
  4. package/FRONTEND-REQUESTS.md +17 -2
  5. package/OFFLINE.md +90 -0
  6. package/PRESS.md +42 -2
  7. package/README.md +7 -4
  8. package/dist/api/account.d.ts +1 -1
  9. package/dist/api/account.js.map +1 -1
  10. package/dist/api/admin-catalogue.d.ts +2 -2
  11. package/dist/api/admin-catalogue.js +1 -1
  12. package/dist/api/admin-catalogue.js.map +1 -1
  13. package/dist/api/admin-consumption.d.ts +1 -1
  14. package/dist/api/admin-consumption.js.map +1 -1
  15. package/dist/api/admin-contracts.d.ts +1 -1
  16. package/dist/api/admin-contracts.js.map +1 -1
  17. package/dist/api/admin-customer.d.ts +19 -2
  18. package/dist/api/admin-customer.js +38 -2
  19. package/dist/api/admin-customer.js.map +1 -1
  20. package/dist/api/admin-desk.d.ts +91 -1
  21. package/dist/api/admin-desk.js +255 -1
  22. package/dist/api/admin-desk.js.map +1 -1
  23. package/dist/api/admin-licenses.d.ts +1 -1
  24. package/dist/api/admin-licenses.js.map +1 -1
  25. package/dist/api/admin-partner-selections.d.ts +1 -1
  26. package/dist/api/admin-partner-selections.js.map +1 -1
  27. package/dist/api/admin-patrons.d.ts +1 -1
  28. package/dist/api/admin-patrons.js.map +1 -1
  29. package/dist/api/admin-reviews.d.ts +1 -1
  30. package/dist/api/admin-reviews.js.map +1 -1
  31. package/dist/api/admin-roles.d.ts +1 -1
  32. package/dist/api/admin-roles.js.map +1 -1
  33. package/dist/api/admin-support.d.ts +1 -1
  34. package/dist/api/admin-support.js.map +1 -1
  35. package/dist/api/admin-tenants.d.ts +1 -1
  36. package/dist/api/admin-tenants.js.map +1 -1
  37. package/dist/api/admin-tutoring.d.ts +1 -1
  38. package/dist/api/admin-tutoring.js.map +1 -1
  39. package/dist/api/admin-vod.d.ts +1 -1
  40. package/dist/api/admin-vod.js.map +1 -1
  41. package/dist/api/auth-device.d.ts +1 -1
  42. package/dist/api/auth-device.js.map +1 -1
  43. package/dist/api/auth.d.ts +1 -1
  44. package/dist/api/auth.js.map +1 -1
  45. package/dist/api/biblio-billing-webhooks.d.ts +1 -1
  46. package/dist/api/biblio-billing-webhooks.js.map +1 -1
  47. package/dist/api/biblio-billing.d.ts +1 -1
  48. package/dist/api/biblio-billing.js.map +1 -1
  49. package/dist/api/biblio-catalogue.d.ts +7 -1
  50. package/dist/api/biblio-catalogue.js +14 -1
  51. package/dist/api/biblio-catalogue.js.map +1 -1
  52. package/dist/api/biblio-home.d.ts +1 -1
  53. package/dist/api/biblio-home.js.map +1 -1
  54. package/dist/api/biblio-learning-author-profiles.d.ts +1 -1
  55. package/dist/api/biblio-learning-author-profiles.js.map +1 -1
  56. package/dist/api/biblio-learning-authoring.d.ts +1 -1
  57. package/dist/api/biblio-learning-authoring.js.map +1 -1
  58. package/dist/api/biblio-learning-editorial.d.ts +1 -1
  59. package/dist/api/biblio-learning-editorial.js.map +1 -1
  60. package/dist/api/biblio-learning-feedback.d.ts +1 -1
  61. package/dist/api/biblio-learning-feedback.js.map +1 -1
  62. package/dist/api/biblio-learning-finance.d.ts +1 -1
  63. package/dist/api/biblio-learning-finance.js.map +1 -1
  64. package/dist/api/biblio-learning-integrations.d.ts +1 -1
  65. package/dist/api/biblio-learning-integrations.js.map +1 -1
  66. package/dist/api/biblio-learning-membership.d.ts +1 -1
  67. package/dist/api/biblio-learning-membership.js.map +1 -1
  68. package/dist/api/biblio-learning.d.ts +1 -1
  69. package/dist/api/biblio-learning.js.map +1 -1
  70. package/dist/api/biblio-library.d.ts +1 -1
  71. package/dist/api/biblio-library.js.map +1 -1
  72. package/dist/api/biblio-nextory.d.ts +1 -1
  73. package/dist/api/biblio-nextory.js.map +1 -1
  74. package/dist/api/biblio-press.d.ts +19 -1
  75. package/dist/api/biblio-press.js +40 -1
  76. package/dist/api/biblio-press.js.map +1 -1
  77. package/dist/api/biblio-search.d.ts +1 -1
  78. package/dist/api/biblio-search.js.map +1 -1
  79. package/dist/api/biblio-telemetry.d.ts +1 -1
  80. package/dist/api/biblio-telemetry.js.map +1 -1
  81. package/dist/api/biblio-youscribe.d.ts +1 -1
  82. package/dist/api/biblio-youscribe.js.map +1 -1
  83. package/dist/api/consumption.d.ts +19 -1
  84. package/dist/api/consumption.js +53 -1
  85. package/dist/api/consumption.js.map +1 -1
  86. package/dist/api/cvs-app.d.ts +1 -1
  87. package/dist/api/cvs-app.js.map +1 -1
  88. package/dist/api/cvs-documents.d.ts +1 -1
  89. package/dist/api/cvs-documents.js.map +1 -1
  90. package/dist/api/cvs-favorites.d.ts +1 -1
  91. package/dist/api/cvs-favorites.js.map +1 -1
  92. package/dist/api/cvs-ils.d.ts +1 -1
  93. package/dist/api/cvs-ils.js.map +1 -1
  94. package/dist/api/cvs-loans.d.ts +7 -1
  95. package/dist/api/cvs-loans.js +27 -1
  96. package/dist/api/cvs-loans.js.map +1 -1
  97. package/dist/api/cvs-payments.d.ts +1 -1
  98. package/dist/api/cvs-payments.js.map +1 -1
  99. package/dist/api/cvs-streaming.d.ts +16 -1
  100. package/dist/api/cvs-streaming.js +43 -1
  101. package/dist/api/cvs-streaming.js.map +1 -1
  102. package/dist/api/index.d.ts +11 -11
  103. package/dist/api/index.js +11 -11
  104. package/dist/api/partner-catalogue.d.ts +39 -5
  105. package/dist/api/partner-catalogue.js +71 -6
  106. package/dist/api/partner-catalogue.js.map +1 -1
  107. package/dist/api/partner-reader-nextory.d.ts +30 -12
  108. package/dist/api/partner-reader-nextory.js +70 -12
  109. package/dist/api/partner-reader-nextory.js.map +1 -1
  110. package/dist/api/partner-reader-youscribe.d.ts +13 -1
  111. package/dist/api/partner-reader-youscribe.js +27 -1
  112. package/dist/api/partner-reader-youscribe.js.map +1 -1
  113. package/dist/api/partner-reading.d.ts +1 -1
  114. package/dist/api/partner-reading.js.map +1 -1
  115. package/dist/api/profiles.d.ts +1 -1
  116. package/dist/api/profiles.js.map +1 -1
  117. package/dist/api/search.d.ts +1 -1
  118. package/dist/api/search.js.map +1 -1
  119. package/dist/api/tutoring-catalogue.d.ts +1 -1
  120. package/dist/api/tutoring-catalogue.js.map +1 -1
  121. package/dist/api/tutoring-chat.d.ts +1 -1
  122. package/dist/api/tutoring-chat.js.map +1 -1
  123. package/dist/api/tutoring-dispatch.d.ts +1 -1
  124. package/dist/api/tutoring-dispatch.js.map +1 -1
  125. package/dist/api/tutoring-practitioner.d.ts +1 -1
  126. package/dist/api/tutoring-practitioner.js.map +1 -1
  127. package/dist/api/tutoring-requests.d.ts +1 -1
  128. package/dist/api/tutoring-requests.js.map +1 -1
  129. package/dist/auth.d.ts +2 -33
  130. package/dist/auth.js +8 -2
  131. package/dist/auth.js.map +1 -1
  132. package/dist/chunks/client2.d.ts +2 -2
  133. package/dist/chunks/connection.d.ts +1 -1
  134. package/dist/chunks/index.d.ts +2005 -700
  135. package/dist/chunks/index2.d.ts +34 -0
  136. package/dist/index.d.ts +3 -3
  137. package/dist/index.js +3 -3
  138. package/dist/index.js.map +1 -1
  139. package/dist/models.d.ts +2 -2
  140. package/dist/models.js +162 -3
  141. package/dist/models.js.map +1 -1
  142. package/dist/offline.d.ts +42 -0
  143. package/dist/offline.js +353 -0
  144. package/dist/offline.js.map +1 -0
  145. package/dist/react/account.d.ts +1 -1
  146. package/dist/react/account.js +1 -1
  147. package/dist/react/account.js.map +1 -1
  148. package/dist/react/admin-catalogue.d.ts +2 -2
  149. package/dist/react/admin-catalogue.js +2 -2
  150. package/dist/react/admin-catalogue.js.map +1 -1
  151. package/dist/react/admin-consumption.d.ts +1 -1
  152. package/dist/react/admin-consumption.js +1 -1
  153. package/dist/react/admin-consumption.js.map +1 -1
  154. package/dist/react/admin-contracts.d.ts +1 -1
  155. package/dist/react/admin-contracts.js +1 -1
  156. package/dist/react/admin-contracts.js.map +1 -1
  157. package/dist/react/admin-customer.d.ts +73 -2
  158. package/dist/react/admin-customer.js +87 -3
  159. package/dist/react/admin-customer.js.map +1 -1
  160. package/dist/react/admin-desk.d.ts +352 -1
  161. package/dist/react/admin-desk.js +536 -2
  162. package/dist/react/admin-desk.js.map +1 -1
  163. package/dist/react/admin-licenses.d.ts +1 -1
  164. package/dist/react/admin-licenses.js +1 -1
  165. package/dist/react/admin-licenses.js.map +1 -1
  166. package/dist/react/admin-partner-selections.d.ts +1 -1
  167. package/dist/react/admin-partner-selections.js +1 -1
  168. package/dist/react/admin-partner-selections.js.map +1 -1
  169. package/dist/react/admin-patrons.d.ts +1 -1
  170. package/dist/react/admin-patrons.js +1 -1
  171. package/dist/react/admin-patrons.js.map +1 -1
  172. package/dist/react/admin-reviews.d.ts +1 -1
  173. package/dist/react/admin-reviews.js +1 -1
  174. package/dist/react/admin-reviews.js.map +1 -1
  175. package/dist/react/admin-roles.d.ts +1 -1
  176. package/dist/react/admin-roles.js +1 -1
  177. package/dist/react/admin-roles.js.map +1 -1
  178. package/dist/react/admin-support.d.ts +1 -1
  179. package/dist/react/admin-support.js +1 -1
  180. package/dist/react/admin-support.js.map +1 -1
  181. package/dist/react/admin-tenants.d.ts +1 -1
  182. package/dist/react/admin-tenants.js +1 -1
  183. package/dist/react/admin-tenants.js.map +1 -1
  184. package/dist/react/admin-tutoring.d.ts +1 -1
  185. package/dist/react/admin-tutoring.js +1 -1
  186. package/dist/react/admin-tutoring.js.map +1 -1
  187. package/dist/react/admin-vod.d.ts +1 -1
  188. package/dist/react/admin-vod.js +1 -1
  189. package/dist/react/admin-vod.js.map +1 -1
  190. package/dist/react/auth-device.d.ts +1 -1
  191. package/dist/react/auth-device.js +1 -1
  192. package/dist/react/auth-device.js.map +1 -1
  193. package/dist/react/auth.d.ts +1 -1
  194. package/dist/react/auth.js +1 -1
  195. package/dist/react/auth.js.map +1 -1
  196. package/dist/react/biblio-billing-webhooks.d.ts +1 -1
  197. package/dist/react/biblio-billing-webhooks.js +1 -1
  198. package/dist/react/biblio-billing-webhooks.js.map +1 -1
  199. package/dist/react/biblio-billing.d.ts +1 -1
  200. package/dist/react/biblio-billing.js +1 -1
  201. package/dist/react/biblio-billing.js.map +1 -1
  202. package/dist/react/biblio-catalogue.d.ts +24 -1
  203. package/dist/react/biblio-catalogue.js +43 -2
  204. package/dist/react/biblio-catalogue.js.map +1 -1
  205. package/dist/react/biblio-home.d.ts +1 -1
  206. package/dist/react/biblio-home.js +1 -1
  207. package/dist/react/biblio-home.js.map +1 -1
  208. package/dist/react/biblio-learning-author-profiles.d.ts +1 -1
  209. package/dist/react/biblio-learning-author-profiles.js +1 -1
  210. package/dist/react/biblio-learning-author-profiles.js.map +1 -1
  211. package/dist/react/biblio-learning-authoring.d.ts +1 -1
  212. package/dist/react/biblio-learning-authoring.js +1 -1
  213. package/dist/react/biblio-learning-authoring.js.map +1 -1
  214. package/dist/react/biblio-learning-editorial.d.ts +1 -1
  215. package/dist/react/biblio-learning-editorial.js +1 -1
  216. package/dist/react/biblio-learning-editorial.js.map +1 -1
  217. package/dist/react/biblio-learning-feedback.d.ts +1 -1
  218. package/dist/react/biblio-learning-feedback.js +1 -1
  219. package/dist/react/biblio-learning-feedback.js.map +1 -1
  220. package/dist/react/biblio-learning-finance.d.ts +1 -1
  221. package/dist/react/biblio-learning-finance.js +1 -1
  222. package/dist/react/biblio-learning-finance.js.map +1 -1
  223. package/dist/react/biblio-learning-integrations.d.ts +1 -1
  224. package/dist/react/biblio-learning-integrations.js +1 -1
  225. package/dist/react/biblio-learning-integrations.js.map +1 -1
  226. package/dist/react/biblio-learning-membership.d.ts +1 -1
  227. package/dist/react/biblio-learning-membership.js +1 -1
  228. package/dist/react/biblio-learning-membership.js.map +1 -1
  229. package/dist/react/biblio-learning.d.ts +1 -1
  230. package/dist/react/biblio-learning.js +1 -1
  231. package/dist/react/biblio-learning.js.map +1 -1
  232. package/dist/react/biblio-library.d.ts +1 -1
  233. package/dist/react/biblio-library.js +1 -1
  234. package/dist/react/biblio-library.js.map +1 -1
  235. package/dist/react/biblio-nextory.d.ts +1 -1
  236. package/dist/react/biblio-nextory.js +1 -1
  237. package/dist/react/biblio-nextory.js.map +1 -1
  238. package/dist/react/biblio-press.d.ts +91 -1
  239. package/dist/react/biblio-press.js +118 -2
  240. package/dist/react/biblio-press.js.map +1 -1
  241. package/dist/react/biblio-search.d.ts +1 -1
  242. package/dist/react/biblio-search.js +1 -1
  243. package/dist/react/biblio-search.js.map +1 -1
  244. package/dist/react/biblio-telemetry.d.ts +1 -1
  245. package/dist/react/biblio-telemetry.js +1 -1
  246. package/dist/react/biblio-telemetry.js.map +1 -1
  247. package/dist/react/biblio-youscribe.d.ts +1 -1
  248. package/dist/react/biblio-youscribe.js +1 -1
  249. package/dist/react/biblio-youscribe.js.map +1 -1
  250. package/dist/react/chat.d.ts +1 -1
  251. package/dist/react/consumption.d.ts +85 -3
  252. package/dist/react/consumption.js +148 -3
  253. package/dist/react/consumption.js.map +1 -1
  254. package/dist/react/cvs-app.d.ts +1 -1
  255. package/dist/react/cvs-app.js +1 -1
  256. package/dist/react/cvs-app.js.map +1 -1
  257. package/dist/react/cvs-documents.d.ts +1 -1
  258. package/dist/react/cvs-documents.js +1 -1
  259. package/dist/react/cvs-documents.js.map +1 -1
  260. package/dist/react/cvs-favorites.d.ts +1 -1
  261. package/dist/react/cvs-favorites.js +1 -1
  262. package/dist/react/cvs-favorites.js.map +1 -1
  263. package/dist/react/cvs-ils.d.ts +1 -1
  264. package/dist/react/cvs-ils.js +1 -1
  265. package/dist/react/cvs-ils.js.map +1 -1
  266. package/dist/react/cvs-loans.d.ts +26 -1
  267. package/dist/react/cvs-loans.js +56 -2
  268. package/dist/react/cvs-loans.js.map +1 -1
  269. package/dist/react/cvs-payments.d.ts +1 -1
  270. package/dist/react/cvs-payments.js +1 -1
  271. package/dist/react/cvs-payments.js.map +1 -1
  272. package/dist/react/cvs-streaming.d.ts +62 -1
  273. package/dist/react/cvs-streaming.js +97 -2
  274. package/dist/react/cvs-streaming.js.map +1 -1
  275. package/dist/react/index.d.ts +11 -11
  276. package/dist/react/index.js +11 -11
  277. package/dist/react/partner-catalogue.d.ts +121 -6
  278. package/dist/react/partner-catalogue.js +147 -7
  279. package/dist/react/partner-catalogue.js.map +1 -1
  280. package/dist/react/partner-reader-nextory.d.ts +69 -12
  281. package/dist/react/partner-reader-nextory.js +128 -13
  282. package/dist/react/partner-reader-nextory.js.map +1 -1
  283. package/dist/react/partner-reader-youscribe.d.ts +57 -1
  284. package/dist/react/partner-reader-youscribe.js +80 -2
  285. package/dist/react/partner-reader-youscribe.js.map +1 -1
  286. package/dist/react/partner-reading.d.ts +1 -1
  287. package/dist/react/partner-reading.js +1 -1
  288. package/dist/react/partner-reading.js.map +1 -1
  289. package/dist/react/profiles.d.ts +1 -1
  290. package/dist/react/profiles.js +1 -1
  291. package/dist/react/profiles.js.map +1 -1
  292. package/dist/react/search.d.ts +1 -1
  293. package/dist/react/search.js +1 -1
  294. package/dist/react/search.js.map +1 -1
  295. package/dist/react/tutoring-catalogue.d.ts +1 -1
  296. package/dist/react/tutoring-catalogue.js +1 -1
  297. package/dist/react/tutoring-catalogue.js.map +1 -1
  298. package/dist/react/tutoring-chat.d.ts +1 -1
  299. package/dist/react/tutoring-chat.js +1 -1
  300. package/dist/react/tutoring-chat.js.map +1 -1
  301. package/dist/react/tutoring-dispatch.d.ts +1 -1
  302. package/dist/react/tutoring-dispatch.js +1 -1
  303. package/dist/react/tutoring-dispatch.js.map +1 -1
  304. package/dist/react/tutoring-practitioner.d.ts +1 -1
  305. package/dist/react/tutoring-practitioner.js +1 -1
  306. package/dist/react/tutoring-practitioner.js.map +1 -1
  307. package/dist/react/tutoring-requests.d.ts +1 -1
  308. package/dist/react/tutoring-requests.js +1 -1
  309. package/dist/react/tutoring-requests.js.map +1 -1
  310. package/package.json +13 -8
@@ -1 +1 @@
1
- {"version":3,"file":"biblio-press.js","names":[],"sources":["../../src/api/biblio-press/biblio-press.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.19.0\n */\nimport type {\n ListPressArticlesParams,\n ListPressTitlesParams,\n ListPressTopicsParams,\n PressArticleAccessRead,\n PressArticlePage,\n PressArticleRead,\n PressFacetsRead,\n PressFeedRead,\n PressIssuePage,\n PressReaderAccessRead,\n PressReaderAccessWrite,\n PressReviewRead,\n PressTitlePage,\n PressTitleRead,\n PressTopicListRead,\n PressVisitRead,\n PressVisitWrite,\n PressVoucherAccessRead,\n PressVoucherListRead,\n PressVoucherStatusRead,\n ReadIssuesParams,\n ReadPressFeedParams,\n ReadPressReviewParams,\n ReaderPreferencesRead,\n ReaderPreferencesWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getUnfollowPressTopicUrl = (topicId: number,) => {\n\n\n\n\n return `/biblio/me/press-topics/${topicId}`\n}\n\n/**\n * Remove this profile's follow even if the subject is no longer accessible.\n * @summary Unfollow Press Topic\n */\nexport const unfollowPressTopic = async (topicId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getUnfollowPressTopicUrl(topicId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getFollowPressTopicUrl = (topicId: number,) => {\n\n\n\n\n return `/biblio/me/press-topics/${topicId}`\n}\n\n/**\n * Follow an accessible subject for this profile; idempotent.\n * @summary Follow Press Topic\n */\nexport const followPressTopic = async (topicId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getFollowPressTopicUrl(topicId),\n {\n ...options,\n method: 'PUT'\n\n\n }\n);}\n\n\nexport const getListPressArticlesUrl = (params?: ListPressArticlesParams,) => {\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 ? `/biblio/press-articles?${stringifiedParams}` : `/biblio/press-articles`\n}\n\n/**\n * Local article metadata, filtered by current publication rights before counts and paging.\n *\n * Publication variants in different bouquets remain one article. Results use\n * issueDate descending, then articleId descending; full text stays in the\n * licensed reader. This request performs no provider call or allocation.\n * @summary List Press Articles\n */\nexport const listPressArticles = async (params?: ListPressArticlesParams, options?: Parameters<typeof request>[1]): Promise<PressArticlePage> => {\n\n return request<PressArticlePage>(getListPressArticlesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPressArticleUrl = (articleId: number,) => {\n\n\n\n\n return `/biblio/press-articles/${articleId}`\n}\n\n/**\n * One entitled article's headline/summary metadata; unknown and forbidden return 404.\n * @summary Read Press Article\n */\nexport const readPressArticle = async (articleId: number, options?: Parameters<typeof request>[1]): Promise<PressArticleRead> => {\n\n return request<PressArticleRead>(getReadPressArticleUrl(articleId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenPressArticleReaderUrl = (articleId: number,) => {\n\n\n\n\n return `/biblio/press-articles/${articleId}/reader-access`\n}\n\n/**\n * Open exactly this stored article, resolving provider IDs and issue date server-side.\n *\n * Creates licensed reader access only on this explicit action. Keep the returned\n * central consumption lease alive with PUT /consumption/{eventId}, then close it.\n * An idempotency key cannot be reused for another article or an issue-level read.\n * @summary Open Press Article Reader\n */\nexport const openPressArticleReader = async (articleId: number, options?: Parameters<typeof request>[1]): Promise<PressArticleAccessRead> => {\n\n return request<PressArticleAccessRead>(getOpenPressArticleReaderUrl(articleId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getReadPressFacetsUrl = () => {\n\n\n\n\n return `/biblio/press-facets`\n}\n\n/**\n * Languages and explicitly mapped regions with accessible publication counts.\n * @summary Read Press Facets\n */\nexport const readPressFacets = async ( options?: Parameters<typeof request>[1]): Promise<PressFacetsRead> => {\n\n return request<PressFacetsRead>(getReadPressFacetsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPressFeedUrl = (params?: ReadPressFeedParams,) => {\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 ? `/biblio/press-feed?${stringifiedParams}` : `/biblio/press-feed`\n}\n\n/**\n * Saved accessible publications first, then discovery by theme.\n *\n * Each section carries its first page, pagination metadata and a titlesUrl\n * using the same filters. Unavailable titles never reappear through favourites.\n * @summary Read Press Feed\n */\nexport const readPressFeed = async (params?: ReadPressFeedParams, options?: Parameters<typeof request>[1]): Promise<PressFeedRead> => {\n\n return request<PressFeedRead>(getReadPressFeedUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListPressPartnerAccessUrl = () => {\n\n\n\n\n return `/biblio/press-partners`\n}\n\n/**\n * Eligible Le Monde/L’Équipe/Le Figaro offers and current allocation status.\n *\n * No code is allocated, revealed, redeemed or sent to a publisher by this read.\n * Allocation and publisher-confirmed activation are separate dates.\n * @summary List Press Partner Access\n */\nexport const listPressPartnerAccess = async ( options?: Parameters<typeof request>[1]): Promise<PressVoucherListRead> => {\n\n return request<PressVoucherListRead>(getListPressPartnerAccessUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPressPartnerAccessUrl = (provider: 'lemonde' | 'lequipe' | 'lefigaro',) => {\n\n\n\n\n return `/biblio/press-partners/${provider}`\n}\n\n/**\n * Read this household's allocation/renewal state without exposing the code.\n * @summary Read Press Partner Access\n */\nexport const readPressPartnerAccess = async (provider: 'lemonde' | 'lequipe' | 'lefigaro', options?: Parameters<typeof request>[1]): Promise<PressVoucherStatusRead> => {\n\n return request<PressVoucherStatusRead>(getReadPressPartnerAccessUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getClaimPressPartnerCodeUrl = (provider: 'lemonde' | 'lequipe' | 'lefigaro',) => {\n\n\n\n\n return `/biblio/press-partners/${provider}/code`\n}\n\n/**\n * Return the household's reusable code or allocate exactly one from eligible stock.\n *\n * This is the explicit code-opening action; never prefetch it. Concurrent\n * members of the same household receive the same code. Renewal is based on\n * the publisher-confirmed activation, not an assumed allocation date. The\n * response contains private credentials and must not be logged or cached.\n * This records an allocation audit, not an invented newspaper-reading session.\n * @summary Claim Press Partner Code\n */\nexport const claimPressPartnerCode = async (provider: 'lemonde' | 'lequipe' | 'lefigaro', options?: Parameters<typeof request>[1]): Promise<PressVoucherAccessRead> => {\n\n return request<PressVoucherAccessRead>(getClaimPressPartnerCodeUrl(provider),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getReadPressReviewUrl = (params?: ReadPressReviewParams,) => {\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 ? `/biblio/press-review?${stringifiedParams}` : `/biblio/press-review`\n}\n\n/**\n * Article headlines, favorite publications and related themes with stable page links.\n *\n * This is the article-level review. /press-feed continues to return publication\n * cards. Quality/selection rules and per-publication caps run before pagination.\n * @summary Read Press Review\n */\nexport const readPressReview = async (params?: ReadPressReviewParams, options?: Parameters<typeof request>[1]): Promise<PressReviewRead> => {\n\n return request<PressReviewRead>(getReadPressReviewUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getAcknowledgePressReviewUrl = () => {\n\n\n\n\n return `/biblio/press-review/visits`\n}\n\n/**\n * Acknowledge the displayed review's generatedAt. GET/prefetch never advances it.\n * @summary Acknowledge Press Review\n */\nexport const acknowledgePressReview = async (pressVisitWrite: PressVisitWrite, options?: Parameters<typeof request>[1]): Promise<PressVisitRead> => {\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<PressVisitRead>(getAcknowledgePressReviewUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVisitWrite)\n }\n);}\n\n\nexport const getListPressTitlesUrl = (params?: ListPressTitlesParams,) => {\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 ? `/biblio/press-titles?${stringifiedParams}` : `/biblio/press-titles`\n}\n\n/**\n * One accessible catalogue entry per publication, with profile selection.\n *\n * contentId is the key for favourites, details and /issues. publicationId is\n * the separate provider identifier. Search is a case-insensitive literal title\n * substring. Ordering is alphabetical with a contentId tie-break.\n * @summary List Press Titles\n */\nexport const listPressTitles = async (params?: ListPressTitlesParams, options?: Parameters<typeof request>[1]): Promise<PressTitlePage> => {\n\n return request<PressTitlePage>(getListPressTitlesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPressTitleUrl = (contentId: number,) => {\n\n\n\n\n return `/biblio/press-titles/${contentId}`\n}\n\n/**\n * Publication metadata; an unavailable or unknown title returns 404.\n * @summary Read Press Title\n */\nexport const readPressTitle = async (contentId: number, options?: Parameters<typeof request>[1]): Promise<PressTitleRead> => {\n\n return request<PressTitleRead>(getReadPressTitleUrl(contentId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadIssuesUrl = (contentId: number,\n params?: ReadIssuesParams,) => {\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 ? `/biblio/press-titles/${contentId}/issues?${stringifiedParams}` : `/biblio/press-titles/${contentId}/issues`\n}\n\n/**\n * Entitled publication editions and covers. Never creates reader access.\n * @summary Read Issues\n */\nexport const readIssues = async (contentId: number,\n params?: ReadIssuesParams, options?: Parameters<typeof request>[1]): Promise<PressIssuePage> => {\n\n return request<PressIssuePage>(getReadIssuesUrl(contentId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenReaderUrl = (contentId: number,) => {\n\n\n\n\n return `/biblio/press-titles/${contentId}/reader-access`\n}\n\n/**\n * Open a PressReader edition under this profile's current content grant.\n *\n * URL and token authorize gifted access, not the deployment catalogue API.\n * Keep lease.eventId alive with PUT /consumption/{id}; close with DELETE.\n * The date selects an edition; a missing edition is reported by PressReader.\n * @summary Open Reader\n */\nexport const openReader = async (contentId: number,\n pressReaderAccessWrite: PressReaderAccessWrite, options?: Parameters<typeof request>[1]): Promise<PressReaderAccessRead> => {\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<PressReaderAccessRead>(getOpenReaderUrl(contentId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressReaderAccessWrite)\n }\n);}\n\n\nexport const getListPressTopicsUrl = (params?: ListPressTopicsParams,) => {\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 ? `/biblio/press-topics?${stringifiedParams}` : `/biblio/press-topics`\n}\n\n/**\n * Supplied article subjects and entitled counts since an inclusive issue day.\n *\n * These are provider named entities, distinct from publication catalogue\n * themes. No classification or translation is invented from a headline.\n * @summary List Press Topics\n */\nexport const listPressTopics = async (params?: ListPressTopicsParams, options?: Parameters<typeof request>[1]): Promise<PressTopicListRead> => {\n\n return request<PressTopicListRead>(getListPressTopicsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadReadingPreferencesUrl = () => {\n\n\n\n\n return `/me/reading-preferences`\n}\n\n/**\n * Profile-selected language/press region; no location inferred from IP.\n * @summary Read Reading Preferences\n */\nexport const readReadingPreferences = async ( options?: Parameters<typeof request>[1]): Promise<ReaderPreferencesRead> => {\n\n return request<ReaderPreferencesRead>(getReadReadingPreferencesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getUpdateReadingPreferencesUrl = () => {\n\n\n\n\n return `/me/reading-preferences`\n}\n\n/**\n * @summary Update Reading Preferences\n */\nexport const updateReadingPreferences = async (readerPreferencesWrite: ReaderPreferencesWrite, options?: Parameters<typeof request>[1]): Promise<ReaderPreferencesRead> => {\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<ReaderPreferencesRead>(getUpdateReadingPreferencesUrl(),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(readerPreferencesWrite)\n }\n);}\n\n\n"],"mappings":";;;AAqCA,MAAa,4BAA4B,YAAqB;CAK5D,OAAO,2BAA2B;AACpC;;;;;AAMA,MAAa,qBAAqB,OAAO,SAAiB,YAA2D;CAEnH,OAAO,QAAc,yBAAyB,OAAO,GACrD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,0BAA0B,YAAqB;CAK1D,OAAO,2BAA2B;AACpC;;;;;AAMA,MAAa,mBAAmB,OAAO,SAAiB,YAA2D;CAEjH,OAAO,QAAc,uBAAuB,OAAO,GACnD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B,WAAsC;CAC5E,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,0BAA0B,sBAAsB;AACxF;;;;;;;;;AAUA,MAAa,oBAAoB,OAAO,QAAkC,YAAuE;CAE/I,OAAO,QAA0B,wBAAwB,MAAM,GAC/D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,0BAA0B,cAAuB;CAK5D,OAAO,0BAA0B;AACnC;;;;;AAMA,MAAa,mBAAmB,OAAO,WA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F;AAAE;AAGF,MAAa,uCAAuC;CAKlD,OAAO;AACT;;;;AAKA,MAAa,2BAA2B,OAAO,wBAAgD,YAA4E;CAEvK,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,QAA+B,+BAA+B,GACnE;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,sBAAsB;CAC7C,CACF;AAAE"}
1
+ {"version":3,"file":"biblio-press.js","names":[],"sources":["../../src/api/biblio-press/biblio-press.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.20.2\n */\nimport type {\n ListPressArticlesParams,\n ListPressTitlesParams,\n ListPressTopicsParams,\n OfflineVerificationKeyRead,\n PressArticleAccessRead,\n PressArticlePage,\n PressArticleRead,\n PressDownloadAccessRead,\n PressDownloadRead,\n PressFacetsRead,\n PressFeedRead,\n PressIssuePage,\n PressReaderAccessRead,\n PressReaderAccessWrite,\n PressReviewRead,\n PressTitlePage,\n PressTitleRead,\n PressTopicListRead,\n PressVisitRead,\n PressVisitWrite,\n PressVoucherAccessRead,\n PressVoucherListRead,\n PressVoucherStatusRead,\n ReadIssuesParams,\n ReadPressFeedParams,\n ReadPressReviewParams,\n ReaderPreferencesRead,\n ReaderPreferencesWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getUnfollowPressTopicUrl = (topicId: number,) => {\n\n\n\n\n return `/biblio/me/press-topics/${topicId}`\n}\n\n/**\n * Remove this profile's follow even if the subject is no longer accessible.\n * @summary Unfollow Press Topic\n */\nexport const unfollowPressTopic = async (topicId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getUnfollowPressTopicUrl(topicId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getFollowPressTopicUrl = (topicId: number,) => {\n\n\n\n\n return `/biblio/me/press-topics/${topicId}`\n}\n\n/**\n * Follow an accessible subject for this profile; idempotent.\n * @summary Follow Press Topic\n */\nexport const followPressTopic = async (topicId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getFollowPressTopicUrl(topicId),\n {\n ...options,\n method: 'PUT'\n\n\n }\n);}\n\n\nexport const getListPressArticlesUrl = (params?: ListPressArticlesParams,) => {\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 ? `/biblio/press-articles?${stringifiedParams}` : `/biblio/press-articles`\n}\n\n/**\n * Local article metadata, filtered by current publication rights before counts and paging.\n *\n * Publication variants in different bouquets remain one article. Results use\n * issueDate descending, then articleId descending; full text stays in the\n * licensed reader. This request performs no provider call or allocation.\n * @summary List Press Articles\n */\nexport const listPressArticles = async (params?: ListPressArticlesParams, options?: Parameters<typeof request>[1]): Promise<PressArticlePage> => {\n\n return request<PressArticlePage>(getListPressArticlesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPressArticleUrl = (articleId: number,) => {\n\n\n\n\n return `/biblio/press-articles/${articleId}`\n}\n\n/**\n * One entitled article's headline/summary metadata; unknown and forbidden return 404.\n * @summary Read Press Article\n */\nexport const readPressArticle = async (articleId: number, options?: Parameters<typeof request>[1]): Promise<PressArticleRead> => {\n\n return request<PressArticleRead>(getReadPressArticleUrl(articleId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenPressArticleReaderUrl = (articleId: number,) => {\n\n\n\n\n return `/biblio/press-articles/${articleId}/reader-access`\n}\n\n/**\n * Open exactly this stored article, resolving provider IDs and issue date server-side.\n *\n * Creates licensed reader access only on this explicit action. Keep the returned\n * central consumption lease alive with PUT /consumption/{eventId}, then close it.\n * An idempotency key cannot be reused for another article or an issue-level read.\n * @summary Open Press Article Reader\n */\nexport const openPressArticleReader = async (articleId: number, options?: Parameters<typeof request>[1]): Promise<PressArticleAccessRead> => {\n\n return request<PressArticleAccessRead>(getOpenPressArticleReaderUrl(articleId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getReadPressDownloadVerificationKeyUrl = () => {\n\n\n\n\n return `/biblio/press-download-verification-key`\n}\n\n/**\n * Public Ed25519 key for this environment's device-bound press permits.\n * @summary Read Press Download Verification Key\n */\nexport const readPressDownloadVerificationKey = async ( options?: Parameters<typeof request>[1]): Promise<OfflineVerificationKeyRead> => {\n\n return request<OfflineVerificationKeyRead>(getReadPressDownloadVerificationKeyUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPressFacetsUrl = () => {\n\n\n\n\n return `/biblio/press-facets`\n}\n\n/**\n * Languages and explicitly mapped regions with accessible publication counts.\n * @summary Read Press Facets\n */\nexport const readPressFacets = async ( options?: Parameters<typeof request>[1]): Promise<PressFacetsRead> => {\n\n return request<PressFacetsRead>(getReadPressFacetsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPressFeedUrl = (params?: ReadPressFeedParams,) => {\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 ? `/biblio/press-feed?${stringifiedParams}` : `/biblio/press-feed`\n}\n\n/**\n * Saved accessible publications first, then discovery by theme.\n *\n * Each section carries its first page, pagination metadata and a titlesUrl\n * using the same filters. Unavailable titles never reappear through favourites.\n * @summary Read Press Feed\n */\nexport const readPressFeed = async (params?: ReadPressFeedParams, options?: Parameters<typeof request>[1]): Promise<PressFeedRead> => {\n\n return request<PressFeedRead>(getReadPressFeedUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListPressPartnerAccessUrl = () => {\n\n\n\n\n return `/biblio/press-partners`\n}\n\n/**\n * Eligible Le Monde/L’Équipe/Le Figaro offers and current allocation status.\n *\n * No code is allocated, revealed, redeemed or sent to a publisher by this read.\n * Allocation and publisher-confirmed activation are separate dates.\n * @summary List Press Partner Access\n */\nexport const listPressPartnerAccess = async ( options?: Parameters<typeof request>[1]): Promise<PressVoucherListRead> => {\n\n return request<PressVoucherListRead>(getListPressPartnerAccessUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPressPartnerAccessUrl = (provider: 'lemonde' | 'lequipe' | 'lefigaro',) => {\n\n\n\n\n return `/biblio/press-partners/${provider}`\n}\n\n/**\n * Read this household's allocation/renewal state without exposing the code.\n * @summary Read Press Partner Access\n */\nexport const readPressPartnerAccess = async (provider: 'lemonde' | 'lequipe' | 'lefigaro', options?: Parameters<typeof request>[1]): Promise<PressVoucherStatusRead> => {\n\n return request<PressVoucherStatusRead>(getReadPressPartnerAccessUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getClaimPressPartnerCodeUrl = (provider: 'lemonde' | 'lequipe' | 'lefigaro',) => {\n\n\n\n\n return `/biblio/press-partners/${provider}/code`\n}\n\n/**\n * Return the household's reusable code or allocate exactly one from eligible stock.\n *\n * This is the explicit code-opening action; never prefetch it. Concurrent\n * members of the same household receive the same code. Renewal is based on\n * the publisher-confirmed activation, not an assumed allocation date. The\n * response contains private credentials and must not be logged or cached.\n * This records an allocation audit, not an invented newspaper-reading session.\n * @summary Claim Press Partner Code\n */\nexport const claimPressPartnerCode = async (provider: 'lemonde' | 'lequipe' | 'lefigaro', options?: Parameters<typeof request>[1]): Promise<PressVoucherAccessRead> => {\n\n return request<PressVoucherAccessRead>(getClaimPressPartnerCodeUrl(provider),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getReadPressReviewUrl = (params?: ReadPressReviewParams,) => {\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 ? `/biblio/press-review?${stringifiedParams}` : `/biblio/press-review`\n}\n\n/**\n * Article headlines, favorite publications and related themes with stable page links.\n *\n * This is the article-level review. /press-feed continues to return publication\n * cards. Quality/selection rules and per-publication caps run before pagination.\n * @summary Read Press Review\n */\nexport const readPressReview = async (params?: ReadPressReviewParams, options?: Parameters<typeof request>[1]): Promise<PressReviewRead> => {\n\n return request<PressReviewRead>(getReadPressReviewUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getAcknowledgePressReviewUrl = () => {\n\n\n\n\n return `/biblio/press-review/visits`\n}\n\n/**\n * Acknowledge the displayed review's generatedAt. GET/prefetch never advances it.\n * @summary Acknowledge Press Review\n */\nexport const acknowledgePressReview = async (pressVisitWrite: PressVisitWrite, options?: Parameters<typeof request>[1]): Promise<PressVisitRead> => {\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<PressVisitRead>(getAcknowledgePressReviewUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVisitWrite)\n }\n);}\n\n\nexport const getListPressTitlesUrl = (params?: ListPressTitlesParams,) => {\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 ? `/biblio/press-titles?${stringifiedParams}` : `/biblio/press-titles`\n}\n\n/**\n * One accessible catalogue entry per publication, with profile selection.\n *\n * contentId is the key for favourites, details and /issues. publicationId is\n * the separate provider identifier. Search is a case-insensitive literal title\n * substring. Ordering is alphabetical with a contentId tie-break.\n * @summary List Press Titles\n */\nexport const listPressTitles = async (params?: ListPressTitlesParams, options?: Parameters<typeof request>[1]): Promise<PressTitlePage> => {\n\n return request<PressTitlePage>(getListPressTitlesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPressTitleUrl = (contentId: number,) => {\n\n\n\n\n return `/biblio/press-titles/${contentId}`\n}\n\n/**\n * Publication metadata; an unavailable or unknown title returns 404.\n * @summary Read Press Title\n */\nexport const readPressTitle = async (contentId: number, options?: Parameters<typeof request>[1]): Promise<PressTitleRead> => {\n\n return request<PressTitleRead>(getReadPressTitleUrl(contentId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadIssuesUrl = (contentId: number,\n params?: ReadIssuesParams,) => {\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 ? `/biblio/press-titles/${contentId}/issues?${stringifiedParams}` : `/biblio/press-titles/${contentId}/issues`\n}\n\n/**\n * Entitled publication editions and covers. Never creates reader access.\n * @summary Read Issues\n */\nexport const readIssues = async (contentId: number,\n params?: ReadIssuesParams, options?: Parameters<typeof request>[1]): Promise<PressIssuePage> => {\n\n return request<PressIssuePage>(getReadIssuesUrl(contentId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPressDownloadAccessUrl = (contentId: number,\n issueDate: string,) => {\n\n\n\n\n return `/biblio/press-titles/${contentId}/issues/${issueDate}/download-access`\n}\n\n/**\n * Offline eligibility for a dated issue. No licence or consumption is created.\n * @summary Read Press Download Access\n */\nexport const readPressDownloadAccess = async (contentId: number,\n issueDate: string, options?: Parameters<typeof request>[1]): Promise<PressDownloadAccessRead> => {\n\n return request<PressDownloadAccessRead>(getReadPressDownloadAccessUrl(contentId,issueDate),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getAcquirePressDownloadUrl = (contentId: number,\n issueDate: string,) => {\n\n\n\n\n return `/biblio/press-titles/${contentId}/issues/${issueDate}/downloads`\n}\n\n/**\n * Acquire one issue for the native SDK. No online lease or reading debit.\n * @summary Acquire Press Download\n */\nexport const acquirePressDownload = async (contentId: number,\n issueDate: string, options?: Parameters<typeof request>[1]): Promise<PressDownloadRead> => {\n\n return request<PressDownloadRead>(getAcquirePressDownloadUrl(contentId,issueDate),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getOpenReaderUrl = (contentId: number,) => {\n\n\n\n\n return `/biblio/press-titles/${contentId}/reader-access`\n}\n\n/**\n * Open a PressReader edition under this profile's current content grant.\n *\n * URL and token authorize gifted access, not the deployment catalogue API.\n * Keep lease.eventId alive with PUT /consumption/{id}; close with DELETE.\n * The date selects an edition; a missing edition is reported by PressReader.\n * @summary Open Reader\n */\nexport const openReader = async (contentId: number,\n pressReaderAccessWrite: PressReaderAccessWrite, options?: Parameters<typeof request>[1]): Promise<PressReaderAccessRead> => {\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<PressReaderAccessRead>(getOpenReaderUrl(contentId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressReaderAccessWrite)\n }\n);}\n\n\nexport const getListPressTopicsUrl = (params?: ListPressTopicsParams,) => {\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 ? `/biblio/press-topics?${stringifiedParams}` : `/biblio/press-topics`\n}\n\n/**\n * Supplied article subjects and entitled counts since an inclusive issue day.\n *\n * These are provider named entities, distinct from publication catalogue\n * themes. No classification or translation is invented from a headline.\n * @summary List Press Topics\n */\nexport const listPressTopics = async (params?: ListPressTopicsParams, options?: Parameters<typeof request>[1]): Promise<PressTopicListRead> => {\n\n return request<PressTopicListRead>(getListPressTopicsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadReadingPreferencesUrl = () => {\n\n\n\n\n return `/me/reading-preferences`\n}\n\n/**\n * Profile-selected language/press region; no location inferred from IP.\n * @summary Read Reading Preferences\n */\nexport const readReadingPreferences = async ( options?: Parameters<typeof request>[1]): Promise<ReaderPreferencesRead> => {\n\n return request<ReaderPreferencesRead>(getReadReadingPreferencesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getUpdateReadingPreferencesUrl = () => {\n\n\n\n\n return `/me/reading-preferences`\n}\n\n/**\n * @summary Update Reading Preferences\n */\nexport const updateReadingPreferences = async (readerPreferencesWrite: ReaderPreferencesWrite, options?: Parameters<typeof request>[1]): Promise<ReaderPreferencesRead> => {\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<ReaderPreferencesRead>(getUpdateReadingPreferencesUrl(),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(readerPreferencesWrite)\n }\n);}\n\n\n"],"mappings":";;;AAwCA,MAAa,4BAA4B,YAAqB;CAK5D,OAAO,2BAA2B;AACpC;;;;;AAMA,MAAa,qBAAqB,OAAO,SAAiB,YAA2D;CAEnH,OAAO,QAAc,yBAAyB,OAAO,GACrD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,0BAA0B,YAAqB;CAK1D,OAAO,2BAA2B;AACpC;;;;;AAMA,MAAa,mBAAmB,OAAO,SAAiB,YAA2D;CAEjH,OAAO,QAAc,uBAAuB,OAAO,GACnD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B,WAAsC;CAC5E,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,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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,QAA+B,+BAA+B,GACnE;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,sBAAsB;CAC7C,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { At as SearchParams, kt as SearchResultsRead } from "../chunks/index.js";
2
+ import { Mt as SearchResultsRead, Nt as SearchParams } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/biblio-search/biblio-search.d.ts
5
5
  export declare const getSearchUrl: (params?: SearchParams) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"biblio-search.js","names":[],"sources":["../../src/api/biblio-search/biblio-search.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.19.0\n */\nimport type {\n SearchParams,\n SearchResultsRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getSearchUrl = (params?: SearchParams,) => {\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 ? `/biblio/search?${stringifiedParams}` : `/biblio/search`\n}\n\n/**\n * Search Biblio; popular query suggestions obey the same type and exact filter.\n * @summary Search\n */\nexport const search = async (params?: SearchParams, options?: Parameters<typeof request>[1]): Promise<SearchResultsRead> => {\n\n return request<SearchResultsRead>(getSearchUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAcA,MAAa,gBAAgB,WAA2B;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,kBAAkB,sBAAsB;AAChF;;;;;AAMA,MAAa,SAAS,OAAO,QAAuB,YAAwE;CAE1H,OAAO,QAA2B,aAAa,MAAM,GACrD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"biblio-search.js","names":[],"sources":["../../src/api/biblio-search/biblio-search.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.20.2\n */\nimport type {\n SearchParams,\n SearchResultsRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getSearchUrl = (params?: SearchParams,) => {\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 ? `/biblio/search?${stringifiedParams}` : `/biblio/search`\n}\n\n/**\n * Search Biblio; popular query suggestions obey the same type and exact filter.\n * @summary Search\n */\nexport const search = async (params?: SearchParams, options?: Parameters<typeof request>[1]): Promise<SearchResultsRead> => {\n\n return request<SearchResultsRead>(getSearchUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAcA,MAAa,gBAAgB,WAA2B;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,kBAAkB,sBAAsB;AAChF;;;;;AAMA,MAAa,SAAS,OAAO,QAAuB,YAAwE;CAE1H,OAAO,QAA2B,aAAa,MAAM,GACrD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { Qt as ReadingSessionRead, Zt as ReadingSessionWrite } from "../chunks/index.js";
2
+ import { en as ReadingSessionWrite, tn as ReadingSessionRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/biblio-telemetry/biblio-telemetry.d.ts
5
5
  export declare const getRecordReadingSessionUrl: (sessionTag: string) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"biblio-telemetry.js","names":[],"sources":["../../src/api/biblio-telemetry/biblio-telemetry.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.19.0\n */\nimport type {\n ReadingSessionRead,\n ReadingSessionWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getRecordReadingSessionUrl = (sessionTag: string,) => {\n\n\n\n\n return `/biblio/reading-sessions/${sessionTag}`\n}\n\n/**\n * Record one content-consumption session (E54). Idempotent on ``session_tag``.\n *\n * **There is no ``user_id`` and no ``client_id`` in the body, and there must\n * never be.** The legacy endpoint was unauthenticated and took both from the\n * request without checking either against a credential, so consumption records\n * — which is to say the billing record — were forgeable for any account\n * (defect D3). Both come from the token here.\n *\n * ``PUT`` because the legacy handler already checked whether the tag existed and\n * returned success rather than duplicating: that is an upsert keyed by a\n * client-supplied identifier, and the verb now says so. The tag becomes\n * ``ConsumptionEvent.request_key``, so a retried request after a timeout costs\n * one unit rather than two — enforced by a partial unique index, not by\n * checking first and hoping.\n *\n * ``201`` on the first write for a tag, ``200`` when it already existed. Never\n * an error for a repeat: that is what idempotent means (§2.6).\n * @summary Record Reading Session\n */\nexport const recordReadingSession = async (sessionTag: string,\n readingSessionWrite: ReadingSessionWrite, options?: Parameters<typeof request>[1]): Promise<ReadingSessionRead> => {\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<ReadingSessionRead>(getRecordReadingSessionUrl(sessionTag),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(readingSessionWrite)\n }\n);}\n\n\n"],"mappings":";;;AAcA,MAAa,8BAA8B,eAAwB;CAKjE,OAAO,4BAA4B;AACrC;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,uBAAuB,OAAO,YACvC,qBAA0C,YAAyE;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,QAA4B,2BAA2B,UAAU,GACtE;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,mBAAmB;CAC1C,CACF;AAAE"}
1
+ {"version":3,"file":"biblio-telemetry.js","names":[],"sources":["../../src/api/biblio-telemetry/biblio-telemetry.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.20.2\n */\nimport type {\n ReadingSessionRead,\n ReadingSessionWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getRecordReadingSessionUrl = (sessionTag: string,) => {\n\n\n\n\n return `/biblio/reading-sessions/${sessionTag}`\n}\n\n/**\n * Record one content-consumption session (E54). Idempotent on ``session_tag``.\n *\n * **There is no ``user_id`` and no ``client_id`` in the body, and there must\n * never be.** The legacy endpoint was unauthenticated and took both from the\n * request without checking either against a credential, so consumption records\n * — which is to say the billing record — were forgeable for any account\n * (defect D3). Both come from the token here.\n *\n * ``PUT`` because the legacy handler already checked whether the tag existed and\n * returned success rather than duplicating: that is an upsert keyed by a\n * client-supplied identifier, and the verb now says so. The tag becomes\n * ``ConsumptionEvent.request_key``, so a retried request after a timeout costs\n * one unit rather than two — enforced by a partial unique index, not by\n * checking first and hoping.\n *\n * ``201`` on the first write for a tag, ``200`` when it already existed. Never\n * an error for a repeat: that is what idempotent means (§2.6).\n * @summary Record Reading Session\n */\nexport const recordReadingSession = async (sessionTag: string,\n readingSessionWrite: ReadingSessionWrite, options?: Parameters<typeof request>[1]): Promise<ReadingSessionRead> => {\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<ReadingSessionRead>(getRecordReadingSessionUrl(sessionTag),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(readingSessionWrite)\n }\n);}\n\n\n"],"mappings":";;;AAcA,MAAa,8BAA8B,eAAwB;CAKjE,OAAO,4BAA4B;AACrC;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,uBAAuB,OAAO,YACvC,qBAA0C,YAAyE;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,QAA4B,2BAA2B,UAAU,GACtE;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,mBAAmB;CAC1C,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { n as YouScribeAuthRead } from "../chunks/index.js";
2
+ import { i as YouScribeAuthRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/biblio-youscribe/biblio-youscribe.d.ts
5
5
  export declare const getDeleteYouscribeLicenseUrl: () => string;
@@ -1 +1 @@
1
- {"version":3,"file":"biblio-youscribe.js","names":[],"sources":["../../src/api/biblio-youscribe/biblio-youscribe.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.19.0\n */\nimport type {\n YouScribeAuthRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getDeleteYouscribeLicenseUrl = () => {\n\n\n\n\n return `/biblio/me/youscribe/license`\n}\n\n/**\n * Release this member's seat back to the household pool.\n *\n * ``204`` whether or not a seat was held, like its Nextory twin: the desired\n * end state is \"no seat\", and a ``404`` would only tell a caller something\n * they cannot act on.\n *\n * The partner is told first and a refusal stops everything, so the member\n * either gave the seat back on both sides or on neither. Reporting it returned\n * while the subscription keeps billing would hide the one fact somebody would\n * need to go and fix it.\n *\n * ``provider_user_id`` stays on the row. It is the partner's name for this\n * person, and a member who comes back must be the same reader to them — their\n * own library and reading positions depend on it, and a second identity would\n * mean a second subscription while the first keeps billing.\n * @summary Delete Youscribe License\n */\nexport const deleteYouscribeLicense = async ( options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getDeleteYouscribeLicenseUrl(),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getCreateYouscribeLicenseUrl = () => {\n\n\n\n\n return `/biblio/me/youscribe/license`\n}\n\n/**\n * Take a seat at YouScribe, if the household has one left.\n *\n * Optional: ``POST …/reader-access/{mode}`` takes the seat on the Read\n * click. Idempotent: a profile that already holds a seat gets it back with\n * ``200`` rather than a second one.\n *\n * **Only on an explicit Read.** Never on entering the books section, on\n * prefetch, at bootstrap or during onboarding: a seat is a paid subscription,\n * and a patron who only browses the catalogue must not be charged for one.\n *\n * ``409`` with the counts when the household holds every seat it has, so the\n * screen can say *your four places are taken, release one* rather than\n * \"no access\".\n *\n * Medium assurance, and this is the endpoint that needs it: it creates an\n * account for the member at a third party under their identity, which is not\n * something a session established by a partner handing over a static URL key\n * should be able to do. The reader endpoints no longer require it, because\n * they no longer create anything.\n * @summary Create Youscribe License\n */\nexport const createYouscribeLicense = async ( options?: Parameters<typeof request>[1]): Promise<YouScribeAuthRead> => {\n\n return request<YouScribeAuthRead>(getCreateYouscribeLicenseUrl(),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAaA,MAAa,qCAAqC;CAKhD,OAAO;AACT;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,yBAAyB,OAAQ,YAA2D;CAEvG,OAAO,QAAc,6BAA6B,GAClD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,qCAAqC;CAKhD,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,yBAAyB,OAAQ,YAAwE;CAEpH,OAAO,QAA2B,6BAA6B,GAC/D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"biblio-youscribe.js","names":[],"sources":["../../src/api/biblio-youscribe/biblio-youscribe.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.20.2\n */\nimport type {\n YouScribeAuthRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getDeleteYouscribeLicenseUrl = () => {\n\n\n\n\n return `/biblio/me/youscribe/license`\n}\n\n/**\n * Release this member's seat back to the household pool.\n *\n * ``204`` whether or not a seat was held, like its Nextory twin: the desired\n * end state is \"no seat\", and a ``404`` would only tell a caller something\n * they cannot act on.\n *\n * The partner is told first and a refusal stops everything, so the member\n * either gave the seat back on both sides or on neither. Reporting it returned\n * while the subscription keeps billing would hide the one fact somebody would\n * need to go and fix it.\n *\n * ``provider_user_id`` stays on the row. It is the partner's name for this\n * person, and a member who comes back must be the same reader to them — their\n * own library and reading positions depend on it, and a second identity would\n * mean a second subscription while the first keeps billing.\n * @summary Delete Youscribe License\n */\nexport const deleteYouscribeLicense = async ( options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getDeleteYouscribeLicenseUrl(),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getCreateYouscribeLicenseUrl = () => {\n\n\n\n\n return `/biblio/me/youscribe/license`\n}\n\n/**\n * Take a seat at YouScribe, if the household has one left.\n *\n * Optional: ``POST …/reader-access/{mode}`` takes the seat on the Read\n * click. Idempotent: a profile that already holds a seat gets it back with\n * ``200`` rather than a second one.\n *\n * **Only on an explicit Read.** Never on entering the books section, on\n * prefetch, at bootstrap or during onboarding: a seat is a paid subscription,\n * and a patron who only browses the catalogue must not be charged for one.\n *\n * ``409`` with the counts when the household holds every seat it has, so the\n * screen can say *your four places are taken, release one* rather than\n * \"no access\".\n *\n * Medium assurance, and this is the endpoint that needs it: it creates an\n * account for the member at a third party under their identity, which is not\n * something a session established by a partner handing over a static URL key\n * should be able to do. The reader endpoints no longer require it, because\n * they no longer create anything.\n * @summary Create Youscribe License\n */\nexport const createYouscribeLicense = async ( options?: Parameters<typeof request>[1]): Promise<YouScribeAuthRead> => {\n\n return request<YouScribeAuthRead>(getCreateYouscribeLicenseUrl(),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAaA,MAAa,qCAAqC;CAKhD,OAAO;AACT;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,yBAAyB,OAAQ,YAA2D;CAEvG,OAAO,QAAc,6BAA6B,GAClD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,qCAAqC;CAKhD,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,yBAAyB,OAAQ,YAAwE;CAEpH,OAAO,QAA2B,6BAA6B,GAC/D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { bo as LeaseRead } from "../chunks/index.js";
2
+ import { Br as PressReceiptRead, Yo as LeaseRead, _a as OfflineReceiptRead, ga as OfflineUsageRead, ha as OfflineUsageWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/consumption/consumption.d.ts
5
5
  export declare const getCloseLeaseUrl: (eventId: number) => string;
@@ -26,5 +26,23 @@ export declare const getRenewLeaseUrl: (eventId: number) => string;
26
26
  * @summary Renew Lease
27
27
  */
28
28
  export declare const renewLease: (eventId: number, options?: Parameters<typeof request>[1]) => Promise<LeaseRead>;
29
+ export declare const getRemoveOfflineDownloadUrl: (downloadId: string) => string;
30
+ /**
31
+ * Mark this installation's copy removed. The native reader also deletes local material.
32
+ * @summary Remove Offline Download
33
+ */
34
+ export declare const removeOfflineDownload: (downloadId: string, options?: Parameters<typeof request>[1]) => Promise<void>;
35
+ export declare const getReadOfflineDownloadUrl: (downloadId: string) => string;
36
+ /**
37
+ * Read this installation's receipt. Acquisition performs the online rights recheck.
38
+ * @summary Read Offline Download
39
+ */
40
+ export declare const readOfflineDownload: (downloadId: string, options?: Parameters<typeof request>[1]) => Promise<PressReceiptRead | OfflineReceiptRead>;
41
+ export declare const getReportOfflineUsageUrl: (downloadId: string, sessionId: string) => string;
42
+ /**
43
+ * Sync one completed interval of actual use. An identical retry returns the original zero-debit event.
44
+ * @summary Report Offline Usage
45
+ */
46
+ export declare const reportOfflineUsage: (downloadId: string, sessionId: string, offlineUsageWrite: OfflineUsageWrite, options?: Parameters<typeof request>[1]) => Promise<OfflineUsageRead>;
29
47
  //#endregion
30
48
  //# sourceMappingURL=consumption.d.ts.map
@@ -39,7 +39,59 @@ const renewLease = async (eventId, options) => {
39
39
  method: "PUT"
40
40
  });
41
41
  };
42
+ const getRemoveOfflineDownloadUrl = (downloadId) => {
43
+ return `/me/downloads/${downloadId}`;
44
+ };
45
+ /**
46
+ * Mark this installation's copy removed. The native reader also deletes local material.
47
+ * @summary Remove Offline Download
48
+ */
49
+ const removeOfflineDownload = async (downloadId, options) => {
50
+ return request(getRemoveOfflineDownloadUrl(downloadId), {
51
+ ...options,
52
+ method: "DELETE"
53
+ });
54
+ };
55
+ const getReadOfflineDownloadUrl = (downloadId) => {
56
+ return `/me/downloads/${downloadId}`;
57
+ };
58
+ /**
59
+ * Read this installation's receipt. Acquisition performs the online rights recheck.
60
+ * @summary Read Offline Download
61
+ */
62
+ const readOfflineDownload = async (downloadId, options) => {
63
+ return request(getReadOfflineDownloadUrl(downloadId), {
64
+ ...options,
65
+ method: "GET"
66
+ });
67
+ };
68
+ const getReportOfflineUsageUrl = (downloadId, sessionId) => {
69
+ return `/me/downloads/${downloadId}/usage/${sessionId}`;
70
+ };
71
+ /**
72
+ * Sync one completed interval of actual use. An identical retry returns the original zero-debit event.
73
+ * @summary Report Offline Usage
74
+ */
75
+ const reportOfflineUsage = async (downloadId, sessionId, offlineUsageWrite, options) => {
76
+ const getHeaders = (h) => {
77
+ if (!h) return {};
78
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
79
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
80
+ const headers = {};
81
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
82
+ return headers;
83
+ };
84
+ return request(getReportOfflineUsageUrl(downloadId, sessionId), {
85
+ ...options,
86
+ method: "PUT",
87
+ headers: {
88
+ "Content-Type": "application/json",
89
+ ...getHeaders(options?.headers)
90
+ },
91
+ body: JSON.stringify(offlineUsageWrite)
92
+ });
93
+ };
42
94
  //#endregion
43
- export { closeLease, getCloseLeaseUrl, getRenewLeaseUrl, renewLease };
95
+ export { closeLease, getCloseLeaseUrl, getReadOfflineDownloadUrl, getRemoveOfflineDownloadUrl, getRenewLeaseUrl, getReportOfflineUsageUrl, readOfflineDownload, removeOfflineDownload, renewLease, reportOfflineUsage };
44
96
 
45
97
  //# sourceMappingURL=consumption.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"consumption.js","names":[],"sources":["../../src/api/consumption/consumption.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.19.0\n */\nimport type {\n LeaseRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getCloseLeaseUrl = (eventId: number,) => {\n\n\n\n\n return `/consumption/${eventId}`\n}\n\n/**\n * Finish reading. Returns the seat immediately rather than at lapse.\n *\n * ``204`` whether or not the lease was still open: the desired end state is\n * \"closed\", and a client that lost its connection and retried should not get an\n * error for succeeding twice.\n * @summary Close Lease\n */\nexport const closeLease = async (eventId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getCloseLeaseUrl(eventId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getRenewLeaseUrl = (eventId: number,) => {\n\n\n\n\n return `/consumption/${eventId}`\n}\n\n/**\n * Heartbeat. Push the lease out; the client repeats before it lapses.\n *\n * ``404`` when the lease is closed, reaped, or somebody else's — the three are\n * deliberately indistinguishable, because a lease id is a bare integer and\n * guessing one must not reveal whether it exists.\n *\n * The renewed deadline is durable and shared by the reader gates, reaper and\n * concurrency checks. Expired leases cannot be revived. Fixed-term loans keep\n * their contractual deadline; a heartbeat is not a loan extension.\n * @summary Renew Lease\n */\nexport const renewLease = async (eventId: number, options?: Parameters<typeof request>[1]): Promise<LeaseRead> => {\n\n return request<LeaseRead>(getRenewLeaseUrl(eventId),\n {\n ...options,\n method: 'PUT'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAaA,MAAa,oBAAoB,YAAqB;CAKpD,OAAO,gBAAgB;AACzB;;;;;;;;;AAUA,MAAa,aAAa,OAAO,SAAiB,YAA2D;CAE3G,OAAO,QAAc,iBAAiB,OAAO,GAC7C;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,oBAAoB,YAAqB;CAKpD,OAAO,gBAAgB;AACzB;;;;;;;;;;;;;AAcA,MAAa,aAAa,OAAO,SAAiB,YAAgE;CAEhH,OAAO,QAAmB,iBAAiB,OAAO,GAClD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"consumption.js","names":[],"sources":["../../src/api/consumption/consumption.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.20.2\n */\nimport type {\n LeaseRead,\n OfflineReceiptRead,\n OfflineUsageRead,\n OfflineUsageWrite,\n PressReceiptRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getCloseLeaseUrl = (eventId: number,) => {\n\n\n\n\n return `/consumption/${eventId}`\n}\n\n/**\n * Finish reading. Returns the seat immediately rather than at lapse.\n *\n * ``204`` whether or not the lease was still open: the desired end state is\n * \"closed\", and a client that lost its connection and retried should not get an\n * error for succeeding twice.\n * @summary Close Lease\n */\nexport const closeLease = async (eventId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getCloseLeaseUrl(eventId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getRenewLeaseUrl = (eventId: number,) => {\n\n\n\n\n return `/consumption/${eventId}`\n}\n\n/**\n * Heartbeat. Push the lease out; the client repeats before it lapses.\n *\n * ``404`` when the lease is closed, reaped, or somebody else's — the three are\n * deliberately indistinguishable, because a lease id is a bare integer and\n * guessing one must not reveal whether it exists.\n *\n * The renewed deadline is durable and shared by the reader gates, reaper and\n * concurrency checks. Expired leases cannot be revived. Fixed-term loans keep\n * their contractual deadline; a heartbeat is not a loan extension.\n * @summary Renew Lease\n */\nexport const renewLease = async (eventId: number, options?: Parameters<typeof request>[1]): Promise<LeaseRead> => {\n\n return request<LeaseRead>(getRenewLeaseUrl(eventId),\n {\n ...options,\n method: 'PUT'\n\n\n }\n);}\n\n\nexport const getRemoveOfflineDownloadUrl = (downloadId: string,) => {\n\n\n\n\n return `/me/downloads/${downloadId}`\n}\n\n/**\n * Mark this installation's copy removed. The native reader also deletes local material.\n * @summary Remove Offline Download\n */\nexport const removeOfflineDownload = async (downloadId: string, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRemoveOfflineDownloadUrl(downloadId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getReadOfflineDownloadUrl = (downloadId: string,) => {\n\n\n\n\n return `/me/downloads/${downloadId}`\n}\n\n/**\n * Read this installation's receipt. Acquisition performs the online rights recheck.\n * @summary Read Offline Download\n */\nexport const readOfflineDownload = async (downloadId: string, options?: Parameters<typeof request>[1]): Promise<PressReceiptRead | OfflineReceiptRead> => {\n\n return request<PressReceiptRead | OfflineReceiptRead>(getReadOfflineDownloadUrl(downloadId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReportOfflineUsageUrl = (downloadId: string,\n sessionId: string,) => {\n\n\n\n\n return `/me/downloads/${downloadId}/usage/${sessionId}`\n}\n\n/**\n * Sync one completed interval of actual use. An identical retry returns the original zero-debit event.\n * @summary Report Offline Usage\n */\nexport const reportOfflineUsage = async (downloadId: string,\n sessionId: string,\n offlineUsageWrite: OfflineUsageWrite, options?: Parameters<typeof request>[1]): Promise<OfflineUsageRead> => {\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<OfflineUsageRead>(getReportOfflineUsageUrl(downloadId,sessionId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(offlineUsageWrite)\n }\n);}\n\n\n"],"mappings":";;;AAiBA,MAAa,oBAAoB,YAAqB;CAKpD,OAAO,gBAAgB;AACzB;;;;;;;;;AAUA,MAAa,aAAa,OAAO,SAAiB,YAA2D;CAE3G,OAAO,QAAc,iBAAiB,OAAO,GAC7C;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,oBAAoB,YAAqB;CAKpD,OAAO,gBAAgB;AACzB;;;;;;;;;;;;;AAcA,MAAa,aAAa,OAAO,SAAiB,YAAgE;CAEhH,OAAO,QAAmB,iBAAiB,OAAO,GAClD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,+BAA+B,eAAwB;CAKlE,OAAO,iBAAiB;AAC1B;;;;;AAMA,MAAa,wBAAwB,OAAO,YAAoB,YAA2D;CAEzH,OAAO,QAAc,4BAA4B,UAAU,GAC3D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,6BAA6B,eAAwB;CAKhE,OAAO,iBAAiB;AAC1B;;;;;AAMA,MAAa,sBAAsB,OAAO,YAAoB,YAA4F;CAExJ,OAAO,QAA+C,0BAA0B,UAAU,GAC1F;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,4BAA4B,YACrC,cAAuB;CAKzB,OAAO,iBAAiB,WAAW,SAAS;AAC9C;;;;;AAMA,MAAa,qBAAqB,OAAO,YACrC,WACA,mBAAsC,YAAuE;CAE7G,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,QAA0B,yBAAyB,YAAW,SAAS,GAC5E;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,iBAAiB;CACxC,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { Qi as NotificationListRead, Va as ListNotificationsParams, oi as PlaybackReportWrite, si as PlaybackReportRead } from "../chunks/index.js";
2
+ import { ba as NotificationListRead, fo as ListNotificationsParams, vi as PlaybackReportWrite, yi as PlaybackReportRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/cvs-app/cvs-app.d.ts
5
5
  export declare const getListNotificationsUrl: (params?: ListNotificationsParams) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"cvs-app.js","names":[],"sources":["../../src/api/cvs-app/cvs-app.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.19.0\n */\nimport type {\n ListNotificationsParams,\n NotificationListRead,\n PlaybackReportRead,\n PlaybackReportWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListNotificationsUrl = (params?: ListNotificationsParams,) => {\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 ? `/cvs/notifications?${stringifiedParams}` : `/cvs/notifications`\n}\n\n/**\n * Notifications published to this caller's library.\n *\n * **These are tenant broadcasts, not a per-user inbox.** ``app_notification``\n * has no user column and no read state — ``app_notification_bm`` links a\n * notification to a library and that is the whole model. So ``unread_count`` is\n * always ``0`` here and every notification is returned every time.\n *\n * Giving each member their own read state is a schema change (a\n * ``notification_read`` row per user and notification), not a query change. It\n * is worth doing — a broadcast list that never shrinks is one people stop\n * opening — but it is a decision rather than a port, so it is not made here.\n * @summary List Notifications\n */\nexport const listNotifications = async (params?: ListNotificationsParams, options?: Parameters<typeof request>[1]): Promise<NotificationListRead> => {\n\n return request<NotificationListRead>(getListNotificationsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getCreateReportUrl = () => {\n\n\n\n\n return `/cvs/reports`\n}\n\n/**\n * Report a playback problem.\n *\n * The identifying fields are taken from the credential, not the body. The\n * legacy took ``adhId``, ``bmId`` and ``bmBibLocaleId`` from the query string\n * and declared no ``Authorization`` at all, so anyone holding the shared\n * ``api_key`` — which every deployed app binary contains — could file a report\n * in any patron's name, at any library. The DTO still carries those three\n * fields, marked transition-only, and this handler ignores every one of them.\n *\n * ``email`` is free text that ends up in a message. Authenticated and\n * rate-limited it is a support channel; unauthenticated it is a spam relay with\n * the library's return address on it.\n * @summary Create Report\n */\nexport const createReport = async (playbackReportWrite: PlaybackReportWrite, options?: Parameters<typeof request>[1]): Promise<PlaybackReportRead> => {\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<PlaybackReportRead>(getCreateReportUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(playbackReportWrite)\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,2BAA2B,WAAsC;CAC5E,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,sBAAsB,sBAAsB;AACpF;;;;;;;;;;;;;;;AAgBA,MAAa,oBAAoB,OAAO,QAAkC,YAA2E;CAEnJ,OAAO,QAA8B,wBAAwB,MAAM,GACnE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;;;;;;;;;;;;;AAiBA,MAAa,eAAe,OAAO,qBAA0C,YAAyE;CAElJ,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,mBAAmB,GACpD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,mBAAmB;CAC1C,CACF;AAAE"}
1
+ {"version":3,"file":"cvs-app.js","names":[],"sources":["../../src/api/cvs-app/cvs-app.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.20.2\n */\nimport type {\n ListNotificationsParams,\n NotificationListRead,\n PlaybackReportRead,\n PlaybackReportWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListNotificationsUrl = (params?: ListNotificationsParams,) => {\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 ? `/cvs/notifications?${stringifiedParams}` : `/cvs/notifications`\n}\n\n/**\n * Notifications published to this caller's library.\n *\n * **These are tenant broadcasts, not a per-user inbox.** ``app_notification``\n * has no user column and no read state — ``app_notification_bm`` links a\n * notification to a library and that is the whole model. So ``unread_count`` is\n * always ``0`` here and every notification is returned every time.\n *\n * Giving each member their own read state is a schema change (a\n * ``notification_read`` row per user and notification), not a query change. It\n * is worth doing — a broadcast list that never shrinks is one people stop\n * opening — but it is a decision rather than a port, so it is not made here.\n * @summary List Notifications\n */\nexport const listNotifications = async (params?: ListNotificationsParams, options?: Parameters<typeof request>[1]): Promise<NotificationListRead> => {\n\n return request<NotificationListRead>(getListNotificationsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getCreateReportUrl = () => {\n\n\n\n\n return `/cvs/reports`\n}\n\n/**\n * Report a playback problem.\n *\n * The identifying fields are taken from the credential, not the body. The\n * legacy took ``adhId``, ``bmId`` and ``bmBibLocaleId`` from the query string\n * and declared no ``Authorization`` at all, so anyone holding the shared\n * ``api_key`` — which every deployed app binary contains — could file a report\n * in any patron's name, at any library. The DTO still carries those three\n * fields, marked transition-only, and this handler ignores every one of them.\n *\n * ``email`` is free text that ends up in a message. Authenticated and\n * rate-limited it is a support channel; unauthenticated it is a spam relay with\n * the library's return address on it.\n * @summary Create Report\n */\nexport const createReport = async (playbackReportWrite: PlaybackReportWrite, options?: Parameters<typeof request>[1]): Promise<PlaybackReportRead> => {\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<PlaybackReportRead>(getCreateReportUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(playbackReportWrite)\n }\n);}\n\n\n"],"mappings":";;;AAgBA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entSearchWrite, Yi as OpenAtSupplierParams, _v as CinemaAccessRead, cv as CinemaHomeRead, dv as CinemaPage, hn as ReadCinemaAccessParams, lt as SupplierGrantRead, mn as ReadCinemaHomeParams, ru as LastPositionWrite, so as ListCinemaFilmsParams, vn as RatingUpdateWrite } from "../chunks/index.js";
2
+ import { Cy as CinemaPage, Eo as ListCvsSelectionDocumentsParams, Fo as ListCinemaFilmsParams, It as ReviewUpdateWrite, Lt as ReviewRead, Mu as LastPositionWrite, Sn as RatingUpdateWrite, af as DocumentRead, by as CinemaHomeRead, da as OpenAtSupplierParams, ft as SupplierGrantRead, if as DocumentSearchWrite, ky as CinemaAccessRead, uf as DocumentPage, vn as ReadCinemaHomeParams, yn as ReadCinemaAccessParams } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/cvs-documents/cvs-documents.d.ts
5
5
  export declare const getSearchDocumentsUrl: () => string;
@@ -1 +1 @@
1
- {"version":3,"file":"cvs-documents.js","names":[],"sources":["../../src/api/cvs-documents/cvs-documents.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.19.0\n */\nimport type {\n CinemaAccessRead,\n CinemaHomeRead,\n CinemaPage,\n DocumentPage,\n DocumentRead,\n DocumentSearchWrite,\n LastPositionWrite,\n ListCinemaFilmsParams,\n ListCvsSelectionDocumentsParams,\n OpenAtSupplierParams,\n RatingUpdateWrite,\n ReadCinemaAccessParams,\n ReadCinemaHomeParams,\n ReviewRead,\n ReviewUpdateWrite,\n SupplierGrantRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getSearchDocumentsUrl = () => {\n\n\n\n\n return `/cvs/documents/search`\n}\n\n/**\n * Search the CVS catalogue.\n *\n * ``POST`` because the legacy put the query in the body and the mobile clients\n * send it that way. It is a read, so it stays safe: nothing here writes.\n *\n * Same division as ``/search``: the index ranks, PostgreSQL authorises. An\n * index outage degrades to no results rather than to an unfiltered catalogue.\n * @summary Search Documents\n */\nexport const searchDocuments = async (documentSearchWrite: DocumentSearchWrite, options?: Parameters<typeof request>[1]): Promise<DocumentPage> => {\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<DocumentPage>(getSearchDocumentsUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(documentSearchWrite)\n }\n);}\n\n\nexport const getReadDocumentUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/documents/${docId}`\n}\n\n/**\n * One work, if this caller's contract reaches it.\n *\n * Missing until now, which was an oversight rather than a decision: search,\n * rating, review and position all existed and there was no way to fetch the\n * thing they act on. The legacy has no equivalent either — the app assembles a\n * document sheet from whatever the menu endpoint already returned, which is why\n * a deep link into a title has never worked properly.\n * @summary Read Document\n */\nexport const readDocument = async (docId: number, options?: Parameters<typeof request>[1]): Promise<DocumentRead> => {\n\n return request<DocumentRead>(getReadDocumentUrl(docId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenAtSupplierUrl = (docId: number,\n params?: OpenAtSupplierParams,) => {\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 ? `/cvs/documents/${docId}/grant?${stringifiedParams}` : `/cvs/documents/${docId}/grant`\n}\n\n/**\n * Authorise this patron to open one title at the supplier hosting it.\n *\n * Replaces the legacy ``wstoken``: 4,878 lines dispatching on\n * ``frn.plate_forme`` through 57 near-identical arms. The signing schemes\n * reduce to eight (:class:`~app.models.enums.TokenFormula`) and the platform\n * map to a table, so what is left here is the order of operations.\n *\n * **Entitle, seat, then sign** — the same order the streaming route uses, and\n * for the same reason. A signature is cheap to produce and impossible to\n * recall once it has left; a seat can be released. Signing first would mean a\n * refused request had already handed a patron something that works.\n *\n * ``404`` when the caller is not entitled or the title does not exist — the\n * two are deliberately indistinguishable, as everywhere else in this API.\n * ``409`` when every seat is taken: the caller *is* entitled and should be\n * offered \"try later\", not \"buy a subscription\". ``409`` too when the supplier\n * sits on a platform nobody implemented — four do, and the legacy cannot serve\n * them either, so the honest answer is that this title is not openable rather\n * than a 500 from a missing branch.\n *\n * ``mode`` is the legacy's ``$upload``: ``stream`` to consult in place,\n * ``download`` to take a copy away. It does two things, and both matter —\n *\n * * **The library is billed for the right act.** ``exemp`` records streaming\n * and download separately, and ``pret_download`` is the only column where a\n * loan duration ever appears. Granting a download as a view bills the wrong\n * quota.\n * * **Three platforms sign it.** Jeux CVS, CVS Livres and Komics Initiative\n * append the flag *after* the second key, so a stream and a download of the\n * same title by the same patron at the same second carry different\n * signatures. For the other platforms it is inert.\n *\n * The returned token is for the *supplier*, not for us. See\n * :class:`~app.datamodels.cvs.downloads.SupplierGrantRead`.\n * @summary Open At Supplier\n */\nexport const openAtSupplier = async (docId: number,\n params?: OpenAtSupplierParams, options?: Parameters<typeof request>[1]): Promise<SupplierGrantRead> => {\n\n return request<SupplierGrantRead>(getOpenAtSupplierUrl(docId,params),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getReadLastPositionUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/documents/${docId}/position`\n}\n\n/**\n * Where this patron got to, or ``0`` if they have not started.\n *\n * New: the legacy has no way to read the position back, so a client that lost\n * its local state could never resume. Absent means not started, which is why\n * the row is not created on read.\n * @summary Read Last Position\n */\nexport const readLastPosition = async (docId: number, options?: Parameters<typeof request>[1]): Promise<LastPositionWrite> => {\n\n return request<LastPositionWrite>(getReadLastPositionUrl(docId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getSetLastPositionUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/documents/${docId}/position`\n}\n\n/**\n * Record where this patron got to.\n *\n * A write, and the legacy declares it ``GET`` with the position in the query\n * string — which makes resuming a book a cacheable idempotent read that mutates\n * state, and puts it outside the CSRF layer for free.\n *\n * Stored in :class:`~app.models.activity.ReadingPosition`, which the products\n * share — CVS and the partner reader today — so a member who reads across them\n * keeps their place in one shape.\n * @summary Set Last Position\n */\nexport const setLastPosition = async (docId: number,\n lastPositionWrite: LastPositionWrite, 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>(getSetLastPositionUrl(docId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(lastPositionWrite)\n }\n);}\n\n\nexport const getRateDocumentUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/documents/${docId}/rating`\n}\n\n/**\n * Rate a document. Idempotent — rating again replaces the earlier score.\n *\n * ``PUT`` on the rating sub-resource rather than the legacy\n * ``POST /document/rating/update`` with the id in the body: the identifier\n * belongs in the path, and \"update\" in a path names an operation in a position\n * reserved for a resource.\n * @summary Rate Document\n */\nexport const rateDocument = async (docId: number,\n ratingUpdateWrite: RatingUpdateWrite, 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>(getRateDocumentUrl(docId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(ratingUpdateWrite)\n }\n);}\n\n\nexport const getWriteReviewUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/documents/${docId}/review`\n}\n\n/**\n * Write or replace this patron's review of a document.\n *\n * One review per person per document, so this is a ``PUT`` on a singular\n * sub-resource rather than a ``POST`` to a collection. The legacy had two routes\n * — with and without an ``avisId`` — for what is one row.\n *\n * Every write resets the review to unpublished. An edit after moderation is a\n * new thing to moderate, and carrying the old approval forward is how an\n * approved review becomes a different text.\n * @summary Write Review\n */\nexport const writeReview = async (docId: number,\n reviewUpdateWrite: ReviewUpdateWrite, options?: Parameters<typeof request>[1]): Promise<ReviewRead> => {\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<ReviewRead>(getWriteReviewUrl(docId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(reviewUpdateWrite)\n }\n);}\n\n\nexport const getListCinemaFilmsUrl = (params?: ListCinemaFilmsParams,) => {\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 ? `/cvs/films?${stringifiedParams}` : `/cvs/films`\n}\n\n/**\n * Paginated, entitled film inventory without a search term.\n * @summary List Cinema Films\n */\nexport const listCinemaFilms = async (params?: ListCinemaFilmsParams, options?: Parameters<typeof request>[1]): Promise<CinemaPage> => {\n\n return request<CinemaPage>(getListCinemaFilmsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadCinemaHomeUrl = (params?: ReadCinemaHomeParams,) => {\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 ? `/cvs/home?${stringifiedParams}` : `/cvs/home`\n}\n\n/**\n * Film rows and genre counts from authorized data, without fabricated curation.\n *\n * Popularity counts actual local openings in this tenant over seven days and\n * excludes reported/imported aggregates. Empty rows are omitted. More pages\n * use each section's documentsUrl. No partner requests are made here.\n * @summary Read Cinema Home\n */\nexport const readCinemaHome = async (params?: ReadCinemaHomeParams, options?: Parameters<typeof request>[1]): Promise<CinemaHomeRead> => {\n\n return request<CinemaHomeRead>(getReadCinemaHomeUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListCvsSelectionDocumentsUrl = (listId: number,\n params?: ListCvsSelectionDocumentsParams,) => {\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 ? `/cvs/lists/${listId}/documents?${stringifiedParams}` : `/cvs/lists/${listId}/documents`\n}\n\n/**\n * An owned list's accessible documents in its recorded list order.\n * @summary List Cvs Selection Documents\n */\nexport const listCvsSelectionDocuments = async (listId: number,\n params?: ListCvsSelectionDocumentsParams, options?: Parameters<typeof request>[1]): Promise<CinemaPage> => {\n\n return request<CinemaPage>(getListCvsSelectionDocumentsUrl(listId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadCinemaAccessUrl = (params?: ReadCinemaAccessParams,) => {\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 ? `/me/cinema?${stringifiedParams}` : `/me/cinema`\n}\n\n/**\n * Current allowance overview or exact film quote. No debit, loan or DRM call.\n *\n * Multiple balances must not be summed: films may use different grants. Add\n * docId on a film sheet. Refetch after starting a loan or playback. The write\n * rechecks rights and remaining units; this response is an informative snapshot.\n * @summary Read Cinema Access\n */\nexport const readCinemaAccess = async (params?: ReadCinemaAccessParams, options?: Parameters<typeof request>[1]): Promise<CinemaAccessRead> => {\n\n return request<CinemaAccessRead>(getReadCinemaAccessUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AA4BA,MAAa,8BAA8B;CAKzC,OAAO;AACT;;;;;;;;;;;AAYA,MAAa,kBAAkB,OAAO,qBAA0C,YAAmE;CAE/I,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,C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Z,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,cAAc,sBAAsB;AAC5E;;;;;;;;;AAUA,MAAa,mBAAmB,OAAO,QAAiC,YAAuE;CAE7I,OAAO,QAA0B,uBAAuB,MAAM,GAC9D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"cvs-documents.js","names":[],"sources":["../../src/api/cvs-documents/cvs-documents.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.20.2\n */\nimport type {\n CinemaAccessRead,\n CinemaHomeRead,\n CinemaPage,\n DocumentPage,\n DocumentRead,\n DocumentSearchWrite,\n LastPositionWrite,\n ListCinemaFilmsParams,\n ListCvsSelectionDocumentsParams,\n OpenAtSupplierParams,\n RatingUpdateWrite,\n ReadCinemaAccessParams,\n ReadCinemaHomeParams,\n ReviewRead,\n ReviewUpdateWrite,\n SupplierGrantRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getSearchDocumentsUrl = () => {\n\n\n\n\n return `/cvs/documents/search`\n}\n\n/**\n * Search the CVS catalogue.\n *\n * ``POST`` because the legacy put the query in the body and the mobile clients\n * send it that way. It is a read, so it stays safe: nothing here writes.\n *\n * Same division as ``/search``: the index ranks, PostgreSQL authorises. An\n * index outage degrades to no results rather than to an unfiltered catalogue.\n * @summary Search Documents\n */\nexport const searchDocuments = async (documentSearchWrite: DocumentSearchWrite, options?: Parameters<typeof request>[1]): Promise<DocumentPage> => {\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<DocumentPage>(getSearchDocumentsUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(documentSearchWrite)\n }\n);}\n\n\nexport const getReadDocumentUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/documents/${docId}`\n}\n\n/**\n * One work, if this caller's contract reaches it.\n *\n * Missing until now, which was an oversight rather than a decision: search,\n * rating, review and position all existed and there was no way to fetch the\n * thing they act on. The legacy has no equivalent either — the app assembles a\n * document sheet from whatever the menu endpoint already returned, which is why\n * a deep link into a title has never worked properly.\n * @summary Read Document\n */\nexport const readDocument = async (docId: number, options?: Parameters<typeof request>[1]): Promise<DocumentRead> => {\n\n return request<DocumentRead>(getReadDocumentUrl(docId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenAtSupplierUrl = (docId: number,\n params?: OpenAtSupplierParams,) => {\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 ? `/cvs/documents/${docId}/grant?${stringifiedParams}` : `/cvs/documents/${docId}/grant`\n}\n\n/**\n * Authorise this patron to open one title at the supplier hosting it.\n *\n * Replaces the legacy ``wstoken``: 4,878 lines dispatching on\n * ``frn.plate_forme`` through 57 near-identical arms. The signing schemes\n * reduce to eight (:class:`~app.models.enums.TokenFormula`) and the platform\n * map to a table, so what is left here is the order of operations.\n *\n * **Entitle, seat, then sign** — the same order the streaming route uses, and\n * for the same reason. A signature is cheap to produce and impossible to\n * recall once it has left; a seat can be released. Signing first would mean a\n * refused request had already handed a patron something that works.\n *\n * ``404`` when the caller is not entitled or the title does not exist — the\n * two are deliberately indistinguishable, as everywhere else in this API.\n * ``409`` when every seat is taken: the caller *is* entitled and should be\n * offered \"try later\", not \"buy a subscription\". ``409`` too when the supplier\n * sits on a platform nobody implemented — four do, and the legacy cannot serve\n * them either, so the honest answer is that this title is not openable rather\n * than a 500 from a missing branch.\n *\n * ``mode`` is the legacy's ``$upload``: ``stream`` to consult in place,\n * ``download`` to take a copy away. It does two things, and both matter —\n *\n * * **The library is billed for the right act.** ``exemp`` records streaming\n * and download separately, and ``pret_download`` is the only column where a\n * loan duration ever appears. Granting a download as a view bills the wrong\n * quota.\n * * **Three platforms sign it.** Jeux CVS, CVS Livres and Komics Initiative\n * append the flag *after* the second key, so a stream and a download of the\n * same title by the same patron at the same second carry different\n * signatures. For the other platforms it is inert.\n *\n * The returned token is for the *supplier*, not for us. See\n * :class:`~app.datamodels.cvs.downloads.SupplierGrantRead`.\n * @summary Open At Supplier\n */\nexport const openAtSupplier = async (docId: number,\n params?: OpenAtSupplierParams, options?: Parameters<typeof request>[1]): Promise<SupplierGrantRead> => {\n\n return request<SupplierGrantRead>(getOpenAtSupplierUrl(docId,params),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getReadLastPositionUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/documents/${docId}/position`\n}\n\n/**\n * Where this patron got to, or ``0`` if they have not started.\n *\n * New: the legacy has no way to read the position back, so a client that lost\n * its local state could never resume. Absent means not started, which is why\n * the row is not created on read.\n * @summary Read Last Position\n */\nexport const readLastPosition = async (docId: number, options?: Parameters<typeof request>[1]): Promise<LastPositionWrite> => {\n\n return request<LastPositionWrite>(getReadLastPositionUrl(docId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getSetLastPositionUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/documents/${docId}/position`\n}\n\n/**\n * Record where this patron got to.\n *\n * A write, and the legacy declares it ``GET`` with the position in the query\n * string — which makes resuming a book a cacheable idempotent read that mutates\n * state, and puts it outside the CSRF layer for free.\n *\n * Stored in :class:`~app.models.activity.ReadingPosition`, which the products\n * share — CVS and the partner reader today — so a member who reads across them\n * keeps their place in one shape.\n * @summary Set Last Position\n */\nexport const setLastPosition = async (docId: number,\n lastPositionWrite: LastPositionWrite, 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>(getSetLastPositionUrl(docId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(lastPositionWrite)\n }\n);}\n\n\nexport const getRateDocumentUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/documents/${docId}/rating`\n}\n\n/**\n * Rate a document. Idempotent — rating again replaces the earlier score.\n *\n * ``PUT`` on the rating sub-resource rather than the legacy\n * ``POST /document/rating/update`` with the id in the body: the identifier\n * belongs in the path, and \"update\" in a path names an operation in a position\n * reserved for a resource.\n * @summary Rate Document\n */\nexport const rateDocument = async (docId: number,\n ratingUpdateWrite: RatingUpdateWrite, 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>(getRateDocumentUrl(docId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(ratingUpdateWrite)\n }\n);}\n\n\nexport const getWriteReviewUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/documents/${docId}/review`\n}\n\n/**\n * Write or replace this patron's review of a document.\n *\n * One review per person per document, so this is a ``PUT`` on a singular\n * sub-resource rather than a ``POST`` to a collection. The legacy had two routes\n * — with and without an ``avisId`` — for what is one row.\n *\n * Every write resets the review to unpublished. An edit after moderation is a\n * new thing to moderate, and carrying the old approval forward is how an\n * approved review becomes a different text.\n * @summary Write Review\n */\nexport const writeReview = async (docId: number,\n reviewUpdateWrite: ReviewUpdateWrite, options?: Parameters<typeof request>[1]): Promise<ReviewRead> => {\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<ReviewRead>(getWriteReviewUrl(docId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(reviewUpdateWrite)\n }\n);}\n\n\nexport const getListCinemaFilmsUrl = (params?: ListCinemaFilmsParams,) => {\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 ? `/cvs/films?${stringifiedParams}` : `/cvs/films`\n}\n\n/**\n * Paginated, entitled film inventory without a search term.\n * @summary List Cinema Films\n */\nexport const listCinemaFilms = async (params?: ListCinemaFilmsParams, options?: Parameters<typeof request>[1]): Promise<CinemaPage> => {\n\n return request<CinemaPage>(getListCinemaFilmsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadCinemaHomeUrl = (params?: ReadCinemaHomeParams,) => {\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 ? `/cvs/home?${stringifiedParams}` : `/cvs/home`\n}\n\n/**\n * Film rows and genre counts from authorized data, without fabricated curation.\n *\n * Popularity counts actual local openings in this tenant over seven days and\n * excludes reported/imported aggregates. Empty rows are omitted. More pages\n * use each section's documentsUrl. No partner requests are made here.\n * @summary Read Cinema Home\n */\nexport const readCinemaHome = async (params?: ReadCinemaHomeParams, options?: Parameters<typeof request>[1]): Promise<CinemaHomeRead> => {\n\n return request<CinemaHomeRead>(getReadCinemaHomeUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListCvsSelectionDocumentsUrl = (listId: number,\n params?: ListCvsSelectionDocumentsParams,) => {\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 ? `/cvs/lists/${listId}/documents?${stringifiedParams}` : `/cvs/lists/${listId}/documents`\n}\n\n/**\n * An owned list's accessible documents in its recorded list order.\n * @summary List Cvs Selection Documents\n */\nexport const listCvsSelectionDocuments = async (listId: number,\n params?: ListCvsSelectionDocumentsParams, options?: Parameters<typeof request>[1]): Promise<CinemaPage> => {\n\n return request<CinemaPage>(getListCvsSelectionDocumentsUrl(listId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadCinemaAccessUrl = (params?: ReadCinemaAccessParams,) => {\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 ? `/me/cinema?${stringifiedParams}` : `/me/cinema`\n}\n\n/**\n * Current allowance overview or exact film quote. No debit, loan or DRM call.\n *\n * Multiple balances must not be summed: films may use different grants. Add\n * docId on a film sheet. Refetch after starting a loan or playback. The write\n * rechecks rights and remaining units; this response is an informative snapshot.\n * @summary Read Cinema Access\n */\nexport const readCinemaAccess = async (params?: ReadCinemaAccessParams, options?: Parameters<typeof request>[1]): Promise<CinemaAccessRead> => {\n\n return request<CinemaAccessRead>(getReadCinemaAccessUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AA4BA,MAAa,8BAA8B;CAKzC,OAAO;AACT;;;;;;;;;;;AAYA,MAAa,kBAAkB,OAAO,qBAA0C,YAAmE;CAE/I,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,QAAsB,sBAAsB,GACjD;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AAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { ad as FavoriteListRead, sd as SelectionRead } from "../chunks/index.js";
2
+ import { Bd as FavoriteListRead, Hd as SelectionRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/cvs-favorites/cvs-favorites.d.ts
5
5
  export declare const getListCvsFavoritesUrl: () => string;
@@ -1 +1 @@
1
- {"version":3,"file":"cvs-favorites.js","names":[],"sources":["../../src/api/cvs-favorites/cvs-favorites.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.19.0\n */\nimport type {\n FavoriteListRead,\n SelectionRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListCvsFavoritesUrl = () => {\n\n\n\n\n return `/cvs/favorites`\n}\n\n/**\n * The caller's favourites.\n *\n * Entitlement-filtered. A title the library has stopped licensing stays in the\n * list — removing it silently would lose the patron's own curation over a\n * contract change they had nothing to do with — but it is not returned here,\n * because a client cannot open it. When the licence comes back, so does the\n * entry.\n * @summary List Cvs Favorites\n */\nexport const listCvsFavorites = async ( options?: Parameters<typeof request>[1]): Promise<FavoriteListRead> => {\n\n return request<FavoriteListRead>(getListCvsFavoritesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getRemoveCvsFavoriteUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/favorites/${docId}`\n}\n\n/**\n * Remove a work from the caller's list. Idempotent.\n *\n * Scoped to ``kind = 8`` through the list lookup, so this can never delete a\n * line out of the patron's loans or reservations — which live in the same two\n * tables and would look identical to a query that only matched on\n * ``(user_id, doc_id)``.\n * @summary Remove Cvs Favorite\n */\nexport const removeCvsFavorite = async (docId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRemoveCvsFavoriteUrl(docId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getAddCvsFavoriteUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/favorites/${docId}`\n}\n\n/**\n * Add a work to the caller's list. Idempotent.\n *\n * ``PUT`` and ``DELETE`` on the item, rather than the legacy's single route\n * answering both ``POST`` and ``DELETE`` on a path with a required\n * ``{selectionId}`` its own handler declares optional.\n *\n * Not entitlement-gated. A patron may bookmark something their library has not\n * licensed yet — that is a signal worth having, and it is what an acquisitions\n * request is made of. Reaching the work is gated, at the point of reaching it.\n * @summary Add Cvs Favorite\n */\nexport const addCvsFavorite = async (docId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getAddCvsFavoriteUrl(docId),\n {\n ...options,\n method: 'PUT'\n\n\n }\n);}\n\n\nexport const getListSelectionsUrl = () => {\n\n\n\n\n return `/cvs/lists`\n}\n\n/**\n * Every list this patron holds, of every kind.\n *\n * Read-only and deliberately unfiltered: a client showing \"my loans\" and \"my\n * list\" side by side needs to know which is which, and hiding the ILS-mirrored\n * kinds would only make it guess.\n * @summary List Selections\n */\nexport const listSelections = async ( options?: Parameters<typeof request>[1]): Promise<SelectionRead[]> => {\n\n return request<SelectionRead[]>(getListSelectionsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAcA,MAAa,+BAA+B;CAK1C,OAAO;AACT;;;;;;;;;;;AAYA,MAAa,mBAAmB,OAAQ,YAAuE;CAE7G,OAAO,QAA0B,uBAAuB,GACxD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B,UAAmB;CAKzD,OAAO,kBAAkB;AAC3B;;;;;;;;;;AAWA,MAAa,oBAAoB,OAAO,OAAe,YAA2D;CAEhH,OAAO,QAAc,wBAAwB,KAAK,GAClD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,wBAAwB,UAAmB;CAKtD,OAAO,kBAAkB;AAC3B;;;;;;;;;;;;;AAcA,MAAa,iBAAiB,OAAO,OAAe,YAA2D;CAE7G,OAAO,QAAc,qBAAqB,KAAK,GAC/C;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,6BAA6B;CAKxC,OAAO;AACT;;;;;;;;;AAUA,MAAa,iBAAiB,OAAQ,YAAsE;CAE1G,OAAO,QAAyB,qBAAqB,GACrD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"cvs-favorites.js","names":[],"sources":["../../src/api/cvs-favorites/cvs-favorites.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.20.2\n */\nimport type {\n FavoriteListRead,\n SelectionRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListCvsFavoritesUrl = () => {\n\n\n\n\n return `/cvs/favorites`\n}\n\n/**\n * The caller's favourites.\n *\n * Entitlement-filtered. A title the library has stopped licensing stays in the\n * list — removing it silently would lose the patron's own curation over a\n * contract change they had nothing to do with — but it is not returned here,\n * because a client cannot open it. When the licence comes back, so does the\n * entry.\n * @summary List Cvs Favorites\n */\nexport const listCvsFavorites = async ( options?: Parameters<typeof request>[1]): Promise<FavoriteListRead> => {\n\n return request<FavoriteListRead>(getListCvsFavoritesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getRemoveCvsFavoriteUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/favorites/${docId}`\n}\n\n/**\n * Remove a work from the caller's list. Idempotent.\n *\n * Scoped to ``kind = 8`` through the list lookup, so this can never delete a\n * line out of the patron's loans or reservations — which live in the same two\n * tables and would look identical to a query that only matched on\n * ``(user_id, doc_id)``.\n * @summary Remove Cvs Favorite\n */\nexport const removeCvsFavorite = async (docId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRemoveCvsFavoriteUrl(docId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getAddCvsFavoriteUrl = (docId: number,) => {\n\n\n\n\n return `/cvs/favorites/${docId}`\n}\n\n/**\n * Add a work to the caller's list. Idempotent.\n *\n * ``PUT`` and ``DELETE`` on the item, rather than the legacy's single route\n * answering both ``POST`` and ``DELETE`` on a path with a required\n * ``{selectionId}`` its own handler declares optional.\n *\n * Not entitlement-gated. A patron may bookmark something their library has not\n * licensed yet — that is a signal worth having, and it is what an acquisitions\n * request is made of. Reaching the work is gated, at the point of reaching it.\n * @summary Add Cvs Favorite\n */\nexport const addCvsFavorite = async (docId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getAddCvsFavoriteUrl(docId),\n {\n ...options,\n method: 'PUT'\n\n\n }\n);}\n\n\nexport const getListSelectionsUrl = () => {\n\n\n\n\n return `/cvs/lists`\n}\n\n/**\n * Every list this patron holds, of every kind.\n *\n * Read-only and deliberately unfiltered: a client showing \"my loans\" and \"my\n * list\" side by side needs to know which is which, and hiding the ILS-mirrored\n * kinds would only make it guess.\n * @summary List Selections\n */\nexport const listSelections = async ( options?: Parameters<typeof request>[1]): Promise<SelectionRead[]> => {\n\n return request<SelectionRead[]>(getListSelectionsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAcA,MAAa,+BAA+B;CAK1C,OAAO;AACT;;;;;;;;;;;AAYA,MAAa,mBAAmB,OAAQ,YAAuE;CAE7G,OAAO,QAA0B,uBAAuB,GACxD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B,UAAmB;CAKzD,OAAO,kBAAkB;AAC3B;;;;;;;;;;AAWA,MAAa,oBAAoB,OAAO,OAAe,YAA2D;CAEhH,OAAO,QAAc,wBAAwB,KAAK,GAClD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,wBAAwB,UAAmB;CAKtD,OAAO,kBAAkB;AAC3B;;;;;;;;;;;;;AAcA,MAAa,iBAAiB,OAAO,OAAe,YAA2D;CAE7G,OAAO,QAAc,qBAAqB,KAAK,GAC/C;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,6BAA6B;CAKxC,OAAO;AACT;;;;;;;;;AAUA,MAAa,iBAAiB,OAAQ,YAAsE;CAE1G,OAAO,QAAyB,qBAAqB,GACrD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { Cu as IlsHoldableRead, Ka as ListIlsLoansParams, Tu as IlsAccountRead, bu as IlsHoldWrite, fu as IlsStatusRead, gu as IlsLocationListRead, hu as IlsPasswordWrite, in as ReadIlsHoldableParams, lu as IlsTagWrite, mu as IlsReviewWrite, pu as IlsSignInWrite, uu as IlsSuggestionOptionListRead, vu as IlsLoanListRead, wu as IlsActionRead, xu as IlsHoldListRead } from "../chunks/index.js";
2
+ import { $u as IlsActionRead, Gu as IlsLocationListRead, Hu as IlsSignInWrite, Qu as IlsHoldableRead, Ru as IlsTagWrite, Uu as IlsReviewWrite, Vu as IlsStatusRead, Wu as IlsPasswordWrite, Xu as IlsHoldListRead, Yu as IlsHoldWrite, ed as IlsAccountRead, qu as IlsLoanListRead, sn as ReadIlsHoldableParams, vo as ListIlsLoansParams, zu as IlsSuggestionOptionListRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/cvs-ils/cvs-ils.d.ts
5
5
  export declare const getReadIlsAccountUrl: () => string;