UNPKG

@microsoft/msgraph-beta-sdk

Version:
895 lines 116 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { createApplicationFromDiscriminatorValue, createCustomExtensionCallbackConfigurationFromDiscriminatorValue, createDeletedItemContainerFromDiscriminatorValue, createDirectoryObjectFromDiscriminatorValue, createEmailSettingsFromDiscriminatorValue, createGroupFromDiscriminatorValue, createKeyValuePairFromDiscriminatorValue, createSubjectSetFromDiscriminatorValue, createUserFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoCustomCalloutExtension, deserializeIntoCustomExtensionCallbackConfiguration, deserializeIntoCustomExtensionData, deserializeIntoEntity, deserializeIntoSubjectSet, serializeApplication, serializeBaseCollectionPaginationCountResponse, serializeCustomCalloutExtension, serializeCustomExtensionCallbackConfiguration, serializeCustomExtensionData, serializeDeletedItemContainer, serializeDirectoryObject, serializeEmailSettings, serializeEntity, serializeGroup, serializeKeyValuePair, serializeSubjectSet, serializeUser } from '../index.js'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ActivateGroupScope} */ // @ts-ignore export function createActivateGroupScopeFromDiscriminatorValue(parseNode) { return deserializeIntoActivateGroupScope; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ActivateProcessingResultScope} */ // @ts-ignore export function createActivateProcessingResultScopeFromDiscriminatorValue(parseNode) { return deserializeIntoActivateProcessingResultScope; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ActivateRunScope} */ // @ts-ignore export function createActivateRunScopeFromDiscriminatorValue(parseNode) { return deserializeIntoActivateRunScope; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ActivateUserScope} */ // @ts-ignore export function createActivateUserScopeFromDiscriminatorValue(parseNode) { return deserializeIntoActivateUserScope; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ActivationScope} */ // @ts-ignore export function createActivationScopeFromDiscriminatorValue(parseNode) { if (!parseNode) throw new Error("parseNode cannot be undefined"); const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type"); if (mappingValueNode) { const mappingValue = mappingValueNode.getStringValue(); if (mappingValue) { switch (mappingValue) { case "#microsoft.graph.identityGovernance.activateGroupScope": return deserializeIntoActivateGroupScope; case "#microsoft.graph.identityGovernance.activateProcessingResultScope": return deserializeIntoActivateProcessingResultScope; case "#microsoft.graph.identityGovernance.activateRunScope": return deserializeIntoActivateRunScope; case "#microsoft.graph.identityGovernance.activateUserScope": return deserializeIntoActivateUserScope; } } } return deserializeIntoActivationScope; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {AttributeChangeTrigger} */ // @ts-ignore export function createAttributeChangeTriggerFromDiscriminatorValue(parseNode) { return deserializeIntoAttributeChangeTrigger; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {CustomTaskExtensionCallbackConfiguration} */ // @ts-ignore export function createCustomTaskExtensionCallbackConfigurationFromDiscriminatorValue(parseNode) { return deserializeIntoCustomTaskExtensionCallbackConfiguration; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {CustomTaskExtensionCallbackData} */ // @ts-ignore export function createCustomTaskExtensionCallbackDataFromDiscriminatorValue(parseNode) { return deserializeIntoCustomTaskExtensionCallbackData; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {CustomTaskExtensionCalloutData} */ // @ts-ignore export function createCustomTaskExtensionCalloutDataFromDiscriminatorValue(parseNode) { return deserializeIntoCustomTaskExtensionCalloutData; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {CustomTaskExtensionCollectionResponse} */ // @ts-ignore export function createCustomTaskExtensionCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoCustomTaskExtensionCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {CustomTaskExtension} */ // @ts-ignore export function createCustomTaskExtensionFromDiscriminatorValue(parseNode) { return deserializeIntoCustomTaskExtension; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {GroupBasedSubjectSet} */ // @ts-ignore export function createGroupBasedSubjectSetFromDiscriminatorValue(parseNode) { return deserializeIntoGroupBasedSubjectSet; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {Insights} */ // @ts-ignore export function createInsightsFromDiscriminatorValue(parseNode) { return deserializeIntoInsights; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {LifecycleManagementSettings} */ // @ts-ignore export function createLifecycleManagementSettingsFromDiscriminatorValue(parseNode) { return deserializeIntoLifecycleManagementSettings; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {LifecycleWorkflowsContainer} */ // @ts-ignore export function createLifecycleWorkflowsContainerFromDiscriminatorValue(parseNode) { return deserializeIntoLifecycleWorkflowsContainer; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {MembershipChangeTrigger} */ // @ts-ignore export function createMembershipChangeTriggerFromDiscriminatorValue(parseNode) { return deserializeIntoMembershipChangeTrigger; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {OnDemandExecutionOnly} */ // @ts-ignore export function createOnDemandExecutionOnlyFromDiscriminatorValue(parseNode) { return deserializeIntoOnDemandExecutionOnly; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {Parameter} */ // @ts-ignore export function createParameterFromDiscriminatorValue(parseNode) { return deserializeIntoParameter; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {RuleBasedSubjectSet} */ // @ts-ignore export function createRuleBasedSubjectSetFromDiscriminatorValue(parseNode) { return deserializeIntoRuleBasedSubjectSet; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {RunCollectionResponse} */ // @ts-ignore export function createRunCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoRunCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {Run} */ // @ts-ignore export function createRunFromDiscriminatorValue(parseNode) { return deserializeIntoRun; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {RunSummary} */ // @ts-ignore export function createRunSummaryFromDiscriminatorValue(parseNode) { return deserializeIntoRunSummary; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TaskCollectionResponse} */ // @ts-ignore export function createTaskCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoTaskCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TaskDefinitionCollectionResponse} */ // @ts-ignore export function createTaskDefinitionCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoTaskDefinitionCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TaskDefinition} */ // @ts-ignore export function createTaskDefinitionFromDiscriminatorValue(parseNode) { return deserializeIntoTaskDefinition; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {Task} */ // @ts-ignore export function createTaskFromDiscriminatorValue(parseNode) { return deserializeIntoTask; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TaskProcessingResultCollectionResponse} */ // @ts-ignore export function createTaskProcessingResultCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoTaskProcessingResultCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TaskProcessingResult} */ // @ts-ignore export function createTaskProcessingResultFromDiscriminatorValue(parseNode) { return deserializeIntoTaskProcessingResult; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TaskReportCollectionResponse} */ // @ts-ignore export function createTaskReportCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoTaskReportCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TaskReport} */ // @ts-ignore export function createTaskReportFromDiscriminatorValue(parseNode) { return deserializeIntoTaskReport; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TaskReportSummary} */ // @ts-ignore export function createTaskReportSummaryFromDiscriminatorValue(parseNode) { return deserializeIntoTaskReportSummary; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TimeBasedAttributeTrigger} */ // @ts-ignore export function createTimeBasedAttributeTriggerFromDiscriminatorValue(parseNode) { return deserializeIntoTimeBasedAttributeTrigger; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TopTasksInsightsSummary} */ // @ts-ignore export function createTopTasksInsightsSummaryFromDiscriminatorValue(parseNode) { return deserializeIntoTopTasksInsightsSummary; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TopWorkflowsInsightsSummary} */ // @ts-ignore export function createTopWorkflowsInsightsSummaryFromDiscriminatorValue(parseNode) { return deserializeIntoTopWorkflowsInsightsSummary; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TriggerAndScopeBasedConditions} */ // @ts-ignore export function createTriggerAndScopeBasedConditionsFromDiscriminatorValue(parseNode) { return deserializeIntoTriggerAndScopeBasedConditions; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {TriggerAttribute} */ // @ts-ignore export function createTriggerAttributeFromDiscriminatorValue(parseNode) { return deserializeIntoTriggerAttribute; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UserInactivityTrigger} */ // @ts-ignore export function createUserInactivityTriggerFromDiscriminatorValue(parseNode) { return deserializeIntoUserInactivityTrigger; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UserProcessingResultCollectionResponse} */ // @ts-ignore export function createUserProcessingResultCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoUserProcessingResultCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UserProcessingResult} */ // @ts-ignore export function createUserProcessingResultFromDiscriminatorValue(parseNode) { return deserializeIntoUserProcessingResult; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {UserSummary} */ // @ts-ignore export function createUserSummaryFromDiscriminatorValue(parseNode) { return deserializeIntoUserSummary; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WorkflowBase} */ // @ts-ignore export function createWorkflowBaseFromDiscriminatorValue(parseNode) { if (!parseNode) throw new Error("parseNode cannot be undefined"); const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type"); if (mappingValueNode) { const mappingValue = mappingValueNode.getStringValue(); if (mappingValue) { switch (mappingValue) { case "#microsoft.graph.identityGovernance.workflow": return deserializeIntoWorkflow; case "#microsoft.graph.identityGovernance.workflowVersion": return deserializeIntoWorkflowVersion; } } } return deserializeIntoWorkflowBase; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WorkflowCollectionResponse} */ // @ts-ignore export function createWorkflowCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoWorkflowCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WorkflowExecutionConditions} */ // @ts-ignore export function createWorkflowExecutionConditionsFromDiscriminatorValue(parseNode) { if (!parseNode) throw new Error("parseNode cannot be undefined"); const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type"); if (mappingValueNode) { const mappingValue = mappingValueNode.getStringValue(); if (mappingValue) { switch (mappingValue) { case "#microsoft.graph.identityGovernance.onDemandExecutionOnly": return deserializeIntoOnDemandExecutionOnly; case "#microsoft.graph.identityGovernance.triggerAndScopeBasedConditions": return deserializeIntoTriggerAndScopeBasedConditions; } } } return deserializeIntoWorkflowExecutionConditions; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WorkflowExecutionTrigger} */ // @ts-ignore export function createWorkflowExecutionTriggerFromDiscriminatorValue(parseNode) { if (!parseNode) throw new Error("parseNode cannot be undefined"); const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type"); if (mappingValueNode) { const mappingValue = mappingValueNode.getStringValue(); if (mappingValue) { switch (mappingValue) { case "#microsoft.graph.identityGovernance.attributeChangeTrigger": return deserializeIntoAttributeChangeTrigger; case "#microsoft.graph.identityGovernance.membershipChangeTrigger": return deserializeIntoMembershipChangeTrigger; case "#microsoft.graph.identityGovernance.timeBasedAttributeTrigger": return deserializeIntoTimeBasedAttributeTrigger; case "#microsoft.graph.identityGovernance.userInactivityTrigger": return deserializeIntoUserInactivityTrigger; } } } return deserializeIntoWorkflowExecutionTrigger; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {Workflow} */ // @ts-ignore export function createWorkflowFromDiscriminatorValue(parseNode) { return deserializeIntoWorkflow; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WorkflowsInsightsByCategory} */ // @ts-ignore export function createWorkflowsInsightsByCategoryFromDiscriminatorValue(parseNode) { return deserializeIntoWorkflowsInsightsByCategory; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WorkflowsInsightsSummary} */ // @ts-ignore export function createWorkflowsInsightsSummaryFromDiscriminatorValue(parseNode) { return deserializeIntoWorkflowsInsightsSummary; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WorkflowTemplateCollectionResponse} */ // @ts-ignore export function createWorkflowTemplateCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoWorkflowTemplateCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WorkflowTemplate} */ // @ts-ignore export function createWorkflowTemplateFromDiscriminatorValue(parseNode) { return deserializeIntoWorkflowTemplate; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WorkflowVersionCollectionResponse} */ // @ts-ignore export function createWorkflowVersionCollectionResponseFromDiscriminatorValue(parseNode) { return deserializeIntoWorkflowVersionCollectionResponse; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WorkflowVersion} */ // @ts-ignore export function createWorkflowVersionFromDiscriminatorValue(parseNode) { return deserializeIntoWorkflowVersion; } /** * The deserialization information for the current model * @param ActivateGroupScope The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoActivateGroupScope(activateGroupScope = {}) { return Object.assign(Object.assign({}, deserializeIntoActivationScope(activateGroupScope)), { "group": n => { activateGroupScope.group = n.getObjectValue(createGroupFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param ActivateProcessingResultScope The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoActivateProcessingResultScope(activateProcessingResultScope = {}) { return Object.assign(Object.assign({}, deserializeIntoActivationScope(activateProcessingResultScope)), { "processingResults": n => { activateProcessingResultScope.processingResults = n.getCollectionOfObjectValues(createUserProcessingResultFromDiscriminatorValue); }, "taskScope": n => { activateProcessingResultScope.taskScope = n.getEnumValue(ActivationTaskScopeTypeObject); } }); } /** * The deserialization information for the current model * @param ActivateRunScope The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoActivateRunScope(activateRunScope = {}) { return Object.assign(Object.assign({}, deserializeIntoActivationScope(activateRunScope)), { "run": n => { activateRunScope.run = n.getObjectValue(createRunFromDiscriminatorValue); }, "taskScope": n => { activateRunScope.taskScope = n.getEnumValue(ActivationTaskScopeTypeObject); }, "userScope": n => { activateRunScope.userScope = n.getEnumValue(ActivationUserScopeTypeObject); } }); } /** * The deserialization information for the current model * @param ActivateUserScope The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoActivateUserScope(activateUserScope = {}) { return Object.assign(Object.assign({}, deserializeIntoActivationScope(activateUserScope)), { "users": n => { activateUserScope.users = n.getCollectionOfObjectValues(createUserFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param ActivationScope The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoActivationScope(activationScope = {}) { return { "backingStoreEnabled": n => { activationScope.backingStoreEnabled = true; }, "@odata.type": n => { activationScope.odataType = n.getStringValue(); }, }; } /** * The deserialization information for the current model * @param AttributeChangeTrigger The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoAttributeChangeTrigger(attributeChangeTrigger = {}) { return Object.assign(Object.assign({}, deserializeIntoWorkflowExecutionTrigger(attributeChangeTrigger)), { "triggerAttributes": n => { attributeChangeTrigger.triggerAttributes = n.getCollectionOfObjectValues(createTriggerAttributeFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param CustomTaskExtension The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCustomTaskExtension(customTaskExtension = {}) { return Object.assign(Object.assign({}, deserializeIntoCustomCalloutExtension(customTaskExtension)), { "callbackConfiguration": n => { customTaskExtension.callbackConfiguration = n.getObjectValue(createCustomExtensionCallbackConfigurationFromDiscriminatorValue); }, "createdBy": n => { customTaskExtension.createdBy = n.getObjectValue(createUserFromDiscriminatorValue); }, "createdDateTime": n => { customTaskExtension.createdDateTime = n.getDateValue(); }, "lastModifiedBy": n => { customTaskExtension.lastModifiedBy = n.getObjectValue(createUserFromDiscriminatorValue); }, "lastModifiedDateTime": n => { customTaskExtension.lastModifiedDateTime = n.getDateValue(); } }); } /** * The deserialization information for the current model * @param CustomTaskExtensionCallbackConfiguration The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCustomTaskExtensionCallbackConfiguration(customTaskExtensionCallbackConfiguration = {}) { return Object.assign(Object.assign({}, deserializeIntoCustomExtensionCallbackConfiguration(customTaskExtensionCallbackConfiguration)), { "authorizedApps": n => { customTaskExtensionCallbackConfiguration.authorizedApps = n.getCollectionOfObjectValues(createApplicationFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param CustomTaskExtensionCallbackData The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCustomTaskExtensionCallbackData(customTaskExtensionCallbackData = {}) { return Object.assign(Object.assign({}, deserializeIntoCustomExtensionData(customTaskExtensionCallbackData)), { "operationStatus": n => { customTaskExtensionCallbackData.operationStatus = n.getEnumValue(CustomTaskExtensionOperationStatusObject); } }); } /** * The deserialization information for the current model * @param CustomTaskExtensionCalloutData The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCustomTaskExtensionCalloutData(customTaskExtensionCalloutData = {}) { return Object.assign(Object.assign({}, deserializeIntoCustomExtensionData(customTaskExtensionCalloutData)), { "subject": n => { customTaskExtensionCalloutData.subject = n.getObjectValue(createUserFromDiscriminatorValue); }, "task": n => { customTaskExtensionCalloutData.task = n.getObjectValue(createTaskFromDiscriminatorValue); }, "taskProcessingresult": n => { customTaskExtensionCalloutData.taskProcessingresult = n.getObjectValue(createTaskProcessingResultFromDiscriminatorValue); }, "workflow": n => { customTaskExtensionCalloutData.workflow = n.getObjectValue(createWorkflowFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param CustomTaskExtensionCollectionResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCustomTaskExtensionCollectionResponse(customTaskExtensionCollectionResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(customTaskExtensionCollectionResponse)), { "value": n => { customTaskExtensionCollectionResponse.value = n.getCollectionOfObjectValues(createCustomTaskExtensionFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param GroupBasedSubjectSet The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoGroupBasedSubjectSet(groupBasedSubjectSet = {}) { return Object.assign(Object.assign({}, deserializeIntoSubjectSet(groupBasedSubjectSet)), { "groups": n => { groupBasedSubjectSet.groups = n.getCollectionOfObjectValues(createGroupFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param Insights The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoInsights(insights = {}) { return Object.assign({}, deserializeIntoEntity(insights)); } /** * The deserialization information for the current model * @param LifecycleManagementSettings The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoLifecycleManagementSettings(lifecycleManagementSettings = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(lifecycleManagementSettings)), { "emailSettings": n => { lifecycleManagementSettings.emailSettings = n.getObjectValue(createEmailSettingsFromDiscriminatorValue); }, "workflowScheduleIntervalInHours": n => { lifecycleManagementSettings.workflowScheduleIntervalInHours = n.getNumberValue(); } }); } /** * The deserialization information for the current model * @param LifecycleWorkflowsContainer The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoLifecycleWorkflowsContainer(lifecycleWorkflowsContainer = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(lifecycleWorkflowsContainer)), { "customTaskExtensions": n => { lifecycleWorkflowsContainer.customTaskExtensions = n.getCollectionOfObjectValues(createCustomTaskExtensionFromDiscriminatorValue); }, "deletedItems": n => { lifecycleWorkflowsContainer.deletedItems = n.getObjectValue(createDeletedItemContainerFromDiscriminatorValue); }, "insights": n => { lifecycleWorkflowsContainer.insights = n.getObjectValue(createInsightsFromDiscriminatorValue); }, "settings": n => { lifecycleWorkflowsContainer.settings = n.getObjectValue(createLifecycleManagementSettingsFromDiscriminatorValue); }, "taskDefinitions": n => { lifecycleWorkflowsContainer.taskDefinitions = n.getCollectionOfObjectValues(createTaskDefinitionFromDiscriminatorValue); }, "workflows": n => { lifecycleWorkflowsContainer.workflows = n.getCollectionOfObjectValues(createWorkflowFromDiscriminatorValue); }, "workflowTemplates": n => { lifecycleWorkflowsContainer.workflowTemplates = n.getCollectionOfObjectValues(createWorkflowTemplateFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param MembershipChangeTrigger The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoMembershipChangeTrigger(membershipChangeTrigger = {}) { return Object.assign(Object.assign({}, deserializeIntoWorkflowExecutionTrigger(membershipChangeTrigger)), { "changeType": n => { membershipChangeTrigger.changeType = n.getEnumValue(MembershipChangeTypeObject); } }); } /** * The deserialization information for the current model * @param OnDemandExecutionOnly The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoOnDemandExecutionOnly(onDemandExecutionOnly = {}) { return Object.assign({}, deserializeIntoWorkflowExecutionConditions(onDemandExecutionOnly)); } /** * The deserialization information for the current model * @param Parameter The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoParameter(parameter = {}) { return { "backingStoreEnabled": n => { parameter.backingStoreEnabled = true; }, "name": n => { parameter.name = n.getStringValue(); }, "@odata.type": n => { parameter.odataType = n.getStringValue(); }, "values": n => { parameter.values = n.getCollectionOfPrimitiveValues(); }, "valueType": n => { parameter.valueType = n.getEnumValue(ValueTypeObject); }, }; } /** * The deserialization information for the current model * @param RuleBasedSubjectSet The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoRuleBasedSubjectSet(ruleBasedSubjectSet = {}) { return Object.assign(Object.assign({}, deserializeIntoSubjectSet(ruleBasedSubjectSet)), { "rule": n => { ruleBasedSubjectSet.rule = n.getStringValue(); } }); } /** * The deserialization information for the current model * @param Run The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoRun(run = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(run)), { "activatedOnScope": n => { run.activatedOnScope = n.getObjectValue(createActivationScopeFromDiscriminatorValue); }, "completedDateTime": n => { run.completedDateTime = n.getDateValue(); }, "failedTasksCount": n => { run.failedTasksCount = n.getNumberValue(); }, "failedUsersCount": n => { run.failedUsersCount = n.getNumberValue(); }, "lastUpdatedDateTime": n => { run.lastUpdatedDateTime = n.getDateValue(); }, "processingStatus": n => { run.processingStatus = n.getEnumValue(LifecycleWorkflowProcessingStatusObject); }, "reprocessedRuns": n => { run.reprocessedRuns = n.getCollectionOfObjectValues(createRunFromDiscriminatorValue); }, "scheduledDateTime": n => { run.scheduledDateTime = n.getDateValue(); }, "startedDateTime": n => { run.startedDateTime = n.getDateValue(); }, "successfulUsersCount": n => { run.successfulUsersCount = n.getNumberValue(); }, "taskProcessingResults": n => { run.taskProcessingResults = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); }, "totalTasksCount": n => { run.totalTasksCount = n.getNumberValue(); }, "totalUnprocessedTasksCount": n => { run.totalUnprocessedTasksCount = n.getNumberValue(); }, "totalUsersCount": n => { run.totalUsersCount = n.getNumberValue(); }, "userProcessingResults": n => { run.userProcessingResults = n.getCollectionOfObjectValues(createUserProcessingResultFromDiscriminatorValue); }, "workflowExecutionType": n => { run.workflowExecutionType = n.getEnumValue(WorkflowExecutionTypeObject); } }); } /** * The deserialization information for the current model * @param RunCollectionResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoRunCollectionResponse(runCollectionResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(runCollectionResponse)), { "value": n => { runCollectionResponse.value = n.getCollectionOfObjectValues(createRunFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param RunSummary The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoRunSummary(runSummary = {}) { return { "backingStoreEnabled": n => { runSummary.backingStoreEnabled = true; }, "failedRuns": n => { runSummary.failedRuns = n.getNumberValue(); }, "failedTasks": n => { runSummary.failedTasks = n.getNumberValue(); }, "@odata.type": n => { runSummary.odataType = n.getStringValue(); }, "successfulRuns": n => { runSummary.successfulRuns = n.getNumberValue(); }, "totalRuns": n => { runSummary.totalRuns = n.getNumberValue(); }, "totalTasks": n => { runSummary.totalTasks = n.getNumberValue(); }, "totalUsers": n => { runSummary.totalUsers = n.getNumberValue(); }, }; } /** * The deserialization information for the current model * @param Task The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTask(task = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(task)), { "arguments": n => { task.arguments = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, "category": n => { task.category = n.getCollectionOfEnumValues(LifecycleTaskCategoryObject); }, "continueOnError": n => { task.continueOnError = n.getBooleanValue(); }, "description": n => { task.description = n.getStringValue(); }, "displayName": n => { task.displayName = n.getStringValue(); }, "executionSequence": n => { task.executionSequence = n.getNumberValue(); }, "isEnabled": n => { task.isEnabled = n.getBooleanValue(); }, "taskDefinitionId": n => { task.taskDefinitionId = n.getStringValue(); }, "taskProcessingResults": n => { task.taskProcessingResults = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param TaskCollectionResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTaskCollectionResponse(taskCollectionResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(taskCollectionResponse)), { "value": n => { taskCollectionResponse.value = n.getCollectionOfObjectValues(createTaskFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param TaskDefinition The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTaskDefinition(taskDefinition = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(taskDefinition)), { "category": n => { taskDefinition.category = n.getCollectionOfEnumValues(LifecycleTaskCategoryObject); }, "continueOnError": n => { taskDefinition.continueOnError = n.getBooleanValue(); }, "description": n => { taskDefinition.description = n.getStringValue(); }, "displayName": n => { taskDefinition.displayName = n.getStringValue(); }, "parameters": n => { taskDefinition.parameters = n.getCollectionOfObjectValues(createParameterFromDiscriminatorValue); }, "version": n => { taskDefinition.version = n.getNumberValue(); } }); } /** * The deserialization information for the current model * @param TaskDefinitionCollectionResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTaskDefinitionCollectionResponse(taskDefinitionCollectionResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(taskDefinitionCollectionResponse)), { "value": n => { taskDefinitionCollectionResponse.value = n.getCollectionOfObjectValues(createTaskDefinitionFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param TaskProcessingResult The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTaskProcessingResult(taskProcessingResult = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(taskProcessingResult)), { "completedDateTime": n => { taskProcessingResult.completedDateTime = n.getDateValue(); }, "createdDateTime": n => { taskProcessingResult.createdDateTime = n.getDateValue(); }, "failureReason": n => { taskProcessingResult.failureReason = n.getStringValue(); }, "processingStatus": n => { taskProcessingResult.processingStatus = n.getEnumValue(LifecycleWorkflowProcessingStatusObject); }, "startedDateTime": n => { taskProcessingResult.startedDateTime = n.getDateValue(); }, "subject": n => { taskProcessingResult.subject = n.getObjectValue(createUserFromDiscriminatorValue); }, "task": n => { taskProcessingResult.task = n.getObjectValue(createTaskFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param TaskProcessingResultCollectionResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTaskProcessingResultCollectionResponse(taskProcessingResultCollectionResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(taskProcessingResultCollectionResponse)), { "value": n => { taskProcessingResultCollectionResponse.value = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param TaskReport The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTaskReport(taskReport = {}) { return Object.assign(Object.assign({}, deserializeIntoEntity(taskReport)), { "completedDateTime": n => { taskReport.completedDateTime = n.getDateValue(); }, "failedUsersCount": n => { taskReport.failedUsersCount = n.getNumberValue(); }, "lastUpdatedDateTime": n => { taskReport.lastUpdatedDateTime = n.getDateValue(); }, "processingStatus": n => { taskReport.processingStatus = n.getEnumValue(LifecycleWorkflowProcessingStatusObject); }, "runId": n => { taskReport.runId = n.getStringValue(); }, "startedDateTime": n => { taskReport.startedDateTime = n.getDateValue(); }, "successfulUsersCount": n => { taskReport.successfulUsersCount = n.getNumberValue(); }, "task": n => { taskReport.task = n.getObjectValue(createTaskFromDiscriminatorValue); }, "taskDefinition": n => { taskReport.taskDefinition = n.getObjectValue(createTaskDefinitionFromDiscriminatorValue); }, "taskProcessingResults": n => { taskReport.taskProcessingResults = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); }, "totalUsersCount": n => { taskReport.totalUsersCount = n.getNumberValue(); }, "unprocessedUsersCount": n => { taskReport.unprocessedUsersCount = n.getNumberValue(); } }); } /** * The deserialization information for the current model * @param TaskReportCollectionResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTaskReportCollectionResponse(taskReportCollectionResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(taskReportCollectionResponse)), { "value": n => { taskReportCollectionResponse.value = n.getCollectionOfObjectValues(createTaskReportFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param TaskReportSummary The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTaskReportSummary(taskReportSummary = {}) { return { "backingStoreEnabled": n => { taskReportSummary.backingStoreEnabled = true; }, "failedTasks": n => { taskReportSummary.failedTasks = n.getNumberValue(); }, "@odata.type": n => { taskReportSummary.odataType = n.getStringValue(); }, "successfulTasks": n => { taskReportSummary.successfulTasks = n.getNumberValue(); }, "totalTasks": n => { taskReportSummary.totalTasks = n.getNumberValue(); }, "unprocessedTasks": n => { taskReportSummary.unprocessedTasks = n.getNumberValue(); }, }; } /** * The deserialization information for the current model * @param TimeBasedAttributeTrigger The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTimeBasedAttributeTrigger(timeBasedAttributeTrigger = {}) { return Object.assign(Object.assign({}, deserializeIntoWorkflowExecutionTrigger(timeBasedAttributeTrigger)), { "offsetInDays": n => { timeBasedAttributeTrigger.offsetInDays = n.getNumberValue(); }, "timeBasedAttribute": n => { timeBasedAttributeTrigger.timeBasedAttribute = n.getEnumValue(WorkflowTriggerTimeBasedAttributeObject); } }); } /** * The deserialization information for the current model * @param TopTasksInsightsSummary The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTopTasksInsightsSummary(topTasksInsightsSummary = {}) { return { "backingStoreEnabled": n => { topTasksInsightsSummary.backingStoreEnabled = true; }, "failedTasks": n => { topTasksInsightsSummary.failedTasks = n.getNumberValue(); }, "failedUsers": n => { topTasksInsightsSummary.failedUsers = n.getNumberValue(); }, "@odata.type": n => { topTasksInsightsSummary.odataType = n.getStringValue(); }, "successfulTasks": n => { topTasksInsightsSummary.successfulTasks = n.getNumberValue(); }, "successfulUsers": n => { topTasksInsightsSummary.successfulUsers = n.getNumberValue(); }, "taskDefinitionDisplayName": n => { topTasksInsightsSummary.taskDefinitionDisplayName = n.getStringValue(); }, "taskDefinitionId": n => { topTasksInsightsSummary.taskDefinitionId = n.getStringValue(); }, "totalTasks": n => { topTasksInsightsSummary.totalTasks = n.getNumberValue(); }, "totalUsers": n => { topTasksInsightsSummary.totalUsers = n.getNumberValue(); }, }; } /** * The deserialization information for the current model * @param TopWorkflowsInsightsSummary The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTopWorkflowsInsightsSummary(topWorkflowsInsightsSummary = {}) { return { "backingStoreEnabled": n => { topWorkflowsInsightsSummary.backingStoreEnabled = true; }, "failedRuns": n => { topWorkflowsInsightsSummary.failedRuns = n.getNumberValue(); }, "failedUsers": n => { topWorkflowsInsightsSummary.failedUsers = n.getNumberValue(); }, "@odata.type": n => { topWorkflowsInsightsSummary.odataType = n.getStringValue(); }, "successfulRuns": n => { topWorkflowsInsightsSummary.successfulRuns = n.getNumberValue(); }, "successfulUsers": n => { topWorkflowsInsightsSummary.successfulUsers = n.getNumberValue(); }, "totalRuns": n => { topWorkflowsInsightsSummary.totalRuns = n.getNumberValue(); }, "totalUsers": n => { topWorkflowsInsightsSummary.totalUsers = n.getNumberValue(); }, "workflowCategory": n => { topWorkflowsInsightsSummary.workflowCategory = n.getEnumValue(LifecycleWorkflowCategoryObject); }, "workflowDisplayName": n => { topWorkflowsInsightsSummary.workflowDisplayName = n.getStringValue(); }, "workflowId": n => { topWorkflowsInsightsSummary.workflowId = n.getStringValue(); }, "workflowVersion": n => { topWorkflowsInsightsSummary.workflowVersion = n.getNumberValue(); }, }; } /** * The deserialization information for the current model * @param TriggerAndScopeBasedConditions The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoTriggerAndScopeBasedConditions(triggerAndScopeBasedConditions = {}) { return Object.assign(Object.assign({}, deserializeIntoWorkflowExecutionConditions(triggerAndScopeBasedConditions)), { "scope": n => { triggerAndScopeBasedConditions.scope = n.getObjectValue(createSubjectSetFromDiscriminatorValue); }, "trigger": n => { triggerAndScopeBasedConditions.trigger = n.getObjectValue(createWorkflowExecutionTriggerFromDiscriminatorValue); } }); } /** * The deserialization information for the current model * @param TriggerAttribute The instance