mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-11 13:16:38 +00:00
Fix frontend type imports
This commit is contained in:
@@ -6,7 +6,6 @@ import { response as sendResponse } from "@server/lib/response";
|
||||
import license from "#private/license/license";
|
||||
import { z } from "zod";
|
||||
import { fromError } from "zod-validation-error";
|
||||
import { LicenseStatus } from "@server/license/license";
|
||||
|
||||
const bodySchema = z
|
||||
.object({
|
||||
@@ -14,8 +13,6 @@ const bodySchema = z
|
||||
})
|
||||
.strict();
|
||||
|
||||
export type ActivateLicenseStatus = LicenseStatus;
|
||||
|
||||
export async function activateLicense(
|
||||
req: Request,
|
||||
res: Response,
|
||||
|
||||
@@ -9,7 +9,6 @@ import { db } from "@server/db";
|
||||
import { eq } from "drizzle-orm";
|
||||
import { licenseKey } from "@server/db";
|
||||
import license from "#private/license/license";
|
||||
import { LicenseStatus } from "@server/license/license";
|
||||
|
||||
const paramsSchema = z
|
||||
.object({
|
||||
@@ -17,8 +16,6 @@ const paramsSchema = z
|
||||
})
|
||||
.strict();
|
||||
|
||||
export type DeleteLicenseKeyResponse = LicenseStatus;
|
||||
|
||||
export async function deleteLicenseKey(
|
||||
req: Request,
|
||||
res: Response,
|
||||
|
||||
@@ -4,9 +4,7 @@ import createHttpError from "http-errors";
|
||||
import logger from "@server/logger";
|
||||
import { response as sendResponse } from "@server/lib/response";
|
||||
import license from "#private/license/license";
|
||||
import { LicenseStatus } from "@server/license/license";
|
||||
|
||||
export type GetLicenseStatusResponse = LicenseStatus;
|
||||
import { GetLicenseStatusResponse } from "@server/routers/license/types";
|
||||
|
||||
export async function getLicenseStatus(
|
||||
req: Request,
|
||||
|
||||
@@ -4,9 +4,7 @@ import createHttpError from "http-errors";
|
||||
import logger from "@server/logger";
|
||||
import { response as sendResponse } from "@server/lib/response";
|
||||
import license from "#private/license/license";
|
||||
import { LicenseKeyCache } from "@server/license/license";
|
||||
|
||||
export type ListLicenseKeysResponse = LicenseKeyCache[];
|
||||
import { ListLicenseKeysResponse } from "@server/routers/license/types";
|
||||
|
||||
export async function listLicenseKeys(
|
||||
req: Request,
|
||||
|
||||
@@ -4,9 +4,6 @@ import createHttpError from "http-errors";
|
||||
import logger from "@server/logger";
|
||||
import { response as sendResponse } from "@server/lib/response";
|
||||
import license from "#private/license/license";
|
||||
import { LicenseStatus } from "@server/license/license";
|
||||
|
||||
export type RecheckStatusResponse = LicenseStatus;
|
||||
|
||||
export async function recheckStatus(
|
||||
req: Request,
|
||||
|
||||
Reference in New Issue
Block a user