Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions src/server/static-react/src/constants/redux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,15 @@ export const SCHEMA_OPERATION_TIMEOUT_MS = 10000;
// REDUX ACTION TYPE CONSTANTS
// ============================================================================

/**
* Base action types for schema slice
*/
/** Action types for schema async thunks (RTK auto-generates sync reducer types). */
export const SCHEMA_ACTION_TYPES = {
// Async thunk action types
FETCH_SCHEMAS: "schemas/fetchSchemas",
APPROVE_SCHEMA: "schemas/approveSchema",
BLOCK_SCHEMA: "schemas/blockSchema",
UNLOAD_SCHEMA: "schemas/unloadSchema",
LOAD_SCHEMA: "schemas/loadSchema",

// Synchronous action types
SET_ACTIVE_SCHEMA: "schemas/setActiveSchema",
UPDATE_SCHEMA_STATUS: "schemas/updateSchemaStatus",
SET_LOADING: "schemas/setLoading",
SET_ERROR: "schemas/setError",
CLEAR_ERROR: "schemas/clearError",
CLEAR_OPERATION_ERROR: "schemas/clearOperationError",
INVALIDATE_CACHE: "schemas/invalidateCache",
RESET_SCHEMAS: "schemas/resetSchemas",
} as const;

export type SchemaActionType = (typeof SCHEMA_ACTION_TYPES)[keyof typeof SCHEMA_ACTION_TYPES];

// ============================================================================
// DEFAULT STATE VALUES
// ============================================================================
Expand Down
Loading