UNPKG

@datenkraft/bb-organization-structure-api-ts-client

Version:

The organization-structure API TS Client enables you to work with the organization-structure API

144 lines (143 loc) 8.2 kB
/** * Backbone Organization Structure API * - alpha: Currently developed API version. Subject to major changes. - beta: A semi-stable early access version. New features can be added. Breaking changes are possible. - stable: The API is recommended for use in production. [Changelog](https://organization-structure-api.steve.niceshops.com/v2/docs/changelog.html) All data is transferred in UTF-8 encoding.\\ The API uses stateless HTTP. No cookies have to be kept.\\ Authentication via OAuth2 client credentials flow. [Privacy Policy](https://www.niceshops.com/en/dienstleistungen/data-privacy-policy) [Backbone Organization Structure API PHP client @Packagist](https://packagist.org/packages/datenkraft/bb-organization-structure-api-php-client) * * The version of the OpenAPI document: v2.beta * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import { RequestArgs, BaseAPI } from '../base'; import { GetOrganizationCollectionResponse } from '../models'; import { Organization } from '../models'; /** * OrganizationApi - axios parameter creator * @export */ export declare const OrganizationApiAxiosParamCreator: (configuration?: Configuration) => { /** * Get an Organization by organizationId * @summary Get an Organization by organizationId * @param {string} organizationId Organization Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrganization: (organizationId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; /** * Get a list of organizations * @summary Get a list of organizations * @param {number} [page] The page to read. Default is the first page. * @param {number} [pageSize] The maximum size per page is 100. Default is 100. * @param {'default' | 'totalCount'} [paginationMode] The paginationMode to use: - default: The total number of items in the collection will not be calculated. - totalCount: The total number of items in the collection will be calculated. This can mean loss of performance. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrganizationCollection: (page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', options?: AxiosRequestConfig) => Promise<RequestArgs>; }; /** * OrganizationApi - functional programming interface * @export */ export declare const OrganizationApiFp: (configuration?: Configuration) => { /** * Get an Organization by organizationId * @summary Get an Organization by organizationId * @param {string} organizationId Organization Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>>; /** * Get a list of organizations * @summary Get a list of organizations * @param {number} [page] The page to read. Default is the first page. * @param {number} [pageSize] The maximum size per page is 100. Default is 100. * @param {'default' | 'totalCount'} [paginationMode] The paginationMode to use: - default: The total number of items in the collection will not be calculated. - totalCount: The total number of items in the collection will be calculated. This can mean loss of performance. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrganizationCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationCollectionResponse>>; }; /** * OrganizationApi - factory interface * @export */ export declare const OrganizationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Get an Organization by organizationId * @summary Get an Organization by organizationId * @param {string} organizationId Organization Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrganization(organizationId: string, options?: any): AxiosPromise<Organization>; /** * Get a list of organizations * @summary Get a list of organizations * @param {number} [page] The page to read. Default is the first page. * @param {number} [pageSize] The maximum size per page is 100. Default is 100. * @param {'default' | 'totalCount'} [paginationMode] The paginationMode to use: - default: The total number of items in the collection will not be calculated. - totalCount: The total number of items in the collection will be calculated. This can mean loss of performance. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOrganizationCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', options?: any): AxiosPromise<GetOrganizationCollectionResponse>; }; /** * OrganizationApi - interface * @export * @interface OrganizationApi */ export interface OrganizationApiInterface { /** * Get an Organization by organizationId * @summary Get an Organization by organizationId * @param {string} organizationId Organization Id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OrganizationApiInterface */ getOrganization(organizationId: string, options?: AxiosRequestConfig): AxiosPromise<Organization>; /** * Get a list of organizations * @summary Get a list of organizations * @param {number} [page] The page to read. Default is the first page. * @param {number} [pageSize] The maximum size per page is 100. Default is 100. * @param {'default' | 'totalCount'} [paginationMode] The paginationMode to use: - default: The total number of items in the collection will not be calculated. - totalCount: The total number of items in the collection will be calculated. This can mean loss of performance. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OrganizationApiInterface */ getOrganizationCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', options?: AxiosRequestConfig): AxiosPromise<GetOrganizationCollectionResponse>; } /** * OrganizationApi - object-oriented interface * @export * @class OrganizationApi * @extends {BaseAPI} */ export declare class OrganizationApi extends BaseAPI implements OrganizationApiInterface { /** * Get an Organization by organizationId * @summary Get an Organization by organizationId * @param {string} organizationId Organization Id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OrganizationApi */ getOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Organization, any>>; /** * Get a list of organizations * @summary Get a list of organizations * @param {number} [page] The page to read. Default is the first page. * @param {number} [pageSize] The maximum size per page is 100. Default is 100. * @param {'default' | 'totalCount'} [paginationMode] The paginationMode to use: - default: The total number of items in the collection will not be calculated. - totalCount: The total number of items in the collection will be calculated. This can mean loss of performance. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OrganizationApi */ getOrganizationCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationCollectionResponse, any>>; }