@dbx-tools/shared-genie 0.6.46 → 0.6.48
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.
- package/README.md +25 -0
- package/index.ts +3 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -1
- package/lib/src/dashboards.d.ts +758 -0
- package/lib/src/dashboards.js +959 -0
- package/lib/src/genie-model.d.ts +4 -4
- package/lib/src/genie-model.js +8 -8
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -3
- package/src/dashboards.ts +1181 -0
- package/src/genie-model.ts +7 -7
package/src/genie-model.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Two related layers live here:
|
|
6
6
|
*
|
|
7
|
-
* 1. Genie wire shapes derived from
|
|
8
|
-
*
|
|
7
|
+
* 1. Genie wire shapes derived from this package's own generated
|
|
8
|
+
* `dashboards` schemas (regenerated from the upstream
|
|
9
9
|
* `@databricks/sdk-experimental` `apis/dashboards/model.d.ts`
|
|
10
10
|
* by the engine's codegen on synth). We extend the SDK schemas where Genie
|
|
11
11
|
* ships fields on the wire that the SDK doesn't currently type:
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
* discriminated union.
|
|
34
34
|
*
|
|
35
35
|
* Pure types: no runtime imports beyond zod + the generated
|
|
36
|
-
*
|
|
36
|
+
* `dashboards` schemas, no Node-only code, safe for browser bundles.
|
|
37
37
|
*
|
|
38
38
|
* @module
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
import { string } from "@dbx-tools/shared-core";
|
|
42
|
-
import { dashboards } from "@dbx-tools/shared-sdk-model";
|
|
43
42
|
import { z } from "zod";
|
|
43
|
+
import * as dashboards from "./dashboards.ts";
|
|
44
44
|
|
|
45
|
-
// The generated SDK schemas live
|
|
46
|
-
//
|
|
47
|
-
// widened schemas below read against short, local names.
|
|
45
|
+
// The generated SDK schemas live in the sibling `./dashboards.ts`, written by the
|
|
46
|
+
// engine's codegen from the upstream `.d.ts`. Alias the handful Genie extends so
|
|
47
|
+
// the widened schemas below read against short, local names.
|
|
48
48
|
const {
|
|
49
49
|
messageStatusSchema: MessageStatusSchema,
|
|
50
50
|
genieAttachmentSchema: SDKGenieAttachmentSchema,
|