mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
* feat(db-sync): added general sync file and implemented environment sync * improvement(workflows-store): structured workflows store system better and added getter for values across stores * fix(stores): deleted workflows/types since unused * improvement(db-sync): added workflow event syncs and debounce * improvement(db-sync): clean and upgraded db-sync system; environment sync implemented * improvement(db-sync): added batch sync with registry; init bug needs fixing * improvement(db-sync): finalized sync system and implemented for workflow * fix(db-sync): fixed client-side rendering * improvement(db-sync): created backwards sync system; environment implemented * improvement(db-sync): added colors to db * fix(db-sync): color sync with db * improvement(db-sync): added workflow backwards sync; fixing color bug and race condition * fix(db-stores): color sync * feature(db-sync): db-sync complete; need to sync history * improvement(db-sync): added scheduling * fix(db-sync): environment sync to db
16 lines
374 B
TypeScript
16 lines
374 B
TypeScript
export const STORAGE_KEYS = {
|
|
REGISTRY: 'workflow-registry',
|
|
WORKFLOW: (id: string) => `workflow-${id}`,
|
|
SUBBLOCK: (id: string) => `subblock-values-${id}`,
|
|
}
|
|
|
|
export const API_ENDPOINTS = {
|
|
WORKFLOW: '/api/db/workflow',
|
|
ENVIRONMENT: '/api/db/environment',
|
|
SCHEDULE: '/api/scheduled/schedule',
|
|
}
|
|
|
|
export const SYNC_INTERVALS = {
|
|
DEFAULT: 30000, // 30 seconds
|
|
}
|