merge_ticketing_client 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -6
  3. data/docs/Account.md +11 -10
  4. data/docs/AccountIntegration.md +1 -1
  5. data/docs/Attachment.md +15 -14
  6. data/docs/AttachmentRequest.md +11 -12
  7. data/docs/Collection.md +33 -0
  8. data/docs/CollectionTypeEnum.md +15 -0
  9. data/docs/CollectionsApi.md +193 -0
  10. data/docs/Comment.md +16 -15
  11. data/docs/CommentRequest.md +12 -13
  12. data/docs/ConditionSchema.md +30 -0
  13. data/docs/ConditionTypeEnum.md +15 -0
  14. data/docs/Contact.md +14 -13
  15. data/docs/DataPassthroughRequest.md +10 -11
  16. data/docs/EndUserDetailsRequest.md +2 -2
  17. data/docs/FieldFormatEnum.md +15 -0
  18. data/docs/FieldTypeEnum.md +15 -0
  19. data/docs/Issue.md +18 -17
  20. data/docs/LinkToken.md +1 -1
  21. data/docs/LinkedAccountCondition.md +27 -0
  22. data/docs/LinkedAccountConditionRequest.md +21 -0
  23. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  24. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  25. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  26. data/docs/MetaResponse.md +6 -7
  27. data/docs/OperatorSchema.md +20 -0
  28. data/docs/PaginatedCollectionList.md +22 -0
  29. data/docs/PaginatedConditionSchemaList.md +22 -0
  30. data/docs/PaginatedRemoteFieldClassList.md +22 -0
  31. data/docs/PatchedTicketRequest.md +25 -22
  32. data/docs/Project.md +11 -10
  33. data/docs/ProjectsApi.md +10 -8
  34. data/docs/RemoteData.md +4 -5
  35. data/docs/RemoteField.md +19 -0
  36. data/docs/RemoteFieldClass.md +38 -0
  37. data/docs/RemoteFieldClassItemSchema.md +22 -0
  38. data/docs/RemoteResponse.md +9 -10
  39. data/docs/SelectiveSyncApi.md +233 -0
  40. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  41. data/docs/SyncStatus.md +5 -3
  42. data/docs/Tag.md +9 -8
  43. data/docs/Team.md +11 -10
  44. data/docs/Ticket.md +32 -25
  45. data/docs/TicketRequest.md +26 -25
  46. data/docs/TicketsApi.md +141 -13
  47. data/docs/User.md +14 -13
  48. data/docs/UsersApi.md +2 -0
  49. data/lib/merge_ticketing_client/api/collections_api.rb +234 -0
  50. data/lib/merge_ticketing_client/api/linked_accounts_api.rb +1 -1
  51. data/lib/merge_ticketing_client/api/projects_api.rb +14 -11
  52. data/lib/merge_ticketing_client/api/selective_sync_api.rb +225 -0
  53. data/lib/merge_ticketing_client/api/tickets_api.rb +177 -19
  54. data/lib/merge_ticketing_client/api/users_api.rb +3 -0
  55. data/lib/merge_ticketing_client/models/account.rb +16 -4
  56. data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +1 -1
  57. data/lib/merge_ticketing_client/models/account_integration.rb +1 -1
  58. data/lib/merge_ticketing_client/models/attachment.rb +18 -4
  59. data/lib/merge_ticketing_client/models/attachment_request.rb +24 -20
  60. data/lib/merge_ticketing_client/models/categories_enum.rb +3 -2
  61. data/lib/merge_ticketing_client/models/category_enum.rb +3 -2
  62. data/lib/merge_ticketing_client/models/collection.rb +308 -0
  63. data/lib/merge_ticketing_client/models/collection_type_enum.rb +45 -0
  64. data/lib/merge_ticketing_client/models/comment.rb +19 -4
  65. data/lib/merge_ticketing_client/models/comment_request.rb +25 -20
  66. data/lib/merge_ticketing_client/models/condition_schema.rb +297 -0
  67. data/lib/merge_ticketing_client/models/condition_type_enum.rb +50 -0
  68. data/lib/merge_ticketing_client/models/contact.rb +16 -4
  69. data/lib/merge_ticketing_client/models/data_passthrough_request.rb +1 -0
  70. data/lib/merge_ticketing_client/models/encoding_enum.rb +1 -1
  71. data/lib/merge_ticketing_client/models/end_user_details_request.rb +2 -2
  72. data/lib/merge_ticketing_client/models/field_format_enum.rb +49 -0
  73. data/lib/merge_ticketing_client/models/field_type_enum.rb +49 -0
  74. data/lib/merge_ticketing_client/models/issue.rb +15 -4
  75. data/lib/merge_ticketing_client/models/link_token.rb +0 -5
  76. data/lib/merge_ticketing_client/models/linked_account_condition.rb +282 -0
  77. data/lib/merge_ticketing_client/models/linked_account_condition_request.rb +269 -0
  78. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration.rb +221 -0
  79. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  80. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  81. data/lib/merge_ticketing_client/models/method_enum.rb +1 -1
  82. data/lib/merge_ticketing_client/models/operator_schema.rb +229 -0
  83. data/lib/merge_ticketing_client/models/paginated_collection_list.rb +240 -0
  84. data/lib/merge_ticketing_client/models/paginated_condition_schema_list.rb +240 -0
  85. data/lib/merge_ticketing_client/models/paginated_remote_field_class_list.rb +240 -0
  86. data/lib/merge_ticketing_client/models/patched_ticket_request.rb +57 -29
  87. data/lib/merge_ticketing_client/models/priority_enum.rb +1 -1
  88. data/lib/merge_ticketing_client/models/project.rb +16 -4
  89. data/lib/merge_ticketing_client/models/remote_data.rb +9 -7
  90. data/lib/merge_ticketing_client/models/remote_field.rb +231 -0
  91. data/lib/merge_ticketing_client/models/remote_field_class.rb +318 -0
  92. data/lib/merge_ticketing_client/models/remote_field_class_item_schema.rb +241 -0
  93. data/lib/merge_ticketing_client/models/request_format_enum.rb +1 -1
  94. data/lib/merge_ticketing_client/models/response_type_enum.rb +1 -1
  95. data/lib/merge_ticketing_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  96. data/lib/merge_ticketing_client/models/sync_status.rb +13 -4
  97. data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
  98. data/lib/merge_ticketing_client/models/tag.rb +16 -4
  99. data/lib/merge_ticketing_client/models/team.rb +16 -4
  100. data/lib/merge_ticketing_client/models/ticket.rb +56 -7
  101. data/lib/merge_ticketing_client/models/ticket_request.rb +57 -40
  102. data/lib/merge_ticketing_client/models/ticket_status_enum.rb +1 -1
  103. data/lib/merge_ticketing_client/models/user.rb +16 -4
  104. data/lib/merge_ticketing_client/version.rb +1 -1
  105. data/lib/merge_ticketing_client.rb +21 -0
  106. data/spec/api/collections_api_spec.rb +76 -0
  107. data/spec/api/projects_api_spec.rb +3 -2
  108. data/spec/api/selective_sync_api_spec.rb +72 -0
  109. data/spec/api/tickets_api_spec.rb +24 -4
  110. data/spec/api/users_api_spec.rb +1 -0
  111. data/spec/models/account_spec.rb +6 -0
  112. data/spec/models/attachment_request_spec.rb +12 -0
  113. data/spec/models/attachment_spec.rb +6 -0
  114. data/spec/models/collection_spec.rb +82 -0
  115. data/spec/models/collection_type_enum_spec.rb +28 -0
  116. data/spec/models/comment_request_spec.rb +12 -0
  117. data/spec/models/comment_spec.rb +6 -0
  118. data/spec/models/condition_schema_spec.rb +70 -0
  119. data/spec/models/condition_type_enum_spec.rb +28 -0
  120. data/spec/models/contact_spec.rb +6 -0
  121. data/spec/models/issue_spec.rb +6 -0
  122. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  123. data/spec/models/linked_account_condition_spec.rb +64 -0
  124. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  125. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  126. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  127. data/spec/models/operator_schema_spec.rb +40 -0
  128. data/spec/models/paginated_collection_list_spec.rb +46 -0
  129. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  130. data/spec/models/patched_ticket_request_spec.rb +24 -0
  131. data/spec/models/project_spec.rb +6 -0
  132. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  133. data/spec/models/sync_status_spec.rb +6 -0
  134. data/spec/models/tag_spec.rb +6 -0
  135. data/spec/models/team_spec.rb +6 -0
  136. data/spec/models/ticket_request_spec.rb +24 -0
  137. data/spec/models/ticket_spec.rb +18 -0
  138. data/spec/models/user_spec.rb +6 -0
  139. metadata +144 -72
