merge_ticketing_client 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +72 -0
- data/README.md +17 -6
- data/docs/AccessLevelEnum.md +15 -0
- data/docs/Account.md +14 -11
- data/docs/AccountIntegration.md +5 -1
- data/docs/AccountsApi.md +4 -4
- data/docs/AsyncPassthroughApi.md +155 -0
- data/docs/AsyncPassthroughReciept.md +18 -0
- data/docs/Attachment.md +18 -15
- data/docs/AttachmentRequest.md +10 -9
- data/docs/AttachmentsApi.md +80 -4
- data/docs/Collection.md +18 -13
- data/docs/CollectionsApi.md +92 -6
- data/docs/Comment.md +19 -16
- data/docs/CommentRequest.md +11 -10
- data/docs/CommentsApi.md +6 -4
- data/docs/CommonModelScopesBodyRequest.md +22 -0
- data/docs/ConditionSchema.md +1 -1
- data/docs/Contact.md +17 -14
- data/docs/ContactsApi.md +4 -4
- data/docs/DataPassthroughRequest.md +11 -10
- data/docs/DeleteAccountApi.md +9 -9
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +4 -2
- data/docs/ForceResyncApi.md +1 -1
- data/docs/Issue.md +11 -10
- data/docs/IssuesApi.md +6 -6
- data/docs/ItemFormatEnum.md +15 -0
- data/docs/ItemSchema.md +22 -0
- data/docs/ItemTypeEnum.md +15 -0
- data/docs/LinkedAccountCondition.md +9 -8
- data/docs/LinkedAccountConditionRequest.md +6 -5
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/MetaResponse.md +9 -6
- data/docs/MultipartFormFieldRequest.md +1 -1
- data/docs/PatchedTicketRequest.md +23 -22
- data/docs/Project.md +14 -11
- data/docs/ProjectsApi.md +5 -5
- data/docs/RemoteData.md +5 -4
- data/docs/RemoteField.md +7 -6
- data/docs/RemoteFieldClass.md +9 -11
- data/docs/RemoteFieldRequest.md +20 -0
- data/docs/RemoteResponse.md +10 -9
- data/docs/SyncStatus.md +1 -1
- data/docs/SyncStatusApi.md +1 -1
- data/docs/Tag.md +12 -9
- data/docs/TagsApi.md +4 -4
- data/docs/Team.md +14 -11
- data/docs/TeamsApi.md +4 -4
- data/docs/Ticket.md +30 -29
- data/docs/TicketRequest.md +24 -23
- data/docs/TicketsApi.md +9 -11
- data/docs/User.md +17 -14
- data/docs/UsersApi.md +6 -6
- data/lib/merge_ticketing_client/api/accounts_api.rb +4 -4
- data/lib/merge_ticketing_client/api/async_passthrough_api.rb +160 -0
- data/lib/merge_ticketing_client/api/attachments_api.rb +75 -4
- data/lib/merge_ticketing_client/api/collections_api.rb +93 -6
- data/lib/merge_ticketing_client/api/comments_api.rb +7 -4
- data/lib/merge_ticketing_client/api/contacts_api.rb +4 -4
- data/lib/merge_ticketing_client/api/delete_account_api.rb +7 -7
- data/lib/merge_ticketing_client/api/force_resync_api.rb +2 -2
- data/lib/merge_ticketing_client/api/issues_api.rb +6 -6
- data/lib/merge_ticketing_client/api/linked_accounts_api.rb +3 -3
- data/lib/merge_ticketing_client/api/projects_api.rb +5 -5
- data/lib/merge_ticketing_client/api/sync_status_api.rb +2 -2
- data/lib/merge_ticketing_client/api/tags_api.rb +4 -4
- data/lib/merge_ticketing_client/api/teams_api.rb +4 -4
- data/lib/merge_ticketing_client/api/tickets_api.rb +11 -14
- data/lib/merge_ticketing_client/api/users_api.rb +6 -6
- data/lib/merge_ticketing_client/models/access_level_enum.rb +46 -0
- data/lib/merge_ticketing_client/models/account.rb +27 -17
- data/lib/merge_ticketing_client/models/account_integration.rb +29 -7
- data/lib/merge_ticketing_client/models/async_passthrough_reciept.rb +223 -0
- data/lib/merge_ticketing_client/models/attachment.rb +29 -19
- data/lib/merge_ticketing_client/models/attachment_request.rb +2 -2
- data/lib/merge_ticketing_client/models/categories_enum.rb +2 -1
- data/lib/merge_ticketing_client/models/category_enum.rb +2 -1
- data/lib/merge_ticketing_client/models/collection.rb +39 -18
- data/lib/merge_ticketing_client/models/comment.rb +27 -17
- data/lib/merge_ticketing_client/models/common_model_scopes_body_request.rb +274 -0
- data/lib/merge_ticketing_client/models/condition_schema.rb +1 -0
- data/lib/merge_ticketing_client/models/contact.rb +27 -17
- data/lib/merge_ticketing_client/models/enabled_actions_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/end_user_details_request.rb +19 -6
- data/lib/merge_ticketing_client/models/issue.rb +3 -2
- data/lib/merge_ticketing_client/models/item_format_enum.rb +49 -0
- data/lib/merge_ticketing_client/models/item_schema.rb +238 -0
- data/lib/merge_ticketing_client/models/item_type_enum.rb +49 -0
- data/lib/merge_ticketing_client/models/meta_response.rb +12 -1
- data/lib/merge_ticketing_client/models/multipart_form_field_request.rb +1 -1
- data/lib/merge_ticketing_client/models/patched_ticket_request.rb +18 -18
- data/lib/merge_ticketing_client/models/project.rb +27 -17
- data/lib/merge_ticketing_client/models/remote_data.rb +6 -9
- data/lib/merge_ticketing_client/models/remote_field.rb +18 -15
- data/lib/merge_ticketing_client/models/remote_field_class.rb +22 -39
- data/lib/merge_ticketing_client/models/remote_field_request.rb +234 -0
- data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +2 -1
- data/lib/merge_ticketing_client/models/tag.rb +27 -17
- data/lib/merge_ticketing_client/models/team.rb +27 -17
- data/lib/merge_ticketing_client/models/ticket.rb +25 -26
- data/lib/merge_ticketing_client/models/ticket_request.rb +18 -18
- data/lib/merge_ticketing_client/models/user.rb +27 -17
- data/lib/merge_ticketing_client/version.rb +1 -1
- data/lib/merge_ticketing_client.rb +9 -1
- data/spec/api/accounts_api_spec.rb +2 -2
- data/spec/api/async_passthrough_api_spec.rb +59 -0
- data/spec/api/attachments_api_spec.rb +15 -2
- data/spec/api/collections_api_spec.rb +20 -3
- data/spec/api/comments_api_spec.rb +3 -2
- data/spec/api/contacts_api_spec.rb +2 -2
- data/spec/api/delete_account_api_spec.rb +2 -2
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/issues_api_spec.rb +3 -3
- data/spec/api/linked_accounts_api_spec.rb +1 -1
- data/spec/api/projects_api_spec.rb +2 -2
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +2 -2
- data/spec/api/teams_api_spec.rb +2 -2
- data/spec/api/tickets_api_spec.rb +21 -4
- data/spec/api/users_api_spec.rb +2 -2
- data/spec/models/access_level_enum_spec.rb +28 -0
- data/spec/models/account_integration_spec.rb +12 -0
- data/spec/models/account_spec.rb +8 -2
- data/spec/models/async_passthrough_reciept_spec.rb +34 -0
- data/spec/models/attachment_request_spec.rb +0 -12
- data/spec/models/attachment_spec.rb +8 -2
- data/spec/models/collection_spec.rb +14 -2
- data/spec/models/comment_request_spec.rb +0 -12
- data/spec/models/comment_spec.rb +8 -2
- data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
- data/spec/models/contact_spec.rb +8 -2
- data/spec/models/enabled_actions_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/field_format_enum_spec.rb +28 -0
- data/spec/models/field_type_enum_spec.rb +28 -0
- data/spec/models/item_format_enum_spec.rb +28 -0
- data/spec/models/item_schema_spec.rb +46 -0
- data/spec/models/item_type_enum_spec.rb +28 -0
- data/spec/models/meta_response_spec.rb +6 -0
- data/spec/models/paginated_remote_field_class_list_spec.rb +46 -0
- data/spec/models/patched_ticket_request_spec.rb +6 -18
- data/spec/models/project_spec.rb +8 -2
- data/spec/models/remote_field_class_spec.rb +88 -0
- data/spec/models/remote_field_request_spec.rb +40 -0
- data/spec/models/remote_field_spec.rb +40 -0
- data/spec/models/tag_spec.rb +8 -2
- data/spec/models/team_spec.rb +8 -2
- data/spec/models/ticket_request_spec.rb +6 -24
- data/spec/models/ticket_spec.rb +16 -10
- data/spec/models/user_spec.rb +8 -2
- metadata +139 -92
@@ -95,6 +95,74 @@ module MergeTicketingClient
|
|
95
95
|
return data, status_code, headers
|
96
96
|
end
|
97
97
|
|
98
|
+
# Returns an `Attachment` object with the given `id`.
|
99
|
+
# @param x_account_token [String] Token identifying the end user.
|
100
|
+
# @param id [String]
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [File]
|
103
|
+
def attachments_download_retrieve(x_account_token, id, opts = {})
|
104
|
+
data, _status_code, _headers = attachments_download_retrieve_with_http_info(x_account_token, id, opts)
|
105
|
+
data
|
106
|
+
end
|
107
|
+
|
108
|
+
# Returns an `Attachment` object with the given `id`.
|
109
|
+
# @param x_account_token [String] Token identifying the end user.
|
110
|
+
# @param id [String]
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
113
|
+
def attachments_download_retrieve_with_http_info(x_account_token, id, opts = {})
|
114
|
+
if @api_client.config.debugging
|
115
|
+
@api_client.config.logger.debug 'Calling API: AttachmentsApi.attachments_download_retrieve ...'
|
116
|
+
end
|
117
|
+
# verify the required parameter 'x_account_token' is set
|
118
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
119
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AttachmentsApi.attachments_download_retrieve"
|
120
|
+
end
|
121
|
+
# verify the required parameter 'id' is set
|
122
|
+
if @api_client.config.client_side_validation && id.nil?
|
123
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AttachmentsApi.attachments_download_retrieve"
|
124
|
+
end
|
125
|
+
# resource path
|
126
|
+
local_var_path = '/attachments/{id}/download'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
127
|
+
|
128
|
+
# query parameters
|
129
|
+
query_params = opts[:query_params] || {}
|
130
|
+
|
131
|
+
# header parameters
|
132
|
+
header_params = opts[:header_params] || {}
|
133
|
+
# HTTP header 'Accept' (if needed)
|
134
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
135
|
+
header_params[:'X-Account-Token'] = x_account_token
|
136
|
+
|
137
|
+
# form parameters
|
138
|
+
form_params = opts[:form_params] || {}
|
139
|
+
|
140
|
+
# http body (model)
|
141
|
+
post_body = opts[:debug_body]
|
142
|
+
|
143
|
+
# return_type
|
144
|
+
return_type = opts[:debug_return_type] || 'File'
|
145
|
+
|
146
|
+
# auth_names
|
147
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
148
|
+
|
149
|
+
new_options = opts.merge(
|
150
|
+
:operation => :"AttachmentsApi.attachments_download_retrieve",
|
151
|
+
:header_params => header_params,
|
152
|
+
:query_params => query_params,
|
153
|
+
:form_params => form_params,
|
154
|
+
:body => post_body,
|
155
|
+
:auth_names => auth_names,
|
156
|
+
:return_type => return_type
|
157
|
+
)
|
158
|
+
|
159
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
160
|
+
if @api_client.config.debugging
|
161
|
+
@api_client.config.logger.debug "API called: AttachmentsApi#attachments_download_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
162
|
+
end
|
163
|
+
return data, status_code, headers
|
164
|
+
end
|
165
|
+
|
98
166
|
# Returns a list of `Attachment` objects.
|
99
167
|
# @param x_account_token [String] Token identifying the end user.
|
100
168
|
# @param [Hash] opts the optional parameters
|
@@ -104,9 +172,10 @@ module MergeTicketingClient
|
|
104
172
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
105
173
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
106
174
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
107
|
-
# @option opts [Time] :modified_after If provided,
|
108
|
-
# @option opts [Time] :modified_before If provided,
|
175
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
176
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
109
177
|
# @option opts [Integer] :page_size Number of results to return per page.
|
178
|
+
# @option opts [Time] :remote_created_after If provided, will only return attachments created in the third party platform after this datetime.
|
110
179
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
111
180
|
# @option opts [String] :ticket_id If provided, will only return comments for this ticket.
|
112
181
|
# @return [PaginatedAttachmentList]
|
@@ -124,9 +193,10 @@ module MergeTicketingClient
|
|
124
193
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
125
194
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
126
195
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
127
|
-
# @option opts [Time] :modified_after If provided,
|
128
|
-
# @option opts [Time] :modified_before If provided,
|
196
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
197
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
129
198
|
# @option opts [Integer] :page_size Number of results to return per page.
|
199
|
+
# @option opts [Time] :remote_created_after If provided, will only return attachments created in the third party platform after this datetime.
|
130
200
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
131
201
|
# @option opts [String] :ticket_id If provided, will only return comments for this ticket.
|
132
202
|
# @return [Array<(PaginatedAttachmentList, Integer, Hash)>] PaginatedAttachmentList data, response status code and response headers
|
@@ -156,6 +226,7 @@ module MergeTicketingClient
|
|
156
226
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
157
227
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
158
228
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
229
|
+
query_params[:'remote_created_after'] = opts[:'remote_created_after'] if !opts[:'remote_created_after'].nil?
|
159
230
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
160
231
|
query_params[:'ticket_id'] = opts[:'ticket_id'] if !opts[:'ticket_id'].nil?
|
161
232
|
|
@@ -22,15 +22,15 @@ module MergeTicketingClient
|
|
22
22
|
# Returns a list of `Collection` objects.
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [String] :collection_type If provided, will only return collections of the given type.
|
25
|
+
# @option opts [String] :collection_type If provided, will only return collections of the given type. * `LIST` - LIST * `PROJECT` - PROJECT
|
26
26
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
27
27
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
28
28
|
# @option opts [String] :cursor The pagination cursor value.
|
29
29
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
30
30
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
31
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
32
|
-
# @option opts [Time] :modified_after If provided,
|
33
|
-
# @option opts [Time] :modified_before If provided,
|
32
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
33
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
34
34
|
# @option opts [Integer] :page_size Number of results to return per page.
|
35
35
|
# @option opts [String] :parent_collection_id If provided, will only return collections whose parent collection matches the given id.
|
36
36
|
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
@@ -45,15 +45,15 @@ module MergeTicketingClient
|
|
45
45
|
# Returns a list of `Collection` objects.
|
46
46
|
# @param x_account_token [String] Token identifying the end user.
|
47
47
|
# @param [Hash] opts the optional parameters
|
48
|
-
# @option opts [String] :collection_type If provided, will only return collections of the given type.
|
48
|
+
# @option opts [String] :collection_type If provided, will only return collections of the given type. * `LIST` - LIST * `PROJECT` - PROJECT
|
49
49
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
50
50
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
51
51
|
# @option opts [String] :cursor The pagination cursor value.
|
52
52
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
53
53
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
54
54
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
55
|
-
# @option opts [Time] :modified_after If provided,
|
56
|
-
# @option opts [Time] :modified_before If provided,
|
55
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
56
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
57
57
|
# @option opts [Integer] :page_size Number of results to return per page.
|
58
58
|
# @option opts [String] :parent_collection_id If provided, will only return collections whose parent collection matches the given id.
|
59
59
|
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
@@ -230,5 +230,92 @@ module MergeTicketingClient
|
|
230
230
|
end
|
231
231
|
return data, status_code, headers
|
232
232
|
end
|
233
|
+
|
234
|
+
# Returns a list of `User` objects.
|
235
|
+
# @param x_account_token [String] Token identifying the end user.
|
236
|
+
# @param parent_id [String]
|
237
|
+
# @param [Hash] opts the optional parameters
|
238
|
+
# @option opts [String] :cursor The pagination cursor value.
|
239
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
240
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
241
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
242
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
243
|
+
# @return [PaginatedUserList]
|
244
|
+
def collections_users_list(x_account_token, parent_id, opts = {})
|
245
|
+
data, _status_code, _headers = collections_users_list_with_http_info(x_account_token, parent_id, opts)
|
246
|
+
data
|
247
|
+
end
|
248
|
+
|
249
|
+
# Returns a list of `User` objects.
|
250
|
+
# @param x_account_token [String] Token identifying the end user.
|
251
|
+
# @param parent_id [String]
|
252
|
+
# @param [Hash] opts the optional parameters
|
253
|
+
# @option opts [String] :cursor The pagination cursor value.
|
254
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
255
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
256
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
257
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
258
|
+
# @return [Array<(PaginatedUserList, Integer, Hash)>] PaginatedUserList data, response status code and response headers
|
259
|
+
def collections_users_list_with_http_info(x_account_token, parent_id, opts = {})
|
260
|
+
if @api_client.config.debugging
|
261
|
+
@api_client.config.logger.debug 'Calling API: CollectionsApi.collections_users_list ...'
|
262
|
+
end
|
263
|
+
# verify the required parameter 'x_account_token' is set
|
264
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
265
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CollectionsApi.collections_users_list"
|
266
|
+
end
|
267
|
+
# verify the required parameter 'parent_id' is set
|
268
|
+
if @api_client.config.client_side_validation && parent_id.nil?
|
269
|
+
fail ArgumentError, "Missing the required parameter 'parent_id' when calling CollectionsApi.collections_users_list"
|
270
|
+
end
|
271
|
+
allowable_values = ["roles", "teams", "teams,roles"]
|
272
|
+
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
273
|
+
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
274
|
+
end
|
275
|
+
# resource path
|
276
|
+
local_var_path = '/collections/{parent_id}/users'.sub('{' + 'parent_id' + '}', CGI.escape(parent_id.to_s))
|
277
|
+
|
278
|
+
# query parameters
|
279
|
+
query_params = opts[:query_params] || {}
|
280
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
281
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
282
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
283
|
+
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
284
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
285
|
+
|
286
|
+
# header parameters
|
287
|
+
header_params = opts[:header_params] || {}
|
288
|
+
# HTTP header 'Accept' (if needed)
|
289
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
290
|
+
header_params[:'X-Account-Token'] = x_account_token
|
291
|
+
|
292
|
+
# form parameters
|
293
|
+
form_params = opts[:form_params] || {}
|
294
|
+
|
295
|
+
# http body (model)
|
296
|
+
post_body = opts[:debug_body]
|
297
|
+
|
298
|
+
# return_type
|
299
|
+
return_type = opts[:debug_return_type] || 'PaginatedUserList'
|
300
|
+
|
301
|
+
# auth_names
|
302
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
303
|
+
|
304
|
+
new_options = opts.merge(
|
305
|
+
:operation => :"CollectionsApi.collections_users_list",
|
306
|
+
:header_params => header_params,
|
307
|
+
:query_params => query_params,
|
308
|
+
:form_params => form_params,
|
309
|
+
:body => post_body,
|
310
|
+
:auth_names => auth_names,
|
311
|
+
:return_type => return_type
|
312
|
+
)
|
313
|
+
|
314
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
315
|
+
if @api_client.config.debugging
|
316
|
+
@api_client.config.logger.debug "API called: CollectionsApi#collections_users_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
317
|
+
end
|
318
|
+
return data, status_code, headers
|
319
|
+
end
|
233
320
|
end
|
234
321
|
end
|
@@ -104,9 +104,10 @@ module MergeTicketingClient
|
|
104
104
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
105
105
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
106
106
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
107
|
-
# @option opts [Time] :modified_after If provided,
|
108
|
-
# @option opts [Time] :modified_before If provided,
|
107
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
108
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
109
109
|
# @option opts [Integer] :page_size Number of results to return per page.
|
110
|
+
# @option opts [Time] :remote_created_after If provided, will only return Comments created in the third party platform after this datetime.
|
110
111
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
111
112
|
# @option opts [String] :ticket_id If provided, will only return comments for this ticket.
|
112
113
|
# @return [PaginatedCommentList]
|
@@ -124,9 +125,10 @@ module MergeTicketingClient
|
|
124
125
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
125
126
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
126
127
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
127
|
-
# @option opts [Time] :modified_after If provided,
|
128
|
-
# @option opts [Time] :modified_before If provided,
|
128
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
129
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
129
130
|
# @option opts [Integer] :page_size Number of results to return per page.
|
131
|
+
# @option opts [Time] :remote_created_after If provided, will only return Comments created in the third party platform after this datetime.
|
130
132
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
131
133
|
# @option opts [String] :ticket_id If provided, will only return comments for this ticket.
|
132
134
|
# @return [Array<(PaginatedCommentList, Integer, Hash)>] PaginatedCommentList data, response status code and response headers
|
@@ -156,6 +158,7 @@ module MergeTicketingClient
|
|
156
158
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
157
159
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
158
160
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
161
|
+
query_params[:'remote_created_after'] = opts[:'remote_created_after'] if !opts[:'remote_created_after'].nil?
|
159
162
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
160
163
|
query_params[:'ticket_id'] = opts[:'ticket_id'] if !opts[:'ticket_id'].nil?
|
161
164
|
|
@@ -28,8 +28,8 @@ module MergeTicketingClient
|
|
28
28
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
29
29
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
30
30
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
31
|
-
# @option opts [Time] :modified_after If provided,
|
32
|
-
# @option opts [Time] :modified_before If provided,
|
31
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
32
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
33
33
|
# @option opts [Integer] :page_size Number of results to return per page.
|
34
34
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
35
35
|
# @return [PaginatedContactList]
|
@@ -47,8 +47,8 @@ module MergeTicketingClient
|
|
47
47
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
48
48
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
49
49
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
50
|
-
# @option opts [Time] :modified_after If provided,
|
51
|
-
# @option opts [Time] :modified_before If provided,
|
50
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
51
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
52
52
|
# @option opts [Integer] :page_size Number of results to return per page.
|
53
53
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
54
54
|
# @return [Array<(PaginatedContactList, Integer, Hash)>] PaginatedContactList data, response status code and response headers
|
@@ -23,8 +23,8 @@ module MergeTicketingClient
|
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [nil]
|
26
|
-
def
|
27
|
-
|
26
|
+
def delete_account_delete(x_account_token, opts = {})
|
27
|
+
delete_account_delete_with_http_info(x_account_token, opts)
|
28
28
|
nil
|
29
29
|
end
|
30
30
|
|
@@ -32,13 +32,13 @@ module MergeTicketingClient
|
|
32
32
|
# @param x_account_token [String] Token identifying the end user.
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
35
|
-
def
|
35
|
+
def delete_account_delete_with_http_info(x_account_token, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: DeleteAccountApi.
|
37
|
+
@api_client.config.logger.debug 'Calling API: DeleteAccountApi.delete_account_delete ...'
|
38
38
|
end
|
39
39
|
# verify the required parameter 'x_account_token' is set
|
40
40
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
41
|
-
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling DeleteAccountApi.
|
41
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling DeleteAccountApi.delete_account_delete"
|
42
42
|
end
|
43
43
|
# resource path
|
44
44
|
local_var_path = '/delete-account'
|
@@ -63,7 +63,7 @@ module MergeTicketingClient
|
|
63
63
|
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
64
64
|
|
65
65
|
new_options = opts.merge(
|
66
|
-
:operation => :"DeleteAccountApi.
|
66
|
+
:operation => :"DeleteAccountApi.delete_account_delete",
|
67
67
|
:header_params => header_params,
|
68
68
|
:query_params => query_params,
|
69
69
|
:form_params => form_params,
|
@@ -74,7 +74,7 @@ module MergeTicketingClient
|
|
74
74
|
|
75
75
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
76
76
|
if @api_client.config.debugging
|
77
|
-
@api_client.config.logger.debug "API called: DeleteAccountApi#
|
77
|
+
@api_client.config.logger.debug "API called: DeleteAccountApi#delete_account_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
78
|
end
|
79
79
|
return data, status_code, headers
|
80
80
|
end
|
@@ -19,7 +19,7 @@ module MergeTicketingClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Force re-sync of all models. This is
|
22
|
+
# Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API for monthly, quarterly, and highest sync frequency customers on the Core, Professional, or Enterprise plans. Doing so will consume a sync credit for the relevant linked account.
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [Array<SyncStatus>]
|
@@ -28,7 +28,7 @@ module MergeTicketingClient
|
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
31
|
-
# Force re-sync of all models. This is
|
31
|
+
# Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API for monthly, quarterly, and highest sync frequency customers on the Core, Professional, or Enterprise plans. Doing so will consume a sync credit for the relevant linked account.
|
32
32
|
# @param x_account_token [String] Token identifying the end user.
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(Array<SyncStatus>, Integer, Hash)>] Array<SyncStatus> data, response status code and response headers
|
@@ -29,11 +29,11 @@ module MergeTicketingClient
|
|
29
29
|
# @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
30
30
|
# @option opts [String] :include_muted If True, will include muted issues
|
31
31
|
# @option opts [String] :integration_name
|
32
|
-
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose
|
33
|
-
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose
|
32
|
+
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose last incident time was after this datetime.
|
33
|
+
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose last incident time was before this datetime.
|
34
34
|
# @option opts [Integer] :page_size Number of results to return per page.
|
35
35
|
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
36
|
-
# @option opts [String] :status
|
36
|
+
# @option opts [String] :status Status of the issue. Options: ('ONGOING', 'RESOLVED') * `ONGOING` - ONGOING * `RESOLVED` - RESOLVED
|
37
37
|
# @return [PaginatedIssueList]
|
38
38
|
def issues_list(opts = {})
|
39
39
|
data, _status_code, _headers = issues_list_with_http_info(opts)
|
@@ -50,11 +50,11 @@ module MergeTicketingClient
|
|
50
50
|
# @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
51
51
|
# @option opts [String] :include_muted If True, will include muted issues
|
52
52
|
# @option opts [String] :integration_name
|
53
|
-
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose
|
54
|
-
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose
|
53
|
+
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose last incident time was after this datetime.
|
54
|
+
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose last incident time was before this datetime.
|
55
55
|
# @option opts [Integer] :page_size Number of results to return per page.
|
56
56
|
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
57
|
-
# @option opts [String] :status
|
57
|
+
# @option opts [String] :status Status of the issue. Options: ('ONGOING', 'RESOLVED') * `ONGOING` - ONGOING * `RESOLVED` - RESOLVED
|
58
58
|
# @return [Array<(PaginatedIssueList, Integer, Hash)>] PaginatedIssueList data, response status code and response headers
|
59
59
|
def issues_list_with_http_info(opts = {})
|
60
60
|
if @api_client.config.debugging
|
@@ -21,7 +21,7 @@ module MergeTicketingClient
|
|
21
21
|
end
|
22
22
|
# List linked accounts for your organization.
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
|
-
# @option opts [String] :category
|
24
|
+
# @option opts [String] :category Options: ('hris', 'ats', 'accounting', 'ticketing', 'crm', 'mktg', 'filestorage') * `hris` - hris * `ats` - ats * `accounting` - accounting * `ticketing` - ticketing * `crm` - crm * `mktg` - mktg * `filestorage` - filestorage
|
25
25
|
# @option opts [String] :cursor The pagination cursor value.
|
26
26
|
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
27
27
|
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
@@ -42,7 +42,7 @@ module MergeTicketingClient
|
|
42
42
|
|
43
43
|
# List linked accounts for your organization.
|
44
44
|
# @param [Hash] opts the optional parameters
|
45
|
-
# @option opts [String] :category
|
45
|
+
# @option opts [String] :category Options: ('hris', 'ats', 'accounting', 'ticketing', 'crm', 'mktg', 'filestorage') * `hris` - hris * `ats` - ats * `accounting` - accounting * `ticketing` - ticketing * `crm` - crm * `mktg` - mktg * `filestorage` - filestorage
|
46
46
|
# @option opts [String] :cursor The pagination cursor value.
|
47
47
|
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
48
48
|
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
@@ -60,7 +60,7 @@ module MergeTicketingClient
|
|
60
60
|
if @api_client.config.debugging
|
61
61
|
@api_client.config.logger.debug 'Calling API: LinkedAccountsApi.linked_accounts_list ...'
|
62
62
|
end
|
63
|
-
allowable_values = ["accounting", "ats", "crm", "hris", "mktg", "ticketing"]
|
63
|
+
allowable_values = ["accounting", "ats", "crm", "filestorage", "hris", "mktg", "ticketing"]
|
64
64
|
if @api_client.config.client_side_validation && opts[:'category'] && !allowable_values.include?(opts[:'category'])
|
65
65
|
fail ArgumentError, "invalid value for \"category\", must be one of #{allowable_values}"
|
66
66
|
end
|
@@ -27,8 +27,8 @@ module MergeTicketingClient
|
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
28
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
29
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
30
|
-
# @option opts [Time] :modified_after If provided,
|
31
|
-
# @option opts [Time] :modified_before If provided,
|
30
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
31
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
32
32
|
# @option opts [Integer] :page_size Number of results to return per page.
|
33
33
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
34
34
|
# @return [PaginatedProjectList]
|
@@ -45,8 +45,8 @@ module MergeTicketingClient
|
|
45
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
46
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
47
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
48
|
-
# @option opts [Time] :modified_after If provided,
|
49
|
-
# @option opts [Time] :modified_before If provided,
|
48
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
49
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
50
50
|
# @option opts [Integer] :page_size Number of results to return per page.
|
51
51
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
52
52
|
# @return [Array<(PaginatedProjectList, Integer, Hash)>] PaginatedProjectList data, response status code and response headers
|
@@ -216,7 +216,7 @@ module MergeTicketingClient
|
|
216
216
|
if @api_client.config.client_side_validation && parent_id.nil?
|
217
217
|
fail ArgumentError, "Missing the required parameter 'parent_id' when calling ProjectsApi.projects_users_list"
|
218
218
|
end
|
219
|
-
allowable_values = ["teams"]
|
219
|
+
allowable_values = ["roles", "teams", "teams,roles"]
|
220
220
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
221
221
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
222
222
|
end
|
@@ -19,7 +19,7 @@ module MergeTicketingClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
|
22
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [String] :cursor The pagination cursor value.
|
@@ -30,7 +30,7 @@ module MergeTicketingClient
|
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
|
-
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
|
33
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`
|
34
34
|
# @param x_account_token [String] Token identifying the end user.
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @option opts [String] :cursor The pagination cursor value.
|
@@ -27,8 +27,8 @@ module MergeTicketingClient
|
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
28
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
29
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
30
|
-
# @option opts [Time] :modified_after If provided,
|
31
|
-
# @option opts [Time] :modified_before If provided,
|
30
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
31
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
32
32
|
# @option opts [Integer] :page_size Number of results to return per page.
|
33
33
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
34
34
|
# @return [PaginatedTagList]
|
@@ -45,8 +45,8 @@ module MergeTicketingClient
|
|
45
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
46
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
47
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
48
|
-
# @option opts [Time] :modified_after If provided,
|
49
|
-
# @option opts [Time] :modified_before If provided,
|
48
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
49
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
50
50
|
# @option opts [Integer] :page_size Number of results to return per page.
|
51
51
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
52
52
|
# @return [Array<(PaginatedTagList, Integer, Hash)>] PaginatedTagList data, response status code and response headers
|
@@ -27,8 +27,8 @@ module MergeTicketingClient
|
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
28
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
29
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
30
|
-
# @option opts [Time] :modified_after If provided,
|
31
|
-
# @option opts [Time] :modified_before If provided,
|
30
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
31
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
32
32
|
# @option opts [Integer] :page_size Number of results to return per page.
|
33
33
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
34
34
|
# @return [PaginatedTeamList]
|
@@ -45,8 +45,8 @@ module MergeTicketingClient
|
|
45
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
46
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
47
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
48
|
-
# @option opts [Time] :modified_after If provided,
|
49
|
-
# @option opts [Time] :modified_before If provided,
|
48
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
49
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
50
50
|
# @option opts [Integer] :page_size Number of results to return per page.
|
51
51
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
52
52
|
# @return [Array<(PaginatedTeamList, Integer, Hash)>] PaginatedTeamList data, response status code and response headers
|