stackone_client 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/lib/stackone/accounts.rb +224 -0
- data/lib/stackone/ats.rb +1289 -0
- data/lib/stackone/connect_sessions.rb +100 -0
- data/lib/stackone/connectors.rb +98 -0
- data/lib/stackone/crm.rb +323 -0
- data/lib/stackone/hris.rb +682 -0
- data/lib/stackone/marketing.rb +584 -0
- data/lib/stackone/models/operations/ats_create_application.rb +53 -0
- data/lib/stackone/models/operations/ats_create_candidate.rb +53 -0
- data/lib/stackone/models/operations/ats_create_candidate_note.rb +56 -0
- data/lib/stackone/models/operations/ats_create_offer.rb +53 -0
- data/lib/stackone/models/operations/ats_get_application.rb +88 -0
- data/lib/stackone/models/operations/ats_get_application_offer.rb +91 -0
- data/lib/stackone/models/operations/ats_get_application_scorecard.rb +91 -0
- data/lib/stackone/models/operations/ats_get_candidate.rb +88 -0
- data/lib/stackone/models/operations/ats_get_candidate_note.rb +91 -0
- data/lib/stackone/models/operations/ats_get_department.rb +88 -0
- data/lib/stackone/models/operations/ats_get_interview.rb +88 -0
- data/lib/stackone/models/operations/ats_get_interview_stage.rb +88 -0
- data/lib/stackone/models/operations/ats_get_job.rb +88 -0
- data/lib/stackone/models/operations/ats_get_job_posting.rb +91 -0
- data/lib/stackone/models/operations/ats_get_location.rb +88 -0
- data/lib/stackone/models/operations/ats_get_offer.rb +88 -0
- data/lib/stackone/models/operations/ats_get_rejected_reason.rb +88 -0
- data/lib/stackone/models/operations/ats_get_user.rb +88 -0
- data/lib/stackone/models/operations/ats_list_application_scorecards.rb +88 -0
- data/lib/stackone/models/operations/ats_list_applications.rb +85 -0
- data/lib/stackone/models/operations/ats_list_applications_offers.rb +88 -0
- data/lib/stackone/models/operations/ats_list_candidate_notes.rb +88 -0
- data/lib/stackone/models/operations/ats_list_candidates.rb +85 -0
- data/lib/stackone/models/operations/ats_list_departments.rb +85 -0
- data/lib/stackone/models/operations/ats_list_interview_stages.rb +85 -0
- data/lib/stackone/models/operations/ats_list_interviews.rb +85 -0
- data/lib/stackone/models/operations/ats_list_job_postings.rb +88 -0
- data/lib/stackone/models/operations/ats_list_jobs.rb +85 -0
- data/lib/stackone/models/operations/ats_list_locations.rb +85 -0
- data/lib/stackone/models/operations/ats_list_offers.rb +85 -0
- data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +85 -0
- data/lib/stackone/models/operations/ats_list_users.rb +85 -0
- data/lib/stackone/models/operations/ats_update_application.rb +56 -0
- data/lib/stackone/models/operations/ats_update_candidate.rb +56 -0
- data/lib/stackone/models/operations/crm_create_contact.rb +53 -0
- data/lib/stackone/models/operations/crm_get_account.rb +88 -0
- data/lib/stackone/models/operations/crm_get_contact.rb +88 -0
- data/lib/stackone/models/operations/crm_get_list.rb +88 -0
- data/lib/stackone/models/operations/crm_list_accounts.rb +85 -0
- data/lib/stackone/models/operations/crm_list_contacts.rb +85 -0
- data/lib/stackone/models/operations/crm_list_lists.rb +85 -0
- data/lib/stackone/models/operations/crm_update_contact.rb +56 -0
- data/lib/stackone/models/operations/hris_create_employee.rb +53 -0
- data/lib/stackone/models/operations/hris_create_employee_time_off_request.rb +56 -0
- data/lib/stackone/models/operations/hris_create_time_off_request.rb +53 -0
- data/lib/stackone/models/operations/hris_get_company.rb +88 -0
- data/lib/stackone/models/operations/hris_get_employee.rb +94 -0
- data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +91 -0
- data/lib/stackone/models/operations/hris_get_employment.rb +88 -0
- data/lib/stackone/models/operations/hris_get_location.rb +88 -0
- data/lib/stackone/models/operations/hris_get_time_off_request.rb +88 -0
- data/lib/stackone/models/operations/hris_list_companies.rb +85 -0
- data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +88 -0
- data/lib/stackone/models/operations/hris_list_employees.rb +91 -0
- data/lib/stackone/models/operations/hris_list_employments.rb +85 -0
- data/lib/stackone/models/operations/hris_list_locations.rb +85 -0
- data/lib/stackone/models/operations/hris_list_time_off_requests.rb +85 -0
- data/lib/stackone/models/operations/hris_update_employee.rb +56 -0
- data/lib/stackone/models/operations/hris_update_time_off_request.rb +56 -0
- data/lib/stackone/models/operations/marketing_create_email_template.rb +53 -0
- data/lib/stackone/models/operations/marketing_create_omni_channel_template.rb +53 -0
- data/lib/stackone/models/operations/marketing_create_push_template.rb +53 -0
- data/lib/stackone/models/operations/marketing_get_campaign.rb +88 -0
- data/lib/stackone/models/operations/marketing_get_email_template.rb +88 -0
- data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +88 -0
- data/lib/stackone/models/operations/marketing_get_push_template.rb +88 -0
- data/lib/stackone/models/operations/marketing_list_campaigns.rb +85 -0
- data/lib/stackone/models/operations/marketing_list_email_templates.rb +85 -0
- data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +85 -0
- data/lib/stackone/models/operations/marketing_list_push_templates.rb +85 -0
- data/lib/stackone/models/operations/marketing_update_email_template.rb +56 -0
- data/lib/stackone/models/operations/marketing_update_omni_channel_template.rb +56 -0
- data/lib/stackone/models/operations/marketing_update_push_template.rb +56 -0
- data/lib/stackone/models/operations/stackone_authenticate_connect_session.rb +35 -0
- data/lib/stackone/models/operations/stackone_create_connect_session.rb +35 -0
- data/lib/stackone/models/operations/stackone_delete_account.rb +49 -0
- data/lib/stackone/models/operations/stackone_get_account.rb +49 -0
- data/lib/stackone/models/operations/stackone_get_account_meta_info.rb +49 -0
- data/lib/stackone/models/operations/stackone_get_connector_meta.rb +52 -0
- data/lib/stackone/models/operations/stackone_list_connectors_meta.rb +48 -0
- data/lib/stackone/models/operations/stackone_list_linked_accounts.rb +51 -0
- data/lib/stackone/models/operations/stackone_proxy_request.rb +49 -0
- data/lib/stackone/models/operations/stackone_update_account.rb +53 -0
- data/lib/stackone/models/shared/account.rb +55 -0
- data/lib/stackone/models/shared/accountaddress.rb +342 -0
- data/lib/stackone/models/shared/accountresult.rb +29 -0
- data/lib/stackone/models/shared/accountspaginated.rb +34 -0
- data/lib/stackone/models/shared/answer.rb +64 -0
- data/lib/stackone/models/shared/application.rb +75 -0
- data/lib/stackone/models/shared/applicationattachment.rb +63 -0
- data/lib/stackone/models/shared/applicationcandidate.rb +31 -0
- data/lib/stackone/models/shared/applicationresult.rb +29 -0
- data/lib/stackone/models/shared/applicationspaginated.rb +34 -0
- data/lib/stackone/models/shared/applicationstatusenumapimodel.rb +50 -0
- data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +45 -0
- data/lib/stackone/models/shared/atscreatecandidaterequestdto.rb +46 -0
- data/lib/stackone/models/shared/atscreatenotesrequestdto.rb +57 -0
- data/lib/stackone/models/shared/atscreateofferrequestdto.rb +41 -0
- data/lib/stackone/models/shared/atslocation.rb +28 -0
- data/lib/stackone/models/shared/atslocationresult.rb +29 -0
- data/lib/stackone/models/shared/atslocationspaginated.rb +34 -0
- data/lib/stackone/models/shared/atsupdateapplicationrequestdto.rb +48 -0
- data/lib/stackone/models/shared/atsupdatecandidatesrequestdto.rb +49 -0
- data/lib/stackone/models/shared/attachmenttype.rb +40 -0
- data/lib/stackone/models/shared/campaign.rb +120 -0
- data/lib/stackone/models/shared/campaignresult.rb +29 -0
- data/lib/stackone/models/shared/campaignspaginated.rb +34 -0
- data/lib/stackone/models/shared/candidate.rb +64 -0
- data/lib/stackone/models/shared/candidateemail.rb +28 -0
- data/lib/stackone/models/shared/candidateresult.rb +29 -0
- data/lib/stackone/models/shared/candidatespaginated.rb +34 -0
- data/lib/stackone/models/shared/channelsenum.rb +42 -0
- data/lib/stackone/models/shared/companiespaginated.rb +34 -0
- data/lib/stackone/models/shared/company.rb +37 -0
- data/lib/stackone/models/shared/companyresult.rb +29 -0
- data/lib/stackone/models/shared/compensation.rb +149 -0
- data/lib/stackone/models/shared/connectorsmeta.rb +73 -0
- data/lib/stackone/models/shared/connectsession.rb +68 -0
- data/lib/stackone/models/shared/connectsessionauthenticate.rb +25 -0
- data/lib/stackone/models/shared/connectsessioncreate.rb +72 -0
- data/lib/stackone/models/shared/connectsessiontoken.rb +71 -0
- data/lib/stackone/models/shared/contact.rb +52 -0
- data/lib/stackone/models/shared/contactresult.rb +29 -0
- data/lib/stackone/models/shared/contactspaginated.rb +34 -0
- data/lib/stackone/models/shared/countrycodeenum.rb +284 -0
- data/lib/stackone/models/shared/createcandidatenoteresult.rb +31 -0
- data/lib/stackone/models/shared/createemployeeresult.rb +31 -0
- data/lib/stackone/models/shared/createofferresult.rb +31 -0
- data/lib/stackone/models/shared/createresult.rb +31 -0
- data/lib/stackone/models/shared/createtemplateresult.rb +31 -0
- data/lib/stackone/models/shared/createtimeoffresult.rb +31 -0
- data/lib/stackone/models/shared/crmcreatecontactrequestdto.rb +43 -0
- data/lib/stackone/models/shared/department.rb +28 -0
- data/lib/stackone/models/shared/departmentresult.rb +29 -0
- data/lib/stackone/models/shared/departmentspaginated.rb +34 -0
- data/lib/stackone/models/shared/emailmessages.rb +93 -0
- data/lib/stackone/models/shared/employee.rb +1035 -0
- data/lib/stackone/models/shared/employeecustomfields.rb +83 -0
- data/lib/stackone/models/shared/employeeresult.rb +29 -0
- data/lib/stackone/models/shared/employeespaginated.rb +34 -0
- data/lib/stackone/models/shared/employment.rb +191 -0
- data/lib/stackone/models/shared/employmentresult.rb +29 -0
- data/lib/stackone/models/shared/employmentspaginated.rb +34 -0
- data/lib/stackone/models/shared/field.rb +56 -0
- data/lib/stackone/models/shared/hiringteam.rb +37 -0
- data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +8638 -0
- data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +93 -0
- data/lib/stackone/models/shared/hrislocation.rb +361 -0
- data/lib/stackone/models/shared/hrislocationresult.rb +29 -0
- data/lib/stackone/models/shared/hrislocationspaginated.rb +34 -0
- data/lib/stackone/models/shared/interview.rb +91 -0
- data/lib/stackone/models/shared/interviewer.rb +37 -0
- data/lib/stackone/models/shared/interviewpart.rb +40 -0
- data/lib/stackone/models/shared/interviewspaginated.rb +34 -0
- data/lib/stackone/models/shared/interviewsresult.rb +29 -0
- data/lib/stackone/models/shared/interviewstage.rb +37 -0
- data/lib/stackone/models/shared/interviewstageresult.rb +29 -0
- data/lib/stackone/models/shared/interviewstagespaginated.rb +34 -0
- data/lib/stackone/models/shared/job.rb +65 -0
- data/lib/stackone/models/shared/jobposting.rb +182 -0
- data/lib/stackone/models/shared/jobpostingresult.rb +29 -0
- data/lib/stackone/models/shared/jobpostingspaginated.rb +34 -0
- data/lib/stackone/models/shared/jobresult.rb +29 -0
- data/lib/stackone/models/shared/jobspaginated.rb +34 -0
- data/lib/stackone/models/shared/jobstatusenum.rb +43 -0
- data/lib/stackone/models/shared/linkedaccount.rb +75 -0
- data/lib/stackone/models/shared/linkedaccountmeta.rb +54 -0
- data/lib/stackone/models/shared/list.rb +67 -0
- data/lib/stackone/models/shared/listresult.rb +29 -0
- data/lib/stackone/models/shared/listspaginated.rb +34 -0
- data/lib/stackone/models/shared/location.rb +28 -0
- data/lib/stackone/models/shared/marketingcreateemailtemplaterequestdto.rb +34 -0
- data/lib/stackone/models/shared/marketingcreatepushtemplaterequestdto.rb +34 -0
- data/lib/stackone/models/shared/marketingcreatetemplaterequestdto.rb +34 -0
- data/lib/stackone/models/shared/message.rb +50 -0
- data/lib/stackone/models/shared/note.rb +69 -0
- data/lib/stackone/models/shared/notecontentapimodel.rb +25 -0
- data/lib/stackone/models/shared/noteresult.rb +29 -0
- data/lib/stackone/models/shared/notespaginated.rb +34 -0
- data/lib/stackone/models/shared/offer.rb +50 -0
- data/lib/stackone/models/shared/offerhistory.rb +37 -0
- data/lib/stackone/models/shared/offerspaginated.rb +34 -0
- data/lib/stackone/models/shared/offersresult.rb +29 -0
- data/lib/stackone/models/shared/offerstatusenum.rb +43 -0
- data/lib/stackone/models/shared/patchaccountdto.rb +21 -0
- data/lib/stackone/models/shared/proxyrequestbody.rb +69 -0
- data/lib/stackone/models/shared/pushmessages.rb +81 -0
- data/lib/stackone/models/shared/questionnaire.rb +28 -0
- data/lib/stackone/models/shared/rawresponse.rb +44 -0
- data/lib/stackone/models/shared/rejectedreason.rb +32 -0
- data/lib/stackone/models/shared/rejectedreasonresult.rb +29 -0
- data/lib/stackone/models/shared/rejectedreasonspaginated.rb +34 -0
- data/lib/stackone/models/shared/rejectedreasontypeenum.rb +40 -0
- data/lib/stackone/models/shared/resultlink.rb +28 -0
- data/lib/stackone/models/shared/scorecard.rb +65 -0
- data/lib/stackone/models/shared/scorecardsection.rb +31 -0
- data/lib/stackone/models/shared/scorecardspaginated.rb +34 -0
- data/lib/stackone/models/shared/security.rb +28 -0
- data/lib/stackone/models/shared/sociallink.rb +28 -0
- data/lib/stackone/models/shared/template.rb +37 -0
- data/lib/stackone/models/shared/templateresult.rb +29 -0
- data/lib/stackone/models/shared/templatespaginated.rb +34 -0
- data/lib/stackone/models/shared/timeoff.rb +102 -0
- data/lib/stackone/models/shared/timeoffpaginated.rb +34 -0
- data/lib/stackone/models/shared/timeoffresult.rb +29 -0
- data/lib/stackone/models/shared/updateresult.rb +31 -0
- data/lib/stackone/models/shared/user.rb +40 -0
- data/lib/stackone/models/shared/userresult.rb +29 -0
- data/lib/stackone/models/shared/userspaginated.rb +34 -0
- data/lib/stackone/proxy.rb +59 -0
- data/lib/stackone/sdk.rb +87 -0
- data/lib/stackone/sdkconfiguration.rb +53 -0
- data/lib/stackone/utils/metadata_fields.rb +154 -0
- data/lib/stackone/utils/utils.rb +774 -0
- data/lib/stackone_client.rb +229 -0
- metadata +393 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'sorbet-runtime'
|
|
7
|
+
require 'faraday'
|
|
8
|
+
require_relative '../shared/employmentresult'
|
|
9
|
+
|
|
10
|
+
module StackOne
|
|
11
|
+
module Operations
|
|
12
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
13
|
+
class HrisGetEmploymentQueryParamProxy < StackOne::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def initialize; end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class HrisGetEmploymentRequest < StackOne::Utils::FieldAugmented
|
|
24
|
+
extend T::Sig
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
28
|
+
# The account identifier
|
|
29
|
+
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
30
|
+
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
|
31
|
+
field :fields, T.nilable(String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
32
|
+
# The unified cursor
|
|
33
|
+
field :next_, T.nilable(String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
34
|
+
# The page number of the results to fetch
|
|
35
|
+
#
|
|
36
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
37
|
+
field :page, T.nilable(String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
38
|
+
# The number of results per page
|
|
39
|
+
field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
40
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
41
|
+
field :proxy, T.nilable(Operations::HrisGetEmploymentQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
42
|
+
# Indicates that the raw request result is returned
|
|
43
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
|
44
|
+
# The sync token to select the only updated results
|
|
45
|
+
field :sync_token, T.nilable(String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
|
46
|
+
# Use a string with a date to only select results updated after that given date
|
|
47
|
+
field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
sig { params(id: String, x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::HrisGetEmploymentQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
|
|
51
|
+
def initialize(id: nil, x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
|
|
52
|
+
@id = id
|
|
53
|
+
@x_account_id = x_account_id
|
|
54
|
+
@fields = fields
|
|
55
|
+
@next_ = next_
|
|
56
|
+
@page = page
|
|
57
|
+
@page_size = page_size
|
|
58
|
+
@proxy = proxy
|
|
59
|
+
@raw = raw
|
|
60
|
+
@sync_token = sync_token
|
|
61
|
+
@updated_after = updated_after
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class HrisGetEmploymentResponse < StackOne::Utils::FieldAugmented
|
|
67
|
+
extend T::Sig
|
|
68
|
+
|
|
69
|
+
# HTTP response content type for this operation
|
|
70
|
+
field :content_type, String
|
|
71
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
72
|
+
field :raw_response, Faraday::Response
|
|
73
|
+
# HTTP response status code for this operation
|
|
74
|
+
field :status_code, Integer
|
|
75
|
+
# The Employment with the given identifier was retrieved.
|
|
76
|
+
field :employment_result, T.nilable(Shared::EmploymentResult)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, employment_result: T.nilable(Shared::EmploymentResult)).void }
|
|
80
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, employment_result: nil)
|
|
81
|
+
@content_type = content_type
|
|
82
|
+
@raw_response = raw_response
|
|
83
|
+
@status_code = status_code
|
|
84
|
+
@employment_result = employment_result
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'sorbet-runtime'
|
|
7
|
+
require 'faraday'
|
|
8
|
+
require_relative '../shared/hrislocationresult'
|
|
9
|
+
|
|
10
|
+
module StackOne
|
|
11
|
+
module Operations
|
|
12
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
13
|
+
class HrisGetLocationQueryParamProxy < StackOne::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def initialize; end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class HrisGetLocationRequest < StackOne::Utils::FieldAugmented
|
|
24
|
+
extend T::Sig
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
28
|
+
# The account identifier
|
|
29
|
+
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
30
|
+
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
|
31
|
+
field :fields, T.nilable(String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
32
|
+
# The unified cursor
|
|
33
|
+
field :next_, T.nilable(String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
34
|
+
# The page number of the results to fetch
|
|
35
|
+
#
|
|
36
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
37
|
+
field :page, T.nilable(String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
38
|
+
# The number of results per page
|
|
39
|
+
field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
40
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
41
|
+
field :proxy, T.nilable(Operations::HrisGetLocationQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
42
|
+
# Indicates that the raw request result is returned
|
|
43
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
|
44
|
+
# The sync token to select the only updated results
|
|
45
|
+
field :sync_token, T.nilable(String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
|
46
|
+
# Use a string with a date to only select results updated after that given date
|
|
47
|
+
field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
sig { params(id: String, x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::HrisGetLocationQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
|
|
51
|
+
def initialize(id: nil, x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
|
|
52
|
+
@id = id
|
|
53
|
+
@x_account_id = x_account_id
|
|
54
|
+
@fields = fields
|
|
55
|
+
@next_ = next_
|
|
56
|
+
@page = page
|
|
57
|
+
@page_size = page_size
|
|
58
|
+
@proxy = proxy
|
|
59
|
+
@raw = raw
|
|
60
|
+
@sync_token = sync_token
|
|
61
|
+
@updated_after = updated_after
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class HrisGetLocationResponse < StackOne::Utils::FieldAugmented
|
|
67
|
+
extend T::Sig
|
|
68
|
+
|
|
69
|
+
# HTTP response content type for this operation
|
|
70
|
+
field :content_type, String
|
|
71
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
72
|
+
field :raw_response, Faraday::Response
|
|
73
|
+
# HTTP response status code for this operation
|
|
74
|
+
field :status_code, Integer
|
|
75
|
+
# The Location with the given identifier was retrieved.
|
|
76
|
+
field :hris_location_result, T.nilable(Shared::HRISLocationResult)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, hris_location_result: T.nilable(Shared::HRISLocationResult)).void }
|
|
80
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, hris_location_result: nil)
|
|
81
|
+
@content_type = content_type
|
|
82
|
+
@raw_response = raw_response
|
|
83
|
+
@status_code = status_code
|
|
84
|
+
@hris_location_result = hris_location_result
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'sorbet-runtime'
|
|
7
|
+
require 'faraday'
|
|
8
|
+
require_relative '../shared/timeoffresult'
|
|
9
|
+
|
|
10
|
+
module StackOne
|
|
11
|
+
module Operations
|
|
12
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
13
|
+
class HrisGetTimeOffRequestQueryParamProxy < StackOne::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def initialize; end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class HrisGetTimeOffRequestRequest < StackOne::Utils::FieldAugmented
|
|
24
|
+
extend T::Sig
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
28
|
+
# The account identifier
|
|
29
|
+
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
30
|
+
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
|
31
|
+
field :fields, T.nilable(String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
32
|
+
# The unified cursor
|
|
33
|
+
field :next_, T.nilable(String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
34
|
+
# The page number of the results to fetch
|
|
35
|
+
#
|
|
36
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
37
|
+
field :page, T.nilable(String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
38
|
+
# The number of results per page
|
|
39
|
+
field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
40
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
41
|
+
field :proxy, T.nilable(Operations::HrisGetTimeOffRequestQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
42
|
+
# Indicates that the raw request result is returned
|
|
43
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
|
44
|
+
# The sync token to select the only updated results
|
|
45
|
+
field :sync_token, T.nilable(String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
|
46
|
+
# Use a string with a date to only select results updated after that given date
|
|
47
|
+
field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
sig { params(id: String, x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::HrisGetTimeOffRequestQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
|
|
51
|
+
def initialize(id: nil, x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
|
|
52
|
+
@id = id
|
|
53
|
+
@x_account_id = x_account_id
|
|
54
|
+
@fields = fields
|
|
55
|
+
@next_ = next_
|
|
56
|
+
@page = page
|
|
57
|
+
@page_size = page_size
|
|
58
|
+
@proxy = proxy
|
|
59
|
+
@raw = raw
|
|
60
|
+
@sync_token = sync_token
|
|
61
|
+
@updated_after = updated_after
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class HrisGetTimeOffRequestResponse < StackOne::Utils::FieldAugmented
|
|
67
|
+
extend T::Sig
|
|
68
|
+
|
|
69
|
+
# HTTP response content type for this operation
|
|
70
|
+
field :content_type, String
|
|
71
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
72
|
+
field :raw_response, Faraday::Response
|
|
73
|
+
# HTTP response status code for this operation
|
|
74
|
+
field :status_code, Integer
|
|
75
|
+
# The time off request with the given identifier was retrieved.
|
|
76
|
+
field :time_off_result, T.nilable(Shared::TimeOffResult)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, time_off_result: T.nilable(Shared::TimeOffResult)).void }
|
|
80
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, time_off_result: nil)
|
|
81
|
+
@content_type = content_type
|
|
82
|
+
@raw_response = raw_response
|
|
83
|
+
@status_code = status_code
|
|
84
|
+
@time_off_result = time_off_result
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'sorbet-runtime'
|
|
7
|
+
require 'faraday'
|
|
8
|
+
require_relative '../shared/companiespaginated'
|
|
9
|
+
|
|
10
|
+
module StackOne
|
|
11
|
+
module Operations
|
|
12
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
13
|
+
class HrisListCompaniesQueryParamProxy < StackOne::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def initialize; end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class HrisListCompaniesRequest < StackOne::Utils::FieldAugmented
|
|
24
|
+
extend T::Sig
|
|
25
|
+
|
|
26
|
+
# The account identifier
|
|
27
|
+
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
28
|
+
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
|
29
|
+
field :fields, T.nilable(String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
30
|
+
# The unified cursor
|
|
31
|
+
field :next_, T.nilable(String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
32
|
+
# The page number of the results to fetch
|
|
33
|
+
#
|
|
34
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
35
|
+
field :page, T.nilable(String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
36
|
+
# The number of results per page
|
|
37
|
+
field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
38
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
39
|
+
field :proxy, T.nilable(Operations::HrisListCompaniesQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
40
|
+
# Indicates that the raw request result is returned
|
|
41
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
|
42
|
+
# The sync token to select the only updated results
|
|
43
|
+
field :sync_token, T.nilable(String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
|
44
|
+
# Use a string with a date to only select results updated after that given date
|
|
45
|
+
field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
sig { params(x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::HrisListCompaniesQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
|
|
49
|
+
def initialize(x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
|
|
50
|
+
@x_account_id = x_account_id
|
|
51
|
+
@fields = fields
|
|
52
|
+
@next_ = next_
|
|
53
|
+
@page = page
|
|
54
|
+
@page_size = page_size
|
|
55
|
+
@proxy = proxy
|
|
56
|
+
@raw = raw
|
|
57
|
+
@sync_token = sync_token
|
|
58
|
+
@updated_after = updated_after
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class HrisListCompaniesResponse < StackOne::Utils::FieldAugmented
|
|
64
|
+
extend T::Sig
|
|
65
|
+
|
|
66
|
+
# HTTP response content type for this operation
|
|
67
|
+
field :content_type, String
|
|
68
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
69
|
+
field :raw_response, Faraday::Response
|
|
70
|
+
# HTTP response status code for this operation
|
|
71
|
+
field :status_code, Integer
|
|
72
|
+
# The list of Companies was retrieved.
|
|
73
|
+
field :companies_paginated, T.nilable(Shared::CompaniesPaginated)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, companies_paginated: T.nilable(Shared::CompaniesPaginated)).void }
|
|
77
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, companies_paginated: nil)
|
|
78
|
+
@content_type = content_type
|
|
79
|
+
@raw_response = raw_response
|
|
80
|
+
@status_code = status_code
|
|
81
|
+
@companies_paginated = companies_paginated
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'sorbet-runtime'
|
|
7
|
+
require 'faraday'
|
|
8
|
+
require_relative '../shared/timeoffpaginated'
|
|
9
|
+
|
|
10
|
+
module StackOne
|
|
11
|
+
module Operations
|
|
12
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
13
|
+
class HrisListEmployeeTimeOffRequestsQueryParamProxy < StackOne::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def initialize; end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class HrisListEmployeeTimeOffRequestsRequest < StackOne::Utils::FieldAugmented
|
|
24
|
+
extend T::Sig
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
28
|
+
# The account identifier
|
|
29
|
+
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
30
|
+
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
|
31
|
+
field :fields, T.nilable(String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
32
|
+
# The unified cursor
|
|
33
|
+
field :next_, T.nilable(String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
34
|
+
# The page number of the results to fetch
|
|
35
|
+
#
|
|
36
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
37
|
+
field :page, T.nilable(String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
38
|
+
# The number of results per page
|
|
39
|
+
field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
40
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
41
|
+
field :proxy, T.nilable(Operations::HrisListEmployeeTimeOffRequestsQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
42
|
+
# Indicates that the raw request result is returned
|
|
43
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
|
44
|
+
# The sync token to select the only updated results
|
|
45
|
+
field :sync_token, T.nilable(String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
|
46
|
+
# Use a string with a date to only select results updated after that given date
|
|
47
|
+
field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
sig { params(id: String, x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::HrisListEmployeeTimeOffRequestsQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
|
|
51
|
+
def initialize(id: nil, x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
|
|
52
|
+
@id = id
|
|
53
|
+
@x_account_id = x_account_id
|
|
54
|
+
@fields = fields
|
|
55
|
+
@next_ = next_
|
|
56
|
+
@page = page
|
|
57
|
+
@page_size = page_size
|
|
58
|
+
@proxy = proxy
|
|
59
|
+
@raw = raw
|
|
60
|
+
@sync_token = sync_token
|
|
61
|
+
@updated_after = updated_after
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class HrisListEmployeeTimeOffRequestsResponse < StackOne::Utils::FieldAugmented
|
|
67
|
+
extend T::Sig
|
|
68
|
+
|
|
69
|
+
# HTTP response content type for this operation
|
|
70
|
+
field :content_type, String
|
|
71
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
72
|
+
field :raw_response, Faraday::Response
|
|
73
|
+
# HTTP response status code for this operation
|
|
74
|
+
field :status_code, Integer
|
|
75
|
+
# The time off requests related to the employee with the given identifier were retrieved.
|
|
76
|
+
field :time_off_paginated, T.nilable(Shared::TimeOffPaginated)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, time_off_paginated: T.nilable(Shared::TimeOffPaginated)).void }
|
|
80
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, time_off_paginated: nil)
|
|
81
|
+
@content_type = content_type
|
|
82
|
+
@raw_response = raw_response
|
|
83
|
+
@status_code = status_code
|
|
84
|
+
@time_off_paginated = time_off_paginated
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'sorbet-runtime'
|
|
7
|
+
require 'faraday'
|
|
8
|
+
require_relative '../shared/employeespaginated'
|
|
9
|
+
|
|
10
|
+
module StackOne
|
|
11
|
+
module Operations
|
|
12
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
13
|
+
class HrisListEmployeesQueryParamProxy < StackOne::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def initialize; end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class HrisListEmployeesRequest < StackOne::Utils::FieldAugmented
|
|
24
|
+
extend T::Sig
|
|
25
|
+
|
|
26
|
+
# The account identifier
|
|
27
|
+
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
28
|
+
# The comma separated list of fields that will be expanded in the response
|
|
29
|
+
field :expand, T.nilable(String), { 'query_param': { 'field_name': 'expand', 'style': 'form', 'explode': true } }
|
|
30
|
+
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
|
31
|
+
field :fields, T.nilable(String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
32
|
+
# The comma separated list of fields that will be included in the response
|
|
33
|
+
field :include, T.nilable(String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
|
|
34
|
+
# The unified cursor
|
|
35
|
+
field :next_, T.nilable(String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
36
|
+
# The page number of the results to fetch
|
|
37
|
+
#
|
|
38
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
39
|
+
field :page, T.nilable(String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
40
|
+
# The number of results per page
|
|
41
|
+
field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
42
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
43
|
+
field :proxy, T.nilable(Operations::HrisListEmployeesQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
44
|
+
# Indicates that the raw request result is returned
|
|
45
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
|
46
|
+
# The sync token to select the only updated results
|
|
47
|
+
field :sync_token, T.nilable(String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
|
48
|
+
# Use a string with a date to only select results updated after that given date
|
|
49
|
+
field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
sig { params(x_account_id: String, expand: T.nilable(String), fields: T.nilable(String), include: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::HrisListEmployeesQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
|
|
53
|
+
def initialize(x_account_id: nil, expand: nil, fields: nil, include: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
|
|
54
|
+
@x_account_id = x_account_id
|
|
55
|
+
@expand = expand
|
|
56
|
+
@fields = fields
|
|
57
|
+
@include = include
|
|
58
|
+
@next_ = next_
|
|
59
|
+
@page = page
|
|
60
|
+
@page_size = page_size
|
|
61
|
+
@proxy = proxy
|
|
62
|
+
@raw = raw
|
|
63
|
+
@sync_token = sync_token
|
|
64
|
+
@updated_after = updated_after
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class HrisListEmployeesResponse < StackOne::Utils::FieldAugmented
|
|
70
|
+
extend T::Sig
|
|
71
|
+
|
|
72
|
+
# HTTP response content type for this operation
|
|
73
|
+
field :content_type, String
|
|
74
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
75
|
+
field :raw_response, Faraday::Response
|
|
76
|
+
# HTTP response status code for this operation
|
|
77
|
+
field :status_code, Integer
|
|
78
|
+
# The list of employees was retrieved.
|
|
79
|
+
field :employees_paginated, T.nilable(Shared::EmployeesPaginated)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, employees_paginated: T.nilable(Shared::EmployeesPaginated)).void }
|
|
83
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, employees_paginated: nil)
|
|
84
|
+
@content_type = content_type
|
|
85
|
+
@raw_response = raw_response
|
|
86
|
+
@status_code = status_code
|
|
87
|
+
@employees_paginated = employees_paginated
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'sorbet-runtime'
|
|
7
|
+
require 'faraday'
|
|
8
|
+
require_relative '../shared/employmentspaginated'
|
|
9
|
+
|
|
10
|
+
module StackOne
|
|
11
|
+
module Operations
|
|
12
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
13
|
+
class HrisListEmploymentsQueryParamProxy < StackOne::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def initialize; end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class HrisListEmploymentsRequest < StackOne::Utils::FieldAugmented
|
|
24
|
+
extend T::Sig
|
|
25
|
+
|
|
26
|
+
# The account identifier
|
|
27
|
+
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
28
|
+
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
|
29
|
+
field :fields, T.nilable(String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
30
|
+
# The unified cursor
|
|
31
|
+
field :next_, T.nilable(String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
32
|
+
# The page number of the results to fetch
|
|
33
|
+
#
|
|
34
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
35
|
+
field :page, T.nilable(String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
36
|
+
# The number of results per page
|
|
37
|
+
field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
38
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
|
39
|
+
field :proxy, T.nilable(Operations::HrisListEmploymentsQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
40
|
+
# Indicates that the raw request result is returned
|
|
41
|
+
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
|
42
|
+
# The sync token to select the only updated results
|
|
43
|
+
field :sync_token, T.nilable(String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
|
44
|
+
# Use a string with a date to only select results updated after that given date
|
|
45
|
+
field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
sig { params(x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::HrisListEmploymentsQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
|
|
49
|
+
def initialize(x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
|
|
50
|
+
@x_account_id = x_account_id
|
|
51
|
+
@fields = fields
|
|
52
|
+
@next_ = next_
|
|
53
|
+
@page = page
|
|
54
|
+
@page_size = page_size
|
|
55
|
+
@proxy = proxy
|
|
56
|
+
@raw = raw
|
|
57
|
+
@sync_token = sync_token
|
|
58
|
+
@updated_after = updated_after
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class HrisListEmploymentsResponse < StackOne::Utils::FieldAugmented
|
|
64
|
+
extend T::Sig
|
|
65
|
+
|
|
66
|
+
# HTTP response content type for this operation
|
|
67
|
+
field :content_type, String
|
|
68
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
69
|
+
field :raw_response, Faraday::Response
|
|
70
|
+
# HTTP response status code for this operation
|
|
71
|
+
field :status_code, Integer
|
|
72
|
+
# The list of Employments was retrieved.
|
|
73
|
+
field :employments_paginated, T.nilable(Shared::EmploymentsPaginated)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, employments_paginated: T.nilable(Shared::EmploymentsPaginated)).void }
|
|
77
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, employments_paginated: nil)
|
|
78
|
+
@content_type = content_type
|
|
79
|
+
@raw_response = raw_response
|
|
80
|
+
@status_code = status_code
|
|
81
|
+
@employments_paginated = employments_paginated
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|