feat: v2 get slots using teamSlug + eventTypeSlug + optional organizationSlug (#20554)

* feat: allow teamSlug + eventTypeSlug + optional organizationSlug as input

* feat: return team event slots

* test: get slots using teamSlug + eventTypeSlug + optional organizationalSlug

* docs: how to get team event slots
This commit is contained in:
Lauris Skraucis
2025-04-16 18:29:47 +03:00
committed by GitHub
parent 7b8bbaaa86
commit 7ef1050946
13 changed files with 302 additions and 49 deletions
@@ -4,7 +4,7 @@ import { Injectable, NotFoundException } from "@nestjs/common";
import { Request } from "express";
import { getRoutedUrl } from "@calcom/platform-libraries";
import { GetAvailableSlotsInput_2024_09_04 } from "@calcom/platform-types";
import { ById_2024_09_04_type, GetAvailableSlotsInput_2024_09_04 } from "@calcom/platform-types";
@Injectable()
export class RoutingFormsService {
@@ -25,6 +25,7 @@ export class RoutingFormsService {
}
const slots = await this.slotsService.getAvailableSlots({
type: ById_2024_09_04_type,
eventTypeId,
...slotsQuery,
});