UNPKG

@datenkraft/bb-fulfillment-api-ts-client

Version:

The fulfillment API TS Client enables you to work with the fulfillment API

186 lines (185 loc) 12.4 kB
/** * Fulfillment 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://fulfillment-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) [Fulfillment API PHP client @Packagist](https://packagist.org/packages/datenkraft/bb-fulfillment-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 { AuthRoleIdentityPaginatedCollection } from '../models'; import { AuthRoleIdentityResource } from '../models'; /** * AuthRoleIdentityApi - axios parameter creator * @export */ export declare const AuthRoleIdentityApiAxiosParamCreator: (configuration?: Configuration) => { /** * Delete one or more role to identity assignments in this resource server * @summary Delete one or more role to identity assignments in this resource server * @param {Array<AuthRoleIdentityResource>} [authRoleIdentityResource] CAUTION If the request is sent with an empty body, all relations are deleted! * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAuthRoleIdentityCollection: (authRoleIdentityResource?: Array<AuthRoleIdentityResource>, options?: AxiosRequestConfig) => Promise<RequestArgs>; /** * Get all role to identity assignments from this resource server * @summary Get all role to identity assignments from this resource server * @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} */ getAuthRoleIdentityCollection: (page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', options?: AxiosRequestConfig) => Promise<RequestArgs>; /** * Create one or more role to identity assignments in this resource server * @summary Create one or more role to identity assignments in this resource server * @param {Array<AuthRoleIdentityResource>} authRoleIdentityResource * @param {*} [options] Override http request option. * @throws {RequiredError} */ postAuthRoleIdentityCollection: (authRoleIdentityResource: Array<AuthRoleIdentityResource>, options?: AxiosRequestConfig) => Promise<RequestArgs>; }; /** * AuthRoleIdentityApi - functional programming interface * @export */ export declare const AuthRoleIdentityApiFp: (configuration?: Configuration) => { /** * Delete one or more role to identity assignments in this resource server * @summary Delete one or more role to identity assignments in this resource server * @param {Array<AuthRoleIdentityResource>} [authRoleIdentityResource] CAUTION If the request is sent with an empty body, all relations are deleted! * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAuthRoleIdentityCollection(authRoleIdentityResource?: Array<AuthRoleIdentityResource>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>; /** * Get all role to identity assignments from this resource server * @summary Get all role to identity assignments from this resource server * @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} */ getAuthRoleIdentityCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthRoleIdentityPaginatedCollection>>; /** * Create one or more role to identity assignments in this resource server * @summary Create one or more role to identity assignments in this resource server * @param {Array<AuthRoleIdentityResource>} authRoleIdentityResource * @param {*} [options] Override http request option. * @throws {RequiredError} */ postAuthRoleIdentityCollection(authRoleIdentityResource: Array<AuthRoleIdentityResource>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthRoleIdentityResource>>>; }; /** * AuthRoleIdentityApi - factory interface * @export */ export declare const AuthRoleIdentityApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Delete one or more role to identity assignments in this resource server * @summary Delete one or more role to identity assignments in this resource server * @param {Array<AuthRoleIdentityResource>} [authRoleIdentityResource] CAUTION If the request is sent with an empty body, all relations are deleted! * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAuthRoleIdentityCollection(authRoleIdentityResource?: Array<AuthRoleIdentityResource>, options?: any): AxiosPromise<void>; /** * Get all role to identity assignments from this resource server * @summary Get all role to identity assignments from this resource server * @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} */ getAuthRoleIdentityCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', options?: any): AxiosPromise<AuthRoleIdentityPaginatedCollection>; /** * Create one or more role to identity assignments in this resource server * @summary Create one or more role to identity assignments in this resource server * @param {Array<AuthRoleIdentityResource>} authRoleIdentityResource * @param {*} [options] Override http request option. * @throws {RequiredError} */ postAuthRoleIdentityCollection(authRoleIdentityResource: Array<AuthRoleIdentityResource>, options?: any): AxiosPromise<Array<AuthRoleIdentityResource>>; }; /** * AuthRoleIdentityApi - interface * @export * @interface AuthRoleIdentityApi */ export interface AuthRoleIdentityApiInterface { /** * Delete one or more role to identity assignments in this resource server * @summary Delete one or more role to identity assignments in this resource server * @param {Array<AuthRoleIdentityResource>} [authRoleIdentityResource] CAUTION If the request is sent with an empty body, all relations are deleted! * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthRoleIdentityApiInterface */ deleteAuthRoleIdentityCollection(authRoleIdentityResource?: Array<AuthRoleIdentityResource>, options?: AxiosRequestConfig): AxiosPromise<void>; /** * Get all role to identity assignments from this resource server * @summary Get all role to identity assignments from this resource server * @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 AuthRoleIdentityApiInterface */ getAuthRoleIdentityCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', options?: AxiosRequestConfig): AxiosPromise<AuthRoleIdentityPaginatedCollection>; /** * Create one or more role to identity assignments in this resource server * @summary Create one or more role to identity assignments in this resource server * @param {Array<AuthRoleIdentityResource>} authRoleIdentityResource * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthRoleIdentityApiInterface */ postAuthRoleIdentityCollection(authRoleIdentityResource: Array<AuthRoleIdentityResource>, options?: AxiosRequestConfig): AxiosPromise<Array<AuthRoleIdentityResource>>; } /** * AuthRoleIdentityApi - object-oriented interface * @export * @class AuthRoleIdentityApi * @extends {BaseAPI} */ export declare class AuthRoleIdentityApi extends BaseAPI implements AuthRoleIdentityApiInterface { /** * Delete one or more role to identity assignments in this resource server * @summary Delete one or more role to identity assignments in this resource server * @param {Array<AuthRoleIdentityResource>} [authRoleIdentityResource] CAUTION If the request is sent with an empty body, all relations are deleted! * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthRoleIdentityApi */ deleteAuthRoleIdentityCollection(authRoleIdentityResource?: Array<AuthRoleIdentityResource>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>; /** * Get all role to identity assignments from this resource server * @summary Get all role to identity assignments from this resource server * @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 AuthRoleIdentityApi */ getAuthRoleIdentityCollection(page?: number, pageSize?: number, paginationMode?: 'default' | 'totalCount', options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthRoleIdentityPaginatedCollection, any>>; /** * Create one or more role to identity assignments in this resource server * @summary Create one or more role to identity assignments in this resource server * @param {Array<AuthRoleIdentityResource>} authRoleIdentityResource * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthRoleIdentityApi */ postAuthRoleIdentityCollection(authRoleIdentityResource: Array<AuthRoleIdentityResource>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthRoleIdentityResource[], any>>; }