@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,47 @@
|
|
|
1
|
+
export declare const ModelEventTypes: {
|
|
2
|
+
ClientCertificate: Readonly<{
|
|
3
|
+
read: string;
|
|
4
|
+
list: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
update: string;
|
|
7
|
+
insert: string;
|
|
8
|
+
State: Readonly<{
|
|
9
|
+
update: string;
|
|
10
|
+
delete: string;
|
|
11
|
+
}>;
|
|
12
|
+
}>;
|
|
13
|
+
Project: Readonly<{
|
|
14
|
+
create: string;
|
|
15
|
+
read: string;
|
|
16
|
+
update: string;
|
|
17
|
+
delete: string;
|
|
18
|
+
/**
|
|
19
|
+
* Moves objects inside a project between position and/or folders.
|
|
20
|
+
*/
|
|
21
|
+
move: string;
|
|
22
|
+
/**
|
|
23
|
+
* Makes a copy of the project and stores it as new.
|
|
24
|
+
*/
|
|
25
|
+
clone: string;
|
|
26
|
+
listAll: string;
|
|
27
|
+
Folder: Readonly<{
|
|
28
|
+
create: string;
|
|
29
|
+
delete: string;
|
|
30
|
+
update: string;
|
|
31
|
+
}>;
|
|
32
|
+
Request: Readonly<{
|
|
33
|
+
create: string;
|
|
34
|
+
delete: string;
|
|
35
|
+
update: string;
|
|
36
|
+
}>;
|
|
37
|
+
Environment: Readonly<{
|
|
38
|
+
create: string;
|
|
39
|
+
delete: string;
|
|
40
|
+
update: string;
|
|
41
|
+
}>;
|
|
42
|
+
State: Readonly<{
|
|
43
|
+
update: string;
|
|
44
|
+
delete: string;
|
|
45
|
+
}>;
|
|
46
|
+
}>;
|
|
47
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const ModelEventTypes = {
|
|
2
|
+
ClientCertificate: Object.freeze({
|
|
3
|
+
read: 'storeclientcertificateread',
|
|
4
|
+
list: 'storeclientcertificatelist',
|
|
5
|
+
delete: 'storeclientcertificatedelete',
|
|
6
|
+
update: 'storeclientcertificateupdate',
|
|
7
|
+
insert: 'storeclientcertificateinsert',
|
|
8
|
+
State: Object.freeze({
|
|
9
|
+
update: 'storestateclientcertificateupdate',
|
|
10
|
+
delete: 'storestateclientcertificatedelete',
|
|
11
|
+
}),
|
|
12
|
+
}),
|
|
13
|
+
Project: Object.freeze({
|
|
14
|
+
create: 'storeprojectcreate',
|
|
15
|
+
read: 'storeprojectread',
|
|
16
|
+
update: 'storeprojectupdate',
|
|
17
|
+
delete: 'storeprojectdelete',
|
|
18
|
+
/**
|
|
19
|
+
* Moves objects inside a project between position and/or folders.
|
|
20
|
+
*/
|
|
21
|
+
move: 'storeprojectmove',
|
|
22
|
+
/**
|
|
23
|
+
* Makes a copy of the project and stores it as new.
|
|
24
|
+
*/
|
|
25
|
+
clone: 'storeprojectclone',
|
|
26
|
+
listAll: 'storeprojectlistall',
|
|
27
|
+
Folder: Object.freeze({
|
|
28
|
+
create: 'storeprojectfoldercreate',
|
|
29
|
+
delete: 'storeprojectfolderdelete',
|
|
30
|
+
update: 'storeprojectfolderupdate',
|
|
31
|
+
}),
|
|
32
|
+
Request: Object.freeze({
|
|
33
|
+
create: 'storeprojectrequestcreate',
|
|
34
|
+
delete: 'storeprojectrequestdelete',
|
|
35
|
+
update: 'storeprojectrequestupdate',
|
|
36
|
+
}),
|
|
37
|
+
Environment: Object.freeze({
|
|
38
|
+
create: 'storeprojectenvironmentcreate',
|
|
39
|
+
delete: 'storeprojectenvironmentdelete',
|
|
40
|
+
update: 'storeprojectenvironmentupdate',
|
|
41
|
+
}),
|
|
42
|
+
State: Object.freeze({
|
|
43
|
+
update: 'storeprojectstateupdate',
|
|
44
|
+
delete: 'storeprojectstatedelete',
|
|
45
|
+
})
|
|
46
|
+
}),
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=ModelEventTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelEventTypes.js","sourceRoot":"","sources":["../../../../src/events/models/ModelEventTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC;QAC/B,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,4BAA4B;QAClC,MAAM,EAAE,8BAA8B;QACtC,MAAM,EAAE,8BAA8B;QACtC,MAAM,EAAE,8BAA8B;QACtC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;YACnB,MAAM,EAAE,mCAAmC;YAC3C,MAAM,EAAE,mCAAmC;SAC5C,CAAC;KACH,CAAC;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,oBAAoB;QAC5B,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,oBAAoB;QAC5B,MAAM,EAAE,oBAAoB;QAC5B;;WAEG;QACH,IAAI,EAAE,kBAAkB;QACxB;;WAEG;QACH,KAAK,EAAE,mBAAmB;QAC1B,OAAO,EAAE,qBAAqB;QAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;YACpB,MAAM,EAAE,0BAA0B;YAClC,MAAM,EAAE,0BAA0B;YAClC,MAAM,EAAE,0BAA0B;SACnC,CAAC;QACF,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;YACrB,MAAM,EAAE,2BAA2B;YACnC,MAAM,EAAE,2BAA2B;YACnC,MAAM,EAAE,2BAA2B;SACpC,CAAC;QACF,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC;YACzB,MAAM,EAAE,+BAA+B;YACvC,MAAM,EAAE,+BAA+B;YACvC,MAAM,EAAE,+BAA+B;SACxC,CAAC;QACF,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;YACnB,MAAM,EAAE,yBAAyB;YACjC,MAAM,EAAE,yBAAyB;SAClC,CAAC;KACH,CAAC;CACH,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ClientCertificateEvents } from './ClientCertificateEvents.js';
|
|
2
|
+
import { ProjectEvents } from './ProjectEvents.js';
|
|
3
|
+
export const ModelEvents = Object.freeze({
|
|
4
|
+
Project: ProjectEvents,
|
|
5
|
+
ClientCertificate: ClientCertificateEvents,
|
|
6
|
+
});
|
|
7
|
+
//# sourceMappingURL=ModelEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelEvents.js","sourceRoot":"","sources":["../../../../src/events/models/ModelEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,aAAa;IACtB,iBAAiB,EAAE,uBAAuB;CAC3C,CAAC,CAAC"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { IHttpProject, IProjectMoveOptions, IHttpProjectIndex, IFolderCreateOptions, IRequestAddOptions } from "../../models/HttpProject.js";
|
|
2
|
+
import { IProjectFolder } from "../../models/ProjectFolder.js";
|
|
3
|
+
import { IProjectRequest } from "../../models/ProjectRequest.js";
|
|
4
|
+
import { IEnvironment } from "../../models/Environment.js";
|
|
5
|
+
import { ContextChangeRecord, ContextDeleteRecord } from "../BaseEvents.js";
|
|
6
|
+
export interface ProjectMoveEventDetail {
|
|
7
|
+
type: 'request' | 'folder';
|
|
8
|
+
key: string;
|
|
9
|
+
opts?: IProjectMoveOptions;
|
|
10
|
+
}
|
|
11
|
+
export interface ProjectCloneEventDetail {
|
|
12
|
+
/**
|
|
13
|
+
* The id of the project to clone in the data store.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A list of options to initialize a folder in a project.
|
|
19
|
+
*/
|
|
20
|
+
export interface IFolderInitOptions extends IFolderCreateOptions {
|
|
21
|
+
/**
|
|
22
|
+
* The store id of the project.
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Optional name of the new folder.
|
|
27
|
+
*/
|
|
28
|
+
name?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A list of options to initialize a request in a project.
|
|
32
|
+
*/
|
|
33
|
+
export interface IRequestInitOptions extends IRequestAddOptions {
|
|
34
|
+
/**
|
|
35
|
+
* The store id of the project.
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
/**
|
|
39
|
+
* The URL of the request.
|
|
40
|
+
*/
|
|
41
|
+
url: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IEnvironmentInitOptions {
|
|
44
|
+
/**
|
|
45
|
+
* The store id of the project.
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
/**
|
|
49
|
+
* The name of the environment to create.
|
|
50
|
+
*/
|
|
51
|
+
name: string;
|
|
52
|
+
/**
|
|
53
|
+
* The optional key of the parent folder.
|
|
54
|
+
*/
|
|
55
|
+
key?: string;
|
|
56
|
+
}
|
|
57
|
+
declare class ProjectFolderEvents {
|
|
58
|
+
/**
|
|
59
|
+
* Creates a folder in a project.
|
|
60
|
+
*
|
|
61
|
+
* @param target The target on which to dispatch the event
|
|
62
|
+
* @param id The store id of the project
|
|
63
|
+
* @param name Optionally, name of the folder to create.
|
|
64
|
+
* @param opts Optional options to create a folder.
|
|
65
|
+
* @returns The change record of the created folder. Note, the client should either refresh the project from the store or append the change record to the instance of the project.
|
|
66
|
+
*/
|
|
67
|
+
static create(target: EventTarget, id: string, name?: string, opts?: IFolderCreateOptions): Promise<ContextChangeRecord<IProjectFolder> | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Deletes a folder from a project
|
|
70
|
+
*
|
|
71
|
+
* @param target The target on which to dispatch the event
|
|
72
|
+
* @param id The data store id of the project
|
|
73
|
+
* @param key The key of the folder to delete.
|
|
74
|
+
*/
|
|
75
|
+
static delete(target: EventTarget, id: string, key: string): Promise<ContextDeleteRecord | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* Updates the entire folder schema in a project.
|
|
78
|
+
*
|
|
79
|
+
* @param target The target on which to dispatch the event
|
|
80
|
+
* @param id The data store id of the project
|
|
81
|
+
* @param folder The folder to replace the schema for.
|
|
82
|
+
* @returns The change record of the updated folder.
|
|
83
|
+
*/
|
|
84
|
+
static update(target: EventTarget, id: string, folder: IProjectFolder): Promise<ContextChangeRecord<IProjectFolder> | undefined>;
|
|
85
|
+
}
|
|
86
|
+
declare class ProjectRequestEvents {
|
|
87
|
+
/**
|
|
88
|
+
* Creates a request in a project.
|
|
89
|
+
*
|
|
90
|
+
* @param target The target on which to dispatch the event
|
|
91
|
+
* @param id The store id of the project
|
|
92
|
+
* @param url The URL of the request.
|
|
93
|
+
* @param opts Optional options to create a request.
|
|
94
|
+
* @returns The change record of the created request. Note, the client should either refresh the project from the store or append the change record to the instance of the project.
|
|
95
|
+
*/
|
|
96
|
+
static create(target: EventTarget, id: string, url: string, opts?: IRequestAddOptions): Promise<ContextChangeRecord<IProjectRequest> | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* Deletes a request from a project
|
|
99
|
+
*
|
|
100
|
+
* @param target The target on which to dispatch the event
|
|
101
|
+
* @param id The data store id of the project
|
|
102
|
+
* @param key The key of the request to delete.
|
|
103
|
+
*/
|
|
104
|
+
static delete(target: EventTarget, id: string, key: string): Promise<ContextDeleteRecord | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* Updates the entire request schema in a project.
|
|
107
|
+
*
|
|
108
|
+
* @param target The target on which to dispatch the event
|
|
109
|
+
* @param id The data store id of the project
|
|
110
|
+
* @param request The request to replace the schema for.
|
|
111
|
+
* @returns The change record of the updated request.
|
|
112
|
+
*/
|
|
113
|
+
static update(target: EventTarget, id: string, request: IProjectRequest): Promise<ContextChangeRecord<IProjectRequest> | undefined>;
|
|
114
|
+
}
|
|
115
|
+
declare class ProjectEnvironmentEvents {
|
|
116
|
+
/**
|
|
117
|
+
* Creates an environment in a project.
|
|
118
|
+
*
|
|
119
|
+
* @param target The target on which to dispatch the event
|
|
120
|
+
* @param id The store id of the project
|
|
121
|
+
* @param name The name of the environment.
|
|
122
|
+
* @param key The optional key of the parent folder.
|
|
123
|
+
* @returns The change record of the created environment. Note, the client should either refresh the project from the store or append the change record to the instance of the project.
|
|
124
|
+
*/
|
|
125
|
+
static create(target: EventTarget, id: string, name: string, key?: string): Promise<ContextChangeRecord<IEnvironment> | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* Deletes an environment from a project
|
|
128
|
+
*
|
|
129
|
+
* @param target The target on which to dispatch the event
|
|
130
|
+
* @param id The data store id of the project
|
|
131
|
+
* @param key The key of the environment to delete.
|
|
132
|
+
*/
|
|
133
|
+
static delete(target: EventTarget, id: string, key: string): Promise<ContextDeleteRecord | undefined>;
|
|
134
|
+
/**
|
|
135
|
+
* Updates the entire environment schema in a project.
|
|
136
|
+
*
|
|
137
|
+
* @param target The target on which to dispatch the event
|
|
138
|
+
* @param id The data store id of the project
|
|
139
|
+
* @param environment The environment to replace the schema for.
|
|
140
|
+
* @returns The change record of the updated environment.
|
|
141
|
+
*/
|
|
142
|
+
static update(target: EventTarget, id: string, environment: IEnvironment): Promise<ContextChangeRecord<IEnvironment> | undefined>;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* ARC's HTTP project events.
|
|
146
|
+
*
|
|
147
|
+
* Note, `id`s refers to datastore ids but `key`s are internal identifiers inside the project.
|
|
148
|
+
* Whenever id is used it refers to the store's ids. When `key` is used it is the id of the project or any of its components.
|
|
149
|
+
*/
|
|
150
|
+
export declare class ProjectEvents {
|
|
151
|
+
/**
|
|
152
|
+
* Creates a new project in the data store.
|
|
153
|
+
*
|
|
154
|
+
* @param target The target on which to dispatch the event
|
|
155
|
+
* @param name The name of the project to create
|
|
156
|
+
* @returns The change record of the created project.
|
|
157
|
+
*/
|
|
158
|
+
static create(target: EventTarget, name: string): Promise<ContextChangeRecord<IHttpProject> | undefined>;
|
|
159
|
+
/**
|
|
160
|
+
* Reads a project from the data store.
|
|
161
|
+
*
|
|
162
|
+
* @param target The target on which to dispatch the event
|
|
163
|
+
* @param id The data store id of the project to read.
|
|
164
|
+
* @param rev Optional revision version, when supported.
|
|
165
|
+
*/
|
|
166
|
+
static read(target: EventTarget, id: string, rev?: string): Promise<IHttpProject | undefined>;
|
|
167
|
+
/**
|
|
168
|
+
* Updates the entire object in the store.
|
|
169
|
+
*
|
|
170
|
+
* @param target The target on which to dispatch the event
|
|
171
|
+
* @param project The project to replace the value for.
|
|
172
|
+
* @returns The change record of the updated project.
|
|
173
|
+
*/
|
|
174
|
+
static update(target: EventTarget, project: IHttpProject): Promise<ContextChangeRecord<IHttpProject> | undefined>;
|
|
175
|
+
/**
|
|
176
|
+
* Deletes a project from the data store.
|
|
177
|
+
*
|
|
178
|
+
* @param target The target on which to dispatch the event
|
|
179
|
+
* @param id The data store id of the project to delete.
|
|
180
|
+
*/
|
|
181
|
+
static delete(target: EventTarget, id: string): Promise<ContextDeleteRecord | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* Moves a request or a folder inside the project.
|
|
184
|
+
*
|
|
185
|
+
* @param target The target on which to dispatch the event
|
|
186
|
+
* @param type The type of the object to move within the project.
|
|
187
|
+
* @param key The `key` of the request of the folder
|
|
188
|
+
* @param opts The move options. When omitted then it moves the object to the project root at the last position.
|
|
189
|
+
* @returns The change record of the updated project.
|
|
190
|
+
*/
|
|
191
|
+
static move(target: EventTarget, type: 'request' | 'folder', key: string, opts?: IProjectMoveOptions): Promise<ContextChangeRecord<IHttpProject> | undefined>;
|
|
192
|
+
/**
|
|
193
|
+
* Clones a project that is stored in the data store.
|
|
194
|
+
*
|
|
195
|
+
* @param target The target on which to dispatch the event
|
|
196
|
+
* @param id The data store id of the project to clone.
|
|
197
|
+
* @returns The cloned project (the copy).
|
|
198
|
+
*/
|
|
199
|
+
static clone(target: EventTarget, id: string): Promise<ContextChangeRecord<IHttpProject> | undefined>;
|
|
200
|
+
/**
|
|
201
|
+
* Lists all projects in the data store.
|
|
202
|
+
* This does not return the whole project record. Instead it only returns the index object of the project.
|
|
203
|
+
*
|
|
204
|
+
* @param target The target on which to dispatch the event
|
|
205
|
+
* @returns The list of project index objects.
|
|
206
|
+
*/
|
|
207
|
+
static listAll(target: EventTarget): Promise<IHttpProjectIndex[] | undefined>;
|
|
208
|
+
/**
|
|
209
|
+
* Events related to a folder manipulation in a project.
|
|
210
|
+
*/
|
|
211
|
+
static get Folder(): typeof ProjectFolderEvents;
|
|
212
|
+
/**
|
|
213
|
+
* Events related to a request manipulation in a project.
|
|
214
|
+
*/
|
|
215
|
+
static get Request(): typeof ProjectRequestEvents;
|
|
216
|
+
/**
|
|
217
|
+
* Events related to an environment manipulation in a project.
|
|
218
|
+
*/
|
|
219
|
+
static get Environment(): typeof ProjectEnvironmentEvents;
|
|
220
|
+
}
|
|
221
|
+
export {};
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { ContextEvent, ContextReadEvent, ContextUpdateEvent, ContextDeleteEvent } from "../BaseEvents.js";
|
|
2
|
+
import { ModelEventTypes } from './ModelEventTypes.js';
|
|
3
|
+
import CustomEvent from '../CustomEvent.js';
|
|
4
|
+
class ProjectFolderEvents {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a folder in a project.
|
|
7
|
+
*
|
|
8
|
+
* @param target The target on which to dispatch the event
|
|
9
|
+
* @param id The store id of the project
|
|
10
|
+
* @param name Optionally, name of the folder to create.
|
|
11
|
+
* @param opts Optional options to create a folder.
|
|
12
|
+
* @returns The change record of the created folder. Note, the client should either refresh the project from the store or append the change record to the instance of the project.
|
|
13
|
+
*/
|
|
14
|
+
static async create(target, id, name, opts = {}) {
|
|
15
|
+
const init = { ...opts, id, name, };
|
|
16
|
+
const e = new ContextEvent(ModelEventTypes.Project.Folder.create, init);
|
|
17
|
+
target.dispatchEvent(e);
|
|
18
|
+
return e.detail.result;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Deletes a folder from a project
|
|
22
|
+
*
|
|
23
|
+
* @param target The target on which to dispatch the event
|
|
24
|
+
* @param id The data store id of the project
|
|
25
|
+
* @param key The key of the folder to delete.
|
|
26
|
+
*/
|
|
27
|
+
static async delete(target, id, key) {
|
|
28
|
+
const e = new ContextDeleteEvent(ModelEventTypes.Project.Folder.delete, key, id);
|
|
29
|
+
target.dispatchEvent(e);
|
|
30
|
+
return e.detail.result;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Updates the entire folder schema in a project.
|
|
34
|
+
*
|
|
35
|
+
* @param target The target on which to dispatch the event
|
|
36
|
+
* @param id The data store id of the project
|
|
37
|
+
* @param folder The folder to replace the schema for.
|
|
38
|
+
* @returns The change record of the updated folder.
|
|
39
|
+
*/
|
|
40
|
+
static async update(target, id, folder) {
|
|
41
|
+
const e = new ContextUpdateEvent(ModelEventTypes.Project.Folder.update, { item: folder, parent: id });
|
|
42
|
+
target.dispatchEvent(e);
|
|
43
|
+
return e.detail.result;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
class ProjectRequestEvents {
|
|
47
|
+
/**
|
|
48
|
+
* Creates a request in a project.
|
|
49
|
+
*
|
|
50
|
+
* @param target The target on which to dispatch the event
|
|
51
|
+
* @param id The store id of the project
|
|
52
|
+
* @param url The URL of the request.
|
|
53
|
+
* @param opts Optional options to create a request.
|
|
54
|
+
* @returns The change record of the created request. Note, the client should either refresh the project from the store or append the change record to the instance of the project.
|
|
55
|
+
*/
|
|
56
|
+
static async create(target, id, url, opts = {}) {
|
|
57
|
+
const init = { ...opts, id, url, };
|
|
58
|
+
const e = new ContextEvent(ModelEventTypes.Project.Request.create, init);
|
|
59
|
+
target.dispatchEvent(e);
|
|
60
|
+
return e.detail.result;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Deletes a request from a project
|
|
64
|
+
*
|
|
65
|
+
* @param target The target on which to dispatch the event
|
|
66
|
+
* @param id The data store id of the project
|
|
67
|
+
* @param key The key of the request to delete.
|
|
68
|
+
*/
|
|
69
|
+
static async delete(target, id, key) {
|
|
70
|
+
const e = new ContextDeleteEvent(ModelEventTypes.Project.Request.delete, key, id);
|
|
71
|
+
target.dispatchEvent(e);
|
|
72
|
+
return e.detail.result;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Updates the entire request schema in a project.
|
|
76
|
+
*
|
|
77
|
+
* @param target The target on which to dispatch the event
|
|
78
|
+
* @param id The data store id of the project
|
|
79
|
+
* @param request The request to replace the schema for.
|
|
80
|
+
* @returns The change record of the updated request.
|
|
81
|
+
*/
|
|
82
|
+
static async update(target, id, request) {
|
|
83
|
+
const e = new ContextUpdateEvent(ModelEventTypes.Project.Request.update, { item: request, parent: id });
|
|
84
|
+
target.dispatchEvent(e);
|
|
85
|
+
return e.detail.result;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
class ProjectEnvironmentEvents {
|
|
89
|
+
/**
|
|
90
|
+
* Creates an environment in a project.
|
|
91
|
+
*
|
|
92
|
+
* @param target The target on which to dispatch the event
|
|
93
|
+
* @param id The store id of the project
|
|
94
|
+
* @param name The name of the environment.
|
|
95
|
+
* @param key The optional key of the parent folder.
|
|
96
|
+
* @returns The change record of the created environment. Note, the client should either refresh the project from the store or append the change record to the instance of the project.
|
|
97
|
+
*/
|
|
98
|
+
static async create(target, id, name, key) {
|
|
99
|
+
const init = { id, name, key };
|
|
100
|
+
const e = new ContextEvent(ModelEventTypes.Project.Environment.create, init);
|
|
101
|
+
target.dispatchEvent(e);
|
|
102
|
+
return e.detail.result;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Deletes an environment from a project
|
|
106
|
+
*
|
|
107
|
+
* @param target The target on which to dispatch the event
|
|
108
|
+
* @param id The data store id of the project
|
|
109
|
+
* @param key The key of the environment to delete.
|
|
110
|
+
*/
|
|
111
|
+
static async delete(target, id, key) {
|
|
112
|
+
const e = new ContextDeleteEvent(ModelEventTypes.Project.Environment.delete, key, id);
|
|
113
|
+
target.dispatchEvent(e);
|
|
114
|
+
return e.detail.result;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Updates the entire environment schema in a project.
|
|
118
|
+
*
|
|
119
|
+
* @param target The target on which to dispatch the event
|
|
120
|
+
* @param id The data store id of the project
|
|
121
|
+
* @param environment The environment to replace the schema for.
|
|
122
|
+
* @returns The change record of the updated environment.
|
|
123
|
+
*/
|
|
124
|
+
static async update(target, id, environment) {
|
|
125
|
+
const e = new ContextUpdateEvent(ModelEventTypes.Project.Environment.update, { item: environment, parent: id });
|
|
126
|
+
target.dispatchEvent(e);
|
|
127
|
+
return e.detail.result;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* ARC's HTTP project events.
|
|
132
|
+
*
|
|
133
|
+
* Note, `id`s refers to datastore ids but `key`s are internal identifiers inside the project.
|
|
134
|
+
* Whenever id is used it refers to the store's ids. When `key` is used it is the id of the project or any of its components.
|
|
135
|
+
*/
|
|
136
|
+
export class ProjectEvents {
|
|
137
|
+
/**
|
|
138
|
+
* Creates a new project in the data store.
|
|
139
|
+
*
|
|
140
|
+
* @param target The target on which to dispatch the event
|
|
141
|
+
* @param name The name of the project to create
|
|
142
|
+
* @returns The change record of the created project.
|
|
143
|
+
*/
|
|
144
|
+
static async create(target, name) {
|
|
145
|
+
const e = new ContextEvent(ModelEventTypes.Project.create, { name });
|
|
146
|
+
target.dispatchEvent(e);
|
|
147
|
+
return e.detail.result;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Reads a project from the data store.
|
|
151
|
+
*
|
|
152
|
+
* @param target The target on which to dispatch the event
|
|
153
|
+
* @param id The data store id of the project to read.
|
|
154
|
+
* @param rev Optional revision version, when supported.
|
|
155
|
+
*/
|
|
156
|
+
static async read(target, id, rev) {
|
|
157
|
+
const e = new ContextReadEvent(ModelEventTypes.Project.read, id, rev);
|
|
158
|
+
target.dispatchEvent(e);
|
|
159
|
+
return e.detail.result;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Updates the entire object in the store.
|
|
163
|
+
*
|
|
164
|
+
* @param target The target on which to dispatch the event
|
|
165
|
+
* @param project The project to replace the value for.
|
|
166
|
+
* @returns The change record of the updated project.
|
|
167
|
+
*/
|
|
168
|
+
static async update(target, project) {
|
|
169
|
+
const e = new ContextUpdateEvent(ModelEventTypes.Project.update, { item: project });
|
|
170
|
+
target.dispatchEvent(e);
|
|
171
|
+
return e.detail.result;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Deletes a project from the data store.
|
|
175
|
+
*
|
|
176
|
+
* @param target The target on which to dispatch the event
|
|
177
|
+
* @param id The data store id of the project to delete.
|
|
178
|
+
*/
|
|
179
|
+
static async delete(target, id) {
|
|
180
|
+
const e = new ContextDeleteEvent(ModelEventTypes.Project.delete, id);
|
|
181
|
+
target.dispatchEvent(e);
|
|
182
|
+
return e.detail.result;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Moves a request or a folder inside the project.
|
|
186
|
+
*
|
|
187
|
+
* @param target The target on which to dispatch the event
|
|
188
|
+
* @param type The type of the object to move within the project.
|
|
189
|
+
* @param key The `key` of the request of the folder
|
|
190
|
+
* @param opts The move options. When omitted then it moves the object to the project root at the last position.
|
|
191
|
+
* @returns The change record of the updated project.
|
|
192
|
+
*/
|
|
193
|
+
static async move(target, type, key, opts) {
|
|
194
|
+
const e = new ContextEvent(ModelEventTypes.Project.move, {
|
|
195
|
+
key,
|
|
196
|
+
type,
|
|
197
|
+
opts,
|
|
198
|
+
});
|
|
199
|
+
target.dispatchEvent(e);
|
|
200
|
+
return e.detail.result;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Clones a project that is stored in the data store.
|
|
204
|
+
*
|
|
205
|
+
* @param target The target on which to dispatch the event
|
|
206
|
+
* @param id The data store id of the project to clone.
|
|
207
|
+
* @returns The cloned project (the copy).
|
|
208
|
+
*/
|
|
209
|
+
static async clone(target, id) {
|
|
210
|
+
const e = new ContextEvent(ModelEventTypes.Project.clone, {
|
|
211
|
+
id,
|
|
212
|
+
});
|
|
213
|
+
target.dispatchEvent(e);
|
|
214
|
+
return e.detail.result;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Lists all projects in the data store.
|
|
218
|
+
* This does not return the whole project record. Instead it only returns the index object of the project.
|
|
219
|
+
*
|
|
220
|
+
* @param target The target on which to dispatch the event
|
|
221
|
+
* @returns The list of project index objects.
|
|
222
|
+
*/
|
|
223
|
+
static async listAll(target) {
|
|
224
|
+
const detail = {};
|
|
225
|
+
const e = new CustomEvent(ModelEventTypes.Project.listAll, {
|
|
226
|
+
bubbles: true,
|
|
227
|
+
composed: true,
|
|
228
|
+
cancelable: true,
|
|
229
|
+
detail,
|
|
230
|
+
});
|
|
231
|
+
target.dispatchEvent(e);
|
|
232
|
+
return e.detail.result;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Events related to a folder manipulation in a project.
|
|
236
|
+
*/
|
|
237
|
+
static get Folder() {
|
|
238
|
+
return ProjectFolderEvents;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Events related to a request manipulation in a project.
|
|
242
|
+
*/
|
|
243
|
+
static get Request() {
|
|
244
|
+
return ProjectRequestEvents;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Events related to an environment manipulation in a project.
|
|
248
|
+
*/
|
|
249
|
+
static get Environment() {
|
|
250
|
+
return ProjectEnvironmentEvents;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
;
|
|
254
|
+
//# sourceMappingURL=ProjectEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectEvents.js","sourceRoot":"","sources":["../../../../src/events/models/ProjectEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAuB,kBAAkB,EAAgC,MAAM,kBAAkB,CAAC;AAClL,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,WAAW,MAAM,mBAAmB,CAAC;AA0D5C,MAAM,mBAAmB;IACvB;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAmB,EAAE,EAAU,EAAE,IAAa,EAAE,OAA6B,EAAE;QACjG,MAAM,IAAI,GAAuB,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,IAAI,GAAG,CAAC;QACxD,MAAM,CAA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AO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAmB;QACtC,MAAM,MAAM,GAAsD,EAAE,CAAC;QACrE,MAAM,CAAC,GAAG,IAAI,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,EAAE;YACzD,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,IAAI;YAChB,MAAM;SACP,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,MAAM,KAAK,MAAM;QACf,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,MAAM,KAAK,OAAO;QAChB,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,MAAM,KAAK,WAAW;QACpB,OAAO,wBAAwB,CAAC;IAClC,CAAC;CACF;AAAA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessEventTypes.js","sourceRoot":"","sources":["../../../../src/events/process/ProcessEventTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,YAAY,EAAE,qBAAqB;IACnC,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,qBAAqB;CACpC,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface IProcessStartDetail {
|
|
2
|
+
pid: string;
|
|
3
|
+
message: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IProcessStopDetail {
|
|
6
|
+
pid: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IProcessErrorDetail {
|
|
9
|
+
pid: string;
|
|
10
|
+
message: string;
|
|
11
|
+
error?: Error;
|
|
12
|
+
}
|
|
13
|
+
export declare class ProcessEvents {
|
|
14
|
+
/**
|
|
15
|
+
* An event to be dispatched when the application is stating a long running process
|
|
16
|
+
* in the background. The side effect of the event is the UI showing a process
|
|
17
|
+
* indicator.
|
|
18
|
+
*
|
|
19
|
+
* @param target A node on which to dispatch the event.
|
|
20
|
+
* @param pid The id of the process. The same id has to be passed to the stop event.
|
|
21
|
+
* @param message Optional message rendered in the UI.
|
|
22
|
+
*/
|
|
23
|
+
static loadingStart(target: EventTarget, pid: string, message: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* An event to be dispatched when the application has finished a long running process
|
|
26
|
+
* in the background.
|
|
27
|
+
*
|
|
28
|
+
* @param target A node on which to dispatch the event.
|
|
29
|
+
* @param pid The id of the process. The same id has to be passed to the stop event.
|
|
30
|
+
*/
|
|
31
|
+
static loadingStop(target: EventTarget, pid: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* An event to be dispatched when the application has finished a long running process
|
|
34
|
+
* in the background with an error.
|
|
35
|
+
*
|
|
36
|
+
* @param target A node on which to dispatch the event.
|
|
37
|
+
* @param pid The id of the process used to start it.
|
|
38
|
+
* @param message The message to be rendered to the user.
|
|
39
|
+
* @param error The error object caused the event. Optional.
|
|
40
|
+
*/
|
|
41
|
+
static loadingError(target: EventTarget, pid: string, message: string, error?: Error): void;
|
|
42
|
+
}
|