Repository navigation
First release that is not a pre-release. The client covers what HR-Sync needs to create users and employees in weclapp: users (with licenses, roles, custom attributes, mobile phone number and the invitation mail), employee records with work schedule profiles, custom attribute definitions with their list values, and FakeWeclapp for tests without a tenant. Reads and dry runs have been checked against a real weclapp tenant.
uv add "weclapp-client>=0.1.0,<0.2"Until 1.0, a minor version (0.2) may contain breaking changes, so keep the upper bound.
Some points can only be checked with real writes and come with HR-Sync's first run: whether creating a user sends a mail, how weclapp sets username, the minimal permissions of the API token and the details of the invitation. They are tracked in #9. If weclapp behaves differently from what the client and the fake assume, a patch release follows.
New since 0.1.0a3
client.users.invite(user_id)sends the user weclapp's invitation mail (POST user/id/{id}/invite) and returns the user. weclapp has no dry run for this action, so every call really sends a mail. Like otherPOSTrequests, the call is not repeated if its outcome is unclear (#36).FakeWeclappaccepts invitations for every known user and records them ininvitations. An unknown id gets 404 like the other endpoints (#36).
Integration tests
Tier 1 invites a user id that does not exist, after checking that it does not: weclapp answers with 404, so no mail can go out (P14). The open points of the invitation are described as a manual check in docs/integrationstests.md (German) (#36).
All changes since the first pre-release: v0.1.0a2, v0.1.0a3.