mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
dcc20c4fc1
* ui improvements round 1 * modal cleanup * init * UI refactor * UI cleanup + refactor * legacy cleanup * success model -> github actions, non-ee warnings * sqlx * npm check * ee warning everywhere * last comments * formatting * no hardcoded theme * claude review improvemenets
35 lines
771 B
TypeScript
35 lines
771 B
TypeScript
// Deterministic backend response formats from hub script and CLI
|
|
export interface SyncResponse {
|
|
success: true
|
|
changes: Array<{
|
|
type: 'added' | 'edited' | 'deleted'
|
|
path: string
|
|
codebase_changed?: boolean
|
|
}>
|
|
total: number
|
|
settingsDiffResult?: {
|
|
hasChanges: boolean
|
|
diff: Record<string, { from: any; to: any }>
|
|
local: SettingsObject
|
|
backend: SettingsObject
|
|
}
|
|
}
|
|
|
|
export interface SettingsResponse {
|
|
success: true
|
|
hasChanges: boolean
|
|
local: SettingsObject
|
|
backend: SettingsObject
|
|
diff: Record<string, { from: any; to: any }>
|
|
repository: string
|
|
}
|
|
|
|
import type { GitSyncObjectType } from '$lib/gen'
|
|
|
|
export interface SettingsObject {
|
|
include_path: string[]
|
|
exclude_path: string[]
|
|
extra_include_path: string[]
|
|
include_type: GitSyncObjectType[]
|
|
}
|