stackone_client 0.2.4 → 0.2.7
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/accounts.rb +2 -9
- data/lib/stack_one/ats.rb +44 -1
- data/lib/stack_one/hris.rb +93 -0
- data/lib/stack_one/models/operations/ats_download_application_document_request.rb +33 -0
- data/lib/stack_one/models/operations/ats_download_application_document_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_application_document_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_application_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_candidate_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_department_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_interview_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_job_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_location_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_offer_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_user_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_applications_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_departments_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_jobs_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_locations_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_offers_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_users_request.rb +3 -3
- data/lib/stack_one/models/operations/crm_get_account_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_get_contact_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_get_list_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_accounts_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_contacts_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_lists_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_download_employee_document_request.rb +33 -0
- data/lib/stack_one/models/operations/hris_download_employee_document_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_benefit_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_company_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employment_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_location_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_benefits_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_companies_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employees_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employments_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_upload_employee_document_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_upload_employee_document_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +8 -2
- data/lib/stack_one/models/operations.rb +6 -62
- data/lib/stack_one/models/shared/account.rb +8 -8
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +5 -10
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +5 -28
- data/lib/stack_one/models/shared/content.rb +6 -3
- data/lib/stack_one/models/shared/{fileformatenum_value.rb → content_value.rb} +1 -1
- data/lib/stack_one/models/shared/employee.rb +5 -2
- data/lib/stack_one/models/shared/employee_schemas_preferred_language_value.rb +115 -0
- data/lib/stack_one/models/shared/{fileformatenum.rb → file_format.rb} +4 -4
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +5 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_preferred_language.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_preferred_language_value.rb +115 -0
- data/lib/stack_one/models/shared/job.rb +3 -3
- data/lib/stack_one/models/shared/list.rb +8 -8
- data/lib/stack_one/models/shared/note.rb +5 -5
- data/lib/stack_one/models/shared/notecontentapimodel.rb +2 -2
- data/lib/stack_one/models/shared/preferred_language.rb +27 -0
- data/lib/stack_one/models/shared/resultlink.rb +5 -5
- data/lib/stack_one/models/shared/unifieduploadrequestdto.rb +59 -0
- data/lib/stack_one/models/shared/unifieduploadrequestdto_confidential.rb +27 -0
- data/lib/stack_one/models/shared/{atsupdateapplicationrequestdto_application_status.rb → unifieduploadrequestdto_file_format.rb} +6 -6
- data/lib/stack_one/models/shared/unifieduploadrequestdto_schemas_value.rb +1226 -0
- data/lib/stack_one/models/shared/{job_schemas_status.rb → unifieduploadrequestdto_value.rb} +6 -7
- data/lib/stack_one/models/shared/user.rb +6 -6
- data/lib/stack_one/models/shared/userresult.rb +2 -2
- data/lib/stack_one/models/shared/userspaginated.rb +5 -5
- data/lib/stack_one/models/shared.rb +14 -9
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +19 -70
- data/lib/stack_one/models/operations/ats_get_application_offer_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_application_scorecard_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_candidate_note_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_candidate_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_department_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_interview_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_interview_stage_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_job_posting_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_job_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_location_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_offer_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_rejected_reason_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_user_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_application_scorecards_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_applications_offers_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_candidate_notes_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_candidates_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_departments_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_interview_stages_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_interviews_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_jobs_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_locations_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_offers_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_users_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_get_account_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_get_contact_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_get_list_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_list_accounts_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_list_contacts_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_list_lists_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_benefit_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_company_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_employee_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_benefits_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_get_campaign_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_get_email_template_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_get_push_template_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_list_campaigns_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_list_email_templates_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_list_push_templates_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/proxy.rb +0 -20
- data/lib/stack_one/models/operations/queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_candidate.rb +0 -30
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_value.rb +0 -32
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aabe8abf79f3151c8a0749321f389b77959b486b4da285d2cd93baec06000223
|
|
4
|
+
data.tar.gz: 36886287dde7d2a89c5051d5d679d5b3718a43bd3d7f6d1a021202d0b9478355
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76877cd3d90b042b78903d7c8c94c7bb86b6dc0bd9526b741516c22628f129e1ec1477be7f9b0d22c3ea6308ca2d7ca68f5e7d0640195090136583c1ace7ea27
|
|
7
|
+
data.tar.gz: f35c01e5d0c7eab4f3f831205f298229d05c5e9ee4aa8182fd7e21f34c9dea64fbbc38e019a5f3f78abe6f3698ffaabf6f3b0651fb3ec265883c56f319161d68
|
data/lib/stack_one/accounts.rb
CHANGED
|
@@ -139,16 +139,9 @@ module StackOne
|
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
|
|
142
|
-
sig { params(
|
|
143
|
-
def list_linked_accounts(
|
|
142
|
+
sig { params(request: T.nilable(::StackOne::Operations::StackoneListLinkedAccountsRequest)).returns(::StackOne::Operations::StackoneListLinkedAccountsResponse) }
|
|
143
|
+
def list_linked_accounts(request)
|
|
144
144
|
# list_linked_accounts - List Accounts
|
|
145
|
-
request = ::StackOne::Operations::StackoneListLinkedAccountsRequest.new(
|
|
146
|
-
|
|
147
|
-
origin_owner_id: origin_owner_id,
|
|
148
|
-
page: page,
|
|
149
|
-
page_size: page_size,
|
|
150
|
-
provider: provider
|
|
151
|
-
)
|
|
152
145
|
url, params = @sdk_configuration.get_server_details
|
|
153
146
|
base_url = Utils.template_url(url, params)
|
|
154
147
|
url = "#{base_url}/accounts"
|
data/lib/stack_one/ats.rb
CHANGED
|
@@ -209,6 +209,49 @@ module StackOne
|
|
|
209
209
|
end
|
|
210
210
|
|
|
211
211
|
|
|
212
|
+
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, format: T.nilable(::String)).returns(::StackOne::Operations::AtsDownloadApplicationDocumentResponse) }
|
|
213
|
+
def download_application_document(id, sub_resource_id, x_account_id, format = nil)
|
|
214
|
+
# download_application_document - Download Application Document
|
|
215
|
+
request = ::StackOne::Operations::AtsDownloadApplicationDocumentRequest.new(
|
|
216
|
+
|
|
217
|
+
id: id,
|
|
218
|
+
sub_resource_id: sub_resource_id,
|
|
219
|
+
x_account_id: x_account_id,
|
|
220
|
+
format: format
|
|
221
|
+
)
|
|
222
|
+
url, params = @sdk_configuration.get_server_details
|
|
223
|
+
base_url = Utils.template_url(url, params)
|
|
224
|
+
url = Utils.generate_url(
|
|
225
|
+
::StackOne::Operations::AtsDownloadApplicationDocumentRequest,
|
|
226
|
+
base_url,
|
|
227
|
+
'/unified/ats/applications/{id}/documents/{subResourceId}/download',
|
|
228
|
+
request
|
|
229
|
+
)
|
|
230
|
+
headers = Utils.get_headers(request)
|
|
231
|
+
query_params = Utils.get_query_params(::StackOne::Operations::AtsDownloadApplicationDocumentRequest, request)
|
|
232
|
+
headers['Accept'] = 'application/octet-stream'
|
|
233
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
234
|
+
|
|
235
|
+
r = @sdk_configuration.client.get(url) do |req|
|
|
236
|
+
req.headers = headers
|
|
237
|
+
req.params = query_params
|
|
238
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
242
|
+
|
|
243
|
+
res = ::StackOne::Operations::AtsDownloadApplicationDocumentResponse.new(
|
|
244
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
245
|
+
)
|
|
246
|
+
if r.status == 200
|
|
247
|
+
res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
|
|
248
|
+
|
|
249
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
|
250
|
+
end
|
|
251
|
+
res
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
|
|
212
255
|
sig { params(request: T.nilable(::StackOne::Operations::AtsGetApplicationRequest)).returns(::StackOne::Operations::AtsGetApplicationResponse) }
|
|
213
256
|
def get_application(request)
|
|
214
257
|
# get_application - Get Application
|
|
@@ -1296,7 +1339,7 @@ module StackOne
|
|
|
1296
1339
|
|
|
1297
1340
|
sig { params(ats_update_application_request_dto: ::StackOne::Shared::AtsUpdateApplicationRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUpdateApplicationResponse) }
|
|
1298
1341
|
def update_application(ats_update_application_request_dto, id, x_account_id)
|
|
1299
|
-
# update_application - Update Application
|
|
1342
|
+
# update_application - Update an Application
|
|
1300
1343
|
request = ::StackOne::Operations::AtsUpdateApplicationRequest.new(
|
|
1301
1344
|
|
|
1302
1345
|
ats_update_application_request_dto: ats_update_application_request_dto,
|
data/lib/stack_one/hris.rb
CHANGED
|
@@ -267,6 +267,49 @@ module StackOne
|
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
|
|
270
|
+
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, format: T.nilable(::String)).returns(::StackOne::Operations::HrisDownloadEmployeeDocumentResponse) }
|
|
271
|
+
def download_employee_document(id, sub_resource_id, x_account_id, format = nil)
|
|
272
|
+
# download_employee_document - Download Employee Document
|
|
273
|
+
request = ::StackOne::Operations::HrisDownloadEmployeeDocumentRequest.new(
|
|
274
|
+
|
|
275
|
+
id: id,
|
|
276
|
+
sub_resource_id: sub_resource_id,
|
|
277
|
+
x_account_id: x_account_id,
|
|
278
|
+
format: format
|
|
279
|
+
)
|
|
280
|
+
url, params = @sdk_configuration.get_server_details
|
|
281
|
+
base_url = Utils.template_url(url, params)
|
|
282
|
+
url = Utils.generate_url(
|
|
283
|
+
::StackOne::Operations::HrisDownloadEmployeeDocumentRequest,
|
|
284
|
+
base_url,
|
|
285
|
+
'/unified/hris/employees/{id}/documents/{subResourceId}/download',
|
|
286
|
+
request
|
|
287
|
+
)
|
|
288
|
+
headers = Utils.get_headers(request)
|
|
289
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisDownloadEmployeeDocumentRequest, request)
|
|
290
|
+
headers['Accept'] = 'application/octet-stream'
|
|
291
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
292
|
+
|
|
293
|
+
r = @sdk_configuration.client.get(url) do |req|
|
|
294
|
+
req.headers = headers
|
|
295
|
+
req.params = query_params
|
|
296
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
300
|
+
|
|
301
|
+
res = ::StackOne::Operations::HrisDownloadEmployeeDocumentResponse.new(
|
|
302
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
303
|
+
)
|
|
304
|
+
if r.status == 200
|
|
305
|
+
res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
|
|
306
|
+
|
|
307
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
|
308
|
+
end
|
|
309
|
+
res
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
|
|
270
313
|
sig { params(request: T.nilable(::StackOne::Operations::HrisGetBenefitRequest)).returns(::StackOne::Operations::HrisGetBenefitResponse) }
|
|
271
314
|
def get_benefit(request)
|
|
272
315
|
# get_benefit - Get Benefit
|
|
@@ -1070,5 +1113,55 @@ module StackOne
|
|
|
1070
1113
|
end
|
|
1071
1114
|
res
|
|
1072
1115
|
end
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
sig { params(unified_upload_request_dto: ::StackOne::Shared::UnifiedUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUploadEmployeeDocumentResponse) }
|
|
1119
|
+
def upload_employee_document(unified_upload_request_dto, id, x_account_id)
|
|
1120
|
+
# upload_employee_document - Upload Employee Document
|
|
1121
|
+
request = ::StackOne::Operations::HrisUploadEmployeeDocumentRequest.new(
|
|
1122
|
+
|
|
1123
|
+
unified_upload_request_dto: unified_upload_request_dto,
|
|
1124
|
+
id: id,
|
|
1125
|
+
x_account_id: x_account_id
|
|
1126
|
+
)
|
|
1127
|
+
url, params = @sdk_configuration.get_server_details
|
|
1128
|
+
base_url = Utils.template_url(url, params)
|
|
1129
|
+
url = Utils.generate_url(
|
|
1130
|
+
::StackOne::Operations::HrisUploadEmployeeDocumentRequest,
|
|
1131
|
+
base_url,
|
|
1132
|
+
'/unified/hris/employees/{id}/documents/upload',
|
|
1133
|
+
request
|
|
1134
|
+
)
|
|
1135
|
+
headers = Utils.get_headers(request)
|
|
1136
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :unified_upload_request_dto, :json)
|
|
1137
|
+
headers['content-type'] = req_content_type
|
|
1138
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
1139
|
+
headers['Accept'] = 'application/json'
|
|
1140
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1141
|
+
|
|
1142
|
+
r = @sdk_configuration.client.post(url) do |req|
|
|
1143
|
+
req.headers = headers
|
|
1144
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
1145
|
+
if form
|
|
1146
|
+
req.body = Utils.encode_form(form)
|
|
1147
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
1148
|
+
req.body = URI.encode_www_form(data)
|
|
1149
|
+
else
|
|
1150
|
+
req.body = data
|
|
1151
|
+
end
|
|
1152
|
+
end
|
|
1153
|
+
|
|
1154
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1155
|
+
|
|
1156
|
+
res = ::StackOne::Operations::HrisUploadEmployeeDocumentResponse.new(
|
|
1157
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
1158
|
+
)
|
|
1159
|
+
if r.status == 200
|
|
1160
|
+
res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
|
1161
|
+
|
|
1162
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
|
1163
|
+
end
|
|
1164
|
+
res
|
|
1165
|
+
end
|
|
1073
1166
|
end
|
|
1074
1167
|
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module StackOne
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AtsDownloadApplicationDocumentRequest < ::StackOne::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
16
|
+
|
|
17
|
+
field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
|
|
18
|
+
# The account identifier
|
|
19
|
+
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
20
|
+
# The format to download the file in
|
|
21
|
+
field :format, T.nilable(::String), { 'query_param': { 'field_name': 'format', 'style': 'form', 'explode': true } }
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, format: T.nilable(::String)).void }
|
|
25
|
+
def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, format: nil)
|
|
26
|
+
@id = id
|
|
27
|
+
@sub_resource_id = sub_resource_id
|
|
28
|
+
@x_account_id = x_account_id
|
|
29
|
+
@format = format
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module StackOne
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AtsDownloadApplicationDocumentResponse < ::StackOne::Utils::FieldAugmented
|
|
12
|
+
extend T::Sig
|
|
13
|
+
|
|
14
|
+
# HTTP response content type for this operation
|
|
15
|
+
field :content_type, ::String
|
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
17
|
+
field :raw_response, ::Faraday::Response
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# The document related to the application with the given identifiers was retrieved.
|
|
21
|
+
field :bytes, T.nilable(::String)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bytes: T.nilable(::String)).void }
|
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, bytes: nil)
|
|
26
|
+
@content_type = content_type
|
|
27
|
+
@raw_response = raw_response
|
|
28
|
+
@status_code = status_code
|
|
29
|
+
@bytes = bytes
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -17,41 +17,22 @@ module StackOne
|
|
|
17
17
|
field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
|
|
18
18
|
# The account identifier
|
|
19
19
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
20
|
-
# The comma separated list of fields
|
|
20
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
|
21
21
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
22
|
-
# The unified cursor
|
|
23
|
-
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
24
|
-
# The page number of the results to fetch
|
|
25
|
-
#
|
|
26
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
27
|
-
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
28
|
-
# The number of results per page
|
|
29
|
-
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
30
22
|
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
|
31
|
-
field :proxy, T.nilable(::
|
|
23
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
32
24
|
# Indicates that the raw request result is returned
|
|
33
25
|
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
|
-
# Use a string with a date to only select results updated after that given date
|
|
39
|
-
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
40
26
|
|
|
41
27
|
|
|
42
|
-
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String),
|
|
43
|
-
def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil,
|
|
28
|
+
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
|
29
|
+
def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
|
44
30
|
@id = id
|
|
45
31
|
@sub_resource_id = sub_resource_id
|
|
46
32
|
@x_account_id = x_account_id
|
|
47
33
|
@fields_ = fields_
|
|
48
|
-
@next_ = next_
|
|
49
|
-
@page = page
|
|
50
|
-
@page_size = page_size
|
|
51
34
|
@proxy = proxy
|
|
52
35
|
@raw = raw
|
|
53
|
-
@sync_token = sync_token
|
|
54
|
-
@updated_after = updated_after
|
|
55
36
|
end
|
|
56
37
|
end
|
|
57
38
|
end
|
|
@@ -17,41 +17,22 @@ module StackOne
|
|
|
17
17
|
field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
|
|
18
18
|
# The account identifier
|
|
19
19
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
20
|
-
# The comma separated list of fields
|
|
20
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
|
21
21
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
22
|
-
# The unified cursor
|
|
23
|
-
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
24
|
-
# The page number of the results to fetch
|
|
25
|
-
#
|
|
26
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
27
|
-
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
28
|
-
# The number of results per page
|
|
29
|
-
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
30
22
|
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
|
31
|
-
field :proxy, T.nilable(::
|
|
23
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
32
24
|
# Indicates that the raw request result is returned
|
|
33
25
|
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
|
-
# Use a string with a date to only select results updated after that given date
|
|
39
|
-
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
40
26
|
|
|
41
27
|
|
|
42
|
-
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String),
|
|
43
|
-
def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil,
|
|
28
|
+
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
|
29
|
+
def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
|
44
30
|
@id = id
|
|
45
31
|
@sub_resource_id = sub_resource_id
|
|
46
32
|
@x_account_id = x_account_id
|
|
47
33
|
@fields_ = fields_
|
|
48
|
-
@next_ = next_
|
|
49
|
-
@page = page
|
|
50
|
-
@page_size = page_size
|
|
51
34
|
@proxy = proxy
|
|
52
35
|
@raw = raw
|
|
53
|
-
@sync_token = sync_token
|
|
54
|
-
@updated_after = updated_after
|
|
55
36
|
end
|
|
56
37
|
end
|
|
57
38
|
end
|
|
@@ -17,41 +17,22 @@ module StackOne
|
|
|
17
17
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
18
18
|
# The comma separated list of fields that will be expanded in the response
|
|
19
19
|
field :expand, T.nilable(::String), { 'query_param': { 'field_name': 'expand', 'style': 'form', 'explode': true } }
|
|
20
|
-
# The comma separated list of fields
|
|
20
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
|
21
21
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
22
|
-
# The unified cursor
|
|
23
|
-
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
24
|
-
# The page number of the results to fetch
|
|
25
|
-
#
|
|
26
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
27
|
-
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
28
|
-
# The number of results per page
|
|
29
|
-
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
30
22
|
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
|
31
|
-
field :proxy, T.nilable(::
|
|
23
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
32
24
|
# Indicates that the raw request result is returned
|
|
33
25
|
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
|
-
# Use a string with a date to only select results updated after that given date
|
|
39
|
-
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
40
26
|
|
|
41
27
|
|
|
42
|
-
sig { params(id: ::String, x_account_id: ::String, expand: T.nilable(::String), fields_: T.nilable(::String),
|
|
43
|
-
def initialize(id: nil, x_account_id: nil, expand: nil, fields_: nil,
|
|
28
|
+
sig { params(id: ::String, x_account_id: ::String, expand: T.nilable(::String), fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
|
29
|
+
def initialize(id: nil, x_account_id: nil, expand: nil, fields_: nil, proxy: nil, raw: nil)
|
|
44
30
|
@id = id
|
|
45
31
|
@x_account_id = x_account_id
|
|
46
32
|
@expand = expand
|
|
47
33
|
@fields_ = fields_
|
|
48
|
-
@next_ = next_
|
|
49
|
-
@page = page
|
|
50
|
-
@page_size = page_size
|
|
51
34
|
@proxy = proxy
|
|
52
35
|
@raw = raw
|
|
53
|
-
@sync_token = sync_token
|
|
54
|
-
@updated_after = updated_after
|
|
55
36
|
end
|
|
56
37
|
end
|
|
57
38
|
end
|
|
@@ -17,41 +17,22 @@ module StackOne
|
|
|
17
17
|
field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
|
|
18
18
|
# The account identifier
|
|
19
19
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
20
|
-
# The comma separated list of fields
|
|
20
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
|
21
21
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
22
|
-
# The unified cursor
|
|
23
|
-
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
24
|
-
# The page number of the results to fetch
|
|
25
|
-
#
|
|
26
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
27
|
-
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
28
|
-
# The number of results per page
|
|
29
|
-
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
30
22
|
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
|
31
|
-
field :proxy, T.nilable(::
|
|
23
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
32
24
|
# Indicates that the raw request result is returned
|
|
33
25
|
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
|
-
# Use a string with a date to only select results updated after that given date
|
|
39
|
-
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
40
26
|
|
|
41
27
|
|
|
42
|
-
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String),
|
|
43
|
-
def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil,
|
|
28
|
+
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
|
29
|
+
def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
|
44
30
|
@id = id
|
|
45
31
|
@sub_resource_id = sub_resource_id
|
|
46
32
|
@x_account_id = x_account_id
|
|
47
33
|
@fields_ = fields_
|
|
48
|
-
@next_ = next_
|
|
49
|
-
@page = page
|
|
50
|
-
@page_size = page_size
|
|
51
34
|
@proxy = proxy
|
|
52
35
|
@raw = raw
|
|
53
|
-
@sync_token = sync_token
|
|
54
|
-
@updated_after = updated_after
|
|
55
36
|
end
|
|
56
37
|
end
|
|
57
38
|
end
|
|
@@ -17,41 +17,22 @@ module StackOne
|
|
|
17
17
|
field :sub_resource_id, ::String, { 'path_param': { 'field_name': 'subResourceId', 'style': 'simple', 'explode': false } }
|
|
18
18
|
# The account identifier
|
|
19
19
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
20
|
-
# The comma separated list of fields
|
|
20
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
|
21
21
|
field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
|
|
22
|
-
# The unified cursor
|
|
23
|
-
field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
|
|
24
|
-
# The page number of the results to fetch
|
|
25
|
-
#
|
|
26
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
27
|
-
field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
28
|
-
# The number of results per page
|
|
29
|
-
field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
|
|
30
22
|
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
|
31
|
-
field :proxy, T.nilable(::
|
|
23
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
32
24
|
# Indicates that the raw request result is returned
|
|
33
25
|
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
|
-
# Use a string with a date to only select results updated after that given date
|
|
39
|
-
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
40
26
|
|
|
41
27
|
|
|
42
|
-
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String),
|
|
43
|
-
def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil,
|
|
28
|
+
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
|
29
|
+
def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
|
44
30
|
@id = id
|
|
45
31
|
@sub_resource_id = sub_resource_id
|
|
46
32
|
@x_account_id = x_account_id
|
|
47
33
|
@fields_ = fields_
|
|
48
|
-
@next_ = next_
|
|
49
|
-
@page = page
|
|
50
|
-
@page_size = page_size
|
|
51
34
|
@proxy = proxy
|
|
52
35
|
@raw = raw
|
|
53
|
-
@sync_token = sync_token
|
|
54
|
-
@updated_after = updated_after
|
|
55
36
|
end
|
|
56
37
|
end
|
|
57
38
|
end
|
|
@@ -15,40 +15,21 @@ module StackOne
|
|
|
15
15
|
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
16
16
|
# The account identifier
|
|
17
17
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
18
|
-
# The comma separated list of fields
|
|
18
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
|
19
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
20
|
# 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(::
|
|
21
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
30
22
|
# Indicates that the raw request result is returned
|
|
31
23
|
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
|
-
# Use a string with a date to only select results updated after that given date
|
|
37
|
-
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
38
24
|
|
|
39
25
|
|
|
40
|
-
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String),
|
|
41
|
-
def initialize(id: nil, x_account_id: nil, fields_: nil,
|
|
26
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
|
27
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
|
42
28
|
@id = id
|
|
43
29
|
@x_account_id = x_account_id
|
|
44
30
|
@fields_ = fields_
|
|
45
|
-
@next_ = next_
|
|
46
|
-
@page = page
|
|
47
|
-
@page_size = page_size
|
|
48
31
|
@proxy = proxy
|
|
49
32
|
@raw = raw
|
|
50
|
-
@sync_token = sync_token
|
|
51
|
-
@updated_after = updated_after
|
|
52
33
|
end
|
|
53
34
|
end
|
|
54
35
|
end
|
|
@@ -15,40 +15,21 @@ module StackOne
|
|
|
15
15
|
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
16
16
|
# The account identifier
|
|
17
17
|
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
18
|
-
# The comma separated list of fields
|
|
18
|
+
# The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
|
|
19
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
20
|
# 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(::
|
|
21
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
|
|
30
22
|
# Indicates that the raw request result is returned
|
|
31
23
|
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
|
-
# Use a string with a date to only select results updated after that given date
|
|
37
|
-
field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
|
|
38
24
|
|
|
39
25
|
|
|
40
|
-
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String),
|
|
41
|
-
def initialize(id: nil, x_account_id: nil, fields_: nil,
|
|
26
|
+
sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
|
|
27
|
+
def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
|
|
42
28
|
@id = id
|
|
43
29
|
@x_account_id = x_account_id
|
|
44
30
|
@fields_ = fields_
|
|
45
|
-
@next_ = next_
|
|
46
|
-
@page = page
|
|
47
|
-
@page_size = page_size
|
|
48
31
|
@proxy = proxy
|
|
49
32
|
@raw = raw
|
|
50
|
-
@sync_token = sync_token
|
|
51
|
-
@updated_after = updated_after
|
|
52
33
|
end
|
|
53
34
|
end
|
|
54
35
|
end
|