@learnorama/mozaik-sdk 0.18.0-staging.59.1 → 0.20.0-staging.61.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 (307) hide show
  1. package/CUSTOMER-ADMIN.md +7 -0
  2. package/CVS-PLAYBACK.md +5 -0
  3. package/FRONTEND-REQUESTS.md +17 -2
  4. package/OFFLINE.md +78 -0
  5. package/PRESS.md +42 -2
  6. package/README.md +7 -4
  7. package/dist/api/account.d.ts +1 -1
  8. package/dist/api/account.js.map +1 -1
  9. package/dist/api/admin-catalogue.d.ts +2 -2
  10. package/dist/api/admin-catalogue.js +1 -1
  11. package/dist/api/admin-catalogue.js.map +1 -1
  12. package/dist/api/admin-consumption.d.ts +1 -1
  13. package/dist/api/admin-consumption.js.map +1 -1
  14. package/dist/api/admin-contracts.d.ts +1 -1
  15. package/dist/api/admin-contracts.js.map +1 -1
  16. package/dist/api/admin-customer.d.ts +19 -2
  17. package/dist/api/admin-customer.js +38 -2
  18. package/dist/api/admin-customer.js.map +1 -1
  19. package/dist/api/admin-desk.d.ts +179 -1
  20. package/dist/api/admin-desk.js +507 -1
  21. package/dist/api/admin-desk.js.map +1 -1
  22. package/dist/api/admin-licenses.d.ts +1 -1
  23. package/dist/api/admin-licenses.js.map +1 -1
  24. package/dist/api/admin-partner-selections.d.ts +1 -1
  25. package/dist/api/admin-partner-selections.js.map +1 -1
  26. package/dist/api/admin-patrons.d.ts +1 -1
  27. package/dist/api/admin-patrons.js.map +1 -1
  28. package/dist/api/admin-reviews.d.ts +1 -1
  29. package/dist/api/admin-reviews.js.map +1 -1
  30. package/dist/api/admin-roles.d.ts +1 -1
  31. package/dist/api/admin-roles.js.map +1 -1
  32. package/dist/api/admin-support.d.ts +1 -1
  33. package/dist/api/admin-support.js.map +1 -1
  34. package/dist/api/admin-tenants.d.ts +1 -1
  35. package/dist/api/admin-tenants.js.map +1 -1
  36. package/dist/api/admin-tutoring.d.ts +1 -1
  37. package/dist/api/admin-tutoring.js.map +1 -1
  38. package/dist/api/admin-vod.d.ts +1 -1
  39. package/dist/api/admin-vod.js.map +1 -1
  40. package/dist/api/auth-device.d.ts +1 -1
  41. package/dist/api/auth-device.js.map +1 -1
  42. package/dist/api/auth.d.ts +1 -1
  43. package/dist/api/auth.js.map +1 -1
  44. package/dist/api/biblio-billing-webhooks.d.ts +1 -1
  45. package/dist/api/biblio-billing-webhooks.js.map +1 -1
  46. package/dist/api/biblio-billing.d.ts +1 -1
  47. package/dist/api/biblio-billing.js.map +1 -1
  48. package/dist/api/biblio-catalogue.d.ts +1 -1
  49. package/dist/api/biblio-catalogue.js.map +1 -1
  50. package/dist/api/biblio-home.d.ts +1 -1
  51. package/dist/api/biblio-home.js.map +1 -1
  52. package/dist/api/biblio-learning-author-profiles.d.ts +1 -1
  53. package/dist/api/biblio-learning-author-profiles.js.map +1 -1
  54. package/dist/api/biblio-learning-authoring.d.ts +1 -1
  55. package/dist/api/biblio-learning-authoring.js.map +1 -1
  56. package/dist/api/biblio-learning-editorial.d.ts +1 -1
  57. package/dist/api/biblio-learning-editorial.js.map +1 -1
  58. package/dist/api/biblio-learning-feedback.d.ts +1 -1
  59. package/dist/api/biblio-learning-feedback.js.map +1 -1
  60. package/dist/api/biblio-learning-finance.d.ts +1 -1
  61. package/dist/api/biblio-learning-finance.js.map +1 -1
  62. package/dist/api/biblio-learning-integrations.d.ts +1 -1
  63. package/dist/api/biblio-learning-integrations.js.map +1 -1
  64. package/dist/api/biblio-learning-membership.d.ts +1 -1
  65. package/dist/api/biblio-learning-membership.js.map +1 -1
  66. package/dist/api/biblio-learning.d.ts +1 -1
  67. package/dist/api/biblio-learning.js.map +1 -1
  68. package/dist/api/biblio-library.d.ts +1 -1
  69. package/dist/api/biblio-library.js.map +1 -1
  70. package/dist/api/biblio-nextory.d.ts +1 -1
  71. package/dist/api/biblio-nextory.js.map +1 -1
  72. package/dist/api/biblio-press.d.ts +1 -1
  73. package/dist/api/biblio-press.js.map +1 -1
  74. package/dist/api/biblio-search.d.ts +1 -1
  75. package/dist/api/biblio-search.js.map +1 -1
  76. package/dist/api/biblio-telemetry.d.ts +1 -1
  77. package/dist/api/biblio-telemetry.js.map +1 -1
  78. package/dist/api/biblio-youscribe.d.ts +1 -1
  79. package/dist/api/biblio-youscribe.js.map +1 -1
  80. package/dist/api/consumption.d.ts +19 -1
  81. package/dist/api/consumption.js +53 -1
  82. package/dist/api/consumption.js.map +1 -1
  83. package/dist/api/cvs-app.d.ts +1 -1
  84. package/dist/api/cvs-app.js.map +1 -1
  85. package/dist/api/cvs-documents.d.ts +1 -1
  86. package/dist/api/cvs-documents.js.map +1 -1
  87. package/dist/api/cvs-favorites.d.ts +1 -1
  88. package/dist/api/cvs-favorites.js.map +1 -1
  89. package/dist/api/cvs-ils.d.ts +1 -1
  90. package/dist/api/cvs-ils.js.map +1 -1
  91. package/dist/api/cvs-loans.d.ts +7 -1
  92. package/dist/api/cvs-loans.js +27 -1
  93. package/dist/api/cvs-loans.js.map +1 -1
  94. package/dist/api/cvs-payments.d.ts +1 -1
  95. package/dist/api/cvs-payments.js.map +1 -1
  96. package/dist/api/cvs-streaming.d.ts +16 -1
  97. package/dist/api/cvs-streaming.js +43 -1
  98. package/dist/api/cvs-streaming.js.map +1 -1
  99. package/dist/api/index.d.ts +9 -9
  100. package/dist/api/index.js +9 -9
  101. package/dist/api/partner-catalogue.d.ts +39 -5
  102. package/dist/api/partner-catalogue.js +71 -6
  103. package/dist/api/partner-catalogue.js.map +1 -1
  104. package/dist/api/partner-reader-nextory.d.ts +30 -12
  105. package/dist/api/partner-reader-nextory.js +70 -12
  106. package/dist/api/partner-reader-nextory.js.map +1 -1
  107. package/dist/api/partner-reader-youscribe.d.ts +13 -1
  108. package/dist/api/partner-reader-youscribe.js +27 -1
  109. package/dist/api/partner-reader-youscribe.js.map +1 -1
  110. package/dist/api/partner-reading.d.ts +1 -1
  111. package/dist/api/partner-reading.js.map +1 -1
  112. package/dist/api/profiles.d.ts +1 -1
  113. package/dist/api/profiles.js.map +1 -1
  114. package/dist/api/search.d.ts +1 -1
  115. package/dist/api/search.js.map +1 -1
  116. package/dist/api/tutoring-catalogue.d.ts +1 -1
  117. package/dist/api/tutoring-catalogue.js.map +1 -1
  118. package/dist/api/tutoring-chat.d.ts +1 -1
  119. package/dist/api/tutoring-chat.js.map +1 -1
  120. package/dist/api/tutoring-dispatch.d.ts +1 -1
  121. package/dist/api/tutoring-dispatch.js.map +1 -1
  122. package/dist/api/tutoring-practitioner.d.ts +1 -1
  123. package/dist/api/tutoring-practitioner.js.map +1 -1
  124. package/dist/api/tutoring-requests.d.ts +1 -1
  125. package/dist/api/tutoring-requests.js.map +1 -1
  126. package/dist/auth.d.ts +2 -33
  127. package/dist/auth.js +8 -2
  128. package/dist/auth.js.map +1 -1
  129. package/dist/chunks/client2.d.ts +2 -2
  130. package/dist/chunks/connection.d.ts +1 -1
  131. package/dist/chunks/index.d.ts +2533 -731
  132. package/dist/chunks/index2.d.ts +34 -0
  133. package/dist/index.d.ts +3 -3
  134. package/dist/index.js +3 -3
  135. package/dist/index.js.map +1 -1
  136. package/dist/models.d.ts +2 -2
  137. package/dist/models.js +214 -4
  138. package/dist/models.js.map +1 -1
  139. package/dist/offline.d.ts +42 -0
  140. package/dist/offline.js +353 -0
  141. package/dist/offline.js.map +1 -0
  142. package/dist/react/account.d.ts +1 -1
  143. package/dist/react/account.js +1 -1
  144. package/dist/react/account.js.map +1 -1
  145. package/dist/react/admin-catalogue.d.ts +2 -2
  146. package/dist/react/admin-catalogue.js +2 -2
  147. package/dist/react/admin-catalogue.js.map +1 -1
  148. package/dist/react/admin-consumption.d.ts +1 -1
  149. package/dist/react/admin-consumption.js +1 -1
  150. package/dist/react/admin-consumption.js.map +1 -1
  151. package/dist/react/admin-contracts.d.ts +1 -1
  152. package/dist/react/admin-contracts.js +1 -1
  153. package/dist/react/admin-contracts.js.map +1 -1
  154. package/dist/react/admin-customer.d.ts +73 -2
  155. package/dist/react/admin-customer.js +87 -3
  156. package/dist/react/admin-customer.js.map +1 -1
  157. package/dist/react/admin-desk.d.ts +620 -1
  158. package/dist/react/admin-desk.js +1057 -27
  159. package/dist/react/admin-desk.js.map +1 -1
  160. package/dist/react/admin-licenses.d.ts +1 -1
  161. package/dist/react/admin-licenses.js +1 -1
  162. package/dist/react/admin-licenses.js.map +1 -1
  163. package/dist/react/admin-partner-selections.d.ts +1 -1
  164. package/dist/react/admin-partner-selections.js +1 -1
  165. package/dist/react/admin-partner-selections.js.map +1 -1
  166. package/dist/react/admin-patrons.d.ts +1 -1
  167. package/dist/react/admin-patrons.js +1 -1
  168. package/dist/react/admin-patrons.js.map +1 -1
  169. package/dist/react/admin-reviews.d.ts +1 -1
  170. package/dist/react/admin-reviews.js +1 -1
  171. package/dist/react/admin-reviews.js.map +1 -1
  172. package/dist/react/admin-roles.d.ts +1 -1
  173. package/dist/react/admin-roles.js +1 -1
  174. package/dist/react/admin-roles.js.map +1 -1
  175. package/dist/react/admin-support.d.ts +1 -1
  176. package/dist/react/admin-support.js +1 -1
  177. package/dist/react/admin-support.js.map +1 -1
  178. package/dist/react/admin-tenants.d.ts +1 -1
  179. package/dist/react/admin-tenants.js +1 -1
  180. package/dist/react/admin-tenants.js.map +1 -1
  181. package/dist/react/admin-tutoring.d.ts +1 -1
  182. package/dist/react/admin-tutoring.js +1 -1
  183. package/dist/react/admin-tutoring.js.map +1 -1
  184. package/dist/react/admin-vod.d.ts +1 -1
  185. package/dist/react/admin-vod.js +1 -1
  186. package/dist/react/admin-vod.js.map +1 -1
  187. package/dist/react/auth-device.d.ts +1 -1
  188. package/dist/react/auth-device.js +1 -1
  189. package/dist/react/auth-device.js.map +1 -1
  190. package/dist/react/auth.d.ts +1 -1
  191. package/dist/react/auth.js +1 -1
  192. package/dist/react/auth.js.map +1 -1
  193. package/dist/react/biblio-billing-webhooks.d.ts +1 -1
  194. package/dist/react/biblio-billing-webhooks.js +1 -1
  195. package/dist/react/biblio-billing-webhooks.js.map +1 -1
  196. package/dist/react/biblio-billing.d.ts +1 -1
  197. package/dist/react/biblio-billing.js +1 -1
  198. package/dist/react/biblio-billing.js.map +1 -1
  199. package/dist/react/biblio-catalogue.d.ts +1 -1
  200. package/dist/react/biblio-catalogue.js +1 -1
  201. package/dist/react/biblio-catalogue.js.map +1 -1
  202. package/dist/react/biblio-home.d.ts +1 -1
  203. package/dist/react/biblio-home.js +1 -1
  204. package/dist/react/biblio-home.js.map +1 -1
  205. package/dist/react/biblio-learning-author-profiles.d.ts +1 -1
  206. package/dist/react/biblio-learning-author-profiles.js +1 -1
  207. package/dist/react/biblio-learning-author-profiles.js.map +1 -1
  208. package/dist/react/biblio-learning-authoring.d.ts +1 -1
  209. package/dist/react/biblio-learning-authoring.js +1 -1
  210. package/dist/react/biblio-learning-authoring.js.map +1 -1
  211. package/dist/react/biblio-learning-editorial.d.ts +1 -1
  212. package/dist/react/biblio-learning-editorial.js +1 -1
  213. package/dist/react/biblio-learning-editorial.js.map +1 -1
  214. package/dist/react/biblio-learning-feedback.d.ts +1 -1
  215. package/dist/react/biblio-learning-feedback.js +1 -1
  216. package/dist/react/biblio-learning-feedback.js.map +1 -1
  217. package/dist/react/biblio-learning-finance.d.ts +1 -1
  218. package/dist/react/biblio-learning-finance.js +1 -1
  219. package/dist/react/biblio-learning-finance.js.map +1 -1
  220. package/dist/react/biblio-learning-integrations.d.ts +1 -1
  221. package/dist/react/biblio-learning-integrations.js +1 -1
  222. package/dist/react/biblio-learning-integrations.js.map +1 -1
  223. package/dist/react/biblio-learning-membership.d.ts +1 -1
  224. package/dist/react/biblio-learning-membership.js +1 -1
  225. package/dist/react/biblio-learning-membership.js.map +1 -1
  226. package/dist/react/biblio-learning.d.ts +1 -1
  227. package/dist/react/biblio-learning.js +1 -1
  228. package/dist/react/biblio-learning.js.map +1 -1
  229. package/dist/react/biblio-library.d.ts +1 -1
  230. package/dist/react/biblio-library.js +1 -1
  231. package/dist/react/biblio-library.js.map +1 -1
  232. package/dist/react/biblio-nextory.d.ts +1 -1
  233. package/dist/react/biblio-nextory.js +1 -1
  234. package/dist/react/biblio-nextory.js.map +1 -1
  235. package/dist/react/biblio-press.d.ts +1 -1
  236. package/dist/react/biblio-press.js +1 -1
  237. package/dist/react/biblio-press.js.map +1 -1
  238. package/dist/react/biblio-search.d.ts +1 -1
  239. package/dist/react/biblio-search.js +1 -1
  240. package/dist/react/biblio-search.js.map +1 -1
  241. package/dist/react/biblio-telemetry.d.ts +1 -1
  242. package/dist/react/biblio-telemetry.js +1 -1
  243. package/dist/react/biblio-telemetry.js.map +1 -1
  244. package/dist/react/biblio-youscribe.d.ts +1 -1
  245. package/dist/react/biblio-youscribe.js +1 -1
  246. package/dist/react/biblio-youscribe.js.map +1 -1
  247. package/dist/react/chat.d.ts +1 -1
  248. package/dist/react/consumption.d.ts +85 -3
  249. package/dist/react/consumption.js +148 -3
  250. package/dist/react/consumption.js.map +1 -1
  251. package/dist/react/cvs-app.d.ts +1 -1
  252. package/dist/react/cvs-app.js +1 -1
  253. package/dist/react/cvs-app.js.map +1 -1
  254. package/dist/react/cvs-documents.d.ts +1 -1
  255. package/dist/react/cvs-documents.js +1 -1
  256. package/dist/react/cvs-documents.js.map +1 -1
  257. package/dist/react/cvs-favorites.d.ts +1 -1
  258. package/dist/react/cvs-favorites.js +1 -1
  259. package/dist/react/cvs-favorites.js.map +1 -1
  260. package/dist/react/cvs-ils.d.ts +1 -1
  261. package/dist/react/cvs-ils.js +1 -1
  262. package/dist/react/cvs-ils.js.map +1 -1
  263. package/dist/react/cvs-loans.d.ts +26 -1
  264. package/dist/react/cvs-loans.js +56 -2
  265. package/dist/react/cvs-loans.js.map +1 -1
  266. package/dist/react/cvs-payments.d.ts +1 -1
  267. package/dist/react/cvs-payments.js +1 -1
  268. package/dist/react/cvs-payments.js.map +1 -1
  269. package/dist/react/cvs-streaming.d.ts +62 -1
  270. package/dist/react/cvs-streaming.js +97 -2
  271. package/dist/react/cvs-streaming.js.map +1 -1
  272. package/dist/react/index.d.ts +9 -9
  273. package/dist/react/index.js +9 -9
  274. package/dist/react/partner-catalogue.d.ts +121 -6
  275. package/dist/react/partner-catalogue.js +147 -7
  276. package/dist/react/partner-catalogue.js.map +1 -1
  277. package/dist/react/partner-reader-nextory.d.ts +69 -12
  278. package/dist/react/partner-reader-nextory.js +128 -13
  279. package/dist/react/partner-reader-nextory.js.map +1 -1
  280. package/dist/react/partner-reader-youscribe.d.ts +57 -1
  281. package/dist/react/partner-reader-youscribe.js +80 -2
  282. package/dist/react/partner-reader-youscribe.js.map +1 -1
  283. package/dist/react/partner-reading.d.ts +1 -1
  284. package/dist/react/partner-reading.js +1 -1
  285. package/dist/react/partner-reading.js.map +1 -1
  286. package/dist/react/profiles.d.ts +1 -1
  287. package/dist/react/profiles.js +1 -1
  288. package/dist/react/profiles.js.map +1 -1
  289. package/dist/react/search.d.ts +1 -1
  290. package/dist/react/search.js +1 -1
  291. package/dist/react/search.js.map +1 -1
  292. package/dist/react/tutoring-catalogue.d.ts +1 -1
  293. package/dist/react/tutoring-catalogue.js +1 -1
  294. package/dist/react/tutoring-catalogue.js.map +1 -1
  295. package/dist/react/tutoring-chat.d.ts +1 -1
  296. package/dist/react/tutoring-chat.js +1 -1
  297. package/dist/react/tutoring-chat.js.map +1 -1
  298. package/dist/react/tutoring-dispatch.d.ts +1 -1
  299. package/dist/react/tutoring-dispatch.js +1 -1
  300. package/dist/react/tutoring-dispatch.js.map +1 -1
  301. package/dist/react/tutoring-practitioner.d.ts +1 -1
  302. package/dist/react/tutoring-practitioner.js +1 -1
  303. package/dist/react/tutoring-practitioner.js.map +1 -1
  304. package/dist/react/tutoring-requests.d.ts +1 -1
  305. package/dist/react/tutoring-requests.js +1 -1
  306. package/dist/react/tutoring-requests.js.map +1 -1
  307. package/package.json +13 -8
