@iblai/data-layer 1.3.1 → 1.3.3
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 +316 -2
- package/dist/index.esm.js +31 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/audit-logs/api-slice.d.ts +268 -0
- package/dist/src/features/audit-logs/constants.d.ts +11 -0
- package/dist/src/features/audit-logs/types.d.ts +33 -0
- package/dist/src/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43954,6 +43954,34 @@ const workflowsApiSlice = react.createApi({
|
|
|
43954
43954
|
});
|
|
43955
43955
|
const { useGetWorkflowsQuery, useLazyGetWorkflowsQuery, useGetWorkflowQuery, useLazyGetWorkflowQuery, useCreateWorkflowMutation, useUpdateWorkflowMutation, usePatchWorkflowMutation, useDeleteWorkflowMutation, useActivateWorkflowMutation, useDeactivateWorkflowMutation, usePublishWorkflowMutation, useUnpublishWorkflowMutation, useValidateWorkflowMutation, useChatWithWorkflowMutation, useGetNodeTypesQuery, useLazyGetNodeTypesQuery, } = workflowsApiSlice;
|
|
43956
43956
|
|
|
43957
|
+
const AUDIT_LOGS_REDUCER_PATH = 'auditLogsApiSlice';
|
|
43958
|
+
const AUDIT_LOGS_QUERY_KEYS = {
|
|
43959
|
+
GET_AUDIT_LOGS: () => ['AUDIT_LOGS'],
|
|
43960
|
+
};
|
|
43961
|
+
const AUDIT_LOGS_ENDPOINTS = {
|
|
43962
|
+
GET_AUDIT_LOGS: {
|
|
43963
|
+
service: exports.SERVICES.AXD,
|
|
43964
|
+
path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/mentors/audit-logs/`,
|
|
43965
|
+
},
|
|
43966
|
+
};
|
|
43967
|
+
|
|
43968
|
+
const auditLogsApiSlice = react.createApi({
|
|
43969
|
+
reducerPath: AUDIT_LOGS_REDUCER_PATH,
|
|
43970
|
+
tagTypes: [...AUDIT_LOGS_QUERY_KEYS.GET_AUDIT_LOGS()],
|
|
43971
|
+
baseQuery: iblFetchBaseQuery,
|
|
43972
|
+
endpoints: (builder) => ({
|
|
43973
|
+
getAuditLogs: builder.query({
|
|
43974
|
+
query: (args) => ({
|
|
43975
|
+
url: AUDIT_LOGS_ENDPOINTS.GET_AUDIT_LOGS.path(args.org, args.userId),
|
|
43976
|
+
service: AUDIT_LOGS_ENDPOINTS.GET_AUDIT_LOGS.service,
|
|
43977
|
+
params: args.params,
|
|
43978
|
+
}),
|
|
43979
|
+
providesTags: AUDIT_LOGS_QUERY_KEYS.GET_AUDIT_LOGS(),
|
|
43980
|
+
}),
|
|
43981
|
+
}),
|
|
43982
|
+
});
|
|
43983
|
+
const { useGetAuditLogsQuery, useLazyGetAuditLogsQuery } = auditLogsApiSlice;
|
|
43984
|
+
|
|
43957
43985
|
const mentorReducer = {
|
|
43958
43986
|
[mentorApiSlice.reducerPath]: mentorApiSlice.reducer,
|
|
43959
43987
|
[tenantApiSlice.reducerPath]: tenantApiSlice.reducer,
|
|
@@ -43998,6 +44026,7 @@ const mentorReducer = {
|
|
|
43998
44026
|
[billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
|
|
43999
44027
|
[analyticsCustomSlice.reducerPath]: analyticsCustomSlice.reducer,
|
|
44000
44028
|
[retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
|
|
44029
|
+
[auditLogsApiSlice.reducerPath]: auditLogsApiSlice.reducer,
|
|
44001
44030
|
[monetizationApiSlice.reducerPath]: monetizationApiSlice.reducer,
|
|
44002
44031
|
[coursesApiSlice.reducerPath]: coursesApiSlice.reducer,
|
|
44003
44032
|
[courseMetadataApiSlice.reducerPath]: courseMetadataApiSlice.reducer,
|
|
@@ -44047,6 +44076,7 @@ const mentorMiddleware = [
|
|
|
44047
44076
|
billingCustomSlice.middleware,
|
|
44048
44077
|
analyticsCustomSlice.middleware,
|
|
44049
44078
|
retirementApiSlice.middleware,
|
|
44079
|
+
auditLogsApiSlice.middleware,
|
|
44050
44080
|
monetizationApiSlice.middleware,
|
|
44051
44081
|
coursesApiSlice.middleware,
|
|
44052
44082
|
courseMetadataApiSlice.middleware,
|
|
@@ -44141,6 +44171,9 @@ const initializeDataLayer = (dmUrl, lmsUrl, legacyLmsUrl, storageService, httpEr
|
|
|
44141
44171
|
};
|
|
44142
44172
|
|
|
44143
44173
|
exports.APP_IDENTIFIERS = APP_IDENTIFIERS;
|
|
44174
|
+
exports.AUDIT_LOGS_ENDPOINTS = AUDIT_LOGS_ENDPOINTS;
|
|
44175
|
+
exports.AUDIT_LOGS_QUERY_KEYS = AUDIT_LOGS_QUERY_KEYS;
|
|
44176
|
+
exports.AUDIT_LOGS_REDUCER_PATH = AUDIT_LOGS_REDUCER_PATH;
|
|
44144
44177
|
exports.CORE_CUSTOM_ENDPOINTS = CORE_CUSTOM_ENDPOINTS;
|
|
44145
44178
|
exports.CORE_CUSTOM_REDUCER_PATH = CORE_CUSTOM_REDUCER_PATH;
|
|
44146
44179
|
exports.CORE_FAKE_CUSTOM_REDUCER_PATH = CORE_FAKE_CUSTOM_REDUCER_PATH;
|
|
@@ -44198,6 +44231,7 @@ exports.appApiReducer = appApiReducer;
|
|
|
44198
44231
|
exports.appApiSlice = appApiSlice;
|
|
44199
44232
|
exports.artifactsApiReducer = artifactsApiReducer;
|
|
44200
44233
|
exports.artifactsApiSlice = artifactsApiSlice;
|
|
44234
|
+
exports.auditLogsApiSlice = auditLogsApiSlice;
|
|
44201
44235
|
exports.authApiSlice = authApiSlice;
|
|
44202
44236
|
exports.billingApiSlice = billingApiSlice;
|
|
44203
44237
|
exports.billingCustomSlice = billingCustomSlice;
|
|
@@ -44377,6 +44411,7 @@ exports.useGetAppTokensMutation = useGetAppTokensMutation;
|
|
|
44377
44411
|
exports.useGetArtifactQuery = useGetArtifactQuery;
|
|
44378
44412
|
exports.useGetArtifactVersionQuery = useGetArtifactVersionQuery;
|
|
44379
44413
|
exports.useGetAssignedProgramsQuery = useGetAssignedProgramsQuery;
|
|
44414
|
+
exports.useGetAuditLogsQuery = useGetAuditLogsQuery;
|
|
44380
44415
|
exports.useGetAverageMessagesPerSessionQuery = useGetAverageMessagesPerSessionQuery;
|
|
44381
44416
|
exports.useGetAverageRatingQuery = useGetAverageRatingQuery;
|
|
44382
44417
|
exports.useGetCatalogInvitationsCourseQuery = useGetCatalogInvitationsCourseQuery;
|
|
@@ -44563,6 +44598,7 @@ exports.useLazyGetApiKeysQuery = useLazyGetApiKeysQuery;
|
|
|
44563
44598
|
exports.useLazyGetArtifactQuery = useLazyGetArtifactQuery;
|
|
44564
44599
|
exports.useLazyGetArtifactVersionQuery = useLazyGetArtifactVersionQuery;
|
|
44565
44600
|
exports.useLazyGetAssignedProgramsQuery = useLazyGetAssignedProgramsQuery;
|
|
44601
|
+
exports.useLazyGetAuditLogsQuery = useLazyGetAuditLogsQuery;
|
|
44566
44602
|
exports.useLazyGetCatalogInvitationsCourseQuery = useLazyGetCatalogInvitationsCourseQuery;
|
|
44567
44603
|
exports.useLazyGetCatalogInvitationsProgramQuery = useLazyGetCatalogInvitationsProgramQuery;
|
|
44568
44604
|
exports.useLazyGetCatalogSearchQuery = useLazyGetCatalogSearchQuery;
|