File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed
Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,9 @@ export const dashActions = {
209209 const result = await Dash . read (
210210 dashboardId ,
211211 {
212- includePermissions : includePermissions ? includePermissions . toString ( ) : '0' ,
212+ includePermissionsInfo : includePermissions
213+ ? includePermissions . toString ( )
214+ : '0' ,
213215 includeLinks : includeLinks ? includeLinks . toString ( ) : '0' ,
214216 includeFavorite,
215217 ...( branch ? { branch} : { branch : 'published' } ) ,
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export const getDashArgsSchema = z.strictObject({
6161 includePermissions : z . boolean ( ) . optional ( ) . default ( false ) ,
6262 includeLinks : z . boolean ( ) . optional ( ) . default ( false ) ,
6363 includeFavorite : z . boolean ( ) . optional ( ) . default ( false ) ,
64- branch : z . literal ( [ 'published' , 'saved' ] ) . optional ( ) . default ( 'published' ) ,
64+ branch : z . enum ( [ 'published' , 'saved' ] ) . optional ( ) ,
6565} ) ;
6666
6767export const getDashResultSchema = dashUsSchema ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const getQLChartArgsSchema = z.strictObject({
1313 includePermissions : z . boolean ( ) . optional ( ) ,
1414 includeLinks : z . boolean ( ) . optional ( ) ,
1515 includeFavorite : z . boolean ( ) . optional ( ) ,
16- branch : z . literal ( [ 'saved' , 'published' ] ) . optional ( ) ,
16+ branch : z . enum ( [ 'saved' , 'published' ] ) . optional ( ) ,
1717} ) ;
1818
1919export const getQLChartResultSchema = z . unknown ( ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const getWizardChartArgsSchema = z.strictObject({
1313 includePermissions : z . boolean ( ) . optional ( ) ,
1414 includeLinks : z . boolean ( ) . optional ( ) ,
1515 includeFavorite : z . boolean ( ) . optional ( ) ,
16- branch : z . literal ( [ 'saved' , 'published' ] ) . optional ( ) ,
16+ branch : z . enum ( [ 'saved' , 'published' ] ) . optional ( ) ,
1717} ) ;
1818
1919export const getWizardChartResultSchema = z . unknown ( ) ;
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ export type EntryType = '' | WidgetType;
310310
311311export interface EntryReadParams {
312312 revId ?: string ;
313- includePermissions : string ;
313+ includePermissionsInfo : string ;
314314 includeLinks : string ;
315315 includeFavorite ?: boolean ;
316316 branch ?: string ;
You can’t perform that action at this time.
0 commit comments