stackone_client 0.2.7 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/accounts.rb +5 -2
  3. data/lib/stack_one/ats.rb +4 -4
  4. data/lib/stack_one/hris.rb +8 -58
  5. data/lib/stack_one/models/operations/ats_get_application_document_response.rb +4 -4
  6. data/lib/stack_one/models/operations/ats_list_application_documents_response.rb +4 -4
  7. data/lib/stack_one/models/operations/crm_get_account_request.rb +3 -17
  8. data/lib/stack_one/models/operations/crm_get_contact_request.rb +3 -17
  9. data/lib/stack_one/models/operations/crm_get_list_request.rb +3 -17
  10. data/lib/stack_one/models/operations/crm_list_accounts_request.rb +1 -1
  11. data/lib/stack_one/models/operations/crm_list_contacts_request.rb +1 -1
  12. data/lib/stack_one/models/operations/crm_list_lists_request.rb +1 -1
  13. data/lib/stack_one/models/operations/hris_get_benefit_request.rb +3 -17
  14. data/lib/stack_one/models/operations/hris_get_company_request.rb +3 -17
  15. data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +3 -17
  16. data/lib/stack_one/models/operations/hris_get_employee_document_response.rb +4 -4
  17. data/lib/stack_one/models/operations/hris_get_employee_request.rb +3 -17
  18. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +3 -17
  19. data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +3 -17
  20. data/lib/stack_one/models/operations/hris_get_employment_request.rb +3 -17
  21. data/lib/stack_one/models/operations/hris_get_location_request.rb +3 -17
  22. data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +3 -17
  23. data/lib/stack_one/models/operations/hris_list_benefits_request.rb +1 -1
  24. data/lib/stack_one/models/operations/hris_list_companies_request.rb +1 -1
  25. data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +1 -1
  26. data/lib/stack_one/models/operations/hris_list_employee_documents_response.rb +4 -4
  27. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +1 -1
  28. data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +1 -1
  29. data/lib/stack_one/models/operations/hris_list_employees_request.rb +1 -1
  30. data/lib/stack_one/models/operations/hris_list_employments_request.rb +1 -1
  31. data/lib/stack_one/models/operations/hris_list_locations_request.rb +1 -1
  32. data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +1 -1
  33. data/lib/stack_one/models/operations/hris_upload_employee_document_response.rb +4 -4
  34. data/lib/stack_one/models/operations/stackone_get_account_request.rb +5 -2
  35. data/lib/stack_one/models/operations.rb +0 -2
  36. data/lib/stack_one/models/shared/account.rb +8 -5
  37. data/lib/stack_one/models/shared/answer.rb +6 -3
  38. data/lib/stack_one/models/shared/application.rb +7 -4
  39. data/lib/stack_one/models/shared/application_interview_stage.rb +6 -3
  40. data/lib/stack_one/models/shared/{documentapimodel.rb → atsdocumentapimodel.rb} +8 -5
  41. data/lib/stack_one/models/shared/{documentapimodel_type.rb → atsdocumentapimodel_type.rb} +3 -3
  42. data/lib/stack_one/models/shared/{documentapimodel_value.rb → atsdocumentapimodel_value.rb} +1 -1
  43. data/lib/stack_one/models/shared/atslocation.rb +6 -3
  44. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +5 -2
  45. data/lib/stack_one/models/shared/campaign.rb +6 -3
  46. data/lib/stack_one/models/shared/candidate.rb +8 -5
  47. data/lib/stack_one/models/shared/company.rb +6 -3
  48. data/lib/stack_one/models/shared/contact.rb +6 -3
  49. data/lib/stack_one/models/shared/department.rb +6 -3
  50. data/lib/stack_one/models/shared/document.rb +6 -3
  51. data/lib/stack_one/models/shared/emailmessages.rb +6 -3
  52. data/lib/stack_one/models/shared/employee.rb +6 -3
  53. data/lib/stack_one/models/shared/employee_company.rb +6 -3
  54. data/lib/stack_one/models/shared/employeecustomfields.rb +6 -3
  55. data/lib/stack_one/models/shared/employment.rb +6 -3
  56. data/lib/stack_one/models/shared/field.rb +6 -3
  57. data/lib/stack_one/models/shared/headers.rb +20 -0
  58. data/lib/stack_one/models/shared/home_location.rb +6 -3
  59. data/lib/stack_one/models/shared/hrisbenefit.rb +6 -3
  60. data/lib/stack_one/models/shared/hrisdocumentapimodel.rb +45 -0
  61. data/lib/stack_one/models/shared/{hriscreatedocumentrequestdto_type.rb → hrisdocumentapimodel_type.rb} +3 -3
  62. data/lib/stack_one/models/shared/{hriscreatedocumentrequestdto_value.rb → hrisdocumentapimodel_value.rb} +1 -1
  63. data/lib/stack_one/models/shared/{documentresult.rb → hrisdocumentresult.rb} +3 -3
  64. data/lib/stack_one/models/shared/{documentspaginated.rb → hrisdocumentspaginated.rb} +3 -3
  65. data/lib/stack_one/models/shared/hrislocation.rb +6 -3
  66. data/lib/stack_one/models/shared/interview.rb +8 -5
  67. data/lib/stack_one/models/shared/interview_interview_stage.rb +6 -3
  68. data/lib/stack_one/models/shared/interviewer.rb +6 -3
  69. data/lib/stack_one/models/shared/interviewpart.rb +12 -3
  70. data/lib/stack_one/models/shared/interviewstage.rb +6 -3
  71. data/lib/stack_one/models/shared/job.rb +6 -3
  72. data/lib/stack_one/models/shared/jobposting.rb +8 -5
  73. data/lib/stack_one/models/shared/jobpostinglocation.rb +6 -3
  74. data/lib/stack_one/models/shared/jobpostingquestionnaire.rb +6 -3
  75. data/lib/stack_one/models/shared/list.rb +6 -3
  76. data/lib/stack_one/models/shared/marketingcreateemailtemplaterequestdto.rb +6 -3
  77. data/lib/stack_one/models/shared/marketingcreatepushtemplaterequestdto.rb +6 -3
  78. data/lib/stack_one/models/shared/marketingcreatetemplaterequestdto.rb +6 -3
  79. data/lib/stack_one/models/shared/message.rb +6 -3
  80. data/lib/stack_one/models/shared/note.rb +6 -3
  81. data/lib/stack_one/models/shared/offer.rb +6 -3
  82. data/lib/stack_one/models/shared/providererrorapimodel.rb +33 -0
  83. data/lib/stack_one/models/shared/pushmessages.rb +6 -3
  84. data/lib/stack_one/models/shared/question.rb +6 -3
  85. data/lib/stack_one/models/shared/questionmultiplechoiceanswers.rb +6 -3
  86. data/lib/stack_one/models/shared/questionnaire.rb +6 -3
  87. data/lib/stack_one/models/shared/raw.rb +20 -0
  88. data/lib/stack_one/models/shared/rejectedreason.rb +8 -3
  89. data/lib/stack_one/models/shared/scorecard.rb +6 -3
  90. data/lib/stack_one/models/shared/scorecardsection.rb +6 -3
  91. data/lib/stack_one/models/shared/template.rb +6 -3
  92. data/lib/stack_one/models/shared/timeoff.rb +6 -3
  93. data/lib/stack_one/models/shared/unifieduploadrequestdto.rb +2 -25
  94. data/lib/stack_one/models/shared/user.rb +6 -3
  95. data/lib/stack_one/models/shared/work_location.rb +6 -3
  96. data/lib/stack_one/models/shared/workeligibility.rb +6 -3
  97. data/lib/stack_one/models/shared/workeligibility_document.rb +6 -3
  98. data/lib/stack_one/models/shared/{createdocumentresult.rb → writeresultapimodel.rb} +6 -3
  99. data/lib/stack_one/models/shared.rb +12 -9
  100. data/lib/stack_one/sdkconfiguration.rb +3 -3
  101. data/lib/stack_one/utils/utils.rb +4 -3
  102. metadata +14 -13
  103. data/lib/stack_one/models/operations/hris_create_employee_document_request.rb +0 -30
  104. data/lib/stack_one/models/operations/hris_create_employee_document_response.rb +0 -33
  105. data/lib/stack_one/models/shared/hriscreatedocumentrequestdto.rb +0 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aabe8abf79f3151c8a0749321f389b77959b486b4da285d2cd93baec06000223
