embulk-input-zendesk-all 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.travis.yml +5 -0
  4. data/CHANGELOG.md +126 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +91 -0
  7. data/build.gradle +123 -0
  8. data/config/checkstyle/checkstyle.xml +128 -0
  9. data/config/checkstyle/default.xml +108 -0
  10. data/gradle/wrapper/gradle-wrapper.jar +0 -0
  11. data/gradle/wrapper/gradle-wrapper.properties +5 -0
  12. data/gradlew +172 -0
  13. data/gradlew.bat +84 -0
  14. data/lib/embulk/guess/zendesk.rb +21 -0
  15. data/lib/embulk/input/zendesk.rb +3 -0
  16. data/src/main/java/org/embulk/input/zendesk/RecordImporter.java +134 -0
  17. data/src/main/java/org/embulk/input/zendesk/ZendeskInputPlugin.java +513 -0
  18. data/src/main/java/org/embulk/input/zendesk/clients/ZendeskRestClient.java +291 -0
  19. data/src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java +23 -0
  20. data/src/main/java/org/embulk/input/zendesk/models/Target.java +47 -0
  21. data/src/main/java/org/embulk/input/zendesk/models/ZendeskException.java +25 -0
  22. data/src/main/java/org/embulk/input/zendesk/services/ZendeskCustomObjectService.java +110 -0
  23. data/src/main/java/org/embulk/input/zendesk/services/ZendeskNPSService.java +30 -0
  24. data/src/main/java/org/embulk/input/zendesk/services/ZendeskNormalServices.java +347 -0
  25. data/src/main/java/org/embulk/input/zendesk/services/ZendeskService.java +14 -0
  26. data/src/main/java/org/embulk/input/zendesk/services/ZendeskSupportAPIService.java +63 -0
  27. data/src/main/java/org/embulk/input/zendesk/services/ZendeskUserEventService.java +158 -0
  28. data/src/main/java/org/embulk/input/zendesk/stream/PagingSpliterator.java +40 -0
  29. data/src/main/java/org/embulk/input/zendesk/stream/paginator/sunshine/CustomObjectSpliterator.java +42 -0
  30. data/src/main/java/org/embulk/input/zendesk/stream/paginator/sunshine/SunshineSpliterator.java +66 -0
  31. data/src/main/java/org/embulk/input/zendesk/stream/paginator/sunshine/UserEventSpliterator.java +35 -0
  32. data/src/main/java/org/embulk/input/zendesk/stream/paginator/support/OrganizationSpliterator.java +13 -0
  33. data/src/main/java/org/embulk/input/zendesk/stream/paginator/support/SupportSpliterator.java +44 -0
  34. data/src/main/java/org/embulk/input/zendesk/stream/paginator/support/UserSpliterator.java +13 -0
  35. data/src/main/java/org/embulk/input/zendesk/utils/ZendeskConstants.java +72 -0
  36. data/src/main/java/org/embulk/input/zendesk/utils/ZendeskDateUtils.java +68 -0
  37. data/src/main/java/org/embulk/input/zendesk/utils/ZendeskUtils.java +92 -0
  38. data/src/test/java/org/embulk/input/zendesk/TestRecordImporter.java +114 -0
  39. data/src/test/java/org/embulk/input/zendesk/TestZendeskInputPlugin.java +402 -0
  40. data/src/test/java/org/embulk/input/zendesk/clients/TestZendeskRestClient.java +337 -0
  41. data/src/test/java/org/embulk/input/zendesk/services/TestZendeskCustomObjectService.java +161 -0
  42. data/src/test/java/org/embulk/input/zendesk/services/TestZendeskNPSService.java +56 -0
  43. data/src/test/java/org/embulk/input/zendesk/services/TestZendeskNormalService.java +261 -0
  44. data/src/test/java/org/embulk/input/zendesk/services/TestZendeskSupportAPIService.java +130 -0
  45. data/src/test/java/org/embulk/input/zendesk/services/TestZendeskUserEventService.java +158 -0
  46. data/src/test/java/org/embulk/input/zendesk/utils/TestZendeskDateUtils.java +87 -0
  47. data/src/test/java/org/embulk/input/zendesk/utils/TestZendeskUtil.java +22 -0
  48. data/src/test/java/org/embulk/input/zendesk/utils/ZendeskPluginTestRuntime.java +133 -0
  49. data/src/test/java/org/embulk/input/zendesk/utils/ZendeskTestHelper.java +92 -0
  50. data/src/test/resources/config/base.yml +14 -0
  51. data/src/test/resources/config/base_validator.yml +48 -0
  52. data/src/test/resources/config/incremental.yml +54 -0
  53. data/src/test/resources/config/non-incremental.yml +39 -0
  54. data/src/test/resources/config/nps.yml +31 -0
  55. data/src/test/resources/config/object_records.yml +24 -0
  56. data/src/test/resources/config/relationship_records.yml +23 -0
  57. data/src/test/resources/config/user_events.yml +29 -0
  58. data/src/test/resources/config/util.yml +18 -0
  59. data/src/test/resources/data/client.json +293 -0
  60. data/src/test/resources/data/duplicate_user.json +0 -0
  61. data/src/test/resources/data/empty_result.json +7 -0
  62. data/src/test/resources/data/error_data.json +187 -0
  63. data/src/test/resources/data/expected/ticket_column.json +148 -0
  64. data/src/test/resources/data/expected/ticket_column_with_related_objects.json +152 -0
  65. data/src/test/resources/data/expected/ticket_fields_column.json +92 -0
  66. data/src/test/resources/data/expected/ticket_metrics_column.json +98 -0
  67. data/src/test/resources/data/expected/user_events_column.json +40 -0
  68. data/src/test/resources/data/object_records.json +30 -0
  69. data/src/test/resources/data/organization.json +39 -0
  70. data/src/test/resources/data/relationship_records.json +57 -0
  71. data/src/test/resources/data/scores.json +21 -0
  72. data/src/test/resources/data/scores_share_same_time_with_next_page.json +35 -0
  73. data/src/test/resources/data/scores_share_same_time_without_next_page.json +35 -0
  74. data/src/test/resources/data/simple_organization.json +23 -0
  75. data/src/test/resources/data/simple_user.json +50 -0
  76. data/src/test/resources/data/simple_user_event.json +19 -0
  77. data/src/test/resources/data/ticket_events_share_same_time_with_next_page.json +279 -0
  78. data/src/test/resources/data/ticket_events_share_same_time_without_next_page.json +279 -0
  79. data/src/test/resources/data/ticket_events_updated_by_system_records.json +279 -0
  80. data/src/test/resources/data/ticket_fields.json +225 -0
  81. data/src/test/resources/data/ticket_metrics.json +397 -0
  82. data/src/test/resources/data/ticket_share_same_time_with_next_page.json +232 -0
  83. data/src/test/resources/data/ticket_share_same_time_without_next_page.json +232 -0
  84. data/src/test/resources/data/ticket_with_related_objects.json +67 -0
  85. data/src/test/resources/data/ticket_with_updated_by_system_records.json +187 -0
  86. data/src/test/resources/data/tickets.json +232 -0
  87. data/src/test/resources/data/tickets_continue.json +52 -0
  88. data/src/test/resources/data/user_event.json +19 -0
  89. data/src/test/resources/data/user_event_contain_latter_create_at.json +19 -0
  90. data/src/test/resources/data/user_event_multiple.json +33 -0
  91. data/src/test/resources/data/util.json +19 -0
  92. data/src/test/resources/data/util_page.json +227 -0
  93. metadata +168 -0
