stackone_client 0.2.15 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 809215b59c20f45a26abd8696774aa50590a5b812620ec6d60c81ef05534af2a
4
- data.tar.gz: 54e245697f54b76c941b034376c685cfa236f67e5032640823efa60c82ce2715
3
+ metadata.gz: 8c8ed9a97076711eb4779e56414b6399f42de6c43b3dc262b2a428c92b76f8a1
4
+ data.tar.gz: b34c02b757deb523f9e1fd7d1be61e379305f3b6448f683d59267a03a8a52862
5
5
  SHA512:
6
- metadata.gz: b4a3352cfad52f9ca565a1b6f84e38f7e4553452a23f7a4dd0612cfc844fd160a8b6da5b27ef64a3c8579c6072611c46ceb091e10cf00889bfa9587d906b0a36
7
- data.tar.gz: f04854a874109174c018dbb62430ab7c79a2d02a72e7931fa47e501965f9706e3593e55a7220afbc3912238bcedb287760475d0f71f8c394765f83dc90fa75bb
6
+ metadata.gz: 4b2969c59e144cb0bd9de39a1230bc9fce508eec3196827c85c44182a1aca2eed4f271984943f087717041b45505c980d3491d2739c952292a48d460e16ed9fd
7
+ data.tar.gz: 15c52a1f842433691888a21476229a00956cab6d200b2c295d5d07b1e8d3bbeddae1ce603113a7a2f97319d370d571850f4b6941c12849476816100a9f0471aa
@@ -59,12 +59,11 @@ module StackOne
59
59
  end
60
60
 
61
61
 
62
- sig { params(expand_info: ::String, id: ::String).returns(::StackOne::Operations::StackoneGetAccountResponse) }
63
- def get_account(expand_info, id)
62
+ sig { params(id: ::String).returns(::StackOne::Operations::StackoneGetAccountResponse) }
63
+ def get_account(id)
64
64
  # get_account - Get Account
65
65
  request = ::StackOne::Operations::StackoneGetAccountRequest.new(
66
66
 
67
- expand_info: expand_info,
68
67
  id: id
69
68
  )
70
69
  url, params = @sdk_configuration.get_server_details
@@ -76,13 +75,11 @@ module StackOne
76
75
  request
77
76
  )
78
77
  headers = {}
79
- query_params = Utils.get_query_params(::StackOne::Operations::StackoneGetAccountRequest, request)
80
78
  headers['Accept'] = 'application/json'
81
79
  headers['user-agent'] = @sdk_configuration.user_agent
82
80
 
83
81
  r = @sdk_configuration.client.get(url) do |req|
84
82
  req.headers = headers
85
- req.params = query_params
86
83
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
87
84
  end
88
85
 
data/lib/stack_one/ats.rb CHANGED
@@ -67,7 +67,7 @@ module StackOne
67
67
 
68
68
  sig { params(ats_create_candidate_request_dto: ::StackOne::Shared::AtsCreateCandidateRequestDto, x_account_id: ::String).returns(::StackOne::Operations::AtsCreateCandidateResponse) }
69
69
  def create_candidate(ats_create_candidate_request_dto, x_account_id)
70
- # create_candidate - Create Candidate (early access)
70
+ # create_candidate - Create Candidate
71
71
  request = ::StackOne::Operations::AtsCreateCandidateRequest.new(
72
72
 
73
73
  ats_create_candidate_request_dto: ats_create_candidate_request_dto,
@@ -102,8 +102,8 @@ module StackOne
102
102
  )
103
103
  if r.status == 200
104
104
  if Utils.match_content_type(content_type, 'application/json')
105
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CandidateResult)
106
- res.candidate_result = out
105
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
106
+ res.create_result = out
107
107
  end
108
108
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
109
109
  end
@@ -1389,12 +1389,12 @@ module StackOne
1389
1389
  end
1390
1390
 
1391
1391
 
1392
- sig { params(ats_update_candidates_request_dto: ::StackOne::Shared::AtsUpdateCandidatesRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUpdateCandidateResponse) }
1393
- def update_candidate(ats_update_candidates_request_dto, id, x_account_id)
1394
- # update_candidate - Update Candidate (early access)
1392
+ sig { params(ats_update_candidate_request_dto: ::StackOne::Shared::AtsUpdateCandidateRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUpdateCandidateResponse) }
1393
+ def update_candidate(ats_update_candidate_request_dto, id, x_account_id)
1394
+ # update_candidate - Update Candidate
1395
1395
  request = ::StackOne::Operations::AtsUpdateCandidateRequest.new(
1396
1396
 
1397
- ats_update_candidates_request_dto: ats_update_candidates_request_dto,
1397
+ ats_update_candidate_request_dto: ats_update_candidate_request_dto,
1398
1398
  id: id,
1399
1399
  x_account_id: x_account_id
1400
1400
  )
@@ -1407,7 +1407,7 @@ module StackOne
1407
1407
  request
1408
1408
  )
1409
1409
  headers = Utils.get_headers(request)
1410
- req_content_type, data, form = Utils.serialize_request_body(request, :ats_update_candidates_request_dto, :json)
1410
+ req_content_type, data, form = Utils.serialize_request_body(request, :ats_update_candidate_request_dto, :json)
1411
1411
  headers['content-type'] = req_content_type
1412
1412
  raise StandardError, 'request body is required' if data.nil? && form.nil?
1413
1413
  headers['Accept'] = 'application/json'
@@ -1432,8 +1432,8 @@ module StackOne
1432
1432
  )
1433
1433
  if r.status == 200
1434
1434
  if Utils.match_content_type(content_type, 'application/json')
1435
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CandidateResult)
1436
- res.candidate_result = out
1435
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateResult)
1436
+ res.create_result = out
1437
1437
  end
1438
1438
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1439
1439
  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 candidate was successfully created.
21
- field :candidate_result, T.nilable(::StackOne::Shared::CandidateResult)
21
+ field :create_result, T.nilable(::StackOne::Shared::CreateResult)
22
22
 
23
23
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, candidate_result: T.nilable(::StackOne::Shared::CandidateResult)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, candidate_result: nil)
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_result: T.nilable(::StackOne::Shared::CreateResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, create_result: nil)
26
26
  @content_type = content_type
27
27
  @raw_response = raw_response
28
28
  @status_code = status_code
29
- @candidate_result = candidate_result
29
+ @create_result = create_result
30
30
  end
31
31
  end
32
32
  end
@@ -12,16 +12,16 @@ module StackOne
12
12
  extend T::Sig
13
13
 
14
14
 
15
- field :ats_update_candidates_request_dto, ::StackOne::Shared::AtsUpdateCandidatesRequestDto, { 'request': { 'media_type': 'application/json' } }
15
+ field :ats_update_candidate_request_dto, ::StackOne::Shared::AtsUpdateCandidateRequestDto, { 'request': { 'media_type': 'application/json' } }
16
16
 
17
17
  field :id, ::String, { 'path_param': { 'field_name': 'id', '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
20
 
21
21
 
22
- sig { params(ats_update_candidates_request_dto: ::StackOne::Shared::AtsUpdateCandidatesRequestDto, id: ::String, x_account_id: ::String).void }
23
- def initialize(ats_update_candidates_request_dto: nil, id: nil, x_account_id: nil)
24
- @ats_update_candidates_request_dto = ats_update_candidates_request_dto
22
+ sig { params(ats_update_candidate_request_dto: ::StackOne::Shared::AtsUpdateCandidateRequestDto, id: ::String, x_account_id: ::String).void }
23
+ def initialize(ats_update_candidate_request_dto: nil, id: nil, x_account_id: nil)
24
+ @ats_update_candidate_request_dto = ats_update_candidate_request_dto
25
25
  @id = id
26
26
  @x_account_id = x_account_id
27
27
  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 candidate was successfully updated.
21
- field :candidate_result, T.nilable(::StackOne::Shared::CandidateResult)
21
+ field :create_result, T.nilable(::StackOne::Shared::CreateResult)
22
22
 
23
23
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, candidate_result: T.nilable(::StackOne::Shared::CandidateResult)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, candidate_result: nil)
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_result: T.nilable(::StackOne::Shared::CreateResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, create_result: nil)
26
26
  @content_type = content_type
27
27
  @raw_response = raw_response
28
28
  @status_code = status_code
29
- @candidate_result = candidate_result
29
+ @create_result = create_result
30
30
  end
31
31
  end
32
32
  end
@@ -12,14 +12,11 @@ module StackOne
12
12
  extend T::Sig
13
13
 
14
14
 
15
- field :expand_info, ::String, { 'query_param': { 'field_name': 'expand_info', 'style': 'form', 'explode': true } }
16
-
17
15
  field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
18
16
 
19
17
 
20
- sig { params(expand_info: ::String, id: ::String).void }
21
- def initialize(expand_info: nil, id: nil)
22
- @expand_info = expand_info
18
+ sig { params(id: ::String).void }
19
+ def initialize(id: nil)
23
20
  @id = id
24
21
  end
25
22
  end
@@ -11,19 +11,37 @@ module StackOne
11
11
  class ApplicationCandidate < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # Candidate company
15
+ field :company, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company') } }
14
16
  # Email of the candidate
15
17
  field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
18
+ # List of candidate emails
19
+ field :emails, T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('emails') } }
16
20
  # First name of the candidate
17
21
  field :first_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
18
22
  # Last name of the candidate
19
23
  field :last_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
24
+ # Candidate name
25
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
26
+ # List of candidate phone numbers including the type of the number when available
27
+ field :phone_numbers, T.nilable(T::Array[::StackOne::Shared::PhoneNumber]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_numbers') } }
28
+ # List of candidate social links
29
+ field :social_links, T.nilable(T::Array[::StackOne::Shared::SocialLink]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('social_links') } }
30
+ # Candidate title
31
+ field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
20
32
 
21
33
 
22
- sig { params(email: T.nilable(::String), first_name: T.nilable(::String), last_name: T.nilable(::String)).void }
23
- def initialize(email: nil, first_name: nil, last_name: nil)
34
+ sig { params(company: T.nilable(::String), email: T.nilable(::String), emails: T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), first_name: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone_numbers: T.nilable(T::Array[::StackOne::Shared::PhoneNumber]), social_links: T.nilable(T::Array[::StackOne::Shared::SocialLink]), title: T.nilable(::String)).void }
35
+ def initialize(company: nil, email: nil, emails: nil, first_name: nil, last_name: nil, name: nil, phone_numbers: nil, social_links: nil, title: nil)
36
+ @company = company
24
37
  @email = email
38
+ @emails = emails
25
39
  @first_name = first_name
26
40
  @last_name = last_name
41
+ @name = name
42
+ @phone_numbers = phone_numbers
43
+ @social_links = social_links
44
+ @title = title
27
45
  end
28
46
  end
29
47
  end
@@ -13,9 +13,9 @@ module StackOne
13
13
 
14
14
 
15
15
  field :application_status, T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoApplicationStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_status') } }
16
-
16
+ # Candidate Properties. Provide this OR candidate_id, but not both. Providing this attempts to create a new candidate with the application.
17
17
  field :candidate, T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoCandidate), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate') } }
18
- # Unique identifier of the candidate
18
+ # Unique identifier of the candidate. Provide this OR candidate, but not both.
19
19
  field :candidate_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate_id') } }
20
20
  # Unique identifier of the job
21
21
  field :job_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_id') } }
@@ -7,23 +7,49 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
-
10
+ # Candidate Properties. Provide this OR candidate_id, but not both. Providing this attempts to create a new candidate with the application.
11
11
  class AtsCreateApplicationRequestDtoCandidate < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
- # Email of the candidate
14
+ # Candidate company
15
+ field :company, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company') } }
16
+ # Candidate country
17
+ field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
18
+ # Candidate email
15
19
  field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
16
- # First name of the candidate
20
+ # Candidate first name
17
21
  field :first_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
18
- # Last name of the candidate
22
+ # Candidate hired date
23
+ field :hired_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hired_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
24
+ # Candidate last name
19
25
  field :last_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
26
+ # Candidate name
27
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
28
+ # Candidate phone number
29
+ #
30
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
31
+ field :phone, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone') } }
32
+ # The candidate personal phone number
33
+ field :phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
34
+ # List of candidate social links
35
+ field :social_links, T.nilable(T::Array[::StackOne::Shared::SocialLink]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('social_links') } }
36
+ # Candidate title
37
+ field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
20
38
 
21
39
 
