Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/server/static-react/src/api/clients/schemaClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { ApiClient, getSharedClient } from '../core/client';
import { API_ENDPOINTS } from '../endpoints';
import { SCHEMA_STATES, SCHEMA_OPERATIONS, API_TIMEOUTS, API_RETRIES, API_CACHE_TTL, CACHE_KEYS } from '../../constants/api';
import { SCHEMA_STATES, API_TIMEOUTS, API_RETRIES, API_CACHE_TTL, CACHE_KEYS } from '../../constants/api';
import type { EnhancedApiResponse } from '../core/types';
import type { Schema, SchemaState } from '../../types/schema';
import { normalizeSchemaState } from '../../utils/rangeSchemaHelpers.js';
Expand Down
4 changes: 1 addition & 3 deletions src/server/static-react/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,14 @@ export {
API_REQUEST_TIMEOUT_MS,
API_RETRY_ATTEMPTS,
API_RETRY_DELAY_MS,
API_BATCH_REQUEST_LIMIT,
HTTP_STATUS_CODES,
CONTENT_TYPES,
REQUEST_HEADERS,
ERROR_MESSAGES,
CACHE_CONFIG,
RETRY_CONFIG,
API_CONFIG,
SCHEMA_STATES,
SCHEMA_OPERATIONS
SCHEMA_STATES
} from '../constants/api';

export { API_ENDPOINTS } from './endpoints';
Expand Down
15 changes: 0 additions & 15 deletions src/server/static-react/src/constants/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
* Centralized API configuration for API-STD-1 compliance
* Extracted from repeated patterns across API clients for DRY enforcement
*/
import { API_BASE_URLS as GENERATED_API_BASE_URLS } from "../api/endpoints";

// Base Request Configuration
export const API_REQUEST_TIMEOUT_MS = 30000;
export const API_RETRY_ATTEMPTS = 3;
export const API_RETRY_DELAY_MS = 1000;
export const API_BATCH_REQUEST_LIMIT = 20;

// Operation-Specific Timeout Values
export const API_TIMEOUTS = {
Expand Down Expand Up @@ -58,9 +56,6 @@ export const API_CACHE_TTL = {
MUTATION_HISTORY: 300000,
} as const;

// API Base URLs (generated from Rust OpenAPI via endpoints.ts)
export const API_BASE_URLS = GENERATED_API_BASE_URLS;

// HTTP Status Codes
export const HTTP_STATUS_CODES = {
OK: 200,
Expand Down Expand Up @@ -140,16 +135,6 @@ export const API_CONFIG = {
import { SCHEMA_STATES } from "./schemas";
export { SCHEMA_STATES };

// Schema Operation Types
export const SCHEMA_OPERATIONS = {
READ: "read",
WRITE: "write",
APPROVE: "approve",
BLOCK: "block",
MUTATION: "mutation",
QUERY: "query",
} as const;

// Cache Key Prefixes
export const CACHE_KEYS = {
SCHEMAS: "schemas",
Expand Down
Loading