* refactor: apply biome formatting to small packages + packages/lib Format packages/sms, packages/prisma, packages/platform/libraries, packages/platform/examples, packages/platform/types, packages/emails, and packages/lib. Excludes packages/platform/examples/base/src/pages/[bookingUid].tsx due to pre-existing lint errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * revert: remove packages/platform formatting changes Revert biome formatting for packages/platform as requested. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
540 B
TypeScript
23 lines
540 B
TypeScript
import type { AppOnboardingSteps } from "@calcom/lib/apps/appOnboardingSteps";
|
|
|
|
// biome-ignore lint/style/useNodejsImportProtocol: Vite env
|
|
import { stringify } from "querystring";
|
|
|
|
export const getAppOnboardingUrl = ({
|
|
slug,
|
|
step,
|
|
teamId,
|
|
}: {
|
|
slug: string;
|
|
step: AppOnboardingSteps;
|
|
teamId?: number;
|
|
}): string => {
|
|
const params: { [key: string]: string | number | number[] } = { slug };
|
|
if (teamId) {
|
|
params.teamId = teamId;
|
|
}
|
|
const query = stringify(params);
|
|
|
|
return `/apps/installation/${step}?${query}`;
|
|
};
|