Welcome to mirror list, hosted at ThFree Co, Russian Federation.

subscription_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ef701bbfc1073c6606359ec9d26fb936fc739ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true

module Types
  class SubscriptionType < ::Types::BaseObject
    graphql_name 'Subscription'

    field :issuable_assignees_updated, subscription: Subscriptions::IssuableUpdated, null: true,
                                       description: 'Triggered when the assignees of an issuable are updated.'

    field :issue_crm_contacts_updated, subscription: Subscriptions::IssuableUpdated, null: true,
                                       description: 'Triggered when the crm contacts of an issuable are updated.'

    field :issuable_title_updated, subscription: Subscriptions::IssuableUpdated, null: true,
                                   description: 'Triggered when the title of an issuable is updated.'

    field :issuable_labels_updated, subscription: Subscriptions::IssuableUpdated, null: true,
                                    description: 'Triggered when the labels of an issuable are updated.'

    field :issuable_dates_updated, subscription: Subscriptions::IssuableUpdated, null: true,
                                   description: 'Triggered when the due date or start date of an issuable is updated.'

    field :merge_request_reviewers_updated,
          subscription: Subscriptions::IssuableUpdated,
          null: true,
          description: 'Triggered when the reviewers of a merge request are updated.'
  end
end

Types::SubscriptionType.prepend_mod