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.
36 lines
912 B
TypeScript
36 lines
912 B
TypeScript
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
|
|
|
const config: ConfigFile = {
|
|
schemaFile: '../schema/edge.json',
|
|
apiFile: '../../src/store/service/emptyEdgeApi.ts',
|
|
apiImport: 'emptyEdgeApi',
|
|
outputFile: '../../src/store/service/edgeApi.ts',
|
|
exportName: 'edgeApi',
|
|
hooks: true,
|
|
unionUndefined: true,
|
|
filterEndpoints: [
|
|
'createImage',
|
|
'createImageUpdate',
|
|
'getAllImages',
|
|
'getImageStatusByID',
|
|
'getImageByID',
|
|
'getImageDetailsByID',
|
|
'getImageByOstree',
|
|
'createInstallerForImage',
|
|
'getRepoForImage',
|
|
'getMetadataForImage',
|
|
'createKickStartForImage',
|
|
'checkImageName',
|
|
'retryCreateImage',
|
|
'listAllImageSets',
|
|
'getImageSetsByID',
|
|
'getImageSetsView',
|
|
'getImageSetViewByID',
|
|
'getAllImageSetImagesView',
|
|
'getImageSetsDevicesByID',
|
|
'deleteImageSet',
|
|
'getImageSetImageView',
|
|
],
|
|
};
|
|
|
|
export default config;
|