[WIP]: Fix Deno Check Errors in db/schema.ts (#121)

* Apply patch [skip ci]

* Apply patch [skip ci]

* Apply patch [skip ci]

* Apply patch [skip ci]

* Apply patch [skip ci]

* Apply patch [skip ci]

---------

Co-authored-by: open-swe-dev-andrinoid[bot] <open-swe-dev-andrinoid@users.noreply.github.com>
This commit is contained in:
open-swe-dev-andrinoid[bot] 2026-01-29 05:14:44 -06:00 committed by GitHub
parent e88b928e77
commit 5dfc6516dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 44 additions and 14 deletions

View File

@ -57,7 +57,7 @@ export interface WebToken {
updated_on: number;
last_used_on?: number | null;
is_active?: boolean | null;
metadata?: any | null;
metadata?: Record<string, unknown> | null;
}
export interface Obligation {
@ -206,7 +206,7 @@ export interface TenantApplication {
applicant_id?: string | null;
application_status?: string | null;
application_data_encrypted?: string | null;
document_urls_json?: any | null;
document_urls_json?: Record<string, unknown> | null;
submitted_on?: number | null;
reviewed_on?: number | null;
}
@ -253,7 +253,7 @@ export interface Message {
message_type?: string | null;
subject?: string | null;
parent_message_id?: string | null;
attachments_json?: any | null;
attachments_json?: Record<string, unknown> | null;
content?: string | null;
content_encrypted?: string | null;
is_read?: boolean | null;

View File

@ -32,7 +32,7 @@ export function AsyncImageGenerater() {
text_1={popup.imageFile.image_text || popup.imageFile.image_file || ""}
image_data={popup.imageFile.image_data}
role={popup.role}
recordingCallback={(answer: any) => {
recordingCallback={(answer: ImageFile | null) => {
popup.resolve(answer);
setPopup(null);
}}

View File

@ -1,8 +1,8 @@
// islands/ClearCheckedButton.// islands/ClearCheckedButton.tsx
interface ClearCheckedButtonProps {
clearSig: any;
setCanStudy: any;
clearSig: { value: number };
setCanStudy: { value: number };
}
export default function ClearCheckedButton(

8
modules/KvCacheStore.ts Executable file → Normal file
View File

@ -836,7 +836,7 @@ export class KvCacheStore {
case "roles": {
const roles = await sqlGetAllRoles();
const role = roles.find((r: any) => r.id === id);
const role = roles.find((r: { id: string; description: string }) => r.id === id);
if (!role) return null;
return {
id: role.id,
@ -847,15 +847,15 @@ export class KvCacheStore {
case "user_roles": {
const roles = await sqlGetUserRoles(id as string);
if (!roles || roles.length === 0) return null;
return roles.map((r: any) => r.roleId).filter((r: any) =>
r !== ""
return roles.map((r: { roleId: string }) => r.roleId).filter((r: { roleId: string }) =>
r.roleId !== ""
) as T;
}
case "state_keys": {
const stateKeys = await sqlGetStateKeys(id as string);
if (!stateKeys || stateKeys.length === 0) return null;
const sortedKeys = stateKeys.sort((a: any, b: any) =>
const sortedKeys = stateKeys.sort((a: { created_on: number }, b: { created_on: number }) =>
b.created_on - a.created_on
);
return {

38
types/graph/ServicePrincipal.ts Executable file → Normal file
View File

@ -31,7 +31,11 @@ export interface ServicePrincipal {
tags: string[];
tokenEncryptionKeyId: string | null;
samlSingleSignOnSettings: unknown | null;
addIns: any[];
addIns: Array<{
id: string;
type: string;
properties: Record<string, unknown>[];
}>[];
appRoleIds: string[];
info: {
logoUrl: string | null;
@ -40,10 +44,36 @@ export interface ServicePrincipal {
supportUrl: string | null;
termsOfServiceUrl: string | null;
};
keyCredentials: any[];
keyCredentials: Array<{
customKeyIdentifier?: string;
displayName?: string;
endDateTime?: string;
keyId: string;
keyType: string;
keyUsage: string;
startDateTime?: string;
value?: string;
}>[];
oauth2PermissionScopeIds: string[];
passwordCredentials: any[];
resourceSpecificApplicationPermissions: any[];
passwordCredentials: Array<{
customKeyIdentifier?: string;
displayName?: string;
endDateTime?: string;
keyId: string;
secretText?: string;
startDateTime?: string;
type: string;
}>[];
resourceSpecificApplicationPermissions: Array<{
adminConsentDescription: string;
adminConsentDisplayName: string;
id: string;
isEnabled: boolean;
type: string;
userConsentDescription: string;
userConsentDisplayName: string;
value: string;
}>[];
verifiedPublisher: {
displayName: string | null;
verifiedPublisherId: string | null;