stackone_client 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stack_one/ats.rb +1400 -0
- data/lib/stack_one/crm.rb +332 -0
- data/lib/stack_one/hris.rb +71 -0
- data/lib/stack_one/marketing.rb +599 -0
- data/lib/stack_one/models/operations/ats_create_application_request.rb +27 -0
- data/lib/stack_one/models/operations/ats_create_application_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_create_candidate_note_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_create_candidate_note_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_create_candidate_request.rb +27 -0
- data/lib/stack_one/models/operations/ats_create_candidate_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_create_offer_request.rb +27 -0
- data/lib/stack_one/models/operations/ats_create_offer_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_application_document_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_application_document_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_application_offer_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_application_offer_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_application_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_application_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_application_scorecard_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_application_scorecard_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_candidate_note_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_candidate_note_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_candidate_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_candidate_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_candidate_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_department_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_department_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_department_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_interview_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_interview_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_interview_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_interview_stage_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_interview_stage_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_job_posting_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_job_posting_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_job_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_job_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_job_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_location_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_location_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_location_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_offer_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_offer_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_offer_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_rejected_reason_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_rejected_reason_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_user_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_user_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_user_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_application_documents_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_application_scorecards_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_application_scorecards_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_applications_offers_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_applications_offers_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_applications_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_applications_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_candidate_notes_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_candidate_notes_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_candidates_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_candidates_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_departments_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_departments_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_departments_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_interview_stages_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_interview_stages_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_interviews_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_interviews_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_job_postings_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_jobs_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_jobs_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_jobs_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_locations_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_locations_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_locations_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_offers_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_offers_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_offers_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_users_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_users_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_users_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_update_application_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_update_application_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_update_candidate_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_update_candidate_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_create_contact_request.rb +27 -0
- data/lib/stack_one/models/operations/crm_create_contact_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_get_account_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_get_account_request.rb +50 -0
- data/lib/stack_one/models/operations/crm_get_account_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_get_contact_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_get_contact_request.rb +50 -0
- data/lib/stack_one/models/operations/crm_get_contact_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_get_list_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_get_list_request.rb +50 -0
- data/lib/stack_one/models/operations/crm_get_list_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_list_accounts_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_list_accounts_request.rb +47 -0
- data/lib/stack_one/models/operations/crm_list_accounts_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_list_contacts_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_list_contacts_request.rb +47 -0
- data/lib/stack_one/models/operations/crm_list_contacts_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_list_lists_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_list_lists_request.rb +47 -0
- data/lib/stack_one/models/operations/crm_list_lists_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_update_contact_request.rb +30 -0
- data/lib/stack_one/models/operations/crm_update_contact_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_benefit_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_benefit_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_benefit_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_company_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_company_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employee_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_benefits_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_benefits_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_benefits_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_create_email_template_request.rb +27 -0
- data/lib/stack_one/models/operations/marketing_create_email_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_create_omni_channel_template_request.rb +27 -0
- data/lib/stack_one/models/operations/marketing_create_omni_channel_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_create_push_template_request.rb +27 -0
- data/lib/stack_one/models/operations/marketing_create_push_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_campaign_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +50 -0
- data/lib/stack_one/models/operations/marketing_get_campaign_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_email_template_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +50 -0
- data/lib/stack_one/models/operations/marketing_get_email_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +50 -0
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_push_template_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +50 -0
- data/lib/stack_one/models/operations/marketing_get_push_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_list_campaigns_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +47 -0
- data/lib/stack_one/models/operations/marketing_list_campaigns_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_list_email_templates_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +47 -0
- data/lib/stack_one/models/operations/marketing_list_email_templates_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +47 -0
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_list_push_templates_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +47 -0
- data/lib/stack_one/models/operations/marketing_list_push_templates_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_update_email_template_request.rb +30 -0
- data/lib/stack_one/models/operations/marketing_update_email_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_update_omni_channel_template_request.rb +30 -0
- data/lib/stack_one/models/operations/marketing_update_omni_channel_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_update_push_template_request.rb +30 -0
- data/lib/stack_one/models/operations/marketing_update_push_template_response.rb +33 -0
- data/lib/stack_one/models/operations.rb +168 -2
- data/lib/stack_one/models/shared/account.rb +54 -0
- data/lib/stack_one/models/shared/accountaddress.rb +42 -0
- data/lib/stack_one/models/shared/accountaddress_schemas_value.rb +265 -0
- data/lib/stack_one/models/shared/accountaddress_value.rb +20 -0
- data/lib/stack_one/models/shared/accountresult.rb +27 -0
- data/lib/stack_one/models/shared/accountspaginated.rb +33 -0
- data/lib/stack_one/models/shared/answer.rb +30 -0
- data/lib/stack_one/models/shared/answer_value.rb +26 -0
- data/lib/stack_one/models/shared/application.rb +77 -0
- data/lib/stack_one/models/shared/application_candidate.rb +30 -0
- data/lib/stack_one/models/shared/application_interview_stage.rb +36 -0
- data/lib/stack_one/models/shared/application_status.rb +27 -0
- data/lib/stack_one/models/shared/application_value.rb +32 -0
- data/lib/stack_one/models/shared/applicationattachment.rb +33 -0
- data/lib/stack_one/models/shared/applicationattachment_value.rb +19 -0
- data/lib/stack_one/models/shared/applicationresult.rb +27 -0
- data/lib/stack_one/models/shared/applicationspaginated.rb +33 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +44 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto_application_status.rb +27 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto_candidate.rb +30 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto_value.rb +32 -0
- data/lib/stack_one/models/shared/atscreatecandidaterequestdto.rb +47 -0
- data/lib/stack_one/models/shared/atscreatenotesrequestdto.rb +30 -0
- data/lib/stack_one/models/shared/atscreatenotesrequestdto_value.rb +19 -0
- data/lib/stack_one/models/shared/atscreateofferrequestdto.rb +39 -0
- data/lib/stack_one/models/shared/atscreateofferrequestdto_value.rb +25 -0
- data/lib/stack_one/models/shared/atslocation.rb +27 -0
- data/lib/stack_one/models/shared/atslocationresult.rb +27 -0
- data/lib/stack_one/models/shared/atslocationspaginated.rb +33 -0
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +47 -0
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_application_status.rb +27 -0
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_candidate.rb +30 -0
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_value.rb +32 -0
- data/lib/stack_one/models/shared/atsupdatecandidatesrequestdto.rb +50 -0
- data/lib/stack_one/models/shared/benefit_type.rb +27 -0
- data/lib/stack_one/models/shared/campaign.rb +63 -0
- data/lib/stack_one/models/shared/campaign_schemas_value.rb +20 -0
- data/lib/stack_one/models/shared/campaign_value.rb +22 -0
- data/lib/stack_one/models/shared/campaignresult.rb +27 -0
- data/lib/stack_one/models/shared/campaignspaginated.rb +33 -0
- data/lib/stack_one/models/shared/candidate.rb +68 -0
- data/lib/stack_one/models/shared/candidateemail.rb +27 -0
- data/lib/stack_one/models/shared/candidateresult.rb +27 -0
- data/lib/stack_one/models/shared/candidatespaginated.rb +33 -0
- data/lib/stack_one/models/shared/channelsenum.rb +27 -0
- data/lib/stack_one/models/shared/confidential.rb +19 -0
- data/lib/stack_one/models/shared/contact.rb +51 -0
- data/lib/stack_one/models/shared/contactresult.rb +27 -0
- data/lib/stack_one/models/shared/contactspaginated.rb +33 -0
- data/lib/stack_one/models/shared/content_type.rb +27 -0
- data/lib/stack_one/models/shared/country.rb +4 -4
- data/lib/stack_one/models/shared/countrycodeenum.rb +2 -2
- data/lib/stack_one/models/shared/countrycodeenum_value.rb +266 -0
- data/lib/stack_one/models/shared/createcandidatenoteresult.rb +30 -0
- data/lib/stack_one/models/shared/createofferresult.rb +30 -0
- data/lib/stack_one/models/shared/createresult.rb +30 -0
- data/lib/stack_one/models/shared/createtemplateresult.rb +30 -0
- data/lib/stack_one/models/shared/crmcreatecontactrequestdto.rb +42 -0
- data/lib/stack_one/models/shared/department.rb +27 -0
- data/lib/stack_one/models/shared/departmentresult.rb +27 -0
- data/lib/stack_one/models/shared/departmentspaginated.rb +33 -0
- data/lib/stack_one/models/shared/documentapimodel.rb +2 -2
- data/lib/stack_one/models/shared/documentapimodel_type.rb +27 -0
- data/lib/stack_one/models/shared/documentapimodel_value.rb +7 -14
- data/lib/stack_one/models/shared/emailmessages.rb +33 -0
- data/lib/stack_one/models/shared/employee_country.rb +2 -2
- data/lib/stack_one/models/shared/employee_location_type.rb +4 -4
- data/lib/stack_one/models/shared/employee_schemas_country.rb +2 -2
- data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +1 -1
- data/lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb +1 -1
- data/lib/stack_one/models/shared/employee_schemas_location_type.rb +4 -4
- data/lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb +1 -1
- data/lib/stack_one/models/shared/employment_employment_type.rb +2 -2
- data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +1 -3
- data/lib/stack_one/models/shared/employment_schemas_pay_period_value.rb +2 -1
- data/lib/stack_one/models/shared/employment_schemas_value.rb +1 -1
- data/lib/stack_one/models/shared/employment_type.rb +2 -2
- data/lib/stack_one/models/shared/field.rb +36 -0
- data/lib/stack_one/models/shared/field_type.rb +29 -0
- data/lib/stack_one/models/shared/fileformatenum_value.rb +1203 -11
- data/lib/stack_one/models/shared/home_location.rb +3 -3
- data/lib/stack_one/models/shared/hrisbenefit.rb +42 -0
- data/lib/stack_one/models/shared/hrisbenefit_value.rb +18 -0
- data/lib/stack_one/models/shared/hrisbenefitresult.rb +27 -0
- data/lib/stack_one/models/shared/hrisbenefitspaginated.rb +33 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_type.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +1 -1
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_status.rb +27 -0
- data/lib/stack_one/models/shared/hrislocation.rb +3 -3
- data/lib/stack_one/models/shared/hrislocation_country.rb +27 -0
- data/lib/stack_one/models/shared/hrislocation_location_type.rb +27 -0
- data/lib/stack_one/models/shared/hrislocation_schemas_value.rb +1 -1
- data/lib/stack_one/models/shared/internal.rb +19 -0
- data/lib/stack_one/models/shared/interview.rb +60 -0
- data/lib/stack_one/models/shared/interview_interview_stage.rb +36 -0
- data/lib/stack_one/models/shared/interview_status.rb +27 -0
- data/lib/stack_one/models/shared/interview_value.rb +23 -0
- data/lib/stack_one/models/shared/interviewer.rb +36 -0
- data/lib/stack_one/models/shared/interviewpart.rb +39 -0
- data/lib/stack_one/models/shared/interviewspaginated.rb +33 -0
- data/lib/stack_one/models/shared/interviewsresult.rb +27 -0
- data/lib/stack_one/models/shared/interviewstage.rb +36 -0
- data/lib/stack_one/models/shared/interviewstageresult.rb +27 -0
- data/lib/stack_one/models/shared/interviewstagespaginated.rb +33 -0
- data/lib/stack_one/models/shared/job.rb +57 -0
- data/lib/stack_one/models/shared/job_status.rb +27 -0
- data/lib/stack_one/models/shared/job_value.rb +25 -0
- data/lib/stack_one/models/shared/jobhiringteam.rb +36 -0
- data/lib/stack_one/models/shared/jobposting.rb +66 -0
- data/lib/stack_one/models/shared/jobposting_content.rb +27 -0
- data/lib/stack_one/models/shared/jobposting_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/jobposting_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/jobposting_schemas_status_value.rb +21 -0
- data/lib/stack_one/models/shared/jobposting_schemas_value.rb +35 -0
- data/lib/stack_one/models/shared/jobposting_status.rb +27 -0
- data/lib/stack_one/models/shared/jobposting_value.rb +21 -0
- data/lib/stack_one/models/shared/jobpostingcompensation.rb +45 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_schemas_type_value.rb +24 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_schemas_value.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_type.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_value.rb +31 -0
- data/lib/stack_one/models/shared/jobpostinglocation.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingquestionnaire.rb +33 -0
- data/lib/stack_one/models/shared/jobpostingresult.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingspaginated.rb +33 -0
- data/lib/stack_one/models/shared/jobresult.rb +27 -0
- data/lib/stack_one/models/shared/jobspaginated.rb +33 -0
- data/lib/stack_one/models/shared/list.rb +39 -0
- data/lib/stack_one/models/shared/list_type.rb +27 -0
- data/lib/stack_one/models/shared/list_value.rb +20 -0
- data/lib/stack_one/models/shared/listresult.rb +27 -0
- data/lib/stack_one/models/shared/listspaginated.rb +33 -0
- data/lib/stack_one/models/shared/location_type.rb +4 -4
- data/lib/stack_one/models/shared/marketingcreateemailtemplaterequestdto.rb +33 -0
- data/lib/stack_one/models/shared/marketingcreatepushtemplaterequestdto.rb +33 -0
- data/lib/stack_one/models/shared/marketingcreatetemplaterequestdto.rb +33 -0
- data/lib/stack_one/models/shared/message.rb +33 -0
- data/lib/stack_one/models/shared/message_content.rb +36 -0
- data/lib/stack_one/models/shared/message_message_type.rb +27 -0
- data/lib/stack_one/models/shared/message_type.rb +27 -0
- data/lib/stack_one/models/shared/note.rb +42 -0
- data/lib/stack_one/models/shared/note_value.rb +19 -0
- data/lib/stack_one/models/shared/note_visibility.rb +27 -0
- data/lib/stack_one/models/shared/notecontentapimodel.rb +24 -0
- data/lib/stack_one/models/shared/noteresult.rb +27 -0
- data/lib/stack_one/models/shared/notespaginated.rb +33 -0
- data/lib/stack_one/models/shared/offer.rb +48 -0
- data/lib/stack_one/models/shared/offer_offer_status.rb +27 -0
- data/lib/stack_one/models/shared/offer_status.rb +27 -0
- data/lib/stack_one/models/shared/offer_value.rb +25 -0
- data/lib/stack_one/models/shared/offerhistory.rb +36 -0
- data/lib/stack_one/models/shared/offerspaginated.rb +33 -0
- data/lib/stack_one/models/shared/offersresult.rb +27 -0
- data/lib/stack_one/models/shared/overall_recommendation.rb +23 -0
- data/lib/stack_one/models/shared/pay_frequency.rb +2 -2
- data/lib/stack_one/models/shared/pay_period.rb +2 -2
- data/lib/stack_one/models/shared/phonenumber.rb +27 -0
- data/lib/stack_one/models/shared/phonenumber_type.rb +23 -0
- data/lib/stack_one/models/shared/pushmessages.rb +33 -0
- data/lib/stack_one/models/shared/pushmessages_message_content.rb +24 -0
- data/lib/stack_one/models/shared/pushmessages_message_type.rb +27 -0
- data/lib/stack_one/models/shared/question.rb +39 -0
- data/lib/stack_one/models/shared/question_type.rb +27 -0
- data/lib/stack_one/models/shared/question_value.rb +26 -0
- data/lib/stack_one/models/shared/questionmultiplechoiceanswers.rb +27 -0
- data/lib/stack_one/models/shared/questionnaire.rb +27 -0
- data/lib/stack_one/models/shared/rejected_reason_type.rb +27 -0
- data/lib/stack_one/models/shared/rejectedreason.rb +33 -0
- data/lib/stack_one/models/shared/rejectedreason_value.rb +22 -0
- data/lib/stack_one/models/shared/rejectedreasonresult.rb +27 -0
- data/lib/stack_one/models/shared/rejectedreasonspaginated.rb +33 -0
- data/lib/stack_one/models/shared/resultlink.rb +27 -0
- data/lib/stack_one/models/shared/schedule_type.rb +27 -0
- data/lib/stack_one/models/shared/scorecard.rb +51 -0
- data/lib/stack_one/models/shared/scorecardsection.rb +30 -0
- data/lib/stack_one/models/shared/scorecardspaginated.rb +33 -0
- data/lib/stack_one/models/shared/sociallink.rb +27 -0
- data/lib/stack_one/models/shared/status.rb +5 -5
- data/lib/stack_one/models/shared/template.rb +36 -0
- data/lib/stack_one/models/shared/templateresult.rb +27 -0
- data/lib/stack_one/models/shared/templatespaginated.rb +33 -0
- data/lib/stack_one/models/shared/type.rb +5 -5
- data/lib/stack_one/models/shared/updateresult.rb +30 -0
- data/lib/stack_one/models/shared/user.rb +39 -0
- data/lib/stack_one/models/shared/userresult.rb +27 -0
- data/lib/stack_one/models/shared/userspaginated.rb +33 -0
- data/lib/stack_one/models/shared/value.rb +7 -249
- data/lib/stack_one/models/shared/visibility.rb +27 -0
- data/lib/stack_one/models/shared/work_location.rb +3 -3
- data/lib/stack_one/models/shared.rb +180 -18
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- data/lib/stack_one/stackone.rb +4 -1
- data/lib/stackone_client.rb +3 -0
- metadata +337 -6
@@ -0,0 +1,599 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'faraday'
|
7
|
+
require 'faraday/multipart'
|
8
|
+
require 'sorbet-runtime'
|
9
|
+
|
10
|
+
module StackOne
|
11
|
+
extend T::Sig
|
12
|
+
class Marketing
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
|
16
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
17
|
+
def initialize(sdk_config)
|
18
|
+
@sdk_configuration = sdk_config
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(marketing_create_email_template_request_dto: ::StackOne::Shared::MarketingCreateEmailTemplateRequestDto, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
23
|
+
def create_email_template(marketing_create_email_template_request_dto, x_account_id)
|
24
|
+
# create_email_template - Create email template
|
25
|
+
request = ::StackOne::Operations::MarketingCreateEmailTemplateRequest.new(
|
26
|
+
|
27
|
+
marketing_create_email_template_request_dto: marketing_create_email_template_request_dto,
|
28
|
+
x_account_id: x_account_id
|
29
|
+
)
|
30
|
+
url, params = @sdk_configuration.get_server_details
|
31
|
+
base_url = Utils.template_url(url, params)
|
32
|
+
url = "#{base_url}/unified/marketing/templates/email"
|
33
|
+
headers = Utils.get_headers(request)
|
34
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :marketing_create_email_template_request_dto, :json)
|
35
|
+
headers['content-type'] = req_content_type
|
36
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
37
|
+
headers['Accept'] = 'application/json'
|
38
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
39
|
+
|
40
|
+
r = @sdk_configuration.client.post(url) do |req|
|
41
|
+
req.headers = headers
|
42
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
43
|
+
if form
|
44
|
+
req.body = Utils.encode_form(form)
|
45
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
46
|
+
req.body = URI.encode_www_form(data)
|
47
|
+
else
|
48
|
+
req.body = data
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
53
|
+
|
54
|
+
res = ::StackOne::Operations::MarketingCreateEmailTemplateResponse.new(
|
55
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
56
|
+
)
|
57
|
+
if r.status == 201
|
58
|
+
if Utils.match_content_type(content_type, 'application/json')
|
59
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateTemplateResult)
|
60
|
+
res.create_template_result = out
|
61
|
+
end
|
62
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
63
|
+
end
|
64
|
+
res
|
65
|
+
end
|
66
|
+
|
67
|
+
|
68
|
+
sig { params(marketing_create_template_request_dto: ::StackOne::Shared::MarketingCreateTemplateRequestDto, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
69
|
+
def create_omni_channel_template(marketing_create_template_request_dto, x_account_id)
|
70
|
+
# create_omni_channel_template - Create omni-channel template
|
71
|
+
request = ::StackOne::Operations::MarketingCreateOmniChannelTemplateRequest.new(
|
72
|
+
|
73
|
+
marketing_create_template_request_dto: marketing_create_template_request_dto,
|
74
|
+
x_account_id: x_account_id
|
75
|
+
)
|
76
|
+
url, params = @sdk_configuration.get_server_details
|
77
|
+
base_url = Utils.template_url(url, params)
|
78
|
+
url = "#{base_url}/unified/marketing/templates/omni_channel"
|
79
|
+
headers = Utils.get_headers(request)
|
80
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :marketing_create_template_request_dto, :json)
|
81
|
+
headers['content-type'] = req_content_type
|
82
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
83
|
+
headers['Accept'] = 'application/json'
|
84
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
85
|
+
|
86
|
+
r = @sdk_configuration.client.post(url) do |req|
|
87
|
+
req.headers = headers
|
88
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
89
|
+
if form
|
90
|
+
req.body = Utils.encode_form(form)
|
91
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
92
|
+
req.body = URI.encode_www_form(data)
|
93
|
+
else
|
94
|
+
req.body = data
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
99
|
+
|
100
|
+
res = ::StackOne::Operations::MarketingCreateOmniChannelTemplateResponse.new(
|
101
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
102
|
+
)
|
103
|
+
if r.status == 201
|
104
|
+
if Utils.match_content_type(content_type, 'application/json')
|
105
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateTemplateResult)
|
106
|
+
res.create_template_result = out
|
107
|
+
end
|
108
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
109
|
+
end
|
110
|
+
res
|
111
|
+
end
|
112
|
+
|
113
|
+
|
114
|
+
sig { params(marketing_create_push_template_request_dto: ::StackOne::Shared::MarketingCreatePushTemplateRequestDto, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
115
|
+
def create_push_template(marketing_create_push_template_request_dto, x_account_id)
|
116
|
+
# create_push_template - Create push template
|
117
|
+
request = ::StackOne::Operations::MarketingCreatePushTemplateRequest.new(
|
118
|
+
|
119
|
+
marketing_create_push_template_request_dto: marketing_create_push_template_request_dto,
|
120
|
+
x_account_id: x_account_id
|
121
|
+
)
|
122
|
+
url, params = @sdk_configuration.get_server_details
|
123
|
+
base_url = Utils.template_url(url, params)
|
124
|
+
url = "#{base_url}/unified/marketing/templates/push"
|
125
|
+
headers = Utils.get_headers(request)
|
126
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :marketing_create_push_template_request_dto, :json)
|
127
|
+
headers['content-type'] = req_content_type
|
128
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
129
|
+
headers['Accept'] = 'application/json'
|
130
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
131
|
+
|
132
|
+
r = @sdk_configuration.client.post(url) do |req|
|
133
|
+
req.headers = headers
|
134
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
135
|
+
if form
|
136
|
+
req.body = Utils.encode_form(form)
|
137
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
138
|
+
req.body = URI.encode_www_form(data)
|
139
|
+
else
|
140
|
+
req.body = data
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
145
|
+
|
146
|
+
res = ::StackOne::Operations::MarketingCreatePushTemplateResponse.new(
|
147
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
148
|
+
)
|
149
|
+
if r.status == 201
|
150
|
+
if Utils.match_content_type(content_type, 'application/json')
|
151
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateTemplateResult)
|
152
|
+
res.create_template_result = out
|
153
|
+
end
|
154
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
155
|
+
end
|
156
|
+
res
|
157
|
+
end
|
158
|
+
|
159
|
+
|
160
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetCampaignRequest)).returns(Utils::FieldAugmented) }
|
161
|
+
def get_campaign(request)
|
162
|
+
# get_campaign - Get campaign
|
163
|
+
url, params = @sdk_configuration.get_server_details
|
164
|
+
base_url = Utils.template_url(url, params)
|
165
|
+
url = Utils.generate_url(
|
166
|
+
::StackOne::Operations::MarketingGetCampaignRequest,
|
167
|
+
base_url,
|
168
|
+
'/unified/marketing/campaigns/{id}',
|
169
|
+
request
|
170
|
+
)
|
171
|
+
headers = Utils.get_headers(request)
|
172
|
+
query_params = Utils.get_query_params(::StackOne::Operations::MarketingGetCampaignRequest, request)
|
173
|
+
headers['Accept'] = 'application/json'
|
174
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
175
|
+
|
176
|
+
r = @sdk_configuration.client.get(url) do |req|
|
177
|
+
req.headers = headers
|
178
|
+
req.params = query_params
|
179
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
180
|
+
end
|
181
|
+
|
182
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
183
|
+
|
184
|
+
res = ::StackOne::Operations::MarketingGetCampaignResponse.new(
|
185
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
186
|
+
)
|
187
|
+
if r.status == 200
|
188
|
+
if Utils.match_content_type(content_type, 'application/json')
|
189
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CampaignResult)
|
190
|
+
res.campaign_result = out
|
191
|
+
end
|
192
|
+
elsif [400, 403, 429, 500, 501].include?(r.status)
|
193
|
+
end
|
194
|
+
res
|
195
|
+
end
|
196
|
+
|
197
|
+
|
198
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetEmailTemplateRequest)).returns(Utils::FieldAugmented) }
|
199
|
+
def get_email_template(request)
|
200
|
+
# get_email_template - Get email template
|
201
|
+
url, params = @sdk_configuration.get_server_details
|
202
|
+
base_url = Utils.template_url(url, params)
|
203
|
+
url = Utils.generate_url(
|
204
|
+
::StackOne::Operations::MarketingGetEmailTemplateRequest,
|
205
|
+
base_url,
|
206
|
+
'/unified/marketing/templates/email/{id}',
|
207
|
+
request
|
208
|
+
)
|
209
|
+
headers = Utils.get_headers(request)
|
210
|
+
query_params = Utils.get_query_params(::StackOne::Operations::MarketingGetEmailTemplateRequest, request)
|
211
|
+
headers['Accept'] = 'application/json'
|
212
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
213
|
+
|
214
|
+
r = @sdk_configuration.client.get(url) do |req|
|
215
|
+
req.headers = headers
|
216
|
+
req.params = query_params
|
217
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
218
|
+
end
|
219
|
+
|
220
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
221
|
+
|
222
|
+
res = ::StackOne::Operations::MarketingGetEmailTemplateResponse.new(
|
223
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
224
|
+
)
|
225
|
+
if r.status == 200
|
226
|
+
if Utils.match_content_type(content_type, 'application/json')
|
227
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TemplateResult)
|
228
|
+
res.template_result = out
|
229
|
+
end
|
230
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
231
|
+
end
|
232
|
+
res
|
233
|
+
end
|
234
|
+
|
235
|
+
|
236
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetOmniChannelTemplateRequest)).returns(Utils::FieldAugmented) }
|
237
|
+
def get_omni_channel_template(request)
|
238
|
+
# get_omni_channel_template - Get omni-channel template
|
239
|
+
url, params = @sdk_configuration.get_server_details
|
240
|
+
base_url = Utils.template_url(url, params)
|
241
|
+
url = Utils.generate_url(
|
242
|
+
::StackOne::Operations::MarketingGetOmniChannelTemplateRequest,
|
243
|
+
base_url,
|
244
|
+
'/unified/marketing/templates/omni_channel/{id}',
|
245
|
+
request
|
246
|
+
)
|
247
|
+
headers = Utils.get_headers(request)
|
248
|
+
query_params = Utils.get_query_params(::StackOne::Operations::MarketingGetOmniChannelTemplateRequest, request)
|
249
|
+
headers['Accept'] = 'application/json'
|
250
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
251
|
+
|
252
|
+
r = @sdk_configuration.client.get(url) do |req|
|
253
|
+
req.headers = headers
|
254
|
+
req.params = query_params
|
255
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
256
|
+
end
|
257
|
+
|
258
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
259
|
+
|
260
|
+
res = ::StackOne::Operations::MarketingGetOmniChannelTemplateResponse.new(
|
261
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
262
|
+
)
|
263
|
+
if r.status == 200
|
264
|
+
if Utils.match_content_type(content_type, 'application/json')
|
265
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TemplateResult)
|
266
|
+
res.template_result = out
|
267
|
+
end
|
268
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
269
|
+
end
|
270
|
+
res
|
271
|
+
end
|
272
|
+
|
273
|
+
|
274
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingGetPushTemplateRequest)).returns(Utils::FieldAugmented) }
|
275
|
+
def get_push_template(request)
|
276
|
+
# get_push_template - Get push template
|
277
|
+
url, params = @sdk_configuration.get_server_details
|
278
|
+
base_url = Utils.template_url(url, params)
|
279
|
+
url = Utils.generate_url(
|
280
|
+
::StackOne::Operations::MarketingGetPushTemplateRequest,
|
281
|
+
base_url,
|
282
|
+
'/unified/marketing/templates/push/{id}',
|
283
|
+
request
|
284
|
+
)
|
285
|
+
headers = Utils.get_headers(request)
|
286
|
+
query_params = Utils.get_query_params(::StackOne::Operations::MarketingGetPushTemplateRequest, request)
|
287
|
+
headers['Accept'] = 'application/json'
|
288
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
289
|
+
|
290
|
+
r = @sdk_configuration.client.get(url) do |req|
|
291
|
+
req.headers = headers
|
292
|
+
req.params = query_params
|
293
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
294
|
+
end
|
295
|
+
|
296
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
297
|
+
|
298
|
+
res = ::StackOne::Operations::MarketingGetPushTemplateResponse.new(
|
299
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
300
|
+
)
|
301
|
+
if r.status == 200
|
302
|
+
if Utils.match_content_type(content_type, 'application/json')
|
303
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TemplateResult)
|
304
|
+
res.template_result = out
|
305
|
+
end
|
306
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
307
|
+
end
|
308
|
+
res
|
309
|
+
end
|
310
|
+
|
311
|
+
|
312
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingListCampaignsRequest)).returns(Utils::FieldAugmented) }
|
313
|
+
def list_campaigns(request)
|
314
|
+
# list_campaigns - List campaigns
|
315
|
+
url, params = @sdk_configuration.get_server_details
|
316
|
+
base_url = Utils.template_url(url, params)
|
317
|
+
url = "#{base_url}/unified/marketing/campaigns"
|
318
|
+
headers = Utils.get_headers(request)
|
319
|
+
query_params = Utils.get_query_params(::StackOne::Operations::MarketingListCampaignsRequest, request)
|
320
|
+
headers['Accept'] = 'application/json'
|
321
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
322
|
+
|
323
|
+
r = @sdk_configuration.client.get(url) do |req|
|
324
|
+
req.headers = headers
|
325
|
+
req.params = query_params
|
326
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
327
|
+
end
|
328
|
+
|
329
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
330
|
+
|
331
|
+
res = ::StackOne::Operations::MarketingListCampaignsResponse.new(
|
332
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
333
|
+
)
|
334
|
+
if r.status == 200
|
335
|
+
if Utils.match_content_type(content_type, 'application/json')
|
336
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CampaignsPaginated)
|
337
|
+
res.campaigns_paginated = out
|
338
|
+
end
|
339
|
+
elsif [400, 403, 429, 500, 501].include?(r.status)
|
340
|
+
end
|
341
|
+
res
|
342
|
+
end
|
343
|
+
|
344
|
+
|
345
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingListEmailTemplatesRequest)).returns(Utils::FieldAugmented) }
|
346
|
+
def list_email_templates(request)
|
347
|
+
# list_email_templates - List email templates
|
348
|
+
url, params = @sdk_configuration.get_server_details
|
349
|
+
base_url = Utils.template_url(url, params)
|
350
|
+
url = "#{base_url}/unified/marketing/templates/email"
|
351
|
+
headers = Utils.get_headers(request)
|
352
|
+
query_params = Utils.get_query_params(::StackOne::Operations::MarketingListEmailTemplatesRequest, request)
|
353
|
+
headers['Accept'] = 'application/json'
|
354
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
355
|
+
|
356
|
+
r = @sdk_configuration.client.get(url) do |req|
|
357
|
+
req.headers = headers
|
358
|
+
req.params = query_params
|
359
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
360
|
+
end
|
361
|
+
|
362
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
363
|
+
|
364
|
+
res = ::StackOne::Operations::MarketingListEmailTemplatesResponse.new(
|
365
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
366
|
+
)
|
367
|
+
if r.status == 200
|
368
|
+
if Utils.match_content_type(content_type, 'application/json')
|
369
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TemplatesPaginated)
|
370
|
+
res.templates_paginated = out
|
371
|
+
end
|
372
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
373
|
+
end
|
374
|
+
res
|
375
|
+
end
|
376
|
+
|
377
|
+
|
378
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingListOmniChannelTemplatesRequest)).returns(Utils::FieldAugmented) }
|
379
|
+
def list_omni_channel_templates(request)
|
380
|
+
# list_omni_channel_templates - List omni-channel templates
|
381
|
+
url, params = @sdk_configuration.get_server_details
|
382
|
+
base_url = Utils.template_url(url, params)
|
383
|
+
url = "#{base_url}/unified/marketing/templates/omni_channel"
|
384
|
+
headers = Utils.get_headers(request)
|
385
|
+
query_params = Utils.get_query_params(::StackOne::Operations::MarketingListOmniChannelTemplatesRequest, request)
|
386
|
+
headers['Accept'] = 'application/json'
|
387
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
388
|
+
|
389
|
+
r = @sdk_configuration.client.get(url) do |req|
|
390
|
+
req.headers = headers
|
391
|
+
req.params = query_params
|
392
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
393
|
+
end
|
394
|
+
|
395
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
396
|
+
|
397
|
+
res = ::StackOne::Operations::MarketingListOmniChannelTemplatesResponse.new(
|
398
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
399
|
+
)
|
400
|
+
if r.status == 200
|
401
|
+
if Utils.match_content_type(content_type, 'application/json')
|
402
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TemplatesPaginated)
|
403
|
+
res.templates_paginated = out
|
404
|
+
end
|
405
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
406
|
+
end
|
407
|
+
res
|
408
|
+
end
|
409
|
+
|
410
|
+
|
411
|
+
sig { params(request: T.nilable(::StackOne::Operations::MarketingListPushTemplatesRequest)).returns(Utils::FieldAugmented) }
|
412
|
+
def list_push_templates(request)
|
413
|
+
# list_push_templates - List push templates
|
414
|
+
url, params = @sdk_configuration.get_server_details
|
415
|
+
base_url = Utils.template_url(url, params)
|
416
|
+
url = "#{base_url}/unified/marketing/templates/push"
|
417
|
+
headers = Utils.get_headers(request)
|
418
|
+
query_params = Utils.get_query_params(::StackOne::Operations::MarketingListPushTemplatesRequest, request)
|
419
|
+
headers['Accept'] = 'application/json'
|
420
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
421
|
+
|
422
|
+
r = @sdk_configuration.client.get(url) do |req|
|
423
|
+
req.headers = headers
|
424
|
+
req.params = query_params
|
425
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
426
|
+
end
|
427
|
+
|
428
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
429
|
+
|
430
|
+
res = ::StackOne::Operations::MarketingListPushTemplatesResponse.new(
|
431
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
432
|
+
)
|
433
|
+
if r.status == 200
|
434
|
+
if Utils.match_content_type(content_type, 'application/json')
|
435
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TemplatesPaginated)
|
436
|
+
res.templates_paginated = out
|
437
|
+
end
|
438
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
439
|
+
end
|
440
|
+
res
|
441
|
+
end
|
442
|
+
|
443
|
+
|
444
|
+
sig { params(marketing_create_email_template_request_dto: ::StackOne::Shared::MarketingCreateEmailTemplateRequestDto, id: ::String, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
445
|
+
def update_email_template(marketing_create_email_template_request_dto, id, x_account_id)
|
446
|
+
# update_email_template - Update email template
|
447
|
+
request = ::StackOne::Operations::MarketingUpdateEmailTemplateRequest.new(
|
448
|
+
|
449
|
+
marketing_create_email_template_request_dto: marketing_create_email_template_request_dto,
|
450
|
+
id: id,
|
451
|
+
x_account_id: x_account_id
|
452
|
+
)
|
453
|
+
url, params = @sdk_configuration.get_server_details
|
454
|
+
base_url = Utils.template_url(url, params)
|
455
|
+
url = Utils.generate_url(
|
456
|
+
::StackOne::Operations::MarketingUpdateEmailTemplateRequest,
|
457
|
+
base_url,
|
458
|
+
'/unified/marketing/templates/email/{id}',
|
459
|
+
request
|
460
|
+
)
|
461
|
+
headers = Utils.get_headers(request)
|
462
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :marketing_create_email_template_request_dto, :json)
|
463
|
+
headers['content-type'] = req_content_type
|
464
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
465
|
+
headers['Accept'] = 'application/json'
|
466
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
467
|
+
|
468
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
469
|
+
req.headers = headers
|
470
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
471
|
+
if form
|
472
|
+
req.body = Utils.encode_form(form)
|
473
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
474
|
+
req.body = URI.encode_www_form(data)
|
475
|
+
else
|
476
|
+
req.body = data
|
477
|
+
end
|
478
|
+
end
|
479
|
+
|
480
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
481
|
+
|
482
|
+
res = ::StackOne::Operations::MarketingUpdateEmailTemplateResponse.new(
|
483
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
484
|
+
)
|
485
|
+
if r.status == 200
|
486
|
+
if Utils.match_content_type(content_type, 'application/json')
|
487
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateTemplateResult)
|
488
|
+
res.create_template_result = out
|
489
|
+
end
|
490
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
491
|
+
end
|
492
|
+
res
|
493
|
+
end
|
494
|
+
|
495
|
+
|
496
|
+
sig { params(marketing_create_template_request_dto: ::StackOne::Shared::MarketingCreateTemplateRequestDto, id: ::String, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
497
|
+
def update_omni_channel_template(marketing_create_template_request_dto, id, x_account_id)
|
498
|
+
# update_omni_channel_template - Update omni-channel template
|
499
|
+
request = ::StackOne::Operations::MarketingUpdateOmniChannelTemplateRequest.new(
|
500
|
+
|
501
|
+
marketing_create_template_request_dto: marketing_create_template_request_dto,
|
502
|
+
id: id,
|
503
|
+
x_account_id: x_account_id
|
504
|
+
)
|
505
|
+
url, params = @sdk_configuration.get_server_details
|
506
|
+
base_url = Utils.template_url(url, params)
|
507
|
+
url = Utils.generate_url(
|
508
|
+
::StackOne::Operations::MarketingUpdateOmniChannelTemplateRequest,
|
509
|
+
base_url,
|
510
|
+
'/unified/marketing/templates/omni_channel/{id}',
|
511
|
+
request
|
512
|
+
)
|
513
|
+
headers = Utils.get_headers(request)
|
514
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :marketing_create_template_request_dto, :json)
|
515
|
+
headers['content-type'] = req_content_type
|
516
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
517
|
+
headers['Accept'] = 'application/json'
|
518
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
519
|
+
|
520
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
521
|
+
req.headers = headers
|
522
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
523
|
+
if form
|
524
|
+
req.body = Utils.encode_form(form)
|
525
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
526
|
+
req.body = URI.encode_www_form(data)
|
527
|
+
else
|
528
|
+
req.body = data
|
529
|
+
end
|
530
|
+
end
|
531
|
+
|
532
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
533
|
+
|
534
|
+
res = ::StackOne::Operations::MarketingUpdateOmniChannelTemplateResponse.new(
|
535
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
536
|
+
)
|
537
|
+
if r.status == 200
|
538
|
+
if Utils.match_content_type(content_type, 'application/json')
|
539
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateTemplateResult)
|
540
|
+
res.create_template_result = out
|
541
|
+
end
|
542
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
543
|
+
end
|
544
|
+
res
|
545
|
+
end
|
546
|
+
|
547
|
+
|
548
|
+
sig { params(marketing_create_push_template_request_dto: ::StackOne::Shared::MarketingCreatePushTemplateRequestDto, id: ::String, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
549
|
+
def update_push_template(marketing_create_push_template_request_dto, id, x_account_id)
|
550
|
+
# update_push_template - Update push template
|
551
|
+
request = ::StackOne::Operations::MarketingUpdatePushTemplateRequest.new(
|
552
|
+
|
553
|
+
marketing_create_push_template_request_dto: marketing_create_push_template_request_dto,
|
554
|
+
id: id,
|
555
|
+
x_account_id: x_account_id
|
556
|
+
)
|
557
|
+
url, params = @sdk_configuration.get_server_details
|
558
|
+
base_url = Utils.template_url(url, params)
|
559
|
+
url = Utils.generate_url(
|
560
|
+
::StackOne::Operations::MarketingUpdatePushTemplateRequest,
|
561
|
+
base_url,
|
562
|
+
'/unified/marketing/templates/push/{id}',
|
563
|
+
request
|
564
|
+
)
|
565
|
+
headers = Utils.get_headers(request)
|
566
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :marketing_create_push_template_request_dto, :json)
|
567
|
+
headers['content-type'] = req_content_type
|
568
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
569
|
+
headers['Accept'] = 'application/json'
|
570
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
571
|
+
|
572
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
573
|
+
req.headers = headers
|
574
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
575
|
+
if form
|
576
|
+
req.body = Utils.encode_form(form)
|
577
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
578
|
+
req.body = URI.encode_www_form(data)
|
579
|
+
else
|
580
|
+
req.body = data
|
581
|
+
end
|
582
|
+
end
|
583
|
+
|
584
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
585
|
+
|
586
|
+
res = ::StackOne::Operations::MarketingUpdatePushTemplateResponse.new(
|
587
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
588
|
+
)
|
589
|
+
if r.status == 200
|
590
|
+
if Utils.match_content_type(content_type, 'application/json')
|
591
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateTemplateResult)
|
592
|
+
res.create_template_result = out
|
593
|
+
end
|
594
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
595
|
+
end
|
596
|
+
res
|
597
|
+
end
|
598
|
+
end
|
599
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsCreateApplicationRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :ats_create_application_request_dto, ::StackOne::Shared::AtsCreateApplicationRequestDto, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
# The account identifier
|
17
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(ats_create_application_request_dto: ::StackOne::Shared::AtsCreateApplicationRequestDto, x_account_id: ::String).void }
|
21
|
+
def initialize(ats_create_application_request_dto: nil, x_account_id: nil)
|
22
|
+
@ats_create_application_request_dto = ats_create_application_request_dto
|
23
|
+
@x_account_id = x_account_id
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsCreateApplicationResponse < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The application was created successfully.
|
21
|
+
field :create_result, T.nilable(::StackOne::Shared::CreateResult)
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_result: T.nilable(::StackOne::Shared::CreateResult)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_result: nil)
|
26
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@create_result = create_result
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class AtsCreateCandidateNoteRequest < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :ats_create_notes_request_dto, ::StackOne::Shared::AtsCreateNotesRequestDto, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
# The account identifier
|
19
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(ats_create_notes_request_dto: ::StackOne::Shared::AtsCreateNotesRequestDto, id: ::String, x_account_id: ::String).void }
|
23
|
+
def initialize(ats_create_notes_request_dto: nil, id: nil, x_account_id: nil)
|
24
|
+
@ats_create_notes_request_dto = ats_create_notes_request_dto
|
25
|
+
@id = id
|
26
|
+
@x_account_id = x_account_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|