Skip to content

✨ feat(work-hours): add Graph occurrencesView wrapper - #1221

Open
cliffordwhansen wants to merge 8 commits into
O365:masterfrom
cliffordwhansen:feat/work-hours-occurrences-view
Open

cliffordwhansen wants to merge 8 commits into
O365:masterfrom
cliffordwhansen:feat/work-hours-occurrences-view

Conversation

@cliffordwhansen

Copy link
Copy Markdown

Add Account.work_hours_and_locations() and a typed WorkHoursAndLocations API with WorkPlanOccurrence models for /me and /users occurrencesView retrieval, including timezone-aware parsing and endpoint-context HTTP errors.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

cliffordwhansen and others added 7 commits October 13, 2026 23:57
Add Account.work_hours_and_locations() and a typed WorkHoursAndLocations API with WorkPlanOccurrence models for /me and /users occurrencesView retrieval, including timezone-aware parsing and endpoint-context HTTP errors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add unit tests for /me and /users URL construction, query options, aware and naive datetime parsing (IANA + Windows timezone mapping), endpoint errors, and malformed payload handling.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Document work-hours and locations occurrences support, required permissions, tenant availability notes, and wire the new pages into usage/API toctrees.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add get_valid_work_location_types() to resolve enum members from Graph / with cached fallback defaults, and support include_valid_values on occurrences_view() to attach valid values to returned occurrences.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add tests for workLocationType extraction from metadata, fallback behavior when metadata is unavailable, and inclusion of valid values in occurrence results.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Document get_valid_work_location_types() and include_valid_values usage for passing valid workLocationType values to downstream consumers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ication

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant