@iblai/data-layer 1.2.8 → 1.3.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.js CHANGED
@@ -39182,6 +39182,7 @@ const buildEndpointFromService = (service, serviceFn) => {
39182
39182
  return { data };
39183
39183
  }
39184
39184
  catch (err) {
39185
+ console.error('[data-layer] API error:', JSON.stringify(err, Object.getOwnPropertyNames(err)));
39185
39186
  if (Object.prototype.hasOwnProperty.call(Config.httpErrorHandlers, err === null || err === void 0 ? void 0 : err.status)) {
39186
39187
  Config.httpErrorHandlers[err === null || err === void 0 ? void 0 : err.status]({ ...((err === null || err === void 0 ? void 0 : err.data) || {}) });
39187
39188
  }
@@ -39252,7 +39253,7 @@ const invokeHttpErrorHandler = (status, error) => {
39252
39253
  }
39253
39254
  };
39254
39255
  /** HTTP status codes that should not be retried (e.g., 402 Payment Required). */
39255
- const NON_RETRYABLE_STATUS_CODES = [402];
39256
+ const NON_RETRYABLE_STATUS_CODES = [402, 401];
39256
39257
  /**
39257
39258
  * Wraps a base query to skip retries for non-retryable HTTP status codes.
39258
39259
  * Uses `retry.fail()` to immediately bail out of the retry loop.
@@ -39307,7 +39308,6 @@ const iblFetchBaseQuery = async (args, api, extraOptions) => {
39307
39308
  error: e,
39308
39309
  }));
39309
39310
  // Extract status from error and invoke HTTP error handlers
39310
- console.log('[MONETIZATION e]', { e });
39311
39311
  const err = e;
39312
39312
  const errorStatus = typeof e === 'object' && e !== null && 'status' in e
39313
39313
  ? e.status
@@ -40319,10 +40319,10 @@ const coreApiSlice = react.createApi({
40319
40319
  credentials: 'omit',
40320
40320
  });
40321
40321
  if (!response.ok) {
40322
- const error = new Error('Failed to fetch RBAC group details');
40323
- error.status = response.status;
40324
- error.body = await response.text();
40325
- throw error;
40322
+ throw Object.assign(new Error('Failed to fetch RBAC group details'), {
40323
+ status: response.status,
40324
+ body: await response.text(),
40325
+ });
40326
40326
  }
40327
40327
  return response.json();
40328
40328
  }),
@@ -40356,10 +40356,10 @@ const coreApiSlice = react.createApi({
40356
40356
  credentials: 'omit',
40357
40357
  });
40358
40358
  if (!response.ok) {
40359
- const error = new Error('Failed to fetch RBAC policy details');
40360
- error.status = response.status;
40361
- error.body = await response.text();
40362
- throw error;
40359
+ throw Object.assign(new Error('Failed to fetch RBAC policy details'), {
40360
+ status: response.status,
40361
+ body: await response.text(),
40362
+ });
40363
40363
  }
40364
40364
  return response.json();
40365
40365
  }),
@@ -40397,15 +40397,33 @@ const coreApiSlice = react.createApi({
40397
40397
  credentials: 'omit',
40398
40398
  });
40399
40399
  if (!response.ok) {
40400
- const error = new Error('Failed to fetch RBAC role details');
40401
- error.status = response.status;
40402
- error.body = await response.text();
40403
- throw error;
40400
+ throw Object.assign(new Error('Failed to fetch RBAC role details'), {
40401
+ status: response.status,
40402
+ body: await response.text(),
40403
+ });
40404
40404
  }
40405
40405
  return response.json();
40406
40406
  }),
40407
40407
  providesTags: ['RbacRoles'],
40408
40408
  }),
40409
+ getDepartmentMemberCheck: builder.query({
40410
+ ...buildEndpointFromService(exports.SERVICES.DM, async (args) => {
40411
+ const queryParams = new URLSearchParams({ platform_key: args.platform_key });
40412
+ const url = `${OpenAPI.BASE}/api/core/departments/members/check/?${queryParams.toString()}`;
40413
+ const response = await fetch(url, {
40414
+ method: 'GET',
40415
+ headers: OpenAPI.HEADERS,
40416
+ credentials: 'omit',
40417
+ });
40418
+ if (!response.ok) {
40419
+ throw Object.assign(new Error('Failed to fetch department member check'), {
40420
+ status: response.status,
40421
+ body: await response.text(),
40422
+ });
40423
+ }
40424
+ return response.json();
40425
+ }),
40426
+ }),
40409
40427
  getRbacMentorAccessList: builder.query({
40410
40428
  ...buildEndpointFromDmService(CoreService.coreRbacMentorAccessList),
40411
40429
  }),
@@ -40422,7 +40440,7 @@ const coreApiSlice = react.createApi({
40422
40440
  }),
40423
40441
  }),
40424
40442
  });
40425
- const { useCreateRedirectTokenMutation, useGetPlatformInfoQuery, useGetRbacPermissionsMutation, useLazyGetPlatformInfoQuery, useUpdatePlatformInfoMutation, useUpdateUserStatusMutation, useGetStudentMentorCreationStatusQuery, useSetStudentMentorCreationStatusMutation, useGetRbacGroupsQuery, useCreateRbacGroupMutation, useUpdateRbacGroupMutation, useDeleteRbacGroupMutation, useGetRbacGroupDetailsQuery, useGetRbacPoliciesQuery, useCreateRbacPolicyMutation, useUpdateRbacPolicyMutation, useDeleteRbacPolicyMutation, useGetRbacPolicyDetailsQuery, useGetRbacRolesQuery, useLazyGetRbacRolesQuery, useCreateRbacRoleMutation, useUpdateRbacRoleMutation, usePartialUpdateRbacRoleMutation, useDeleteRbacRoleMutation, useGetRbacRoleDetailsQuery, useGetRbacMentorAccessListQuery, useUpdateRbacMentorAccessMutation, useGetRbacTeamsAccessListQuery, useLazyGetRbacTeamsAccessListQuery, useCreateRbacTeamsAccessMutation, } = coreApiSlice;
40443
+ const { useCreateRedirectTokenMutation, useGetPlatformInfoQuery, useGetRbacPermissionsMutation, useLazyGetPlatformInfoQuery, useUpdatePlatformInfoMutation, useUpdateUserStatusMutation, useGetStudentMentorCreationStatusQuery, useSetStudentMentorCreationStatusMutation, useGetRbacGroupsQuery, useCreateRbacGroupMutation, useUpdateRbacGroupMutation, useDeleteRbacGroupMutation, useGetRbacGroupDetailsQuery, useGetRbacPoliciesQuery, useCreateRbacPolicyMutation, useUpdateRbacPolicyMutation, useDeleteRbacPolicyMutation, useGetRbacPolicyDetailsQuery, useGetRbacRolesQuery, useLazyGetRbacRolesQuery, useCreateRbacRoleMutation, useUpdateRbacRoleMutation, usePartialUpdateRbacRoleMutation, useDeleteRbacRoleMutation, useGetRbacRoleDetailsQuery, useGetDepartmentMemberCheckQuery, useLazyGetDepartmentMemberCheckQuery, useGetRbacMentorAccessListQuery, useUpdateRbacMentorAccessMutation, useGetRbacTeamsAccessListQuery, useLazyGetRbacTeamsAccessListQuery, useCreateRbacTeamsAccessMutation, } = coreApiSlice;
40426
40444
 
40427
40445
  const LOGO_ENDPOINTS = {
40428
40446
  light_logo: (platformKey) => getServiceUrl(exports.SERVICES.AXD) + `/api/core/orgs/${platformKey}/logo`,
@@ -41718,6 +41736,7 @@ const catalogApiSlice = react.createApi({
41718
41736
  'catalog-roles',
41719
41737
  'catalog-invitations-course',
41720
41738
  'catalog-invitations-program',
41739
+ 'user-assigned-programs',
41721
41740
  ],
41722
41741
  endpoints: (builder) => ({
41723
41742
  getUserReportedSkills: builder.query({
@@ -41825,18 +41844,59 @@ const catalogApiSlice = react.createApi({
41825
41844
  credentials: 'omit',
41826
41845
  });
41827
41846
  if (!response.ok) {
41828
- const error = new Error('Failed to fetch program invitations');
41829
- error.status = response.status;
41830
- error.body = await response.text();
41831
- throw error;
41847
+ throw Object.assign(new Error('Failed to fetch program invitations'), {
41848
+ status: response.status,
41849
+ body: await response.text(),
41850
+ });
41832
41851
  }
41833
41852
  return response.json();
41834
41853
  }),
41835
41854
  providesTags: ['catalog-invitations-program'],
41836
41855
  }),
41856
+ getUserCatalogPathways: builder.query({
41857
+ ...buildEndpointFromService(exports.SERVICES.DM, async (args) => {
41858
+ const params = new URLSearchParams({
41859
+ username: args.username,
41860
+ platform_key: args.platform_key,
41861
+ });
41862
+ const url = `${OpenAPI.BASE}/api/catalog/pathways/?${params.toString()}`;
41863
+ const response = await fetch(url, {
41864
+ method: 'GET',
41865
+ headers: OpenAPI.HEADERS,
41866
+ credentials: 'omit',
41867
+ });
41868
+ if (!response.ok) {
41869
+ throw Object.assign(new Error('Failed to fetch user catalog pathways'), {
41870
+ status: response.status,
41871
+ body: await response.text(),
41872
+ });
41873
+ }
41874
+ return response.json();
41875
+ }),
41876
+ providesTags: ['user-catalog-pathways'],
41877
+ }),
41878
+ getAssignedPrograms: builder.query({
41879
+ ...buildEndpointFromService(exports.SERVICES.DM, async (args) => {
41880
+ const params = new URLSearchParams({ user_id: String(args.user_id) });
41881
+ const url = `${OpenAPI.BASE}/api/catalog/suggestions/program/user/?${params.toString()}`;
41882
+ const response = await fetch(url, {
41883
+ method: 'GET',
41884
+ headers: OpenAPI.HEADERS,
41885
+ credentials: 'omit',
41886
+ });
41887
+ if (!response.ok) {
41888
+ throw Object.assign(new Error('Failed to fetch assigned programs'), {
41889
+ status: response.status,
41890
+ body: await response.text(),
41891
+ });
41892
+ }
41893
+ return response.json();
41894
+ }),
41895
+ providesTags: ['user-assigned-programs'],
41896
+ }),
41837
41897
  }),
41838
41898
  });
41839
- const { useGetUserReportedSkillsQuery, useLazyGetUserReportedSkillsQuery, useGetUserSkillsPointsQuery, useLazyGetUserSkillsPointsQuery, useGetUserDesiredSkillsQuery, useLazyGetUserDesiredSkillsQuery, useCreateOrUpdateUserReportedSkillMutation, useCreateOrUpdateUserDesiredSkillMutation, useGetUserAssignedPathwaysQuery, useGetUserEnrolledPathwaysQuery, useLazyGetUserAssignedPathwaysQuery, useLazyGetUserEnrolledPathwaysQuery, useGetUserEnrolledProgramsQuery, useLazyGetUserEnrolledProgramsQuery, useGetEnrollmentCourseSearchQuery, useLazyGetEnrollmentCourseSearchQuery, useCreateCatalogPathwayMutation, useCreateCatalogRoleMutation, useGetResourceSearchQuery, useLazyGetResourceSearchQuery, useGetPathwayCompletionQuery, useGetProgramCompletionQuery, useLazyGetPathwayCompletionQuery, useLazyGetProgramCompletionQuery, useCreateCatalogPathwayEnrollmentMutation, useCreateCatalogPathwaySelfEnrollmentMutation, useCreateCatalogProgramSelfEnrollmentMutation, useGetPathwayListQuery, useLazyGetPathwayListQuery, useGetProgramListQuery, useLazyGetProgramListQuery, useCreateCatalogInvitationBulkMutation, useCreateCatalogInvitationProgramMutation, useCreateCatalogInvitationCourseMutation, useGetCatalogInvitationsCourseQuery, useLazyGetCatalogInvitationsCourseQuery, useGetCatalogInvitationsProgramQuery, useLazyGetCatalogInvitationsProgramQuery, useCreateCatalogInvitationCourseBulkMutation, useCreateCatalogInvitationProgramBulkMutation, useCreateCatalogProgramMutation, } = catalogApiSlice;
41899
+ const { useGetUserReportedSkillsQuery, useLazyGetUserReportedSkillsQuery, useGetUserSkillsPointsQuery, useLazyGetUserSkillsPointsQuery, useGetUserDesiredSkillsQuery, useLazyGetUserDesiredSkillsQuery, useCreateOrUpdateUserReportedSkillMutation, useCreateOrUpdateUserDesiredSkillMutation, useGetUserAssignedPathwaysQuery, useGetUserEnrolledPathwaysQuery, useLazyGetUserAssignedPathwaysQuery, useLazyGetUserEnrolledPathwaysQuery, useGetUserEnrolledProgramsQuery, useLazyGetUserEnrolledProgramsQuery, useGetEnrollmentCourseSearchQuery, useLazyGetEnrollmentCourseSearchQuery, useCreateCatalogPathwayMutation, useCreateCatalogRoleMutation, useGetResourceSearchQuery, useLazyGetResourceSearchQuery, useGetPathwayCompletionQuery, useGetProgramCompletionQuery, useLazyGetPathwayCompletionQuery, useLazyGetProgramCompletionQuery, useCreateCatalogPathwayEnrollmentMutation, useCreateCatalogPathwaySelfEnrollmentMutation, useCreateCatalogProgramSelfEnrollmentMutation, useGetPathwayListQuery, useLazyGetPathwayListQuery, useGetProgramListQuery, useLazyGetProgramListQuery, useCreateCatalogInvitationBulkMutation, useCreateCatalogInvitationProgramMutation, useCreateCatalogInvitationCourseMutation, useGetCatalogInvitationsCourseQuery, useLazyGetCatalogInvitationsCourseQuery, useGetCatalogInvitationsProgramQuery, useLazyGetCatalogInvitationsProgramQuery, useCreateCatalogInvitationCourseBulkMutation, useCreateCatalogInvitationProgramBulkMutation, useCreateCatalogProgramMutation, useGetUserCatalogPathwaysQuery, useLazyGetUserCatalogPathwaysQuery, useGetAssignedProgramsQuery, useLazyGetAssignedProgramsQuery, } = catalogApiSlice;
41840
41900
 
41841
41901
  const perLearnerApiSlice = react.createApi({
41842
41902
  // TODO: replace to catalogSlice
@@ -41857,6 +41917,117 @@ const perLearnerApiSlice = react.createApi({
41857
41917
  });
41858
41918
  const { useGetPerLearnerActivityQuery, useLazyGetPerLearnerActivityQuery, useGetPerLearnerInfoQuery, useLazyGetPerLearnerInfoQuery, useGetOverTimeActivityQuery, useLazyGetOverTimeActivityQuery, } = perLearnerApiSlice;
41859
41919
 
41920
+ const coursesApiSlice = react.createApi({
41921
+ reducerPath: 'coursesApiSlice',
41922
+ baseQuery: iblFetchBaseQuery,
41923
+ tagTypes: ['user-enrolled-courses', 'user-assigned-courses'],
41924
+ endpoints: (builder) => ({
41925
+ getUserEnrolledCourses: builder.query({
41926
+ query: ({ username, query }) => {
41927
+ const params = new URLSearchParams();
41928
+ params.set('username', username);
41929
+ if (query) {
41930
+ for (const [k, v] of Object.entries(query)) {
41931
+ if (v !== undefined && v !== null)
41932
+ params.set(k, String(v));
41933
+ }
41934
+ }
41935
+ return {
41936
+ url: `/api/catalog/enrollment/courses/search/?${params.toString()}`,
41937
+ service: exports.SERVICES.DM,
41938
+ method: 'GET',
41939
+ };
41940
+ },
41941
+ providesTags: ['user-enrolled-courses'],
41942
+ }),
41943
+ getUserAssignedCourses: builder.query({
41944
+ query: ({ user_id, query }) => {
41945
+ const params = new URLSearchParams();
41946
+ params.set('user_id', String(user_id));
41947
+ if (query) {
41948
+ for (const [k, v] of Object.entries(query)) {
41949
+ if (v !== undefined && v !== null)
41950
+ params.set(k, String(v));
41951
+ }
41952
+ }
41953
+ return {
41954
+ url: `/api/catalog/suggestions/course/user/?${params.toString()}`,
41955
+ service: exports.SERVICES.DM,
41956
+ method: 'GET',
41957
+ };
41958
+ },
41959
+ providesTags: ['user-assigned-courses'],
41960
+ }),
41961
+ }),
41962
+ });
41963
+ const { useGetUserEnrolledCoursesQuery, useLazyGetUserEnrolledCoursesQuery, useGetUserAssignedCoursesQuery, useLazyGetUserAssignedCoursesQuery, } = coursesApiSlice;
41964
+
41965
+ const courseMetadataApiSlice = react.createApi({
41966
+ reducerPath: 'courseMetadataApiSlice',
41967
+ baseQuery: iblFetchBaseQuery,
41968
+ endpoints: (builder) => ({
41969
+ getCourseMetaData: builder.query({
41970
+ query: ({ courseKey }) => ({
41971
+ url: `/api/ibl/v1/course_metadata?course_key=${encodeURIComponent(courseKey)}`,
41972
+ service: exports.SERVICES.LMS,
41973
+ method: 'GET',
41974
+ }),
41975
+ }),
41976
+ getCourseCompletionOutlines: builder.query({
41977
+ query: ({ courseKey }) => ({
41978
+ url: `/api/ibl/completion/course_outline/${courseKey}?course_id=${encodeURIComponent(courseKey)}`,
41979
+ service: exports.SERVICES.LMS,
41980
+ method: 'GET',
41981
+ }),
41982
+ }),
41983
+ getCourseEligibility: builder.query({
41984
+ query: ({ courseKey }) => ({
41985
+ url: `/api/ibl/enrollment/enroll_status?course_id=${encodeURIComponent(courseKey)}`,
41986
+ service: exports.SERVICES.LMS,
41987
+ method: 'GET',
41988
+ }),
41989
+ }),
41990
+ createCourseEnrollment: builder.mutation({
41991
+ query: (body) => ({
41992
+ url: `/api/enrollment/v1/enrollment`,
41993
+ service: exports.SERVICES.LMS,
41994
+ method: 'POST',
41995
+ body,
41996
+ }),
41997
+ }),
41998
+ getCourseProgress: builder.query({
41999
+ query: ({ courseKey }) => ({
42000
+ url: `/api/course_home/progress/${courseKey}`,
42001
+ service: exports.SERVICES.LMS,
42002
+ method: 'GET',
42003
+ }),
42004
+ }),
42005
+ getCourseCompletion: builder.query({
42006
+ query: ({ courseKey, userID }) => ({
42007
+ url: `/api/catalog/milestones/completions/course/manage/?course_id=${courseKey}&user_id=${userID}`,
42008
+ service: exports.SERVICES.DM,
42009
+ method: 'GET',
42010
+ }),
42011
+ }),
42012
+ }),
42013
+ });
42014
+ const { useGetCourseMetaDataQuery, useLazyGetCourseMetaDataQuery, useGetCourseCompletionOutlinesQuery, useLazyGetCourseCompletionOutlinesQuery, useGetCourseEligibilityQuery, useLazyGetCourseEligibilityQuery, useCreateCourseEnrollmentMutation, useGetCourseProgressQuery, useLazyGetCourseProgressQuery, useGetCourseCompletionQuery, useLazyGetCourseCompletionQuery, } = courseMetadataApiSlice;
42015
+
42016
+ const edxSsoApiSlice = react.createApi({
42017
+ reducerPath: 'edxSsoApiSlice',
42018
+ baseQuery: iblFetchBaseQuery,
42019
+ endpoints: (builder) => ({
42020
+ getEdxSSOToken: builder.query({
42021
+ query: ({ username, redirectUrl }) => ({
42022
+ url: `/ibl/ai/sso/backend/edx/sso-auth-token/generate?username=${encodeURIComponent(username)}&redirect_url=${encodeURIComponent(redirectUrl)}`,
42023
+ service: exports.SERVICES.LMS,
42024
+ method: 'GET',
42025
+ }),
42026
+ }),
42027
+ }),
42028
+ });
42029
+ const { useGetEdxSSOTokenQuery, useLazyGetEdxSSOTokenQuery } = edxSsoApiSlice;
42030
+
41860
42031
  const searchApiSlice = react.createApi({
41861
42032
  reducerPath: 'searchApiSlice',
41862
42033
  baseQuery: iblFakeBaseQuery,
@@ -43813,6 +43984,9 @@ const mentorReducer = {
43813
43984
  [analyticsCustomSlice.reducerPath]: analyticsCustomSlice.reducer,
43814
43985
  [retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
43815
43986
  [monetizationApiSlice.reducerPath]: monetizationApiSlice.reducer,
43987
+ [coursesApiSlice.reducerPath]: coursesApiSlice.reducer,
43988
+ [courseMetadataApiSlice.reducerPath]: courseMetadataApiSlice.reducer,
43989
+ [edxSsoApiSlice.reducerPath]: edxSsoApiSlice.reducer,
43816
43990
  };
43817
43991
  const mentorMiddleware = [
43818
43992
  mentorApiSlice.middleware,
@@ -43859,6 +44033,9 @@ const mentorMiddleware = [
43859
44033
  analyticsCustomSlice.middleware,
43860
44034
  retirementApiSlice.middleware,
43861
44035
  monetizationApiSlice.middleware,
44036
+ coursesApiSlice.middleware,
44037
+ courseMetadataApiSlice.middleware,
44038
+ edxSsoApiSlice.middleware,
43862
44039
  ];
43863
44040
 
43864
44041
  const skillsReducer = {
@@ -43896,6 +44073,9 @@ const skillsReducer = {
43896
44073
  [retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
43897
44074
  [monetizationApiSlice.reducerPath]: monetizationApiSlice.reducer,
43898
44075
  [memoryApiSlice.reducerPath]: memoryApiSlice.reducer,
44076
+ [coursesApiSlice.reducerPath]: coursesApiSlice.reducer,
44077
+ [courseMetadataApiSlice.reducerPath]: courseMetadataApiSlice.reducer,
44078
+ [edxSsoApiSlice.reducerPath]: edxSsoApiSlice.reducer,
43899
44079
  };
43900
44080
  const skillsMiddleware = [
43901
44081
  perLearnerApiSlice.middleware,
@@ -43932,6 +44112,9 @@ const skillsMiddleware = [
43932
44112
  retirementApiSlice.middleware,
43933
44113
  monetizationApiSlice.middleware,
43934
44114
  memoryApiSlice.middleware,
44115
+ coursesApiSlice.middleware,
44116
+ courseMetadataApiSlice.middleware,
44117
+ edxSsoApiSlice.middleware,
43935
44118
  ];
43936
44119
 
43937
44120
  const initializeDataLayer = (dmUrl, lmsUrl, legacyLmsUrl, storageService, httpErrorHandler = {}) => {
@@ -44011,6 +44194,8 @@ exports.chatHistoryApiSlice = chatHistoryApiSlice;
44011
44194
  exports.coreApiSlice = coreApiSlice;
44012
44195
  exports.coreCustomApiSlice = coreCustomApiSlice;
44013
44196
  exports.coreFakeCustomPublicImageAssetApiSlice = coreFakeCustomPublicImageAssetApiSlice;
44197
+ exports.courseMetadataApiSlice = courseMetadataApiSlice;
44198
+ exports.coursesApiSlice = coursesApiSlice;
44014
44199
  exports.credentialsApiSlice = credentialsApiSlice;
44015
44200
  exports.credentialsCustomApiSlice = credentialsCustomApiSlice;
44016
44201
  exports.customAiSearchApiSlice = customAiSearchApiSlice;
@@ -44018,6 +44203,7 @@ exports.customDomainApiSlice = customDomainApiSlice;
44018
44203
  exports.datasetsApiSlice = datasetsApiSlice;
44019
44204
  exports.disclaimersApiSlice = disclaimersApiSlice;
44020
44205
  exports.edxProctoringApiSlice = edxProctoringApiSlice;
44206
+ exports.edxSsoApiSlice = edxSsoApiSlice;
44021
44207
  exports.fakeBaseQueryWithLogging = fakeBaseQueryWithLogging;
44022
44208
  exports.featureTags = featureTags;
44023
44209
  exports.iblFakeBaseQuery = iblFakeBaseQuery;
@@ -44081,6 +44267,7 @@ exports.useCreateCatalogProgramMutation = useCreateCatalogProgramMutation;
44081
44267
  exports.useCreateCatalogProgramSelfEnrollmentMutation = useCreateCatalogProgramSelfEnrollmentMutation;
44082
44268
  exports.useCreateCatalogRoleMutation = useCreateCatalogRoleMutation;
44083
44269
  exports.useCreateCheckoutMutation = useCreateCheckoutMutation;
44270
+ exports.useCreateCourseEnrollmentMutation = useCreateCourseEnrollmentMutation;
44084
44271
  exports.useCreateCredentialAssertionMutation = useCreateCredentialAssertionMutation;
44085
44272
  exports.useCreateCredentialMutation = useCreateCredentialMutation;
44086
44273
  exports.useCreateCustomDomainMutation = useCreateCustomDomainMutation;
@@ -44174,6 +44361,7 @@ exports.useGetApiKeysQuery = useGetApiKeysQuery;
44174
44361
  exports.useGetAppTokensMutation = useGetAppTokensMutation;
44175
44362
  exports.useGetArtifactQuery = useGetArtifactQuery;
44176
44363
  exports.useGetArtifactVersionQuery = useGetArtifactVersionQuery;
44364
+ exports.useGetAssignedProgramsQuery = useGetAssignedProgramsQuery;
44177
44365
  exports.useGetAverageMessagesPerSessionQuery = useGetAverageMessagesPerSessionQuery;
44178
44366
  exports.useGetAverageRatingQuery = useGetAverageRatingQuery;
44179
44367
  exports.useGetCatalogInvitationsCourseQuery = useGetCatalogInvitationsCourseQuery;
@@ -44189,16 +44377,23 @@ exports.useGetContentAnalyticsDetailsQuery = useGetContentAnalyticsDetailsQuery;
44189
44377
  exports.useGetContentAnalyticsQuery = useGetContentAnalyticsQuery;
44190
44378
  exports.useGetConversationMemoriesQuery = useGetConversationMemoriesQuery;
44191
44379
  exports.useGetConversationQuery = useGetConversationQuery;
44380
+ exports.useGetCourseCompletionOutlinesQuery = useGetCourseCompletionOutlinesQuery;
44381
+ exports.useGetCourseCompletionQuery = useGetCourseCompletionQuery;
44382
+ exports.useGetCourseEligibilityQuery = useGetCourseEligibilityQuery;
44383
+ exports.useGetCourseMetaDataQuery = useGetCourseMetaDataQuery;
44384
+ exports.useGetCourseProgressQuery = useGetCourseProgressQuery;
44192
44385
  exports.useGetCredentialsListQuery = useGetCredentialsListQuery;
44193
44386
  exports.useGetCredentialsQuery = useGetCredentialsQuery;
44194
44387
  exports.useGetCredentialsSchemaQuery = useGetCredentialsSchemaQuery;
44195
44388
  exports.useGetCustomDomainsQuery = useGetCustomDomainsQuery;
44196
44389
  exports.useGetCustomMentorsQuery = useGetCustomMentorsQuery;
44197
44390
  exports.useGetDatasetsQuery = useGetDatasetsQuery;
44391
+ exports.useGetDepartmentMemberCheckQuery = useGetDepartmentMemberCheckQuery;
44198
44392
  exports.useGetDesiredSkillsQuery = useGetDesiredSkillsQuery;
44199
44393
  exports.useGetDetailedFinancialStatsQuery = useGetDetailedFinancialStatsQuery;
44200
44394
  exports.useGetDisclaimersQuery = useGetDisclaimersQuery;
44201
44395
  exports.useGetDownloadReportFromURLQuery = useGetDownloadReportFromURLQuery;
44396
+ exports.useGetEdxSSOTokenQuery = useGetEdxSSOTokenQuery;
44202
44397
  exports.useGetEnrollmentCourseSearchQuery = useGetEnrollmentCourseSearchQuery;
44203
44398
  exports.useGetExamInfoQuery = useGetExamInfoQuery;
44204
44399
  exports.useGetExternalMappingQuery = useGetExternalMappingQuery;
@@ -44308,7 +44503,9 @@ exports.useGetTranscriptsConversationHeadlineQuery = useGetTranscriptsConversati
44308
44503
  exports.useGetTranscriptsMessagesDetailsQuery = useGetTranscriptsMessagesDetailsQuery;
44309
44504
  exports.useGetTranscriptsMessagesQuery = useGetTranscriptsMessagesQuery;
44310
44505
  exports.useGetUserAppsQuery = useGetUserAppsQuery;
44506
+ exports.useGetUserAssignedCoursesQuery = useGetUserAssignedCoursesQuery;
44311
44507
  exports.useGetUserAssignedPathwaysQuery = useGetUserAssignedPathwaysQuery;
44508
+ exports.useGetUserCatalogPathwaysQuery = useGetUserCatalogPathwaysQuery;
44312
44509
  exports.useGetUserCohortsOverTimeQuery = useGetUserCohortsOverTimeQuery;
44313
44510
  exports.useGetUserCompaniesQuery = useGetUserCompaniesQuery;
44314
44511
  exports.useGetUserCredentialsQuery = useGetUserCredentialsQuery;
@@ -44316,6 +44513,7 @@ exports.useGetUserDesiredSkillsQuery = useGetUserDesiredSkillsQuery;
44316
44513
  exports.useGetUserDetailsStatsQuery = useGetUserDetailsStatsQuery;
44317
44514
  exports.useGetUserEarnedSkillsQuery = useGetUserEarnedSkillsQuery;
44318
44515
  exports.useGetUserEducationQuery = useGetUserEducationQuery;
44516
+ exports.useGetUserEnrolledCoursesQuery = useGetUserEnrolledCoursesQuery;
44319
44517
  exports.useGetUserEnrolledPathwaysQuery = useGetUserEnrolledPathwaysQuery;
44320
44518
  exports.useGetUserEnrolledProgramsQuery = useGetUserEnrolledProgramsQuery;
44321
44519
  exports.useGetUserExperienceQuery = useGetUserExperienceQuery;
@@ -44348,6 +44546,7 @@ exports.useLazyGetAdminProjectsQuery = useLazyGetAdminProjectsQuery;
44348
44546
  exports.useLazyGetApiKeysQuery = useLazyGetApiKeysQuery;
44349
44547
  exports.useLazyGetArtifactQuery = useLazyGetArtifactQuery;
44350
44548
  exports.useLazyGetArtifactVersionQuery = useLazyGetArtifactVersionQuery;
44549
+ exports.useLazyGetAssignedProgramsQuery = useLazyGetAssignedProgramsQuery;
44351
44550
  exports.useLazyGetCatalogInvitationsCourseQuery = useLazyGetCatalogInvitationsCourseQuery;
44352
44551
  exports.useLazyGetCatalogInvitationsProgramQuery = useLazyGetCatalogInvitationsProgramQuery;
44353
44552
  exports.useLazyGetCatalogSearchQuery = useLazyGetCatalogSearchQuery;
@@ -44358,15 +44557,22 @@ exports.useLazyGetChatMessagesForSessionQuery = useLazyGetChatMessagesForSession
44358
44557
  exports.useLazyGetConnectedServiceAuthUrlQuery = useLazyGetConnectedServiceAuthUrlQuery;
44359
44558
  exports.useLazyGetConnectedServicesQuery = useLazyGetConnectedServicesQuery;
44360
44559
  exports.useLazyGetConversationMemoriesQuery = useLazyGetConversationMemoriesQuery;
44560
+ exports.useLazyGetCourseCompletionOutlinesQuery = useLazyGetCourseCompletionOutlinesQuery;
44561
+ exports.useLazyGetCourseCompletionQuery = useLazyGetCourseCompletionQuery;
44562
+ exports.useLazyGetCourseEligibilityQuery = useLazyGetCourseEligibilityQuery;
44563
+ exports.useLazyGetCourseMetaDataQuery = useLazyGetCourseMetaDataQuery;
44564
+ exports.useLazyGetCourseProgressQuery = useLazyGetCourseProgressQuery;
44361
44565
  exports.useLazyGetCredentialsListQuery = useLazyGetCredentialsListQuery;
44362
44566
  exports.useLazyGetCredentialsQuery = useLazyGetCredentialsQuery;
44363
44567
  exports.useLazyGetCredentialsSchemaQuery = useLazyGetCredentialsSchemaQuery;
44364
44568
  exports.useLazyGetCustomDomainsQuery = useLazyGetCustomDomainsQuery;
44365
44569
  exports.useLazyGetCustomMentorsQuery = useLazyGetCustomMentorsQuery;
44366
44570
  exports.useLazyGetDatasetsQuery = useLazyGetDatasetsQuery;
44571
+ exports.useLazyGetDepartmentMemberCheckQuery = useLazyGetDepartmentMemberCheckQuery;
44367
44572
  exports.useLazyGetDesiredSkillsQuery = useLazyGetDesiredSkillsQuery;
44368
44573
  exports.useLazyGetDisclaimersQuery = useLazyGetDisclaimersQuery;
44369
44574
  exports.useLazyGetDownloadReportFromURLQuery = useLazyGetDownloadReportFromURLQuery;
44575
+ exports.useLazyGetEdxSSOTokenQuery = useLazyGetEdxSSOTokenQuery;
44370
44576
  exports.useLazyGetEnrollmentCourseSearchQuery = useLazyGetEnrollmentCourseSearchQuery;
44371
44577
  exports.useLazyGetExamInfoQuery = useLazyGetExamInfoQuery;
44372
44578
  exports.useLazyGetExternalMappingQuery = useLazyGetExternalMappingQuery;
@@ -44445,12 +44651,15 @@ exports.useLazyGetToolsQuery = useLazyGetToolsQuery;
44445
44651
  exports.useLazyGetTrainingDocumentRetrainScheduleQuery = useLazyGetTrainingDocumentRetrainScheduleQuery;
44446
44652
  exports.useLazyGetTrainingDocumentsQuery = useLazyGetTrainingDocumentsQuery;
44447
44653
  exports.useLazyGetUserAppsQuery = useLazyGetUserAppsQuery;
44654
+ exports.useLazyGetUserAssignedCoursesQuery = useLazyGetUserAssignedCoursesQuery;
44448
44655
  exports.useLazyGetUserAssignedPathwaysQuery = useLazyGetUserAssignedPathwaysQuery;
44656
+ exports.useLazyGetUserCatalogPathwaysQuery = useLazyGetUserCatalogPathwaysQuery;
44449
44657
  exports.useLazyGetUserCompaniesQuery = useLazyGetUserCompaniesQuery;
44450
44658
  exports.useLazyGetUserCredentialsQuery = useLazyGetUserCredentialsQuery;
44451
44659
  exports.useLazyGetUserDesiredSkillsQuery = useLazyGetUserDesiredSkillsQuery;
44452
44660
  exports.useLazyGetUserEarnedSkillsQuery = useLazyGetUserEarnedSkillsQuery;
44453
44661
  exports.useLazyGetUserEducationQuery = useLazyGetUserEducationQuery;
44662
+ exports.useLazyGetUserEnrolledCoursesQuery = useLazyGetUserEnrolledCoursesQuery;
44454
44663
  exports.useLazyGetUserEnrolledPathwaysQuery = useLazyGetUserEnrolledPathwaysQuery;
44455
44664
  exports.useLazyGetUserEnrolledProgramsQuery = useLazyGetUserEnrolledProgramsQuery;
44456
44665
  exports.useLazyGetUserExperienceQuery = useLazyGetUserExperienceQuery;