* perf: move to disable prisma client extension inference * Prisma doesn't like it when you pass Record<string, unknown> * API v1 type fixes * Missed one * Fix unit test fail due to faulty expect * Assigning to prisma InputJsonValue/Array must be done as object, not interface * Fix @calcom/web ts error, teams not defined * Run eslint formatter * fixed the routingFormHelpers file causing a failing app store e2e test
30 lines
709 B
TypeScript
30 lines
709 B
TypeScript
import type { PrismaClient } from "@calcom/prisma";
|
|
|
|
import {
|
|
InsightsRoutingBaseService,
|
|
type InsightsRoutingServicePublicOptions,
|
|
type InsightsRoutingServiceFilterOptions,
|
|
} from "./InsightsRoutingBaseService";
|
|
|
|
export interface IInsightsRoutingService {
|
|
prisma: PrismaClient;
|
|
}
|
|
|
|
export class InsightsRoutingService {
|
|
constructor(private readonly dependencies: IInsightsRoutingService) {}
|
|
|
|
create({
|
|
options,
|
|
filters,
|
|
}: {
|
|
options: InsightsRoutingServicePublicOptions;
|
|
filters: InsightsRoutingServiceFilterOptions;
|
|
}): InsightsRoutingBaseService {
|
|
return new InsightsRoutingBaseService({
|
|
prisma: this.dependencies.prisma,
|
|
options,
|
|
filters,
|
|
});
|
|
}
|
|
}
|