package/CUSTOMER-ADMIN.md CHANGED
@@ -42,6 +42,13 @@ if (organization.enrolledVisible) {
42
42
  }
43
43
  ```
44
44
 
45
+ For the dashboard date picker, pass both calendar dates, for example
46
+ `readCustomerDashboard({ startDate: '2026-03-01', endDate: '2026-03-31' }, { client })`.
47
+ Both dates are inclusive in Europe/Paris, with a maximum of 366 days.
48
+ A complete pair overrides `days`. The API returns `since` and an exclusive `until`
49
+ as instants, and `previousSince` starts the preceding period of equal calendar length.
50
+ The same optional `site` filter applies to both periods.
51
+
45
52
  Use `organization.role` (also projected in auth principal roles):
46
53
 
47
54
  | Role | Access in this first integration |
package/CVS-PLAYBACK.md CHANGED
@@ -12,6 +12,11 @@ for the real credit balance, contract act and film cost. Catalogue cards do not
12
12
  promise that a media package is available. Missing required playback media is a
13
13
  server error; there is no simulated balance or alternate-provider fallback.
14
14
 
15
+ `GET /cvs/documents/{doc_id}` returns `synopsis` alongside `previews`, `extract1`
16
+ and `extract2`. The synopsis preserves the catalogue text, including any HTML;
17
+ render it as text or sanitize it before HTML rendering. Empty or whitespace-only
18
+ source text returns `null`. Reading a synopsis does not spend a cinema credit.
19
+
15
20
  `GET /streaming/{doc_id}/details` provides metadata without spending a credit.
16
21
  Licence URLs are available after opening the actual playback session.
17
22
 
@@ -52,6 +52,12 @@ requires acknowledged delivery; bounced requires delivery evidence. A missing
52
52
  login or a legacy integer email flag is insufficient. Overview counters use the
53
53
  same status projection. Site selectors only narrow the caller's scope.
54
54
 
55
+ Use `GET /admin/me/beneficiaries/packs` (`listBeneficiaryPackChoices`) to populate
56
+ the elected-pack picker. Each option has `packId` and `title`. For an existing
57
+ beneficiary pass their `site`; for an invitation pass the chosen site. Omitting
58
+ it uses the administrator's assigned site or home organization. An empty list
59
+ means that the site currently offers no assignable choices.
60
+
55
61
  `PATCH /admin/me/beneficiaries/{id}` changes organisation access, employee ID,
56
62
  access end or an allowed elected pack. Suspension keeps the shared identity and
57
63
  personal purchases intact. Globally disabled identities require Mozaik staff.
@@ -78,11 +84,18 @@ it removes organization access, not the global account.
78
84
 
79
85
  ## Imports, exports and registration codes
80
86
 
87
+ Download the blank Excel template with
88
+ `GET /admin/me/beneficiaries/imports/template` (`downloadBeneficiaryImportTemplate`,
89
+ a `Blob`). It contains the required `email` and `firstName` headers. Add optional
90
+ columns only when you intend to supply those fields.
91
+
81
92
  Preview JSON rows with `POST /admin/me/beneficiaries/imports/preview`, or upload
82
93
  UTF-8 CSV/values-only XLSX to `/imports/files` (20 MiB, 100,000 rows maximum).
83
94
  Columns: email, firstName, lastName, employeeId, accessEnd, electedPack, site.
84
95
  French header equivalents are accepted. Civil access-end dates are interpreted
85
96
  as end-of-day in Europe/Paris. Formula-bearing spreadsheets are rejected.
97
+ File preview errors refer to the worksheet row or the starting line of the CSV
98
+ record, including when earlier rows were blank or rejected.
86
99
 
87
100
  The default mode is `upsert`. `replace` additionally records the exact missing
88
101
  membership IDs that the preview proposes to disable. It never deletes accounts
@@ -94,8 +107,10 @@ A failed batch rolls back and can be retried after reconciliation through
94
107
  not send invitations or provision provider accounts. Temporary source payloads
95
108
  are cleared after completion or preview expiry; reports retain counts.
96
109
 
97
- `GET /admin/me/beneficiaries/export` returns an audited XLSX, at most 100,000
98
- rows. IDs and text are explicit spreadsheet strings to preserve long identifiers
110
+ `GET /admin/me/beneficiaries/export` accepts the directory's `site`, `status`
111
+ and `invitedBefore` filters and returns an audited XLSX of up to 100,000 rows.
112
+ For the invitation cleanup, pass `status=invited` together with the delivery cutoff.
113
+ IDs and text are explicit spreadsheet strings to preserve long identifiers
99
114
  and avoid formula execution.
100
115
 
101
116
  Registration codes have their own quota; consumption units are not registration
package/OFFLINE.md ADDED
@@ -0,0 +1,78 @@
1
+ # Offline downloads and usage reporting
2
+
3
+ The API has two acquisition flows and one usage sync. Keep an encrypted local shelf per effective profile and installation. Downloading a copy opens no live reading or playback session. Ordinary online readers continue to use their existing lease and heartbeat.
4
+
5
+ | Operation | Purpose |
6
+ |---|---|
7
+ | `GET /cvs/documents/{doc_id}/download-access` | Available offline DRM schemes for an entitled film. An empty list hides Download. |
8
+ | `POST /cvs/loans/{loan_id}/downloads` | Bind an existing download loan to one device, scheme and encrypted asset revision. |
9
+ | `POST /streaming/downloads/{download_id}/licence` | Exchange a native CDM challenge for opaque persistent licence bytes. |
10
+ | `GET /partners/youscribe/download-verification-key` | Current Ed25519 public JWK for the native reader. |
11
+ | `POST /partners/youscribe/media/{media_id}/downloads` | Authorize protected acquisition by the YouScribe reader for an already seated profile. |
12
+ | `GET /me/downloads/{download_id}` | Read this installation’s acquisition receipt, removal date and film licence state. |
13
+ | `PUT /me/downloads/{download_id}/usage/{session_id}` | Reconcile one completed interval of offline reading or playback. |
14
+ | `DELETE /me/downloads/{download_id}` | Mark this installation’s download removed. |
15
+
16
+ Use the normal authenticated SDK client for Mozaik routes. Device-scoped calls require `X-Device-Id` (a stable random installation identifier). Each acquisition POST also requires an `Idempotency-Key` UUID. Save it before sending and retry with the same key, profile, title, device and format. A new acquisition returns 201 with its receipt in `Location`; an identical retry returns 200. The key is also the returned `downloadId`; authentication still determines who owns the copy. Offline operations require the reader's own session with at least medium assurance.
17
+
18
+ ## CVS films
19
+
20
+ 1. Call `readFilmDownloadAccess`. After the user taps Download, use their existing `loan_download` loan or explicitly borrow the film through `POST /cvs/loans` with `act: "loan_download"`, the installation ID and a stable loan request key. Borrowing is the billable action and consumes its usual quota. Use a separate acquisition UUID. A streaming or view-only grant does not qualify.
21
+ 2. Call `acquireFilmDownload(loanId, { scheme: 'widevine' }, { client, headers })` for Android or select `fairplay` for iOS when advertised. Download the encrypted DASH/HLS presentation from `manifestUrl` with the native media downloader. Send the native challenge to the Mozaik `licenceUrl` as `application/octet-stream`, with normal auth and the same device header. The Widevine service-certificate request is supported. FairPlay returns the public certificate URL alongside its HLS manifest. Send Mozaik credentials only to the Mozaik API.
22
+ 3. Store the device DRM licence using the native persistent-key APIs. Enforce `expiresAt` with the native trusted clock. The **entire offline film window is at most 48 hours from borrowing**. A shorter grant, loan or membership deadline wins. A first play, reinstall, re-download or retry does not start another 48 hours. Persistent Widevine licences require a verified platform even when the streaming test policy permits unverified platforms. Returning the loan prevents further licence delivery. An already issued persistent copy can keep its contractual seat until expiry.
23
+ 4. A successful identical CDM challenge can replay the stored opaque response without another provider call. A different challenge after issuance returns 409. An unconfirmed provider outcome returns 503 and is held for reconciliation until expiry; check with support before starting another paid borrow. Expired licence responses are cleared by the existing nightly retention task.
24
+
25
+ ## YouScribe books and audio
26
+
27
+ `acquireYouscribeDownload(mediaId, { client, headers })` returns the Mozaik media ID, YouScribe product ID, format, personal acquisition token, signed permit and deadline. Only an existing eligible seat can download. An acquisition checks the profile's catalogue access and the product's full download rights. EPUB and PDF use the protected native reader. An audiobook additionally needs a full downloadable chapter archive and an explicitly unlimited upstream listening allowance. Finite audio credit needs a partner-approved offline reservation or reconciliation rule before it can be enabled.
28
+
29
+ Fetch the public key over the authenticated, trusted API connection during acquisition. Keep trusted keys by environment and `kid` until their permits expire. Verify the permit in native code with EdDSA, the trusted key, issuer `mozaik:<environment>`, audience `mozaik-offline-reader`, and its `iat` and `exp`. Match `sub` and `tenant` (decimal strings), `provider`, `mediaId` (decimal string), `externalId`, `format`, `jti` (download UUID) and `device` (lowercase SHA-256 hex of UTF-8 installation ID) to the active partition and item. Use the earliest of the signed deadline and the provider's applicable rights. Refuse expired permits, clock rollback, provider extracts and unsupported/unprotected delivery. Protect the local package and keys with the platform vault, including explicit downloads. The token is for the native partner acquisition request and stays in memory. Revalidate via the original acquisition when reconnecting. Purge on a definitive access denial, profile removal or logout.
30
+
31
+ ## Reporting on reconnect
32
+
33
+ Generate a UUID per continuous interval of actual use. Save it with its download ID and two timezone-aware timestamps in the profile's local outbox. Close the interval when reading or playback stops or pauses.
34
+
35
+ ```ts
36
+ import { reportOfflineUsage } from '@learnorama/mozaik-sdk/api/consumption';
37
+
38
+ const receipt = await reportOfflineUsage(downloadId, intervalId, {
39
+ startedAt, endedAt,
40
+ }, { client, headers: { 'X-Device-Id': installationId } });
41
+ ```
42
+
43
+ An identical retry returns the same `eventId`. A changed payload under the same UUID or an overlapping interval for that copy returns 409. A future, empty or out-of-window interval is refused. Valid earlier use can arrive after expiry or removal while the installation binding is retained. The nightly retention job anonymizes that binding after the existing consumption identifier retention period. Store and retry the original timestamps. Upload outstanding usage before purging on online logout when possible; another profile must never replay it.
44
+
45
+ A receipt links one closed `consumption_event` to `offline_usage` and its authorization. Its occurrence and end are the client-reported times, its recording time is server time, its units are zero and `is_reported` is true. It retains the authorized subject, contract, grant and billing tenant. For a film it also references the original paid loan. Reports that distinguish observed from reported usage can identify these individual receipts via `offline_usage.event_id`. This sync records Mozaik usage. Settlement with the partner is a separate integration.
46
+
47
+ ## Browser reporting
48
+
49
+ Create one reporter at browser app startup, even when no player is mounted. Pass the same SSO controller used for the API and the installation ID used for acquisition. The helper uses IndexedDB and requires a secure context (HTTPS or localhost).
50
+
51
+ ```ts
52
+ import { createBrowserOfflineUsage } from '@learnorama/mozaik-sdk/offline';
53
+
54
+ const usage = createBrowserOfflineUsage({ auth, deviceId: installationId, onIssue });
55
+
56
+ // Immediately after acquiring a download under the current profile:
57
+ const binding = usage.bind(acquiredDownload);
58
+ // Save only this reporting binding alongside the owner's protected offline copy.
59
+
60
+ // When the authorized offline copy is loaded into an HTML video or audio element:
61
+ const detach = usage.trackMedia(binding, mediaElement);
62
+ // On player teardown or before replacing its source:
63
+ detach();
64
+ ```
65
+
66
+ The media adapter listens for actual playback and samples advancing media time every five seconds. Pause, buffering and seeking close the interval. For a reader with its own activity signals, await `usage.observe(binding)` on confirmed use (typically every 5–10 seconds during active reading), and `usage.end(binding)` on pause or close. A report ends at the last confirmed observation. A 45-second gap separates intervals. A tab crash can lose activity since its last successful checkpoint. A second player attempting to record the same copy receives a capture error.
67
+
68
+ After an offline restart, restore the binding from the locally unlocked profile's shelf. It contains only the download ID, scope and grant dates. It authorizes no playback. The reporter can capture offline and will upload only when the original account, tenant, API environment and installation match. Detach the player on logout or profile switch. At app teardown call `usage.dispose()`.
69
+
70
+ Startup, reconnect, return to the foreground, and a new authenticated session all wake the queue. The SDK retries transient failures with backoff and respects `Retry-After`. A lost acknowledgement reuses the same UUID and timestamps. HTTP 401/403 waits for renewed authentication; a rejected interval (e.g. HTTP 409 or 422) stays in IndexedDB for diagnosis and other intervals can proceed. Use `onIssue` to surface storage/capture failures and rejected receipts to the app. A direct `observe` or `end` caller also handles write errors from its returned promise.
71
+
72
+ Delivery requires the browser to run with a usable authenticated session and its site data intact. Private session expiry, storage eviction or clearing site data can remove queued observations. The reporting helper does not provide browser DRM, provider authorization, or a closed-browser delivery guarantee.
73
+
74
+ ## Enablement and device acceptance
75
+
76
+ Both acquisition flows default off. In the integration Secrets the release workflow accepts optional `YOUSCRIBE_OFFLINE_HOURS` (a reviewed finite duration), `YOUSCRIBE_OFFLINE_SIGNING_KEY` (a deployment-specific Ed25519 PKCS#8 private PEM), and `VOD_OFFLINE_SCHEMES` (a JSON array drawn from the enabled Widevine and FairPlay schemes). Apply the database migration before enabling either flow. Distribute only the public verification key to clients.
77
+
78
+ Before enabling a mobile release, test on physical Android and iOS devices: acquire online, kill the app, open in airplane mode, seek or change chapters, deny after expiry and on profile switch, reconnect and send the same report twice. Verify one usage row and the original loan debit. A simulated DRM response or a successful licence HTTP status alone does not demonstrate offline playback.
package/PRESS.md CHANGED
@@ -53,7 +53,9 @@ if (article) {
53
53
 
54
54
  `/press-feed` remains a feed of publication cards. `/press-review` contains real
55
55
  article cards and uses publication favourites already saved with
56
- `mode=press_title`. It offers selected headlines and related themes; each
56
+ `mode=press_title`. In the unfiltered review, an available editorial
57
+ `headlines` section comes first. `favoritesHeadlines` follows whenever a
58
+ followed publication has eligible headlines, even a single one. Each
57
59
  section includes its own page and continuation URL. Review selection applies
58
60
  the editorial rules and a maximum of four articles per publication before
59
61
  pagination. Monthly and other long-period editions remain eligible for their
@@ -128,6 +130,42 @@ article. `readingMinutes` is estimated at 200 words/minute **only when a full
128
130
  article word count is known**. The sampled Discovery response has no such count;
129
131
  null must remain absent in the UI. A short summary is not the full article.
130
132
 
133
+ `standfirst` is a nullable teaser capped at 200 characters. Discovery's
134
+ publisher-supplied `article.subTitle` takes precedence. When it is absent,
135
+ the API uses ICU to take the first sentence of the summary in the article or
136
+ publication language. ICU also supplies word boundaries when shortening a
137
+ long teaser. `summary` continues to expose the full supplied summary or, when
138
+ that is absent, the subtitle. Titles, summaries and sections are served as
139
+ plain text with soft hyphens removed.
140
+
141
+ Articles are listed by default. A global press administrator can hide one
142
+ item with `PATCH /admin/press/articles/{article_id}/metadata` and
143
+ `{"isListed": false}`. Send `true` to restore it. The edit is audited and
144
+ persists across provider refreshes. Lists, review sections, topic counts and
145
+ `newCount` respect it. Existing entitled direct links still resolve.
146
+ The Discovery sample exposes publication and attachment types. An automatic
147
+ article-type exclusion would require a verified item-level discriminator.
148
+ For missing letters in the supplied text, send PressReader the publication ID,
149
+ issue date and `providerArticleId` so the publisher can locate its source item.
150
+
151
+ `isNew` uses the same rule as the review's `newCount`. The article must be
152
+ listed, still within its editorial lifetime, and first seen after the active
153
+ profile's acknowledged visit. With no previous visit, all current listed
154
+ articles are new. Reading the article and acknowledging the review are
155
+ independent actions. An article can be both read and new.
156
+
157
+ For the cover wall, call `listPressTitles({ region: 'FR-ARA', limit: 7 }, { client })`
158
+ or `listPressTitles({ excludeCountries: 'FR', limit: 7 }, { client })`.
159
+ Country inclusion and exclusion accept comma-separated codes. Exclusion
160
+ requires a recorded country. Both filters apply to accessible, deduplicated
161
+ publications before pagination, so `meta.total` gives the full filtered count.
162
+ Region matching uses the publication mappings exposed in the press facets.
163
+
164
+ For « Vu d’ailleurs », call
165
+ `listPressArticles({ topicId: 21, excludeLang: 'fr,en' }, { client })`.
166
+ The filter uses the article language with the publication language as a fallback.
167
+ Articles with unknown language are omitted from this filtered list.
168
+
131
169
  `topics` are PressReader-supplied named entities, with stable native `topicId`
132
170
  and counts over the accessible cached articles. They are distinct from the
133
171
  publication's catalogue `themeId`; they are not an inferred editorial grouping
@@ -140,7 +178,9 @@ import {
140
178
  readPressFacets, updateReadingPreferences, acknowledgePressReview,
141
179
  } from '@learnorama/mozaik-sdk/api/biblio-press';
142
180
 
143
- const topics = await listPressTopics({ limit: 20 }, { client });
181
+ // minArticles defaults to 1. The threshold counts distinct listed articles
182
+ // accessible to this profile within the requested issue-date window.
183
+ const topics = await listPressTopics({ limit: 20, minArticles: 2 }, { client });
144
184
  // On the user's explicit Follow action:
145
185
  if (topics.data[0]) await followPressTopic(topics.data[0].topicId, { client });
146
186
  const filtered = await listPressArticles({ topicId: 21, lang: 'en', page: 1 }, { client });
package/README.md CHANGED
@@ -4,6 +4,8 @@ Mozaik's typed API client, generated with Orval from the deployed OpenAPI schema
4
4
  Native fetch functions and optional TanStack Query v5 hooks are published as ESM
5
5
  with TypeScript declarations. Import only the API areas your application uses.
6
6
 
7
+ For native download acquisition, DRM expiry and the browser reporting helper (`@learnorama/mozaik-sdk/offline`), see [Offline downloads](OFFLINE.md).
8
+
7
9
  ## Install
8
10
 
9
11
  ```sh
