@iblai/data-layer 1.8.9 → 1.9.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/index.d.ts +273 -193
- package/dist/index.esm.js +31 -20
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +31 -20
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -2
- package/dist/src/features/call-configurations/api-slice.d.ts +20 -20
- package/dist/src/features/core/api-slice.d.ts +483 -404
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -2
package/dist/index.esm.js
CHANGED
|
@@ -40421,6 +40421,32 @@ const userApiSlice = createApi({
|
|
|
40421
40421
|
});
|
|
40422
40422
|
const { useGetUserMetadataQuery, useLazyGetUserMetadataQuery, useUpdateUserMetadataMutation, useUpdateUserAccountMutation, useResetPasswordMutation, useUpdateUserRoleMutation, useUploadProfileImageMutation, useRemoveProfileImageMutation, useGetUserMetadataEdxQuery, useLazyGetUserMetadataEdxQuery, useUpdateUserMetadataEdxMutation, useGetUserPlatformMetadataQuery, useLazyGetUserPlatformMetadataQuery, useUpdateUserPlatformMetadataMutation, } = userApiSlice;
|
|
40423
40423
|
|
|
40424
|
+
/**
|
|
40425
|
+
* Shared fetch for the paginated LTI provider list endpoints. Sends
|
|
40426
|
+
* `platform_key`, optional `mentor_id` (Agent Links), and `page` / `page_size`.
|
|
40427
|
+
*/
|
|
40428
|
+
async function fetchLtiList(path, args) {
|
|
40429
|
+
const queryParams = new URLSearchParams({ platform_key: args.platformKey });
|
|
40430
|
+
if (args.mentorId)
|
|
40431
|
+
queryParams.set('mentor_id', args.mentorId);
|
|
40432
|
+
if (args.page !== undefined)
|
|
40433
|
+
queryParams.set('page', String(args.page));
|
|
40434
|
+
if (args.pageSize !== undefined)
|
|
40435
|
+
queryParams.set('page_size', String(args.pageSize));
|
|
40436
|
+
const url = `${OpenAPI.BASE}/api/core/lti/1p3/provider/${path}/?${queryParams.toString()}`;
|
|
40437
|
+
const response = await fetch(url, {
|
|
40438
|
+
method: 'GET',
|
|
40439
|
+
headers: OpenAPI.HEADERS,
|
|
40440
|
+
credentials: 'omit',
|
|
40441
|
+
});
|
|
40442
|
+
if (!response.ok) {
|
|
40443
|
+
throw Object.assign(new Error(`Failed to fetch ${path}`), {
|
|
40444
|
+
status: response.status,
|
|
40445
|
+
body: await response.text(),
|
|
40446
|
+
});
|
|
40447
|
+
}
|
|
40448
|
+
return response.json();
|
|
40449
|
+
}
|
|
40424
40450
|
const coreApiSlice = createApi({
|
|
40425
40451
|
reducerPath: 'coreApiSlice',
|
|
40426
40452
|
baseQuery: iblFakeBaseQuery,
|
|
@@ -40720,7 +40746,7 @@ const coreApiSlice = createApi({
|
|
|
40720
40746
|
}),
|
|
40721
40747
|
// ── LTI 1.3 Provider: Keys (platform-wide RSA signing keys) ──
|
|
40722
40748
|
getLtiKeys: builder.query({
|
|
40723
|
-
...
|
|
40749
|
+
...buildEndpointFromService(SERVICES.DM, (args) => fetchLtiList('lti-keys', args)),
|
|
40724
40750
|
providesTags: ['LtiKeys'],
|
|
40725
40751
|
}),
|
|
40726
40752
|
getLtiKeyDetail: builder.query({
|
|
@@ -40749,24 +40775,7 @@ const coreApiSlice = createApi({
|
|
|
40749
40775
|
// The generated CoreService.coreLti1P3ProviderLtiMentorsList only sends
|
|
40750
40776
|
// platform_key.
|
|
40751
40777
|
getLtiMentors: builder.query({
|
|
40752
|
-
...buildEndpointFromService(SERVICES.DM,
|
|
40753
|
-
const queryParams = new URLSearchParams({ platform_key: args.platformKey });
|
|
40754
|
-
if (args.mentorId)
|
|
40755
|
-
queryParams.set('mentor_id', args.mentorId);
|
|
40756
|
-
const url = `${OpenAPI.BASE}/api/core/lti/1p3/provider/lti-mentors/?${queryParams.toString()}`;
|
|
40757
|
-
const response = await fetch(url, {
|
|
40758
|
-
method: 'GET',
|
|
40759
|
-
headers: OpenAPI.HEADERS,
|
|
40760
|
-
credentials: 'omit',
|
|
40761
|
-
});
|
|
40762
|
-
if (!response.ok) {
|
|
40763
|
-
throw Object.assign(new Error('Failed to fetch LTI mentors'), {
|
|
40764
|
-
status: response.status,
|
|
40765
|
-
body: await response.text(),
|
|
40766
|
-
});
|
|
40767
|
-
}
|
|
40768
|
-
return response.json();
|
|
40769
|
-
}),
|
|
40778
|
+
...buildEndpointFromService(SERVICES.DM, (args) => fetchLtiList('lti-mentors', args)),
|
|
40770
40779
|
providesTags: ['LtiMentors'],
|
|
40771
40780
|
}),
|
|
40772
40781
|
getLtiMentorDetail: builder.query({
|
|
@@ -40789,7 +40798,7 @@ const coreApiSlice = createApi({
|
|
|
40789
40798
|
}),
|
|
40790
40799
|
// ── LTI 1.3 Provider: Tools (platform-wide LTI Platform integrations) ──
|
|
40791
40800
|
getLtiTools: builder.query({
|
|
40792
|
-
...
|
|
40801
|
+
...buildEndpointFromService(SERVICES.DM, (args) => fetchLtiList('lti-tools', args)),
|
|
40793
40802
|
providesTags: ['LtiTools'],
|
|
40794
40803
|
}),
|
|
40795
40804
|
getLtiToolDetail: builder.query({
|
|
@@ -45733,6 +45742,7 @@ const mentorReducer = {
|
|
|
45733
45742
|
[clawApiSlice.reducerPath]: clawApiSlice.reducer,
|
|
45734
45743
|
[watchedGroupsApiSlice.reducerPath]: watchedGroupsApiSlice.reducer,
|
|
45735
45744
|
[chatPrivacyApiSlice.reducerPath]: chatPrivacyApiSlice.reducer,
|
|
45745
|
+
[skillsApiSlice.reducerPath]: skillsApiSlice.reducer,
|
|
45736
45746
|
};
|
|
45737
45747
|
const mentorMiddleware = [
|
|
45738
45748
|
mentorApiSlice.middleware,
|
|
@@ -45788,6 +45798,7 @@ const mentorMiddleware = [
|
|
|
45788
45798
|
clawApiSlice.middleware,
|
|
45789
45799
|
watchedGroupsApiSlice.middleware,
|
|
45790
45800
|
chatPrivacyApiSlice.middleware,
|
|
45801
|
+
skillsApiSlice.middleware,
|
|
45791
45802
|
];
|
|
45792
45803
|
|
|
45793
45804
|
const skillsReducer = {
|