@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,97 @@
|
|
|
1
|
+
import { DataReader } from './DataReader.js';
|
|
2
|
+
let xResult = typeof XPathResult !== 'undefined' ? XPathResult : undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Reads the data from an XML using the xpath.
|
|
5
|
+
* See https://www.w3schools.com/xml/xpath_syntax.asp.
|
|
6
|
+
*/
|
|
7
|
+
export class XmlReader extends DataReader {
|
|
8
|
+
async getValue(path) {
|
|
9
|
+
const doc = await this.getDocument();
|
|
10
|
+
if (!doc) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
return this.queryDocument(path, doc);
|
|
14
|
+
}
|
|
15
|
+
queryDocument(path, doc) {
|
|
16
|
+
try {
|
|
17
|
+
const result = doc.evaluate(path, doc);
|
|
18
|
+
switch (result.resultType) {
|
|
19
|
+
case xResult.NUMBER_TYPE: return result.numberValue;
|
|
20
|
+
case xResult.STRING_TYPE: return result.stringValue;
|
|
21
|
+
case xResult.BOOLEAN_TYPE: return result.booleanValue;
|
|
22
|
+
case xResult.UNORDERED_NODE_ITERATOR_TYPE:
|
|
23
|
+
case xResult.ORDERED_NODE_ITERATOR_TYPE:
|
|
24
|
+
return this.processNodeResult(result);
|
|
25
|
+
default:
|
|
26
|
+
console.error(`Unsupported xpath result type: [${result.resultType}]`);
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
catch (e) {
|
|
31
|
+
console.error(e);
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
processNodeResult(result) {
|
|
36
|
+
const results = [];
|
|
37
|
+
let next = result.iterateNext();
|
|
38
|
+
while (next) {
|
|
39
|
+
const value = next.textContent;
|
|
40
|
+
if (value) {
|
|
41
|
+
results.push(value.trim());
|
|
42
|
+
}
|
|
43
|
+
next = result.iterateNext();
|
|
44
|
+
}
|
|
45
|
+
if (!results.length) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
return results.length === 1 ? results[0] : results;
|
|
49
|
+
}
|
|
50
|
+
async getDocument() {
|
|
51
|
+
const body = await this.readPayloadAsString();
|
|
52
|
+
if (!body) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
return this.getDocumentWithBody(body);
|
|
56
|
+
}
|
|
57
|
+
async getDocumentWithBody(body) {
|
|
58
|
+
if (typeof DOMParser === 'undefined') {
|
|
59
|
+
return this.getNodeDocument(body);
|
|
60
|
+
}
|
|
61
|
+
return this.getWebDocument(body);
|
|
62
|
+
}
|
|
63
|
+
async getWebDocument(data) {
|
|
64
|
+
const parser = new DOMParser();
|
|
65
|
+
const dom = parser.parseFromString(data, 'text/xml');
|
|
66
|
+
if (dom.querySelector('parsererror')) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
return dom;
|
|
70
|
+
}
|
|
71
|
+
async getNodeDocument(data) {
|
|
72
|
+
const { DOMParser } = await import('@xmldom/xmldom');
|
|
73
|
+
const xpath = await import('xpath');
|
|
74
|
+
// @ts-ignore
|
|
75
|
+
xResult = xpath.default.XPathResult;
|
|
76
|
+
let errored = false;
|
|
77
|
+
const parser = new DOMParser({
|
|
78
|
+
errorHandler: {
|
|
79
|
+
error: () => {
|
|
80
|
+
errored = true;
|
|
81
|
+
},
|
|
82
|
+
fatalError: () => {
|
|
83
|
+
errored = true;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
const dom = parser.parseFromString(data, 'text/xml');
|
|
88
|
+
if (errored) {
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
dom.evaluate = (expression, contextNode) => {
|
|
92
|
+
return xpath.default.evaluate(expression, contextNode, null, 0, null);
|
|
93
|
+
};
|
|
94
|
+
return dom;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=XmlReader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XmlReader.js","sourceRoot":"","sources":["../../../src/data/XmlReader.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import CustomEvent from './CustomEvent.js';
|
|
2
|
+
/**
|
|
3
|
+
* Base event detail definition for the events that returns a `result`
|
|
4
|
+
* property on the `detail` object
|
|
5
|
+
*/
|
|
6
|
+
export interface ContextEventDetailWithResult<T> {
|
|
7
|
+
/**
|
|
8
|
+
* This property is set by the context provider, a promise resolved when the operation finish
|
|
9
|
+
* with the corresponding result.
|
|
10
|
+
*/
|
|
11
|
+
result?: Promise<T> | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A base class to use with context providers.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ContextEvent<S extends object, R> extends CustomEvent<ContextEventDetailWithResult<R>> {
|
|
17
|
+
/**
|
|
18
|
+
* @param type The event type
|
|
19
|
+
* @param detail The optional detail object. It adds object's properties to the `detail` with the `result` property.
|
|
20
|
+
*/
|
|
21
|
+
constructor(type: string, detail: S);
|
|
22
|
+
}
|
|
23
|
+
export interface ContextReadEventDetail {
|
|
24
|
+
/**
|
|
25
|
+
* The id of the state object to read.
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Optional revision of the state, when supported by the context provider.
|
|
30
|
+
*/
|
|
31
|
+
rev?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* An event to be used to read a state from a context provider.
|
|
35
|
+
*/
|
|
36
|
+
export declare class ContextReadEvent<T> extends ContextEvent<ContextReadEventDetail, T> {
|
|
37
|
+
/**
|
|
38
|
+
* @param type The type of the event
|
|
39
|
+
* @param id The domain id of the object to read
|
|
40
|
+
* @param rev Optional revision of the state, when supported by the context provider.
|
|
41
|
+
*/
|
|
42
|
+
constructor(type: string, id: string, rev?: string);
|
|
43
|
+
}
|
|
44
|
+
export interface ContextReadBulkEventDetail {
|
|
45
|
+
/**
|
|
46
|
+
* The list of ids to read.
|
|
47
|
+
*/
|
|
48
|
+
ids: string[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* An event to be used to read a list of object from the API store.
|
|
52
|
+
*/
|
|
53
|
+
export declare class ContextReadBulkEvent<T> extends ContextEvent<ContextReadBulkEventDetail, T> {
|
|
54
|
+
/**
|
|
55
|
+
* @param type The type of the event
|
|
56
|
+
* @param ids The list of domain ids to read. These must be of the same domain type.
|
|
57
|
+
*/
|
|
58
|
+
constructor(type: string, ids: string[]);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A general purpose change record.
|
|
62
|
+
* Set on the `detail` object of the `CustomEvent` when a change occurs in the context store.
|
|
63
|
+
*/
|
|
64
|
+
export interface ContextChangeRecord<T> {
|
|
65
|
+
/**
|
|
66
|
+
* The data kind of the changed item.
|
|
67
|
+
* May not be present when this is used with the old architecture.
|
|
68
|
+
*/
|
|
69
|
+
kind?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The ID of the changed context state object.
|
|
72
|
+
*/
|
|
73
|
+
key: string;
|
|
74
|
+
/**
|
|
75
|
+
* The revision of the updated context state object.
|
|
76
|
+
* It is not set when old revision is unavailable (new entity is created) or when the context provider does not support this value.
|
|
77
|
+
*/
|
|
78
|
+
oldRev?: string;
|
|
79
|
+
/**
|
|
80
|
+
* New revision of updated state object. May not be set when the context provider does not support this value.
|
|
81
|
+
*/
|
|
82
|
+
rev?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The updated context state object.
|
|
85
|
+
*/
|
|
86
|
+
item?: T;
|
|
87
|
+
/**
|
|
88
|
+
* Optionally, when relevant, the id of the parent of the changed object.
|
|
89
|
+
*/
|
|
90
|
+
parent?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface ContextDeleteEventDetail {
|
|
93
|
+
/**
|
|
94
|
+
* The id of the domain object to remove.
|
|
95
|
+
*/
|
|
96
|
+
id: string;
|
|
97
|
+
/**
|
|
98
|
+
* The id of the parent object, if applicable.
|
|
99
|
+
*/
|
|
100
|
+
parent?: string;
|
|
101
|
+
/**
|
|
102
|
+
* The revision to delete, when applicable.
|
|
103
|
+
*/
|
|
104
|
+
rev?: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* An event to be used to delete a state in the context provider.
|
|
108
|
+
*/
|
|
109
|
+
export declare class ContextDeleteEvent extends ContextEvent<ContextDeleteEventDetail, ContextDeleteRecord> {
|
|
110
|
+
/**
|
|
111
|
+
* @param type The type of the event to dispatch.
|
|
112
|
+
* @param id The id of the object to delete
|
|
113
|
+
* @param parent The id of the parent object, if applicable.
|
|
114
|
+
*/
|
|
115
|
+
constructor(type: string, id: string, parent?: string, rev?: string);
|
|
116
|
+
}
|
|
117
|
+
export interface ContextDeleteRecord {
|
|
118
|
+
/**
|
|
119
|
+
* The data kind of the deleted item.
|
|
120
|
+
* May not be present when this is used with the old architecture.
|
|
121
|
+
*/
|
|
122
|
+
kind?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The id of the removed object.
|
|
125
|
+
*/
|
|
126
|
+
id: string;
|
|
127
|
+
/**
|
|
128
|
+
* The id of the parent object, if applicable.
|
|
129
|
+
*/
|
|
130
|
+
parent?: string;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* An event dispatched when a context store object has been deleted.
|
|
134
|
+
* In general a single context store uses the same event to dispatch the change record.
|
|
135
|
+
* For example the `data-store` dispatches the `x` event and the change record has the
|
|
136
|
+
* `kind` property that is used to recognize the type of the data object.
|
|
137
|
+
*/
|
|
138
|
+
export declare class ContextStateDeleteEvent extends CustomEvent<ContextDeleteRecord> {
|
|
139
|
+
/**
|
|
140
|
+
* @param type The type of the event to dispatch.
|
|
141
|
+
* @param record The delete record.
|
|
142
|
+
*/
|
|
143
|
+
constructor(type: string, record: ContextDeleteRecord);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* An event dispatched when a context store object has been updated.
|
|
147
|
+
*/
|
|
148
|
+
export declare class ContextStateUpdateEvent<T> extends CustomEvent<ContextChangeRecord<T>> {
|
|
149
|
+
/**
|
|
150
|
+
* @param type The type of the event to dispatch.
|
|
151
|
+
* @param record The delete record.
|
|
152
|
+
*/
|
|
153
|
+
constructor(type: string, record: ContextChangeRecord<T>);
|
|
154
|
+
}
|
|
155
|
+
export interface ContextUpdateEventDetail<T> {
|
|
156
|
+
/**
|
|
157
|
+
* The context store object to be updated by the context provider.
|
|
158
|
+
*/
|
|
159
|
+
item: T;
|
|
160
|
+
/**
|
|
161
|
+
* The id of the parent object, if applicable.
|
|
162
|
+
*/
|
|
163
|
+
parent?: string;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* An event that is dispatched to update the entire object in the store.
|
|
167
|
+
* This is equivalent to PUT operation in REST HTTP.
|
|
168
|
+
*
|
|
169
|
+
* @template T The object that is being updated.
|
|
170
|
+
*/
|
|
171
|
+
export declare class ContextUpdateEvent<T extends object> extends ContextEvent<ContextUpdateEventDetail<T>, ContextChangeRecord<T>> {
|
|
172
|
+
constructor(type: string, updateInfo: ContextUpdateEventDetail<T>);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Data store query result object.
|
|
176
|
+
*/
|
|
177
|
+
export interface ContextListResult<T> {
|
|
178
|
+
/**
|
|
179
|
+
* Next page token to be used with pagination.
|
|
180
|
+
* It is not set when the query has not returned any results.
|
|
181
|
+
*/
|
|
182
|
+
nextPageToken?: string;
|
|
183
|
+
/**
|
|
184
|
+
* The list of items in the response.
|
|
185
|
+
* May be empty array when there was no more results.
|
|
186
|
+
*/
|
|
187
|
+
items: T[];
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Base query options for the data store.
|
|
191
|
+
*/
|
|
192
|
+
export interface ContextListOptions {
|
|
193
|
+
/**
|
|
194
|
+
* The number of results per the page.
|
|
195
|
+
*/
|
|
196
|
+
limit?: number;
|
|
197
|
+
/**
|
|
198
|
+
* A string that should be used with the pagination.
|
|
199
|
+
*/
|
|
200
|
+
nextPageToken?: string;
|
|
201
|
+
}
|
|
202
|
+
export declare class ContextListEvent<T> extends ContextEvent<ContextListOptions, ContextListResult<T>> {
|
|
203
|
+
/**
|
|
204
|
+
* @param type The type of the event
|
|
205
|
+
* @param opts Query options.
|
|
206
|
+
*/
|
|
207
|
+
constructor(type: string, opts?: ContextListOptions);
|
|
208
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import CustomEvent from './CustomEvent.js';
|
|
2
|
+
/**
|
|
3
|
+
* A base class to use with context providers.
|
|
4
|
+
*/
|
|
5
|
+
export class ContextEvent extends CustomEvent {
|
|
6
|
+
/**
|
|
7
|
+
* @param type The event type
|
|
8
|
+
* @param detail The optional detail object. It adds object's properties to the `detail` with the `result` property.
|
|
9
|
+
*/
|
|
10
|
+
constructor(type, detail) {
|
|
11
|
+
super(type, {
|
|
12
|
+
bubbles: true,
|
|
13
|
+
composed: true,
|
|
14
|
+
cancelable: true,
|
|
15
|
+
detail: {
|
|
16
|
+
result: undefined,
|
|
17
|
+
...detail,
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* An event to be used to read a state from a context provider.
|
|
24
|
+
*/
|
|
25
|
+
export class ContextReadEvent extends ContextEvent {
|
|
26
|
+
/**
|
|
27
|
+
* @param type The type of the event
|
|
28
|
+
* @param id The domain id of the object to read
|
|
29
|
+
* @param rev Optional revision of the state, when supported by the context provider.
|
|
30
|
+
*/
|
|
31
|
+
constructor(type, id, rev) {
|
|
32
|
+
super(type, { id, rev });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* An event to be used to read a list of object from the API store.
|
|
37
|
+
*/
|
|
38
|
+
export class ContextReadBulkEvent extends ContextEvent {
|
|
39
|
+
/**
|
|
40
|
+
* @param type The type of the event
|
|
41
|
+
* @param ids The list of domain ids to read. These must be of the same domain type.
|
|
42
|
+
*/
|
|
43
|
+
constructor(type, ids) {
|
|
44
|
+
super(type, { ids });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* An event to be used to delete a state in the context provider.
|
|
49
|
+
*/
|
|
50
|
+
export class ContextDeleteEvent extends ContextEvent {
|
|
51
|
+
/**
|
|
52
|
+
* @param type The type of the event to dispatch.
|
|
53
|
+
* @param id The id of the object to delete
|
|
54
|
+
* @param parent The id of the parent object, if applicable.
|
|
55
|
+
*/
|
|
56
|
+
constructor(type, id, parent, rev) {
|
|
57
|
+
super(type, { id, parent, rev });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* An event dispatched when a context store object has been deleted.
|
|
62
|
+
* In general a single context store uses the same event to dispatch the change record.
|
|
63
|
+
* For example the `data-store` dispatches the `x` event and the change record has the
|
|
64
|
+
* `kind` property that is used to recognize the type of the data object.
|
|
65
|
+
*/
|
|
66
|
+
export class ContextStateDeleteEvent extends CustomEvent {
|
|
67
|
+
/**
|
|
68
|
+
* @param type The type of the event to dispatch.
|
|
69
|
+
* @param record The delete record.
|
|
70
|
+
*/
|
|
71
|
+
constructor(type, record) {
|
|
72
|
+
super(type, {
|
|
73
|
+
bubbles: true,
|
|
74
|
+
composed: true,
|
|
75
|
+
cancelable: false,
|
|
76
|
+
detail: record,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* An event dispatched when a context store object has been updated.
|
|
82
|
+
*/
|
|
83
|
+
export class ContextStateUpdateEvent extends CustomEvent {
|
|
84
|
+
/**
|
|
85
|
+
* @param type The type of the event to dispatch.
|
|
86
|
+
* @param record The delete record.
|
|
87
|
+
*/
|
|
88
|
+
constructor(type, record) {
|
|
89
|
+
super(type, {
|
|
90
|
+
bubbles: true,
|
|
91
|
+
composed: true,
|
|
92
|
+
cancelable: false,
|
|
93
|
+
detail: record,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* An event that is dispatched to update the entire object in the store.
|
|
99
|
+
* This is equivalent to PUT operation in REST HTTP.
|
|
100
|
+
*
|
|
101
|
+
* @template T The object that is being updated.
|
|
102
|
+
*/
|
|
103
|
+
export class ContextUpdateEvent extends ContextEvent {
|
|
104
|
+
constructor(type, updateInfo) {
|
|
105
|
+
super(type, updateInfo);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export class ContextListEvent extends ContextEvent {
|
|
109
|
+
/**
|
|
110
|
+
* @param type The type of the event
|
|
111
|
+
* @param opts Query options.
|
|
112
|
+
*/
|
|
113
|
+
constructor(type, opts = {}) {
|
|
114
|
+
super(type, opts);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=BaseEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseEvents.js","sourceRoot":"","sources":["../../../src/events/BaseEvents.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAc3C;;GAEG;AACH,MAAM,OAAO,YAAkC,SAAQ,WAA4C;IACjG;;;OAGG;IACH,YAAY,IAAY,EAAE,MAAS;QACjC,KAAK,CAAC,IAAI,EAAE;YACV,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE;gBACN,MAAM,EAAE,SAAS;gBACjB,GAAG,MAAM;aACV;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAaD;;GAEG;AACH,MAAM,OAAO,gBAAoB,SAAQ,YAAuC;IAC9E;;;;OAIG;IACH,YAAY,IAAY,EAAE,EAAU,EAAE,GAAY;QAChD,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3B,CAAC;CACF;AASD;;GAEG;AACH,MAAM,OAAO,oBAAwB,SAAQ,YAA2C;IACtF;;;OAGG;IACH,YAAY,IAAY,EAAE,GAAa;QACrC,KAAK,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvB,CAAC;CACF;AAkDD;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,YAA2D;IACjG;;;;OAIG;IACH,YAAY,IAAY,EAAE,EAAU,EAAE,MAAe,EAAE,GAAY;QACjE,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IACnC,CAAC;CACF;AAkBD;;;;;GAKG;AACH,MAAM,OAAO,uBAAwB,SAAQ,WAAgC;IAC3E;;;OAGG;IACH,YAAY,IAAY,EAAE,MAA2B;QACnD,KAAK,CAAC,IAAI,EAAE;YACV,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,uBAA2B,SAAQ,WAAmC;IACjF;;;OAGG;IACH,YAAY,IAAY,EAAE,MAA8B;QACtD,KAAK,CAAC,IAAI,EAAE;YACV,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;CACF;AAaD;;;;;GAKG;AACH,MAAM,OAAO,kBAAqC,SAAQ,YAAiE;IACzH,YAAY,IAAY,EAAE,UAAuC;QAC/D,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC1B,CAAC;CACF;AAgCD,MAAM,OAAO,gBAAoB,SAAQ,YAAsD;IAC7F;;;OAGG;IACH,YAAY,IAAY,EAAE,OAA2B,EAAE;QACrD,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var ctor;
|
|
2
|
+
if (typeof CustomEvent === 'function') {
|
|
3
|
+
ctor = CustomEvent;
|
|
4
|
+
}
|
|
5
|
+
else {
|
|
6
|
+
const detailSymbol = Symbol('detail');
|
|
7
|
+
ctor = class CustomEvent extends Event {
|
|
8
|
+
[detailSymbol];
|
|
9
|
+
get detail() {
|
|
10
|
+
return this[detailSymbol];
|
|
11
|
+
}
|
|
12
|
+
constructor(type, eventInitDict) {
|
|
13
|
+
super(type, eventInitDict);
|
|
14
|
+
if (eventInitDict && eventInitDict.detail) {
|
|
15
|
+
this[detailSymbol] = eventInitDict.detail;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
initCustomEvent(type, bubbles, cancelable, detail) {
|
|
19
|
+
throw new Error(`This is deprecated. Do not use this function.`);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export default ctor;
|
|
24
|
+
//# sourceMappingURL=CustomEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomEvent.js","sourceRoot":"","sources":["../../../src/events/CustomEvent.ts"],"names":[],"mappings":"AAAA,IAAI,IAAwB,CAAC;AAE7B,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;IACrC,IAAI,GAAG,WAAW,CAAC;CACpB;KAAM;IACL,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtC,IAAI,GAAG,MAAM,WAAe,SAAQ,KAAK;QACvC,CAAC,YAAY,CAAC,CAAI;QAElB,IAAI,MAAM;YACR,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5B,CAAC;QAED,YAAY,IAAY,EAAE,aAA2C;YACnE,KAAK,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;YAC3B,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,EAAE;gBACzC,IAAI,CAAC,YAAY,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC;aAC3C;QACH,CAAC;QAED,eAAe,CAAC,IAAY,EAAE,OAAiB,EAAE,UAAoB,EAAE,MAAU;YAC/E,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACnE,CAAC;KACF,CAAA;CACF;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare const EventTypes: Readonly<{
|
|
2
|
+
Authorization: Readonly<{
|
|
3
|
+
OAuth2: Readonly<{
|
|
4
|
+
authorize: string;
|
|
5
|
+
removeToken: string;
|
|
6
|
+
}>;
|
|
7
|
+
Oidc: Readonly<{
|
|
8
|
+
authorize: string;
|
|
9
|
+
removeTokens: string;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
Cookie: Readonly<{
|
|
13
|
+
listAll: string;
|
|
14
|
+
listDomain: string;
|
|
15
|
+
listUrl: string;
|
|
16
|
+
delete: string;
|
|
17
|
+
deleteUrl: string;
|
|
18
|
+
update: string;
|
|
19
|
+
updateBulk: string;
|
|
20
|
+
State: Readonly<{
|
|
21
|
+
delete: string;
|
|
22
|
+
update: string;
|
|
23
|
+
}>;
|
|
24
|
+
}>;
|
|
25
|
+
Encryption: Readonly<{
|
|
26
|
+
encrypt: string;
|
|
27
|
+
decrypt: string;
|
|
28
|
+
}>;
|
|
29
|
+
Model: {
|
|
30
|
+
ClientCertificate: Readonly<{
|
|
31
|
+
read: string;
|
|
32
|
+
list: string;
|
|
33
|
+
delete: string;
|
|
34
|
+
update: string;
|
|
35
|
+
insert: string;
|
|
36
|
+
State: Readonly<{
|
|
37
|
+
update: string;
|
|
38
|
+
delete: string;
|
|
39
|
+
}>;
|
|
40
|
+
}>;
|
|
41
|
+
Project: Readonly<{
|
|
42
|
+
create: string;
|
|
43
|
+
read: string;
|
|
44
|
+
update: string;
|
|
45
|
+
delete: string;
|
|
46
|
+
move: string;
|
|
47
|
+
clone: string;
|
|
48
|
+
listAll: string;
|
|
49
|
+
Folder: Readonly<{
|
|
50
|
+
create: string;
|
|
51
|
+
delete: string;
|
|
52
|
+
update: string;
|
|
53
|
+
}>;
|
|
54
|
+
Request: Readonly<{
|
|
55
|
+
create: string;
|
|
56
|
+
delete: string;
|
|
57
|
+
update: string;
|
|
58
|
+
}>;
|
|
59
|
+
Environment: Readonly<{
|
|
60
|
+
create: string;
|
|
61
|
+
delete: string;
|
|
62
|
+
update: string;
|
|
63
|
+
}>;
|
|
64
|
+
State: Readonly<{
|
|
65
|
+
update: string;
|
|
66
|
+
delete: string;
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
69
|
+
};
|
|
70
|
+
Process: Readonly<{
|
|
71
|
+
loadingStart: string;
|
|
72
|
+
loadingStop: string;
|
|
73
|
+
loadingError: string;
|
|
74
|
+
}>;
|
|
75
|
+
Reporting: Readonly<{
|
|
76
|
+
error: string;
|
|
77
|
+
}>;
|
|
78
|
+
Telemetry: Readonly<{
|
|
79
|
+
view: string;
|
|
80
|
+
event: string;
|
|
81
|
+
exception: string;
|
|
82
|
+
social: string;
|
|
83
|
+
timing: string;
|
|
84
|
+
State: Readonly<{
|
|
85
|
+
set: string;
|
|
86
|
+
}>;
|
|
87
|
+
}>;
|
|
88
|
+
Environment: Readonly<{
|
|
89
|
+
set: string;
|
|
90
|
+
}>;
|
|
91
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ModelEventTypes } from './models/ModelEventTypes.js';
|
|
2
|
+
import { CookieEventTypes } from './cookies/CookieEventTypes.js';
|
|
3
|
+
import { AuthorizationEventTypes } from './authorization/AuthorizationEventTypes.js';
|
|
4
|
+
import { EncryptionEventTypes } from './encryption/EncryptionEventTypes.js';
|
|
5
|
+
import { ProcessEventTypes } from './process/ProcessEventTypes.js';
|
|
6
|
+
import { ReportingEventTypes } from './reporting/ReportingEventTypes.js';
|
|
7
|
+
import { TelemetryEventTypes } from './telemetry/TelemetryEventTypes.js';
|
|
8
|
+
import { EnvironmentEventTypes } from './environment/EnvironmentEventTypes.js';
|
|
9
|
+
export const EventTypes = Object.freeze({
|
|
10
|
+
Authorization: AuthorizationEventTypes,
|
|
11
|
+
Cookie: CookieEventTypes,
|
|
12
|
+
Encryption: EncryptionEventTypes,
|
|
13
|
+
Model: ModelEventTypes,
|
|
14
|
+
Process: ProcessEventTypes,
|
|
15
|
+
Reporting: ReportingEventTypes,
|
|
16
|
+
Telemetry: TelemetryEventTypes,
|
|
17
|
+
Environment: EnvironmentEventTypes,
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=EventTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventTypes.js","sourceRoot":"","sources":["../../../src/events/EventTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,aAAa,EAAE,uBAAuB;IACtC,MAAM,EAAE,gBAAgB;IACxB,UAAU,EAAE,oBAAoB;IAChC,KAAK,EAAE,eAAe;IACtB,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;IAC9B,WAAW,EAAE,qBAAqB;CACnC,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CookieEvents } from './cookies/CookieEvents.js';
|
|
2
|
+
import { AuthorizationEvents } from './authorization/AuthorizationEvents.js';
|
|
3
|
+
import { EncryptionEvents } from './encryption/EncryptionEvents.js';
|
|
4
|
+
import { ProcessEvents } from './process/ProcessEvents.js';
|
|
5
|
+
import { ReportingEvents } from './reporting/ReportingEvents.js';
|
|
6
|
+
import { TelemetryEvents } from './telemetry/TelemetryEvents.js';
|
|
7
|
+
import { EnvironmentEvents } from './environment/EnvironmentEvents.js';
|
|
8
|
+
export declare const Events: Readonly<{
|
|
9
|
+
Authorization: typeof AuthorizationEvents;
|
|
10
|
+
Cookie: typeof CookieEvents;
|
|
11
|
+
Encryption: typeof EncryptionEvents;
|
|
12
|
+
Model: Readonly<{
|
|
13
|
+
Project: typeof import("./models/ProjectEvents.js").ProjectEvents;
|
|
14
|
+
ClientCertificate: typeof import("./models/ClientCertificateEvents.js").ClientCertificateEvents;
|
|
15
|
+
}>;
|
|
16
|
+
Process: typeof ProcessEvents;
|
|
17
|
+
Reporting: typeof ReportingEvents;
|
|
18
|
+
Telemetry: typeof TelemetryEvents;
|
|
19
|
+
Environment: typeof EnvironmentEvents;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ModelEvents } from './models/ModelEvents.js';
|
|
2
|
+
import { CookieEvents } from './cookies/CookieEvents.js';
|
|
3
|
+
import { AuthorizationEvents } from './authorization/AuthorizationEvents.js';
|
|
4
|
+
import { EncryptionEvents } from './encryption/EncryptionEvents.js';
|
|
5
|
+
import { ProcessEvents } from './process/ProcessEvents.js';
|
|
6
|
+
import { ReportingEvents } from './reporting/ReportingEvents.js';
|
|
7
|
+
import { TelemetryEvents } from './telemetry/TelemetryEvents.js';
|
|
8
|
+
import { EnvironmentEvents } from './environment/EnvironmentEvents.js';
|
|
9
|
+
export const Events = Object.freeze({
|
|
10
|
+
Authorization: AuthorizationEvents,
|
|
11
|
+
Cookie: CookieEvents,
|
|
12
|
+
Encryption: EncryptionEvents,
|
|
13
|
+
Model: ModelEvents,
|
|
14
|
+
Process: ProcessEvents,
|
|
15
|
+
Reporting: ReportingEvents,
|
|
16
|
+
Telemetry: TelemetryEvents,
|
|
17
|
+
Environment: EnvironmentEvents,
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=Events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Events.js","sourceRoot":"","sources":["../../../src/events/Events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAClC,aAAa,EAAE,mBAAmB;IAClC,MAAM,EAAE,YAAY;IACpB,UAAU,EAAE,gBAAgB;IAC5B,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE,aAAa;IACtB,SAAS,EAAE,eAAe;IAC1B,SAAS,EAAE,eAAe;IAC1B,WAAW,EAAE,iBAAiB;CAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const AuthorizationEventTypes: Readonly<{
|
|
2
|
+
OAuth2: Readonly<{
|
|
3
|
+
/**
|
|
4
|
+
* Authorization with auth configuration on detail
|
|
5
|
+
*/
|
|
6
|
+
authorize: string;
|
|
7
|
+
/**
|
|
8
|
+
* Removes cached token for the provider
|
|
9
|
+
*/
|
|
10
|
+
removeToken: string;
|
|
11
|
+
}>;
|
|
12
|
+
Oidc: Readonly<{
|
|
13
|
+
/**
|
|
14
|
+
* Authorization the user with the provided configuration.
|
|
15
|
+
*/
|
|
16
|
+
authorize: string;
|
|
17
|
+
/**
|
|
18
|
+
* Removes cached tokens for the provider
|
|
19
|
+
*/
|
|
20
|
+
removeTokens: string;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const AuthorizationEventTypes = Object.freeze({
|
|
2
|
+
OAuth2: Object.freeze({
|
|
3
|
+
/**
|
|
4
|
+
* Authorization with auth configuration on detail
|
|
5
|
+
*/
|
|
6
|
+
authorize: 'oauth2authorize',
|
|
7
|
+
/**
|
|
8
|
+
* Removes cached token for the provider
|
|
9
|
+
*/
|
|
10
|
+
removeToken: 'oauth2removetoken',
|
|
11
|
+
}),
|
|
12
|
+
Oidc: Object.freeze({
|
|
13
|
+
/**
|
|
14
|
+
* Authorization the user with the provided configuration.
|
|
15
|
+
*/
|
|
16
|
+
authorize: 'oidcauthorize',
|
|
17
|
+
/**
|
|
18
|
+
* Removes cached tokens for the provider
|
|
19
|
+
*/
|
|
20
|
+
removeTokens: 'oidcremovetokens',
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=AuthorizationEventTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthorizationEventTypes.js","sourceRoot":"","sources":["../../../../src/events/authorization/AuthorizationEventTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB;;WAEG;QACH,SAAS,EAAE,iBAAiB;QAC5B;;WAEG;QACH,WAAW,EAAE,mBAAmB;KACjC,CAAC;IACF,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QAClB;;WAEG;QACH,SAAS,EAAE,eAAe;QAC1B;;WAEG;QACH,YAAY,EAAE,kBAAkB;KACjC,CAAC;CACH,CAAC,CAAC"}
|