diff --git a/autoadmin-ws-server/package.json b/autoadmin-ws-server/package.json index 2db77fd12..a0af28372 100644 --- a/autoadmin-ws-server/package.json +++ b/autoadmin-ws-server/package.json @@ -21,7 +21,7 @@ "zod": "^4.3.6" }, "devDependencies": { - "@biomejs/biome": "2.3.14", + "@biomejs/biome": "2.4.0", "@types/jsonwebtoken": "^9.0.10", "@types/node": "^22.10.2", "@types/ws": "^8.18.1", diff --git a/autoadmin-ws-server/yarn.lock b/autoadmin-ws-server/yarn.lock index cc2b817dc..ce717cde5 100644 --- a/autoadmin-ws-server/yarn.lock +++ b/autoadmin-ws-server/yarn.lock @@ -5,18 +5,18 @@ __metadata: version: 6 cacheKey: 8 -"@biomejs/biome@npm:2.3.14": - version: 2.3.14 - resolution: "@biomejs/biome@npm:2.3.14" +"@biomejs/biome@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/biome@npm:2.4.0" dependencies: - "@biomejs/cli-darwin-arm64": 2.3.14 - "@biomejs/cli-darwin-x64": 2.3.14 - "@biomejs/cli-linux-arm64": 2.3.14 - "@biomejs/cli-linux-arm64-musl": 2.3.14 - "@biomejs/cli-linux-x64": 2.3.14 - "@biomejs/cli-linux-x64-musl": 2.3.14 - "@biomejs/cli-win32-arm64": 2.3.14 - "@biomejs/cli-win32-x64": 2.3.14 + "@biomejs/cli-darwin-arm64": 2.4.0 + "@biomejs/cli-darwin-x64": 2.4.0 + "@biomejs/cli-linux-arm64": 2.4.0 + "@biomejs/cli-linux-arm64-musl": 2.4.0 + "@biomejs/cli-linux-x64": 2.4.0 + "@biomejs/cli-linux-x64-musl": 2.4.0 + "@biomejs/cli-win32-arm64": 2.4.0 + "@biomejs/cli-win32-x64": 2.4.0 dependenciesMeta: "@biomejs/cli-darwin-arm64": optional: true @@ -36,62 +36,62 @@ __metadata: optional: true bin: biome: bin/biome - checksum: 05bc8b81e5c9f0b395e40cbcf2d0645776100fb9d10e5cebbadd9c5290fa8f05948c4bb1f685c65e9b4a9ad9d70a2320ab387a3a53d59818328a49ecb73b6cf8 + checksum: 4712b7ce8513e4c26d2508c9c45297cb2622e4b9fc1fdf9132ebf53f2a55667df39e2f0bc270d65c070fdc7bc22cc12baadee11de44acc52733916759aa3c596 languageName: node linkType: hard -"@biomejs/cli-darwin-arm64@npm:2.3.14": - version: 2.3.14 - resolution: "@biomejs/cli-darwin-arm64@npm:2.3.14" +"@biomejs/cli-darwin-arm64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-darwin-arm64@npm:2.4.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-darwin-x64@npm:2.3.14": - version: 2.3.14 - resolution: "@biomejs/cli-darwin-x64@npm:2.3.14" +"@biomejs/cli-darwin-x64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-darwin-x64@npm:2.4.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@biomejs/cli-linux-arm64-musl@npm:2.3.14": - version: 2.3.14 - resolution: "@biomejs/cli-linux-arm64-musl@npm:2.3.14" +"@biomejs/cli-linux-arm64-musl@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-linux-arm64-musl@npm:2.4.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@biomejs/cli-linux-arm64@npm:2.3.14": - version: 2.3.14 - resolution: "@biomejs/cli-linux-arm64@npm:2.3.14" +"@biomejs/cli-linux-arm64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-linux-arm64@npm:2.4.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@biomejs/cli-linux-x64-musl@npm:2.3.14": - version: 2.3.14 - resolution: "@biomejs/cli-linux-x64-musl@npm:2.3.14" +"@biomejs/cli-linux-x64-musl@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-linux-x64-musl@npm:2.4.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@biomejs/cli-linux-x64@npm:2.3.14": - version: 2.3.14 - resolution: "@biomejs/cli-linux-x64@npm:2.3.14" +"@biomejs/cli-linux-x64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-linux-x64@npm:2.4.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@biomejs/cli-win32-arm64@npm:2.3.14": - version: 2.3.14 - resolution: "@biomejs/cli-win32-arm64@npm:2.3.14" +"@biomejs/cli-win32-arm64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-win32-arm64@npm:2.4.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-win32-x64@npm:2.3.14": - version: 2.3.14 - resolution: "@biomejs/cli-win32-x64@npm:2.3.14" +"@biomejs/cli-win32-x64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-win32-x64@npm:2.4.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -1087,7 +1087,7 @@ __metadata: version: 0.0.0-use.local resolution: "rocketadmin-ws-server@workspace:." dependencies: - "@biomejs/biome": 2.3.14 + "@biomejs/biome": 2.4.0 "@hono/node-server": ^1.19.9 "@types/jsonwebtoken": ^9.0.10 "@types/node": ^22.10.2 diff --git a/backend/package.json b/backend/package.json index 8a5430df1..36ba56027 100644 --- a/backend/package.json +++ b/backend/package.json @@ -25,14 +25,14 @@ }, "dependencies": { "@amplitude/node": "1.10.2", - "@aws-sdk/client-bedrock-runtime": "^3.987.0", - "@aws-sdk/client-s3": "^3.987.0", - "@aws-sdk/lib-dynamodb": "^3.987.0", - "@aws-sdk/s3-request-presigner": "^3.987.0", + "@aws-sdk/client-bedrock-runtime": "^3.990.0", + "@aws-sdk/client-s3": "^3.990.0", + "@aws-sdk/lib-dynamodb": "^3.990.0", + "@aws-sdk/s3-request-presigner": "^3.990.0", "@electric-sql/pglite": "^0.3.15", "@faker-js/faker": "^10.3.0", - "@langchain/aws": "^1.2.2", - "@langchain/core": "^1.1.22", + "@langchain/aws": "^1.2.3", + "@langchain/core": "^1.1.24", "@langchain/openai": "^1.2.7", "@nestjs/common": "11.1.13", "@nestjs/config": "4.0.3", @@ -45,11 +45,11 @@ "@nestjsx/crud": "4.6.2", "@rocketadmin/shared-code": "workspace:*", "@sentry/minimal": "^6.19.7", - "@sentry/node": "10.38.0", + "@sentry/node": "10.39.0", "@types/crypto-js": "^4.2.2", "@types/jsonwebtoken": "^9.0.10", "@types/multer": "^2.0.0", - "@types/nodemailer": "^7.0.9", + "@types/nodemailer": "^7.0.10", "@types/nunjucks": "^3.2.6", "@types/qrcode": "^1.5.6", "@zapier/secret-scrubber": "^1.1.6", @@ -65,7 +65,7 @@ "crc": "^4.3.2", "crypto-js": "4.2.0", "csv": "^6.4.1", - "dotenv": "17.2.4", + "dotenv": "17.3.1", "express": "5.2.1", "fetch-blob": "^4.0.0", "helmet": "8.1.0", @@ -74,12 +74,12 @@ "json2csv": "^5.0.7", "jsonwebtoken": "^9.0.3", "knex": "3.1.0", - "langchain": "^1.2.21", + "langchain": "^1.2.24", "lru-cache": "^11.2.6", "nanoid": "5.1.6", "nodemailer": "^8.0.1", "nunjucks": "^3.2.4", - "openai": "^6.21.0", + "openai": "^6.22.0", "otplib": "^12.0.1", "p-queue": "9.1.0", "pg": "^8.18.0", @@ -87,7 +87,7 @@ "qrcode": "^1.5.4", "query-string": "^9.3.1", "reflect-metadata": "0.2.2", - "rimraf": "6.1.2", + "rimraf": "6.1.3", "rxjs": "7.8.2", "safe-regex2": "^5.0.0", "secure-json-parse": "4.1.0", diff --git a/backend/public/email-templates/rocketadmin-reminder-email.html b/backend/public/email-templates/rocketadmin-reminder-email.html index ac1ac7cd3..d61a21a40 100644 --- a/backend/public/email-templates/rocketadmin-reminder-email.html +++ b/backend/public/email-templates/rocketadmin-reminder-email.html @@ -1,3 +1,4 @@ + diff --git a/backend/src/ai-core/services/ai-core.service.ts b/backend/src/ai-core/services/ai-core.service.ts index 7f4a630ce..7f901db37 100644 --- a/backend/src/ai-core/services/ai-core.service.ts +++ b/backend/src/ai-core/services/ai-core.service.ts @@ -35,7 +35,7 @@ export class AICoreService implements IAIService { } public async complete(prompt: string, config?: AIProviderConfig): Promise { - return this.getProvider().generateCompletion(prompt, config); + return await this.getProvider().generateCompletion(prompt, config); } public async completeWithProvider( @@ -43,11 +43,11 @@ export class AICoreService implements IAIService { prompt: string, config?: AIProviderConfig, ): Promise { - return this.getProvider(provider).generateCompletion(prompt, config); + return await this.getProvider(provider).generateCompletion(prompt, config); } public async chat(messages: BaseMessage[], config?: AIProviderConfig): Promise { - return this.getProvider().generateChatCompletion(messages, config); + return await this.getProvider().generateChatCompletion(messages, config); } public async chatWithProvider( @@ -55,14 +55,14 @@ export class AICoreService implements IAIService { messages: BaseMessage[], config?: AIProviderConfig, ): Promise { - return this.getProvider(provider).generateChatCompletion(messages, config); + return await this.getProvider(provider).generateChatCompletion(messages, config); } public async streamChat( messages: BaseMessage[], config?: AIProviderConfig, ): Promise> { - return this.getProvider().generateStreamingCompletion(messages, config); + return await this.getProvider().generateStreamingCompletion(messages, config); } public async streamChatWithProvider( @@ -70,7 +70,7 @@ export class AICoreService implements IAIService { messages: BaseMessage[], config?: AIProviderConfig, ): Promise> { - return this.getProvider(provider).generateStreamingCompletion(messages, config); + return await this.getProvider(provider).generateStreamingCompletion(messages, config); } public async chatWithTools( @@ -78,7 +78,7 @@ export class AICoreService implements IAIService { tools: AIToolDefinition[], config?: AIProviderConfig, ): Promise { - return this.getProvider().generateWithTools(messages, tools, config); + return await this.getProvider().generateWithTools(messages, tools, config); } public async chatWithToolsAndProvider( @@ -87,7 +87,7 @@ export class AICoreService implements IAIService { tools: AIToolDefinition[], config?: AIProviderConfig, ): Promise { - return this.getProvider(provider).generateWithTools(messages, tools, config); + return await this.getProvider(provider).generateWithTools(messages, tools, config); } public async streamChatWithTools( @@ -95,7 +95,7 @@ export class AICoreService implements IAIService { tools: AIToolDefinition[], config?: AIProviderConfig, ): Promise> { - return this.getProvider().generateStreamingWithTools(messages, tools, config); + return await this.getProvider().generateStreamingWithTools(messages, tools, config); } public async streamChatWithToolsAndProvider( @@ -104,7 +104,7 @@ export class AICoreService implements IAIService { tools: AIToolDefinition[], config?: AIProviderConfig, ): Promise> { - return this.getProvider(provider).generateStreamingWithTools(messages, tools, config); + return await this.getProvider(provider).generateStreamingWithTools(messages, tools, config); } public async continueAfterToolCall( @@ -113,7 +113,7 @@ export class AICoreService implements IAIService { tools: AIToolDefinition[], config?: AIProviderConfig, ): Promise { - return this.getProvider().continueWithToolResults(messages, toolResults, tools, config); + return await this.getProvider().continueWithToolResults(messages, toolResults, tools, config); } public async continueStreamingAfterToolCall( @@ -122,7 +122,7 @@ export class AICoreService implements IAIService { tools: AIToolDefinition[], config?: AIProviderConfig, ): Promise> { - return this.getProvider().continueStreamingWithToolResults(messages, toolResults, tools, config); + return await this.getProvider().continueStreamingWithToolResults(messages, toolResults, tools, config); } public getDefaultProvider(): AIProviderType { diff --git a/backend/src/entities/table-categories/table-categories.controller.ts b/backend/src/entities/table-categories/table-categories.controller.ts index 7b3b450e6..033f18b39 100644 --- a/backend/src/entities/table-categories/table-categories.controller.ts +++ b/backend/src/entities/table-categories/table-categories.controller.ts @@ -4,21 +4,21 @@ import { UseCaseType } from '../../common/data-injection.tokens.js'; import { MasterPassword } from '../../decorators/master-password.decorator.js'; import { SlugUuid } from '../../decorators/slug-uuid.decorator.js'; import { Timeout } from '../../decorators/timeout.decorator.js'; +import { UserId } from '../../decorators/user-id.decorator.js'; import { InTransactionEnum } from '../../enums/in-transaction.enum.js'; import { ConnectionEditGuard } from '../../guards/connection-edit.guard.js'; import { TablesReceiveGuard } from '../../guards/tables-receive.guard.js'; import { SentryInterceptor } from '../../interceptors/sentry.interceptor.js'; +import { FindTablesDs } from '../table/application/data-structures/find-tables.ds.js'; import { CreateOrUpdateTableCategoriesDS } from './data-sctructures/create-or-update-table-categories.ds.js'; import { CreateTableCategoryDto } from './dto/create-table-category.dto.js'; +import { FoundTableCategoriesWithTablesRo } from './dto/found-table-categories-with-tables.ro.js'; import { FoundTableCategoryRo } from './dto/found-table-category.ro.js'; import { ICreateTableCategories, IFindTableCategories, IFindTableCategoriesWithTables, } from './use-cases/table-categories-use-cases.interface.js'; -import { FoundTableCategoriesWithTablesRo } from './dto/found-table-categories-with-tables.ro.js'; -import { UserId } from '../../decorators/user-id.decorator.js'; -import { FindTablesDs } from '../table/application/data-structures/find-tables.ds.js'; @UseInterceptors(SentryInterceptor) @Timeout() diff --git a/backend/src/entities/table-categories/use-cases/find-table-categories-with-tables.use.case.ts b/backend/src/entities/table-categories/use-cases/find-table-categories-with-tables.use.case.ts index 7f9d5b0a9..d19954dbf 100644 --- a/backend/src/entities/table-categories/use-cases/find-table-categories-with-tables.use.case.ts +++ b/backend/src/entities/table-categories/use-cases/find-table-categories-with-tables.use.case.ts @@ -13,9 +13,9 @@ import { isConnectionTypeAgent } from '../../../helpers/is-connection-entity-age import { isObjectPropertyExists } from '../../../helpers/validators/is-object-property-exists-validator.js'; import { ConnectionEntity } from '../../connection/connection.entity.js'; import { ITableAndViewPermissionData } from '../../permission/permission.interface.js'; -import { TableSettingsEntity } from '../../table-settings/common-table-settings/table-settings.entity.js'; import { FindTablesDs } from '../../table/application/data-structures/find-tables.ds.js'; import { FoundTableDs } from '../../table/application/data-structures/found-table.ds.js'; +import { TableSettingsEntity } from '../../table-settings/common-table-settings/table-settings.entity.js'; import { FoundTableCategoriesWithTablesRo } from '../dto/found-table-categories-with-tables.ro.js'; import { IFindTableCategoriesWithTables } from './table-categories-use-cases.interface.js'; diff --git a/backend/src/entities/table/use-cases/find-tables-in-connection.use.case.ts b/backend/src/entities/table/use-cases/find-tables-in-connection.use.case.ts index eb4b154e4..e99d653b0 100644 --- a/backend/src/entities/table/use-cases/find-tables-in-connection.use.case.ts +++ b/backend/src/entities/table/use-cases/find-tables-in-connection.use.case.ts @@ -1,8 +1,8 @@ import { HttpException, HttpStatus, Inject, Injectable } from '@nestjs/common'; +import { validateSchemaCache } from '@rocketadmin/shared-code/dist/src/caching/schema-cache-validator.js'; import { getDataAccessObject } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/create-data-access-object.js'; import { TableDS } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/data-structures/table.ds.js'; import { TableStructureDS } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/data-structures/table-structure.ds.js'; -import { validateSchemaCache } from '@rocketadmin/shared-code/dist/src/caching/schema-cache-validator.js'; import * as Sentry from '@sentry/node'; import PQueue from 'p-queue'; import AbstractUseCase from '../../../common/abstract-use.case.js'; diff --git a/backend/src/entities/table/use-cases/get-row-by-primary-key.use.case.ts b/backend/src/entities/table/use-cases/get-row-by-primary-key.use.case.ts index 951464bff..7b210f041 100644 --- a/backend/src/entities/table/use-cases/get-row-by-primary-key.use.case.ts +++ b/backend/src/entities/table/use-cases/get-row-by-primary-key.use.case.ts @@ -1,5 +1,6 @@ /* eslint-disable prefer-const */ import { HttpException, HttpStatus, Inject, Injectable } from '@nestjs/common'; +import { validateSchemaCache } from '@rocketadmin/shared-code/dist/src/caching/schema-cache-validator.js'; import { getDataAccessObject } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/create-data-access-object.js'; import { ForeignKeyDS } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/data-structures/foreign-key.ds.js'; import { ForeignKeyWithAutocompleteColumnsDS } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/data-structures/foreign-key-with-autocomplete-columns.ds.js'; @@ -7,7 +8,6 @@ import { ReferencedTableNamesAndColumnsDS } from '@rocketadmin/shared-code/dist/ import { buildDAOsTableSettingsDs } from '@rocketadmin/shared-code/dist/src/helpers/data-structures-builders/table-settings.ds.builder.js'; import { IDataAccessObject } from '@rocketadmin/shared-code/dist/src/shared/interfaces/data-access-object.interface.js'; import { IDataAccessObjectAgent } from '@rocketadmin/shared-code/dist/src/shared/interfaces/data-access-object-agent.interface.js'; -import { validateSchemaCache } from '@rocketadmin/shared-code/dist/src/caching/schema-cache-validator.js'; import JSON5 from 'json5'; import AbstractUseCase from '../../../common/abstract-use.case.js'; import { IGlobalDatabaseContext } from '../../../common/application/global-database-context.interface.js'; diff --git a/backend/src/entities/table/use-cases/get-table-rows.use.case.ts b/backend/src/entities/table/use-cases/get-table-rows.use.case.ts index 65ff216f5..5fba95296 100644 --- a/backend/src/entities/table/use-cases/get-table-rows.use.case.ts +++ b/backend/src/entities/table/use-cases/get-table-rows.use.case.ts @@ -1,4 +1,5 @@ import { BadRequestException, HttpException, HttpStatus, Inject, Injectable } from '@nestjs/common'; +import { validateSchemaCache } from '@rocketadmin/shared-code/dist/src/caching/schema-cache-validator.js'; import { getDataAccessObject } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/create-data-access-object.js'; import { ForeignKeyDS } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/data-structures/foreign-key.ds.js'; import { ForeignKeyWithAutocompleteColumnsDS } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/data-structures/foreign-key-with-autocomplete-columns.ds.js'; @@ -8,7 +9,6 @@ import { ConnectionTypesEnum } from '@rocketadmin/shared-code/dist/src/shared/en import { IDataAccessObject } from '@rocketadmin/shared-code/dist/src/shared/interfaces/data-access-object.interface.js'; import { IDataAccessObjectAgent } from '@rocketadmin/shared-code/dist/src/shared/interfaces/data-access-object-agent.interface.js'; import { FoundRowsDS } from '@rocketadmin/shared-code/src/data-access-layer/shared/data-structures/found-rows.ds.js'; -import { validateSchemaCache } from '@rocketadmin/shared-code/dist/src/caching/schema-cache-validator.js'; import Sentry from '@sentry/minimal'; import JSON5 from 'json5'; import AbstractUseCase from '../../../common/abstract-use.case.js'; diff --git a/backend/src/entities/table/use-cases/get-table-structure.use.case.ts b/backend/src/entities/table/use-cases/get-table-structure.use.case.ts index 2073311db..5e5ab07ac 100644 --- a/backend/src/entities/table/use-cases/get-table-structure.use.case.ts +++ b/backend/src/entities/table/use-cases/get-table-structure.use.case.ts @@ -1,10 +1,10 @@ import { HttpException, HttpStatus, Inject, Injectable } from '@nestjs/common'; +import { validateSchemaCache } from '@rocketadmin/shared-code/dist/src/caching/schema-cache-validator.js'; import { getDataAccessObject } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/create-data-access-object.js'; import { ForeignKeyDS } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/data-structures/foreign-key.ds.js'; import { ForeignKeyWithAutocompleteColumnsDS } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/data-structures/foreign-key-with-autocomplete-columns.ds.js'; import { IDataAccessObject } from '@rocketadmin/shared-code/dist/src/shared/interfaces/data-access-object.interface.js'; import { IDataAccessObjectAgent } from '@rocketadmin/shared-code/dist/src/shared/interfaces/data-access-object-agent.interface.js'; -import { validateSchemaCache } from '@rocketadmin/shared-code/dist/src/caching/schema-cache-validator.js'; import JSON5 from 'json5'; import AbstractUseCase from '../../../common/abstract-use.case.js'; import { IGlobalDatabaseContext } from '../../../common/application/global-database-context.interface.js'; diff --git a/backend/test/ava-tests/complex-table-tests/complex-ibmdb2-table-e2e.test.ts b/backend/test/ava-tests/complex-table-tests/complex-ibmdb2-table-e2e.test.ts index 1271e989f..01bc6d58e 100644 --- a/backend/test/ava-tests/complex-table-tests/complex-ibmdb2-table-e2e.test.ts +++ b/backend/test/ava-tests/complex-table-tests/complex-ibmdb2-table-e2e.test.ts @@ -16,11 +16,11 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; +import { TestUtils } from '../../utils/test.utils.js'; import { createTestIBMDB2TablesWithComplexPFKeys, createTestIBMDB2TablesWithSimplePFKeys, } from '../../utils/test-utilities/create-test-ibmdb2-tables.js'; -import { TestUtils } from '../../utils/test.utils.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/complex-table-tests/complex-mssql-table-e2e.test.ts b/backend/test/ava-tests/complex-table-tests/complex-mssql-table-e2e.test.ts index dc115c2e4..375f908cf 100644 --- a/backend/test/ava-tests/complex-table-tests/complex-mssql-table-e2e.test.ts +++ b/backend/test/ava-tests/complex-table-tests/complex-mssql-table-e2e.test.ts @@ -16,11 +16,11 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; +import { TestUtils } from '../../utils/test.utils.js'; import { createTestTablesWithComplexPFKeys, createTestTablesWithSimplePFKeys, } from '../../utils/test-utilities/create-test-postgres-tables.js'; -import { TestUtils } from '../../utils/test.utils.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/complex-table-tests/complex-mysql-table-e2e.test.ts b/backend/test/ava-tests/complex-table-tests/complex-mysql-table-e2e.test.ts index 02d02c846..893354738 100644 --- a/backend/test/ava-tests/complex-table-tests/complex-mysql-table-e2e.test.ts +++ b/backend/test/ava-tests/complex-table-tests/complex-mysql-table-e2e.test.ts @@ -16,11 +16,11 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; +import { TestUtils } from '../../utils/test.utils.js'; import { createTestMySQLTablesWithComplexPFKeys, createTestMySQLTablesWithSimplePFKeys, } from '../../utils/test-utilities/create-test-mysql-tables.js'; -import { TestUtils } from '../../utils/test.utils.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/complex-table-tests/complex-oracle-table-e2e.test.ts b/backend/test/ava-tests/complex-table-tests/complex-oracle-table-e2e.test.ts index bb3d3cfc0..518e29d1b 100644 --- a/backend/test/ava-tests/complex-table-tests/complex-oracle-table-e2e.test.ts +++ b/backend/test/ava-tests/complex-table-tests/complex-oracle-table-e2e.test.ts @@ -16,11 +16,11 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; +import { TestUtils } from '../../utils/test.utils.js'; import { createTestTablesWithComplexPFKeys, createTestTablesWithSimplePFKeys, } from '../../utils/test-utilities/create-test-postgres-tables.js'; -import { TestUtils } from '../../utils/test.utils.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/complex-table-tests/complex-postgres-table-e2e.test.ts b/backend/test/ava-tests/complex-table-tests/complex-postgres-table-e2e.test.ts index 5912432ec..7272b7adc 100644 --- a/backend/test/ava-tests/complex-table-tests/complex-postgres-table-e2e.test.ts +++ b/backend/test/ava-tests/complex-table-tests/complex-postgres-table-e2e.test.ts @@ -16,11 +16,11 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; +import { TestUtils } from '../../utils/test.utils.js'; import { createTestTablesWithComplexPFKeys, createTestTablesWithSimplePFKeys, } from '../../utils/test-utilities/create-test-postgres-tables.js'; -import { TestUtils } from '../../utils/test.utils.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-ai-chat-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-ai-chat-e2e.test.ts index 58baba120..ffa273075 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-ai-chat-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-ai-chat-e2e.test.ts @@ -3,33 +3,33 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; +import { DataSource } from 'typeorm'; +import { AICoreService } from '../../../src/ai-core/index.js'; import { ApplicationModule } from '../../../src/app.module.js'; -import { Messages } from '../../../src/exceptions/text/messages.js'; +import { BaseType } from '../../../src/common/data-injection.tokens.js'; +import { AiChatMessageEntity } from '../../../src/entities/ai/ai-conversation-history/ai-chat-messages/ai-chat-message.entity.js'; +import { MessageRole } from '../../../src/entities/ai/ai-conversation-history/ai-chat-messages/message-role.enum.js'; +import { UserAiChatEntity } from '../../../src/entities/ai/ai-conversation-history/user-ai-chat/user-ai-chat.entity.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; +import { createTestPostgresTableWithSchema } from '../../utils/create-test-table.js'; +import { dropTestTables } from '../../utils/drop-test-tables.js'; +import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { getTestData } from '../../utils/get-test-data.js'; -import { createTestPostgresTableWithSchema } from '../../utils/create-test-table.js'; -import { dropTestTables } from '../../utils/drop-test-tables.js'; -import { AICoreService } from '../../../src/ai-core/index.js'; -import { DataSource } from 'typeorm'; -import { BaseType } from '../../../src/common/data-injection.tokens.js'; -import { UserAiChatEntity } from '../../../src/entities/ai/ai-conversation-history/user-ai-chat/user-ai-chat.entity.js'; -import { AiChatMessageEntity } from '../../../src/entities/ai/ai-conversation-history/ai-chat-messages/ai-chat-message.entity.js'; -import { MessageRole } from '../../../src/entities/ai/ai-conversation-history/ai-chat-messages/message-role.enum.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-app-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-app-e2e.test.ts index e85362d0c..c4c718d15 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-app-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-app-e2e.test.ts @@ -1,14 +1,13 @@ -import test from 'ava'; -import { Test } from '@nestjs/testing'; - import { INestApplication } from '@nestjs/common'; +import { Test } from '@nestjs/testing'; +import test from 'ava'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; -import { DatabaseService } from '../../../src/shared/database/database.service.js'; -import { DatabaseModule } from '../../../src/shared/database/database.module.js'; -import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; +import { DatabaseModule } from '../../../src/shared/database/database.module.js'; +import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { createInitialTestUser } from '../../utils/register-user-and-return-user-info.js'; +import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-company-info-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-company-info-e2e.test.ts index faf501f18..3137d173e 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-company-info-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-company-info-e2e.test.ts @@ -19,10 +19,10 @@ import { Constants } from '../../../src/helpers/constants/constants.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; +import { createInitialTestUser } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { TestUtils } from '../../utils/test.utils.js'; import { createConnectionsAndInviteNewUserInNewGroupWithGroupPermissions } from '../../utils/user-with-different-permissions-utils.js'; -import { createInitialTestUser } from '../../utils/register-user-and-return-user-info.js'; const _mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-connection-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-connection-e2e.test.ts index acee6fdf5..4dbfbe73a 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-connection-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-connection-e2e.test.ts @@ -3,24 +3,24 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; import { AccessLevelEnum } from '../../../src/enums/index.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { + createInitialTestUser, inviteUserInCompanyAndAcceptInvitation, registerUserAndReturnUserInfo, - createInitialTestUser, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-connection-properties-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-connection-properties-e2e.test.ts index 3fe0f53fd..ff427a8cf 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-connection-properties-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-connection-properties-e2e.test.ts @@ -3,22 +3,22 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; import { getTestKnex } from '../../utils/get-test-knex.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-custom-field-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-custom-field-e2e.test.ts index ad398d849..263bca1d0 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-custom-field-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-custom-field-e2e.test.ts @@ -1,29 +1,30 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ + +import { faker } from '@faker-js/faker'; +import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; +import test from 'ava'; +import { ValidationError } from 'class-validator'; +import cookieParser from 'cookie-parser'; +import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; +import { Encryptor } from '../../../src/helpers/encryption/encryptor.js'; +import { replaceTextInCurlies } from '../../../src/helpers/index.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; -import { TestUtils } from '../../utils/test.utils.js'; -import cookieParser from 'cookie-parser'; -import { INestApplication, ValidationPipe } from '@nestjs/common'; import { MockFactory } from '../../mock.factory.js'; -import { Encryptor } from '../../../src/helpers/encryption/encryptor.js'; -import test from 'ava'; +import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { getTestData } from '../../utils/get-test-data.js'; -import request from 'supertest'; -import { replaceTextInCurlies } from '../../../src/helpers/index.js'; -import { faker } from '@faker-js/faker'; -import { Messages } from '../../../src/exceptions/text/messages.js'; -import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; let app: INestApplication; let _testUtils: TestUtils; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-dashboard-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-dashboard-e2e.test.ts index 949f40d17..aaa156552 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-dashboard-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-dashboard-e2e.test.ts @@ -8,6 +8,7 @@ import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { DashboardWidgetTypeEnum } from '../../../src/enums/dashboard-widget-type.enum.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; @@ -16,12 +17,11 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { DashboardWidgetTypeEnum } from '../../../src/enums/dashboard-widget-type.enum.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-group-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-group-e2e.test.ts index ba601815b..f5916d8c2 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-group-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-group-e2e.test.ts @@ -1,29 +1,30 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ + +import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; -import { TestUtils } from '../../utils/test.utils.js'; -import { MockFactory } from '../../mock.factory.js'; -import test from 'ava'; import { Test } from '@nestjs/testing'; +import test from 'ava'; +import { ValidationError } from 'class-validator'; +import cookieParser from 'cookie-parser'; +import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { AccessLevelEnum } from '../../../src/enums/index.js'; +import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; -import cookieParser from 'cookie-parser'; -import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { MockFactory } from '../../mock.factory.js'; +import { getTestData } from '../../utils/get-test-data.js'; import { + createInitialTestUser, inviteUserInCompanyAndAcceptInvitation, registerUserAndReturnUserInfo, - createInitialTestUser, } from '../../utils/register-user-and-return-user-info.js'; -import { getTestData } from '../../utils/get-test-data.js'; -import request from 'supertest'; -import { AccessLevelEnum } from '../../../src/enums/index.js'; -import { faker } from '@faker-js/faker'; -import { Messages } from '../../../src/exceptions/text/messages.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; let app: INestApplication; let _testUtils: TestUtils; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-permissions-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-permissions-e2e.test.ts index 2debda81f..5d27b4c35 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-permissions-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-permissions-e2e.test.ts @@ -1,30 +1,31 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable prefer-const */ /* eslint-disable security/detect-object-injection */ + +import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; -import { TestUtils } from '../../utils/test.utils.js'; -import { MockFactory } from '../../mock.factory.js'; -import test from 'ava'; import { Test } from '@nestjs/testing'; +import test from 'ava'; +import { ValidationError } from 'class-validator'; +import cookieParser from 'cookie-parser'; +import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { AccessLevelEnum } from '../../../src/enums/index.js'; +import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; -import cookieParser from 'cookie-parser'; -import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { MockFactory } from '../../mock.factory.js'; +import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { getTestData } from '../../utils/get-test-data.js'; -import request from 'supertest'; -import { AccessLevelEnum } from '../../../src/enums/index.js'; -import { faker } from '@faker-js/faker'; -import { Messages } from '../../../src/exceptions/text/messages.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; let app: INestApplication; let _testUtils: TestUtils; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-postgres-with-binary-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-postgres-with-binary-e2e.test.ts index e3970e3c0..85d469908 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-postgres-with-binary-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-postgres-with-binary-e2e.test.ts @@ -5,26 +5,26 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { hexToBinary } from '../../../src/helpers/binary-to-hex.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; +import { getTestKnex } from '../../utils/get-test-knex.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; -import { getTestKnex } from '../../utils/get-test-knex.js'; -import { hexToBinary } from '../../../src/helpers/binary-to-hex.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-s3-widget-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-s3-widget-e2e.test.ts index 05f4b6581..211932928 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-s3-widget-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-s3-widget-e2e.test.ts @@ -19,8 +19,8 @@ import { getRandomTestTableName } from '../../utils/get-random-test-table-name.j import { getTestData } from '../../utils/get-test-data.js'; import { getTestKnex } from '../../utils/get-test-knex.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-secrets-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-secrets-e2e.test.ts index a5f5baadc..cf40fc062 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-secrets-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-secrets-e2e.test.ts @@ -2,23 +2,23 @@ import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-selfhosted-operations-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-selfhosted-operations-e2e.test.ts index 3fd49b75c..776bb3a97 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-selfhosted-operations-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-selfhosted-operations-e2e.test.ts @@ -1,24 +1,25 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ -import test from 'ava'; -import { Test } from '@nestjs/testing'; -import { ApplicationModule } from '../../../src/app.module.js'; -import { DatabaseModule } from '../../../src/shared/database/database.module.js'; -import { DatabaseService } from '../../../src/shared/database/database.service.js'; + +import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; -import request from 'supertest'; -import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; -import cookieParser from 'cookie-parser'; -import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Test } from '@nestjs/testing'; +import test from 'ava'; import { ValidationError } from 'class-validator'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; -import { Messages } from '../../../src/exceptions/text/messages.js'; -import { faker } from '@faker-js/faker'; +import cookieParser from 'cookie-parser'; +import request from 'supertest'; import { DataSource } from 'typeorm'; +import { ApplicationModule } from '../../../src/app.module.js'; import { BaseType } from '../../../src/common/data-injection.tokens.js'; -import { UserEntity } from '../../../src/entities/user/user.entity.js'; import { CompanyInfoEntity } from '../../../src/entities/company-info/company-info.entity.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { UserEntity } from '../../../src/entities/user/user.entity.js'; +import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; +import { DatabaseModule } from '../../../src/shared/database/database.module.js'; +import { DatabaseService } from '../../../src/shared/database/database.service.js'; +import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; let app: INestApplication; let currentTest: string; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-cassandra.e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-cassandra.e2e.test.ts index 5cb389437..abcd04052 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-cassandra.e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-cassandra.e2e.test.ts @@ -1,6 +1,8 @@ /* eslint-disable security/detect-non-literal-fs-filename */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable security/detect-object-injection */ + +import os from 'node:os'; import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; @@ -12,6 +14,7 @@ import path, { join } from 'path'; import request from 'supertest'; import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; @@ -24,13 +27,11 @@ import { MockFactory } from '../../mock.factory.js'; import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; -import os from 'node:os'; +import { TestUtils } from '../../utils/test.utils.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-ibmdb2-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-ibmdb2-e2e.test.ts index dcde0ab98..1472003cc 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-ibmdb2-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-ibmdb2-e2e.test.ts @@ -1,14 +1,22 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable security/detect-object-injection */ + +import os from 'node:os'; import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; +import fs from 'fs'; +import path, { join } from 'path'; import request from 'supertest'; +import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -18,19 +26,11 @@ import { MockFactory } from '../../mock.factory.js'; import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import fs from 'fs'; -import path from 'path'; -import { fileURLToPath } from 'url'; -import { join } from 'path'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; -import os from 'node:os'; +import { TestUtils } from '../../utils/test.utils.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-mongodb-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-mongodb-e2e.test.ts index 0c9063f12..a83a20231 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-mongodb-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-mongodb-e2e.test.ts @@ -1,15 +1,24 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable security/detect-object-injection */ + +import os from 'node:os'; import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; +import fs from 'fs'; +import path, { join } from 'path'; import request from 'supertest'; +import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; @@ -17,20 +26,11 @@ import { MockFactory } from '../../mock.factory.js'; import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import fs from 'fs'; -import path from 'path'; -import { fileURLToPath } from 'url'; -import { join } from 'path'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; -import os from 'node:os'; +import { TestUtils } from '../../utils/test.utils.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-mssql-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-mssql-e2e.test.ts index b612b6d8f..52ae68bc3 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-mssql-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-mssql-e2e.test.ts @@ -4,11 +4,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -19,14 +22,11 @@ import { createTestTable } from '../../utils/create-test-table.js'; import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-mssql-schema-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-mssql-schema-e2e.test.ts index a15c58c8c..ecce43a71 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-mssql-schema-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-mssql-schema-e2e.test.ts @@ -4,11 +4,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -19,14 +22,11 @@ import { createTestTableForMSSQLWithChema } from '../../utils/create-test-table. import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-mysql-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-mysql-e2e.test.ts index 289e4788c..3e4b3caba 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-mysql-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-mysql-e2e.test.ts @@ -4,11 +4,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -19,14 +22,11 @@ import { createTestTable } from '../../utils/create-test-table.js'; import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-oracledb-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-oracledb-e2e.test.ts index f3c410b5a..44f2450d2 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-oracledb-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-oracledb-e2e.test.ts @@ -4,11 +4,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -19,14 +22,11 @@ import { createTestOracleTable } from '../../utils/create-test-table.js'; import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-oracledb-schema-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-oracledb-schema-e2e.test.ts index d6aa611e3..cea0f432b 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-oracledb-schema-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-oracledb-schema-e2e.test.ts @@ -4,11 +4,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -19,14 +22,11 @@ import { createTestOracleTable } from '../../utils/create-test-table.js'; import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-postgres-encrypted-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-postgres-encrypted-e2e.test.ts index ec50afc40..2b8f489d0 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-postgres-encrypted-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-postgres-encrypted-e2e.test.ts @@ -4,11 +4,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -19,14 +22,11 @@ import { createTestTable } from '../../utils/create-test-table.js'; import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-postgres-schema-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-postgres-schema-e2e.test.ts index 01f8f7992..cc9f9ba02 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-postgres-schema-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-postgres-schema-e2e.test.ts @@ -22,8 +22,8 @@ import { createTestPostgresTableWithSchema } from '../../utils/create-test-table import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { TestUtils } from '../../utils/test.utils.js'; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-redis-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-redis-e2e.test.ts index 549fb0359..7b0cc8b17 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-redis-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-redis-e2e.test.ts @@ -1,5 +1,7 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable security/detect-object-injection */ + +import os from 'node:os'; import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; @@ -24,12 +26,11 @@ import { MockFactory } from '../../mock.factory.js'; import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import os from 'node:os'; +import { TestUtils } from '../../utils/test.utils.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-settings-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-settings-e2e.test.ts index 49750d2e7..29c669c97 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-settings-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-settings-e2e.test.ts @@ -3,11 +3,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; @@ -15,14 +18,11 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-table-widgets-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-table-widgets-e2e.test.ts index d958f3ed7..081a65c1c 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-table-widgets-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-table-widgets-e2e.test.ts @@ -18,8 +18,8 @@ import { MockFactory } from '../../mock.factory.js'; import { compareTableWidgetsArrays } from '../../utils/compare-table-widgets-arrays.js'; import { getTestData } from '../../utils/get-test-data.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { TestUtils } from '../../utils/test.utils.js'; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-user-admin-permissions-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-user-admin-permissions-e2e.test.ts index f070b3497..3e827482d 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-user-admin-permissions-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-user-admin-permissions-e2e.test.ts @@ -20,8 +20,8 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { compareTableWidgetsArrays } from '../../utils/compare-table-widgets-arrays.js'; import { - inviteUserInCompanyAndAcceptInvitation, createInitialTestUser, + inviteUserInCompanyAndAcceptInvitation, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { TestUtils } from '../../utils/test.utils.js'; @@ -3149,7 +3149,7 @@ test.serial(`${currentTest} should return table settings when it was created`, a .set('Accept', 'application/json'); const getTableSettingsRO = JSON.parse(getTableSettings.text); t.is(getTableSettings.status, 200); - t.is(getTableSettingsRO.hasOwnProperty('id'), true); + t.is(Object.hasOwn(getTableSettingsRO, 'id'), true); t.is(getTableSettingsRO.table_name, createTableSettingsDTO.table_name); t.is(getTableSettingsRO.display_name, createTableSettingsDTO.display_name); t.is(JSON.stringify(getTableSettingsRO.search_fields), JSON.stringify(createTableSettingsDTO.search_fields)); @@ -3271,7 +3271,7 @@ test.serial(`${currentTest} should return created table settings`, async (t) => t.is(createTableSettingsResponse.status, 201); const createTableSettingsRO = JSON.parse(createTableSettingsResponse.text); - t.is(createTableSettingsRO.hasOwnProperty('id'), true); + t.is(Object.hasOwn(createTableSettingsRO, 'id'), true); t.is(createTableSettingsRO.table_name, createTableSettingsDTO.table_name); t.is(createTableSettingsRO.display_name, createTableSettingsDTO.display_name); t.is(JSON.stringify(createTableSettingsRO.search_fields), JSON.stringify(createTableSettingsDTO.search_fields)); @@ -3405,7 +3405,7 @@ test.serial(`${currentTest} should return updated table settings`, async (t) => const updateTableSettingsRO = JSON.parse(updateTableSettingsResponse.text); t.is(updateTableSettingsResponse.status, 200); - t.is(updateTableSettingsRO.hasOwnProperty('id'), true); + t.is(Object.hasOwn(updateTableSettingsRO, 'id'), true); t.is(updateTableSettingsRO.table_name, updateTableSettingsDTO.table_name); t.is(updateTableSettingsRO.display_name, updateTableSettingsDTO.display_name); t.is(JSON.stringify(updateTableSettingsRO.search_fields), JSON.stringify(updateTableSettingsDTO.search_fields)); diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-user-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-user-e2e.test.ts index 9833cbdea..fc794ccb4 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-user-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-user-e2e.test.ts @@ -15,8 +15,8 @@ import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { TestUtils } from '../../utils/test.utils.js'; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-user-group-edit-permissions-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-user-group-edit-permissions-e2e.test.ts index 88188c67e..daa8c304b 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-user-group-edit-permissions-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-user-group-edit-permissions-e2e.test.ts @@ -20,8 +20,8 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { compareTableWidgetsArrays } from '../../utils/compare-table-widgets-arrays.js'; import { - inviteUserInCompanyAndAcceptInvitation, createInitialTestUser, + inviteUserInCompanyAndAcceptInvitation, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { TestUtils } from '../../utils/test.utils.js'; @@ -2366,7 +2366,7 @@ test.serial(`${currentTest} 'should return table settings when it was created`, .set('Accept', 'application/json'); const getTableSettingsRO = JSON.parse(getTableSettings.text); t.is(getTableSettings.status, 200); - t.is(getTableSettingsRO.hasOwnProperty('id'), true); + t.is(Object.hasOwn(getTableSettingsRO, 'id'), true); t.is(getTableSettingsRO.table_name, createTableSettingsDTO.table_name); t.is(getTableSettingsRO.display_name, createTableSettingsDTO.display_name); t.is(JSON.stringify(getTableSettingsRO.search_fields), JSON.stringify(createTableSettingsDTO.search_fields)); diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-user-sign-in-audit.e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-user-sign-in-audit.e2e.test.ts index c2e043773..7d3c27622 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-user-sign-in-audit.e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-user-sign-in-audit.e2e.test.ts @@ -7,22 +7,22 @@ import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { SignInMethodEnum } from '../../../src/entities/user-sign-in-audit/enums/sign-in-method.enum.js'; +import { SignInStatusEnum } from '../../../src/entities/user-sign-in-audit/enums/sign-in-status.enum.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; +import { MockFactory } from '../../mock.factory.js'; import { - registerUserAndReturnUserInfo, createInitialTestUser, + registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { MockFactory } from '../../mock.factory.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; -import { SignInStatusEnum } from '../../../src/entities/user-sign-in-audit/enums/sign-in-status.enum.js'; -import { SignInMethodEnum } from '../../../src/entities/user-sign-in-audit/enums/sign-in-method.enum.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; +import { TestUtils } from '../../utils/test.utils.js'; let app: INestApplication; let currentTest: string; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-user-table-different-group-connection-readonly-permissions-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-user-table-different-group-connection-readonly-permissions-e2e.test.ts index 7c44f40e0..d56592902 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-user-table-different-group-connection-readonly-permissions-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-user-table-different-group-connection-readonly-permissions-e2e.test.ts @@ -20,8 +20,8 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { compareTableWidgetsArrays } from '../../utils/compare-table-widgets-arrays.js'; import { - inviteUserInCompanyAndAcceptInvitation, createInitialTestUser, + inviteUserInCompanyAndAcceptInvitation, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { TestUtils } from '../../utils/test.utils.js'; diff --git a/backend/test/ava-tests/non-saas-tests/non-saas-user-with-table-only-permissions-e2e.test.ts b/backend/test/ava-tests/non-saas-tests/non-saas-user-with-table-only-permissions-e2e.test.ts index acab0363e..e3862b7ea 100644 --- a/backend/test/ava-tests/non-saas-tests/non-saas-user-with-table-only-permissions-e2e.test.ts +++ b/backend/test/ava-tests/non-saas-tests/non-saas-user-with-table-only-permissions-e2e.test.ts @@ -20,8 +20,8 @@ import { DatabaseService } from '../../../src/shared/database/database.service.j import { MockFactory } from '../../mock.factory.js'; import { compareTableWidgetsArrays } from '../../utils/compare-table-widgets-arrays.js'; import { - inviteUserInCompanyAndAcceptInvitation, createInitialTestUser, + inviteUserInCompanyAndAcceptInvitation, } from '../../utils/register-user-and-return-user-info.js'; import { setSaasEnvVariable } from '../../utils/set-saas-env-variable.js'; import { TestUtils } from '../../utils/test.utils.js'; diff --git a/backend/test/ava-tests/saas-tests/action-rules-e2e.test.ts b/backend/test/ava-tests/saas-tests/action-rules-e2e.test.ts index 4f7b7c612..f75dc3180 100644 --- a/backend/test/ava-tests/saas-tests/action-rules-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/action-rules-e2e.test.ts @@ -2,35 +2,35 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; +import { ConnectionTypesEnum } from '@rocketadmin/shared-code/dist/src/shared/enums/connection-types-enum.js'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import knex from 'knex'; +import nock from 'nock'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { CreateConnectionDto } from '../../../src/entities/connection/application/dto/create-connection.dto.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { ActivatedTableActionsDTO } from '../../../src/entities/table-actions/table-action-rules-module/application/dto/activated-table-actions.dto.js'; +import { CreateTableActionRuleBodyDTO } from '../../../src/entities/table-actions/table-action-rules-module/application/dto/create-action-rules-with-actions-and-events-body.dto.js'; +import { + FoundActionEventDTO, + FoundActionRulesWithActionsAndEventsDTO, +} from '../../../src/entities/table-actions/table-action-rules-module/application/dto/found-action-rules-with-actions-and-events.dto.js'; +import { FoundTableActionRulesRoDTO } from '../../../src/entities/table-actions/table-action-rules-module/application/dto/found-table-action-rules.ro.dto.js'; +import { UpdateTableActionRuleBodyDTO } from '../../../src/entities/table-actions/table-action-rules-module/application/dto/update-action-rule-with-actions-and-events.dto.js'; +import { TableActionEventEnum } from '../../../src/enums/table-action-event-enum.js'; +import { TableActionMethodEnum } from '../../../src/enums/table-action-method-enum.js'; +import { TableActionTypeEnum } from '../../../src/enums/table-action-type.enum.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { CreateTableActionRuleBodyDTO } from '../../../src/entities/table-actions/table-action-rules-module/application/dto/create-action-rules-with-actions-and-events-body.dto.js'; -import { TableActionEventEnum } from '../../../src/enums/table-action-event-enum.js'; -import { TableActionTypeEnum } from '../../../src/enums/table-action-type.enum.js'; -import { TableActionMethodEnum } from '../../../src/enums/table-action-method-enum.js'; -import { - FoundActionEventDTO, - FoundActionRulesWithActionsAndEventsDTO, -} from '../../../src/entities/table-actions/table-action-rules-module/application/dto/found-action-rules-with-actions-and-events.dto.js'; -import { UpdateTableActionRuleBodyDTO } from '../../../src/entities/table-actions/table-action-rules-module/application/dto/update-action-rule-with-actions-and-events.dto.js'; -import { ActivatedTableActionsDTO } from '../../../src/entities/table-actions/table-action-rules-module/application/dto/activated-table-actions.dto.js'; -import nock from 'nock'; -import { CreateConnectionDto } from '../../../src/entities/connection/application/dto/create-connection.dto.js'; -import { FoundTableActionRulesRoDTO } from '../../../src/entities/table-actions/table-action-rules-module/application/dto/found-table-action-rules.ro.dto.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; -import { ConnectionTypesEnum } from '@rocketadmin/shared-code/dist/src/shared/enums/connection-types-enum.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/ai-chat-e2e.test.ts b/backend/test/ava-tests/saas-tests/ai-chat-e2e.test.ts index b33a2e74e..5a3215c89 100644 --- a/backend/test/ava-tests/saas-tests/ai-chat-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/ai-chat-e2e.test.ts @@ -3,29 +3,29 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; +import { DataSource } from 'typeorm'; +import { AICoreService } from '../../../src/ai-core/index.js'; import { ApplicationModule } from '../../../src/app.module.js'; -import { Messages } from '../../../src/exceptions/text/messages.js'; +import { BaseType } from '../../../src/common/data-injection.tokens.js'; +import { AiChatMessageEntity } from '../../../src/entities/ai/ai-conversation-history/ai-chat-messages/ai-chat-message.entity.js'; +import { MessageRole } from '../../../src/entities/ai/ai-conversation-history/ai-chat-messages/message-role.enum.js'; +import { UserAiChatEntity } from '../../../src/entities/ai/ai-conversation-history/user-ai-chat/user-ai-chat.entity.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; -import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; -import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { getTestData } from '../../utils/get-test-data.js'; import { createTestPostgresTableWithSchema } from '../../utils/create-test-table.js'; import { dropTestTables } from '../../utils/drop-test-tables.js'; -import { AICoreService } from '../../../src/ai-core/index.js'; -import { DataSource } from 'typeorm'; -import { BaseType } from '../../../src/common/data-injection.tokens.js'; -import { UserAiChatEntity } from '../../../src/entities/ai/ai-conversation-history/user-ai-chat/user-ai-chat.entity.js'; -import { AiChatMessageEntity } from '../../../src/entities/ai/ai-conversation-history/ai-chat-messages/ai-chat-message.entity.js'; -import { MessageRole } from '../../../src/entities/ai/ai-conversation-history/ai-chat-messages/message-role.enum.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { getTestData } from '../../utils/get-test-data.js'; +import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/api-key-e2e.test.ts b/backend/test/ava-tests/saas-tests/api-key-e2e.test.ts index 242841552..e513cefe0 100644 --- a/backend/test/ava-tests/saas-tests/api-key-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/api-key-e2e.test.ts @@ -1,24 +1,25 @@ /* eslint-disable security/detect-object-injection */ -import test from 'ava'; -import { Test } from '@nestjs/testing'; -import request from 'supertest'; -import cookieParser from 'cookie-parser'; -import { DatabaseModule } from '../../../src/shared/database/database.module.js'; + +import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; +import { Test } from '@nestjs/testing'; +import test from 'ava'; import { ValidationError } from 'class-validator'; +import cookieParser from 'cookie-parser'; +import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { DatabaseService } from '../../../src/shared/database/database.service.js'; -import { TestUtils } from '../../utils/test.utils.js'; -import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; -import { faker } from '@faker-js/faker'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; +import { DatabaseModule } from '../../../src/shared/database/database.module.js'; +import { DatabaseService } from '../../../src/shared/database/database.service.js'; +import { MockFactory } from '../../mock.factory.js'; import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; -import { MockFactory } from '../../mock.factory.js'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; +import { TestUtils } from '../../utils/test.utils.js'; let app: INestApplication; let currentTest: string; diff --git a/backend/test/ava-tests/saas-tests/app-e2e.test.ts b/backend/test/ava-tests/saas-tests/app-e2e.test.ts index 03c5e8107..c54fdcdb3 100644 --- a/backend/test/ava-tests/saas-tests/app-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/app-e2e.test.ts @@ -1,12 +1,11 @@ -import test from 'ava'; -import { Test } from '@nestjs/testing'; - import { INestApplication } from '@nestjs/common'; +import { Test } from '@nestjs/testing'; +import test from 'ava'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; -import { DatabaseService } from '../../../src/shared/database/database.service.js'; -import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; +import { DatabaseModule } from '../../../src/shared/database/database.module.js'; +import { DatabaseService } from '../../../src/shared/database/database.service.js'; let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/connection-e2e.test.ts b/backend/test/ava-tests/saas-tests/connection-e2e.test.ts index 5d477d071..257975627 100644 --- a/backend/test/ava-tests/saas-tests/connection-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/connection-e2e.test.ts @@ -2,6 +2,7 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; +import { ConnectionTypesEnum } from '@rocketadmin/shared-code/dist/src/shared/enums/connection-types-enum.js'; import test from 'ava'; import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; @@ -20,7 +21,6 @@ import { registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ConnectionTypesEnum } from '@rocketadmin/shared-code/dist/src/shared/enums/connection-types-enum.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/connection-properties-e2e.test.ts b/backend/test/ava-tests/saas-tests/connection-properties-e2e.test.ts index 2c278e52a..cf6c3e788 100644 --- a/backend/test/ava-tests/saas-tests/connection-properties-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/connection-properties-e2e.test.ts @@ -3,19 +3,19 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { CreateTableCategoryDto } from '../../../src/entities/table-categories/dto/create-table-category.dto.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; import { getTestKnex } from '../../utils/get-test-knex.js'; -import { TestUtils } from '../../utils/test.utils.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { CreateTableCategoryDto } from '../../../src/entities/table-categories/dto/create-table-category.dto.js'; +import { TestUtils } from '../../utils/test.utils.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/custom-domains-e2e.test.ts b/backend/test/ava-tests/saas-tests/custom-domains-e2e.test.ts index 3e6e4186e..789985d1c 100644 --- a/backend/test/ava-tests/saas-tests/custom-domains-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/custom-domains-e2e.test.ts @@ -8,17 +8,17 @@ import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +// import nock from 'nock'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; import { sendRequestToSaasPart } from '../../utils/send-request-to-saas-part.util.js'; import { TestUtils } from '../../utils/test.utils.js'; import { createConnectionsAndInviteNewUserInNewGroupWithGroupPermissions } from '../../utils/user-with-different-permissions-utils.js'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -// import nock from 'nock'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const _mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/custom-field-e2e.test.ts b/backend/test/ava-tests/saas-tests/custom-field-e2e.test.ts index c192bee09..9c9d449d4 100644 --- a/backend/test/ava-tests/saas-tests/custom-field-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/custom-field-e2e.test.ts @@ -7,9 +7,11 @@ import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Encryptor } from '../../../src/helpers/encryption/encryptor.js'; import { replaceTextInCurlies } from '../../../src/helpers/index.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; @@ -18,8 +20,6 @@ import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; let app: INestApplication; let _testUtils: TestUtils; diff --git a/backend/test/ava-tests/saas-tests/dashboard-e2e.test.ts b/backend/test/ava-tests/saas-tests/dashboard-e2e.test.ts index 4b6b00e91..c7bda1f13 100644 --- a/backend/test/ava-tests/saas-tests/dashboard-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/dashboard-e2e.test.ts @@ -8,6 +8,7 @@ import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { DashboardWidgetTypeEnum } from '../../../src/enums/dashboard-widget-type.enum.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; @@ -17,7 +18,6 @@ import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { DashboardWidgetTypeEnum } from '../../../src/enums/dashboard-widget-type.enum.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/different-tables-structures-e2e-test.ts b/backend/test/ava-tests/saas-tests/different-tables-structures-e2e-test.ts index 63b5926c3..d0b113cac 100644 --- a/backend/test/ava-tests/saas-tests/different-tables-structures-e2e-test.ts +++ b/backend/test/ava-tests/saas-tests/different-tables-structures-e2e-test.ts @@ -5,24 +5,24 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; +import { Knex } from 'knex'; +import path from 'path'; import request from 'supertest'; +import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; +import { clearAllTestKnex, getTestKnex } from '../../utils/get-test-knex.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import path from 'path'; -import { fileURLToPath } from 'url'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { clearAllTestKnex, getTestKnex } from '../../utils/get-test-knex.js'; -import { Knex } from 'knex'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/group-e2e.test.ts b/backend/test/ava-tests/saas-tests/group-e2e.test.ts index b9ba1b8e7..1cb1524f0 100644 --- a/backend/test/ava-tests/saas-tests/group-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/group-e2e.test.ts @@ -1,27 +1,28 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ + +import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; -import { TestUtils } from '../../utils/test.utils.js'; -import { MockFactory } from '../../mock.factory.js'; -import test from 'ava'; import { Test } from '@nestjs/testing'; +import test from 'ava'; +import { ValidationError } from 'class-validator'; +import cookieParser from 'cookie-parser'; +import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { AccessLevelEnum } from '../../../src/enums/index.js'; +import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; -import cookieParser from 'cookie-parser'; -import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { MockFactory } from '../../mock.factory.js'; +import { getTestData } from '../../utils/get-test-data.js'; import { inviteUserInCompanyAndAcceptInvitation, registerUserAndReturnUserInfo, } from '../../utils/register-user-and-return-user-info.js'; -import { getTestData } from '../../utils/get-test-data.js'; -import request from 'supertest'; -import { AccessLevelEnum } from '../../../src/enums/index.js'; -import { faker } from '@faker-js/faker'; -import { Messages } from '../../../src/exceptions/text/messages.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { TestUtils } from '../../utils/test.utils.js'; let app: INestApplication; let _testUtils: TestUtils; diff --git a/backend/test/ava-tests/saas-tests/permissions-e2e.test.ts b/backend/test/ava-tests/saas-tests/permissions-e2e.test.ts index 907bfceb5..8a23fce4b 100644 --- a/backend/test/ava-tests/saas-tests/permissions-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/permissions-e2e.test.ts @@ -1,26 +1,27 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable prefer-const */ /* eslint-disable security/detect-object-injection */ + +import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; -import { TestUtils } from '../../utils/test.utils.js'; -import { MockFactory } from '../../mock.factory.js'; -import test from 'ava'; import { Test } from '@nestjs/testing'; -import { ApplicationModule } from '../../../src/app.module.js'; -import { DatabaseModule } from '../../../src/shared/database/database.module.js'; -import { DatabaseService } from '../../../src/shared/database/database.service.js'; +import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; -import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; -import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; -import { getTestData } from '../../utils/get-test-data.js'; import request from 'supertest'; +import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AccessLevelEnum } from '../../../src/enums/index.js'; -import { faker } from '@faker-js/faker'; -import { Messages } from '../../../src/exceptions/text/messages.js'; +import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; +import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { DatabaseModule } from '../../../src/shared/database/database.module.js'; +import { DatabaseService } from '../../../src/shared/database/database.service.js'; +import { MockFactory } from '../../mock.factory.js'; +import { getTestData } from '../../utils/get-test-data.js'; +import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; +import { TestUtils } from '../../utils/test.utils.js'; let app: INestApplication; let _testUtils: TestUtils; diff --git a/backend/test/ava-tests/saas-tests/postgres-with-binary-e2e.test.ts b/backend/test/ava-tests/saas-tests/postgres-with-binary-e2e.test.ts index 0d14edc74..3220a7416 100644 --- a/backend/test/ava-tests/saas-tests/postgres-with-binary-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/postgres-with-binary-e2e.test.ts @@ -5,22 +5,22 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { hexToBinary } from '../../../src/helpers/binary-to-hex.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; +import { getTestKnex } from '../../utils/get-test-knex.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { getTestKnex } from '../../utils/get-test-knex.js'; -import { hexToBinary } from '../../../src/helpers/binary-to-hex.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/saved-database-queries-e2e.test.ts b/backend/test/ava-tests/saas-tests/saved-database-queries-e2e.test.ts index 992df0496..c9f09cd26 100644 --- a/backend/test/ava-tests/saas-tests/saved-database-queries-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/saved-database-queries-e2e.test.ts @@ -3,29 +3,29 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { CreateSavedDbQueryDto } from '../../../src/entities/visualizations/saved-db-query/dto/create-saved-db-query.dto.js'; +import { ExecuteSavedDbQueryResultDto } from '../../../src/entities/visualizations/saved-db-query/dto/execute-saved-db-query-result.dto.js'; +import { FoundSavedDbQueryDto } from '../../../src/entities/visualizations/saved-db-query/dto/found-saved-db-query.dto.js'; +import { TestDbQueryDto } from '../../../src/entities/visualizations/saved-db-query/dto/test-db-query.dto.js'; +import { TestDbQueryResultDto } from '../../../src/entities/visualizations/saved-db-query/dto/test-db-query-result.dto.js'; +import { UpdateSavedDbQueryDto } from '../../../src/entities/visualizations/saved-db-query/dto/update-saved-db-query.dto.js'; +import { DashboardWidgetTypeEnum } from '../../../src/enums/dashboard-widget-type.enum.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; +import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; -import { createTestTable } from '../../utils/create-test-table.js'; -import { CreateSavedDbQueryDto } from '../../../src/entities/visualizations/saved-db-query/dto/create-saved-db-query.dto.js'; -import { FoundSavedDbQueryDto } from '../../../src/entities/visualizations/saved-db-query/dto/found-saved-db-query.dto.js'; -import { UpdateSavedDbQueryDto } from '../../../src/entities/visualizations/saved-db-query/dto/update-saved-db-query.dto.js'; -import { ExecuteSavedDbQueryResultDto } from '../../../src/entities/visualizations/saved-db-query/dto/execute-saved-db-query-result.dto.js'; -import { TestDbQueryDto } from '../../../src/entities/visualizations/saved-db-query/dto/test-db-query.dto.js'; -import { TestDbQueryResultDto } from '../../../src/entities/visualizations/saved-db-query/dto/test-db-query-result.dto.js'; -import { DashboardWidgetTypeEnum } from '../../../src/enums/dashboard-widget-type.enum.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/table-cassandra.e2e.test.ts b/backend/test/ava-tests/saas-tests/table-cassandra.e2e.test.ts index e1ae7a0c3..caf5af118 100644 --- a/backend/test/ava-tests/saas-tests/table-cassandra.e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-cassandra.e2e.test.ts @@ -13,6 +13,7 @@ import path, { join } from 'path'; import request from 'supertest'; import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; @@ -26,7 +27,6 @@ import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-categories-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-categories-e2e.test.ts index 2677655dd..b9eb6cd11 100644 --- a/backend/test/ava-tests/saas-tests/table-categories-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-categories-e2e.test.ts @@ -10,6 +10,8 @@ import path from 'path'; import request from 'supertest'; import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { CreateTableCategoryDto } from '../../../src/entities/table-categories/dto/create-table-category.dto.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; @@ -20,8 +22,6 @@ import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; -import { CreateTableCategoryDto } from '../../../src/entities/table-categories/dto/create-table-category.dto.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-dynamodb-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-dynamodb-e2e.test.ts index 7e6004e81..2cfaf1228 100644 --- a/backend/test/ava-tests/saas-tests/table-dynamodb-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-dynamodb-e2e.test.ts @@ -4,12 +4,20 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; +import fs from 'fs'; +import os from 'os'; +import path, { join } from 'path'; import request from 'supertest'; +import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; @@ -18,15 +26,6 @@ import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import fs from 'fs'; -import os from 'os'; -import path from 'path'; -import { fileURLToPath } from 'url'; -import { join } from 'path'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-elasticsearch-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-elasticsearch-e2e.test.ts index 82e721e21..5a594f3a2 100644 --- a/backend/test/ava-tests/saas-tests/table-elasticsearch-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-elasticsearch-e2e.test.ts @@ -4,12 +4,20 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; +import fs from 'fs'; +import os from 'os'; +import path, { join } from 'path'; import request from 'supertest'; +import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; @@ -18,15 +26,6 @@ import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import fs from 'fs'; -import os from 'os'; -import path from 'path'; -import { fileURLToPath } from 'url'; -import { join } from 'path'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-filters-e2e-test.ts b/backend/test/ava-tests/saas-tests/table-filters-e2e-test.ts index 72785e431..4141721fe 100644 --- a/backend/test/ava-tests/saas-tests/table-filters-e2e-test.ts +++ b/backend/test/ava-tests/saas-tests/table-filters-e2e-test.ts @@ -10,6 +10,7 @@ import path from 'path'; import request from 'supertest'; import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; @@ -21,7 +22,6 @@ import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-ibmdb2-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-ibmdb2-e2e.test.ts index 169ea3917..124e60553 100644 --- a/backend/test/ava-tests/saas-tests/table-ibmdb2-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-ibmdb2-e2e.test.ts @@ -4,11 +4,18 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; +import fs from 'fs'; +import os from 'os'; +import path, { join } from 'path'; import request from 'supertest'; +import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -19,14 +26,6 @@ import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import fs from 'fs'; -import os from 'os'; -import path from 'path'; -import { fileURLToPath } from 'url'; -import { join } from 'path'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-logs-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-logs-e2e.test.ts index f484d5dbd..56c97ad2a 100644 --- a/backend/test/ava-tests/saas-tests/table-logs-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-logs-e2e.test.ts @@ -2,24 +2,23 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; +import fs from 'fs'; +import os from 'os'; +import path, { join } from 'path'; import request from 'supertest'; +import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; import { TestUtils } from '../../utils/test.utils.js'; import { createConnectionsAndInviteNewUserInAdminGroupOfFirstConnection } from '../../utils/user-with-different-permissions-utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import fs from 'fs'; -import os from 'os'; -import path from 'path'; -import { fileURLToPath } from 'url'; -import { join } from 'path'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-mongodb-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-mongodb-e2e.test.ts index 0032ff081..64de095c5 100644 --- a/backend/test/ava-tests/saas-tests/table-mongodb-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-mongodb-e2e.test.ts @@ -4,12 +4,20 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; +import fs from 'fs'; +import os from 'os'; +import path, { join } from 'path'; import request from 'supertest'; +import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; @@ -18,15 +26,6 @@ import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import fs from 'fs'; -import os from 'os'; -import path from 'path'; -import { fileURLToPath } from 'url'; -import { join } from 'path'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-mssql-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-mssql-e2e.test.ts index ef1a85075..d88e1bd04 100644 --- a/backend/test/ava-tests/saas-tests/table-mssql-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-mssql-e2e.test.ts @@ -4,11 +4,18 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; +import fs from 'fs'; +import os from 'os'; +import path, { join } from 'path'; import request from 'supertest'; +import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -20,14 +27,6 @@ import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import fs from 'fs'; -import os from 'os'; -import path from 'path'; -import { fileURLToPath } from 'url'; -import { join } from 'path'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-mssql-schema-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-mssql-schema-e2e.test.ts index 858fa9d17..c6c44759a 100644 --- a/backend/test/ava-tests/saas-tests/table-mssql-schema-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-mssql-schema-e2e.test.ts @@ -4,11 +4,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -20,9 +23,6 @@ import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/table-mysql-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-mysql-e2e.test.ts index 1c52edc86..3342d6d99 100644 --- a/backend/test/ava-tests/saas-tests/table-mysql-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-mysql-e2e.test.ts @@ -4,11 +4,18 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; +import fs from 'fs'; +import os from 'os'; +import path, { join } from 'path'; import request from 'supertest'; +import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -20,14 +27,6 @@ import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import fs from 'fs'; -import os from 'os'; -import path from 'path'; -import { fileURLToPath } from 'url'; -import { join } from 'path'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-oracledb-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-oracledb-e2e.test.ts index a28c97452..bba32a320 100644 --- a/backend/test/ava-tests/saas-tests/table-oracledb-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-oracledb-e2e.test.ts @@ -12,6 +12,7 @@ import path, { join } from 'path'; import request from 'supertest'; import { fileURLToPath } from 'url'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; @@ -26,7 +27,6 @@ import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/backend/test/ava-tests/saas-tests/table-oracledb-schema-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-oracledb-schema-e2e.test.ts index 8511ca5e5..e7c09c687 100644 --- a/backend/test/ava-tests/saas-tests/table-oracledb-schema-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-oracledb-schema-e2e.test.ts @@ -4,11 +4,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -20,9 +23,6 @@ import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/table-postgres-encrypted-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-postgres-encrypted-e2e.test.ts index a227b25a9..80a435455 100644 --- a/backend/test/ava-tests/saas-tests/table-postgres-encrypted-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-postgres-encrypted-e2e.test.ts @@ -4,11 +4,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -20,9 +23,6 @@ import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/table-postgres-schema-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-postgres-schema-e2e.test.ts index be7d37d15..9fd76d321 100644 --- a/backend/test/ava-tests/saas-tests/table-postgres-schema-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-postgres-schema-e2e.test.ts @@ -4,11 +4,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { LogOperationTypeEnum, QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { Constants } from '../../../src/helpers/constants/constants.js'; @@ -20,9 +23,6 @@ import { dropTestTables } from '../../utils/drop-test-tables.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/table-settings-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-settings-e2e.test.ts index b4c749ecb..cb5d1da7e 100644 --- a/backend/test/ava-tests/saas-tests/table-settings-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-settings-e2e.test.ts @@ -3,11 +3,14 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; import { QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; @@ -16,9 +19,6 @@ import { MockFactory } from '../../mock.factory.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/table-settings-personal-e2e.test.ts b/backend/test/ava-tests/saas-tests/table-settings-personal-e2e.test.ts index 0dcdc1897..c3c911d0b 100644 --- a/backend/test/ava-tests/saas-tests/table-settings-personal-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/table-settings-personal-e2e.test.ts @@ -3,25 +3,25 @@ import { faker } from '@faker-js/faker'; import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import test from 'ava'; +import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { CreatePersonalTableSettingsDto } from '../../../src/entities/table-settings/personal-table-settings/dto/create-personal-table-settings.dto.js'; +import { FoundPersonalTableSettingsDto } from '../../../src/entities/table-settings/personal-table-settings/dto/found-personal-table-settings.dto.js'; import { QueryOrderingEnum } from '../../../src/enums/index.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; +import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; import { MockFactory } from '../../mock.factory.js'; +import { createTestTable } from '../../utils/create-test-table.js'; import { getTestData } from '../../utils/get-test-data.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; -import { ValidationError } from 'class-validator'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; -import { createTestTable } from '../../utils/create-test-table.js'; -import { CreatePersonalTableSettingsDto } from '../../../src/entities/table-settings/personal-table-settings/dto/create-personal-table-settings.dto.js'; -import { FoundPersonalTableSettingsDto } from '../../../src/entities/table-settings/personal-table-settings/dto/found-personal-table-settings.dto.js'; const mockFactory = new MockFactory(); let app: INestApplication; diff --git a/backend/test/ava-tests/saas-tests/user-admin-permissions-e2e.test.ts b/backend/test/ava-tests/saas-tests/user-admin-permissions-e2e.test.ts index bd4aac93f..4c88b529a 100644 --- a/backend/test/ava-tests/saas-tests/user-admin-permissions-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/user-admin-permissions-e2e.test.ts @@ -3124,7 +3124,7 @@ test.serial(`${currentTest} should return table settings when it was created`, a .set('Accept', 'application/json'); const getTableSettingsRO = JSON.parse(getTableSettings.text); t.is(getTableSettings.status, 200); - t.is(getTableSettingsRO.hasOwnProperty('id'), true); + t.is(Object.hasOwn(getTableSettingsRO, 'id'), true); t.is(getTableSettingsRO.table_name, createTableSettingsDTO.table_name); t.is(getTableSettingsRO.display_name, createTableSettingsDTO.display_name); t.is(JSON.stringify(getTableSettingsRO.search_fields), JSON.stringify(createTableSettingsDTO.search_fields)); @@ -3212,7 +3212,7 @@ test.serial(`${currentTest} should return created table settings`, async (t) => t.is(createTableSettingsResponse.status, 201); const createTableSettingsRO = JSON.parse(createTableSettingsResponse.text); - t.is(createTableSettingsRO.hasOwnProperty('id'), true); + t.is(Object.hasOwn(createTableSettingsRO, 'id'), true); t.is(createTableSettingsRO.table_name, createTableSettingsDTO.table_name); t.is(createTableSettingsRO.display_name, createTableSettingsDTO.display_name); t.is(JSON.stringify(createTableSettingsRO.search_fields), JSON.stringify(createTableSettingsDTO.search_fields)); @@ -3312,7 +3312,7 @@ test.serial(`${currentTest} should return updated table settings`, async (t) => const updateTableSettingsRO = JSON.parse(updateTableSettingsResponse.text); t.is(updateTableSettingsResponse.status, 200); - t.is(updateTableSettingsRO.hasOwnProperty('id'), true); + t.is(Object.hasOwn(updateTableSettingsRO, 'id'), true); t.is(updateTableSettingsRO.table_name, updateTableSettingsDTO.table_name); t.is(updateTableSettingsRO.display_name, updateTableSettingsDTO.display_name); t.is(JSON.stringify(updateTableSettingsRO.search_fields), JSON.stringify(updateTableSettingsDTO.search_fields)); diff --git a/backend/test/ava-tests/saas-tests/user-group-edit-permissions-e2e.test.ts b/backend/test/ava-tests/saas-tests/user-group-edit-permissions-e2e.test.ts index 0ab921abf..e781e08de 100644 --- a/backend/test/ava-tests/saas-tests/user-group-edit-permissions-e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/user-group-edit-permissions-e2e.test.ts @@ -2379,7 +2379,7 @@ test.serial(`${currentTest} 'should return table settings when it was created`, .set('Accept', 'application/json'); const getTableSettingsRO = JSON.parse(getTableSettings.text); t.is(getTableSettings.status, 200); - t.is(getTableSettingsRO.hasOwnProperty('id'), true); + t.is(Object.hasOwn(getTableSettingsRO, 'id'), true); t.is(getTableSettingsRO.table_name, createTableSettingsDTO.table_name); t.is(getTableSettingsRO.display_name, createTableSettingsDTO.display_name); t.is(JSON.stringify(getTableSettingsRO.search_fields), JSON.stringify(createTableSettingsDTO.search_fields)); diff --git a/backend/test/ava-tests/saas-tests/user-sign-in-audit.e2e.test.ts b/backend/test/ava-tests/saas-tests/user-sign-in-audit.e2e.test.ts index db54a0ac2..6f7c886c0 100644 --- a/backend/test/ava-tests/saas-tests/user-sign-in-audit.e2e.test.ts +++ b/backend/test/ava-tests/saas-tests/user-sign-in-audit.e2e.test.ts @@ -7,18 +7,18 @@ import { ValidationError } from 'class-validator'; import cookieParser from 'cookie-parser'; import request from 'supertest'; import { ApplicationModule } from '../../../src/app.module.js'; +import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; +import { SignInMethodEnum } from '../../../src/entities/user-sign-in-audit/enums/sign-in-method.enum.js'; +import { SignInStatusEnum } from '../../../src/entities/user-sign-in-audit/enums/sign-in-status.enum.js'; import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js'; import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js'; import { Messages } from '../../../src/exceptions/text/messages.js'; +import { Cacher } from '../../../src/helpers/cache/cacher.js'; import { DatabaseModule } from '../../../src/shared/database/database.module.js'; import { DatabaseService } from '../../../src/shared/database/database.service.js'; +import { MockFactory } from '../../mock.factory.js'; import { registerUserAndReturnUserInfo } from '../../utils/register-user-and-return-user-info.js'; import { TestUtils } from '../../utils/test.utils.js'; -import { Cacher } from '../../../src/helpers/cache/cacher.js'; -import { MockFactory } from '../../mock.factory.js'; -import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js'; -import { SignInStatusEnum } from '../../../src/entities/user-sign-in-audit/enums/sign-in-status.enum.js'; -import { SignInMethodEnum } from '../../../src/entities/user-sign-in-audit/enums/sign-in-method.enum.js'; let app: INestApplication; let currentTest: string; diff --git a/backend/test/mock.factory.ts b/backend/test/mock.factory.ts index e17b8b846..4906ae847 100644 --- a/backend/test/mock.factory.ts +++ b/backend/test/mock.factory.ts @@ -3,8 +3,8 @@ import { ConnectionTypesEnum } from '@rocketadmin/shared-code/dist/src/shared/en import json5 from 'json5'; import jwt from 'jsonwebtoken'; import { IRequestWithCognitoInfo } from '../src/authorization/index.js'; -import { CreateConnectionPropertiesDto } from '../src/entities/connection-properties/dto/index.js'; import { CreateConnectionDto } from '../src/entities/connection/application/dto/create-connection.dto.js'; +import { CreateConnectionPropertiesDto } from '../src/entities/connection-properties/dto/index.js'; import { CreateTableActionDTO } from '../src/entities/table-actions/table-actions-module/dto/create-table-action.dto.js'; import { TableActionEntity } from '../src/entities/table-actions/table-actions-module/table-action.entity.js'; import { CreateTableWidgetDto } from '../src/entities/widget/dto/index.js'; @@ -17,6 +17,7 @@ class CreateGroupDto { isMain?: boolean; users?: Array; } + import { CreatePersonalTableSettingsDto } from '../src/entities/table-settings/personal-table-settings/dto/create-personal-table-settings.dto.js'; export class MockFactory { generateCognitoUserName() { diff --git a/backend/test/utils/create-test-table.ts b/backend/test/utils/create-test-table.ts index 347827f95..8c4f3126a 100644 --- a/backend/test/utils/create-test-table.ts +++ b/backend/test/utils/create-test-table.ts @@ -1,17 +1,18 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ -import { faker } from '@faker-js/faker'; -import { getRandomConstraintName, getRandomTestTableName } from './get-random-test-table-name.js'; -import { getTestKnex } from './get-test-knex.js'; -import ibmdb from 'ibm_db'; -import { MongoClient } from 'mongodb'; + import { DynamoDB, PutItemCommand, PutItemCommandInput } from '@aws-sdk/client-dynamodb'; import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb'; +import { createClient as createClickHouseClient } from '@clickhouse/client'; import { Client } from '@elastic/elasticsearch'; +import { faker } from '@faker-js/faker'; +import { ConnectionTypesEnum } from '@rocketadmin/shared-code/dist/src/shared/enums/connection-types-enum.js'; import * as cassandra from 'cassandra-driver'; -import { v4 as uuidv4 } from 'uuid'; +import ibmdb from 'ibm_db'; +import { MongoClient } from 'mongodb'; import { createClient } from 'redis'; -import { createClient as createClickHouseClient } from '@clickhouse/client'; -import { ConnectionTypesEnum } from '@rocketadmin/shared-code/dist/src/shared/enums/connection-types-enum.js'; +import { v4 as uuidv4 } from 'uuid'; +import { getRandomConstraintName, getRandomTestTableName } from './get-random-test-table-name.js'; +import { getTestKnex } from './get-test-knex.js'; export async function createTestTable( connectionParams: any, diff --git a/backend/test/utils/get-test-knex.ts b/backend/test/utils/get-test-knex.ts index ce86cdf7d..cb6c6ed19 100644 --- a/backend/test/utils/get-test-knex.ts +++ b/backend/test/utils/get-test-knex.ts @@ -1,8 +1,7 @@ -import knex from 'knex'; -import { Knex } from 'knex'; +import { ConnectionTypesEnum } from '@rocketadmin/shared-code/dist/src/shared/enums/connection-types-enum.js'; +import knex, { Knex } from 'knex'; import { LRUCache } from 'lru-cache'; import { Constants } from '../../src/helpers/constants/constants.js'; -import { ConnectionTypesEnum } from '@rocketadmin/shared-code/dist/src/shared/enums/connection-types-enum.js'; const knexCache = new LRUCache(Constants.DEFAULT_CONNECTION_CACHE_OPTIONS); diff --git a/backend/test/utils/register-user-and-return-user-info.ts b/backend/test/utils/register-user-and-return-user-info.ts index d433755a5..30fca28b6 100644 --- a/backend/test/utils/register-user-and-return-user-info.ts +++ b/backend/test/utils/register-user-and-return-user-info.ts @@ -3,17 +3,17 @@ import { faker } from '@faker-js/faker'; import { INestApplication } from '@nestjs/common'; import request from 'supertest'; import { DataSource } from 'typeorm'; -import { Constants } from '../../src/helpers/constants/constants.js'; -import { TestUtils } from './test.utils.js'; -import { isSaaS } from '../../src/helpers/app/is-saas.js'; -import { InvitedUserInCompanyAndConnectionGroupDs } from '../../src/entities/company-info/application/data-structures/invited-user-in-company-and-connection-group.ds.js'; import { BaseType } from '../../src/common/data-injection.tokens.js'; -import { UserEntity } from '../../src/entities/user/user.entity.js'; +import { InvitedUserInCompanyAndConnectionGroupDs } from '../../src/entities/company-info/application/data-structures/invited-user-in-company-and-connection-group.ds.js'; import { CompanyInfoEntity } from '../../src/entities/company-info/company-info.entity.js'; -import { generateGwtToken } from '../../src/entities/user/utils/generate-gwt-token.js'; +import { RegisterUserDs } from '../../src/entities/user/application/data-structures/register-user-ds.js'; import { UserRoleEnum } from '../../src/entities/user/enums/user-role.enum.js'; +import { UserEntity } from '../../src/entities/user/user.entity.js'; import { buildRegisteringUser } from '../../src/entities/user/utils/build-registering-user.util.js'; -import { RegisterUserDs } from '../../src/entities/user/application/data-structures/register-user-ds.js'; +import { generateGwtToken } from '../../src/entities/user/utils/generate-gwt-token.js'; +import { isSaaS } from '../../src/helpers/app/is-saas.js'; +import { Constants } from '../../src/helpers/constants/constants.js'; +import { TestUtils } from './test.utils.js'; export async function createInitialTestUser( app: INestApplication, diff --git a/backend/test/utils/test-utilities/create-test-mysql-tables.ts b/backend/test/utils/test-utilities/create-test-mysql-tables.ts index d8da54072..7c3933f13 100644 --- a/backend/test/utils/test-utilities/create-test-mysql-tables.ts +++ b/backend/test/utils/test-utilities/create-test-mysql-tables.ts @@ -1,5 +1,5 @@ -import { getTestKnex } from '../get-test-knex.js'; import { faker } from '@faker-js/faker'; +import { getTestKnex } from '../get-test-knex.js'; export const createTestMySQLTablesWithComplexPFKeys = async (connectionParams: any) => { const connectionParamsCopy = { diff --git a/backend/test/utils/test-utilities/create-test-postgres-tables.ts b/backend/test/utils/test-utilities/create-test-postgres-tables.ts index 16dd8c3fd..fafa94a2f 100644 --- a/backend/test/utils/test-utilities/create-test-postgres-tables.ts +++ b/backend/test/utils/test-utilities/create-test-postgres-tables.ts @@ -1,5 +1,5 @@ -import { getTestKnex } from '../get-test-knex.js'; import { faker } from '@faker-js/faker'; +import { getTestKnex } from '../get-test-knex.js'; export const createTestTablesWithComplexPFKeys = async (connectionParams: any) => { const connectionParamsCopy = { diff --git a/backend/test/utils/test.utils.ts b/backend/test/utils/test.utils.ts index 14067efae..9c8278c51 100644 --- a/backend/test/utils/test.utils.ts +++ b/backend/test/utils/test.utils.ts @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ import { Injectable } from '@nestjs/common'; -import { DatabaseService } from '../../src/shared/database/database.service.js'; -import jwt from 'jsonwebtoken'; import { SchedulerRegistry } from '@nestjs/schedule'; +import jwt from 'jsonwebtoken'; +import { DatabaseService } from '../../src/shared/database/database.service.js'; @Injectable() export class TestUtils { diff --git a/biome.json b/biome.json index dd192f297..d1cdb69d3 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.3.8/schema.json", + "$schema": "https://biomejs.dev/schemas/2.4.0/schema.json", "vcs": { "enabled": true, "clientKind": "git", diff --git a/package.json b/package.json index 4ac591705..3d816e27e 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "prepare": "husky" }, "devDependencies": { - "@biomejs/biome": "2.3.8", + "@biomejs/biome": "2.4.0", "husky": "^9.1.7", "lint-staged": "^16.2.7" }, diff --git a/yarn.lock b/yarn.lock index 95498f2e7..9843578ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -285,7 +285,7 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/client-bedrock-runtime@npm:^3.966.0, @aws-sdk/client-bedrock-runtime@npm:^3.987.0": +"@aws-sdk/client-bedrock-runtime@npm:^3.966.0": version: 3.987.0 resolution: "@aws-sdk/client-bedrock-runtime@npm:3.987.0" dependencies: @@ -340,6 +340,61 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/client-bedrock-runtime@npm:^3.990.0": + version: 3.990.0 + resolution: "@aws-sdk/client-bedrock-runtime@npm:3.990.0" + dependencies: + "@aws-crypto/sha256-browser": 5.2.0 + "@aws-crypto/sha256-js": 5.2.0 + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/credential-provider-node": ^3.972.9 + "@aws-sdk/eventstream-handler-node": ^3.972.5 + "@aws-sdk/middleware-eventstream": ^3.972.3 + "@aws-sdk/middleware-host-header": ^3.972.3 + "@aws-sdk/middleware-logger": ^3.972.3 + "@aws-sdk/middleware-recursion-detection": ^3.972.3 + "@aws-sdk/middleware-user-agent": ^3.972.10 + "@aws-sdk/middleware-websocket": ^3.972.6 + "@aws-sdk/region-config-resolver": ^3.972.3 + "@aws-sdk/token-providers": 3.990.0 + "@aws-sdk/types": ^3.973.1 + "@aws-sdk/util-endpoints": 3.990.0 + "@aws-sdk/util-user-agent-browser": ^3.972.3 + "@aws-sdk/util-user-agent-node": ^3.972.8 + "@smithy/config-resolver": ^4.4.6 + "@smithy/core": ^3.23.0 + "@smithy/eventstream-serde-browser": ^4.2.8 + "@smithy/eventstream-serde-config-resolver": ^4.3.8 + "@smithy/eventstream-serde-node": ^4.2.8 + "@smithy/fetch-http-handler": ^5.3.9 + "@smithy/hash-node": ^4.2.8 + "@smithy/invalid-dependency": ^4.2.8 + "@smithy/middleware-content-length": ^4.2.8 + "@smithy/middleware-endpoint": ^4.4.14 + "@smithy/middleware-retry": ^4.4.31 + "@smithy/middleware-serde": ^4.2.9 + "@smithy/middleware-stack": ^4.2.8 + "@smithy/node-config-provider": ^4.3.8 + "@smithy/node-http-handler": ^4.4.10 + "@smithy/protocol-http": ^5.3.8 + "@smithy/smithy-client": ^4.11.3 + "@smithy/types": ^4.12.0 + "@smithy/url-parser": ^4.2.8 + "@smithy/util-base64": ^4.3.0 + "@smithy/util-body-length-browser": ^4.2.0 + "@smithy/util-body-length-node": ^4.2.1 + "@smithy/util-defaults-mode-browser": ^4.3.30 + "@smithy/util-defaults-mode-node": ^4.2.33 + "@smithy/util-endpoints": ^3.2.8 + "@smithy/util-middleware": ^4.2.8 + "@smithy/util-retry": ^4.2.8 + "@smithy/util-stream": ^4.5.12 + "@smithy/util-utf8": ^4.2.0 + tslib: ^2.6.2 + checksum: bbf6f1415d92c61588d7f49cb22b62254f0fc48816745cdd5a71f32e11502e19c7602fcaa6a3a8c32cda41a3a04d4da209401ccb33c84ef08341e7f2e6d306aa + languageName: node + linkType: hard + "@aws-sdk/client-dynamodb@npm:^3.987.0": version: 3.987.0 resolution: "@aws-sdk/client-dynamodb@npm:3.987.0" @@ -437,33 +492,33 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/client-s3@npm:^3.987.0": - version: 3.987.0 - resolution: "@aws-sdk/client-s3@npm:3.987.0" +"@aws-sdk/client-s3@npm:^3.990.0": + version: 3.990.0 + resolution: "@aws-sdk/client-s3@npm:3.990.0" dependencies: "@aws-crypto/sha1-browser": 5.2.0 "@aws-crypto/sha256-browser": 5.2.0 "@aws-crypto/sha256-js": 5.2.0 - "@aws-sdk/core": ^3.973.7 - "@aws-sdk/credential-provider-node": ^3.972.6 + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/credential-provider-node": ^3.972.9 "@aws-sdk/middleware-bucket-endpoint": ^3.972.3 "@aws-sdk/middleware-expect-continue": ^3.972.3 - "@aws-sdk/middleware-flexible-checksums": ^3.972.5 + "@aws-sdk/middleware-flexible-checksums": ^3.972.8 "@aws-sdk/middleware-host-header": ^3.972.3 "@aws-sdk/middleware-location-constraint": ^3.972.3 "@aws-sdk/middleware-logger": ^3.972.3 "@aws-sdk/middleware-recursion-detection": ^3.972.3 - "@aws-sdk/middleware-sdk-s3": ^3.972.7 + "@aws-sdk/middleware-sdk-s3": ^3.972.10 "@aws-sdk/middleware-ssec": ^3.972.3 - "@aws-sdk/middleware-user-agent": ^3.972.7 + "@aws-sdk/middleware-user-agent": ^3.972.10 "@aws-sdk/region-config-resolver": ^3.972.3 - "@aws-sdk/signature-v4-multi-region": 3.987.0 + "@aws-sdk/signature-v4-multi-region": 3.990.0 "@aws-sdk/types": ^3.973.1 - "@aws-sdk/util-endpoints": 3.987.0 + "@aws-sdk/util-endpoints": 3.990.0 "@aws-sdk/util-user-agent-browser": ^3.972.3 - "@aws-sdk/util-user-agent-node": ^3.972.5 + "@aws-sdk/util-user-agent-node": ^3.972.8 "@smithy/config-resolver": ^4.4.6 - "@smithy/core": ^3.22.1 + "@smithy/core": ^3.23.0 "@smithy/eventstream-serde-browser": ^4.2.8 "@smithy/eventstream-serde-config-resolver": ^4.3.8 "@smithy/eventstream-serde-node": ^4.2.8 @@ -474,29 +529,29 @@ __metadata: "@smithy/invalid-dependency": ^4.2.8 "@smithy/md5-js": ^4.2.8 "@smithy/middleware-content-length": ^4.2.8 - "@smithy/middleware-endpoint": ^4.4.13 - "@smithy/middleware-retry": ^4.4.30 + "@smithy/middleware-endpoint": ^4.4.14 + "@smithy/middleware-retry": ^4.4.31 "@smithy/middleware-serde": ^4.2.9 "@smithy/middleware-stack": ^4.2.8 "@smithy/node-config-provider": ^4.3.8 - "@smithy/node-http-handler": ^4.4.9 + "@smithy/node-http-handler": ^4.4.10 "@smithy/protocol-http": ^5.3.8 - "@smithy/smithy-client": ^4.11.2 + "@smithy/smithy-client": ^4.11.3 "@smithy/types": ^4.12.0 "@smithy/url-parser": ^4.2.8 "@smithy/util-base64": ^4.3.0 "@smithy/util-body-length-browser": ^4.2.0 "@smithy/util-body-length-node": ^4.2.1 - "@smithy/util-defaults-mode-browser": ^4.3.29 - "@smithy/util-defaults-mode-node": ^4.2.32 + "@smithy/util-defaults-mode-browser": ^4.3.30 + "@smithy/util-defaults-mode-node": ^4.2.33 "@smithy/util-endpoints": ^3.2.8 "@smithy/util-middleware": ^4.2.8 "@smithy/util-retry": ^4.2.8 - "@smithy/util-stream": ^4.5.11 + "@smithy/util-stream": ^4.5.12 "@smithy/util-utf8": ^4.2.0 "@smithy/util-waiter": ^4.2.8 tslib: ^2.6.2 - checksum: 55ff2ea771b96bc395d4c31d69dee3e2b4af626ffc19b173c26369233f194f5e267ac12b22f5da81d1ab2f976944cadd284954a9bde1d254ce54c69685f1adeb + checksum: e4b3ae3e61cc8c405329d07aeff2ac0a714171a2438b4a9dddda10d5c97985e403dfb120e1bd47fd389f69aa4a58f42198f5027cb5872354fa869f021f0990da languageName: node linkType: hard @@ -592,6 +647,52 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/client-sso@npm:3.990.0": + version: 3.990.0 + resolution: "@aws-sdk/client-sso@npm:3.990.0" + dependencies: + "@aws-crypto/sha256-browser": 5.2.0 + "@aws-crypto/sha256-js": 5.2.0 + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/middleware-host-header": ^3.972.3 + "@aws-sdk/middleware-logger": ^3.972.3 + "@aws-sdk/middleware-recursion-detection": ^3.972.3 + "@aws-sdk/middleware-user-agent": ^3.972.10 + "@aws-sdk/region-config-resolver": ^3.972.3 + "@aws-sdk/types": ^3.973.1 + "@aws-sdk/util-endpoints": 3.990.0 + "@aws-sdk/util-user-agent-browser": ^3.972.3 + "@aws-sdk/util-user-agent-node": ^3.972.8 + "@smithy/config-resolver": ^4.4.6 + "@smithy/core": ^3.23.0 + "@smithy/fetch-http-handler": ^5.3.9 + "@smithy/hash-node": ^4.2.8 + "@smithy/invalid-dependency": ^4.2.8 + "@smithy/middleware-content-length": ^4.2.8 + "@smithy/middleware-endpoint": ^4.4.14 + "@smithy/middleware-retry": ^4.4.31 + "@smithy/middleware-serde": ^4.2.9 + "@smithy/middleware-stack": ^4.2.8 + "@smithy/node-config-provider": ^4.3.8 + "@smithy/node-http-handler": ^4.4.10 + "@smithy/protocol-http": ^5.3.8 + "@smithy/smithy-client": ^4.11.3 + "@smithy/types": ^4.12.0 + "@smithy/url-parser": ^4.2.8 + "@smithy/util-base64": ^4.3.0 + "@smithy/util-body-length-browser": ^4.2.0 + "@smithy/util-body-length-node": ^4.2.1 + "@smithy/util-defaults-mode-browser": ^4.3.30 + "@smithy/util-defaults-mode-node": ^4.2.33 + "@smithy/util-endpoints": ^3.2.8 + "@smithy/util-middleware": ^4.2.8 + "@smithy/util-retry": ^4.2.8 + "@smithy/util-utf8": ^4.2.0 + tslib: ^2.6.2 + checksum: e0c6fde7665271ef2c8a47eda9433a7eef93911ab6d6a299703b516150753a543d80034cfba7f557bf532beea544d2ad27ccec65a24b22ff545dcdf2c5f8cafd + languageName: node + linkType: hard + "@aws-sdk/core@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/core@npm:3.969.0" @@ -613,6 +714,27 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/core@npm:^3.973.10": + version: 3.973.10 + resolution: "@aws-sdk/core@npm:3.973.10" + dependencies: + "@aws-sdk/types": ^3.973.1 + "@aws-sdk/xml-builder": ^3.972.4 + "@smithy/core": ^3.23.0 + "@smithy/node-config-provider": ^4.3.8 + "@smithy/property-provider": ^4.2.8 + "@smithy/protocol-http": ^5.3.8 + "@smithy/signature-v4": ^5.3.8 + "@smithy/smithy-client": ^4.11.3 + "@smithy/types": ^4.12.0 + "@smithy/util-base64": ^4.3.0 + "@smithy/util-middleware": ^4.2.8 + "@smithy/util-utf8": ^4.2.0 + tslib: ^2.6.2 + checksum: 5b12d2ca58c88a3e3eacf968808b0bbd86e0630990f62b401b290be6b452718d32eeaa1118d7c86833b0708527599edd755f52f96275761b8a0a49790027bdcc + languageName: node + linkType: hard + "@aws-sdk/core@npm:^3.973.7": version: 3.973.7 resolution: "@aws-sdk/core@npm:3.973.7" @@ -670,6 +792,19 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-env@npm:^3.972.8": + version: 3.972.8 + resolution: "@aws-sdk/credential-provider-env@npm:3.972.8" + dependencies: + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/types": ^3.973.1 + "@smithy/property-provider": ^4.2.8 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + checksum: 49615993c51e8e80f808dc788d6f909f61ce1203fa2e50d9635beab967ba61ea5d6f7ca51aa5eef4f425d7b74bfd42c8bcb335d1903a255ce9987dc993caee5e + languageName: node + linkType: hard + "@aws-sdk/credential-provider-http@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/credential-provider-http@npm:3.969.0" @@ -688,6 +823,24 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-http@npm:^3.972.10": + version: 3.972.10 + resolution: "@aws-sdk/credential-provider-http@npm:3.972.10" + dependencies: + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/types": ^3.973.1 + "@smithy/fetch-http-handler": ^5.3.9 + "@smithy/node-http-handler": ^4.4.10 + "@smithy/property-provider": ^4.2.8 + "@smithy/protocol-http": ^5.3.8 + "@smithy/smithy-client": ^4.11.3 + "@smithy/types": ^4.12.0 + "@smithy/util-stream": ^4.5.12 + tslib: ^2.6.2 + checksum: ef3e281a8d62c919e5ac283e1fd6c5aff80d520d113ed7b4ea616d52f483c70d20d81aba567cd1890f64cea1466b9e3551e085b589917d959bfe5b7ac378557f + languageName: node + linkType: hard + "@aws-sdk/credential-provider-http@npm:^3.972.7": version: 3.972.7 resolution: "@aws-sdk/credential-provider-http@npm:3.972.7" @@ -750,6 +903,28 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-ini@npm:^3.972.8": + version: 3.972.8 + resolution: "@aws-sdk/credential-provider-ini@npm:3.972.8" + dependencies: + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/credential-provider-env": ^3.972.8 + "@aws-sdk/credential-provider-http": ^3.972.10 + "@aws-sdk/credential-provider-login": ^3.972.8 + "@aws-sdk/credential-provider-process": ^3.972.8 + "@aws-sdk/credential-provider-sso": ^3.972.8 + "@aws-sdk/credential-provider-web-identity": ^3.972.8 + "@aws-sdk/nested-clients": 3.990.0 + "@aws-sdk/types": ^3.973.1 + "@smithy/credential-provider-imds": ^4.2.8 + "@smithy/property-provider": ^4.2.8 + "@smithy/shared-ini-file-loader": ^4.4.3 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + checksum: b667e2bfb73fafa3464dd85618d44e9f31dbd6085c5dd313c837261f9e6b9249b742b5a69065f9590ad5812f1bcc7f156388c743a36fe980ae076554defed302 + languageName: node + linkType: hard + "@aws-sdk/credential-provider-login@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/credential-provider-login@npm:3.969.0" @@ -782,6 +957,22 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-login@npm:^3.972.8": + version: 3.972.8 + resolution: "@aws-sdk/credential-provider-login@npm:3.972.8" + dependencies: + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/nested-clients": 3.990.0 + "@aws-sdk/types": ^3.973.1 + "@smithy/property-provider": ^4.2.8 + "@smithy/protocol-http": ^5.3.8 + "@smithy/shared-ini-file-loader": ^4.4.3 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + checksum: 8498f0a6017e593a163f216a49f78cb1c5cf5264b7f0b738f4caaefafe01a074b500683e23e4e2b27f44ec2d3946512631c48c7d3d9e5d5b460b033637745124 + languageName: node + linkType: hard + "@aws-sdk/credential-provider-node@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/credential-provider-node@npm:3.969.0" @@ -822,6 +1013,26 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-node@npm:^3.972.9": + version: 3.972.9 + resolution: "@aws-sdk/credential-provider-node@npm:3.972.9" + dependencies: + "@aws-sdk/credential-provider-env": ^3.972.8 + "@aws-sdk/credential-provider-http": ^3.972.10 + "@aws-sdk/credential-provider-ini": ^3.972.8 + "@aws-sdk/credential-provider-process": ^3.972.8 + "@aws-sdk/credential-provider-sso": ^3.972.8 + "@aws-sdk/credential-provider-web-identity": ^3.972.8 + "@aws-sdk/types": ^3.973.1 + "@smithy/credential-provider-imds": ^4.2.8 + "@smithy/property-provider": ^4.2.8 + "@smithy/shared-ini-file-loader": ^4.4.3 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + checksum: 846af7972608dd16981a8bdd4112d73dfa2499116a6dae1524627bec89e9858e774b055412417a7092c041eba9c9f61b41b51a1264151bcb24cff0d39709c436 + languageName: node + linkType: hard + "@aws-sdk/credential-provider-process@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/credential-provider-process@npm:3.969.0" @@ -850,6 +1061,20 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-process@npm:^3.972.8": + version: 3.972.8 + resolution: "@aws-sdk/credential-provider-process@npm:3.972.8" + dependencies: + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/types": ^3.973.1 + "@smithy/property-provider": ^4.2.8 + "@smithy/shared-ini-file-loader": ^4.4.3 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + checksum: ffbbcf196c6713c42b44cf567b7255243017b6756f9327b778e903fd9587dfe57456d6f86063a4b0e524f987b7129abe4e665176224681867d30c7cceaaad234 + languageName: node + linkType: hard + "@aws-sdk/credential-provider-sso@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/credential-provider-sso@npm:3.969.0" @@ -882,6 +1107,22 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-sso@npm:^3.972.8": + version: 3.972.8 + resolution: "@aws-sdk/credential-provider-sso@npm:3.972.8" + dependencies: + "@aws-sdk/client-sso": 3.990.0 + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/token-providers": 3.990.0 + "@aws-sdk/types": ^3.973.1 + "@smithy/property-provider": ^4.2.8 + "@smithy/shared-ini-file-loader": ^4.4.3 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + checksum: ea73f09b30efb3eaf12d822f6177edeb69f4bf64c5ceeb4391504318dcb25797cfc5009076d06fcc0e2348d76602bbe52d71fd9ed55025b28929ece4128fc772 + languageName: node + linkType: hard + "@aws-sdk/credential-provider-web-identity@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/credential-provider-web-identity@npm:3.969.0" @@ -912,6 +1153,21 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-web-identity@npm:^3.972.8": + version: 3.972.8 + resolution: "@aws-sdk/credential-provider-web-identity@npm:3.972.8" + dependencies: + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/nested-clients": 3.990.0 + "@aws-sdk/types": ^3.973.1 + "@smithy/property-provider": ^4.2.8 + "@smithy/shared-ini-file-loader": ^4.4.3 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + checksum: b8ff240916bbe64473ba0af4f1cd4219659763023e676121037d272a87d414cb050b6b58ba05e29d72ee1f4dff9f0ae779b82be2289e0b8c4111f9041d82bc06 + languageName: node + linkType: hard + "@aws-sdk/dynamodb-codec@npm:^3.972.8": version: 3.972.8 resolution: "@aws-sdk/dynamodb-codec@npm:3.972.8" @@ -964,6 +1220,22 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/lib-dynamodb@npm:^3.990.0": + version: 3.990.0 + resolution: "@aws-sdk/lib-dynamodb@npm:3.990.0" + dependencies: + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/util-dynamodb": 3.990.0 + "@smithy/core": ^3.23.0 + "@smithy/smithy-client": ^4.11.3 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + peerDependencies: + "@aws-sdk/client-dynamodb": ^3.990.0 + checksum: 533672aab9a1b7637e8db4692036a0bca46ee999067b53291dd4892a16abfa22eef6cae3b07998705587623854f251356a2c9f740be9c619cda93071de3d86f5 + languageName: node + linkType: hard + "@aws-sdk/middleware-bucket-endpoint@npm:^3.972.3": version: 3.972.3 resolution: "@aws-sdk/middleware-bucket-endpoint@npm:3.972.3" @@ -1017,14 +1289,14 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/middleware-flexible-checksums@npm:^3.972.5": - version: 3.972.5 - resolution: "@aws-sdk/middleware-flexible-checksums@npm:3.972.5" +"@aws-sdk/middleware-flexible-checksums@npm:^3.972.8": + version: 3.972.8 + resolution: "@aws-sdk/middleware-flexible-checksums@npm:3.972.8" dependencies: "@aws-crypto/crc32": 5.2.0 "@aws-crypto/crc32c": 5.2.0 "@aws-crypto/util": 5.2.0 - "@aws-sdk/core": ^3.973.7 + "@aws-sdk/core": ^3.973.10 "@aws-sdk/crc64-nvme": 3.972.0 "@aws-sdk/types": ^3.973.1 "@smithy/is-array-buffer": ^4.2.0 @@ -1032,10 +1304,10 @@ __metadata: "@smithy/protocol-http": ^5.3.8 "@smithy/types": ^4.12.0 "@smithy/util-middleware": ^4.2.8 - "@smithy/util-stream": ^4.5.11 + "@smithy/util-stream": ^4.5.12 "@smithy/util-utf8": ^4.2.0 tslib: ^2.6.2 - checksum: d16862e8b126b53bd1f2e747d61f3111ee92e72bd530b3ab767a017f15bd1e1b068e4e05ae81940c880de4e21a492affec08531ff455748cfbf389c549d3d9dc + checksum: 319adb1f481535aed5f0d6d615c9d4f917fb82c54eb1297a5f67790e4596d48d558eb7a3811107acdf5e139459b1f96de20a02c95fe8a538f1bb59fb2a51322c languageName: node linkType: hard @@ -1122,25 +1394,25 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/middleware-sdk-s3@npm:^3.972.7": - version: 3.972.7 - resolution: "@aws-sdk/middleware-sdk-s3@npm:3.972.7" +"@aws-sdk/middleware-sdk-s3@npm:^3.972.10": + version: 3.972.10 + resolution: "@aws-sdk/middleware-sdk-s3@npm:3.972.10" dependencies: - "@aws-sdk/core": ^3.973.7 + "@aws-sdk/core": ^3.973.10 "@aws-sdk/types": ^3.973.1 "@aws-sdk/util-arn-parser": ^3.972.2 - "@smithy/core": ^3.22.1 + "@smithy/core": ^3.23.0 "@smithy/node-config-provider": ^4.3.8 "@smithy/protocol-http": ^5.3.8 "@smithy/signature-v4": ^5.3.8 - "@smithy/smithy-client": ^4.11.2 + "@smithy/smithy-client": ^4.11.3 "@smithy/types": ^4.12.0 "@smithy/util-config-provider": ^4.2.0 "@smithy/util-middleware": ^4.2.8 - "@smithy/util-stream": ^4.5.11 + "@smithy/util-stream": ^4.5.12 "@smithy/util-utf8": ^4.2.0 tslib: ^2.6.2 - checksum: 4d838ece0da9030da456c83f72d7c90c92b33a0c835937aa788789f491d0a79799e02b45e6456db3f408fd8fff09d79c51612a9cf0c0f007271cab724875bff4 + checksum: 19cb56495423d15ebd95e18c43d2fc9fdc4b2a753a694bff889b49e2ff56a680b04a06c4d2033bba026a29449c6093470bcc6892a113a3275ab817bb07659d58 languageName: node linkType: hard @@ -1170,6 +1442,21 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/middleware-user-agent@npm:^3.972.10": + version: 3.972.10 + resolution: "@aws-sdk/middleware-user-agent@npm:3.972.10" + dependencies: + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/types": ^3.973.1 + "@aws-sdk/util-endpoints": 3.990.0 + "@smithy/core": ^3.23.0 + "@smithy/protocol-http": ^5.3.8 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + checksum: 04f214bd695227e5e79da8f2808d14b303c87d20b76fed96a67afa307a813e94b375f435d5fd70767857eb872df9d8ce5acd716c24e9206162138eb546c40723 + languageName: node + linkType: hard + "@aws-sdk/middleware-user-agent@npm:^3.972.7": version: 3.972.7 resolution: "@aws-sdk/middleware-user-agent@npm:3.972.7" @@ -1343,6 +1630,52 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/nested-clients@npm:3.990.0": + version: 3.990.0 + resolution: "@aws-sdk/nested-clients@npm:3.990.0" + dependencies: + "@aws-crypto/sha256-browser": 5.2.0 + "@aws-crypto/sha256-js": 5.2.0 + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/middleware-host-header": ^3.972.3 + "@aws-sdk/middleware-logger": ^3.972.3 + "@aws-sdk/middleware-recursion-detection": ^3.972.3 + "@aws-sdk/middleware-user-agent": ^3.972.10 + "@aws-sdk/region-config-resolver": ^3.972.3 + "@aws-sdk/types": ^3.973.1 + "@aws-sdk/util-endpoints": 3.990.0 + "@aws-sdk/util-user-agent-browser": ^3.972.3 + "@aws-sdk/util-user-agent-node": ^3.972.8 + "@smithy/config-resolver": ^4.4.6 + "@smithy/core": ^3.23.0 + "@smithy/fetch-http-handler": ^5.3.9 + "@smithy/hash-node": ^4.2.8 + "@smithy/invalid-dependency": ^4.2.8 + "@smithy/middleware-content-length": ^4.2.8 + "@smithy/middleware-endpoint": ^4.4.14 + "@smithy/middleware-retry": ^4.4.31 + "@smithy/middleware-serde": ^4.2.9 + "@smithy/middleware-stack": ^4.2.8 + "@smithy/node-config-provider": ^4.3.8 + "@smithy/node-http-handler": ^4.4.10 + "@smithy/protocol-http": ^5.3.8 + "@smithy/smithy-client": ^4.11.3 + "@smithy/types": ^4.12.0 + "@smithy/url-parser": ^4.2.8 + "@smithy/util-base64": ^4.3.0 + "@smithy/util-body-length-browser": ^4.2.0 + "@smithy/util-body-length-node": ^4.2.1 + "@smithy/util-defaults-mode-browser": ^4.3.30 + "@smithy/util-defaults-mode-node": ^4.2.33 + "@smithy/util-endpoints": ^3.2.8 + "@smithy/util-middleware": ^4.2.8 + "@smithy/util-retry": ^4.2.8 + "@smithy/util-utf8": ^4.2.0 + tslib: ^2.6.2 + checksum: d4949eba9cdb781c9927abf301e0b8e9d07ea4f74e372358fb09d2c5ff566acec76529769489aab23725cf1b794479c260ef02f57556cf5254744236988e1122 + languageName: node + linkType: hard + "@aws-sdk/region-config-resolver@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/region-config-resolver@npm:3.969.0" @@ -1369,33 +1702,33 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/s3-request-presigner@npm:^3.987.0": - version: 3.987.0 - resolution: "@aws-sdk/s3-request-presigner@npm:3.987.0" +"@aws-sdk/s3-request-presigner@npm:^3.990.0": + version: 3.990.0 + resolution: "@aws-sdk/s3-request-presigner@npm:3.990.0" dependencies: - "@aws-sdk/signature-v4-multi-region": 3.987.0 + "@aws-sdk/signature-v4-multi-region": 3.990.0 "@aws-sdk/types": ^3.973.1 "@aws-sdk/util-format-url": ^3.972.3 - "@smithy/middleware-endpoint": ^4.4.13 + "@smithy/middleware-endpoint": ^4.4.14 "@smithy/protocol-http": ^5.3.8 - "@smithy/smithy-client": ^4.11.2 + "@smithy/smithy-client": ^4.11.3 "@smithy/types": ^4.12.0 tslib: ^2.6.2 - checksum: 8461d58ecd5be6a12d395e2869d3ef5cb6790ed5414e9d5092aabb85f104a8bf1296ad023a3f1de6a2809413c226db1f870336cbdb534d897b2b19354e3e5b4d + checksum: 7a3f86822221e3c0ebff4a070555270c33226d78419d0d1750faa31e8c8102fc07b1f60df8e7ed2ac33b3b8d653196ae6ae39d8eb62e2fd53a487866c283c457 languageName: node linkType: hard -"@aws-sdk/signature-v4-multi-region@npm:3.987.0": - version: 3.987.0 - resolution: "@aws-sdk/signature-v4-multi-region@npm:3.987.0" +"@aws-sdk/signature-v4-multi-region@npm:3.990.0": + version: 3.990.0 + resolution: "@aws-sdk/signature-v4-multi-region@npm:3.990.0" dependencies: - "@aws-sdk/middleware-sdk-s3": ^3.972.7 + "@aws-sdk/middleware-sdk-s3": ^3.972.10 "@aws-sdk/types": ^3.973.1 "@smithy/protocol-http": ^5.3.8 "@smithy/signature-v4": ^5.3.8 "@smithy/types": ^4.12.0 tslib: ^2.6.2 - checksum: cedb277def54ad05243253a3c93df6a6fad8160f7b3d1b0e0bd28ee899852335ea69d654d5412ea1e76d70b18f1f08e59b50612316c35562403a58c35d862a50 + checksum: aabee1ff29328fb6e51092432d47922de30728b384152fbe103d411e8f34762567168eea69ca88a7bd5706a851b1016f25bb3c4b1b73d46679b0b1d0ce77b2c1 languageName: node linkType: hard @@ -1444,6 +1777,21 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/token-providers@npm:3.990.0": + version: 3.990.0 + resolution: "@aws-sdk/token-providers@npm:3.990.0" + dependencies: + "@aws-sdk/core": ^3.973.10 + "@aws-sdk/nested-clients": 3.990.0 + "@aws-sdk/types": ^3.973.1 + "@smithy/property-provider": ^4.2.8 + "@smithy/shared-ini-file-loader": ^4.4.3 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + checksum: c8f6994275e889410fb802efe4a8c315cc9c1410ab60980230d749443f8082c6bc3a258ed86d4ebb9322b4493c94cdab7b2e33df9d80c18c46a1d257dfb34f3c + languageName: node + linkType: hard + "@aws-sdk/types@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/types@npm:3.969.0" @@ -1484,6 +1832,17 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/util-dynamodb@npm:3.990.0": + version: 3.990.0 + resolution: "@aws-sdk/util-dynamodb@npm:3.990.0" + dependencies: + tslib: ^2.6.2 + peerDependencies: + "@aws-sdk/client-dynamodb": ^3.990.0 + checksum: 8ffe37b20de53d7e9d07873ed840d1e95ba5e9bc8d574a6a0695094c9a885adc79e100fd20370c516e82086bc0cda119a979e29d121a12b23a6b31fdedc44e7f + languageName: node + linkType: hard + "@aws-sdk/util-endpoints@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/util-endpoints@npm:3.969.0" @@ -1523,6 +1882,19 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/util-endpoints@npm:3.990.0": + version: 3.990.0 + resolution: "@aws-sdk/util-endpoints@npm:3.990.0" + dependencies: + "@aws-sdk/types": ^3.973.1 + "@smithy/types": ^4.12.0 + "@smithy/url-parser": ^4.2.8 + "@smithy/util-endpoints": ^3.2.8 + tslib: ^2.6.2 + checksum: 98d34433d120e1f968091131ce67554eb568aabd555137ed0f77978199e87edf271ca186d3f28c4fed0ea2b2aaa98f70b9b0d65455ee46fed44748d566450fc0 + languageName: node + linkType: hard + "@aws-sdk/util-format-url@npm:^3.972.3": version: 3.972.3 resolution: "@aws-sdk/util-format-url@npm:3.972.3" @@ -1604,6 +1976,24 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/util-user-agent-node@npm:^3.972.8": + version: 3.972.8 + resolution: "@aws-sdk/util-user-agent-node@npm:3.972.8" + dependencies: + "@aws-sdk/middleware-user-agent": ^3.972.10 + "@aws-sdk/types": ^3.973.1 + "@smithy/node-config-provider": ^4.3.8 + "@smithy/types": ^4.12.0 + tslib: ^2.6.2 + peerDependencies: + aws-crt: ">=1.0.0" + peerDependenciesMeta: + aws-crt: + optional: true + checksum: fea0675dcca73cc03a334ce3016e1c38620e1a03c69a8ff0e32d3a93ce65337c7fb8eefeca6cdc759daa2fc8dc522b55faf9981c7b26ab9a3efd24bdc31f3030 + languageName: node + linkType: hard + "@aws-sdk/xml-builder@npm:3.969.0": version: 3.969.0 resolution: "@aws-sdk/xml-builder@npm:3.969.0" @@ -1859,18 +2249,18 @@ __metadata: languageName: node linkType: hard -"@biomejs/biome@npm:2.3.8": - version: 2.3.8 - resolution: "@biomejs/biome@npm:2.3.8" - dependencies: - "@biomejs/cli-darwin-arm64": 2.3.8 - "@biomejs/cli-darwin-x64": 2.3.8 - "@biomejs/cli-linux-arm64": 2.3.8 - "@biomejs/cli-linux-arm64-musl": 2.3.8 - "@biomejs/cli-linux-x64": 2.3.8 - "@biomejs/cli-linux-x64-musl": 2.3.8 - "@biomejs/cli-win32-arm64": 2.3.8 - "@biomejs/cli-win32-x64": 2.3.8 +"@biomejs/biome@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/biome@npm:2.4.0" + dependencies: + "@biomejs/cli-darwin-arm64": 2.4.0 + "@biomejs/cli-darwin-x64": 2.4.0 + "@biomejs/cli-linux-arm64": 2.4.0 + "@biomejs/cli-linux-arm64-musl": 2.4.0 + "@biomejs/cli-linux-x64": 2.4.0 + "@biomejs/cli-linux-x64-musl": 2.4.0 + "@biomejs/cli-win32-arm64": 2.4.0 + "@biomejs/cli-win32-x64": 2.4.0 dependenciesMeta: "@biomejs/cli-darwin-arm64": optional: true @@ -1890,62 +2280,62 @@ __metadata: optional: true bin: biome: bin/biome - checksum: a6fc82184279eda9d04012d6c0b307baf8910753854c497f0f8b7ff2d385b1ae74ea5e4e0c534b2bae123e8dd965c21f8c60b513cb46877aa1023a971009ecb6 + checksum: 4712b7ce8513e4c26d2508c9c45297cb2622e4b9fc1fdf9132ebf53f2a55667df39e2f0bc270d65c070fdc7bc22cc12baadee11de44acc52733916759aa3c596 languageName: node linkType: hard -"@biomejs/cli-darwin-arm64@npm:2.3.8": - version: 2.3.8 - resolution: "@biomejs/cli-darwin-arm64@npm:2.3.8" +"@biomejs/cli-darwin-arm64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-darwin-arm64@npm:2.4.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-darwin-x64@npm:2.3.8": - version: 2.3.8 - resolution: "@biomejs/cli-darwin-x64@npm:2.3.8" +"@biomejs/cli-darwin-x64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-darwin-x64@npm:2.4.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@biomejs/cli-linux-arm64-musl@npm:2.3.8": - version: 2.3.8 - resolution: "@biomejs/cli-linux-arm64-musl@npm:2.3.8" +"@biomejs/cli-linux-arm64-musl@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-linux-arm64-musl@npm:2.4.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@biomejs/cli-linux-arm64@npm:2.3.8": - version: 2.3.8 - resolution: "@biomejs/cli-linux-arm64@npm:2.3.8" +"@biomejs/cli-linux-arm64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-linux-arm64@npm:2.4.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@biomejs/cli-linux-x64-musl@npm:2.3.8": - version: 2.3.8 - resolution: "@biomejs/cli-linux-x64-musl@npm:2.3.8" +"@biomejs/cli-linux-x64-musl@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-linux-x64-musl@npm:2.4.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@biomejs/cli-linux-x64@npm:2.3.8": - version: 2.3.8 - resolution: "@biomejs/cli-linux-x64@npm:2.3.8" +"@biomejs/cli-linux-x64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-linux-x64@npm:2.4.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@biomejs/cli-win32-arm64@npm:2.3.8": - version: 2.3.8 - resolution: "@biomejs/cli-win32-arm64@npm:2.3.8" +"@biomejs/cli-win32-arm64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-win32-arm64@npm:2.4.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-win32-x64@npm:2.3.8": - version: 2.3.8 - resolution: "@biomejs/cli-win32-x64@npm:2.3.8" +"@biomejs/cli-win32-x64@npm:2.4.0": + version: 2.4.0 + resolution: "@biomejs/cli-win32-x64@npm:2.4.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -2677,6 +3067,13 @@ __metadata: languageName: node linkType: hard +"@isaacs/cliui@npm:^9.0.0": + version: 9.0.0 + resolution: "@isaacs/cliui@npm:9.0.0" + checksum: 9b80836cd9fa64099faffc3cb9c0620fd8c1106670f507378c5030daecfe9a29012a67488299e69f3273c6421da2a27ea6a1f1d7600bac01b0cbb5da8eea6277 + languageName: node + linkType: hard + "@isaacs/fs-minipass@npm:^4.0.0": version: 4.0.1 resolution: "@isaacs/fs-minipass@npm:4.0.1" @@ -2747,9 +3144,9 @@ __metadata: languageName: node linkType: hard -"@langchain/aws@npm:^1.2.2": - version: 1.2.2 - resolution: "@langchain/aws@npm:1.2.2" +"@langchain/aws@npm:^1.2.3": + version: 1.2.3 + resolution: "@langchain/aws@npm:1.2.3" dependencies: "@aws-sdk/client-bedrock-agent-runtime": ^3.755.0 "@aws-sdk/client-bedrock-runtime": ^3.966.0 @@ -2757,13 +3154,13 @@ __metadata: "@aws-sdk/credential-provider-node": ^3.750.0 peerDependencies: "@langchain/core": ^1.0.0 - checksum: 23e0b5bb7b322e5144ee852051e71eda9be9427f69abdb3e99f1727278693db5fadb10e114adf50dd37fd792b8e14a319b25b7845fe51fa9250e2332bd74d912 + checksum: 001c083bcf4a162e7732c51ea91274fd667d27625c24f00a2f1d222d56e4ee1c3cb861640a568e3de45599be23cd1af825f707718a900c812feed86392e5a3e2 languageName: node linkType: hard -"@langchain/core@npm:^1.1.22": - version: 1.1.22 - resolution: "@langchain/core@npm:1.1.22" +"@langchain/core@npm:^1.1.24": + version: 1.1.24 + resolution: "@langchain/core@npm:1.1.24" dependencies: "@cfworker/json-schema": ^4.0.2 ansi-styles: ^5.0.0 @@ -2775,7 +3172,7 @@ __metadata: p-queue: ^6.6.2 uuid: ^10.0.0 zod: ^3.25.76 || ^4 - checksum: 4b57503535a096ffdde644e8a3a0f84fdfb78c8e9926ce02b05b2430927db641568ba9e6b6e312707184e91c0de75d6d46659de6752181545034d5ec479a6956 + checksum: 7c27308e81367cf6707587cc1d4553e2f556b35cd000496316fc4d62f94cf752e665bedbab324e1263a92f2e86942baaf8bc47da88d8a9a298a5dea452633b28 languageName: node linkType: hard @@ -4023,10 +4420,10 @@ __metadata: languageName: node linkType: hard -"@sentry/core@npm:10.38.0": - version: 10.38.0 - resolution: "@sentry/core@npm:10.38.0" - checksum: 34da7144b72645ec2604670a912f4ad4ac16cbf5334f95316e103d0bce4934acebdb8e48750dbf609c5e8f16c004a1d097127c111cb6d8f612595c4be398ceaa +"@sentry/core@npm:10.39.0": + version: 10.39.0 + resolution: "@sentry/core@npm:10.39.0" + checksum: d2469894d65d93071872323625b217b846172a0fc54ac7c0d1bba96a3d709875430ee1be02b527c034304e37ee9365a37ebc8f8c0290c0ff0077f43ee1617adc languageName: node linkType: hard @@ -4052,13 +4449,13 @@ __metadata: languageName: node linkType: hard -"@sentry/node-core@npm:10.38.0": - version: 10.38.0 - resolution: "@sentry/node-core@npm:10.38.0" +"@sentry/node-core@npm:10.39.0": + version: 10.39.0 + resolution: "@sentry/node-core@npm:10.39.0" dependencies: "@apm-js-collab/tracing-hooks": ^0.3.1 - "@sentry/core": 10.38.0 - "@sentry/opentelemetry": 10.38.0 + "@sentry/core": 10.39.0 + "@sentry/opentelemetry": 10.39.0 import-in-the-middle: ^2.0.6 peerDependencies: "@opentelemetry/api": ^1.9.0 @@ -4068,13 +4465,28 @@ __metadata: "@opentelemetry/resources": ^1.30.1 || ^2.1.0 "@opentelemetry/sdk-trace-base": ^1.30.1 || ^2.1.0 "@opentelemetry/semantic-conventions": ^1.39.0 - checksum: 9db1a25f287296c3f529e3bcf4bb705abcbe65348a8e1830f5b08702d7edd5e87dc9b6f75e8182d031320d338cd07f27737e326afaf1ca793f6f575368a08549 + peerDependenciesMeta: + "@opentelemetry/api": + optional: true + "@opentelemetry/context-async-hooks": + optional: true + "@opentelemetry/core": + optional: true + "@opentelemetry/instrumentation": + optional: true + "@opentelemetry/resources": + optional: true + "@opentelemetry/sdk-trace-base": + optional: true + "@opentelemetry/semantic-conventions": + optional: true + checksum: fcd9afa3beab5bfc213655e3a050752182af06b25372c8f3410f7a44bfefbd784b32c081d91d5ecf7ce42ba84e7a496daa7324a2dc3cb2c7ab064af0a736a86d languageName: node linkType: hard -"@sentry/node@npm:10.38.0": - version: 10.38.0 - resolution: "@sentry/node@npm:10.38.0" +"@sentry/node@npm:10.39.0": + version: 10.39.0 + resolution: "@sentry/node@npm:10.39.0" dependencies: "@opentelemetry/api": ^1.9.0 "@opentelemetry/context-async-hooks": ^2.5.0 @@ -4106,27 +4518,27 @@ __metadata: "@opentelemetry/sdk-trace-base": ^2.5.0 "@opentelemetry/semantic-conventions": ^1.39.0 "@prisma/instrumentation": 7.2.0 - "@sentry/core": 10.38.0 - "@sentry/node-core": 10.38.0 - "@sentry/opentelemetry": 10.38.0 + "@sentry/core": 10.39.0 + "@sentry/node-core": 10.39.0 + "@sentry/opentelemetry": 10.39.0 import-in-the-middle: ^2.0.6 minimatch: ^9.0.0 - checksum: 3d82403e2a520d9a4f3b9fed4f38861b796a85cfdee566e7d7622402de44feb264c9525ee5a031d6a501cb484a336f90c7d5b44ce649034e666df3a60349827b + checksum: 87628db5f735010998577a77bb0d1e82fda5349fac9685a0c3773c563d876dabd26d960082b2fdd1a1263a227ed0ddce846d2ab66bfdd9e46ada09988294f275 languageName: node linkType: hard -"@sentry/opentelemetry@npm:10.38.0": - version: 10.38.0 - resolution: "@sentry/opentelemetry@npm:10.38.0" +"@sentry/opentelemetry@npm:10.39.0": + version: 10.39.0 + resolution: "@sentry/opentelemetry@npm:10.39.0" dependencies: - "@sentry/core": 10.38.0 + "@sentry/core": 10.39.0 peerDependencies: "@opentelemetry/api": ^1.9.0 "@opentelemetry/context-async-hooks": ^1.30.1 || ^2.1.0 "@opentelemetry/core": ^1.30.1 || ^2.1.0 "@opentelemetry/sdk-trace-base": ^1.30.1 || ^2.1.0 "@opentelemetry/semantic-conventions": ^1.39.0 - checksum: ea8421931b0fdaf6ef4d3e6a238aa4bdb096d0451e878266ed19718468fcd2f7f1500c58a12cfcca4b933786039827f49278832c81e6e22f0004aea1d55ed29e + checksum: f8b1a680769dcfeea4bc93bb5f34d3fb66aafedce9d148158cfa4751026cd2a00e68854647f89d7e12b5beb07f958cb021b650611e2e6468282b3d45b8db7fc8 languageName: node linkType: hard @@ -4404,7 +4816,7 @@ __metadata: languageName: node linkType: hard -"@smithy/middleware-retry@npm:^4.4.22, @smithy/middleware-retry@npm:^4.4.30": +"@smithy/middleware-retry@npm:^4.4.22, @smithy/middleware-retry@npm:^4.4.30, @smithy/middleware-retry@npm:^4.4.31": version: 4.4.31 resolution: "@smithy/middleware-retry@npm:4.4.31" dependencies: @@ -4636,7 +5048,7 @@ __metadata: languageName: node linkType: hard -"@smithy/util-defaults-mode-browser@npm:^4.3.21, @smithy/util-defaults-mode-browser@npm:^4.3.29": +"@smithy/util-defaults-mode-browser@npm:^4.3.21, @smithy/util-defaults-mode-browser@npm:^4.3.29, @smithy/util-defaults-mode-browser@npm:^4.3.30": version: 4.3.30 resolution: "@smithy/util-defaults-mode-browser@npm:4.3.30" dependencies: @@ -4648,7 +5060,7 @@ __metadata: languageName: node linkType: hard -"@smithy/util-defaults-mode-node@npm:^4.2.24, @smithy/util-defaults-mode-node@npm:^4.2.32": +"@smithy/util-defaults-mode-node@npm:^4.2.24, @smithy/util-defaults-mode-node@npm:^4.2.32, @smithy/util-defaults-mode-node@npm:^4.2.33": version: 4.2.33 resolution: "@smithy/util-defaults-mode-node@npm:4.2.33" dependencies: @@ -5105,12 +5517,12 @@ __metadata: languageName: node linkType: hard -"@types/nodemailer@npm:^7.0.9": - version: 7.0.9 - resolution: "@types/nodemailer@npm:7.0.9" +"@types/nodemailer@npm:^7.0.10": + version: 7.0.10 + resolution: "@types/nodemailer@npm:7.0.10" dependencies: "@types/node": "*" - checksum: fb27c1857d499910b088a012751b2b7bbc9f8dab5bee92ae9f3d4840dd43f23253dba6ea8bd5466cb17ec58835fcbca35259aac792e4314b16f42a6459aae3c0 + checksum: 6e8ff56ff38f11da32f12a053ea3f003a8d73c4d7a41f925c75a8b7244bd64b78927f7bbae776faeae7d826edda83cfc2754e1942708e824578b944111c7bb7c languageName: node linkType: hard @@ -5946,14 +6358,14 @@ __metadata: dependencies: "@amplitude/node": 1.10.2 "@ava/typescript": 6.0.0 - "@aws-sdk/client-bedrock-runtime": ^3.987.0 - "@aws-sdk/client-s3": ^3.987.0 - "@aws-sdk/lib-dynamodb": ^3.987.0 - "@aws-sdk/s3-request-presigner": ^3.987.0 + "@aws-sdk/client-bedrock-runtime": ^3.990.0 + "@aws-sdk/client-s3": ^3.990.0 + "@aws-sdk/lib-dynamodb": ^3.990.0 + "@aws-sdk/s3-request-presigner": ^3.990.0 "@electric-sql/pglite": ^0.3.15 "@faker-js/faker": ^10.3.0 - "@langchain/aws": ^1.2.2 - "@langchain/core": ^1.1.22 + "@langchain/aws": ^1.2.3 + "@langchain/core": ^1.1.24 "@langchain/openai": ^1.2.7 "@nestjs/cli": ^11.0.16 "@nestjs/common": 11.1.13 @@ -5969,7 +6381,7 @@ __metadata: "@nestjsx/crud": 4.6.2 "@rocketadmin/shared-code": "workspace:*" "@sentry/minimal": ^6.19.7 - "@sentry/node": 10.38.0 + "@sentry/node": 10.39.0 "@types/bcrypt": ^6.0.0 "@types/body-parser": ^1.19.6 "@types/cookie-parser": ^1.4.10 @@ -5981,7 +6393,7 @@ __metadata: "@types/jsonwebtoken": ^9.0.10 "@types/multer": ^2.0.0 "@types/node": ^24.10.1 - "@types/nodemailer": ^7.0.9 + "@types/nodemailer": ^7.0.10 "@types/nunjucks": ^3.2.6 "@types/pg": ^8.16.0 "@types/qrcode": ^1.5.6 @@ -6003,7 +6415,7 @@ __metadata: crc: ^4.3.2 crypto-js: 4.2.0 csv: ^6.4.1 - dotenv: 17.2.4 + dotenv: 17.3.1 express: 5.2.1 fetch-blob: ^4.0.0 helmet: 8.1.0 @@ -6013,13 +6425,13 @@ __metadata: jsonwebtoken: ^9.0.3 knex: 3.1.0 knip: ^5.83.1 - langchain: ^1.2.21 + langchain: ^1.2.24 lru-cache: ^11.2.6 nanoid: 5.1.6 nock: ^14.0.11 nodemailer: ^8.0.1 nunjucks: ^3.2.4 - openai: ^6.21.0 + openai: ^6.22.0 otplib: ^12.0.1 p-queue: 9.1.0 pg: ^8.18.0 @@ -6027,7 +6439,7 @@ __metadata: qrcode: ^1.5.4 query-string: ^9.3.1 reflect-metadata: 0.2.2 - rimraf: 6.1.2 + rimraf: 6.1.3 rxjs: 7.8.2 safe-regex2: ^5.0.0 secure-json-parse: 4.1.0 @@ -6133,6 +6545,15 @@ __metadata: languageName: node linkType: hard +"balanced-match@npm:^4.0.2": + version: 4.0.2 + resolution: "balanced-match@npm:4.0.2" + dependencies: + jackspeak: ^4.2.3 + checksum: 862d6e14832a45558bdd2bc4663ba6d8e7ba60670a6cb1ef952a62348d5f086b16ee71a21b369f0fee808432590c724c823a80cb59eddd140b5ffa3f55497b62 + languageName: node + linkType: hard + "base32-encode@npm:^2.0.0": version: 2.0.0 resolution: "base32-encode@npm:2.0.0" @@ -6286,6 +6707,15 @@ __metadata: languageName: node linkType: hard +"brace-expansion@npm:^5.0.2": + version: 5.0.2 + resolution: "brace-expansion@npm:5.0.2" + dependencies: + balanced-match: ^4.0.2 + checksum: df4dcccb04ad168655716e9c2dc7ddc61afb8c0bc368dbfbffcf3d3cae2e4ceb9797484e9dd90d7b5a360066330fc6313afec2eac207110612637dabc5e34ca5 + languageName: node + linkType: hard + "braces@npm:^3.0.3": version: 3.0.3 resolution: "braces@npm:3.0.3" @@ -7418,10 +7848,10 @@ __metadata: languageName: node linkType: hard -"dotenv@npm:17.2.4, dotenv@npm:^17.2.3": - version: 17.2.4 - resolution: "dotenv@npm:17.2.4" - checksum: 177cb42d328ac70be3c1f1434593914fc3e4719d8d074a890906ca610afae1e0488c623e68aa8f532192e8f687bc9e9e144de7b66fb79b6d20437bbd993059a8 +"dotenv@npm:17.3.1": + version: 17.3.1 + resolution: "dotenv@npm:17.3.1" + checksum: 3723ef6766ce91b0b9fa68fd5bf0fd6b77e316daa2ac8746bacbe301608b311b4abae63e475cacd5901cb3ad9cb6b07d0719fd1a030162fe09c56a583dd1ec50 languageName: node linkType: hard @@ -7432,6 +7862,13 @@ __metadata: languageName: node linkType: hard +"dotenv@npm:^17.2.3": + version: 17.2.4 + resolution: "dotenv@npm:17.2.4" + checksum: 177cb42d328ac70be3c1f1434593914fc3e4719d8d074a890906ca610afae1e0488c623e68aa8f532192e8f687bc9e9e144de7b66fb79b6d20437bbd993059a8 + languageName: node + linkType: hard + "dunder-proto@npm:^1.0.1": version: 1.0.1 resolution: "dunder-proto@npm:1.0.1" @@ -8323,6 +8760,17 @@ __metadata: languageName: node linkType: hard +"glob@npm:^13.0.3": + version: 13.0.3 + resolution: "glob@npm:13.0.3" + dependencies: + minimatch: ^10.2.0 + minipass: ^7.1.2 + path-scurry: ^2.0.0 + checksum: 5301de8b024ea991851c01d6f03e127de59649265ff6c5bd808bb8615fa8befcbec19e48b44f0d22253754fc7a7e5b2e933b8397da1c1a0d90421770ea866957 + languageName: node + linkType: hard + "globby@npm:^14.1.0": version: 14.1.0 resolution: "globby@npm:14.1.0" @@ -8892,6 +9340,15 @@ __metadata: languageName: node linkType: hard +"jackspeak@npm:^4.2.3": + version: 4.2.3 + resolution: "jackspeak@npm:4.2.3" + dependencies: + "@isaacs/cliui": ^9.0.0 + checksum: 256c2a35b781b61a368b29cff30c901163f2726c768920d160a743429ea7ff4a02f254fa5a27ebbf6444c1a544ec45b0f46d5c6a44f6cc23b0bcd2b6b919ccb0 + languageName: node + linkType: hard + "jest-worker@npm:^27.4.5": version: 27.5.1 resolution: "jest-worker@npm:27.5.1" @@ -9175,9 +9632,9 @@ __metadata: languageName: node linkType: hard -"langchain@npm:^1.2.21": - version: 1.2.21 - resolution: "langchain@npm:1.2.21" +"langchain@npm:^1.2.24": + version: 1.2.24 + resolution: "langchain@npm:1.2.24" dependencies: "@langchain/langgraph": ^1.1.2 "@langchain/langgraph-checkpoint": ^1.0.0 @@ -9185,8 +9642,8 @@ __metadata: uuid: ^10.0.0 zod: ^3.25.76 || ^4 peerDependencies: - "@langchain/core": ^1.1.22 - checksum: f56a2041d65518a9090020ac60bf5e402e06c4d5a4785707c32fb6444b269bdab06dffe0be07524cc1584c41c6bbdf2b29b34857ab0206da4ce50abb829dfa55 + "@langchain/core": ^1.1.24 + checksum: d00719a00754442e4aa33a7ce6ff625937b07644bc149271b7908f7a06c8d85cdacf60544404da448623e705a7471f2648c3a3ada2d8f15cfadd4dee865022eb languageName: node linkType: hard @@ -9684,6 +10141,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:^10.2.0": + version: 10.2.0 + resolution: "minimatch@npm:10.2.0" + dependencies: + brace-expansion: ^5.0.2 + checksum: 7b54732b32255a6a5458e67c928eb8247d08b19623bbc5a4123ded2545e38ecf6a3296c4f47bb7f85ac0834061c058499fe4507403793effd3f9dfc5839b1c20 + languageName: node + linkType: hard + "minimatch@npm:^3.0.4": version: 3.1.2 resolution: "minimatch@npm:3.1.2" @@ -10305,7 +10771,7 @@ __metadata: languageName: node linkType: hard -"openai@npm:^6.18.0, openai@npm:^6.21.0": +"openai@npm:^6.18.0": version: 6.21.0 resolution: "openai@npm:6.21.0" peerDependencies: @@ -10322,6 +10788,23 @@ __metadata: languageName: node linkType: hard +"openai@npm:^6.22.0": + version: 6.22.0 + resolution: "openai@npm:6.22.0" + peerDependencies: + ws: ^8.18.0 + zod: ^3.25 || ^4.0 + peerDependenciesMeta: + ws: + optional: true + zod: + optional: true + bin: + openai: bin/cli + checksum: f4781328eb719c118b8b4190f589356b6cb13b7f180b3069a8a0c6171daa78f9992b3d336acffeeeed8d433ba53cfd2348eeace316abc2931352ade83c3a075b + languageName: node + linkType: hard + "ora@npm:5.4.1": version: 5.4.1 resolution: "ora@npm:5.4.1" @@ -11242,7 +11725,19 @@ __metadata: languageName: node linkType: hard -"rimraf@npm:6.1.2, rimraf@npm:^6.1.2": +"rimraf@npm:6.1.3": + version: 6.1.3 + resolution: "rimraf@npm:6.1.3" + dependencies: + glob: ^13.0.3 + package-json-from-dist: ^1.0.1 + bin: + rimraf: dist/esm/bin.mjs + checksum: 797dabd9b03a154a863c20e0bd0066214a3a7165d30a358852b63b96f9463d360f59d56db6ccbaebac6fe2ff5c93dea2cddd547855bba1a1e1d5361c31e7456a + languageName: node + linkType: hard + +"rimraf@npm:^6.1.2": version: 6.1.2 resolution: "rimraf@npm:6.1.2" dependencies: @@ -11298,7 +11793,7 @@ __metadata: version: 0.0.0-use.local resolution: "root@workspace:." dependencies: - "@biomejs/biome": 2.3.8 + "@biomejs/biome": 2.4.0 husky: ^9.1.7 lint-staged: ^16.2.7 monaco-editor: ^0.53.0