@api-client/core 0.11.11 → 0.12.1
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/Testing.md +1 -1
- package/bin/plugins/events/EventPlugin.ts +61 -0
- package/bin/plugins/events/assert.ts +193 -0
- package/bin/plugins/events/types.ts +6 -0
- package/bin/test.ts +8 -1
- package/build/src/amf/AmfShapeGenerator.d.ts +6 -3
- package/build/src/amf/AmfShapeGenerator.d.ts.map +1 -1
- package/build/src/amf/AmfShapeGenerator.js +7 -4
- package/build/src/amf/AmfShapeGenerator.js.map +1 -1
- package/build/src/amf/AmfTypes.d.ts +2 -2
- package/build/src/amf/AmfTypes.d.ts.map +1 -1
- package/build/src/amf/AmfTypes.js.map +1 -1
- package/build/src/amf/DataValueGenerator.d.ts +15 -15
- package/build/src/amf/DataValueGenerator.d.ts.map +1 -1
- package/build/src/amf/DataValueGenerator.js +17 -16
- package/build/src/amf/DataValueGenerator.js.map +1 -1
- package/build/src/amf/models/AmfDataNode.d.ts.map +1 -1
- package/build/src/amf/models/AmfDataNode.js +2 -2
- package/build/src/amf/models/AmfDataNode.js.map +1 -1
- package/build/src/browser.d.ts +12 -9
- package/build/src/browser.d.ts.map +1 -1
- package/build/src/browser.js +11 -8
- package/build/src/browser.js.map +1 -1
- package/build/src/exceptions/attach_exception.d.ts +11 -0
- package/build/src/exceptions/attach_exception.d.ts.map +1 -0
- package/build/src/exceptions/attach_exception.js +11 -0
- package/build/src/exceptions/attach_exception.js.map +1 -0
- package/build/src/exceptions/detach_exception.d.ts +11 -0
- package/build/src/exceptions/detach_exception.d.ts.map +1 -0
- package/build/src/exceptions/detach_exception.js +11 -0
- package/build/src/exceptions/detach_exception.js.map +1 -0
- package/build/src/exceptions/remove_model_exception.d.ts +8 -0
- package/build/src/exceptions/remove_model_exception.d.ts.map +1 -0
- package/build/src/exceptions/remove_model_exception.js +8 -0
- package/build/src/exceptions/remove_model_exception.js.map +1 -0
- package/build/src/exceptions/remove_namespace_exception.d.ts +8 -0
- package/build/src/exceptions/remove_namespace_exception.d.ts.map +1 -0
- package/build/src/exceptions/remove_namespace_exception.js +8 -0
- package/build/src/exceptions/remove_namespace_exception.js.map +1 -0
- package/build/src/index.d.ts +12 -9
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +11 -8
- package/build/src/index.js.map +1 -1
- package/build/src/legacy.d.ts +8 -0
- package/build/src/legacy.d.ts.map +1 -1
- package/build/src/legacy.js +9 -0
- package/build/src/legacy.js.map +1 -1
- package/build/src/lib/uuid.d.ts +1 -1
- package/build/src/lib/uuid.js +1 -1
- package/build/src/lib/uuid.js.map +1 -1
- package/build/src/mocking/lib/History.js +8 -8
- package/build/src/mocking/lib/History.js.map +1 -1
- package/build/src/mocking/lib/HostRules.js +1 -1
- package/build/src/mocking/lib/HostRules.js.map +1 -1
- package/build/src/mocking/lib/User.js +2 -2
- package/build/src/mocking/lib/User.js.map +1 -1
- package/build/src/modeling/Bindings.d.ts +2 -2
- package/build/src/modeling/Bindings.d.ts.map +1 -1
- package/build/src/modeling/Bindings.js.map +1 -1
- package/build/src/modeling/DataDomain.d.ts +601 -0
- package/build/src/modeling/DataDomain.d.ts.map +1 -0
- package/build/src/modeling/DataDomain.js +1141 -0
- package/build/src/modeling/DataDomain.js.map +1 -0
- package/build/src/modeling/DataFormat.d.ts +42 -41
- package/build/src/modeling/DataFormat.d.ts.map +1 -1
- package/build/src/modeling/DataFormat.js +30 -131
- package/build/src/modeling/DataFormat.js.map +1 -1
- package/build/src/modeling/DomainAssociation.d.ts +281 -0
- package/build/src/modeling/DomainAssociation.d.ts.map +1 -0
- package/build/src/modeling/DomainAssociation.js +440 -0
- package/build/src/modeling/DomainAssociation.js.map +1 -0
- package/build/src/modeling/DomainElement.d.ts +33 -0
- package/build/src/modeling/DomainElement.d.ts.map +1 -0
- package/build/src/modeling/DomainElement.js +32 -0
- package/build/src/modeling/DomainElement.js.map +1 -0
- package/build/src/modeling/DomainEntity.d.ts +383 -0
- package/build/src/modeling/DomainEntity.d.ts.map +1 -0
- package/build/src/modeling/DomainEntity.js +718 -0
- package/build/src/modeling/DomainEntity.js.map +1 -0
- package/build/src/modeling/DomainFile.d.ts +25 -0
- package/build/src/modeling/DomainFile.d.ts.map +1 -0
- package/build/src/modeling/DomainFile.js +86 -0
- package/build/src/modeling/DomainFile.js.map +1 -0
- package/build/src/modeling/DomainImpactAnalysis.d.ts +60 -47
- package/build/src/modeling/DomainImpactAnalysis.d.ts.map +1 -1
- package/build/src/modeling/DomainImpactAnalysis.js +201 -132
- package/build/src/modeling/DomainImpactAnalysis.js.map +1 -1
- package/build/src/modeling/DomainModel.d.ts +226 -0
- package/build/src/modeling/DomainModel.d.ts.map +1 -0
- package/build/src/modeling/DomainModel.js +401 -0
- package/build/src/modeling/DomainModel.js.map +1 -0
- package/build/src/modeling/DomainNamespace.d.ts +268 -0
- package/build/src/modeling/DomainNamespace.d.ts.map +1 -0
- package/build/src/modeling/DomainNamespace.js +512 -0
- package/build/src/modeling/DomainNamespace.js.map +1 -0
- package/build/src/modeling/DomainProperty.d.ts +281 -0
- package/build/src/modeling/DomainProperty.d.ts.map +1 -0
- package/build/src/modeling/DomainProperty.js +560 -0
- package/build/src/modeling/DomainProperty.js.map +1 -0
- package/build/src/modeling/DomainSerialization.d.ts +40 -0
- package/build/src/modeling/DomainSerialization.d.ts.map +1 -0
- package/build/src/modeling/DomainSerialization.js +288 -0
- package/build/src/modeling/DomainSerialization.js.map +1 -0
- package/build/src/modeling/DomainVersioning.d.ts +17 -0
- package/build/src/modeling/DomainVersioning.d.ts.map +1 -0
- package/build/src/modeling/DomainVersioning.js +124 -0
- package/build/src/modeling/DomainVersioning.js.map +1 -0
- package/build/src/modeling/GraphUtils.d.ts +8 -0
- package/build/src/modeling/GraphUtils.d.ts.map +1 -0
- package/build/src/modeling/GraphUtils.js +26 -0
- package/build/src/modeling/GraphUtils.js.map +1 -0
- package/build/src/modeling/amf/ShapeGenerator.d.ts +164 -0
- package/build/src/modeling/amf/ShapeGenerator.d.ts.map +1 -0
- package/build/src/modeling/amf/ShapeGenerator.js +492 -0
- package/build/src/modeling/amf/ShapeGenerator.js.map +1 -0
- package/build/src/modeling/{DataAssociation.d.ts → legacy/DataAssociation.d.ts} +10 -5
- package/build/src/modeling/legacy/DataAssociation.d.ts.map +1 -0
- package/build/src/modeling/{DataAssociation.js → legacy/DataAssociation.js} +11 -8
- package/build/src/modeling/legacy/DataAssociation.js.map +1 -0
- package/build/src/modeling/{DataEntity.d.ts → legacy/DataEntity.d.ts} +12 -7
- package/build/src/modeling/legacy/DataEntity.d.ts.map +1 -0
- package/build/src/modeling/{DataEntity.js → legacy/DataEntity.js} +21 -20
- package/build/src/modeling/legacy/DataEntity.js.map +1 -0
- package/build/src/modeling/{DataEntityBuilder.d.ts → legacy/DataEntityBuilder.d.ts} +3 -2
- package/build/src/modeling/legacy/DataEntityBuilder.d.ts.map +1 -0
- package/build/src/modeling/{DataEntityBuilder.js → legacy/DataEntityBuilder.js} +4 -3
- package/build/src/modeling/legacy/DataEntityBuilder.js.map +1 -0
- package/build/src/modeling/legacy/DataImpactAnalysis.d.ts +298 -0
- package/build/src/modeling/legacy/DataImpactAnalysis.d.ts.map +1 -0
- package/build/src/modeling/legacy/DataImpactAnalysis.js +441 -0
- package/build/src/modeling/legacy/DataImpactAnalysis.js.map +1 -0
- package/build/src/modeling/{DataModel.d.ts → legacy/DataModel.d.ts} +6 -4
- package/build/src/modeling/legacy/DataModel.d.ts.map +1 -0
- package/build/src/modeling/{DataModel.js → legacy/DataModel.js} +9 -8
- package/build/src/modeling/legacy/DataModel.js.map +1 -0
- package/build/src/modeling/{DataNamespace.d.ts → legacy/DataNamespace.d.ts} +22 -3
- package/build/src/modeling/legacy/DataNamespace.d.ts.map +1 -0
- package/build/src/modeling/{DataNamespace.js → legacy/DataNamespace.js} +9 -5
- package/build/src/modeling/legacy/DataNamespace.js.map +1 -0
- package/build/src/modeling/{DataProperty.d.ts → legacy/DataProperty.d.ts} +13 -5
- package/build/src/modeling/legacy/DataProperty.d.ts.map +1 -0
- package/build/src/modeling/{DataProperty.js → legacy/DataProperty.js} +10 -7
- package/build/src/modeling/legacy/DataProperty.js.map +1 -0
- package/build/src/modeling/observed.d.ts +67 -0
- package/build/src/modeling/observed.d.ts.map +1 -0
- package/build/src/modeling/observed.js +230 -0
- package/build/src/modeling/observed.js.map +1 -0
- package/build/src/modeling/types.d.ts +165 -1
- package/build/src/modeling/types.d.ts.map +1 -1
- package/build/src/modeling/types.js.map +1 -1
- package/build/src/models/AuthorizationData.js +3 -3
- package/build/src/models/AuthorizationData.js.map +1 -1
- package/build/src/models/CertificateFile.js +2 -2
- package/build/src/models/CertificateFile.js.map +1 -1
- package/build/src/models/ClientCertificate.js +5 -5
- package/build/src/models/ClientCertificate.js.map +1 -1
- package/build/src/models/Environment.js +6 -6
- package/build/src/models/Environment.js.map +1 -1
- package/build/src/models/Folder.js +2 -2
- package/build/src/models/Folder.js.map +1 -1
- package/build/src/models/HostRule.js +4 -4
- package/build/src/models/HostRule.js.map +1 -1
- package/build/src/models/HttpProject.js +12 -12
- package/build/src/models/HttpProject.js.map +1 -1
- package/build/src/models/Project.d.ts.map +1 -1
- package/build/src/models/Project.js +2 -2
- package/build/src/models/Project.js.map +1 -1
- package/build/src/models/ProjectFolder.d.ts.map +1 -1
- package/build/src/models/ProjectFolder.js +6 -6
- package/build/src/models/ProjectFolder.js.map +1 -1
- package/build/src/models/ProjectRequest.d.ts.map +1 -1
- package/build/src/models/ProjectRequest.js +8 -8
- package/build/src/models/ProjectRequest.js.map +1 -1
- package/build/src/models/ProjectSchema.js +6 -6
- package/build/src/models/ProjectSchema.js.map +1 -1
- package/build/src/models/Thing.d.ts +26 -5
- package/build/src/models/Thing.d.ts.map +1 -1
- package/build/src/models/Thing.js +193 -91
- package/build/src/models/Thing.js.map +1 -1
- package/build/src/models/kinds.d.ts +31 -6
- package/build/src/models/kinds.d.ts.map +1 -1
- package/build/src/models/kinds.js +31 -6
- package/build/src/models/kinds.js.map +1 -1
- package/build/src/models/store/DataFile.d.ts +3 -1
- package/build/src/models/store/DataFile.d.ts.map +1 -1
- package/build/src/models/store/DataFile.js +4 -2
- package/build/src/models/store/DataFile.js.map +1 -1
- package/build/src/models/store/File.d.ts.map +1 -1
- package/build/src/models/store/File.js +3 -3
- package/build/src/models/store/File.js.map +1 -1
- package/build/src/models/store/Organization.js +3 -3
- package/build/src/models/store/Organization.js.map +1 -1
- package/build/src/models/store/Permission.js +7 -7
- package/build/src/models/store/Permission.js.map +1 -1
- package/build/src/models/store/UserIdentity.js +3 -3
- package/build/src/models/store/UserIdentity.js.map +1 -1
- package/build/src/models/transformers/ArcDexieTransformer.js +4 -4
- package/build/src/models/transformers/ArcDexieTransformer.js.map +1 -1
- package/build/src/models/transformers/ArcLegacyTransformer.js +3 -3
- package/build/src/models/transformers/ArcLegacyTransformer.js.map +1 -1
- package/build/src/models/transformers/ArcPouchTransformer.js +2 -2
- package/build/src/models/transformers/ArcPouchTransformer.js.map +1 -1
- package/build/src/models/transformers/PostmanV21Transformer.js +2 -2
- package/build/src/models/transformers/PostmanV21Transformer.js.map +1 -1
- package/build/src/models/transformers/PostmanV2Transformer.js +2 -2
- package/build/src/models/transformers/PostmanV2Transformer.js.map +1 -1
- package/build/src/models/types.d.ts +12 -0
- package/build/src/models/types.d.ts.map +1 -0
- package/build/src/models/types.js +2 -0
- package/build/src/models/types.js.map +1 -0
- package/build/src/patch/PatchClient.js +2 -2
- package/build/src/patch/PatchClient.js.map +1 -1
- package/build/src/runtime/store/FilesSdk.d.ts +2 -2
- package/build/src/runtime/store/FilesSdk.d.ts.map +1 -1
- package/build/src/runtime/store/FilesSdk.js +3 -3
- package/build/src/runtime/store/FilesSdk.js.map +1 -1
- package/data/models/example-generator-api.json +8 -8
- package/package.json +20 -6
- package/readme.md +1 -1
- package/src/amf/AmfShapeGenerator.ts +10 -7
- package/src/amf/AmfTypes.ts +2 -2
- package/src/amf/DataValueGenerator.ts +24 -23
- package/src/amf/models/AmfDataNode.ts +2 -2
- package/src/exceptions/attach_exception.ts +11 -0
- package/src/exceptions/detach_exception.ts +11 -0
- package/src/exceptions/remove_model_exception.ts +8 -0
- package/src/exceptions/remove_namespace_exception.ts +8 -0
- package/src/lib/uuid.ts +1 -1
- package/src/mocking/lib/History.ts +8 -8
- package/src/mocking/lib/HostRules.ts +1 -1
- package/src/mocking/lib/User.ts +2 -2
- package/src/modeling/Bindings.ts +2 -2
- package/src/modeling/DataDomain.ts +1220 -0
- package/src/modeling/DataFormat.ts +54 -163
- package/src/modeling/DomainAssociation.ts +476 -0
- package/src/modeling/DomainElement.ts +50 -0
- package/src/modeling/DomainEntity.ts +769 -0
- package/src/modeling/DomainFile.ts +94 -0
- package/src/modeling/DomainImpactAnalysis.ts +218 -144
- package/src/modeling/DomainModel.ts +421 -0
- package/src/modeling/DomainNamespace.ts +537 -0
- package/src/modeling/DomainProperty.ts +548 -0
- package/src/modeling/DomainSerialization.ts +312 -0
- package/src/modeling/DomainVersioning.ts +144 -0
- package/src/modeling/GraphUtils.ts +28 -0
- package/src/modeling/amf/ShapeGenerator.ts +552 -0
- package/src/modeling/graph.md +115 -0
- package/src/modeling/{DataAssociation.ts → legacy/DataAssociation.ts} +15 -10
- package/src/modeling/{DataEntity.ts → legacy/DataEntity.ts} +30 -25
- package/src/modeling/{DataEntityBuilder.ts → legacy/DataEntityBuilder.ts} +5 -4
- package/src/modeling/legacy/DataImpactAnalysis.ts +530 -0
- package/src/modeling/{DataModel.ts → legacy/DataModel.ts} +12 -10
- package/src/modeling/{DataNamespace.ts → legacy/DataNamespace.ts} +25 -7
- package/src/modeling/{DataProperty.ts → legacy/DataProperty.ts} +17 -9
- package/src/modeling/observed.ts +267 -0
- package/src/modeling/types.ts +174 -1
- package/src/models/AuthorizationData.ts +3 -3
- package/src/models/CertificateFile.ts +2 -2
- package/src/models/ClientCertificate.ts +5 -5
- package/src/models/Environment.ts +6 -6
- package/src/models/Folder.ts +2 -2
- package/src/models/HostRule.ts +4 -4
- package/src/models/HttpProject.ts +12 -12
- package/src/models/Project.ts +2 -2
- package/src/models/ProjectFolder.ts +6 -6
- package/src/models/ProjectRequest.ts +8 -8
- package/src/models/ProjectSchema.ts +6 -6
- package/src/models/Thing.ts +70 -5
- package/src/models/kinds.ts +32 -6
- package/src/models/store/DataFile.ts +5 -3
- package/src/models/store/File.ts +3 -3
- package/src/models/store/Organization.ts +3 -3
- package/src/models/store/Permission.ts +7 -7
- package/src/models/store/UserIdentity.ts +3 -3
- package/src/models/transformers/ArcDexieTransformer.ts +4 -4
- package/src/models/transformers/ArcLegacyTransformer.ts +3 -3
- package/src/models/transformers/ArcPouchTransformer.ts +2 -2
- package/src/models/transformers/PostmanV21Transformer.ts +2 -2
- package/src/models/transformers/PostmanV2Transformer.ts +2 -2
- package/src/models/types.ts +11 -0
- package/src/patch/PatchClient.ts +2 -2
- package/src/runtime/store/FilesSdk.ts +5 -5
- package/tests/unit/amf/data_value_generator.spec.ts +15 -15
- package/tests/unit/legacy-transformers/ARC-legacy-import.spec.ts +1 -1
- package/tests/unit/modeling/amf/shape_generator.spec.ts +1174 -0
- package/tests/unit/modeling/data_domain.spec.ts +444 -0
- package/tests/unit/modeling/data_domain_associations.spec.ts +279 -0
- package/tests/unit/modeling/data_domain_change_observers.spec.ts +681 -0
- package/tests/unit/modeling/data_domain_entities.spec.ts +449 -0
- package/tests/unit/modeling/data_domain_foreign.spec.ts +355 -0
- package/tests/unit/modeling/data_domain_models.spec.ts +658 -0
- package/tests/unit/modeling/data_domain_namespaces.spec.ts +668 -0
- package/tests/unit/modeling/data_domain_property.spec.ts +264 -0
- package/tests/unit/modeling/data_domain_serialization.spec.ts +294 -0
- package/tests/unit/modeling/domain.property.spec.ts +822 -0
- package/tests/unit/modeling/domain_asociation.spec.ts +643 -0
- package/tests/unit/modeling/domain_asociation_targets.spec.ts +350 -0
- package/tests/unit/modeling/domain_entity.spec.ts +730 -0
- package/tests/unit/modeling/domain_entity_associations.spec.ts +330 -0
- package/tests/unit/modeling/domain_entity_example_generator_json.spec.ts +988 -0
- package/tests/unit/modeling/domain_entity_example_generator_xml.spec.ts +1451 -0
- package/tests/unit/modeling/domain_entity_fields.spec.ts +113 -0
- package/tests/unit/modeling/domain_entity_generators.spec.ts +20 -0
- package/tests/unit/modeling/domain_entity_parents.spec.ts +291 -0
- package/tests/unit/modeling/domain_entity_properties.spec.ts +305 -0
- package/tests/unit/modeling/{data_file.spec.ts → domain_file.spec.ts} +29 -85
- package/tests/unit/modeling/domain_impact_analysis.spec.ts +452 -0
- package/tests/unit/modeling/domain_model.spec.ts +568 -0
- package/tests/unit/modeling/domain_model_entities.spec.ts +408 -0
- package/tests/unit/modeling/domain_namespace.spec.ts +514 -0
- package/tests/unit/modeling/domain_namespace_models.spec.ts +324 -0
- package/tests/unit/modeling/domain_namespace_namespaces.spec.ts +404 -0
- package/tests/unit/modeling/domain_versioning.spec.ts +140 -0
- package/tests/unit/{amf → modeling/legacy}/amf_shape_generator.spec.ts +11 -11
- package/tests/unit/modeling/{data_association.spec.ts → legacy/data_association.spec.ts} +3 -11
- package/tests/unit/modeling/{data_entity.spec.ts → legacy/data_entity.spec.ts} +10 -8
- package/tests/unit/modeling/{data_entity_generator_json.spec.ts → legacy/data_entity_generator_json.spec.ts} +1 -1
- package/tests/unit/modeling/{data_entity_generator_xml.spec.ts → legacy/data_entity_generator_xml.spec.ts} +1 -1
- package/tests/unit/modeling/{data_model.spec.ts → legacy/data_model.spec.ts} +3 -3
- package/tests/unit/modeling/{data_namespace.spec.ts → legacy/data_namespace.spec.ts} +3 -10
- package/tests/unit/modeling/{data_property.spec.ts → legacy/data_property.spec.ts} +3 -6
- package/tests/unit/modeling/{impact_analysis.spec.ts → legacy/impact_analysis.spec.ts} +9 -9
- package/tests/unit/models/File/new.spec.ts +1 -1
- package/tests/unit/models/HttpProject.spec.ts +3 -3
- package/tests/unit/runtime/proxy/HttpProjectProxy.spec.ts +8 -8
- package/tsconfig.node.json +35 -0
- package/build/src/modeling/DataAssociation.d.ts.map +0 -1
- package/build/src/modeling/DataAssociation.js.map +0 -1
- package/build/src/modeling/DataEntity.d.ts.map +0 -1
- package/build/src/modeling/DataEntity.js.map +0 -1
- package/build/src/modeling/DataEntityBuilder.d.ts.map +0 -1
- package/build/src/modeling/DataEntityBuilder.js.map +0 -1
- package/build/src/modeling/DataModel.d.ts.map +0 -1
- package/build/src/modeling/DataModel.js.map +0 -1
- package/build/src/modeling/DataNamespace.d.ts.map +0 -1
- package/build/src/modeling/DataNamespace.js.map +0 -1
- package/build/src/modeling/DataProperty.d.ts.map +0 -1
- package/build/src/modeling/DataProperty.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { DomainPropertyType } from '../modeling/DataFormat.js';
|
|
2
|
+
export declare const noValue: unique symbol;
|
|
3
3
|
/**
|
|
4
4
|
* A class to be used for generating values from pre-defined functions.
|
|
5
5
|
* This is used to provide default values for data properties based on specified functions.
|
|
@@ -14,45 +14,45 @@ export declare class DataValueGenerator {
|
|
|
14
14
|
* A symbol representing the absence of a value.
|
|
15
15
|
* Used as a return value when a function cannot generate a value of the requested type.
|
|
16
16
|
*/
|
|
17
|
-
static readonly
|
|
17
|
+
static readonly noValue: symbol;
|
|
18
18
|
/**
|
|
19
19
|
* Generates a value based on the provided function name and data type.
|
|
20
20
|
* @param fn The name of the function to use for value generation (e.g., 'random', 'uuid-v4', 'incremental').
|
|
21
21
|
* @param type The data type of the value to generate (e.g., 'string', 'number', 'date', 'time', 'datetime').
|
|
22
|
-
* @returns The generated value, or the `
|
|
22
|
+
* @returns The generated value, or the `noValue` symbol if the function or type is not supported.
|
|
23
23
|
*/
|
|
24
|
-
generate(fn: string, type:
|
|
24
|
+
generate(fn: string, type: DomainPropertyType): string | typeof noValue;
|
|
25
25
|
/**
|
|
26
26
|
* Generates a string value based on the function name.
|
|
27
27
|
* @param fn The name of the string generation function.
|
|
28
|
-
* @returns The generated string value, or `
|
|
28
|
+
* @returns The generated string value, or `noValue` if the function is not supported.
|
|
29
29
|
*/
|
|
30
|
-
protected generateString(fn: string): string | typeof
|
|
30
|
+
protected generateString(fn: string): string | typeof noValue;
|
|
31
31
|
/**
|
|
32
32
|
* Generates a number value based on the function name.
|
|
33
33
|
* @param fn The name of the number generation function.
|
|
34
|
-
* @returns The generated number value (as a string), or `
|
|
34
|
+
* @returns The generated number value (as a string), or `noValue` if the function is not supported.
|
|
35
35
|
*/
|
|
36
|
-
protected generateNumber(fn: string): string | typeof
|
|
36
|
+
protected generateNumber(fn: string): string | typeof noValue;
|
|
37
37
|
/**
|
|
38
38
|
* Generates a date value based on the function name.
|
|
39
39
|
* @param fn The name of the date generation function.
|
|
40
40
|
* @returns The generated date value (as a string in YYYY-MM-DD format),
|
|
41
|
-
* or `
|
|
41
|
+
* or `noValue` if the function is not supported.
|
|
42
42
|
*/
|
|
43
|
-
protected generateDate(fn: string): string | typeof
|
|
43
|
+
protected generateDate(fn: string): string | typeof noValue;
|
|
44
44
|
/**
|
|
45
45
|
* Generates a time value based on the function name.
|
|
46
46
|
* @param fn The name of the time generation function.
|
|
47
|
-
* @returns The generated time value (as a string in HH:mm:ss format), or `
|
|
47
|
+
* @returns The generated time value (as a string in HH:mm:ss format), or `noValue` if the function is not supported.
|
|
48
48
|
*/
|
|
49
|
-
protected generateTime(fn: string): string | typeof
|
|
49
|
+
protected generateTime(fn: string): string | typeof noValue;
|
|
50
50
|
/**
|
|
51
51
|
* Generates a datetime value based on the function name.
|
|
52
52
|
* @param fn The name of the datetime generation function.
|
|
53
53
|
* @returns The generated datetime value (as a string in YYYY-MM-DDTHH:mm:ss format),
|
|
54
|
-
* or `
|
|
54
|
+
* or `noValue` if the function is not supported.
|
|
55
55
|
*/
|
|
56
|
-
protected generateDateTime(fn: string): string | typeof
|
|
56
|
+
protected generateDateTime(fn: string): string | typeof noValue;
|
|
57
57
|
}
|
|
58
58
|
//# sourceMappingURL=DataValueGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataValueGenerator.d.ts","sourceRoot":"","sources":["../../../src/amf/DataValueGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DataValueGenerator.d.ts","sourceRoot":"","sources":["../../../src/amf/DataValueGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,eAAO,MAAM,OAAO,eAAoB,CAAA;AAExC;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B;;;OAGG;IACH,SAAS,CAAC,SAAS,SAAI;IACvB;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,SAAU;IAEjC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,MAAM,GAAG,OAAO,OAAO;IAmBvE;;;;OAIG;IACH,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,OAAO;IAY7D;;;;OAIG;IACH,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,OAAO;IAS7D;;;;;OAKG;IACH,SAAS,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,OAAO;IAa3D;;;;OAIG;IACH,SAAS,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,OAAO;IAa3D;;;;;OAKG;IACH,SAAS,CAAC,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,OAAO;CAehE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { nanoid } from 'nanoid';
|
|
1
2
|
import uuidV4 from '../lib/uuid.js';
|
|
2
|
-
|
|
3
|
-
export const novalue = Symbol('novalue');
|
|
3
|
+
export const noValue = Symbol('noValue');
|
|
4
4
|
/**
|
|
5
5
|
* A class to be used for generating values from pre-defined functions.
|
|
6
6
|
* This is used to provide default values for data properties based on specified functions.
|
|
@@ -15,12 +15,12 @@ export class DataValueGenerator {
|
|
|
15
15
|
* A symbol representing the absence of a value.
|
|
16
16
|
* Used as a return value when a function cannot generate a value of the requested type.
|
|
17
17
|
*/
|
|
18
|
-
static
|
|
18
|
+
static noValue = noValue;
|
|
19
19
|
/**
|
|
20
20
|
* Generates a value based on the provided function name and data type.
|
|
21
21
|
* @param fn The name of the function to use for value generation (e.g., 'random', 'uuid-v4', 'incremental').
|
|
22
22
|
* @param type The data type of the value to generate (e.g., 'string', 'number', 'date', 'time', 'datetime').
|
|
23
|
-
* @returns The generated value, or the `
|
|
23
|
+
* @returns The generated value, or the `noValue` symbol if the function or type is not supported.
|
|
24
24
|
*/
|
|
25
25
|
generate(fn, type) {
|
|
26
26
|
if (type === 'string') {
|
|
@@ -38,41 +38,42 @@ export class DataValueGenerator {
|
|
|
38
38
|
if (type === 'datetime') {
|
|
39
39
|
return this.generateDateTime(fn);
|
|
40
40
|
}
|
|
41
|
-
return
|
|
41
|
+
return noValue;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Generates a string value based on the function name.
|
|
45
45
|
* @param fn The name of the string generation function.
|
|
46
|
-
* @returns The generated string value, or `
|
|
46
|
+
* @returns The generated string value, or `noValue` if the function is not supported.
|
|
47
47
|
*/
|
|
48
48
|
generateString(fn) {
|
|
49
49
|
switch (fn) {
|
|
50
50
|
case 'random':
|
|
51
|
-
|
|
51
|
+
// TODO: we need more settings controlling the random string generation.
|
|
52
|
+
return nanoid(8);
|
|
52
53
|
case 'uuid-v4':
|
|
53
54
|
return uuidV4();
|
|
54
55
|
default:
|
|
55
|
-
return
|
|
56
|
+
return noValue;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
60
|
* Generates a number value based on the function name.
|
|
60
61
|
* @param fn The name of the number generation function.
|
|
61
|
-
* @returns The generated number value (as a string), or `
|
|
62
|
+
* @returns The generated number value (as a string), or `noValue` if the function is not supported.
|
|
62
63
|
*/
|
|
63
64
|
generateNumber(fn) {
|
|
64
65
|
switch (fn) {
|
|
65
66
|
case 'incremental':
|
|
66
67
|
return `${this.increment++}`;
|
|
67
68
|
default:
|
|
68
|
-
return
|
|
69
|
+
return noValue;
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
73
|
* Generates a date value based on the function name.
|
|
73
74
|
* @param fn The name of the date generation function.
|
|
74
75
|
* @returns The generated date value (as a string in YYYY-MM-DD format),
|
|
75
|
-
* or `
|
|
76
|
+
* or `noValue` if the function is not supported.
|
|
76
77
|
*/
|
|
77
78
|
generateDate(fn) {
|
|
78
79
|
if (fn === 'now') {
|
|
@@ -84,12 +85,12 @@ export class DataValueGenerator {
|
|
|
84
85
|
const day = `${d.getDate()}`.padStart(2, '0');
|
|
85
86
|
return `${year}-${month}-${day}`;
|
|
86
87
|
}
|
|
87
|
-
return
|
|
88
|
+
return noValue;
|
|
88
89
|
}
|
|
89
90
|
/**
|
|
90
91
|
* Generates a time value based on the function name.
|
|
91
92
|
* @param fn The name of the time generation function.
|
|
92
|
-
* @returns The generated time value (as a string in HH:mm:ss format), or `
|
|
93
|
+
* @returns The generated time value (as a string in HH:mm:ss format), or `noValue` if the function is not supported.
|
|
93
94
|
*/
|
|
94
95
|
generateTime(fn) {
|
|
95
96
|
if (fn === 'now') {
|
|
@@ -101,13 +102,13 @@ export class DataValueGenerator {
|
|
|
101
102
|
const second = `${d.getSeconds()}`.padStart(2, '0');
|
|
102
103
|
return `${hour}:${minute}:${second}`;
|
|
103
104
|
}
|
|
104
|
-
return
|
|
105
|
+
return noValue;
|
|
105
106
|
}
|
|
106
107
|
/**
|
|
107
108
|
* Generates a datetime value based on the function name.
|
|
108
109
|
* @param fn The name of the datetime generation function.
|
|
109
110
|
* @returns The generated datetime value (as a string in YYYY-MM-DDTHH:mm:ss format),
|
|
110
|
-
* or `
|
|
111
|
+
* or `noValue` if the function is not supported.
|
|
111
112
|
*/
|
|
112
113
|
generateDateTime(fn) {
|
|
113
114
|
if (fn === 'now') {
|
|
@@ -122,7 +123,7 @@ export class DataValueGenerator {
|
|
|
122
123
|
const second = `${d.getSeconds()}`.padStart(2, '0');
|
|
123
124
|
return `${year}-${month}-${day}T${hour}:${minute}:${second}`;
|
|
124
125
|
}
|
|
125
|
-
return
|
|
126
|
+
return noValue;
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
//# sourceMappingURL=DataValueGenerator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataValueGenerator.js","sourceRoot":"","sources":["../../../src/amf/DataValueGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"DataValueGenerator.js","sourceRoot":"","sources":["../../../src/amf/DataValueGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,MAAM,MAAM,gBAAgB,CAAA;AAGnC,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;AAExC;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAC7B;;;OAGG;IACO,SAAS,GAAG,CAAC,CAAA;IACvB;;;OAGG;IACH,MAAM,CAAU,OAAO,GAAG,OAAO,CAAA;IAEjC;;;;;OAKG;IACH,QAAQ,CAAC,EAAU,EAAE,IAAwB;QAC3C,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;YACtB,OAAO,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAA;QAChC,CAAC;QACD,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;YACtB,OAAO,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAA;QAChC,CAAC;QACD,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;YACpB,OAAO,IAAI,CA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,MAAM,GAAG,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;YACnD,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;YACnD,OAAO,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG,IAAI,IAAI,IAAI,MAAM,IAAI,MAAM,EAAE,CAAA;QAC9D,CAAC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC","sourcesContent":["import { nanoid } from 'nanoid'\nimport uuidV4 from '../lib/uuid.js'\nimport { DomainPropertyType } from '../modeling/DataFormat.js'\n\nexport const noValue = Symbol('noValue')\n\n/**\n * A class to be used for generating values from pre-defined functions.\n * This is used to provide default values for data properties based on specified functions.\n */\nexport class DataValueGenerator {\n /**\n * The current value for the `number.incremental` function.\n * This counter is incremented each time an incremental number is generated.\n */\n protected increment = 0\n /**\n * A symbol representing the absence of a value.\n * Used as a return value when a function cannot generate a value of the requested type.\n */\n static readonly noValue = noValue\n\n /**\n * Generates a value based on the provided function name and data type.\n * @param fn The name of the function to use for value generation (e.g., 'random', 'uuid-v4', 'incremental').\n * @param type The data type of the value to generate (e.g., 'string', 'number', 'date', 'time', 'datetime').\n * @returns The generated value, or the `noValue` symbol if the function or type is not supported.\n */\n generate(fn: string, type: DomainPropertyType): string | typeof noValue {\n if (type === 'string') {\n return this.generateString(fn)\n }\n if (type === 'number') {\n return this.generateNumber(fn)\n }\n if (type === 'date') {\n return this.generateDate(fn)\n }\n if (type === 'time') {\n return this.generateTime(fn)\n }\n if (type === 'datetime') {\n return this.generateDateTime(fn)\n }\n return noValue\n }\n\n /**\n * Generates a string value based on the function name.\n * @param fn The name of the string generation function.\n * @returns The generated string value, or `noValue` if the function is not supported.\n */\n protected generateString(fn: string): string | typeof noValue {\n switch (fn) {\n case 'random':\n // TODO: we need more settings controlling the random string generation.\n return nanoid(8)\n case 'uuid-v4':\n return uuidV4()\n default:\n return noValue\n }\n }\n\n /**\n * Generates a number value based on the function name.\n * @param fn The name of the number generation function.\n * @returns The generated number value (as a string), or `noValue` if the function is not supported.\n */\n protected generateNumber(fn: string): string | typeof noValue {\n switch (fn) {\n case 'incremental':\n return `${this.increment++}`\n default:\n return noValue\n }\n }\n\n /**\n * Generates a date value based on the function name.\n * @param fn The name of the date generation function.\n * @returns The generated date value (as a string in YYYY-MM-DD format),\n * or `noValue` if the function is not supported.\n */\n protected generateDate(fn: string): string | typeof noValue {\n if (fn === 'now') {\n // Returns YYYY-MM-DD\n // @TODO: Replace with Temporal when widely available.\n const d = new Date()\n const year = d.getFullYear()\n const month = `${d.getMonth() + 1}`.padStart(2, '0')\n const day = `${d.getDate()}`.padStart(2, '0')\n return `${year}-${month}-${day}`\n }\n return noValue\n }\n\n /**\n * Generates a time value based on the function name.\n * @param fn The name of the time generation function.\n * @returns The generated time value (as a string in HH:mm:ss format), or `noValue` if the function is not supported.\n */\n protected generateTime(fn: string): string | typeof noValue {\n if (fn === 'now') {\n // Returns HH:mm:ss\n // @TODO: Replace with Temporal when widely available.\n const d = new Date()\n const hour = `${d.getHours()}`.padStart(2, '0')\n const minute = `${d.getMinutes()}`.padStart(2, '0')\n const second = `${d.getSeconds()}`.padStart(2, '0')\n return `${hour}:${minute}:${second}`\n }\n return noValue\n }\n\n /**\n * Generates a datetime value based on the function name.\n * @param fn The name of the datetime generation function.\n * @returns The generated datetime value (as a string in YYYY-MM-DDTHH:mm:ss format),\n * or `noValue` if the function is not supported.\n */\n protected generateDateTime(fn: string): string | typeof noValue {\n if (fn === 'now') {\n // Returns YYYY-MM-DDTHH:mm:ss\n // @TODO: Replace with Temporal when widely available.\n const d = new Date()\n const year = d.getFullYear()\n const month = `${d.getMonth() + 1}`.padStart(2, '0')\n const day = `${d.getDate()}`.padStart(2, '0')\n const hour = `${d.getHours()}`.padStart(2, '0')\n const minute = `${d.getMinutes()}`.padStart(2, '0')\n const second = `${d.getSeconds()}`.padStart(2, '0')\n return `${year}-${month}-${day}T${hour}:${minute}:${second}`\n }\n return noValue\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmfDataNode.d.ts","sourceRoot":"","sources":["../../../../src/amf/models/AmfDataNode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,OAAO,EAGL,iBAAiB,EAGlB,MAAM,0BAA0B,CAAA;AAEjC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzD;;GAEG;AACH,qBAAa,WAAW;IACtB,EAAE,
|
|
1
|
+
{"version":3,"file":"AmfDataNode.d.ts","sourceRoot":"","sources":["../../../../src/amf/models/AmfDataNode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,OAAO,EAGL,iBAAiB,EAGlB,MAAM,0BAA0B,CAAA;AAEjC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzD;;GAEG;AACH,qBAAa,WAAW;IACtB,EAAE,SAAW;IAEb;;;OAGG;IACH,KAAK,EAAE,MAAM,EAAE,CAAA;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAExC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,EAAE,CAAA;IAEvB,sBAAsB,EAAE,wBAAwB,EAAE,CAAK;IAEvD,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW;gBAO3C,IAAI,EAAE,iBAAiB,GAAG,aAAa;IA8CnD,MAAM,IAAI,iBAAiB;IAoC3B;;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAUlC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAa9B;;;;;;OAMG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI;IAUnD;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAUnC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { nanoid } from 'nanoid';
|
|
2
2
|
import { IAmfArrayNodeTypes, IAmfObjectNodeTypes, IAmfScalarNodeTypes } from '../AmfTypes.js';
|
|
3
3
|
import { AmfNamespace } from '../definitions/Namespace.js';
|
|
4
4
|
/**
|
|
5
5
|
* A class that manipulates the AMF's DataNode node.
|
|
6
6
|
*/
|
|
7
7
|
export class AmfDataNode {
|
|
8
|
-
id =
|
|
8
|
+
id = nanoid();
|
|
9
9
|
/**
|
|
10
10
|
* AMF domain types.
|
|
11
11
|
* This is set in the constructor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmfDataNode.js","sourceRoot":"","sources":["../../../../src/amf/models/AmfDataNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAClC,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAW1D;;GAEG;AACH,MAAM,OAAO,WAAW;IACtB,EAAE,GAAG,EAAE,EAAE,CAAA;IAET;;;OAGG;IACH,KAAK,CAAU;IAEf;;OAEG;IACH,IAAI,CAAS;IAEb;;OAEG;IACH,UAAU,CAA8B;IAExC;;OAEG;IACH,KAAK,CAAS;IAEd;;OAEG;IACH,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AW,CAAC,IAAY,EAAE,KAAkB;QAC1C,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YACpE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAA;QACvC,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAA;QACtB,CAAC;QACD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,KAAK,CAAA;IAC/B,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,IAAY;QACzB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YACpE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAA;QACvC,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,OAAM;QACR,CAAC;QACD,gEAAgE;QAChE,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;IAC9B,CAAC;CACF","sourcesContent":["import v4 from '../../lib/uuid.js'\nimport { IAmfArrayNodeTypes, IAmfObjectNodeTypes, IAmfScalarNodeTypes } from '../AmfTypes.js'\nimport { IApiCustomDomainProperty } from '../definitions/Base.js'\nimport { AmfNamespace } from '../definitions/Namespace.js'\nimport {\n IApiArrayNode,\n IApiDataNode,\n IApiDataNodeUnion,\n IApiObjectNode,\n IApiScalarNode,\n} from '../definitions/Shapes.js'\n\nexport type IDataNodeInit = 'scalar' | 'object' | 'array'\n\n/**\n * A class that manipulates the AMF's DataNode node.\n */\nexport class AmfDataNode {\n id = v4()\n\n /**\n * AMF domain types.\n * This is set in the constructor\n */\n types: string[]\n\n /**\n * The name of this data node.\n */\n name?: string\n\n /**\n * Set when the object node type\n */\n properties?: Record<string, AmfDataNode>\n\n /**\n * Scalar type value. Always a string.\n */\n value?: string\n\n /**\n * Scalar type value data type.\n */\n dataType?: string\n\n /**\n * Set when the type is array.\n */\n members?: AmfDataNode[]\n\n customDomainProperties: IApiCustomDomainProperty[] = []\n\n static scalar(value: string, type: string): AmfDataNode {\n const result = new AmfDataNode('scalar')\n result.value = value\n result.dataType = type\n return result\n }\n\n constructor(init: IApiDataNodeUnion | IDataNodeInit) {\n if (typeof init === 'string') {\n if (init === 'scalar') {\n this.types = IAmfScalarNodeTypes\n } else if (init === 'array') {\n this.types = IAmfArrayNodeTypes\n } else if (init === 'object') {\n this.types = IAmfObjectNodeTypes\n } else {\n throw new Error(`Invalid data node init option: ${init}`)\n }\n return\n }\n if (!init) {\n throw new Error(`Expected an initialization option.`)\n }\n const union = init as IApiDataNodeUnion\n const { id, types, customDomainProperties } = union\n this.id = id\n this.types = types\n this.customDomainProperties = customDomainProperties\n if (types.includes(AmfNamespace.aml.vocabularies.data.Scalar)) {\n const typed = union as IApiScalarNode\n this.value = typed.value\n this.dataType = typed.dataType\n } else if (types.includes(AmfNamespace.aml.vocabularies.data.Object)) {\n const typed = union as IApiObjectNode\n const props: Record<string, AmfDataNode> = {}\n this.properties = props\n Object.keys(typed.properties).forEach((key) => {\n const instance = new AmfDataNode(typed.properties[key])\n props[key] = instance\n })\n } else if (types.includes(AmfNamespace.aml.vocabularies.data.Array)) {\n const typed = union as IApiArrayNode\n const members: AmfDataNode[] = []\n this.members = members\n if (Array.isArray(typed.members)) {\n typed.members.forEach((member) => {\n const instance = new AmfDataNode(member)\n members.push(instance)\n })\n }\n }\n }\n\n toJSON(): IApiDataNodeUnion {\n const { id, customDomainProperties, types, name } = this\n const result: IApiDataNode = {\n id,\n types,\n customDomainProperties,\n }\n if (name) {\n result.name = name\n }\n\n if (types.includes(AmfNamespace.aml.vocabularies.data.Scalar)) {\n const typed = result as IApiScalarNode\n typed.dataType = this.dataType\n typed.value = this.value\n } else if (types.includes(AmfNamespace.aml.vocabularies.data.Object)) {\n const typed = result as IApiObjectNode\n typed.properties = {}\n const props = this.properties\n if (props) {\n Object.keys(props).forEach((key) => {\n typed.properties[key] = props[key].toJSON()\n })\n }\n } else if (types.includes(AmfNamespace.aml.vocabularies.data.Array)) {\n const typed = result as IApiArrayNode\n typed.members = []\n if (this.members) {\n this.members.forEach((member) => {\n typed.members.push(member.toJSON())\n })\n }\n }\n return result\n }\n\n /**\n * Adds a member to the list of members.\n * It throws when this is not an array node.\n *\n * @param init The member to add.\n */\n addMember(init: AmfDataNode): void {\n if (!this.types.includes(AmfNamespace.aml.vocabularies.data.Array)) {\n throw new Error(`Not an ArrayNode.`)\n }\n if (!this.members) {\n this.members = []\n }\n this.members.push(init)\n }\n\n /**\n * Removes a member from the list of members.\n * It throws when this is not an array node.\n *\n * @param id The domain id of the member to remove.\n */\n removeMember(id: string): void {\n if (!this.types.includes(AmfNamespace.aml.vocabularies.data.Array)) {\n throw new Error(`Not an ArrayNode.`)\n }\n if (!this.members) {\n return\n }\n const index = this.members.findIndex((i) => i.id === id)\n if (index >= 0) {\n this.members.splice(index, 1)\n }\n }\n\n /**\n * Adds a property to the ObjectNode.\n * It throws when this is not an object node.\n *\n * @param name The name of the property.\n * @param value The instance of the DataNode to set.\n */\n addProperty(name: string, value: AmfDataNode): void {\n if (!this.types.includes(AmfNamespace.aml.vocabularies.data.Object)) {\n throw new Error(`Not an ObjectNode.`)\n }\n if (!this.properties) {\n this.properties = {}\n }\n this.properties[name] = value\n }\n\n /**\n * Deletes a property by name.\n *\n * @param name The name of the property to delete.\n */\n removeProperty(name: string): void {\n if (!this.types.includes(AmfNamespace.aml.vocabularies.data.Object)) {\n throw new Error(`Not an ObjectNode.`)\n }\n if (!this.properties) {\n return\n }\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this.properties[name]\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"AmfDataNode.js","sourceRoot":"","sources":["../../../../src/amf/models/Am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{ IAmfArrayNodeTypes, IAmfObjectNodeTypes, IAmfScalarNodeTypes } from '../AmfTypes.js'\nimport { IApiCustomDomainProperty } from '../definitions/Base.js'\nimport { AmfNamespace } from '../definitions/Namespace.js'\nimport {\n IApiArrayNode,\n IApiDataNode,\n IApiDataNodeUnion,\n IApiObjectNode,\n IApiScalarNode,\n} from '../definitions/Shapes.js'\n\nexport type IDataNodeInit = 'scalar' | 'object' | 'array'\n\n/**\n * A class that manipulates the AMF's DataNode node.\n */\nexport class AmfDataNode {\n id = nanoid()\n\n /**\n * AMF domain types.\n * This is set in the constructor\n */\n types: string[]\n\n /**\n * The name of this data node.\n */\n name?: string\n\n /**\n * Set when the object node type\n */\n properties?: Record<string, AmfDataNode>\n\n /**\n * Scalar type value. Always a string.\n */\n value?: string\n\n /**\n * Scalar type value data type.\n */\n dataType?: string\n\n /**\n * Set when the type is array.\n */\n members?: AmfDataNode[]\n\n customDomainProperties: IApiCustomDomainProperty[] = []\n\n static scalar(value: string, type: string): AmfDataNode {\n const result = new AmfDataNode('scalar')\n result.value = value\n result.dataType = type\n return result\n }\n\n constructor(init: IApiDataNodeUnion | IDataNodeInit) {\n if (typeof init === 'string') {\n if (init === 'scalar') {\n this.types = IAmfScalarNodeTypes\n } else if (init === 'array') {\n this.types = IAmfArrayNodeTypes\n } else if (init === 'object') {\n this.types = IAmfObjectNodeTypes\n } else {\n throw new Error(`Invalid data node init option: ${init}`)\n }\n return\n }\n if (!init) {\n throw new Error(`Expected an initialization option.`)\n }\n const union = init as IApiDataNodeUnion\n const { id, types, customDomainProperties } = union\n this.id = id\n this.types = types\n this.customDomainProperties = customDomainProperties\n if (types.includes(AmfNamespace.aml.vocabularies.data.Scalar)) {\n const typed = union as IApiScalarNode\n this.value = typed.value\n this.dataType = typed.dataType\n } else if (types.includes(AmfNamespace.aml.vocabularies.data.Object)) {\n const typed = union as IApiObjectNode\n const props: Record<string, AmfDataNode> = {}\n this.properties = props\n Object.keys(typed.properties).forEach((key) => {\n const instance = new AmfDataNode(typed.properties[key])\n props[key] = instance\n })\n } else if (types.includes(AmfNamespace.aml.vocabularies.data.Array)) {\n const typed = union as IApiArrayNode\n const members: AmfDataNode[] = []\n this.members = members\n if (Array.isArray(typed.members)) {\n typed.members.forEach((member) => {\n const instance = new AmfDataNode(member)\n members.push(instance)\n })\n }\n }\n }\n\n toJSON(): IApiDataNodeUnion {\n const { id, customDomainProperties, types, name } = this\n const result: IApiDataNode = {\n id,\n types,\n customDomainProperties,\n }\n if (name) {\n result.name = name\n }\n\n if (types.includes(AmfNamespace.aml.vocabularies.data.Scalar)) {\n const typed = result as IApiScalarNode\n typed.dataType = this.dataType\n typed.value = this.value\n } else if (types.includes(AmfNamespace.aml.vocabularies.data.Object)) {\n const typed = result as IApiObjectNode\n typed.properties = {}\n const props = this.properties\n if (props) {\n Object.keys(props).forEach((key) => {\n typed.properties[key] = props[key].toJSON()\n })\n }\n } else if (types.includes(AmfNamespace.aml.vocabularies.data.Array)) {\n const typed = result as IApiArrayNode\n typed.members = []\n if (this.members) {\n this.members.forEach((member) => {\n typed.members.push(member.toJSON())\n })\n }\n }\n return result\n }\n\n /**\n * Adds a member to the list of members.\n * It throws when this is not an array node.\n *\n * @param init The member to add.\n */\n addMember(init: AmfDataNode): void {\n if (!this.types.includes(AmfNamespace.aml.vocabularies.data.Array)) {\n throw new Error(`Not an ArrayNode.`)\n }\n if (!this.members) {\n this.members = []\n }\n this.members.push(init)\n }\n\n /**\n * Removes a member from the list of members.\n * It throws when this is not an array node.\n *\n * @param id The domain id of the member to remove.\n */\n removeMember(id: string): void {\n if (!this.types.includes(AmfNamespace.aml.vocabularies.data.Array)) {\n throw new Error(`Not an ArrayNode.`)\n }\n if (!this.members) {\n return\n }\n const index = this.members.findIndex((i) => i.id === id)\n if (index >= 0) {\n this.members.splice(index, 1)\n }\n }\n\n /**\n * Adds a property to the ObjectNode.\n * It throws when this is not an object node.\n *\n * @param name The name of the property.\n * @param value The instance of the DataNode to set.\n */\n addProperty(name: string, value: AmfDataNode): void {\n if (!this.types.includes(AmfNamespace.aml.vocabularies.data.Object)) {\n throw new Error(`Not an ObjectNode.`)\n }\n if (!this.properties) {\n this.properties = {}\n }\n this.properties[name] = value\n }\n\n /**\n * Deletes a property by name.\n *\n * @param name The name of the property to delete.\n */\n removeProperty(name: string): void {\n if (!this.types.includes(AmfNamespace.aml.vocabularies.data.Object)) {\n throw new Error(`Not an ObjectNode.`)\n }\n if (!this.properties) {\n return\n }\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this.properties[name]\n }\n}\n"]}
|
package/build/src/browser.d.ts
CHANGED
|
@@ -54,16 +54,20 @@ export { IUserIdentity, Kind as UserIdentityKind, UserIdentity } from './models/
|
|
|
54
54
|
export { IOrganization, Kind as OrganizationKind, Organization, UserOrganizationGrantType, } from './models/store/Organization.js';
|
|
55
55
|
export { IModification } from './models/store/Modification.js';
|
|
56
56
|
export { IDeletion } from './models/store/Deletion.js';
|
|
57
|
-
export { DataAssociation, IDataAssociation } from './modeling/DataAssociation.js';
|
|
58
|
-
export { DataEntity, IDataEntity } from './modeling/DataEntity.js';
|
|
59
|
-
export { DataFile, IDataFile } from './models/store/DataFile.js';
|
|
60
|
-
export { DataModel, IDataModel } from './modeling/DataModel.js';
|
|
61
|
-
export { DataNamespace, IDataNamespace, DataItem, IDataItem } from './modeling/DataNamespace.js';
|
|
62
|
-
export { DataProperty, IDataProperty, DataPropertySchema, SchemaDefaultValue } from './modeling/DataProperty.js';
|
|
63
57
|
export * as DataFormat from './modeling/DataFormat.js';
|
|
64
|
-
export { PropertyBinding, PropertyProtobufBindings, PropertyWebBindings } from './modeling/Bindings.js';
|
|
65
|
-
export * from './modeling/DomainImpactAnalysis.js';
|
|
58
|
+
export type { PropertyBinding, PropertyProtobufBindings, PropertyWebBindings, AssociationBinding, AssociationBindings, AssociationWebBindings, PropertyBindings, } from './modeling/Bindings.js';
|
|
66
59
|
export * from './modeling/types.js';
|
|
60
|
+
export { DataDomain, DataDomainSchema } from './modeling/DataDomain.js';
|
|
61
|
+
export { DomainNamespace, type DomainNamespaceSchema } from './modeling/DomainNamespace.js';
|
|
62
|
+
export { DomainModel, type DomainModelSchema } from './modeling/DomainModel.js';
|
|
63
|
+
export { DomainEntity, type DomainEntitySchema } from './modeling/DomainEntity.js';
|
|
64
|
+
export { DomainProperty, type DomainPropertySchema } from './modeling/DomainProperty.js';
|
|
65
|
+
export { DomainAssociation, type DomainAssociationSchema } from './modeling/DomainAssociation.js';
|
|
66
|
+
export * from './modeling/DomainImpactAnalysis.js';
|
|
67
|
+
export * from './modeling/DomainSerialization.js';
|
|
68
|
+
export * from './modeling/DomainVersioning.js';
|
|
69
|
+
export { ShapeGenerator } from './modeling/amf/ShapeGenerator.js';
|
|
70
|
+
export { DomainFile, IDomainFile } from './modeling/DomainFile.js';
|
|
67
71
|
export { AmfNamespace } from './amf/definitions/Namespace.js';
|
|
68
72
|
export * as ApiDefinitions from './amf/definitions/Api.js';
|
|
69
73
|
export * as AmfDefinitions from './amf/definitions/Amf.js';
|
|
@@ -73,7 +77,6 @@ export { ApiExampleGenerator } from './amf/ApiExampleGenerator.js';
|
|
|
73
77
|
export { ApiMonacoSchemaGenerator, IMonacoArrayProperty, IMonacoObjectProperty, IMonacoProperty, IMonacoScalarProperty, IMonacoSchema, } from './amf/ApiMonacoSchemaGenerator.js';
|
|
74
78
|
export { ApiSchemaValues, IApiSchemaReadOptions } from './amf/ApiSchemaValues.js';
|
|
75
79
|
export { ApiSchemaGenerator, ISchemaExample } from './amf/ApiSchemaGenerator.js';
|
|
76
|
-
export { AmfShapeGenerator } from './amf/AmfShapeGenerator.js';
|
|
77
80
|
export { AmfSerializer } from './amf/AmfSerializer.js';
|
|
78
81
|
export { AmfMixin, ServersQueryOptions } from './amf/AmfMixin.js';
|
|
79
82
|
export * as AmfTypes from './amf/AmfTypes.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/browser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E,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAK1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,uDAAuD,CAAA;AACpG,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAA;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAA;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAK3D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAA;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;AACnF,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AAC/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAA"}
|
package/build/src/browser.js
CHANGED
|
@@ -54,15 +54,19 @@ export { Permission, Kind as PermissionKind, } from './models/store/Permission.j
|
|
|
54
54
|
export { Kind as UserKind } from './models/store/User.js';
|
|
55
55
|
export { Kind as UserIdentityKind, UserIdentity } from './models/store/UserIdentity.js';
|
|
56
56
|
export { Kind as OrganizationKind, Organization, } from './models/store/Organization.js';
|
|
57
|
-
export { DataAssociation } from './modeling/DataAssociation.js';
|
|
58
|
-
export { DataEntity } from './modeling/DataEntity.js';
|
|
59
|
-
export { DataFile } from './models/store/DataFile.js';
|
|
60
|
-
export { DataModel } from './modeling/DataModel.js';
|
|
61
|
-
export { DataNamespace, DataItem } from './modeling/DataNamespace.js';
|
|
62
|
-
export { DataProperty } from './modeling/DataProperty.js';
|
|
63
57
|
export * as DataFormat from './modeling/DataFormat.js';
|
|
64
|
-
export * from './modeling/DomainImpactAnalysis.js';
|
|
65
58
|
export * from './modeling/types.js';
|
|
59
|
+
export { DataDomain } from './modeling/DataDomain.js';
|
|
60
|
+
export { DomainNamespace } from './modeling/DomainNamespace.js';
|
|
61
|
+
export { DomainModel } from './modeling/DomainModel.js';
|
|
62
|
+
export { DomainEntity } from './modeling/DomainEntity.js';
|
|
63
|
+
export { DomainProperty } from './modeling/DomainProperty.js';
|
|
64
|
+
export { DomainAssociation } from './modeling/DomainAssociation.js';
|
|
65
|
+
export * from './modeling/DomainImpactAnalysis.js';
|
|
66
|
+
export * from './modeling/DomainSerialization.js';
|
|
67
|
+
export * from './modeling/DomainVersioning.js';
|
|
68
|
+
export { ShapeGenerator } from './modeling/amf/ShapeGenerator.js';
|
|
69
|
+
export { DomainFile } from './modeling/DomainFile.js';
|
|
66
70
|
//
|
|
67
71
|
// AMF
|
|
68
72
|
//
|
|
@@ -75,7 +79,6 @@ export { ApiExampleGenerator } from './amf/ApiExampleGenerator.js';
|
|
|
75
79
|
export { ApiMonacoSchemaGenerator, } from './amf/ApiMonacoSchemaGenerator.js';
|
|
76
80
|
export { ApiSchemaValues } from './amf/ApiSchemaValues.js';
|
|
77
81
|
export { ApiSchemaGenerator } from './amf/ApiSchemaGenerator.js';
|
|
78
|
-
export { AmfShapeGenerator } from './amf/AmfShapeGenerator.js';
|
|
79
82
|
export { AmfSerializer } from './amf/AmfSerializer.js';
|
|
80
83
|
export { AmfMixin } from './amf/AmfMixin.js';
|
|
81
84
|
export * as AmfTypes from './amf/AmfTypes.js';
|
package/build/src/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"AAAA,wDAAwD;AAExD,EAAE;AACF,0BAA0B;AAC1B,EAAE;AACF,cAAc,mBAAmB,CAAA;AAEjC,EAAE;AACF,SAAS;AACT,EAAE;AACF,cAAc,mBAAmB,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAa,MAAM,sBAAsB,CAAA;AA6B1D,OAAO,EAAE,iBAAiB,EAAsB,MAAM,+BAA+B,CAAA;AACrF,OAAO,EAAE,eAAe,EAAoB,MAAM,6BAA6B,CAAA;AAC/E,OAAO,EACL,WAAW,EAWX,IAAI,IAAI,eAAe,GACxB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,WAAW,EAAgB,IAAI,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC5F,OAAO,EAAE,aAAa,EAAkB,MAAM,2BAA2B,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAa,QAAQ,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EAAe,UAAU,EAA0C,MAAM,wBAAwB,CAAA;AACxG,OAAO,EAAgB,WAAW,EAAE,IAAI,IAAI,eAAe,EAAuB,MAAM,yBAAyB,CAAA;AACjH,OAAO,EACL,WAAW,EAEX,IAAI,IAAI,eAAe,GAWxB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAgB,WAAW,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC5F,OAAO,EAAE,YAAY,EAAiB,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAE,OAAO,EAAY,IAAI,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC5E,OAAO,EAAE,OAAO,EAAY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C3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,cAAc,wBAAwB,CAAA;AAwBtC,EAAE;AACF,0BAA0B;AAC1B,EAAE;AACF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uDAAuD,CAAA;AACpG,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAA;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAA;AAMlF,EAAE;AACF,aAAa;AACb,EAAE;AACF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAA;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;AACnF,OAAO,EAAE,eAAe,EAA+B,MAAM,kCAAkC,CAAA;AAC/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAA","sourcesContent":["// all exports that are save for web browser processing.\n\n//\n// Ecosystem-shared Config\n//\nexport * from './config/index.js'\n\n//\n// Models\n//\nexport * from './models/kinds.js'\nexport { IApplication } from './models/Application.js'\nexport { Response, IResponse } from './models/Response.js'\nexport {\n IAuthorizationSettingsUnion,\n IApiKeyAuthorization,\n IAuthorizationParams,\n IBasicAuthorization,\n IBearerAuthorization,\n ICCAuthorization,\n IDigestAuthorization,\n INtlmAuthorization,\n IOAuth1Authorization,\n IOAuth2Authorization,\n IOAuth2AuthorizationRequestCustomData,\n IOAuth2CustomData,\n IOAuth2CustomParameter,\n IOAuth2TokenRequestCustomData,\n IOauth2GrantType,\n IOauth2ResponseType,\n IOidcAuthorization,\n IOidcTokenError,\n IOidcTokenInfo,\n IPassThroughAuthorization,\n IRamlCustomAuthorization,\n ITokenError,\n ITokenInfo,\n ITokenRemoveOptions,\n OAuth2DeliveryMethod,\n AuthorizationType,\n} from './models/Authorization.js'\nexport { AuthorizationData, IAuthorizationData } from './models/AuthorizationData.js'\nexport { CertificateFile, ICertificateFile } from './models/CertificateFile.js'\nexport {\n Certificate,\n CertificateDataFormat,\n CertificateType,\n HttpCertificate,\n ICertificate,\n ICertificateCreateOptions,\n ICertificateData,\n IP12Certificate,\n IP12CreateOptions,\n IPemCertificate,\n IPemCreateOptions,\n Kind as CertificateKind,\n} from './models/ClientCertificate.js'\nexport { Environment, IEnvironment, Kind as EnvironmentKind } from './models/Environment.js'\nexport { ErrorResponse, IErrorResponse } from './models/ErrorResponse.js'\nexport { HeadersArray } from './models/HeadersArray.js'\nexport { IHostRule, HostRule, Kind as HostRuleKind } from './models/HostRule.js'\nexport { IHttpCookie, HttpCookie, CookieChangeReason, CookieSameSiteType } from './models/HttpCookie.js'\nexport { IHttpHistory, HttpHistory, Kind as HttpHistoryKind, IHttpHistoryBulkAdd } from './models/HttpHistory.js'\nexport {\n HttpProject,\n IHttpProject,\n Kind as HttpProjectKind,\n IFolderCreateOptions,\n IFolderDeleteOptions,\n IFolderSearchOptions,\n IProjectMoveOptions,\n IRequestAddOptions,\n IRequestDeleteOptions,\n IRequestSearchOptions,\n IProjectFolderIterator,\n IProjectFolderIteratorResult,\n IProjectRequestIterator,\n} from './models/HttpProject.js'\nexport { IHttpRequest, HttpRequest, Kind as HttpRequestKind } from './models/HttpRequest.js'\nexport { HttpResponse, IHttpResponse } from './models/HttpResponse.js'\nexport { License, ILicense, Kind as LicenseKind } from './models/License.js'\nexport { Project, IProject } from './models/Project.js'\nexport {\n IProjectExecutionLog,\n IProjectExecutionIteration,\n IProjectExecution,\n ProjectExecution,\n Kind as ProjectExecutionKind,\n} from './models/ProjectExecution.js'\nexport { IProjectFolder, ProjectFolder, DefaultFolderName } from './models/ProjectFolder.js'\nexport { ProjectItem, IProjectItem } from './models/ProjectItem.js'\nexport { IProjectRequest, ProjectRequest, Kind as ProjectRequestKind } from './models/ProjectRequest.js'\nexport { ProjectSchema, IProjectSchema, Kind as ProjectSchemaKind } from './models/ProjectSchema.js'\nexport { Property, IProperty, Kind as PropertyKind } from './models/Property.js'\nexport { Provider, IProvider, Kind as ProviderKind } from './models/Provider.js'\nexport { Request, IRequest, Kind as RequestKind } from './models/Request.js'\nexport {\n RequestAuthorization,\n IRequestAuthorization,\n Kind as RequestAuthorizationKind,\n} from './models/RequestAuthorization.js'\nexport { RequestConfig, IRequestConfig, IRequestBaseConfig, Kind as RequestConfigKind } from './models/RequestConfig.js'\nexport { RequestLog, IRequestLog, Kind as RequestLogKind } from './models/RequestLog.js'\nexport { RequestsSize, IRequestsSize, Kind as RequestsSizeKind } from './models/RequestsSize.js'\nexport { RequestTime, IRequestTime, Kind as RequestTimeKind } from './models/RequestTime.js'\nexport {\n RequestUiMeta,\n IRequestUiMeta,\n Kind as RequestUiMetaKind,\n IAuthMeta,\n IBodyMeta,\n IBodyMetaModel,\n IHeadersMeta,\n IRawBody,\n IResponseUiMeta,\n IUrlMeta,\n IUrlEncodedBodyMeta,\n} from './models/RequestUiMeta.js'\nexport {\n ResponseAuthorization,\n IResponseAuthorization,\n Kind as ResponseAuthorizationKind,\n} from './models/ResponseAuthorization.js'\nexport { ResponseRedirect, IResponseRedirect, Kind as ResponseRedirectKind } from './models/ResponseRedirect.js'\nexport { ISentRequest, SentRequest, IBaseSentRequest } from './models/SentRequest.js'\nexport { SerializableError, ISerializedError } from './models/SerializableError.js'\nexport { SerializablePayload, SerializablePayloadOptions } from './models/SerializablePayload.js'\nexport { Server, IServer, Kind as ServerKind } from './models/Server.js'\nexport { Thing, IThing } from './models/Thing.js'\nexport { Url, IUrl } from './models/Url.js'\nexport { WebApi, IWebApi, ILegacyRestApi } from './models/WebApi.js'\nexport { WebApiIndex, IWebApiIndex, ILegacyWebApiIndex } from './models/WebApiIndex.js'\nexport { IFolder, Folder } from './models/Folder.js'\nexport * from './models/TrashEntry.js'\n\nexport * from './models/store/Backend.js'\nexport { ICapabilities } from './models/store/Capabilities.js'\nexport {\n IFile,\n File,\n IStoredFile,\n StoredFile,\n FileAddOptions,\n FileBreadcrumb,\n MediaReadOptions,\n} from './models/store/File.js'\nexport { IGroup } from './models/store/Group.js'\nexport {\n IAccessAddOperation,\n IAccessOperation,\n IAccessUpdateOperation,\n IAccessRemoveOperation,\n Permission,\n IPermission,\n AccessOperation,\n Kind as PermissionKind,\n PermissionRole,\n PermissionType,\n} from './models/store/Permission.js'\nexport { IRevision, IRevisionListItem } from './models/store/Revision.js'\nexport { IEmail, IUserPicture, IUser, Kind as UserKind } from './models/store/User.js'\nexport { IUserIdentity, Kind as UserIdentityKind, UserIdentity } from './models/store/UserIdentity.js'\nexport {\n IOrganization,\n Kind as OrganizationKind,\n Organization,\n UserOrganizationGrantType,\n} from './models/store/Organization.js'\nexport { IModification } from './models/store/Modification.js'\nexport { IDeletion } from './models/store/Deletion.js'\n\nexport { DataAssociation, IDataAssociation } from './modeling/DataAssociation.js'\nexport { DataEntity, IDataEntity } from './modeling/DataEntity.js'\nexport { DataFile, IDataFile } from './models/store/DataFile.js'\nexport { DataModel, IDataModel } from './modeling/DataModel.js'\nexport { DataNamespace, IDataNamespace, DataItem, IDataItem } from './modeling/DataNamespace.js'\nexport { DataProperty, IDataProperty, DataPropertySchema, SchemaDefaultValue } from './modeling/DataProperty.js'\nexport * as DataFormat from './modeling/DataFormat.js'\nexport { PropertyBinding, PropertyProtobufBindings, PropertyWebBindings } from './modeling/Bindings.js'\nexport * from './modeling/DomainImpactAnalysis.js'\nexport * from './modeling/types.js'\n\n//\n// AMF\n//\n\nexport { AmfNamespace } from './amf/definitions/Namespace.js'\nexport * as ApiDefinitions from './amf/definitions/Api.js'\nexport * as AmfDefinitions from './amf/definitions/Amf.js'\nexport * as AmfShapes from './amf/definitions/Shapes.js'\nexport * as AmfBase from './amf/definitions/Base.js'\nexport { ApiExampleGenerator } from './amf/ApiExampleGenerator.js'\nexport {\n ApiMonacoSchemaGenerator,\n IMonacoArrayProperty,\n IMonacoObjectProperty,\n IMonacoProperty,\n IMonacoScalarProperty,\n IMonacoSchema,\n} from './amf/ApiMonacoSchemaGenerator.js'\nexport { ApiSchemaValues, IApiSchemaReadOptions } from './amf/ApiSchemaValues.js'\nexport { ApiSchemaGenerator, ISchemaExample } from './amf/ApiSchemaGenerator.js'\nexport { AmfShapeGenerator } from './amf/AmfShapeGenerator.js'\nexport { AmfSerializer } from './amf/AmfSerializer.js'\nexport { AmfMixin, ServersQueryOptions } from './amf/AmfMixin.js'\nexport * as AmfTypes from './amf/AmfTypes.js'\nexport * as AmfParsing from './amf/Parsing.js'\nexport * as AmfUtils from './amf/Utils.js'\nexport { IApiDomainProperty, IApiCustomDomainProperty } from './amf/definitions/Base.js'\n\n//\n// Libs\n//\nexport {\n PayloadSerializer,\n ISafePayload,\n IMultipartBody,\n Payload,\n DeserializedPayload,\n IBlobMeta,\n IFileMeta,\n} from './lib/transformers/PayloadSerializer.js'\nexport { ILogger, Logger } from './lib/logging/Logger.js'\nexport { DummyLogger } from './lib/logging/DummyLogger.js'\nexport { DefaultLogger } from './lib/logging/DefaultLogger.js'\nexport { Headers } from './lib/headers/Headers.js'\nexport * as EventUtils from './lib/events/Utils.js'\nexport { default as uuidV4 } from './lib/uuid.js'\nexport { UrlParser } from './lib/parsers/UrlParser.js'\nexport { UrlEncoder } from './lib/parsers/UrlEncoder.js'\nexport * as Timers from './lib/timers/Timers.js'\nexport { UriTemplate, IUriTemplateOptions } from './lib/parsers/UriTemplate.js'\nexport * from './lib/parsers/UrlProcessor.js'\nexport * as HttpDefinitions from './lib/definitions/HttpDefinitions.js'\nexport * as Buffer from './lib/Buffer.js'\nexport * as Random from './lib/math/Random.js'\nexport * from './patch/PatchClient.js'\nexport * from './patch/types.js'\nexport * as ColorConverter from './lib/color/ColorConverter.js'\n\n//\n// Cookies\n//\nexport { CookieParser, SameSiteValue } from './cookies/CookieParser.js'\nexport { CookieJar } from './cookies/CookieJar.js'\n\n//\n// Authorization\n//\nexport { OAuth2Authorization } from './authorization/OAuth2Authorization.js'\nexport { OidcAuthorization } from './authorization/OidcAuthorization.js'\nexport { AuthorizationError, CodeError } from './authorization/AuthorizationError.js'\nexport * as AuthUtils from './authorization/Utils.js'\nexport * from './authorization/types.js'\nexport { Tokens as OidcTokens } from './authorization/lib/Tokens.js'\nexport * as KnownGrants from './authorization/lib/KnownGrants.js'\nexport * as AuthorizationUtils from './authorization/lib/Utils.js'\nexport { SecurityProcessor, IAuthApplyOptions } from './authorization/lib/SecurityProcessor.js'\n\n//\n// HTTP Flows & assertions\n//\nexport * from './models/http-flows/steps/assertion/index.js'\nexport * from './models/http-flows/steps/data/index.js'\nexport * from './models/http-flows/steps/transformation/index.js'\nexport * from './models/http-flows/HttpFlows.js'\nexport * from './models/http-flows/HttpStep.js'\nexport * from './models/http-flows/LegacyTranslator.js'\nexport * from './models/http-flows/HttpAssertion.js'\nexport * as HttpAssertions from './models/http-flows/steps/assertion/index.js'\nexport * as TransformationSteps from './models/http-flows/steps/transformation/index.js'\nexport * as DataSteps from './models/http-flows/steps/data/index.js'\nexport * from './models/http-flows/AssertionError.js'\n\n//\n// Runtime\n//\nexport { VariablesProcessor } from './runtime/variables/VariablesProcessor.js'\nexport * from './runtime/node/InteropInterfaces.js'\n\n//\n// Data processing\n//\nexport { PayloadPointer } from './data/PayloadPointer.js'\nexport { JsonReader } from './data/JsonReader.js'\nexport { JmespathReader } from './data/JmespathReader.js'\nexport { XmlReader } from './data/XmlReader.js'\nexport { UrlEncodedReader } from './data/UrlEncodedReader.js'\nexport { RequestDataExtractor } from './data/RequestDataExtractor.js'\n\n//\n// SDK\n//\nexport * from './runtime/store/StoreSdkWeb.js'\nexport { ApiError, IApiError, SdkError, ISdkError } from './runtime/store/Errors.js'\nexport { RouteBuilder } from './runtime/store/RouteBuilder.js'\nexport { AuthProviders, AuthRedirectOptions } from './runtime/store/AuthSdk.js'\n\n//\n// Execution reporters\n//\nexport { Reporter } from './runtime/reporters/Reporter.js'\n\n//\n// Mocking\n//\nexport * from './mocking/ProjectMock.js'\n\n//\n// Calculators\n//\nexport { DataCalculator } from './lib/calculators/DataCalculator.js'\n\n//\n// Events\n//\nexport { Events } from './events/Events.js'\nexport { EventTypes } from './events/EventTypes.js'\nexport * from './events/BaseEvents.js'\nexport {\n ICookieDeleteUrlDetail,\n ICookieDetail,\n ICookieDomainListDetail,\n ICookieItemsDetail,\n ICookieUrlListDetail,\n} from './events/cookies/CookieEvents.js'\nexport { IEncryptionEventDetail } from './events/encryption/EncryptionEvents.js'\nexport { IProcessErrorDetail, IProcessStartDetail, IProcessStopDetail } from './events/process/ProcessEvents.js'\nexport { IReportingErrorDetail } from './events/reporting/ReportingEvents.js'\nexport {\n ITelemetryCustomMetric,\n ITelemetryCustomValue,\n ITelemetryDetail,\n ITelemetryEventDetail,\n ITelemetryExceptionDetail,\n ITelemetryScreenViewDetail,\n ITelemetrySocialDetail,\n ITelemetryTimingDetail,\n} from './events/telemetry/TelemetryEvents.js'\nexport { ISetVariableDetail } from './events/environment/EnvironmentEvents.js'\nexport { IHttpRequestDetail } from './events/transport/TransportEvents.js'\n\n//\n// External data importers\n//\nexport { LegacyDataExportToApiProject } from './models/transformers/LegacyDataExportToApiProject.js'\nexport { PostmanDataTransformer } from './models/transformers/PostmanDataTransformer.js'\nexport { ArcLegacyNormalizer } from './models/transformers/ArcLegacyNormalizer.js'\n\nexport { IProxyResult } from './proxy/Proxy.js'\nexport { IHttpProjectProxyInit, IHttpProjectStoreProxyInit } from './proxy/HttpProjectProxy.js'\nexport { IRequestProxyInit } from './proxy/RequestProxy.js'\n\n//\n// Exceptions\n//\nexport { Exception } from './exceptions/exception.js'\nexport { InvalidTypeException } from './exceptions/invalid_type_exception.js'\nexport { RemoveAssociationException } from './exceptions/remove_association_exception.js'\nexport { RemoveEntityException } from './exceptions/remove_entity_exception.js'\nexport { RemovePropertyException } from './exceptions/remove_property_exception.js'\nexport { ValidationError, type FieldValidationMessage } from './exceptions/validation_error.js'\nexport { ForeignAssociationException } from './exceptions/foreign_association_exception.js'\n"]}
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"AAAA,wDAAwD;AAExD,EAAE;AACF,0BAA0B;AAC1B,EAAE;AACF,cAAc,mBAAmB,CAAA;AAEjC,EAAE;AACF,SAAS;AACT,EAAE;AACF,cAAc,mBAAmB,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAa,MAAM,sBAAsB,CAAA;AA6B1D,OAAO,EAAE,iBAAiB,EAAsB,MAAM,+BAA+B,CAAA;AACrF,OAAO,EAAE,eAAe,EAAoB,MAAM,6BAA6B,CAAA;AAC/E,OAAO,EACL,WAAW,EAWX,IAAI,IAAI,eAAe,GACxB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,WAAW,EAAgB,IAAI,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC5F,OAAO,EAAE,aAAa,EAAkB,MAAM,2BAA2B,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAa,QAAQ,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EAAe,UAAU,EAA0C,MAAM,wBAAwB,CAAA;AACxG,OAAO,EAAgB,WAAW,EAAE,IAAI,IAAI,eAAe,EAAuB,MAAM,yBAAyB,CAAA;AACjH,OAAO,EACL,WAAW,EAEX,IAAI,IAAI,eAAe,GAWxB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAgB,WAAW,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC5F,OAAO,EAAE,YAAY,EAAiB,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAE,OAAO,EAAY,IAAI,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC5E,OAAO,EAAE,OAAO,EAAY,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAIL,gBAAgB,EAChB,IAA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MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,cAAc,wBAAwB,CAAA;AAwBtC,EAAE;AACF,0BAA0B;AAC1B,EAAE;AACF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uDAAuD,CAAA;AACpG,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAA;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAA;AAMlF,EAAE;AACF,aAAa;AACb,EAAE;AACF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAA;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;AACnF,OAAO,EAAE,eAAe,EAA+B,MAAM,kCAAkC,CAAA;AAC/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAA","sourcesContent":["// all exports that are save for web browser processing.\n\n//\n// Ecosystem-shared Config\n//\nexport * from './config/index.js'\n\n//\n// Models\n//\nexport * from './models/kinds.js'\nexport { IApplication } from './models/Application.js'\nexport { Response, IResponse } from './models/Response.js'\nexport {\n IAuthorizationSettingsUnion,\n IApiKeyAuthorization,\n IAuthorizationParams,\n IBasicAuthorization,\n IBearerAuthorization,\n ICCAuthorization,\n IDigestAuthorization,\n INtlmAuthorization,\n IOAuth1Authorization,\n IOAuth2Authorization,\n IOAuth2AuthorizationRequestCustomData,\n IOAuth2CustomData,\n IOAuth2CustomParameter,\n IOAuth2TokenRequestCustomData,\n IOauth2GrantType,\n IOauth2ResponseType,\n IOidcAuthorization,\n IOidcTokenError,\n IOidcTokenInfo,\n IPassThroughAuthorization,\n IRamlCustomAuthorization,\n ITokenError,\n ITokenInfo,\n ITokenRemoveOptions,\n OAuth2DeliveryMethod,\n AuthorizationType,\n} from './models/Authorization.js'\nexport { AuthorizationData, IAuthorizationData } from './models/AuthorizationData.js'\nexport { CertificateFile, ICertificateFile } from './models/CertificateFile.js'\nexport {\n Certificate,\n CertificateDataFormat,\n CertificateType,\n HttpCertificate,\n ICertificate,\n ICertificateCreateOptions,\n ICertificateData,\n IP12Certificate,\n IP12CreateOptions,\n IPemCertificate,\n IPemCreateOptions,\n Kind as CertificateKind,\n} from './models/ClientCertificate.js'\nexport { Environment, IEnvironment, Kind as EnvironmentKind } from './models/Environment.js'\nexport { ErrorResponse, IErrorResponse } from './models/ErrorResponse.js'\nexport { HeadersArray } from './models/HeadersArray.js'\nexport { IHostRule, HostRule, Kind as HostRuleKind } from './models/HostRule.js'\nexport { IHttpCookie, HttpCookie, CookieChangeReason, CookieSameSiteType } from './models/HttpCookie.js'\nexport { IHttpHistory, HttpHistory, Kind as HttpHistoryKind, IHttpHistoryBulkAdd } from './models/HttpHistory.js'\nexport {\n HttpProject,\n IHttpProject,\n Kind as HttpProjectKind,\n IFolderCreateOptions,\n IFolderDeleteOptions,\n IFolderSearchOptions,\n IProjectMoveOptions,\n IRequestAddOptions,\n IRequestDeleteOptions,\n IRequestSearchOptions,\n IProjectFolderIterator,\n IProjectFolderIteratorResult,\n IProjectRequestIterator,\n} from './models/HttpProject.js'\nexport { IHttpRequest, HttpRequest, Kind as HttpRequestKind } from './models/HttpRequest.js'\nexport { HttpResponse, IHttpResponse } from './models/HttpResponse.js'\nexport { License, ILicense, Kind as LicenseKind } from './models/License.js'\nexport { Project, IProject } from './models/Project.js'\nexport {\n IProjectExecutionLog,\n IProjectExecutionIteration,\n IProjectExecution,\n ProjectExecution,\n Kind as ProjectExecutionKind,\n} from './models/ProjectExecution.js'\nexport { IProjectFolder, ProjectFolder, DefaultFolderName } from './models/ProjectFolder.js'\nexport { ProjectItem, IProjectItem } from './models/ProjectItem.js'\nexport { IProjectRequest, ProjectRequest, Kind as ProjectRequestKind } from './models/ProjectRequest.js'\nexport { ProjectSchema, IProjectSchema, Kind as ProjectSchemaKind } from './models/ProjectSchema.js'\nexport { Property, IProperty, Kind as PropertyKind } from './models/Property.js'\nexport { Provider, IProvider, Kind as ProviderKind } from './models/Provider.js'\nexport { Request, IRequest, Kind as RequestKind } from './models/Request.js'\nexport {\n RequestAuthorization,\n IRequestAuthorization,\n Kind as RequestAuthorizationKind,\n} from './models/RequestAuthorization.js'\nexport { RequestConfig, IRequestConfig, IRequestBaseConfig, Kind as RequestConfigKind } from './models/RequestConfig.js'\nexport { RequestLog, IRequestLog, Kind as RequestLogKind } from './models/RequestLog.js'\nexport { RequestsSize, IRequestsSize, Kind as RequestsSizeKind } from './models/RequestsSize.js'\nexport { RequestTime, IRequestTime, Kind as RequestTimeKind } from './models/RequestTime.js'\nexport {\n RequestUiMeta,\n IRequestUiMeta,\n Kind as RequestUiMetaKind,\n IAuthMeta,\n IBodyMeta,\n IBodyMetaModel,\n IHeadersMeta,\n IRawBody,\n IResponseUiMeta,\n IUrlMeta,\n IUrlEncodedBodyMeta,\n} from './models/RequestUiMeta.js'\nexport {\n ResponseAuthorization,\n IResponseAuthorization,\n Kind as ResponseAuthorizationKind,\n} from './models/ResponseAuthorization.js'\nexport { ResponseRedirect, IResponseRedirect, Kind as ResponseRedirectKind } from './models/ResponseRedirect.js'\nexport { ISentRequest, SentRequest, IBaseSentRequest } from './models/SentRequest.js'\nexport { SerializableError, ISerializedError } from './models/SerializableError.js'\nexport { SerializablePayload, SerializablePayloadOptions } from './models/SerializablePayload.js'\nexport { Server, IServer, Kind as ServerKind } from './models/Server.js'\nexport { Thing, IThing } from './models/Thing.js'\nexport { Url, IUrl } from './models/Url.js'\nexport { WebApi, IWebApi, ILegacyRestApi } from './models/WebApi.js'\nexport { WebApiIndex, IWebApiIndex, ILegacyWebApiIndex } from './models/WebApiIndex.js'\nexport { IFolder, Folder } from './models/Folder.js'\nexport * from './models/TrashEntry.js'\n\nexport * from './models/store/Backend.js'\nexport { ICapabilities } from './models/store/Capabilities.js'\nexport {\n IFile,\n File,\n IStoredFile,\n StoredFile,\n FileAddOptions,\n FileBreadcrumb,\n MediaReadOptions,\n} from './models/store/File.js'\nexport { IGroup } from './models/store/Group.js'\nexport {\n IAccessAddOperation,\n IAccessOperation,\n IAccessUpdateOperation,\n IAccessRemoveOperation,\n Permission,\n IPermission,\n AccessOperation,\n Kind as PermissionKind,\n PermissionRole,\n PermissionType,\n} from './models/store/Permission.js'\nexport { IRevision, IRevisionListItem } from './models/store/Revision.js'\nexport { IEmail, IUserPicture, IUser, Kind as UserKind } from './models/store/User.js'\nexport { IUserIdentity, Kind as UserIdentityKind, UserIdentity } from './models/store/UserIdentity.js'\nexport {\n IOrganization,\n Kind as OrganizationKind,\n Organization,\n UserOrganizationGrantType,\n} from './models/store/Organization.js'\nexport { IModification } from './models/store/Modification.js'\nexport { IDeletion } from './models/store/Deletion.js'\n\nexport * as DataFormat from './modeling/DataFormat.js'\nexport type {\n PropertyBinding,\n PropertyProtobufBindings,\n PropertyWebBindings,\n AssociationBinding,\n AssociationBindings,\n AssociationWebBindings,\n PropertyBindings,\n} from './modeling/Bindings.js'\nexport * from './modeling/types.js'\nexport { DataDomain, DataDomainSchema } from './modeling/DataDomain.js'\nexport { DomainNamespace, type DomainNamespaceSchema } from './modeling/DomainNamespace.js'\nexport { DomainModel, type DomainModelSchema } from './modeling/DomainModel.js'\nexport { DomainEntity, type DomainEntitySchema } from './modeling/DomainEntity.js'\nexport { DomainProperty, type DomainPropertySchema } from './modeling/DomainProperty.js'\nexport { DomainAssociation, type DomainAssociationSchema } from './modeling/DomainAssociation.js'\nexport * from './modeling/DomainImpactAnalysis.js'\nexport * from './modeling/DomainSerialization.js'\nexport * from './modeling/DomainVersioning.js'\nexport { ShapeGenerator } from './modeling/amf/ShapeGenerator.js'\nexport { DomainFile, IDomainFile } from './modeling/DomainFile.js'\n\n//\n// AMF\n//\n\nexport { AmfNamespace } from './amf/definitions/Namespace.js'\nexport * as ApiDefinitions from './amf/definitions/Api.js'\nexport * as AmfDefinitions from './amf/definitions/Amf.js'\nexport * as AmfShapes from './amf/definitions/Shapes.js'\nexport * as AmfBase from './amf/definitions/Base.js'\nexport { ApiExampleGenerator } from './amf/ApiExampleGenerator.js'\nexport {\n ApiMonacoSchemaGenerator,\n IMonacoArrayProperty,\n IMonacoObjectProperty,\n IMonacoProperty,\n IMonacoScalarProperty,\n IMonacoSchema,\n} from './amf/ApiMonacoSchemaGenerator.js'\nexport { ApiSchemaValues, IApiSchemaReadOptions } from './amf/ApiSchemaValues.js'\nexport { ApiSchemaGenerator, ISchemaExample } from './amf/ApiSchemaGenerator.js'\nexport { AmfSerializer } from './amf/AmfSerializer.js'\nexport { AmfMixin, ServersQueryOptions } from './amf/AmfMixin.js'\nexport * as AmfTypes from './amf/AmfTypes.js'\nexport * as AmfParsing from './amf/Parsing.js'\nexport * as AmfUtils from './amf/Utils.js'\nexport { IApiDomainProperty, IApiCustomDomainProperty } from './amf/definitions/Base.js'\n\n//\n// Libs\n//\nexport {\n PayloadSerializer,\n ISafePayload,\n IMultipartBody,\n Payload,\n DeserializedPayload,\n IBlobMeta,\n IFileMeta,\n} from './lib/transformers/PayloadSerializer.js'\nexport { ILogger, Logger } from './lib/logging/Logger.js'\nexport { DummyLogger } from './lib/logging/DummyLogger.js'\nexport { DefaultLogger } from './lib/logging/DefaultLogger.js'\nexport { Headers } from './lib/headers/Headers.js'\nexport * as EventUtils from './lib/events/Utils.js'\nexport { default as uuidV4 } from './lib/uuid.js'\nexport { UrlParser } from './lib/parsers/UrlParser.js'\nexport { UrlEncoder } from './lib/parsers/UrlEncoder.js'\nexport * as Timers from './lib/timers/Timers.js'\nexport { UriTemplate, IUriTemplateOptions } from './lib/parsers/UriTemplate.js'\nexport * from './lib/parsers/UrlProcessor.js'\nexport * as HttpDefinitions from './lib/definitions/HttpDefinitions.js'\nexport * as Buffer from './lib/Buffer.js'\nexport * as Random from './lib/math/Random.js'\nexport * from './patch/PatchClient.js'\nexport * from './patch/types.js'\nexport * as ColorConverter from './lib/color/ColorConverter.js'\n\n//\n// Cookies\n//\nexport { CookieParser, SameSiteValue } from './cookies/CookieParser.js'\nexport { CookieJar } from './cookies/CookieJar.js'\n\n//\n// Authorization\n//\nexport { OAuth2Authorization } from './authorization/OAuth2Authorization.js'\nexport { OidcAuthorization } from './authorization/OidcAuthorization.js'\nexport { AuthorizationError, CodeError } from './authorization/AuthorizationError.js'\nexport * as AuthUtils from './authorization/Utils.js'\nexport * from './authorization/types.js'\nexport { Tokens as OidcTokens } from './authorization/lib/Tokens.js'\nexport * as KnownGrants from './authorization/lib/KnownGrants.js'\nexport * as AuthorizationUtils from './authorization/lib/Utils.js'\nexport { SecurityProcessor, IAuthApplyOptions } from './authorization/lib/SecurityProcessor.js'\n\n//\n// HTTP Flows & assertions\n//\nexport * from './models/http-flows/steps/assertion/index.js'\nexport * from './models/http-flows/steps/data/index.js'\nexport * from './models/http-flows/steps/transformation/index.js'\nexport * from './models/http-flows/HttpFlows.js'\nexport * from './models/http-flows/HttpStep.js'\nexport * from './models/http-flows/LegacyTranslator.js'\nexport * from './models/http-flows/HttpAssertion.js'\nexport * as HttpAssertions from './models/http-flows/steps/assertion/index.js'\nexport * as TransformationSteps from './models/http-flows/steps/transformation/index.js'\nexport * as DataSteps from './models/http-flows/steps/data/index.js'\nexport * from './models/http-flows/AssertionError.js'\n\n//\n// Runtime\n//\nexport { VariablesProcessor } from './runtime/variables/VariablesProcessor.js'\nexport * from './runtime/node/InteropInterfaces.js'\n\n//\n// Data processing\n//\nexport { PayloadPointer } from './data/PayloadPointer.js'\nexport { JsonReader } from './data/JsonReader.js'\nexport { JmespathReader } from './data/JmespathReader.js'\nexport { XmlReader } from './data/XmlReader.js'\nexport { UrlEncodedReader } from './data/UrlEncodedReader.js'\nexport { RequestDataExtractor } from './data/RequestDataExtractor.js'\n\n//\n// SDK\n//\nexport * from './runtime/store/StoreSdkWeb.js'\nexport { ApiError, IApiError, SdkError, ISdkError } from './runtime/store/Errors.js'\nexport { RouteBuilder } from './runtime/store/RouteBuilder.js'\nexport { AuthProviders, AuthRedirectOptions } from './runtime/store/AuthSdk.js'\n\n//\n// Execution reporters\n//\nexport { Reporter } from './runtime/reporters/Reporter.js'\n\n//\n// Mocking\n//\nexport * from './mocking/ProjectMock.js'\n\n//\n// Calculators\n//\nexport { DataCalculator } from './lib/calculators/DataCalculator.js'\n\n//\n// Events\n//\nexport { Events } from './events/Events.js'\nexport { EventTypes } from './events/EventTypes.js'\nexport * from './events/BaseEvents.js'\nexport {\n ICookieDeleteUrlDetail,\n ICookieDetail,\n ICookieDomainListDetail,\n ICookieItemsDetail,\n ICookieUrlListDetail,\n} from './events/cookies/CookieEvents.js'\nexport { IEncryptionEventDetail } from './events/encryption/EncryptionEvents.js'\nexport { IProcessErrorDetail, IProcessStartDetail, IProcessStopDetail } from './events/process/ProcessEvents.js'\nexport { IReportingErrorDetail } from './events/reporting/ReportingEvents.js'\nexport {\n ITelemetryCustomMetric,\n ITelemetryCustomValue,\n ITelemetryDetail,\n ITelemetryEventDetail,\n ITelemetryExceptionDetail,\n ITelemetryScreenViewDetail,\n ITelemetrySocialDetail,\n ITelemetryTimingDetail,\n} from './events/telemetry/TelemetryEvents.js'\nexport { ISetVariableDetail } from './events/environment/EnvironmentEvents.js'\nexport { IHttpRequestDetail } from './events/transport/TransportEvents.js'\n\n//\n// External data importers\n//\nexport { LegacyDataExportToApiProject } from './models/transformers/LegacyDataExportToApiProject.js'\nexport { PostmanDataTransformer } from './models/transformers/PostmanDataTransformer.js'\nexport { ArcLegacyNormalizer } from './models/transformers/ArcLegacyNormalizer.js'\n\nexport { IProxyResult } from './proxy/Proxy.js'\nexport { IHttpProjectProxyInit, IHttpProjectStoreProxyInit } from './proxy/HttpProjectProxy.js'\nexport { IRequestProxyInit } from './proxy/RequestProxy.js'\n\n//\n// Exceptions\n//\nexport { Exception } from './exceptions/exception.js'\nexport { InvalidTypeException } from './exceptions/invalid_type_exception.js'\nexport { RemoveAssociationException } from './exceptions/remove_association_exception.js'\nexport { RemoveEntityException } from './exceptions/remove_entity_exception.js'\nexport { RemovePropertyException } from './exceptions/remove_property_exception.js'\nexport { ValidationError, type FieldValidationMessage } from './exceptions/validation_error.js'\nexport { ForeignAssociationException } from './exceptions/foreign_association_exception.js'\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Exception } from './exception.js';
|
|
2
|
+
/**
|
|
3
|
+
* A generic exception for attaching objects.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AttachException extends Exception {
|
|
6
|
+
static code: string;
|
|
7
|
+
static status: number;
|
|
8
|
+
static message: string;
|
|
9
|
+
static help: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=attach_exception.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attach_exception.d.ts","sourceRoot":"","sources":["../../../src/exceptions/attach_exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,OAAgB,IAAI,SAAa;IACjC,OAAgB,MAAM,SAAM;IAC5B,OAAgB,OAAO,SAAgC;IACvD,OAAgB,IAAI,SAAkD;CACvE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Exception } from './exception.js';
|
|
2
|
+
/**
|
|
3
|
+
* A generic exception for attaching objects.
|
|
4
|
+
*/
|
|
5
|
+
export class AttachException extends Exception {
|
|
6
|
+
static code = 'E_ATTACH';
|
|
7
|
+
static status = 500;
|
|
8
|
+
static message = 'Error attaching the object.';
|
|
9
|
+
static help = 'Make sure you are attaching the right object.';
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=attach_exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attach_exception.js","sourceRoot":"","sources":["../../../src/exceptions/attach_exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,MAAM,CAAU,IAAI,GAAG,UAAU,CAAA;IACjC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAA;IAC5B,MAAM,CAAU,OAAO,GAAG,6BAA6B,CAAA;IACvD,MAAM,CAAU,IAAI,GAAG,+CAA+C,CAAA","sourcesContent":["import { Exception } from './exception.js'\n\n/**\n * A generic exception for attaching objects.\n */\nexport class AttachException extends Exception {\n static override code = 'E_ATTACH'\n static override status = 500\n static override message = 'Error attaching the object.'\n static override help = 'Make sure you are attaching the right object.'\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Exception } from './exception.js';
|
|
2
|
+
/**
|
|
3
|
+
* A generic exception for detaching objects.
|
|
4
|
+
*/
|
|
5
|
+
export declare class DetachException extends Exception {
|
|
6
|
+
static code: string;
|
|
7
|
+
static status: number;
|
|
8
|
+
static message: string;
|
|
9
|
+
static help: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=detach_exception.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detach_exception.d.ts","sourceRoot":"","sources":["../../../src/exceptions/detach_exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,OAAgB,IAAI,SAAa;IACjC,OAAgB,MAAM,SAAM;IAC5B,OAAgB,OAAO,SAAgC;IACvD,OAAgB,IAAI,SAAkD;CACvE"}
|