merge_ticketing_client 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -7
  3. data/docs/Account.md +3 -1
  4. data/docs/AccountIntegration.md +1 -1
  5. data/docs/Attachment.md +5 -3
  6. data/docs/AttachmentRequest.md +7 -3
  7. data/docs/Collection.md +34 -0
  8. data/docs/CollectionTypeEnum.md +15 -0
  9. data/docs/CollectionsApi.md +193 -0
  10. data/docs/Comment.md +6 -4
  11. data/docs/CommentRequest.md +8 -4
  12. data/docs/ConditionSchema.md +30 -0
  13. data/docs/ConditionTypeEnum.md +15 -0
  14. data/docs/Contact.md +3 -1
  15. data/docs/DataPassthroughRequest.md +1 -1
  16. data/docs/EndUserDetailsRequest.md +2 -2
  17. data/docs/Issue.md +9 -7
  18. data/docs/LinkToken.md +1 -1
  19. data/docs/LinkedAccountCondition.md +28 -0
  20. data/docs/LinkedAccountConditionRequest.md +22 -0
  21. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  22. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  23. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  24. data/docs/OperatorSchema.md +20 -0
  25. data/docs/PaginatedCollectionList.md +22 -0
  26. data/docs/PaginatedConditionSchemaList.md +22 -0
  27. data/docs/PatchedTicketEndpointRequest.md +18 -0
  28. data/docs/PatchedTicketRequest.md +56 -0
  29. data/docs/PriorityEnum.md +15 -0
  30. data/docs/Project.md +3 -1
  31. data/docs/ProjectsApi.md +10 -8
  32. data/docs/RemoteResponse.md +3 -1
  33. data/docs/ResponseTypeEnum.md +15 -0
  34. data/docs/SelectiveSyncApi.md +233 -0
  35. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  36. data/docs/SyncStatus.md +7 -5
  37. data/docs/Tag.md +3 -1
  38. data/docs/Team.md +3 -1
  39. data/docs/Ticket.md +18 -6
  40. data/docs/TicketRequest.md +20 -6
  41. data/docs/TicketsApi.md +207 -13
  42. data/docs/User.md +5 -1
  43. data/docs/UsersApi.md +2 -0
  44. data/lib/merge_ticketing_client/api/collections_api.rb +234 -0
  45. data/lib/merge_ticketing_client/api/linked_accounts_api.rb +1 -1
  46. data/lib/merge_ticketing_client/api/projects_api.rb +14 -11
  47. data/lib/merge_ticketing_client/api/selective_sync_api.rb +225 -0
  48. data/lib/merge_ticketing_client/api/tickets_api.rb +242 -19
  49. data/lib/merge_ticketing_client/api/users_api.rb +3 -0
  50. data/lib/merge_ticketing_client/models/account.rb +16 -4
  51. data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +1 -1
  52. data/lib/merge_ticketing_client/models/account_integration.rb +1 -1
  53. data/lib/merge_ticketing_client/models/attachment.rb +18 -4
  54. data/lib/merge_ticketing_client/models/attachment_request.rb +31 -5
  55. data/lib/merge_ticketing_client/models/categories_enum.rb +1 -1
  56. data/lib/merge_ticketing_client/models/category_enum.rb +1 -1
  57. data/lib/merge_ticketing_client/models/collection.rb +308 -0
  58. data/lib/merge_ticketing_client/models/collection_type_enum.rb +45 -0
  59. data/lib/merge_ticketing_client/models/comment.rb +19 -4
  60. data/lib/merge_ticketing_client/models/comment_request.rb +32 -5
  61. data/lib/merge_ticketing_client/models/condition_schema.rb +297 -0
  62. data/lib/merge_ticketing_client/models/condition_type_enum.rb +50 -0
  63. data/lib/merge_ticketing_client/models/contact.rb +16 -4
  64. data/lib/merge_ticketing_client/models/data_passthrough_request.rb +2 -1
  65. data/lib/merge_ticketing_client/models/encoding_enum.rb +1 -1
  66. data/lib/merge_ticketing_client/models/end_user_details_request.rb +2 -2
  67. data/lib/merge_ticketing_client/models/issue.rb +16 -5
  68. data/lib/merge_ticketing_client/models/link_token.rb +0 -5
  69. data/lib/merge_ticketing_client/models/linked_account_condition.rb +282 -0
  70. data/lib/merge_ticketing_client/models/linked_account_condition_request.rb +269 -0
  71. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration.rb +221 -0
  72. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  73. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  74. data/lib/merge_ticketing_client/models/meta_response.rb +1 -1
  75. data/lib/merge_ticketing_client/models/method_enum.rb +1 -1
  76. data/lib/merge_ticketing_client/models/operator_schema.rb +229 -0
  77. data/lib/merge_ticketing_client/models/paginated_collection_list.rb +240 -0
  78. data/lib/merge_ticketing_client/models/paginated_condition_schema_list.rb +240 -0
  79. data/lib/merge_ticketing_client/models/patched_ticket_endpoint_request.rb +223 -0
  80. data/lib/merge_ticketing_client/models/patched_ticket_request.rb +447 -0
  81. data/lib/merge_ticketing_client/models/priority_enum.rb +47 -0
  82. data/lib/merge_ticketing_client/models/project.rb +16 -4
  83. data/lib/merge_ticketing_client/models/remote_response.rb +14 -11
  84. data/lib/merge_ticketing_client/models/request_format_enum.rb +1 -1
  85. data/lib/merge_ticketing_client/models/response_type_enum.rb +45 -0
  86. data/lib/merge_ticketing_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  87. data/lib/merge_ticketing_client/models/sync_status.rb +13 -14
  88. data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
  89. data/lib/merge_ticketing_client/models/tag.rb +16 -4
  90. data/lib/merge_ticketing_client/models/team.rb +16 -4
  91. data/lib/merge_ticketing_client/models/ticket.rb +91 -5
  92. data/lib/merge_ticketing_client/models/ticket_request.rb +104 -6
  93. data/lib/merge_ticketing_client/models/ticket_status_enum.rb +4 -2
  94. data/lib/merge_ticketing_client/models/user.rb +27 -4
  95. data/lib/merge_ticketing_client/version.rb +1 -1
  96. data/lib/merge_ticketing_client.rb +19 -0
  97. data/spec/api/collections_api_spec.rb +76 -0
  98. data/spec/api/projects_api_spec.rb +3 -2
  99. data/spec/api/selective_sync_api_spec.rb +72 -0
  100. data/spec/api/tickets_api_spec.rb +50 -4
  101. data/spec/api/users_api_spec.rb +1 -0
  102. data/spec/models/account_spec.rb +6 -0
  103. data/spec/models/attachment_request_spec.rb +12 -0
  104. data/spec/models/attachment_spec.rb +6 -0
  105. data/spec/models/collection_spec.rb +82 -0
  106. data/spec/models/collection_type_enum_spec.rb +28 -0
  107. data/spec/models/comment_request_spec.rb +12 -0
  108. data/spec/models/comment_spec.rb +6 -0
  109. data/spec/models/condition_schema_spec.rb +70 -0
  110. data/spec/models/condition_type_enum_spec.rb +28 -0
  111. data/spec/models/contact_spec.rb +6 -0
  112. data/spec/models/issue_spec.rb +6 -0
  113. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  114. data/spec/models/linked_account_condition_spec.rb +64 -0
  115. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  116. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  117. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  118. data/spec/models/operator_schema_spec.rb +40 -0
  119. data/spec/models/paginated_collection_list_spec.rb +46 -0
  120. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  121. data/spec/models/patched_ticket_endpoint_request_spec.rb +34 -0
  122. data/spec/models/patched_ticket_request_spec.rb +148 -0
  123. data/spec/models/priority_enum_spec.rb +28 -0
  124. data/spec/models/project_spec.rb +6 -0
  125. data/spec/models/remote_response_spec.rb +6 -0
  126. data/spec/models/response_type_enum_spec.rb +28 -0
  127. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  128. data/spec/models/sync_status_spec.rb +6 -0
  129. data/spec/models/tag_spec.rb +6 -0
  130. data/spec/models/team_spec.rb +6 -0
  131. data/spec/models/ticket_request_spec.rb +42 -0
  132. data/spec/models/ticket_spec.rb +36 -0
  133. data/spec/models/user_spec.rb +12 -0
  134. metadata +144 -68
