@learnorama/mozaik-sdk 0.7.0-staging.26.1 → 0.8.2-staging.31.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.
- package/dist/api/account.d.ts +1 -1
- package/dist/api/account.js.map +1 -1
- package/dist/api/admin-catalogue.d.ts +1 -1
- package/dist/api/admin-catalogue.js.map +1 -1
- package/dist/api/admin-consumption.d.ts +1 -1
- package/dist/api/admin-consumption.js.map +1 -1
- package/dist/api/admin-desk.d.ts +86 -1
- package/dist/api/admin-desk.js +280 -1
- package/dist/api/admin-desk.js.map +1 -1
- package/dist/api/admin-licenses.d.ts +1 -1
- package/dist/api/admin-licenses.js.map +1 -1
- package/dist/api/admin-patrons.d.ts +2 -7
- package/dist/api/admin-patrons.js +1 -6
- package/dist/api/admin-patrons.js.map +1 -1
- package/dist/api/admin-reviews.d.ts +1 -1
- package/dist/api/admin-reviews.js.map +1 -1
- package/dist/api/admin-roles.d.ts +1 -1
- package/dist/api/admin-roles.js.map +1 -1
- package/dist/api/admin-support.d.ts +1 -1
- package/dist/api/admin-support.js.map +1 -1
- package/dist/api/admin-tenants.d.ts +2 -2
- package/dist/api/admin-tenants.js +1 -1
- package/dist/api/admin-tenants.js.map +1 -1
- package/dist/api/admin-tutoring.d.ts +1 -1
- package/dist/api/admin-tutoring.js.map +1 -1
- package/dist/api/auth.d.ts +1 -1
- package/dist/api/auth.js.map +1 -1
- package/dist/api/biblio-catalogue.d.ts +1 -1
- package/dist/api/biblio-catalogue.js.map +1 -1
- package/dist/api/biblio-home.d.ts +1 -1
- package/dist/api/biblio-home.js.map +1 -1
- package/dist/api/biblio-library.d.ts +1 -1
- package/dist/api/biblio-library.js.map +1 -1
- package/dist/api/biblio-nextory.d.ts +1 -1
- package/dist/api/biblio-nextory.js.map +1 -1
- package/dist/api/biblio-press.d.ts +1 -1
- package/dist/api/biblio-press.js.map +1 -1
- package/dist/api/biblio-search.d.ts +1 -1
- package/dist/api/biblio-search.js.map +1 -1
- package/dist/api/biblio-telemetry.d.ts +1 -1
- package/dist/api/biblio-telemetry.js.map +1 -1
- package/dist/api/consumption.d.ts +1 -1
- package/dist/api/consumption.js.map +1 -1
- package/dist/api/cvs-app.d.ts +1 -1
- package/dist/api/cvs-app.js.map +1 -1
- package/dist/api/cvs-documents.d.ts +1 -1
- package/dist/api/cvs-documents.js.map +1 -1
- package/dist/api/cvs-favorites.d.ts +1 -1
- package/dist/api/cvs-favorites.js.map +1 -1
- package/dist/api/cvs-ils.d.ts +1 -1
- package/dist/api/cvs-ils.js.map +1 -1
- package/dist/api/cvs-loans.d.ts +1 -1
- package/dist/api/cvs-loans.js.map +1 -1
- package/dist/api/cvs-payments.d.ts +1 -1
- package/dist/api/cvs-payments.js.map +1 -1
- package/dist/api/cvs-streaming.d.ts +1 -1
- package/dist/api/cvs-streaming.js.map +1 -1
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +2 -2
- package/dist/api/partner-catalogue.d.ts +1 -1
- package/dist/api/partner-catalogue.js.map +1 -1
- package/dist/api/partner-reader.d.ts +1 -1
- package/dist/api/partner-reader.js.map +1 -1
- package/dist/api/profiles.d.ts +1 -1
- package/dist/api/profiles.js.map +1 -1
- package/dist/api/search.d.ts +1 -1
- package/dist/api/search.js.map +1 -1
- package/dist/api/tutoring-catalogue.d.ts +1 -1
- package/dist/api/tutoring-catalogue.js.map +1 -1
- package/dist/api/tutoring-chat.d.ts +1 -1
- package/dist/api/tutoring-chat.js.map +1 -1
- package/dist/api/tutoring-dispatch.d.ts +2 -2
- package/dist/api/tutoring-dispatch.js +1 -1
- package/dist/api/tutoring-dispatch.js.map +1 -1
- package/dist/api/tutoring-practitioner.d.ts +1 -1
- package/dist/api/tutoring-practitioner.js.map +1 -1
- package/dist/api/tutoring-requests.d.ts +1 -1
- package/dist/api/tutoring-requests.js.map +1 -1
- package/dist/chunks/client2.d.ts +1 -1
- package/dist/chunks/connection.d.ts +1 -1
- package/dist/chunks/index.d.ts +789 -223
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +2 -2
- package/dist/models.js +15 -1
- package/dist/models.js.map +1 -1
- package/dist/react/account.d.ts +1 -1
- package/dist/react/account.js +1 -1
- package/dist/react/account.js.map +1 -1
- package/dist/react/admin-catalogue.d.ts +1 -1
- package/dist/react/admin-catalogue.js +1 -1
- package/dist/react/admin-catalogue.js.map +1 -1
- package/dist/react/admin-consumption.d.ts +1 -1
- package/dist/react/admin-consumption.js +1 -1
- package/dist/react/admin-consumption.js.map +1 -1
- package/dist/react/admin-desk.d.ts +545 -1
- package/dist/react/admin-desk.js +689 -2
- package/dist/react/admin-desk.js.map +1 -1
- package/dist/react/admin-licenses.d.ts +1 -1
- package/dist/react/admin-licenses.js +1 -1
- package/dist/react/admin-licenses.js.map +1 -1
- package/dist/react/admin-patrons.d.ts +2 -7
- package/dist/react/admin-patrons.js +2 -7
- package/dist/react/admin-patrons.js.map +1 -1
- package/dist/react/admin-reviews.d.ts +1 -1
- package/dist/react/admin-reviews.js +1 -1
- package/dist/react/admin-reviews.js.map +1 -1
- package/dist/react/admin-roles.d.ts +1 -1
- package/dist/react/admin-roles.js +1 -1
- package/dist/react/admin-roles.js.map +1 -1
- package/dist/react/admin-support.d.ts +1 -1
- package/dist/react/admin-support.js +1 -1
- package/dist/react/admin-support.js.map +1 -1
- package/dist/react/admin-tenants.d.ts +2 -2
- package/dist/react/admin-tenants.js +2 -2
- package/dist/react/admin-tenants.js.map +1 -1
- package/dist/react/admin-tutoring.d.ts +1 -1
- package/dist/react/admin-tutoring.js +1 -1
- package/dist/react/admin-tutoring.js.map +1 -1
- package/dist/react/auth.d.ts +1 -1
- package/dist/react/auth.js +1 -1
- package/dist/react/auth.js.map +1 -1
- package/dist/react/biblio-catalogue.d.ts +1 -1
- package/dist/react/biblio-catalogue.js +1 -1
- package/dist/react/biblio-catalogue.js.map +1 -1
- package/dist/react/biblio-home.d.ts +1 -1
- package/dist/react/biblio-home.js +1 -1
- package/dist/react/biblio-home.js.map +1 -1
- package/dist/react/biblio-library.d.ts +1 -1
- package/dist/react/biblio-library.js +1 -1
- package/dist/react/biblio-library.js.map +1 -1
- package/dist/react/biblio-nextory.d.ts +1 -1
- package/dist/react/biblio-nextory.js +1 -1
- package/dist/react/biblio-nextory.js.map +1 -1
- package/dist/react/biblio-press.d.ts +1 -1
- package/dist/react/biblio-press.js +1 -1
- package/dist/react/biblio-press.js.map +1 -1
- package/dist/react/biblio-search.d.ts +1 -1
- package/dist/react/biblio-search.js +1 -1
- package/dist/react/biblio-search.js.map +1 -1
- package/dist/react/biblio-telemetry.d.ts +1 -1
- package/dist/react/biblio-telemetry.js +1 -1
- package/dist/react/biblio-telemetry.js.map +1 -1
- package/dist/react/chat.d.ts +1 -1
- package/dist/react/consumption.d.ts +1 -1
- package/dist/react/consumption.js +1 -1
- package/dist/react/consumption.js.map +1 -1
- package/dist/react/cvs-app.d.ts +1 -1
- package/dist/react/cvs-app.js +1 -1
- package/dist/react/cvs-app.js.map +1 -1
- package/dist/react/cvs-documents.d.ts +1 -1
- package/dist/react/cvs-documents.js +1 -1
- package/dist/react/cvs-documents.js.map +1 -1
- package/dist/react/cvs-favorites.d.ts +1 -1
- package/dist/react/cvs-favorites.js +1 -1
- package/dist/react/cvs-favorites.js.map +1 -1
- package/dist/react/cvs-ils.d.ts +1 -1
- package/dist/react/cvs-ils.js +1 -1
- package/dist/react/cvs-ils.js.map +1 -1
- package/dist/react/cvs-loans.d.ts +1 -1
- package/dist/react/cvs-loans.js +1 -1
- package/dist/react/cvs-loans.js.map +1 -1
- package/dist/react/cvs-payments.d.ts +1 -1
- package/dist/react/cvs-payments.js +1 -1
- package/dist/react/cvs-payments.js.map +1 -1
- package/dist/react/cvs-streaming.d.ts +1 -1
- package/dist/react/cvs-streaming.js +1 -1
- package/dist/react/cvs-streaming.js.map +1 -1
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/dist/react/partner-catalogue.d.ts +1 -1
- package/dist/react/partner-catalogue.js +1 -1
- package/dist/react/partner-catalogue.js.map +1 -1
- package/dist/react/partner-reader.d.ts +1 -1
- package/dist/react/partner-reader.js +1 -1
- package/dist/react/partner-reader.js.map +1 -1
- package/dist/react/profiles.d.ts +1 -1
- package/dist/react/profiles.js +1 -1
- package/dist/react/profiles.js.map +1 -1
- package/dist/react/search.d.ts +1 -1
- package/dist/react/search.js +1 -1
- package/dist/react/search.js.map +1 -1
- package/dist/react/tutoring-catalogue.d.ts +1 -1
- package/dist/react/tutoring-catalogue.js +1 -1
- package/dist/react/tutoring-catalogue.js.map +1 -1
- package/dist/react/tutoring-chat.d.ts +1 -1
- package/dist/react/tutoring-chat.js +1 -1
- package/dist/react/tutoring-chat.js.map +1 -1
- package/dist/react/tutoring-dispatch.d.ts +2 -2
- package/dist/react/tutoring-dispatch.js +2 -2
- package/dist/react/tutoring-dispatch.js.map +1 -1
- package/dist/react/tutoring-practitioner.d.ts +1 -1
- package/dist/react/tutoring-practitioner.js +1 -1
- package/dist/react/tutoring-practitioner.js.map +1 -1
- package/dist/react/tutoring-requests.d.ts +1 -1
- package/dist/react/tutoring-requests.js +1 -1
- package/dist/react/tutoring-requests.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { c as request, i as ClientOptions, o as RequestOptions, r as Client, s as createClient, t as ApiError } from "./chunks/client.js";
|
|
3
3
|
//#region src/metadata.d.ts
|
|
4
|
-
export declare const apiVersion = "0.
|
|
5
|
-
export declare const backendRevision = "
|
|
6
|
-
export declare const schemaSha256 = "
|
|
4
|
+
export declare const apiVersion = "0.8.2";
|
|
5
|
+
export declare const backendRevision = "1c9013c286fc6561650a0266bd50140ee865a531";
|
|
6
|
+
export declare const schemaSha256 = "1496bf9290b7114c91859e7101ef500f34b55c0fba0d6f8fbe8df42a051f38fa";
|
|
7
7
|
//#endregion
|
|
8
8
|
export { ApiError, type Client, type ClientOptions, type RequestOptions, createClient, request };
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { n as createClient, r as request, t as ApiError } from "./chunks/client.js";
|
|
3
3
|
//#region src/metadata.ts
|
|
4
|
-
const apiVersion = "0.
|
|
5
|
-
const backendRevision = "
|
|
6
|
-
const schemaSha256 = "
|
|
4
|
+
const apiVersion = "0.8.2";
|
|
5
|
+
const backendRevision = "1c9013c286fc6561650a0266bd50140ee865a531";
|
|
6
|
+
const schemaSha256 = "1496bf9290b7114c91859e7101ef500f34b55c0fba0d6f8fbe8df42a051f38fa";
|
|
7
7
|
//#endregion
|
|
8
8
|
export { ApiError, apiVersion, backendRevision, createClient, request, schemaSha256 };
|
|
9
9
|
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/metadata.ts"],"sourcesContent":["// Generated from the deployed OpenAPI snapshot.\nexport const apiVersion = \"0.
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/metadata.ts"],"sourcesContent":["// Generated from the deployed OpenAPI snapshot.\nexport const apiVersion = \"0.8.2\";\nexport const backendRevision = \"1c9013c286fc6561650a0266bd50140ee865a531\";\nexport const schemaSha256 = \"1496bf9290b7114c91859e7101ef500f34b55c0fba0d6f8fbe8df42a051f38fa\";\n"],"mappings":";;;AACA,MAAa,aAAa;AAC1B,MAAa,kBAAkB;AAC/B,MAAa,eAAe"}
|
package/dist/models.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import { $ as ReviewModerationRead, $a as SubjectKind, $i as DeskListExpiringDocumentsParams, $n as IlsTagWrite, $o as AuthorizationRead, $r as DeskTimeseriesRead, $t as PartnerCategoryRead, A as TenantSettingsReadSettings, Aa as DeskFeedbackPage, Ai as DeskPatronRead, An as ListLoansParams, Ao as ContentPage, Ar as SelectionRead, At as PractitionerWrite, B as StreamingSessionRead, Ba as DeskDashboardRead, Bi as TutoringChannel, Bn as LicenseUserRead, Bo as SearchSource, Br as DrmRead, Bt as PaymentProvider, C as ThemeWrite, Ca as DeskGetIlsStatusParams, Ci as DeskPaymentsSummaryParams, Cn as ListPractitionersParams, Co as DeskAccessCheckRead, Cr as HistoryPage, Ct as ProductGrantWrite, D as TenantSettingsUpdateWrite, Da as DeskGetCatalogueCollectionParams, Di as DeskPatronPage, Dn as ListMessagesParams, Do as CurrentReadingRead, Dr as FavoriteRead, Dt as PressArticleListRead, E as ThemeRead, Ea as DeskGetCatalogueItemParams, Ei as DeskPaymentBucketRead, En as ListMyRequestsParams, Eo as CurrentReadingListRead, Er as FavoritePage, Et as PressArticleRead, F as SupplierGrantRead, Fa as DeskEntity, Fi as DeskMetricDefinitionRead, Fn as ListExpiringDocumentsParams, Fo as CategoryPreferencesWrite, Fr as EducationalGoalRead, Ft as PractitionerDocumentKind, G as SearchTenantsParams, Ga as DeskCountRead, Gi as ReviewState, Gn as SchoolCycle, Go as ThemeRefRead, Gr as DocumentPage, Gt as PatronPage, H as SessionRead, Ha as DeskMetric, Hi as DeskListTenantsParams, Hn as LevelWrite, Ho as SearchFacetRead, Hr as DocumentRead, Ht as PaymentRead, I as SubjectWrite, Ia as DeskEntitlementPage, Ii as DeskLoansSummaryParams, In as ListEditorsParams, Io as CategoryListRead, Ir as EditorListRead, It as PlaybackReportWrite, J as SearchNavigationRead, Ja as DeskContractRead, Ji as PaymentStatus, Jn as LearningPathRefRead, Jo as ContentType, Jr as DocumentLinkRead, Jt as PartnerMediaRead, K as SearchResultsRead, Ka as DeskCountPatronsParams, Ki as DeskListPractitionerDocumentsParams, Kn as LeaseRead, Ko as PageMeta, Kr as DocumentSummaryRead, Kt as PatronSummaryRead, L as SubjectListRead, La as DeskEntitlementRead, Li as DeskListTutoringRequestsParams, Ln as ListBiblioFavoritesParams, Lo as CategoryRead, Lr as EditorRead, Lt as PlaybackReportRead, M as TenantSummaryRead, Ma as DeskExplainAccessParams, Mi as PartnerProvider, Mn as ListHistoryParams, Mo as CodeExchangeWrite, Mr as FavoriteKind, Mt as PractitionerRead, N as TenantDirectoryParams, Na as DeskExclusionPage, Ni as DeskMetricTimeseriesParams, Nn as ListGoalsParams, No as ChromecastRead, Nr as EducationalGoalWrite, Nt as PractitionerDocumentListRead, O as TenantSettingsUpdateWriteSettings, Oa as DeskGetAuditEventParams, Oi as DeskPatronDetailRead, On as ListMediaParams, Oo as CredentialsWrite, Or as FavoriteListRead, Ot as PressArticleListReadFilters, P as SupportSessionRead, Pa as DeskExclusionRead, Pi as DeskMetricPointRead, Pn as ListFeedbackParams, Po as ChatTicketRead, Pr as EducationalGoalListRead, Pt as PractitionerDocumentRead, Q as ReviewPage, Qa as DeskConsumptionSummaryParams, Qi as DeskListLiveLeasesParams, Qn as ImpersonationWrite, Qo as BillingWrite, Qr as DeskTutoringRead, Qt as PartnerCategoryListRead, R as SubjectRead, Ra as DeskDocumentPage, Ri as TutoringStatus, Rn as ListAllRequestsParams, Ro as CatalogueSearchRead, Rr as EditorialSlideRead, Rt as PaymentStartWrite, S as TutoringAnswerWrite, Sa as DeskGetLoanParams, Si as DeskPaymentSummaryRead, Sn as ListPressArticlesParams, So as DeskCatalogueSource, Sr as HomeFeedSectionRead, St as ProfileCreateWrite, T as ThemeListRead, Ta as DeskGetConsumptionEventParams, Ti as DeskPaymentRead, Tn as ListNotificationsParams, To as DemoUserRead, Tr as FormFieldRead, Tt as ProductGrantRead, U as ServiceListRead, Ua as DeskDashboardOverviewParams, Ui as TenantKind, Un as LevelListRead, Uo as CatalogRefRead, Ur as TrackRead, Ut as PaymentFormRead, V as StaffLicenseRead, Va as DeskMetricValueRead, Vi as DeskListTutoringFeedbackParams, Vn as LicenseRead, Vo as SearchKind, Vr as DocumentSearchWrite, Vt as PaymentListRead, W as ServiceRead, Wa as DeskMetricSection, Wi as DeskListReviewsParams, Wn as LevelRead, Wo as CatalogRead, Wr as LayerRead, Wt as PatronUpdateWrite, X as ReviewUpdateWrite, Xa as DeskContentRatingsSummaryParams, Xi as DeskListPatronProfilesParams, Xn as LearningPathStepRead, Xo as EntitlementAct, Xr as DeskTutoringRequestsSummaryParams, Xt as PartnerFavoriteListRead, Y as SearchEverythingParams, Ya as DeskContextRead, Yi as DeskListPatronsParams, Yn as LearningPathDetailRead, Yo as BorrowWrite, Yr as DocumentInformationRead, Yt as PartnerMediaPage, Z as ReviewRead, Za as DeskConsumptionSummaryRead, Zi as DeskListLoansParams, Zn as LastPositionWrite, Zo as BodyUploadAttachment, Zr as DeskTutoringPage, Zt as PartnerMediaSummaryRead, _ as TutoringDispatchWrite, _a as DeskGetReadingProgressParams, _i as DeskRatingRead, _n as LiveLeaseListRead, _o as DeskAnswerRead, _r as HTTPExceptionResponse, _t as ReadCatalogParams, a as TutoringRequestWrite, aa as DeskListCatalogueCollectionsParams, ai as DeskServiceRead, an as NotificationListRead, ao as DeskCataloguePage, ar as IlsPasswordWrite, as as AccountRead, at as ReadPackParams, b as TutoringCloseReason, ba as DeskGetPatronServicesParams, bi as DeskPractitionerPage, bn as ListReviewsParams, bo as DeskUsageRead, br as PressReviewSectionRead, bt as ProfileListRead, c as TutoringRequestRead, ca as DeskLicenseBucketRead, ci as DeskSearchCatalogueParams, cn as MessageWrite, co as DeskBucketRead, cr as IlsLoanListRead, cs as ProductRole, ct as ReadingSessionRead, d as TutoringQueuePage, da as DeskIlsRead, di as DeskReviewPage, dn as MessageKind, do as DeskAttentionPage, dr as IlsHoldListRead, dt as ReadingPositionRead, ea as DeskListEntitlementGrantsParams, ei as DeskTenantStatsRead, en as PackListRead, eo as DeskConsumptionPage, er as IlsSuggestionOptionListRead, es as AuthorizationParams, et as RefreshWrite, f as TutoringQueueItemRead, fa as DeskGrantRead, fi as DeskReviewRead, fn as MeRead, fo as DeskCursorMetaRead, fr as IlsHoldRead, ft as ReadIlsHoldableParams, g as TutoringFeedbackModerationWrite, ga as DeskGetReviewParams, gi as DeskRatingPage, gn as LoanRead, go as DeskAttentionKind, gr as IlsAccountReadFields, gt as ReadCatalogThemeParams, h as TutoringFeedbackRead, ha as DeskGetTenantIntegrationsParams, hi as DeskRatingSummaryRead, hn as LoanPage, ho as DeskOrder, hr as IlsAccountRead, ht as ReadEditorParams, i as TutoringRoomRead, ia as DeskListConsumptionEventsParams, ii as DeskServicePage, in as OpenAtSupplierParams, io as DeskCollectionRead, ir as IlsReviewWrite, is as AccountUpdateWrite, it as ReadPatronLicenseParams, j as TenantSearchPage, ja as DeskFeedbackRead, ji as DeskPartnerLicenseSummaryParams, jn as ListIlsLoansParams, jo as ConsumptionCloseReason, jr as FavoriteAddWrite, jt as PractitionerPage, k as TenantSettingsRead, ka as DeskFindPractitionersParams, ki as DeskPatronActivityPage, kn as PartnerMediaType, ko as ContentRead, kr as FavoriteEntryRead, kt as PreferencesRead, l as TutoringRequestAdminWrite, la as DeskInterval, li as DeskSearchBackofficeParams, ln as MessagePage, lo as DeskAuditPage, lr as IlsLoanRead, ls as Product, lt as ReadingPositionWrite, m as TutoringFeedbackPage, ma as DeskGetTutoringAnswerParams, mi as DeskReferenceOptionRead, mn as LogoutWrite, mo as DeskAttentionItemsParams, mr as IlsActionRead, mt as ReaderPackageRead, n as ValidationErrorDetail, na as DeskListContractsParams, ni as DeskTenantRead, nn as PackDetailRead, no as DeskSubjectRead, nr as IlsStatusRead, ns as AiDraftReviewWrite, nt as ReadRecommendationsParams, o as TutoringRequestStaffRead, oa as DeskListAuditEventsParams, oi as DeskSearchPage, on as NotificationRead, oo as DeskCatalogueRead, or as IlsLocationListRead, os as AccountDetailRead, ot as ReadPackageParams, p as TutoringFeedbackWrite, pa as DeskGetUsageLimitsParams, pi as DeskReferenceDataRead, pn as PrincipalRead, po as DeskAttentionRead, pr as IlsHoldableRead, pt as ReadHomeFeedParams, q as SearchParams, qa as DeskContractPage, qi as DeskListPaymentsParams, qn as LeaseCloseWrite, qo as ContentSummaryRead, qr as Pillar, qt as PatronDetailRead, r as ValidationErrorDetailCtx, ra as DeskListContentRatingsParams, ri as DeskSummaryRead, rn as PackDetailReadFilters, ro as DeskCollectionPage, rr as IlsSignInWrite, rs as AiDraftRead, rt as ReadPressReviewParams, s as TutoringRequestPage, sa as DeskLicenseSummaryRead, si as DeskSearchRead, sn as ModerationWrite, so as DeskCapabilityRead, sr as IlsLocationRead, ss as ProductRoleRead, st as ReadingSessionWrite, t as ValidationErrorResponse, ta as DeskListEntitlementExclusionsParams, ti as DeskTenantPage, tn as PackRead, to as DeskConsumptionRead, tr as IlsSuggestionOptionRead, ts as AttachmentRole, tt as RecommendationsRead, u as TutoringRequestAdminCloseWrite, ua as DeskIntegrationRead, ui as DeskReviewsSummaryParams, un as MessageRead, uo as DeskAuditRead, ur as IlsHoldWrite, us as AccessMode, ut as ReadingPositionWriteUsageBlocks, v as TutoringDeliveryRead, va as DeskGetPractitionerParams, vi as DeskRatingBucketRead, vn as LiveLeaseRead, vo as DeskActLimitRead, vr as HomeFeedRead, vt as RatingUpdateWrite, w as ThemeOrderWrite, wa as DeskGetContractParams, wi as DeskPaymentPage, wn as ListPatronsParams, wo as DemoUserWrite, wr as HistoryEntryRead, wt as ProductGrantListRead, x as TutoringAttachmentRead, xa as DeskGetPatronActivityParams, xi as DeskPractitionerRead, xn as ListQueueParams, xo as DeskReferenceRead, xr as PressArticleSummaryRead, xt as ProfileRead, y as TutoringCloseWrite, ya as DeskGetPaymentParams, yi as DeskProgressRead, yn as ListThemesParams, yo as DeskAccessRead, yr as PressReviewRead, yt as ProfileUpdateWrite, z as StreamingStartQuery, za as DeskDocumentRead, zi as TutoringKind, zn as LikeRead, zo as SearchHitRead, zr as EditorDetailRead, zt as PaymentStartRead } from "./chunks/index.js";
|
|
3
|
-
export { AccessMode, AccountDetailRead, AccountRead, AccountUpdateWrite, AiDraftRead, AiDraftReviewWrite, AttachmentRole, AuthorizationParams, AuthorizationRead, BillingWrite, BodyUploadAttachment, BorrowWrite, CatalogRead, CatalogRefRead, CatalogueSearchRead, CategoryListRead, CategoryPreferencesWrite, CategoryRead, ChatTicketRead, ChromecastRead, CodeExchangeWrite, ConsumptionCloseReason, ContentPage, ContentRead, ContentSummaryRead, ContentType, CredentialsWrite, CurrentReadingListRead, CurrentReadingRead, DemoUserRead, DemoUserWrite, DeskAccessCheckRead, DeskAccessRead, DeskActLimitRead, DeskAnswerRead, DeskAttentionItemsParams, DeskAttentionKind, DeskAttentionPage, DeskAttentionRead, DeskAuditPage, DeskAuditRead, DeskBucketRead, DeskCapabilityRead, DeskCataloguePage, DeskCatalogueRead, DeskCatalogueSource, DeskCollectionPage, DeskCollectionRead, DeskConsumptionPage, DeskConsumptionRead, DeskConsumptionSummaryParams, DeskConsumptionSummaryRead, DeskContentRatingsSummaryParams, DeskContextRead, DeskContractPage, DeskContractRead, DeskCountPatronsParams, DeskCountRead, DeskCursorMetaRead, DeskDashboardOverviewParams, DeskDashboardRead, DeskDocumentPage, DeskDocumentRead, DeskEntitlementPage, DeskEntitlementRead, DeskEntity, DeskExclusionPage, DeskExclusionRead, DeskExplainAccessParams, DeskFeedbackPage, DeskFeedbackRead, DeskFindPractitionersParams, DeskGetAuditEventParams, DeskGetCatalogueCollectionParams, DeskGetCatalogueItemParams, DeskGetConsumptionEventParams, DeskGetContractParams, DeskGetIlsStatusParams, DeskGetLoanParams, DeskGetPatronActivityParams, DeskGetPatronServicesParams, DeskGetPaymentParams, DeskGetPractitionerParams, DeskGetReadingProgressParams, DeskGetReviewParams, DeskGetTenantIntegrationsParams, DeskGetTutoringAnswerParams, DeskGetUsageLimitsParams, DeskGrantRead, DeskIlsRead, DeskIntegrationRead, DeskInterval, DeskLicenseBucketRead, DeskLicenseSummaryRead, DeskListAuditEventsParams, DeskListCatalogueCollectionsParams, DeskListConsumptionEventsParams, DeskListContentRatingsParams, DeskListContractsParams, DeskListEntitlementExclusionsParams, DeskListEntitlementGrantsParams, DeskListExpiringDocumentsParams, DeskListLiveLeasesParams, DeskListLoansParams, DeskListPatronProfilesParams, DeskListPatronsParams, DeskListPaymentsParams, DeskListPractitionerDocumentsParams, DeskListReviewsParams, DeskListTenantsParams, DeskListTutoringFeedbackParams, DeskListTutoringRequestsParams, DeskLoansSummaryParams, DeskMetric, DeskMetricDefinitionRead, DeskMetricPointRead, DeskMetricSection, DeskMetricTimeseriesParams, DeskMetricValueRead, DeskOrder, DeskPartnerLicenseSummaryParams, DeskPatronActivityPage, DeskPatronDetailRead, DeskPatronPage, DeskPatronRead, DeskPaymentBucketRead, DeskPaymentPage, DeskPaymentRead, DeskPaymentSummaryRead, DeskPaymentsSummaryParams, DeskPractitionerPage, DeskPractitionerRead, DeskProgressRead, DeskRatingBucketRead, DeskRatingPage, DeskRatingRead, DeskRatingSummaryRead, DeskReferenceDataRead, DeskReferenceOptionRead, DeskReferenceRead, DeskReviewPage, DeskReviewRead, DeskReviewsSummaryParams, DeskSearchBackofficeParams, DeskSearchCatalogueParams, DeskSearchPage, DeskSearchRead, DeskServicePage, DeskServiceRead, DeskSubjectRead, DeskSummaryRead, DeskTenantPage, DeskTenantRead, DeskTenantStatsRead, DeskTimeseriesRead, DeskTutoringPage, DeskTutoringRead, DeskTutoringRequestsSummaryParams, DeskUsageRead, DocumentInformationRead, DocumentLinkRead, DocumentPage, DocumentRead, DocumentSearchWrite, DocumentSummaryRead, DrmRead, EditorDetailRead, EditorListRead, EditorRead, EditorialSlideRead, EducationalGoalListRead, EducationalGoalRead, EducationalGoalWrite, EntitlementAct, FavoriteAddWrite, FavoriteEntryRead, FavoriteKind, FavoriteListRead, FavoritePage, FavoriteRead, FormFieldRead, HTTPExceptionResponse, HistoryEntryRead, HistoryPage, HomeFeedRead, HomeFeedSectionRead, IlsAccountRead, IlsAccountReadFields, IlsActionRead, IlsHoldListRead, IlsHoldRead, IlsHoldWrite, IlsHoldableRead, IlsLoanListRead, IlsLoanRead, IlsLocationListRead, IlsLocationRead, IlsPasswordWrite, IlsReviewWrite, IlsSignInWrite, IlsStatusRead, IlsSuggestionOptionListRead, IlsSuggestionOptionRead, IlsTagWrite, ImpersonationWrite, LastPositionWrite, LayerRead, LearningPathDetailRead, LearningPathRefRead, LearningPathStepRead, LeaseCloseWrite, LeaseRead, LevelListRead, LevelRead, LevelWrite, LicenseRead, LicenseUserRead, LikeRead, ListAllRequestsParams, ListBiblioFavoritesParams, ListEditorsParams, ListExpiringDocumentsParams, ListFeedbackParams, ListGoalsParams, ListHistoryParams, ListIlsLoansParams, ListLoansParams, ListMediaParams, ListMessagesParams, ListMyRequestsParams, ListNotificationsParams, ListPatronsParams, ListPractitionersParams, ListPressArticlesParams, ListQueueParams, ListReviewsParams, ListThemesParams, LiveLeaseListRead, LiveLeaseRead, LoanPage, LoanRead, LogoutWrite, MeRead, MessageKind, MessagePage, MessageRead, MessageWrite, ModerationWrite, NotificationListRead, NotificationRead, OpenAtSupplierParams, PackDetailRead, PackDetailReadFilters, PackListRead, PackRead, PageMeta, PartnerCategoryListRead, PartnerCategoryRead, PartnerFavoriteListRead, PartnerMediaPage, PartnerMediaRead, PartnerMediaSummaryRead, PartnerMediaType, PartnerProvider, PatronDetailRead, PatronPage, PatronSummaryRead, PatronUpdateWrite, PaymentFormRead, PaymentListRead, PaymentProvider, PaymentRead, PaymentStartRead, PaymentStartWrite, PaymentStatus, Pillar, PlaybackReportRead, PlaybackReportWrite, PractitionerDocumentKind, PractitionerDocumentListRead, PractitionerDocumentRead, PractitionerPage, PractitionerRead, PractitionerWrite, PreferencesRead, PressArticleListRead, PressArticleListReadFilters, PressArticleRead, PressArticleSummaryRead, PressReviewRead, PressReviewSectionRead, PrincipalRead, Product, ProductGrantListRead, ProductGrantRead, ProductGrantWrite, ProductRole, ProductRoleRead, ProfileCreateWrite, ProfileListRead, ProfileRead, ProfileUpdateWrite, RatingUpdateWrite, ReadCatalogParams, ReadCatalogThemeParams, ReadEditorParams, ReadHomeFeedParams, ReadIlsHoldableParams, ReadPackParams, ReadPackageParams, ReadPatronLicenseParams, ReadPressReviewParams, ReadRecommendationsParams, ReaderPackageRead, ReadingPositionRead, ReadingPositionWrite, ReadingPositionWriteUsageBlocks, ReadingSessionRead, ReadingSessionWrite, RecommendationsRead, RefreshWrite, ReviewModerationRead, ReviewPage, ReviewRead, ReviewState, ReviewUpdateWrite, SchoolCycle, SearchEverythingParams, SearchFacetRead, SearchHitRead, SearchKind, SearchNavigationRead, SearchParams, SearchResultsRead, SearchSource, SearchTenantsParams, SelectionRead, ServiceListRead, ServiceRead, SessionRead, StaffLicenseRead, StreamingSessionRead, StreamingStartQuery, SubjectKind, SubjectListRead, SubjectRead, SubjectWrite, SupplierGrantRead, SupportSessionRead, TenantDirectoryParams, TenantKind, TenantSearchPage, TenantSettingsRead, TenantSettingsReadSettings, TenantSettingsUpdateWrite, TenantSettingsUpdateWriteSettings, TenantSummaryRead, ThemeListRead, ThemeOrderWrite, ThemeRead, ThemeRefRead, ThemeWrite, TrackRead, TutoringAnswerWrite, TutoringAttachmentRead, TutoringChannel, TutoringCloseReason, TutoringCloseWrite, TutoringDeliveryRead, TutoringDispatchWrite, TutoringFeedbackModerationWrite, TutoringFeedbackPage, TutoringFeedbackRead, TutoringFeedbackWrite, TutoringKind, TutoringQueueItemRead, TutoringQueuePage, TutoringRequestAdminCloseWrite, TutoringRequestAdminWrite, TutoringRequestPage, TutoringRequestRead, TutoringRequestStaffRead, TutoringRequestWrite, TutoringRoomRead, TutoringStatus, ValidationErrorDetail, ValidationErrorDetailCtx, ValidationErrorResponse };
|
|
2
|
+
import { $ as SearchNavigationRead, $a as DeskGetCatalogueItemParams, $i as DeskPartnerLicenseRead, $n as LevelListRead, $o as DeskAccessRead, $r as TrackRead, $t as PatronOverviewParams, A as TenantSettingsUpdateWrite, Aa as DeskListAuditEventsParams, Ai as DeskReviewRead, An as ListReviewsParams, Ao as DeskConsumptionSummaryParams, Ar as PressReviewSectionRead, As as DeskCatalogueSource, At as ProductGrantRead, B as SupplierGrantRead, Ba as DeskGetUsageLimitsParams, Bi as DeskPaymentSummaryRead, Bn as ListLoansParams, Bo as DeskCatalogueDetailsRead, Br as SelectionRead, Bs as BillingWrite, Bt as PractitionerDocumentRead, C as TutoringAttachmentRead, Ca as DeskListExpiringDocumentsParams, Ci as DeskServiceRead, Cn as PrincipalRead, Co as DeskContractUsageRead, Cr as IlsHoldableRead, Cs as SearchHitRead, Ct as RatingUpdateWrite, D as ThemeOrderWrite, Da as DeskListContentRatingsParams, Di as DeskSearchBackofficeParams, Dn as LiveLeaseListRead, Do as DeskContextRead, Dr as HTTPExceptionResponse, Ds as CatalogueInventoryParams, Dt as ProfileCreateWrite, E as ThemeWrite, Ea as DeskListContractsParams, Ei as DeskSearchCatalogueParams, En as LoanRead, Eo as DeskContractRead, Er as IlsAccountReadFields, Es as SearchFacetRead, Et as ProfileRead, F as TenantSummaryRead, Fa as DeskIntegrationRead, Fi as DeskRatingRead, Fn as ListNotificationsParams, Fo as DeskCollectionPage, Fr as FormFieldRead, Fs as ContentSummaryRead, Ft as PractitionerWrite, G as StreamingSessionRead, Ga as DeskGetPractitionerParams, Gi as DeskPatronPage, Gn as ListExpiringDocumentsParams, Go as DeskAuditRead, Gr as EducationalGoalRead, Gs as AiDraftRead, Gt as PaymentStartRead, H as SubjectListRead, Ha as DeskGetTenantIntegrationsParams, Hi as DeskPaymentPage, Hn as ListHistoryParams, Ho as DeskCapabilityRead, Hr as FavoriteKind, Hs as AuthorizationParams, Ht as PlaybackReportWrite, I as TenantOverviewParams, Ia as DeskIlsRead, Ii as DeskRatingBucketRead, In as ListMyRequestsParams, Io as DeskCollectionRead, Ir as FavoritePage, Is as ContentType, It as PractitionerWorkloadParams, J as ServiceListRead, Ja as DeskGetPatronActivityParams, Ji as DeskPatronActivityPage, Jn as ListAllRequestsParams, Jo as DeskAttentionRead, Jr as EditorialSlideRead, Js as AccountDetailRead, Jt as PaymentRead, K as StaffLicenseRead, Ka as DeskGetPaymentParams, Ki as DeskPatronOverviewRead, Kn as ListEditorsParams, Ko as DeskAttentionPage, Kr as EditorListRead, Ks as AccountUpdateWrite, Kt as PaymentProvider, L as TenantHierarchyParams, La as DeskHierarchyRead, Li as DeskProgressRead, Ln as ListMessagesParams, Lo as DeskCatalogueSummaryRead, Lr as FavoriteRead, Ls as BorrowWrite, Lt as PractitionerPage, M as TenantSettingsRead, Ma as DeskLicenseBucketRead, Mi as DeskReferenceOptionRead, Mn as ListPressArticlesParams, Mo as DeskConsumptionPage, Mr as HomeFeedSectionRead, Ms as CatalogRead, Mt as PressArticleListRead, N as TenantSettingsReadSettings, Na as DeskInventoryPage, Ni as DeskRatingSummaryRead, Nn as ListPractitionersParams, No as DeskConsumptionRead, Nr as HistoryPage, Ns as ThemeRefRead, Nt as PressArticleListReadFilters, O as ThemeListRead, Oa as DeskListConsumptionEventsParams, Oi as DeskReviewsSummaryParams, On as LiveLeaseRead, Oo as DeskContentRatingsSummaryParams, Or as HomeFeedRead, Os as DeskOrder, Ot as ProductGrantWrite, P as TenantSearchPage, Pa as DeskInterval, Pi as DeskRatingPage, Pn as ListPatronsParams, Po as DeskSubjectRead, Pr as HistoryEntryRead, Ps as PageMeta, Pt as PreferencesRead, Q as SearchParams, Qa as DeskGetConsumptionEventParams, Qi as DeskPartnerLicensePage, Qn as LevelWrite, Qo as DeskActLimitRead, Qr as DocumentRead, Qs as AccessMode, Qt as PatronSummaryRead, R as TenantDirectoryParams, Ra as DeskTenantNodeRead, Ri as DeskPractitionerPage, Rn as ListMediaParams, Ro as DeskNamedCountRead, Rr as FavoriteListRead, Rs as EntitlementAct, Rt as PractitionerRead, S as TutoringCloseReason, Sa as DeskListLiveLeasesParams, Si as DeskServicePage, Sn as MeRead, So as DeskCountPatronsParams, Sr as IlsHoldRead, Ss as CatalogueSearchRead, St as ReadCatalogParams, T as TopContentParams, Ta as DeskListEntitlementExclusionsParams, Ti as DeskSearchRead, Tn as LoanPage, To as DeskContractCoverageRead, Tr as IlsAccountRead, Ts as SearchKind, Tt as ProfileListRead, U as SubjectRead, Ua as DeskGetReviewParams, Ui as DeskPaymentRead, Un as ListGoalsParams, Uo as DeskBucketRead, Ur as EducationalGoalWrite, Us as AttachmentRole, Ut as PlaybackReportRead, V as SubjectWrite, Va as DeskGetTutoringAnswerParams, Vi as DeskPaymentsSummaryParams, Vn as ListIlsLoansParams, Vo as DeskCatalogueRead, Vr as FavoriteAddWrite, Vs as AuthorizationRead, Vt as PractitionerDocumentKind, W as StreamingStartQuery, Wa as DeskGetReadingProgressParams, Wi as DeskPaymentBucketRead, Wn as ListFeedbackParams, Wo as DeskAuditPage, Wr as EducationalGoalListRead, Ws as AiDraftReviewWrite, Wt as PaymentStartWrite, X as SearchTenantsParams, Xa as DeskGetIlsStatusParams, Xi as DeskPartnerLicenseSummaryParams, Xn as LicenseUserRead, Xo as DeskAttentionKind, Xr as DrmRead, Xs as ProductRole, Xt as PatronUpdateWrite, Y as ServiceRead, Ya as DeskGetLoanParams, Yi as DeskPatronRead, Yn as LikeRead, Yo as DeskAttentionItemsParams, Yr as EditorDetailRead, Ys as ProductRoleRead, Yt as PaymentFormRead, Z as SearchResultsRead, Za as DeskGetContractParams, Zi as PartnerProvider, Zn as LicenseRead, Zo as DeskAnswerRead, Zr as DocumentSearchWrite, Zs as Product, Zt as PatronPage, _ as TutoringFeedbackRead, _a as DeskListPaymentsParams, _i as DeskTenantStatsRead, _n as ModerationWrite, _o as DeskMetricValueRead, _r as IlsLocationRead, _s as ChromecastRead, _t as ReadIlsHoldableParams, a as TutoringRoomRead, aa as DeskLoansSummaryParams, ai as DocumentInformationRead, an as PartnerLicenseParams, ao as DeskExplainAccessParams, ar as LearningPathDetailRead, as as DemoUserWrite, at as RefreshWrite, b as TutoringDeliveryRead, ba as DeskListPatronProfilesParams, bi as DeskTenantOverviewRead, bn as MessageRead, bo as DeskMetricSection, br as IlsHoldWrite, bs as CategoryListRead, bt as ReadEditorParams, c as TutoringRequestPage, ca as TutoringKind, ci as DeskTutoringTimelineRead, cn as PartnerCategoryListRead, co as DeskEntity, cr as ImpersonationWrite, cs as CurrentReadingListRead, ct as ReadPressReviewParams, d as TutoringRequestAdminCloseWrite, da as DeskListTenantsParams, di as DeskTutoringPage, dn as PackRead, do as DeskDurationRead, dr as IlsSuggestionOptionRead, ds as ContractUsageParams, dt as ReadPackageParams, ea as DeskMetricTimeseriesParams, ei as LayerRead, en as PatronDetailRead, eo as DeskGetCatalogueCollectionParams, er as LevelRead, es as DeskUsageRead, et as SearchEverythingParams, f as TutoringQueuePage, fa as TenantKind, fi as DeskTutoringRead, fn as PackDetailRead, fo as DeskDocumentPage, fr as IlsStatusRead, fs as ContractCoverageParams, ft as ReadingSessionWrite, g as TutoringFeedbackPage, ga as DeskListPractitionerDocumentsParams, gi as DeskTimelineStepRead, gn as NotificationRead, go as DeskDashboardRead, gr as IlsLocationListRead, gs as CodeExchangeWrite, gt as ReadingPositionRead, h as TutoringFeedbackWrite, ha as ReviewState, hi as DeskTimeseriesRead, hn as NotificationListRead, ho as DeskDatasetCoverageRead, hr as IlsPasswordWrite, hs as ConsumptionCloseReason, ht as ReadingPositionWriteUsageBlocks, i as TutoringTimelineParams, ia as DeskScreenRead, ii as DocumentLinkRead, in as PartnerLicensesParams, io as DeskFeedbackRead, ir as LearningPathRefRead, is as DeskAccessCheckRead, it as ReviewModerationRead, j as TenantSettingsUpdateWriteSettings, ja as DeskLicenseSummaryRead, ji as DeskReferenceDataRead, jn as ListQueueParams, jo as SubjectKind, jr as PressArticleSummaryRead, js as CatalogRefRead, jt as PressArticleRead, k as ThemeRead, ka as DeskListCatalogueCollectionsParams, ki as DeskReviewPage, kn as ListThemesParams, ko as DeskConsumptionSummaryRead, kr as PressReviewRead, ks as CatalogueDetailsParams, kt as ProductGrantListRead, l as TutoringRequestRead, la as TutoringChannel, li as DeskTutoringRequestsSummaryParams, ln as PartnerCategoryRead, lo as DeskEntitlementPage, lr as IlsTagWrite, ls as CurrentReadingRead, lt as ReadPatronLicenseParams, m as TutoringPerformanceParams, ma as DeskListReviewsParams, mi as DeskTopContentRowRead, mn as OpenAtSupplierParams, mo as DeskDataCoverageRead, mr as IlsReviewWrite, ms as ContentPage, mt as ReadingPositionWrite, n as ValidationErrorDetail, na as DeskMetricDefinitionRead, ni as DocumentSummaryRead, nn as PartnerMediaRead, no as DeskFindPractitionersParams, nr as LeaseRead, ns as DeskProductAccessRead, nt as ReviewRead, o as TutoringRequestWrite, oa as DeskListTutoringRequestsParams, oi as DeskWorkloadRead, on as PartnerFavoriteListRead, oo as DeskExclusionPage, or as LearningPathStepRead, os as DemoUserRead, ot as RecommendationsRead, p as TutoringQueueItemRead, pa as TenantCommercialStatus, pi as DeskTopContentRead, pn as PackDetailReadFilters, po as DeskDocumentRead, pr as IlsSignInWrite, ps as ContentRead, pt as ReadingSessionRead, q as SessionRead, qa as DeskGetPatronServicesParams, qi as DeskPatronDetailRead, qn as ListBiblioFavoritesParams, qo as DeskCursorMetaRead, qr as EditorRead, qs as AccountRead, qt as PaymentListRead, r as ValidationErrorDetailCtx, ra as DeskManifestRead, ri as Pillar, rn as PartnerMediaPage, ro as DeskFeedbackPage, rr as LeaseCloseWrite, rs as DeskReferenceRead, rt as ReviewPage, s as TutoringRequestStaffRead, sa as TutoringStatus, si as DeskWorkloadRowRead, sn as PartnerMediaSummaryRead, so as DeskExclusionRead, sr as LastPositionWrite, ss as DataCoverageParams, st as ReadRecommendationsParams, t as ValidationErrorResponse, ta as DeskMetricPointRead, ti as DocumentPage, tn as PatronAccessMatrixParams, to as DeskGetAuditEventParams, tr as SchoolCycle, ts as DeskAccessMatrixRead, tt as ReviewUpdateWrite, u as TutoringRequestAdminWrite, ua as DeskListTutoringFeedbackParams, ui as DeskTutoringPerformanceRead, un as PackListRead, uo as DeskEntitlementRead, ur as IlsSuggestionOptionListRead, us as CredentialsWrite, ut as ReadPackParams, v as TutoringFeedbackModerationWrite, va as PaymentStatus, vi as DeskTenantPage, vn as MessageWrite, vo as DeskMetric, vr as IlsLoanListRead, vs as ChatTicketRead, vt as ReadHomeFeedParams, w as TutoringAnswerWrite, wa as DeskListEntitlementGrantsParams, wi as DeskSearchPage, wn as LogoutWrite, wo as DeskContractPage, wr as IlsActionRead, ws as SearchSource, wt as ProfileUpdateWrite, x as TutoringCloseWrite, xa as DeskListLoansParams, xi as DeskSummaryRead, xn as MessageKind, xo as DeskCountRead, xr as IlsHoldListRead, xs as CategoryRead, xt as ReadCatalogThemeParams, y as TutoringDispatchWrite, ya as DeskListPatronsParams, yi as DeskTenantRead, yn as MessagePage, yo as DeskDashboardOverviewParams, yr as IlsLoanRead, ys as CategoryPreferencesWrite, yt as ReaderPackageRead, z as SupportSessionRead, za as DeskGrantRead, zi as DeskPractitionerRead, zn as PartnerMediaType, zo as DeskCataloguePage, zr as FavoriteEntryRead, zs as BodyUploadAttachment, zt as PractitionerDocumentListRead } from "./chunks/index.js";
|
|
3
|
+
export { AccessMode, AccountDetailRead, AccountRead, AccountUpdateWrite, AiDraftRead, AiDraftReviewWrite, AttachmentRole, AuthorizationParams, AuthorizationRead, BillingWrite, BodyUploadAttachment, BorrowWrite, CatalogRead, CatalogRefRead, CatalogueDetailsParams, CatalogueInventoryParams, CatalogueSearchRead, CategoryListRead, CategoryPreferencesWrite, CategoryRead, ChatTicketRead, ChromecastRead, CodeExchangeWrite, ConsumptionCloseReason, ContentPage, ContentRead, ContentSummaryRead, ContentType, ContractCoverageParams, ContractUsageParams, CredentialsWrite, CurrentReadingListRead, CurrentReadingRead, DataCoverageParams, DemoUserRead, DemoUserWrite, DeskAccessCheckRead, DeskAccessMatrixRead, DeskAccessRead, DeskActLimitRead, DeskAnswerRead, DeskAttentionItemsParams, DeskAttentionKind, DeskAttentionPage, DeskAttentionRead, DeskAuditPage, DeskAuditRead, DeskBucketRead, DeskCapabilityRead, DeskCatalogueDetailsRead, DeskCataloguePage, DeskCatalogueRead, DeskCatalogueSource, DeskCatalogueSummaryRead, DeskCollectionPage, DeskCollectionRead, DeskConsumptionPage, DeskConsumptionRead, DeskConsumptionSummaryParams, DeskConsumptionSummaryRead, DeskContentRatingsSummaryParams, DeskContextRead, DeskContractCoverageRead, DeskContractPage, DeskContractRead, DeskContractUsageRead, DeskCountPatronsParams, DeskCountRead, DeskCursorMetaRead, DeskDashboardOverviewParams, DeskDashboardRead, DeskDataCoverageRead, DeskDatasetCoverageRead, DeskDocumentPage, DeskDocumentRead, DeskDurationRead, DeskEntitlementPage, DeskEntitlementRead, DeskEntity, DeskExclusionPage, DeskExclusionRead, DeskExplainAccessParams, DeskFeedbackPage, DeskFeedbackRead, DeskFindPractitionersParams, DeskGetAuditEventParams, DeskGetCatalogueCollectionParams, DeskGetCatalogueItemParams, DeskGetConsumptionEventParams, DeskGetContractParams, DeskGetIlsStatusParams, DeskGetLoanParams, DeskGetPatronActivityParams, DeskGetPatronServicesParams, DeskGetPaymentParams, DeskGetPractitionerParams, DeskGetReadingProgressParams, DeskGetReviewParams, DeskGetTenantIntegrationsParams, DeskGetTutoringAnswerParams, DeskGetUsageLimitsParams, DeskGrantRead, DeskHierarchyRead, DeskIlsRead, DeskIntegrationRead, DeskInterval, DeskInventoryPage, DeskLicenseBucketRead, DeskLicenseSummaryRead, DeskListAuditEventsParams, DeskListCatalogueCollectionsParams, DeskListConsumptionEventsParams, DeskListContentRatingsParams, DeskListContractsParams, DeskListEntitlementExclusionsParams, DeskListEntitlementGrantsParams, DeskListExpiringDocumentsParams, DeskListLiveLeasesParams, DeskListLoansParams, DeskListPatronProfilesParams, DeskListPatronsParams, DeskListPaymentsParams, DeskListPractitionerDocumentsParams, DeskListReviewsParams, DeskListTenantsParams, DeskListTutoringFeedbackParams, DeskListTutoringRequestsParams, DeskLoansSummaryParams, DeskManifestRead, DeskMetric, DeskMetricDefinitionRead, DeskMetricPointRead, DeskMetricSection, DeskMetricTimeseriesParams, DeskMetricValueRead, DeskNamedCountRead, DeskOrder, DeskPartnerLicensePage, DeskPartnerLicenseRead, DeskPartnerLicenseSummaryParams, DeskPatronActivityPage, DeskPatronDetailRead, DeskPatronOverviewRead, DeskPatronPage, DeskPatronRead, DeskPaymentBucketRead, DeskPaymentPage, DeskPaymentRead, DeskPaymentSummaryRead, DeskPaymentsSummaryParams, DeskPractitionerPage, DeskPractitionerRead, DeskProductAccessRead, DeskProgressRead, DeskRatingBucketRead, DeskRatingPage, DeskRatingRead, DeskRatingSummaryRead, DeskReferenceDataRead, DeskReferenceOptionRead, DeskReferenceRead, DeskReviewPage, DeskReviewRead, DeskReviewsSummaryParams, DeskScreenRead, DeskSearchBackofficeParams, DeskSearchCatalogueParams, DeskSearchPage, DeskSearchRead, DeskServicePage, DeskServiceRead, DeskSubjectRead, DeskSummaryRead, DeskTenantNodeRead, DeskTenantOverviewRead, DeskTenantPage, DeskTenantRead, DeskTenantStatsRead, DeskTimelineStepRead, DeskTimeseriesRead, DeskTopContentRead, DeskTopContentRowRead, DeskTutoringPage, DeskTutoringPerformanceRead, DeskTutoringRead, DeskTutoringRequestsSummaryParams, DeskTutoringTimelineRead, DeskUsageRead, DeskWorkloadRead, DeskWorkloadRowRead, DocumentInformationRead, DocumentLinkRead, DocumentPage, DocumentRead, DocumentSearchWrite, DocumentSummaryRead, DrmRead, EditorDetailRead, EditorListRead, EditorRead, EditorialSlideRead, EducationalGoalListRead, EducationalGoalRead, EducationalGoalWrite, EntitlementAct, FavoriteAddWrite, FavoriteEntryRead, FavoriteKind, FavoriteListRead, FavoritePage, FavoriteRead, FormFieldRead, HTTPExceptionResponse, HistoryEntryRead, HistoryPage, HomeFeedRead, HomeFeedSectionRead, IlsAccountRead, IlsAccountReadFields, IlsActionRead, IlsHoldListRead, IlsHoldRead, IlsHoldWrite, IlsHoldableRead, IlsLoanListRead, IlsLoanRead, IlsLocationListRead, IlsLocationRead, IlsPasswordWrite, IlsReviewWrite, IlsSignInWrite, IlsStatusRead, IlsSuggestionOptionListRead, IlsSuggestionOptionRead, IlsTagWrite, ImpersonationWrite, LastPositionWrite, LayerRead, LearningPathDetailRead, LearningPathRefRead, LearningPathStepRead, LeaseCloseWrite, LeaseRead, LevelListRead, LevelRead, LevelWrite, LicenseRead, LicenseUserRead, LikeRead, ListAllRequestsParams, ListBiblioFavoritesParams, ListEditorsParams, ListExpiringDocumentsParams, ListFeedbackParams, ListGoalsParams, ListHistoryParams, ListIlsLoansParams, ListLoansParams, ListMediaParams, ListMessagesParams, ListMyRequestsParams, ListNotificationsParams, ListPatronsParams, ListPractitionersParams, ListPressArticlesParams, ListQueueParams, ListReviewsParams, ListThemesParams, LiveLeaseListRead, LiveLeaseRead, LoanPage, LoanRead, LogoutWrite, MeRead, MessageKind, MessagePage, MessageRead, MessageWrite, ModerationWrite, NotificationListRead, NotificationRead, OpenAtSupplierParams, PackDetailRead, PackDetailReadFilters, PackListRead, PackRead, PageMeta, PartnerCategoryListRead, PartnerCategoryRead, PartnerFavoriteListRead, PartnerLicenseParams, PartnerLicensesParams, PartnerMediaPage, PartnerMediaRead, PartnerMediaSummaryRead, PartnerMediaType, PartnerProvider, PatronAccessMatrixParams, PatronDetailRead, PatronOverviewParams, PatronPage, PatronSummaryRead, PatronUpdateWrite, PaymentFormRead, PaymentListRead, PaymentProvider, PaymentRead, PaymentStartRead, PaymentStartWrite, PaymentStatus, Pillar, PlaybackReportRead, PlaybackReportWrite, PractitionerDocumentKind, PractitionerDocumentListRead, PractitionerDocumentRead, PractitionerPage, PractitionerRead, PractitionerWorkloadParams, PractitionerWrite, PreferencesRead, PressArticleListRead, PressArticleListReadFilters, PressArticleRead, PressArticleSummaryRead, PressReviewRead, PressReviewSectionRead, PrincipalRead, Product, ProductGrantListRead, ProductGrantRead, ProductGrantWrite, ProductRole, ProductRoleRead, ProfileCreateWrite, ProfileListRead, ProfileRead, ProfileUpdateWrite, RatingUpdateWrite, ReadCatalogParams, ReadCatalogThemeParams, ReadEditorParams, ReadHomeFeedParams, ReadIlsHoldableParams, ReadPackParams, ReadPackageParams, ReadPatronLicenseParams, ReadPressReviewParams, ReadRecommendationsParams, ReaderPackageRead, ReadingPositionRead, ReadingPositionWrite, ReadingPositionWriteUsageBlocks, ReadingSessionRead, ReadingSessionWrite, RecommendationsRead, RefreshWrite, ReviewModerationRead, ReviewPage, ReviewRead, ReviewState, ReviewUpdateWrite, SchoolCycle, SearchEverythingParams, SearchFacetRead, SearchHitRead, SearchKind, SearchNavigationRead, SearchParams, SearchResultsRead, SearchSource, SearchTenantsParams, SelectionRead, ServiceListRead, ServiceRead, SessionRead, StaffLicenseRead, StreamingSessionRead, StreamingStartQuery, SubjectKind, SubjectListRead, SubjectRead, SubjectWrite, SupplierGrantRead, SupportSessionRead, TenantCommercialStatus, TenantDirectoryParams, TenantHierarchyParams, TenantKind, TenantOverviewParams, TenantSearchPage, TenantSettingsRead, TenantSettingsReadSettings, TenantSettingsUpdateWrite, TenantSettingsUpdateWriteSettings, TenantSummaryRead, ThemeListRead, ThemeOrderWrite, ThemeRead, ThemeRefRead, ThemeWrite, TopContentParams, TrackRead, TutoringAnswerWrite, TutoringAttachmentRead, TutoringChannel, TutoringCloseReason, TutoringCloseWrite, TutoringDeliveryRead, TutoringDispatchWrite, TutoringFeedbackModerationWrite, TutoringFeedbackPage, TutoringFeedbackRead, TutoringFeedbackWrite, TutoringKind, TutoringPerformanceParams, TutoringQueueItemRead, TutoringQueuePage, TutoringRequestAdminCloseWrite, TutoringRequestAdminWrite, TutoringRequestPage, TutoringRequestRead, TutoringRequestStaffRead, TutoringRequestWrite, TutoringRoomRead, TutoringStatus, TutoringTimelineParams, ValidationErrorDetail, ValidationErrorDetailCtx, ValidationErrorResponse };
|
package/dist/models.js
CHANGED
|
@@ -226,6 +226,20 @@ const SubjectKind = {
|
|
|
226
226
|
tutoring_request: "tutoring_request"
|
|
227
227
|
};
|
|
228
228
|
//#endregion
|
|
229
|
+
//#region src/models/tenantCommercialStatus.ts
|
|
230
|
+
const TenantCommercialStatus = {
|
|
231
|
+
customer: "customer",
|
|
232
|
+
prospect: "prospect",
|
|
233
|
+
prospect_test: "prospect_test",
|
|
234
|
+
former_customer: "former_customer",
|
|
235
|
+
indirect_subscriber: "indirect_subscriber",
|
|
236
|
+
quote_sent: "quote_sent",
|
|
237
|
+
partner: "partner",
|
|
238
|
+
test: "test",
|
|
239
|
+
archived: "archived",
|
|
240
|
+
parent_account: "parent_account"
|
|
241
|
+
};
|
|
242
|
+
//#endregion
|
|
229
243
|
//#region src/models/tenantKind.ts
|
|
230
244
|
const TenantKind = {
|
|
231
245
|
vendor: "vendor",
|
|
@@ -284,6 +298,6 @@ const TutoringStatus = {
|
|
|
284
298
|
expired: "expired"
|
|
285
299
|
};
|
|
286
300
|
//#endregion
|
|
287
|
-
export { AccessMode, AttachmentRole, ConsumptionCloseReason, ContentType, DeskAttentionKind, DeskCatalogueSource, DeskEntity, DeskInterval, DeskMetric, DeskMetricSection, DeskOrder, EntitlementAct, FavoriteKind, MessageKind, PartnerMediaType, PartnerProvider, PaymentProvider, PaymentStatus, Pillar, PractitionerDocumentKind, Product, ProductRole, ReviewState, SchoolCycle, SearchKind, SearchSource, SubjectKind, TenantKind, TutoringChannel, TutoringCloseReason, TutoringKind, TutoringStatus };
|
|
301
|
+
export { AccessMode, AttachmentRole, ConsumptionCloseReason, ContentType, DeskAttentionKind, DeskCatalogueSource, DeskEntity, DeskInterval, DeskMetric, DeskMetricSection, DeskOrder, EntitlementAct, FavoriteKind, MessageKind, PartnerMediaType, PartnerProvider, PaymentProvider, PaymentStatus, Pillar, PractitionerDocumentKind, Product, ProductRole, ReviewState, SchoolCycle, SearchKind, SearchSource, SubjectKind, TenantCommercialStatus, TenantKind, TutoringChannel, TutoringCloseReason, TutoringKind, TutoringStatus };
|
|
288
302
|
|
|
289
303
|
//# sourceMappingURL=models.js.map
|
package/dist/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","names":[],"sources":["../src/models/accessMode.ts","../src/models/attachmentRole.ts","../src/models/consumptionCloseReason.ts","../src/models/contentType.ts","../src/models/deskAttentionKind.ts","../src/models/deskCatalogueSource.ts","../src/models/deskEntity.ts","../src/models/deskInterval.ts","../src/models/deskMetric.ts","../src/models/deskMetricSection.ts","../src/models/deskOrder.ts","../src/models/entitlementAct.ts","../src/models/favoriteKind.ts","../src/models/messageKind.ts","../src/models/partnerMediaType.ts","../src/models/partnerProvider.ts","../src/models/paymentProvider.ts","../src/models/paymentStatus.ts","../src/models/pillar.ts","../src/models/practitionerDocumentKind.ts","../src/models/product.ts","../src/models/productRole.ts","../src/models/reviewState.ts","../src/models/schoolCycle.ts","../src/models/searchKind.ts","../src/models/searchSource.ts","../src/models/subjectKind.ts","../src/models/tenantKind.ts","../src/models/tutoringChannel.ts","../src/models/tutoringCloseReason.ts","../src/models/tutoringKind.ts","../src/models/tutoringStatus.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.7.0\n */\n\n/**\n * Consult in place, or take a copy away. Legacy ``$upload``.\n *\n * Distinct from :class:`EntitlementAct`, which says what the *library is\n * billed for*. This says what the *supplier is told*, and only three\n * platforms are told at all — see\n * :attr:`TokenFormula.WITH_LIBRARY_AND_MODE`.\n *\n * The two travel together but are not the same axis: a ``LOAN_DOWNLOAD`` and\n * a plain ``DOWNLOAD`` bill differently and present the supplier with the same\n * mode.\n */\nexport type AccessMode = typeof AccessMode[keyof typeof AccessMode];\n\n\nexport const AccessMode = {\n stream: 'stream',\n download: 'download',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * Which side of the exchange a file belongs to.\n *\n * The legacy carries three ``text NOT NULL`` columns — ``documents``,\n * ``drawings``, ``answer_documents`` — each holding a serialised list of paths,\n * so a file has no size, no type, no uploader and no timestamp, and an empty\n * list is the string ``''``. One row per file, with a role, replaces all three.\n */\nexport type AttachmentRole = typeof AttachmentRole[keyof typeof AttachmentRole];\n\n\nexport const AttachmentRole = {\n question: 'question',\n sketch: 'sketch',\n answer: 'answer',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * Why a consumption lease stopped. Legacy ``sessions.cloture``.\n *\n * The legacy's single letters, decoded from the procedures that write them:\n * ``u`` is ``ouvreSessionCours2`` closing the previous session because the\n * reader opened something else, ``a`` is ``FermeSessionAdherent`` — staff\n * force-closing from the CE admin — and ``s`` is ``reset_sessions`` reaping a\n * lease left open more than 180 minutes.\n *\n * ``n`` is not here: it means *open*, which this column expresses by being\n * NULL. A closed-reason enum with an \"isn't closed\" member is how you get code\n * that checks the wrong one of two things.\n */\nexport type ConsumptionCloseReason = typeof ConsumptionCloseReason[keyof typeof ConsumptionCloseReason];\n\n\nexport const ConsumptionCloseReason = {\n completed: 'completed',\n superseded: 'superseded',\n staff: 'staff',\n expired: 'expired',\n failed: 'failed',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * Denormalised onto ``content`` from the kind of its categories.\n *\n * MUSIC is not in the source spec but is required for the derivation to be\n * total — CategoryKind has it, so a content row can reach it.\n */\nexport type ContentType = typeof ContentType[keyof typeof ContentType];\n\n\nexport const ContentType = {\n course: 'course',\n press_issue: 'press_issue',\n book: 'book',\n music: 'music',\n service: 'service',\n} as const;\n","/**\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.7.0\n */\n\nexport type DeskAttentionKind = typeof DeskAttentionKind[keyof typeof DeskAttentionKind];\n\n\nexport const DeskAttentionKind = {\n expiring_contract: 'expiring_contract',\n waiting_tutoring: 'waiting_tutoring',\n lapsed_document: 'lapsed_document',\n pending_review: 'pending_review',\n} as const;\n","/**\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.7.0\n */\n\nexport type DeskCatalogueSource = typeof DeskCatalogueSource[keyof typeof DeskCatalogueSource];\n\n\nexport const DeskCatalogueSource = {\n biblio: 'biblio',\n cvs: 'cvs',\n nextory: 'nextory',\n youscribe: 'youscribe',\n} as const;\n","/**\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.7.0\n */\n\nexport type DeskEntity = typeof DeskEntity[keyof typeof DeskEntity];\n\n\nexport const DeskEntity = {\n tenant: 'tenant',\n patron: 'patron',\n contract: 'contract',\n tutoring_request: 'tutoring_request',\n} as const;\n","/**\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.7.0\n */\n\nexport type DeskInterval = typeof DeskInterval[keyof typeof DeskInterval];\n\n\nexport const DeskInterval = {\n day: 'day',\n week: 'week',\n month: 'month',\n} as const;\n","/**\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.7.0\n */\n\nexport type DeskMetric = typeof DeskMetric[keyof typeof DeskMetric];\n\n\nexport const DeskMetric = {\n registrations: 'registrations',\n active_users: 'active_users',\n consumption_events: 'consumption_events',\n consumed_units: 'consumed_units',\n tutoring_requests: 'tutoring_requests',\n settled_payment_amount: 'settled_payment_amount',\n} as const;\n","/**\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.7.0\n */\n\nexport type DeskMetricSection = typeof DeskMetricSection[keyof typeof DeskMetricSection];\n\n\nexport const DeskMetricSection = {\n all: 'all',\n accounts: 'accounts',\n consumption: 'consumption',\n tutoring: 'tutoring',\n payments: 'payments',\n} as const;\n","/**\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.7.0\n */\n\nexport type DeskOrder = typeof DeskOrder[keyof typeof DeskOrder];\n\n\nexport const DeskOrder = {\n id: 'id',\n '-id': '-id',\n name: 'name',\n '-name': '-name',\n created_at: 'created_at',\n '-created_at': '-created_at',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * What a grant permits somebody to *do* with a work.\n *\n * Recovered from ``mediadb.exemp``, which flattens a 4x7 matrix into 48\n * columns: four acts — ``is_streaming``, ``is_download``, ``is_pret_streaming``,\n * ``is_pret_download`` — each repeating the same seven limits (allowed, units\n * granted, units left, max duration, duration unit, device cap, concurrent-user\n * cap), plus ``is_extend`` / ``nb_extend`` on the side.\n *\n * That matrix is the whole reason this enum exists. Four acts x seven limits as\n * columns means a fifth act costs a migration and seven more columns; as rows it\n * costs an INSERT. ``jetons.consulterpret`` draws the same consult/loan line at\n * the patron tier, which is corroboration rather than a second vocabulary.\n *\n * Biblio has no equivalent: its grant is boolean and maps to ``VIEW`` alone.\n */\nexport type EntitlementAct = typeof EntitlementAct[keyof typeof EntitlementAct];\n\n\nexport const EntitlementAct = {\n view: 'view',\n download: 'download',\n loan_view: 'loan_view',\n loan_download: 'loan_download',\n extend: 'extend',\n tutor: 'tutor',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * ``favorites.mode``: 'C' / 'P'. The one enum the legacy code validates.\n */\nexport type FavoriteKind = typeof FavoriteKind[keyof typeof FavoriteKind];\n\n\nexport const FavoriteKind = {\n content: 'content',\n press_title: 'press_title',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * What a chat line is.\n *\n * Prof Express has no equivalent, because it has no message table at all — the\n * conversation lives in SendBird and the platform holds only a channel URL. So\n * \"what did the teacher tell this pupil last term\" is a question for a third\n * party's retention policy, and a chat that breaks needs a\n * ``/requete/reparer-probleme-chat/{id}`` route to repair it.\n */\nexport type MessageKind = typeof MessageKind[keyof typeof MessageKind];\n\n\nexport const MessageKind = {\n text: 'text',\n system: 'system',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * How the partner catalogue shelves one media.\n *\n * Recovered from ``NextoryMediaTransformer::mediaType()``, which is not the\n * obvious mapping from ``content_type`` and must not be simplified into one:\n *\n * * category 249 (\"BDs et humour\") + ``audiobook`` → ``livres-audio``\n * * category 249 + a real comics subcategory (250–261) → ``bd``\n * * category 249 with only 262–264 (Humour / Satires / Citations), or with no\n * subcategory at all → ``livres``\n * * category 314 → ``podcasts``\n * * otherwise ``ebook`` → ``livres``, ``audiobook`` → ``livres-audio``\n *\n * The 262–264 carve-out is load-bearing. Those subcategories sit under 249, but\n * the ``livres`` menu excludes 249 entirely, so anything classified there was\n * unreachable from every page — which is why the legacy grew a synthetic\n * category 10001 to rehome them.\n *\n * Values are the feed's own strings; the importer writes them verbatim.\n *\n * **The derivation above is Nextory's.** YouScribe's is a plain one-to-one map\n * from :attr:`~app.models.partner.catalogue.PartnerMedia.kind`, measured over\n * all 173,742 of its rows on 2026-09-11 with no crossover at all::\n *\n * partition → partitions 119,534 68.8%\n * ebook → livres 43,420 25.0%\n * audiobook → livres-audio 8,273 4.8%\n * bd → bd 2,495 1.4%\n * podcast → podcasts 20 0.0%\n *\n * So one column is not derived the same way for both partners, and an importer\n * that assumes Nextory's category arithmetic would mis-shelve every YouScribe\n * title.\n */\nexport type PartnerMediaType = typeof PartnerMediaType[keyof typeof PartnerMediaType];\n\n\nexport const PartnerMediaType = {\n livres: 'livres',\n bd: 'bd',\n 'livres-audio': 'livres-audio',\n podcasts: 'podcasts',\n partitions: 'partitions',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * A partner whose catalogue and reader we host directly.\n *\n * Names both halves of the integration: the seat pool\n * (:class:`~app.models.biblio.license.PartnerLicense`) and the ingested\n * catalogue (``app.models.partner.catalogue``). One enum rather than two\n * because a provider is a provider — a licence for Nextory and a Nextory media\n * row are the same partner seen from two sides.\n *\n * Distinct from :class:`BookSource`, which says which feed produced a *biblio*\n * ``book`` row. The two vocabularies overlap on ``nextory`` and will keep\n * overlapping: the partner catalogue is deliberately a separate subsystem from\n * ``book``/``book_content_link``, bridged rather than merged.\n */\nexport type PartnerProvider = typeof PartnerProvider[keyof typeof PartnerProvider];\n\n\nexport const PartnerProvider = {\n nextory: 'nextory',\n youscribe: 'youscribe',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * Who takes the card. Legacy ``bm.txt_param['payment_type']``.\n *\n * Per library, and the legacy means it — ``getPaymentSettings()`` branches on\n * this before it knows anything else, and the two providers do not merely\n * differ in credentials: PayPal is a server API that returns a URL, Paybox is\n * a signed browser form POST. Nothing about the hand-off is shared.\n */\nexport type PaymentProvider = typeof PaymentProvider[keyof typeof PaymentProvider];\n\n\nexport const PaymentProvider = {\n none: 'none',\n paybox: 'paybox',\n paypal: 'paypal',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * Where a top-up is in its life. Legacy ``paiement_abonnement.status``.\n *\n * The legacy stores the four ``PBX_STATUT_*`` integers from\n * ``v1/config.inc.php``, named for Paybox and now carried by PayPal — which is\n * why the constants say ``PBX`` and the code calls ``createPaypalOrder``. The\n * integers are kept as the wire values so rows already written keep meaning\n * what they meant.\n *\n * ``PENDING`` is the only state a payment may be created in, and only the\n * provider's server-to-server callback may move it out.\n */\nexport type PaymentStatus = typeof PaymentStatus[keyof typeof PaymentStatus];\n\n\nexport const PaymentStatus = {\n pending: 'pending',\n settled: 'settled',\n declined: 'declined',\n awaiting: 'awaiting',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * A content vertical. The single most load-bearing decoder in the schema.\n *\n * Recovered from ``Services/V3/MenuService.php:1055`` and corroborated by\n * ``v1/config.inc.php:651``::\n *\n * 1 => musique 2 => cinema 3 => savoirs\n * 4 => livres 5 => presse 6 => jeux 7 => inclusion\n *\n * It decodes every numbered ``droit*`` (tenant offers this pillar),\n * ``docsforfait*`` / ``nbdocs_forfait*`` (per-pillar document quota), and every\n * ``pilier`` column on works, themes and the consumption log.\n *\n * Note the asymmetry, which is real and worth preserving: the numbered columns\n * stop at 6, but ``pilier`` reaches 7 — inclusion was added to the product after\n * the numbered-column pattern was already set in the schema.\n */\nexport type Pillar = typeof Pillar[keyof typeof Pillar];\n\n\nexport const Pillar = {\n music: 'music',\n film: 'film',\n learning: 'learning',\n books: 'books',\n press: 'press',\n games: 'games',\n inclusion: 'inclusion',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * A compliance document a contracted practitioner must hold.\n *\n * French self-employment paperwork, which the legacy keeps as four bare\n * ``text`` columns on both ``teachers`` and ``switchmen``\n * (``kbis_siret_document``, ``ursaff_document``, ``ursaff_date``,\n * ``contrat_documents``) — so a document has no expiry anyone can query, and\n * ``ursaff_date`` is ``NOT NULL`` with no default, meaning \"not supplied\" is\n * stored as a real date.\n *\n * Modelling expiry is the point: an URSSAF attestation is valid for six months\n * and a lapsed one is a compliance problem that should be answerable by a\n * query rather than by opening a filing cabinet.\n */\nexport type PractitionerDocumentKind = typeof PractitionerDocumentKind[keyof typeof PractitionerDocumentKind];\n\n\nexport const PractitionerDocumentKind = {\n siret: 'siret',\n urssaf: 'urssaf',\n contract: 'contract',\n insurance: 'insurance',\n diploma: 'diploma',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * Which of the three platforms a functional grant applies to.\n *\n * One API serves three products, and a tenant can offer more than one of them\n * — a library with a Prof Express contract is one organisation whose patrons\n * borrow books *and* whose pupils ask questions (the legacy says so itself\n * with ``students.library`` and ``inquiries.for_librarian``). So the product is\n * its own axis rather than something ``tenant_id`` implies.\n *\n * Not :class:`LegacySource`, which looks similar and means something else:\n * that records where a migrated row *came from* and is null for anything\n * created since. This says what a grant is *for*.\n */\nexport type Product = typeof Product[keyof typeof Product];\n\n\nexport const Product = {\n biblio: 'biblio',\n mediatheques: 'mediatheques',\n prof_express: 'prof_express',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * What kind of participant somebody is, in one product at one tenant.\n *\n * The vocabulary is **per product**, which is the point: Prof Express has\n * pupils and teachers, and biblio has no such thing. A product that needs no\n * functional roles simply has no rows — nothing forces a shared vocabulary,\n * and adding a role to one product is an ``INSERT`` rather than a Keycloak\n * change or a migration.\n *\n * Deliberately *not* Keycloak realm roles. The broker knows whether somebody\n * is an end user or internal staff (:class:`RoleKind`); it does not know that\n * user 42 teaches at works-council 3. Keeping these out of the realm keeps\n * Keycloak off the write path for grants, and avoids the realm-and-enum\n * lockstep that has already broken once.\n *\n * Valid pairings are declared in :data:`PRODUCT_ROLES` rather than as a CHECK\n * constraint: the set will change as the products do, and a migration per\n * product decision is a tax with no payer.\n *\n * Pupil and parent are explicit rather than derived from ``User.parent_id``.\n * Deriving them is too clever — a parent who has not added a child yet is\n * indistinguishable from a pupil — and the legacy makes the same distinction\n * with its ``role:student`` / ``role:parent`` middleware.\n */\nexport type ProductRole = typeof ProductRole[keyof typeof ProductRole];\n\n\nexport const ProductRole = {\n student: 'student',\n parent: 'parent',\n teacher: 'teacher',\n dispatcher: 'dispatcher',\n coach: 'coach',\n librarian: 'librarian',\n support: 'support',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * ``avis.state``. Values recovered from the moderation screens.\n *\n * Unconstrained in the schema — the column is a ``tinyint`` with no decoder —\n * so this names what the API accepts, not what the column is known to hold.\n */\nexport type ReviewState = typeof ReviewState[keyof typeof ReviewState];\n\n\nexport const ReviewState = {\n pending: 'pending',\n published: 'published',\n rejected: 'rejected',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * The French school cycle a level belongs to.\n *\n * Not in the legacy schema, which stores levels as a flat list with a display\n * order and reconstructs the grouping in views. It is here because every\n * dispatch rule and every teacher competency is expressed per cycle in\n * practice — a *professeur des écoles* does not answer a *terminale* question.\n */\nexport type SchoolCycle = typeof SchoolCycle[keyof typeof SchoolCycle];\n\n\nexport const SchoolCycle = {\n kindergarten: 'kindergarten',\n primary: 'primary',\n middle: 'middle',\n high: 'high',\n higher: 'higher',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * What a search hit *is*, in one vocabulary across every catalogue.\n *\n * The frontend groups, filters and picks an icon from this, so it has to mean\n * the same thing whichever catalogue answered. Each source maps onto it in\n * ``app.services.catalogue_search``; the mapping is deliberately lossy — a hit\n * carries its native id and source for anything finer.\n *\n * ``OTHER`` exists so the mapping is total. A source value nobody has mapped\n * yet becomes a findable result with a dull label, never a dropped row.\n */\nexport type SearchKind = typeof SearchKind[keyof typeof SearchKind];\n\n\nexport const SearchKind = {\n book: 'book',\n audiobook: 'audiobook',\n comic: 'comic',\n podcast: 'podcast',\n sheet_music: 'sheet_music',\n press: 'press',\n course: 'course',\n film: 'film',\n music: 'music',\n service: 'service',\n other: 'other',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * Which catalogue a cross-catalogue search hit came from.\n *\n * The wire vocabulary for the generalist ``GET /search``, and deliberately not\n * :class:`Product`: that enum says which platform a *grant* applies to and has\n * no member for the partner catalogue, because a partner title is entitled\n * through the biblio or mediatheques contract that reaches it. This says where\n * a result is *shelved*, which is what a client renders a badge from and what\n * it needs in order to build the right detail link.\n */\nexport type SearchSource = typeof SearchSource[keyof typeof SearchSource];\n\n\nexport const SearchSource = {\n biblio: 'biblio',\n cvs: 'cvs',\n partner: 'partner',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * Which catalogue a consumed item belongs to. The ledger's polymorphic key.\n *\n * Replaces the three nullable FKs the ledger used to carry (``work_id`` /\n * ``content_id`` / ``partner_media_id``) with one ``(kind, id)`` pair, so a new\n * platform costs **an enum value, not a migration** — the same trade every\n * other enum here makes. The id has no database foreign key: the ledger is a\n * billing and history record, and a consumed item being deleted from its\n * catalogue must not erase the record of it having been consumed.\n *\n * Grant *resolution* stays keyed by the concrete catalogue FK (grants are\n * defined per work, per content, per category); only the *ledger* subject is\n * polymorphic. :class:`app.services.consumption.Subject` bridges the two.\n */\nexport type SubjectKind = typeof SubjectKind[keyof typeof SubjectKind];\n\n\nexport const SubjectKind = {\n content: 'content',\n work: 'work',\n partner_media: 'partner_media',\n tutoring_request: 'tutoring_request',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * What sort of organisation a tenant is.\n *\n * VENDOR is the operator itself and sits at the root of the tree; internal staff\n * are its users. CONSORTIUM covers a département or network portal that owns\n * member libraries beneath it.\n *\n * Merged from biblio's ``ClientTypeFactory::dbCode()`` and the CVS tenant list.\n * Unconstrained until the full ``bm`` value set is known.\n *\n * Note the lossy code: ``dbCode()`` maps **six** client types onto **five**\n * letters — RATTA (a *rattachement*, an affiliated site) and MED both emit\n * ``'M'``, and ``'C'`` is also the default arm, absorbing anything\n * unrecognised. So the stored letter cannot distinguish an affiliated site from\n * a plain library. Here that distinction is carried structurally instead: an\n * affiliated site is a LIBRARY with a non-null ``parent_id``. Keep\n * ``kind_detail`` until the raw values confirm nothing else is encoded.\n */\nexport type TenantKind = typeof TenantKind[keyof typeof TenantKind];\n\n\nexport const TenantKind = {\n vendor: 'vendor',\n consortium: 'consortium',\n library: 'library',\n works_council: 'works_council',\n corporate: 'corporate',\n small_business: 'small_business',\n school: 'school',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * How the answer reaches the pupil.\n *\n * Orthogonal to :class:`TutoringKind`: any kind can be delivered by any\n * channel the tenant has enabled, and a request legitimately changes channel\n * mid-flight — the legacy's ``differed_to_live`` and ``ai_to_live`` are both\n * that transition, recorded as booleans because the schema had nowhere to put\n * a channel.\n */\nexport type TutoringChannel = typeof TutoringChannel[keyof typeof TutoringChannel];\n\n\nexport const TutoringChannel = {\n chat: 'chat',\n classroom: 'classroom',\n phone: 'phone',\n written: 'written',\n ai: 'ai',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * Why a request closed without succeeding.\n *\n * Collapses ``inquiry_status_reasons`` and ``inquiry_status_fail_reasons`` —\n * two tables, four columns between them, joined through two more nullable\n * sentinel-zero columns on every inquiry. The values here are the ones the\n * rebuilt flow can actually produce; the legacy tables' contents come back\n * from the probe and any distinct reason with volume earns a member.\n */\nexport type TutoringCloseReason = typeof TutoringCloseReason[keyof typeof TutoringCloseReason];\n\n\nexport const TutoringCloseReason = {\n no_teacher_available: 'no_teacher_available',\n out_of_hours: 'out_of_hours',\n pupil_unreachable: 'pupil_unreachable',\n out_of_scope: 'out_of_scope',\n duplicate: 'duplicate',\n withdrawn: 'withdrawn',\n technical: 'technical',\n no_show: 'no_show',\n account_problem: 'account_problem',\n password_problem: 'password_problem',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * What is being asked for.\n *\n * Replaces six independent booleans on ``inquiries`` — ``for_librarian``,\n * ``for_grand_oral``, ``for_ai``, ``for_coach``, ``parents_web_advice`` and\n * (in the archives) ``for_school_counselor`` / ``for_psychologist``. Six flags\n * describe 64 states, of which a handful are meaningful and none is documented;\n * one enum describes exactly the states that exist.\n *\n * Two of those flags are **not** kinds and are modelled elsewhere: ``for_ai``\n * is a delivery channel (:class:`TutoringChannel`), and ``differed_to_live`` is\n * a transition between channels rather than a state.\n *\n * Provisional in one respect: whether the legacy flags are mutually exclusive\n * in the data is answered by section F of ``tools/profexpress_probe.sql``,\n * which groups the live combinations. If a real row carries two at once, that\n * combination needs a value here rather than a second column.\n */\nexport type TutoringKind = typeof TutoringKind[keyof typeof TutoringKind];\n\n\nexport const TutoringKind = {\n homework: 'homework',\n grand_oral: 'grand_oral',\n coaching: 'coaching',\n orientation: 'orientation',\n librarian: 'librarian',\n parent_advice: 'parent_advice',\n} as const;\n","/**\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.7.0\n */\n\n/**\n * Where a request has got to.\n *\n * The legacy vocabulary is now known rather than guessed. ``InquiryStatus``\n * holds no fixture, but ``InquiryStatus::getHrList()`` names ids 1-13 and\n * ``AdminInquiriesController::applyStatusFilter`` maps each id to its initials,\n * which together give the complete set — twelve initials, not the four that\n * appear in ``whereInitials(...)`` calls:\n *\n * ==== ============================ ========= ========= =======================\n * id name initials type_id maps to\n * ==== ============================ ========= ========= =======================\n * 1 En édition ``E`` -- :attr:`DRAFT`\n * 2 Différées enregistrées ``R`` 2 :attr:`SUBMITTED` + WRITTEN\n * 3 Live en chat ``CHA`` 1 :attr:`SUBMITTED` + CHAT\n * 4 Différées validées ``V`` 2 :attr:`DISPATCHED` + WRITTEN\n * 5 Live validées ``V`` 1 :attr:`DISPATCHED` + CHAT\n * 6 Succès ``S`` -- :attr:`SUCCEEDED`\n * 7 Echec ``F`` -- :attr:`FAILED`\n * 8 Annulation du RDV ``CAN`` -- :attr:`CANCELLED`\n * 9 Non-présentation au RDV ``ABS`` -- FAILED + ``no_show``\n * 10 Problème compte ``NI`` -- FAILED + ``account_problem``\n * 11 Problème compte traité ``FIX`` -- back to DISPATCHED\n * 12 Problème mot de passe ``MDP`` -- FAILED + ``password_problem``\n * 13 Autre *(none)* -- anything not above\n * -- Abandon ``A`` -- :attr:`EXPIRED`\n * ==== ============================ ========= ========= =======================\n *\n * **The important find: ``V`` is ambiguous on its own.** Ids 4 and 5 share it\n * and are told apart by ``type_id`` — 1 is live, 2 is *différé*. So a legacy\n * status is the pair ``(initials, type_id)``, which is exactly why this enum\n * carries no channel: state and delivery are two axes, and the legacy conflated\n * them into one lookup table with duplicate initials.\n *\n * Three of the twelve are not states at all. ``ABS``, ``NI`` and ``MDP``\n * describe *why* a request stopped, so they are\n * :class:`TutoringCloseReason` values on a FAILED request; and ``FIX`` is a\n * transition back into the queue rather than a resting place. Modelling them as\n * statuses is what forces the legacy to ask \"is this status final?\" with a\n * hard-coded list of names (``InquiryStatus::final``).\n *\n * :attr:`TRIAGED`, :attr:`CLAIMED` and :attr:`ANSWERED` have no legacy status\n * at all — the legacy records those moments only as timestamps, which is why\n * \"how long did triage take\" is a question its own reporting code has to\n * subtract to answer.\n */\nexport type TutoringStatus = typeof TutoringStatus[keyof typeof TutoringStatus];\n\n\nexport const TutoringStatus = {\n draft: 'draft',\n submitted: 'submitted',\n triaged: 'triaged',\n dispatched: 'dispatched',\n claimed: 'claimed',\n answered: 'answered',\n succeeded: 'succeeded',\n failed: 'failed',\n cancelled: 'cancelled',\n expired: 'expired',\n} as const;\n"],"mappings":";;AAuBA,MAAa,aAAa;CACxB,QAAQ;CACR,UAAU;AACZ;;;ACPA,MAAa,iBAAiB;CAC5B,UAAU;CACV,QAAQ;CACR,QAAQ;AACV;;;ACCA,MAAa,yBAAyB;CACpC,WAAW;CACX,YAAY;CACZ,OAAO;CACP,SAAS;CACT,QAAQ;AACV;;;ACbA,MAAa,cAAc;CACzB,QAAQ;CACR,aAAa;CACb,MAAM;CACN,OAAO;CACP,SAAS;AACX;;;ACZA,MAAa,oBAAoB;CAC/B,mBAAmB;CACnB,kBAAkB;CAClB,iBAAiB;CACjB,gBAAgB;AAClB;;;ACLA,MAAa,sBAAsB;CACjC,QAAQ;CACR,KAAK;CACL,SAAS;CACT,WAAW;AACb;;;ACLA,MAAa,aAAa;CACxB,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,kBAAkB;AACpB;;;ACLA,MAAa,eAAe;CAC1B,KAAK;CACL,MAAM;CACN,OAAO;AACT;;;ACJA,MAAa,aAAa;CACxB,eAAe;CACf,cAAc;CACd,oBAAoB;CACpB,gBAAgB;CAChB,mBAAmB;CACnB,wBAAwB;AAC1B;;;ACPA,MAAa,oBAAoB;CAC/B,KAAK;CACL,UAAU;CACV,aAAa;CACb,UAAU;CACV,UAAU;AACZ;;;ACNA,MAAa,YAAY;CACvB,IAAI;CACJ,OAAO;CACP,MAAM;CACN,SAAS;CACT,YAAY;CACZ,eAAe;AACjB;;;ACSA,MAAa,iBAAiB;CAC5B,MAAM;CACN,UAAU;CACV,WAAW;CACX,eAAe;CACf,QAAQ;CACR,OAAO;AACT;;;ACpBA,MAAa,eAAe;CAC1B,SAAS;CACT,aAAa;AACf;;;ACGA,MAAa,cAAc;CACzB,MAAM;CACN,QAAQ;AACV;;;ACsBA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,IAAI;CACJ,gBAAgB;CAChB,UAAU;CACV,YAAY;AACd;;;AC1BA,MAAa,kBAAkB;CAC7B,SAAS;CACT,WAAW;AACb;;;ACTA,MAAa,kBAAkB;CAC7B,MAAM;CACN,QAAQ;CACR,QAAQ;AACV;;;ACAA,MAAa,gBAAgB;CAC3B,SAAS;CACT,SAAS;CACT,UAAU;CACV,UAAU;AACZ;;;ACAA,MAAa,SAAS;CACpB,OAAO;CACP,MAAM;CACN,UAAU;CACV,OAAO;CACP,OAAO;CACP,OAAO;CACP,WAAW;AACb;;;ACXA,MAAa,2BAA2B;CACtC,OAAO;CACP,QAAQ;CACR,UAAU;CACV,WAAW;CACX,SAAS;AACX;;;ACPA,MAAa,UAAU;CACrB,QAAQ;CACR,cAAc;CACd,cAAc;AAChB;;;ACOA,MAAa,cAAc;CACzB,SAAS;CACT,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,OAAO;CACP,WAAW;CACX,SAAS;AACX;;;AC1BA,MAAa,cAAc;CACzB,SAAS;CACT,WAAW;CACX,UAAU;AACZ;;;ACFA,MAAa,cAAc;CACzB,cAAc;CACd,SAAS;CACT,QAAQ;CACR,MAAM;CACN,QAAQ;AACV;;;ACHA,MAAa,aAAa;CACxB,MAAM;CACN,WAAW;CACX,OAAO;CACP,SAAS;CACT,aAAa;CACb,OAAO;CACP,QAAQ;CACR,MAAM;CACN,OAAO;CACP,SAAS;CACT,OAAO;AACT;;;ACbA,MAAa,eAAe;CAC1B,QAAQ;CACR,KAAK;CACL,SAAS;AACX;;;ACAA,MAAa,cAAc;CACzB,SAAS;CACT,MAAM;CACN,eAAe;CACf,kBAAkB;AACpB;;;ACDA,MAAa,aAAa;CACxB,QAAQ;CACR,YAAY;CACZ,SAAS;CACT,eAAe;CACf,WAAW;CACX,gBAAgB;CAChB,QAAQ;AACV;;;ACjBA,MAAa,kBAAkB;CAC7B,MAAM;CACN,WAAW;CACX,OAAO;CACP,SAAS;CACT,IAAI;AACN;;;ACNA,MAAa,sBAAsB;CACjC,sBAAsB;CACtB,cAAc;CACd,mBAAmB;CACnB,cAAc;CACd,WAAW;CACX,WAAW;CACX,WAAW;CACX,SAAS;CACT,iBAAiB;CACjB,kBAAkB;AACpB;;;ACFA,MAAa,eAAe;CAC1B,UAAU;CACV,YAAY;CACZ,UAAU;CACV,aAAa;CACb,WAAW;CACX,eAAe;AACjB;;;ACqBA,MAAa,iBAAiB;CAC5B,OAAO;CACP,WAAW;CACX,SAAS;CACT,YAAY;CACZ,SAAS;CACT,UAAU;CACV,WAAW;CACX,QAAQ;CACR,WAAW;CACX,SAAS;AACX"}
|
|
1
|
+
{"version":3,"file":"models.js","names":[],"sources":["../src/models/accessMode.ts","../src/models/attachmentRole.ts","../src/models/consumptionCloseReason.ts","../src/models/contentType.ts","../src/models/deskAttentionKind.ts","../src/models/deskCatalogueSource.ts","../src/models/deskEntity.ts","../src/models/deskInterval.ts","../src/models/deskMetric.ts","../src/models/deskMetricSection.ts","../src/models/deskOrder.ts","../src/models/entitlementAct.ts","../src/models/favoriteKind.ts","../src/models/messageKind.ts","../src/models/partnerMediaType.ts","../src/models/partnerProvider.ts","../src/models/paymentProvider.ts","../src/models/paymentStatus.ts","../src/models/pillar.ts","../src/models/practitionerDocumentKind.ts","../src/models/product.ts","../src/models/productRole.ts","../src/models/reviewState.ts","../src/models/schoolCycle.ts","../src/models/searchKind.ts","../src/models/searchSource.ts","../src/models/subjectKind.ts","../src/models/tenantCommercialStatus.ts","../src/models/tenantKind.ts","../src/models/tutoringChannel.ts","../src/models/tutoringCloseReason.ts","../src/models/tutoringKind.ts","../src/models/tutoringStatus.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.8.2\n */\n\n/**\n * Consult in place, or take a copy away. Legacy ``$upload``.\n *\n * Distinct from :class:`EntitlementAct`, which says what the *library is\n * billed for*. This says what the *supplier is told*, and only three\n * platforms are told at all — see\n * :attr:`TokenFormula.WITH_LIBRARY_AND_MODE`.\n *\n * The two travel together but are not the same axis: a ``LOAN_DOWNLOAD`` and\n * a plain ``DOWNLOAD`` bill differently and present the supplier with the same\n * mode.\n */\nexport type AccessMode = typeof AccessMode[keyof typeof AccessMode];\n\n\nexport const AccessMode = {\n stream: 'stream',\n download: 'download',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Which side of the exchange a file belongs to.\n *\n * The legacy carries three ``text NOT NULL`` columns — ``documents``,\n * ``drawings``, ``answer_documents`` — each holding a serialised list of paths,\n * so a file has no size, no type, no uploader and no timestamp, and an empty\n * list is the string ``''``. One row per file, with a role, replaces all three.\n */\nexport type AttachmentRole = typeof AttachmentRole[keyof typeof AttachmentRole];\n\n\nexport const AttachmentRole = {\n question: 'question',\n sketch: 'sketch',\n answer: 'answer',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Why a consumption lease stopped. Legacy ``sessions.cloture``.\n *\n * The legacy's single letters, decoded from the procedures that write them:\n * ``u`` is ``ouvreSessionCours2`` closing the previous session because the\n * reader opened something else, ``a`` is ``FermeSessionAdherent`` — staff\n * force-closing from the CE admin — and ``s`` is ``reset_sessions`` reaping a\n * lease left open more than 180 minutes.\n *\n * ``n`` is not here: it means *open*, which this column expresses by being\n * NULL. A closed-reason enum with an \"isn't closed\" member is how you get code\n * that checks the wrong one of two things.\n */\nexport type ConsumptionCloseReason = typeof ConsumptionCloseReason[keyof typeof ConsumptionCloseReason];\n\n\nexport const ConsumptionCloseReason = {\n completed: 'completed',\n superseded: 'superseded',\n staff: 'staff',\n expired: 'expired',\n failed: 'failed',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Denormalised onto ``content`` from the kind of its categories.\n *\n * MUSIC is not in the source spec but is required for the derivation to be\n * total — CategoryKind has it, so a content row can reach it.\n */\nexport type ContentType = typeof ContentType[keyof typeof ContentType];\n\n\nexport const ContentType = {\n course: 'course',\n press_issue: 'press_issue',\n book: 'book',\n music: 'music',\n service: 'service',\n} as const;\n","/**\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.8.2\n */\n\nexport type DeskAttentionKind = typeof DeskAttentionKind[keyof typeof DeskAttentionKind];\n\n\nexport const DeskAttentionKind = {\n expiring_contract: 'expiring_contract',\n waiting_tutoring: 'waiting_tutoring',\n lapsed_document: 'lapsed_document',\n pending_review: 'pending_review',\n} as const;\n","/**\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.8.2\n */\n\nexport type DeskCatalogueSource = typeof DeskCatalogueSource[keyof typeof DeskCatalogueSource];\n\n\nexport const DeskCatalogueSource = {\n biblio: 'biblio',\n cvs: 'cvs',\n nextory: 'nextory',\n youscribe: 'youscribe',\n} as const;\n","/**\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.8.2\n */\n\nexport type DeskEntity = typeof DeskEntity[keyof typeof DeskEntity];\n\n\nexport const DeskEntity = {\n tenant: 'tenant',\n patron: 'patron',\n contract: 'contract',\n tutoring_request: 'tutoring_request',\n} as const;\n","/**\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.8.2\n */\n\nexport type DeskInterval = typeof DeskInterval[keyof typeof DeskInterval];\n\n\nexport const DeskInterval = {\n day: 'day',\n week: 'week',\n month: 'month',\n} as const;\n","/**\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.8.2\n */\n\nexport type DeskMetric = typeof DeskMetric[keyof typeof DeskMetric];\n\n\nexport const DeskMetric = {\n registrations: 'registrations',\n active_users: 'active_users',\n consumption_events: 'consumption_events',\n consumed_units: 'consumed_units',\n tutoring_requests: 'tutoring_requests',\n settled_payment_amount: 'settled_payment_amount',\n} as const;\n","/**\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.8.2\n */\n\nexport type DeskMetricSection = typeof DeskMetricSection[keyof typeof DeskMetricSection];\n\n\nexport const DeskMetricSection = {\n all: 'all',\n accounts: 'accounts',\n consumption: 'consumption',\n tutoring: 'tutoring',\n payments: 'payments',\n} as const;\n","/**\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.8.2\n */\n\nexport type DeskOrder = typeof DeskOrder[keyof typeof DeskOrder];\n\n\nexport const DeskOrder = {\n id: 'id',\n '-id': '-id',\n name: 'name',\n '-name': '-name',\n created_at: 'created_at',\n '-created_at': '-created_at',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * What a grant permits somebody to *do* with a work.\n *\n * Recovered from ``mediadb.exemp``, which flattens a 4x7 matrix into 48\n * columns: four acts — ``is_streaming``, ``is_download``, ``is_pret_streaming``,\n * ``is_pret_download`` — each repeating the same seven limits (allowed, units\n * granted, units left, max duration, duration unit, device cap, concurrent-user\n * cap), plus ``is_extend`` / ``nb_extend`` on the side.\n *\n * That matrix is the whole reason this enum exists. Four acts x seven limits as\n * columns means a fifth act costs a migration and seven more columns; as rows it\n * costs an INSERT. ``jetons.consulterpret`` draws the same consult/loan line at\n * the patron tier, which is corroboration rather than a second vocabulary.\n *\n * Biblio has no equivalent: its grant is boolean and maps to ``VIEW`` alone.\n */\nexport type EntitlementAct = typeof EntitlementAct[keyof typeof EntitlementAct];\n\n\nexport const EntitlementAct = {\n view: 'view',\n download: 'download',\n loan_view: 'loan_view',\n loan_download: 'loan_download',\n extend: 'extend',\n tutor: 'tutor',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * ``favorites.mode``: 'C' / 'P'. The one enum the legacy code validates.\n */\nexport type FavoriteKind = typeof FavoriteKind[keyof typeof FavoriteKind];\n\n\nexport const FavoriteKind = {\n content: 'content',\n press_title: 'press_title',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * What a chat line is.\n *\n * Prof Express has no equivalent, because it has no message table at all — the\n * conversation lives in SendBird and the platform holds only a channel URL. So\n * \"what did the teacher tell this pupil last term\" is a question for a third\n * party's retention policy, and a chat that breaks needs a\n * ``/requete/reparer-probleme-chat/{id}`` route to repair it.\n */\nexport type MessageKind = typeof MessageKind[keyof typeof MessageKind];\n\n\nexport const MessageKind = {\n text: 'text',\n system: 'system',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * How the partner catalogue shelves one media.\n *\n * Recovered from ``NextoryMediaTransformer::mediaType()``, which is not the\n * obvious mapping from ``content_type`` and must not be simplified into one:\n *\n * * category 249 (\"BDs et humour\") + ``audiobook`` → ``livres-audio``\n * * category 249 + a real comics subcategory (250–261) → ``bd``\n * * category 249 with only 262–264 (Humour / Satires / Citations), or with no\n * subcategory at all → ``livres``\n * * category 314 → ``podcasts``\n * * otherwise ``ebook`` → ``livres``, ``audiobook`` → ``livres-audio``\n *\n * The 262–264 carve-out is load-bearing. Those subcategories sit under 249, but\n * the ``livres`` menu excludes 249 entirely, so anything classified there was\n * unreachable from every page — which is why the legacy grew a synthetic\n * category 10001 to rehome them.\n *\n * Values are the feed's own strings; the importer writes them verbatim.\n *\n * **The derivation above is Nextory's.** YouScribe's is a plain one-to-one map\n * from :attr:`~app.models.partner.catalogue.PartnerMedia.kind`, measured over\n * all 173,742 of its rows on 2026-09-11 with no crossover at all::\n *\n * partition → partitions 119,534 68.8%\n * ebook → livres 43,420 25.0%\n * audiobook → livres-audio 8,273 4.8%\n * bd → bd 2,495 1.4%\n * podcast → podcasts 20 0.0%\n *\n * So one column is not derived the same way for both partners, and an importer\n * that assumes Nextory's category arithmetic would mis-shelve every YouScribe\n * title.\n */\nexport type PartnerMediaType = typeof PartnerMediaType[keyof typeof PartnerMediaType];\n\n\nexport const PartnerMediaType = {\n livres: 'livres',\n bd: 'bd',\n 'livres-audio': 'livres-audio',\n podcasts: 'podcasts',\n partitions: 'partitions',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * A partner whose catalogue and reader we host directly.\n *\n * Names both halves of the integration: the seat pool\n * (:class:`~app.models.biblio.license.PartnerLicense`) and the ingested\n * catalogue (``app.models.partner.catalogue``). One enum rather than two\n * because a provider is a provider — a licence for Nextory and a Nextory media\n * row are the same partner seen from two sides.\n *\n * Distinct from :class:`BookSource`, which says which feed produced a *biblio*\n * ``book`` row. The two vocabularies overlap on ``nextory`` and will keep\n * overlapping: the partner catalogue is deliberately a separate subsystem from\n * ``book``/``book_content_link``, bridged rather than merged.\n */\nexport type PartnerProvider = typeof PartnerProvider[keyof typeof PartnerProvider];\n\n\nexport const PartnerProvider = {\n nextory: 'nextory',\n youscribe: 'youscribe',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Who takes the card. Legacy ``bm.txt_param['payment_type']``.\n *\n * Per library, and the legacy means it — ``getPaymentSettings()`` branches on\n * this before it knows anything else, and the two providers do not merely\n * differ in credentials: PayPal is a server API that returns a URL, Paybox is\n * a signed browser form POST. Nothing about the hand-off is shared.\n */\nexport type PaymentProvider = typeof PaymentProvider[keyof typeof PaymentProvider];\n\n\nexport const PaymentProvider = {\n none: 'none',\n paybox: 'paybox',\n paypal: 'paypal',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Where a top-up is in its life. Legacy ``paiement_abonnement.status``.\n *\n * The legacy stores the four ``PBX_STATUT_*`` integers from\n * ``v1/config.inc.php``, named for Paybox and now carried by PayPal — which is\n * why the constants say ``PBX`` and the code calls ``createPaypalOrder``. The\n * integers are kept as the wire values so rows already written keep meaning\n * what they meant.\n *\n * ``PENDING`` is the only state a payment may be created in, and only the\n * provider's server-to-server callback may move it out.\n */\nexport type PaymentStatus = typeof PaymentStatus[keyof typeof PaymentStatus];\n\n\nexport const PaymentStatus = {\n pending: 'pending',\n settled: 'settled',\n declined: 'declined',\n awaiting: 'awaiting',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * A content vertical. The single most load-bearing decoder in the schema.\n *\n * Recovered from ``Services/V3/MenuService.php:1055`` and corroborated by\n * ``v1/config.inc.php:651``::\n *\n * 1 => musique 2 => cinema 3 => savoirs\n * 4 => livres 5 => presse 6 => jeux 7 => inclusion\n *\n * It decodes every numbered ``droit*`` (tenant offers this pillar),\n * ``docsforfait*`` / ``nbdocs_forfait*`` (per-pillar document quota), and every\n * ``pilier`` column on works, themes and the consumption log.\n *\n * Note the asymmetry, which is real and worth preserving: the numbered columns\n * stop at 6, but ``pilier`` reaches 7 — inclusion was added to the product after\n * the numbered-column pattern was already set in the schema.\n */\nexport type Pillar = typeof Pillar[keyof typeof Pillar];\n\n\nexport const Pillar = {\n music: 'music',\n film: 'film',\n learning: 'learning',\n books: 'books',\n press: 'press',\n games: 'games',\n inclusion: 'inclusion',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * A compliance document a contracted practitioner must hold.\n *\n * French self-employment paperwork, which the legacy keeps as four bare\n * ``text`` columns on both ``teachers`` and ``switchmen``\n * (``kbis_siret_document``, ``ursaff_document``, ``ursaff_date``,\n * ``contrat_documents``) — so a document has no expiry anyone can query, and\n * ``ursaff_date`` is ``NOT NULL`` with no default, meaning \"not supplied\" is\n * stored as a real date.\n *\n * Modelling expiry is the point: an URSSAF attestation is valid for six months\n * and a lapsed one is a compliance problem that should be answerable by a\n * query rather than by opening a filing cabinet.\n */\nexport type PractitionerDocumentKind = typeof PractitionerDocumentKind[keyof typeof PractitionerDocumentKind];\n\n\nexport const PractitionerDocumentKind = {\n siret: 'siret',\n urssaf: 'urssaf',\n contract: 'contract',\n insurance: 'insurance',\n diploma: 'diploma',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Which of the three platforms a functional grant applies to.\n *\n * One API serves three products, and a tenant can offer more than one of them\n * — a library with a Prof Express contract is one organisation whose patrons\n * borrow books *and* whose pupils ask questions (the legacy says so itself\n * with ``students.library`` and ``inquiries.for_librarian``). So the product is\n * its own axis rather than something ``tenant_id`` implies.\n *\n * Not :class:`LegacySource`, which looks similar and means something else:\n * that records where a migrated row *came from* and is null for anything\n * created since. This says what a grant is *for*.\n */\nexport type Product = typeof Product[keyof typeof Product];\n\n\nexport const Product = {\n biblio: 'biblio',\n mediatheques: 'mediatheques',\n prof_express: 'prof_express',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * What kind of participant somebody is, in one product at one tenant.\n *\n * The vocabulary is **per product**, which is the point: Prof Express has\n * pupils and teachers, and biblio has no such thing. A product that needs no\n * functional roles simply has no rows — nothing forces a shared vocabulary,\n * and adding a role to one product is an ``INSERT`` rather than a Keycloak\n * change or a migration.\n *\n * Deliberately *not* Keycloak realm roles. The broker knows whether somebody\n * is an end user or internal staff (:class:`RoleKind`); it does not know that\n * user 42 teaches at works-council 3. Keeping these out of the realm keeps\n * Keycloak off the write path for grants, and avoids the realm-and-enum\n * lockstep that has already broken once.\n *\n * Valid pairings are declared in :data:`PRODUCT_ROLES` rather than as a CHECK\n * constraint: the set will change as the products do, and a migration per\n * product decision is a tax with no payer.\n *\n * Pupil and parent are explicit rather than derived from ``User.parent_id``.\n * Deriving them is too clever — a parent who has not added a child yet is\n * indistinguishable from a pupil — and the legacy makes the same distinction\n * with its ``role:student`` / ``role:parent`` middleware.\n */\nexport type ProductRole = typeof ProductRole[keyof typeof ProductRole];\n\n\nexport const ProductRole = {\n student: 'student',\n parent: 'parent',\n teacher: 'teacher',\n dispatcher: 'dispatcher',\n coach: 'coach',\n librarian: 'librarian',\n support: 'support',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * ``avis.state``. Values recovered from the moderation screens.\n *\n * Unconstrained in the schema — the column is a ``tinyint`` with no decoder —\n * so this names what the API accepts, not what the column is known to hold.\n */\nexport type ReviewState = typeof ReviewState[keyof typeof ReviewState];\n\n\nexport const ReviewState = {\n pending: 'pending',\n published: 'published',\n rejected: 'rejected',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * The French school cycle a level belongs to.\n *\n * Not in the legacy schema, which stores levels as a flat list with a display\n * order and reconstructs the grouping in views. It is here because every\n * dispatch rule and every teacher competency is expressed per cycle in\n * practice — a *professeur des écoles* does not answer a *terminale* question.\n */\nexport type SchoolCycle = typeof SchoolCycle[keyof typeof SchoolCycle];\n\n\nexport const SchoolCycle = {\n kindergarten: 'kindergarten',\n primary: 'primary',\n middle: 'middle',\n high: 'high',\n higher: 'higher',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * What a search hit *is*, in one vocabulary across every catalogue.\n *\n * The frontend groups, filters and picks an icon from this, so it has to mean\n * the same thing whichever catalogue answered. Each source maps onto it in\n * ``app.services.catalogue_search``; the mapping is deliberately lossy — a hit\n * carries its native id and source for anything finer.\n *\n * ``OTHER`` exists so the mapping is total. A source value nobody has mapped\n * yet becomes a findable result with a dull label, never a dropped row.\n */\nexport type SearchKind = typeof SearchKind[keyof typeof SearchKind];\n\n\nexport const SearchKind = {\n book: 'book',\n audiobook: 'audiobook',\n comic: 'comic',\n podcast: 'podcast',\n sheet_music: 'sheet_music',\n press: 'press',\n course: 'course',\n film: 'film',\n music: 'music',\n service: 'service',\n other: 'other',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Which catalogue a cross-catalogue search hit came from.\n *\n * The wire vocabulary for the generalist ``GET /search``, and deliberately not\n * :class:`Product`: that enum says which platform a *grant* applies to and has\n * no member for the partner catalogue, because a partner title is entitled\n * through the biblio or mediatheques contract that reaches it. This says where\n * a result is *shelved*, which is what a client renders a badge from and what\n * it needs in order to build the right detail link.\n */\nexport type SearchSource = typeof SearchSource[keyof typeof SearchSource];\n\n\nexport const SearchSource = {\n biblio: 'biblio',\n cvs: 'cvs',\n partner: 'partner',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Which catalogue a consumed item belongs to. The ledger's polymorphic key.\n *\n * Replaces the three nullable FKs the ledger used to carry (``work_id`` /\n * ``content_id`` / ``partner_media_id``) with one ``(kind, id)`` pair, so a new\n * platform costs **an enum value, not a migration** — the same trade every\n * other enum here makes. The id has no database foreign key: the ledger is a\n * billing and history record, and a consumed item being deleted from its\n * catalogue must not erase the record of it having been consumed.\n *\n * Grant *resolution* stays keyed by the concrete catalogue FK (grants are\n * defined per work, per content, per category); only the *ledger* subject is\n * polymorphic. :class:`app.services.consumption.Subject` bridges the two.\n */\nexport type SubjectKind = typeof SubjectKind[keyof typeof SubjectKind];\n\n\nexport const SubjectKind = {\n content: 'content',\n work: 'work',\n partner_media: 'partner_media',\n tutoring_request: 'tutoring_request',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Commercial lifecycle, independent of operational access and contract windows.\n */\nexport type TenantCommercialStatus = typeof TenantCommercialStatus[keyof typeof TenantCommercialStatus];\n\n\nexport const TenantCommercialStatus = {\n customer: 'customer',\n prospect: 'prospect',\n prospect_test: 'prospect_test',\n former_customer: 'former_customer',\n indirect_subscriber: 'indirect_subscriber',\n quote_sent: 'quote_sent',\n partner: 'partner',\n test: 'test',\n archived: 'archived',\n parent_account: 'parent_account',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * What sort of organisation a tenant is.\n *\n * VENDOR is the operator itself and sits at the root of the tree; internal staff\n * are its users. CONSORTIUM covers a département or network portal that owns\n * member libraries beneath it.\n *\n * Merged from biblio's ``ClientTypeFactory::dbCode()`` and the CVS tenant list.\n * Unconstrained until the full ``bm`` value set is known.\n *\n * Note the lossy code: ``dbCode()`` maps **six** client types onto **five**\n * letters — RATTA (a *rattachement*, an affiliated site) and MED both emit\n * ``'M'``, and ``'C'`` is also the default arm, absorbing anything\n * unrecognised. So the stored letter cannot distinguish an affiliated site from\n * a plain library. Here that distinction is carried structurally instead: an\n * affiliated site is a LIBRARY with a non-null ``parent_id``. Keep\n * ``kind_detail`` until the raw values confirm nothing else is encoded.\n */\nexport type TenantKind = typeof TenantKind[keyof typeof TenantKind];\n\n\nexport const TenantKind = {\n vendor: 'vendor',\n consortium: 'consortium',\n library: 'library',\n works_council: 'works_council',\n corporate: 'corporate',\n small_business: 'small_business',\n school: 'school',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * How the answer reaches the pupil.\n *\n * Orthogonal to :class:`TutoringKind`: any kind can be delivered by any\n * channel the tenant has enabled, and a request legitimately changes channel\n * mid-flight — the legacy's ``differed_to_live`` and ``ai_to_live`` are both\n * that transition, recorded as booleans because the schema had nowhere to put\n * a channel.\n */\nexport type TutoringChannel = typeof TutoringChannel[keyof typeof TutoringChannel];\n\n\nexport const TutoringChannel = {\n chat: 'chat',\n classroom: 'classroom',\n phone: 'phone',\n written: 'written',\n ai: 'ai',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Why a request closed without succeeding.\n *\n * Collapses ``inquiry_status_reasons`` and ``inquiry_status_fail_reasons`` —\n * two tables, four columns between them, joined through two more nullable\n * sentinel-zero columns on every inquiry. The values here are the ones the\n * rebuilt flow can actually produce; the legacy tables' contents come back\n * from the probe and any distinct reason with volume earns a member.\n */\nexport type TutoringCloseReason = typeof TutoringCloseReason[keyof typeof TutoringCloseReason];\n\n\nexport const TutoringCloseReason = {\n no_teacher_available: 'no_teacher_available',\n out_of_hours: 'out_of_hours',\n pupil_unreachable: 'pupil_unreachable',\n out_of_scope: 'out_of_scope',\n duplicate: 'duplicate',\n withdrawn: 'withdrawn',\n technical: 'technical',\n no_show: 'no_show',\n account_problem: 'account_problem',\n password_problem: 'password_problem',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * What is being asked for.\n *\n * Replaces six independent booleans on ``inquiries`` — ``for_librarian``,\n * ``for_grand_oral``, ``for_ai``, ``for_coach``, ``parents_web_advice`` and\n * (in the archives) ``for_school_counselor`` / ``for_psychologist``. Six flags\n * describe 64 states, of which a handful are meaningful and none is documented;\n * one enum describes exactly the states that exist.\n *\n * Two of those flags are **not** kinds and are modelled elsewhere: ``for_ai``\n * is a delivery channel (:class:`TutoringChannel`), and ``differed_to_live`` is\n * a transition between channels rather than a state.\n *\n * Provisional in one respect: whether the legacy flags are mutually exclusive\n * in the data is answered by section F of ``tools/profexpress_probe.sql``,\n * which groups the live combinations. If a real row carries two at once, that\n * combination needs a value here rather than a second column.\n */\nexport type TutoringKind = typeof TutoringKind[keyof typeof TutoringKind];\n\n\nexport const TutoringKind = {\n homework: 'homework',\n grand_oral: 'grand_oral',\n coaching: 'coaching',\n orientation: 'orientation',\n librarian: 'librarian',\n parent_advice: 'parent_advice',\n} as const;\n","/**\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.8.2\n */\n\n/**\n * Where a request has got to.\n *\n * The legacy vocabulary is now known rather than guessed. ``InquiryStatus``\n * holds no fixture, but ``InquiryStatus::getHrList()`` names ids 1-13 and\n * ``AdminInquiriesController::applyStatusFilter`` maps each id to its initials,\n * which together give the complete set — twelve initials, not the four that\n * appear in ``whereInitials(...)`` calls:\n *\n * ==== ============================ ========= ========= =======================\n * id name initials type_id maps to\n * ==== ============================ ========= ========= =======================\n * 1 En édition ``E`` -- :attr:`DRAFT`\n * 2 Différées enregistrées ``R`` 2 :attr:`SUBMITTED` + WRITTEN\n * 3 Live en chat ``CHA`` 1 :attr:`SUBMITTED` + CHAT\n * 4 Différées validées ``V`` 2 :attr:`DISPATCHED` + WRITTEN\n * 5 Live validées ``V`` 1 :attr:`DISPATCHED` + CHAT\n * 6 Succès ``S`` -- :attr:`SUCCEEDED`\n * 7 Echec ``F`` -- :attr:`FAILED`\n * 8 Annulation du RDV ``CAN`` -- :attr:`CANCELLED`\n * 9 Non-présentation au RDV ``ABS`` -- FAILED + ``no_show``\n * 10 Problème compte ``NI`` -- FAILED + ``account_problem``\n * 11 Problème compte traité ``FIX`` -- back to DISPATCHED\n * 12 Problème mot de passe ``MDP`` -- FAILED + ``password_problem``\n * 13 Autre *(none)* -- anything not above\n * -- Abandon ``A`` -- :attr:`EXPIRED`\n * ==== ============================ ========= ========= =======================\n *\n * **The important find: ``V`` is ambiguous on its own.** Ids 4 and 5 share it\n * and are told apart by ``type_id`` — 1 is live, 2 is *différé*. So a legacy\n * status is the pair ``(initials, type_id)``, which is exactly why this enum\n * carries no channel: state and delivery are two axes, and the legacy conflated\n * them into one lookup table with duplicate initials.\n *\n * Three of the twelve are not states at all. ``ABS``, ``NI`` and ``MDP``\n * describe *why* a request stopped, so they are\n * :class:`TutoringCloseReason` values on a FAILED request; and ``FIX`` is a\n * transition back into the queue rather than a resting place. Modelling them as\n * statuses is what forces the legacy to ask \"is this status final?\" with a\n * hard-coded list of names (``InquiryStatus::final``).\n *\n * :attr:`TRIAGED`, :attr:`CLAIMED` and :attr:`ANSWERED` have no legacy status\n * at all — the legacy records those moments only as timestamps, which is why\n * \"how long did triage take\" is a question its own reporting code has to\n * subtract to answer.\n */\nexport type TutoringStatus = typeof TutoringStatus[keyof typeof TutoringStatus];\n\n\nexport const TutoringStatus = {\n draft: 'draft',\n submitted: 'submitted',\n triaged: 'triaged',\n dispatched: 'dispatched',\n claimed: 'claimed',\n answered: 'answered',\n succeeded: 'succeeded',\n failed: 'failed',\n cancelled: 'cancelled',\n expired: 'expired',\n} as const;\n"],"mappings":"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"}
|
package/dist/react/account.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { Dr as HTTPExceptionResponse, J as ServiceListRead, Js as AccountDetailRead, Ks as AccountUpdateWrite, t as ValidationErrorResponse } 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/account/account.d.ts
|
package/dist/react/account.js
CHANGED
|
@@ -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.
|
|
10
|
+
* OpenAPI spec version: 0.8.2
|
|
11
11
|
*/
|
|
12
12
|
const withQueryKey = (query, queryKey) => {
|
|
13
13
|
const result = { queryKey };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","names":[],"sources":["../../src/react/account/account.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.7.0\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query';\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult\n} from '@tanstack/react-query';\n\nimport type {\n AccountDetailRead,\n AccountUpdateWrite,\n HTTPExceptionResponse,\n ServiceListRead,\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 getDeleteAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * Close the account (E17). Anonymises; does not erase.\n *\n * The spec asked for the password to be re-submitted. We do not hold one, and\n * assurance is the better guard anyway: a password check would have passed for a\n * session that arrived through a partner handing over a static key in a URL,\n * and ``RequireHighAssurance`` refuses exactly that. The legacy required no\n * confirmation of any kind and accepted the call from a sub-profile (defect D8).\n *\n * **What survives, and why.** The row stays, with identity cleared and\n * ``is_anonymous`` set. Consumption history, loans and billing records point at\n * this user, and deleting the row would either cascade them away — destroying\n * the library's statutory reporting — or orphan them. Clearing the identifying\n * columns satisfies erasure of personal data while leaving the countable facts\n * countable. The retained set is: which tenant, when they registered, and what\n * they consumed, with no name, login, email, birth date or member number.\n *\n * Sub-profiles go with the holder: they are people on the same membership and\n * cannot outlive it. Their rows are anonymised too, not deleted, for the same\n * reason.\n *\n * **The broker is disabled first, and a failure aborts the whole thing.** The\n * credential lives in Keycloak, so anonymising locally while leaving it enabled\n * would let the same person sign in tomorrow and be provisioned a fresh account\n * — erasure that erases nothing. Disabling before any local write means the\n * failure mode is \"nothing happened\", which is recoverable, rather than \"half\n * happened\", which is not.\n *\n * Still missing, and not safe to ship without: no audit record is written.\n * @summary Delete Account\n */\nexport const deleteAccount = async ( options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getDeleteAccountUrl(),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\n\n\nexport const getDeleteAccountMutationKey = () => ['deleteAccount'] as const;\n\nexport const getDeleteAccountMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteAccount>>, TError,void, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof deleteAccount>>, TError,void, TContext> => {\n\nconst mutationKey = getDeleteAccountMutationKey();\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 deleteAccount>>, void> = () => {\n\n\n return deleteAccount(requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type DeleteAccountMutationResult = NonNullable<Awaited<ReturnType<typeof deleteAccount>>>\n\n export type DeleteAccountMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\n /**\n * @summary Delete Account\n */\nexport const useDeleteAccount = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteAccount>>, TError,void, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof deleteAccount>>,\n TError,\n void,\n TContext\n > => {\n return useMutation(getDeleteAccountMutationOptions(options), queryClient);\n }\n export const getReadAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * The authenticated account (E15).\n *\n * No query, no join: ``CurrentUserDep`` has already resolved the row behind the\n * token. The endpoint the legacy should have had here has been returning ``500``\n * on every request for as long as anyone has looked (defect D1).\n * @summary Read Account\n */\nexport const readAccount = async ( options?: Parameters<typeof request>[1]): Promise<AccountDetailRead> => {\n\n return request<AccountDetailRead>(getReadAccountUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getReadAccountQueryKey = () => {\n return [\n `/me`\n ] as const;\n }\n\n\nexport const getReadAccountQueryOptions = <TData = Awaited<ReturnType<typeof readAccount>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getReadAccountQueryKey();\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof readAccount>>> = ({ signal }) => readAccount({ signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ReadAccountQueryResult = NonNullable<Awaited<ReturnType<typeof readAccount>>>\nexport type ReadAccountQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useReadAccount<TData = Awaited<ReturnType<typeof readAccount>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof readAccount>>,\n TError,\n Awaited<ReturnType<typeof readAccount>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadAccount<TData = Awaited<ReturnType<typeof readAccount>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof readAccount>>,\n TError,\n Awaited<ReturnType<typeof readAccount>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadAccount<TData = Awaited<ReturnType<typeof readAccount>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read Account\n */\n\nexport function useReadAccount<TData = Awaited<ReturnType<typeof readAccount>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getReadAccountQueryOptions(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 getUpdateAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * Partially update the account (E16).\n *\n * ``exclude_unset`` is what separates PATCH from PUT here: a field the client\n * omitted is left alone, which is not the same as a field it sent as null. The\n * response is built from the persisted row rather than the submitted body.\n * @summary Update Account\n */\nexport const updateAccount = async (accountUpdateWrite: AccountUpdateWrite, options?: Parameters<typeof request>[1]): Promise<AccountDetailRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<AccountDetailRead>(getUpdateAccountUrl(),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(accountUpdateWrite)\n }\n);}\n\n\n\n\n\nexport const getUpdateAccountMutationKey = () => ['updateAccount'] as const;\n\nexport const getUpdateAccountMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateAccount>>, TError,UpdateAccountMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof updateAccount>>, TError,UpdateAccountMutationVariables, TContext> => {\n\nconst mutationKey = getUpdateAccountMutationKey();\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 updateAccount>>, UpdateAccountMutationVariables> = (props) => {\n const {data} = props ?? {};\n\n return updateAccount(data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type UpdateAccountMutationResult = NonNullable<Awaited<ReturnType<typeof updateAccount>>>\n export type UpdateAccountMutationBody = BodyType<AccountUpdateWrite>\n export type UpdateAccountMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type UpdateAccountMutationVariables = {data: BodyType<AccountUpdateWrite>}\n\n /**\n * @summary Update Account\n */\nexport const useUpdateAccount = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateAccount>>, TError,UpdateAccountMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof updateAccount>>,\n TError,\n UpdateAccountMutationVariables,\n TContext\n > => {\n return useMutation(getUpdateAccountMutationOptions(options), queryClient);\n }\n export const getListServicesUrl = () => {\n\n\n\n\n return `/me/services`\n}\n\n/**\n * Third-party services this account's establishment offers (E27).\n *\n * Under ``/me`` rather than ``/biblio/me`` because it is not a catalogue: these\n * are the establishment's own service tiles, and they belong to the tenant\n * whichever catalogue that tenant reads from. It is also the one place the\n * biblio spec describes something the *CVS* schema models, which is why it sat\n * in the wrong module until the prefixes made the mismatch visible.\n *\n * Date-windowed. A service outside its window is absent rather than disabled:\n * the client should not have to know the difference, and a visible dead link is\n * worse than no link.\n * @summary List Services\n */\nexport const listServices = async ( options?: Parameters<typeof request>[1]): Promise<ServiceListRead> => {\n\n return request<ServiceListRead>(getListServicesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListServicesQueryKey = () => {\n return [\n `/me/services`\n ] as const;\n }\n\n\nexport const getListServicesQueryOptions = <TData = Awaited<ReturnType<typeof listServices>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListServicesQueryKey();\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listServices>>> = ({ signal }) => listServices({ signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListServicesQueryResult = NonNullable<Awaited<ReturnType<typeof listServices>>>\nexport type ListServicesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListServices<TData = Awaited<ReturnType<typeof listServices>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listServices>>,\n TError,\n Awaited<ReturnType<typeof listServices>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListServices<TData = Awaited<ReturnType<typeof listServices>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listServices>>,\n TError,\n Awaited<ReturnType<typeof listServices>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListServices<TData = Awaited<ReturnType<typeof listServices>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Services\n */\n\nexport function useListServices<TData = Awaited<ReturnType<typeof listServices>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListServicesQueryOptions(options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"account.js","names":[],"sources":["../../src/react/account/account.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.8.2\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 AccountDetailRead,\n AccountUpdateWrite,\n HTTPExceptionResponse,\n ServiceListRead,\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 getDeleteAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * Close the account (E17). Anonymises; does not erase.\n *\n * The spec asked for the password to be re-submitted. We do not hold one, and\n * assurance is the better guard anyway: a password check would have passed for a\n * session that arrived through a partner handing over a static key in a URL,\n * and ``RequireHighAssurance`` refuses exactly that. The legacy required no\n * confirmation of any kind and accepted the call from a sub-profile (defect D8).\n *\n * **What survives, and why.** The row stays, with identity cleared and\n * ``is_anonymous`` set. Consumption history, loans and billing records point at\n * this user, and deleting the row would either cascade them away — destroying\n * the library's statutory reporting — or orphan them. Clearing the identifying\n * columns satisfies erasure of personal data while leaving the countable facts\n * countable. The retained set is: which tenant, when they registered, and what\n * they consumed, with no name, login, email, birth date or member number.\n *\n * Sub-profiles go with the holder: they are people on the same membership and\n * cannot outlive it. Their rows are anonymised too, not deleted, for the same\n * reason.\n *\n * **The broker is disabled first, and a failure aborts the whole thing.** The\n * credential lives in Keycloak, so anonymising locally while leaving it enabled\n * would let the same person sign in tomorrow and be provisioned a fresh account\n * — erasure that erases nothing. Disabling before any local write means the\n * failure mode is \"nothing happened\", which is recoverable, rather than \"half\n * happened\", which is not.\n *\n * Still missing, and not safe to ship without: no audit record is written.\n * @summary Delete Account\n */\nexport const deleteAccount = async ( options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getDeleteAccountUrl(),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\n\n\nexport const getDeleteAccountMutationKey = () => ['deleteAccount'] as const;\n\nexport const getDeleteAccountMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteAccount>>, TError,void, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof deleteAccount>>, TError,void, TContext> => {\n\nconst mutationKey = getDeleteAccountMutationKey();\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 deleteAccount>>, void> = () => {\n\n\n return deleteAccount(requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type DeleteAccountMutationResult = NonNullable<Awaited<ReturnType<typeof deleteAccount>>>\n\n export type DeleteAccountMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\n /**\n * @summary Delete Account\n */\nexport const useDeleteAccount = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteAccount>>, TError,void, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof deleteAccount>>,\n TError,\n void,\n TContext\n > => {\n return useMutation(getDeleteAccountMutationOptions(options), queryClient);\n }\n export const getReadAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * The authenticated account (E15).\n *\n * No query, no join: ``CurrentUserDep`` has already resolved the row behind the\n * token. The endpoint the legacy should have had here has been returning ``500``\n * on every request for as long as anyone has looked (defect D1).\n * @summary Read Account\n */\nexport const readAccount = async ( options?: Parameters<typeof request>[1]): Promise<AccountDetailRead> => {\n\n return request<AccountDetailRead>(getReadAccountUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getReadAccountQueryKey = () => {\n return [\n `/me`\n ] as const;\n }\n\n\nexport const getReadAccountQueryOptions = <TData = Awaited<ReturnType<typeof readAccount>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getReadAccountQueryKey();\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof readAccount>>> = ({ signal }) => readAccount({ signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ReadAccountQueryResult = NonNullable<Awaited<ReturnType<typeof readAccount>>>\nexport type ReadAccountQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useReadAccount<TData = Awaited<ReturnType<typeof readAccount>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof readAccount>>,\n TError,\n Awaited<ReturnType<typeof readAccount>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadAccount<TData = Awaited<ReturnType<typeof readAccount>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof readAccount>>,\n TError,\n Awaited<ReturnType<typeof readAccount>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useReadAccount<TData = Awaited<ReturnType<typeof readAccount>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read Account\n */\n\nexport function useReadAccount<TData = Awaited<ReturnType<typeof readAccount>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof readAccount>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getReadAccountQueryOptions(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 getUpdateAccountUrl = () => {\n\n\n\n\n return `/me`\n}\n\n/**\n * Partially update the account (E16).\n *\n * ``exclude_unset`` is what separates PATCH from PUT here: a field the client\n * omitted is left alone, which is not the same as a field it sent as null. The\n * response is built from the persisted row rather than the submitted body.\n * @summary Update Account\n */\nexport const updateAccount = async (accountUpdateWrite: AccountUpdateWrite, options?: Parameters<typeof request>[1]): Promise<AccountDetailRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<AccountDetailRead>(getUpdateAccountUrl(),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(accountUpdateWrite)\n }\n);}\n\n\n\n\n\nexport const getUpdateAccountMutationKey = () => ['updateAccount'] as const;\n\nexport const getUpdateAccountMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateAccount>>, TError,UpdateAccountMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof updateAccount>>, TError,UpdateAccountMutationVariables, TContext> => {\n\nconst mutationKey = getUpdateAccountMutationKey();\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 updateAccount>>, UpdateAccountMutationVariables> = (props) => {\n const {data} = props ?? {};\n\n return updateAccount(data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type UpdateAccountMutationResult = NonNullable<Awaited<ReturnType<typeof updateAccount>>>\n export type UpdateAccountMutationBody = BodyType<AccountUpdateWrite>\n export type UpdateAccountMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type UpdateAccountMutationVariables = {data: BodyType<AccountUpdateWrite>}\n\n /**\n * @summary Update Account\n */\nexport const useUpdateAccount = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateAccount>>, TError,UpdateAccountMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof updateAccount>>,\n TError,\n UpdateAccountMutationVariables,\n TContext\n > => {\n return useMutation(getUpdateAccountMutationOptions(options), queryClient);\n }\n export const getListServicesUrl = () => {\n\n\n\n\n return `/me/services`\n}\n\n/**\n * Third-party services this account's establishment offers (E27).\n *\n * Under ``/me`` rather than ``/biblio/me`` because it is not a catalogue: these\n * are the establishment's own service tiles, and they belong to the tenant\n * whichever catalogue that tenant reads from. It is also the one place the\n * biblio spec describes something the *CVS* schema models, which is why it sat\n * in the wrong module until the prefixes made the mismatch visible.\n *\n * Date-windowed. A service outside its window is absent rather than disabled:\n * the client should not have to know the difference, and a visible dead link is\n * worse than no link.\n * @summary List Services\n */\nexport const listServices = async ( options?: Parameters<typeof request>[1]): Promise<ServiceListRead> => {\n\n return request<ServiceListRead>(getListServicesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getListServicesQueryKey = () => {\n return [\n `/me/services`\n ] as const;\n }\n\n\nexport const getListServicesQueryOptions = <TData = Awaited<ReturnType<typeof listServices>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getListServicesQueryKey();\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof listServices>>> = ({ signal }) => listServices({ signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type ListServicesQueryResult = NonNullable<Awaited<ReturnType<typeof listServices>>>\nexport type ListServicesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useListServices<TData = Awaited<ReturnType<typeof listServices>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof listServices>>,\n TError,\n Awaited<ReturnType<typeof listServices>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListServices<TData = Awaited<ReturnType<typeof listServices>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof listServices>>,\n TError,\n Awaited<ReturnType<typeof listServices>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useListServices<TData = Awaited<ReturnType<typeof listServices>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List Services\n */\n\nexport function useListServices<TData = Awaited<ReturnType<typeof listServices>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listServices>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getListServicesQueryOptions(options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\n"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { D as ThemeOrderWrite, Dr as HTTPExceptionResponse, E as ThemeWrite, O as ThemeListRead, k as ThemeRead, kn as ListThemesParams, t as ValidationErrorResponse } 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-catalogue/admin-catalogue.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.
|
|
10
|
+
* OpenAPI spec version: 0.8.2
|
|
11
11
|
*/
|
|
12
12
|
const withQueryKey = (query, queryKey) => {
|
|
13
13
|
const result = { queryKey };
|