UNPKG

@veeroute/lss-studio-angular

Version:

OpenAPI client for @veeroute/lss-studio-angular

1,048 lines (1,040 loc) 479 kB
import * as i0 from '@angular/core'; import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule, makeEnvironmentProviders } from '@angular/core'; import * as i1 from '@angular/common/http'; import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http'; const BASE_PATH = new InjectionToken('basePath'); const COLLECTION_FORMATS = { 'csv': ',', 'tsv': ' ', 'ssv': ' ', 'pipes': '|' }; /** * Custom HttpParameterCodec * Workaround for https://github.com/angular/angular/issues/18261 */ class CustomHttpParameterCodec { encodeKey(k) { return encodeURIComponent(k); } encodeValue(v) { return encodeURIComponent(v); } decodeKey(k) { return decodeURIComponent(k); } decodeValue(v) { return decodeURIComponent(v); } } class Configuration { /** * @deprecated Since 5.0. Use credentials instead */ apiKeys; username; password; /** * @deprecated Since 5.0. Use credentials instead */ accessToken; basePath; withCredentials; /** * Takes care of encoding query- and form-parameters. */ encoder; /** * Encoding of various path parameter * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>. * <p> * See {@link README.md} for more details * </p> */ encodeParam; /** * The keys are the names in the securitySchemes section of the OpenAPI * document. They should map to the value used for authentication * minus any standard prefixes such as 'Basic' or 'Bearer'. */ credentials; constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials } = {}) { if (apiKeys) { this.apiKeys = apiKeys; } if (username !== undefined) { this.username = username; } if (password !== undefined) { this.password = password; } if (accessToken !== undefined) { this.accessToken = accessToken; } if (basePath !== undefined) { this.basePath = basePath; } if (withCredentials !== undefined) { this.withCredentials = withCredentials; } if (encoder) { this.encoder = encoder; } this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param)); this.credentials = credentials ?? {}; // init default ApiKeyAuth credential if (!this.credentials['ApiKeyAuth']) { this.credentials['ApiKeyAuth'] = () => { return typeof this.accessToken === 'function' ? this.accessToken() : this.accessToken; }; } } /** * Select the correct content-type to use for a request. * Uses {@link Configuration#isJsonMime} to determine the correct content-type. * If no content type is found return the first found type if the contentTypes is not empty * @param contentTypes - the array of content types that are available for selection * @returns the selected content-type or <code>undefined</code> if no selection could be made. */ selectHeaderContentType(contentTypes) { if (contentTypes.length === 0) { return undefined; } const type = contentTypes.find((x) => this.isJsonMime(x)); if (type === undefined) { return contentTypes[0]; } return type; } /** * Select the correct accept content-type to use for a request. * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type. * If no content type is found return the first found type if the contentTypes is not empty * @param accepts - the array of content types that are available for selection. * @returns the selected content-type or <code>undefined</code> if no selection could be made. */ selectHeaderAccept(accepts) { if (accepts.length === 0) { return undefined; } const type = accepts.find((x) => this.isJsonMime(x)); if (type === undefined) { return accepts[0]; } return type; } /** * Check if the given MIME is a JSON MIME. * JSON MIME examples: * application/json * application/json; charset=UTF8 * APPLICATION/JSON * application/vnd.company+json * @param mime - MIME (Multipurpose Internet Mail Extensions) * @return True if the given MIME is JSON, false otherwise. */ isJsonMime(mime) { const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); } lookupCredential(key) { const value = this.credentials[key]; return typeof value === 'function' ? value() : value; } addCredentialToHeaders(credentialKey, headerName, headers, prefix) { const value = this.lookupCredential(credentialKey); return value ? headers.set(headerName, (prefix ?? '') + value) : headers; } addCredentialToQuery(credentialKey, paramName, query) { const value = this.lookupCredential(credentialKey); return value ? query.set(paramName, value) : query; } defaultEncodeParam(param) { // This implementation exists as fallback for missing configuration // and for backwards compatibility to older typescript-angular generator versions. // It only works for the 'simple' parameter style. // Date-handling only works for the 'date-time' format. // All other styles and Date-formats are probably handled incorrectly. // // But: if that's all you need (i.e.: the most common use-case): no need for customization! const value = param.dataFormat === 'date-time' && param.value instanceof Date ? param.value.toISOString() : param.value; return encodeURIComponent(String(value)); } } /** * VRt.Studio [ST] * * The version of the OpenAPI document: 7.37.3331 * Contact: support@veeroute.com * * NOTE: This class is auto generated by OpenAPI Generator. * Do not edit the class manually. */ class BaseService { basePath = 'https://api.edge7.veeroute.cloud'; defaultHeaders = new HttpHeaders(); configuration; encoder; constructor(basePath, configuration) { this.configuration = configuration || new Configuration(); if (typeof this.configuration.basePath !== 'string') { const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; if (firstBasePath != undefined) { basePath = firstBasePath; } if (typeof basePath !== 'string') { basePath = this.basePath; } this.configuration.basePath = basePath; } this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); } canConsumeForm(consumes) { return consumes.indexOf('multipart/form-data') !== -1; } addToHttpParams(httpParams, value, key, isDeep = false) { // If the value is an object (but not a Date), recursively add its keys. if (typeof value === 'object' && !(value instanceof Date)) { return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep); } return this.addToHttpParamsRecursive(httpParams, value, key); } addToHttpParamsRecursive(httpParams, value, key, isDeep = false) { if (value === null || value === undefined) { return httpParams; } if (typeof value === 'object') { // If JSON format is preferred, key must be provided. if (key != null) { return isDeep ? Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams) : httpParams.append(key, JSON.stringify(value)); } // Otherwise, if it's an array, add each element. if (Array.isArray(value)) { value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); } else if (value instanceof Date) { if (key != null) { httpParams = httpParams.append(key, value.toISOString()); } else { throw Error("key may not be null if value is Date"); } } else { Object.keys(value).forEach(k => { const paramKey = key ? `${key}.${k}` : k; httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey); }); } return httpParams; } else if (key != null) { return httpParams.append(key, value); } throw Error("key may not be null if value is not object or array"); } } /** * VRt.Studio [ST] * * The version of the OpenAPI document: 7.37.3331 * Contact: support@veeroute.com * * NOTE: This class is auto generated by OpenAPI Generator. * Do not edit the class manually. */ /* tslint:disable:no-unused-variable member-ordering */ class BackupsService extends BaseService { httpClient; constructor(httpClient, basePath, configuration) { super(basePath, configuration); this.httpClient = httpClient; } createBackup(requestParameters, observe = 'body', reportProgress = false, options) { const targetFolderKey = requestParameters?.targetFolderKey; if (targetFolderKey === null || targetFolderKey === undefined) { throw new Error('Required parameter targetFolderKey was null or undefined when calling createBackup.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/octet-stream', 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/backups/${this.configuration.encodeParam({ name: "targetFolderKey", value: targetFolderKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } restoreBackup(requestParameters, observe = 'body', reportProgress = false, options) { const targetFolderKey = requestParameters?.targetFolderKey; if (targetFolderKey === null || targetFolderKey === undefined) { throw new Error('Required parameter targetFolderKey was null or undefined when calling restoreBackup.'); } const body = requestParameters?.body; if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling restoreBackup.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; // to determine the Content-Type header const consumes = [ 'application/octet-stream' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected !== undefined) { localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); } let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/backups/${this.configuration.encodeParam({ name: "targetFolderKey", value: targetFolderKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: body, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BackupsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BackupsService, providedIn: 'root' }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BackupsService, decorators: [{ type: Injectable, args: [{ providedIn: 'root' }] }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [BASE_PATH] }] }, { type: Configuration, decorators: [{ type: Optional }] }] }); /** * VRt.Studio [ST] * * The version of the OpenAPI document: 7.37.3331 * Contact: support@veeroute.com * * NOTE: This class is auto generated by OpenAPI Generator. * Do not edit the class manually. */ /* tslint:disable:no-unused-variable member-ordering */ class CustomFieldsService extends BaseService { httpClient; constructor(httpClient, basePath, configuration) { super(basePath, configuration); this.httpClient = httpClient; } createCustomfieldsSettings(requestParameters, observe = 'body', reportProgress = false, options) { const settingsKey = requestParameters?.settingsKey; if (settingsKey === null || settingsKey === undefined) { throw new Error('Required parameter settingsKey was null or undefined when calling createCustomfieldsSettings.'); } const customfieldsSettingsStudio = requestParameters?.customfieldsSettingsStudio; if (customfieldsSettingsStudio === null || customfieldsSettingsStudio === undefined) { throw new Error('Required parameter customfieldsSettingsStudio was null or undefined when calling createCustomfieldsSettings.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected !== undefined) { localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); } let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customfields/${this.configuration.encodeParam({ name: "settingsKey", value: settingsKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: customfieldsSettingsStudio, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } deleteCustomfieldsSettings(requestParameters, observe = 'body', reportProgress = false, options) { const settingsKey = requestParameters?.settingsKey; if (settingsKey === null || settingsKey === undefined) { throw new Error('Required parameter settingsKey was null or undefined when calling deleteCustomfieldsSettings.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customfields/${this.configuration.encodeParam({ name: "settingsKey", value: settingsKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } listCustomfieldsSettings(observe = 'body', reportProgress = false, options) { let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customfields`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } readCustomfieldsSettings(requestParameters, observe = 'body', reportProgress = false, options) { const settingsKey = requestParameters?.settingsKey; if (settingsKey === null || settingsKey === undefined) { throw new Error('Required parameter settingsKey was null or undefined when calling readCustomfieldsSettings.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customfields/${this.configuration.encodeParam({ name: "settingsKey", value: settingsKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } setCustomfieldsSettingsActiveKey(requestParameters, observe = 'body', reportProgress = false, options) { const body = requestParameters?.body; if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling setCustomfieldsSettingsActiveKey.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected !== undefined) { localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); } let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customfields`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: body, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } updateCustomfieldsSettings(requestParameters, observe = 'body', reportProgress = false, options) { const settingsKey = requestParameters?.settingsKey; if (settingsKey === null || settingsKey === undefined) { throw new Error('Required parameter settingsKey was null or undefined when calling updateCustomfieldsSettings.'); } const customfieldsSettingsStudio = requestParameters?.customfieldsSettingsStudio; if (customfieldsSettingsStudio === null || customfieldsSettingsStudio === undefined) { throw new Error('Required parameter customfieldsSettingsStudio was null or undefined when calling updateCustomfieldsSettings.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected !== undefined) { localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); } let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customfields/${this.configuration.encodeParam({ name: "settingsKey", value: settingsKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: customfieldsSettingsStudio, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomFieldsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomFieldsService, providedIn: 'root' }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomFieldsService, decorators: [{ type: Injectable, args: [{ providedIn: 'root' }] }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [BASE_PATH] }] }, { type: Configuration, decorators: [{ type: Optional }] }] }); /** * VRt.Studio [ST] * * The version of the OpenAPI document: 7.37.3331 * Contact: support@veeroute.com * * NOTE: This class is auto generated by OpenAPI Generator. * Do not edit the class manually. */ /* tslint:disable:no-unused-variable member-ordering */ class CustomIconsService extends BaseService { httpClient; constructor(httpClient, basePath, configuration) { super(basePath, configuration); this.httpClient = httpClient; } createCustomiconsSettings(requestParameters, observe = 'body', reportProgress = false, options) { const settingsKey = requestParameters?.settingsKey; if (settingsKey === null || settingsKey === undefined) { throw new Error('Required parameter settingsKey was null or undefined when calling createCustomiconsSettings.'); } const body = requestParameters?.body; if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling createCustomiconsSettings.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; // to determine the Content-Type header const consumes = [ 'application/octet-stream' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected !== undefined) { localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); } let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customicons/${this.configuration.encodeParam({ name: "settingsKey", value: settingsKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: body, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } deleteCustomiconsSettings(requestParameters, observe = 'body', reportProgress = false, options) { const settingsKey = requestParameters?.settingsKey; if (settingsKey === null || settingsKey === undefined) { throw new Error('Required parameter settingsKey was null or undefined when calling deleteCustomiconsSettings.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customicons/${this.configuration.encodeParam({ name: "settingsKey", value: settingsKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } listCustomiconsSettings(observe = 'body', reportProgress = false, options) { let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customicons`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } readCustomiconsSettings(requestParameters, observe = 'body', reportProgress = false, options) { const settingsKey = requestParameters?.settingsKey; if (settingsKey === null || settingsKey === undefined) { throw new Error('Required parameter settingsKey was null or undefined when calling readCustomiconsSettings.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/octet-stream', 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customicons/${this.configuration.encodeParam({ name: "settingsKey", value: settingsKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } setCustomiconsSettingsActiveKey(requestParameters, observe = 'body', reportProgress = false, options) { const body = requestParameters?.body; if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling setCustomiconsSettingsActiveKey.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected !== undefined) { localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); } let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customicons`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: body, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } updateCustomiconsSettings(requestParameters, observe = 'body', reportProgress = false, options) { const settingsKey = requestParameters?.settingsKey; if (settingsKey === null || settingsKey === undefined) { throw new Error('Required parameter settingsKey was null or undefined when calling updateCustomiconsSettings.'); } const body = requestParameters?.body; if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling updateCustomiconsSettings.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; // to determine the Content-Type header const consumes = [ 'application/octet-stream' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected !== undefined) { localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); } let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/settings/customicons/${this.configuration.encodeParam({ name: "settingsKey", value: settingsKey, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: body, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, transferCache: localVarTransferCache, reportProgress: reportProgress }); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomIconsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomIconsService, providedIn: 'root' }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomIconsService, decorators: [{ type: Injectable, args: [{ providedIn: 'root' }] }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [BASE_PATH] }] }, { type: Configuration, decorators: [{ type: Optional }] }] }); /** * VRt.Studio [ST] * * The version of the OpenAPI document: 7.37.3331 * Contact: support@veeroute.com * * NOTE: This class is auto generated by OpenAPI Generator. * Do not edit the class manually. */ /* tslint:disable:no-unused-variable member-ordering */ class ExperimentsService extends BaseService { httpClient; constructor(httpClient, basePath, configuration) { super(basePath, configuration); this.httpClient = httpClient; } createExperiment(requestParameters, observe = 'body', reportProgress = false, options) { const fileSpecificationStudio = requestParameters?.fileSpecificationStudio; if (fileSpecificationStudio === null || fileSpecificationStudio === undefined) { throw new Error('Required parameter fileSpecificationStudio was null or undefined when calling createExperiment.'); } let localVarHeaders = this.defaultHeaders; // authentication (ApiKeyAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('ApiKeyAuth', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ 'application/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } const localVarHttpContext = options?.context ?? new HttpContext(); const localVarTransferCache = options?.transferCache ?? true; // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected !== undefined) { localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); } let responseType_ = 'json'; if (localVarHttpHeaderAcceptSelected) { if (localVarHttpHeaderAcceptSelected.startsWith('text')) { responseType_ = 'text'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { responseType_ = 'json'; } else { responseType_ = 'blob'; } } let localVarPath = `/studio/experiments`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: fileSpecificationStudio, responseType: responseType_, ...(withCrede