@learnorama/mozaik-sdk 0.20.4-staging.65.1 → 0.22.10-staging.78.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/FRONTEND-REQUESTS.md +5 -3
  2. package/README.md +24 -0
  3. package/dist/api/account.d.ts +16 -1
  4. package/dist/api/account.js +30 -1
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/admin-catalogue.d.ts +1 -1
  7. package/dist/api/admin-catalogue.js.map +1 -1
  8. package/dist/api/admin-consumption.d.ts +1 -1
  9. package/dist/api/admin-consumption.js.map +1 -1
  10. package/dist/api/admin-contracts.d.ts +1 -1
  11. package/dist/api/admin-contracts.js.map +1 -1
  12. package/dist/api/admin-customer.d.ts +1 -1
  13. package/dist/api/admin-customer.js.map +1 -1
  14. package/dist/api/admin-desk.d.ts +7 -1
  15. package/dist/api/admin-desk.js +33 -1
  16. package/dist/api/admin-desk.js.map +1 -1
  17. package/dist/api/admin-licenses.d.ts +1 -1
  18. package/dist/api/admin-licenses.js.map +1 -1
  19. package/dist/api/admin-partner-selections.d.ts +1 -1
  20. package/dist/api/admin-partner-selections.js.map +1 -1
  21. package/dist/api/admin-patrons.d.ts +1 -1
  22. package/dist/api/admin-patrons.js.map +1 -1
  23. package/dist/api/admin-reviews.d.ts +1 -1
  24. package/dist/api/admin-reviews.js.map +1 -1
  25. package/dist/api/admin-roles.d.ts +1 -1
  26. package/dist/api/admin-roles.js.map +1 -1
  27. package/dist/api/admin-support.d.ts +1 -1
  28. package/dist/api/admin-support.js.map +1 -1
  29. package/dist/api/admin-tenants.d.ts +1 -1
  30. package/dist/api/admin-tenants.js.map +1 -1
  31. package/dist/api/admin-tutoring.d.ts +1 -1
  32. package/dist/api/admin-tutoring.js.map +1 -1
  33. package/dist/api/admin-vod.d.ts +1 -1
  34. package/dist/api/admin-vod.js.map +1 -1
  35. package/dist/api/auth-device.d.ts +1 -1
  36. package/dist/api/auth-device.js.map +1 -1
  37. package/dist/api/auth.d.ts +7 -1
  38. package/dist/api/auth.js +14 -1
  39. package/dist/api/auth.js.map +1 -1
  40. package/dist/api/biblio-billing-webhooks.d.ts +1 -1
  41. package/dist/api/biblio-billing-webhooks.js.map +1 -1
  42. package/dist/api/biblio-billing.d.ts +1 -1
  43. package/dist/api/biblio-billing.js.map +1 -1
  44. package/dist/api/biblio-catalogue.d.ts +1 -1
  45. package/dist/api/biblio-catalogue.js.map +1 -1
  46. package/dist/api/biblio-home.d.ts +1 -1
  47. package/dist/api/biblio-home.js.map +1 -1
  48. package/dist/api/biblio-learning-author-profiles.d.ts +1 -1
  49. package/dist/api/biblio-learning-author-profiles.js.map +1 -1
  50. package/dist/api/biblio-learning-authoring.d.ts +1 -1
  51. package/dist/api/biblio-learning-authoring.js.map +1 -1
  52. package/dist/api/biblio-learning-editorial.d.ts +1 -1
  53. package/dist/api/biblio-learning-editorial.js.map +1 -1
  54. package/dist/api/biblio-learning-feedback.d.ts +1 -1
  55. package/dist/api/biblio-learning-feedback.js.map +1 -1
  56. package/dist/api/biblio-learning-finance.d.ts +1 -1
  57. package/dist/api/biblio-learning-finance.js.map +1 -1
  58. package/dist/api/biblio-learning-integrations.d.ts +1 -1
  59. package/dist/api/biblio-learning-integrations.js.map +1 -1
  60. package/dist/api/biblio-learning-membership.d.ts +1 -1
  61. package/dist/api/biblio-learning-membership.js.map +1 -1
  62. package/dist/api/biblio-learning.d.ts +1 -1
  63. package/dist/api/biblio-learning.js.map +1 -1
  64. package/dist/api/biblio-library.d.ts +1 -1
  65. package/dist/api/biblio-library.js.map +1 -1
  66. package/dist/api/biblio-nextory.d.ts +1 -1
  67. package/dist/api/biblio-nextory.js.map +1 -1
  68. package/dist/api/biblio-press.d.ts +1 -1
  69. package/dist/api/biblio-press.js.map +1 -1
  70. package/dist/api/biblio-search.d.ts +1 -1
  71. package/dist/api/biblio-search.js.map +1 -1
  72. package/dist/api/biblio-telemetry.d.ts +1 -1
  73. package/dist/api/biblio-telemetry.js.map +1 -1
  74. package/dist/api/biblio-youscribe.js.map +1 -1
  75. package/dist/api/consumption.d.ts +1 -1
  76. package/dist/api/consumption.js.map +1 -1
  77. package/dist/api/cvs-app.d.ts +1 -1
  78. package/dist/api/cvs-app.js.map +1 -1
  79. package/dist/api/cvs-documents.d.ts +1 -1
  80. package/dist/api/cvs-documents.js.map +1 -1
  81. package/dist/api/cvs-favorites.d.ts +1 -1
  82. package/dist/api/cvs-favorites.js.map +1 -1
  83. package/dist/api/cvs-ils.d.ts +1 -1
  84. package/dist/api/cvs-ils.js.map +1 -1
  85. package/dist/api/cvs-loans.d.ts +1 -1
  86. package/dist/api/cvs-loans.js.map +1 -1
  87. package/dist/api/cvs-payments.d.ts +1 -1
  88. package/dist/api/cvs-payments.js.map +1 -1
  89. package/dist/api/cvs-streaming.d.ts +1 -1
  90. package/dist/api/cvs-streaming.js.map +1 -1
  91. package/dist/api/index.d.ts +4 -4
  92. package/dist/api/index.js +4 -4
  93. package/dist/api/partner-catalogue.d.ts +4 -1
  94. package/dist/api/partner-catalogue.js +3 -0
  95. package/dist/api/partner-catalogue.js.map +1 -1
  96. package/dist/api/partner-reader-nextory.d.ts +1 -1
  97. package/dist/api/partner-reader-nextory.js.map +1 -1
  98. package/dist/api/partner-reader-youscribe.d.ts +1 -1
  99. package/dist/api/partner-reader-youscribe.js.map +1 -1
  100. package/dist/api/partner-reading.d.ts +1 -1
  101. package/dist/api/partner-reading.js.map +1 -1
  102. package/dist/api/profiles.d.ts +1 -1
  103. package/dist/api/profiles.js.map +1 -1
  104. package/dist/api/search.d.ts +1 -1
  105. package/dist/api/search.js.map +1 -1
  106. package/dist/api/tutoring-catalogue.d.ts +1 -1
  107. package/dist/api/tutoring-catalogue.js.map +1 -1
  108. package/dist/api/tutoring-chat.d.ts +1 -1
  109. package/dist/api/tutoring-chat.js.map +1 -1
  110. package/dist/api/tutoring-dispatch.d.ts +1 -1
  111. package/dist/api/tutoring-dispatch.js.map +1 -1
  112. package/dist/api/tutoring-practitioner.d.ts +1 -1
  113. package/dist/api/tutoring-practitioner.js.map +1 -1
  114. package/dist/api/tutoring-requests.d.ts +1 -1
  115. package/dist/api/tutoring-requests.js.map +1 -1
  116. package/dist/chunks/client2.d.ts +1 -1
  117. package/dist/chunks/connection.d.ts +1 -1
  118. package/dist/chunks/index.d.ts +1116 -670
  119. package/dist/chunks/index2.d.ts +1 -1
  120. package/dist/index.d.ts +3 -3
  121. package/dist/index.js +3 -3
  122. package/dist/index.js.map +1 -1
  123. package/dist/models.d.ts +2 -2
  124. package/dist/models.js +118 -2
  125. package/dist/models.js.map +1 -1
  126. package/dist/react/account.d.ts +60 -1
  127. package/dist/react/account.js +83 -2
  128. package/dist/react/account.js.map +1 -1
  129. package/dist/react/admin-catalogue.d.ts +1 -1
  130. package/dist/react/admin-catalogue.js +1 -1
  131. package/dist/react/admin-catalogue.js.map +1 -1
  132. package/dist/react/admin-consumption.d.ts +1 -1
  133. package/dist/react/admin-consumption.js +1 -1
  134. package/dist/react/admin-consumption.js.map +1 -1
  135. package/dist/react/admin-contracts.d.ts +1 -1
  136. package/dist/react/admin-contracts.js +1 -1
  137. package/dist/react/admin-contracts.js.map +1 -1
  138. package/dist/react/admin-customer.d.ts +1 -1
  139. package/dist/react/admin-customer.js +1 -1
  140. package/dist/react/admin-customer.js.map +1 -1
  141. package/dist/react/admin-desk.d.ts +25 -1
  142. package/dist/react/admin-desk.js +62 -2
  143. package/dist/react/admin-desk.js.map +1 -1
  144. package/dist/react/admin-licenses.d.ts +1 -1
  145. package/dist/react/admin-licenses.js +1 -1
  146. package/dist/react/admin-licenses.js.map +1 -1
  147. package/dist/react/admin-partner-selections.d.ts +1 -1
  148. package/dist/react/admin-partner-selections.js +1 -1
  149. package/dist/react/admin-partner-selections.js.map +1 -1
  150. package/dist/react/admin-patrons.d.ts +1 -1
  151. package/dist/react/admin-patrons.js +1 -1
  152. package/dist/react/admin-patrons.js.map +1 -1
  153. package/dist/react/admin-reviews.d.ts +1 -1
  154. package/dist/react/admin-reviews.js +1 -1
  155. package/dist/react/admin-reviews.js.map +1 -1
  156. package/dist/react/admin-roles.d.ts +1 -1
  157. package/dist/react/admin-roles.js +1 -1
  158. package/dist/react/admin-roles.js.map +1 -1
  159. package/dist/react/admin-support.d.ts +1 -1
  160. package/dist/react/admin-support.js +1 -1
  161. package/dist/react/admin-support.js.map +1 -1
  162. package/dist/react/admin-tenants.d.ts +1 -1
  163. package/dist/react/admin-tenants.js +1 -1
  164. package/dist/react/admin-tenants.js.map +1 -1
  165. package/dist/react/admin-tutoring.d.ts +1 -1
  166. package/dist/react/admin-tutoring.js +1 -1
  167. package/dist/react/admin-tutoring.js.map +1 -1
  168. package/dist/react/admin-vod.d.ts +1 -1
  169. package/dist/react/admin-vod.js +1 -1
  170. package/dist/react/admin-vod.js.map +1 -1
  171. package/dist/react/auth-device.d.ts +1 -1
  172. package/dist/react/auth-device.js +1 -1
  173. package/dist/react/auth-device.js.map +1 -1
  174. package/dist/react/auth.d.ts +34 -1
  175. package/dist/react/auth.js +39 -2
  176. package/dist/react/auth.js.map +1 -1
  177. package/dist/react/biblio-billing-webhooks.d.ts +1 -1
  178. package/dist/react/biblio-billing-webhooks.js +1 -1
  179. package/dist/react/biblio-billing-webhooks.js.map +1 -1
  180. package/dist/react/biblio-billing.d.ts +1 -1
  181. package/dist/react/biblio-billing.js +1 -1
  182. package/dist/react/biblio-billing.js.map +1 -1
  183. package/dist/react/biblio-catalogue.d.ts +1 -1
  184. package/dist/react/biblio-catalogue.js +1 -1
  185. package/dist/react/biblio-catalogue.js.map +1 -1
  186. package/dist/react/biblio-home.d.ts +1 -1
  187. package/dist/react/biblio-home.js +1 -1
  188. package/dist/react/biblio-home.js.map +1 -1
  189. package/dist/react/biblio-learning-author-profiles.d.ts +1 -1
  190. package/dist/react/biblio-learning-author-profiles.js +1 -1
  191. package/dist/react/biblio-learning-author-profiles.js.map +1 -1
  192. package/dist/react/biblio-learning-authoring.d.ts +1 -1
  193. package/dist/react/biblio-learning-authoring.js +1 -1
  194. package/dist/react/biblio-learning-authoring.js.map +1 -1
  195. package/dist/react/biblio-learning-editorial.d.ts +1 -1
  196. package/dist/react/biblio-learning-editorial.js +1 -1
  197. package/dist/react/biblio-learning-editorial.js.map +1 -1
  198. package/dist/react/biblio-learning-feedback.d.ts +1 -1
  199. package/dist/react/biblio-learning-feedback.js +1 -1
  200. package/dist/react/biblio-learning-feedback.js.map +1 -1
  201. package/dist/react/biblio-learning-finance.d.ts +1 -1
  202. package/dist/react/biblio-learning-finance.js +1 -1
  203. package/dist/react/biblio-learning-finance.js.map +1 -1
  204. package/dist/react/biblio-learning-integrations.d.ts +1 -1
  205. package/dist/react/biblio-learning-integrations.js +1 -1
  206. package/dist/react/biblio-learning-integrations.js.map +1 -1
  207. package/dist/react/biblio-learning-membership.d.ts +1 -1
  208. package/dist/react/biblio-learning-membership.js +1 -1
  209. package/dist/react/biblio-learning-membership.js.map +1 -1
  210. package/dist/react/biblio-learning.d.ts +1 -1
  211. package/dist/react/biblio-learning.js +1 -1
  212. package/dist/react/biblio-learning.js.map +1 -1
  213. package/dist/react/biblio-library.d.ts +1 -1
  214. package/dist/react/biblio-library.js +1 -1
  215. package/dist/react/biblio-library.js.map +1 -1
  216. package/dist/react/biblio-nextory.d.ts +1 -1
  217. package/dist/react/biblio-nextory.js +1 -1
  218. package/dist/react/biblio-nextory.js.map +1 -1
  219. package/dist/react/biblio-press.d.ts +1 -1
  220. package/dist/react/biblio-press.js +1 -1
  221. package/dist/react/biblio-press.js.map +1 -1
  222. package/dist/react/biblio-search.d.ts +1 -1
  223. package/dist/react/biblio-search.js +1 -1
  224. package/dist/react/biblio-search.js.map +1 -1
  225. package/dist/react/biblio-telemetry.d.ts +1 -1
  226. package/dist/react/biblio-telemetry.js +1 -1
  227. package/dist/react/biblio-telemetry.js.map +1 -1
  228. package/dist/react/biblio-youscribe.d.ts +1 -1
  229. package/dist/react/biblio-youscribe.js +1 -1
  230. package/dist/react/biblio-youscribe.js.map +1 -1
  231. package/dist/react/chat.d.ts +1 -1
  232. package/dist/react/consumption.d.ts +1 -1
  233. package/dist/react/consumption.js +1 -1
  234. package/dist/react/consumption.js.map +1 -1
  235. package/dist/react/cvs-app.d.ts +1 -1
  236. package/dist/react/cvs-app.js +1 -1
  237. package/dist/react/cvs-app.js.map +1 -1
  238. package/dist/react/cvs-documents.d.ts +1 -1
  239. package/dist/react/cvs-documents.js +1 -1
  240. package/dist/react/cvs-documents.js.map +1 -1
  241. package/dist/react/cvs-favorites.d.ts +1 -1
  242. package/dist/react/cvs-favorites.js +1 -1
  243. package/dist/react/cvs-favorites.js.map +1 -1
  244. package/dist/react/cvs-ils.d.ts +1 -1
  245. package/dist/react/cvs-ils.js +1 -1
  246. package/dist/react/cvs-ils.js.map +1 -1
  247. package/dist/react/cvs-loans.d.ts +1 -1
  248. package/dist/react/cvs-loans.js +1 -1
  249. package/dist/react/cvs-loans.js.map +1 -1
  250. package/dist/react/cvs-payments.d.ts +1 -1
  251. package/dist/react/cvs-payments.js +1 -1
  252. package/dist/react/cvs-payments.js.map +1 -1
  253. package/dist/react/cvs-streaming.d.ts +1 -1
  254. package/dist/react/cvs-streaming.js +1 -1
  255. package/dist/react/cvs-streaming.js.map +1 -1
  256. package/dist/react/index.d.ts +4 -4
  257. package/dist/react/index.js +4 -4
  258. package/dist/react/partner-catalogue.d.ts +4 -1
  259. package/dist/react/partner-catalogue.js +4 -1
  260. package/dist/react/partner-catalogue.js.map +1 -1
  261. package/dist/react/partner-reader-nextory.d.ts +1 -1
  262. package/dist/react/partner-reader-nextory.js +1 -1
  263. package/dist/react/partner-reader-nextory.js.map +1 -1
  264. package/dist/react/partner-reader-youscribe.d.ts +1 -1
  265. package/dist/react/partner-reader-youscribe.js +1 -1
  266. package/dist/react/partner-reader-youscribe.js.map +1 -1
  267. package/dist/react/partner-reading.d.ts +1 -1
  268. package/dist/react/partner-reading.js +1 -1
  269. package/dist/react/partner-reading.js.map +1 -1
  270. package/dist/react/profiles.d.ts +1 -1
  271. package/dist/react/profiles.js +1 -1
  272. package/dist/react/profiles.js.map +1 -1
  273. package/dist/react/search.d.ts +1 -1
  274. package/dist/react/search.js +1 -1
  275. package/dist/react/search.js.map +1 -1
  276. package/dist/react/tutoring-catalogue.d.ts +1 -1
  277. package/dist/react/tutoring-catalogue.js +1 -1
  278. package/dist/react/tutoring-catalogue.js.map +1 -1
  279. package/dist/react/tutoring-chat.d.ts +1 -1
  280. package/dist/react/tutoring-chat.js +1 -1
  281. package/dist/react/tutoring-chat.js.map +1 -1
  282. package/dist/react/tutoring-dispatch.d.ts +1 -1
  283. package/dist/react/tutoring-dispatch.js +1 -1
  284. package/dist/react/tutoring-dispatch.js.map +1 -1
  285. package/dist/react/tutoring-practitioner.d.ts +1 -1
  286. package/dist/react/tutoring-practitioner.js +1 -1
  287. package/dist/react/tutoring-practitioner.js.map +1 -1
  288. package/dist/react/tutoring-requests.d.ts +1 -1
  289. package/dist/react/tutoring-requests.js +1 -1
  290. package/dist/react/tutoring-requests.js.map +1 -1
  291. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"admin-tenants.js","names":[],"sources":["../../src/react/admin-tenants/admin-tenants.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.20.4\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 BrandingRead,\n BrandingWrite,\n CapabilityProvider,\n CustomerActivationRead,\n CustomerActivationWrite,\n CustomerHelpWrite,\n CustomerRequestPage,\n CustomerRequestRead,\n CustomerRequestUpdateWrite,\n HTTPExceptionResponse,\n ListStaffCustomerRequestsParams,\n SearchTenantsParams,\n ServiceCredentialWrite,\n ServiceRead,\n ServiceSettingsWrite,\n TenantDirectoryParams,\n TenantSearchPage,\n TenantSettingsRead,\n TenantSettingsUpdateWrite,\n UniversePaletteWrite,\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 getListStaffCustomerRequestsUrl = (params?: ListStaffCustomerRequestsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/admin/customer-requests?${stringifiedParams}` : `/admin/customer-requests`\n}\n\n/**\n * @summary List Staff Customer Requests\n */\nexport const listStaffCustomerRequests = async (params?: ListStaffCustomerRequestsParams, options?: Parameters<typeof request>[1]): Promise<CustomerRequestPage> => {\n\n return request<CustomerRequestPage>(getListStaffCustomerRequestsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListStaffCustomerRequestsQueryKey = (params?: ListStaffCustomerRequestsParams,) => {\n return [\n `/admin/customer-requests`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getListStaffCustomerRequestsQueryOptions = <TData = Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: ListStaffCustomerRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListStaffCustomerRequestsQueryKey(params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listStaffCustomerRequests>>> = ({ signal }) => listStaffCustomerRequests(params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListStaffCustomerRequestsQueryResult = NonNullable<Awaited<ReturnType<typeof listStaffCustomerRequests>>>\nexport type ListStaffCustomerRequestsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListStaffCustomerRequests<TData = Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: undefined | ListStaffCustomerRequestsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listStaffCustomerRequests>>,\n TError,\n Awaited<ReturnType<typeof listStaffCustomerRequests>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListStaffCustomerRequests<TData = Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: ListStaffCustomerRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listStaffCustomerRequests>>,\n TError,\n Awaited<ReturnType<typeof listStaffCustomerRequests>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListStaffCustomerRequests<TData = Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: ListStaffCustomerRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Staff Customer Requests\n */\n\nexport function useListStaffCustomerRequests<TData = Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: ListStaffCustomerRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListStaffCustomerRequestsQueryOptions(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 getUpdateCustomerRequestUrl = (requestId: number,) => {\n\n\n\n\n return `/admin/customer-requests/${requestId}`\n}\n\n/**\n * @summary Update Customer Request\n */\nexport const updateCustomerRequest = async (requestId: number,\n customerRequestUpdateWrite: CustomerRequestUpdateWrite, options?: Parameters<typeof request>[1]): Promise<CustomerRequestRead> => {\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<CustomerRequestRead>(getUpdateCustomerRequestUrl(requestId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(customerRequestUpdateWrite)\n }\n);}\n\n\n\n\n\nexport const getUpdateCustomerRequestMutationKey = () => ['updateCustomerRequest'] as const;\n\nexport const getUpdateCustomerRequestMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateCustomerRequest>>, TError,UpdateCustomerRequestMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof updateCustomerRequest>>, TError,UpdateCustomerRequestMutationVariables, TContext> => {\n\nconst mutationKey = getUpdateCustomerRequestMutationKey();\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 updateCustomerRequest>>, UpdateCustomerRequestMutationVariables> = (props) => {\n const {requestId,data} = props ?? {};\n\n return updateCustomerRequest(requestId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type UpdateCustomerRequestMutationResult = NonNullable<Awaited<ReturnType<typeof updateCustomerRequest>>>\n export type UpdateCustomerRequestMutationBody = BodyType<CustomerRequestUpdateWrite>\n export type UpdateCustomerRequestMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type UpdateCustomerRequestMutationVariables = {requestId: number;data: BodyType<CustomerRequestUpdateWrite>}\n\n /**\n * @summary Update Customer Request\n */\nexport const useUpdateCustomerRequest = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateCustomerRequest>>, TError,UpdateCustomerRequestMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof updateCustomerRequest>>,\n TError,\n UpdateCustomerRequestMutationVariables,\n TContext\n > => {\n return useMutation(getUpdateCustomerRequestMutationOptions(options), queryClient);\n }\n export const getConfigureEditorPresentationUrl = (editorId: number,) => {\n\n\n\n\n return `/admin/editors/${editorId}/presentation`\n}\n\n/**\n * Update the global publisher artwork shown on an entitled profile's pack card.\n * @summary Configure Editor Presentation\n */\nexport const configureEditorPresentation = async (editorId: number,\n brandingWrite: BrandingWrite, options?: Parameters<typeof request>[1]): Promise<BrandingRead> => {\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<BrandingRead>(getConfigureEditorPresentationUrl(editorId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(brandingWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureEditorPresentationMutationKey = () => ['configureEditorPresentation'] as const;\n\nexport const getConfigureEditorPresentationMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureEditorPresentation>>, TError,ConfigureEditorPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureEditorPresentation>>, TError,ConfigureEditorPresentationMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureEditorPresentationMutationKey();\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 configureEditorPresentation>>, ConfigureEditorPresentationMutationVariables> = (props) => {\n const {editorId,data} = props ?? {};\n\n return configureEditorPresentation(editorId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureEditorPresentationMutationResult = NonNullable<Awaited<ReturnType<typeof configureEditorPresentation>>>\n export type ConfigureEditorPresentationMutationBody = BodyType<BrandingWrite>\n export type ConfigureEditorPresentationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureEditorPresentationMutationVariables = {editorId: number;data: BodyType<BrandingWrite>}\n\n /**\n * @summary Configure Editor Presentation\n */\nexport const useConfigureEditorPresentation = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureEditorPresentation>>, TError,ConfigureEditorPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureEditorPresentation>>,\n TError,\n ConfigureEditorPresentationMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureEditorPresentationMutationOptions(options), queryClient);\n }\n export const getConfigurePackPresentationUrl = (packId: number,) => {\n\n\n\n\n return `/admin/packs/${packId}/presentation`\n}\n\n/**\n * @summary Configure Pack Presentation\n */\nexport const configurePackPresentation = async (packId: number,\n brandingWrite: BrandingWrite, options?: Parameters<typeof request>[1]): Promise<BrandingRead> => {\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<BrandingRead>(getConfigurePackPresentationUrl(packId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(brandingWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigurePackPresentationMutationKey = () => ['configurePackPresentation'] as const;\n\nexport const getConfigurePackPresentationMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configurePackPresentation>>, TError,ConfigurePackPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configurePackPresentation>>, TError,ConfigurePackPresentationMutationVariables, TContext> => {\n\nconst mutationKey = getConfigurePackPresentationMutationKey();\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 configurePackPresentation>>, ConfigurePackPresentationMutationVariables> = (props) => {\n const {packId,data} = props ?? {};\n\n return configurePackPresentation(packId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigurePackPresentationMutationResult = NonNullable<Awaited<ReturnType<typeof configurePackPresentation>>>\n export type ConfigurePackPresentationMutationBody = BodyType<BrandingWrite>\n export type ConfigurePackPresentationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigurePackPresentationMutationVariables = {packId: number;data: BodyType<BrandingWrite>}\n\n /**\n * @summary Configure Pack Presentation\n */\nexport const useConfigurePackPresentation = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configurePackPresentation>>, TError,ConfigurePackPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configurePackPresentation>>,\n TError,\n ConfigurePackPresentationMutationVariables,\n TContext\n > => {\n return useMutation(getConfigurePackPresentationMutationOptions(options), queryClient);\n }\n export const getConfigurePartnerPresentationUrl = (provider: CapabilityProvider,) => {\n\n\n\n\n return `/admin/partners/${provider}/presentation`\n}\n\n/**\n * @summary Configure Partner Presentation\n */\nexport const configurePartnerPresentation = async (provider: CapabilityProvider,\n brandingWrite: BrandingWrite, options?: Parameters<typeof request>[1]): Promise<BrandingRead> => {\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<BrandingRead>(getConfigurePartnerPresentationUrl(provider),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(brandingWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigurePartnerPresentationMutationKey = () => ['configurePartnerPresentation'] as const;\n\nexport const getConfigurePartnerPresentationMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configurePartnerPresentation>>, TError,ConfigurePartnerPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configurePartnerPresentation>>, TError,ConfigurePartnerPresentationMutationVariables, TContext> => {\n\nconst mutationKey = getConfigurePartnerPresentationMutationKey();\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 configurePartnerPresentation>>, ConfigurePartnerPresentationMutationVariables> = (props) => {\n const {provider,data} = props ?? {};\n\n return configurePartnerPresentation(provider,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigurePartnerPresentationMutationResult = NonNullable<Awaited<ReturnType<typeof configurePartnerPresentation>>>\n export type ConfigurePartnerPresentationMutationBody = BodyType<BrandingWrite>\n export type ConfigurePartnerPresentationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigurePartnerPresentationMutationVariables = {provider: CapabilityProvider;data: BodyType<BrandingWrite>}\n\n /**\n * @summary Configure Partner Presentation\n */\nexport const useConfigurePartnerPresentation = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configurePartnerPresentation>>, TError,ConfigurePartnerPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configurePartnerPresentation>>,\n TError,\n ConfigurePartnerPresentationMutationVariables,\n TContext\n > => {\n return useMutation(getConfigurePartnerPresentationMutationOptions(options), queryClient);\n }\n export const getListTenantsUrl = () => {\n\n\n\n\n return `/admin/tenants`\n}\n\n/**\n * The tenants this operator administers.\n *\n * For a library administrator that is one row, and returning a list of one is\n * better than a bare object: the client renders the same picker whether it is\n * talking to a library, a consortium or the vendor.\n * @summary List Tenants\n */\nexport const listTenants = async ( options?: Parameters<typeof request>[1]): Promise<TenantSettingsRead[]> => {\n\n return request<TenantSettingsRead[]>(getListTenantsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListTenantsQueryKey = () => {\n return [\n `/admin/tenants`\n ] as const;\n }\n\n\nexport const getListTenantsQueryOptions = <TData = Awaited<ReturnType<typeof listTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListTenantsQueryKey();\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listTenants>>> = ({ signal }) => listTenants({ signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListTenantsQueryResult = NonNullable<Awaited<ReturnType<typeof listTenants>>>\nexport type ListTenantsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListTenants<TData = Awaited<ReturnType<typeof listTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listTenants>>,\n TError,\n Awaited<ReturnType<typeof listTenants>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListTenants<TData = Awaited<ReturnType<typeof listTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listTenants>>,\n TError,\n Awaited<ReturnType<typeof listTenants>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListTenants<TData = Awaited<ReturnType<typeof listTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Tenants\n */\n\nexport function useListTenants<TData = Awaited<ReturnType<typeof listTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListTenantsQueryOptions(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 getTenantDirectoryUrl = (params?: TenantDirectoryParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/admin/tenants/directory?${stringifiedParams}` : `/admin/tenants/directory`\n}\n\n/**\n * Browse tenant summaries within the employee's scope, one bounded page.\n * @summary Tenant Directory\n */\nexport const tenantDirectory = async (params?: TenantDirectoryParams, options?: Parameters<typeof request>[1]): Promise<TenantSearchPage> => {\n\n return request<TenantSearchPage>(getTenantDirectoryUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getTenantDirectoryQueryKey = (params?: TenantDirectoryParams,) => {\n return [\n `/admin/tenants/directory`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getTenantDirectoryQueryOptions = <TData = Awaited<ReturnType<typeof tenantDirectory>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: TenantDirectoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getTenantDirectoryQueryKey(params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof tenantDirectory>>> = ({ signal }) => tenantDirectory(params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type TenantDirectoryQueryResult = NonNullable<Awaited<ReturnType<typeof tenantDirectory>>>\nexport type TenantDirectoryQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useTenantDirectory<TData = Awaited<ReturnType<typeof tenantDirectory>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: undefined | TenantDirectoryParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof tenantDirectory>>,\n TError,\n Awaited<ReturnType<typeof tenantDirectory>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useTenantDirectory<TData = Awaited<ReturnType<typeof tenantDirectory>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: TenantDirectoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof tenantDirectory>>,\n TError,\n Awaited<ReturnType<typeof tenantDirectory>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useTenantDirectory<TData = Awaited<ReturnType<typeof tenantDirectory>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: TenantDirectoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Tenant Directory\n */\n\nexport function useTenantDirectory<TData = Awaited<ReturnType<typeof tenantDirectory>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: TenantDirectoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getTenantDirectoryQueryOptions(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 getSearchTenantsUrl = (params: SearchTenantsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/admin/tenants/search?${stringifiedParams}` : `/admin/tenants/search`\n}\n\n/**\n * Find tenants using Elasticsearch within the employee's tenant scope.\n * @summary Search Tenants\n */\nexport const searchTenants = async (params: SearchTenantsParams, options?: Parameters<typeof request>[1]): Promise<TenantSearchPage> => {\n\n return request<TenantSearchPage>(getSearchTenantsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getSearchTenantsQueryKey = (params?: SearchTenantsParams,) => {\n return [\n `/admin/tenants/search`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getSearchTenantsQueryOptions = <TData = Awaited<ReturnType<typeof searchTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params: SearchTenantsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getSearchTenantsQueryKey(params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof searchTenants>>> = ({ signal }) => searchTenants(params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type SearchTenantsQueryResult = NonNullable<Awaited<ReturnType<typeof searchTenants>>>\nexport type SearchTenantsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useSearchTenants<TData = Awaited<ReturnType<typeof searchTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: SearchTenantsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof searchTenants>>,\n TError,\n Awaited<ReturnType<typeof searchTenants>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useSearchTenants<TData = Awaited<ReturnType<typeof searchTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: SearchTenantsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof searchTenants>>,\n TError,\n Awaited<ReturnType<typeof searchTenants>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useSearchTenants<TData = Awaited<ReturnType<typeof searchTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: SearchTenantsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Search Tenants\n */\n\nexport function useSearchTenants<TData = Awaited<ReturnType<typeof searchTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: SearchTenantsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getSearchTenantsQueryOptions(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 getReadTenantUrl = (tenantId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}`\n}\n\n/**\n * One tenant's configuration.\n * @summary Read Tenant\n */\nexport const readTenant = async (tenantId: number, options?: Parameters<typeof request>[1]): Promise<TenantSettingsRead> => {\n\n return request<TenantSettingsRead>(getReadTenantUrl(tenantId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getReadTenantQueryKey = (tenantId: number,) => {\n return [\n `/admin/tenants/${tenantId}`\n ] as const;\n }\n\n\nexport const getReadTenantQueryOptions = <TData = Awaited<ReturnType<typeof readTenant>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(tenantId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getReadTenantQueryKey(tenantId);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof readTenant>>> = ({ signal }) => readTenant(tenantId, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: tenantId !== null && tenantId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ReadTenantQueryResult = NonNullable<Awaited<ReturnType<typeof readTenant>>>\nexport type ReadTenantQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useReadTenant<TData = Awaited<ReturnType<typeof readTenant>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n tenantId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof readTenant>>,\n TError,\n Awaited<ReturnType<typeof readTenant>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadTenant<TData = Awaited<ReturnType<typeof readTenant>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n tenantId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof readTenant>>,\n TError,\n Awaited<ReturnType<typeof readTenant>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadTenant<TData = Awaited<ReturnType<typeof readTenant>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n tenantId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read Tenant\n */\n\nexport function useReadTenant<TData = Awaited<ReturnType<typeof readTenant>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n tenantId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getReadTenantQueryOptions(tenantId,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 getUpdateTenantUrl = (tenantId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}`\n}\n\n/**\n * Change a tenant's configuration. Audited.\n *\n * The two membership flags are mutually exclusive and the database says so —\n * ``ck_tenant_individual_accounts_exclusive``. Checked here too, because a\n * constraint violation surfaces as a 500 and this is a 422: the operator sent\n * something contradictory and can fix it.\n * @summary Update Tenant\n */\nexport const updateTenant = async (tenantId: number,\n tenantSettingsUpdateWrite: TenantSettingsUpdateWrite, options?: Parameters<typeof request>[1]): Promise<TenantSettingsRead> => {\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<TenantSettingsRead>(getUpdateTenantUrl(tenantId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(tenantSettingsUpdateWrite)\n }\n);}\n\n\n\n\n\nexport const getUpdateTenantMutationKey = () => ['updateTenant'] as const;\n\nexport const getUpdateTenantMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateTenant>>, TError,UpdateTenantMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof updateTenant>>, TError,UpdateTenantMutationVariables, TContext> => {\n\nconst mutationKey = getUpdateTenantMutationKey();\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 updateTenant>>, UpdateTenantMutationVariables> = (props) => {\n const {tenantId,data} = props ?? {};\n\n return updateTenant(tenantId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type UpdateTenantMutationResult = NonNullable<Awaited<ReturnType<typeof updateTenant>>>\n export type UpdateTenantMutationBody = BodyType<TenantSettingsUpdateWrite>\n export type UpdateTenantMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type UpdateTenantMutationVariables = {tenantId: number;data: BodyType<TenantSettingsUpdateWrite>}\n\n /**\n * @summary Update Tenant\n */\nexport const useUpdateTenant = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateTenant>>, TError,UpdateTenantMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof updateTenant>>,\n TError,\n UpdateTenantMutationVariables,\n TContext\n > => {\n return useMutation(getUpdateTenantMutationOptions(options), queryClient);\n }\n export const getConfigureCustomerActivationUrl = (tenantId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}/activation-code`\n}\n\n/**\n * Mozaik staff set registration quota/expiry; customers cannot refill their own budget.\n * @summary Configure Customer Activation\n */\nexport const configureCustomerActivation = async (tenantId: number,\n customerActivationWrite: CustomerActivationWrite, options?: Parameters<typeof request>[1]): Promise<CustomerActivationRead> => {\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<CustomerActivationRead>(getConfigureCustomerActivationUrl(tenantId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(customerActivationWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureCustomerActivationMutationKey = () => ['configureCustomerActivation'] as const;\n\nexport const getConfigureCustomerActivationMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureCustomerActivation>>, TError,ConfigureCustomerActivationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureCustomerActivation>>, TError,ConfigureCustomerActivationMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureCustomerActivationMutationKey();\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 configureCustomerActivation>>, ConfigureCustomerActivationMutationVariables> = (props) => {\n const {tenantId,data} = props ?? {};\n\n return configureCustomerActivation(tenantId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureCustomerActivationMutationResult = NonNullable<Awaited<ReturnType<typeof configureCustomerActivation>>>\n export type ConfigureCustomerActivationMutationBody = BodyType<CustomerActivationWrite>\n export type ConfigureCustomerActivationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureCustomerActivationMutationVariables = {tenantId: number;data: BodyType<CustomerActivationWrite>}\n\n /**\n * @summary Configure Customer Activation\n */\nexport const useConfigureCustomerActivation = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureCustomerActivation>>, TError,ConfigureCustomerActivationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureCustomerActivation>>,\n TError,\n ConfigureCustomerActivationMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureCustomerActivationMutationOptions(options), queryClient);\n }\n export const getConfigureCustomerHelpUrl = (tenantId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}/customer-help`\n}\n\n/**\n * @summary Configure Customer Help\n */\nexport const configureCustomerHelp = async (tenantId: number,\n customerHelpWrite: CustomerHelpWrite, options?: Parameters<typeof request>[1]): Promise<CustomerHelpWrite> => {\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<CustomerHelpWrite>(getConfigureCustomerHelpUrl(tenantId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(customerHelpWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureCustomerHelpMutationKey = () => ['configureCustomerHelp'] as const;\n\nexport const getConfigureCustomerHelpMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureCustomerHelp>>, TError,ConfigureCustomerHelpMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureCustomerHelp>>, TError,ConfigureCustomerHelpMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureCustomerHelpMutationKey();\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 configureCustomerHelp>>, ConfigureCustomerHelpMutationVariables> = (props) => {\n const {tenantId,data} = props ?? {};\n\n return configureCustomerHelp(tenantId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureCustomerHelpMutationResult = NonNullable<Awaited<ReturnType<typeof configureCustomerHelp>>>\n export type ConfigureCustomerHelpMutationBody = BodyType<CustomerHelpWrite>\n export type ConfigureCustomerHelpMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureCustomerHelpMutationVariables = {tenantId: number;data: BodyType<CustomerHelpWrite>}\n\n /**\n * @summary Configure Customer Help\n */\nexport const useConfigureCustomerHelp = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureCustomerHelp>>, TError,ConfigureCustomerHelpMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureCustomerHelp>>,\n TError,\n ConfigureCustomerHelpMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureCustomerHelpMutationOptions(options), queryClient);\n }\n export const getConfigureServiceUrl = (tenantId: number,\n serviceId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}/services/${serviceId}`\n}\n\n/**\n * Replace editorial settings of an existing service; never moves it to another tenant.\n * @summary Configure Service\n */\nexport const configureService = async (tenantId: number,\n serviceId: number,\n serviceSettingsWrite: ServiceSettingsWrite, options?: Parameters<typeof request>[1]): Promise<ServiceRead> => {\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<ServiceRead>(getConfigureServiceUrl(tenantId,serviceId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(serviceSettingsWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureServiceMutationKey = () => ['configureService'] as const;\n\nexport const getConfigureServiceMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureService>>, TError,ConfigureServiceMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureService>>, TError,ConfigureServiceMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureServiceMutationKey();\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 configureService>>, ConfigureServiceMutationVariables> = (props) => {\n const {tenantId,serviceId,data} = props ?? {};\n\n return configureService(tenantId,serviceId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureServiceMutationResult = NonNullable<Awaited<ReturnType<typeof configureService>>>\n export type ConfigureServiceMutationBody = BodyType<ServiceSettingsWrite>\n export type ConfigureServiceMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureServiceMutationVariables = {tenantId: number;serviceId: number;data: BodyType<ServiceSettingsWrite>}\n\n /**\n * @summary Configure Service\n */\nexport const useConfigureService = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureService>>, TError,ConfigureServiceMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureService>>,\n TError,\n ConfigureServiceMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureServiceMutationOptions(options), queryClient);\n }\n export const getConfigureServiceCredentialUrl = (tenantId: number,\n serviceId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}/services/${serviceId}/credential`\n}\n\n/**\n * Store an explicitly reviewed provider reference; never infer it from a remapped tenant ID.\n * @summary Configure Service Credential\n */\nexport const configureServiceCredential = async (tenantId: number,\n serviceId: number,\n serviceCredentialWrite: ServiceCredentialWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getConfigureServiceCredentialUrl(tenantId,serviceId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(serviceCredentialWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureServiceCredentialMutationKey = () => ['configureServiceCredential'] as const;\n\nexport const getConfigureServiceCredentialMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureServiceCredential>>, TError,ConfigureServiceCredentialMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureServiceCredential>>, TError,ConfigureServiceCredentialMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureServiceCredentialMutationKey();\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 configureServiceCredential>>, ConfigureServiceCredentialMutationVariables> = (props) => {\n const {tenantId,serviceId,data} = props ?? {};\n\n return configureServiceCredential(tenantId,serviceId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureServiceCredentialMutationResult = NonNullable<Awaited<ReturnType<typeof configureServiceCredential>>>\n export type ConfigureServiceCredentialMutationBody = BodyType<ServiceCredentialWrite>\n export type ConfigureServiceCredentialMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureServiceCredentialMutationVariables = {tenantId: number;serviceId: number;data: BodyType<ServiceCredentialWrite>}\n\n /**\n * @summary Configure Service Credential\n */\nexport const useConfigureServiceCredential = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureServiceCredential>>, TError,ConfigureServiceCredentialMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureServiceCredential>>,\n TError,\n ConfigureServiceCredentialMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureServiceCredentialMutationOptions(options), queryClient);\n }\n export const getConfigureUniversePaletteUrl = (tenantId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}/universe-palette`\n}\n\n/**\n * @summary Configure Universe Palette\n */\nexport const configureUniversePalette = async (tenantId: number,\n universePaletteWrite: UniversePaletteWrite, options?: Parameters<typeof request>[1]): Promise<UniversePaletteWrite> => {\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<UniversePaletteWrite>(getConfigureUniversePaletteUrl(tenantId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(universePaletteWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureUniversePaletteMutationKey = () => ['configureUniversePalette'] as const;\n\nexport const getConfigureUniversePaletteMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureUniversePalette>>, TError,ConfigureUniversePaletteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureUniversePalette>>, TError,ConfigureUniversePaletteMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureUniversePaletteMutationKey();\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 configureUniversePalette>>, ConfigureUniversePaletteMutationVariables> = (props) => {\n const {tenantId,data} = props ?? {};\n\n return configureUniversePalette(tenantId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureUniversePaletteMutationResult = NonNullable<Awaited<ReturnType<typeof configureUniversePalette>>>\n export type ConfigureUniversePaletteMutationBody = BodyType<UniversePaletteWrite>\n export type ConfigureUniversePaletteMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureUniversePaletteMutationVariables = {tenantId: number;data: BodyType<UniversePaletteWrite>}\n\n /**\n * @summary Configure Universe Palette\n */\nexport const useConfigureUniversePalette = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureUniversePalette>>, TError,ConfigureUniversePaletteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureUniversePalette>>,\n TError,\n ConfigureUniversePaletteMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureUniversePaletteMutationOptions(options), queryClient);\n }\n"],"mappings":";;;;;;;;;;;AA0DA,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,mCAAmC,WAA8C;CAC5F,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,4BAA4B,sBAAsB;AAC1F;;;;AAKA,MAAa,4BAA4B,OAAO,QAA0C,YAA0E;CAElK,OAAO,QAA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,MAAM,cAAiI,UAAU;EAC7I,MAAM,EAAC,UAAS,SAAQ,SAAS,CAAC;EAElC,OAAQ,yBAAyB,UAAS,MAAK,cAAc;CAC/D;CAON,OAAQ;EAAE;EAAY,GAAG;CAAgB;AAAC;;;;AAU5C,MAAa,+BACW,SACrB,gBAKQ;CACL,OAAO,YAAY,2CAA2C,OAAO,GAAG,WAAW;AACrF"}
