/* tslint:disable */ /* eslint-disable */ /** * Identity Security Cloud API - Work Reassignment * Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs. * * The version of the OpenAPI document: v1 * * * 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, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; import type { RequestArgs } from './base'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** * Audit details for the reassignment configuration of an identity * @export * @interface AuditDetails */ export interface AuditDetails { /** * Initial date and time when the record was created * @type {string} * @memberof AuditDetails */ 'created'?: string; /** * * @type {Identity2} * @memberof AuditDetails */ 'createdBy'?: Identity2; /** * Last modified date and time for the record * @type {string} * @memberof AuditDetails */ 'modified'?: string; /** * * @type {Identity2} * @memberof AuditDetails */ 'modifiedBy'?: Identity2; } /** * Type of Reassignment Configuration. * @export * @interface ConfigType */ export interface ConfigType { /** * * @type {number} * @memberof ConfigType */ 'priority'?: number; /** * * @type {ConfigTypeEnumCamel} * @memberof ConfigType */ 'internalName'?: ConfigTypeEnumCamel; /** * * @type {ConfigTypeEnum} * @memberof ConfigType */ 'internalNameCamel'?: ConfigTypeEnum; /** * Human readable display name of the type to be shown on UI * @type {string} * @memberof ConfigType */ 'displayName'?: string; /** * Description of the type of work to be reassigned, displayed by the UI. * @type {string} * @memberof ConfigType */ 'description'?: string; } /** * Enum list of valid work types that can be selected for a Reassignment Configuration * @export * @enum {string} */ export const ConfigTypeEnum = { AccessRequests: 'ACCESS_REQUESTS', Certifications: 'CERTIFICATIONS', ManualTasks: 'MANUAL_TASKS', GenericApprovals: 'GENERIC_APPROVALS' } as const; export type ConfigTypeEnum = typeof ConfigTypeEnum[keyof typeof ConfigTypeEnum]; /** * Enum list of valid work types that can be selected for a Reassignment Configuration * @export * @enum {string} */ export const ConfigTypeEnumCamel = { AccessRequests: 'accessRequests', Certifications: 'certifications', ManualTasks: 'manualTasks' } as const; export type ConfigTypeEnumCamel = typeof ConfigTypeEnumCamel[keyof typeof ConfigTypeEnumCamel]; /** * The request body of Reassignment Configuration Details for a specific identity and config type * @export * @interface ConfigurationDetailsResponse */ export interface ConfigurationDetailsResponse { /** * * @type {ConfigTypeEnum} * @memberof ConfigurationDetailsResponse */ 'configType'?: ConfigTypeEnum; /** * * @type {Identity2} * @memberof ConfigurationDetailsResponse */ 'targetIdentity'?: Identity2; /** * The date from which to start reassigning work items * @type {string} * @memberof ConfigurationDetailsResponse */ 'startDate'?: string; /** * The date from which to stop reassigning work items. If this is an empty string it indicates a permanent reassignment. * @type {string} * @memberof ConfigurationDetailsResponse */ 'endDate'?: string; /** * * @type {AuditDetails} * @memberof ConfigurationDetailsResponse */ 'auditDetails'?: AuditDetails; } /** * The request body for creation or update of a Reassignment Configuration for a single identity and work type * @export * @interface ConfigurationItemRequest */ export interface ConfigurationItemRequest { /** * The identity id to reassign an item from * @type {string} * @memberof ConfigurationItemRequest */ 'reassignedFromId'?: string; /** * The identity id to reassign an item to * @type {string} * @memberof ConfigurationItemRequest */ 'reassignedToId'?: string; /** * * @type {ConfigTypeEnum} * @memberof ConfigurationItemRequest */ 'configType'?: ConfigTypeEnum; /** * The date from which to start reassigning work items * @type {string} * @memberof ConfigurationItemRequest */ 'startDate'?: string; /** * The date from which to stop reassigning work items. If this is an null string it indicates a permanent reassignment. * @type {string} * @memberof ConfigurationItemRequest */ 'endDate'?: string | null; } /** * The response body of a Reassignment Configuration for a single identity * @export * @interface ConfigurationItemResponse */ export interface ConfigurationItemResponse { /** * * @type {Identity2} * @memberof ConfigurationItemResponse */ 'identity'?: Identity2; /** * Details of how work should be reassigned for an Identity * @type {Array} * @memberof ConfigurationItemResponse */ 'configDetails'?: Array; } /** * The response body of a Reassignment Configuration for a single identity * @export * @interface ConfigurationResponse */ export interface ConfigurationResponse { /** * * @type {Identity2} * @memberof ConfigurationResponse */ 'identity'?: Identity2; /** * Details of how work should be reassigned for an Identity * @type {Array} * @memberof ConfigurationResponse */ 'configDetails'?: Array; } /** * * @export * @interface ErrorMessageDto */ export interface ErrorMessageDto { /** * The locale for the message text, a BCP 47 language tag. * @type {string} * @memberof ErrorMessageDto */ 'locale'?: string | null; /** * * @type {LocaleOrigin} * @memberof ErrorMessageDto */ 'localeOrigin'?: LocaleOrigin | null; /** * Actual text of the error message in the indicated locale. * @type {string} * @memberof ErrorMessageDto */ 'text'?: string; } /** * * @export * @interface ErrorResponseDto */ export interface ErrorResponseDto { /** * Fine-grained error code providing more detail of the error. * @type {string} * @memberof ErrorResponseDto */ 'detailCode'?: string; /** * Unique tracking id for the error. * @type {string} * @memberof ErrorResponseDto */ 'trackingId'?: string; /** * Generic localized reason for error * @type {Array} * @memberof ErrorResponseDto */ 'messages'?: Array; /** * Plain-text descriptive reasons to provide additional detail to the text provided in the messages field * @type {Array} * @memberof ErrorResponseDto */ 'causes'?: Array; } /** * The response body for Evaluate Reassignment Configuration * @export * @interface EvaluateResponse */ export interface EvaluateResponse { /** * The Identity ID which should be the recipient of any work items sent to a specific identity & work type * @type {string} * @memberof EvaluateResponse */ 'reassignToId'?: string; /** * List of Reassignments found by looking up the next `TargetIdentity` in a ReassignmentConfiguration * @type {Array} * @memberof EvaluateResponse */ 'lookupTrail'?: Array; } /** * * @export * @interface GetReassignmentConfigTypesV1401Response */ export interface GetReassignmentConfigTypesV1401Response { /** * A message describing the error * @type {any} * @memberof GetReassignmentConfigTypesV1401Response */ 'error'?: any; } /** * * @export * @interface GetReassignmentConfigTypesV1429Response */ export interface GetReassignmentConfigTypesV1429Response { /** * A message describing the error * @type {any} * @memberof GetReassignmentConfigTypesV1429Response */ 'message'?: any; } /** * The definition of an Identity according to the Reassignment Configuration service * @export * @interface Identity2 */ export interface Identity2 { /** * The ID of the object * @type {string} * @memberof Identity2 */ 'id'?: string; /** * Human-readable display name of the object * @type {string} * @memberof Identity2 */ 'name'?: string; } /** * An indicator of how the locale was selected. *DEFAULT* means the locale is the system default. *REQUEST* means the locale was selected from the request context (i.e., best match based on the *Accept-Language* header). Additional values may be added in the future without notice. * @export * @enum {string} */ export const LocaleOrigin = { Default: 'DEFAULT', Request: 'REQUEST' } as const; export type LocaleOrigin = typeof LocaleOrigin[keyof typeof LocaleOrigin]; /** * The definition of an Identity according to the Reassignment Configuration service * @export * @interface LookupStep */ export interface LookupStep { /** * The ID of the Identity who work is reassigned to * @type {string} * @memberof LookupStep */ 'reassignedToId'?: string; /** * The ID of the Identity who work is reassigned from * @type {string} * @memberof LookupStep */ 'reassignedFromId'?: string; /** * * @type {ReassignmentTypeEnum} * @memberof LookupStep */ 'reassignmentType'?: ReassignmentTypeEnum; } /** * Enum list containing types of Reassignment that can be found in the evaluate response. * @export * @enum {string} */ export const ReassignmentTypeEnum = { ManualReassignment: 'MANUAL_REASSIGNMENT,', AutomaticReassignment: 'AUTOMATIC_REASSIGNMENT,', AutoEscalation: 'AUTO_ESCALATION,', SelfReviewDelegation: 'SELF_REVIEW_DELEGATION' } as const; export type ReassignmentTypeEnum = typeof ReassignmentTypeEnum[keyof typeof ReassignmentTypeEnum]; /** * Details of any tenant-wide Reassignment Configurations (eg. enabled/disabled) * @export * @interface TenantConfigurationDetails */ export interface TenantConfigurationDetails { /** * Flag to determine if Reassignment Configuration is enabled or disabled for a tenant. When this flag is set to true, Reassignment Configuration is disabled. * @type {boolean} * @memberof TenantConfigurationDetails */ 'disabled'?: boolean | null; } /** * Tenant-wide Reassignment Configuration settings * @export * @interface TenantConfigurationRequest */ export interface TenantConfigurationRequest { /** * * @type {TenantConfigurationDetails} * @memberof TenantConfigurationRequest */ 'configDetails'?: TenantConfigurationDetails; } /** * Tenant-wide Reassignment Configuration settings * @export * @interface TenantConfigurationResponse */ export interface TenantConfigurationResponse { /** * * @type {AuditDetails} * @memberof TenantConfigurationResponse */ 'auditDetails'?: AuditDetails; /** * * @type {TenantConfigurationDetails} * @memberof TenantConfigurationResponse */ 'configDetails'?: TenantConfigurationDetails; } /** * WorkReassignmentApi - axios parameter creator * @export */ export const WorkReassignmentApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a new Reassignment Configuration for the specified identity. * @summary Create a reassignment configuration * @param {ConfigurationItemRequest} configurationItemRequest * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createReassignmentConfigurationV1: async (configurationItemRequest: ConfigurationItemRequest, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'configurationItemRequest' is not null or undefined assertParamExists('createReassignmentConfigurationV1', 'configurationItemRequest', configurationItemRequest) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/reassignment-configurations/v1`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(configurationItemRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Deletes a single reassignment configuration for the specified identity * @summary Delete reassignment configuration * @param {string} identityId unique identity id * @param {ConfigTypeEnum} configType * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteReassignmentConfigurationV1: async (identityId: string, configType: ConfigTypeEnum, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'identityId' is not null or undefined assertParamExists('deleteReassignmentConfigurationV1', 'identityId', identityId) // verify required parameter 'configType' is not null or undefined assertParamExists('deleteReassignmentConfigurationV1', 'configType', configType) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/reassignment-configurations/v1/{identityId}/{configType}` .replace(`{${"identityId"}}`, encodeURIComponent(String(identityId))) .replace(`{${"configType"}}`, encodeURIComponent(String(configType))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Evaluates the Reassignment Configuration for an `Identity` to determine if work items for the specified type should be reassigned. If a valid Reassignment Configuration is found for the identity & work type, then a lookup is initiated which recursively fetches the Reassignment Configuration for the next `TargetIdentity` until no more results are found or a max depth of 5. That lookup trail is provided in the response and the final reassigned identity in the lookup list is returned as the `reassignToId` property. If no Reassignment Configuration is found for the specified identity & config type then the requested Identity ID will be used as the `reassignToId` value and the lookupTrail node will be empty. * @summary Evaluate reassignment configuration * @param {string} identityId unique identity id * @param {ConfigTypeEnum} configType Reassignment work type * @param {Array} [exclusionFilters] Exclusion filters that disable parts of the reassignment evaluation. Possible values are listed below: - `SELF_REVIEW_DELEGATION`: This will exclude delegations of self-review reassignments * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getEvaluateReassignmentConfigurationV1: async (identityId: string, configType: ConfigTypeEnum, exclusionFilters?: Array, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'identityId' is not null or undefined assertParamExists('getEvaluateReassignmentConfigurationV1', 'identityId', identityId) // verify required parameter 'configType' is not null or undefined assertParamExists('getEvaluateReassignmentConfigurationV1', 'configType', configType) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/reassignment-configurations/v1/{identityId}/evaluate/{configType}` .replace(`{${"identityId"}}`, encodeURIComponent(String(identityId))) .replace(`{${"configType"}}`, encodeURIComponent(String(configType))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (exclusionFilters) { localVarQueryParameter['exclusionFilters'] = exclusionFilters; } if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Gets a collection of types which are available in the Reassignment Configuration UI. * @summary List reassignment config types * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getReassignmentConfigTypesV1: async (xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/reassignment-configurations/v1/types`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Gets the Reassignment Configuration for an identity. * @summary Get reassignment configuration * @param {string} identityId unique identity id * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getReassignmentConfigurationV1: async (identityId: string, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'identityId' is not null or undefined assertParamExists('getReassignmentConfigurationV1', 'identityId', identityId) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/reassignment-configurations/v1/{identityId}` .replace(`{${"identityId"}}`, encodeURIComponent(String(identityId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Gets the global Reassignment Configuration settings for the requestor\'s tenant. * @summary Get tenant-wide reassignment configuration settings * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getTenantConfigConfigurationV1: async (xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/reassignment-configurations/v1/tenant-config`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Gets all Reassignment configuration for the current org. * @summary List reassignment configurations * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listReassignmentConfigurationsV1: async (xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/reassignment-configurations/v1`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Replaces existing Reassignment configuration for an identity with the newly provided configuration. * @summary Update reassignment configuration * @param {string} identityId unique identity id * @param {ConfigurationItemRequest} configurationItemRequest * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ putReassignmentConfigV1: async (identityId: string, configurationItemRequest: ConfigurationItemRequest, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'identityId' is not null or undefined assertParamExists('putReassignmentConfigV1', 'identityId', identityId) // verify required parameter 'configurationItemRequest' is not null or undefined assertParamExists('putReassignmentConfigV1', 'configurationItemRequest', configurationItemRequest) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/reassignment-configurations/v1/{identityId}` .replace(`{${"identityId"}}`, encodeURIComponent(String(identityId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(configurationItemRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Replaces existing Tenant-wide Reassignment Configuration settings with the newly provided settings. * @summary Update tenant-wide reassignment configuration settings * @param {TenantConfigurationRequest} tenantConfigurationRequest * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ putTenantConfigurationV1: async (tenantConfigurationRequest: TenantConfigurationRequest, xSailPointExperimental?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'tenantConfigurationRequest' is not null or undefined assertParamExists('putTenantConfigurationV1', 'tenantConfigurationRequest', tenantConfigurationRequest) if (xSailPointExperimental === undefined) { xSailPointExperimental = 'true'; } const localVarPath = `/reassignment-configurations/v1/tenant-config`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; if (xSailPointExperimental != null) { localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(tenantConfigurationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * WorkReassignmentApi - functional programming interface * @export */ export const WorkReassignmentApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = WorkReassignmentApiAxiosParamCreator(configuration) return { /** * Creates a new Reassignment Configuration for the specified identity. * @summary Create a reassignment configuration * @param {ConfigurationItemRequest} configurationItemRequest * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createReassignmentConfigurationV1(configurationItemRequest: ConfigurationItemRequest, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createReassignmentConfigurationV1(configurationItemRequest, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkReassignmentApi.createReassignmentConfigurationV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a single reassignment configuration for the specified identity * @summary Delete reassignment configuration * @param {string} identityId unique identity id * @param {ConfigTypeEnum} configType * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteReassignmentConfigurationV1(identityId: string, configType: ConfigTypeEnum, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteReassignmentConfigurationV1(identityId, configType, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkReassignmentApi.deleteReassignmentConfigurationV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Evaluates the Reassignment Configuration for an `Identity` to determine if work items for the specified type should be reassigned. If a valid Reassignment Configuration is found for the identity & work type, then a lookup is initiated which recursively fetches the Reassignment Configuration for the next `TargetIdentity` until no more results are found or a max depth of 5. That lookup trail is provided in the response and the final reassigned identity in the lookup list is returned as the `reassignToId` property. If no Reassignment Configuration is found for the specified identity & config type then the requested Identity ID will be used as the `reassignToId` value and the lookupTrail node will be empty. * @summary Evaluate reassignment configuration * @param {string} identityId unique identity id * @param {ConfigTypeEnum} configType Reassignment work type * @param {Array} [exclusionFilters] Exclusion filters that disable parts of the reassignment evaluation. Possible values are listed below: - `SELF_REVIEW_DELEGATION`: This will exclude delegations of self-review reassignments * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getEvaluateReassignmentConfigurationV1(identityId: string, configType: ConfigTypeEnum, exclusionFilters?: Array, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEvaluateReassignmentConfigurationV1(identityId, configType, exclusionFilters, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkReassignmentApi.getEvaluateReassignmentConfigurationV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Gets a collection of types which are available in the Reassignment Configuration UI. * @summary List reassignment config types * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getReassignmentConfigTypesV1(xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getReassignmentConfigTypesV1(xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkReassignmentApi.getReassignmentConfigTypesV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Gets the Reassignment Configuration for an identity. * @summary Get reassignment configuration * @param {string} identityId unique identity id * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getReassignmentConfigurationV1(identityId: string, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getReassignmentConfigurationV1(identityId, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkReassignmentApi.getReassignmentConfigurationV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Gets the global Reassignment Configuration settings for the requestor\'s tenant. * @summary Get tenant-wide reassignment configuration settings * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getTenantConfigConfigurationV1(xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantConfigConfigurationV1(xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkReassignmentApi.getTenantConfigConfigurationV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Gets all Reassignment configuration for the current org. * @summary List reassignment configurations * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async listReassignmentConfigurationsV1(xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listReassignmentConfigurationsV1(xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkReassignmentApi.listReassignmentConfigurationsV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Replaces existing Reassignment configuration for an identity with the newly provided configuration. * @summary Update reassignment configuration * @param {string} identityId unique identity id * @param {ConfigurationItemRequest} configurationItemRequest * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async putReassignmentConfigV1(identityId: string, configurationItemRequest: ConfigurationItemRequest, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.putReassignmentConfigV1(identityId, configurationItemRequest, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkReassignmentApi.putReassignmentConfigV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Replaces existing Tenant-wide Reassignment Configuration settings with the newly provided settings. * @summary Update tenant-wide reassignment configuration settings * @param {TenantConfigurationRequest} tenantConfigurationRequest * @param {string} [xSailPointExperimental] Use this header to enable this experimental API. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async putTenantConfigurationV1(tenantConfigurationRequest: TenantConfigurationRequest, xSailPointExperimental?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.putTenantConfigurationV1(tenantConfigurationRequest, xSailPointExperimental, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkReassignmentApi.putTenantConfigurationV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * WorkReassignmentApi - factory interface * @export */ export const WorkReassignmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = WorkReassignmentApiFp(configuration) return { /** * Creates a new Reassignment Configuration for the specified identity. * @summary Create a reassignment configuration * @param {WorkReassignmentApiCreateReassignmentConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createReassignmentConfigurationV1(requestParameters: WorkReassignmentApiCreateReassignmentConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createReassignmentConfigurationV1(requestParameters.configurationItemRequest, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * Deletes a single reassignment configuration for the specified identity * @summary Delete reassignment configuration * @param {WorkReassignmentApiDeleteReassignmentConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteReassignmentConfigurationV1(requestParameters: WorkReassignmentApiDeleteReassignmentConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteReassignmentConfigurationV1(requestParameters.identityId, requestParameters.configType, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * Evaluates the Reassignment Configuration for an `Identity` to determine if work items for the specified type should be reassigned. If a valid Reassignment Configuration is found for the identity & work type, then a lookup is initiated which recursively fetches the Reassignment Configuration for the next `TargetIdentity` until no more results are found or a max depth of 5. That lookup trail is provided in the response and the final reassigned identity in the lookup list is returned as the `reassignToId` property. If no Reassignment Configuration is found for the specified identity & config type then the requested Identity ID will be used as the `reassignToId` value and the lookupTrail node will be empty. * @summary Evaluate reassignment configuration * @param {WorkReassignmentApiGetEvaluateReassignmentConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getEvaluateReassignmentConfigurationV1(requestParameters: WorkReassignmentApiGetEvaluateReassignmentConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getEvaluateReassignmentConfigurationV1(requestParameters.identityId, requestParameters.configType, requestParameters.exclusionFilters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * Gets a collection of types which are available in the Reassignment Configuration UI. * @summary List reassignment config types * @param {WorkReassignmentApiGetReassignmentConfigTypesV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getReassignmentConfigTypesV1(requestParameters: WorkReassignmentApiGetReassignmentConfigTypesV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getReassignmentConfigTypesV1(requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * Gets the Reassignment Configuration for an identity. * @summary Get reassignment configuration * @param {WorkReassignmentApiGetReassignmentConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getReassignmentConfigurationV1(requestParameters: WorkReassignmentApiGetReassignmentConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getReassignmentConfigurationV1(requestParameters.identityId, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * Gets the global Reassignment Configuration settings for the requestor\'s tenant. * @summary Get tenant-wide reassignment configuration settings * @param {WorkReassignmentApiGetTenantConfigConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getTenantConfigConfigurationV1(requestParameters: WorkReassignmentApiGetTenantConfigConfigurationV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTenantConfigConfigurationV1(requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * Gets all Reassignment configuration for the current org. * @summary List reassignment configurations * @param {WorkReassignmentApiListReassignmentConfigurationsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ listReassignmentConfigurationsV1(requestParameters: WorkReassignmentApiListReassignmentConfigurationsV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listReassignmentConfigurationsV1(requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * Replaces existing Reassignment configuration for an identity with the newly provided configuration. * @summary Update reassignment configuration * @param {WorkReassignmentApiPutReassignmentConfigV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ putReassignmentConfigV1(requestParameters: WorkReassignmentApiPutReassignmentConfigV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.putReassignmentConfigV1(requestParameters.identityId, requestParameters.configurationItemRequest, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, /** * Replaces existing Tenant-wide Reassignment Configuration settings with the newly provided settings. * @summary Update tenant-wide reassignment configuration settings * @param {WorkReassignmentApiPutTenantConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ putTenantConfigurationV1(requestParameters: WorkReassignmentApiPutTenantConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.putTenantConfigurationV1(requestParameters.tenantConfigurationRequest, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createReassignmentConfigurationV1 operation in WorkReassignmentApi. * @export * @interface WorkReassignmentApiCreateReassignmentConfigurationV1Request */ export interface WorkReassignmentApiCreateReassignmentConfigurationV1Request { /** * * @type {ConfigurationItemRequest} * @memberof WorkReassignmentApiCreateReassignmentConfigurationV1 */ readonly configurationItemRequest: ConfigurationItemRequest /** * Use this header to enable this experimental API. * @type {string} * @memberof WorkReassignmentApiCreateReassignmentConfigurationV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for deleteReassignmentConfigurationV1 operation in WorkReassignmentApi. * @export * @interface WorkReassignmentApiDeleteReassignmentConfigurationV1Request */ export interface WorkReassignmentApiDeleteReassignmentConfigurationV1Request { /** * unique identity id * @type {string} * @memberof WorkReassignmentApiDeleteReassignmentConfigurationV1 */ readonly identityId: string /** * * @type {ConfigTypeEnum} * @memberof WorkReassignmentApiDeleteReassignmentConfigurationV1 */ readonly configType: ConfigTypeEnum /** * Use this header to enable this experimental API. * @type {string} * @memberof WorkReassignmentApiDeleteReassignmentConfigurationV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for getEvaluateReassignmentConfigurationV1 operation in WorkReassignmentApi. * @export * @interface WorkReassignmentApiGetEvaluateReassignmentConfigurationV1Request */ export interface WorkReassignmentApiGetEvaluateReassignmentConfigurationV1Request { /** * unique identity id * @type {string} * @memberof WorkReassignmentApiGetEvaluateReassignmentConfigurationV1 */ readonly identityId: string /** * Reassignment work type * @type {ConfigTypeEnum} * @memberof WorkReassignmentApiGetEvaluateReassignmentConfigurationV1 */ readonly configType: ConfigTypeEnum /** * Exclusion filters that disable parts of the reassignment evaluation. Possible values are listed below: - `SELF_REVIEW_DELEGATION`: This will exclude delegations of self-review reassignments * @type {Array} * @memberof WorkReassignmentApiGetEvaluateReassignmentConfigurationV1 */ readonly exclusionFilters?: Array /** * Use this header to enable this experimental API. * @type {string} * @memberof WorkReassignmentApiGetEvaluateReassignmentConfigurationV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for getReassignmentConfigTypesV1 operation in WorkReassignmentApi. * @export * @interface WorkReassignmentApiGetReassignmentConfigTypesV1Request */ export interface WorkReassignmentApiGetReassignmentConfigTypesV1Request { /** * Use this header to enable this experimental API. * @type {string} * @memberof WorkReassignmentApiGetReassignmentConfigTypesV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for getReassignmentConfigurationV1 operation in WorkReassignmentApi. * @export * @interface WorkReassignmentApiGetReassignmentConfigurationV1Request */ export interface WorkReassignmentApiGetReassignmentConfigurationV1Request { /** * unique identity id * @type {string} * @memberof WorkReassignmentApiGetReassignmentConfigurationV1 */ readonly identityId: string /** * Use this header to enable this experimental API. * @type {string} * @memberof WorkReassignmentApiGetReassignmentConfigurationV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for getTenantConfigConfigurationV1 operation in WorkReassignmentApi. * @export * @interface WorkReassignmentApiGetTenantConfigConfigurationV1Request */ export interface WorkReassignmentApiGetTenantConfigConfigurationV1Request { /** * Use this header to enable this experimental API. * @type {string} * @memberof WorkReassignmentApiGetTenantConfigConfigurationV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for listReassignmentConfigurationsV1 operation in WorkReassignmentApi. * @export * @interface WorkReassignmentApiListReassignmentConfigurationsV1Request */ export interface WorkReassignmentApiListReassignmentConfigurationsV1Request { /** * Use this header to enable this experimental API. * @type {string} * @memberof WorkReassignmentApiListReassignmentConfigurationsV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for putReassignmentConfigV1 operation in WorkReassignmentApi. * @export * @interface WorkReassignmentApiPutReassignmentConfigV1Request */ export interface WorkReassignmentApiPutReassignmentConfigV1Request { /** * unique identity id * @type {string} * @memberof WorkReassignmentApiPutReassignmentConfigV1 */ readonly identityId: string /** * * @type {ConfigurationItemRequest} * @memberof WorkReassignmentApiPutReassignmentConfigV1 */ readonly configurationItemRequest: ConfigurationItemRequest /** * Use this header to enable this experimental API. * @type {string} * @memberof WorkReassignmentApiPutReassignmentConfigV1 */ readonly xSailPointExperimental?: string } /** * Request parameters for putTenantConfigurationV1 operation in WorkReassignmentApi. * @export * @interface WorkReassignmentApiPutTenantConfigurationV1Request */ export interface WorkReassignmentApiPutTenantConfigurationV1Request { /** * * @type {TenantConfigurationRequest} * @memberof WorkReassignmentApiPutTenantConfigurationV1 */ readonly tenantConfigurationRequest: TenantConfigurationRequest /** * Use this header to enable this experimental API. * @type {string} * @memberof WorkReassignmentApiPutTenantConfigurationV1 */ readonly xSailPointExperimental?: string } /** * WorkReassignmentApi - object-oriented interface * @export * @class WorkReassignmentApi * @extends {BaseAPI} */ export class WorkReassignmentApi extends BaseAPI { /** * Creates a new Reassignment Configuration for the specified identity. * @summary Create a reassignment configuration * @param {WorkReassignmentApiCreateReassignmentConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkReassignmentApi */ public createReassignmentConfigurationV1(requestParameters: WorkReassignmentApiCreateReassignmentConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig) { return WorkReassignmentApiFp(this.configuration).createReassignmentConfigurationV1(requestParameters.configurationItemRequest, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Deletes a single reassignment configuration for the specified identity * @summary Delete reassignment configuration * @param {WorkReassignmentApiDeleteReassignmentConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkReassignmentApi */ public deleteReassignmentConfigurationV1(requestParameters: WorkReassignmentApiDeleteReassignmentConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig) { return WorkReassignmentApiFp(this.configuration).deleteReassignmentConfigurationV1(requestParameters.identityId, requestParameters.configType, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Evaluates the Reassignment Configuration for an `Identity` to determine if work items for the specified type should be reassigned. If a valid Reassignment Configuration is found for the identity & work type, then a lookup is initiated which recursively fetches the Reassignment Configuration for the next `TargetIdentity` until no more results are found or a max depth of 5. That lookup trail is provided in the response and the final reassigned identity in the lookup list is returned as the `reassignToId` property. If no Reassignment Configuration is found for the specified identity & config type then the requested Identity ID will be used as the `reassignToId` value and the lookupTrail node will be empty. * @summary Evaluate reassignment configuration * @param {WorkReassignmentApiGetEvaluateReassignmentConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkReassignmentApi */ public getEvaluateReassignmentConfigurationV1(requestParameters: WorkReassignmentApiGetEvaluateReassignmentConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig) { return WorkReassignmentApiFp(this.configuration).getEvaluateReassignmentConfigurationV1(requestParameters.identityId, requestParameters.configType, requestParameters.exclusionFilters, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Gets a collection of types which are available in the Reassignment Configuration UI. * @summary List reassignment config types * @param {WorkReassignmentApiGetReassignmentConfigTypesV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkReassignmentApi */ public getReassignmentConfigTypesV1(requestParameters: WorkReassignmentApiGetReassignmentConfigTypesV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return WorkReassignmentApiFp(this.configuration).getReassignmentConfigTypesV1(requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Gets the Reassignment Configuration for an identity. * @summary Get reassignment configuration * @param {WorkReassignmentApiGetReassignmentConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkReassignmentApi */ public getReassignmentConfigurationV1(requestParameters: WorkReassignmentApiGetReassignmentConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig) { return WorkReassignmentApiFp(this.configuration).getReassignmentConfigurationV1(requestParameters.identityId, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Gets the global Reassignment Configuration settings for the requestor\'s tenant. * @summary Get tenant-wide reassignment configuration settings * @param {WorkReassignmentApiGetTenantConfigConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkReassignmentApi */ public getTenantConfigConfigurationV1(requestParameters: WorkReassignmentApiGetTenantConfigConfigurationV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return WorkReassignmentApiFp(this.configuration).getTenantConfigConfigurationV1(requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Gets all Reassignment configuration for the current org. * @summary List reassignment configurations * @param {WorkReassignmentApiListReassignmentConfigurationsV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkReassignmentApi */ public listReassignmentConfigurationsV1(requestParameters: WorkReassignmentApiListReassignmentConfigurationsV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return WorkReassignmentApiFp(this.configuration).listReassignmentConfigurationsV1(requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Replaces existing Reassignment configuration for an identity with the newly provided configuration. * @summary Update reassignment configuration * @param {WorkReassignmentApiPutReassignmentConfigV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkReassignmentApi */ public putReassignmentConfigV1(requestParameters: WorkReassignmentApiPutReassignmentConfigV1Request, axiosOptions?: RawAxiosRequestConfig) { return WorkReassignmentApiFp(this.configuration).putReassignmentConfigV1(requestParameters.identityId, requestParameters.configurationItemRequest, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Replaces existing Tenant-wide Reassignment Configuration settings with the newly provided settings. * @summary Update tenant-wide reassignment configuration settings * @param {WorkReassignmentApiPutTenantConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkReassignmentApi */ public putTenantConfigurationV1(requestParameters: WorkReassignmentApiPutTenantConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig) { return WorkReassignmentApiFp(this.configuration).putTenantConfigurationV1(requestParameters.tenantConfigurationRequest, requestParameters.xSailPointExperimental, axiosOptions).then((request) => request(this.axios, this.basePath)); } }