/** * EMIL Tenant Service * The EMIL TenantService 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 { CreateDataReportRequestDto } from '../models'; import { CreateDataReportResponseClass } from '../models'; import { GetDataReportResponseClass } from '../models'; import { ListDataReportsResponseClass } from '../models'; import { UpdateDataReportRequestDto } from '../models'; import { UpdateDataReportResponseClass } from '../models'; /** * DataReportApi - axios parameter creator * @export */ export declare const DataReportApiAxiosParamCreator: (configuration?: Configuration) => { /** * This will create a data report for tenant in the database **Required Permissions** \"tenant-management.datareports.create\" * @summary Create the data-report * @param {CreateDataReportRequestDto} createDataReportRequestDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createDataReport: (createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise; /** * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information. **Required Permissions** \"tenant-management.datareports.view\" * @summary Retrieve the data-report * @param {string} code Unique identifier for the object. * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {string} [expand] Fields to expand response by * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDataReport: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise; /** * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.datareports.view\" * @summary List data-reports * @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. * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result. * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC. * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size. * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDataReports: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise; /** * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.datareports.update\" * @summary Update the data-report * @param {string} code * @param {UpdateDataReportRequestDto} updateDataReportRequestDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateDataReport: (code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise; }; /** * DataReportApi - functional programming interface * @export */ export declare const DataReportApiFp: (configuration?: Configuration) => { /** * This will create a data report for tenant in the database **Required Permissions** \"tenant-management.datareports.create\" * @summary Create the data-report * @param {CreateDataReportRequestDto} createDataReportRequestDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createDataReport(createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information. **Required Permissions** \"tenant-management.datareports.view\" * @summary Retrieve the data-report * @param {string} code Unique identifier for the object. * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {string} [expand] Fields to expand response by * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDataReport(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.datareports.view\" * @summary List data-reports * @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. * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result. * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC. * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size. * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDataReports(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.datareports.update\" * @summary Update the data-report * @param {string} code * @param {UpdateDataReportRequestDto} updateDataReportRequestDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateDataReport(code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * DataReportApi - factory interface * @export */ export declare const DataReportApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * This will create a data report for tenant in the database **Required Permissions** \"tenant-management.datareports.create\" * @summary Create the data-report * @param {CreateDataReportRequestDto} createDataReportRequestDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createDataReport(createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: any): AxiosPromise; /** * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information. **Required Permissions** \"tenant-management.datareports.view\" * @summary Retrieve the data-report * @param {string} code Unique identifier for the object. * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {string} [expand] Fields to expand response by * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDataReport(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise; /** * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.datareports.view\" * @summary List data-reports * @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. * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result. * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC. * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size. * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDataReports(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise; /** * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.datareports.update\" * @summary Update the data-report * @param {string} code * @param {UpdateDataReportRequestDto} updateDataReportRequestDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateDataReport(code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, authorization?: string, options?: any): AxiosPromise; }; /** * Request parameters for createDataReport operation in DataReportApi. * @export * @interface DataReportApiCreateDataReportRequest */ export interface DataReportApiCreateDataReportRequest { /** * * @type {CreateDataReportRequestDto} * @memberof DataReportApiCreateDataReport */ readonly createDataReportRequestDto: CreateDataReportRequestDto; /** * Bearer Token: provided by the login endpoint under the name accessToken. * @type {string} * @memberof DataReportApiCreateDataReport */ readonly authorization?: string; } /** * Request parameters for getDataReport operation in DataReportApi. * @export * @interface DataReportApiGetDataReportRequest */ export interface DataReportApiGetDataReportRequest { /** * Unique identifier for the object. * @type {string} * @memberof DataReportApiGetDataReport */ readonly code: string; /** * Bearer Token: provided by the login endpoint under the name accessToken. * @type {string} * @memberof DataReportApiGetDataReport */ readonly authorization?: string; /** * Fields to expand response by * @type {string} * @memberof DataReportApiGetDataReport */ readonly expand?: string; } /** * Request parameters for listDataReports operation in DataReportApi. * @export * @interface DataReportApiListDataReportsRequest */ export interface DataReportApiListDataReportsRequest { /** * Bearer Token: provided by the login endpoint under the name accessToken. * @type {string} * @memberof DataReportApiListDataReports */ readonly authorization?: string; /** * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. * @type {number} * @memberof DataReportApiListDataReports */ 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 DataReportApiListDataReports */ readonly pageToken?: string; /** * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. * @type {string} * @memberof DataReportApiListDataReports */ readonly filter?: string; /** * To search the list by any field, pass search=xxx to fetch the result. * @type {string} * @memberof DataReportApiListDataReports */ readonly search?: string; /** * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC. * @type {string} * @memberof DataReportApiListDataReports */ readonly order?: string; /** * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size. * @type {string} * @memberof DataReportApiListDataReports */ readonly expand?: string; /** * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time. * @type {string} * @memberof DataReportApiListDataReports */ readonly filters?: string; } /** * Request parameters for updateDataReport operation in DataReportApi. * @export * @interface DataReportApiUpdateDataReportRequest */ export interface DataReportApiUpdateDataReportRequest { /** * * @type {string} * @memberof DataReportApiUpdateDataReport */ readonly code: string; /** * * @type {UpdateDataReportRequestDto} * @memberof DataReportApiUpdateDataReport */ readonly updateDataReportRequestDto: UpdateDataReportRequestDto; /** * Bearer Token: provided by the login endpoint under the name accessToken. * @type {string} * @memberof DataReportApiUpdateDataReport */ readonly authorization?: string; } /** * DataReportApi - object-oriented interface * @export * @class DataReportApi * @extends {BaseAPI} */ export declare class DataReportApi extends BaseAPI { /** * This will create a data report for tenant in the database **Required Permissions** \"tenant-management.datareports.create\" * @summary Create the data-report * @param {DataReportApiCreateDataReportRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DataReportApi */ createDataReport(requestParameters: DataReportApiCreateDataReportRequest, options?: AxiosRequestConfig): Promise>; /** * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information. **Required Permissions** \"tenant-management.datareports.view\" * @summary Retrieve the data-report * @param {DataReportApiGetDataReportRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DataReportApi */ getDataReport(requestParameters: DataReportApiGetDataReportRequest, options?: AxiosRequestConfig): Promise>; /** * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.datareports.view\" * @summary List data-reports * @param {DataReportApiListDataReportsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DataReportApi */ listDataReports(requestParameters?: DataReportApiListDataReportsRequest, options?: AxiosRequestConfig): Promise>; /** * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.datareports.update\" * @summary Update the data-report * @param {DataReportApiUpdateDataReportRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DataReportApi */ updateDataReport(requestParameters: DataReportApiUpdateDataReportRequest, options?: AxiosRequestConfig): Promise>; }