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.
- checksums.yaml +4 -4
- data/README.md +31 -7
- data/docs/Account.md +3 -1
- data/docs/AccountIntegration.md +1 -1
- data/docs/Attachment.md +5 -3
- data/docs/AttachmentRequest.md +7 -3
- data/docs/Collection.md +34 -0
- data/docs/CollectionTypeEnum.md +15 -0
- data/docs/CollectionsApi.md +193 -0
- data/docs/Comment.md +6 -4
- data/docs/CommentRequest.md +8 -4
- data/docs/ConditionSchema.md +30 -0
- data/docs/ConditionTypeEnum.md +15 -0
- data/docs/Contact.md +3 -1
- data/docs/DataPassthroughRequest.md +1 -1
- data/docs/EndUserDetailsRequest.md +2 -2
- data/docs/Issue.md +9 -7
- data/docs/LinkToken.md +1 -1
- data/docs/LinkedAccountCondition.md +28 -0
- data/docs/LinkedAccountConditionRequest.md +22 -0
- data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
- data/docs/OperatorSchema.md +20 -0
- data/docs/PaginatedCollectionList.md +22 -0
- data/docs/PaginatedConditionSchemaList.md +22 -0
- data/docs/PatchedTicketEndpointRequest.md +18 -0
- data/docs/PatchedTicketRequest.md +56 -0
- data/docs/PriorityEnum.md +15 -0
- data/docs/Project.md +3 -1
- data/docs/ProjectsApi.md +10 -8
- data/docs/RemoteResponse.md +3 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/SelectiveSyncApi.md +233 -0
- data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
- data/docs/SyncStatus.md +7 -5
- data/docs/Tag.md +3 -1
- data/docs/Team.md +3 -1
- data/docs/Ticket.md +18 -6
- data/docs/TicketRequest.md +20 -6
- data/docs/TicketsApi.md +207 -13
- data/docs/User.md +5 -1
- data/docs/UsersApi.md +2 -0
- data/lib/merge_ticketing_client/api/collections_api.rb +234 -0
- data/lib/merge_ticketing_client/api/linked_accounts_api.rb +1 -1
- data/lib/merge_ticketing_client/api/projects_api.rb +14 -11
- data/lib/merge_ticketing_client/api/selective_sync_api.rb +225 -0
- data/lib/merge_ticketing_client/api/tickets_api.rb +242 -19
- data/lib/merge_ticketing_client/api/users_api.rb +3 -0
- data/lib/merge_ticketing_client/models/account.rb +16 -4
- data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/account_integration.rb +1 -1
- data/lib/merge_ticketing_client/models/attachment.rb +18 -4
- data/lib/merge_ticketing_client/models/attachment_request.rb +31 -5
- data/lib/merge_ticketing_client/models/categories_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/category_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/collection.rb +308 -0
- data/lib/merge_ticketing_client/models/collection_type_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/comment.rb +19 -4
- data/lib/merge_ticketing_client/models/comment_request.rb +32 -5
- data/lib/merge_ticketing_client/models/condition_schema.rb +297 -0
- data/lib/merge_ticketing_client/models/condition_type_enum.rb +50 -0
- data/lib/merge_ticketing_client/models/contact.rb +16 -4
- data/lib/merge_ticketing_client/models/data_passthrough_request.rb +2 -1
- data/lib/merge_ticketing_client/models/encoding_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/end_user_details_request.rb +2 -2
- data/lib/merge_ticketing_client/models/issue.rb +16 -5
- data/lib/merge_ticketing_client/models/link_token.rb +0 -5
- data/lib/merge_ticketing_client/models/linked_account_condition.rb +282 -0
- data/lib/merge_ticketing_client/models/linked_account_condition_request.rb +269 -0
- data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration.rb +221 -0
- data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
- data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
- data/lib/merge_ticketing_client/models/meta_response.rb +1 -1
- data/lib/merge_ticketing_client/models/method_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/operator_schema.rb +229 -0
- data/lib/merge_ticketing_client/models/paginated_collection_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_condition_schema_list.rb +240 -0
- data/lib/merge_ticketing_client/models/patched_ticket_endpoint_request.rb +223 -0
- data/lib/merge_ticketing_client/models/patched_ticket_request.rb +447 -0
- data/lib/merge_ticketing_client/models/priority_enum.rb +47 -0
- data/lib/merge_ticketing_client/models/project.rb +16 -4
- data/lib/merge_ticketing_client/models/remote_response.rb +14 -11
- data/lib/merge_ticketing_client/models/request_format_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/response_type_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/selective_sync_configurations_usage_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/sync_status.rb +13 -14
- data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/tag.rb +16 -4
- data/lib/merge_ticketing_client/models/team.rb +16 -4
- data/lib/merge_ticketing_client/models/ticket.rb +91 -5
- data/lib/merge_ticketing_client/models/ticket_request.rb +104 -6
- data/lib/merge_ticketing_client/models/ticket_status_enum.rb +4 -2
- data/lib/merge_ticketing_client/models/user.rb +27 -4
- data/lib/merge_ticketing_client/version.rb +1 -1
- data/lib/merge_ticketing_client.rb +19 -0
- data/spec/api/collections_api_spec.rb +76 -0
- data/spec/api/projects_api_spec.rb +3 -2
- data/spec/api/selective_sync_api_spec.rb +72 -0
- data/spec/api/tickets_api_spec.rb +50 -4
- data/spec/api/users_api_spec.rb +1 -0
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/attachment_request_spec.rb +12 -0
- data/spec/models/attachment_spec.rb +6 -0
- data/spec/models/collection_spec.rb +82 -0
- data/spec/models/collection_type_enum_spec.rb +28 -0
- data/spec/models/comment_request_spec.rb +12 -0
- data/spec/models/comment_spec.rb +6 -0
- data/spec/models/condition_schema_spec.rb +70 -0
- data/spec/models/condition_type_enum_spec.rb +28 -0
- data/spec/models/contact_spec.rb +6 -0
- data/spec/models/issue_spec.rb +6 -0
- data/spec/models/linked_account_condition_request_spec.rb +46 -0
- data/spec/models/linked_account_condition_spec.rb +64 -0
- data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
- data/spec/models/operator_schema_spec.rb +40 -0
- data/spec/models/paginated_collection_list_spec.rb +46 -0
- data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
- data/spec/models/patched_ticket_endpoint_request_spec.rb +34 -0
- data/spec/models/patched_ticket_request_spec.rb +148 -0
- data/spec/models/priority_enum_spec.rb +28 -0
- data/spec/models/project_spec.rb +6 -0
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +6 -0
- data/spec/models/tag_spec.rb +6 -0
- data/spec/models/team_spec.rb +6 -0
- data/spec/models/ticket_request_spec.rb +42 -0
- data/spec/models/ticket_spec.rb +36 -0
- data/spec/models/user_spec.rb +12 -0
- metadata +144 -68
@@ -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'
|
@@ -44,15 +48,23 @@ require 'merge_ticketing_client/models/generate_remote_key_request'
|
|
44
48
|
require 'merge_ticketing_client/models/issue'
|
45
49
|
require 'merge_ticketing_client/models/issue_status_enum'
|
46
50
|
require 'merge_ticketing_client/models/link_token'
|
51
|
+
require 'merge_ticketing_client/models/linked_account_condition'
|
52
|
+
require 'merge_ticketing_client/models/linked_account_condition_request'
|
53
|
+
require 'merge_ticketing_client/models/linked_account_selective_sync_configuration'
|
54
|
+
require 'merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request'
|
55
|
+
require 'merge_ticketing_client/models/linked_account_selective_sync_configuration_request'
|
47
56
|
require 'merge_ticketing_client/models/linked_account_status'
|
48
57
|
require 'merge_ticketing_client/models/meta_response'
|
49
58
|
require 'merge_ticketing_client/models/method_enum'
|
50
59
|
require 'merge_ticketing_client/models/model_operation'
|
51
60
|
require 'merge_ticketing_client/models/multipart_form_field_request'
|
61
|
+
require 'merge_ticketing_client/models/operator_schema'
|
52
62
|
require 'merge_ticketing_client/models/paginated_account_details_and_actions_list'
|
53
63
|
require 'merge_ticketing_client/models/paginated_account_list'
|
54
64
|
require 'merge_ticketing_client/models/paginated_attachment_list'
|
65
|
+
require 'merge_ticketing_client/models/paginated_collection_list'
|
55
66
|
require 'merge_ticketing_client/models/paginated_comment_list'
|
67
|
+
require 'merge_ticketing_client/models/paginated_condition_schema_list'
|
56
68
|
require 'merge_ticketing_client/models/paginated_contact_list'
|
57
69
|
require 'merge_ticketing_client/models/paginated_issue_list'
|
58
70
|
require 'merge_ticketing_client/models/paginated_project_list'
|
@@ -61,12 +73,17 @@ require 'merge_ticketing_client/models/paginated_tag_list'
|
|
61
73
|
require 'merge_ticketing_client/models/paginated_team_list'
|
62
74
|
require 'merge_ticketing_client/models/paginated_ticket_list'
|
63
75
|
require 'merge_ticketing_client/models/paginated_user_list'
|
76
|
+
require 'merge_ticketing_client/models/patched_ticket_endpoint_request'
|
77
|
+
require 'merge_ticketing_client/models/patched_ticket_request'
|
78
|
+
require 'merge_ticketing_client/models/priority_enum'
|
64
79
|
require 'merge_ticketing_client/models/project'
|
65
80
|
require 'merge_ticketing_client/models/remote_data'
|
66
81
|
require 'merge_ticketing_client/models/remote_key'
|
67
82
|
require 'merge_ticketing_client/models/remote_key_for_regeneration_request'
|
68
83
|
require 'merge_ticketing_client/models/remote_response'
|
69
84
|
require 'merge_ticketing_client/models/request_format_enum'
|
85
|
+
require 'merge_ticketing_client/models/response_type_enum'
|
86
|
+
require 'merge_ticketing_client/models/selective_sync_configurations_usage_enum'
|
70
87
|
require 'merge_ticketing_client/models/sync_status'
|
71
88
|
require 'merge_ticketing_client/models/sync_status_status_enum'
|
72
89
|
require 'merge_ticketing_client/models/tag'
|
@@ -90,6 +107,7 @@ require 'merge_ticketing_client/api/account_token_api'
|
|
90
107
|
require 'merge_ticketing_client/api/accounts_api'
|
91
108
|
require 'merge_ticketing_client/api/attachments_api'
|
92
109
|
require 'merge_ticketing_client/api/available_actions_api'
|
110
|
+
require 'merge_ticketing_client/api/collections_api'
|
93
111
|
require 'merge_ticketing_client/api/comments_api'
|
94
112
|
require 'merge_ticketing_client/api/contacts_api'
|
95
113
|
require 'merge_ticketing_client/api/delete_account_api'
|
@@ -101,6 +119,7 @@ require 'merge_ticketing_client/api/linked_accounts_api'
|
|
101
119
|
require 'merge_ticketing_client/api/passthrough_api'
|
102
120
|
require 'merge_ticketing_client/api/projects_api'
|
103
121
|
require 'merge_ticketing_client/api/regenerate_key_api'
|
122
|
+
require 'merge_ticketing_client/api/selective_sync_api'
|
104
123
|
require 'merge_ticketing_client/api/sync_status_api'
|
105
124
|
require 'merge_ticketing_client/api/tags_api'
|
106
125
|
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 `Collection` 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'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 `Collection` object with the given `id`.
|
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 `User`
|
69
|
+
# Returns a list of `User` objects.
|
70
70
|
# @param x_account_token Token identifying the end user.
|
71
|
-
# @param
|
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'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'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 `User`
|
36
|
+
# Returns a list of `User` objects.
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
|
-
# @param
|
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 [
|
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'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
|
@@ -86,6 +104,18 @@ describe 'TicketsApi' do
|
|
86
104
|
end
|
87
105
|
end
|
88
106
|
|
107
|
+
# unit tests for tickets_meta_patch_retrieve
|
108
|
+
# Returns metadata for `Ticket` PATCHs.
|
109
|
+
# @param x_account_token Token identifying the end user.
|
110
|
+
# @param id
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @return [MetaResponse]
|
113
|
+
describe 'tickets_meta_patch_retrieve test' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
89
119
|
# unit tests for tickets_meta_post_retrieve
|
90
120
|
# Returns metadata for `Ticket` POSTs.
|
91
121
|
# @param x_account_token Token identifying the end user.
|
@@ -97,6 +127,21 @@ describe 'TicketsApi' do
|
|
97
127
|
end
|
98
128
|
end
|
99
129
|
|
130
|
+
# unit tests for tickets_partial_update
|
131
|
+
# Updates a `Ticket` object with the given `id`.
|
132
|
+
# @param x_account_token Token identifying the end user.
|
133
|
+
# @param id
|
134
|
+
# @param patched_ticket_endpoint_request
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
137
|
+
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
138
|
+
# @return [TicketResponse]
|
139
|
+
describe 'tickets_partial_update test' do
|
140
|
+
it 'should work' do
|
141
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
100
145
|
# unit tests for tickets_retrieve
|
101
146
|
# Returns a `Ticket` object with the given `id`.
|
102
147
|
# @param x_account_token Token identifying the end user.
|
@@ -104,7 +149,8 @@ describe 'TicketsApi' do
|
|
104
149
|
# @param [Hash] opts the optional parameters
|
105
150
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
106
151
|
# @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 [String] :remote_fields
|
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.
|
108
154
|
# @return [Ticket]
|
109
155
|
describe 'tickets_retrieve test' do
|
110
156
|
it 'should work' do
|
data/spec/api/users_api_spec.rb
CHANGED
@@ -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.
|
data/spec/models/account_spec.rb
CHANGED
@@ -67,4 +67,16 @@ describe MergeTicketingClient::AttachmentRequest do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
describe 'test attribute "integration_params"' 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
|
+
describe 'test attribute "linked_account_params"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
70
82
|
end
|
@@ -85,4 +85,10 @@ describe MergeTicketingClient::Attachment do
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
describe 'test attribute "field_mappings"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
88
94
|
end
|
@@ -0,0 +1,82 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MergeTicketingClient::Collection
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeTicketingClient::Collection do
|
21
|
+
let(:instance) { MergeTicketingClient::Collection.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Collection' do
|
24
|
+
it 'should create an instance of Collection' do
|
25
|
+
expect(instance).to be_instance_of(MergeTicketingClient::Collection)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "remote_id"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "name"' 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
|
+
describe 'test attribute "description"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "collection_type"' 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
|
+
describe 'test attribute "parent_collection"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "remote_data"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "remote_was_deleted"' 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
|
+
describe 'test attribute "field_mappings"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MergeTicketingClient::CollectionTypeEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeTicketingClient::CollectionTypeEnum do
|
21
|
+
let(:instance) { MergeTicketingClient::CollectionTypeEnum.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CollectionTypeEnum' do
|
24
|
+
it 'should create an instance of CollectionTypeEnum' do
|
25
|
+
expect(instance).to be_instance_of(MergeTicketingClient::CollectionTypeEnum)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -73,4 +73,16 @@ describe MergeTicketingClient::CommentRequest do
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
describe 'test attribute "integration_params"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "linked_account_params"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
76
88
|
end
|
data/spec/models/comment_spec.rb
CHANGED
@@ -0,0 +1,70 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MergeTicketingClient::ConditionSchema
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeTicketingClient::ConditionSchema do
|
21
|
+
let(:instance) { MergeTicketingClient::ConditionSchema.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ConditionSchema' do
|
24
|
+
it 'should create an instance of ConditionSchema' do
|
25
|
+
expect(instance).to be_instance_of(MergeTicketingClient::ConditionSchema)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "common_model"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "native_name"' 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
|
+
describe 'test attribute "field_name"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "is_unique"' 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
|
+
describe 'test attribute "condition_type"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "operators"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MergeTicketingClient::ConditionTypeEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeTicketingClient::ConditionTypeEnum do
|
21
|
+
let(:instance) { MergeTicketingClient::ConditionTypeEnum.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ConditionTypeEnum' do
|
24
|
+
it 'should create an instance of ConditionTypeEnum' do
|
25
|
+
expect(instance).to be_instance_of(MergeTicketingClient::ConditionTypeEnum)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/spec/models/contact_spec.rb
CHANGED
data/spec/models/issue_spec.rb
CHANGED