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.
18 lines
492 B
TypeScript
18 lines
492 B
TypeScript
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
|
|
|
const config: ConfigFile = {
|
|
schemaFile: 'https://console.redhat.com/api/rhsm/v2/openapi.json',
|
|
apiFile: '../../src/store/service/emptyRhsmApi.ts',
|
|
apiImport: 'emptyRhsmApi',
|
|
outputFile: '../../src/store/service/rhsmApi.ts',
|
|
exportName: 'rhsmApi',
|
|
hooks: true,
|
|
unionUndefined: true,
|
|
filterEndpoints: [
|
|
'listActivationKeys',
|
|
'showActivationKey',
|
|
'createActivationKeys',
|
|
],
|
|
};
|
|
|
|
export default config;
|