@@ -16,74 +16,79 @@ require 'time'
16
16
  module MergeTicketingClient
17
17
  # # The Ticket Object ### Description The `Ticket` object is used to represent a ticket or a task within a system. ### Usage Example TODO
18
18
  class TicketRequest
19
- # The third-party API ID of the matching object.
20
- attr_accessor :remote_id
21
-
22
19
  # The ticket's name.
23
20
  attr_accessor :name
24
21
 
25
22
  attr_accessor :assignees
26
23
 
24
+ # The user who created this ticket.
25
+ attr_accessor :creator
26
+
27
27
  # The ticket's due date.
28
28
  attr_accessor :due_date
29
29
 
30
30
  # The current status of the ticket.
31
31
  attr_accessor :status
32
32
 
33
- # The ticket's description.
33
+ # The tickets description. HTML version of description is mapped if supported by the third-party platform.
34
34
  attr_accessor :description
35
35
 
36
+ # The project the ticket belongs to.
36
37
  attr_accessor :project
37
38
 
39
+ attr_accessor :collections
40
+
38
41
  # The ticket's type.
39
42
  attr_accessor :ticket_type
40
43
 
44
+ # The account associated with the ticket.
41
45
  attr_accessor :account
42
46
 
47
+ # The contact associated with the ticket.
43
48
  attr_accessor :contact
