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

mock_data.js « components « sidebar « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a9a00b3cfdf1e1653591b8c64b1558ac5c2612bb (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
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
56
57
58
export const getIssueCrmContactsQueryResponse = {
  data: {
    issue: {
      __typename: 'Issue',
      id: 'gid://gitlab/Issue/123',
      customerRelationsContacts: {
        nodes: [
          {
            id: 'gid://gitlab/CustomerRelations::Contact/1',
            firstName: 'Someone',
            lastName: 'Important',
            email: 'si@gitlab.com',
            phone: null,
            description: null,
            organization: null,
          },
          {
            id: 'gid://gitlab/CustomerRelations::Contact/5',
            firstName: 'Marty',
            lastName: 'McFly',
            email: null,
            phone: null,
            description: null,
            organization: null,
          },
        ],
      },
    },
  },
};

export const issueCrmContactsUpdateNullResponse = {
  data: {
    issueCrmContactsUpdated: null,
  },
};

export const issueCrmContactsUpdateResponse = {
  data: {
    issueCrmContactsUpdated: {
      __typename: 'Issue',
      id: 'gid://gitlab/Issue/123',
      customerRelationsContacts: {
        nodes: [
          {
            id: 'gid://gitlab/CustomerRelations::Contact/13',
            firstName: 'Dave',
            lastName: 'Davies',
            email: 'dd@gitlab.com',
            phone: '+44 20 1111 2222',
            description: 'Vice President',
            organization: null,
          },
        ],
      },
    },
  },
};