@@ -0,0 +1,232 @@
1
+ {
2
+ "tickets": [
3
+ {
4
+ "url": "https://abc.zendesk.com/api/v2/tickets/2.json",
5
+ "id": 2,
6
+ "external_id": null,
7
+ "via": {
8
+ "channel": "web",
9
+ "source": {
10
+ "from": {},
11
+ "to": {},
12
+ "rel": null
13
+ }
14
+ },
15
+ "created_at": "2019-02-20T06:51:50Z",
16
+ "updated_at": "2019-02-20T06:51:50Z",
17
+ "type": null,
18
+ "subject": "ticket1",
19
+ "raw_subject": "ticket1",
20
+ "description": "ticket1",
21
+ "priority": null,
22
+ "status": "open",
23
+ "recipient": null,
24
+ "requester_id": 374673563333,
25
+ "submitter_id": 374673563333,
26
+ "assignee_id": 374673563333,
27
+ "organization_id": 360857467053,
28
+ "group_id": 360003235353,
29
+ "collaborator_ids": [],
30
+ "follower_ids": [],
31
+ "email_cc_ids": [],
32
+ "forum_topic_id": null,
33
+ "problem_id": null,
34
+ "has_incidents": false,
35
+ "is_public": true,
36
+ "due_at": null,
37
+ "tags": [],
38
+ "custom_fields": [],
39
+ "satisfaction_rating": null,
40
+ "sharing_agreement_ids": [],
41
+ "fields": [],
42
+ "followup_ids": [],
43
+ "brand_id": 360001998013,
44
+ "allow_channelback": false,
45
+ "allow_attachments": true,
46
+ "generated_timestamp": 1550645510
47
+ },
48
+ {
49
+ "url": "https://abc.zendesk.com/api/v2/tickets/3.json",
50
+ "id": 3,
51
+ "external_id": null,
52
+ "via": {
53
+ "channel": "web",
54
+ "source": {
55
+ "from": {},
56
+ "to": {},
57
+ "rel": null
58
+ }
59
+ },
60
+ "created_at": "2019-02-20T06:52:02Z",
61
+ "updated_at": "2019-02-20T06:52:02Z",
62
+ "type": null,
63
+ "subject": "ticket2",
64
+ "raw_subject": "ticket2",
65
+ "description": "ticket2",
66
+ "priority": null,
67
+ "status": "open",
68
+ "recipient": null,
69
+ "requester_id": 374673563333,
70
+ "submitter_id": 374673563333,
71
+ "assignee_id": 374673563333,
72
+ "organization_id": 360857467053,
73
+ "group_id": 360003235353,
74
+ "collaborator_ids": [],
75
+ "follower_ids": [],
76
+ "email_cc_ids": [],
77
+ "forum_topic_id": null,
78
+ "problem_id": null,
79
+ "has_incidents": false,
80
+ "is_public": true,
81
+ "due_at": null,
82
+ "tags": [],
83
+ "custom_fields": [],
84
+ "satisfaction_rating": null,
85
+ "sharing_agreement_ids": [],
86
+ "fields": [],
87
+ "followup_ids": [],
88
+ "brand_id": 360001998013,
89
+ "allow_channelback": false,
90
+ "allow_attachments": true,
91
+ "generated_timestamp": 1550645522
92
+ },
93
+ {
94
+ "url": "https://abc.zendesk.com/api/v2/tickets/4.json",
95
+ "id": 4,
96
+ "external_id": null,
97
+ "via": {
98
+ "channel": "web",
99
+ "source": {
100
+ "from": {},
101
+ "to": {},
102
+ "rel": null
103
+ }
104
+ },
105
+ "created_at": "2019-02-20T06:52:12Z",
106
+ "updated_at": "2019-02-20T06:52:12Z",
107
+ "type": null,
108
+ "subject": "ticket3",
109
+ "raw_subject": "ticket3",
110
+ "description": "ticket3",
111
+ "priority": null,
112
+ "status": "open",
113
+ "recipient": null,
114
+ "requester_id": 374673563333,
115
+ "submitter_id": 374673563333,
116
+ "assignee_id": 374673563333,
117
+ "organization_id": 360857467053,
118
+ "group_id": 360003235353,
119
+ "collaborator_ids": [],
120
+ "follower_ids": [],
121
+ "email_cc_ids": [],
122
+ "forum_topic_id": null,
123
+ "problem_id": null,
124
+ "has_incidents": false,
125
+ "is_public": true,
126
+ "due_at": null,
127
+ "tags": [],
128
+ "custom_fields": [],
129
+ "satisfaction_rating": null,
130
+ "sharing_agreement_ids": [],
131
+ "fields": [],
132
+ "followup_ids": [],
133
+ "brand_id": 360001998013,
134
+ "allow_channelback": false,
135
+ "allow_attachments": true,
136
+ "generated_timestamp": 1550645532
137
+ },
138
+ {
139
+ "url": "https://abc.zendesk.com/api/v2/tickets/1002.json",
140
+ "id": 1002,
141
+ "external_id": null,
142
+ "via": {
143
+ "channel": "api",
144
+ "source": {
145
+ "from": {},
146
+ "to": {},
147
+ "rel": null
148
+ }
149
+ },
150
+ "created_at": "2019-02-20T07:17:33Z",
151
+ "updated_at": "2019-02-20T07:17:33Z",
152
+ "type": null,
153
+ "subject": "Help!",
154
+ "raw_subject": "Help!",
155
+ "description": "Help I need somebody.",
156
+ "priority": null,
157
+ "status": "open",
158
+ "recipient": null,
159
+ "requester_id": 374673563333,
160
+ "submitter_id": 374673563333,
161
+ "assignee_id": 374673563333,
162
+ "organization_id": 360857467053,
163
+ "group_id": 360003235353,
164
+ "collaborator_ids": [],
165
+ "follower_ids": [],
166
+ "email_cc_ids": [],
167
+ "forum_topic_id": null,
168
+ "problem_id": null,
169
+ "has_incidents": false,
170
+ "is_public": true,
171
+ "due_at": null,
172
+ "tags": [],
173
+ "custom_fields": [],
174
+ "satisfaction_rating": null,
175
+ "sharing_agreement_ids": [],
176
+ "fields": [],
177
+ "followup_ids": [],
178
+ "brand_id": 360001998013,
179
+ "allow_channelback": false,
180
+ "allow_attachments": true,
181
+ "generated_timestamp": 1550647053
182
+ },
183
+ {
184
+ "url": "https://abc.zendesk.com/api/v2/tickets/1002.json",
185
+ "id": 1002,
186
+ "external_id": null,
187
+ "via": {
188
+ "channel": "api",
189
+ "source": {
190
+ "from": {},
191
+ "to": {},
192
+ "rel": null
193
+ }
194
+ },
195
+ "created_at": "2019-02-20T07:17:33Z",
196
+ "updated_at": "2019-02-20T07:17:33Z",
197
+ "type": null,
198
+ "subject": "Help!",
199
+ "raw_subject": "Help!",
200
+ "description": "Help I need somebody.",
201
+ "priority": null,
202
+ "status": "open",
203
+ "recipient": null,
204
+ "requester_id": 374673563333,
205
+ "submitter_id": 374673563333,
206
+ "assignee_id": 374673563333,
207
+ "organization_id": 360857467053,
208
+ "group_id": 360003235353,
209
+ "collaborator_ids": [],
210
+ "follower_ids": [],
211
+ "email_cc_ids": [],
212
+ "forum_topic_id": null,
213
+ "problem_id": null,
214
+ "has_incidents": false,
215
+ "is_public": true,
216
+ "due_at": null,
217
+ "tags": [],
218
+ "custom_fields": [],
219
+ "satisfaction_rating": null,
220
+ "sharing_agreement_ids": [],
221
+ "fields": [],
222
+ "followup_ids": [],
223
+ "brand_id": 360001998013,
224
+ "allow_channelback": false,
225
+ "allow_attachments": true,
226
+ "generated_timestamp": 1550647053
227
+ }
228
+ ],
229
+ "count": 999,
230
+ "next_page": "https://abc.zendesk.com/api/v2/incremental/tickets.json?sort_by=updated_at&start_time=1550647053",
231
+ "end_time": 1550647053
232
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "tickets": [
3
+ {
4
+ "url": "https://abc.zendesk.com/api/v2/tickets/1.json",
5
+ "id": 1,
6
+ "external_id": null,
7
+ "via": {
8
+ "channel": "web",
9
+ "source": {
10
+ "from": {},
11
+ "to": {},
12
+ "rel": null
13
+ }
14
+ },
15
+ "created_at": "2019-02-20T06:51:50Z",
16
+ "updated_at": "2019-02-20T06:51:50Z",
17
+ "type": null,
18
+ "subject": "ticket1",
19
+ "raw_subject": "ticket1",
20
+ "description": "ticket1",
21
+ "priority": null,
22
+ "status": "open",
23
+ "recipient": null,
24
+ "requester_id": 374673563333,
25
+ "submitter_id": 374673563333,
26
+ "assignee_id": 374673563333,
27
+ "organization_id": 360857467053,
28
+ "group_id": 360003235353,
29
+ "collaborator_ids": [],
30
+ "follower_ids": [],
31
+ "email_cc_ids": [],
32
+ "forum_topic_id": null,
33
+ "problem_id": null,
34
+ "has_incidents": false,
35
+ "is_public": true,
36
+ "due_at": null,
37
+ "tags": [],
38
+ "custom_fields": [],
39
+ "satisfaction_rating": null,
40
+ "sharing_agreement_ids": [],
41
+ "fields": [],
42
+ "followup_ids": [],
43
+ "brand_id": 360001998013,
44
+ "allow_channelback": false,
45
+ "allow_attachments": true,
46
+ "generated_timestamp": 1550645510
47
+ }
48
+ ],
49
+ "count": 1000,
50
+ "next_page": "https://abc.zendesk.com/api/v2/incremental/tickets.json?sort_by=updated_at&start_time=1550647053",
51
+ "end_time": 1550647053
52
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "data": [
3
+ {
4
+ "id": "5c7f31aef8df240001e60bbf",
5
+ "type": "remove_from_cart",
6
+ "source": "shopify",
7
+ "description": "",
8
+ "authenticated": true,
9
+ "created_at": "2019-03-06T02:34:22Z",
10
+ "received_at": "2019-03-06T02:34:22Z",
11
+ "properties": {
12
+ "model": 221,
13
+ "size": 6
14
+ },
15
+ "user_id": "123123121232"
16
+ }
17
+ ],
18
+ "links": null
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "data": [
3
+ {
4
+ "id": "5c7f31aef8df240001e60bbf",
5
+ "type": "remove_from_cart",
6
+ "source": "shopify",
7
+ "description": "",
8
+ "authenticated": true,
9
+ "created_at": "2019-09-06T02:34:22Z",
10
+ "received_at": "2019-09-06T02:34:22Z",
11
+ "properties": {
12
+ "model": 221,
13
+ "size": 6
14
+ },
15
+ "user_id": "123123121232"
16
+ }
17
+ ],
18
+ "links": null
19
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "data": [
3
+ {
4
+ "id": "5c7f31aef8df240001e60bbf",
5
+ "type": "remove_from_cart",
6
+ "source": "shopify",
7
+ "description": "",
8
+ "authenticated": true,
9
+ "created_at": "2019-03-06T02:34:22Z",
10
+ "received_at": "2019-03-06T02:34:22Z",
11
+ "properties": {
12
+ "model": 221,
13
+ "size": 6
14
+ },
15
+ "user_id": "123123121232"
16
+ },
17
+ {
18
+ "id": "5c7f31aef8df240001e60b3f",
19
+ "type": "remove_from_cart2",
20
+ "source": "shopify",
21
+ "description": "",
22
+ "authenticated": true,
23
+ "created_at": "2019-03-06T02:34:30Z",
24
+ "received_at": "2019-03-06T02:34:30Z",
25
+ "properties": {
26
+ "model": 221,
27
+ "size": 6
28
+ },
29
+ "user_id": "123123121232"
30
+ }
31
+ ],
32
+ "links": null
33
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "allRight": {
3
+ "boolean": true,
4
+ "long": 1,
5
+ "double": 1,
6
+ "string": "string",
7
+ "date": "2019-01-01T00:00:00Z",
8
+ "json": {}
9
+ },
10
+ "allWrong": {
11
+ "boolean": null,
12
+ "long": null,
13
+ "double": null,
14
+ "string": null,
15
+ "date": "abcxyz",
16
+ "json": {}
17
+ },
18
+ "allMissing": {}
19
+ }
@@ -0,0 +1,227 @@
1
+ {
2
+ "ticket_fields": [
3
+ {
4
+ "url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417093.json",
5
+ "id": 360015417093,
6
+ "type": "subject",
7
+ "title": "Subject",
8
+ "raw_title": "Subject",
9
+ "description": "",
10
+ "raw_description": "",
11
+ "position": 1,
12
+ "active": true,
13
+ "required": false,
14
+ "collapsed_for_agents": false,
15
+ "regexp_for_validation": null,
16
+ "title_in_portal": "Subject",
17
+ "raw_title_in_portal": "Subject",
18
+ "visible_in_portal": true,
19
+ "editable_in_portal": true,
20
+ "required_in_portal": true,
21
+ "tag": null,
22
+ "created_at": "2019-02-20T06:50:45Z",
23
+ "updated_at": "2019-02-20T06:50:46Z",
24
+ "removable": false,
25
+ "agent_description": null
26
+ },
27
+ {
28
+ "url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417113.json",
29
+ "id": 360015417113,
30
+ "type": "description",
31
+ "title": "Description",
32
+ "raw_title": "Description",
33
+ "description": "Please enter the details of your request. A member of our support staff will respond as soon as possible.",
34
+ "raw_description": "Please enter the details of your request. A member of our support staff will respond as soon as possible.",
35
+ "position": 2,
36
+ "active": true,
37
+ "required": false,
38
+ "collapsed_for_agents": false,
39
+ "regexp_for_validation": null,
40
+ "title_in_portal": "Description",
41
+ "raw_title_in_portal": "Description",
42
+ "visible_in_portal": true,
43
+ "editable_in_portal": true,
44
+ "required_in_portal": true,
45
+ "tag": null,
46
+ "created_at": "2019-02-20T06:50:45Z",
47
+ "updated_at": "2019-02-20T06:50:46Z",
48
+ "removable": false,
49
+ "agent_description": null
50
+ },
51
+ {
52
+ "url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417133.json",
53
+ "id": 360015417133,
54
+ "type": "status",
55
+ "title": "Status",
56
+ "raw_title": "Status",
57
+ "description": "Request status",
58
+ "raw_description": "Request status",
59
+ "position": 3,
60
+ "active": true,
61
+ "required": false,
62
+ "collapsed_for_agents": false,
63
+ "regexp_for_validation": null,
64
+ "title_in_portal": "Status",
65
+ "raw_title_in_portal": "Status",
66
+ "visible_in_portal": false,
67
+ "editable_in_portal": false,
68
+ "required_in_portal": false,
69
+ "tag": null,
70
+ "created_at": "2019-02-20T06:50:45Z",
71
+ "updated_at": "2019-02-20T06:50:46Z",
72
+ "removable": false,
73
+ "agent_description": null,
74
+ "system_field_options": [
75
+ {
76
+ "name": "Open",
77
+ "value": "open"
78
+ },
79
+ {
80
+ "name": "Pending",
81
+ "value": "pending"
82
+ },
83
+ {
84
+ "name": "Solved",
85
+ "value": "solved"
86
+ }
87
+ ],
88
+ "sub_type_id": 0
89
+ },
90
+ {
91
+ "url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417153.json",
92
+ "id": 360015417153,
93
+ "type": "tickettype",
94
+ "title": "Type",
95
+ "raw_title": "Type",
96
+ "description": "Request type",
97
+ "raw_description": "Request type",
98
+ "position": 4,
99
+ "active": true,
100
+ "required": false,
101
+ "collapsed_for_agents": false,
102
+ "regexp_for_validation": null,
103
+ "title_in_portal": "Type",
104
+ "raw_title_in_portal": "Type",
105
+ "visible_in_portal": false,
106
+ "editable_in_portal": false,
107
+ "required_in_portal": false,
108
+ "tag": null,
109
+ "created_at": "2019-02-20T06:50:45Z",
110
+ "updated_at": "2019-02-20T06:50:46Z",
111
+ "removable": true,
112
+ "agent_description": null,
113
+ "system_field_options": [
114
+ {
115
+ "name": "Question",
116
+ "value": "question"
117
+ },
118
+ {
119
+ "name": "Incident",
120
+ "value": "incident"
121
+ },
122
+ {
123
+ "name": "Problem",
124
+ "value": "problem"
125
+ },
126
+ {
127
+ "name": "Task",
128
+ "value": "task"
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417173.json",
134
+ "id": 360015417173,
135
+ "type": "priority",
136
+ "title": "Priority",
137
+ "raw_title": "Priority",
138
+ "description": "Request priority",
139
+ "raw_description": "Request priority",
140
+ "position": 5,
141
+ "active": true,
142
+ "required": false,
143
+ "collapsed_for_agents": false,
144
+ "regexp_for_validation": null,
145
+ "title_in_portal": "Priority",
146
+ "raw_title_in_portal": "Priority",
147
+ "visible_in_portal": true,
148
+ "editable_in_portal": false,
149
+ "required_in_portal": false,
150
+ "tag": null,
151
+ "created_at": "2019-02-20T06:50:45Z",
152
+ "updated_at": "2019-02-20T06:50:46Z",
153
+ "removable": true,
154
+ "agent_description": null,
155
+ "system_field_options": [
156
+ {
157
+ "name": "Low",
158
+ "value": "low"
159
+ },
160
+ {
161
+ "name": "Normal",
162
+ "value": "normal"
163
+ },
164
+ {
165
+ "name": "High",
166
+ "value": "high"
167
+ },
168
+ {
169
+ "name": "Urgent",
170
+ "value": "urgent"
171
+ }
172
+ ],
173
+ "sub_type_id": 0
174
+ },
175
+ {
176
+ "url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417193.json",
177
+ "id": 360015417193,
178
+ "type": "group",
179
+ "title": "Group",
180
+ "raw_title": "Group",
181
+ "description": "Request group",
182
+ "raw_description": "Request group",
183
+ "position": 6,
184
+ "active": true,
185
+ "required": false,
186
+ "collapsed_for_agents": false,
187
+ "regexp_for_validation": null,
188
+ "title_in_portal": "Group",
189
+ "raw_title_in_portal": "Group",
190
+ "visible_in_portal": false,
191
+ "editable_in_portal": false,
192
+ "required_in_portal": false,
193
+ "tag": null,
194
+ "created_at": "2019-02-20T06:50:45Z",
195
+ "updated_at": "2019-02-20T06:50:46Z",
196
+ "removable": false,
197
+ "agent_description": null
198
+ },
199
+ {
200
+ "url": "https://abc.zendesk.com/api/v2/ticket_fields/360015417213.json",
201
+ "id": 360015417213,
202
+ "type": "assignee",
203
+ "title": "Assignee",
204
+ "raw_title": "Assignee",
205
+ "description": "Agent assigned to your request",
206
+ "raw_description": "Agent assigned to your request",
207
+ "position": 7,
208
+ "active": true,
209
+ "required": true,
210
+ "collapsed_for_agents": false,
211
+ "regexp_for_validation": null,
212
+ "title_in_portal": "Assignee",
213
+ "raw_title_in_portal": "Assignee",
214
+ "visible_in_portal": true,
215
+ "editable_in_portal": false,
216
+ "required_in_portal": false,
217
+ "tag": null,
218
+ "created_at": "2019-02-20T06:50:45Z",
219
+ "updated_at": "2019-02-20T06:50:46Z",
220
+ "removable": false,
221
+ "agent_description": null
222
+ }
223
+ ],
224
+ "next_page": "https://abc.zendesk.com/api/v2/ticket_fields.json?page=2",
225
+ "previous_page": null,
226
+ "count": 2198
227
+ }