Commit Graph
42 Commits
Author SHA1 Message Date
Jeppe Bundgaard 51014bf774 Add development guidelines, testing rules, and secure routes documentation
- Add `.junie/guidelines.md` with comprehensive development instructions.
- Include `.aiassistant/rules/Creating and maintaining tests.md` and `.aiassistant/rules/Creating and securing routes.md`.
- Introduce `CACHE_SELFSERVE_LANE_KEY_ALLOWED_SERVICES` for lane service validation.
- Update `selfserve_lane_relay_controller_t` to enforce service-specific permissions for machine relay.
2026-02-18 14:13:05 +01:00
Jeppe Bundgaard 05a4943162 Add /subusers/me route for public registration and extend OpenAPI schema
- Add `/subusers/me` as a public registration endpoint, including CVR validation, phone lookup, and optional SMS setup link generation.
- Extend OpenAPI specification with `SubuserSelf` and `SubuserGrantSummary` schemas for returning authenticated subuser profiles and grants.
2026-02-12 16:58:41 +01:00
Jeppe Bundgaard 4f9f2a2d71 Enhance API documentation and extend customer context handling for subuser permissions
- Add `X-Customer-Number` header for subuser-specific customer targeting across endpoints.
- Update vehicle-related endpoints (`listVehicles`, `addVehicle`, `editVehicle`, etc.) to include subuser permission checks and customer context handling.
- Refactor request and response schemas for vehicle operations to reflect new requirements and improve clarity.
- Include detailed permission scoping and descriptions for subuser and broader access handling.
- Extend OpenAPI specification with enriched schema properties and additional responses for edge cases.
2026-02-12 16:01:30 +01:00
Jeppe Bundgaard e9e0b3e19e Add include_non_enabled parameter to /subusers endpoint
- Allow listing subusers with only non-enabled grants by introducing an optional `include_non_enabled` query parameter.
- Update SQL query logic to conditionally include non-enabled subuser grants.
- Extend OpenAPI documentation to reflect the new parameter with its description and schema.
2026-02-11 17:58:55 +01:00
Jeppe Bundgaard 34ea4937e0 Add /subusers and /subusers/{id} endpoints for subuser management with permission-based visibility
- Implement routes to list and retrieve subusers based on grant visibility tied to the authenticated user's customer number.
- Extend OpenAPI documentation with detailed descriptions, parameters, and response schemas for the new endpoints.
2026-02-11 17:56:59 +01:00
Jeppe Bundgaard 89b8587dfc Update OpenAPI documentation with new API structure and subuser registration flow
- Add detailed API info, authentication methods, and permission requirements.
- Introduce comprehensive tags for endpoints covering key modules such as Users, Orders, Bookings, Payments, and more.
- Define `/subusers` endpoint for creating subuser registrations with CVR validation and SMS setup flow.
- Update schemas for user and subuser properties, including notifications and timestamps.
2026-02-11 17:39:36 +01:00
Jeppe Bundgaard 354ad86de3 Add CRUD operations for subuser grants and list permission nodes
- Implement routes for managing subuser grants: listing, creating, updating, and deleting.
- Add endpoint to fetch available permission nodes grouped by type.
- Extend `subuser_grants_o` with new utility methods, including `asArray`.
- Update OpenAPI documentation to include new endpoints and schemas.
2026-02-11 17:25:53 +01:00
Jeppe Bundgaard 6ad28a26eb Add passkeysRoute for managing user passkeys and extend OpenAPI documentation
- Introduce `passkeysRoute` with operations to list, create, rename, and delete passkeys for authenticated users.
- Update OpenAPI with endpoints and request/response schemas for passkey management.
2026-02-11 15:59:10 +01:00
Jeppe Bundgaard 54de81269b Add /subusers/auth/password endpoint for subuser authentication using password and identifier types 2026-02-11 14:57:46 +01:00
Jeppe Bundgaard 2206a3dc46 Extend OpenAPI with subuser registration and setup endpoints
- Add `/subusers` route for subuser creation using CVR and phone validation.
- Introduce `/subusers/setup` with token validation and subuser setup completion.
- Define detailed request/response schemas for both endpoints.
2026-02-10 16:21:55 +01:00
Jeppe Bundgaard 8a5a7294ab Refactor invoice comparison logic and deprecate temporary route
- Enhance `/collected-invoices/economic/compare` with improved HTTP status determination and response structure.
- Add handling for `draft_total` and `booked_total` comparisons against internal totals.
- Deprecate `/tmp-customer-list-overcharged` route with error response.
- Update OpenAPI documentation for `compareCollectedInvoiceEconomic` endpoint.
- Introduce `CollectedInvoiceEconomicCompareResponse` schema for consistent API responses.
- Comment out unused return data and debug code for clarity.
2026-02-03 15:08:21 +01:00
Jeppe Bundgaard 7fd4ac888a Add POST endpoint /goals/department/progress-alert/test to send test progress alerts
- Define alert destinations (Slack, Email, SMS) with customizable parameters.
- Implement OpenAPI specification and validate permissions, goal existence, and configuration.
2026-01-27 09:11:17 +01:00
Jeppe Bundgaard 043382c6f4 Add support for weekday-specific and time-of-day progress alerts in goals_criteria
- Introduce `progress_alert_weekdays` and `progress_alert_time_of_day` fields with parsing, validation, and sanitization logic.
- Add `goals_criteria_progress_alert_weekday` enum for supported weekdays.
- Update `toArray` and OpenAPI specification to support new fields and maintain backward compatibility.
2026-01-27 08:52:12 +01:00
Jeppe Bundgaard 4eacd04c2a Update OpenAPI spec: Add progress alert customization fields to goals_criteria schema
- Introduce `progress_alert_destination`, `progress_alert_progress_type`, `progress_alert_style`, and `progress_alert_format` fields with descriptions, examples, and enum values.
- Ensure backward compatibility with support for camelCase inputs.
2026-01-27 08:46:14 +01:00
Jeppe Bundgaard 32b5816a36 Update OpenAPI spec: Add label field to goals_criteria schema 2026-01-26 19:47:15 +01:00
Jeppe Bundgaard 8009e4029c Update OpenAPI spec: Add progress_alert_frequency to goals_criteria schema 2026-01-26 19:46:18 +01:00
Jeppe Bundgaard c1b7f5bad6 Add progress calculation and enhance department goal management
- Introduce progress-related functionality in `goals_criteria` and enumeration for alert frequencies.
- Add `calculateProgressFromArray` for progress evaluation based on criteria arrays.
- Extend `department_goals_o` with `name` property and optional inclusion of progress in goal exports.
- Update OpenAPI spec with endpoints and schemas for department goal management.
2026-01-26 18:51:31 +01:00
Jeppe Bundgaard ca4432374c Add department access check and self-serve enabled status routes in departments API 2026-01-21 10:49:45 +01:00
Jeppe Bundgaard da9ee98fb5 Add password reset request endpoint to authentication routes; update OpenAPI spec and improve user email handling in users_o 2026-01-19 11:17:35 +01:00
Jeppe Bundgaard 09b5c618ed Add fine-grained permission checks for viewing department self-serve tasks and implement password reset endpoints (validate and set) in authentication routes; update OpenAPI spec accordingly. 2026-01-19 10:57:09 +01:00
Jeppe Bundgaard 9c9c6616db Add new schemas for SelfServeLaneStatus and SelfServeConfig in OpenAPI spec; extend self-serve lane commands with RESERVE and RELEASE; enhance lane status and configuration endpoints with detailed request/response schemas; add support for dynamic lane ID retrieval in routes. 2026-01-15 11:47:26 +01:00
Jeppe Bundgaard f0f87eb351 Enhance departmentSelfserveVehicleConditionsRoute with fine-grained permissions for global and own access; extend CRUD functionality to include customer-level validation and vehicle ownership checks; update OpenAPI descriptions accordingly. 2026-01-12 11:29:20 +01:00
Jeppe Bundgaard 02d46f41cf Add CRUD operations for department/selfserve/vehicle/conditions to OpenAPI spec; define schema and enhance filtering options with new query parameters 2026-01-12 11:23:21 +01:00
Jeppe Bundgaard 97d2786ff1 Replace question_condition with condition_id across department_selfserve_questions logic, routes, OpenAPI spec, and related methods for improved consistency and clarity. 2026-01-09 13:53:03 +01:00
Jeppe Bundgaard d576a4741b Replace question with condition_id across department_selfserve_tasks logic, routes, OpenAPI spec, and associated methods for improved consistency and clarity. 2026-01-09 13:47:10 +01:00
Jeppe Bundgaard 6b60673c99 Add condition_id query parameter and property to OpenAPI spec for enhanced filtering options 2026-01-09 12:57:20 +01:00
Jeppe Bundgaard 3aefa4a00a Add departmentSelfserveConditionsRoute and departmentSelfserveConditionRulesRoute with CRUD operations and department-level access control; update OpenAPI spec accordingly 2026-01-09 12:36:32 +01:00
Jeppe Bundgaard e4c4c9c76d Replace image property with question_condition in OpenAPI spec, routes, and related logic. 2026-01-09 11:19:23 +01:00
Jeppe Bundgaard 5b364e2141 Add attachment management endpoints to departmentSelfserveTasksRoute and update OpenAPI spec for attachments 2026-01-09 09:29:12 +01:00
Jeppe Bundgaard 137571d712 Add DepartmentSelfserveTask schema and CRUD operations to Self-Serve OpenAPI section 2026-01-08 13:56:25 +01:00
Jeppe Bundgaard 0d96bf6219 Trim registration input in vehicle creation and add contactName parameter to OpenAPI spec and related routes. 2026-01-08 13:16:32 +01:00
Jeppe Bundgaard 338c244e53 Add Self-Serve section to OpenAPI spec and implement related CRUD routes with department-level access control 2026-01-08 11:15:58 +01:00
Jeppe Bundgaard dd77eda929 Expand openapi.yaml with endpoint and schema definitions for listing module action logs, including pagination, filtering, and associated parameters. 2026-01-06 11:15:59 +01:00
Jeppe Bundgaard ed53d16d6c Expand openapi.yaml with endpoints for superuser authentication, invoicing distributions, backup module management, and button press recording. 2026-01-05 13:14:37 +01:00
Jeppe Bundgaard f91b855545 Expand openapi.yaml with endpoints for order bookings, department daily reports, and related management operations. 2026-01-05 13:08:58 +01:00
Jeppe Bundgaard c58e385cfd Expand openapi.yaml with endpoints for notifications, Stripe payment processing, e-conomic integration, and Stripe terminal management. 2026-01-05 12:34:33 +01:00
Jeppe Bundgaard 7705fc8a09 Expand openapi.yaml with endpoints for orders, vehicles, departments, and economic statistics. 2026-01-05 12:12:00 +01:00
Jeppe Bundgaard c8b83c63d3 Expand openapi.yaml with endpoints for branding, roles, permissions, department management, and module operations. 2026-01-05 12:04:31 +01:00
Jeppe Bundgaard 5c0092125e Expand openapi.yaml with endpoints for role management, user permissions, customer data, and superuser operations 2026-01-05 12:03:45 +01:00
Jeppe Bundgaard 568ad065d9 Expand openapi.yaml with branding options management 2026-01-05 12:02:26 +01:00
Jeppe Bundgaard 756a8eca1a Expand openapi.yaml with new endpoints for department lanes, worker operations, license plate scanning, invoicing, and configuration management. 2026-01-05 11:50:36 +01:00
copilot-swe-agent[bot]andjepp9350 7f6ab7ec18 Add comprehensive openapi.yaml documentation for all API routes and schemas
Co-authored-by: jepp9350 <17977216+jepp9350@users.noreply.github.com>
2026-01-05 10:34:48 +00:00