Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -16,14 +16,14 @@ import {
type LegacyApiKeySimple,
type LegacyApiKeyWithDetails,
updateLegacyApiKey,
} from "@toolctrl/db/api-keys.server";
} from "@hivegrid/db/api-keys.server";
import { db } from "../db.server";
import { getClientIPAddress } from "~/utils/server/IpUtils";
import { PaginationDto } from "~/application/dtos/data/PaginationDto";
import { FiltersDto } from "~/application/dtos/data/FiltersDto";
import RowFiltersHelper from "../helpers/RowFiltersHelper";
import { cachified, clearCacheKey } from "../cache.server";
import { loadRequiredWebConfig } from "@toolctrl/config";
import { loadRequiredWebConfig } from "@hivegrid/config";
import { getApiKeyLookupCacheKey, serializeApiLogSearchParams } from "../api/apiKeySecurity.server";
export type ApiKeyWithDetails = LegacyApiKeyWithDetails;
@@ -177,23 +177,14 @@ export async function getFirstApiKey(tenantId: string | null) {
return findFirstLegacyActiveApiKey(tenantId);
}
export async function createApiKey(
data: {
tenantId: string;
createdByUserId: string;
alias: string;
expires: Date | null;
active: boolean;
},
entities: {
entityId: string;
create: boolean;
read: boolean;
update: boolean;
delete: boolean;
}[]
) {
return createLegacyApiKey(data, entities, undefined, getApiKeyHashSecret());
export async function createApiKey(data: {
tenantId: string;
createdByUserId: string;
alias: string;
expires: Date | null;
active: boolean;
}) {
return createLegacyApiKey(data, undefined, getApiKeyHashSecret());
}
export async function createApiKeyLog(
@@ -229,16 +220,9 @@ export async function updateApiKey(
alias: string;
expires: Date | null;
active: boolean;
},
entities: {
entityId: string;
create: boolean;
read: boolean;
update: boolean;
delete: boolean;
}[]
}
) {
const apiKey = await updateLegacyApiKey(id, data, entities);
const apiKey = await updateLegacyApiKey(id, data);
clearCacheKey(getApiKeyLookupCacheKey(apiKey.key));
return apiKey;
}