1.0.12 • Published 6 years ago

vk-model_sql-smartworkflow v1.0.12

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
6 years ago

Overview

Virtual Key Smart Workflow Model package, Functional to perform DB based C.R.U.D operations to smart workflow models collections available.

Usage

  1. Install vk-model_sql-smartworkflow

    npm install @virtualkey/vk-model_sql-smartworkflow
  2. Import/Require the package.

    const SmartworkflowModels = require('vk-model_sql-smartworkflow')
  3. Initialize an object of the integration account model package.

    const smartworkflowModelsObj = new SmartworkflowModels();
  4. 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

  1. getSmartWorkflowsByGroupId Function to fetch records from Smart Rule schema based on passed filters.
  2. getSmartWorkflowById Function to fetch record from Smart Rule schema based on passed filters.
  3. addSmartWorkflow Function to add records for Smart Workflow.
  4. updateSmartWorkflow Function to update record for Smart Workflow.
  5. deleteSmartWorkflow Function to delete records for Smart Workflow.
  6. removeSmartWorkflow Function to remove record for Smart Workflow.
  7. addAction Function to add records for Actions.
  8. deleteAction Function to delete record for Actions.
  9. removeAction Function to remove records for actions.
  10. addTrigger Function to add records for trigger.
  11. updateTrigger Function to update records for trigger.
  12. deleteTrigger Function to delete records for trigger.
  13. removeTrigger Function to remove records for trigger.
  14. addWorkflowRecipientEmail Function to add records for workflow recipient emails.
  15. updateWorkflowRecipientEmail Function to update records for workflow recipient emails.
  16. deleteWorkflowRecipientEmail Function to delete records for workflow recipient emails.
  17. removeWorkflowRecipientEmail Function to remove records for workflow recipient emails.
  18. addWorkflowTaskPerformer Function to add records for workflow task performers.
  19. updateWorkflowTaskPerformer Function to update records for workflow task performers.
  20. deleteWorkflowTaskPerformer Function to delete records for workflow task performers.
  21. removeWorkflowTaskPerformer Function to remove records for workflow task performers.
  22. addWorkflowTaskRecipient Function to add records for workflow task recipients.
  23. updateWorkflowTaskRecipient Function to update records for workflow task recipients.
  24. deleteWorkflowTaskRecipient Function to delete records for workflow task recipients.
  25. removeWorkflowTaskRecipient Function to remove records for workflow task recipients.
  26. getRuleCodes Function to get list of all available rule codes.
  27. getAvailableTaskNotificationCodesForHost Function to get list of all available/unused task notification codes.
  28. getUsedRuleCodeIds Function to get list of all used rule codes.
  29. doesTaskNotificationCodeExist Function to check if task notification code exists for a user for a particular lock.
  30. insertTaskNotificationCode Function to create a new record for task notification code.
  31. incrementTaskNotificationCodeBucketForHost Function to create a new record for rule code.
  32. getRuleCodeInfoByRuleCodeForHost Function to get rule code information for a particular host and access code.
  33. deleteTaskNotificationCodeForSecondaryUserForLock Function to delete task notification code for a secondary user for a particular lock.
  34. getSameLocksForUniqueLockId Function to smart lock ids based on its lock and hub details.
  35. getGroupForWorkflow Function to fetch group details by unique smartworkflow identifier.
  36. getHostForWorkflow Function to fetch host identifier by unique smartworkflow identifier.
  37. getLinkedPropertiesForGroup Function to fetch linked properties for a particular group.
  38. isUserSingleTaskRecipient Function to check if workflow has a single task recipient or not.
  39. getWFListForSecondaryUserAsTaskRecipient Function to fetch list of workflows for a particular task recipient.
  40. getWFListForSecondaryUserAsTaskPerformer Function to fetch list of workflows for a particular task performer.
  41. getSmartLocksForSecondaryUserSameGroup Function to fetch list of smartlocks available for properties within the same group.
  42. getSmartLocksForSecondaryUserOtherGroups Function to fetch list of smartlocks available for properties from other groups.
  43. getTaskNotificationCodeForSecondaryUser Function to fetch list of task notification codes of a particular secondary user.
  44. getSmartWorkflowsForGroups Function to fetch list of smart workflows of a particular group.
  45. getTaskPerformerForSmartworkflow Function to fetch task performer of a particular smart workflow.
  46. getTaskRecipientsForSmartworkflow Function to fetch task recipients of a particular smart workflow.
  47. getSmartLocksForSecondaryUserForProperty Function to fetch list of smartlocks available for a particular property for a secondary user.
  48. getActionForSmartWorkFlow Function to fetch all available actions for a smart workflow.
  49. insertAttachmentsForWFDB Function to add records for attachments.
  50. getAttachmentsForSmartWorkFlowDB Function to fetch records for attachments.
  51. removeAttachmentForSmartWorkFlowDB Function to delete records for attachments.
  52. getWorkflowsForTaskPerformer Function to fetch list of all smartworkflows having a particular task performer.
  53. getSecondaryUserIdsForTaskPerformer Function to get secondary user id list for a task performer.
1.0.12

6 years ago

1.0.1

6 years ago