@iblai/data-layer 1.15.0 → 1.16.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
@@ -46595,14 +46595,22 @@ const DISCLAIMERS_ENDPOINTS = {
46595
46595
  service: exports.SERVICES.DM,
46596
46596
  path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/disclaimer-agreements/`,
46597
46597
  },
46598
+ GET_DISCLAIMER_AGREEMENTS: {
46599
+ service: exports.SERVICES.DM,
46600
+ path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/disclaimer-agreements/`,
46601
+ },
46598
46602
  };
46599
46603
  const DISCLAIMERS_QUERY_KEYS = {
46600
46604
  GET_DISCLAIMERS: () => ['DISCLAIMERS'],
46605
+ GET_DISCLAIMER_AGREEMENTS: () => ['DISCLAIMER_AGREEMENTS'],
46601
46606
  };
46602
46607
 
46603
46608
  const disclaimersApiSlice = react.createApi({
46604
46609
  reducerPath: DISCLAIMERS_REDUCER_PATH,
46605
- tagTypes: [...DISCLAIMERS_QUERY_KEYS.GET_DISCLAIMERS()],
46610
+ tagTypes: [
46611
+ ...DISCLAIMERS_QUERY_KEYS.GET_DISCLAIMERS(),
46612
+ ...DISCLAIMERS_QUERY_KEYS.GET_DISCLAIMER_AGREEMENTS(),
46613
+ ],
46606
46614
  baseQuery: iblFetchBaseQuery,
46607
46615
  endpoints: (builder) => ({
46608
46616
  getDisclaimers: builder.query({
@@ -46656,11 +46664,24 @@ const disclaimersApiSlice = react.createApi({
46656
46664
  service: DISCLAIMERS_ENDPOINTS.AGREE_TO_DISCLAIMER.service,
46657
46665
  };
46658
46666
  },
46659
- invalidatesTags: DISCLAIMERS_QUERY_KEYS.GET_DISCLAIMERS(),
46667
+ invalidatesTags: [
46668
+ ...DISCLAIMERS_QUERY_KEYS.GET_DISCLAIMERS(),
46669
+ ...DISCLAIMERS_QUERY_KEYS.GET_DISCLAIMER_AGREEMENTS(),
46670
+ ],
46671
+ }),
46672
+ getDisclaimerAgreements: builder.query({
46673
+ query: (args) => {
46674
+ return {
46675
+ url: DISCLAIMERS_ENDPOINTS.GET_DISCLAIMER_AGREEMENTS.path(args.org, args.userId),
46676
+ params: args.params,
46677
+ service: DISCLAIMERS_ENDPOINTS.GET_DISCLAIMER_AGREEMENTS.service,
46678
+ };
46679
+ },
46680
+ providesTags: DISCLAIMERS_QUERY_KEYS.GET_DISCLAIMER_AGREEMENTS(),
46660
46681
  }),
46661
46682
  }),
46662
46683
  });
46663
- const { useGetDisclaimersQuery, useLazyGetDisclaimersQuery, useCreateDisclaimerMutation, useUpdateDisclaimerMutation, useDeleteDisclaimerMutation, useAgreeToDisclaimerMutation, } = disclaimersApiSlice;
46684
+ const { useGetDisclaimersQuery, useLazyGetDisclaimersQuery, useCreateDisclaimerMutation, useUpdateDisclaimerMutation, useDeleteDisclaimerMutation, useAgreeToDisclaimerMutation, useGetDisclaimerAgreementsQuery, useLazyGetDisclaimerAgreementsQuery, } = disclaimersApiSlice;
46664
46685
 
46665
46686
  // Backend contract: ibl_ai_mentor/views/grader_views.py.
46666
46687
  // Both the configuration and criteria resources live under
@@ -49007,6 +49028,7 @@ exports.useGetDatasetsQuery = useGetDatasetsQuery;
49007
49028
  exports.useGetDepartmentMemberCheckQuery = useGetDepartmentMemberCheckQuery;
49008
49029
  exports.useGetDesiredSkillsQuery = useGetDesiredSkillsQuery;
49009
49030
  exports.useGetDetailedFinancialStatsQuery = useGetDetailedFinancialStatsQuery;
49031
+ exports.useGetDisclaimerAgreementsQuery = useGetDisclaimerAgreementsQuery;
49010
49032
  exports.useGetDisclaimersQuery = useGetDisclaimersQuery;
49011
49033
  exports.useGetEdxSSOTokenQuery = useGetEdxSSOTokenQuery;
49012
49034
  exports.useGetEnrollmentCourseSearchQuery = useGetEnrollmentCourseSearchQuery;
@@ -49267,6 +49289,7 @@ exports.useLazyGetCustomMentorsQuery = useLazyGetCustomMentorsQuery;
49267
49289
  exports.useLazyGetDatasetsQuery = useLazyGetDatasetsQuery;
49268
49290
  exports.useLazyGetDepartmentMemberCheckQuery = useLazyGetDepartmentMemberCheckQuery;
49269
49291
  exports.useLazyGetDesiredSkillsQuery = useLazyGetDesiredSkillsQuery;
49292
+ exports.useLazyGetDisclaimerAgreementsQuery = useLazyGetDisclaimerAgreementsQuery;
49270
49293
  exports.useLazyGetDisclaimersQuery = useLazyGetDisclaimersQuery;
49271
49294
  exports.useLazyGetDownloadReportFromURLQuery = useLazyGetDownloadReportFromURLQuery;
49272
49295
  exports.useLazyGetEdxSSOTokenQuery = useLazyGetEdxSSOTokenQuery;