stackone_client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,56 @@
|
|
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/marketingcreatepushtemplaterequestdto'
|
9
|
+
require_relative '../shared/createtemplateresult'
|
10
|
+
|
11
|
+
module StackOne
|
12
|
+
module Operations
|
13
|
+
|
14
|
+
class MarketingUpdatePushTemplateRequest < StackOne::Utils::FieldAugmented
|
15
|
+
extend T::Sig
|
16
|
+
|
17
|
+
|
18
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
19
|
+
|
20
|
+
field :marketing_create_push_template_request_dto, Shared::MarketingCreatePushTemplateRequestDto, { 'request': { 'media_type': 'application/json' } }
|
21
|
+
# The account identifier
|
22
|
+
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
23
|
+
|
24
|
+
|
25
|
+
sig { params(id: String, marketing_create_push_template_request_dto: Shared::MarketingCreatePushTemplateRequestDto, x_account_id: String).void }
|
26
|
+
def initialize(id: nil, marketing_create_push_template_request_dto: nil, x_account_id: nil)
|
27
|
+
@id = id
|
28
|
+
@marketing_create_push_template_request_dto = marketing_create_push_template_request_dto
|
29
|
+
@x_account_id = x_account_id
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
class MarketingUpdatePushTemplateResponse < StackOne::Utils::FieldAugmented
|
35
|
+
extend T::Sig
|
36
|
+
|
37
|
+
# HTTP response content type for this operation
|
38
|
+
field :content_type, String
|
39
|
+
# Raw HTTP response; suitable for custom response parsing
|
40
|
+
field :raw_response, Faraday::Response
|
41
|
+
# HTTP response status code for this operation
|
42
|
+
field :status_code, Integer
|
43
|
+
# Record updated successfully
|
44
|
+
field :create_template_result, T.nilable(Shared::CreateTemplateResult)
|
45
|
+
|
46
|
+
|
47
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, create_template_result: T.nilable(Shared::CreateTemplateResult)).void }
|
48
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_template_result: nil)
|
49
|
+
@content_type = content_type
|
50
|
+
@raw_response = raw_response
|
51
|
+
@status_code = status_code
|
52
|
+
@create_template_result = create_template_result
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,35 @@
|
|
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/connectsession'
|
9
|
+
|
10
|
+
module StackOne
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class StackoneAuthenticateConnectSessionResponse < StackOne::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# HTTP response content type for this operation
|
17
|
+
field :content_type, String
|
18
|
+
# Raw HTTP response; suitable for custom response parsing
|
19
|
+
field :raw_response, Faraday::Response
|
20
|
+
# HTTP response status code for this operation
|
21
|
+
field :status_code, Integer
|
22
|
+
# The details of the authenticated connect session.
|
23
|
+
field :connect_session, T.nilable(Shared::ConnectSession)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, connect_session: T.nilable(Shared::ConnectSession)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, connect_session: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@connect_session = connect_session
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,35 @@
|
|
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/connectsessiontoken'
|
9
|
+
|
10
|
+
module StackOne
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class StackoneCreateConnectSessionResponse < StackOne::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# HTTP response content type for this operation
|
17
|
+
field :content_type, String
|
18
|
+
# Raw HTTP response; suitable for custom response parsing
|
19
|
+
field :raw_response, Faraday::Response
|
20
|
+
# HTTP response status code for this operation
|
21
|
+
field :status_code, Integer
|
22
|
+
# The details of the connect session created with token.
|
23
|
+
field :connect_session_token, T.nilable(Shared::ConnectSessionToken)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, connect_session_token: T.nilable(Shared::ConnectSessionToken)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, connect_session_token: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@connect_session_token = connect_session_token
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,49 @@
|
|
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/linkedaccount'
|
9
|
+
|
10
|
+
module StackOne
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class StackoneDeleteAccountRequest < StackOne::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
|
17
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(id: String).void }
|
21
|
+
def initialize(id: nil)
|
22
|
+
@id = id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
class StackoneDeleteAccountResponse < StackOne::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
# HTTP response content type for this operation
|
31
|
+
field :content_type, String
|
32
|
+
# Raw HTTP response; suitable for custom response parsing
|
33
|
+
field :raw_response, Faraday::Response
|
34
|
+
# HTTP response status code for this operation
|
35
|
+
field :status_code, Integer
|
36
|
+
# The account with the given identifier was deleted.
|
37
|
+
field :linked_account, T.nilable(Shared::LinkedAccount)
|
38
|
+
|
39
|
+
|
40
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, linked_account: T.nilable(Shared::LinkedAccount)).void }
|
41
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, linked_account: nil)
|
42
|
+
@content_type = content_type
|
43
|
+
@raw_response = raw_response
|
44
|
+
@status_code = status_code
|
45
|
+
@linked_account = linked_account
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
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/linkedaccount'
|
9
|
+
|
10
|
+
module StackOne
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class StackoneGetAccountRequest < StackOne::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
|
17
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(id: String).void }
|
21
|
+
def initialize(id: nil)
|
22
|
+
@id = id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
class StackoneGetAccountResponse < StackOne::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
# HTTP response content type for this operation
|
31
|
+
field :content_type, String
|
32
|
+
# Raw HTTP response; suitable for custom response parsing
|
33
|
+
field :raw_response, Faraday::Response
|
34
|
+
# HTTP response status code for this operation
|
35
|
+
field :status_code, Integer
|
36
|
+
# The account with the given identifier was retrieved.
|
37
|
+
field :linked_account, T.nilable(Shared::LinkedAccount)
|
38
|
+
|
39
|
+
|
40
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, linked_account: T.nilable(Shared::LinkedAccount)).void }
|
41
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, linked_account: nil)
|
42
|
+
@content_type = content_type
|
43
|
+
@raw_response = raw_response
|
44
|
+
@status_code = status_code
|
45
|
+
@linked_account = linked_account
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
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/linkedaccountmeta'
|
9
|
+
|
10
|
+
module StackOne
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class StackoneGetAccountMetaInfoRequest < StackOne::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
|
17
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(id: String).void }
|
21
|
+
def initialize(id: nil)
|
22
|
+
@id = id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
class StackoneGetAccountMetaInfoResponse < StackOne::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
# HTTP response content type for this operation
|
31
|
+
field :content_type, String
|
32
|
+
# Raw HTTP response; suitable for custom response parsing
|
33
|
+
field :raw_response, Faraday::Response
|
34
|
+
# HTTP response status code for this operation
|
35
|
+
field :status_code, Integer
|
36
|
+
# The meta information of the account was retrieved
|
37
|
+
field :linked_account_meta, T.nilable(Shared::LinkedAccountMeta)
|
38
|
+
|
39
|
+
|
40
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, linked_account_meta: T.nilable(Shared::LinkedAccountMeta)).void }
|
41
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, linked_account_meta: nil)
|
42
|
+
@content_type = content_type
|
43
|
+
@raw_response = raw_response
|
44
|
+
@status_code = status_code
|
45
|
+
@linked_account_meta = linked_account_meta
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,52 @@
|
|
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/connectorsmeta'
|
9
|
+
|
10
|
+
module StackOne
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class StackoneGetConnectorMetaRequest < StackOne::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
|
17
|
+
field :provider, String, { 'path_param': { 'field_name': 'provider', 'style': 'simple', 'explode': false } }
|
18
|
+
# The comma separated list of data that will be included in the response
|
19
|
+
field :include, T.nilable(String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(provider: String, include: T.nilable(String)).void }
|
23
|
+
def initialize(provider: nil, include: nil)
|
24
|
+
@provider = provider
|
25
|
+
@include = include
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
class StackoneGetConnectorMetaResponse < StackOne::Utils::FieldAugmented
|
31
|
+
extend T::Sig
|
32
|
+
|
33
|
+
# HTTP response content type for this operation
|
34
|
+
field :content_type, String
|
35
|
+
# Raw HTTP response; suitable for custom response parsing
|
36
|
+
field :raw_response, Faraday::Response
|
37
|
+
# HTTP response status code for this operation
|
38
|
+
field :status_code, Integer
|
39
|
+
# The connector meta information was retrieved
|
40
|
+
field :connectors_meta, T.nilable(Shared::ConnectorsMeta)
|
41
|
+
|
42
|
+
|
43
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, connectors_meta: T.nilable(Shared::ConnectorsMeta)).void }
|
44
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, connectors_meta: nil)
|
45
|
+
@content_type = content_type
|
46
|
+
@raw_response = raw_response
|
47
|
+
@status_code = status_code
|
48
|
+
@connectors_meta = connectors_meta
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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
|
+
|
9
|
+
module StackOne
|
10
|
+
module Operations
|
11
|
+
|
12
|
+
class StackoneListConnectorsMetaRequest < StackOne::Utils::FieldAugmented
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
# The comma separated list of data that will be included in the response
|
16
|
+
field :include, T.nilable(String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
|
17
|
+
|
18
|
+
|
19
|
+
sig { params(include: T.nilable(String)).void }
|
20
|
+
def initialize(include: nil)
|
21
|
+
@include = include
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
class StackoneListConnectorsMetaResponse < StackOne::Utils::FieldAugmented
|
27
|
+
extend T::Sig
|
28
|
+
|
29
|
+
# HTTP response content type for this operation
|
30
|
+
field :content_type, String
|
31
|
+
# Raw HTTP response; suitable for custom response parsing
|
32
|
+
field :raw_response, Faraday::Response
|
33
|
+
# HTTP response status code for this operation
|
34
|
+
field :status_code, Integer
|
35
|
+
# The list of connectors meta information was retrieved.
|
36
|
+
field :connectors_metas, T.nilable(T::Array[Shared::ConnectorsMeta])
|
37
|
+
|
38
|
+
|
39
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, connectors_metas: T.nilable(T::Array[Shared::ConnectorsMeta])).void }
|
40
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, connectors_metas: nil)
|
41
|
+
@content_type = content_type
|
42
|
+
@raw_response = raw_response
|
43
|
+
@status_code = status_code
|
44
|
+
@connectors_metas = connectors_metas
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,51 @@
|
|
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
|
+
|
9
|
+
module StackOne
|
10
|
+
module Operations
|
11
|
+
|
12
|
+
class StackoneListLinkedAccountsRequest < StackOne::Utils::FieldAugmented
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
# The origin owner identifier of the results to fetch
|
16
|
+
field :origin_owner_id, T.nilable(String), { 'query_param': { 'field_name': 'origin_owner_id', 'style': 'form', 'explode': true } }
|
17
|
+
# The provider of the results to fetch
|
18
|
+
field :provider, T.nilable(String), { 'query_param': { 'field_name': 'provider', 'style': 'form', 'explode': true } }
|
19
|
+
|
20
|
+
|
21
|
+
sig { params(origin_owner_id: T.nilable(String), provider: T.nilable(String)).void }
|
22
|
+
def initialize(origin_owner_id: nil, provider: nil)
|
23
|
+
@origin_owner_id = origin_owner_id
|
24
|
+
@provider = provider
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
class StackoneListLinkedAccountsResponse < StackOne::Utils::FieldAugmented
|
30
|
+
extend T::Sig
|
31
|
+
|
32
|
+
# HTTP response content type for this operation
|
33
|
+
field :content_type, String
|
34
|
+
# Raw HTTP response; suitable for custom response parsing
|
35
|
+
field :raw_response, Faraday::Response
|
36
|
+
# HTTP response status code for this operation
|
37
|
+
field :status_code, Integer
|
38
|
+
# The list of accounts was retrieved.
|
39
|
+
field :linked_accounts, T.nilable(T::Array[Shared::LinkedAccount])
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, linked_accounts: T.nilable(T::Array[Shared::LinkedAccount])).void }
|
43
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, linked_accounts: nil)
|
44
|
+
@content_type = content_type
|
45
|
+
@raw_response = raw_response
|
46
|
+
@status_code = status_code
|
47
|
+
@linked_accounts = linked_accounts
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,49 @@
|
|
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/proxyrequestbody'
|
9
|
+
|
10
|
+
module StackOne
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class StackoneProxyRequestRequest < StackOne::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# The request body
|
17
|
+
field :proxy_request_body, Shared::ProxyRequestBody, { 'request': { 'media_type': 'application/json' } }
|
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(proxy_request_body: Shared::ProxyRequestBody, x_account_id: String).void }
|
23
|
+
def initialize(proxy_request_body: nil, x_account_id: nil)
|
24
|
+
@proxy_request_body = proxy_request_body
|
25
|
+
@x_account_id = x_account_id
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
class StackoneProxyRequestResponse < StackOne::Utils::FieldAugmented
|
31
|
+
extend T::Sig
|
32
|
+
|
33
|
+
# HTTP response content type for this operation
|
34
|
+
field :content_type, String
|
35
|
+
# Raw HTTP response; suitable for custom response parsing
|
36
|
+
field :raw_response, Faraday::Response
|
37
|
+
# HTTP response status code for this operation
|
38
|
+
field :status_code, Integer
|
39
|
+
|
40
|
+
|
41
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer).void }
|
42
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil)
|
43
|
+
@content_type = content_type
|
44
|
+
@raw_response = raw_response
|
45
|
+
@status_code = status_code
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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/patchaccountdto'
|
9
|
+
require_relative '../shared/linkedaccount'
|
10
|
+
|
11
|
+
module StackOne
|
12
|
+
module Operations
|
13
|
+
|
14
|
+
class StackoneUpdateAccountRequest < StackOne::Utils::FieldAugmented
|
15
|
+
extend T::Sig
|
16
|
+
|
17
|
+
|
18
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
19
|
+
|
20
|
+
field :patch_account_dto, Shared::PatchAccountDto, { 'request': { 'media_type': 'application/json' } }
|
21
|
+
|
22
|
+
|
23
|
+
sig { params(id: String, patch_account_dto: Shared::PatchAccountDto).void }
|
24
|
+
def initialize(id: nil, patch_account_dto: nil)
|
25
|
+
@id = id
|
26
|
+
@patch_account_dto = patch_account_dto
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
class StackoneUpdateAccountResponse < StackOne::Utils::FieldAugmented
|
32
|
+
extend T::Sig
|
33
|
+
|
34
|
+
# HTTP response content type for this operation
|
35
|
+
field :content_type, String
|
36
|
+
# Raw HTTP response; suitable for custom response parsing
|
37
|
+
field :raw_response, Faraday::Response
|
38
|
+
# HTTP response status code for this operation
|
39
|
+
field :status_code, Integer
|
40
|
+
# The account with the given identifier was updated.
|
41
|
+
field :linked_account, T.nilable(Shared::LinkedAccount)
|
42
|
+
|
43
|
+
|
44
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, linked_account: T.nilable(Shared::LinkedAccount)).void }
|
45
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, linked_account: nil)
|
46
|
+
@content_type = content_type
|
47
|
+
@raw_response = raw_response
|
48
|
+
@status_code = status_code
|
49
|
+
@linked_account = linked_account
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,55 @@
|
|
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
|
+
|
9
|
+
module StackOne
|
10
|
+
module Shared
|
11
|
+
|
12
|
+
class Account < StackOne::Utils::FieldAugmented
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
|
16
|
+
field :id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('id') } }
|
17
|
+
|
18
|
+
field :name, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('name') } }
|
19
|
+
|
20
|
+
field :owner_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('owner_id') } }
|
21
|
+
|
22
|
+
field :addresses, T.nilable(T::Array[Shared::AccountAddress]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('addresses') } }
|
23
|
+
|
24
|
+
field :annual_revenue, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('annual_revenue') } }
|
25
|
+
# Timestamp when the account was created
|
26
|
+
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
27
|
+
|
28
|
+
field :description, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('description') } }
|
29
|
+
# Values of the industries
|
30
|
+
field :industries, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('industries') } }
|
31
|
+
# List of account phone numbers
|
32
|
+
field :phone_numbers, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('phone_numbers') } }
|
33
|
+
# Timestamp when the account was last updated
|
34
|
+
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
35
|
+
|
36
|
+
field :website, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('website') } }
|
37
|
+
|
38
|
+
|
39
|
+
sig { params(id: String, name: String, owner_id: String, addresses: T.nilable(T::Array[Shared::AccountAddress]), annual_revenue: T.nilable(String), created_at: T.nilable(DateTime), description: T.nilable(String), industries: T.nilable(T::Array[String]), phone_numbers: T.nilable(T::Array[String]), updated_at: T.nilable(DateTime), website: T.nilable(String)).void }
|
40
|
+
def initialize(id: nil, name: nil, owner_id: nil, addresses: nil, annual_revenue: nil, created_at: nil, description: nil, industries: nil, phone_numbers: nil, updated_at: nil, website: nil)
|
41
|
+
@id = id
|
42
|
+
@name = name
|
43
|
+
@owner_id = owner_id
|
44
|
+
@addresses = addresses
|
45
|
+
@annual_revenue = annual_revenue
|
46
|
+
@created_at = created_at
|
47
|
+
@description = description
|
48
|
+
@industries = industries
|
49
|
+
@phone_numbers = phone_numbers
|
50
|
+
@updated_at = updated_at
|
51
|
+
@website = website
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|