|
|
@@ -36,7 +36,6 @@ const ACTION_COMMENT_CREATE = 'COMMENT_CREATE';
|
|
|
const ACTION_COMMENT_UPDATE = 'COMMENT_UPDATE';
|
|
|
const ACTION_COMMENT_REMOVE = 'COMMENT_REMOVE';
|
|
|
|
|
|
-
|
|
|
export const SUPPORTED_TARGET_MODEL_TYPE = {
|
|
|
MODEL_PAGE,
|
|
|
} as const;
|
|
|
@@ -88,13 +87,6 @@ export const SUPPORTED_ACTION_TO_NOTIFIED_TYPE = {
|
|
|
ACTION_COMMENT_CREATE,
|
|
|
} as const;
|
|
|
|
|
|
-
|
|
|
-export const AllSupportedTargetModelType = Object.values(SUPPORTED_TARGET_MODEL_TYPE);
|
|
|
-export const AllSupportedEventModelType = Object.values(SUPPORTED_EVENT_MODEL_TYPE);
|
|
|
-export const AllSupportedActionType = Object.values(SUPPORTED_ACTION_TYPE);
|
|
|
-export const AllSupportedActionToNotifiedType = Object.values(SUPPORTED_ACTION_TO_NOTIFIED_TYPE);
|
|
|
-
|
|
|
-
|
|
|
/*
|
|
|
* For AuditLogManagement.tsx
|
|
|
*/
|
|
|
@@ -115,12 +107,21 @@ export const CommentActions = Object.values({
|
|
|
ACTION_COMMENT_UPDATE,
|
|
|
} as const);
|
|
|
|
|
|
+/*
|
|
|
+ * Array
|
|
|
+ */
|
|
|
+export const AllSupportedTargetModelType = Object.values(SUPPORTED_TARGET_MODEL_TYPE);
|
|
|
+export const AllSupportedEventModelType = Object.values(SUPPORTED_EVENT_MODEL_TYPE);
|
|
|
+export const AllSupportedActionType = Object.values(SUPPORTED_ACTION_TYPE);
|
|
|
+export const AllSupportedActionToNotifiedType = Object.values(SUPPORTED_ACTION_TO_NOTIFIED_TYPE);
|
|
|
|
|
|
+/*
|
|
|
+ * Type
|
|
|
+ */
|
|
|
export type SupportedTargetModelType = typeof SUPPORTED_TARGET_MODEL_TYPE[keyof typeof SUPPORTED_TARGET_MODEL_TYPE];
|
|
|
export type SupportedEventModelType = typeof SUPPORTED_EVENT_MODEL_TYPE[keyof typeof SUPPORTED_EVENT_MODEL_TYPE];
|
|
|
export type SupportedActionType = typeof SUPPORTED_ACTION_TYPE[keyof typeof SUPPORTED_ACTION_TYPE];
|
|
|
|
|
|
-
|
|
|
export type ISnapshot = Partial<Pick<IUser, 'username'>>
|
|
|
|
|
|
export type IActivity = {
|