@datenkraft/bb-organization-structure-api-ts-client
Version:
The organization-structure API TS Client enables you to work with the organization-structure API
282 lines (281 loc) • 13.8 kB
TypeScript
/**
* 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 { Customer } from '../models';
import { GetCustomerCollectionResponse } from '../models';
import { NewCustomer } from '../models';
import { PatchCustomer } from '../models';
/**
* CustomerApi - axios parameter creator
* @export
*/
export declare const CustomerApiAxiosParamCreator: (configuration?: Configuration) => {
/**
* Delete a Customer
* @summary Delete a Customer
* @param {string} customerId Customer Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteCustomer: (customerId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Get a Customer by customerId
* @summary Get a Customer by customerId
* @param {string} customerId Customer Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCustomer: (customerId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Get a list of customers
* @summary Get a list of customers
* @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} [filterOrganizationId] Organization Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCustomerCollection: (page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', filterOrganizationId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Update one or more fields of a Customer
* @summary Update a Customer
* @param {string} customerId Customer Id
* @param {PatchCustomer} patchCustomer
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
patchCustomer: (customerId: string, patchCustomer: PatchCustomer, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Add a new Customer
* @summary Add a new Customer
* @param {NewCustomer} newCustomer
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postCustomer: (newCustomer: NewCustomer, options?: AxiosRequestConfig) => Promise<RequestArgs>;
};
/**
* CustomerApi - functional programming interface
* @export
*/
export declare const CustomerApiFp: (configuration?: Configuration) => {
/**
* Delete a Customer
* @summary Delete a Customer
* @param {string} customerId Customer Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteCustomer(customerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
/**
* Get a Customer by customerId
* @summary Get a Customer by customerId
* @param {string} customerId Customer Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCustomer(customerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>>;
/**
* Get a list of customers
* @summary Get a list of customers
* @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} [filterOrganizationId] Organization Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCustomerCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', filterOrganizationId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerCollectionResponse>>;
/**
* Update one or more fields of a Customer
* @summary Update a Customer
* @param {string} customerId Customer Id
* @param {PatchCustomer} patchCustomer
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
patchCustomer(customerId: string, patchCustomer: PatchCustomer, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>>;
/**
* Add a new Customer
* @summary Add a new Customer
* @param {NewCustomer} newCustomer
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postCustomer(newCustomer: NewCustomer, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>>;
};
/**
* CustomerApi - factory interface
* @export
*/
export declare const CustomerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
* Delete a Customer
* @summary Delete a Customer
* @param {string} customerId Customer Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteCustomer(customerId: string, options?: any): AxiosPromise<void>;
/**
* Get a Customer by customerId
* @summary Get a Customer by customerId
* @param {string} customerId Customer Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCustomer(customerId: string, options?: any): AxiosPromise<Customer>;
/**
* Get a list of customers
* @summary Get a list of customers
* @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} [filterOrganizationId] Organization Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCustomerCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', filterOrganizationId?: string, options?: any): AxiosPromise<GetCustomerCollectionResponse>;
/**
* Update one or more fields of a Customer
* @summary Update a Customer
* @param {string} customerId Customer Id
* @param {PatchCustomer} patchCustomer
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
patchCustomer(customerId: string, patchCustomer: PatchCustomer, options?: any): AxiosPromise<Customer>;
/**
* Add a new Customer
* @summary Add a new Customer
* @param {NewCustomer} newCustomer
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postCustomer(newCustomer: NewCustomer, options?: any): AxiosPromise<Customer>;
};
/**
* CustomerApi - interface
* @export
* @interface CustomerApi
*/
export interface CustomerApiInterface {
/**
* Delete a Customer
* @summary Delete a Customer
* @param {string} customerId Customer Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CustomerApiInterface
*/
deleteCustomer(customerId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
/**
* Get a Customer by customerId
* @summary Get a Customer by customerId
* @param {string} customerId Customer Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CustomerApiInterface
*/
getCustomer(customerId: string, options?: AxiosRequestConfig): AxiosPromise<Customer>;
/**
* Get a list of customers
* @summary Get a list of customers
* @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} [filterOrganizationId] Organization Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CustomerApiInterface
*/
getCustomerCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', filterOrganizationId?: string, options?: AxiosRequestConfig): AxiosPromise<GetCustomerCollectionResponse>;
/**
* Update one or more fields of a Customer
* @summary Update a Customer
* @param {string} customerId Customer Id
* @param {PatchCustomer} patchCustomer
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CustomerApiInterface
*/
patchCustomer(customerId: string, patchCustomer: PatchCustomer, options?: AxiosRequestConfig): AxiosPromise<Customer>;
/**
* Add a new Customer
* @summary Add a new Customer
* @param {NewCustomer} newCustomer
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CustomerApiInterface
*/
postCustomer(newCustomer: NewCustomer, options?: AxiosRequestConfig): AxiosPromise<Customer>;
}
/**
* CustomerApi - object-oriented interface
* @export
* @class CustomerApi
* @extends {BaseAPI}
*/
export declare class CustomerApi extends BaseAPI implements CustomerApiInterface {
/**
* Delete a Customer
* @summary Delete a Customer
* @param {string} customerId Customer Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CustomerApi
*/
deleteCustomer(customerId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
/**
* Get a Customer by customerId
* @summary Get a Customer by customerId
* @param {string} customerId Customer Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CustomerApi
*/
getCustomer(customerId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Customer, any>>;
/**
* Get a list of customers
* @summary Get a list of customers
* @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} [filterOrganizationId] Organization Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CustomerApi
*/
getCustomerCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', filterOrganizationId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCustomerCollectionResponse, any>>;
/**
* Update one or more fields of a Customer
* @summary Update a Customer
* @param {string} customerId Customer Id
* @param {PatchCustomer} patchCustomer
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CustomerApi
*/
patchCustomer(customerId: string, patchCustomer: PatchCustomer, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Customer, any>>;
/**
* Add a new Customer
* @summary Add a new Customer
* @param {NewCustomer} newCustomer
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CustomerApi
*/
postCustomer(newCustomer: NewCustomer, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Customer, any>>;
}