holivia 0.13.0 → 0.14.0
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 +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +27 -1
- data/SKILL.md +62 -1
- data/lib/holivia/cli/help.rb +18 -0
- data/lib/holivia/cli.rb +4 -0
- data/lib/holivia/commands/contract.rb +41 -0
- data/lib/holivia/commands/employee.rb +48 -0
- data/lib/holivia/commands/enterprise.rb +16 -0
- data/lib/holivia/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fab1251135002a03f719e93cb2f2d1fcb52842e2f5c5fecc3fa8c47c279b8747
|
|
4
|
+
data.tar.gz: 8e2dd66d735bf875c123d42d90c25ab7d853024c5378dc8445d2f8c4eeb233aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0c502ac53052598fff122e0b5bafc5028c7cd2dee25ebc6629879f0a77d17516314608012493d41ee8571cb79802d5a276c43e64d03236f2e86d8e7a4c68e77
|
|
7
|
+
data.tar.gz: 5454072e3f4e4d046b1a8de6e60a9a9641db2a5d16eaf85441de7340e065572f4606c83a603bc4f615ef0c86b02f4a03babf28fa267559375c9fa0602fac3c56
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.14.0] - 2026-10-23
|
|
4
|
+
|
|
5
|
+
- Add `holivia enterprise show <id>` for enterprise details: settings, headquarter, CSM, countries, employees count, and the current contract summary for contract viewers and managers
|
|
6
|
+
- Add `holivia enterprise employee-stats <id>` for aggregate employee counts (total, left, current, current dependents and HR managers), excluding demo employees
|
|
7
|
+
- Add read-only `holivia employee index` and `holivia employee show` commands with enterprise, query, left, HR manager, dependent status, demo, and pagination filters; demo employees are excluded unless `--demo` is given
|
|
8
|
+
- Add read-only `holivia contract index` and `holivia contract show` commands with enterprise, status (`active`, `expiring_soon`, `low_remaining`), and pagination filters
|
|
9
|
+
- Employee responses never include Holivia account data (user id, sign-up, or care status); SKILL.md treats employee data as personal data
|
|
10
|
+
- Employee commands require an employee viewer or manager role; contract commands require a contract viewer or manager role
|
|
11
|
+
- Requires the matching Holivia backoffice API deployment
|
|
12
|
+
|
|
3
13
|
## [0.13.0] - 2026-09-30
|
|
4
14
|
|
|
5
15
|
- Replace terminal password login with browser OAuth authorization using PKCE and existing password/company SSO sign-in.
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Ruby client and command-line interface for the Holivia API.
|
|
4
4
|
|
|
5
|
-
The `holivia` executable is primarily used to manage Holivia backoffice data from the terminal: environments, authentication, selfcare content, objectives, enterprises, communication library items, HR intervention catalog items, HR home highlights, crises, collective interventions, and appointment diagnostics.
|
|
5
|
+
The `holivia` executable is primarily used to manage Holivia backoffice data from the terminal: environments, authentication, selfcare content, objectives, enterprises, employees, contracts, communication library items, HR intervention catalog items, HR home highlights, crises, collective interventions, and appointment diagnostics.
|
|
6
6
|
|
|
7
7
|
Coding agents can use [`SKILL.md`](SKILL.md) as a downloadable usage guide for operating this CLI safely.
|
|
8
8
|
|
|
@@ -186,6 +186,32 @@ Find an enterprise id:
|
|
|
186
186
|
holivia enterprise lookup --query acme
|
|
187
187
|
```
|
|
188
188
|
|
|
189
|
+
Show details for an enterprise:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
holivia enterprise show 123
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Show employee counts for an enterprise:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
holivia enterprise employee-stats 123
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
List and inspect employees of an enterprise:
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
holivia employee index --enterprise-id 123 --query durand --left false
|
|
205
|
+
holivia employee show 42
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
List and inspect contracts of an enterprise:
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
holivia contract index --enterprise-id 123 --status active
|
|
212
|
+
holivia contract show 7
|
|
213
|
+
```
|
|
214
|
+
|
|
189
215
|
List crises for an enterprise:
|
|
190
216
|
|
|
191
217
|
```bash
|
data/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Use this skill when you need to operate the Holivia API through the `holivia` command-line tool.
|
|
4
4
|
|
|
5
|
-
The CLI manages Holivia backoffice data: environments, authentication, selfcare contents, objectives, selfcare-objective associations, enterprises, HR intervention catalog items, HR home highlights, crises, collective interventions, and appointment video diagnostics.
|
|
5
|
+
The CLI manages Holivia backoffice data: environments, authentication, selfcare contents, objectives, selfcare-objective associations, enterprises, employees, contracts, HR intervention catalog items, HR home highlights, crises, collective interventions, and appointment video diagnostics.
|
|
6
6
|
|
|
7
7
|
## Preconditions
|
|
8
8
|
|
|
@@ -21,6 +21,7 @@ Use `holivia` in examples below. If working from a checkout before installation,
|
|
|
21
21
|
- Before creating or updating intervention catalog items, run `holivia intervention schema` and use its returned enum values and locales as the source of truth.
|
|
22
22
|
- Before creating or updating HR home highlights, run `holivia highlight schema` and use its returned enum values and locales as the source of truth.
|
|
23
23
|
- For destructive actions such as `holivia env remove`, `holivia selfcare objective delete`, `holivia crisis delete`, or `holivia collective-intervention delete`, confirm the target environment and ID first unless the user explicitly requested that exact action.
|
|
24
|
+
- Employee data is personal data. Query only the employees a task needs, do not copy employee lists into unrelated output, and never try to infer whether an employee has a Holivia account.
|
|
24
25
|
- Treat all command output as JSON except informational commands such as `holivia env`, `holivia env list`, `holivia login`, `holivia logout`, `holivia version`, and `holivia --help`.
|
|
25
26
|
|
|
26
27
|
## Installation
|
|
@@ -367,6 +368,66 @@ Filter enterprise lookup:
|
|
|
367
368
|
holivia enterprise index --headquarter-id 10 --user-id 20 --page 1 --per-page 25
|
|
368
369
|
```
|
|
369
370
|
|
|
371
|
+
Show details for one enterprise (settings, headquarter, CSM, countries, employees count; the current contract is included only for contract viewers and managers):
|
|
372
|
+
|
|
373
|
+
```bash
|
|
374
|
+
holivia enterprise show 123
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
Show aggregate employee counts for one enterprise (excludes demo employees; never includes account sign-up data):
|
|
378
|
+
|
|
379
|
+
```bash
|
|
380
|
+
holivia enterprise employee-stats 123
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
## Employees
|
|
384
|
+
|
|
385
|
+
Requires an employee viewer or manager role. Responses never include Holivia account data (no user id, sign-up, or care status). `employee index` excludes demo employees unless `--demo true` (demo employees only) or `--demo all` (everyone) is given.
|
|
386
|
+
|
|
387
|
+
List employees of an enterprise:
|
|
388
|
+
|
|
389
|
+
```bash
|
|
390
|
+
holivia employee index --enterprise-id 123 --page 1 --per-page 25
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
Search and filter employees:
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
holivia employee index --enterprise-id 123 --query durand --left false --hr-manager true
|
|
397
|
+
holivia employee index --enterprise-id 123 --dependent-status dependent
|
|
398
|
+
holivia employee index --enterprise-id 123 --demo true
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
Show one employee:
|
|
402
|
+
|
|
403
|
+
```bash
|
|
404
|
+
holivia employee show 42
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
## Contracts
|
|
408
|
+
|
|
409
|
+
Requires a contract viewer or manager role.
|
|
410
|
+
|
|
411
|
+
List contracts of an enterprise, most recent first:
|
|
412
|
+
|
|
413
|
+
```bash
|
|
414
|
+
holivia contract index --enterprise-id 123
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
Find active contracts, contracts expiring within three months, or contracts with low remaining sessions:
|
|
418
|
+
|
|
419
|
+
```bash
|
|
420
|
+
holivia contract index --status active
|
|
421
|
+
holivia contract index --status expiring_soon
|
|
422
|
+
holivia contract index --status low_remaining
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
Show every setting of one contract, including notes:
|
|
426
|
+
|
|
427
|
+
```bash
|
|
428
|
+
holivia contract show 7
|
|
429
|
+
```
|
|
430
|
+
|
|
370
431
|
## Crises
|
|
371
432
|
|
|
372
433
|
List crises:
|
data/lib/holivia/cli/help.rb
CHANGED
|
@@ -77,6 +77,24 @@ module Holivia
|
|
|
77
77
|
holivia enterprise index [--query TEXT --headquarter-id ID --user-id ID --page N --per-page N]
|
|
78
78
|
Find enterprises and their enterprise_id values
|
|
79
79
|
holivia enterprise lookup [options] Alias for enterprise index
|
|
80
|
+
holivia enterprise show <id> Show enterprise details: settings, headquarter, CSM,
|
|
81
|
+
countries, employees count, and the current contract
|
|
82
|
+
for contract viewers
|
|
83
|
+
holivia enterprise employee-stats <id> Show aggregate employee counts (total, left, current,
|
|
84
|
+
current dependents, current HR managers)
|
|
85
|
+
|
|
86
|
+
Employees:
|
|
87
|
+
holivia employee index [--enterprise-id ID --query TEXT --left true|false --hr-manager true|false
|
|
88
|
+
--dependent-status creator|dependent|not_dependent --demo true|false|all
|
|
89
|
+
--page N --per-page N]
|
|
90
|
+
List employees; never includes Holivia account data.
|
|
91
|
+
Demo employees are excluded unless --demo is given
|
|
92
|
+
holivia employee show <id> Show one employee with its enterprise
|
|
93
|
+
|
|
94
|
+
Contracts:
|
|
95
|
+
holivia contract index [--enterprise-id ID --status active|expiring_soon|low_remaining --page N --per-page N]
|
|
96
|
+
List contracts, most recent first
|
|
97
|
+
holivia contract show <id> Show every setting of one contract with its enterprise
|
|
80
98
|
|
|
81
99
|
Communication Items:
|
|
82
100
|
holivia communication index [--page N --per-page N --query TEXT --locale LOCALE --document-type TYPE]
|
data/lib/holivia/cli.rb
CHANGED
|
@@ -16,6 +16,8 @@ require_relative "commands/communication_item"
|
|
|
16
16
|
require_relative "commands/intervention_item"
|
|
17
17
|
require_relative "commands/hr_home_highlight"
|
|
18
18
|
require_relative "commands/enterprise"
|
|
19
|
+
require_relative "commands/employee"
|
|
20
|
+
require_relative "commands/contract"
|
|
19
21
|
require_relative "commands/crisis"
|
|
20
22
|
require_relative "commands/collective_intervention"
|
|
21
23
|
require_relative "commands/support_phone_number"
|
|
@@ -37,6 +39,8 @@ module Holivia
|
|
|
37
39
|
when "intervention" then Commands::InterventionItem.route(args)
|
|
38
40
|
when "highlight" then Commands::HrHomeHighlight.route(args)
|
|
39
41
|
when "enterprise" then Commands::Enterprise.route(args)
|
|
42
|
+
when "employee" then Commands::Employee.route(args)
|
|
43
|
+
when "contract" then Commands::Contract.route(args)
|
|
40
44
|
when "crisis" then Commands::Crisis.route(args)
|
|
41
45
|
when "collective-intervention", "collective_intervention", "collective" then Commands::CollectiveIntervention.route(args)
|
|
42
46
|
when "support-phone-numbers" then Commands::SupportPhoneNumber.route(args)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "base"
|
|
4
|
+
|
|
5
|
+
module Holivia
|
|
6
|
+
module Commands
|
|
7
|
+
class Contract < Base
|
|
8
|
+
BASE_PATH = "/api/v1/backoffice/contracts"
|
|
9
|
+
|
|
10
|
+
def self.route(args)
|
|
11
|
+
subcommand = args.shift
|
|
12
|
+
case subcommand
|
|
13
|
+
when "index" then new.index(args)
|
|
14
|
+
when "show" then new.show(args)
|
|
15
|
+
else warn "Unknown contract command: #{subcommand}"
|
|
16
|
+
exit 1
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def index(args = [])
|
|
21
|
+
params = {}
|
|
22
|
+
OptionParser.new do |opts|
|
|
23
|
+
opts.banner = "Usage: holivia contract index [options]"
|
|
24
|
+
opts.on("--enterprise-id ID", Integer) { |v| params[:enterprise_id] = v }
|
|
25
|
+
opts.on("--status STATUS") { |v| params[:status] = v }
|
|
26
|
+
opts.on("--page N", Integer) { |v| params[:page] = v }
|
|
27
|
+
opts.on("--per-page N", Integer) { |v| params[:per_page] = v }
|
|
28
|
+
end.parse!(args)
|
|
29
|
+
|
|
30
|
+
output(client.get(BASE_PATH, params: params))
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def show(args = [])
|
|
34
|
+
id = args.shift
|
|
35
|
+
abort "Usage: holivia contract show <id>" unless id
|
|
36
|
+
|
|
37
|
+
output(client.get("#{BASE_PATH}/#{id}"))
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "base"
|
|
4
|
+
|
|
5
|
+
module Holivia
|
|
6
|
+
module Commands
|
|
7
|
+
class Employee < Base
|
|
8
|
+
BASE_PATH = "/api/v1/backoffice/employees"
|
|
9
|
+
BOOLEAN_VALUES = %w[true false].freeze
|
|
10
|
+
DEPENDENT_STATUSES = %w[creator dependent not_dependent].freeze
|
|
11
|
+
DEMO_VALUES = %w[true false all].freeze
|
|
12
|
+
|
|
13
|
+
def self.route(args)
|
|
14
|
+
subcommand = args.shift
|
|
15
|
+
case subcommand
|
|
16
|
+
when "index" then new.index(args)
|
|
17
|
+
when "show" then new.show(args)
|
|
18
|
+
else warn "Unknown employee command: #{subcommand}"
|
|
19
|
+
exit 1
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def index(args = []) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
|
24
|
+
params = {}
|
|
25
|
+
OptionParser.new do |opts|
|
|
26
|
+
opts.banner = "Usage: holivia employee index [options]"
|
|
27
|
+
opts.on("--enterprise-id ID", Integer) { |v| params[:enterprise_id] = v }
|
|
28
|
+
opts.on("--query TEXT") { |v| params[:query] = v }
|
|
29
|
+
opts.on("--left BOOL", BOOLEAN_VALUES) { |v| params[:left] = v }
|
|
30
|
+
opts.on("--hr-manager BOOL", BOOLEAN_VALUES) { |v| params[:hr_manager] = v }
|
|
31
|
+
opts.on("--dependent-status STATUS", DEPENDENT_STATUSES) { |v| params[:dependent_status] = v }
|
|
32
|
+
opts.on("--demo VALUE", DEMO_VALUES) { |v| params[:demo] = v }
|
|
33
|
+
opts.on("--page N", Integer) { |v| params[:page] = v }
|
|
34
|
+
opts.on("--per-page N", Integer) { |v| params[:per_page] = v }
|
|
35
|
+
end.parse!(args)
|
|
36
|
+
|
|
37
|
+
output(client.get(BASE_PATH, params: params))
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def show(args = [])
|
|
41
|
+
id = args.shift
|
|
42
|
+
abort "Usage: holivia employee show <id>" unless id
|
|
43
|
+
|
|
44
|
+
output(client.get("#{BASE_PATH}/#{id}"))
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -11,6 +11,8 @@ module Holivia
|
|
|
11
11
|
subcommand = args.shift
|
|
12
12
|
case subcommand
|
|
13
13
|
when "index", "lookup", "search" then new.index(args)
|
|
14
|
+
when "show" then new.show(args)
|
|
15
|
+
when "employee-stats" then new.employee_stats(args)
|
|
14
16
|
else warn "Unknown enterprise command: #{subcommand}"
|
|
15
17
|
exit 1
|
|
16
18
|
end
|
|
@@ -29,6 +31,20 @@ module Holivia
|
|
|
29
31
|
|
|
30
32
|
output(client.get(BASE_PATH, params: params))
|
|
31
33
|
end
|
|
34
|
+
|
|
35
|
+
def show(args = [])
|
|
36
|
+
id = args.shift
|
|
37
|
+
abort "Usage: holivia enterprise show <id>" unless id
|
|
38
|
+
|
|
39
|
+
output(client.get("#{BASE_PATH}/#{id}"))
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def employee_stats(args = [])
|
|
43
|
+
id = args.shift
|
|
44
|
+
abort "Usage: holivia enterprise employee-stats <id>" unless id
|
|
45
|
+
|
|
46
|
+
output(client.get("#{BASE_PATH}/#{id}/employee_stats"))
|
|
47
|
+
end
|
|
32
48
|
end
|
|
33
49
|
end
|
|
34
50
|
end
|
data/lib/holivia/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: holivia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Holivia
|
|
@@ -66,7 +66,9 @@ files:
|
|
|
66
66
|
- lib/holivia/commands/base.rb
|
|
67
67
|
- lib/holivia/commands/collective_intervention.rb
|
|
68
68
|
- lib/holivia/commands/communication_item.rb
|
|
69
|
+
- lib/holivia/commands/contract.rb
|
|
69
70
|
- lib/holivia/commands/crisis.rb
|
|
71
|
+
- lib/holivia/commands/employee.rb
|
|
70
72
|
- lib/holivia/commands/enterprise.rb
|
|
71
73
|
- lib/holivia/commands/env.rb
|
|
72
74
|
- lib/holivia/commands/format.rb
|