1.0.12 • Published 6 years ago
vk-model_sql-smartworkflow v1.0.12
Overview
Virtual Key Smart Workflow Model package, Functional to perform DB based C.R.U.D operations to smart workflow models collections available.
Usage
Install
vk-model_sql-smartworkflow
npm install @virtualkey/vk-model_sql-smartworkflow
Import/Require the package.
const SmartworkflowModels = require('vk-model_sql-smartworkflow')
Initialize an object of the integration account model package.
const smartworkflowModelsObj = new SmartworkflowModels();
Now just use the object as per the requirement using the dot notation followed by the method name.
smartworkflowModelsObj.[method-name]
Available Actions for Db collection models
getSmartWorkflowsByGroupId
Function to fetch records from Smart Rule schema based on passed filters.getSmartWorkflowById
Function to fetch record from Smart Rule schema based on passed filters.addSmartWorkflow
Function to add records for Smart Workflow.updateSmartWorkflow
Function to update record for Smart Workflow.deleteSmartWorkflow
Function to delete records for Smart Workflow.removeSmartWorkflow
Function to remove record for Smart Workflow.addAction
Function to add records for Actions.deleteAction
Function to delete record for Actions.removeAction
Function to remove records for actions.addTrigger
Function to add records for trigger.updateTrigger
Function to update records for trigger.deleteTrigger
Function to delete records for trigger.removeTrigger
Function to remove records for trigger.addWorkflowRecipientEmail
Function to add records for workflow recipient emails.updateWorkflowRecipientEmail
Function to update records for workflow recipient emails.deleteWorkflowRecipientEmail
Function to delete records for workflow recipient emails.removeWorkflowRecipientEmail
Function to remove records for workflow recipient emails.addWorkflowTaskPerformer
Function to add records for workflow task performers.updateWorkflowTaskPerformer
Function to update records for workflow task performers.deleteWorkflowTaskPerformer
Function to delete records for workflow task performers.removeWorkflowTaskPerformer
Function to remove records for workflow task performers.addWorkflowTaskRecipient
Function to add records for workflow task recipients.updateWorkflowTaskRecipient
Function to update records for workflow task recipients.deleteWorkflowTaskRecipient
Function to delete records for workflow task recipients.removeWorkflowTaskRecipient
Function to remove records for workflow task recipients.getRuleCodes
Function to get list of all available rule codes.getAvailableTaskNotificationCodesForHost
Function to get list of all available/unused task notification codes.getUsedRuleCodeIds
Function to get list of all used rule codes.doesTaskNotificationCodeExist
Function to check if task notification code exists for a user for a particular lock.insertTaskNotificationCode
Function to create a new record for task notification code.incrementTaskNotificationCodeBucketForHost
Function to create a new record for rule code.getRuleCodeInfoByRuleCodeForHost
Function to get rule code information for a particular host and access code.deleteTaskNotificationCodeForSecondaryUserForLock
Function to delete task notification code for a secondary user for a particular lock.getSameLocksForUniqueLockId
Function to smart lock ids based on its lock and hub details.getGroupForWorkflow
Function to fetch group details by unique smartworkflow identifier.getHostForWorkflow
Function to fetch host identifier by unique smartworkflow identifier.getLinkedPropertiesForGroup
Function to fetch linked properties for a particular group.isUserSingleTaskRecipient
Function to check if workflow has a single task recipient or not.getWFListForSecondaryUserAsTaskRecipient
Function to fetch list of workflows for a particular task recipient.getWFListForSecondaryUserAsTaskPerformer
Function to fetch list of workflows for a particular task performer.getSmartLocksForSecondaryUserSameGroup
Function to fetch list of smartlocks available for properties within the same group.getSmartLocksForSecondaryUserOtherGroups
Function to fetch list of smartlocks available for properties from other groups.getTaskNotificationCodeForSecondaryUser
Function to fetch list of task notification codes of a particular secondary user.getSmartWorkflowsForGroups
Function to fetch list of smart workflows of a particular group.getTaskPerformerForSmartworkflow
Function to fetch task performer of a particular smart workflow.getTaskRecipientsForSmartworkflow
Function to fetch task recipients of a particular smart workflow.getSmartLocksForSecondaryUserForProperty
Function to fetch list of smartlocks available for a particular property for a secondary user.getActionForSmartWorkFlow
Function to fetch all available actions for a smart workflow.insertAttachmentsForWFDB
Function to add records for attachments.getAttachmentsForSmartWorkFlowDB
Function to fetch records for attachments.removeAttachmentForSmartWorkFlowDB
Function to delete records for attachments.getWorkflowsForTaskPerformer
Function to fetch list of all smartworkflows having a particular task performer.getSecondaryUserIdsForTaskPerformer
Function to get secondary user id list for a task performer.