fix: API v2 recurring spelling (#14620)
This commit is contained in:
@@ -10,6 +10,9 @@ export class RewriterMiddleware implements NestMiddleware {
|
||||
if (req.url.startsWith("/v2/ee")) {
|
||||
req.url = req.url.replace("/v2/ee", "/v2");
|
||||
}
|
||||
if (req.url.contains("reccuring")) {
|
||||
req.url = req.url.replace("reccuring", "recurring");
|
||||
}
|
||||
next();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ describe("Bookings Endpoints", () => {
|
||||
// };
|
||||
|
||||
// return request(app.getHttpServer())
|
||||
// .post("/v2/bookings/reccuring")
|
||||
// .post("/v2/bookings/recurring")
|
||||
// .send(body)
|
||||
// .expect(201)
|
||||
// .then((response) => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CreateBookingInput } from "@/ee/bookings/inputs/create-booking.input";
|
||||
import { CreateReccuringBookingInput } from "@/ee/bookings/inputs/create-reccuring-booking.input";
|
||||
import { CreateRecurringBookingInput } from "@/ee/bookings/inputs/create-recurring-booking.input";
|
||||
import { GetBookingOutput } from "@/ee/bookings/outputs/get-booking.output";
|
||||
import { GetBookingsOutput } from "@/ee/bookings/outputs/get-bookings.output";
|
||||
import { GetUser } from "@/modules/auth/decorators/get-user/get-user.decorator";
|
||||
@@ -180,10 +180,10 @@ export class BookingsController {
|
||||
throw new InternalServerErrorException("Could not cancel booking.");
|
||||
}
|
||||
|
||||
@Post("/reccuring")
|
||||
async createReccuringBooking(
|
||||
@Post("/recurring")
|
||||
async createRecurringBooking(
|
||||
@Req() req: BookingRequest,
|
||||
@Body() _: CreateReccuringBookingInput[],
|
||||
@Body() _: CreateRecurringBookingInput[],
|
||||
@Headers(X_CAL_CLIENT_ID) clientId?: string
|
||||
): Promise<ApiResponse<BookingResponse[]>> {
|
||||
const oAuthClientId = clientId?.toString();
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { IsBoolean, IsNumber, IsOptional } from "class-validator";
|
||||
|
||||
import type { AppsStatus } from "@calcom/platform-libraries";
|
||||
|
||||
export class CreateReccuringBookingInput extends CreateBookingInput {
|
||||
export class CreateRecurringBookingInput extends CreateBookingInput {
|
||||
@IsBoolean()
|
||||
@IsOptional()
|
||||
noEmail?: boolean;
|
||||
@@ -1380,9 +1380,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v2/bookings/reccuring": {
|
||||
"/v2/bookings/recurring": {
|
||||
"post": {
|
||||
"operationId": "BookingsController_createReccuringBooking",
|
||||
"operationId": "BookingsController_createRecurringBooking",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-cal-client-id",
|
||||
@@ -4270,4 +4270,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -117,8 +117,8 @@ export interface paths {
|
||||
"/v2/bookings": {
|
||||
post: operations["BookingsController_createBooking"];
|
||||
};
|
||||
"/v2/bookings/reccuring": {
|
||||
post: operations["BookingsController_createReccuringBooking"];
|
||||
"/v2/bookings/recurring": {
|
||||
post: operations["BookingsController_createRecurringBooking"];
|
||||
};
|
||||
"/v2/bookings/instant": {
|
||||
post: operations["BookingsController_createInstantBooking"];
|
||||
@@ -814,7 +814,7 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
BookingsController_createReccuringBooking: {
|
||||
BookingsController_createRecurringBooking: {
|
||||
requestBody: {
|
||||
content: {
|
||||
"application/json": string[];
|
||||
|
||||
Reference in New Issue
Block a user