@lightdash/common 2.84.0 → 2.85.1
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/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/ee/apps/registry.d.ts +27 -82
- package/dist/cjs/ee/apps/registry.d.ts.map +1 -1
- package/dist/cjs/ee/apps/registry.js +2 -0
- package/dist/cjs/ee/apps/registry.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/apps/registry.d.ts +27 -82
- package/dist/esm/ee/apps/registry.d.ts.map +1 -1
- package/dist/esm/ee/apps/registry.js +2 -0
- package/dist/esm/ee/apps/registry.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/apps/registry.d.ts +27 -82
- package/dist/types/ee/apps/registry.d.ts.map +1 -1
- package/dist/types/ee/apps/registry.js +2 -0
- package/dist/types/ee/apps/registry.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,89 +1,36 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type ApiSuccess } from '../../types/api/success';
|
|
3
|
+
import { type DataAppVizSchema } from './types';
|
|
3
4
|
export declare const CHART_REGISTRY_INDEX_SCHEMA_VERSION: 1;
|
|
4
5
|
export declare const isSemverVersion: (value: string) => boolean;
|
|
5
6
|
/** Strict x.y.z numeric compare; throws on anything else. */
|
|
6
7
|
export declare const compareSemverVersions: (left: string, right: string) => -1 | 0 | 1;
|
|
7
|
-
|
|
8
|
-
path:
|
|
9
|
-
sha256:
|
|
10
|
-
}
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
name: z.ZodString;
|
|
34
|
-
label: z.ZodString;
|
|
35
|
-
group: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
|
|
36
|
-
type: z.ZodLiteral<"boolean">;
|
|
37
|
-
default: z.ZodBoolean;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
name: z.ZodString;
|
|
40
|
-
label: z.ZodString;
|
|
41
|
-
group: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
|
|
42
|
-
type: z.ZodLiteral<"select">;
|
|
43
|
-
choices: z.ZodArray<z.ZodObject<{
|
|
44
|
-
value: z.ZodString;
|
|
45
|
-
label: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>;
|
|
47
|
-
default: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
name: z.ZodString;
|
|
50
|
-
label: z.ZodString;
|
|
51
|
-
group: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
|
|
52
|
-
type: z.ZodLiteral<"number">;
|
|
53
|
-
default: z.ZodNumber;
|
|
54
|
-
min: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodNumber>, z.ZodTransform<number | undefined, number | null>>>;
|
|
55
|
-
max: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodNumber>, z.ZodTransform<number | undefined, number | null>>>;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
name: z.ZodString;
|
|
58
|
-
label: z.ZodString;
|
|
59
|
-
group: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
|
|
60
|
-
type: z.ZodLiteral<"text">;
|
|
61
|
-
default: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
name: z.ZodString;
|
|
64
|
-
label: z.ZodString;
|
|
65
|
-
group: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
|
|
66
|
-
type: z.ZodLiteral<"color">;
|
|
67
|
-
default: z.ZodString;
|
|
68
|
-
}, z.core.$strip>], "type">>>;
|
|
69
|
-
colorPalette: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
70
|
-
group: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
|
|
71
|
-
}, z.core.$strip>>>;
|
|
72
|
-
}, z.core.$strip>;
|
|
73
|
-
thumbnail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
74
|
-
screenshots: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
75
|
-
artifacts: z.ZodObject<{
|
|
76
|
-
source: z.ZodObject<{
|
|
77
|
-
path: z.ZodString;
|
|
78
|
-
sha256: z.ZodString;
|
|
79
|
-
}, z.core.$strip>;
|
|
80
|
-
dist: z.ZodObject<{
|
|
81
|
-
path: z.ZodString;
|
|
82
|
-
sha256: z.ZodString;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
}, z.core.$strip>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
|
-
export type ChartRegistryEntry = z.infer<typeof registryEntrySchema>;
|
|
8
|
+
export type ChartRegistryArtifact = {
|
|
9
|
+
path: string;
|
|
10
|
+
sha256: string;
|
|
11
|
+
};
|
|
12
|
+
export type ChartRegistryEntry = {
|
|
13
|
+
slug: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
version: string;
|
|
17
|
+
publishedAt: string;
|
|
18
|
+
tags: string[];
|
|
19
|
+
changelog: string;
|
|
20
|
+
minLightdashVersion: string | null;
|
|
21
|
+
vizSchema: DataAppVizSchema;
|
|
22
|
+
thumbnail: string | null;
|
|
23
|
+
screenshots: string[];
|
|
24
|
+
artifacts: {
|
|
25
|
+
source: ChartRegistryArtifact;
|
|
26
|
+
dist: ChartRegistryArtifact;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type ChartRegistryIndex = {
|
|
30
|
+
schemaVersion: typeof CHART_REGISTRY_INDEX_SCHEMA_VERSION;
|
|
31
|
+
generatedAt: string;
|
|
32
|
+
charts: ChartRegistryEntry[];
|
|
33
|
+
};
|
|
87
34
|
export declare const chartRegistryIndexSchema: z.ZodObject<{
|
|
88
35
|
schemaVersion: z.ZodLiteral<1>;
|
|
89
36
|
generatedAt: z.ZodString;
|
|
@@ -162,7 +109,6 @@ export declare const chartRegistryIndexSchema: z.ZodObject<{
|
|
|
162
109
|
}, z.core.$strip>;
|
|
163
110
|
}, z.core.$strip>>;
|
|
164
111
|
}, z.core.$strip>;
|
|
165
|
-
export type ChartRegistryIndex = z.infer<typeof chartRegistryIndexSchema>;
|
|
166
112
|
export type RegistryChartTypeState = 'not_installed' | 'installed' | 'update_available' | 'incompatible';
|
|
167
113
|
export type RegistryChartTypeListItem = ChartRegistryEntry & {
|
|
168
114
|
state: RegistryChartTypeState;
|
|
@@ -179,5 +125,4 @@ export type ApiInstallRegistryChartTypeResponse = ApiSuccess<{
|
|
|
179
125
|
version: number;
|
|
180
126
|
action: 'installed' | 'upgraded' | 'unchanged';
|
|
181
127
|
}>;
|
|
182
|
-
export {};
|
|
183
128
|
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/ee/apps/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/ee/apps/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,O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MAAM,sBAAsB,GAC5B,eAAe,GACf,WAAW,GACX,kBAAkB,GAClB,cAAc,CAAC;AAErB,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,GAAG;IACzD,KAAK,EAAE,sBAAsB,CAAC;IAC9B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,UAAU,CAAC;IACvD,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,yBAAyB,EAAE,CAAC;CACvC,CAAC,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAAC;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;CAClD,CAAC,CAAC"}
|
|
@@ -49,4 +49,6 @@ export const chartRegistryIndexSchema = z.object({
|
|
|
49
49
|
generatedAt: z.string(),
|
|
50
50
|
charts: z.array(registryEntrySchema),
|
|
51
51
|
});
|
|
52
|
+
const chartRegistryIndexSchemaMatchesApiType = true;
|
|
53
|
+
void chartRegistryIndexSchemaMatchesApiType;
|
|
52
54
|
//# sourceMappingURL=registry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/ee/apps/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/ee/apps/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,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