@learnorama/mozaik-sdk 0.1.0-staging.11.1 → 0.1.0-staging.13.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 (90) hide show
  1. package/README.md +183 -5
  2. package/dist/api/account.d.ts +1 -1
  3. package/dist/api/admin-catalogue.d.ts +1 -1
  4. package/dist/api/admin-consumption.d.ts +1 -1
  5. package/dist/api/admin-patrons.d.ts +1 -1
  6. package/dist/api/admin-reviews.d.ts +1 -1
  7. package/dist/api/admin-support.d.ts +1 -1
  8. package/dist/api/admin-tutoring.d.ts +1 -1
  9. package/dist/api/auth.d.ts +1 -1
  10. package/dist/api/biblio-catalogue.d.ts +1 -1
  11. package/dist/api/biblio-home.d.ts +1 -1
  12. package/dist/api/biblio-library.d.ts +1 -1
  13. package/dist/api/biblio-nextory.d.ts +1 -1
  14. package/dist/api/biblio-press.d.ts +1 -1
  15. package/dist/api/consumption.d.ts +1 -1
  16. package/dist/api/cvs-app.d.ts +1 -1
  17. package/dist/api/cvs-documents.d.ts +1 -1
  18. package/dist/api/cvs-favorites.d.ts +1 -1
  19. package/dist/api/cvs-loans.d.ts +1 -1
  20. package/dist/api/cvs-payments.d.ts +49 -0
  21. package/dist/api/cvs-payments.js +84 -0
  22. package/dist/api/cvs-payments.js.map +1 -0
  23. package/dist/api/index.d.ts +2 -1
  24. package/dist/api/index.js +4 -3
  25. package/dist/api/partner-catalogue.d.ts +1 -1
  26. package/dist/api/partner-reader.d.ts +1 -1
  27. package/dist/api/tutoring-catalogue.d.ts +1 -1
  28. package/dist/api/tutoring-chat.d.ts +1 -1
  29. package/dist/api/tutoring-dispatch.d.ts +1 -1
  30. package/dist/api/tutoring-requests.d.ts +1 -1
  31. package/dist/auth.d.ts +10 -0
  32. package/dist/auth.js +451 -0
  33. package/dist/auth.js.map +1 -0
  34. package/dist/chat.d.ts +3 -0
  35. package/dist/chat.js +3 -0
  36. package/dist/chunks/client2.d.ts +53 -0
  37. package/dist/chunks/connection.d.ts +28 -0
  38. package/dist/chunks/connection.js +141 -0
  39. package/dist/chunks/connection.js.map +1 -0
  40. package/dist/chunks/index.d.ts +198 -1
  41. package/dist/index.d.ts +2 -2
  42. package/dist/index.js +2 -2
  43. package/dist/index.js.map +1 -1
  44. package/dist/models.d.ts +2 -2
  45. package/dist/models.js +16 -1
  46. package/dist/models.js.map +1 -1
  47. package/dist/react/account.d.ts +1 -1
  48. package/dist/react/admin-catalogue.d.ts +1 -1
  49. package/dist/react/admin-consumption.d.ts +1 -1
  50. package/dist/react/admin-licenses.d.ts +1 -1
  51. package/dist/react/admin-patrons.d.ts +1 -1
  52. package/dist/react/admin-reviews.d.ts +1 -1
  53. package/dist/react/admin-roles.d.ts +1 -1
  54. package/dist/react/admin-support.d.ts +1 -1
  55. package/dist/react/admin-tenants.d.ts +1 -1
  56. package/dist/react/admin-tutoring.d.ts +1 -1
  57. package/dist/react/auth.d.ts +1 -1
  58. package/dist/react/biblio-catalogue.d.ts +1 -1
  59. package/dist/react/biblio-home.d.ts +1 -1
  60. package/dist/react/biblio-library.d.ts +1 -1
  61. package/dist/react/biblio-nextory.d.ts +1 -1
  62. package/dist/react/biblio-press.d.ts +1 -1
  63. package/dist/react/biblio-search.d.ts +1 -1
  64. package/dist/react/biblio-telemetry.d.ts +1 -1
  65. package/dist/react/chat.d.ts +36 -0
  66. package/dist/react/chat.js +234 -0
  67. package/dist/react/chat.js.map +1 -0
  68. package/dist/react/consumption.d.ts +1 -1
  69. package/dist/react/cvs-app.d.ts +1 -1
  70. package/dist/react/cvs-documents.d.ts +1 -1
  71. package/dist/react/cvs-favorites.d.ts +1 -1
  72. package/dist/react/cvs-loans.d.ts +1 -1
  73. package/dist/react/cvs-payments.d.ts +123 -0
  74. package/dist/react/cvs-payments.js +181 -0
  75. package/dist/react/cvs-payments.js.map +1 -0
  76. package/dist/react/cvs-streaming.d.ts +1 -1
  77. package/dist/react/index.d.ts +2 -1
  78. package/dist/react/index.js +2 -1
  79. package/dist/react/partner-catalogue.d.ts +1 -1
  80. package/dist/react/partner-reader.d.ts +1 -1
  81. package/dist/react/profiles.d.ts +1 -1
  82. package/dist/react/sso.d.ts +15 -0
  83. package/dist/react/sso.js +48 -0
  84. package/dist/react/sso.js.map +1 -0
  85. package/dist/react/tutoring-catalogue.d.ts +1 -1
  86. package/dist/react/tutoring-chat.d.ts +1 -1
  87. package/dist/react/tutoring-dispatch.d.ts +1 -1
  88. package/dist/react/tutoring-practitioner.d.ts +1 -1
  89. package/dist/react/tutoring-requests.d.ts +1 -1
  90. package/package.json +23 -7
package/README.md CHANGED
@@ -35,9 +35,120 @@ The token getter runs for every request, so refreshing a token does not require
35
35
  recreating the client. Clients can also supply default headers and a custom fetch
36
36
  implementation. Request options accept headers and an AbortSignal.
37
37
 
38
- There is no global token storage, automatic sign-in or automatic replay of failed
39
- writes. The application owns its PKCE flow and session refresh. Backend-owned
40
- Keycloak client secrets must never be supplied to this SDK.
38
+ The basic `createClient` transport uses the token getter you provide. For managed
39
+ PKCE and session refresh, use the SSO client below. Neither transport automatically
40
+ replays failed application writes. Backend-owned Keycloak client secrets must
41
+ never be supplied to this SDK.
42
+
43
+ ## Google Workspace and partner SSO
44
+
45
+ ```ts
46
+ // auth.ts — one instance for the browser application
47
+ import { createMozaikAuth } from '@learnorama/mozaik-sdk/auth';
48
+
49
+ export const auth = createMozaikAuth({
50
+ baseUrl: 'https://api.stg.mozaik.co',
51
+ redirectUri: 'https://your-app.example/auth/callback',
52
+ });
53
+
54
+ // A click handler: prepare returns a URL; navigation stays under your control.
55
+ const { url } = await auth.prepareInternalSso({ returnTo: '/requests' });
56
+ window.location.assign(url);
57
+
58
+ // On /auth/callback, using the same configuration after the redirect:
59
+ const { account, returnTo } = await auth.completeSso();
60
+ window.location.replace(returnTo);
61
+ ```
62
+
63
+ Register the application's callback URL in Keycloak and allow its origin in the
64
+ backend's `AUTH_ALLOWED_REDIRECT_ORIGINS`. Replace `your-app.example` with your
65
+ frontend origin. Start login on that origin so the callback can read the same
66
+ tab's transaction storage.
67
+
68
+ | Method | Behavior |
69
+ | --- | --- |
70
+ | `prepareInternalSso({ returnTo? })` | Selects the existing `google` Workspace staff provider. |
71
+ | `prepareProviderSso(alias, { returnTo? })` | Selects a registered, brokered partner; the backend validates the alias. |
72
+ | `prepareSso({ returnTo? })` | Lets the backend resolve the provider from the configured API hostname. |
73
+ | `completeSso(callbackUrl?)` | Validates and consumes the transaction, exchanges the code through the backend, and returns account, principal and return path. Defaults to the current browser URL. |
74
+ | `refresh()` | Refreshes the session; concurrent callers share one exchange. |
75
+ | `logout()` | Clears local authentication immediately and revokes the refresh token. |
76
+ | `dispose()` | Local teardown for the application owner; does not revoke the server session. |
77
+
78
+ Preparation also accepts `prompt: 'login' | 'none' | 'consent'`. Return paths must
79
+ be local absolute paths such as `/requests`, never an external URL. PKCE uses
80
+ S256; state, callback address, transaction expiry, expected provider and any
81
+ returned issuer are checked. The code exchange stays on our backend so first
82
+ login provisions the local account. Google Workspace membership and permissions
83
+ remain enforced by Keycloak and the backend.
84
+
85
+ Only short-lived PKCE transactions are saved to per-tab `sessionStorage` (ten
86
+ minutes). Access and refresh tokens stay in memory and are absent from the auth
87
+ snapshot. **Reloading the page starts without a local session**: initiate SSO again;
88
+ an existing Keycloak/Workspace session may complete it without another credential
89
+ prompt. This implementation uses full-page redirects, not popup messaging or
90
+ silent iframe authentication.
91
+
92
+ The client refreshes before expiry and on demand, coordinating token rotation.
93
+ Transient refresh failures may use an access token only until its expiry; rejected
94
+ or expired sessions clear local authentication. Remote logout errors reject the
95
+ promise while leaving the application signed out. Tokens are attached through
96
+ `auth.client`; its identity changes on login/logout and stays stable across
97
+ refreshes. Old client instances reject requests after a session change.
98
+
99
+ ## React SSO shortcut
100
+
101
+ `MozaikAuthProvider` supplies both authentication and its own TanStack Query
102
+ provider. Put SDK consumers inside it; an additional QueryClientProvider is not
103
+ needed for that subtree. `/react/auth` still contains the generated HTTP hooks;
104
+ the handwritten SSO integration is `/react/sso`.
105
+
106
+ ```tsx
107
+ import { useEffect } from 'react';
108
+ import { MozaikAuthProvider, useMozaikAuth } from '@learnorama/mozaik-sdk/react/sso';
109
+ import { useReadMe } from '@learnorama/mozaik-sdk/react/auth';
110
+ import { auth } from './auth';
111
+
112
+ export function Root() {
113
+ return <MozaikAuthProvider auth={auth}><Account /></MozaikAuthProvider>;
114
+ }
115
+
116
+ function Account() {
117
+ const { client, isAuthenticated, isLoading, error, prepareInternalSso, logout } = useMozaikAuth();
118
+ const me = useReadMe({ request: { client }, query: { enabled: isAuthenticated } });
119
+ async function signIn() {
120
+ try {
121
+ const { url } = await prepareInternalSso({ returnTo: '/requests' });
122
+ window.location.assign(url);
123
+ } catch { /* error is exposed by useMozaikAuth */ }
124
+ }
125
+ if (isAuthenticated) return <button onClick={() => { void logout().catch(() => {}); }}>Sign out {me.data?.account.email}</button>;
126
+ return <><button disabled={isLoading} onClick={() => { void signIn(); }}>Sign in with Google Workspace</button>{error && <p role="alert">{error.message}</p>}</>;
127
+ }
128
+
129
+ // Render this at /auth/callback, also inside MozaikAuthProvider.
130
+ export function SsoCallback() {
131
+ const { completeSso, error } = useMozaikAuth();
132
+ useEffect(() => {
133
+ void completeSso().then(({ returnTo }) => window.location.replace(returnTo)).catch(() => {});
134
+ }, [completeSso]);
135
+ return <p>{error ? error.message : 'Completing sign-in…'}</p>;
136
+ }
137
+ ```
138
+
139
+ Concurrent callback completions share one exchange. The callback parameters are
140
+ removed from browser history; repeated default completion calls on that cleaned
141
+ URL are safe during React remounts. Replaying an explicit consumed callback is
142
+ rejected. Login/logout replace the query cache and remount the session subtree,
143
+ preventing previous-account results from appearing. Refresh retains the cache.
144
+ For chat, use the same auth `client` and `enabled: isAuthenticated` with
145
+ `useTutoringChat`; session changes close the previous connection automatically.
146
+
147
+ Create the auth instance outside component renders, once per browser application
148
+ or per server request. The provider does not call `dispose()` on unmount: this
149
+ would invalidate the shared controller during Strict Mode's cleanup/re-setup.
150
+ The application owner may dispose it on permanent teardown. Browser operations
151
+ require Web Crypto and sessionStorage in a secure context.
41
152
 
42
153
  ## React
43
154
 
@@ -64,6 +175,73 @@ Create a separate client and QueryClient for each server-side request. Clear the
64
175
  query cache on logout, account change, or a change of acting-as/tenant context;
65
176
  generated query keys do not contain credentials or identify the current user.
66
177
 
178
+ ## ProfExpress student/teacher chat
179
+
180
+ The handwritten chat hook is published alongside the generated HTTP hooks:
181
+
182
+ ```tsx
183
+ import type { Client } from '@learnorama/mozaik-sdk';
184
+ import { useTutoringChat } from '@learnorama/mozaik-sdk/react/chat';
185
+
186
+ export function TutoringRoom({ client, requestId }: { client: Client; requestId: number }) {
187
+ const chat = useTutoringChat({ client, requestId });
188
+
189
+ async function send(body: string) {
190
+ try {
191
+ await chat.sendMessage({ body });
192
+ } catch {
193
+ // chat.sendError exposes the error; keep the draft for an explicit retry.
194
+ }
195
+ }
196
+
197
+ return (
198
+ <section>
199
+ <p>Connection: {chat.status}</p>
200
+ {chat.error && <p role="alert">Chat connection interrupted.</p>}
201
+ {chat.hasMore && (
202
+ <button disabled={chat.isLoadingOlder} onClick={() => { void chat.loadOlder().catch(() => {}); }}>
203
+ Older messages
204
+ </button>
205
+ )}
206
+ {chat.messages.map(message => <p key={message.id}>{message.body ?? 'Message removed'}</p>)}
207
+ <button disabled={chat.isSending} onClick={() => { void send('Bonjour !'); }}>Send</button>
208
+ {chat.sendError && <p role="alert">Message not confirmed. Please retry.</p>}
209
+ </section>
210
+ );
211
+ }
212
+ ```
213
+
214
+ Use this inside `QueryClientProvider`. Keep `client` stable; create a new client
215
+ when switching signed-in accounts. Pass `requestId: null` or `enabled: false`
216
+ on logout/when no room is selected. The hook closes its connection, cancels
217
+ requests and clears its private history on cleanup, including React Strict Mode.
218
+ Messages are ordered oldest first and deduplicated by ID.
219
+
220
+ The hook obtains a fresh single-use ticket for every connection; the OAuth access
221
+ token never enters the WebSocket URL. The server acknowledges the Redis
222
+ subscription before accepting the socket. The hook then loads history while
223
+ buffering live messages and retrieves missed pages after reconnecting. Network
224
+ failures reconnect with backoff; HTTP 401/403/404 and socket policy refusal stop
225
+ retries. Refresh authentication/access before enabling the hook again.
226
+
227
+ `sendMessage` uses the HTTP endpoint so success confirms persistence. Each send
228
+ gets a `clientKey`; writes are not automatically retried. For a failed send, pass
229
+ `chat.lastSend` back to `chat.sendMessage` to retain that key and avoid duplication.
230
+ For multiple simultaneous drafts, supply and retain a separate `clientKey` for
231
+ each draft yourself. `loadOlderError`, `sendError` and the connection `error` are
232
+ separate; `isSending`, `isLoading`, and `isLoadingOlder` support the corresponding UI.
233
+
234
+ Without React, import `connectTutoringChat` from `@learnorama/mozaik-sdk/chat`.
235
+ Provide `client`, `requestId`, and `onMessage`; call the returned `close()` on
236
+ cleanup. Its optional async `onConnect(signal)` callback can retrieve history;
237
+ incoming messages are buffered until it resolves. Sending and history are the
238
+ generated functions under `/api/tutoring-chat`.
239
+
240
+ Live chat messages are validated at runtime against the generated message kind
241
+ and the expected room/message shape. The chat module uses native WebSocket,
242
+ AbortSignal and secure-context `crypto.randomUUID()` APIs. It introduces no
243
+ additional production dependencies.
244
+
67
245
  ## Models and errors
68
246
 
69
247
  ```ts
@@ -89,6 +267,6 @@ are required; the backend commit SHA is metadata, not the package version.
89
267
  import { apiVersion, backendRevision, schemaSha256 } from '@learnorama/mozaik-sdk';
90
268
  ```
91
269
 
