refactor: Update import statements to use ArrayUtil from Common/Utils/Array

This commit is contained in:
Simon Larsen 2024-09-05 13:29:58 +01:00
parent ddf0b67546
commit 94eaab9ca4
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
12 changed files with 11 additions and 11 deletions

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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();

View File

@ -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";

View File

@ -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";

View File

@ -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, {

View File

@ -1,4 +1,4 @@
import ArrayUtil from "../../Utils/ArrayUtil";
import ArrayUtil from "../../Utils/Array";
describe("ArrayUtil.isEqual", () => {
const equalArrays: Array<[Array<any>, Array<any>]> = [

View File

@ -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 {

View File

@ -1,4 +1,4 @@
import ArrayUtil from "Common/Utils/ArrayUtil";
import ArrayUtil from "Common/Utils/Array";
import TelemetryIngest, {
TelemetryRequest,
} from "../Middleware/TelemetryIngest";

View File

@ -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";