purecloud 0.28.0 → 0.29.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (294) hide show
  1. checksums.yaml +4 -4
  2. data/config-ruby.json +1 -1
  3. data/lib/purecloud.rb +119 -110
  4. data/lib/purecloud/api/alerting_api.rb +609 -0
  5. data/lib/purecloud/api/analytics_api.rb +0 -618
  6. data/lib/purecloud/api/authorization_api.rb +32 -26
  7. data/lib/purecloud/api/callbacks_api.rb +5 -5
  8. data/lib/purecloud/api/calls_api.rb +5 -5
  9. data/lib/purecloud/api/chats_api.rb +5 -5
  10. data/lib/purecloud/api/configuration_api.rb +325 -4514
  11. data/lib/purecloud/api/conversations_api.rb +30 -157
  12. data/lib/purecloud/api/emails_api.rb +5 -5
  13. data/lib/purecloud/api/groups_api.rb +120 -0
  14. data/lib/purecloud/api/integrations_api.rb +6 -0
  15. data/lib/purecloud/api/integrations_workforce_management_api.rb +73 -0
  16. data/lib/purecloud/api/languages_api.rb +181 -0
  17. data/lib/purecloud/api/organization_api.rb +243 -0
  18. data/lib/purecloud/api/outbound_api.rb +13 -380
  19. data/lib/purecloud/api/presence_api.rb +20 -222
  20. data/lib/purecloud/api/quality_api.rb +30 -0
  21. data/lib/purecloud/api/recording_api.rb +12 -0
  22. data/lib/purecloud/api/routing_api.rb +211 -8
  23. data/lib/purecloud/api/scripts_api.rb +8 -2
  24. data/lib/purecloud/api/search_api.rb +315 -13
  25. data/lib/purecloud/api/socials_api.rb +5 -5
  26. data/lib/purecloud/api/telephony_providers_edge_api.rb +4594 -698
  27. data/lib/purecloud/api/users_api.rb +303 -44
  28. data/lib/purecloud/api/utilities_api.rb +0 -58
  29. data/lib/purecloud/api/videos_api.rb +5 -5
  30. data/lib/purecloud/models/address.rb +49 -51
  31. data/lib/purecloud/models/address_listing.rb +12 -12
  32. data/lib/purecloud/models/agent_activity_entity_listing.rb +11 -11
  33. data/lib/purecloud/models/{analytics_segment.rb → analytics_conversation_segment.rb} +8 -8
  34. data/lib/purecloud/models/analytics_query_predicate.rb +1 -1
  35. data/lib/purecloud/models/analytics_session.rb +1 -1
  36. data/lib/purecloud/models/attribute_entity_listing.rb +11 -11
  37. data/lib/purecloud/models/{primary_user_presence_source.rb → audit_entity.rb} +12 -24
  38. data/lib/purecloud/models/{facet.rb → audit_facet.rb} +1 -1
  39. data/lib/purecloud/models/audit_filter.rb +178 -0
  40. data/lib/purecloud/models/audit_message.rb +2 -2
  41. data/lib/purecloud/models/{facet_group.rb → audit_user.rb} +18 -20
  42. data/lib/purecloud/models/automate_queue_member_entity_listing.rb +11 -11
  43. data/lib/purecloud/models/available_additional_service_listing.rb +11 -11
  44. data/lib/purecloud/models/available_topic_entity_listing.rb +11 -11
  45. data/lib/purecloud/models/{chat_search_item.rb → billing_address.rb} +37 -27
  46. data/lib/purecloud/models/calibration_entity_listing.rb +11 -11
  47. data/lib/purecloud/models/call.rb +16 -4
  48. data/lib/purecloud/models/call_conversation.rb +1 -1
  49. data/lib/purecloud/models/{chat_search_listing.rb → call_conversation_entity_listing.rb} +13 -13
  50. data/lib/purecloud/models/{call_participant.rb → call_media_participant.rb} +1 -1
  51. data/lib/purecloud/models/callable_time.rb +1 -1
  52. data/lib/purecloud/models/callable_time_set_entity_listing.rb +11 -11
  53. data/lib/purecloud/models/callback_conversation.rb +1 -1
  54. data/lib/purecloud/models/callback_conversation_entity_listing.rb +238 -0
  55. data/lib/purecloud/models/{callback_participant.rb → callback_media_participant.rb} +1 -1
  56. data/lib/purecloud/models/campaign.rb +219 -17
  57. data/lib/purecloud/models/campaign_entity_listing.rb +11 -11
  58. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +11 -11
  59. data/lib/purecloud/models/{facet_item.rb → campaign_time_slot.rb} +20 -20
  60. data/lib/purecloud/models/carrier_entity_listing.rb +11 -11
  61. data/lib/purecloud/models/certificate_authority_entity_listing.rb +11 -11
  62. data/lib/purecloud/models/change.rb +1 -1
  63. data/lib/purecloud/models/channel_entity_listing.rb +11 -11
  64. data/lib/purecloud/models/channel_topic_entity_listing.rb +11 -11
  65. data/lib/purecloud/models/chat_conversation.rb +1 -1
  66. data/lib/purecloud/models/{rule_entity_listing.rb → chat_conversation_entity_listing.rb} +13 -13
  67. data/lib/purecloud/models/{chat_participant.rb → chat_media_participant.rb} +1 -1
  68. data/lib/purecloud/models/command_status_entity_listing.rb +11 -11
  69. data/lib/purecloud/models/common_audit_request.rb +2 -2
  70. data/lib/purecloud/models/{template.rb → composer_template.rb} +2 -2
  71. data/lib/purecloud/models/consumed_resources_entity_listing.rb +11 -11
  72. data/lib/purecloud/models/consuming_resources_entity_listing.rb +11 -11
  73. data/lib/purecloud/models/{client_transform_model.rb → contact_address.rb} +42 -36
  74. data/lib/purecloud/models/contact_list.rb +111 -1
  75. data/lib/purecloud/models/contact_list_entity_listing.rb +11 -11
  76. data/lib/purecloud/models/contact_listing.rb +11 -11
  77. data/lib/purecloud/models/{dialer_disposition_call_command.rb → contact_phone_number_column.rb} +20 -20
  78. data/lib/purecloud/models/{facet_filter_item.rb → content_filter_item.rb} +1 -1
  79. data/lib/purecloud/models/{transform_progress.rb → conversation_chat.rb} +91 -82
  80. data/lib/purecloud/models/conversation_entity_listing.rb +11 -11
  81. data/lib/purecloud/models/create_share_request.rb +2 -2
  82. data/lib/purecloud/models/create_share_request_member.rb +1 -1
  83. data/lib/purecloud/models/customer_account.rb +1 -1
  84. data/lib/purecloud/models/deleted_resource_consumer_entity_listing.rb +11 -11
  85. data/lib/purecloud/models/dependency_object_entity_listing.rb +11 -11
  86. data/lib/purecloud/models/dependency_type_entity_listing.rb +11 -11
  87. data/lib/purecloud/models/{action.rb → dialer_action.rb} +1 -1
  88. data/lib/purecloud/models/dialer_audit_request.rb +2 -2
  89. data/lib/purecloud/models/{transform_model.rb → dialer_contact.rb} +42 -28
  90. data/lib/purecloud/models/{rule.rb → dialer_rule.rb} +2 -2
  91. data/lib/purecloud/models/did.rb +1 -1
  92. data/lib/purecloud/models/did_entity_listing.rb +11 -11
  93. data/lib/purecloud/models/did_pool.rb +1 -1
  94. data/lib/purecloud/models/did_pool_entity_listing.rb +11 -11
  95. data/lib/purecloud/models/{metric_threshold.rb → disconnect_reason.rb} +29 -19
  96. data/lib/purecloud/models/dnc_list_entity_listing.rb +11 -11
  97. data/lib/purecloud/models/document_audit_entity_listing.rb +11 -11
  98. data/lib/purecloud/models/document_entity_listing.rb +11 -11
  99. data/lib/purecloud/models/domain_billing_period_entity_listing.rb +11 -11
  100. data/lib/purecloud/models/domain_certificate_authority.rb +1 -1
  101. data/lib/purecloud/models/domain_entity_listing.rb +11 -11
  102. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +11 -11
  103. data/lib/purecloud/models/domain_entity_listing_query_result.rb +11 -11
  104. data/lib/purecloud/models/domain_invoice_entity_listing.rb +11 -11
  105. data/lib/purecloud/models/domain_logical_interface.rb +28 -2
  106. data/lib/purecloud/models/{dialer_place_call_command.rb → domain_role.rb} +16 -14
  107. data/lib/purecloud/models/domain_third_party_account_entity_listing.rb +11 -11
  108. data/lib/purecloud/models/domain_third_party_subscription_entity_listing.rb +11 -11
  109. data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +11 -11
  110. data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +11 -11
  111. data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +11 -11
  112. data/lib/purecloud/models/edge.rb +1 -1
  113. data/lib/purecloud/models/edge_entity_listing.rb +11 -11
  114. data/lib/purecloud/models/edge_group.rb +1 -1
  115. data/lib/purecloud/models/edge_group_entity_listing.rb +11 -11
  116. data/lib/purecloud/models/edge_line.rb +1 -1
  117. data/lib/purecloud/models/edge_line_entity_listing.rb +11 -11
  118. data/lib/purecloud/models/email_conversation.rb +1 -1
  119. data/lib/purecloud/models/{user_presence_entity_listing.rb → email_conversation_entity_listing.rb} +13 -13
  120. data/lib/purecloud/models/{email_participant.rb → email_media_participant.rb} +1 -1
  121. data/lib/purecloud/models/email_message.rb +56 -26
  122. data/lib/purecloud/models/email_message_listing.rb +11 -11
  123. data/lib/purecloud/models/encryption_key_entity_listing.rb +11 -11
  124. data/lib/purecloud/models/endpoint.rb +2 -2
  125. data/lib/purecloud/models/endpoint_entity_listing.rb +11 -11
  126. data/lib/purecloud/models/entity.rb +20 -10
  127. data/lib/purecloud/models/evaluation_entity_listing.rb +11 -11
  128. data/lib/purecloud/models/evaluation_form_entity_listing.rb +11 -11
  129. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +11 -11
  130. data/lib/purecloud/models/extension.rb +1 -1
  131. data/lib/purecloud/models/extension_entity_listing.rb +11 -11
  132. data/lib/purecloud/models/extension_pool.rb +1 -1
  133. data/lib/purecloud/models/extension_pool_entity_listing.rb +11 -11
  134. data/lib/purecloud/models/external_contact.rb +1 -1
  135. data/lib/purecloud/models/external_organization.rb +1 -1
  136. data/lib/purecloud/models/external_organization_listing.rb +11 -11
  137. data/lib/purecloud/models/fax_document_entity_listing.rb +11 -11
  138. data/lib/purecloud/models/flow_body.rb +1 -1
  139. data/lib/purecloud/models/flow_config_meta_data_entity_listing.rb +11 -11
  140. data/lib/purecloud/models/flow_entity_listing.rb +11 -11
  141. data/lib/purecloud/models/flow_history_result_item_entity_listing.rb +11 -11
  142. data/lib/purecloud/models/flow_search_request.rb +222 -0
  143. data/lib/purecloud/models/flow_version_config_meta_data_entity_listing.rb +11 -11
  144. data/lib/purecloud/models/flow_version_entity_listing.rb +11 -11
  145. data/lib/purecloud/models/group.rb +42 -36
  146. data/lib/purecloud/models/group_entity_listing.rb +11 -11
  147. data/lib/purecloud/models/groups_search_response.rb +230 -0
  148. data/lib/purecloud/models/hardware_rate_listing.rb +11 -11
  149. data/lib/purecloud/models/health_check_info.rb +1 -31
  150. data/lib/purecloud/models/inbound_domain_entity_listing.rb +11 -11
  151. data/lib/purecloud/models/inbound_route_entity_listing.rb +11 -11
  152. data/lib/purecloud/models/integration_type_entity_listing.rb +11 -11
  153. data/lib/purecloud/models/interaction_stats_alert.rb +373 -0
  154. data/lib/purecloud/models/interaction_stats_alert_container.rb +238 -0
  155. data/lib/purecloud/models/{alert.rb → interaction_stats_rule.rb} +111 -80
  156. data/lib/purecloud/models/interaction_stats_rule_container.rb +238 -0
  157. data/lib/purecloud/models/ivr.rb +1 -1
  158. data/lib/purecloud/models/ivr_entity_listing.rb +11 -11
  159. data/lib/purecloud/models/json_node.rb +395 -0
  160. data/lib/purecloud/models/json_node_search_response.rb +228 -0
  161. data/lib/purecloud/models/language_entity_listing.rb +11 -11
  162. data/lib/purecloud/models/library_entity_listing.rb +11 -11
  163. data/lib/purecloud/models/line.rb +2 -2
  164. data/lib/purecloud/models/line_base.rb +1 -1
  165. data/lib/purecloud/models/line_base_entity_listing.rb +11 -11
  166. data/lib/purecloud/models/line_entity_listing.rb +11 -11
  167. data/lib/purecloud/models/{body_1.rb → line_properties.rb} +1 -1
  168. data/lib/purecloud/models/linked_entity_listing_flow_details.rb +11 -11
  169. data/lib/purecloud/models/linked_entity_listing_work_item_search_details.rb +11 -11
  170. data/lib/purecloud/models/location_entity_listing.rb +11 -11
  171. data/lib/purecloud/models/logical_interface_entity_listing.rb +11 -11
  172. data/lib/purecloud/models/media_participant_request.rb +232 -0
  173. data/lib/purecloud/models/{inline_response_200.rb → member_entity.rb} +13 -3
  174. data/lib/purecloud/models/note_listing.rb +11 -11
  175. data/lib/purecloud/models/number_plan.rb +1 -1
  176. data/lib/purecloud/models/o_auth_client.rb +1 -1
  177. data/lib/purecloud/models/o_auth_client_entity_listing.rb +11 -11
  178. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +11 -11
  179. data/lib/purecloud/models/organization.rb +2 -22
  180. data/lib/purecloud/models/organization_presence_entity_listing.rb +11 -11
  181. data/lib/purecloud/models/organization_role_entity_listing.rb +11 -11
  182. data/lib/purecloud/models/orphan_recording_listing.rb +11 -11
  183. data/lib/purecloud/models/outbound_route.rb +1 -1
  184. data/lib/purecloud/models/outbound_route_entity_listing.rb +11 -11
  185. data/lib/purecloud/models/page.rb +2 -2
  186. data/lib/purecloud/models/participant.rb +1 -1
  187. data/lib/purecloud/models/participant_request.rb +7 -0
  188. data/lib/purecloud/models/payment_method_listing.rb +11 -11
  189. data/lib/purecloud/models/permission_collection_entity_listing.rb +11 -11
  190. data/lib/purecloud/models/phone.rb +2 -2
  191. data/lib/purecloud/models/phone_base.rb +1 -1
  192. data/lib/purecloud/models/phone_base_entity_listing.rb +11 -11
  193. data/lib/purecloud/models/phone_entity_listing.rb +11 -11
  194. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +11 -11
  195. data/lib/purecloud/models/physical_interface_entity_listing.rb +11 -11
  196. data/lib/purecloud/models/policy_entity_listing.rb +11 -11
  197. data/lib/purecloud/models/prompt_asset.rb +25 -1
  198. data/lib/purecloud/models/prompt_asset_entity_listing.rb +11 -11
  199. data/lib/purecloud/models/prompt_entity_listing.rb +11 -11
  200. data/lib/purecloud/models/quality_audit_page.rb +11 -11
  201. data/lib/purecloud/models/query_request.rb +1 -1
  202. data/lib/purecloud/models/queue.rb +1 -1
  203. data/lib/purecloud/models/queue_entity_listing.rb +11 -11
  204. data/lib/purecloud/models/queues_entity_listing.rb +11 -11
  205. data/lib/purecloud/models/quote_charge.rb +1 -1
  206. data/lib/purecloud/models/quote_listing.rb +11 -11
  207. data/lib/purecloud/models/recording.rb +13 -2
  208. data/lib/purecloud/models/{preview.rb → recording_email_message.rb} +72 -57
  209. data/lib/purecloud/models/relationship_listing.rb +11 -11
  210. data/lib/purecloud/models/report_meta_data_entity_listing.rb +11 -11
  211. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +11 -11
  212. data/lib/purecloud/models/report_schedule.rb +1 -1
  213. data/lib/purecloud/models/report_schedule_entity_listing.rb +11 -11
  214. data/lib/purecloud/models/resource_permission_policy.rb +1 -11
  215. data/lib/purecloud/models/response.rb +84 -14
  216. data/lib/purecloud/models/response_entity_list.rb +11 -11
  217. data/lib/purecloud/models/response_entity_listing.rb +11 -11
  218. data/lib/purecloud/models/{filter.rb → response_filter.rb} +1 -1
  219. data/lib/purecloud/models/response_query_request.rb +1 -1
  220. data/lib/purecloud/models/response_set_entity_listing.rb +11 -11
  221. data/lib/purecloud/models/rule_set.rb +1 -1
  222. data/lib/purecloud/models/rule_set_entity_listing.rb +11 -11
  223. data/lib/purecloud/models/schedule.rb +1 -1
  224. data/lib/purecloud/models/schedule_entity_listing.rb +11 -11
  225. data/lib/purecloud/models/schedule_group.rb +1 -1
  226. data/lib/purecloud/models/schedule_group_entity_listing.rb +11 -11
  227. data/lib/purecloud/models/schema_category_entity_listing.rb +11 -11
  228. data/lib/purecloud/models/schema_reference_entity_listing.rb +11 -11
  229. data/lib/purecloud/models/script_entity_listing.rb +11 -11
  230. data/lib/purecloud/models/{occurrence.rb → search_aggregation.rb} +19 -9
  231. data/lib/purecloud/models/{conversation_historical_query_request_filter.rb → search_criteria.rb} +83 -24
  232. data/lib/purecloud/models/search_request.rb +73 -50
  233. data/lib/purecloud/models/security_profile_entity_listing.rb +11 -11
  234. data/lib/purecloud/models/service_entity_listing.rb +11 -11
  235. data/lib/purecloud/models/share_entity_listing.rb +11 -11
  236. data/lib/purecloud/models/{group_images.rb → shared_entity.rb} +8 -10
  237. data/lib/purecloud/models/site.rb +1 -1
  238. data/lib/purecloud/models/site_entity_listing.rb +11 -11
  239. data/lib/purecloud/models/skill_entity_listing.rb +11 -11
  240. data/lib/purecloud/models/social_conversation.rb +1 -1
  241. data/lib/purecloud/models/social_conversation_entity_listing.rb +238 -0
  242. data/lib/purecloud/models/{social_participant.rb → social_media_participant.rb} +1 -1
  243. data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +11 -11
  244. data/lib/purecloud/models/station.rb +11 -1
  245. data/lib/purecloud/models/station_entity_listing.rb +11 -11
  246. data/lib/purecloud/models/{facets.rb → subscriber_response.rb} +16 -16
  247. data/lib/purecloud/models/system_prompt_asset.rb +25 -1
  248. data/lib/purecloud/models/system_prompt_asset_entity_listing.rb +11 -11
  249. data/lib/purecloud/models/system_prompt_entity_listing.rb +11 -11
  250. data/lib/purecloud/models/tag_value_entity_listing.rb +11 -11
  251. data/lib/purecloud/models/template_entity_listing.rb +12 -12
  252. data/lib/purecloud/models/text_table_transform_entity_listing.rb +11 -11
  253. data/lib/purecloud/models/time_slot.rb +3 -0
  254. data/lib/purecloud/models/time_zone_entity_listing.rb +11 -11
  255. data/lib/purecloud/models/trunk_base.rb +2 -2
  256. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +11 -11
  257. data/lib/purecloud/models/unread_metric.rb +1 -0
  258. data/lib/purecloud/models/unread_status.rb +149 -0
  259. data/lib/purecloud/models/user.rb +7 -7
  260. data/lib/purecloud/models/user_action_category_entity_listing.rb +11 -11
  261. data/lib/purecloud/models/user_action_metadata_entity_listing.rb +11 -11
  262. data/lib/purecloud/models/user_authorization.rb +7 -37
  263. data/lib/purecloud/models/user_entity_listing.rb +11 -11
  264. data/lib/purecloud/models/user_me.rb +375 -0
  265. data/lib/purecloud/models/user_presence.rb +14 -32
  266. data/lib/purecloud/models/user_queue.rb +1 -1
  267. data/lib/purecloud/models/user_queue_entity_listing.rb +11 -11
  268. data/lib/purecloud/models/user_recording_entity_listing.rb +11 -11
  269. data/lib/purecloud/models/user_skill_entity_listing.rb +11 -11
  270. data/lib/purecloud/models/users_entity_listing.rb +11 -11
  271. data/lib/purecloud/models/users_search_response.rb +230 -0
  272. data/lib/purecloud/models/validate_address_response.rb +1 -1
  273. data/lib/purecloud/models/video_conversation.rb +1 -1
  274. data/lib/purecloud/models/{alert_entity_listing.rb → video_conversation_entity_listing.rb} +13 -13
  275. data/lib/purecloud/models/{video_participant.rb → video_media_participant.rb} +1 -1
  276. data/lib/purecloud/models/voice_rate_international_entity_listing.rb +11 -11
  277. data/lib/purecloud/models/voice_xml_operation_entity_listing.rb +11 -11
  278. data/lib/purecloud/models/voicemail_message_entity_listing.rb +11 -11
  279. data/lib/purecloud/models/workspace_entity_listing.rb +11 -11
  280. data/lib/purecloud/models/workspace_member_entity_listing.rb +11 -11
  281. data/lib/purecloud/models/wrapup_code_entity_listing.rb +11 -11
  282. data/lib/purecloud/version.rb +1 -1
  283. data/newVersion.md +1 -1
  284. data/swagger.json +1 -1
  285. data/version.json +1 -1
  286. metadata +54 -45
  287. data/lib/purecloud/api/architect_api.rb +0 -3285
  288. data/lib/purecloud/models/chat_search_request.rb +0 -244
  289. data/lib/purecloud/models/conversation_historical_query_request_body.rb +0 -185
  290. data/lib/purecloud/models/conversation_query_response.rb +0 -366
  291. data/lib/purecloud/models/dialer_call.rb +0 -156
  292. data/lib/purecloud/models/penetration_rate.rb +0 -176
  293. data/lib/purecloud/models/penetration_rate_id.rb +0 -156
  294. data/lib/purecloud/models/progress_model.rb +0 -169
@@ -1,244 +0,0 @@
1
- require 'date'
2
-
3
- module PureCloud
4
- class ChatSearchRequest
5
- # Search terms can be AND'd together. Example: foo AND bar
6
- attr_accessor :query
7
-
8
- # Sort order of results by score or most recent. Default is by score
9
- attr_accessor :order
10
-
11
- # A list of XMPP JIDs to consider. Default is all permissible JIDs. A permissible JID is defined as any JID of a person with whom you have chatted, or any group in which you are currently a member.
12
- attr_accessor :target_jids
13
-
14
- # The maximum number of hits to receive in the response. Default: 10, Maximum: 50]
15
- attr_accessor :page_size
16
-
17
- # The number of hits to skip before returning results. Default: 0
18
- attr_accessor :page_number
19
-
20
- # Consider hits after this date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
21
- attr_accessor :from_date
22
-
23
- # Consider hits before this date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
24
- attr_accessor :to_date
25
-
26
- # Expand the 'to' or 'from' user details.
27
- attr_accessor :expand
28
-
29
- # Attribute mapping from ruby-style variable name to JSON key.
30
- def self.attribute_map
31
- {
32
-
33
- :'query' => :'query',
34
-
35
- :'order' => :'order',
36
-
37
- :'target_jids' => :'targetJids',
38
-
39
- :'page_size' => :'pageSize',
40
-
41
- :'page_number' => :'pageNumber',
42
-
43
- :'from_date' => :'fromDate',
44
-
45
- :'to_date' => :'toDate',
46
-
47
- :'expand' => :'expand'
48
-
49
- }
50
- end
51
-
52
- # Attribute type mapping.
53
- def self.swagger_types
54
- {
55
- :'query' => :'String',
56
- :'order' => :'String',
57
- :'target_jids' => :'Array<String>',
58
- :'page_size' => :'Integer',
59
- :'page_number' => :'Integer',
60
- :'from_date' => :'DateTime',
61
- :'to_date' => :'DateTime',
62
- :'expand' => :'String'
63
-
64
- }
65
- end
66
-
67
- def initialize(attributes = {})
68
- return unless attributes.is_a?(Hash)
69
-
70
- # convert string to symbol for hash key
71
- attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
72
-
73
-
74
- if attributes[:'query']
75
- self.query = attributes[:'query']
76
- end
77
-
78
- if attributes[:'order']
79
- self.order = attributes[:'order']
80
- end
81
-
82
- if attributes[:'targetJids']
83
- if (value = attributes[:'targetJids']).is_a?(Array)
84
- self.target_jids = value
85
- end
86
- end
87
-
88
- if attributes[:'pageSize']
89
- self.page_size = attributes[:'pageSize']
90
- end
91
-
92
- if attributes[:'pageNumber']
93
- self.page_number = attributes[:'pageNumber']
94
- end
95
-
96
- if attributes[:'fromDate']
97
- self.from_date = attributes[:'fromDate']
98
- end
99
-
100
- if attributes[:'toDate']
101
- self.to_date = attributes[:'toDate']
102
- end
103
-
104
- if attributes[:'expand']
105
- self.expand = attributes[:'expand']
106
- end
107
-
108
- end
109
-
110
- # Custom attribute writer method checking allowed values (enum).
111
- def order=(order)
112
- allowed_values = ["SCORE", "RECENT"]
113
- if order && !allowed_values.include?(order)
114
- fail "invalid value for 'order', must be one of #{allowed_values}"
115
- end
116
- @order = order
117
- end
118
-
119
- # Custom attribute writer method checking allowed values (enum).
120
- def expand=(expand)
121
- allowed_values = ["to", "from"]
122
- if expand && !allowed_values.include?(expand)
123
- fail "invalid value for 'expand', must be one of #{allowed_values}"
124
- end
125
- @expand = expand
126
- end
127
-
128
- # Check equality by comparing each attribute.
129
- def ==(o)
130
- return true if self.equal?(o)
131
- self.class == o.class &&
132
- query == o.query &&
133
- order == o.order &&
134
- target_jids == o.target_jids &&
135
- page_size == o.page_size &&
136
- page_number == o.page_number &&
137
- from_date == o.from_date &&
138
- to_date == o.to_date &&
139
- expand == o.expand
140
- end
141
-
142
- # @see the `==` method
143
- def eql?(o)
144
- self == o
145
- end
146
-
147
- # Calculate hash code according to all attributes.
148
- def hash
149
- [query, order, target_jids, page_size, page_number, from_date, to_date, expand].hash
150
- end
151
-
152
- # build the object from hash
153
- def build_from_hash(attributes)
154
- return nil unless attributes.is_a?(Hash)
155
- self.class.swagger_types.each_pair do |key, type|
156
- if type =~ /^Array<(.*)>/i
157
- if attributes[self.class.attribute_map[key]].is_a?(Array)
158
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
159
- else
160
- #TODO show warning in debug mode
161
- end
162
- elsif !attributes[self.class.attribute_map[key]].nil?
163
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
164
- else
165
- # data not found in attributes(hash), not an issue as the data can be optional
166
- end
167
- end
168
-
169
- self
170
- end
171
-
172
- def _deserialize(type, value)
173
- case type.to_sym
174
- when :DateTime
175
- DateTime.parse(value)
176
- when :Date
177
- Date.parse(value)
178
- when :String
179
- value.to_s
180
- when :Integer
181
- value.to_i
182
- when :Float
183
- value.to_f
184
- when :BOOLEAN
185
- if value =~ /^(true|t|yes|y|1)$/i
186
- true
187
- else
188
- false
189
- end
190
- when /\AArray<(?<inner_type>.+)>\z/
191
- inner_type = Regexp.last_match[:inner_type]
192
- value.map { |v| _deserialize(inner_type, v) }
193
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
194
- k_type = Regexp.last_match[:k_type]
195
- v_type = Regexp.last_match[:v_type]
196
- {}.tap do |hash|
197
- value.each do |k, v|
198
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
199
- end
200
- end
201
- else # model
202
- _model = Object.const_get("PureCloud").const_get(type).new
203
- _model.build_from_hash(value)
204
- end
205
- end
206
-
207
- def to_s
208
- to_hash.to_s
209
- end
210
-
211
- # to_body is an alias to to_body (backward compatibility))
212
- def to_body
213
- to_hash
214
- end
215
-
216
- # return the object in the form of hash
217
- def to_hash
218
- hash = {}
219
- self.class.attribute_map.each_pair do |attr, param|
220
- value = self.send(attr)
221
- next if value.nil?
222
- hash[param] = _to_hash(value)
223
- end
224
- hash
225
- end
226
-
227
- # Method to output non-array value in the form of hash
228
- # For object, use to_hash. Otherwise, just return the value
229
- def _to_hash(value)
230
- if value.is_a?(Array)
231
- value.compact.map{ |v| _to_hash(v) }
232
- elsif value.is_a?(Hash)
233
- {}.tap do |hash|
234
- value.each { |k, v| hash[k] = _to_hash(v) }
235
- end
236
- elsif value.respond_to? :to_hash
237
- value.to_hash
238
- else
239
- value
240
- end
241
- end
242
-
243
- end
244
- end
@@ -1,185 +0,0 @@
1
- require 'date'
2
-
3
- module PureCloud
4
- # Historical conversation request parameters
5
- class ConversationHistoricalQueryRequestBody
6
- # Maximum number of conversations returned. Overrides 'maximum' if both specified. Default 100
7
- attr_accessor :page_size
8
-
9
- # Maximum number of conversations returned
10
- attr_accessor :maximum
11
-
12
- # Query filters. Default is all conversations for the previous 7 days
13
- attr_accessor :filters
14
-
15
- # Facets to return. Currently, only 'queue' is supported
16
- attr_accessor :facets
17
-
18
- # Attribute mapping from ruby-style variable name to JSON key.
19
- def self.attribute_map
20
- {
21
-
22
- :'page_size' => :'pageSize',
23
-
24
- :'maximum' => :'maximum',
25
-
26
- :'filters' => :'filters',
27
-
28
- :'facets' => :'facets'
29
-
30
- }
31
- end
32
-
33
- # Attribute type mapping.
34
- def self.swagger_types
35
- {
36
- :'page_size' => :'Integer',
37
- :'maximum' => :'Integer',
38
- :'filters' => :'Array<ConversationHistoricalQueryRequestFilter>',
39
- :'facets' => :'Array<String>'
40
-
41
- }
42
- end
43
-
44
- def initialize(attributes = {})
45
- return unless attributes.is_a?(Hash)
46
-
47
- # convert string to symbol for hash key
48
- attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
49
-
50
-
51
- if attributes[:'pageSize']
52
- self.page_size = attributes[:'pageSize']
53
- end
54
-
55
- if attributes[:'maximum']
56
- self.maximum = attributes[:'maximum']
57
- end
58
-
59
- if attributes[:'filters']
60
- if (value = attributes[:'filters']).is_a?(Array)
61
- self.filters = value
62
- end
63
- end
64
-
65
- if attributes[:'facets']
66
- if (value = attributes[:'facets']).is_a?(Array)
67
- self.facets = value
68
- end
69
- end
70
-
71
- end
72
-
73
- # Check equality by comparing each attribute.
74
- def ==(o)
75
- return true if self.equal?(o)
76
- self.class == o.class &&
77
- page_size == o.page_size &&
78
- maximum == o.maximum &&
79
- filters == o.filters &&
80
- facets == o.facets
81
- end
82
-
83
- # @see the `==` method
84
- def eql?(o)
85
- self == o
86
- end
87
-
88
- # Calculate hash code according to all attributes.
89
- def hash
90
- [page_size, maximum, filters, facets].hash
91
- end
92
-
93
- # build the object from hash
94
- def build_from_hash(attributes)
95
- return nil unless attributes.is_a?(Hash)
96
- self.class.swagger_types.each_pair do |key, type|
97
- if type =~ /^Array<(.*)>/i
98
- if attributes[self.class.attribute_map[key]].is_a?(Array)
99
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
100
- else
101
- #TODO show warning in debug mode
102
- end
103
- elsif !attributes[self.class.attribute_map[key]].nil?
104
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
105
- else
106
- # data not found in attributes(hash), not an issue as the data can be optional
107
- end
108
- end
109
-
110
- self
111
- end
112
-
113
- def _deserialize(type, value)
114
- case type.to_sym
115
- when :DateTime
116
- DateTime.parse(value)
117
- when :Date
118
- Date.parse(value)
119
- when :String
120
- value.to_s
121
- when :Integer
122
- value.to_i
123
- when :Float
124
- value.to_f
125
- when :BOOLEAN
126
- if value =~ /^(true|t|yes|y|1)$/i
127
- true
128
- else
129
- false
130
- end
131
- when /\AArray<(?<inner_type>.+)>\z/
132
- inner_type = Regexp.last_match[:inner_type]
133
- value.map { |v| _deserialize(inner_type, v) }
134
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
135
- k_type = Regexp.last_match[:k_type]
136
- v_type = Regexp.last_match[:v_type]
137
- {}.tap do |hash|
138
- value.each do |k, v|
139
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
140
- end
141
- end
142
- else # model
143
- _model = Object.const_get("PureCloud").const_get(type).new
144
- _model.build_from_hash(value)
145
- end
146
- end
147
-
148
- def to_s
149
- to_hash.to_s
150
- end
151
-
152
- # to_body is an alias to to_body (backward compatibility))
153
- def to_body
154
- to_hash
155
- end
156
-
157
- # return the object in the form of hash
158
- def to_hash
159
- hash = {}
160
- self.class.attribute_map.each_pair do |attr, param|
161
- value = self.send(attr)
162
- next if value.nil?
163
- hash[param] = _to_hash(value)
164
- end
165
- hash
166
- end
167
-
168
- # Method to output non-array value in the form of hash
169
- # For object, use to_hash. Otherwise, just return the value
170
- def _to_hash(value)
171
- if value.is_a?(Array)
172
- value.compact.map{ |v| _to_hash(v) }
173
- elsif value.is_a?(Hash)
174
- {}.tap do |hash|
175
- value.each { |k, v| hash[k] = _to_hash(v) }
176
- end
177
- elsif value.respond_to? :to_hash
178
- value.to_hash
179
- else
180
- value
181
- end
182
- end
183
-
184
- end
185
- end
@@ -1,366 +0,0 @@
1
- require 'date'
2
-
3
- module PureCloud
4
- class ConversationQueryResponse
5
- attr_accessor :page_size
6
-
7
- attr_accessor :page_number
8
-
9
- attr_accessor :total
10
-
11
- attr_accessor :entities
12
-
13
- attr_accessor :has_more_prev
14
-
15
- attr_accessor :has_more_next
16
-
17
- # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
18
- attr_accessor :start_query_time
19
-
20
- # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
21
- attr_accessor :end_query_time
22
-
23
- # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
24
- attr_accessor :newest_result_time
25
-
26
- # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
27
- attr_accessor :oldest_result_time
28
-
29
- attr_accessor :time_ms
30
-
31
- attr_accessor :iterations
32
-
33
- # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
34
- attr_accessor :anchor
35
-
36
- attr_accessor :sort
37
-
38
- attr_accessor :facets
39
-
40
- attr_accessor :self_uri
41
-
42
- attr_accessor :next_uri
43
-
44
- attr_accessor :first_uri
45
-
46
- attr_accessor :previous_uri
47
-
48
- attr_accessor :last_uri
49
-
50
- attr_accessor :page_count
51
-
52
- # Attribute mapping from ruby-style variable name to JSON key.
53
- def self.attribute_map
54
- {
55
-
56
- :'page_size' => :'pageSize',
57
-
58
- :'page_number' => :'pageNumber',
59
-
60
- :'total' => :'total',
61
-
62
- :'entities' => :'entities',
63
-
64
- :'has_more_prev' => :'hasMorePrev',
65
-
66
- :'has_more_next' => :'hasMoreNext',
67
-
68
- :'start_query_time' => :'startQueryTime',
69
-
70
- :'end_query_time' => :'endQueryTime',
71
-
72
- :'newest_result_time' => :'newestResultTime',
73
-
74
- :'oldest_result_time' => :'oldestResultTime',
75
-
76
- :'time_ms' => :'timeMs',
77
-
78
- :'iterations' => :'iterations',
79
-
80
- :'anchor' => :'anchor',
81
-
82
- :'sort' => :'sort',
83
-
84
- :'facets' => :'facets',
85
-
86
- :'self_uri' => :'selfUri',
87
-
88
- :'next_uri' => :'nextUri',
89
-
90
- :'first_uri' => :'firstUri',
91
-
92
- :'previous_uri' => :'previousUri',
93
-
94
- :'last_uri' => :'lastUri',
95
-
96
- :'page_count' => :'pageCount'
97
-
98
- }
99
- end
100
-
101
- # Attribute type mapping.
102
- def self.swagger_types
103
- {
104
- :'page_size' => :'Integer',
105
- :'page_number' => :'Integer',
106
- :'total' => :'Integer',
107
- :'entities' => :'Array<Conversation>',
108
- :'has_more_prev' => :'BOOLEAN',
109
- :'has_more_next' => :'BOOLEAN',
110
- :'start_query_time' => :'DateTime',
111
- :'end_query_time' => :'DateTime',
112
- :'newest_result_time' => :'DateTime',
113
- :'oldest_result_time' => :'DateTime',
114
- :'time_ms' => :'Integer',
115
- :'iterations' => :'Integer',
116
- :'anchor' => :'DateTime',
117
- :'sort' => :'String',
118
- :'facets' => :'Facets',
119
- :'self_uri' => :'String',
120
- :'next_uri' => :'String',
121
- :'first_uri' => :'String',
122
- :'previous_uri' => :'String',
123
- :'last_uri' => :'String',
124
- :'page_count' => :'Integer'
125
-
126
- }
127
- end
128
-
129
- def initialize(attributes = {})
130
- return unless attributes.is_a?(Hash)
131
-
132
- # convert string to symbol for hash key
133
- attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
134
-
135
-
136
- if attributes[:'pageSize']
137
- self.page_size = attributes[:'pageSize']
138
- end
139
-
140
- if attributes[:'pageNumber']
141
- self.page_number = attributes[:'pageNumber']
142
- end
143
-
144
- if attributes[:'total']
145
- self.total = attributes[:'total']
146
- end
147
-
148
- if attributes[:'entities']
149
- if (value = attributes[:'entities']).is_a?(Array)
150
- self.entities = value
151
- end
152
- end
153
-
154
- if attributes[:'hasMorePrev']
155
- self.has_more_prev = attributes[:'hasMorePrev']
156
- else
157
- self.has_more_prev = false
158
- end
159
-
160
- if attributes[:'hasMoreNext']
161
- self.has_more_next = attributes[:'hasMoreNext']
162
- else
163
- self.has_more_next = false
164
- end
165
-
166
- if attributes[:'startQueryTime']
167
- self.start_query_time = attributes[:'startQueryTime']
168
- end
169
-
170
- if attributes[:'endQueryTime']
171
- self.end_query_time = attributes[:'endQueryTime']
172
- end
173
-
174
- if attributes[:'newestResultTime']
175
- self.newest_result_time = attributes[:'newestResultTime']
176
- end
177
-
178
- if attributes[:'oldestResultTime']
179
- self.oldest_result_time = attributes[:'oldestResultTime']
180
- end
181
-
182
- if attributes[:'timeMs']
183
- self.time_ms = attributes[:'timeMs']
184
- end
185
-
186
- if attributes[:'iterations']
187
- self.iterations = attributes[:'iterations']
188
- end
189
-
190
- if attributes[:'anchor']
191
- self.anchor = attributes[:'anchor']
192
- end
193
-
194
- if attributes[:'sort']
195
- self.sort = attributes[:'sort']
196
- end
197
-
198
- if attributes[:'facets']
199
- self.facets = attributes[:'facets']
200
- end
201
-
202
- if attributes[:'selfUri']
203
- self.self_uri = attributes[:'selfUri']
204
- end
205
-
206
- if attributes[:'nextUri']
207
- self.next_uri = attributes[:'nextUri']
208
- end
209
-
210
- if attributes[:'firstUri']
211
- self.first_uri = attributes[:'firstUri']
212
- end
213
-
214
- if attributes[:'previousUri']
215
- self.previous_uri = attributes[:'previousUri']
216
- end
217
-
218
- if attributes[:'lastUri']
219
- self.last_uri = attributes[:'lastUri']
220
- end
221
-
222
- if attributes[:'pageCount']
223
- self.page_count = attributes[:'pageCount']
224
- end
225
-
226
- end
227
-
228
- # Custom attribute writer method checking allowed values (enum).
229
- def sort=(sort)
230
- allowed_values = ["ASC", "DESC"]
231
- if sort && !allowed_values.include?(sort)
232
- fail "invalid value for 'sort', must be one of #{allowed_values}"
233
- end
234
- @sort = sort
235
- end
236
-
237
- # Check equality by comparing each attribute.
238
- def ==(o)
239
- return true if self.equal?(o)
240
- self.class == o.class &&
241
- page_size == o.page_size &&
242
- page_number == o.page_number &&
243
- total == o.total &&
244
- entities == o.entities &&
245
- has_more_prev == o.has_more_prev &&
246
- has_more_next == o.has_more_next &&
247
- start_query_time == o.start_query_time &&
248
- end_query_time == o.end_query_time &&
249
- newest_result_time == o.newest_result_time &&
250
- oldest_result_time == o.oldest_result_time &&
251
- time_ms == o.time_ms &&
252
- iterations == o.iterations &&
253
- anchor == o.anchor &&
254
- sort == o.sort &&
255
- facets == o.facets &&
256
- self_uri == o.self_uri &&
257
- next_uri == o.next_uri &&
258
- first_uri == o.first_uri &&
259
- previous_uri == o.previous_uri &&
260
- last_uri == o.last_uri &&
261
- page_count == o.page_count
262
- end
263
-
264
- # @see the `==` method
265
- def eql?(o)
266
- self == o
267
- end
268
-
269
- # Calculate hash code according to all attributes.
270
- def hash
271
- [page_size, page_number, total, entities, has_more_prev, has_more_next, start_query_time, end_query_time, newest_result_time, oldest_result_time, time_ms, iterations, anchor, sort, facets, self_uri, next_uri, first_uri, previous_uri, last_uri, page_count].hash
272
- end
273
-
274
- # build the object from hash
275
- def build_from_hash(attributes)
276
- return nil unless attributes.is_a?(Hash)
277
- self.class.swagger_types.each_pair do |key, type|
278
- if type =~ /^Array<(.*)>/i
279
- if attributes[self.class.attribute_map[key]].is_a?(Array)
280
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
281
- else
282
- #TODO show warning in debug mode
283
- end
284
- elsif !attributes[self.class.attribute_map[key]].nil?
285
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
286
- else
287
- # data not found in attributes(hash), not an issue as the data can be optional
288
- end
289
- end
290
-
291
- self
292
- end
293
-
294
- def _deserialize(type, value)
295
- case type.to_sym
296
- when :DateTime
297
- DateTime.parse(value)
298
- when :Date
299
- Date.parse(value)
300
- when :String
301
- value.to_s
302
- when :Integer
303
- value.to_i
304
- when :Float
305
- value.to_f
306
- when :BOOLEAN
307
- if value =~ /^(true|t|yes|y|1)$/i
308
- true
309
- else
310
- false
311
- end
312
- when /\AArray<(?<inner_type>.+)>\z/
313
- inner_type = Regexp.last_match[:inner_type]
314
- value.map { |v| _deserialize(inner_type, v) }
315
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
316
- k_type = Regexp.last_match[:k_type]
317
- v_type = Regexp.last_match[:v_type]
318
- {}.tap do |hash|
319
- value.each do |k, v|
320
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
321
- end
322
- end
323
- else # model
324
- _model = Object.const_get("PureCloud").const_get(type).new
325
- _model.build_from_hash(value)
326
- end
327
- end
328
-
329
- def to_s
330
- to_hash.to_s
331
- end
332
-
333
- # to_body is an alias to to_body (backward compatibility))
334
- def to_body
335
- to_hash
336
- end
337
-
338
- # return the object in the form of hash
339
- def to_hash
340
- hash = {}
341
- self.class.attribute_map.each_pair do |attr, param|
342
- value = self.send(attr)
343
- next if value.nil?
344
- hash[param] = _to_hash(value)
345
- end
346
- hash
347
- end
348
-
349
- # Method to output non-array value in the form of hash
350
- # For object, use to_hash. Otherwise, just return the value
351
- def _to_hash(value)
352
- if value.is_a?(Array)
353
- value.compact.map{ |v| _to_hash(v) }
354
- elsif value.is_a?(Hash)
355
- {}.tap do |hash|
356
- value.each { |k, v| hash[k] = _to_hash(v) }
357
- end
358
- elsif value.respond_to? :to_hash
359
- value.to_hash
360
- else
361
- value
362
- end
363
- end
364
-
365
- end
366
- end