cal.pub0.org/packages/prisma
Joe Au-Yeung a5b5382306
fix: seats regression [CAL-2041]
## What does this PR do?

<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. -->

- Passes the proper seats data in the new booker component between states and to the backend

Fixes #9779
Fixes #9749
Fixes #7967 
Fixes #9942 

<!-- Please provide a loom video for visual changes to speed up reviews
 Loom Video: https://www.loom.com/
-->

## Type of change

<!-- Please delete bullets that are not relevant. -->

- Bug fix (non-breaking change which fixes an issue)

## How should this be tested?

<!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration -->

**As the organizer** 
- Create a seated event type
- Book at least 2 seats
- Reschedule the booking
    - All attendees should be moved to the new booking
- Cancel the booking
    - The event should be cancelled for all attendees

**As an attendee**
- [x] Book a seated event
- [x] Reschedule that booking to an empty slot
    - [x] The attendee should be moved to that new slot
- [x] Reschedule onto a booking with occupied seats
    - [x] The attendees should be merged
- [x] On that slot reschedule all attendees to a new slot
    - [x] The former booking should be deleted
- [x] As the attendee cancel the booking
    - [x] Only that attendee should be removed 

## Mandatory Tasks

- [x] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

## Checklist

<!-- Please remove all the irrelevant bullets to your PR -->
2023-07-11 20:41:08 +05:30
..
client add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
middleware Fixes formatted description in email + sanitize html everywhere (#7928) 2023-03-28 09:40:13 +00:00
migrations feat: Enable Apps for Teams & Orgs [CAL-1782] (#9337) 2023-07-06 16:48:39 +00:00
selects fix: Enable Salesforce & CRMs for teams & orgs [CAL-2116] (#9973) 2023-07-11 13:11:21 +05:30
zod Team webhooks (#8917) 2023-05-23 01:15:29 +00:00
.env Adds symlink to use DATABASE_URL from root 2022-08-12 11:23:30 -06:00
delete-app.ts One jest to rule them all (#3957) 2022-08-29 22:33:53 +00:00
docker-compose.yml Revert "Matches postgres image across projects" 2022-12-22 17:11:31 -07:00
enum-generator.ts add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
index.ts Fixes formatted description in email + sanitize html everywhere (#7928) 2023-03-28 09:40:13 +00:00
package.json chore: Upgrades prisma to 4.16 (#9670) 2023-06-21 17:07:54 +02:00
schema.prisma feat: Enable Apps for Teams & Orgs [CAL-1782] (#9337) 2023-07-06 16:48:39 +00:00
seed-app-store.ts chore: recategorize apps (#9306) 2023-06-28 18:22:51 +02:00
seed-insights.ts add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
seed.ts feat: Organizations (#8993) 2023-06-14 21:40:20 +00:00
zod-utils.ts fix: seats regression [CAL-2041] 2023-07-11 20:41:08 +05:30