@dmgt/google-ad-manager-api
Version:
Typed Google Ad Manager API
70 lines (67 loc) • 2.47 kB
text/typescript
import {
Client as SoapClient,
createClientAsync as soapCreateClientAsync,
IExOptions as ISoapExOptions,
} from 'soap'
import { CreateMobileApplications } from './definitions/CreateMobileApplications'
import { CreateMobileApplicationsResponse } from './definitions/CreateMobileApplicationsResponse'
import { GetMobileApplicationsByStatement } from './definitions/GetMobileApplicationsByStatement'
import { GetMobileApplicationsByStatementResponse } from './definitions/GetMobileApplicationsByStatementResponse'
import { PerformMobileApplicationAction } from './definitions/PerformMobileApplicationAction'
import { PerformMobileApplicationActionResponse } from './definitions/PerformMobileApplicationActionResponse'
import { UpdateMobileApplications } from './definitions/UpdateMobileApplications'
import { UpdateMobileApplicationsResponse } from './definitions/UpdateMobileApplicationsResponse'
import { MobileApplicationService } from './services/MobileApplicationService'
export interface MobileApplicationServiceClient extends SoapClient {
MobileApplicationService: MobileApplicationService
createMobileApplicationsAsync(
createMobileApplications: CreateMobileApplications,
options?: ISoapExOptions,
): Promise<
[
result: CreateMobileApplicationsResponse,
rawResponse: any,
soapHeader: any,
rawRequest: any,
]
>
getMobileApplicationsByStatementAsync(
getMobileApplicationsByStatement: GetMobileApplicationsByStatement,
options?: ISoapExOptions,
): Promise<
[
result: GetMobileApplicationsByStatementResponse,
rawResponse: any,
soapHeader: any,
rawRequest: any,
]
>
performMobileApplicationActionAsync(
performMobileApplicationAction: PerformMobileApplicationAction,
options?: ISoapExOptions,
): Promise<
[
result: PerformMobileApplicationActionResponse,
rawResponse: any,
soapHeader: any,
rawRequest: any,
]
>
updateMobileApplicationsAsync(
updateMobileApplications: UpdateMobileApplications,
options?: ISoapExOptions,
): Promise<
[
result: UpdateMobileApplicationsResponse,
rawResponse: any,
soapHeader: any,
rawRequest: any,
]
>
}
/** Create MobileApplicationServiceClient */
export function createClientAsync(
...args: Parameters<typeof soapCreateClientAsync>
): Promise<MobileApplicationServiceClient> {
return soapCreateClientAsync(args[0], args[1], args[2]) as any
}