Provisioning: Update spec and dependencies (#101746)

Co-authored-by: Clarity-89 <homes89@ukr.net>
This commit is contained in:
Ryan McKinley
2025-03-07 10:57:13 +03:00
committed by GitHub
parent aa5f2e43d4
commit f52b6a5a42
23 changed files with 1330 additions and 186 deletions

View File

@ -48,7 +48,21 @@ const config: ConfigFile = {
flattenArg: false,
tag: true,
},
'../public/app/features/provisioning/api/endpoints.gen.ts': {
apiFile: '../public/app/features/provisioning/api/baseAPI.ts',
schemaFile: '../data/openapi/provisioning.grafana.app-v0alpha1.json',
apiImport: 'baseAPI',
filterEndpoints,
argSuffix: 'Arg',
responseSuffix: 'Response',
tag: true,
hooks: true,
},
},
};
function filterEndpoints(name: string) {
return !name.toLowerCase().includes('getapiresources') && !name.toLowerCase().includes('update');
}
export default config;