|
| 1 | +# frozen_string_literal: true |
| 2 | +# This file was auto-generated by lib/tasks/web.rake |
| 3 | + |
| 4 | +module Slack |
| 5 | + module Web |
| 6 | + module Api |
| 7 | + module Endpoints |
| 8 | + module WorkflowsFeatured |
| 9 | + # |
| 10 | + # Add featured workflows to a channel. |
| 11 | + # |
| 12 | + # @option options [string] :channel_id |
| 13 | + # Channel to add featured workflow in. |
| 14 | + # @option options [array] :trigger_ids |
| 15 | + # Comma-separated array of trigger IDs to add; max 15. |
| 16 | + # @see https://api.slack.com/methods/workflows.featured.add |
| 17 | + # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.featured/workflows.featured.add.json |
| 18 | + def workflows_featured_add(options = {}) |
| 19 | + raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil? |
| 20 | + raise ArgumentError, 'Required arguments :trigger_ids missing' if options[:trigger_ids].nil? |
| 21 | + post('workflows.featured.add', options) |
| 22 | + end |
| 23 | + |
| 24 | + # |
| 25 | + # List the featured workflows for specified channels. |
| 26 | + # |
| 27 | + # @option options [array] :channel_ids |
| 28 | + # Comma-separated array of channel IDs to list featured workflows for. |
| 29 | + # @see https://api.slack.com/methods/workflows.featured.list |
| 30 | + # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.featured/workflows.featured.list.json |
| 31 | + def workflows_featured_list(options = {}) |
| 32 | + raise ArgumentError, 'Required arguments :channel_ids missing' if options[:channel_ids].nil? |
| 33 | + post('workflows.featured.list', options) |
| 34 | + end |
| 35 | + |
| 36 | + # |
| 37 | + # Remove featured workflows from a channel. |
| 38 | + # |
| 39 | + # @option options [string] :channel_id |
| 40 | + # Channel to remove featured workflow from. |
| 41 | + # @option options [array] :trigger_ids |
| 42 | + # Comma-separated array of trigger IDs to remove; max 15. |
| 43 | + # @see https://api.slack.com/methods/workflows.featured.remove |
| 44 | + # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.featured/workflows.featured.remove.json |
| 45 | + def workflows_featured_remove(options = {}) |
| 46 | + raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil? |
| 47 | + raise ArgumentError, 'Required arguments :trigger_ids missing' if options[:trigger_ids].nil? |
| 48 | + post('workflows.featured.remove', options) |
| 49 | + end |
| 50 | + |
| 51 | + # |
| 52 | + # Set featured workflows for a channel. |
| 53 | + # |
| 54 | + # @option options [string] :channel_id |
| 55 | + # Channel to set featured workflows in. |
| 56 | + # @option options [array] :trigger_ids |
| 57 | + # Comma-separated array of trigger IDs that will replace any existing featured workflows in the channel; max 15. |
| 58 | + # @see https://api.slack.com/methods/workflows.featured.set |
| 59 | + # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows.featured/workflows.featured.set.json |
| 60 | + def workflows_featured_set(options = {}) |
| 61 | + raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil? |
| 62 | + raise ArgumentError, 'Required arguments :trigger_ids missing' if options[:trigger_ids].nil? |
| 63 | + post('workflows.featured.set', options) |
| 64 | + end |
| 65 | + end |
| 66 | + end |
| 67 | + end |
| 68 | + end |
| 69 | +end |
0 commit comments