@learnorama/mozaik-sdk 0.1.0-staging.13.1 → 0.3.2-staging.19.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/README.md +10 -7
- 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 +6 -1
- package/dist/api/admin-consumption.js +5 -0
- package/dist/api/admin-consumption.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 -2
- package/dist/api/admin-patrons.js +1 -1
- 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 +2 -2
- package/dist/api/admin-roles.js +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 +7 -1
- package/dist/api/admin-tenants.js +19 -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 +15 -3
- package/dist/api/cvs-documents.js +21 -4
- 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 +167 -0
- package/dist/api/cvs-ils.js +362 -0
- package/dist/api/cvs-ils.js.map +1 -0
- 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 +4 -2
- package/dist/api/index.js +4 -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 +18 -0
- package/dist/api/search.js +37 -0
- package/dist/api/search.js.map +1 -0
- 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 +1 -1
- package/dist/api/tutoring-dispatch.js.map +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 +707 -131
- 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 +29 -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 +6 -1
- package/dist/react/admin-consumption.js +6 -1
- package/dist/react/admin-consumption.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 -2
- package/dist/react/admin-patrons.js +2 -2
- 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 +2 -2
- package/dist/react/admin-roles.js +2 -2
- 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 +34 -1
- package/dist/react/admin-tenants.js +44 -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 +16 -3
- package/dist/react/cvs-documents.js +24 -7
- 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 +552 -0
- package/dist/react/cvs-ils.js +822 -0
- package/dist/react/cvs-ils.js.map +1 -0
- 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 +4 -2
- package/dist/react/index.js +4 -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 +47 -0
- package/dist/react/search.js +81 -0
- package/dist/react/search.js.map +1 -0
- 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 +1 -1
- package/dist/react/tutoring-dispatch.js +1 -1
- 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
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
|
|
2
|
+
import { r as request } from "../chunks/client.js";
|
|
3
|
+
//#region src/api/cvs-ils/cvs-ils.ts
|
|
4
|
+
const getReadIlsAccountUrl = () => {
|
|
5
|
+
return `/ils/account`;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The borrower record held by the library.
|
|
9
|
+
*
|
|
10
|
+
* Passed through unmodelled — PMB documents no shape for this call and the
|
|
11
|
+
* four libraries run different versions, so a fixed schema would drop exactly
|
|
12
|
+
* the fine and expiry fields a patron most needs.
|
|
13
|
+
* @summary Read Ils Account
|
|
14
|
+
*/
|
|
15
|
+
const readIlsAccount = async (options) => {
|
|
16
|
+
return request(getReadIlsAccountUrl(), {
|
|
17
|
+
...options,
|
|
18
|
+
method: "GET"
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const getListIlsHoldLocationsUrl = () => {
|
|
22
|
+
return `/ils/hold-locations`;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Branches a reservation may be collected from.
|
|
26
|
+
*
|
|
27
|
+
* A separate call from ``/ils/locations`` because it is a different list —
|
|
28
|
+
* not every branch accepts collections, and offering one that does not
|
|
29
|
+
* produces a hold the patron can never pick up.
|
|
30
|
+
* @summary List Ils Hold Locations
|
|
31
|
+
*/
|
|
32
|
+
const listIlsHoldLocations = async (options) => {
|
|
33
|
+
return request(getListIlsHoldLocationsUrl(), {
|
|
34
|
+
...options,
|
|
35
|
+
method: "GET"
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
const getListIlsHoldsUrl = () => {
|
|
39
|
+
return `/ils/holds`;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* This patron's reservations, with their place in each queue.
|
|
43
|
+
* @summary List Ils Holds
|
|
44
|
+
*/
|
|
45
|
+
const listIlsHolds = async (options) => {
|
|
46
|
+
return request(getListIlsHoldsUrl(), {
|
|
47
|
+
...options,
|
|
48
|
+
method: "GET"
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
const getPlaceIlsHoldUrl = () => {
|
|
52
|
+
return `/ils/holds`;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Reserve a record, for collection at a branch.
|
|
56
|
+
*
|
|
57
|
+
* Check ``GET /ils/records/{record_id}/holdable`` first if you want to show
|
|
58
|
+
* the patron why not before they try — this returns the library's refusal
|
|
59
|
+
* either way.
|
|
60
|
+
* @summary Place Ils Hold
|
|
61
|
+
*/
|
|
62
|
+
const placeIlsHold = async (ilsHoldWrite, options) => {
|
|
63
|
+
const getHeaders = (h) => {
|
|
64
|
+
if (!h) return {};
|
|
65
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
66
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
67
|
+
const headers = {};
|
|
68
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
69
|
+
return headers;
|
|
70
|
+
};
|
|
71
|
+
return request(getPlaceIlsHoldUrl(), {
|
|
72
|
+
...options,
|
|
73
|
+
method: "POST",
|
|
74
|
+
headers: {
|
|
75
|
+
"Content-Type": "application/json",
|
|
76
|
+
...getHeaders(options?.headers)
|
|
77
|
+
},
|
|
78
|
+
body: JSON.stringify(ilsHoldWrite)
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
const getCancelIlsHoldUrl = (holdId) => {
|
|
82
|
+
return `/ils/holds/${holdId}`;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Cancel a reservation. The library decides whether it may still be.
|
|
86
|
+
* @summary Cancel Ils Hold
|
|
87
|
+
*/
|
|
88
|
+
const cancelIlsHold = async (holdId, options) => {
|
|
89
|
+
return request(getCancelIlsHoldUrl(holdId), {
|
|
90
|
+
...options,
|
|
91
|
+
method: "DELETE"
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
const getListIlsLoansUrl = (params) => {
|
|
95
|
+
const normalizedParams = new URLSearchParams();
|
|
96
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
97
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
98
|
+
});
|
|
99
|
+
const stringifiedParams = normalizedParams.toString();
|
|
100
|
+
return stringifiedParams.length > 0 ? `/ils/loans?${stringifiedParams}` : `/ils/loans`;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* What this patron has out from their library.
|
|
104
|
+
*
|
|
105
|
+
* ``state`` replaces PMB's integer ``loan_type``. The wire values were 0, 1
|
|
106
|
+
* and 2 with the meanings in the vendor's documentation and nowhere in the
|
|
107
|
+
* URL; a client should not have to know that 2 means overdue.
|
|
108
|
+
* @summary List Ils Loans
|
|
109
|
+
*/
|
|
110
|
+
const listIlsLoans = async (params, options) => {
|
|
111
|
+
return request(getListIlsLoansUrl(params), {
|
|
112
|
+
...options,
|
|
113
|
+
method: "GET"
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const getRenewIlsLoanUrl = (barcode) => {
|
|
117
|
+
return `/ils/loans/${barcode}/renewals`;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Extend one loan.
|
|
121
|
+
*
|
|
122
|
+
* Keyed on the **item barcode**, not a loan id, because that is what PMB
|
|
123
|
+
* renews — a physical copy — and it is the number printed on the book. It is
|
|
124
|
+
* also what ``GET /ils/loans`` returns as ``barcode``.
|
|
125
|
+
*
|
|
126
|
+
* A refusal is a ``200`` with ``ok: false``, not an error: "this cannot be
|
|
127
|
+
* renewed again" is the library's answer to a valid question, and the reason
|
|
128
|
+
* it gives is worth showing the patron.
|
|
129
|
+
* @summary Renew Ils Loan
|
|
130
|
+
*/
|
|
131
|
+
const renewIlsLoan = async (barcode, options) => {
|
|
132
|
+
return request(getRenewIlsLoanUrl(barcode), {
|
|
133
|
+
...options,
|
|
134
|
+
method: "POST"
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
const getListIlsLocationsUrl = () => {
|
|
138
|
+
return `/ils/locations`;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Every branch in the library's catalogue.
|
|
142
|
+
* @summary List Ils Locations
|
|
143
|
+
*/
|
|
144
|
+
const listIlsLocations = async (options) => {
|
|
145
|
+
return request(getListIlsLocationsUrl(), {
|
|
146
|
+
...options,
|
|
147
|
+
method: "GET"
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
const getChangeIlsPasswordUrl = () => {
|
|
151
|
+
return `/ils/password`;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Change the password on the **library's** system.
|
|
155
|
+
*
|
|
156
|
+
* Not the Mozaik one. A patron who changes it here still signs in to this
|
|
157
|
+
* platform with their Mozaik credentials, and saying so in the UI avoids the
|
|
158
|
+
* support ticket.
|
|
159
|
+
* @summary Change Ils Password
|
|
160
|
+
*/
|
|
161
|
+
const changeIlsPassword = async (ilsPasswordWrite, options) => {
|
|
162
|
+
const getHeaders = (h) => {
|
|
163
|
+
if (!h) return {};
|
|
164
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
165
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
166
|
+
const headers = {};
|
|
167
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
168
|
+
return headers;
|
|
169
|
+
};
|
|
170
|
+
return request(getChangeIlsPasswordUrl(), {
|
|
171
|
+
...options,
|
|
172
|
+
method: "PUT",
|
|
173
|
+
headers: {
|
|
174
|
+
"Content-Type": "application/json",
|
|
175
|
+
...getHeaders(options?.headers)
|
|
176
|
+
},
|
|
177
|
+
body: JSON.stringify(ilsPasswordWrite)
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
const getReadIlsHoldableUrl = (recordId, params) => {
|
|
181
|
+
const normalizedParams = new URLSearchParams();
|
|
182
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
183
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
184
|
+
});
|
|
185
|
+
const stringifiedParams = normalizedParams.toString();
|
|
186
|
+
return stringifiedParams.length > 0 ? `/ils/records/${recordId}/holdable?${stringifiedParams}` : `/ils/records/${recordId}/holdable`;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Whether this patron may reserve this record, and the library's reason.
|
|
190
|
+
* @summary Read Ils Holdable
|
|
191
|
+
*/
|
|
192
|
+
const readIlsHoldable = async (recordId, params, options) => {
|
|
193
|
+
return request(getReadIlsHoldableUrl(recordId, params), {
|
|
194
|
+
...options,
|
|
195
|
+
method: "GET"
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
const getAddIlsReviewUrl = (recordId) => {
|
|
199
|
+
return `/ils/records/${recordId}/reviews`;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Post a review to the library's OPAC, where its other borrowers see it.
|
|
203
|
+
*
|
|
204
|
+
* Distinct from a Mozaik review: this one lives on the library's system and
|
|
205
|
+
* is not moderated here.
|
|
206
|
+
* @summary Add Ils Review
|
|
207
|
+
*/
|
|
208
|
+
const addIlsReview = async (recordId, ilsReviewWrite, options) => {
|
|
209
|
+
const getHeaders = (h) => {
|
|
210
|
+
if (!h) return {};
|
|
211
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
212
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
213
|
+
const headers = {};
|
|
214
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
215
|
+
return headers;
|
|
216
|
+
};
|
|
217
|
+
return request(getAddIlsReviewUrl(recordId), {
|
|
218
|
+
...options,
|
|
219
|
+
method: "POST",
|
|
220
|
+
headers: {
|
|
221
|
+
"Content-Type": "application/json",
|
|
222
|
+
...getHeaders(options?.headers)
|
|
223
|
+
},
|
|
224
|
+
body: JSON.stringify(ilsReviewWrite)
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
const getAddIlsTagUrl = (recordId) => {
|
|
228
|
+
return `/ils/records/${recordId}/tags`;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Tag a record in the library's catalogue.
|
|
232
|
+
* @summary Add Ils Tag
|
|
233
|
+
*/
|
|
234
|
+
const addIlsTag = async (recordId, ilsTagWrite, options) => {
|
|
235
|
+
const getHeaders = (h) => {
|
|
236
|
+
if (!h) return {};
|
|
237
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
238
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
239
|
+
const headers = {};
|
|
240
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
241
|
+
return headers;
|
|
242
|
+
};
|
|
243
|
+
return request(getAddIlsTagUrl(recordId), {
|
|
244
|
+
...options,
|
|
245
|
+
method: "POST",
|
|
246
|
+
headers: {
|
|
247
|
+
"Content-Type": "application/json",
|
|
248
|
+
...getHeaders(options?.headers)
|
|
249
|
+
},
|
|
250
|
+
body: JSON.stringify(ilsTagWrite)
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
const getSignOutOfIlsUrl = () => {
|
|
254
|
+
return `/ils/session`;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Drop the link. Idempotent, and never fails on the library's account.
|
|
258
|
+
*
|
|
259
|
+
* Our copy of the session goes first. Telling PMB is best-effort: if the
|
|
260
|
+
* library is down, the patron is still signed out here, which is the part
|
|
261
|
+
* they asked for and the part that matters for a shared device.
|
|
262
|
+
* @summary Sign Out Of Ils
|
|
263
|
+
*/
|
|
264
|
+
const signOutOfIls = async (options) => {
|
|
265
|
+
return request(getSignOutOfIlsUrl(), {
|
|
266
|
+
...options,
|
|
267
|
+
method: "DELETE"
|
|
268
|
+
});
|
|
269
|
+
};
|
|
270
|
+
const getSignInToIlsUrl = () => {
|
|
271
|
+
return `/ils/session`;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Link this patron to their library account with their card credentials.
|
|
275
|
+
*
|
|
276
|
+
* Replaces ``login``, ``login-md5`` and ``login-aes``: those are three ways to
|
|
277
|
+
* carry one password to a server of unknown vintage, and the connector
|
|
278
|
+
* negotiates between them — AES first, because it is the only one that does
|
|
279
|
+
* not hand the library a password it can replay.
|
|
280
|
+
*
|
|
281
|
+
* **The credentials are not stored.** They open an upstream session and are
|
|
282
|
+
* discarded; the session is what persists, and it expires. That is why there
|
|
283
|
+
* is no silent re-login anywhere below — a patron whose session lapses is
|
|
284
|
+
* asked again, because we deliberately cannot do it for them.
|
|
285
|
+
*
|
|
286
|
+
* ``401`` for a wrong card number or password — the patron's, at their
|
|
287
|
+
* library, not their Mozaik credentials.
|
|
288
|
+
* @summary Sign In To Ils
|
|
289
|
+
*/
|
|
290
|
+
const signInToIls = async (ilsSignInWrite, options) => {
|
|
291
|
+
const getHeaders = (h) => {
|
|
292
|
+
if (!h) return {};
|
|
293
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
294
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
295
|
+
const headers = {};
|
|
296
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
297
|
+
return headers;
|
|
298
|
+
};
|
|
299
|
+
return request(getSignInToIlsUrl(), {
|
|
300
|
+
...options,
|
|
301
|
+
method: "POST",
|
|
302
|
+
headers: {
|
|
303
|
+
"Content-Type": "application/json",
|
|
304
|
+
...getHeaders(options?.headers)
|
|
305
|
+
},
|
|
306
|
+
body: JSON.stringify(ilsSignInWrite)
|
|
307
|
+
});
|
|
308
|
+
};
|
|
309
|
+
const getReadIlsStatusUrl = () => {
|
|
310
|
+
return `/ils/status`;
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Whether this library has a catalogue system, and whether we speak it.
|
|
314
|
+
*
|
|
315
|
+
* **Read this first.** Most libraries have no ILS, and a client that assumes
|
|
316
|
+
* otherwise renders a "my loans" tab that can only ever answer ``409``.
|
|
317
|
+
*
|
|
318
|
+
* Never 409s itself — "there is no integration" is the answer, not an error.
|
|
319
|
+
* @summary Read Ils Status
|
|
320
|
+
*/
|
|
321
|
+
const readIlsStatus = async (options) => {
|
|
322
|
+
return request(getReadIlsStatusUrl(), {
|
|
323
|
+
...options,
|
|
324
|
+
method: "GET"
|
|
325
|
+
});
|
|
326
|
+
};
|
|
327
|
+
const getListIlsSuggestionCategoriesUrl = () => {
|
|
328
|
+
return `/ils/suggestion-categories`;
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* Categories a purchase suggestion may name.
|
|
332
|
+
*
|
|
333
|
+
* The suggestion itself is not submitted here: PMB's OPAC borrower services
|
|
334
|
+
* expose the two vocabularies and no ``add_suggestion``, so the legacy could
|
|
335
|
+
* not submit one either. Carried because a client building a suggestion form
|
|
336
|
+
* needs them, and their absence would look like an oversight rather than the
|
|
337
|
+
* vendor's.
|
|
338
|
+
* @summary List Ils Suggestion Categories
|
|
339
|
+
*/
|
|
340
|
+
const listIlsSuggestionCategories = async (options) => {
|
|
341
|
+
return request(getListIlsSuggestionCategoriesUrl(), {
|
|
342
|
+
...options,
|
|
343
|
+
method: "GET"
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
const getListIlsSuggestionSourcesUrl = () => {
|
|
347
|
+
return `/ils/suggestion-sources`;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Sources a purchase suggestion may cite. See the note on categories.
|
|
351
|
+
* @summary List Ils Suggestion Sources
|
|
352
|
+
*/
|
|
353
|
+
const listIlsSuggestionSources = async (options) => {
|
|
354
|
+
return request(getListIlsSuggestionSourcesUrl(), {
|
|
355
|
+
...options,
|
|
356
|
+
method: "GET"
|
|
357
|
+
});
|
|
358
|
+
};
|
|
359
|
+
//#endregion
|
|
360
|
+
export { addIlsReview, addIlsTag, cancelIlsHold, changeIlsPassword, getAddIlsReviewUrl, getAddIlsTagUrl, getCancelIlsHoldUrl, getChangeIlsPasswordUrl, getListIlsHoldLocationsUrl, getListIlsHoldsUrl, getListIlsLoansUrl, getListIlsLocationsUrl, getListIlsSuggestionCategoriesUrl, getListIlsSuggestionSourcesUrl, getPlaceIlsHoldUrl, getReadIlsAccountUrl, getReadIlsHoldableUrl, getReadIlsStatusUrl, getRenewIlsLoanUrl, getSignInToIlsUrl, getSignOutOfIlsUrl, listIlsHoldLocations, listIlsHolds, listIlsLoans, listIlsLocations, listIlsSuggestionCategories, listIlsSuggestionSources, placeIlsHold, readIlsAccount, readIlsHoldable, readIlsStatus, renewIlsLoan, signInToIls, signOutOfIls };
|
|
361
|
+
|
|
362
|
+
//# sourceMappingURL=cvs-ils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cvs-ils.js","names":[],"sources":["../../src/api/cvs-ils/cvs-ils.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.3.2\n */\nimport type {\n IlsAccountRead,\n IlsActionRead,\n IlsHoldListRead,\n IlsHoldWrite,\n IlsHoldableRead,\n IlsLoanListRead,\n IlsLocationListRead,\n IlsPasswordWrite,\n IlsReviewWrite,\n IlsSignInWrite,\n IlsStatusRead,\n IlsSuggestionOptionListRead,\n IlsTagWrite,\n ListIlsLoansParams,\n ReadIlsHoldableParams\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getReadIlsAccountUrl = () => {\n\n\n\n\n return `/ils/account`\n}\n\n/**\n * The borrower record held by the library.\n *\n * Passed through unmodelled — PMB documents no shape for this call and the\n * four libraries run different versions, so a fixed schema would drop exactly\n * the fine and expiry fields a patron most needs.\n * @summary Read Ils Account\n */\nexport const readIlsAccount = async ( options?: Parameters<typeof request>[1]): Promise<IlsAccountRead> => {\n\n return request<IlsAccountRead>(getReadIlsAccountUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListIlsHoldLocationsUrl = () => {\n\n\n\n\n return `/ils/hold-locations`\n}\n\n/**\n * Branches a reservation may be collected from.\n *\n * A separate call from ``/ils/locations`` because it is a different list —\n * not every branch accepts collections, and offering one that does not\n * produces a hold the patron can never pick up.\n * @summary List Ils Hold Locations\n */\nexport const listIlsHoldLocations = async ( options?: Parameters<typeof request>[1]): Promise<IlsLocationListRead> => {\n\n return request<IlsLocationListRead>(getListIlsHoldLocationsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListIlsHoldsUrl = () => {\n\n\n\n\n return `/ils/holds`\n}\n\n/**\n * This patron's reservations, with their place in each queue.\n * @summary List Ils Holds\n */\nexport const listIlsHolds = async ( options?: Parameters<typeof request>[1]): Promise<IlsHoldListRead> => {\n\n return request<IlsHoldListRead>(getListIlsHoldsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getPlaceIlsHoldUrl = () => {\n\n\n\n\n return `/ils/holds`\n}\n\n/**\n * Reserve a record, for collection at a branch.\n *\n * Check ``GET /ils/records/{record_id}/holdable`` first if you want to show\n * the patron why not before they try — this returns the library's refusal\n * either way.\n * @summary Place Ils Hold\n */\nexport const placeIlsHold = async (ilsHoldWrite: IlsHoldWrite, options?: Parameters<typeof request>[1]): Promise<IlsActionRead> => {\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<IlsActionRead>(getPlaceIlsHoldUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(ilsHoldWrite)\n }\n);}\n\n\nexport const getCancelIlsHoldUrl = (holdId: number,) => {\n\n\n\n\n return `/ils/holds/${holdId}`\n}\n\n/**\n * Cancel a reservation. The library decides whether it may still be.\n * @summary Cancel Ils Hold\n */\nexport const cancelIlsHold = async (holdId: number, options?: Parameters<typeof request>[1]): Promise<IlsActionRead> => {\n\n return request<IlsActionRead>(getCancelIlsHoldUrl(holdId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getListIlsLoansUrl = (params?: ListIlsLoansParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/ils/loans?${stringifiedParams}` : `/ils/loans`\n}\n\n/**\n * What this patron has out from their library.\n *\n * ``state`` replaces PMB's integer ``loan_type``. The wire values were 0, 1\n * and 2 with the meanings in the vendor's documentation and nowhere in the\n * URL; a client should not have to know that 2 means overdue.\n * @summary List Ils Loans\n */\nexport const listIlsLoans = async (params?: ListIlsLoansParams, options?: Parameters<typeof request>[1]): Promise<IlsLoanListRead> => {\n\n return request<IlsLoanListRead>(getListIlsLoansUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getRenewIlsLoanUrl = (barcode: string,) => {\n\n\n\n\n return `/ils/loans/${barcode}/renewals`\n}\n\n/**\n * Extend one loan.\n *\n * Keyed on the **item barcode**, not a loan id, because that is what PMB\n * renews — a physical copy — and it is the number printed on the book. It is\n * also what ``GET /ils/loans`` returns as ``barcode``.\n *\n * A refusal is a ``200`` with ``ok: false``, not an error: \"this cannot be\n * renewed again\" is the library's answer to a valid question, and the reason\n * it gives is worth showing the patron.\n * @summary Renew Ils Loan\n */\nexport const renewIlsLoan = async (barcode: string, options?: Parameters<typeof request>[1]): Promise<IlsActionRead> => {\n\n return request<IlsActionRead>(getRenewIlsLoanUrl(barcode),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\nexport const getListIlsLocationsUrl = () => {\n\n\n\n\n return `/ils/locations`\n}\n\n/**\n * Every branch in the library's catalogue.\n * @summary List Ils Locations\n */\nexport const listIlsLocations = async ( options?: Parameters<typeof request>[1]): Promise<IlsLocationListRead> => {\n\n return request<IlsLocationListRead>(getListIlsLocationsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getChangeIlsPasswordUrl = () => {\n\n\n\n\n return `/ils/password`\n}\n\n/**\n * Change the password on the **library's** system.\n *\n * Not the Mozaik one. A patron who changes it here still signs in to this\n * platform with their Mozaik credentials, and saying so in the UI avoids the\n * support ticket.\n * @summary Change Ils Password\n */\nexport const changeIlsPassword = async (ilsPasswordWrite: IlsPasswordWrite, options?: Parameters<typeof request>[1]): Promise<IlsActionRead> => {\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<IlsActionRead>(getChangeIlsPasswordUrl(),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(ilsPasswordWrite)\n }\n);}\n\n\nexport const getReadIlsHoldableUrl = (recordId: number,\n params?: ReadIlsHoldableParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/ils/records/${recordId}/holdable?${stringifiedParams}` : `/ils/records/${recordId}/holdable`\n}\n\n/**\n * Whether this patron may reserve this record, and the library's reason.\n * @summary Read Ils Holdable\n */\nexport const readIlsHoldable = async (recordId: number,\n params?: ReadIlsHoldableParams, options?: Parameters<typeof request>[1]): Promise<IlsHoldableRead> => {\n\n return request<IlsHoldableRead>(getReadIlsHoldableUrl(recordId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getAddIlsReviewUrl = (recordId: number,) => {\n\n\n\n\n return `/ils/records/${recordId}/reviews`\n}\n\n/**\n * Post a review to the library's OPAC, where its other borrowers see it.\n *\n * Distinct from a Mozaik review: this one lives on the library's system and\n * is not moderated here.\n * @summary Add Ils Review\n */\nexport const addIlsReview = async (recordId: number,\n ilsReviewWrite: IlsReviewWrite, options?: Parameters<typeof request>[1]): Promise<IlsActionRead> => {\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<IlsActionRead>(getAddIlsReviewUrl(recordId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(ilsReviewWrite)\n }\n);}\n\n\nexport const getAddIlsTagUrl = (recordId: number,) => {\n\n\n\n\n return `/ils/records/${recordId}/tags`\n}\n\n/**\n * Tag a record in the library's catalogue.\n * @summary Add Ils Tag\n */\nexport const addIlsTag = async (recordId: number,\n ilsTagWrite: IlsTagWrite, options?: Parameters<typeof request>[1]): Promise<IlsActionRead> => {\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<IlsActionRead>(getAddIlsTagUrl(recordId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(ilsTagWrite)\n }\n);}\n\n\nexport const getSignOutOfIlsUrl = () => {\n\n\n\n\n return `/ils/session`\n}\n\n/**\n * Drop the link. Idempotent, and never fails on the library's account.\n *\n * Our copy of the session goes first. Telling PMB is best-effort: if the\n * library is down, the patron is still signed out here, which is the part\n * they asked for and the part that matters for a shared device.\n * @summary Sign Out Of Ils\n */\nexport const signOutOfIls = async ( options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getSignOutOfIlsUrl(),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getSignInToIlsUrl = () => {\n\n\n\n\n return `/ils/session`\n}\n\n/**\n * Link this patron to their library account with their card credentials.\n *\n * Replaces ``login``, ``login-md5`` and ``login-aes``: those are three ways to\n * carry one password to a server of unknown vintage, and the connector\n * negotiates between them — AES first, because it is the only one that does\n * not hand the library a password it can replay.\n *\n * **The credentials are not stored.** They open an upstream session and are\n * discarded; the session is what persists, and it expires. That is why there\n * is no silent re-login anywhere below — a patron whose session lapses is\n * asked again, because we deliberately cannot do it for them.\n *\n * ``401`` for a wrong card number or password — the patron's, at their\n * library, not their Mozaik credentials.\n * @summary Sign In To Ils\n */\nexport const signInToIls = async (ilsSignInWrite: IlsSignInWrite, options?: Parameters<typeof request>[1]): Promise<IlsStatusRead> => {\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<IlsStatusRead>(getSignInToIlsUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(ilsSignInWrite)\n }\n);}\n\n\nexport const getReadIlsStatusUrl = () => {\n\n\n\n\n return `/ils/status`\n}\n\n/**\n * Whether this library has a catalogue system, and whether we speak it.\n *\n * **Read this first.** Most libraries have no ILS, and a client that assumes\n * otherwise renders a \"my loans\" tab that can only ever answer ``409``.\n *\n * Never 409s itself — \"there is no integration\" is the answer, not an error.\n * @summary Read Ils Status\n */\nexport const readIlsStatus = async ( options?: Parameters<typeof request>[1]): Promise<IlsStatusRead> => {\n\n return request<IlsStatusRead>(getReadIlsStatusUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListIlsSuggestionCategoriesUrl = () => {\n\n\n\n\n return `/ils/suggestion-categories`\n}\n\n/**\n * Categories a purchase suggestion may name.\n *\n * The suggestion itself is not submitted here: PMB's OPAC borrower services\n * expose the two vocabularies and no ``add_suggestion``, so the legacy could\n * not submit one either. Carried because a client building a suggestion form\n * needs them, and their absence would look like an oversight rather than the\n * vendor's.\n * @summary List Ils Suggestion Categories\n */\nexport const listIlsSuggestionCategories = async ( options?: Parameters<typeof request>[1]): Promise<IlsSuggestionOptionListRead> => {\n\n return request<IlsSuggestionOptionListRead>(getListIlsSuggestionCategoriesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getListIlsSuggestionSourcesUrl = () => {\n\n\n\n\n return `/ils/suggestion-sources`\n}\n\n/**\n * Sources a purchase suggestion may cite. See the note on categories.\n * @summary List Ils Suggestion Sources\n */\nexport const listIlsSuggestionSources = async ( options?: Parameters<typeof request>[1]): Promise<IlsSuggestionOptionListRead> => {\n\n return request<IlsSuggestionOptionListRead>(getListIlsSuggestionSourcesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":"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"}
|
package/dist/api/cvs-loans.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { Di as BorrowWrite, Mn as ListLoansParams, gn as LoanRead, hn as LoanPage } from "../chunks/index.js";
|
|
3
3
|
import { c as request } from "../chunks/client.js";
|
|
4
4
|
//#region src/api/cvs-loans/cvs-loans.d.ts
|
|
5
5
|
export declare const getListLoansUrl: (params?: ListLoansParams) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cvs-loans.js","names":[],"sources":["../../src/api/cvs-loans/cvs-loans.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.
|
|
1
|
+
{"version":3,"file":"cvs-loans.js","names":[],"sources":["../../src/api/cvs-loans/cvs-loans.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.3.2\n */\nimport type {\n BorrowWrite,\n ListLoansParams,\n LoanPage,\n LoanRead\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListLoansUrl = (params?: ListLoansParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/cvs/loans?${stringifiedParams}` : `/cvs/loans`\n}\n\n/**\n * What this caller currently holds (and optionally what they have returned).\n *\n * Replaces ``/download/details``, which took a ``downloadid`` and answered about\n * one loan at a time — so a client rebuilding its shelf after reinstalling made\n * one request per title, and had no way to discover the ids in the first place.\n * @summary List Loans\n */\nexport const listLoans = async (params?: ListLoansParams, options?: Parameters<typeof request>[1]): Promise<LoanPage> => {\n\n return request<LoanPage>(getListLoansUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getBorrowUrl = () => {\n\n\n\n\n return `/cvs/loans`\n}\n\n/**\n * Borrow a work.\n *\n * The order matters and is the whole point of the entitlement model:\n *\n * 1. **Entitled?** — is this act permitted on this work under a live contract.\n * 2. **A seat free?** — ``max_concurrent`` counted from unreturned loans.\n * 3. **Units left?** — reserved in Redis *before* the row is written, so a\n * refusal costs no database work.\n * 4. **Append.** The ledger row is the loan.\n *\n * Idempotent on ``request_key``: a retried borrow returns the loan the first\n * attempt created rather than taking a second copy of the same title.\n * @summary Borrow\n */\nexport const borrow = async (borrowWrite: BorrowWrite, options?: Parameters<typeof request>[1]): Promise<LoanRead> => {\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<LoanRead>(getBorrowUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(borrowWrite)\n }\n);}\n\n\nexport const getReturnLoanUrl = (loanId: number,) => {\n\n\n\n\n return `/cvs/loans/${loanId}`\n}\n\n/**\n * Give a loan back early, freeing its seat. Idempotent.\n *\n * Returning something already returned is ``204``: the caller wanted it back on\n * the shelf and it is on the shelf. The legacy answered an error, which meant a\n * retried return looked like a failure and clients stopped retrying.\n *\n * The unit stays spent — see the module docstring. Only the seat comes back.\n * @summary Return Loan\n */\nexport const returnLoan = async (loanId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getReturnLoanUrl(loanId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\nexport const getExtendLoanUrl = (loanId: number,) => {\n\n\n\n\n return `/cvs/loans/${loanId}/extensions`\n}\n\n/**\n * Prolong a loan.\n *\n * Bounded by the grant's ``max_extensions`` — the legacy's ``nb_extend`` — and\n * refused once the loan has been returned or has lapsed. Extending something\n * that already expired is not an extension, it is a new loan, and it should\n * spend a new unit rather than quietly avoid one.\n *\n * Not idempotent, deliberately: two extension requests mean two extensions, and\n * a client that wants exactly one should not send two.\n * @summary Extend Loan\n */\nexport const extendLoan = async (loanId: number, options?: Parameters<typeof request>[1]): Promise<LoanRead> => {\n\n return request<LoanRead>(getExtendLoanUrl(loanId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,mBAAmB,WAA8B;CAC5D,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,cAAc,sBAAsB;AAC5E;;;;;;;;;AAUA,MAAa,YAAY,OAAO,QAA0B,YAA+D;CAEvH,OAAO,QAAkB,gBAAgB,MAAM,GAC/C;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,qBAAqB;CAKhC,OAAO;AACT;;;;;;;;;;;;;;;;AAiBA,MAAa,SAAS,OAAO,aAA0B,YAA+D;CAElH,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAAkB,aAAa,GACpC;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,WAAW;CAClC,CACF;AAAE;AAGF,MAAa,oBAAoB,WAAoB;CAKnD,OAAO,cAAc;AACvB;;;;;;;;;;;AAYA,MAAa,aAAa,OAAO,QAAgB,YAA2D;CAE1G,OAAO,QAAc,iBAAiB,MAAM,GAC5C;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,oBAAoB,WAAoB;CAKnD,OAAO,cAAc,OAAO;AAC9B;;;;;;;;;;;;;AAcA,MAAa,aAAa,OAAO,QAAgB,YAA+D;CAE9G,OAAO,QAAkB,iBAAiB,MAAM,GAChD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { Bt as PaymentListRead, Lt as PaymentStartWrite, Rt as PaymentStartRead, Vt as PaymentRead } from "../chunks/index.js";
|
|
3
3
|
import { c as request } from "../chunks/client.js";
|
|
4
4
|
//#region src/api/cvs-payments/cvs-payments.d.ts
|
|
5
5
|
export declare const getListPaymentsUrl: () => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cvs-payments.js","names":[],"sources":["../../src/api/cvs-payments/cvs-payments.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.
|
|
1
|
+
{"version":3,"file":"cvs-payments.js","names":[],"sources":["../../src/api/cvs-payments/cvs-payments.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.3.2\n */\nimport type {\n PaymentListRead,\n PaymentRead,\n PaymentStartRead,\n PaymentStartWrite\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getListPaymentsUrl = () => {\n\n\n\n\n return `/cvs/payments`\n}\n\n/**\n * This patron's top-ups, newest first. The legacy's ``historyPayments()``.\n * @summary List Payments\n */\nexport const listPayments = async ( options?: Parameters<typeof request>[1]): Promise<PaymentListRead> => {\n\n return request<PaymentListRead>(getListPaymentsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\nexport const getStartPaymentUrl = () => {\n\n\n\n\n return `/cvs/payments`\n}\n\n/**\n * Begin a top-up and get the hand-off to send the patron to.\n *\n * **Which provider answers is the library's setting**, not the client's\n * choice. PayPal returns ``approvalUrl``; Paybox returns ``form``, because\n * its hand-off is a signed POST and not a redirect. Read ``provider`` rather\n * than testing which field is null.\n *\n * ``409`` for an amount this library does not sell — the tariff is the\n * server's, because a client that may name its own price may name zero, and\n * it differs per provider (Paybox sells séances at 3 €, PayPal credits at\n * 5.90 €). ``503`` when the library sells nothing or its merchant account is\n * unconfigured, with nothing written.\n *\n * Nothing is charged here and nothing is credited. This opens a pending row\n * and the provider hand-off, and that is all.\n *\n * ``requestKey`` makes it idempotent: a retried start returns the hand-off the\n * first attempt opened rather than opening a second, because a patron who\n * then pays both has been charged twice for one intent.\n * @summary Start Payment\n */\nexport const startPayment = async (paymentStartWrite: PaymentStartWrite, options?: Parameters<typeof request>[1]): Promise<PaymentStartRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<PaymentStartRead>(getStartPaymentUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(paymentStartWrite)\n }\n);}\n\n\nexport const getReadPaymentUrl = (paymentId: number,) => {\n\n\n\n\n return `/cvs/payments/${paymentId}`\n}\n\n/**\n * One top-up, and what became of it.\n *\n * This is what a client reads after the provider sends the browser back. The\n * landing URL says what the patron *did*; this says what the *provider* told\n * us, which is the only version that credits anything.\n *\n * ``404`` for somebody else's payment, indistinguishable from one that does\n * not exist: a payment id is a bare integer.\n * @summary Read Payment\n */\nexport const readPayment = async (paymentId: number, options?: Parameters<typeof request>[1]): Promise<PaymentRead> => {\n\n return request<PaymentRead>(getReadPaymentUrl(paymentId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAgBA,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;;AAMA,MAAa,eAAe,OAAQ,YAAsE;CAExG,OAAO,QAAyB,mBAAmB,GACnD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAGF,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,eAAe,OAAO,mBAAsC,YAAuE;CAE5I,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAA0B,mBAAmB,GAClD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,iBAAiB;CACxC,CACF;AAAE;AAGF,MAAa,qBAAqB,cAAuB;CAKvD,OAAO,iBAAiB;AAC1B;;;;;;;;;;;;AAaA,MAAa,cAAc,OAAO,WAAmB,YAAkE;CAErH,OAAO,QAAqB,kBAAkB,SAAS,GACvD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { R as StreamingStartQuery, z as StreamingSessionRead } from "../chunks/index.js";
|
|
3
3
|
import { c as request } from "../chunks/client.js";
|
|
4
4
|
//#region src/api/cvs-streaming/cvs-streaming.d.ts
|
|
5
5
|
export declare const getStartSessionUrl: () => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cvs-streaming.js","names":[],"sources":["../../src/api/cvs-streaming/cvs-streaming.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.
|
|
1
|
+
{"version":3,"file":"cvs-streaming.js","names":[],"sources":["../../src/api/cvs-streaming/cvs-streaming.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.3.2\n */\nimport type {\n StreamingSessionRead,\n StreamingStartQuery\n} from '../../models';\n\nimport { request } from '../../client';\n\nexport const getStartSessionUrl = () => {\n\n\n\n\n return `/streaming/sessions`\n}\n\n/**\n * Begin playing a title. Returns the manifests and, if encrypted, a licence.\n *\n * ``409`` when every seat is taken, ``404`` when the caller is not entitled or\n * the title has no video, ``503`` when the DRM broker cannot be reached.\n *\n * **404 and not 403 for an entitlement refusal**, consistently with the rest\n * of the API: whether a particular library licensed a particular film is not\n * something an unentitled caller gets to enumerate.\n *\n * **The seat is taken before the licence is minted.** A licence is a real cost\n * with a third party and cannot be un-minted; a lease can be closed. So the\n * order is entitle, seat, then mint — and a client that gets a 409 has cost\n * the library nothing.\n *\n * Not idempotent on its own, but honours ``Idempotency-Key``: a retried start\n * returns the lease the first attempt opened rather than taking a second seat.\n * A licence is re-minted on the retry, which is correct — the first response\n * may never have arrived, and a licence is cheap to replace while a seat is\n * not.\n * @summary Start Session\n */\nexport const startSession = async (streamingStartQuery: StreamingStartQuery, options?: Parameters<typeof request>[1]): Promise<StreamingSessionRead> => {\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<StreamingSessionRead>(getStartSessionUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(streamingStartQuery)\n }\n);}\n\n\nexport const getStreamingDetailsUrl = (docId: number,) => {\n\n\n\n\n return `/streaming/${docId}/details`\n}\n\n/**\n * What a title needs in order to play, without starting anything.\n *\n * No lease, no licence, no unit — a client rendering a \"play\" button should not\n * have to spend a view to find out whether the button should be enabled.\n * ``404`` when there is no playable video.\n * @summary Streaming Details\n */\nexport const streamingDetails = async (docId: number, options?: Parameters<typeof request>[1]): Promise<StreamingSessionRead> => {\n\n return request<StreamingSessionRead>(getStreamingDetailsUrl(docId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n"],"mappings":";;;AAcA,MAAa,2BAA2B;CAKtC,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,eAAe,OAAO,qBAA0C,YAA2E;CAEpJ,MAAM,cAAc,MAAwF;EAC5G,IAAI,CAAC,GAAG,OAAO,CAAC;EAChB,IAAI,aAAa,SAAS,OAAO,OAAO,YAAY,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,QAA8B,mBAAmB,GACtD;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,mBAAmB;CAC1C,CACF;AAAE;AAGF,MAAa,0BAA0B,UAAmB;CAKxD,OAAO,cAAc,MAAM;AAC7B;;;;;;;;;AAUA,MAAa,mBAAmB,OAAO,OAAe,YAA2E;CAE/H,OAAO,QAA8B,uBAAuB,KAAK,GACjE;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
|
package/dist/api/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { getListPatronsUrl, getReadPatronUrl, getUpdatePatronUrl, listPatrons, r
|
|
|
7
7
|
import { getListReviewsUrl, getModerateReviewUrl, listReviews, moderateReview } from "./admin-reviews.js";
|
|
8
8
|
import { getListGrantsUrl, getReplaceGrantsUrl, listGrants, replaceGrants } from "./admin-roles.js";
|
|
9
9
|
import { closeSupportSession, createDemoUser, getCloseSupportSessionUrl, getCreateDemoUserUrl, getOpenSupportSessionUrl, openSupportSession } from "./admin-support.js";
|
|
10
|
-
import { getListTenantsUrl, getReadTenantUrl, getUpdateTenantUrl, listTenants, readTenant, updateTenant } from "./admin-tenants.js";
|
|
10
|
+
import { getListTenantsUrl, getReadTenantUrl, getSearchTenantsUrl, getUpdateTenantUrl, listTenants, readTenant, searchTenants, updateTenant } from "./admin-tenants.js";
|
|
11
11
|
import { adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, createGoal, createLevel, createSubject, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateSubjectUrl, getListAllRequestsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getModerateFeedbackUrl, getReadDraftUrl, getReadRequestUrl, getReviewDraftUrl, listAllRequests, listExpiringDocuments, listFeedback, listPractitionerDocuments, listPractitioners, moderateFeedback, readDraft, readRequest, reviewDraft } from "./admin-tutoring.js";
|
|
12
12
|
import { authorization, createSessionFromCode, createSessionFromCredentials, deleteSession, getAuthorizationUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getDeleteSessionUrl, getReadMeUrl, getRefreshSessionUrl, readMe, refreshSession } from "./auth.js";
|
|
13
13
|
import { getLikeContentUrl, getListEditorsUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadEditorUrl, getReadLearningPathUrl, getReadPackUrl, getReadRecommendationsUrl, getUnlikeContentUrl, likeContent, listEditors, readCatalog, readCatalogTheme, readContent, readEditor, readLearningPath, readPack, readRecommendations, unlikeContent } from "./biblio-catalogue.js";
|
|
@@ -21,15 +21,17 @@ import { closeLease, getCloseLeaseUrl, getRenewLeaseUrl, renewLease } from "./co
|
|
|
21
21
|
import { createReport, getCreateReportUrl, getListNotificationsUrl, listNotifications } from "./cvs-app.js";
|
|
22
22
|
import { getOpenAtSupplierUrl, getRateDocumentUrl, getReadDocumentUrl, getReadLastPositionUrl, getSearchDocumentsUrl, getSetLastPositionUrl, getWriteReviewUrl, openAtSupplier, rateDocument, readDocument, readLastPosition, searchDocuments, setLastPosition, writeReview } from "./cvs-documents.js";
|
|
23
23
|
import { addCvsFavorite, getAddCvsFavoriteUrl, getListCvsFavoritesUrl, getListSelectionsUrl, getRemoveCvsFavoriteUrl, listCvsFavorites, listSelections, removeCvsFavorite } from "./cvs-favorites.js";
|
|
24
|
+
import { addIlsReview, addIlsTag, cancelIlsHold, changeIlsPassword, getAddIlsReviewUrl, getAddIlsTagUrl, getCancelIlsHoldUrl, getChangeIlsPasswordUrl, getListIlsHoldLocationsUrl, getListIlsHoldsUrl, getListIlsLoansUrl, getListIlsLocationsUrl, getListIlsSuggestionCategoriesUrl, getListIlsSuggestionSourcesUrl, getPlaceIlsHoldUrl, getReadIlsAccountUrl, getReadIlsHoldableUrl, getReadIlsStatusUrl, getRenewIlsLoanUrl, getSignInToIlsUrl, getSignOutOfIlsUrl, listIlsHoldLocations, listIlsHolds, listIlsLoans, listIlsLocations, listIlsSuggestionCategories, listIlsSuggestionSources, placeIlsHold, readIlsAccount, readIlsHoldable, readIlsStatus, renewIlsLoan, signInToIls, signOutOfIls } from "./cvs-ils.js";
|
|
24
25
|
import { borrow, extendLoan, getBorrowUrl, getExtendLoanUrl, getListLoansUrl, getReturnLoanUrl, listLoans, returnLoan } from "./cvs-loans.js";
|
|
25
26
|
import { getListPaymentsUrl, getReadPaymentUrl, getStartPaymentUrl, listPayments, readPayment, startPayment } from "./cvs-payments.js";
|
|
26
27
|
import { getStartSessionUrl, getStreamingDetailsUrl, startSession, streamingDetails } from "./cvs-streaming.js";
|
|
27
28
|
import { addPartnerFavorite, getAddPartnerFavoriteUrl, getListMediaUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getReadMediaUrl, getRemovePartnerFavoriteUrl, listMedia, listPartnerCategories, listPartnerFavorites, readMedia, removePartnerFavorite } from "./partner-catalogue.js";
|
|
28
29
|
import { getListCurrentReadingsUrl, getReadPackageUrl, getReadPositionUrl, getWritePositionUrl, listCurrentReadings, readPackage, readPosition, writePosition } from "./partner-reader.js";
|
|
29
30
|
import { createProfile, deleteProfile, getCreateProfileUrl, getDeleteProfileUrl, getListProfilesUrl, getReadProfileUrl, getUpdateProfileUrl, listProfiles, readProfile, updateProfile } from "./profiles.js";
|
|
31
|
+
import { getSearchEverythingUrl, searchEverything } from "./search.js";
|
|
30
32
|
import { getListGoalsUrl, getListLevelsUrl, getListSubjectsUrl, listGoals, listLevels, listSubjects } from "./tutoring-catalogue.js";
|
|
31
33
|
import { getListMessagesUrl, getMintChatTicketUrl, getSendMessageUrl, listMessages, mintChatTicket, sendMessage } from "./tutoring-chat.js";
|
|
32
34
|
import { dispatchRequest, getDispatchRequestUrl, getListQueueUrl, getTriageRequestUrl, listQueue, triageRequest } from "./tutoring-dispatch.js";
|
|
33
35
|
import { answerRequest, claimRequest, closeRequest, getAnswerRequestUrl, getClaimRequestUrl, getCloseRequestUrl, getOpenRoomUrl, openRoom } from "./tutoring-practitioner.js";
|
|
34
36
|
import { cancelRequest, deleteAttachment, getCancelRequestUrl, getDeleteAttachmentUrl, getGetRequestUrl, getListMyRequestsUrl, getRateRequestUrl, getRequest, getSubmitRequestUrl, getUploadAttachmentUrl, listMyRequests, rateRequest, submitRequest, uploadAttachment } from "./tutoring-requests.js";
|
|
35
|
-
export { addBiblioFavorite, addCvsFavorite, addPartnerFavorite, adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, amendTheme, answerRequest, authorization, borrow, cancelRequest, claimRequest, closeLease, closeRequest, closeSupportSession, createDemoUser, createGoal, createLevel, createLicense, createProfile, createReport, createSessionFromCode, createSessionFromCredentials, createSubject, createTheme, deleteAccount, deleteAttachment, deleteLicense, deleteProfile, deleteSession, deleteTheme, dispatchRequest, extendLoan, forceCloseLease, getAddBiblioFavoriteUrl, getAddCvsFavoriteUrl, getAddPartnerFavoriteUrl, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getAmendThemeUrl, getAnswerRequestUrl, getAuthorizationUrl, getBorrowUrl, getCancelRequestUrl, getClaimRequestUrl, getCloseLeaseUrl, getCloseRequestUrl, getCloseSupportSessionUrl, getCreateDemoUserUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateLicenseUrl, getCreateProfileUrl, getCreateReportUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getCreateSubjectUrl, getCreateThemeUrl, getDeleteAccountUrl, getDeleteAttachmentUrl, getDeleteLicenseUrl, getDeleteProfileUrl, getDeleteSessionUrl, getDeleteThemeUrl, getDispatchRequestUrl, getExtendLoanUrl, getForceCloseLeaseUrl, getGetRequestUrl, getLikeContentUrl, getListAllRequestsUrl, getListBiblioCategoriesUrl, getListBiblioFavoritesUrl, getListCurrentReadingsUrl, getListCvsFavoritesUrl, getListEditorsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListGoalsUrl, getListGrantsUrl, getListHistoryUrl, getListLevelsUrl, getListLiveLeasesUrl, getListLoansUrl, getListMediaUrl, getListMessagesUrl, getListMyRequestsUrl, getListNotificationsUrl, getListPacksUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getListPatronsUrl, getListPaymentsUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getListPressArticlesUrl, getListProfilesUrl, getListQueueUrl, getListReviewsUrl, getListSelectionsUrl, getListServicesUrl, getListSubjectsUrl, getListTenantsUrl, getListThemesUrl, getMintChatTicketUrl, getModerateFeedbackUrl, getModerateReviewUrl, getOpenAtSupplierUrl, getOpenRoomUrl, getOpenSupportSessionUrl, getRateDocumentUrl, getRateRequestUrl, getReadAccountUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadDocumentUrl, getReadDraftUrl, getReadEditorUrl, getReadHomeFeedUrl, getReadLastPositionUrl, getReadLearningPathUrl, getReadLicenseUrl, getReadMeUrl, getReadMediaUrl, getReadPackUrl, getReadPackageUrl, getReadPatronLicenseUrl, getReadPatronUrl, getReadPaymentUrl, getReadPositionUrl, getReadPreferencesUrl, getReadPressArticleUrl, getReadPressReviewUrl, getReadProfileUrl, getReadRecommendationsUrl, getReadRequestUrl, getReadTenantUrl, getReadThemeUrl, getRecordReadingSessionUrl, getRefreshSessionUrl, getRemoveBiblioFavoriteUrl, getRemoveCvsFavoriteUrl, getRemovePartnerFavoriteUrl, getRenewLeaseUrl, getReorderThemesUrl, getReplaceCategoryPreferencesUrl, getReplaceGrantsUrl, getRequest, getReturnLoanUrl, getReviewDraftUrl, getSearchDocumentsUrl, getSearchUrl, getSendMessageUrl, getSetLastPositionUrl, getStartPaymentUrl, getStartSessionUrl, getStreamingDetailsUrl, getSubmitRequestUrl, getTriageRequestUrl, getUnlikeContentUrl, getUpdateAccountUrl, getUpdatePatronUrl, getUpdateProfileUrl, getUpdateTenantUrl, getUploadAttachmentUrl, getWritePositionUrl, getWriteReviewUrl, likeContent, listAllRequests, listBiblioCategories, listBiblioFavorites, listCurrentReadings, listCvsFavorites, listEditors, listExpiringDocuments, listFeedback, listGoals, listGrants, listHistory, listLevels, listLiveLeases, listLoans, listMedia, listMessages, listMyRequests, listNotifications, listPacks, listPartnerCategories, listPartnerFavorites, listPatrons, listPayments, listPractitionerDocuments, listPractitioners, listPressArticles, listProfiles, listQueue, listReviews, listSelections, listServices, listSubjects, listTenants, listThemes, mintChatTicket, moderateFeedback, moderateReview, openAtSupplier, openRoom, openSupportSession, rateDocument, rateRequest, readAccount, readCatalog, readCatalogTheme, readContent, readDocument, readDraft, readEditor, readHomeFeed, readLastPosition, readLearningPath, readLicense, readMe, readMedia, readPack, readPackage, readPatron, readPatronLicense, readPayment, readPosition, readPreferences, readPressArticle, readPressReview, readProfile, readRecommendations, readRequest, readTenant, readTheme, recordReadingSession, refreshSession, removeBiblioFavorite, removeCvsFavorite, removePartnerFavorite, renewLease, reorderThemes, replaceCategoryPreferences, replaceGrants, returnLoan, reviewDraft, search, searchDocuments, sendMessage, setLastPosition, startPayment, startSession, streamingDetails, submitRequest, triageRequest, unlikeContent, updateAccount, updatePatron, updateProfile, updateTenant, uploadAttachment, writePosition, writeReview };
|
|
37
|
+
export { addBiblioFavorite, addCvsFavorite, addIlsReview, addIlsTag, addPartnerFavorite, adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, amendTheme, answerRequest, authorization, borrow, cancelIlsHold, cancelRequest, changeIlsPassword, claimRequest, closeLease, closeRequest, closeSupportSession, createDemoUser, createGoal, createLevel, createLicense, createProfile, createReport, createSessionFromCode, createSessionFromCredentials, createSubject, createTheme, deleteAccount, deleteAttachment, deleteLicense, deleteProfile, deleteSession, deleteTheme, dispatchRequest, extendLoan, forceCloseLease, getAddBiblioFavoriteUrl, getAddCvsFavoriteUrl, getAddIlsReviewUrl, getAddIlsTagUrl, getAddPartnerFavoriteUrl, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getAmendThemeUrl, getAnswerRequestUrl, getAuthorizationUrl, getBorrowUrl, getCancelIlsHoldUrl, getCancelRequestUrl, getChangeIlsPasswordUrl, getClaimRequestUrl, getCloseLeaseUrl, getCloseRequestUrl, getCloseSupportSessionUrl, getCreateDemoUserUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateLicenseUrl, getCreateProfileUrl, getCreateReportUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getCreateSubjectUrl, getCreateThemeUrl, getDeleteAccountUrl, getDeleteAttachmentUrl, getDeleteLicenseUrl, getDeleteProfileUrl, getDeleteSessionUrl, getDeleteThemeUrl, getDispatchRequestUrl, getExtendLoanUrl, getForceCloseLeaseUrl, getGetRequestUrl, getLikeContentUrl, getListAllRequestsUrl, getListBiblioCategoriesUrl, getListBiblioFavoritesUrl, getListCurrentReadingsUrl, getListCvsFavoritesUrl, getListEditorsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListGoalsUrl, getListGrantsUrl, getListHistoryUrl, getListIlsHoldLocationsUrl, getListIlsHoldsUrl, getListIlsLoansUrl, getListIlsLocationsUrl, getListIlsSuggestionCategoriesUrl, getListIlsSuggestionSourcesUrl, getListLevelsUrl, getListLiveLeasesUrl, getListLoansUrl, getListMediaUrl, getListMessagesUrl, getListMyRequestsUrl, getListNotificationsUrl, getListPacksUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getListPatronsUrl, getListPaymentsUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getListPressArticlesUrl, getListProfilesUrl, getListQueueUrl, getListReviewsUrl, getListSelectionsUrl, getListServicesUrl, getListSubjectsUrl, getListTenantsUrl, getListThemesUrl, getMintChatTicketUrl, getModerateFeedbackUrl, getModerateReviewUrl, getOpenAtSupplierUrl, getOpenRoomUrl, getOpenSupportSessionUrl, getPlaceIlsHoldUrl, getRateDocumentUrl, getRateRequestUrl, getReadAccountUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadDocumentUrl, getReadDraftUrl, getReadEditorUrl, getReadHomeFeedUrl, getReadIlsAccountUrl, getReadIlsHoldableUrl, getReadIlsStatusUrl, getReadLastPositionUrl, getReadLearningPathUrl, getReadLicenseUrl, getReadMeUrl, getReadMediaUrl, getReadPackUrl, getReadPackageUrl, getReadPatronLicenseUrl, getReadPatronUrl, getReadPaymentUrl, getReadPositionUrl, getReadPreferencesUrl, getReadPressArticleUrl, getReadPressReviewUrl, getReadProfileUrl, getReadRecommendationsUrl, getReadRequestUrl, getReadTenantUrl, getReadThemeUrl, getRecordReadingSessionUrl, getRefreshSessionUrl, getRemoveBiblioFavoriteUrl, getRemoveCvsFavoriteUrl, getRemovePartnerFavoriteUrl, getRenewIlsLoanUrl, getRenewLeaseUrl, getReorderThemesUrl, getReplaceCategoryPreferencesUrl, getReplaceGrantsUrl, getRequest, getReturnLoanUrl, getReviewDraftUrl, getSearchDocumentsUrl, getSearchEverythingUrl, getSearchTenantsUrl, getSearchUrl, getSendMessageUrl, getSetLastPositionUrl, getSignInToIlsUrl, getSignOutOfIlsUrl, getStartPaymentUrl, getStartSessionUrl, getStreamingDetailsUrl, getSubmitRequestUrl, getTriageRequestUrl, getUnlikeContentUrl, getUpdateAccountUrl, getUpdatePatronUrl, getUpdateProfileUrl, getUpdateTenantUrl, getUploadAttachmentUrl, getWritePositionUrl, getWriteReviewUrl, likeContent, listAllRequests, listBiblioCategories, listBiblioFavorites, listCurrentReadings, listCvsFavorites, listEditors, listExpiringDocuments, listFeedback, listGoals, listGrants, listHistory, listIlsHoldLocations, listIlsHolds, listIlsLoans, listIlsLocations, listIlsSuggestionCategories, listIlsSuggestionSources, listLevels, listLiveLeases, listLoans, listMedia, listMessages, listMyRequests, listNotifications, listPacks, listPartnerCategories, listPartnerFavorites, listPatrons, listPayments, listPractitionerDocuments, listPractitioners, listPressArticles, listProfiles, listQueue, listReviews, listSelections, listServices, listSubjects, listTenants, listThemes, mintChatTicket, moderateFeedback, moderateReview, openAtSupplier, openRoom, openSupportSession, placeIlsHold, rateDocument, rateRequest, readAccount, readCatalog, readCatalogTheme, readContent, readDocument, readDraft, readEditor, readHomeFeed, readIlsAccount, readIlsHoldable, readIlsStatus, readLastPosition, readLearningPath, readLicense, readMe, readMedia, readPack, readPackage, readPatron, readPatronLicense, readPayment, readPosition, readPreferences, readPressArticle, readPressReview, readProfile, readRecommendations, readRequest, readTenant, readTheme, recordReadingSession, refreshSession, removeBiblioFavorite, removeCvsFavorite, removePartnerFavorite, renewIlsLoan, renewLease, reorderThemes, replaceCategoryPreferences, replaceGrants, returnLoan, reviewDraft, search, searchDocuments, searchEverything, searchTenants, sendMessage, setLastPosition, signInToIls, signOutOfIls, startPayment, startSession, streamingDetails, submitRequest, triageRequest, unlikeContent, updateAccount, updatePatron, updateProfile, updateTenant, uploadAttachment, writePosition, writeReview };
|
package/dist/api/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { getListPatronsUrl, getReadPatronUrl, getUpdatePatronUrl, listPatrons, r
|
|
|
9
9
|
import { getListReviewsUrl, getModerateReviewUrl, listReviews, moderateReview } from "./admin-reviews.js";
|
|
10
10
|
import { getListGrantsUrl, getReplaceGrantsUrl, listGrants, replaceGrants } from "./admin-roles.js";
|
|
11
11
|
import { closeSupportSession, createDemoUser, getCloseSupportSessionUrl, getCreateDemoUserUrl, getOpenSupportSessionUrl, openSupportSession } from "./admin-support.js";
|
|
12
|
-
import { getListTenantsUrl, getReadTenantUrl, getUpdateTenantUrl, listTenants, readTenant, updateTenant } from "./admin-tenants.js";
|
|
12
|
+
import { getListTenantsUrl, getReadTenantUrl, getSearchTenantsUrl, getUpdateTenantUrl, listTenants, readTenant, searchTenants, updateTenant } from "./admin-tenants.js";
|
|
13
13
|
import { adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, createGoal, createLevel, createSubject, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateSubjectUrl, getListAllRequestsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getModerateFeedbackUrl, getReadDraftUrl, getReadRequestUrl, getReviewDraftUrl, listAllRequests, listExpiringDocuments, listFeedback, listPractitionerDocuments, listPractitioners, moderateFeedback, readDraft, readRequest, reviewDraft } from "./admin-tutoring.js";
|
|
14
14
|
import { getLikeContentUrl, getListEditorsUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadEditorUrl, getReadLearningPathUrl, getReadPackUrl, getReadRecommendationsUrl, getUnlikeContentUrl, likeContent, listEditors, readCatalog, readCatalogTheme, readContent, readEditor, readLearningPath, readPack, readRecommendations, unlikeContent } from "./biblio-catalogue.js";
|
|
15
15
|
import { getReadHomeFeedUrl, readHomeFeed } from "./biblio-home.js";
|
|
@@ -22,14 +22,16 @@ import { closeLease, getCloseLeaseUrl, getRenewLeaseUrl, renewLease } from "./co
|
|
|
22
22
|
import { createReport, getCreateReportUrl, getListNotificationsUrl, listNotifications } from "./cvs-app.js";
|
|
23
23
|
import { getOpenAtSupplierUrl, getRateDocumentUrl, getReadDocumentUrl, getReadLastPositionUrl, getSearchDocumentsUrl, getSetLastPositionUrl, getWriteReviewUrl, openAtSupplier, rateDocument, readDocument, readLastPosition, searchDocuments, setLastPosition, writeReview } from "./cvs-documents.js";
|
|
24
24
|
import { addCvsFavorite, getAddCvsFavoriteUrl, getListCvsFavoritesUrl, getListSelectionsUrl, getRemoveCvsFavoriteUrl, listCvsFavorites, listSelections, removeCvsFavorite } from "./cvs-favorites.js";
|
|
25
|
+
import { addIlsReview, addIlsTag, cancelIlsHold, changeIlsPassword, getAddIlsReviewUrl, getAddIlsTagUrl, getCancelIlsHoldUrl, getChangeIlsPasswordUrl, getListIlsHoldLocationsUrl, getListIlsHoldsUrl, getListIlsLoansUrl, getListIlsLocationsUrl, getListIlsSuggestionCategoriesUrl, getListIlsSuggestionSourcesUrl, getPlaceIlsHoldUrl, getReadIlsAccountUrl, getReadIlsHoldableUrl, getReadIlsStatusUrl, getRenewIlsLoanUrl, getSignInToIlsUrl, getSignOutOfIlsUrl, listIlsHoldLocations, listIlsHolds, listIlsLoans, listIlsLocations, listIlsSuggestionCategories, listIlsSuggestionSources, placeIlsHold, readIlsAccount, readIlsHoldable, readIlsStatus, renewIlsLoan, signInToIls, signOutOfIls } from "./cvs-ils.js";
|
|
25
26
|
import { borrow, extendLoan, getBorrowUrl, getExtendLoanUrl, getListLoansUrl, getReturnLoanUrl, listLoans, returnLoan } from "./cvs-loans.js";
|
|
26
27
|
import { getListPaymentsUrl, getReadPaymentUrl, getStartPaymentUrl, listPayments, readPayment, startPayment } from "./cvs-payments.js";
|
|
27
28
|
import { getStartSessionUrl, getStreamingDetailsUrl, startSession, streamingDetails } from "./cvs-streaming.js";
|
|
28
29
|
import { addPartnerFavorite, getAddPartnerFavoriteUrl, getListMediaUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getReadMediaUrl, getRemovePartnerFavoriteUrl, listMedia, listPartnerCategories, listPartnerFavorites, readMedia, removePartnerFavorite } from "./partner-catalogue.js";
|
|
29
30
|
import { getListCurrentReadingsUrl, getReadPackageUrl, getReadPositionUrl, getWritePositionUrl, listCurrentReadings, readPackage, readPosition, writePosition } from "./partner-reader.js";
|
|
30
31
|
import { createProfile, deleteProfile, getCreateProfileUrl, getDeleteProfileUrl, getListProfilesUrl, getReadProfileUrl, getUpdateProfileUrl, listProfiles, readProfile, updateProfile } from "./profiles.js";
|
|
32
|
+
import { getSearchEverythingUrl, searchEverything } from "./search.js";
|
|
31
33
|
import { getListGoalsUrl, getListLevelsUrl, getListSubjectsUrl, listGoals, listLevels, listSubjects } from "./tutoring-catalogue.js";
|
|
32
34
|
import { dispatchRequest, getDispatchRequestUrl, getListQueueUrl, getTriageRequestUrl, listQueue, triageRequest } from "./tutoring-dispatch.js";
|
|
33
35
|
import { answerRequest, claimRequest, closeRequest, getAnswerRequestUrl, getClaimRequestUrl, getCloseRequestUrl, getOpenRoomUrl, openRoom } from "./tutoring-practitioner.js";
|
|
34
36
|
import { cancelRequest, deleteAttachment, getCancelRequestUrl, getDeleteAttachmentUrl, getGetRequestUrl, getListMyRequestsUrl, getRateRequestUrl, getRequest, getSubmitRequestUrl, getUploadAttachmentUrl, listMyRequests, rateRequest, submitRequest, uploadAttachment } from "./tutoring-requests.js";
|
|
35
|
-
export { addBiblioFavorite, addCvsFavorite, addPartnerFavorite, adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, amendTheme, answerRequest, authorization, borrow, cancelRequest, claimRequest, closeLease, closeRequest, closeSupportSession, createDemoUser, createGoal, createLevel, createLicense, createProfile, createReport, createSessionFromCode, createSessionFromCredentials, createSubject, createTheme, deleteAccount, deleteAttachment, deleteLicense, deleteProfile, deleteSession, deleteTheme, dispatchRequest, extendLoan, forceCloseLease, getAddBiblioFavoriteUrl, getAddCvsFavoriteUrl, getAddPartnerFavoriteUrl, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getAmendThemeUrl, getAnswerRequestUrl, getAuthorizationUrl, getBorrowUrl, getCancelRequestUrl, getClaimRequestUrl, getCloseLeaseUrl, getCloseRequestUrl, getCloseSupportSessionUrl, getCreateDemoUserUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateLicenseUrl, getCreateProfileUrl, getCreateReportUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getCreateSubjectUrl, getCreateThemeUrl, getDeleteAccountUrl, getDeleteAttachmentUrl, getDeleteLicenseUrl, getDeleteProfileUrl, getDeleteSessionUrl, getDeleteThemeUrl, getDispatchRequestUrl, getExtendLoanUrl, getForceCloseLeaseUrl, getGetRequestUrl, getLikeContentUrl, getListAllRequestsUrl, getListBiblioCategoriesUrl, getListBiblioFavoritesUrl, getListCurrentReadingsUrl, getListCvsFavoritesUrl, getListEditorsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListGoalsUrl, getListGrantsUrl, getListHistoryUrl, getListLevelsUrl, getListLiveLeasesUrl, getListLoansUrl, getListMediaUrl, getListMessagesUrl, getListMyRequestsUrl, getListNotificationsUrl, getListPacksUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getListPatronsUrl, getListPaymentsUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getListPressArticlesUrl, getListProfilesUrl, getListQueueUrl, getListReviewsUrl, getListSelectionsUrl, getListServicesUrl, getListSubjectsUrl, getListTenantsUrl, getListThemesUrl, getMintChatTicketUrl, getModerateFeedbackUrl, getModerateReviewUrl, getOpenAtSupplierUrl, getOpenRoomUrl, getOpenSupportSessionUrl, getRateDocumentUrl, getRateRequestUrl, getReadAccountUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadDocumentUrl, getReadDraftUrl, getReadEditorUrl, getReadHomeFeedUrl, getReadLastPositionUrl, getReadLearningPathUrl, getReadLicenseUrl, getReadMeUrl, getReadMediaUrl, getReadPackUrl, getReadPackageUrl, getReadPatronLicenseUrl, getReadPatronUrl, getReadPaymentUrl, getReadPositionUrl, getReadPreferencesUrl, getReadPressArticleUrl, getReadPressReviewUrl, getReadProfileUrl, getReadRecommendationsUrl, getReadRequestUrl, getReadTenantUrl, getReadThemeUrl, getRecordReadingSessionUrl, getRefreshSessionUrl, getRemoveBiblioFavoriteUrl, getRemoveCvsFavoriteUrl, getRemovePartnerFavoriteUrl, getRenewLeaseUrl, getReorderThemesUrl, getReplaceCategoryPreferencesUrl, getReplaceGrantsUrl, getRequest, getReturnLoanUrl, getReviewDraftUrl, getSearchDocumentsUrl, getSearchUrl, getSendMessageUrl, getSetLastPositionUrl, getStartPaymentUrl, getStartSessionUrl, getStreamingDetailsUrl, getSubmitRequestUrl, getTriageRequestUrl, getUnlikeContentUrl, getUpdateAccountUrl, getUpdatePatronUrl, getUpdateProfileUrl, getUpdateTenantUrl, getUploadAttachmentUrl, getWritePositionUrl, getWriteReviewUrl, likeContent, listAllRequests, listBiblioCategories, listBiblioFavorites, listCurrentReadings, listCvsFavorites, listEditors, listExpiringDocuments, listFeedback, listGoals, listGrants, listHistory, listLevels, listLiveLeases, listLoans, listMedia, listMessages, listMyRequests, listNotifications, listPacks, listPartnerCategories, listPartnerFavorites, listPatrons, listPayments, listPractitionerDocuments, listPractitioners, listPressArticles, listProfiles, listQueue, listReviews, listSelections, listServices, listSubjects, listTenants, listThemes, mintChatTicket, moderateFeedback, moderateReview, openAtSupplier, openRoom, openSupportSession, rateDocument, rateRequest, readAccount, readCatalog, readCatalogTheme, readContent, readDocument, readDraft, readEditor, readHomeFeed, readLastPosition, readLearningPath, readLicense, readMe, readMedia, readPack, readPackage, readPatron, readPatronLicense, readPayment, readPosition, readPreferences, readPressArticle, readPressReview, readProfile, readRecommendations, readRequest, readTenant, readTheme, recordReadingSession, refreshSession, removeBiblioFavorite, removeCvsFavorite, removePartnerFavorite, renewLease, reorderThemes, replaceCategoryPreferences, replaceGrants, returnLoan, reviewDraft, search, searchDocuments, sendMessage, setLastPosition, startPayment, startSession, streamingDetails, submitRequest, triageRequest, unlikeContent, updateAccount, updatePatron, updateProfile, updateTenant, uploadAttachment, writePosition, writeReview };
|
|
37
|
+
export { addBiblioFavorite, addCvsFavorite, addIlsReview, addIlsTag, addPartnerFavorite, adminCloseRequest, amendGoal, amendLevel, amendPractitioner, amendRequest, amendSubject, amendTheme, answerRequest, authorization, borrow, cancelIlsHold, cancelRequest, changeIlsPassword, claimRequest, closeLease, closeRequest, closeSupportSession, createDemoUser, createGoal, createLevel, createLicense, createProfile, createReport, createSessionFromCode, createSessionFromCredentials, createSubject, createTheme, deleteAccount, deleteAttachment, deleteLicense, deleteProfile, deleteSession, deleteTheme, dispatchRequest, extendLoan, forceCloseLease, getAddBiblioFavoriteUrl, getAddCvsFavoriteUrl, getAddIlsReviewUrl, getAddIlsTagUrl, getAddPartnerFavoriteUrl, getAdminCloseRequestUrl, getAmendGoalUrl, getAmendLevelUrl, getAmendPractitionerUrl, getAmendRequestUrl, getAmendSubjectUrl, getAmendThemeUrl, getAnswerRequestUrl, getAuthorizationUrl, getBorrowUrl, getCancelIlsHoldUrl, getCancelRequestUrl, getChangeIlsPasswordUrl, getClaimRequestUrl, getCloseLeaseUrl, getCloseRequestUrl, getCloseSupportSessionUrl, getCreateDemoUserUrl, getCreateGoalUrl, getCreateLevelUrl, getCreateLicenseUrl, getCreateProfileUrl, getCreateReportUrl, getCreateSessionFromCodeUrl, getCreateSessionFromCredentialsUrl, getCreateSubjectUrl, getCreateThemeUrl, getDeleteAccountUrl, getDeleteAttachmentUrl, getDeleteLicenseUrl, getDeleteProfileUrl, getDeleteSessionUrl, getDeleteThemeUrl, getDispatchRequestUrl, getExtendLoanUrl, getForceCloseLeaseUrl, getGetRequestUrl, getLikeContentUrl, getListAllRequestsUrl, getListBiblioCategoriesUrl, getListBiblioFavoritesUrl, getListCurrentReadingsUrl, getListCvsFavoritesUrl, getListEditorsUrl, getListExpiringDocumentsUrl, getListFeedbackUrl, getListGoalsUrl, getListGrantsUrl, getListHistoryUrl, getListIlsHoldLocationsUrl, getListIlsHoldsUrl, getListIlsLoansUrl, getListIlsLocationsUrl, getListIlsSuggestionCategoriesUrl, getListIlsSuggestionSourcesUrl, getListLevelsUrl, getListLiveLeasesUrl, getListLoansUrl, getListMediaUrl, getListMessagesUrl, getListMyRequestsUrl, getListNotificationsUrl, getListPacksUrl, getListPartnerCategoriesUrl, getListPartnerFavoritesUrl, getListPatronsUrl, getListPaymentsUrl, getListPractitionerDocumentsUrl, getListPractitionersUrl, getListPressArticlesUrl, getListProfilesUrl, getListQueueUrl, getListReviewsUrl, getListSelectionsUrl, getListServicesUrl, getListSubjectsUrl, getListTenantsUrl, getListThemesUrl, getMintChatTicketUrl, getModerateFeedbackUrl, getModerateReviewUrl, getOpenAtSupplierUrl, getOpenRoomUrl, getOpenSupportSessionUrl, getPlaceIlsHoldUrl, getRateDocumentUrl, getRateRequestUrl, getReadAccountUrl, getReadCatalogThemeUrl, getReadCatalogUrl, getReadContentUrl, getReadDocumentUrl, getReadDraftUrl, getReadEditorUrl, getReadHomeFeedUrl, getReadIlsAccountUrl, getReadIlsHoldableUrl, getReadIlsStatusUrl, getReadLastPositionUrl, getReadLearningPathUrl, getReadLicenseUrl, getReadMeUrl, getReadMediaUrl, getReadPackUrl, getReadPackageUrl, getReadPatronLicenseUrl, getReadPatronUrl, getReadPaymentUrl, getReadPositionUrl, getReadPreferencesUrl, getReadPressArticleUrl, getReadPressReviewUrl, getReadProfileUrl, getReadRecommendationsUrl, getReadRequestUrl, getReadTenantUrl, getReadThemeUrl, getRecordReadingSessionUrl, getRefreshSessionUrl, getRemoveBiblioFavoriteUrl, getRemoveCvsFavoriteUrl, getRemovePartnerFavoriteUrl, getRenewIlsLoanUrl, getRenewLeaseUrl, getReorderThemesUrl, getReplaceCategoryPreferencesUrl, getReplaceGrantsUrl, getRequest, getReturnLoanUrl, getReviewDraftUrl, getSearchDocumentsUrl, getSearchEverythingUrl, getSearchTenantsUrl, getSearchUrl, getSendMessageUrl, getSetLastPositionUrl, getSignInToIlsUrl, getSignOutOfIlsUrl, getStartPaymentUrl, getStartSessionUrl, getStreamingDetailsUrl, getSubmitRequestUrl, getTriageRequestUrl, getUnlikeContentUrl, getUpdateAccountUrl, getUpdatePatronUrl, getUpdateProfileUrl, getUpdateTenantUrl, getUploadAttachmentUrl, getWritePositionUrl, getWriteReviewUrl, likeContent, listAllRequests, listBiblioCategories, listBiblioFavorites, listCurrentReadings, listCvsFavorites, listEditors, listExpiringDocuments, listFeedback, listGoals, listGrants, listHistory, listIlsHoldLocations, listIlsHolds, listIlsLoans, listIlsLocations, listIlsSuggestionCategories, listIlsSuggestionSources, listLevels, listLiveLeases, listLoans, listMedia, listMessages, listMyRequests, listNotifications, listPacks, listPartnerCategories, listPartnerFavorites, listPatrons, listPayments, listPractitionerDocuments, listPractitioners, listPressArticles, listProfiles, listQueue, listReviews, listSelections, listServices, listSubjects, listTenants, listThemes, mintChatTicket, moderateFeedback, moderateReview, openAtSupplier, openRoom, openSupportSession, placeIlsHold, rateDocument, rateRequest, readAccount, readCatalog, readCatalogTheme, readContent, readDocument, readDraft, readEditor, readHomeFeed, readIlsAccount, readIlsHoldable, readIlsStatus, readLastPosition, readLearningPath, readLicense, readMe, readMedia, readPack, readPackage, readPatron, readPatronLicense, readPayment, readPosition, readPreferences, readPressArticle, readPressReview, readProfile, readRecommendations, readRequest, readTenant, readTheme, recordReadingSession, refreshSession, removeBiblioFavorite, removeCvsFavorite, removePartnerFavorite, renewIlsLoan, renewLease, reorderThemes, replaceCategoryPreferences, replaceGrants, returnLoan, reviewDraft, search, searchDocuments, searchEverything, searchTenants, sendMessage, setLastPosition, signInToIls, signOutOfIls, startPayment, startSession, streamingDetails, submitRequest, triageRequest, unlikeContent, updateAccount, updatePatron, updateProfile, updateTenant, uploadAttachment, writePosition, writeReview };
|