stackone_client 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stackone/models/operations/hris_get_company.rb +12 -2
- data/lib/stackone/models/operations/hris_get_employee.rb +12 -2
- data/lib/stackone/models/operations/hris_get_employee_document.rb +12 -2
- data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +12 -2
- data/lib/stackone/models/operations/hris_get_employment.rb +12 -2
- data/lib/stackone/models/operations/hris_get_location.rb +12 -2
- data/lib/stackone/models/operations/hris_get_time_off_request.rb +12 -2
- data/lib/stackone/models/operations/hris_list_companies.rb +12 -2
- data/lib/stackone/models/operations/hris_list_employee_documents.rb +12 -2
- data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +12 -2
- data/lib/stackone/models/operations/hris_list_employees.rb +12 -2
- data/lib/stackone/models/operations/hris_list_employments.rb +12 -2
- data/lib/stackone/models/operations/hris_list_locations.rb +12 -2
- data/lib/stackone/models/operations/hris_list_time_off_requests.rb +12 -2
- data/lib/stackone/models/shared/connectsession.rb +5 -5
- data/lib/stackone/models/shared/connectsessiontoken.rb +5 -5
- data/lib/stackone/models/shared/content.rb +9 -8
- data/lib/stackone/models/shared/costcenters.rb +28 -0
- data/lib/stackone/models/shared/countrycodeenum.rb +6 -6
- data/lib/stackone/models/shared/createtimeoffresult.rb +4 -4
- data/lib/stackone/models/shared/documentapimodel.rb +8 -8
- data/lib/stackone/models/shared/documenttypeenum.rb +3 -3
- data/lib/stackone/models/shared/employee.rb +84 -54
- data/lib/stackone/models/shared/employeecustomfields.rb +6 -6
- data/lib/stackone/models/shared/employment.rb +36 -28
- data/lib/stackone/models/shared/fileformatenum.rb +52 -0
- data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +43 -36
- data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +9 -9
- data/lib/stackone/models/shared/hrislocation.rb +15 -15
- data/lib/stackone/models/shared/timeoff.rb +6 -6
- data/lib/stackone/models/shared/workeligibility.rb +101 -0
- data/lib/stackone/sdk.rb +1 -4
- data/lib/stackone/sdkconfiguration.rb +3 -3
- data/lib/stackone_client.rb +5 -155
- metadata +5 -155
- data/lib/stackone/ats.rb +0 -1289
- data/lib/stackone/crm.rb +0 -323
- data/lib/stackone/marketing.rb +0 -584
- data/lib/stackone/models/operations/ats_create_application.rb +0 -53
- data/lib/stackone/models/operations/ats_create_candidate.rb +0 -53
- data/lib/stackone/models/operations/ats_create_candidate_note.rb +0 -56
- data/lib/stackone/models/operations/ats_create_offer.rb +0 -53
- data/lib/stackone/models/operations/ats_get_application.rb +0 -78
- data/lib/stackone/models/operations/ats_get_application_offer.rb +0 -81
- data/lib/stackone/models/operations/ats_get_application_scorecard.rb +0 -81
- data/lib/stackone/models/operations/ats_get_candidate.rb +0 -78
- data/lib/stackone/models/operations/ats_get_candidate_note.rb +0 -81
- data/lib/stackone/models/operations/ats_get_department.rb +0 -78
- data/lib/stackone/models/operations/ats_get_interview.rb +0 -78
- data/lib/stackone/models/operations/ats_get_interview_stage.rb +0 -78
- data/lib/stackone/models/operations/ats_get_job.rb +0 -78
- data/lib/stackone/models/operations/ats_get_job_posting.rb +0 -81
- data/lib/stackone/models/operations/ats_get_location.rb +0 -78
- data/lib/stackone/models/operations/ats_get_offer.rb +0 -78
- data/lib/stackone/models/operations/ats_get_rejected_reason.rb +0 -78
- data/lib/stackone/models/operations/ats_get_user.rb +0 -78
- data/lib/stackone/models/operations/ats_list_application_scorecards.rb +0 -78
- data/lib/stackone/models/operations/ats_list_applications.rb +0 -75
- data/lib/stackone/models/operations/ats_list_applications_offers.rb +0 -78
- data/lib/stackone/models/operations/ats_list_candidate_notes.rb +0 -78
- data/lib/stackone/models/operations/ats_list_candidates.rb +0 -75
- data/lib/stackone/models/operations/ats_list_departments.rb +0 -75
- data/lib/stackone/models/operations/ats_list_interview_stages.rb +0 -75
- data/lib/stackone/models/operations/ats_list_interviews.rb +0 -75
- data/lib/stackone/models/operations/ats_list_job_postings.rb +0 -78
- data/lib/stackone/models/operations/ats_list_jobs.rb +0 -75
- data/lib/stackone/models/operations/ats_list_locations.rb +0 -75
- data/lib/stackone/models/operations/ats_list_offers.rb +0 -75
- data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +0 -75
- data/lib/stackone/models/operations/ats_list_users.rb +0 -75
- data/lib/stackone/models/operations/ats_update_application.rb +0 -56
- data/lib/stackone/models/operations/ats_update_candidate.rb +0 -56
- data/lib/stackone/models/operations/crm_create_contact.rb +0 -53
- data/lib/stackone/models/operations/crm_get_account.rb +0 -78
- data/lib/stackone/models/operations/crm_get_contact.rb +0 -78
- data/lib/stackone/models/operations/crm_get_list.rb +0 -78
- data/lib/stackone/models/operations/crm_list_accounts.rb +0 -75
- data/lib/stackone/models/operations/crm_list_contacts.rb +0 -75
- data/lib/stackone/models/operations/crm_list_lists.rb +0 -75
- data/lib/stackone/models/operations/crm_update_contact.rb +0 -56
- data/lib/stackone/models/operations/marketing_create_email_template.rb +0 -53
- data/lib/stackone/models/operations/marketing_create_omni_channel_template.rb +0 -53
- data/lib/stackone/models/operations/marketing_create_push_template.rb +0 -53
- data/lib/stackone/models/operations/marketing_get_campaign.rb +0 -78
- data/lib/stackone/models/operations/marketing_get_email_template.rb +0 -78
- data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +0 -78
- data/lib/stackone/models/operations/marketing_get_push_template.rb +0 -78
- data/lib/stackone/models/operations/marketing_list_campaigns.rb +0 -75
- data/lib/stackone/models/operations/marketing_list_email_templates.rb +0 -75
- data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +0 -75
- data/lib/stackone/models/operations/marketing_list_push_templates.rb +0 -75
- data/lib/stackone/models/operations/marketing_update_email_template.rb +0 -56
- data/lib/stackone/models/operations/marketing_update_omni_channel_template.rb +0 -56
- data/lib/stackone/models/operations/marketing_update_push_template.rb +0 -56
- data/lib/stackone/models/shared/account.rb +0 -55
- data/lib/stackone/models/shared/accountaddress.rb +0 -342
- data/lib/stackone/models/shared/accountresult.rb +0 -29
- data/lib/stackone/models/shared/accountspaginated.rb +0 -34
- data/lib/stackone/models/shared/answer.rb +0 -64
- data/lib/stackone/models/shared/application.rb +0 -75
- data/lib/stackone/models/shared/applicationattachment.rb +0 -63
- data/lib/stackone/models/shared/applicationcandidate.rb +0 -31
- data/lib/stackone/models/shared/applicationresult.rb +0 -29
- data/lib/stackone/models/shared/applicationspaginated.rb +0 -34
- data/lib/stackone/models/shared/applicationstatusenumapimodel.rb +0 -50
- data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +0 -45
- data/lib/stackone/models/shared/atscreatecandidaterequestdto.rb +0 -46
- data/lib/stackone/models/shared/atscreatenotesrequestdto.rb +0 -57
- data/lib/stackone/models/shared/atscreateofferrequestdto.rb +0 -41
- data/lib/stackone/models/shared/atslocation.rb +0 -28
- data/lib/stackone/models/shared/atslocationresult.rb +0 -29
- data/lib/stackone/models/shared/atslocationspaginated.rb +0 -34
- data/lib/stackone/models/shared/atsupdateapplicationrequestdto.rb +0 -48
- data/lib/stackone/models/shared/atsupdatecandidatesrequestdto.rb +0 -49
- data/lib/stackone/models/shared/attachmenttype.rb +0 -40
- data/lib/stackone/models/shared/campaign.rb +0 -120
- data/lib/stackone/models/shared/campaignresult.rb +0 -29
- data/lib/stackone/models/shared/campaignspaginated.rb +0 -34
- data/lib/stackone/models/shared/candidate.rb +0 -64
- data/lib/stackone/models/shared/candidateemail.rb +0 -28
- data/lib/stackone/models/shared/candidateresult.rb +0 -29
- data/lib/stackone/models/shared/candidatespaginated.rb +0 -34
- data/lib/stackone/models/shared/channelsenum.rb +0 -42
- data/lib/stackone/models/shared/compensation.rb +0 -149
- data/lib/stackone/models/shared/contact.rb +0 -52
- data/lib/stackone/models/shared/contactresult.rb +0 -29
- data/lib/stackone/models/shared/contactspaginated.rb +0 -34
- data/lib/stackone/models/shared/createcandidatenoteresult.rb +0 -31
- data/lib/stackone/models/shared/createofferresult.rb +0 -31
- data/lib/stackone/models/shared/createresult.rb +0 -31
- data/lib/stackone/models/shared/createtemplateresult.rb +0 -31
- data/lib/stackone/models/shared/crmcreatecontactrequestdto.rb +0 -43
- data/lib/stackone/models/shared/department.rb +0 -28
- data/lib/stackone/models/shared/departmentresult.rb +0 -29
- data/lib/stackone/models/shared/departmentspaginated.rb +0 -34
- data/lib/stackone/models/shared/emailmessages.rb +0 -93
- data/lib/stackone/models/shared/field.rb +0 -56
- data/lib/stackone/models/shared/hiringteam.rb +0 -37
- data/lib/stackone/models/shared/interview.rb +0 -91
- data/lib/stackone/models/shared/interviewer.rb +0 -37
- data/lib/stackone/models/shared/interviewpart.rb +0 -40
- data/lib/stackone/models/shared/interviewspaginated.rb +0 -34
- data/lib/stackone/models/shared/interviewsresult.rb +0 -29
- data/lib/stackone/models/shared/interviewstage.rb +0 -37
- data/lib/stackone/models/shared/interviewstageresult.rb +0 -29
- data/lib/stackone/models/shared/interviewstagespaginated.rb +0 -34
- data/lib/stackone/models/shared/job.rb +0 -65
- data/lib/stackone/models/shared/jobposting.rb +0 -182
- data/lib/stackone/models/shared/jobpostingresult.rb +0 -29
- data/lib/stackone/models/shared/jobpostingspaginated.rb +0 -34
- data/lib/stackone/models/shared/jobresult.rb +0 -29
- data/lib/stackone/models/shared/jobspaginated.rb +0 -34
- data/lib/stackone/models/shared/jobstatusenum.rb +0 -43
- data/lib/stackone/models/shared/list.rb +0 -67
- data/lib/stackone/models/shared/listresult.rb +0 -29
- data/lib/stackone/models/shared/listspaginated.rb +0 -34
- data/lib/stackone/models/shared/location.rb +0 -28
- data/lib/stackone/models/shared/marketingcreateemailtemplaterequestdto.rb +0 -34
- data/lib/stackone/models/shared/marketingcreatepushtemplaterequestdto.rb +0 -34
- data/lib/stackone/models/shared/marketingcreatetemplaterequestdto.rb +0 -34
- data/lib/stackone/models/shared/message.rb +0 -50
- data/lib/stackone/models/shared/note.rb +0 -69
- data/lib/stackone/models/shared/notecontentapimodel.rb +0 -25
- data/lib/stackone/models/shared/noteresult.rb +0 -29
- data/lib/stackone/models/shared/notespaginated.rb +0 -34
- data/lib/stackone/models/shared/offer.rb +0 -50
- data/lib/stackone/models/shared/offerhistory.rb +0 -37
- data/lib/stackone/models/shared/offerspaginated.rb +0 -34
- data/lib/stackone/models/shared/offersresult.rb +0 -29
- data/lib/stackone/models/shared/offerstatusenum.rb +0 -43
- data/lib/stackone/models/shared/pushmessages.rb +0 -81
- data/lib/stackone/models/shared/questionnaire.rb +0 -28
- data/lib/stackone/models/shared/rejectedreason.rb +0 -32
- data/lib/stackone/models/shared/rejectedreasonresult.rb +0 -29
- data/lib/stackone/models/shared/rejectedreasonspaginated.rb +0 -34
- data/lib/stackone/models/shared/rejectedreasontypeenum.rb +0 -40
- data/lib/stackone/models/shared/resultlink.rb +0 -28
- data/lib/stackone/models/shared/scorecard.rb +0 -65
- data/lib/stackone/models/shared/scorecardsection.rb +0 -31
- data/lib/stackone/models/shared/scorecardspaginated.rb +0 -34
- data/lib/stackone/models/shared/sociallink.rb +0 -28
- data/lib/stackone/models/shared/template.rb +0 -37
- data/lib/stackone/models/shared/templateresult.rb +0 -29
- data/lib/stackone/models/shared/templatespaginated.rb +0 -34
- data/lib/stackone/models/shared/updateresult.rb +0 -31
- data/lib/stackone/models/shared/user.rb +0 -40
- data/lib/stackone/models/shared/userresult.rb +0 -29
- data/lib/stackone/models/shared/userspaginated.rb +0 -34
@@ -1,75 +0,0 @@
|
|
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/templatespaginated'
|
9
|
-
|
10
|
-
module StackOne
|
11
|
-
module Operations
|
12
|
-
|
13
|
-
class MarketingListPushTemplatesRequest < ::StackOne::Utils::FieldAugmented
|
14
|
-
extend T::Sig
|
15
|
-
|
16
|
-
# The account identifier
|
17
|
-
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
18
|
-
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
19
|
-
field :fields, T.nilable(String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
20
|
-
# The unified cursor
|
21
|
-
field :next_, T.nilable(String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
22
|
-
# The page number of the results to fetch
|
23
|
-
#
|
24
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
25
|
-
field :page, T.nilable(String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
26
|
-
# The number of results per page
|
27
|
-
field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
28
|
-
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
|
29
|
-
field :proxy, T.nilable(T::Hash[Symbol, Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
30
|
-
# Indicates that the raw request result is returned
|
31
|
-
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
32
|
-
# The sync token to select the only updated results
|
33
|
-
field :sync_token, T.nilable(String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
34
|
-
# Use a string with a date to only select results updated after that given date
|
35
|
-
field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
36
|
-
|
37
|
-
|
38
|
-
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(T::Hash[Symbol, Object]), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
|
39
|
-
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)
|
40
|
-
@x_account_id = x_account_id
|
41
|
-
@fields = fields
|
42
|
-
@next_ = next_
|
43
|
-
@page = page
|
44
|
-
@page_size = page_size
|
45
|
-
@proxy = proxy
|
46
|
-
@raw = raw
|
47
|
-
@sync_token = sync_token
|
48
|
-
@updated_after = updated_after
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
|
53
|
-
class MarketingListPushTemplatesResponse < ::StackOne::Utils::FieldAugmented
|
54
|
-
extend T::Sig
|
55
|
-
|
56
|
-
# HTTP response content type for this operation
|
57
|
-
field :content_type, String
|
58
|
-
# Raw HTTP response; suitable for custom response parsing
|
59
|
-
field :raw_response, Faraday::Response
|
60
|
-
# HTTP response status code for this operation
|
61
|
-
field :status_code, Integer
|
62
|
-
# The list of push templates was retrieved.
|
63
|
-
field :templates_paginated, T.nilable(Shared::TemplatesPaginated)
|
64
|
-
|
65
|
-
|
66
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, templates_paginated: T.nilable(Shared::TemplatesPaginated)).void }
|
67
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, templates_paginated: nil)
|
68
|
-
@content_type = content_type
|
69
|
-
@raw_response = raw_response
|
70
|
-
@status_code = status_code
|
71
|
-
@templates_paginated = templates_paginated
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
@@ -1,56 +0,0 @@
|
|
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/marketingcreateemailtemplaterequestdto'
|
9
|
-
require_relative '../shared/createtemplateresult'
|
10
|
-
|
11
|
-
module StackOne
|
12
|
-
module Operations
|
13
|
-
|
14
|
-
class MarketingUpdateEmailTemplateRequest < ::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_email_template_request_dto, Shared::MarketingCreateEmailTemplateRequestDto, { '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_email_template_request_dto: Shared::MarketingCreateEmailTemplateRequestDto, x_account_id: String).void }
|
26
|
-
def initialize(id: nil, marketing_create_email_template_request_dto: nil, x_account_id: nil)
|
27
|
-
@id = id
|
28
|
-
@marketing_create_email_template_request_dto = marketing_create_email_template_request_dto
|
29
|
-
@x_account_id = x_account_id
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
class MarketingUpdateEmailTemplateResponse < ::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
|
@@ -1,56 +0,0 @@
|
|
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/marketingcreatetemplaterequestdto'
|
9
|
-
require_relative '../shared/createtemplateresult'
|
10
|
-
|
11
|
-
module StackOne
|
12
|
-
module Operations
|
13
|
-
|
14
|
-
class MarketingUpdateOmniChannelTemplateRequest < ::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_template_request_dto, Shared::MarketingCreateTemplateRequestDto, { '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_template_request_dto: Shared::MarketingCreateTemplateRequestDto, x_account_id: String).void }
|
26
|
-
def initialize(id: nil, marketing_create_template_request_dto: nil, x_account_id: nil)
|
27
|
-
@id = id
|
28
|
-
@marketing_create_template_request_dto = marketing_create_template_request_dto
|
29
|
-
@x_account_id = x_account_id
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
class MarketingUpdateOmniChannelTemplateResponse < ::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
|
@@ -1,56 +0,0 @@
|
|
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
|
@@ -1,55 +0,0 @@
|
|
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': ::StackOne::Utils.field_name('id') } }
|
17
|
-
|
18
|
-
field :name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
19
|
-
|
20
|
-
field :owner_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('owner_id') } }
|
21
|
-
|
22
|
-
field :addresses, T.nilable(T::Array[Shared::AccountAddress]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('addresses') } }
|
23
|
-
|
24
|
-
field :annual_revenue, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('annual_revenue') } }
|
25
|
-
# Timestamp when the account was created
|
26
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
27
|
-
|
28
|
-
field :description, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
|
29
|
-
# Values of the industries
|
30
|
-
field :industries, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('industries') } }
|
31
|
-
# List of account phone numbers
|
32
|
-
field :phone_numbers, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_numbers') } }
|
33
|
-
# Timestamp when the account was last updated
|
34
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
35
|
-
|
36
|
-
field :website, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::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
|
@@ -1,342 +0,0 @@
|
|
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
|
-
# AccountAddressSchemasValue - The ISO 3166-1 alpha-2 code of the country.
|
12
|
-
class AccountAddressSchemasValue < T::Enum
|
13
|
-
enums do
|
14
|
-
AF = new('AF')
|
15
|
-
AL = new('AL')
|
16
|
-
DZ = new('DZ')
|
17
|
-
AS = new('AS')
|
18
|
-
AD = new('AD')
|
19
|
-
AO = new('AO')
|
20
|
-
AI = new('AI')
|
21
|
-
AQ = new('AQ')
|
22
|
-
AG = new('AG')
|
23
|
-
AR = new('AR')
|
24
|
-
AM = new('AM')
|
25
|
-
AW = new('AW')
|
26
|
-
AU = new('AU')
|
27
|
-
AT = new('AT')
|
28
|
-
AZ = new('AZ')
|
29
|
-
BS = new('BS')
|
30
|
-
BH = new('BH')
|
31
|
-
BD = new('BD')
|
32
|
-
BB = new('BB')
|
33
|
-
BY = new('BY')
|
34
|
-
BE = new('BE')
|
35
|
-
BZ = new('BZ')
|
36
|
-
BJ = new('BJ')
|
37
|
-
BM = new('BM')
|
38
|
-
BT = new('BT')
|
39
|
-
BO = new('BO')
|
40
|
-
BQ = new('BQ')
|
41
|
-
BA = new('BA')
|
42
|
-
BW = new('BW')
|
43
|
-
BV = new('BV')
|
44
|
-
BR = new('BR')
|
45
|
-
IO = new('IO')
|
46
|
-
BN = new('BN')
|
47
|
-
BG = new('BG')
|
48
|
-
BF = new('BF')
|
49
|
-
BI = new('BI')
|
50
|
-
KH = new('KH')
|
51
|
-
CM = new('CM')
|
52
|
-
CA = new('CA')
|
53
|
-
CV = new('CV')
|
54
|
-
KY = new('KY')
|
55
|
-
CF = new('CF')
|
56
|
-
TD = new('TD')
|
57
|
-
CL = new('CL')
|
58
|
-
CN = new('CN')
|
59
|
-
CX = new('CX')
|
60
|
-
CC = new('CC')
|
61
|
-
CO = new('CO')
|
62
|
-
KM = new('KM')
|
63
|
-
CG = new('CG')
|
64
|
-
CD = new('CD')
|
65
|
-
CK = new('CK')
|
66
|
-
CR = new('CR')
|
67
|
-
HR = new('HR')
|
68
|
-
CU = new('CU')
|
69
|
-
CW = new('CW')
|
70
|
-
CY = new('CY')
|
71
|
-
CZ = new('CZ')
|
72
|
-
CI = new('CI')
|
73
|
-
DK = new('DK')
|
74
|
-
DJ = new('DJ')
|
75
|
-
DM = new('DM')
|
76
|
-
DO = new('DO')
|
77
|
-
EC = new('EC')
|
78
|
-
EG = new('EG')
|
79
|
-
SV = new('SV')
|
80
|
-
GQ = new('GQ')
|
81
|
-
ER = new('ER')
|
82
|
-
EE = new('EE')
|
83
|
-
ET = new('ET')
|
84
|
-
FK = new('FK')
|
85
|
-
FO = new('FO')
|
86
|
-
FJ = new('FJ')
|
87
|
-
FI = new('FI')
|
88
|
-
FR = new('FR')
|
89
|
-
GF = new('GF')
|
90
|
-
PF = new('PF')
|
91
|
-
TF = new('TF')
|
92
|
-
GA = new('GA')
|
93
|
-
GM = new('GM')
|
94
|
-
GE = new('GE')
|
95
|
-
DE = new('DE')
|
96
|
-
GH = new('GH')
|
97
|
-
GI = new('GI')
|
98
|
-
GR = new('GR')
|
99
|
-
GL = new('GL')
|
100
|
-
GD = new('GD')
|
101
|
-
GP = new('GP')
|
102
|
-
GU = new('GU')
|
103
|
-
GT = new('GT')
|
104
|
-
GG = new('GG')
|
105
|
-
GN = new('GN')
|
106
|
-
GW = new('GW')
|
107
|
-
GY = new('GY')
|
108
|
-
HT = new('HT')
|
109
|
-
HM = new('HM')
|
110
|
-
VA = new('VA')
|
111
|
-
HN = new('HN')
|
112
|
-
HK = new('HK')
|
113
|
-
HU = new('HU')
|
114
|
-
IS = new('IS')
|
115
|
-
IN = new('IN')
|
116
|
-
ID = new('ID')
|
117
|
-
IR = new('IR')
|
118
|
-
IQ = new('IQ')
|
119
|
-
IE = new('IE')
|
120
|
-
IM = new('IM')
|
121
|
-
IL = new('IL')
|
122
|
-
IT = new('IT')
|
123
|
-
JM = new('JM')
|
124
|
-
JP = new('JP')
|
125
|
-
JE = new('JE')
|
126
|
-
JO = new('JO')
|
127
|
-
KZ = new('KZ')
|
128
|
-
KE = new('KE')
|
129
|
-
KI = new('KI')
|
130
|
-
KP = new('KP')
|
131
|
-
KR = new('KR')
|
132
|
-
KW = new('KW')
|
133
|
-
KG = new('KG')
|
134
|
-
LA = new('LA')
|
135
|
-
LV = new('LV')
|
136
|
-
LB = new('LB')
|
137
|
-
LS = new('LS')
|
138
|
-
LR = new('LR')
|
139
|
-
LY = new('LY')
|
140
|
-
LI = new('LI')
|
141
|
-
LT = new('LT')
|
142
|
-
LU = new('LU')
|
143
|
-
MO = new('MO')
|
144
|
-
MK = new('MK')
|
145
|
-
MG = new('MG')
|
146
|
-
MW = new('MW')
|
147
|
-
MY = new('MY')
|
148
|
-
MV = new('MV')
|
149
|
-
ML = new('ML')
|
150
|
-
MT = new('MT')
|
151
|
-
MH = new('MH')
|
152
|
-
MQ = new('MQ')
|
153
|
-
MR = new('MR')
|
154
|
-
MU = new('MU')
|
155
|
-
YT = new('YT')
|
156
|
-
MX = new('MX')
|
157
|
-
FM = new('FM')
|
158
|
-
MD = new('MD')
|
159
|
-
MC = new('MC')
|
160
|
-
MN = new('MN')
|
161
|
-
ME = new('ME')
|
162
|
-
MS = new('MS')
|
163
|
-
MA = new('MA')
|
164
|
-
MZ = new('MZ')
|
165
|
-
MM = new('MM')
|
166
|
-
NA = new('NA')
|
167
|
-
NR = new('NR')
|
168
|
-
NP = new('NP')
|
169
|
-
NL = new('NL')
|
170
|
-
NC = new('NC')
|
171
|
-
NZ = new('NZ')
|
172
|
-
NI = new('NI')
|
173
|
-
NE = new('NE')
|
174
|
-
NG = new('NG')
|
175
|
-
NU = new('NU')
|
176
|
-
NF = new('NF')
|
177
|
-
MP = new('MP')
|
178
|
-
NO = new('NO')
|
179
|
-
OM = new('OM')
|
180
|
-
PK = new('PK')
|
181
|
-
PW = new('PW')
|
182
|
-
PS = new('PS')
|
183
|
-
PA = new('PA')
|
184
|
-
PG = new('PG')
|
185
|
-
PY = new('PY')
|
186
|
-
PE = new('PE')
|
187
|
-
PH = new('PH')
|
188
|
-
PN = new('PN')
|
189
|
-
PL = new('PL')
|
190
|
-
PT = new('PT')
|
191
|
-
PR = new('PR')
|
192
|
-
QA = new('QA')
|
193
|
-
RO = new('RO')
|
194
|
-
RU = new('RU')
|
195
|
-
RW = new('RW')
|
196
|
-
RE = new('RE')
|
197
|
-
BL = new('BL')
|
198
|
-
SH = new('SH')
|
199
|
-
KN = new('KN')
|
200
|
-
LC = new('LC')
|
201
|
-
MF = new('MF')
|
202
|
-
PM = new('PM')
|
203
|
-
VC = new('VC')
|
204
|
-
WS = new('WS')
|
205
|
-
SM = new('SM')
|
206
|
-
ST = new('ST')
|
207
|
-
SA = new('SA')
|
208
|
-
SN = new('SN')
|
209
|
-
RS = new('RS')
|
210
|
-
SC = new('SC')
|
211
|
-
SL = new('SL')
|
212
|
-
SG = new('SG')
|
213
|
-
SX = new('SX')
|
214
|
-
SK = new('SK')
|
215
|
-
SI = new('SI')
|
216
|
-
SB = new('SB')
|
217
|
-
SO = new('SO')
|
218
|
-
ZA = new('ZA')
|
219
|
-
GS = new('GS')
|
220
|
-
SS = new('SS')
|
221
|
-
ES = new('ES')
|
222
|
-
LK = new('LK')
|
223
|
-
SD = new('SD')
|
224
|
-
SR = new('SR')
|
225
|
-
SJ = new('SJ')
|
226
|
-
SZ = new('SZ')
|
227
|
-
SE = new('SE')
|
228
|
-
CH = new('CH')
|
229
|
-
SY = new('SY')
|
230
|
-
TW = new('TW')
|
231
|
-
TJ = new('TJ')
|
232
|
-
TZ = new('TZ')
|
233
|
-
TH = new('TH')
|
234
|
-
TL = new('TL')
|
235
|
-
TG = new('TG')
|
236
|
-
TK = new('TK')
|
237
|
-
TO = new('TO')
|
238
|
-
TT = new('TT')
|
239
|
-
TN = new('TN')
|
240
|
-
TR = new('TR')
|
241
|
-
TM = new('TM')
|
242
|
-
TC = new('TC')
|
243
|
-
TV = new('TV')
|
244
|
-
UG = new('UG')
|
245
|
-
UA = new('UA')
|
246
|
-
AE = new('AE')
|
247
|
-
GB = new('GB')
|
248
|
-
US = new('US')
|
249
|
-
UM = new('UM')
|
250
|
-
UY = new('UY')
|
251
|
-
UZ = new('UZ')
|
252
|
-
VU = new('VU')
|
253
|
-
VE = new('VE')
|
254
|
-
VN = new('VN')
|
255
|
-
VG = new('VG')
|
256
|
-
VI = new('VI')
|
257
|
-
WF = new('WF')
|
258
|
-
EH = new('EH')
|
259
|
-
YE = new('YE')
|
260
|
-
ZM = new('ZM')
|
261
|
-
ZW = new('ZW')
|
262
|
-
end
|
263
|
-
end
|
264
|
-
|
265
|
-
|
266
|
-
# The country code
|
267
|
-
class Country < ::StackOne::Utils::FieldAugmented
|
268
|
-
extend T::Sig
|
269
|
-
|
270
|
-
# The source value of the ISO 3166-1 alpha-2 code of the country.
|
271
|
-
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
272
|
-
# The ISO 3166-1 alpha-2 code of the country.
|
273
|
-
field :value, Shared::AccountAddressSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::AccountAddressSchemasValue, false) } }
|
274
|
-
|
275
|
-
|
276
|
-
sig { params(source_value: String, value: Shared::AccountAddressSchemasValue).void }
|
277
|
-
def initialize(source_value: nil, value: nil)
|
278
|
-
@source_value = source_value
|
279
|
-
@value = value
|
280
|
-
end
|
281
|
-
end
|
282
|
-
|
283
|
-
# AccountAddressValue - The type of the location.
|
284
|
-
class AccountAddressValue < T::Enum
|
285
|
-
enums do
|
286
|
-
HOME = new('home')
|
287
|
-
WORK = new('work')
|
288
|
-
UNMAPPED_VALUE = new('unmapped_value')
|
289
|
-
end
|
290
|
-
end
|
291
|
-
|
292
|
-
|
293
|
-
# The location type
|
294
|
-
class LocationType < ::StackOne::Utils::FieldAugmented
|
295
|
-
extend T::Sig
|
296
|
-
|
297
|
-
# The source value of the location type.
|
298
|
-
field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
299
|
-
# The type of the location.
|
300
|
-
field :value, Shared::AccountAddressValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::AccountAddressValue, false) } }
|
301
|
-
|
302
|
-
|
303
|
-
sig { params(source_value: String, value: Shared::AccountAddressValue).void }
|
304
|
-
def initialize(source_value: nil, value: nil)
|
305
|
-
@source_value = source_value
|
306
|
-
@value = value
|
307
|
-
end
|
308
|
-
end
|
309
|
-
|
310
|
-
|
311
|
-
class AccountAddress < ::StackOne::Utils::FieldAugmented
|
312
|
-
extend T::Sig
|
313
|
-
|
314
|
-
|
315
|
-
field :city, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('city') } }
|
316
|
-
# The country code
|
317
|
-
field :country, T.nilable(Shared::Country), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
|
318
|
-
# The location type
|
319
|
-
field :location_type, T.nilable(Shared::LocationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_type') } }
|
320
|
-
|
321
|
-
field :state, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('state') } }
|
322
|
-
|
323
|
-
field :street_1, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_1') } }
|
324
|
-
|
325
|
-
field :street_2, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('street_2') } }
|
326
|
-
|
327
|
-
field :zip_code, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('zip_code') } }
|
328
|
-
|
329
|
-
|
330
|
-
sig { params(city: T.nilable(String), country: T.nilable(Shared::Country), location_type: T.nilable(Shared::LocationType), state: T.nilable(String), street_1: T.nilable(String), street_2: T.nilable(String), zip_code: T.nilable(String)).void }
|
331
|
-
def initialize(city: nil, country: nil, location_type: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil)
|
332
|
-
@city = city
|
333
|
-
@country = country
|
334
|
-
@location_type = location_type
|
335
|
-
@state = state
|
336
|
-
@street_1 = street_1
|
337
|
-
@street_2 = street_2
|
338
|
-
@zip_code = zip_code
|
339
|
-
end
|
340
|
-
end
|
341
|
-
end
|
342
|
-
end
|
@@ -1,29 +0,0 @@
|
|
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/account'
|
9
|
-
|
10
|
-
module StackOne
|
11
|
-
module Shared
|
12
|
-
|
13
|
-
class AccountResult < ::StackOne::Utils::FieldAugmented
|
14
|
-
extend T::Sig
|
15
|
-
|
16
|
-
|
17
|
-
field :data, Shared::Account, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
18
|
-
|
19
|
-
field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
20
|
-
|
21
|
-
|
22
|
-
sig { params(data: Shared::Account, raw: T.nilable(T::Array[Shared::RawResponse])).void }
|
23
|
-
def initialize(data: nil, raw: nil)
|
24
|
-
@data = data
|
25
|
-
@raw = raw
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|