@learnorama/mozaik-sdk 0.17.0-staging.56.1 → 0.17.2-staging.58.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 (290) hide show
  1. package/CVS-PLAYBACK.md +84 -124
  2. package/dist/api/account.d.ts +1 -1
  3. package/dist/api/account.js.map +1 -1
  4. package/dist/api/admin-catalogue.d.ts +1 -1
  5. package/dist/api/admin-catalogue.js.map +1 -1
  6. package/dist/api/admin-consumption.d.ts +1 -1
  7. package/dist/api/admin-consumption.js.map +1 -1
  8. package/dist/api/admin-contracts.d.ts +1 -1
  9. package/dist/api/admin-contracts.js.map +1 -1
  10. package/dist/api/admin-customer.d.ts +1 -1
  11. package/dist/api/admin-customer.js.map +1 -1
  12. package/dist/api/admin-desk.d.ts +1 -1
  13. package/dist/api/admin-desk.js.map +1 -1
  14. package/dist/api/admin-licenses.d.ts +1 -1
  15. package/dist/api/admin-licenses.js.map +1 -1
  16. package/dist/api/admin-partner-selections.d.ts +1 -1
  17. package/dist/api/admin-partner-selections.js.map +1 -1
  18. package/dist/api/admin-patrons.d.ts +1 -1
  19. package/dist/api/admin-patrons.js.map +1 -1
  20. package/dist/api/admin-reviews.d.ts +1 -1
  21. package/dist/api/admin-reviews.js.map +1 -1
  22. package/dist/api/admin-roles.d.ts +1 -1
  23. package/dist/api/admin-roles.js.map +1 -1
  24. package/dist/api/admin-support.d.ts +1 -1
  25. package/dist/api/admin-support.js.map +1 -1
  26. package/dist/api/admin-tenants.d.ts +1 -1
  27. package/dist/api/admin-tenants.js.map +1 -1
  28. package/dist/api/admin-tutoring.d.ts +1 -1
  29. package/dist/api/admin-tutoring.js.map +1 -1
  30. package/dist/api/admin-vod.d.ts +86 -0
  31. package/dist/api/admin-vod.js +194 -0
  32. package/dist/api/admin-vod.js.map +1 -0
  33. package/dist/api/auth-device.d.ts +1 -1
  34. package/dist/api/auth-device.js.map +1 -1
  35. package/dist/api/auth.d.ts +1 -1
  36. package/dist/api/auth.js.map +1 -1
  37. package/dist/api/biblio-billing-webhooks.d.ts +1 -1
  38. package/dist/api/biblio-billing-webhooks.js.map +1 -1
  39. package/dist/api/biblio-billing.d.ts +1 -1
  40. package/dist/api/biblio-billing.js.map +1 -1
  41. package/dist/api/biblio-catalogue.d.ts +1 -1
  42. package/dist/api/biblio-catalogue.js.map +1 -1
  43. package/dist/api/biblio-home.d.ts +1 -1
  44. package/dist/api/biblio-home.js.map +1 -1
  45. package/dist/api/biblio-learning-author-profiles.d.ts +1 -1
  46. package/dist/api/biblio-learning-author-profiles.js.map +1 -1
  47. package/dist/api/biblio-learning-authoring.d.ts +1 -1
  48. package/dist/api/biblio-learning-authoring.js.map +1 -1
  49. package/dist/api/biblio-learning-editorial.d.ts +1 -1
  50. package/dist/api/biblio-learning-editorial.js.map +1 -1
  51. package/dist/api/biblio-learning-feedback.d.ts +1 -1
  52. package/dist/api/biblio-learning-feedback.js.map +1 -1
  53. package/dist/api/biblio-learning-finance.d.ts +1 -1
  54. package/dist/api/biblio-learning-finance.js.map +1 -1
  55. package/dist/api/biblio-learning-integrations.d.ts +1 -1
  56. package/dist/api/biblio-learning-integrations.js.map +1 -1
  57. package/dist/api/biblio-learning-membership.d.ts +1 -1
  58. package/dist/api/biblio-learning-membership.js.map +1 -1
  59. package/dist/api/biblio-learning.d.ts +1 -1
  60. package/dist/api/biblio-learning.js.map +1 -1
  61. package/dist/api/biblio-library.d.ts +1 -1
  62. package/dist/api/biblio-library.js.map +1 -1
  63. package/dist/api/biblio-nextory.d.ts +1 -1
  64. package/dist/api/biblio-nextory.js.map +1 -1
  65. package/dist/api/biblio-press.d.ts +1 -1
  66. package/dist/api/biblio-press.js.map +1 -1
  67. package/dist/api/biblio-search.d.ts +1 -1
  68. package/dist/api/biblio-search.js.map +1 -1
  69. package/dist/api/biblio-telemetry.d.ts +1 -1
  70. package/dist/api/biblio-telemetry.js.map +1 -1
  71. package/dist/api/biblio-youscribe.js.map +1 -1
  72. package/dist/api/consumption.d.ts +1 -1
  73. package/dist/api/consumption.js.map +1 -1
  74. package/dist/api/cvs-app.d.ts +1 -1
  75. package/dist/api/cvs-app.js.map +1 -1
  76. package/dist/api/cvs-documents.d.ts +1 -1
  77. package/dist/api/cvs-documents.js.map +1 -1
  78. package/dist/api/cvs-favorites.d.ts +1 -1
  79. package/dist/api/cvs-favorites.js.map +1 -1
  80. package/dist/api/cvs-ils.d.ts +1 -1
  81. package/dist/api/cvs-ils.js.map +1 -1
  82. package/dist/api/cvs-loans.d.ts +1 -1
  83. package/dist/api/cvs-loans.js.map +1 -1
  84. package/dist/api/cvs-payments.d.ts +36 -1
  85. package/dist/api/cvs-payments.js +43 -1
  86. package/dist/api/cvs-payments.js.map +1 -1
  87. package/dist/api/cvs-streaming.d.ts +23 -32
  88. package/dist/api/cvs-streaming.js +43 -32
  89. package/dist/api/cvs-streaming.js.map +1 -1
  90. package/dist/api/index.d.ts +4 -3
  91. package/dist/api/index.js +4 -3
  92. package/dist/api/partner-catalogue.d.ts +1 -1
  93. package/dist/api/partner-catalogue.js.map +1 -1
  94. package/dist/api/partner-reader-nextory.d.ts +23 -27
  95. package/dist/api/partner-reader-nextory.js +21 -25
  96. package/dist/api/partner-reader-nextory.js.map +1 -1
  97. package/dist/api/partner-reader-youscribe.d.ts +1 -1
  98. package/dist/api/partner-reader-youscribe.js.map +1 -1
  99. package/dist/api/partner-reading.d.ts +1 -1
  100. package/dist/api/partner-reading.js.map +1 -1
  101. package/dist/api/profiles.d.ts +1 -1
  102. package/dist/api/profiles.js.map +1 -1
  103. package/dist/api/search.d.ts +1 -1
  104. package/dist/api/search.js.map +1 -1
  105. package/dist/api/tutoring-catalogue.d.ts +1 -1
  106. package/dist/api/tutoring-catalogue.js.map +1 -1
  107. package/dist/api/tutoring-chat.d.ts +1 -1
  108. package/dist/api/tutoring-chat.js.map +1 -1
  109. package/dist/api/tutoring-dispatch.d.ts +1 -1
  110. package/dist/api/tutoring-dispatch.js.map +1 -1
  111. package/dist/api/tutoring-practitioner.d.ts +1 -1
  112. package/dist/api/tutoring-practitioner.js.map +1 -1
  113. package/dist/api/tutoring-requests.d.ts +1 -1
  114. package/dist/api/tutoring-requests.js.map +1 -1
  115. package/dist/auth.d.ts +1 -1
  116. package/dist/chunks/client2.d.ts +1 -1
  117. package/dist/chunks/connection.d.ts +1 -1
  118. package/dist/chunks/index.d.ts +1130 -613
  119. package/dist/index.d.ts +3 -3
  120. package/dist/index.js +3 -3
  121. package/dist/index.js.map +1 -1
  122. package/dist/models.d.ts +2 -2
  123. package/dist/models.js +40 -2
  124. package/dist/models.js.map +1 -1
  125. package/dist/react/account.d.ts +1 -1
  126. package/dist/react/account.js +1 -1
  127. package/dist/react/account.js.map +1 -1
  128. package/dist/react/admin-catalogue.d.ts +1 -1
  129. package/dist/react/admin-catalogue.js +1 -1
  130. package/dist/react/admin-catalogue.js.map +1 -1
  131. package/dist/react/admin-consumption.d.ts +1 -1
  132. package/dist/react/admin-consumption.js +1 -1
  133. package/dist/react/admin-consumption.js.map +1 -1
  134. package/dist/react/admin-contracts.d.ts +1 -1
  135. package/dist/react/admin-contracts.js +1 -1
  136. package/dist/react/admin-contracts.js.map +1 -1
  137. package/dist/react/admin-customer.d.ts +1 -1
  138. package/dist/react/admin-customer.js +1 -1
  139. package/dist/react/admin-customer.js.map +1 -1
  140. package/dist/react/admin-desk.d.ts +1 -1
  141. package/dist/react/admin-desk.js +1 -1
  142. package/dist/react/admin-desk.js.map +1 -1
  143. package/dist/react/admin-licenses.d.ts +1 -1
  144. package/dist/react/admin-licenses.js +1 -1
  145. package/dist/react/admin-licenses.js.map +1 -1
  146. package/dist/react/admin-partner-selections.d.ts +1 -1
  147. package/dist/react/admin-partner-selections.js +1 -1
  148. package/dist/react/admin-partner-selections.js.map +1 -1
  149. package/dist/react/admin-patrons.d.ts +1 -1
  150. package/dist/react/admin-patrons.js +1 -1
  151. package/dist/react/admin-patrons.js.map +1 -1
  152. package/dist/react/admin-reviews.d.ts +1 -1
  153. package/dist/react/admin-reviews.js +1 -1
  154. package/dist/react/admin-reviews.js.map +1 -1
  155. package/dist/react/admin-roles.d.ts +1 -1
  156. package/dist/react/admin-roles.js +1 -1
  157. package/dist/react/admin-roles.js.map +1 -1
  158. package/dist/react/admin-support.d.ts +1 -1
  159. package/dist/react/admin-support.js +1 -1
  160. package/dist/react/admin-support.js.map +1 -1
  161. package/dist/react/admin-tenants.d.ts +1 -1
  162. package/dist/react/admin-tenants.js +1 -1
  163. package/dist/react/admin-tenants.js.map +1 -1
  164. package/dist/react/admin-tutoring.d.ts +1 -1
  165. package/dist/react/admin-tutoring.js +1 -1
  166. package/dist/react/admin-tutoring.js.map +1 -1
  167. package/dist/react/admin-vod.d.ts +285 -0
  168. package/dist/react/admin-vod.js +453 -0
  169. package/dist/react/admin-vod.js.map +1 -0
  170. package/dist/react/auth-device.d.ts +1 -1
  171. package/dist/react/auth-device.js +1 -1
  172. package/dist/react/auth-device.js.map +1 -1
  173. package/dist/react/auth.d.ts +1 -1
  174. package/dist/react/auth.js +1 -1
  175. package/dist/react/auth.js.map +1 -1
  176. package/dist/react/biblio-billing-webhooks.d.ts +1 -1
  177. package/dist/react/biblio-billing-webhooks.js +1 -1
  178. package/dist/react/biblio-billing-webhooks.js.map +1 -1
  179. package/dist/react/biblio-billing.d.ts +1 -1
  180. package/dist/react/biblio-billing.js +1 -1
  181. package/dist/react/biblio-billing.js.map +1 -1
  182. package/dist/react/biblio-catalogue.d.ts +1 -1
  183. package/dist/react/biblio-catalogue.js +1 -1
  184. package/dist/react/biblio-catalogue.js.map +1 -1
  185. package/dist/react/biblio-home.d.ts +1 -1
  186. package/dist/react/biblio-home.js +1 -1
  187. package/dist/react/biblio-home.js.map +1 -1
  188. package/dist/react/biblio-learning-author-profiles.d.ts +1 -1
  189. package/dist/react/biblio-learning-author-profiles.js +1 -1
  190. package/dist/react/biblio-learning-author-profiles.js.map +1 -1
  191. package/dist/react/biblio-learning-authoring.d.ts +1 -1
  192. package/dist/react/biblio-learning-authoring.js +1 -1
  193. package/dist/react/biblio-learning-authoring.js.map +1 -1
  194. package/dist/react/biblio-learning-editorial.d.ts +1 -1
  195. package/dist/react/biblio-learning-editorial.js +1 -1
  196. package/dist/react/biblio-learning-editorial.js.map +1 -1
  197. package/dist/react/biblio-learning-feedback.d.ts +1 -1
  198. package/dist/react/biblio-learning-feedback.js +1 -1
  199. package/dist/react/biblio-learning-feedback.js.map +1 -1
  200. package/dist/react/biblio-learning-finance.d.ts +1 -1
  201. package/dist/react/biblio-learning-finance.js +1 -1
  202. package/dist/react/biblio-learning-finance.js.map +1 -1
  203. package/dist/react/biblio-learning-integrations.d.ts +1 -1
  204. package/dist/react/biblio-learning-integrations.js +1 -1
  205. package/dist/react/biblio-learning-integrations.js.map +1 -1
  206. package/dist/react/biblio-learning-membership.d.ts +1 -1
  207. package/dist/react/biblio-learning-membership.js +1 -1
  208. package/dist/react/biblio-learning-membership.js.map +1 -1
  209. package/dist/react/biblio-learning.d.ts +1 -1
  210. package/dist/react/biblio-learning.js +1 -1
  211. package/dist/react/biblio-learning.js.map +1 -1
  212. package/dist/react/biblio-library.d.ts +1 -1
  213. package/dist/react/biblio-library.js +1 -1
  214. package/dist/react/biblio-library.js.map +1 -1
  215. package/dist/react/biblio-nextory.d.ts +1 -1
  216. package/dist/react/biblio-nextory.js +1 -1
  217. package/dist/react/biblio-nextory.js.map +1 -1
  218. package/dist/react/biblio-press.d.ts +1 -1
  219. package/dist/react/biblio-press.js +1 -1
  220. package/dist/react/biblio-press.js.map +1 -1
  221. package/dist/react/biblio-search.d.ts +1 -1
  222. package/dist/react/biblio-search.js +1 -1
  223. package/dist/react/biblio-search.js.map +1 -1
  224. package/dist/react/biblio-telemetry.d.ts +1 -1
  225. package/dist/react/biblio-telemetry.js +1 -1
  226. package/dist/react/biblio-telemetry.js.map +1 -1
  227. package/dist/react/biblio-youscribe.d.ts +1 -1
  228. package/dist/react/biblio-youscribe.js +1 -1
  229. package/dist/react/biblio-youscribe.js.map +1 -1
  230. package/dist/react/chat.d.ts +1 -1
  231. package/dist/react/consumption.d.ts +1 -1
  232. package/dist/react/consumption.js +1 -1
  233. package/dist/react/consumption.js.map +1 -1
  234. package/dist/react/cvs-app.d.ts +1 -1
  235. package/dist/react/cvs-app.js +1 -1
  236. package/dist/react/cvs-app.js.map +1 -1
  237. package/dist/react/cvs-documents.d.ts +1 -1
  238. package/dist/react/cvs-documents.js +1 -1
  239. package/dist/react/cvs-documents.js.map +1 -1
  240. package/dist/react/cvs-favorites.d.ts +1 -1
  241. package/dist/react/cvs-favorites.js +1 -1
  242. package/dist/react/cvs-favorites.js.map +1 -1
  243. package/dist/react/cvs-ils.d.ts +1 -1
  244. package/dist/react/cvs-ils.js +1 -1
  245. package/dist/react/cvs-ils.js.map +1 -1
  246. package/dist/react/cvs-loans.d.ts +1 -1
  247. package/dist/react/cvs-loans.js +1 -1
  248. package/dist/react/cvs-loans.js.map +1 -1
  249. package/dist/react/cvs-payments.d.ts +50 -1
  250. package/dist/react/cvs-payments.js +71 -2
  251. package/dist/react/cvs-payments.js.map +1 -1
  252. package/dist/react/cvs-streaming.d.ts +43 -32
  253. package/dist/react/cvs-streaming.js +72 -33
  254. package/dist/react/cvs-streaming.js.map +1 -1
  255. package/dist/react/index.d.ts +4 -3
  256. package/dist/react/index.js +4 -3
  257. package/dist/react/partner-catalogue.d.ts +1 -1
  258. package/dist/react/partner-catalogue.js +1 -1
  259. package/dist/react/partner-catalogue.js.map +1 -1
  260. package/dist/react/partner-reader-nextory.d.ts +23 -27
  261. package/dist/react/partner-reader-nextory.js +22 -26
  262. package/dist/react/partner-reader-nextory.js.map +1 -1
  263. package/dist/react/partner-reader-youscribe.d.ts +1 -1
  264. package/dist/react/partner-reader-youscribe.js +1 -1
  265. package/dist/react/partner-reader-youscribe.js.map +1 -1
  266. package/dist/react/partner-reading.d.ts +1 -1
  267. package/dist/react/partner-reading.js +1 -1
  268. package/dist/react/partner-reading.js.map +1 -1
  269. package/dist/react/profiles.d.ts +1 -1
  270. package/dist/react/profiles.js +1 -1
  271. package/dist/react/profiles.js.map +1 -1
  272. package/dist/react/search.d.ts +1 -1
  273. package/dist/react/search.js +1 -1
  274. package/dist/react/search.js.map +1 -1
  275. package/dist/react/tutoring-catalogue.d.ts +1 -1
  276. package/dist/react/tutoring-catalogue.js +1 -1
  277. package/dist/react/tutoring-catalogue.js.map +1 -1
  278. package/dist/react/tutoring-chat.d.ts +1 -1
  279. package/dist/react/tutoring-chat.js +1 -1
  280. package/dist/react/tutoring-chat.js.map +1 -1
  281. package/dist/react/tutoring-dispatch.d.ts +1 -1
  282. package/dist/react/tutoring-dispatch.js +1 -1
  283. package/dist/react/tutoring-dispatch.js.map +1 -1
  284. package/dist/react/tutoring-practitioner.d.ts +1 -1
  285. package/dist/react/tutoring-practitioner.js +1 -1
  286. package/dist/react/tutoring-practitioner.js.map +1 -1
  287. package/dist/react/tutoring-requests.d.ts +1 -1
  288. package/dist/react/tutoring-requests.js +1 -1
  289. package/dist/react/tutoring-requests.js.map +1 -1
  290. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"partner-catalogue.js","names":[],"sources":["../../src/api/partner-catalogue/partner-catalogue.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.17.0\n */\nimport type {\n CurrentReadingListRead,\n ListMediaParams,\n ListPartnerSelectionMediaParams,\n ListPartnerSelectionsParams,\n PartnerCategoryListRead,\n PartnerFacetsRead,\n PartnerFavoriteListRead,\n PartnerHomeRead,\n PartnerMediaPage,\n PartnerMediaRead,\n PartnerProvider,\n PartnerSelectionListRead,\n ReadPartnerFacetsParams,\n ReadPartnerHomeParams\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListPartnerCategoriesUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/categories`\n}\n\n/**\n * The provider's taxonomy, with a count per node for this caller's slice.\n *\n * Counts come from ``partner_category_total`` and are summed across languages,\n * because the menu shows one number and the rollup is keyed per language. A\n * node with no matching rollup row reports ``0`` rather than being hidden: the\n * tree shape is stable, and a branch that vanishes because today's import found\n * nothing in it is harder to reason about than one that reads zero.\n * @summary List Partner Categories\n */\nexport const listPartnerCategories = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<PartnerCategoryListRead> => {\n\n return request<PartnerCategoryListRead>(getListPartnerCategoriesUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPartnerFacetsUrl = (provider: PartnerProvider,\n params?: ReadPartnerFacetsParams,) => {\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 ? `/partners/${provider}/facets?${stringifiedParams}` : `/partners/${provider}/facets`\n}\n\n/**\n * Available languages and shelves in this profile's visible catalogue.\n *\n * Values are usable directly in ``/media`` filters, including the empty\n * language value for titles whose provider supplied no language. Each facet\n * drops its own filter so alternatives remain reachable.\n * @summary Read Partner Facets\n */\nexport const readPartnerFacets = async (provider: PartnerProvider,\n params?: ReadPartnerFacetsParams, options?: Parameters<typeof request>[1]): Promise<PartnerFacetsRead> => {\n\n return request<PartnerFacetsRead>(getReadPartnerFacetsUrl(provider,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListPartnerFavoritesUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/favorites`\n}\n\n/**\n * This reader's bookmarks, filtered to what they may still see.\n *\n * The filter matters: a title can become adult-only, or leave the plan, between\n * being bookmarked and being listed. The legacy joined favourites to media with\n * no visibility predicate at all.\n * @summary List Partner Favorites\n */\nexport const listPartnerFavorites = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<PartnerFavoriteListRead> => {\n\n return request<PartnerFavoriteListRead>(getListPartnerFavoritesUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getRemovePartnerFavoriteUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/favorites/${mediaId}`\n}\n\n/**\n * Remove a bookmark. Idempotent, and deliberately not visibility-filtered.\n *\n * A reader must be able to unbookmark a title they can no longer see —\n * otherwise a media leaving their plan strands a row they have no way to\n * remove.\n * @summary Remove Partner Favorite\n */\nexport const removePartnerFavorite = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRemovePartnerFavoriteUrl(provider,mediaId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getAddPartnerFavoriteUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/favorites/${mediaId}`\n}\n\n/**\n * Bookmark a title. Idempotent.\n *\n * ``PUT``/``DELETE`` rather than the legacy's ``POST /toggle-favorite.json``. A\n * toggle is not idempotent, and the legacy's had no uniqueness behind it: two\n * tabs toggling at once left two rows, and un-toggling then removed one of\n * them, so the title stayed bookmarked.\n * @summary Add Partner Favorite\n */\nexport const addPartnerFavorite = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getAddPartnerFavoriteUrl(provider,mediaId),\n {\n ...options,\n method: 'PUT'\n\n\n }\n);}\n\n\nexport const getReadPartnerHomeUrl = (provider: PartnerProvider,\n params?: ReadPartnerHomeParams,) => {\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 ? `/partners/${provider}/home-feed?${stringifiedParams}` : `/partners/${provider}/home-feed`\n}\n\n/**\n * Visible shelves, favourites and locally saved readings for this profile.\n *\n * At most ``limit`` cards per section. No provider request, reader URL, licence\n * allocation or consumption event is produced by browsing this home.\n * @summary Read Partner Home\n */\nexport const readPartnerHome = async (provider: PartnerProvider,\n params?: ReadPartnerHomeParams, options?: Parameters<typeof request>[1]): Promise<PartnerHomeRead> => {\n\n return request<PartnerHomeRead>(getReadPartnerHomeUrl(provider,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListMediaUrl = (provider: PartnerProvider,\n params?: ListMediaParams,) => {\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 ? `/partners/${provider}/media?${stringifiedParams}` : `/partners/${provider}/media`\n}\n\n/**\n * A page of the catalogue.\n *\n * ``q`` ranks through Elasticsearch and then **intersects** with the same\n * visibility subquery as an unfiltered listing — the index knows nothing about\n * plans or ages, so authorisation happens here whatever the index returns. An\n * index that is missing or unreachable yields no candidates, which reads as an\n * empty page rather than an unfiltered one.\n *\n * A search result keeps the index's ranking rather than applying ``order``:\n * re-sorting relevance by publication date discards the only thing the search\n * contributed. That is why ``order`` is ignored when ``q`` is present, not\n * silently combined with it.\n * @summary List Media\n */\nexport const listMedia = async (provider: PartnerProvider,\n params?: ListMediaParams, options?: Parameters<typeof request>[1]): Promise<PartnerMediaPage> => {\n\n return request<PartnerMediaPage>(getListMediaUrl(provider,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadMediaUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/media/${mediaId}`\n}\n\n/**\n * One title.\n *\n * A media outside the caller's slice is ``404``, not ``403``: whether an adult\n * title exists is itself something a minor's client should not be able to\n * determine, and the legacy's detail page dereferenced an unknown id straight\n * into a 500.\n * @summary Read Media\n */\nexport const readMedia = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<PartnerMediaRead> => {\n\n return request<PartnerMediaRead>(getReadMediaUrl(provider,mediaId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListCurrentReadingsUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/readings`\n}\n\n/**\n * The partner's own \"continue reading\" list, joined back to our catalogue.\n *\n * Here rather than with the reader routes, because it is a shelf and not a\n * read: a page of titles with their covers and a progress bar, like the\n * favourites beside it. Nothing opens here.\n *\n * And genuinely mirrored, which the reader operations are not — both partners\n * answer the same question, so ``{provider}`` says something true. The service\n * resolves which one to ask; the catalogue join, the visibility filtering and\n * the ordering are one piece of code for both.\n *\n * No branch here on purpose: the partner is in the URL so that nothing below\n * has to ask. ``partner_reader.readings`` resolves it, and the two partners'\n * answers differ only in how the list is obtained — the catalogue join, the\n * visibility filtering and the ordering are one piece of code for both.\n * @summary List Current Readings\n */\nexport const listCurrentReadings = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<CurrentReadingListRead> => {\n\n return request<CurrentReadingListRead>(getListCurrentReadingsUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListPartnerSelectionsUrl = (provider: PartnerProvider,\n params?: ListPartnerSelectionsParams,) => {\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 ? `/partners/${provider}/selections?${stringifiedParams}` : `/partners/${provider}/selections`\n}\n\n/**\n * The published bands of one page, in the order they hold there.\n *\n * Titles and ids only: each band loads its own media through the endpoint\n * below, as every other shelf on these pages does.\n *\n * A band standing on the other shelf is absent rather than empty — see\n * ``cat.visible_selections`` for why that is a listing decision and not a\n * filtering one. A page nobody curated answers an empty list, which is what a\n * page with no bands looks like; it is not a 404.\n * @summary List Partner Selections\n */\nexport const listPartnerSelections = async (provider: PartnerProvider,\n params?: ListPartnerSelectionsParams, options?: Parameters<typeof request>[1]): Promise<PartnerSelectionListRead> => {\n\n return request<PartnerSelectionListRead>(getListPartnerSelectionsUrl(provider,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListPartnerSelectionMediaUrl = (provider: PartnerProvider,\n selectionId: number,\n params?: ListPartnerSelectionMediaParams,) => {\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 ? `/partners/${provider}/selections/${selectionId}/media?${stringifiedParams}` : `/partners/${provider}/selections/${selectionId}/media`\n}\n\n/**\n * What one band holds, in the order an editor arranged it.\n *\n * The band is checked against the same visibility as the listing, so a band\n * for the other shelf is a ``404`` rather than an empty page: whether a\n * library band exists is not something a reader without one should learn by\n * its id answering differently.\n *\n * Its contents go through ``visible_media`` like any other listing. A band is\n * an editorial arrangement, never an entitlement: a title that left the\n * catalogue, turned adult-only or fell outside this caller's plan is absent\n * here too, and the total counts what remains rather than what was curated.\n *\n * **Pagination only, and that is the whole contract.** A band is an\n * arrangement: the order *is* the content, and an editor who placed twelve\n * covers did not place them alphabetically or by language. It took\n * ``PartnerMediaQuery`` and applied none of ``media_type``, ``category_id``,\n * ``language``, ``q`` or ``order`` — a caller filtering a band got the band,\n * which is worse than being refused, because nothing said so.\n *\n * The legacy accepts no caller filter here either. Its band listing applies\n * ``MediaFilter::forReader`` — the reader's shelf, the catalogue's own media\n * types and the adult gate — all three properties of the reader, none of them\n * a request parameter.\n * @summary List Partner Selection Media\n */\nexport const listPartnerSelectionMedia = async (provider: PartnerProvider,\n selectionId: number,\n params?: ListPartnerSelectionMediaParams, options?: Parameters<typeof request>[1]): Promise<PartnerMediaPage> => {\n\n return request<PartnerMediaPage>(getListPartnerSelectionMediaUrl(provider,selectionId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AA0BA,MAAa,+BAA+B,aAA+B;CAKzE,OAAO,aAAa,SAAS;AAC/B;;;;;;;;;;;AAYA,MAAa,wBAAwB,OAAO,UAA2B,YAA8E;CAEnJ,OAAO,QAAiC,4BAA4B,QAAQ,GAC5E;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B,UACpC,WAAsC;CACxC,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,aAAa,SAAS,UAAU,sBAAsB,aAAa,SAAS;AACpH;;;;;;;;;AAUA,MAAa,oBAAoB,OAAO,UACpC,QAAkC,YAAwE;CAE5G,OAAO,QAA2B,wBAAwB,UAAS,MAAM,GACzE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,8BAA8B,aAA+B;CAKxE,OAAO,aAAa,SAAS;AAC/B;;;;;;;;;AAUA,MAAa,uBAAuB,OAAO,UAA2B,YAA8E;CAElJ,OAAO,QAAiC,2BAA2B,QAAQ,GAC3E;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,+BAA+B,UACxC,YAAqB;CAKvB,OAAO,aAAa,SAAS,aAAa;AAC5C;;;;;;;;;AAUA,MAAa,wBAAwB,OAAO,UACxC,SAAiB,YAA2D;CAE9E,OAAO,QAAc,4BAA4B,UAAS,OAAO,GACjE;EAC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pD,OAAO,kBAAkB,SAAS,IAAI,aAAa,SAAS,cAAc,YAAY,SAAS,sBAAsB,aAAa,SAAS,cAAc,YAAY;AACvK;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAa,4BAA4B,OAAO,UAC5C,aACA,QAA0C,YAAuE;CAEnH,OAAO,QAA0B,gCAAgC,UAAS,aAAY,MAAM,GAC5F;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"partner-catalogue.js","names":[],"sources":["../../src/api/partner-catalogue/partner-catalogue.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.17.2\n */\nimport type {\n CurrentReadingListRead,\n ListMediaParams,\n ListPartnerSelectionMediaParams,\n ListPartnerSelectionsParams,\n PartnerCategoryListRead,\n PartnerFacetsRead,\n PartnerFavoriteListRead,\n PartnerHomeRead,\n PartnerMediaPage,\n PartnerMediaRead,\n PartnerProvider,\n PartnerSelectionListRead,\n ReadPartnerFacetsParams,\n ReadPartnerHomeParams\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListPartnerCategoriesUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/categories`\n}\n\n/**\n * The provider's taxonomy, with a count per node for this caller's slice.\n *\n * Counts come from ``partner_category_total`` and are summed across languages,\n * because the menu shows one number and the rollup is keyed per language. A\n * node with no matching rollup row reports ``0`` rather than being hidden: the\n * tree shape is stable, and a branch that vanishes because today's import found\n * nothing in it is harder to reason about than one that reads zero.\n * @summary List Partner Categories\n */\nexport const listPartnerCategories = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<PartnerCategoryListRead> => {\n\n return request<PartnerCategoryListRead>(getListPartnerCategoriesUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPartnerFacetsUrl = (provider: PartnerProvider,\n params?: ReadPartnerFacetsParams,) => {\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 ? `/partners/${provider}/facets?${stringifiedParams}` : `/partners/${provider}/facets`\n}\n\n/**\n * Available languages and shelves in this profile's visible catalogue.\n *\n * Values are usable directly in ``/media`` filters, including the empty\n * language value for titles whose provider supplied no language. Each facet\n * drops its own filter so alternatives remain reachable.\n * @summary Read Partner Facets\n */\nexport const readPartnerFacets = async (provider: PartnerProvider,\n params?: ReadPartnerFacetsParams, options?: Parameters<typeof request>[1]): Promise<PartnerFacetsRead> => {\n\n return request<PartnerFacetsRead>(getReadPartnerFacetsUrl(provider,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListPartnerFavoritesUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/favorites`\n}\n\n/**\n * This reader's bookmarks, filtered to what they may still see.\n *\n * The filter matters: a title can become adult-only, or leave the plan, between\n * being bookmarked and being listed. The legacy joined favourites to media with\n * no visibility predicate at all.\n * @summary List Partner Favorites\n */\nexport const listPartnerFavorites = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<PartnerFavoriteListRead> => {\n\n return request<PartnerFavoriteListRead>(getListPartnerFavoritesUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getRemovePartnerFavoriteUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/favorites/${mediaId}`\n}\n\n/**\n * Remove a bookmark. Idempotent, and deliberately not visibility-filtered.\n *\n * A reader must be able to unbookmark a title they can no longer see —\n * otherwise a media leaving their plan strands a row they have no way to\n * remove.\n * @summary Remove Partner Favorite\n */\nexport const removePartnerFavorite = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRemovePartnerFavoriteUrl(provider,mediaId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getAddPartnerFavoriteUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/favorites/${mediaId}`\n}\n\n/**\n * Bookmark a title. Idempotent.\n *\n * ``PUT``/``DELETE`` rather than the legacy's ``POST /toggle-favorite.json``. A\n * toggle is not idempotent, and the legacy's had no uniqueness behind it: two\n * tabs toggling at once left two rows, and un-toggling then removed one of\n * them, so the title stayed bookmarked.\n * @summary Add Partner Favorite\n */\nexport const addPartnerFavorite = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getAddPartnerFavoriteUrl(provider,mediaId),\n {\n ...options,\n method: 'PUT'\n\n\n }\n);}\n\n\nexport const getReadPartnerHomeUrl = (provider: PartnerProvider,\n params?: ReadPartnerHomeParams,) => {\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 ? `/partners/${provider}/home-feed?${stringifiedParams}` : `/partners/${provider}/home-feed`\n}\n\n/**\n * Visible shelves, favourites and locally saved readings for this profile.\n *\n * At most ``limit`` cards per section. No provider request, reader URL, licence\n * allocation or consumption event is produced by browsing this home.\n * @summary Read Partner Home\n */\nexport const readPartnerHome = async (provider: PartnerProvider,\n params?: ReadPartnerHomeParams, options?: Parameters<typeof request>[1]): Promise<PartnerHomeRead> => {\n\n return request<PartnerHomeRead>(getReadPartnerHomeUrl(provider,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListMediaUrl = (provider: PartnerProvider,\n params?: ListMediaParams,) => {\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 ? `/partners/${provider}/media?${stringifiedParams}` : `/partners/${provider}/media`\n}\n\n/**\n * A page of the catalogue.\n *\n * ``q`` ranks through Elasticsearch and then **intersects** with the same\n * visibility subquery as an unfiltered listing — the index knows nothing about\n * plans or ages, so authorisation happens here whatever the index returns. An\n * index that is missing or unreachable yields no candidates, which reads as an\n * empty page rather than an unfiltered one.\n *\n * A search result keeps the index's ranking rather than applying ``order``:\n * re-sorting relevance by publication date discards the only thing the search\n * contributed. That is why ``order`` is ignored when ``q`` is present, not\n * silently combined with it.\n * @summary List Media\n */\nexport const listMedia = async (provider: PartnerProvider,\n params?: ListMediaParams, options?: Parameters<typeof request>[1]): Promise<PartnerMediaPage> => {\n\n return request<PartnerMediaPage>(getListMediaUrl(provider,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadMediaUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/media/${mediaId}`\n}\n\n/**\n * One title.\n *\n * A media outside the caller's slice is ``404``, not ``403``: whether an adult\n * title exists is itself something a minor's client should not be able to\n * determine, and the legacy's detail page dereferenced an unknown id straight\n * into a 500.\n * @summary Read Media\n */\nexport const readMedia = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<PartnerMediaRead> => {\n\n return request<PartnerMediaRead>(getReadMediaUrl(provider,mediaId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListCurrentReadingsUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/readings`\n}\n\n/**\n * The partner's own \"continue reading\" list, joined back to our catalogue.\n *\n * Here rather than with the reader routes, because it is a shelf and not a\n * read: a page of titles with their covers and a progress bar, like the\n * favourites beside it. Nothing opens here.\n *\n * And genuinely mirrored, which the reader operations are not — both partners\n * answer the same question, so ``{provider}`` says something true. The service\n * resolves which one to ask; the catalogue join, the visibility filtering and\n * the ordering are one piece of code for both.\n *\n * No branch here on purpose: the partner is in the URL so that nothing below\n * has to ask. ``partner_reader.readings`` resolves it, and the two partners'\n * answers differ only in how the list is obtained — the catalogue join, the\n * visibility filtering and the ordering are one piece of code for both.\n * @summary List Current Readings\n */\nexport const listCurrentReadings = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<CurrentReadingListRead> => {\n\n return request<CurrentReadingListRead>(getListCurrentReadingsUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListPartnerSelectionsUrl = (provider: PartnerProvider,\n params?: ListPartnerSelectionsParams,) => {\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 ? `/partners/${provider}/selections?${stringifiedParams}` : `/partners/${provider}/selections`\n}\n\n/**\n * The published bands of one page, in the order they hold there.\n *\n * Titles and ids only: each band loads its own media through the endpoint\n * below, as every other shelf on these pages does.\n *\n * A band standing on the other shelf is absent rather than empty — see\n * ``cat.visible_selections`` for why that is a listing decision and not a\n * filtering one. A page nobody curated answers an empty list, which is what a\n * page with no bands looks like; it is not a 404.\n * @summary List Partner Selections\n */\nexport const listPartnerSelections = async (provider: PartnerProvider,\n params?: ListPartnerSelectionsParams, options?: Parameters<typeof request>[1]): Promise<PartnerSelectionListRead> => {\n\n return request<PartnerSelectionListRead>(getListPartnerSelectionsUrl(provider,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListPartnerSelectionMediaUrl = (provider: PartnerProvider,\n selectionId: number,\n params?: ListPartnerSelectionMediaParams,) => {\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 ? `/partners/${provider}/selections/${selectionId}/media?${stringifiedParams}` : `/partners/${provider}/selections/${selectionId}/media`\n}\n\n/**\n * What one band holds, in the order an editor arranged it.\n *\n * The band is checked against the same visibility as the listing, so a band\n * for the other shelf is a ``404`` rather than an empty page: whether a\n * library band exists is not something a reader without one should learn by\n * its id answering differently.\n *\n * Its contents go through ``visible_media`` like any other listing. A band is\n * an editorial arrangement, never an entitlement: a title that left the\n * catalogue, turned adult-only or fell outside this caller's plan is absent\n * here too, and the total counts what remains rather than what was curated.\n *\n * **Pagination only, and that is the whole contract.** A band is an\n * arrangement: the order *is* the content, and an editor who placed twelve\n * covers did not place them alphabetically or by language. It took\n * ``PartnerMediaQuery`` and applied none of ``media_type``, ``category_id``,\n * ``language``, ``q`` or ``order`` — a caller filtering a band got the band,\n * which is worse than being refused, because nothing said so.\n *\n * The legacy accepts no caller filter here either. Its band listing applies\n * ``MediaFilter::forReader`` — the reader's shelf, the catalogue's own media\n * types and the adult gate — all three properties of the reader, none of them\n * a request parameter.\n * @summary List Partner Selection Media\n */\nexport const listPartnerSelectionMedia = async (provider: PartnerProvider,\n selectionId: number,\n params?: ListPartnerSelectionMediaParams, options?: Parameters<typeof request>[1]): Promise<PartnerMediaPage> => {\n\n return request<PartnerMediaPage>(getListPartnerSelectionMediaUrl(provider,selectionId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AA0BA,MAAa,+BAA+B,aAA+B;CAKzE,OAAO,aAAa,SAAS;AAC/B;;;;;;;;;;;AAYA,MAAa,wBAAwB,OAAO,UAA2B,YAA8E;CAEnJ,OAAO,QAAiC,4BAA4B,QAAQ,GAC5E;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B,UACpC,WAAs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import { Qt as ReadingPositionRead, Ut as ReadPackageParams, Zt as ReadingPositionWrite, qi as NextoryPackageRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/partner-reader-nextory/partner-reader-nextory.d.ts
5
5
  export declare const getReadPackageUrl: (mediaId: number, params?: ReadPackageParams) => string;
6
6
  /**
7
- * Where to fetch the content itself.
7
+ * The package the local player opens, and the lease of this reading.
8
8
  *
9
- * The returned URL is a short-lived DRM-wrapped credential. It is not cached
10
- * here and should not be stored by the client.
9
+ * The legacy's ``get-epub-package`` and ``get-audio-package``, by ``format``.
10
+ * The package carries short-lived credentials: it is not cached here and
11
+ * should not be stored by the client.
11
12
  *
12
- * Opens a consumption lease, so the read appears in the ledger and counts
13
- * against the establishment's live seats like any other. Its id comes back in
14
- * ``lease``: keep it alive with ``PUT /consumption/{eventId}`` and drop it with
15
- * ``DELETE`` when the reader closes. A client that does neither is not broken
16
- * — the reaper closes the lease about a minute after the last heartbeat — but
17
- * every such read is a seat held past the end of it.
18
- *
19
- * Re-opening the same title returns the lease already held rather than a
20
- * second one, so a page reload does not leak a seat.
13
+ * The reading must have been opened through reader-access, which took the
14
+ * lease: renew it with ``PUT /consumption/{eventId}`` and drop it with
15
+ * ``DELETE`` when the reader closes. Fetching the package again returns the
16
+ * lease already held, so a page reload does not leak a seat.
21
17
  * @summary Read Package
22
18
  */
23
- export declare const readPackage: (mediaId: number, params?: ReadPackageParams, options?: Parameters<typeof request>[1]) => Promise<ReaderPackageRead>;
19
+ export declare const readPackage: (mediaId: number, params?: ReadPackageParams, options?: Parameters<typeof request>[1]) => Promise<NextoryPackageRead>;
24
20
  export declare const getReadPositionUrl: (mediaId: number) => string;
25
21
  /**
26
22
  * The last synchronized local position, or the partner's when none is saved.
27
23
  *
28
- * ``404`` when the partner holds no position — a book never opened has no
29
- * place to return to, and reporting zero would make a client jump a reader who
30
- * *is* mid-book back to the start if the call ever failed soft.
24
+ * The legacy's ``fetchBookReading``: when the partner holds no position, the
25
+ * empty one, as the legacy answered it — ``percentage`` 0, ``reachedAt``
26
+ * null — so the player starts at the beginning.
31
27
  * @summary Read Position
32
28
  */
33
29
  export declare const readPosition: (mediaId: number, options?: Parameters<typeof request>[1]) => Promise<ReadingPositionRead>;
34
30
  export declare const getWritePositionUrl: (mediaId: number) => string;
35
31
  /**
36
- * Synchronize and save progress, with the partner's metering alongside it.
32
+ * The legacy's ``patch-book-reading``: usage blocks, then the position.
37
33
  *
38
- * ``usage_blocks`` is forwarded before a new position, matching the legacy's
39
- * call order. The two reports are independent: an older position may carry
40
- * usage the partner has not received yet.
34
+ * Takes the legacy reader's body as it is. ``book_reading.usage_blocks`` is
35
+ * forwarded first, then ``book_reading.position``; either may come alone.
36
+ * Answers the position now held, the empty one when there is none.
41
37
  *
42
- * Only a strictly newer ``reachedAt`` replaces the saved position. Stale or
43
- * duplicate writes return that saved position without updating it upstream.
44
- * Provided usage blocks are still forwarded, including on retries; the
45
- * partner's deduplication contract is unknown. Conflicting positions at the
46
- * same instant return 409 before any outbound write.
47
- * Progress is a resume point, not a measurement of time spent reading.
38
+ * Only a strictly newer ``reached_at`` replaces the saved position. Stale or
39
+ * duplicate positions are not sent upstream again; usage blocks still are,
40
+ * including on retries, since the partner's deduplication contract is
41
+ * unknown. A different position at the same instant is a 409 before any
42
+ * outbound write. Progress is a resume point, not a measurement of time spent
43
+ * reading.
48
44
  * @summary Write Position
49
45
  */
50
46
  export declare const writePosition: (mediaId: number, readingPositionWrite: ReadingPositionWrite, options?: Parameters<typeof request>[1]) => Promise<ReadingPositionRead>;
@@ -10,20 +10,16 @@ const getReadPackageUrl = (mediaId, params) => {
10
10
  return stringifiedParams.length > 0 ? `/partners/nextory/media/${mediaId}/package?${stringifiedParams}` : `/partners/nextory/media/${mediaId}/package`;
11
11
  };
12
12
  /**
13
- * Where to fetch the content itself.
13
+ * The package the local player opens, and the lease of this reading.
14
14
  *
15
- * The returned URL is a short-lived DRM-wrapped credential. It is not cached
16
- * here and should not be stored by the client.
15
+ * The legacy's ``get-epub-package`` and ``get-audio-package``, by ``format``.
16
+ * The package carries short-lived credentials: it is not cached here and
17
+ * should not be stored by the client.
17
18
  *
18
- * Opens a consumption lease, so the read appears in the ledger and counts
19
- * against the establishment's live seats like any other. Its id comes back in
20
- * ``lease``: keep it alive with ``PUT /consumption/{eventId}`` and drop it with
21
- * ``DELETE`` when the reader closes. A client that does neither is not broken
22
- * — the reaper closes the lease about a minute after the last heartbeat — but
23
- * every such read is a seat held past the end of it.
24
- *
25
- * Re-opening the same title returns the lease already held rather than a
26
- * second one, so a page reload does not leak a seat.
19
+ * The reading must have been opened through reader-access, which took the
20
+ * lease: renew it with ``PUT /consumption/{eventId}`` and drop it with
21
+ * ``DELETE`` when the reader closes. Fetching the package again returns the
22
+ * lease already held, so a page reload does not leak a seat.
27
23
  * @summary Read Package
28
24
  */
29
25
  const readPackage = async (mediaId, params, options) => {
@@ -38,9 +34,9 @@ const getReadPositionUrl = (mediaId) => {
38
34
  /**
39
35
  * The last synchronized local position, or the partner's when none is saved.
40
36
  *
41
- * ``404`` when the partner holds no position — a book never opened has no
42
- * place to return to, and reporting zero would make a client jump a reader who
43
- * *is* mid-book back to the start if the call ever failed soft.
37
+ * The legacy's ``fetchBookReading``: when the partner holds no position, the
38
+ * empty one, as the legacy answered it — ``percentage`` 0, ``reachedAt``
39
+ * null — so the player starts at the beginning.
44
40
  * @summary Read Position
45
41
  */
46
42
  const readPosition = async (mediaId, options) => {
@@ -53,18 +49,18 @@ const getWritePositionUrl = (mediaId) => {
53
49
  return `/partners/nextory/media/${mediaId}/position`;
54
50
  };
55
51
  /**
56
- * Synchronize and save progress, with the partner's metering alongside it.
52
+ * The legacy's ``patch-book-reading``: usage blocks, then the position.
57
53
  *
58
- * ``usage_blocks`` is forwarded before a new position, matching the legacy's
59
- * call order. The two reports are independent: an older position may carry
60
- * usage the partner has not received yet.
54
+ * Takes the legacy reader's body as it is. ``book_reading.usage_blocks`` is
55
+ * forwarded first, then ``book_reading.position``; either may come alone.
56
+ * Answers the position now held, the empty one when there is none.
61
57
  *
62
- * Only a strictly newer ``reachedAt`` replaces the saved position. Stale or
63
- * duplicate writes return that saved position without updating it upstream.
64
- * Provided usage blocks are still forwarded, including on retries; the
65
- * partner's deduplication contract is unknown. Conflicting positions at the
66
- * same instant return 409 before any outbound write.
67
- * Progress is a resume point, not a measurement of time spent reading.
58
+ * Only a strictly newer ``reached_at`` replaces the saved position. Stale or
59
+ * duplicate positions are not sent upstream again; usage blocks still are,
60
+ * including on retries, since the partner's deduplication contract is
61
+ * unknown. A different position at the same instant is a 409 before any
62
+ * outbound write. Progress is a resume point, not a measurement of time spent
63
+ * reading.
68
64
  * @summary Write Position
69
65
  */
70
66
  const writePosition = async (mediaId, readingPositionWrite, options) => {
@@ -1 +1 @@
1
- {"version":3,"file":"partner-reader-nextory.js","names":[],"sources":["../../src/api/partner-reader-nextory/partner-reader-nextory.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.17.0\n */\nimport type {\n ReadPackageParams,\n ReaderPackageRead,\n ReadingPositionRead,\n ReadingPositionWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getReadPackageUrl = (mediaId: number,\n params?: ReadPackageParams,) => {\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 ? `/partners/nextory/media/${mediaId}/package?${stringifiedParams}` : `/partners/nextory/media/${mediaId}/package`\n}\n\n/**\n * Where to fetch the content itself.\n *\n * The returned URL is a short-lived DRM-wrapped credential. It is not cached\n * here and should not be stored by the client.\n *\n * Opens a consumption lease, so the read appears in the ledger and counts\n * against the establishment's live seats like any other. Its id comes back in\n * ``lease``: keep it alive with ``PUT /consumption/{eventId}`` and drop it with\n * ``DELETE`` when the reader closes. A client that does neither is not broken\n * — the reaper closes the lease about a minute after the last heartbeat — but\n * every such read is a seat held past the end of it.\n *\n * Re-opening the same title returns the lease already held rather than a\n * second one, so a page reload does not leak a seat.\n * @summary Read Package\n */\nexport const readPackage = async (mediaId: number,\n params?: ReadPackageParams, options?: Parameters<typeof request>[1]): Promise<ReaderPackageRead> => {\n\n return request<ReaderPackageRead>(getReadPackageUrl(mediaId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPositionUrl = (mediaId: number,) => {\n\n\n\n\n return `/partners/nextory/media/${mediaId}/position`\n}\n\n/**\n * The last synchronized local position, or the partner's when none is saved.\n *\n * ``404`` when the partner holds no position — a book never opened has no\n * place to return to, and reporting zero would make a client jump a reader who\n * *is* mid-book back to the start if the call ever failed soft.\n * @summary Read Position\n */\nexport const readPosition = async (mediaId: number, options?: Parameters<typeof request>[1]): Promise<ReadingPositionRead> => {\n\n return request<ReadingPositionRead>(getReadPositionUrl(mediaId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getWritePositionUrl = (mediaId: number,) => {\n\n\n\n\n return `/partners/nextory/media/${mediaId}/position`\n}\n\n/**\n * Synchronize and save progress, with the partner's metering alongside it.\n *\n * ``usage_blocks`` is forwarded before a new position, matching the legacy's\n * call order. The two reports are independent: an older position may carry\n * usage the partner has not received yet.\n *\n * Only a strictly newer ``reachedAt`` replaces the saved position. Stale or\n * duplicate writes return that saved position without updating it upstream.\n * Provided usage blocks are still forwarded, including on retries; the\n * partner's deduplication contract is unknown. Conflicting positions at the\n * same instant return 409 before any outbound write.\n * Progress is a resume point, not a measurement of time spent reading.\n * @summary Write Position\n */\nexport const writePosition = async (mediaId: number,\n readingPositionWrite: ReadingPositionWrite, options?: Parameters<typeof request>[1]): Promise<ReadingPositionRead> => {\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<ReadingPositionRead>(getWritePositionUrl(mediaId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(readingPositionWrite)\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,qBAAqB,SAC9B,WAAgC;CAClC,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,2BAA2B,QAAQ,WAAW,sBAAsB,2BAA2B,QAAQ;AAC/I;;;;;;;;;;;;;;;;;;AAmBA,MAAa,cAAc,OAAO,SAC9B,QAA4B,YAAwE;CAEtG,OAAO,QAA2B,kBAAkB,SAAQ,MAAM,GAClE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,sBAAsB,YAAqB;CAKtD,OAAO,2BAA2B,QAAQ;AAC5C;;;;;;;;;AAUA,MAAa,eAAe,OAAO,SAAiB,YAA0E;CAE5H,OAAO,QAA6B,mBAAmB,OAAO,GAC9D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,uBAAuB,YAAqB;CAKvD,OAAO,2BAA2B,QAAQ;AAC5C;;;;;;;;;;;;;;;;AAiBA,MAAa,gBAAgB,OAAO,SAChC,sBAA4C,YAA0E;CAEtH,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,QAA6B,oBAAoB,OAAO,GAC7D;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,oBAAoB;CAC3C,CACF;AAAE"}
1
+ {"version":3,"file":"partner-reader-nextory.js","names":[],"sources":["../../src/api/partner-reader-nextory/partner-reader-nextory.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.17.2\n */\nimport type {\n NextoryPackageRead,\n ReadPackageParams,\n ReadingPositionRead,\n ReadingPositionWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getReadPackageUrl = (mediaId: number,\n params?: ReadPackageParams,) => {\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 ? `/partners/nextory/media/${mediaId}/package?${stringifiedParams}` : `/partners/nextory/media/${mediaId}/package`\n}\n\n/**\n * The package the local player opens, and the lease of this reading.\n *\n * The legacy's ``get-epub-package`` and ``get-audio-package``, by ``format``.\n * The package carries short-lived credentials: it is not cached here and\n * should not be stored by the client.\n *\n * The reading must have been opened through reader-access, which took the\n * lease: renew it with ``PUT /consumption/{eventId}`` and drop it with\n * ``DELETE`` when the reader closes. Fetching the package again returns the\n * lease already held, so a page reload does not leak a seat.\n * @summary Read Package\n */\nexport const readPackage = async (mediaId: number,\n params?: ReadPackageParams, options?: Parameters<typeof request>[1]): Promise<NextoryPackageRead> => {\n\n return request<NextoryPackageRead>(getReadPackageUrl(mediaId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadPositionUrl = (mediaId: number,) => {\n\n\n\n\n return `/partners/nextory/media/${mediaId}/position`\n}\n\n/**\n * The last synchronized local position, or the partner's when none is saved.\n *\n * The legacy's ``fetchBookReading``: when the partner holds no position, the\n * empty one, as the legacy answered it — ``percentage`` 0, ``reachedAt``\n * null — so the player starts at the beginning.\n * @summary Read Position\n */\nexport const readPosition = async (mediaId: number, options?: Parameters<typeof request>[1]): Promise<ReadingPositionRead> => {\n\n return request<ReadingPositionRead>(getReadPositionUrl(mediaId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getWritePositionUrl = (mediaId: number,) => {\n\n\n\n\n return `/partners/nextory/media/${mediaId}/position`\n}\n\n/**\n * The legacy's ``patch-book-reading``: usage blocks, then the position.\n *\n * Takes the legacy reader's body as it is. ``book_reading.usage_blocks`` is\n * forwarded first, then ``book_reading.position``; either may come alone.\n * Answers the position now held, the empty one when there is none.\n *\n * Only a strictly newer ``reached_at`` replaces the saved position. Stale or\n * duplicate positions are not sent upstream again; usage blocks still are,\n * including on retries, since the partner's deduplication contract is\n * unknown. A different position at the same instant is a 409 before any\n * outbound write. Progress is a resume point, not a measurement of time spent\n * reading.\n * @summary Write Position\n */\nexport const writePosition = async (mediaId: number,\n readingPositionWrite: ReadingPositionWrite, options?: Parameters<typeof request>[1]): Promise<ReadingPositionRead> => {\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<ReadingPositionRead>(getWritePositionUrl(mediaId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(readingPositionWrite)\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,qBAAqB,SAC9B,WAAgC;CAClC,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,2BAA2B,QAAQ,WAAW,sBAAsB,2BAA2B,QAAQ;AAC/I;;;;;;;;;;;;;;AAeA,MAAa,cAAc,OAAO,SAC9B,QAA4B,YAAyE;CAEvG,OAAO,QAA4B,kBAAkB,SAAQ,MAAM,GACnE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,sBAAsB,YAAqB;CAKtD,OAAO,2BAA2B,QAAQ;AAC5C;;;;;;;;;AAUA,MAAa,eAAe,OAAO,SAAiB,YAA0E;CAE5H,OAAO,QAA6B,mBAAmB,OAAO,GAC9D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,uBAAuB,YAAqB;CAKvD,OAAO,2BAA2B,QAAQ;AAC5C;;;;;;;;;;;;;;;;AAiBA,MAAa,gBAAgB,OAAO,SAChC,sBAA4C,YAA0E;CAEtH,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,QAA6B,oBAAoB,OAAO,GAC7D;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,oBAAoB;CAC3C,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { Gt as ReaderPackageRead, Vt as ReadHostedPackageParams, n as YouScribeAuthRead, t as YouScribeReaderRead } from "../chunks/index.js";
2
+ import { en as ReadHostedPackageParams, in as ReaderPackageRead, n as YouScribeAuthRead, t as YouScribeReaderRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/partner-reader-youscribe/partner-reader-youscribe.d.ts
5
5
  export declare const getReadHostedPackageUrl: (mediaId: number, params?: ReadHostedPackageParams) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"partner-reader-youscribe.js","names":[],"sources":["../../src/api/partner-reader-youscribe/partner-reader-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.17.0\n */\nimport type {\n ReadHostedPackageParams,\n ReaderPackageRead,\n YouScribeAuthRead,\n YouScribeReaderRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getReadHostedPackageUrl = (mediaId: number,\n params?: ReadHostedPackageParams,) => {\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 ? `/partners/youscribe/media/${mediaId}/package?${stringifiedParams}` : `/partners/youscribe/media/${mediaId}/package`\n}\n\n/**\n * **Deprecated**: the hosted reader's address and a lease. As in 0.13.0.\n *\n * Requires a seat already taken and never takes one: a GET does not buy a\n * subscription.\n * @deprecated\n * @summary Read Hosted Package\n */\nexport const readHostedPackage = async (mediaId: number,\n params?: ReadHostedPackageParams, options?: Parameters<typeof request>[1]): Promise<ReaderPackageRead> => {\n\n return request<ReaderPackageRead>(getReadHostedPackageUrl(mediaId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenNativeReaderUrl = (mediaId: number,) => {\n\n\n\n\n return `/partners/youscribe/media/${mediaId}/reader-auth`\n}\n\n/**\n * **Deprecated**: ``POST …/reader-access/embedded``, which takes the seat too. As in 0.13.0.\n *\n * Credentials for one title, taking a seat on first use, and the consumption\n * lease that records the opening. Renew ``lease.eventId`` while the reader is\n * open and close it when it exits.\n * @deprecated\n * @summary Open Native Reader\n */\nexport const openNativeReader = async (mediaId: number, options?: Parameters<typeof request>[1]): Promise<YouScribeReaderRead> => {\n\n return request<YouScribeReaderRead>(getOpenNativeReaderUrl(mediaId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getReadNativeAuthUrl = () => {\n\n\n\n\n return `/partners/youscribe/user/auth`\n}\n\n/**\n * YouScribe native SDK credentials for the selected, authorized profile.\n *\n * **Deprecated.** ``POST /partners/youscribe/media/{id}/reader-access/embedded``\n * answers the same credentials with the opening, and records it. This stays\n * while the current mobile app migrates, then goes.\n *\n * The legacy's ``GET /api/v1/{catalog}/user/auth``, and the only YouScribe\n * credentials endpoint — because a YouScribe token is issued **per patron and\n * not per title**, so an authorization keyed by media was answering a question\n * nobody asked. ``POST /media/{id}/reader-auth`` and ``POST /user/auth`` were\n * both this endpoint again: the first added a ``mediaId`` the caller already\n * knew, the second provisioned a seat it no longer provisions.\n *\n * **This is an authentication, not a read.** It exchanges the patron's licence\n * for a session token on YouScribe's REST API, and nothing follows from it: a\n * caller may ask for a token and never open a title. So there is no licence to\n * create and no consumption to record here, not as a policy but because\n * nothing has been consumed.\n *\n * The reading itself happens in the partner's own player — hosted on the web,\n * through their SDK inside the mobile app — and that player reports its\n * consumption to YouScribe. Which is why the opening is recorded by\n * reader-access and not here: it is the one call a client makes on Read.\n *\n * The token is personal: never persist it, log it, or share it between\n * profiles.\n * @deprecated\n * @summary Read Native Auth\n */\nexport const readNativeAuth = async ( options?: Parameters<typeof request>[1]): Promise<YouScribeAuthRead> => {\n\n return request<YouScribeAuthRead>(getReadNativeAuthUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenNativeAuthUrl = () => {\n\n\n\n\n return `/partners/youscribe/user/auth`\n}\n\n/**\n * **Deprecated**: ``POST …/reader-access/embedded``. As in 0.13.0.\n *\n * Credentials for this profile, taking a seat on first use. Call only on the\n * patron's explicit Read: it can create a paid subscription.\n * @deprecated\n * @summary Open Native Auth\n */\nexport const openNativeAuth = async ( options?: Parameters<typeof request>[1]): Promise<YouScribeAuthRead> => {\n\n return request<YouScribeAuthRead>(getOpenNativeAuthUrl(),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,2BAA2B,SACpC,WAAsC;CACxC,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,6BAA6B,QAAQ,WAAW,sBAAsB,6BAA6B,QAAQ;AACnJ;;;;;;;;;AAUA,MAAa,oBAAoB,OAAO,SACpC,QAAkC,YAAwE;CAE5G,OAAO,QAA2B,wBAAwB,SAAQ,MAAM,GACxE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,0BAA0B,YAAqB;CAK1D,OAAO,6BAA6B,QAAQ;AAC9C;;;;;;;;;;AAWA,MAAa,mBAAmB,OAAO,SAAiB,YAA0E;CAEhI,OAAO,QAA6B,uBAAuB,OAAO,GAClE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,6BAA6B;CAKxC,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAa,iBAAiB,OAAQ,YAAwE;CAE5G,OAAO,QAA2B,qBAAqB,GACvD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,6BAA6B;CAKxC,OAAO;AACT;;;;;;;;;AAUA,MAAa,iBAAiB,OAAQ,YAAwE;CAE5G,OAAO,QAA2B,qBAAqB,GACvD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"partner-reader-youscribe.js","names":[],"sources":["../../src/api/partner-reader-youscribe/partner-reader-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.17.2\n */\nimport type {\n ReadHostedPackageParams,\n ReaderPackageRead,\n YouScribeAuthRead,\n YouScribeReaderRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getReadHostedPackageUrl = (mediaId: number,\n params?: ReadHostedPackageParams,) => {\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 ? `/partners/youscribe/media/${mediaId}/package?${stringifiedParams}` : `/partners/youscribe/media/${mediaId}/package`\n}\n\n/**\n * **Deprecated**: the hosted reader's address and a lease. As in 0.13.0.\n *\n * Requires a seat already taken and never takes one: a GET does not buy a\n * subscription.\n * @deprecated\n * @summary Read Hosted Package\n */\nexport const readHostedPackage = async (mediaId: number,\n params?: ReadHostedPackageParams, options?: Parameters<typeof request>[1]): Promise<ReaderPackageRead> => {\n\n return request<ReaderPackageRead>(getReadHostedPackageUrl(mediaId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenNativeReaderUrl = (mediaId: number,) => {\n\n\n\n\n return `/partners/youscribe/media/${mediaId}/reader-auth`\n}\n\n/**\n * **Deprecated**: ``POST …/reader-access/embedded``, which takes the seat too. As in 0.13.0.\n *\n * Credentials for one title, taking a seat on first use, and the consumption\n * lease that records the opening. Renew ``lease.eventId`` while the reader is\n * open and close it when it exits.\n * @deprecated\n * @summary Open Native Reader\n */\nexport const openNativeReader = async (mediaId: number, options?: Parameters<typeof request>[1]): Promise<YouScribeReaderRead> => {\n\n return request<YouScribeReaderRead>(getOpenNativeReaderUrl(mediaId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getReadNativeAuthUrl = () => {\n\n\n\n\n return `/partners/youscribe/user/auth`\n}\n\n/**\n * YouScribe native SDK credentials for the selected, authorized profile.\n *\n * **Deprecated.** ``POST /partners/youscribe/media/{id}/reader-access/embedded``\n * answers the same credentials with the opening, and records it. This stays\n * while the current mobile app migrates, then goes.\n *\n * The legacy's ``GET /api/v1/{catalog}/user/auth``, and the only YouScribe\n * credentials endpoint — because a YouScribe token is issued **per patron and\n * not per title**, so an authorization keyed by media was answering a question\n * nobody asked. ``POST /media/{id}/reader-auth`` and ``POST /user/auth`` were\n * both this endpoint again: the first added a ``mediaId`` the caller already\n * knew, the second provisioned a seat it no longer provisions.\n *\n * **This is an authentication, not a read.** It exchanges the patron's licence\n * for a session token on YouScribe's REST API, and nothing follows from it: a\n * caller may ask for a token and never open a title. So there is no licence to\n * create and no consumption to record here, not as a policy but because\n * nothing has been consumed.\n *\n * The reading itself happens in the partner's own player — hosted on the web,\n * through their SDK inside the mobile app — and that player reports its\n * consumption to YouScribe. Which is why the opening is recorded by\n * reader-access and not here: it is the one call a client makes on Read.\n *\n * The token is personal: never persist it, log it, or share it between\n * profiles.\n * @deprecated\n * @summary Read Native Auth\n */\nexport const readNativeAuth = async ( options?: Parameters<typeof request>[1]): Promise<YouScribeAuthRead> => {\n\n return request<YouScribeAuthRead>(getReadNativeAuthUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenNativeAuthUrl = () => {\n\n\n\n\n return `/partners/youscribe/user/auth`\n}\n\n/**\n * **Deprecated**: ``POST …/reader-access/embedded``. As in 0.13.0.\n *\n * Credentials for this profile, taking a seat on first use. Call only on the\n * patron's explicit Read: it can create a paid subscription.\n * @deprecated\n * @summary Open Native Auth\n */\nexport const openNativeAuth = async ( options?: Parameters<typeof request>[1]): Promise<YouScribeAuthRead> => {\n\n return request<YouScribeAuthRead>(getOpenNativeAuthUrl(),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,2BAA2B,SACpC,WAAsC;CACxC,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,6BAA6B,QAAQ,WAAW,sBAAsB,6BAA6B,QAAQ;AACnJ;;;;;;;;;AAUA,MAAa,oBAAoB,OAAO,SACpC,QAAkC,YAAwE;CAE5G,OAAO,QAA2B,wBAAwB,SAAQ,MAAM,GACxE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,0BAA0B,YAAqB;CAK1D,OAAO,6BAA6B,QAAQ;AAC9C;;;;;;;;;;AAWA,MAAa,mBAAmB,OAAO,SAAiB,YAA0E;CAEhI,OAAO,QAA6B,uBAAuB,OAAO,GAClE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,6BAA6B;CAKxC,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAa,iBAAiB,OAAQ,YAAwE;CAE5G,OAAO,QAA2B,qBAAqB,GACvD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,6BAA6B;CAKxC,OAAO;AACT;;;;;;;;;AAUA,MAAa,iBAAiB,OAAQ,YAAwE;CAE5G,OAAO,QAA2B,qBAAqB,GACvD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { bu as ReaderMode, ii as PartnerReaderAccessRead, yf as PartnerProvider } from "../chunks/index.js";
2
+ import { Hf as PartnerProvider, Hu as ReaderMode, _i as PartnerReaderAccessRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/partner-reading/partner-reading.d.ts
5
5
  export declare const getOpenReaderAccessUrl: (provider: PartnerProvider, mediaId: number, mode: ReaderMode) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"partner-reading.js","names":[],"sources":["../../src/api/partner-reading/partner-reading.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.17.0\n */\nimport type {\n PartnerProvider,\n PartnerReaderAccessRead,\n ReaderMode\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getOpenReaderAccessUrl = (provider: PartnerProvider,\n mediaId: number,\n mode: ReaderMode,) => {\n\n\n\n\n return `/partners/${provider}/media/${mediaId}/reader-access/${mode}`\n}\n\n/**\n * Start reading this title in ``mode``: takes a seat if needed, records the opening.\n *\n * ``external`` answers the partner's page to send the patron to.\n * ``embedded`` answers what the client's own reader needs, and ``open.reader``\n * names that reader: switch on ``kind``, then ``reader``. A mode the partner\n * does not offer answers ``403`` ``reader_unavailable``, which ``readerModes``\n * in the capabilities says beforehand.\n *\n * This is the Read click, so a profile holding no seat is given one here —\n * ``409`` with the counts when the household's are all taken, ``403`` when\n * the session's assurance is too low to subscribe the member at a partner.\n * Never on browsing: a seat is a paid subscription. ``POST\n * /biblio/me/{partner}/license`` still takes one on its own, for a client\n * that wants it separately.\n *\n * The order is deliberate. The right is settled first, then the seat and the\n * opening are produced — both cost money at YouScribe, and there is no sense\n * buying either for a refusal — and the lease is written last, once there is\n * something to read. A lease for an opening we could not produce would hold a reading\n * that never began.\n *\n * Re-opening the same title returns the lease already held rather than a\n * second one: \"this member is reading this title\" is true once however many\n * times it is asked, and a page reload must not orphan the first lease.\n * @summary Open Reader Access\n */\nexport const openReaderAccess = async (provider: PartnerProvider,\n mediaId: number,\n mode: ReaderMode, options?: Parameters<typeof request>[1]): Promise<PartnerReaderAccessRead> => {\n\n return request<PartnerReaderAccessRead>(getOpenReaderAccessUrl(provider,mediaId,mode),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAeA,MAAa,0BAA0B,UACnC,SACA,SAAsB;CAKxB,OAAO,aAAa,SAAS,SAAS,QAAQ,iBAAiB;AACjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAa,mBAAmB,OAAO,UACnC,SACA,MAAkB,YAA8E;CAElG,OAAO,QAAiC,uBAAuB,UAAS,SAAQ,IAAI,GACpF;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"partner-reading.js","names":[],"sources":["../../src/api/partner-reading/partner-reading.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.17.2\n */\nimport type {\n PartnerProvider,\n PartnerReaderAccessRead,\n ReaderMode\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getOpenReaderAccessUrl = (provider: PartnerProvider,\n mediaId: number,\n mode: ReaderMode,) => {\n\n\n\n\n return `/partners/${provider}/media/${mediaId}/reader-access/${mode}`\n}\n\n/**\n * Start reading this title in ``mode``: takes a seat if needed, records the opening.\n *\n * ``external`` answers the partner's page to send the patron to.\n * ``embedded`` answers what the client's own reader needs, and ``open.reader``\n * names that reader: switch on ``kind``, then ``reader``. A mode the partner\n * does not offer answers ``403`` ``reader_unavailable``, which ``readerModes``\n * in the capabilities says beforehand.\n *\n * This is the Read click, so a profile holding no seat is given one here —\n * ``409`` with the counts when the household's are all taken, ``403`` when\n * the session's assurance is too low to subscribe the member at a partner.\n * Never on browsing: a seat is a paid subscription. ``POST\n * /biblio/me/{partner}/license`` still takes one on its own, for a client\n * that wants it separately.\n *\n * The order is deliberate. The right is settled first, then the seat and the\n * opening are produced — both cost money at YouScribe, and there is no sense\n * buying either for a refusal — and the lease is written last, once there is\n * something to read. A lease for an opening we could not produce would hold a reading\n * that never began.\n *\n * Re-opening the same title returns the lease already held rather than a\n * second one: \"this member is reading this title\" is true once however many\n * times it is asked, and a page reload must not orphan the first lease.\n * @summary Open Reader Access\n */\nexport const openReaderAccess = async (provider: PartnerProvider,\n mediaId: number,\n mode: ReaderMode, options?: Parameters<typeof request>[1]): Promise<PartnerReaderAccessRead> => {\n\n return request<PartnerReaderAccessRead>(getOpenReaderAccessUrl(provider,mediaId,mode),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAeA,MAAa,0BAA0B,UACnC,SACA,SAAsB;CAKxB,OAAO,aAAa,SAAS,SAAS,QAAQ,iBAAiB;AACjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAa,mBAAmB,OAAO,UACnC,SACA,MAAkB,YAA8E;CAElG,OAAO,QAAiC,uBAAuB,UAAS,SAAQ,IAAI,GACpF;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { $l as HouseholdInvitationListRead, Cn as ProfileUpdateWrite, Dn as ProfileListRead, Iu as ExitChildProfileWrite, Oi as OpenChildProfileWrite, On as ProfileRead, Ql as HouseholdInvitationWrite, Tn as ProfileSessionRead, _u as GuardianPinResetRead, eu as HouseholdInvitationRead, gu as GuardianPinResetWrite, hu as GuardianPinWrite, iu as HouseholdGuardianListRead, jl as IndependentInvitationWrite, jn as ProfileCreateWrite, nu as HouseholdInvitationAcceptWrite, ru as HouseholdGuardianWrite } from "../chunks/index.js";
2
+ import { $l as IndependentInvitationWrite, Bn as ProfileListRead, Eu as HouseholdGuardianListRead, In as ProfileUpdateWrite, Lu as GuardianPinWrite, Rn as ProfileSessionRead, Ru as GuardianPinResetWrite, Su as HouseholdInvitationRead, Tu as HouseholdGuardianWrite, Vi as OpenChildProfileWrite, Vn as ProfileRead, Wn as ProfileCreateWrite, bu as HouseholdInvitationWrite, id as ExitChildProfileWrite, wu as HouseholdInvitationAcceptWrite, xu as HouseholdInvitationListRead, zu as GuardianPinResetRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/profiles/profiles.d.ts
5
5
  export declare const getSetPinUrl: () => string;
@@ -1 +1 @@
1
- {"version":3,"file":"profiles.js","names":[],"sources":["../../src/api/profiles/profiles.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.17.0\n */\nimport type {\n ExitChildProfileWrite,\n GuardianPinResetRead,\n GuardianPinResetWrite,\n GuardianPinWrite,\n HouseholdGuardianListRead,\n HouseholdGuardianWrite,\n HouseholdInvitationAcceptWrite,\n HouseholdInvitationListRead,\n HouseholdInvitationRead,\n HouseholdInvitationWrite,\n IndependentInvitationWrite,\n OpenChildProfileWrite,\n ProfileCreateWrite,\n ProfileListRead,\n ProfileRead,\n ProfileSessionRead,\n ProfileUpdateWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getSetPinUrl = () => {\n\n\n\n\n return `/me/guardian-pin`\n}\n\n/**\n * @summary Set Pin\n */\nexport const setPin = async (guardianPinWrite: GuardianPinWrite, 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>(getSetPinUrl(),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(guardianPinWrite)\n }\n);}\n\n\nexport const getRequestResetUrl = () => {\n\n\n\n\n return `/me/guardian-pin/reset`\n}\n\n/**\n * @summary Request Reset\n */\nexport const requestReset = async ( options?: Parameters<typeof request>[1]): Promise<GuardianPinResetRead> => {\n\n return request<GuardianPinResetRead>(getRequestResetUrl(),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getConfirmResetUrl = () => {\n\n\n\n\n return `/me/guardian-pin/reset/confirm`\n}\n\n/**\n * @summary Confirm Reset\n */\nexport const confirmReset = async (guardianPinResetWrite: GuardianPinResetWrite, 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>(getConfirmResetUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(guardianPinResetWrite)\n }\n);}\n\n\nexport const getProfileSessionUrl = () => {\n\n\n\n\n return `/me/profile-session`\n}\n\n/**\n * Read own, child or validated support context without switching profiles.\n *\n * In support mode actorId is the operator and profileId is the support target.\n * Leave support by removing X-Acting-As and revoking the support session via\n * DELETE /admin/impersonations/{id} without that header. Guardian PIN and\n * child-switch mutations remain unavailable while impersonating.\n * @summary Profile Session\n */\nexport const profileSession = async ( options?: Parameters<typeof request>[1]): Promise<ProfileSessionRead> => {\n\n return request<ProfileSessionRead>(getProfileSessionUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenChildUrl = () => {\n\n\n\n\n return `/me/profile-session/child`\n}\n\n/**\n * @summary Open Child\n */\nexport const openChild = async (openChildProfileWrite: OpenChildProfileWrite, options?: Parameters<typeof request>[1]): Promise<ProfileSessionRead> => {\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<ProfileSessionRead>(getOpenChildUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(openChildProfileWrite)\n }\n);}\n\n\nexport const getExitChildUrl = () => {\n\n\n\n\n return `/me/profile-session/exit`\n}\n\n/**\n * @summary Exit Child\n */\nexport const exitChild = async (exitChildProfileWrite: ExitChildProfileWrite, options?: Parameters<typeof request>[1]): Promise<ProfileSessionRead> => {\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<ProfileSessionRead>(getExitChildUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(exitChildProfileWrite)\n }\n);}\n\n\nexport const getListProfilesUrl = () => {\n\n\n\n\n return `/me/profiles`\n}\n\n/**\n * Holder sees household cards; another adult sees self and supervised children.\n *\n * Cards never grant the right to open another adult's profile. Expired pending\n * invitations remain manageable but no longer reserve capacity.\n * @summary List Profiles\n */\nexport const listProfiles = async ( options?: Parameters<typeof request>[1]): Promise<ProfileListRead> => {\n\n return request<ProfileListRead>(getListProfilesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getCreateProfileUrl = () => {\n\n\n\n\n return `/me/profiles`\n}\n\n/**\n * @summary Create Profile\n */\nexport const createProfile = async (profileCreateWrite: ProfileCreateWrite, options?: Parameters<typeof request>[1]): Promise<ProfileRead> => {\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<ProfileRead>(getCreateProfileUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(profileCreateWrite)\n }\n);}\n\n\nexport const getGuardianCandidatesUrl = () => {\n\n\n\n\n return `/me/profiles/guardian-candidates`\n}\n\n/**\n * @summary Guardian Candidates\n */\nexport const guardianCandidates = async ( options?: Parameters<typeof request>[1]): Promise<HouseholdGuardianListRead> => {\n\n return request<HouseholdGuardianListRead>(getGuardianCandidatesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListInvitationsUrl = () => {\n\n\n\n\n return `/me/profiles/invitations`\n}\n\n/**\n * @summary List Invitations\n */\nexport const listInvitations = async ( options?: Parameters<typeof request>[1]): Promise<HouseholdInvitationListRead> => {\n\n return request<HouseholdInvitationListRead>(getListInvitationsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getInviteAdultUrl = () => {\n\n\n\n\n return `/me/profiles/invitations`\n}\n\n/**\n * @summary Invite Adult\n */\nexport const inviteAdult = async (householdInvitationWrite: HouseholdInvitationWrite, options?: Parameters<typeof request>[1]): Promise<HouseholdInvitationRead> => {\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<HouseholdInvitationRead>(getInviteAdultUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(householdInvitationWrite)\n }\n);}\n\n\nexport const getAcceptInvitationUrl = () => {\n\n\n\n\n return `/me/profiles/invitations/accept`\n}\n\n/**\n * Requires a verified login email; never creates an unrelated root account.\n * @summary Accept Invitation\n */\nexport const acceptInvitation = async (householdInvitationAcceptWrite: HouseholdInvitationAcceptWrite, options?: Parameters<typeof request>[1]): Promise<ProfileRead> => {\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<ProfileRead>(getAcceptInvitationUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(householdInvitationAcceptWrite)\n }\n);}\n\n\nexport const getRevokeInvitationUrl = (invitationId: number,) => {\n\n\n\n\n return `/me/profiles/invitations/${invitationId}`\n}\n\n/**\n * @summary Revoke Invitation\n */\nexport const revokeInvitation = async (invitationId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRevokeInvitationUrl(invitationId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getResendInvitationUrl = (invitationId: number,) => {\n\n\n\n\n return `/me/profiles/invitations/${invitationId}/resend`\n}\n\n/**\n * @summary Resend Invitation\n */\nexport const resendInvitation = async (invitationId: number, options?: Parameters<typeof request>[1]): Promise<HouseholdInvitationRead> => {\n\n return request<HouseholdInvitationRead>(getResendInvitationUrl(invitationId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getDeleteProfileUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}`\n}\n\n/**\n * Deactivate membership without discarding profile history or its ancestry.\n * @summary Delete Profile\n */\nexport const deleteProfile = async (profileId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getDeleteProfileUrl(profileId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getReadProfileUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}`\n}\n\n/**\n * @summary Read Profile\n */\nexport const readProfile = async (profileId: number, options?: Parameters<typeof request>[1]): Promise<ProfileRead> => {\n\n return request<ProfileRead>(getReadProfileUrl(profileId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getUpdateProfileUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}`\n}\n\n/**\n * @summary Update Profile\n */\nexport const updateProfile = async (profileId: number,\n profileUpdateWrite: ProfileUpdateWrite, options?: Parameters<typeof request>[1]): Promise<ProfileRead> => {\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<ProfileRead>(getUpdateProfileUrl(profileId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(profileUpdateWrite)\n }\n);}\n\n\nexport const getListGuardiansUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}/guardians`\n}\n\n/**\n * @summary List Guardians\n */\nexport const listGuardians = async (profileId: number, options?: Parameters<typeof request>[1]): Promise<HouseholdGuardianListRead> => {\n\n return request<HouseholdGuardianListRead>(getListGuardiansUrl(profileId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getAddGuardianUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}/guardians`\n}\n\n/**\n * @summary Add Guardian\n */\nexport const addGuardian = async (profileId: number,\n householdGuardianWrite: HouseholdGuardianWrite, options?: Parameters<typeof request>[1]): Promise<HouseholdGuardianListRead> => {\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<HouseholdGuardianListRead>(getAddGuardianUrl(profileId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(householdGuardianWrite)\n }\n);}\n\n\nexport const getRemoveGuardianUrl = (profileId: number,\n adultId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}/guardians/${adultId}`\n}\n\n/**\n * @summary Remove Guardian\n */\nexport const removeGuardian = async (profileId: number,\n adultId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRemoveGuardianUrl(profileId,adultId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getInviteIndependentMinorUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}/independent-invitation`\n}\n\n/**\n * @summary Invite Independent Minor\n */\nexport const inviteIndependentMinor = async (profileId: number,\n independentInvitationWrite: IndependentInvitationWrite, options?: Parameters<typeof request>[1]): Promise<HouseholdInvitationRead> => {\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<HouseholdInvitationRead>(getInviteIndependentMinorUrl(profileId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(independentInvitationWrite)\n }\n);}\n\n\n"],"mappings":";;;AA6BA,MAAa,qBAAqB;CAKhC,OAAO;AACT;;;;AAKA,MAAa,SAAS,OAAO,kBAAoC,YAA2D;CAExH,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YA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,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,gCAAgC,cAAuB;CAKlE,OAAO,gBAAgB,UAAU;AACnC;;;;AAKA,MAAa,yBAAyB,OAAO,WACzC,4BAAwD,YAA8E;CAEtI,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,QAAiC,6BAA6B,SAAS,GAC5E;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,0BAA0B;CACjD,CACF;AAAE"}
1
+ {"version":3,"file":"profiles.js","names":[],"sources":["../../src/api/profiles/profiles.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.17.2\n */\nimport type {\n ExitChildProfileWrite,\n GuardianPinResetRead,\n GuardianPinResetWrite,\n GuardianPinWrite,\n HouseholdGuardianListRead,\n HouseholdGuardianWrite,\n HouseholdInvitationAcceptWrite,\n HouseholdInvitationListRead,\n HouseholdInvitationRead,\n HouseholdInvitationWrite,\n IndependentInvitationWrite,\n OpenChildProfileWrite,\n ProfileCreateWrite,\n ProfileListRead,\n ProfileRead,\n ProfileSessionRead,\n ProfileUpdateWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getSetPinUrl = () => {\n\n\n\n\n return `/me/guardian-pin`\n}\n\n/**\n * @summary Set Pin\n */\nexport const setPin = async (guardianPinWrite: GuardianPinWrite, 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>(getSetPinUrl(),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(guardianPinWrite)\n }\n);}\n\n\nexport const getRequestResetUrl = () => {\n\n\n\n\n return `/me/guardian-pin/reset`\n}\n\n/**\n * @summary Request Reset\n */\nexport const requestReset = async ( options?: Parameters<typeof request>[1]): Promise<GuardianPinResetRead> => {\n\n return request<GuardianPinResetRead>(getRequestResetUrl(),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getConfirmResetUrl = () => {\n\n\n\n\n return `/me/guardian-pin/reset/confirm`\n}\n\n/**\n * @summary Confirm Reset\n */\nexport const confirmReset = async (guardianPinResetWrite: GuardianPinResetWrite, 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>(getConfirmResetUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(guardianPinResetWrite)\n }\n);}\n\n\nexport const getProfileSessionUrl = () => {\n\n\n\n\n return `/me/profile-session`\n}\n\n/**\n * Read own, child or validated support context without switching profiles.\n *\n * In support mode actorId is the operator and profileId is the support target.\n * Leave support by removing X-Acting-As and revoking the support session via\n * DELETE /admin/impersonations/{id} without that header. Guardian PIN and\n * child-switch mutations remain unavailable while impersonating.\n * @summary Profile Session\n */\nexport const profileSession = async ( options?: Parameters<typeof request>[1]): Promise<ProfileSessionRead> => {\n\n return request<ProfileSessionRead>(getProfileSessionUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenChildUrl = () => {\n\n\n\n\n return `/me/profile-session/child`\n}\n\n/**\n * @summary Open Child\n */\nexport const openChild = async (openChildProfileWrite: OpenChildProfileWrite, options?: Parameters<typeof request>[1]): Promise<ProfileSessionRead> => {\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<ProfileSessionRead>(getOpenChildUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(openChildProfileWrite)\n }\n);}\n\n\nexport const getExitChildUrl = () => {\n\n\n\n\n return `/me/profile-session/exit`\n}\n\n/**\n * @summary Exit Child\n */\nexport const exitChild = async (exitChildProfileWrite: ExitChildProfileWrite, options?: Parameters<typeof request>[1]): Promise<ProfileSessionRead> => {\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<ProfileSessionRead>(getExitChildUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(exitChildProfileWrite)\n }\n);}\n\n\nexport const getListProfilesUrl = () => {\n\n\n\n\n return `/me/profiles`\n}\n\n/**\n * Holder sees household cards; another adult sees self and supervised children.\n *\n * Cards never grant the right to open another adult's profile. Expired pending\n * invitations remain manageable but no longer reserve capacity.\n * @summary List Profiles\n */\nexport const listProfiles = async ( options?: Parameters<typeof request>[1]): Promise<ProfileListRead> => {\n\n return request<ProfileListRead>(getListProfilesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getCreateProfileUrl = () => {\n\n\n\n\n return `/me/profiles`\n}\n\n/**\n * @summary Create Profile\n */\nexport const createProfile = async (profileCreateWrite: ProfileCreateWrite, options?: Parameters<typeof request>[1]): Promise<ProfileRead> => {\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<ProfileRead>(getCreateProfileUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(profileCreateWrite)\n }\n);}\n\n\nexport const getGuardianCandidatesUrl = () => {\n\n\n\n\n return `/me/profiles/guardian-candidates`\n}\n\n/**\n * @summary Guardian Candidates\n */\nexport const guardianCandidates = async ( options?: Parameters<typeof request>[1]): Promise<HouseholdGuardianListRead> => {\n\n return request<HouseholdGuardianListRead>(getGuardianCandidatesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListInvitationsUrl = () => {\n\n\n\n\n return `/me/profiles/invitations`\n}\n\n/**\n * @summary List Invitations\n */\nexport const listInvitations = async ( options?: Parameters<typeof request>[1]): Promise<HouseholdInvitationListRead> => {\n\n return request<HouseholdInvitationListRead>(getListInvitationsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getInviteAdultUrl = () => {\n\n\n\n\n return `/me/profiles/invitations`\n}\n\n/**\n * @summary Invite Adult\n */\nexport const inviteAdult = async (householdInvitationWrite: HouseholdInvitationWrite, options?: Parameters<typeof request>[1]): Promise<HouseholdInvitationRead> => {\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<HouseholdInvitationRead>(getInviteAdultUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(householdInvitationWrite)\n }\n);}\n\n\nexport const getAcceptInvitationUrl = () => {\n\n\n\n\n return `/me/profiles/invitations/accept`\n}\n\n/**\n * Requires a verified login email; never creates an unrelated root account.\n * @summary Accept Invitation\n */\nexport const acceptInvitation = async (householdInvitationAcceptWrite: HouseholdInvitationAcceptWrite, options?: Parameters<typeof request>[1]): Promise<ProfileRead> => {\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<ProfileRead>(getAcceptInvitationUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(householdInvitationAcceptWrite)\n }\n);}\n\n\nexport const getRevokeInvitationUrl = (invitationId: number,) => {\n\n\n\n\n return `/me/profiles/invitations/${invitationId}`\n}\n\n/**\n * @summary Revoke Invitation\n */\nexport const revokeInvitation = async (invitationId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRevokeInvitationUrl(invitationId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getResendInvitationUrl = (invitationId: number,) => {\n\n\n\n\n return `/me/profiles/invitations/${invitationId}/resend`\n}\n\n/**\n * @summary Resend Invitation\n */\nexport const resendInvitation = async (invitationId: number, options?: Parameters<typeof request>[1]): Promise<HouseholdInvitationRead> => {\n\n return request<HouseholdInvitationRead>(getResendInvitationUrl(invitationId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getDeleteProfileUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}`\n}\n\n/**\n * Deactivate membership without discarding profile history or its ancestry.\n * @summary Delete Profile\n */\nexport const deleteProfile = async (profileId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getDeleteProfileUrl(profileId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getReadProfileUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}`\n}\n\n/**\n * @summary Read Profile\n */\nexport const readProfile = async (profileId: number, options?: Parameters<typeof request>[1]): Promise<ProfileRead> => {\n\n return request<ProfileRead>(getReadProfileUrl(profileId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getUpdateProfileUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}`\n}\n\n/**\n * @summary Update Profile\n */\nexport const updateProfile = async (profileId: number,\n profileUpdateWrite: ProfileUpdateWrite, options?: Parameters<typeof request>[1]): Promise<ProfileRead> => {\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<ProfileRead>(getUpdateProfileUrl(profileId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(profileUpdateWrite)\n }\n);}\n\n\nexport const getListGuardiansUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}/guardians`\n}\n\n/**\n * @summary List Guardians\n */\nexport const listGuardians = async (profileId: number, options?: Parameters<typeof request>[1]): Promise<HouseholdGuardianListRead> => {\n\n return request<HouseholdGuardianListRead>(getListGuardiansUrl(profileId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getAddGuardianUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}/guardians`\n}\n\n/**\n * @summary Add Guardian\n */\nexport const addGuardian = async (profileId: number,\n householdGuardianWrite: HouseholdGuardianWrite, options?: Parameters<typeof request>[1]): Promise<HouseholdGuardianListRead> => {\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<HouseholdGuardianListRead>(getAddGuardianUrl(profileId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(householdGuardianWrite)\n }\n);}\n\n\nexport const getRemoveGuardianUrl = (profileId: number,\n adultId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}/guardians/${adultId}`\n}\n\n/**\n * @summary Remove Guardian\n */\nexport const removeGuardian = async (profileId: number,\n adultId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRemoveGuardianUrl(profileId,adultId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getInviteIndependentMinorUrl = (profileId: number,) => {\n\n\n\n\n return `/me/profiles/${profileId}/independent-invitation`\n}\n\n/**\n * @summary Invite Independent Minor\n */\nexport const inviteIndependentMinor = async (profileId: number,\n independentInvitationWrite: IndependentInvitationWrite, options?: Parameters<typeof request>[1]): Promise<HouseholdInvitationRead> => {\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<HouseholdInvitationRead>(getInviteIndependentMinorUrl(profileId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(independentInvitationWrite)\n }\n);}\n\n\n"],"mappings":";;;AA6BA,MAAa,qBAAqB;CAKhC,OAAO;AACT;;;;AAKA,MAAa,SAAS,OAAO,kBAAoC,YAA2D;CAExH,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAAc,aAAa,GAChC;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,gBAAgB;CACvC,CACF;AAAE;AAGF,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;AAKA,MAAa,eAAe,OAAQ,YAA2E;CAE7G,OAAO,QAA8B,mBAAmB,GACxD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;AAKA,MAAa,eAAe,OAAO,uBAA8C,YAA2D;CAExI,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CA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uggestQueriesParams, mt as SearchEverythingParams, u_ as CatalogueSearchRead, ut as SearchSuggestionListRead } from "../chunks/index.js";
2
+ import { Ct as SearchSuggestionListRead, Dt as SearchEverythingParams, N_ as CatalogueSearchRead, at as SuggestQueriesParams } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/search/search.d.ts
5
5
  export declare const getSearchEverythingUrl: (params?: SearchEverythingParams) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","names":[],"sources":["../../src/api/search/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.17.0\n */\nimport type {\n CatalogueSearchRead,\n SearchEverythingParams,\n SearchSuggestionListRead,\n SuggestQueriesParams\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getSearchEverythingUrl = (params?: SearchEverythingParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"source\",\"kind\",\"provider\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\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 ? `/search?${stringifiedParams}` : `/search`\n}\n\n/**\n * Search current authorized catalogues; suggestions require five distinct households.\n * @summary Search Everything\n */\nexport const searchEverything = async (params?: SearchEverythingParams, options?: Parameters<typeof request>[1]): Promise<CatalogueSearchRead> => {\n\n return request<CatalogueSearchRead>(getSearchEverythingUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getSuggestQueriesUrl = (params?: SuggestQueriesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"source\",\"kind\",\"provider\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\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 ? `/search/suggestions?${stringifiedParams}` : `/search/suggestions`\n}\n\n/**\n * Popular successful searches over seven days. Permission-filtered, bounded and anonymous; empty until the privacy threshold is met.\n * @summary Suggest Queries\n */\nexport const suggestQueries = async (params?: SuggestQueriesParams, options?: Parameters<typeof request>[1]): Promise<SearchSuggestionListRead> => {\n\n return request<SearchSuggestionListRead>(getSuggestQueriesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,0BAA0B,WAAqC;CAC1E,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAGrD,IAAI,MAAM,QAAQ,KAAK,KAAK;GAFD;GAAS;GAAO;EAEC,CAAC,CAAC,SAAS,GAAG,GAAG;GAC3D,MAAM,SAAS,MAAM;IACnB,iBAAiB,OAAO,KAAK,MAAM,OAAO,SAAS,OAAO,CAAC,CAAC;GAC9D,CAAC;GACD;EACF;EAEA,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,WAAW,sBAAsB;AACzE;;;;;AAMA,MAAa,mBAAmB,OAAO,QAAiC,YAA0E;CAEhJ,OAAO,QAA6B,uBAAuB,MAAM,GACjE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,wBAAwB,WAAmC;CACtE,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAGrD,IAAI,MAAM,QAAQ,KAAK,KAAK;GAFD;GAAS;GAAO;EAEC,CAAC,CAAC,SAAS,GAAG,GAAG;GAC3D,MAAM,SAAS,MAAM;IACnB,iBAAiB,OAAO,KAAK,MAAM,OAAO,SAAS,OAAO,CAAC,CAAC;GAC9D,CAAC;GACD;EACF;EAEA,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,uBAAuB,sBAAsB;AACrF;;;;;AAMA,MAAa,iBAAiB,OAAO,QAA+B,YAA+E;CAEjJ,OAAO,QAAkC,qBAAqB,MAAM,GACpE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"search.js","names":[],"sources":["../../src/api/search/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.17.2\n */\nimport type {\n CatalogueSearchRead,\n SearchEverythingParams,\n SearchSuggestionListRead,\n SuggestQueriesParams\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getSearchEverythingUrl = (params?: SearchEverythingParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"source\",\"kind\",\"provider\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\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 ? `/search?${stringifiedParams}` : `/search`\n}\n\n/**\n * Search current authorized catalogues; suggestions require five distinct households.\n * @summary Search Everything\n */\nexport const searchEverything = async (params?: SearchEverythingParams, options?: Parameters<typeof request>[1]): Promise<CatalogueSearchRead> => {\n\n return request<CatalogueSearchRead>(getSearchEverythingUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getSuggestQueriesUrl = (params?: SuggestQueriesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"source\",\"kind\",\"provider\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\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 ? `/search/suggestions?${stringifiedParams}` : `/search/suggestions`\n}\n\n/**\n * Popular successful searches over seven days. Permission-filtered, bounded and anonymous; empty until the privacy threshold is met.\n * @summary Suggest Queries\n */\nexport const suggestQueries = async (params?: SuggestQueriesParams, options?: Parameters<typeof request>[1]): Promise<SearchSuggestionListRead> => {\n\n return request<SearchSuggestionListRead>(getSuggestQueriesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,0BAA0B,WAAqC;CAC1E,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAGrD,IAAI,MAAM,QAAQ,KAAK,KAAK;GAFD;GAAS;GAAO;EAEC,CAAC,CAAC,SAAS,GAAG,GAAG;GAC3D,MAAM,SAAS,MAAM;IACnB,iBAAiB,OAAO,KAAK,MAAM,OAAO,SAAS,OAAO,CAAC,CAAC;GAC9D,CAAC;GACD;EACF;EAEA,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,WAAW,sBAAsB;AACzE;;;;;AAMA,MAAa,mBAAmB,OAAO,QAAiC,YAA0E;CAEhJ,OAAO,QAA6B,uBAAuB,MAAM,GACjE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,wBAAwB,WAAmC;CACtE,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAGrD,IAAI,MAAM,QAAQ,KAAK,KAAK;GAFD;GAAS;GAAO;EAEC,CAAC,CAAC,SAAS,GAAG,GAAG;GAC3D,MAAM,SAAS,MAAM;IACnB,iBAAiB,OAAO,KAAK,MAAM,OAAO,SAAS,OAAO,CAAC,CAAC;GAC9D,CAAC;GACD;EACF;EAEA,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,uBAAuB,sBAAsB;AACrF;;;;;AAMA,MAAa,iBAAiB,OAAO,QAA+B,YAA+E;CAEjJ,OAAO,QAAkC,qBAAqB,MAAM,GACpE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { Ba as LevelListRead, J as SubjectListRead, Ru as EducationalGoalListRead, ya as ListGoalsParams } from "../chunks/index.js";
2
+ import { Va as ListGoalsParams, co as LevelListRead, od as EducationalGoalListRead, st as SubjectListRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/tutoring-catalogue/tutoring-catalogue.d.ts
5
5
  export declare const getListGoalsUrl: (params?: ListGoalsParams) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"tutoring-catalogue.js","names":[],"sources":["../../src/api/tutoring-catalogue/tutoring-catalogue.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.17.0\n */\nimport type {\n EducationalGoalListRead,\n LevelListRead,\n ListGoalsParams,\n SubjectListRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListGoalsUrl = (params?: ListGoalsParams,) => {\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 ? `/tutoring/goals?${stringifiedParams}` : `/tutoring/goals`\n}\n\n/**\n * Goals on offer, optionally narrowed to one request kind.\n *\n * The filter is a containment test against ``applies_to``, which is what the\n * GIN index on that column is for. The legacy asks the same question with four\n * boolean columns and a different ``WHERE`` per surface.\n * @summary List Goals\n */\nexport const listGoals = async (params?: ListGoalsParams, options?: Parameters<typeof request>[1]): Promise<EducationalGoalListRead> => {\n\n return request<EducationalGoalListRead>(getListGoalsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListLevelsUrl = () => {\n\n\n\n\n return `/tutoring/levels`\n}\n\n/**\n * Every school level, in teaching order rather than alphabetical.\n * @summary List Levels\n */\nexport const listLevels = async ( options?: Parameters<typeof request>[1]): Promise<LevelListRead> => {\n\n return request<LevelListRead>(getListLevelsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListSubjectsUrl = () => {\n\n\n\n\n return `/tutoring/subjects`\n}\n\n/**\n * Every subject a pupil may ask about, in display order.\n *\n * Authenticated, though the data is not secret: the list differs by nothing\n * today, and leaving it open would make it the one tutoring endpoint that does\n * not establish a tenant. Cheap to relax later, expensive to tighten.\n * @summary List Subjects\n */\nexport const listSubjects = async ( options?: Parameters<typeof request>[1]): Promise<SubjectListRead> => {\n\n return request<SubjectListRead>(getListSubjectsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,mBAAmB,WAA8B;CAC5D,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,mBAAmB,sBAAsB;AACjF;;;;;;;;;AAUA,MAAa,YAAY,OAAO,QAA0B,YAA8E;CAEtI,OAAO,QAAiC,gBAAgB,MAAM,GAC9D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,yBAAyB;CAKpC,OAAO;AACT;;;;;AAMA,MAAa,aAAa,OAAQ,YAAoE;CAEpG,OAAO,QAAuB,iBAAiB,GAC/C;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;;;;;;AAUA,MAAa,eAAe,OAAQ,YAAsE;CAExG,OAAO,QAAyB,mBAAmB,GACnD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"tutoring-catalogue.js","names":[],"sources":["../../src/api/tutoring-catalogue/tutoring-catalogue.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.17.2\n */\nimport type {\n EducationalGoalListRead,\n LevelListRead,\n ListGoalsParams,\n SubjectListRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListGoalsUrl = (params?: ListGoalsParams,) => {\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 ? `/tutoring/goals?${stringifiedParams}` : `/tutoring/goals`\n}\n\n/**\n * Goals on offer, optionally narrowed to one request kind.\n *\n * The filter is a containment test against ``applies_to``, which is what the\n * GIN index on that column is for. The legacy asks the same question with four\n * boolean columns and a different ``WHERE`` per surface.\n * @summary List Goals\n */\nexport const listGoals = async (params?: ListGoalsParams, options?: Parameters<typeof request>[1]): Promise<EducationalGoalListRead> => {\n\n return request<EducationalGoalListRead>(getListGoalsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListLevelsUrl = () => {\n\n\n\n\n return `/tutoring/levels`\n}\n\n/**\n * Every school level, in teaching order rather than alphabetical.\n * @summary List Levels\n */\nexport const listLevels = async ( options?: Parameters<typeof request>[1]): Promise<LevelListRead> => {\n\n return request<LevelListRead>(getListLevelsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListSubjectsUrl = () => {\n\n\n\n\n return `/tutoring/subjects`\n}\n\n/**\n * Every subject a pupil may ask about, in display order.\n *\n * Authenticated, though the data is not secret: the list differs by nothing\n * today, and leaving it open would make it the one tutoring endpoint that does\n * not establish a tenant. Cheap to relax later, expensive to tighten.\n * @summary List Subjects\n */\nexport const listSubjects = async ( options?: Parameters<typeof request>[1]): Promise<SubjectListRead> => {\n\n return request<SubjectListRead>(getListSubjectsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,mBAAmB,WAA8B;CAC5D,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,mBAAmB,sBAAsB;AACjF;;;;;;;;;AAUA,MAAa,YAAY,OAAO,QAA0B,YAA8E;CAEtI,OAAO,QAAiC,gBAAgB,MAAM,GAC9D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,yBAAyB;CAKpC,OAAO;AACT;;;;;AAMA,MAAa,aAAa,OAAQ,YAAoE;CAEpG,OAAO,QAAuB,iBAAiB,GAC/C;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;;;;;;AAUA,MAAa,eAAe,OAAQ,YAAsE;CAExG,OAAO,QAAyB,mBAAmB,GACnD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { Li as MessageWrite, Ri as MessagePage, i_ as ChatTicketRead, pa as ListMessagesParams, zi as MessageRead } from "../chunks/index.js";
2
+ import { D_ as ChatTicketRead, Fa as ListMessagesParams, aa as MessagePage, ia as MessageWrite, oa as MessageRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/tutoring-chat/tutoring-chat.d.ts
5
5
  export declare const getMintChatTicketUrl: (requestId: number) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"tutoring-chat.js","names":[],"sources":["../../src/api/tutoring-chat/tutoring-chat.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.17.0\n */\nimport type {\n ChatTicketRead,\n ListMessagesParams,\n MessagePage,\n MessageRead,\n MessageWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getMintChatTicketUrl = (requestId: number,) => {\n\n\n\n\n return `/tutoring/requests/${requestId}/chat/ticket`\n}\n\n/**\n * A single-use credential for opening the socket from a browser.\n *\n * Authenticated the ordinary way, with the ordinary bearer token, because this\n * is an ordinary HTTP request. What it returns is what goes in the socket URL.\n * @summary Mint Chat Ticket\n */\nexport const mintChatTicket = async (requestId: number, options?: Parameters<typeof request>[1]): Promise<ChatTicketRead> => {\n\n return request<ChatTicketRead>(getMintChatTicketUrl(requestId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getListMessagesUrl = (requestId: number,\n params?: ListMessagesParams,) => {\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 ? `/tutoring/requests/${requestId}/messages?${stringifiedParams}` : `/tutoring/requests/${requestId}/messages`\n}\n\n/**\n * The conversation so far, newest first.\n *\n * One extra row is fetched to answer ``hasMore`` without a second count. A\n * ``COUNT(*)`` over a thread on every scroll is a table scan for a number no\n * interface displays.\n * @summary List Messages\n */\nexport const listMessages = async (requestId: number,\n params?: ListMessagesParams, options?: Parameters<typeof request>[1]): Promise<MessagePage> => {\n\n return request<MessagePage>(getListMessagesUrl(requestId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getSendMessageUrl = (requestId: number,) => {\n\n\n\n\n return `/tutoring/requests/${requestId}/messages`\n}\n\n/**\n * Say something, without holding a socket open.\n * @summary Send Message\n */\nexport const sendMessage = async (requestId: number,\n messageWrite: MessageWrite, options?: Parameters<typeof request>[1]): Promise<MessageRead> => {\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<MessageRead>(getSendMessageUrl(requestId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(messageWrite)\n }\n);}\n\n\n"],"mappings":";;;AAiBA,MAAa,wBAAwB,cAAuB;CAK1D,OAAO,sBAAsB,UAAU;AACzC;;;;;;;;AASA,MAAa,iBAAiB,OAAO,WAAmB,YAAqE;CAE3H,OAAO,QAAwB,qBAAqB,SAAS,GAC7D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,sBAAsB,WAC/B,WAAiC;CACnC,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,UAAU,YAAY,sBAAsB,sBAAsB,UAAU;AAC1I;;;;;;;;;AAUA,MAAa,eAAe,OAAO,WAC/B,QAA6B,YAAkE;CAEjG,OAAO,QAAqB,mBAAmB,WAAU,MAAM,GAC/D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,qBAAqB,cAAuB;CAKvD,OAAO,sBAAsB,UAAU;AACzC;;;;;AAMA,MAAa,cAAc,OAAO,WAC9B,cAA4B,YAAkE;CAE9F,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,QAAqB,kBAAkB,SAAS,GACrD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,YAAY;CACnC,CACF;AAAE"}
1
+ {"version":3,"file":"tutoring-chat.js","names":[],"sources":["../../src/api/tutoring-chat/tutoring-chat.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.17.2\n */\nimport type {\n ChatTicketRead,\n ListMessagesParams,\n MessagePage,\n MessageRead,\n MessageWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getMintChatTicketUrl = (requestId: number,) => {\n\n\n\n\n return `/tutoring/requests/${requestId}/chat/ticket`\n}\n\n/**\n * A single-use credential for opening the socket from a browser.\n *\n * Authenticated the ordinary way, with the ordinary bearer token, because this\n * is an ordinary HTTP request. What it returns is what goes in the socket URL.\n * @summary Mint Chat Ticket\n */\nexport const mintChatTicket = async (requestId: number, options?: Parameters<typeof request>[1]): Promise<ChatTicketRead> => {\n\n return request<ChatTicketRead>(getMintChatTicketUrl(requestId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getListMessagesUrl = (requestId: number,\n params?: ListMessagesParams,) => {\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 ? `/tutoring/requests/${requestId}/messages?${stringifiedParams}` : `/tutoring/requests/${requestId}/messages`\n}\n\n/**\n * The conversation so far, newest first.\n *\n * One extra row is fetched to answer ``hasMore`` without a second count. A\n * ``COUNT(*)`` over a thread on every scroll is a table scan for a number no\n * interface displays.\n * @summary List Messages\n */\nexport const listMessages = async (requestId: number,\n params?: ListMessagesParams, options?: Parameters<typeof request>[1]): Promise<MessagePage> => {\n\n return request<MessagePage>(getListMessagesUrl(requestId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getSendMessageUrl = (requestId: number,) => {\n\n\n\n\n return `/tutoring/requests/${requestId}/messages`\n}\n\n/**\n * Say something, without holding a socket open.\n * @summary Send Message\n */\nexport const sendMessage = async (requestId: number,\n messageWrite: MessageWrite, options?: Parameters<typeof request>[1]): Promise<MessageRead> => {\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<MessageRead>(getSendMessageUrl(requestId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(messageWrite)\n }\n);}\n\n\n"],"mappings":";;;AAiBA,MAAa,wBAAwB,cAAuB;CAK1D,OAAO,sBAAsB,UAAU;AACzC;;;;;;;;AASA,MAAa,iBAAiB,OAAO,WAAmB,YAAqE;CAE3H,OAAO,QAAwB,qBAAqB,SAAS,GAC7D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,sBAAsB,WAC/B,WAAiC;CACnC,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,UAAU,YAAY,sBAAsB,sBAAsB,UAAU;AAC1I;;;;;;;;;AAUA,MAAa,eAAe,OAAO,WAC/B,QAA6B,YAAkE;CAEjG,OAAO,QAAqB,mBAAmB,WAAU,MAAM,GAC/D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,qBAAqB,cAAuB;CAKvD,OAAO,sBAAsB,UAAU;AACzC;;;;;AAMA,MAAa,cAAc,OAAO,WAC9B,cAA4B,YAAkE;CAE9F,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,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