The api config supports pulling in the openapi schema's via a url, so there isn't a need to pull this in manually and just run the code generation. We also need to remove the `openshift-virt` target since this was removed from image-builder-crc.
26 lines
732 B
TypeScript
26 lines
732 B
TypeScript
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
|
|
|
const config: ConfigFile = {
|
|
schemaFile: 'https://console.redhat.com/api/content-sources/v1/openapi.json',
|
|
apiFile: '../../src/store/service/emptyContentSourcesApi.ts',
|
|
apiImport: 'emptyContentSourcesApi',
|
|
outputFile: '../../src/store/service/contentSourcesApi.ts',
|
|
exportName: 'contentSourcesApi',
|
|
hooks: true,
|
|
unionUndefined: true,
|
|
filterEndpoints: [
|
|
'createRepository',
|
|
'listRepositories',
|
|
'listRepositoriesRpms',
|
|
'listRepositoryParameters',
|
|
'searchRpm',
|
|
'searchPackageGroup',
|
|
'listFeatures',
|
|
'listSnapshotsByDate',
|
|
'bulkImportRepositories',
|
|
'listTemplates',
|
|
'getTemplate',
|
|
],
|
|
};
|
|
|
|
export default config;
|