@@ -0,0 +1,15 @@
1
+ # MergeTicketingClient::SelectiveSyncConfigurationsUsageEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'merge_ticketing_client'
12
+
13
+ instance = MergeTicketingClient::SelectiveSyncConfigurationsUsageEnum.new()
14
+ ```
15
+
data/docs/SyncStatus.md CHANGED
@@ -6,10 +6,11 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **model_name** | **String** | | |
8
8
  | **model_id** | **String** | | |
9
- | **last_sync_start** | **Time** | | |
10
- | **next_sync_start** | **Time** | | |
9
+ | **last_sync_start** | **Time** | | [optional] |
10
+ | **next_sync_start** | **Time** | | [optional] |
11
11
  | **status** | [**SyncStatusStatusEnum**](SyncStatusStatusEnum.md) | | |
12
12
  | **is_initial_sync** | **Boolean** | | |
13
+ | **selective_sync_configurations_usage** | [**SelectiveSyncConfigurationsUsageEnum**](SelectiveSyncConfigurationsUsageEnum.md) | | [optional] |
13
14
 
14
15
  ## Example
15
16
 
@@ -17,12 +18,13 @@
17
18
  require 'merge_ticketing_client'
18
19
 
19
20
  instance = MergeTicketingClient::SyncStatus.new(
20
- model_name: Candidate,
21
- model_id: ats.Candidate,
21
+ model_name: Ticket,
22
+ model_id: ticketing.Ticket,
22
23
  last_sync_start: 2021-03-30T19:44:18.695973Z,
23
24
  next_sync_start: 2021-03-30T20:44:18.662942Z,
24
25
  status: SYNCING,
25
- is_initial_sync: true
26
+ is_initial_sync: true,
27
+ selective_sync_configurations_usage: IN_NEXT_SYNC
26
28
  )
27
29
  ```
