Skip to content

Commit 378e8e0

Browse files
authored
fix: managed organization bookings (#23078)
* fix: private link update input * fix: scope admin memberships to org and org teams * chore: update platform libraries
1 parent 8b3fbb6 commit 378e8e0

File tree

7 files changed

+605
-29
lines changed

7 files changed

+605
-29
lines changed

apps/api/v2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@axiomhq/winston": "^1.2.0",
3939
"@calcom/platform-constants": "*",
4040
"@calcom/platform-enums": "*",
41-
"@calcom/platform-libraries": "npm:@calcom/[email protected].300",
41+
"@calcom/platform-libraries": "npm:@calcom/[email protected].305",
4242
"@calcom/platform-types": "*",
4343
"@calcom/platform-utils": "*",
4444
"@calcom/prisma": "*",

apps/api/v2/src/ee/event-types-private-links/controllers/event-types-private-links.controller.ts

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,21 @@ import { Permissions } from "@/modules/auth/decorators/permissions/permissions.d
44
import { ApiAuthGuard } from "@/modules/auth/guards/api-auth/api-auth.guard";
55
import { PermissionsGuard } from "@/modules/auth/guards/permissions/permissions.guard";
66
import { EventTypeOwnershipGuard } from "@/modules/event-types/guards/event-type-ownership.guard";
7-
import {
8-
Body,
9-
Controller,
10-
Delete,
11-
Get,
12-
Param,
13-
ParseIntPipe,
14-
Patch,
15-
Post,
16-
UseGuards,
17-
} from "@nestjs/common";
18-
import { ApiHeader, ApiOperation, ApiTags as DocsTags, OmitType } from "@nestjs/swagger";
7+
import { Body, Controller, Delete, Get, Param, ParseIntPipe, Patch, Post, UseGuards } from "@nestjs/common";
8+
import { ApiHeader, ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger";
199

20-
import {
21-
EVENT_TYPE_READ,
22-
EVENT_TYPE_WRITE,
23-
SUCCESS_STATUS,
24-
} from "@calcom/platform-constants";
10+
import { EVENT_TYPE_READ, EVENT_TYPE_WRITE, SUCCESS_STATUS } from "@calcom/platform-constants";
2511
import {
2612
CreatePrivateLinkInput,
2713
CreatePrivateLinkOutput,
2814
DeletePrivateLinkOutput,
2915
GetPrivateLinksOutput,
30-
UpdatePrivateLinkInput,
3116
UpdatePrivateLinkOutput,
17+
UpdatePrivateLinkBody,
3218
} from "@calcom/platform-types";
3319

3420
import { PrivateLinksService } from "../services/private-links.service";
3521

36-
class UpdatePrivateLinkBody extends OmitType(UpdatePrivateLinkInput, ["linkId"] as const) {}
37-
3822
@Controller({
3923
path: "/v2/event-types/:eventTypeId/private-links",
4024
})
@@ -118,5 +102,3 @@ export class EventTypesPrivateLinksController {
118102
};
119103
}
120104
}
121-
122-

0 commit comments

Comments
 (0)