chore: yarn generate-apis

This commit is contained in:
Mariell Hoversholm committed 2025-01-28 09:43:54 +01:00
1 parent 848216053b
commit c823b1eba9
4 files changed
+1080 -59

No files matched your search

@@ -302,7 +302,7 @@ export type DashboardFullWithMeta = {
dashboard?: Json;
meta?: DashboardMeta;
};
export type LibraryElementDtoMetaUserDefinesModelForLibraryElementDtoMetaUser = {
export type LibraryElementDtoMetaUser = {
avatarUrl?: string;
id?: number;
name?: string;
@@ -310,11 +310,11 @@ export type LibraryElementDtoMetaUserDefinesModelForLibraryElementDtoMetaUser =
export type LibraryElementDtoMetaIsTheMetaInformationForLibraryElementDto = {
connectedDashboards?: number;
created?: string;
createdBy?: LibraryElementDtoMetaUserDefinesModelForLibraryElementDtoMetaUser;
createdBy?: LibraryElementDtoMetaUser;
folderName?: string;
folderUid?: string;
updated?: string;
updatedBy?: LibraryElementDtoMetaUserDefinesModelForLibraryElementDtoMetaUser;
updatedBy?: LibraryElementDtoMetaUser;
};
export type LibraryElementDtoIsTheFrontendDtoForEntities = {
description?: string;
@@ -26,38 +26,32 @@ export type UpdateUserPreferencesApiResponse =
export type UpdateUserPreferencesApiArg = {
updatePrefsCmd: UpdatePrefsCmd;
};
export type CookiePreferencesDefinesModelForCookiePreferences = {
analytics?: {
[key: string]: any;
};
functional?: {
[key: string]: any;
};
performance?: {
[key: string]: any;
};
export type CookiePreferences = {
analytics?: any;
functional?: any;
performance?: any;
};
export type NavbarPreferenceDefinesModelForNavbarPreference = {
export type NavbarPreference = {
bookmarkUrls?: string[];
};
export type QueryHistoryPreferenceDefinesModelForQueryHistoryPreference = {
/** HomeTab one of: '' | 'query' | 'starred'; */
export type QueryHistoryPreference = {
/** one of: '' | 'query' | 'starred'; */
homeTab?: string;
};
export type Preferences = {
cookiePreferences?: CookiePreferencesDefinesModelForCookiePreferences;
cookiePreferences?: CookiePreferences;
/** UID for the home dashboard */
homeDashboardUID?: string;
/** Selected language (beta) */
language?: string;
navbar?: NavbarPreferenceDefinesModelForNavbarPreference;
queryHistory?: QueryHistoryPreferenceDefinesModelForQueryHistoryPreference;
/** Theme light, dark, empty is default */
navbar?: NavbarPreference;
queryHistory?: QueryHistoryPreference;
/** light, dark, empty is default */
theme?: string;
/** The timezone selection
TODO: this should use the timezone defined in common */
timezone?: string;
/** WeekStart day of the week (sunday, monday, etc) */
/** day of the week (sunday, monday, etc) */
weekStart?: string;
};
export type ErrorResponseBody = {
@@ -80,8 +74,8 @@ export type PatchPrefsCmd = {
homeDashboardId?: number;
homeDashboardUID?: string;
language?: string;
navbar?: NavbarPreferenceDefinesModelForNavbarPreference;
queryHistory?: QueryHistoryPreferenceDefinesModelForQueryHistoryPreference;
navbar?: NavbarPreference;
queryHistory?: QueryHistoryPreference;
theme?: 'light' | 'dark';
timezone?: 'utc' | 'browser';
weekStart?: string;
@@ -92,8 +86,8 @@ export type UpdatePrefsCmd = {
homeDashboardId?: number;
homeDashboardUID?: string;
language?: string;
navbar?: NavbarPreferenceDefinesModelForNavbarPreference;
queryHistory?: QueryHistoryPreferenceDefinesModelForQueryHistoryPreference;
navbar?: NavbarPreference;
queryHistory?: QueryHistoryPreference;
theme?: 'light' | 'dark' | 'system';
timezone?: 'utc' | 'browser';
weekStart?: string;
File diff suppressed because it is too large. Load diff
@@ -201,7 +201,6 @@ const injectedRtkApi = api
query: (queryArg) => ({
url: `/repositories/${queryArg.name}/sync`,
method: 'POST',
body: queryArg.body,
}),
invalidatesTags: ['Repository'],
}),
@@ -236,16 +235,19 @@ const injectedRtkApi = api
overrideExisting: false,
});
export { injectedRtkApi as generatedAPI };
export type ListJobResponse = JobList;
export type ListJobArg = {};
export type GetJobResponse = Job;
export type ListJobResponse = JobList;
export type ListJobArg = {
};
export type GetJobResponse = Job;
export type GetJobArg = {
name: string;
pretty?: string;
};
export type ListRepositoryResponse = RepositoryList;
export type ListRepositoryArg = {};
export type CreateRepositoryResponse = Repository;
export type ListRepositoryResponse =
RepositoryList;
export type ListRepositoryArg = {
};
export type CreateRepositoryResponse = | Repository;
export type CreateRepositoryArg = {
pretty?: string;
dryRun?: string;
@@ -253,12 +255,12 @@ export type CreateRepositoryArg = {
fieldValidation?: string;
body: Repository;
};
export type GetRepositoryResponse = Repository;
export type GetRepositoryResponse = Repository;
export type GetRepositoryArg = {
name: string;
pretty?: string;
};
export type ReplaceRepositoryResponse = Repository;
export type ReplaceRepositoryResponse = | Repository;
export type ReplaceRepositoryArg = {
name: string;
pretty?: string;
@@ -267,7 +269,7 @@ export type ReplaceRepositoryArg = {
fieldValidation?: string;
body: Repository;
};
export type DeleteRepositoryResponse = Status;
export type DeleteRepositoryResponse = | Status;
export type DeleteRepositoryArg = {
name: string;
pretty?: string;
@@ -278,7 +280,7 @@ export type DeleteRepositoryArg = {
propagationPolicy?: string;
body: DeleteOptions;
};
export type CreateRepositoryExportResponse = Job;
export type CreateRepositoryExportResponse = Job;
export type CreateRepositoryExportArg = {
name: string;
body: {
@@ -288,7 +290,7 @@ export type CreateRepositoryExportArg = {
prefix?: string;
};
};
export type GetRepositoryFilesResponse = {
export type GetRepositoryFilesResponse = {
apiVersion?: string;
items?: any[];
kind?: string;
@@ -298,13 +300,15 @@ export type GetRepositoryFilesArg = {
name: string;
ref?: string;
};
export type GetRepositoryFilesWithPathResponse = ResourceWrapper;
export type GetRepositoryFilesWithPathResponse =
ResourceWrapper;
export type GetRepositoryFilesWithPathArg = {
name: string;
path: string;
ref?: string;
};
export type ReplaceRepositoryFilesWithPathResponse = ResourceWrapper;
export type ReplaceRepositoryFilesWithPathResponse =
ResourceWrapper;
export type ReplaceRepositoryFilesWithPathArg = {
name: string;
path: string;
@@ -314,7 +318,8 @@ export type ReplaceRepositoryFilesWithPathArg = {
[key: string]: any;
};
};
export type CreateRepositoryFilesWithPathResponse = ResourceWrapper;
export type CreateRepositoryFilesWithPathResponse =
ResourceWrapper;
export type CreateRepositoryFilesWithPathArg = {
name: string;
path: string;
@@ -324,34 +329,37 @@ export type CreateRepositoryFilesWithPathArg = {
[key: string]: any;
};
};
export type DeleteRepositoryFilesWithPathResponse = ResourceWrapper;
export type DeleteRepositoryFilesWithPathResponse =
ResourceWrapper;
export type DeleteRepositoryFilesWithPathArg = {
name: string;
path: string;
ref?: string;
message?: string;
};
export type GetRepositoryHistoryResponse = string;
export type GetRepositoryHistoryResponse = string;
export type GetRepositoryHistoryArg = {
name: string;
ref?: string;
};
export type GetRepositoryHistoryWithPathResponse = string;
export type GetRepositoryHistoryWithPathResponse = string;
export type GetRepositoryHistoryWithPathArg = {
name: string;
path: string;
ref?: string;
};
export type GetRepositoryResourcesResponse = ResourceList;
export type GetRepositoryResourcesResponse =
ResourceList;
export type GetRepositoryResourcesArg = {
name: string;
};
export type GetRepositoryStatusResponse = Repository;
export type GetRepositoryStatusResponse =
Repository;
export type GetRepositoryStatusArg = {
name: string;
pretty?: string;
};
export type ReplaceRepositoryStatusResponse = Repository;
export type ReplaceRepositoryStatusResponse = | Repository;
export type ReplaceRepositoryStatusArg = {
name: string;
pretty?: string;
@@ -360,14 +368,12 @@ export type ReplaceRepositoryStatusArg = {
fieldValidation?: string;
body: Repository;
};
export type CreateRepositorySyncResponse = Job;
export type CreateRepositorySyncResponse = Job;
export type CreateRepositorySyncArg = {
name: string;
body: {
complete?: boolean;
};
};
export type CreateRepositoryTestResponse = TestResults;
export type CreateRepositoryTestResponse =
TestResults;
export type CreateRepositoryTestArg = {
name: string;
body: {
@@ -378,21 +384,24 @@ export type CreateRepositoryTestArg = {
status?: any;
};
};
export type GetRepositoryWebhookResponse = WebhookResponse;
export type GetRepositoryWebhookResponse =
WebhookResponse;
export type GetRepositoryWebhookArg = {
name: string;
};
export type CreateRepositoryWebhookResponse = WebhookResponse;
export type CreateRepositoryWebhookResponse =
WebhookResponse;
export type CreateRepositoryWebhookArg = {
name: string;
};
export type GetResourceStatsResponse = {
export type GetResourceStatsResponse = {
apiVersion?: string;
items?: any[];
kind?: string;
metadata?: any;
};
export type GetResourceStatsArg = {};
export type GetResourceStatsArg = {
};
export type Time = string;
export type FieldsV1 = object;
export type ManagedFieldsEntry = {
@@ -439,9 +448,6 @@ export type ExportOptions = {
history?: boolean;
prefix?: string;
};
export type SyncOptions = {
complete?: boolean;
};
export type PullRequestOptions = {
hash?: string;
pr?: number;
@@ -452,7 +458,6 @@ export type JobSpec = {
action: 'export' | 'pr' | 'sync';
export?: ExportOptions;
pr?: PullRequestOptions;
sync?: SyncOptions;
repository: string;
};
export type JobResourceSummary = {