Since we will need to add other api endpoints, e.g. `contentSourcesApi` for the on-prem frontend, this PR restructures the store directory to make future changes more manageable.
23 lines
627 B
TypeScript
23 lines
627 B
TypeScript
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
|
|
|
const config: ConfigFile = {
|
|
schemaFile: '../schema/contentSources.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',
|
|
'searchRpm',
|
|
'searchPackageGroup',
|
|
'listFeatures',
|
|
'listSnapshotsByDate',
|
|
'bulkImportRepositories',
|
|
],
|
|
};
|
|
|
|
export default config;
|