/** * Do not edit this file it is auto-generated by io-utils / gen-api-models. * See https://github.com/pagopa/io-utils */ import { RequestParams, TypeofApiCall, TypeofApiParams, ReplaceRequestParams } from "italia-ts-commons/lib/requests"; import { GetServiceT, UpdateServiceT, UploadServiceLogoT, GetServicesT, CreateServiceT, UploadOrganizationLogoT, CreateDevelopmentProfileT, GetSubscriptionKeysT, RegenerateSubscriptionKeysT, GetUsersT, CreateUserT, GetUserT, UpdateUserT, UpdateGroupsT, CreateSubscriptionT } from "./requestTypes"; declare type __UNDEFINED_KEY = "_____"; export declare type ApiOperation = TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall & TypeofApiCall; export declare type ParamKeys = keyof (TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams & TypeofApiParams); /** * Defines an adapter for TypeofApiCall which omit one or more parameters in the signature * @param ApiT the type which defines the operation to expose * @param K the parameter to omit. undefined means no parameters will be omitted */ export declare type OmitApiCallParams = (op: TypeofApiCall) => K extends __UNDEFINED_KEY ? TypeofApiCall : TypeofApiCall, K>>>; /** * Defines an adapter for TypeofApiCall which omit one or more parameters in the signature * @param ApiT the type which defines the operation to expose * @param K the parameter to omit. undefined means no parameters will be omitted */ export declare type WithDefaultsT = OmitApiCallParams; /** * Defines a collection of api operations * @param K name of the parameters that the Clients masks from the operations */ export declare type Client = K extends __UNDEFINED_KEY ? { readonly getService: TypeofApiCall; readonly updateService: TypeofApiCall; readonly uploadServiceLogo: TypeofApiCall; readonly getServices: TypeofApiCall; readonly createService: TypeofApiCall; readonly uploadOrganizationLogo: TypeofApiCall; readonly createDevelopmentProfile: TypeofApiCall; readonly getSubscriptionKeys: TypeofApiCall; readonly RegenerateSubscriptionKeys: TypeofApiCall; readonly getUsers: TypeofApiCall; readonly createUser: TypeofApiCall; readonly getUser: TypeofApiCall; readonly updateUser: TypeofApiCall; readonly updateGroups: TypeofApiCall; readonly createSubscription: TypeofApiCall; } : { readonly getService: TypeofApiCall, K>>>; readonly updateService: TypeofApiCall, K>>>; readonly uploadServiceLogo: TypeofApiCall, K>>>; readonly getServices: TypeofApiCall, K>>>; readonly createService: TypeofApiCall, K>>>; readonly uploadOrganizationLogo: TypeofApiCall, K>>>; readonly createDevelopmentProfile: TypeofApiCall, K>>>; readonly getSubscriptionKeys: TypeofApiCall, K>>>; readonly RegenerateSubscriptionKeys: TypeofApiCall, K>>>; readonly getUsers: TypeofApiCall, K>>>; readonly createUser: TypeofApiCall, K>>>; readonly getUser: TypeofApiCall, K>>>; readonly updateUser: TypeofApiCall, K>>>; readonly updateGroups: TypeofApiCall, K>>>; readonly createSubscription: TypeofApiCall, K>>>; }; /** * Create an instance of a client * @param params hash map of parameters thata define the client: * - baseUrl: the base url for every api call (required) * - fetchApi: an implementation of the fetch() web API, depending on the platform (required) * - basePath: optional path to be appended to the baseUrl * - withDefaults: optional adapter to be applied to every operation, to omit some paramenters * @returns a collection of api operations */ export declare function createClient(params: { baseUrl: string; fetchApi: typeof fetch; withDefaults: WithDefaultsT; basePath?: string; }): Client; export declare function createClient(params: { baseUrl: string; fetchApi: typeof fetch; withDefaults?: undefined; basePath?: string; }): Client; export {};