/* tslint:disable */ /* eslint-disable */ /** * The Association for Cube Commons * The CubeCommons API caters to each and every whim of the Frontend, i.e. it receives, bundles, packages and formats data exactly as the Frontend needs it. * * The version of the OpenAPI document: 0.9.95 * Contact: tech@cubecommons.ca * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; // @ts-ignore import { AddContentRequest } from '../models'; // @ts-ignore import { AddContentResponse } from '../models'; // @ts-ignore import { DeleteContentResponse } from '../models'; // @ts-ignore import { ErrorResponse } from '../models'; // @ts-ignore import { Filters } from '../models'; // @ts-ignore import { GetContentByProfileIdResponse } from '../models'; // @ts-ignore import { GetContentResponse } from '../models'; // @ts-ignore import { GetVTTResponse } from '../models'; // @ts-ignore import { ReportContentRequest } from '../models'; // @ts-ignore import { SuccessResponse } from '../models'; // @ts-ignore import { UpdateContent } from '../models'; // @ts-ignore import { UpdateContentResponse } from '../models'; // @ts-ignore import { UpdateVTTResponse } from '../models'; // @ts-ignore import { UpdateVttByIdRequest } from '../models'; /** * ContentApi - axios parameter creator * @export */ export const ContentApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Add content. * @summary Add content * @param {AddContentRequest} addContentRequest Add content * @param {*} [options] Override http request option. * @throws {RequiredError} */ addContent: async (addContentRequest: AddContentRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'addContentRequest' is not null or undefined assertParamExists('addContent', 'addContentRequest', addContentRequest) const localVarPath = `/content`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication jwt_logged_in required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(addContentRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Delete content. * @summary Delete content * @param {string} contentId Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteContent: async (contentId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'contentId' is not null or undefined assertParamExists('deleteContent', 'contentId', contentId) const localVarPath = `/content/{contentId}` .replace(`{${"contentId"}}`, encodeURIComponent(String(contentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication jwt_logged_in required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get content details. * @summary Get content details * @param {string} contentId Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getContent: async (contentId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'contentId' is not null or undefined assertParamExists('getContent', 'contentId', contentId) const localVarPath = `/content/{contentId}` .replace(`{${"contentId"}}`, encodeURIComponent(String(contentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication jwt_logged_in required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get content by profile Id * @summary Get content by profile Id * @param {number} offset Offset into the result set * @param {number} limit Max number of items to return * @param {string} profileId ID of profile to return content for * @param {Filters} [filters] Filters for which content is returned * @param {*} [options] Override http request option. * @throws {RequiredError} */ getContentByProfileid: async (offset: number, limit: number, profileId: string, filters?: Filters, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'offset' is not null or undefined assertParamExists('getContentByProfileid', 'offset', offset) // verify required parameter 'limit' is not null or undefined assertParamExists('getContentByProfileid', 'limit', limit) // verify required parameter 'profileId' is not null or undefined assertParamExists('getContentByProfileid', 'profileId', profileId) const localVarPath = `/content`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication jwt_logged_in required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (profileId !== undefined) { localVarQueryParameter['profileId'] = profileId; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get vtt. * @summary Get vtt * @param {string} id Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVtt: async (id: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getVtt', 'id', id) const localVarPath = `/vtt` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication jwt_logged_in required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Report content. * @summary Report content * @param {ReportContentRequest} reportContentRequest Report content * @param {*} [options] Override http request option. * @throws {RequiredError} */ reportContent: async (reportContentRequest: ReportContentRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'reportContentRequest' is not null or undefined assertParamExists('reportContent', 'reportContentRequest', reportContentRequest) const localVarPath = `/report`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication jwt_logged_in required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(reportContentRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update content. * @summary Update content * @param {string} contentId Content ID * @param {UpdateContent} updateContent Update content * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateContent: async (contentId: string, updateContent: UpdateContent, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'contentId' is not null or undefined assertParamExists('updateContent', 'contentId', contentId) // verify required parameter 'updateContent' is not null or undefined assertParamExists('updateContent', 'updateContent', updateContent) const localVarPath = `/content/{contentId}` .replace(`{${"contentId"}}`, encodeURIComponent(String(contentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication jwt_logged_in required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateContent, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update vtt. * @summary Update vtt * @param {string} id Content ID * @param {UpdateVttByIdRequest} updateVttByIdRequest Update vtt * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateVtt: async (id: string, updateVttByIdRequest: UpdateVttByIdRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateVtt', 'id', id) // verify required parameter 'updateVttByIdRequest' is not null or undefined assertParamExists('updateVtt', 'updateVttByIdRequest', updateVttByIdRequest) const localVarPath = `/vtt` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication jwt_logged_in required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateVttByIdRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ContentApi - functional programming interface * @export */ export const ContentApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ContentApiAxiosParamCreator(configuration) return { /** * Add content. * @summary Add content * @param {AddContentRequest} addContentRequest Add content * @param {*} [options] Override http request option. * @throws {RequiredError} */ async addContent(addContentRequest: AddContentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addContent(addContentRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Delete content. * @summary Delete content * @param {string} contentId Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteContent(contentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContent(contentId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get content details. * @summary Get content details * @param {string} contentId Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getContent(contentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getContent(contentId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get content by profile Id * @summary Get content by profile Id * @param {number} offset Offset into the result set * @param {number} limit Max number of items to return * @param {string} profileId ID of profile to return content for * @param {Filters} [filters] Filters for which content is returned * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getContentByProfileid(offset: number, limit: number, profileId: string, filters?: Filters, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getContentByProfileid(offset, limit, profileId, filters, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get vtt. * @summary Get vtt * @param {string} id Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getVtt(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVtt(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Report content. * @summary Report content * @param {ReportContentRequest} reportContentRequest Report content * @param {*} [options] Override http request option. * @throws {RequiredError} */ async reportContent(reportContentRequest: ReportContentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.reportContent(reportContentRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Update content. * @summary Update content * @param {string} contentId Content ID * @param {UpdateContent} updateContent Update content * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateContent(contentId: string, updateContent: UpdateContent, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateContent(contentId, updateContent, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Update vtt. * @summary Update vtt * @param {string} id Content ID * @param {UpdateVttByIdRequest} updateVttByIdRequest Update vtt * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateVtt(id: string, updateVttByIdRequest: UpdateVttByIdRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateVtt(id, updateVttByIdRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } }; /** * ContentApi - factory interface * @export */ export const ContentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ContentApiFp(configuration) return { /** * Add content. * @summary Add content * @param {AddContentRequest} addContentRequest Add content * @param {*} [options] Override http request option. * @throws {RequiredError} */ addContent(addContentRequest: AddContentRequest, options?: any): AxiosPromise { return localVarFp.addContent(addContentRequest, options).then((request) => request(axios, basePath)); }, /** * Delete content. * @summary Delete content * @param {string} contentId Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteContent(contentId: string, options?: any): AxiosPromise { return localVarFp.deleteContent(contentId, options).then((request) => request(axios, basePath)); }, /** * Get content details. * @summary Get content details * @param {string} contentId Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getContent(contentId: string, options?: any): AxiosPromise { return localVarFp.getContent(contentId, options).then((request) => request(axios, basePath)); }, /** * Get content by profile Id * @summary Get content by profile Id * @param {number} offset Offset into the result set * @param {number} limit Max number of items to return * @param {string} profileId ID of profile to return content for * @param {Filters} [filters] Filters for which content is returned * @param {*} [options] Override http request option. * @throws {RequiredError} */ getContentByProfileid(offset: number, limit: number, profileId: string, filters?: Filters, options?: any): AxiosPromise { return localVarFp.getContentByProfileid(offset, limit, profileId, filters, options).then((request) => request(axios, basePath)); }, /** * Get vtt. * @summary Get vtt * @param {string} id Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVtt(id: string, options?: any): AxiosPromise { return localVarFp.getVtt(id, options).then((request) => request(axios, basePath)); }, /** * Report content. * @summary Report content * @param {ReportContentRequest} reportContentRequest Report content * @param {*} [options] Override http request option. * @throws {RequiredError} */ reportContent(reportContentRequest: ReportContentRequest, options?: any): AxiosPromise { return localVarFp.reportContent(reportContentRequest, options).then((request) => request(axios, basePath)); }, /** * Update content. * @summary Update content * @param {string} contentId Content ID * @param {UpdateContent} updateContent Update content * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateContent(contentId: string, updateContent: UpdateContent, options?: any): AxiosPromise { return localVarFp.updateContent(contentId, updateContent, options).then((request) => request(axios, basePath)); }, /** * Update vtt. * @summary Update vtt * @param {string} id Content ID * @param {UpdateVttByIdRequest} updateVttByIdRequest Update vtt * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateVtt(id: string, updateVttByIdRequest: UpdateVttByIdRequest, options?: any): AxiosPromise { return localVarFp.updateVtt(id, updateVttByIdRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * ContentApi - interface * @export * @interface ContentApi */ export interface ContentApiInterface { /** * Add content. * @summary Add content * @param {AddContentRequest} addContentRequest Add content * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApiInterface */ addContent(addContentRequest: AddContentRequest, options?: AxiosRequestConfig): AxiosPromise; /** * Delete content. * @summary Delete content * @param {string} contentId Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApiInterface */ deleteContent(contentId: string, options?: AxiosRequestConfig): AxiosPromise; /** * Get content details. * @summary Get content details * @param {string} contentId Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApiInterface */ getContent(contentId: string, options?: AxiosRequestConfig): AxiosPromise; /** * Get content by profile Id * @summary Get content by profile Id * @param {number} offset Offset into the result set * @param {number} limit Max number of items to return * @param {string} profileId ID of profile to return content for * @param {Filters} [filters] Filters for which content is returned * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApiInterface */ getContentByProfileid(offset: number, limit: number, profileId: string, filters?: Filters, options?: AxiosRequestConfig): AxiosPromise; /** * Get vtt. * @summary Get vtt * @param {string} id Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApiInterface */ getVtt(id: string, options?: AxiosRequestConfig): AxiosPromise; /** * Report content. * @summary Report content * @param {ReportContentRequest} reportContentRequest Report content * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApiInterface */ reportContent(reportContentRequest: ReportContentRequest, options?: AxiosRequestConfig): AxiosPromise; /** * Update content. * @summary Update content * @param {string} contentId Content ID * @param {UpdateContent} updateContent Update content * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApiInterface */ updateContent(contentId: string, updateContent: UpdateContent, options?: AxiosRequestConfig): AxiosPromise; /** * Update vtt. * @summary Update vtt * @param {string} id Content ID * @param {UpdateVttByIdRequest} updateVttByIdRequest Update vtt * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApiInterface */ updateVtt(id: string, updateVttByIdRequest: UpdateVttByIdRequest, options?: AxiosRequestConfig): AxiosPromise; } /** * ContentApi - object-oriented interface * @export * @class ContentApi * @extends {BaseAPI} */ export class ContentApi extends BaseAPI implements ContentApiInterface { /** * Add content. * @summary Add content * @param {AddContentRequest} addContentRequest Add content * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApi */ public addContent(addContentRequest: AddContentRequest, options?: AxiosRequestConfig) { return ContentApiFp(this.configuration).addContent(addContentRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Delete content. * @summary Delete content * @param {string} contentId Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApi */ public deleteContent(contentId: string, options?: AxiosRequestConfig) { return ContentApiFp(this.configuration).deleteContent(contentId, options).then((request) => request(this.axios, this.basePath)); } /** * Get content details. * @summary Get content details * @param {string} contentId Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApi */ public getContent(contentId: string, options?: AxiosRequestConfig) { return ContentApiFp(this.configuration).getContent(contentId, options).then((request) => request(this.axios, this.basePath)); } /** * Get content by profile Id * @summary Get content by profile Id * @param {number} offset Offset into the result set * @param {number} limit Max number of items to return * @param {string} profileId ID of profile to return content for * @param {Filters} [filters] Filters for which content is returned * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApi */ public getContentByProfileid(offset: number, limit: number, profileId: string, filters?: Filters, options?: AxiosRequestConfig) { return ContentApiFp(this.configuration).getContentByProfileid(offset, limit, profileId, filters, options).then((request) => request(this.axios, this.basePath)); } /** * Get vtt. * @summary Get vtt * @param {string} id Content ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApi */ public getVtt(id: string, options?: AxiosRequestConfig) { return ContentApiFp(this.configuration).getVtt(id, options).then((request) => request(this.axios, this.basePath)); } /** * Report content. * @summary Report content * @param {ReportContentRequest} reportContentRequest Report content * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApi */ public reportContent(reportContentRequest: ReportContentRequest, options?: AxiosRequestConfig) { return ContentApiFp(this.configuration).reportContent(reportContentRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Update content. * @summary Update content * @param {string} contentId Content ID * @param {UpdateContent} updateContent Update content * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApi */ public updateContent(contentId: string, updateContent: UpdateContent, options?: AxiosRequestConfig) { return ContentApiFp(this.configuration).updateContent(contentId, updateContent, options).then((request) => request(this.axios, this.basePath)); } /** * Update vtt. * @summary Update vtt * @param {string} id Content ID * @param {UpdateVttByIdRequest} updateVttByIdRequest Update vtt * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContentApi */ public updateVtt(id: string, updateVttByIdRequest: UpdateVttByIdRequest, options?: AxiosRequestConfig) { return ContentApiFp(this.configuration).updateVtt(id, updateVttByIdRequest, options).then((request) => request(this.axios, this.basePath)); } }