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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# frozen_string_literal: true
module Types
module CustomerRelations
class ContactType < BaseObject
graphql_name 'CustomerRelationsContact'
authorize :read_crm_contact
field :id,
GraphQL::Types::ID,
null: false,
description: 'Internal ID of the contact.'
field :organization, Types::CustomerRelations::OrganizationType,
null: true,
description: "Organization of the contact."
field :first_name,
GraphQL::Types::String,
null: false,
description: 'First name of the contact.'
field :last_name,
GraphQL::Types::String,
null: false,
description: 'Last name of the contact.'
field :phone,
GraphQL::Types::String,
null: true,
description: 'Phone number of the contact.'
field :email,
GraphQL::Types::String,
null: true,
description: 'Email address of the contact.'
field :description,
GraphQL::Types::String,
null: true,
description: 'Description of or notes for the contact.'
field :created_at,
Types::TimeType,
null: false,
description: 'Timestamp the contact was created.'
field :updated_at,
Types::TimeType,
null: false,
description: 'Timestamp the contact was last updated.'
end
end
end
|