api: Add osbuild-composer's cloudapi

This commit is contained in:
Sanne Raymaekers 2025-02-05 14:05:59 +01:00 committed by Klara Simickova
parent 76044ddccd
commit a65d17ba4e
4 changed files with 2538 additions and 0 deletions

View file

@ -0,0 +1,17 @@
import type { ConfigFile } from '@rtk-query/codegen-openapi';
const config: ConfigFile = {
schemaFile: '../schema/composerCloudApi.v2.yaml',
apiFile: '../../src/store/cockpit/emptyComposerCloudApi.ts',
apiImport: 'emptyComposerCloudApi',
outputFile: '../../src/store/cockpit/composerCloudApi.ts',
exportName: 'composerCloudApi',
hooks: false,
unionUndefined: true,
filterEndpoints: [
'postCompose',
'getComposeStatus',
],
};
export default config;