@api-client/core 0.19.32 → 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/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/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/ai/DataDomainDelta.ts +5 -11
- 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/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 +2 -3
- 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/helpers/intellisense.spec.ts +1 -1
- package/tests/unit/modeling/importers/json_schema_importer.spec.ts +1 -1
- 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
|
@@ -14,15 +14,12 @@ import {
|
|
|
14
14
|
ReadDataStep,
|
|
15
15
|
SetVariableStep,
|
|
16
16
|
FlowRequestDataEnum,
|
|
17
|
-
InMemoryCookieJar,
|
|
18
|
-
createLogger,
|
|
19
|
-
ProjectRequestRunner,
|
|
20
17
|
Environment,
|
|
21
|
-
IRunResult,
|
|
22
18
|
RequestAuthorization,
|
|
23
19
|
IBasicAuthorization,
|
|
24
|
-
} from '../../../../src/index.js'
|
|
20
|
+
} from '../../../../src/models/index.js'
|
|
25
21
|
import { AmfNamespace as ns } from '@api-client/amf-core'
|
|
22
|
+
import { InMemoryCookieJar, ProjectRequestRunner, createLogger, IRunResult } from '../../../../src/index.js'
|
|
26
23
|
|
|
27
24
|
const logger = createLogger()
|
|
28
25
|
|
|
@@ -7,9 +7,6 @@ import {
|
|
|
7
7
|
ReadDataStep,
|
|
8
8
|
SetVariableStep,
|
|
9
9
|
FlowRequestDataEnum,
|
|
10
|
-
InMemoryCookieJar,
|
|
11
|
-
createLogger,
|
|
12
|
-
HttpRequestRunner,
|
|
13
10
|
IHttpRequest,
|
|
14
11
|
RequestLogKind,
|
|
15
12
|
ISentRequest,
|
|
@@ -17,11 +14,11 @@ import {
|
|
|
17
14
|
Property,
|
|
18
15
|
SetDataStep,
|
|
19
16
|
IncludesAssertion,
|
|
20
|
-
ClearInMemoryCookieJar,
|
|
21
17
|
HttpCookie,
|
|
22
18
|
SetCookieStep,
|
|
23
19
|
RequestAuthorizationKind,
|
|
24
|
-
} from '../../../../src/index.js'
|
|
20
|
+
} from '../../../../src/models/index.js'
|
|
21
|
+
import { InMemoryCookieJar, ClearInMemoryCookieJar, createLogger, HttpRequestRunner } from '../../../../src/index.js'
|
|
25
22
|
import { AmfNamespace as ns } from '@api-client/amf-core'
|
|
26
23
|
|
|
27
24
|
const logger = createLogger()
|
|
@@ -4,7 +4,6 @@ import path from 'path'
|
|
|
4
4
|
import {
|
|
5
5
|
HttpProject,
|
|
6
6
|
ProjectRequest,
|
|
7
|
-
ProjectSerialRunner,
|
|
8
7
|
RequestLogKind,
|
|
9
8
|
ISentRequest,
|
|
10
9
|
IResponse,
|
|
@@ -19,8 +18,8 @@ import {
|
|
|
19
18
|
ReadDataStep,
|
|
20
19
|
SetVariableStep,
|
|
21
20
|
FlowRequestDataEnum,
|
|
22
|
-
|
|
23
|
-
} from '../../../../src/index.js'
|
|
21
|
+
} from '../../../../src/models/index.js'
|
|
22
|
+
import { InMemoryCookieJar, ProjectSerialRunner } from '../../../../src/index.js'
|
|
24
23
|
import { AmfNamespace as ns } from '@api-client/amf-core'
|
|
25
24
|
|
|
26
25
|
test.group('projects requests', (group) => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { test } from '@japa/runner'
|
|
2
2
|
import sinon from 'sinon'
|
|
3
3
|
import { clear } from '../../../../src/runtime/variables/Cache.js'
|
|
4
|
-
import { VariablesProcessor
|
|
4
|
+
import { VariablesProcessor } from '../../../../src/runtime/variables/VariablesProcessor.js'
|
|
5
|
+
import { Property } from '../../../../src/models/index.js'
|
|
5
6
|
import { EvalFunctions } from '../../../../src/runtime/variables/EvalFunctions.js'
|
|
6
7
|
|
|
7
8
|
const variables: Property[] = [
|
package/tsconfig.browser.json
CHANGED
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
"useDefineForClassFields": true,
|
|
14
14
|
"importHelpers": true,
|
|
15
15
|
"noImplicitOverride": true,
|
|
16
|
-
"outDir": ".tmp/testing",
|
|
17
16
|
"rootDir": "./",
|
|
18
|
-
"baseUrl": ".",
|
|
19
17
|
"sourceMap": true,
|
|
20
18
|
"declaration": true,
|
|
21
19
|
"noImplicitThis": true,
|
|
@@ -27,8 +25,9 @@
|
|
|
27
25
|
"allowJs": true,
|
|
28
26
|
"resolveJsonModule": true,
|
|
29
27
|
"skipLibCheck": true,
|
|
30
|
-
"incremental": true
|
|
28
|
+
"incremental": true,
|
|
29
|
+
"types": ["mocha"]
|
|
31
30
|
},
|
|
32
31
|
"include": ["src/**/*", "test/**/*"],
|
|
33
|
-
"exclude": ["node_modules", "build", "coverage", ".tmp", "amf-models", "bin", "data", "docs", "scripts"]
|
|
32
|
+
"exclude": ["node_modules", "build", "coverage", ".tmp", "amf-models", "bin", "data", "docs", "scripts"]
|
|
34
33
|
}
|
package/tsconfig.node.json
CHANGED
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
"useDefineForClassFields": true,
|
|
14
14
|
"importHelpers": true,
|
|
15
15
|
"noImplicitOverride": true,
|
|
16
|
-
"outDir": ".tmp/node",
|
|
17
16
|
"rootDir": "./",
|
|
18
|
-
"baseUrl": ".",
|
|
19
17
|
"sourceMap": true,
|
|
20
18
|
"inlineSources": true,
|
|
21
19
|
"declaration": true,
|
|
@@ -32,5 +30,5 @@
|
|
|
32
30
|
"incremental": true
|
|
33
31
|
},
|
|
34
32
|
"include": ["src/**/*", "tests/**/*", "bin/test.ts"],
|
|
35
|
-
"exclude": ["node_modules", "build", "coverage", ".tmp", "amf-models", "data", "docs", "scripts"]
|
|
33
|
+
"exclude": ["node_modules", "build", "coverage", ".tmp", "amf-models", "data", "docs", "scripts"]
|
|
36
34
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data_catalog.d.ts","sourceRoot":"","sources":["../../../../src/models/store/data_catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;;OAGG;IACH,KAAK,EAAE,QAAQ,GAAG,cAAc,GAAG,SAAS,CAAA;IAC5C;;OAEG;IACH,SAAS,EAAE,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAA;IACpC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAA;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,wBAAwB,CAAA;IACrC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data_catalog.js","sourceRoot":"","sources":["../../../../src/models/store/data_catalog.ts"],"names":[],"mappings":"","sourcesContent":["import { UnresolvedDependencyKind } from '../kinds.js'\n\nexport interface PublishedDataDomain {\n /**\n * Globally unique key for the data domain.\n */\n key: string\n /**\n * The key of the owning organization.\n */\n oid: string\n /**\n * The access level for the published data domain.\n * The private access means that the item was unpublished.\n */\n scope: 'public' | 'organization' | 'private'\n /**\n * The lifecycle stage of the data domain.\n */\n lifecycle: 'stable' | 'beta' | 'dev'\n /**\n * The version of the published data domain.\n */\n version: string\n /**\n * Key of the referenced `DomainNamespace` document.\n * Essentially this is a document id.\n */\n fid: string\n /**\n * Human-readable name.\n */\n name: string\n /**\n * Detailed description. Text or markdown.\n */\n description: string\n /**\n * User ID of the publisher.\n */\n publishedBy: string\n /**\n * Timestamp of publication.\n */\n publishedAt: number\n unpublishedAt?: number\n /**\n * Keywords for discovery.\n */\n tags: string[]\n /**\n * Deprecation status.\n */\n isDeprecated?: boolean\n deprecatedAt?: number\n deprecationMessage?: string\n}\n\nexport interface UnresolvedDependency {\n kind: typeof UnresolvedDependencyKind\n /**\n * Key of the missing namespace.\n */\n key: string\n /**\n * The version of the missing namespace.\n */\n version: string\n /**\n * Explanation of the failure (e.g., \"Namespace unpublished\").\n */\n reason: string\n}\n"]}
|
|
File without changes
|