92
- TypeScript types describe the API contract; they do not validate response bodies
93
- at runtime. The package contains the client and type declarations, not application
270
+ Generated HTTP TypeScript types describe the API contract; they do not validate
271
+ response bodies at runtime. The package contains the client and type declarations, not application
94
272
  credentials or backend implementation code.
@@ -1,5 +1,5 @@
1
1
 
2
- import { $r as AccountDetailRead, B as ServiceListRead, Zr as AccountUpdateWrite } from "../chunks/index.js";
2
+ import { B as ServiceListRead, ci as AccountDetailRead, oi as AccountUpdateWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/account/account.d.ts
5
5
  export declare const getDeleteAccountUrl: () => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { C as ThemeWrite, E as ThemeRead, T as ThemeListRead, sn as ListThemesParams, w as ThemeOrderWrite } from "../chunks/index.js";
2
+ import { C as ThemeWrite, E as ThemeRead, T as ThemeListRead, mn as ListThemesParams, w as ThemeOrderWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/admin-catalogue/admin-catalogue.d.ts
5
5
  export declare const getListThemesUrl: (params?: ListThemesParams) => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { in as LiveLeaseListRead, zn as LeaseCloseWrite } from "../chunks/index.js";
2
+ import { Kn as LeaseCloseWrite, dn as LiveLeaseListRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/admin-consumption/admin-consumption.d.ts
5
5
  export declare const getListLiveLeasesUrl: () => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { Ft as PatronDetailRead, Mt as PatronUpdateWrite, Nt as PatronPage, pn as ListPatronsParams } from "../chunks/index.js";
2
+ import { Bt as PatronPage, Ht as PatronDetailRead, bn as ListPatronsParams, zt as PatronUpdateWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/admin-patrons/admin-patrons.d.ts
5
5
  export declare const getListPatronsUrl: (params?: ListPatronsParams) => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { J as ReviewModerationRead, Jt as ModerationWrite, cn as ListReviewsParams, q as ReviewPage } from "../chunks/index.js";
2
+ import { J as ReviewModerationRead, hn as ListReviewsParams, q as ReviewPage, tn as ModerationWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/admin-reviews/admin-reviews.d.ts
5
5
  export declare const getListReviewsUrl: (params?: ListReviewsParams) => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { Cr as DemoUserWrite, Wn as ImpersonationWrite, j as SupportSessionRead, wr as DemoUserRead } from "../chunks/index.js";
2
+ import { Mr as DemoUserRead, Zn as ImpersonationWrite, j as SupportSessionRead, jr as DemoUserWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/admin-support/admin-support.d.ts
5
5
  export declare const getCreateDemoUserUrl: () => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { Cn as ListExpiringDocumentsParams, Dt as PractitionerDocumentListRead, En as ListAllRequestsParams, Et as PractitionerRead, F as SubjectRead, In as LevelRead, N as SubjectWrite, Pn as LevelWrite, Sn as ListFeedbackParams, Tt as PractitionerPage, Xr as AiDraftRead, Yr as AiDraftReviewWrite, cr as EducationalGoalRead, d as TutoringQueuePage, fn as ListPractitionersParams, g as TutoringFeedbackModerationWrite, l as TutoringRequestAdminWrite, m as TutoringFeedbackPage, o as TutoringRequestStaffRead, or as EducationalGoalWrite, u as TutoringRequestAdminCloseWrite, wt as PractitionerWrite } from "../chunks/index.js";
2
+ import { An as ListExpiringDocumentsParams, Dt as PractitionerDocumentListRead, Et as PractitionerRead, F as SubjectRead, N as SubjectWrite, Nn as ListAllRequestsParams, Tt as PractitionerPage, Un as LevelRead, Vn as LevelWrite, ai as AiDraftRead, d as TutoringQueuePage, g as TutoringFeedbackModerationWrite, gr as EducationalGoalRead, ii as AiDraftReviewWrite, kn as ListFeedbackParams, l as TutoringRequestAdminWrite, m as TutoringFeedbackPage, mr as EducationalGoalWrite, o as TutoringRequestStaffRead, u as TutoringRequestAdminCloseWrite, wt as PractitionerWrite, yn as ListPractitionersParams } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/admin-tutoring/admin-tutoring.d.ts
5
5
  export declare const getListExpiringDocumentsUrl: (params?: ListExpiringDocumentsParams) => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { $t as MeRead, Dr as CredentialsWrite, Kr as AuthorizationRead, Y as RefreshWrite, jr as CodeExchangeWrite, qr as AuthorizationParams, tn as LogoutWrite, z as SessionRead } from "../chunks/index.js";
2
+ import { Fr as CredentialsWrite, Y as RefreshWrite, cn as LogoutWrite, ni as AuthorizationParams, on as MeRead, ti as AuthorizationRead, z as SessionRead, zr as CodeExchangeWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/auth/auth.d.ts
5
5
  export declare const getAuthorizationUrl: (params: AuthorizationParams) => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { An as LikeRead, Or as ContentRead, Rr as CatalogRead, Vn as LearningPathDetailRead, Wt as PackDetailRead, X as RecommendationsRead, Z as ReadRecommendationsParams, dt as ReadCatalogParams, et as ReadPackParams, fr as EditorDetailRead, lr as EditorListRead, lt as ReadEditorParams, ut as ReadCatalogThemeParams, wn as ListEditorsParams } from "../chunks/index.js";
2
+ import { Ir as ContentRead, Jn as LearningPathDetailRead, Kr as CatalogRead, Ln as LikeRead, X as RecommendationsRead, Z as ReadRecommendationsParams, Zt as PackDetailRead, _r as EditorListRead, br as EditorDetailRead, dt as ReadCatalogParams, et as ReadPackParams, jn as ListEditorsParams, lt as ReadEditorParams, ut as ReadCatalogThemeParams } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/biblio-catalogue/biblio-catalogue.d.ts
5
5
  export declare const getReadContentUrl: (contentId: number) => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { Kn as HomeFeedRead, st as ReadHomeFeedParams } from "../chunks/index.js";
2
+ import { $n as HomeFeedRead, st as ReadHomeFeedParams } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/biblio-home/biblio-home.d.ts
5
5
  export declare const getReadHomeFeedUrl: (params?: ReadHomeFeedParams) => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { $n as FavoritePage, Ct as PreferencesRead, Fr as CategoryListRead, Ht as PackListRead, Pr as CategoryPreferencesWrite, Tn as ListBiblioFavoritesParams, Zn as HistoryPage, bn as ListHistoryParams, ir as FavoriteAddWrite } from "../chunks/index.js";
2
+ import { Ct as PreferencesRead, Dn as ListHistoryParams, Hr as CategoryPreferencesWrite, Mn as ListBiblioFavoritesParams, Ur as CategoryListRead, Yt as PackListRead, fr as FavoriteAddWrite, ir as HistoryPage, sr as FavoritePage } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/biblio-library/biblio-library.d.ts
5
5
  export declare const getListBiblioCategoriesUrl: () => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { Mn as LicenseRead } from "../chunks/index.js";
2
+ import { zn as LicenseRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/biblio-nextory/biblio-nextory.d.ts
5
5
  export declare const getDeleteLicenseUrl: () => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { Q as ReadPressReviewParams, bt as PressArticleRead, dn as ListPressArticlesParams, qn as PressReviewRead, xt as PressArticleListRead } from "../chunks/index.js";
2
+ import { Q as ReadPressReviewParams, bt as PressArticleRead, er as PressReviewRead, vn as ListPressArticlesParams, xt as PressArticleListRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/biblio-press/biblio-press.d.ts
5
5
  export declare const getListPressArticlesUrl: (params?: ListPressArticlesParams) => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { Rn as LeaseRead } from "../chunks/index.js";
2
+ import { Gn as LeaseRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/consumption/consumption.d.ts
5
5
  export declare const getCloseLeaseUrl: (eventId: number) => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { At as PlaybackReportWrite, Kt as NotificationListRead, jt as PlaybackReportRead, mn as ListNotificationsParams } from "../chunks/index.js";
2
+ import { $t as NotificationListRead, At as PlaybackReportWrite, jt as PlaybackReportRead, xn as ListNotificationsParams } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/cvs-app/cvs-app.d.ts
5
5
  export declare const getListNotificationsUrl: (params?: ListNotificationsParams) => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { G as ReviewUpdateWrite, K as ReviewRead, M as SupplierGrantRead, Un as LastPositionWrite, ft as RatingUpdateWrite, hr as DocumentRead, mr as DocumentSearchWrite, vr as DocumentPage } from "../chunks/index.js";
2
+ import { Cr as DocumentRead, Er as DocumentPage, G as ReviewUpdateWrite, K as ReviewRead, M as SupplierGrantRead, Sr as DocumentSearchWrite, Xn as LastPositionWrite, ft as RatingUpdateWrite } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/cvs-documents/cvs-documents.d.ts
5
5
  export declare const getSearchDocumentsUrl: () => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { rr as SelectionRead, tr as FavoriteListRead } from "../chunks/index.js";
2
+ import { dr as SelectionRead, lr as FavoriteListRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/cvs-favorites/cvs-favorites.d.ts
5
5
  export declare const getListCvsFavoritesUrl: () => string;
@@ -1,5 +1,5 @@
1
1
 
2
- import { Ur as BorrowWrite, nn as LoanPage, rn as LoanRead, yn as ListLoansParams } from "../chunks/index.js";
2
+ import { En as ListLoansParams, Zr as BorrowWrite, ln as LoanPage, un as LoanRead } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/cvs-loans/cvs-loans.d.ts
5
5
  export declare const getListLoansUrl: (params?: ListLoansParams) => string;
@@ -0,0 +1,49 @@
1
+
2
+ import { Ft as PaymentListRead, It as PaymentRead, Mt as PaymentStartWrite, Nt as PaymentStartRead } from "../chunks/index.js";
3
+ import { c as request } from "../chunks/client.js";
4
+ //#region src/api/cvs-payments/cvs-payments.d.ts
5
+ export declare const getListPaymentsUrl: () => string;
6
+ /**
7
+ * This patron's top-ups, newest first. The legacy's ``historyPayments()``.
8
+ * @summary List Payments
9
+ */
10
+ export declare const listPayments: (options?: Parameters<typeof request>[1]) => Promise<PaymentListRead>;
11
+ export declare const getStartPaymentUrl: () => string;
12
+ /**
13
+ * Begin a top-up and get the hand-off to send the patron to.
14
+ *
15
+ * **Which provider answers is the library's setting**, not the client's
16
+ * choice. PayPal returns ``approvalUrl``; Paybox returns ``form``, because
17
+ * its hand-off is a signed POST and not a redirect. Read ``provider`` rather
18
+ * than testing which field is null.
19
+ *
20
+ * ``409`` for an amount this library does not sell — the tariff is the
21
+ * server's, because a client that may name its own price may name zero, and
22
+ * it differs per provider (Paybox sells séances at 3 €, PayPal credits at
23
+ * 5.90 €). ``503`` when the library sells nothing or its merchant account is
24
+ * unconfigured, with nothing written.
25
+ *
26
+ * Nothing is charged here and nothing is credited. This opens a pending row
27
+ * and the provider hand-off, and that is all.
28
+ *
29
+ * ``requestKey`` makes it idempotent: a retried start returns the hand-off the
30
+ * first attempt opened rather than opening a second, because a patron who
31
+ * then pays both has been charged twice for one intent.
32
+ * @summary Start Payment
33
+ */
34
+ export declare const startPayment: (paymentStartWrite: PaymentStartWrite, options?: Parameters<typeof request>[1]) => Promise<PaymentStartRead>;
35
+ export declare const getReadPaymentUrl: (paymentId: number) => string;
36
+ /**
37
+ * One top-up, and what became of it.
38
+ *
39
+ * This is what a client reads after the provider sends the browser back. The
40
+ * landing URL says what the patron *did*; this says what the *provider* told
41
+ * us, which is the only version that credits anything.
42
+ *
43
+ * ``404`` for somebody else's payment, indistinguishable from one that does
44
+ * not exist: a payment id is a bare integer.
45
+ * @summary Read Payment
46
+ */
47
+ export declare const readPayment: (paymentId: number, options?: Parameters<typeof request>[1]) => Promise<PaymentRead>;
48
+ //#endregion
49
+ //# sourceMappingURL=cvs-payments.d.ts.map
@@ -0,0 +1,84 @@
1
+
2
+ import { r as request } from "../chunks/client.js";
3
+ //#region src/api/cvs-payments/cvs-payments.ts
4
+ const getListPaymentsUrl = () => {
5
+ return `/cvs/payments`;
6
+ };
7
+ /**
8
+ * This patron's top-ups, newest first. The legacy's ``historyPayments()``.
9
+ * @summary List Payments
10
+ */
11
+ const listPayments = async (options) => {
12
+ return request(getListPaymentsUrl(), {
13
+ ...options,
14
+ method: "GET"
15
+ });
16
+ };
17
+ const getStartPaymentUrl = () => {
18
+ return `/cvs/payments`;
19
+ };
20
+ /**
21
+ * Begin a top-up and get the hand-off to send the patron to.
22
+ *
23
+ * **Which provider answers is the library's setting**, not the client's
24
+ * choice. PayPal returns ``approvalUrl``; Paybox returns ``form``, because
25
+ * its hand-off is a signed POST and not a redirect. Read ``provider`` rather
26
+ * than testing which field is null.
27
+ *
28
+ * ``409`` for an amount this library does not sell — the tariff is the
29
+ * server's, because a client that may name its own price may name zero, and
30
+ * it differs per provider (Paybox sells séances at 3 €, PayPal credits at
31
+ * 5.90 €). ``503`` when the library sells nothing or its merchant account is
32
+ * unconfigured, with nothing written.
33
+ *
34
+ * Nothing is charged here and nothing is credited. This opens a pending row
35
+ * and the provider hand-off, and that is all.
36
+ *
37
+ * ``requestKey`` makes it idempotent: a retried start returns the hand-off the
38
+ * first attempt opened rather than opening a second, because a patron who
39
+ * then pays both has been charged twice for one intent.
40
+ * @summary Start Payment
41
+ */
42
+ const startPayment = async (paymentStartWrite, options) => {
43
+ const getHeaders = (h) => {
44
+ if (!h) return {};
45
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
46
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
47
+ const headers = {};
48
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
49
+ return headers;
50
+ };
51
+ return request(getStartPaymentUrl(), {
52
+ ...options,
53
+ method: "POST",
54
+ headers: {
55
+ "Content-Type": "application/json",
56
+ ...getHeaders(options?.headers)
57
+ },
58
+ body: JSON.stringify(paymentStartWrite)
59
+ });
60
+ };
61
+ const getReadPaymentUrl = (paymentId) => {
62
+ return `/cvs/payments/${paymentId}`;
63
+ };
64
+ /**
65
+ * One top-up, and what became of it.
66
+ *
67
+ * This is what a client reads after the provider sends the browser back. The
68
+ * landing URL says what the patron *did*; this says what the *provider* told
69
+ * us, which is the only version that credits anything.
70
+ *
71
+ * ``404`` for somebody else's payment, indistinguishable from one that does
72
+ * not exist: a payment id is a bare integer.
73
+ * @summary Read Payment
74
+ */
75
+ const readPayment = async (paymentId, options) => {
76
+ return request(getReadPaymentUrl(paymentId), {
77
+ ...options,
78
+ method: "GET"
79
+ });
80
+ };
81
+ //#endregion
82
+ export { getListPaymentsUrl, getReadPaymentUrl, getStartPaymentUrl, listPayments, readPayment, startPayment };
83
+
84
+ //# sourceMappingURL=cvs-payments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cvs-payments.js","names":[],"sources":["../../src/api/cvs-payments/cvs-payments.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.1.0\n */\nimport type {\n PaymentListRead,\n PaymentRead,\n PaymentStartRead,\n PaymentStartWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListPaymentsUrl = () => {\n\n\n\n\n return `/cvs/payments`\n}\n\n/**\n * This patron's top-ups, newest first. The legacy's ``historyPayments()``.\n * @summary List Payments\n */\nexport const listPayments = async ( options?: Parameters<typeof request>[1]): Promise<PaymentListRead> => {\n\n return request<PaymentListRead>(getListPaymentsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getStartPaymentUrl = () => {\n\n\n\n\n return `/cvs/payments`\n}\n\n/**\n * Begin a top-up and get the hand-off to send the patron to.\n *\n * **Which provider answers is the library's setting**, not the client's\n * choice. PayPal returns ``approvalUrl``; Paybox returns ``form``, because\n * its hand-off is a signed POST and not a redirect. Read ``provider`` rather\n * than testing which field is null.\n *\n * ``409`` for an amount this library does not sell — the tariff is the\n * server's, because a client that may name its own price may name zero, and\n * it differs per provider (Paybox sells séances at 3 €, PayPal credits at\n * 5.90 €). ``503`` when the library sells nothing or its merchant account is\n * unconfigured, with nothing written.\n *\n * Nothing is charged here and nothing is credited. This opens a pending row\n * and the provider hand-off, and that is all.\n *\n * ``requestKey`` makes it idempotent: a retried start returns the hand-off the\n * first attempt opened rather than opening a second, because a patron who\n * then pays both has been charged twice for one intent.\n * @summary Start Payment\n */\nexport const startPayment = async (paymentStartWrite: PaymentStartWrite, options?: Parameters<typeof request>[1]): Promise<PaymentStartRead> => {\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<PaymentStartRead>(getStartPaymentUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(paymentStartWrite)\n }\n);}\n\n\nexport const getReadPaymentUrl = (paymentId: number,) => {\n\n\n\n\n return `/cvs/payments/${paymentId}`\n}\n\n/**\n * One top-up, and what became of it.\n *\n * This is what a client reads after the provider sends the browser back. The\n * landing URL says what the patron *did*; this says what the *provider* told\n * us, which is the only version that credits anything.\n *\n * ``404`` for somebody else's payment, indistinguishable from one that does\n * not exist: a payment id is a bare integer.\n * @summary Read Payment\n */\nexport const readPayment = async (paymentId: number, options?: Parameters<typeof request>[1]): Promise<PaymentRead> => {\n\n return request<PaymentRead>(getReadPaymentUrl(paymentId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;;AAMA,MAAa,eAAe,OAAQ,YAAsE;CAExG,OAAO,QAAyB,mBAAmB,GACnD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,eAAe,OAAO,mBAAsC,YAAuE;CAE5I,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAA0B,mBAAmB,GAClD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,iBAAiB;CACxC,CACF;AAAE;AAGF,MAAa,qBAAqB,cAAuB;CAKvD,OAAO,iBAAiB;AAC1B;;;;;;;;;;;;AAaA,MAAa,cAAc,OAAO,WAAmB,YAAkE;CAErH,OAAO,QAAqB,kBAAkB,SAAS,GACvD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -22,6 +22,7 @@ import { createReport, getCreateReportUrl, getListNotificationsUrl, listNotifica
22
22
  import { getOpenAtSupplierUrl, getRateDocumentUrl, getReadDocumentUrl, getReadLastPositionUrl, getSearchDocumentsUrl, getSetLastPositionUrl, getWriteReviewUrl, openAtSupplier, rateDocument, readDocument, readLastPosition, searchDocuments, setLastPosition, writeReview } from "./cvs-documents.js";
23
23
  import { addCvsFavorite, getAddCvsFavoriteUrl, getListCvsFavoritesUrl, getListSelectionsUrl, getRemoveCvsFavoriteUrl, listCvsFavorites, listSelections, removeCvsFavorite } from "./cvs-favorites.js";
24
24
  import { borrow, extendLoan, getBorrowUrl, getExtendLoanUrl, getListLoansUrl, getReturnLoanUrl, listLoans, returnLoan } from "./cvs-loans.js";
25
+ import { getListPaymentsUrl, getReadPaymentUrl, getStartPaymentUrl, listPayments, readPayment, startPayment } from "./cvs-payments.js";
25
26
  import { getStartSessionUrl, getStreamingDetailsUrl, startSession, streamingDetails } from "./cvs-streaming.js";
26
27
  import { addPartnerFavorite, getAddPartnerFavoriteUrl, getListMediaUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getReadMediaUrl, getRemovePartnerFavoriteUrl, listMedia, listPartnerCategories, listPartnerFavorites, readMedia, removePartnerFavorite } from "./partner-catalogue.js";
27
28
  import { getListCurrentReadingsUrl, getReadPackageUrl, getReadPositionUrl, getWritePositionUrl, listCurrentReadings, readPackage, readPosition, writePosition } from "./partner-reader.js";
@@ -31,4 +32,4 @@ import { getListMessagesUrl, getMintChatTicketUrl, getSendMessageUrl, listMessag
31
32
  import { dispatchRequest, getDispatchRequestUrl, getListQueueUrl, getTriageRequestUrl, listQueue, triageRequest } from "./tutoring-dispatch.js";
32
33
  import { answerRequest, claimRequest, closeRequest, getAnswerRequestUrl, getClaimRequestUrl, getCloseRequestUrl, getOpenRoomUrl, openRoom } from "./tutoring-practitioner.js";
33
34
  import { cancelRequest, deleteAttachment, getCancelRequestUrl, getDeleteAttachmentUrl, getGetRequestUrl, getListMyRequestsUrl, getRateRequestUrl, getRequest, getSubmitRequestUrl, getUploadAttachmentUrl, listMyRequests, rateRequest, submitRequest, uploadAttachment } from "./tutoring-requests.js";
34
- export { addBiblioFavorite, addCvsFavorite, addPartnerFavorite, adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, amendTheme, answerRequest, authorization, borrow, cancelRequest, claimRequest, closeLease, closeRequest, closeSupportSession, createDemoUser, createGoal, createLevel, createLicense, createProfile, createReport, createSessionFromCode, createSessionFromCredentials, createSubject, createTheme, deleteAccount, deleteAttachment, deleteLicense, deleteProfile, deleteSession, deleteTheme, dispatchRequest, extendLoan, forceCloseLease, getAddBiblioFavoriteUrl, getAddCvsFavoriteUrl, getAddPartnerFavoriteUrl, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getAmendThemeUrl, getAnswerRequestUrl, getAuthorizationUrl, getBorrowUrl, getCancelRequestUrl, getClaimRequestUrl, getCloseLeaseUrl, getCloseRequestUrl, getCloseSupportSessionUrl, getCreateDemoUserUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateLicenseUrl, getCreateProfileUrl, getCreateReportUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getCreateSubjectUrl, getCreateThemeUrl, getDeleteAccountUrl, getDeleteAttachmentUrl, getDeleteLicenseUrl, getDeleteProfileUrl, getDeleteSessionUrl, getDeleteThemeUrl, getDispatchRequestUrl, getExtendLoanUrl, getForceCloseLeaseUrl, getGetRequestUrl, getLikeContentUrl, getListAllRequestsUrl, getListBiblioCategoriesUrl, getListBiblioFavoritesUrl, getListCurrentReadingsUrl, getListCvsFavoritesUrl, getListEditorsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListGoalsUrl, getListGrantsUrl, getListHistoryUrl, getListLevelsUrl, getListLiveLeasesUrl, getListLoansUrl, getListMediaUrl, getListMessagesUrl, getListMyRequestsUrl, getListNotificationsUrl, getListPacksUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getListPatronsUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getListPressArticlesUrl, getListProfilesUrl, getListQueueUrl, getListReviewsUrl, getListSelectionsUrl, getListServicesUrl, getListSubjectsUrl, getListTenantsUrl, getListThemesUrl, getMintChatTicketUrl, getModerateFeedbackUrl, getModerateReviewUrl, getOpenAtSupplierUrl, getOpenRoomUrl, getOpenSupportSessionUrl, getRateDocumentUrl, getRateRequestUrl, getReadAccountUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadDocumentUrl, getReadDraftUrl, getReadEditorUrl, getReadHomeFeedUrl, getReadLastPositionUrl, getReadLearningPathUrl, getReadLicenseUrl, getReadMeUrl, getReadMediaUrl, getReadPackUrl, getReadPackageUrl, getReadPatronLicenseUrl, getReadPatronUrl, getReadPositionUrl, getReadPreferencesUrl, getReadPressArticleUrl, getReadPressReviewUrl, getReadProfileUrl, getReadRecommendationsUrl, getReadRequestUrl, getReadTenantUrl, getReadThemeUrl, getRecordReadingSessionUrl, getRefreshSessionUrl, getRemoveBiblioFavoriteUrl, getRemoveCvsFavoriteUrl, getRemovePartnerFavoriteUrl, getRenewLeaseUrl, getReorderThemesUrl, getReplaceCategoryPreferencesUrl, getReplaceGrantsUrl, getRequest, getReturnLoanUrl, getReviewDraftUrl, getSearchDocumentsUrl, getSearchUrl, getSendMessageUrl, getSetLastPositionUrl, getStartSessionUrl, getStreamingDetailsUrl, getSubmitRequestUrl, getTriageRequestUrl, getUnlikeContentUrl, getUpdateAccountUrl, getUpdatePatronUrl, getUpdateProfileUrl, getUpdateTenantUrl, getUploadAttachmentUrl, getWritePositionUrl, getWriteReviewUrl, likeContent, listAllRequests, listBiblioCategories, listBiblioFavorites, listCurrentReadings, listCvsFavorites, listEditors, listExpiringDocuments, listFeedback, listGoals, listGrants, listHistory, listLevels, listLiveLeases, listLoans, listMedia, listMessages, listMyRequests, listNotifications, listPacks, listPartnerCategories, listPartnerFavorites, listPatrons, listPractitionerDocuments, listPractitioners, listPressArticles, listProfiles, listQueue, listReviews, listSelections, listServices, listSubjects, listTenants, listThemes, mintChatTicket, moderateFeedback, moderateReview, openAtSupplier, openRoom, openSupportSession, rateDocument, rateRequest, readAccount, readCatalog, readCatalogTheme, readContent, readDocument, readDraft, readEditor, readHomeFeed, readLastPosition, readLearningPath, readLicense, readMe, readMedia, readPack, readPackage, readPatron, readPatronLicense, readPosition, readPreferences, readPressArticle, readPressReview, readProfile, readRecommendations, readRequest, readTenant, readTheme, recordReadingSession, refreshSession, removeBiblioFavorite, removeCvsFavorite, removePartnerFavorite, renewLease, reorderThemes, replaceCategoryPreferences, replaceGrants, returnLoan, reviewDraft, search, searchDocuments, sendMessage, setLastPosition, startSession, streamingDetails, submitRequest, triageRequest, unlikeContent, updateAccount, updatePatron, updateProfile, updateTenant, uploadAttachment, writePosition, writeReview };
35
+ export { addBiblioFavorite, addCvsFavorite, addPartnerFavorite, adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, amendTheme, answerRequest, authorization, borrow, cancelRequest, claimRequest, closeLease, closeRequest, closeSupportSession, createDemoUser, createGoal, createLevel, createLicense, createProfile, createReport, createSessionFromCode, createSessionFromCredentials, createSubject, createTheme, deleteAccount, deleteAttachment, deleteLicense, deleteProfile, deleteSession, deleteTheme, dispatchRequest, extendLoan, forceCloseLease, getAddBiblioFavoriteUrl, getAddCvsFavoriteUrl, getAddPartnerFavoriteUrl, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getAmendThemeUrl, getAnswerRequestUrl, getAuthorizationUrl, getBorrowUrl, getCancelRequestUrl, getClaimRequestUrl, getCloseLeaseUrl, getCloseRequestUrl, getCloseSupportSessionUrl, getCreateDemoUserUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateLicenseUrl, getCreateProfileUrl, getCreateReportUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getCreateSubjectUrl, getCreateThemeUrl, getDeleteAccountUrl, getDeleteAttachmentUrl, getDeleteLicenseUrl, getDeleteProfileUrl, getDeleteSessionUrl, getDeleteThemeUrl, getDispatchRequestUrl, getExtendLoanUrl, getForceCloseLeaseUrl, getGetRequestUrl, getLikeContentUrl, getListAllRequestsUrl, getListBiblioCategoriesUrl, getListBiblioFavoritesUrl, getListCurrentReadingsUrl, getListCvsFavoritesUrl, getListEditorsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListGoalsUrl, getListGrantsUrl, getListHistoryUrl, getListLevelsUrl, getListLiveLeasesUrl, getListLoansUrl, getListMediaUrl, getListMessagesUrl, getListMyRequestsUrl, getListNotificationsUrl, getListPacksUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getListPatronsUrl, getListPaymentsUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getListPressArticlesUrl, getListProfilesUrl, getListQueueUrl, getListReviewsUrl, getListSelectionsUrl, getListServicesUrl, getListSubjectsUrl, getListTenantsUrl, getListThemesUrl, getMintChatTicketUrl, getModerateFeedbackUrl, getModerateReviewUrl, getOpenAtSupplierUrl, getOpenRoomUrl, getOpenSupportSessionUrl, getRateDocumentUrl, getRateRequestUrl, getReadAccountUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadDocumentUrl, getReadDraftUrl, getReadEditorUrl, getReadHomeFeedUrl, getReadLastPositionUrl, getReadLearningPathUrl, getReadLicenseUrl, getReadMeUrl, getReadMediaUrl, getReadPackUrl, getReadPackageUrl, getReadPatronLicenseUrl, getReadPatronUrl, getReadPaymentUrl, getReadPositionUrl, getReadPreferencesUrl, getReadPressArticleUrl, getReadPressReviewUrl, getReadProfileUrl, getReadRecommendationsUrl, getReadRequestUrl, getReadTenantUrl, getReadThemeUrl, getRecordReadingSessionUrl, getRefreshSessionUrl, getRemoveBiblioFavoriteUrl, getRemoveCvsFavoriteUrl, getRemovePartnerFavoriteUrl, getRenewLeaseUrl, getReorderThemesUrl, getReplaceCategoryPreferencesUrl, getReplaceGrantsUrl, getRequest, getReturnLoanUrl, getReviewDraftUrl, getSearchDocumentsUrl, getSearchUrl, getSendMessageUrl, getSetLastPositionUrl, getStartPaymentUrl, getStartSessionUrl, getStreamingDetailsUrl, getSubmitRequestUrl, getTriageRequestUrl, getUnlikeContentUrl, getUpdateAccountUrl, getUpdatePatronUrl, getUpdateProfileUrl, getUpdateTenantUrl, getUploadAttachmentUrl, getWritePositionUrl, getWriteReviewUrl, likeContent, listAllRequests, listBiblioCategories, listBiblioFavorites, listCurrentReadings, listCvsFavorites, listEditors, listExpiringDocuments, listFeedback, listGoals, listGrants, listHistory, listLevels, listLiveLeases, listLoans, listMedia, listMessages, listMyRequests, listNotifications, listPacks, listPartnerCategories, listPartnerFavorites, listPatrons, listPayments, listPractitionerDocuments, listPractitioners, listPressArticles, listProfiles, listQueue, listReviews, listSelections, listServices, listSubjects, listTenants, listThemes, mintChatTicket, moderateFeedback, moderateReview, openAtSupplier, openRoom, openSupportSession, rateDocument, rateRequest, readAccount, readCatalog, readCatalogTheme, readContent, readDocument, readDraft, readEditor, readHomeFeed, readLastPosition, readLearningPath, readLicense, readMe, readMedia, readPack, readPackage, readPatron, readPatronLicense, readPayment, readPosition, readPreferences, readPressArticle, readPressReview, readProfile, readRecommendations, readRequest, readTenant, readTheme, recordReadingSession, refreshSession, removeBiblioFavorite, removeCvsFavorite, removePartnerFavorite, renewLease, reorderThemes, replaceCategoryPreferences, replaceGrants, returnLoan, reviewDraft, search, searchDocuments, sendMessage, setLastPosition, startPayment, startSession, streamingDetails, submitRequest, triageRequest, unlikeContent, updateAccount, updatePatron, updateProfile, updateTenant, uploadAttachment, writePosition, writeReview };
package/dist/api/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ import { getListMessagesUrl, getMintChatTicketUrl, getSendMessageUrl, listMessages, mintChatTicket, sendMessage } from "./tutoring-chat.js";
3
+ import { authorization, createSessionFromCode, createSessionFromCredentials, deleteSession, getAuthorizationUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getDeleteSessionUrl, getReadMeUrl, getRefreshSessionUrl, readMe, refreshSession } from "./auth.js";
2
4
  import { deleteAccount, getDeleteAccountUrl, getListServicesUrl, getReadAccountUrl, getUpdateAccountUrl, listServices, readAccount, updateAccount } from "./account.js";
3
5
  import { amendTheme, createTheme, deleteTheme, getAmendThemeUrl, getCreateThemeUrl, getDeleteThemeUrl, getListThemesUrl, getReadThemeUrl, getReorderThemesUrl, listThemes, readTheme, reorderThemes } from "./admin-catalogue.js";
4
6
  import { forceCloseLease, getForceCloseLeaseUrl, getListLiveLeasesUrl, listLiveLeases } from "./admin-consumption.js";
@@ -9,7 +11,6 @@ import { getListGrantsUrl, getReplaceGrantsUrl, listGrants, replaceGrants } from
9
11
  import { closeSupportSession, createDemoUser, getCloseSupportSessionUrl, getCreateDemoUserUrl, getOpenSupportSessionUrl, openSupportSession } from "./admin-support.js";
10
12
  import { getListTenantsUrl, getReadTenantUrl, getUpdateTenantUrl, listTenants, readTenant, updateTenant } from "./admin-tenants.js";
11
13
  import { adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, createGoal, createLevel, createSubject, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateSubjectUrl, getListAllRequestsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getModerateFeedbackUrl, getReadDraftUrl, getReadRequestUrl, getReviewDraftUrl, listAllRequests, listExpiringDocuments, listFeedback, listPractitionerDocuments, listPractitioners, moderateFeedback, readDraft, readRequest, reviewDraft } from "./admin-tutoring.js";
12
- import { authorization, createSessionFromCode, createSessionFromCredentials, deleteSession, getAuthorizationUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getDeleteSessionUrl, getReadMeUrl, getRefreshSessionUrl, readMe, refreshSession } from "./auth.js";
13
14
  import { getLikeContentUrl, getListEditorsUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadEditorUrl, getReadLearningPathUrl, getReadPackUrl, getReadRecommendationsUrl, getUnlikeContentUrl, likeContent, listEditors, readCatalog, readCatalogTheme, readContent, readEditor, readLearningPath, readPack, readRecommendations, unlikeContent } from "./biblio-catalogue.js";
14
15
  import { getReadHomeFeedUrl, readHomeFeed } from "./biblio-home.js";
15
16
  import { addBiblioFavorite, getAddBiblioFavoriteUrl, getListBiblioCategoriesUrl, getListBiblioFavoritesUrl, getListHistoryUrl, getListPacksUrl, getReadPreferencesUrl, getRemoveBiblioFavoriteUrl, getReplaceCategoryPreferencesUrl, listBiblioCategories, listBiblioFavorites, listHistory, listPacks, readPreferences, removeBiblioFavorite, replaceCategoryPreferences } from "./biblio-library.js";
@@ -22,13 +23,13 @@ import { createReport, getCreateReportUrl, getListNotificationsUrl, listNotifica
22
23
  import { getOpenAtSupplierUrl, getRateDocumentUrl, getReadDocumentUrl, getReadLastPositionUrl, getSearchDocumentsUrl, getSetLastPositionUrl, getWriteReviewUrl, openAtSupplier, rateDocument, readDocument, readLastPosition, searchDocuments, setLastPosition, writeReview } from "./cvs-documents.js";
23
24
  import { addCvsFavorite, getAddCvsFavoriteUrl, getListCvsFavoritesUrl, getListSelectionsUrl, getRemoveCvsFavoriteUrl, listCvsFavorites, listSelections, removeCvsFavorite } from "./cvs-favorites.js";
24
25
  import { borrow, extendLoan, getBorrowUrl, getExtendLoanUrl, getListLoansUrl, getReturnLoanUrl, listLoans, returnLoan } from "./cvs-loans.js";
26
+ import { getListPaymentsUrl, getReadPaymentUrl, getStartPaymentUrl, listPayments, readPayment, startPayment } from "./cvs-payments.js";
25
27
  import { getStartSessionUrl, getStreamingDetailsUrl, startSession, streamingDetails } from "./cvs-streaming.js";
26
28
  import { addPartnerFavorite, getAddPartnerFavoriteUrl, getListMediaUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getReadMediaUrl, getRemovePartnerFavoriteUrl, listMedia, listPartnerCategories, listPartnerFavorites, readMedia, removePartnerFavorite } from "./partner-catalogue.js";
27
29
  import { getListCurrentReadingsUrl, getReadPackageUrl, getReadPositionUrl, getWritePositionUrl, listCurrentReadings, readPackage, readPosition, writePosition } from "./partner-reader.js";
28
30
  import { createProfile, deleteProfile, getCreateProfileUrl, getDeleteProfileUrl, getListProfilesUrl, getReadProfileUrl, getUpdateProfileUrl, listProfiles, readProfile, updateProfile } from "./profiles.js";
29
31
  import { getListGoalsUrl, getListLevelsUrl, getListSubjectsUrl, listGoals, listLevels, listSubjects } from "./tutoring-catalogue.js";
30
- import { getListMessagesUrl, getMintChatTicketUrl, getSendMessageUrl, listMessages, mintChatTicket, sendMessage } from "./tutoring-chat.js";
31
32
  import { dispatchRequest, getDispatchRequestUrl, getListQueueUrl, getTriageRequestUrl, listQueue, triageRequest } from "./tutoring-dispatch.js";
32
33
  import { answerRequest, claimRequest, closeRequest, getAnswerRequestUrl, getClaimRequestUrl, getCloseRequestUrl, getOpenRoomUrl, openRoom } from "./tutoring-practitioner.js";
33
34
  import { cancelRequest, deleteAttachment, getCancelRequestUrl, getDeleteAttachmentUrl, getGetRequestUrl, getListMyRequestsUrl, getRateRequestUrl, getRequest, getSubmitRequestUrl, getUploadAttachmentUrl, listMyRequests, rateRequest, submitRequest, uploadAttachment } from "./tutoring-requests.js";
34
- export { addBiblioFavorite, addCvsFavorite, addPartnerFavorite, adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, amendTheme, answerRequest, authorization, borrow, cancelRequest, claimRequest, closeLease, closeRequest, closeSupportSession, createDemoUser, createGoal, createLevel, createLicense, createProfile, createReport, createSessionFromCode, createSessionFromCredentials, createSubject, createTheme, deleteAccount, deleteAttachment, deleteLicense, deleteProfile, deleteSession, deleteTheme, dispatchRequest, extendLoan, forceCloseLease, getAddBiblioFavoriteUrl, getAddCvsFavoriteUrl, getAddPartnerFavoriteUrl, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getAmendThemeUrl, getAnswerRequestUrl, getAuthorizationUrl, getBorrowUrl, getCancelRequestUrl, getClaimRequestUrl, getCloseLeaseUrl, getCloseRequestUrl, getCloseSupportSessionUrl, getCreateDemoUserUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateLicenseUrl, getCreateProfileUrl, getCreateReportUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getCreateSubjectUrl, getCreateThemeUrl, getDeleteAccountUrl, getDeleteAttachmentUrl, getDeleteLicenseUrl, getDeleteProfileUrl, getDeleteSessionUrl, getDeleteThemeUrl, getDispatchRequestUrl, getExtendLoanUrl, getForceCloseLeaseUrl, getGetRequestUrl, getLikeContentUrl, getListAllRequestsUrl, getListBiblioCategoriesUrl, getListBiblioFavoritesUrl, getListCurrentReadingsUrl, getListCvsFavoritesUrl, getListEditorsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListGoalsUrl, getListGrantsUrl, getListHistoryUrl, getListLevelsUrl, getListLiveLeasesUrl, getListLoansUrl, getListMediaUrl, getListMessagesUrl, getListMyRequestsUrl, getListNotificationsUrl, getListPacksUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getListPatronsUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getListPressArticlesUrl, getListProfilesUrl, getListQueueUrl, getListReviewsUrl, getListSelectionsUrl, getListServicesUrl, getListSubjectsUrl, getListTenantsUrl, getListThemesUrl, getMintChatTicketUrl, getModerateFeedbackUrl, getModerateReviewUrl, getOpenAtSupplierUrl, getOpenRoomUrl, getOpenSupportSessionUrl, getRateDocumentUrl, getRateRequestUrl, getReadAccountUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadDocumentUrl, getReadDraftUrl, getReadEditorUrl, getReadHomeFeedUrl, getReadLastPositionUrl, getReadLearningPathUrl, getReadLicenseUrl, getReadMeUrl, getReadMediaUrl, getReadPackUrl, getReadPackageUrl, getReadPatronLicenseUrl, getReadPatronUrl, getReadPositionUrl, getReadPreferencesUrl, getReadPressArticleUrl, getReadPressReviewUrl, getReadProfileUrl, getReadRecommendationsUrl, getReadRequestUrl, getReadTenantUrl, getReadThemeUrl, getRecordReadingSessionUrl, getRefreshSessionUrl, getRemoveBiblioFavoriteUrl, getRemoveCvsFavoriteUrl, getRemovePartnerFavoriteUrl, getRenewLeaseUrl, getReorderThemesUrl, getReplaceCategoryPreferencesUrl, getReplaceGrantsUrl, getRequest, getReturnLoanUrl, getReviewDraftUrl, getSearchDocumentsUrl, getSearchUrl, getSendMessageUrl, getSetLastPositionUrl, getStartSessionUrl, getStreamingDetailsUrl, getSubmitRequestUrl, getTriageRequestUrl, getUnlikeContentUrl, getUpdateAccountUrl, getUpdatePatronUrl, getUpdateProfileUrl, getUpdateTenantUrl, getUploadAttachmentUrl, getWritePositionUrl, getWriteReviewUrl, likeContent, listAllRequests, listBiblioCategories, listBiblioFavorites, listCurrentReadings, listCvsFavorites, listEditors, listExpiringDocuments, listFeedback, listGoals, listGrants, listHistory, listLevels, listLiveLeases, listLoans, listMedia, listMessages, listMyRequests, listNotifications, listPacks, listPartnerCategories, listPartnerFavorites, listPatrons, listPractitionerDocuments, listPractitioners, listPressArticles, listProfiles, listQueue, listReviews, listSelections, listServices, listSubjects, listTenants, listThemes, mintChatTicket, moderateFeedback, moderateReview, openAtSupplier, openRoom, openSupportSession, rateDocument, rateRequest, readAccount, readCatalog, readCatalogTheme, readContent, readDocument, readDraft, readEditor, readHomeFeed, readLastPosition, readLearningPath, readLicense, readMe, readMedia, readPack, readPackage, readPatron, readPatronLicense, readPosition, readPreferences, readPressArticle, readPressReview, readProfile, readRecommendations, readRequest, readTenant, readTheme, recordReadingSession, refreshSession, removeBiblioFavorite, removeCvsFavorite, removePartnerFavorite, renewLease, reorderThemes, replaceCategoryPreferences, replaceGrants, returnLoan, reviewDraft, search, searchDocuments, sendMessage, setLastPosition, startSession, streamingDetails, submitRequest, triageRequest, unlikeContent, updateAccount, updatePatron, updateProfile, updateTenant, uploadAttachment, writePosition, writeReview };
35
+ export { addBiblioFavorite, addCvsFavorite, addPartnerFavorite, adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, amendTheme, answerRequest, authorization, borrow, cancelRequest, claimRequest, closeLease, closeRequest, closeSupportSession, createDemoUser, createGoal, createLevel, createLicense, createProfile, createReport, createSessionFromCode, createSessionFromCredentials, createSubject, createTheme, deleteAccount, deleteAttachment, deleteLicense, deleteProfile, deleteSession, deleteTheme, dispatchRequest, extendLoan, forceCloseLease, getAddBiblioFavoriteUrl, getAddCvsFavoriteUrl, getAddPartnerFavoriteUrl, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getAmendThemeUrl, getAnswerRequestUrl, getAuthorizationUrl, getBorrowUrl, getCancelRequestUrl, getClaimRequestUrl, getCloseLeaseUrl, getCloseRequestUrl, getCloseSupportSessionUrl, getCreateDemoUserUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateLicenseUrl, getCreateProfileUrl, getCreateReportUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getCreateSubjectUrl, getCreateThemeUrl, getDeleteAccountUrl, getDeleteAttachmentUrl, getDeleteLicenseUrl, getDeleteProfileUrl, getDeleteSessionUrl, getDeleteThemeUrl, getDispatchRequestUrl, getExtendLoanUrl, getForceCloseLeaseUrl, getGetRequestUrl, getLikeContentUrl, getListAllRequestsUrl, getListBiblioCategoriesUrl, getListBiblioFavoritesUrl, getListCurrentReadingsUrl, getListCvsFavoritesUrl, getListEditorsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListGoalsUrl, getListGrantsUrl, getListHistoryUrl, getListLevelsUrl, getListLiveLeasesUrl, getListLoansUrl, getListMediaUrl, getListMessagesUrl, getListMyRequestsUrl, getListNotificationsUrl, getListPacksUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getListPatronsUrl, getListPaymentsUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getListPressArticlesUrl, getListProfilesUrl, getListQueueUrl, getListReviewsUrl, getListSelectionsUrl, getListServicesUrl, getListSubjectsUrl, getListTenantsUrl, getListThemesUrl, getMintChatTicketUrl, getModerateFeedbackUrl, getModerateReviewUrl, getOpenAtSupplierUrl, getOpenRoomUrl, getOpenSupportSessionUrl, getRateDocumentUrl, getRateRequestUrl, getReadAccountUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadDocumentUrl, getReadDraftUrl, getReadEditorUrl, getReadHomeFeedUrl, getReadLastPositionUrl, getReadLearningPathUrl, getReadLicenseUrl, getReadMeUrl, getReadMediaUrl, getReadPackUrl, getReadPackageUrl, getReadPatronLicenseUrl, getReadPatronUrl, getReadPaymentUrl, getReadPositionUrl, getReadPreferencesUrl, getReadPressArticleUrl, getReadPressReviewUrl, getReadProfileUrl, getReadRecommendationsUrl, getReadRequestUrl, getReadTenantUrl, getReadThemeUrl, getRecordReadingSessionUrl, getRefreshSessionUrl, getRemoveBiblioFavoriteUrl, getRemoveCvsFavoriteUrl, getRemovePartnerFavoriteUrl, getRenewLeaseUrl, getReorderThemesUrl, getReplaceCategoryPreferencesUrl, getReplaceGrantsUrl, getRequest, getReturnLoanUrl, getReviewDraftUrl, getSearchDocumentsUrl, getSearchUrl, getSendMessageUrl, getSetLastPositionUrl, getStartPaymentUrl, getStartSessionUrl, getStreamingDetailsUrl, getSubmitRequestUrl, getTriageRequestUrl, getUnlikeContentUrl, getUpdateAccountUrl, getUpdatePatronUrl, getUpdateProfileUrl, getUpdateTenantUrl, getUploadAttachmentUrl, getWritePositionUrl, getWriteReviewUrl, likeContent, listAllRequests, listBiblioCategories, listBiblioFavorites, listCurrentReadings, listCvsFavorites, listEditors, listExpiringDocuments, listFeedback, listGoals, listGrants, listHistory, listLevels, listLiveLeases, listLoans, listMedia, listMessages, listMyRequests, listNotifications, listPacks, listPartnerCategories, listPartnerFavorites, listPatrons, listPayments, listPractitionerDocuments, listPractitioners, listPressArticles, listProfiles, listQueue, listReviews, listSelections, listServices, listSubjects, listTenants, listThemes, mintChatTicket, moderateFeedback, moderateReview, openAtSupplier, openRoom, openSupportSession, rateDocument, rateRequest, readAccount, readCatalog, readCatalogTheme, readContent, readDocument, readDraft, readEditor, readHomeFeed, readLastPosition, readLearningPath, readLicense, readMe, readMedia, readPack, readPackage, readPatron, readPatronLicense, readPayment, readPosition, readPreferences, readPressArticle, readPressReview, readProfile, readRecommendations, readRequest, readTenant, readTheme, recordReadingSession, refreshSession, removeBiblioFavorite, removeCvsFavorite, removePartnerFavorite, renewLease, reorderThemes, replaceCategoryPreferences, replaceGrants, returnLoan, reviewDraft, search, searchDocuments, sendMessage, setLastPosition, startPayment, startSession, streamingDetails, submitRequest, triageRequest, unlikeContent, updateAccount, updatePatron, updateProfile, updateTenant, uploadAttachment, writePosition, writeReview };
@@ -1,5 +1,5 @@
1
1
 
2
- import { Bt as PartnerCategoryListRead, It as PartnerMediaRead, Lt as PartnerMediaPage, Nn as PartnerProvider, Rt as PartnerFavoriteListRead, _n as ListMediaParams } from "../chunks/index.js";
2
+ import { Bn as PartnerProvider, Gt as PartnerFavoriteListRead, Ut as PartnerMediaRead, Wt as PartnerMediaPage, qt as PartnerCategoryListRead, wn as ListMediaParams } from "../chunks/index.js";
3
3
  import { c as request } from "../chunks/client.js";
4
4
  //#region src/api/partner-catalogue/partner-catalogue.d.ts
5
5
  export declare const getListPartnerCategoriesUrl: (provider: PartnerProvider) => string;