stackone_client 0.3.0 → 0.3.2
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/stack_one/hris.rb +142 -0
- data/lib/stack_one/lms.rb +21 -62
- data/lib/stack_one/marketing.rb +18 -18
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_request.rb +2 -7
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb +2 -7
- data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_request.rb +2 -7
- data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb +2 -7
- data/lib/stack_one/models/operations/ats_list_candidate_custom_field_definitions_request.rb +2 -7
- data/lib/stack_one/models/operations/ats_list_job_custom_field_definitions_request.rb +2 -7
- data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_request.rb +2 -7
- data/lib/stack_one/models/operations/crm_list_contact_custom_field_definitions_request.rb +2 -7
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_request.rb +55 -0
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_time_off_type_request.rb +36 -0
- data/lib/stack_one/models/operations/{lms_delete_content_response.rb → hris_get_time_off_type_response.rb} +6 -6
- data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_request.rb +52 -0
- data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employees_queryparam_filter.rb +5 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_time_off_types_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_time_off_types_request.rb +52 -0
- data/lib/stack_one/models/operations/hris_list_time_off_types_response.rb +33 -0
- data/lib/stack_one/models/operations/lms_create_collection_request.rb +27 -0
- data/lib/stack_one/models/operations/{lms_create_content_response.rb → lms_create_collection_response.rb} +2 -2
- data/lib/stack_one/models/operations/lms_update_collection_request.rb +30 -0
- data/lib/stack_one/models/operations/{lms_update_content_response.rb → lms_update_collection_response.rb} +2 -2
- data/lib/stack_one/models/operations/lms_upsert_content_response.rb +4 -4
- data/lib/stack_one/models/operations/lms_upsert_course_response.rb +4 -4
- data/lib/stack_one/models/operations/marketing_get_content_block_response.rb +4 -4
- data/lib/stack_one/models/operations/marketing_get_email_template_response.rb +4 -4
- data/lib/stack_one/models/operations/marketing_get_in_app_template_response.rb +4 -4
- data/lib/stack_one/models/operations/marketing_get_push_template_response.rb +4 -4
- data/lib/stack_one/models/operations/marketing_get_sms_template_response.rb +4 -4
- data/lib/stack_one/models/operations/marketing_list_email_templates_response.rb +4 -4
- data/lib/stack_one/models/operations/marketing_list_in_app_templates_response.rb +4 -4
- data/lib/stack_one/models/operations/marketing_list_push_templates_response.rb +4 -4
- data/lib/stack_one/models/operations/marketing_list_sms_templates_response.rb +4 -4
- data/lib/stack_one/models/operations.rb +15 -6
- data/lib/stack_one/models/shared/assessmentspackages_value.rb +3 -0
- data/lib/stack_one/models/shared/assignment.rb +4 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto_candidate.rb +2 -2
- data/lib/stack_one/models/shared/atscreatecandidaterequestdto.rb +2 -2
- data/lib/stack_one/models/shared/atscreatejobrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/atsupdatecandidaterequestdto.rb +2 -2
- data/lib/stack_one/models/shared/atsupdatejobrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/candidate.rb +2 -2
- data/lib/stack_one/models/shared/completion.rb +14 -0
- data/lib/stack_one/models/shared/contact.rb +2 -2
- data/lib/stack_one/models/shared/contentblockresult.rb +27 -0
- data/lib/stack_one/models/shared/course.rb +6 -9
- data/lib/stack_one/models/shared/createmessage_value.rb +16 -8
- data/lib/stack_one/models/shared/createresultdataapimodel.rb +2 -5
- data/lib/stack_one/models/shared/crmcreatecontactrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/{jobcustomfields.rb → customfields.rb} +1 -1
- data/lib/stack_one/models/shared/emailmessages_message_type.rb +1 -1
- data/lib/stack_one/models/shared/emailmessages_value.rb +16 -8
- data/lib/stack_one/models/shared/emailtemplate.rb +36 -0
- data/lib/stack_one/models/shared/emailtemplateresult.rb +27 -0
- data/lib/stack_one/models/shared/emailtemplatespaginated.rb +33 -0
- data/lib/stack_one/models/shared/employee.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_type.rb +4 -4
- data/lib/stack_one/models/shared/inappmessages_message_type.rb +1 -1
- data/lib/stack_one/models/shared/inappmessages_value.rb +16 -8
- data/lib/stack_one/models/shared/inapptemplate.rb +36 -0
- data/lib/stack_one/models/shared/inapptemplateresult.rb +27 -0
- data/lib/stack_one/models/shared/inapptemplatespaginated.rb +33 -0
- data/lib/stack_one/models/shared/job.rb +2 -2
- data/lib/stack_one/models/shared/jobpostingcontentsection_value.rb +3 -0
- data/lib/stack_one/models/shared/{contentlanguageenum.rb → languageenum.rb} +3 -3
- data/lib/stack_one/models/shared/{contentlanguageenum_value.rb → languageenum_value.rb} +2 -2
- data/lib/stack_one/models/shared/lmscreatecollectionrequestdto.rb +51 -0
- data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +14 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +4 -7
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_content_type.rb +2 -2
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_value.rb +3 -2
- data/lib/stack_one/models/shared/lmsupsertcourserequestdto.rb +5 -14
- data/lib/stack_one/models/shared/message_message_type.rb +1 -1
- data/lib/stack_one/models/shared/message_type.rb +1 -1
- data/lib/stack_one/models/shared/message_value.rb +16 -8
- data/lib/stack_one/models/shared/pushmessages_message_type.rb +1 -1
- data/lib/stack_one/models/shared/pushmessages_value.rb +16 -8
- data/lib/stack_one/models/shared/pushtemplate.rb +36 -0
- data/lib/stack_one/models/shared/pushtemplateresult.rb +27 -0
- data/lib/stack_one/models/shared/pushtemplatespaginated.rb +33 -0
- data/lib/stack_one/models/shared/smsmessages_message_type.rb +1 -1
- data/lib/stack_one/models/shared/smsmessages_value.rb +16 -8
- data/lib/stack_one/models/shared/smstemplate.rb +36 -0
- data/lib/stack_one/models/shared/smstemplateresult.rb +27 -0
- data/lib/stack_one/models/shared/smstemplatespaginated.rb +33 -0
- data/lib/stack_one/models/shared/{deleteresult.rb → upsertresult.rb} +6 -3
- data/lib/stack_one/models/shared/upsertresultdataexternalreferencemodel.rb +30 -0
- data/lib/stack_one/models/shared/workeligibility_type.rb +4 -4
- data/lib/stack_one/models/shared.rb +23 -22
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +36 -26
- data/lib/stack_one/models/operations/lms_create_content_request.rb +0 -27
- data/lib/stack_one/models/operations/lms_delete_content_request.rb +0 -27
- data/lib/stack_one/models/operations/lms_update_content_request.rb +0 -30
- data/lib/stack_one/models/shared/candidatecustomfields.rb +0 -39
- data/lib/stack_one/models/shared/contactscustomfields.rb +0 -39
- data/lib/stack_one/models/shared/content_launch_method.rb +0 -27
- data/lib/stack_one/models/shared/course_type.rb +0 -27
- data/lib/stack_one/models/shared/course_value.rb +0 -19
- data/lib/stack_one/models/shared/employeecustomfields.rb +0 -39
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +0 -66
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_content_type.rb +0 -27
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_schemas_value.rb +0 -19
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_value.rb +0 -18
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_content_launch_method.rb +0 -27
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_schemas_value.rb +0 -19
- data/lib/stack_one/models/shared/lmsupsertcourserequestdto_course_type.rb +0 -27
- data/lib/stack_one/models/shared/lmsupsertcourserequestdto_value.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3323ce63ef9949e4278a94d7670c582dc51daf4080066203ce8d67c1d9f140f9
|
4
|
+
data.tar.gz: 8edced1fa7ae1568ef37336d16ba097c9d23021b3fb32a940176fd41708114f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a69af05cdd6c93584387dd8c53162c00e5063a6a641707d1fa8bb5722ba8915f81b85a1a32d458c792616055d24d2a704c6355b2511ef0f227fd5160ecf5cd2
|
7
|
+
data.tar.gz: 2745e85399531db25f8135508e0a76d6a03a4493a524b5816e39316aa74373030af696bcad8d7d96cd41f3f04b6ce496112b1eab7e48c91ff7c003300f532480
|
data/lib/stack_one/hris.rb
CHANGED
@@ -552,6 +552,44 @@ module StackOne
|
|
552
552
|
end
|
553
553
|
|
554
554
|
|
555
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest)).returns(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionResponse) }
|
556
|
+
def get_employee_custom_field_definition(request)
|
557
|
+
# get_employee_custom_field_definition - Get employee Custom Field Definition
|
558
|
+
url, params = @sdk_configuration.get_server_details
|
559
|
+
base_url = Utils.template_url(url, params)
|
560
|
+
url = Utils.generate_url(
|
561
|
+
::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest,
|
562
|
+
base_url,
|
563
|
+
'/unified/hris/custom_field_definitions/employees/{id}',
|
564
|
+
request
|
565
|
+
)
|
566
|
+
headers = Utils.get_headers(request)
|
567
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest, request)
|
568
|
+
headers['Accept'] = 'application/json'
|
569
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
570
|
+
|
571
|
+
r = @sdk_configuration.client.get(url) do |req|
|
572
|
+
req.headers = headers
|
573
|
+
req.params = query_params
|
574
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
575
|
+
end
|
576
|
+
|
577
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
578
|
+
|
579
|
+
res = ::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionResponse.new(
|
580
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
581
|
+
)
|
582
|
+
if r.status == 200
|
583
|
+
if Utils.match_content_type(content_type, 'application/json')
|
584
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionResultApiModel)
|
585
|
+
res.custom_field_definition_result_api_model = out
|
586
|
+
end
|
587
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
588
|
+
end
|
589
|
+
res
|
590
|
+
end
|
591
|
+
|
592
|
+
|
555
593
|
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest)).returns(::StackOne::Operations::HrisGetEmployeeDocumentResponse) }
|
556
594
|
def get_employee_document(request)
|
557
595
|
# get_employee_document - Get Employee Document
|
@@ -932,6 +970,44 @@ module StackOne
|
|
932
970
|
end
|
933
971
|
|
934
972
|
|
973
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffTypeRequest)).returns(::StackOne::Operations::HrisGetTimeOffTypeResponse) }
|
974
|
+
def get_time_off_type(request)
|
975
|
+
# get_time_off_type - Get time off type
|
976
|
+
url, params = @sdk_configuration.get_server_details
|
977
|
+
base_url = Utils.template_url(url, params)
|
978
|
+
url = Utils.generate_url(
|
979
|
+
::StackOne::Operations::HrisGetTimeOffTypeRequest,
|
980
|
+
base_url,
|
981
|
+
'/unified/hris/time_off_types/{id}',
|
982
|
+
request
|
983
|
+
)
|
984
|
+
headers = Utils.get_headers(request)
|
985
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeOffTypeRequest, request)
|
986
|
+
headers['Accept'] = 'application/json'
|
987
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
988
|
+
|
989
|
+
r = @sdk_configuration.client.get(url) do |req|
|
990
|
+
req.headers = headers
|
991
|
+
req.params = query_params
|
992
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
993
|
+
end
|
994
|
+
|
995
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
996
|
+
|
997
|
+
res = ::StackOne::Operations::HrisGetTimeOffTypeResponse.new(
|
998
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
999
|
+
)
|
1000
|
+
if r.status == 200
|
1001
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1002
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ReferenceResult)
|
1003
|
+
res.reference_result = out
|
1004
|
+
end
|
1005
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1006
|
+
end
|
1007
|
+
res
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
|
935
1011
|
sig { params(request: T.nilable(::StackOne::Operations::HrisListBenefitsRequest)).returns(::StackOne::Operations::HrisListBenefitsResponse) }
|
936
1012
|
def list_benefits(request)
|
937
1013
|
# list_benefits - List benefits
|
@@ -1097,6 +1173,39 @@ module StackOne
|
|
1097
1173
|
end
|
1098
1174
|
|
1099
1175
|
|
1176
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsRequest)).returns(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsResponse) }
|
1177
|
+
def list_employee_custom_field_definitions(request)
|
1178
|
+
# list_employee_custom_field_definitions - List employee Custom Field Definitions
|
1179
|
+
url, params = @sdk_configuration.get_server_details
|
1180
|
+
base_url = Utils.template_url(url, params)
|
1181
|
+
url = "#{base_url}/unified/hris/custom_field_definitions/employees"
|
1182
|
+
headers = Utils.get_headers(request)
|
1183
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsRequest, request)
|
1184
|
+
headers['Accept'] = 'application/json'
|
1185
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1186
|
+
|
1187
|
+
r = @sdk_configuration.client.get(url) do |req|
|
1188
|
+
req.headers = headers
|
1189
|
+
req.params = query_params
|
1190
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1194
|
+
|
1195
|
+
res = ::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsResponse.new(
|
1196
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1197
|
+
)
|
1198
|
+
if r.status == 200
|
1199
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1200
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CustomFieldDefinitionsPaginated)
|
1201
|
+
res.custom_field_definitions_paginated = out
|
1202
|
+
end
|
1203
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1204
|
+
end
|
1205
|
+
res
|
1206
|
+
end
|
1207
|
+
|
1208
|
+
|
1100
1209
|
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest)).returns(::StackOne::Operations::HrisListEmployeeDocumentsResponse) }
|
1101
1210
|
def list_employee_documents(request)
|
1102
1211
|
# list_employee_documents - List Employee Documents
|
@@ -1447,6 +1556,39 @@ module StackOne
|
|
1447
1556
|
end
|
1448
1557
|
|
1449
1558
|
|
1559
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffTypesRequest)).returns(::StackOne::Operations::HrisListTimeOffTypesResponse) }
|
1560
|
+
def list_time_off_types(request)
|
1561
|
+
# list_time_off_types - List time off types
|
1562
|
+
url, params = @sdk_configuration.get_server_details
|
1563
|
+
base_url = Utils.template_url(url, params)
|
1564
|
+
url = "#{base_url}/unified/hris/time_off_types"
|
1565
|
+
headers = Utils.get_headers(request)
|
1566
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeOffTypesRequest, request)
|
1567
|
+
headers['Accept'] = 'application/json'
|
1568
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1569
|
+
|
1570
|
+
r = @sdk_configuration.client.get(url) do |req|
|
1571
|
+
req.headers = headers
|
1572
|
+
req.params = query_params
|
1573
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1577
|
+
|
1578
|
+
res = ::StackOne::Operations::HrisListTimeOffTypesResponse.new(
|
1579
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1580
|
+
)
|
1581
|
+
if r.status == 200
|
1582
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1583
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ReferencePaginated)
|
1584
|
+
res.reference_paginated = out
|
1585
|
+
end
|
1586
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1587
|
+
end
|
1588
|
+
res
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
|
1450
1592
|
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeResponse) }
|
1451
1593
|
def update_employee(hris_create_employee_request_dto, id, x_account_id)
|
1452
1594
|
# update_employee - Updates an employee
|
data/lib/stack_one/lms.rb
CHANGED
@@ -111,19 +111,19 @@ module StackOne
|
|
111
111
|
end
|
112
112
|
|
113
113
|
|
114
|
-
sig { params(
|
115
|
-
def
|
116
|
-
#
|
117
|
-
request = ::StackOne::Operations::
|
114
|
+
sig { params(lms_create_collection_request_dto: ::StackOne::Shared::LmsCreateCollectionRequestDto, x_account_id: ::String).returns(::StackOne::Operations::LmsCreateCollectionResponse) }
|
115
|
+
def create_collection(lms_create_collection_request_dto, x_account_id)
|
116
|
+
# create_collection - Create Collection
|
117
|
+
request = ::StackOne::Operations::LmsCreateCollectionRequest.new(
|
118
118
|
|
119
|
-
|
119
|
+
lms_create_collection_request_dto: lms_create_collection_request_dto,
|
120
120
|
x_account_id: x_account_id
|
121
121
|
)
|
122
122
|
url, params = @sdk_configuration.get_server_details
|
123
123
|
base_url = Utils.template_url(url, params)
|
124
|
-
url = "#{base_url}/unified/lms/
|
124
|
+
url = "#{base_url}/unified/lms/collections"
|
125
125
|
headers = Utils.get_headers(request)
|
126
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :
|
126
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :lms_create_collection_request_dto, :json)
|
127
127
|
headers['content-type'] = req_content_type
|
128
128
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
129
129
|
headers['Accept'] = 'application/json'
|
@@ -143,7 +143,7 @@ module StackOne
|
|
143
143
|
|
144
144
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
145
145
|
|
146
|
-
res = ::StackOne::Operations::
|
146
|
+
res = ::StackOne::Operations::LmsCreateCollectionResponse.new(
|
147
147
|
status_code: r.status, content_type: content_type, raw_response: r
|
148
148
|
)
|
149
149
|
if r.status == 201
|
@@ -209,47 +209,6 @@ module StackOne
|
|
209
209
|
end
|
210
210
|
|
211
211
|
|
212
|
-
sig { params(id: ::String, x_account_id: ::String).returns(::StackOne::Operations::LmsDeleteContentResponse) }
|
213
|
-
def delete_content(id, x_account_id)
|
214
|
-
# delete_content - Delete Content
|
215
|
-
request = ::StackOne::Operations::LmsDeleteContentRequest.new(
|
216
|
-
|
217
|
-
id: id,
|
218
|
-
x_account_id: x_account_id
|
219
|
-
)
|
220
|
-
url, params = @sdk_configuration.get_server_details
|
221
|
-
base_url = Utils.template_url(url, params)
|
222
|
-
url = Utils.generate_url(
|
223
|
-
::StackOne::Operations::LmsDeleteContentRequest,
|
224
|
-
base_url,
|
225
|
-
'/unified/lms/content/{id}',
|
226
|
-
request
|
227
|
-
)
|
228
|
-
headers = Utils.get_headers(request)
|
229
|
-
headers['Accept'] = 'application/json'
|
230
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
231
|
-
|
232
|
-
r = @sdk_configuration.client.delete(url) do |req|
|
233
|
-
req.headers = headers
|
234
|
-
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
235
|
-
end
|
236
|
-
|
237
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
238
|
-
|
239
|
-
res = ::StackOne::Operations::LmsDeleteContentResponse.new(
|
240
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
241
|
-
)
|
242
|
-
if r.status == 200
|
243
|
-
if Utils.match_content_type(content_type, 'application/json')
|
244
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DeleteResult)
|
245
|
-
res.delete_result = out
|
246
|
-
end
|
247
|
-
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
248
|
-
end
|
249
|
-
res
|
250
|
-
end
|
251
|
-
|
252
|
-
|
253
212
|
sig { params(request: T.nilable(::StackOne::Operations::LmsGetAssignmentRequest)).returns(::StackOne::Operations::LmsGetAssignmentResponse) }
|
254
213
|
def get_assignment(request)
|
255
214
|
# get_assignment - Get Assignment
|
@@ -899,25 +858,25 @@ module StackOne
|
|
899
858
|
end
|
900
859
|
|
901
860
|
|
902
|
-
sig { params(
|
903
|
-
def
|
904
|
-
#
|
905
|
-
request = ::StackOne::Operations::
|
861
|
+
sig { params(lms_create_collection_request_dto: ::StackOne::Shared::LmsCreateCollectionRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::LmsUpdateCollectionResponse) }
|
862
|
+
def update_collection(lms_create_collection_request_dto, id, x_account_id)
|
863
|
+
# update_collection - Update Collection
|
864
|
+
request = ::StackOne::Operations::LmsUpdateCollectionRequest.new(
|
906
865
|
|
907
|
-
|
866
|
+
lms_create_collection_request_dto: lms_create_collection_request_dto,
|
908
867
|
id: id,
|
909
868
|
x_account_id: x_account_id
|
910
869
|
)
|
911
870
|
url, params = @sdk_configuration.get_server_details
|
912
871
|
base_url = Utils.template_url(url, params)
|
913
872
|
url = Utils.generate_url(
|
914
|
-
::StackOne::Operations::
|
873
|
+
::StackOne::Operations::LmsUpdateCollectionRequest,
|
915
874
|
base_url,
|
916
|
-
'/unified/lms/
|
875
|
+
'/unified/lms/collections/{id}',
|
917
876
|
request
|
918
877
|
)
|
919
878
|
headers = Utils.get_headers(request)
|
920
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :
|
879
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :lms_create_collection_request_dto, :json)
|
921
880
|
headers['content-type'] = req_content_type
|
922
881
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
923
882
|
headers['Accept'] = 'application/json'
|
@@ -937,7 +896,7 @@ module StackOne
|
|
937
896
|
|
938
897
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
939
898
|
|
940
|
-
res = ::StackOne::Operations::
|
899
|
+
res = ::StackOne::Operations::LmsUpdateCollectionResponse.new(
|
941
900
|
status_code: r.status, content_type: content_type, raw_response: r
|
942
901
|
)
|
943
902
|
if r.status == 201
|
@@ -988,8 +947,8 @@ module StackOne
|
|
988
947
|
)
|
989
948
|
if r.status == 201
|
990
949
|
if Utils.match_content_type(content_type, 'application/json')
|
991
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
992
|
-
res.
|
950
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpsertResult)
|
951
|
+
res.upsert_result = out
|
993
952
|
end
|
994
953
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
995
954
|
end
|
@@ -1034,8 +993,8 @@ module StackOne
|
|
1034
993
|
)
|
1035
994
|
if r.status == 201
|
1036
995
|
if Utils.match_content_type(content_type, 'application/json')
|
1037
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
1038
|
-
res.
|
996
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::UpsertResult)
|
997
|
+
res.upsert_result = out
|
1039
998
|
end
|
1040
999
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
1041
1000
|
end
|
data/lib/stack_one/marketing.rb
CHANGED
@@ -364,8 +364,8 @@ module StackOne
|
|
364
364
|
)
|
365
365
|
if r.status == 200
|
366
366
|
if Utils.match_content_type(content_type, 'application/json')
|
367
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
368
|
-
res.
|
367
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContentBlockResult)
|
368
|
+
res.content_block_result = out
|
369
369
|
end
|
370
370
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
371
371
|
end
|
@@ -402,8 +402,8 @@ module StackOne
|
|
402
402
|
)
|
403
403
|
if r.status == 200
|
404
404
|
if Utils.match_content_type(content_type, 'application/json')
|
405
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
406
|
-
res.
|
405
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmailTemplateResult)
|
406
|
+
res.email_template_result = out
|
407
407
|
end
|
408
408
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
409
409
|
end
|
@@ -440,8 +440,8 @@ module StackOne
|
|
440
440
|
)
|
441
441
|
if r.status == 200
|
442
442
|
if Utils.match_content_type(content_type, 'application/json')
|
443
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
444
|
-
res.
|
443
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InAppTemplateResult)
|
444
|
+
res.in_app_template_result = out
|
445
445
|
end
|
446
446
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
447
447
|
end
|
@@ -518,8 +518,8 @@ module StackOne
|
|
518
518
|
)
|
519
519
|
if r.status == 200
|
520
520
|
if Utils.match_content_type(content_type, 'application/json')
|
521
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
522
|
-
res.
|
521
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::PushTemplateResult)
|
522
|
+
res.push_template_result = out
|
523
523
|
end
|
524
524
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
525
525
|
end
|
@@ -556,8 +556,8 @@ module StackOne
|
|
556
556
|
)
|
557
557
|
if r.status == 200
|
558
558
|
if Utils.match_content_type(content_type, 'application/json')
|
559
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
560
|
-
res.
|
559
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::SmsTemplateResult)
|
560
|
+
res.sms_template_result = out
|
561
561
|
end
|
562
562
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
563
563
|
end
|
@@ -655,8 +655,8 @@ module StackOne
|
|
655
655
|
)
|
656
656
|
if r.status == 200
|
657
657
|
if Utils.match_content_type(content_type, 'application/json')
|
658
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
659
|
-
res.
|
658
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmailTemplatesPaginated)
|
659
|
+
res.email_templates_paginated = out
|
660
660
|
end
|
661
661
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
662
662
|
end
|
@@ -688,8 +688,8 @@ module StackOne
|
|
688
688
|
)
|
689
689
|
if r.status == 200
|
690
690
|
if Utils.match_content_type(content_type, 'application/json')
|
691
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
692
|
-
res.
|
691
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::InAppTemplatesPaginated)
|
692
|
+
res.in_app_templates_paginated = out
|
693
693
|
end
|
694
694
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
695
695
|
end
|
@@ -756,8 +756,8 @@ module StackOne
|
|
756
756
|
)
|
757
757
|
if r.status == 200
|
758
758
|
if Utils.match_content_type(content_type, 'application/json')
|
759
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
760
|
-
res.
|
759
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::PushTemplatesPaginated)
|
760
|
+
res.push_templates_paginated = out
|
761
761
|
end
|
762
762
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
763
763
|
end
|
@@ -789,8 +789,8 @@ module StackOne
|
|
789
789
|
)
|
790
790
|
if r.status == 200
|
791
791
|
if Utils.match_content_type(content_type, 'application/json')
|
792
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::
|
793
|
-
res.
|
792
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::SmsTemplatesPaginated)
|
793
|
+
res.sms_templates_paginated = out
|
794
794
|
end
|
795
795
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
796
796
|
end
|
@@ -31,18 +31,14 @@ module StackOne
|
|
31
31
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
34
|
-
# The sync token to select the only updated results
|
35
|
-
#
|
36
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
37
|
-
field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
38
34
|
# Use a string with a date to only select results updated after that given date
|
39
35
|
#
|
40
36
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
41
37
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
42
38
|
|
43
39
|
|
44
|
-
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::Filter), 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),
|
45
|
-
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
40
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::Filter), 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), updated_after: T.nilable(::String)).void }
|
41
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
46
42
|
@id = id
|
47
43
|
@x_account_id = x_account_id
|
48
44
|
@fields_ = fields_
|
@@ -52,7 +48,6 @@ module StackOne
|
|
52
48
|
@page_size = page_size
|
53
49
|
@proxy = proxy
|
54
50
|
@raw = raw
|
55
|
-
@sync_token = sync_token
|
56
51
|
@updated_after = updated_after
|
57
52
|
end
|
58
53
|
end
|
@@ -31,18 +31,14 @@ module StackOne
|
|
31
31
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
34
|
-
# The sync token to select the only updated results
|
35
|
-
#
|
36
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
37
|
-
field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
38
34
|
# Use a string with a date to only select results updated after that given date
|
39
35
|
#
|
40
36
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
41
37
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
42
38
|
|
43
39
|
|
44
|
-
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::QueryParamFilter), 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),
|
45
|
-
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
40
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::QueryParamFilter), 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), updated_after: T.nilable(::String)).void }
|
41
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
46
42
|
@id = id
|
47
43
|
@x_account_id = x_account_id
|
48
44
|
@fields_ = fields_
|
@@ -52,7 +48,6 @@ module StackOne
|
|
52
48
|
@page_size = page_size
|
53
49
|
@proxy = proxy
|
54
50
|
@raw = raw
|
55
|
-
@sync_token = sync_token
|
56
51
|
@updated_after = updated_after
|
57
52
|
end
|
58
53
|
end
|
@@ -31,18 +31,14 @@ module StackOne
|
|
31
31
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
34
|
-
# The sync token to select the only updated results
|
35
|
-
#
|
36
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
37
|
-
field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
38
34
|
# Use a string with a date to only select results updated after that given date
|
39
35
|
#
|
40
36
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
41
37
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
42
38
|
|
43
39
|
|
44
|
-
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsGetJobCustomFieldDefinitionQueryParamFilter), 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),
|
45
|
-
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
40
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsGetJobCustomFieldDefinitionQueryParamFilter), 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), updated_after: T.nilable(::String)).void }
|
41
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
46
42
|
@id = id
|
47
43
|
@x_account_id = x_account_id
|
48
44
|
@fields_ = fields_
|
@@ -52,7 +48,6 @@ module StackOne
|
|
52
48
|
@page_size = page_size
|
53
49
|
@proxy = proxy
|
54
50
|
@raw = raw
|
55
|
-
@sync_token = sync_token
|
56
51
|
@updated_after = updated_after
|
57
52
|
end
|
58
53
|
end
|
data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb
CHANGED
@@ -29,18 +29,14 @@ module StackOne
|
|
29
29
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
30
30
|
# Indicates that the raw request result is returned
|
31
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
|
-
#
|
34
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
-
field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
36
32
|
# Use a string with a date to only select results updated after that given date
|
37
33
|
#
|
38
34
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
39
35
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
40
36
|
|
41
37
|
|
42
|
-
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListApplicationCustomFieldDefinitionsQueryParamFilter), 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),
|
43
|
-
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListApplicationCustomFieldDefinitionsQueryParamFilter), 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), updated_after: T.nilable(::String)).void }
|
39
|
+
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
44
40
|
@x_account_id = x_account_id
|
45
41
|
@fields_ = fields_
|
46
42
|
@filter = filter
|
@@ -49,7 +45,6 @@ module StackOne
|
|
49
45
|
@page_size = page_size
|
50
46
|
@proxy = proxy
|
51
47
|
@raw = raw
|
52
|
-
@sync_token = sync_token
|
53
48
|
@updated_after = updated_after
|
54
49
|
end
|
55
50
|
end
|
@@ -29,18 +29,14 @@ module StackOne
|
|
29
29
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
30
30
|
# Indicates that the raw request result is returned
|
31
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
|
-
#
|
34
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
-
field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
36
32
|
# Use a string with a date to only select results updated after that given date
|
37
33
|
#
|
38
34
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
39
35
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
40
36
|
|
41
37
|
|
42
|
-
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListCandidateCustomFieldDefinitionsQueryParamFilter), 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),
|
43
|
-
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListCandidateCustomFieldDefinitionsQueryParamFilter), 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), updated_after: T.nilable(::String)).void }
|
39
|
+
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
44
40
|
@x_account_id = x_account_id
|
45
41
|
@fields_ = fields_
|
46
42
|
@filter = filter
|
@@ -49,7 +45,6 @@ module StackOne
|
|
49
45
|
@page_size = page_size
|
50
46
|
@proxy = proxy
|
51
47
|
@raw = raw
|
52
|
-
@sync_token = sync_token
|
53
48
|
@updated_after = updated_after
|
54
49
|
end
|
55
50
|
end
|
@@ -29,18 +29,14 @@ module StackOne
|
|
29
29
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
30
30
|
# Indicates that the raw request result is returned
|
31
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
|
-
#
|
34
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
-
field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
36
32
|
# Use a string with a date to only select results updated after that given date
|
37
33
|
#
|
38
34
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
39
35
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
40
36
|
|
41
37
|
|
42
|
-
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListJobCustomFieldDefinitionsQueryParamFilter), 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),
|
43
|
-
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
38
|
+
sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::AtsListJobCustomFieldDefinitionsQueryParamFilter), 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), updated_after: T.nilable(::String)).void }
|
39
|
+
def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
44
40
|
@x_account_id = x_account_id
|
45
41
|
@fields_ = fields_
|
46
42
|
@filter = filter
|
@@ -49,7 +45,6 @@ module StackOne
|
|
49
45
|
@page_size = page_size
|
50
46
|
@proxy = proxy
|
51
47
|
@raw = raw
|
52
|
-
@sync_token = sync_token
|
53
48
|
@updated_after = updated_after
|
54
49
|
end
|
55
50
|
end
|
@@ -31,18 +31,14 @@ module StackOne
|
|
31
31
|
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
|
32
32
|
# Indicates that the raw request result is returned
|
33
33
|
field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
|
34
|
-
# The sync token to select the only updated results
|
35
|
-
#
|
36
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
37
|
-
field :sync_token, T.nilable(::String), { 'query_param': { 'field_name': 'sync_token', 'style': 'form', 'explode': true } }
|
38
34
|
# Use a string with a date to only select results updated after that given date
|
39
35
|
#
|
40
36
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
41
37
|
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
42
38
|
|
43
39
|
|
44
|
-
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::CrmGetContactCustomFieldDefinitionQueryParamFilter), 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),
|
45
|
-
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil,
|
40
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::CrmGetContactCustomFieldDefinitionQueryParamFilter), 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), updated_after: T.nilable(::String)).void }
|
41
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
|
46
42
|
@id = id
|
47
43
|
@x_account_id = x_account_id
|
48
44
|
@fields_ = fields_
|
@@ -52,7 +48,6 @@ module StackOne
|
|
52
48
|
@page_size = page_size
|
53
49
|
@proxy = proxy
|
54
50
|
@raw = raw
|
55
|
-
@sync_token = sync_token
|
56
51
|
@updated_after = updated_after
|
57
52
|
end
|
58
53
|
end
|