UNPKG

@revxui/api-clients-ts

Version:

swagger client for @revxui/api-clients-ts

71 lines (70 loc) 5.05 kB
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { ApiResponseObjectListTemplateThemeDTO } from '../model/apiResponseObjectListTemplateThemeDTO'; import { ApiResponseObjectTemplateThemeDTO } from '../model/apiResponseObjectTemplateThemeDTO'; import { TemplateThemeDTO } from '../model/templateThemeDTO'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class CreativeTemplateThemesControllerService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); /** * @param consumes string[] mime-types * @return true: consumes contains 'multipart/form-data', false: otherwise */ private canConsumeForm; /** * Create Creative template theme * * @param themeDTO themeDTO * @param reqId request id * @param token Auth Token * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createTemplateThemeUsingPOST(themeDTO: TemplateThemeDTO, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectTemplateThemeDTO>; createTemplateThemeUsingPOST(themeDTO: TemplateThemeDTO, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectTemplateThemeDTO>>; createTemplateThemeUsingPOST(themeDTO: TemplateThemeDTO, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectTemplateThemeDTO>>; /** * Fetch Creative template based on id * * @param id id * @param reqId request id * @param token Auth Token * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getTemplateThemeByIdUsingGET(id: number, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectTemplateThemeDTO>; getTemplateThemeByIdUsingGET(id: number, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectTemplateThemeDTO>>; getTemplateThemeByIdUsingGET(id: number, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectTemplateThemeDTO>>; /** * Fetch Creative template themes for an advertiser * * @param advertiserId advertiserId * @param reqId request id * @param token Auth Token * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getTemplateThemesUsingGET(advertiserId: number, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectListTemplateThemeDTO>; getTemplateThemesUsingGET(advertiserId: number, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectListTemplateThemeDTO>>; getTemplateThemesUsingGET(advertiserId: number, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectListTemplateThemeDTO>>; /** * Update Creative template theme * * @param id id * @param themeDTO themeDTO * @param reqId request id * @param token Auth Token * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ updateTemplateThemeUsingPOST(id: number, themeDTO: TemplateThemeDTO, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectTemplateThemeDTO>; updateTemplateThemeUsingPOST(id: number, themeDTO: TemplateThemeDTO, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectTemplateThemeDTO>>; updateTemplateThemeUsingPOST(id: number, themeDTO: TemplateThemeDTO, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectTemplateThemeDTO>>; static ɵfac: i0.ɵɵFactoryDeclaration<CreativeTemplateThemesControllerService, [null, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<CreativeTemplateThemesControllerService>; }