44
49
 
50
+ # The ticket's parent ticket.
45
51
  attr_accessor :parent_ticket
46
52
 
47
53
  attr_accessor :attachments
48
54
 
49
55
  attr_accessor :tags
50
56
 
51
- # When the third party's ticket was created.
52
- attr_accessor :remote_created_at
53
-
54
- # When the third party's ticket was updated.
55
- attr_accessor :remote_updated_at
56
-
57
57
  # When the ticket was completed.
58
58
  attr_accessor :completed_at
59
59
 
60
60
  # The 3rd party url of the Ticket.
61
61
  attr_accessor :ticket_url
62
62
 
63
- # The priority or urgency of the Ticket. Possible values include: URGENT, HIGH, NORMAL, LOW - in cases where there is no clear mapping - the original value passed through.
63
+ # The priority or urgency of the Ticket.
64
64
  attr_accessor :priority
65
65
 
66
+ attr_accessor :integration_params
67
+
68
+ attr_accessor :linked_account_params
69
+
66
70
  # Attribute mapping from ruby-style variable name to JSON key.
67
71
  def self.attribute_map
68
72
  {
69
- :'remote_id' => :'remote_id',
70
73
  :'name' => :'name',
71
74
  :'assignees' => :'assignees',
75
+ :'creator' => :'creator',
72
76
  :'due_date' => :'due_date',
73
77
  :'status' => :'status',
74
78
  :'description' => :'description',
75
79
  :'project' => :'project',
80
+ :'collections' => :'collections',
76
81
  :'ticket_type' => :'ticket_type',
77
82
  :'account' => :'account',
78
83
  :'contact' => :'contact',
79
84
  :'parent_ticket' => :'parent_ticket',
80
85
  :'attachments' => :'attachments',
81
86
  :'tags' => :'tags',
82
- :'remote_created_at' => :'remote_created_at',
83
- :'remote_updated_at' => :'remote_updated_at',
84
87
  :'completed_at' => :'completed_at',
85
88
  :'ticket_url' => :'ticket_url',
86
- :'priority' => :'priority'
89
+ :'priority' => :'priority',
90
+ :'integration_params' => :'integration_params',
91
+ :'linked_account_params' => :'linked_account_params'
87
92
  }
88
93
  end
89
94
 
@@ -95,32 +100,33 @@ module MergeTicketingClient
95
100
  # Attribute type mapping.
96
101
  def self.openapi_types
97
102
  {
98
- :'remote_id' => :'String',
99
103
  :'name' => :'String',
100
104
  :'assignees' => :'Array<String>',
105
+ :'creator' => :'String',
101
106
  :'due_date' => :'Time',
102
107
  :'status' => :'TicketStatusEnum',
103
108
  :'description' => :'String',
104
109
  :'project' => :'String',
110
+ :'collections' => :'Array<String>',
105
111
  :'ticket_type' => :'String',
106
112
  :'account' => :'String',
107
113
  :'contact' => :'String',
108
114
  :'parent_ticket' => :'String',
109
115
  :'attachments' => :'Array<String>',
110
116
  :'tags' => :'Array<String>',
111
- :'remote_created_at' => :'Time',
112
- :'remote_updated_at' => :'Time',
113
117
  :'completed_at' => :'Time',
114
118
  :'ticket_url' => :'String',
115
- :'priority' => :'PriorityEnum'
119
+ :'priority' => :'PriorityEnum',
120
+ :'integration_params' => :'Hash<String, Object>',
121
+ :'linked_account_params' => :'Hash<String, Object>'
116
122
  }
