feat(platform,datalink,bill): add workflow job drilldown, safe record batch-edit, audit, and spec linkage diagnostics (v0.8.11)
This commit is contained in:
1 parent
2ec08033e0
commit
a0ec7f95a7
37 files changed
+3958
-674
No files matched your search
+13
-2
@@ -4,6 +4,7 @@ import { CorpContext, resolveCorpConfig } from "../core/config/manager.js";
|
||||
import { CorpConfig } from "../core/config/types.js";
|
||||
import {
|
||||
createSessionClient,
|
||||
getEasoClient,
|
||||
getUnityClient,
|
||||
getScriptEngineClient,
|
||||
} from "../core/http/index.js";
|
||||
@@ -63,13 +64,23 @@ export function initCorpRuntime(
|
||||
|
||||
export async function createClientsForCorp(corp: CorpConfig) {
|
||||
const sessionClient = await createSessionClient(corp);
|
||||
const { client: unityClient } = await getUnityClient(corp);
|
||||
let easoClient: Awaited<ReturnType<typeof getEasoClient>>["client"];
|
||||
let unityClient: Awaited<ReturnType<typeof getUnityClient>>["client"];
|
||||
try {
|
||||
const easo = await getEasoClient(corp);
|
||||
easoClient = easo.client;
|
||||
unityClient = easo.client;
|
||||
} catch {
|
||||
const unity = await getUnityClient(corp);
|
||||
unityClient = unity.client;
|
||||
easoClient = unity.client;
|
||||
}
|
||||
return {
|
||||
corp,
|
||||
sessionClient,
|
||||
ekbClient: sessionClient,
|
||||
unityClient,
|
||||
easoClient: unityClient,
|
||||
easoClient,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user