fix: bookerEmbed atom (#18168)
* update translations * add custom hook for platform embed * update event type ouput DTO response * fixup * display terms and conditions for embed * update v2 docs * PR feedback * update docs * PR feedback * update docs * update output DTO * update docs * update output typing * docs update * resolve merge conflicts * merge conflicts resolving * resolve merge conflicts * fixup * update docs
This commit is contained in:
1 parent
c1334475c5
commit
c732c06835
12 files changed
+219
-32
No files matched your search
+24
-2
@@ -29,7 +29,18 @@ export class OrganizationsEventTypesRepository {
|
||||
schedule: true,
|
||||
hosts: true,
|
||||
destinationCalendar: true,
|
||||
team: { select: { bannerUrl: true } },
|
||||
team: {
|
||||
select: {
|
||||
bannerUrl: true,
|
||||
name: true,
|
||||
logoUrl: true,
|
||||
slug: true,
|
||||
weekStart: true,
|
||||
brandColor: true,
|
||||
darkBrandColor: true,
|
||||
theme: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -44,7 +55,18 @@ export class OrganizationsEventTypesRepository {
|
||||
schedule: true,
|
||||
hosts: true,
|
||||
destinationCalendar: true,
|
||||
team: { select: { bannerUrl: true } },
|
||||
team: {
|
||||
select: {
|
||||
bannerUrl: true,
|
||||
name: true,
|
||||
logoUrl: true,
|
||||
slug: true,
|
||||
weekStart: true,
|
||||
brandColor: true,
|
||||
darkBrandColor: true,
|
||||
theme: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -12,7 +12,10 @@ type EventTypeRelations = {
|
||||
schedule: Schedule | null;
|
||||
hosts: Host[];
|
||||
destinationCalendar?: DestinationCalendar | null;
|
||||
team?: Pick<Team, "bannerUrl"> | null;
|
||||
team?: Pick<
|
||||
Team,
|
||||
"bannerUrl" | "name" | "logoUrl" | "slug" | "weekStart" | "brandColor" | "darkBrandColor" | "theme"
|
||||
> | null;
|
||||
};
|
||||
export type DatabaseTeamEventType = EventType & EventTypeRelations;
|
||||
|
||||
@@ -98,8 +101,18 @@ export class OutputOrganizationsEventTypesService {
|
||||
ownerId: userId,
|
||||
parentEventTypeId: parentId,
|
||||
schedulingType: databaseEventType.schedulingType,
|
||||
bannerUrl: databaseEventType?.team?.bannerUrl,
|
||||
assignAllTeamMembers: teamId ? assignAllTeamMembers : undefined,
|
||||
team: {
|
||||
id: teamId,
|
||||
name: databaseEventType?.team?.name,
|
||||
slug: databaseEventType?.team?.slug,
|
||||
bannerUrl: databaseEventType?.team?.bannerUrl,
|
||||
logoUrl: databaseEventType?.team?.logoUrl,
|
||||
weekStart: databaseEventType?.team?.weekStart,
|
||||
brandColor: databaseEventType?.team?.brandColor,
|
||||
darkBrandColor: databaseEventType?.team?.darkBrandColor,
|
||||
theme: databaseEventType?.team?.theme,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -10958,6 +10958,41 @@
|
||||
"name"
|
||||
]
|
||||
},
|
||||
"EventTypeTeam": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"slug": {
|
||||
"type": "string"
|
||||
},
|
||||
"bannerUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"logoUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"weekStart": {
|
||||
"type": "string"
|
||||
},
|
||||
"brandColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"darkBrandColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"theme": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
]
|
||||
},
|
||||
"TeamEventTypeOutput_2024_06_14": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -11208,8 +11243,7 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"teamId": {
|
||||
"type": "number",
|
||||
"nullable": true
|
||||
"type": "number"
|
||||
},
|
||||
"ownerId": {
|
||||
"type": "number",
|
||||
@@ -11238,8 +11272,8 @@
|
||||
"MANAGED"
|
||||
]
|
||||
},
|
||||
"bannerUrl": {
|
||||
"type": "string"
|
||||
"team": {
|
||||
"$ref": "#/components/schemas/EventTypeTeam"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -11260,8 +11294,10 @@
|
||||
"successRedirectUrl",
|
||||
"isInstantEvent",
|
||||
"scheduleId",
|
||||
"teamId",
|
||||
"hosts",
|
||||
"schedulingType"
|
||||
"schedulingType",
|
||||
"team"
|
||||
]
|
||||
},
|
||||
"GetTeamEventTypeOutput": {
|
||||
|
||||
@@ -2651,6 +2651,8 @@
|
||||
"go_back_and_assign": "Go back and Assign",
|
||||
"leave_without_assigning": "Leave without Assigning",
|
||||
"signing_up_terms": "By proceeding, you agree to our <0>Terms</0> and <1>Privacy Policy</1>.",
|
||||
"proceeding_agreement": "By proceeding, you agree to our",
|
||||
"terms": "Terms",
|
||||
"always_show_x_days": "Always {{x}} days available",
|
||||
"unable_to_subscribe_to_the_platform": "An error occurred while trying to subscribe to the platform plan, please try again later",
|
||||
"updating_oauth_client_error": "An error occurred while updating the OAuth client, please try again later",
|
||||
|
||||
Reference in new issue
Block a user