/** * This file is auto-generated by the API client generator. * https://github.com/flowup/api-client-generator * * Avoid editing this file manually unless necessary. * Please report any bugs so they can be addressed in future versions. */ /* tslint:disable */ /* eslint-disable */ import { NgModule, ModuleWithProviders } from '@angular/core'; import { LegacyAPIClient, USE_DOMAIN, USE_HTTP_OPTIONS } from './legacy-api-client.service'; import { GuardedLegacyAPIClient } from './guarded-legacy-api-client.service'; import { APIClientModuleConfig } from '../../types'; export { LegacyAPIClient } from './legacy-api-client.service'; export { LegacyAPIClientInterface } from './legacy-api-client.interface'; export { GuardedLegacyAPIClient } from './guarded-legacy-api-client.service'; @NgModule({}) export class LegacyAPIClientModule { /** * Use this method in your root module to provide the LegacyAPIClientModule * * If you are not providing * @param { APIClientModuleConfig } config * @returns { ModuleWithProviders } */ static forRoot(config: APIClientModuleConfig = {}): ModuleWithProviders { return { ngModule: LegacyAPIClientModule, providers: [ ...(config.domain != null ? [{provide: USE_DOMAIN, useValue: config.domain}] : []), ...(config.httpOptions ? [{provide: USE_HTTP_OPTIONS, useValue: config.httpOptions}] : []), ...(config.guardResponses ? [{provide: LegacyAPIClient, useClass: GuardedLegacyAPIClient }] : [LegacyAPIClient]), ] }; } }