@api-client/core 0.3.0
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 +69 -0
- package/amf-models/dialects/ApiProjectVocabulary.yaml +233 -0
- package/amf-models/dialects/Environment.yaml +38 -0
- package/amf-models/dialects/HttpProject.yaml +55 -0
- package/amf-models/dialects/License.yaml +31 -0
- package/amf-models/dialects/ProjectFolder.yaml +43 -0
- package/amf-models/dialects/ProjectItem.yaml +22 -0
- package/amf-models/dialects/ProjectRequest.yaml +23 -0
- package/amf-models/dialects/ProjectSchema.yaml +36 -0
- package/amf-models/dialects/Property.yaml +43 -0
- package/amf-models/dialects/Provider.yaml +32 -0
- package/amf-models/dialects/Server.yaml +31 -0
- package/amf-models/dialects/Thing.yaml +28 -0
- package/build/browser.d.ts +79 -0
- package/build/browser.js +92 -0
- package/build/browser.js.map +1 -0
- package/build/index.d.ts +89 -0
- package/build/index.js +108 -0
- package/build/index.js.map +1 -0
- package/build/src/data/DataReader.d.ts +10 -0
- package/build/src/data/DataReader.js +4 -0
- package/build/src/data/DataReader.js.map +1 -0
- package/build/src/data/DataUtils.d.ts +40 -0
- package/build/src/data/DataUtils.js +106 -0
- package/build/src/data/DataUtils.js.map +1 -0
- package/build/src/data/JmesparthReader.d.ts +12 -0
- package/build/src/data/JmesparthReader.js +27 -0
- package/build/src/data/JmesparthReader.js.map +1 -0
- package/build/src/data/Json2Xml.d.ts +84 -0
- package/build/src/data/Json2Xml.js +185 -0
- package/build/src/data/Json2Xml.js.map +1 -0
- package/build/src/data/JsonReader.d.ts +8 -0
- package/build/src/data/JsonReader.js +40 -0
- package/build/src/data/JsonReader.js.map +1 -0
- package/build/src/data/PayloadPointer.d.ts +19 -0
- package/build/src/data/PayloadPointer.js +46 -0
- package/build/src/data/PayloadPointer.js.map +1 -0
- package/build/src/data/RequestDataExtractor.d.ts +44 -0
- package/build/src/data/RequestDataExtractor.js +126 -0
- package/build/src/data/RequestDataExtractor.js.map +1 -0
- package/build/src/data/UrlEncodedReader.d.ts +11 -0
- package/build/src/data/UrlEncodedReader.js +20 -0
- package/build/src/data/UrlEncodedReader.js.map +1 -0
- package/build/src/data/XmlReader.d.ts +14 -0
- package/build/src/data/XmlReader.js +97 -0
- package/build/src/data/XmlReader.js.map +1 -0
- package/build/src/events/BaseEvents.d.ts +208 -0
- package/build/src/events/BaseEvents.js +117 -0
- package/build/src/events/BaseEvents.js.map +1 -0
- package/build/src/events/CustomEvent.d.ts +2 -0
- package/build/src/events/CustomEvent.js +24 -0
- package/build/src/events/CustomEvent.js.map +1 -0
- package/build/src/events/EventTypes.d.ts +91 -0
- package/build/src/events/EventTypes.js +19 -0
- package/build/src/events/EventTypes.js.map +1 -0
- package/build/src/events/Events.d.ts +20 -0
- package/build/src/events/Events.js +19 -0
- package/build/src/events/Events.js.map +1 -0
- package/build/src/events/authorization/AuthorizationEventTypes.d.ts +22 -0
- package/build/src/events/authorization/AuthorizationEventTypes.js +23 -0
- package/build/src/events/authorization/AuthorizationEventTypes.js.map +1 -0
- package/build/src/events/authorization/AuthorizationEvents.d.ts +34 -0
- package/build/src/events/authorization/AuthorizationEvents.js +55 -0
- package/build/src/events/authorization/AuthorizationEvents.js.map +1 -0
- package/build/src/events/cookies/CookieEventTypes.d.ts +13 -0
- package/build/src/events/cookies/CookieEventTypes.js +14 -0
- package/build/src/events/cookies/CookieEventTypes.js.map +1 -0
- package/build/src/events/cookies/CookieEvents.d.ts +90 -0
- package/build/src/events/cookies/CookieEvents.js +126 -0
- package/build/src/events/cookies/CookieEvents.js.map +1 -0
- package/build/src/events/encryption/EncryptionEventTypes.d.ts +4 -0
- package/build/src/events/encryption/EncryptionEventTypes.js +5 -0
- package/build/src/events/encryption/EncryptionEventTypes.js.map +1 -0
- package/build/src/events/encryption/EncryptionEvents.d.ts +36 -0
- package/build/src/events/encryption/EncryptionEvents.js +35 -0
- package/build/src/events/encryption/EncryptionEvents.js.map +1 -0
- package/build/src/events/environment/EnvironmentEventTypes.d.ts +3 -0
- package/build/src/events/environment/EnvironmentEventTypes.js +4 -0
- package/build/src/events/environment/EnvironmentEventTypes.js.map +1 -0
- package/build/src/events/environment/EnvironmentEvents.d.ts +15 -0
- package/build/src/events/environment/EnvironmentEvents.js +19 -0
- package/build/src/events/environment/EnvironmentEvents.js.map +1 -0
- package/build/src/events/models/ClientCertificateEvents.d.ts +56 -0
- package/build/src/events/models/ClientCertificateEvents.js +80 -0
- package/build/src/events/models/ClientCertificateEvents.js.map +1 -0
- package/build/src/events/models/ModelEventTypes.d.ts +47 -0
- package/build/src/events/models/ModelEventTypes.js +48 -0
- package/build/src/events/models/ModelEventTypes.js.map +1 -0
- package/build/src/events/models/ModelEvents.d.ts +6 -0
- package/build/src/events/models/ModelEvents.js +7 -0
- package/build/src/events/models/ModelEvents.js.map +1 -0
- package/build/src/events/models/ProjectEvents.d.ts +221 -0
- package/build/src/events/models/ProjectEvents.js +254 -0
- package/build/src/events/models/ProjectEvents.js.map +1 -0
- package/build/src/events/process/ProcessEventTypes.d.ts +5 -0
- package/build/src/events/process/ProcessEventTypes.js +6 -0
- package/build/src/events/process/ProcessEventTypes.js.map +1 -0
- package/build/src/events/process/ProcessEvents.d.ts +42 -0
- package/build/src/events/process/ProcessEvents.js +59 -0
- package/build/src/events/process/ProcessEvents.js.map +1 -0
- package/build/src/events/reporting/ReportingEventTypes.d.ts +3 -0
- package/build/src/events/reporting/ReportingEventTypes.js +4 -0
- package/build/src/events/reporting/ReportingEventTypes.js.map +1 -0
- package/build/src/events/reporting/ReportingEvents.d.ts +16 -0
- package/build/src/events/reporting/ReportingEvents.js +22 -0
- package/build/src/events/reporting/ReportingEvents.js.map +1 -0
- package/build/src/events/telemetry/TelemetryEventTypes.d.ts +10 -0
- package/build/src/events/telemetry/TelemetryEventTypes.js +11 -0
- package/build/src/events/telemetry/TelemetryEventTypes.js.map +1 -0
- package/build/src/events/telemetry/TelemetryEvents.d.ts +89 -0
- package/build/src/events/telemetry/TelemetryEvents.js +109 -0
- package/build/src/events/telemetry/TelemetryEvents.js.map +1 -0
- package/build/src/lib/cookies/Cookie.d.ts +123 -0
- package/build/src/lib/cookies/Cookie.js +257 -0
- package/build/src/lib/cookies/Cookie.js.map +1 -0
- package/build/src/lib/cookies/Cookies.d.ts +90 -0
- package/build/src/lib/cookies/Cookies.js +310 -0
- package/build/src/lib/cookies/Cookies.js.map +1 -0
- package/build/src/lib/cookies/Utils.d.ts +47 -0
- package/build/src/lib/cookies/Utils.js +163 -0
- package/build/src/lib/cookies/Utils.js.map +1 -0
- package/build/src/lib/headers/Headers.d.ts +67 -0
- package/build/src/lib/headers/Headers.js +202 -0
- package/build/src/lib/headers/Headers.js.map +1 -0
- package/build/src/lib/logging/DefaultLogger.d.ts +8 -0
- package/build/src/lib/logging/DefaultLogger.js +19 -0
- package/build/src/lib/logging/DefaultLogger.js.map +1 -0
- package/build/src/lib/logging/DummyLogger.d.ts +8 -0
- package/build/src/lib/logging/DummyLogger.js +21 -0
- package/build/src/lib/logging/DummyLogger.js.map +1 -0
- package/build/src/lib/logging/Logger.d.ts +14 -0
- package/build/src/lib/logging/Logger.js +3 -0
- package/build/src/lib/logging/Logger.js.map +1 -0
- package/build/src/lib/transformers/PayloadSerializer.d.ts +145 -0
- package/build/src/lib/transformers/PayloadSerializer.js +264 -0
- package/build/src/lib/transformers/PayloadSerializer.js.map +1 -0
- package/build/src/lib/transformers/Utils.d.ts +7 -0
- package/build/src/lib/transformers/Utils.js +19 -0
- package/build/src/lib/transformers/Utils.js.map +1 -0
- package/build/src/lib/uuid.d.ts +8 -0
- package/build/src/lib/uuid.js +38 -0
- package/build/src/lib/uuid.js.map +1 -0
- package/build/src/mocking/LegacyInterfaces.d.ts +47 -0
- package/build/src/mocking/LegacyInterfaces.js +2 -0
- package/build/src/mocking/LegacyInterfaces.js.map +1 -0
- package/build/src/mocking/LegacyMock.d.ts +24 -0
- package/build/src/mocking/LegacyMock.js +34 -0
- package/build/src/mocking/LegacyMock.js.map +1 -0
- package/build/src/mocking/legacy/Authorization.d.ts +19 -0
- package/build/src/mocking/legacy/Authorization.js +34 -0
- package/build/src/mocking/legacy/Authorization.js.map +1 -0
- package/build/src/mocking/legacy/Certificates.d.ts +54 -0
- package/build/src/mocking/legacy/Certificates.js +125 -0
- package/build/src/mocking/legacy/Certificates.js.map +1 -0
- package/build/src/mocking/legacy/Cookies.d.ts +19 -0
- package/build/src/mocking/legacy/Cookies.js +46 -0
- package/build/src/mocking/legacy/Cookies.js.map +1 -0
- package/build/src/mocking/legacy/HostRules.d.ts +20 -0
- package/build/src/mocking/legacy/HostRules.js +38 -0
- package/build/src/mocking/legacy/HostRules.js.map +1 -0
- package/build/src/mocking/legacy/Http.d.ts +78 -0
- package/build/src/mocking/legacy/Http.js +192 -0
- package/build/src/mocking/legacy/Http.js.map +1 -0
- package/build/src/mocking/legacy/HttpResponse.d.ts +22 -0
- package/build/src/mocking/legacy/HttpResponse.js +98 -0
- package/build/src/mocking/legacy/HttpResponse.js.map +1 -0
- package/build/src/mocking/legacy/RestApi.d.ts +13 -0
- package/build/src/mocking/legacy/RestApi.js +61 -0
- package/build/src/mocking/legacy/RestApi.js.map +1 -0
- package/build/src/mocking/legacy/Urls.d.ts +19 -0
- package/build/src/mocking/legacy/Urls.js +39 -0
- package/build/src/mocking/legacy/Urls.js.map +1 -0
- package/build/src/mocking/legacy/Variables.d.ts +17 -0
- package/build/src/mocking/legacy/Variables.js +50 -0
- package/build/src/mocking/legacy/Variables.js.map +1 -0
- package/build/src/models/ArcResponse.d.ts +63 -0
- package/build/src/models/ArcResponse.js +142 -0
- package/build/src/models/ArcResponse.js.map +1 -0
- package/build/src/models/Authorization.d.ts +452 -0
- package/build/src/models/Authorization.js +2 -0
- package/build/src/models/Authorization.js.map +1 -0
- package/build/src/models/AuthorizationData.d.ts +27 -0
- package/build/src/models/AuthorizationData.js +52 -0
- package/build/src/models/AuthorizationData.js.map +1 -0
- package/build/src/models/Backend.d.ts +71 -0
- package/build/src/models/Backend.js +2 -0
- package/build/src/models/Backend.js.map +1 -0
- package/build/src/models/ClientCertificate.d.ts +65 -0
- package/build/src/models/ClientCertificate.js +2 -0
- package/build/src/models/ClientCertificate.js.map +1 -0
- package/build/src/models/Environment.d.ts +125 -0
- package/build/src/models/Environment.js +215 -0
- package/build/src/models/Environment.js.map +1 -0
- package/build/src/models/ErrorResponse.d.ts +35 -0
- package/build/src/models/ErrorResponse.js +88 -0
- package/build/src/models/ErrorResponse.js.map +1 -0
- package/build/src/models/HistoryIndex.d.ts +43 -0
- package/build/src/models/HistoryIndex.js +53 -0
- package/build/src/models/HistoryIndex.js.map +1 -0
- package/build/src/models/HistoryRequest.d.ts +13 -0
- package/build/src/models/HistoryRequest.js +25 -0
- package/build/src/models/HistoryRequest.js.map +1 -0
- package/build/src/models/HostRule.d.ts +78 -0
- package/build/src/models/HostRule.js +134 -0
- package/build/src/models/HostRule.js.map +1 -0
- package/build/src/models/HttpCookie.d.ts +123 -0
- package/build/src/models/HttpCookie.js +209 -0
- package/build/src/models/HttpCookie.js.map +1 -0
- package/build/src/models/HttpProject.d.ts +455 -0
- package/build/src/models/HttpProject.js +987 -0
- package/build/src/models/HttpProject.js.map +1 -0
- package/build/src/models/HttpProjectListItem.d.ts +23 -0
- package/build/src/models/HttpProjectListItem.js +2 -0
- package/build/src/models/HttpProjectListItem.js.map +1 -0
- package/build/src/models/HttpRequest.d.ts +69 -0
- package/build/src/models/HttpRequest.js +92 -0
- package/build/src/models/HttpRequest.js.map +1 -0
- package/build/src/models/HttpResponse.d.ts +59 -0
- package/build/src/models/HttpResponse.js +116 -0
- package/build/src/models/HttpResponse.js.map +1 -0
- package/build/src/models/License.d.ts +52 -0
- package/build/src/models/License.js +91 -0
- package/build/src/models/License.js.map +1 -0
- package/build/src/models/ProjectDefinitionProperty.d.ts +34 -0
- package/build/src/models/ProjectDefinitionProperty.js +2 -0
- package/build/src/models/ProjectDefinitionProperty.js.map +1 -0
- package/build/src/models/ProjectFolder.d.ts +213 -0
- package/build/src/models/ProjectFolder.js +314 -0
- package/build/src/models/ProjectFolder.js.map +1 -0
- package/build/src/models/ProjectItem.d.ts +59 -0
- package/build/src/models/ProjectItem.js +119 -0
- package/build/src/models/ProjectItem.js.map +1 -0
- package/build/src/models/ProjectParent.d.ts +58 -0
- package/build/src/models/ProjectParent.js +77 -0
- package/build/src/models/ProjectParent.js.map +1 -0
- package/build/src/models/ProjectRequest.d.ts +118 -0
- package/build/src/models/ProjectRequest.js +238 -0
- package/build/src/models/ProjectRequest.js.map +1 -0
- package/build/src/models/ProjectSchema.d.ts +105 -0
- package/build/src/models/ProjectSchema.js +156 -0
- package/build/src/models/ProjectSchema.js.map +1 -0
- package/build/src/models/Property.d.ts +130 -0
- package/build/src/models/Property.js +392 -0
- package/build/src/models/Property.js.map +1 -0
- package/build/src/models/Provider.d.ts +52 -0
- package/build/src/models/Provider.js +75 -0
- package/build/src/models/Provider.js.map +1 -0
- package/build/src/models/Request.d.ts +157 -0
- package/build/src/models/Request.js +398 -0
- package/build/src/models/Request.js.map +1 -0
- package/build/src/models/RequestActions.d.ts +67 -0
- package/build/src/models/RequestActions.js +116 -0
- package/build/src/models/RequestActions.js.map +1 -0
- package/build/src/models/RequestAuthorization.d.ts +59 -0
- package/build/src/models/RequestAuthorization.js +85 -0
- package/build/src/models/RequestAuthorization.js.map +1 -0
- package/build/src/models/RequestConfig.d.ts +161 -0
- package/build/src/models/RequestConfig.js +246 -0
- package/build/src/models/RequestConfig.js.map +1 -0
- package/build/src/models/RequestLog.d.ts +70 -0
- package/build/src/models/RequestLog.js +133 -0
- package/build/src/models/RequestLog.js.map +1 -0
- package/build/src/models/RequestTime.d.ts +36 -0
- package/build/src/models/RequestTime.js +91 -0
- package/build/src/models/RequestTime.js.map +1 -0
- package/build/src/models/RequestUiMeta.d.ts +169 -0
- package/build/src/models/RequestUiMeta.js +120 -0
- package/build/src/models/RequestUiMeta.js.map +1 -0
- package/build/src/models/RequestsSize.d.ts +34 -0
- package/build/src/models/RequestsSize.js +52 -0
- package/build/src/models/RequestsSize.js.map +1 -0
- package/build/src/models/ResponseAuthorization.d.ts +54 -0
- package/build/src/models/ResponseAuthorization.js +82 -0
- package/build/src/models/ResponseAuthorization.js.map +1 -0
- package/build/src/models/ResponseRedirect.d.ts +73 -0
- package/build/src/models/ResponseRedirect.js +126 -0
- package/build/src/models/ResponseRedirect.js.map +1 -0
- package/build/src/models/RevisionInfo.d.ts +36 -0
- package/build/src/models/RevisionInfo.js +2 -0
- package/build/src/models/RevisionInfo.js.map +1 -0
- package/build/src/models/SentRequest.d.ts +62 -0
- package/build/src/models/SentRequest.js +93 -0
- package/build/src/models/SentRequest.js.map +1 -0
- package/build/src/models/SerializablePayload.d.ts +30 -0
- package/build/src/models/SerializablePayload.js +66 -0
- package/build/src/models/SerializablePayload.js.map +1 -0
- package/build/src/models/Server.d.ts +76 -0
- package/build/src/models/Server.js +121 -0
- package/build/src/models/Server.js.map +1 -0
- package/build/src/models/Thing.d.ts +56 -0
- package/build/src/models/Thing.js +85 -0
- package/build/src/models/Thing.js.map +1 -0
- package/build/src/models/Url.d.ts +51 -0
- package/build/src/models/Url.js +71 -0
- package/build/src/models/Url.js.map +1 -0
- package/build/src/models/User.d.ts +110 -0
- package/build/src/models/User.js +2 -0
- package/build/src/models/User.js.map +1 -0
- package/build/src/models/WebApi.d.ts +119 -0
- package/build/src/models/WebApi.js +175 -0
- package/build/src/models/WebApi.js.map +1 -0
- package/build/src/models/WebApiIndex.d.ts +70 -0
- package/build/src/models/WebApiIndex.js +72 -0
- package/build/src/models/WebApiIndex.js.map +1 -0
- package/build/src/models/Workspace.d.ts +98 -0
- package/build/src/models/Workspace.js +139 -0
- package/build/src/models/Workspace.js.map +1 -0
- package/build/src/models/actions/Action.d.ts +75 -0
- package/build/src/models/actions/Action.js +188 -0
- package/build/src/models/actions/Action.js.map +1 -0
- package/build/src/models/actions/ActionView.d.ts +15 -0
- package/build/src/models/actions/ActionView.js +33 -0
- package/build/src/models/actions/ActionView.js.map +1 -0
- package/build/src/models/actions/Condition.d.ts +81 -0
- package/build/src/models/actions/Condition.js +185 -0
- package/build/src/models/actions/Condition.js.map +1 -0
- package/build/src/models/actions/ConditionView.d.ts +17 -0
- package/build/src/models/actions/ConditionView.js +34 -0
- package/build/src/models/actions/ConditionView.js.map +1 -0
- package/build/src/models/actions/Enums.d.ts +26 -0
- package/build/src/models/actions/Enums.js +31 -0
- package/build/src/models/actions/Enums.js.map +1 -0
- package/build/src/models/actions/RunnableAction.d.ts +59 -0
- package/build/src/models/actions/RunnableAction.js +106 -0
- package/build/src/models/actions/RunnableAction.js.map +1 -0
- package/build/src/models/actions/runnable/DeleteCookieAction.d.ts +44 -0
- package/build/src/models/actions/runnable/DeleteCookieAction.js +92 -0
- package/build/src/models/actions/runnable/DeleteCookieAction.js.map +1 -0
- package/build/src/models/actions/runnable/Runnable.d.ts +8 -0
- package/build/src/models/actions/runnable/Runnable.js +4 -0
- package/build/src/models/actions/runnable/Runnable.js.map +1 -0
- package/build/src/models/actions/runnable/SetCookieAction.d.ts +87 -0
- package/build/src/models/actions/runnable/SetCookieAction.js +176 -0
- package/build/src/models/actions/runnable/SetCookieAction.js.map +1 -0
- package/build/src/models/actions/runnable/SetVariableAction.d.ts +31 -0
- package/build/src/models/actions/runnable/SetVariableAction.js +63 -0
- package/build/src/models/actions/runnable/SetVariableAction.js.map +1 -0
- package/build/src/models/actions/runnable/index.d.ts +7 -0
- package/build/src/models/actions/runnable/index.js +2 -0
- package/build/src/models/actions/runnable/index.js.map +1 -0
- package/build/src/models/legacy/DataExport.d.ts +168 -0
- package/build/src/models/legacy/DataExport.js +2 -0
- package/build/src/models/legacy/DataExport.js.map +1 -0
- package/build/src/models/legacy/Normalizer.d.ts +12 -0
- package/build/src/models/legacy/Normalizer.js +104 -0
- package/build/src/models/legacy/Normalizer.js.map +1 -0
- package/build/src/models/legacy/actions/Actions.d.ts +257 -0
- package/build/src/models/legacy/actions/Actions.js +2 -0
- package/build/src/models/legacy/actions/Actions.js.map +1 -0
- package/build/src/models/legacy/authorization/Authorization.d.ts +540 -0
- package/build/src/models/legacy/authorization/Authorization.js +3 -0
- package/build/src/models/legacy/authorization/Authorization.js.map +1 -0
- package/build/src/models/legacy/models/ApiTypes.d.ts +192 -0
- package/build/src/models/legacy/models/ApiTypes.js +2 -0
- package/build/src/models/legacy/models/ApiTypes.js.map +1 -0
- package/build/src/models/legacy/models/ArcLegacyProject.d.ts +37 -0
- package/build/src/models/legacy/models/ArcLegacyProject.js +2 -0
- package/build/src/models/legacy/models/ArcLegacyProject.js.map +1 -0
- package/build/src/models/legacy/models/AuthData.d.ts +14 -0
- package/build/src/models/legacy/models/AuthData.js +2 -0
- package/build/src/models/legacy/models/AuthData.js.map +1 -0
- package/build/src/models/legacy/models/ClientCertificate.d.ts +89 -0
- package/build/src/models/legacy/models/ClientCertificate.js +2 -0
- package/build/src/models/legacy/models/ClientCertificate.js.map +1 -0
- package/build/src/models/legacy/models/Cookies.d.ts +52 -0
- package/build/src/models/legacy/models/Cookies.js +2 -0
- package/build/src/models/legacy/models/Cookies.js.map +1 -0
- package/build/src/models/legacy/models/HostRule.d.ts +33 -0
- package/build/src/models/legacy/models/HostRule.js +2 -0
- package/build/src/models/legacy/models/HostRule.js.map +1 -0
- package/build/src/models/legacy/models/RestApi.d.ts +47 -0
- package/build/src/models/legacy/models/RestApi.js +2 -0
- package/build/src/models/legacy/models/RestApi.js.map +1 -0
- package/build/src/models/legacy/models/UrlHistory.d.ts +32 -0
- package/build/src/models/legacy/models/UrlHistory.js +2 -0
- package/build/src/models/legacy/models/UrlHistory.js.map +1 -0
- package/build/src/models/legacy/models/Variable.d.ts +38 -0
- package/build/src/models/legacy/models/Variable.js +2 -0
- package/build/src/models/legacy/models/Variable.js.map +1 -0
- package/build/src/models/legacy/request/ArcRequest.d.ts +387 -0
- package/build/src/models/legacy/request/ArcRequest.js +2 -0
- package/build/src/models/legacy/request/ArcRequest.js.map +1 -0
- package/build/src/models/legacy/request/ArcResponse.d.ts +166 -0
- package/build/src/models/legacy/request/ArcResponse.js +2 -0
- package/build/src/models/legacy/request/ArcResponse.js.map +1 -0
- package/build/src/models/legacy/request/HistoryData.d.ts +45 -0
- package/build/src/models/legacy/request/HistoryData.js +2 -0
- package/build/src/models/legacy/request/HistoryData.js.map +1 -0
- package/build/src/models/legacy/request/Legacy.d.ts +43 -0
- package/build/src/models/legacy/request/Legacy.js +2 -0
- package/build/src/models/legacy/request/Legacy.js.map +1 -0
- package/build/src/models/legacy/request/RequestBody.d.ts +82 -0
- package/build/src/models/legacy/request/RequestBody.js +2 -0
- package/build/src/models/legacy/request/RequestBody.js.map +1 -0
- package/build/src/models/transformers/ArcDexieTransformer.d.ts +108 -0
- package/build/src/models/transformers/ArcDexieTransformer.js +252 -0
- package/build/src/models/transformers/ArcDexieTransformer.js.map +1 -0
- package/build/src/models/transformers/ArcLegacyNormalizer.d.ts +42 -0
- package/build/src/models/transformers/ArcLegacyNormalizer.js +80 -0
- package/build/src/models/transformers/ArcLegacyNormalizer.js.map +1 -0
- package/build/src/models/transformers/ArcLegacyTransformer.d.ts +85 -0
- package/build/src/models/transformers/ArcLegacyTransformer.js +150 -0
- package/build/src/models/transformers/ArcLegacyTransformer.js.map +1 -0
- package/build/src/models/transformers/ArcPouchTransformer.d.ts +46 -0
- package/build/src/models/transformers/ArcPouchTransformer.js +170 -0
- package/build/src/models/transformers/ArcPouchTransformer.js.map +1 -0
- package/build/src/models/transformers/BaseTransformer.d.ts +48 -0
- package/build/src/models/transformers/BaseTransformer.js +104 -0
- package/build/src/models/transformers/BaseTransformer.js.map +1 -0
- package/build/src/models/transformers/ImportUtils.d.ts +44 -0
- package/build/src/models/transformers/ImportUtils.js +135 -0
- package/build/src/models/transformers/ImportUtils.js.map +1 -0
- package/build/src/models/transformers/LegacyDataExportToApiProject.d.ts +15 -0
- package/build/src/models/transformers/LegacyDataExportToApiProject.js +70 -0
- package/build/src/models/transformers/LegacyDataExportToApiProject.js.map +1 -0
- package/build/src/models/transformers/LegacyExportProcessor.d.ts +47 -0
- package/build/src/models/transformers/LegacyExportProcessor.js +219 -0
- package/build/src/models/transformers/LegacyExportProcessor.js.map +1 -0
- package/build/src/models/transformers/PostmanBackupTransformer.d.ts +96 -0
- package/build/src/models/transformers/PostmanBackupTransformer.js +188 -0
- package/build/src/models/transformers/PostmanBackupTransformer.js.map +1 -0
- package/build/src/models/transformers/PostmanDataTransformer.d.ts +9 -0
- package/build/src/models/transformers/PostmanDataTransformer.js +46 -0
- package/build/src/models/transformers/PostmanDataTransformer.js.map +1 -0
- package/build/src/models/transformers/PostmanTransformer.d.ts +49 -0
- package/build/src/models/transformers/PostmanTransformer.js +90 -0
- package/build/src/models/transformers/PostmanTransformer.js.map +1 -0
- package/build/src/models/transformers/PostmanV21Transformer.d.ts +125 -0
- package/build/src/models/transformers/PostmanV21Transformer.js +195 -0
- package/build/src/models/transformers/PostmanV21Transformer.js.map +1 -0
- package/build/src/models/transformers/PostmanV2Transformer.d.ts +123 -0
- package/build/src/models/transformers/PostmanV2Transformer.js +195 -0
- package/build/src/models/transformers/PostmanV2Transformer.js.map +1 -0
- package/build/src/models/transformers/har.d.ts +857 -0
- package/build/src/models/transformers/har.js +2 -0
- package/build/src/models/transformers/har.js.map +1 -0
- package/build/src/runtime/actions/ActionRunner.d.ts +17 -0
- package/build/src/runtime/actions/ActionRunner.js +74 -0
- package/build/src/runtime/actions/ActionRunner.js.map +1 -0
- package/build/src/runtime/actions/ConditionRunner.d.ts +74 -0
- package/build/src/runtime/actions/ConditionRunner.js +185 -0
- package/build/src/runtime/actions/ConditionRunner.js.map +1 -0
- package/build/src/runtime/actions/RunnableCondition.d.ts +28 -0
- package/build/src/runtime/actions/RunnableCondition.js +51 -0
- package/build/src/runtime/actions/RunnableCondition.js.map +1 -0
- package/build/src/runtime/actions/runnable/ActionRunnable.d.ts +13 -0
- package/build/src/runtime/actions/runnable/ActionRunnable.js +13 -0
- package/build/src/runtime/actions/runnable/ActionRunnable.js.map +1 -0
- package/build/src/runtime/actions/runnable/DeleteCookieRunnable.d.ts +7 -0
- package/build/src/runtime/actions/runnable/DeleteCookieRunnable.js +36 -0
- package/build/src/runtime/actions/runnable/DeleteCookieRunnable.js.map +1 -0
- package/build/src/runtime/actions/runnable/SetCookieRunnable.d.ts +10 -0
- package/build/src/runtime/actions/runnable/SetCookieRunnable.js +89 -0
- package/build/src/runtime/actions/runnable/SetCookieRunnable.js.map +1 -0
- package/build/src/runtime/actions/runnable/SetVariableRunnable.d.ts +10 -0
- package/build/src/runtime/actions/runnable/SetVariableRunnable.js +49 -0
- package/build/src/runtime/actions/runnable/SetVariableRunnable.js.map +1 -0
- package/build/src/runtime/http-engine/ArcEngine.d.ts +218 -0
- package/build/src/runtime/http-engine/ArcEngine.js +1034 -0
- package/build/src/runtime/http-engine/ArcEngine.js.map +1 -0
- package/build/src/runtime/http-engine/Errors.d.ts +10 -0
- package/build/src/runtime/http-engine/Errors.js +14 -0
- package/build/src/runtime/http-engine/Errors.js.map +1 -0
- package/build/src/runtime/http-engine/FormData.d.ts +16 -0
- package/build/src/runtime/http-engine/FormData.js +72 -0
- package/build/src/runtime/http-engine/FormData.js.map +1 -0
- package/build/src/runtime/http-engine/HttpEngine.d.ts +294 -0
- package/build/src/runtime/http-engine/HttpEngine.js +736 -0
- package/build/src/runtime/http-engine/HttpEngine.js.map +1 -0
- package/build/src/runtime/http-engine/HttpErrorCodes.d.ts +15 -0
- package/build/src/runtime/http-engine/HttpErrorCodes.js +223 -0
- package/build/src/runtime/http-engine/HttpErrorCodes.js.map +1 -0
- package/build/src/runtime/http-engine/NodeEngine.d.ts +154 -0
- package/build/src/runtime/http-engine/NodeEngine.js +761 -0
- package/build/src/runtime/http-engine/NodeEngine.js.map +1 -0
- package/build/src/runtime/http-engine/NodeEngineDirect.d.ts +113 -0
- package/build/src/runtime/http-engine/NodeEngineDirect.js +443 -0
- package/build/src/runtime/http-engine/NodeEngineDirect.js.map +1 -0
- package/build/src/runtime/http-engine/PayloadSupport.d.ts +26 -0
- package/build/src/runtime/http-engine/PayloadSupport.js +78 -0
- package/build/src/runtime/http-engine/PayloadSupport.js.map +1 -0
- package/build/src/runtime/http-engine/RequestUtils.d.ts +66 -0
- package/build/src/runtime/http-engine/RequestUtils.js +144 -0
- package/build/src/runtime/http-engine/RequestUtils.js.map +1 -0
- package/build/src/runtime/http-engine/ntlm/Des.d.ts +4 -0
- package/build/src/runtime/http-engine/ntlm/Des.js +343 -0
- package/build/src/runtime/http-engine/ntlm/Des.js.map +1 -0
- package/build/src/runtime/http-engine/ntlm/MD4.d.ts +13 -0
- package/build/src/runtime/http-engine/ntlm/MD4.js +120 -0
- package/build/src/runtime/http-engine/ntlm/MD4.js.map +1 -0
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.d.ts +26 -0
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.js +159 -0
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.js.map +1 -0
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.d.ts +10 -0
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.js +51 -0
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.js.map +1 -0
- package/build/src/runtime/modules/BasicAuthCache.d.ts +39 -0
- package/build/src/runtime/modules/BasicAuthCache.js +125 -0
- package/build/src/runtime/modules/BasicAuthCache.js.map +1 -0
- package/build/src/runtime/modules/ExecutionResponse.d.ts +4 -0
- package/build/src/runtime/modules/ExecutionResponse.js +6 -0
- package/build/src/runtime/modules/ExecutionResponse.js.map +1 -0
- package/build/src/runtime/modules/ModulesRegistry.d.ts +93 -0
- package/build/src/runtime/modules/ModulesRegistry.js +69 -0
- package/build/src/runtime/modules/ModulesRegistry.js.map +1 -0
- package/build/src/runtime/modules/RequestAuthorization.d.ts +6 -0
- package/build/src/runtime/modules/RequestAuthorization.js +114 -0
- package/build/src/runtime/modules/RequestAuthorization.js.map +1 -0
- package/build/src/runtime/modules/RequestCookies.d.ts +17 -0
- package/build/src/runtime/modules/RequestCookies.js +133 -0
- package/build/src/runtime/modules/RequestCookies.js.map +1 -0
- package/build/src/runtime/node/ProjectRunner.d.ts +125 -0
- package/build/src/runtime/node/ProjectRunner.js +178 -0
- package/build/src/runtime/node/ProjectRunner.js.map +1 -0
- package/build/src/runtime/node/RequestFactory.d.ts +139 -0
- package/build/src/runtime/node/RequestFactory.js +397 -0
- package/build/src/runtime/node/RequestFactory.js.map +1 -0
- package/build/src/runtime/node/VariablesStore.d.ts +9 -0
- package/build/src/runtime/node/VariablesStore.js +19 -0
- package/build/src/runtime/node/VariablesStore.js.map +1 -0
- package/build/src/runtime/variables/Cache.d.ts +23 -0
- package/build/src/runtime/variables/Cache.js +51 -0
- package/build/src/runtime/variables/Cache.js.map +1 -0
- package/build/src/runtime/variables/EvalFunctions.d.ts +58 -0
- package/build/src/runtime/variables/EvalFunctions.js +123 -0
- package/build/src/runtime/variables/EvalFunctions.js.map +1 -0
- package/build/src/runtime/variables/ProjectVariables.d.ts +5 -0
- package/build/src/runtime/variables/ProjectVariables.js +6 -0
- package/build/src/runtime/variables/ProjectVariables.js.map +1 -0
- package/build/src/runtime/variables/VariablesProcessor.d.ts +165 -0
- package/build/src/runtime/variables/VariablesProcessor.js +515 -0
- package/build/src/runtime/variables/VariablesProcessor.js.map +1 -0
- package/build/src/runtime/variables/VariablesTokenizer.d.ts +26 -0
- package/build/src/runtime/variables/VariablesTokenizer.js +53 -0
- package/build/src/runtime/variables/VariablesTokenizer.js.map +1 -0
- package/package.json +97 -0
- package/readme.md +51 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IOAuth2Authorization, ITokenRemoveOptions, IOidcTokenInfo, IOidcTokenError, ITokenInfo } from '../../models/Authorization.js';
|
|
2
|
+
export declare class AuthorizationEvents {
|
|
3
|
+
static get OAuth2(): typeof OAuth2Events;
|
|
4
|
+
static get Oidc(): typeof OidcEvents;
|
|
5
|
+
}
|
|
6
|
+
declare class OAuth2Events {
|
|
7
|
+
/**
|
|
8
|
+
* @param target A node on which to dispatch the event.
|
|
9
|
+
* @param config Authorization options.
|
|
10
|
+
* @returns Promise resolved with authorization result
|
|
11
|
+
*/
|
|
12
|
+
static authorize(target: EventTarget, config: IOAuth2Authorization): Promise<ITokenInfo | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* @param target A node on which to dispatch the event.
|
|
15
|
+
* @param config Authorization options.
|
|
16
|
+
* @returns Promise resolved when the token is removed
|
|
17
|
+
*/
|
|
18
|
+
static removeToken(target: EventTarget, config: ITokenRemoveOptions): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
declare class OidcEvents {
|
|
21
|
+
/**
|
|
22
|
+
* @param target A node on which to dispatch the event.
|
|
23
|
+
* @param config Authorization options.
|
|
24
|
+
* @returns Promise resolved with authorization result
|
|
25
|
+
*/
|
|
26
|
+
static authorize(target: EventTarget, config: IOAuth2Authorization): Promise<(IOidcTokenInfo | IOidcTokenError)[] | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* @param target A node on which to dispatch the event.
|
|
29
|
+
* @param config Authorization options.
|
|
30
|
+
* @returns Promise resolved when the token is removed
|
|
31
|
+
*/
|
|
32
|
+
static removeToken(target: EventTarget, config: ITokenRemoveOptions): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { AuthorizationEventTypes } from './AuthorizationEventTypes.js';
|
|
2
|
+
import { ContextEvent } from "../BaseEvents.js";
|
|
3
|
+
export class AuthorizationEvents {
|
|
4
|
+
static get OAuth2() {
|
|
5
|
+
return OAuth2Events;
|
|
6
|
+
}
|
|
7
|
+
static get Oidc() {
|
|
8
|
+
return OidcEvents;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
class OAuth2Events {
|
|
12
|
+
/**
|
|
13
|
+
* @param target A node on which to dispatch the event.
|
|
14
|
+
* @param config Authorization options.
|
|
15
|
+
* @returns Promise resolved with authorization result
|
|
16
|
+
*/
|
|
17
|
+
static async authorize(target, config) {
|
|
18
|
+
const e = new ContextEvent(AuthorizationEventTypes.OAuth2.authorize, config);
|
|
19
|
+
target.dispatchEvent(e);
|
|
20
|
+
return e.detail.result;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param target A node on which to dispatch the event.
|
|
24
|
+
* @param config Authorization options.
|
|
25
|
+
* @returns Promise resolved when the token is removed
|
|
26
|
+
*/
|
|
27
|
+
static async removeToken(target, config) {
|
|
28
|
+
const e = new ContextEvent(AuthorizationEventTypes.OAuth2.removeToken, config);
|
|
29
|
+
target.dispatchEvent(e);
|
|
30
|
+
return e.detail.result;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
class OidcEvents {
|
|
34
|
+
/**
|
|
35
|
+
* @param target A node on which to dispatch the event.
|
|
36
|
+
* @param config Authorization options.
|
|
37
|
+
* @returns Promise resolved with authorization result
|
|
38
|
+
*/
|
|
39
|
+
static async authorize(target, config) {
|
|
40
|
+
const e = new ContextEvent(AuthorizationEventTypes.Oidc.authorize, config);
|
|
41
|
+
target.dispatchEvent(e);
|
|
42
|
+
return e.detail.result;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @param target A node on which to dispatch the event.
|
|
46
|
+
* @param config Authorization options.
|
|
47
|
+
* @returns Promise resolved when the token is removed
|
|
48
|
+
*/
|
|
49
|
+
static async removeToken(target, config) {
|
|
50
|
+
const e = new ContextEvent(AuthorizationEventTypes.Oidc.removeTokens, config);
|
|
51
|
+
target.dispatchEvent(e);
|
|
52
|
+
return e.detail.result;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=AuthorizationEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthorizationEvents.js","sourceRoot":"","sources":["../../../../src/events/authorization/AuthorizationEvents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,E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,EAAE,MAAM,CAAC,CAAC;QACzG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const CookieEventTypes: Readonly<{
|
|
2
|
+
listAll: string;
|
|
3
|
+
listDomain: string;
|
|
4
|
+
listUrl: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
deleteUrl: string;
|
|
7
|
+
update: string;
|
|
8
|
+
updateBulk: string;
|
|
9
|
+
State: Readonly<{
|
|
10
|
+
delete: string;
|
|
11
|
+
update: string;
|
|
12
|
+
}>;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const CookieEventTypes = Object.freeze({
|
|
2
|
+
listAll: 'sessioncookielistall',
|
|
3
|
+
listDomain: 'sessioncookielistdomain',
|
|
4
|
+
listUrl: 'sessioncookielisturl',
|
|
5
|
+
delete: 'sessioncookiedelete',
|
|
6
|
+
deleteUrl: 'sessioncookiedeleteurl',
|
|
7
|
+
update: 'sessioncookieupdate',
|
|
8
|
+
updateBulk: 'sessioncookieupdatebulk',
|
|
9
|
+
State: Object.freeze({
|
|
10
|
+
delete: 'sessioncookiestatedelete',
|
|
11
|
+
update: 'sessioncookiestateupdate',
|
|
12
|
+
}),
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=CookieEventTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CookieEventTypes.js","sourceRoot":"","sources":["../../../../src/events/cookies/CookieEventTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,sBAAsB;IAC/B,UAAU,EAAE,yBAAyB;IACrC,OAAO,EAAE,sBAAsB;IAC/B,MAAM,EAAE,qBAAqB;IAC7B,SAAS,EAAE,wBAAwB;IACnC,MAAM,EAAE,qBAAqB;IAC7B,UAAU,EAAE,yBAAyB;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnB,MAAM,EAAE,0BAA0B;QAClC,MAAM,EAAE,0BAA0B;KACnC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { IHttpCookie } from "../../models/HttpCookie.js";
|
|
2
|
+
import { ContextChangeRecord } from "../BaseEvents.js";
|
|
3
|
+
export interface ICookieDomainListDetail {
|
|
4
|
+
domain: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ICookieUrlListDetail {
|
|
7
|
+
url: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ICookieItemsDetail {
|
|
10
|
+
cookies: IHttpCookie[];
|
|
11
|
+
}
|
|
12
|
+
export interface ICookieDetail {
|
|
13
|
+
cookie: IHttpCookie;
|
|
14
|
+
}
|
|
15
|
+
export interface ICookieDeleteUrlDetail {
|
|
16
|
+
url: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class CookieEvents {
|
|
20
|
+
/**
|
|
21
|
+
* Lists all projects in the data store.
|
|
22
|
+
* This does not return the whole project record. Instead it only returns the index object of the project.
|
|
23
|
+
*
|
|
24
|
+
* @param target The target on which to dispatch the event
|
|
25
|
+
* @returns The list of project index objects.
|
|
26
|
+
*/
|
|
27
|
+
static listAll(target: EventTarget): Promise<IHttpCookie[] | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* @param target The target on which to dispatch the event
|
|
30
|
+
* @param domain The cookie domain
|
|
31
|
+
* @returns The list of project index objects.
|
|
32
|
+
*/
|
|
33
|
+
static listDomain(target: EventTarget, domain: string): Promise<IHttpCookie[] | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* @param target The target on which to dispatch the event
|
|
36
|
+
* @param url The cookie URL
|
|
37
|
+
* @returns The list of project index objects.
|
|
38
|
+
*/
|
|
39
|
+
static listUrl(target: EventTarget, url: string): Promise<IHttpCookie[] | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Deletes cookies from the store.
|
|
42
|
+
*
|
|
43
|
+
* @param target The target on which to dispatch the event
|
|
44
|
+
* @param cookies The list of cookies to remove
|
|
45
|
+
*/
|
|
46
|
+
static delete(target: EventTarget, cookies: IHttpCookie[]): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Deletes cookies from the store.
|
|
49
|
+
*
|
|
50
|
+
* @param target The target on which to dispatch the event
|
|
51
|
+
* @param url The url associated with the cookie. Depending on the session mechanism the URL or the domain and the path is used.
|
|
52
|
+
* @param name The name of the cookie to remove. When not set all cookies are removed for the given URL.
|
|
53
|
+
*/
|
|
54
|
+
static deleteUrl(target: EventTarget, url: string, name?: string): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Updates a cookie in the store.
|
|
57
|
+
*
|
|
58
|
+
* @param target The target on which to dispatch the event
|
|
59
|
+
* @param cookie A cookie to update
|
|
60
|
+
* @returns The change record of the updated cookie.
|
|
61
|
+
*/
|
|
62
|
+
static update(target: EventTarget, cookie: IHttpCookie): Promise<ContextChangeRecord<IHttpCookie> | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Updates a cookie in the store in a bulk operation.
|
|
65
|
+
*
|
|
66
|
+
* @param target The target on which to dispatch the event
|
|
67
|
+
* @param cookies A list of cookies to update
|
|
68
|
+
* @returns The change record of the updated cookie.
|
|
69
|
+
*/
|
|
70
|
+
static updateBulk(target: EventTarget, cookies: IHttpCookie[]): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Events related to a state of a cookie store.
|
|
73
|
+
*/
|
|
74
|
+
static get State(): typeof StateEvents;
|
|
75
|
+
}
|
|
76
|
+
declare class StateEvents {
|
|
77
|
+
/**
|
|
78
|
+
* Event dispatched when a cookie was deleted from the context store
|
|
79
|
+
* @param target The target on which to dispatch the event
|
|
80
|
+
* @param cookie The schema of the removed cookie
|
|
81
|
+
*/
|
|
82
|
+
static delete(target: EventTarget, cookie: IHttpCookie): void;
|
|
83
|
+
/**
|
|
84
|
+
* Event dispatched when a cookie was deleted from the context store
|
|
85
|
+
* @param target The target on which to dispatch the event
|
|
86
|
+
* @param record The change record.
|
|
87
|
+
*/
|
|
88
|
+
static update(target: EventTarget, record: ContextChangeRecord<IHttpCookie>): void;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { CookieEventTypes } from './CookieEventTypes.js';
|
|
2
|
+
import { ContextEvent, ContextUpdateEvent, ContextStateUpdateEvent } from "../BaseEvents.js";
|
|
3
|
+
export class CookieEvents {
|
|
4
|
+
/**
|
|
5
|
+
* Lists all projects in the data store.
|
|
6
|
+
* This does not return the whole project record. Instead it only returns the index object of the project.
|
|
7
|
+
*
|
|
8
|
+
* @param target The target on which to dispatch the event
|
|
9
|
+
* @returns The list of project index objects.
|
|
10
|
+
*/
|
|
11
|
+
static async listAll(target) {
|
|
12
|
+
const detail = {};
|
|
13
|
+
const e = new CustomEvent(CookieEventTypes.listAll, {
|
|
14
|
+
bubbles: true,
|
|
15
|
+
composed: true,
|
|
16
|
+
cancelable: true,
|
|
17
|
+
detail,
|
|
18
|
+
});
|
|
19
|
+
target.dispatchEvent(e);
|
|
20
|
+
return e.detail.result;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param target The target on which to dispatch the event
|
|
24
|
+
* @param domain The cookie domain
|
|
25
|
+
* @returns The list of project index objects.
|
|
26
|
+
*/
|
|
27
|
+
static async listDomain(target, domain) {
|
|
28
|
+
const detail = { domain };
|
|
29
|
+
const e = new ContextEvent(CookieEventTypes.listDomain, detail);
|
|
30
|
+
target.dispatchEvent(e);
|
|
31
|
+
return e.detail.result;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @param target The target on which to dispatch the event
|
|
35
|
+
* @param url The cookie URL
|
|
36
|
+
* @returns The list of project index objects.
|
|
37
|
+
*/
|
|
38
|
+
static async listUrl(target, url) {
|
|
39
|
+
const detail = { url };
|
|
40
|
+
const e = new ContextEvent(CookieEventTypes.listUrl, detail);
|
|
41
|
+
target.dispatchEvent(e);
|
|
42
|
+
return e.detail.result;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Deletes cookies from the store.
|
|
46
|
+
*
|
|
47
|
+
* @param target The target on which to dispatch the event
|
|
48
|
+
* @param cookies The list of cookies to remove
|
|
49
|
+
*/
|
|
50
|
+
static async delete(target, cookies) {
|
|
51
|
+
const detail = { cookies };
|
|
52
|
+
const e = new ContextEvent(CookieEventTypes.delete, detail);
|
|
53
|
+
target.dispatchEvent(e);
|
|
54
|
+
return e.detail.result;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Deletes cookies from the store.
|
|
58
|
+
*
|
|
59
|
+
* @param target The target on which to dispatch the event
|
|
60
|
+
* @param url The url associated with the cookie. Depending on the session mechanism the URL or the domain and the path is used.
|
|
61
|
+
* @param name The name of the cookie to remove. When not set all cookies are removed for the given URL.
|
|
62
|
+
*/
|
|
63
|
+
static async deleteUrl(target, url, name) {
|
|
64
|
+
const detail = { url, name };
|
|
65
|
+
const e = new ContextEvent(CookieEventTypes.deleteUrl, detail);
|
|
66
|
+
target.dispatchEvent(e);
|
|
67
|
+
return e.detail.result;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Updates a cookie in the store.
|
|
71
|
+
*
|
|
72
|
+
* @param target The target on which to dispatch the event
|
|
73
|
+
* @param cookie A cookie to update
|
|
74
|
+
* @returns The change record of the updated cookie.
|
|
75
|
+
*/
|
|
76
|
+
static async update(target, cookie) {
|
|
77
|
+
const e = new ContextUpdateEvent(CookieEventTypes.update, { item: cookie });
|
|
78
|
+
target.dispatchEvent(e);
|
|
79
|
+
return e.detail.result;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Updates a cookie in the store in a bulk operation.
|
|
83
|
+
*
|
|
84
|
+
* @param target The target on which to dispatch the event
|
|
85
|
+
* @param cookies A list of cookies to update
|
|
86
|
+
* @returns The change record of the updated cookie.
|
|
87
|
+
*/
|
|
88
|
+
static async updateBulk(target, cookies) {
|
|
89
|
+
const detail = { cookies };
|
|
90
|
+
const e = new ContextEvent(CookieEventTypes.updateBulk, detail);
|
|
91
|
+
target.dispatchEvent(e);
|
|
92
|
+
return e.detail.result;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Events related to a state of a cookie store.
|
|
96
|
+
*/
|
|
97
|
+
static get State() {
|
|
98
|
+
return StateEvents;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
class StateEvents {
|
|
102
|
+
/**
|
|
103
|
+
* Event dispatched when a cookie was deleted from the context store
|
|
104
|
+
* @param target The target on which to dispatch the event
|
|
105
|
+
* @param cookie The schema of the removed cookie
|
|
106
|
+
*/
|
|
107
|
+
static delete(target, cookie) {
|
|
108
|
+
const e = new CustomEvent(CookieEventTypes.State.delete, {
|
|
109
|
+
bubbles: true,
|
|
110
|
+
composed: true,
|
|
111
|
+
cancelable: false,
|
|
112
|
+
detail: { cookie },
|
|
113
|
+
});
|
|
114
|
+
target.dispatchEvent(e);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Event dispatched when a cookie was deleted from the context store
|
|
118
|
+
* @param target The target on which to dispatch the event
|
|
119
|
+
* @param record The change record.
|
|
120
|
+
*/
|
|
121
|
+
static update(target, record) {
|
|
122
|
+
const e = new ContextStateUpdateEvent(CookieEventTypes.State.update, record);
|
|
123
|
+
target.dispatchEvent(e);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=CookieEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CookieEvents.js","sourceRoot":"","sources":["../../../../src/events/cookies/CookieEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAgC,YAAY,EAAuB,kBAAkB,EA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AED,MAAM,WAAW;IACf;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,MAAmB,EAAE,MAAmB;QACpD,MAAM,CAAC,GAAG,IAAI,WAAW,CAAgB,gBAAgB,CAAC,KAAK,CAAC,MAAM,EAAE;YACtE,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,EAAE,MAAM,EAAE;SACnB,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,MAAmB,EAAE,MAAwC;QACzE,MAAM,CAAC,GAAG,IAAI,uBAAuB,CAAc,gBAAgB,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1F,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EncryptionEventTypes.js","sourceRoot":"","sources":["../../../../src/events/encryption/EncryptionEventTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,mBAAmB;IAC5B,OAAO,EAAE,mBAAmB;CAC7B,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface IEncryptionEventDetail {
|
|
2
|
+
/**
|
|
3
|
+
* The data to export
|
|
4
|
+
*/
|
|
5
|
+
data: any;
|
|
6
|
+
/**
|
|
7
|
+
* The passphrase to use in 2-way data encryption
|
|
8
|
+
*/
|
|
9
|
+
passphrase: string;
|
|
10
|
+
/**
|
|
11
|
+
* Encryption method to use
|
|
12
|
+
*/
|
|
13
|
+
method: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class EncryptionEvents {
|
|
16
|
+
/**
|
|
17
|
+
* Dispatches an event handled by the encryption module to encrypt the data
|
|
18
|
+
*
|
|
19
|
+
* @param target A node on which to dispatch the event.
|
|
20
|
+
* @param data The data to encrypt
|
|
21
|
+
* @param passphrase The passphrase to use in 2-way data encryption
|
|
22
|
+
* @param method Encryption method to use
|
|
23
|
+
* @returns Promise resolved to the encryption result
|
|
24
|
+
*/
|
|
25
|
+
static encrypt(target: EventTarget, data: any, passphrase: string, method: string): Promise<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Dispatches an event handled by the encryption module to decrypt the data
|
|
28
|
+
*
|
|
29
|
+
* @param target A node on which to dispatch the event.
|
|
30
|
+
* @param data The data to decrypt
|
|
31
|
+
* @param passphrase The passphrase to use to decrypt the data
|
|
32
|
+
* @param method Method used to encrypt the data
|
|
33
|
+
* @returns Promise resolved to the decrypted result
|
|
34
|
+
*/
|
|
35
|
+
static decrypt(target: EventTarget, data: any, passphrase: string, method: string): Promise<string | undefined>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EncryptionEventTypes } from './EncryptionEventTypes.js';
|
|
2
|
+
import { ContextEvent } from "../BaseEvents.js";
|
|
3
|
+
export class EncryptionEvents {
|
|
4
|
+
/**
|
|
5
|
+
* Dispatches an event handled by the encryption module to encrypt the data
|
|
6
|
+
*
|
|
7
|
+
* @param target A node on which to dispatch the event.
|
|
8
|
+
* @param data The data to encrypt
|
|
9
|
+
* @param passphrase The passphrase to use in 2-way data encryption
|
|
10
|
+
* @param method Encryption method to use
|
|
11
|
+
* @returns Promise resolved to the encryption result
|
|
12
|
+
*/
|
|
13
|
+
static async encrypt(target, data, passphrase, method) {
|
|
14
|
+
const config = { data, passphrase, method };
|
|
15
|
+
const e = new ContextEvent(EncryptionEventTypes.encrypt, config);
|
|
16
|
+
target.dispatchEvent(e);
|
|
17
|
+
return e.detail.result;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Dispatches an event handled by the encryption module to decrypt the data
|
|
21
|
+
*
|
|
22
|
+
* @param target A node on which to dispatch the event.
|
|
23
|
+
* @param data The data to decrypt
|
|
24
|
+
* @param passphrase The passphrase to use to decrypt the data
|
|
25
|
+
* @param method Method used to encrypt the data
|
|
26
|
+
* @returns Promise resolved to the decrypted result
|
|
27
|
+
*/
|
|
28
|
+
static async decrypt(target, data, passphrase, method) {
|
|
29
|
+
const config = { data, passphrase, method };
|
|
30
|
+
const e = new ContextEvent(EncryptionEventTypes.decrypt, config);
|
|
31
|
+
target.dispatchEvent(e);
|
|
32
|
+
return e.detail.result;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=EncryptionEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EncryptionEvents.js","sourceRoot":"","sources":["../../../../src/events/encryption/EncryptionEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiBhD,MAAM,OAAO,gBAAgB;IAC3B;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAmB,EAAE,IAAS,EAAE,UAAkB,EAAE,MAAc;QACrF,MAAM,MAAM,GAA2B,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QACpE,MAAM,CAAC,GAAG,IAAI,YAAY,CAAiC,oBAAoB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACjG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAmB,EAAE,IAAS,EAAE,UAAkB,EAAE,MAAc;QACrF,MAAM,MAAM,GAA2B,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QACpE,MAAM,CAAC,GAAG,IAAI,YAAY,CAAiC,oBAAoB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACjG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentEventTypes.js","sourceRoot":"","sources":["../../../../src/events/environment/EnvironmentEventTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC;IACjD,GAAG,EAAE,wBAAwB;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ISetVariableDetail {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class EnvironmentEvents {
|
|
6
|
+
/**
|
|
7
|
+
* An event dispatched to set a variable in the current environment.
|
|
8
|
+
*
|
|
9
|
+
* @param target A node on which to dispatch the event.
|
|
10
|
+
* @param name Variable name
|
|
11
|
+
* @param value Variable value
|
|
12
|
+
* @returns Nothing. The promise resolves when the variable is set.
|
|
13
|
+
*/
|
|
14
|
+
static set(target: EventTarget, name: string, value: string): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EnvironmentEventTypes } from './EnvironmentEventTypes.js';
|
|
2
|
+
import { ContextEvent } from "../BaseEvents.js";
|
|
3
|
+
export class EnvironmentEvents {
|
|
4
|
+
/**
|
|
5
|
+
* An event dispatched to set a variable in the current environment.
|
|
6
|
+
*
|
|
7
|
+
* @param target A node on which to dispatch the event.
|
|
8
|
+
* @param name Variable name
|
|
9
|
+
* @param value Variable value
|
|
10
|
+
* @returns Nothing. The promise resolves when the variable is set.
|
|
11
|
+
*/
|
|
12
|
+
static async set(target, name, value) {
|
|
13
|
+
const detail = { name, value };
|
|
14
|
+
const e = new ContextEvent(EnvironmentEventTypes.set, detail);
|
|
15
|
+
target.dispatchEvent(e);
|
|
16
|
+
return e.detail.result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=EnvironmentEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentEvents.js","sourceRoot":"","sources":["../../../../src/events/environment/EnvironmentEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAOhD,MAAM,OAAO,iBAAiB;IAC5B;;;;;;;OAOG;IACH,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,MAAmB,EAAE,IAAY,EAAE,KAAa;QAC/D,MAAM,MAAM,GAAuB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACnD,MAAM,CAAC,GAAG,IAAI,YAAY,CAA2B,qBAAqB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACxF,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IClientCertificate, ICertificateIndex, IRequestCertificate } from '../../models/ClientCertificate.js';
|
|
2
|
+
import { ContextListOptions, ContextListResult, ContextDeleteRecord, ContextChangeRecord } from '../BaseEvents.js';
|
|
3
|
+
export declare class ClientCertificateEvents {
|
|
4
|
+
/**
|
|
5
|
+
* Dispatches an event handled by the data store to read the client certificate.
|
|
6
|
+
*
|
|
7
|
+
* @param target A node on which to dispatch the event.
|
|
8
|
+
* @param id The id of the client certificate
|
|
9
|
+
* @param rev The revision of the client certificate. If not set then the latest revision is used.
|
|
10
|
+
* @returns Promise resolved to a client certificate model.
|
|
11
|
+
*/
|
|
12
|
+
static read(target: EventTarget, id: string, rev?: string): Promise<IRequestCertificate | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Dispatches an event to list the client certificates data.
|
|
15
|
+
*
|
|
16
|
+
* @param target A node on which to dispatch the event.
|
|
17
|
+
* @param opts Query options.
|
|
18
|
+
* @returns The list result.
|
|
19
|
+
*/
|
|
20
|
+
static list(target: EventTarget, opts?: ContextListOptions): Promise<ContextListResult<ICertificateIndex> | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Dispatches an event handled by the data store to delete a client certificate
|
|
23
|
+
*
|
|
24
|
+
* @param target A node on which to dispatch the event.
|
|
25
|
+
* @param id The id of the project to delete.
|
|
26
|
+
* @param rev The revision of the project. If not set then the latest revision is used.
|
|
27
|
+
* @returns Promise resolved to a new revision after delete.
|
|
28
|
+
*/
|
|
29
|
+
static delete(target: EventTarget, id: string, rev?: string): Promise<ContextDeleteRecord | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Dispatches an event handled by the data store to insert a new client certificate.
|
|
32
|
+
*
|
|
33
|
+
* @param target A node on which to dispatch the event.
|
|
34
|
+
* @param item The certificate object.
|
|
35
|
+
* @returns Promise resolved to the change record
|
|
36
|
+
*/
|
|
37
|
+
static insert(target: EventTarget, item: IClientCertificate): Promise<ContextChangeRecord<ICertificateIndex> | undefined>;
|
|
38
|
+
static get State(): typeof StateEvents;
|
|
39
|
+
}
|
|
40
|
+
declare class StateEvents {
|
|
41
|
+
/**
|
|
42
|
+
* Dispatches an event after a client certificate was updated
|
|
43
|
+
*
|
|
44
|
+
* @param target A node on which to dispatch the event.
|
|
45
|
+
* @param record Change record
|
|
46
|
+
*/
|
|
47
|
+
static update(target: EventTarget, record: ContextChangeRecord<ICertificateIndex>): void;
|
|
48
|
+
/**
|
|
49
|
+
* Dispatches an event after a client certificate was deleted
|
|
50
|
+
*
|
|
51
|
+
* @param target A node on which to dispatch the event.
|
|
52
|
+
* @param record The context store delete record
|
|
53
|
+
*/
|
|
54
|
+
static delete(target: EventTarget, record: ContextDeleteRecord): void;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ContextReadEvent, ContextListEvent, ContextDeleteEvent, ContextUpdateEvent, ContextStateUpdateEvent, ContextStateDeleteEvent } from '../BaseEvents.js';
|
|
2
|
+
import { ModelEventTypes } from './ModelEventTypes.js';
|
|
3
|
+
export class ClientCertificateEvents {
|
|
4
|
+
/**
|
|
5
|
+
* Dispatches an event handled by the data store to read the client certificate.
|
|
6
|
+
*
|
|
7
|
+
* @param target A node on which to dispatch the event.
|
|
8
|
+
* @param id The id of the client certificate
|
|
9
|
+
* @param rev The revision of the client certificate. If not set then the latest revision is used.
|
|
10
|
+
* @returns Promise resolved to a client certificate model.
|
|
11
|
+
*/
|
|
12
|
+
static async read(target, id, rev) {
|
|
13
|
+
const e = new ContextReadEvent(ModelEventTypes.ClientCertificate.read, id, rev);
|
|
14
|
+
target.dispatchEvent(e);
|
|
15
|
+
return e.detail.result;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Dispatches an event to list the client certificates data.
|
|
19
|
+
*
|
|
20
|
+
* @param target A node on which to dispatch the event.
|
|
21
|
+
* @param opts Query options.
|
|
22
|
+
* @returns The list result.
|
|
23
|
+
*/
|
|
24
|
+
static async list(target, opts) {
|
|
25
|
+
const e = new ContextListEvent(ModelEventTypes.ClientCertificate.list, opts);
|
|
26
|
+
target.dispatchEvent(e);
|
|
27
|
+
return e.detail.result;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Dispatches an event handled by the data store to delete a client certificate
|
|
31
|
+
*
|
|
32
|
+
* @param target A node on which to dispatch the event.
|
|
33
|
+
* @param id The id of the project to delete.
|
|
34
|
+
* @param rev The revision of the project. If not set then the latest revision is used.
|
|
35
|
+
* @returns Promise resolved to a new revision after delete.
|
|
36
|
+
*/
|
|
37
|
+
static async delete(target, id, rev) {
|
|
38
|
+
const e = new ContextDeleteEvent(ModelEventTypes.ClientCertificate.delete, id, undefined, rev);
|
|
39
|
+
target.dispatchEvent(e);
|
|
40
|
+
return e.detail.result;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Dispatches an event handled by the data store to insert a new client certificate.
|
|
44
|
+
*
|
|
45
|
+
* @param target A node on which to dispatch the event.
|
|
46
|
+
* @param item The certificate object.
|
|
47
|
+
* @returns Promise resolved to the change record
|
|
48
|
+
*/
|
|
49
|
+
static async insert(target, item) {
|
|
50
|
+
const e = new ContextUpdateEvent(ModelEventTypes.ClientCertificate.insert, { item, });
|
|
51
|
+
target.dispatchEvent(e);
|
|
52
|
+
return e.detail.result;
|
|
53
|
+
}
|
|
54
|
+
static get State() {
|
|
55
|
+
return StateEvents;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
class StateEvents {
|
|
59
|
+
/**
|
|
60
|
+
* Dispatches an event after a client certificate was updated
|
|
61
|
+
*
|
|
62
|
+
* @param target A node on which to dispatch the event.
|
|
63
|
+
* @param record Change record
|
|
64
|
+
*/
|
|
65
|
+
static update(target, record) {
|
|
66
|
+
const e = new ContextStateUpdateEvent(ModelEventTypes.ClientCertificate.State.update, record);
|
|
67
|
+
target.dispatchEvent(e);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Dispatches an event after a client certificate was deleted
|
|
71
|
+
*
|
|
72
|
+
* @param target A node on which to dispatch the event.
|
|
73
|
+
* @param record The context store delete record
|
|
74
|
+
*/
|
|
75
|
+
static delete(target, record) {
|
|
76
|
+
const e = new ContextStateDeleteEvent(ModelEventTypes.ClientCertificate.State.delete, record);
|
|
77
|
+
target.dispatchEvent(e);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=ClientCertificateEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientCertificateEvents.js","sourceRoot":"","sources":["../../../../src/events/models/ClientCertificateEvents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAyC,kBAAkB,EAAuB,kBAAkB,EAAu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