/* tslint:disable */ /* eslint-disable */ /** * NERM API * The NERM API accesss and modifies resources in your environment. * * The version of the OpenAPI document: 1.0.0 * * * 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'; /** * * @export * @interface AdvancedSearch1ConditionRulesAttributesInnerNERM */ export interface AdvancedSearch1ConditionRulesAttributesInnerNERM { /** * * @type {string} * @memberof AdvancedSearch1ConditionRulesAttributesInnerNERM */ 'type': AdvancedSearch1ConditionRulesAttributesInnerNERMTypeNerm; /** * * @type {string} * @memberof AdvancedSearch1ConditionRulesAttributesInnerNERM */ 'comparison_operator': AdvancedSearch1ConditionRulesAttributesInnerNERMComparisonOperatorNerm; /** * * @type {string} * @memberof AdvancedSearch1ConditionRulesAttributesInnerNERM */ 'value': string; /** * * @type {string} * @memberof AdvancedSearch1ConditionRulesAttributesInnerNERM */ 'condition_object_type': AdvancedSearch1ConditionRulesAttributesInnerNERMConditionObjectTypeNerm; /** * * @type {string} * @memberof AdvancedSearch1ConditionRulesAttributesInnerNERM */ 'condition_object_id': string; /** * * @type {string} * @memberof AdvancedSearch1ConditionRulesAttributesInnerNERM */ 'secondary_attribute_type'?: AdvancedSearch1ConditionRulesAttributesInnerNERMSecondaryAttributeTypeNerm; /** * * @type {string} * @memberof AdvancedSearch1ConditionRulesAttributesInnerNERM */ 'secondary_attribute_id'?: string; /** * * @type {string} * @memberof AdvancedSearch1ConditionRulesAttributesInnerNERM */ 'secondary_value': AdvancedSearch1ConditionRulesAttributesInnerNERMSecondaryValueNerm; /** * * @type {string} * @memberof AdvancedSearch1ConditionRulesAttributesInnerNERM */ 'tertiary_value'?: string; } export const AdvancedSearch1ConditionRulesAttributesInnerNERMTypeNerm = { ProfileTypeRule: 'ProfileTypeRule', ProfileStatusRule: 'ProfileStatusRule', ProfileAttributeRule: 'ProfileAttributeRule', RiskRule: 'RiskRule' } as const; export type AdvancedSearch1ConditionRulesAttributesInnerNERMTypeNerm = typeof AdvancedSearch1ConditionRulesAttributesInnerNERMTypeNerm[keyof typeof AdvancedSearch1ConditionRulesAttributesInnerNERMTypeNerm]; export const AdvancedSearch1ConditionRulesAttributesInnerNERMComparisonOperatorNerm = { DoubleEqual: '==', GreaterThan: '>', LessThan: '<' } as const; export type AdvancedSearch1ConditionRulesAttributesInnerNERMComparisonOperatorNerm = typeof AdvancedSearch1ConditionRulesAttributesInnerNERMComparisonOperatorNerm[keyof typeof AdvancedSearch1ConditionRulesAttributesInnerNERMComparisonOperatorNerm]; export const AdvancedSearch1ConditionRulesAttributesInnerNERMConditionObjectTypeNerm = { ProfileSelectAttribute: 'ProfileSelectAttribute', ProfileSearchAttribute: 'ProfileSearchAttribute', OwnerSelectAttribute: 'OwnerSelectAttribute', OwnerSearchAttribute: 'OwnerSearchAttribute', ContributorSelectAttribute: 'ContributorSelectAttribute', ContributorSearchAttribute: 'ContributorSearchAttribute' } as const; export type AdvancedSearch1ConditionRulesAttributesInnerNERMConditionObjectTypeNerm = typeof AdvancedSearch1ConditionRulesAttributesInnerNERMConditionObjectTypeNerm[keyof typeof AdvancedSearch1ConditionRulesAttributesInnerNERMConditionObjectTypeNerm]; export const AdvancedSearch1ConditionRulesAttributesInnerNERMSecondaryAttributeTypeNerm = { DateAttribute: 'DateAttribute' } as const; export type AdvancedSearch1ConditionRulesAttributesInnerNERMSecondaryAttributeTypeNerm = typeof AdvancedSearch1ConditionRulesAttributesInnerNERMSecondaryAttributeTypeNerm[keyof typeof AdvancedSearch1ConditionRulesAttributesInnerNERMSecondaryAttributeTypeNerm]; export const AdvancedSearch1ConditionRulesAttributesInnerNERMSecondaryValueNerm = { OverallRisk: 'OverallRisk' } as const; export type AdvancedSearch1ConditionRulesAttributesInnerNERMSecondaryValueNerm = typeof AdvancedSearch1ConditionRulesAttributesInnerNERMSecondaryValueNerm[keyof typeof AdvancedSearch1ConditionRulesAttributesInnerNERMSecondaryValueNerm]; /** * * @export * @interface AdvancedSearch1NERM */ export interface AdvancedSearch1NERM { /** * * @type {string} * @memberof AdvancedSearch1NERM */ 'label'?: string; /** * * @type {Array} * @memberof AdvancedSearch1NERM */ 'condition_rules_attributes'?: Array; } /** * * @export * @interface AdvancedSearchConditionRulesAttributesInnerNERM */ export interface AdvancedSearchConditionRulesAttributesInnerNERM { /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'id'?: string; /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'uid'?: string; /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'type': AdvancedSearchConditionRulesAttributesInnerNERMTypeNerm; /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'comparison_operator': AdvancedSearchConditionRulesAttributesInnerNERMComparisonOperatorNerm; /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'value': string; /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'condition_object_type': AdvancedSearchConditionRulesAttributesInnerNERMConditionObjectTypeNerm; /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'condition_object_id': string; /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'secondary_attribute_type'?: AdvancedSearchConditionRulesAttributesInnerNERMSecondaryAttributeTypeNerm; /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'secondary_attribute_id'?: string; /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'secondary_value': AdvancedSearchConditionRulesAttributesInnerNERMSecondaryValueNerm; /** * * @type {string} * @memberof AdvancedSearchConditionRulesAttributesInnerNERM */ 'tertiary_value'?: string; } export const AdvancedSearchConditionRulesAttributesInnerNERMTypeNerm = { ProfileTypeRule: 'ProfileTypeRule', ProfileStatusRule: 'ProfileStatusRule', ProfileAttributeRule: 'ProfileAttributeRule', RiskRule: 'RiskRule' } as const; export type AdvancedSearchConditionRulesAttributesInnerNERMTypeNerm = typeof AdvancedSearchConditionRulesAttributesInnerNERMTypeNerm[keyof typeof AdvancedSearchConditionRulesAttributesInnerNERMTypeNerm]; export const AdvancedSearchConditionRulesAttributesInnerNERMComparisonOperatorNerm = { DoubleEqual: '==', GreaterThan: '>', LessThan: '<' } as const; export type AdvancedSearchConditionRulesAttributesInnerNERMComparisonOperatorNerm = typeof AdvancedSearchConditionRulesAttributesInnerNERMComparisonOperatorNerm[keyof typeof AdvancedSearchConditionRulesAttributesInnerNERMComparisonOperatorNerm]; export const AdvancedSearchConditionRulesAttributesInnerNERMConditionObjectTypeNerm = { ProfileSelectAttribute: 'ProfileSelectAttribute', ProfileSearchAttribute: 'ProfileSearchAttribute', OwnerSelectAttribute: 'OwnerSelectAttribute', OwnerSearchAttribute: 'OwnerSearchAttribute', ContributorSelectAttribute: 'ContributorSelectAttribute', ContributorSearchAttribute: 'ContributorSearchAttribute' } as const; export type AdvancedSearchConditionRulesAttributesInnerNERMConditionObjectTypeNerm = typeof AdvancedSearchConditionRulesAttributesInnerNERMConditionObjectTypeNerm[keyof typeof AdvancedSearchConditionRulesAttributesInnerNERMConditionObjectTypeNerm]; export const AdvancedSearchConditionRulesAttributesInnerNERMSecondaryAttributeTypeNerm = { DateAttribute: 'DateAttribute' } as const; export type AdvancedSearchConditionRulesAttributesInnerNERMSecondaryAttributeTypeNerm = typeof AdvancedSearchConditionRulesAttributesInnerNERMSecondaryAttributeTypeNerm[keyof typeof AdvancedSearchConditionRulesAttributesInnerNERMSecondaryAttributeTypeNerm]; export const AdvancedSearchConditionRulesAttributesInnerNERMSecondaryValueNerm = { OverallRisk: 'OverallRisk' } as const; export type AdvancedSearchConditionRulesAttributesInnerNERMSecondaryValueNerm = typeof AdvancedSearchConditionRulesAttributesInnerNERMSecondaryValueNerm[keyof typeof AdvancedSearchConditionRulesAttributesInnerNERMSecondaryValueNerm]; /** * * @export * @interface AdvancedSearchNERM */ export interface AdvancedSearchNERM { /** * * @type {string} * @memberof AdvancedSearchNERM */ 'id'?: string; /** * * @type {string} * @memberof AdvancedSearchNERM */ 'uid'?: string; /** * * @type {string} * @memberof AdvancedSearchNERM */ 'label'?: string; /** * * @type {Array} * @memberof AdvancedSearchNERM */ 'condition_rules_attributes'?: Array; } /** * * @export * @interface ApprovalActionNERM */ export interface ApprovalActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof ApprovalActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof ApprovalActionNERM */ 'description'?: string; /** * The page the workflow action should render. * @type {string} * @memberof ApprovalActionNERM */ 'page_id': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof ApprovalActionNERM */ 'archived'?: boolean; /** * If the workflow action is skippable or not. * @type {boolean} * @memberof ApprovalActionNERM */ 'skippable'?: boolean; /** * If the workflow action requires a comment or not. * @type {boolean} * @memberof ApprovalActionNERM */ 'requires_comment'?: boolean; } /** * * @export * @interface AskSecurityQuestionActionNERM */ export interface AskSecurityQuestionActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof AskSecurityQuestionActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof AskSecurityQuestionActionNERM */ 'description': string; /** * The number of questions the user should answer upon login. * @type {number} * @memberof AskSecurityQuestionActionNERM */ 'number_of_questions': number; /** * The token expiration time, coordinates with token_expiration_type. * @type {number} * @memberof AskSecurityQuestionActionNERM */ 'token_expiration': number; /** * The token expiration type, coordinates with token_expiration. * @type {string} * @memberof AskSecurityQuestionActionNERM */ 'token_expiration_type': AskSecurityQuestionActionNERMTokenExpirationTypeNerm; /** * If the workflow action is archived or not. * @type {boolean} * @memberof AskSecurityQuestionActionNERM */ 'archived'?: boolean; } export const AskSecurityQuestionActionNERMTokenExpirationTypeNerm = { Hours: 'hours', Days: 'days', LoginAttempts: 'login attempts', Always: 'always' } as const; export type AskSecurityQuestionActionNERMTokenExpirationTypeNerm = typeof AskSecurityQuestionActionNERMTokenExpirationTypeNerm[keyof typeof AskSecurityQuestionActionNERMTokenExpirationTypeNerm]; /** * * @export * @interface Attribute1NERM */ export interface Attribute1NERM { /** * The id of the attribute * @type {string} * @memberof Attribute1NERM */ 'id'?: string; /** * The user-specified identifier of the attribute * @type {string} * @memberof Attribute1NERM */ 'uid'?: string; /** * The label for the attribute * @type {string} * @memberof Attribute1NERM */ 'label'?: string; /** * A description of the attribute * @type {string} * @memberof Attribute1NERM */ 'description'?: string; /** * The helper text that accompanies the attribute * @type {string} * @memberof Attribute1NERM */ 'tool_tip'?: string; /** * Whether the attribute is archived * @type {boolean} * @memberof Attribute1NERM */ 'archived'?: boolean; /** * The format of the date input if it is a date input * @type {string} * @memberof Attribute1NERM */ 'date_format'?: Attribute1NERMDateFormatNerm; /** * The status of the profiles that can be selected * @type {string} * @memberof Attribute1NERM */ 'selectable_status'?: string; /** * Type of risk that applies to the attribute * @type {string} * @memberof Attribute1NERM */ 'risk_type'?: string; /** * Only shows profiles that the user currently has access to, to be selected * @type {boolean} * @memberof Attribute1NERM */ 'ownership_driven'?: boolean; /** * Whether or not multiple selections can be made on something like a contributor search. * @type {boolean} * @memberof Attribute1NERM */ 'allow_multiple_selections'?: boolean; /** * Whether or not the attribute is filtered by another attribute * @type {boolean} * @memberof Attribute1NERM */ 'filtered_by_ne_attribute'?: boolean; /** * The ID of the filtering attribute * @type {string} * @memberof Attribute1NERM */ 'filtering_ne_attribute_id'?: string; /** * The ID of the attribute filter * @type {string} * @memberof Attribute1NERM */ 'ne_attribute_filter_id'?: string; /** * * @type {AttributePropertiesNERM} * @memberof Attribute1NERM */ 'reverse_association_attribute'?: AttributePropertiesNERM; /** * The ID of the profile type the attribute applies to * @type {string} * @memberof Attribute1NERM */ 'profile_type_id'?: string; /** * The type of data that applies to the attribute * @type {string} * @memberof Attribute1NERM */ 'data_type'?: Attribute1NERMDataTypeNerm; /** * The attribute\'s type * @type {string} * @memberof Attribute1NERM */ 'type'?: Attribute1NERMTypeNerm; /** * * @type {Attribute1ValidationsAttributesNERM} * @memberof Attribute1NERM */ 'validations_attributes'?: Attribute1ValidationsAttributesNERM; } export const Attribute1NERMDateFormatNerm = { MmDdYyyy: 'mm/dd/yyyy', MmDdYyyy2: 'mm-dd-yyyy', DdMmYyyy: 'dd/mm/yyyy', DdMmYyyy2: 'dd-mm-yyyy', YyyyMmDd: 'yyyy/mm/dd', YyyyMmDd2: 'yyyy-mm-dd' } as const; export type Attribute1NERMDateFormatNerm = typeof Attribute1NERMDateFormatNerm[keyof typeof Attribute1NERMDateFormatNerm]; export const Attribute1NERMDataTypeNerm = { TextField: 'text field', TextArea: 'text area', DropDown: 'drop-down', RadioButtons: 'radio buttons', CheckBoxes: 'check boxes', Date: 'date', Tags: 'tags', Attachment: 'attachment', ProfileSelect: 'profile select', ProfileSearch: 'profile search', OwnerSelect: 'owner select', OwnerSearch: 'owner search', ContributorSelect: 'contributor select', ContributorSearch: 'contributor search' } as const; export type Attribute1NERMDataTypeNerm = typeof Attribute1NERMDataTypeNerm[keyof typeof Attribute1NERMDataTypeNerm]; export const Attribute1NERMTypeNerm = { AttachmentAttribute: 'AttachmentAttribute', CheckBoxesAttribute: 'CheckBoxesAttribute', ContributorSearchAttribute: 'ContributorSearchAttribute', ContributorSelectAttribute: 'ContributorSelectAttribute', DateAttribute: 'DateAttribute', DropDownAttribute: 'DropDownAttribute', OwnerSearchAttribute: 'OwnerSearchAttribute', OwnerSelectAttribute: 'OwnerSelectAttribute', ProfileSearchAttribute: 'ProfileSearchAttribute', ProfileSelectAttribute: 'ProfileSelectAttribute', RadioButtonsAttribute: 'RadioButtonsAttribute', TagsAttribute: 'TagsAttribute', TextAreaAttribute: 'TextAreaAttribute', TextFieldAttribute: 'TextFieldAttribute' } as const; export type Attribute1NERMTypeNerm = typeof Attribute1NERMTypeNerm[keyof typeof Attribute1NERMTypeNerm]; /** * * @export * @interface Attribute1ValidationsAttributesNERM */ export interface Attribute1ValidationsAttributesNERM { /** * The type of validation to be applied * @type {string} * @memberof Attribute1ValidationsAttributesNERM */ 'validation_method'?: Attribute1ValidationsAttributesNERMValidationMethodNerm; /** * The value of the validator * @type {string} * @memberof Attribute1ValidationsAttributesNERM */ 'value'?: string; /** * If the validator should be removed * @type {boolean} * @memberof Attribute1ValidationsAttributesNERM */ '_destroy'?: boolean; } export const Attribute1ValidationsAttributesNERMValidationMethodNerm = { Required: 'required', Unique: 'unique', DateFormat: 'date_format', Days: 'days', Characters: 'characters', Extension: 'extension', Numericality: 'numericality', EmailFormat: 'email_format', CustomFormat: 'custom_format', NoSpecialChars: 'no_special_chars' } as const; export type Attribute1ValidationsAttributesNERMValidationMethodNerm = typeof Attribute1ValidationsAttributesNERMValidationMethodNerm[keyof typeof Attribute1ValidationsAttributesNERMValidationMethodNerm]; /** * * @export * @interface AttributeNERM */ export interface AttributeNERM { /** * The id of the attribute * @type {string} * @memberof AttributeNERM */ 'id'?: string; /** * The user-specified identifier of the attribute * @type {string} * @memberof AttributeNERM */ 'uid'?: string; /** * The label for the attribute * @type {string} * @memberof AttributeNERM */ 'label'?: string; /** * A description of the attribute * @type {string} * @memberof AttributeNERM */ 'description'?: string; /** * The helper text that accompanies the attribute * @type {string} * @memberof AttributeNERM */ 'tool_tip'?: string; /** * Whether the attribute is encrypted * @type {boolean} * @memberof AttributeNERM */ 'crypt'?: boolean; /** * Whether the attribute is archived * @type {boolean} * @memberof AttributeNERM */ 'archived'?: boolean; /** * When the attribute was archived * @type {string} * @memberof AttributeNERM */ 'archived_on'?: string; /** * When the attribute was created * @type {string} * @memberof AttributeNERM */ 'created_at'?: string; /** * When the attribute was updated * @type {string} * @memberof AttributeNERM */ 'updated_at'?: string; /** * The format of the date input if it is a date input * @type {string} * @memberof AttributeNERM */ 'date_format'?: AttributeNERMDateFormatNerm; /** * The status of the profiles that can be selected * @type {string} * @memberof AttributeNERM */ 'selectable_status'?: string; /** * Type of risk that applies to the attribute * @type {string} * @memberof AttributeNERM */ 'risk_type'?: string; /** * Only shows profiles that the user currently has access to, to be selected * @type {boolean} * @memberof AttributeNERM */ 'ownership_driven'?: boolean; /** * Whether or not multiple selections can be made on something like a contributor search. * @type {boolean} * @memberof AttributeNERM */ 'allow_multiple_selections'?: boolean; /** * Whether or not the attribute is filtered by another attribute * @type {boolean} * @memberof AttributeNERM */ 'filtered_by_ne_attribute'?: boolean; /** * The ID of the filtering attribute * @type {string} * @memberof AttributeNERM */ 'filtering_ne_attribute_id'?: string; /** * The ID of the attribute filter * @type {string} * @memberof AttributeNERM */ 'ne_attribute_filter_id'?: string; /** * * @type {AttributePropertiesNERM} * @memberof AttributeNERM */ 'reverse_association_attribute'?: AttributePropertiesNERM; /** * The ID of the profile type the attribute applies to * @type {string} * @memberof AttributeNERM */ 'profile_type_id'?: string; /** * The type of data that applies to the attribute * @type {string} * @memberof AttributeNERM */ 'data_type'?: AttributeNERMDataTypeNerm; /** * The attribute\'s type * @type {string} * @memberof AttributeNERM */ 'type'?: AttributeNERMTypeNerm; } export const AttributeNERMDateFormatNerm = { MmDdYyyy: 'mm/dd/yyyy', MmDdYyyy2: 'mm-dd-yyyy', DdMmYyyy: 'dd/mm/yyyy', DdMmYyyy2: 'dd-mm-yyyy', YyyyMmDd: 'yyyy/mm/dd', YyyyMmDd2: 'yyyy-mm-dd' } as const; export type AttributeNERMDateFormatNerm = typeof AttributeNERMDateFormatNerm[keyof typeof AttributeNERMDateFormatNerm]; export const AttributeNERMDataTypeNerm = { TextField: 'text field', TextArea: 'text area', DropDown: 'drop-down', RadioButtons: 'radio buttons', CheckBoxes: 'check boxes', Date: 'date', Tags: 'tags', Attachment: 'attachment', ProfileSelect: 'profile select', ProfileSearch: 'profile search', OwnerSelect: 'owner select', OwnerSearch: 'owner search', ContributorSelect: 'contributor select', ContributorSearch: 'contributor search' } as const; export type AttributeNERMDataTypeNerm = typeof AttributeNERMDataTypeNerm[keyof typeof AttributeNERMDataTypeNerm]; export const AttributeNERMTypeNerm = { AttachmentAttribute: 'AttachmentAttribute', CheckBoxesAttribute: 'CheckBoxesAttribute', ContributorSearchAttribute: 'ContributorSearchAttribute', ContributorSelectAttribute: 'ContributorSelectAttribute', DateAttribute: 'DateAttribute', DropDownAttribute: 'DropDownAttribute', OwnerSearchAttribute: 'OwnerSearchAttribute', OwnerSelectAttribute: 'OwnerSelectAttribute', ProfileSearchAttribute: 'ProfileSearchAttribute', ProfileSelectAttribute: 'ProfileSelectAttribute', RadioButtonsAttribute: 'RadioButtonsAttribute', TagsAttribute: 'TagsAttribute', TextAreaAttribute: 'TextAreaAttribute', TextFieldAttribute: 'TextFieldAttribute' } as const; export type AttributeNERMTypeNerm = typeof AttributeNERMTypeNerm[keyof typeof AttributeNERMTypeNerm]; /** * * @export * @interface AttributeOption1NERM */ export interface AttributeOption1NERM { /** * * @type {string} * @memberof AttributeOption1NERM */ 'ne_attribute_id'?: string; /** * * @type {string} * @memberof AttributeOption1NERM */ 'option'?: string; } /** * * @export * @interface AttributeOptionNERM */ export interface AttributeOptionNERM { /** * * @type {string} * @memberof AttributeOptionNERM */ 'id'?: string; /** * * @type {string} * @memberof AttributeOptionNERM */ 'uid'?: string; /** * * @type {string} * @memberof AttributeOptionNERM */ 'ne_attribute_id'?: string; /** * * @type {string} * @memberof AttributeOptionNERM */ 'option'?: string; } /** * * @export * @interface AttributeOptionsNERM */ export interface AttributeOptionsNERM { /** * * @type {Array} * @memberof AttributeOptionsNERM */ 'ne_attribute_options'?: Array; } /** * * @export * @interface AttributePropertiesNERM */ export interface AttributePropertiesNERM { /** * The id of the attribute * @type {string} * @memberof AttributePropertiesNERM */ 'id'?: string; /** * The user-specified identifier of the attribute * @type {string} * @memberof AttributePropertiesNERM */ 'uid'?: string; /** * The label for the attribute * @type {string} * @memberof AttributePropertiesNERM */ 'label'?: string; /** * A description of the attribute * @type {string} * @memberof AttributePropertiesNERM */ 'description'?: string; /** * The helper text that accompanies the attribute * @type {string} * @memberof AttributePropertiesNERM */ 'tool_tip'?: string; /** * Whether or not the attribute is encrypted * @type {boolean} * @memberof AttributePropertiesNERM */ 'crypt'?: boolean; /** * Whether the attribute is archived * @type {boolean} * @memberof AttributePropertiesNERM */ 'archived'?: boolean; /** * When the attribute was archived * @type {string} * @memberof AttributePropertiesNERM */ 'archived_on'?: string; /** * When the attribute was created * @type {string} * @memberof AttributePropertiesNERM */ 'created_at'?: string; /** * When the attribute was last updated * @type {string} * @memberof AttributePropertiesNERM */ 'updated_at'?: string; /** * The format of the date input if it is a date input * @type {string} * @memberof AttributePropertiesNERM */ 'date_format'?: AttributePropertiesNERMDateFormatNerm; /** * The status of the profiles that can be selected * @type {string} * @memberof AttributePropertiesNERM */ 'selectable_status'?: string; /** * What setting is used for the risk score * @type {string} * @memberof AttributePropertiesNERM */ 'risk_score_setting'?: string; /** * Type of risk that applies to the attribute * @type {string} * @memberof AttributePropertiesNERM */ 'risk_type'?: string; /** * Only shows profiles that the user currently has access to, to be selected * @type {boolean} * @memberof AttributePropertiesNERM */ 'ownership_driven'?: boolean; /** * Whether or not multiple selections can be made on something like a contributor search. * @type {boolean} * @memberof AttributePropertiesNERM */ 'allow_multiple_selections'?: boolean; /** * Whether or not the attribute is filtered by another attribute * @type {boolean} * @memberof AttributePropertiesNERM */ 'filtered_by_ne_attribute'?: boolean; /** * The ID of the filtering attribute * @type {string} * @memberof AttributePropertiesNERM */ 'filtering_ne_attribute_id'?: string; /** * The ID of the attribute filter * @type {string} * @memberof AttributePropertiesNERM */ 'ne_attribute_filter_id'?: string; /** * The ID of the attribute used with reverse association * @type {string} * @memberof AttributePropertiesNERM */ 'reverse_association_attribute_id'?: string; /** * The ID of the profile type the attribute applies to * @type {string} * @memberof AttributePropertiesNERM */ 'profile_type_id'?: string; /** * The legacy ID * @type {string} * @memberof AttributePropertiesNERM */ 'legacy_id'?: string; /** * the temp of when attribute was created * @type {string} * @memberof AttributePropertiesNERM */ 'tmp_created_at'?: string; /** * the temp of when attribute was last updated * @type {string} * @memberof AttributePropertiesNERM */ 'tmp_updated_at'?: string; } export const AttributePropertiesNERMDateFormatNerm = { MmDdYyyy: 'mm/dd/yyyy', MmDdYyyy2: 'mm-dd-yyyy', DdMmYyyy: 'dd/mm/yyyy', DdMmYyyy2: 'dd-mm-yyyy', YyyyMmDd: 'yyyy/mm/dd', YyyyMmDd2: 'yyyy-mm-dd' } as const; export type AttributePropertiesNERMDateFormatNerm = typeof AttributePropertiesNERMDateFormatNerm[keyof typeof AttributePropertiesNERMDateFormatNerm]; /** * Search for record based on the created_at date * @export * @interface AuditEventCreatedAtNERM */ export interface AuditEventCreatedAtNERM { /** * Greater Than - search for events with a date greater than the value * @type {string} * @memberof AuditEventCreatedAtNERM */ 'gt'?: string; /** * Less Than - search for events with a date less than the value * @type {string} * @memberof AuditEventCreatedAtNERM */ 'lt'?: string; /** * Equal - search for events with a date equal to the value * @type {string} * @memberof AuditEventCreatedAtNERM */ 'eq'?: string; } /** * * @export * @interface AuditEventDataNERM */ export interface AuditEventDataNERM { /** * The profile id associated with the event * @type {string} * @memberof AuditEventDataNERM */ 'profile_id'?: string; /** * The workflow id associated with the event * @type {string} * @memberof AuditEventDataNERM */ 'workflow_id'?: string; /** * The workflow name associated with the event * @type {string} * @memberof AuditEventDataNERM */ 'workflow_name'?: string; /** * The workflow uid associated with the event * @type {string} * @memberof AuditEventDataNERM */ 'workflow_uid'?: string; /** * The profile type associated with the event * @type {string} * @memberof AuditEventDataNERM */ 'profile_type_id'?: string; } /** * * @export * @interface AuditEventNERM */ export interface AuditEventNERM { /** * * @type {AuditEventCreatedAtNERM} * @memberof AuditEventNERM */ 'created_at'?: AuditEventCreatedAtNERM; /** * Categorization of audit event. * @type {string} * @memberof AuditEventNERM */ 'subject_type'?: AuditEventNERMSubjectTypeNerm; /** * The type of audit event * @type {string} * @memberof AuditEventNERM */ 'type'?: AuditEventNERMTypeNerm; /** * Identifier of the subject * @type {string} * @memberof AuditEventNERM */ 'subject_id'?: string; /** * * @type {AuditEventDataNERM} * @memberof AuditEventNERM */ 'data'?: AuditEventDataNERM; } export const AuditEventNERMSubjectTypeNerm = { Profile: 'Profile', WorkflowSession: 'WorkflowSession', Email: 'Email', FormAttributeForm: 'FormAttributeForm', FormAttribute: 'FormAttribute', Form: 'Form', IdentityProofingResult: 'IdentityProofingResult', IdproxyPermission: 'IdproxyPermission', NeAttributeOption: 'NeAttributeOption', NeAttribute: 'NeAttribute', Notification: 'Notification', WorkflowPage: 'WorkflowPage', ProfilePage: 'ProfilePage', Permission: 'Permission', PortalRegistrationWorkflow: 'PortalRegistrationWorkflow', Portal: 'Portal', ProfileTypeRole: 'ProfileTypeRole', ProfileType: 'ProfileType', RoleProfile: 'RoleProfile', NeprofileRole: 'NeprofileRole', NeaccessRole: 'NeaccessRole', IdproxyRole: 'IdproxyRole', SecurityQuestion: 'SecurityQuestion', UserManager: 'UserManager', UserProfile: 'UserProfile', UserRole: 'UserRole', User: 'User', Validation: 'Validation', VerificationEmail: 'VerificationEmail', WorkflowAction: 'WorkflowAction', CreateWorkflow: 'CreateWorkflow', UpdateWorkflow: 'UpdateWorkflow', AutomatedWorkflow: 'AutomatedWorkflow', BatchWorkflow: 'BatchWorkflow', ExpirationWorkflow: 'ExpirationWorkflow', InvitationWorkflow: 'InvitationWorkflow', LoginWorkflow: 'LoginWorkflow', PasswordResetWorkflow: 'PasswordResetWorkflow', RegistrationWorkflow: 'RegistrationWorkflow', Get: 'Get', Post: 'Post', Patch: 'Patch', Delete: 'Delete', ApprovalAction: 'ApprovalAction', AutomatedUser: 'AutomatedUser', DelegateUser: 'DelegateUser', NeaccessUser: 'NeaccessUser', NeprofileUser: 'NeprofileUser', Page: 'Page', Role: 'Role', SamlConfiguration: 'SamlConfiguration', SchemaMapping: 'SchemaMapping', SchemaMappingField: 'SchemaMappingField', Workflow: 'Workflow' } as const; export type AuditEventNERMSubjectTypeNerm = typeof AuditEventNERMSubjectTypeNerm[keyof typeof AuditEventNERMSubjectTypeNerm]; export const AuditEventNERMTypeNerm = { AuditableProfileCreate: 'AuditableProfileCreate', AuditableProfileUpdate: 'AuditableProfileUpdate', AuditableProfileDestroy: 'AuditableProfileDestroy', AuditableBulkProfileUpdate: 'AuditableBulkProfileUpdate', AuditableProfileContributorAdd: 'AuditableProfileContributorAdd', AuditableProfileContributorRemove: 'AuditableProfileContributorRemove', AuditableProfileContributorRoleAdd: 'AuditableProfileContributorRoleAdd', AuditableProfileContributorRoleRemove: 'AuditableProfileContributorRoleRemove', AuditableProfileOwnerUpdate: 'AuditableProfileOwnerUpdate', AuditableProfileWorkflowEvent: 'AuditableProfileWorkflowEvent', AuditableWorkflowActionSkippedEvent: 'AuditableWorkflowActionSkippedEvent', AuditableWorkflowApprovedEvent: 'AuditableWorkflowApprovedEvent', AuditableWorkflowApprovedEvent2: 'AuditableWorkflowApprovedEvent', AuditableWorkflowAssignedEvent: 'AuditableWorkflowAssignedEvent', AuditableWorkflowAutoAssignedEvent: 'AuditableWorkflowAutoAssignedEvent', AuditableWorkflowBatchCompleteEvent: 'AuditableWorkflowBatchCompleteEvent', AuditableWorkflowClosedEvent: 'AuditableWorkflowClosedEvent', AuditableWorkflowDuplicateCheckStartEvent: 'AuditableWorkflowDuplicateCheckStartEvent', AuditableWorkflowDuplicateResolutionEvent: 'AuditableWorkflowDuplicateResolutionEvent', AuditableWorkflowFailedEvent: 'AuditableWorkflowFailedEvent', AuditableWorkflowIdentityProofedEvent: 'AuditableWorkflowIdentityProofedEvent', AuditableWorkflowInvitationSentEvent: 'AuditableWorkflowInvitationSentEvent', AuditableWorkflowLdapProvidedEvent: 'AuditableWorkflowLdapProvidedEvent', AuditableWorkflowNotificationSentEvent: 'AuditableWorkflowNotificationSentEvent', AuditableWorkflowPendingApprovalEvent: 'AuditableWorkflowPendingApprovalEvent', AuditableWorkflowPendingAssignmentEvent: 'AuditableWorkflowPendingAssignmentEvent', AuditableWorkflowPendingFulfillmentEvent: 'AuditableWorkflowPendingFulfillmentEvent', AuditableWorkflowFulfilledEvent: 'AuditableWorkflowFulfilledEvent', AuditableWorkflowPendingIdentityProofEvent: 'AuditableWorkflowPendingIdentityProofEvent', AuditableWorkflowPendingLdapEvent: 'AuditableWorkflowPendingLdapEvent', AuditableWorkflowPendingRequestEvent: 'AuditableWorkflowPendingRequestEvent', AuditableWorkflowPendingReviewEvent: 'AuditableWorkflowPendingReviewEvent', AuditableWorkflowProfileCreatedEvent: 'AuditableWorkflowProfileCreatedEvent', AuditableWorkflowProfileSelectEvent: 'AuditableWorkflowProfileSelectEvent', AuditableWorkflowProfileUpdatedEvent: 'AuditableWorkflowProfileUpdatedEvent', AuditableWorkflowRejectedEvent: 'AuditableWorkflowRejectedEvent', AuditableWorkflowRequestMadeEvent: 'AuditableWorkflowRequestMadeEvent', AuditableWorkflowRestApiEvent: 'AuditableWorkflowRestApiEvent', AuditableWorkflowReviewedEvent: 'AuditableWorkflowReviewedEvent', AuditableWorkflowRunningWorkflowEvent: 'AuditableWorkflowRunningWorkflowEvent', AuditableWorkflowSoapApiEvent: 'AuditableWorkflowSoapApiEvent', AuditableWorkflowStatusChangedEvent: 'AuditableWorkflowStatusChangedEvent', AuditableWorkflowStoredProcedureEvent: 'AuditableWorkflowStoredProcedureEvent', AuditableWorkflowUnassignEvent: 'AuditableWorkflowUnassignEvent', AuditableWorkflowWaitingForWorkflowEvent: 'AuditableWorkflowWaitingForWorkflowEvent', AuditableWorkflowWorkflowChangedEvent: 'AuditableWorkflowWorkflowChangedEvent', ActiveRecordCreate: 'ActiveRecordCreate', ActiveRecordUpdate: 'ActiveRecordUpdate', ActiveRecordDestroy: 'ActiveRecordDestroy', AuditableApiEvent: 'AuditableApiEvent' } as const; export type AuditEventNERMTypeNerm = typeof AuditEventNERMTypeNerm[keyof typeof AuditEventNERMTypeNerm]; /** * * @export * @interface AutoAssignActionNERM */ export interface AutoAssignActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof AutoAssignActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof AutoAssignActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof AutoAssignActionNERM */ 'archived'?: boolean; /** * The id of the contributor attribute for contributors from another profile. If workflow_action_roles are not associated to this object, this is required. * @type {string} * @memberof AutoAssignActionNERM */ 'contributor_attr'?: string; } /** * * @export * @interface AutomatedWorkflowConditionRulesAttributesInnerNERM */ export interface AutomatedWorkflowConditionRulesAttributesInnerNERM { /** * The type of condition rule. * @type {string} * @memberof AutomatedWorkflowConditionRulesAttributesInnerNERM */ 'logical_operator': AutomatedWorkflowConditionRulesAttributesInnerNERMLogicalOperatorNerm; /** * The operator used by the condition rule. * @type {string} * @memberof AutomatedWorkflowConditionRulesAttributesInnerNERM */ 'comparison_operator': AutomatedWorkflowConditionRulesAttributesInnerNERMComparisonOperatorNerm; /** * UUID for object targeted by the condition. * @type {string} * @memberof AutomatedWorkflowConditionRulesAttributesInnerNERM */ 'condition_object_id'?: string; /** * Type of object targeted by the condition. * @type {string} * @memberof AutomatedWorkflowConditionRulesAttributesInnerNERM */ 'condition_object_type': string; /** * Used for time_frame comparison. * @type {string} * @memberof AutomatedWorkflowConditionRulesAttributesInnerNERM */ 'secondary_value'?: string; /** * Represents the days of a temporal comparison. * @type {string} * @memberof AutomatedWorkflowConditionRulesAttributesInnerNERM */ 'tertiary_value'?: string; /** * The value being compared against. * @type {string} * @memberof AutomatedWorkflowConditionRulesAttributesInnerNERM */ 'value'?: string; /** * If there are multiple rules against one workflow, this is the order that they are ran in. * @type {number} * @memberof AutomatedWorkflowConditionRulesAttributesInnerNERM */ 'order'?: number; /** * The type of condition rule. * @type {string} * @memberof AutomatedWorkflowConditionRulesAttributesInnerNERM */ 'type': AutomatedWorkflowConditionRulesAttributesInnerNERMTypeNerm; } export const AutomatedWorkflowConditionRulesAttributesInnerNERMLogicalOperatorNerm = { And: 'AND', Or: 'OR' } as const; export type AutomatedWorkflowConditionRulesAttributesInnerNERMLogicalOperatorNerm = typeof AutomatedWorkflowConditionRulesAttributesInnerNERMLogicalOperatorNerm[keyof typeof AutomatedWorkflowConditionRulesAttributesInnerNERMLogicalOperatorNerm]; export const AutomatedWorkflowConditionRulesAttributesInnerNERMComparisonOperatorNerm = { LessThan: '<', GreaterThan: '>', DoubleEqual: '==', Before: 'before', Include: 'include?', Absent: 'absent?', After: 'after' } as const; export type AutomatedWorkflowConditionRulesAttributesInnerNERMComparisonOperatorNerm = typeof AutomatedWorkflowConditionRulesAttributesInnerNERMComparisonOperatorNerm[keyof typeof AutomatedWorkflowConditionRulesAttributesInnerNERMComparisonOperatorNerm]; export const AutomatedWorkflowConditionRulesAttributesInnerNERMTypeNerm = { RiskRule: 'RiskRule', ProfileIdRule: 'ProfileIdRule', ProfileTypeRule: 'ProfileTypeRule', ProfileExistsRule: 'ProfileExistsRule', ProfileStatusRule: 'ProfileStatusRule', SessionAttributeRule: 'SessionAttributeRule', ProfileAttributeRule: 'ProfileAttributeRule', ProfileDoesNotExistRule: 'ProfileDoesNotExistRule', IdentityProofingRule: 'IdentityProofingRule' } as const; export type AutomatedWorkflowConditionRulesAttributesInnerNERMTypeNerm = typeof AutomatedWorkflowConditionRulesAttributesInnerNERMTypeNerm[keyof typeof AutomatedWorkflowConditionRulesAttributesInnerNERMTypeNerm]; /** * * @export * @interface AutomatedWorkflowNERM */ export interface AutomatedWorkflowNERM { /** * The profile type the workflow effects. * @type {string} * @memberof AutomatedWorkflowNERM */ 'profile_type_id': string; /** * Whether or not the workflow is enabled or disabled. * @type {string} * @memberof AutomatedWorkflowNERM */ 'status': AutomatedWorkflowNERMStatusNerm; /** * The user-specified identifier of the workflow. * @type {string} * @memberof AutomatedWorkflowNERM */ 'uid': string; /** * Name of the workflow * @type {string} * @memberof AutomatedWorkflowNERM */ 'name': string; /** * When honored at runtime, suppresses failure email notifications for this workflow\'s sessions. * @type {boolean} * @memberof AutomatedWorkflowNERM */ 'disable_failure_email_notifications'?: boolean | null; /** * The ProfileTypeRule this workflow will be working with. * @type {Array} * @memberof AutomatedWorkflowNERM */ 'condition_rules_attributes': Array; } export const AutomatedWorkflowNERMStatusNerm = { Enabled: 'Enabled', Disabled: 'Disabled' } as const; export type AutomatedWorkflowNERMStatusNerm = typeof AutomatedWorkflowNERMStatusNerm[keyof typeof AutomatedWorkflowNERMStatusNerm]; /** * * @export * @interface BatchUpdateActionNERM */ export interface BatchUpdateActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof BatchUpdateActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof BatchUpdateActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof BatchUpdateActionNERM */ 'archived'?: boolean; } /** * * @export * @interface BatchWorkflowNERM */ export interface BatchWorkflowNERM { /** * The profile type the workflow effects. * @type {string} * @memberof BatchWorkflowNERM */ 'profile_type_id': string; /** * Whether or not the workflow is enabled or disabled. * @type {string} * @memberof BatchWorkflowNERM */ 'status': BatchWorkflowNERMStatusNerm; /** * The user-specified identifier of the workflow. * @type {string} * @memberof BatchWorkflowNERM */ 'uid': string; /** * Name of the workflow * @type {string} * @memberof BatchWorkflowNERM */ 'name': string; /** * * @type {BatchWorkflowOptionsNERM} * @memberof BatchWorkflowNERM */ 'options'?: BatchWorkflowOptionsNERM; /** * When honored at runtime, suppresses failure email notifications for this workflow\'s sessions. * @type {boolean} * @memberof BatchWorkflowNERM */ 'disable_failure_email_notifications'?: boolean | null; } export const BatchWorkflowNERMStatusNerm = { Enabled: 'Enabled', Disabled: 'Disabled' } as const; export type BatchWorkflowNERMStatusNerm = typeof BatchWorkflowNERMStatusNerm[keyof typeof BatchWorkflowNERMStatusNerm]; /** * * @export * @interface BatchWorkflowOptionsNERM */ export interface BatchWorkflowOptionsNERM { /** * Used for batch workflows. * @type {string} * @memberof BatchWorkflowOptionsNERM */ 'all_profiles'?: BatchWorkflowOptionsNERMAllProfilesNerm; /** * Used for batch workflows for if multiple requests. * @type {string} * @memberof BatchWorkflowOptionsNERM */ 'multiple_requests'?: BatchWorkflowOptionsNERMMultipleRequestsNerm; } export const BatchWorkflowOptionsNERMAllProfilesNerm = { True: 'true', False: 'false' } as const; export type BatchWorkflowOptionsNERMAllProfilesNerm = typeof BatchWorkflowOptionsNERMAllProfilesNerm[keyof typeof BatchWorkflowOptionsNERMAllProfilesNerm]; export const BatchWorkflowOptionsNERMMultipleRequestsNerm = { True: 'true', False: 'false' } as const; export type BatchWorkflowOptionsNERMMultipleRequestsNerm = typeof BatchWorkflowOptionsNERMMultipleRequestsNerm[keyof typeof BatchWorkflowOptionsNERMMultipleRequestsNerm]; /** * * @export * @interface CloseSessionActionNERM */ export interface CloseSessionActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof CloseSessionActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof CloseSessionActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof CloseSessionActionNERM */ 'archived'?: boolean; } /** * * @export * @interface ContributorsActionNERM */ export interface ContributorsActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof ContributorsActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof ContributorsActionNERM */ 'description': string; /** * If the assignment option should be an owner. Owner, Contributors, or Roles must be chosen. * @type {string} * @memberof ContributorsActionNERM */ 'owner'?: ContributorsActionNERMOwnerNerm; /** * If the assignment option should be contributors. Owner, Contributors, or Roles must be chosen. * @type {string} * @memberof ContributorsActionNERM */ 'contributors'?: ContributorsActionNERMContributorsNerm; /** * If the assignment option should be roles. Owner, Contributors, or Roles must be chosen. * @type {string} * @memberof ContributorsActionNERM */ 'roles'?: ContributorsActionNERMRolesNerm; /** * If the workflow action is archived or not. * @type {boolean} * @memberof ContributorsActionNERM */ 'archived'?: boolean; } export const ContributorsActionNERMOwnerNerm = { True: 'true', False: 'false' } as const; export type ContributorsActionNERMOwnerNerm = typeof ContributorsActionNERMOwnerNerm[keyof typeof ContributorsActionNERMOwnerNerm]; export const ContributorsActionNERMContributorsNerm = { True: 'true', False: 'false' } as const; export type ContributorsActionNERMContributorsNerm = typeof ContributorsActionNERMContributorsNerm[keyof typeof ContributorsActionNERMContributorsNerm]; export const ContributorsActionNERMRolesNerm = { True: 'true', False: 'false' } as const; export type ContributorsActionNERMRolesNerm = typeof ContributorsActionNERMRolesNerm[keyof typeof ContributorsActionNERMRolesNerm]; /** * * @export * @interface CreateApprovalAction200ResponseNERM */ export interface CreateApprovalAction200ResponseNERM { /** * * @type {WorkflowActionNERM} * @memberof CreateApprovalAction200ResponseNERM */ 'workflow_action'?: WorkflowActionNERM; } /** * * @export * @interface CreateApprovalActionRequestNERM */ export interface CreateApprovalActionRequestNERM { /** * * @type {ApprovalActionNERM} * @memberof CreateApprovalActionRequestNERM */ 'workflow_action'?: ApprovalActionNERM; } /** * * @export * @interface CreateAskSecurityQuestionActionRequestNERM */ export interface CreateAskSecurityQuestionActionRequestNERM { /** * * @type {AskSecurityQuestionActionNERM} * @memberof CreateAskSecurityQuestionActionRequestNERM */ 'workflow_action'?: AskSecurityQuestionActionNERM; } /** * * @export * @interface CreateAttribute201ResponseNERM */ export interface CreateAttribute201ResponseNERM { /** * * @type {AttributeNERM} * @memberof CreateAttribute201ResponseNERM */ 'ne_attribute'?: AttributeNERM; } /** * * @export * @interface CreateAttributeRequestNERM */ export interface CreateAttributeRequestNERM { /** * * @type {Attribute1NERM} * @memberof CreateAttributeRequestNERM */ 'ne_attribute'?: Attribute1NERM; } /** * * @export * @interface CreateAutoAssignActionRequestNERM */ export interface CreateAutoAssignActionRequestNERM { /** * * @type {AutoAssignActionNERM} * @memberof CreateAutoAssignActionRequestNERM */ 'workflow_action'?: AutoAssignActionNERM; } /** * * @export * @interface CreateAutomatedWorkflowRequestNERM */ export interface CreateAutomatedWorkflowRequestNERM { /** * * @type {AutomatedWorkflowNERM} * @memberof CreateAutomatedWorkflowRequestNERM */ 'workflow'?: AutomatedWorkflowNERM; } /** * * @export * @interface CreateBatchUpdateActionRequestNERM */ export interface CreateBatchUpdateActionRequestNERM { /** * * @type {BatchUpdateActionNERM} * @memberof CreateBatchUpdateActionRequestNERM */ 'workflow_action'?: BatchUpdateActionNERM; } /** * * @export * @interface CreateBatchWorkflowRequestNERM */ export interface CreateBatchWorkflowRequestNERM { /** * * @type {BatchWorkflowNERM} * @memberof CreateBatchWorkflowRequestNERM */ 'workflow'?: BatchWorkflowNERM; } /** * * @export * @interface CreateCloseSessionActionRequestNERM */ export interface CreateCloseSessionActionRequestNERM { /** * * @type {CloseSessionActionNERM} * @memberof CreateCloseSessionActionRequestNERM */ 'workflow_action'?: CloseSessionActionNERM; } /** * * @export * @interface CreateContributorsActionRequestNERM */ export interface CreateContributorsActionRequestNERM { /** * * @type {ContributorsActionNERM} * @memberof CreateContributorsActionRequestNERM */ 'workflow_action'?: ContributorsActionNERM; } /** * * @export * @interface CreateCreateProfileActionRequestNERM */ export interface CreateCreateProfileActionRequestNERM { /** * * @type {CreateProfileActionNERM} * @memberof CreateCreateProfileActionRequestNERM */ 'workflow_action'?: CreateProfileActionNERM; } /** * * @export * @interface CreateCreateWorkflow200ResponseNERM */ export interface CreateCreateWorkflow200ResponseNERM { /** * * @type {WorkflowSessionNERM} * @memberof CreateCreateWorkflow200ResponseNERM */ 'workflow'?: WorkflowSessionNERM; } /** * * @export * @interface CreateCreateWorkflowRequestNERM */ export interface CreateCreateWorkflowRequestNERM { /** * * @type {CreateWorkflowNERM} * @memberof CreateCreateWorkflowRequestNERM */ 'workflow'?: CreateWorkflowNERM; } /** * * @export * @interface CreateDuplicatePreventionActionRequestNERM */ export interface CreateDuplicatePreventionActionRequestNERM { /** * * @type {DuplicatePreventionActionNERM} * @memberof CreateDuplicatePreventionActionRequestNERM */ 'workflow_action'?: DuplicatePreventionActionNERM; } /** * * @export * @interface CreateEmailVerificationActionRequestNERM */ export interface CreateEmailVerificationActionRequestNERM { /** * * @type {EmailVerificationActionNERM} * @memberof CreateEmailVerificationActionRequestNERM */ 'workflow_action'?: EmailVerificationActionNERM; } /** * * @export * @interface CreateFormAttributeRequestNERM */ export interface CreateFormAttributeRequestNERM { /** * * @type {FormAttributesNERM} * @memberof CreateFormAttributeRequestNERM */ 'form_attribute'?: FormAttributesNERM; } /** * * @export * @interface CreateFormRequestNERM */ export interface CreateFormRequestNERM { /** * * @type {Array} * @memberof CreateFormRequestNERM */ 'forms'?: Array; } /** * * @export * @interface CreateFulfillmentActionRequestNERM */ export interface CreateFulfillmentActionRequestNERM { /** * * @type {FulfillmentActionNERM} * @memberof CreateFulfillmentActionRequestNERM */ 'workflow_action'?: FulfillmentActionNERM; } /** * * @export * @interface CreateIdentityProofingActionRequestNERM */ export interface CreateIdentityProofingActionRequestNERM { /** * * @type {IdentityProofingActionNERM} * @memberof CreateIdentityProofingActionRequestNERM */ 'workflow_action'?: IdentityProofingActionNERM; } /** * * @export * @interface CreateInvitationActionRequestNERM */ export interface CreateInvitationActionRequestNERM { /** * * @type {InvitationActionNERM} * @memberof CreateInvitationActionRequestNERM */ 'workflow_action'?: InvitationActionNERM; } /** * * @export * @interface CreateLdapActionRequestNERM */ export interface CreateLdapActionRequestNERM { /** * * @type {LdapActionNERM} * @memberof CreateLdapActionRequestNERM */ 'workflow_action'?: LdapActionNERM; } /** * * @export * @interface CreateLoginWorkflowRequestNERM */ export interface CreateLoginWorkflowRequestNERM { /** * * @type {LoginWorkflowNERM} * @memberof CreateLoginWorkflowRequestNERM */ 'workflow'?: LoginWorkflowNERM; } /** * * @export * @interface CreateNotificationActionRequestNERM */ export interface CreateNotificationActionRequestNERM { /** * * @type {NotificationActionNERM} * @memberof CreateNotificationActionRequestNERM */ 'workflow_action'?: NotificationActionNERM; } /** * * @export * @interface CreatePageContentRequestNERM */ export interface CreatePageContentRequestNERM { /** * * @type {PageContent1NERM} * @memberof CreatePageContentRequestNERM */ 'page_content'?: PageContent1NERM; } /** * * @export * @interface CreatePageContentTranslationRequestNERM */ export interface CreatePageContentTranslationRequestNERM { /** * * @type {PageContentTranslation1NERM} * @memberof CreatePageContentTranslationRequestNERM */ 'page_content_translation'?: PageContentTranslation1NERM; } /** * * @export * @interface CreatePageElementRequestNERM */ export interface CreatePageElementRequestNERM { /** * * @type {PageElement1NERM} * @memberof CreatePageElementRequestNERM */ 'page_element'?: PageElement1NERM; } /** * * @export * @interface CreatePasswordResetActionRequestNERM */ export interface CreatePasswordResetActionRequestNERM { /** * * @type {PasswordResetActionNERM} * @memberof CreatePasswordResetActionRequestNERM */ 'workflow_action'?: PasswordResetActionNERM; } /** * * @export * @interface CreatePermission200ResponseNERM */ export interface CreatePermission200ResponseNERM { /** * * @type {PermissionNERM} * @memberof CreatePermission200ResponseNERM */ 'permission'?: PermissionNERM; } /** * * @export * @interface CreatePermissionRequestNERM */ export interface CreatePermissionRequestNERM { /** * * @type {Permission1NERM} * @memberof CreatePermissionRequestNERM */ 'permission'?: Permission1NERM; } /** * * @export * @interface CreateProfileActionNERM */ export interface CreateProfileActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof CreateProfileActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof CreateProfileActionNERM */ 'description': string; /** * If the requester should be added as the owner of the profile to be created. * @type {boolean} * @memberof CreateProfileActionNERM */ 'add_requester_as_owner'?: boolean; /** * If the workflow action is archived or not. * @type {boolean} * @memberof CreateProfileActionNERM */ 'archived'?: boolean; } /** * * @export * @interface CreateProfileCheckActionRequestNERM */ export interface CreateProfileCheckActionRequestNERM { /** * * @type {ProfileCheckActionNERM} * @memberof CreateProfileCheckActionRequestNERM */ 'workflow_action'?: ProfileCheckActionNERM; } /** * * @export * @interface CreateProfilePage200ResponseNERM */ export interface CreateProfilePage200ResponseNERM { /** * * @type {PagesNERM} * @memberof CreateProfilePage200ResponseNERM */ 'page'?: PagesNERM; } /** * * @export * @interface CreateProfilePageRequestNERM */ export interface CreateProfilePageRequestNERM { /** * * @type {ProfilePageNERM} * @memberof CreateProfilePageRequestNERM */ 'page'?: ProfilePageNERM; } /** * * @export * @interface CreateProfileSelectActionRequestNERM */ export interface CreateProfileSelectActionRequestNERM { /** * * @type {ProfileSelectActionNERM} * @memberof CreateProfileSelectActionRequestNERM */ 'workflow_action'?: ProfileSelectActionNERM; } /** * * @export * @interface CreateProfileTypeRole200ResponseNERM */ export interface CreateProfileTypeRole200ResponseNERM { /** * * @type {ProfileTypeRolesNERM} * @memberof CreateProfileTypeRole200ResponseNERM */ 'profile_type_roles'?: ProfileTypeRolesNERM; } /** * * @export * @interface CreateProfileTypeRoleRequestNERM */ export interface CreateProfileTypeRoleRequestNERM { /** * * @type {ProfileTypeRoles1NERM} * @memberof CreateProfileTypeRoleRequestNERM */ 'profile_type_role'?: ProfileTypeRoles1NERM; } /** * * @export * @interface CreateProfilesRequestNERM */ export interface CreateProfilesRequestNERM { /** * * @type {Array} * @memberof CreateProfilesRequestNERM */ 'profiles'?: Array; } /** * * @export * @interface CreateRequestActionRequestNERM */ export interface CreateRequestActionRequestNERM { /** * * @type {RequestActionNERM} * @memberof CreateRequestActionRequestNERM */ 'workflow_action'?: RequestActionNERM; } /** * * @export * @interface CreateRestApiActionRequestNERM */ export interface CreateRestApiActionRequestNERM { /** * * @type {RestApiActionNERM} * @memberof CreateRestApiActionRequestNERM */ 'workflow_action'?: RestApiActionNERM; } /** * * @export * @interface CreateReviewActionRequestNERM */ export interface CreateReviewActionRequestNERM { /** * * @type {ReviewActionNERM} * @memberof CreateReviewActionRequestNERM */ 'workflow_action'?: ReviewActionNERM; } /** * * @export * @interface CreateRunWorkflowActionRequestNERM */ export interface CreateRunWorkflowActionRequestNERM { /** * * @type {RunWorkflowActionNERM} * @memberof CreateRunWorkflowActionRequestNERM */ 'workflow_action'?: RunWorkflowActionNERM; } /** * * @export * @interface CreateSetAttributesActionRequestNERM */ export interface CreateSetAttributesActionRequestNERM { /** * * @type {SetAttributesActionNERM} * @memberof CreateSetAttributesActionRequestNERM */ 'workflow_action'?: SetAttributesActionNERM; } /** * * @export * @interface CreateSetSecurityQuestionActionRequestNERM */ export interface CreateSetSecurityQuestionActionRequestNERM { /** * * @type {SetSecurityQuestionActionNERM} * @memberof CreateSetSecurityQuestionActionRequestNERM */ 'workflow_action'?: SetSecurityQuestionActionNERM; } /** * * @export * @interface CreateSoapApiActionRequestNERM */ export interface CreateSoapApiActionRequestNERM { /** * * @type {SoapApiActionNERM} * @memberof CreateSoapApiActionRequestNERM */ 'workflow_action'?: SoapApiActionNERM; } /** * * @export * @interface CreateStatusChangeActionRequestNERM */ export interface CreateStatusChangeActionRequestNERM { /** * * @type {StatusChangeActionNERM} * @memberof CreateStatusChangeActionRequestNERM */ 'workflow_action'?: StatusChangeActionNERM; } /** * * @export * @interface CreateSyncedAttribute201ResponseNERM */ export interface CreateSyncedAttribute201ResponseNERM { /** * * @type {SyncedAttributeNERM} * @memberof CreateSyncedAttribute201ResponseNERM */ 'synced_attribute'?: SyncedAttributeNERM; } /** * * @export * @interface CreateSystemRolePermission200ResponseNERM */ export interface CreateSystemRolePermission200ResponseNERM { /** * * @type {SystemRolePermissionNERM} * @memberof CreateSystemRolePermission200ResponseNERM */ 'system_role_permission'?: SystemRolePermissionNERM; } /** * * @export * @interface CreateSystemRolePermissionRequestNERM */ export interface CreateSystemRolePermissionRequestNERM { /** * * @type {SystemRolePermission1NERM} * @memberof CreateSystemRolePermissionRequestNERM */ 'system_role_permission'?: SystemRolePermission1NERM; } /** * * @export * @interface CreateUnassignActionRequestNERM */ export interface CreateUnassignActionRequestNERM { /** * * @type {UnassignActionNERM} * @memberof CreateUnassignActionRequestNERM */ 'workflow_action'?: UnassignActionNERM; } /** * * @export * @interface CreateUpdateProfileActionRequestNERM */ export interface CreateUpdateProfileActionRequestNERM { /** * * @type {UpdateProfileActionNERM} * @memberof CreateUpdateProfileActionRequestNERM */ 'workflow_action'?: UpdateProfileActionNERM; } /** * * @export * @interface CreateUpdateWorkflowRequestNERM */ export interface CreateUpdateWorkflowRequestNERM { /** * * @type {UpdateWorkflowNERM} * @memberof CreateUpdateWorkflowRequestNERM */ 'workflow'?: UpdateWorkflowNERM; } /** * @type CreateUserProfiles200ResponseNERM * @export */ export type CreateUserProfiles200ResponseNERM = JobNERM | UserProfilesNERM; /** * * @export * @interface CreateUserProfilesRequestNERM */ export interface CreateUserProfilesRequestNERM { /** * * @type {Array} * @memberof CreateUserProfilesRequestNERM */ 'user_profiles'?: Array; } /** * * @export * @interface CreateUsernamePasswordActionRequestNERM */ export interface CreateUsernamePasswordActionRequestNERM { /** * * @type {UsernamePasswordActionNERM} * @memberof CreateUsernamePasswordActionRequestNERM */ 'workflow_action'?: UsernamePasswordActionNERM; } /** * * @export * @interface CreateWorkflowActionPerformer200ResponseNERM */ export interface CreateWorkflowActionPerformer200ResponseNERM { /** * * @type {WorkflowActionPerformersNERM} * @memberof CreateWorkflowActionPerformer200ResponseNERM */ 'workflow_action_performer'?: WorkflowActionPerformersNERM; } /** * * @export * @interface CreateWorkflowActionPerformerRequestNERM */ export interface CreateWorkflowActionPerformerRequestNERM { /** * * @type {WorkflowActionPerformers1NERM} * @memberof CreateWorkflowActionPerformerRequestNERM */ 'workflow_action_performers'?: WorkflowActionPerformers1NERM; } /** * * @export * @interface CreateWorkflowNERM */ export interface CreateWorkflowNERM { /** * The profile type the workflow effects. * @type {string} * @memberof CreateWorkflowNERM */ 'profile_type_id': string; /** * Whether or not the workflow is enabled or disabled. * @type {string} * @memberof CreateWorkflowNERM */ 'status': CreateWorkflowNERMStatusNerm; /** * The user-specified identifier of the workflow. * @type {string} * @memberof CreateWorkflowNERM */ 'uid': string; /** * Name of the workflow * @type {string} * @memberof CreateWorkflowNERM */ 'name': string; /** * When honored at runtime, suppresses failure email notifications for this workflow\'s sessions. * @type {boolean} * @memberof CreateWorkflowNERM */ 'disable_failure_email_notifications'?: boolean | null; } export const CreateWorkflowNERMStatusNerm = { Enabled: 'Enabled', Disabled: 'Disabled' } as const; export type CreateWorkflowNERMStatusNerm = typeof CreateWorkflowNERMStatusNerm[keyof typeof CreateWorkflowNERMStatusNerm]; /** * * @export * @interface CreateWorkflowPageRequestNERM */ export interface CreateWorkflowPageRequestNERM { /** * * @type {WorkflowPageNERM} * @memberof CreateWorkflowPageRequestNERM */ 'page'?: WorkflowPageNERM; } /** * * @export * @interface DataRecordsNERM */ export interface DataRecordsNERM { /** * The id of the master record * @type {string} * @memberof DataRecordsNERM */ 'master_record_id'?: string; } /** * * @export * @interface Delegation1NERM */ export interface Delegation1NERM { /** * The id of the delegator * @type {string} * @memberof Delegation1NERM */ 'delegator_id'?: string; /** * The id of the delegate * @type {string} * @memberof Delegation1NERM */ 'delegate_id'?: string; /** * The expiration date of the delegation * @type {string} * @memberof Delegation1NERM */ 'expiration'?: string; } /** * * @export * @interface DelegationNERM */ export interface DelegationNERM { /** * The id of the delegation * @type {string} * @memberof DelegationNERM */ 'id'?: string; /** * The id of the delegator user * @type {object} * @memberof DelegationNERM */ 'delegator_id'?: object; /** * The id of the delegate user * @type {object} * @memberof DelegationNERM */ 'delegate_id'?: object; /** * The expiration date of the delegation * @type {string} * @memberof DelegationNERM */ 'expiration'?: string; /** * Indicates if the delegation is expired * @type {boolean} * @memberof DelegationNERM */ 'expired'?: boolean; /** * The date-time the record created. * @type {string} * @memberof DelegationNERM */ 'created_at'?: string; /** * The date-time the record was last updated. * @type {string} * @memberof DelegationNERM */ 'updated_at'?: string; } /** * * @export * @interface DelegationsGet200ResponseNERM */ export interface DelegationsGet200ResponseNERM { /** * * @type {Array} * @memberof DelegationsGet200ResponseNERM */ 'delegations'?: Array; /** * * @type {MetadataNERM} * @memberof DelegationsGet200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface DelegationsPost201ResponseNERM */ export interface DelegationsPost201ResponseNERM { /** * * @type {DelegationNERM} * @memberof DelegationsPost201ResponseNERM */ 'delegation'?: DelegationNERM; } /** * * @export * @interface DelegationsPost404ResponseNERM */ export interface DelegationsPost404ResponseNERM { /** * The requested record, either ID or UID, was not found * @type {object} * @memberof DelegationsPost404ResponseNERM */ 'error'?: object; } /** * * @export * @interface DelegationsPostRequestNERM */ export interface DelegationsPostRequestNERM { /** * * @type {Delegation1NERM} * @memberof DelegationsPostRequestNERM */ 'delegation'?: Delegation1NERM; } /** * * @export * @interface DeleteAttributeOptionById200ResponseNERM */ export interface DeleteAttributeOptionById200ResponseNERM { /** * * @type {string} * @memberof DeleteAttributeOptionById200ResponseNERM */ 'info'?: string; } /** * * @export * @interface DeleteMasterRecord400ResponseNERM */ export interface DeleteMasterRecord400ResponseNERM { /** * A message describing the error that occurred * @type {string} * @memberof DeleteMasterRecord400ResponseNERM */ 'error'?: string; } /** * * @export * @interface DeleteProfileTypeById200ResponseNERM */ export interface DeleteProfileTypeById200ResponseNERM { /** * A message confirming the operation * @type {object} * @memberof DeleteProfileTypeById200ResponseNERM */ 'info'?: object; } /** * @type DeleteProfiles200ResponseNERM * @export */ export type DeleteProfiles200ResponseNERM = JobNERM | ProfilesNERM; /** * * @export * @interface DuplicatePreventionActionNERM */ export interface DuplicatePreventionActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof DuplicatePreventionActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof DuplicatePreventionActionNERM */ 'description': string; /** * The search scope of the profiles to check against. * @type {string} * @memberof DuplicatePreventionActionNERM */ 'search_scope': DuplicatePreventionActionNERMSearchScopeNerm; /** * An array of ne_attribute_ids. * @type {Array} * @memberof DuplicatePreventionActionNERM */ 'ne_attribute_ids'?: Array; /** * The handle id. * @type {string} * @memberof DuplicatePreventionActionNERM */ 'handle_id'?: string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof DuplicatePreventionActionNERM */ 'archived'?: boolean; } export const DuplicatePreventionActionNERMSearchScopeNerm = { All: 'all', Current: 'current' } as const; export type DuplicatePreventionActionNERMSearchScopeNerm = typeof DuplicatePreventionActionNERMSearchScopeNerm[keyof typeof DuplicatePreventionActionNERMSearchScopeNerm]; /** * * @export * @interface EmailVerificationActionNERM */ export interface EmailVerificationActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof EmailVerificationActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof EmailVerificationActionNERM */ 'description': string; /** * The email expiration time, in minutes. * @type {number} * @memberof EmailVerificationActionNERM */ 'email_expiration': number; /** * The token expiration time, coordinates with token_expiration_type. * @type {number} * @memberof EmailVerificationActionNERM */ 'token_expiration': number; /** * The token expiration type, coordinates with token_expiration. * @type {string} * @memberof EmailVerificationActionNERM */ 'token_expiration_type': EmailVerificationActionNERMTokenExpirationTypeNerm; /** * If the workflow action is archived or not. * @type {boolean} * @memberof EmailVerificationActionNERM */ 'archived'?: boolean; } export const EmailVerificationActionNERMTokenExpirationTypeNerm = { Hours: 'hours', Days: 'days', LoginAttempts: 'login attempts', Always: 'always' } as const; export type EmailVerificationActionNERMTokenExpirationTypeNerm = typeof EmailVerificationActionNERMTokenExpirationTypeNerm[keyof typeof EmailVerificationActionNERMTokenExpirationTypeNerm]; /** * * @export * @interface Form1NERM */ export interface Form1NERM { /** * The user-specified identifier of the form * @type {string} * @memberof Form1NERM */ 'uid'?: string; /** * The description of the form * @type {string} * @memberof Form1NERM */ 'description'?: string; /** * The name of the form * @type {string} * @memberof Form1NERM */ 'name'?: string; /** * Determines whether the form is archived * @type {boolean} * @memberof Form1NERM */ 'archived'?: boolean; } /** * * @export * @interface FormAttributeNERM */ export interface FormAttributeNERM { /** * The id of the form * @type {string} * @memberof FormAttributeNERM */ 'form_id'?: string; /** * The id of the attribute * @type {string} * @memberof FormAttributeNERM */ 'ne_attribute_id'?: string; /** * The attribute type * @type {string} * @memberof FormAttributeNERM */ 'attr_type'?: FormAttributeNERMAttrTypeNerm; /** * The ordinal position of the attribute on the Form. The order value determines the order or sequence the Form values are presented in the user interface. Each FormAttribute on a Form must have a unique order value. Order valuess can start at zero (0), but often start at one (1). The FormAttribute with order 1 is presented before the FormAttribute with order 2, and so on. Gaps in the order can exist and the system ignores them. * @type {number} * @memberof FormAttributeNERM */ 'order'?: number; /** * The id of the form attribute * @type {string} * @memberof FormAttributeNERM */ 'id'?: string; /** * The date-time the record created. * @type {string} * @memberof FormAttributeNERM */ 'created_at'?: string; /** * The date-time the record was last updated. * @type {string} * @memberof FormAttributeNERM */ 'updated_at'?: string; } export const FormAttributeNERMAttrTypeNerm = { NeAttribute: 'ne_attribute', Break: 'break' } as const; export type FormAttributeNERMAttrTypeNerm = typeof FormAttributeNERMAttrTypeNerm[keyof typeof FormAttributeNERMAttrTypeNerm]; /** * * @export * @interface FormAttributesNERM */ export interface FormAttributesNERM { /** * The id of the form * @type {string} * @memberof FormAttributesNERM */ 'form_id'?: string; /** * The id of the attribute * @type {string} * @memberof FormAttributesNERM */ 'ne_attribute_id'?: string; /** * The attribute type * @type {string} * @memberof FormAttributesNERM */ 'attr_type'?: FormAttributesNERMAttrTypeNerm; /** * The ordinal position of the attribute on the Form. The order value determines the order or sequence the Form values are presented in the user interface. Each FormAttribute on a Form must have a unique order value. Order valuess can start at zero (0), but often start at one (1). The FormAttribute with order 1 is presented before the FormAttribute with order 2, and so on. Gaps in the order can exist and the system ignores them. * @type {number} * @memberof FormAttributesNERM */ 'order'?: number; } export const FormAttributesNERMAttrTypeNerm = { NeAttribute: 'ne_attribute', Break: 'break' } as const; export type FormAttributesNERMAttrTypeNerm = typeof FormAttributesNERMAttrTypeNerm[keyof typeof FormAttributesNERMAttrTypeNerm]; /** * * @export * @interface FormNERM */ export interface FormNERM { /** * The user-specified identifier of the form * @type {string} * @memberof FormNERM */ 'uid'?: string; /** * The description of the form * @type {string} * @memberof FormNERM */ 'description'?: string; /** * The name of the form * @type {string} * @memberof FormNERM */ 'name'?: string; /** * Determines whether the form is archived * @type {boolean} * @memberof FormNERM */ 'archived'?: boolean; /** * The id of the form * @type {string} * @memberof FormNERM */ 'id'?: string; } /** * * @export * @interface FormsNERM */ export interface FormsNERM { /** * The user-specified identifier of the form * @type {string} * @memberof FormsNERM */ 'uid'?: string; /** * The description of the form * @type {string} * @memberof FormsNERM */ 'description'?: string; /** * The name of the form * @type {string} * @memberof FormsNERM */ 'name'?: string; /** * Determines whether the form is archived * @type {boolean} * @memberof FormsNERM */ 'archived'?: boolean; } /** * * @export * @interface FulfillmentActionNERM */ export interface FulfillmentActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof FulfillmentActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof FulfillmentActionNERM */ 'description': string; /** * The page the workflow action should render. * @type {string} * @memberof FulfillmentActionNERM */ 'page_id'?: string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof FulfillmentActionNERM */ 'archived'?: boolean; /** * If the workflow action requires a comment or not. * @type {boolean} * @memberof FulfillmentActionNERM */ 'requires_comment'?: boolean; } /** * * @export * @interface GetAdvancedSearch200ResponseNERM */ export interface GetAdvancedSearch200ResponseNERM { /** * * @type {Array} * @memberof GetAdvancedSearch200ResponseNERM */ 'advanced_search'?: Array; } /** * * @export * @interface GetAttributeOptions200ResponseNERM */ export interface GetAttributeOptions200ResponseNERM { /** * * @type {Array} * @memberof GetAttributeOptions200ResponseNERM */ 'ne_attribute_options'?: Array; /** * * @type {MetadataNERM} * @memberof GetAttributeOptions200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetAttributes200ResponseNERM */ export interface GetAttributes200ResponseNERM { /** * * @type {Array} * @memberof GetAttributes200ResponseNERM */ 'ne_attributes'?: Array; /** * * @type {MetadataNERM} * @memberof GetAttributes200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * @type GetAttributes400ResponseNERM * @export */ export type GetAttributes400ResponseNERM = InvalidJsonNERM | ValidationErrorsNERM; /** * * @export * @interface GetAttributes500ResponseNERM */ export interface GetAttributes500ResponseNERM { /** * A message describing the error * @type {object} * @memberof GetAttributes500ResponseNERM */ 'error'?: object; } /** * * @export * @interface GetFormAttributes200ResponseNERM */ export interface GetFormAttributes200ResponseNERM { /** * * @type {FormAttributeNERM} * @memberof GetFormAttributes200ResponseNERM */ 'form_attribute'?: FormAttributeNERM; } /** * * @export * @interface GetForms200ResponseNERM */ export interface GetForms200ResponseNERM { /** * * @type {Array} * @memberof GetForms200ResponseNERM */ 'forms'?: Array; } /** * * @export * @interface GetIdentityProofingResults200ResponseNERM */ export interface GetIdentityProofingResults200ResponseNERM { /** * * @type {Array} * @memberof GetIdentityProofingResults200ResponseNERM */ 'identity_proofing_results'?: Array; /** * * @type {MetadataNERM} * @memberof GetIdentityProofingResults200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetJobStatus200ResponseJobDataInnerNERM */ export interface GetJobStatus200ResponseJobDataInnerNERM { /** * * @type {string} * @memberof GetJobStatus200ResponseJobDataInnerNERM */ 'user_id'?: string; /** * * @type {string} * @memberof GetJobStatus200ResponseJobDataInnerNERM */ 'manager_id'?: string; /** * * @type {Array} * @memberof GetJobStatus200ResponseJobDataInnerNERM */ 'errors'?: Array; } /** * * @export * @interface GetJobStatus200ResponseNERM */ export interface GetJobStatus200ResponseNERM { /** * * @type {string} * @memberof GetJobStatus200ResponseNERM */ 'uid'?: string; /** * * @type {string} * @memberof GetJobStatus200ResponseNERM */ 'status'?: string; /** * * @type {string} * @memberof GetJobStatus200ResponseNERM */ 'job_type'?: string; /** * * @type {Array} * @memberof GetJobStatus200ResponseNERM */ 'job_data'?: Array; } /** * * @export * @interface GetPageContentTranslation200ResponseNERM */ export interface GetPageContentTranslation200ResponseNERM { /** * * @type {PageContentTranslationNERM} * @memberof GetPageContentTranslation200ResponseNERM */ 'page_content_translation'?: PageContentTranslationNERM; } /** * * @export * @interface GetPageContents200ResponseNERM */ export interface GetPageContents200ResponseNERM { /** * * @type {PageContentNERM} * @memberof GetPageContents200ResponseNERM */ 'page'?: PageContentNERM; } /** * * @export * @interface GetPageElements200ResponseNERM */ export interface GetPageElements200ResponseNERM { /** * * @type {PageElementNERM} * @memberof GetPageElements200ResponseNERM */ 'page_element'?: PageElementNERM; } /** * * @export * @interface GetProfileTypeAttributes200ResponseNERM */ export interface GetProfileTypeAttributes200ResponseNERM { /** * * @type {ProfileTypeAttributesNERM} * @memberof GetProfileTypeAttributes200ResponseNERM */ 'profile_type_attributes'?: ProfileTypeAttributesNERM; } /** * * @export * @interface GetProfileTypeAttributesSortParameterNERM */ export interface GetProfileTypeAttributesSortParameterNERM { /** * * @type {string} * @memberof GetProfileTypeAttributesSortParameterNERM */ 'attr'?: string; /** * * @type {string} * @memberof GetProfileTypeAttributesSortParameterNERM */ 'order'?: GetProfileTypeAttributesSortParameterNERMOrderNerm; } export const GetProfileTypeAttributesSortParameterNERMOrderNerm = { Asc: 'asc', Desc: 'desc' } as const; export type GetProfileTypeAttributesSortParameterNERMOrderNerm = typeof GetProfileTypeAttributesSortParameterNERMOrderNerm[keyof typeof GetProfileTypeAttributesSortParameterNERMOrderNerm]; /** * * @export * @interface GetProfileTypes200ResponseNERM */ export interface GetProfileTypes200ResponseNERM { /** * * @type {Array} * @memberof GetProfileTypes200ResponseNERM */ 'profile_types'?: Array; /** * * @type {MetadataNERM} * @memberof GetProfileTypes200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetRiskLevel200ResponseNERM */ export interface GetRiskLevel200ResponseNERM { /** * * @type {RiskLevelNERM} * @memberof GetRiskLevel200ResponseNERM */ 'risk_level'?: RiskLevelNERM; } /** * * @export * @interface GetRiskLevels200ResponseNERM */ export interface GetRiskLevels200ResponseNERM { /** * * @type {Array} * @memberof GetRiskLevels200ResponseNERM */ 'risk_levels'?: Array; /** * * @type {MetadataNERM} * @memberof GetRiskLevels200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetRiskScore200ResponseNERM */ export interface GetRiskScore200ResponseNERM { /** * * @type {RiskScoreNERM} * @memberof GetRiskScore200ResponseNERM */ 'risk_score'?: RiskScoreNERM; } /** * * @export * @interface GetRiskScores200ResponseNERM */ export interface GetRiskScores200ResponseNERM { /** * * @type {Array} * @memberof GetRiskScores200ResponseNERM */ 'risk_scores'?: Array; /** * * @type {MetadataNERM} * @memberof GetRiskScores200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetRoleProfiles200ResponseNERM */ export interface GetRoleProfiles200ResponseNERM { /** * * @type {Array} * @memberof GetRoleProfiles200ResponseNERM */ 'role_profiles'?: Array; /** * * @type {MetadataNERM} * @memberof GetRoleProfiles200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetRoles200ResponseNERM */ export interface GetRoles200ResponseNERM { /** * * @type {Array} * @memberof GetRoles200ResponseNERM */ 'roles'?: Array; /** * * @type {MetadataNERM} * @memberof GetRoles200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetSchemaMappedProfilesCollection200ResponseNERM */ export interface GetSchemaMappedProfilesCollection200ResponseNERM { /** * * @type {Array} * @memberof GetSchemaMappedProfilesCollection200ResponseNERM */ 'profiles'?: Array; /** * * @type {MetadataWithAfterIdNERM} * @memberof GetSchemaMappedProfilesCollection200ResponseNERM */ '_metadata'?: MetadataWithAfterIdNERM; } /** * * @export * @interface GetSingleSchemaMappedProfile200ResponseNERM */ export interface GetSingleSchemaMappedProfile200ResponseNERM { /** * * @type {ProfileNERM} * @memberof GetSingleSchemaMappedProfile200ResponseNERM */ 'profile'?: ProfileNERM; } /** * * @export * @interface GetSystemRoles200ResponseNERM */ export interface GetSystemRoles200ResponseNERM { /** * * @type {Array} * @memberof GetSystemRoles200ResponseNERM */ 'system_roles'?: Array; /** * * @type {MetadataNERM} * @memberof GetSystemRoles200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetUserManagers200ResponseNERM */ export interface GetUserManagers200ResponseNERM { /** * * @type {Array} * @memberof GetUserManagers200ResponseNERM */ 'user_managers'?: Array; /** * * @type {MetadataNERM} * @memberof GetUserManagers200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetUserProfiles200ResponseNERM */ export interface GetUserProfiles200ResponseNERM { /** * * @type {Array} * @memberof GetUserProfiles200ResponseNERM */ 'user_profiles'?: Array; /** * * @type {MetadataNERM} * @memberof GetUserProfiles200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetUserRoles200ResponseNERM */ export interface GetUserRoles200ResponseNERM { /** * * @type {Array} * @memberof GetUserRoles200ResponseNERM */ 'user_roles'?: Array; /** * * @type {MetadataNERM} * @memberof GetUserRoles200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetUsers200ResponseNERM */ export interface GetUsers200ResponseNERM { /** * * @type {Array} * @memberof GetUsers200ResponseNERM */ 'users'?: Array; /** * * @type {MetadataNERM} * @memberof GetUsers200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface GetWorkflowActions200ResponseNERM */ export interface GetWorkflowActions200ResponseNERM { /** * * @type {WorkflowActionNERM} * @memberof GetWorkflowActions200ResponseNERM */ 'workflow_actions'?: WorkflowActionNERM; } /** * * @export * @interface GetWorkflowSessions200ResponseNERM */ export interface GetWorkflowSessions200ResponseNERM { /** * * @type {Array} * @memberof GetWorkflowSessions200ResponseNERM */ 'workflow_sessions'?: Array; /** * * @type {MetadataNERM} * @memberof GetWorkflowSessions200ResponseNERM */ '_metadata'?: MetadataNERM; } /** * * @export * @interface IdentityProofingActionNERM */ export interface IdentityProofingActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof IdentityProofingActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof IdentityProofingActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof IdentityProofingActionNERM */ 'archived'?: boolean; } /** * * @export * @interface IdentityProofingResultNERM */ export interface IdentityProofingResultNERM { /** * * @type {string} * @memberof IdentityProofingResultNERM */ 'id'?: string; /** * * @type {string} * @memberof IdentityProofingResultNERM */ 'identity_proofing_action_id'?: string; /** * * @type {string} * @memberof IdentityProofingResultNERM */ 'workflow_session_id'?: string; /** * * @type {string} * @memberof IdentityProofingResultNERM */ 'profile_id'?: string; /** * * @type {string} * @memberof IdentityProofingResultNERM */ 'proofing_workflow'?: string; /** * * @type {string} * @memberof IdentityProofingResultNERM */ 'result'?: IdentityProofingResultNERMResultNerm; /** * * @type {{ [key: string]: string; }} * @memberof IdentityProofingResultNERM */ 'proofing_attributes'?: { [key: string]: string; }; /** * * @type {string} * @memberof IdentityProofingResultNERM */ 'created_at'?: string; /** * * @type {string} * @memberof IdentityProofingResultNERM */ 'updated_at'?: string; } export const IdentityProofingResultNERMResultNerm = { Pending: 'pending', Pass: 'pass', Fail: 'fail' } as const; export type IdentityProofingResultNERMResultNerm = typeof IdentityProofingResultNERMResultNerm[keyof typeof IdentityProofingResultNERMResultNerm]; /** * * @export * @interface InvalidJsonNERM */ export interface InvalidJsonNERM { /** * * @type {object} * @memberof InvalidJsonNERM */ 'error'?: object; } /** * * @export * @interface InvitationActionConfigurationAttributesNERM */ export interface InvitationActionConfigurationAttributesNERM { /** * the id. * @type {string} * @memberof InvitationActionConfigurationAttributesNERM */ 'id'?: string; /** * If the invitation action should pause the parent workflow to wait for completion. * @type {boolean} * @memberof InvitationActionConfigurationAttributesNERM */ 'wait_for_completion'?: boolean; /** * If the invitation action should return a profile. * @type {boolean} * @memberof InvitationActionConfigurationAttributesNERM */ 'return_profile'?: boolean; /** * the id of the portal. * @type {string} * @memberof InvitationActionConfigurationAttributesNERM */ 'portal_id'?: string; /** * the id of the registration workflow. * @type {string} * @memberof InvitationActionConfigurationAttributesNERM */ 'registration_workflow_id'?: string; /** * the id of the email attribute. * @type {string} * @memberof InvitationActionConfigurationAttributesNERM */ 'email_attribute_id'?: string; /** * If the action should validate against completed registrations by email address. * @type {boolean} * @memberof InvitationActionConfigurationAttributesNERM */ 'validate_completed_registration'?: boolean; /** * If the action should validate against open registrations by email address. * @type {boolean} * @memberof InvitationActionConfigurationAttributesNERM */ 'validate_open_registration'?: boolean; } /** * * @export * @interface InvitationActionNERM */ export interface InvitationActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof InvitationActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof InvitationActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof InvitationActionNERM */ 'archived'?: boolean; /** * * @type {InvitationActionConfigurationAttributesNERM} * @memberof InvitationActionNERM */ 'configuration_attributes'?: InvitationActionConfigurationAttributesNERM; /** * * @type {InvitationActionWorkflowActionEmailAttributesNERM} * @memberof InvitationActionNERM */ 'workflow_action_email_attributes'?: InvitationActionWorkflowActionEmailAttributesNERM; } /** * * @export * @interface InvitationActionWorkflowActionEmailAttributesNERM */ export interface InvitationActionWorkflowActionEmailAttributesNERM { /** * the id. * @type {string} * @memberof InvitationActionWorkflowActionEmailAttributesNERM */ 'id'?: string; /** * the id of the workflow action. * @type {string} * @memberof InvitationActionWorkflowActionEmailAttributesNERM */ 'workflow_action_id'?: string; /** * the id of the email. * @type {string} * @memberof InvitationActionWorkflowActionEmailAttributesNERM */ 'email_id'?: string; /** * the type of email. * @type {string} * @memberof InvitationActionWorkflowActionEmailAttributesNERM */ 'type'?: InvitationActionWorkflowActionEmailAttributesNERMTypeNerm; } export const InvitationActionWorkflowActionEmailAttributesNERMTypeNerm = { StandardEmail: 'StandardEmail', PerformerNotificationEmail: 'PerformerNotificationEmail', ApprovalEmail: 'ApprovalEmail', RejectionEmail: 'RejectionEmail' } as const; export type InvitationActionWorkflowActionEmailAttributesNERMTypeNerm = typeof InvitationActionWorkflowActionEmailAttributesNERMTypeNerm[keyof typeof InvitationActionWorkflowActionEmailAttributesNERMTypeNerm]; /** * * @export * @interface JobJobStatusNERM */ export interface JobJobStatusNERM { /** * * @type {string} * @memberof JobJobStatusNERM */ 'job_id'?: string; /** * * @type {string} * @memberof JobJobStatusNERM */ 'status'?: string; } /** * * @export * @interface JobNERM */ export interface JobNERM { /** * * @type {string} * @memberof JobNERM */ 'info'?: string; /** * * @type {JobJobStatusNERM} * @memberof JobNERM */ 'job_status'?: JobJobStatusNERM; /** * * @type {number} * @memberof JobNERM */ 'status'?: number; } /** * * @export * @interface LanguageNERM */ export interface LanguageNERM { /** * Set default to True to set a default language, to set another language to default, set default to True on the target language and the current default will become disabled * @type {boolean} * @memberof LanguageNERM */ 'default'?: boolean; /** * True when the language is enabled, False when it is not * @type {boolean} * @memberof LanguageNERM */ 'enabled'?: boolean; /** * The locale string for the language, current options are- en, fr, es, de, fr-CA * @type {string} * @memberof LanguageNERM */ 'locale'?: string; } /** * * @export * @interface LdapActionLdapActionUserRolesAttributesNERM */ export interface LdapActionLdapActionUserRolesAttributesNERM { /** * the id. * @type {string} * @memberof LdapActionLdapActionUserRolesAttributesNERM */ 'id'?: string; /** * the id of the role. * @type {string} * @memberof LdapActionLdapActionUserRolesAttributesNERM */ 'role_id'?: string; } /** * * @export * @interface LdapActionNERM */ export interface LdapActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof LdapActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof LdapActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof LdapActionNERM */ 'archived'?: boolean; /** * the type of store. * @type {string} * @memberof LdapActionNERM */ 'store_type': LdapActionNERMStoreTypeNerm; /** * * @type {LdapActionLdapActionUserRolesAttributesNERM} * @memberof LdapActionNERM */ 'ldap_action_user_roles_attributes'?: LdapActionLdapActionUserRolesAttributesNERM; /** * * @type {LdapActionWorkflowActionValueBuildersAttributesNERM} * @memberof LdapActionNERM */ 'workflow_action_value_builders_attributes'?: LdapActionWorkflowActionValueBuildersAttributesNERM; /** * * @type {LdapActionWorkflowActionDirectoryGroupsAttributesNERM} * @memberof LdapActionNERM */ 'workflow_action_directory_groups_attributes'?: LdapActionWorkflowActionDirectoryGroupsAttributesNERM; } export const LdapActionNERMStoreTypeNerm = { Local: 'Local', Directory: 'Directory' } as const; export type LdapActionNERMStoreTypeNerm = typeof LdapActionNERMStoreTypeNerm[keyof typeof LdapActionNERMStoreTypeNerm]; /** * * @export * @interface LdapActionWorkflowActionDirectoryGroupsAttributesNERM */ export interface LdapActionWorkflowActionDirectoryGroupsAttributesNERM { /** * the id. * @type {string} * @memberof LdapActionWorkflowActionDirectoryGroupsAttributesNERM */ 'id'?: string; /** * the id of the directory. * @type {string} * @memberof LdapActionWorkflowActionDirectoryGroupsAttributesNERM */ 'directory_id'?: string; /** * the group label. * @type {string} * @memberof LdapActionWorkflowActionDirectoryGroupsAttributesNERM */ 'group_label'?: string; /** * the group dn. * @type {string} * @memberof LdapActionWorkflowActionDirectoryGroupsAttributesNERM */ 'group_dn'?: string; } /** * * @export * @interface LdapActionWorkflowActionValueBuildersAttributesNERM */ export interface LdapActionWorkflowActionValueBuildersAttributesNERM { /** * the id. * @type {string} * @memberof LdapActionWorkflowActionValueBuildersAttributesNERM */ 'id'?: string; /** * the id of the workflow action. * @type {string} * @memberof LdapActionWorkflowActionValueBuildersAttributesNERM */ 'workflow_action_id'?: string; /** * the id of the value builder. * @type {string} * @memberof LdapActionWorkflowActionValueBuildersAttributesNERM */ 'value_builder_id'?: string; /** * the position of the value builder attribute. * @type {number} * @memberof LdapActionWorkflowActionValueBuildersAttributesNERM */ 'position'?: number; } /** * * @export * @interface LoginWorkflowNERM */ export interface LoginWorkflowNERM { /** * The profile type the workflow effects. * @type {string} * @memberof LoginWorkflowNERM */ 'profile_type_id': string; /** * Whether or not the workflow is enabled or disabled. * @type {string} * @memberof LoginWorkflowNERM */ 'status': LoginWorkflowNERMStatusNerm; /** * The user-specified identifier of the workflow. * @type {string} * @memberof LoginWorkflowNERM */ 'uid': string; /** * Name of the workflow * @type {string} * @memberof LoginWorkflowNERM */ 'name': string; /** * * @type {LoginWorkflowOptionsNERM} * @memberof LoginWorkflowNERM */ 'options'?: LoginWorkflowOptionsNERM; /** * When honored at runtime, suppresses failure email notifications for this workflow\'s sessions. * @type {boolean} * @memberof LoginWorkflowNERM */ 'disable_failure_email_notifications'?: boolean | null; } export const LoginWorkflowNERMStatusNerm = { Enabled: 'Enabled', Disabled: 'Disabled' } as const; export type LoginWorkflowNERMStatusNerm = typeof LoginWorkflowNERMStatusNerm[keyof typeof LoginWorkflowNERMStatusNerm]; /** * * @export * @interface LoginWorkflowOptionsNERM */ export interface LoginWorkflowOptionsNERM { /** * Used for login/password reset for when the password will expire. * @type {number} * @memberof LoginWorkflowOptionsNERM */ 'expiration_time'?: number; } /** * * @export * @interface MetadataNERM */ export interface MetadataNERM { /** * * @type {number} * @memberof MetadataNERM */ 'limit'?: number; /** * * @type {number} * @memberof MetadataNERM */ 'offset'?: number; /** * * @type {number} * @memberof MetadataNERM */ 'total'?: number; /** * * @type {string} * @memberof MetadataNERM */ 'next'?: string; /** * * @type {string} * @memberof MetadataNERM */ 'previous'?: string; } /** * * @export * @interface MetadataWithAfterIdNERM */ export interface MetadataWithAfterIdNERM { /** * The maximum number of records to return in the search * @type {number} * @memberof MetadataWithAfterIdNERM */ 'limit'?: number; /** * The number of records to skip before starting to return results. * @type {number} * @memberof MetadataWithAfterIdNERM */ 'offset'?: number; /** * The total number of records available matching the search criteria. * @type {number} * @memberof MetadataWithAfterIdNERM */ 'total'?: number; /** * The ID of the first record in the next set of results * @type {string} * @memberof MetadataWithAfterIdNERM */ 'next'?: string; /** * The ID of the last record in the previous set of results * @type {string} * @memberof MetadataWithAfterIdNERM */ 'previous'?: string; /** * The ID from which the search will start, ignoring all records before it. * @type {string} * @memberof MetadataWithAfterIdNERM */ 'after_id'?: string; } /** * * @export * @interface NotificationActionNERM */ export interface NotificationActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof NotificationActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof NotificationActionNERM */ 'description': string; /** * The attribute storing the email address for the workflow action. * @type {string} * @memberof NotificationActionNERM */ 'email_attribute_id'?: string; /** * The email addresses for the workflow action. * @type {Array} * @memberof NotificationActionNERM */ 'email_addresses'?: Array; /** * If the workflow action is archived or not. * @type {boolean} * @memberof NotificationActionNERM */ 'archived'?: boolean; /** * * @type {NotificationActionWorkflowActionEmailAttributesNERM} * @memberof NotificationActionNERM */ 'workflow_action_email_attributes'?: NotificationActionWorkflowActionEmailAttributesNERM; } /** * * @export * @interface NotificationActionWorkflowActionEmailAttributesNERM */ export interface NotificationActionWorkflowActionEmailAttributesNERM { /** * the id. * @type {string} * @memberof NotificationActionWorkflowActionEmailAttributesNERM */ 'id'?: string; /** * the id of the workflow action. * @type {string} * @memberof NotificationActionWorkflowActionEmailAttributesNERM */ 'workflow_action_id'?: string; /** * the id of the email. * @type {string} * @memberof NotificationActionWorkflowActionEmailAttributesNERM */ 'email_id'?: string; /** * the type of email. * @type {string} * @memberof NotificationActionWorkflowActionEmailAttributesNERM */ 'type'?: NotificationActionWorkflowActionEmailAttributesNERMTypeNerm; } export const NotificationActionWorkflowActionEmailAttributesNERMTypeNerm = { StandardEmail: 'StandardEmail' } as const; export type NotificationActionWorkflowActionEmailAttributesNERMTypeNerm = typeof NotificationActionWorkflowActionEmailAttributesNERMTypeNerm[keyof typeof NotificationActionWorkflowActionEmailAttributesNERMTypeNerm]; /** * * @export * @interface PageContent1NERM */ export interface PageContent1NERM { /** * The user-specified identifier for the record * @type {string} * @memberof PageContent1NERM */ 'uid'?: string; /** * The type of content on the page. * @type {string} * @memberof PageContent1NERM */ 'type': PageContent1NERMTypeNerm; /** * The text content to present in this page content record. * @type {string} * @memberof PageContent1NERM */ 'content'?: string; } export const PageContent1NERMTypeNerm = { FormHeading: 'FormHeading', LargeHeading: 'LargeHeading', MediumHeading: 'MediumHeading', SmallHeading: 'SmallHeading', Paragraph: 'Paragraph', HtmlContainer: 'HtmlContainer', Owner: 'Owner', RequestProgressBar: 'RequestProgressBar' } as const; export type PageContent1NERMTypeNerm = typeof PageContent1NERMTypeNerm[keyof typeof PageContent1NERMTypeNerm]; /** * * @export * @interface PageContentNERM */ export interface PageContentNERM { /** * The id of the page content * @type {string} * @memberof PageContentNERM */ 'id'?: string; /** * The user-specified identifier for the record * @type {string} * @memberof PageContentNERM */ 'uid'?: string; /** * The type of content on the page. * @type {string} * @memberof PageContentNERM */ 'type': PageContentNERMTypeNerm; /** * The text content to present in this page content record. * @type {string} * @memberof PageContentNERM */ 'content'?: string; /** * The date-time the record created. * @type {string} * @memberof PageContentNERM */ 'created_at'?: string; /** * The date-time the record was last updated. * @type {string} * @memberof PageContentNERM */ 'updated_at'?: string; } export const PageContentNERMTypeNerm = { FormHeading: 'FormHeading', LargeHeading: 'LargeHeading', MediumHeading: 'MediumHeading', SmallHeading: 'SmallHeading', Paragraph: 'Paragraph', HtmlContainer: 'HtmlContainer', Owner: 'Owner', RequestProgressBar: 'RequestProgressBar' } as const; export type PageContentNERMTypeNerm = typeof PageContentNERMTypeNerm[keyof typeof PageContentNERMTypeNerm]; /** * * @export * @interface PageContentTranslation1NERM */ export interface PageContentTranslation1NERM { /** * The user-specified identifier for the record * @type {string} * @memberof PageContentTranslation1NERM */ 'uid'?: string; /** * The user-specified identifier of the page content record this translation applies to; one of page_content_id or page_content_uid must be present. * @type {string} * @memberof PageContentTranslation1NERM */ 'page_content_uid'?: string; /** * The id of the page content record this translation applies to; one of page_content_id or page_content_uid must be present. * @type {string} * @memberof PageContentTranslation1NERM */ 'page_content_id'?: string; /** * The language locale this translation contains. * @type {string} * @memberof PageContentTranslation1NERM */ 'locale'?: string; /** * The translated string to present in the user interface. * @type {string} * @memberof PageContentTranslation1NERM */ 'value'?: string; } /** * * @export * @interface PageContentTranslationNERM */ export interface PageContentTranslationNERM { /** * The id of the page content * @type {string} * @memberof PageContentTranslationNERM */ 'id'?: string; /** * The user-specified identifier for the record * @type {string} * @memberof PageContentTranslationNERM */ 'uid'?: string; /** * The language locale this translation contains. * @type {string} * @memberof PageContentTranslationNERM */ 'locale'?: string; /** * The translated string to present in the user interface. * @type {string} * @memberof PageContentTranslationNERM */ 'value'?: string; /** * The date-time the record created. * @type {string} * @memberof PageContentTranslationNERM */ 'created_at'?: string; /** * The date-time the record was last updated. * @type {string} * @memberof PageContentTranslationNERM */ 'updated_at'?: string; } /** * * @export * @interface PageElement1NERM */ export interface PageElement1NERM { /** * The id of the page content * @type {string} * @memberof PageElement1NERM */ 'id'?: string; /** * The user-specified identifier for the record * @type {string} * @memberof PageElement1NERM */ 'uid'?: string; /** * The type of content on the page. * @type {string} * @memberof PageElement1NERM */ 'element_type': PageElement1NERMElementTypeNerm; /** * The user-specified identifier of the page record this applies to; one of page_id or page_uid must be present. * @type {string} * @memberof PageElement1NERM */ 'page_uid'?: string; /** * The id of the page record this applies to; one of page_id or page_uid must be present. * @type {string} * @memberof PageElement1NERM */ 'page_id'?: string; /** * The user-specified identifier of the record (Form or PageContent) this applies to; one of element_id or element_uid must be present. * @type {string} * @memberof PageElement1NERM */ 'element_uid'?: string; /** * The id of the record (Form or PageContent) this applies to; one of element_id or element_uid must be present. * @type {string} * @memberof PageElement1NERM */ 'element_id'?: string; /** * The ordinal position of the attribute in the user-interface page. * @type {number} * @memberof PageElement1NERM */ 'order'?: number; } export const PageElement1NERMElementTypeNerm = { PageContent: 'PageContent', Form: 'Form' } as const; export type PageElement1NERMElementTypeNerm = typeof PageElement1NERMElementTypeNerm[keyof typeof PageElement1NERMElementTypeNerm]; /** * * @export * @interface PageElementNERM */ export interface PageElementNERM { /** * The id of the page element * @type {string} * @memberof PageElementNERM */ 'id'?: string; /** * The user-specified identifier for the record * @type {string} * @memberof PageElementNERM */ 'uid'?: string; /** * The type of content on the page. * @type {string} * @memberof PageElementNERM */ 'element_type': PageElementNERMElementTypeNerm; /** * The user-specified identifier of the page record this applies to; one of page_id or page_uid must be present. * @type {string} * @memberof PageElementNERM */ 'page_uid'?: string; /** * The id of the page record this applies to; one of page_id or page_uid must be present. * @type {string} * @memberof PageElementNERM */ 'page_id'?: string; /** * The user-specified identifier of the record (Form or PageContent) this applies to; one of element_id or element_uid must be present. * @type {string} * @memberof PageElementNERM */ 'element_uid'?: string; /** * The id of the record (Form or PageContent) this applies to; one of element_id or element_uid must be present. * @type {string} * @memberof PageElementNERM */ 'element_id'?: string; /** * The position of the attribute in the ProfileType\'s naming * @type {number} * @memberof PageElementNERM */ 'order'?: number; } export const PageElementNERMElementTypeNerm = { PageContent: 'PageContent', Form: 'Form' } as const; export type PageElementNERMElementTypeNerm = typeof PageElementNERMElementTypeNerm[keyof typeof PageElementNERMElementTypeNerm]; /** * * @export * @interface PagesNERM */ export interface PagesNERM { /** * The user-specified identifier of the page * @type {string} * @memberof PagesNERM */ 'uid'?: string; /** * The description of the page * @type {string} * @memberof PagesNERM */ 'description'?: string; /** * The name of the page * @type {string} * @memberof PagesNERM */ 'name'?: string; /** * Determines whether the page is archived * @type {boolean} * @memberof PagesNERM */ 'archived'?: boolean; /** * The id of the form * @type {string} * @memberof PagesNERM */ 'id'?: string; } /** * * @export * @interface PasswordResetActionNERM */ export interface PasswordResetActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof PasswordResetActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof PasswordResetActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof PasswordResetActionNERM */ 'archived'?: boolean; } /** * * @export * @interface PatchLanguageRequestNERM */ export interface PatchLanguageRequestNERM { /** * * @type {LanguageNERM} * @memberof PatchLanguageRequestNERM */ 'language'?: LanguageNERM; } /** * * @export * @interface Permission1NERM */ export interface Permission1NERM { /** * The id of the role * @type {string} * @memberof Permission1NERM */ 'role_id'?: string; /** * The ID of the object that the permission is giving access to * @type {string} * @memberof Permission1NERM */ 'subject_id'?: string; /** * The permissions level of access * @type {number} * @memberof Permission1NERM */ 'value'?: Permission1NERMValueNerm; /** * The type of permission * @type {number} * @memberof Permission1NERM */ 'subject'?: Permission1NERMSubjectNerm; } export const Permission1NERMValueNerm = { NUMBER_1: 1, NUMBER_2: 2, NUMBER_3: 3, NUMBER_4: 4, NUMBER_5: 5, NUMBER_6: 6, NUMBER_7: 7 } as const; export type Permission1NERMValueNerm = typeof Permission1NERMValueNerm[keyof typeof Permission1NERMValueNerm]; export const Permission1NERMSubjectNerm = { NUMBER_0: 0, NUMBER_1: 1, NUMBER_2: 2, NUMBER_3: 3, NUMBER_4: 4, NUMBER_5: 5, NUMBER_6: 6, NUMBER_7: 7, NUMBER_8: 8, NUMBER_9: 9, NUMBER_10: 10, NUMBER_11: 11, NUMBER_12: 12, NUMBER_13: 13, NUMBER_14: 14, NUMBER_15: 15, NUMBER_16: 16, NUMBER_17: 17, NUMBER_18: 18, NUMBER_19: 19, NUMBER_20: 20, NUMBER_21: 21, NUMBER_22: 22, NUMBER_23: 23 } as const; export type Permission1NERMSubjectNerm = typeof Permission1NERMSubjectNerm[keyof typeof Permission1NERMSubjectNerm]; /** * * @export * @interface PermissionNERM */ export interface PermissionNERM { /** * The id of the permission * @type {string} * @memberof PermissionNERM */ 'id'?: string; /** * The id of the role * @type {string} * @memberof PermissionNERM */ 'role_id'?: string; /** * The permissions level of access * @type {number} * @memberof PermissionNERM */ 'value'?: number; /** * The type of permission * @type {number} * @memberof PermissionNERM */ 'subject'?: number; /** * The ID of the object that the permission is giving access to * @type {string} * @memberof PermissionNERM */ 'subject_id'?: string; } /** * * @export * @interface Profile1NERM */ export interface Profile1NERM { /** * The profile name. * @type {string} * @memberof Profile1NERM */ 'name'?: string; /** * The profile type id. * @type {string} * @memberof Profile1NERM */ 'profile_type_id': string; /** * The profile status. * @type {string} * @memberof Profile1NERM */ 'status': Profile1NERMStatusNerm; /** * The id proofing status of the profile. * @type {string} * @memberof Profile1NERM */ 'id_proofing_status'?: Profile1NERMIdProofingStatusNerm; /** * Describes whether the profile is archived or not. * @type {boolean} * @memberof Profile1NERM */ 'archived'?: boolean; /** * The attributes associated with the profile. * @type {{ [key: string]: string; }} * @memberof Profile1NERM */ 'attributes'?: { [key: string]: string; }; } export const Profile1NERMStatusNerm = { Active: 'Active', Inactive: 'Inactive', OnLeave: 'On Leave', Terminated: 'Terminated' } as const; export type Profile1NERMStatusNerm = typeof Profile1NERMStatusNerm[keyof typeof Profile1NERMStatusNerm]; export const Profile1NERMIdProofingStatusNerm = { Pending: 'pending', Pass: 'pass', Fail: 'fail' } as const; export type Profile1NERMIdProofingStatusNerm = typeof Profile1NERMIdProofingStatusNerm[keyof typeof Profile1NERMIdProofingStatusNerm]; /** * * @export * @interface ProfileAttributeRuleDate1NERM */ export interface ProfileAttributeRuleDate1NERM { /** * * @type {string} * @memberof ProfileAttributeRuleDate1NERM */ 'type': ProfileAttributeRuleDate1NERMTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDate1NERM */ 'condition_object_type': ProfileAttributeRuleDate1NERMConditionObjectTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDate1NERM */ 'condition_object_id'?: string; /** * * @type {string} * @memberof ProfileAttributeRuleDate1NERM */ 'secondary_attribute_type'?: ProfileAttributeRuleDate1NERMSecondaryAttributeTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDate1NERM */ 'secondary_attribute_id'?: string; /** * * @type {string} * @memberof ProfileAttributeRuleDate1NERM */ 'comparison_operator'?: ProfileAttributeRuleDate1NERMComparisonOperatorNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDate1NERM */ 'value': ProfileAttributeRuleDate1NERMValueNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDate1NERM */ 'secondary_value'?: ProfileAttributeRuleDate1NERMSecondaryValueNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDate1NERM */ 'tertiary_value'?: string; } export const ProfileAttributeRuleDate1NERMTypeNerm = { ProfileAttributeRule: 'ProfileAttributeRule' } as const; export type ProfileAttributeRuleDate1NERMTypeNerm = typeof ProfileAttributeRuleDate1NERMTypeNerm[keyof typeof ProfileAttributeRuleDate1NERMTypeNerm]; export const ProfileAttributeRuleDate1NERMConditionObjectTypeNerm = { DateAttribute: 'DateAttribute' } as const; export type ProfileAttributeRuleDate1NERMConditionObjectTypeNerm = typeof ProfileAttributeRuleDate1NERMConditionObjectTypeNerm[keyof typeof ProfileAttributeRuleDate1NERMConditionObjectTypeNerm]; export const ProfileAttributeRuleDate1NERMSecondaryAttributeTypeNerm = { DateAttribute: 'DateAttribute' } as const; export type ProfileAttributeRuleDate1NERMSecondaryAttributeTypeNerm = typeof ProfileAttributeRuleDate1NERMSecondaryAttributeTypeNerm[keyof typeof ProfileAttributeRuleDate1NERMSecondaryAttributeTypeNerm]; export const ProfileAttributeRuleDate1NERMComparisonOperatorNerm = { GreaterThan: '>', LessThan: '<', After: 'after', Before: 'before' } as const; export type ProfileAttributeRuleDate1NERMComparisonOperatorNerm = typeof ProfileAttributeRuleDate1NERMComparisonOperatorNerm[keyof typeof ProfileAttributeRuleDate1NERMComparisonOperatorNerm]; export const ProfileAttributeRuleDate1NERMValueNerm = { Today: 'Today', Uid: '' } as const; export type ProfileAttributeRuleDate1NERMValueNerm = typeof ProfileAttributeRuleDate1NERMValueNerm[keyof typeof ProfileAttributeRuleDate1NERMValueNerm]; export const ProfileAttributeRuleDate1NERMSecondaryValueNerm = { After: 'after', Before: 'before' } as const; export type ProfileAttributeRuleDate1NERMSecondaryValueNerm = typeof ProfileAttributeRuleDate1NERMSecondaryValueNerm[keyof typeof ProfileAttributeRuleDate1NERMSecondaryValueNerm]; /** * * @export * @interface ProfileAttributeRuleDateNERM */ export interface ProfileAttributeRuleDateNERM { /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'id'?: string; /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'uid'?: string; /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'type': ProfileAttributeRuleDateNERMTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'condition_object_type': ProfileAttributeRuleDateNERMConditionObjectTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'condition_object_id'?: string; /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'secondary_attribute_type'?: ProfileAttributeRuleDateNERMSecondaryAttributeTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'secondary_attribute_id'?: string; /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'comparison_operator'?: ProfileAttributeRuleDateNERMComparisonOperatorNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'value': ProfileAttributeRuleDateNERMValueNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'secondary_value'?: ProfileAttributeRuleDateNERMSecondaryValueNerm; /** * * @type {string} * @memberof ProfileAttributeRuleDateNERM */ 'tertiary_value'?: string; } export const ProfileAttributeRuleDateNERMTypeNerm = { ProfileAttributeRule: 'ProfileAttributeRule' } as const; export type ProfileAttributeRuleDateNERMTypeNerm = typeof ProfileAttributeRuleDateNERMTypeNerm[keyof typeof ProfileAttributeRuleDateNERMTypeNerm]; export const ProfileAttributeRuleDateNERMConditionObjectTypeNerm = { DateAttribute: 'DateAttribute' } as const; export type ProfileAttributeRuleDateNERMConditionObjectTypeNerm = typeof ProfileAttributeRuleDateNERMConditionObjectTypeNerm[keyof typeof ProfileAttributeRuleDateNERMConditionObjectTypeNerm]; export const ProfileAttributeRuleDateNERMSecondaryAttributeTypeNerm = { DateAttribute: 'DateAttribute' } as const; export type ProfileAttributeRuleDateNERMSecondaryAttributeTypeNerm = typeof ProfileAttributeRuleDateNERMSecondaryAttributeTypeNerm[keyof typeof ProfileAttributeRuleDateNERMSecondaryAttributeTypeNerm]; export const ProfileAttributeRuleDateNERMComparisonOperatorNerm = { GreaterThan: '>', LessThan: '<', After: 'after', Before: 'before' } as const; export type ProfileAttributeRuleDateNERMComparisonOperatorNerm = typeof ProfileAttributeRuleDateNERMComparisonOperatorNerm[keyof typeof ProfileAttributeRuleDateNERMComparisonOperatorNerm]; export const ProfileAttributeRuleDateNERMValueNerm = { Today: 'Today', Uid: '' } as const; export type ProfileAttributeRuleDateNERMValueNerm = typeof ProfileAttributeRuleDateNERMValueNerm[keyof typeof ProfileAttributeRuleDateNERMValueNerm]; export const ProfileAttributeRuleDateNERMSecondaryValueNerm = { After: 'after', Before: 'before' } as const; export type ProfileAttributeRuleDateNERMSecondaryValueNerm = typeof ProfileAttributeRuleDateNERMSecondaryValueNerm[keyof typeof ProfileAttributeRuleDateNERMSecondaryValueNerm]; /** * * @export * @interface ProfileAttributeRuleId1NERM */ export interface ProfileAttributeRuleId1NERM { /** * * @type {string} * @memberof ProfileAttributeRuleId1NERM */ 'type': ProfileAttributeRuleId1NERMTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleId1NERM */ 'condition_object_type': ProfileAttributeRuleId1NERMConditionObjectTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleId1NERM */ 'condition_object_id': string; /** * * @type {string} * @memberof ProfileAttributeRuleId1NERM */ 'comparison_operator': ProfileAttributeRuleId1NERMComparisonOperatorNerm; /** * * @type {string} * @memberof ProfileAttributeRuleId1NERM */ 'value': string; } export const ProfileAttributeRuleId1NERMTypeNerm = { ProfileAttributeRule: 'ProfileAttributeRule' } as const; export type ProfileAttributeRuleId1NERMTypeNerm = typeof ProfileAttributeRuleId1NERMTypeNerm[keyof typeof ProfileAttributeRuleId1NERMTypeNerm]; export const ProfileAttributeRuleId1NERMConditionObjectTypeNerm = { ProfileSelectAttribute: 'ProfileSelectAttribute', ProfileSearchAttribute: 'ProfileSearchAttribute', OwnerSelectAttribute: 'OwnerSelectAttribute', OwnerSearchAttribute: 'OwnerSearchAttribute', ContributorSelectAttribute: 'ContributorSelectAttribute', ContributorSearchAttribute: 'ContributorSearchAttribute' } as const; export type ProfileAttributeRuleId1NERMConditionObjectTypeNerm = typeof ProfileAttributeRuleId1NERMConditionObjectTypeNerm[keyof typeof ProfileAttributeRuleId1NERMConditionObjectTypeNerm]; export const ProfileAttributeRuleId1NERMComparisonOperatorNerm = { Include: 'include?', Exclude: 'exclude?' } as const; export type ProfileAttributeRuleId1NERMComparisonOperatorNerm = typeof ProfileAttributeRuleId1NERMComparisonOperatorNerm[keyof typeof ProfileAttributeRuleId1NERMComparisonOperatorNerm]; /** * * @export * @interface ProfileAttributeRuleIdNERM */ export interface ProfileAttributeRuleIdNERM { /** * * @type {string} * @memberof ProfileAttributeRuleIdNERM */ 'id'?: string; /** * * @type {string} * @memberof ProfileAttributeRuleIdNERM */ 'uid'?: string; /** * * @type {string} * @memberof ProfileAttributeRuleIdNERM */ 'type': ProfileAttributeRuleIdNERMTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleIdNERM */ 'condition_object_type': ProfileAttributeRuleIdNERMConditionObjectTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleIdNERM */ 'condition_object_id': string; /** * * @type {string} * @memberof ProfileAttributeRuleIdNERM */ 'comparison_operator': ProfileAttributeRuleIdNERMComparisonOperatorNerm; /** * * @type {string} * @memberof ProfileAttributeRuleIdNERM */ 'value': string; } export const ProfileAttributeRuleIdNERMTypeNerm = { ProfileAttributeRule: 'ProfileAttributeRule' } as const; export type ProfileAttributeRuleIdNERMTypeNerm = typeof ProfileAttributeRuleIdNERMTypeNerm[keyof typeof ProfileAttributeRuleIdNERMTypeNerm]; export const ProfileAttributeRuleIdNERMConditionObjectTypeNerm = { ProfileSelectAttribute: 'ProfileSelectAttribute', ProfileSearchAttribute: 'ProfileSearchAttribute', OwnerSelectAttribute: 'OwnerSelectAttribute', OwnerSearchAttribute: 'OwnerSearchAttribute', ContributorSelectAttribute: 'ContributorSelectAttribute', ContributorSearchAttribute: 'ContributorSearchAttribute' } as const; export type ProfileAttributeRuleIdNERMConditionObjectTypeNerm = typeof ProfileAttributeRuleIdNERMConditionObjectTypeNerm[keyof typeof ProfileAttributeRuleIdNERMConditionObjectTypeNerm]; export const ProfileAttributeRuleIdNERMComparisonOperatorNerm = { Include: 'include?', Exclude: 'exclude?' } as const; export type ProfileAttributeRuleIdNERMComparisonOperatorNerm = typeof ProfileAttributeRuleIdNERMComparisonOperatorNerm[keyof typeof ProfileAttributeRuleIdNERMComparisonOperatorNerm]; /** * * @export * @interface ProfileAttributeRuleString1NERM */ export interface ProfileAttributeRuleString1NERM { /** * * @type {string} * @memberof ProfileAttributeRuleString1NERM */ 'type': ProfileAttributeRuleString1NERMTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleString1NERM */ 'condition_object_type': ProfileAttributeRuleString1NERMConditionObjectTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleString1NERM */ 'condition_object_id': string; /** * * @type {string} * @memberof ProfileAttributeRuleString1NERM */ 'comparison_operator': ProfileAttributeRuleString1NERMComparisonOperatorNerm; /** * * @type {string} * @memberof ProfileAttributeRuleString1NERM */ 'value': string; } export const ProfileAttributeRuleString1NERMTypeNerm = { ProfileAttributeRule: 'ProfileAttributeRule' } as const; export type ProfileAttributeRuleString1NERMTypeNerm = typeof ProfileAttributeRuleString1NERMTypeNerm[keyof typeof ProfileAttributeRuleString1NERMTypeNerm]; export const ProfileAttributeRuleString1NERMConditionObjectTypeNerm = { TextFieldAttribute: 'TextFieldAttribute', TextAreaAttribute: 'TextAreaAttribute' } as const; export type ProfileAttributeRuleString1NERMConditionObjectTypeNerm = typeof ProfileAttributeRuleString1NERMConditionObjectTypeNerm[keyof typeof ProfileAttributeRuleString1NERMConditionObjectTypeNerm]; export const ProfileAttributeRuleString1NERMComparisonOperatorNerm = { DoubleEqual: '==', NotEqual: '!=', GreaterThan: '>', LessThan: '<', StartWith: 'start_with?', EndWith: 'end_with?', Include: 'include?' } as const; export type ProfileAttributeRuleString1NERMComparisonOperatorNerm = typeof ProfileAttributeRuleString1NERMComparisonOperatorNerm[keyof typeof ProfileAttributeRuleString1NERMComparisonOperatorNerm]; /** * * @export * @interface ProfileAttributeRuleStringNERM */ export interface ProfileAttributeRuleStringNERM { /** * * @type {string} * @memberof ProfileAttributeRuleStringNERM */ 'id'?: string; /** * * @type {string} * @memberof ProfileAttributeRuleStringNERM */ 'uid'?: string; /** * * @type {string} * @memberof ProfileAttributeRuleStringNERM */ 'type': ProfileAttributeRuleStringNERMTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleStringNERM */ 'condition_object_type': ProfileAttributeRuleStringNERMConditionObjectTypeNerm; /** * * @type {string} * @memberof ProfileAttributeRuleStringNERM */ 'condition_object_id': string; /** * * @type {string} * @memberof ProfileAttributeRuleStringNERM */ 'comparison_operator': ProfileAttributeRuleStringNERMComparisonOperatorNerm; /** * * @type {string} * @memberof ProfileAttributeRuleStringNERM */ 'value': string; } export const ProfileAttributeRuleStringNERMTypeNerm = { ProfileAttributeRule: 'ProfileAttributeRule' } as const; export type ProfileAttributeRuleStringNERMTypeNerm = typeof ProfileAttributeRuleStringNERMTypeNerm[keyof typeof ProfileAttributeRuleStringNERMTypeNerm]; export const ProfileAttributeRuleStringNERMConditionObjectTypeNerm = { TextFieldAttribute: 'TextFieldAttribute', TextAreaAttribute: 'TextAreaAttribute' } as const; export type ProfileAttributeRuleStringNERMConditionObjectTypeNerm = typeof ProfileAttributeRuleStringNERMConditionObjectTypeNerm[keyof typeof ProfileAttributeRuleStringNERMConditionObjectTypeNerm]; export const ProfileAttributeRuleStringNERMComparisonOperatorNerm = { DoubleEqual: '==', NotEqual: '!=', GreaterThan: '>', LessThan: '<', StartWith: 'start_with?', EndWith: 'end_with?', Include: 'include?' } as const; export type ProfileAttributeRuleStringNERMComparisonOperatorNerm = typeof ProfileAttributeRuleStringNERMComparisonOperatorNerm[keyof typeof ProfileAttributeRuleStringNERMComparisonOperatorNerm]; /** * * @export * @interface ProfileCheckActionNERM */ export interface ProfileCheckActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof ProfileCheckActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof ProfileCheckActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof ProfileCheckActionNERM */ 'archived'?: boolean; /** * An array of ne_attribute_ids. * @type {Array} * @memberof ProfileCheckActionNERM */ 'ne_attribute_ids'?: Array; /** * The handle type for what should happen if an existing profile is found. * @type {string} * @memberof ProfileCheckActionNERM */ 'handle_type'?: ProfileCheckActionNERMHandleTypeNerm; /** * The handle id. When handle type is session, this is the session id. * @type {string} * @memberof ProfileCheckActionNERM */ 'handle_id'?: string; } export const ProfileCheckActionNERMHandleTypeNerm = { Session: 'session', Attribute: 'attribute' } as const; export type ProfileCheckActionNERMHandleTypeNerm = typeof ProfileCheckActionNERMHandleTypeNerm[keyof typeof ProfileCheckActionNERMHandleTypeNerm]; /** * * @export * @interface ProfileNERM */ export interface ProfileNERM { /** * The objects ID * @type {string} * @memberof ProfileNERM */ 'id'?: string; /** * The objects UID * @type {string} * @memberof ProfileNERM */ 'uid'?: string; /** * This is the name of the profile. * @type {string} * @memberof ProfileNERM */ 'name'?: string; /** * This is the ID of the profile type the profile belongs to * @type {string} * @memberof ProfileNERM */ 'profile_type_id'?: string; /** * This is the status of the profile * @type {string} * @memberof ProfileNERM */ 'status'?: ProfileNERMStatusNerm; /** * This is the ID proofing staus of the profile * @type {string} * @memberof ProfileNERM */ 'id_proofing_status'?: ProfileNERMIdProofingStatusNerm; /** * The date and time the profile was created * @type {string} * @memberof ProfileNERM */ 'created_at'?: string; /** * The date and time the profile was updated * @type {string} * @memberof ProfileNERM */ 'updated_at'?: string; /** * Attributes that belong to this profile. * @type {{ [key: string]: string; }} * @memberof ProfileNERM */ 'attributes'?: { [key: string]: string; }; } export const ProfileNERMStatusNerm = { Active: 'Active', Inactive: 'Inactive', OnLeave: 'On Leave', Terminated: 'Terminated' } as const; export type ProfileNERMStatusNerm = typeof ProfileNERMStatusNerm[keyof typeof ProfileNERMStatusNerm]; export const ProfileNERMIdProofingStatusNerm = { Pending: 'pending', Pass: 'pass', Fail: 'fail' } as const; export type ProfileNERMIdProofingStatusNerm = typeof ProfileNERMIdProofingStatusNerm[keyof typeof ProfileNERMIdProofingStatusNerm]; /** * * @export * @interface ProfilePageNERM */ export interface ProfilePageNERM { /** * The user-specified identifier of the page * @type {string} * @memberof ProfilePageNERM */ 'uid'?: string; /** * The description of the page * @type {string} * @memberof ProfilePageNERM */ 'description'?: string; /** * The name of the page * @type {string} * @memberof ProfilePageNERM */ 'name'?: string; /** * Determines whether the page is archived * @type {boolean} * @memberof ProfilePageNERM */ 'archived'?: boolean; } /** * * @export * @interface ProfileSelectActionNERM */ export interface ProfileSelectActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof ProfileSelectActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof ProfileSelectActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof ProfileSelectActionNERM */ 'archived'?: boolean; } /** * * @export * @interface ProfileStatusRule1NERM */ export interface ProfileStatusRule1NERM { /** * * @type {string} * @memberof ProfileStatusRule1NERM */ 'type': ProfileStatusRule1NERMTypeNerm; /** * * @type {string} * @memberof ProfileStatusRule1NERM */ 'comparison_operator': ProfileStatusRule1NERMComparisonOperatorNerm; /** * * @type {string} * @memberof ProfileStatusRule1NERM */ 'value': ProfileStatusRule1NERMValueNerm; } export const ProfileStatusRule1NERMTypeNerm = { ProfileStatusRule: 'ProfileStatusRule' } as const; export type ProfileStatusRule1NERMTypeNerm = typeof ProfileStatusRule1NERMTypeNerm[keyof typeof ProfileStatusRule1NERMTypeNerm]; export const ProfileStatusRule1NERMComparisonOperatorNerm = { DoubleEqual: '==', NotEqual: '!=' } as const; export type ProfileStatusRule1NERMComparisonOperatorNerm = typeof ProfileStatusRule1NERMComparisonOperatorNerm[keyof typeof ProfileStatusRule1NERMComparisonOperatorNerm]; export const ProfileStatusRule1NERMValueNerm = { Active: 'Active', Inactive: 'Inactive', LeaveOfAbsence: 'Leave of absence', Terminated: 'Terminated' } as const; export type ProfileStatusRule1NERMValueNerm = typeof ProfileStatusRule1NERMValueNerm[keyof typeof ProfileStatusRule1NERMValueNerm]; /** * * @export * @interface ProfileStatusRuleNERM */ export interface ProfileStatusRuleNERM { /** * * @type {string} * @memberof ProfileStatusRuleNERM */ 'id'?: string; /** * * @type {string} * @memberof ProfileStatusRuleNERM */ 'uid'?: string; /** * * @type {string} * @memberof ProfileStatusRuleNERM */ 'type': ProfileStatusRuleNERMTypeNerm; /** * * @type {string} * @memberof ProfileStatusRuleNERM */ 'comparison_operator'?: ProfileStatusRuleNERMComparisonOperatorNerm; /** * * @type {string} * @memberof ProfileStatusRuleNERM */ 'value'?: ProfileStatusRuleNERMValueNerm; } export const ProfileStatusRuleNERMTypeNerm = { ProfileStatusRule: 'ProfileStatusRule' } as const; export type ProfileStatusRuleNERMTypeNerm = typeof ProfileStatusRuleNERMTypeNerm[keyof typeof ProfileStatusRuleNERMTypeNerm]; export const ProfileStatusRuleNERMComparisonOperatorNerm = { DoubleEqual: '==', NotEqual: '!=' } as const; export type ProfileStatusRuleNERMComparisonOperatorNerm = typeof ProfileStatusRuleNERMComparisonOperatorNerm[keyof typeof ProfileStatusRuleNERMComparisonOperatorNerm]; export const ProfileStatusRuleNERMValueNerm = { Active: 'Active', Inactive: 'Inactive', LeaveOfAbsence: 'Leave of absence', Terminated: 'Terminated' } as const; export type ProfileStatusRuleNERMValueNerm = typeof ProfileStatusRuleNERMValueNerm[keyof typeof ProfileStatusRuleNERMValueNerm]; /** * * @export * @interface ProfileType1NERM */ export interface ProfileType1NERM { /** * This is the name of the profile type. * @type {string} * @memberof ProfileType1NERM */ 'name'?: string; /** * This is the category the profile type falls into. * @type {string} * @memberof ProfileType1NERM */ 'category'?: ProfileType1NERMCategoryNerm; /** * Whether or not duplication protection is bypassed. * @type {boolean} * @memberof ProfileType1NERM */ 'bypass_dup_protection'?: boolean; /** * Whether or not the profile type is archived. * @type {boolean} * @memberof ProfileType1NERM */ 'archived'?: boolean; /** * The role ids that are permitted for this profile type. * @type {Array} * @memberof ProfileType1NERM */ 'permitted_role_ids'?: Array; /** * Is this profile type synced with ics * @type {boolean} * @memberof ProfileType1NERM */ 'isc_synced'?: boolean; /** * * @type {Array} * @memberof ProfileType1NERM */ 'profile_type_dup_attributes_attributes'?: Array; /** * * @type {Array} * @memberof ProfileType1NERM */ 'profile_type_namings_attributes'?: Array; } export const ProfileType1NERMCategoryNerm = { Employee: 'employee', NonEmployee: 'non-employee', Organization: 'organization', Assignment: 'assignment', Other: 'other' } as const; export type ProfileType1NERMCategoryNerm = typeof ProfileType1NERMCategoryNerm[keyof typeof ProfileType1NERMCategoryNerm]; /** * * @export * @interface ProfileType1ProfileTypeDupAttributesAttributesInnerNERM */ export interface ProfileType1ProfileTypeDupAttributesAttributesInnerNERM { /** * The ID of the ne attribute. * @type {string} * @memberof ProfileType1ProfileTypeDupAttributesAttributesInnerNERM */ 'ne_attribute_id'?: string; } /** * * @export * @interface ProfileType1ProfileTypeNamingsAttributesInnerNERM */ export interface ProfileType1ProfileTypeNamingsAttributesInnerNERM { /** * The ID of the associated ne attribute. * @type {string} * @memberof ProfileType1ProfileTypeNamingsAttributesInnerNERM */ 'ne_attribute_id'?: string; /** * The order that the namings are used in. * @type {number} * @memberof ProfileType1ProfileTypeNamingsAttributesInnerNERM */ 'order'?: number; } /** * * @export * @interface ProfileTypeAttributeNERM */ export interface ProfileTypeAttributeNERM { /** * ID of ne attribute * @type {string} * @memberof ProfileTypeAttributeNERM */ 'id'?: string; /** * Ne attribute\'s uid * @type {string} * @memberof ProfileTypeAttributeNERM */ 'uid'?: string; /** * Ne attribute\'s label * @type {string} * @memberof ProfileTypeAttributeNERM */ 'label': string; /** * synced_attribute ID if there is one * @type {string} * @memberof ProfileTypeAttributeNERM */ 'synced'?: string; } /** * * @export * @interface ProfileTypeAttributesNERM */ export interface ProfileTypeAttributesNERM { /** * How many ne attribute records exist * @type {number} * @memberof ProfileTypeAttributesNERM */ 'count'?: number; /** * * @type {Array} * @memberof ProfileTypeAttributesNERM */ 'records'?: Array; } /** * * @export * @interface ProfileTypeNERM */ export interface ProfileTypeNERM { /** * The objects ID. * @type {string} * @memberof ProfileTypeNERM */ 'id'?: string; /** * The objects UID. * @type {string} * @memberof ProfileTypeNERM */ 'uid'?: string; /** * This is the name of the profile type. * @type {string} * @memberof ProfileTypeNERM */ 'name'?: string; /** * This is the category the profile type falls into. * @type {string} * @memberof ProfileTypeNERM */ 'category'?: ProfileTypeNERMCategoryNerm; /** * Whether or not duplication protection is bypassed. * @type {boolean} * @memberof ProfileTypeNERM */ 'bypass_dup_protection'?: boolean; /** * Whether or not the profile type is archived. * @type {boolean} * @memberof ProfileTypeNERM */ 'archived'?: boolean; /** * The role ids that are permitted for this profile type. * @type {Array} * @memberof ProfileTypeNERM */ 'permitted_role_ids'?: Array; /** * Is this profile type synced with ics * @type {boolean} * @memberof ProfileTypeNERM */ 'isc_synced'?: boolean; /** * * @type {Array} * @memberof ProfileTypeNERM */ 'profile_type_dup_attributes'?: Array; /** * * @type {Array} * @memberof ProfileTypeNERM */ 'profile_type_namings'?: Array; } export const ProfileTypeNERMCategoryNerm = { Employee: 'employee', NonEmployee: 'non-employee', Organization: 'organization', Assignment: 'assignment', Other: 'other' } as const; export type ProfileTypeNERMCategoryNerm = typeof ProfileTypeNERMCategoryNerm[keyof typeof ProfileTypeNERMCategoryNerm]; /** * * @export * @interface ProfileTypeProfileTypeDupAttributesInnerNERM */ export interface ProfileTypeProfileTypeDupAttributesInnerNERM { /** * The ID of the properties that are used for duplication protection. * @type {string} * @memberof ProfileTypeProfileTypeDupAttributesInnerNERM */ 'id'?: string; /** * The user-specified identifier of the properties that are used for duplication protection. * @type {string} * @memberof ProfileTypeProfileTypeDupAttributesInnerNERM */ 'uid'?: string; /** * The ID of the profile type. * @type {string} * @memberof ProfileTypeProfileTypeDupAttributesInnerNERM */ 'profile_type_id'?: string; /** * The ID of the ne attribute. * @type {string} * @memberof ProfileTypeProfileTypeDupAttributesInnerNERM */ 'ne_attribute_id'?: string; } /** * * @export * @interface ProfileTypeProfileTypeNamingsInnerNERM */ export interface ProfileTypeProfileTypeNamingsInnerNERM { /** * The ID of the profile type naming. * @type {string} * @memberof ProfileTypeProfileTypeNamingsInnerNERM */ 'id'?: string; /** * The user-specified identifier of the profile type naming. * @type {string} * @memberof ProfileTypeProfileTypeNamingsInnerNERM */ 'uid'?: string; /** * The ID of the associated profile type. * @type {string} * @memberof ProfileTypeProfileTypeNamingsInnerNERM */ 'profile_type_id'?: string; /** * The ID of the associated ne attribute. * @type {string} * @memberof ProfileTypeProfileTypeNamingsInnerNERM */ 'ne_attribute_id'?: string; /** * The order that the namings are used in. * @type {number} * @memberof ProfileTypeProfileTypeNamingsInnerNERM */ 'order'?: number; } /** * * @export * @interface ProfileTypeRoles1NERM */ export interface ProfileTypeRoles1NERM { /** * The id of the profile type * @type {string} * @memberof ProfileTypeRoles1NERM */ 'profile_type_id'?: string; /** * The id of the role * @type {string} * @memberof ProfileTypeRoles1NERM */ 'role_id'?: string; } /** * * @export * @interface ProfileTypeRolesNERM */ export interface ProfileTypeRolesNERM { /** * The id of the profile type * @type {string} * @memberof ProfileTypeRolesNERM */ 'profile_type_id'?: string; /** * The id of the role * @type {string} * @memberof ProfileTypeRolesNERM */ 'role_id'?: string; /** * The id of the profile type role * @type {string} * @memberof ProfileTypeRolesNERM */ 'id'?: string; } /** * * @export * @interface ProfileTypeRule1NERM */ export interface ProfileTypeRule1NERM { /** * * @type {string} * @memberof ProfileTypeRule1NERM */ 'type': ProfileTypeRule1NERMTypeNerm; /** * * @type {string} * @memberof ProfileTypeRule1NERM */ 'comparison_operator': ProfileTypeRule1NERMComparisonOperatorNerm; /** * * @type {string} * @memberof ProfileTypeRule1NERM */ 'value': string; } export const ProfileTypeRule1NERMTypeNerm = { ProfileTypeRule: 'ProfileTypeRule' } as const; export type ProfileTypeRule1NERMTypeNerm = typeof ProfileTypeRule1NERMTypeNerm[keyof typeof ProfileTypeRule1NERMTypeNerm]; export const ProfileTypeRule1NERMComparisonOperatorNerm = { DoubleEqual: '==', NotEqual: '!=' } as const; export type ProfileTypeRule1NERMComparisonOperatorNerm = typeof ProfileTypeRule1NERMComparisonOperatorNerm[keyof typeof ProfileTypeRule1NERMComparisonOperatorNerm]; /** * * @export * @interface ProfileTypeRuleNERM */ export interface ProfileTypeRuleNERM { /** * * @type {string} * @memberof ProfileTypeRuleNERM */ 'id'?: string; /** * * @type {string} * @memberof ProfileTypeRuleNERM */ 'uid'?: string; /** * * @type {string} * @memberof ProfileTypeRuleNERM */ 'type': ProfileTypeRuleNERMTypeNerm; /** * * @type {string} * @memberof ProfileTypeRuleNERM */ 'comparison_operator'?: ProfileTypeRuleNERMComparisonOperatorNerm; /** * * @type {string} * @memberof ProfileTypeRuleNERM */ 'value'?: string; } export const ProfileTypeRuleNERMTypeNerm = { ProfileTypeRule: 'ProfileTypeRule' } as const; export type ProfileTypeRuleNERMTypeNerm = typeof ProfileTypeRuleNERMTypeNerm[keyof typeof ProfileTypeRuleNERMTypeNerm]; export const ProfileTypeRuleNERMComparisonOperatorNerm = { DoubleEqual: '==', NotEqual: '!=' } as const; export type ProfileTypeRuleNERMComparisonOperatorNerm = typeof ProfileTypeRuleNERMComparisonOperatorNerm[keyof typeof ProfileTypeRuleNERMComparisonOperatorNerm]; /** * * @export * @interface ProfilesNERM */ export interface ProfilesNERM { /** * * @type {Array} * @memberof ProfilesNERM */ 'profiles'?: Array; } /** * * @export * @interface RequestActionNERM */ export interface RequestActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof RequestActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof RequestActionNERM */ 'description': string; /** * The page the workflow action should render. * @type {string} * @memberof RequestActionNERM */ 'page_id'?: string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof RequestActionNERM */ 'archived'?: boolean; /** * If the workflow action requires a comment or not. * @type {boolean} * @memberof RequestActionNERM */ 'requires_comment'?: boolean; } /** * * @export * @interface RestApiActionNERM */ export interface RestApiActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof RestApiActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof RestApiActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof RestApiActionNERM */ 'archived'?: boolean; } /** * * @export * @interface ReviewActionNERM */ export interface ReviewActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof ReviewActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof ReviewActionNERM */ 'description': string; /** * The page the workflow action should render. * @type {string} * @memberof ReviewActionNERM */ 'page_id'?: string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof ReviewActionNERM */ 'archived'?: boolean; /** * If the workflow action requires a comment or not. * @type {boolean} * @memberof ReviewActionNERM */ 'requires_comment'?: boolean; } /** * * @export * @interface RiskLevelNERM */ export interface RiskLevelNERM { /** * * @type {string} * @memberof RiskLevelNERM */ 'id'?: string; /** * * @type {string} * @memberof RiskLevelNERM */ 'uid'?: string; /** * * @type {string} * @memberof RiskLevelNERM */ 'label'?: string; /** * * @type {number} * @memberof RiskLevelNERM */ 'points'?: number; /** * * @type {number} * @memberof RiskLevelNERM */ 'order'?: number; } /** * * @export * @interface RiskRule1NERM */ export interface RiskRule1NERM { /** * * @type {string} * @memberof RiskRule1NERM */ 'type': RiskRule1NERMTypeNerm; /** * * @type {string} * @memberof RiskRule1NERM */ 'comparison_operator'?: RiskRule1NERMComparisonOperatorNerm; /** * * @type {string} * @memberof RiskRule1NERM */ 'value': string; /** * * @type {string} * @memberof RiskRule1NERM */ 'secondary_value': RiskRule1NERMSecondaryValueNerm; } export const RiskRule1NERMTypeNerm = { RiskRule: 'RiskRule' } as const; export type RiskRule1NERMTypeNerm = typeof RiskRule1NERMTypeNerm[keyof typeof RiskRule1NERMTypeNerm]; export const RiskRule1NERMComparisonOperatorNerm = { DoubleEqual: '==', GreaterThan: '>', LessThan: '<' } as const; export type RiskRule1NERMComparisonOperatorNerm = typeof RiskRule1NERMComparisonOperatorNerm[keyof typeof RiskRule1NERMComparisonOperatorNerm]; export const RiskRule1NERMSecondaryValueNerm = { OverallRisk: 'OverallRisk' } as const; export type RiskRule1NERMSecondaryValueNerm = typeof RiskRule1NERMSecondaryValueNerm[keyof typeof RiskRule1NERMSecondaryValueNerm]; /** * * @export * @interface RiskRuleNERM */ export interface RiskRuleNERM { /** * * @type {string} * @memberof RiskRuleNERM */ 'id'?: string; /** * * @type {string} * @memberof RiskRuleNERM */ 'uid'?: string; /** * * @type {string} * @memberof RiskRuleNERM */ 'type': RiskRuleNERMTypeNerm; /** * * @type {string} * @memberof RiskRuleNERM */ 'comparison_operator'?: RiskRuleNERMComparisonOperatorNerm; /** * * @type {string} * @memberof RiskRuleNERM */ 'value': string; /** * * @type {string} * @memberof RiskRuleNERM */ 'secondary_value': RiskRuleNERMSecondaryValueNerm; } export const RiskRuleNERMTypeNerm = { RiskRule: 'RiskRule' } as const; export type RiskRuleNERMTypeNerm = typeof RiskRuleNERMTypeNerm[keyof typeof RiskRuleNERMTypeNerm]; export const RiskRuleNERMComparisonOperatorNerm = { DoubleEqual: '==', GreaterThan: '>', LessThan: '<' } as const; export type RiskRuleNERMComparisonOperatorNerm = typeof RiskRuleNERMComparisonOperatorNerm[keyof typeof RiskRuleNERMComparisonOperatorNerm]; export const RiskRuleNERMSecondaryValueNerm = { OverallRisk: 'OverallRisk' } as const; export type RiskRuleNERMSecondaryValueNerm = typeof RiskRuleNERMSecondaryValueNerm[keyof typeof RiskRuleNERMSecondaryValueNerm]; /** * * @export * @interface RiskScoreNERM */ export interface RiskScoreNERM { /** * * @type {string} * @memberof RiskScoreNERM */ 'id'?: string; /** * * @type {string} * @memberof RiskScoreNERM */ 'uid'?: string; /** * * @type {string} * @memberof RiskScoreNERM */ 'object_id'?: string; /** * * @type {string} * @memberof RiskScoreNERM */ 'object_type'?: RiskScoreNERMObjectTypeNerm; /** * * @type {number} * @memberof RiskScoreNERM */ 'overall_score'?: number; /** * * @type {string} * @memberof RiskScoreNERM */ 'overall_risk_level_id'?: string; /** * * @type {number} * @memberof RiskScoreNERM */ 'impact_score'?: number; /** * * @type {string} * @memberof RiskScoreNERM */ 'impact_risk_level_id'?: string; /** * * @type {number} * @memberof RiskScoreNERM */ 'probability_score'?: number; /** * * @type {string} * @memberof RiskScoreNERM */ 'probability_risk_level_id'?: string; } export const RiskScoreNERMObjectTypeNerm = { Profile: 'Profile', WorkflowSession: 'WorkflowSession' } as const; export type RiskScoreNERMObjectTypeNerm = typeof RiskScoreNERMObjectTypeNerm[keyof typeof RiskScoreNERMObjectTypeNerm]; /** * * @export * @interface Role1NERM */ export interface Role1NERM { /** * * @type {string} * @memberof Role1NERM */ 'uid'?: string; /** * * @type {string} * @memberof Role1NERM */ 'type'?: Role1NERMTypeNerm; /** * * @type {string} * @memberof Role1NERM */ 'name'?: string; /** * * @type {Array} * @memberof Role1NERM */ 'groups'?: Array; } export const Role1NERMTypeNerm = { NeprofileRole: 'NeprofileRole', NeaccessRole: 'NeaccessRole' } as const; export type Role1NERMTypeNerm = typeof Role1NERMTypeNerm[keyof typeof Role1NERMTypeNerm]; /** * * @export * @interface RoleNERM */ export interface RoleNERM { /** * * @type {string} * @memberof RoleNERM */ 'id'?: string; /** * * @type {string} * @memberof RoleNERM */ 'uid'?: string; /** * * @type {string} * @memberof RoleNERM */ 'name'?: string; /** * * @type {Array} * @memberof RoleNERM */ 'groups'?: Array; } /** * * @export * @interface RoleProfile1NERM */ export interface RoleProfile1NERM { /** * * @type {string} * @memberof RoleProfile1NERM */ 'role_id'?: string; /** * * @type {string} * @memberof RoleProfile1NERM */ 'profile_id'?: string; } /** * * @export * @interface RoleProfileNERM */ export interface RoleProfileNERM { /** * * @type {string} * @memberof RoleProfileNERM */ 'id'?: string; /** * * @type {string} * @memberof RoleProfileNERM */ 'uid'?: string; /** * * @type {string} * @memberof RoleProfileNERM */ 'role_id'?: string; /** * * @type {string} * @memberof RoleProfileNERM */ 'profile_id'?: string; } /** * * @export * @interface RoleProfilesNERM */ export interface RoleProfilesNERM { /** * * @type {Array} * @memberof RoleProfilesNERM */ 'role_profiles'?: Array; } /** * * @export * @interface RolesNERM */ export interface RolesNERM { /** * * @type {Array} * @memberof RolesNERM */ 'roles'?: Array; } /** * * @export * @interface RunWorkflowActionConfigurationAttributesNERM */ export interface RunWorkflowActionConfigurationAttributesNERM { /** * the id. * @type {string} * @memberof RunWorkflowActionConfigurationAttributesNERM */ 'id'?: string; /** * the id of the workflow. * @type {string} * @memberof RunWorkflowActionConfigurationAttributesNERM */ 'workflow_id'?: string; /** * If the parent workflow should wait for the child to complete. * @type {boolean} * @memberof RunWorkflowActionConfigurationAttributesNERM */ 'wait_for_completion'?: boolean; /** * the profile the parent should send to the child workflow. * @type {string} * @memberof RunWorkflowActionConfigurationAttributesNERM */ 'profile_to_send'?: RunWorkflowActionConfigurationAttributesNERMProfileToSendNerm; /** * if the child workflow should return a profile. * @type {boolean} * @memberof RunWorkflowActionConfigurationAttributesNERM */ 'return_profile'?: boolean; /** * the id of the child workflow to run. * @type {string} * @memberof RunWorkflowActionConfigurationAttributesNERM */ 'run_workflow_action_id'?: string; /** * the id of the profile type. * @type {string} * @memberof RunWorkflowActionConfigurationAttributesNERM */ 'profile_type_id'?: string; } export const RunWorkflowActionConfigurationAttributesNERMProfileToSendNerm = { None: 'none', Current: 'current', Attribute: 'attribute', ProfileType: 'profile_type' } as const; export type RunWorkflowActionConfigurationAttributesNERMProfileToSendNerm = typeof RunWorkflowActionConfigurationAttributesNERMProfileToSendNerm[keyof typeof RunWorkflowActionConfigurationAttributesNERMProfileToSendNerm]; /** * * @export * @interface RunWorkflowActionNERM */ export interface RunWorkflowActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof RunWorkflowActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof RunWorkflowActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof RunWorkflowActionNERM */ 'archived'?: boolean; /** * * @type {RunWorkflowActionConfigurationAttributesNERM} * @memberof RunWorkflowActionNERM */ 'configuration_attributes'?: RunWorkflowActionConfigurationAttributesNERM; } /** * * @export * @interface Search200ResponseNERM */ export interface Search200ResponseNERM { /** * * @type {Array} * @memberof Search200ResponseNERM */ 'audit_events'?: Array; } /** * * @export * @interface SearchAdvancedSearch200ResponseNERM */ export interface SearchAdvancedSearch200ResponseNERM { /** * * @type {Array} * @memberof SearchAdvancedSearch200ResponseNERM */ 'profiles'?: Array; } /** * * @export * @interface SearchRequestAuditEventsNERM */ export interface SearchRequestAuditEventsNERM { /** * How many records to skip before pulling records to return. * @type {number} * @memberof SearchRequestAuditEventsNERM */ 'offset'?: number; /** * A column that we are sorting these records from. * @type {string} * @memberof SearchRequestAuditEventsNERM */ 'sort_by'?: string; /** * The limiting count for the amount of records returned. * @type {number} * @memberof SearchRequestAuditEventsNERM */ 'limit'?: number; /** * Which direction the list should be sorted by * @type {string} * @memberof SearchRequestAuditEventsNERM */ 'order'?: SearchRequestAuditEventsNERMOrderNerm; /** * * @type {AuditEventNERM} * @memberof SearchRequestAuditEventsNERM */ 'filters'?: AuditEventNERM; } export const SearchRequestAuditEventsNERMOrderNerm = { Asc: 'asc', Desc: 'desc' } as const; export type SearchRequestAuditEventsNERMOrderNerm = typeof SearchRequestAuditEventsNERMOrderNerm[keyof typeof SearchRequestAuditEventsNERMOrderNerm]; /** * * @export * @interface SearchRequestNERM */ export interface SearchRequestNERM { /** * * @type {SearchRequestAuditEventsNERM} * @memberof SearchRequestNERM */ 'audit_events'?: SearchRequestAuditEventsNERM; } /** * * @export * @interface SetAttributesActionNERM */ export interface SetAttributesActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof SetAttributesActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof SetAttributesActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof SetAttributesActionNERM */ 'archived'?: boolean; } /** * * @export * @interface SetSecurityQuestionActionNERM */ export interface SetSecurityQuestionActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof SetSecurityQuestionActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof SetSecurityQuestionActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof SetSecurityQuestionActionNERM */ 'archived'?: boolean; /** * The number of questions the user should answer upon login. * @type {number} * @memberof SetSecurityQuestionActionNERM */ 'number_of_questions': number; } /** * * @export * @interface SoapApiActionNERM */ export interface SoapApiActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof SoapApiActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof SoapApiActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof SoapApiActionNERM */ 'archived'?: boolean; } /** * * @export * @interface StatusChangeActionNERM */ export interface StatusChangeActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof StatusChangeActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof StatusChangeActionNERM */ 'description': string; /** * The new status for the Status Change workflow action. * @type {string} * @memberof StatusChangeActionNERM */ 'new_status'?: StatusChangeActionNERMNewStatusNerm; /** * If the workflow action is archived or not. * @type {boolean} * @memberof StatusChangeActionNERM */ 'archived'?: boolean; } export const StatusChangeActionNERMNewStatusNerm = { Active: 'Active', Inactive: 'Inactive', OnLeave: 'On Leave', Terminated: 'Terminated' } as const; export type StatusChangeActionNERMNewStatusNerm = typeof StatusChangeActionNERMNewStatusNerm[keyof typeof StatusChangeActionNERMNewStatusNerm]; /** * * @export * @interface SubmitAdvancedSearch200ResponseNERM */ export interface SubmitAdvancedSearch200ResponseNERM { /** * * @type {AdvancedSearchNERM} * @memberof SubmitAdvancedSearch200ResponseNERM */ 'advanced_search'?: AdvancedSearchNERM; } /** * * @export * @interface SubmitAdvancedSearchRequestNERM */ export interface SubmitAdvancedSearchRequestNERM { /** * * @type {AdvancedSearch1NERM} * @memberof SubmitAdvancedSearchRequestNERM */ 'advanced_search'?: AdvancedSearch1NERM; } /** * * @export * @interface SubmitAttributeOption200ResponseNERM */ export interface SubmitAttributeOption200ResponseNERM { /** * * @type {AttributeOptionNERM} * @memberof SubmitAttributeOption200ResponseNERM */ 'ne_attribute_option'?: AttributeOptionNERM; } /** * * @export * @interface SubmitAttributeOptionRequestNERM */ export interface SubmitAttributeOptionRequestNERM { /** * * @type {AttributeOption1NERM} * @memberof SubmitAttributeOptionRequestNERM */ 'ne_attribute_option'?: AttributeOption1NERM; } /** * @type SubmitAttributeOptions200ResponseNERM * @export */ export type SubmitAttributeOptions200ResponseNERM = AttributeOptionsNERM | JobNERM; /** * * @export * @interface SubmitAttributeOptionsRequestNERM */ export interface SubmitAttributeOptionsRequestNERM { /** * * @type {Array} * @memberof SubmitAttributeOptionsRequestNERM */ 'ne_attribute_options'?: Array; } /** * * @export * @interface SubmitProfileRequestNERM */ export interface SubmitProfileRequestNERM { /** * * @type {Profile1NERM} * @memberof SubmitProfileRequestNERM */ 'profile'?: Profile1NERM; } /** * * @export * @interface SubmitProfileType200ResponseNERM */ export interface SubmitProfileType200ResponseNERM { /** * * @type {ProfileTypeNERM} * @memberof SubmitProfileType200ResponseNERM */ 'profile_type'?: ProfileTypeNERM; } /** * * @export * @interface SubmitProfileTypeRequestNERM */ export interface SubmitProfileTypeRequestNERM { /** * * @type {ProfileType1NERM} * @memberof SubmitProfileTypeRequestNERM */ 'profile_type'?: ProfileType1NERM; } /** * * @export * @interface SubmitProfileUploadRequestNERM */ export interface SubmitProfileUploadRequestNERM { /** * * @type {File} * @memberof SubmitProfileUploadRequestNERM */ 'file'?: File; } /** * * @export * @interface SubmitRole200ResponseNERM */ export interface SubmitRole200ResponseNERM { /** * * @type {RoleNERM} * @memberof SubmitRole200ResponseNERM */ 'role'?: RoleNERM; } /** * * @export * @interface SubmitRoleProfile200ResponseNERM */ export interface SubmitRoleProfile200ResponseNERM { /** * * @type {RoleProfileNERM} * @memberof SubmitRoleProfile200ResponseNERM */ 'role_profile'?: RoleProfileNERM; } /** * * @export * @interface SubmitRoleProfileRequestNERM */ export interface SubmitRoleProfileRequestNERM { /** * * @type {RoleProfile1NERM} * @memberof SubmitRoleProfileRequestNERM */ 'role_profile'?: RoleProfile1NERM; } /** * @type SubmitRoleProfiles200ResponseNERM * @export */ export type SubmitRoleProfiles200ResponseNERM = JobNERM | RoleProfilesNERM; /** * * @export * @interface SubmitRoleProfilesRequestNERM */ export interface SubmitRoleProfilesRequestNERM { /** * * @type {Array} * @memberof SubmitRoleProfilesRequestNERM */ 'role_profiles'?: Array; } /** * * @export * @interface SubmitRoleRequestNERM */ export interface SubmitRoleRequestNERM { /** * * @type {Role1NERM} * @memberof SubmitRoleRequestNERM */ 'role'?: Role1NERM; } /** * @type SubmitRoles200ResponseNERM * @export */ export type SubmitRoles200ResponseNERM = JobNERM | RolesNERM; /** * * @export * @interface SubmitRolesRequestNERM */ export interface SubmitRolesRequestNERM { /** * * @type {Array} * @memberof SubmitRolesRequestNERM */ 'roles'?: Array; } /** * * @export * @interface SubmitUser200ResponseNERM */ export interface SubmitUser200ResponseNERM { /** * * @type {UserNERM} * @memberof SubmitUser200ResponseNERM */ 'user'?: UserNERM; } /** * * @export * @interface SubmitUserManager200ResponseNERM */ export interface SubmitUserManager200ResponseNERM { /** * * @type {UserManagerNERM} * @memberof SubmitUserManager200ResponseNERM */ 'user_manager'?: UserManagerNERM; } /** * * @export * @interface SubmitUserManagerRequestNERM */ export interface SubmitUserManagerRequestNERM { /** * * @type {UserManager1NERM} * @memberof SubmitUserManagerRequestNERM */ 'user_manager'?: UserManager1NERM; } /** * @type SubmitUserManagers200ResponseNERM * @export */ export type SubmitUserManagers200ResponseNERM = JobNERM | UserManagersNERM; /** * * @export * @interface SubmitUserManagersRequestNERM */ export interface SubmitUserManagersRequestNERM { /** * * @type {Array} * @memberof SubmitUserManagersRequestNERM */ 'user_managers'?: Array; } /** * * @export * @interface SubmitUserProfile200ResponseNERM */ export interface SubmitUserProfile200ResponseNERM { /** * * @type {UserProfileNERM} * @memberof SubmitUserProfile200ResponseNERM */ 'user_profile'?: UserProfileNERM; } /** * * @export * @interface SubmitUserProfileRequestNERM */ export interface SubmitUserProfileRequestNERM { /** * * @type {UserProfile1NERM} * @memberof SubmitUserProfileRequestNERM */ 'user_profile'?: UserProfile1NERM; } /** * * @export * @interface SubmitUserRequestNERM */ export interface SubmitUserRequestNERM { /** * * @type {User1NERM} * @memberof SubmitUserRequestNERM */ 'user'?: User1NERM; } /** * * @export * @interface SubmitUserRole200ResponseNERM */ export interface SubmitUserRole200ResponseNERM { /** * * @type {UserRoleNERM} * @memberof SubmitUserRole200ResponseNERM */ 'user_role'?: UserRoleNERM; } /** * * @export * @interface SubmitUserRoleRequestNERM */ export interface SubmitUserRoleRequestNERM { /** * * @type {UserRole1NERM} * @memberof SubmitUserRoleRequestNERM */ 'user_role'?: UserRole1NERM; } /** * @type SubmitUserRoles200ResponseNERM * @export */ export type SubmitUserRoles200ResponseNERM = JobNERM | UserRolesNERM; /** * * @export * @interface SubmitUserRolesRequestNERM */ export interface SubmitUserRolesRequestNERM { /** * * @type {Array} * @memberof SubmitUserRolesRequestNERM */ 'user_roles'?: Array; } /** * @type SubmitUsers200ResponseNERM * @export */ export type SubmitUsers200ResponseNERM = JobNERM | UsersNERM; /** * * @export * @interface SubmitUsersRequestNERM */ export interface SubmitUsersRequestNERM { /** * * @type {Array} * @memberof SubmitUsersRequestNERM */ 'users'?: Array; } /** * * @export * @interface SubmitWorkflowSession200ResponseNERM */ export interface SubmitWorkflowSession200ResponseNERM { /** * * @type {WorkflowSessionNERM} * @memberof SubmitWorkflowSession200ResponseNERM */ 'workflow_session'?: WorkflowSessionNERM; } /** * * @export * @interface SubmitWorkflowSessionRequestNERM */ export interface SubmitWorkflowSessionRequestNERM { /** * * @type {WorkflowSession1NERM} * @memberof SubmitWorkflowSessionRequestNERM */ 'workflow_session'?: WorkflowSession1NERM; } /** * * @export * @interface SyncedAttribute1NERM */ export interface SyncedAttribute1NERM { /** * synced attribute\'s ID * @type {string} * @memberof SyncedAttribute1NERM */ 'ne_attribute_id'?: string; } /** * * @export * @interface SyncedAttributeNERM */ export interface SyncedAttributeNERM { /** * synced attribute\'s ID * @type {string} * @memberof SyncedAttributeNERM */ 'id'?: string; /** * Profile type ID of synced attribute * @type {string} * @memberof SyncedAttributeNERM */ 'profile_type_id'?: string; /** * Ne attribute ID of synced attribute * @type {string} * @memberof SyncedAttributeNERM */ 'ne_attribute_id'?: string; } /** * * @export * @interface SystemRoleNERM */ export interface SystemRoleNERM { /** * The unique identifier for the object * @type {string} * @memberof SystemRoleNERM */ 'id'?: string; /** * The user identifier for the object * @type {string} * @memberof SystemRoleNERM */ 'uid'?: SystemRoleNERMUidNerm; /** * The name of the role * @type {string} * @memberof SystemRoleNERM */ 'name'?: SystemRoleNERMNameNerm; } export const SystemRoleNERMUidNerm = { ProfileContributor: 'profile_contributor', ProfileOwner: 'profile_owner' } as const; export type SystemRoleNERMUidNerm = typeof SystemRoleNERMUidNerm[keyof typeof SystemRoleNERMUidNerm]; export const SystemRoleNERMNameNerm = { ProfileContributor: 'Profile Contributor', ProfileOwner: 'Profile Owner' } as const; export type SystemRoleNERMNameNerm = typeof SystemRoleNERMNameNerm[keyof typeof SystemRoleNERMNameNerm]; /** * * @export * @interface SystemRolePermission1NERM */ export interface SystemRolePermission1NERM { /** * The id of the system role * @type {string} * @memberof SystemRolePermission1NERM */ 'system_role_id'?: string; /** * The ID of the object that the permission is giving access to * @type {string} * @memberof SystemRolePermission1NERM */ 'subject_id'?: string; /** * The permissions level of access * @type {number} * @memberof SystemRolePermission1NERM */ 'value'?: SystemRolePermission1NERMValueNerm; /** * The type of permission * @type {number} * @memberof SystemRolePermission1NERM */ 'subject'?: SystemRolePermission1NERMSubjectNerm; } export const SystemRolePermission1NERMValueNerm = { NUMBER_1: 1, NUMBER_2: 2, NUMBER_3: 3, NUMBER_4: 4, NUMBER_5: 5, NUMBER_6: 6, NUMBER_7: 7 } as const; export type SystemRolePermission1NERMValueNerm = typeof SystemRolePermission1NERMValueNerm[keyof typeof SystemRolePermission1NERMValueNerm]; export const SystemRolePermission1NERMSubjectNerm = { NUMBER_0: 0, NUMBER_2: 2, NUMBER_14: 14 } as const; export type SystemRolePermission1NERMSubjectNerm = typeof SystemRolePermission1NERMSubjectNerm[keyof typeof SystemRolePermission1NERMSubjectNerm]; /** * * @export * @interface SystemRolePermissionNERM */ export interface SystemRolePermissionNERM { /** * The id of the system role permission * @type {string} * @memberof SystemRolePermissionNERM */ 'id'?: string; /** * The id of the system role * @type {string} * @memberof SystemRolePermissionNERM */ 'system_role_id'?: string; /** * The permissions level of access * @type {number} * @memberof SystemRolePermissionNERM */ 'value'?: number; /** * The type of permission * @type {number} * @memberof SystemRolePermissionNERM */ 'subject'?: number; /** * The ID of the object that the permission is giving access to * @type {string} * @memberof SystemRolePermissionNERM */ 'subject_id'?: string; } /** * * @export * @interface UnassignActionNERM */ export interface UnassignActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof UnassignActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof UnassignActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof UnassignActionNERM */ 'archived'?: boolean; } /** * * @export * @interface UpdateFormByIdRequestNERM */ export interface UpdateFormByIdRequestNERM { /** * * @type {Form1NERM} * @memberof UpdateFormByIdRequestNERM */ 'role'?: Form1NERM; } /** * * @export * @interface UpdatePageContentTranslationByIdRequestNERM */ export interface UpdatePageContentTranslationByIdRequestNERM { /** * * @type {PageContent1NERM} * @memberof UpdatePageContentTranslationByIdRequestNERM */ 'page_content_translation'?: PageContent1NERM; } /** * * @export * @interface UpdateProfileActionNERM */ export interface UpdateProfileActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof UpdateProfileActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof UpdateProfileActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof UpdateProfileActionNERM */ 'archived'?: boolean; } /** * * @export * @interface UpdateProfileRequestNERM */ export interface UpdateProfileRequestNERM { /** * * @type {UpdateProfileRequestProfileNERM} * @memberof UpdateProfileRequestNERM */ 'profile': UpdateProfileRequestProfileNERM; } /** * The profile object to be updated with its schema-mapped attributes. * @export * @interface UpdateProfileRequestProfileNERM */ export interface UpdateProfileRequestProfileNERM { /** * schema-mapped attributes to be updated * @type {{ [key: string]: any; }} * @memberof UpdateProfileRequestProfileNERM */ 'attributes'?: { [key: string]: any; }; } /** * * @export * @interface UpdateWorkflowNERM */ export interface UpdateWorkflowNERM { /** * The profile type the workflow effects. * @type {string} * @memberof UpdateWorkflowNERM */ 'profile_type_id': string; /** * Whether or not the workflow is enabled or disabled. * @type {string} * @memberof UpdateWorkflowNERM */ 'status': UpdateWorkflowNERMStatusNerm; /** * The user-specified identifier of the workflow. * @type {string} * @memberof UpdateWorkflowNERM */ 'uid': string; /** * Name of the workflow * @type {string} * @memberof UpdateWorkflowNERM */ 'name': string; /** * The status of the profiles the workflow will effect. * @type {string} * @memberof UpdateWorkflowNERM */ 'profile_status': string; /** * When honored at runtime, suppresses failure email notifications for this workflow\'s sessions. * @type {boolean} * @memberof UpdateWorkflowNERM */ 'disable_failure_email_notifications'?: boolean | null; } export const UpdateWorkflowNERMStatusNerm = { Enabled: 'Enabled', Disabled: 'Disabled' } as const; export type UpdateWorkflowNERMStatusNerm = typeof UpdateWorkflowNERMStatusNerm[keyof typeof UpdateWorkflowNERMStatusNerm]; /** * * @export * @interface UrlNERM */ export interface UrlNERM { /** * * @type {string} * @memberof UrlNERM */ 'url'?: string; } /** * * @export * @interface User1NERM */ export interface User1NERM { /** * The user name * @type {string} * @memberof User1NERM */ 'name': string; /** * The user email * @type {string} * @memberof User1NERM */ 'email': string; /** * The user type * @type {string} * @memberof User1NERM */ 'type': User1NERMTypeNerm; /** * The user profile id. Not required for NeprofileUser * @type {string} * @memberof User1NERM */ 'profile_id'?: string; /** * The user description * @type {string} * @memberof User1NERM */ 'title'?: string; /** * The user status * @type {string} * @memberof User1NERM */ 'status'?: User1NERMStatusNerm; /** * The user login * @type {string} * @memberof User1NERM */ 'login': string; /** * The user group strings * @type {string} * @memberof User1NERM */ 'group_strings'?: string; /** * The locale the user prefers to use * @type {string} * @memberof User1NERM */ 'locale'?: string; /** * The user password. Not required for NeprofileUser * @type {string} * @memberof User1NERM */ 'password'?: string; /** * The SailPoint Identity ID associated with this user * @type {string} * @memberof User1NERM */ 'sailpoint_identity_id'?: string; } export const User1NERMTypeNerm = { NeprofileUser: 'NeprofileUser', NeaccessUser: 'NeaccessUser' } as const; export type User1NERMTypeNerm = typeof User1NERMTypeNerm[keyof typeof User1NERMTypeNerm]; export const User1NERMStatusNerm = { Active: 'Active', Pending: 'Pending', Disabled: 'Disabled' } as const; export type User1NERMStatusNerm = typeof User1NERMStatusNerm[keyof typeof User1NERMStatusNerm]; /** * * @export * @interface UserManager1NERM */ export interface UserManager1NERM { /** * * @type {string} * @memberof UserManager1NERM */ 'user_id'?: string; /** * * @type {string} * @memberof UserManager1NERM */ 'manager_id'?: string; } /** * * @export * @interface UserManagerNERM */ export interface UserManagerNERM { /** * * @type {string} * @memberof UserManagerNERM */ 'id'?: string; /** * * @type {string} * @memberof UserManagerNERM */ 'uid'?: string; /** * * @type {string} * @memberof UserManagerNERM */ 'user_id'?: string; /** * * @type {string} * @memberof UserManagerNERM */ 'manager_id'?: string; } /** * * @export * @interface UserManagersNERM */ export interface UserManagersNERM { /** * * @type {Array} * @memberof UserManagersNERM */ 'user_managers'?: Array; } /** * * @export * @interface UserNERM */ export interface UserNERM { /** * ID of the object to retrieve or update * @type {string} * @memberof UserNERM */ 'id'?: string; /** * UID of the user * @type {string} * @memberof UserNERM */ 'uid'?: string; /** * The name * @type {string} * @memberof UserNERM */ 'name'?: string; /** * The email * @type {string} * @memberof UserNERM */ 'email'?: string; /** * Type of user * @type {string} * @memberof UserNERM */ 'type'?: UserNERMTypeNerm; /** * The title * @type {string} * @memberof UserNERM */ 'title'?: string; /** * Status of the user * @type {string} * @memberof UserNERM */ 'status'?: UserNERMStatusNerm; /** * The login * @type {string} * @memberof UserNERM */ 'login'?: string; /** * When the user last logged in * @type {string} * @memberof UserNERM */ 'last_login'?: string; /** * When cookies were accepted * @type {string} * @memberof UserNERM */ 'cookies_accepted_at'?: string; /** * The locale the user prefers to use * @type {string} * @memberof UserNERM */ 'preferred_language'?: string; /** * The locale the user prefers to use * @type {string} * @memberof UserNERM */ 'locale'?: string; /** * Group strings configured on the customer\'s Active Directory configuration, provided by the IDP at the moment on authentication. * @type {string} * @memberof UserNERM */ 'group_strings'?: string; /** * The identity ID of the user in ISC * @type {string} * @memberof UserNERM */ 'sailpoint_identity_id'?: string; } export const UserNERMTypeNerm = { NeprofileUser: 'NeprofileUser', NeaccessUser: 'NeaccessUser' } as const; export type UserNERMTypeNerm = typeof UserNERMTypeNerm[keyof typeof UserNERMTypeNerm]; export const UserNERMStatusNerm = { Active: 'Active', Pending: 'Pending', Disabled: 'Disabled' } as const; export type UserNERMStatusNerm = typeof UserNERMStatusNerm[keyof typeof UserNERMStatusNerm]; /** * * @export * @interface UserProfile1NERM */ export interface UserProfile1NERM { /** * * @type {string} * @memberof UserProfile1NERM */ 'user_id'?: string; /** * * @type {string} * @memberof UserProfile1NERM */ 'profile_id'?: string; /** * * @type {string} * @memberof UserProfile1NERM */ 'ne_attribute_id'?: string; /** * * @type {string} * @memberof UserProfile1NERM */ 'relationship_type'?: UserProfile1NERMRelationshipTypeNerm; } export const UserProfile1NERMRelationshipTypeNerm = { Owner: 'owner', Contributor: 'contributor' } as const; export type UserProfile1NERMRelationshipTypeNerm = typeof UserProfile1NERMRelationshipTypeNerm[keyof typeof UserProfile1NERMRelationshipTypeNerm]; /** * * @export * @interface UserProfileNERM */ export interface UserProfileNERM { /** * * @type {string} * @memberof UserProfileNERM */ 'id'?: string; /** * * @type {string} * @memberof UserProfileNERM */ 'uid'?: string; /** * * @type {string} * @memberof UserProfileNERM */ 'user_id'?: string; /** * * @type {string} * @memberof UserProfileNERM */ 'profile_id'?: string; /** * * @type {string} * @memberof UserProfileNERM */ 'ne_attribute_id'?: string; /** * * @type {string} * @memberof UserProfileNERM */ 'relationship_type'?: UserProfileNERMRelationshipTypeNerm; } export const UserProfileNERMRelationshipTypeNerm = { Owner: 'owner', Contributor: 'contributor' } as const; export type UserProfileNERMRelationshipTypeNerm = typeof UserProfileNERMRelationshipTypeNerm[keyof typeof UserProfileNERMRelationshipTypeNerm]; /** * * @export * @interface UserProfilesNERM */ export interface UserProfilesNERM { /** * * @type {Array} * @memberof UserProfilesNERM */ 'user_profiles'?: Array; } /** * * @export * @interface UserRole1NERM */ export interface UserRole1NERM { /** * * @type {string} * @memberof UserRole1NERM */ 'user_id'?: string; /** * * @type {string} * @memberof UserRole1NERM */ 'role_id'?: string; } /** * * @export * @interface UserRoleNERM */ export interface UserRoleNERM { /** * * @type {string} * @memberof UserRoleNERM */ 'id'?: string; /** * * @type {string} * @memberof UserRoleNERM */ 'uid'?: string; /** * * @type {string} * @memberof UserRoleNERM */ 'user_id'?: string; /** * * @type {string} * @memberof UserRoleNERM */ 'role_id'?: string; } /** * * @export * @interface UserRolesNERM */ export interface UserRolesNERM { /** * * @type {Array} * @memberof UserRolesNERM */ 'user_roles'?: Array; } /** * * @export * @interface UsernamePasswordActionNERM */ export interface UsernamePasswordActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof UsernamePasswordActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof UsernamePasswordActionNERM */ 'description': string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof UsernamePasswordActionNERM */ 'archived'?: boolean; } /** * * @export * @interface UsersNERM */ export interface UsersNERM { /** * * @type {Array} * @memberof UsersNERM */ 'users'?: Array; } /** * * @export * @interface ValidationErrorsNERM */ export interface ValidationErrorsNERM { /** * * @type {object} * @memberof ValidationErrorsNERM */ 'error'?: object; /** * * @type {object} * @memberof ValidationErrorsNERM */ 'errors'?: object; } /** * * @export * @interface WorkflowActionNERM */ export interface WorkflowActionNERM { /** * The workflow the workflow action belongs to. * @type {string} * @memberof WorkflowActionNERM */ 'workflow_id': string; /** * The description of the workflow action. * @type {string} * @memberof WorkflowActionNERM */ 'description'?: string; /** * The page the workflow action should render. * @type {string} * @memberof WorkflowActionNERM */ 'page_id': string; /** * If the requester should be added as the owner of the profile to be created. * @type {boolean} * @memberof WorkflowActionNERM */ 'add_requester_as_owner'?: boolean; /** * The attribute storing the email address for the workflow action. * @type {string} * @memberof WorkflowActionNERM */ 'email_attribute_id'?: string; /** * The email addresses for the workflow action. * @type {Array} * @memberof WorkflowActionNERM */ 'email_addresses'?: Array; /** * The new status for the Status Change workflow action. * @type {string} * @memberof WorkflowActionNERM */ 'new_status'?: string; /** * If the workflow action is archived or not. * @type {boolean} * @memberof WorkflowActionNERM */ 'archived'?: boolean; /** * If the workflow action is skippable or not. * @type {boolean} * @memberof WorkflowActionNERM */ 'skippable'?: boolean; /** * If the workflow action requires a comment or not. * @type {boolean} * @memberof WorkflowActionNERM */ 'requires_comment'?: boolean; } /** * * @export * @interface WorkflowActionPerformers1NERM */ export interface WorkflowActionPerformers1NERM { /** * Specify the id of the user attribute to perform the action. * @type {string} * @memberof WorkflowActionPerformers1NERM */ 'contributor_attribute_id'?: string; /** * Set to true to allow profile contributor to perform the action. * @type {boolean} * @memberof WorkflowActionPerformers1NERM */ 'contributors'?: boolean; /** * Specify the id of the user attribute to perform the action. * @type {string} * @memberof WorkflowActionPerformers1NERM */ 'contributors_manager_attribute_id'?: string; /** * Set to true to allow profile owner to perform the action. * @type {boolean} * @memberof WorkflowActionPerformers1NERM */ 'owner'?: boolean; /** * Specify the id of the profile attribute to perform the action. * @type {string} * @memberof WorkflowActionPerformers1NERM */ 'profiles_contributors_attribute_id'?: string; /** * Set to true to allow requester from the request to perform the action. * @type {boolean} * @memberof WorkflowActionPerformers1NERM */ 'requester'?: boolean; /** * Set to true to allow the requester\'s manager from the request to perform the action. * @type {boolean} * @memberof WorkflowActionPerformers1NERM */ 'requesters_manager'?: boolean; /** * Specify the id of the workflow action you would like to create the workflow action performer/s for. * @type {string} * @memberof WorkflowActionPerformers1NERM */ 'workflow_action_id'?: string; } /** * * @export * @interface WorkflowActionPerformersNERM */ export interface WorkflowActionPerformersNERM { /** * The id of the workflow action performer that was created. * @type {string} * @memberof WorkflowActionPerformersNERM */ 'id'?: string; /** * The id of the user attribute to perform the action. * @type {string} * @memberof WorkflowActionPerformersNERM */ 'contributor_attribute_id'?: string; /** * Set to allow profile contributor to perform the action. * @type {boolean} * @memberof WorkflowActionPerformersNERM */ 'contributors'?: boolean; /** * The id of the user attribute to perform the action. * @type {string} * @memberof WorkflowActionPerformersNERM */ 'contributors_manager_attribute_id'?: string; /** * Set to allow profile owner to perform the action. * @type {boolean} * @memberof WorkflowActionPerformersNERM */ 'owner'?: boolean; /** * The id of the profile attribute to perform the action. * @type {string} * @memberof WorkflowActionPerformersNERM */ 'profiles_contributors_attribute_id'?: string; /** * Set to allow requester from the request to perform the action. * @type {boolean} * @memberof WorkflowActionPerformersNERM */ 'requester'?: boolean; /** * Set to allow the requester\'s manager from the request to perform the action. * @type {boolean} * @memberof WorkflowActionPerformersNERM */ 'requesters_manager'?: boolean; /** * The id of the workflow action. * @type {string} * @memberof WorkflowActionPerformersNERM */ 'workflow_action_id'?: string; } /** * * @export * @interface WorkflowPageNERM */ export interface WorkflowPageNERM { /** * The user-specified identifier of the page * @type {string} * @memberof WorkflowPageNERM */ 'uid'?: string; /** * The description of the page * @type {string} * @memberof WorkflowPageNERM */ 'description'?: string; /** * The name of the page * @type {string} * @memberof WorkflowPageNERM */ 'name'?: string; /** * Determines whether the page is archived * @type {boolean} * @memberof WorkflowPageNERM */ 'archived'?: boolean; /** * The id of the form * @type {string} * @memberof WorkflowPageNERM */ 'id'?: string; } /** * * @export * @interface WorkflowSession1NERM */ export interface WorkflowSession1NERM { /** * The workflow id. * @type {string} * @memberof WorkflowSession1NERM */ 'workflow_id': string; /** * The requester\'s id. * @type {string} * @memberof WorkflowSession1NERM */ 'requester_id': string; /** * The requester type. * @type {string} * @memberof WorkflowSession1NERM */ 'requester_type': WorkflowSession1NERMRequesterTypeNerm; /** * The profile this workflow session will be working with. Only Applicable for Update workflows * @type {string} * @memberof WorkflowSession1NERM */ 'profile_id'?: string; /** * The profiles this workflow session will be working with. Only Applicable for Batch workflows * @type {Array} * @memberof WorkflowSession1NERM */ 'profile_ids'?: Array; /** * The attributes associated with the workflow session. * @type {{ [key: string]: string; }} * @memberof WorkflowSession1NERM */ 'attributes'?: { [key: string]: string; }; } export const WorkflowSession1NERMRequesterTypeNerm = { User: 'User', NeprofileUser: 'NeprofileUser', NeaccessUser: 'NeaccessUser' } as const; export type WorkflowSession1NERMRequesterTypeNerm = typeof WorkflowSession1NERMRequesterTypeNerm[keyof typeof WorkflowSession1NERMRequesterTypeNerm]; /** * * @export * @interface WorkflowSessionNERM */ export interface WorkflowSessionNERM { /** * The objects ID. * @type {string} * @memberof WorkflowSessionNERM */ 'id'?: string; /** * The objects UID. * @type {string} * @memberof WorkflowSessionNERM */ 'uid'?: string; /** * The workflow id. * @type {string} * @memberof WorkflowSessionNERM */ 'workflow_id'?: string; /** * The requester\'s id. * @type {string} * @memberof WorkflowSessionNERM */ 'requester_id'?: string; /** * The requester type. * @type {string} * @memberof WorkflowSessionNERM */ 'requester_type'?: WorkflowSessionNERMRequesterTypeNerm; /** * The profile this workflow session will be working with. Only Applicable for Update workflows * @type {string} * @memberof WorkflowSessionNERM */ 'profile_id'?: string; /** * The profiles this workflow session will be working with. Only Applicable for Batch workflows * @type {Array} * @memberof WorkflowSessionNERM */ 'profile_ids'?: Array; /** * The status of the workflow session. * @type {string} * @memberof WorkflowSessionNERM */ 'status'?: WorkflowSessionNERMStatusNerm; /** * The attributes asscoiated with the workflow session. * @type {{ [key: string]: string; }} * @memberof WorkflowSessionNERM */ 'attributes'?: { [key: string]: string; }; } export const WorkflowSessionNERMRequesterTypeNerm = { User: 'User', NeprofileUser: 'NeprofileUser', NeaccessUser: 'NeaccessUser' } as const; export type WorkflowSessionNERMRequesterTypeNerm = typeof WorkflowSessionNERMRequesterTypeNerm[keyof typeof WorkflowSessionNERMRequesterTypeNerm]; export const WorkflowSessionNERMStatusNerm = { ApiRequestSent: 'api_request_sent', Approved: 'approved', Assigned: 'assigned', AttemptingToStartWorkflow: 'attempting_to_start_workflow', AuthStatus1: 'AUTH-STATUS1', AuthStatus2: 'AUTH-STATUS2', AuthStatus3: 'AUTH-STATUS3', AuthStatus4: 'AUTH-STATUS4', AuthStatus5: 'AUTH-STATUS5', AuthStatus6: 'AUTH-STATUS6', AuthStatus7: 'AUTH-STATUS7', AuthStatus8: 'AUTH-STATUS8', AuthStatus9: 'AUTH-STATUS9', AutoAssigned: 'auto_assigned', BatchCompleted: 'batch_completed', CheckingForDuplicates: 'checking_for_duplicates', Closed: 'closed', Completed: 'completed', CourionAdd: 'courion_add', CourionExtend: 'courion_extend', CourionTerminate: 'courion_terminate', CourionUpdate: 'courion_update', DuplicatesResolved: 'duplicates_resolved', Failed: 'failed', Fulfilled: 'fulfilled', InvitationSent: 'invitation_sent', LdapProvided: 'ldap_provided', New: 'new', NonEmployeeCreated: 'non_employee_created', NonEmployeeUpdated: 'non_employee_updated', Notified: 'notified', PendingApproval: 'pending_approval', PendingAssignment: 'pending_assignment', PendingCourionAdd: 'pending_courion_add', PendingCourionExtend: 'pending_courion_extend', PendingCourionTerminate: 'pending_courion_terminate', PendingCourionUpdate: 'pending_courion_update', PendingCreation: 'pending_creation', PendingFulfillment: 'pending_fulfillment', PendingLdap: 'pending_ldap', PendingNotification: 'pending_notification', PendingProfileSelect: 'pending_profile_select', PendingRequest: 'pending_request', PendingReview: 'pending_review', PendingStatusChange: 'pending_status_change', PendingStoredProcedure: 'pending_stored_procedure', PendingTrigger: 'pending_trigger', PendingUpdate: 'pending_update', Processing: 'processing', ProfileCheckComplete: 'profile_check_complete', ProfilesSelected: 'profiles_selected', Rejected: 'rejected', Requested: 'requested', Reviewed: 'reviewed', SoapRequestSent: 'soap_request_sent', StartedWorkflow: 'started_workflow', StatusChanged: 'status_changed', StoredProcedure: 'stored_procedure', UnAssigned: 'un_assigned', WaitingOnWorkflow: 'waiting_on_workflow', WorkflowChanged: 'workflow_changed' } as const; export type WorkflowSessionNERMStatusNerm = typeof WorkflowSessionNERMStatusNerm[keyof typeof WorkflowSessionNERMStatusNerm]; /** * AdvancedSearchNERMApi - axios parameter creator * @export */ export const AdvancedSearchNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Get saved advanced search queries * @summary Get saved advanced search queries * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAdvancedSearch: async (axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/advanced_search`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a saved advanced search query * @summary Update a saved advanced search * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitAdvancedSearchRequestNERM} submitAdvancedSearchRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchAdvancedSearch: async (id: string, submitAdvancedSearchRequestNERM: SubmitAdvancedSearchRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchAdvancedSearch', 'id', id) // verify required parameter 'submitAdvancedSearchRequestNERM' is not null or undefined assertParamExists('patchAdvancedSearch', 'submitAdvancedSearchRequestNERM', submitAdvancedSearchRequestNERM) const localVarPath = `/advanced_search/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitAdvancedSearchRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Run an advanced search for profiles, without saving the query * @summary Run profiles advanced search * @param {SubmitAdvancedSearchRequestNERM} submitAdvancedSearchRequestNERM * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ searchAdvancedSearch: async (submitAdvancedSearchRequestNERM: SubmitAdvancedSearchRequestNERM, limit?: number, offset?: number, order?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitAdvancedSearchRequestNERM' is not null or undefined assertParamExists('searchAdvancedSearch', 'submitAdvancedSearchRequestNERM', submitAdvancedSearchRequestNERM) const localVarPath = `/advanced_search/run`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitAdvancedSearchRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Run a saved advanced search query * @summary Run a saved advanced search * @param {string} id ID of the object to retrieve, update, or delete * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ searchAdvancedSearchbyID: async (id: string, limit?: number, offset?: number, order?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('searchAdvancedSearchbyID', 'id', id) const localVarPath = `/advanced_search/{id}/run` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Save an advanced search query for later use * @summary Save an advanced search query * @param {SubmitAdvancedSearchRequestNERM} submitAdvancedSearchRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitAdvancedSearch: async (submitAdvancedSearchRequestNERM: SubmitAdvancedSearchRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitAdvancedSearchRequestNERM' is not null or undefined assertParamExists('submitAdvancedSearch', 'submitAdvancedSearchRequestNERM', submitAdvancedSearchRequestNERM) const localVarPath = `/advanced_search`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitAdvancedSearchRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * AdvancedSearchNERMApi - functional programming interface * @export */ export const AdvancedSearchNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AdvancedSearchNERMApiAxiosParamCreator(configuration) return { /** * Get saved advanced search queries * @summary Get saved advanced search queries * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAdvancedSearch(axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAdvancedSearch(axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AdvancedSearchNERMApi.getAdvancedSearch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a saved advanced search query * @summary Update a saved advanced search * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitAdvancedSearchRequestNERM} submitAdvancedSearchRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchAdvancedSearch(id: string, submitAdvancedSearchRequestNERM: SubmitAdvancedSearchRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchAdvancedSearch(id, submitAdvancedSearchRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AdvancedSearchNERMApi.patchAdvancedSearch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Run an advanced search for profiles, without saving the query * @summary Run profiles advanced search * @param {SubmitAdvancedSearchRequestNERM} submitAdvancedSearchRequestNERM * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async searchAdvancedSearch(submitAdvancedSearchRequestNERM: SubmitAdvancedSearchRequestNERM, limit?: number, offset?: number, order?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.searchAdvancedSearch(submitAdvancedSearchRequestNERM, limit, offset, order, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AdvancedSearchNERMApi.searchAdvancedSearch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Run a saved advanced search query * @summary Run a saved advanced search * @param {string} id ID of the object to retrieve, update, or delete * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async searchAdvancedSearchbyID(id: string, limit?: number, offset?: number, order?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.searchAdvancedSearchbyID(id, limit, offset, order, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AdvancedSearchNERMApi.searchAdvancedSearchbyID']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Save an advanced search query for later use * @summary Save an advanced search query * @param {SubmitAdvancedSearchRequestNERM} submitAdvancedSearchRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitAdvancedSearch(submitAdvancedSearchRequestNERM: SubmitAdvancedSearchRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitAdvancedSearch(submitAdvancedSearchRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AdvancedSearchNERMApi.submitAdvancedSearch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AdvancedSearchNERMApi - factory interface * @export */ export const AdvancedSearchNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AdvancedSearchNERMApiFp(configuration) return { /** * Get saved advanced search queries * @summary Get saved advanced search queries * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAdvancedSearch(axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAdvancedSearch(axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a saved advanced search query * @summary Update a saved advanced search * @param {AdvancedSearchNERMApiPatchAdvancedSearchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchAdvancedSearch(requestParameters: AdvancedSearchNERMApiPatchAdvancedSearchRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchAdvancedSearch(requestParameters.id, requestParameters.submitAdvancedSearchRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Run an advanced search for profiles, without saving the query * @summary Run profiles advanced search * @param {AdvancedSearchNERMApiSearchAdvancedSearchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ searchAdvancedSearch(requestParameters: AdvancedSearchNERMApiSearchAdvancedSearchRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.searchAdvancedSearch(requestParameters.submitAdvancedSearchRequestNERM, requestParameters.limit, requestParameters.offset, requestParameters.order, axiosOptions).then((request) => request(axios, basePath)); }, /** * Run a saved advanced search query * @summary Run a saved advanced search * @param {AdvancedSearchNERMApiSearchAdvancedSearchbyIDRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ searchAdvancedSearchbyID(requestParameters: AdvancedSearchNERMApiSearchAdvancedSearchbyIDRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.searchAdvancedSearchbyID(requestParameters.id, requestParameters.limit, requestParameters.offset, requestParameters.order, axiosOptions).then((request) => request(axios, basePath)); }, /** * Save an advanced search query for later use * @summary Save an advanced search query * @param {AdvancedSearchNERMApiSubmitAdvancedSearchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitAdvancedSearch(requestParameters: AdvancedSearchNERMApiSubmitAdvancedSearchRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitAdvancedSearch(requestParameters.submitAdvancedSearchRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for patchAdvancedSearch operation in AdvancedSearchNERMApi. * @export * @interface AdvancedSearchNERMApiPatchAdvancedSearchRequest */ export interface AdvancedSearchNERMApiPatchAdvancedSearchRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof AdvancedSearchNERMApiPatchAdvancedSearch */ readonly id: string /** * * @type {SubmitAdvancedSearchRequestNERM} * @memberof AdvancedSearchNERMApiPatchAdvancedSearch */ readonly submitAdvancedSearchRequestNERM: SubmitAdvancedSearchRequestNERM } /** * Request parameters for searchAdvancedSearch operation in AdvancedSearchNERMApi. * @export * @interface AdvancedSearchNERMApiSearchAdvancedSearchRequest */ export interface AdvancedSearchNERMApiSearchAdvancedSearchRequest { /** * * @type {SubmitAdvancedSearchRequestNERM} * @memberof AdvancedSearchNERMApiSearchAdvancedSearch */ readonly submitAdvancedSearchRequestNERM: SubmitAdvancedSearchRequestNERM /** * The maximum number of items to return. * @type {number} * @memberof AdvancedSearchNERMApiSearchAdvancedSearch */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof AdvancedSearchNERMApiSearchAdvancedSearch */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof AdvancedSearchNERMApiSearchAdvancedSearch */ readonly order?: string } /** * Request parameters for searchAdvancedSearchbyID operation in AdvancedSearchNERMApi. * @export * @interface AdvancedSearchNERMApiSearchAdvancedSearchbyIDRequest */ export interface AdvancedSearchNERMApiSearchAdvancedSearchbyIDRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof AdvancedSearchNERMApiSearchAdvancedSearchbyID */ readonly id: string /** * The maximum number of items to return. * @type {number} * @memberof AdvancedSearchNERMApiSearchAdvancedSearchbyID */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof AdvancedSearchNERMApiSearchAdvancedSearchbyID */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof AdvancedSearchNERMApiSearchAdvancedSearchbyID */ readonly order?: string } /** * Request parameters for submitAdvancedSearch operation in AdvancedSearchNERMApi. * @export * @interface AdvancedSearchNERMApiSubmitAdvancedSearchRequest */ export interface AdvancedSearchNERMApiSubmitAdvancedSearchRequest { /** * * @type {SubmitAdvancedSearchRequestNERM} * @memberof AdvancedSearchNERMApiSubmitAdvancedSearch */ readonly submitAdvancedSearchRequestNERM: SubmitAdvancedSearchRequestNERM } /** * AdvancedSearchNERMApi - object-oriented interface * @export * @class AdvancedSearchNERMApi * @extends {BaseAPI} */ export class AdvancedSearchNERMApi extends BaseAPI { /** * Get saved advanced search queries * @summary Get saved advanced search queries * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchNERMApi */ public getAdvancedSearch(axiosOptions?: RawAxiosRequestConfig) { return AdvancedSearchNERMApiFp(this.configuration).getAdvancedSearch(axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a saved advanced search query * @summary Update a saved advanced search * @param {AdvancedSearchNERMApiPatchAdvancedSearchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchNERMApi */ public patchAdvancedSearch(requestParameters: AdvancedSearchNERMApiPatchAdvancedSearchRequest, axiosOptions?: RawAxiosRequestConfig) { return AdvancedSearchNERMApiFp(this.configuration).patchAdvancedSearch(requestParameters.id, requestParameters.submitAdvancedSearchRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Run an advanced search for profiles, without saving the query * @summary Run profiles advanced search * @param {AdvancedSearchNERMApiSearchAdvancedSearchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchNERMApi */ public searchAdvancedSearch(requestParameters: AdvancedSearchNERMApiSearchAdvancedSearchRequest, axiosOptions?: RawAxiosRequestConfig) { return AdvancedSearchNERMApiFp(this.configuration).searchAdvancedSearch(requestParameters.submitAdvancedSearchRequestNERM, requestParameters.limit, requestParameters.offset, requestParameters.order, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Run a saved advanced search query * @summary Run a saved advanced search * @param {AdvancedSearchNERMApiSearchAdvancedSearchbyIDRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchNERMApi */ public searchAdvancedSearchbyID(requestParameters: AdvancedSearchNERMApiSearchAdvancedSearchbyIDRequest, axiosOptions?: RawAxiosRequestConfig) { return AdvancedSearchNERMApiFp(this.configuration).searchAdvancedSearchbyID(requestParameters.id, requestParameters.limit, requestParameters.offset, requestParameters.order, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Save an advanced search query for later use * @summary Save an advanced search query * @param {AdvancedSearchNERMApiSubmitAdvancedSearchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchNERMApi */ public submitAdvancedSearch(requestParameters: AdvancedSearchNERMApiSubmitAdvancedSearchRequest, axiosOptions?: RawAxiosRequestConfig) { return AdvancedSearchNERMApiFp(this.configuration).submitAdvancedSearch(requestParameters.submitAdvancedSearchRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * AttributeOptionsNERMApi - axios parameter creator * @export */ export const AttributeOptionsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Delete a option based attribute value by id * @summary Delete option based attribute value * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteAttributeOptionById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteAttributeOptionById', 'id', id) const localVarPath = `/ne_attribute_options/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete a option based attribute value by UID (user-specified identifier) * @summary Delete option value * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteAttributeOptionByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/ne_attribute_options/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific option based attribute value by id * @summary Find option based attribute value * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributeOptionById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getAttributeOptionById', 'id', id) const localVarPath = `/ne_attribute_options/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get a specific option based attribute value by UID (user-specified identifier) * @summary Find option attribute value * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributeOptionByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/ne_attribute_options/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get option based attribute values * @summary Get option based attribute values * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [neAttributeId] ID of an attribute for filtering * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributeOptions: async (limit?: number, offset?: number, order?: string, neAttributeId?: string, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/ne_attribute_options`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (neAttributeId !== undefined) { localVarQueryParameter['ne_attribute_id'] = neAttributeId; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a option based attribute value by id * @summary Update option based attribute value * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitAttributeOptionRequestNERM} submitAttributeOptionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchAttributeOptionById: async (id: string, submitAttributeOptionRequestNERM: SubmitAttributeOptionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchAttributeOptionById', 'id', id) // verify required parameter 'submitAttributeOptionRequestNERM' is not null or undefined assertParamExists('patchAttributeOptionById', 'submitAttributeOptionRequestNERM', submitAttributeOptionRequestNERM) const localVarPath = `/ne_attribute_options/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitAttributeOptionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a option based attribute value by UID (user-specified identifier) * @summary Update option value * @param {SubmitAttributeOptionRequestNERM} submitAttributeOptionRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchAttributeOptionByUid: async (submitAttributeOptionRequestNERM: SubmitAttributeOptionRequestNERM, uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitAttributeOptionRequestNERM' is not null or undefined assertParamExists('patchAttributeOptionByUid', 'submitAttributeOptionRequestNERM', submitAttributeOptionRequestNERM) const localVarPath = `/ne_attribute_options/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitAttributeOptionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update multiple option based attribute values * @summary Update multiple option values * @param {SubmitAttributeOptionsRequestNERM} submitAttributeOptionsRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchAttributeOptions: async (submitAttributeOptionsRequestNERM: SubmitAttributeOptionsRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitAttributeOptionsRequestNERM' is not null or undefined assertParamExists('patchAttributeOptions', 'submitAttributeOptionsRequestNERM', submitAttributeOptionsRequestNERM) const localVarPath = `/ne_attribute_options`; // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitAttributeOptionsRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Adds a value to an option based attribute * @summary Add value to option * @param {SubmitAttributeOptionRequestNERM} submitAttributeOptionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitAttributeOption: async (submitAttributeOptionRequestNERM: SubmitAttributeOptionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitAttributeOptionRequestNERM' is not null or undefined assertParamExists('submitAttributeOption', 'submitAttributeOptionRequestNERM', submitAttributeOptionRequestNERM) const localVarPath = `/ne_attribute_option`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitAttributeOptionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create multiple new option based attribute values * @summary Create multiple option values * @param {SubmitAttributeOptionsRequestNERM} submitAttributeOptionsRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitAttributeOptions: async (submitAttributeOptionsRequestNERM: SubmitAttributeOptionsRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitAttributeOptionsRequestNERM' is not null or undefined assertParamExists('submitAttributeOptions', 'submitAttributeOptionsRequestNERM', submitAttributeOptionsRequestNERM) const localVarPath = `/ne_attribute_options`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitAttributeOptionsRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * AttributeOptionsNERMApi - functional programming interface * @export */ export const AttributeOptionsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AttributeOptionsNERMApiAxiosParamCreator(configuration) return { /** * Delete a option based attribute value by id * @summary Delete option based attribute value * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteAttributeOptionById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAttributeOptionById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributeOptionsNERMApi.deleteAttributeOptionById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a option based attribute value by UID (user-specified identifier) * @summary Delete option value * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteAttributeOptionByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAttributeOptionByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributeOptionsNERMApi.deleteAttributeOptionByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific option based attribute value by id * @summary Find option based attribute value * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAttributeOptionById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAttributeOptionById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributeOptionsNERMApi.getAttributeOptionById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a specific option based attribute value by UID (user-specified identifier) * @summary Find option attribute value * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAttributeOptionByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAttributeOptionByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributeOptionsNERMApi.getAttributeOptionByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get option based attribute values * @summary Get option based attribute values * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [neAttributeId] ID of an attribute for filtering * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAttributeOptions(limit?: number, offset?: number, order?: string, neAttributeId?: string, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAttributeOptions(limit, offset, order, neAttributeId, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributeOptionsNERMApi.getAttributeOptions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a option based attribute value by id * @summary Update option based attribute value * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitAttributeOptionRequestNERM} submitAttributeOptionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchAttributeOptionById(id: string, submitAttributeOptionRequestNERM: SubmitAttributeOptionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchAttributeOptionById(id, submitAttributeOptionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributeOptionsNERMApi.patchAttributeOptionById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a option based attribute value by UID (user-specified identifier) * @summary Update option value * @param {SubmitAttributeOptionRequestNERM} submitAttributeOptionRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchAttributeOptionByUid(submitAttributeOptionRequestNERM: SubmitAttributeOptionRequestNERM, uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchAttributeOptionByUid(submitAttributeOptionRequestNERM, uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributeOptionsNERMApi.patchAttributeOptionByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update multiple option based attribute values * @summary Update multiple option values * @param {SubmitAttributeOptionsRequestNERM} submitAttributeOptionsRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchAttributeOptions(submitAttributeOptionsRequestNERM: SubmitAttributeOptionsRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchAttributeOptions(submitAttributeOptionsRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributeOptionsNERMApi.patchAttributeOptions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Adds a value to an option based attribute * @summary Add value to option * @param {SubmitAttributeOptionRequestNERM} submitAttributeOptionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitAttributeOption(submitAttributeOptionRequestNERM: SubmitAttributeOptionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitAttributeOption(submitAttributeOptionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributeOptionsNERMApi.submitAttributeOption']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create multiple new option based attribute values * @summary Create multiple option values * @param {SubmitAttributeOptionsRequestNERM} submitAttributeOptionsRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitAttributeOptions(submitAttributeOptionsRequestNERM: SubmitAttributeOptionsRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitAttributeOptions(submitAttributeOptionsRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributeOptionsNERMApi.submitAttributeOptions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AttributeOptionsNERMApi - factory interface * @export */ export const AttributeOptionsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AttributeOptionsNERMApiFp(configuration) return { /** * Delete a option based attribute value by id * @summary Delete option based attribute value * @param {AttributeOptionsNERMApiDeleteAttributeOptionByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteAttributeOptionById(requestParameters: AttributeOptionsNERMApiDeleteAttributeOptionByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteAttributeOptionById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete a option based attribute value by UID (user-specified identifier) * @summary Delete option value * @param {AttributeOptionsNERMApiDeleteAttributeOptionByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteAttributeOptionByUid(requestParameters: AttributeOptionsNERMApiDeleteAttributeOptionByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteAttributeOptionByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific option based attribute value by id * @summary Find option based attribute value * @param {AttributeOptionsNERMApiGetAttributeOptionByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributeOptionById(requestParameters: AttributeOptionsNERMApiGetAttributeOptionByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAttributeOptionById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get a specific option based attribute value by UID (user-specified identifier) * @summary Find option attribute value * @param {AttributeOptionsNERMApiGetAttributeOptionByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributeOptionByUid(requestParameters: AttributeOptionsNERMApiGetAttributeOptionByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAttributeOptionByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get option based attribute values * @summary Get option based attribute values * @param {AttributeOptionsNERMApiGetAttributeOptionsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributeOptions(requestParameters: AttributeOptionsNERMApiGetAttributeOptionsRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAttributeOptions(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.neAttributeId, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a option based attribute value by id * @summary Update option based attribute value * @param {AttributeOptionsNERMApiPatchAttributeOptionByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchAttributeOptionById(requestParameters: AttributeOptionsNERMApiPatchAttributeOptionByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchAttributeOptionById(requestParameters.id, requestParameters.submitAttributeOptionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a option based attribute value by UID (user-specified identifier) * @summary Update option value * @param {AttributeOptionsNERMApiPatchAttributeOptionByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchAttributeOptionByUid(requestParameters: AttributeOptionsNERMApiPatchAttributeOptionByUidRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchAttributeOptionByUid(requestParameters.submitAttributeOptionRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update multiple option based attribute values * @summary Update multiple option values * @param {AttributeOptionsNERMApiPatchAttributeOptionsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchAttributeOptions(requestParameters: AttributeOptionsNERMApiPatchAttributeOptionsRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchAttributeOptions(requestParameters.submitAttributeOptionsRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Adds a value to an option based attribute * @summary Add value to option * @param {AttributeOptionsNERMApiSubmitAttributeOptionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitAttributeOption(requestParameters: AttributeOptionsNERMApiSubmitAttributeOptionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitAttributeOption(requestParameters.submitAttributeOptionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create multiple new option based attribute values * @summary Create multiple option values * @param {AttributeOptionsNERMApiSubmitAttributeOptionsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitAttributeOptions(requestParameters: AttributeOptionsNERMApiSubmitAttributeOptionsRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitAttributeOptions(requestParameters.submitAttributeOptionsRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for deleteAttributeOptionById operation in AttributeOptionsNERMApi. * @export * @interface AttributeOptionsNERMApiDeleteAttributeOptionByIdRequest */ export interface AttributeOptionsNERMApiDeleteAttributeOptionByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof AttributeOptionsNERMApiDeleteAttributeOptionById */ readonly id: string } /** * Request parameters for deleteAttributeOptionByUid operation in AttributeOptionsNERMApi. * @export * @interface AttributeOptionsNERMApiDeleteAttributeOptionByUidRequest */ export interface AttributeOptionsNERMApiDeleteAttributeOptionByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof AttributeOptionsNERMApiDeleteAttributeOptionByUid */ readonly uid?: string } /** * Request parameters for getAttributeOptionById operation in AttributeOptionsNERMApi. * @export * @interface AttributeOptionsNERMApiGetAttributeOptionByIdRequest */ export interface AttributeOptionsNERMApiGetAttributeOptionByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof AttributeOptionsNERMApiGetAttributeOptionById */ readonly id: string } /** * Request parameters for getAttributeOptionByUid operation in AttributeOptionsNERMApi. * @export * @interface AttributeOptionsNERMApiGetAttributeOptionByUidRequest */ export interface AttributeOptionsNERMApiGetAttributeOptionByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof AttributeOptionsNERMApiGetAttributeOptionByUid */ readonly uid?: string } /** * Request parameters for getAttributeOptions operation in AttributeOptionsNERMApi. * @export * @interface AttributeOptionsNERMApiGetAttributeOptionsRequest */ export interface AttributeOptionsNERMApiGetAttributeOptionsRequest { /** * The maximum number of items to return. * @type {number} * @memberof AttributeOptionsNERMApiGetAttributeOptions */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof AttributeOptionsNERMApiGetAttributeOptions */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof AttributeOptionsNERMApiGetAttributeOptions */ readonly order?: string /** * ID of an attribute for filtering * @type {string} * @memberof AttributeOptionsNERMApiGetAttributeOptions */ readonly neAttributeId?: string /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof AttributeOptionsNERMApiGetAttributeOptions */ readonly metadata?: boolean } /** * Request parameters for patchAttributeOptionById operation in AttributeOptionsNERMApi. * @export * @interface AttributeOptionsNERMApiPatchAttributeOptionByIdRequest */ export interface AttributeOptionsNERMApiPatchAttributeOptionByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof AttributeOptionsNERMApiPatchAttributeOptionById */ readonly id: string /** * * @type {SubmitAttributeOptionRequestNERM} * @memberof AttributeOptionsNERMApiPatchAttributeOptionById */ readonly submitAttributeOptionRequestNERM: SubmitAttributeOptionRequestNERM } /** * Request parameters for patchAttributeOptionByUid operation in AttributeOptionsNERMApi. * @export * @interface AttributeOptionsNERMApiPatchAttributeOptionByUidRequest */ export interface AttributeOptionsNERMApiPatchAttributeOptionByUidRequest { /** * * @type {SubmitAttributeOptionRequestNERM} * @memberof AttributeOptionsNERMApiPatchAttributeOptionByUid */ readonly submitAttributeOptionRequestNERM: SubmitAttributeOptionRequestNERM /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof AttributeOptionsNERMApiPatchAttributeOptionByUid */ readonly uid?: string } /** * Request parameters for patchAttributeOptions operation in AttributeOptionsNERMApi. * @export * @interface AttributeOptionsNERMApiPatchAttributeOptionsRequest */ export interface AttributeOptionsNERMApiPatchAttributeOptionsRequest { /** * * @type {SubmitAttributeOptionsRequestNERM} * @memberof AttributeOptionsNERMApiPatchAttributeOptions */ readonly submitAttributeOptionsRequestNERM: SubmitAttributeOptionsRequestNERM } /** * Request parameters for submitAttributeOption operation in AttributeOptionsNERMApi. * @export * @interface AttributeOptionsNERMApiSubmitAttributeOptionRequest */ export interface AttributeOptionsNERMApiSubmitAttributeOptionRequest { /** * * @type {SubmitAttributeOptionRequestNERM} * @memberof AttributeOptionsNERMApiSubmitAttributeOption */ readonly submitAttributeOptionRequestNERM: SubmitAttributeOptionRequestNERM } /** * Request parameters for submitAttributeOptions operation in AttributeOptionsNERMApi. * @export * @interface AttributeOptionsNERMApiSubmitAttributeOptionsRequest */ export interface AttributeOptionsNERMApiSubmitAttributeOptionsRequest { /** * * @type {SubmitAttributeOptionsRequestNERM} * @memberof AttributeOptionsNERMApiSubmitAttributeOptions */ readonly submitAttributeOptionsRequestNERM: SubmitAttributeOptionsRequestNERM } /** * AttributeOptionsNERMApi - object-oriented interface * @export * @class AttributeOptionsNERMApi * @extends {BaseAPI} */ export class AttributeOptionsNERMApi extends BaseAPI { /** * Delete a option based attribute value by id * @summary Delete option based attribute value * @param {AttributeOptionsNERMApiDeleteAttributeOptionByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributeOptionsNERMApi */ public deleteAttributeOptionById(requestParameters: AttributeOptionsNERMApiDeleteAttributeOptionByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributeOptionsNERMApiFp(this.configuration).deleteAttributeOptionById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete a option based attribute value by UID (user-specified identifier) * @summary Delete option value * @param {AttributeOptionsNERMApiDeleteAttributeOptionByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributeOptionsNERMApi */ public deleteAttributeOptionByUid(requestParameters: AttributeOptionsNERMApiDeleteAttributeOptionByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return AttributeOptionsNERMApiFp(this.configuration).deleteAttributeOptionByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific option based attribute value by id * @summary Find option based attribute value * @param {AttributeOptionsNERMApiGetAttributeOptionByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributeOptionsNERMApi */ public getAttributeOptionById(requestParameters: AttributeOptionsNERMApiGetAttributeOptionByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributeOptionsNERMApiFp(this.configuration).getAttributeOptionById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get a specific option based attribute value by UID (user-specified identifier) * @summary Find option attribute value * @param {AttributeOptionsNERMApiGetAttributeOptionByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributeOptionsNERMApi */ public getAttributeOptionByUid(requestParameters: AttributeOptionsNERMApiGetAttributeOptionByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return AttributeOptionsNERMApiFp(this.configuration).getAttributeOptionByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get option based attribute values * @summary Get option based attribute values * @param {AttributeOptionsNERMApiGetAttributeOptionsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributeOptionsNERMApi */ public getAttributeOptions(requestParameters: AttributeOptionsNERMApiGetAttributeOptionsRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return AttributeOptionsNERMApiFp(this.configuration).getAttributeOptions(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.neAttributeId, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a option based attribute value by id * @summary Update option based attribute value * @param {AttributeOptionsNERMApiPatchAttributeOptionByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributeOptionsNERMApi */ public patchAttributeOptionById(requestParameters: AttributeOptionsNERMApiPatchAttributeOptionByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributeOptionsNERMApiFp(this.configuration).patchAttributeOptionById(requestParameters.id, requestParameters.submitAttributeOptionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a option based attribute value by UID (user-specified identifier) * @summary Update option value * @param {AttributeOptionsNERMApiPatchAttributeOptionByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributeOptionsNERMApi */ public patchAttributeOptionByUid(requestParameters: AttributeOptionsNERMApiPatchAttributeOptionByUidRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributeOptionsNERMApiFp(this.configuration).patchAttributeOptionByUid(requestParameters.submitAttributeOptionRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update multiple option based attribute values * @summary Update multiple option values * @param {AttributeOptionsNERMApiPatchAttributeOptionsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributeOptionsNERMApi */ public patchAttributeOptions(requestParameters: AttributeOptionsNERMApiPatchAttributeOptionsRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributeOptionsNERMApiFp(this.configuration).patchAttributeOptions(requestParameters.submitAttributeOptionsRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Adds a value to an option based attribute * @summary Add value to option * @param {AttributeOptionsNERMApiSubmitAttributeOptionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributeOptionsNERMApi */ public submitAttributeOption(requestParameters: AttributeOptionsNERMApiSubmitAttributeOptionRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributeOptionsNERMApiFp(this.configuration).submitAttributeOption(requestParameters.submitAttributeOptionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create multiple new option based attribute values * @summary Create multiple option values * @param {AttributeOptionsNERMApiSubmitAttributeOptionsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributeOptionsNERMApi */ public submitAttributeOptions(requestParameters: AttributeOptionsNERMApiSubmitAttributeOptionsRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributeOptionsNERMApiFp(this.configuration).submitAttributeOptions(requestParameters.submitAttributeOptionsRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * AttributesNERMApi - axios parameter creator * @export */ export const AttributesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This endpoint can create an attribute * @summary Create an attribute * @param {CreateAttributeRequestNERM} createAttributeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createAttribute: async (createAttributeRequestNERM: CreateAttributeRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createAttributeRequestNERM' is not null or undefined assertParamExists('createAttribute', 'createAttributeRequestNERM', createAttributeRequestNERM) const localVarPath = `/ne_attributes`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createAttributeRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete attribute by id * @summary Delete attribute by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteAttributeById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteAttributeById', 'id', id) const localVarPath = `/ne_attributes/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete attribute by UID (user-specified identifier) * @summary Delete attribute * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteAttributeByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/ne_attributes/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific attribute * @summary Find attribute data by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributeById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getAttributeById', 'id', id) const localVarPath = `/ne_attributes/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific attribute by UID (user-specified identifier) * @summary Find attribute data * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributeByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/ne_attributes/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint can retrieve attribute data in bulk from Lifecycle or you can search for attributes using parameters * @summary Get attribute data in bulk * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [label] The attribute label to filter by * @param {GetAttributesDataTypeNerm} [dataType] The attribute data type to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributes: async (limit?: number, offset?: number, order?: string, label?: string, dataType?: GetAttributesDataTypeNerm, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/ne_attributes`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (label !== undefined) { localVarQueryParameter['label'] = label; } if (dataType !== undefined) { localVarQueryParameter['data_type'] = dataType; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific attribute * @summary Update attribute data by id * @param {string} id ID of the object to retrieve, update, or delete * @param {CreateAttributeRequestNERM} createAttributeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateAttributeById: async (id: string, createAttributeRequestNERM: CreateAttributeRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateAttributeById', 'id', id) // verify required parameter 'createAttributeRequestNERM' is not null or undefined assertParamExists('updateAttributeById', 'createAttributeRequestNERM', createAttributeRequestNERM) const localVarPath = `/ne_attributes/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createAttributeRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific attribute by UID (user-specified identifier) * @summary Update attribute data * @param {CreateAttributeRequestNERM} createAttributeRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateAttributeByUid: async (createAttributeRequestNERM: CreateAttributeRequestNERM, uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createAttributeRequestNERM' is not null or undefined assertParamExists('updateAttributeByUid', 'createAttributeRequestNERM', createAttributeRequestNERM) const localVarPath = `/ne_attributes/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createAttributeRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * AttributesNERMApi - functional programming interface * @export */ export const AttributesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AttributesNERMApiAxiosParamCreator(configuration) return { /** * This endpoint can create an attribute * @summary Create an attribute * @param {CreateAttributeRequestNERM} createAttributeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createAttribute(createAttributeRequestNERM: CreateAttributeRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAttribute(createAttributeRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributesNERMApi.createAttribute']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete attribute by id * @summary Delete attribute by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteAttributeById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAttributeById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributesNERMApi.deleteAttributeById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete attribute by UID (user-specified identifier) * @summary Delete attribute * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteAttributeByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAttributeByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributesNERMApi.deleteAttributeByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific attribute * @summary Find attribute data by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAttributeById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAttributeById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributesNERMApi.getAttributeById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific attribute by UID (user-specified identifier) * @summary Find attribute data * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAttributeByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAttributeByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributesNERMApi.getAttributeByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint can retrieve attribute data in bulk from Lifecycle or you can search for attributes using parameters * @summary Get attribute data in bulk * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [label] The attribute label to filter by * @param {GetAttributesDataTypeNerm} [dataType] The attribute data type to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getAttributes(limit?: number, offset?: number, order?: string, label?: string, dataType?: GetAttributesDataTypeNerm, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAttributes(limit, offset, order, label, dataType, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributesNERMApi.getAttributes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific attribute * @summary Update attribute data by id * @param {string} id ID of the object to retrieve, update, or delete * @param {CreateAttributeRequestNERM} createAttributeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateAttributeById(id: string, createAttributeRequestNERM: CreateAttributeRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateAttributeById(id, createAttributeRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributesNERMApi.updateAttributeById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific attribute by UID (user-specified identifier) * @summary Update attribute data * @param {CreateAttributeRequestNERM} createAttributeRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateAttributeByUid(createAttributeRequestNERM: CreateAttributeRequestNERM, uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateAttributeByUid(createAttributeRequestNERM, uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AttributesNERMApi.updateAttributeByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AttributesNERMApi - factory interface * @export */ export const AttributesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AttributesNERMApiFp(configuration) return { /** * This endpoint can create an attribute * @summary Create an attribute * @param {AttributesNERMApiCreateAttributeRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createAttribute(requestParameters: AttributesNERMApiCreateAttributeRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createAttribute(requestParameters.createAttributeRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete attribute by id * @summary Delete attribute by id * @param {AttributesNERMApiDeleteAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteAttributeById(requestParameters: AttributesNERMApiDeleteAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteAttributeById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete attribute by UID (user-specified identifier) * @summary Delete attribute * @param {AttributesNERMApiDeleteAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteAttributeByUid(requestParameters: AttributesNERMApiDeleteAttributeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteAttributeByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific attribute * @summary Find attribute data by id * @param {AttributesNERMApiGetAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributeById(requestParameters: AttributesNERMApiGetAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAttributeById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific attribute by UID (user-specified identifier) * @summary Find attribute data * @param {AttributesNERMApiGetAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributeByUid(requestParameters: AttributesNERMApiGetAttributeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAttributeByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint can retrieve attribute data in bulk from Lifecycle or you can search for attributes using parameters * @summary Get attribute data in bulk * @param {AttributesNERMApiGetAttributesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getAttributes(requestParameters: AttributesNERMApiGetAttributesRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAttributes(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.label, requestParameters.dataType, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific attribute * @summary Update attribute data by id * @param {AttributesNERMApiUpdateAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateAttributeById(requestParameters: AttributesNERMApiUpdateAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateAttributeById(requestParameters.id, requestParameters.createAttributeRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific attribute by UID (user-specified identifier) * @summary Update attribute data * @param {AttributesNERMApiUpdateAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateAttributeByUid(requestParameters: AttributesNERMApiUpdateAttributeByUidRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateAttributeByUid(requestParameters.createAttributeRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createAttribute operation in AttributesNERMApi. * @export * @interface AttributesNERMApiCreateAttributeRequest */ export interface AttributesNERMApiCreateAttributeRequest { /** * * @type {CreateAttributeRequestNERM} * @memberof AttributesNERMApiCreateAttribute */ readonly createAttributeRequestNERM: CreateAttributeRequestNERM } /** * Request parameters for deleteAttributeById operation in AttributesNERMApi. * @export * @interface AttributesNERMApiDeleteAttributeByIdRequest */ export interface AttributesNERMApiDeleteAttributeByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof AttributesNERMApiDeleteAttributeById */ readonly id: string } /** * Request parameters for deleteAttributeByUid operation in AttributesNERMApi. * @export * @interface AttributesNERMApiDeleteAttributeByUidRequest */ export interface AttributesNERMApiDeleteAttributeByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof AttributesNERMApiDeleteAttributeByUid */ readonly uid?: string } /** * Request parameters for getAttributeById operation in AttributesNERMApi. * @export * @interface AttributesNERMApiGetAttributeByIdRequest */ export interface AttributesNERMApiGetAttributeByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof AttributesNERMApiGetAttributeById */ readonly id: string } /** * Request parameters for getAttributeByUid operation in AttributesNERMApi. * @export * @interface AttributesNERMApiGetAttributeByUidRequest */ export interface AttributesNERMApiGetAttributeByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof AttributesNERMApiGetAttributeByUid */ readonly uid?: string } /** * Request parameters for getAttributes operation in AttributesNERMApi. * @export * @interface AttributesNERMApiGetAttributesRequest */ export interface AttributesNERMApiGetAttributesRequest { /** * The maximum number of items to return. * @type {number} * @memberof AttributesNERMApiGetAttributes */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof AttributesNERMApiGetAttributes */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof AttributesNERMApiGetAttributes */ readonly order?: string /** * The attribute label to filter by * @type {string} * @memberof AttributesNERMApiGetAttributes */ readonly label?: string /** * The attribute data type to filter by * @type {'text field' | 'text area' | 'drop-down' | 'radio buttons' | 'check boxes' | 'date' | 'tags' | 'attachment' | 'profile select' | 'profile search' | 'owner select' | 'owner search' | 'contributor select' | 'contributor search'} * @memberof AttributesNERMApiGetAttributes */ readonly dataType?: GetAttributesDataTypeNerm /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof AttributesNERMApiGetAttributes */ readonly metadata?: boolean } /** * Request parameters for updateAttributeById operation in AttributesNERMApi. * @export * @interface AttributesNERMApiUpdateAttributeByIdRequest */ export interface AttributesNERMApiUpdateAttributeByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof AttributesNERMApiUpdateAttributeById */ readonly id: string /** * * @type {CreateAttributeRequestNERM} * @memberof AttributesNERMApiUpdateAttributeById */ readonly createAttributeRequestNERM: CreateAttributeRequestNERM } /** * Request parameters for updateAttributeByUid operation in AttributesNERMApi. * @export * @interface AttributesNERMApiUpdateAttributeByUidRequest */ export interface AttributesNERMApiUpdateAttributeByUidRequest { /** * * @type {CreateAttributeRequestNERM} * @memberof AttributesNERMApiUpdateAttributeByUid */ readonly createAttributeRequestNERM: CreateAttributeRequestNERM /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof AttributesNERMApiUpdateAttributeByUid */ readonly uid?: string } /** * AttributesNERMApi - object-oriented interface * @export * @class AttributesNERMApi * @extends {BaseAPI} */ export class AttributesNERMApi extends BaseAPI { /** * This endpoint can create an attribute * @summary Create an attribute * @param {AttributesNERMApiCreateAttributeRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributesNERMApi */ public createAttribute(requestParameters: AttributesNERMApiCreateAttributeRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributesNERMApiFp(this.configuration).createAttribute(requestParameters.createAttributeRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete attribute by id * @summary Delete attribute by id * @param {AttributesNERMApiDeleteAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributesNERMApi */ public deleteAttributeById(requestParameters: AttributesNERMApiDeleteAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributesNERMApiFp(this.configuration).deleteAttributeById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete attribute by UID (user-specified identifier) * @summary Delete attribute * @param {AttributesNERMApiDeleteAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributesNERMApi */ public deleteAttributeByUid(requestParameters: AttributesNERMApiDeleteAttributeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return AttributesNERMApiFp(this.configuration).deleteAttributeByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific attribute * @summary Find attribute data by id * @param {AttributesNERMApiGetAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributesNERMApi */ public getAttributeById(requestParameters: AttributesNERMApiGetAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributesNERMApiFp(this.configuration).getAttributeById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific attribute by UID (user-specified identifier) * @summary Find attribute data * @param {AttributesNERMApiGetAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributesNERMApi */ public getAttributeByUid(requestParameters: AttributesNERMApiGetAttributeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return AttributesNERMApiFp(this.configuration).getAttributeByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint can retrieve attribute data in bulk from Lifecycle or you can search for attributes using parameters * @summary Get attribute data in bulk * @param {AttributesNERMApiGetAttributesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributesNERMApi */ public getAttributes(requestParameters: AttributesNERMApiGetAttributesRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return AttributesNERMApiFp(this.configuration).getAttributes(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.label, requestParameters.dataType, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific attribute * @summary Update attribute data by id * @param {AttributesNERMApiUpdateAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributesNERMApi */ public updateAttributeById(requestParameters: AttributesNERMApiUpdateAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributesNERMApiFp(this.configuration).updateAttributeById(requestParameters.id, requestParameters.createAttributeRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific attribute by UID (user-specified identifier) * @summary Update attribute data * @param {AttributesNERMApiUpdateAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AttributesNERMApi */ public updateAttributeByUid(requestParameters: AttributesNERMApiUpdateAttributeByUidRequest, axiosOptions?: RawAxiosRequestConfig) { return AttributesNERMApiFp(this.configuration).updateAttributeByUid(requestParameters.createAttributeRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetAttributesDataTypeNerm = { TextField: 'text field', TextArea: 'text area', DropDown: 'drop-down', RadioButtons: 'radio buttons', CheckBoxes: 'check boxes', Date: 'date', Tags: 'tags', Attachment: 'attachment', ProfileSelect: 'profile select', ProfileSearch: 'profile search', OwnerSelect: 'owner select', OwnerSearch: 'owner search', ContributorSelect: 'contributor select', ContributorSearch: 'contributor search' } as const; export type GetAttributesDataTypeNerm = typeof GetAttributesDataTypeNerm[keyof typeof GetAttributesDataTypeNerm]; /** * AuditsNERMApi - axios parameter creator * @export */ export const AuditsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This endpoint provides a search engine for Audit Events by optionally combining subject_type, type, and subject_id to narrow down the audit events. A Subject Type of Profile links up to the AuditableProfile types. An Subject Type of WorkflowSession links up to the AuditableWorkflow types. An Subject Type of Get/Post/Patch/Delete links up to the AuditableApi types. The remaining Subject Types link up to the ActiveRecord types (configuration changes). - Any workflow audit event created as of 10/11/2024 will be able to be queried by workflow name, workflow uid, or workflow profile type. - Any profile audit event created as of 10/11/2024 will be able to be queried by profile type. - The entity_type parameter has been updated to subject_type, which now matches what is in the response object. - With the additional query filters added, there is a max of 5 filter parameters at one time (aside from pagination parameters) To accommodate these changes, an API contract change was required. Please read the updated API documentation for the new request syntax. * @summary Query for Audit events * @param {SearchRequestNERM} searchRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ search: async (searchRequestNERM: SearchRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'searchRequestNERM' is not null or undefined assertParamExists('search', 'searchRequestNERM', searchRequestNERM) const localVarPath = `/audit_events/query`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(searchRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * AuditsNERMApi - functional programming interface * @export */ export const AuditsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AuditsNERMApiAxiosParamCreator(configuration) return { /** * This endpoint provides a search engine for Audit Events by optionally combining subject_type, type, and subject_id to narrow down the audit events. A Subject Type of Profile links up to the AuditableProfile types. An Subject Type of WorkflowSession links up to the AuditableWorkflow types. An Subject Type of Get/Post/Patch/Delete links up to the AuditableApi types. The remaining Subject Types link up to the ActiveRecord types (configuration changes). - Any workflow audit event created as of 10/11/2024 will be able to be queried by workflow name, workflow uid, or workflow profile type. - Any profile audit event created as of 10/11/2024 will be able to be queried by profile type. - The entity_type parameter has been updated to subject_type, which now matches what is in the response object. - With the additional query filters added, there is a max of 5 filter parameters at one time (aside from pagination parameters) To accommodate these changes, an API contract change was required. Please read the updated API documentation for the new request syntax. * @summary Query for Audit events * @param {SearchRequestNERM} searchRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async search(searchRequestNERM: SearchRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.search(searchRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuditsNERMApi.search']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AuditsNERMApi - factory interface * @export */ export const AuditsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AuditsNERMApiFp(configuration) return { /** * This endpoint provides a search engine for Audit Events by optionally combining subject_type, type, and subject_id to narrow down the audit events. A Subject Type of Profile links up to the AuditableProfile types. An Subject Type of WorkflowSession links up to the AuditableWorkflow types. An Subject Type of Get/Post/Patch/Delete links up to the AuditableApi types. The remaining Subject Types link up to the ActiveRecord types (configuration changes). - Any workflow audit event created as of 10/11/2024 will be able to be queried by workflow name, workflow uid, or workflow profile type. - Any profile audit event created as of 10/11/2024 will be able to be queried by profile type. - The entity_type parameter has been updated to subject_type, which now matches what is in the response object. - With the additional query filters added, there is a max of 5 filter parameters at one time (aside from pagination parameters) To accommodate these changes, an API contract change was required. Please read the updated API documentation for the new request syntax. * @summary Query for Audit events * @param {AuditsNERMApiSearchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ search(requestParameters: AuditsNERMApiSearchRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.search(requestParameters.searchRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for search operation in AuditsNERMApi. * @export * @interface AuditsNERMApiSearchRequest */ export interface AuditsNERMApiSearchRequest { /** * * @type {SearchRequestNERM} * @memberof AuditsNERMApiSearch */ readonly searchRequestNERM: SearchRequestNERM } /** * AuditsNERMApi - object-oriented interface * @export * @class AuditsNERMApi * @extends {BaseAPI} */ export class AuditsNERMApi extends BaseAPI { /** * This endpoint provides a search engine for Audit Events by optionally combining subject_type, type, and subject_id to narrow down the audit events. A Subject Type of Profile links up to the AuditableProfile types. An Subject Type of WorkflowSession links up to the AuditableWorkflow types. An Subject Type of Get/Post/Patch/Delete links up to the AuditableApi types. The remaining Subject Types link up to the ActiveRecord types (configuration changes). - Any workflow audit event created as of 10/11/2024 will be able to be queried by workflow name, workflow uid, or workflow profile type. - Any profile audit event created as of 10/11/2024 will be able to be queried by profile type. - The entity_type parameter has been updated to subject_type, which now matches what is in the response object. - With the additional query filters added, there is a max of 5 filter parameters at one time (aside from pagination parameters) To accommodate these changes, an API contract change was required. Please read the updated API documentation for the new request syntax. * @summary Query for Audit events * @param {AuditsNERMApiSearchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof AuditsNERMApi */ public search(requestParameters: AuditsNERMApiSearchRequest, axiosOptions?: RawAxiosRequestConfig) { return AuditsNERMApiFp(this.configuration).search(requestParameters.searchRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * ConsolidationNERMApi - axios parameter creator * @export */ export const ConsolidationNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Consolidation is a deprecated feature, this endpoint provides a mechanism to delete a master record to assist customers. * @summary Delete a master record * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteMasterRecord: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteMasterRecord', 'id', id) const localVarPath = `/idproxy/identities/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Consolidation is a deprecated feature, this endpoint provides a mechanism to reassign a data record to a new master record to assist customers. * @summary Reassign data record * @param {string} id ID of the object to retrieve, update, or delete * @param {DataRecordsNERM} dataRecordsNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchDataRecord: async (id: string, dataRecordsNERM: DataRecordsNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchDataRecord', 'id', id) // verify required parameter 'dataRecordsNERM' is not null or undefined assertParamExists('patchDataRecord', 'dataRecordsNERM', dataRecordsNERM) const localVarPath = `/idproxy/data_records/{id}/reassign` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(dataRecordsNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * ConsolidationNERMApi - functional programming interface * @export */ export const ConsolidationNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ConsolidationNERMApiAxiosParamCreator(configuration) return { /** * Consolidation is a deprecated feature, this endpoint provides a mechanism to delete a master record to assist customers. * @summary Delete a master record * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteMasterRecord(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMasterRecord(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ConsolidationNERMApi.deleteMasterRecord']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Consolidation is a deprecated feature, this endpoint provides a mechanism to reassign a data record to a new master record to assist customers. * @summary Reassign data record * @param {string} id ID of the object to retrieve, update, or delete * @param {DataRecordsNERM} dataRecordsNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchDataRecord(id: string, dataRecordsNERM: DataRecordsNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchDataRecord(id, dataRecordsNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ConsolidationNERMApi.patchDataRecord']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ConsolidationNERMApi - factory interface * @export */ export const ConsolidationNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ConsolidationNERMApiFp(configuration) return { /** * Consolidation is a deprecated feature, this endpoint provides a mechanism to delete a master record to assist customers. * @summary Delete a master record * @param {ConsolidationNERMApiDeleteMasterRecordRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteMasterRecord(requestParameters: ConsolidationNERMApiDeleteMasterRecordRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteMasterRecord(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Consolidation is a deprecated feature, this endpoint provides a mechanism to reassign a data record to a new master record to assist customers. * @summary Reassign data record * @param {ConsolidationNERMApiPatchDataRecordRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchDataRecord(requestParameters: ConsolidationNERMApiPatchDataRecordRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchDataRecord(requestParameters.id, requestParameters.dataRecordsNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for deleteMasterRecord operation in ConsolidationNERMApi. * @export * @interface ConsolidationNERMApiDeleteMasterRecordRequest */ export interface ConsolidationNERMApiDeleteMasterRecordRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ConsolidationNERMApiDeleteMasterRecord */ readonly id: string } /** * Request parameters for patchDataRecord operation in ConsolidationNERMApi. * @export * @interface ConsolidationNERMApiPatchDataRecordRequest */ export interface ConsolidationNERMApiPatchDataRecordRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ConsolidationNERMApiPatchDataRecord */ readonly id: string /** * * @type {DataRecordsNERM} * @memberof ConsolidationNERMApiPatchDataRecord */ readonly dataRecordsNERM: DataRecordsNERM } /** * ConsolidationNERMApi - object-oriented interface * @export * @class ConsolidationNERMApi * @extends {BaseAPI} */ export class ConsolidationNERMApi extends BaseAPI { /** * Consolidation is a deprecated feature, this endpoint provides a mechanism to delete a master record to assist customers. * @summary Delete a master record * @param {ConsolidationNERMApiDeleteMasterRecordRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ConsolidationNERMApi */ public deleteMasterRecord(requestParameters: ConsolidationNERMApiDeleteMasterRecordRequest, axiosOptions?: RawAxiosRequestConfig) { return ConsolidationNERMApiFp(this.configuration).deleteMasterRecord(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Consolidation is a deprecated feature, this endpoint provides a mechanism to reassign a data record to a new master record to assist customers. * @summary Reassign data record * @param {ConsolidationNERMApiPatchDataRecordRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ConsolidationNERMApi */ public patchDataRecord(requestParameters: ConsolidationNERMApiPatchDataRecordRequest, axiosOptions?: RawAxiosRequestConfig) { return ConsolidationNERMApiFp(this.configuration).patchDataRecord(requestParameters.id, requestParameters.dataRecordsNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * DelegationsNERMApi - axios parameter creator * @export */ export const DelegationsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status. * @summary List delegations * @param {string} [delegateId] Filter by delegate ID * @param {string} [delegatorId] Filter by delegator ID * @param {boolean} [expired] Filter by expiration status (true for expired, false for not expired) * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsGet: async (delegateId?: string, delegatorId?: string, expired?: boolean, metadata?: boolean, limit?: number, offset?: number, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/delegations`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (delegateId !== undefined) { localVarQueryParameter['delegate_id'] = delegateId; } if (delegatorId !== undefined) { localVarQueryParameter['delegator_id'] = delegatorId; } if (expired !== undefined) { localVarQueryParameter['expired'] = expired; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete an existing delegation record. * @summary Delete a delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdDelete: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('delegationsIdDelete', 'id', id) const localVarPath = `/delegations/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Returns a single delegation record by its ID. * @summary Get a single delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdGet: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('delegationsIdGet', 'id', id) const localVarPath = `/delegations/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update an existing delegation record. * @summary Update a delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {DelegationsPostRequestNERM} delegationsPostRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdPatch: async (id: string, delegationsPostRequestNERM: DelegationsPostRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('delegationsIdPatch', 'id', id) // verify required parameter 'delegationsPostRequestNERM' is not null or undefined assertParamExists('delegationsIdPatch', 'delegationsPostRequestNERM', delegationsPostRequestNERM) const localVarPath = `/delegations/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(delegationsPostRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a new delegation record. * @summary Create a delegation * @param {DelegationsPostRequestNERM} delegationsPostRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsPost: async (delegationsPostRequestNERM: DelegationsPostRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'delegationsPostRequestNERM' is not null or undefined assertParamExists('delegationsPost', 'delegationsPostRequestNERM', delegationsPostRequestNERM) const localVarPath = `/delegations`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(delegationsPostRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * DelegationsNERMApi - functional programming interface * @export */ export const DelegationsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = DelegationsNERMApiAxiosParamCreator(configuration) return { /** * Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status. * @summary List delegations * @param {string} [delegateId] Filter by delegate ID * @param {string} [delegatorId] Filter by delegator ID * @param {boolean} [expired] Filter by expiration status (true for expired, false for not expired) * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async delegationsGet(delegateId?: string, delegatorId?: string, expired?: boolean, metadata?: boolean, limit?: number, offset?: number, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsGet(delegateId, delegatorId, expired, metadata, limit, offset, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DelegationsNERMApi.delegationsGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete an existing delegation record. * @summary Delete a delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async delegationsIdDelete(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsIdDelete(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DelegationsNERMApi.delegationsIdDelete']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns a single delegation record by its ID. * @summary Get a single delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async delegationsIdGet(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsIdGet(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DelegationsNERMApi.delegationsIdGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update an existing delegation record. * @summary Update a delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {DelegationsPostRequestNERM} delegationsPostRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async delegationsIdPatch(id: string, delegationsPostRequestNERM: DelegationsPostRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsIdPatch(id, delegationsPostRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DelegationsNERMApi.delegationsIdPatch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new delegation record. * @summary Create a delegation * @param {DelegationsPostRequestNERM} delegationsPostRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async delegationsPost(delegationsPostRequestNERM: DelegationsPostRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsPost(delegationsPostRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DelegationsNERMApi.delegationsPost']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * DelegationsNERMApi - factory interface * @export */ export const DelegationsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = DelegationsNERMApiFp(configuration) return { /** * Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status. * @summary List delegations * @param {DelegationsNERMApiDelegationsGetRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsGet(requestParameters: DelegationsNERMApiDelegationsGetRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delegationsGet(requestParameters.delegateId, requestParameters.delegatorId, requestParameters.expired, requestParameters.metadata, requestParameters.limit, requestParameters.offset, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete an existing delegation record. * @summary Delete a delegation * @param {DelegationsNERMApiDelegationsIdDeleteRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdDelete(requestParameters: DelegationsNERMApiDelegationsIdDeleteRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delegationsIdDelete(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Returns a single delegation record by its ID. * @summary Get a single delegation * @param {DelegationsNERMApiDelegationsIdGetRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdGet(requestParameters: DelegationsNERMApiDelegationsIdGetRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delegationsIdGet(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update an existing delegation record. * @summary Update a delegation * @param {DelegationsNERMApiDelegationsIdPatchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdPatch(requestParameters: DelegationsNERMApiDelegationsIdPatchRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delegationsIdPatch(requestParameters.id, requestParameters.delegationsPostRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a new delegation record. * @summary Create a delegation * @param {DelegationsNERMApiDelegationsPostRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsPost(requestParameters: DelegationsNERMApiDelegationsPostRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delegationsPost(requestParameters.delegationsPostRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for delegationsGet operation in DelegationsNERMApi. * @export * @interface DelegationsNERMApiDelegationsGetRequest */ export interface DelegationsNERMApiDelegationsGetRequest { /** * Filter by delegate ID * @type {string} * @memberof DelegationsNERMApiDelegationsGet */ readonly delegateId?: string /** * Filter by delegator ID * @type {string} * @memberof DelegationsNERMApiDelegationsGet */ readonly delegatorId?: string /** * Filter by expiration status (true for expired, false for not expired) * @type {boolean} * @memberof DelegationsNERMApiDelegationsGet */ readonly expired?: boolean /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof DelegationsNERMApiDelegationsGet */ readonly metadata?: boolean /** * The maximum number of items to return. * @type {number} * @memberof DelegationsNERMApiDelegationsGet */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof DelegationsNERMApiDelegationsGet */ readonly offset?: number } /** * Request parameters for delegationsIdDelete operation in DelegationsNERMApi. * @export * @interface DelegationsNERMApiDelegationsIdDeleteRequest */ export interface DelegationsNERMApiDelegationsIdDeleteRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof DelegationsNERMApiDelegationsIdDelete */ readonly id: string } /** * Request parameters for delegationsIdGet operation in DelegationsNERMApi. * @export * @interface DelegationsNERMApiDelegationsIdGetRequest */ export interface DelegationsNERMApiDelegationsIdGetRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof DelegationsNERMApiDelegationsIdGet */ readonly id: string } /** * Request parameters for delegationsIdPatch operation in DelegationsNERMApi. * @export * @interface DelegationsNERMApiDelegationsIdPatchRequest */ export interface DelegationsNERMApiDelegationsIdPatchRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof DelegationsNERMApiDelegationsIdPatch */ readonly id: string /** * * @type {DelegationsPostRequestNERM} * @memberof DelegationsNERMApiDelegationsIdPatch */ readonly delegationsPostRequestNERM: DelegationsPostRequestNERM } /** * Request parameters for delegationsPost operation in DelegationsNERMApi. * @export * @interface DelegationsNERMApiDelegationsPostRequest */ export interface DelegationsNERMApiDelegationsPostRequest { /** * * @type {DelegationsPostRequestNERM} * @memberof DelegationsNERMApiDelegationsPost */ readonly delegationsPostRequestNERM: DelegationsPostRequestNERM } /** * DelegationsNERMApi - object-oriented interface * @export * @class DelegationsNERMApi * @extends {BaseAPI} */ export class DelegationsNERMApi extends BaseAPI { /** * Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status. * @summary List delegations * @param {DelegationsNERMApiDelegationsGetRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof DelegationsNERMApi */ public delegationsGet(requestParameters: DelegationsNERMApiDelegationsGetRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return DelegationsNERMApiFp(this.configuration).delegationsGet(requestParameters.delegateId, requestParameters.delegatorId, requestParameters.expired, requestParameters.metadata, requestParameters.limit, requestParameters.offset, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete an existing delegation record. * @summary Delete a delegation * @param {DelegationsNERMApiDelegationsIdDeleteRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof DelegationsNERMApi */ public delegationsIdDelete(requestParameters: DelegationsNERMApiDelegationsIdDeleteRequest, axiosOptions?: RawAxiosRequestConfig) { return DelegationsNERMApiFp(this.configuration).delegationsIdDelete(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Returns a single delegation record by its ID. * @summary Get a single delegation * @param {DelegationsNERMApiDelegationsIdGetRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof DelegationsNERMApi */ public delegationsIdGet(requestParameters: DelegationsNERMApiDelegationsIdGetRequest, axiosOptions?: RawAxiosRequestConfig) { return DelegationsNERMApiFp(this.configuration).delegationsIdGet(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update an existing delegation record. * @summary Update a delegation * @param {DelegationsNERMApiDelegationsIdPatchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof DelegationsNERMApi */ public delegationsIdPatch(requestParameters: DelegationsNERMApiDelegationsIdPatchRequest, axiosOptions?: RawAxiosRequestConfig) { return DelegationsNERMApiFp(this.configuration).delegationsIdPatch(requestParameters.id, requestParameters.delegationsPostRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a new delegation record. * @summary Create a delegation * @param {DelegationsNERMApiDelegationsPostRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof DelegationsNERMApi */ public delegationsPost(requestParameters: DelegationsNERMApiDelegationsPostRequest, axiosOptions?: RawAxiosRequestConfig) { return DelegationsNERMApiFp(this.configuration).delegationsPost(requestParameters.delegationsPostRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * FormAttributesNERMApi - axios parameter creator * @export */ export const FormAttributesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This endpoint can create a form attribute * @summary Create a form attribute * @param {CreateFormAttributeRequestNERM} createFormAttributeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createFormAttribute: async (createFormAttributeRequestNERM: CreateFormAttributeRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createFormAttributeRequestNERM' is not null or undefined assertParamExists('createFormAttribute', 'createFormAttributeRequestNERM', createFormAttributeRequestNERM) const localVarPath = `/form_attributes`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createFormAttributeRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete form attribute by id * @summary Delete form attribute * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteFormAttributeById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteFormAttributeById', 'id', id) const localVarPath = `/form_attributes/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete form attribute by UID * @summary Delete form attribute * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteFormAttributeByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/form_attributes/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Gets info for a specific form attribute by ID * @summary Get form attribute data * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getFormAttributeById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getFormAttributeById', 'id', id) const localVarPath = `/form_attributes/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get info for a specific form attribute by UID * @summary Get form attribute data * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getFormAttributeByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/form_attributes/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get defined form attribute in the system * @summary Get form attributes * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getFormAttributes: async (axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/form_attributes`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific form attribute by ID * @summary Update form attribute data * @param {string} id ID of the object to retrieve, update, or delete * @param {CreateFormAttributeRequestNERM} createFormAttributeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateFormAttributeById: async (id: string, createFormAttributeRequestNERM: CreateFormAttributeRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateFormAttributeById', 'id', id) // verify required parameter 'createFormAttributeRequestNERM' is not null or undefined assertParamExists('updateFormAttributeById', 'createFormAttributeRequestNERM', createFormAttributeRequestNERM) const localVarPath = `/form_attributes/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createFormAttributeRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific form attribute by UID * @summary Update form attribute data * @param {CreateFormAttributeRequestNERM} createFormAttributeRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateFormAttributeByUid: async (createFormAttributeRequestNERM: CreateFormAttributeRequestNERM, uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createFormAttributeRequestNERM' is not null or undefined assertParamExists('updateFormAttributeByUid', 'createFormAttributeRequestNERM', createFormAttributeRequestNERM) const localVarPath = `/form_attributes/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createFormAttributeRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * FormAttributesNERMApi - functional programming interface * @export */ export const FormAttributesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = FormAttributesNERMApiAxiosParamCreator(configuration) return { /** * This endpoint can create a form attribute * @summary Create a form attribute * @param {CreateFormAttributeRequestNERM} createFormAttributeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createFormAttribute(createFormAttributeRequestNERM: CreateFormAttributeRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createFormAttribute(createFormAttributeRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormAttributesNERMApi.createFormAttribute']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete form attribute by id * @summary Delete form attribute * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteFormAttributeById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFormAttributeById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormAttributesNERMApi.deleteFormAttributeById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete form attribute by UID * @summary Delete form attribute * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteFormAttributeByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFormAttributeByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormAttributesNERMApi.deleteFormAttributeByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Gets info for a specific form attribute by ID * @summary Get form attribute data * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getFormAttributeById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFormAttributeById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormAttributesNERMApi.getFormAttributeById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get info for a specific form attribute by UID * @summary Get form attribute data * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getFormAttributeByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFormAttributeByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormAttributesNERMApi.getFormAttributeByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get defined form attribute in the system * @summary Get form attributes * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getFormAttributes(axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFormAttributes(axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormAttributesNERMApi.getFormAttributes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific form attribute by ID * @summary Update form attribute data * @param {string} id ID of the object to retrieve, update, or delete * @param {CreateFormAttributeRequestNERM} createFormAttributeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateFormAttributeById(id: string, createFormAttributeRequestNERM: CreateFormAttributeRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateFormAttributeById(id, createFormAttributeRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormAttributesNERMApi.updateFormAttributeById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific form attribute by UID * @summary Update form attribute data * @param {CreateFormAttributeRequestNERM} createFormAttributeRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateFormAttributeByUid(createFormAttributeRequestNERM: CreateFormAttributeRequestNERM, uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateFormAttributeByUid(createFormAttributeRequestNERM, uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormAttributesNERMApi.updateFormAttributeByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * FormAttributesNERMApi - factory interface * @export */ export const FormAttributesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = FormAttributesNERMApiFp(configuration) return { /** * This endpoint can create a form attribute * @summary Create a form attribute * @param {FormAttributesNERMApiCreateFormAttributeRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createFormAttribute(requestParameters: FormAttributesNERMApiCreateFormAttributeRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createFormAttribute(requestParameters.createFormAttributeRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete form attribute by id * @summary Delete form attribute * @param {FormAttributesNERMApiDeleteFormAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteFormAttributeById(requestParameters: FormAttributesNERMApiDeleteFormAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteFormAttributeById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete form attribute by UID * @summary Delete form attribute * @param {FormAttributesNERMApiDeleteFormAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteFormAttributeByUid(requestParameters: FormAttributesNERMApiDeleteFormAttributeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteFormAttributeByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Gets info for a specific form attribute by ID * @summary Get form attribute data * @param {FormAttributesNERMApiGetFormAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getFormAttributeById(requestParameters: FormAttributesNERMApiGetFormAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFormAttributeById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get info for a specific form attribute by UID * @summary Get form attribute data * @param {FormAttributesNERMApiGetFormAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getFormAttributeByUid(requestParameters: FormAttributesNERMApiGetFormAttributeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFormAttributeByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get defined form attribute in the system * @summary Get form attributes * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getFormAttributes(axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFormAttributes(axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific form attribute by ID * @summary Update form attribute data * @param {FormAttributesNERMApiUpdateFormAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateFormAttributeById(requestParameters: FormAttributesNERMApiUpdateFormAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateFormAttributeById(requestParameters.id, requestParameters.createFormAttributeRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific form attribute by UID * @summary Update form attribute data * @param {FormAttributesNERMApiUpdateFormAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateFormAttributeByUid(requestParameters: FormAttributesNERMApiUpdateFormAttributeByUidRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateFormAttributeByUid(requestParameters.createFormAttributeRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createFormAttribute operation in FormAttributesNERMApi. * @export * @interface FormAttributesNERMApiCreateFormAttributeRequest */ export interface FormAttributesNERMApiCreateFormAttributeRequest { /** * * @type {CreateFormAttributeRequestNERM} * @memberof FormAttributesNERMApiCreateFormAttribute */ readonly createFormAttributeRequestNERM: CreateFormAttributeRequestNERM } /** * Request parameters for deleteFormAttributeById operation in FormAttributesNERMApi. * @export * @interface FormAttributesNERMApiDeleteFormAttributeByIdRequest */ export interface FormAttributesNERMApiDeleteFormAttributeByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof FormAttributesNERMApiDeleteFormAttributeById */ readonly id: string } /** * Request parameters for deleteFormAttributeByUid operation in FormAttributesNERMApi. * @export * @interface FormAttributesNERMApiDeleteFormAttributeByUidRequest */ export interface FormAttributesNERMApiDeleteFormAttributeByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof FormAttributesNERMApiDeleteFormAttributeByUid */ readonly uid?: string } /** * Request parameters for getFormAttributeById operation in FormAttributesNERMApi. * @export * @interface FormAttributesNERMApiGetFormAttributeByIdRequest */ export interface FormAttributesNERMApiGetFormAttributeByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof FormAttributesNERMApiGetFormAttributeById */ readonly id: string } /** * Request parameters for getFormAttributeByUid operation in FormAttributesNERMApi. * @export * @interface FormAttributesNERMApiGetFormAttributeByUidRequest */ export interface FormAttributesNERMApiGetFormAttributeByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof FormAttributesNERMApiGetFormAttributeByUid */ readonly uid?: string } /** * Request parameters for updateFormAttributeById operation in FormAttributesNERMApi. * @export * @interface FormAttributesNERMApiUpdateFormAttributeByIdRequest */ export interface FormAttributesNERMApiUpdateFormAttributeByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof FormAttributesNERMApiUpdateFormAttributeById */ readonly id: string /** * * @type {CreateFormAttributeRequestNERM} * @memberof FormAttributesNERMApiUpdateFormAttributeById */ readonly createFormAttributeRequestNERM: CreateFormAttributeRequestNERM } /** * Request parameters for updateFormAttributeByUid operation in FormAttributesNERMApi. * @export * @interface FormAttributesNERMApiUpdateFormAttributeByUidRequest */ export interface FormAttributesNERMApiUpdateFormAttributeByUidRequest { /** * * @type {CreateFormAttributeRequestNERM} * @memberof FormAttributesNERMApiUpdateFormAttributeByUid */ readonly createFormAttributeRequestNERM: CreateFormAttributeRequestNERM /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof FormAttributesNERMApiUpdateFormAttributeByUid */ readonly uid?: string } /** * FormAttributesNERMApi - object-oriented interface * @export * @class FormAttributesNERMApi * @extends {BaseAPI} */ export class FormAttributesNERMApi extends BaseAPI { /** * This endpoint can create a form attribute * @summary Create a form attribute * @param {FormAttributesNERMApiCreateFormAttributeRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormAttributesNERMApi */ public createFormAttribute(requestParameters: FormAttributesNERMApiCreateFormAttributeRequest, axiosOptions?: RawAxiosRequestConfig) { return FormAttributesNERMApiFp(this.configuration).createFormAttribute(requestParameters.createFormAttributeRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete form attribute by id * @summary Delete form attribute * @param {FormAttributesNERMApiDeleteFormAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormAttributesNERMApi */ public deleteFormAttributeById(requestParameters: FormAttributesNERMApiDeleteFormAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return FormAttributesNERMApiFp(this.configuration).deleteFormAttributeById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete form attribute by UID * @summary Delete form attribute * @param {FormAttributesNERMApiDeleteFormAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormAttributesNERMApi */ public deleteFormAttributeByUid(requestParameters: FormAttributesNERMApiDeleteFormAttributeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return FormAttributesNERMApiFp(this.configuration).deleteFormAttributeByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Gets info for a specific form attribute by ID * @summary Get form attribute data * @param {FormAttributesNERMApiGetFormAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormAttributesNERMApi */ public getFormAttributeById(requestParameters: FormAttributesNERMApiGetFormAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return FormAttributesNERMApiFp(this.configuration).getFormAttributeById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get info for a specific form attribute by UID * @summary Get form attribute data * @param {FormAttributesNERMApiGetFormAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormAttributesNERMApi */ public getFormAttributeByUid(requestParameters: FormAttributesNERMApiGetFormAttributeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return FormAttributesNERMApiFp(this.configuration).getFormAttributeByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get defined form attribute in the system * @summary Get form attributes * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormAttributesNERMApi */ public getFormAttributes(axiosOptions?: RawAxiosRequestConfig) { return FormAttributesNERMApiFp(this.configuration).getFormAttributes(axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific form attribute by ID * @summary Update form attribute data * @param {FormAttributesNERMApiUpdateFormAttributeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormAttributesNERMApi */ public updateFormAttributeById(requestParameters: FormAttributesNERMApiUpdateFormAttributeByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return FormAttributesNERMApiFp(this.configuration).updateFormAttributeById(requestParameters.id, requestParameters.createFormAttributeRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific form attribute by UID * @summary Update form attribute data * @param {FormAttributesNERMApiUpdateFormAttributeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormAttributesNERMApi */ public updateFormAttributeByUid(requestParameters: FormAttributesNERMApiUpdateFormAttributeByUidRequest, axiosOptions?: RawAxiosRequestConfig) { return FormAttributesNERMApiFp(this.configuration).updateFormAttributeByUid(requestParameters.createFormAttributeRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * FormsNERMApi - axios parameter creator * @export */ export const FormsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This endpoint can create a form * @summary Create a form * @param {CreateFormRequestNERM} createFormRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createForm: async (createFormRequestNERM: CreateFormRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createFormRequestNERM' is not null or undefined assertParamExists('createForm', 'createFormRequestNERM', createFormRequestNERM) const localVarPath = `/forms`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createFormRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete form by id * @summary Delete form by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteFormById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteFormById', 'id', id) const localVarPath = `/forms/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete form by UID * @summary Delete form by UID * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteFormByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/forms/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific form * @summary Get form data by Id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getFormById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getFormById', 'id', id) const localVarPath = `/forms/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific form * @summary Get form data by UID * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getFormByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/forms/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get defined forms in the system * @summary Get forms * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getForms: async (axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/forms`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific form * @summary Update form data by id * @param {string} id ID of the object to retrieve, update, or delete * @param {UpdateFormByIdRequestNERM} updateFormByIdRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateFormById: async (id: string, updateFormByIdRequestNERM: UpdateFormByIdRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateFormById', 'id', id) // verify required parameter 'updateFormByIdRequestNERM' is not null or undefined assertParamExists('updateFormById', 'updateFormByIdRequestNERM', updateFormByIdRequestNERM) const localVarPath = `/forms/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateFormByIdRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific form * @summary Update form data by UID * @param {UpdateFormByIdRequestNERM} updateFormByIdRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateFormByUid: async (updateFormByIdRequestNERM: UpdateFormByIdRequestNERM, uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'updateFormByIdRequestNERM' is not null or undefined assertParamExists('updateFormByUid', 'updateFormByIdRequestNERM', updateFormByIdRequestNERM) const localVarPath = `/forms/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateFormByIdRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * FormsNERMApi - functional programming interface * @export */ export const FormsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = FormsNERMApiAxiosParamCreator(configuration) return { /** * This endpoint can create a form * @summary Create a form * @param {CreateFormRequestNERM} createFormRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createForm(createFormRequestNERM: CreateFormRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createForm(createFormRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsNERMApi.createForm']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete form by id * @summary Delete form by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteFormById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFormById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsNERMApi.deleteFormById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete form by UID * @summary Delete form by UID * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteFormByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFormByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsNERMApi.deleteFormByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific form * @summary Get form data by Id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getFormById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFormById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsNERMApi.getFormById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific form * @summary Get form data by UID * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getFormByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFormByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsNERMApi.getFormByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get defined forms in the system * @summary Get forms * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getForms(axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getForms(axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsNERMApi.getForms']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific form * @summary Update form data by id * @param {string} id ID of the object to retrieve, update, or delete * @param {UpdateFormByIdRequestNERM} updateFormByIdRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateFormById(id: string, updateFormByIdRequestNERM: UpdateFormByIdRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateFormById(id, updateFormByIdRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsNERMApi.updateFormById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific form * @summary Update form data by UID * @param {UpdateFormByIdRequestNERM} updateFormByIdRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateFormByUid(updateFormByIdRequestNERM: UpdateFormByIdRequestNERM, uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateFormByUid(updateFormByIdRequestNERM, uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsNERMApi.updateFormByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * FormsNERMApi - factory interface * @export */ export const FormsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = FormsNERMApiFp(configuration) return { /** * This endpoint can create a form * @summary Create a form * @param {FormsNERMApiCreateFormRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createForm(requestParameters: FormsNERMApiCreateFormRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createForm(requestParameters.createFormRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete form by id * @summary Delete form by id * @param {FormsNERMApiDeleteFormByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteFormById(requestParameters: FormsNERMApiDeleteFormByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteFormById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete form by UID * @summary Delete form by UID * @param {FormsNERMApiDeleteFormByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteFormByUid(requestParameters: FormsNERMApiDeleteFormByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteFormByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific form * @summary Get form data by Id * @param {FormsNERMApiGetFormByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getFormById(requestParameters: FormsNERMApiGetFormByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFormById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific form * @summary Get form data by UID * @param {FormsNERMApiGetFormByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getFormByUid(requestParameters: FormsNERMApiGetFormByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFormByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get defined forms in the system * @summary Get forms * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getForms(axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getForms(axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific form * @summary Update form data by id * @param {FormsNERMApiUpdateFormByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateFormById(requestParameters: FormsNERMApiUpdateFormByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateFormById(requestParameters.id, requestParameters.updateFormByIdRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific form * @summary Update form data by UID * @param {FormsNERMApiUpdateFormByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateFormByUid(requestParameters: FormsNERMApiUpdateFormByUidRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateFormByUid(requestParameters.updateFormByIdRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createForm operation in FormsNERMApi. * @export * @interface FormsNERMApiCreateFormRequest */ export interface FormsNERMApiCreateFormRequest { /** * * @type {CreateFormRequestNERM} * @memberof FormsNERMApiCreateForm */ readonly createFormRequestNERM: CreateFormRequestNERM } /** * Request parameters for deleteFormById operation in FormsNERMApi. * @export * @interface FormsNERMApiDeleteFormByIdRequest */ export interface FormsNERMApiDeleteFormByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof FormsNERMApiDeleteFormById */ readonly id: string } /** * Request parameters for deleteFormByUid operation in FormsNERMApi. * @export * @interface FormsNERMApiDeleteFormByUidRequest */ export interface FormsNERMApiDeleteFormByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof FormsNERMApiDeleteFormByUid */ readonly uid?: string } /** * Request parameters for getFormById operation in FormsNERMApi. * @export * @interface FormsNERMApiGetFormByIdRequest */ export interface FormsNERMApiGetFormByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof FormsNERMApiGetFormById */ readonly id: string } /** * Request parameters for getFormByUid operation in FormsNERMApi. * @export * @interface FormsNERMApiGetFormByUidRequest */ export interface FormsNERMApiGetFormByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof FormsNERMApiGetFormByUid */ readonly uid?: string } /** * Request parameters for updateFormById operation in FormsNERMApi. * @export * @interface FormsNERMApiUpdateFormByIdRequest */ export interface FormsNERMApiUpdateFormByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof FormsNERMApiUpdateFormById */ readonly id: string /** * * @type {UpdateFormByIdRequestNERM} * @memberof FormsNERMApiUpdateFormById */ readonly updateFormByIdRequestNERM: UpdateFormByIdRequestNERM } /** * Request parameters for updateFormByUid operation in FormsNERMApi. * @export * @interface FormsNERMApiUpdateFormByUidRequest */ export interface FormsNERMApiUpdateFormByUidRequest { /** * * @type {UpdateFormByIdRequestNERM} * @memberof FormsNERMApiUpdateFormByUid */ readonly updateFormByIdRequestNERM: UpdateFormByIdRequestNERM /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof FormsNERMApiUpdateFormByUid */ readonly uid?: string } /** * FormsNERMApi - object-oriented interface * @export * @class FormsNERMApi * @extends {BaseAPI} */ export class FormsNERMApi extends BaseAPI { /** * This endpoint can create a form * @summary Create a form * @param {FormsNERMApiCreateFormRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormsNERMApi */ public createForm(requestParameters: FormsNERMApiCreateFormRequest, axiosOptions?: RawAxiosRequestConfig) { return FormsNERMApiFp(this.configuration).createForm(requestParameters.createFormRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete form by id * @summary Delete form by id * @param {FormsNERMApiDeleteFormByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormsNERMApi */ public deleteFormById(requestParameters: FormsNERMApiDeleteFormByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return FormsNERMApiFp(this.configuration).deleteFormById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete form by UID * @summary Delete form by UID * @param {FormsNERMApiDeleteFormByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormsNERMApi */ public deleteFormByUid(requestParameters: FormsNERMApiDeleteFormByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return FormsNERMApiFp(this.configuration).deleteFormByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific form * @summary Get form data by Id * @param {FormsNERMApiGetFormByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormsNERMApi */ public getFormById(requestParameters: FormsNERMApiGetFormByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return FormsNERMApiFp(this.configuration).getFormById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific form * @summary Get form data by UID * @param {FormsNERMApiGetFormByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormsNERMApi */ public getFormByUid(requestParameters: FormsNERMApiGetFormByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return FormsNERMApiFp(this.configuration).getFormByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get defined forms in the system * @summary Get forms * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormsNERMApi */ public getForms(axiosOptions?: RawAxiosRequestConfig) { return FormsNERMApiFp(this.configuration).getForms(axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific form * @summary Update form data by id * @param {FormsNERMApiUpdateFormByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormsNERMApi */ public updateFormById(requestParameters: FormsNERMApiUpdateFormByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return FormsNERMApiFp(this.configuration).updateFormById(requestParameters.id, requestParameters.updateFormByIdRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific form * @summary Update form data by UID * @param {FormsNERMApiUpdateFormByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof FormsNERMApi */ public updateFormByUid(requestParameters: FormsNERMApiUpdateFormByUidRequest, axiosOptions?: RawAxiosRequestConfig) { return FormsNERMApiFp(this.configuration).updateFormByUid(requestParameters.updateFormByIdRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * IdentityProofingResultsNERMApi - axios parameter creator * @export */ export const IdentityProofingResultsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Retrieves identity proofing result data in bulk from Lifecycle * @summary Get identity proofing result data * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [profileId] Profile ID to filter by * @param {string} [workflowSessionId] Workflow Session ID to filter by * @param {GetIdentityProofingResultsResultNerm} [result] ID Proofing Result to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getIdentityProofingResults: async (limit?: number, offset?: number, order?: string, profileId?: string, workflowSessionId?: string, result?: GetIdentityProofingResultsResultNerm, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/identity_proofing_results`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (profileId !== undefined) { localVarQueryParameter['profile_id'] = profileId; } if (workflowSessionId !== undefined) { localVarQueryParameter['workflow_session_id'] = workflowSessionId; } if (result !== undefined) { localVarQueryParameter['result'] = result; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * IdentityProofingResultsNERMApi - functional programming interface * @export */ export const IdentityProofingResultsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = IdentityProofingResultsNERMApiAxiosParamCreator(configuration) return { /** * Retrieves identity proofing result data in bulk from Lifecycle * @summary Get identity proofing result data * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [profileId] Profile ID to filter by * @param {string} [workflowSessionId] Workflow Session ID to filter by * @param {GetIdentityProofingResultsResultNerm} [result] ID Proofing Result to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getIdentityProofingResults(limit?: number, offset?: number, order?: string, profileId?: string, workflowSessionId?: string, result?: GetIdentityProofingResultsResultNerm, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getIdentityProofingResults(limit, offset, order, profileId, workflowSessionId, result, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IdentityProofingResultsNERMApi.getIdentityProofingResults']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * IdentityProofingResultsNERMApi - factory interface * @export */ export const IdentityProofingResultsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = IdentityProofingResultsNERMApiFp(configuration) return { /** * Retrieves identity proofing result data in bulk from Lifecycle * @summary Get identity proofing result data * @param {IdentityProofingResultsNERMApiGetIdentityProofingResultsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getIdentityProofingResults(requestParameters: IdentityProofingResultsNERMApiGetIdentityProofingResultsRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getIdentityProofingResults(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.profileId, requestParameters.workflowSessionId, requestParameters.result, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for getIdentityProofingResults operation in IdentityProofingResultsNERMApi. * @export * @interface IdentityProofingResultsNERMApiGetIdentityProofingResultsRequest */ export interface IdentityProofingResultsNERMApiGetIdentityProofingResultsRequest { /** * The maximum number of items to return. * @type {number} * @memberof IdentityProofingResultsNERMApiGetIdentityProofingResults */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof IdentityProofingResultsNERMApiGetIdentityProofingResults */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof IdentityProofingResultsNERMApiGetIdentityProofingResults */ readonly order?: string /** * Profile ID to filter by * @type {string} * @memberof IdentityProofingResultsNERMApiGetIdentityProofingResults */ readonly profileId?: string /** * Workflow Session ID to filter by * @type {string} * @memberof IdentityProofingResultsNERMApiGetIdentityProofingResults */ readonly workflowSessionId?: string /** * ID Proofing Result to filter by * @type {'pass' | 'fail'} * @memberof IdentityProofingResultsNERMApiGetIdentityProofingResults */ readonly result?: GetIdentityProofingResultsResultNerm /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof IdentityProofingResultsNERMApiGetIdentityProofingResults */ readonly metadata?: boolean } /** * IdentityProofingResultsNERMApi - object-oriented interface * @export * @class IdentityProofingResultsNERMApi * @extends {BaseAPI} */ export class IdentityProofingResultsNERMApi extends BaseAPI { /** * Retrieves identity proofing result data in bulk from Lifecycle * @summary Get identity proofing result data * @param {IdentityProofingResultsNERMApiGetIdentityProofingResultsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IdentityProofingResultsNERMApi */ public getIdentityProofingResults(requestParameters: IdentityProofingResultsNERMApiGetIdentityProofingResultsRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return IdentityProofingResultsNERMApiFp(this.configuration).getIdentityProofingResults(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.profileId, requestParameters.workflowSessionId, requestParameters.result, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetIdentityProofingResultsResultNerm = { Pass: 'pass', Fail: 'fail' } as const; export type GetIdentityProofingResultsResultNerm = typeof GetIdentityProofingResultsResultNerm[keyof typeof GetIdentityProofingResultsResultNerm]; /** * IscAccountsNERMApi - axios parameter creator * @export */ export const IscAccountsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Retrieve schema-mapped profiles collection. It returns a collection of stored profiles, optionally using schema-mapped field names if requested. * @summary Get Profiles * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {boolean} [useSchema] The use_schema parameter returns schema-mapped field names in the Profiles API response when set to true. * @param {boolean} [overrideSyncToggle] The override_sync_toggle parameter returns all non-employee and assignment profiles regardless of the sync status when set to true. * @param {GetSchemaMappedProfilesCollectionCategoryNerm} [category] Filters profiles by profile type category * @param {GetSchemaMappedProfilesCollectionStatusNerm} [status] The status of the profile. It can be multiple values with comma separated. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getSchemaMappedProfilesCollection: async (limit?: number, offset?: number, useSchema?: boolean, overrideSyncToggle?: boolean, category?: GetSchemaMappedProfilesCollectionCategoryNerm, status?: GetSchemaMappedProfilesCollectionStatusNerm, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/isc/accounts`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (useSchema !== undefined) { localVarQueryParameter['use_schema'] = useSchema; } if (overrideSyncToggle !== undefined) { localVarQueryParameter['override_sync_toggle'] = overrideSyncToggle; } if (category !== undefined) { localVarQueryParameter['category'] = category; } if (status !== undefined) { localVarQueryParameter['status'] = status; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * It returns a single stored profile, optionally with schema-mapped field names. * @summary Get Profile * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getSingleSchemaMappedProfile: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getSingleSchemaMappedProfile', 'id', id) const localVarPath = `/isc/accounts/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Updates a profile only through ISC schema-mapped attributes, performs a reverse mapping to match the NERM attributes to update. * @summary Update Profile * @param {string} id ID of the object to retrieve, update, or delete * @param {UpdateProfileRequestNERM} [updateProfileRequestNERM] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateProfile: async (id: string, updateProfileRequestNERM?: UpdateProfileRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateProfile', 'id', id) const localVarPath = `/isc/accounts/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateProfileRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * IscAccountsNERMApi - functional programming interface * @export */ export const IscAccountsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = IscAccountsNERMApiAxiosParamCreator(configuration) return { /** * Retrieve schema-mapped profiles collection. It returns a collection of stored profiles, optionally using schema-mapped field names if requested. * @summary Get Profiles * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {boolean} [useSchema] The use_schema parameter returns schema-mapped field names in the Profiles API response when set to true. * @param {boolean} [overrideSyncToggle] The override_sync_toggle parameter returns all non-employee and assignment profiles regardless of the sync status when set to true. * @param {GetSchemaMappedProfilesCollectionCategoryNerm} [category] Filters profiles by profile type category * @param {GetSchemaMappedProfilesCollectionStatusNerm} [status] The status of the profile. It can be multiple values with comma separated. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getSchemaMappedProfilesCollection(limit?: number, offset?: number, useSchema?: boolean, overrideSyncToggle?: boolean, category?: GetSchemaMappedProfilesCollectionCategoryNerm, status?: GetSchemaMappedProfilesCollectionStatusNerm, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSchemaMappedProfilesCollection(limit, offset, useSchema, overrideSyncToggle, category, status, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IscAccountsNERMApi.getSchemaMappedProfilesCollection']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * It returns a single stored profile, optionally with schema-mapped field names. * @summary Get Profile * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getSingleSchemaMappedProfile(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSingleSchemaMappedProfile(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IscAccountsNERMApi.getSingleSchemaMappedProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates a profile only through ISC schema-mapped attributes, performs a reverse mapping to match the NERM attributes to update. * @summary Update Profile * @param {string} id ID of the object to retrieve, update, or delete * @param {UpdateProfileRequestNERM} [updateProfileRequestNERM] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateProfile(id: string, updateProfileRequestNERM?: UpdateProfileRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateProfile(id, updateProfileRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['IscAccountsNERMApi.updateProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * IscAccountsNERMApi - factory interface * @export */ export const IscAccountsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = IscAccountsNERMApiFp(configuration) return { /** * Retrieve schema-mapped profiles collection. It returns a collection of stored profiles, optionally using schema-mapped field names if requested. * @summary Get Profiles * @param {IscAccountsNERMApiGetSchemaMappedProfilesCollectionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getSchemaMappedProfilesCollection(requestParameters: IscAccountsNERMApiGetSchemaMappedProfilesCollectionRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSchemaMappedProfilesCollection(requestParameters.limit, requestParameters.offset, requestParameters.useSchema, requestParameters.overrideSyncToggle, requestParameters.category, requestParameters.status, axiosOptions).then((request) => request(axios, basePath)); }, /** * It returns a single stored profile, optionally with schema-mapped field names. * @summary Get Profile * @param {IscAccountsNERMApiGetSingleSchemaMappedProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getSingleSchemaMappedProfile(requestParameters: IscAccountsNERMApiGetSingleSchemaMappedProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSingleSchemaMappedProfile(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Updates a profile only through ISC schema-mapped attributes, performs a reverse mapping to match the NERM attributes to update. * @summary Update Profile * @param {IscAccountsNERMApiUpdateProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateProfile(requestParameters: IscAccountsNERMApiUpdateProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateProfile(requestParameters.id, requestParameters.updateProfileRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for getSchemaMappedProfilesCollection operation in IscAccountsNERMApi. * @export * @interface IscAccountsNERMApiGetSchemaMappedProfilesCollectionRequest */ export interface IscAccountsNERMApiGetSchemaMappedProfilesCollectionRequest { /** * The maximum number of items to return. * @type {number} * @memberof IscAccountsNERMApiGetSchemaMappedProfilesCollection */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof IscAccountsNERMApiGetSchemaMappedProfilesCollection */ readonly offset?: number /** * The use_schema parameter returns schema-mapped field names in the Profiles API response when set to true. * @type {boolean} * @memberof IscAccountsNERMApiGetSchemaMappedProfilesCollection */ readonly useSchema?: boolean /** * The override_sync_toggle parameter returns all non-employee and assignment profiles regardless of the sync status when set to true. * @type {boolean} * @memberof IscAccountsNERMApiGetSchemaMappedProfilesCollection */ readonly overrideSyncToggle?: boolean /** * Filters profiles by profile type category * @type {'non-employee' | 'assignment'} * @memberof IscAccountsNERMApiGetSchemaMappedProfilesCollection */ readonly category?: GetSchemaMappedProfilesCollectionCategoryNerm /** * The status of the profile. It can be multiple values with comma separated. * @type {'active' | 'inactive' | 'on leave' | 'terminated'} * @memberof IscAccountsNERMApiGetSchemaMappedProfilesCollection */ readonly status?: GetSchemaMappedProfilesCollectionStatusNerm } /** * Request parameters for getSingleSchemaMappedProfile operation in IscAccountsNERMApi. * @export * @interface IscAccountsNERMApiGetSingleSchemaMappedProfileRequest */ export interface IscAccountsNERMApiGetSingleSchemaMappedProfileRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof IscAccountsNERMApiGetSingleSchemaMappedProfile */ readonly id: string } /** * Request parameters for updateProfile operation in IscAccountsNERMApi. * @export * @interface IscAccountsNERMApiUpdateProfileRequest */ export interface IscAccountsNERMApiUpdateProfileRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof IscAccountsNERMApiUpdateProfile */ readonly id: string /** * * @type {UpdateProfileRequestNERM} * @memberof IscAccountsNERMApiUpdateProfile */ readonly updateProfileRequestNERM?: UpdateProfileRequestNERM } /** * IscAccountsNERMApi - object-oriented interface * @export * @class IscAccountsNERMApi * @extends {BaseAPI} */ export class IscAccountsNERMApi extends BaseAPI { /** * Retrieve schema-mapped profiles collection. It returns a collection of stored profiles, optionally using schema-mapped field names if requested. * @summary Get Profiles * @param {IscAccountsNERMApiGetSchemaMappedProfilesCollectionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IscAccountsNERMApi */ public getSchemaMappedProfilesCollection(requestParameters: IscAccountsNERMApiGetSchemaMappedProfilesCollectionRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return IscAccountsNERMApiFp(this.configuration).getSchemaMappedProfilesCollection(requestParameters.limit, requestParameters.offset, requestParameters.useSchema, requestParameters.overrideSyncToggle, requestParameters.category, requestParameters.status, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * It returns a single stored profile, optionally with schema-mapped field names. * @summary Get Profile * @param {IscAccountsNERMApiGetSingleSchemaMappedProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IscAccountsNERMApi */ public getSingleSchemaMappedProfile(requestParameters: IscAccountsNERMApiGetSingleSchemaMappedProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return IscAccountsNERMApiFp(this.configuration).getSingleSchemaMappedProfile(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Updates a profile only through ISC schema-mapped attributes, performs a reverse mapping to match the NERM attributes to update. * @summary Update Profile * @param {IscAccountsNERMApiUpdateProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof IscAccountsNERMApi */ public updateProfile(requestParameters: IscAccountsNERMApiUpdateProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return IscAccountsNERMApiFp(this.configuration).updateProfile(requestParameters.id, requestParameters.updateProfileRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetSchemaMappedProfilesCollectionCategoryNerm = { NonEmployee: 'non-employee', Assignment: 'assignment' } as const; export type GetSchemaMappedProfilesCollectionCategoryNerm = typeof GetSchemaMappedProfilesCollectionCategoryNerm[keyof typeof GetSchemaMappedProfilesCollectionCategoryNerm]; /** * @export */ export const GetSchemaMappedProfilesCollectionStatusNerm = { Active: 'active', Inactive: 'inactive', OnLeave: 'on leave', Terminated: 'terminated' } as const; export type GetSchemaMappedProfilesCollectionStatusNerm = typeof GetSchemaMappedProfilesCollectionStatusNerm[keyof typeof GetSchemaMappedProfilesCollectionStatusNerm]; /** * JobStatusNERMApi - axios parameter creator * @export */ export const JobStatusNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Retrieve the status of a bulk job * @summary Get bulk job status * @param {string} jobId The id of the job returned from a POST or PATCH endpoint that resulted in a job being created * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getJobStatus: async (jobId: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'jobId' is not null or undefined assertParamExists('getJobStatus', 'jobId', jobId) const localVarPath = `/job_status`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (jobId !== undefined) { localVarQueryParameter['job_id'] = jobId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * JobStatusNERMApi - functional programming interface * @export */ export const JobStatusNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = JobStatusNERMApiAxiosParamCreator(configuration) return { /** * Retrieve the status of a bulk job * @summary Get bulk job status * @param {string} jobId The id of the job returned from a POST or PATCH endpoint that resulted in a job being created * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getJobStatus(jobId: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getJobStatus(jobId, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['JobStatusNERMApi.getJobStatus']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * JobStatusNERMApi - factory interface * @export */ export const JobStatusNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = JobStatusNERMApiFp(configuration) return { /** * Retrieve the status of a bulk job * @summary Get bulk job status * @param {JobStatusNERMApiGetJobStatusRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getJobStatus(requestParameters: JobStatusNERMApiGetJobStatusRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getJobStatus(requestParameters.jobId, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for getJobStatus operation in JobStatusNERMApi. * @export * @interface JobStatusNERMApiGetJobStatusRequest */ export interface JobStatusNERMApiGetJobStatusRequest { /** * The id of the job returned from a POST or PATCH endpoint that resulted in a job being created * @type {string} * @memberof JobStatusNERMApiGetJobStatus */ readonly jobId: string } /** * JobStatusNERMApi - object-oriented interface * @export * @class JobStatusNERMApi * @extends {BaseAPI} */ export class JobStatusNERMApi extends BaseAPI { /** * Retrieve the status of a bulk job * @summary Get bulk job status * @param {JobStatusNERMApiGetJobStatusRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof JobStatusNERMApi */ public getJobStatus(requestParameters: JobStatusNERMApiGetJobStatusRequest, axiosOptions?: RawAxiosRequestConfig) { return JobStatusNERMApiFp(this.configuration).getJobStatus(requestParameters.jobId, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * LanguagesNERMApi - axios parameter creator * @export */ export const LanguagesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Update a language by locale * @summary Update a language by locale * @param {string} languageLocale Language locale of the object * @param {PatchLanguageRequestNERM} patchLanguageRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchLanguage: async (languageLocale: string, patchLanguageRequestNERM: PatchLanguageRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'languageLocale' is not null or undefined assertParamExists('patchLanguage', 'languageLocale', languageLocale) // verify required parameter 'patchLanguageRequestNERM' is not null or undefined assertParamExists('patchLanguage', 'patchLanguageRequestNERM', patchLanguageRequestNERM) const localVarPath = `/languages/{locale}` .replace(`{${"language_locale"}}`, encodeURIComponent(String(languageLocale))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(patchLanguageRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * LanguagesNERMApi - functional programming interface * @export */ export const LanguagesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = LanguagesNERMApiAxiosParamCreator(configuration) return { /** * Update a language by locale * @summary Update a language by locale * @param {string} languageLocale Language locale of the object * @param {PatchLanguageRequestNERM} patchLanguageRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchLanguage(languageLocale: string, patchLanguageRequestNERM: PatchLanguageRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchLanguage(languageLocale, patchLanguageRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LanguagesNERMApi.patchLanguage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * LanguagesNERMApi - factory interface * @export */ export const LanguagesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = LanguagesNERMApiFp(configuration) return { /** * Update a language by locale * @summary Update a language by locale * @param {LanguagesNERMApiPatchLanguageRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchLanguage(requestParameters: LanguagesNERMApiPatchLanguageRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchLanguage(requestParameters.languageLocale, requestParameters.patchLanguageRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for patchLanguage operation in LanguagesNERMApi. * @export * @interface LanguagesNERMApiPatchLanguageRequest */ export interface LanguagesNERMApiPatchLanguageRequest { /** * Language locale of the object * @type {string} * @memberof LanguagesNERMApiPatchLanguage */ readonly languageLocale: string /** * * @type {PatchLanguageRequestNERM} * @memberof LanguagesNERMApiPatchLanguage */ readonly patchLanguageRequestNERM: PatchLanguageRequestNERM } /** * LanguagesNERMApi - object-oriented interface * @export * @class LanguagesNERMApi * @extends {BaseAPI} */ export class LanguagesNERMApi extends BaseAPI { /** * Update a language by locale * @summary Update a language by locale * @param {LanguagesNERMApiPatchLanguageRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof LanguagesNERMApi */ public patchLanguage(requestParameters: LanguagesNERMApiPatchLanguageRequest, axiosOptions?: RawAxiosRequestConfig) { return LanguagesNERMApiFp(this.configuration).patchLanguage(requestParameters.languageLocale, requestParameters.patchLanguageRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * PageContentTranslationsNERMApi - axios parameter creator * @export */ export const PageContentTranslationsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create a page content translation record. * @summary Create page content translation * @param {CreatePageContentTranslationRequestNERM} createPageContentTranslationRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPageContentTranslation: async (createPageContentTranslationRequestNERM: CreatePageContentTranslationRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createPageContentTranslationRequestNERM' is not null or undefined assertParamExists('createPageContentTranslation', 'createPageContentTranslationRequestNERM', createPageContentTranslationRequestNERM) const localVarPath = `/page_content_translations`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createPageContentTranslationRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete page content translation by id * @summary Delete page content translation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageContentTranslationById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deletePageContentTranslationById', 'id', id) const localVarPath = `/page_content_translations/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete page content translation by UID (user-specified identifier) * @summary Delete page content translation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageContentTranslationByUid: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deletePageContentTranslationByUid', 'id', id) const localVarPath = `/page_content_translations/{uid}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint can retrieve page content translation data. * @summary Get page contents translation * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContentTranslation: async (axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/page_content_translations`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific page content translation record by Id * @summary Find page content translation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContentTranslationById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getPageContentTranslationById', 'id', id) const localVarPath = `/page_content_translations/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific page content translation record by UID (user-specified identifier) * @summary Find page content translation * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContentTranslationByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/page_content_translations/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific page content translation record by id * @summary Update page content translation * @param {string} id ID of the object to retrieve, update, or delete * @param {UpdatePageContentTranslationByIdRequestNERM} updatePageContentTranslationByIdRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageContentTranslationById: async (id: string, updatePageContentTranslationByIdRequestNERM: UpdatePageContentTranslationByIdRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updatePageContentTranslationById', 'id', id) // verify required parameter 'updatePageContentTranslationByIdRequestNERM' is not null or undefined assertParamExists('updatePageContentTranslationById', 'updatePageContentTranslationByIdRequestNERM', updatePageContentTranslationByIdRequestNERM) const localVarPath = `/page_content_translations/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updatePageContentTranslationByIdRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific page content translation record by UID (user-specified identifier) * @summary Update page content translation * @param {UpdatePageContentTranslationByIdRequestNERM} updatePageContentTranslationByIdRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageContentTranslationByUid: async (updatePageContentTranslationByIdRequestNERM: UpdatePageContentTranslationByIdRequestNERM, uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'updatePageContentTranslationByIdRequestNERM' is not null or undefined assertParamExists('updatePageContentTranslationByUid', 'updatePageContentTranslationByIdRequestNERM', updatePageContentTranslationByIdRequestNERM) const localVarPath = `/page_content_translations/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updatePageContentTranslationByIdRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * PageContentTranslationsNERMApi - functional programming interface * @export */ export const PageContentTranslationsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PageContentTranslationsNERMApiAxiosParamCreator(configuration) return { /** * Create a page content translation record. * @summary Create page content translation * @param {CreatePageContentTranslationRequestNERM} createPageContentTranslationRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createPageContentTranslation(createPageContentTranslationRequestNERM: CreatePageContentTranslationRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPageContentTranslation(createPageContentTranslationRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentTranslationsNERMApi.createPageContentTranslation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete page content translation by id * @summary Delete page content translation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deletePageContentTranslationById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deletePageContentTranslationById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentTranslationsNERMApi.deletePageContentTranslationById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete page content translation by UID (user-specified identifier) * @summary Delete page content translation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deletePageContentTranslationByUid(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deletePageContentTranslationByUid(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentTranslationsNERMApi.deletePageContentTranslationByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint can retrieve page content translation data. * @summary Get page contents translation * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getPageContentTranslation(axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPageContentTranslation(axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentTranslationsNERMApi.getPageContentTranslation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific page content translation record by Id * @summary Find page content translation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getPageContentTranslationById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPageContentTranslationById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentTranslationsNERMApi.getPageContentTranslationById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific page content translation record by UID (user-specified identifier) * @summary Find page content translation * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getPageContentTranslationByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPageContentTranslationByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentTranslationsNERMApi.getPageContentTranslationByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific page content translation record by id * @summary Update page content translation * @param {string} id ID of the object to retrieve, update, or delete * @param {UpdatePageContentTranslationByIdRequestNERM} updatePageContentTranslationByIdRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updatePageContentTranslationById(id: string, updatePageContentTranslationByIdRequestNERM: UpdatePageContentTranslationByIdRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updatePageContentTranslationById(id, updatePageContentTranslationByIdRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentTranslationsNERMApi.updatePageContentTranslationById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific page content translation record by UID (user-specified identifier) * @summary Update page content translation * @param {UpdatePageContentTranslationByIdRequestNERM} updatePageContentTranslationByIdRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updatePageContentTranslationByUid(updatePageContentTranslationByIdRequestNERM: UpdatePageContentTranslationByIdRequestNERM, uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updatePageContentTranslationByUid(updatePageContentTranslationByIdRequestNERM, uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentTranslationsNERMApi.updatePageContentTranslationByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * PageContentTranslationsNERMApi - factory interface * @export */ export const PageContentTranslationsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = PageContentTranslationsNERMApiFp(configuration) return { /** * Create a page content translation record. * @summary Create page content translation * @param {PageContentTranslationsNERMApiCreatePageContentTranslationRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPageContentTranslation(requestParameters: PageContentTranslationsNERMApiCreatePageContentTranslationRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createPageContentTranslation(requestParameters.createPageContentTranslationRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete page content translation by id * @summary Delete page content translation * @param {PageContentTranslationsNERMApiDeletePageContentTranslationByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageContentTranslationById(requestParameters: PageContentTranslationsNERMApiDeletePageContentTranslationByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePageContentTranslationById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete page content translation by UID (user-specified identifier) * @summary Delete page content translation * @param {PageContentTranslationsNERMApiDeletePageContentTranslationByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageContentTranslationByUid(requestParameters: PageContentTranslationsNERMApiDeletePageContentTranslationByUidRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePageContentTranslationByUid(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint can retrieve page content translation data. * @summary Get page contents translation * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContentTranslation(axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPageContentTranslation(axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific page content translation record by Id * @summary Find page content translation * @param {PageContentTranslationsNERMApiGetPageContentTranslationByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContentTranslationById(requestParameters: PageContentTranslationsNERMApiGetPageContentTranslationByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPageContentTranslationById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific page content translation record by UID (user-specified identifier) * @summary Find page content translation * @param {PageContentTranslationsNERMApiGetPageContentTranslationByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContentTranslationByUid(requestParameters: PageContentTranslationsNERMApiGetPageContentTranslationByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPageContentTranslationByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific page content translation record by id * @summary Update page content translation * @param {PageContentTranslationsNERMApiUpdatePageContentTranslationByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageContentTranslationById(requestParameters: PageContentTranslationsNERMApiUpdatePageContentTranslationByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePageContentTranslationById(requestParameters.id, requestParameters.updatePageContentTranslationByIdRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific page content translation record by UID (user-specified identifier) * @summary Update page content translation * @param {PageContentTranslationsNERMApiUpdatePageContentTranslationByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageContentTranslationByUid(requestParameters: PageContentTranslationsNERMApiUpdatePageContentTranslationByUidRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePageContentTranslationByUid(requestParameters.updatePageContentTranslationByIdRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createPageContentTranslation operation in PageContentTranslationsNERMApi. * @export * @interface PageContentTranslationsNERMApiCreatePageContentTranslationRequest */ export interface PageContentTranslationsNERMApiCreatePageContentTranslationRequest { /** * * @type {CreatePageContentTranslationRequestNERM} * @memberof PageContentTranslationsNERMApiCreatePageContentTranslation */ readonly createPageContentTranslationRequestNERM: CreatePageContentTranslationRequestNERM } /** * Request parameters for deletePageContentTranslationById operation in PageContentTranslationsNERMApi. * @export * @interface PageContentTranslationsNERMApiDeletePageContentTranslationByIdRequest */ export interface PageContentTranslationsNERMApiDeletePageContentTranslationByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageContentTranslationsNERMApiDeletePageContentTranslationById */ readonly id: string } /** * Request parameters for deletePageContentTranslationByUid operation in PageContentTranslationsNERMApi. * @export * @interface PageContentTranslationsNERMApiDeletePageContentTranslationByUidRequest */ export interface PageContentTranslationsNERMApiDeletePageContentTranslationByUidRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageContentTranslationsNERMApiDeletePageContentTranslationByUid */ readonly id: string } /** * Request parameters for getPageContentTranslationById operation in PageContentTranslationsNERMApi. * @export * @interface PageContentTranslationsNERMApiGetPageContentTranslationByIdRequest */ export interface PageContentTranslationsNERMApiGetPageContentTranslationByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageContentTranslationsNERMApiGetPageContentTranslationById */ readonly id: string } /** * Request parameters for getPageContentTranslationByUid operation in PageContentTranslationsNERMApi. * @export * @interface PageContentTranslationsNERMApiGetPageContentTranslationByUidRequest */ export interface PageContentTranslationsNERMApiGetPageContentTranslationByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof PageContentTranslationsNERMApiGetPageContentTranslationByUid */ readonly uid?: string } /** * Request parameters for updatePageContentTranslationById operation in PageContentTranslationsNERMApi. * @export * @interface PageContentTranslationsNERMApiUpdatePageContentTranslationByIdRequest */ export interface PageContentTranslationsNERMApiUpdatePageContentTranslationByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageContentTranslationsNERMApiUpdatePageContentTranslationById */ readonly id: string /** * * @type {UpdatePageContentTranslationByIdRequestNERM} * @memberof PageContentTranslationsNERMApiUpdatePageContentTranslationById */ readonly updatePageContentTranslationByIdRequestNERM: UpdatePageContentTranslationByIdRequestNERM } /** * Request parameters for updatePageContentTranslationByUid operation in PageContentTranslationsNERMApi. * @export * @interface PageContentTranslationsNERMApiUpdatePageContentTranslationByUidRequest */ export interface PageContentTranslationsNERMApiUpdatePageContentTranslationByUidRequest { /** * * @type {UpdatePageContentTranslationByIdRequestNERM} * @memberof PageContentTranslationsNERMApiUpdatePageContentTranslationByUid */ readonly updatePageContentTranslationByIdRequestNERM: UpdatePageContentTranslationByIdRequestNERM /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof PageContentTranslationsNERMApiUpdatePageContentTranslationByUid */ readonly uid?: string } /** * PageContentTranslationsNERMApi - object-oriented interface * @export * @class PageContentTranslationsNERMApi * @extends {BaseAPI} */ export class PageContentTranslationsNERMApi extends BaseAPI { /** * Create a page content translation record. * @summary Create page content translation * @param {PageContentTranslationsNERMApiCreatePageContentTranslationRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentTranslationsNERMApi */ public createPageContentTranslation(requestParameters: PageContentTranslationsNERMApiCreatePageContentTranslationRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentTranslationsNERMApiFp(this.configuration).createPageContentTranslation(requestParameters.createPageContentTranslationRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete page content translation by id * @summary Delete page content translation * @param {PageContentTranslationsNERMApiDeletePageContentTranslationByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentTranslationsNERMApi */ public deletePageContentTranslationById(requestParameters: PageContentTranslationsNERMApiDeletePageContentTranslationByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentTranslationsNERMApiFp(this.configuration).deletePageContentTranslationById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete page content translation by UID (user-specified identifier) * @summary Delete page content translation * @param {PageContentTranslationsNERMApiDeletePageContentTranslationByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentTranslationsNERMApi */ public deletePageContentTranslationByUid(requestParameters: PageContentTranslationsNERMApiDeletePageContentTranslationByUidRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentTranslationsNERMApiFp(this.configuration).deletePageContentTranslationByUid(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint can retrieve page content translation data. * @summary Get page contents translation * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentTranslationsNERMApi */ public getPageContentTranslation(axiosOptions?: RawAxiosRequestConfig) { return PageContentTranslationsNERMApiFp(this.configuration).getPageContentTranslation(axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific page content translation record by Id * @summary Find page content translation * @param {PageContentTranslationsNERMApiGetPageContentTranslationByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentTranslationsNERMApi */ public getPageContentTranslationById(requestParameters: PageContentTranslationsNERMApiGetPageContentTranslationByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentTranslationsNERMApiFp(this.configuration).getPageContentTranslationById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific page content translation record by UID (user-specified identifier) * @summary Find page content translation * @param {PageContentTranslationsNERMApiGetPageContentTranslationByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentTranslationsNERMApi */ public getPageContentTranslationByUid(requestParameters: PageContentTranslationsNERMApiGetPageContentTranslationByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return PageContentTranslationsNERMApiFp(this.configuration).getPageContentTranslationByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific page content translation record by id * @summary Update page content translation * @param {PageContentTranslationsNERMApiUpdatePageContentTranslationByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentTranslationsNERMApi */ public updatePageContentTranslationById(requestParameters: PageContentTranslationsNERMApiUpdatePageContentTranslationByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentTranslationsNERMApiFp(this.configuration).updatePageContentTranslationById(requestParameters.id, requestParameters.updatePageContentTranslationByIdRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific page content translation record by UID (user-specified identifier) * @summary Update page content translation * @param {PageContentTranslationsNERMApiUpdatePageContentTranslationByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentTranslationsNERMApi */ public updatePageContentTranslationByUid(requestParameters: PageContentTranslationsNERMApiUpdatePageContentTranslationByUidRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentTranslationsNERMApiFp(this.configuration).updatePageContentTranslationByUid(requestParameters.updatePageContentTranslationByIdRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * PageContentsNERMApi - axios parameter creator * @export */ export const PageContentsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This endpoint can create page content * @summary Create a page content entry * @param {CreatePageContentRequestNERM} createPageContentRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPageContent: async (createPageContentRequestNERM: CreatePageContentRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createPageContentRequestNERM' is not null or undefined assertParamExists('createPageContent', 'createPageContentRequestNERM', createPageContentRequestNERM) const localVarPath = `/page_contents`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createPageContentRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete page content by id * @summary Delete page content record * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageContentById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deletePageContentById', 'id', id) const localVarPath = `/page_contents/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete page content by by UID (user-specified identifier) * @summary Delete page content record * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageContentByUid: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deletePageContentByUid', 'id', id) const localVarPath = `/page_contents/{uid}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific page content record * @summary Find page content record * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContentById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getPageContentById', 'id', id) const localVarPath = `/page_contents/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific page content record by UID (user-specified identifier) * @summary Find a page content record * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContentByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/page_contents/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint can retrieve page content data. * @summary Get page contents data * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContents: async (axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/page_contents`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific page content record by id * @summary Update page content record * @param {string} id ID of the object to retrieve, update, or delete * @param {CreatePageContentRequestNERM} createPageContentRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageContentById: async (id: string, createPageContentRequestNERM: CreatePageContentRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updatePageContentById', 'id', id) // verify required parameter 'createPageContentRequestNERM' is not null or undefined assertParamExists('updatePageContentById', 'createPageContentRequestNERM', createPageContentRequestNERM) const localVarPath = `/page_contents/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createPageContentRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific page content record by UID (user-specified identifier) * @summary Update page content record * @param {CreatePageContentRequestNERM} createPageContentRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageContentByUid: async (createPageContentRequestNERM: CreatePageContentRequestNERM, uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createPageContentRequestNERM' is not null or undefined assertParamExists('updatePageContentByUid', 'createPageContentRequestNERM', createPageContentRequestNERM) const localVarPath = `/page_contents/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createPageContentRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * PageContentsNERMApi - functional programming interface * @export */ export const PageContentsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PageContentsNERMApiAxiosParamCreator(configuration) return { /** * This endpoint can create page content * @summary Create a page content entry * @param {CreatePageContentRequestNERM} createPageContentRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createPageContent(createPageContentRequestNERM: CreatePageContentRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPageContent(createPageContentRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentsNERMApi.createPageContent']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete page content by id * @summary Delete page content record * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deletePageContentById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deletePageContentById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentsNERMApi.deletePageContentById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete page content by by UID (user-specified identifier) * @summary Delete page content record * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deletePageContentByUid(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deletePageContentByUid(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentsNERMApi.deletePageContentByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific page content record * @summary Find page content record * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getPageContentById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPageContentById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentsNERMApi.getPageContentById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific page content record by UID (user-specified identifier) * @summary Find a page content record * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getPageContentByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPageContentByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentsNERMApi.getPageContentByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint can retrieve page content data. * @summary Get page contents data * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getPageContents(axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPageContents(axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentsNERMApi.getPageContents']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific page content record by id * @summary Update page content record * @param {string} id ID of the object to retrieve, update, or delete * @param {CreatePageContentRequestNERM} createPageContentRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updatePageContentById(id: string, createPageContentRequestNERM: CreatePageContentRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updatePageContentById(id, createPageContentRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentsNERMApi.updatePageContentById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific page content record by UID (user-specified identifier) * @summary Update page content record * @param {CreatePageContentRequestNERM} createPageContentRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updatePageContentByUid(createPageContentRequestNERM: CreatePageContentRequestNERM, uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updatePageContentByUid(createPageContentRequestNERM, uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageContentsNERMApi.updatePageContentByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * PageContentsNERMApi - factory interface * @export */ export const PageContentsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = PageContentsNERMApiFp(configuration) return { /** * This endpoint can create page content * @summary Create a page content entry * @param {PageContentsNERMApiCreatePageContentRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPageContent(requestParameters: PageContentsNERMApiCreatePageContentRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createPageContent(requestParameters.createPageContentRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete page content by id * @summary Delete page content record * @param {PageContentsNERMApiDeletePageContentByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageContentById(requestParameters: PageContentsNERMApiDeletePageContentByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePageContentById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete page content by by UID (user-specified identifier) * @summary Delete page content record * @param {PageContentsNERMApiDeletePageContentByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageContentByUid(requestParameters: PageContentsNERMApiDeletePageContentByUidRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePageContentByUid(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific page content record * @summary Find page content record * @param {PageContentsNERMApiGetPageContentByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContentById(requestParameters: PageContentsNERMApiGetPageContentByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPageContentById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific page content record by UID (user-specified identifier) * @summary Find a page content record * @param {PageContentsNERMApiGetPageContentByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContentByUid(requestParameters: PageContentsNERMApiGetPageContentByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPageContentByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint can retrieve page content data. * @summary Get page contents data * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageContents(axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPageContents(axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific page content record by id * @summary Update page content record * @param {PageContentsNERMApiUpdatePageContentByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageContentById(requestParameters: PageContentsNERMApiUpdatePageContentByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePageContentById(requestParameters.id, requestParameters.createPageContentRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific page content record by UID (user-specified identifier) * @summary Update page content record * @param {PageContentsNERMApiUpdatePageContentByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageContentByUid(requestParameters: PageContentsNERMApiUpdatePageContentByUidRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePageContentByUid(requestParameters.createPageContentRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createPageContent operation in PageContentsNERMApi. * @export * @interface PageContentsNERMApiCreatePageContentRequest */ export interface PageContentsNERMApiCreatePageContentRequest { /** * * @type {CreatePageContentRequestNERM} * @memberof PageContentsNERMApiCreatePageContent */ readonly createPageContentRequestNERM: CreatePageContentRequestNERM } /** * Request parameters for deletePageContentById operation in PageContentsNERMApi. * @export * @interface PageContentsNERMApiDeletePageContentByIdRequest */ export interface PageContentsNERMApiDeletePageContentByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageContentsNERMApiDeletePageContentById */ readonly id: string } /** * Request parameters for deletePageContentByUid operation in PageContentsNERMApi. * @export * @interface PageContentsNERMApiDeletePageContentByUidRequest */ export interface PageContentsNERMApiDeletePageContentByUidRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageContentsNERMApiDeletePageContentByUid */ readonly id: string } /** * Request parameters for getPageContentById operation in PageContentsNERMApi. * @export * @interface PageContentsNERMApiGetPageContentByIdRequest */ export interface PageContentsNERMApiGetPageContentByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageContentsNERMApiGetPageContentById */ readonly id: string } /** * Request parameters for getPageContentByUid operation in PageContentsNERMApi. * @export * @interface PageContentsNERMApiGetPageContentByUidRequest */ export interface PageContentsNERMApiGetPageContentByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof PageContentsNERMApiGetPageContentByUid */ readonly uid?: string } /** * Request parameters for updatePageContentById operation in PageContentsNERMApi. * @export * @interface PageContentsNERMApiUpdatePageContentByIdRequest */ export interface PageContentsNERMApiUpdatePageContentByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageContentsNERMApiUpdatePageContentById */ readonly id: string /** * * @type {CreatePageContentRequestNERM} * @memberof PageContentsNERMApiUpdatePageContentById */ readonly createPageContentRequestNERM: CreatePageContentRequestNERM } /** * Request parameters for updatePageContentByUid operation in PageContentsNERMApi. * @export * @interface PageContentsNERMApiUpdatePageContentByUidRequest */ export interface PageContentsNERMApiUpdatePageContentByUidRequest { /** * * @type {CreatePageContentRequestNERM} * @memberof PageContentsNERMApiUpdatePageContentByUid */ readonly createPageContentRequestNERM: CreatePageContentRequestNERM /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof PageContentsNERMApiUpdatePageContentByUid */ readonly uid?: string } /** * PageContentsNERMApi - object-oriented interface * @export * @class PageContentsNERMApi * @extends {BaseAPI} */ export class PageContentsNERMApi extends BaseAPI { /** * This endpoint can create page content * @summary Create a page content entry * @param {PageContentsNERMApiCreatePageContentRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentsNERMApi */ public createPageContent(requestParameters: PageContentsNERMApiCreatePageContentRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentsNERMApiFp(this.configuration).createPageContent(requestParameters.createPageContentRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete page content by id * @summary Delete page content record * @param {PageContentsNERMApiDeletePageContentByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentsNERMApi */ public deletePageContentById(requestParameters: PageContentsNERMApiDeletePageContentByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentsNERMApiFp(this.configuration).deletePageContentById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete page content by by UID (user-specified identifier) * @summary Delete page content record * @param {PageContentsNERMApiDeletePageContentByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentsNERMApi */ public deletePageContentByUid(requestParameters: PageContentsNERMApiDeletePageContentByUidRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentsNERMApiFp(this.configuration).deletePageContentByUid(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific page content record * @summary Find page content record * @param {PageContentsNERMApiGetPageContentByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentsNERMApi */ public getPageContentById(requestParameters: PageContentsNERMApiGetPageContentByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentsNERMApiFp(this.configuration).getPageContentById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific page content record by UID (user-specified identifier) * @summary Find a page content record * @param {PageContentsNERMApiGetPageContentByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentsNERMApi */ public getPageContentByUid(requestParameters: PageContentsNERMApiGetPageContentByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return PageContentsNERMApiFp(this.configuration).getPageContentByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint can retrieve page content data. * @summary Get page contents data * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentsNERMApi */ public getPageContents(axiosOptions?: RawAxiosRequestConfig) { return PageContentsNERMApiFp(this.configuration).getPageContents(axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific page content record by id * @summary Update page content record * @param {PageContentsNERMApiUpdatePageContentByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentsNERMApi */ public updatePageContentById(requestParameters: PageContentsNERMApiUpdatePageContentByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentsNERMApiFp(this.configuration).updatePageContentById(requestParameters.id, requestParameters.createPageContentRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific page content record by UID (user-specified identifier) * @summary Update page content record * @param {PageContentsNERMApiUpdatePageContentByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageContentsNERMApi */ public updatePageContentByUid(requestParameters: PageContentsNERMApiUpdatePageContentByUidRequest, axiosOptions?: RawAxiosRequestConfig) { return PageContentsNERMApiFp(this.configuration).updatePageContentByUid(requestParameters.createPageContentRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * PageElementsNERMApi - axios parameter creator * @export */ export const PageElementsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a page element. * @summary Create a page element entry * @param {CreatePageElementRequestNERM} createPageElementRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPageElement: async (createPageElementRequestNERM: CreatePageElementRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createPageElementRequestNERM' is not null or undefined assertParamExists('createPageElement', 'createPageElementRequestNERM', createPageElementRequestNERM) const localVarPath = `/page_elements`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createPageElementRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete page element by id * @summary Delete page element * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageElementById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deletePageElementById', 'id', id) const localVarPath = `/page_elements/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete page element by UID (user-specified identifier) * @summary Delete page element * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageElementByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/page_elements/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific page element record * @summary Find a page element * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageElementById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getPageElementById', 'id', id) const localVarPath = `/page_elements/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific page element record by UID (user-specified identifier) * @summary Find page element * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageElementByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/page_elements/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Retrieves page elements data. * @summary Get page element data * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageElements: async (axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/page_elements`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific page element record by id * @summary Update page element * @param {string} id ID of the object to retrieve, update, or delete * @param {CreatePageElementRequestNERM} createPageElementRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageElementById: async (id: string, createPageElementRequestNERM: CreatePageElementRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updatePageElementById', 'id', id) // verify required parameter 'createPageElementRequestNERM' is not null or undefined assertParamExists('updatePageElementById', 'createPageElementRequestNERM', createPageElementRequestNERM) const localVarPath = `/page_elements/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createPageElementRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update info for a specific page element record by UID (user-specified identifier) * @summary Update page element * @param {CreatePageElementRequestNERM} createPageElementRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageElementByUid: async (createPageElementRequestNERM: CreatePageElementRequestNERM, uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createPageElementRequestNERM' is not null or undefined assertParamExists('updatePageElementByUid', 'createPageElementRequestNERM', createPageElementRequestNERM) const localVarPath = `/page_elements/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createPageElementRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * PageElementsNERMApi - functional programming interface * @export */ export const PageElementsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PageElementsNERMApiAxiosParamCreator(configuration) return { /** * Creates a page element. * @summary Create a page element entry * @param {CreatePageElementRequestNERM} createPageElementRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createPageElement(createPageElementRequestNERM: CreatePageElementRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPageElement(createPageElementRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageElementsNERMApi.createPageElement']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete page element by id * @summary Delete page element * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deletePageElementById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deletePageElementById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageElementsNERMApi.deletePageElementById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete page element by UID (user-specified identifier) * @summary Delete page element * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deletePageElementByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deletePageElementByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageElementsNERMApi.deletePageElementByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific page element record * @summary Find a page element * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getPageElementById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPageElementById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageElementsNERMApi.getPageElementById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific page element record by UID (user-specified identifier) * @summary Find page element * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getPageElementByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPageElementByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageElementsNERMApi.getPageElementByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves page elements data. * @summary Get page element data * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getPageElements(axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPageElements(axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageElementsNERMApi.getPageElements']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific page element record by id * @summary Update page element * @param {string} id ID of the object to retrieve, update, or delete * @param {CreatePageElementRequestNERM} createPageElementRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updatePageElementById(id: string, createPageElementRequestNERM: CreatePageElementRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updatePageElementById(id, createPageElementRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageElementsNERMApi.updatePageElementById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update info for a specific page element record by UID (user-specified identifier) * @summary Update page element * @param {CreatePageElementRequestNERM} createPageElementRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updatePageElementByUid(createPageElementRequestNERM: CreatePageElementRequestNERM, uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updatePageElementByUid(createPageElementRequestNERM, uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PageElementsNERMApi.updatePageElementByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * PageElementsNERMApi - factory interface * @export */ export const PageElementsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = PageElementsNERMApiFp(configuration) return { /** * Creates a page element. * @summary Create a page element entry * @param {PageElementsNERMApiCreatePageElementRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPageElement(requestParameters: PageElementsNERMApiCreatePageElementRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createPageElement(requestParameters.createPageElementRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete page element by id * @summary Delete page element * @param {PageElementsNERMApiDeletePageElementByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageElementById(requestParameters: PageElementsNERMApiDeletePageElementByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePageElementById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete page element by UID (user-specified identifier) * @summary Delete page element * @param {PageElementsNERMApiDeletePageElementByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deletePageElementByUid(requestParameters: PageElementsNERMApiDeletePageElementByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePageElementByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific page element record * @summary Find a page element * @param {PageElementsNERMApiGetPageElementByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageElementById(requestParameters: PageElementsNERMApiGetPageElementByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPageElementById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific page element record by UID (user-specified identifier) * @summary Find page element * @param {PageElementsNERMApiGetPageElementByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageElementByUid(requestParameters: PageElementsNERMApiGetPageElementByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPageElementByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Retrieves page elements data. * @summary Get page element data * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getPageElements(axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPageElements(axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific page element record by id * @summary Update page element * @param {PageElementsNERMApiUpdatePageElementByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageElementById(requestParameters: PageElementsNERMApiUpdatePageElementByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePageElementById(requestParameters.id, requestParameters.createPageElementRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update info for a specific page element record by UID (user-specified identifier) * @summary Update page element * @param {PageElementsNERMApiUpdatePageElementByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updatePageElementByUid(requestParameters: PageElementsNERMApiUpdatePageElementByUidRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePageElementByUid(requestParameters.createPageElementRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createPageElement operation in PageElementsNERMApi. * @export * @interface PageElementsNERMApiCreatePageElementRequest */ export interface PageElementsNERMApiCreatePageElementRequest { /** * * @type {CreatePageElementRequestNERM} * @memberof PageElementsNERMApiCreatePageElement */ readonly createPageElementRequestNERM: CreatePageElementRequestNERM } /** * Request parameters for deletePageElementById operation in PageElementsNERMApi. * @export * @interface PageElementsNERMApiDeletePageElementByIdRequest */ export interface PageElementsNERMApiDeletePageElementByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageElementsNERMApiDeletePageElementById */ readonly id: string } /** * Request parameters for deletePageElementByUid operation in PageElementsNERMApi. * @export * @interface PageElementsNERMApiDeletePageElementByUidRequest */ export interface PageElementsNERMApiDeletePageElementByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof PageElementsNERMApiDeletePageElementByUid */ readonly uid?: string } /** * Request parameters for getPageElementById operation in PageElementsNERMApi. * @export * @interface PageElementsNERMApiGetPageElementByIdRequest */ export interface PageElementsNERMApiGetPageElementByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageElementsNERMApiGetPageElementById */ readonly id: string } /** * Request parameters for getPageElementByUid operation in PageElementsNERMApi. * @export * @interface PageElementsNERMApiGetPageElementByUidRequest */ export interface PageElementsNERMApiGetPageElementByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof PageElementsNERMApiGetPageElementByUid */ readonly uid?: string } /** * Request parameters for updatePageElementById operation in PageElementsNERMApi. * @export * @interface PageElementsNERMApiUpdatePageElementByIdRequest */ export interface PageElementsNERMApiUpdatePageElementByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof PageElementsNERMApiUpdatePageElementById */ readonly id: string /** * * @type {CreatePageElementRequestNERM} * @memberof PageElementsNERMApiUpdatePageElementById */ readonly createPageElementRequestNERM: CreatePageElementRequestNERM } /** * Request parameters for updatePageElementByUid operation in PageElementsNERMApi. * @export * @interface PageElementsNERMApiUpdatePageElementByUidRequest */ export interface PageElementsNERMApiUpdatePageElementByUidRequest { /** * * @type {CreatePageElementRequestNERM} * @memberof PageElementsNERMApiUpdatePageElementByUid */ readonly createPageElementRequestNERM: CreatePageElementRequestNERM /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof PageElementsNERMApiUpdatePageElementByUid */ readonly uid?: string } /** * PageElementsNERMApi - object-oriented interface * @export * @class PageElementsNERMApi * @extends {BaseAPI} */ export class PageElementsNERMApi extends BaseAPI { /** * Creates a page element. * @summary Create a page element entry * @param {PageElementsNERMApiCreatePageElementRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageElementsNERMApi */ public createPageElement(requestParameters: PageElementsNERMApiCreatePageElementRequest, axiosOptions?: RawAxiosRequestConfig) { return PageElementsNERMApiFp(this.configuration).createPageElement(requestParameters.createPageElementRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete page element by id * @summary Delete page element * @param {PageElementsNERMApiDeletePageElementByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageElementsNERMApi */ public deletePageElementById(requestParameters: PageElementsNERMApiDeletePageElementByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return PageElementsNERMApiFp(this.configuration).deletePageElementById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete page element by UID (user-specified identifier) * @summary Delete page element * @param {PageElementsNERMApiDeletePageElementByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageElementsNERMApi */ public deletePageElementByUid(requestParameters: PageElementsNERMApiDeletePageElementByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return PageElementsNERMApiFp(this.configuration).deletePageElementByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific page element record * @summary Find a page element * @param {PageElementsNERMApiGetPageElementByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageElementsNERMApi */ public getPageElementById(requestParameters: PageElementsNERMApiGetPageElementByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return PageElementsNERMApiFp(this.configuration).getPageElementById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific page element record by UID (user-specified identifier) * @summary Find page element * @param {PageElementsNERMApiGetPageElementByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageElementsNERMApi */ public getPageElementByUid(requestParameters: PageElementsNERMApiGetPageElementByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return PageElementsNERMApiFp(this.configuration).getPageElementByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Retrieves page elements data. * @summary Get page element data * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageElementsNERMApi */ public getPageElements(axiosOptions?: RawAxiosRequestConfig) { return PageElementsNERMApiFp(this.configuration).getPageElements(axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific page element record by id * @summary Update page element * @param {PageElementsNERMApiUpdatePageElementByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageElementsNERMApi */ public updatePageElementById(requestParameters: PageElementsNERMApiUpdatePageElementByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return PageElementsNERMApiFp(this.configuration).updatePageElementById(requestParameters.id, requestParameters.createPageElementRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update info for a specific page element record by UID (user-specified identifier) * @summary Update page element * @param {PageElementsNERMApiUpdatePageElementByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PageElementsNERMApi */ public updatePageElementByUid(requestParameters: PageElementsNERMApiUpdatePageElementByUidRequest, axiosOptions?: RawAxiosRequestConfig) { return PageElementsNERMApiFp(this.configuration).updatePageElementByUid(requestParameters.createPageElementRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * PagesNERMApi - axios parameter creator * @export */ export const PagesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create a profile page * @summary Create a profile page * @param {CreateProfilePageRequestNERM} createProfilePageRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createProfilePage: async (createProfilePageRequestNERM: CreateProfilePageRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createProfilePageRequestNERM' is not null or undefined assertParamExists('createProfilePage', 'createProfilePageRequestNERM', createProfilePageRequestNERM) const localVarPath = `/pages/profile_pages`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createProfilePageRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a workflow page * @summary Create a workflow page * @param {CreateWorkflowPageRequestNERM} createWorkflowPageRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createWorkflowPage: async (createWorkflowPageRequestNERM: CreateWorkflowPageRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createWorkflowPageRequestNERM' is not null or undefined assertParamExists('createWorkflowPage', 'createWorkflowPageRequestNERM', createWorkflowPageRequestNERM) const localVarPath = `/pages/workflow_pages`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createWorkflowPageRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * PagesNERMApi - functional programming interface * @export */ export const PagesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PagesNERMApiAxiosParamCreator(configuration) return { /** * Create a profile page * @summary Create a profile page * @param {CreateProfilePageRequestNERM} createProfilePageRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createProfilePage(createProfilePageRequestNERM: CreateProfilePageRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProfilePage(createProfilePageRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PagesNERMApi.createProfilePage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a workflow page * @summary Create a workflow page * @param {CreateWorkflowPageRequestNERM} createWorkflowPageRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createWorkflowPage(createWorkflowPageRequestNERM: CreateWorkflowPageRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkflowPage(createWorkflowPageRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PagesNERMApi.createWorkflowPage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * PagesNERMApi - factory interface * @export */ export const PagesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = PagesNERMApiFp(configuration) return { /** * Create a profile page * @summary Create a profile page * @param {PagesNERMApiCreateProfilePageRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createProfilePage(requestParameters: PagesNERMApiCreateProfilePageRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProfilePage(requestParameters.createProfilePageRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a workflow page * @summary Create a workflow page * @param {PagesNERMApiCreateWorkflowPageRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createWorkflowPage(requestParameters: PagesNERMApiCreateWorkflowPageRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createWorkflowPage(requestParameters.createWorkflowPageRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createProfilePage operation in PagesNERMApi. * @export * @interface PagesNERMApiCreateProfilePageRequest */ export interface PagesNERMApiCreateProfilePageRequest { /** * * @type {CreateProfilePageRequestNERM} * @memberof PagesNERMApiCreateProfilePage */ readonly createProfilePageRequestNERM: CreateProfilePageRequestNERM } /** * Request parameters for createWorkflowPage operation in PagesNERMApi. * @export * @interface PagesNERMApiCreateWorkflowPageRequest */ export interface PagesNERMApiCreateWorkflowPageRequest { /** * * @type {CreateWorkflowPageRequestNERM} * @memberof PagesNERMApiCreateWorkflowPage */ readonly createWorkflowPageRequestNERM: CreateWorkflowPageRequestNERM } /** * PagesNERMApi - object-oriented interface * @export * @class PagesNERMApi * @extends {BaseAPI} */ export class PagesNERMApi extends BaseAPI { /** * Create a profile page * @summary Create a profile page * @param {PagesNERMApiCreateProfilePageRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PagesNERMApi */ public createProfilePage(requestParameters: PagesNERMApiCreateProfilePageRequest, axiosOptions?: RawAxiosRequestConfig) { return PagesNERMApiFp(this.configuration).createProfilePage(requestParameters.createProfilePageRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a workflow page * @summary Create a workflow page * @param {PagesNERMApiCreateWorkflowPageRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PagesNERMApi */ public createWorkflowPage(requestParameters: PagesNERMApiCreateWorkflowPageRequest, axiosOptions?: RawAxiosRequestConfig) { return PagesNERMApiFp(this.configuration).createWorkflowPage(requestParameters.createWorkflowPageRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * PermissionsNERMApi - axios parameter creator * @export */ export const PermissionsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This endpoint can create permissions for Lifecycle, Consolidation, and Collaboration * @summary Create a permission * @param {CreatePermissionRequestNERM} createPermissionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPermission: async (createPermissionRequestNERM: CreatePermissionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createPermissionRequestNERM' is not null or undefined assertParamExists('createPermission', 'createPermissionRequestNERM', createPermissionRequestNERM) const localVarPath = `/permissions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createPermissionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * PermissionsNERMApi - functional programming interface * @export */ export const PermissionsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PermissionsNERMApiAxiosParamCreator(configuration) return { /** * This endpoint can create permissions for Lifecycle, Consolidation, and Collaboration * @summary Create a permission * @param {CreatePermissionRequestNERM} createPermissionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createPermission(createPermissionRequestNERM: CreatePermissionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPermission(createPermissionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PermissionsNERMApi.createPermission']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * PermissionsNERMApi - factory interface * @export */ export const PermissionsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = PermissionsNERMApiFp(configuration) return { /** * This endpoint can create permissions for Lifecycle, Consolidation, and Collaboration * @summary Create a permission * @param {PermissionsNERMApiCreatePermissionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPermission(requestParameters: PermissionsNERMApiCreatePermissionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createPermission(requestParameters.createPermissionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createPermission operation in PermissionsNERMApi. * @export * @interface PermissionsNERMApiCreatePermissionRequest */ export interface PermissionsNERMApiCreatePermissionRequest { /** * * @type {CreatePermissionRequestNERM} * @memberof PermissionsNERMApiCreatePermission */ readonly createPermissionRequestNERM: CreatePermissionRequestNERM } /** * PermissionsNERMApi - object-oriented interface * @export * @class PermissionsNERMApi * @extends {BaseAPI} */ export class PermissionsNERMApi extends BaseAPI { /** * This endpoint can create permissions for Lifecycle, Consolidation, and Collaboration * @summary Create a permission * @param {PermissionsNERMApiCreatePermissionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof PermissionsNERMApi */ public createPermission(requestParameters: PermissionsNERMApiCreatePermissionRequest, axiosOptions?: RawAxiosRequestConfig) { return PermissionsNERMApiFp(this.configuration).createPermission(requestParameters.createPermissionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * ProfileTypeRolesNERMApi - axios parameter creator * @export */ export const ProfileTypeRolesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This endpoint can create a profile type role. NOTE- The ability to toggle Allow/Block is done through the Profile Type * @summary Create a profile type role * @param {CreateProfileTypeRoleRequestNERM} createProfileTypeRoleRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createProfileTypeRole: async (createProfileTypeRoleRequestNERM: CreateProfileTypeRoleRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createProfileTypeRoleRequestNERM' is not null or undefined assertParamExists('createProfileTypeRole', 'createProfileTypeRoleRequestNERM', createProfileTypeRoleRequestNERM) const localVarPath = `/profile_type_roles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createProfileTypeRoleRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * ProfileTypeRolesNERMApi - functional programming interface * @export */ export const ProfileTypeRolesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ProfileTypeRolesNERMApiAxiosParamCreator(configuration) return { /** * This endpoint can create a profile type role. NOTE- The ability to toggle Allow/Block is done through the Profile Type * @summary Create a profile type role * @param {CreateProfileTypeRoleRequestNERM} createProfileTypeRoleRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createProfileTypeRole(createProfileTypeRoleRequestNERM: CreateProfileTypeRoleRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileTypeRole(createProfileTypeRoleRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfileTypeRolesNERMApi.createProfileTypeRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ProfileTypeRolesNERMApi - factory interface * @export */ export const ProfileTypeRolesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ProfileTypeRolesNERMApiFp(configuration) return { /** * This endpoint can create a profile type role. NOTE- The ability to toggle Allow/Block is done through the Profile Type * @summary Create a profile type role * @param {ProfileTypeRolesNERMApiCreateProfileTypeRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createProfileTypeRole(requestParameters: ProfileTypeRolesNERMApiCreateProfileTypeRoleRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProfileTypeRole(requestParameters.createProfileTypeRoleRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createProfileTypeRole operation in ProfileTypeRolesNERMApi. * @export * @interface ProfileTypeRolesNERMApiCreateProfileTypeRoleRequest */ export interface ProfileTypeRolesNERMApiCreateProfileTypeRoleRequest { /** * * @type {CreateProfileTypeRoleRequestNERM} * @memberof ProfileTypeRolesNERMApiCreateProfileTypeRole */ readonly createProfileTypeRoleRequestNERM: CreateProfileTypeRoleRequestNERM } /** * ProfileTypeRolesNERMApi - object-oriented interface * @export * @class ProfileTypeRolesNERMApi * @extends {BaseAPI} */ export class ProfileTypeRolesNERMApi extends BaseAPI { /** * This endpoint can create a profile type role. NOTE- The ability to toggle Allow/Block is done through the Profile Type * @summary Create a profile type role * @param {ProfileTypeRolesNERMApiCreateProfileTypeRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfileTypeRolesNERMApi */ public createProfileTypeRole(requestParameters: ProfileTypeRolesNERMApiCreateProfileTypeRoleRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfileTypeRolesNERMApiFp(this.configuration).createProfileTypeRole(requestParameters.createProfileTypeRoleRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * ProfileTypesNERMApi - axios parameter creator * @export */ export const ProfileTypesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Delete a profile type. All profiles of that type must first be destroyed before the profile type can be destroyed. * @summary Delete profile type * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteProfileTypeById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteProfileTypeById', 'id', id) const localVarPath = `/profile_types/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete a profile type by UID (user-specified identifier). All profiles of that type must first be destroyed before the profile type can be destroyed. * @summary Delete profile type * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteProfileTypeByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/profile_types/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Find profile type by id * @summary Find profile type * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileTypeById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getProfileTypeById', 'id', id) const localVarPath = `/profile_types/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Find profile type by UID (user-specified identifier) * @summary Find profile type * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileTypeByUid: async (uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/profile_types/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get option based attribute values * @summary Get profile types * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [name] object name for filtering * @param {boolean} [archived] Filter by archive status * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileTypes: async (limit?: number, offset?: number, order?: string, name?: string, archived?: boolean, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/profile_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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (name !== undefined) { localVarQueryParameter['name'] = name; } if (archived !== undefined) { localVarQueryParameter['archived'] = archived; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a profile type by id * @summary Update a profile type * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitProfileTypeRequestNERM} submitProfileTypeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchProfileTypeById: async (id: string, submitProfileTypeRequestNERM: SubmitProfileTypeRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchProfileTypeById', 'id', id) // verify required parameter 'submitProfileTypeRequestNERM' is not null or undefined assertParamExists('patchProfileTypeById', 'submitProfileTypeRequestNERM', submitProfileTypeRequestNERM) const localVarPath = `/profile_types/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitProfileTypeRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a profile type by UID (user-specified identifier) * @summary Update a profile type * @param {SubmitProfileTypeRequestNERM} submitProfileTypeRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchProfileTypeByUid: async (submitProfileTypeRequestNERM: SubmitProfileTypeRequestNERM, uid?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitProfileTypeRequestNERM' is not null or undefined assertParamExists('patchProfileTypeByUid', 'submitProfileTypeRequestNERM', submitProfileTypeRequestNERM) const localVarPath = `/profile_types/{uid}` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitProfileTypeRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a profile type * @summary Create a profile type * @param {SubmitProfileTypeRequestNERM} submitProfileTypeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitProfileType: async (submitProfileTypeRequestNERM: SubmitProfileTypeRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitProfileTypeRequestNERM' is not null or undefined assertParamExists('submitProfileType', 'submitProfileTypeRequestNERM', submitProfileTypeRequestNERM) const localVarPath = `/profile_type`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitProfileTypeRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * ProfileTypesNERMApi - functional programming interface * @export */ export const ProfileTypesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ProfileTypesNERMApiAxiosParamCreator(configuration) return { /** * Delete a profile type. All profiles of that type must first be destroyed before the profile type can be destroyed. * @summary Delete profile type * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteProfileTypeById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProfileTypeById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfileTypesNERMApi.deleteProfileTypeById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a profile type by UID (user-specified identifier). All profiles of that type must first be destroyed before the profile type can be destroyed. * @summary Delete profile type * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteProfileTypeByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProfileTypeByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfileTypesNERMApi.deleteProfileTypeByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Find profile type by id * @summary Find profile type * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getProfileTypeById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileTypeById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfileTypesNERMApi.getProfileTypeById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Find profile type by UID (user-specified identifier) * @summary Find profile type * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getProfileTypeByUid(uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileTypeByUid(uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfileTypesNERMApi.getProfileTypeByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get option based attribute values * @summary Get profile types * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [name] object name for filtering * @param {boolean} [archived] Filter by archive status * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getProfileTypes(limit?: number, offset?: number, order?: string, name?: string, archived?: boolean, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileTypes(limit, offset, order, name, archived, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfileTypesNERMApi.getProfileTypes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a profile type by id * @summary Update a profile type * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitProfileTypeRequestNERM} submitProfileTypeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchProfileTypeById(id: string, submitProfileTypeRequestNERM: SubmitProfileTypeRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchProfileTypeById(id, submitProfileTypeRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfileTypesNERMApi.patchProfileTypeById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a profile type by UID (user-specified identifier) * @summary Update a profile type * @param {SubmitProfileTypeRequestNERM} submitProfileTypeRequestNERM * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchProfileTypeByUid(submitProfileTypeRequestNERM: SubmitProfileTypeRequestNERM, uid?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchProfileTypeByUid(submitProfileTypeRequestNERM, uid, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfileTypesNERMApi.patchProfileTypeByUid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a profile type * @summary Create a profile type * @param {SubmitProfileTypeRequestNERM} submitProfileTypeRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitProfileType(submitProfileTypeRequestNERM: SubmitProfileTypeRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitProfileType(submitProfileTypeRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfileTypesNERMApi.submitProfileType']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ProfileTypesNERMApi - factory interface * @export */ export const ProfileTypesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ProfileTypesNERMApiFp(configuration) return { /** * Delete a profile type. All profiles of that type must first be destroyed before the profile type can be destroyed. * @summary Delete profile type * @param {ProfileTypesNERMApiDeleteProfileTypeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteProfileTypeById(requestParameters: ProfileTypesNERMApiDeleteProfileTypeByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProfileTypeById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete a profile type by UID (user-specified identifier). All profiles of that type must first be destroyed before the profile type can be destroyed. * @summary Delete profile type * @param {ProfileTypesNERMApiDeleteProfileTypeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteProfileTypeByUid(requestParameters: ProfileTypesNERMApiDeleteProfileTypeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProfileTypeByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Find profile type by id * @summary Find profile type * @param {ProfileTypesNERMApiGetProfileTypeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileTypeById(requestParameters: ProfileTypesNERMApiGetProfileTypeByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProfileTypeById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Find profile type by UID (user-specified identifier) * @summary Find profile type * @param {ProfileTypesNERMApiGetProfileTypeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileTypeByUid(requestParameters: ProfileTypesNERMApiGetProfileTypeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProfileTypeByUid(requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get option based attribute values * @summary Get profile types * @param {ProfileTypesNERMApiGetProfileTypesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileTypes(requestParameters: ProfileTypesNERMApiGetProfileTypesRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProfileTypes(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.name, requestParameters.archived, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a profile type by id * @summary Update a profile type * @param {ProfileTypesNERMApiPatchProfileTypeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchProfileTypeById(requestParameters: ProfileTypesNERMApiPatchProfileTypeByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchProfileTypeById(requestParameters.id, requestParameters.submitProfileTypeRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a profile type by UID (user-specified identifier) * @summary Update a profile type * @param {ProfileTypesNERMApiPatchProfileTypeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchProfileTypeByUid(requestParameters: ProfileTypesNERMApiPatchProfileTypeByUidRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchProfileTypeByUid(requestParameters.submitProfileTypeRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a profile type * @summary Create a profile type * @param {ProfileTypesNERMApiSubmitProfileTypeRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitProfileType(requestParameters: ProfileTypesNERMApiSubmitProfileTypeRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitProfileType(requestParameters.submitProfileTypeRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for deleteProfileTypeById operation in ProfileTypesNERMApi. * @export * @interface ProfileTypesNERMApiDeleteProfileTypeByIdRequest */ export interface ProfileTypesNERMApiDeleteProfileTypeByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ProfileTypesNERMApiDeleteProfileTypeById */ readonly id: string } /** * Request parameters for deleteProfileTypeByUid operation in ProfileTypesNERMApi. * @export * @interface ProfileTypesNERMApiDeleteProfileTypeByUidRequest */ export interface ProfileTypesNERMApiDeleteProfileTypeByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof ProfileTypesNERMApiDeleteProfileTypeByUid */ readonly uid?: string } /** * Request parameters for getProfileTypeById operation in ProfileTypesNERMApi. * @export * @interface ProfileTypesNERMApiGetProfileTypeByIdRequest */ export interface ProfileTypesNERMApiGetProfileTypeByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ProfileTypesNERMApiGetProfileTypeById */ readonly id: string } /** * Request parameters for getProfileTypeByUid operation in ProfileTypesNERMApi. * @export * @interface ProfileTypesNERMApiGetProfileTypeByUidRequest */ export interface ProfileTypesNERMApiGetProfileTypeByUidRequest { /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof ProfileTypesNERMApiGetProfileTypeByUid */ readonly uid?: string } /** * Request parameters for getProfileTypes operation in ProfileTypesNERMApi. * @export * @interface ProfileTypesNERMApiGetProfileTypesRequest */ export interface ProfileTypesNERMApiGetProfileTypesRequest { /** * The maximum number of items to return. * @type {number} * @memberof ProfileTypesNERMApiGetProfileTypes */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof ProfileTypesNERMApiGetProfileTypes */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof ProfileTypesNERMApiGetProfileTypes */ readonly order?: string /** * object name for filtering * @type {string} * @memberof ProfileTypesNERMApiGetProfileTypes */ readonly name?: string /** * Filter by archive status * @type {boolean} * @memberof ProfileTypesNERMApiGetProfileTypes */ readonly archived?: boolean /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof ProfileTypesNERMApiGetProfileTypes */ readonly metadata?: boolean } /** * Request parameters for patchProfileTypeById operation in ProfileTypesNERMApi. * @export * @interface ProfileTypesNERMApiPatchProfileTypeByIdRequest */ export interface ProfileTypesNERMApiPatchProfileTypeByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ProfileTypesNERMApiPatchProfileTypeById */ readonly id: string /** * * @type {SubmitProfileTypeRequestNERM} * @memberof ProfileTypesNERMApiPatchProfileTypeById */ readonly submitProfileTypeRequestNERM: SubmitProfileTypeRequestNERM } /** * Request parameters for patchProfileTypeByUid operation in ProfileTypesNERMApi. * @export * @interface ProfileTypesNERMApiPatchProfileTypeByUidRequest */ export interface ProfileTypesNERMApiPatchProfileTypeByUidRequest { /** * * @type {SubmitProfileTypeRequestNERM} * @memberof ProfileTypesNERMApiPatchProfileTypeByUid */ readonly submitProfileTypeRequestNERM: SubmitProfileTypeRequestNERM /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof ProfileTypesNERMApiPatchProfileTypeByUid */ readonly uid?: string } /** * Request parameters for submitProfileType operation in ProfileTypesNERMApi. * @export * @interface ProfileTypesNERMApiSubmitProfileTypeRequest */ export interface ProfileTypesNERMApiSubmitProfileTypeRequest { /** * * @type {SubmitProfileTypeRequestNERM} * @memberof ProfileTypesNERMApiSubmitProfileType */ readonly submitProfileTypeRequestNERM: SubmitProfileTypeRequestNERM } /** * ProfileTypesNERMApi - object-oriented interface * @export * @class ProfileTypesNERMApi * @extends {BaseAPI} */ export class ProfileTypesNERMApi extends BaseAPI { /** * Delete a profile type. All profiles of that type must first be destroyed before the profile type can be destroyed. * @summary Delete profile type * @param {ProfileTypesNERMApiDeleteProfileTypeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfileTypesNERMApi */ public deleteProfileTypeById(requestParameters: ProfileTypesNERMApiDeleteProfileTypeByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfileTypesNERMApiFp(this.configuration).deleteProfileTypeById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete a profile type by UID (user-specified identifier). All profiles of that type must first be destroyed before the profile type can be destroyed. * @summary Delete profile type * @param {ProfileTypesNERMApiDeleteProfileTypeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfileTypesNERMApi */ public deleteProfileTypeByUid(requestParameters: ProfileTypesNERMApiDeleteProfileTypeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return ProfileTypesNERMApiFp(this.configuration).deleteProfileTypeByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Find profile type by id * @summary Find profile type * @param {ProfileTypesNERMApiGetProfileTypeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfileTypesNERMApi */ public getProfileTypeById(requestParameters: ProfileTypesNERMApiGetProfileTypeByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfileTypesNERMApiFp(this.configuration).getProfileTypeById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Find profile type by UID (user-specified identifier) * @summary Find profile type * @param {ProfileTypesNERMApiGetProfileTypeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfileTypesNERMApi */ public getProfileTypeByUid(requestParameters: ProfileTypesNERMApiGetProfileTypeByUidRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return ProfileTypesNERMApiFp(this.configuration).getProfileTypeByUid(requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get option based attribute values * @summary Get profile types * @param {ProfileTypesNERMApiGetProfileTypesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfileTypesNERMApi */ public getProfileTypes(requestParameters: ProfileTypesNERMApiGetProfileTypesRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return ProfileTypesNERMApiFp(this.configuration).getProfileTypes(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.name, requestParameters.archived, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a profile type by id * @summary Update a profile type * @param {ProfileTypesNERMApiPatchProfileTypeByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfileTypesNERMApi */ public patchProfileTypeById(requestParameters: ProfileTypesNERMApiPatchProfileTypeByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfileTypesNERMApiFp(this.configuration).patchProfileTypeById(requestParameters.id, requestParameters.submitProfileTypeRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a profile type by UID (user-specified identifier) * @summary Update a profile type * @param {ProfileTypesNERMApiPatchProfileTypeByUidRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfileTypesNERMApi */ public patchProfileTypeByUid(requestParameters: ProfileTypesNERMApiPatchProfileTypeByUidRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfileTypesNERMApiFp(this.configuration).patchProfileTypeByUid(requestParameters.submitProfileTypeRequestNERM, requestParameters.uid, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a profile type * @summary Create a profile type * @param {ProfileTypesNERMApiSubmitProfileTypeRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfileTypesNERMApi */ public submitProfileType(requestParameters: ProfileTypesNERMApiSubmitProfileTypeRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfileTypesNERMApiFp(this.configuration).submitProfileType(requestParameters.submitProfileTypeRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * ProfilesNERMApi - axios parameter creator * @export */ export const ProfilesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create multiple profiles * @summary Create multiple profiles * @param {CreateProfilesRequestNERM} createProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createProfiles: async (createProfilesRequestNERM: CreateProfilesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createProfilesRequestNERM' is not null or undefined assertParamExists('createProfiles', 'createProfilesRequestNERM', createProfilesRequestNERM) const localVarPath = `/profiles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createProfilesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete a single profile * @summary Delete a single profile * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteProfileById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteProfileById', 'id', id) const localVarPath = `/profiles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete multiple profiles * @summary Delete multiple profiles * @param {CreateProfilesRequestNERM} createProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteProfiles: async (createProfilesRequestNERM: CreateProfilesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createProfilesRequestNERM' is not null or undefined assertParamExists('deleteProfiles', 'createProfilesRequestNERM', createProfilesRequestNERM) const localVarPath = `/profiles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createProfilesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Retrieves the URL of the profile avatar * @summary Retrieves profile avatar URL * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileAvatar: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getProfileAvatar', 'id', id) const localVarPath = `/profiles/{id}/avatar` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Find profile by id * @summary Find profile by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileById: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getProfileById', 'id', id) const localVarPath = `/profiles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Retrieves the URL of an attachment attribute value from a profile * @summary Retrieves profile attribute attachment URL * @param {string} id ID of the object to retrieve, update, or delete * @param {string} attributeId The id of the attachment attribute * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileUpload: async (id: string, attributeId: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getProfileUpload', 'id', id) // verify required parameter 'attributeId' is not null or undefined assertParamExists('getProfileUpload', 'attributeId', attributeId) const localVarPath = `/profiles/{id}/upload/{attribute_id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"attribute_id"}}`, encodeURIComponent(String(attributeId))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get profiles * @summary Get profiles * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {boolean} [excludeAttributes] Allows for optimization by not returning the associated attribute data for the returned profiles * @param {string} [name] object name for filtering * @param {string} [profileTypeId] Profile Type ID for filtering * @param {GetProfilesStatusNerm} [status] status value for filtering * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {string} [afterId] Represents the ID where the query should begin from. If blank, it represents the first ID. When used, forces sorting by ID ascending and does not allow use of `offset`. When `after_id` is specified it changes the mode of the API such that any filter parameters other than `profile_type_id`, `limit`, and `offset` are not supported and will be either silently ignored or result in an HTTP 400 error. For example you can not include an `after_id` along with an `archived=false` in the same request. Can be used alongside `metadata` parameter. * @param {string} [updatedAfter] Adds support for filtering profiles based on the date of the latest modification made on them. Can be used alongside the after_id parameter. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfiles: async (limit?: number, offset?: number, order?: string, excludeAttributes?: boolean, name?: string, profileTypeId?: string, status?: GetProfilesStatusNerm, metadata?: boolean, afterId?: string, updatedAfter?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/profiles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (excludeAttributes !== undefined) { localVarQueryParameter['exclude_attributes'] = excludeAttributes; } if (name !== undefined) { localVarQueryParameter['name'] = name; } if (profileTypeId !== undefined) { localVarQueryParameter['profile_type_id'] = profileTypeId; } if (status !== undefined) { localVarQueryParameter['status'] = status; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } if (afterId !== undefined) { localVarQueryParameter['after_id'] = afterId; } if (updatedAfter !== undefined) { localVarQueryParameter['updated_after'] = (updatedAfter as any instanceof Date) ? (updatedAfter as any).toISOString().substring(0,10) : updatedAfter; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a profile by id * @summary Update a profile by id * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitProfileRequestNERM} submitProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchProfileById: async (id: string, submitProfileRequestNERM: SubmitProfileRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchProfileById', 'id', id) // verify required parameter 'submitProfileRequestNERM' is not null or undefined assertParamExists('patchProfileById', 'submitProfileRequestNERM', submitProfileRequestNERM) const localVarPath = `/profiles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitProfileRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update multiple profiles * @summary Update multiple profiles * @param {CreateProfilesRequestNERM} createProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchProfiles: async (createProfilesRequestNERM: CreateProfilesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createProfilesRequestNERM' is not null or undefined assertParamExists('patchProfiles', 'createProfilesRequestNERM', createProfilesRequestNERM) const localVarPath = `/profiles`; // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createProfilesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a profile * @summary Create a profile * @param {SubmitProfileRequestNERM} submitProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitProfile: async (submitProfileRequestNERM: SubmitProfileRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitProfileRequestNERM' is not null or undefined assertParamExists('submitProfile', 'submitProfileRequestNERM', submitProfileRequestNERM) const localVarPath = `/profile`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitProfileRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Uploads a new profile avatar * @summary Uploads new profile avatar * @param {string} id ID of the object to retrieve, update, or delete * @param {File} [file] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitProfileAvatar: async (id: string, file?: File, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('submitProfileAvatar', 'id', id) const localVarPath = `/profiles/{id}/avatar` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (file !== undefined) { localVarFormParams.append('file', file as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Uploads a new attachment attribute value to a profile. The upload must be a FORM data type; this is not a JSON API. The upload must include the binary content of the payload under the \'file\' named form element. The upload must not attempt to include the file name or its content type as a other form or JSON as parameters. The upload must not attempt to upload the file body as the POST body payload; it has to arrive as a FORM parameter. Do not use a `File/Binary` payload type for the POST operation in your API client. * @summary Uploads profile attachment attribute * @param {string} id ID of the object to retrieve, update, or delete * @param {string} attributeId The id of the attachment attribute * @param {File} [file] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitProfileUpload: async (id: string, attributeId: string, file?: File, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('submitProfileUpload', 'id', id) // verify required parameter 'attributeId' is not null or undefined assertParamExists('submitProfileUpload', 'attributeId', attributeId) const localVarPath = `/profiles/{id}/upload/{attribute_id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"attribute_id"}}`, encodeURIComponent(String(attributeId))); // 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; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (file !== undefined) { localVarFormParams.append('file', file as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * ProfilesNERMApi - functional programming interface * @export */ export const ProfilesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ProfilesNERMApiAxiosParamCreator(configuration) return { /** * Create multiple profiles * @summary Create multiple profiles * @param {CreateProfilesRequestNERM} createProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createProfiles(createProfilesRequestNERM: CreateProfilesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProfiles(createProfilesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.createProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a single profile * @summary Delete a single profile * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteProfileById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProfileById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.deleteProfileById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete multiple profiles * @summary Delete multiple profiles * @param {CreateProfilesRequestNERM} createProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteProfiles(createProfilesRequestNERM: CreateProfilesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProfiles(createProfilesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.deleteProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves the URL of the profile avatar * @summary Retrieves profile avatar URL * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getProfileAvatar(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileAvatar(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.getProfileAvatar']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Find profile by id * @summary Find profile by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getProfileById(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileById(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.getProfileById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves the URL of an attachment attribute value from a profile * @summary Retrieves profile attribute attachment URL * @param {string} id ID of the object to retrieve, update, or delete * @param {string} attributeId The id of the attachment attribute * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getProfileUpload(id: string, attributeId: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileUpload(id, attributeId, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.getProfileUpload']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get profiles * @summary Get profiles * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {boolean} [excludeAttributes] Allows for optimization by not returning the associated attribute data for the returned profiles * @param {string} [name] object name for filtering * @param {string} [profileTypeId] Profile Type ID for filtering * @param {GetProfilesStatusNerm} [status] status value for filtering * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {string} [afterId] Represents the ID where the query should begin from. If blank, it represents the first ID. When used, forces sorting by ID ascending and does not allow use of `offset`. When `after_id` is specified it changes the mode of the API such that any filter parameters other than `profile_type_id`, `limit`, and `offset` are not supported and will be either silently ignored or result in an HTTP 400 error. For example you can not include an `after_id` along with an `archived=false` in the same request. Can be used alongside `metadata` parameter. * @param {string} [updatedAfter] Adds support for filtering profiles based on the date of the latest modification made on them. Can be used alongside the after_id parameter. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getProfiles(limit?: number, offset?: number, order?: string, excludeAttributes?: boolean, name?: string, profileTypeId?: string, status?: GetProfilesStatusNerm, metadata?: boolean, afterId?: string, updatedAfter?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProfiles(limit, offset, order, excludeAttributes, name, profileTypeId, status, metadata, afterId, updatedAfter, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.getProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a profile by id * @summary Update a profile by id * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitProfileRequestNERM} submitProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchProfileById(id: string, submitProfileRequestNERM: SubmitProfileRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchProfileById(id, submitProfileRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.patchProfileById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update multiple profiles * @summary Update multiple profiles * @param {CreateProfilesRequestNERM} createProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchProfiles(createProfilesRequestNERM: CreateProfilesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchProfiles(createProfilesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.patchProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a profile * @summary Create a profile * @param {SubmitProfileRequestNERM} submitProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitProfile(submitProfileRequestNERM: SubmitProfileRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitProfile(submitProfileRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.submitProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Uploads a new profile avatar * @summary Uploads new profile avatar * @param {string} id ID of the object to retrieve, update, or delete * @param {File} [file] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitProfileAvatar(id: string, file?: File, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitProfileAvatar(id, file, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.submitProfileAvatar']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Uploads a new attachment attribute value to a profile. The upload must be a FORM data type; this is not a JSON API. The upload must include the binary content of the payload under the \'file\' named form element. The upload must not attempt to include the file name or its content type as a other form or JSON as parameters. The upload must not attempt to upload the file body as the POST body payload; it has to arrive as a FORM parameter. Do not use a `File/Binary` payload type for the POST operation in your API client. * @summary Uploads profile attachment attribute * @param {string} id ID of the object to retrieve, update, or delete * @param {string} attributeId The id of the attachment attribute * @param {File} [file] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitProfileUpload(id: string, attributeId: string, file?: File, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitProfileUpload(id, attributeId, file, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProfilesNERMApi.submitProfileUpload']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ProfilesNERMApi - factory interface * @export */ export const ProfilesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ProfilesNERMApiFp(configuration) return { /** * Create multiple profiles * @summary Create multiple profiles * @param {ProfilesNERMApiCreateProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createProfiles(requestParameters: ProfilesNERMApiCreateProfilesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProfiles(requestParameters.createProfilesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete a single profile * @summary Delete a single profile * @param {ProfilesNERMApiDeleteProfileByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteProfileById(requestParameters: ProfilesNERMApiDeleteProfileByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProfileById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete multiple profiles * @summary Delete multiple profiles * @param {ProfilesNERMApiDeleteProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteProfiles(requestParameters: ProfilesNERMApiDeleteProfilesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProfiles(requestParameters.createProfilesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Retrieves the URL of the profile avatar * @summary Retrieves profile avatar URL * @param {ProfilesNERMApiGetProfileAvatarRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileAvatar(requestParameters: ProfilesNERMApiGetProfileAvatarRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProfileAvatar(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Find profile by id * @summary Find profile by id * @param {ProfilesNERMApiGetProfileByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileById(requestParameters: ProfilesNERMApiGetProfileByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProfileById(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Retrieves the URL of an attachment attribute value from a profile * @summary Retrieves profile attribute attachment URL * @param {ProfilesNERMApiGetProfileUploadRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileUpload(requestParameters: ProfilesNERMApiGetProfileUploadRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProfileUpload(requestParameters.id, requestParameters.attributeId, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get profiles * @summary Get profiles * @param {ProfilesNERMApiGetProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfiles(requestParameters: ProfilesNERMApiGetProfilesRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProfiles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.excludeAttributes, requestParameters.name, requestParameters.profileTypeId, requestParameters.status, requestParameters.metadata, requestParameters.afterId, requestParameters.updatedAfter, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a profile by id * @summary Update a profile by id * @param {ProfilesNERMApiPatchProfileByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchProfileById(requestParameters: ProfilesNERMApiPatchProfileByIdRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchProfileById(requestParameters.id, requestParameters.submitProfileRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update multiple profiles * @summary Update multiple profiles * @param {ProfilesNERMApiPatchProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchProfiles(requestParameters: ProfilesNERMApiPatchProfilesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchProfiles(requestParameters.createProfilesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a profile * @summary Create a profile * @param {ProfilesNERMApiSubmitProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitProfile(requestParameters: ProfilesNERMApiSubmitProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitProfile(requestParameters.submitProfileRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Uploads a new profile avatar * @summary Uploads new profile avatar * @param {ProfilesNERMApiSubmitProfileAvatarRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitProfileAvatar(requestParameters: ProfilesNERMApiSubmitProfileAvatarRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitProfileAvatar(requestParameters.id, requestParameters.file, axiosOptions).then((request) => request(axios, basePath)); }, /** * Uploads a new attachment attribute value to a profile. The upload must be a FORM data type; this is not a JSON API. The upload must include the binary content of the payload under the \'file\' named form element. The upload must not attempt to include the file name or its content type as a other form or JSON as parameters. The upload must not attempt to upload the file body as the POST body payload; it has to arrive as a FORM parameter. Do not use a `File/Binary` payload type for the POST operation in your API client. * @summary Uploads profile attachment attribute * @param {ProfilesNERMApiSubmitProfileUploadRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitProfileUpload(requestParameters: ProfilesNERMApiSubmitProfileUploadRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitProfileUpload(requestParameters.id, requestParameters.attributeId, requestParameters.file, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createProfiles operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiCreateProfilesRequest */ export interface ProfilesNERMApiCreateProfilesRequest { /** * * @type {CreateProfilesRequestNERM} * @memberof ProfilesNERMApiCreateProfiles */ readonly createProfilesRequestNERM: CreateProfilesRequestNERM } /** * Request parameters for deleteProfileById operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiDeleteProfileByIdRequest */ export interface ProfilesNERMApiDeleteProfileByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ProfilesNERMApiDeleteProfileById */ readonly id: string } /** * Request parameters for deleteProfiles operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiDeleteProfilesRequest */ export interface ProfilesNERMApiDeleteProfilesRequest { /** * * @type {CreateProfilesRequestNERM} * @memberof ProfilesNERMApiDeleteProfiles */ readonly createProfilesRequestNERM: CreateProfilesRequestNERM } /** * Request parameters for getProfileAvatar operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiGetProfileAvatarRequest */ export interface ProfilesNERMApiGetProfileAvatarRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ProfilesNERMApiGetProfileAvatar */ readonly id: string } /** * Request parameters for getProfileById operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiGetProfileByIdRequest */ export interface ProfilesNERMApiGetProfileByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ProfilesNERMApiGetProfileById */ readonly id: string } /** * Request parameters for getProfileUpload operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiGetProfileUploadRequest */ export interface ProfilesNERMApiGetProfileUploadRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ProfilesNERMApiGetProfileUpload */ readonly id: string /** * The id of the attachment attribute * @type {string} * @memberof ProfilesNERMApiGetProfileUpload */ readonly attributeId: string } /** * Request parameters for getProfiles operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiGetProfilesRequest */ export interface ProfilesNERMApiGetProfilesRequest { /** * The maximum number of items to return. * @type {number} * @memberof ProfilesNERMApiGetProfiles */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof ProfilesNERMApiGetProfiles */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof ProfilesNERMApiGetProfiles */ readonly order?: string /** * Allows for optimization by not returning the associated attribute data for the returned profiles * @type {boolean} * @memberof ProfilesNERMApiGetProfiles */ readonly excludeAttributes?: boolean /** * object name for filtering * @type {string} * @memberof ProfilesNERMApiGetProfiles */ readonly name?: string /** * Profile Type ID for filtering * @type {string} * @memberof ProfilesNERMApiGetProfiles */ readonly profileTypeId?: string /** * status value for filtering * @type {'Active' | 'Inactive' | 'On Leave' | 'Terminated'} * @memberof ProfilesNERMApiGetProfiles */ readonly status?: GetProfilesStatusNerm /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof ProfilesNERMApiGetProfiles */ readonly metadata?: boolean /** * Represents the ID where the query should begin from. If blank, it represents the first ID. When used, forces sorting by ID ascending and does not allow use of `offset`. When `after_id` is specified it changes the mode of the API such that any filter parameters other than `profile_type_id`, `limit`, and `offset` are not supported and will be either silently ignored or result in an HTTP 400 error. For example you can not include an `after_id` along with an `archived=false` in the same request. Can be used alongside `metadata` parameter. * @type {string} * @memberof ProfilesNERMApiGetProfiles */ readonly afterId?: string /** * Adds support for filtering profiles based on the date of the latest modification made on them. Can be used alongside the after_id parameter. * @type {string} * @memberof ProfilesNERMApiGetProfiles */ readonly updatedAfter?: string } /** * Request parameters for patchProfileById operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiPatchProfileByIdRequest */ export interface ProfilesNERMApiPatchProfileByIdRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ProfilesNERMApiPatchProfileById */ readonly id: string /** * * @type {SubmitProfileRequestNERM} * @memberof ProfilesNERMApiPatchProfileById */ readonly submitProfileRequestNERM: SubmitProfileRequestNERM } /** * Request parameters for patchProfiles operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiPatchProfilesRequest */ export interface ProfilesNERMApiPatchProfilesRequest { /** * * @type {CreateProfilesRequestNERM} * @memberof ProfilesNERMApiPatchProfiles */ readonly createProfilesRequestNERM: CreateProfilesRequestNERM } /** * Request parameters for submitProfile operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiSubmitProfileRequest */ export interface ProfilesNERMApiSubmitProfileRequest { /** * * @type {SubmitProfileRequestNERM} * @memberof ProfilesNERMApiSubmitProfile */ readonly submitProfileRequestNERM: SubmitProfileRequestNERM } /** * Request parameters for submitProfileAvatar operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiSubmitProfileAvatarRequest */ export interface ProfilesNERMApiSubmitProfileAvatarRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ProfilesNERMApiSubmitProfileAvatar */ readonly id: string /** * * @type {File} * @memberof ProfilesNERMApiSubmitProfileAvatar */ readonly file?: File } /** * Request parameters for submitProfileUpload operation in ProfilesNERMApi. * @export * @interface ProfilesNERMApiSubmitProfileUploadRequest */ export interface ProfilesNERMApiSubmitProfileUploadRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof ProfilesNERMApiSubmitProfileUpload */ readonly id: string /** * The id of the attachment attribute * @type {string} * @memberof ProfilesNERMApiSubmitProfileUpload */ readonly attributeId: string /** * * @type {File} * @memberof ProfilesNERMApiSubmitProfileUpload */ readonly file?: File } /** * ProfilesNERMApi - object-oriented interface * @export * @class ProfilesNERMApi * @extends {BaseAPI} */ export class ProfilesNERMApi extends BaseAPI { /** * Create multiple profiles * @summary Create multiple profiles * @param {ProfilesNERMApiCreateProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public createProfiles(requestParameters: ProfilesNERMApiCreateProfilesRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).createProfiles(requestParameters.createProfilesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete a single profile * @summary Delete a single profile * @param {ProfilesNERMApiDeleteProfileByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public deleteProfileById(requestParameters: ProfilesNERMApiDeleteProfileByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).deleteProfileById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete multiple profiles * @summary Delete multiple profiles * @param {ProfilesNERMApiDeleteProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public deleteProfiles(requestParameters: ProfilesNERMApiDeleteProfilesRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).deleteProfiles(requestParameters.createProfilesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Retrieves the URL of the profile avatar * @summary Retrieves profile avatar URL * @param {ProfilesNERMApiGetProfileAvatarRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public getProfileAvatar(requestParameters: ProfilesNERMApiGetProfileAvatarRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).getProfileAvatar(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Find profile by id * @summary Find profile by id * @param {ProfilesNERMApiGetProfileByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public getProfileById(requestParameters: ProfilesNERMApiGetProfileByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).getProfileById(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Retrieves the URL of an attachment attribute value from a profile * @summary Retrieves profile attribute attachment URL * @param {ProfilesNERMApiGetProfileUploadRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public getProfileUpload(requestParameters: ProfilesNERMApiGetProfileUploadRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).getProfileUpload(requestParameters.id, requestParameters.attributeId, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get profiles * @summary Get profiles * @param {ProfilesNERMApiGetProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public getProfiles(requestParameters: ProfilesNERMApiGetProfilesRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).getProfiles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.excludeAttributes, requestParameters.name, requestParameters.profileTypeId, requestParameters.status, requestParameters.metadata, requestParameters.afterId, requestParameters.updatedAfter, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a profile by id * @summary Update a profile by id * @param {ProfilesNERMApiPatchProfileByIdRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public patchProfileById(requestParameters: ProfilesNERMApiPatchProfileByIdRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).patchProfileById(requestParameters.id, requestParameters.submitProfileRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update multiple profiles * @summary Update multiple profiles * @param {ProfilesNERMApiPatchProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public patchProfiles(requestParameters: ProfilesNERMApiPatchProfilesRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).patchProfiles(requestParameters.createProfilesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a profile * @summary Create a profile * @param {ProfilesNERMApiSubmitProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public submitProfile(requestParameters: ProfilesNERMApiSubmitProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).submitProfile(requestParameters.submitProfileRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Uploads a new profile avatar * @summary Uploads new profile avatar * @param {ProfilesNERMApiSubmitProfileAvatarRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public submitProfileAvatar(requestParameters: ProfilesNERMApiSubmitProfileAvatarRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).submitProfileAvatar(requestParameters.id, requestParameters.file, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Uploads a new attachment attribute value to a profile. The upload must be a FORM data type; this is not a JSON API. The upload must include the binary content of the payload under the \'file\' named form element. The upload must not attempt to include the file name or its content type as a other form or JSON as parameters. The upload must not attempt to upload the file body as the POST body payload; it has to arrive as a FORM parameter. Do not use a `File/Binary` payload type for the POST operation in your API client. * @summary Uploads profile attachment attribute * @param {ProfilesNERMApiSubmitProfileUploadRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ProfilesNERMApi */ public submitProfileUpload(requestParameters: ProfilesNERMApiSubmitProfileUploadRequest, axiosOptions?: RawAxiosRequestConfig) { return ProfilesNERMApiFp(this.configuration).submitProfileUpload(requestParameters.id, requestParameters.attributeId, requestParameters.file, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetProfilesStatusNerm = { Active: 'Active', Inactive: 'Inactive', OnLeave: 'On Leave', Terminated: 'Terminated' } as const; export type GetProfilesStatusNerm = typeof GetProfilesStatusNerm[keyof typeof GetProfilesStatusNerm]; /** * RiskLevelsNERMApi - axios parameter creator * @export */ export const RiskLevelsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Find risk level data by id * @summary Find risk level data * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRiskLevel: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getRiskLevel', 'id', id) const localVarPath = `/risk_levels/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint can retrieve risk level data in bulk from Lifecycle * @summary Get risk level data * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [label] The attribute label to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRiskLevels: async (limit?: number, offset?: number, order?: string, label?: string, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/risk_levels`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (label !== undefined) { localVarQueryParameter['label'] = label; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * RiskLevelsNERMApi - functional programming interface * @export */ export const RiskLevelsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = RiskLevelsNERMApiAxiosParamCreator(configuration) return { /** * Find risk level data by id * @summary Find risk level data * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getRiskLevel(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRiskLevel(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RiskLevelsNERMApi.getRiskLevel']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint can retrieve risk level data in bulk from Lifecycle * @summary Get risk level data * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [label] The attribute label to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getRiskLevels(limit?: number, offset?: number, order?: string, label?: string, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRiskLevels(limit, offset, order, label, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RiskLevelsNERMApi.getRiskLevels']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * RiskLevelsNERMApi - factory interface * @export */ export const RiskLevelsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = RiskLevelsNERMApiFp(configuration) return { /** * Find risk level data by id * @summary Find risk level data * @param {RiskLevelsNERMApiGetRiskLevelRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRiskLevel(requestParameters: RiskLevelsNERMApiGetRiskLevelRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRiskLevel(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint can retrieve risk level data in bulk from Lifecycle * @summary Get risk level data * @param {RiskLevelsNERMApiGetRiskLevelsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRiskLevels(requestParameters: RiskLevelsNERMApiGetRiskLevelsRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRiskLevels(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.label, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for getRiskLevel operation in RiskLevelsNERMApi. * @export * @interface RiskLevelsNERMApiGetRiskLevelRequest */ export interface RiskLevelsNERMApiGetRiskLevelRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof RiskLevelsNERMApiGetRiskLevel */ readonly id: string } /** * Request parameters for getRiskLevels operation in RiskLevelsNERMApi. * @export * @interface RiskLevelsNERMApiGetRiskLevelsRequest */ export interface RiskLevelsNERMApiGetRiskLevelsRequest { /** * The maximum number of items to return. * @type {number} * @memberof RiskLevelsNERMApiGetRiskLevels */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof RiskLevelsNERMApiGetRiskLevels */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof RiskLevelsNERMApiGetRiskLevels */ readonly order?: string /** * The attribute label to filter by * @type {string} * @memberof RiskLevelsNERMApiGetRiskLevels */ readonly label?: string /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof RiskLevelsNERMApiGetRiskLevels */ readonly metadata?: boolean } /** * RiskLevelsNERMApi - object-oriented interface * @export * @class RiskLevelsNERMApi * @extends {BaseAPI} */ export class RiskLevelsNERMApi extends BaseAPI { /** * Find risk level data by id * @summary Find risk level data * @param {RiskLevelsNERMApiGetRiskLevelRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RiskLevelsNERMApi */ public getRiskLevel(requestParameters: RiskLevelsNERMApiGetRiskLevelRequest, axiosOptions?: RawAxiosRequestConfig) { return RiskLevelsNERMApiFp(this.configuration).getRiskLevel(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint can retrieve risk level data in bulk from Lifecycle * @summary Get risk level data * @param {RiskLevelsNERMApiGetRiskLevelsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RiskLevelsNERMApi */ public getRiskLevels(requestParameters: RiskLevelsNERMApiGetRiskLevelsRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return RiskLevelsNERMApiFp(this.configuration).getRiskLevels(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.label, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * RiskScoresNERMApi - axios parameter creator * @export */ export const RiskScoresNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Find risk score data by id * @summary Find risk score data * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRiskScore: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getRiskScore', 'id', id) const localVarPath = `/risk_scores/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint can retrieve risk score data in bulk from Lifecycle * @summary Get risk score data * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [objectId] ID of an object for filtering. Used along with object_type * @param {GetRiskScoresObjectTypeNerm} [objectType] Type of object that object_id represents * @param {string} [overallRiskLevelId] Overall risk level to filter by * @param {string} [impactRiskLevelId] Impact risk level to filter by * @param {string} [probabilityRiskLevelId] Probability risk level to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRiskScores: async (limit?: number, offset?: number, order?: string, objectId?: string, objectType?: GetRiskScoresObjectTypeNerm, overallRiskLevelId?: string, impactRiskLevelId?: string, probabilityRiskLevelId?: string, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/risk_scores`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (objectId !== undefined) { localVarQueryParameter['object_id'] = objectId; } if (objectType !== undefined) { localVarQueryParameter['object_type'] = objectType; } if (overallRiskLevelId !== undefined) { localVarQueryParameter['overall_risk_level_id'] = overallRiskLevelId; } if (impactRiskLevelId !== undefined) { localVarQueryParameter['impact_risk_level_id'] = impactRiskLevelId; } if (probabilityRiskLevelId !== undefined) { localVarQueryParameter['probability_risk_level_id'] = probabilityRiskLevelId; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * RiskScoresNERMApi - functional programming interface * @export */ export const RiskScoresNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = RiskScoresNERMApiAxiosParamCreator(configuration) return { /** * Find risk score data by id * @summary Find risk score data * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getRiskScore(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRiskScore(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RiskScoresNERMApi.getRiskScore']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint can retrieve risk score data in bulk from Lifecycle * @summary Get risk score data * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [objectId] ID of an object for filtering. Used along with object_type * @param {GetRiskScoresObjectTypeNerm} [objectType] Type of object that object_id represents * @param {string} [overallRiskLevelId] Overall risk level to filter by * @param {string} [impactRiskLevelId] Impact risk level to filter by * @param {string} [probabilityRiskLevelId] Probability risk level to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getRiskScores(limit?: number, offset?: number, order?: string, objectId?: string, objectType?: GetRiskScoresObjectTypeNerm, overallRiskLevelId?: string, impactRiskLevelId?: string, probabilityRiskLevelId?: string, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRiskScores(limit, offset, order, objectId, objectType, overallRiskLevelId, impactRiskLevelId, probabilityRiskLevelId, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RiskScoresNERMApi.getRiskScores']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * RiskScoresNERMApi - factory interface * @export */ export const RiskScoresNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = RiskScoresNERMApiFp(configuration) return { /** * Find risk score data by id * @summary Find risk score data * @param {RiskScoresNERMApiGetRiskScoreRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRiskScore(requestParameters: RiskScoresNERMApiGetRiskScoreRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRiskScore(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint can retrieve risk score data in bulk from Lifecycle * @summary Get risk score data * @param {RiskScoresNERMApiGetRiskScoresRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRiskScores(requestParameters: RiskScoresNERMApiGetRiskScoresRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRiskScores(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.objectId, requestParameters.objectType, requestParameters.overallRiskLevelId, requestParameters.impactRiskLevelId, requestParameters.probabilityRiskLevelId, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for getRiskScore operation in RiskScoresNERMApi. * @export * @interface RiskScoresNERMApiGetRiskScoreRequest */ export interface RiskScoresNERMApiGetRiskScoreRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof RiskScoresNERMApiGetRiskScore */ readonly id: string } /** * Request parameters for getRiskScores operation in RiskScoresNERMApi. * @export * @interface RiskScoresNERMApiGetRiskScoresRequest */ export interface RiskScoresNERMApiGetRiskScoresRequest { /** * The maximum number of items to return. * @type {number} * @memberof RiskScoresNERMApiGetRiskScores */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof RiskScoresNERMApiGetRiskScores */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof RiskScoresNERMApiGetRiskScores */ readonly order?: string /** * ID of an object for filtering. Used along with object_type * @type {string} * @memberof RiskScoresNERMApiGetRiskScores */ readonly objectId?: string /** * Type of object that object_id represents * @type {'Profile' | 'WorkflowSession'} * @memberof RiskScoresNERMApiGetRiskScores */ readonly objectType?: GetRiskScoresObjectTypeNerm /** * Overall risk level to filter by * @type {string} * @memberof RiskScoresNERMApiGetRiskScores */ readonly overallRiskLevelId?: string /** * Impact risk level to filter by * @type {string} * @memberof RiskScoresNERMApiGetRiskScores */ readonly impactRiskLevelId?: string /** * Probability risk level to filter by * @type {string} * @memberof RiskScoresNERMApiGetRiskScores */ readonly probabilityRiskLevelId?: string /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof RiskScoresNERMApiGetRiskScores */ readonly metadata?: boolean } /** * RiskScoresNERMApi - object-oriented interface * @export * @class RiskScoresNERMApi * @extends {BaseAPI} */ export class RiskScoresNERMApi extends BaseAPI { /** * Find risk score data by id * @summary Find risk score data * @param {RiskScoresNERMApiGetRiskScoreRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RiskScoresNERMApi */ public getRiskScore(requestParameters: RiskScoresNERMApiGetRiskScoreRequest, axiosOptions?: RawAxiosRequestConfig) { return RiskScoresNERMApiFp(this.configuration).getRiskScore(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint can retrieve risk score data in bulk from Lifecycle * @summary Get risk score data * @param {RiskScoresNERMApiGetRiskScoresRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RiskScoresNERMApi */ public getRiskScores(requestParameters: RiskScoresNERMApiGetRiskScoresRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return RiskScoresNERMApiFp(this.configuration).getRiskScores(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.objectId, requestParameters.objectType, requestParameters.overallRiskLevelId, requestParameters.impactRiskLevelId, requestParameters.probabilityRiskLevelId, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetRiskScoresObjectTypeNerm = { Profile: 'Profile', WorkflowSession: 'WorkflowSession' } as const; export type GetRiskScoresObjectTypeNerm = typeof GetRiskScoresObjectTypeNerm[keyof typeof GetRiskScoresObjectTypeNerm]; /** * RoleProfilesNERMApi - axios parameter creator * @export */ export const RoleProfilesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Delete a role profile assignment * @summary Delete a role profile assignment * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteRoleProfile: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteRoleProfile', 'id', id) const localVarPath = `/role_profile/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Find role-profile contributor relationship by id * @summary Find role-profile contributor relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRoleProfile: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getRoleProfile', 'id', id) const localVarPath = `/role_profiles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get role-profile contributor relationships * @summary Get role-profile contributor relationships * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [roleId] The ID of a role for filtering * @param {string} [profileId] Profile ID to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRoleProfiles: async (limit?: number, offset?: number, order?: string, roleId?: string, profileId?: string, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/role_profiles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (roleId !== undefined) { localVarQueryParameter['role_id'] = roleId; } if (profileId !== undefined) { localVarQueryParameter['profile_id'] = profileId; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a role-profile contributor relationship by id * @summary Update a role-profile contributor relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitRoleProfileRequestNERM} submitRoleProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchRoleProfile: async (id: string, submitRoleProfileRequestNERM: SubmitRoleProfileRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchRoleProfile', 'id', id) // verify required parameter 'submitRoleProfileRequestNERM' is not null or undefined assertParamExists('patchRoleProfile', 'submitRoleProfileRequestNERM', submitRoleProfileRequestNERM) const localVarPath = `/role_profiles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitRoleProfileRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update multiple role-profile contributor relationships * @summary Update multiple role-profile contributor relationships * @param {SubmitRoleProfilesRequestNERM} submitRoleProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchRoleProfiles: async (submitRoleProfilesRequestNERM: SubmitRoleProfilesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitRoleProfilesRequestNERM' is not null or undefined assertParamExists('patchRoleProfiles', 'submitRoleProfilesRequestNERM', submitRoleProfilesRequestNERM) const localVarPath = `/role_profiles`; // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitRoleProfilesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a role-profile contributor relationship * @summary Create a role-profile contributor relationship * @param {SubmitRoleProfileRequestNERM} submitRoleProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitRoleProfile: async (submitRoleProfileRequestNERM: SubmitRoleProfileRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitRoleProfileRequestNERM' is not null or undefined assertParamExists('submitRoleProfile', 'submitRoleProfileRequestNERM', submitRoleProfileRequestNERM) const localVarPath = `/role_profile`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitRoleProfileRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create multiple role-profile contributor relationships * @summary Create multiple role-profile contributor relationships * @param {SubmitRoleProfilesRequestNERM} submitRoleProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitRoleProfiles: async (submitRoleProfilesRequestNERM: SubmitRoleProfilesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitRoleProfilesRequestNERM' is not null or undefined assertParamExists('submitRoleProfiles', 'submitRoleProfilesRequestNERM', submitRoleProfilesRequestNERM) const localVarPath = `/role_profiles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitRoleProfilesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * RoleProfilesNERMApi - functional programming interface * @export */ export const RoleProfilesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = RoleProfilesNERMApiAxiosParamCreator(configuration) return { /** * Delete a role profile assignment * @summary Delete a role profile assignment * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteRoleProfile(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRoleProfile(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RoleProfilesNERMApi.deleteRoleProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Find role-profile contributor relationship by id * @summary Find role-profile contributor relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getRoleProfile(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRoleProfile(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RoleProfilesNERMApi.getRoleProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get role-profile contributor relationships * @summary Get role-profile contributor relationships * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [roleId] The ID of a role for filtering * @param {string} [profileId] Profile ID to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getRoleProfiles(limit?: number, offset?: number, order?: string, roleId?: string, profileId?: string, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRoleProfiles(limit, offset, order, roleId, profileId, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RoleProfilesNERMApi.getRoleProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a role-profile contributor relationship by id * @summary Update a role-profile contributor relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitRoleProfileRequestNERM} submitRoleProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchRoleProfile(id: string, submitRoleProfileRequestNERM: SubmitRoleProfileRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchRoleProfile(id, submitRoleProfileRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RoleProfilesNERMApi.patchRoleProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update multiple role-profile contributor relationships * @summary Update multiple role-profile contributor relationships * @param {SubmitRoleProfilesRequestNERM} submitRoleProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchRoleProfiles(submitRoleProfilesRequestNERM: SubmitRoleProfilesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchRoleProfiles(submitRoleProfilesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RoleProfilesNERMApi.patchRoleProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a role-profile contributor relationship * @summary Create a role-profile contributor relationship * @param {SubmitRoleProfileRequestNERM} submitRoleProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitRoleProfile(submitRoleProfileRequestNERM: SubmitRoleProfileRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitRoleProfile(submitRoleProfileRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RoleProfilesNERMApi.submitRoleProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create multiple role-profile contributor relationships * @summary Create multiple role-profile contributor relationships * @param {SubmitRoleProfilesRequestNERM} submitRoleProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitRoleProfiles(submitRoleProfilesRequestNERM: SubmitRoleProfilesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitRoleProfiles(submitRoleProfilesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RoleProfilesNERMApi.submitRoleProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * RoleProfilesNERMApi - factory interface * @export */ export const RoleProfilesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = RoleProfilesNERMApiFp(configuration) return { /** * Delete a role profile assignment * @summary Delete a role profile assignment * @param {RoleProfilesNERMApiDeleteRoleProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteRoleProfile(requestParameters: RoleProfilesNERMApiDeleteRoleProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteRoleProfile(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Find role-profile contributor relationship by id * @summary Find role-profile contributor relationship * @param {RoleProfilesNERMApiGetRoleProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRoleProfile(requestParameters: RoleProfilesNERMApiGetRoleProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRoleProfile(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get role-profile contributor relationships * @summary Get role-profile contributor relationships * @param {RoleProfilesNERMApiGetRoleProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRoleProfiles(requestParameters: RoleProfilesNERMApiGetRoleProfilesRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRoleProfiles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.roleId, requestParameters.profileId, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a role-profile contributor relationship by id * @summary Update a role-profile contributor relationship * @param {RoleProfilesNERMApiPatchRoleProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchRoleProfile(requestParameters: RoleProfilesNERMApiPatchRoleProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchRoleProfile(requestParameters.id, requestParameters.submitRoleProfileRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update multiple role-profile contributor relationships * @summary Update multiple role-profile contributor relationships * @param {RoleProfilesNERMApiPatchRoleProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchRoleProfiles(requestParameters: RoleProfilesNERMApiPatchRoleProfilesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchRoleProfiles(requestParameters.submitRoleProfilesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a role-profile contributor relationship * @summary Create a role-profile contributor relationship * @param {RoleProfilesNERMApiSubmitRoleProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitRoleProfile(requestParameters: RoleProfilesNERMApiSubmitRoleProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitRoleProfile(requestParameters.submitRoleProfileRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create multiple role-profile contributor relationships * @summary Create multiple role-profile contributor relationships * @param {RoleProfilesNERMApiSubmitRoleProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitRoleProfiles(requestParameters: RoleProfilesNERMApiSubmitRoleProfilesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitRoleProfiles(requestParameters.submitRoleProfilesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for deleteRoleProfile operation in RoleProfilesNERMApi. * @export * @interface RoleProfilesNERMApiDeleteRoleProfileRequest */ export interface RoleProfilesNERMApiDeleteRoleProfileRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof RoleProfilesNERMApiDeleteRoleProfile */ readonly id: string } /** * Request parameters for getRoleProfile operation in RoleProfilesNERMApi. * @export * @interface RoleProfilesNERMApiGetRoleProfileRequest */ export interface RoleProfilesNERMApiGetRoleProfileRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof RoleProfilesNERMApiGetRoleProfile */ readonly id: string } /** * Request parameters for getRoleProfiles operation in RoleProfilesNERMApi. * @export * @interface RoleProfilesNERMApiGetRoleProfilesRequest */ export interface RoleProfilesNERMApiGetRoleProfilesRequest { /** * The maximum number of items to return. * @type {number} * @memberof RoleProfilesNERMApiGetRoleProfiles */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof RoleProfilesNERMApiGetRoleProfiles */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof RoleProfilesNERMApiGetRoleProfiles */ readonly order?: string /** * The ID of a role for filtering * @type {string} * @memberof RoleProfilesNERMApiGetRoleProfiles */ readonly roleId?: string /** * Profile ID to filter by * @type {string} * @memberof RoleProfilesNERMApiGetRoleProfiles */ readonly profileId?: string /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof RoleProfilesNERMApiGetRoleProfiles */ readonly metadata?: boolean } /** * Request parameters for patchRoleProfile operation in RoleProfilesNERMApi. * @export * @interface RoleProfilesNERMApiPatchRoleProfileRequest */ export interface RoleProfilesNERMApiPatchRoleProfileRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof RoleProfilesNERMApiPatchRoleProfile */ readonly id: string /** * * @type {SubmitRoleProfileRequestNERM} * @memberof RoleProfilesNERMApiPatchRoleProfile */ readonly submitRoleProfileRequestNERM: SubmitRoleProfileRequestNERM } /** * Request parameters for patchRoleProfiles operation in RoleProfilesNERMApi. * @export * @interface RoleProfilesNERMApiPatchRoleProfilesRequest */ export interface RoleProfilesNERMApiPatchRoleProfilesRequest { /** * * @type {SubmitRoleProfilesRequestNERM} * @memberof RoleProfilesNERMApiPatchRoleProfiles */ readonly submitRoleProfilesRequestNERM: SubmitRoleProfilesRequestNERM } /** * Request parameters for submitRoleProfile operation in RoleProfilesNERMApi. * @export * @interface RoleProfilesNERMApiSubmitRoleProfileRequest */ export interface RoleProfilesNERMApiSubmitRoleProfileRequest { /** * * @type {SubmitRoleProfileRequestNERM} * @memberof RoleProfilesNERMApiSubmitRoleProfile */ readonly submitRoleProfileRequestNERM: SubmitRoleProfileRequestNERM } /** * Request parameters for submitRoleProfiles operation in RoleProfilesNERMApi. * @export * @interface RoleProfilesNERMApiSubmitRoleProfilesRequest */ export interface RoleProfilesNERMApiSubmitRoleProfilesRequest { /** * * @type {SubmitRoleProfilesRequestNERM} * @memberof RoleProfilesNERMApiSubmitRoleProfiles */ readonly submitRoleProfilesRequestNERM: SubmitRoleProfilesRequestNERM } /** * RoleProfilesNERMApi - object-oriented interface * @export * @class RoleProfilesNERMApi * @extends {BaseAPI} */ export class RoleProfilesNERMApi extends BaseAPI { /** * Delete a role profile assignment * @summary Delete a role profile assignment * @param {RoleProfilesNERMApiDeleteRoleProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RoleProfilesNERMApi */ public deleteRoleProfile(requestParameters: RoleProfilesNERMApiDeleteRoleProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return RoleProfilesNERMApiFp(this.configuration).deleteRoleProfile(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Find role-profile contributor relationship by id * @summary Find role-profile contributor relationship * @param {RoleProfilesNERMApiGetRoleProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RoleProfilesNERMApi */ public getRoleProfile(requestParameters: RoleProfilesNERMApiGetRoleProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return RoleProfilesNERMApiFp(this.configuration).getRoleProfile(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get role-profile contributor relationships * @summary Get role-profile contributor relationships * @param {RoleProfilesNERMApiGetRoleProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RoleProfilesNERMApi */ public getRoleProfiles(requestParameters: RoleProfilesNERMApiGetRoleProfilesRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return RoleProfilesNERMApiFp(this.configuration).getRoleProfiles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.roleId, requestParameters.profileId, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a role-profile contributor relationship by id * @summary Update a role-profile contributor relationship * @param {RoleProfilesNERMApiPatchRoleProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RoleProfilesNERMApi */ public patchRoleProfile(requestParameters: RoleProfilesNERMApiPatchRoleProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return RoleProfilesNERMApiFp(this.configuration).patchRoleProfile(requestParameters.id, requestParameters.submitRoleProfileRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update multiple role-profile contributor relationships * @summary Update multiple role-profile contributor relationships * @param {RoleProfilesNERMApiPatchRoleProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RoleProfilesNERMApi */ public patchRoleProfiles(requestParameters: RoleProfilesNERMApiPatchRoleProfilesRequest, axiosOptions?: RawAxiosRequestConfig) { return RoleProfilesNERMApiFp(this.configuration).patchRoleProfiles(requestParameters.submitRoleProfilesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a role-profile contributor relationship * @summary Create a role-profile contributor relationship * @param {RoleProfilesNERMApiSubmitRoleProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RoleProfilesNERMApi */ public submitRoleProfile(requestParameters: RoleProfilesNERMApiSubmitRoleProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return RoleProfilesNERMApiFp(this.configuration).submitRoleProfile(requestParameters.submitRoleProfileRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create multiple role-profile contributor relationships * @summary Create multiple role-profile contributor relationships * @param {RoleProfilesNERMApiSubmitRoleProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RoleProfilesNERMApi */ public submitRoleProfiles(requestParameters: RoleProfilesNERMApiSubmitRoleProfilesRequest, axiosOptions?: RawAxiosRequestConfig) { return RoleProfilesNERMApiFp(this.configuration).submitRoleProfiles(requestParameters.submitRoleProfilesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * RolesNERMApi - axios parameter creator * @export */ export const RolesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Info for a specific user role * @summary Find role by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRole: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getRole', 'id', id) const localVarPath = `/roles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint can retrieve roles from NERM. Optionally you can provide parameters to filter results. * @summary Get roles * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {GetRolesTypeNerm} [type] Filter roles by type. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRoles: async (limit?: number, offset?: number, order?: string, metadata?: boolean, type?: GetRolesTypeNerm, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/roles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } if (type !== undefined) { localVarQueryParameter['type'] = type; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update an existing role * @summary Update an existing role * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitRoleRequestNERM} submitRoleRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchRole: async (id: string, submitRoleRequestNERM: SubmitRoleRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchRole', 'id', id) // verify required parameter 'submitRoleRequestNERM' is not null or undefined assertParamExists('patchRole', 'submitRoleRequestNERM', submitRoleRequestNERM) const localVarPath = `/roles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitRoleRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update multiple users * @summary Update multiple roles * @param {SubmitRolesRequestNERM} submitRolesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchRoles: async (submitRolesRequestNERM: SubmitRolesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitRolesRequestNERM' is not null or undefined assertParamExists('patchRoles', 'submitRolesRequestNERM', submitRolesRequestNERM) const localVarPath = `/roles`; // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitRolesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a new role * @summary Create a new role * @param {SubmitRoleRequestNERM} submitRoleRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitRole: async (submitRoleRequestNERM: SubmitRoleRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitRoleRequestNERM' is not null or undefined assertParamExists('submitRole', 'submitRoleRequestNERM', submitRoleRequestNERM) const localVarPath = `/role`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitRoleRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create multiple new users * @summary Create multiple new roles * @param {SubmitRolesRequestNERM} submitRolesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitRoles: async (submitRolesRequestNERM: SubmitRolesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitRolesRequestNERM' is not null or undefined assertParamExists('submitRoles', 'submitRolesRequestNERM', submitRolesRequestNERM) const localVarPath = `/roles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitRolesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * RolesNERMApi - functional programming interface * @export */ export const RolesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = RolesNERMApiAxiosParamCreator(configuration) return { /** * Info for a specific user role * @summary Find role by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getRole(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRole(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RolesNERMApi.getRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint can retrieve roles from NERM. Optionally you can provide parameters to filter results. * @summary Get roles * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {GetRolesTypeNerm} [type] Filter roles by type. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getRoles(limit?: number, offset?: number, order?: string, metadata?: boolean, type?: GetRolesTypeNerm, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRoles(limit, offset, order, metadata, type, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RolesNERMApi.getRoles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update an existing role * @summary Update an existing role * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitRoleRequestNERM} submitRoleRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchRole(id: string, submitRoleRequestNERM: SubmitRoleRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchRole(id, submitRoleRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RolesNERMApi.patchRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update multiple users * @summary Update multiple roles * @param {SubmitRolesRequestNERM} submitRolesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchRoles(submitRolesRequestNERM: SubmitRolesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchRoles(submitRolesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RolesNERMApi.patchRoles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new role * @summary Create a new role * @param {SubmitRoleRequestNERM} submitRoleRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitRole(submitRoleRequestNERM: SubmitRoleRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitRole(submitRoleRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RolesNERMApi.submitRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create multiple new users * @summary Create multiple new roles * @param {SubmitRolesRequestNERM} submitRolesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitRoles(submitRolesRequestNERM: SubmitRolesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitRoles(submitRolesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RolesNERMApi.submitRoles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * RolesNERMApi - factory interface * @export */ export const RolesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = RolesNERMApiFp(configuration) return { /** * Info for a specific user role * @summary Find role by id * @param {RolesNERMApiGetRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRole(requestParameters: RolesNERMApiGetRoleRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRole(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint can retrieve roles from NERM. Optionally you can provide parameters to filter results. * @summary Get roles * @param {RolesNERMApiGetRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getRoles(requestParameters: RolesNERMApiGetRolesRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRoles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.metadata, requestParameters.type, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update an existing role * @summary Update an existing role * @param {RolesNERMApiPatchRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchRole(requestParameters: RolesNERMApiPatchRoleRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchRole(requestParameters.id, requestParameters.submitRoleRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update multiple users * @summary Update multiple roles * @param {RolesNERMApiPatchRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchRoles(requestParameters: RolesNERMApiPatchRolesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchRoles(requestParameters.submitRolesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a new role * @summary Create a new role * @param {RolesNERMApiSubmitRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitRole(requestParameters: RolesNERMApiSubmitRoleRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitRole(requestParameters.submitRoleRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create multiple new users * @summary Create multiple new roles * @param {RolesNERMApiSubmitRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitRoles(requestParameters: RolesNERMApiSubmitRolesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitRoles(requestParameters.submitRolesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for getRole operation in RolesNERMApi. * @export * @interface RolesNERMApiGetRoleRequest */ export interface RolesNERMApiGetRoleRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof RolesNERMApiGetRole */ readonly id: string } /** * Request parameters for getRoles operation in RolesNERMApi. * @export * @interface RolesNERMApiGetRolesRequest */ export interface RolesNERMApiGetRolesRequest { /** * The maximum number of items to return. * @type {number} * @memberof RolesNERMApiGetRoles */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof RolesNERMApiGetRoles */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof RolesNERMApiGetRoles */ readonly order?: string /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof RolesNERMApiGetRoles */ readonly metadata?: boolean /** * Filter roles by type. * @type {'NeprofileRole' | 'NeaccessRole' | 'IdproxyRole'} * @memberof RolesNERMApiGetRoles */ readonly type?: GetRolesTypeNerm } /** * Request parameters for patchRole operation in RolesNERMApi. * @export * @interface RolesNERMApiPatchRoleRequest */ export interface RolesNERMApiPatchRoleRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof RolesNERMApiPatchRole */ readonly id: string /** * * @type {SubmitRoleRequestNERM} * @memberof RolesNERMApiPatchRole */ readonly submitRoleRequestNERM: SubmitRoleRequestNERM } /** * Request parameters for patchRoles operation in RolesNERMApi. * @export * @interface RolesNERMApiPatchRolesRequest */ export interface RolesNERMApiPatchRolesRequest { /** * * @type {SubmitRolesRequestNERM} * @memberof RolesNERMApiPatchRoles */ readonly submitRolesRequestNERM: SubmitRolesRequestNERM } /** * Request parameters for submitRole operation in RolesNERMApi. * @export * @interface RolesNERMApiSubmitRoleRequest */ export interface RolesNERMApiSubmitRoleRequest { /** * * @type {SubmitRoleRequestNERM} * @memberof RolesNERMApiSubmitRole */ readonly submitRoleRequestNERM: SubmitRoleRequestNERM } /** * Request parameters for submitRoles operation in RolesNERMApi. * @export * @interface RolesNERMApiSubmitRolesRequest */ export interface RolesNERMApiSubmitRolesRequest { /** * * @type {SubmitRolesRequestNERM} * @memberof RolesNERMApiSubmitRoles */ readonly submitRolesRequestNERM: SubmitRolesRequestNERM } /** * RolesNERMApi - object-oriented interface * @export * @class RolesNERMApi * @extends {BaseAPI} */ export class RolesNERMApi extends BaseAPI { /** * Info for a specific user role * @summary Find role by id * @param {RolesNERMApiGetRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RolesNERMApi */ public getRole(requestParameters: RolesNERMApiGetRoleRequest, axiosOptions?: RawAxiosRequestConfig) { return RolesNERMApiFp(this.configuration).getRole(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint can retrieve roles from NERM. Optionally you can provide parameters to filter results. * @summary Get roles * @param {RolesNERMApiGetRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RolesNERMApi */ public getRoles(requestParameters: RolesNERMApiGetRolesRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return RolesNERMApiFp(this.configuration).getRoles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.metadata, requestParameters.type, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update an existing role * @summary Update an existing role * @param {RolesNERMApiPatchRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RolesNERMApi */ public patchRole(requestParameters: RolesNERMApiPatchRoleRequest, axiosOptions?: RawAxiosRequestConfig) { return RolesNERMApiFp(this.configuration).patchRole(requestParameters.id, requestParameters.submitRoleRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update multiple users * @summary Update multiple roles * @param {RolesNERMApiPatchRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RolesNERMApi */ public patchRoles(requestParameters: RolesNERMApiPatchRolesRequest, axiosOptions?: RawAxiosRequestConfig) { return RolesNERMApiFp(this.configuration).patchRoles(requestParameters.submitRolesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a new role * @summary Create a new role * @param {RolesNERMApiSubmitRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RolesNERMApi */ public submitRole(requestParameters: RolesNERMApiSubmitRoleRequest, axiosOptions?: RawAxiosRequestConfig) { return RolesNERMApiFp(this.configuration).submitRole(requestParameters.submitRoleRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create multiple new users * @summary Create multiple new roles * @param {RolesNERMApiSubmitRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof RolesNERMApi */ public submitRoles(requestParameters: RolesNERMApiSubmitRolesRequest, axiosOptions?: RawAxiosRequestConfig) { return RolesNERMApiFp(this.configuration).submitRoles(requestParameters.submitRolesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetRolesTypeNerm = { NeprofileRole: 'NeprofileRole', NeaccessRole: 'NeaccessRole', IdproxyRole: 'IdproxyRole' } as const; export type GetRolesTypeNerm = typeof GetRolesTypeNerm[keyof typeof GetRolesTypeNerm]; /** * SyncedAttributesNERMApi - axios parameter creator * @export */ export const SyncedAttributesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create synced attribute * @summary Create a synced attribute * @param {SyncedAttribute1NERM} syncedAttribute1NERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSyncedAttribute: async (syncedAttribute1NERM: SyncedAttribute1NERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'syncedAttribute1NERM' is not null or undefined assertParamExists('createSyncedAttribute', 'syncedAttribute1NERM', syncedAttribute1NERM) const localVarPath = `/profile_types/{profile_type_id}/synced_attributes`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(syncedAttribute1NERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete a synced attribute. * @summary Delete synced attribute * @param {string} [profileTypeId] Profile Type ID for filtering * @param {string} [neAttributeId] ID of an attribute for filtering * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteSyncedAttribute: async (profileTypeId?: string, neAttributeId?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/profile_types/{profile_type_id}/synced_attributes/{ne_attribute_id}`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (profileTypeId !== undefined) { localVarQueryParameter['profile_type_id'] = profileTypeId; } if (neAttributeId !== undefined) { localVarQueryParameter['ne_attribute_id'] = neAttributeId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get ne attributes and synced attribute relationship to profile type. * @summary profile_types/ne_attributes synced status * @param {string} [profileTypeId] Profile Type ID for filtering * @param {GetProfileTypeAttributesActiveFilterNerm} [activeFilter] Filter for profile type synced attributes * @param {string} [search] Filter by string * @param {number} [page] Pagination items per page * @param {GetProfileTypeAttributesSortParameterNERM} [sort] How records should be sorted * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileTypeAttributes: async (profileTypeId?: string, activeFilter?: GetProfileTypeAttributesActiveFilterNerm, search?: string, page?: number, sort?: GetProfileTypeAttributesSortParameterNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/profile_types/{profile_type_id}/ne_attributes`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (profileTypeId !== undefined) { localVarQueryParameter['profile_type_id'] = profileTypeId; } if (activeFilter !== undefined) { localVarQueryParameter['active_filter'] = activeFilter; } if (search !== undefined) { localVarQueryParameter['search'] = search; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * SyncedAttributesNERMApi - functional programming interface * @export */ export const SyncedAttributesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = SyncedAttributesNERMApiAxiosParamCreator(configuration) return { /** * Create synced attribute * @summary Create a synced attribute * @param {SyncedAttribute1NERM} syncedAttribute1NERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createSyncedAttribute(syncedAttribute1NERM: SyncedAttribute1NERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSyncedAttribute(syncedAttribute1NERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SyncedAttributesNERMApi.createSyncedAttribute']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a synced attribute. * @summary Delete synced attribute * @param {string} [profileTypeId] Profile Type ID for filtering * @param {string} [neAttributeId] ID of an attribute for filtering * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteSyncedAttribute(profileTypeId?: string, neAttributeId?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSyncedAttribute(profileTypeId, neAttributeId, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SyncedAttributesNERMApi.deleteSyncedAttribute']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get ne attributes and synced attribute relationship to profile type. * @summary profile_types/ne_attributes synced status * @param {string} [profileTypeId] Profile Type ID for filtering * @param {GetProfileTypeAttributesActiveFilterNerm} [activeFilter] Filter for profile type synced attributes * @param {string} [search] Filter by string * @param {number} [page] Pagination items per page * @param {GetProfileTypeAttributesSortParameterNERM} [sort] How records should be sorted * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getProfileTypeAttributes(profileTypeId?: string, activeFilter?: GetProfileTypeAttributesActiveFilterNerm, search?: string, page?: number, sort?: GetProfileTypeAttributesSortParameterNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileTypeAttributes(profileTypeId, activeFilter, search, page, sort, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SyncedAttributesNERMApi.getProfileTypeAttributes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * SyncedAttributesNERMApi - factory interface * @export */ export const SyncedAttributesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = SyncedAttributesNERMApiFp(configuration) return { /** * Create synced attribute * @summary Create a synced attribute * @param {SyncedAttributesNERMApiCreateSyncedAttributeRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSyncedAttribute(requestParameters: SyncedAttributesNERMApiCreateSyncedAttributeRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createSyncedAttribute(requestParameters.syncedAttribute1NERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete a synced attribute. * @summary Delete synced attribute * @param {SyncedAttributesNERMApiDeleteSyncedAttributeRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteSyncedAttribute(requestParameters: SyncedAttributesNERMApiDeleteSyncedAttributeRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteSyncedAttribute(requestParameters.profileTypeId, requestParameters.neAttributeId, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get ne attributes and synced attribute relationship to profile type. * @summary profile_types/ne_attributes synced status * @param {SyncedAttributesNERMApiGetProfileTypeAttributesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getProfileTypeAttributes(requestParameters: SyncedAttributesNERMApiGetProfileTypeAttributesRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProfileTypeAttributes(requestParameters.profileTypeId, requestParameters.activeFilter, requestParameters.search, requestParameters.page, requestParameters.sort, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createSyncedAttribute operation in SyncedAttributesNERMApi. * @export * @interface SyncedAttributesNERMApiCreateSyncedAttributeRequest */ export interface SyncedAttributesNERMApiCreateSyncedAttributeRequest { /** * * @type {SyncedAttribute1NERM} * @memberof SyncedAttributesNERMApiCreateSyncedAttribute */ readonly syncedAttribute1NERM: SyncedAttribute1NERM } /** * Request parameters for deleteSyncedAttribute operation in SyncedAttributesNERMApi. * @export * @interface SyncedAttributesNERMApiDeleteSyncedAttributeRequest */ export interface SyncedAttributesNERMApiDeleteSyncedAttributeRequest { /** * Profile Type ID for filtering * @type {string} * @memberof SyncedAttributesNERMApiDeleteSyncedAttribute */ readonly profileTypeId?: string /** * ID of an attribute for filtering * @type {string} * @memberof SyncedAttributesNERMApiDeleteSyncedAttribute */ readonly neAttributeId?: string } /** * Request parameters for getProfileTypeAttributes operation in SyncedAttributesNERMApi. * @export * @interface SyncedAttributesNERMApiGetProfileTypeAttributesRequest */ export interface SyncedAttributesNERMApiGetProfileTypeAttributesRequest { /** * Profile Type ID for filtering * @type {string} * @memberof SyncedAttributesNERMApiGetProfileTypeAttributes */ readonly profileTypeId?: string /** * Filter for profile type synced attributes * @type {'synced' | 'unsynced' | 'all'} * @memberof SyncedAttributesNERMApiGetProfileTypeAttributes */ readonly activeFilter?: GetProfileTypeAttributesActiveFilterNerm /** * Filter by string * @type {string} * @memberof SyncedAttributesNERMApiGetProfileTypeAttributes */ readonly search?: string /** * Pagination items per page * @type {number} * @memberof SyncedAttributesNERMApiGetProfileTypeAttributes */ readonly page?: number /** * How records should be sorted * @type {GetProfileTypeAttributesSortParameterNERM} * @memberof SyncedAttributesNERMApiGetProfileTypeAttributes */ readonly sort?: GetProfileTypeAttributesSortParameterNERM } /** * SyncedAttributesNERMApi - object-oriented interface * @export * @class SyncedAttributesNERMApi * @extends {BaseAPI} */ export class SyncedAttributesNERMApi extends BaseAPI { /** * Create synced attribute * @summary Create a synced attribute * @param {SyncedAttributesNERMApiCreateSyncedAttributeRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof SyncedAttributesNERMApi */ public createSyncedAttribute(requestParameters: SyncedAttributesNERMApiCreateSyncedAttributeRequest, axiosOptions?: RawAxiosRequestConfig) { return SyncedAttributesNERMApiFp(this.configuration).createSyncedAttribute(requestParameters.syncedAttribute1NERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete a synced attribute. * @summary Delete synced attribute * @param {SyncedAttributesNERMApiDeleteSyncedAttributeRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof SyncedAttributesNERMApi */ public deleteSyncedAttribute(requestParameters: SyncedAttributesNERMApiDeleteSyncedAttributeRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return SyncedAttributesNERMApiFp(this.configuration).deleteSyncedAttribute(requestParameters.profileTypeId, requestParameters.neAttributeId, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get ne attributes and synced attribute relationship to profile type. * @summary profile_types/ne_attributes synced status * @param {SyncedAttributesNERMApiGetProfileTypeAttributesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof SyncedAttributesNERMApi */ public getProfileTypeAttributes(requestParameters: SyncedAttributesNERMApiGetProfileTypeAttributesRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return SyncedAttributesNERMApiFp(this.configuration).getProfileTypeAttributes(requestParameters.profileTypeId, requestParameters.activeFilter, requestParameters.search, requestParameters.page, requestParameters.sort, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetProfileTypeAttributesActiveFilterNerm = { Synced: 'synced', Unsynced: 'unsynced', All: 'all' } as const; export type GetProfileTypeAttributesActiveFilterNerm = typeof GetProfileTypeAttributesActiveFilterNerm[keyof typeof GetProfileTypeAttributesActiveFilterNerm]; /** * SystemRolePermissionsNERMApi - axios parameter creator * @export */ export const SystemRolePermissionsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This endpoint can create system role permissions for Lifecycle System Roles * @summary Create a system role permission * @param {CreateSystemRolePermissionRequestNERM} createSystemRolePermissionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSystemRolePermission: async (createSystemRolePermissionRequestNERM: CreateSystemRolePermissionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createSystemRolePermissionRequestNERM' is not null or undefined assertParamExists('createSystemRolePermission', 'createSystemRolePermissionRequestNERM', createSystemRolePermissionRequestNERM) const localVarPath = `/system_role_permissions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createSystemRolePermissionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * SystemRolePermissionsNERMApi - functional programming interface * @export */ export const SystemRolePermissionsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = SystemRolePermissionsNERMApiAxiosParamCreator(configuration) return { /** * This endpoint can create system role permissions for Lifecycle System Roles * @summary Create a system role permission * @param {CreateSystemRolePermissionRequestNERM} createSystemRolePermissionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createSystemRolePermission(createSystemRolePermissionRequestNERM: CreateSystemRolePermissionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSystemRolePermission(createSystemRolePermissionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SystemRolePermissionsNERMApi.createSystemRolePermission']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * SystemRolePermissionsNERMApi - factory interface * @export */ export const SystemRolePermissionsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = SystemRolePermissionsNERMApiFp(configuration) return { /** * This endpoint can create system role permissions for Lifecycle System Roles * @summary Create a system role permission * @param {SystemRolePermissionsNERMApiCreateSystemRolePermissionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSystemRolePermission(requestParameters: SystemRolePermissionsNERMApiCreateSystemRolePermissionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createSystemRolePermission(requestParameters.createSystemRolePermissionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createSystemRolePermission operation in SystemRolePermissionsNERMApi. * @export * @interface SystemRolePermissionsNERMApiCreateSystemRolePermissionRequest */ export interface SystemRolePermissionsNERMApiCreateSystemRolePermissionRequest { /** * * @type {CreateSystemRolePermissionRequestNERM} * @memberof SystemRolePermissionsNERMApiCreateSystemRolePermission */ readonly createSystemRolePermissionRequestNERM: CreateSystemRolePermissionRequestNERM } /** * SystemRolePermissionsNERMApi - object-oriented interface * @export * @class SystemRolePermissionsNERMApi * @extends {BaseAPI} */ export class SystemRolePermissionsNERMApi extends BaseAPI { /** * This endpoint can create system role permissions for Lifecycle System Roles * @summary Create a system role permission * @param {SystemRolePermissionsNERMApiCreateSystemRolePermissionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof SystemRolePermissionsNERMApi */ public createSystemRolePermission(requestParameters: SystemRolePermissionsNERMApiCreateSystemRolePermissionRequest, axiosOptions?: RawAxiosRequestConfig) { return SystemRolePermissionsNERMApiFp(this.configuration).createSystemRolePermission(requestParameters.createSystemRolePermissionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * SystemRolesNERMApi - axios parameter creator * @export */ export const SystemRolesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * This endpoint can retrieve system roles from NERM. Optionally you can provide parameters to filter results. * @summary Get system roles * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getSystemRoles: async (limit?: number, offset?: number, order?: string, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/system_roles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * SystemRolesNERMApi - functional programming interface * @export */ export const SystemRolesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = SystemRolesNERMApiAxiosParamCreator(configuration) return { /** * This endpoint can retrieve system roles from NERM. Optionally you can provide parameters to filter results. * @summary Get system roles * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getSystemRoles(limit?: number, offset?: number, order?: string, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSystemRoles(limit, offset, order, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SystemRolesNERMApi.getSystemRoles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * SystemRolesNERMApi - factory interface * @export */ export const SystemRolesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = SystemRolesNERMApiFp(configuration) return { /** * This endpoint can retrieve system roles from NERM. Optionally you can provide parameters to filter results. * @summary Get system roles * @param {SystemRolesNERMApiGetSystemRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getSystemRoles(requestParameters: SystemRolesNERMApiGetSystemRolesRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSystemRoles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for getSystemRoles operation in SystemRolesNERMApi. * @export * @interface SystemRolesNERMApiGetSystemRolesRequest */ export interface SystemRolesNERMApiGetSystemRolesRequest { /** * The maximum number of items to return. * @type {number} * @memberof SystemRolesNERMApiGetSystemRoles */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof SystemRolesNERMApiGetSystemRoles */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof SystemRolesNERMApiGetSystemRoles */ readonly order?: string /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof SystemRolesNERMApiGetSystemRoles */ readonly metadata?: boolean } /** * SystemRolesNERMApi - object-oriented interface * @export * @class SystemRolesNERMApi * @extends {BaseAPI} */ export class SystemRolesNERMApi extends BaseAPI { /** * This endpoint can retrieve system roles from NERM. Optionally you can provide parameters to filter results. * @summary Get system roles * @param {SystemRolesNERMApiGetSystemRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof SystemRolesNERMApi */ public getSystemRoles(requestParameters: SystemRolesNERMApiGetSystemRolesRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return SystemRolesNERMApiFp(this.configuration).getSystemRoles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * UserManagersNERMApi - axios parameter creator * @export */ export const UserManagersNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Info for a specific user-manager relationship * @summary Find user-manager relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserManager: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getUserManager', 'id', id) const localVarPath = `/user_managers/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint can retrieve user-manager relationships from Lifecycle or you can search for user-manager relationships using parameters * @summary Get user-manager relationships * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [userId] The ID of a user for filtering * @param {string} [managerId] The ID of a user for filtering * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserManagers: async (limit?: number, offset?: number, order?: string, userId?: string, managerId?: string, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/user_managers`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (userId !== undefined) { localVarQueryParameter['user_id'] = userId; } if (managerId !== undefined) { localVarQueryParameter['manager_id'] = managerId; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a user-manager relationship by id * @summary Update a user-manager relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitUserManagerRequestNERM} submitUserManagerRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserManager: async (id: string, submitUserManagerRequestNERM: SubmitUserManagerRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchUserManager', 'id', id) // verify required parameter 'submitUserManagerRequestNERM' is not null or undefined assertParamExists('patchUserManager', 'submitUserManagerRequestNERM', submitUserManagerRequestNERM) const localVarPath = `/user_managers/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserManagerRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update multiple user-manager relationships * @summary Update multiple user-manager relationships * @param {SubmitUserManagersRequestNERM} submitUserManagersRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserManagers: async (submitUserManagersRequestNERM: SubmitUserManagersRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitUserManagersRequestNERM' is not null or undefined assertParamExists('patchUserManagers', 'submitUserManagersRequestNERM', submitUserManagersRequestNERM) const localVarPath = `/user_managers`; // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserManagersRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a new user-manager relationship * @summary Create a new user-manager relationship * @param {SubmitUserManagerRequestNERM} submitUserManagerRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserManager: async (submitUserManagerRequestNERM: SubmitUserManagerRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitUserManagerRequestNERM' is not null or undefined assertParamExists('submitUserManager', 'submitUserManagerRequestNERM', submitUserManagerRequestNERM) const localVarPath = `/user_manager`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserManagerRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create multiple new user-manager relationships * @summary Create multiple new user-manager relationships * @param {SubmitUserManagersRequestNERM} submitUserManagersRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserManagers: async (submitUserManagersRequestNERM: SubmitUserManagersRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitUserManagersRequestNERM' is not null or undefined assertParamExists('submitUserManagers', 'submitUserManagersRequestNERM', submitUserManagersRequestNERM) const localVarPath = `/user_managers`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserManagersRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * UserManagersNERMApi - functional programming interface * @export */ export const UserManagersNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = UserManagersNERMApiAxiosParamCreator(configuration) return { /** * Info for a specific user-manager relationship * @summary Find user-manager relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getUserManager(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserManager(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserManagersNERMApi.getUserManager']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint can retrieve user-manager relationships from Lifecycle or you can search for user-manager relationships using parameters * @summary Get user-manager relationships * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [userId] The ID of a user for filtering * @param {string} [managerId] The ID of a user for filtering * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getUserManagers(limit?: number, offset?: number, order?: string, userId?: string, managerId?: string, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserManagers(limit, offset, order, userId, managerId, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserManagersNERMApi.getUserManagers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a user-manager relationship by id * @summary Update a user-manager relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitUserManagerRequestNERM} submitUserManagerRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchUserManager(id: string, submitUserManagerRequestNERM: SubmitUserManagerRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchUserManager(id, submitUserManagerRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserManagersNERMApi.patchUserManager']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update multiple user-manager relationships * @summary Update multiple user-manager relationships * @param {SubmitUserManagersRequestNERM} submitUserManagersRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchUserManagers(submitUserManagersRequestNERM: SubmitUserManagersRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchUserManagers(submitUserManagersRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserManagersNERMApi.patchUserManagers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new user-manager relationship * @summary Create a new user-manager relationship * @param {SubmitUserManagerRequestNERM} submitUserManagerRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitUserManager(submitUserManagerRequestNERM: SubmitUserManagerRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitUserManager(submitUserManagerRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserManagersNERMApi.submitUserManager']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create multiple new user-manager relationships * @summary Create multiple new user-manager relationships * @param {SubmitUserManagersRequestNERM} submitUserManagersRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitUserManagers(submitUserManagersRequestNERM: SubmitUserManagersRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitUserManagers(submitUserManagersRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserManagersNERMApi.submitUserManagers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * UserManagersNERMApi - factory interface * @export */ export const UserManagersNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = UserManagersNERMApiFp(configuration) return { /** * Info for a specific user-manager relationship * @summary Find user-manager relationship * @param {UserManagersNERMApiGetUserManagerRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserManager(requestParameters: UserManagersNERMApiGetUserManagerRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserManager(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint can retrieve user-manager relationships from Lifecycle or you can search for user-manager relationships using parameters * @summary Get user-manager relationships * @param {UserManagersNERMApiGetUserManagersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserManagers(requestParameters: UserManagersNERMApiGetUserManagersRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserManagers(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.userId, requestParameters.managerId, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a user-manager relationship by id * @summary Update a user-manager relationship * @param {UserManagersNERMApiPatchUserManagerRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserManager(requestParameters: UserManagersNERMApiPatchUserManagerRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchUserManager(requestParameters.id, requestParameters.submitUserManagerRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update multiple user-manager relationships * @summary Update multiple user-manager relationships * @param {UserManagersNERMApiPatchUserManagersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserManagers(requestParameters: UserManagersNERMApiPatchUserManagersRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchUserManagers(requestParameters.submitUserManagersRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a new user-manager relationship * @summary Create a new user-manager relationship * @param {UserManagersNERMApiSubmitUserManagerRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserManager(requestParameters: UserManagersNERMApiSubmitUserManagerRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitUserManager(requestParameters.submitUserManagerRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create multiple new user-manager relationships * @summary Create multiple new user-manager relationships * @param {UserManagersNERMApiSubmitUserManagersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserManagers(requestParameters: UserManagersNERMApiSubmitUserManagersRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitUserManagers(requestParameters.submitUserManagersRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for getUserManager operation in UserManagersNERMApi. * @export * @interface UserManagersNERMApiGetUserManagerRequest */ export interface UserManagersNERMApiGetUserManagerRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UserManagersNERMApiGetUserManager */ readonly id: string } /** * Request parameters for getUserManagers operation in UserManagersNERMApi. * @export * @interface UserManagersNERMApiGetUserManagersRequest */ export interface UserManagersNERMApiGetUserManagersRequest { /** * The maximum number of items to return. * @type {number} * @memberof UserManagersNERMApiGetUserManagers */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof UserManagersNERMApiGetUserManagers */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof UserManagersNERMApiGetUserManagers */ readonly order?: string /** * The ID of a user for filtering * @type {string} * @memberof UserManagersNERMApiGetUserManagers */ readonly userId?: string /** * The ID of a user for filtering * @type {string} * @memberof UserManagersNERMApiGetUserManagers */ readonly managerId?: string /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof UserManagersNERMApiGetUserManagers */ readonly metadata?: boolean } /** * Request parameters for patchUserManager operation in UserManagersNERMApi. * @export * @interface UserManagersNERMApiPatchUserManagerRequest */ export interface UserManagersNERMApiPatchUserManagerRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UserManagersNERMApiPatchUserManager */ readonly id: string /** * * @type {SubmitUserManagerRequestNERM} * @memberof UserManagersNERMApiPatchUserManager */ readonly submitUserManagerRequestNERM: SubmitUserManagerRequestNERM } /** * Request parameters for patchUserManagers operation in UserManagersNERMApi. * @export * @interface UserManagersNERMApiPatchUserManagersRequest */ export interface UserManagersNERMApiPatchUserManagersRequest { /** * * @type {SubmitUserManagersRequestNERM} * @memberof UserManagersNERMApiPatchUserManagers */ readonly submitUserManagersRequestNERM: SubmitUserManagersRequestNERM } /** * Request parameters for submitUserManager operation in UserManagersNERMApi. * @export * @interface UserManagersNERMApiSubmitUserManagerRequest */ export interface UserManagersNERMApiSubmitUserManagerRequest { /** * * @type {SubmitUserManagerRequestNERM} * @memberof UserManagersNERMApiSubmitUserManager */ readonly submitUserManagerRequestNERM: SubmitUserManagerRequestNERM } /** * Request parameters for submitUserManagers operation in UserManagersNERMApi. * @export * @interface UserManagersNERMApiSubmitUserManagersRequest */ export interface UserManagersNERMApiSubmitUserManagersRequest { /** * * @type {SubmitUserManagersRequestNERM} * @memberof UserManagersNERMApiSubmitUserManagers */ readonly submitUserManagersRequestNERM: SubmitUserManagersRequestNERM } /** * UserManagersNERMApi - object-oriented interface * @export * @class UserManagersNERMApi * @extends {BaseAPI} */ export class UserManagersNERMApi extends BaseAPI { /** * Info for a specific user-manager relationship * @summary Find user-manager relationship * @param {UserManagersNERMApiGetUserManagerRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserManagersNERMApi */ public getUserManager(requestParameters: UserManagersNERMApiGetUserManagerRequest, axiosOptions?: RawAxiosRequestConfig) { return UserManagersNERMApiFp(this.configuration).getUserManager(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint can retrieve user-manager relationships from Lifecycle or you can search for user-manager relationships using parameters * @summary Get user-manager relationships * @param {UserManagersNERMApiGetUserManagersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserManagersNERMApi */ public getUserManagers(requestParameters: UserManagersNERMApiGetUserManagersRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return UserManagersNERMApiFp(this.configuration).getUserManagers(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.userId, requestParameters.managerId, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a user-manager relationship by id * @summary Update a user-manager relationship * @param {UserManagersNERMApiPatchUserManagerRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserManagersNERMApi */ public patchUserManager(requestParameters: UserManagersNERMApiPatchUserManagerRequest, axiosOptions?: RawAxiosRequestConfig) { return UserManagersNERMApiFp(this.configuration).patchUserManager(requestParameters.id, requestParameters.submitUserManagerRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update multiple user-manager relationships * @summary Update multiple user-manager relationships * @param {UserManagersNERMApiPatchUserManagersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserManagersNERMApi */ public patchUserManagers(requestParameters: UserManagersNERMApiPatchUserManagersRequest, axiosOptions?: RawAxiosRequestConfig) { return UserManagersNERMApiFp(this.configuration).patchUserManagers(requestParameters.submitUserManagersRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a new user-manager relationship * @summary Create a new user-manager relationship * @param {UserManagersNERMApiSubmitUserManagerRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserManagersNERMApi */ public submitUserManager(requestParameters: UserManagersNERMApiSubmitUserManagerRequest, axiosOptions?: RawAxiosRequestConfig) { return UserManagersNERMApiFp(this.configuration).submitUserManager(requestParameters.submitUserManagerRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create multiple new user-manager relationships * @summary Create multiple new user-manager relationships * @param {UserManagersNERMApiSubmitUserManagersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserManagersNERMApi */ public submitUserManagers(requestParameters: UserManagersNERMApiSubmitUserManagersRequest, axiosOptions?: RawAxiosRequestConfig) { return UserManagersNERMApiFp(this.configuration).submitUserManagers(requestParameters.submitUserManagersRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * UserProfilesNERMApi - axios parameter creator * @export */ export const UserProfilesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create multiple user-profile contributor relationships * @summary Create multiple user-profile contributor relationships * @param {CreateUserProfilesRequestNERM} createUserProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createUserProfiles: async (createUserProfilesRequestNERM: CreateUserProfilesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createUserProfilesRequestNERM' is not null or undefined assertParamExists('createUserProfiles', 'createUserProfilesRequestNERM', createUserProfilesRequestNERM) const localVarPath = `/user_profiles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createUserProfilesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete a user profile assignment * @summary Delete a user profile assignment * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteUserProfile: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteUserProfile', 'id', id) const localVarPath = `/user_profile/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete multiple user-profile contributor relationships * @summary Delete multiple user-profile contributor relationships * @param {CreateUserProfilesRequestNERM} createUserProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteUserProfiles: async (createUserProfilesRequestNERM: CreateUserProfilesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createUserProfilesRequestNERM' is not null or undefined assertParamExists('deleteUserProfiles', 'createUserProfilesRequestNERM', createUserProfilesRequestNERM) const localVarPath = `/user_profiles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createUserProfilesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Find user-profile contributor relationship by id * @summary Find user-profile contributor relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserProfile: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getUserProfile', 'id', id) const localVarPath = `/user_profiles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get user-profile contributor relationships * @summary Get user-profile contributor relationships * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [userId] The ID of a user for filtering * @param {string} [neAttributeId] ID of an attribute for filtering * @param {string} [profileId] Profile ID to filter by * @param {GetUserProfilesRelationshipTypeNerm} [relationshipType] Type of user contributor relationship to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserProfiles: async (limit?: number, offset?: number, order?: string, userId?: string, neAttributeId?: string, profileId?: string, relationshipType?: GetUserProfilesRelationshipTypeNerm, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/user_profiles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (userId !== undefined) { localVarQueryParameter['user_id'] = userId; } if (neAttributeId !== undefined) { localVarQueryParameter['ne_attribute_id'] = neAttributeId; } if (profileId !== undefined) { localVarQueryParameter['profile_id'] = profileId; } if (relationshipType !== undefined) { localVarQueryParameter['relationship_type'] = relationshipType; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a user-profile contributor relationship by id * @summary Update a user-profile contributor relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitUserProfileRequestNERM} submitUserProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserProfile: async (id: string, submitUserProfileRequestNERM: SubmitUserProfileRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchUserProfile', 'id', id) // verify required parameter 'submitUserProfileRequestNERM' is not null or undefined assertParamExists('patchUserProfile', 'submitUserProfileRequestNERM', submitUserProfileRequestNERM) const localVarPath = `/user_profiles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserProfileRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update multiple user-profile contributor relationships * @summary Update multiple user-profile contributor relationships * @param {CreateUserProfilesRequestNERM} createUserProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserProfiles: async (createUserProfilesRequestNERM: CreateUserProfilesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createUserProfilesRequestNERM' is not null or undefined assertParamExists('patchUserProfiles', 'createUserProfilesRequestNERM', createUserProfilesRequestNERM) const localVarPath = `/user_profiles`; // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createUserProfilesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a user-profile contributor relationship * @summary Create a user-profile contributor relationship * @param {SubmitUserProfileRequestNERM} submitUserProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserProfile: async (submitUserProfileRequestNERM: SubmitUserProfileRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitUserProfileRequestNERM' is not null or undefined assertParamExists('submitUserProfile', 'submitUserProfileRequestNERM', submitUserProfileRequestNERM) const localVarPath = `/user_profile`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserProfileRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * UserProfilesNERMApi - functional programming interface * @export */ export const UserProfilesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = UserProfilesNERMApiAxiosParamCreator(configuration) return { /** * Create multiple user-profile contributor relationships * @summary Create multiple user-profile contributor relationships * @param {CreateUserProfilesRequestNERM} createUserProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createUserProfiles(createUserProfilesRequestNERM: CreateUserProfilesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createUserProfiles(createUserProfilesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserProfilesNERMApi.createUserProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a user profile assignment * @summary Delete a user profile assignment * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteUserProfile(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserProfile(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserProfilesNERMApi.deleteUserProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete multiple user-profile contributor relationships * @summary Delete multiple user-profile contributor relationships * @param {CreateUserProfilesRequestNERM} createUserProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteUserProfiles(createUserProfilesRequestNERM: CreateUserProfilesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserProfiles(createUserProfilesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserProfilesNERMApi.deleteUserProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Find user-profile contributor relationship by id * @summary Find user-profile contributor relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getUserProfile(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserProfile(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserProfilesNERMApi.getUserProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get user-profile contributor relationships * @summary Get user-profile contributor relationships * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [userId] The ID of a user for filtering * @param {string} [neAttributeId] ID of an attribute for filtering * @param {string} [profileId] Profile ID to filter by * @param {GetUserProfilesRelationshipTypeNerm} [relationshipType] Type of user contributor relationship to filter by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getUserProfiles(limit?: number, offset?: number, order?: string, userId?: string, neAttributeId?: string, profileId?: string, relationshipType?: GetUserProfilesRelationshipTypeNerm, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserProfiles(limit, offset, order, userId, neAttributeId, profileId, relationshipType, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserProfilesNERMApi.getUserProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a user-profile contributor relationship by id * @summary Update a user-profile contributor relationship * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitUserProfileRequestNERM} submitUserProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchUserProfile(id: string, submitUserProfileRequestNERM: SubmitUserProfileRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchUserProfile(id, submitUserProfileRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserProfilesNERMApi.patchUserProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update multiple user-profile contributor relationships * @summary Update multiple user-profile contributor relationships * @param {CreateUserProfilesRequestNERM} createUserProfilesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchUserProfiles(createUserProfilesRequestNERM: CreateUserProfilesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchUserProfiles(createUserProfilesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserProfilesNERMApi.patchUserProfiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a user-profile contributor relationship * @summary Create a user-profile contributor relationship * @param {SubmitUserProfileRequestNERM} submitUserProfileRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitUserProfile(submitUserProfileRequestNERM: SubmitUserProfileRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitUserProfile(submitUserProfileRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserProfilesNERMApi.submitUserProfile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * UserProfilesNERMApi - factory interface * @export */ export const UserProfilesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = UserProfilesNERMApiFp(configuration) return { /** * Create multiple user-profile contributor relationships * @summary Create multiple user-profile contributor relationships * @param {UserProfilesNERMApiCreateUserProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createUserProfiles(requestParameters: UserProfilesNERMApiCreateUserProfilesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUserProfiles(requestParameters.createUserProfilesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete a user profile assignment * @summary Delete a user profile assignment * @param {UserProfilesNERMApiDeleteUserProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteUserProfile(requestParameters: UserProfilesNERMApiDeleteUserProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUserProfile(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete multiple user-profile contributor relationships * @summary Delete multiple user-profile contributor relationships * @param {UserProfilesNERMApiDeleteUserProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteUserProfiles(requestParameters: UserProfilesNERMApiDeleteUserProfilesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUserProfiles(requestParameters.createUserProfilesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Find user-profile contributor relationship by id * @summary Find user-profile contributor relationship * @param {UserProfilesNERMApiGetUserProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserProfile(requestParameters: UserProfilesNERMApiGetUserProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserProfile(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get user-profile contributor relationships * @summary Get user-profile contributor relationships * @param {UserProfilesNERMApiGetUserProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserProfiles(requestParameters: UserProfilesNERMApiGetUserProfilesRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserProfiles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.userId, requestParameters.neAttributeId, requestParameters.profileId, requestParameters.relationshipType, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a user-profile contributor relationship by id * @summary Update a user-profile contributor relationship * @param {UserProfilesNERMApiPatchUserProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserProfile(requestParameters: UserProfilesNERMApiPatchUserProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchUserProfile(requestParameters.id, requestParameters.submitUserProfileRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update multiple user-profile contributor relationships * @summary Update multiple user-profile contributor relationships * @param {UserProfilesNERMApiPatchUserProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserProfiles(requestParameters: UserProfilesNERMApiPatchUserProfilesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchUserProfiles(requestParameters.createUserProfilesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a user-profile contributor relationship * @summary Create a user-profile contributor relationship * @param {UserProfilesNERMApiSubmitUserProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserProfile(requestParameters: UserProfilesNERMApiSubmitUserProfileRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitUserProfile(requestParameters.submitUserProfileRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createUserProfiles operation in UserProfilesNERMApi. * @export * @interface UserProfilesNERMApiCreateUserProfilesRequest */ export interface UserProfilesNERMApiCreateUserProfilesRequest { /** * * @type {CreateUserProfilesRequestNERM} * @memberof UserProfilesNERMApiCreateUserProfiles */ readonly createUserProfilesRequestNERM: CreateUserProfilesRequestNERM } /** * Request parameters for deleteUserProfile operation in UserProfilesNERMApi. * @export * @interface UserProfilesNERMApiDeleteUserProfileRequest */ export interface UserProfilesNERMApiDeleteUserProfileRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UserProfilesNERMApiDeleteUserProfile */ readonly id: string } /** * Request parameters for deleteUserProfiles operation in UserProfilesNERMApi. * @export * @interface UserProfilesNERMApiDeleteUserProfilesRequest */ export interface UserProfilesNERMApiDeleteUserProfilesRequest { /** * * @type {CreateUserProfilesRequestNERM} * @memberof UserProfilesNERMApiDeleteUserProfiles */ readonly createUserProfilesRequestNERM: CreateUserProfilesRequestNERM } /** * Request parameters for getUserProfile operation in UserProfilesNERMApi. * @export * @interface UserProfilesNERMApiGetUserProfileRequest */ export interface UserProfilesNERMApiGetUserProfileRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UserProfilesNERMApiGetUserProfile */ readonly id: string } /** * Request parameters for getUserProfiles operation in UserProfilesNERMApi. * @export * @interface UserProfilesNERMApiGetUserProfilesRequest */ export interface UserProfilesNERMApiGetUserProfilesRequest { /** * The maximum number of items to return. * @type {number} * @memberof UserProfilesNERMApiGetUserProfiles */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof UserProfilesNERMApiGetUserProfiles */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof UserProfilesNERMApiGetUserProfiles */ readonly order?: string /** * The ID of a user for filtering * @type {string} * @memberof UserProfilesNERMApiGetUserProfiles */ readonly userId?: string /** * ID of an attribute for filtering * @type {string} * @memberof UserProfilesNERMApiGetUserProfiles */ readonly neAttributeId?: string /** * Profile ID to filter by * @type {string} * @memberof UserProfilesNERMApiGetUserProfiles */ readonly profileId?: string /** * Type of user contributor relationship to filter by * @type {'owner' | 'contributor'} * @memberof UserProfilesNERMApiGetUserProfiles */ readonly relationshipType?: GetUserProfilesRelationshipTypeNerm /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof UserProfilesNERMApiGetUserProfiles */ readonly metadata?: boolean } /** * Request parameters for patchUserProfile operation in UserProfilesNERMApi. * @export * @interface UserProfilesNERMApiPatchUserProfileRequest */ export interface UserProfilesNERMApiPatchUserProfileRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UserProfilesNERMApiPatchUserProfile */ readonly id: string /** * * @type {SubmitUserProfileRequestNERM} * @memberof UserProfilesNERMApiPatchUserProfile */ readonly submitUserProfileRequestNERM: SubmitUserProfileRequestNERM } /** * Request parameters for patchUserProfiles operation in UserProfilesNERMApi. * @export * @interface UserProfilesNERMApiPatchUserProfilesRequest */ export interface UserProfilesNERMApiPatchUserProfilesRequest { /** * * @type {CreateUserProfilesRequestNERM} * @memberof UserProfilesNERMApiPatchUserProfiles */ readonly createUserProfilesRequestNERM: CreateUserProfilesRequestNERM } /** * Request parameters for submitUserProfile operation in UserProfilesNERMApi. * @export * @interface UserProfilesNERMApiSubmitUserProfileRequest */ export interface UserProfilesNERMApiSubmitUserProfileRequest { /** * * @type {SubmitUserProfileRequestNERM} * @memberof UserProfilesNERMApiSubmitUserProfile */ readonly submitUserProfileRequestNERM: SubmitUserProfileRequestNERM } /** * UserProfilesNERMApi - object-oriented interface * @export * @class UserProfilesNERMApi * @extends {BaseAPI} */ export class UserProfilesNERMApi extends BaseAPI { /** * Create multiple user-profile contributor relationships * @summary Create multiple user-profile contributor relationships * @param {UserProfilesNERMApiCreateUserProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserProfilesNERMApi */ public createUserProfiles(requestParameters: UserProfilesNERMApiCreateUserProfilesRequest, axiosOptions?: RawAxiosRequestConfig) { return UserProfilesNERMApiFp(this.configuration).createUserProfiles(requestParameters.createUserProfilesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete a user profile assignment * @summary Delete a user profile assignment * @param {UserProfilesNERMApiDeleteUserProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserProfilesNERMApi */ public deleteUserProfile(requestParameters: UserProfilesNERMApiDeleteUserProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return UserProfilesNERMApiFp(this.configuration).deleteUserProfile(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete multiple user-profile contributor relationships * @summary Delete multiple user-profile contributor relationships * @param {UserProfilesNERMApiDeleteUserProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserProfilesNERMApi */ public deleteUserProfiles(requestParameters: UserProfilesNERMApiDeleteUserProfilesRequest, axiosOptions?: RawAxiosRequestConfig) { return UserProfilesNERMApiFp(this.configuration).deleteUserProfiles(requestParameters.createUserProfilesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Find user-profile contributor relationship by id * @summary Find user-profile contributor relationship * @param {UserProfilesNERMApiGetUserProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserProfilesNERMApi */ public getUserProfile(requestParameters: UserProfilesNERMApiGetUserProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return UserProfilesNERMApiFp(this.configuration).getUserProfile(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get user-profile contributor relationships * @summary Get user-profile contributor relationships * @param {UserProfilesNERMApiGetUserProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserProfilesNERMApi */ public getUserProfiles(requestParameters: UserProfilesNERMApiGetUserProfilesRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return UserProfilesNERMApiFp(this.configuration).getUserProfiles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.userId, requestParameters.neAttributeId, requestParameters.profileId, requestParameters.relationshipType, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a user-profile contributor relationship by id * @summary Update a user-profile contributor relationship * @param {UserProfilesNERMApiPatchUserProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserProfilesNERMApi */ public patchUserProfile(requestParameters: UserProfilesNERMApiPatchUserProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return UserProfilesNERMApiFp(this.configuration).patchUserProfile(requestParameters.id, requestParameters.submitUserProfileRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update multiple user-profile contributor relationships * @summary Update multiple user-profile contributor relationships * @param {UserProfilesNERMApiPatchUserProfilesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserProfilesNERMApi */ public patchUserProfiles(requestParameters: UserProfilesNERMApiPatchUserProfilesRequest, axiosOptions?: RawAxiosRequestConfig) { return UserProfilesNERMApiFp(this.configuration).patchUserProfiles(requestParameters.createUserProfilesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a user-profile contributor relationship * @summary Create a user-profile contributor relationship * @param {UserProfilesNERMApiSubmitUserProfileRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserProfilesNERMApi */ public submitUserProfile(requestParameters: UserProfilesNERMApiSubmitUserProfileRequest, axiosOptions?: RawAxiosRequestConfig) { return UserProfilesNERMApiFp(this.configuration).submitUserProfile(requestParameters.submitUserProfileRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetUserProfilesRelationshipTypeNerm = { Owner: 'owner', Contributor: 'contributor' } as const; export type GetUserProfilesRelationshipTypeNerm = typeof GetUserProfilesRelationshipTypeNerm[keyof typeof GetUserProfilesRelationshipTypeNerm]; /** * UserRolesNERMApi - axios parameter creator * @export */ export const UserRolesNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Delete a user role assignment * @summary Delete a user role assignment * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteUserRole: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteUserRole', 'id', id) const localVarPath = `/user_role/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific user role pairing * @summary Find user role pairing * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserRole: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getUserRole', 'id', id) const localVarPath = `/user_roles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint can retrieve user role pairings from Lifecycle or you can search for user role pairings using parameters * @summary Get user role pairings * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [userId] The ID of a user for filtering * @param {string} [roleId] The ID of a role for filtering * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserRoles: async (limit?: number, offset?: number, order?: string, userId?: string, roleId?: string, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/user_roles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (userId !== undefined) { localVarQueryParameter['user_id'] = userId; } if (roleId !== undefined) { localVarQueryParameter['role_id'] = roleId; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a user role pairing by id * @summary Update a user role pairing * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitUserRoleRequestNERM} submitUserRoleRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserRole: async (id: string, submitUserRoleRequestNERM: SubmitUserRoleRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchUserRole', 'id', id) // verify required parameter 'submitUserRoleRequestNERM' is not null or undefined assertParamExists('patchUserRole', 'submitUserRoleRequestNERM', submitUserRoleRequestNERM) const localVarPath = `/user_roles/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserRoleRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update multiple user role pairings * @summary Update multiple user role pairings * @param {SubmitUserRolesRequestNERM} submitUserRolesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserRoles: async (submitUserRolesRequestNERM: SubmitUserRolesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitUserRolesRequestNERM' is not null or undefined assertParamExists('patchUserRoles', 'submitUserRolesRequestNERM', submitUserRolesRequestNERM) const localVarPath = `/user_roles`; // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserRolesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Assign a new role to a user * @summary Assign new role to user * @param {SubmitUserRoleRequestNERM} submitUserRoleRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserRole: async (submitUserRoleRequestNERM: SubmitUserRoleRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitUserRoleRequestNERM' is not null or undefined assertParamExists('submitUserRole', 'submitUserRoleRequestNERM', submitUserRoleRequestNERM) const localVarPath = `/user_role`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserRoleRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create multiple new user role pairings * @summary Create new user role pairings * @param {SubmitUserRolesRequestNERM} submitUserRolesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserRoles: async (submitUserRolesRequestNERM: SubmitUserRolesRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitUserRolesRequestNERM' is not null or undefined assertParamExists('submitUserRoles', 'submitUserRolesRequestNERM', submitUserRolesRequestNERM) const localVarPath = `/user_roles`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserRolesRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * UserRolesNERMApi - functional programming interface * @export */ export const UserRolesNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = UserRolesNERMApiAxiosParamCreator(configuration) return { /** * Delete a user role assignment * @summary Delete a user role assignment * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteUserRole(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserRole(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserRolesNERMApi.deleteUserRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific user role pairing * @summary Find user role pairing * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getUserRole(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserRole(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserRolesNERMApi.getUserRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint can retrieve user role pairings from Lifecycle or you can search for user role pairings using parameters * @summary Get user role pairings * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [userId] The ID of a user for filtering * @param {string} [roleId] The ID of a role for filtering * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getUserRoles(limit?: number, offset?: number, order?: string, userId?: string, roleId?: string, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserRoles(limit, offset, order, userId, roleId, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserRolesNERMApi.getUserRoles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a user role pairing by id * @summary Update a user role pairing * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitUserRoleRequestNERM} submitUserRoleRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchUserRole(id: string, submitUserRoleRequestNERM: SubmitUserRoleRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchUserRole(id, submitUserRoleRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserRolesNERMApi.patchUserRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update multiple user role pairings * @summary Update multiple user role pairings * @param {SubmitUserRolesRequestNERM} submitUserRolesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchUserRoles(submitUserRolesRequestNERM: SubmitUserRolesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchUserRoles(submitUserRolesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserRolesNERMApi.patchUserRoles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Assign a new role to a user * @summary Assign new role to user * @param {SubmitUserRoleRequestNERM} submitUserRoleRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitUserRole(submitUserRoleRequestNERM: SubmitUserRoleRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitUserRole(submitUserRoleRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserRolesNERMApi.submitUserRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create multiple new user role pairings * @summary Create new user role pairings * @param {SubmitUserRolesRequestNERM} submitUserRolesRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitUserRoles(submitUserRolesRequestNERM: SubmitUserRolesRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitUserRoles(submitUserRolesRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserRolesNERMApi.submitUserRoles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * UserRolesNERMApi - factory interface * @export */ export const UserRolesNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = UserRolesNERMApiFp(configuration) return { /** * Delete a user role assignment * @summary Delete a user role assignment * @param {UserRolesNERMApiDeleteUserRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteUserRole(requestParameters: UserRolesNERMApiDeleteUserRoleRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUserRole(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific user role pairing * @summary Find user role pairing * @param {UserRolesNERMApiGetUserRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserRole(requestParameters: UserRolesNERMApiGetUserRoleRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserRole(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint can retrieve user role pairings from Lifecycle or you can search for user role pairings using parameters * @summary Get user role pairings * @param {UserRolesNERMApiGetUserRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserRoles(requestParameters: UserRolesNERMApiGetUserRolesRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserRoles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.userId, requestParameters.roleId, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a user role pairing by id * @summary Update a user role pairing * @param {UserRolesNERMApiPatchUserRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserRole(requestParameters: UserRolesNERMApiPatchUserRoleRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchUserRole(requestParameters.id, requestParameters.submitUserRoleRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update multiple user role pairings * @summary Update multiple user role pairings * @param {UserRolesNERMApiPatchUserRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUserRoles(requestParameters: UserRolesNERMApiPatchUserRolesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchUserRoles(requestParameters.submitUserRolesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Assign a new role to a user * @summary Assign new role to user * @param {UserRolesNERMApiSubmitUserRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserRole(requestParameters: UserRolesNERMApiSubmitUserRoleRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitUserRole(requestParameters.submitUserRoleRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create multiple new user role pairings * @summary Create new user role pairings * @param {UserRolesNERMApiSubmitUserRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserRoles(requestParameters: UserRolesNERMApiSubmitUserRolesRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitUserRoles(requestParameters.submitUserRolesRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for deleteUserRole operation in UserRolesNERMApi. * @export * @interface UserRolesNERMApiDeleteUserRoleRequest */ export interface UserRolesNERMApiDeleteUserRoleRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UserRolesNERMApiDeleteUserRole */ readonly id: string } /** * Request parameters for getUserRole operation in UserRolesNERMApi. * @export * @interface UserRolesNERMApiGetUserRoleRequest */ export interface UserRolesNERMApiGetUserRoleRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UserRolesNERMApiGetUserRole */ readonly id: string } /** * Request parameters for getUserRoles operation in UserRolesNERMApi. * @export * @interface UserRolesNERMApiGetUserRolesRequest */ export interface UserRolesNERMApiGetUserRolesRequest { /** * The maximum number of items to return. * @type {number} * @memberof UserRolesNERMApiGetUserRoles */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof UserRolesNERMApiGetUserRoles */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof UserRolesNERMApiGetUserRoles */ readonly order?: string /** * The ID of a user for filtering * @type {string} * @memberof UserRolesNERMApiGetUserRoles */ readonly userId?: string /** * The ID of a role for filtering * @type {string} * @memberof UserRolesNERMApiGetUserRoles */ readonly roleId?: string /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof UserRolesNERMApiGetUserRoles */ readonly metadata?: boolean } /** * Request parameters for patchUserRole operation in UserRolesNERMApi. * @export * @interface UserRolesNERMApiPatchUserRoleRequest */ export interface UserRolesNERMApiPatchUserRoleRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UserRolesNERMApiPatchUserRole */ readonly id: string /** * * @type {SubmitUserRoleRequestNERM} * @memberof UserRolesNERMApiPatchUserRole */ readonly submitUserRoleRequestNERM: SubmitUserRoleRequestNERM } /** * Request parameters for patchUserRoles operation in UserRolesNERMApi. * @export * @interface UserRolesNERMApiPatchUserRolesRequest */ export interface UserRolesNERMApiPatchUserRolesRequest { /** * * @type {SubmitUserRolesRequestNERM} * @memberof UserRolesNERMApiPatchUserRoles */ readonly submitUserRolesRequestNERM: SubmitUserRolesRequestNERM } /** * Request parameters for submitUserRole operation in UserRolesNERMApi. * @export * @interface UserRolesNERMApiSubmitUserRoleRequest */ export interface UserRolesNERMApiSubmitUserRoleRequest { /** * * @type {SubmitUserRoleRequestNERM} * @memberof UserRolesNERMApiSubmitUserRole */ readonly submitUserRoleRequestNERM: SubmitUserRoleRequestNERM } /** * Request parameters for submitUserRoles operation in UserRolesNERMApi. * @export * @interface UserRolesNERMApiSubmitUserRolesRequest */ export interface UserRolesNERMApiSubmitUserRolesRequest { /** * * @type {SubmitUserRolesRequestNERM} * @memberof UserRolesNERMApiSubmitUserRoles */ readonly submitUserRolesRequestNERM: SubmitUserRolesRequestNERM } /** * UserRolesNERMApi - object-oriented interface * @export * @class UserRolesNERMApi * @extends {BaseAPI} */ export class UserRolesNERMApi extends BaseAPI { /** * Delete a user role assignment * @summary Delete a user role assignment * @param {UserRolesNERMApiDeleteUserRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserRolesNERMApi */ public deleteUserRole(requestParameters: UserRolesNERMApiDeleteUserRoleRequest, axiosOptions?: RawAxiosRequestConfig) { return UserRolesNERMApiFp(this.configuration).deleteUserRole(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific user role pairing * @summary Find user role pairing * @param {UserRolesNERMApiGetUserRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserRolesNERMApi */ public getUserRole(requestParameters: UserRolesNERMApiGetUserRoleRequest, axiosOptions?: RawAxiosRequestConfig) { return UserRolesNERMApiFp(this.configuration).getUserRole(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint can retrieve user role pairings from Lifecycle or you can search for user role pairings using parameters * @summary Get user role pairings * @param {UserRolesNERMApiGetUserRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserRolesNERMApi */ public getUserRoles(requestParameters: UserRolesNERMApiGetUserRolesRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return UserRolesNERMApiFp(this.configuration).getUserRoles(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.userId, requestParameters.roleId, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a user role pairing by id * @summary Update a user role pairing * @param {UserRolesNERMApiPatchUserRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserRolesNERMApi */ public patchUserRole(requestParameters: UserRolesNERMApiPatchUserRoleRequest, axiosOptions?: RawAxiosRequestConfig) { return UserRolesNERMApiFp(this.configuration).patchUserRole(requestParameters.id, requestParameters.submitUserRoleRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update multiple user role pairings * @summary Update multiple user role pairings * @param {UserRolesNERMApiPatchUserRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserRolesNERMApi */ public patchUserRoles(requestParameters: UserRolesNERMApiPatchUserRolesRequest, axiosOptions?: RawAxiosRequestConfig) { return UserRolesNERMApiFp(this.configuration).patchUserRoles(requestParameters.submitUserRolesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Assign a new role to a user * @summary Assign new role to user * @param {UserRolesNERMApiSubmitUserRoleRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserRolesNERMApi */ public submitUserRole(requestParameters: UserRolesNERMApiSubmitUserRoleRequest, axiosOptions?: RawAxiosRequestConfig) { return UserRolesNERMApiFp(this.configuration).submitUserRole(requestParameters.submitUserRoleRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create multiple new user role pairings * @summary Create new user role pairings * @param {UserRolesNERMApiSubmitUserRolesRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UserRolesNERMApi */ public submitUserRoles(requestParameters: UserRolesNERMApiSubmitUserRolesRequest, axiosOptions?: RawAxiosRequestConfig) { return UserRolesNERMApiFp(this.configuration).submitUserRoles(requestParameters.submitUserRolesRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * UsersNERMApi - axios parameter creator * @export */ export const UsersNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Delete a user * @summary Delete a user * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteUser: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteUser', 'id', id) const localVarPath = `/users/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Info for a specific user * @summary Find user by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUser: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getUser', 'id', id) const localVarPath = `/users/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Retrieves the URL of the user avatar * @summary Retrieves URL user avatar * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserAvatar: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getUserAvatar', 'id', id) const localVarPath = `/users/{id}/avatar` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint can retrieve users from Lifecycle or you can search for users using parameters * @summary Get users * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [name] object name for filtering * @param {string} [login] The user login to search by * @param {string} [title] The user title to search by * @param {GetUsersUserStatusNerm} [userStatus] user status value for filtering * @param {GetUsersTypeNerm} [type] user type * @param {string} [email] The user email to search by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {string} [sailpointIdentityId] SailPoint identity ID * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUsers: async (limit?: number, offset?: number, order?: string, name?: string, login?: string, title?: string, userStatus?: GetUsersUserStatusNerm, type?: GetUsersTypeNerm, email?: string, metadata?: boolean, sailpointIdentityId?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/users`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (name !== undefined) { localVarQueryParameter['name'] = name; } if (login !== undefined) { localVarQueryParameter['login'] = login; } if (title !== undefined) { localVarQueryParameter['title'] = title; } if (userStatus !== undefined) { localVarQueryParameter['user_status'] = userStatus; } if (type !== undefined) { localVarQueryParameter['type'] = type; } if (email !== undefined) { localVarQueryParameter['email'] = email; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } if (sailpointIdentityId !== undefined) { localVarQueryParameter['sailpoint_identity_id'] = sailpointIdentityId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a user by id * @summary Update a user by id * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitUserRequestNERM} submitUserRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUser: async (id: string, submitUserRequestNERM: SubmitUserRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchUser', 'id', id) // verify required parameter 'submitUserRequestNERM' is not null or undefined assertParamExists('patchUser', 'submitUserRequestNERM', submitUserRequestNERM) const localVarPath = `/users/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update multiple users * @summary Update multiple users * @param {SubmitUsersRequestNERM} submitUsersRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUsers: async (submitUsersRequestNERM: SubmitUsersRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitUsersRequestNERM' is not null or undefined assertParamExists('patchUsers', 'submitUsersRequestNERM', submitUsersRequestNERM) const localVarPath = `/users`; // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUsersRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a new user * @summary Create a new user * @param {SubmitUserRequestNERM} submitUserRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUser: async (submitUserRequestNERM: SubmitUserRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitUserRequestNERM' is not null or undefined assertParamExists('submitUser', 'submitUserRequestNERM', submitUserRequestNERM) const localVarPath = `/user`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUserRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Uploads a new user avatar * @summary Uploads new user avatar * @param {string} id ID of the object to retrieve, update, or delete * @param {File} [file] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserAvatar: async (id: string, file?: File, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('submitUserAvatar', 'id', id) const localVarPath = `/users/{id}/avatar` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (file !== undefined) { localVarFormParams.append('file', file as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create multiple new users * @summary Create multiple new users * @param {SubmitUsersRequestNERM} submitUsersRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUsers: async (submitUsersRequestNERM: SubmitUsersRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitUsersRequestNERM' is not null or undefined assertParamExists('submitUsers', 'submitUsersRequestNERM', submitUsersRequestNERM) const localVarPath = `/users`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitUsersRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * UsersNERMApi - functional programming interface * @export */ export const UsersNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = UsersNERMApiAxiosParamCreator(configuration) return { /** * Delete a user * @summary Delete a user * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteUser(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UsersNERMApi.deleteUser']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Info for a specific user * @summary Find user by id * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getUser(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UsersNERMApi.getUser']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves the URL of the user avatar * @summary Retrieves URL user avatar * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getUserAvatar(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAvatar(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UsersNERMApi.getUserAvatar']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint can retrieve users from Lifecycle or you can search for users using parameters * @summary Get users * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [name] object name for filtering * @param {string} [login] The user login to search by * @param {string} [title] The user title to search by * @param {GetUsersUserStatusNerm} [userStatus] user status value for filtering * @param {GetUsersTypeNerm} [type] user type * @param {string} [email] The user email to search by * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {string} [sailpointIdentityId] SailPoint identity ID * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getUsers(limit?: number, offset?: number, order?: string, name?: string, login?: string, title?: string, userStatus?: GetUsersUserStatusNerm, type?: GetUsersTypeNerm, email?: string, metadata?: boolean, sailpointIdentityId?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUsers(limit, offset, order, name, login, title, userStatus, type, email, metadata, sailpointIdentityId, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UsersNERMApi.getUsers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a user by id * @summary Update a user by id * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitUserRequestNERM} submitUserRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchUser(id: string, submitUserRequestNERM: SubmitUserRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchUser(id, submitUserRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UsersNERMApi.patchUser']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update multiple users * @summary Update multiple users * @param {SubmitUsersRequestNERM} submitUsersRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchUsers(submitUsersRequestNERM: SubmitUsersRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchUsers(submitUsersRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UsersNERMApi.patchUsers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new user * @summary Create a new user * @param {SubmitUserRequestNERM} submitUserRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitUser(submitUserRequestNERM: SubmitUserRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitUser(submitUserRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UsersNERMApi.submitUser']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Uploads a new user avatar * @summary Uploads new user avatar * @param {string} id ID of the object to retrieve, update, or delete * @param {File} [file] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitUserAvatar(id: string, file?: File, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitUserAvatar(id, file, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UsersNERMApi.submitUserAvatar']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create multiple new users * @summary Create multiple new users * @param {SubmitUsersRequestNERM} submitUsersRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitUsers(submitUsersRequestNERM: SubmitUsersRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitUsers(submitUsersRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UsersNERMApi.submitUsers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * UsersNERMApi - factory interface * @export */ export const UsersNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = UsersNERMApiFp(configuration) return { /** * Delete a user * @summary Delete a user * @param {UsersNERMApiDeleteUserRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteUser(requestParameters: UsersNERMApiDeleteUserRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Info for a specific user * @summary Find user by id * @param {UsersNERMApiGetUserRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUser(requestParameters: UsersNERMApiGetUserRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUser(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Retrieves the URL of the user avatar * @summary Retrieves URL user avatar * @param {UsersNERMApiGetUserAvatarRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUserAvatar(requestParameters: UsersNERMApiGetUserAvatarRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserAvatar(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint can retrieve users from Lifecycle or you can search for users using parameters * @summary Get users * @param {UsersNERMApiGetUsersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getUsers(requestParameters: UsersNERMApiGetUsersRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUsers(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.name, requestParameters.login, requestParameters.title, requestParameters.userStatus, requestParameters.type, requestParameters.email, requestParameters.metadata, requestParameters.sailpointIdentityId, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a user by id * @summary Update a user by id * @param {UsersNERMApiPatchUserRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUser(requestParameters: UsersNERMApiPatchUserRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchUser(requestParameters.id, requestParameters.submitUserRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update multiple users * @summary Update multiple users * @param {UsersNERMApiPatchUsersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchUsers(requestParameters: UsersNERMApiPatchUsersRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchUsers(requestParameters.submitUsersRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a new user * @summary Create a new user * @param {UsersNERMApiSubmitUserRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUser(requestParameters: UsersNERMApiSubmitUserRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitUser(requestParameters.submitUserRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Uploads a new user avatar * @summary Uploads new user avatar * @param {UsersNERMApiSubmitUserAvatarRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUserAvatar(requestParameters: UsersNERMApiSubmitUserAvatarRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitUserAvatar(requestParameters.id, requestParameters.file, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create multiple new users * @summary Create multiple new users * @param {UsersNERMApiSubmitUsersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitUsers(requestParameters: UsersNERMApiSubmitUsersRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitUsers(requestParameters.submitUsersRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for deleteUser operation in UsersNERMApi. * @export * @interface UsersNERMApiDeleteUserRequest */ export interface UsersNERMApiDeleteUserRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UsersNERMApiDeleteUser */ readonly id: string } /** * Request parameters for getUser operation in UsersNERMApi. * @export * @interface UsersNERMApiGetUserRequest */ export interface UsersNERMApiGetUserRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UsersNERMApiGetUser */ readonly id: string } /** * Request parameters for getUserAvatar operation in UsersNERMApi. * @export * @interface UsersNERMApiGetUserAvatarRequest */ export interface UsersNERMApiGetUserAvatarRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UsersNERMApiGetUserAvatar */ readonly id: string } /** * Request parameters for getUsers operation in UsersNERMApi. * @export * @interface UsersNERMApiGetUsersRequest */ export interface UsersNERMApiGetUsersRequest { /** * The maximum number of items to return. * @type {number} * @memberof UsersNERMApiGetUsers */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof UsersNERMApiGetUsers */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof UsersNERMApiGetUsers */ readonly order?: string /** * object name for filtering * @type {string} * @memberof UsersNERMApiGetUsers */ readonly name?: string /** * The user login to search by * @type {string} * @memberof UsersNERMApiGetUsers */ readonly login?: string /** * The user title to search by * @type {string} * @memberof UsersNERMApiGetUsers */ readonly title?: string /** * user status value for filtering * @type {'Active' | 'Pending' | 'Disabled'} * @memberof UsersNERMApiGetUsers */ readonly userStatus?: GetUsersUserStatusNerm /** * user type * @type {'NeprofileUser' | 'NeaccessUser'} * @memberof UsersNERMApiGetUsers */ readonly type?: GetUsersTypeNerm /** * The user email to search by * @type {string} * @memberof UsersNERMApiGetUsers */ readonly email?: string /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof UsersNERMApiGetUsers */ readonly metadata?: boolean /** * SailPoint identity ID * @type {string} * @memberof UsersNERMApiGetUsers */ readonly sailpointIdentityId?: string } /** * Request parameters for patchUser operation in UsersNERMApi. * @export * @interface UsersNERMApiPatchUserRequest */ export interface UsersNERMApiPatchUserRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UsersNERMApiPatchUser */ readonly id: string /** * * @type {SubmitUserRequestNERM} * @memberof UsersNERMApiPatchUser */ readonly submitUserRequestNERM: SubmitUserRequestNERM } /** * Request parameters for patchUsers operation in UsersNERMApi. * @export * @interface UsersNERMApiPatchUsersRequest */ export interface UsersNERMApiPatchUsersRequest { /** * * @type {SubmitUsersRequestNERM} * @memberof UsersNERMApiPatchUsers */ readonly submitUsersRequestNERM: SubmitUsersRequestNERM } /** * Request parameters for submitUser operation in UsersNERMApi. * @export * @interface UsersNERMApiSubmitUserRequest */ export interface UsersNERMApiSubmitUserRequest { /** * * @type {SubmitUserRequestNERM} * @memberof UsersNERMApiSubmitUser */ readonly submitUserRequestNERM: SubmitUserRequestNERM } /** * Request parameters for submitUserAvatar operation in UsersNERMApi. * @export * @interface UsersNERMApiSubmitUserAvatarRequest */ export interface UsersNERMApiSubmitUserAvatarRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof UsersNERMApiSubmitUserAvatar */ readonly id: string /** * * @type {File} * @memberof UsersNERMApiSubmitUserAvatar */ readonly file?: File } /** * Request parameters for submitUsers operation in UsersNERMApi. * @export * @interface UsersNERMApiSubmitUsersRequest */ export interface UsersNERMApiSubmitUsersRequest { /** * * @type {SubmitUsersRequestNERM} * @memberof UsersNERMApiSubmitUsers */ readonly submitUsersRequestNERM: SubmitUsersRequestNERM } /** * UsersNERMApi - object-oriented interface * @export * @class UsersNERMApi * @extends {BaseAPI} */ export class UsersNERMApi extends BaseAPI { /** * Delete a user * @summary Delete a user * @param {UsersNERMApiDeleteUserRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UsersNERMApi */ public deleteUser(requestParameters: UsersNERMApiDeleteUserRequest, axiosOptions?: RawAxiosRequestConfig) { return UsersNERMApiFp(this.configuration).deleteUser(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Info for a specific user * @summary Find user by id * @param {UsersNERMApiGetUserRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UsersNERMApi */ public getUser(requestParameters: UsersNERMApiGetUserRequest, axiosOptions?: RawAxiosRequestConfig) { return UsersNERMApiFp(this.configuration).getUser(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Retrieves the URL of the user avatar * @summary Retrieves URL user avatar * @param {UsersNERMApiGetUserAvatarRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UsersNERMApi */ public getUserAvatar(requestParameters: UsersNERMApiGetUserAvatarRequest, axiosOptions?: RawAxiosRequestConfig) { return UsersNERMApiFp(this.configuration).getUserAvatar(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint can retrieve users from Lifecycle or you can search for users using parameters * @summary Get users * @param {UsersNERMApiGetUsersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UsersNERMApi */ public getUsers(requestParameters: UsersNERMApiGetUsersRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return UsersNERMApiFp(this.configuration).getUsers(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.name, requestParameters.login, requestParameters.title, requestParameters.userStatus, requestParameters.type, requestParameters.email, requestParameters.metadata, requestParameters.sailpointIdentityId, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a user by id * @summary Update a user by id * @param {UsersNERMApiPatchUserRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UsersNERMApi */ public patchUser(requestParameters: UsersNERMApiPatchUserRequest, axiosOptions?: RawAxiosRequestConfig) { return UsersNERMApiFp(this.configuration).patchUser(requestParameters.id, requestParameters.submitUserRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update multiple users * @summary Update multiple users * @param {UsersNERMApiPatchUsersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UsersNERMApi */ public patchUsers(requestParameters: UsersNERMApiPatchUsersRequest, axiosOptions?: RawAxiosRequestConfig) { return UsersNERMApiFp(this.configuration).patchUsers(requestParameters.submitUsersRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a new user * @summary Create a new user * @param {UsersNERMApiSubmitUserRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UsersNERMApi */ public submitUser(requestParameters: UsersNERMApiSubmitUserRequest, axiosOptions?: RawAxiosRequestConfig) { return UsersNERMApiFp(this.configuration).submitUser(requestParameters.submitUserRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Uploads a new user avatar * @summary Uploads new user avatar * @param {UsersNERMApiSubmitUserAvatarRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UsersNERMApi */ public submitUserAvatar(requestParameters: UsersNERMApiSubmitUserAvatarRequest, axiosOptions?: RawAxiosRequestConfig) { return UsersNERMApiFp(this.configuration).submitUserAvatar(requestParameters.id, requestParameters.file, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create multiple new users * @summary Create multiple new users * @param {UsersNERMApiSubmitUsersRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof UsersNERMApi */ public submitUsers(requestParameters: UsersNERMApiSubmitUsersRequest, axiosOptions?: RawAxiosRequestConfig) { return UsersNERMApiFp(this.configuration).submitUsers(requestParameters.submitUsersRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetUsersUserStatusNerm = { Active: 'Active', Pending: 'Pending', Disabled: 'Disabled' } as const; export type GetUsersUserStatusNerm = typeof GetUsersUserStatusNerm[keyof typeof GetUsersUserStatusNerm]; /** * @export */ export const GetUsersTypeNerm = { NeprofileUser: 'NeprofileUser', NeaccessUser: 'NeaccessUser' } as const; export type GetUsersTypeNerm = typeof GetUsersTypeNerm[keyof typeof GetUsersTypeNerm]; /** * WorkflowActionPerformerNERMApi - axios parameter creator * @export */ export const WorkflowActionPerformerNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create a workflow action performer for an existing workflow action * @summary Create a workflow action performer * @param {CreateWorkflowActionPerformerRequestNERM} createWorkflowActionPerformerRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createWorkflowActionPerformer: async (createWorkflowActionPerformerRequestNERM: CreateWorkflowActionPerformerRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createWorkflowActionPerformerRequestNERM' is not null or undefined assertParamExists('createWorkflowActionPerformer', 'createWorkflowActionPerformerRequestNERM', createWorkflowActionPerformerRequestNERM) const localVarPath = `/workflow_action_performers`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createWorkflowActionPerformerRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * WorkflowActionPerformerNERMApi - functional programming interface * @export */ export const WorkflowActionPerformerNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = WorkflowActionPerformerNERMApiAxiosParamCreator(configuration) return { /** * Create a workflow action performer for an existing workflow action * @summary Create a workflow action performer * @param {CreateWorkflowActionPerformerRequestNERM} createWorkflowActionPerformerRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createWorkflowActionPerformer(createWorkflowActionPerformerRequestNERM: CreateWorkflowActionPerformerRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkflowActionPerformer(createWorkflowActionPerformerRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionPerformerNERMApi.createWorkflowActionPerformer']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * WorkflowActionPerformerNERMApi - factory interface * @export */ export const WorkflowActionPerformerNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = WorkflowActionPerformerNERMApiFp(configuration) return { /** * Create a workflow action performer for an existing workflow action * @summary Create a workflow action performer * @param {WorkflowActionPerformerNERMApiCreateWorkflowActionPerformerRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createWorkflowActionPerformer(requestParameters: WorkflowActionPerformerNERMApiCreateWorkflowActionPerformerRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createWorkflowActionPerformer(requestParameters.createWorkflowActionPerformerRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createWorkflowActionPerformer operation in WorkflowActionPerformerNERMApi. * @export * @interface WorkflowActionPerformerNERMApiCreateWorkflowActionPerformerRequest */ export interface WorkflowActionPerformerNERMApiCreateWorkflowActionPerformerRequest { /** * * @type {CreateWorkflowActionPerformerRequestNERM} * @memberof WorkflowActionPerformerNERMApiCreateWorkflowActionPerformer */ readonly createWorkflowActionPerformerRequestNERM: CreateWorkflowActionPerformerRequestNERM } /** * WorkflowActionPerformerNERMApi - object-oriented interface * @export * @class WorkflowActionPerformerNERMApi * @extends {BaseAPI} */ export class WorkflowActionPerformerNERMApi extends BaseAPI { /** * Create a workflow action performer for an existing workflow action * @summary Create a workflow action performer * @param {WorkflowActionPerformerNERMApiCreateWorkflowActionPerformerRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionPerformerNERMApi */ public createWorkflowActionPerformer(requestParameters: WorkflowActionPerformerNERMApiCreateWorkflowActionPerformerRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionPerformerNERMApiFp(this.configuration).createWorkflowActionPerformer(requestParameters.createWorkflowActionPerformerRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * WorkflowActionsNERMApi - axios parameter creator * @export */ export const WorkflowActionsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create an approval action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email, workflow_action_approval_email, workflow_action_rejection_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an approval action * @param {CreateApprovalActionRequestNERM} createApprovalActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createApprovalAction: async (createApprovalActionRequestNERM: CreateApprovalActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createApprovalActionRequestNERM' is not null or undefined assertParamExists('createApprovalAction', 'createApprovalActionRequestNERM', createApprovalActionRequestNERM) const localVarPath = `/workflow_actions/approval_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createApprovalActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create an ask security question action * @summary Create ask security question action * @param {CreateAskSecurityQuestionActionRequestNERM} createAskSecurityQuestionActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createAskSecurityQuestionAction: async (createAskSecurityQuestionActionRequestNERM: CreateAskSecurityQuestionActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createAskSecurityQuestionActionRequestNERM' is not null or undefined assertParamExists('createAskSecurityQuestionAction', 'createAskSecurityQuestionActionRequestNERM', createAskSecurityQuestionActionRequestNERM) const localVarPath = `/workflow_actions/ask_security_question_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createAskSecurityQuestionActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create an auto assign action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an auto assign action * @param {CreateAutoAssignActionRequestNERM} createAutoAssignActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createAutoAssignAction: async (createAutoAssignActionRequestNERM: CreateAutoAssignActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createAutoAssignActionRequestNERM' is not null or undefined assertParamExists('createAutoAssignAction', 'createAutoAssignActionRequestNERM', createAutoAssignActionRequestNERM) const localVarPath = `/workflow_actions/auto_assign_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createAutoAssignActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a batch update action * @summary Create a batch update action * @param {CreateBatchUpdateActionRequestNERM} createBatchUpdateActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createBatchUpdateAction: async (createBatchUpdateActionRequestNERM: CreateBatchUpdateActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createBatchUpdateActionRequestNERM' is not null or undefined assertParamExists('createBatchUpdateAction', 'createBatchUpdateActionRequestNERM', createBatchUpdateActionRequestNERM) const localVarPath = `/workflow_actions/batch_update_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createBatchUpdateActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a close session action * @summary Create a close session action * @param {CreateCloseSessionActionRequestNERM} createCloseSessionActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createCloseSessionAction: async (createCloseSessionActionRequestNERM: CreateCloseSessionActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createCloseSessionActionRequestNERM' is not null or undefined assertParamExists('createCloseSessionAction', 'createCloseSessionActionRequestNERM', createCloseSessionActionRequestNERM) const localVarPath = `/workflow_actions/close_session_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createCloseSessionActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a contributors action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a contributors action * @param {CreateContributorsActionRequestNERM} createContributorsActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createContributorsAction: async (createContributorsActionRequestNERM: CreateContributorsActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createContributorsActionRequestNERM' is not null or undefined assertParamExists('createContributorsAction', 'createContributorsActionRequestNERM', createContributorsActionRequestNERM) const localVarPath = `/workflow_actions/contributors_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createContributorsActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a create profile action * @summary Create a create profile action * @param {CreateCreateProfileActionRequestNERM} createCreateProfileActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createCreateProfileAction: async (createCreateProfileActionRequestNERM: CreateCreateProfileActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createCreateProfileActionRequestNERM' is not null or undefined assertParamExists('createCreateProfileAction', 'createCreateProfileActionRequestNERM', createCreateProfileActionRequestNERM) const localVarPath = `/workflow_actions/create_profile_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createCreateProfileActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a duplicate prevention action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - duplicatation_prevention_attributes, workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a duplicate prevention action * @param {CreateDuplicatePreventionActionRequestNERM} createDuplicatePreventionActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createDuplicatePreventionAction: async (createDuplicatePreventionActionRequestNERM: CreateDuplicatePreventionActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createDuplicatePreventionActionRequestNERM' is not null or undefined assertParamExists('createDuplicatePreventionAction', 'createDuplicatePreventionActionRequestNERM', createDuplicatePreventionActionRequestNERM) const localVarPath = `/workflow_actions/duplicate_prevention_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createDuplicatePreventionActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create an email verification action * @summary Create an email verification action * @param {CreateEmailVerificationActionRequestNERM} createEmailVerificationActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createEmailVerificationAction: async (createEmailVerificationActionRequestNERM: CreateEmailVerificationActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createEmailVerificationActionRequestNERM' is not null or undefined assertParamExists('createEmailVerificationAction', 'createEmailVerificationActionRequestNERM', createEmailVerificationActionRequestNERM) const localVarPath = `/workflow_actions/email_verification_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createEmailVerificationActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a fulfillment action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a fulfillment action * @param {CreateFulfillmentActionRequestNERM} createFulfillmentActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createFulfillmentAction: async (createFulfillmentActionRequestNERM: CreateFulfillmentActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createFulfillmentActionRequestNERM' is not null or undefined assertParamExists('createFulfillmentAction', 'createFulfillmentActionRequestNERM', createFulfillmentActionRequestNERM) const localVarPath = `/workflow_actions/fulfillment_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createFulfillmentActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create an identity proofing action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - identity_proofing_action_configuration, identity_proofing_action_mappings. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an identity proofing action * @param {CreateIdentityProofingActionRequestNERM} createIdentityProofingActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createIdentityProofingAction: async (createIdentityProofingActionRequestNERM: CreateIdentityProofingActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createIdentityProofingActionRequestNERM' is not null or undefined assertParamExists('createIdentityProofingAction', 'createIdentityProofingActionRequestNERM', createIdentityProofingActionRequestNERM) const localVarPath = `/workflow_actions/identity_proofing_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createIdentityProofingActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create an invitation action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_pause_action. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an invitation action * @param {CreateInvitationActionRequestNERM} createInvitationActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createInvitationAction: async (createInvitationActionRequestNERM: CreateInvitationActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createInvitationActionRequestNERM' is not null or undefined assertParamExists('createInvitationAction', 'createInvitationActionRequestNERM', createInvitationActionRequestNERM) const localVarPath = `/workflow_actions/invitation_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createInvitationActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a ldap action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a ldap action * @param {CreateLdapActionRequestNERM} createLdapActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createLdapAction: async (createLdapActionRequestNERM: CreateLdapActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createLdapActionRequestNERM' is not null or undefined assertParamExists('createLdapAction', 'createLdapActionRequestNERM', createLdapActionRequestNERM) const localVarPath = `/workflow_actions/ldap_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createLdapActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a notification action * @summary Create a notification action * @param {CreateNotificationActionRequestNERM} createNotificationActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createNotificationAction: async (createNotificationActionRequestNERM: CreateNotificationActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createNotificationActionRequestNERM' is not null or undefined assertParamExists('createNotificationAction', 'createNotificationActionRequestNERM', createNotificationActionRequestNERM) const localVarPath = `/workflow_actions/notification_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createNotificationActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a password reset action * @summary Create a password reset action * @param {CreatePasswordResetActionRequestNERM} createPasswordResetActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPasswordResetAction: async (createPasswordResetActionRequestNERM: CreatePasswordResetActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createPasswordResetActionRequestNERM' is not null or undefined assertParamExists('createPasswordResetAction', 'createPasswordResetActionRequestNERM', createPasswordResetActionRequestNERM) const localVarPath = `/workflow_actions/password_reset_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createPasswordResetActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a profile check action * @summary Create a profile check action * @param {CreateProfileCheckActionRequestNERM} createProfileCheckActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createProfileCheckAction: async (createProfileCheckActionRequestNERM: CreateProfileCheckActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createProfileCheckActionRequestNERM' is not null or undefined assertParamExists('createProfileCheckAction', 'createProfileCheckActionRequestNERM', createProfileCheckActionRequestNERM) const localVarPath = `/workflow_actions/profile_check_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createProfileCheckActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a profile select action * @summary Create a profile select action * @param {CreateProfileSelectActionRequestNERM} createProfileSelectActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createProfileSelectAction: async (createProfileSelectActionRequestNERM: CreateProfileSelectActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createProfileSelectActionRequestNERM' is not null or undefined assertParamExists('createProfileSelectAction', 'createProfileSelectActionRequestNERM', createProfileSelectActionRequestNERM) const localVarPath = `/workflow_actions/profile_select_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createProfileSelectActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a request action * @summary Create a request action * @param {CreateRequestActionRequestNERM} createRequestActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createRequestAction: async (createRequestActionRequestNERM: CreateRequestActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createRequestActionRequestNERM' is not null or undefined assertParamExists('createRequestAction', 'createRequestActionRequestNERM', createRequestActionRequestNERM) const localVarPath = `/workflow_actions/request_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createRequestActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a REST API action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - rest_api_action_configuration, api_configuration_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a REST API action * @param {CreateRestApiActionRequestNERM} createRestApiActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createRestApiAction: async (createRestApiActionRequestNERM: CreateRestApiActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createRestApiActionRequestNERM' is not null or undefined assertParamExists('createRestApiAction', 'createRestApiActionRequestNERM', createRestApiActionRequestNERM) const localVarPath = `/workflow_actions/rest_api_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createRestApiActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a review action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a review action * @param {CreateReviewActionRequestNERM} createReviewActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createReviewAction: async (createReviewActionRequestNERM: CreateReviewActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createReviewActionRequestNERM' is not null or undefined assertParamExists('createReviewAction', 'createReviewActionRequestNERM', createReviewActionRequestNERM) const localVarPath = `/workflow_actions/review_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createReviewActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a run workflow action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - configuration_profile_attribute. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a run workflow action * @param {CreateRunWorkflowActionRequestNERM} createRunWorkflowActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createRunWorkflowAction: async (createRunWorkflowActionRequestNERM: CreateRunWorkflowActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createRunWorkflowActionRequestNERM' is not null or undefined assertParamExists('createRunWorkflowAction', 'createRunWorkflowActionRequestNERM', createRunWorkflowActionRequestNERM) const localVarPath = `/workflow_actions/run_workflow_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createRunWorkflowActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a set attributes action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_set_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a set attributes action * @param {CreateSetAttributesActionRequestNERM} createSetAttributesActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSetAttributesAction: async (createSetAttributesActionRequestNERM: CreateSetAttributesActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createSetAttributesActionRequestNERM' is not null or undefined assertParamExists('createSetAttributesAction', 'createSetAttributesActionRequestNERM', createSetAttributesActionRequestNERM) const localVarPath = `/workflow_actions/set_attributes_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createSetAttributesActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a set security question action * @summary Create set security question action * @param {CreateSetSecurityQuestionActionRequestNERM} createSetSecurityQuestionActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSetSecurityQuestionAction: async (createSetSecurityQuestionActionRequestNERM: CreateSetSecurityQuestionActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createSetSecurityQuestionActionRequestNERM' is not null or undefined assertParamExists('createSetSecurityQuestionAction', 'createSetSecurityQuestionActionRequestNERM', createSetSecurityQuestionActionRequestNERM) const localVarPath = `/workflow_actions/set_security_question_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createSetSecurityQuestionActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a SOAP API action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - soap_api_action_configuration, api_configuration_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a SOAP API action * @param {CreateSoapApiActionRequestNERM} createSoapApiActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSoapApiAction: async (createSoapApiActionRequestNERM: CreateSoapApiActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createSoapApiActionRequestNERM' is not null or undefined assertParamExists('createSoapApiAction', 'createSoapApiActionRequestNERM', createSoapApiActionRequestNERM) const localVarPath = `/workflow_actions/soap_api_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createSoapApiActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a status change action * @summary Create a status change action * @param {CreateStatusChangeActionRequestNERM} createStatusChangeActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createStatusChangeAction: async (createStatusChangeActionRequestNERM: CreateStatusChangeActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createStatusChangeActionRequestNERM' is not null or undefined assertParamExists('createStatusChangeAction', 'createStatusChangeActionRequestNERM', createStatusChangeActionRequestNERM) const localVarPath = `/workflow_actions/status_change_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createStatusChangeActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create an unassign action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an unassign action * @param {CreateUnassignActionRequestNERM} createUnassignActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createUnassignAction: async (createUnassignActionRequestNERM: CreateUnassignActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createUnassignActionRequestNERM' is not null or undefined assertParamExists('createUnassignAction', 'createUnassignActionRequestNERM', createUnassignActionRequestNERM) const localVarPath = `/workflow_actions/unassign_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createUnassignActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create an update profile action * @summary Create an update profile action * @param {CreateUpdateProfileActionRequestNERM} createUpdateProfileActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createUpdateProfileAction: async (createUpdateProfileActionRequestNERM: CreateUpdateProfileActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createUpdateProfileActionRequestNERM' is not null or undefined assertParamExists('createUpdateProfileAction', 'createUpdateProfileActionRequestNERM', createUpdateProfileActionRequestNERM) const localVarPath = `/workflow_actions/update_profile_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createUpdateProfileActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a username password action * @summary Create a username password action * @param {CreateUsernamePasswordActionRequestNERM} createUsernamePasswordActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createUsernamePasswordAction: async (createUsernamePasswordActionRequestNERM: CreateUsernamePasswordActionRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createUsernamePasswordActionRequestNERM' is not null or undefined assertParamExists('createUsernamePasswordAction', 'createUsernamePasswordActionRequestNERM', createUsernamePasswordActionRequestNERM) const localVarPath = `/workflow_actions/username_password_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createUsernamePasswordActionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * This endpoint can retrieve workflow actions * @summary Get Workflow Actions * @param {string} [workflowId] Workflow ID for filtering * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getWorkflowActions: async (workflowId?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/workflow_actions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (workflowId !== undefined) { localVarQueryParameter['workflow_id'] = workflowId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * WorkflowActionsNERMApi - functional programming interface * @export */ export const WorkflowActionsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = WorkflowActionsNERMApiAxiosParamCreator(configuration) return { /** * Create an approval action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email, workflow_action_approval_email, workflow_action_rejection_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an approval action * @param {CreateApprovalActionRequestNERM} createApprovalActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createApprovalAction(createApprovalActionRequestNERM: CreateApprovalActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createApprovalAction(createApprovalActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createApprovalAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create an ask security question action * @summary Create ask security question action * @param {CreateAskSecurityQuestionActionRequestNERM} createAskSecurityQuestionActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createAskSecurityQuestionAction(createAskSecurityQuestionActionRequestNERM: CreateAskSecurityQuestionActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAskSecurityQuestionAction(createAskSecurityQuestionActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createAskSecurityQuestionAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create an auto assign action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an auto assign action * @param {CreateAutoAssignActionRequestNERM} createAutoAssignActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createAutoAssignAction(createAutoAssignActionRequestNERM: CreateAutoAssignActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAutoAssignAction(createAutoAssignActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createAutoAssignAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a batch update action * @summary Create a batch update action * @param {CreateBatchUpdateActionRequestNERM} createBatchUpdateActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createBatchUpdateAction(createBatchUpdateActionRequestNERM: CreateBatchUpdateActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createBatchUpdateAction(createBatchUpdateActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createBatchUpdateAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a close session action * @summary Create a close session action * @param {CreateCloseSessionActionRequestNERM} createCloseSessionActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createCloseSessionAction(createCloseSessionActionRequestNERM: CreateCloseSessionActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCloseSessionAction(createCloseSessionActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createCloseSessionAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a contributors action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a contributors action * @param {CreateContributorsActionRequestNERM} createContributorsActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createContributorsAction(createContributorsActionRequestNERM: CreateContributorsActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createContributorsAction(createContributorsActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createContributorsAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a create profile action * @summary Create a create profile action * @param {CreateCreateProfileActionRequestNERM} createCreateProfileActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createCreateProfileAction(createCreateProfileActionRequestNERM: CreateCreateProfileActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCreateProfileAction(createCreateProfileActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createCreateProfileAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a duplicate prevention action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - duplicatation_prevention_attributes, workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a duplicate prevention action * @param {CreateDuplicatePreventionActionRequestNERM} createDuplicatePreventionActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createDuplicatePreventionAction(createDuplicatePreventionActionRequestNERM: CreateDuplicatePreventionActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createDuplicatePreventionAction(createDuplicatePreventionActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createDuplicatePreventionAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create an email verification action * @summary Create an email verification action * @param {CreateEmailVerificationActionRequestNERM} createEmailVerificationActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createEmailVerificationAction(createEmailVerificationActionRequestNERM: CreateEmailVerificationActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createEmailVerificationAction(createEmailVerificationActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createEmailVerificationAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a fulfillment action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a fulfillment action * @param {CreateFulfillmentActionRequestNERM} createFulfillmentActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createFulfillmentAction(createFulfillmentActionRequestNERM: CreateFulfillmentActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createFulfillmentAction(createFulfillmentActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createFulfillmentAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create an identity proofing action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - identity_proofing_action_configuration, identity_proofing_action_mappings. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an identity proofing action * @param {CreateIdentityProofingActionRequestNERM} createIdentityProofingActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createIdentityProofingAction(createIdentityProofingActionRequestNERM: CreateIdentityProofingActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createIdentityProofingAction(createIdentityProofingActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createIdentityProofingAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create an invitation action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_pause_action. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an invitation action * @param {CreateInvitationActionRequestNERM} createInvitationActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createInvitationAction(createInvitationActionRequestNERM: CreateInvitationActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createInvitationAction(createInvitationActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createInvitationAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a ldap action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a ldap action * @param {CreateLdapActionRequestNERM} createLdapActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createLdapAction(createLdapActionRequestNERM: CreateLdapActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createLdapAction(createLdapActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createLdapAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a notification action * @summary Create a notification action * @param {CreateNotificationActionRequestNERM} createNotificationActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createNotificationAction(createNotificationActionRequestNERM: CreateNotificationActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createNotificationAction(createNotificationActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createNotificationAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a password reset action * @summary Create a password reset action * @param {CreatePasswordResetActionRequestNERM} createPasswordResetActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createPasswordResetAction(createPasswordResetActionRequestNERM: CreatePasswordResetActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPasswordResetAction(createPasswordResetActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createPasswordResetAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a profile check action * @summary Create a profile check action * @param {CreateProfileCheckActionRequestNERM} createProfileCheckActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createProfileCheckAction(createProfileCheckActionRequestNERM: CreateProfileCheckActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileCheckAction(createProfileCheckActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createProfileCheckAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a profile select action * @summary Create a profile select action * @param {CreateProfileSelectActionRequestNERM} createProfileSelectActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createProfileSelectAction(createProfileSelectActionRequestNERM: CreateProfileSelectActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileSelectAction(createProfileSelectActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createProfileSelectAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a request action * @summary Create a request action * @param {CreateRequestActionRequestNERM} createRequestActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createRequestAction(createRequestActionRequestNERM: CreateRequestActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRequestAction(createRequestActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createRequestAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a REST API action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - rest_api_action_configuration, api_configuration_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a REST API action * @param {CreateRestApiActionRequestNERM} createRestApiActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createRestApiAction(createRestApiActionRequestNERM: CreateRestApiActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRestApiAction(createRestApiActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createRestApiAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a review action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a review action * @param {CreateReviewActionRequestNERM} createReviewActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createReviewAction(createReviewActionRequestNERM: CreateReviewActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createReviewAction(createReviewActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createReviewAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a run workflow action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - configuration_profile_attribute. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a run workflow action * @param {CreateRunWorkflowActionRequestNERM} createRunWorkflowActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createRunWorkflowAction(createRunWorkflowActionRequestNERM: CreateRunWorkflowActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRunWorkflowAction(createRunWorkflowActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createRunWorkflowAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a set attributes action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_set_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a set attributes action * @param {CreateSetAttributesActionRequestNERM} createSetAttributesActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createSetAttributesAction(createSetAttributesActionRequestNERM: CreateSetAttributesActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSetAttributesAction(createSetAttributesActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createSetAttributesAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a set security question action * @summary Create set security question action * @param {CreateSetSecurityQuestionActionRequestNERM} createSetSecurityQuestionActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createSetSecurityQuestionAction(createSetSecurityQuestionActionRequestNERM: CreateSetSecurityQuestionActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSetSecurityQuestionAction(createSetSecurityQuestionActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createSetSecurityQuestionAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a SOAP API action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - soap_api_action_configuration, api_configuration_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a SOAP API action * @param {CreateSoapApiActionRequestNERM} createSoapApiActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createSoapApiAction(createSoapApiActionRequestNERM: CreateSoapApiActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSoapApiAction(createSoapApiActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createSoapApiAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a status change action * @summary Create a status change action * @param {CreateStatusChangeActionRequestNERM} createStatusChangeActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createStatusChangeAction(createStatusChangeActionRequestNERM: CreateStatusChangeActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createStatusChangeAction(createStatusChangeActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createStatusChangeAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create an unassign action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an unassign action * @param {CreateUnassignActionRequestNERM} createUnassignActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createUnassignAction(createUnassignActionRequestNERM: CreateUnassignActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createUnassignAction(createUnassignActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createUnassignAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create an update profile action * @summary Create an update profile action * @param {CreateUpdateProfileActionRequestNERM} createUpdateProfileActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createUpdateProfileAction(createUpdateProfileActionRequestNERM: CreateUpdateProfileActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createUpdateProfileAction(createUpdateProfileActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createUpdateProfileAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a username password action * @summary Create a username password action * @param {CreateUsernamePasswordActionRequestNERM} createUsernamePasswordActionRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createUsernamePasswordAction(createUsernamePasswordActionRequestNERM: CreateUsernamePasswordActionRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createUsernamePasswordAction(createUsernamePasswordActionRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.createUsernamePasswordAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * This endpoint can retrieve workflow actions * @summary Get Workflow Actions * @param {string} [workflowId] Workflow ID for filtering * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getWorkflowActions(workflowId?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkflowActions(workflowId, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowActionsNERMApi.getWorkflowActions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * WorkflowActionsNERMApi - factory interface * @export */ export const WorkflowActionsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = WorkflowActionsNERMApiFp(configuration) return { /** * Create an approval action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email, workflow_action_approval_email, workflow_action_rejection_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an approval action * @param {WorkflowActionsNERMApiCreateApprovalActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createApprovalAction(requestParameters: WorkflowActionsNERMApiCreateApprovalActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createApprovalAction(requestParameters.createApprovalActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create an ask security question action * @summary Create ask security question action * @param {WorkflowActionsNERMApiCreateAskSecurityQuestionActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createAskSecurityQuestionAction(requestParameters: WorkflowActionsNERMApiCreateAskSecurityQuestionActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createAskSecurityQuestionAction(requestParameters.createAskSecurityQuestionActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create an auto assign action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an auto assign action * @param {WorkflowActionsNERMApiCreateAutoAssignActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createAutoAssignAction(requestParameters: WorkflowActionsNERMApiCreateAutoAssignActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createAutoAssignAction(requestParameters.createAutoAssignActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a batch update action * @summary Create a batch update action * @param {WorkflowActionsNERMApiCreateBatchUpdateActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createBatchUpdateAction(requestParameters: WorkflowActionsNERMApiCreateBatchUpdateActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createBatchUpdateAction(requestParameters.createBatchUpdateActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a close session action * @summary Create a close session action * @param {WorkflowActionsNERMApiCreateCloseSessionActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createCloseSessionAction(requestParameters: WorkflowActionsNERMApiCreateCloseSessionActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createCloseSessionAction(requestParameters.createCloseSessionActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a contributors action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a contributors action * @param {WorkflowActionsNERMApiCreateContributorsActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createContributorsAction(requestParameters: WorkflowActionsNERMApiCreateContributorsActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createContributorsAction(requestParameters.createContributorsActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a create profile action * @summary Create a create profile action * @param {WorkflowActionsNERMApiCreateCreateProfileActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createCreateProfileAction(requestParameters: WorkflowActionsNERMApiCreateCreateProfileActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createCreateProfileAction(requestParameters.createCreateProfileActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a duplicate prevention action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - duplicatation_prevention_attributes, workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a duplicate prevention action * @param {WorkflowActionsNERMApiCreateDuplicatePreventionActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createDuplicatePreventionAction(requestParameters: WorkflowActionsNERMApiCreateDuplicatePreventionActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createDuplicatePreventionAction(requestParameters.createDuplicatePreventionActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create an email verification action * @summary Create an email verification action * @param {WorkflowActionsNERMApiCreateEmailVerificationActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createEmailVerificationAction(requestParameters: WorkflowActionsNERMApiCreateEmailVerificationActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createEmailVerificationAction(requestParameters.createEmailVerificationActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a fulfillment action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a fulfillment action * @param {WorkflowActionsNERMApiCreateFulfillmentActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createFulfillmentAction(requestParameters: WorkflowActionsNERMApiCreateFulfillmentActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createFulfillmentAction(requestParameters.createFulfillmentActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create an identity proofing action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - identity_proofing_action_configuration, identity_proofing_action_mappings. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an identity proofing action * @param {WorkflowActionsNERMApiCreateIdentityProofingActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createIdentityProofingAction(requestParameters: WorkflowActionsNERMApiCreateIdentityProofingActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createIdentityProofingAction(requestParameters.createIdentityProofingActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create an invitation action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_pause_action. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an invitation action * @param {WorkflowActionsNERMApiCreateInvitationActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createInvitationAction(requestParameters: WorkflowActionsNERMApiCreateInvitationActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createInvitationAction(requestParameters.createInvitationActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a ldap action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a ldap action * @param {WorkflowActionsNERMApiCreateLdapActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createLdapAction(requestParameters: WorkflowActionsNERMApiCreateLdapActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createLdapAction(requestParameters.createLdapActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a notification action * @summary Create a notification action * @param {WorkflowActionsNERMApiCreateNotificationActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createNotificationAction(requestParameters: WorkflowActionsNERMApiCreateNotificationActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createNotificationAction(requestParameters.createNotificationActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a password reset action * @summary Create a password reset action * @param {WorkflowActionsNERMApiCreatePasswordResetActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPasswordResetAction(requestParameters: WorkflowActionsNERMApiCreatePasswordResetActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createPasswordResetAction(requestParameters.createPasswordResetActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a profile check action * @summary Create a profile check action * @param {WorkflowActionsNERMApiCreateProfileCheckActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createProfileCheckAction(requestParameters: WorkflowActionsNERMApiCreateProfileCheckActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProfileCheckAction(requestParameters.createProfileCheckActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a profile select action * @summary Create a profile select action * @param {WorkflowActionsNERMApiCreateProfileSelectActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createProfileSelectAction(requestParameters: WorkflowActionsNERMApiCreateProfileSelectActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProfileSelectAction(requestParameters.createProfileSelectActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a request action * @summary Create a request action * @param {WorkflowActionsNERMApiCreateRequestActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createRequestAction(requestParameters: WorkflowActionsNERMApiCreateRequestActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRequestAction(requestParameters.createRequestActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a REST API action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - rest_api_action_configuration, api_configuration_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a REST API action * @param {WorkflowActionsNERMApiCreateRestApiActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createRestApiAction(requestParameters: WorkflowActionsNERMApiCreateRestApiActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRestApiAction(requestParameters.createRestApiActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a review action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a review action * @param {WorkflowActionsNERMApiCreateReviewActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createReviewAction(requestParameters: WorkflowActionsNERMApiCreateReviewActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createReviewAction(requestParameters.createReviewActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a run workflow action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - configuration_profile_attribute. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a run workflow action * @param {WorkflowActionsNERMApiCreateRunWorkflowActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createRunWorkflowAction(requestParameters: WorkflowActionsNERMApiCreateRunWorkflowActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRunWorkflowAction(requestParameters.createRunWorkflowActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a set attributes action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_set_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a set attributes action * @param {WorkflowActionsNERMApiCreateSetAttributesActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSetAttributesAction(requestParameters: WorkflowActionsNERMApiCreateSetAttributesActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createSetAttributesAction(requestParameters.createSetAttributesActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a set security question action * @summary Create set security question action * @param {WorkflowActionsNERMApiCreateSetSecurityQuestionActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSetSecurityQuestionAction(requestParameters: WorkflowActionsNERMApiCreateSetSecurityQuestionActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createSetSecurityQuestionAction(requestParameters.createSetSecurityQuestionActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a SOAP API action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - soap_api_action_configuration, api_configuration_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a SOAP API action * @param {WorkflowActionsNERMApiCreateSoapApiActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createSoapApiAction(requestParameters: WorkflowActionsNERMApiCreateSoapApiActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createSoapApiAction(requestParameters.createSoapApiActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a status change action * @summary Create a status change action * @param {WorkflowActionsNERMApiCreateStatusChangeActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createStatusChangeAction(requestParameters: WorkflowActionsNERMApiCreateStatusChangeActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createStatusChangeAction(requestParameters.createStatusChangeActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create an unassign action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an unassign action * @param {WorkflowActionsNERMApiCreateUnassignActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createUnassignAction(requestParameters: WorkflowActionsNERMApiCreateUnassignActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUnassignAction(requestParameters.createUnassignActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create an update profile action * @summary Create an update profile action * @param {WorkflowActionsNERMApiCreateUpdateProfileActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createUpdateProfileAction(requestParameters: WorkflowActionsNERMApiCreateUpdateProfileActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUpdateProfileAction(requestParameters.createUpdateProfileActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a username password action * @summary Create a username password action * @param {WorkflowActionsNERMApiCreateUsernamePasswordActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createUsernamePasswordAction(requestParameters: WorkflowActionsNERMApiCreateUsernamePasswordActionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsernamePasswordAction(requestParameters.createUsernamePasswordActionRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * This endpoint can retrieve workflow actions * @summary Get Workflow Actions * @param {WorkflowActionsNERMApiGetWorkflowActionsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getWorkflowActions(requestParameters: WorkflowActionsNERMApiGetWorkflowActionsRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWorkflowActions(requestParameters.workflowId, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createApprovalAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateApprovalActionRequest */ export interface WorkflowActionsNERMApiCreateApprovalActionRequest { /** * * @type {CreateApprovalActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateApprovalAction */ readonly createApprovalActionRequestNERM: CreateApprovalActionRequestNERM } /** * Request parameters for createAskSecurityQuestionAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateAskSecurityQuestionActionRequest */ export interface WorkflowActionsNERMApiCreateAskSecurityQuestionActionRequest { /** * * @type {CreateAskSecurityQuestionActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateAskSecurityQuestionAction */ readonly createAskSecurityQuestionActionRequestNERM: CreateAskSecurityQuestionActionRequestNERM } /** * Request parameters for createAutoAssignAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateAutoAssignActionRequest */ export interface WorkflowActionsNERMApiCreateAutoAssignActionRequest { /** * * @type {CreateAutoAssignActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateAutoAssignAction */ readonly createAutoAssignActionRequestNERM: CreateAutoAssignActionRequestNERM } /** * Request parameters for createBatchUpdateAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateBatchUpdateActionRequest */ export interface WorkflowActionsNERMApiCreateBatchUpdateActionRequest { /** * * @type {CreateBatchUpdateActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateBatchUpdateAction */ readonly createBatchUpdateActionRequestNERM: CreateBatchUpdateActionRequestNERM } /** * Request parameters for createCloseSessionAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateCloseSessionActionRequest */ export interface WorkflowActionsNERMApiCreateCloseSessionActionRequest { /** * * @type {CreateCloseSessionActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateCloseSessionAction */ readonly createCloseSessionActionRequestNERM: CreateCloseSessionActionRequestNERM } /** * Request parameters for createContributorsAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateContributorsActionRequest */ export interface WorkflowActionsNERMApiCreateContributorsActionRequest { /** * * @type {CreateContributorsActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateContributorsAction */ readonly createContributorsActionRequestNERM: CreateContributorsActionRequestNERM } /** * Request parameters for createCreateProfileAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateCreateProfileActionRequest */ export interface WorkflowActionsNERMApiCreateCreateProfileActionRequest { /** * * @type {CreateCreateProfileActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateCreateProfileAction */ readonly createCreateProfileActionRequestNERM: CreateCreateProfileActionRequestNERM } /** * Request parameters for createDuplicatePreventionAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateDuplicatePreventionActionRequest */ export interface WorkflowActionsNERMApiCreateDuplicatePreventionActionRequest { /** * * @type {CreateDuplicatePreventionActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateDuplicatePreventionAction */ readonly createDuplicatePreventionActionRequestNERM: CreateDuplicatePreventionActionRequestNERM } /** * Request parameters for createEmailVerificationAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateEmailVerificationActionRequest */ export interface WorkflowActionsNERMApiCreateEmailVerificationActionRequest { /** * * @type {CreateEmailVerificationActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateEmailVerificationAction */ readonly createEmailVerificationActionRequestNERM: CreateEmailVerificationActionRequestNERM } /** * Request parameters for createFulfillmentAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateFulfillmentActionRequest */ export interface WorkflowActionsNERMApiCreateFulfillmentActionRequest { /** * * @type {CreateFulfillmentActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateFulfillmentAction */ readonly createFulfillmentActionRequestNERM: CreateFulfillmentActionRequestNERM } /** * Request parameters for createIdentityProofingAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateIdentityProofingActionRequest */ export interface WorkflowActionsNERMApiCreateIdentityProofingActionRequest { /** * * @type {CreateIdentityProofingActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateIdentityProofingAction */ readonly createIdentityProofingActionRequestNERM: CreateIdentityProofingActionRequestNERM } /** * Request parameters for createInvitationAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateInvitationActionRequest */ export interface WorkflowActionsNERMApiCreateInvitationActionRequest { /** * * @type {CreateInvitationActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateInvitationAction */ readonly createInvitationActionRequestNERM: CreateInvitationActionRequestNERM } /** * Request parameters for createLdapAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateLdapActionRequest */ export interface WorkflowActionsNERMApiCreateLdapActionRequest { /** * * @type {CreateLdapActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateLdapAction */ readonly createLdapActionRequestNERM: CreateLdapActionRequestNERM } /** * Request parameters for createNotificationAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateNotificationActionRequest */ export interface WorkflowActionsNERMApiCreateNotificationActionRequest { /** * * @type {CreateNotificationActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateNotificationAction */ readonly createNotificationActionRequestNERM: CreateNotificationActionRequestNERM } /** * Request parameters for createPasswordResetAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreatePasswordResetActionRequest */ export interface WorkflowActionsNERMApiCreatePasswordResetActionRequest { /** * * @type {CreatePasswordResetActionRequestNERM} * @memberof WorkflowActionsNERMApiCreatePasswordResetAction */ readonly createPasswordResetActionRequestNERM: CreatePasswordResetActionRequestNERM } /** * Request parameters for createProfileCheckAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateProfileCheckActionRequest */ export interface WorkflowActionsNERMApiCreateProfileCheckActionRequest { /** * * @type {CreateProfileCheckActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateProfileCheckAction */ readonly createProfileCheckActionRequestNERM: CreateProfileCheckActionRequestNERM } /** * Request parameters for createProfileSelectAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateProfileSelectActionRequest */ export interface WorkflowActionsNERMApiCreateProfileSelectActionRequest { /** * * @type {CreateProfileSelectActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateProfileSelectAction */ readonly createProfileSelectActionRequestNERM: CreateProfileSelectActionRequestNERM } /** * Request parameters for createRequestAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateRequestActionRequest */ export interface WorkflowActionsNERMApiCreateRequestActionRequest { /** * * @type {CreateRequestActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateRequestAction */ readonly createRequestActionRequestNERM: CreateRequestActionRequestNERM } /** * Request parameters for createRestApiAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateRestApiActionRequest */ export interface WorkflowActionsNERMApiCreateRestApiActionRequest { /** * * @type {CreateRestApiActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateRestApiAction */ readonly createRestApiActionRequestNERM: CreateRestApiActionRequestNERM } /** * Request parameters for createReviewAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateReviewActionRequest */ export interface WorkflowActionsNERMApiCreateReviewActionRequest { /** * * @type {CreateReviewActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateReviewAction */ readonly createReviewActionRequestNERM: CreateReviewActionRequestNERM } /** * Request parameters for createRunWorkflowAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateRunWorkflowActionRequest */ export interface WorkflowActionsNERMApiCreateRunWorkflowActionRequest { /** * * @type {CreateRunWorkflowActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateRunWorkflowAction */ readonly createRunWorkflowActionRequestNERM: CreateRunWorkflowActionRequestNERM } /** * Request parameters for createSetAttributesAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateSetAttributesActionRequest */ export interface WorkflowActionsNERMApiCreateSetAttributesActionRequest { /** * * @type {CreateSetAttributesActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateSetAttributesAction */ readonly createSetAttributesActionRequestNERM: CreateSetAttributesActionRequestNERM } /** * Request parameters for createSetSecurityQuestionAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateSetSecurityQuestionActionRequest */ export interface WorkflowActionsNERMApiCreateSetSecurityQuestionActionRequest { /** * * @type {CreateSetSecurityQuestionActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateSetSecurityQuestionAction */ readonly createSetSecurityQuestionActionRequestNERM: CreateSetSecurityQuestionActionRequestNERM } /** * Request parameters for createSoapApiAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateSoapApiActionRequest */ export interface WorkflowActionsNERMApiCreateSoapApiActionRequest { /** * * @type {CreateSoapApiActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateSoapApiAction */ readonly createSoapApiActionRequestNERM: CreateSoapApiActionRequestNERM } /** * Request parameters for createStatusChangeAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateStatusChangeActionRequest */ export interface WorkflowActionsNERMApiCreateStatusChangeActionRequest { /** * * @type {CreateStatusChangeActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateStatusChangeAction */ readonly createStatusChangeActionRequestNERM: CreateStatusChangeActionRequestNERM } /** * Request parameters for createUnassignAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateUnassignActionRequest */ export interface WorkflowActionsNERMApiCreateUnassignActionRequest { /** * * @type {CreateUnassignActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateUnassignAction */ readonly createUnassignActionRequestNERM: CreateUnassignActionRequestNERM } /** * Request parameters for createUpdateProfileAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateUpdateProfileActionRequest */ export interface WorkflowActionsNERMApiCreateUpdateProfileActionRequest { /** * * @type {CreateUpdateProfileActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateUpdateProfileAction */ readonly createUpdateProfileActionRequestNERM: CreateUpdateProfileActionRequestNERM } /** * Request parameters for createUsernamePasswordAction operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiCreateUsernamePasswordActionRequest */ export interface WorkflowActionsNERMApiCreateUsernamePasswordActionRequest { /** * * @type {CreateUsernamePasswordActionRequestNERM} * @memberof WorkflowActionsNERMApiCreateUsernamePasswordAction */ readonly createUsernamePasswordActionRequestNERM: CreateUsernamePasswordActionRequestNERM } /** * Request parameters for getWorkflowActions operation in WorkflowActionsNERMApi. * @export * @interface WorkflowActionsNERMApiGetWorkflowActionsRequest */ export interface WorkflowActionsNERMApiGetWorkflowActionsRequest { /** * Workflow ID for filtering * @type {string} * @memberof WorkflowActionsNERMApiGetWorkflowActions */ readonly workflowId?: string } /** * WorkflowActionsNERMApi - object-oriented interface * @export * @class WorkflowActionsNERMApi * @extends {BaseAPI} */ export class WorkflowActionsNERMApi extends BaseAPI { /** * Create an approval action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email, workflow_action_approval_email, workflow_action_rejection_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an approval action * @param {WorkflowActionsNERMApiCreateApprovalActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createApprovalAction(requestParameters: WorkflowActionsNERMApiCreateApprovalActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createApprovalAction(requestParameters.createApprovalActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create an ask security question action * @summary Create ask security question action * @param {WorkflowActionsNERMApiCreateAskSecurityQuestionActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createAskSecurityQuestionAction(requestParameters: WorkflowActionsNERMApiCreateAskSecurityQuestionActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createAskSecurityQuestionAction(requestParameters.createAskSecurityQuestionActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create an auto assign action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an auto assign action * @param {WorkflowActionsNERMApiCreateAutoAssignActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createAutoAssignAction(requestParameters: WorkflowActionsNERMApiCreateAutoAssignActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createAutoAssignAction(requestParameters.createAutoAssignActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a batch update action * @summary Create a batch update action * @param {WorkflowActionsNERMApiCreateBatchUpdateActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createBatchUpdateAction(requestParameters: WorkflowActionsNERMApiCreateBatchUpdateActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createBatchUpdateAction(requestParameters.createBatchUpdateActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a close session action * @summary Create a close session action * @param {WorkflowActionsNERMApiCreateCloseSessionActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createCloseSessionAction(requestParameters: WorkflowActionsNERMApiCreateCloseSessionActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createCloseSessionAction(requestParameters.createCloseSessionActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a contributors action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a contributors action * @param {WorkflowActionsNERMApiCreateContributorsActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createContributorsAction(requestParameters: WorkflowActionsNERMApiCreateContributorsActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createContributorsAction(requestParameters.createContributorsActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a create profile action * @summary Create a create profile action * @param {WorkflowActionsNERMApiCreateCreateProfileActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createCreateProfileAction(requestParameters: WorkflowActionsNERMApiCreateCreateProfileActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createCreateProfileAction(requestParameters.createCreateProfileActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a duplicate prevention action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - duplicatation_prevention_attributes, workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a duplicate prevention action * @param {WorkflowActionsNERMApiCreateDuplicatePreventionActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createDuplicatePreventionAction(requestParameters: WorkflowActionsNERMApiCreateDuplicatePreventionActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createDuplicatePreventionAction(requestParameters.createDuplicatePreventionActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create an email verification action * @summary Create an email verification action * @param {WorkflowActionsNERMApiCreateEmailVerificationActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createEmailVerificationAction(requestParameters: WorkflowActionsNERMApiCreateEmailVerificationActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createEmailVerificationAction(requestParameters.createEmailVerificationActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a fulfillment action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles, workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a fulfillment action * @param {WorkflowActionsNERMApiCreateFulfillmentActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createFulfillmentAction(requestParameters: WorkflowActionsNERMApiCreateFulfillmentActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createFulfillmentAction(requestParameters.createFulfillmentActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create an identity proofing action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - identity_proofing_action_configuration, identity_proofing_action_mappings. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an identity proofing action * @param {WorkflowActionsNERMApiCreateIdentityProofingActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createIdentityProofingAction(requestParameters: WorkflowActionsNERMApiCreateIdentityProofingActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createIdentityProofingAction(requestParameters.createIdentityProofingActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create an invitation action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_pause_action. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an invitation action * @param {WorkflowActionsNERMApiCreateInvitationActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createInvitationAction(requestParameters: WorkflowActionsNERMApiCreateInvitationActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createInvitationAction(requestParameters.createInvitationActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a ldap action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performers, workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a ldap action * @param {WorkflowActionsNERMApiCreateLdapActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createLdapAction(requestParameters: WorkflowActionsNERMApiCreateLdapActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createLdapAction(requestParameters.createLdapActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a notification action * @summary Create a notification action * @param {WorkflowActionsNERMApiCreateNotificationActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createNotificationAction(requestParameters: WorkflowActionsNERMApiCreateNotificationActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createNotificationAction(requestParameters.createNotificationActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a password reset action * @summary Create a password reset action * @param {WorkflowActionsNERMApiCreatePasswordResetActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createPasswordResetAction(requestParameters: WorkflowActionsNERMApiCreatePasswordResetActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createPasswordResetAction(requestParameters.createPasswordResetActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a profile check action * @summary Create a profile check action * @param {WorkflowActionsNERMApiCreateProfileCheckActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createProfileCheckAction(requestParameters: WorkflowActionsNERMApiCreateProfileCheckActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createProfileCheckAction(requestParameters.createProfileCheckActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a profile select action * @summary Create a profile select action * @param {WorkflowActionsNERMApiCreateProfileSelectActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createProfileSelectAction(requestParameters: WorkflowActionsNERMApiCreateProfileSelectActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createProfileSelectAction(requestParameters.createProfileSelectActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a request action * @summary Create a request action * @param {WorkflowActionsNERMApiCreateRequestActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createRequestAction(requestParameters: WorkflowActionsNERMApiCreateRequestActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createRequestAction(requestParameters.createRequestActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a REST API action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - rest_api_action_configuration, api_configuration_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a REST API action * @param {WorkflowActionsNERMApiCreateRestApiActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createRestApiAction(requestParameters: WorkflowActionsNERMApiCreateRestApiActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createRestApiAction(requestParameters.createRestApiActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a review action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_performer_notification_email. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a review action * @param {WorkflowActionsNERMApiCreateReviewActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createReviewAction(requestParameters: WorkflowActionsNERMApiCreateReviewActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createReviewAction(requestParameters.createReviewActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a run workflow action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - configuration_profile_attribute. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a run workflow action * @param {WorkflowActionsNERMApiCreateRunWorkflowActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createRunWorkflowAction(requestParameters: WorkflowActionsNERMApiCreateRunWorkflowActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createRunWorkflowAction(requestParameters.createRunWorkflowActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a set attributes action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_set_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a set attributes action * @param {WorkflowActionsNERMApiCreateSetAttributesActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createSetAttributesAction(requestParameters: WorkflowActionsNERMApiCreateSetAttributesActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createSetAttributesAction(requestParameters.createSetAttributesActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a set security question action * @summary Create set security question action * @param {WorkflowActionsNERMApiCreateSetSecurityQuestionActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createSetSecurityQuestionAction(requestParameters: WorkflowActionsNERMApiCreateSetSecurityQuestionActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createSetSecurityQuestionAction(requestParameters.createSetSecurityQuestionActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a SOAP API action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - soap_api_action_configuration, api_configuration_attributes. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create a SOAP API action * @param {WorkflowActionsNERMApiCreateSoapApiActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createSoapApiAction(requestParameters: WorkflowActionsNERMApiCreateSoapApiActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createSoapApiAction(requestParameters.createSoapApiActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a status change action * @summary Create a status change action * @param {WorkflowActionsNERMApiCreateStatusChangeActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createStatusChangeAction(requestParameters: WorkflowActionsNERMApiCreateStatusChangeActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createStatusChangeAction(requestParameters.createStatusChangeActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create an unassign action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI). * @summary Create an unassign action * @param {WorkflowActionsNERMApiCreateUnassignActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createUnassignAction(requestParameters: WorkflowActionsNERMApiCreateUnassignActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createUnassignAction(requestParameters.createUnassignActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create an update profile action * @summary Create an update profile action * @param {WorkflowActionsNERMApiCreateUpdateProfileActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createUpdateProfileAction(requestParameters: WorkflowActionsNERMApiCreateUpdateProfileActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createUpdateProfileAction(requestParameters.createUpdateProfileActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a username password action * @summary Create a username password action * @param {WorkflowActionsNERMApiCreateUsernamePasswordActionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public createUsernamePasswordAction(requestParameters: WorkflowActionsNERMApiCreateUsernamePasswordActionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).createUsernamePasswordAction(requestParameters.createUsernamePasswordActionRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * This endpoint can retrieve workflow actions * @summary Get Workflow Actions * @param {WorkflowActionsNERMApiGetWorkflowActionsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowActionsNERMApi */ public getWorkflowActions(requestParameters: WorkflowActionsNERMApiGetWorkflowActionsRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return WorkflowActionsNERMApiFp(this.configuration).getWorkflowActions(requestParameters.workflowId, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * WorkflowSessionsNERMApi - axios parameter creator * @export */ export const WorkflowSessionsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Find workflow session by id * @summary Find workflow session * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getWorkflowSession: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getWorkflowSession', 'id', id) const localVarPath = `/workflow_sessions/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Retrieves the URL of an attachment attribute value from a workflow session * @summary Retrieves workflow session attachment URL * @param {string} id ID of the object to retrieve, update, or delete * @param {string} attributeId The id of the attachment attribute * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getWorkflowSessionUpload: async (id: string, attributeId: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getWorkflowSessionUpload', 'id', id) // verify required parameter 'attributeId' is not null or undefined assertParamExists('getWorkflowSessionUpload', 'attributeId', attributeId) const localVarPath = `/workflow_sessions/{id}/upload/{attribute_id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"attribute_id"}}`, encodeURIComponent(String(attributeId))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get workflow sessions * @summary Get workflow sessions * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [profileId] Profile ID to filter by * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {string} [workflowId] Workflow ID for filtering * @param {string} [requesterId] Requester ID for filtering * @param {GetWorkflowSessionsStatusNerm} [status] filter by workflow session status * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getWorkflowSessions: async (limit?: number, offset?: number, order?: string, profileId?: string, uid?: string, workflowId?: string, requesterId?: string, status?: GetWorkflowSessionsStatusNerm, metadata?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/workflow_sessions` .replace(`{${"uid"}}`, encodeURIComponent(String(uid))); // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (profileId !== undefined) { localVarQueryParameter['profile_id'] = profileId; } if (workflowId !== undefined) { localVarQueryParameter['workflow_id'] = workflowId; } if (requesterId !== undefined) { localVarQueryParameter['requester_id'] = requesterId; } if (status !== undefined) { localVarQueryParameter['status'] = status; } if (metadata !== undefined) { localVarQueryParameter['metadata'] = metadata; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a workflow session by id * @summary Update a workflow session * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitWorkflowSessionRequestNERM} submitWorkflowSessionRequestNERM * @param {boolean} [run] Will run the created/updated workflow session if successful * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchWorkflowSession: async (id: string, submitWorkflowSessionRequestNERM: SubmitWorkflowSessionRequestNERM, run?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchWorkflowSession', 'id', id) // verify required parameter 'submitWorkflowSessionRequestNERM' is not null or undefined assertParamExists('patchWorkflowSession', 'submitWorkflowSessionRequestNERM', submitWorkflowSessionRequestNERM) const localVarPath = `/workflow_sessions/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (run !== undefined) { localVarQueryParameter['run'] = run; } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitWorkflowSessionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a workflow session * @summary Create a workflow session * @param {SubmitWorkflowSessionRequestNERM} submitWorkflowSessionRequestNERM * @param {boolean} [run] Will run the created/updated workflow session if successful * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitWorkflowSession: async (submitWorkflowSessionRequestNERM: SubmitWorkflowSessionRequestNERM, run?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'submitWorkflowSessionRequestNERM' is not null or undefined assertParamExists('submitWorkflowSession', 'submitWorkflowSessionRequestNERM', submitWorkflowSessionRequestNERM) const localVarPath = `/workflow_sessions`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (run !== undefined) { localVarQueryParameter['run'] = run; } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(submitWorkflowSessionRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Uploads a new attachment attribute value to a workflow session. The upload must be a FORM data type; this is not a JSON API. The upload must include the binary content of the payload under the \'file\' named form element. The upload must not attempt to include the file name or its content type as a other form or JSON as parameters. The upload must not attempt to upload the file body as the POST body payload; it has to arrive as a FORM parameter. Do not use a `File/Binary` payload type for the POST operation in your API client. * @summary Uploads workflow session attachment * @param {string} id ID of the object to retrieve, update, or delete * @param {string} attributeId The id of the attachment attribute * @param {File} [file] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitWorkflowSessionUpload: async (id: string, attributeId: string, file?: File, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('submitWorkflowSessionUpload', 'id', id) // verify required parameter 'attributeId' is not null or undefined assertParamExists('submitWorkflowSessionUpload', 'attributeId', attributeId) const localVarPath = `/workflow_sessions/{id}/upload/{attribute_id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"attribute_id"}}`, encodeURIComponent(String(attributeId))); // 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; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (file !== undefined) { localVarFormParams.append('file', file as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * WorkflowSessionsNERMApi - functional programming interface * @export */ export const WorkflowSessionsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = WorkflowSessionsNERMApiAxiosParamCreator(configuration) return { /** * Find workflow session by id * @summary Find workflow session * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getWorkflowSession(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkflowSession(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowSessionsNERMApi.getWorkflowSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves the URL of an attachment attribute value from a workflow session * @summary Retrieves workflow session attachment URL * @param {string} id ID of the object to retrieve, update, or delete * @param {string} attributeId The id of the attachment attribute * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getWorkflowSessionUpload(id: string, attributeId: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkflowSessionUpload(id, attributeId, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowSessionsNERMApi.getWorkflowSessionUpload']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get workflow sessions * @summary Get workflow sessions * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [order] The field to order results by. * @param {string} [profileId] Profile ID to filter by * @param {string} [uid] UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @param {string} [workflowId] Workflow ID for filtering * @param {string} [requesterId] Requester ID for filtering * @param {GetWorkflowSessionsStatusNerm} [status] filter by workflow session status * @param {boolean} [metadata] Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getWorkflowSessions(limit?: number, offset?: number, order?: string, profileId?: string, uid?: string, workflowId?: string, requesterId?: string, status?: GetWorkflowSessionsStatusNerm, metadata?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkflowSessions(limit, offset, order, profileId, uid, workflowId, requesterId, status, metadata, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowSessionsNERMApi.getWorkflowSessions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a workflow session by id * @summary Update a workflow session * @param {string} id ID of the object to retrieve, update, or delete * @param {SubmitWorkflowSessionRequestNERM} submitWorkflowSessionRequestNERM * @param {boolean} [run] Will run the created/updated workflow session if successful * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async patchWorkflowSession(id: string, submitWorkflowSessionRequestNERM: SubmitWorkflowSessionRequestNERM, run?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchWorkflowSession(id, submitWorkflowSessionRequestNERM, run, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowSessionsNERMApi.patchWorkflowSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a workflow session * @summary Create a workflow session * @param {SubmitWorkflowSessionRequestNERM} submitWorkflowSessionRequestNERM * @param {boolean} [run] Will run the created/updated workflow session if successful * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitWorkflowSession(submitWorkflowSessionRequestNERM: SubmitWorkflowSessionRequestNERM, run?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitWorkflowSession(submitWorkflowSessionRequestNERM, run, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowSessionsNERMApi.submitWorkflowSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Uploads a new attachment attribute value to a workflow session. The upload must be a FORM data type; this is not a JSON API. The upload must include the binary content of the payload under the \'file\' named form element. The upload must not attempt to include the file name or its content type as a other form or JSON as parameters. The upload must not attempt to upload the file body as the POST body payload; it has to arrive as a FORM parameter. Do not use a `File/Binary` payload type for the POST operation in your API client. * @summary Uploads workflow session attachment * @param {string} id ID of the object to retrieve, update, or delete * @param {string} attributeId The id of the attachment attribute * @param {File} [file] * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async submitWorkflowSessionUpload(id: string, attributeId: string, file?: File, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitWorkflowSessionUpload(id, attributeId, file, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowSessionsNERMApi.submitWorkflowSessionUpload']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * WorkflowSessionsNERMApi - factory interface * @export */ export const WorkflowSessionsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = WorkflowSessionsNERMApiFp(configuration) return { /** * Find workflow session by id * @summary Find workflow session * @param {WorkflowSessionsNERMApiGetWorkflowSessionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getWorkflowSession(requestParameters: WorkflowSessionsNERMApiGetWorkflowSessionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWorkflowSession(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Retrieves the URL of an attachment attribute value from a workflow session * @summary Retrieves workflow session attachment URL * @param {WorkflowSessionsNERMApiGetWorkflowSessionUploadRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getWorkflowSessionUpload(requestParameters: WorkflowSessionsNERMApiGetWorkflowSessionUploadRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWorkflowSessionUpload(requestParameters.id, requestParameters.attributeId, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get workflow sessions * @summary Get workflow sessions * @param {WorkflowSessionsNERMApiGetWorkflowSessionsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getWorkflowSessions(requestParameters: WorkflowSessionsNERMApiGetWorkflowSessionsRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWorkflowSessions(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.profileId, requestParameters.uid, requestParameters.workflowId, requestParameters.requesterId, requestParameters.status, requestParameters.metadata, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a workflow session by id * @summary Update a workflow session * @param {WorkflowSessionsNERMApiPatchWorkflowSessionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ patchWorkflowSession(requestParameters: WorkflowSessionsNERMApiPatchWorkflowSessionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchWorkflowSession(requestParameters.id, requestParameters.submitWorkflowSessionRequestNERM, requestParameters.run, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a workflow session * @summary Create a workflow session * @param {WorkflowSessionsNERMApiSubmitWorkflowSessionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitWorkflowSession(requestParameters: WorkflowSessionsNERMApiSubmitWorkflowSessionRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitWorkflowSession(requestParameters.submitWorkflowSessionRequestNERM, requestParameters.run, axiosOptions).then((request) => request(axios, basePath)); }, /** * Uploads a new attachment attribute value to a workflow session. The upload must be a FORM data type; this is not a JSON API. The upload must include the binary content of the payload under the \'file\' named form element. The upload must not attempt to include the file name or its content type as a other form or JSON as parameters. The upload must not attempt to upload the file body as the POST body payload; it has to arrive as a FORM parameter. Do not use a `File/Binary` payload type for the POST operation in your API client. * @summary Uploads workflow session attachment * @param {WorkflowSessionsNERMApiSubmitWorkflowSessionUploadRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ submitWorkflowSessionUpload(requestParameters: WorkflowSessionsNERMApiSubmitWorkflowSessionUploadRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitWorkflowSessionUpload(requestParameters.id, requestParameters.attributeId, requestParameters.file, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for getWorkflowSession operation in WorkflowSessionsNERMApi. * @export * @interface WorkflowSessionsNERMApiGetWorkflowSessionRequest */ export interface WorkflowSessionsNERMApiGetWorkflowSessionRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof WorkflowSessionsNERMApiGetWorkflowSession */ readonly id: string } /** * Request parameters for getWorkflowSessionUpload operation in WorkflowSessionsNERMApi. * @export * @interface WorkflowSessionsNERMApiGetWorkflowSessionUploadRequest */ export interface WorkflowSessionsNERMApiGetWorkflowSessionUploadRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof WorkflowSessionsNERMApiGetWorkflowSessionUpload */ readonly id: string /** * The id of the attachment attribute * @type {string} * @memberof WorkflowSessionsNERMApiGetWorkflowSessionUpload */ readonly attributeId: string } /** * Request parameters for getWorkflowSessions operation in WorkflowSessionsNERMApi. * @export * @interface WorkflowSessionsNERMApiGetWorkflowSessionsRequest */ export interface WorkflowSessionsNERMApiGetWorkflowSessionsRequest { /** * The maximum number of items to return. * @type {number} * @memberof WorkflowSessionsNERMApiGetWorkflowSessions */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof WorkflowSessionsNERMApiGetWorkflowSessions */ readonly offset?: number /** * The field to order results by. * @type {string} * @memberof WorkflowSessionsNERMApiGetWorkflowSessions */ readonly order?: string /** * Profile ID to filter by * @type {string} * @memberof WorkflowSessionsNERMApiGetWorkflowSessions */ readonly profileId?: string /** * UID of the object to retrieve, update, or delete. A UID or \"specified identifier\" is a string typically in \"snake_case\" format that provides a human-readable description of the record. They are commonly used to ensure sandbox, qa, staging and production tenants have the identical configuration items loaded. Every record has a UID assigned when persisted. When not specified the system assigns one by default. A default value looks like a 32 character string of random hexadecimal characters. * @type {string} * @memberof WorkflowSessionsNERMApiGetWorkflowSessions */ readonly uid?: string /** * Workflow ID for filtering * @type {string} * @memberof WorkflowSessionsNERMApiGetWorkflowSessions */ readonly workflowId?: string /** * Requester ID for filtering * @type {string} * @memberof WorkflowSessionsNERMApiGetWorkflowSessions */ readonly requesterId?: string /** * filter by workflow session status * @type {'waiting on workflow' | 'identity proofing completed' | 'new' | 'closing' | 'pending request' | 'requested' | 'pending approval' | 'approved' | 'pending notification' | 'notified' | 'pending review' | 'reviewed' | 'pending trigger' | 'stored procedure' | 'pending status change' | 'status changed' | 'pending update' | 'non employee updated' | 'non employee created' | 'pending creation' | 'rejected' | 'pending assignment' | 'assigned' | 'default' | 'failed' | 'un assigned' | 'auto assigned' | 'ldap provided' | 'pending ldap' | 'pending fulfillment' | 'pending stored procedure' | 'pending courion add' | 'fulfilled' | 'pending courion update' | 'courion add' | 'pending courion_extend' | 'courion update' | 'pending courion terminate' | 'courion extend' | 'pending profile select' | 'courion terminate' | 'batch completed' | 'profiles selected' | 'answered questions' | 'pending questions' | 'attempting to start workflow' | 'started workflow' | 'profile check complete' | 'completed' | 'processing' | 'pending set attribute' | 'invitation sent' | 'action skipped' | 'api request sent' | 'attribute set' | 'disabled' | 'duplicates resolved' | 'soap request sent' | 'checking for duplicates' | 'pending identity proofing' | 'closed' | 'workflow changed'} * @memberof WorkflowSessionsNERMApiGetWorkflowSessions */ readonly status?: GetWorkflowSessionsStatusNerm /** * Returns batching metadata in the response. This includes `total` as the total quantity, `next` as the path of the following query url, `limit` and `after_id` (if requested) with the next following id (null if it is the last \"page\"). * @type {boolean} * @memberof WorkflowSessionsNERMApiGetWorkflowSessions */ readonly metadata?: boolean } /** * Request parameters for patchWorkflowSession operation in WorkflowSessionsNERMApi. * @export * @interface WorkflowSessionsNERMApiPatchWorkflowSessionRequest */ export interface WorkflowSessionsNERMApiPatchWorkflowSessionRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof WorkflowSessionsNERMApiPatchWorkflowSession */ readonly id: string /** * * @type {SubmitWorkflowSessionRequestNERM} * @memberof WorkflowSessionsNERMApiPatchWorkflowSession */ readonly submitWorkflowSessionRequestNERM: SubmitWorkflowSessionRequestNERM /** * Will run the created/updated workflow session if successful * @type {boolean} * @memberof WorkflowSessionsNERMApiPatchWorkflowSession */ readonly run?: boolean } /** * Request parameters for submitWorkflowSession operation in WorkflowSessionsNERMApi. * @export * @interface WorkflowSessionsNERMApiSubmitWorkflowSessionRequest */ export interface WorkflowSessionsNERMApiSubmitWorkflowSessionRequest { /** * * @type {SubmitWorkflowSessionRequestNERM} * @memberof WorkflowSessionsNERMApiSubmitWorkflowSession */ readonly submitWorkflowSessionRequestNERM: SubmitWorkflowSessionRequestNERM /** * Will run the created/updated workflow session if successful * @type {boolean} * @memberof WorkflowSessionsNERMApiSubmitWorkflowSession */ readonly run?: boolean } /** * Request parameters for submitWorkflowSessionUpload operation in WorkflowSessionsNERMApi. * @export * @interface WorkflowSessionsNERMApiSubmitWorkflowSessionUploadRequest */ export interface WorkflowSessionsNERMApiSubmitWorkflowSessionUploadRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof WorkflowSessionsNERMApiSubmitWorkflowSessionUpload */ readonly id: string /** * The id of the attachment attribute * @type {string} * @memberof WorkflowSessionsNERMApiSubmitWorkflowSessionUpload */ readonly attributeId: string /** * * @type {File} * @memberof WorkflowSessionsNERMApiSubmitWorkflowSessionUpload */ readonly file?: File } /** * WorkflowSessionsNERMApi - object-oriented interface * @export * @class WorkflowSessionsNERMApi * @extends {BaseAPI} */ export class WorkflowSessionsNERMApi extends BaseAPI { /** * Find workflow session by id * @summary Find workflow session * @param {WorkflowSessionsNERMApiGetWorkflowSessionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowSessionsNERMApi */ public getWorkflowSession(requestParameters: WorkflowSessionsNERMApiGetWorkflowSessionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowSessionsNERMApiFp(this.configuration).getWorkflowSession(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Retrieves the URL of an attachment attribute value from a workflow session * @summary Retrieves workflow session attachment URL * @param {WorkflowSessionsNERMApiGetWorkflowSessionUploadRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowSessionsNERMApi */ public getWorkflowSessionUpload(requestParameters: WorkflowSessionsNERMApiGetWorkflowSessionUploadRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowSessionsNERMApiFp(this.configuration).getWorkflowSessionUpload(requestParameters.id, requestParameters.attributeId, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get workflow sessions * @summary Get workflow sessions * @param {WorkflowSessionsNERMApiGetWorkflowSessionsRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowSessionsNERMApi */ public getWorkflowSessions(requestParameters: WorkflowSessionsNERMApiGetWorkflowSessionsRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return WorkflowSessionsNERMApiFp(this.configuration).getWorkflowSessions(requestParameters.limit, requestParameters.offset, requestParameters.order, requestParameters.profileId, requestParameters.uid, requestParameters.workflowId, requestParameters.requesterId, requestParameters.status, requestParameters.metadata, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a workflow session by id * @summary Update a workflow session * @param {WorkflowSessionsNERMApiPatchWorkflowSessionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowSessionsNERMApi */ public patchWorkflowSession(requestParameters: WorkflowSessionsNERMApiPatchWorkflowSessionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowSessionsNERMApiFp(this.configuration).patchWorkflowSession(requestParameters.id, requestParameters.submitWorkflowSessionRequestNERM, requestParameters.run, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a workflow session * @summary Create a workflow session * @param {WorkflowSessionsNERMApiSubmitWorkflowSessionRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowSessionsNERMApi */ public submitWorkflowSession(requestParameters: WorkflowSessionsNERMApiSubmitWorkflowSessionRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowSessionsNERMApiFp(this.configuration).submitWorkflowSession(requestParameters.submitWorkflowSessionRequestNERM, requestParameters.run, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Uploads a new attachment attribute value to a workflow session. The upload must be a FORM data type; this is not a JSON API. The upload must include the binary content of the payload under the \'file\' named form element. The upload must not attempt to include the file name or its content type as a other form or JSON as parameters. The upload must not attempt to upload the file body as the POST body payload; it has to arrive as a FORM parameter. Do not use a `File/Binary` payload type for the POST operation in your API client. * @summary Uploads workflow session attachment * @param {WorkflowSessionsNERMApiSubmitWorkflowSessionUploadRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowSessionsNERMApi */ public submitWorkflowSessionUpload(requestParameters: WorkflowSessionsNERMApiSubmitWorkflowSessionUploadRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowSessionsNERMApiFp(this.configuration).submitWorkflowSessionUpload(requestParameters.id, requestParameters.attributeId, requestParameters.file, axiosOptions).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetWorkflowSessionsStatusNerm = { WaitingOnWorkflow: 'waiting on workflow', IdentityProofingCompleted: 'identity proofing completed', New: 'new', Closing: 'closing', PendingRequest: 'pending request', Requested: 'requested', PendingApproval: 'pending approval', Approved: 'approved', PendingNotification: 'pending notification', Notified: 'notified', PendingReview: 'pending review', Reviewed: 'reviewed', PendingTrigger: 'pending trigger', StoredProcedure: 'stored procedure', PendingStatusChange: 'pending status change', StatusChanged: 'status changed', PendingUpdate: 'pending update', NonEmployeeUpdated: 'non employee updated', NonEmployeeCreated: 'non employee created', PendingCreation: 'pending creation', Rejected: 'rejected', PendingAssignment: 'pending assignment', Assigned: 'assigned', Default: 'default', Failed: 'failed', UnAssigned: 'un assigned', AutoAssigned: 'auto assigned', LdapProvided: 'ldap provided', PendingLdap: 'pending ldap', PendingFulfillment: 'pending fulfillment', PendingStoredProcedure: 'pending stored procedure', PendingCourionAdd: 'pending courion add', Fulfilled: 'fulfilled', PendingCourionUpdate: 'pending courion update', CourionAdd: 'courion add', PendingCourionExtend: 'pending courion_extend', CourionUpdate: 'courion update', PendingCourionTerminate: 'pending courion terminate', CourionExtend: 'courion extend', PendingProfileSelect: 'pending profile select', CourionTerminate: 'courion terminate', BatchCompleted: 'batch completed', ProfilesSelected: 'profiles selected', AnsweredQuestions: 'answered questions', PendingQuestions: 'pending questions', AttemptingToStartWorkflow: 'attempting to start workflow', StartedWorkflow: 'started workflow', ProfileCheckComplete: 'profile check complete', Completed: 'completed', Processing: 'processing', PendingSetAttribute: 'pending set attribute', InvitationSent: 'invitation sent', ActionSkipped: 'action skipped', ApiRequestSent: 'api request sent', AttributeSet: 'attribute set', Disabled: 'disabled', DuplicatesResolved: 'duplicates resolved', SoapRequestSent: 'soap request sent', CheckingForDuplicates: 'checking for duplicates', PendingIdentityProofing: 'pending identity proofing', Closed: 'closed', WorkflowChanged: 'workflow changed' } as const; export type GetWorkflowSessionsStatusNerm = typeof GetWorkflowSessionsStatusNerm[keyof typeof GetWorkflowSessionsStatusNerm]; /** * WorkflowsNERMApi - axios parameter creator * @export */ export const WorkflowsNERMApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create an automated workflow * @summary Create an automated workflow * @param {CreateAutomatedWorkflowRequestNERM} createAutomatedWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createAutomatedWorkflow: async (createAutomatedWorkflowRequestNERM: CreateAutomatedWorkflowRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createAutomatedWorkflowRequestNERM' is not null or undefined assertParamExists('createAutomatedWorkflow', 'createAutomatedWorkflowRequestNERM', createAutomatedWorkflowRequestNERM) const localVarPath = `/workflows/automated_workflows`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createAutomatedWorkflowRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a batch workflow * @summary Create a batch workflow * @param {CreateBatchWorkflowRequestNERM} createBatchWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createBatchWorkflow: async (createBatchWorkflowRequestNERM: CreateBatchWorkflowRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createBatchWorkflowRequestNERM' is not null or undefined assertParamExists('createBatchWorkflow', 'createBatchWorkflowRequestNERM', createBatchWorkflowRequestNERM) const localVarPath = `/workflows/batch_workflows`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createBatchWorkflowRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a create workflow * @summary Create a create workflow * @param {CreateCreateWorkflowRequestNERM} createCreateWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createCreateWorkflow: async (createCreateWorkflowRequestNERM: CreateCreateWorkflowRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createCreateWorkflowRequestNERM' is not null or undefined assertParamExists('createCreateWorkflow', 'createCreateWorkflowRequestNERM', createCreateWorkflowRequestNERM) const localVarPath = `/workflows/create_workflows`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createCreateWorkflowRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a login workflow * @summary Create a login workflow * @param {CreateLoginWorkflowRequestNERM} createLoginWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createLoginWorkflow: async (createLoginWorkflowRequestNERM: CreateLoginWorkflowRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createLoginWorkflowRequestNERM' is not null or undefined assertParamExists('createLoginWorkflow', 'createLoginWorkflowRequestNERM', createLoginWorkflowRequestNERM) const localVarPath = `/workflows/login_workflows`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createLoginWorkflowRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a password reset workflow * @summary Create a password reset workflow * @param {CreateLoginWorkflowRequestNERM} createLoginWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPasswordUpdateWorkflow: async (createLoginWorkflowRequestNERM: CreateLoginWorkflowRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createLoginWorkflowRequestNERM' is not null or undefined assertParamExists('createPasswordUpdateWorkflow', 'createLoginWorkflowRequestNERM', createLoginWorkflowRequestNERM) const localVarPath = `/workflows/password_reset_workflows`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createLoginWorkflowRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a registration workflow * @summary Create a registration workflow * @param {CreateCreateWorkflowRequestNERM} createCreateWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createRegistrationWorkflow: async (createCreateWorkflowRequestNERM: CreateCreateWorkflowRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createCreateWorkflowRequestNERM' is not null or undefined assertParamExists('createRegistrationWorkflow', 'createCreateWorkflowRequestNERM', createCreateWorkflowRequestNERM) const localVarPath = `/workflows/registration_workflows`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createCreateWorkflowRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create an update workflow * @summary Create an update workflow * @param {CreateUpdateWorkflowRequestNERM} createUpdateWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createUpdateWorkflow: async (createUpdateWorkflowRequestNERM: CreateUpdateWorkflowRequestNERM, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createUpdateWorkflowRequestNERM' is not null or undefined assertParamExists('createUpdateWorkflow', 'createUpdateWorkflowRequestNERM', createUpdateWorkflowRequestNERM) const localVarPath = `/workflows/update_workflows`; // 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; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createUpdateWorkflowRequestNERM, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * WorkflowsNERMApi - functional programming interface * @export */ export const WorkflowsNERMApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = WorkflowsNERMApiAxiosParamCreator(configuration) return { /** * Create an automated workflow * @summary Create an automated workflow * @param {CreateAutomatedWorkflowRequestNERM} createAutomatedWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createAutomatedWorkflow(createAutomatedWorkflowRequestNERM: CreateAutomatedWorkflowRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAutomatedWorkflow(createAutomatedWorkflowRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowsNERMApi.createAutomatedWorkflow']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a batch workflow * @summary Create a batch workflow * @param {CreateBatchWorkflowRequestNERM} createBatchWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createBatchWorkflow(createBatchWorkflowRequestNERM: CreateBatchWorkflowRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createBatchWorkflow(createBatchWorkflowRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowsNERMApi.createBatchWorkflow']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a create workflow * @summary Create a create workflow * @param {CreateCreateWorkflowRequestNERM} createCreateWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createCreateWorkflow(createCreateWorkflowRequestNERM: CreateCreateWorkflowRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCreateWorkflow(createCreateWorkflowRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowsNERMApi.createCreateWorkflow']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a login workflow * @summary Create a login workflow * @param {CreateLoginWorkflowRequestNERM} createLoginWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createLoginWorkflow(createLoginWorkflowRequestNERM: CreateLoginWorkflowRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createLoginWorkflow(createLoginWorkflowRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowsNERMApi.createLoginWorkflow']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a password reset workflow * @summary Create a password reset workflow * @param {CreateLoginWorkflowRequestNERM} createLoginWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createPasswordUpdateWorkflow(createLoginWorkflowRequestNERM: CreateLoginWorkflowRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPasswordUpdateWorkflow(createLoginWorkflowRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowsNERMApi.createPasswordUpdateWorkflow']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a registration workflow * @summary Create a registration workflow * @param {CreateCreateWorkflowRequestNERM} createCreateWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createRegistrationWorkflow(createCreateWorkflowRequestNERM: CreateCreateWorkflowRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRegistrationWorkflow(createCreateWorkflowRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowsNERMApi.createRegistrationWorkflow']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create an update workflow * @summary Create an update workflow * @param {CreateUpdateWorkflowRequestNERM} createUpdateWorkflowRequestNERM * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createUpdateWorkflow(createUpdateWorkflowRequestNERM: CreateUpdateWorkflowRequestNERM, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createUpdateWorkflow(createUpdateWorkflowRequestNERM, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WorkflowsNERMApi.createUpdateWorkflow']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * WorkflowsNERMApi - factory interface * @export */ export const WorkflowsNERMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = WorkflowsNERMApiFp(configuration) return { /** * Create an automated workflow * @summary Create an automated workflow * @param {WorkflowsNERMApiCreateAutomatedWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createAutomatedWorkflow(requestParameters: WorkflowsNERMApiCreateAutomatedWorkflowRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createAutomatedWorkflow(requestParameters.createAutomatedWorkflowRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a batch workflow * @summary Create a batch workflow * @param {WorkflowsNERMApiCreateBatchWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createBatchWorkflow(requestParameters: WorkflowsNERMApiCreateBatchWorkflowRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createBatchWorkflow(requestParameters.createBatchWorkflowRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a create workflow * @summary Create a create workflow * @param {WorkflowsNERMApiCreateCreateWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createCreateWorkflow(requestParameters: WorkflowsNERMApiCreateCreateWorkflowRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createCreateWorkflow(requestParameters.createCreateWorkflowRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a login workflow * @summary Create a login workflow * @param {WorkflowsNERMApiCreateLoginWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createLoginWorkflow(requestParameters: WorkflowsNERMApiCreateLoginWorkflowRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createLoginWorkflow(requestParameters.createLoginWorkflowRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a password reset workflow * @summary Create a password reset workflow * @param {WorkflowsNERMApiCreatePasswordUpdateWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createPasswordUpdateWorkflow(requestParameters: WorkflowsNERMApiCreatePasswordUpdateWorkflowRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createPasswordUpdateWorkflow(requestParameters.createLoginWorkflowRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a registration workflow * @summary Create a registration workflow * @param {WorkflowsNERMApiCreateRegistrationWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createRegistrationWorkflow(requestParameters: WorkflowsNERMApiCreateRegistrationWorkflowRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRegistrationWorkflow(requestParameters.createCreateWorkflowRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create an update workflow * @summary Create an update workflow * @param {WorkflowsNERMApiCreateUpdateWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createUpdateWorkflow(requestParameters: WorkflowsNERMApiCreateUpdateWorkflowRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUpdateWorkflow(requestParameters.createUpdateWorkflowRequestNERM, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createAutomatedWorkflow operation in WorkflowsNERMApi. * @export * @interface WorkflowsNERMApiCreateAutomatedWorkflowRequest */ export interface WorkflowsNERMApiCreateAutomatedWorkflowRequest { /** * * @type {CreateAutomatedWorkflowRequestNERM} * @memberof WorkflowsNERMApiCreateAutomatedWorkflow */ readonly createAutomatedWorkflowRequestNERM: CreateAutomatedWorkflowRequestNERM } /** * Request parameters for createBatchWorkflow operation in WorkflowsNERMApi. * @export * @interface WorkflowsNERMApiCreateBatchWorkflowRequest */ export interface WorkflowsNERMApiCreateBatchWorkflowRequest { /** * * @type {CreateBatchWorkflowRequestNERM} * @memberof WorkflowsNERMApiCreateBatchWorkflow */ readonly createBatchWorkflowRequestNERM: CreateBatchWorkflowRequestNERM } /** * Request parameters for createCreateWorkflow operation in WorkflowsNERMApi. * @export * @interface WorkflowsNERMApiCreateCreateWorkflowRequest */ export interface WorkflowsNERMApiCreateCreateWorkflowRequest { /** * * @type {CreateCreateWorkflowRequestNERM} * @memberof WorkflowsNERMApiCreateCreateWorkflow */ readonly createCreateWorkflowRequestNERM: CreateCreateWorkflowRequestNERM } /** * Request parameters for createLoginWorkflow operation in WorkflowsNERMApi. * @export * @interface WorkflowsNERMApiCreateLoginWorkflowRequest */ export interface WorkflowsNERMApiCreateLoginWorkflowRequest { /** * * @type {CreateLoginWorkflowRequestNERM} * @memberof WorkflowsNERMApiCreateLoginWorkflow */ readonly createLoginWorkflowRequestNERM: CreateLoginWorkflowRequestNERM } /** * Request parameters for createPasswordUpdateWorkflow operation in WorkflowsNERMApi. * @export * @interface WorkflowsNERMApiCreatePasswordUpdateWorkflowRequest */ export interface WorkflowsNERMApiCreatePasswordUpdateWorkflowRequest { /** * * @type {CreateLoginWorkflowRequestNERM} * @memberof WorkflowsNERMApiCreatePasswordUpdateWorkflow */ readonly createLoginWorkflowRequestNERM: CreateLoginWorkflowRequestNERM } /** * Request parameters for createRegistrationWorkflow operation in WorkflowsNERMApi. * @export * @interface WorkflowsNERMApiCreateRegistrationWorkflowRequest */ export interface WorkflowsNERMApiCreateRegistrationWorkflowRequest { /** * * @type {CreateCreateWorkflowRequestNERM} * @memberof WorkflowsNERMApiCreateRegistrationWorkflow */ readonly createCreateWorkflowRequestNERM: CreateCreateWorkflowRequestNERM } /** * Request parameters for createUpdateWorkflow operation in WorkflowsNERMApi. * @export * @interface WorkflowsNERMApiCreateUpdateWorkflowRequest */ export interface WorkflowsNERMApiCreateUpdateWorkflowRequest { /** * * @type {CreateUpdateWorkflowRequestNERM} * @memberof WorkflowsNERMApiCreateUpdateWorkflow */ readonly createUpdateWorkflowRequestNERM: CreateUpdateWorkflowRequestNERM } /** * WorkflowsNERMApi - object-oriented interface * @export * @class WorkflowsNERMApi * @extends {BaseAPI} */ export class WorkflowsNERMApi extends BaseAPI { /** * Create an automated workflow * @summary Create an automated workflow * @param {WorkflowsNERMApiCreateAutomatedWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowsNERMApi */ public createAutomatedWorkflow(requestParameters: WorkflowsNERMApiCreateAutomatedWorkflowRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowsNERMApiFp(this.configuration).createAutomatedWorkflow(requestParameters.createAutomatedWorkflowRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a batch workflow * @summary Create a batch workflow * @param {WorkflowsNERMApiCreateBatchWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowsNERMApi */ public createBatchWorkflow(requestParameters: WorkflowsNERMApiCreateBatchWorkflowRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowsNERMApiFp(this.configuration).createBatchWorkflow(requestParameters.createBatchWorkflowRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a create workflow * @summary Create a create workflow * @param {WorkflowsNERMApiCreateCreateWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowsNERMApi */ public createCreateWorkflow(requestParameters: WorkflowsNERMApiCreateCreateWorkflowRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowsNERMApiFp(this.configuration).createCreateWorkflow(requestParameters.createCreateWorkflowRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a login workflow * @summary Create a login workflow * @param {WorkflowsNERMApiCreateLoginWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowsNERMApi */ public createLoginWorkflow(requestParameters: WorkflowsNERMApiCreateLoginWorkflowRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowsNERMApiFp(this.configuration).createLoginWorkflow(requestParameters.createLoginWorkflowRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a password reset workflow * @summary Create a password reset workflow * @param {WorkflowsNERMApiCreatePasswordUpdateWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowsNERMApi */ public createPasswordUpdateWorkflow(requestParameters: WorkflowsNERMApiCreatePasswordUpdateWorkflowRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowsNERMApiFp(this.configuration).createPasswordUpdateWorkflow(requestParameters.createLoginWorkflowRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a registration workflow * @summary Create a registration workflow * @param {WorkflowsNERMApiCreateRegistrationWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowsNERMApi */ public createRegistrationWorkflow(requestParameters: WorkflowsNERMApiCreateRegistrationWorkflowRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowsNERMApiFp(this.configuration).createRegistrationWorkflow(requestParameters.createCreateWorkflowRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create an update workflow * @summary Create an update workflow * @param {WorkflowsNERMApiCreateUpdateWorkflowRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof WorkflowsNERMApi */ public createUpdateWorkflow(requestParameters: WorkflowsNERMApiCreateUpdateWorkflowRequest, axiosOptions?: RawAxiosRequestConfig) { return WorkflowsNERMApiFp(this.configuration).createUpdateWorkflow(requestParameters.createUpdateWorkflowRequestNERM, axiosOptions).then((request) => request(this.axios, this.basePath)); } }