import Applications from './applications'; import Attributes from './attributes'; import Authentications from './authentications'; import Changes from './changes'; import Code from './code'; import Domains from './domains'; import EmailVerificationConfirmationForms from './email-verification-confirmation-forms'; import GeneratorServices from './generator-services'; import GeneratorWithServices from './generator-with-services'; import Healthchecks from './healthchecks'; import Items from './items'; import Memberships from './memberships'; import MembershipRequests from './membership-requests'; import Organizations from './organizations'; import PasswordResets from './password-resets'; import PasswordResetRequests from './password-reset-requests'; import Subscriptions from './subscriptions'; import Tokens from './tokens'; import Users from './users'; import Validations from './validations'; import Versions from './versions'; import Watches from './watches'; const enums = { originalType: ['api_json', 'avro_idl', 'service_json', 'swagger'], publication: ['membership_requests.create', 'memberships.create', 'applications.create', 'versions.create'], visibility: ['user', 'organization', 'public'], }; export default class ApibuilderApiClient { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } this.enums = enums; this.applications = new Applications(options); this.attributes = new Attributes(options); this.authentications = new Authentications(options); this.changes = new Changes(options); this.code = new Code(options); this.domains = new Domains(options); this.emailVerificationConfirmationForms = new EmailVerificationConfirmationForms(options); this.generatorServices = new GeneratorServices(options); this.generatorWithServices = new GeneratorWithServices(options); this.healthchecks = new Healthchecks(options); this.items = new Items(options); this.memberships = new Memberships(options); this.membershipRequests = new MembershipRequests(options); this.organizations = new Organizations(options); this.passwordResets = new PasswordResets(options); this.passwordResetRequests = new PasswordResetRequests(options); this.subscriptions = new Subscriptions(options); this.tokens = new Tokens(options); this.users = new Users(options); this.validations = new Validations(options); this.versions = new Versions(options); this.watches = new Watches(options); } }