V2Wizard: Make convert repository functions exportable

This make `convertSchemaToIBCustomRepo` and `convertSchemaToIBPayloadRepo` functions exportable.
This commit is contained in:
regexowl 2024-03-07 16:35:39 +01:00 committed by Lucas Garfield
parent 7e83c8ecbb
commit 39cb4336b4

View file

@ -133,7 +133,9 @@ const BulkSelect = ({
};
// Utility function to convert from Content Sources to Image Builder custom repo API schema
const convertSchemaToIBCustomRepo = (repo: ApiRepositoryResponseRead) => {
export const convertSchemaToIBCustomRepo = (
repo: ApiRepositoryResponseRead
) => {
const imageBuilderRepo: CustomRepository = {
id: repo.uuid!,
name: repo.name,
@ -150,7 +152,9 @@ const convertSchemaToIBCustomRepo = (repo: ApiRepositoryResponseRead) => {
};
// Utility function to convert from Content Sources to Image Builder payload repo API schema
const convertSchemaToIBPayloadRepo = (repo: ApiRepositoryResponseRead) => {
export const convertSchemaToIBPayloadRepo = (
repo: ApiRepositoryResponseRead
) => {
const imageBuilderRepo: Repository = {
baseurl: repo.url,
rhsm: false,