@api-client/core 0.19.31 → 0.19.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/authorization/index.d.ts +10 -0
- package/build/src/authorization/index.d.ts.map +1 -0
- package/build/src/authorization/index.js +10 -0
- package/build/src/authorization/index.js.map +1 -0
- package/build/src/browser.d.ts +13 -143
- package/build/src/browser.d.ts.map +1 -1
- package/build/src/browser.js +10 -144
- package/build/src/browser.js.map +1 -1
- package/build/src/data/DataExtractor.d.ts +1 -2
- package/build/src/data/DataExtractor.d.ts.map +1 -1
- package/build/src/data/DataExtractor.js.map +1 -1
- package/build/src/data/index.d.ts +10 -0
- package/build/src/data/index.d.ts.map +1 -0
- package/build/src/data/index.js +10 -0
- package/build/src/data/index.js.map +1 -0
- package/build/src/events/Events.d.ts +3 -3
- package/build/src/events/index.d.ts +11 -0
- package/build/src/events/index.d.ts.map +1 -0
- package/build/src/events/index.js +4 -0
- package/build/src/events/index.js.map +1 -0
- package/build/src/exceptions/index.d.ts +8 -0
- package/build/src/exceptions/index.d.ts.map +1 -0
- package/build/src/exceptions/index.js +8 -0
- package/build/src/exceptions/index.js.map +1 -0
- package/build/src/index.d.ts +10 -138
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +11 -142
- package/build/src/index.js.map +1 -1
- package/build/src/mocking/lib/User.d.ts.map +1 -1
- package/build/src/mocking/lib/User.js +1 -1
- package/build/src/mocking/lib/User.js.map +1 -1
- package/build/src/modeling/ApiModel.d.ts.map +1 -1
- package/build/src/modeling/ApiModel.js +0 -8
- package/build/src/modeling/ApiModel.js.map +1 -1
- package/build/src/modeling/RuntimeApiModel.d.ts +16 -0
- package/build/src/modeling/RuntimeApiModel.d.ts.map +1 -1
- package/build/src/modeling/RuntimeApiModel.js +31 -0
- package/build/src/modeling/RuntimeApiModel.js.map +1 -1
- package/build/src/modeling/ai/DataDomainDelta.d.ts +3 -3
- package/build/src/modeling/ai/DataDomainDelta.d.ts.map +1 -1
- package/build/src/modeling/ai/DataDomainDelta.js +3 -3
- package/build/src/modeling/ai/DataDomainDelta.js.map +1 -1
- package/build/src/modeling/amf/index.d.ts +4 -0
- package/build/src/modeling/amf/index.d.ts.map +1 -0
- package/build/src/modeling/amf/index.js +4 -0
- package/build/src/modeling/amf/index.js.map +1 -0
- package/build/src/modeling/index.d.ts +18 -1
- package/build/src/modeling/index.d.ts.map +1 -1
- package/build/src/modeling/index.js +14 -1
- package/build/src/modeling/index.js.map +1 -1
- package/build/src/modeling/types.d.ts +0 -15
- package/build/src/modeling/types.d.ts.map +1 -1
- package/build/src/modeling/types.js.map +1 -1
- package/build/src/modeling/validation/api_model_rules.d.ts.map +1 -1
- package/build/src/modeling/validation/api_model_rules.js +49 -46
- package/build/src/modeling/validation/api_model_rules.js.map +1 -1
- package/build/src/models/index.d.ts +64 -0
- package/build/src/models/index.d.ts.map +1 -0
- package/build/src/models/index.js +68 -0
- package/build/src/models/index.js.map +1 -0
- package/build/src/models/store/CustomDomain.d.ts +1 -1
- package/build/src/models/store/CustomDomain.d.ts.map +1 -1
- package/build/src/models/store/CustomDomain.js +2 -2
- package/build/src/models/store/CustomDomain.js.map +1 -1
- package/build/src/models/store/{data_catalog.d.ts → DataCatalog.d.ts} +1 -1
- package/build/src/models/store/DataCatalog.d.ts.map +1 -0
- package/build/src/models/store/DataCatalog.js +2 -0
- package/build/src/models/store/DataCatalog.js.map +1 -0
- package/build/src/models/store/DeploymentCustomDomain.d.ts +1 -1
- package/build/src/models/store/DeploymentCustomDomain.d.ts.map +1 -1
- package/build/src/models/store/DeploymentCustomDomain.js +2 -2
- package/build/src/models/store/DeploymentCustomDomain.js.map +1 -1
- package/build/src/models/store/File.d.ts.map +1 -1
- package/build/src/models/store/File.js +1 -2
- package/build/src/models/store/File.js.map +1 -1
- package/build/src/models/store/User.d.ts +3 -3
- package/build/src/models/store/User.d.ts.map +1 -1
- package/build/src/models/store/User.js +1 -1
- package/build/src/models/store/User.js.map +1 -1
- package/build/src/models/store/index.d.ts +17 -0
- package/build/src/models/store/index.d.ts.map +1 -0
- package/build/src/models/store/index.js +10 -0
- package/build/src/models/store/index.js.map +1 -0
- package/build/src/patch/index.d.ts +3 -0
- package/build/src/patch/index.d.ts.map +1 -0
- package/build/src/patch/index.js +2 -0
- package/build/src/patch/index.js.map +1 -0
- package/build/src/sdk/GroupsSdk.d.ts +1 -1
- package/build/src/sdk/GroupsSdk.d.ts.map +1 -1
- package/build/src/sdk/GroupsSdk.js.map +1 -1
- package/build/src/sdk/StoreSdkNode.d.ts +0 -4
- package/build/src/sdk/StoreSdkNode.d.ts.map +1 -1
- package/build/src/sdk/StoreSdkNode.js.map +1 -1
- package/build/src/sdk/StoreSdkWeb.d.ts +1 -5
- package/build/src/sdk/StoreSdkWeb.d.ts.map +1 -1
- package/build/src/sdk/StoreSdkWeb.js +1 -1
- package/build/src/sdk/StoreSdkWeb.js.map +1 -1
- package/build/src/sdk/index.d.ts +8 -0
- package/build/src/sdk/index.d.ts.map +1 -0
- package/build/src/sdk/index.js +3 -0
- package/build/src/sdk/index.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/data/DataExtractor.ts +1 -1
- package/src/mocking/lib/User.ts +2 -1
- package/src/modeling/ApiModel.ts +0 -10
- package/src/modeling/RuntimeApiModel.ts +46 -0
- package/src/modeling/ai/DataDomainDelta.ts +5 -11
- package/src/modeling/readme.md +2 -2
- package/src/modeling/types.ts +0 -15
- package/src/modeling/validation/api_model_rules.ts +50 -48
- package/src/modeling/validation/api_model_validation_rules.md +2 -2
- package/src/models/store/CustomDomain.ts +2 -2
- package/src/models/store/DeploymentCustomDomain.ts +2 -2
- package/src/models/store/File.ts +2 -2
- package/src/models/store/User.ts +3 -4
- package/src/sdk/GroupsSdk.ts +1 -1
- package/src/sdk/StoreSdkNode.ts +0 -11
- package/src/sdk/StoreSdkWeb.ts +1 -12
- package/tests/unit/authorization/SecurityProcessor.spec.ts +2 -1
- package/tests/unit/data/JmesparthReader.spec.ts +1 -1
- package/tests/unit/data/JsonReader.spec.ts +1 -1
- package/tests/unit/data/PayloadPointer.spec.ts +1 -1
- package/tests/unit/data/RequestDataExtractor.spec.ts +9 -13
- package/tests/unit/data/UrlEncodedReader.spec.ts +1 -1
- package/tests/unit/data/XmlReader.spec.ts +1 -1
- package/tests/unit/mocking/current/Certificates.spec.ts +1 -1
- package/tests/unit/mocking/current/HostRules.spec.ts +1 -1
- package/tests/unit/mocking/current/Urls.spec.ts +1 -1
- package/tests/unit/mocking/current/User.spec.ts +2 -2
- package/tests/unit/modeling/RuntimeApiModel.spec.ts +31 -0
- package/tests/unit/modeling/ai/DataDomainDelta.spec.ts +1 -1
- package/tests/unit/modeling/ai/DomainSerialization.spec.ts +1 -1
- package/tests/unit/modeling/ai/tools/DataDomain.tools.spec.ts +1 -1
- package/tests/unit/modeling/amf/shape_generator.spec.ts +1 -1
- package/tests/unit/modeling/api_model.spec.ts +8 -9
- package/tests/unit/modeling/api_model_expose_entity.spec.ts +1 -1
- package/tests/unit/modeling/api_model_remove_entity.spec.ts +1 -1
- package/tests/unit/modeling/data_domain.spec.ts +2 -1
- package/tests/unit/modeling/data_domain_change_observers.spec.ts +1 -1
- package/tests/unit/modeling/data_domain_serialization.spec.ts +2 -2
- package/tests/unit/modeling/definitions/phone.spec.ts +1 -1
- package/tests/unit/modeling/domain_asociation.spec.ts +34 -34
- package/tests/unit/modeling/domain_asociation_targets.spec.ts +1 -1
- package/tests/unit/modeling/domain_entity.spec.ts +3 -9
- package/tests/unit/modeling/domain_entity_associations.spec.ts +1 -1
- package/tests/unit/modeling/domain_entity_example_generator_json.spec.ts +1 -1
- package/tests/unit/modeling/domain_entity_example_generator_xml.spec.ts +1 -1
- package/tests/unit/modeling/domain_entity_fields.spec.ts +1 -1
- package/tests/unit/modeling/domain_entity_generators.spec.ts +1 -1
- package/tests/unit/modeling/domain_entity_parents.spec.ts +1 -1
- package/tests/unit/modeling/domain_entity_properties.spec.ts +2 -1
- package/tests/unit/modeling/domain_file.spec.ts +2 -1
- package/tests/unit/modeling/domain_impact_analysis.spec.ts +5 -3
- package/tests/unit/modeling/domain_model.spec.ts +3 -8
- package/tests/unit/modeling/domain_model_entities.spec.ts +2 -1
- package/tests/unit/modeling/domain_namespace.spec.ts +3 -9
- package/tests/unit/modeling/domain_namespace_models.spec.ts +1 -1
- package/tests/unit/modeling/domain_namespace_namespaces.spec.ts +1 -1
- package/tests/unit/modeling/domain_property.spec.ts +3 -1
- package/tests/unit/modeling/domain_validation.spec.ts +1 -1
- package/tests/unit/modeling/domain_versioning.spec.ts +1 -1
- package/tests/unit/modeling/exposed_entity.spec.ts +1 -1
- package/tests/unit/modeling/exposed_entity_setter_validation.spec.ts +1 -1
- package/tests/unit/modeling/generators/OasGenerator.spec.ts +1 -3
- package/tests/unit/modeling/helpers/intellisense.spec.ts +1 -1
- package/tests/unit/modeling/importers/json_schema_importer.spec.ts +1 -1
- package/tests/unit/modeling/validation/api_model_rules.spec.ts +12 -12
- package/tests/unit/modeling/validation/association_validation.spec.ts +1 -1
- package/tests/unit/modeling/validation/entity_validation.spec.ts +1 -1
- package/tests/unit/modeling/validation/property_validation.spec.ts +1 -1
- package/tests/unit/models/Certificate/from_name.spec.ts +2 -1
- package/tests/unit/models/File/addLabel.spec.ts +1 -1
- package/tests/unit/models/File/constructor.spec.ts +2 -1
- package/tests/unit/models/File/createFileCapabilities.spec.ts +1 -1
- package/tests/unit/models/File/new.spec.ts +2 -1
- package/tests/unit/models/File/setDeleted.spec.ts +1 -1
- package/tests/unit/models/File/setLastModified.spec.ts +1 -1
- package/tests/unit/models/File/shortcutTo.spec.ts +1 -1
- package/tests/unit/models/File/toJSON.spec.ts +2 -1
- package/tests/unit/models/File/updateByMeMeta.spec.ts +1 -1
- package/tests/unit/models/Folder/consume.spec.ts +2 -1
- package/tests/unit/models/Folder/create.spec.ts +2 -1
- package/tests/unit/models/Permission/all.spec.ts +1 -1
- package/tests/unit/models/Project/consume.spec.ts +1 -1
- package/tests/unit/models/Project/create.spec.ts +1 -1
- package/tests/unit/models/certificate.spec.ts +2 -7
- package/tests/unit/models/host_rule.spec.ts +1 -1
- package/tests/unit/models/http_project.spec.ts +1 -1
- package/tests/unit/models/http_request.spec.ts +2 -9
- package/tests/unit/models/http_response.spec.ts +2 -1
- package/tests/unit/models/license.spec.ts +1 -1
- package/tests/unit/models/response.spec.ts +2 -2
- package/tests/unit/models/store/CustomDomain.spec.ts +8 -8
- package/tests/unit/models/store/DeploymentCustomDomain.spec.ts +9 -9
- package/tests/unit/models/store/Invitation.spec.ts +1 -1
- package/tests/unit/runtime/http-engine/abort.spec.ts +2 -8
- package/tests/unit/runtime/http-engine/auth.spec.ts +2 -1
- package/tests/unit/runtime/http-engine/certificates.spec.ts +2 -1
- package/tests/unit/runtime/http-engine/cleanup.spec.ts +2 -1
- package/tests/unit/runtime/http-engine/compression.spec.ts +2 -1
- package/tests/unit/runtime/http-engine/core_engine.spec.ts +7 -11
- package/tests/unit/runtime/http-engine/events.spec.ts +2 -1
- package/tests/unit/runtime/http-engine/headers.spec.ts +2 -9
- package/tests/unit/runtime/http-engine/hosts.spec.ts +2 -1
- package/tests/unit/runtime/http-engine/http-get.spec.ts +2 -1
- package/tests/unit/runtime/http-engine/http-post.spec.ts +2 -9
- package/tests/unit/runtime/http-engine/logger.spec.ts +2 -1
- package/tests/unit/runtime/http-engine/message.spec.ts +2 -8
- package/tests/unit/runtime/http-engine/params.spec.ts +2 -10
- package/tests/unit/runtime/http-engine/proxy.spec.ts +2 -10
- package/tests/unit/runtime/http-engine/redirects.spec.ts +4 -6
- package/tests/unit/runtime/http-engine/request_utils.spec.ts +2 -1
- package/tests/unit/runtime/http-engine/responses.spec.ts +2 -10
- package/tests/unit/runtime/http-engine/timeout.spec.ts +2 -8
- package/tests/unit/runtime/http-engine/timings.spec.ts +2 -1
- package/tests/unit/runtime/proxy/HttpProjectProxy.spec.ts +3 -8
- package/tests/unit/runtime/proxy/RequestProxy.spec.ts +6 -7
- package/tests/unit/runtime/reporters/project_run_cli_reporter.spec.ts +2 -7
- package/tests/unit/runtime/runners/http_assertion_runner.spec.ts +2 -2
- package/tests/unit/runtime/runners/http_flow_runner.spec.ts +2 -2
- package/tests/unit/runtime/runners/parallel_runner.spec.ts +2 -2
- package/tests/unit/runtime/runners/project_runner.spec.ts +2 -5
- package/tests/unit/runtime/runners/request_runner.spec.ts +2 -5
- package/tests/unit/runtime/runners/serial_runner.spec.ts +2 -3
- package/tests/unit/runtime/variables/variables_processor.spec.ts +2 -1
- package/tsconfig.browser.json +3 -4
- package/tsconfig.node.json +1 -3
- package/build/src/models/store/data_catalog.d.ts.map +0 -1
- package/build/src/models/store/data_catalog.js +0 -2
- package/build/src/models/store/data_catalog.js.map +0 -1
- /package/src/models/store/{data_catalog.ts → DataCatalog.ts} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { DataDomain,
|
|
2
|
+
import { DataDomain, DomainProperty, DataFormat } from '../../../src/modeling/index.js'
|
|
3
3
|
import { SemanticType } from '../../../src/modeling/Semantics.js'
|
|
4
|
+
import { DomainPropertyKind } from '../../../src/models/kinds.js'
|
|
5
|
+
import { Thing } from '../../../src/models/Thing.js'
|
|
4
6
|
|
|
5
7
|
test.group('DomainProperty.createSchema()', () => {
|
|
6
8
|
test('creates a schema with default values', ({ assert }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
2
|
import { DomainValidation } from '../../../src/modeling/DomainValidation.js'
|
|
3
|
-
import { DataDomain } from '../../../src/index.js'
|
|
3
|
+
import { DataDomain } from '../../../src/modeling/index.js'
|
|
4
4
|
import { SemanticType } from '../../../src/modeling/Semantics.js'
|
|
5
5
|
|
|
6
6
|
test.group('DomainImpactAnalysis.validate()', (group) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { DataDomain, DomainVersioning } from '../../../src/index.js'
|
|
2
|
+
import { DataDomain, DomainVersioning } from '../../../src/modeling/index.js'
|
|
3
3
|
|
|
4
4
|
test.group('DomainVersioning', () => {
|
|
5
5
|
test('should serialize a domain with only local nodes', ({ assert }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { ApiModel, DataDomain, ExposedEntity, type ExposedEntitySchema } from '../../../src/index.js'
|
|
2
|
+
import { ApiModel, DataDomain, ExposedEntity, type ExposedEntitySchema } from '../../../src/modeling/index.js'
|
|
3
3
|
import { AccessRule, RateLimitingConfiguration } from '../../../src/modeling/index.js'
|
|
4
4
|
import { ExposedEntityKind } from '../../../src/models/kinds.js'
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { ApiModel, DataDomain } from '../../../src/index.js'
|
|
2
|
+
import { ApiModel, DataDomain } from '../../../src/modeling/index.js'
|
|
3
3
|
|
|
4
4
|
test.group('ExposedEntity Path Setter Validation', () => {
|
|
5
5
|
test('throws when setting collection path that collides with another root entity', ({ assert }) => {
|
|
@@ -32,7 +32,7 @@ test.group('OasGenerator', (group) => {
|
|
|
32
32
|
info: { name: 'email' },
|
|
33
33
|
semantics: [{ id: SemanticType.Email }, { id: SemanticType.Username }],
|
|
34
34
|
})
|
|
35
|
-
|
|
35
|
+
user.addProperty({
|
|
36
36
|
type: 'string',
|
|
37
37
|
required: true,
|
|
38
38
|
info: { name: 'password' },
|
|
@@ -148,11 +148,9 @@ test.group('OasGenerator', (group) => {
|
|
|
148
148
|
}
|
|
149
149
|
api.authentication = {
|
|
150
150
|
strategy: 'UsernamePassword',
|
|
151
|
-
passwordKey: passwd.key,
|
|
152
151
|
}
|
|
153
152
|
api.authorization = {
|
|
154
153
|
strategy: 'RBAC',
|
|
155
|
-
roleKey: role.key,
|
|
156
154
|
}
|
|
157
155
|
api.pagination = { kind: 'cursor', defaultLimit: 50, maxLimit: 70 }
|
|
158
156
|
const userExposure = api.exposeEntity({ key: user.key })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { DataDomain, DomainEntity, DomainProperty, DomainAssociation } from '../../../../src/index.js'
|
|
2
|
+
import { DataDomain, DomainEntity, DomainProperty, DomainAssociation } from '../../../../src/modeling/index.js'
|
|
3
3
|
import {
|
|
4
4
|
addAutoField,
|
|
5
5
|
addIdField,
|
|
@@ -6,7 +6,7 @@ import { type InMemorySchema, JsonSchemaImporter } from '../../../../src/modelin
|
|
|
6
6
|
import { DataDomain } from '../../../../src/modeling/DataDomain.js'
|
|
7
7
|
import type { JSONSchema7 } from 'json-schema'
|
|
8
8
|
import type { DomainEntity } from '../../../../src/modeling/DomainEntity.js'
|
|
9
|
-
import { DomainAssociation, DomainProperty } from '../../../../src/
|
|
9
|
+
import { DomainAssociation, DomainProperty } from '../../../../src/modeling/index.js'
|
|
10
10
|
import Person from '../../../fixtures/schemas/person.json' with { type: 'json' }
|
|
11
11
|
import Arrays from '../../../fixtures/schemas/arrays.json' with { type: 'json' }
|
|
12
12
|
import EnumValues from '../../../fixtures/schemas/enumerated_values.json' with { type: 'json' }
|
|
@@ -63,8 +63,8 @@ test.group('ApiModel Validation', () => {
|
|
|
63
63
|
|
|
64
64
|
const model = new ApiModel(
|
|
65
65
|
{
|
|
66
|
-
authentication: { strategy: 'UsernamePassword'
|
|
67
|
-
authorization: { strategy: 'RBAC'
|
|
66
|
+
authentication: { strategy: 'UsernamePassword' } as UsernamePasswordConfiguration,
|
|
67
|
+
authorization: { strategy: 'RBAC' } as RolesBasedAccessControl,
|
|
68
68
|
session: {
|
|
69
69
|
secret: 'super-secret',
|
|
70
70
|
properties: ['id', 'role'],
|
|
@@ -91,8 +91,8 @@ test.group('ApiModel Validation', () => {
|
|
|
91
91
|
const domain = new DataDomain({ info: { version: '1.0.0' } })
|
|
92
92
|
const model = new ApiModel(
|
|
93
93
|
{
|
|
94
|
-
authentication: { strategy: 'UsernamePassword'
|
|
95
|
-
authorization: { strategy: 'RBAC'
|
|
94
|
+
authentication: { strategy: 'UsernamePassword' } as UsernamePasswordConfiguration,
|
|
95
|
+
authorization: { strategy: 'RBAC' } as RolesBasedAccessControl,
|
|
96
96
|
session: {
|
|
97
97
|
secret: 'super-secret',
|
|
98
98
|
properties: [],
|
|
@@ -126,8 +126,8 @@ test.group('ApiModel Validation', () => {
|
|
|
126
126
|
|
|
127
127
|
const model = new ApiModel(
|
|
128
128
|
{
|
|
129
|
-
authentication: { strategy: 'UsernamePassword'
|
|
130
|
-
authorization: { strategy: 'RBAC'
|
|
129
|
+
authentication: { strategy: 'UsernamePassword' } as UsernamePasswordConfiguration,
|
|
130
|
+
authorization: { strategy: 'RBAC' } as RolesBasedAccessControl,
|
|
131
131
|
session: { secret: 'secret', properties: [] },
|
|
132
132
|
user: { key: userEntity.key, domain: domain.key },
|
|
133
133
|
},
|
|
@@ -148,8 +148,8 @@ test.group('ApiModel Validation', () => {
|
|
|
148
148
|
|
|
149
149
|
const model = new ApiModel(
|
|
150
150
|
{
|
|
151
|
-
authentication: { strategy: 'UsernamePassword'
|
|
152
|
-
authorization: { strategy: 'RBAC'
|
|
151
|
+
authentication: { strategy: 'UsernamePassword' } as UsernamePasswordConfiguration,
|
|
152
|
+
authorization: { strategy: 'RBAC' } as RolesBasedAccessControl,
|
|
153
153
|
session: { secret: 'secret', properties: [] },
|
|
154
154
|
user: { key: userEntity.key, domain: domain.key },
|
|
155
155
|
},
|
|
@@ -170,8 +170,8 @@ test.group('ApiModel Validation', () => {
|
|
|
170
170
|
|
|
171
171
|
const model = new ApiModel(
|
|
172
172
|
{
|
|
173
|
-
authentication: { strategy: 'UsernamePassword'
|
|
174
|
-
authorization: { strategy: 'RBAC'
|
|
173
|
+
authentication: { strategy: 'UsernamePassword' } as UsernamePasswordConfiguration,
|
|
174
|
+
authorization: { strategy: 'RBAC' } as RolesBasedAccessControl,
|
|
175
175
|
session: { secret: 'secret', properties: [] },
|
|
176
176
|
user: { key: userEntity.key, domain: domain.key },
|
|
177
177
|
},
|
|
@@ -397,8 +397,8 @@ test.group('ApiModel Validation', () => {
|
|
|
397
397
|
const model = new ApiModel(
|
|
398
398
|
{
|
|
399
399
|
info: { name: 'Valid API', description: 'A test definition' },
|
|
400
|
-
authentication: { strategy: 'UsernamePassword'
|
|
401
|
-
authorization: { strategy: 'RBAC'
|
|
400
|
+
authentication: { strategy: 'UsernamePassword' } as UsernamePasswordConfiguration,
|
|
401
|
+
authorization: { strategy: 'RBAC' } as RolesBasedAccessControl,
|
|
402
402
|
session: {
|
|
403
403
|
secret: 'super-secret',
|
|
404
404
|
properties: ['id', 'role'],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { DataDomain, AssociationValidation } from '../../../../src/index.js'
|
|
2
|
+
import { DataDomain, AssociationValidation } from '../../../../src/modeling/index.js'
|
|
3
3
|
|
|
4
4
|
test.group('AssociationValidation', (group) => {
|
|
5
5
|
let domain: DataDomain
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable max-len */
|
|
2
2
|
import { test } from '@japa/runner'
|
|
3
|
-
import { DataDomain, EntityValidation } from '../../../../src/index.js'
|
|
3
|
+
import { DataDomain, EntityValidation } from '../../../../src/modeling/index.js'
|
|
4
4
|
|
|
5
5
|
test.group('EntityValidation', (group) => {
|
|
6
6
|
let domain: DataDomain
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { DataDomain, PropertyValidation } from '../../../../src/index.js'
|
|
2
|
+
import { DataDomain, PropertyValidation } from '../../../../src/modeling/index.js'
|
|
3
3
|
|
|
4
4
|
test.group('PropertyValidation', (group) => {
|
|
5
5
|
let domain: DataDomain
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { CertificateFile
|
|
2
|
+
import { CertificateFile } from '../../../../src/models/index.js'
|
|
3
|
+
import { CertificateFileKind } from '../../../../src/models/kinds.js'
|
|
3
4
|
|
|
4
5
|
test.group('CertificateFile.fromName()', () => {
|
|
5
6
|
test('sets the kind', ({ assert }) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { File
|
|
2
|
+
import { File } from '../../../../src/models/index.js'
|
|
3
|
+
import { ThingKind } from '../../../../src/models/kinds.js'
|
|
3
4
|
|
|
4
5
|
test.group('File.constructor()', () => {
|
|
5
6
|
test('creates a default File', ({ assert }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { File, Folder, CapabilitiesSchema, PermissionRole
|
|
2
|
+
import { File, Folder, Project, type CapabilitiesSchema, type PermissionRole } from '../../../../src/models/index.js'
|
|
3
3
|
|
|
4
4
|
test.group('File.createFileCapabilities()', () => {
|
|
5
5
|
test('{$i} correctly sets file capabilities')
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { File,
|
|
2
|
+
import { File, type FileSchema } from '../../../../src/models/index.js'
|
|
3
|
+
import { ThingKind } from '../../../../src/models/kinds.js'
|
|
3
4
|
|
|
4
5
|
test.group('File.new()', (group) => {
|
|
5
6
|
let file: File
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { File,
|
|
2
|
+
import { File, type FileSchema } from '../../../../src/models/index.js'
|
|
3
|
+
import { ThingKind } from '../../../../src/models/kinds.js'
|
|
3
4
|
|
|
4
5
|
test.group('File.toJSON()', (group) => {
|
|
5
6
|
let file: File
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { File, Folder } from '../../../../src/index.js'
|
|
2
|
+
import { File, Folder } from '../../../../src/models/index.js'
|
|
3
3
|
|
|
4
4
|
test.group('File.updateByMeMeta()', () => {
|
|
5
5
|
test('sets deletedInfo.byMe for the same user', ({ assert }) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { Folder
|
|
2
|
+
import { Folder } from '../../../../src/models/index.js'
|
|
3
|
+
import { FolderKind } from '../../../../src/models/kinds.js'
|
|
3
4
|
|
|
4
5
|
test.group('Folder.toJSON()', () => {
|
|
5
6
|
test('serializes the kind', ({ assert }) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { Folder,
|
|
2
|
+
import { Folder, type FolderSchema } from '../../../../src/models/index.js'
|
|
3
|
+
import { FolderKind, ThingKind } from '../../../../src/models/kinds.js'
|
|
3
4
|
|
|
4
5
|
test.group('Folder.fromName()', () => {
|
|
5
6
|
test('sets the kind', ({ assert }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { PermissionSchema, Permission, PermissionKind, PermissionRole } from '../../../../src/index.js'
|
|
2
|
+
import { PermissionSchema, Permission, PermissionKind, PermissionRole } from '../../../../src/models/index.js'
|
|
3
3
|
|
|
4
4
|
test.group('Permission', () => {
|
|
5
5
|
test('creates a default Permission', ({ assert }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { HttpProject, IProject, Project, ProjectKind, ThingKind } from '../../../../src/index.js'
|
|
2
|
+
import { HttpProject, IProject, Project, ProjectKind, ThingKind } from '../../../../src/models/index.js'
|
|
3
3
|
|
|
4
4
|
test.group('Project.fromProject()', () => {
|
|
5
5
|
test('sets the kind', ({ assert }) => {
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
CertificateKind,
|
|
5
|
-
IP12Certificate,
|
|
6
|
-
IPemCertificate,
|
|
7
|
-
Buffer as CoreBuffer,
|
|
8
|
-
} from '../../../src/index.js'
|
|
2
|
+
import { Certificate, CertificateKind, IP12Certificate, IPemCertificate } from '../../../src/models/index.js'
|
|
3
|
+
import { Buffer as CoreBuffer } from '../../../src/index.js'
|
|
9
4
|
import { fileToBuffer } from '../../../src/lib/Buffer.js'
|
|
10
5
|
|
|
11
6
|
const { bufferToBase64 } = CoreBuffer
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { HostRule, HostRuleKind, IHostRule } from '../../../src/index.js'
|
|
2
|
+
import { HostRule, HostRuleKind, IHostRule } from '../../../src/models/index.js'
|
|
3
3
|
|
|
4
4
|
test.group('Default project initialization', () => {
|
|
5
5
|
test('initializes a default rule', ({ assert }) => {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
ProviderKind,
|
|
15
15
|
ServerKind,
|
|
16
16
|
ThingKind,
|
|
17
|
-
} from '../../../src/index.js'
|
|
17
|
+
} from '../../../src/models/index.js'
|
|
18
18
|
import { ArcLegacyProject, ARCSavedRequest, LegacyMock } from '../../../src/legacy.js'
|
|
19
19
|
|
|
20
20
|
const generator = new LegacyMock()
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
HttpRequest,
|
|
5
|
-
HttpRequestKind,
|
|
6
|
-
IHttpRequest,
|
|
7
|
-
ISafePayload,
|
|
8
|
-
PayloadSerializer,
|
|
9
|
-
Property,
|
|
10
|
-
} from '../../../src/index.js'
|
|
2
|
+
import { HeadersArray, HttpRequest, HttpRequestKind, IHttpRequest, Property } from '../../../src/models/index.js'
|
|
3
|
+
import { ISafePayload, PayloadSerializer } from '../../../src/index.js'
|
|
11
4
|
|
|
12
5
|
test.group('Default request initialization', () => {
|
|
13
6
|
test('initializes a default project', ({ assert }) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { HttpResponse, HttpResponseKind, IHttpResponse
|
|
2
|
+
import { HttpResponse, HttpResponseKind, IHttpResponse } from '../../../src/models/index.js'
|
|
3
|
+
import { ISafePayload, PayloadSerializer } from '../../../src/index.js'
|
|
3
4
|
|
|
4
5
|
test.group('Default response initialization', () => {
|
|
5
6
|
test('initializes a default project', ({ assert }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { ILicense, License, LicenseKind, Property } from '../../../src/index.js'
|
|
2
|
+
import { ILicense, License, LicenseKind, Property } from '../../../src/models/index.js'
|
|
3
3
|
|
|
4
4
|
test.group('Default project initialization', () => {
|
|
5
5
|
test('initializes a default rule', ({ assert }) => {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
ErrorResponse,
|
|
4
4
|
Response,
|
|
5
5
|
IResponse,
|
|
6
|
-
ISafePayload,
|
|
7
6
|
ResponseAuthorizationKind,
|
|
8
7
|
ResponseKind,
|
|
9
|
-
} from '../../../src/index.js'
|
|
8
|
+
} from '../../../src/models/index.js'
|
|
9
|
+
import { ISafePayload } from '../../../src/index.js'
|
|
10
10
|
|
|
11
11
|
test.group('Default response initialization', () => {
|
|
12
12
|
test('initializes a default project', ({ assert }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import {
|
|
2
|
+
import { CustomDomain } from '../../../../src/models/store/CustomDomain.js'
|
|
3
3
|
import type { CustomDomainSchema } from '../../../../src/models/store/CustomDomain.js'
|
|
4
4
|
|
|
5
5
|
test.group('CustomDomain model', () => {
|
|
6
6
|
test('createSchema() returns default values', ({ assert }) => {
|
|
7
|
-
const result =
|
|
7
|
+
const result = CustomDomain.createSchema()
|
|
8
8
|
assert.isString(result.id)
|
|
9
9
|
assert.equal(result.orgId, '')
|
|
10
10
|
assert.equal(result.domain, '')
|
|
@@ -26,7 +26,7 @@ test.group('CustomDomain model', () => {
|
|
|
26
26
|
createdAt: 12345,
|
|
27
27
|
updatedAt: 67890,
|
|
28
28
|
}
|
|
29
|
-
const result =
|
|
29
|
+
const result = CustomDomain.createSchema(init)
|
|
30
30
|
assert.equal(result.id, 'test-id')
|
|
31
31
|
assert.equal(result.orgId, 'org-1')
|
|
32
32
|
assert.equal(result.domain, 'api.example.com')
|
|
@@ -38,7 +38,7 @@ test.group('CustomDomain model', () => {
|
|
|
38
38
|
})
|
|
39
39
|
|
|
40
40
|
test('constructor() initializes with default values', ({ assert }) => {
|
|
41
|
-
const model = new
|
|
41
|
+
const model = new CustomDomain()
|
|
42
42
|
assert.isString(model.id)
|
|
43
43
|
assert.equal(model.orgId, '')
|
|
44
44
|
assert.equal(model.domain, '')
|
|
@@ -55,7 +55,7 @@ test.group('CustomDomain model', () => {
|
|
|
55
55
|
domain: 'api.example.com',
|
|
56
56
|
dnsVerified: true,
|
|
57
57
|
}
|
|
58
|
-
const model = new
|
|
58
|
+
const model = new CustomDomain(init)
|
|
59
59
|
assert.equal(model.orgId, 'org-1')
|
|
60
60
|
assert.equal(model.domain, 'api.example.com')
|
|
61
61
|
assert.isTrue(model.dnsVerified)
|
|
@@ -72,7 +72,7 @@ test.group('CustomDomain model', () => {
|
|
|
72
72
|
createdAt: 12345,
|
|
73
73
|
updatedAt: 67890,
|
|
74
74
|
}
|
|
75
|
-
const model = new
|
|
75
|
+
const model = new CustomDomain(init)
|
|
76
76
|
const result = model.toJSON()
|
|
77
77
|
assert.deepEqual(result, {
|
|
78
78
|
id: 'test-id',
|
|
@@ -87,7 +87,7 @@ test.group('CustomDomain model', () => {
|
|
|
87
87
|
})
|
|
88
88
|
|
|
89
89
|
test('validate() returns errors for empty fields', ({ assert }) => {
|
|
90
|
-
const model = new
|
|
90
|
+
const model = new CustomDomain({
|
|
91
91
|
domain: '',
|
|
92
92
|
orgId: '',
|
|
93
93
|
dnsTarget: '',
|
|
@@ -100,7 +100,7 @@ test.group('CustomDomain model', () => {
|
|
|
100
100
|
})
|
|
101
101
|
|
|
102
102
|
test('validate() returns no errors for valid model', ({ assert }) => {
|
|
103
|
-
const model = new
|
|
103
|
+
const model = new CustomDomain({
|
|
104
104
|
domain: 'api.example.com',
|
|
105
105
|
orgId: 'org-1',
|
|
106
106
|
dnsTarget: 'target.example.com',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import {
|
|
2
|
+
import { DeploymentCustomDomain, SslStatus } from '../../../../src/models/store/DeploymentCustomDomain.js'
|
|
3
3
|
import type { DeploymentCustomDomainSchema } from '../../../../src/models/store/DeploymentCustomDomain.js'
|
|
4
4
|
|
|
5
5
|
test.group('DeploymentCustomDomain model', () => {
|
|
6
6
|
test('createSchema() returns default values', ({ assert }) => {
|
|
7
|
-
const result =
|
|
7
|
+
const result = DeploymentCustomDomain.createSchema()
|
|
8
8
|
assert.isString(result.id)
|
|
9
9
|
assert.equal(result.deploymentId, '')
|
|
10
10
|
assert.equal(result.customDomainId, '')
|
|
@@ -24,7 +24,7 @@ test.group('DeploymentCustomDomain model', () => {
|
|
|
24
24
|
createdAt: 12345,
|
|
25
25
|
updatedAt: 67890,
|
|
26
26
|
}
|
|
27
|
-
const result =
|
|
27
|
+
const result = DeploymentCustomDomain.createSchema(init)
|
|
28
28
|
assert.equal(result.id, 'test-id')
|
|
29
29
|
assert.equal(result.deploymentId, 'dep-1')
|
|
30
30
|
assert.equal(result.customDomainId, 'dom-1')
|
|
@@ -35,7 +35,7 @@ test.group('DeploymentCustomDomain model', () => {
|
|
|
35
35
|
})
|
|
36
36
|
|
|
37
37
|
test('constructor() initializes with default values', ({ assert }) => {
|
|
38
|
-
const model = new
|
|
38
|
+
const model = new DeploymentCustomDomain()
|
|
39
39
|
assert.isString(model.id)
|
|
40
40
|
assert.equal(model.deploymentId, '')
|
|
41
41
|
assert.equal(model.customDomainId, '')
|
|
@@ -51,7 +51,7 @@ test.group('DeploymentCustomDomain model', () => {
|
|
|
51
51
|
customDomainId: 'dom-1',
|
|
52
52
|
basePath: '/api',
|
|
53
53
|
}
|
|
54
|
-
const model = new
|
|
54
|
+
const model = new DeploymentCustomDomain(init)
|
|
55
55
|
assert.equal(model.deploymentId, 'dep-1')
|
|
56
56
|
assert.equal(model.customDomainId, 'dom-1')
|
|
57
57
|
assert.equal(model.basePath, '/api')
|
|
@@ -67,7 +67,7 @@ test.group('DeploymentCustomDomain model', () => {
|
|
|
67
67
|
createdAt: 12345,
|
|
68
68
|
updatedAt: 67890,
|
|
69
69
|
}
|
|
70
|
-
const model = new
|
|
70
|
+
const model = new DeploymentCustomDomain(init)
|
|
71
71
|
const result = model.toJSON()
|
|
72
72
|
assert.deepEqual(result, {
|
|
73
73
|
id: 'test-id',
|
|
@@ -81,7 +81,7 @@ test.group('DeploymentCustomDomain model', () => {
|
|
|
81
81
|
})
|
|
82
82
|
|
|
83
83
|
test('validate() returns errors for empty and invalid fields', ({ assert }) => {
|
|
84
|
-
const model = new
|
|
84
|
+
const model = new DeploymentCustomDomain({
|
|
85
85
|
basePath: '',
|
|
86
86
|
deploymentId: '',
|
|
87
87
|
customDomainId: '',
|
|
@@ -96,7 +96,7 @@ test.group('DeploymentCustomDomain model', () => {
|
|
|
96
96
|
rule: 'notEmpty',
|
|
97
97
|
})
|
|
98
98
|
|
|
99
|
-
const modelInvalidPath = new
|
|
99
|
+
const modelInvalidPath = new DeploymentCustomDomain({
|
|
100
100
|
basePath: 'api/path',
|
|
101
101
|
deploymentId: 'dep-1',
|
|
102
102
|
customDomainId: 'dom-1',
|
|
@@ -111,7 +111,7 @@ test.group('DeploymentCustomDomain model', () => {
|
|
|
111
111
|
})
|
|
112
112
|
|
|
113
113
|
test('validate() returns no errors for valid model', ({ assert }) => {
|
|
114
|
-
const model = new
|
|
114
|
+
const model = new DeploymentCustomDomain({
|
|
115
115
|
deploymentId: 'dep-1',
|
|
116
116
|
customDomainId: 'dom-1',
|
|
117
117
|
basePath: '/api',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { Invitation, InvitationKind, type InvitationSchema, type DeletionSchema } from '../../../../src/index.js'
|
|
2
|
+
import { Invitation, InvitationKind, type InvitationSchema, type DeletionSchema } from '../../../../src/models/index.js'
|
|
3
3
|
import { OperationType } from '@api-client/json/patch/types.js'
|
|
4
4
|
|
|
5
5
|
const baseInput: Partial<InvitationSchema> = {
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
2
|
import net from 'net'
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
CoreEngine,
|
|
6
|
-
IHttpRequest,
|
|
7
|
-
HttpEngineOptions,
|
|
8
|
-
IErrorResponse,
|
|
9
|
-
ISerializedError,
|
|
10
|
-
} from '../../../../src/index.js'
|
|
3
|
+
import { createLogger, CoreEngine, HttpEngineOptions } from '../../../../src/index.js'
|
|
4
|
+
import { IErrorResponse, IHttpRequest, ISerializedError } from '../../../../src/models/index.js'
|
|
11
5
|
|
|
12
6
|
const logger = createLogger()
|
|
13
7
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import { CoreEngine, createLogger
|
|
2
|
+
import { CoreEngine, createLogger } from '../../../../src/index.js'
|
|
3
|
+
import { IResponse, Response, RequestAuthorizationKind } from '../../../../src/models/index.js'
|
|
3
4
|
|
|
4
5
|
const logger = createLogger()
|
|
5
6
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
2
|
import fs from 'fs'
|
|
3
|
-
import {
|
|
3
|
+
import { CoreEngine, createLogger } from '../../../../src/index.js'
|
|
4
|
+
import { HttpCertificate, IResponse, Response } from '../../../../src/models/index.js'
|
|
4
5
|
|
|
5
6
|
const logger = createLogger()
|
|
6
7
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
-
import {
|
|
2
|
+
import { CoreEngine, Headers } from '../../../../src/index.js'
|
|
3
|
+
import { IHttpRequest, Response, ResponseRedirect } from '../../../../src/models/index.js'
|
|
3
4
|
|
|
4
5
|
test.group('Cleaning up', (group) => {
|
|
5
6
|
let request: IHttpRequest
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
2
|
import zlib from 'zlib'
|
|
3
|
-
import {
|
|
3
|
+
import { CoreEngine, createLogger, Headers } from '../../../../src/index.js'
|
|
4
|
+
import { IHttpRequest, IResponse, Response } from '../../../../src/models/index.js'
|
|
4
5
|
|
|
5
6
|
const logger = createLogger()
|
|
6
7
|
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
|
+
import { CoreEngine, HttpEngineOptions, Headers, PayloadSerializer, createLogger } from '../../../../src/index.js'
|
|
3
|
+
import { HttpEngineErrorFactory } from '../../../../src/runtime/http-engine/errors/index.js'
|
|
4
|
+
import { MessageBuilder } from '../../../../src/runtime/http-engine/message/index.js'
|
|
5
|
+
import { AuthManager } from '../../../../src/runtime/http-engine/auth/index.js'
|
|
6
|
+
import { ConnectionManager } from '../../../../src/runtime/http-engine/connections/index.js'
|
|
2
7
|
import {
|
|
8
|
+
IHttpRequest,
|
|
3
9
|
IResponse,
|
|
4
10
|
Response,
|
|
5
|
-
IHttpRequest,
|
|
6
11
|
RequestTime,
|
|
7
|
-
CoreEngine,
|
|
8
|
-
HttpEngineOptions,
|
|
9
|
-
Headers,
|
|
10
|
-
PayloadSerializer,
|
|
11
12
|
RequestAuthorizationKind,
|
|
12
|
-
|
|
13
|
-
} from '../../../../src/index.js'
|
|
14
|
-
import { HttpEngineErrorFactory } from '../../../../src/runtime/http-engine/errors/index.js'
|
|
15
|
-
import { MessageBuilder } from '../../../../src/runtime/http-engine/message/index.js'
|
|
16
|
-
import { AuthManager } from '../../../../src/runtime/http-engine/auth/index.js'
|
|
17
|
-
import { ConnectionManager } from '../../../../src/runtime/http-engine/connections/index.js'
|
|
13
|
+
} from '../../../../src/models/index.js'
|
|
18
14
|
|
|
19
15
|
const logger = createLogger()
|
|
20
16
|
|