@dench.com/cli 3.0.1-staging.284 → 3.0.2-staging.285
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/app-sdk.d.ts +32 -5
- package/lib/api-schemas.ts +1 -1
- package/package.json +1 -1
package/app-sdk.d.ts
CHANGED
|
@@ -1065,7 +1065,7 @@ export interface ApiRequests {
|
|
|
1065
1065
|
};
|
|
1066
1066
|
/** Click-to-filter chips, same as the strip: each scopes every panel EXCEPT those whose dimensions include `dimension`. */
|
|
1067
1067
|
drillFilters?: {
|
|
1068
|
-
/**
|
|
1068
|
+
/** The bare field the click came from — a panel's groupBy or dateField, or `$location` for a map. Panels drawn along it keep their full picture; every other panel is scoped. */
|
|
1069
1069
|
dimension: string;
|
|
1070
1070
|
/** FilterGroup selecting the clicked bucket. */
|
|
1071
1071
|
filter: Record<string, unknown>;
|
|
@@ -1966,9 +1966,20 @@ export interface ApiRequests {
|
|
|
1966
1966
|
slug?: string;
|
|
1967
1967
|
};
|
|
1968
1968
|
/** Read a workspace file's text. — `dench files cat` — GET /api/v1/files/content */
|
|
1969
|
-
"files.content":
|
|
1969
|
+
"files.content": {
|
|
1970
|
+
/** Workspace file path, e.g. /reports/q2.md. A leading /workspace/ mount prefix is stripped. */
|
|
1971
|
+
path: string;
|
|
1972
|
+
slug?: string;
|
|
1973
|
+
};
|
|
1970
1974
|
/** Write a workspace file's text. — `dench files write` — PUT /api/v1/files/content */
|
|
1971
|
-
"files.write":
|
|
1975
|
+
"files.write": {
|
|
1976
|
+
/** Workspace file path, e.g. /reports/q2.md. A leading /workspace/ mount prefix is stripped. */
|
|
1977
|
+
path: string;
|
|
1978
|
+
/** Full replacement text (UTF-8, <= 400 KB). */
|
|
1979
|
+
content: string;
|
|
1980
|
+
/** contentHash from the last read; the write is rejected with version_mismatch if the file changed since. */
|
|
1981
|
+
expectedPreviousHash?: string;
|
|
1982
|
+
};
|
|
1972
1983
|
/** Get a signed file download URL. — `dench files download` — GET /api/v1/files/download-url */
|
|
1973
1984
|
"files.downloadUrl": {
|
|
1974
1985
|
path: string;
|
|
@@ -4915,8 +4926,24 @@ export interface ApiResponses {
|
|
|
4915
4926
|
virtual?: boolean;
|
|
4916
4927
|
[key: string]: unknown;
|
|
4917
4928
|
}[];
|
|
4918
|
-
"files.content":
|
|
4919
|
-
|
|
4929
|
+
"files.content": {
|
|
4930
|
+
path: string;
|
|
4931
|
+
isDir: boolean;
|
|
4932
|
+
virtual: boolean;
|
|
4933
|
+
size: number | null;
|
|
4934
|
+
mtime?: number | null;
|
|
4935
|
+
/** Inline text, or null for binary / uncached files. */
|
|
4936
|
+
content: string | null;
|
|
4937
|
+
encoding: string | null;
|
|
4938
|
+
contentHash?: string | null;
|
|
4939
|
+
downloadable: boolean;
|
|
4940
|
+
[key: string]: unknown;
|
|
4941
|
+
} | null;
|
|
4942
|
+
"files.write": {
|
|
4943
|
+
/** Normalized workspace path that was written. */
|
|
4944
|
+
path: string;
|
|
4945
|
+
contentHash: string;
|
|
4946
|
+
};
|
|
4920
4947
|
"files.downloadUrl": string | null;
|
|
4921
4948
|
"files.delete": {
|
|
4922
4949
|
path: string;
|
package/lib/api-schemas.ts
CHANGED
|
@@ -3634,7 +3634,7 @@ export const requestSchemas: Record<string, ZodTypeAny> = {
|
|
|
3634
3634
|
dimension: z
|
|
3635
3635
|
.string()
|
|
3636
3636
|
.describe(
|
|
3637
|
-
"
|
|
3637
|
+
"The bare field the click came from — a panel's groupBy or dateField, or `$location` for a map. Panels drawn along it keep their full picture; every other panel is scoped.",
|
|
3638
3638
|
),
|
|
3639
3639
|
filter: z
|
|
3640
3640
|
.record(z.string(), z.unknown())
|