merge_ticketing_client 1.0.4 → 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 +22 -7
- 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 +10 -4
- 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 +1 -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 +133 -86
@@ -46,6 +46,18 @@ describe 'AttachmentsApi' do
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
+
# unit tests for attachments_download_retrieve
|
50
|
+
# Returns an `Attachment` object with the given `id`.
|
51
|
+
# @param x_account_token Token identifying the end user.
|
52
|
+
# @param id
|
53
|
+
# @param [Hash] opts the optional parameters
|
54
|
+
# @return [File]
|
55
|
+
describe 'attachments_download_retrieve test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
49
61
|
# unit tests for attachments_list
|
50
62
|
# Returns a list of `Attachment` objects.
|
51
63
|
# @param x_account_token Token identifying the end user.
|
@@ -56,9 +68,10 @@ describe 'AttachmentsApi' do
|
|
56
68
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
57
69
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
58
70
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
59
|
-
# @option opts [Time] :modified_after If provided,
|
60
|
-
# @option opts [Time] :modified_before If provided,
|
71
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
72
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
61
73
|
# @option opts [Integer] :page_size Number of results to return per page.
|
74
|
+
# @option opts [Time] :remote_created_after If provided, will only return attachments created in the third party platform after this datetime.
|
62
75
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
63
76
|
# @option opts [String] :ticket_id If provided, will only return comments for this ticket.
|
64
77
|
# @return [PaginatedAttachmentList]
|
@@ -36,15 +36,15 @@ describe 'CollectionsApi' do
|
|
36
36
|
# Returns a list of `Collection` objects.
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [String] :collection_type If provided, will only return collections of the given type.
|
39
|
+
# @option opts [String] :collection_type If provided, will only return collections of the given type. * `LIST` - LIST * `PROJECT` - PROJECT
|
40
40
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
41
41
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
42
42
|
# @option opts [String] :cursor The pagination cursor value.
|
43
43
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
44
44
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
45
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,
|
47
|
-
# @option opts [Time] :modified_before If provided,
|
46
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
47
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
48
48
|
# @option opts [Integer] :page_size Number of results to return per page.
|
49
49
|
# @option opts [String] :parent_collection_id If provided, will only return collections whose parent collection matches the given id.
|
50
50
|
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
@@ -73,4 +73,21 @@ describe 'CollectionsApi' do
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
# unit tests for collections_users_list
|
77
|
+
# Returns a list of `User` objects.
|
78
|
+
# @param x_account_token Token identifying the end user.
|
79
|
+
# @param parent_id
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @option opts [String] :cursor The pagination cursor value.
|
82
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
83
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
84
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
85
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
86
|
+
# @return [PaginatedUserList]
|
87
|
+
describe 'collections_users_list test' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
76
93
|
end
|
@@ -56,9 +56,10 @@ describe 'CommentsApi' do
|
|
56
56
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
57
57
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
58
58
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
59
|
-
# @option opts [Time] :modified_after If provided,
|
60
|
-
# @option opts [Time] :modified_before If provided,
|
59
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
60
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
61
61
|
# @option opts [Integer] :page_size Number of results to return per page.
|
62
|
+
# @option opts [Time] :remote_created_after If provided, will only return Comments created in the third party platform after this datetime.
|
62
63
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
63
64
|
# @option opts [String] :ticket_id If provided, will only return comments for this ticket.
|
64
65
|
# @return [PaginatedCommentList]
|
@@ -42,8 +42,8 @@ describe 'ContactsApi' do
|
|
42
42
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
43
43
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
44
44
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
45
|
-
# @option opts [Time] :modified_after If provided,
|
46
|
-
# @option opts [Time] :modified_before If provided,
|
45
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
46
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
47
47
|
# @option opts [Integer] :page_size Number of results to return per page.
|
48
48
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
49
49
|
# @return [PaginatedContactList]
|
@@ -32,12 +32,12 @@ describe 'DeleteAccountApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for delete_account_delete
|
36
36
|
# Delete a linked account.
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [nil]
|
40
|
-
describe '
|
40
|
+
describe 'delete_account_delete test' do
|
41
41
|
it 'should work' do
|
42
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
43
|
end
|
@@ -33,7 +33,7 @@ describe 'ForceResyncApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for sync_status_resync_create
|
36
|
-
# Force re-sync of all models. This is
|
36
|
+
# 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.
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<SyncStatus>]
|
data/spec/api/issues_api_spec.rb
CHANGED
@@ -43,11 +43,11 @@ describe 'IssuesApi' do
|
|
43
43
|
# @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
44
44
|
# @option opts [String] :include_muted If True, will include muted issues
|
45
45
|
# @option opts [String] :integration_name
|
46
|
-
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose
|
47
|
-
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose
|
46
|
+
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose last incident time was after this datetime.
|
47
|
+
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose last incident time was before this datetime.
|
48
48
|
# @option opts [Integer] :page_size Number of results to return per page.
|
49
49
|
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
50
|
-
# @option opts [String] :status
|
50
|
+
# @option opts [String] :status Status of the issue. Options: ('ONGOING', 'RESOLVED') * `ONGOING` - ONGOING * `RESOLVED` - RESOLVED
|
51
51
|
# @return [PaginatedIssueList]
|
52
52
|
describe 'issues_list test' do
|
53
53
|
it 'should work' do
|
@@ -35,7 +35,7 @@ describe 'LinkedAccountsApi' do
|
|
35
35
|
# unit tests for linked_accounts_list
|
36
36
|
# List linked accounts for your organization.
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [String] :category
|
38
|
+
# @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
|
39
39
|
# @option opts [String] :cursor The pagination cursor value.
|
40
40
|
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
41
41
|
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
@@ -41,8 +41,8 @@ describe 'ProjectsApi' do
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
42
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
43
43
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
44
|
-
# @option opts [Time] :modified_after If provided,
|
45
|
-
# @option opts [Time] :modified_before If provided,
|
44
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
45
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
46
46
|
# @option opts [Integer] :page_size Number of results to return per page.
|
47
47
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
48
48
|
# @return [PaginatedProjectList]
|
@@ -33,7 +33,7 @@ describe 'SyncStatusApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for sync_status_list
|
36
|
-
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `
|
36
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [String] :cursor The pagination cursor value.
|
data/spec/api/tags_api_spec.rb
CHANGED
@@ -41,8 +41,8 @@ describe 'TagsApi' do
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
42
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
43
43
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
44
|
-
# @option opts [Time] :modified_after If provided,
|
45
|
-
# @option opts [Time] :modified_before If provided,
|
44
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
45
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
46
46
|
# @option opts [Integer] :page_size Number of results to return per page.
|
47
47
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
48
48
|
# @return [PaginatedTagList]
|
data/spec/api/teams_api_spec.rb
CHANGED
@@ -41,8 +41,8 @@ describe 'TeamsApi' do
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
42
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
43
43
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
44
|
-
# @option opts [Time] :modified_after If provided,
|
45
|
-
# @option opts [Time] :modified_before If provided,
|
44
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
45
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
46
46
|
# @option opts [Integer] :page_size Number of results to return per page.
|
47
47
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
48
48
|
# @return [PaginatedTeamList]
|
@@ -81,11 +81,12 @@ describe 'TicketsApi' do
|
|
81
81
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
82
82
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
83
83
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
84
|
-
# @option opts [
|
85
|
-
# @option opts [Time] :
|
84
|
+
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
85
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
86
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
86
87
|
# @option opts [Integer] :page_size Number of results to return per page.
|
87
88
|
# @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.
|
89
|
+
# @option opts [String] :priority If provided, will only return tickets of this priority. * `URGENT` - URGENT * `HIGH` - HIGH * `NORMAL` - NORMAL * `LOW` - LOW
|
89
90
|
# @option opts [String] :project_id If provided, will only return tickets for this project.
|
90
91
|
# @option opts [Time] :remote_created_after If provided, will only return tickets created in the third party platform after this datetime.
|
91
92
|
# @option opts [Time] :remote_created_before If provided, will only return tickets created in the third party platform before this datetime.
|
@@ -94,7 +95,7 @@ describe 'TicketsApi' do
|
|
94
95
|
# @option opts [Time] :remote_updated_after If provided, will only return tickets updated in the third party platform after this datetime.
|
95
96
|
# @option opts [Time] :remote_updated_before If provided, will only return tickets updated in the third party platform before this datetime.
|
96
97
|
# @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] :status If provided, will only return tickets of this status. * `OPEN` - OPEN * `CLOSED` - CLOSED * `IN_PROGRESS` - IN_PROGRESS * `ON_HOLD` - ON_HOLD
|
98
99
|
# @option opts [String] :tags If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
|
99
100
|
# @option opts [String] :ticket_type If provided, will only return tickets of this type.
|
100
101
|
# @return [PaginatedTicketList]
|
@@ -142,6 +143,21 @@ describe 'TicketsApi' do
|
|
142
143
|
end
|
143
144
|
end
|
144
145
|
|
146
|
+
# unit tests for tickets_remote_field_classes_list
|
147
|
+
# Returns a list of `RemoteFieldClass` objects.
|
148
|
+
# @param x_account_token Token identifying the end user.
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @option opts [String] :cursor The pagination cursor value.
|
151
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
152
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
153
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
154
|
+
# @return [PaginatedRemoteFieldClassList]
|
155
|
+
describe 'tickets_remote_field_classes_list test' do
|
156
|
+
it 'should work' do
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
145
161
|
# unit tests for tickets_retrieve
|
146
162
|
# Returns a `Ticket` object with the given `id`.
|
147
163
|
# @param x_account_token Token identifying the end user.
|
@@ -149,6 +165,7 @@ describe 'TicketsApi' do
|
|
149
165
|
# @param [Hash] opts the optional parameters
|
150
166
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
151
167
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
168
|
+
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
152
169
|
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
153
170
|
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
154
171
|
# @return [Ticket]
|
data/spec/api/users_api_spec.rb
CHANGED
@@ -43,8 +43,8 @@ describe 'UsersApi' do
|
|
43
43
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
44
44
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
45
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,
|
47
|
-
# @option opts [Time] :modified_before If provided,
|
46
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
47
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
48
48
|
# @option opts [Integer] :page_size Number of results to return per page.
|
49
49
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
50
50
|
# @return [PaginatedUserList]
|
@@ -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::AccessLevelEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeTicketingClient::AccessLevelEnum do
|
21
|
+
let(:instance) { MergeTicketingClient::AccessLevelEnum.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AccessLevelEnum' do
|
24
|
+
it 'should create an instance of AccessLevelEnum' do
|
25
|
+
expect(instance).to be_instance_of(MergeTicketingClient::AccessLevelEnum)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -61,4 +61,16 @@ describe MergeTicketingClient::AccountIntegration do
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
describe 'test attribute "is_in_beta"' 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 "api_endpoints_to_documentation_urls"' 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
|
+
|
64
76
|
end
|
data/spec/models/account_spec.rb
CHANGED
@@ -49,13 +49,13 @@ describe MergeTicketingClient::Account do
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
describe 'test attribute "
|
52
|
+
describe 'test attribute "remote_was_deleted"' do
|
53
53
|
it 'should work' do
|
54
54
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
describe 'test attribute "
|
58
|
+
describe 'test attribute "modified_at"' do
|
59
59
|
it 'should work' do
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
61
|
end
|
@@ -67,4 +67,10 @@ describe MergeTicketingClient::Account do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
describe 'test attribute "remote_data"' 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
|
+
|
70
76
|
end
|
@@ -0,0 +1,34 @@
|
|
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::AsyncPassthroughReciept
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeTicketingClient::AsyncPassthroughReciept do
|
21
|
+
let(:instance) { MergeTicketingClient::AsyncPassthroughReciept.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AsyncPassthroughReciept' do
|
24
|
+
it 'should create an instance of AsyncPassthroughReciept' do
|
25
|
+
expect(instance).to be_instance_of(MergeTicketingClient::AsyncPassthroughReciept)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "async_passthrough_receipt_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
|
+
end
|
@@ -25,12 +25,6 @@ describe MergeTicketingClient::AttachmentRequest do
|
|
25
25
|
expect(instance).to be_instance_of(MergeTicketingClient::AttachmentRequest)
|
26
26
|
end
|
27
27
|
end
|
28
|
-
describe 'test attribute "remote_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
28
|
describe 'test attribute "file_name"' do
|
35
29
|
it 'should work' do
|
36
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -61,12 +55,6 @@ describe MergeTicketingClient::AttachmentRequest do
|
|
61
55
|
end
|
62
56
|
end
|
63
57
|
|
64
|
-
describe 'test attribute "remote_created_at"' 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
58
|
describe 'test attribute "integration_params"' do
|
71
59
|
it 'should work' do
|
72
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -73,13 +73,13 @@ describe MergeTicketingClient::Attachment do
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
describe 'test attribute "
|
76
|
+
describe 'test attribute "remote_was_deleted"' do
|
77
77
|
it 'should work' do
|
78
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
-
describe 'test attribute "
|
82
|
+
describe 'test attribute "modified_at"' do
|
83
83
|
it 'should work' do
|
84
84
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
85
|
end
|
@@ -91,4 +91,10 @@ describe MergeTicketingClient::Attachment do
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
describe 'test attribute "remote_data"' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
94
100
|
end
|
@@ -61,13 +61,19 @@ describe MergeTicketingClient::Collection do
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
-
describe 'test attribute "
|
64
|
+
describe 'test attribute "remote_was_deleted"' do
|
65
65
|
it 'should work' do
|
66
66
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
describe 'test attribute "
|
70
|
+
describe 'test attribute "access_level"' 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 "modified_at"' do
|
71
77
|
it 'should work' do
|
72
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
79
|
end
|
@@ -79,4 +85,10 @@ describe MergeTicketingClient::Collection do
|
|
79
85
|
end
|
80
86
|
end
|
81
87
|
|
88
|
+
describe 'test attribute "remote_data"' 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
|
+
|
82
94
|
end
|
@@ -25,12 +25,6 @@ describe MergeTicketingClient::CommentRequest do
|
|
25
25
|
expect(instance).to be_instance_of(MergeTicketingClient::CommentRequest)
|
26
26
|
end
|
27
27
|
end
|
28
|
-
describe 'test attribute "remote_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
28
|
describe 'test attribute "user"' do
|
35
29
|
it 'should work' do
|
36
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -67,12 +61,6 @@ describe MergeTicketingClient::CommentRequest do
|
|
67
61
|
end
|
68
62
|
end
|
69
63
|
|
70
|
-
describe 'test attribute "remote_created_at"' 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
64
|
describe 'test attribute "integration_params"' do
|
77
65
|
it 'should work' do
|
78
66
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/models/comment_spec.rb
CHANGED
@@ -79,13 +79,13 @@ describe MergeTicketingClient::Comment do
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
-
describe 'test attribute "
|
82
|
+
describe 'test attribute "remote_was_deleted"' do
|
83
83
|
it 'should work' do
|
84
84
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
-
describe 'test attribute "
|
88
|
+
describe 'test attribute "modified_at"' do
|
89
89
|
it 'should work' do
|
90
90
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
91
|
end
|
@@ -97,4 +97,10 @@ describe MergeTicketingClient::Comment do
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
|
+
describe 'test attribute "remote_data"' do
|
101
|
+
it 'should work' do
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
100
106
|
end
|
@@ -0,0 +1,46 @@
|
|
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::CommonModelScopesBodyRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeTicketingClient::CommonModelScopesBodyRequest do
|
21
|
+
let(:instance) { MergeTicketingClient::CommonModelScopesBodyRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CommonModelScopesBodyRequest' do
|
24
|
+
it 'should create an instance of CommonModelScopesBodyRequest' do
|
25
|
+
expect(instance).to be_instance_of(MergeTicketingClient::CommonModelScopesBodyRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "model_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 "enabled_actions"' 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 "disabled_fields"' 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
|
+
end
|
data/spec/models/contact_spec.rb
CHANGED
@@ -67,13 +67,13 @@ describe MergeTicketingClient::Contact do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
describe 'test attribute "
|
70
|
+
describe 'test attribute "remote_was_deleted"' do
|
71
71
|
it 'should work' do
|
72
72
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
describe 'test attribute "
|
76
|
+
describe 'test attribute "modified_at"' do
|
77
77
|
it 'should work' do
|
78
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
79
|
end
|
@@ -85,4 +85,10 @@ describe MergeTicketingClient::Contact do
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
describe 'test attribute "remote_data"' 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,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::EnabledActionsEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeTicketingClient::EnabledActionsEnum do
|
21
|
+
let(:instance) { MergeTicketingClient::EnabledActionsEnum.new }
|
22
|
+
|
23
|
+
describe 'test an instance of EnabledActionsEnum' do
|
24
|
+
it 'should create an instance of EnabledActionsEnum' do
|
25
|
+
expect(instance).to be_instance_of(MergeTicketingClient::EnabledActionsEnum)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -67,4 +67,10 @@ describe MergeTicketingClient::EndUserDetailsRequest do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
describe 'test attribute "common_models"' 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
|
+
|
70
76
|
end
|