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-smartworkflownpm install @virtualkey/vk-model_sql-smartworkflowImport/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
getSmartWorkflowsByGroupIdFunction to fetch records from Smart Rule schema based on passed filters.getSmartWorkflowByIdFunction to fetch record from Smart Rule schema based on passed filters.addSmartWorkflowFunction to add records for Smart Workflow.updateSmartWorkflowFunction to update record for Smart Workflow.deleteSmartWorkflowFunction to delete records for Smart Workflow.removeSmartWorkflowFunction to remove record for Smart Workflow.addActionFunction to add records for Actions.deleteActionFunction to delete record for Actions.removeActionFunction to remove records for actions.addTriggerFunction to add records for trigger.updateTriggerFunction to update records for trigger.deleteTriggerFunction to delete records for trigger.removeTriggerFunction to remove records for trigger.addWorkflowRecipientEmailFunction to add records for workflow recipient emails.updateWorkflowRecipientEmailFunction to update records for workflow recipient emails.deleteWorkflowRecipientEmailFunction to delete records for workflow recipient emails.removeWorkflowRecipientEmailFunction to remove records for workflow recipient emails.addWorkflowTaskPerformerFunction to add records for workflow task performers.updateWorkflowTaskPerformerFunction to update records for workflow task performers.deleteWorkflowTaskPerformerFunction to delete records for workflow task performers.removeWorkflowTaskPerformerFunction to remove records for workflow task performers.addWorkflowTaskRecipientFunction to add records for workflow task recipients.updateWorkflowTaskRecipientFunction to update records for workflow task recipients.deleteWorkflowTaskRecipientFunction to delete records for workflow task recipients.removeWorkflowTaskRecipientFunction to remove records for workflow task recipients.getRuleCodesFunction to get list of all available rule codes.getAvailableTaskNotificationCodesForHostFunction to get list of all available/unused task notification codes.getUsedRuleCodeIdsFunction to get list of all used rule codes.doesTaskNotificationCodeExistFunction to check if task notification code exists for a user for a particular lock.insertTaskNotificationCodeFunction to create a new record for task notification code.incrementTaskNotificationCodeBucketForHostFunction to create a new record for rule code.getRuleCodeInfoByRuleCodeForHostFunction to get rule code information for a particular host and access code.deleteTaskNotificationCodeForSecondaryUserForLockFunction to delete task notification code for a secondary user for a particular lock.getSameLocksForUniqueLockIdFunction to smart lock ids based on its lock and hub details.getGroupForWorkflowFunction to fetch group details by unique smartworkflow identifier.getHostForWorkflowFunction to fetch host identifier by unique smartworkflow identifier.getLinkedPropertiesForGroupFunction to fetch linked properties for a particular group.isUserSingleTaskRecipientFunction to check if workflow has a single task recipient or not.getWFListForSecondaryUserAsTaskRecipientFunction to fetch list of workflows for a particular task recipient.getWFListForSecondaryUserAsTaskPerformerFunction to fetch list of workflows for a particular task performer.getSmartLocksForSecondaryUserSameGroupFunction to fetch list of smartlocks available for properties within the same group.getSmartLocksForSecondaryUserOtherGroupsFunction to fetch list of smartlocks available for properties from other groups.getTaskNotificationCodeForSecondaryUserFunction to fetch list of task notification codes of a particular secondary user.getSmartWorkflowsForGroupsFunction to fetch list of smart workflows of a particular group.getTaskPerformerForSmartworkflowFunction to fetch task performer of a particular smart workflow.getTaskRecipientsForSmartworkflowFunction to fetch task recipients of a particular smart workflow.getSmartLocksForSecondaryUserForPropertyFunction to fetch list of smartlocks available for a particular property for a secondary user.getActionForSmartWorkFlowFunction to fetch all available actions for a smart workflow.insertAttachmentsForWFDBFunction to add records for attachments.getAttachmentsForSmartWorkFlowDBFunction to fetch records for attachments.removeAttachmentForSmartWorkFlowDBFunction to delete records for attachments.getWorkflowsForTaskPerformerFunction to fetch list of all smartworkflows having a particular task performer.getSecondaryUserIdsForTaskPerformerFunction to get secondary user id list for a task performer.