This commit is contained in:
2026-08-16 18:49:02 +02:00
parent a94a5aaad7
commit b617342601
12 changed files with 168 additions and 84 deletions
+4 -1
View File
@@ -27,6 +27,9 @@ export const ADMIN_SYNC_A1_PATH = (companyId: string) =>
export const ADMIN_STAFF_ROLE_PATH = (userId: string) =>
`/api/admin/users/${encodeURIComponent(userId)}/staff-role`;
/** Matches API `platformDemoCompanyName` (catalog/prompt_repair.go). */
export const PLATFORM_DEMO_COMPANY_NAME = "Platform Demo";
export const PAGE_SIZE = 25;
export type PlatformStaffRole = "admin" | "developer" | "support_staff";
@@ -217,7 +220,7 @@ export type CloneCatalogResult = {
counts: Record<string, number>;
};
/** Copy source company catalog into the admin sandbox (home / dest). Source is unchanged. */
/** Copy source company catalog into dest (explicit id preferred). Source is unchanged. */
export async function cloneAdminCompanyCatalog(
sourceCompanyId: string,
opts?: { destCompanyId?: string }