28
30
 
data/docs/Tag.md CHANGED
@@ -8,6 +8,7 @@
8
8
  | **name** | **String** | The tag's name. | [optional] |
9
9
  | **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
10
10
  | **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional] |
11
+ | **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
11
12
 
12
13
  ## Example
13
14
 
@@ -18,7 +19,8 @@ instance = MergeTicketingClient::Tag.new(
18
19
  remote_id: 19202938,
19
20
  name: Ticketing API,
20
21
  remote_data: null,
21
- remote_was_deleted: null
22
+ remote_was_deleted: null,
23
+ field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}}
22
24
  )
23
25
  ```
24
26
 
data/docs/Team.md CHANGED
@@ -10,6 +10,7 @@
10
10
  | **description** | **String** | The team's description. | [optional] |
11
11
  | **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
12
12
  | **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional] |
13
+ | **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
13
14
 
14
15
  ## Example
15
16
 
@@ -22,7 +23,8 @@ instance = MergeTicketingClient::Team.new(
22
23
  name: Platform,
23
24
  description: Platform and Integrations Team,
24
25
  remote_data: null,
25
- remote_was_deleted: null
26
+ remote_was_deleted: null,
27
+ field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}}
26
28
  )
27
29
  ```
28
30
 
data/docs/Ticket.md CHANGED
@@ -8,20 +8,26 @@
8
8
  | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
9
9
  | **name** | **String** | The ticket's name. | [optional] |
10
10
  | **assignees** | **Array<String>** | | [optional] |
11
+ | **creator** | **String** | The user who created this ticket. | [optional] |
11
12
  | **due_date** | **Time** | The ticket's due date. | [optional] |
12
13
  | **status** | [**TicketStatusEnum**](TicketStatusEnum.md) | The current status of the ticket. | [optional] |
13
- | **description** | **String** | The ticket's description. | [optional] |
14
- | **project** | **String** | | [optional] |
14
+ | **description** | **String** | The tickets description. HTML version of description is mapped if supported by the third-party platform. | [optional] |
15
+ | **project** | **String** | The project the ticket belongs to. | [optional] |
16
+ | **collections** | **Array<String>** | | [optional] |
15
17
  | **ticket_type** | **String** | The ticket's type. | [optional] |
16
- | **account** | **String** | | [optional] |
17
- | **contact** | **String** | | [optional] |
18
- | **parent_ticket** | **String** | | [optional] |
18
+ | **account** | **String** | The account associated with the ticket. | [optional] |
19
+ | **contact** | **String** | The contact associated with the ticket. | [optional] |
20
+ | **parent_ticket** | **String** | The ticket's parent ticket. | [optional] |
19
21
  | **attachments** | **Array<String>** | | [optional] |
20
22
  | **tags** | **Array<String>** | | [optional] |
21
23
  | **remote_created_at** | **Time** | When the third party's ticket was created. | [optional] |
22
24
  | **remote_updated_at** | **Time** | When the third party's ticket was updated. | [optional] |
25
+ | **completed_at** | **Time** | When the ticket was completed. | [optional] |
23
26
  | **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
24
27
  | **remote_was_deleted** | **Boolean** | | [optional][readonly] |
28
+ | **ticket_url** | **String** | The 3rd party url of the Ticket. | [optional] |
29
+ | **priority** | [**PriorityEnum**](PriorityEnum.md) | The priority or urgency of the Ticket. | [optional] |
30
+ | **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
25
31
 
