@api-client/core 0.19.9 → 0.19.11
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/LICENSE.md +9 -63
- package/Testing.md +1 -1
- package/bin/test.ts +1 -12
- package/build/src/browser.d.ts +0 -15
- package/build/src/browser.d.ts.map +1 -1
- package/build/src/browser.js +0 -17
- package/build/src/browser.js.map +1 -1
- package/build/src/decorators/observed.d.ts.map +1 -1
- package/build/src/decorators/observed.js +91 -0
- package/build/src/decorators/observed.js.map +1 -1
- package/build/src/events/EventTypes.d.ts +0 -6
- package/build/src/events/EventTypes.d.ts.map +1 -1
- package/build/src/events/EventTypes.js +0 -2
- package/build/src/events/EventTypes.js.map +1 -1
- package/build/src/events/Events.d.ts +0 -2
- package/build/src/events/Events.d.ts.map +1 -1
- package/build/src/events/Events.js +0 -2
- package/build/src/events/Events.js.map +1 -1
- package/build/src/index.d.ts +0 -15
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +0 -17
- package/build/src/index.js.map +1 -1
- package/build/src/modeling/ApiModel.d.ts +21 -7
- package/build/src/modeling/ApiModel.d.ts.map +1 -1
- package/build/src/modeling/ApiModel.js +70 -29
- package/build/src/modeling/ApiModel.js.map +1 -1
- package/build/src/modeling/Bindings.d.ts +3 -3
- package/build/src/modeling/Bindings.d.ts.map +1 -1
- package/build/src/modeling/Bindings.js.map +1 -1
- package/build/src/modeling/DomainAssociation.d.ts +5 -5
- package/build/src/modeling/DomainAssociation.d.ts.map +1 -1
- package/build/src/modeling/DomainAssociation.js.map +1 -1
- package/build/src/modeling/DomainEntity.d.ts +2 -3
- package/build/src/modeling/DomainEntity.d.ts.map +1 -1
- package/build/src/modeling/DomainEntity.js +1 -1
- package/build/src/modeling/DomainEntity.js.map +1 -1
- package/build/src/modeling/DomainProperty.d.ts +2 -3
- package/build/src/modeling/DomainProperty.d.ts.map +1 -1
- package/build/src/modeling/DomainProperty.js +1 -1
- package/build/src/modeling/DomainProperty.js.map +1 -1
- package/build/src/modeling/DomainValidation.d.ts +1 -1
- package/build/src/modeling/DomainValidation.d.ts.map +1 -1
- package/build/src/modeling/DomainValidation.js.map +1 -1
- package/build/src/modeling/ExposedEntity.d.ts +14 -0
- package/build/src/modeling/ExposedEntity.d.ts.map +1 -1
- package/build/src/modeling/ExposedEntity.js +59 -6
- package/build/src/modeling/ExposedEntity.js.map +1 -1
- package/build/src/modeling/actions/Action.d.ts +11 -1
- package/build/src/modeling/actions/Action.d.ts.map +1 -1
- package/build/src/modeling/actions/Action.js +21 -3
- package/build/src/modeling/actions/Action.js.map +1 -1
- package/build/src/modeling/actions/CreateAction.d.ts +2 -1
- package/build/src/modeling/actions/CreateAction.d.ts.map +1 -1
- package/build/src/modeling/actions/CreateAction.js +2 -2
- package/build/src/modeling/actions/CreateAction.js.map +1 -1
- package/build/src/modeling/actions/DeleteAction.d.ts +2 -1
- package/build/src/modeling/actions/DeleteAction.d.ts.map +1 -1
- package/build/src/modeling/actions/DeleteAction.js +2 -2
- package/build/src/modeling/actions/DeleteAction.js.map +1 -1
- package/build/src/modeling/actions/ListAction.d.ts +2 -1
- package/build/src/modeling/actions/ListAction.d.ts.map +1 -1
- package/build/src/modeling/actions/ListAction.js +2 -2
- package/build/src/modeling/actions/ListAction.js.map +1 -1
- package/build/src/modeling/actions/ReadAction.d.ts +2 -1
- package/build/src/modeling/actions/ReadAction.d.ts.map +1 -1
- package/build/src/modeling/actions/ReadAction.js +2 -2
- package/build/src/modeling/actions/ReadAction.js.map +1 -1
- package/build/src/modeling/actions/SearchAction.d.ts +2 -1
- package/build/src/modeling/actions/SearchAction.d.ts.map +1 -1
- package/build/src/modeling/actions/SearchAction.js +2 -2
- package/build/src/modeling/actions/SearchAction.js.map +1 -1
- package/build/src/modeling/actions/UpdateAction.d.ts +2 -1
- package/build/src/modeling/actions/UpdateAction.d.ts.map +1 -1
- package/build/src/modeling/actions/UpdateAction.js +2 -2
- package/build/src/modeling/actions/UpdateAction.js.map +1 -1
- package/build/src/modeling/actions/index.d.ts +2 -1
- package/build/src/modeling/actions/index.d.ts.map +1 -1
- package/build/src/modeling/actions/index.js +7 -7
- package/build/src/modeling/actions/index.js.map +1 -1
- package/build/src/modeling/ai/types.d.ts +2 -2
- package/build/src/modeling/ai/types.d.ts.map +1 -1
- package/build/src/modeling/ai/types.js.map +1 -1
- package/build/src/{amf → modeling/amf}/DataValueGenerator.d.ts +1 -1
- package/build/src/modeling/amf/DataValueGenerator.d.ts.map +1 -0
- package/build/src/{amf → modeling/amf}/DataValueGenerator.js +2 -3
- package/build/src/modeling/amf/DataValueGenerator.js.map +1 -0
- package/build/src/modeling/amf/ShapeGenerator.d.ts +20 -20
- package/build/src/modeling/amf/ShapeGenerator.d.ts.map +1 -1
- package/build/src/modeling/amf/ShapeGenerator.js +16 -18
- package/build/src/modeling/amf/ShapeGenerator.js.map +1 -1
- package/build/src/modeling/amf/core_types.d.ts +9 -0
- package/build/src/modeling/amf/core_types.d.ts.map +1 -0
- package/build/src/modeling/amf/core_types.js +45 -0
- package/build/src/modeling/amf/core_types.js.map +1 -0
- package/build/src/modeling/index.d.ts +1 -0
- package/build/src/modeling/index.d.ts.map +1 -1
- package/build/src/modeling/index.js +1 -0
- package/build/src/modeling/index.js.map +1 -1
- package/build/src/modeling/types.d.ts +67 -0
- package/build/src/modeling/types.d.ts.map +1 -1
- package/build/src/modeling/types.js.map +1 -1
- package/build/src/modeling/validation/api_model_rules.d.ts +15 -0
- package/build/src/modeling/validation/api_model_rules.d.ts.map +1 -0
- package/build/src/modeling/validation/api_model_rules.js +599 -0
- package/build/src/modeling/validation/api_model_rules.js.map +1 -0
- package/build/src/modeling/validation/association_validation.d.ts.map +1 -1
- package/build/src/modeling/validation/association_validation.js +1 -3
- package/build/src/modeling/validation/association_validation.js.map +1 -1
- package/build/src/models/http-flows/LegacyTranslator.js +1 -1
- package/build/src/models/http-flows/LegacyTranslator.js.map +1 -1
- package/build/src/runtime/http-runner/HttpFlows.js +1 -1
- package/build/src/runtime/http-runner/HttpFlows.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.js +0 -2
- package/package.json +27 -135
- package/src/decorators/observed.ts +91 -0
- package/src/events/EventTypes.ts +0 -2
- package/src/events/Events.ts +0 -2
- package/src/modeling/ApiModel.ts +73 -33
- package/src/modeling/Bindings.ts +3 -3
- package/src/modeling/DomainAssociation.ts +5 -5
- package/src/modeling/DomainEntity.ts +3 -4
- package/src/modeling/DomainProperty.ts +3 -4
- package/src/modeling/DomainValidation.ts +1 -1
- package/src/modeling/ExposedEntity.ts +63 -9
- package/src/modeling/actions/Action.ts +25 -2
- package/src/modeling/actions/CreateAction.ts +3 -2
- package/src/modeling/actions/DeleteAction.ts +3 -2
- package/src/modeling/actions/ListAction.ts +3 -2
- package/src/modeling/actions/ReadAction.ts +3 -2
- package/src/modeling/actions/SearchAction.ts +3 -2
- package/src/modeling/actions/UpdateAction.ts +3 -2
- package/src/modeling/ai/types.ts +2 -2
- package/src/{amf → modeling/amf}/DataValueGenerator.ts +3 -4
- package/src/modeling/amf/ShapeGenerator.ts +45 -61
- package/src/modeling/amf/core_types.ts +47 -0
- package/src/modeling/types.ts +70 -0
- package/src/modeling/validation/api_model_rules.ts +640 -0
- package/src/modeling/validation/api_model_validation_rules.md +58 -0
- package/src/modeling/validation/association_validation.ts +1 -3
- package/src/models/http-flows/LegacyTranslator.ts +1 -1
- package/src/runtime/http-runner/HttpFlows.ts +1 -1
- package/tests/unit/modeling/actions/Action.spec.ts +40 -8
- package/tests/unit/modeling/actions/CreateAction.spec.ts +5 -5
- package/tests/unit/modeling/actions/DeleteAction.spec.ts +6 -6
- package/tests/unit/modeling/actions/ListAction.spec.ts +7 -7
- package/tests/unit/modeling/actions/ReadAction.spec.ts +6 -6
- package/tests/unit/modeling/actions/SearchAction.spec.ts +6 -6
- package/tests/unit/modeling/actions/UpdateAction.spec.ts +6 -6
- package/tests/unit/{amf → modeling/amf}/data_value_generator.spec.ts +2 -2
- package/tests/unit/modeling/amf/shape_generator.spec.ts +146 -167
- package/tests/unit/modeling/api_model.spec.ts +190 -13
- package/tests/unit/modeling/api_model_expose_entity.spec.ts +43 -19
- package/tests/unit/modeling/api_model_remove_entity.spec.ts +6 -6
- package/tests/unit/modeling/domain_asociation.spec.ts +13 -13
- package/tests/unit/modeling/exposed_entity.spec.ts +123 -3
- package/tests/unit/modeling/exposed_entity_actions.spec.ts +41 -18
- package/tests/unit/modeling/exposed_entity_setter_validation.spec.ts +1 -1
- package/tests/unit/modeling/rules/restoring_rules.spec.ts +9 -5
- package/tests/unit/modeling/validation/api_model_rules.spec.ts +324 -0
- package/tests/unit/runtime/runners/http_assertion_runner.spec.ts +1 -1
- package/tests/unit/runtime/runners/http_flow_runner.spec.ts +1 -1
- package/tests/unit/runtime/runners/project_runner.spec.ts +1 -1
- package/tests/unit/runtime/runners/request_runner.spec.ts +1 -1
- package/tests/unit/runtime/runners/serial_runner.spec.ts +1 -1
- package/tsconfig.browser.json +1 -1
- package/tsconfig.node.json +1 -1
- package/bin/test-web.ts +0 -6
- package/build/src/amf/AmfMixin.d.ts +0 -396
- package/build/src/amf/AmfMixin.d.ts.map +0 -1
- package/build/src/amf/AmfMixin.js +0 -1138
- package/build/src/amf/AmfMixin.js.map +0 -1
- package/build/src/amf/AmfSerializer.d.ts +0 -137
- package/build/src/amf/AmfSerializer.d.ts.map +0 -1
- package/build/src/amf/AmfSerializer.js +0 -1947
- package/build/src/amf/AmfSerializer.js.map +0 -1
- package/build/src/amf/AmfTypes.d.ts +0 -25
- package/build/src/amf/AmfTypes.d.ts.map +0 -1
- package/build/src/amf/AmfTypes.js +0 -143
- package/build/src/amf/AmfTypes.js.map +0 -1
- package/build/src/amf/ApiExampleGenerator.d.ts +0 -40
- package/build/src/amf/ApiExampleGenerator.d.ts.map +0 -1
- package/build/src/amf/ApiExampleGenerator.js +0 -112
- package/build/src/amf/ApiExampleGenerator.js.map +0 -1
- package/build/src/amf/ApiMonacoSchemaGenerator.d.ts +0 -68
- package/build/src/amf/ApiMonacoSchemaGenerator.d.ts.map +0 -1
- package/build/src/amf/ApiMonacoSchemaGenerator.js +0 -248
- package/build/src/amf/ApiMonacoSchemaGenerator.js.map +0 -1
- package/build/src/amf/ApiSchemaGenerator.d.ts +0 -56
- package/build/src/amf/ApiSchemaGenerator.d.ts.map +0 -1
- package/build/src/amf/ApiSchemaGenerator.js +0 -94
- package/build/src/amf/ApiSchemaGenerator.js.map +0 -1
- package/build/src/amf/ApiSchemaValues.d.ts +0 -111
- package/build/src/amf/ApiSchemaValues.d.ts.map +0 -1
- package/build/src/amf/ApiSchemaValues.js +0 -463
- package/build/src/amf/ApiSchemaValues.js.map +0 -1
- package/build/src/amf/DataValueGenerator.d.ts.map +0 -1
- package/build/src/amf/DataValueGenerator.js.map +0 -1
- package/build/src/amf/Parsing.d.ts +0 -48
- package/build/src/amf/Parsing.d.ts.map +0 -1
- package/build/src/amf/Parsing.js +0 -2
- package/build/src/amf/Parsing.js.map +0 -1
- package/build/src/amf/Utils.d.ts +0 -37
- package/build/src/amf/Utils.d.ts.map +0 -1
- package/build/src/amf/Utils.js +0 -169
- package/build/src/amf/Utils.js.map +0 -1
- package/build/src/amf/data-node/DataNodeBase.d.ts +0 -34
- package/build/src/amf/data-node/DataNodeBase.d.ts.map +0 -1
- package/build/src/amf/data-node/DataNodeBase.js +0 -77
- package/build/src/amf/data-node/DataNodeBase.js.map +0 -1
- package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts +0 -15
- package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts.map +0 -1
- package/build/src/amf/data-node/JsonDataNodeGenerator.js +0 -23
- package/build/src/amf/data-node/JsonDataNodeGenerator.js.map +0 -1
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts +0 -14
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts.map +0 -1
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js +0 -48
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js.map +0 -1
- package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts +0 -22
- package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts.map +0 -1
- package/build/src/amf/data-node/XmlDataNodeGenerator.js +0 -34
- package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +0 -1
- package/build/src/amf/definitions/Amf.d.ts +0 -363
- package/build/src/amf/definitions/Amf.d.ts.map +0 -1
- package/build/src/amf/definitions/Amf.js +0 -3
- package/build/src/amf/definitions/Amf.js.map +0 -1
- package/build/src/amf/definitions/Api.d.ts +0 -383
- package/build/src/amf/definitions/Api.d.ts.map +0 -1
- package/build/src/amf/definitions/Api.js +0 -2
- package/build/src/amf/definitions/Api.js.map +0 -1
- package/build/src/amf/definitions/Base.d.ts +0 -12
- package/build/src/amf/definitions/Base.d.ts.map +0 -1
- package/build/src/amf/definitions/Base.js +0 -2
- package/build/src/amf/definitions/Base.js.map +0 -1
- package/build/src/amf/definitions/Namespace.d.ts +0 -327
- package/build/src/amf/definitions/Namespace.d.ts.map +0 -1
- package/build/src/amf/definitions/Namespace.js +0 -346
- package/build/src/amf/definitions/Namespace.js.map +0 -1
- package/build/src/amf/definitions/Shapes.d.ts +0 -312
- package/build/src/amf/definitions/Shapes.d.ts.map +0 -1
- package/build/src/amf/definitions/Shapes.js +0 -87
- package/build/src/amf/definitions/Shapes.js.map +0 -1
- package/build/src/amf/models/AmfDataNode.d.ts +0 -67
- package/build/src/amf/models/AmfDataNode.d.ts.map +0 -1
- package/build/src/amf/models/AmfDataNode.js +0 -192
- package/build/src/amf/models/AmfDataNode.js.map +0 -1
- package/build/src/amf/shape/ShapeBase.d.ts +0 -74
- package/build/src/amf/shape/ShapeBase.d.ts.map +0 -1
- package/build/src/amf/shape/ShapeBase.js +0 -93
- package/build/src/amf/shape/ShapeBase.js.map +0 -1
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts +0 -47
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts.map +0 -1
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js +0 -420
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +0 -1
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +0 -85
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts.map +0 -1
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js +0 -852
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +0 -1
- package/build/src/events/amf/AmfEventTypes.d.ts +0 -7
- package/build/src/events/amf/AmfEventTypes.d.ts.map +0 -1
- package/build/src/events/amf/AmfEventTypes.js +0 -7
- package/build/src/events/amf/AmfEventTypes.js.map +0 -1
- package/build/src/events/amf/AmfEvents.d.ts +0 -34
- package/build/src/events/amf/AmfEvents.d.ts.map +0 -1
- package/build/src/events/amf/AmfEvents.js +0 -63
- package/build/src/events/amf/AmfEvents.js.map +0 -1
- package/build/src/mocking/RandExp.d.ts +0 -55
- package/build/src/mocking/RandExp.d.ts.map +0 -1
- package/build/src/mocking/RandExp.js +0 -302
- package/build/src/mocking/RandExp.js.map +0 -1
- package/build/src/mocking/lib/ret.d.ts +0 -16
- package/build/src/mocking/lib/ret.d.ts.map +0 -1
- package/build/src/mocking/lib/ret.js +0 -284
- package/build/src/mocking/lib/ret.js.map +0 -1
- package/data/apis/APIC-187/APIC-187.raml +0 -21
- package/data/apis/APIC-187/dataType.raml +0 -132
- package/data/apis/APIC-187/example.raml +0 -84
- package/data/apis/APIC-188/APIC-188.raml +0 -21
- package/data/apis/APIC-188/dataType.raml +0 -132
- package/data/apis/APIC-188/example.raml +0 -84
- package/data/apis/APIC-233/APIC-233.raml +0 -15
- package/data/apis/APIC-391/APIC-391.raml +0 -44
- package/data/apis/APIC-391/examples/post-body-request-example.raml +0 -7
- package/data/apis/APIC-483/APIC-483.raml +0 -16
- package/data/apis/APIC-483/example/list-of-bank-succ.json +0 -32
- package/data/apis/APIC-483/schema/response-retrieve-list-bank.json +0 -68
- package/data/apis/APIC-487/APIC-487.raml +0 -36
- package/data/apis/APIC-655/APIC-655.raml +0 -44
- package/data/apis/APIC-655/delivery.json +0 -12
- package/data/apis/APIC-689/APIC-689.raml +0 -20
- package/data/apis/APIC-690/APIC-690.raml +0 -17
- package/data/apis/APIC-690/datatypes/Address.raml +0 -10
- package/data/apis/APIC-690/datatypes/Customer.raml +0 -17
- package/data/apis/APIC-690/examples/CustomerExample2.raml +0 -17
- package/data/apis/APIC-690/examples/CustomersExample.raml +0 -34
- package/data/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +0 -1383
- package/data/apis/SE-10469/SE-10469.raml +0 -11
- package/data/apis/SE-13092/Examples/PersonExample.raml +0 -7
- package/data/apis/SE-13092/SE-13092.raml +0 -37
- package/data/apis/SE-13092/datatypes/Address.raml +0 -5
- package/data/apis/SE-13092/datatypes/InlineType.raml +0 -5
- package/data/apis/SE-13092/datatypes/Person.raml +0 -15
- package/data/apis/SE-22063/SE-22063.raml +0 -14
- package/data/apis/SE-22063/stock.raml +0 -41
- package/data/apis/amf-helper-api/amf-helper-api.raml +0 -1024
- package/data/apis/amf-helper-api/examples/comment-example.json +0 -42
- package/data/apis/amf-helper-api/examples/commentCreateRequest-example.json +0 -7
- package/data/apis/amf-helper-api/examples/commentList-example.json +0 -48
- package/data/apis/amf-helper-api/examples/person.json +0 -14
- package/data/apis/amf-helper-api/examples/person.raml +0 -13
- package/data/apis/amf-helper-api/examples/person.xml +0 -14
- package/data/apis/amf-helper-api/libraries/comment-lib.raml +0 -143
- package/data/apis/amf-helper-api/library.raml +0 -7
- package/data/apis/amf-helper-api/schemas/person.json +0 -104
- package/data/apis/amf-helper-api/schemas/person.xsd +0 -26
- package/data/apis/amf-helper-api/traits/file.raml +0 -33
- package/data/apis/amf-helper-api/traits/pagination.raml +0 -80
- package/data/apis/amf-helper-api/traits/results.raml +0 -19
- package/data/apis/amf-helper-api/traits/visibility.raml +0 -14
- package/data/apis/amf-helper-api/types/app-person.raml +0 -101
- package/data/apis/amf-helper-api/types/dimensions.raml +0 -24
- package/data/apis/amf-helper-api/types/external-type.raml +0 -7
- package/data/apis/amf-helper-api/types/image.raml +0 -23
- package/data/apis/amf-helper-api/types/product.raml +0 -52
- package/data/apis/amf-helper-api/types/resource.raml +0 -11
- package/data/apis/amf-helper-api/types/standard-request.raml +0 -50
- package/data/apis/amf-helper-api/types/user.raml +0 -37
- package/data/apis/arc-demo-api/arc-demo-api.raml +0 -468
- package/data/apis/arc-demo-api/examples/e400.xml +0 -4
- package/data/apis/arc-demo-api/examples/e401.xml +0 -4
- package/data/apis/arc-demo-api/examples/e404.xml +0 -4
- package/data/apis/arc-demo-api/examples/image.xml +0 -5
- package/data/apis/arc-demo-api/examples/messages-example.json +0 -22
- package/data/apis/arc-demo-api/examples/messages-sent-example.json +0 -15
- package/data/apis/arc-demo-api/examples/person.json +0 -14
- package/data/apis/arc-demo-api/examples/person.url.encoded +0 -1
- package/data/apis/arc-demo-api/examples/person.xml +0 -14
- package/data/apis/arc-demo-api/examples/product.xml +0 -9
- package/data/apis/arc-demo-api/library.raml +0 -36
- package/data/apis/arc-demo-api/resourceTypes/app-person.raml +0 -49
- package/data/apis/arc-demo-api/resourceTypes/example-types.raml +0 -45
- package/data/apis/arc-demo-api/resourceTypes/image.raml +0 -23
- package/data/apis/arc-demo-api/resourceTypes/message-sent-type.raml +0 -23
- package/data/apis/arc-demo-api/resourceTypes/message-type.raml +0 -33
- package/data/apis/arc-demo-api/resourceTypes/product.raml +0 -52
- package/data/apis/arc-demo-api/resourceTypes/resource.raml +0 -11
- package/data/apis/arc-demo-api/schemas/error-response.xsd +0 -11
- package/data/apis/arc-demo-api/schemas/image.xsd +0 -11
- package/data/apis/arc-demo-api/schemas/person.json +0 -104
- package/data/apis/arc-demo-api/schemas/person.xsd +0 -26
- package/data/apis/arc-demo-api/schemas/product.xsd +0 -17
- package/data/apis/arc-demo-api/securitySchemes/basic.raml +0 -5
- package/data/apis/arc-demo-api/securitySchemes/oauth_2_0.raml +0 -29
- package/data/apis/arc-demo-api/securitySchemes/x-custom.raml +0 -26
- package/data/apis/arc-demo-api/traits/adminable.raml +0 -23
- package/data/apis/arc-demo-api/traits/pagination.raml +0 -83
- package/data/apis/arc-demo-api/traits/rate-limited.raml +0 -9
- package/data/apis/async-api/async-api.yaml +0 -96
- package/data/apis/example-generator-api/contact-email-example.raml +0 -6
- package/data/apis/example-generator-api/contact-example.raml +0 -5
- package/data/apis/example-generator-api/contact-fax-example.raml +0 -5
- package/data/apis/example-generator-api/contact-website-example.raml +0 -2
- package/data/apis/example-generator-api/example-1.raml +0 -6
- package/data/apis/example-generator-api/example-2.raml +0 -9
- package/data/apis/example-generator-api/example-3.raml +0 -4
- package/data/apis/example-generator-api/example-4.raml +0 -2
- package/data/apis/example-generator-api/example-5.raml +0 -4
- package/data/apis/example-generator-api/example-6.raml +0 -2
- package/data/apis/example-generator-api/example-7.raml +0 -5
- package/data/apis/example-generator-api/example-generator-api.raml +0 -423
- package/data/apis/example-generator-api/example.json +0 -14
- package/data/apis/example-generator-api/example.xml +0 -15
- package/data/apis/example-generator-api/example.xsd +0 -26
- package/data/apis/example-generator-api/examples/employee.raml +0 -7
- package/data/apis/example-generator-api/examples/employees.raml +0 -7
- package/data/apis/example-generator-api/linked-named-example.raml +0 -21
- package/data/apis/example-generator-api/named-example-with-link.raml +0 -5
- package/data/apis/example-generator-api/named-example.raml +0 -9
- package/data/apis/example-generator-api/user-json-example.raml +0 -17
- package/data/apis/example-generator-api/user-raml-example.raml +0 -37
- package/data/apis/example-generator-api/user.json +0 -8
- package/data/apis/example-generator-api/user.raml +0 -18
- package/data/apis/example-generator-api/users-json-example.raml +0 -17
- package/data/apis/example-generator-api/users-raml-example.raml +0 -32
- package/data/apis/example-generator-api/users.json +0 -8
- package/data/apis/expanded-api/expanded-api.raml +0 -8
- package/data/apis/flattened-api/flattened-api.raml +0 -8
- package/data/apis/multiple-servers/multiple-servers.yaml +0 -112
- package/data/apis/oas-3-api/oas-3-api.yaml +0 -356
- package/data/apis/oas-date/oas-date.yaml +0 -28
- package/data/apis/oas-types/oas-types.yaml +0 -159
- package/data/apis/oas-unions/oas-unions.yaml +0 -75
- package/data/apis/petstore/petstore.yaml +0 -954
- package/data/apis/raml-date/raml-date.raml +0 -28
- package/data/apis/recursive/recursive.raml +0 -14
- package/data/apis/schema-api/examples/person.json +0 -14
- package/data/apis/schema-api/examples/person.raml +0 -14
- package/data/apis/schema-api/examples/person.url.encoded +0 -1
- package/data/apis/schema-api/examples/person.xml +0 -14
- package/data/apis/schema-api/library/demo-types.raml +0 -43
- package/data/apis/schema-api/schema-api.raml +0 -656
- package/data/apis/schema-api/schemas/person.json +0 -104
- package/data/apis/schema-api/schemas/person.xsd +0 -26
- package/data/apis/schema-api/types/DemoPerson.raml +0 -67
- package/data/apis/secured-api/oauth-2-custom-settings.raml +0 -143
- package/data/apis/secured-api/oauth2-header-delivery.raml +0 -13
- package/data/apis/secured-api/oauth2-no-delivery.raml +0 -8
- package/data/apis/secured-api/oauth2-no-grants.raml +0 -12
- package/data/apis/secured-api/oauth2-pkce.raml +0 -13
- package/data/apis/secured-api/oauth2-query-delivery.raml +0 -13
- package/data/apis/secured-api/oauth_1_0.raml +0 -8
- package/data/apis/secured-api/oauth_1_0_no-settings.raml +0 -3
- package/data/apis/secured-api/oauth_1_0_no-signature.raml +0 -7
- package/data/apis/secured-api/oauth_1_0_signature.raml +0 -8
- package/data/apis/secured-api/passthrough-querystring.raml +0 -16
- package/data/apis/secured-api/passthrough.raml +0 -24
- package/data/apis/secured-api/secured-api.raml +0 -231
- package/data/apis/secured-api/x-custom.raml +0 -33
- package/data/apis/secured-api/x-other.raml +0 -29
- package/data/apis/secured-api/x-query-string.raml +0 -16
- package/data/apis/tracked-examples/datatypes/employee.raml +0 -5
- package/data/apis/tracked-examples/examples/employee.raml +0 -4
- package/data/apis/tracked-examples/examples/employees.raml +0 -8
- package/data/apis/tracked-examples/tracked-to-linked.raml +0 -28
- package/data/model.js +0 -129
- package/data/models/APIC-187.json +0 -11416
- package/data/models/APIC-188.json +0 -11416
- package/data/models/APIC-233.json +0 -539
- package/data/models/APIC-391.json +0 -1903
- package/data/models/APIC-483.json +0 -3110
- package/data/models/APIC-487.json +0 -1225
- package/data/models/APIC-655.json +0 -3145
- package/data/models/APIC-689.json +0 -797
- package/data/models/APIC-690.json +0 -5992
- package/data/models/SE-10469.json +0 -22898
- package/data/models/SE-13092.json +0 -2769
- package/data/models/SE-22063.json +0 -2314
- package/data/models/amf-helper-api.json +0 -84457
- package/data/models/arc-demo-api.json +0 -52041
- package/data/models/async-api.json +0 -3227
- package/data/models/example-generator-api.json +0 -45209
- package/data/models/expanded-api.json +0 -251
- package/data/models/flattened-api.json +0 -251
- package/data/models/multiple-servers.json +0 -2769
- package/data/models/oas-3-api.json +0 -10590
- package/data/models/oas-date.json +0 -637
- package/data/models/oas-types.json +0 -5352
- package/data/models/oas-unions.json +0 -1935
- package/data/models/petstore.json +0 -27712
- package/data/models/raml-date.json +0 -1114
- package/data/models/recursive.json +0 -610
- package/data/models/schema-api.json +0 -35527
- package/data/models/secured-api.json +0 -21071
- package/data/models/tracked-to-linked.json +0 -1914
- package/src/amf/AmfMixin.ts +0 -1726
- package/src/amf/AmfSerializer.ts +0 -2358
- package/src/amf/AmfTypes.ts +0 -147
- package/src/amf/ApiExampleGenerator.ts +0 -122
- package/src/amf/ApiMonacoSchemaGenerator.ts +0 -332
- package/src/amf/ApiSchemaGenerator.ts +0 -115
- package/src/amf/ApiSchemaValues.ts +0 -509
- package/src/amf/Parsing.ts +0 -50
- package/src/amf/Utils.ts +0 -172
- package/src/amf/data-node/DataNodeBase.ts +0 -83
- package/src/amf/data-node/JsonDataNodeGenerator.ts +0 -24
- package/src/amf/data-node/README.md +0 -3
- package/src/amf/data-node/UrlEncodedDataNodeGenerator.ts +0 -49
- package/src/amf/data-node/XmlDataNodeGenerator.ts +0 -46
- package/src/amf/definitions/Amf.ts +0 -440
- package/src/amf/definitions/Api.ts +0 -445
- package/src/amf/definitions/Base.ts +0 -13
- package/src/amf/definitions/Namespace.ts +0 -357
- package/src/amf/definitions/Shapes.ts +0 -438
- package/src/amf/models/AmfDataNode.ts +0 -210
- package/src/amf/shape/README.md +0 -4
- package/src/amf/shape/ShapeBase.ts +0 -174
- package/src/amf/shape/ShapeJsonSchemaGenerator.ts +0 -457
- package/src/amf/shape/ShapeXmlSchemaGenerator.ts +0 -933
- package/src/events/amf/AmfEventTypes.ts +0 -6
- package/src/events/amf/AmfEvents.ts +0 -78
- package/src/mocking/RandExp.ts +0 -335
- package/src/mocking/lib/ret.ts +0 -279
- package/tests/unit/amf/APIC-187.spec.ts +0 -41
- package/tests/unit/amf/APIC-188.spec.ts +0 -30
- package/tests/unit/amf/APIC-233.spec.ts +0 -32
- package/tests/unit/amf/APIC-391.spec.ts +0 -39
- package/tests/unit/amf/APIC-487.spec.ts +0 -44
- package/tests/unit/amf/APIC-655.spec.ts +0 -41
- package/tests/unit/amf/APIC-689.spec.ts +0 -28
- package/tests/unit/amf/APIC-690.spec.ts +0 -93
- package/tests/unit/amf/AmfLoader.ts +0 -538
- package/tests/unit/amf/AmfMixin.spec.ts +0 -1707
- package/tests/unit/amf/ApiExampleGenerator.spec.ts +0 -250
- package/tests/unit/amf/ApiMonacoSchemaGenerator.spec.ts +0 -183
- package/tests/unit/amf/ApiSchemaValues.spec.ts +0 -602
- package/tests/unit/amf/Namepsace.spec.ts +0 -494
- package/tests/unit/amf/SE-10469.spec.ts +0 -35
- package/tests/unit/amf/SE-13092.spec.ts +0 -64
- package/tests/unit/amf/SE-22063.spec.ts +0 -45
- package/tests/unit/amf/raml-examples.spec.ts +0 -43
- package/tests/unit/amf/schema_gen_array.spec.ts +0 -199
- package/tests/unit/amf/schema_gen_oas.spec.ts +0 -140
- package/tests/unit/amf/schema_gen_object.spec.ts +0 -279
- package/tests/unit/amf/schema_gen_scalar.spec.ts +0 -143
- package/tests/unit/amf/schema_gen_union.spec.ts +0 -401
- package/tests/unit/amf/schema_gen_unknown.spec.ts +0 -42
- package/tests/unit/amf/schema_gen_xml.spec.ts +0 -726
- package/tests/unit/amf/serializer/APIC-483.spec.ts +0 -36
- package/tests/unit/amf/serializer/Anotations.spec.ts +0 -50
- package/tests/unit/amf/serializer/Api.spec.ts +0 -210
- package/tests/unit/amf/serializer/Documentation.spec.ts +0 -52
- package/tests/unit/amf/serializer/Endpoints.spec.ts +0 -172
- package/tests/unit/amf/serializer/Operations.spec.ts +0 -330
- package/tests/unit/amf/serializer/Parameters.spec.ts +0 -149
- package/tests/unit/amf/serializer/PayloadExamples.spec.ts +0 -152
- package/tests/unit/amf/serializer/Security.spec.ts +0 -626
- package/tests/unit/amf/serializer/Server.spec.ts +0 -78
- package/tests/unit/amf/serializer/Shapes.spec.ts +0 -304
- package/tests/unit/amf/serializer/SourceMaps.spec.ts +0 -52
- package/tests/unit/amf/shapes/ShapeXmlSchemaGenerator.spec.ts +0 -28
- package/tests/unit/amf/tracked-to-linked.spec.ts +0 -90
- package/tests/unit/amf/xml-data-processing.spec.ts +0 -217
- package/tests/unit/events/amf.spec.ts +0 -151
package/LICENSE.md
CHANGED
|
@@ -1,69 +1,15 @@
|
|
|
1
|
-
# API Client
|
|
1
|
+
# API Client Ecosystem License
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copyright (c) 2025 API Client (name TBD)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, merge, publish, and distribute the Software **exclusively within the API Client ecosystem**.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
Version 2.0,
|
|
9
|
-
January 2004
|
|
7
|
+
**Restrictions:**
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
- The Software may not be used, copied, modified, merged, published, or distributed outside of the API Client ecosystem.
|
|
10
|
+
- The Software may not be sublicensed, sold, or used as part of any product or service that is not part of the API Client ecosystem.
|
|
11
|
+
- Any use of the Software outside the API Client ecosystem is strictly prohibited.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
18
|
-
|
|
19
|
-
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
20
|
-
|
|
21
|
-
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
24
|
-
|
|
25
|
-
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
26
|
-
|
|
27
|
-
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
28
|
-
|
|
29
|
-
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
30
|
-
|
|
31
|
-
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
32
|
-
|
|
33
|
-
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
34
|
-
|
|
35
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
36
|
-
|
|
37
|
-
2. Grant of Copyright License.
|
|
38
|
-
|
|
39
|
-
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
40
|
-
|
|
41
|
-
3. Grant of Patent License.
|
|
42
|
-
|
|
43
|
-
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
44
|
-
|
|
45
|
-
4. Redistribution.
|
|
46
|
-
|
|
47
|
-
You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
48
|
-
|
|
49
|
-
You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
50
|
-
|
|
51
|
-
5. Submission of Contributions.
|
|
52
|
-
|
|
53
|
-
Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
54
|
-
|
|
55
|
-
6. Trademarks.
|
|
56
|
-
|
|
57
|
-
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
58
|
-
|
|
59
|
-
7. Disclaimer of Warranty.
|
|
60
|
-
|
|
61
|
-
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
62
|
-
|
|
63
|
-
8. Limitation of Liability.
|
|
64
|
-
|
|
65
|
-
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
66
|
-
|
|
67
|
-
9. Accepting Warranty or Additional Liability.
|
|
68
|
-
|
|
69
|
-
While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
15
|
+
For questions about permitted use, please contact: <info@apinow.app>
|
package/Testing.md
CHANGED
|
@@ -16,6 +16,6 @@ Most core libraries are also tested in the browser. We use the `@web/test-runner
|
|
|
16
16
|
|
|
17
17
|
### WTR Limitations
|
|
18
18
|
|
|
19
|
-
The web test runner requires an interactive mode to run. When using the watch mode we need to run two processes, one for compiling TS in watch mode, and the other to run tests in watch mode. This can't be done using `concurrently`
|
|
19
|
+
The web test runner requires an interactive mode to run. When using the watch mode we need to run two processes, one for compiling TS in watch mode, and the other to run tests in watch mode. This can't be done using `concurrently` as `concurrently` does not pass keyboard input to the process (perhaps a bug). There is an [https://github.com/modernweb-dev/web/issues/19](issue report) requesting to allow WTR running in non-interactive mode but for now we need to do this manually.
|
|
20
20
|
|
|
21
21
|
This means, run the `build:watch` command in one terminal first, and then `test:watch-only` in the other.
|
package/bin/test.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-restricted-globals */
|
|
2
2
|
import { configure, processCLIArgs, run } from '@japa/runner'
|
|
3
3
|
import { assert, type Assert } from '@japa/assert'
|
|
4
|
-
import { apiClient, type ApiClient } from '@japa/api-client'
|
|
5
|
-
import { expectTypeOf } from '@japa/expect-type'
|
|
6
|
-
import { browserClient } from '@japa/browser-client'
|
|
7
4
|
import { TestContext } from '@japa/runner/core'
|
|
8
5
|
import Servers from './server.js'
|
|
9
6
|
import { SetupHttpConfig } from './context.js'
|
|
@@ -40,14 +37,7 @@ configure({
|
|
|
40
37
|
},
|
|
41
38
|
},
|
|
42
39
|
],
|
|
43
|
-
plugins: [
|
|
44
|
-
assert(),
|
|
45
|
-
apiClient('http://localhost:3333'),
|
|
46
|
-
expectTypeOf(),
|
|
47
|
-
browserClient({ runInSuites: ['browser'] }),
|
|
48
|
-
events(),
|
|
49
|
-
sinon(),
|
|
50
|
-
],
|
|
40
|
+
plugins: [assert(), events(), sinon()],
|
|
51
41
|
reporters: {
|
|
52
42
|
activated,
|
|
53
43
|
list: [reporters.spec(), reporters.ndjson(), reporters.dot(), reporters.github()],
|
|
@@ -58,7 +48,6 @@ run()
|
|
|
58
48
|
|
|
59
49
|
declare module '@japa/runner' {
|
|
60
50
|
interface TestContext {
|
|
61
|
-
client: ApiClient
|
|
62
51
|
assert: Assert
|
|
63
52
|
}
|
|
64
53
|
}
|
package/build/src/browser.d.ts
CHANGED
|
@@ -82,21 +82,6 @@ export { ExposedEntity } from './modeling/ExposedEntity.js';
|
|
|
82
82
|
export * from './modeling/ai/index.js';
|
|
83
83
|
export { type AiMessage, type AiMessageRole, type AiMessageSchema, type AiMessageState, AiModelMessage, type AiModelMessageSchema, AiUserMessage, type AiUserMessageSchema, AiModelDataDomainMessage, } from './models/AiMessage.js';
|
|
84
84
|
export { AiSession, type AiSessionSchema, type AiSessionApp } from './models/AiSession.js';
|
|
85
|
-
export { AmfNamespace } from './amf/definitions/Namespace.js';
|
|
86
|
-
export * as ApiDefinitions from './amf/definitions/Api.js';
|
|
87
|
-
export * as AmfDefinitions from './amf/definitions/Amf.js';
|
|
88
|
-
export * as AmfShapes from './amf/definitions/Shapes.js';
|
|
89
|
-
export * as AmfBase from './amf/definitions/Base.js';
|
|
90
|
-
export { ApiExampleGenerator } from './amf/ApiExampleGenerator.js';
|
|
91
|
-
export { ApiMonacoSchemaGenerator, IMonacoArrayProperty, IMonacoObjectProperty, IMonacoProperty, IMonacoScalarProperty, IMonacoSchema, } from './amf/ApiMonacoSchemaGenerator.js';
|
|
92
|
-
export { ApiSchemaValues, IApiSchemaReadOptions } from './amf/ApiSchemaValues.js';
|
|
93
|
-
export { ApiSchemaGenerator, ISchemaExample } from './amf/ApiSchemaGenerator.js';
|
|
94
|
-
export { AmfSerializer } from './amf/AmfSerializer.js';
|
|
95
|
-
export { AmfMixin, ServersQueryOptions } from './amf/AmfMixin.js';
|
|
96
|
-
export * as AmfTypes from './amf/AmfTypes.js';
|
|
97
|
-
export * as AmfParsing from './amf/Parsing.js';
|
|
98
|
-
export * as AmfUtils from './amf/Utils.js';
|
|
99
|
-
export { IApiDomainProperty, IApiCustomDomainProperty } from './amf/definitions/Base.js';
|
|
100
85
|
export { PayloadSerializer, ISafePayload, IMultipartBody, Payload, DeserializedPayload, IBlobMeta, IFileMeta, } from './lib/transformers/PayloadSerializer.js';
|
|
101
86
|
export { Headers } from './lib/headers/Headers.js';
|
|
102
87
|
export * as EventUtils from './lib/events/Utils.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"AAKA,cAAc,mBAAmB,CAAA;AAKjC,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,SAAS,E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BAAqB,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
|
@@ -82,23 +82,6 @@ export * from './modeling/ai/index.js';
|
|
|
82
82
|
export { AiModelMessage, AiUserMessage, AiModelDataDomainMessage, } from './models/AiMessage.js';
|
|
83
83
|
export { AiSession } from './models/AiSession.js';
|
|
84
84
|
//
|
|
85
|
-
// AMF
|
|
86
|
-
//
|
|
87
|
-
export { AmfNamespace } from './amf/definitions/Namespace.js';
|
|
88
|
-
export * as ApiDefinitions from './amf/definitions/Api.js';
|
|
89
|
-
export * as AmfDefinitions from './amf/definitions/Amf.js';
|
|
90
|
-
export * as AmfShapes from './amf/definitions/Shapes.js';
|
|
91
|
-
export * as AmfBase from './amf/definitions/Base.js';
|
|
92
|
-
export { ApiExampleGenerator } from './amf/ApiExampleGenerator.js';
|
|
93
|
-
export { ApiMonacoSchemaGenerator, } from './amf/ApiMonacoSchemaGenerator.js';
|
|
94
|
-
export { ApiSchemaValues } from './amf/ApiSchemaValues.js';
|
|
95
|
-
export { ApiSchemaGenerator } from './amf/ApiSchemaGenerator.js';
|
|
96
|
-
export { AmfSerializer } from './amf/AmfSerializer.js';
|
|
97
|
-
export { AmfMixin } from './amf/AmfMixin.js';
|
|
98
|
-
export * as AmfTypes from './amf/AmfTypes.js';
|
|
99
|
-
export * as AmfParsing from './amf/Parsing.js';
|
|
100
|
-
export * as AmfUtils from './amf/Utils.js';
|
|
101
|
-
//
|
|
102
85
|
// Libs
|
|
103
86
|
//
|
|
104
87
|
export { PayloadSerializer, } from './lib/transformers/PayloadSerializer.js';
|
package/build/src/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.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CAAgC,CAAA;AAErE,EAAE;AACF,MAAM;AACN,EAAE;AACF,cAAc,sBAAsB,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,OAAO,EAAwC,MAAM,kBAAkB,CAAA;AAEhF,EAAE;AACF,sBAAsB;AACtB,EAAE;AACF,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAE1D,EAAE;AACF,UAAU;AACV,EAAE;AACF,cAAc,0BAA0B,CAAA;AAExC,EAAE;AACF,cAAc;AACd,EAAE;AACF,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAEpE,EAAE;AACF,SAAS;AACT,EAAE;AACF,OAAO,EAAE,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 { GroupSchema, Group } 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 PermissionSourceRule,\n} from './models/store/Permission.js'\nexport { IRevision, IRevisionListItem } from './models/store/Revision.js'\nexport { IEmail, IUserPicture, IUser, Kind as UserKind, type UserStatus } from './models/store/User.js'\nexport { IUserIdentity, Kind as UserIdentityKind, UserIdentity } from './models/store/UserIdentity.js'\nexport { type IOrganization, Organization, type UserOrganizationGrantType } from './models/store/Organization.js'\nexport { type InvitationSchema, type InvitationStatus, Invitation } from './models/store/Invitation.js'\nexport { IModification } from './models/store/Modification.js'\nexport { IDeletion } from './models/store/Deletion.js'\nexport {\n DataCatalog,\n DataCatalogSchema,\n DataCatalogSchemaWithVersion,\n DataCatalogScope,\n DataCatalogStatus,\n DataCatalogVersionInfo,\n} from './models/DataCatalog.js'\nexport { DataCatalogLifecycle, DataCatalogVersion, DataCatalogVersionSchema } from './models/DataCatalogVersion.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, type OnDeleteRule } 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, type IDomainFile } from './modeling/DomainFile.js'\nexport { ApiFile, type IApiFile } from './modeling/ApiFile.js'\nexport { type DomainValidation } from './modeling/validation/rules.js'\nexport { EntityValidation } from './modeling/validation/entity_validation.js'\nexport { PropertyValidation } from './modeling/validation/property_validation.js'\nexport { AssociationValidation } from './modeling/validation/association_validation.js'\nexport * from './modeling/Semantics.js'\nexport { ApiModel, type ApiModelSchema, type ApiContact, type ApiLicense } from './modeling/ApiModel.js'\nexport { ExposedEntity } from './modeling/ExposedEntity.js'\nexport * from './modeling/ai/index.js'\nexport {\n type AiMessage,\n type AiMessageRole,\n type AiMessageSchema,\n type AiMessageState,\n AiModelMessage,\n type AiModelMessageSchema,\n AiUserMessage,\n type AiUserMessageSchema,\n AiModelDataDomainMessage,\n} from './models/AiMessage.js'\nexport { AiSession, type AiSessionSchema, type AiSessionApp } from './models/AiSession.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 { 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 './sdk/StoreSdkWeb.js'\nexport { RouteBuilder } from './sdk/RouteBuilder.js'\nexport { AuthProviders, AuthRedirectOptions } from './sdk/AuthSdk.js'\nexport { SdkMock, type MockListResult, type MockResult } from './sdk/SdkMock.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,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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 { GroupSchema, Group } 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 PermissionSourceRule,\n} from './models/store/Permission.js'\nexport { IRevision, IRevisionListItem } from './models/store/Revision.js'\nexport { IEmail, IUserPicture, IUser, Kind as UserKind, type UserStatus } from './models/store/User.js'\nexport { IUserIdentity, Kind as UserIdentityKind, UserIdentity } from './models/store/UserIdentity.js'\nexport { type IOrganization, Organization, type UserOrganizationGrantType } from './models/store/Organization.js'\nexport { type InvitationSchema, type InvitationStatus, Invitation } from './models/store/Invitation.js'\nexport { IModification } from './models/store/Modification.js'\nexport { IDeletion } from './models/store/Deletion.js'\nexport {\n DataCatalog,\n DataCatalogSchema,\n DataCatalogSchemaWithVersion,\n DataCatalogScope,\n DataCatalogStatus,\n DataCatalogVersionInfo,\n} from './models/DataCatalog.js'\nexport { DataCatalogLifecycle, DataCatalogVersion, DataCatalogVersionSchema } from './models/DataCatalogVersion.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, type OnDeleteRule } 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, type IDomainFile } from './modeling/DomainFile.js'\nexport { ApiFile, type IApiFile } from './modeling/ApiFile.js'\nexport { type DomainValidation } from './modeling/validation/rules.js'\nexport { EntityValidation } from './modeling/validation/entity_validation.js'\nexport { PropertyValidation } from './modeling/validation/property_validation.js'\nexport { AssociationValidation } from './modeling/validation/association_validation.js'\nexport * from './modeling/Semantics.js'\nexport { ApiModel, type ApiModelSchema, type ApiContact, type ApiLicense } from './modeling/ApiModel.js'\nexport { ExposedEntity } from './modeling/ExposedEntity.js'\nexport * from './modeling/ai/index.js'\nexport {\n type AiMessage,\n type AiMessageRole,\n type AiMessageSchema,\n type AiMessageState,\n AiModelMessage,\n type AiModelMessageSchema,\n AiUserMessage,\n type AiUserMessageSchema,\n AiModelDataDomainMessage,\n} from './models/AiMessage.js'\nexport { AiSession, type AiSessionSchema, type AiSessionApp } from './models/AiSession.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 { 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 './sdk/StoreSdkWeb.js'\nexport { RouteBuilder } from './sdk/RouteBuilder.js'\nexport { AuthProviders, AuthRedirectOptions } from './sdk/AuthSdk.js'\nexport { SdkMock, type MockListResult, type MockResult } from './sdk/SdkMock.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observed.d.ts","sourceRoot":"","sources":["../../../src/decorators/observed.ts"],"names":[],"mappings":"AAKA,UAAU,cAAc;IACtB,MAAM,CAAC,EAAE;QAAE,YAAY,IAAI,IAAI,CAAA;KAAE,CAAA;IACjC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAEhC,CAAC,CAAC,SAAS,cAAc,EAAE,CAAC,EAC1B,MAAM,EAAE,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1C,OAAO,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3C,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAErC,CAAC,CAAC,SAAS,cAAc,EAAE,CAAC,EAC1B,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAC1B,OAAO,EAAE,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC,GACzC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;CAC/B;AAED,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAC5G,KAAK,sBAAsB,CAAC,CAAC,EAAE,CAAC,IAAI,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,CAAA;AAE7F,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAqCD;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MA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;GAKG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAwBzF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,QAAQ,CAAC,MAAM,GAAE,aAAkB,GAAG,iBAAiB,CA4MtE;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,KACpB,CAAC,SAAS,cAAc,EAAE,CAAC,SAAS,WAAW,GAAG,SAAS,EACjE,QAAQ,sBAAsB,CAAC,CAAC,EAAE,CAAC,CAAC,EACpC,SAAS,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,KACrC,GAAG,CAiEP"}
|
|
@@ -127,6 +127,74 @@ export function observed(config = {}) {
|
|
|
127
127
|
return target;
|
|
128
128
|
}
|
|
129
129
|
const value = Reflect.get(target, prop);
|
|
130
|
+
if (typeof value === 'function') {
|
|
131
|
+
if (target instanceof Map || target instanceof Set) {
|
|
132
|
+
if (['set', 'add', 'delete', 'clear'].includes(prop)) {
|
|
133
|
+
return (...args) => {
|
|
134
|
+
if (prop === 'set' && target.get(args[0]) === args[1]) {
|
|
135
|
+
return target;
|
|
136
|
+
}
|
|
137
|
+
if (prop === 'delete' && !target.has(args[0])) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
if (prop === 'clear' && target.size === 0) {
|
|
141
|
+
return undefined;
|
|
142
|
+
}
|
|
143
|
+
const result = value.apply(target, args);
|
|
144
|
+
notifyChange();
|
|
145
|
+
return result;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
if (prop === 'get') {
|
|
149
|
+
return (...args) => {
|
|
150
|
+
const result = value.apply(target, args);
|
|
151
|
+
return createDeepProxy.bind(targetObject)(result, notifyChange);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
if (prop === 'values' || prop === 'keys' || prop === 'entries') {
|
|
155
|
+
return (...args) => {
|
|
156
|
+
const iterator = value.apply(target, args);
|
|
157
|
+
return {
|
|
158
|
+
[Symbol.iterator]() {
|
|
159
|
+
return this;
|
|
160
|
+
},
|
|
161
|
+
next() {
|
|
162
|
+
const result = iterator.next();
|
|
163
|
+
if (result.done)
|
|
164
|
+
return result;
|
|
165
|
+
if (prop === 'entries') {
|
|
166
|
+
return {
|
|
167
|
+
done: false,
|
|
168
|
+
value: [result.value[0], createDeepProxy.bind(targetObject)(result.value[1], notifyChange)],
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
if (prop === 'keys') {
|
|
172
|
+
return result;
|
|
173
|
+
}
|
|
174
|
+
return {
|
|
175
|
+
done: false,
|
|
176
|
+
value: createDeepProxy.bind(targetObject)(result.value, notifyChange),
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
if (prop === 'forEach') {
|
|
183
|
+
return (callback, thisArg) => {
|
|
184
|
+
value.call(target, (val, k, m) => {
|
|
185
|
+
callback.call(thisArg, createDeepProxy.bind(targetObject)(val, notifyChange), k, m);
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
return value.bind(target);
|
|
190
|
+
}
|
|
191
|
+
if (target instanceof WeakMap ||
|
|
192
|
+
target instanceof WeakSet ||
|
|
193
|
+
target instanceof Date ||
|
|
194
|
+
target instanceof RegExp) {
|
|
195
|
+
return value.bind(target);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
130
198
|
return createDeepProxy.bind(targetObject)(value, notifyChange);
|
|
131
199
|
},
|
|
132
200
|
set(target, prop, value) {
|
|
@@ -148,6 +216,29 @@ export function observed(config = {}) {
|
|
|
148
216
|
}
|
|
149
217
|
if (kind === 'accessor') {
|
|
150
218
|
return {
|
|
219
|
+
init(initialValue) {
|
|
220
|
+
let map = Reflect.get(this, reactiveSymbol);
|
|
221
|
+
if (!map) {
|
|
222
|
+
map = {};
|
|
223
|
+
Reflect.set(this, reactiveSymbol, map);
|
|
224
|
+
}
|
|
225
|
+
const notify = () => {
|
|
226
|
+
if (this.domain) {
|
|
227
|
+
this.domain.notifyChange();
|
|
228
|
+
}
|
|
229
|
+
else if (this.notifyChange) {
|
|
230
|
+
this.notifyChange();
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
let value = initialValue;
|
|
234
|
+
if (deep) {
|
|
235
|
+
value = createDeepProxy.bind(this)(initialValue, notify);
|
|
236
|
+
}
|
|
237
|
+
if (value !== undefined) {
|
|
238
|
+
map[context.name] = value;
|
|
239
|
+
}
|
|
240
|
+
return value;
|
|
241
|
+
},
|
|
151
242
|
set(value) {
|
|
152
243
|
let map = Reflect.get(this, reactiveSymbol);
|
|
153
244
|
if (!map) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observed.js","sourceRoot":"","sources":["../../../src/decorators/observed.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;AACzC,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,CAAA;AACnC,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;AA+B/B,SAAS,YAAY,CAAC,GAAQ,EAAE,OAAwB,IAAI,OAAO,EAAU;IAC3E,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,OAAO,GAAG,CAAA;IACZ,CAAC;IACD,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAClB,OAAO,GAAG,CAAA;IACZ,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAEb,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,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AAO,CAAA;YACxB,OAAO,UAAgC,KAAQ;gBAC7C,MAAM,QAAQ,GAAG,IAAI,CAAC,IAA4B,CAAiB,CAAA;gBACnE,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;oBACvB,OAAM;gBACR,CAAC;gBACD,CAAC;gBAAC,MAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;gBACjD,IAAI,QAAQ,IAAI,OAAO,EAAE,CAAC;oBACxB,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;gBACjD,CAAC;gBACD,IAAI,KAAK,EAAE,CAAC;oBACV,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;oBAC7B,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;gBAC3C,CAAC;YACH,CAAC,CAAA;QACH,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,mCAAmC,IAAI,EAAE,CAAC,CAAA;IAC5D,CAAC,CAAA;AACH,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nconst reactiveSymbol = Symbol('reactive')\nconst proxySymbol = Symbol('proxy')\nconst rawSymbol = Symbol('raw')\n\ninterface DomainInstance {\n domain?: { notifyChange(): void }\n notifyChange?: () => void\n}\n\nexport interface PropertyDecorator {\n // accessor decorator signature\n <C extends DomainInstance, V>(\n target: ClassAccessorDecoratorTarget<C, V>,\n context: ClassAccessorDecoratorContext<C, V>\n ): ClassAccessorDecoratorResult<C, V>\n // setter decorator signature\n <C extends DomainInstance, V>(\n target: (value: V) => void,\n context: ClassSetterDecoratorContext<C, V>\n ): (this: C, value: V) => void\n}\n\ntype StandardPropertyContext<C, V> = ClassAccessorDecoratorContext<C, V> | ClassSetterDecoratorContext<C, V>\ntype StandardPropertyTarget<C, V> = ClassAccessorDecoratorTarget<C, V> | ((value: V) => void)\n\nexport interface ObserveConfig {\n /**\n * To be used when observing an object and not a primitive.\n * It creates a proxy that observes changes in the object.\n */\n deep?: boolean\n}\n\nfunction cleanProxies(obj: any, seen: WeakSet<object> = new WeakSet<object>()): any {\n if (typeof obj !== 'object' || obj === null) {\n return obj\n }\n if (seen.has(obj)) {\n return obj\n }\n seen.add(obj)\n\n if (Array.isArray(obj)) {\n for (let i = 0; i < obj.length; i++) {\n let item = obj[i]\n while (item && typeof item === 'object' && item[rawSymbol]) {\n item = item[rawSymbol]\n }\n if (item && typeof item === 'object') {\n cleanProxies(item, seen)\n }\n obj[i] = item\n }\n } else {\n for (const key of Object.keys(obj)) {\n let item = obj[key]\n while (item && typeof item === 'object' && item[rawSymbol]) {\n item = item[rawSymbol]\n }\n if (item && typeof item === 'object') {\n cleanProxies(item, seen)\n }\n obj[key] = item\n }\n }\n return obj\n}\n\n/**\n * Reads the raw value of the object, that is, not proxied object.\n * @param source The source object that contains the object\n * @param target The target object set on the source object\n * @returns The not proxied object or undefined\n */\nexport function toRaw<T extends object = object>(source: object, target: T): T | undefined {\n let mapped: any\n if (target && (target as any)[rawSymbol]) {\n let raw = (target as any)[rawSymbol]\n while (raw && (raw as any)[rawSymbol]) {\n raw = (raw as any)[rawSymbol]\n }\n mapped = raw\n } else {\n const proxies = Reflect.get(source, proxySymbol) as Map<object, object>\n if (!proxies) {\n return undefined\n }\n for (const [key, value] of proxies.entries()) {\n if (value === target) {\n mapped = key\n break\n }\n }\n }\n\n if (mapped) {\n return cleanProxies(mapped) as T\n }\n}\n\n/**\n * Turns a class property or a setter into an observed property\n * that notifies the root domain when changed.\n *\n * A property has to be declared with the `accessor` type to be\n * observed.\n *\n * ```typescript\n * @observed() accessor name: string | undefined\n *\n * @observed()\n * set height(value: number) {\n * this.#height = value\n * }\n *\n * get height(): number {\n * return this.#height\n * }\n * ```\n *\n * The decorator can be used in the following ways:\n * - As a class property decorator\n * - As a class setter decorator\n *\n * The property class either has to have the `domain` property\n * or a `notifyChange` method. The decorator will call the\n * `notifyChange` method if it exists. Otherwise, it will\n * call the `notifyChange` method of the root domain (the `domain` property).\n */\nexport function observed(config: ObserveConfig = {}): PropertyDecorator {\n return <C extends DomainInstance, V>(\n target: StandardPropertyTarget<C, V>,\n context: StandardPropertyContext<C, V>\n ): any => {\n const { kind } = context\n const { deep } = config\n\n function createDeepProxy(this: DomainInstance, obj: unknown, notifyChange: () => void): any {\n if (typeof obj !== 'object' || obj === null) {\n return obj\n }\n // instead of using the target object to store the proxy info, we\n // reflect the proxy info to the object itself. This way we can\n // keep the stored values clean, which helps with testing (deep equal would include symbols)\n // Keys are original objects, values are proxies\n let proxies = Reflect.get(this, proxySymbol) as Map<object, object>\n if (!proxies) {\n proxies = new Map()\n Reflect.set(this, proxySymbol, proxies)\n }\n\n if (proxies.has(obj)) {\n return proxies.get(obj)\n }\n\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const targetObject = this\n\n const proxy = new Proxy(obj, {\n get(target, prop) {\n if (prop === proxySymbol) {\n return Reflect.get(target, prop)\n }\n if (prop === rawSymbol) {\n return target\n }\n const value = Reflect.get(target, prop)\n return createDeepProxy.bind(targetObject)(value, notifyChange)\n },\n set(target, prop, value) {\n const oldValue = Reflect.get(target, prop)\n if (oldValue !== value) {\n Reflect.set(target, prop, value)\n notifyChange()\n }\n return true\n },\n deleteProperty(target, prop) {\n Reflect.deleteProperty(target, prop)\n notifyChange()\n return true\n },\n })\n proxies.set(obj, proxy)\n return proxy\n }\n\n if (kind === 'accessor') {\n return {\n set(this: DomainInstance, value: V): void {\n let map = Reflect.get(this, reactiveSymbol)\n if (!map) {\n map = {}\n Reflect.set(this, reactiveSymbol, map)\n }\n if (map[context.name] === value) {\n return\n }\n const notify = () => {\n if (this.domain) {\n this.domain.notifyChange()\n } else if (this.notifyChange) {\n this.notifyChange()\n }\n }\n if (deep) {\n value = createDeepProxy.bind(this)(value, notify)\n }\n if (value === undefined) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete map[context.name]\n } else {\n map[context.name] = value\n }\n notify()\n },\n\n get(): V {\n const map = Reflect.get(this, reactiveSymbol) || {}\n return map[context.name]\n },\n }\n } else if (kind === 'setter') {\n const { name } = context\n return function (this: DomainInstance, value: V): void {\n const oldValue = this[name as keyof DomainInstance]\n if (value === oldValue) {\n return\n }\n const notify = () => {\n if (this.domain) {\n this.domain.notifyChange()\n } else if (this.notifyChange) {\n this.notifyChange()\n }\n }\n ;(target as (value: V) => void).call(this, value)\n notify()\n }\n }\n throw new Error(`Unsupported decorator location: ${kind}`)\n }\n}\n\n/**\n * A decorator that can be used to retarget the change event\n * of a property to the root domain.\n *\n * This decorator should not be used with the `observed` decorator.\n * It does the same thing. It will notify about a change to the\n * property itself.\n */\nexport function retargetChange() {\n return <C extends DomainInstance, V extends EventTarget | undefined>(\n target: StandardPropertyTarget<C, V>,\n context: StandardPropertyContext<C, V>\n ): any => {\n const { kind } = context\n function observer(this: DomainInstance) {\n if (this.domain) {\n this.domain.notifyChange()\n }\n }\n let binding: ((this: DomainInstance) => void) | undefined\n if (kind === 'accessor') {\n return {\n set(this: DomainInstance, value: V): void {\n let map = Reflect.get(this, reactiveSymbol)\n if (!map) {\n map = {}\n Reflect.set(this, reactiveSymbol, map)\n }\n if (map[context.name] === value) {\n return\n }\n const oldValue = map[context.name]\n if (oldValue === value) {\n return\n }\n if (value === undefined) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete map[context.name]\n } else {\n map[context.name] = value\n }\n if (oldValue && binding) {\n oldValue.removeEventListener('change', binding)\n }\n if (value) {\n binding = observer.bind(this)\n value.addEventListener('change', binding)\n }\n if (this.domain) {\n this.domain.notifyChange()\n }\n },\n\n get(): V {\n const map = Reflect.get(this, reactiveSymbol) || {}\n return map[context.name]\n },\n }\n } else if (kind === 'setter') {\n const { name } = context\n return function (this: DomainInstance, value: V): void {\n const oldValue = this[name as keyof DomainInstance] as unknown as V\n if (value === oldValue) {\n return\n }\n ;(target as (value: V) => void).call(this, value)\n if (oldValue && binding) {\n oldValue.removeEventListener('change', binding)\n }\n if (value) {\n binding = observer.bind(this)\n value.addEventListener('change', binding)\n }\n }\n }\n throw new Error(`Unsupported decorator location: ${kind}`)\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"observed.js","sourceRoot":"","sources":["../../../src/decorators/observed.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;AACzC,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,CAAA;AACnC,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;AA+B/B,SAAS,YAAY,CAAC,GAAQ,EAAE,OAAwB,IAAI,OAAO,EAAU;IAC3E,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,OAAO,GAAG,CAAA;IACZ,CAAC;IACD,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAClB,OAAO,GAAG,CAAA;IACZ,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAEb,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACpC,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAA;YACjB,OAAO,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC3D,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAA;YACxB,CAAC;YACD,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACrC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;YAC1B,CAAC;YACD,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;QACf,CAAC;IACH,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KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;gBAC3C,CAAC;YACH,CAAC,CAAA;QACH,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,mCAAmC,IAAI,EAAE,CAAC,CAAA;IAC5D,CAAC,CAAA;AACH,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nconst reactiveSymbol = Symbol('reactive')\nconst proxySymbol = Symbol('proxy')\nconst rawSymbol = Symbol('raw')\n\ninterface DomainInstance {\n domain?: { notifyChange(): void }\n notifyChange?: () => void\n}\n\nexport interface PropertyDecorator {\n // accessor decorator signature\n <C extends DomainInstance, V>(\n target: ClassAccessorDecoratorTarget<C, V>,\n context: ClassAccessorDecoratorContext<C, V>\n ): ClassAccessorDecoratorResult<C, V>\n // setter decorator signature\n <C extends DomainInstance, V>(\n target: (value: V) => void,\n context: ClassSetterDecoratorContext<C, V>\n ): (this: C, value: V) => void\n}\n\ntype StandardPropertyContext<C, V> = ClassAccessorDecoratorContext<C, V> | ClassSetterDecoratorContext<C, V>\ntype StandardPropertyTarget<C, V> = ClassAccessorDecoratorTarget<C, V> | ((value: V) => void)\n\nexport interface ObserveConfig {\n /**\n * To be used when observing an object and not a primitive.\n * It creates a proxy that observes changes in the object.\n */\n deep?: boolean\n}\n\nfunction cleanProxies(obj: any, seen: WeakSet<object> = new WeakSet<object>()): any {\n if (typeof obj !== 'object' || obj === null) {\n return obj\n }\n if (seen.has(obj)) {\n return obj\n }\n seen.add(obj)\n\n if (Array.isArray(obj)) {\n for (let i = 0; i < obj.length; i++) {\n let item = obj[i]\n while (item && typeof item === 'object' && item[rawSymbol]) {\n item = item[rawSymbol]\n }\n if (item && typeof item === 'object') {\n cleanProxies(item, seen)\n }\n obj[i] = item\n }\n } else {\n for (const key of Object.keys(obj)) {\n let item = obj[key]\n while (item && typeof item === 'object' && item[rawSymbol]) {\n item = item[rawSymbol]\n }\n if (item && typeof item === 'object') {\n cleanProxies(item, seen)\n }\n obj[key] = item\n }\n }\n return obj\n}\n\n/**\n * Reads the raw value of the object, that is, not proxied object.\n * @param source The source object that contains the object\n * @param target The target object set on the source object\n * @returns The not proxied object or undefined\n */\nexport function toRaw<T extends object = object>(source: object, target: T): T | undefined {\n let mapped: any\n if (target && (target as any)[rawSymbol]) {\n let raw = (target as any)[rawSymbol]\n while (raw && (raw as any)[rawSymbol]) {\n raw = (raw as any)[rawSymbol]\n }\n mapped = raw\n } else {\n const proxies = Reflect.get(source, proxySymbol) as Map<object, object>\n if (!proxies) {\n return undefined\n }\n for (const [key, value] of proxies.entries()) {\n if (value === target) {\n mapped = key\n break\n }\n }\n }\n\n if (mapped) {\n return cleanProxies(mapped) as T\n }\n}\n\n/**\n * Turns a class property or a setter into an observed property\n * that notifies the root domain when changed.\n *\n * A property has to be declared with the `accessor` type to be\n * observed.\n *\n * ```typescript\n * @observed() accessor name: string | undefined\n *\n * @observed()\n * set height(value: number) {\n * this.#height = value\n * }\n *\n * get height(): number {\n * return this.#height\n * }\n * ```\n *\n * The decorator can be used in the following ways:\n * - As a class property decorator\n * - As a class setter decorator\n *\n * The property class either has to have the `domain` property\n * or a `notifyChange` method. The decorator will call the\n * `notifyChange` method if it exists. Otherwise, it will\n * call the `notifyChange` method of the root domain (the `domain` property).\n */\nexport function observed(config: ObserveConfig = {}): PropertyDecorator {\n return <C extends DomainInstance, V>(\n target: StandardPropertyTarget<C, V>,\n context: StandardPropertyContext<C, V>\n ): any => {\n const { kind } = context\n const { deep } = config\n\n function createDeepProxy(this: DomainInstance, obj: unknown, notifyChange: () => void): any {\n if (typeof obj !== 'object' || obj === null) {\n return obj\n }\n // instead of using the target object to store the proxy info, we\n // reflect the proxy info to the object itself. This way we can\n // keep the stored values clean, which helps with testing (deep equal would include symbols)\n // Keys are original objects, values are proxies\n let proxies = Reflect.get(this, proxySymbol) as Map<object, object>\n if (!proxies) {\n proxies = new Map()\n Reflect.set(this, proxySymbol, proxies)\n }\n\n if (proxies.has(obj)) {\n return proxies.get(obj)\n }\n\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const targetObject = this\n\n const proxy = new Proxy(obj, {\n get(target, prop) {\n if (prop === proxySymbol) {\n return Reflect.get(target, prop)\n }\n if (prop === rawSymbol) {\n return target\n }\n const value = Reflect.get(target, prop)\n if (typeof value === 'function') {\n if (target instanceof Map || target instanceof Set) {\n if (['set', 'add', 'delete', 'clear'].includes(prop as string)) {\n return (...args: any[]) => {\n if (prop === 'set' && (target as Map<any, any>).get(args[0]) === args[1]) {\n return target\n }\n if (prop === 'delete' && !target.has(args[0])) {\n return false\n }\n if (prop === 'clear' && target.size === 0) {\n return undefined\n }\n const result = value.apply(target, args)\n notifyChange()\n return result\n }\n }\n if (prop === 'get') {\n return (...args: any[]) => {\n const result = value.apply(target, args)\n return createDeepProxy.bind(targetObject)(result, notifyChange)\n }\n }\n if (prop === 'values' || prop === 'keys' || prop === 'entries') {\n return (...args: any[]) => {\n const iterator = value.apply(target, args)\n return {\n [Symbol.iterator]() {\n return this\n },\n next() {\n const result = iterator.next()\n if (result.done) return result\n if (prop === 'entries') {\n return {\n done: false,\n value: [result.value[0], createDeepProxy.bind(targetObject)(result.value[1], notifyChange)],\n }\n }\n if (prop === 'keys') {\n return result\n }\n return {\n done: false,\n value: createDeepProxy.bind(targetObject)(result.value, notifyChange),\n }\n },\n }\n }\n }\n if (prop === 'forEach') {\n return (callback: any, thisArg?: any) => {\n value.call(target, (val: any, k: any, m: any) => {\n callback.call(thisArg, createDeepProxy.bind(targetObject)(val, notifyChange), k, m)\n })\n }\n }\n return value.bind(target)\n }\n if (\n target instanceof WeakMap ||\n target instanceof WeakSet ||\n target instanceof Date ||\n target instanceof RegExp\n ) {\n return value.bind(target)\n }\n }\n return createDeepProxy.bind(targetObject)(value, notifyChange)\n },\n set(target, prop, value) {\n const oldValue = Reflect.get(target, prop)\n if (oldValue !== value) {\n Reflect.set(target, prop, value)\n notifyChange()\n }\n return true\n },\n deleteProperty(target, prop) {\n Reflect.deleteProperty(target, prop)\n notifyChange()\n return true\n },\n })\n proxies.set(obj, proxy)\n return proxy\n }\n\n if (kind === 'accessor') {\n return {\n init(this: DomainInstance, initialValue: V): V {\n let map = Reflect.get(this, reactiveSymbol)\n if (!map) {\n map = {}\n Reflect.set(this, reactiveSymbol, map)\n }\n const notify = () => {\n if (this.domain) {\n this.domain.notifyChange()\n } else if (this.notifyChange) {\n this.notifyChange()\n }\n }\n let value = initialValue\n if (deep) {\n value = createDeepProxy.bind(this)(initialValue, notify)\n }\n if (value !== undefined) {\n map[context.name] = value\n }\n return value\n },\n set(this: DomainInstance, value: V): void {\n let map = Reflect.get(this, reactiveSymbol)\n if (!map) {\n map = {}\n Reflect.set(this, reactiveSymbol, map)\n }\n if (map[context.name] === value) {\n return\n }\n const notify = () => {\n if (this.domain) {\n this.domain.notifyChange()\n } else if (this.notifyChange) {\n this.notifyChange()\n }\n }\n if (deep) {\n value = createDeepProxy.bind(this)(value, notify)\n }\n if (value === undefined) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete map[context.name]\n } else {\n map[context.name] = value\n }\n notify()\n },\n\n get(): V {\n const map = Reflect.get(this, reactiveSymbol) || {}\n return map[context.name]\n },\n }\n } else if (kind === 'setter') {\n const { name } = context\n return function (this: DomainInstance, value: V): void {\n const oldValue = this[name as keyof DomainInstance]\n if (value === oldValue) {\n return\n }\n const notify = () => {\n if (this.domain) {\n this.domain.notifyChange()\n } else if (this.notifyChange) {\n this.notifyChange()\n }\n }\n ;(target as (value: V) => void).call(this, value)\n notify()\n }\n }\n throw new Error(`Unsupported decorator location: ${kind}`)\n }\n}\n\n/**\n * A decorator that can be used to retarget the change event\n * of a property to the root domain.\n *\n * This decorator should not be used with the `observed` decorator.\n * It does the same thing. It will notify about a change to the\n * property itself.\n */\nexport function retargetChange() {\n return <C extends DomainInstance, V extends EventTarget | undefined>(\n target: StandardPropertyTarget<C, V>,\n context: StandardPropertyContext<C, V>\n ): any => {\n const { kind } = context\n function observer(this: DomainInstance) {\n if (this.domain) {\n this.domain.notifyChange()\n }\n }\n let binding: ((this: DomainInstance) => void) | undefined\n if (kind === 'accessor') {\n return {\n set(this: DomainInstance, value: V): void {\n let map = Reflect.get(this, reactiveSymbol)\n if (!map) {\n map = {}\n Reflect.set(this, reactiveSymbol, map)\n }\n if (map[context.name] === value) {\n return\n }\n const oldValue = map[context.name]\n if (oldValue === value) {\n return\n }\n if (value === undefined) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete map[context.name]\n } else {\n map[context.name] = value\n }\n if (oldValue && binding) {\n oldValue.removeEventListener('change', binding)\n }\n if (value) {\n binding = observer.bind(this)\n value.addEventListener('change', binding)\n }\n if (this.domain) {\n this.domain.notifyChange()\n }\n },\n\n get(): V {\n const map = Reflect.get(this, reactiveSymbol) || {}\n return map[context.name]\n },\n }\n } else if (kind === 'setter') {\n const { name } = context\n return function (this: DomainInstance, value: V): void {\n const oldValue = this[name as keyof DomainInstance] as unknown as V\n if (value === oldValue) {\n return\n }\n ;(target as (value: V) => void).call(this, value)\n if (oldValue && binding) {\n oldValue.removeEventListener('change', binding)\n }\n if (value) {\n binding = observer.bind(this)\n value.addEventListener('change', binding)\n }\n }\n }\n throw new Error(`Unsupported decorator location: ${kind}`)\n }\n}\n"]}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
export declare const EventTypes: Readonly<{
|
|
2
|
-
Amf: Readonly<{
|
|
3
|
-
processApiLink: "amfprocessapilink";
|
|
4
|
-
processBuffer: "amfprocessbuffer";
|
|
5
|
-
processApiFile: "amfprocessapifile";
|
|
6
|
-
selectApiMainFile: "amfselectapimainfile";
|
|
7
|
-
}>;
|
|
8
2
|
Authorization: Readonly<{
|
|
9
3
|
OAuth2: Readonly<{
|
|
10
4
|
authorize: "oauth2authorize";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventTypes.d.ts","sourceRoot":"","sources":["../../../src/events/EventTypes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EventTypes.d.ts","sourceRoot":"","sources":["../../../src/events/EventTypes.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASrB,CAAA"}
|
|
@@ -6,9 +6,7 @@ import { ReportingEventTypes } from './reporting/ReportingEventTypes.js';
|
|
|
6
6
|
import { TelemetryEventTypes } from './telemetry/TelemetryEventTypes.js';
|
|
7
7
|
import { EnvironmentEventTypes } from './environment/EnvironmentEventTypes.js';
|
|
8
8
|
import { TransportEventTypes } from './transport/TransportEventTypes.js';
|
|
9
|
-
import { AmfEventTypes } from './amf/AmfEventTypes.js';
|
|
10
9
|
export const EventTypes = Object.freeze({
|
|
11
|
-
Amf: AmfEventTypes,
|
|
12
10
|
Authorization: AuthorizationEventTypes,
|
|
13
11
|
Cookie: CookieEventTypes,
|
|
14
12
|
Encryption: EncryptionEventTypes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventTypes.js","sourceRoot":"","sources":["../../../src/events/EventTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAA;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;
|
|
1
|
+
{"version":3,"file":"EventTypes.js","sourceRoot":"","sources":["../../../src/events/EventTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAA;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AAExE,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,aAAa,EAAE,uBAAuB;IACtC,MAAM,EAAE,gBAAgB;IACxB,UAAU,EAAE,oBAAoB;IAChC,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;IAC9B,WAAW,EAAE,qBAAqB;CACnC,CAAC,CAAA","sourcesContent":["import { CookieEventTypes } from './cookies/CookieEventTypes.js'\nimport { AuthorizationEventTypes } from './authorization/AuthorizationEventTypes.js'\nimport { EncryptionEventTypes } from './encryption/EncryptionEventTypes.js'\nimport { ProcessEventTypes } from './process/ProcessEventTypes.js'\nimport { ReportingEventTypes } from './reporting/ReportingEventTypes.js'\nimport { TelemetryEventTypes } from './telemetry/TelemetryEventTypes.js'\nimport { EnvironmentEventTypes } from './environment/EnvironmentEventTypes.js'\nimport { TransportEventTypes } from './transport/TransportEventTypes.js'\n\nexport const EventTypes = Object.freeze({\n Authorization: AuthorizationEventTypes,\n Cookie: CookieEventTypes,\n Encryption: EncryptionEventTypes,\n Process: ProcessEventTypes,\n Reporting: ReportingEventTypes,\n Telemetry: TelemetryEventTypes,\n Transport: TransportEventTypes,\n Environment: EnvironmentEventTypes,\n})\n"]}
|