1
+ {"version":3,"file":"admin-tenants.js","names":[],"sources":["../../src/react/admin-tenants/admin-tenants.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.22.10\n */\nimport {\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 BrandingRead,\n BrandingWrite,\n CapabilityProvider,\n CustomerActivationRead,\n CustomerActivationWrite,\n CustomerHelpWrite,\n CustomerRequestPage,\n CustomerRequestRead,\n CustomerRequestUpdateWrite,\n HTTPExceptionResponse,\n ListStaffCustomerRequestsParams,\n SearchTenantsParams,\n ServiceCredentialWrite,\n ServiceRead,\n ServiceSettingsWrite,\n TenantDirectoryParams,\n TenantSearchPage,\n TenantSettingsRead,\n TenantSettingsUpdateWrite,\n UniversePaletteWrite,\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 getListStaffCustomerRequestsUrl = (params?: ListStaffCustomerRequestsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/admin/customer-requests?${stringifiedParams}` : `/admin/customer-requests`\n}\n\n/**\n * @summary List Staff Customer Requests\n */\nexport const listStaffCustomerRequests = async (params?: ListStaffCustomerRequestsParams, options?: Parameters<typeof request>[1]): Promise<CustomerRequestPage> => {\n\n return request<CustomerRequestPage>(getListStaffCustomerRequestsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListStaffCustomerRequestsQueryKey = (params?: ListStaffCustomerRequestsParams,) => {\n return [\n `/admin/customer-requests`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getListStaffCustomerRequestsQueryOptions = <TData = Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: ListStaffCustomerRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListStaffCustomerRequestsQueryKey(params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listStaffCustomerRequests>>> = ({ signal }) => listStaffCustomerRequests(params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListStaffCustomerRequestsQueryResult = NonNullable<Awaited<ReturnType<typeof listStaffCustomerRequests>>>\nexport type ListStaffCustomerRequestsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListStaffCustomerRequests<TData = Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: undefined | ListStaffCustomerRequestsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listStaffCustomerRequests>>,\n TError,\n Awaited<ReturnType<typeof listStaffCustomerRequests>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListStaffCustomerRequests<TData = Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: ListStaffCustomerRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listStaffCustomerRequests>>,\n TError,\n Awaited<ReturnType<typeof listStaffCustomerRequests>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListStaffCustomerRequests<TData = Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: ListStaffCustomerRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Staff Customer Requests\n */\n\nexport function useListStaffCustomerRequests<TData = Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: ListStaffCustomerRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listStaffCustomerRequests>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListStaffCustomerRequestsQueryOptions(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 getUpdateCustomerRequestUrl = (requestId: number,) => {\n\n\n\n\n return `/admin/customer-requests/${requestId}`\n}\n\n/**\n * @summary Update Customer Request\n */\nexport const updateCustomerRequest = async (requestId: number,\n customerRequestUpdateWrite: CustomerRequestUpdateWrite, options?: Parameters<typeof request>[1]): Promise<CustomerRequestRead> => {\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<CustomerRequestRead>(getUpdateCustomerRequestUrl(requestId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(customerRequestUpdateWrite)\n }\n);}\n\n\n\n\n\nexport const getUpdateCustomerRequestMutationKey = () => ['updateCustomerRequest'] as const;\n\nexport const getUpdateCustomerRequestMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateCustomerRequest>>, TError,UpdateCustomerRequestMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof updateCustomerRequest>>, TError,UpdateCustomerRequestMutationVariables, TContext> => {\n\nconst mutationKey = getUpdateCustomerRequestMutationKey();\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 updateCustomerRequest>>, UpdateCustomerRequestMutationVariables> = (props) => {\n const {requestId,data} = props ?? {};\n\n return updateCustomerRequest(requestId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type UpdateCustomerRequestMutationResult = NonNullable<Awaited<ReturnType<typeof updateCustomerRequest>>>\n export type UpdateCustomerRequestMutationBody = BodyType<CustomerRequestUpdateWrite>\n export type UpdateCustomerRequestMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type UpdateCustomerRequestMutationVariables = {requestId: number;data: BodyType<CustomerRequestUpdateWrite>}\n\n /**\n * @summary Update Customer Request\n */\nexport const useUpdateCustomerRequest = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateCustomerRequest>>, TError,UpdateCustomerRequestMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof updateCustomerRequest>>,\n TError,\n UpdateCustomerRequestMutationVariables,\n TContext\n > => {\n return useMutation(getUpdateCustomerRequestMutationOptions(options), queryClient);\n }\n export const getConfigureEditorPresentationUrl = (editorId: number,) => {\n\n\n\n\n return `/admin/editors/${editorId}/presentation`\n}\n\n/**\n * Update the global publisher artwork shown on an entitled profile's pack card.\n * @summary Configure Editor Presentation\n */\nexport const configureEditorPresentation = async (editorId: number,\n brandingWrite: BrandingWrite, options?: Parameters<typeof request>[1]): Promise<BrandingRead> => {\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<BrandingRead>(getConfigureEditorPresentationUrl(editorId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(brandingWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureEditorPresentationMutationKey = () => ['configureEditorPresentation'] as const;\n\nexport const getConfigureEditorPresentationMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureEditorPresentation>>, TError,ConfigureEditorPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureEditorPresentation>>, TError,ConfigureEditorPresentationMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureEditorPresentationMutationKey();\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 configureEditorPresentation>>, ConfigureEditorPresentationMutationVariables> = (props) => {\n const {editorId,data} = props ?? {};\n\n return configureEditorPresentation(editorId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureEditorPresentationMutationResult = NonNullable<Awaited<ReturnType<typeof configureEditorPresentation>>>\n export type ConfigureEditorPresentationMutationBody = BodyType<BrandingWrite>\n export type ConfigureEditorPresentationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureEditorPresentationMutationVariables = {editorId: number;data: BodyType<BrandingWrite>}\n\n /**\n * @summary Configure Editor Presentation\n */\nexport const useConfigureEditorPresentation = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureEditorPresentation>>, TError,ConfigureEditorPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureEditorPresentation>>,\n TError,\n ConfigureEditorPresentationMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureEditorPresentationMutationOptions(options), queryClient);\n }\n export const getConfigurePackPresentationUrl = (packId: number,) => {\n\n\n\n\n return `/admin/packs/${packId}/presentation`\n}\n\n/**\n * @summary Configure Pack Presentation\n */\nexport const configurePackPresentation = async (packId: number,\n brandingWrite: BrandingWrite, options?: Parameters<typeof request>[1]): Promise<BrandingRead> => {\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<BrandingRead>(getConfigurePackPresentationUrl(packId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(brandingWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigurePackPresentationMutationKey = () => ['configurePackPresentation'] as const;\n\nexport const getConfigurePackPresentationMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configurePackPresentation>>, TError,ConfigurePackPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configurePackPresentation>>, TError,ConfigurePackPresentationMutationVariables, TContext> => {\n\nconst mutationKey = getConfigurePackPresentationMutationKey();\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 configurePackPresentation>>, ConfigurePackPresentationMutationVariables> = (props) => {\n const {packId,data} = props ?? {};\n\n return configurePackPresentation(packId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigurePackPresentationMutationResult = NonNullable<Awaited<ReturnType<typeof configurePackPresentation>>>\n export type ConfigurePackPresentationMutationBody = BodyType<BrandingWrite>\n export type ConfigurePackPresentationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigurePackPresentationMutationVariables = {packId: number;data: BodyType<BrandingWrite>}\n\n /**\n * @summary Configure Pack Presentation\n */\nexport const useConfigurePackPresentation = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configurePackPresentation>>, TError,ConfigurePackPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configurePackPresentation>>,\n TError,\n ConfigurePackPresentationMutationVariables,\n TContext\n > => {\n return useMutation(getConfigurePackPresentationMutationOptions(options), queryClient);\n }\n export const getConfigurePartnerPresentationUrl = (provider: CapabilityProvider,) => {\n\n\n\n\n return `/admin/partners/${provider}/presentation`\n}\n\n/**\n * @summary Configure Partner Presentation\n */\nexport const configurePartnerPresentation = async (provider: CapabilityProvider,\n brandingWrite: BrandingWrite, options?: Parameters<typeof request>[1]): Promise<BrandingRead> => {\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<BrandingRead>(getConfigurePartnerPresentationUrl(provider),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(brandingWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigurePartnerPresentationMutationKey = () => ['configurePartnerPresentation'] as const;\n\nexport const getConfigurePartnerPresentationMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configurePartnerPresentation>>, TError,ConfigurePartnerPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configurePartnerPresentation>>, TError,ConfigurePartnerPresentationMutationVariables, TContext> => {\n\nconst mutationKey = getConfigurePartnerPresentationMutationKey();\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 configurePartnerPresentation>>, ConfigurePartnerPresentationMutationVariables> = (props) => {\n const {provider,data} = props ?? {};\n\n return configurePartnerPresentation(provider,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigurePartnerPresentationMutationResult = NonNullable<Awaited<ReturnType<typeof configurePartnerPresentation>>>\n export type ConfigurePartnerPresentationMutationBody = BodyType<BrandingWrite>\n export type ConfigurePartnerPresentationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigurePartnerPresentationMutationVariables = {provider: CapabilityProvider;data: BodyType<BrandingWrite>}\n\n /**\n * @summary Configure Partner Presentation\n */\nexport const useConfigurePartnerPresentation = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configurePartnerPresentation>>, TError,ConfigurePartnerPresentationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configurePartnerPresentation>>,\n TError,\n ConfigurePartnerPresentationMutationVariables,\n TContext\n > => {\n return useMutation(getConfigurePartnerPresentationMutationOptions(options), queryClient);\n }\n export const getListTenantsUrl = () => {\n\n\n\n\n return `/admin/tenants`\n}\n\n/**\n * The tenants this operator administers.\n *\n * For a library administrator that is one row, and returning a list of one is\n * better than a bare object: the client renders the same picker whether it is\n * talking to a library, a consortium or the vendor.\n * @summary List Tenants\n */\nexport const listTenants = async ( options?: Parameters<typeof request>[1]): Promise<TenantSettingsRead[]> => {\n\n return request<TenantSettingsRead[]>(getListTenantsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListTenantsQueryKey = () => {\n return [\n `/admin/tenants`\n ] as const;\n }\n\n\nexport const getListTenantsQueryOptions = <TData = Awaited<ReturnType<typeof listTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListTenantsQueryKey();\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listTenants>>> = ({ signal }) => listTenants({ signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListTenantsQueryResult = NonNullable<Awaited<ReturnType<typeof listTenants>>>\nexport type ListTenantsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListTenants<TData = Awaited<ReturnType<typeof listTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listTenants>>,\n TError,\n Awaited<ReturnType<typeof listTenants>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListTenants<TData = Awaited<ReturnType<typeof listTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listTenants>>,\n TError,\n Awaited<ReturnType<typeof listTenants>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListTenants<TData = Awaited<ReturnType<typeof listTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Tenants\n */\n\nexport function useListTenants<TData = Awaited<ReturnType<typeof listTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListTenantsQueryOptions(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 getTenantDirectoryUrl = (params?: TenantDirectoryParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/admin/tenants/directory?${stringifiedParams}` : `/admin/tenants/directory`\n}\n\n/**\n * Browse tenant summaries within the employee's scope, one bounded page.\n * @summary Tenant Directory\n */\nexport const tenantDirectory = async (params?: TenantDirectoryParams, options?: Parameters<typeof request>[1]): Promise<TenantSearchPage> => {\n\n return request<TenantSearchPage>(getTenantDirectoryUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getTenantDirectoryQueryKey = (params?: TenantDirectoryParams,) => {\n return [\n `/admin/tenants/directory`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getTenantDirectoryQueryOptions = <TData = Awaited<ReturnType<typeof tenantDirectory>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: TenantDirectoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getTenantDirectoryQueryKey(params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof tenantDirectory>>> = ({ signal }) => tenantDirectory(params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type TenantDirectoryQueryResult = NonNullable<Awaited<ReturnType<typeof tenantDirectory>>>\nexport type TenantDirectoryQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useTenantDirectory<TData = Awaited<ReturnType<typeof tenantDirectory>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: undefined | TenantDirectoryParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof tenantDirectory>>,\n TError,\n Awaited<ReturnType<typeof tenantDirectory>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useTenantDirectory<TData = Awaited<ReturnType<typeof tenantDirectory>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: TenantDirectoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof tenantDirectory>>,\n TError,\n Awaited<ReturnType<typeof tenantDirectory>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useTenantDirectory<TData = Awaited<ReturnType<typeof tenantDirectory>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: TenantDirectoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Tenant Directory\n */\n\nexport function useTenantDirectory<TData = Awaited<ReturnType<typeof tenantDirectory>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: TenantDirectoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof tenantDirectory>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getTenantDirectoryQueryOptions(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 getSearchTenantsUrl = (params: SearchTenantsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/admin/tenants/search?${stringifiedParams}` : `/admin/tenants/search`\n}\n\n/**\n * Find tenants using Elasticsearch within the employee's tenant scope.\n * @summary Search Tenants\n */\nexport const searchTenants = async (params: SearchTenantsParams, options?: Parameters<typeof request>[1]): Promise<TenantSearchPage> => {\n\n return request<TenantSearchPage>(getSearchTenantsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getSearchTenantsQueryKey = (params?: SearchTenantsParams,) => {\n return [\n `/admin/tenants/search`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getSearchTenantsQueryOptions = <TData = Awaited<ReturnType<typeof searchTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params: SearchTenantsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getSearchTenantsQueryKey(params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof searchTenants>>> = ({ signal }) => searchTenants(params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type SearchTenantsQueryResult = NonNullable<Awaited<ReturnType<typeof searchTenants>>>\nexport type SearchTenantsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useSearchTenants<TData = Awaited<ReturnType<typeof searchTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: SearchTenantsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof searchTenants>>,\n TError,\n Awaited<ReturnType<typeof searchTenants>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useSearchTenants<TData = Awaited<ReturnType<typeof searchTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: SearchTenantsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof searchTenants>>,\n TError,\n Awaited<ReturnType<typeof searchTenants>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useSearchTenants<TData = Awaited<ReturnType<typeof searchTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: SearchTenantsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Search Tenants\n */\n\nexport function useSearchTenants<TData = Awaited<ReturnType<typeof searchTenants>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: SearchTenantsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof searchTenants>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getSearchTenantsQueryOptions(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 getReadTenantUrl = (tenantId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}`\n}\n\n/**\n * One tenant's configuration.\n * @summary Read Tenant\n */\nexport const readTenant = async (tenantId: number, options?: Parameters<typeof request>[1]): Promise<TenantSettingsRead> => {\n\n return request<TenantSettingsRead>(getReadTenantUrl(tenantId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getReadTenantQueryKey = (tenantId: number,) => {\n return [\n `/admin/tenants/${tenantId}`\n ] as const;\n }\n\n\nexport const getReadTenantQueryOptions = <TData = Awaited<ReturnType<typeof readTenant>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(tenantId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getReadTenantQueryKey(tenantId);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof readTenant>>> = ({ signal }) => readTenant(tenantId, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: tenantId !== null && tenantId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ReadTenantQueryResult = NonNullable<Awaited<ReturnType<typeof readTenant>>>\nexport type ReadTenantQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useReadTenant<TData = Awaited<ReturnType<typeof readTenant>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n tenantId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof readTenant>>,\n TError,\n Awaited<ReturnType<typeof readTenant>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadTenant<TData = Awaited<ReturnType<typeof readTenant>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n tenantId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof readTenant>>,\n TError,\n Awaited<ReturnType<typeof readTenant>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadTenant<TData = Awaited<ReturnType<typeof readTenant>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n tenantId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read Tenant\n */\n\nexport function useReadTenant<TData = Awaited<ReturnType<typeof readTenant>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n tenantId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readTenant>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getReadTenantQueryOptions(tenantId,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 getUpdateTenantUrl = (tenantId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}`\n}\n\n/**\n * Change a tenant's configuration. Audited.\n *\n * The two membership flags are mutually exclusive and the database says so —\n * ``ck_tenant_individual_accounts_exclusive``. Checked here too, because a\n * constraint violation surfaces as a 500 and this is a 422: the operator sent\n * something contradictory and can fix it.\n * @summary Update Tenant\n */\nexport const updateTenant = async (tenantId: number,\n tenantSettingsUpdateWrite: TenantSettingsUpdateWrite, options?: Parameters<typeof request>[1]): Promise<TenantSettingsRead> => {\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<TenantSettingsRead>(getUpdateTenantUrl(tenantId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(tenantSettingsUpdateWrite)\n }\n);}\n\n\n\n\n\nexport const getUpdateTenantMutationKey = () => ['updateTenant'] as const;\n\nexport const getUpdateTenantMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateTenant>>, TError,UpdateTenantMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof updateTenant>>, TError,UpdateTenantMutationVariables, TContext> => {\n\nconst mutationKey = getUpdateTenantMutationKey();\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 updateTenant>>, UpdateTenantMutationVariables> = (props) => {\n const {tenantId,data} = props ?? {};\n\n return updateTenant(tenantId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type UpdateTenantMutationResult = NonNullable<Awaited<ReturnType<typeof updateTenant>>>\n export type UpdateTenantMutationBody = BodyType<TenantSettingsUpdateWrite>\n export type UpdateTenantMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type UpdateTenantMutationVariables = {tenantId: number;data: BodyType<TenantSettingsUpdateWrite>}\n\n /**\n * @summary Update Tenant\n */\nexport const useUpdateTenant = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateTenant>>, TError,UpdateTenantMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof updateTenant>>,\n TError,\n UpdateTenantMutationVariables,\n TContext\n > => {\n return useMutation(getUpdateTenantMutationOptions(options), queryClient);\n }\n export const getConfigureCustomerActivationUrl = (tenantId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}/activation-code`\n}\n\n/**\n * Mozaik staff set registration quota/expiry; customers cannot refill their own budget.\n * @summary Configure Customer Activation\n */\nexport const configureCustomerActivation = async (tenantId: number,\n customerActivationWrite: CustomerActivationWrite, options?: Parameters<typeof request>[1]): Promise<CustomerActivationRead> => {\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<CustomerActivationRead>(getConfigureCustomerActivationUrl(tenantId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(customerActivationWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureCustomerActivationMutationKey = () => ['configureCustomerActivation'] as const;\n\nexport const getConfigureCustomerActivationMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureCustomerActivation>>, TError,ConfigureCustomerActivationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureCustomerActivation>>, TError,ConfigureCustomerActivationMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureCustomerActivationMutationKey();\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 configureCustomerActivation>>, ConfigureCustomerActivationMutationVariables> = (props) => {\n const {tenantId,data} = props ?? {};\n\n return configureCustomerActivation(tenantId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureCustomerActivationMutationResult = NonNullable<Awaited<ReturnType<typeof configureCustomerActivation>>>\n export type ConfigureCustomerActivationMutationBody = BodyType<CustomerActivationWrite>\n export type ConfigureCustomerActivationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureCustomerActivationMutationVariables = {tenantId: number;data: BodyType<CustomerActivationWrite>}\n\n /**\n * @summary Configure Customer Activation\n */\nexport const useConfigureCustomerActivation = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureCustomerActivation>>, TError,ConfigureCustomerActivationMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureCustomerActivation>>,\n TError,\n ConfigureCustomerActivationMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureCustomerActivationMutationOptions(options), queryClient);\n }\n export const getConfigureCustomerHelpUrl = (tenantId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}/customer-help`\n}\n\n/**\n * @summary Configure Customer Help\n */\nexport const configureCustomerHelp = async (tenantId: number,\n customerHelpWrite: CustomerHelpWrite, options?: Parameters<typeof request>[1]): Promise<CustomerHelpWrite> => {\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<CustomerHelpWrite>(getConfigureCustomerHelpUrl(tenantId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(customerHelpWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureCustomerHelpMutationKey = () => ['configureCustomerHelp'] as const;\n\nexport const getConfigureCustomerHelpMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureCustomerHelp>>, TError,ConfigureCustomerHelpMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureCustomerHelp>>, TError,ConfigureCustomerHelpMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureCustomerHelpMutationKey();\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 configureCustomerHelp>>, ConfigureCustomerHelpMutationVariables> = (props) => {\n const {tenantId,data} = props ?? {};\n\n return configureCustomerHelp(tenantId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureCustomerHelpMutationResult = NonNullable<Awaited<ReturnType<typeof configureCustomerHelp>>>\n export type ConfigureCustomerHelpMutationBody = BodyType<CustomerHelpWrite>\n export type ConfigureCustomerHelpMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureCustomerHelpMutationVariables = {tenantId: number;data: BodyType<CustomerHelpWrite>}\n\n /**\n * @summary Configure Customer Help\n */\nexport const useConfigureCustomerHelp = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureCustomerHelp>>, TError,ConfigureCustomerHelpMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureCustomerHelp>>,\n TError,\n ConfigureCustomerHelpMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureCustomerHelpMutationOptions(options), queryClient);\n }\n export const getConfigureServiceUrl = (tenantId: number,\n serviceId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}/services/${serviceId}`\n}\n\n/**\n * Replace editorial settings of an existing service; never moves it to another tenant.\n * @summary Configure Service\n */\nexport const configureService = async (tenantId: number,\n serviceId: number,\n serviceSettingsWrite: ServiceSettingsWrite, options?: Parameters<typeof request>[1]): Promise<ServiceRead> => {\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<ServiceRead>(getConfigureServiceUrl(tenantId,serviceId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(serviceSettingsWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureServiceMutationKey = () => ['configureService'] as const;\n\nexport const getConfigureServiceMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureService>>, TError,ConfigureServiceMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureService>>, TError,ConfigureServiceMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureServiceMutationKey();\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 configureService>>, ConfigureServiceMutationVariables> = (props) => {\n const {tenantId,serviceId,data} = props ?? {};\n\n return configureService(tenantId,serviceId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureServiceMutationResult = NonNullable<Awaited<ReturnType<typeof configureService>>>\n export type ConfigureServiceMutationBody = BodyType<ServiceSettingsWrite>\n export type ConfigureServiceMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureServiceMutationVariables = {tenantId: number;serviceId: number;data: BodyType<ServiceSettingsWrite>}\n\n /**\n * @summary Configure Service\n */\nexport const useConfigureService = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureService>>, TError,ConfigureServiceMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureService>>,\n TError,\n ConfigureServiceMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureServiceMutationOptions(options), queryClient);\n }\n export const getConfigureServiceCredentialUrl = (tenantId: number,\n serviceId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}/services/${serviceId}/credential`\n}\n\n/**\n * Store an explicitly reviewed provider reference; never infer it from a remapped tenant ID.\n * @summary Configure Service Credential\n */\nexport const configureServiceCredential = async (tenantId: number,\n serviceId: number,\n serviceCredentialWrite: ServiceCredentialWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getConfigureServiceCredentialUrl(tenantId,serviceId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(serviceCredentialWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureServiceCredentialMutationKey = () => ['configureServiceCredential'] as const;\n\nexport const getConfigureServiceCredentialMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureServiceCredential>>, TError,ConfigureServiceCredentialMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureServiceCredential>>, TError,ConfigureServiceCredentialMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureServiceCredentialMutationKey();\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 configureServiceCredential>>, ConfigureServiceCredentialMutationVariables> = (props) => {\n const {tenantId,serviceId,data} = props ?? {};\n\n return configureServiceCredential(tenantId,serviceId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureServiceCredentialMutationResult = NonNullable<Awaited<ReturnType<typeof configureServiceCredential>>>\n export type ConfigureServiceCredentialMutationBody = BodyType<ServiceCredentialWrite>\n export type ConfigureServiceCredentialMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureServiceCredentialMutationVariables = {tenantId: number;serviceId: number;data: BodyType<ServiceCredentialWrite>}\n\n /**\n * @summary Configure Service Credential\n */\nexport const useConfigureServiceCredential = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureServiceCredential>>, TError,ConfigureServiceCredentialMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureServiceCredential>>,\n TError,\n ConfigureServiceCredentialMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureServiceCredentialMutationOptions(options), queryClient);\n }\n export const getConfigureUniversePaletteUrl = (tenantId: number,) => {\n\n\n\n\n return `/admin/tenants/${tenantId}/universe-palette`\n}\n\n/**\n * @summary Configure Universe Palette\n */\nexport const configureUniversePalette = async (tenantId: number,\n universePaletteWrite: UniversePaletteWrite, options?: Parameters<typeof request>[1]): Promise<UniversePaletteWrite> => {\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<UniversePaletteWrite>(getConfigureUniversePaletteUrl(tenantId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(universePaletteWrite)\n }\n);}\n\n\n\n\n\nexport const getConfigureUniversePaletteMutationKey = () => ['configureUniversePalette'] as const;\n\nexport const getConfigureUniversePaletteMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureUniversePalette>>, TError,ConfigureUniversePaletteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof configureUniversePalette>>, TError,ConfigureUniversePaletteMutationVariables, TContext> => {\n\nconst mutationKey = getConfigureUniversePaletteMutationKey();\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 configureUniversePalette>>, ConfigureUniversePaletteMutationVariables> = (props) => {\n const {tenantId,data} = props ?? {};\n\n return configureUniversePalette(tenantId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type ConfigureUniversePaletteMutationResult = NonNullable<Awaited<ReturnType<typeof configureUniversePalette>>>\n export type ConfigureUniversePaletteMutationBody = BodyType<UniversePaletteWrite>\n export type ConfigureUniversePaletteMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type ConfigureUniversePaletteMutationVariables = {tenantId: number;data: BodyType<UniversePaletteWrite>}\n\n /**\n * @summary Configure Universe Palette\n */\nexport const useConfigureUniversePalette = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof configureUniversePalette>>, TError,ConfigureUniversePaletteMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof configureUniversePalette>>,\n TError,\n ConfigureUniversePaletteMutationVariables,\n TContext\n > => {\n return useMutation(getConfigureUniversePaletteMutationOptions(options), queryClient);\n }\n"],"mappings":";;;;;;;;;;;AA0DA,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,mCAAmC,WAA8C;CAC5F,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,4BAA4B,sBAAsB;AAC1F;;;;AAKA,MAAa,4BAA4B,OAAO,QAA0C,YAA0E;CAElK,OAAO,QAA6B,gCAAgC,MAAM,GAC1E;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAMF,MAAa,wCAAwC,WAA8C;CAC/F,OAAO,CACP,4BAA4B,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC,CACrD;AACA;AAGJ,MAAa,4CAAgL,QAA0C,YAClO;CAEL,MAAM,EAAC,OAAO,cAAc,SAAS,mBAAkB,WAAW,CAAC;CAEjE,MAAM,WAAY,cAAc,YAAY,qCAAqC,MAAM;CAIrF,MAAM,WAAiF,EAAE,aAAa,0BAA0B,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAMtK,OAAQ;EAAE;EAAU;EAAS,GAAG;CAAY;AAC/C;;;;AAk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OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAA8B,+BAA+B,QAAQ,GAC1E;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,oBAAoB;CAC3C,CACF;AAAE;AAMF,MAAa,+CAA+C,CAAC,0BAA0B;AAEvF,MAAa,8CACW,YACmH;CAE3I,MAAM,cAAc,uCAAuC;CAC3D,MAAM,EAAC,UAAU,iBAAiB,SAAS,mBAAkB,UACvD,QAAQ,YAAY,iBAAiB,QAAQ,YAAY,QAAQ,SAAS,cAC1E,UACE;EAAC,GAAG;EAAS,UAAU;GAAC,GAAG,QAAQ;GAAU;EAAW;CAAC,IACzD;EAAC,UAAU,EAAE,YAAa;EAAG,SAAS,KAAA;CAAS;CAKjD,MAAM,cAAiI,UAAU;EAC7I,MAAM,EAAC,UAAS,SAAQ,SAAS,CAAC;EAElC,OAAQ,yBAAyB,UAAS,MAAK,cAAc;CAC/D;CAON,OAAQ;EAAE;EAAY,GAAG;CAAgB;AAAC;;;;AAU5C,MAAa,+BACW,SACrB,gBAKQ;CACL,OAAO,YAAY,2CAA2C,OAAO,GAAG,WAAW;AACrF"}
@@ -1,5 +1,5 @@
1
1
 
2
- import { Eo as ListExpiringDocumentsParams, F as TutoringRequestAdminWrite, Fx as AiDraftRead, I as TutoringRequestAdminCloseWrite, L as TutoringQueuePage, M as TutoringRequestStaffRead, Px as AiDraftReviewWrite, Qd as EducationalGoalWrite, T as ValidationErrorResponse, To as ListFeedbackParams, U as TutoringFeedbackModerationWrite, Uo as ListAllRequestsParams, V as TutoringFeedbackPage, Yo as LevelRead, ad as HTTPExceptionResponse, co as ListPractitionersParams, di as PractitionerWrite, ef as EducationalGoalRead, gt as SubjectRead, hi as PractitionerDocumentListRead, mi as PractitionerRead, mt as SubjectWrite, pi as PractitionerPage, qo as LevelWrite } from "../chunks/index.js";
2
+ import { Ao as ListPractitionersParams, Dd as HTTPExceptionResponse, E as ValidationErrorResponse, Fi as PractitionerPage, H as TutoringFeedbackPage, I as TutoringRequestAdminWrite, Ii as PractitionerRead, Jo as ListExpiringDocumentsParams, L as TutoringRequestAdminCloseWrite, Li as PractitionerDocumentListRead, N as TutoringRequestStaffRead, Ni as PractitionerWrite, R as TutoringQueuePage, Sf as EducationalGoalRead, W as TutoringFeedbackModerationWrite, _s as LevelRead, _t as SubjectRead, bf as EducationalGoalWrite, cS as AiDraftReviewWrite, ds as ListAllRequestsParams, hs as LevelWrite, ht as SubjectWrite, lS as AiDraftRead, qo as ListFeedbackParams } from "../chunks/index.js";
3
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/admin-tutoring/admin-tutoring.d.ts
@@ -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.20.4
10
+ * OpenAPI spec version: 0.22.10
11
11
  */
12
12
  const withQueryKey = (query, queryKey) => {
13
13
  const result = { queryKey };