4
- data.tar.gz: 36886287dde7d2a89c5051d5d679d5b3718a43bd3d7f6d1a021202d0b9478355
3
+ metadata.gz: def77857be8cc62c88ecfdf9c3040a4dc24fe263402352a431f525672b4a62ff
4
+ data.tar.gz: 452918ae345bfedb19ab5e72062d968e3786a961d3f648c7c52e094525b5ebc5
5
5
  SHA512:
6
- metadata.gz: 76877cd3d90b042b78903d7c8c94c7bb86b6dc0bd9526b741516c22628f129e1ec1477be7f9b0d22c3ea6308ca2d7ca68f5e7d0640195090136583c1ace7ea27
7
- data.tar.gz: f35c01e5d0c7eab4f3f831205f298229d05c5e9ee4aa8182fd7e21f34c9dea64fbbc38e019a5f3f78abe6f3698ffaabf6f3b0651fb3ec265883c56f319161d68
6
+ metadata.gz: 4abc91b27af93bdab8ca85dd26b5e8a1d037fcbeae52e60a34e8536ad9c968bf23cefb631637dd02e19a1b6b6b1fd864a5f3a813bf80a1be5ca543a4c28a6de5
7
+ data.tar.gz: 4767ac490595e362f1d2829377e0b0bf20e963eae08b2a11d9ebf95ae5da0a0b59b792a97d8387bcbffe1ef529bd0fe83d4b2426710dc295bb4896fc5404e7f0
@@ -59,11 +59,12 @@ module StackOne
59
59
  end
60
60
 
61
61
 
62
- sig { params(id: ::String).returns(::StackOne::Operations::StackoneGetAccountResponse) }
63
- def get_account(id)
62
+ sig { params(expand_info: ::String, id: ::String).returns(::StackOne::Operations::StackoneGetAccountResponse) }
63
+ def get_account(expand_info, id)
64
64
  # get_account - Get Account
65
65
  request = ::StackOne::Operations::StackoneGetAccountRequest.new(
66
66
 
67
+ expand_info: expand_info,
67
68
  id: id
68
69
  )
69
70
  url, params = @sdk_configuration.get_server_details
@@ -75,11 +76,13 @@ module StackOne
75
76
  request
76
77
  )
77
78
  headers = {}
79
+ query_params = Utils.get_query_params(::StackOne::Operations::StackoneGetAccountRequest, request)
78
80
  headers['Accept'] = 'application/json'
79
81
  headers['user-agent'] = @sdk_configuration.user_agent
80
82
 
81
83
  r = @sdk_configuration.client.get(url) do |req|
82
84
  req.headers = headers
85
+ req.params = query_params
83
86
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
84
87
  end
85
88
 
data/lib/stack_one/ats.rb CHANGED
@@ -319,8 +319,8 @@ module StackOne
319
319
  )
320
320
  if r.status == 200
321
321
  if Utils.match_content_type(content_type, 'application/json')
322
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DocumentResult)
323
- res.document_result = out
322
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HrisDocumentResult)
323
+ res.hris_document_result = out
324
324
  end
325
325
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
326
326
  end
@@ -851,8 +851,8 @@ module StackOne
851
851
  )
852
852
  if r.status == 200
853
853
  if Utils.match_content_type(content_type, 'application/json')
854
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DocumentsPaginated)
855
- res.documents_paginated = out
854
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HrisDocumentsPaginated)
855
+ res.hris_documents_paginated = out
856
856
  end
857
857
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
858
858
  end
@@ -65,58 +65,6 @@ module StackOne
65
65
  end
