import {
    Configuration,
    ConfigurationParameters,
} from "../index{{importFileExtension}}";

import {
{{#apiInfo}}
{{#apis}}
    {{classFilename}},
{{/apis}}
{{/apiInfo}}
} from "./index{{importFileExtension}}";

export class Api {
{{#apiInfo}}
{{#apis}}
    public static {{#lambda.camelcase}}{{classFilename}}{{/lambda.camelcase}}: {{classFilename}};
{{/apis}}
{{/apiInfo}}

    public static init(apiBaseConfig: ConfigurationParameters) {
{{#apiInfo}}
{{#apis}}
        Api.{{#lambda.camelcase}}{{classFilename}}{{/lambda.camelcase}} = new {{classFilename}}(new Configuration(apiBaseConfig));
{{/apis}}
{{/apiInfo}}
    }
}
