Skip to content

Alpha release 2

Pre-release
Pre-release

Choose a tag to compare

@hf-nsoeker hf-nsoeker released this 30 Oct 15:35
00bb64c

Second pre-release. The client now covers what HR-Sync needs to create users and employees the way the weclapp admin's guide does, and it has been checked against a real weclapp tenant with reads and dry runs. Creating records has not been tested against a tenant yet, so this is still a pre-release.

uv add "weclapp-client>=0.1.0a2,<0.2"

New

  • Employee.entry_date and EmployeeCreate.entry_date (#31).
  • UserCreate.licenses and UserCreate.user_roles (IdReference); User reads them as well (#32).
  • Number and list values of custom attributes: CustomAttribute.of_number() and CustomAttribute.of_selection() (#32).
  • Work schedule profiles: work_schedule_profile_assignments in EmployeeCreate and Employee, and client.work_schedule_profiles to read the profiles (#32).
  • FakeWeclapp: work schedule profiles (#32); like weclapp, it accepts duplicate e-mail addresses (#31) and leaves attributeEntityType empty unless an attribute is of type ENTITY (#32).
  • Python 3.15 support (#25).

Changed

  • Date-only fields are written as midnight German time (Europe/Berlin) instead of midnight UTC, like the weclapp user interface stores them. weclapp rejects anything else as the start date of a work schedule profile. Reading still accepts both forms (#32).
  • Date filters match both forms: Filter.eq() and Filter.ne() with a date become in and notin with both timestamps, and comparisons include or exclude the whole day. Filter.custom_attribute_eq() rejects dates (#32).
  • New runtime dependency tzdata, the time zone data that Windows does not ship (#32).

Integration tests

Tests against a real weclapp tenant: tier 1 only reads and sends dry runs; tier 2 creates one test user with an employee record, and a separate cleanup removes it (#31). See docs/integrationstests.md (German).