API: Add programatically generated RHSM API slice definitions

These definitions were generated using the RTKQ code generation tool and
will replace the existing definitions.
This commit is contained in:
lucasgarfield 2023-07-26 15:57:11 +02:00 committed by Lucas Garfield
parent 1894a9dcb2
commit 22df78bffa
11 changed files with 96 additions and 23 deletions

13
api/config/rhsm.ts Normal file
View file

@ -0,0 +1,13 @@
import type { ConfigFile } from '@rtk-query/codegen-openapi'
const config: ConfigFile = {
schemaFile: '../schema/rhsm.json',
apiFile: '../../src/store/emptyRhsmApi.ts',
apiImport: 'emptyRhsmApi',
outputFile: '../../src/store/rhsmApi.ts',
exportName: 'rhsmApi',
hooks: true,
filterEndpoints: ['listActivationKeys', 'showActivationKey'],
}
export default config

1
api/schema/rhsm.json Normal file

File diff suppressed because one or more lines are too long