mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 23:05:44 +08:00
Add cutover-compare nav group and monitor templates.
Move biz monitor/compare/migration under Cutover compare, split compare templates into their own page, and add monitor-template CRUD that overlays compare templates. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
f3a8f80822
commit
202196a197
13 changed files with 812 additions and 36 deletions
|
|
@ -2096,3 +2096,20 @@ export const bizMigrationListDiffs = (params: {
|
|||
`/v1/biz-migration/runs/${encodeURIComponent(params.runId)}/diffs${qs ? `?${qs}` : ""}`,
|
||||
);
|
||||
};
|
||||
|
||||
export const bizMonitorListTemplates = () =>
|
||||
apiGet<{ items: Record<string, unknown>[] }>("/v1/biz-migration/monitor-templates");
|
||||
|
||||
export const bizMonitorCreateTemplate = (body: Record<string, unknown>) =>
|
||||
apiPost<Record<string, unknown>>("/v1/biz-migration/monitor-templates", body);
|
||||
|
||||
export const bizMonitorUpdateTemplate = (templateId: string, body: Record<string, unknown>) =>
|
||||
apiPatch<Record<string, unknown>>(
|
||||
`/v1/biz-migration/monitor-templates/${encodeURIComponent(templateId)}`,
|
||||
body,
|
||||
);
|
||||
|
||||
export const bizMonitorDeleteTemplate = (templateId: string) =>
|
||||
apiDelete<{ ok: boolean }>(
|
||||
`/v1/biz-migration/monitor-templates/${encodeURIComponent(templateId)}`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue