peoplegroup-connectors 2.0.0 → 2.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2eed87c16f70ad564d05542540803e4c27be2c855f2a8c8b6f70d10a31e6a7a6
|
4
|
+
data.tar.gz: a36862212b33569eecb56700e81a026155b475e8c4b09acb15430122dee1c1d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad3bcf83c1d45036989e67793220d8b9ff30d02199106bfcb4f55d3f9ad249dac474edc141f65223c7e47e1138938743c5de1db35777e99ed511f87148c3636a
|
7
|
+
data.tar.gz: ad29bec0f5219df3a683ed7f0718e1a1695e353c21994616817e0e1c3bac79000ac26b6ce5fdd639a08f5e9318b5c0a302fbb2743f18e246da0c649ada365999
|
@@ -108,6 +108,31 @@ module PeopleGroup
|
|
108
108
|
retry_on_error { @client.candidates(id, options) }
|
109
109
|
end
|
110
110
|
|
111
|
+
# https://developer.greenhouse.io/harvest.html#get-list-scorecards
|
112
|
+
# @param id [String|Integer|nil] The ID of the candidate to fetch, if nil fetches all scorecards.
|
113
|
+
# @param options [Hash] The options to filter the candidates by.
|
114
|
+
# skip_count whether or not to skip the count of records. Defaults to true.
|
115
|
+
# created_before Return only scorecards that were created before this timestamp. Timestamp must be in in ISO-8601 format.
|
116
|
+
# created_after Return only scorecards that were created at or after this timestamp. Timestamp must be in in ISO-8601 format.
|
117
|
+
# updated_before Return only scorecards that were updated before this timestamp. Timestamp must be in in ISO-8601 format.
|
118
|
+
# updated_after Return only scorecards that were updated at or after this timestamp. Timestamp must be in in ISO-8601 format.
|
119
|
+
# @return [Array<Hash>] candidates matching the specified filter.
|
120
|
+
def scorecards(id = nil, options = {})
|
121
|
+
options[:skip_count] ||= true
|
122
|
+
options[:page] ||= 1
|
123
|
+
scorecards = []
|
124
|
+
|
125
|
+
loop do
|
126
|
+
results = retry_on_error { @client.all_scorecards(id, **options) }
|
127
|
+
break if results.empty?
|
128
|
+
|
129
|
+
scorecards += results
|
130
|
+
options[:page] += 1
|
131
|
+
end
|
132
|
+
|
133
|
+
scorecards
|
134
|
+
end
|
135
|
+
|
111
136
|
# Paginate through a list of users in Greenhouse.
|
112
137
|
# @return [Array<Hash>] The users in Greenhouse.
|
113
138
|
# @see https://developers.greenhouse.io/harvest.html#get-list-users
|
@@ -126,6 +151,11 @@ module PeopleGroup
|
|
126
151
|
users
|
127
152
|
end
|
128
153
|
|
154
|
+
# https://developers.greenhouse.io/harvest.html#get-retrieve-job
|
155
|
+
def jobs(id = nil, options = {})
|
156
|
+
retry_on_error { @client.jobs(id, options) }
|
157
|
+
end
|
158
|
+
|
129
159
|
# Find an application by id.
|
130
160
|
# @param application_id [String|Integer] The ID of the application to fetch.
|
131
161
|
# @return [Hash] The application data.
|
@@ -240,8 +240,8 @@ module PeopleGroup
|
|
240
240
|
Workday::Report.call(url: ENV.fetch('WORKDAY_MANAGER_REPORT', nil))
|
241
241
|
end
|
242
242
|
|
243
|
-
def add_bonus(employee_number, comment)
|
244
|
-
@workday.add_bonus(employee_number, comment)
|
243
|
+
def add_bonus(employee_number, comment, auto_complete: false)
|
244
|
+
@workday.add_bonus(employee_number, comment: comment, auto_complete: auto_complete)
|
245
245
|
end
|
246
246
|
|
247
247
|
# List active departments from Workday.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peoplegroup-connectors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lien van den steen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|