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.
14 lines
428 B
TypeScript
14 lines
428 B
TypeScript
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
|
|
|
const config: ConfigFile = {
|
|
schemaFile: '../schema/compliance.json',
|
|
apiFile: '../../src/store/service/emptyComplianceApi.ts',
|
|
apiImport: 'emptyComplianceApi',
|
|
outputFile: '../../src/store/service/complianceApi.ts',
|
|
exportName: 'complianceApi',
|
|
hooks: true,
|
|
unionUndefined: true,
|
|
filterEndpoints: ['policies', 'policy'],
|
|
};
|
|
|
|
export default config;
|