import { ApiResponse , RequestOptions } from '../core' ; import { CreateMobileAuthorizationCodeRequest , createMobileAuthorizationCodeRequestSchema , } from '../models/createMobileAuthorizationCodeRequest' ; import { CreateMobileAuthorizationCodeResponse , createMobileAuthorizationCodeResponseSchema , } from '../models/createMobileAuthorizationCodeResponse' ; import { BaseApi } from './baseApi' ; export class MobileAuthorizationApi extends BaseApi { param body return async createMobileAuthorizationCode ( body , requestOptions ? ) { const req = this . createRequest ( 'POST' , '/mobile/authorization-code' ) ; const mapped = req . prepareArgs ( { body : [ body , createMobileAuthorizationCodeRequestSchema ] , } ) ; req . header ( 'Content-Type' , 'application/json' ) ; req . json ( mapped . body ) ; return req . callAsJson ( createMobileAuthorizationCodeResponseSchema , requestOptions ) ; } }