@iblai/data-layer 1.1.10 → 1.1.12

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
@@ -42900,6 +42900,29 @@ const edxProctoringApiSlice = react.createApi({
42900
42900
  });
42901
42901
  const { useGetExamInfoQuery, useLazyGetExamInfoQuery, useUpdateExamAttemptMutation, useStartExamMutation, } = edxProctoringApiSlice;
42902
42902
 
42903
+ const RETIREMENT_ENDPOINTS = {
42904
+ SELF_RETIRE: {
42905
+ service: exports.SERVICES.LMS,
42906
+ path: () => `/api/ibl/retirements/self_retire/`,
42907
+ },
42908
+ };
42909
+
42910
+ const retirementApiSlice = react.createApi({
42911
+ reducerPath: 'retirementApiSlice',
42912
+ baseQuery: iblFetchBaseQuery,
42913
+ endpoints: (builder) => ({
42914
+ selfRetire: builder.mutation({
42915
+ query: () => ({
42916
+ url: RETIREMENT_ENDPOINTS.SELF_RETIRE.path(),
42917
+ service: RETIREMENT_ENDPOINTS.SELF_RETIRE.service,
42918
+ method: 'POST',
42919
+ isJson: true,
42920
+ }),
42921
+ }),
42922
+ }),
42923
+ });
42924
+ const { useSelfRetireMutation } = retirementApiSlice;
42925
+
42903
42926
  const DISCLAIMERS_REDUCER_PATH = 'disclaimersApiSlice';
42904
42927
  const DISCLAIMERS_ENDPOINTS = {
42905
42928
  GET_DISCLAIMERS: {
@@ -43208,6 +43231,7 @@ const mentorReducer = {
43208
43231
  [coreFakeCustomPublicImageAssetApiSlice.reducerPath]: coreFakeCustomPublicImageAssetApiSlice.reducer,
43209
43232
  [billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
43210
43233
  [analyticsCustomSlice.reducerPath]: analyticsCustomSlice.reducer,
43234
+ [retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
43211
43235
  };
43212
43236
  const mentorMiddleware = [
43213
43237
  mentorApiSlice.middleware,
@@ -43252,6 +43276,7 @@ const mentorMiddleware = [
43252
43276
  coreFakeCustomPublicImageAssetApiSlice.middleware,
43253
43277
  billingCustomSlice.middleware,
43254
43278
  analyticsCustomSlice.middleware,
43279
+ retirementApiSlice.middleware,
43255
43280
  ];
43256
43281
 
43257
43282
  const skillsReducer = {
@@ -43286,6 +43311,7 @@ const skillsReducer = {
43286
43311
  [coreFakeCustomPublicImageAssetApiSlice.reducerPath]: coreFakeCustomPublicImageAssetApiSlice.reducer,
43287
43312
  [billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
43288
43313
  [analyticsCustomSlice.reducerPath]: analyticsCustomSlice.reducer,
43314
+ [retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
43289
43315
  };
43290
43316
  const skillsMiddleware = [
43291
43317
  perLearnerApiSlice.middleware,
@@ -43319,6 +43345,7 @@ const skillsMiddleware = [
43319
43345
  coreFakeCustomPublicImageAssetApiSlice.middleware,
43320
43346
  billingCustomSlice.middleware,
43321
43347
  analyticsCustomSlice.middleware,
43348
+ retirementApiSlice.middleware,
43322
43349
  ];
43323
43350
 
43324
43351
  const initializeDataLayer = (dmUrl, lmsUrl, storageService, httpErrorHandler = {}) => {
@@ -43368,6 +43395,7 @@ exports.PROJECTS_CUSTOM_ENDPOINTS = PROJECTS_CUSTOM_ENDPOINTS;
43368
43395
  exports.PROJECTS_CUSTOM_REDUCER_PATH = PROJECTS_CUSTOM_REDUCER_PATH;
43369
43396
  exports.PROJECTS_QUERY_KEYS = PROJECTS_QUERY_KEYS;
43370
43397
  exports.QUERY_PARAMS = QUERY_PARAMS;
43398
+ exports.RETIREMENT_ENDPOINTS = RETIREMENT_ENDPOINTS;
43371
43399
  exports.STORAGE_KEYS = STORAGE_KEYS;
43372
43400
  exports.TENANT_IDENTIFIERS = TENANT_IDENTIFIERS;
43373
43401
  exports.TENANT_LOGO_ENDPOINTS = TENANT_LOGO_ENDPOINTS;
@@ -43425,6 +43453,7 @@ exports.platformCustomApiSlice = platformCustomApiSlice;
43425
43453
  exports.projectsApiSlice = projectsApiSlice;
43426
43454
  exports.promptsApiSlice = promptsApiSlice;
43427
43455
  exports.reportsApiSlice = reportsApiSlice;
43456
+ exports.retirementApiSlice = retirementApiSlice;
43428
43457
  exports.searchApiSlice = searchApiSlice;
43429
43458
  exports.sessionApiSlice = sessionApiSlice;
43430
43459
  exports.skillsApiSlice = skillsApiSlice;
@@ -43833,6 +43862,7 @@ exports.useRenewSubscriptionMutation = useRenewSubscriptionMutation;
43833
43862
  exports.useResetPasswordMutation = useResetPasswordMutation;
43834
43863
  exports.useRevokeShareableLinkMutation = useRevokeShareableLinkMutation;
43835
43864
  exports.useSeedMentorsQuery = useSeedMentorsQuery;
43865
+ exports.useSelfRetireMutation = useSelfRetireMutation;
43836
43866
  exports.useSendNotificationMutation = useSendNotificationMutation;
43837
43867
  exports.useSetCurrentVersionMutation = useSetCurrentVersionMutation;
43838
43868
  exports.useSetPlatformConfigurationsMutation = useSetPlatformConfigurationsMutation;