66
66
 
67
67
 
68
- sig { params(hris_create_document_request_dto: ::StackOne::Shared::HrisCreateDocumentRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeDocumentResponse) }
69
- def create_employee_document(hris_create_document_request_dto, id, x_account_id)
70
- # create_employee_document - Create Employee Document
71
- request = ::StackOne::Operations::HrisCreateEmployeeDocumentRequest.new(
72
-
73
- hris_create_document_request_dto: hris_create_document_request_dto,
74
- id: id,
75
- x_account_id: x_account_id
76
- )
77
- url, params = @sdk_configuration.get_server_details
78
- base_url = Utils.template_url(url, params)
79
- url = Utils.generate_url(
80
- ::StackOne::Operations::HrisCreateEmployeeDocumentRequest,
81
- base_url,
82
- '/unified/hris/employees/{id}/documents',
83
- request
84
- )
85
- headers = Utils.get_headers(request)
86
- req_content_type, data, form = Utils.serialize_request_body(request, :hris_create_document_request_dto, :json)
87
- headers['content-type'] = req_content_type
88
- raise StandardError, 'request body is required' if data.nil? && form.nil?
89
- headers['Accept'] = 'application/json'
90
- headers['user-agent'] = @sdk_configuration.user_agent
91
-
92
- r = @sdk_configuration.client.post(url) do |req|
93
- req.headers = headers
94
- Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
95
- if form
96
- req.body = Utils.encode_form(form)
97
- elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
98
- req.body = URI.encode_www_form(data)
99
- else
100
- req.body = data
101
- end
102
- end
103
-
104
- content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
105
-
106
- res = ::StackOne::Operations::HrisCreateEmployeeDocumentResponse.new(
107
- status_code: r.status, content_type: content_type, raw_response: r
108
- )
109
- if r.status == 201
110
- if Utils.match_content_type(content_type, 'application/json')
111
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateDocumentResult)
112
- res.create_document_result = out
113
- end
114
- elsif [400, 403, 412, 429, 500, 501].include?(r.status)
115
- end
116
- res
117
- end
118
-
119
-
120
68
  sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeTimeOffRequestResponse) }
121
69
  def create_employee_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
122
70
  # create_employee_time_off_request - Create Employee Time Off Request
@@ -453,8 +401,8 @@ module StackOne
453
401
  )
454
402
  if r.status == 200
455
403
  if Utils.match_content_type(content_type, 'application/json')
456
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DocumentResult)
457
- res.document_result = out
404
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HrisDocumentResult)
405
+ res.hris_document_result = out
458
406
  end
459
407
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
460
408
  end
@@ -747,8 +695,8 @@ module StackOne
747
695
  )
748
696
  if r.status == 200
749
697
  if Utils.match_content_type(content_type, 'application/json')
750
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DocumentsPaginated)
751
- res.documents_paginated = out
698
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HrisDocumentsPaginated)
699
+ res.hris_documents_paginated = out
752
700
  end
753
701
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
754
702
  end
@@ -1157,8 +1105,10 @@ module StackOne
1157
1105
  status_code: r.status, content_type: content_type, raw_response: r
1158
1106
  )
1159
1107
  if r.status == 200
1160
- res.bytes = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
1161
-
1108
+ if Utils.match_content_type(content_type, 'application/json')
1109
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WriteResultApiModel)
1110
+ res.write_result_api_model = out
1111
+ end
1162
1112
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1163
1113
  end
1164
1114
  res
@@ -18,15 +18,15 @@ module StackOne
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # The document related to the application with the given identifiers was retrieved.
21
- field :document_result, T.nilable(::StackOne::Shared::DocumentResult)
21
+ field :hris_document_result, T.nilable(::StackOne::Shared::HrisDocumentResult)
22
22
 
23
23
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, document_result: T.nilable(::StackOne::Shared::DocumentResult)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, document_result: nil)
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, hris_document_result: T.nilable(::StackOne::Shared::HrisDocumentResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, hris_document_result: nil)
26
26
  @content_type = content_type