@@ -282,8 +284,9 @@ The client refreshes before expiry and on demand, coordinating token rotation.
282
284
  Transient refresh failures may use an access token only until its expiry; rejected
283
285
  or expired sessions clear local authentication. Remote logout errors reject the
284
286
  promise while leaving the application signed out. Tokens are attached through
285
- `auth.client`; its identity changes on login/logout and stays stable across
286
- refreshes. Old client instances reject requests after a session change.
287
+ `auth.client`. Login, logout and a server-authorized switch to a child or
288
+ parent account replace the client. A refresh for the same account keeps it.
289
+ Old client instances reject requests after a session change.
287
290
 
288
291
  ## Native mobile login
289
292
 
@@ -388,8 +391,8 @@ export function SsoCallback({ navigate }: { navigate: (path: string) => void })
388
391
  Concurrent callback completions share one exchange. The callback parameters are
389
392
  removed from browser history; repeated default completion calls on that cleaned
390
393
  URL are safe during React remounts. Replaying an explicit consumed callback is
391
- rejected. Login/logout replace the query cache and remount the session subtree,
392
- preventing previous-account results from appearing. Refresh retains the cache.
394
+ rejected. Login, logout and a change of active profile replace the query cache
395
+ and remount the session subtree. A same-account refresh retains the cache.
393
396
  For chat, use the same auth `client` and `enabled: isAuthenticated` with
