Commit cf62f31
committed
Fix dashboard_booking schema to match actual API response
The dashboard endpoint returns bookings in a completely different
format than was documented:
Removed (not present in real response):
- start_at, end_at (unix timestamps)
- start_time, end_time (time strings)
- room (object with id/name/code)
- customer (object with id/name/email)
- cancelled (boolean)
Added (present in real response):
- start, end: datetime strings "YYYY-MM-DD HH:mm"
- split: room code string (matches rooms[].code)
- room_name: room display name
- amount_due: formatted currency string e.g. "£1.00" (was integer)
- payments_recieved: boolean (note API spelling)
- show_studio_notes: boolean
- extras_summary: changed from string to array of strings
- link: admin path string
- type: "booking" or "blocked"
- class: CSS class string
https://claude.ai/code/session_01AUVAYoQ6vtiGeSvWiGsfpK1 parent acfd1db commit cf62f31
1 file changed
Lines changed: 45 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3669 | 3669 | | |
3670 | 3670 | | |
3671 | 3671 | | |
3672 | | - | |
3673 | | - | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
3674 | 3675 | | |
3675 | 3676 | | |
3676 | 3677 | | |
3677 | 3678 | | |
3678 | 3679 | | |
3679 | 3680 | | |
3680 | 3681 | | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
3681 | 3689 | | |
3682 | 3690 | | |
| 3691 | + | |
3683 | 3692 | | |
3684 | 3693 | | |
| 3694 | + | |
3685 | 3695 | | |
3686 | 3696 | | |
| 3697 | + | |
| 3698 | + | |
3687 | 3699 | | |
3688 | 3700 | | |
| 3701 | + | |
3689 | 3702 | | |
3690 | 3703 | | |
| 3704 | + | |
3691 | 3705 | | |
3692 | 3706 | | |
3693 | | - | |
3694 | | - | |
3695 | | - | |
3696 | | - | |
3697 | | - | |
3698 | | - | |
3699 | | - | |
3700 | | - | |
3701 | | - | |
3702 | | - | |
3703 | | - | |
3704 | | - | |
3705 | | - | |
3706 | | - | |
| 3707 | + | |
| 3708 | + | |
3707 | 3709 | | |
3708 | | - | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
3709 | 3713 | | |
3710 | | - | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
3711 | 3717 | | |
3712 | | - | |
| 3718 | + | |
| 3719 | + | |
3713 | 3720 | | |
| 3721 | + | |
3714 | 3722 | | |
3715 | 3723 | | |
3716 | 3724 | | |
3717 | | - | |
| 3725 | + | |
| 3726 | + | |
| 3727 | + | |
| 3728 | + | |
| 3729 | + | |
3718 | 3730 | | |
3719 | 3731 | | |
3720 | 3732 | | |
3721 | 3733 | | |
3722 | | - | |
| 3734 | + | |
3723 | 3735 | | |
3724 | | - | |
3725 | | - | |
3726 | | - | |
3727 | | - | |
3728 | | - | |
3729 | | - | |
3730 | | - | |
3731 | | - | |
3732 | | - | |
3733 | 3736 | | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
| 3747 | + | |
3734 | 3748 | | |
| 3749 | + | |
3735 | 3750 | | |
3736 | 3751 | | |
3737 | 3752 | | |
| |||
0 commit comments