stackone_client 0.2.11 → 0.2.13

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: 7d61a0e6dc9d397556a55f1bbd7b2934de6f4887254475987a8c29f999fa908a
4
- data.tar.gz: b01f752833794924abb2ec1597ebebafe3a0a12c350fc5a37fa8afb5fe2b60b9
3
+ metadata.gz: 85fbdbd4aaa328f68d9fed9714d451e1088daf170531e9c782d8a4f487fda28e
4
+ data.tar.gz: 0df74eb7dab0f18685d854ac7888a081f283069046936a8db74b6ce3026388b1
5
5
  SHA512:
6
- metadata.gz: 345fe0dd929c1a681dbb5865640125789349c908b6430d8c9e43aed2fbf21d0bd88e0641725b563241eea2765c9bcde8cb2f497a7ab2fa9321040c35ed621586
7
- data.tar.gz: 8909623f7d088ca19e6aa22d7a96ca70fb50deaa922dbdfa03ab53b41df343eb6af259a6f407ace6ed6287bb7b6feccaae2dbe4db644bc2c2a1a29c99fe9f560
6
+ metadata.gz: 87877046bebc7c9f581191e36b6ee14bef7aae5fd1c8f18d14ac66e4f301b37efb4a0ac66568b3694798371ed1035ab612d07f4b5bcf959e636757f60d5b7341
7
+ data.tar.gz: 17aa119390d606446e14568df7a23f6ac0535ca72925127bf783be2c925982e89006a26b6c585bb584674414e68bae31e549222c7ab259d22cbf8a646f194324
data/lib/stack_one/ats.rb CHANGED
@@ -395,8 +395,8 @@ module StackOne
395
395
  )
396
396
  if r.status == 200
397
397
  if Utils.match_content_type(content_type, 'application/json')
398
- out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::OffersResult)
399
- res.offers_result = out
398
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ScorecardsResult)
399
+ res.scorecards_result = out
400
400
  end
401
401
  elsif [400, 403, 412, 429, 500, 501].include?(r.status)
402
402
  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 scorecard related to the application with the given identifiers was retrieved.
21
- field :offers_result, T.nilable(::StackOne::Shared::OffersResult)
21
+ field :scorecards_result, T.nilable(::StackOne::Shared::ScorecardsResult)
22
22
 
23
23
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, offers_result: T.nilable(::StackOne::Shared::OffersResult)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, offers_result: nil)
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, scorecards_result: T.nilable(::StackOne::Shared::ScorecardsResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, scorecards_result: nil)
26
26
  @content_type = content_type
27
27
  @raw_response = raw_response
28
28
  @status_code = status_code
29
- @offers_result = offers_result
29
+ @scorecards_result = scorecards_result
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
@@ -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 } }
@@ -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,10 +15,18 @@ 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 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) } }
20
+ # Candidate email
21
+ field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
18
22
  # List of candidate emails
19
23
  field :emails, T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('emails') } }
20
24
  # Candidate first name
21
25
  field :first_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
26
+ # Candidate hired date
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
+ # Unique identifier
29
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
22
30
  # Candidate last name
23
31
  field :last_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
24
32
  # Candidate name
@@ -27,20 +35,36 @@ module StackOne
27
35
  #
28
36
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
29
37
  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') } }
42
+ # List of candidate social links
43
+ field :social_links, T.nilable(T::Array[::StackOne::Shared::SocialLink]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('social_links') } }
30
44
  # Candidate title
31
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) } }
32
48
 
33
49
 
34
- sig { params(application_ids: T.nilable(T::Array[::String]), company: 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: T.nilable(::String), title: T.nilable(::String)).void }
35
- def initialize(application_ids: nil, company: nil, emails: nil, first_name: nil, last_name: nil, name: nil, phone: nil, title: nil)
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)
36
52
  @application_ids = application_ids
37
53
  @company = company
54
+ @created_at = created_at
55
+ @email = email
38
56
  @emails = emails
39
57
  @first_name = first_name
58
+ @hired_at = hired_at
59
+ @id = id
40
60
  @last_name = last_name
41
61
  @name = name
42
62
  @phone = phone
63
+ @phone_numbers = phone_numbers
64
+ @remote_id = remote_id
65
+ @social_links = social_links
43
66
  @title = title
67
+ @updated_at = updated_at
44
68
  end
45
69
  end
46
70
  end
@@ -15,10 +15,16 @@ 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 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) } }
20
+ # Candidate email
21
+ field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
18
22
  # List of candidate emails
19
23
  field :emails, T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('emails') } }
20
24
  # Candidate first name
21
25
  field :first_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
26
+ # Candidate hired date
27
+ field :hired_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hired_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
22
28
  # The ID of the candidate to update.
23
29
  field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
24
30
  # Candidate last name
@@ -29,21 +35,36 @@ module StackOne
29
35
  #
30
36
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
31
37
  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') } }
42
+ # List of candidate social links
43
+ field :social_links, T.nilable(T::Array[::StackOne::Shared::SocialLink]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('social_links') } }
32
44
  # Candidate title
33
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) } }
34
48
 
35
49
 
36
- sig { params(application_ids: T.nilable(T::Array[::String]), company: T.nilable(::String), emails: T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), first_name: T.nilable(::String), id: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), title: T.nilable(::String)).void }
37
- def initialize(application_ids: nil, company: nil, emails: nil, first_name: nil, id: nil, last_name: nil, name: nil, phone: nil, title: nil)
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)
38
52
  @application_ids = application_ids
39
53
  @company = company
54
+ @created_at = created_at
55
+ @email = email
40
56
  @emails = emails
41
57
  @first_name = first_name
58
+ @hired_at = hired_at
42
59
  @id = id
43
60
  @last_name = last_name
44
61
  @name = name
45
62
  @phone = phone
63
+ @phone_numbers = phone_numbers
64
+ @remote_id = remote_id
65
+ @social_links = social_links
46
66
  @title = title
67
+ @updated_at = updated_at
47
68
  end
48
69
  end
49
70
  end
@@ -37,6 +37,8 @@ module StackOne
37
37
  field :department, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('department') } }
38
38
  # The employee display name
39
39
  field :display_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('display_name') } }
40
+ # The assigned employee number
41
+ field :employee_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employee_number') } }
40
42
  # The employment work schedule type (e.g., full-time, part-time)
41
43
  field :employment_contract_type, T.nilable(::StackOne::Shared::EmploymentContractType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('employment_contract_type') } }
42
44
  # The employee employment status
@@ -95,8 +97,8 @@ module StackOne
95
97
  field :work_phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
96
98
 
97
99
 
98
- sig { params(avatar: T.nilable(::StackOne::Shared::Avatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company: T.nilable(::StackOne::Shared::EmployeeCompany), company_name: T.nilable(::String), cost_centers: T.nilable(T::Array[::StackOne::Shared::CostCenters]), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_status: T.nilable(::StackOne::Shared::EmploymentStatus), employment_type: T.nilable(::StackOne::Shared::EmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::Ethnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::Gender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HomeLocation), id: T.nilable(::String), job_description: T.nilable(::StackOne::Shared::JobDescription), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::MaritalStatus), name: T.nilable(::String), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::PreferredLanguage), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), updated_at: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::WorkLocation), work_phone_number: T.nilable(::String)).void }
99
- def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, remote_id: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
100
+ sig { params(avatar: T.nilable(::StackOne::Shared::Avatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company: T.nilable(::StackOne::Shared::EmployeeCompany), company_name: T.nilable(::String), cost_centers: T.nilable(T::Array[::StackOne::Shared::CostCenters]), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employee_number: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_status: T.nilable(::StackOne::Shared::EmploymentStatus), employment_type: T.nilable(::StackOne::Shared::EmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::Ethnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::Gender), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HomeLocation), id: T.nilable(::String), job_description: T.nilable(::StackOne::Shared::JobDescription), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::MaritalStatus), name: T.nilable(::String), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::PreferredLanguage), remote_id: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), updated_at: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::WorkLocation), work_phone_number: T.nilable(::String)).void }
101
+ def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employee_number: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, remote_id: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
100
102
  @avatar = avatar
101
103
  @avatar_url = avatar_url
102
104
  @benefits = benefits
@@ -110,6 +112,7 @@ module StackOne
110
112
  @date_of_birth = date_of_birth
111
113
  @department = department
112
114
  @display_name = display_name
115
+ @employee_number = employee_number
113
116
  @employment_contract_type = employment_contract_type
114
117
  @employment_status = employment_status
115
118
  @employment_type = employment_type
@@ -11,35 +11,37 @@ module StackOne
11
11
  class Job < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
-
14
+ # Code of the job
15
15
  field :code, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('code') } }
16
-
17
- field :confidential, T.nilable(::StackOne::Shared::Confidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential'), 'decoder': Utils.enum_from_string(::StackOne::Shared::Confidential, true) } }
16
+ # Confidential status of the job
17
+ field :confidential, T.nilable(T::Array[::StackOne::Shared::Confidential]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential') } }
18
18
  # Date of creation
19
19
  field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
20
-
20
+ # Department ids of the job
21
21
  field :department_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('department_ids') } }
22
-
22
+ # Hiring team for the job.
23
23
  field :hiring_team, T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hiring_team') } }
24
24
  # Unique identifier
25
25
  field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
26
26
  # Interview stages for the job.
27
27
  field :interview_stages, T.nilable(T::Array[::StackOne::Shared::InterviewStage]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stages') } }
28
-
28
+ # Status of the job
29
29
  field :job_status, T.nilable(::StackOne::Shared::JobStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_status') } }
30
-
30
+ # Location ids of the job
31
31
  field :location_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_ids') } }
32
32
  # Provider's unique identifier
33
33
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
34
+ # Status of the job
35
+ #
34
36
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
35
37
  field :status, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
36
-
38
+ # Title of the job
37
39
  field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
38
40
  # Date of last update
39
41
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
40
42
 
41
43
 
42
- sig { params(code: T.nilable(::String), confidential: T.nilable(::StackOne::Shared::Confidential), created_at: T.nilable(::DateTime), department_ids: T.nilable(T::Array[::String]), hiring_team: T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), id: T.nilable(::String), interview_stages: T.nilable(T::Array[::StackOne::Shared::InterviewStage]), job_status: T.nilable(::StackOne::Shared::JobStatus), location_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), status: T.nilable(::String), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
44
+ sig { params(code: T.nilable(::String), confidential: T.nilable(T::Array[::StackOne::Shared::Confidential]), created_at: T.nilable(::DateTime), department_ids: T.nilable(T::Array[::String]), hiring_team: T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), id: T.nilable(::String), interview_stages: T.nilable(T::Array[::StackOne::Shared::InterviewStage]), job_status: T.nilable(::StackOne::Shared::JobStatus), location_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), status: T.nilable(::String), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
43
45
  def initialize(code: nil, confidential: nil, created_at: nil, department_ids: nil, hiring_team: nil, id: nil, interview_stages: nil, job_status: nil, location_ids: nil, remote_id: nil, status: nil, title: nil, updated_at: nil)
44
46
  @code = code
45
47
  @confidential = confidential
@@ -7,7 +7,7 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
-
10
+ # Status of the job
11
11
  class JobStatus < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
@@ -11,15 +11,15 @@ module StackOne
11
11
  class JobHiringTeam < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
-
14
+ # Email of the hiring team member.
15
15
  field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
16
-
16
+ # First name of the hiring team member.
17
17
  field :first_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
18
-
18
+ # Last name of the hiring team member.
19
19
  field :last_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
20
-
20
+ # Role of the hiring team member.
21
21
  field :role, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('role') } }
22
-
22
+ # User ID of the hiring team member.
23
23
  field :user_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_id') } }
24
24
 
25
25
 
@@ -10,9 +10,9 @@ module StackOne
10
10
 
11
11
  class LinkedAccountStatus < T::Enum
12
12
  enums do
13
- ACTIVE = new('Active')
14
- INACTIVE = new('Inactive')
15
- ERROR = new('Error')
13
+ ACTIVE = new('active')
14
+ INACTIVE = new('inactive')
15
+ ERROR = new('error')
16
16
  end
17
17
  end
18
18
 
@@ -0,0 +1,27 @@
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 Shared
9
+
10
+
11
+ class ScorecardsResult < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :data, ::StackOne::Shared::Scorecard, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
16
+
17
+ field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
18
+
19
+
20
+ sig { params(data: ::StackOne::Shared::Scorecard, raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
21
+ def initialize(data: nil, raw: nil)
22
+ @data = data
23
+ @raw = raw
24
+ end
25
+ end
26
+ end
27
+ end
@@ -78,6 +78,12 @@ module StackOne
78
78
  autoload :OfferValue, 'stack_one/models/shared/offer_value.rb'
79
79
  autoload :OfferOfferStatus, 'stack_one/models/shared/offer_offer_status.rb'
80
80
  autoload :Offer, 'stack_one/models/shared/offer.rb'
81
+ autoload :ScorecardsResult, 'stack_one/models/shared/scorecardsresult.rb'
82
+ autoload :OverallRecommendation, 'stack_one/models/shared/overall_recommendation.rb'
83
+ autoload :Scorecard, 'stack_one/models/shared/scorecard.rb'
84
+ autoload :ScorecardSection, 'stack_one/models/shared/scorecardsection.rb'
85
+ autoload :FieldType, 'stack_one/models/shared/field_type.rb'
86
+ autoload :Field, 'stack_one/models/shared/field.rb'
81
87
  autoload :NoteResult, 'stack_one/models/shared/noteresult.rb'
82
88
  autoload :NoteValue, 'stack_one/models/shared/note_value.rb'
83
89
  autoload :NoteVisibility, 'stack_one/models/shared/note_visibility.rb'
@@ -129,11 +135,6 @@ module StackOne
129
135
  autoload :User, 'stack_one/models/shared/user.rb'
130
136
  autoload :HrisDocumentsPaginated, 'stack_one/models/shared/hrisdocumentspaginated.rb'
131
137
  autoload :ScorecardsPaginated, 'stack_one/models/shared/scorecardspaginated.rb'
132
- autoload :OverallRecommendation, 'stack_one/models/shared/overall_recommendation.rb'
133
- autoload :Scorecard, 'stack_one/models/shared/scorecard.rb'
134
- autoload :ScorecardSection, 'stack_one/models/shared/scorecardsection.rb'
135
- autoload :FieldType, 'stack_one/models/shared/field_type.rb'
136
- autoload :Field, 'stack_one/models/shared/field.rb'
137
138
  autoload :ApplicationsPaginated, 'stack_one/models/shared/applicationspaginated.rb'
138
139
  autoload :OffersPaginated, 'stack_one/models/shared/offerspaginated.rb'
139
140
  autoload :NotesPaginated, 'stack_one/models/shared/notespaginated.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.11'
42
- @gen_version = '2.300.0'
43
- @user_agent = 'speakeasy-sdk/ruby 0.2.11 2.300.0 1.0.0 stackone_client'
41
+ @sdk_version = '0.2.13'
42
+ @gen_version = '2.306.3'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.2.13 2.306.3 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.11
4
+ version: 0.2.13
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-08 00:00:00.000000000 Z
11
+ date: 2024-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -622,6 +622,7 @@ files:
622
622
  - lib/stack_one/models/shared/scorecard.rb
623
623
  - lib/stack_one/models/shared/scorecardsection.rb
624
624
  - lib/stack_one/models/shared/scorecardspaginated.rb
625
+ - lib/stack_one/models/shared/scorecardsresult.rb
625
626
  - lib/stack_one/models/shared/security.rb
626
627
  - lib/stack_one/models/shared/setup_information.rb
627
628
  - lib/stack_one/models/shared/sociallink.rb