26
32
  ## Example
27
33
 
@@ -33,10 +39,12 @@ instance = MergeTicketingClient::Ticket.new(
33
39
  remote_id: 19202938,
34
40
  name: Please add more integrations,
35
41
  assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"],
42
+ creator: null,
36
43
  due_date: 2022-10-11T00:00Z,
37
44
  status: OPEN,
38
45
  description: Can you please add more integrations? It'll make syncing data much easier!,
39
46
  project: fb8c55b6-1cb8-4b4c-9fb6-17924231619d,
47
+ collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"],
40
48
  ticket_type: incident,
41
49
  account: 0958cbc6-6040-430a-848e-aafacbadf4ae,
42
50
  contact: 65c345ba-6870-4974-87ba-dd31509c367a,
@@ -45,8 +53,12 @@ instance = MergeTicketingClient::Ticket.new(
45
53
  tags: ["enterprise","other-tag"],
46
54
  remote_created_at: 2021-11-10T00:00Z,
47
55
  remote_updated_at: 2021-12-09T00:00Z,
56
+ completed_at: 2021-12-09T00:00Z,
48
57
  remote_data: null,
49
- remote_was_deleted: null
58
+ remote_was_deleted: null,
59
+ ticket_url: https://thirdpartysoftware.com/project/3/issue/1,
60
+ priority: HIGH,
61
+ field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}}
50
62
  )
51
63
  ```
52
64
 
@@ -7,18 +7,25 @@
7
7
  | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
8
8
  | **name** | **String** | The ticket's name. | [optional] |
9
9
  | **assignees** | **Array<String>** | | [optional] |
10
+ | **creator** | **String** | The user who created this ticket. | [optional] |
10
11
  | **due_date** | **Time** | The ticket's due date. | [optional] |
11
12
  | **status** | [**TicketStatusEnum**](TicketStatusEnum.md) | The current status of the ticket. | [optional] |
12
- | **description** | **String** | The ticket's description. | [optional] |
13
- | **project** | **String** | | [optional] |
13
+ | **description** | **String** | The tickets description. HTML version of description is mapped if supported by the third-party platform. | [optional] |
14
+ | **project** | **String** | The project the ticket belongs to. | [optional] |
15
+ | **collections** | **Array<String>** | | [optional] |
14
16
  | **ticket_type** | **String** | The ticket's type. | [optional] |
15
- | **account** | **String** | | [optional] |
16
- | **contact** | **String** | | [optional] |
17
- | **parent_ticket** | **String** | | [optional] |
17
+ | **account** | **String** | The account associated with the ticket. | [optional] |
18
+ | **contact** | **String** | The contact associated with the ticket. | [optional] |
19
+ | **parent_ticket** | **String** | The ticket's parent ticket. | [optional] |
18
20
  | **attachments** | **Array<String>** | | [optional] |
19
21
  | **tags** | **Array<String>** | | [optional] |
20
22
  | **remote_created_at** | **Time** | When the third party's ticket was created. | [optional] |
21
23
  | **remote_updated_at** | **Time** | When the third party's ticket was updated. | [optional] |
24
+ | **completed_at** | **Time** | When the ticket was completed. | [optional] |
25
+ | **ticket_url** | **String** | The 3rd party url of the Ticket. | [optional] |
26
+ | **priority** | [**PriorityEnum**](PriorityEnum.md) | The priority or urgency of the Ticket. | [optional] |
27
+ | **integration_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
28
+ | **linked_account_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
22
29
 
23
30
  ## Example
24
31
 
@@ -29,10 +36,12 @@ instance = MergeTicketingClient::TicketRequest.new(
29
36
  remote_id: 19202938,
30
37
  name: Please add more integrations,
31
38
  assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"],
39
+ creator: null,
32
40
  due_date: 2022-10-11T00:00Z,
33
41
  status: OPEN,
34
42
  description: Can you please add more integrations? It'll make syncing data much easier!,
35
43
  project: fb8c55b6-1cb8-4b4c-9fb6-17924231619d,
44
+ collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"],
36
45
  ticket_type: incident,
37
46
  account: 0958cbc6-6040-430a-848e-aafacbadf4ae,
38
47
  contact: 65c345ba-6870-4974-87ba-dd31509c367a,
@@ -40,7 +49,12 @@ instance = MergeTicketingClient::TicketRequest.new(
40
49
  attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5","92f972d0-2526-434b-9409-4c3b468e08f0"],
41
50
  tags: ["enterprise","other-tag"],
42
51
  remote_created_at: 2021-11-10T00:00Z,
43
- remote_updated_at: 2021-12-09T00:00Z
52
+ remote_updated_at: 2021-12-09T00:00Z,
53
+ completed_at: 2021-12-09T00:00Z,
54
+ ticket_url: https://thirdpartysoftware.com/project/3/issue/1,
55
+ priority: HIGH,
56
+ integration_params: {"unique_integration_field":"unique_integration_field_value"},
57
+ linked_account_params: {"unique_linked_account_field":"unique_linked_account_field_value"}
44
58
  )
45
59
  ```
