[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:
parent
e88b928e77
commit
5dfc6516dc
@ -57,7 +57,7 @@ export interface WebToken {
|
|||||||
updated_on: number;
|
updated_on: number;
|
||||||
last_used_on?: number | null;
|
last_used_on?: number | null;
|
||||||
is_active?: boolean | null;
|
is_active?: boolean | null;
|
||||||
metadata?: any | null;
|
metadata?: Record<string, unknown> | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Obligation {
|
export interface Obligation {
|
||||||
@ -206,7 +206,7 @@ export interface TenantApplication {
|
|||||||
applicant_id?: string | null;
|
applicant_id?: string | null;
|
||||||
application_status?: string | null;
|
application_status?: string | null;
|
||||||
application_data_encrypted?: string | null;
|
application_data_encrypted?: string | null;
|
||||||
document_urls_json?: any | null;
|
document_urls_json?: Record<string, unknown> | null;
|
||||||
submitted_on?: number | null;
|
submitted_on?: number | null;
|
||||||
reviewed_on?: number | null;
|
reviewed_on?: number | null;
|
||||||
}
|
}
|
||||||
@ -253,7 +253,7 @@ export interface Message {
|
|||||||
message_type?: string | null;
|
message_type?: string | null;
|
||||||
subject?: string | null;
|
subject?: string | null;
|
||||||
parent_message_id?: string | null;
|
parent_message_id?: string | null;
|
||||||
attachments_json?: any | null;
|
attachments_json?: Record<string, unknown> | null;
|
||||||
content?: string | null;
|
content?: string | null;
|
||||||
content_encrypted?: string | null;
|
content_encrypted?: string | null;
|
||||||
is_read?: boolean | null;
|
is_read?: boolean | null;
|
||||||
|
|||||||
@ -32,7 +32,7 @@ export function AsyncImageGenerater() {
|
|||||||
text_1={popup.imageFile.image_text || popup.imageFile.image_file || ""}
|
text_1={popup.imageFile.image_text || popup.imageFile.image_file || ""}
|
||||||
image_data={popup.imageFile.image_data}
|
image_data={popup.imageFile.image_data}
|
||||||
role={popup.role}
|
role={popup.role}
|
||||||
recordingCallback={(answer: any) => {
|
recordingCallback={(answer: ImageFile | null) => {
|
||||||
popup.resolve(answer);
|
popup.resolve(answer);
|
||||||
setPopup(null);
|
setPopup(null);
|
||||||
}}
|
}}
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
// islands/ClearCheckedButton.// islands/ClearCheckedButton.tsx
|
// islands/ClearCheckedButton.// islands/ClearCheckedButton.tsx
|
||||||
|
|
||||||
interface ClearCheckedButtonProps {
|
interface ClearCheckedButtonProps {
|
||||||
clearSig: any;
|
clearSig: { value: number };
|
||||||
setCanStudy: any;
|
setCanStudy: { value: number };
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function ClearCheckedButton(
|
export default function ClearCheckedButton(
|
||||||
|
|||||||
8
modules/KvCacheStore.ts
Executable file → Normal file
8
modules/KvCacheStore.ts
Executable file → Normal file
@ -836,7 +836,7 @@ export class KvCacheStore {
|
|||||||
|
|
||||||
case "roles": {
|
case "roles": {
|
||||||
const roles = await sqlGetAllRoles();
|
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;
|
if (!role) return null;
|
||||||
return {
|
return {
|
||||||
id: role.id,
|
id: role.id,
|
||||||
@ -847,15 +847,15 @@ export class KvCacheStore {
|
|||||||
case "user_roles": {
|
case "user_roles": {
|
||||||
const roles = await sqlGetUserRoles(id as string);
|
const roles = await sqlGetUserRoles(id as string);
|
||||||
if (!roles || roles.length === 0) return null;
|
if (!roles || roles.length === 0) return null;
|
||||||
return roles.map((r: any) => r.roleId).filter((r: any) =>
|
return roles.map((r: { roleId: string }) => r.roleId).filter((r: { roleId: string }) =>
|
||||||
r !== ""
|
r.roleId !== ""
|
||||||
) as T;
|
) as T;
|
||||||
}
|
}
|
||||||
|
|
||||||
case "state_keys": {
|
case "state_keys": {
|
||||||
const stateKeys = await sqlGetStateKeys(id as string);
|
const stateKeys = await sqlGetStateKeys(id as string);
|
||||||
if (!stateKeys || stateKeys.length === 0) return null;
|
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
|
b.created_on - a.created_on
|
||||||
);
|
);
|
||||||
return {
|
return {
|
||||||
|
|||||||
38
types/graph/ServicePrincipal.ts
Executable file → Normal file
38
types/graph/ServicePrincipal.ts
Executable file → Normal file
@ -31,7 +31,11 @@ export interface ServicePrincipal {
|
|||||||
tags: string[];
|
tags: string[];
|
||||||
tokenEncryptionKeyId: string | null;
|
tokenEncryptionKeyId: string | null;
|
||||||
samlSingleSignOnSettings: unknown | null;
|
samlSingleSignOnSettings: unknown | null;
|
||||||
addIns: any[];
|
addIns: Array<{
|
||||||
|
id: string;
|
||||||
|
type: string;
|
||||||
|
properties: Record<string, unknown>[];
|
||||||
|
}>[];
|
||||||
appRoleIds: string[];
|
appRoleIds: string[];
|
||||||
info: {
|
info: {
|
||||||
logoUrl: string | null;
|
logoUrl: string | null;
|
||||||
@ -40,10 +44,36 @@ export interface ServicePrincipal {
|
|||||||
supportUrl: string | null;
|
supportUrl: string | null;
|
||||||
termsOfServiceUrl: 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[];
|
oauth2PermissionScopeIds: string[];
|
||||||
passwordCredentials: any[];
|
passwordCredentials: Array<{
|
||||||
resourceSpecificApplicationPermissions: any[];
|
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: {
|
verifiedPublisher: {
|
||||||
displayName: string | null;
|
displayName: string | null;
|
||||||
verifiedPublisherId: string | null;
|
verifiedPublisherId: string | null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user