purecloud 0.28.0 → 0.29.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config-ruby.json +1 -1
- data/lib/purecloud.rb +119 -110
- data/lib/purecloud/api/alerting_api.rb +609 -0
- data/lib/purecloud/api/analytics_api.rb +0 -618
- data/lib/purecloud/api/authorization_api.rb +32 -26
- data/lib/purecloud/api/callbacks_api.rb +5 -5
- data/lib/purecloud/api/calls_api.rb +5 -5
- data/lib/purecloud/api/chats_api.rb +5 -5
- data/lib/purecloud/api/configuration_api.rb +325 -4514
- data/lib/purecloud/api/conversations_api.rb +30 -157
- data/lib/purecloud/api/emails_api.rb +5 -5
- data/lib/purecloud/api/groups_api.rb +120 -0
- data/lib/purecloud/api/integrations_api.rb +6 -0
- data/lib/purecloud/api/integrations_workforce_management_api.rb +73 -0
- data/lib/purecloud/api/languages_api.rb +181 -0
- data/lib/purecloud/api/organization_api.rb +243 -0
- data/lib/purecloud/api/outbound_api.rb +13 -380
- data/lib/purecloud/api/presence_api.rb +20 -222
- data/lib/purecloud/api/quality_api.rb +30 -0
- data/lib/purecloud/api/recording_api.rb +12 -0
- data/lib/purecloud/api/routing_api.rb +211 -8
- data/lib/purecloud/api/scripts_api.rb +8 -2
- data/lib/purecloud/api/search_api.rb +315 -13
- data/lib/purecloud/api/socials_api.rb +5 -5
- data/lib/purecloud/api/telephony_providers_edge_api.rb +4594 -698
- data/lib/purecloud/api/users_api.rb +303 -44
- data/lib/purecloud/api/utilities_api.rb +0 -58
- data/lib/purecloud/api/videos_api.rb +5 -5
- data/lib/purecloud/models/address.rb +49 -51
- data/lib/purecloud/models/address_listing.rb +12 -12
- data/lib/purecloud/models/agent_activity_entity_listing.rb +11 -11
- data/lib/purecloud/models/{analytics_segment.rb → analytics_conversation_segment.rb} +8 -8
- data/lib/purecloud/models/analytics_query_predicate.rb +1 -1
- data/lib/purecloud/models/analytics_session.rb +1 -1
- data/lib/purecloud/models/attribute_entity_listing.rb +11 -11
- data/lib/purecloud/models/{primary_user_presence_source.rb → audit_entity.rb} +12 -24
- data/lib/purecloud/models/{facet.rb → audit_facet.rb} +1 -1
- data/lib/purecloud/models/audit_filter.rb +178 -0
- data/lib/purecloud/models/audit_message.rb +2 -2
- data/lib/purecloud/models/{facet_group.rb → audit_user.rb} +18 -20
- data/lib/purecloud/models/automate_queue_member_entity_listing.rb +11 -11
- data/lib/purecloud/models/available_additional_service_listing.rb +11 -11
- data/lib/purecloud/models/available_topic_entity_listing.rb +11 -11
- data/lib/purecloud/models/{chat_search_item.rb → billing_address.rb} +37 -27
- data/lib/purecloud/models/calibration_entity_listing.rb +11 -11
- data/lib/purecloud/models/call.rb +16 -4
- data/lib/purecloud/models/call_conversation.rb +1 -1
- data/lib/purecloud/models/{chat_search_listing.rb → call_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{call_participant.rb → call_media_participant.rb} +1 -1
- data/lib/purecloud/models/callable_time.rb +1 -1
- data/lib/purecloud/models/callable_time_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/callback_conversation.rb +1 -1
- data/lib/purecloud/models/callback_conversation_entity_listing.rb +238 -0
- data/lib/purecloud/models/{callback_participant.rb → callback_media_participant.rb} +1 -1
- data/lib/purecloud/models/campaign.rb +219 -17
- data/lib/purecloud/models/campaign_entity_listing.rb +11 -11
- data/lib/purecloud/models/campaign_sequence_entity_listing.rb +11 -11
- data/lib/purecloud/models/{facet_item.rb → campaign_time_slot.rb} +20 -20
- data/lib/purecloud/models/carrier_entity_listing.rb +11 -11
- data/lib/purecloud/models/certificate_authority_entity_listing.rb +11 -11
- data/lib/purecloud/models/change.rb +1 -1
- data/lib/purecloud/models/channel_entity_listing.rb +11 -11
- data/lib/purecloud/models/channel_topic_entity_listing.rb +11 -11
- data/lib/purecloud/models/chat_conversation.rb +1 -1
- data/lib/purecloud/models/{rule_entity_listing.rb → chat_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{chat_participant.rb → chat_media_participant.rb} +1 -1
- data/lib/purecloud/models/command_status_entity_listing.rb +11 -11
- data/lib/purecloud/models/common_audit_request.rb +2 -2
- data/lib/purecloud/models/{template.rb → composer_template.rb} +2 -2
- data/lib/purecloud/models/consumed_resources_entity_listing.rb +11 -11
- data/lib/purecloud/models/consuming_resources_entity_listing.rb +11 -11
- data/lib/purecloud/models/{client_transform_model.rb → contact_address.rb} +42 -36
- data/lib/purecloud/models/contact_list.rb +111 -1
- data/lib/purecloud/models/contact_list_entity_listing.rb +11 -11
- data/lib/purecloud/models/contact_listing.rb +11 -11
- data/lib/purecloud/models/{dialer_disposition_call_command.rb → contact_phone_number_column.rb} +20 -20
- data/lib/purecloud/models/{facet_filter_item.rb → content_filter_item.rb} +1 -1
- data/lib/purecloud/models/{transform_progress.rb → conversation_chat.rb} +91 -82
- data/lib/purecloud/models/conversation_entity_listing.rb +11 -11
- data/lib/purecloud/models/create_share_request.rb +2 -2
- data/lib/purecloud/models/create_share_request_member.rb +1 -1
- data/lib/purecloud/models/customer_account.rb +1 -1
- data/lib/purecloud/models/deleted_resource_consumer_entity_listing.rb +11 -11
- data/lib/purecloud/models/dependency_object_entity_listing.rb +11 -11
- data/lib/purecloud/models/dependency_type_entity_listing.rb +11 -11
- data/lib/purecloud/models/{action.rb → dialer_action.rb} +1 -1
- data/lib/purecloud/models/dialer_audit_request.rb +2 -2
- data/lib/purecloud/models/{transform_model.rb → dialer_contact.rb} +42 -28
- data/lib/purecloud/models/{rule.rb → dialer_rule.rb} +2 -2
- data/lib/purecloud/models/did.rb +1 -1
- data/lib/purecloud/models/did_entity_listing.rb +11 -11
- data/lib/purecloud/models/did_pool.rb +1 -1
- data/lib/purecloud/models/did_pool_entity_listing.rb +11 -11
- data/lib/purecloud/models/{metric_threshold.rb → disconnect_reason.rb} +29 -19
- data/lib/purecloud/models/dnc_list_entity_listing.rb +11 -11
- data/lib/purecloud/models/document_audit_entity_listing.rb +11 -11
- data/lib/purecloud/models/document_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_billing_period_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_certificate_authority.rb +1 -1
- data/lib/purecloud/models/domain_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing_query_result.rb +11 -11
- data/lib/purecloud/models/domain_invoice_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_logical_interface.rb +28 -2
- data/lib/purecloud/models/{dialer_place_call_command.rb → domain_role.rb} +16 -14
- data/lib/purecloud/models/domain_third_party_account_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_third_party_subscription_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge.rb +1 -1
- data/lib/purecloud/models/edge_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_group.rb +1 -1
- data/lib/purecloud/models/edge_group_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_line.rb +1 -1
- data/lib/purecloud/models/edge_line_entity_listing.rb +11 -11
- data/lib/purecloud/models/email_conversation.rb +1 -1
- data/lib/purecloud/models/{user_presence_entity_listing.rb → email_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{email_participant.rb → email_media_participant.rb} +1 -1
- data/lib/purecloud/models/email_message.rb +56 -26
- data/lib/purecloud/models/email_message_listing.rb +11 -11
- data/lib/purecloud/models/encryption_key_entity_listing.rb +11 -11
- data/lib/purecloud/models/endpoint.rb +2 -2
- data/lib/purecloud/models/endpoint_entity_listing.rb +11 -11
- data/lib/purecloud/models/entity.rb +20 -10
- data/lib/purecloud/models/evaluation_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluation_form_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluator_activity_entity_listing.rb +11 -11
- data/lib/purecloud/models/extension.rb +1 -1
- data/lib/purecloud/models/extension_entity_listing.rb +11 -11
- data/lib/purecloud/models/extension_pool.rb +1 -1
- data/lib/purecloud/models/extension_pool_entity_listing.rb +11 -11
- data/lib/purecloud/models/external_contact.rb +1 -1
- data/lib/purecloud/models/external_organization.rb +1 -1
- data/lib/purecloud/models/external_organization_listing.rb +11 -11
- data/lib/purecloud/models/fax_document_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_body.rb +1 -1
- data/lib/purecloud/models/flow_config_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_history_result_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_search_request.rb +222 -0
- data/lib/purecloud/models/flow_version_config_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_version_entity_listing.rb +11 -11
- data/lib/purecloud/models/group.rb +42 -36
- data/lib/purecloud/models/group_entity_listing.rb +11 -11
- data/lib/purecloud/models/groups_search_response.rb +230 -0
- data/lib/purecloud/models/hardware_rate_listing.rb +11 -11
- data/lib/purecloud/models/health_check_info.rb +1 -31
- data/lib/purecloud/models/inbound_domain_entity_listing.rb +11 -11
- data/lib/purecloud/models/inbound_route_entity_listing.rb +11 -11
- data/lib/purecloud/models/integration_type_entity_listing.rb +11 -11
- data/lib/purecloud/models/interaction_stats_alert.rb +373 -0
- data/lib/purecloud/models/interaction_stats_alert_container.rb +238 -0
- data/lib/purecloud/models/{alert.rb → interaction_stats_rule.rb} +111 -80
- data/lib/purecloud/models/interaction_stats_rule_container.rb +238 -0
- data/lib/purecloud/models/ivr.rb +1 -1
- data/lib/purecloud/models/ivr_entity_listing.rb +11 -11
- data/lib/purecloud/models/json_node.rb +395 -0
- data/lib/purecloud/models/json_node_search_response.rb +228 -0
- data/lib/purecloud/models/language_entity_listing.rb +11 -11
- data/lib/purecloud/models/library_entity_listing.rb +11 -11
- data/lib/purecloud/models/line.rb +2 -2
- data/lib/purecloud/models/line_base.rb +1 -1
- data/lib/purecloud/models/line_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/line_entity_listing.rb +11 -11
- data/lib/purecloud/models/{body_1.rb → line_properties.rb} +1 -1
- data/lib/purecloud/models/linked_entity_listing_flow_details.rb +11 -11
- data/lib/purecloud/models/linked_entity_listing_work_item_search_details.rb +11 -11
- data/lib/purecloud/models/location_entity_listing.rb +11 -11
- data/lib/purecloud/models/logical_interface_entity_listing.rb +11 -11
- data/lib/purecloud/models/media_participant_request.rb +232 -0
- data/lib/purecloud/models/{inline_response_200.rb → member_entity.rb} +13 -3
- data/lib/purecloud/models/note_listing.rb +11 -11
- data/lib/purecloud/models/number_plan.rb +1 -1
- data/lib/purecloud/models/o_auth_client.rb +1 -1
- data/lib/purecloud/models/o_auth_client_entity_listing.rb +11 -11
- data/lib/purecloud/models/o_auth_provider_entity_listing.rb +11 -11
- data/lib/purecloud/models/organization.rb +2 -22
- data/lib/purecloud/models/organization_presence_entity_listing.rb +11 -11
- data/lib/purecloud/models/organization_role_entity_listing.rb +11 -11
- data/lib/purecloud/models/orphan_recording_listing.rb +11 -11
- data/lib/purecloud/models/outbound_route.rb +1 -1
- data/lib/purecloud/models/outbound_route_entity_listing.rb +11 -11
- data/lib/purecloud/models/page.rb +2 -2
- data/lib/purecloud/models/participant.rb +1 -1
- data/lib/purecloud/models/participant_request.rb +7 -0
- data/lib/purecloud/models/payment_method_listing.rb +11 -11
- data/lib/purecloud/models/permission_collection_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone.rb +2 -2
- data/lib/purecloud/models/phone_base.rb +1 -1
- data/lib/purecloud/models/phone_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_meta_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/physical_interface_entity_listing.rb +11 -11
- data/lib/purecloud/models/policy_entity_listing.rb +11 -11
- data/lib/purecloud/models/prompt_asset.rb +25 -1
- data/lib/purecloud/models/prompt_asset_entity_listing.rb +11 -11
- data/lib/purecloud/models/prompt_entity_listing.rb +11 -11
- data/lib/purecloud/models/quality_audit_page.rb +11 -11
- data/lib/purecloud/models/query_request.rb +1 -1
- data/lib/purecloud/models/queue.rb +1 -1
- data/lib/purecloud/models/queue_entity_listing.rb +11 -11
- data/lib/purecloud/models/queues_entity_listing.rb +11 -11
- data/lib/purecloud/models/quote_charge.rb +1 -1
- data/lib/purecloud/models/quote_listing.rb +11 -11
- data/lib/purecloud/models/recording.rb +13 -2
- data/lib/purecloud/models/{preview.rb → recording_email_message.rb} +72 -57
- data/lib/purecloud/models/relationship_listing.rb +11 -11
- data/lib/purecloud/models/report_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +11 -11
- data/lib/purecloud/models/report_schedule.rb +1 -1
- data/lib/purecloud/models/report_schedule_entity_listing.rb +11 -11
- data/lib/purecloud/models/resource_permission_policy.rb +1 -11
- data/lib/purecloud/models/response.rb +84 -14
- data/lib/purecloud/models/response_entity_list.rb +11 -11
- data/lib/purecloud/models/response_entity_listing.rb +11 -11
- data/lib/purecloud/models/{filter.rb → response_filter.rb} +1 -1
- data/lib/purecloud/models/response_query_request.rb +1 -1
- data/lib/purecloud/models/response_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/rule_set.rb +1 -1
- data/lib/purecloud/models/rule_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/schedule.rb +1 -1
- data/lib/purecloud/models/schedule_entity_listing.rb +11 -11
- data/lib/purecloud/models/schedule_group.rb +1 -1
- data/lib/purecloud/models/schedule_group_entity_listing.rb +11 -11
- data/lib/purecloud/models/schema_category_entity_listing.rb +11 -11
- data/lib/purecloud/models/schema_reference_entity_listing.rb +11 -11
- data/lib/purecloud/models/script_entity_listing.rb +11 -11
- data/lib/purecloud/models/{occurrence.rb → search_aggregation.rb} +19 -9
- data/lib/purecloud/models/{conversation_historical_query_request_filter.rb → search_criteria.rb} +83 -24
- data/lib/purecloud/models/search_request.rb +73 -50
- data/lib/purecloud/models/security_profile_entity_listing.rb +11 -11
- data/lib/purecloud/models/service_entity_listing.rb +11 -11
- data/lib/purecloud/models/share_entity_listing.rb +11 -11
- data/lib/purecloud/models/{group_images.rb → shared_entity.rb} +8 -10
- data/lib/purecloud/models/site.rb +1 -1
- data/lib/purecloud/models/site_entity_listing.rb +11 -11
- data/lib/purecloud/models/skill_entity_listing.rb +11 -11
- data/lib/purecloud/models/social_conversation.rb +1 -1
- data/lib/purecloud/models/social_conversation_entity_listing.rb +238 -0
- data/lib/purecloud/models/{social_participant.rb → social_media_participant.rb} +1 -1
- data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +11 -11
- data/lib/purecloud/models/station.rb +11 -1
- data/lib/purecloud/models/station_entity_listing.rb +11 -11
- data/lib/purecloud/models/{facets.rb → subscriber_response.rb} +16 -16
- data/lib/purecloud/models/system_prompt_asset.rb +25 -1
- data/lib/purecloud/models/system_prompt_asset_entity_listing.rb +11 -11
- data/lib/purecloud/models/system_prompt_entity_listing.rb +11 -11
- data/lib/purecloud/models/tag_value_entity_listing.rb +11 -11
- data/lib/purecloud/models/template_entity_listing.rb +12 -12
- data/lib/purecloud/models/text_table_transform_entity_listing.rb +11 -11
- data/lib/purecloud/models/time_slot.rb +3 -0
- data/lib/purecloud/models/time_zone_entity_listing.rb +11 -11
- data/lib/purecloud/models/trunk_base.rb +2 -2
- data/lib/purecloud/models/trunk_metabase_entity_listing.rb +11 -11
- data/lib/purecloud/models/unread_metric.rb +1 -0
- data/lib/purecloud/models/unread_status.rb +149 -0
- data/lib/purecloud/models/user.rb +7 -7
- data/lib/purecloud/models/user_action_category_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_action_metadata_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_authorization.rb +7 -37
- data/lib/purecloud/models/user_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_me.rb +375 -0
- data/lib/purecloud/models/user_presence.rb +14 -32
- data/lib/purecloud/models/user_queue.rb +1 -1
- data/lib/purecloud/models/user_queue_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_recording_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_skill_entity_listing.rb +11 -11
- data/lib/purecloud/models/users_entity_listing.rb +11 -11
- data/lib/purecloud/models/users_search_response.rb +230 -0
- data/lib/purecloud/models/validate_address_response.rb +1 -1
- data/lib/purecloud/models/video_conversation.rb +1 -1
- data/lib/purecloud/models/{alert_entity_listing.rb → video_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{video_participant.rb → video_media_participant.rb} +1 -1
- data/lib/purecloud/models/voice_rate_international_entity_listing.rb +11 -11
- data/lib/purecloud/models/voice_xml_operation_entity_listing.rb +11 -11
- data/lib/purecloud/models/voicemail_message_entity_listing.rb +11 -11
- data/lib/purecloud/models/workspace_entity_listing.rb +11 -11
- data/lib/purecloud/models/workspace_member_entity_listing.rb +11 -11
- data/lib/purecloud/models/wrapup_code_entity_listing.rb +11 -11
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +54 -45
- data/lib/purecloud/api/architect_api.rb +0 -3285
- data/lib/purecloud/models/chat_search_request.rb +0 -244
- data/lib/purecloud/models/conversation_historical_query_request_body.rb +0 -185
- data/lib/purecloud/models/conversation_query_response.rb +0 -366
- data/lib/purecloud/models/dialer_call.rb +0 -156
- data/lib/purecloud/models/penetration_rate.rb +0 -176
- data/lib/purecloud/models/penetration_rate_id.rb +0 -156
- data/lib/purecloud/models/progress_model.rb +0 -169
@@ -12,12 +12,12 @@ module PureCloud
|
|
12
12
|
|
13
13
|
attr_accessor :self_uri
|
14
14
|
|
15
|
-
attr_accessor :next_uri
|
16
|
-
|
17
15
|
attr_accessor :first_uri
|
18
16
|
|
19
17
|
attr_accessor :previous_uri
|
20
18
|
|
19
|
+
attr_accessor :next_uri
|
20
|
+
|
21
21
|
attr_accessor :last_uri
|
22
22
|
|
23
23
|
attr_accessor :page_count
|
@@ -36,12 +36,12 @@ module PureCloud
|
|
36
36
|
|
37
37
|
:'self_uri' => :'selfUri',
|
38
38
|
|
39
|
-
:'next_uri' => :'nextUri',
|
40
|
-
|
41
39
|
:'first_uri' => :'firstUri',
|
42
40
|
|
43
41
|
:'previous_uri' => :'previousUri',
|
44
42
|
|
43
|
+
:'next_uri' => :'nextUri',
|
44
|
+
|
45
45
|
:'last_uri' => :'lastUri',
|
46
46
|
|
47
47
|
:'page_count' => :'pageCount'
|
@@ -57,9 +57,9 @@ module PureCloud
|
|
57
57
|
:'total' => :'Integer',
|
58
58
|
:'entities' => :'Array<Script>',
|
59
59
|
:'self_uri' => :'String',
|
60
|
-
:'next_uri' => :'String',
|
61
60
|
:'first_uri' => :'String',
|
62
61
|
:'previous_uri' => :'String',
|
62
|
+
:'next_uri' => :'String',
|
63
63
|
:'last_uri' => :'String',
|
64
64
|
:'page_count' => :'Integer'
|
65
65
|
|
@@ -95,10 +95,6 @@ module PureCloud
|
|
95
95
|
self.self_uri = attributes[:'selfUri']
|
96
96
|
end
|
97
97
|
|
98
|
-
if attributes[:'nextUri']
|
99
|
-
self.next_uri = attributes[:'nextUri']
|
100
|
-
end
|
101
|
-
|
102
98
|
if attributes[:'firstUri']
|
103
99
|
self.first_uri = attributes[:'firstUri']
|
104
100
|
end
|
@@ -107,6 +103,10 @@ module PureCloud
|
|
107
103
|
self.previous_uri = attributes[:'previousUri']
|
108
104
|
end
|
109
105
|
|
106
|
+
if attributes[:'nextUri']
|
107
|
+
self.next_uri = attributes[:'nextUri']
|
108
|
+
end
|
109
|
+
|
110
110
|
if attributes[:'lastUri']
|
111
111
|
self.last_uri = attributes[:'lastUri']
|
112
112
|
end
|
@@ -126,9 +126,9 @@ module PureCloud
|
|
126
126
|
total == o.total &&
|
127
127
|
entities == o.entities &&
|
128
128
|
self_uri == o.self_uri &&
|
129
|
-
next_uri == o.next_uri &&
|
130
129
|
first_uri == o.first_uri &&
|
131
130
|
previous_uri == o.previous_uri &&
|
131
|
+
next_uri == o.next_uri &&
|
132
132
|
last_uri == o.last_uri &&
|
133
133
|
page_count == o.page_count
|
134
134
|
end
|
@@ -140,7 +140,7 @@ module PureCloud
|
|
140
140
|
|
141
141
|
# Calculate hash code according to all attributes.
|
142
142
|
def hash
|
143
|
-
[page_size, page_number, total, entities, self_uri,
|
143
|
+
[page_size, page_number, total, entities, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
144
144
|
end
|
145
145
|
|
146
146
|
# build the object from hash
|
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module PureCloud
|
4
|
-
class
|
5
|
-
attr_accessor :
|
4
|
+
class SearchAggregation
|
5
|
+
attr_accessor :field
|
6
|
+
|
7
|
+
attr_accessor :name
|
6
8
|
|
7
9
|
attr_accessor :type
|
8
10
|
|
@@ -10,7 +12,9 @@ module PureCloud
|
|
10
12
|
def self.attribute_map
|
11
13
|
{
|
12
14
|
|
13
|
-
:'
|
15
|
+
:'field' => :'field',
|
16
|
+
|
17
|
+
:'name' => :'name',
|
14
18
|
|
15
19
|
:'type' => :'type'
|
16
20
|
|
@@ -20,7 +24,8 @@ module PureCloud
|
|
20
24
|
# Attribute type mapping.
|
21
25
|
def self.swagger_types
|
22
26
|
{
|
23
|
-
:'
|
27
|
+
:'field' => :'String',
|
28
|
+
:'name' => :'String',
|
24
29
|
:'type' => :'String'
|
25
30
|
|
26
31
|
}
|
@@ -33,8 +38,12 @@ module PureCloud
|
|
33
38
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
34
39
|
|
35
40
|
|
36
|
-
if attributes[:'
|
37
|
-
self.
|
41
|
+
if attributes[:'field']
|
42
|
+
self.field = attributes[:'field']
|
43
|
+
end
|
44
|
+
|
45
|
+
if attributes[:'name']
|
46
|
+
self.name = attributes[:'name']
|
38
47
|
end
|
39
48
|
|
40
49
|
if attributes[:'type']
|
@@ -45,7 +54,7 @@ module PureCloud
|
|
45
54
|
|
46
55
|
# Custom attribute writer method checking allowed values (enum).
|
47
56
|
def type=(type)
|
48
|
-
allowed_values = ["
|
57
|
+
allowed_values = ["TERM", "COUNT", "SUM", "AVERAGE"]
|
49
58
|
if type && !allowed_values.include?(type)
|
50
59
|
fail "invalid value for 'type', must be one of #{allowed_values}"
|
51
60
|
end
|
@@ -56,7 +65,8 @@ module PureCloud
|
|
56
65
|
def ==(o)
|
57
66
|
return true if self.equal?(o)
|
58
67
|
self.class == o.class &&
|
59
|
-
|
68
|
+
field == o.field &&
|
69
|
+
name == o.name &&
|
60
70
|
type == o.type
|
61
71
|
end
|
62
72
|
|
@@ -67,7 +77,7 @@ module PureCloud
|
|
67
77
|
|
68
78
|
# Calculate hash code according to all attributes.
|
69
79
|
def hash
|
70
|
-
[
|
80
|
+
[field, name, type].hash
|
71
81
|
end
|
72
82
|
|
73
83
|
# build the object from hash
|
data/lib/purecloud/models/{conversation_historical_query_request_filter.rb → search_criteria.rb}
RENAMED
@@ -1,26 +1,42 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module PureCloud
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
attr_accessor :
|
4
|
+
class SearchCriteria
|
5
|
+
attr_accessor :end_value
|
6
|
+
|
7
|
+
attr_accessor :values
|
8
|
+
|
9
|
+
attr_accessor :start_value
|
10
|
+
|
11
|
+
attr_accessor :type
|
12
|
+
|
13
|
+
attr_accessor :fields
|
14
|
+
|
15
|
+
attr_accessor :value
|
8
16
|
|
9
|
-
# Filter operator. For target 'interval' allowable values are '=', 'between', '<=', 'before', '>=', 'after'. For targets 'active', 'agentId', 'connectedOnly', 'dialerCampaignId', 'disconnectType', 'mediaType', 'purpose', 'qualityEvaluationAgent', 'qualityEvaluationForm', 'qualityEvaluator', 'queueId', 'wrapUpCode' allowable value is '='. For target 'duration' allowable values are '=', '<', '<=', '>', '>='. For targets 'ani', 'dnis', 'freeText' allowable value is 'contains'. For targets 'recordingRestored', 'qualityEvaluationCriticalScore', ', qualityEvaluationScore' no operator is required
|
10
17
|
attr_accessor :operator
|
11
18
|
|
12
|
-
|
13
|
-
attr_accessor :values
|
19
|
+
attr_accessor :group
|
14
20
|
|
15
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
16
22
|
def self.attribute_map
|
17
23
|
{
|
18
24
|
|
19
|
-
:'
|
25
|
+
:'end_value' => :'endValue',
|
26
|
+
|
27
|
+
:'values' => :'values',
|
28
|
+
|
29
|
+
:'start_value' => :'startValue',
|
30
|
+
|
31
|
+
:'type' => :'type',
|
32
|
+
|
33
|
+
:'fields' => :'fields',
|
34
|
+
|
35
|
+
:'value' => :'value',
|
20
36
|
|
21
37
|
:'operator' => :'operator',
|
22
38
|
|
23
|
-
:'
|
39
|
+
:'group' => :'group'
|
24
40
|
|
25
41
|
}
|
26
42
|
end
|
@@ -28,9 +44,14 @@ module PureCloud
|
|
28
44
|
# Attribute type mapping.
|
29
45
|
def self.swagger_types
|
30
46
|
{
|
31
|
-
:'
|
47
|
+
:'end_value' => :'String',
|
48
|
+
:'values' => :'Array<String>',
|
49
|
+
:'start_value' => :'String',
|
50
|
+
:'type' => :'String',
|
51
|
+
:'fields' => :'Array<String>',
|
52
|
+
:'value' => :'String',
|
32
53
|
:'operator' => :'String',
|
33
|
-
:'
|
54
|
+
:'group' => :'Array<SearchCriteria>'
|
34
55
|
|
35
56
|
}
|
36
57
|
end
|
@@ -42,38 +63,76 @@ module PureCloud
|
|
42
63
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
43
64
|
|
44
65
|
|
45
|
-
if attributes[:'
|
46
|
-
self.
|
66
|
+
if attributes[:'endValue']
|
67
|
+
self.end_value = attributes[:'endValue']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes[:'values']
|
71
|
+
if (value = attributes[:'values']).is_a?(Array)
|
72
|
+
self.values = value
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes[:'startValue']
|
77
|
+
self.start_value = attributes[:'startValue']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes[:'type']
|
81
|
+
self.type = attributes[:'type']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes[:'fields']
|
85
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
86
|
+
self.fields = value
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes[:'value']
|
91
|
+
self.value = attributes[:'value']
|
47
92
|
end
|
48
93
|
|
49
94
|
if attributes[:'operator']
|
50
95
|
self.operator = attributes[:'operator']
|
51
96
|
end
|
52
97
|
|
53
|
-
if attributes[:'
|
54
|
-
if (value = attributes[:'
|
55
|
-
self.
|
98
|
+
if attributes[:'group']
|
99
|
+
if (value = attributes[:'group']).is_a?(Array)
|
100
|
+
self.group = value
|
56
101
|
end
|
57
102
|
end
|
58
103
|
|
59
104
|
end
|
60
105
|
|
61
106
|
# Custom attribute writer method checking allowed values (enum).
|
62
|
-
def
|
63
|
-
allowed_values = ["
|
64
|
-
if
|
65
|
-
fail "invalid value for '
|
107
|
+
def type=(type)
|
108
|
+
allowed_values = ["EXACT", "CONTAINS", "STARTS_WITH", "REQUIRED_FIELDS", "RANGE", "DATE_RANGE", "LESS_THAN", "LESS_THAN_EQUAL_TO", "GREATER_THAN", "GREATER_THAN_EQUAL_TO", "SIMPLE_STRING"]
|
109
|
+
if type && !allowed_values.include?(type)
|
110
|
+
fail "invalid value for 'type', must be one of #{allowed_values}"
|
111
|
+
end
|
112
|
+
@type = type
|
113
|
+
end
|
114
|
+
|
115
|
+
# Custom attribute writer method checking allowed values (enum).
|
116
|
+
def operator=(operator)
|
117
|
+
allowed_values = ["AND", "OR", "NOT"]
|
118
|
+
if operator && !allowed_values.include?(operator)
|
119
|
+
fail "invalid value for 'operator', must be one of #{allowed_values}"
|
66
120
|
end
|
67
|
-
@
|
121
|
+
@operator = operator
|
68
122
|
end
|
69
123
|
|
70
124
|
# Check equality by comparing each attribute.
|
71
125
|
def ==(o)
|
72
126
|
return true if self.equal?(o)
|
73
127
|
self.class == o.class &&
|
74
|
-
|
128
|
+
end_value == o.end_value &&
|
129
|
+
values == o.values &&
|
130
|
+
start_value == o.start_value &&
|
131
|
+
type == o.type &&
|
132
|
+
fields == o.fields &&
|
133
|
+
value == o.value &&
|
75
134
|
operator == o.operator &&
|
76
|
-
|
135
|
+
group == o.group
|
77
136
|
end
|
78
137
|
|
79
138
|
# @see the `==` method
|
@@ -83,7 +142,7 @@ module PureCloud
|
|
83
142
|
|
84
143
|
# Calculate hash code according to all attributes.
|
85
144
|
def hash
|
86
|
-
[
|
145
|
+
[end_value, values, start_value, type, fields, value, operator, group].hash
|
87
146
|
end
|
88
147
|
|
89
148
|
# build the object from hash
|
@@ -1,46 +1,46 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module PureCloud
|
4
|
-
# Used to perform a search on various data stored in search engines
|
5
4
|
class SearchRequest
|
6
|
-
|
7
|
-
attr_accessor :search_phrase
|
5
|
+
attr_accessor :types
|
8
6
|
|
9
|
-
|
10
|
-
|
7
|
+
attr_accessor :sort_order
|
8
|
+
|
9
|
+
attr_accessor :query
|
10
|
+
|
11
|
+
attr_accessor :sort_by
|
11
12
|
|
12
|
-
# Number of entries to return/calculate per page.
|
13
13
|
attr_accessor :page_size
|
14
14
|
|
15
|
-
|
16
|
-
attr_accessor :search_fields
|
15
|
+
attr_accessor :page_number
|
17
16
|
|
18
|
-
|
19
|
-
attr_accessor :facet_requests
|
17
|
+
attr_accessor :return_fields
|
20
18
|
|
21
|
-
|
22
|
-
attr_accessor :sort
|
19
|
+
attr_accessor :aggregations
|
23
20
|
|
24
|
-
|
25
|
-
attr_accessor :filters
|
21
|
+
attr_accessor :expand
|
26
22
|
|
27
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
24
|
def self.attribute_map
|
29
25
|
{
|
30
26
|
|
31
|
-
:'
|
27
|
+
:'types' => :'types',
|
32
28
|
|
33
|
-
:'
|
29
|
+
:'sort_order' => :'sortOrder',
|
30
|
+
|
31
|
+
:'query' => :'query',
|
32
|
+
|
33
|
+
:'sort_by' => :'sortBy',
|
34
34
|
|
35
35
|
:'page_size' => :'pageSize',
|
36
36
|
|
37
|
-
:'
|
37
|
+
:'page_number' => :'pageNumber',
|
38
38
|
|
39
|
-
:'
|
39
|
+
:'return_fields' => :'returnFields',
|
40
40
|
|
41
|
-
:'
|
41
|
+
:'aggregations' => :'aggregations',
|
42
42
|
|
43
|
-
:'
|
43
|
+
:'expand' => :'expand'
|
44
44
|
|
45
45
|
}
|
46
46
|
end
|
@@ -48,13 +48,15 @@ module PureCloud
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.swagger_types
|
50
50
|
{
|
51
|
-
:'
|
52
|
-
:'
|
51
|
+
:'types' => :'Array<String>',
|
52
|
+
:'sort_order' => :'String',
|
53
|
+
:'query' => :'Array<SearchCriteria>',
|
54
|
+
:'sort_by' => :'String',
|
53
55
|
:'page_size' => :'Integer',
|
54
|
-
:'
|
55
|
-
:'
|
56
|
-
:'
|
57
|
-
:'
|
56
|
+
:'page_number' => :'Integer',
|
57
|
+
:'return_fields' => :'Array<String>',
|
58
|
+
:'aggregations' => :'Array<SearchAggregation>',
|
59
|
+
:'expand' => :'Array<String>'
|
58
60
|
|
59
61
|
}
|
60
62
|
end
|
@@ -66,55 +68,76 @@ module PureCloud
|
|
66
68
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
67
69
|
|
68
70
|
|
69
|
-
if attributes[:'
|
70
|
-
|
71
|
+
if attributes[:'types']
|
72
|
+
if (value = attributes[:'types']).is_a?(Array)
|
73
|
+
self.types = value
|
74
|
+
end
|
71
75
|
end
|
72
76
|
|
73
|
-
if attributes[:'
|
74
|
-
self.
|
77
|
+
if attributes[:'sortOrder']
|
78
|
+
self.sort_order = attributes[:'sortOrder']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes[:'query']
|
82
|
+
if (value = attributes[:'query']).is_a?(Array)
|
83
|
+
self.query = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes[:'sortBy']
|
88
|
+
self.sort_by = attributes[:'sortBy']
|
75
89
|
end
|
76
90
|
|
77
91
|
if attributes[:'pageSize']
|
78
92
|
self.page_size = attributes[:'pageSize']
|
79
93
|
end
|
80
94
|
|
81
|
-
if attributes[:'
|
82
|
-
|
83
|
-
self.search_fields = value
|
84
|
-
end
|
95
|
+
if attributes[:'pageNumber']
|
96
|
+
self.page_number = attributes[:'pageNumber']
|
85
97
|
end
|
86
98
|
|
87
|
-
if attributes[:'
|
88
|
-
if (value = attributes[:'
|
89
|
-
self.
|
99
|
+
if attributes[:'returnFields']
|
100
|
+
if (value = attributes[:'returnFields']).is_a?(Array)
|
101
|
+
self.return_fields = value
|
90
102
|
end
|
91
103
|
end
|
92
104
|
|
93
|
-
if attributes[:'
|
94
|
-
if (value = attributes[:'
|
95
|
-
self.
|
105
|
+
if attributes[:'aggregations']
|
106
|
+
if (value = attributes[:'aggregations']).is_a?(Array)
|
107
|
+
self.aggregations = value
|
96
108
|
end
|
97
109
|
end
|
98
110
|
|
99
|
-
if attributes[:'
|
100
|
-
if (value = attributes[:'
|
101
|
-
self.
|
111
|
+
if attributes[:'expand']
|
112
|
+
if (value = attributes[:'expand']).is_a?(Array)
|
113
|
+
self.expand = value
|
102
114
|
end
|
103
115
|
end
|
104
116
|
|
105
117
|
end
|
106
118
|
|
119
|
+
# Custom attribute writer method checking allowed values (enum).
|
120
|
+
def sort_order=(sort_order)
|
121
|
+
allowed_values = ["ASC", "DESC", "SCORE"]
|
122
|
+
if sort_order && !allowed_values.include?(sort_order)
|
123
|
+
fail "invalid value for 'sort_order', must be one of #{allowed_values}"
|
124
|
+
end
|
125
|
+
@sort_order = sort_order
|
126
|
+
end
|
127
|
+
|
107
128
|
# Check equality by comparing each attribute.
|
108
129
|
def ==(o)
|
109
130
|
return true if self.equal?(o)
|
110
131
|
self.class == o.class &&
|
111
|
-
|
112
|
-
|
132
|
+
types == o.types &&
|
133
|
+
sort_order == o.sort_order &&
|
134
|
+
query == o.query &&
|
135
|
+
sort_by == o.sort_by &&
|
113
136
|
page_size == o.page_size &&
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
137
|
+
page_number == o.page_number &&
|
138
|
+
return_fields == o.return_fields &&
|
139
|
+
aggregations == o.aggregations &&
|
140
|
+
expand == o.expand
|
118
141
|
end
|
119
142
|
|
120
143
|
# @see the `==` method
|
@@ -124,7 +147,7 @@ module PureCloud
|
|
124
147
|
|
125
148
|
# Calculate hash code according to all attributes.
|
126
149
|
def hash
|
127
|
-
[
|
150
|
+
[types, sort_order, query, sort_by, page_size, page_number, return_fields, aggregations, expand].hash
|
128
151
|
end
|
129
152
|
|
130
153
|
# build the object from hash
|