117
123
  end
118
124
 
119
125
  # List of attributes with nullable: true
120
126
  def self.openapi_nullable
121
127
  Set.new([
122
- :'remote_id',
123
128
  :'name',
129
+ :'creator',
124
130
  :'due_date',
125
131
  :'status',
126
132
  :'description',
@@ -129,11 +135,11 @@ module MergeTicketingClient
129
135
  :'account',
130
136
  :'contact',
131
137
  :'parent_ticket',
132
- :'remote_created_at',
133
- :'remote_updated_at',
134
138
  :'completed_at',
135
139
  :'ticket_url',
136
- :'priority'
140
+ :'priority',
141
+ :'integration_params',
142
+ :'linked_account_params'
137
143
  ])
138
144
  end
139
145
 
@@ -152,10 +158,6 @@ module MergeTicketingClient
152
158
  h[k.to_sym] = v
153
159
  }
154
160
 
155
- if attributes.key?(:'remote_id')
156
- self.remote_id = attributes[:'remote_id']
157
- end
158
-
159
161
  if attributes.key?(:'name')
160
162
  self.name = attributes[:'name']
161
163
  end
@@ -166,6 +168,10 @@ module MergeTicketingClient
166
168
  end
167
169
  end
168
170
 
171
+ if attributes.key?(:'creator')
172
+ self.creator = attributes[:'creator']
173
+ end
174
+
169
175
  if attributes.key?(:'due_date')
170
176
  self.due_date = attributes[:'due_date']
171
177
  end
@@ -182,6 +188,12 @@ module MergeTicketingClient
182
188
  self.project = attributes[:'project']
183
189
  end
184
190
 
191
+ if attributes.key?(:'collections')
192
+ if (value = attributes[:'collections']).is_a?(Array)
193
+ self.collections = value
194
+ end
195
+ end
196
+
185
197
  if attributes.key?(:'ticket_type')
186
198
  self.ticket_type = attributes[:'ticket_type']
187
199
  end
@@ -210,14 +222,6 @@ module MergeTicketingClient
210
222
  end
211
223
  end
212
224
 
213
- if attributes.key?(:'remote_created_at')
214
- self.remote_created_at = attributes[:'remote_created_at']
215
- end
216
-
217
- if attributes.key?(:'remote_updated_at')
218
- self.remote_updated_at = attributes[:'remote_updated_at']
219
- end
220
-
221
225
  if attributes.key?(:'completed_at')
222
226
  self.completed_at = attributes[:'completed_at']
223
227
  end
@@ -229,6 +233,18 @@ module MergeTicketingClient
229
233
  if attributes.key?(:'priority')
230
234
  self.priority = attributes[:'priority']
231
235
  end
236
+
237
+ if attributes.key?(:'integration_params')
238
+ if (value = attributes[:'integration_params']).is_a?(Hash)
239
+ self.integration_params = value
240
+ end
241
+ end
242
+
243
+ if attributes.key?(:'linked_account_params')
244
+ if (value = attributes[:'linked_account_params']).is_a?(Hash)
245
+ self.linked_account_params = value
246
+ end
247
+ end
232
248
  end
233
249
 
234
250
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -264,24 +280,25 @@ module MergeTicketingClient
264
280
  def ==(o)
265
281
  return true if self.equal?(o)
266
282
  self.class == o.class &&
267
- remote_id == o.remote_id &&
268
283
  name == o.name &&
269
284
  assignees == o.assignees &&
285
+ creator == o.creator &&
270
286
  due_date == o.due_date &&
271
287
  status == o.status &&
272
288
  description == o.description &&
273
289
  project == o.project &&
290
+ collections == o.collections &&
274
291
  ticket_type == o.ticket_type &&
275
292
  account == o.account &&
276
293
  contact == o.contact &&
277
294
  parent_ticket == o.parent_ticket &&
278
295
  attachments == o.attachments &&
279
296
  tags == o.tags &&
280
- remote_created_at == o.remote_created_at &&
281
- remote_updated_at == o.remote_updated_at &&
282
297
  completed_at == o.completed_at &&
283
298
  ticket_url == o.ticket_url &&
284
- priority == o.priority
299
+ priority == o.priority &&
300
+ integration_params == o.integration_params &&
301
+ linked_account_params == o.linked_account_params
285
302
  end
286
303
 
287
304
  # @see the `==` method
@@ -293,7 +310,7 @@ module MergeTicketingClient
293
310
  # Calculates hash code according to all attributes.
294
311
  # @return [Integer] Hash code
295
312
  def hash
296
- [remote_id, name, assignees, due_date, status, description, project, ticket_type, account, contact, parent_ticket, attachments, tags, remote_created_at, remote_updated_at, completed_at, ticket_url, priority].hash
313
+ [name, assignees, creator, due_date, status, description, project, collections, ticket_type, account, contact, parent_ticket, attachments, tags, completed_at, ticket_url, priority, integration_params, linked_account_params].hash
297
314
  end
298
315
 
299
316
  # Builds the object from hash
@@ -40,7 +40,7 @@ module MergeTicketingClient
40
40
  end
41
41
 
42
42
  def self.build_from_hash(value)
43
- IssueStatusEnum.new.build_from_hash(value)
43
+ TicketStatusEnum.new.build_from_hash(value)
44
44
  end
45
45
  end
46
46
 
@@ -40,6 +40,8 @@ module MergeTicketingClient
40
40
  # Indicates whether or not this object has been deleted by third party webhooks.
41
41
  attr_accessor :remote_was_deleted
42
42
 
43
+ attr_accessor :field_mappings
44
+
43
45
  # Attribute mapping from ruby-style variable name to JSON key.
44
46
  def self.attribute_map
45
47
  {
@@ -51,7 +53,8 @@ module MergeTicketingClient
51
53
  :'teams' => :'teams',
52
54
  :'avatar' => :'avatar',
53
55
  :'remote_data' => :'remote_data',
54
- :'remote_was_deleted' => :'remote_was_deleted'
56
+ :'remote_was_deleted' => :'remote_was_deleted',
57
+ :'field_mappings' => :'field_mappings'
55
58
  }
56
59
  end
57
60
 
@@ -71,7 +74,8 @@ module MergeTicketingClient
71
74
  :'teams' => :'Array<String>',
72
75
  :'avatar' => :'String',
73
76
  :'remote_data' => :'Array<RemoteData>',
74
- :'remote_was_deleted' => :'Boolean'
77
+ :'remote_was_deleted' => :'Boolean',
78
+ :'field_mappings' => :'Hash<String, Object>'
75
79
  }
76
80
  end
77
81
 
@@ -84,6 +88,7 @@ module MergeTicketingClient
84
88
  :'is_active',
85
89
  :'avatar',
86
90
  :'remote_data',
91
+ :'field_mappings'
87
92
  ])
88
93
  end
89
94
 
@@ -141,6 +146,12 @@ module MergeTicketingClient
141
146
  if attributes.key?(:'remote_was_deleted')
142
147
  self.remote_was_deleted = attributes[:'remote_was_deleted']
143
148
  end
149
+
150
+ if attributes.key?(:'field_mappings')
151
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
152
+ self.field_mappings = value
153
+ end
154
+ end
144
155
  end
145
156
 
146
157
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -169,7 +180,8 @@ module MergeTicketingClient
169
180
  teams == o.teams &&
170
181
  avatar == o.avatar &&
171
182
  remote_data == o.remote_data &&
172
- remote_was_deleted == o.remote_was_deleted
183
+ remote_was_deleted == o.remote_was_deleted &&
184
+ field_mappings == o.field_mappings
173
185
  end
174
186
 
175
187
  # @see the `==` method
@@ -181,7 +193,7 @@ module MergeTicketingClient
181
193
  # Calculates hash code according to all attributes.
182
194
  # @return [Integer] Hash code
183
195
  def hash
184
- [id, remote_id, name, email_address, is_active, teams, avatar, remote_data, remote_was_deleted].hash
196
+ [id, remote_id, name, email_address, is_active, teams, avatar, remote_data, remote_was_deleted, field_mappings].hash
185
197
  end
186
198
 
187
199
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.1.1
11
11
  =end
12
12
 
13
13
  module MergeTicketingClient
14
- VERSION = '1.0.1'
14
+ VERSION = '1.0.3'
15
15
  end
@@ -29,10 +29,14 @@ require 'merge_ticketing_client/models/attachment_request'
29
29
  require 'merge_ticketing_client/models/available_actions'
30
30
  require 'merge_ticketing_client/models/categories_enum'
31
31
  require 'merge_ticketing_client/models/category_enum'
32
+ require 'merge_ticketing_client/models/collection'
33
+ require 'merge_ticketing_client/models/collection_type_enum'
32
34
  require 'merge_ticketing_client/models/comment'
33
35
  require 'merge_ticketing_client/models/comment_endpoint_request'
34
36
  require 'merge_ticketing_client/models/comment_request'
35
37
  require 'merge_ticketing_client/models/comment_response'
38
+ require 'merge_ticketing_client/models/condition_schema'
39
+ require 'merge_ticketing_client/models/condition_type_enum'
36
40
  require 'merge_ticketing_client/models/contact'
37
41
  require 'merge_ticketing_client/models/data_passthrough_request'
38
42
  require 'merge_ticketing_client/models/debug_mode_log'
@@ -40,22 +44,33 @@ require 'merge_ticketing_client/models/debug_model_log_summary'
40
44
  require 'merge_ticketing_client/models/encoding_enum'
41
45
  require 'merge_ticketing_client/models/end_user_details_request'
42
46
  require 'merge_ticketing_client/models/error_validation_problem'
47
+ require 'merge_ticketing_client/models/field_format_enum'
48
+ require 'merge_ticketing_client/models/field_type_enum'
43
49
  require 'merge_ticketing_client/models/generate_remote_key_request'
44
50
  require 'merge_ticketing_client/models/issue'
45
51
  require 'merge_ticketing_client/models/issue_status_enum'
46
52
  require 'merge_ticketing_client/models/link_token'
53
+ require 'merge_ticketing_client/models/linked_account_condition'
54
+ require 'merge_ticketing_client/models/linked_account_condition_request'
55
+ require 'merge_ticketing_client/models/linked_account_selective_sync_configuration'
56
+ require 'merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request'
57
+ require 'merge_ticketing_client/models/linked_account_selective_sync_configuration_request'
47
58
  require 'merge_ticketing_client/models/linked_account_status'
48
59
  require 'merge_ticketing_client/models/meta_response'
49
60
  require 'merge_ticketing_client/models/method_enum'
50
61
  require 'merge_ticketing_client/models/model_operation'
51
62
  require 'merge_ticketing_client/models/multipart_form_field_request'
63
+ require 'merge_ticketing_client/models/operator_schema'
52
64
  require 'merge_ticketing_client/models/paginated_account_details_and_actions_list'
53
65
  require 'merge_ticketing_client/models/paginated_account_list'
54
66
  require 'merge_ticketing_client/models/paginated_attachment_list'
67
+ require 'merge_ticketing_client/models/paginated_collection_list'
55
68
  require 'merge_ticketing_client/models/paginated_comment_list'
69
+ require 'merge_ticketing_client/models/paginated_condition_schema_list'
56
70
  require 'merge_ticketing_client/models/paginated_contact_list'
57
71
  require 'merge_ticketing_client/models/paginated_issue_list'
58
72
  require 'merge_ticketing_client/models/paginated_project_list'
73
+ require 'merge_ticketing_client/models/paginated_remote_field_class_list'
59
74
  require 'merge_ticketing_client/models/paginated_sync_status_list'
60
75
  require 'merge_ticketing_client/models/paginated_tag_list'
61
76
  require 'merge_ticketing_client/models/paginated_team_list'
@@ -66,11 +81,15 @@ require 'merge_ticketing_client/models/patched_ticket_request'
66
81
  require 'merge_ticketing_client/models/priority_enum'
67
82
  require 'merge_ticketing_client/models/project'
68
83
  require 'merge_ticketing_client/models/remote_data'
84
+ require 'merge_ticketing_client/models/remote_field'
85
+ require 'merge_ticketing_client/models/remote_field_class'
86
+ require 'merge_ticketing_client/models/remote_field_class_item_schema'
69
87
  require 'merge_ticketing_client/models/remote_key'
70
88
  require 'merge_ticketing_client/models/remote_key_for_regeneration_request'
71
89
  require 'merge_ticketing_client/models/remote_response'
72
90
  require 'merge_ticketing_client/models/request_format_enum'
73
91
  require 'merge_ticketing_client/models/response_type_enum'
92
+ require 'merge_ticketing_client/models/selective_sync_configurations_usage_enum'
74
93
  require 'merge_ticketing_client/models/sync_status'
75
94
  require 'merge_ticketing_client/models/sync_status_status_enum'
76
95
  require 'merge_ticketing_client/models/tag'
@@ -94,6 +113,7 @@ require 'merge_ticketing_client/api/account_token_api'
94
113
  require 'merge_ticketing_client/api/accounts_api'
95
114
  require 'merge_ticketing_client/api/attachments_api'
96
115
  require 'merge_ticketing_client/api/available_actions_api'
116
+ require 'merge_ticketing_client/api/collections_api'
97
117
  require 'merge_ticketing_client/api/comments_api'
98
118
  require 'merge_ticketing_client/api/contacts_api'
99
119
  require 'merge_ticketing_client/api/delete_account_api'
@@ -105,6 +125,7 @@ require 'merge_ticketing_client/api/linked_accounts_api'
105
125
  require 'merge_ticketing_client/api/passthrough_api'
106
126
  require 'merge_ticketing_client/api/projects_api'
107
127
  require 'merge_ticketing_client/api/regenerate_key_api'
128
+ require 'merge_ticketing_client/api/selective_sync_api'
108
129
  require 'merge_ticketing_client/api/sync_status_api'
109
130
  require 'merge_ticketing_client/api/tags_api'
110
131
  require 'merge_ticketing_client/api/teams_api'
@@ -0,0 +1,76 @@
1
+ =begin
2
+ #Merge Ticketing API
3
+
4
+ #The unified API for building rich integrations with multiple Ticketing platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MergeTicketingClient::CollectionsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'CollectionsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MergeTicketingClient::CollectionsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CollectionsApi' do
30
+ it 'should create an instance of CollectionsApi' do
31
+ expect(@api_instance).to be_instance_of(MergeTicketingClient::CollectionsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for collections_list
36
+ # Returns a list of &#x60;Collection&#x60; objects.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :collection_type If provided, will only return collections of the given type.
40
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
41
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
42
+ # @option opts [String] :cursor The pagination cursor value.
43
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
44
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
45
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
46
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
47
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
48
+ # @option opts [Integer] :page_size Number of results to return per page.
49
+ # @option opts [String] :parent_collection_id If provided, will only return collections whose parent collection matches the given id.
50
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
51
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
52
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
53
+ # @return [PaginatedCollectionList]
54
+ describe 'collections_list test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
+ end
58
+ end
59
+
60
+ # unit tests for collections_retrieve
61
+ # Returns a &#x60;Collection&#x60; object with the given &#x60;id&#x60;.
62
+ # @param x_account_token Token identifying the end user.
63
+ # @param id
64
+ # @param [Hash] opts the optional parameters
65
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
66
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
67
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
68
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
69
+ # @return [Collection]
70
+ describe 'collections_retrieve test' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ end
@@ -66,12 +66,13 @@ describe 'ProjectsApi' do
66
66
  end
67
67
 
68
68
  # unit tests for projects_users_list
69
- # Returns a &#x60;User&#x60; object with the given &#x60;id&#x60;.
69
+ # Returns a list of &#x60;User&#x60; objects.
70
70
  # @param x_account_token Token identifying the end user.
71
- # @param id
71
+ # @param parent_id
72
72
  # @param [Hash] opts the optional parameters
73
73
  # @option opts [String] :cursor The pagination cursor value.
74
74
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
75
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
75
76
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
76
77
  # @option opts [Integer] :page_size Number of results to return per page.
77
78
  # @return [PaginatedUserList]
@@ -0,0 +1,72 @@
1
+ =begin
2
+ #Merge Ticketing API
3
+
4
+ #The unified API for building rich integrations with multiple Ticketing platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MergeTicketingClient::SelectiveSyncApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'SelectiveSyncApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MergeTicketingClient::SelectiveSyncApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SelectiveSyncApi' do
30
+ it 'should create an instance of SelectiveSyncApi' do
31
+ expect(@api_instance).to be_instance_of(MergeTicketingClient::SelectiveSyncApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for selective_sync_configurations_list
36
+ # Get a linked account&#39;s selective syncs.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<LinkedAccountSelectiveSyncConfiguration>]
40
+ describe 'selective_sync_configurations_list test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for selective_sync_configurations_update
47
+ # Replace a linked account&#39;s selective syncs.
48
+ # @param x_account_token Token identifying the end user.
49
+ # @param linked_account_selective_sync_configuration_list_request
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [Array<LinkedAccountSelectiveSyncConfiguration>]
52
+ describe 'selective_sync_configurations_update test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for selective_sync_meta_list
59
+ # Get metadata for the conditions available to a linked account.
60
+ # @param x_account_token Token identifying the end user.
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :common_model
63
+ # @option opts [String] :cursor The pagination cursor value.
64
+ # @option opts [Integer] :page_size Number of results to return per page.
65
+ # @return [PaginatedConditionSchemaList]
66
+ describe 'selective_sync_meta_list test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
72
+ end
@@ -33,12 +33,13 @@ describe 'TicketsApi' do
33
33
  end
34
34
 
35
35
  # unit tests for tickets_collaborators_list
36
- # Returns a &#x60;User&#x60; object with the given &#x60;id&#x60;.
36
+ # Returns a list of &#x60;User&#x60; objects.
37
37
  # @param x_account_token Token identifying the end user.
38
- # @param id
38
+ # @param parent_id
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @option opts [String] :cursor The pagination cursor value.
41
41
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
42
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
42
43
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
43
44
  # @option opts [Integer] :page_size Number of results to return per page.
44
45
  # @return [PaginatedUserList]
@@ -67,18 +68,35 @@ describe 'TicketsApi' do
67
68
  # @param x_account_token Token identifying the end user.
68
69
  # @param [Hash] opts the optional parameters
69
70
  # @option opts [String] :account_id If provided, will only return tickets for this account.
71
+ # @option opts [String] :assignee_ids If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas.
72
+ # @option opts [String] :collection_ids If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas.
73
+ # @option opts [Time] :completed_after If provided, will only return tickets completed after this datetime.
74
+ # @option opts [Time] :completed_before If provided, will only return tickets completed before this datetime.
75
+ # @option opts [String] :contact_id If provided, will only return tickets for this contact.
70
76
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
71
77
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
72
78
  # @option opts [String] :cursor The pagination cursor value.
79
+ # @option opts [Time] :due_after If provided, will only return tickets due after this datetime.
80
+ # @option opts [Time] :due_before If provided, will only return tickets due before this datetime.
73
81
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
74
82
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
75
83
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
76
84
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
77
85
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
78
86
  # @option opts [Integer] :page_size Number of results to return per page.
87
+ # @option opts [String] :parent_ticket_id If provided, will only return sub tickets of the parent_ticket_id.
88
+ # @option opts [String] :priority If provided, will only return tickets of this priority.
79
89
  # @option opts [String] :project_id If provided, will only return tickets for this project.
80
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
90
+ # @option opts [Time] :remote_created_after If provided, will only return tickets created in the third party platform after this datetime.
91
+ # @option opts [Time] :remote_created_before If provided, will only return tickets created in the third party platform before this datetime.
92
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
81
93
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
94
+ # @option opts [Time] :remote_updated_after If provided, will only return tickets updated in the third party platform after this datetime.
95
+ # @option opts [Time] :remote_updated_before If provided, will only return tickets updated in the third party platform before this datetime.
96
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
97
+ # @option opts [String] :status If provided, will only return tickets of this status.
98
+ # @option opts [String] :tags If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
99
+ # @option opts [String] :ticket_type If provided, will only return tickets of this type.
82
100
  # @return [PaginatedTicketList]
83
101
  describe 'tickets_list test' do
84
102
  it 'should work' do
@@ -110,6 +128,7 @@ describe 'TicketsApi' do
110
128
  end
111
129
 
112
130
  # unit tests for tickets_partial_update
131
+ # Updates a &#x60;Ticket&#x60; object with the given &#x60;id&#x60;.
113
132
  # @param x_account_token Token identifying the end user.
114
133
  # @param id
115
134
  # @param patched_ticket_endpoint_request
@@ -130,7 +149,8 @@ describe 'TicketsApi' do
130
149
  # @param [Hash] opts the optional parameters
131
150
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
132
151
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
133
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
152
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
153
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
134
154
  # @return [Ticket]
135
155
  describe 'tickets_retrieve test' do
136
156
  it 'should work' do
@@ -39,6 +39,7 @@ describe 'UsersApi' do
39
39
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
40
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
41
  # @option opts [String] :cursor The pagination cursor value.
42
+ # @option opts [String] :email_address If provided, will only return users with emails equal to this value (case insensitive).
42
43
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
44
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
44
45
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.