diff --git a/App/FeatureSet/ApiReference/Utils/Resources.ts b/App/FeatureSet/ApiReference/Utils/Resources.ts index 5fcd2e04c1..732ec8fba5 100644 --- a/App/FeatureSet/ApiReference/Utils/Resources.ts +++ b/App/FeatureSet/ApiReference/Utils/Resources.ts @@ -1,5 +1,5 @@ import BaseModel from "Common/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel"; -import ArrayUtil from "Common/Utils/ArrayUtil"; +import ArrayUtil from "Common/Utils/Array"; import Dictionary from "Common/Types/Dictionary"; import { IsBillingEnabled } from "Common/Server/EnvironmentConfig"; import Models from "Common/Models/DatabaseModels/Index"; diff --git a/App/FeatureSet/Workers/DataMigrations/AddTelemetryServiceColor.ts b/App/FeatureSet/Workers/DataMigrations/AddTelemetryServiceColor.ts index 75a5025595..10e80b72ba 100644 --- a/App/FeatureSet/Workers/DataMigrations/AddTelemetryServiceColor.ts +++ b/App/FeatureSet/Workers/DataMigrations/AddTelemetryServiceColor.ts @@ -1,5 +1,5 @@ import DataMigrationBase from "./DataMigrationBase"; -import ArrayUtil from "Common/Utils/ArrayUtil"; +import ArrayUtil from "Common/Utils/Array"; import { BrightColors } from "Common/Types/BrandColors"; import LIMIT_MAX from "Common/Types/Database/LimitMax"; import TelemetryServiceService from "Common/Server/Services/TelemetryServiceService"; diff --git a/Common/Server/API/StatusPageAPI.ts b/Common/Server/API/StatusPageAPI.ts index 174a3e8deb..706e38801b 100644 --- a/Common/Server/API/StatusPageAPI.ts +++ b/Common/Server/API/StatusPageAPI.ts @@ -36,7 +36,7 @@ import Response from "../Utils/Response"; import BaseAPI from "./BaseAPI"; import CommonAPI from "./CommonAPI"; import BaseModel from "Common/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel"; -import ArrayUtil from "Common/Utils/ArrayUtil"; +import ArrayUtil from "Common/Utils/Array"; import DatabaseCommonInteractionProps from "Common/Types/BaseDatabase/DatabaseCommonInteractionProps"; import SortOrder from "Common/Types/BaseDatabase/SortOrder"; import { LIMIT_PER_PROJECT } from "Common/Types/Database/LimitMax"; diff --git a/Common/Server/API/TelemetryAPI.ts b/Common/Server/API/TelemetryAPI.ts index 54a59e4f7d..b51b337f41 100644 --- a/Common/Server/API/TelemetryAPI.ts +++ b/Common/Server/API/TelemetryAPI.ts @@ -11,7 +11,7 @@ import CommonAPI from "./CommonAPI"; import DatabaseCommonInteractionProps from "Common/Types/BaseDatabase/DatabaseCommonInteractionProps"; import TelemetryType from "Common/Types/Telemetry/TelemetryType"; import TelemetryAttributeService from "../Services/TelemetryAttributeService"; -import ArrayUtil from "Common/Utils/ArrayUtil"; +import ArrayUtil from "Common/Utils/Array"; const router: ExpressRouter = Express.getRouter(); diff --git a/Common/Server/Services/ServiceCatalogService.ts b/Common/Server/Services/ServiceCatalogService.ts index 7bb2f9f694..e4df75710c 100644 --- a/Common/Server/Services/ServiceCatalogService.ts +++ b/Common/Server/Services/ServiceCatalogService.ts @@ -1,7 +1,7 @@ import CreateBy from "../Types/Database/CreateBy"; import { OnCreate } from "../Types/Database/Hooks"; import DatabaseService from "./DatabaseService"; -import ArrayUtil from "../../Utils/ArrayUtil"; +import ArrayUtil from "../../Utils/Array"; import { BrightColors } from "../../Types/BrandColors"; import Model from "Common/Models/DatabaseModels/ServiceCatalog"; diff --git a/Common/Server/Services/TelemetryServiceService.ts b/Common/Server/Services/TelemetryServiceService.ts index 9238f3eae2..10cb81566e 100644 --- a/Common/Server/Services/TelemetryServiceService.ts +++ b/Common/Server/Services/TelemetryServiceService.ts @@ -1,7 +1,7 @@ import CreateBy from "../Types/Database/CreateBy"; import { OnCreate } from "../Types/Database/Hooks"; import DatabaseService from "./DatabaseService"; -import ArrayUtil from "../../Utils/ArrayUtil"; +import ArrayUtil from "../../Utils/Array"; import { BrightColors } from "../../Types/BrandColors"; import BadDataException from "../../Types/Exception/BadDataException"; import ObjectID from "../../Types/ObjectID"; diff --git a/Common/Server/Types/Database/Permissions/AccessControlPermission.ts b/Common/Server/Types/Database/Permissions/AccessControlPermission.ts index bc8b5e70f6..fad301e33d 100644 --- a/Common/Server/Types/Database/Permissions/AccessControlPermission.ts +++ b/Common/Server/Types/Database/Permissions/AccessControlPermission.ts @@ -6,7 +6,7 @@ import AccessControlModel from "Common/Models/DatabaseModels/DatabaseBaseModel/A import BaseModel, { DatabaseBaseModelType, } from "Common/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel"; -import ArrayUtil from "Common/Utils/ArrayUtil"; +import ArrayUtil from "Common/Utils/Array"; import { ColumnAccessControl } from "Common/Types/BaseDatabase/AccessControl"; import DatabaseCommonInteractionProps from "Common/Types/BaseDatabase/DatabaseCommonInteractionProps"; import DatabaseCommonInteractionPropsUtil, { diff --git a/Common/Tests/Types/ArrayUtil.test.ts b/Common/Tests/Types/ArrayUtil.test.ts index 4f4bc8a161..e3339cc02e 100644 --- a/Common/Tests/Types/ArrayUtil.test.ts +++ b/Common/Tests/Types/ArrayUtil.test.ts @@ -1,4 +1,4 @@ -import ArrayUtil from "../../Utils/ArrayUtil"; +import ArrayUtil from "../../Utils/Array"; describe("ArrayUtil.isEqual", () => { const equalArrays: Array<[Array, Array]> = [ diff --git a/Common/Utils/ArrayUtil.ts b/Common/Utils/Array.ts similarity index 100% rename from Common/Utils/ArrayUtil.ts rename to Common/Utils/Array.ts diff --git a/Copilot/Service/CopilotActions/ImproveComments.ts b/Copilot/Service/CopilotActions/ImproveComments.ts index 55f295d470..27458bb820 100644 --- a/Copilot/Service/CopilotActions/ImproveComments.ts +++ b/Copilot/Service/CopilotActions/ImproveComments.ts @@ -14,7 +14,7 @@ import ObjectID from "Common/Types/ObjectID"; import CopilotAction from "Common/Models/DatabaseModels/CopilotAction"; import ServiceRepositoryUtil from "../../Utils/ServiceRepository"; import Dictionary from "Common/Types/Dictionary"; -import ArrayUtil from "Common/Utils/ArrayUtil"; +import ArrayUtil from "Common/Utils/Array"; import CopilotActionStatus from "Common/Types/Copilot/CopilotActionStatus"; export default class ImproveComments extends CopilotActionBase { diff --git a/Ingestor/API/OTelIngest.ts b/Ingestor/API/OTelIngest.ts index 120c12930f..7c70d5bd8d 100644 --- a/Ingestor/API/OTelIngest.ts +++ b/Ingestor/API/OTelIngest.ts @@ -1,4 +1,4 @@ -import ArrayUtil from "Common/Utils/ArrayUtil"; +import ArrayUtil from "Common/Utils/Array"; import TelemetryIngest, { TelemetryRequest, } from "../Middleware/TelemetryIngest"; diff --git a/Ingestor/Service/OTelIngest.ts b/Ingestor/Service/OTelIngest.ts index 6cbdc33dd6..56f865a088 100644 --- a/Ingestor/Service/OTelIngest.ts +++ b/Ingestor/Service/OTelIngest.ts @@ -1,4 +1,4 @@ -import ArrayUtil from "Common/Utils/ArrayUtil"; +import ArrayUtil from "Common/Utils/Array"; import OneUptimeDate from "Common/Types/Date"; import { JSONArray, JSONObject, JSONValue } from "Common/Types/JSON"; import JSONFunctions from "Common/Types/JSONFunctions";