UNPKG

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

Version:

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

281 lines (280 loc) 13.8 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 { GetIdentityCollectionResponse } from '../models'; import { Identity } from '../models'; import { NewIdentity } from '../models'; /** * IdentityApi - axios parameter creator * @export */ export declare const IdentityApiAxiosParamCreator: (configuration?: Configuration) => { /** * Delete an Identity by identityId * @summary Delete an Identity by identityId * @param {string} identityId Identity Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteIdentity: (identityId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; /** * Get an Identity by identityId * @summary Get an Identity by identityId * @param {string} identityId Identity Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIdentity: (identityId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; /** * Get a list of Identities * @summary Get a list of Identities * @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 {string} [filterEmail] Email filter * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIdentityCollection: (page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', filterEmail?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; /** * Update one or more fields of an Identity * @summary Update an Identity * @param {string} identityId Identity Id * @param {NewIdentity} newIdentity * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchIdentity: (identityId: string, newIdentity: NewIdentity, options?: AxiosRequestConfig) => Promise<RequestArgs>; /** * Post a new Identity * @summary Post a new Identity * @param {NewIdentity} newIdentity * @param {*} [options] Override http request option. * @throws {RequiredError} */ postIdentity: (newIdentity: NewIdentity, options?: AxiosRequestConfig) => Promise<RequestArgs>; }; /** * IdentityApi - functional programming interface * @export */ export declare const IdentityApiFp: (configuration?: Configuration) => { /** * Delete an Identity by identityId * @summary Delete an Identity by identityId * @param {string} identityId Identity Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteIdentity(identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>; /** * Get an Identity by identityId * @summary Get an Identity by identityId * @param {string} identityId Identity Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIdentity(identityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Identity>>; /** * Get a list of Identities * @summary Get a list of Identities * @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 {string} [filterEmail] Email filter * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIdentityCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', filterEmail?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIdentityCollectionResponse>>; /** * Update one or more fields of an Identity * @summary Update an Identity * @param {string} identityId Identity Id * @param {NewIdentity} newIdentity * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchIdentity(identityId: string, newIdentity: NewIdentity, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Identity>>; /** * Post a new Identity * @summary Post a new Identity * @param {NewIdentity} newIdentity * @param {*} [options] Override http request option. * @throws {RequiredError} */ postIdentity(newIdentity: NewIdentity, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Identity>>; }; /** * IdentityApi - factory interface * @export */ export declare const IdentityApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Delete an Identity by identityId * @summary Delete an Identity by identityId * @param {string} identityId Identity Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteIdentity(identityId: string, options?: any): AxiosPromise<void>; /** * Get an Identity by identityId * @summary Get an Identity by identityId * @param {string} identityId Identity Id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIdentity(identityId: string, options?: any): AxiosPromise<Identity>; /** * Get a list of Identities * @summary Get a list of Identities * @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 {string} [filterEmail] Email filter * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIdentityCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', filterEmail?: string, options?: any): AxiosPromise<GetIdentityCollectionResponse>; /** * Update one or more fields of an Identity * @summary Update an Identity * @param {string} identityId Identity Id * @param {NewIdentity} newIdentity * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchIdentity(identityId: string, newIdentity: NewIdentity, options?: any): AxiosPromise<Identity>; /** * Post a new Identity * @summary Post a new Identity * @param {NewIdentity} newIdentity * @param {*} [options] Override http request option. * @throws {RequiredError} */ postIdentity(newIdentity: NewIdentity, options?: any): AxiosPromise<Identity>; }; /** * IdentityApi - interface * @export * @interface IdentityApi */ export interface IdentityApiInterface { /** * Delete an Identity by identityId * @summary Delete an Identity by identityId * @param {string} identityId Identity Id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IdentityApiInterface */ deleteIdentity(identityId: string, options?: AxiosRequestConfig): AxiosPromise<void>; /** * Get an Identity by identityId * @summary Get an Identity by identityId * @param {string} identityId Identity Id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IdentityApiInterface */ getIdentity(identityId: string, options?: AxiosRequestConfig): AxiosPromise<Identity>; /** * Get a list of Identities * @summary Get a list of Identities * @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 {string} [filterEmail] Email filter * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IdentityApiInterface */ getIdentityCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', filterEmail?: string, options?: AxiosRequestConfig): AxiosPromise<GetIdentityCollectionResponse>; /** * Update one or more fields of an Identity * @summary Update an Identity * @param {string} identityId Identity Id * @param {NewIdentity} newIdentity * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IdentityApiInterface */ patchIdentity(identityId: string, newIdentity: NewIdentity, options?: AxiosRequestConfig): AxiosPromise<Identity>; /** * Post a new Identity * @summary Post a new Identity * @param {NewIdentity} newIdentity * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IdentityApiInterface */ postIdentity(newIdentity: NewIdentity, options?: AxiosRequestConfig): AxiosPromise<Identity>; } /** * IdentityApi - object-oriented interface * @export * @class IdentityApi * @extends {BaseAPI} */ export declare class IdentityApi extends BaseAPI implements IdentityApiInterface { /** * Delete an Identity by identityId * @summary Delete an Identity by identityId * @param {string} identityId Identity Id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IdentityApi */ deleteIdentity(identityId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>; /** * Get an Identity by identityId * @summary Get an Identity by identityId * @param {string} identityId Identity Id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IdentityApi */ getIdentity(identityId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Identity, any>>; /** * Get a list of Identities * @summary Get a list of Identities * @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 {string} [filterEmail] Email filter * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IdentityApi */ getIdentityCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', filterEmail?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetIdentityCollectionResponse, any>>; /** * Update one or more fields of an Identity * @summary Update an Identity * @param {string} identityId Identity Id * @param {NewIdentity} newIdentity * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IdentityApi */ patchIdentity(identityId: string, newIdentity: NewIdentity, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Identity, any>>; /** * Post a new Identity * @summary Post a new Identity * @param {NewIdentity} newIdentity * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IdentityApi */ postIdentity(newIdentity: NewIdentity, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Identity, any>>; }