@fabric-harness/databricks 4.1.1 → 4.2.0

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.
@@ -0,0 +1,71 @@
1
+ export interface DatabricksCommandResult {
2
+ exitCode: number;
3
+ stdout: string;
4
+ stderr: string;
5
+ }
6
+ export type DatabricksCommandRunner = (command: string, args: readonly string[], options: {
7
+ cwd: string;
8
+ env: NodeJS.ProcessEnv;
9
+ }) => Promise<DatabricksCommandResult>;
10
+ export interface DeployDatabricksAppArtifactOptions {
11
+ /** Immutable Fabric Harness `databricks-app` build directory. */
12
+ artifactDir: string;
13
+ /** Databricks CLI profile. App identity/environment auth is used when omitted. */
14
+ profile?: string;
15
+ /** Asset Bundle target selected by the governed release environment. */
16
+ target?: string;
17
+ /** Databricks CLI executable; defaults to `databricks`. */
18
+ executable?: string;
19
+ env?: NodeJS.ProcessEnv;
20
+ /** Injectable command boundary for tests and managed runners. */
21
+ run?: DatabricksCommandRunner;
22
+ onCommand?: (command: {
23
+ executable: string;
24
+ args: readonly string[];
25
+ }) => void;
26
+ /** Explicit Databricks App resource to activate after bundle synchronization. */
27
+ appName?: string;
28
+ /** Bundle-synchronized workspace source path used for snapshot activation. */
29
+ sourceCodePath?: string;
30
+ /** App deployment mode; Databricks Apps currently supports SNAPSHOT here. */
31
+ mode?: "SNAPSHOT";
32
+ /** Start stopped App compute before activating the snapshot. */
33
+ startBeforeDeploy?: boolean;
34
+ }
35
+ export interface DeployDatabricksAppArtifactResult {
36
+ bundleSynchronized: true;
37
+ appSnapshotActivated: true;
38
+ bundleOutput: string;
39
+ appOutput: string;
40
+ }
41
+ export interface ValidateDatabricksAppArtifactOptions {
42
+ artifactDir: string;
43
+ profile?: string;
44
+ target?: string;
45
+ executable?: string;
46
+ env?: NodeJS.ProcessEnv;
47
+ run?: DatabricksCommandRunner;
48
+ onCommand?: (command: {
49
+ executable: string;
50
+ args: readonly string[];
51
+ }) => void;
52
+ }
53
+ export interface ValidateDatabricksAppArtifactResult {
54
+ valid: true;
55
+ output: string;
56
+ }
57
+ /** Validate an already-built Databricks App artifact without mutating the workspace. */
58
+ export declare function validateDatabricksAppArtifact(options: ValidateDatabricksAppArtifactOptions): Promise<ValidateDatabricksAppArtifactResult>;
59
+ /**
60
+ * Deploy an already-built Fabric Harness Databricks App artifact.
61
+ *
62
+ * This is the programmatic counterpart of `fh deploy --target databricks-app`.
63
+ * It intentionally does not rebuild the artifact: release orchestrators can verify
64
+ * the immutable digest first, then use this function for the Databricks side effect.
65
+ */
66
+ export declare function deployDatabricksAppArtifact(options: DeployDatabricksAppArtifactOptions): Promise<DeployDatabricksAppArtifactResult>;
67
+ export declare function runDatabricksCommand(command: string, args: readonly string[], options: {
68
+ cwd: string;
69
+ env: NodeJS.ProcessEnv;
70
+ }): Promise<DatabricksCommandResult>;
71
+ //# sourceMappingURL=app-deployment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-deployment.d.ts","sourceRoot":"","sources":["../src/app-deployment.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,uBAAuB,GAAG,CACpC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAA;CAAE,KAC7C,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAEtC,MAAM,WAAW,kCAAkC;IACjD,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,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