stackone_client 0.0.3 → 0.1.0
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 +4 -4
- data/lib/stackone/models/operations/hris_get_company.rb +3 -3
- data/lib/stackone/models/operations/hris_get_employee.rb +3 -3
- data/lib/stackone/models/shared/content.rb +4 -4
- data/lib/stackone/models/shared/costcenters.rb +5 -2
- data/lib/stackone/models/shared/countrycodeenum.rb +4 -4
- data/lib/stackone/models/shared/documentapimodel.rb +8 -8
- data/lib/stackone/models/shared/employee.rb +39 -22
- data/lib/stackone/models/shared/employeecustomfields.rb +3 -3
- data/lib/stackone/models/shared/employment.rb +11 -10
- data/lib/stackone/models/shared/{documentfileformatenum.rb → fileformatenum.rb} +16 -4
- data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +3 -3
- data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +3 -3
- data/lib/stackone/models/shared/hrislocation.rb +8 -8
- 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 +4 -154
- metadata +3 -153
- 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 -88
- data/lib/stackone/models/operations/ats_get_application_offer.rb +0 -91
- data/lib/stackone/models/operations/ats_get_application_scorecard.rb +0 -91
- data/lib/stackone/models/operations/ats_get_candidate.rb +0 -88
- data/lib/stackone/models/operations/ats_get_candidate_note.rb +0 -91
- data/lib/stackone/models/operations/ats_get_department.rb +0 -88
- data/lib/stackone/models/operations/ats_get_interview.rb +0 -88
- data/lib/stackone/models/operations/ats_get_interview_stage.rb +0 -88
- data/lib/stackone/models/operations/ats_get_job.rb +0 -88
- data/lib/stackone/models/operations/ats_get_job_posting.rb +0 -91
- data/lib/stackone/models/operations/ats_get_location.rb +0 -88
- data/lib/stackone/models/operations/ats_get_offer.rb +0 -88
- data/lib/stackone/models/operations/ats_get_rejected_reason.rb +0 -88
- data/lib/stackone/models/operations/ats_get_user.rb +0 -88
- data/lib/stackone/models/operations/ats_list_application_scorecards.rb +0 -88
- data/lib/stackone/models/operations/ats_list_applications.rb +0 -85
- data/lib/stackone/models/operations/ats_list_applications_offers.rb +0 -88
- data/lib/stackone/models/operations/ats_list_candidate_notes.rb +0 -88
- data/lib/stackone/models/operations/ats_list_candidates.rb +0 -85
- data/lib/stackone/models/operations/ats_list_departments.rb +0 -85
- data/lib/stackone/models/operations/ats_list_interview_stages.rb +0 -85
- data/lib/stackone/models/operations/ats_list_interviews.rb +0 -85
- data/lib/stackone/models/operations/ats_list_job_postings.rb +0 -88
- data/lib/stackone/models/operations/ats_list_jobs.rb +0 -85
- data/lib/stackone/models/operations/ats_list_locations.rb +0 -85
- data/lib/stackone/models/operations/ats_list_offers.rb +0 -85
- data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +0 -85
- data/lib/stackone/models/operations/ats_list_users.rb +0 -85
- 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 -88
- data/lib/stackone/models/operations/crm_get_contact.rb +0 -88
- data/lib/stackone/models/operations/crm_get_list.rb +0 -88
- data/lib/stackone/models/operations/crm_list_accounts.rb +0 -85
- data/lib/stackone/models/operations/crm_list_contacts.rb +0 -85
- data/lib/stackone/models/operations/crm_list_lists.rb +0 -85
- 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 -88
- data/lib/stackone/models/operations/marketing_get_email_template.rb +0 -88
- data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +0 -88
- data/lib/stackone/models/operations/marketing_get_push_template.rb +0 -88
- data/lib/stackone/models/operations/marketing_list_campaigns.rb +0 -85
- data/lib/stackone/models/operations/marketing_list_email_templates.rb +0 -85
- data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +0 -85
- data/lib/stackone/models/operations/marketing_list_push_templates.rb +0 -85
- 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 -158
- data/lib/stackone/models/shared/applicationattachment.rb +0 -63
- data/lib/stackone/models/shared/applicationresult.rb +0 -29
- data/lib/stackone/models/shared/applicationspaginated.rb +0 -34
- data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +0 -102
- 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 -72
- 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 -105
- 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/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/interview.rb +0 -117
- 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 -96
- data/lib/stackone/models/shared/jobhiringteam.rb +0 -37
- data/lib/stackone/models/shared/jobposting.rb +0 -189
- data/lib/stackone/models/shared/jobpostingcompensation.rb +0 -149
- data/lib/stackone/models/shared/jobpostinglocation.rb +0 -28
- data/lib/stackone/models/shared/jobpostingquestionnaire.rb +0 -34
- 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/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/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 -81
- 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/pushmessages.rb +0 -81
- data/lib/stackone/models/shared/question.rb +0 -73
- data/lib/stackone/models/shared/questionmultiplechoiceanswers.rb +0 -28
- data/lib/stackone/models/shared/questionnaire.rb +0 -28
- data/lib/stackone/models/shared/rejectedreason.rb +0 -60
- data/lib/stackone/models/shared/rejectedreasonresult.rb +0 -29
- data/lib/stackone/models/shared/rejectedreasonspaginated.rb +0 -34
- 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,85 +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/contactspaginated'
|
|
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 CrmListContactsQueryParamProxy < ::StackOne::Utils::FieldAugmented
|
|
14
|
-
extend T::Sig
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def initialize; end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class CrmListContactsRequest < ::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::CrmListContactsQueryParamProxy), { '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::CrmListContactsQueryParamProxy), 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 CrmListContactsResponse < ::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 contacts was retrieved.
|
|
73
|
-
field :contacts_paginated, T.nilable(Shared::ContactsPaginated)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, contacts_paginated: T.nilable(Shared::ContactsPaginated)).void }
|
|
77
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, contacts_paginated: nil)
|
|
78
|
-
@content_type = content_type
|
|
79
|
-
@raw_response = raw_response
|
|
80
|
-
@status_code = status_code
|
|
81
|
-
@contacts_paginated = contacts_paginated
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
end
|
|
@@ -1,85 +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/listspaginated'
|
|
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 CrmListListsQueryParamProxy < ::StackOne::Utils::FieldAugmented
|
|
14
|
-
extend T::Sig
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def initialize; end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class CrmListListsRequest < ::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::CrmListListsQueryParamProxy), { '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::CrmListListsQueryParamProxy), 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 CrmListListsResponse < ::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 collection of lists was retrieved.
|
|
73
|
-
field :lists_paginated, T.nilable(Shared::ListsPaginated)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, lists_paginated: T.nilable(Shared::ListsPaginated)).void }
|
|
77
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, lists_paginated: nil)
|
|
78
|
-
@content_type = content_type
|
|
79
|
-
@raw_response = raw_response
|
|
80
|
-
@status_code = status_code
|
|
81
|
-
@lists_paginated = lists_paginated
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
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/crmcreatecontactrequestdto'
|
|
9
|
-
require_relative '../shared/contactresult'
|
|
10
|
-
|
|
11
|
-
module StackOne
|
|
12
|
-
module Operations
|
|
13
|
-
|
|
14
|
-
class CrmUpdateContactRequest < ::StackOne::Utils::FieldAugmented
|
|
15
|
-
extend T::Sig
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
field :crm_create_contact_request_dto, Shared::CrmCreateContactRequestDto, { 'request': { 'media_type': 'application/json' } }
|
|
19
|
-
|
|
20
|
-
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
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(crm_create_contact_request_dto: Shared::CrmCreateContactRequestDto, id: String, x_account_id: String).void }
|
|
26
|
-
def initialize(crm_create_contact_request_dto: nil, id: nil, x_account_id: nil)
|
|
27
|
-
@crm_create_contact_request_dto = crm_create_contact_request_dto
|
|
28
|
-
@id = id
|
|
29
|
-
@x_account_id = x_account_id
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class CrmUpdateContactResponse < ::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
|
-
# The contact was successfully updated.
|
|
44
|
-
field :contact_result, T.nilable(Shared::ContactResult)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, contact_result: T.nilable(Shared::ContactResult)).void }
|
|
48
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, contact_result: nil)
|
|
49
|
-
@content_type = content_type
|
|
50
|
-
@raw_response = raw_response
|
|
51
|
-
@status_code = status_code
|
|
52
|
-
@contact_result = contact_result
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
@@ -1,53 +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 MarketingCreateEmailTemplateRequest < ::StackOne::Utils::FieldAugmented
|
|
15
|
-
extend T::Sig
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
field :marketing_create_email_template_request_dto, Shared::MarketingCreateEmailTemplateRequestDto, { 'request': { 'media_type': 'application/json' } }
|
|
19
|
-
# The account identifier
|
|
20
|
-
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
sig { params(marketing_create_email_template_request_dto: Shared::MarketingCreateEmailTemplateRequestDto, x_account_id: String).void }
|
|
24
|
-
def initialize(marketing_create_email_template_request_dto: nil, x_account_id: nil)
|
|
25
|
-
@marketing_create_email_template_request_dto = marketing_create_email_template_request_dto
|
|
26
|
-
@x_account_id = x_account_id
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class MarketingCreateEmailTemplateResponse < ::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
|
-
# Record created successfully.
|
|
41
|
-
field :create_template_result, T.nilable(Shared::CreateTemplateResult)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, create_template_result: T.nilable(Shared::CreateTemplateResult)).void }
|
|
45
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_template_result: nil)
|
|
46
|
-
@content_type = content_type
|
|
47
|
-
@raw_response = raw_response
|
|
48
|
-
@status_code = status_code
|
|
49
|
-
@create_template_result = create_template_result
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
@@ -1,53 +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 MarketingCreateOmniChannelTemplateRequest < ::StackOne::Utils::FieldAugmented
|
|
15
|
-
extend T::Sig
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
field :marketing_create_template_request_dto, Shared::MarketingCreateTemplateRequestDto, { 'request': { 'media_type': 'application/json' } }
|
|
19
|
-
# The account identifier
|
|
20
|
-
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
sig { params(marketing_create_template_request_dto: Shared::MarketingCreateTemplateRequestDto, x_account_id: String).void }
|
|
24
|
-
def initialize(marketing_create_template_request_dto: nil, x_account_id: nil)
|
|
25
|
-
@marketing_create_template_request_dto = marketing_create_template_request_dto
|
|
26
|
-
@x_account_id = x_account_id
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class MarketingCreateOmniChannelTemplateResponse < ::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
|
-
# Record created successfully.
|
|
41
|
-
field :create_template_result, T.nilable(Shared::CreateTemplateResult)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, create_template_result: T.nilable(Shared::CreateTemplateResult)).void }
|
|
45
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_template_result: nil)
|
|
46
|
-
@content_type = content_type
|
|
47
|
-
@raw_response = raw_response
|
|
48
|
-
@status_code = status_code
|
|
49
|
-
@create_template_result = create_template_result
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
@@ -1,53 +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 MarketingCreatePushTemplateRequest < ::StackOne::Utils::FieldAugmented
|
|
15
|
-
extend T::Sig
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
field :marketing_create_push_template_request_dto, Shared::MarketingCreatePushTemplateRequestDto, { 'request': { 'media_type': 'application/json' } }
|
|
19
|
-
# The account identifier
|
|
20
|
-
field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
sig { params(marketing_create_push_template_request_dto: Shared::MarketingCreatePushTemplateRequestDto, x_account_id: String).void }
|
|
24
|
-
def initialize(marketing_create_push_template_request_dto: nil, x_account_id: nil)
|
|
25
|
-
@marketing_create_push_template_request_dto = marketing_create_push_template_request_dto
|
|
26
|
-
@x_account_id = x_account_id
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class MarketingCreatePushTemplateResponse < ::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
|
-
# Record created successfully.
|
|
41
|
-
field :create_template_result, T.nilable(Shared::CreateTemplateResult)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, create_template_result: T.nilable(Shared::CreateTemplateResult)).void }
|
|
45
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_template_result: nil)
|
|
46
|
-
@content_type = content_type
|
|
47
|
-
@raw_response = raw_response
|
|
48
|
-
@status_code = status_code
|
|
49
|
-
@create_template_result = create_template_result
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
@@ -1,88 +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/campaignresult'
|
|
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 MarketingGetCampaignQueryParamProxy < ::StackOne::Utils::FieldAugmented
|
|
14
|
-
extend T::Sig
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def initialize; end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class MarketingGetCampaignRequest < ::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::MarketingGetCampaignQueryParamProxy), { '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::MarketingGetCampaignQueryParamProxy), 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 MarketingGetCampaignResponse < ::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 campaign with the given identifier was retrieved.
|
|
76
|
-
field :campaign_result, T.nilable(Shared::CampaignResult)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, campaign_result: T.nilable(Shared::CampaignResult)).void }
|
|
80
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, campaign_result: nil)
|
|
81
|
-
@content_type = content_type
|
|
82
|
-
@raw_response = raw_response
|
|
83
|
-
@status_code = status_code
|
|
84
|
-
@campaign_result = campaign_result
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
end
|
|
@@ -1,88 +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/templateresult'
|
|
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 MarketingGetEmailTemplateQueryParamProxy < ::StackOne::Utils::FieldAugmented
|
|
14
|
-
extend T::Sig
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def initialize; end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class MarketingGetEmailTemplateRequest < ::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::MarketingGetEmailTemplateQueryParamProxy), { '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::MarketingGetEmailTemplateQueryParamProxy), 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 MarketingGetEmailTemplateResponse < ::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 email template with the given identifier was retrieved.
|
|
76
|
-
field :template_result, T.nilable(Shared::TemplateResult)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, template_result: T.nilable(Shared::TemplateResult)).void }
|
|
80
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, template_result: nil)
|
|
81
|
-
@content_type = content_type
|
|
82
|
-
@raw_response = raw_response
|
|
83
|
-
@status_code = status_code
|
|
84
|
-
@template_result = template_result
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
end
|
|
@@ -1,88 +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/templateresult'
|
|
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 MarketingGetOmniChannelTemplateQueryParamProxy < ::StackOne::Utils::FieldAugmented
|
|
14
|
-
extend T::Sig
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def initialize; end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class MarketingGetOmniChannelTemplateRequest < ::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::MarketingGetOmniChannelTemplateQueryParamProxy), { '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::MarketingGetOmniChannelTemplateQueryParamProxy), 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 MarketingGetOmniChannelTemplateResponse < ::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 omni-channel template with the given identifier was retrieved.
|
|
76
|
-
field :template_result, T.nilable(Shared::TemplateResult)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, template_result: T.nilable(Shared::TemplateResult)).void }
|
|
80
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, template_result: nil)
|
|
81
|
-
@content_type = content_type
|
|
82
|
-
@raw_response = raw_response
|
|
83
|
-
@status_code = status_code
|
|
84
|
-
@template_result = template_result
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
end
|