Schema: Use the latest cuetsy version (#60696)

* Schema: Use the latest cuetsy version

* Schema: Update Permission

* Use latest cuetsy
This commit is contained in:
Alex Khomenko 2023-01-03 14:10:32 +02:00 committed by GitHub
parent f22286df3f
commit b1573104d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 14 deletions

2
go.mod
View File

@ -60,7 +60,7 @@ require (
github.com/google/wire v0.5.0 github.com/google/wire v0.5.0
github.com/gorilla/websocket v1.5.0 github.com/gorilla/websocket v1.5.0
github.com/grafana/alerting v0.0.0-20221221211348-c5ab25d1cb8a github.com/grafana/alerting v0.0.0-20221221211348-c5ab25d1cb8a
github.com/grafana/cuetsy v0.1.1 github.com/grafana/cuetsy v0.1.5
github.com/grafana/grafana-aws-sdk v0.11.0 github.com/grafana/grafana-aws-sdk v0.11.0
github.com/grafana/grafana-azure-sdk-go v1.5.1 github.com/grafana/grafana-azure-sdk-go v1.5.1
github.com/grafana/grafana-plugin-sdk-go v0.147.0 github.com/grafana/grafana-plugin-sdk-go v0.147.0

4
go.sum
View File

@ -1363,8 +1363,8 @@ github.com/grafana/alerting v0.0.0-20221221211348-c5ab25d1cb8a h1:Ros/f8x4rPGiOy
github.com/grafana/alerting v0.0.0-20221221211348-c5ab25d1cb8a/go.mod h1:A+ko8Ui4Ojw9oTi1WMCPH937mFUozN8Y41cqrOfNuy8= github.com/grafana/alerting v0.0.0-20221221211348-c5ab25d1cb8a/go.mod h1:A+ko8Ui4Ojw9oTi1WMCPH937mFUozN8Y41cqrOfNuy8=
github.com/grafana/codejen v0.0.3 h1:tAWxoTUuhgmEqxJPOLtJoxlPBbMULFwKFOcRsPRPXDw= github.com/grafana/codejen v0.0.3 h1:tAWxoTUuhgmEqxJPOLtJoxlPBbMULFwKFOcRsPRPXDw=
github.com/grafana/codejen v0.0.3/go.mod h1:zmwwM/DRyQB7pfuBjTWII3CWtxcXh8LTwAYGfDfpR6s= github.com/grafana/codejen v0.0.3/go.mod h1:zmwwM/DRyQB7pfuBjTWII3CWtxcXh8LTwAYGfDfpR6s=
github.com/grafana/cuetsy v0.1.1 h1:+1jaDDYCpvKlcOWJgBRbkc5+VZIClCEn5mbI+4PLZqM= github.com/grafana/cuetsy v0.1.5 h1:mnFwAXdbqCsyL8r7kkdUMJ4kOAR26cxIPmrZj7JzTeY=
github.com/grafana/cuetsy v0.1.1/go.mod h1:4KWkUOslwvRTpEv7wdQG0jDFTuJmU+0L9x0h4kWxa2A= github.com/grafana/cuetsy v0.1.5/go.mod h1:4KWkUOslwvRTpEv7wdQG0jDFTuJmU+0L9x0h4kWxa2A=
github.com/grafana/dskit v0.0.0-20211011144203-3a88ec0b675f h1:FvvSVEbnGeM2bUivGmsiXTi8URJyBU7TcFEEoRe5wWI= github.com/grafana/dskit v0.0.0-20211011144203-3a88ec0b675f h1:FvvSVEbnGeM2bUivGmsiXTi8URJyBU7TcFEEoRe5wWI=
github.com/grafana/dskit v0.0.0-20211011144203-3a88ec0b675f/go.mod h1:uPG2nyK4CtgNDmWv7qyzYcdI+S90kHHRWvHnBtEMBXM= github.com/grafana/dskit v0.0.0-20211011144203-3a88ec0b675f/go.mod h1:uPG2nyK4CtgNDmWv7qyzYcdI+S90kHHRWvHnBtEMBXM=
github.com/grafana/go-mssqldb v0.0.0-20210326084033-d0ce3c521036 h1:GplhUk6Xes5JIhUUrggPcPBhOn+eT8+WsHiebvq7GgA= github.com/grafana/go-mssqldb v0.0.0-20210326084033-d0ce3c521036 h1:GplhUk6Xes5JIhUUrggPcPBhOn+eT8+WsHiebvq7GgA=

View File

@ -27,7 +27,7 @@ lineage: seqs: [
// Updated indicates when the team was updated. // Updated indicates when the team was updated.
updated: int64 @grafanamaturity(ToMetadata="sys") updated: int64 @grafanamaturity(ToMetadata="sys")
#Permission: 1 | 2 | 4 @cuetsy(kind="enum",memberNames="viewer|editor|admin") #Permission: 1 | 2 | 4 @cuetsy(kind="enum",memberNames="Viewer|Editor|Admin")
}, },
] ]
}, },

View File

@ -102,9 +102,9 @@ export const defaultVariableModel: Partial<VariableModel> = {
}; };
export enum VariableHide { export enum VariableHide {
DontHide = 0, dontHide = 0,
HideLabel = 1, hideLabel = 1,
HideVariable = 2, hideVariable = 2,
} }
export enum LoadingState { export enum LoadingState {
@ -287,7 +287,7 @@ export enum MappingType {
* TODO docs * TODO docs
*/ */
export interface ValueMap { export interface ValueMap {
options: Record<string, unknown>; options: Record<string, ValueMappingResult>;
type: MappingType.ValueToText; type: MappingType.ValueToText;
} }
@ -447,7 +447,7 @@ export interface Panel {
/** /**
* TODO docs - seems to be an old field from old dashboard alerts? * TODO docs - seems to be an old field from old dashboard alerts?
*/ */
thresholds?: Array<any>; thresholds?: Array<unknown>;
/** /**
* TODO docs * TODO docs
* TODO tighter constraint * TODO tighter constraint
@ -456,7 +456,7 @@ export interface Panel {
/** /**
* TODO docs * TODO docs
*/ */
timeRegions?: Array<any>; timeRegions?: Array<unknown>;
/** /**
* TODO docs * TODO docs
* TODO tighter constraint * TODO tighter constraint
@ -494,7 +494,7 @@ export interface FieldConfigSource {
matcher: MatcherConfig; matcher: MatcherConfig;
properties: Array<{ properties: Array<{
id: string; id: string;
value?: any; value?: unknown;
}>; }>;
}>; }>;
} }
@ -505,7 +505,7 @@ export const defaultFieldConfigSource: Partial<FieldConfigSource> = {
export interface MatcherConfig { export interface MatcherConfig {
id: string; id: string;
options?: any; options?: unknown;
} }
export const defaultMatcherConfig: Partial<MatcherConfig> = { export const defaultMatcherConfig: Partial<MatcherConfig> = {
@ -546,7 +546,7 @@ export interface FieldConfig {
/** /**
* The behavior when clicking on a result * The behavior when clicking on a result
*/ */
links?: Array<any>; links?: Array<unknown>;
/** /**
* Convert input values into a display string * Convert input values into a display string
*/ */

View File

@ -18,7 +18,7 @@ export interface Team {
/** /**
* AccessControl metadata associated with a given resource. * AccessControl metadata associated with a given resource.
*/ */
accessControl?: Record<string, unknown>; accessControl?: Record<string, boolean>;
/** /**
* AvatarUrl is the team's avatar URL. * AvatarUrl is the team's avatar URL.
*/ */