fix imports

This commit is contained in:
Alex Holliday committed 2026-05-29 11:23:31 -07:00
1 parent 2db88ac192
commit 6ddee6e85b
7 files changed
+84 -11

No files matched your search

+74 -1
View File
@@ -392,6 +392,12 @@
"type": "string" "type": "string"
} }
}, },
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"secret": { "secret": {
"type": "string" "type": "string"
}, },
@@ -469,6 +475,7 @@
"ignoreTlsErrors", "ignoreTlsErrors",
"useAdvancedMatching", "useAdvancedMatching",
"notifications", "notifications",
"tags",
"cpuAlertThreshold", "cpuAlertThreshold",
"memoryAlertThreshold", "memoryAlertThreshold",
"diskAlertThreshold", "diskAlertThreshold",
@@ -2362,6 +2369,16 @@
"profilePicture": { "profilePicture": {
"type": "string" "type": "string"
}, },
"password": {
"type": "string",
"minLength": 8,
"pattern": "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!?@#$%^&*()\\-_=+[\\]{};:'\",.~`|\\\\/])[A-Za-z0-9!?@#$%^&*()\\-_=+[\\]{};:'\",.~`|\\\\/]+$"
},
"newPassword": {
"type": "string",
"minLength": 8,
"pattern": "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!?@#$%^&*()\\-_=+[\\]{};:'\",.~`|\\\\/])[A-Za-z0-9!?@#$%^&*()\\-_=+[\\]{};:'\",.~`|\\\\/]+$"
},
"profileImage": { "profileImage": {
"type": "string", "type": "string",
"format": "binary" "format": "binary"
@@ -5207,7 +5224,8 @@
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} },
"minItems": 1
}, },
"duration": { "duration": {
"type": "number" "type": "number"
@@ -5478,6 +5496,24 @@
"required": false, "required": false,
"name": "filter", "name": "filter",
"in": "query" "in": "query"
},
{
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"required": false,
"name": "tags",
"in": "query"
} }
], ],
"responses": { "responses": {
@@ -5672,6 +5708,24 @@
"name": "type", "name": "type",
"in": "query" "in": "query"
}, },
{
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"required": false,
"name": "tags",
"in": "query"
},
{ {
"schema": { "schema": {
"type": "boolean" "type": "boolean"
@@ -6924,6 +6978,12 @@
"type": "string" "type": "string"
} }
}, },
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"secret": { "secret": {
"type": "string" "type": "string"
}, },
@@ -7586,6 +7646,13 @@
}, },
"default": [] "default": []
}, },
"tags": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"secret": { "secret": {
"type": "string" "type": "string"
}, },
@@ -8104,6 +8171,12 @@
"type": "string" "type": "string"
} }
}, },
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"secret": { "secret": {
"type": "string" "type": "string"
}, },
@@ -5,7 +5,7 @@ import { AppError } from "@/utils/AppError.js";
import { getDateForRange } from "@/utils/dataUtils.js"; import { getDateForRange } from "@/utils/dataUtils.js";
import type { IIncidentsRepository, IMonitorsRepository, IUsersRepository } from "@/repositories/index.js"; import type { IIncidentsRepository, IMonitorsRepository, IUsersRepository } from "@/repositories/index.js";
import type { Incident, IncidentSummary, User } from "@/types/index.js"; import type { Incident, IncidentSummary, User } from "@/types/index.js";
import type { MonitorActionDecision } from "@/service/infrastructure/SuperSimpleQueue/SuperSimpleQueueHelper.js"; import type { MonitorActionDecision } from "@/service/infrastructure/JobQueues/QueueHelper.js";
import type { INotificationMessageBuilder } from "@/service/infrastructure/notificationMessageBuilder.js"; import type { INotificationMessageBuilder } from "@/service/infrastructure/notificationMessageBuilder.js";
import type { ILogger } from "@/utils/logger.js"; import type { ILogger } from "@/utils/logger.js";
@@ -23,7 +23,7 @@ import type {
import demoMonitorsData from "@/utils/demoMonitors.json" with { type: "json" }; import demoMonitorsData from "@/utils/demoMonitors.json" with { type: "json" };
import { AppError } from "@/utils/AppError.js"; import { AppError } from "@/utils/AppError.js";
import type { ImportedMonitor } from "@/validation/monitorValidation.js"; import type { ImportedMonitor } from "@/validation/monitorValidation.js";
import { ISuperSimpleQueue } from "../infrastructure/SuperSimpleQueue/SuperSimpleQueue.js"; import { IJobQueue } from "@/service/infrastructure/JobQueues/IJobQueue.js";
import { ILogger } from "@/utils/logger.js"; import { ILogger } from "@/utils/logger.js";
const SERVICE_NAME = "MonitorService"; const SERVICE_NAME = "MonitorService";
@@ -96,7 +96,7 @@ export interface IMonitorService {
export class MonitorService implements IMonitorService { export class MonitorService implements IMonitorService {
static SERVICE_NAME = SERVICE_NAME; static SERVICE_NAME = SERVICE_NAME;
private jobQueue: ISuperSimpleQueue; private jobQueue: IJobQueue;
private logger: ILogger; private logger: ILogger;
private games: GamesMap; private games: GamesMap;
private monitorsRepository: IMonitorsRepository; private monitorsRepository: IMonitorsRepository;
@@ -117,7 +117,7 @@ export class MonitorService implements IMonitorService {
statusPagesRepository, statusPagesRepository,
incidentsRepository, incidentsRepository,
}: { }: {
jobQueue: ISuperSimpleQueue; jobQueue: IJobQueue;
logger: ILogger; logger: ILogger;
games: GamesMap; games: GamesMap;
monitorsRepository: IMonitorsRepository; monitorsRepository: IMonitorsRepository;
+3 -3
View File
@@ -10,7 +10,7 @@ import type { User } from "@/types/index.js";
import { canManageRole, type UserRole } from "@/types/user.js"; import { canManageRole, type UserRole } from "@/types/user.js";
import bcrypt from "bcryptjs"; import bcrypt from "bcryptjs";
import { AppError } from "@/utils/AppError.js"; import { AppError } from "@/utils/AppError.js";
import { ISuperSimpleQueue } from "@/service/infrastructure/SuperSimpleQueue/SuperSimpleQueue.js"; import { IJobQueue } from "@/service/infrastructure/JobQueues/IJobQueue.js";
import { IEmailService } from "@/service/infrastructure/emailService.js"; import { IEmailService } from "@/service/infrastructure/emailService.js";
import { EnvConfig, ISettingsService } from "@/service/system/settingsService.js"; import { EnvConfig, ISettingsService } from "@/service/system/settingsService.js";
import { ILogger } from "@/utils/logger.js"; import { ILogger } from "@/utils/logger.js";
@@ -55,7 +55,7 @@ export class UserService implements IUserService {
private settingsService: ISettingsService; private settingsService: ISettingsService;
private logger: ILogger; private logger: ILogger;
private jwt: JwtType; private jwt: JwtType;
private jobQueue: ISuperSimpleQueue; private jobQueue: IJobQueue;
private crypto: CryptoType; private crypto: CryptoType;
private monitorsRepository: IMonitorsRepository; private monitorsRepository: IMonitorsRepository;
private usersRepository: IUsersRepository; private usersRepository: IUsersRepository;
@@ -83,7 +83,7 @@ export class UserService implements IUserService {
settingsService: ISettingsService; settingsService: ISettingsService;
logger: ILogger; logger: ILogger;
jwt: JwtType; jwt: JwtType;
jobQueue: ISuperSimpleQueue; jobQueue: IJobQueue;
monitorsRepository: IMonitorsRepository; monitorsRepository: IMonitorsRepository;
usersRepository: IUsersRepository; usersRepository: IUsersRepository;
invitesRepository: IInvitesRepository; invitesRepository: IInvitesRepository;
@@ -105,7 +105,7 @@ export class QueueHelper implements IQueueHelper {
} }
get serviceName() { get serviceName() {
return SuperSimpleQueueHelper.SERVICE_NAME; return QueueHelper.SERVICE_NAME;
} }
getHeartbeatJob = () => { getHeartbeatJob = () => {
@@ -1,5 +1,5 @@
import type { HardwareStatusPayload, Monitor, MonitorStatusResponse } from "@/types/index.js"; import type { HardwareStatusPayload, Monitor, MonitorStatusResponse } from "@/types/index.js";
import type { MonitorActionDecision } from "@/service/infrastructure/SuperSimpleQueue/SuperSimpleQueueHelper.js"; import type { MonitorActionDecision } from "@/service/infrastructure/JobQueues/QueueHelper.js";
import type { import type {
NotificationMessage, NotificationMessage,
NotificationType, NotificationType,
@@ -2,7 +2,7 @@ import type { Monitor, MonitorStatusResponse, Notification } from "@/types/index
import type { NotificationMessage } from "@/types/notificationMessage.js"; import type { NotificationMessage } from "@/types/notificationMessage.js";
import { IMonitorsRepository, INotificationsRepository } from "@/repositories/index.js"; import { IMonitorsRepository, INotificationsRepository } from "@/repositories/index.js";
import { INotificationProvider } from "./notificationProviders/INotificationProvider.js"; import { INotificationProvider } from "./notificationProviders/INotificationProvider.js";
import type { MonitorActionDecision } from "@/service/infrastructure/SuperSimpleQueue/SuperSimpleQueueHelper.js"; import type { MonitorActionDecision } from "@/service/infrastructure/JobQueues/QueueHelper.js";
import type { ISettingsService } from "@/service/system/settingsService.js"; import type { ISettingsService } from "@/service/system/settingsService.js";
import { ILogger } from "@/utils/logger.js"; import { ILogger } from "@/utils/logger.js";
import type { INotificationMessageBuilder } from "@/service/infrastructure/notificationMessageBuilder.js"; import type { INotificationMessageBuilder } from "@/service/infrastructure/notificationMessageBuilder.js";