46
60
 
data/docs/TicketsApi.md CHANGED
@@ -4,20 +4,22 @@ All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**tickets_collaborators_list**](TicketsApi.md#tickets_collaborators_list) | **GET** /tickets/{id}/collaborators | |
7
+ | [**tickets_collaborators_list**](TicketsApi.md#tickets_collaborators_list) | **GET** /tickets/{parent_id}/collaborators | |
8
8
  | [**tickets_create**](TicketsApi.md#tickets_create) | **POST** /tickets | |
9
9
  | [**tickets_list**](TicketsApi.md#tickets_list) | **GET** /tickets | |
10
+ | [**tickets_meta_patch_retrieve**](TicketsApi.md#tickets_meta_patch_retrieve) | **GET** /tickets/meta/patch/{id} | |
10
11
  | [**tickets_meta_post_retrieve**](TicketsApi.md#tickets_meta_post_retrieve) | **GET** /tickets/meta/post | |
12
+ | [**tickets_partial_update**](TicketsApi.md#tickets_partial_update) | **PATCH** /tickets/{id} | |
11
13
  | [**tickets_retrieve**](TicketsApi.md#tickets_retrieve) | **GET** /tickets/{id} | |
12
14
 
13
15
 
14
16
  ## tickets_collaborators_list
15
17
 
16
- > <PaginatedUserList> tickets_collaborators_list(x_account_token, id, opts)
18
+ > <PaginatedUserList> tickets_collaborators_list(x_account_token, parent_id, opts)
17
19
 
18
20
 
19
21
 
20
- Returns a `User` object with the given `id`.
22
+ Returns a list of `User` objects.
21
23
 
22
24
  ### Examples
23
25
 
@@ -34,17 +36,18 @@ end
34
36
 
35
37
  api_instance = MergeTicketingClient::TicketsApi.new
36
38
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
37
- id = TODO # String |
39
+ parent_id = TODO # String |
38
40
  opts = {
39
41
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
40
42
  expand: 'teams', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
+ include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
41
44
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
42
45
  page_size: 56 # Integer | Number of results to return per page.
43
46
  }
44
47
 
45
48
  begin
46
49
 
47
- result = api_instance.tickets_collaborators_list(x_account_token, id, opts)
50
+ result = api_instance.tickets_collaborators_list(x_account_token, parent_id, opts)
48
51
  p result
49
52
  rescue MergeTicketingClient::ApiError => e
50
53
  puts "Error when calling TicketsApi->tickets_collaborators_list: #{e}"
@@ -55,12 +58,12 @@ end
55
58
 
56
59
  This returns an Array which contains the response data, status code and headers.
57
60
 
58
- > <Array(<PaginatedUserList>, Integer, Hash)> tickets_collaborators_list_with_http_info(x_account_token, id, opts)
61
+ > <Array(<PaginatedUserList>, Integer, Hash)> tickets_collaborators_list_with_http_info(x_account_token, parent_id, opts)
59
62
 
60
63
  ```ruby
61
64
  begin
62
65
 
63
- data, status_code, headers = api_instance.tickets_collaborators_list_with_http_info(x_account_token, id, opts)
66
+ data, status_code, headers = api_instance.tickets_collaborators_list_with_http_info(x_account_token, parent_id, opts)
64
67
  p status_code # => 2xx
65
68
  p headers # => { ... }
66
69
  p data # => <PaginatedUserList>
@@ -74,9 +77,10 @@ end
74
77
  | Name | Type | Description | Notes |
75
78
  | ---- | ---- | ----------- | ----- |
76
79
  | **x_account_token** | **String** | Token identifying the end user. | |
77
- | **id** | [**String**](.md) | | |
80
+ | **parent_id** | [**String**](.md) | | |
78
81
  | **cursor** | **String** | The pagination cursor value. | [optional] |
79
82
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
83
+ | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
80
84
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
81
85
  | **page_size** | **Integer** | Number of results to return per page. | [optional] |
82
86
 
@@ -198,18 +202,35 @@ api_instance = MergeTicketingClient::TicketsApi.new
198
202
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
199
203
  opts = {
200
204
  account_id: 'account_id_example', # String | If provided, will only return tickets for this account.
205
+ assignee_ids: 'assignee_ids_example', # String | If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas.
206
+ collection_ids: 'collection_ids_example', # String | If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas.
207
+ completed_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets completed after this datetime.
208
+ completed_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets completed before this datetime.
209
+ contact_id: 'contact_id_example', # String | If provided, will only return tickets for this contact.
201
210
  created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
202
211
  created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
203
212
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
213
+ due_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets due after this datetime.
214
+ due_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets due before this datetime.
204
215
  expand: 'account', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
205
216
  include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
206
217
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
207
218
  modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
208
219
  modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
209
220
  page_size: 56, # Integer | Number of results to return per page.
221
+ parent_ticket_id: 'parent_ticket_id_example', # String | If provided, will only return sub tickets of the parent_ticket_id.
222
+ priority: 'HIGH', # String | If provided, will only return tickets of this priority.
210
223
  project_id: 'project_id_example', # String | If provided, will only return tickets for this project.
211
- remote_fields: 'status', # String | Which fields should be returned in non-normalized form.
212
- remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
224
+ remote_created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets created in the third party platform after this datetime.
225
+ remote_created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets created in the third party platform before this datetime.
226
+ remote_fields: 'priority', # String | Deprecated. Use show_enum_origins.
227
+ remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
228
+ remote_updated_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets updated in the third party platform after this datetime.
229
+ remote_updated_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return tickets updated in the third party platform before this datetime.
230
+ show_enum_origins: 'priority', # String | Which fields should be returned in non-normalized form.
231
+ status: 'CLOSED', # String | If provided, will only return tickets of this status.
232
+ tags: 'tags_example', # String | If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
233
+ ticket_type: 'ticket_type_example' # String | If provided, will only return tickets of this type.
213
234
  }
214
235
 
215
236
  begin
@@ -245,18 +266,35 @@ end
245
266
  | ---- | ---- | ----------- | ----- |
246
267
  | **x_account_token** | **String** | Token identifying the end user. | |
247
268
  | **account_id** | **String** | If provided, will only return tickets for this account. | [optional] |
269
+ | **assignee_ids** | **String** | If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas. | [optional] |
270
+ | **collection_ids** | **String** | If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas. | [optional] |
271
+ | **completed_after** | **Time** | If provided, will only return tickets completed after this datetime. | [optional] |
272
+ | **completed_before** | **Time** | If provided, will only return tickets completed before this datetime. | [optional] |
273
+ | **contact_id** | **String** | If provided, will only return tickets for this contact. | [optional] |
248
274
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
249
275
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
250
276
  | **cursor** | **String** | The pagination cursor value. | [optional] |
277
+ | **due_after** | **Time** | If provided, will only return tickets due after this datetime. | [optional] |
278
+ | **due_before** | **Time** | If provided, will only return tickets due before this datetime. | [optional] |
251
279
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
252
280
  | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
253
281
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
254
282
  | **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
255
283
  | **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
256
284
  | **page_size** | **Integer** | Number of results to return per page. | [optional] |
285
+ | **parent_ticket_id** | **String** | If provided, will only return sub tickets of the parent_ticket_id. | [optional] |
286
+ | **priority** | **String** | If provided, will only return tickets of this priority. | [optional] |
257
287
  | **project_id** | **String** | If provided, will only return tickets for this project. | [optional] |
258
- | **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
288
+ | **remote_created_after** | **Time** | If provided, will only return tickets created in the third party platform after this datetime. | [optional] |
289
+ | **remote_created_before** | **Time** | If provided, will only return tickets created in the third party platform before this datetime. | [optional] |
290
+ | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
259
291
  | **remote_id** | **String** | The API provider&#39;s ID for the given object. | [optional] |
292
+ | **remote_updated_after** | **Time** | If provided, will only return tickets updated in the third party platform after this datetime. | [optional] |
293
+ | **remote_updated_before** | **Time** | If provided, will only return tickets updated in the third party platform before this datetime. | [optional] |
294
+ | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
295
+ | **status** | **String** | If provided, will only return tickets of this status. | [optional] |
296
+ | **tags** | **String** | If provided, will only return tickets matching the tags; multiple tags can be separated by commas. | [optional] |
297
+ | **ticket_type** | **String** | If provided, will only return tickets of this type. | [optional] |
260
298
 
261
299
  ### Return type
262
300
 
@@ -272,6 +310,79 @@ end
272
310
  - **Accept**: application/json
273
311
 
274
312
 
313
+ ## tickets_meta_patch_retrieve
314
+
315
+ > <MetaResponse> tickets_meta_patch_retrieve(x_account_token, id)
316
+
317
+
318
+
319
+ Returns metadata for `Ticket` PATCHs.
320
+
321
+ ### Examples
322
+
323
+ ```ruby
324
+ require 'time'
325
+ require 'merge_ticketing_client'
326
+ # setup authorization
327
+ MergeTicketingClient.configure do |config|
328
+ # Configure API key authorization: tokenAuth
329
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
330
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
331
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
332
+ end
333
+
334
+ api_instance = MergeTicketingClient::TicketsApi.new
335
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
336
+ id = TODO # String |
337
+
338
+ begin
339
+
340
+ result = api_instance.tickets_meta_patch_retrieve(x_account_token, id)
341
+ p result
342
+ rescue MergeTicketingClient::ApiError => e
343
+ puts "Error when calling TicketsApi->tickets_meta_patch_retrieve: #{e}"
344
+ end
345
+ ```
346
+
347
+ #### Using the tickets_meta_patch_retrieve_with_http_info variant
348
+
349
+ This returns an Array which contains the response data, status code and headers.
350
+
351
+ > <Array(<MetaResponse>, Integer, Hash)> tickets_meta_patch_retrieve_with_http_info(x_account_token, id)
352
+
353
+ ```ruby
354
+ begin
355
+
356
+ data, status_code, headers = api_instance.tickets_meta_patch_retrieve_with_http_info(x_account_token, id)
357
+ p status_code # => 2xx
358
+ p headers # => { ... }
359
+ p data # => <MetaResponse>
360
+ rescue MergeTicketingClient::ApiError => e
361
+ puts "Error when calling TicketsApi->tickets_meta_patch_retrieve_with_http_info: #{e}"
362
+ end
363
+ ```
364
+
365
+ ### Parameters
366
+
367
+ | Name | Type | Description | Notes |
368
+ | ---- | ---- | ----------- | ----- |
369
+ | **x_account_token** | **String** | Token identifying the end user. | |
370
+ | **id** | [**String**](.md) | | |
371
+
372
+ ### Return type
373
+
374
+ [**MetaResponse**](MetaResponse.md)
375
+
376
+ ### Authorization
377
+
378
+ [tokenAuth](../README.md#tokenAuth)
379
+
380
+ ### HTTP request headers
381
+
382
+ - **Content-Type**: Not defined
383
+ - **Accept**: application/json
384
+
385
+
275
386
  ## tickets_meta_post_retrieve
276
387
 
277
388
  > <MetaResponse> tickets_meta_post_retrieve(x_account_token)
@@ -343,6 +454,87 @@ end
343
454
  - **Accept**: application/json
344
455
 
345
456
 
457
+ ## tickets_partial_update
458
+
459
+ > <TicketResponse> tickets_partial_update(x_account_token, id, patched_ticket_endpoint_request, opts)
460
+
461
+
462
+
463
+ Updates a `Ticket` object with the given `id`.
464
+
465
+ ### Examples
466
+
467
+ ```ruby
468
+ require 'time'
469
+ require 'merge_ticketing_client'
470
+ # setup authorization
471
+ MergeTicketingClient.configure do |config|
472
+ # Configure API key authorization: tokenAuth
473
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
474
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
475
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
476
+ end
477
+
478
+ api_instance = MergeTicketingClient::TicketsApi.new
479
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
480
+ id = TODO # String |
481
+ patched_ticket_endpoint_request = MergeTicketingClient::PatchedTicketEndpointRequest.new({model: MergeTicketingClient::PatchedTicketRequest.new}) # PatchedTicketEndpointRequest |
482
+ opts = {
483
+ is_debug_mode: true, # Boolean | Whether to include debug fields (such as log file links) in the response.
484
+ run_async: true # Boolean | Whether or not third-party updates should be run asynchronously.
485
+ }
486
+
487
+ begin
488
+
489
+ result = api_instance.tickets_partial_update(x_account_token, id, patched_ticket_endpoint_request, opts)
490
+ p result
491
+ rescue MergeTicketingClient::ApiError => e
492
+ puts "Error when calling TicketsApi->tickets_partial_update: #{e}"
493
+ end
494
+ ```
495
+
496
+ #### Using the tickets_partial_update_with_http_info variant
497
+
498
+ This returns an Array which contains the response data, status code and headers.
499
+
500
+ > <Array(<TicketResponse>, Integer, Hash)> tickets_partial_update_with_http_info(x_account_token, id, patched_ticket_endpoint_request, opts)
501
+
502
+ ```ruby
503
+ begin
504
+
505
+ data, status_code, headers = api_instance.tickets_partial_update_with_http_info(x_account_token, id, patched_ticket_endpoint_request, opts)
506
+ p status_code # => 2xx
507
+ p headers # => { ... }
508
+ p data # => <TicketResponse>
509
+ rescue MergeTicketingClient::ApiError => e
510
+ puts "Error when calling TicketsApi->tickets_partial_update_with_http_info: #{e}"
511
+ end
512
+ ```
513
+
514
+ ### Parameters
515
+
516
+ | Name | Type | Description | Notes |
517
+ | ---- | ---- | ----------- | ----- |
518
+ | **x_account_token** | **String** | Token identifying the end user. | |
519
+ | **id** | [**String**](.md) | | |
520
+ | **patched_ticket_endpoint_request** | [**PatchedTicketEndpointRequest**](PatchedTicketEndpointRequest.md) | | |
521
+ | **is_debug_mode** | **Boolean** | Whether to include debug fields (such as log file links) in the response. | [optional] |
522
+ | **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
523
+
524
+ ### Return type
525
+
526
+ [**TicketResponse**](TicketResponse.md)
527
+
528
+ ### Authorization
529
+
530
+ [tokenAuth](../README.md#tokenAuth)
531
+
532
+ ### HTTP request headers
533
+
534
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
535
+ - **Accept**: application/json
536
+
537
+
346
538
  ## tickets_retrieve
347
539
 
348
540
  > <Ticket> tickets_retrieve(x_account_token, id, opts)
@@ -370,7 +562,8 @@ id = TODO # String |
370
562
  opts = {
371
563
  expand: 'account', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
372
564
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
373
- remote_fields: 'status' # String | Which fields should be returned in non-normalized form.
565
+ remote_fields: 'priority', # String | Deprecated. Use show_enum_origins.
566
+ show_enum_origins: 'priority' # String | Which fields should be returned in non-normalized form.
374
567
  }
375
568
 
376
569
  begin
@@ -408,7 +601,8 @@ end
408
601
  | **id** | [**String**](.md) | | |
409
602
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
410
603
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
411
- | **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
604
+ | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
605
+ | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
412
606
 
413
607
  ### Return type
414
608
 
data/docs/User.md CHANGED
@@ -10,8 +10,10 @@
10
10
  | **email_address** | **String** | The user&#39;s email address. | [optional] |
11
11
  | **is_active** | **Boolean** | Whether or not the user is active. | [optional] |
12
12
  | **teams** | **Array&lt;String&gt;** | | [optional] |
13
+ | **avatar** | **String** | The user&#39;s avatar picture. | [optional] |
13
14
  | **remote_data** | [**Array&lt;RemoteData&gt;**](RemoteData.md) | | [optional][readonly] |
14
15
  | **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
16
+ | **field_mappings** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional][readonly] |
15
17
 
16
18
  ## Example
17
19
 
@@ -25,8 +27,10 @@ instance = MergeTicketingClient::User.new(
25
27
  email_address: help@merge.dev,
26
28
  is_active: true,
27
29
  teams: [&quot;28b54125-287f-494d-965e-3c5b330c9a68&quot;,&quot;17a54124-287f-494d-965e-3c5b330c9a68&quot;],
30
+ avatar: https://merge.dev/user_profile_pic.png,
28
31
  remote_data: null,
29
- remote_was_deleted: null
32
+ remote_was_deleted: null,
33
+ field_mappings: {&quot;organization_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;},&quot;linked_account_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;}}
30
34
  )
31
35
  ```
32
36
 
data/docs/UsersApi.md CHANGED
@@ -35,6 +35,7 @@ opts = {
35
35
  created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
36
36
  created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
37
37
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
38
+ email_address: 'email_address_example', # String | If provided, will only return users with emails equal to this value (case insensitive).
38
39
  expand: 'teams', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
39
40
  include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
40
41
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
@@ -79,6 +80,7 @@ end
79
80
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
80
81
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
81
82
  | **cursor** | **String** | The pagination cursor value. | [optional] |
83
+ | **email_address** | **String** | If provided, will only return users with emails equal to this value (case insensitive). | [optional] |
82
84
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
83
85
  | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
84
86
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |