@learnorama/mozaik-sdk 0.1.0 → 0.5.0-staging.22.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 (242) hide show
  1. package/README.md +186 -5
  2. package/dist/api/account.d.ts +2 -2
  3. package/dist/api/account.js +1 -1
  4. package/dist/api/account.js.map +1 -1
  5. package/dist/api/admin-catalogue.d.ts +2 -2
  6. package/dist/api/admin-catalogue.js +1 -1
  7. package/dist/api/admin-catalogue.js.map +1 -1
  8. package/dist/api/admin-consumption.d.ts +7 -2
  9. package/dist/api/admin-consumption.js +6 -1
  10. package/dist/api/admin-consumption.js.map +1 -1
  11. package/dist/api/admin-licenses.d.ts +2 -2
  12. package/dist/api/admin-licenses.js +1 -1
  13. package/dist/api/admin-licenses.js.map +1 -1
  14. package/dist/api/admin-patrons.d.ts +3 -3
  15. package/dist/api/admin-patrons.js +2 -2
  16. package/dist/api/admin-patrons.js.map +1 -1
  17. package/dist/api/admin-reviews.d.ts +2 -2
  18. package/dist/api/admin-reviews.js +1 -1
  19. package/dist/api/admin-reviews.js.map +1 -1
  20. package/dist/api/admin-roles.d.ts +3 -3
  21. package/dist/api/admin-roles.js +2 -2
  22. package/dist/api/admin-roles.js.map +1 -1
  23. package/dist/api/admin-support.d.ts +2 -2
  24. package/dist/api/admin-support.js +1 -1
  25. package/dist/api/admin-support.js.map +1 -1
  26. package/dist/api/admin-tenants.d.ts +14 -2
  27. package/dist/api/admin-tenants.js +38 -2
  28. package/dist/api/admin-tenants.js.map +1 -1
  29. package/dist/api/admin-tutoring.d.ts +2 -2
  30. package/dist/api/admin-tutoring.js +1 -1
  31. package/dist/api/admin-tutoring.js.map +1 -1
  32. package/dist/api/auth.d.ts +2 -2
  33. package/dist/api/auth.js +1 -1
  34. package/dist/api/auth.js.map +1 -1
  35. package/dist/api/biblio-catalogue.d.ts +2 -2
  36. package/dist/api/biblio-catalogue.js +1 -1
  37. package/dist/api/biblio-catalogue.js.map +1 -1
  38. package/dist/api/biblio-home.d.ts +2 -2
  39. package/dist/api/biblio-home.js +1 -1
  40. package/dist/api/biblio-home.js.map +1 -1
  41. package/dist/api/biblio-library.d.ts +2 -2
  42. package/dist/api/biblio-library.js +1 -1
  43. package/dist/api/biblio-library.js.map +1 -1
  44. package/dist/api/biblio-nextory.d.ts +2 -2
  45. package/dist/api/biblio-nextory.js +1 -1
  46. package/dist/api/biblio-nextory.js.map +1 -1
  47. package/dist/api/biblio-press.d.ts +2 -2
  48. package/dist/api/biblio-press.js +1 -1
  49. package/dist/api/biblio-press.js.map +1 -1
  50. package/dist/api/biblio-search.d.ts +2 -2
  51. package/dist/api/biblio-search.js +1 -1
  52. package/dist/api/biblio-search.js.map +1 -1
  53. package/dist/api/biblio-telemetry.d.ts +2 -2
  54. package/dist/api/biblio-telemetry.js +1 -1
  55. package/dist/api/biblio-telemetry.js.map +1 -1
  56. package/dist/api/consumption.d.ts +2 -2
  57. package/dist/api/consumption.js +1 -1
  58. package/dist/api/consumption.js.map +1 -1
  59. package/dist/api/cvs-app.d.ts +2 -2
  60. package/dist/api/cvs-app.js +1 -1
  61. package/dist/api/cvs-app.js.map +1 -1
  62. package/dist/api/cvs-documents.d.ts +16 -4
  63. package/dist/api/cvs-documents.js +22 -5
  64. package/dist/api/cvs-documents.js.map +1 -1
  65. package/dist/api/cvs-favorites.d.ts +2 -2
  66. package/dist/api/cvs-favorites.js +1 -1
  67. package/dist/api/cvs-favorites.js.map +1 -1
  68. package/dist/api/cvs-ils.d.ts +167 -0
  69. package/dist/api/cvs-ils.js +362 -0
  70. package/dist/api/cvs-ils.js.map +1 -0
  71. package/dist/api/cvs-loans.d.ts +2 -2
  72. package/dist/api/cvs-loans.js +1 -1
  73. package/dist/api/cvs-loans.js.map +1 -1
  74. package/dist/api/cvs-payments.d.ts +49 -0
  75. package/dist/api/cvs-payments.js +84 -0
  76. package/dist/api/cvs-payments.js.map +1 -0
  77. package/dist/api/cvs-streaming.d.ts +2 -2
  78. package/dist/api/cvs-streaming.js +1 -1
  79. package/dist/api/cvs-streaming.js.map +1 -1
  80. package/dist/api/index.d.ts +5 -2
  81. package/dist/api/index.js +7 -4
  82. package/dist/api/partner-catalogue.d.ts +2 -2
  83. package/dist/api/partner-catalogue.js +1 -1
  84. package/dist/api/partner-catalogue.js.map +1 -1
  85. package/dist/api/partner-reader.d.ts +2 -2
  86. package/dist/api/partner-reader.js +1 -1
  87. package/dist/api/partner-reader.js.map +1 -1
  88. package/dist/api/profiles.d.ts +2 -2
  89. package/dist/api/profiles.js +1 -1
  90. package/dist/api/profiles.js.map +1 -1
  91. package/dist/api/search.d.ts +18 -0
  92. package/dist/api/search.js +37 -0
  93. package/dist/api/search.js.map +1 -0
  94. package/dist/api/tutoring-catalogue.d.ts +2 -2
  95. package/dist/api/tutoring-catalogue.js +1 -1
  96. package/dist/api/tutoring-catalogue.js.map +1 -1
  97. package/dist/api/tutoring-chat.d.ts +2 -2
  98. package/dist/api/tutoring-chat.js +1 -1
  99. package/dist/api/tutoring-chat.js.map +1 -1
  100. package/dist/api/tutoring-dispatch.d.ts +2 -2
  101. package/dist/api/tutoring-dispatch.js +1 -1
  102. package/dist/api/tutoring-dispatch.js.map +1 -1
  103. package/dist/api/tutoring-practitioner.d.ts +2 -2
  104. package/dist/api/tutoring-practitioner.js +1 -1
  105. package/dist/api/tutoring-practitioner.js.map +1 -1
  106. package/dist/api/tutoring-requests.d.ts +2 -2
  107. package/dist/api/tutoring-requests.js +1 -1
  108. package/dist/api/tutoring-requests.js.map +1 -1
  109. package/dist/auth.d.ts +10 -0
  110. package/dist/auth.js +451 -0
  111. package/dist/auth.js.map +1 -0
  112. package/dist/chat.d.ts +3 -0
  113. package/dist/chat.js +3 -0
  114. package/dist/{client-BDwBZYB0.d.ts → chunks/client.d.ts} +1 -1
  115. package/dist/{client-D3kMOcIr.js → chunks/client.js} +1 -1
  116. package/dist/chunks/client.js.map +1 -0
  117. package/dist/chunks/client2.d.ts +53 -0
  118. package/dist/chunks/connection.d.ts +28 -0
  119. package/dist/chunks/connection.js +141 -0
  120. package/dist/chunks/connection.js.map +1 -0
  121. package/dist/{index-wL_20vR8.d.ts → chunks/index.d.ts} +922 -128
  122. package/dist/index.d.ts +4 -4
  123. package/dist/index.js +4 -4
  124. package/dist/index.js.map +1 -1
  125. package/dist/models.d.ts +2 -2
  126. package/dist/models.js +44 -1
  127. package/dist/models.js.map +1 -1
  128. package/dist/react/account.d.ts +2 -2
  129. package/dist/react/account.js +2 -2
  130. package/dist/react/account.js.map +1 -1
  131. package/dist/react/admin-catalogue.d.ts +2 -2
  132. package/dist/react/admin-catalogue.js +2 -2
  133. package/dist/react/admin-catalogue.js.map +1 -1
  134. package/dist/react/admin-consumption.d.ts +7 -2
  135. package/dist/react/admin-consumption.js +7 -2
  136. package/dist/react/admin-consumption.js.map +1 -1
  137. package/dist/react/admin-licenses.d.ts +2 -2
  138. package/dist/react/admin-licenses.js +2 -2
  139. package/dist/react/admin-licenses.js.map +1 -1
  140. package/dist/react/admin-patrons.d.ts +3 -3
  141. package/dist/react/admin-patrons.js +3 -3
  142. package/dist/react/admin-patrons.js.map +1 -1
  143. package/dist/react/admin-reviews.d.ts +2 -2
  144. package/dist/react/admin-reviews.js +2 -2
  145. package/dist/react/admin-reviews.js.map +1 -1
  146. package/dist/react/admin-roles.d.ts +3 -3
  147. package/dist/react/admin-roles.js +3 -3
  148. package/dist/react/admin-roles.js.map +1 -1
  149. package/dist/react/admin-support.d.ts +2 -2
  150. package/dist/react/admin-support.js +2 -2
  151. package/dist/react/admin-support.js.map +1 -1
  152. package/dist/react/admin-tenants.d.ts +68 -2
  153. package/dist/react/admin-tenants.js +87 -3
  154. package/dist/react/admin-tenants.js.map +1 -1
  155. package/dist/react/admin-tutoring.d.ts +2 -2
  156. package/dist/react/admin-tutoring.js +2 -2
  157. package/dist/react/admin-tutoring.js.map +1 -1
  158. package/dist/react/auth.d.ts +2 -2
  159. package/dist/react/auth.js +2 -2
  160. package/dist/react/auth.js.map +1 -1
  161. package/dist/react/biblio-catalogue.d.ts +2 -2
  162. package/dist/react/biblio-catalogue.js +2 -2
  163. package/dist/react/biblio-catalogue.js.map +1 -1
  164. package/dist/react/biblio-home.d.ts +2 -2
  165. package/dist/react/biblio-home.js +2 -2
  166. package/dist/react/biblio-home.js.map +1 -1
  167. package/dist/react/biblio-library.d.ts +2 -2
  168. package/dist/react/biblio-library.js +2 -2
  169. package/dist/react/biblio-library.js.map +1 -1
  170. package/dist/react/biblio-nextory.d.ts +2 -2
  171. package/dist/react/biblio-nextory.js +2 -2
  172. package/dist/react/biblio-nextory.js.map +1 -1
  173. package/dist/react/biblio-press.d.ts +2 -2
  174. package/dist/react/biblio-press.js +2 -2
  175. package/dist/react/biblio-press.js.map +1 -1
  176. package/dist/react/biblio-search.d.ts +2 -2
  177. package/dist/react/biblio-search.js +2 -2
  178. package/dist/react/biblio-search.js.map +1 -1
  179. package/dist/react/biblio-telemetry.d.ts +2 -2
  180. package/dist/react/biblio-telemetry.js +2 -2
  181. package/dist/react/biblio-telemetry.js.map +1 -1
  182. package/dist/react/chat.d.ts +36 -0
  183. package/dist/react/chat.js +234 -0
  184. package/dist/react/chat.js.map +1 -0
  185. package/dist/react/consumption.d.ts +2 -2
  186. package/dist/react/consumption.js +2 -2
  187. package/dist/react/consumption.js.map +1 -1
  188. package/dist/react/cvs-app.d.ts +2 -2
  189. package/dist/react/cvs-app.js +2 -2
  190. package/dist/react/cvs-app.js.map +1 -1
  191. package/dist/react/cvs-documents.d.ts +17 -4
  192. package/dist/react/cvs-documents.js +25 -8
  193. package/dist/react/cvs-documents.js.map +1 -1
  194. package/dist/react/cvs-favorites.d.ts +2 -2
  195. package/dist/react/cvs-favorites.js +2 -2
  196. package/dist/react/cvs-favorites.js.map +1 -1
  197. package/dist/react/cvs-ils.d.ts +552 -0
  198. package/dist/react/cvs-ils.js +822 -0
  199. package/dist/react/cvs-ils.js.map +1 -0
  200. package/dist/react/cvs-loans.d.ts +2 -2
  201. package/dist/react/cvs-loans.js +2 -2
  202. package/dist/react/cvs-loans.js.map +1 -1
  203. package/dist/react/cvs-payments.d.ts +123 -0
  204. package/dist/react/cvs-payments.js +181 -0
  205. package/dist/react/cvs-payments.js.map +1 -0
  206. package/dist/react/cvs-streaming.d.ts +2 -2
  207. package/dist/react/cvs-streaming.js +2 -2
  208. package/dist/react/cvs-streaming.js.map +1 -1
  209. package/dist/react/index.d.ts +5 -2
  210. package/dist/react/index.js +5 -2
  211. package/dist/react/partner-catalogue.d.ts +2 -2
  212. package/dist/react/partner-catalogue.js +2 -2
  213. package/dist/react/partner-catalogue.js.map +1 -1
  214. package/dist/react/partner-reader.d.ts +2 -2
  215. package/dist/react/partner-reader.js +2 -2
  216. package/dist/react/partner-reader.js.map +1 -1
  217. package/dist/react/profiles.d.ts +2 -2
  218. package/dist/react/profiles.js +2 -2
  219. package/dist/react/profiles.js.map +1 -1
  220. package/dist/react/search.d.ts +47 -0
  221. package/dist/react/search.js +81 -0
  222. package/dist/react/search.js.map +1 -0
  223. package/dist/react/sso.d.ts +15 -0
  224. package/dist/react/sso.js +48 -0
  225. package/dist/react/sso.js.map +1 -0
  226. package/dist/react/tutoring-catalogue.d.ts +2 -2
  227. package/dist/react/tutoring-catalogue.js +2 -2
  228. package/dist/react/tutoring-catalogue.js.map +1 -1
  229. package/dist/react/tutoring-chat.d.ts +2 -2
  230. package/dist/react/tutoring-chat.js +2 -2
  231. package/dist/react/tutoring-chat.js.map +1 -1
  232. package/dist/react/tutoring-dispatch.d.ts +2 -2
  233. package/dist/react/tutoring-dispatch.js +2 -2
  234. package/dist/react/tutoring-dispatch.js.map +1 -1
  235. package/dist/react/tutoring-practitioner.d.ts +2 -2
  236. package/dist/react/tutoring-practitioner.js +2 -2
  237. package/dist/react/tutoring-practitioner.js.map +1 -1
  238. package/dist/react/tutoring-requests.d.ts +2 -2
  239. package/dist/react/tutoring-requests.js +2 -2
  240. package/dist/react/tutoring-requests.js.map +1 -1
  241. package/package.json +29 -1
  242. package/dist/client-D3kMOcIr.js.map +0 -1
@@ -7,7 +7,7 @@ import { getListPatronsQueryKey, getListPatronsQueryOptions, getListPatronsUrl,
7
7
  import { getListReviewsQueryKey, getListReviewsQueryOptions, getListReviewsUrl, getModerateReviewMutationKey, getModerateReviewMutationOptions, getModerateReviewUrl, listReviews, moderateReview, useListReviews, useModerateReview } from "./admin-reviews.js";
8
8
  import { getListGrantsQueryKey, getListGrantsQueryOptions, getListGrantsUrl, getReplaceGrantsMutationKey, getReplaceGrantsMutationOptions, getReplaceGrantsUrl, listGrants, replaceGrants, useListGrants, useReplaceGrants } from "./admin-roles.js";
9
9
  import { closeSupportSession, createDemoUser, getCloseSupportSessionMutationKey, getCloseSupportSessionMutationOptions, getCloseSupportSessionUrl, getCreateDemoUserMutationKey, getCreateDemoUserMutationOptions, getCreateDemoUserUrl, getOpenSupportSessionMutationKey, getOpenSupportSessionMutationOptions, getOpenSupportSessionUrl, openSupportSession, useCloseSupportSession, useCreateDemoUser, useOpenSupportSession } from "./admin-support.js";
10
- import { getListTenantsQueryKey, getListTenantsQueryOptions, getListTenantsUrl, getReadTenantQueryKey, getReadTenantQueryOptions, getReadTenantUrl, getUpdateTenantMutationKey, getUpdateTenantMutationOptions, getUpdateTenantUrl, listTenants, readTenant, updateTenant, useListTenants, useReadTenant, useUpdateTenant } from "./admin-tenants.js";
10
+ import { getListTenantsQueryKey, getListTenantsQueryOptions, getListTenantsUrl, getReadTenantQueryKey, getReadTenantQueryOptions, getReadTenantUrl, getSearchTenantsQueryKey, getSearchTenantsQueryOptions, getSearchTenantsUrl, getTenantDirectoryQueryKey, getTenantDirectoryQueryOptions, getTenantDirectoryUrl, getUpdateTenantMutationKey, getUpdateTenantMutationOptions, getUpdateTenantUrl, listTenants, readTenant, searchTenants, tenantDirectory, updateTenant, useListTenants, useReadTenant, useSearchTenants, useTenantDirectory, useUpdateTenant } from "./admin-tenants.js";
11
11
  import { adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, createGoal, createLevel, createSubject, getAdminCloseRequestMutationKey, getAdminCloseRequestMutationOptions, getAdminCloseRequestUrl, getAmendGoalMutationKey, getAmendGoalMutationOptions, getAmendGoalUrl, getAmendLevelMutationKey, getAmendLevelMutationOptions, getAmendLevelUrl, getAmendPractitionerMutationKey, getAmendPractitionerMutationOptions, getAmendPractitionerUrl, getAmendRequestMutationKey, getAmendRequestMutationOptions, getAmendRequestUrl, getAmendSubjectMutationKey, getAmendSubjectMutationOptions, getAmendSubjectUrl, getCreateGoalMutationKey, getCreateGoalMutationOptions, getCreateGoalUrl, getCreateLevelMutationKey, getCreateLevelMutationOptions, getCreateLevelUrl, getCreateSubjectMutationKey, getCreateSubjectMutationOptions, getCreateSubjectUrl, getListAllRequestsQueryKey, getListAllRequestsQueryOptions, getListAllRequestsUrl, getListExpiringDocumentsQueryKey, getListExpiringDocumentsQueryOptions, getListExpiringDocumentsUrl, getListFeedbackQueryKey, getListFeedbackQueryOptions, getListFeedbackUrl, getListPractitionerDocumentsQueryKey, getListPractitionerDocumentsQueryOptions, getListPractitionerDocumentsUrl, getListPractitionersQueryKey, getListPractitionersQueryOptions, getListPractitionersUrl, getModerateFeedbackMutationKey, getModerateFeedbackMutationOptions, getModerateFeedbackUrl, getReadDraftQueryKey, getReadDraftQueryOptions, getReadDraftUrl, getReadRequestQueryKey, getReadRequestQueryOptions, getReadRequestUrl, getReviewDraftMutationKey, getReviewDraftMutationOptions, getReviewDraftUrl, listAllRequests, listExpiringDocuments, listFeedback, listPractitionerDocuments, listPractitioners, moderateFeedback, readDraft, readRequest, reviewDraft, useAdminCloseRequest, useAmendGoal, useAmendLevel, useAmendPractitioner, useAmendRequest, useAmendSubject, useCreateGoal, useCreateLevel, useCreateSubject, useListAllRequests, useListExpiringDocuments, useListFeedback, useListPractitionerDocuments, useListPractitioners, useModerateFeedback, useReadDraft, useReadRequest, useReviewDraft } from "./admin-tutoring.js";
12
12
  import { authorization, createSessionFromCode, createSessionFromCredentials, deleteSession, getAuthorizationQueryKey, getAuthorizationQueryOptions, getAuthorizationUrl, getCreateSessionFromCodeMutationKey, getCreateSessionFromCodeMutationOptions, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsMutationKey, getCreateSessionFromCredentialsMutationOptions, getCreateSessionFromCredentialsUrl, getDeleteSessionMutationKey, getDeleteSessionMutationOptions, getDeleteSessionUrl, getReadMeQueryKey, getReadMeQueryOptions, getReadMeUrl, getRefreshSessionMutationKey, getRefreshSessionMutationOptions, getRefreshSessionUrl, readMe, refreshSession, useAuthorization, useCreateSessionFromCode, useCreateSessionFromCredentials, useDeleteSession, useReadMe, useRefreshSession } from "./auth.js";
13
13
  import { getLikeContentMutationKey, getLikeContentMutationOptions, getLikeContentUrl, getListEditorsQueryKey, getListEditorsQueryOptions, getListEditorsUrl, getReadCatalogQueryKey, getReadCatalogQueryOptions, getReadCatalogThemeQueryKey, getReadCatalogThemeQueryOptions, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentQueryKey, getReadContentQueryOptions, getReadContentUrl, getReadEditorQueryKey, getReadEditorQueryOptions, getReadEditorUrl, getReadLearningPathQueryKey, getReadLearningPathQueryOptions, getReadLearningPathUrl, getReadPackQueryKey, getReadPackQueryOptions, getReadPackUrl, getReadRecommendationsQueryKey, getReadRecommendationsQueryOptions, getReadRecommendationsUrl, getUnlikeContentMutationKey, getUnlikeContentMutationOptions, getUnlikeContentUrl, likeContent, listEditors, readCatalog, readCatalogTheme, readContent, readEditor, readLearningPath, readPack, readRecommendations, unlikeContent, useLikeContent, useListEditors, useReadCatalog, useReadCatalogTheme, useReadContent, useReadEditor, useReadLearningPath, useReadPack, useReadRecommendations, useUnlikeContent } from "./biblio-catalogue.js";
@@ -21,14 +21,17 @@ import { closeLease, getCloseLeaseMutationKey, getCloseLeaseMutationOptions, get
21
21
  import { createReport, getCreateReportMutationKey, getCreateReportMutationOptions, getCreateReportUrl, getListNotificationsQueryKey, getListNotificationsQueryOptions, getListNotificationsUrl, listNotifications, useCreateReport, useListNotifications } from "./cvs-app.js";
22
22
  import { getOpenAtSupplierMutationKey, getOpenAtSupplierMutationOptions, getOpenAtSupplierUrl, getRateDocumentMutationKey, getRateDocumentMutationOptions, getRateDocumentUrl, getReadDocumentQueryKey, getReadDocumentQueryOptions, getReadDocumentUrl, getReadLastPositionQueryKey, getReadLastPositionQueryOptions, getReadLastPositionUrl, getSearchDocumentsMutationKey, getSearchDocumentsMutationOptions, getSearchDocumentsUrl, getSetLastPositionMutationKey, getSetLastPositionMutationOptions, getSetLastPositionUrl, getWriteReviewMutationKey, getWriteReviewMutationOptions, getWriteReviewUrl, openAtSupplier, rateDocument, readDocument, readLastPosition, searchDocuments, setLastPosition, useOpenAtSupplier, useRateDocument, useReadDocument, useReadLastPosition, useSearchDocuments, useSetLastPosition, useWriteReview, writeReview } from "./cvs-documents.js";
23
23
  import { addCvsFavorite, getAddCvsFavoriteMutationKey, getAddCvsFavoriteMutationOptions, getAddCvsFavoriteUrl, getListCvsFavoritesQueryKey, getListCvsFavoritesQueryOptions, getListCvsFavoritesUrl, getListSelectionsQueryKey, getListSelectionsQueryOptions, getListSelectionsUrl, getRemoveCvsFavoriteMutationKey, getRemoveCvsFavoriteMutationOptions, getRemoveCvsFavoriteUrl, listCvsFavorites, listSelections, removeCvsFavorite, useAddCvsFavorite, useListCvsFavorites, useListSelections, useRemoveCvsFavorite } from "./cvs-favorites.js";
24
+ import { addIlsReview, addIlsTag, cancelIlsHold, changeIlsPassword, getAddIlsReviewMutationKey, getAddIlsReviewMutationOptions, getAddIlsReviewUrl, getAddIlsTagMutationKey, getAddIlsTagMutationOptions, getAddIlsTagUrl, getCancelIlsHoldMutationKey, getCancelIlsHoldMutationOptions, getCancelIlsHoldUrl, getChangeIlsPasswordMutationKey, getChangeIlsPasswordMutationOptions, getChangeIlsPasswordUrl, getListIlsHoldLocationsQueryKey, getListIlsHoldLocationsQueryOptions, getListIlsHoldLocationsUrl, getListIlsHoldsQueryKey, getListIlsHoldsQueryOptions, getListIlsHoldsUrl, getListIlsLoansQueryKey, getListIlsLoansQueryOptions, getListIlsLoansUrl, getListIlsLocationsQueryKey, getListIlsLocationsQueryOptions, getListIlsLocationsUrl, getListIlsSuggestionCategoriesQueryKey, getListIlsSuggestionCategoriesQueryOptions, getListIlsSuggestionCategoriesUrl, getListIlsSuggestionSourcesQueryKey, getListIlsSuggestionSourcesQueryOptions, getListIlsSuggestionSourcesUrl, getPlaceIlsHoldMutationKey, getPlaceIlsHoldMutationOptions, getPlaceIlsHoldUrl, getReadIlsAccountQueryKey, getReadIlsAccountQueryOptions, getReadIlsAccountUrl, getReadIlsHoldableQueryKey, getReadIlsHoldableQueryOptions, getReadIlsHoldableUrl, getReadIlsStatusQueryKey, getReadIlsStatusQueryOptions, getReadIlsStatusUrl, getRenewIlsLoanMutationKey, getRenewIlsLoanMutationOptions, getRenewIlsLoanUrl, getSignInToIlsMutationKey, getSignInToIlsMutationOptions, getSignInToIlsUrl, getSignOutOfIlsMutationKey, getSignOutOfIlsMutationOptions, getSignOutOfIlsUrl, listIlsHoldLocations, listIlsHolds, listIlsLoans, listIlsLocations, listIlsSuggestionCategories, listIlsSuggestionSources, placeIlsHold, readIlsAccount, readIlsHoldable, readIlsStatus, renewIlsLoan, signInToIls, signOutOfIls, useAddIlsReview, useAddIlsTag, useCancelIlsHold, useChangeIlsPassword, useListIlsHoldLocations, useListIlsHolds, useListIlsLoans, useListIlsLocations, useListIlsSuggestionCategories, useListIlsSuggestionSources, usePlaceIlsHold, useReadIlsAccount, useReadIlsHoldable, useReadIlsStatus, useRenewIlsLoan, useSignInToIls, useSignOutOfIls } from "./cvs-ils.js";
24
25
  import { borrow, extendLoan, getBorrowMutationKey, getBorrowMutationOptions, getBorrowUrl, getExtendLoanMutationKey, getExtendLoanMutationOptions, getExtendLoanUrl, getListLoansQueryKey, getListLoansQueryOptions, getListLoansUrl, getReturnLoanMutationKey, getReturnLoanMutationOptions, getReturnLoanUrl, listLoans, returnLoan, useBorrow, useExtendLoan, useListLoans, useReturnLoan } from "./cvs-loans.js";
26
+ import { getListPaymentsQueryKey, getListPaymentsQueryOptions, getListPaymentsUrl, getReadPaymentQueryKey, getReadPaymentQueryOptions, getReadPaymentUrl, getStartPaymentMutationKey, getStartPaymentMutationOptions, getStartPaymentUrl, listPayments, readPayment, startPayment, useListPayments, useReadPayment, useStartPayment } from "./cvs-payments.js";
25
27
  import { getStartSessionMutationKey, getStartSessionMutationOptions, getStartSessionUrl, getStreamingDetailsQueryKey, getStreamingDetailsQueryOptions, getStreamingDetailsUrl, startSession, streamingDetails, useStartSession, useStreamingDetails } from "./cvs-streaming.js";
26
28
  import { addPartnerFavorite, getAddPartnerFavoriteMutationKey, getAddPartnerFavoriteMutationOptions, getAddPartnerFavoriteUrl, getListMediaQueryKey, getListMediaQueryOptions, getListMediaUrl, getListPartnerCategoriesQueryKey, getListPartnerCategoriesQueryOptions, getListPartnerCategoriesUrl, getListPartnerFavoritesQueryKey, getListPartnerFavoritesQueryOptions, getListPartnerFavoritesUrl, getReadMediaQueryKey, getReadMediaQueryOptions, getReadMediaUrl, getRemovePartnerFavoriteMutationKey, getRemovePartnerFavoriteMutationOptions, getRemovePartnerFavoriteUrl, listMedia, listPartnerCategories, listPartnerFavorites, readMedia, removePartnerFavorite, useAddPartnerFavorite, useListMedia, useListPartnerCategories, useListPartnerFavorites, useReadMedia, useRemovePartnerFavorite } from "./partner-catalogue.js";
27
29
  import { getListCurrentReadingsQueryKey, getListCurrentReadingsQueryOptions, getListCurrentReadingsUrl, getReadPackageQueryKey, getReadPackageQueryOptions, getReadPackageUrl, getReadPositionQueryKey, getReadPositionQueryOptions, getReadPositionUrl, getWritePositionMutationKey, getWritePositionMutationOptions, getWritePositionUrl, listCurrentReadings, readPackage, readPosition, useListCurrentReadings, useReadPackage, useReadPosition, useWritePosition, writePosition } from "./partner-reader.js";
28
30
  import { createProfile, deleteProfile, getCreateProfileMutationKey, getCreateProfileMutationOptions, getCreateProfileUrl, getDeleteProfileMutationKey, getDeleteProfileMutationOptions, getDeleteProfileUrl, getListProfilesQueryKey, getListProfilesQueryOptions, getListProfilesUrl, getReadProfileQueryKey, getReadProfileQueryOptions, getReadProfileUrl, getUpdateProfileMutationKey, getUpdateProfileMutationOptions, getUpdateProfileUrl, listProfiles, readProfile, updateProfile, useCreateProfile, useDeleteProfile, useListProfiles, useReadProfile, useUpdateProfile } from "./profiles.js";
31
+ import { getSearchEverythingQueryKey, getSearchEverythingQueryOptions, getSearchEverythingUrl, searchEverything, useSearchEverything } from "./search.js";
29
32
  import { getListGoalsQueryKey, getListGoalsQueryOptions, getListGoalsUrl, getListLevelsQueryKey, getListLevelsQueryOptions, getListLevelsUrl, getListSubjectsQueryKey, getListSubjectsQueryOptions, getListSubjectsUrl, listGoals, listLevels, listSubjects, useListGoals, useListLevels, useListSubjects } from "./tutoring-catalogue.js";
30
33
  import { getListMessagesQueryKey, getListMessagesQueryOptions, getListMessagesUrl, getMintChatTicketMutationKey, getMintChatTicketMutationOptions, getMintChatTicketUrl, getSendMessageMutationKey, getSendMessageMutationOptions, getSendMessageUrl, listMessages, mintChatTicket, sendMessage, useListMessages, useMintChatTicket, useSendMessage } from "./tutoring-chat.js";
31
34
  import { dispatchRequest, getDispatchRequestMutationKey, getDispatchRequestMutationOptions, getDispatchRequestUrl, getListQueueQueryKey, getListQueueQueryOptions, getListQueueUrl, getTriageRequestMutationKey, getTriageRequestMutationOptions, getTriageRequestUrl, listQueue, triageRequest, useDispatchRequest, useListQueue, useTriageRequest } from "./tutoring-dispatch.js";
32
35
  import { answerRequest, claimRequest, closeRequest, getAnswerRequestMutationKey, getAnswerRequestMutationOptions, getAnswerRequestUrl, getClaimRequestMutationKey, getClaimRequestMutationOptions, getClaimRequestUrl, getCloseRequestMutationKey, getCloseRequestMutationOptions, getCloseRequestUrl, getOpenRoomMutationKey, getOpenRoomMutationOptions, getOpenRoomUrl, openRoom, useAnswerRequest, useClaimRequest, useCloseRequest, useOpenRoom } from "./tutoring-practitioner.js";
33
36
  import { cancelRequest, deleteAttachment, getCancelRequestMutationKey, getCancelRequestMutationOptions, getCancelRequestUrl, getDeleteAttachmentMutationKey, getDeleteAttachmentMutationOptions, getDeleteAttachmentUrl, getGetRequestQueryKey, getGetRequestQueryOptions, getGetRequestUrl, getListMyRequestsQueryKey, getListMyRequestsQueryOptions, getListMyRequestsUrl, getRateRequestMutationKey, getRateRequestMutationOptions, getRateRequestUrl, getRequest, getSubmitRequestMutationKey, getSubmitRequestMutationOptions, getSubmitRequestUrl, getUploadAttachmentMutationKey, getUploadAttachmentMutationOptions, getUploadAttachmentUrl, listMyRequests, rateRequest, submitRequest, uploadAttachment, useCancelRequest, useDeleteAttachment, useGetRequest, useListMyRequests, useRateRequest, useSubmitRequest, useUploadAttachment } from "./tutoring-requests.js";
34
- export { addBiblioFavorite, addCvsFavorite, addPartnerFavorite, adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, amendTheme, answerRequest, authorization, borrow, cancelRequest, claimRequest, closeLease, closeRequest, closeSupportSession, createDemoUser, createGoal, createLevel, createLicense, createProfile, createReport, createSessionFromCode, createSessionFromCredentials, createSubject, createTheme, deleteAccount, deleteAttachment, deleteLicense, deleteProfile, deleteSession, deleteTheme, dispatchRequest, extendLoan, forceCloseLease, getAddBiblioFavoriteMutationKey, getAddBiblioFavoriteMutationOptions, getAddBiblioFavoriteUrl, getAddCvsFavoriteMutationKey, getAddCvsFavoriteMutationOptions, getAddCvsFavoriteUrl, getAddPartnerFavoriteMutationKey, getAddPartnerFavoriteMutationOptions, getAddPartnerFavoriteUrl, getAdminCloseRequestMutationKey, getAdminCloseRequestMutationOptions, getAdminCloseRequestUrl, getAmendGoalMutationKey, getAmendGoalMutationOptions, getAmendGoalUrl, getAmendLevelMutationKey, getAmendLevelMutationOptions, getAmendLevelUrl, getAmendPractitionerMutationKey, getAmendPractitionerMutationOptions, getAmendPractitionerUrl, getAmendRequestMutationKey, getAmendRequestMutationOptions, getAmendRequestUrl, getAmendSubjectMutationKey, getAmendSubjectMutationOptions, getAmendSubjectUrl, getAmendThemeMutationKey, getAmendThemeMutationOptions, getAmendThemeUrl, getAnswerRequestMutationKey, getAnswerRequestMutationOptions, getAnswerRequestUrl, getAuthorizationQueryKey, getAuthorizationQueryOptions, getAuthorizationUrl, getBorrowMutationKey, getBorrowMutationOptions, getBorrowUrl, getCancelRequestMutationKey, getCancelRequestMutationOptions, getCancelRequestUrl, getClaimRequestMutationKey, getClaimRequestMutationOptions, getClaimRequestUrl, getCloseLeaseMutationKey, getCloseLeaseMutationOptions, getCloseLeaseUrl, getCloseRequestMutationKey, getCloseRequestMutationOptions, getCloseRequestUrl, getCloseSupportSessionMutationKey, getCloseSupportSessionMutationOptions, getCloseSupportSessionUrl, getCreateDemoUserMutationKey, getCreateDemoUserMutationOptions, getCreateDemoUserUrl, getCreateGoalMutationKey, getCreateGoalMutationOptions, getCreateGoalUrl, getCreateLevelMutationKey, getCreateLevelMutationOptions, getCreateLevelUrl, getCreateLicenseMutationKey, getCreateLicenseMutationOptions, getCreateLicenseUrl, getCreateProfileMutationKey, getCreateProfileMutationOptions, getCreateProfileUrl, getCreateReportMutationKey, getCreateReportMutationOptions, getCreateReportUrl, getCreateSessionFromCodeMutationKey, getCreateSessionFromCodeMutationOptions, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsMutationKey, getCreateSessionFromCredentialsMutationOptions, getCreateSessionFromCredentialsUrl, getCreateSubjectMutationKey, getCreateSubjectMutationOptions, getCreateSubjectUrl, getCreateThemeMutationKey, getCreateThemeMutationOptions, getCreateThemeUrl, getDeleteAccountMutationKey, getDeleteAccountMutationOptions, getDeleteAccountUrl, getDeleteAttachmentMutationKey, getDeleteAttachmentMutationOptions, getDeleteAttachmentUrl, getDeleteLicenseMutationKey, getDeleteLicenseMutationOptions, getDeleteLicenseUrl, getDeleteProfileMutationKey, getDeleteProfileMutationOptions, getDeleteProfileUrl, getDeleteSessionMutationKey, getDeleteSessionMutationOptions, getDeleteSessionUrl, getDeleteThemeMutationKey, getDeleteThemeMutationOptions, getDeleteThemeUrl, getDispatchRequestMutationKey, getDispatchRequestMutationOptions, getDispatchRequestUrl, getExtendLoanMutationKey, getExtendLoanMutationOptions, getExtendLoanUrl, getForceCloseLeaseMutationKey, getForceCloseLeaseMutationOptions, getForceCloseLeaseUrl, getGetRequestQueryKey, getGetRequestQueryOptions, getGetRequestUrl, getLikeContentMutationKey, getLikeContentMutationOptions, getLikeContentUrl, getListAllRequestsQueryKey, getListAllRequestsQueryOptions, getListAllRequestsUrl, getListBiblioCategoriesQueryKey, getListBiblioCategoriesQueryOptions, getListBiblioCategoriesUrl, getListBiblioFavoritesQueryKey, getListBiblioFavoritesQueryOptions, getListBiblioFavoritesUrl, getListCurrentReadingsQueryKey, getListCurrentReadingsQueryOptions, getListCurrentReadingsUrl, getListCvsFavoritesQueryKey, getListCvsFavoritesQueryOptions, getListCvsFavoritesUrl, getListEditorsQueryKey, getListEditorsQueryOptions, getListEditorsUrl, getListExpiringDocumentsQueryKey, getListExpiringDocumentsQueryOptions, getListExpiringDocumentsUrl, getListFeedbackQueryKey, getListFeedbackQueryOptions, getListFeedbackUrl, getListGoalsQueryKey, getListGoalsQueryOptions, getListGoalsUrl, getListGrantsQueryKey, getListGrantsQueryOptions, getListGrantsUrl, getListHistoryQueryKey, getListHistoryQueryOptions, getListHistoryUrl, getListLevelsQueryKey, getListLevelsQueryOptions, getListLevelsUrl, getListLiveLeasesQueryKey, getListLiveLeasesQueryOptions, getListLiveLeasesUrl, getListLoansQueryKey, getListLoansQueryOptions, getListLoansUrl, getListMediaQueryKey, getListMediaQueryOptions, getListMediaUrl, getListMessagesQueryKey, getListMessagesQueryOptions, getListMessagesUrl, getListMyRequestsQueryKey, getListMyRequestsQueryOptions, getListMyRequestsUrl, getListNotificationsQueryKey, getListNotificationsQueryOptions, getListNotificationsUrl, getListPacksQueryKey, getListPacksQueryOptions, getListPacksUrl, getListPartnerCategoriesQueryKey, getListPartnerCategoriesQueryOptions, getListPartnerCategoriesUrl, getListPartnerFavoritesQueryKey, getListPartnerFavoritesQueryOptions, getListPartnerFavoritesUrl, getListPatronsQueryKey, getListPatronsQueryOptions, getListPatronsUrl, getListPractitionerDocumentsQueryKey, getListPractitionerDocumentsQueryOptions, getListPractitionerDocumentsUrl, getListPractitionersQueryKey, getListPractitionersQueryOptions, getListPractitionersUrl, getListPressArticlesQueryKey, getListPressArticlesQueryOptions, getListPressArticlesUrl, getListProfilesQueryKey, getListProfilesQueryOptions, getListProfilesUrl, getListQueueQueryKey, getListQueueQueryOptions, getListQueueUrl, getListReviewsQueryKey, getListReviewsQueryOptions, getListReviewsUrl, getListSelectionsQueryKey, getListSelectionsQueryOptions, getListSelectionsUrl, getListServicesQueryKey, getListServicesQueryOptions, getListServicesUrl, getListSubjectsQueryKey, getListSubjectsQueryOptions, getListSubjectsUrl, getListTenantsQueryKey, getListTenantsQueryOptions, getListTenantsUrl, getListThemesQueryKey, getListThemesQueryOptions, getListThemesUrl, getMintChatTicketMutationKey, getMintChatTicketMutationOptions, getMintChatTicketUrl, getModerateFeedbackMutationKey, getModerateFeedbackMutationOptions, getModerateFeedbackUrl, getModerateReviewMutationKey, getModerateReviewMutationOptions, getModerateReviewUrl, getOpenAtSupplierMutationKey, getOpenAtSupplierMutationOptions, getOpenAtSupplierUrl, getOpenRoomMutationKey, getOpenRoomMutationOptions, getOpenRoomUrl, getOpenSupportSessionMutationKey, getOpenSupportSessionMutationOptions, getOpenSupportSessionUrl, getRateDocumentMutationKey, getRateDocumentMutationOptions, getRateDocumentUrl, getRateRequestMutationKey, getRateRequestMutationOptions, getRateRequestUrl, getReadAccountQueryKey, getReadAccountQueryOptions, getReadAccountUrl, getReadCatalogQueryKey, getReadCatalogQueryOptions, getReadCatalogThemeQueryKey, getReadCatalogThemeQueryOptions, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentQueryKey, getReadContentQueryOptions, getReadContentUrl, getReadDocumentQueryKey, getReadDocumentQueryOptions, getReadDocumentUrl, getReadDraftQueryKey, getReadDraftQueryOptions, getReadDraftUrl, getReadEditorQueryKey, getReadEditorQueryOptions, getReadEditorUrl, getReadHomeFeedQueryKey, getReadHomeFeedQueryOptions, getReadHomeFeedUrl, getReadLastPositionQueryKey, getReadLastPositionQueryOptions, getReadLastPositionUrl, getReadLearningPathQueryKey, getReadLearningPathQueryOptions, getReadLearningPathUrl, getReadLicenseQueryKey, getReadLicenseQueryOptions, getReadLicenseUrl, getReadMeQueryKey, getReadMeQueryOptions, getReadMeUrl, getReadMediaQueryKey, getReadMediaQueryOptions, getReadMediaUrl, getReadPackQueryKey, getReadPackQueryOptions, getReadPackUrl, getReadPackageQueryKey, getReadPackageQueryOptions, getReadPackageUrl, getReadPatronLicenseQueryKey, getReadPatronLicenseQueryOptions, getReadPatronLicenseUrl, getReadPatronQueryKey, getReadPatronQueryOptions, getReadPatronUrl, getReadPositionQueryKey, getReadPositionQueryOptions, getReadPositionUrl, getReadPreferencesQueryKey, getReadPreferencesQueryOptions, getReadPreferencesUrl, getReadPressArticleQueryKey, getReadPressArticleQueryOptions, getReadPressArticleUrl, getReadPressReviewQueryKey, getReadPressReviewQueryOptions, getReadPressReviewUrl, getReadProfileQueryKey, getReadProfileQueryOptions, getReadProfileUrl, getReadRecommendationsQueryKey, getReadRecommendationsQueryOptions, getReadRecommendationsUrl, getReadRequestQueryKey, getReadRequestQueryOptions, getReadRequestUrl, getReadTenantQueryKey, getReadTenantQueryOptions, getReadTenantUrl, getReadThemeQueryKey, getReadThemeQueryOptions, getReadThemeUrl, getRecordReadingSessionMutationKey, getRecordReadingSessionMutationOptions, getRecordReadingSessionUrl, getRefreshSessionMutationKey, getRefreshSessionMutationOptions, getRefreshSessionUrl, getRemoveBiblioFavoriteMutationKey, getRemoveBiblioFavoriteMutationOptions, getRemoveBiblioFavoriteUrl, getRemoveCvsFavoriteMutationKey, getRemoveCvsFavoriteMutationOptions, getRemoveCvsFavoriteUrl, getRemovePartnerFavoriteMutationKey, getRemovePartnerFavoriteMutationOptions, getRemovePartnerFavoriteUrl, getRenewLeaseMutationKey, getRenewLeaseMutationOptions, getRenewLeaseUrl, getReorderThemesMutationKey, getReorderThemesMutationOptions, getReorderThemesUrl, getReplaceCategoryPreferencesMutationKey, getReplaceCategoryPreferencesMutationOptions, getReplaceCategoryPreferencesUrl, getReplaceGrantsMutationKey, getReplaceGrantsMutationOptions, getReplaceGrantsUrl, getRequest, getReturnLoanMutationKey, getReturnLoanMutationOptions, getReturnLoanUrl, getReviewDraftMutationKey, getReviewDraftMutationOptions, getReviewDraftUrl, getSearchDocumentsMutationKey, getSearchDocumentsMutationOptions, getSearchDocumentsUrl, getSearchQueryKey, getSearchQueryOptions, getSearchUrl, getSendMessageMutationKey, getSendMessageMutationOptions, getSendMessageUrl, getSetLastPositionMutationKey, getSetLastPositionMutationOptions, getSetLastPositionUrl, getStartSessionMutationKey, getStartSessionMutationOptions, getStartSessionUrl, getStreamingDetailsQueryKey, getStreamingDetailsQueryOptions, getStreamingDetailsUrl, getSubmitRequestMutationKey, getSubmitRequestMutationOptions, getSubmitRequestUrl, getTriageRequestMutationKey, getTriageRequestMutationOptions, getTriageRequestUrl, getUnlikeContentMutationKey, getUnlikeContentMutationOptions, getUnlikeContentUrl, getUpdateAccountMutationKey, getUpdateAccountMutationOptions, getUpdateAccountUrl, getUpdatePatronMutationKey, getUpdatePatronMutationOptions, getUpdatePatronUrl, getUpdateProfileMutationKey, getUpdateProfileMutationOptions, getUpdateProfileUrl, getUpdateTenantMutationKey, getUpdateTenantMutationOptions, getUpdateTenantUrl, getUploadAttachmentMutationKey, getUploadAttachmentMutationOptions, getUploadAttachmentUrl, getWritePositionMutationKey, getWritePositionMutationOptions, getWritePositionUrl, getWriteReviewMutationKey, getWriteReviewMutationOptions, getWriteReviewUrl, likeContent, listAllRequests, listBiblioCategories, listBiblioFavorites, listCurrentReadings, listCvsFavorites, listEditors, listExpiringDocuments, listFeedback, listGoals, listGrants, listHistory, listLevels, listLiveLeases, listLoans, listMedia, listMessages, listMyRequests, listNotifications, listPacks, listPartnerCategories, listPartnerFavorites, listPatrons, listPractitionerDocuments, listPractitioners, listPressArticles, listProfiles, listQueue, listReviews, listSelections, listServices, listSubjects, listTenants, listThemes, mintChatTicket, moderateFeedback, moderateReview, openAtSupplier, openRoom, openSupportSession, rateDocument, rateRequest, readAccount, readCatalog, readCatalogTheme, readContent, readDocument, readDraft, readEditor, readHomeFeed, readLastPosition, readLearningPath, readLicense, readMe, readMedia, readPack, readPackage, readPatron, readPatronLicense, readPosition, readPreferences, readPressArticle, readPressReview, readProfile, readRecommendations, readRequest, readTenant, readTheme, recordReadingSession, refreshSession, removeBiblioFavorite, removeCvsFavorite, removePartnerFavorite, renewLease, reorderThemes, replaceCategoryPreferences, replaceGrants, returnLoan, reviewDraft, search, searchDocuments, sendMessage, setLastPosition, startSession, streamingDetails, submitRequest, triageRequest, unlikeContent, updateAccount, updatePatron, updateProfile, updateTenant, uploadAttachment, useAddBiblioFavorite, useAddCvsFavorite, useAddPartnerFavorite, useAdminCloseRequest, useAmendGoal, useAmendLevel, useAmendPractitioner, useAmendRequest, useAmendSubject, useAmendTheme, useAnswerRequest, useAuthorization, useBorrow, useCancelRequest, useClaimRequest, useCloseLease, useCloseRequest, useCloseSupportSession, useCreateDemoUser, useCreateGoal, useCreateLevel, useCreateLicense, useCreateProfile, useCreateReport, useCreateSessionFromCode, useCreateSessionFromCredentials, useCreateSubject, useCreateTheme, useDeleteAccount, useDeleteAttachment, useDeleteLicense, useDeleteProfile, useDeleteSession, useDeleteTheme, useDispatchRequest, useExtendLoan, useForceCloseLease, useGetRequest, useLikeContent, useListAllRequests, useListBiblioCategories, useListBiblioFavorites, useListCurrentReadings, useListCvsFavorites, useListEditors, useListExpiringDocuments, useListFeedback, useListGoals, useListGrants, useListHistory, useListLevels, useListLiveLeases, useListLoans, useListMedia, useListMessages, useListMyRequests, useListNotifications, useListPacks, useListPartnerCategories, useListPartnerFavorites, useListPatrons, useListPractitionerDocuments, useListPractitioners, useListPressArticles, useListProfiles, useListQueue, useListReviews, useListSelections, useListServices, useListSubjects, useListTenants, useListThemes, useMintChatTicket, useModerateFeedback, useModerateReview, useOpenAtSupplier, useOpenRoom, useOpenSupportSession, useRateDocument, useRateRequest, useReadAccount, useReadCatalog, useReadCatalogTheme, useReadContent, useReadDocument, useReadDraft, useReadEditor, useReadHomeFeed, useReadLastPosition, useReadLearningPath, useReadLicense, useReadMe, useReadMedia, useReadPack, useReadPackage, useReadPatron, useReadPatronLicense, useReadPosition, useReadPreferences, useReadPressArticle, useReadPressReview, useReadProfile, useReadRecommendations, useReadRequest, useReadTenant, useReadTheme, useRecordReadingSession, useRefreshSession, useRemoveBiblioFavorite, useRemoveCvsFavorite, useRemovePartnerFavorite, useRenewLease, useReorderThemes, useReplaceCategoryPreferences, useReplaceGrants, useReturnLoan, useReviewDraft, useSearch, useSearchDocuments, useSendMessage, useSetLastPosition, useStartSession, useStreamingDetails, useSubmitRequest, useTriageRequest, useUnlikeContent, useUpdateAccount, useUpdatePatron, useUpdateProfile, useUpdateTenant, useUploadAttachment, useWritePosition, useWriteReview, writePosition, writeReview };
37
+ export { addBiblioFavorite, addCvsFavorite, addIlsReview, addIlsTag, addPartnerFavorite, adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, amendTheme, answerRequest, authorization, borrow, cancelIlsHold, cancelRequest, changeIlsPassword, claimRequest, closeLease, closeRequest, closeSupportSession, createDemoUser, createGoal, createLevel, createLicense, createProfile, createReport, createSessionFromCode, createSessionFromCredentials, createSubject, createTheme, deleteAccount, deleteAttachment, deleteLicense, deleteProfile, deleteSession, deleteTheme, dispatchRequest, extendLoan, forceCloseLease, getAddBiblioFavoriteMutationKey, getAddBiblioFavoriteMutationOptions, getAddBiblioFavoriteUrl, getAddCvsFavoriteMutationKey, getAddCvsFavoriteMutationOptions, getAddCvsFavoriteUrl, getAddIlsReviewMutationKey, getAddIlsReviewMutationOptions, getAddIlsReviewUrl, getAddIlsTagMutationKey, getAddIlsTagMutationOptions, getAddIlsTagUrl, getAddPartnerFavoriteMutationKey, getAddPartnerFavoriteMutationOptions, getAddPartnerFavoriteUrl, getAdminCloseRequestMutationKey, getAdminCloseRequestMutationOptions, getAdminCloseRequestUrl, getAmendGoalMutationKey, getAmendGoalMutationOptions, getAmendGoalUrl, getAmendLevelMutationKey, getAmendLevelMutationOptions, getAmendLevelUrl, getAmendPractitionerMutationKey, getAmendPractitionerMutationOptions, getAmendPractitionerUrl, getAmendRequestMutationKey, getAmendRequestMutationOptions, getAmendRequestUrl, getAmendSubjectMutationKey, getAmendSubjectMutationOptions, getAmendSubjectUrl, getAmendThemeMutationKey, getAmendThemeMutationOptions, getAmendThemeUrl, getAnswerRequestMutationKey, getAnswerRequestMutationOptions, getAnswerRequestUrl, getAuthorizationQueryKey, getAuthorizationQueryOptions, getAuthorizationUrl, getBorrowMutationKey, getBorrowMutationOptions, getBorrowUrl, getCancelIlsHoldMutationKey, getCancelIlsHoldMutationOptions, getCancelIlsHoldUrl, getCancelRequestMutationKey, getCancelRequestMutationOptions, getCancelRequestUrl, getChangeIlsPasswordMutationKey, getChangeIlsPasswordMutationOptions, getChangeIlsPasswordUrl, getClaimRequestMutationKey, getClaimRequestMutationOptions, getClaimRequestUrl, getCloseLeaseMutationKey, getCloseLeaseMutationOptions, getCloseLeaseUrl, getCloseRequestMutationKey, getCloseRequestMutationOptions, getCloseRequestUrl, getCloseSupportSessionMutationKey, getCloseSupportSessionMutationOptions, getCloseSupportSessionUrl, getCreateDemoUserMutationKey, getCreateDemoUserMutationOptions, getCreateDemoUserUrl, getCreateGoalMutationKey, getCreateGoalMutationOptions, getCreateGoalUrl, getCreateLevelMutationKey, getCreateLevelMutationOptions, getCreateLevelUrl, getCreateLicenseMutationKey, getCreateLicenseMutationOptions, getCreateLicenseUrl, getCreateProfileMutationKey, getCreateProfileMutationOptions, getCreateProfileUrl, getCreateReportMutationKey, getCreateReportMutationOptions, getCreateReportUrl, getCreateSessionFromCodeMutationKey, getCreateSessionFromCodeMutationOptions, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsMutationKey, getCreateSessionFromCredentialsMutationOptions, getCreateSessionFromCredentialsUrl, getCreateSubjectMutationKey, getCreateSubjectMutationOptions, getCreateSubjectUrl, getCreateThemeMutationKey, getCreateThemeMutationOptions, getCreateThemeUrl, getDeleteAccountMutationKey, getDeleteAccountMutationOptions, getDeleteAccountUrl, getDeleteAttachmentMutationKey, getDeleteAttachmentMutationOptions, getDeleteAttachmentUrl, getDeleteLicenseMutationKey, getDeleteLicenseMutationOptions, getDeleteLicenseUrl, getDeleteProfileMutationKey, getDeleteProfileMutationOptions, getDeleteProfileUrl, getDeleteSessionMutationKey, getDeleteSessionMutationOptions, getDeleteSessionUrl, getDeleteThemeMutationKey, getDeleteThemeMutationOptions, getDeleteThemeUrl, getDispatchRequestMutationKey, getDispatchRequestMutationOptions, getDispatchRequestUrl, getExtendLoanMutationKey, getExtendLoanMutationOptions, getExtendLoanUrl, getForceCloseLeaseMutationKey, getForceCloseLeaseMutationOptions, getForceCloseLeaseUrl, getGetRequestQueryKey, getGetRequestQueryOptions, getGetRequestUrl, getLikeContentMutationKey, getLikeContentMutationOptions, getLikeContentUrl, getListAllRequestsQueryKey, getListAllRequestsQueryOptions, getListAllRequestsUrl, getListBiblioCategoriesQueryKey, getListBiblioCategoriesQueryOptions, getListBiblioCategoriesUrl, getListBiblioFavoritesQueryKey, getListBiblioFavoritesQueryOptions, getListBiblioFavoritesUrl, getListCurrentReadingsQueryKey, getListCurrentReadingsQueryOptions, getListCurrentReadingsUrl, getListCvsFavoritesQueryKey, getListCvsFavoritesQueryOptions, getListCvsFavoritesUrl, getListEditorsQueryKey, getListEditorsQueryOptions, getListEditorsUrl, getListExpiringDocumentsQueryKey, getListExpiringDocumentsQueryOptions, getListExpiringDocumentsUrl, getListFeedbackQueryKey, getListFeedbackQueryOptions, getListFeedbackUrl, getListGoalsQueryKey, getListGoalsQueryOptions, getListGoalsUrl, getListGrantsQueryKey, getListGrantsQueryOptions, getListGrantsUrl, getListHistoryQueryKey, getListHistoryQueryOptions, getListHistoryUrl, getListIlsHoldLocationsQueryKey, getListIlsHoldLocationsQueryOptions, getListIlsHoldLocationsUrl, getListIlsHoldsQueryKey, getListIlsHoldsQueryOptions, getListIlsHoldsUrl, getListIlsLoansQueryKey, getListIlsLoansQueryOptions, getListIlsLoansUrl, getListIlsLocationsQueryKey, getListIlsLocationsQueryOptions, getListIlsLocationsUrl, getListIlsSuggestionCategoriesQueryKey, getListIlsSuggestionCategoriesQueryOptions, getListIlsSuggestionCategoriesUrl, getListIlsSuggestionSourcesQueryKey, getListIlsSuggestionSourcesQueryOptions, getListIlsSuggestionSourcesUrl, getListLevelsQueryKey, getListLevelsQueryOptions, getListLevelsUrl, getListLiveLeasesQueryKey, getListLiveLeasesQueryOptions, getListLiveLeasesUrl, getListLoansQueryKey, getListLoansQueryOptions, getListLoansUrl, getListMediaQueryKey, getListMediaQueryOptions, getListMediaUrl, getListMessagesQueryKey, getListMessagesQueryOptions, getListMessagesUrl, getListMyRequestsQueryKey, getListMyRequestsQueryOptions, getListMyRequestsUrl, getListNotificationsQueryKey, getListNotificationsQueryOptions, getListNotificationsUrl, getListPacksQueryKey, getListPacksQueryOptions, getListPacksUrl, getListPartnerCategoriesQueryKey, getListPartnerCategoriesQueryOptions, getListPartnerCategoriesUrl, getListPartnerFavoritesQueryKey, getListPartnerFavoritesQueryOptions, getListPartnerFavoritesUrl, getListPatronsQueryKey, getListPatronsQueryOptions, getListPatronsUrl, getListPaymentsQueryKey, getListPaymentsQueryOptions, getListPaymentsUrl, getListPractitionerDocumentsQueryKey, getListPractitionerDocumentsQueryOptions, getListPractitionerDocumentsUrl, getListPractitionersQueryKey, getListPractitionersQueryOptions, getListPractitionersUrl, getListPressArticlesQueryKey, getListPressArticlesQueryOptions, getListPressArticlesUrl, getListProfilesQueryKey, getListProfilesQueryOptions, getListProfilesUrl, getListQueueQueryKey, getListQueueQueryOptions, getListQueueUrl, getListReviewsQueryKey, getListReviewsQueryOptions, getListReviewsUrl, getListSelectionsQueryKey, getListSelectionsQueryOptions, getListSelectionsUrl, getListServicesQueryKey, getListServicesQueryOptions, getListServicesUrl, getListSubjectsQueryKey, getListSubjectsQueryOptions, getListSubjectsUrl, getListTenantsQueryKey, getListTenantsQueryOptions, getListTenantsUrl, getListThemesQueryKey, getListThemesQueryOptions, getListThemesUrl, getMintChatTicketMutationKey, getMintChatTicketMutationOptions, getMintChatTicketUrl, getModerateFeedbackMutationKey, getModerateFeedbackMutationOptions, getModerateFeedbackUrl, getModerateReviewMutationKey, getModerateReviewMutationOptions, getModerateReviewUrl, getOpenAtSupplierMutationKey, getOpenAtSupplierMutationOptions, getOpenAtSupplierUrl, getOpenRoomMutationKey, getOpenRoomMutationOptions, getOpenRoomUrl, getOpenSupportSessionMutationKey, getOpenSupportSessionMutationOptions, getOpenSupportSessionUrl, getPlaceIlsHoldMutationKey, getPlaceIlsHoldMutationOptions, getPlaceIlsHoldUrl, getRateDocumentMutationKey, getRateDocumentMutationOptions, getRateDocumentUrl, getRateRequestMutationKey, getRateRequestMutationOptions, getRateRequestUrl, getReadAccountQueryKey, getReadAccountQueryOptions, getReadAccountUrl, getReadCatalogQueryKey, getReadCatalogQueryOptions, getReadCatalogThemeQueryKey, getReadCatalogThemeQueryOptions, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentQueryKey, getReadContentQueryOptions, getReadContentUrl, getReadDocumentQueryKey, getReadDocumentQueryOptions, getReadDocumentUrl, getReadDraftQueryKey, getReadDraftQueryOptions, getReadDraftUrl, getReadEditorQueryKey, getReadEditorQueryOptions, getReadEditorUrl, getReadHomeFeedQueryKey, getReadHomeFeedQueryOptions, getReadHomeFeedUrl, getReadIlsAccountQueryKey, getReadIlsAccountQueryOptions, getReadIlsAccountUrl, getReadIlsHoldableQueryKey, getReadIlsHoldableQueryOptions, getReadIlsHoldableUrl, getReadIlsStatusQueryKey, getReadIlsStatusQueryOptions, getReadIlsStatusUrl, getReadLastPositionQueryKey, getReadLastPositionQueryOptions, getReadLastPositionUrl, getReadLearningPathQueryKey, getReadLearningPathQueryOptions, getReadLearningPathUrl, getReadLicenseQueryKey, getReadLicenseQueryOptions, getReadLicenseUrl, getReadMeQueryKey, getReadMeQueryOptions, getReadMeUrl, getReadMediaQueryKey, getReadMediaQueryOptions, getReadMediaUrl, getReadPackQueryKey, getReadPackQueryOptions, getReadPackUrl, getReadPackageQueryKey, getReadPackageQueryOptions, getReadPackageUrl, getReadPatronLicenseQueryKey, getReadPatronLicenseQueryOptions, getReadPatronLicenseUrl, getReadPatronQueryKey, getReadPatronQueryOptions, getReadPatronUrl, getReadPaymentQueryKey, getReadPaymentQueryOptions, getReadPaymentUrl, getReadPositionQueryKey, getReadPositionQueryOptions, getReadPositionUrl, getReadPreferencesQueryKey, getReadPreferencesQueryOptions, getReadPreferencesUrl, getReadPressArticleQueryKey, getReadPressArticleQueryOptions, getReadPressArticleUrl, getReadPressReviewQueryKey, getReadPressReviewQueryOptions, getReadPressReviewUrl, getReadProfileQueryKey, getReadProfileQueryOptions, getReadProfileUrl, getReadRecommendationsQueryKey, getReadRecommendationsQueryOptions, getReadRecommendationsUrl, getReadRequestQueryKey, getReadRequestQueryOptions, getReadRequestUrl, getReadTenantQueryKey, getReadTenantQueryOptions, getReadTenantUrl, getReadThemeQueryKey, getReadThemeQueryOptions, getReadThemeUrl, getRecordReadingSessionMutationKey, getRecordReadingSessionMutationOptions, getRecordReadingSessionUrl, getRefreshSessionMutationKey, getRefreshSessionMutationOptions, getRefreshSessionUrl, getRemoveBiblioFavoriteMutationKey, getRemoveBiblioFavoriteMutationOptions, getRemoveBiblioFavoriteUrl, getRemoveCvsFavoriteMutationKey, getRemoveCvsFavoriteMutationOptions, getRemoveCvsFavoriteUrl, getRemovePartnerFavoriteMutationKey, getRemovePartnerFavoriteMutationOptions, getRemovePartnerFavoriteUrl, getRenewIlsLoanMutationKey, getRenewIlsLoanMutationOptions, getRenewIlsLoanUrl, getRenewLeaseMutationKey, getRenewLeaseMutationOptions, getRenewLeaseUrl, getReorderThemesMutationKey, getReorderThemesMutationOptions, getReorderThemesUrl, getReplaceCategoryPreferencesMutationKey, getReplaceCategoryPreferencesMutationOptions, getReplaceCategoryPreferencesUrl, getReplaceGrantsMutationKey, getReplaceGrantsMutationOptions, getReplaceGrantsUrl, getRequest, getReturnLoanMutationKey, getReturnLoanMutationOptions, getReturnLoanUrl, getReviewDraftMutationKey, getReviewDraftMutationOptions, getReviewDraftUrl, getSearchDocumentsMutationKey, getSearchDocumentsMutationOptions, getSearchDocumentsUrl, getSearchEverythingQueryKey, getSearchEverythingQueryOptions, getSearchEverythingUrl, getSearchQueryKey, getSearchQueryOptions, getSearchTenantsQueryKey, getSearchTenantsQueryOptions, getSearchTenantsUrl, getSearchUrl, getSendMessageMutationKey, getSendMessageMutationOptions, getSendMessageUrl, getSetLastPositionMutationKey, getSetLastPositionMutationOptions, getSetLastPositionUrl, getSignInToIlsMutationKey, getSignInToIlsMutationOptions, getSignInToIlsUrl, getSignOutOfIlsMutationKey, getSignOutOfIlsMutationOptions, getSignOutOfIlsUrl, getStartPaymentMutationKey, getStartPaymentMutationOptions, getStartPaymentUrl, getStartSessionMutationKey, getStartSessionMutationOptions, getStartSessionUrl, getStreamingDetailsQueryKey, getStreamingDetailsQueryOptions, getStreamingDetailsUrl, getSubmitRequestMutationKey, getSubmitRequestMutationOptions, getSubmitRequestUrl, getTenantDirectoryQueryKey, getTenantDirectoryQueryOptions, getTenantDirectoryUrl, getTriageRequestMutationKey, getTriageRequestMutationOptions, getTriageRequestUrl, getUnlikeContentMutationKey, getUnlikeContentMutationOptions, getUnlikeContentUrl, getUpdateAccountMutationKey, getUpdateAccountMutationOptions, getUpdateAccountUrl, getUpdatePatronMutationKey, getUpdatePatronMutationOptions, getUpdatePatronUrl, getUpdateProfileMutationKey, getUpdateProfileMutationOptions, getUpdateProfileUrl, getUpdateTenantMutationKey, getUpdateTenantMutationOptions, getUpdateTenantUrl, getUploadAttachmentMutationKey, getUploadAttachmentMutationOptions, getUploadAttachmentUrl, getWritePositionMutationKey, getWritePositionMutationOptions, getWritePositionUrl, getWriteReviewMutationKey, getWriteReviewMutationOptions, getWriteReviewUrl, likeContent, listAllRequests, listBiblioCategories, listBiblioFavorites, listCurrentReadings, listCvsFavorites, listEditors, listExpiringDocuments, listFeedback, listGoals, listGrants, listHistory, listIlsHoldLocations, listIlsHolds, listIlsLoans, listIlsLocations, listIlsSuggestionCategories, listIlsSuggestionSources, listLevels, listLiveLeases, listLoans, listMedia, listMessages, listMyRequests, listNotifications, listPacks, listPartnerCategories, listPartnerFavorites, listPatrons, listPayments, listPractitionerDocuments, listPractitioners, listPressArticles, listProfiles, listQueue, listReviews, listSelections, listServices, listSubjects, listTenants, listThemes, mintChatTicket, moderateFeedback, moderateReview, openAtSupplier, openRoom, openSupportSession, placeIlsHold, rateDocument, rateRequest, readAccount, readCatalog, readCatalogTheme, readContent, readDocument, readDraft, readEditor, readHomeFeed, readIlsAccount, readIlsHoldable, readIlsStatus, readLastPosition, readLearningPath, readLicense, readMe, readMedia, readPack, readPackage, readPatron, readPatronLicense, readPayment, readPosition, readPreferences, readPressArticle, readPressReview, readProfile, readRecommendations, readRequest, readTenant, readTheme, recordReadingSession, refreshSession, removeBiblioFavorite, removeCvsFavorite, removePartnerFavorite, renewIlsLoan, renewLease, reorderThemes, replaceCategoryPreferences, replaceGrants, returnLoan, reviewDraft, search, searchDocuments, searchEverything, searchTenants, sendMessage, setLastPosition, signInToIls, signOutOfIls, startPayment, startSession, streamingDetails, submitRequest, tenantDirectory, triageRequest, unlikeContent, updateAccount, updatePatron, updateProfile, updateTenant, uploadAttachment, useAddBiblioFavorite, useAddCvsFavorite, useAddIlsReview, useAddIlsTag, useAddPartnerFavorite, useAdminCloseRequest, useAmendGoal, useAmendLevel, useAmendPractitioner, useAmendRequest, useAmendSubject, useAmendTheme, useAnswerRequest, useAuthorization, useBorrow, useCancelIlsHold, useCancelRequest, useChangeIlsPassword, useClaimRequest, useCloseLease, useCloseRequest, useCloseSupportSession, useCreateDemoUser, useCreateGoal, useCreateLevel, useCreateLicense, useCreateProfile, useCreateReport, useCreateSessionFromCode, useCreateSessionFromCredentials, useCreateSubject, useCreateTheme, useDeleteAccount, useDeleteAttachment, useDeleteLicense, useDeleteProfile, useDeleteSession, useDeleteTheme, useDispatchRequest, useExtendLoan, useForceCloseLease, useGetRequest, useLikeContent, useListAllRequests, useListBiblioCategories, useListBiblioFavorites, useListCurrentReadings, useListCvsFavorites, useListEditors, useListExpiringDocuments, useListFeedback, useListGoals, useListGrants, useListHistory, useListIlsHoldLocations, useListIlsHolds, useListIlsLoans, useListIlsLocations, useListIlsSuggestionCategories, useListIlsSuggestionSources, useListLevels, useListLiveLeases, useListLoans, useListMedia, useListMessages, useListMyRequests, useListNotifications, useListPacks, useListPartnerCategories, useListPartnerFavorites, useListPatrons, useListPayments, useListPractitionerDocuments, useListPractitioners, useListPressArticles, useListProfiles, useListQueue, useListReviews, useListSelections, useListServices, useListSubjects, useListTenants, useListThemes, useMintChatTicket, useModerateFeedback, useModerateReview, useOpenAtSupplier, useOpenRoom, useOpenSupportSession, usePlaceIlsHold, useRateDocument, useRateRequest, useReadAccount, useReadCatalog, useReadCatalogTheme, useReadContent, useReadDocument, useReadDraft, useReadEditor, useReadHomeFeed, useReadIlsAccount, useReadIlsHoldable, useReadIlsStatus, useReadLastPosition, useReadLearningPath, useReadLicense, useReadMe, useReadMedia, useReadPack, useReadPackage, useReadPatron, useReadPatronLicense, useReadPayment, useReadPosition, useReadPreferences, useReadPressArticle, useReadPressReview, useReadProfile, useReadRecommendations, useReadRequest, useReadTenant, useReadTheme, useRecordReadingSession, useRefreshSession, useRemoveBiblioFavorite, useRemoveCvsFavorite, useRemovePartnerFavorite, useRenewIlsLoan, useRenewLease, useReorderThemes, useReplaceCategoryPreferences, useReplaceGrants, useReturnLoan, useReviewDraft, useSearch, useSearchDocuments, useSearchEverything, useSearchTenants, useSendMessage, useSetLastPosition, useSignInToIls, useSignOutOfIls, useStartPayment, useStartSession, useStreamingDetails, useSubmitRequest, useTenantDirectory, useTriageRequest, useUnlikeContent, useUpdateAccount, useUpdatePatron, useUpdateProfile, useUpdateTenant, useUploadAttachment, useWritePosition, useWriteReview, writePosition, writeReview };
@@ -1,6 +1,6 @@
1
1
 
2
- import { Bt as PartnerCategoryListRead, Gn as HTTPExceptionResponse, It as PartnerMediaRead, Lt as PartnerMediaPage, Nn as PartnerProvider, Rt as PartnerFavoriteListRead, _n as ListMediaParams, t as ValidationErrorResponse } from "../index-wL_20vR8.js";
3
- import { a as ErrorType, c as request } from "../client-BDwBZYB0.js";
2
+ import { $t as PartnerCategoryListRead, Jn as PartnerProvider, Xt as PartnerMediaPage, Yt as PartnerMediaRead, Zt as PartnerFavoriteListRead, jn as ListMediaParams, t as ValidationErrorResponse, wr as HTTPExceptionResponse } from "../chunks/index.js";
3
+ import { a as ErrorType, c as request } from "../chunks/client.js";
4
4
  import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
5
5
  //#region src/react/partner-catalogue/partner-catalogue.d.ts
6
6
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as request } from "../client-D3kMOcIr.js";
2
+ import { r as request } from "../chunks/client.js";
3
3
  import { useMutation, useQuery } from "@tanstack/react-query";
4
4
  //#region src/react/partner-catalogue/partner-catalogue.ts
5
5
  /**
@@ -7,7 +7,7 @@ import { useMutation, useQuery } from "@tanstack/react-query";
7
7
  * Do not edit manually.
8
8
  * Mozaik backend
9
9
  * 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.
10
- * OpenAPI spec version: 0.1.0
10
+ * OpenAPI spec version: 0.5.0
11
11
  */
12
12
  const withQueryKey = (query, queryKey) => {
13
13
  const result = { queryKey };
@@ -1 +1 @@
1
- {"version":3,"file":"partner-catalogue.js","names":[],"sources":["../../src/react/partner-catalogue/partner-catalogue.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.1.0\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query';\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult\n} from '@tanstack/react-query';\n\nimport type {\n HTTPExceptionResponse,\n ListMediaParams,\n PartnerCategoryListRead,\n PartnerFavoriteListRead,\n PartnerMediaPage,\n PartnerMediaRead,\n PartnerProvider,\n ValidationErrorResponse\n} from '../../models';\n\nimport { request } from '../../client';\nimport type { ErrorType } from '../../client';\n\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === 'queryKey') continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport const getListPartnerCategoriesUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/categories`\n}\n\n/**\n * The provider's taxonomy, with a count per node for this caller's slice.\n *\n * Counts come from ``partner_category_total`` and are summed across languages,\n * because the menu shows one number and the rollup is keyed per language. A\n * node with no matching rollup row reports ``0`` rather than being hidden: the\n * tree shape is stable, and a branch that vanishes because today's import found\n * nothing in it is harder to reason about than one that reads zero.\n * @summary List Partner Categories\n */\nexport const listPartnerCategories = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<PartnerCategoryListRead> => {\n\n return request<PartnerCategoryListRead>(getListPartnerCategoriesUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListPartnerCategoriesQueryKey = (provider: PartnerProvider,) => {\n return [\n `/partners/${provider}/categories`\n ] as const;\n }\n\n\nexport const getListPartnerCategoriesQueryOptions = <TData = Awaited<ReturnType<typeof listPartnerCategories>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListPartnerCategoriesQueryKey(provider);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listPartnerCategories>>> = ({ signal }) => listPartnerCategories(provider, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListPartnerCategoriesQueryResult = NonNullable<Awaited<ReturnType<typeof listPartnerCategories>>>\nexport type ListPartnerCategoriesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListPartnerCategories<TData = Awaited<ReturnType<typeof listPartnerCategories>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listPartnerCategories>>,\n TError,\n Awaited<ReturnType<typeof listPartnerCategories>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListPartnerCategories<TData = Awaited<ReturnType<typeof listPartnerCategories>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listPartnerCategories>>,\n TError,\n Awaited<ReturnType<typeof listPartnerCategories>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListPartnerCategories<TData = Awaited<ReturnType<typeof listPartnerCategories>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Partner Categories\n */\n\nexport function useListPartnerCategories<TData = Awaited<ReturnType<typeof listPartnerCategories>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListPartnerCategoriesQueryOptions(provider,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getListPartnerFavoritesUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/favorites`\n}\n\n/**\n * This reader's bookmarks, filtered to what they may still see.\n *\n * The filter matters: a title can become adult-only, or leave the plan, between\n * being bookmarked and being listed. The legacy joined favourites to media with\n * no visibility predicate at all.\n * @summary List Partner Favorites\n */\nexport const listPartnerFavorites = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<PartnerFavoriteListRead> => {\n\n return request<PartnerFavoriteListRead>(getListPartnerFavoritesUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListPartnerFavoritesQueryKey = (provider: PartnerProvider,) => {\n return [\n `/partners/${provider}/favorites`\n ] as const;\n }\n\n\nexport const getListPartnerFavoritesQueryOptions = <TData = Awaited<ReturnType<typeof listPartnerFavorites>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListPartnerFavoritesQueryKey(provider);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listPartnerFavorites>>> = ({ signal }) => listPartnerFavorites(provider, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListPartnerFavoritesQueryResult = NonNullable<Awaited<ReturnType<typeof listPartnerFavorites>>>\nexport type ListPartnerFavoritesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListPartnerFavorites<TData = Awaited<ReturnType<typeof listPartnerFavorites>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listPartnerFavorites>>,\n TError,\n Awaited<ReturnType<typeof listPartnerFavorites>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListPartnerFavorites<TData = Awaited<ReturnType<typeof listPartnerFavorites>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listPartnerFavorites>>,\n TError,\n Awaited<ReturnType<typeof listPartnerFavorites>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListPartnerFavorites<TData = Awaited<ReturnType<typeof listPartnerFavorites>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Partner Favorites\n */\n\nexport function useListPartnerFavorites<TData = Awaited<ReturnType<typeof listPartnerFavorites>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListPartnerFavoritesQueryOptions(provider,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getRemovePartnerFavoriteUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/favorites/${mediaId}`\n}\n\n/**\n * Remove a bookmark. Idempotent, and deliberately not visibility-filtered.\n *\n * A reader must be able to unbookmark a title they can no longer see —\n * otherwise a media leaving their plan strands a row they have no way to\n * remove.\n * @summary Remove Partner Favorite\n */\nexport const removePartnerFavorite = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRemovePartnerFavoriteUrl(provider,mediaId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\n\n\nexport const getRemovePartnerFavoriteMutationKey = () => ['removePartnerFavorite'] as const;\n\nexport const getRemovePartnerFavoriteMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof removePartnerFavorite>>, TError,RemovePartnerFavoriteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof removePartnerFavorite>>, TError,RemovePartnerFavoriteMutationVariables, TContext> => {\n\nconst mutationKey = getRemovePartnerFavoriteMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof removePartnerFavorite>>, RemovePartnerFavoriteMutationVariables> = (props) => {\n const {provider,mediaId} = props ?? {};\n\n return removePartnerFavorite(provider,mediaId,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type RemovePartnerFavoriteMutationResult = NonNullable<Awaited<ReturnType<typeof removePartnerFavorite>>>\n\n export type RemovePartnerFavoriteMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type RemovePartnerFavoriteMutationVariables = {provider: PartnerProvider;mediaId: number}\n\n /**\n * @summary Remove Partner Favorite\n */\nexport const useRemovePartnerFavorite = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof removePartnerFavorite>>, TError,RemovePartnerFavoriteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof removePartnerFavorite>>,\n TError,\n RemovePartnerFavoriteMutationVariables,\n TContext\n > => {\n return useMutation(getRemovePartnerFavoriteMutationOptions(options), queryClient);\n }\n export const getAddPartnerFavoriteUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/favorites/${mediaId}`\n}\n\n/**\n * Bookmark a title. Idempotent.\n *\n * ``PUT``/``DELETE`` rather than the legacy's ``POST /toggle-favorite.json``. A\n * toggle is not idempotent, and the legacy's had no uniqueness behind it: two\n * tabs toggling at once left two rows, and un-toggling then removed one of\n * them, so the title stayed bookmarked.\n * @summary Add Partner Favorite\n */\nexport const addPartnerFavorite = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getAddPartnerFavoriteUrl(provider,mediaId),\n {\n ...options,\n method: 'PUT'\n\n\n }\n);}\n\n\n\n\n\nexport const getAddPartnerFavoriteMutationKey = () => ['addPartnerFavorite'] as const;\n\nexport const getAddPartnerFavoriteMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addPartnerFavorite>>, TError,AddPartnerFavoriteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof addPartnerFavorite>>, TError,AddPartnerFavoriteMutationVariables, TContext> => {\n\nconst mutationKey = getAddPartnerFavoriteMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof addPartnerFavorite>>, AddPartnerFavoriteMutationVariables> = (props) => {\n const {provider,mediaId} = props ?? {};\n\n return addPartnerFavorite(provider,mediaId,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AddPartnerFavoriteMutationResult = NonNullable<Awaited<ReturnType<typeof addPartnerFavorite>>>\n\n export type AddPartnerFavoriteMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type AddPartnerFavoriteMutationVariables = {provider: PartnerProvider;mediaId: number}\n\n /**\n * @summary Add Partner Favorite\n */\nexport const useAddPartnerFavorite = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addPartnerFavorite>>, TError,AddPartnerFavoriteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof addPartnerFavorite>>,\n TError,\n AddPartnerFavoriteMutationVariables,\n TContext\n > => {\n return useMutation(getAddPartnerFavoriteMutationOptions(options), queryClient);\n }\n export const getListMediaUrl = (provider: PartnerProvider,\n params?: ListMediaParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/partners/${provider}/media?${stringifiedParams}` : `/partners/${provider}/media`\n}\n\n/**\n * A page of the catalogue.\n *\n * ``q`` ranks through Elasticsearch and then **intersects** with the same\n * visibility subquery as an unfiltered listing — the index knows nothing about\n * plans or ages, so authorisation happens here whatever the index returns. An\n * index that is missing or unreachable yields no candidates, which reads as an\n * empty page rather than an unfiltered one.\n *\n * A search result keeps the index's ranking rather than applying ``order``:\n * re-sorting relevance by publication date discards the only thing the search\n * contributed. That is why ``order`` is ignored when ``q`` is present, not\n * silently combined with it.\n * @summary List Media\n */\nexport const listMedia = async (provider: PartnerProvider,\n params?: ListMediaParams, options?: Parameters<typeof request>[1]): Promise<PartnerMediaPage> => {\n\n return request<PartnerMediaPage>(getListMediaUrl(provider,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListMediaQueryKey = (provider: PartnerProvider,\n params?: ListMediaParams,) => {\n return [\n `/partners/${provider}/media`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getListMediaQueryOptions = <TData = Awaited<ReturnType<typeof listMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider,\n params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListMediaQueryKey(provider,params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listMedia>>> = ({ signal }) => listMedia(provider,params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListMediaQueryResult = NonNullable<Awaited<ReturnType<typeof listMedia>>>\nexport type ListMediaQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n params: undefined | ListMediaParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listMedia>>,\n TError,\n Awaited<ReturnType<typeof listMedia>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listMedia>>,\n TError,\n Awaited<ReturnType<typeof listMedia>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Media\n */\n\nexport function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListMediaQueryOptions(provider,params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getReadMediaUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/media/${mediaId}`\n}\n\n/**\n * One title.\n *\n * A media outside the caller's slice is ``404``, not ``403``: whether an adult\n * title exists is itself something a minor's client should not be able to\n * determine, and the legacy's detail page dereferenced an unknown id straight\n * into a 500.\n * @summary Read Media\n */\nexport const readMedia = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<PartnerMediaRead> => {\n\n return request<PartnerMediaRead>(getReadMediaUrl(provider,mediaId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getReadMediaQueryKey = (provider: PartnerProvider,\n mediaId: number,) => {\n return [\n `/partners/${provider}/media/${mediaId}`\n ] as const;\n }\n\n\nexport const getReadMediaQueryOptions = <TData = Awaited<ReturnType<typeof readMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getReadMediaQueryKey(provider,mediaId);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof readMedia>>> = ({ signal }) => readMedia(provider,mediaId, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined && mediaId !== null && mediaId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ReadMediaQueryResult = NonNullable<Awaited<ReturnType<typeof readMedia>>>\nexport type ReadMediaQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useReadMedia<TData = Awaited<ReturnType<typeof readMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof readMedia>>,\n TError,\n Awaited<ReturnType<typeof readMedia>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadMedia<TData = Awaited<ReturnType<typeof readMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof readMedia>>,\n TError,\n Awaited<ReturnType<typeof readMedia>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadMedia<TData = Awaited<ReturnType<typeof readMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read Media\n */\n\nexport function useReadMedia<TData = Awaited<ReturnType<typeof readMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getReadMediaQueryOptions(provider,mediaId,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\n"],"mappings":";;;;;;;;;;;AA6CA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;AAEA,MAAa,+BAA+B,aAA+B;CAKzE,OAAO,aAAa,SAAS;AAC/B;;;;;;;;;;;AAYA,MAAa,wBAAwB,OAAO,UAA2B,YAA8E;CAEnJ,OAAO,QAAiC,4BAA4B,QAAQ,GAC5E;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAMF,MAAa,oCAAoC,aAA+B;CAC5E,OAAO,CACP,aAAa,SAAS,YACtB;AACA;AAGJ,MAAa,wCAAwK,UAA2B,YAC3M;CAEL,MAAM,EAAC,OAAO,cAAc,SAAS,mBAAkB,WAAW,CAAC;CAEjE,MAAM,WAAY,cAAc,YAAY,iCAAiC,QAAQ;CAInF,MAAM,WAA6E,EAAE,aAAa,sBAAsB,UAAU;EAAE;EAAQ,GAAG;CAAe,CAAC;CAMhK,OAAQ;EAAE;EAAU;EAAS,SAAS,aAAa,QAAQ,aAAa,KAAA;EAAW,GAAG;CAAY;AACrG;;;;AAkCA,SAAgB,yBACf,UAA2B,SACzB,aACiF;CAElF,MAAM,eAAe,qCA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,QAAQ;CAGV,CACF;AAAE;AAMF,MAAa,wBAAwB,UACjC,YAAqB;CACrB,OAAO,CACP,aAAa,SAAS,SAAS,SAC/B;AACA;AAGJ,MAAa,4BAAgJ,UACzJ,SAAiB,YAChB;CAEL,MAAM,EAAC,OAAO,cAAc,SAAS,mBAAkB,WAAW,CAAC;CAEjE,MAAM,WAAY,cAAc,YAAY,qBAAqB,UAAS,OAAO;CAI/E,MAAM,WAAiE,EAAE,aAAa,UAAU,UAAS,SAAS;EAAE;EAAQ,GAAG;CAAe,CAAC;CAMhJ,OAAQ;EAAE;EAAU;EAAS,SAAS,aAAa,QAAQ,aAAa,KAAA,KAAa,YAAY,QAAQ,YAAY,KAAA;EAAW,GAAG;CAAY;AAClJ;;;;AAqCA,SAAgB,aACf,UACG,SAAiB,SAClB,aACiF;CAElF,MAAM,eAAe,yBAAyB,UAAS,SAAQ,OAAO;CAEtE,MAAM,QAAQ,SAAS,cAAc,WAAW;CAEhD,OAAO,aAAa,OAAO,aAAa,QAAQ;AAClD"}
1
+ {"version":3,"file":"partner-catalogue.js","names":[],"sources":["../../src/react/partner-catalogue/partner-catalogue.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.5.0\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query';\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult\n} from '@tanstack/react-query';\n\nimport type {\n HTTPExceptionResponse,\n ListMediaParams,\n PartnerCategoryListRead,\n PartnerFavoriteListRead,\n PartnerMediaPage,\n PartnerMediaRead,\n PartnerProvider,\n ValidationErrorResponse\n} from '../../models';\n\nimport { request } from '../../client';\nimport type { ErrorType } from '../../client';\n\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === 'queryKey') continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport const getListPartnerCategoriesUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/categories`\n}\n\n/**\n * The provider's taxonomy, with a count per node for this caller's slice.\n *\n * Counts come from ``partner_category_total`` and are summed across languages,\n * because the menu shows one number and the rollup is keyed per language. A\n * node with no matching rollup row reports ``0`` rather than being hidden: the\n * tree shape is stable, and a branch that vanishes because today's import found\n * nothing in it is harder to reason about than one that reads zero.\n * @summary List Partner Categories\n */\nexport const listPartnerCategories = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<PartnerCategoryListRead> => {\n\n return request<PartnerCategoryListRead>(getListPartnerCategoriesUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListPartnerCategoriesQueryKey = (provider: PartnerProvider,) => {\n return [\n `/partners/${provider}/categories`\n ] as const;\n }\n\n\nexport const getListPartnerCategoriesQueryOptions = <TData = Awaited<ReturnType<typeof listPartnerCategories>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListPartnerCategoriesQueryKey(provider);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listPartnerCategories>>> = ({ signal }) => listPartnerCategories(provider, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListPartnerCategoriesQueryResult = NonNullable<Awaited<ReturnType<typeof listPartnerCategories>>>\nexport type ListPartnerCategoriesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListPartnerCategories<TData = Awaited<ReturnType<typeof listPartnerCategories>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listPartnerCategories>>,\n TError,\n Awaited<ReturnType<typeof listPartnerCategories>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListPartnerCategories<TData = Awaited<ReturnType<typeof listPartnerCategories>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listPartnerCategories>>,\n TError,\n Awaited<ReturnType<typeof listPartnerCategories>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListPartnerCategories<TData = Awaited<ReturnType<typeof listPartnerCategories>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Partner Categories\n */\n\nexport function useListPartnerCategories<TData = Awaited<ReturnType<typeof listPartnerCategories>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerCategories>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListPartnerCategoriesQueryOptions(provider,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getListPartnerFavoritesUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/favorites`\n}\n\n/**\n * This reader's bookmarks, filtered to what they may still see.\n *\n * The filter matters: a title can become adult-only, or leave the plan, between\n * being bookmarked and being listed. The legacy joined favourites to media with\n * no visibility predicate at all.\n * @summary List Partner Favorites\n */\nexport const listPartnerFavorites = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<PartnerFavoriteListRead> => {\n\n return request<PartnerFavoriteListRead>(getListPartnerFavoritesUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListPartnerFavoritesQueryKey = (provider: PartnerProvider,) => {\n return [\n `/partners/${provider}/favorites`\n ] as const;\n }\n\n\nexport const getListPartnerFavoritesQueryOptions = <TData = Awaited<ReturnType<typeof listPartnerFavorites>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListPartnerFavoritesQueryKey(provider);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listPartnerFavorites>>> = ({ signal }) => listPartnerFavorites(provider, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListPartnerFavoritesQueryResult = NonNullable<Awaited<ReturnType<typeof listPartnerFavorites>>>\nexport type ListPartnerFavoritesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListPartnerFavorites<TData = Awaited<ReturnType<typeof listPartnerFavorites>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listPartnerFavorites>>,\n TError,\n Awaited<ReturnType<typeof listPartnerFavorites>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListPartnerFavorites<TData = Awaited<ReturnType<typeof listPartnerFavorites>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listPartnerFavorites>>,\n TError,\n Awaited<ReturnType<typeof listPartnerFavorites>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListPartnerFavorites<TData = Awaited<ReturnType<typeof listPartnerFavorites>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Partner Favorites\n */\n\nexport function useListPartnerFavorites<TData = Awaited<ReturnType<typeof listPartnerFavorites>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listPartnerFavorites>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListPartnerFavoritesQueryOptions(provider,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getRemovePartnerFavoriteUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/favorites/${mediaId}`\n}\n\n/**\n * Remove a bookmark. Idempotent, and deliberately not visibility-filtered.\n *\n * A reader must be able to unbookmark a title they can no longer see —\n * otherwise a media leaving their plan strands a row they have no way to\n * remove.\n * @summary Remove Partner Favorite\n */\nexport const removePartnerFavorite = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getRemovePartnerFavoriteUrl(provider,mediaId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\n\n\nexport const getRemovePartnerFavoriteMutationKey = () => ['removePartnerFavorite'] as const;\n\nexport const getRemovePartnerFavoriteMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof removePartnerFavorite>>, TError,RemovePartnerFavoriteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof removePartnerFavorite>>, TError,RemovePartnerFavoriteMutationVariables, TContext> => {\n\nconst mutationKey = getRemovePartnerFavoriteMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof removePartnerFavorite>>, RemovePartnerFavoriteMutationVariables> = (props) => {\n const {provider,mediaId} = props ?? {};\n\n return removePartnerFavorite(provider,mediaId,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type RemovePartnerFavoriteMutationResult = NonNullable<Awaited<ReturnType<typeof removePartnerFavorite>>>\n\n export type RemovePartnerFavoriteMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type RemovePartnerFavoriteMutationVariables = {provider: PartnerProvider;mediaId: number}\n\n /**\n * @summary Remove Partner Favorite\n */\nexport const useRemovePartnerFavorite = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof removePartnerFavorite>>, TError,RemovePartnerFavoriteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof removePartnerFavorite>>,\n TError,\n RemovePartnerFavoriteMutationVariables,\n TContext\n > => {\n return useMutation(getRemovePartnerFavoriteMutationOptions(options), queryClient);\n }\n export const getAddPartnerFavoriteUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/favorites/${mediaId}`\n}\n\n/**\n * Bookmark a title. Idempotent.\n *\n * ``PUT``/``DELETE`` rather than the legacy's ``POST /toggle-favorite.json``. A\n * toggle is not idempotent, and the legacy's had no uniqueness behind it: two\n * tabs toggling at once left two rows, and un-toggling then removed one of\n * them, so the title stayed bookmarked.\n * @summary Add Partner Favorite\n */\nexport const addPartnerFavorite = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getAddPartnerFavoriteUrl(provider,mediaId),\n {\n ...options,\n method: 'PUT'\n\n\n }\n);}\n\n\n\n\n\nexport const getAddPartnerFavoriteMutationKey = () => ['addPartnerFavorite'] as const;\n\nexport const getAddPartnerFavoriteMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addPartnerFavorite>>, TError,AddPartnerFavoriteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof addPartnerFavorite>>, TError,AddPartnerFavoriteMutationVariables, TContext> => {\n\nconst mutationKey = getAddPartnerFavoriteMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof addPartnerFavorite>>, AddPartnerFavoriteMutationVariables> = (props) => {\n const {provider,mediaId} = props ?? {};\n\n return addPartnerFavorite(provider,mediaId,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AddPartnerFavoriteMutationResult = NonNullable<Awaited<ReturnType<typeof addPartnerFavorite>>>\n\n export type AddPartnerFavoriteMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type AddPartnerFavoriteMutationVariables = {provider: PartnerProvider;mediaId: number}\n\n /**\n * @summary Add Partner Favorite\n */\nexport const useAddPartnerFavorite = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addPartnerFavorite>>, TError,AddPartnerFavoriteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof addPartnerFavorite>>,\n TError,\n AddPartnerFavoriteMutationVariables,\n TContext\n > => {\n return useMutation(getAddPartnerFavoriteMutationOptions(options), queryClient);\n }\n export const getListMediaUrl = (provider: PartnerProvider,\n params?: ListMediaParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/partners/${provider}/media?${stringifiedParams}` : `/partners/${provider}/media`\n}\n\n/**\n * A page of the catalogue.\n *\n * ``q`` ranks through Elasticsearch and then **intersects** with the same\n * visibility subquery as an unfiltered listing — the index knows nothing about\n * plans or ages, so authorisation happens here whatever the index returns. An\n * index that is missing or unreachable yields no candidates, which reads as an\n * empty page rather than an unfiltered one.\n *\n * A search result keeps the index's ranking rather than applying ``order``:\n * re-sorting relevance by publication date discards the only thing the search\n * contributed. That is why ``order`` is ignored when ``q`` is present, not\n * silently combined with it.\n * @summary List Media\n */\nexport const listMedia = async (provider: PartnerProvider,\n params?: ListMediaParams, options?: Parameters<typeof request>[1]): Promise<PartnerMediaPage> => {\n\n return request<PartnerMediaPage>(getListMediaUrl(provider,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListMediaQueryKey = (provider: PartnerProvider,\n params?: ListMediaParams,) => {\n return [\n `/partners/${provider}/media`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getListMediaQueryOptions = <TData = Awaited<ReturnType<typeof listMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider,\n params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListMediaQueryKey(provider,params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listMedia>>> = ({ signal }) => listMedia(provider,params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListMediaQueryResult = NonNullable<Awaited<ReturnType<typeof listMedia>>>\nexport type ListMediaQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n params: undefined | ListMediaParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listMedia>>,\n TError,\n Awaited<ReturnType<typeof listMedia>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listMedia>>,\n TError,\n Awaited<ReturnType<typeof listMedia>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Media\n */\n\nexport function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListMediaQueryOptions(provider,params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getReadMediaUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/media/${mediaId}`\n}\n\n/**\n * One title.\n *\n * A media outside the caller's slice is ``404``, not ``403``: whether an adult\n * title exists is itself something a minor's client should not be able to\n * determine, and the legacy's detail page dereferenced an unknown id straight\n * into a 500.\n * @summary Read Media\n */\nexport const readMedia = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<PartnerMediaRead> => {\n\n return request<PartnerMediaRead>(getReadMediaUrl(provider,mediaId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getReadMediaQueryKey = (provider: PartnerProvider,\n mediaId: number,) => {\n return [\n `/partners/${provider}/media/${mediaId}`\n ] as const;\n }\n\n\nexport const getReadMediaQueryOptions = <TData = Awaited<ReturnType<typeof readMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getReadMediaQueryKey(provider,mediaId);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof readMedia>>> = ({ signal }) => readMedia(provider,mediaId, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined && mediaId !== null && mediaId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ReadMediaQueryResult = NonNullable<Awaited<ReturnType<typeof readMedia>>>\nexport type ReadMediaQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useReadMedia<TData = Awaited<ReturnType<typeof readMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof readMedia>>,\n TError,\n Awaited<ReturnType<typeof readMedia>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadMedia<TData = Awaited<ReturnType<typeof readMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof readMedia>>,\n TError,\n Awaited<ReturnType<typeof readMedia>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadMedia<TData = Awaited<ReturnType<typeof readMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read Media\n */\n\nexport function useReadMedia<TData = Awaited<ReturnType<typeof readMedia>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readMedia>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getReadMediaQueryOptions(provider,mediaId,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\n"],"mappings":";;;;;;;;;;;AA6CA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;AAEA,MAAa,+BAA+B,aAA+B;CAKzE,OAAO,aAAa,SAAS;AAC/B;;;;;;;;;;;AAYA,MAAa,wBAAwB,OAAO,UAA2B,YA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Tr as CurrentReadingListRead, ct as ReaderPackageRead, it as ReadingPositionWrite, ot as ReadingPositionRead, t as ValidationErrorResponse, tt as ReadPackageParams } from "../index-wL_20vR8.js";
3
- import { a as ErrorType, c as request, n as BodyType } from "../client-BDwBZYB0.js";
2
+ import { Jn as PartnerProvider, ai as CurrentReadingListRead, dt as ReadingPositionRead, lt as ReadingPositionWrite, mt as ReaderPackageRead, ot as ReadPackageParams, t as ValidationErrorResponse, wr as HTTPExceptionResponse } from "../chunks/index.js";
3
+ import { a as ErrorType, c as request, n as BodyType } from "../chunks/client.js";
4
4
  import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
5
5
  //#region src/react/partner-reader/partner-reader.d.ts
6
6
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as request } from "../client-D3kMOcIr.js";
2
+ import { r as request } from "../chunks/client.js";
3
3
  import { useMutation, useQuery } from "@tanstack/react-query";
4
4
  //#region src/react/partner-reader/partner-reader.ts
5
5
  /**
@@ -7,7 +7,7 @@ import { useMutation, useQuery } from "@tanstack/react-query";
7
7
  * Do not edit manually.
8
8
  * Mozaik backend
9
9
  * 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.
10
- * OpenAPI spec version: 0.1.0
10
+ * OpenAPI spec version: 0.5.0
11
11
  */
12
12
  const withQueryKey = (query, queryKey) => {
13
13
  const result = { queryKey };
@@ -1 +1 @@
1
- {"version":3,"file":"partner-reader.js","names":[],"sources":["../../src/react/partner-reader/partner-reader.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.1.0\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query';\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult\n} from '@tanstack/react-query';\n\nimport type {\n CurrentReadingListRead,\n HTTPExceptionResponse,\n PartnerProvider,\n ReadPackageParams,\n ReaderPackageRead,\n ReadingPositionRead,\n ReadingPositionWrite,\n ValidationErrorResponse\n} from '../../models';\n\nimport { request } from '../../client';\nimport type { ErrorType , BodyType } from '../../client';\n\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === 'queryKey') continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport const getReadPackageUrl = (provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/partners/${provider}/media/${mediaId}/package?${stringifiedParams}` : `/partners/${provider}/media/${mediaId}/package`\n}\n\n/**\n * Where to fetch the content itself.\n *\n * The returned URL is a short-lived DRM-wrapped credential. It is not cached\n * here and should not be stored by the client.\n *\n * Opens a consumption lease, so the read appears in the ledger and counts\n * against the establishment's live seats like any other. Its id comes back in\n * ``lease``: keep it alive with ``PUT /consumption/{eventId}`` and drop it with\n * ``DELETE`` when the reader closes. A client that does neither is not broken\n * — the reaper closes the lease about a minute after the last heartbeat — but\n * every such read is a seat held past the end of it.\n *\n * Re-opening the same title returns the lease already held rather than a\n * second one, so a page reload does not leak a seat.\n * @summary Read Package\n */\nexport const readPackage = async (provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams, options?: Parameters<typeof request>[1]): Promise<ReaderPackageRead> => {\n\n return request<ReaderPackageRead>(getReadPackageUrl(provider,mediaId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getReadPackageQueryKey = (provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams,) => {\n return [\n `/partners/${provider}/media/${mediaId}/package`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getReadPackageQueryOptions = <TData = Awaited<ReturnType<typeof readPackage>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getReadPackageQueryKey(provider,mediaId,params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof readPackage>>> = ({ signal }) => readPackage(provider,mediaId,params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined && mediaId !== null && mediaId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ReadPackageQueryResult = NonNullable<Awaited<ReturnType<typeof readPackage>>>\nexport type ReadPackageQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useReadPackage<TData = Awaited<ReturnType<typeof readPackage>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number,\n params: undefined | ReadPackageParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof readPackage>>,\n TError,\n Awaited<ReturnType<typeof readPackage>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadPackage<TData = Awaited<ReturnType<typeof readPackage>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof readPackage>>,\n TError,\n Awaited<ReturnType<typeof readPackage>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadPackage<TData = Awaited<ReturnType<typeof readPackage>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read Package\n */\n\nexport function useReadPackage<TData = Awaited<ReturnType<typeof readPackage>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getReadPackageQueryOptions(provider,mediaId,params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getReadPositionUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/media/${mediaId}/position`\n}\n\n/**\n * Where this reader last was, according to the partner.\n *\n * ``404`` when the partner holds no position — a book never opened has no\n * place to return to, and reporting zero would make a client jump a reader who\n * *is* mid-book back to the start if the call ever failed soft.\n * @summary Read Position\n */\nexport const readPosition = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<ReadingPositionRead> => {\n\n return request<ReadingPositionRead>(getReadPositionUrl(provider,mediaId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getReadPositionQueryKey = (provider: PartnerProvider,\n mediaId: number,) => {\n return [\n `/partners/${provider}/media/${mediaId}/position`\n ] as const;\n }\n\n\nexport const getReadPositionQueryOptions = <TData = Awaited<ReturnType<typeof readPosition>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getReadPositionQueryKey(provider,mediaId);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof readPosition>>> = ({ signal }) => readPosition(provider,mediaId, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined && mediaId !== null && mediaId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ReadPositionQueryResult = NonNullable<Awaited<ReturnType<typeof readPosition>>>\nexport type ReadPositionQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useReadPosition<TData = Awaited<ReturnType<typeof readPosition>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof readPosition>>,\n TError,\n Awaited<ReturnType<typeof readPosition>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadPosition<TData = Awaited<ReturnType<typeof readPosition>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof readPosition>>,\n TError,\n Awaited<ReturnType<typeof readPosition>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadPosition<TData = Awaited<ReturnType<typeof readPosition>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read Position\n */\n\nexport function useReadPosition<TData = Awaited<ReturnType<typeof readPosition>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getReadPositionQueryOptions(provider,mediaId,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getWritePositionUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/media/${mediaId}/position`\n}\n\n/**\n * Record progress, and report the partner's own metering alongside it.\n *\n * ``usage_blocks`` is forwarded first when present, because the legacy did and\n * the partner treats the two as one act: metering after a position update\n * records consumption against a page the reader has already left.\n * @summary Write Position\n */\nexport const writePosition = async (provider: PartnerProvider,\n mediaId: number,\n readingPositionWrite: ReadingPositionWrite, options?: Parameters<typeof request>[1]): Promise<ReadingPositionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<ReadingPositionRead>(getWritePositionUrl(provider,mediaId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(readingPositionWrite)\n }\n);}\n\n\n\n\n\nexport const getWritePositionMutationKey = () => ['writePosition'] as const;\n\nexport const getWritePositionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof writePosition>>, TError,WritePositionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof writePosition>>, TError,WritePositionMutationVariables, TContext> => {\n\nconst mutationKey = getWritePositionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof writePosition>>, WritePositionMutationVariables> = (props) => {\n const {provider,mediaId,data} = props ?? {};\n\n return writePosition(provider,mediaId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type WritePositionMutationResult = NonNullable<Awaited<ReturnType<typeof writePosition>>>\n export type WritePositionMutationBody = BodyType<ReadingPositionWrite>\n export type WritePositionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type WritePositionMutationVariables = {provider: PartnerProvider;mediaId: number;data: BodyType<ReadingPositionWrite>}\n\n /**\n * @summary Write Position\n */\nexport const useWritePosition = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof writePosition>>, TError,WritePositionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof writePosition>>,\n TError,\n WritePositionMutationVariables,\n TContext\n > => {\n return useMutation(getWritePositionMutationOptions(options), queryClient);\n }\n export const getListCurrentReadingsUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/readings`\n}\n\n/**\n * The partner's own \"continue reading\" list, joined back to our catalogue.\n *\n * Entries the partner knows and our catalogue does not are dropped rather than\n * surfaced with a null id: the import runs nightly and the partner's list is\n * live, so a title added today is genuinely not browsable here yet, and a card\n * that cannot be opened is worse than one that is absent.\n * @summary List Current Readings\n */\nexport const listCurrentReadings = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<CurrentReadingListRead> => {\n\n return request<CurrentReadingListRead>(getListCurrentReadingsUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListCurrentReadingsQueryKey = (provider: PartnerProvider,) => {\n return [\n `/partners/${provider}/readings`\n ] as const;\n }\n\n\nexport const getListCurrentReadingsQueryOptions = <TData = Awaited<ReturnType<typeof listCurrentReadings>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListCurrentReadingsQueryKey(provider);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listCurrentReadings>>> = ({ signal }) => listCurrentReadings(provider, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListCurrentReadingsQueryResult = NonNullable<Awaited<ReturnType<typeof listCurrentReadings>>>\nexport type ListCurrentReadingsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListCurrentReadings<TData = Awaited<ReturnType<typeof listCurrentReadings>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listCurrentReadings>>,\n TError,\n Awaited<ReturnType<typeof listCurrentReadings>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListCurrentReadings<TData = Awaited<ReturnType<typeof listCurrentReadings>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listCurrentReadings>>,\n TError,\n Awaited<ReturnType<typeof listCurrentReadings>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListCurrentReadings<TData = Awaited<ReturnType<typeof listCurrentReadings>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Current Readings\n */\n\nexport function useListCurrentReadings<TData = Awaited<ReturnType<typeof listCurrentReadings>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListCurrentReadingsQueryOptions(provider,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\n"],"mappings":";;;;;;;;;;;AA6CA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,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C,0BAA0B,QAAQ,GACzE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAMF,MAAa,kCAAkC,aAA+B;CAC1E,OAAO,CACP,aAAa,SAAS,UACtB;AACA;AAGJ,MAAa,sCAAoK,UAA2B,YACvM;CAEL,MAAM,EAAC,OAAO,cAAc,SAAS,mBAAkB,WAAW,CAAC;CAEjE,MAAM,WAAY,cAAc,YAAY,+BAA+B,QAAQ;CAIjF,MAAM,WAA2E,EAAE,aAAa,oBAAoB,UAAU;EAAE;EAAQ,GAAG;CAAe,CAAC;CAM5J,OAAQ;EAAE;EAAU;EAAS,SAAS,aAAa,QAAQ,aAAa,KAAA;EAAW,GAAG;CAAY;AACrG;;;;AAkCA,SAAgB,uBACf,UAA2B,SACzB,aACiF;CAElF,MAAM,eAAe,mCAAmC,UAAS,OAAO;CAExE,MAAM,QAAQ,SAAS,cAAc,WAAW;CAEhD,OAAO,aAAa,OAAO,aAAa,QAAQ;AAClD"}
1
+ {"version":3,"file":"partner-reader.js","names":[],"sources":["../../src/react/partner-reader/partner-reader.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.5.0\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query';\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult\n} from '@tanstack/react-query';\n\nimport type {\n CurrentReadingListRead,\n HTTPExceptionResponse,\n PartnerProvider,\n ReadPackageParams,\n ReaderPackageRead,\n ReadingPositionRead,\n ReadingPositionWrite,\n ValidationErrorResponse\n} from '../../models';\n\nimport { request } from '../../client';\nimport type { ErrorType , BodyType } from '../../client';\n\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === 'queryKey') continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport const getReadPackageUrl = (provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/partners/${provider}/media/${mediaId}/package?${stringifiedParams}` : `/partners/${provider}/media/${mediaId}/package`\n}\n\n/**\n * Where to fetch the content itself.\n *\n * The returned URL is a short-lived DRM-wrapped credential. It is not cached\n * here and should not be stored by the client.\n *\n * Opens a consumption lease, so the read appears in the ledger and counts\n * against the establishment's live seats like any other. Its id comes back in\n * ``lease``: keep it alive with ``PUT /consumption/{eventId}`` and drop it with\n * ``DELETE`` when the reader closes. A client that does neither is not broken\n * — the reaper closes the lease about a minute after the last heartbeat — but\n * every such read is a seat held past the end of it.\n *\n * Re-opening the same title returns the lease already held rather than a\n * second one, so a page reload does not leak a seat.\n * @summary Read Package\n */\nexport const readPackage = async (provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams, options?: Parameters<typeof request>[1]): Promise<ReaderPackageRead> => {\n\n return request<ReaderPackageRead>(getReadPackageUrl(provider,mediaId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getReadPackageQueryKey = (provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams,) => {\n return [\n `/partners/${provider}/media/${mediaId}/package`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getReadPackageQueryOptions = <TData = Awaited<ReturnType<typeof readPackage>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getReadPackageQueryKey(provider,mediaId,params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof readPackage>>> = ({ signal }) => readPackage(provider,mediaId,params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined && mediaId !== null && mediaId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ReadPackageQueryResult = NonNullable<Awaited<ReturnType<typeof readPackage>>>\nexport type ReadPackageQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useReadPackage<TData = Awaited<ReturnType<typeof readPackage>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number,\n params: undefined | ReadPackageParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof readPackage>>,\n TError,\n Awaited<ReturnType<typeof readPackage>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadPackage<TData = Awaited<ReturnType<typeof readPackage>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof readPackage>>,\n TError,\n Awaited<ReturnType<typeof readPackage>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadPackage<TData = Awaited<ReturnType<typeof readPackage>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read Package\n */\n\nexport function useReadPackage<TData = Awaited<ReturnType<typeof readPackage>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number,\n params?: ReadPackageParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPackage>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getReadPackageQueryOptions(provider,mediaId,params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getReadPositionUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/media/${mediaId}/position`\n}\n\n/**\n * Where this reader last was, according to the partner.\n *\n * ``404`` when the partner holds no position — a book never opened has no\n * place to return to, and reporting zero would make a client jump a reader who\n * *is* mid-book back to the start if the call ever failed soft.\n * @summary Read Position\n */\nexport const readPosition = async (provider: PartnerProvider,\n mediaId: number, options?: Parameters<typeof request>[1]): Promise<ReadingPositionRead> => {\n\n return request<ReadingPositionRead>(getReadPositionUrl(provider,mediaId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getReadPositionQueryKey = (provider: PartnerProvider,\n mediaId: number,) => {\n return [\n `/partners/${provider}/media/${mediaId}/position`\n ] as const;\n }\n\n\nexport const getReadPositionQueryOptions = <TData = Awaited<ReturnType<typeof readPosition>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getReadPositionQueryKey(provider,mediaId);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof readPosition>>> = ({ signal }) => readPosition(provider,mediaId, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined && mediaId !== null && mediaId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ReadPositionQueryResult = NonNullable<Awaited<ReturnType<typeof readPosition>>>\nexport type ReadPositionQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useReadPosition<TData = Awaited<ReturnType<typeof readPosition>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof readPosition>>,\n TError,\n Awaited<ReturnType<typeof readPosition>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadPosition<TData = Awaited<ReturnType<typeof readPosition>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof readPosition>>,\n TError,\n Awaited<ReturnType<typeof readPosition>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadPosition<TData = Awaited<ReturnType<typeof readPosition>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read Position\n */\n\nexport function useReadPosition<TData = Awaited<ReturnType<typeof readPosition>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider,\n mediaId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readPosition>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getReadPositionQueryOptions(provider,mediaId,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getWritePositionUrl = (provider: PartnerProvider,\n mediaId: number,) => {\n\n\n\n\n return `/partners/${provider}/media/${mediaId}/position`\n}\n\n/**\n * Record progress, and report the partner's own metering alongside it.\n *\n * ``usage_blocks`` is forwarded first when present, because the legacy did and\n * the partner treats the two as one act: metering after a position update\n * records consumption against a page the reader has already left.\n * @summary Write Position\n */\nexport const writePosition = async (provider: PartnerProvider,\n mediaId: number,\n readingPositionWrite: ReadingPositionWrite, options?: Parameters<typeof request>[1]): Promise<ReadingPositionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<ReadingPositionRead>(getWritePositionUrl(provider,mediaId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(readingPositionWrite)\n }\n);}\n\n\n\n\n\nexport const getWritePositionMutationKey = () => ['writePosition'] as const;\n\nexport const getWritePositionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof writePosition>>, TError,WritePositionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof writePosition>>, TError,WritePositionMutationVariables, TContext> => {\n\nconst mutationKey = getWritePositionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof writePosition>>, WritePositionMutationVariables> = (props) => {\n const {provider,mediaId,data} = props ?? {};\n\n return writePosition(provider,mediaId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type WritePositionMutationResult = NonNullable<Awaited<ReturnType<typeof writePosition>>>\n export type WritePositionMutationBody = BodyType<ReadingPositionWrite>\n export type WritePositionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type WritePositionMutationVariables = {provider: PartnerProvider;mediaId: number;data: BodyType<ReadingPositionWrite>}\n\n /**\n * @summary Write Position\n */\nexport const useWritePosition = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof writePosition>>, TError,WritePositionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof writePosition>>,\n TError,\n WritePositionMutationVariables,\n TContext\n > => {\n return useMutation(getWritePositionMutationOptions(options), queryClient);\n }\n export const getListCurrentReadingsUrl = (provider: PartnerProvider,) => {\n\n\n\n\n return `/partners/${provider}/readings`\n}\n\n/**\n * The partner's own \"continue reading\" list, joined back to our catalogue.\n *\n * Entries the partner knows and our catalogue does not are dropped rather than\n * surfaced with a null id: the import runs nightly and the partner's list is\n * live, so a title added today is genuinely not browsable here yet, and a card\n * that cannot be opened is worse than one that is absent.\n * @summary List Current Readings\n */\nexport const listCurrentReadings = async (provider: PartnerProvider, options?: Parameters<typeof request>[1]): Promise<CurrentReadingListRead> => {\n\n return request<CurrentReadingListRead>(getListCurrentReadingsUrl(provider),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListCurrentReadingsQueryKey = (provider: PartnerProvider,) => {\n return [\n `/partners/${provider}/readings`\n ] as const;\n }\n\n\nexport const getListCurrentReadingsQueryOptions = <TData = Awaited<ReturnType<typeof listCurrentReadings>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListCurrentReadingsQueryKey(provider);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listCurrentReadings>>> = ({ signal }) => listCurrentReadings(provider, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: provider !== null && provider !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListCurrentReadingsQueryResult = NonNullable<Awaited<ReturnType<typeof listCurrentReadings>>>\nexport type ListCurrentReadingsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListCurrentReadings<TData = Awaited<ReturnType<typeof listCurrentReadings>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listCurrentReadings>>,\n TError,\n Awaited<ReturnType<typeof listCurrentReadings>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListCurrentReadings<TData = Awaited<ReturnType<typeof listCurrentReadings>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listCurrentReadings>>,\n TError,\n Awaited<ReturnType<typeof listCurrentReadings>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListCurrentReadings<TData = Awaited<ReturnType<typeof listCurrentReadings>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Current Readings\n */\n\nexport function useListCurrentReadings<TData = Awaited<ReturnType<typeof listCurrentReadings>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n provider: PartnerProvider, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCurrentReadings>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListCurrentReadingsQueryOptions(provider,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\n"],"mappings":";;;;;;;;;;;AA6CA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;AAEA,MAAa,qBAAqB,UAC9B,SACA,WAAgC;CAClC,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM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ACf,UAA2B,SACzB,aACiF;CAElF,MAAM,eAAe,mCAAmC,UAAS,OAAO;CAExE,MAAM,QAAQ,SAAS,cAAc,WAAW;CAEhD,OAAO,aAAa,OAAO,aAAa,QAAQ;AAClD"}
@@ -1,6 +1,6 @@
1
1
 
2
- import { Gn as HTTPExceptionResponse, gt as ProfileCreateWrite, ht as ProfileRead, mt as ProfileListRead, pt as ProfileUpdateWrite, t as ValidationErrorResponse } from "../index-wL_20vR8.js";
3
- import { a as ErrorType, c as request, n as BodyType } from "../client-BDwBZYB0.js";
2
+ import { St as ProfileCreateWrite, bt as ProfileListRead, t as ValidationErrorResponse, wr as HTTPExceptionResponse, xt as ProfileRead, yt as ProfileUpdateWrite } from "../chunks/index.js";
3
+ import { a as ErrorType, c as request, n as BodyType } from "../chunks/client.js";
4
4
  import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
5
5
  //#region src/react/profiles/profiles.d.ts
6
6
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as request } from "../client-D3kMOcIr.js";
2
+ import { r as request } from "../chunks/client.js";
3
3
  import { useMutation, useQuery } from "@tanstack/react-query";
4
4
  //#region src/react/profiles/profiles.ts
5
5
  /**
@@ -7,7 +7,7 @@ import { useMutation, useQuery } from "@tanstack/react-query";
7
7
  * Do not edit manually.
8
8
  * Mozaik backend
9
9
  * 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.
10
- * OpenAPI spec version: 0.1.0
10
+ * OpenAPI spec version: 0.5.0
11
11
  */
12
12
  const withQueryKey = (query, queryKey) => {
13
13
  const result = { queryKey };