import { BaseModule } from "./base"; import { CreateOAuthCredentialRequest, CreateOAuthCredentialResponse } from "../interface/authentication/create-o-auth-credential"; import { CreateSsoTokenRequest, CreateSsoTokenResponse } from "../interface/authentication/create-sso-token"; import { DeleteOAuthCredentialRequest, DeleteOAuthCredentialResponse } from "../interface/authentication/delete-o-auth-credential"; import { ListOAuthCredentialsRequest, ListOAuthCredentialsResponse } from "../interface/authentication/list-o-auth-credentials"; import { UpdateOAuthCredentialRequest, UpdateOAuthCredentialResponse } from "../interface/authentication/update-o-auth-credential"; import { ValidateLoginRequest, ValidateLoginResponse } from "../interface/authentication/validate-login"; export class WhmcsAuthenticationService extends BaseModule { public async createOAuthCredential(options: CreateOAuthCredentialRequest): Promise { return this.request('CreateOAuthCredential', options); } public async createSsoToken(options: CreateSsoTokenRequest): Promise { return this.request('CreateSsoToken', options); } public async deleteOAuthCredential(options: DeleteOAuthCredentialRequest): Promise { return this.request('DeleteOAuthCredential', options); } public async listOAuthCredentials(options: ListOAuthCredentialsRequest): Promise { return this.request('ListOAuthCredentials', options); } public async updateOAuthCredential(options: UpdateOAuthCredentialRequest): Promise { return this.request('UpdateOAuthCredential', options); } public async validateLogin(options: ValidateLoginRequest): Promise { return this.request('ValidateLogin', options); } }