27
27
  @raw_response = raw_response
28
28
  @status_code = status_code
29
- @document_result = document_result
29
+ @hris_document_result = hris_document_result
30
30
  end
31
31
  end
32
32
  end
@@ -18,15 +18,15 @@ module StackOne
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # The documents related to the application with the given identifier were retrieved.
21
- field :documents_paginated, T.nilable(::StackOne::Shared::DocumentsPaginated)
21
+ field :hris_documents_paginated, T.nilable(::StackOne::Shared::HrisDocumentsPaginated)
22
22
 
23
23
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, documents_paginated: T.nilable(::StackOne::Shared::DocumentsPaginated)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, documents_paginated: nil)
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, hris_documents_paginated: T.nilable(::StackOne::Shared::HrisDocumentsPaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, hris_documents_paginated: nil)
26
26
  @content_type = content_type
27
27
  @raw_response = raw_response
28
28
  @status_code = status_code
29
- @documents_paginated = documents_paginated
29
+ @hris_documents_paginated = hris_documents_paginated
30
30
  end
31
31
  end
32
32
  end
@@ -15,35 +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 to return in the response (if empty, all fields are returned)
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
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
- # Use a string with a date to only select results updated after that given date
33
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
34
24
 
35
25
 
36
- sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
37
- def initialize(id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: 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)
38
28
  @id = id
39
29
  @x_account_id = x_account_id
40
30
  @fields_ = fields_
41
- @next_ = next_
42
- @page = page
43
- @page_size = page_size
44
31
  @proxy = proxy
45
32
  @raw = raw
46
- @updated_after = updated_after
47
33
  end
48
34
  end
49
35
  end
@@ -15,35 +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 to return in the response (if empty, all fields are returned)
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
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
- # Use a string with a date to only select results updated after that given date
33
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
34
24
 
35
25
 
36
- sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
37
- def initialize(id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: 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)
38
28
  @id = id
39
29
  @x_account_id = x_account_id
40
30
  @fields_ = fields_
41
- @next_ = next_
42
- @page = page
43
- @page_size = page_size
44
31
  @proxy = proxy
45
32
  @raw = raw
46
- @updated_after = updated_after
47
33
  end
48
34
  end
49
35
  end
@@ -15,35 +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 to return in the response (if empty, all fields are returned)
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
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
- # Use a string with a date to only select results updated after that given date
33
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
34
24
 
35
25
 
36
- sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
37
- def initialize(id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: 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)
38
28
  @id = id
39
29
  @x_account_id = x_account_id
40
30
  @fields_ = fields_
41
- @next_ = next_
42
- @page = page
43
- @page_size = page_size
44
31
  @proxy = proxy
45
32
  @raw = raw
46
- @updated_after = updated_after
47
33
  end
48
34
  end
49
35
  end
@@ -13,7 +13,7 @@ module StackOne
13
13
 
14
14
  # The account identifier
15
15
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
16
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
16
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
17
17
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
18
18
  # The unified cursor
19
19
  field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
@@ -13,7 +13,7 @@ module StackOne
13
13
 
14
14
  # The account identifier
15
15
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
16
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
16
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
17
17
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
18
18
  # The unified cursor
19
19
  field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
@@ -13,7 +13,7 @@ module StackOne
13
13
 
14
14
  # The account identifier
15
15
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
16
- # The comma separated list of fields to return in the response (if empty, all fields are returned)
16
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
17
17
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
18
18
  # The unified cursor
19
19
  field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
@@ -15,35 +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 to return in the response (if empty, all fields are returned)
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
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
- # Use a string with a date to only select results updated after that given date
33
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
34
24
 
35
25
 
36
- sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
37
- def initialize(id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: 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)
38
28
  @id = id
39
29
  @x_account_id = x_account_id
40
30
  @fields_ = fields_
41
- @next_ = next_
42
- @page = page
43
- @page_size = page_size
44
31
  @proxy = proxy
45
32
  @raw = raw
46
- @updated_after = updated_after
47
33
  end
48
34
  end
49
35
  end
@@ -15,35 +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 to return in the response (if empty, all fields are returned)
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
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
- # Use a string with a date to only select results updated after that given date
33
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
34
24
 
35
25
 
36
- sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
37
- def initialize(id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: 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)
38
28
  @id = id
39
29
  @x_account_id = x_account_id
40
30
  @fields_ = fields_
41
- @next_ = next_
42
- @page = page
43
- @page_size = page_size
44
31
  @proxy = proxy
45
32
  @raw = raw
46
- @updated_after = updated_after
47
33
  end
48
34
  end
49
35
  end
@@ -17,36 +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 to return in the response (if empty, all fields are returned)
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
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
- # Use a string with a date to only select results updated after that given date
35
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
36
26
 
37
27
 
38
- sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
39
- def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: 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)
40
30
  @id = id
41
31
  @sub_resource_id = sub_resource_id
42
32
  @x_account_id = x_account_id
43
33
  @fields_ = fields_
44
- @next_ = next_
45
- @page = page
46
- @page_size = page_size
47
34
  @proxy = proxy
48
35
  @raw = raw
49
- @updated_after = updated_after
50
36
  end
51
37
  end
52
38
  end
@@ -18,15 +18,15 @@ module StackOne
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # The document related to the employee with the given identifiers was retrieved.
21
- field :document_result, T.nilable(::StackOne::Shared::DocumentResult)
21
+ field :hris_document_result, T.nilable(::StackOne::Shared::HrisDocumentResult)
22
22
 
23
23
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, document_result: T.nilable(::StackOne::Shared::DocumentResult)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, document_result: nil)
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, hris_document_result: T.nilable(::StackOne::Shared::HrisDocumentResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, hris_document_result: nil)
26
26
  @content_type = content_type
27
27
  @raw_response = raw_response
28
28
  @status_code = status_code
29
- @document_result = document_result
29
+ @hris_document_result = hris_document_result
30
30
  end
31
31
  end
32
32
  end
@@ -17,39 +17,25 @@ 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 to return in the response (if empty, all fields are returned)
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
22
  # The comma separated list of fields that will be included in the response
23
23
  field :include, T.nilable(::String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
24
- # The unified cursor
25
- field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
26
- # The page number of the results to fetch
27
- #
28
- # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
29
- field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
30
- # The number of results per page
31
- field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
32
24
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
33
25
  field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
34
26
  # Indicates that the raw request result is returned
35
27
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', '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
28
 
39
29
 
40
- sig { params(id: ::String, x_account_id: ::String, expand: T.nilable(::String), fields_: T.nilable(::String), include: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
41
- def initialize(id: nil, x_account_id: nil, expand: nil, fields_: nil, include: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
30
+ sig { params(id: ::String, x_account_id: ::String, expand: T.nilable(::String), fields_: T.nilable(::String), include: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
31
+ def initialize(id: nil, x_account_id: nil, expand: nil, fields_: nil, include: nil, proxy: nil, raw: nil)
42
32
  @id = id
43
33
  @x_account_id = x_account_id
44
34
  @expand = expand
45
35
  @fields_ = fields_
46
36
  @include = include
47
- @next_ = next_
48
- @page = page
49
- @page_size = page_size
50
37
  @proxy = proxy
51
38
  @raw = raw
52
- @updated_after = updated_after
53
39
  end
54
40
  end
55
41
  end
@@ -17,36 +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 to return in the response (if empty, all fields are returned)
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
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
- # Use a string with a date to only select results updated after that given date
35
- field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
36
26
 
37
27
 
38
- sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, fields_: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
39
- def initialize(id: nil, sub_resource_id: nil, x_account_id: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: 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)
40
30
  @id = id
41
31
  @sub_resource_id = sub_resource_id
42
32
  @x_account_id = x_account_id
43
33
  @fields_ = fields_
44
- @next_ = next_
45
- @page = page
46
- @page_size = page_size
47
34
  @proxy = proxy
48
35
  @raw = raw
49
- @updated_after = updated_after
50
36
  end
51
37
  end
52
38
  end