apimatic-apollo-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +179 -0
- data/bin/console +15 -0
- data/lib/apollo_rest_api/api_helper.rb +10 -0
- data/lib/apollo_rest_api/apis/accounts_api.rb +400 -0
- data/lib/apollo_rest_api/apis/analytics_api.rb +65 -0
- data/lib/apollo_rest_api/apis/api.rb +45 -0
- data/lib/apollo_rest_api/apis/base_api.rb +67 -0
- data/lib/apollo_rest_api/apis/calls_api.rb +354 -0
- data/lib/apollo_rest_api/apis/contacts_api.rb +478 -0
- data/lib/apollo_rest_api/apis/conversations_api.rb +157 -0
- data/lib/apollo_rest_api/apis/deals_api.rb +253 -0
- data/lib/apollo_rest_api/apis/emailer_messages_api.rb +160 -0
- data/lib/apollo_rest_api/apis/enrichment_api.rb +447 -0
- data/lib/apollo_rest_api/apis/miscellaneous_api.rb +610 -0
- data/lib/apollo_rest_api/apis/search_api.rb +675 -0
- data/lib/apollo_rest_api/apis/sequences_api.rb +774 -0
- data/lib/apollo_rest_api/apis/tasks_api.rb +397 -0
- data/lib/apollo_rest_api/client.rb +147 -0
- data/lib/apollo_rest_api/configuration.rb +170 -0
- data/lib/apollo_rest_api/exceptions/account_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_create422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_create429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_create500_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_update422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_update429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_update_owners429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/api_exception.rb +21 -0
- data/lib/apollo_rest_api/exceptions/contact_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_create422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_create429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_create500_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_update422_error_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_update429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_opportunities429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_owners422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_owners429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_stages422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations_export404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations_export422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/email_accounts429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_abort422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_abort429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_add_contact_ids429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_approve422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_approve429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_archive429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_remove_or_stop_contact_ids429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_search422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_send_now429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_schedules429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/fields429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels404_error_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/labels422_error_exception.rb +53 -0
- data/lib/apollo_rest_api/exceptions/labels429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_add_entity_ids_to_label_names422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_add_entity_ids_to_label_names429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_remove_entity_ids_from_label_names422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_remove_entity_ids_from_label_names429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_companies_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_companies_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_people_api_search422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_people_api_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/need_master_api_key_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/notes400_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunities404_error_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/opportunities422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunities429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunities_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunity_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_bulk_enrich400_error_exception.rb +58 -0
- data/lib/apollo_rest_api/exceptions/organizations_bulk_enrich429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_enrich422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_enrich429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_job_postings422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_job_postings429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/people_bulk_match429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/people_match429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/reports_sync_report400_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/reports_sync_report429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/sequences404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/sequences422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/sequences429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks401_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_bulk_create422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_bulk_create429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_complete422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_complete429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_skip422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_skip429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/typed_custom_fields429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/users_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/webhook_result404_error_exception.rb +55 -0
- data/lib/apollo_rest_api/http/api_response.rb +19 -0
- data/lib/apollo_rest_api/http/auth/api_key.rb +52 -0
- data/lib/apollo_rest_api/http/auth/bearer_auth.rb +53 -0
- data/lib/apollo_rest_api/http/http_call_back.rb +10 -0
- data/lib/apollo_rest_api/http/http_method_enum.rb +10 -0
- data/lib/apollo_rest_api/http/http_request.rb +10 -0
- data/lib/apollo_rest_api/http/http_response.rb +10 -0
- data/lib/apollo_rest_api/http/proxy_settings.rb +22 -0
- data/lib/apollo_rest_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/apollo_rest_api/logging/sdk_logger.rb +17 -0
- data/lib/apollo_rest_api/models/account.rb +551 -0
- data/lib/apollo_rest_api/models/account1.rb +420 -0
- data/lib/apollo_rest_api/models/account10.rb +595 -0
- data/lib/apollo_rest_api/models/account12.rb +424 -0
- data/lib/apollo_rest_api/models/account14.rb +247 -0
- data/lib/apollo_rest_api/models/account2.rb +420 -0
- data/lib/apollo_rest_api/models/account22.rb +85 -0
- data/lib/apollo_rest_api/models/account3.rb +420 -0
- data/lib/apollo_rest_api/models/account4.rb +474 -0
- data/lib/apollo_rest_api/models/account5.rb +238 -0
- data/lib/apollo_rest_api/models/account6.rb +86 -0
- data/lib/apollo_rest_api/models/account7.rb +95 -0
- data/lib/apollo_rest_api/models/account8.rb +434 -0
- data/lib/apollo_rest_api/models/account9.rb +540 -0
- data/lib/apollo_rest_api/models/account_attribute.rb +116 -0
- data/lib/apollo_rest_api/models/account_rule_config_status.rb +138 -0
- data/lib/apollo_rest_api/models/account_stage.rb +151 -0
- data/lib/apollo_rest_api/models/account_stages_response.rb +85 -0
- data/lib/apollo_rest_api/models/accounts_bulk_create_request.rb +108 -0
- data/lib/apollo_rest_api/models/accounts_bulk_create_response.rb +105 -0
- data/lib/apollo_rest_api/models/accounts_bulk_update_request.rb +139 -0
- data/lib/apollo_rest_api/models/accounts_bulk_update_response.rb +84 -0
- data/lib/apollo_rest_api/models/accounts_request.rb +183 -0
- data/lib/apollo_rest_api/models/accounts_request1.rb +183 -0
- data/lib/apollo_rest_api/models/accounts_response.rb +75 -0
- data/lib/apollo_rest_api/models/accounts_response1.rb +85 -0
- data/lib/apollo_rest_api/models/accounts_search_request.rb +167 -0
- data/lib/apollo_rest_api/models/accounts_search_response.rb +168 -0
- data/lib/apollo_rest_api/models/accounts_update_owners_response.rb +84 -0
- data/lib/apollo_rest_api/models/active.rb +26 -0
- data/lib/apollo_rest_api/models/assistant_setting.rb +397 -0
- data/lib/apollo_rest_api/models/audio_recording.rb +74 -0
- data/lib/apollo_rest_api/models/base_model.rb +110 -0
- data/lib/apollo_rest_api/models/bounced.rb +26 -0
- data/lib/apollo_rest_api/models/breadcrumb.rb +107 -0
- data/lib/apollo_rest_api/models/check_apollo_pricing_plan.rb +75 -0
- data/lib/apollo_rest_api/models/check_the_account_id.rb +75 -0
- data/lib/apollo_rest_api/models/check_the_contact_stage_id.rb +75 -0
- data/lib/apollo_rest_api/models/contact.rb +809 -0
- data/lib/apollo_rest_api/models/contact1.rb +921 -0
- data/lib/apollo_rest_api/models/contact10.rb +465 -0
- data/lib/apollo_rest_api/models/contact11.rb +250 -0
- data/lib/apollo_rest_api/models/contact14.rb +248 -0
- data/lib/apollo_rest_api/models/contact15.rb +166 -0
- data/lib/apollo_rest_api/models/contact2.rb +884 -0
- data/lib/apollo_rest_api/models/contact3.rb +239 -0
- data/lib/apollo_rest_api/models/contact4.rb +105 -0
- data/lib/apollo_rest_api/models/contact5.rb +893 -0
- data/lib/apollo_rest_api/models/contact6.rb +839 -0
- data/lib/apollo_rest_api/models/contact7.rb +95 -0
- data/lib/apollo_rest_api/models/contact8.rb +375 -0
- data/lib/apollo_rest_api/models/contact9.rb +198 -0
- data/lib/apollo_rest_api/models/contact_attribute.rb +179 -0
- data/lib/apollo_rest_api/models/contact_campaign_status.rb +336 -0
- data/lib/apollo_rest_api/models/contact_campaign_status2.rb +163 -0
- data/lib/apollo_rest_api/models/contact_email.rb +167 -0
- data/lib/apollo_rest_api/models/contact_email1.rb +85 -0
- data/lib/apollo_rest_api/models/contact_email2.rb +148 -0
- data/lib/apollo_rest_api/models/contact_statuses.rb +132 -0
- data/lib/apollo_rest_api/models/contacts_bulk_create_request.rb +121 -0
- data/lib/apollo_rest_api/models/contacts_bulk_create_response.rb +106 -0
- data/lib/apollo_rest_api/models/contacts_bulk_update_request.rb +224 -0
- data/lib/apollo_rest_api/models/contacts_bulk_update_response.rb +94 -0
- data/lib/apollo_rest_api/models/contacts_bulk_update_response1.rb +87 -0
- data/lib/apollo_rest_api/models/contacts_opportunities_response.rb +85 -0
- data/lib/apollo_rest_api/models/contacts_request.rb +269 -0
- data/lib/apollo_rest_api/models/contacts_request1.rb +253 -0
- data/lib/apollo_rest_api/models/contacts_response.rb +94 -0
- data/lib/apollo_rest_api/models/contacts_response1.rb +94 -0
- data/lib/apollo_rest_api/models/contacts_response2.rb +75 -0
- data/lib/apollo_rest_api/models/contacts_search_request.rb +166 -0
- data/lib/apollo_rest_api/models/contacts_search_response.rb +168 -0
- data/lib/apollo_rest_api/models/contacts_update_owners_response.rb +84 -0
- data/lib/apollo_rest_api/models/contacts_update_stages_response.rb +84 -0
- data/lib/apollo_rest_api/models/conversation.rb +284 -0
- data/lib/apollo_rest_api/models/conversation_type.rb +36 -0
- data/lib/apollo_rest_api/models/conversation_type2.rb +36 -0
- data/lib/apollo_rest_api/models/conversations_export_request.rb +94 -0
- data/lib/apollo_rest_api/models/conversations_export_response.rb +86 -0
- data/lib/apollo_rest_api/models/conversations_export_response1.rb +76 -0
- data/lib/apollo_rest_api/models/conversations_response.rb +333 -0
- data/lib/apollo_rest_api/models/conversations_search_request.rb +207 -0
- data/lib/apollo_rest_api/models/conversations_search_response.rb +130 -0
- data/lib/apollo_rest_api/models/counts.rb +115 -0
- data/lib/apollo_rest_api/models/created_account.rb +174 -0
- data/lib/apollo_rest_api/models/created_contact.rb +195 -0
- data/lib/apollo_rest_api/models/creation_type.rb +41 -0
- data/lib/apollo_rest_api/models/currency.rb +95 -0
- data/lib/apollo_rest_api/models/current_technology.rb +95 -0
- data/lib/apollo_rest_api/models/date_range.rb +84 -0
- data/lib/apollo_rest_api/models/date_range1.rb +87 -0
- data/lib/apollo_rest_api/models/deal.rb +107 -0
- data/lib/apollo_rest_api/models/deliverability_score.rb +460 -0
- data/lib/apollo_rest_api/models/departmental_head_count.rb +260 -0
- data/lib/apollo_rest_api/models/detail.rb +173 -0
- data/lib/apollo_rest_api/models/detail1.rb +109 -0
- data/lib/apollo_rest_api/models/email_account.rb +616 -0
- data/lib/apollo_rest_api/models/email_accounts_response.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_campaign.rb +722 -0
- data/lib/apollo_rest_api/models/emailer_campaign1.rb +359 -0
- data/lib/apollo_rest_api/models/emailer_campaign2.rb +158 -0
- data/lib/apollo_rest_api/models/emailer_campaign3.rb +95 -0
- data/lib/apollo_rest_api/models/emailer_campaign4.rb +96 -0
- data/lib/apollo_rest_api/models/emailer_campaign6.rb +105 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_abort_response.rb +96 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_add_contact_ids_response.rb +164 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_approve_response.rb +96 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_archive_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_remove_or_stop_contact_ids_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_search_response.rb +125 -0
- data/lib/apollo_rest_api/models/emailer_message.rb +676 -0
- data/lib/apollo_rest_api/models/emailer_message1.rb +410 -0
- data/lib/apollo_rest_api/models/emailer_messages_email_send_status_request.rb +74 -0
- data/lib/apollo_rest_api/models/emailer_messages_email_send_status_response.rb +166 -0
- data/lib/apollo_rest_api/models/emailer_messages_request.rb +197 -0
- data/lib/apollo_rest_api/models/emailer_messages_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_messages_send_now_request.rb +76 -0
- data/lib/apollo_rest_api/models/emailer_messages_send_now_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_schedule.rb +154 -0
- data/lib/apollo_rest_api/models/emailer_schedules_response.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_step.rb +206 -0
- data/lib/apollo_rest_api/models/emailer_step1.rb +189 -0
- data/lib/apollo_rest_api/models/emailer_step2.rb +126 -0
- data/lib/apollo_rest_api/models/emailer_step3.rb +148 -0
- data/lib/apollo_rest_api/models/emailer_step4.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_step5.rb +128 -0
- data/lib/apollo_rest_api/models/emailer_template.rb +100 -0
- data/lib/apollo_rest_api/models/emailer_template1.rb +95 -0
- data/lib/apollo_rest_api/models/emailer_template2.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_touch.rb +254 -0
- data/lib/apollo_rest_api/models/emailer_touch1.rb +128 -0
- data/lib/apollo_rest_api/models/emailer_touch2.rb +117 -0
- data/lib/apollo_rest_api/models/emailer_touch3.rb +139 -0
- data/lib/apollo_rest_api/models/emailer_touch4.rb +85 -0
- data/lib/apollo_rest_api/models/employment_history.rb +238 -0
- data/lib/apollo_rest_api/models/entity_progress_job.rb +153 -0
- data/lib/apollo_rest_api/models/entity_progress_job1.rb +135 -0
- data/lib/apollo_rest_api/models/entity_progress_job2.rb +141 -0
- data/lib/apollo_rest_api/models/error_details.rb +95 -0
- data/lib/apollo_rest_api/models/existing_account.rb +152 -0
- data/lib/apollo_rest_api/models/existing_contact.rb +171 -0
- data/lib/apollo_rest_api/models/faceting.rb +523 -0
- data/lib/apollo_rest_api/models/failure_reason.rb +44 -0
- data/lib/apollo_rest_api/models/field.rb +181 -0
- data/lib/apollo_rest_api/models/fields_request.rb +105 -0
- data/lib/apollo_rest_api/models/fields_response.rb +84 -0
- data/lib/apollo_rest_api/models/fields_response1.rb +85 -0
- data/lib/apollo_rest_api/models/filters.rb +165 -0
- data/lib/apollo_rest_api/models/finished.rb +26 -0
- data/lib/apollo_rest_api/models/funding_event.rb +134 -0
- data/lib/apollo_rest_api/models/generation_option.rb +107 -0
- data/lib/apollo_rest_api/models/generation_tone.rb +86 -0
- data/lib/apollo_rest_api/models/group_by.rb +84 -0
- data/lib/apollo_rest_api/models/industry_tag_hash.rb +83 -0
- data/lib/apollo_rest_api/models/label.rb +135 -0
- data/lib/apollo_rest_api/models/label2.rb +147 -0
- data/lib/apollo_rest_api/models/labels_add_entity_ids_to_label_names_request.rb +113 -0
- data/lib/apollo_rest_api/models/labels_add_entity_ids_to_label_names_response.rb +107 -0
- data/lib/apollo_rest_api/models/labels_remove_entity_ids_from_label_names_request.rb +113 -0
- data/lib/apollo_rest_api/models/labels_remove_entity_ids_from_label_names_response.rb +107 -0
- data/lib/apollo_rest_api/models/labels_request.rb +97 -0
- data/lib/apollo_rest_api/models/labels_request1.rb +87 -0
- data/lib/apollo_rest_api/models/labels_response.rb +201 -0
- data/lib/apollo_rest_api/models/labels_response1.rb +75 -0
- data/lib/apollo_rest_api/models/match.rb +393 -0
- data/lib/apollo_rest_api/models/meta.rb +76 -0
- data/lib/apollo_rest_api/models/metric.rb +117 -0
- data/lib/apollo_rest_api/models/metric1.rb +100 -0
- data/lib/apollo_rest_api/models/mixed_companies_search_response.rb +199 -0
- data/lib/apollo_rest_api/models/mixed_people_api_search_response.rb +95 -0
- data/lib/apollo_rest_api/models/modality.rb +37 -0
- data/lib/apollo_rest_api/models/modality1.rb +37 -0
- data/lib/apollo_rest_api/models/modality3.rb +40 -0
- data/lib/apollo_rest_api/models/note.rb +260 -0
- data/lib/apollo_rest_api/models/notes_response.rb +84 -0
- data/lib/apollo_rest_api/models/opportunities_request.rb +175 -0
- data/lib/apollo_rest_api/models/opportunities_request1.rb +164 -0
- data/lib/apollo_rest_api/models/opportunities_response.rb +76 -0
- data/lib/apollo_rest_api/models/opportunities_response1.rb +76 -0
- data/lib/apollo_rest_api/models/opportunities_response2.rb +76 -0
- data/lib/apollo_rest_api/models/opportunities_search_response.rb +170 -0
- data/lib/apollo_rest_api/models/opportunity.rb +602 -0
- data/lib/apollo_rest_api/models/opportunity1.rb +574 -0
- data/lib/apollo_rest_api/models/opportunity11.rb +217 -0
- data/lib/apollo_rest_api/models/opportunity2.rb +583 -0
- data/lib/apollo_rest_api/models/opportunity3.rb +594 -0
- data/lib/apollo_rest_api/models/opportunity4.rb +574 -0
- data/lib/apollo_rest_api/models/opportunity5.rb +591 -0
- data/lib/apollo_rest_api/models/opportunity_contact_role.rb +95 -0
- data/lib/apollo_rest_api/models/opportunity_contact_role1.rb +135 -0
- data/lib/apollo_rest_api/models/opportunity_stage.rb +210 -0
- data/lib/apollo_rest_api/models/opportunity_stages_response.rb +85 -0
- data/lib/apollo_rest_api/models/organization.rb +659 -0
- data/lib/apollo_rest_api/models/organization1.rb +422 -0
- data/lib/apollo_rest_api/models/organization2.rb +752 -0
- data/lib/apollo_rest_api/models/organization3.rb +600 -0
- data/lib/apollo_rest_api/models/organization4.rb +162 -0
- data/lib/apollo_rest_api/models/organization5.rb +336 -0
- data/lib/apollo_rest_api/models/organization6.rb +264 -0
- data/lib/apollo_rest_api/models/organization7.rb +88 -0
- data/lib/apollo_rest_api/models/organization_job_posting.rb +144 -0
- data/lib/apollo_rest_api/models/organizations_bulk_enrich_request.rb +89 -0
- data/lib/apollo_rest_api/models/organizations_bulk_enrich_response.rb +194 -0
- data/lib/apollo_rest_api/models/organizations_enrich_response.rb +76 -0
- data/lib/apollo_rest_api/models/organizations_job_postings_response.rb +88 -0
- data/lib/apollo_rest_api/models/pagination.rb +105 -0
- data/lib/apollo_rest_api/models/pagination6.rb +105 -0
- data/lib/apollo_rest_api/models/params.rb +116 -0
- data/lib/apollo_rest_api/models/participants.rb +85 -0
- data/lib/apollo_rest_api/models/paused.rb +26 -0
- data/lib/apollo_rest_api/models/people_bulk_match_request.rb +83 -0
- data/lib/apollo_rest_api/models/people_bulk_match_response.rb +180 -0
- data/lib/apollo_rest_api/models/people_match_response.rb +87 -0
- data/lib/apollo_rest_api/models/person.rb +393 -0
- data/lib/apollo_rest_api/models/person1.rb +196 -0
- data/lib/apollo_rest_api/models/phone_call.rb +131 -0
- data/lib/apollo_rest_api/models/phone_number.rb +149 -0
- data/lib/apollo_rest_api/models/phone_number1.rb +149 -0
- data/lib/apollo_rest_api/models/phone_number3.rb +97 -0
- data/lib/apollo_rest_api/models/phone_number4.rb +85 -0
- data/lib/apollo_rest_api/models/phone_number5.rb +127 -0
- data/lib/apollo_rest_api/models/pivot_group_by.rb +85 -0
- data/lib/apollo_rest_api/models/primary_phone.rb +96 -0
- data/lib/apollo_rest_api/models/priority.rb +40 -0
- data/lib/apollo_rest_api/models/recipient.rb +100 -0
- data/lib/apollo_rest_api/models/recipient1.rb +116 -0
- data/lib/apollo_rest_api/models/reports_sync_report_request.rb +253 -0
- data/lib/apollo_rest_api/models/reports_sync_report_response.rb +102 -0
- data/lib/apollo_rest_api/models/request_type.rb +40 -0
- data/lib/apollo_rest_api/models/response.rb +118 -0
- data/lib/apollo_rest_api/models/role.rb +112 -0
- data/lib/apollo_rest_api/models/send_from.rb +116 -0
- data/lib/apollo_rest_api/models/sequences_request.rb +391 -0
- data/lib/apollo_rest_api/models/sequences_request1.rb +206 -0
- data/lib/apollo_rest_api/models/sequences_response.rb +148 -0
- data/lib/apollo_rest_api/models/sequences_response1.rb +203 -0
- data/lib/apollo_rest_api/models/sharing_access.rb +148 -0
- data/lib/apollo_rest_api/models/sharing_permission.rb +154 -0
- data/lib/apollo_rest_api/models/skipped_contact_ids.rb +77 -0
- data/lib/apollo_rest_api/models/smart_datetime_range.rb +86 -0
- data/lib/apollo_rest_api/models/sort.rb +85 -0
- data/lib/apollo_rest_api/models/sort_by_field.rb +43 -0
- data/lib/apollo_rest_api/models/sort_by_field1.rb +36 -0
- data/lib/apollo_rest_api/models/sort_direction.rb +36 -0
- data/lib/apollo_rest_api/models/source.rb +40 -0
- data/lib/apollo_rest_api/models/status.rb +44 -0
- data/lib/apollo_rest_api/models/status2.rb +36 -0
- data/lib/apollo_rest_api/models/status3.rb +40 -0
- data/lib/apollo_rest_api/models/status4.rb +37 -0
- data/lib/apollo_rest_api/models/step.rb +127 -0
- data/lib/apollo_rest_api/models/task.rb +394 -0
- data/lib/apollo_rest_api/models/task2.rb +536 -0
- data/lib/apollo_rest_api/models/task4.rb +524 -0
- data/lib/apollo_rest_api/models/task5.rb +104 -0
- data/lib/apollo_rest_api/models/task_type.rb +95 -0
- data/lib/apollo_rest_api/models/tasks_bulk_create_request.rb +173 -0
- data/lib/apollo_rest_api/models/tasks_bulk_create_response.rb +94 -0
- data/lib/apollo_rest_api/models/tasks_complete_request.rb +75 -0
- data/lib/apollo_rest_api/models/tasks_complete_response.rb +86 -0
- data/lib/apollo_rest_api/models/tasks_request.rb +183 -0
- data/lib/apollo_rest_api/models/tasks_request1.rb +227 -0
- data/lib/apollo_rest_api/models/tasks_response.rb +74 -0
- data/lib/apollo_rest_api/models/tasks_response1.rb +74 -0
- data/lib/apollo_rest_api/models/tasks_search_response.rb +136 -0
- data/lib/apollo_rest_api/models/tasks_skip_request.rb +88 -0
- data/lib/apollo_rest_api/models/tasks_skip_response.rb +74 -0
- data/lib/apollo_rest_api/models/team.rb +87 -0
- data/lib/apollo_rest_api/models/total_facet.rb +95 -0
- data/lib/apollo_rest_api/models/true_warmup_thresholds.rb +106 -0
- data/lib/apollo_rest_api/models/type.rb +44 -0
- data/lib/apollo_rest_api/models/type1.rb +36 -0
- data/lib/apollo_rest_api/models/type2.rb +52 -0
- data/lib/apollo_rest_api/models/typed_custom_fields.rb +111 -0
- data/lib/apollo_rest_api/models/typed_custom_fields6.rb +106 -0
- data/lib/apollo_rest_api/models/typed_custom_fields7.rb +243 -0
- data/lib/apollo_rest_api/models/typed_custom_fields_response.rb +85 -0
- data/lib/apollo_rest_api/models/unique_completed.rb +26 -0
- data/lib/apollo_rest_api/models/unique_scheduled.rb +26 -0
- data/lib/apollo_rest_api/models/unique_skipped.rb +26 -0
- data/lib/apollo_rest_api/models/user.rb +1294 -0
- data/lib/apollo_rest_api/models/users_api_profile_response.rb +309 -0
- data/lib/apollo_rest_api/models/users_search_response.rb +106 -0
- data/lib/apollo_rest_api/models/video_recording.rb +95 -0
- data/lib/apollo_rest_api/models/wait_mode.rb +40 -0
- data/lib/apollo_rest_api/models/webhook_result_response.rb +140 -0
- data/lib/apollo_rest_api/models/webhook_status.rb +40 -0
- data/lib/apollo_rest_api/utilities/date_time_helper.rb +11 -0
- data/lib/apollo_rest_api/utilities/file_wrapper.rb +28 -0
- data/lib/apollo_rest_api/utilities/union_type_lookup.rb +128 -0
- data/lib/apollo_rest_api.rb +503 -0
- metadata +499 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
# apollo_rest_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ApolloRestApi
|
|
7
|
+
# EmailerTouch Model.
|
|
8
|
+
class EmailerTouch < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :emailer_step_id
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :emailer_template_id
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [Status3]
|
|
26
|
+
attr_accessor :status
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [Type1]
|
|
30
|
+
attr_accessor :type
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [TrueClass | FalseClass]
|
|
34
|
+
attr_accessor :include_signature
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [TrueClass | FalseClass]
|
|
38
|
+
attr_accessor :has_personalized_opener
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :template_type
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [Object]
|
|
46
|
+
attr_accessor :unique_scheduled
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [Integer]
|
|
50
|
+
attr_accessor :unique_delivered
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [Integer]
|
|
54
|
+
attr_accessor :unique_bounced
|
|
55
|
+
|
|
56
|
+
# TODO: Write general description for this method
|
|
57
|
+
# @return [Integer]
|
|
58
|
+
attr_accessor :unique_opened
|
|
59
|
+
|
|
60
|
+
# TODO: Write general description for this method
|
|
61
|
+
# @return [Integer]
|
|
62
|
+
attr_accessor :unique_replied
|
|
63
|
+
|
|
64
|
+
# TODO: Write general description for this method
|
|
65
|
+
# @return [Float]
|
|
66
|
+
attr_accessor :bounce_rate
|
|
67
|
+
|
|
68
|
+
# TODO: Write general description for this method
|
|
69
|
+
# @return [Float]
|
|
70
|
+
attr_accessor :open_rate
|
|
71
|
+
|
|
72
|
+
# TODO: Write general description for this method
|
|
73
|
+
# @return [Float]
|
|
74
|
+
attr_accessor :reply_rate
|
|
75
|
+
|
|
76
|
+
# A mapping from model property names to API property names.
|
|
77
|
+
def self.names
|
|
78
|
+
@_hash = {} if @_hash.nil?
|
|
79
|
+
@_hash['id'] = 'id'
|
|
80
|
+
@_hash['emailer_step_id'] = 'emailer_step_id'
|
|
81
|
+
@_hash['emailer_template_id'] = 'emailer_template_id'
|
|
82
|
+
@_hash['status'] = 'status'
|
|
83
|
+
@_hash['type'] = 'type'
|
|
84
|
+
@_hash['include_signature'] = 'include_signature'
|
|
85
|
+
@_hash['has_personalized_opener'] = 'has_personalized_opener'
|
|
86
|
+
@_hash['template_type'] = 'template_type'
|
|
87
|
+
@_hash['unique_scheduled'] = 'unique_scheduled'
|
|
88
|
+
@_hash['unique_delivered'] = 'unique_delivered'
|
|
89
|
+
@_hash['unique_bounced'] = 'unique_bounced'
|
|
90
|
+
@_hash['unique_opened'] = 'unique_opened'
|
|
91
|
+
@_hash['unique_replied'] = 'unique_replied'
|
|
92
|
+
@_hash['bounce_rate'] = 'bounce_rate'
|
|
93
|
+
@_hash['open_rate'] = 'open_rate'
|
|
94
|
+
@_hash['reply_rate'] = 'reply_rate'
|
|
95
|
+
@_hash
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# An array for optional fields
|
|
99
|
+
def self.optionals
|
|
100
|
+
%w[
|
|
101
|
+
id
|
|
102
|
+
emailer_step_id
|
|
103
|
+
emailer_template_id
|
|
104
|
+
status
|
|
105
|
+
type
|
|
106
|
+
include_signature
|
|
107
|
+
has_personalized_opener
|
|
108
|
+
template_type
|
|
109
|
+
unique_scheduled
|
|
110
|
+
unique_delivered
|
|
111
|
+
unique_bounced
|
|
112
|
+
unique_opened
|
|
113
|
+
unique_replied
|
|
114
|
+
bounce_rate
|
|
115
|
+
open_rate
|
|
116
|
+
reply_rate
|
|
117
|
+
]
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# An array for nullable fields
|
|
121
|
+
def self.nullables
|
|
122
|
+
%w[
|
|
123
|
+
bounce_rate
|
|
124
|
+
open_rate
|
|
125
|
+
reply_rate
|
|
126
|
+
]
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
def initialize(id: SKIP, emailer_step_id: SKIP, emailer_template_id: SKIP,
|
|
130
|
+
status: SKIP, type: SKIP, include_signature: SKIP,
|
|
131
|
+
has_personalized_opener: SKIP, template_type: SKIP,
|
|
132
|
+
unique_scheduled: SKIP, unique_delivered: SKIP,
|
|
133
|
+
unique_bounced: SKIP, unique_opened: SKIP,
|
|
134
|
+
unique_replied: SKIP, bounce_rate: SKIP, open_rate: SKIP,
|
|
135
|
+
reply_rate: SKIP, additional_properties: nil)
|
|
136
|
+
# Add additional model properties to the instance
|
|
137
|
+
additional_properties = {} if additional_properties.nil?
|
|
138
|
+
|
|
139
|
+
@id = id unless id == SKIP
|
|
140
|
+
@emailer_step_id = emailer_step_id unless emailer_step_id == SKIP
|
|
141
|
+
@emailer_template_id = emailer_template_id unless emailer_template_id == SKIP
|
|
142
|
+
@status = status unless status == SKIP
|
|
143
|
+
@type = type unless type == SKIP
|
|
144
|
+
@include_signature = include_signature unless include_signature == SKIP
|
|
145
|
+
@has_personalized_opener = has_personalized_opener unless has_personalized_opener == SKIP
|
|
146
|
+
@template_type = template_type unless template_type == SKIP
|
|
147
|
+
@unique_scheduled = unique_scheduled unless unique_scheduled == SKIP
|
|
148
|
+
@unique_delivered = unique_delivered unless unique_delivered == SKIP
|
|
149
|
+
@unique_bounced = unique_bounced unless unique_bounced == SKIP
|
|
150
|
+
@unique_opened = unique_opened unless unique_opened == SKIP
|
|
151
|
+
@unique_replied = unique_replied unless unique_replied == SKIP
|
|
152
|
+
@bounce_rate = bounce_rate unless bounce_rate == SKIP
|
|
153
|
+
@open_rate = open_rate unless open_rate == SKIP
|
|
154
|
+
@reply_rate = reply_rate unless reply_rate == SKIP
|
|
155
|
+
@additional_properties = additional_properties
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Creates an instance of the object from a hash.
|
|
159
|
+
def self.from_hash(hash)
|
|
160
|
+
return nil unless hash
|
|
161
|
+
|
|
162
|
+
# Extract variables from the hash.
|
|
163
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
164
|
+
emailer_step_id =
|
|
165
|
+
hash.key?('emailer_step_id') ? hash['emailer_step_id'] : SKIP
|
|
166
|
+
emailer_template_id =
|
|
167
|
+
hash.key?('emailer_template_id') ? hash['emailer_template_id'] : SKIP
|
|
168
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
169
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
170
|
+
include_signature =
|
|
171
|
+
hash.key?('include_signature') ? hash['include_signature'] : SKIP
|
|
172
|
+
has_personalized_opener =
|
|
173
|
+
hash.key?('has_personalized_opener') ? hash['has_personalized_opener'] : SKIP
|
|
174
|
+
template_type = hash.key?('template_type') ? hash['template_type'] : SKIP
|
|
175
|
+
unique_scheduled = hash.key?('unique_scheduled') ? APIHelper.deserialize_union_type(
|
|
176
|
+
UnionTypeLookUp.get(:EmailerTouchUniqueScheduled), hash['unique_scheduled']
|
|
177
|
+
) : SKIP
|
|
178
|
+
unique_delivered =
|
|
179
|
+
hash.key?('unique_delivered') ? hash['unique_delivered'] : SKIP
|
|
180
|
+
unique_bounced =
|
|
181
|
+
hash.key?('unique_bounced') ? hash['unique_bounced'] : SKIP
|
|
182
|
+
unique_opened = hash.key?('unique_opened') ? hash['unique_opened'] : SKIP
|
|
183
|
+
unique_replied =
|
|
184
|
+
hash.key?('unique_replied') ? hash['unique_replied'] : SKIP
|
|
185
|
+
bounce_rate = hash.key?('bounce_rate') ? hash['bounce_rate'] : SKIP
|
|
186
|
+
open_rate = hash.key?('open_rate') ? hash['open_rate'] : SKIP
|
|
187
|
+
reply_rate = hash.key?('reply_rate') ? hash['reply_rate'] : SKIP
|
|
188
|
+
|
|
189
|
+
# Create a new hash for additional properties, removing known properties.
|
|
190
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
191
|
+
|
|
192
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
193
|
+
new_hash, proc { |value| value }
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
# Create object from extracted values.
|
|
197
|
+
EmailerTouch.new(id: id,
|
|
198
|
+
emailer_step_id: emailer_step_id,
|
|
199
|
+
emailer_template_id: emailer_template_id,
|
|
200
|
+
status: status,
|
|
201
|
+
type: type,
|
|
202
|
+
include_signature: include_signature,
|
|
203
|
+
has_personalized_opener: has_personalized_opener,
|
|
204
|
+
template_type: template_type,
|
|
205
|
+
unique_scheduled: unique_scheduled,
|
|
206
|
+
unique_delivered: unique_delivered,
|
|
207
|
+
unique_bounced: unique_bounced,
|
|
208
|
+
unique_opened: unique_opened,
|
|
209
|
+
unique_replied: unique_replied,
|
|
210
|
+
bounce_rate: bounce_rate,
|
|
211
|
+
open_rate: open_rate,
|
|
212
|
+
reply_rate: reply_rate,
|
|
213
|
+
additional_properties: additional_properties)
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Validates an instance of the object from a given value.
|
|
217
|
+
# @param [EmailerTouch | Hash] The value against the validation is performed.
|
|
218
|
+
def self.validate(value)
|
|
219
|
+
return true if value.instance_of? self
|
|
220
|
+
|
|
221
|
+
return false unless value.instance_of? Hash
|
|
222
|
+
|
|
223
|
+
true
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Provides a human-readable string representation of the object.
|
|
227
|
+
def to_s
|
|
228
|
+
class_name = self.class.name.split('::').last
|
|
229
|
+
"<#{class_name} id: #{@id}, emailer_step_id: #{@emailer_step_id}, emailer_template_id:"\
|
|
230
|
+
" #{@emailer_template_id}, status: #{@status}, type: #{@type}, include_signature:"\
|
|
231
|
+
" #{@include_signature}, has_personalized_opener: #{@has_personalized_opener},"\
|
|
232
|
+
" template_type: #{@template_type}, unique_scheduled: #{@unique_scheduled},"\
|
|
233
|
+
" unique_delivered: #{@unique_delivered}, unique_bounced: #{@unique_bounced}, unique_opened:"\
|
|
234
|
+
" #{@unique_opened}, unique_replied: #{@unique_replied}, bounce_rate: #{@bounce_rate},"\
|
|
235
|
+
" open_rate: #{@open_rate}, reply_rate: #{@reply_rate}, additional_properties:"\
|
|
236
|
+
" #{@additional_properties}>"
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
240
|
+
def inspect
|
|
241
|
+
class_name = self.class.name.split('::').last
|
|
242
|
+
"<#{class_name} id: #{@id.inspect}, emailer_step_id: #{@emailer_step_id.inspect},"\
|
|
243
|
+
" emailer_template_id: #{@emailer_template_id.inspect}, status: #{@status.inspect}, type:"\
|
|
244
|
+
" #{@type.inspect}, include_signature: #{@include_signature.inspect},"\
|
|
245
|
+
" has_personalized_opener: #{@has_personalized_opener.inspect}, template_type:"\
|
|
246
|
+
" #{@template_type.inspect}, unique_scheduled: #{@unique_scheduled.inspect},"\
|
|
247
|
+
" unique_delivered: #{@unique_delivered.inspect}, unique_bounced:"\
|
|
248
|
+
" #{@unique_bounced.inspect}, unique_opened: #{@unique_opened.inspect}, unique_replied:"\
|
|
249
|
+
" #{@unique_replied.inspect}, bounce_rate: #{@bounce_rate.inspect}, open_rate:"\
|
|
250
|
+
" #{@open_rate.inspect}, reply_rate: #{@reply_rate.inspect}, additional_properties:"\
|
|
251
|
+
" #{@additional_properties}>"
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
end
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# apollo_rest_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ApolloRestApi
|
|
7
|
+
# EmailerTouch1 Model.
|
|
8
|
+
class EmailerTouch1 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# How the email threads with earlier steps. Choose 1 of the following
|
|
13
|
+
# options: <ul><li>`new_thread`: Start a new email
|
|
14
|
+
# thread.</li><li>`reply_to_thread`: Reply to the thread started by a
|
|
15
|
+
# previous step. A `reply_to_thread` touch must come after a step that
|
|
16
|
+
# starts a new thread.</li></ul>
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :type
|
|
19
|
+
|
|
20
|
+
# The review status of the touch. Choose 1 of the following options:
|
|
21
|
+
# <ul><li>`approved`: The touch is approved and will be sent. Requires a
|
|
22
|
+
# template with a non-empty body.</li><li>`to_be_reviewed`: The touch
|
|
23
|
+
# requires review before it sends. (default)</li></ul>
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :status
|
|
26
|
+
|
|
27
|
+
# Set to `true` to append the sending user's email signature to the email.
|
|
28
|
+
# @return [TrueClass | FalseClass]
|
|
29
|
+
attr_accessor :include_signature
|
|
30
|
+
|
|
31
|
+
# The email content for the touch. Provide `id` to update an existing
|
|
32
|
+
# template that your team owns, or omit `id` to create a new template.
|
|
33
|
+
# @return [EmailerTemplate]
|
|
34
|
+
attr_accessor :emailer_template
|
|
35
|
+
|
|
36
|
+
# The Apollo IDs for attachments to include with the email.
|
|
37
|
+
# @return [Array[String]]
|
|
38
|
+
attr_accessor :attachment_ids
|
|
39
|
+
|
|
40
|
+
# A mapping from model property names to API property names.
|
|
41
|
+
def self.names
|
|
42
|
+
@_hash = {} if @_hash.nil?
|
|
43
|
+
@_hash['type'] = 'type'
|
|
44
|
+
@_hash['status'] = 'status'
|
|
45
|
+
@_hash['include_signature'] = 'include_signature'
|
|
46
|
+
@_hash['emailer_template'] = 'emailer_template'
|
|
47
|
+
@_hash['attachment_ids'] = 'attachment_ids'
|
|
48
|
+
@_hash
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# An array for optional fields
|
|
52
|
+
def self.optionals
|
|
53
|
+
%w[
|
|
54
|
+
type
|
|
55
|
+
status
|
|
56
|
+
include_signature
|
|
57
|
+
emailer_template
|
|
58
|
+
attachment_ids
|
|
59
|
+
]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# An array for nullable fields
|
|
63
|
+
def self.nullables
|
|
64
|
+
[]
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def initialize(type: SKIP, status: SKIP, include_signature: SKIP,
|
|
68
|
+
emailer_template: SKIP, attachment_ids: SKIP,
|
|
69
|
+
additional_properties: nil)
|
|
70
|
+
# Add additional model properties to the instance
|
|
71
|
+
additional_properties = {} if additional_properties.nil?
|
|
72
|
+
|
|
73
|
+
@type = type unless type == SKIP
|
|
74
|
+
@status = status unless status == SKIP
|
|
75
|
+
@include_signature = include_signature unless include_signature == SKIP
|
|
76
|
+
@emailer_template = emailer_template unless emailer_template == SKIP
|
|
77
|
+
@attachment_ids = attachment_ids unless attachment_ids == SKIP
|
|
78
|
+
@additional_properties = additional_properties
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Creates an instance of the object from a hash.
|
|
82
|
+
def self.from_hash(hash)
|
|
83
|
+
return nil unless hash
|
|
84
|
+
|
|
85
|
+
# Extract variables from the hash.
|
|
86
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
87
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
88
|
+
include_signature =
|
|
89
|
+
hash.key?('include_signature') ? hash['include_signature'] : SKIP
|
|
90
|
+
emailer_template = EmailerTemplate.from_hash(hash['emailer_template']) if
|
|
91
|
+
hash['emailer_template']
|
|
92
|
+
attachment_ids =
|
|
93
|
+
hash.key?('attachment_ids') ? hash['attachment_ids'] : SKIP
|
|
94
|
+
|
|
95
|
+
# Create a new hash for additional properties, removing known properties.
|
|
96
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
97
|
+
|
|
98
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
99
|
+
new_hash, proc { |value| value }
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
# Create object from extracted values.
|
|
103
|
+
EmailerTouch1.new(type: type,
|
|
104
|
+
status: status,
|
|
105
|
+
include_signature: include_signature,
|
|
106
|
+
emailer_template: emailer_template,
|
|
107
|
+
attachment_ids: attachment_ids,
|
|
108
|
+
additional_properties: additional_properties)
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Provides a human-readable string representation of the object.
|
|
112
|
+
def to_s
|
|
113
|
+
class_name = self.class.name.split('::').last
|
|
114
|
+
"<#{class_name} type: #{@type}, status: #{@status}, include_signature:"\
|
|
115
|
+
" #{@include_signature}, emailer_template: #{@emailer_template}, attachment_ids:"\
|
|
116
|
+
" #{@attachment_ids}, additional_properties: #{@additional_properties}>"
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
120
|
+
def inspect
|
|
121
|
+
class_name = self.class.name.split('::').last
|
|
122
|
+
"<#{class_name} type: #{@type.inspect}, status: #{@status.inspect}, include_signature:"\
|
|
123
|
+
" #{@include_signature.inspect}, emailer_template: #{@emailer_template.inspect},"\
|
|
124
|
+
" attachment_ids: #{@attachment_ids.inspect}, additional_properties:"\
|
|
125
|
+
" #{@additional_properties}>"
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# apollo_rest_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ApolloRestApi
|
|
7
|
+
# EmailerTouch2 Model.
|
|
8
|
+
class EmailerTouch2 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :emailer_step_id
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :emailer_template_id
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :status
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :type
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['id'] = 'id'
|
|
36
|
+
@_hash['emailer_step_id'] = 'emailer_step_id'
|
|
37
|
+
@_hash['emailer_template_id'] = 'emailer_template_id'
|
|
38
|
+
@_hash['status'] = 'status'
|
|
39
|
+
@_hash['type'] = 'type'
|
|
40
|
+
@_hash
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for optional fields
|
|
44
|
+
def self.optionals
|
|
45
|
+
%w[
|
|
46
|
+
id
|
|
47
|
+
emailer_step_id
|
|
48
|
+
emailer_template_id
|
|
49
|
+
status
|
|
50
|
+
type
|
|
51
|
+
]
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# An array for nullable fields
|
|
55
|
+
def self.nullables
|
|
56
|
+
[]
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def initialize(id: SKIP, emailer_step_id: SKIP, emailer_template_id: SKIP,
|
|
60
|
+
status: SKIP, type: SKIP, additional_properties: nil)
|
|
61
|
+
# Add additional model properties to the instance
|
|
62
|
+
additional_properties = {} if additional_properties.nil?
|
|
63
|
+
|
|
64
|
+
@id = id unless id == SKIP
|
|
65
|
+
@emailer_step_id = emailer_step_id unless emailer_step_id == SKIP
|
|
66
|
+
@emailer_template_id = emailer_template_id unless emailer_template_id == SKIP
|
|
67
|
+
@status = status unless status == SKIP
|
|
68
|
+
@type = type unless type == SKIP
|
|
69
|
+
@additional_properties = additional_properties
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Creates an instance of the object from a hash.
|
|
73
|
+
def self.from_hash(hash)
|
|
74
|
+
return nil unless hash
|
|
75
|
+
|
|
76
|
+
# Extract variables from the hash.
|
|
77
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
78
|
+
emailer_step_id =
|
|
79
|
+
hash.key?('emailer_step_id') ? hash['emailer_step_id'] : SKIP
|
|
80
|
+
emailer_template_id =
|
|
81
|
+
hash.key?('emailer_template_id') ? hash['emailer_template_id'] : SKIP
|
|
82
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
83
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
84
|
+
|
|
85
|
+
# Create a new hash for additional properties, removing known properties.
|
|
86
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
87
|
+
|
|
88
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
89
|
+
new_hash, proc { |value| value }
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
# Create object from extracted values.
|
|
93
|
+
EmailerTouch2.new(id: id,
|
|
94
|
+
emailer_step_id: emailer_step_id,
|
|
95
|
+
emailer_template_id: emailer_template_id,
|
|
96
|
+
status: status,
|
|
97
|
+
type: type,
|
|
98
|
+
additional_properties: additional_properties)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Provides a human-readable string representation of the object.
|
|
102
|
+
def to_s
|
|
103
|
+
class_name = self.class.name.split('::').last
|
|
104
|
+
"<#{class_name} id: #{@id}, emailer_step_id: #{@emailer_step_id}, emailer_template_id:"\
|
|
105
|
+
" #{@emailer_template_id}, status: #{@status}, type: #{@type}, additional_properties:"\
|
|
106
|
+
" #{@additional_properties}>"
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
110
|
+
def inspect
|
|
111
|
+
class_name = self.class.name.split('::').last
|
|
112
|
+
"<#{class_name} id: #{@id.inspect}, emailer_step_id: #{@emailer_step_id.inspect},"\
|
|
113
|
+
" emailer_template_id: #{@emailer_template_id.inspect}, status: #{@status.inspect}, type:"\
|
|
114
|
+
" #{@type.inspect}, additional_properties: #{@additional_properties}>"
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# apollo_rest_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ApolloRestApi
|
|
7
|
+
# EmailerTouch3 Model.
|
|
8
|
+
class EmailerTouch3 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The Apollo ID of an existing touch to update. Omit to create a new touch.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
|
|
16
|
+
# The review status of the touch. Set to `approved` to enable the touch (the
|
|
17
|
+
# template must have a non-empty body).
|
|
18
|
+
# @return [Status4]
|
|
19
|
+
attr_accessor :status
|
|
20
|
+
|
|
21
|
+
# IDs of attachments to include with this touch.
|
|
22
|
+
# @return [Array[String]]
|
|
23
|
+
attr_accessor :attachment_ids
|
|
24
|
+
|
|
25
|
+
# The email template content for this touch.
|
|
26
|
+
# @return [EmailerTemplate2]
|
|
27
|
+
attr_accessor :emailer_template
|
|
28
|
+
|
|
29
|
+
# AI generation options used to compose the touch content.
|
|
30
|
+
# @return [Array[GenerationOption]]
|
|
31
|
+
attr_accessor :generation_options
|
|
32
|
+
|
|
33
|
+
# The tone to apply when generating the touch content with AI.
|
|
34
|
+
# @return [GenerationTone]
|
|
35
|
+
attr_accessor :generation_tone
|
|
36
|
+
|
|
37
|
+
# A mapping from model property names to API property names.
|
|
38
|
+
def self.names
|
|
39
|
+
@_hash = {} if @_hash.nil?
|
|
40
|
+
@_hash['id'] = 'id'
|
|
41
|
+
@_hash['status'] = 'status'
|
|
42
|
+
@_hash['attachment_ids'] = 'attachment_ids'
|
|
43
|
+
@_hash['emailer_template'] = 'emailer_template'
|
|
44
|
+
@_hash['generation_options'] = 'generation_options'
|
|
45
|
+
@_hash['generation_tone'] = 'generation_tone'
|
|
46
|
+
@_hash
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# An array for optional fields
|
|
50
|
+
def self.optionals
|
|
51
|
+
%w[
|
|
52
|
+
id
|
|
53
|
+
status
|
|
54
|
+
attachment_ids
|
|
55
|
+
emailer_template
|
|
56
|
+
generation_options
|
|
57
|
+
generation_tone
|
|
58
|
+
]
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# An array for nullable fields
|
|
62
|
+
def self.nullables
|
|
63
|
+
[]
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def initialize(id: SKIP, status: SKIP, attachment_ids: SKIP,
|
|
67
|
+
emailer_template: SKIP, generation_options: SKIP,
|
|
68
|
+
generation_tone: SKIP, additional_properties: nil)
|
|
69
|
+
# Add additional model properties to the instance
|
|
70
|
+
additional_properties = {} if additional_properties.nil?
|
|
71
|
+
|
|
72
|
+
@id = id unless id == SKIP
|
|
73
|
+
@status = status unless status == SKIP
|
|
74
|
+
@attachment_ids = attachment_ids unless attachment_ids == SKIP
|
|
75
|
+
@emailer_template = emailer_template unless emailer_template == SKIP
|
|
76
|
+
@generation_options = generation_options unless generation_options == SKIP
|
|
77
|
+
@generation_tone = generation_tone unless generation_tone == SKIP
|
|
78
|
+
@additional_properties = additional_properties
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Creates an instance of the object from a hash.
|
|
82
|
+
def self.from_hash(hash)
|
|
83
|
+
return nil unless hash
|
|
84
|
+
|
|
85
|
+
# Extract variables from the hash.
|
|
86
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
87
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
88
|
+
attachment_ids =
|
|
89
|
+
hash.key?('attachment_ids') ? hash['attachment_ids'] : SKIP
|
|
90
|
+
emailer_template = EmailerTemplate2.from_hash(hash['emailer_template']) if
|
|
91
|
+
hash['emailer_template']
|
|
92
|
+
# Parameter is an array, so we need to iterate through it
|
|
93
|
+
generation_options = nil
|
|
94
|
+
unless hash['generation_options'].nil?
|
|
95
|
+
generation_options = []
|
|
96
|
+
hash['generation_options'].each do |structure|
|
|
97
|
+
generation_options << (GenerationOption.from_hash(structure) if structure)
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
generation_options = SKIP unless hash.key?('generation_options')
|
|
102
|
+
generation_tone = GenerationTone.from_hash(hash['generation_tone']) if
|
|
103
|
+
hash['generation_tone']
|
|
104
|
+
|
|
105
|
+
# Create a new hash for additional properties, removing known properties.
|
|
106
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
107
|
+
|
|
108
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
109
|
+
new_hash, proc { |value| value }
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
# Create object from extracted values.
|
|
113
|
+
EmailerTouch3.new(id: id,
|
|
114
|
+
status: status,
|
|
115
|
+
attachment_ids: attachment_ids,
|
|
116
|
+
emailer_template: emailer_template,
|
|
117
|
+
generation_options: generation_options,
|
|
118
|
+
generation_tone: generation_tone,
|
|
119
|
+
additional_properties: additional_properties)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Provides a human-readable string representation of the object.
|
|
123
|
+
def to_s
|
|
124
|
+
class_name = self.class.name.split('::').last
|
|
125
|
+
"<#{class_name} id: #{@id}, status: #{@status}, attachment_ids: #{@attachment_ids},"\
|
|
126
|
+
" emailer_template: #{@emailer_template}, generation_options: #{@generation_options},"\
|
|
127
|
+
" generation_tone: #{@generation_tone}, additional_properties: #{@additional_properties}>"
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
131
|
+
def inspect
|
|
132
|
+
class_name = self.class.name.split('::').last
|
|
133
|
+
"<#{class_name} id: #{@id.inspect}, status: #{@status.inspect}, attachment_ids:"\
|
|
134
|
+
" #{@attachment_ids.inspect}, emailer_template: #{@emailer_template.inspect},"\
|
|
135
|
+
" generation_options: #{@generation_options.inspect}, generation_tone:"\
|
|
136
|
+
" #{@generation_tone.inspect}, additional_properties: #{@additional_properties}>"
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|