394
397
  `useTutoringChat`; session changes close the previous connection automatically.
395
398
 
@@ -1,5 +1,5 @@
1
1
 
2
- import { $y as AccountUpdateWrite, Ct as ServiceAccessRead, Ji as OnboardingRead, Ku as FrontendCapabilitiesRead, Ra as ListOwnLoginsParams, eb as AccountSecurityRead, fg as CustomerActivationRedeemWrite, ha as LoginListRead, nb as AccountDetailRead, pg as CustomerActivationRedeemRead, yt as ServiceListRead } from "../chunks/index.js";
2
+ import { B_ as CustomerActivationRedeemWrite, Et as ServiceAccessRead, Gx as AccountSecurityRead, Na as LoginListRead, St as ServiceListRead, V_ as CustomerActivationRedeemRead, Wx as AccountUpdateWrite, hd as FrontendCapabilitiesRead, ia as OnboardingRead, qx as AccountDetailRead, ro as ListOwnLoginsParams } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/account/account.d.ts
5
5
  export declare const getDeleteAccountUrl: () => string;
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","names":[],"sources":["../../src/api/account/account.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.18.0\n */\nimport type {\n AccountDetailRead,\n AccountSecurityRead,\n AccountUpdateWrite,\n CustomerActivationRedeemRead,\n CustomerActivationRedeemWrite,\n FrontendCapabilitiesRead,\n ListOwnLoginsParams,\n LoginListRead,\n OnboardingRead,\n ServiceAccessRead,\n ServiceListRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getDeleteAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * Erase this authenticated identity while retaining its historical rows.\n *\n * Other independently authenticated household members are never erased by\n * this operation. The holder must first remove active/pending memberships;\n * an adult who is a child's final guardian must assign another guardian first.\n * All household writes take the same beneficiary lock, including invitations.\n * @summary Delete Account\n */\nexport const deleteAccount = async ( options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getDeleteAccountUrl(),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getReadAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * The authenticated account (E15).\n *\n * No query, no join: ``CurrentUserDep`` has already resolved the row behind the\n * token. The endpoint the legacy should have had here has been returning ``500``\n * on every request for as long as anyone has looked (defect D1).\n *\n * ``isNameEditable`` exists so a client need not discover the answer by being\n * refused. A member signing in through their establishment cannot change their\n * own name here — the realm rewrites it at every login — and until now the\n * only way to find that out was to type one and receive a ``403``. The field\n * says it before the form is drawn.\n * @summary Read Account\n */\nexport const readAccount = async ( options?: Parameters<typeof request>[1]): Promise<AccountDetailRead> => {\n\n return request<AccountDetailRead>(getReadAccountUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getUpdateAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * Partially update the account (E16).\n *\n * ``exclude_unset`` is what separates PATCH from PUT here: a field the client\n * omitted is left alone, which is not the same as a field it sent as null. The\n * response is built from the persisted row rather than the submitted body.\n * @summary Update Account\n */\nexport const updateAccount = async (accountUpdateWrite: AccountUpdateWrite, options?: Parameters<typeof request>[1]): Promise<AccountDetailRead> => {\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<AccountDetailRead>(getUpdateAccountUrl(),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(accountUpdateWrite)\n }\n);}\n\n\nexport const getRedeemCustomerActivationUrl = () => {\n\n\n\n\n return `/me/activation-codes/redeem`\n}\n\n/**\n * Verified own sign-in plus a valid code. One registration per person; revoked memberships cannot self-reactivate.\n * @summary Redeem Customer Activation\n */\nexport const redeemCustomerActivation = async (customerActivationRedeemWrite: CustomerActivationRedeemWrite, options?: Parameters<typeof request>[1]): Promise<CustomerActivationRedeemRead> => {\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<CustomerActivationRedeemRead>(getRedeemCustomerActivationUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(customerActivationRedeemWrite)\n }\n);}\n\n\nexport const getReadCapabilitiesUrl = () => {\n\n\n\n\n return `/me/capabilities`\n}\n\n/**\n * Current profile's universes, provider access and navigation paths.\n *\n * Does not allocate a licence or contact a provider. ``readingAllowed`` is a\n * local permission snapshot; configuration and upstream health are separate.\n * The reader always authorizes again when opening a title.\n * @summary Read Capabilities\n */\nexport const readCapabilities = async ( options?: Parameters<typeof request>[1]): Promise<FrontendCapabilitiesRead> => {\n\n return request<FrontendCapabilitiesRead>(getReadCapabilitiesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListOwnLoginsUrl = (params?: ListOwnLoginsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/me/logins?${stringifiedParams}` : `/me/logins`\n}\n\n/**\n * Last native sign-ins of this account. Refreshes, raw IPs and another profile's history are excluded.\n * @summary List Own Logins\n */\nexport const listOwnLogins = async (params?: ListOwnLoginsParams, options?: Parameters<typeof request>[1]): Promise<LoginListRead> => {\n\n return request<LoginListRead>(getListOwnLoginsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadOnboardingUrl = () => {\n\n\n\n\n return `/me/onboarding`\n}\n\n/**\n * State for optional profile setup, with existing write-resource paths.\n *\n * The signed-in adult updates their own fields using PATCH /me. A guardian\n * manages a child through /me/profiles. Category selections use\n * PUT /biblio/me/preferences/categories in the effective profile context.\n * Press-title choices use pressTitlesUrl and pressFavoritesUrl; they are the\n * profile's press_title favourites, not additional catalogue categories.\n * No terms acceptance or mandatory onboarding completion is invented here.\n * @summary Read Onboarding\n */\nexport const readOnboarding = async ( options?: Parameters<typeof request>[1]): Promise<OnboardingRead> => {\n\n return request<OnboardingRead>(getReadOnboardingUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getResetOwnPasswordUrl = () => {\n\n\n\n\n return `/me/password-reset`\n}\n\n/**\n * Ask Keycloak to email a single-use, 15-minute password action for the caller only.\n * @summary Reset Own Password\n */\nexport const resetOwnPassword = async ( options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getResetOwnPasswordUrl(),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getReadAccountSecurityUrl = () => {\n\n\n\n\n return `/me/security`\n}\n\n/**\n * Keycloak security facts on demand. Unknown facts are null; configured MFA does not mean enforced MFA.\n * @summary Read Account Security\n */\nexport const readAccountSecurity = async ( options?: Parameters<typeof request>[1]): Promise<AccountSecurityRead> => {\n\n return request<AccountSecurityRead>(getReadAccountSecurityUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListServicesUrl = () => {\n\n\n\n\n return `/me/services`\n}\n\n/**\n * Third-party services this account's establishment offers (E27).\n *\n * Under ``/me`` rather than ``/biblio/me`` because it is not a catalogue: these\n * are the establishment's own service tiles, and they belong to the tenant\n * whichever catalogue that tenant reads from. It is also the one place the\n * biblio spec describes something the *CVS* schema models, which is why it sat\n * in the wrong module until the prefixes made the mismatch visible.\n *\n * Date-windowed. A service outside its window is absent rather than disabled:\n * the client should not have to know the difference, and a visible dead link is\n * worse than no link.\n * @summary List Services\n */\nexport const listServices = async ( options?: Parameters<typeof request>[1]): Promise<ServiceListRead> => {\n\n return request<ServiceListRead>(getListServicesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenServiceUrl = (serviceId: number,) => {\n\n\n\n\n return `/me/services/${serviceId}/access`\n}\n\n/**\n * Return service contact/access details after local eligibility checks. This is not evidence of an actual phone consultation and does not manufacture a billable consumption event.\n * @summary Open Service\n */\nexport const openService = async (serviceId: number, options?: Parameters<typeof request>[1]): Promise<ServiceAccessRead> => {\n\n return request<ServiceAccessRead>(getOpenServiceUrl(serviceId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAuBA,MAAa,4BAA4B;CAKvC,OAAO;AACT;;;;;;;;;;AAWA,MAAa,gBAAgB,OAAQ,YAA2D;CAE9F,OAAO,QAAc,oBAAoB,GACzC;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,0BAA0B;CAKrC,OAAO;AACT;;;;;;;;;;;;;;;AAgBA,MAAa,cAAc,OAAQ,YAAwE;CAEzG,OAAO,QAA2B,kBAAkB,GACpD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,4BAA4B;CAKvC,OAAO;AACT;;;;;;;;;AAUA,MAAa,gBAAgB,OAAO,oBAAwC,YAAwE;CAEhJ,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAA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AC7D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"account.js","names":[],"sources":["../../src/api/account/account.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.20.0\n */\nimport type {\n AccountDetailRead,\n AccountSecurityRead,\n AccountUpdateWrite,\n CustomerActivationRedeemRead,\n CustomerActivationRedeemWrite,\n FrontendCapabilitiesRead,\n ListOwnLoginsParams,\n LoginListRead,\n OnboardingRead,\n ServiceAccessRead,\n ServiceListRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getDeleteAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * Erase this authenticated identity while retaining its historical rows.\n *\n * Other independently authenticated household members are never erased by\n * this operation. The holder must first remove active/pending memberships;\n * an adult who is a child's final guardian must assign another guardian first.\n * All household writes take the same beneficiary lock, including invitations.\n * @summary Delete Account\n */\nexport const deleteAccount = async ( options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getDeleteAccountUrl(),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getReadAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * The authenticated account (E15).\n *\n * No query, no join: ``CurrentUserDep`` has already resolved the row behind the\n * token. The endpoint the legacy should have had here has been returning ``500``\n * on every request for as long as anyone has looked (defect D1).\n *\n * ``isNameEditable`` exists so a client need not discover the answer by being\n * refused. A member signing in through their establishment cannot change their\n * own name here — the realm rewrites it at every login — and until now the\n * only way to find that out was to type one and receive a ``403``. The field\n * says it before the form is drawn.\n * @summary Read Account\n */\nexport const readAccount = async ( options?: Parameters<typeof request>[1]): Promise<AccountDetailRead> => {\n\n return request<AccountDetailRead>(getReadAccountUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getUpdateAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * Partially update the account (E16).\n *\n * ``exclude_unset`` is what separates PATCH from PUT here: a field the client\n * omitted is left alone, which is not the same as a field it sent as null. The\n * response is built from the persisted row rather than the submitted body.\n * @summary Update Account\n */\nexport const updateAccount = async (accountUpdateWrite: AccountUpdateWrite, options?: Parameters<typeof request>[1]): Promise<AccountDetailRead> => {\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<AccountDetailRead>(getUpdateAccountUrl(),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(accountUpdateWrite)\n }\n);}\n\n\nexport const getRedeemCustomerActivationUrl = () => {\n\n\n\n\n return `/me/activation-codes/redeem`\n}\n\n/**\n * Verified own sign-in plus a valid code. One registration per person; revoked memberships cannot self-reactivate.\n * @summary Redeem Customer Activation\n */\nexport const redeemCustomerActivation = async (customerActivationRedeemWrite: CustomerActivationRedeemWrite, options?: Parameters<typeof request>[1]): Promise<CustomerActivationRedeemRead> => {\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<CustomerActivationRedeemRead>(getRedeemCustomerActivationUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(customerActivationRedeemWrite)\n }\n);}\n\n\nexport const getReadCapabilitiesUrl = () => {\n\n\n\n\n return `/me/capabilities`\n}\n\n/**\n * Current profile's universes, provider access and navigation paths.\n *\n * Does not allocate a licence or contact a provider. ``readingAllowed`` is a\n * local permission snapshot; configuration and upstream health are separate.\n * The reader always authorizes again when opening a title.\n * @summary Read Capabilities\n */\nexport const readCapabilities = async ( options?: Parameters<typeof request>[1]): Promise<FrontendCapabilitiesRead> => {\n\n return request<FrontendCapabilitiesRead>(getReadCapabilitiesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListOwnLoginsUrl = (params?: ListOwnLoginsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/me/logins?${stringifiedParams}` : `/me/logins`\n}\n\n/**\n * Last native sign-ins of this account. Refreshes, raw IPs and another profile's history are excluded.\n * @summary List Own Logins\n */\nexport const listOwnLogins = async (params?: ListOwnLoginsParams, options?: Parameters<typeof request>[1]): Promise<LoginListRead> => {\n\n return request<LoginListRead>(getListOwnLoginsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getReadOnboardingUrl = () => {\n\n\n\n\n return `/me/onboarding`\n}\n\n/**\n * State for optional profile setup, with existing write-resource paths.\n *\n * The signed-in adult updates their own fields using PATCH /me. A guardian\n * manages a child through /me/profiles. Category selections use\n * PUT /biblio/me/preferences/categories in the effective profile context.\n * Press-title choices use pressTitlesUrl and pressFavoritesUrl; they are the\n * profile's press_title favourites, not additional catalogue categories.\n * No terms acceptance or mandatory onboarding completion is invented here.\n * @summary Read Onboarding\n */\nexport const readOnboarding = async ( options?: Parameters<typeof request>[1]): Promise<OnboardingRead> => {\n\n return request<OnboardingRead>(getReadOnboardingUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getResetOwnPasswordUrl = () => {\n\n\n\n\n return `/me/password-reset`\n}\n\n/**\n * Ask Keycloak to email a single-use, 15-minute password action for the caller only.\n * @summary Reset Own Password\n */\nexport const resetOwnPassword = async ( options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getResetOwnPasswordUrl(),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getReadAccountSecurityUrl = () => {\n\n\n\n\n return `/me/security`\n}\n\n/**\n * Keycloak security facts on demand. Unknown facts are null; configured MFA does not mean enforced MFA.\n * @summary Read Account Security\n */\nexport const readAccountSecurity = async ( options?: Parameters<typeof request>[1]): Promise<AccountSecurityRead> => {\n\n return request<AccountSecurityRead>(getReadAccountSecurityUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListServicesUrl = () => {\n\n\n\n\n return `/me/services`\n}\n\n/**\n * Third-party services this account's establishment offers (E27).\n *\n * Under ``/me`` rather than ``/biblio/me`` because it is not a catalogue: these\n * are the establishment's own service tiles, and they belong to the tenant\n * whichever catalogue that tenant reads from. It is also the one place the\n * biblio spec describes something the *CVS* schema models, which is why it sat\n * in the wrong module until the prefixes made the mismatch visible.\n *\n * Date-windowed. A service outside its window is absent rather than disabled:\n * the client should not have to know the difference, and a visible dead link is\n * worse than no link.\n * @summary List Services\n */\nexport const listServices = async ( options?: Parameters<typeof request>[1]): Promise<ServiceListRead> => {\n\n return request<ServiceListRead>(getListServicesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getOpenServiceUrl = (serviceId: number,) => {\n\n\n\n\n return `/me/services/${serviceId}/access`\n}\n\n/**\n * Return service contact/access details after local eligibility checks. This is not evidence of an actual phone consultation and does not manufacture a billable consumption event.\n * @summary Open Service\n */\nexport const openService = async (serviceId: number, options?: Parameters<typeof request>[1]): Promise<ServiceAccessRead> => {\n\n return request<ServiceAccessRead>(getOpenServiceUrl(serviceId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAuBA,MAAa,4BAA4B;CAKvC,OAAO;AACT;;;;;;;;;;AAWA,MAAa,gBAAgB,OAAQ,YAA2D;CAE9F,OAAO,QAAc,oBAAoB,GACzC;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,0BAA0B;CAKrC,OAAO;AACT;;;;;;;;;;;;;;;AAgBA,MAAa,cAAc,OAAQ,YAAwE;CAEzG,OAAO,QAA2B,kBAAkB,GACpD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,4BAA4B;CAKvC,OAAO;AACT;;;;;;;;;AAUA,MAAa,gBAAgB,OAAO,oBAAwC,YAAwE;CAEhJ,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,QAA2B,oBAAoB,GACpD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,kBAAkB;CACzC,CACF;AAAE;AAGF,MAAa,uCAAuC;CAKlD,OAAO;AACT;;;;;AAM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;;;;;;;;;;AAaA,MAAa,iBAAiB,OAAQ,YAAqE;CAEzG,OAAO,QAAwB,qBAAqB,GACpD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,+BAA+B;CAK1C,OAAO;AACT;;;;;AAMA,MAAa,mBAAmB,OAAQ,YAA2D;CAEjG,OAAO,QAAc,uBAAuB,GAC5C;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,kCAAkC;CAK7C,OAAO;AACT;;;;;AAMA,MAAa,sBAAsB,OAAQ,YAA0E;CAEnH,OAAO,QAA6B,0BAA0B,GAC9D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;;;;;;;;;;;;AAgBA,MAAa,eAAe,OAAQ,YAAsE;CAExG,OAAO,QAAyB,mBAAmB,GACnD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,qBAAqB,cAAuB;CAKvD,OAAO,gBAAgB,UAAU;AACnC;;;;;AAMA,MAAa,cAAc,OAAO,WAAmB,YAAwE;CAE3H,OAAO,QAA2B,kBAAkB,SAAS,GAC7D;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { Ar as PressRegionsWrite, J as ThemeWrite, Mr as PressRefreshWrite, Na as ListPressArticleRefreshesParams, Nr as PressRefreshRead, Ru as PressRegionRead, Sa as ListThemesParams, Ur as PressDiscoveryJobRead, X as ThemeListRead, Y as ThemeOrderWrite, Yr as PressArticleMetadataWrite, Z as ThemeRead, ar as PressVoucherOfferWrite, gr as PressVoucherActivationReportWrite, hr as PressVoucherCodesWrite, ir as PressVoucherPoolRead, mr as PressVoucherDisableWrite, pr as PressVoucherImportRead, rr as PressVoucherPoolWrite, sr as PressVoucherOfferRead, tr as PressVoucherUsageRead } from "../chunks/index.js";
2
+ import { $ as ThemeRead, Ba as ListThemesParams, Fr as PressRegionsWrite, Jr as PressDiscoveryJobRead, Lr as PressRefreshWrite, Q as ThemeListRead, Rr as PressRefreshRead, X as ThemeWrite, Z as ThemeOrderWrite, Za as ListPressArticleRefreshesParams, br as PressVoucherCodesWrite, cr as PressVoucherPoolWrite, ei as PressArticleMetadataWrite, fr as PressVoucherOfferRead, lr as PressVoucherPoolRead, or as PressVoucherUsageRead, sd as PressRegionRead, ur as PressVoucherOfferWrite, vr as PressVoucherImportRead, xr as PressVoucherActivationReportWrite, yr as PressVoucherDisableWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/admin-catalogue/admin-catalogue.d.ts
5
5
  export declare const getListPressArticleRefreshesUrl: (params?: ListPressArticleRefreshesParams) => string;
@@ -16,7 +16,7 @@ export declare const getRequestPressArticleRefreshUrl: () => string;
16
16
  export declare const requestPressArticleRefresh: (pressRefreshWrite: PressRefreshWrite, options?: Parameters<typeof request>[1]) => Promise<PressRefreshRead>;
17
17
  export declare const getUpdatePressArticleMetadataUrl: (articleId: number) => string;
18
18
  /**
19
- * Record verified article metadata. Summary length is never a full article word count.
19
+ * Edit verified metadata or the global listing decision for one article.
20
20
  * @summary Update Press Article Metadata
21
21
  */
22
22
  export declare const updatePressArticleMetadata: (articleId: number, pressArticleMetadataWrite: PressArticleMetadataWrite, options?: Parameters<typeof request>[1]) => Promise<void>;
@@ -49,7 +49,7 @@ const getUpdatePressArticleMetadataUrl = (articleId) => {
49
49
  return `/admin/press/articles/${articleId}/metadata`;
50
50
  };
51
51
  /**
52
- * Record verified article metadata. Summary length is never a full article word count.
52
+ * Edit verified metadata or the global listing decision for one article.
53
53
  * @summary Update Press Article Metadata
54
54
  */
55
55
  const updatePressArticleMetadata = async (articleId, pressArticleMetadataWrite, options) => {
@@ -1 +1 @@
1
- {"version":3,"file":"admin-catalogue.js","names":[],"sources":["../../src/api/admin-catalogue/admin-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.18.0\n */\nimport type {\n ListPressArticleRefreshesParams,\n ListThemesParams,\n PressArticleMetadataWrite,\n PressDiscoveryJobRead,\n PressRefreshRead,\n PressRefreshWrite,\n PressRegionRead,\n PressRegionsWrite,\n PressVoucherActivationReportWrite,\n PressVoucherCodesWrite,\n PressVoucherDisableWrite,\n PressVoucherImportRead,\n PressVoucherOfferRead,\n PressVoucherOfferWrite,\n PressVoucherPoolRead,\n PressVoucherPoolWrite,\n PressVoucherUsageRead,\n ThemeListRead,\n ThemeOrderWrite,\n ThemeRead,\n ThemeWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListPressArticleRefreshesUrl = (params?: ListPressArticleRefreshesParams,) => {\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 ? `/admin/press/article-refreshes?${stringifiedParams}` : `/admin/press/article-refreshes`\n}\n\n/**\n * Recent refresh progress and safe error codes; no provider credentials or response dumps.\n * @summary List Press Article Refreshes\n */\nexport const listPressArticleRefreshes = async (params?: ListPressArticleRefreshesParams, options?: Parameters<typeof request>[1]): Promise<PressDiscoveryJobRead[]> => {\n\n return request<PressDiscoveryJobRead[]>(getListPressArticleRefreshesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getRequestPressArticleRefreshUrl = () => {\n\n\n\n\n return `/admin/press/article-refreshes`\n}\n\n/**\n * Queue a bounded, idempotent metadata refresh; workers fetch one page per task.\n * @summary Request Press Article Refresh\n */\nexport const requestPressArticleRefresh = async (pressRefreshWrite: PressRefreshWrite, options?: Parameters<typeof request>[1]): Promise<PressRefreshRead> => {\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<PressRefreshRead>(getRequestPressArticleRefreshUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressRefreshWrite)\n }\n);}\n\n\nexport const getUpdatePressArticleMetadataUrl = (articleId: number,) => {\n\n\n\n\n return `/admin/press/articles/${articleId}/metadata`\n}\n\n/**\n * Record verified article metadata. Summary length is never a full article word count.\n * @summary Update Press Article Metadata\n */\nexport const updatePressArticleMetadata = async (articleId: number,\n pressArticleMetadataWrite: PressArticleMetadataWrite, 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>(getUpdatePressArticleMetadataUrl(articleId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressArticleMetadataWrite)\n }\n);}\n\n\nexport const getConfigurePressRegionsUrl = (publicationId: string,) => {\n\n\n\n\n return `/admin/press/publications/${publicationId}/regions`\n}\n\n/**\n * Replace verified editorial geographic mappings; never infer them from a country.\n * @summary Configure Press Regions\n */\nexport const configurePressRegions = async (publicationId: string,\n pressRegionsWrite: PressRegionsWrite, options?: Parameters<typeof request>[1]): Promise<PressRegionRead[]> => {\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<PressRegionRead[]>(getConfigurePressRegionsUrl(publicationId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressRegionsWrite)\n }\n);}\n\n\nexport const getListPressVoucherOffersUrl = () => {\n\n\n\n\n return `/admin/press/voucher-offers`\n}\n\n/**\n * Global code-offer configuration; no code values are returned.\n * @summary List Press Voucher Offers\n */\nexport const listPressVoucherOffers = async ( options?: Parameters<typeof request>[1]): Promise<PressVoucherOfferRead[]> => {\n\n return request<PressVoucherOfferRead[]>(getListPressVoucherOffersUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getConfigurePressVoucherOfferUrl = () => {\n\n\n\n\n return `/admin/press/voucher-offers`\n}\n\n/**\n * Configure a known newspaper offer and explicit native publication bindings.\n * @summary Configure Press Voucher Offer\n */\nexport const configurePressVoucherOffer = async (pressVoucherOfferWrite: PressVoucherOfferWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherOfferRead> => {\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<PressVoucherOfferRead>(getConfigurePressVoucherOfferUrl(),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherOfferWrite)\n }\n);}\n\n\nexport const getListPressVoucherPoolsUrl = (offerId: number,) => {\n\n\n\n\n return `/admin/press/voucher-offers/${offerId}/pools`\n}\n\n/**\n * Stock, allocations and confirmed activations. No private codes are listed.\n * @summary List Press Voucher Pools\n */\nexport const listPressVoucherPools = async (offerId: number, options?: Parameters<typeof request>[1]): Promise<PressVoucherPoolRead[]> => {\n\n return request<PressVoucherPoolRead[]>(getListPressVoucherPoolsUrl(offerId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getCreatePressVoucherPoolUrl = (offerId: number,) => {\n\n\n\n\n return `/admin/press/voucher-offers/${offerId}/pools`\n}\n\n/**\n * Create a bank with explicit availability and calendar-based benefit/renewal rules.\n * @summary Create Press Voucher Pool\n */\nexport const createPressVoucherPool = async (offerId: number,\n pressVoucherPoolWrite: PressVoucherPoolWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherPoolRead> => {\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<PressVoucherPoolRead>(getCreatePressVoucherPoolUrl(offerId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherPoolWrite)\n }\n);}\n\n\nexport const getReadPressVoucherUsageUrl = (offerId: number,) => {\n\n\n\n\n return `/admin/press/voucher-offers/${offerId}/usage`\n}\n\n/**\n * Allocation and confirmed-activation counts, with legacy reported evidence separate.\n *\n * No per-reader sessions or durations are fabricated from legacy averages.\n * @summary Read Press Voucher Usage\n */\nexport const readPressVoucherUsage = async (offerId: number, options?: Parameters<typeof request>[1]): Promise<PressVoucherUsageRead> => {\n\n return request<PressVoucherUsageRead>(getReadPressVoucherUsageUrl(offerId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getUpdatePressVoucherPoolUrl = (poolId: number,) => {\n\n\n\n\n return `/admin/press/voucher-pools/${poolId}`\n}\n\n/**\n * Enable/close stock; an allocated bank's benefit policy cannot change retroactively.\n * @summary Update Press Voucher Pool\n */\nexport const updatePressVoucherPool = async (poolId: number,\n pressVoucherPoolWrite: PressVoucherPoolWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherPoolRead> => {\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<PressVoucherPoolRead>(getUpdatePressVoucherPoolUrl(poolId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherPoolWrite)\n }\n);}\n\n\nexport const getImportPressVoucherActivationsUrl = (poolId: number,) => {\n\n\n\n\n return `/admin/press/voucher-pools/${poolId}/activations`\n}\n\n/**\n * Apply publisher-confirmed dates; never infer activation from allocation.\n *\n * Matching repeats are harmless. Unknown codes, conflicting confirmations and\n * future activation dates are refused atomically. An already-used unallocated\n * code is quarantined so it cannot be handed to another household.\n * @summary Import Press Voucher Activations\n */\nexport const importPressVoucherActivations = async (poolId: number,\n pressVoucherActivationReportWrite: PressVoucherActivationReportWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherImportRead> => {\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<PressVoucherImportRead>(getImportPressVoucherActivationsUrl(poolId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherActivationReportWrite)\n }\n);}\n\n\nexport const getImportPressVoucherCodesUrl = (poolId: number,) => {\n\n\n\n\n return `/admin/press/voucher-pools/${poolId}/codes`\n}\n\n/**\n * Import at most 500 private codes atomically. Same-bank repeats are idempotent.\n *\n * A code already in another bank is refused; existing owners are never changed.\n * Values are encrypted at rest and omitted from responses and audit details.\n * @summary Import Press Voucher Codes\n */\nexport const importPressVoucherCodes = async (poolId: number,\n pressVoucherCodesWrite: PressVoucherCodesWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherImportRead> => {\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<PressVoucherImportRead>(getImportPressVoucherCodesUrl(poolId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherCodesWrite)\n }\n);}\n\n\nexport const getDisablePressVoucherCodesUrl = (poolId: number,) => {\n\n\n\n\n return `/admin/press/voucher-pools/${poolId}/codes/disable`\n}\n\n/**\n * Disable local issuance/retrieval without clearing ownership or cancelling publisher accounts.\n * @summary Disable Press Voucher Codes\n */\nexport const disablePressVoucherCodes = async (poolId: number,\n pressVoucherDisableWrite: PressVoucherDisableWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherImportRead> => {\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<PressVoucherImportRead>(getDisablePressVoucherCodesUrl(poolId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherDisableWrite)\n }\n);}\n\n\nexport const getListThemesUrl = (params?: ListThemesParams,) => {\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 ? `/admin/themes?${stringifiedParams}` : `/admin/themes`\n}\n\n/**\n * Every theme, or one pillar's, in display order.\n *\n * Not paginated. There are 27 of them, and a client that has to page through\n * a list it is about to reorder cannot reorder it.\n * @summary List Themes\n */\nexport const listThemes = async (params?: ListThemesParams, options?: Parameters<typeof request>[1]): Promise<ThemeListRead> => {\n\n return request<ThemeListRead>(getListThemesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getCreateThemeUrl = () => {\n\n\n\n\n return `/admin/themes`\n}\n\n/**\n * Add a theme.\n *\n * ``409`` on a duplicate ``(pillar, title)``: that pair is unique in the\n * schema, and two themes with the same name in the same pillar are\n * indistinguishable to everyone downstream.\n *\n * With no ``sortOrder`` it goes last, which is what the legacy's form does by\n * defaulting the field to the current maximum plus one.\n * @summary Create Theme\n */\nexport const createTheme = async (themeWrite: ThemeWrite, options?: Parameters<typeof request>[1]): Promise<ThemeRead> => {\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<ThemeRead>(getCreateThemeUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(themeWrite)\n }\n);}\n\n\nexport const getReorderThemesUrl = () => {\n\n\n\n\n return `/admin/themes/order`\n}\n\n/**\n * Set the display order for a set of themes, in one transaction.\n *\n * The legacy renumbers one theme per request, so dragging an item in a list of\n * thirty was thirty requests — and closing the tab halfway left the order\n * half-applied, with two themes claiming the same position and the listing\n * silently choosing between them.\n *\n * Ids not named keep their relative order after the ones that are, so a client\n * may send only what moved. An unknown id is ``404`` and nothing is written:\n * a partially applied reorder is the failure this endpoint exists to prevent.\n * @summary Reorder Themes\n */\nexport const reorderThemes = async (themeOrderWrite: ThemeOrderWrite, 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>(getReorderThemesUrl(),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(themeOrderWrite)\n }\n);}\n\n\nexport const getDeleteThemeUrl = (themeId: number,) => {\n\n\n\n\n return `/admin/themes/${themeId}`\n}\n\n/**\n * Remove a theme.\n *\n * ``409`` when works still carry it. The legacy deletes and leaves the\n * references dangling, which is how a catalogue ends up with items filed under\n * a theme that no longer exists and no screen that can find them.\n *\n * Idempotent otherwise: deleting something already gone is ``204``, because\n * the caller wanted it gone and it is gone.\n * @summary Delete Theme\n */\nexport const deleteTheme = async (themeId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getDeleteThemeUrl(themeId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getReadThemeUrl = (themeId: number,) => {\n\n\n\n\n return `/admin/themes/${themeId}`\n}\n\n/**\n * One theme.\n * @summary Read Theme\n */\nexport const readTheme = async (themeId: number, options?: Parameters<typeof request>[1]): Promise<ThemeRead> => {\n\n return request<ThemeRead>(getReadThemeUrl(themeId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getAmendThemeUrl = (themeId: number,) => {\n\n\n\n\n return `/admin/themes/${themeId}`\n}\n\n/**\n * Amend a theme. Same uniqueness rule as creating one.\n * @summary Amend Theme\n */\nexport const amendTheme = async (themeId: number,\n themeWrite: ThemeWrite, options?: Parameters<typeof request>[1]): Promise<ThemeRead> => {\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<ThemeRead>(getAmendThemeUrl(themeId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(themeWrite)\n }\n);}\n\n\n"],"mappings":";;;AAiCA,MAAa,mCAAmC,WAA8C;CAC5F,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,kCAAkC,sBAAsB;AAChG;;;;;AAMA,MAAa,4BAA4B,OAAO,QAA0C,YAA8E;CAEtK,OAAO,QAAiC,gCAAgC,MAAM,GAC9E;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,yCAAyC;CAKpD,OAAO;AACT;;;;;AAMA,MAAa,6BAA6B,OAAO,mBAAsC,YAAuE;CAE1J,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YA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,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,QAAmB,iBAAiB,OAAO,GAChD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,UAAU;CACjC,CACF;AAAE"}
1
+ {"version":3,"file":"admin-catalogue.js","names":[],"sources":["../../src/api/admin-catalogue/admin-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.20.0\n */\nimport type {\n ListPressArticleRefreshesParams,\n ListThemesParams,\n PressArticleMetadataWrite,\n PressDiscoveryJobRead,\n PressRefreshRead,\n PressRefreshWrite,\n PressRegionRead,\n PressRegionsWrite,\n PressVoucherActivationReportWrite,\n PressVoucherCodesWrite,\n PressVoucherDisableWrite,\n PressVoucherImportRead,\n PressVoucherOfferRead,\n PressVoucherOfferWrite,\n PressVoucherPoolRead,\n PressVoucherPoolWrite,\n PressVoucherUsageRead,\n ThemeListRead,\n ThemeOrderWrite,\n ThemeRead,\n ThemeWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListPressArticleRefreshesUrl = (params?: ListPressArticleRefreshesParams,) => {\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 ? `/admin/press/article-refreshes?${stringifiedParams}` : `/admin/press/article-refreshes`\n}\n\n/**\n * Recent refresh progress and safe error codes; no provider credentials or response dumps.\n * @summary List Press Article Refreshes\n */\nexport const listPressArticleRefreshes = async (params?: ListPressArticleRefreshesParams, options?: Parameters<typeof request>[1]): Promise<PressDiscoveryJobRead[]> => {\n\n return request<PressDiscoveryJobRead[]>(getListPressArticleRefreshesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getRequestPressArticleRefreshUrl = () => {\n\n\n\n\n return `/admin/press/article-refreshes`\n}\n\n/**\n * Queue a bounded, idempotent metadata refresh; workers fetch one page per task.\n * @summary Request Press Article Refresh\n */\nexport const requestPressArticleRefresh = async (pressRefreshWrite: PressRefreshWrite, options?: Parameters<typeof request>[1]): Promise<PressRefreshRead> => {\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<PressRefreshRead>(getRequestPressArticleRefreshUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressRefreshWrite)\n }\n);}\n\n\nexport const getUpdatePressArticleMetadataUrl = (articleId: number,) => {\n\n\n\n\n return `/admin/press/articles/${articleId}/metadata`\n}\n\n/**\n * Edit verified metadata or the global listing decision for one article.\n * @summary Update Press Article Metadata\n */\nexport const updatePressArticleMetadata = async (articleId: number,\n pressArticleMetadataWrite: PressArticleMetadataWrite, 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>(getUpdatePressArticleMetadataUrl(articleId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressArticleMetadataWrite)\n }\n);}\n\n\nexport const getConfigurePressRegionsUrl = (publicationId: string,) => {\n\n\n\n\n return `/admin/press/publications/${publicationId}/regions`\n}\n\n/**\n * Replace verified editorial geographic mappings; never infer them from a country.\n * @summary Configure Press Regions\n */\nexport const configurePressRegions = async (publicationId: string,\n pressRegionsWrite: PressRegionsWrite, options?: Parameters<typeof request>[1]): Promise<PressRegionRead[]> => {\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<PressRegionRead[]>(getConfigurePressRegionsUrl(publicationId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressRegionsWrite)\n }\n);}\n\n\nexport const getListPressVoucherOffersUrl = () => {\n\n\n\n\n return `/admin/press/voucher-offers`\n}\n\n/**\n * Global code-offer configuration; no code values are returned.\n * @summary List Press Voucher Offers\n */\nexport const listPressVoucherOffers = async ( options?: Parameters<typeof request>[1]): Promise<PressVoucherOfferRead[]> => {\n\n return request<PressVoucherOfferRead[]>(getListPressVoucherOffersUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getConfigurePressVoucherOfferUrl = () => {\n\n\n\n\n return `/admin/press/voucher-offers`\n}\n\n/**\n * Configure a known newspaper offer and explicit native publication bindings.\n * @summary Configure Press Voucher Offer\n */\nexport const configurePressVoucherOffer = async (pressVoucherOfferWrite: PressVoucherOfferWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherOfferRead> => {\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<PressVoucherOfferRead>(getConfigurePressVoucherOfferUrl(),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherOfferWrite)\n }\n);}\n\n\nexport const getListPressVoucherPoolsUrl = (offerId: number,) => {\n\n\n\n\n return `/admin/press/voucher-offers/${offerId}/pools`\n}\n\n/**\n * Stock, allocations and confirmed activations. No private codes are listed.\n * @summary List Press Voucher Pools\n */\nexport const listPressVoucherPools = async (offerId: number, options?: Parameters<typeof request>[1]): Promise<PressVoucherPoolRead[]> => {\n\n return request<PressVoucherPoolRead[]>(getListPressVoucherPoolsUrl(offerId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getCreatePressVoucherPoolUrl = (offerId: number,) => {\n\n\n\n\n return `/admin/press/voucher-offers/${offerId}/pools`\n}\n\n/**\n * Create a bank with explicit availability and calendar-based benefit/renewal rules.\n * @summary Create Press Voucher Pool\n */\nexport const createPressVoucherPool = async (offerId: number,\n pressVoucherPoolWrite: PressVoucherPoolWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherPoolRead> => {\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<PressVoucherPoolRead>(getCreatePressVoucherPoolUrl(offerId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherPoolWrite)\n }\n);}\n\n\nexport const getReadPressVoucherUsageUrl = (offerId: number,) => {\n\n\n\n\n return `/admin/press/voucher-offers/${offerId}/usage`\n}\n\n/**\n * Allocation and confirmed-activation counts, with legacy reported evidence separate.\n *\n * No per-reader sessions or durations are fabricated from legacy averages.\n * @summary Read Press Voucher Usage\n */\nexport const readPressVoucherUsage = async (offerId: number, options?: Parameters<typeof request>[1]): Promise<PressVoucherUsageRead> => {\n\n return request<PressVoucherUsageRead>(getReadPressVoucherUsageUrl(offerId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getUpdatePressVoucherPoolUrl = (poolId: number,) => {\n\n\n\n\n return `/admin/press/voucher-pools/${poolId}`\n}\n\n/**\n * Enable/close stock; an allocated bank's benefit policy cannot change retroactively.\n * @summary Update Press Voucher Pool\n */\nexport const updatePressVoucherPool = async (poolId: number,\n pressVoucherPoolWrite: PressVoucherPoolWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherPoolRead> => {\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<PressVoucherPoolRead>(getUpdatePressVoucherPoolUrl(poolId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherPoolWrite)\n }\n);}\n\n\nexport const getImportPressVoucherActivationsUrl = (poolId: number,) => {\n\n\n\n\n return `/admin/press/voucher-pools/${poolId}/activations`\n}\n\n/**\n * Apply publisher-confirmed dates; never infer activation from allocation.\n *\n * Matching repeats are harmless. Unknown codes, conflicting confirmations and\n * future activation dates are refused atomically. An already-used unallocated\n * code is quarantined so it cannot be handed to another household.\n * @summary Import Press Voucher Activations\n */\nexport const importPressVoucherActivations = async (poolId: number,\n pressVoucherActivationReportWrite: PressVoucherActivationReportWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherImportRead> => {\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<PressVoucherImportRead>(getImportPressVoucherActivationsUrl(poolId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherActivationReportWrite)\n }\n);}\n\n\nexport const getImportPressVoucherCodesUrl = (poolId: number,) => {\n\n\n\n\n return `/admin/press/voucher-pools/${poolId}/codes`\n}\n\n/**\n * Import at most 500 private codes atomically. Same-bank repeats are idempotent.\n *\n * A code already in another bank is refused; existing owners are never changed.\n * Values are encrypted at rest and omitted from responses and audit details.\n * @summary Import Press Voucher Codes\n */\nexport const importPressVoucherCodes = async (poolId: number,\n pressVoucherCodesWrite: PressVoucherCodesWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherImportRead> => {\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<PressVoucherImportRead>(getImportPressVoucherCodesUrl(poolId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherCodesWrite)\n }\n);}\n\n\nexport const getDisablePressVoucherCodesUrl = (poolId: number,) => {\n\n\n\n\n return `/admin/press/voucher-pools/${poolId}/codes/disable`\n}\n\n/**\n * Disable local issuance/retrieval without clearing ownership or cancelling publisher accounts.\n * @summary Disable Press Voucher Codes\n */\nexport const disablePressVoucherCodes = async (poolId: number,\n pressVoucherDisableWrite: PressVoucherDisableWrite, options?: Parameters<typeof request>[1]): Promise<PressVoucherImportRead> => {\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<PressVoucherImportRead>(getDisablePressVoucherCodesUrl(poolId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(pressVoucherDisableWrite)\n }\n);}\n\n\nexport const getListThemesUrl = (params?: ListThemesParams,) => {\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 ? `/admin/themes?${stringifiedParams}` : `/admin/themes`\n}\n\n/**\n * Every theme, or one pillar's, in display order.\n *\n * Not paginated. There are 27 of them, and a client that has to page through\n * a list it is about to reorder cannot reorder it.\n * @summary List Themes\n */\nexport const listThemes = async (params?: ListThemesParams, options?: Parameters<typeof request>[1]): Promise<ThemeListRead> => {\n\n return request<ThemeListRead>(getListThemesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getCreateThemeUrl = () => {\n\n\n\n\n return `/admin/themes`\n}\n\n/**\n * Add a theme.\n *\n * ``409`` on a duplicate ``(pillar, title)``: that pair is unique in the\n * schema, and two themes with the same name in the same pillar are\n * indistinguishable to everyone downstream.\n *\n * With no ``sortOrder`` it goes last, which is what the legacy's form does by\n * defaulting the field to the current maximum plus one.\n * @summary Create Theme\n */\nexport const createTheme = async (themeWrite: ThemeWrite, options?: Parameters<typeof request>[1]): Promise<ThemeRead> => {\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<ThemeRead>(getCreateThemeUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(themeWrite)\n }\n);}\n\n\nexport const getReorderThemesUrl = () => {\n\n\n\n\n return `/admin/themes/order`\n}\n\n/**\n * Set the display order for a set of themes, in one transaction.\n *\n * The legacy renumbers one theme per request, so dragging an item in a list of\n * thirty was thirty requests — and closing the tab halfway left the order\n * half-applied, with two themes claiming the same position and the listing\n * silently choosing between them.\n *\n * Ids not named keep their relative order after the ones that are, so a client\n * may send only what moved. An unknown id is ``404`` and nothing is written:\n * a partially applied reorder is the failure this endpoint exists to prevent.\n * @summary Reorder Themes\n */\nexport const reorderThemes = async (themeOrderWrite: ThemeOrderWrite, 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>(getReorderThemesUrl(),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(themeOrderWrite)\n }\n);}\n\n\nexport const getDeleteThemeUrl = (themeId: number,) => {\n\n\n\n\n return `/admin/themes/${themeId}`\n}\n\n/**\n * Remove a theme.\n *\n * ``409`` when works still carry it. The legacy deletes and leaves the\n * references dangling, which is how a catalogue ends up with items filed under\n * a theme that no longer exists and no screen that can find them.\n *\n * Idempotent otherwise: deleting something already gone is ``204``, because\n * the caller wanted it gone and it is gone.\n * @summary Delete Theme\n */\nexport const deleteTheme = async (themeId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getDeleteThemeUrl(themeId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getReadThemeUrl = (themeId: number,) => {\n\n\n\n\n return `/admin/themes/${themeId}`\n}\n\n/**\n * One theme.\n * @summary Read Theme\n */\nexport const readTheme = async (themeId: number, options?: Parameters<typeof request>[1]): Promise<ThemeRead> => {\n\n return request<ThemeRead>(getReadThemeUrl(themeId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getAmendThemeUrl = (themeId: number,) => {\n\n\n\n\n return `/admin/themes/${themeId}`\n}\n\n/**\n * Amend a theme. Same uniqueness rule as creating one.\n * @summary Amend Theme\n */\nexport const amendTheme = async (themeId: number,\n themeWrite: ThemeWrite, options?: Parameters<typeof request>[1]): Promise<ThemeRead> => {\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<ThemeRead>(getAmendThemeUrl(themeId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(themeWrite)\n }\n);}\n\n\n"],"mappings":";;;AAiCA,MAAa,mCAAmC,WAA8C;CAC5F,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CA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,cAAc,OAAO,SAAiB,YAA2D;CAE5G,OAAO,QAAc,kBAAkB,OAAO,GAC9C;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,mBAAmB,YAAqB;CAKnD,OAAO,iBAAiB;AAC1B;;;;;AAMA,MAAa,YAAY,OAAO,SAAiB,YAAgE;CAE/G,OAAO,QAAmB,gBAAgB,OAAO,GACjD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,oBAAoB,YAAqB;CAKpD,OAAO,iBAAiB;AAC1B;;;;;AAMA,MAAa,aAAa,OAAO,SAC7B,YAAwB,YAAgE;CAExF,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,QAAmB,iBAAiB,OAAO,GAChD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,UAAU;CACjC,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { ya as LiveLeaseListRead, yo as LeaseCloseWrite } from "../chunks/index.js";
2
+ import { Ho as LeaseCloseWrite, La as LiveLeaseListRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/admin-consumption/admin-consumption.d.ts
5
5
  export declare const getListLiveLeasesUrl: () => string;
@@ -1 +1 @@
1
- {"version":3,"file":"admin-consumption.js","names":[],"sources":["../../src/api/admin-consumption/admin-consumption.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.18.0\n */\nimport type {\n LeaseCloseWrite,\n LiveLeaseListRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListLiveLeasesUrl = () => {\n\n\n\n\n return `/admin/consumption/live`\n}\n\n/**\n * What is open right now, within the caller's tenant scope.\n *\n * Read from the ledger rather than the Redis live set: this is a diagnostic and\n * must show the truth even when the cache is cold, and it runs once when\n * somebody opens a screen rather than on every read.\n *\n * Shares :func:`~app.services.entitlement.is_live` with the two seat counts.\n * An earlier version of this route filtered on ``returned_at`` alone and so\n * listed every lapsed-but-unreaped lease as live — which made the screen look\n * exactly like a stuck reaper even when the reaper was fine.\n * @summary List Live Leases\n */\nexport const listLiveLeases = async ( options?: Parameters<typeof request>[1]): Promise<LiveLeaseListRead> => {\n\n return request<LiveLeaseListRead>(getListLiveLeasesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getForceCloseLeaseUrl = (eventId: number,) => {\n\n\n\n\n return `/admin/consumption/${eventId}`\n}\n\n/**\n * Force-close somebody else's lease. The legacy's ``FermeSessionAdherent``.\n *\n * Audited, which the legacy's was not: a button that ends a stranger's reading\n * session and leaves no trace is indistinguishable from abuse of the same\n * button. Tenant-scoped like every staff action, so a lease outside the\n * caller's scope is ``404`` rather than ``403``.\n * @summary Force Close Lease\n */\nexport const forceCloseLease = async (eventId: number,\n leaseCloseWrite: LeaseCloseWrite, 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>(getForceCloseLeaseUrl(eventId),\n {\n ...options,\n method: 'DELETE',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(leaseCloseWrite)\n }\n);}\n\n\n"],"mappings":";;;AAcA,MAAa,6BAA6B;CAKxC,OAAO;AACT;;;;;;;;;;;;;;AAeA,MAAa,iBAAiB,OAAQ,YAAwE;CAE5G,OAAO,QAA2B,qBAAqB,GACvD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,yBAAyB,YAAqB;CAKzD,OAAO,sBAAsB;AAC/B;;;;;;;;;;AAWA,MAAa,kBAAkB,OAAO,SAClC,iBAAkC,YAA2D;CAE7F,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,sBAAsB,OAAO,GAChD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,eAAe;CACtC,CACF;AAAE"}
1
+ {"version":3,"file":"admin-consumption.js","names":[],"sources":["../../src/api/admin-consumption/admin-consumption.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.20.0\n */\nimport type {\n LeaseCloseWrite,\n LiveLeaseListRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListLiveLeasesUrl = () => {\n\n\n\n\n return `/admin/consumption/live`\n}\n\n/**\n * What is open right now, within the caller's tenant scope.\n *\n * Read from the ledger rather than the Redis live set: this is a diagnostic and\n * must show the truth even when the cache is cold, and it runs once when\n * somebody opens a screen rather than on every read.\n *\n * Shares :func:`~app.services.entitlement.is_live` with the two seat counts.\n * An earlier version of this route filtered on ``returned_at`` alone and so\n * listed every lapsed-but-unreaped lease as live — which made the screen look\n * exactly like a stuck reaper even when the reaper was fine.\n * @summary List Live Leases\n */\nexport const listLiveLeases = async ( options?: Parameters<typeof request>[1]): Promise<LiveLeaseListRead> => {\n\n return request<LiveLeaseListRead>(getListLiveLeasesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getForceCloseLeaseUrl = (eventId: number,) => {\n\n\n\n\n return `/admin/consumption/${eventId}`\n}\n\n/**\n * Force-close somebody else's lease. The legacy's ``FermeSessionAdherent``.\n *\n * Audited, which the legacy's was not: a button that ends a stranger's reading\n * session and leaves no trace is indistinguishable from abuse of the same\n * button. Tenant-scoped like every staff action, so a lease outside the\n * caller's scope is ``404`` rather than ``403``.\n * @summary Force Close Lease\n */\nexport const forceCloseLease = async (eventId: number,\n leaseCloseWrite: LeaseCloseWrite, 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>(getForceCloseLeaseUrl(eventId),\n {\n ...options,\n method: 'DELETE',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(leaseCloseWrite)\n }\n);}\n\n\n"],"mappings":";;;AAcA,MAAa,6BAA6B;CAKxC,OAAO;AACT;;;;;;;;;;;;;;AAeA,MAAa,iBAAiB,OAAQ,YAAwE;CAE5G,OAAO,QAA2B,qBAAqB,GACvD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,yBAAyB,YAAqB;CAKzD,OAAO,sBAAsB;AAC/B;;;;;;;;;;AAWA,MAAa,kBAAkB,OAAO,SAClC,iBAAkC,YAA2D;CAE7F,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,sBAAsB,OAAO,GAChD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,eAAe;CACtC,CACF;AAAE"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { $_ as CategoryExclusionWrite, __ as ContractProviderWrite, b_ as ContractCategoryGrantRead, ev as CategoryExclusionRead, y_ as ContractCategoryGrantWrite } from "../chunks/index.js";
2
+ import { Gv as ContractProviderWrite, Jv as ContractCategoryGrantRead, My as CategoryExclusionWrite, Ny as CategoryExclusionRead, qv as ContractCategoryGrantWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/admin-contracts/admin-contracts.d.ts
5
5
  export declare const getCreateContractCategoryGrantUrl: (contractId: number) => string;