@burdenoff/microfe-cosmicintersection 2026.1109.4 → 2026.1109.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databricksTransport.d.ts","sourceRoot":"","sources":["../../../src/cosmicintersection/api/databricksTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AASnD,iFAAiF;AACjF,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAsB,iBAAiB,CAAC,CAAC,EACvC,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"databricksTransport.d.ts","sourceRoot":"","sources":["../../../src/cosmicintersection/api/databricksTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AASnD,iFAAiF;AACjF,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAsB,iBAAiB,CAAC,CAAC,EACvC,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,CAAC,CAAC,CA4CZ"}
|
|
@@ -2,35 +2,35 @@ import { getStoredOrganizationId as e, getStoredProjectId as t, graphqlFetchPinn
|
|
|
2
2
|
import { print as a } from "graphql";
|
|
3
3
|
//#region src/cosmicintersection/api/databricksTransport.ts
|
|
4
4
|
async function o(o, s, c, l) {
|
|
5
|
-
let u = () => {
|
|
6
|
-
if ((
|
|
5
|
+
let u = { ...o }, d = () => {
|
|
6
|
+
if ((u.organizationId ?? null) !== (e() ?? null) || (u.projectId ?? null) !== (t() ?? null)) throw Error("The active context changed. Reopen the Databricks panel before continuing.");
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
let
|
|
10
|
-
url:
|
|
11
|
-
authToken:
|
|
12
|
-
actorId:
|
|
13
|
-
workspaceId:
|
|
14
|
-
tenantId:
|
|
15
|
-
currentQuery:
|
|
8
|
+
d();
|
|
9
|
+
let f = i("workspace", u.apiGatewayUrl), p = a(s), m = await r({
|
|
10
|
+
url: f,
|
|
11
|
+
authToken: u.authToken,
|
|
12
|
+
actorId: u.actorId,
|
|
13
|
+
workspaceId: u.workspaceId,
|
|
14
|
+
tenantId: u.tenantId,
|
|
15
|
+
currentQuery: p,
|
|
16
16
|
signal: l
|
|
17
17
|
});
|
|
18
|
-
|
|
19
|
-
let
|
|
18
|
+
d(), m.assertCurrent();
|
|
19
|
+
let h = await n({
|
|
20
20
|
gateway: "workspace",
|
|
21
|
-
baseUrl:
|
|
22
|
-
query:
|
|
21
|
+
baseUrl: u.apiGatewayUrl,
|
|
22
|
+
query: p,
|
|
23
23
|
variables: c,
|
|
24
|
-
authToken:
|
|
25
|
-
workspaceToken:
|
|
26
|
-
workspaceId:
|
|
27
|
-
organizationId:
|
|
28
|
-
tenantId:
|
|
29
|
-
projectId:
|
|
24
|
+
authToken: u.authToken,
|
|
25
|
+
workspaceToken: m.workspaceToken,
|
|
26
|
+
workspaceId: u.workspaceId,
|
|
27
|
+
organizationId: u.organizationId ?? !1,
|
|
28
|
+
tenantId: u.tenantId ?? !1,
|
|
29
|
+
projectId: u.projectId ?? !1,
|
|
30
30
|
signal: l
|
|
31
31
|
});
|
|
32
|
-
if (
|
|
33
|
-
return
|
|
32
|
+
if (d(), m.assertCurrent(), h.errors?.length || h.data == null) throw Error("Databricks request was not confirmed. Refresh status before retrying.");
|
|
33
|
+
return h.data;
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
export { o as databricksRequest };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databricksTransport.js","names":[],"sources":["../../../src/cosmicintersection/api/databricksTransport.ts"],"sourcesContent":["import { print, type DocumentNode } from 'graphql';\nimport {\n getStoredOrganizationId,\n getStoredProjectId,\n graphqlFetchPinned,\n prepareWorkspaceRequest,\n resolveGatewayUrl,\n} from '@burdenoff/fe-libs/shared/graphql';\n\n/** Captured by the mounted run panel; never persisted or used as a cache key. */\nexport interface DatabricksRequestScope {\n apiGatewayUrl: string;\n authToken: string;\n actorId: string;\n workspaceId: string;\n tenantId?: string;\n organizationId?: string;\n projectId?: string;\n}\n\nexport async function databricksRequest<T>(\n scope: DatabricksRequestScope,\n document: DocumentNode,\n variables: Record<string, unknown>,\n signal: AbortSignal\n): Promise<T> {\n const assertCapturedContext = () => {\n if (\n (
|
|
1
|
+
{"version":3,"file":"databricksTransport.js","names":[],"sources":["../../../src/cosmicintersection/api/databricksTransport.ts"],"sourcesContent":["import { print, type DocumentNode } from 'graphql';\nimport {\n getStoredOrganizationId,\n getStoredProjectId,\n graphqlFetchPinned,\n prepareWorkspaceRequest,\n resolveGatewayUrl,\n} from '@burdenoff/fe-libs/shared/graphql';\n\n/** Captured by the mounted run panel; never persisted or used as a cache key. */\nexport interface DatabricksRequestScope {\n apiGatewayUrl: string;\n authToken: string;\n actorId: string;\n workspaceId: string;\n tenantId?: string;\n organizationId?: string;\n projectId?: string;\n}\n\nexport async function databricksRequest<T>(\n scope: DatabricksRequestScope,\n document: DocumentNode,\n variables: Record<string, unknown>,\n signal: AbortSignal\n): Promise<T> {\n const captured = { ...scope };\n const assertCapturedContext = () => {\n if (\n (captured.organizationId ?? null) !== (getStoredOrganizationId() ?? null) ||\n (captured.projectId ?? null) !== (getStoredProjectId() ?? null)\n ) {\n throw new Error('The active context changed. Reopen the Databricks panel before continuing.');\n }\n };\n assertCapturedContext();\n const url = resolveGatewayUrl('workspace', captured.apiGatewayUrl);\n const query = print(document);\n const prepared = await prepareWorkspaceRequest({\n url,\n authToken: captured.authToken,\n actorId: captured.actorId,\n workspaceId: captured.workspaceId,\n tenantId: captured.tenantId,\n currentQuery: query,\n signal,\n });\n assertCapturedContext();\n prepared.assertCurrent();\n const response = await graphqlFetchPinned<T>({\n gateway: 'workspace',\n // Pinned fetch resolves the endpoint itself; preparation needs the full URL.\n baseUrl: captured.apiGatewayUrl,\n query,\n variables,\n authToken: captured.authToken,\n workspaceToken: prepared.workspaceToken,\n workspaceId: captured.workspaceId,\n organizationId: captured.organizationId ?? false,\n tenantId: captured.tenantId ?? false,\n projectId: captured.projectId ?? false,\n signal,\n });\n assertCapturedContext();\n prepared.assertCurrent();\n if (response.errors?.length || response.data == null) {\n throw new Error('Databricks request was not confirmed. Refresh status before retrying.');\n }\n return response.data;\n}\n"],"mappings":";;;AAoBA,eAAsB,EACpB,GACA,GACA,GACA,GACY;CACZ,IAAM,IAAW,EAAE,GAAG,EAAM,GACtB,UAA8B;EAClC,KACG,EAAS,kBAAkB,WAAW,EAAwB,KAAK,UACnE,EAAS,aAAa,WAAW,EAAmB,KAAK,OAE1D,MAAU,MAAM,4EAA4E;CAEhG;CACA,EAAsB;CACtB,IAAM,IAAM,EAAkB,aAAa,EAAS,aAAa,GAC3D,IAAQ,EAAM,CAAQ,GACtB,IAAW,MAAM,EAAwB;EAC7C;EACA,WAAW,EAAS;EACpB,SAAS,EAAS;EAClB,aAAa,EAAS;EACtB,UAAU,EAAS;EACnB,cAAc;EACd;CACF,CAAC;CAED,AADA,EAAsB,GACtB,EAAS,cAAc;CACvB,IAAM,IAAW,MAAM,EAAsB;EAC3C,SAAS;EAET,SAAS,EAAS;EAClB;EACA;EACA,WAAW,EAAS;EACpB,gBAAgB,EAAS;EACzB,aAAa,EAAS;EACtB,gBAAgB,EAAS,kBAAkB;EAC3C,UAAU,EAAS,YAAY;EAC/B,WAAW,EAAS,aAAa;EACjC;CACF,CAAC;CAGD,IAFA,EAAsB,GACtB,EAAS,cAAc,GACnB,EAAS,QAAQ,UAAU,EAAS,QAAQ,MAC9C,MAAU,MAAM,uEAAuE;CAEzF,OAAO,EAAS;AAClB"}
|