stackone_client 0.2.10 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: def77857be8cc62c88ecfdf9c3040a4dc24fe263402352a431f525672b4a62ff
4
- data.tar.gz: 452918ae345bfedb19ab5e72062d968e3786a961d3f648c7c52e094525b5ebc5
3
+ metadata.gz: 1a2370d2202ea141703210c78634852bd6a6410ee98ec2f869b84f5d59f1180e
4
+ data.tar.gz: 6de582ed7d30283dd4df1c31eb3ab54d94f530630dac49caebc2caacdac898b2
5
5
  SHA512:
6
- metadata.gz: 4abc91b27af93bdab8ca85dd26b5e8a1d037fcbeae52e60a34e8536ad9c968bf23cefb631637dd02e19a1b6b6b1fd864a5f3a813bf80a1be5ca543a4c28a6de5
7
- data.tar.gz: 4767ac490595e362f1d2829377e0b0bf20e963eae08b2a11d9ebf95ae5da0a0b59b792a97d8387bcbffe1ef529bd0fe83d4b2426710dc295bb4896fc5404e7f0
6
+ metadata.gz: c6438e8365e9c469b029a20504074bbf7d9150cc6ad4a27992dc7f088492a128584e411eda05adccfb242d634b876e6a3cff9e414f623ca6a5985b62d6cf0502
7
+ data.tar.gz: d775a2ded942ab55eb16aae9c4eff0467a6d09202de1c79c5af2eb0f315df79f4c15336ca003342dc84fca5ef742a84fbb94376d0e2c0d2c38b26167418953f1
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
@@ -17,6 +17,8 @@ module StackOne
17
17
  field :expand, T.nilable(::String), { 'query_param': { 'field_name': 'expand', 'style': 'form', 'explode': true } }
18
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
+ # Filter for job ID to retrieve a list of applications related to this job
21
+ field :job_id, T.nilable(::String), { 'query_param': { 'field_name': 'job_id', 'style': 'form', 'explode': true } }
20
22
  # The unified cursor
21
23
  field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
22
24
  # The page number of the results to fetch
@@ -37,11 +39,12 @@ module StackOne
37
39
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
38
40
 
39
41
 
40
- sig { params(x_account_id: ::String, expand: T.nilable(::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), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
41
- def initialize(x_account_id: nil, expand: nil, fields_: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
42
+ sig { params(x_account_id: ::String, expand: T.nilable(::String), fields_: T.nilable(::String), job_id: 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), sync_token: T.nilable(::String), updated_after: T.nilable(::String)).void }
43
+ def initialize(x_account_id: nil, expand: nil, fields_: nil, job_id: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
42
44
  @x_account_id = x_account_id
43
45
  @expand = expand
44
46
  @fields_ = fields_
47
+ @job_id = job_id
45
48
  @next_ = next_
46
49
  @page = page
47
50
  @page_size = page_size
@@ -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 } }
@@ -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
 
@@ -24,6 +24,8 @@ module StackOne
24
24
 
25
25
  field :provider, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
26
26
 
27
+ field :status, ::StackOne::Shared::LinkedAccountStatus, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status'), 'decoder': Utils.enum_from_string(::StackOne::Shared::LinkedAccountStatus, false) } }
28
+
27
29
  field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
28
30
 
29
31
  field :credentials, T.nilable(::StackOne::Shared::Credentials), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('credentials') } }
@@ -34,20 +36,24 @@ module StackOne
34
36
 
35
37
  field :setup_information, T.nilable(::StackOne::Shared::SetupInformation), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('setup_information') } }
36
38
 
39
+ field :status_reasons, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status_reasons') } }
40
+
37
41
 
38
- sig { params(active: T::Boolean, created_at: ::DateTime, id: ::String, origin_owner_id: ::String, origin_owner_name: ::String, provider: ::String, updated_at: ::DateTime, credentials: T.nilable(::StackOne::Shared::Credentials), label: T.nilable(::String), origin_username: T.nilable(::String), setup_information: T.nilable(::StackOne::Shared::SetupInformation)).void }
39
- def initialize(active: nil, created_at: nil, id: nil, origin_owner_id: nil, origin_owner_name: nil, provider: nil, updated_at: nil, credentials: nil, label: nil, origin_username: nil, setup_information: nil)
42
+ sig { params(active: T::Boolean, created_at: ::DateTime, id: ::String, origin_owner_id: ::String, origin_owner_name: ::String, provider: ::String, status: ::StackOne::Shared::LinkedAccountStatus, updated_at: ::DateTime, credentials: T.nilable(::StackOne::Shared::Credentials), label: T.nilable(::String), origin_username: T.nilable(::String), setup_information: T.nilable(::StackOne::Shared::SetupInformation), status_reasons: T.nilable(T::Array[::String])).void }
43
+ def initialize(active: nil, created_at: nil, id: nil, origin_owner_id: nil, origin_owner_name: nil, provider: nil, status: nil, updated_at: nil, credentials: nil, label: nil, origin_username: nil, setup_information: nil, status_reasons: nil)
40
44
  @active = active
41
45
  @created_at = created_at
42
46
  @id = id
43
47
  @origin_owner_id = origin_owner_id
44
48
  @origin_owner_name = origin_owner_name
45
49
  @provider = provider
50
+ @status = status
46
51
  @updated_at = updated_at
47
52
  @credentials = credentials
48
53
  @label = label
49
54
  @origin_username = origin_username
50
55
  @setup_information = setup_information
56
+ @status_reasons = status_reasons
51
57
  end
52
58
  end
53
59
  end
@@ -0,0 +1,20 @@
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 LinkedAccountStatus < T::Enum
12
+ enums do
13
+ ACTIVE = new('Active')
14
+ INACTIVE = new('Inactive')
15
+ ERROR = new('Error')
16
+ end
17
+ end
18
+
19
+ end
20
+ end
@@ -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
@@ -7,6 +7,7 @@ module StackOne
7
7
  module Shared
8
8
  autoload :Credentials, 'stack_one/models/shared/credentials.rb'
9
9
  autoload :SetupInformation, 'stack_one/models/shared/setup_information.rb'
10
+ autoload :LinkedAccountStatus, 'stack_one/models/shared/linkedaccount_status.rb'
10
11
  autoload :LinkedAccount, 'stack_one/models/shared/linkedaccount.rb'
11
12
  autoload :LinkedAccountMetaCategory, 'stack_one/models/shared/linkedaccountmeta_category.rb'
12
13
  autoload :LinkedAccountMeta, 'stack_one/models/shared/linkedaccountmeta.rb'
@@ -77,6 +78,12 @@ module StackOne
77
78
  autoload :OfferValue, 'stack_one/models/shared/offer_value.rb'
78
79
  autoload :OfferOfferStatus, 'stack_one/models/shared/offer_offer_status.rb'
79
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'
80
87
  autoload :NoteResult, 'stack_one/models/shared/noteresult.rb'
81
88
  autoload :NoteValue, 'stack_one/models/shared/note_value.rb'
82
89
  autoload :NoteVisibility, 'stack_one/models/shared/note_visibility.rb'
@@ -128,11 +135,6 @@ module StackOne
128
135
  autoload :User, 'stack_one/models/shared/user.rb'
129
136
  autoload :HrisDocumentsPaginated, 'stack_one/models/shared/hrisdocumentspaginated.rb'
130
137
  autoload :ScorecardsPaginated, 'stack_one/models/shared/scorecardspaginated.rb'
131
- autoload :OverallRecommendation, 'stack_one/models/shared/overall_recommendation.rb'
132
- autoload :Scorecard, 'stack_one/models/shared/scorecard.rb'
133
- autoload :ScorecardSection, 'stack_one/models/shared/scorecardsection.rb'
134
- autoload :FieldType, 'stack_one/models/shared/field_type.rb'
135
- autoload :Field, 'stack_one/models/shared/field.rb'
136
138
  autoload :ApplicationsPaginated, 'stack_one/models/shared/applicationspaginated.rb'
137
139
  autoload :OffersPaginated, 'stack_one/models/shared/offerspaginated.rb'
138
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.10'
42
- @gen_version = '2.298.2'
43
- @user_agent = 'speakeasy-sdk/ruby 0.2.10 2.298.2 1.0.0 stackone_client'
41
+ @sdk_version = '0.2.12'
42
+ @gen_version = '2.306.0'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.2.12 2.306.0 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.10
4
+ version: 0.2.12
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-05 00:00:00.000000000 Z
11
+ date: 2024-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -558,6 +558,7 @@ files:
558
558
  - lib/stack_one/models/shared/jobresult.rb
559
559
  - lib/stack_one/models/shared/jobspaginated.rb
560
560
  - lib/stack_one/models/shared/linkedaccount.rb
561
+ - lib/stack_one/models/shared/linkedaccount_status.rb
561
562
  - lib/stack_one/models/shared/linkedaccountmeta.rb
562
563
  - lib/stack_one/models/shared/linkedaccountmeta_category.rb
563
564
  - lib/stack_one/models/shared/list.rb
@@ -621,6 +622,7 @@ files:
621
622
  - lib/stack_one/models/shared/scorecard.rb
622
623
  - lib/stack_one/models/shared/scorecardsection.rb
623
624
  - lib/stack_one/models/shared/scorecardspaginated.rb
625
+ - lib/stack_one/models/shared/scorecardsresult.rb
624
626
  - lib/stack_one/models/shared/security.rb
625
627
  - lib/stack_one/models/shared/setup_information.rb
626
628
  - lib/stack_one/models/shared/sociallink.rb