* add Add Group button * add host groups to schema * UI for host groups * raname groups to hostGroups * schema update * show groups in assignment tab * add no group hosts to Group 1 * add dummy group for non group hosts * fix type errors * use two dimensional array for luckyUserPools * fix empty array * group RR hosts in handleNewBooking * improve logic for grouping lucky users * find all lucky users of all groups * allow several RR hosts on booking * clean up migrations * create helper function * group hosts for slots logic * add group logic to loading available slots * adding hosts to groups * add groupId to hostSchema * disable hosts from other groups * handle groups in checkedTeamSelect * fix adding hosts to groups * remove and add groups * show hosts if there are no groups * fixing adding first group with existing hosts * show groups empty groups correctly * UI upddate fixes * fix adding hosts to existing first host group * small fixes + code clean up * add availability fix with test * create new round-robin test file * disable reassignment * fix losing fixed hosts * fix updating weights and priorities * disable load balancing with Round Robin Groups * automatically disable load balancing in update handler * allRRHosts should only include hosts from same group * fix type errors * fix type error * fix tests * fix type error * remove undefined from groupId type * type changes * add tests for hostGroups * add tests for host groups * fixes * fix type errors with undefined groupId * remove seperate host groups prop * fix editing weights * remove console.log * code clean up * improve getAggregatedAvailability tests * throw error when no available hosts in a group * add fixme comment * create constant for DEFAULT_GROUP_ID * clean up code * mock default_group_id for unit tests * don't show fixed hosts in edit weights side bar * add DEFAULT_GROUP_ID to mock test-setup * remove unused index variable * code clean up * fix updating host groups * fix imports * add default_group_id to mocks * add uuid() to zod schema * remove unused code * fix singular translation key * remove unnessary !! * Revert formatting changes * add additional tests for bookingActions * use createMany * import DEFAULT_GROUP_ID for mocks * fix mocks * clean up EventTeamAssignmentTab * fix type errors in tests * fix mocks * remove constants.example.test.ts * fix type error * add missing groupId * fix margin * clean up empty host groups * fix constants mock * useCalback * use reduce * extract handlers into seperate functions * fix handler functions * fix border radius * fix type error in CheckForEmptyAssignment * fix type error --------- Co-authored-by: CarinaWolli <wollencarina@gmail.com>
30 lines
1.7 KiB
TypeScript
30 lines
1.7 KiB
TypeScript
export enum ErrorCode {
|
|
PaymentCreationFailure = "payment_not_created_error",
|
|
NoAvailableUsersFound = "no_available_users_found_error",
|
|
ChargeCardFailure = "couldnt_charge_card_error",
|
|
RequestBodyWithouEnd = "request_body_end_time_internal_error",
|
|
AlreadySignedUpForBooking = "already_signed_up_for_this_booking_error",
|
|
FixedHostsUnavailableForBooking = "fixed_hosts_unavailable_for_booking",
|
|
RoundRobinHostsUnavailableForBooking = "round_robin_host_unavailable_for_booking",
|
|
EventTypeNotFound = "event_type_not_found_error",
|
|
BookingNotFound = "booking_not_found_error",
|
|
BookingSeatsFull = "booking_seats_full_error",
|
|
MissingPaymentCredential = "missing_payment_credential_error",
|
|
MissingPaymentAppId = "missing_payment_app_id_error",
|
|
NotEnoughAvailableSeats = "not_enough_available_seats_error",
|
|
AvailabilityNotFoundInSchedule = "availability_not_found_in_schedule_error",
|
|
CancelledBookingsCannotBeRescheduled = "cancelled_bookings_cannot_be_rescheduled",
|
|
UnableToSubscribeToThePlatform = "unable_to_subscribe_to_the_platform",
|
|
UpdatingOauthClientError = "updating_oauth_client_error",
|
|
CreatingOauthClientError = "creating_oauth_client_error",
|
|
BookingTimeOutOfBounds = "booking_time_out_of_bounds_error",
|
|
BookingConflict = "booking_conflict_error",
|
|
BookerLimitExceeded = "booker_limit_exceeded_error",
|
|
BookerLimitExceededReschedule = "booker_limit_exceeded_error_reschedule",
|
|
BookingNotAllowedByRestrictionSchedule = "booking_not_allowed_by_restriction_schedule_error",
|
|
RestrictionScheduleNotFound = "restriction_schedule_not_found_error",
|
|
EventTypeNoHosts = "event_type_no_hosts",
|
|
RequestBodyInvalid = "request_body_invalid_error",
|
|
PrivateLinkExpired = "private_link_expired",
|
|
}
|