22
- sig { params(email: T.nilable(::String), first_name: T.nilable(::String), last_name: T.nilable(::String)).void }
23
- def initialize(email: nil, first_name: nil, last_name: nil)
40
+ sig { params(company: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_number: T.nilable(::String), social_links: T.nilable(T::Array[::StackOne::Shared::SocialLink]), title: T.nilable(::String)).void }
41
+ def initialize(company: nil, country: nil, email: nil, first_name: nil, hired_at: nil, last_name: nil, name: nil, phone: nil, phone_number: nil, social_links: nil, title: nil)
42
+ @company = company
43
+ @country = country
24
44
  @email = email
25
45
  @first_name = first_name
46
+ @hired_at = hired_at
26
47
  @last_name = last_name
48
+ @name = name
49
+ @phone = phone
50
+ @phone_number = phone_number
51
+ @social_links = social_links
52
+ @title = title
27
53
  end
28
54
  end
29
55
  end
@@ -11,22 +11,16 @@ module StackOne
11
11
  class AtsCreateCandidateRequestDto < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
- # List of candidate application IDs
15
- field :application_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_ids') } }
16
14
  # Candidate company
17
15
  field :company, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company') } }
18
- # Candidate created date
19
- field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
16
+ # Candidate country
17
+ field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
20
18
  # Candidate email
21
19
  field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
22
- # List of candidate emails
23
- field :emails, T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('emails') } }
24
20
  # Candidate first name
25
21
  field :first_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
26
22
  # Candidate hired date
27
23
  field :hired_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hired_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
28
- # Unique identifier
29
- field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
30
24
  # Candidate last name
31
25
  field :last_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
32
26
  # Candidate name
@@ -35,36 +29,27 @@ module StackOne
35
29
  #
36
30
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
37
31
  field :phone, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone') } }
38
- # List of candidate phone numbers including the type of the number when available
39
- field :phone_numbers, T.nilable(T::Array[::StackOne::Shared::PhoneNumber]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_numbers') } }
40
- # Provider's unique identifier
41
- field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
32
+ # The candidate personal phone number
33
+ field :phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_number') } }
42
34
  # List of candidate social links
43
35
  field :social_links, T.nilable(T::Array[::StackOne::Shared::SocialLink]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('social_links') } }
44
36
  # Candidate title
45
37
  field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
46
- # Candidate updated date
47
- field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
48
38
 
49
39
 
