@iblai/data-layer 1.7.6 → 1.9.0
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 +460 -11
- package/dist/index.esm.js +29 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +31 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/user/api-slice.d.ts +426 -1
- package/dist/src/features/user/constants.d.ts +5 -0
- package/dist/src/features/user/types.d.ts +22 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40257,9 +40257,16 @@ const USERS_ENDPOINTS = {
|
|
|
40257
40257
|
service: exports.SERVICES.LMS,
|
|
40258
40258
|
path: (username) => `/api/profile_images/v1/${username}/remove`,
|
|
40259
40259
|
},
|
|
40260
|
+
// Per-user, per-platform metadata (free-form JSON keyed per platform).
|
|
40261
|
+
// `platform_key` is passed as a query param; serves both GET and PATCH.
|
|
40262
|
+
GET_USER_PLATFORM_METADATA: {
|
|
40263
|
+
service: exports.SERVICES.DM,
|
|
40264
|
+
path: () => `/api/core/users/platform-metadata/`,
|
|
40265
|
+
},
|
|
40260
40266
|
};
|
|
40261
40267
|
const USERS_QUERY_KEYS = {
|
|
40262
40268
|
GET_USER_METADATA: () => ['USER_METADATA'],
|
|
40269
|
+
GET_USER_PLATFORM_METADATA: () => ['USER_PLATFORM_METADATA'],
|
|
40263
40270
|
GET_USER_METADATA_EDX: () => ['USER_METADATA_EDX'],
|
|
40264
40271
|
RESET_PASSWORD: () => ['RESET_PASSWORD'],
|
|
40265
40272
|
UPDATE_USER_ROLES: () => ['UPDATE_USER_ROLES'],
|
|
@@ -40276,6 +40283,7 @@ const userApiSlice = react.createApi({
|
|
|
40276
40283
|
tagTypes: [
|
|
40277
40284
|
...USERS_QUERY_KEYS.GET_USER_METADATA(),
|
|
40278
40285
|
...USERS_QUERY_KEYS.GET_USER_METADATA_EDX(),
|
|
40286
|
+
...USERS_QUERY_KEYS.GET_USER_PLATFORM_METADATA(),
|
|
40279
40287
|
featureTags.PLATFORM_USERS,
|
|
40280
40288
|
],
|
|
40281
40289
|
endpoints: (builder) => ({
|
|
@@ -40370,9 +40378,28 @@ const userApiSlice = react.createApi({
|
|
|
40370
40378
|
}),
|
|
40371
40379
|
invalidatesTags: USERS_QUERY_KEYS.GET_USER_METADATA_EDX(),
|
|
40372
40380
|
}),
|
|
40381
|
+
// Per-user, per-platform metadata — a free-form JSON blob keyed by platform.
|
|
40382
|
+
getUserPlatformMetadata: builder.query({
|
|
40383
|
+
query: (args) => ({
|
|
40384
|
+
url: USERS_ENDPOINTS.GET_USER_PLATFORM_METADATA.path(),
|
|
40385
|
+
service: USERS_ENDPOINTS.GET_USER_PLATFORM_METADATA.service,
|
|
40386
|
+
params: { platform_key: args.tenantKey },
|
|
40387
|
+
}),
|
|
40388
|
+
providesTags: USERS_QUERY_KEYS.GET_USER_PLATFORM_METADATA(),
|
|
40389
|
+
}),
|
|
40390
|
+
updateUserPlatformMetadata: builder.mutation({
|
|
40391
|
+
query: (args) => ({
|
|
40392
|
+
url: USERS_ENDPOINTS.GET_USER_PLATFORM_METADATA.path(),
|
|
40393
|
+
service: USERS_ENDPOINTS.GET_USER_PLATFORM_METADATA.service,
|
|
40394
|
+
method: 'PATCH',
|
|
40395
|
+
params: { platform_key: args.tenantKey },
|
|
40396
|
+
body: { metadata: args.metadata },
|
|
40397
|
+
}),
|
|
40398
|
+
invalidatesTags: USERS_QUERY_KEYS.GET_USER_PLATFORM_METADATA(),
|
|
40399
|
+
}),
|
|
40373
40400
|
}),
|
|
40374
40401
|
});
|
|
40375
|
-
const { useGetUserMetadataQuery, useLazyGetUserMetadataQuery, useUpdateUserMetadataMutation, useUpdateUserAccountMutation, useResetPasswordMutation, useUpdateUserRoleMutation, useUploadProfileImageMutation, useRemoveProfileImageMutation, useGetUserMetadataEdxQuery, useLazyGetUserMetadataEdxQuery, useUpdateUserMetadataEdxMutation, } = userApiSlice;
|
|
40402
|
+
const { useGetUserMetadataQuery, useLazyGetUserMetadataQuery, useUpdateUserMetadataMutation, useUpdateUserAccountMutation, useResetPasswordMutation, useUpdateUserRoleMutation, useUploadProfileImageMutation, useRemoveProfileImageMutation, useGetUserMetadataEdxQuery, useLazyGetUserMetadataEdxQuery, useUpdateUserMetadataEdxMutation, useGetUserPlatformMetadataQuery, useLazyGetUserPlatformMetadataQuery, useUpdateUserPlatformMetadataMutation, } = userApiSlice;
|
|
40376
40403
|
|
|
40377
40404
|
const coreApiSlice = react.createApi({
|
|
40378
40405
|
reducerPath: 'coreApiSlice',
|
|
@@ -46065,6 +46092,7 @@ exports.useGetUserMetadataEdxQuery = useGetUserMetadataEdxQuery;
|
|
|
46065
46092
|
exports.useGetUserMetadataQuery = useGetUserMetadataQuery;
|
|
46066
46093
|
exports.useGetUserMetricsPieChartQuery = useGetUserMetricsPieChartQuery;
|
|
46067
46094
|
exports.useGetUserMetricsQuery = useGetUserMetricsQuery;
|
|
46095
|
+
exports.useGetUserPlatformMetadataQuery = useGetUserPlatformMetadataQuery;
|
|
46068
46096
|
exports.useGetUserProjectDetailsQuery = useGetUserProjectDetailsQuery;
|
|
46069
46097
|
exports.useGetUserProjectsQuery = useGetUserProjectsQuery;
|
|
46070
46098
|
exports.useGetUserReportedSkillsQuery = useGetUserReportedSkillsQuery;
|
|
@@ -46235,6 +46263,7 @@ exports.useLazyGetUserInvitationsQuery = useLazyGetUserInvitationsQuery;
|
|
|
46235
46263
|
exports.useLazyGetUserMemorySettingsQuery = useLazyGetUserMemorySettingsQuery;
|
|
46236
46264
|
exports.useLazyGetUserMetadataEdxQuery = useLazyGetUserMetadataEdxQuery;
|
|
46237
46265
|
exports.useLazyGetUserMetadataQuery = useLazyGetUserMetadataQuery;
|
|
46266
|
+
exports.useLazyGetUserPlatformMetadataQuery = useLazyGetUserPlatformMetadataQuery;
|
|
46238
46267
|
exports.useLazyGetUserProjectDetailsQuery = useLazyGetUserProjectDetailsQuery;
|
|
46239
46268
|
exports.useLazyGetUserProjectsQuery = useLazyGetUserProjectsQuery;
|
|
46240
46269
|
exports.useLazyGetUserReportedSkillsQuery = useLazyGetUserReportedSkillsQuery;
|
|
@@ -46349,6 +46378,7 @@ exports.useUpdateUserMemorySettingsMutation = useUpdateUserMemorySettingsMutatio
|
|
|
46349
46378
|
exports.useUpdateUserMetadataEdxMutation = useUpdateUserMetadataEdxMutation;
|
|
46350
46379
|
exports.useUpdateUserMetadataMutation = useUpdateUserMetadataMutation;
|
|
46351
46380
|
exports.useUpdateUserOnboardingStatusMutation = useUpdateUserOnboardingStatusMutation;
|
|
46381
|
+
exports.useUpdateUserPlatformMetadataMutation = useUpdateUserPlatformMetadataMutation;
|
|
46352
46382
|
exports.useUpdateUserProjectMutation = useUpdateUserProjectMutation;
|
|
46353
46383
|
exports.useUpdateUserRoleMutation = useUpdateUserRoleMutation;
|
|
46354
46384
|
exports.useUpdateUserStatusMutation = useUpdateUserStatusMutation;
|