50
- sig { params(application_ids: T.nilable(T::Array[::String]), company: T.nilable(::String), created_at: T.nilable(::DateTime), email: T.nilable(::String), emails: T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), id: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_numbers: T.nilable(T::Array[::StackOne::Shared::PhoneNumber]), remote_id: T.nilable(::String), social_links: T.nilable(T::Array[::StackOne::Shared::SocialLink]), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
51
- def initialize(application_ids: nil, company: nil, created_at: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_id: nil, social_links: nil, title: nil, updated_at: nil)
52
- @application_ids = application_ids
40
+ sig { params(company: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_number: T.nilable(::String), social_links: T.nilable(T::Array[::StackOne::Shared::SocialLink]), title: T.nilable(::String)).void }
41
+ def initialize(company: nil, country: nil, email: nil, first_name: nil, hired_at: nil, last_name: nil, name: nil, phone: nil, phone_number: nil, social_links: nil, title: nil)
53
42
  @company = company
54
- @created_at = created_at
43
+ @country = country
55
44
  @email = email
56
- @emails = emails
57
45
  @first_name = first_name
58
46
  @hired_at = hired_at
59
- @id = id
60
47
  @last_name = last_name
61
48
  @name = name
62
49
  @phone = phone
63
- @phone_numbers = phone_numbers
64
- @remote_id = remote_id
50
+ @phone_number = phone_number
65
51
  @social_links = social_links
66
52
  @title = title
67
- @updated_at = updated_at
68
53
  end
69
54
  end
70
55
  end
@@ -11,6 +11,8 @@ module StackOne
11
11
  class AtsDocumentApiModel < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # The category of the file
15
+ field :category, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
14
16
  # The content of the file
15
17
  field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
16
18
  # The creation date of the file
@@ -29,8 +31,9 @@ module StackOne
29
31
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
30
32
 
31
33
 
32
- sig { params(contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::AtsDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
33
- def initialize(contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, type: nil, updated_at: nil)
34
+ sig { params(category: T.nilable(::String), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::AtsDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
35
+ def initialize(category: nil, contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, type: nil, updated_at: nil)
36
+ @category = category
34
37
  @contents = contents
35
38
  @created_at = created_at
36
39
  @id = id
@@ -8,15 +8,15 @@ module StackOne
8
8
  module Shared
9
9
 
10
10
 
11
- class AtsUpdateCandidatesRequestDto < ::StackOne::Utils::FieldAugmented
11
+ class AtsUpdateCandidateRequestDto < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # List of candidate application IDs
15
15
  field :application_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_ids') } }
16
16
  # Candidate company
17
17
  field :company, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company') } }
18
- # Candidate created date
19
- field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
18
+ # Candidate country
19
+ field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
20
20
  # Candidate email
21
21
  field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
22
22
  # List of candidate emails
@@ -25,7 +25,7 @@ module StackOne
25
25
  field :first_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
26
26
  # Candidate hired date
27
27
  field :hired_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hired_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
28
- # The ID of the candidate to update.
28
+ # Unique identifier
29
29
  field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
30
30
  # Candidate last name
31
31
  field :last_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
@@ -43,15 +43,13 @@ module StackOne
43
43
  field :social_links, T.nilable(T::Array[::StackOne::Shared::SocialLink]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('social_links') } }
44
44
  # Candidate title
45
45
  field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
46
- # Candidate updated date
47
- field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
48
46
 
49
47
 
50
- sig { params(application_ids: T.nilable(T::Array[::String]), company: T.nilable(::String), created_at: T.nilable(::DateTime), email: T.nilable(::String), emails: T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), id: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_numbers: T.nilable(T::Array[::StackOne::Shared::PhoneNumber]), remote_id: T.nilable(::String), social_links: T.nilable(T::Array[::StackOne::Shared::SocialLink]), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
51
- def initialize(application_ids: nil, company: nil, created_at: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_id: nil, social_links: nil, title: nil, updated_at: nil)
48
+ sig { params(application_ids: T.nilable(T::Array[::String]), company: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), emails: T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), id: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_numbers: T.nilable(T::Array[::StackOne::Shared::PhoneNumber]), remote_id: T.nilable(::String), social_links: T.nilable(T::Array[::StackOne::Shared::SocialLink]), title: T.nilable(::String)).void }
49
+ def initialize(application_ids: nil, company: nil, country: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_id: nil, social_links: nil, title: nil)
52
50
  @application_ids = application_ids
53
51
  @company = company
54
- @created_at = created_at
52
+ @country = country
55
53
  @email = email
56
54
  @emails = emails
57
55
  @first_name = first_name
@@ -64,7 +62,6 @@ module StackOne
64
62
  @remote_id = remote_id
65
63
  @social_links = social_links
66
64
  @title = title
67
- @updated_at = updated_at
68
65
  end
69
66
  end
70
67
  end
@@ -15,6 +15,8 @@ module StackOne
15
15
  field :application_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_ids') } }
16
16
  # Candidate company
17
17
  field :company, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company') } }
18
+ # Candidate country
19
+ field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
18
20
  # Candidate created date
19
21
  field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
20
22
  # Candidate email
@@ -47,10 +49,11 @@ module StackOne
47
49
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
48
50
 
49
51
 
50
- sig { params(application_ids: T.nilable(T::Array[::String]), company: T.nilable(::String), created_at: T.nilable(::DateTime), email: T.nilable(::String), emails: T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), id: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_numbers: T.nilable(T::Array[::StackOne::Shared::PhoneNumber]), remote_id: T.nilable(::String), social_links: T.nilable(T::Array[::StackOne::Shared::SocialLink]), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
51
- def initialize(application_ids: nil, company: nil, created_at: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_id: nil, social_links: nil, title: nil, updated_at: nil)
52
+ sig { params(application_ids: T.nilable(T::Array[::String]), company: T.nilable(::String), country: T.nilable(::String), created_at: T.nilable(::DateTime), email: T.nilable(::String), emails: T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), id: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_numbers: T.nilable(T::Array[::StackOne::Shared::PhoneNumber]), remote_id: T.nilable(::String), social_links: T.nilable(T::Array[::StackOne::Shared::SocialLink]), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
53
+ def initialize(application_ids: nil, company: nil, country: nil, created_at: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_id: nil, social_links: nil, title: nil, updated_at: nil)
52
54
  @application_ids = application_ids
53
55
  @company = company
56
+ @country = country
54
57
  @created_at = created_at
55
58
  @email = email
56
59
  @emails = emails
@@ -11,6 +11,8 @@ module StackOne
11
11
  class Document < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # The category of the file
15
+ field :category, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
14
16
  # The content of the file
15
17
  field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
16
18
  # The creation date of the file
@@ -27,8 +29,9 @@ module StackOne
27
29
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
28
30
 
29
31
 
30
- sig { params(contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
31
- def initialize(contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, updated_at: nil)
32
+ sig { params(category: T.nilable(::String), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
33
+ def initialize(category: nil, contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, updated_at: nil)
34
+ @category = category
32
35
  @contents = contents
33
36
  @created_at = created_at
34
37
  @id = id
@@ -11,6 +11,8 @@ module StackOne
11
11
  class HrisDocumentApiModel < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # The category of the file
15
+ field :category, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
14
16
  # The content of the file
15
17
  field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
16
18
  # The creation date of the file
@@ -29,8 +31,9 @@ module StackOne
29
31
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
30
32
 
31
33
 
32
- sig { params(contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::HrisDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
33
- def initialize(contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, type: nil, updated_at: nil)
34
+ sig { params(category: T.nilable(::String), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::HrisDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
35
+ def initialize(category: nil, contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, type: nil, updated_at: nil)
36
+ @category = category
34
37
  @contents = contents
35
38
  @created_at = created_at
36
39
  @id = id
@@ -17,6 +17,7 @@ module StackOne
17
17
  ARCHIVED = new('archived')
18
18
  CLOSED = new('closed')
19
19
  OPEN = new('open')
20
+ DELETED = new('deleted')
20
21
  UNMAPPED_VALUE = new('unmapped_value')
21
22
  end
22
23
  end
@@ -11,6 +11,8 @@ module StackOne
11
11
  class WorkEligibilityDocument < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # The category of the file
15
+ field :category, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
14
16
  # The content of the file
15
17
  field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
16
18
  # The creation date of the file
@@ -27,8 +29,9 @@ module StackOne
27
29
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
28
30
 
29
31
 
30
- sig { params(contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
31
- def initialize(contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, updated_at: nil)
32
+ sig { params(category: T.nilable(::String), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
33
+ def initialize(category: nil, contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, updated_at: nil)
34
+ @category = category
32
35
  @contents = contents
33
36
  @created_at = created_at
34
37
  @id = id
@@ -34,13 +34,7 @@ module StackOne
34
34
  autoload :AnswerValue, 'stack_one/models/shared/answer_value.rb'
35
35
  autoload :Type, 'stack_one/models/shared/type.rb'
36
36
  autoload :Answer, 'stack_one/models/shared/answer.rb'
37
- autoload :CandidateResult, 'stack_one/models/shared/candidateresult.rb'
38
- autoload :RawResponse, 'stack_one/models/shared/rawresponse.rb'
39
- autoload :Candidate, 'stack_one/models/shared/candidate.rb'
40
37
  autoload :SocialLink, 'stack_one/models/shared/sociallink.rb'
41
- autoload :PhoneNumberType, 'stack_one/models/shared/phonenumber_type.rb'
42
- autoload :PhoneNumber, 'stack_one/models/shared/phonenumber.rb'
43
- autoload :CandidateEmail, 'stack_one/models/shared/candidateemail.rb'
44
38
  autoload :AtsCreateCandidateRequestDto, 'stack_one/models/shared/atscreatecandidaterequestdto.rb'
45
39
  autoload :AtsCreateNotesRequestDtoValue, 'stack_one/models/shared/atscreatenotesrequestdto_value.rb'
46
40
  autoload :Visibility, 'stack_one/models/shared/visibility.rb'
@@ -51,6 +45,7 @@ module StackOne
51
45
  autoload :AtsCreateOfferRequestDto, 'stack_one/models/shared/atscreateofferrequestdto.rb'
52
46
  autoload :OfferHistory, 'stack_one/models/shared/offerhistory.rb'
53
47
  autoload :ApplicationResult, 'stack_one/models/shared/applicationresult.rb'
48
+ autoload :RawResponse, 'stack_one/models/shared/rawresponse.rb'
54
49
  autoload :ApplicationValue, 'stack_one/models/shared/application_value.rb'
55
50
  autoload :ApplicationStatus, 'stack_one/models/shared/application_status.rb'
56
51
  autoload :ApplicationCandidate, 'stack_one/models/shared/application_candidate.rb'
@@ -66,6 +61,9 @@ module StackOne
66
61
  autoload :ContentValue, 'stack_one/models/shared/content_value.rb'
67
62
  autoload :FileFormat, 'stack_one/models/shared/file_format.rb'
68
63
  autoload :Content, 'stack_one/models/shared/content.rb'
64
+ autoload :PhoneNumberType, 'stack_one/models/shared/phonenumber_type.rb'
65
+ autoload :PhoneNumber, 'stack_one/models/shared/phonenumber.rb'
66
+ autoload :CandidateEmail, 'stack_one/models/shared/candidateemail.rb'
69
67
  autoload :ApplicationAttachmentValue, 'stack_one/models/shared/applicationattachment_value.rb'
70
68
  autoload :ContentType, 'stack_one/models/shared/content_type.rb'
71
69
  autoload :ApplicationAttachment, 'stack_one/models/shared/applicationattachment.rb'
@@ -80,6 +78,8 @@ module StackOne
80
78
  autoload :ScorecardSection, 'stack_one/models/shared/scorecardsection.rb'
81
79
  autoload :FieldType, 'stack_one/models/shared/field_type.rb'
82
80
  autoload :Field, 'stack_one/models/shared/field.rb'
81
+ autoload :CandidateResult, 'stack_one/models/shared/candidateresult.rb'
82
+ autoload :Candidate, 'stack_one/models/shared/candidate.rb'
83
83
  autoload :NoteResult, 'stack_one/models/shared/noteresult.rb'
84
84
  autoload :NoteValue, 'stack_one/models/shared/note_value.rb'
85
85
  autoload :NoteVisibility, 'stack_one/models/shared/note_visibility.rb'
@@ -145,7 +145,7 @@ module StackOne
145
145
  autoload :UsersPaginated, 'stack_one/models/shared/userspaginated.rb'
146
146
  autoload :UpdateResult, 'stack_one/models/shared/updateresult.rb'
147
147
  autoload :AtsUpdateApplicationRequestDto, 'stack_one/models/shared/atsupdateapplicationrequestdto.rb'
148
- autoload :AtsUpdateCandidatesRequestDto, 'stack_one/models/shared/atsupdatecandidatesrequestdto.rb'
148
+ autoload :AtsUpdateCandidateRequestDto, 'stack_one/models/shared/atsupdatecandidaterequestdto.rb'
149
149
  autoload :ContactResult, 'stack_one/models/shared/contactresult.rb'
150
150
  autoload :Contact, 'stack_one/models/shared/contact.rb'
151
151
  autoload :CrmCreateContactRequestDto, 'stack_one/models/shared/crmcreatecontactrequestdto.rb'
@@ -38,9 +38,9 @@ module StackOne
38
38
  @security = security
39
39
  @language = 'ruby'
40
40
  @openapi_doc_version = '1.0.0'
41
- @sdk_version = '0.2.15'
42
- @gen_version = '2.312.1'
43
- @user_agent = 'speakeasy-sdk/ruby 0.2.15 2.312.1 1.0.0 stackone_client'
41
+ @sdk_version = '0.2.17'
42
+ @gen_version = '2.319.7'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.2.17 2.319.7 1.0.0 stackone_client'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackone_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - StackOne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-22 00:00:00.000000000 Z
11
+ date: 2024-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -380,7 +380,7 @@ files:
380
380
  - lib/stack_one/models/shared/atslocationresult.rb
381
381
  - lib/stack_one/models/shared/atslocationspaginated.rb
382
382
  - lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb
383
- - lib/stack_one/models/shared/atsupdatecandidatesrequestdto.rb
383
+ - lib/stack_one/models/shared/atsupdatecandidaterequestdto.rb
384
384
  - lib/stack_one/models/shared/avatar.rb
385
385
  - lib/stack_one/models/shared/benefit_type.rb
386
386
  - lib/stack_one/models/shared/campaign.rb