@api-client/core 0.3.3 → 0.3.6
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/build/browser.d.ts +3 -0
- package/build/browser.js +9 -0
- package/build/browser.js.map +1 -1
- package/build/index.d.ts +11 -2
- package/build/index.js +20 -2
- package/build/index.js.map +1 -1
- package/build/src/lib/fs/Fs.d.ts +52 -0
- package/build/src/lib/fs/Fs.js +245 -0
- package/build/src/lib/fs/Fs.js.map +1 -0
- package/build/src/lib/timers/Timers.d.ts +5 -0
- package/build/src/lib/timers/Timers.js +10 -0
- package/build/src/lib/timers/Timers.js.map +1 -0
- package/build/src/mocking/ProjectMock.d.ts +13 -0
- package/build/src/mocking/ProjectMock.js +16 -0
- package/build/src/mocking/ProjectMock.js.map +1 -0
- package/build/src/mocking/lib/Request.d.ts +32 -0
- package/build/src/mocking/lib/Request.js +63 -0
- package/build/src/mocking/lib/Request.js.map +1 -0
- package/build/src/mocking/lib/Response.d.ts +33 -0
- package/build/src/mocking/lib/Response.js +79 -0
- package/build/src/mocking/lib/Response.js.map +1 -0
- package/build/src/models/ErrorResponse.d.ts +5 -4
- package/build/src/models/ErrorResponse.js +18 -5
- package/build/src/models/ErrorResponse.js.map +1 -1
- package/build/src/models/SerializableError.d.ts +30 -0
- package/build/src/models/SerializableError.js +63 -0
- package/build/src/models/SerializableError.js.map +1 -0
- package/build/src/runtime/http-engine/ArcEngine.js +8 -4
- package/build/src/runtime/http-engine/ArcEngine.js.map +1 -1
- package/build/src/runtime/http-engine/HttpEngine.d.ts +3 -3
- package/build/src/runtime/http-engine/HttpEngine.js +3 -3
- package/build/src/runtime/http-engine/HttpEngine.js.map +1 -1
- package/build/src/runtime/http-engine/NodeEngine.js +9 -4
- package/build/src/runtime/http-engine/NodeEngine.js.map +1 -1
- package/build/src/runtime/http-engine/NodeEngineDirect.js +8 -2
- package/build/src/runtime/http-engine/NodeEngineDirect.js.map +1 -1
- package/build/src/runtime/node/BaseRunner.d.ts +21 -0
- package/build/src/runtime/node/BaseRunner.js +27 -0
- package/build/src/runtime/node/BaseRunner.js.map +1 -0
- package/build/src/runtime/node/ProjectParallelRunner.d.ts +81 -0
- package/build/src/runtime/node/ProjectParallelRunner.js +173 -0
- package/build/src/runtime/node/ProjectParallelRunner.js.map +1 -0
- package/build/src/runtime/node/ProjectRequestRunner.d.ts +125 -0
- package/build/src/runtime/node/ProjectRequestRunner.js +185 -0
- package/build/src/runtime/node/ProjectRequestRunner.js.map +1 -0
- package/build/src/runtime/node/ProjectRunner.d.ts +166 -64
- package/build/src/runtime/node/ProjectRunner.js +191 -139
- package/build/src/runtime/node/ProjectRunner.js.map +1 -1
- package/build/src/runtime/node/ProjectRunnerWorker.d.ts +1 -0
- package/build/src/runtime/node/ProjectRunnerWorker.js +58 -0
- package/build/src/runtime/node/ProjectRunnerWorker.js.map +1 -0
- package/build/src/runtime/node/ProjectSerialRunner.d.ts +11 -0
- package/build/src/runtime/node/ProjectSerialRunner.js +34 -0
- package/build/src/runtime/node/ProjectSerialRunner.js.map +1 -0
- package/build/src/runtime/reporters/ProjectRunCliReporter.d.ts +7 -0
- package/build/src/runtime/reporters/ProjectRunCliReporter.js +73 -0
- package/build/src/runtime/reporters/ProjectRunCliReporter.js.map +1 -0
- package/build/src/runtime/reporters/Reporter.d.ts +62 -0
- package/build/src/runtime/reporters/Reporter.js +98 -0
- package/build/src/runtime/reporters/Reporter.js.map +1 -0
- package/build/src/testing/TestCliHelper.d.ts +23 -0
- package/build/src/testing/TestCliHelper.js +71 -0
- package/build/src/testing/TestCliHelper.js.map +1 -0
- package/build/src/testing/getPort.d.ts +52 -0
- package/build/src/testing/getPort.js +169 -0
- package/build/src/testing/getPort.js.map +1 -0
- package/package.json +2 -1
- package/src/data/DataReader.ts +11 -0
- package/src/data/DataUtils.ts +108 -0
- package/src/data/JmesparthReader.ts +26 -0
- package/src/data/Json2Xml.ts +190 -0
- package/src/data/JsonReader.ts +41 -0
- package/src/data/PayloadPointer.ts +48 -0
- package/src/data/RequestDataExtractor.ts +133 -0
- package/src/data/UrlEncodedReader.ts +20 -0
- package/src/data/XmlReader.ts +103 -0
- package/src/events/BaseEvents.ts +259 -0
- package/src/events/CustomEvent.ts +27 -0
- package/src/events/EventTypes.ts +19 -0
- package/src/events/Events.ts +19 -0
- package/src/events/authorization/AuthorizationEventTypes.ts +22 -0
- package/src/events/authorization/AuthorizationEvents.ts +61 -0
- package/src/events/cookies/CookieEventTypes.ts +13 -0
- package/src/events/cookies/CookieEvents.ts +157 -0
- package/src/events/encryption/EncryptionEventTypes.ts +4 -0
- package/src/events/encryption/EncryptionEvents.ts +51 -0
- package/src/events/environment/EnvironmentEventTypes.ts +3 -0
- package/src/events/environment/EnvironmentEvents.ts +24 -0
- package/src/events/models/ClientCertificateEvents.ts +87 -0
- package/src/events/models/ModelEventTypes.ts +47 -0
- package/src/events/models/ModelEvents.ts +7 -0
- package/src/events/models/ProjectEvents.ts +331 -0
- package/src/events/process/ProcessEventTypes.ts +5 -0
- package/src/events/process/ProcessEvents.ts +76 -0
- package/src/events/readme.md +22 -0
- package/src/events/reporting/ReportingEventTypes.ts +3 -0
- package/src/events/reporting/ReportingEvents.ts +28 -0
- package/src/events/telemetry/TelemetryEventTypes.ts +10 -0
- package/src/events/telemetry/TelemetryEvents.ts +156 -0
- package/src/lib/cookies/Cookie.ts +312 -0
- package/src/lib/cookies/Cookies.ts +326 -0
- package/src/lib/cookies/Utils.ts +168 -0
- package/src/lib/fs/Fs.ts +258 -0
- package/src/lib/headers/Headers.ts +219 -0
- package/src/lib/logging/DefaultLogger.ts +19 -0
- package/src/lib/logging/DummyLogger.ts +21 -0
- package/src/lib/logging/Logger.ts +16 -0
- package/src/lib/timers/Timers.ts +9 -0
- package/src/lib/transformers/PayloadSerializer.ts +332 -0
- package/src/lib/transformers/Utils.ts +18 -0
- package/src/lib/uuid.ts +40 -0
- package/src/mocking/LegacyInterfaces.ts +52 -0
- package/src/mocking/LegacyMock.ts +37 -0
- package/src/mocking/ProjectMock.ts +20 -0
- package/src/mocking/legacy/Authorization.ts +39 -0
- package/src/mocking/legacy/Certificates.ts +145 -0
- package/src/mocking/legacy/Cookies.ts +51 -0
- package/src/mocking/legacy/HostRules.ts +43 -0
- package/src/mocking/legacy/Http.ts +236 -0
- package/src/mocking/legacy/HttpResponse.ts +106 -0
- package/src/mocking/legacy/RestApi.ts +68 -0
- package/src/mocking/legacy/Urls.ts +44 -0
- package/src/mocking/legacy/Variables.ts +53 -0
- package/src/mocking/lib/Request.ts +85 -0
- package/src/mocking/lib/Response.ts +101 -0
- package/src/models/ArcResponse.ts +166 -0
- package/src/models/Authorization.ts +481 -0
- package/src/models/AuthorizationData.ts +60 -0
- package/src/models/Backend.ts +107 -0
- package/src/models/ClientCertificate.ts +68 -0
- package/src/models/Environment.ts +279 -0
- package/src/models/ErrorResponse.ts +113 -0
- package/src/models/HistoryIndex.ts +76 -0
- package/src/models/HistoryRequest.ts +28 -0
- package/src/models/HostRule.ts +163 -0
- package/src/models/HttpCookie.ts +285 -0
- package/src/models/HttpProject.ts +1294 -0
- package/src/models/HttpProjectListItem.ts +23 -0
- package/src/models/HttpRequest.ts +124 -0
- package/src/models/HttpResponse.ts +143 -0
- package/src/models/License.ts +113 -0
- package/src/models/ProjectDefinitionProperty.ts +40 -0
- package/src/models/ProjectFolder.ts +439 -0
- package/src/models/ProjectItem.ts +135 -0
- package/src/models/ProjectParent.ts +113 -0
- package/src/models/ProjectRequest.ts +277 -0
- package/src/models/ProjectSchema.ts +202 -0
- package/src/models/Property.ts +423 -0
- package/src/models/Provider.ts +98 -0
- package/src/models/README.md +20 -0
- package/src/models/Request.ts +452 -0
- package/src/models/RequestActions.ts +163 -0
- package/src/models/RequestAuthorization.ts +115 -0
- package/src/models/RequestConfig.ts +317 -0
- package/src/models/RequestLog.ts +159 -0
- package/src/models/RequestTime.ts +108 -0
- package/src/models/RequestUiMeta.ts +258 -0
- package/src/models/RequestsSize.ts +65 -0
- package/src/models/ResponseAuthorization.ts +104 -0
- package/src/models/ResponseRedirect.ts +158 -0
- package/src/models/RevisionInfo.ts +37 -0
- package/src/models/SentRequest.ts +125 -0
- package/src/models/SerializableError.ts +80 -0
- package/src/models/SerializablePayload.ts +68 -0
- package/src/models/Server.ts +153 -0
- package/src/models/Thing.ts +110 -0
- package/src/models/Url.ts +90 -0
- package/src/models/User.ts +120 -0
- package/src/models/WebApi.ts +234 -0
- package/src/models/WebApiIndex.ts +122 -0
- package/src/models/Workspace.ts +182 -0
- package/src/models/actions/Action.ts +213 -0
- package/src/models/actions/ActionView.ts +40 -0
- package/src/models/actions/Condition.ts +207 -0
- package/src/models/actions/ConditionView.ts +42 -0
- package/src/models/actions/Enums.ts +29 -0
- package/src/models/actions/RunnableAction.ts +144 -0
- package/src/models/actions/runnable/DeleteCookieAction.ts +113 -0
- package/src/models/actions/runnable/Runnable.ts +9 -0
- package/src/models/actions/runnable/SetCookieAction.ts +216 -0
- package/src/models/actions/runnable/SetVariableAction.ts +81 -0
- package/src/models/legacy/DataExport.ts +172 -0
- package/src/models/legacy/Normalizer.ts +110 -0
- package/src/models/legacy/actions/Actions.ts +269 -0
- package/src/models/legacy/authorization/Authorization.ts +572 -0
- package/src/models/legacy/models/ApiTypes.ts +202 -0
- package/src/models/legacy/models/ArcLegacyProject.ts +39 -0
- package/src/models/legacy/models/AuthData.ts +17 -0
- package/src/models/legacy/models/ClientCertificate.ts +95 -0
- package/src/models/legacy/models/Cookies.ts +52 -0
- package/src/models/legacy/models/HostRule.ts +35 -0
- package/src/models/legacy/models/RestApi.ts +49 -0
- package/src/models/legacy/models/UrlHistory.ts +37 -0
- package/src/models/legacy/models/Variable.ts +43 -0
- package/src/models/legacy/models/base.d.ts +95 -0
- package/src/models/legacy/request/ArcRequest.ts +405 -0
- package/src/models/legacy/request/ArcResponse.ts +177 -0
- package/src/models/legacy/request/HistoryData.ts +47 -0
- package/src/models/legacy/request/Legacy.ts +45 -0
- package/src/models/legacy/request/RequestBody.ts +87 -0
- package/src/models/transformers/ArcDexieTransformer.ts +323 -0
- package/src/models/transformers/ArcLegacyNormalizer.ts +85 -0
- package/src/models/transformers/ArcLegacyTransformer.ts +200 -0
- package/src/models/transformers/ArcPouchTransformer.ts +184 -0
- package/src/models/transformers/BaseTransformer.ts +116 -0
- package/src/models/transformers/ImportUtils.ts +141 -0
- package/src/models/transformers/LegacyDataExportToApiProject.ts +76 -0
- package/src/models/transformers/LegacyExportProcessor.ts +252 -0
- package/src/models/transformers/PostmanBackupTransformer.ts +306 -0
- package/src/models/transformers/PostmanDataTransformer.ts +50 -0
- package/src/models/transformers/PostmanTransformer.ts +106 -0
- package/src/models/transformers/PostmanV21Transformer.ts +311 -0
- package/src/models/transformers/PostmanV2Transformer.ts +308 -0
- package/src/models/transformers/har.ts +865 -0
- package/src/runtime/actions/ActionRunner.ts +83 -0
- package/src/runtime/actions/ConditionRunner.ts +194 -0
- package/src/runtime/actions/RunnableCondition.ts +57 -0
- package/src/runtime/actions/runnable/ActionRunnable.ts +19 -0
- package/src/runtime/actions/runnable/DeleteCookieRunnable.ts +39 -0
- package/src/runtime/actions/runnable/SetCookieRunnable.ts +92 -0
- package/src/runtime/actions/runnable/SetVariableRunnable.ts +53 -0
- package/src/runtime/http-engine/ArcEngine.ts +1068 -0
- package/src/runtime/http-engine/FormData.ts +85 -0
- package/src/runtime/http-engine/HttpEngine.ts +874 -0
- package/src/runtime/http-engine/HttpErrorCodes.ts +270 -0
- package/src/runtime/http-engine/NodeEngine.ts +792 -0
- package/src/runtime/http-engine/NodeEngineDirect.ts +482 -0
- package/src/runtime/http-engine/PayloadSupport.ts +84 -0
- package/src/runtime/http-engine/RequestUtils.ts +164 -0
- package/src/runtime/http-engine/ntlm/Des.ts +345 -0
- package/src/runtime/http-engine/ntlm/MD4.ts +135 -0
- package/src/runtime/http-engine/ntlm/NtlmAuth.ts +186 -0
- package/src/runtime/http-engine/ntlm/NtlmMessage.ts +57 -0
- package/src/runtime/modules/BasicAuthCache.ts +133 -0
- package/src/runtime/modules/ExecutionResponse.ts +4 -0
- package/src/runtime/modules/ModulesRegistry.ts +136 -0
- package/src/runtime/modules/RequestAuthorization.ts +110 -0
- package/src/runtime/modules/RequestCookies.ts +145 -0
- package/src/runtime/node/BaseRunner.ts +29 -0
- package/src/runtime/node/ProjectParallelRunner.ts +234 -0
- package/src/runtime/node/ProjectRequestRunner.ts +281 -0
- package/src/runtime/node/ProjectRunner.ts +374 -0
- package/src/runtime/node/ProjectRunnerWorker.ts +62 -0
- package/src/runtime/node/ProjectSerialRunner.ts +36 -0
- package/src/runtime/node/RequestFactory.ts +422 -0
- package/src/runtime/node/VariablesStore.ts +25 -0
- package/src/runtime/reporters/ProjectRunCliReporter.ts +79 -0
- package/src/runtime/reporters/Reporter.ts +142 -0
- package/src/runtime/store/StoreSdk.ts +838 -0
- package/src/runtime/variables/Cache.ts +53 -0
- package/src/runtime/variables/EvalFunctions.ts +132 -0
- package/src/runtime/variables/ProjectVariables.ts +6 -0
- package/src/runtime/variables/VariablesProcessor.ts +543 -0
- package/src/runtime/variables/VariablesTokenizer.ts +55 -0
- package/src/testing/TestCliHelper.ts +76 -0
- package/src/testing/getPort.ts +212 -0
- package/build/src/runtime/http-engine/Errors.d.ts +0 -10
- package/build/src/runtime/http-engine/Errors.js +0 -14
- package/build/src/runtime/http-engine/Errors.js.map +0 -1
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
export type ActionType = 'request' | 'response';
|
|
2
|
+
/**
|
|
3
|
+
* A base interface describing a configuration to extract data from a request or a response.
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export interface BaseCondition {
|
|
7
|
+
/**
|
|
8
|
+
* The main data source. Either the request or the response object.
|
|
9
|
+
* This is required when the `source` is not equal to `value. In this case it is ignored
|
|
10
|
+
*/
|
|
11
|
+
type?: ActionType;
|
|
12
|
+
/**
|
|
13
|
+
* Source of the data.
|
|
14
|
+
*/
|
|
15
|
+
source: RequestDataSourceEnum | ResponseDataSourceEnum | 'value';
|
|
16
|
+
/**
|
|
17
|
+
* The path to the data. When `iteratorEnabled` is set then this
|
|
18
|
+
* is a path counting from an array item. When not set an entire value of `source` is used.
|
|
19
|
+
*/
|
|
20
|
+
path?: string;
|
|
21
|
+
/**
|
|
22
|
+
* This is only used when `source` is set to `value`. The data is not extracted from any of the request fields but this value is used.
|
|
23
|
+
*/
|
|
24
|
+
value?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A configuration that extracts complex data from arrays.
|
|
28
|
+
* @deprecated
|
|
29
|
+
*/
|
|
30
|
+
export interface DataSourceConfiguration extends BaseCondition {
|
|
31
|
+
/**
|
|
32
|
+
* When set the iterator configuration is enabled
|
|
33
|
+
*/
|
|
34
|
+
iteratorEnabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Array search configuration.
|
|
37
|
+
*/
|
|
38
|
+
iterator?: IteratorConfiguration;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Describes action's condition configuration.
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
45
|
+
export interface Condition extends DataSourceConfiguration {
|
|
46
|
+
/**
|
|
47
|
+
* The value to compare to the result of extracted from the data source value.
|
|
48
|
+
* Usually it is a string. For `statuscode` acceptable value is a number.
|
|
49
|
+
*/
|
|
50
|
+
predictedValue?: string | number;
|
|
51
|
+
/**
|
|
52
|
+
* The comparison operator.
|
|
53
|
+
*/
|
|
54
|
+
operator?: OperatorEnum;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the condition always pass.
|
|
57
|
+
* The condition is not really checked, values can be empty. The condition check always returns `true`.
|
|
58
|
+
*/
|
|
59
|
+
alwaysPass?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Options related to the UI state in the application.
|
|
62
|
+
*/
|
|
63
|
+
view?: ConditionViewOptions;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated
|
|
68
|
+
*/
|
|
69
|
+
export interface ConditionViewOptions {
|
|
70
|
+
/**
|
|
71
|
+
* Whether the condition editor is rendered in the "full" view
|
|
72
|
+
* instead of the summary.
|
|
73
|
+
*/
|
|
74
|
+
opened?: boolean;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* An interface representing a runnable set of action in a condition.
|
|
79
|
+
* For the actions to be executed the condition first has to be met.
|
|
80
|
+
* The condition can be configured to always pass by setting the `alwaysPass` property.
|
|
81
|
+
* @deprecated
|
|
82
|
+
*/
|
|
83
|
+
export interface RunnableAction {
|
|
84
|
+
/**
|
|
85
|
+
* The condition to be checked when executing the runnable,
|
|
86
|
+
*/
|
|
87
|
+
condition: Condition;
|
|
88
|
+
/**
|
|
89
|
+
* The type of the runnable.
|
|
90
|
+
* The `request` will only process HTTP request data. The `response` has both request and response data available.
|
|
91
|
+
*/
|
|
92
|
+
type: ActionType;
|
|
93
|
+
/**
|
|
94
|
+
* The list of actions to execute.
|
|
95
|
+
*/
|
|
96
|
+
actions: Action[];
|
|
97
|
+
/**
|
|
98
|
+
* Whether the entire runnable is enabled. This is checked before the condition is executed.
|
|
99
|
+
*/
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* An interface representing a single action.
|
|
106
|
+
* @deprecated
|
|
107
|
+
*/
|
|
108
|
+
export interface Action {
|
|
109
|
+
/**
|
|
110
|
+
* The type of the action.
|
|
111
|
+
* The `request` will only process HTTP request data. The `response` has both request and response data available.
|
|
112
|
+
*/
|
|
113
|
+
type: ActionType;
|
|
114
|
+
/**
|
|
115
|
+
* Action name.
|
|
116
|
+
*/
|
|
117
|
+
name?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Whether the action is enabled.
|
|
120
|
+
*/
|
|
121
|
+
enabled?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Action priority. The higher number the higher priority of execution.
|
|
124
|
+
*/
|
|
125
|
+
priority: number;
|
|
126
|
+
/**
|
|
127
|
+
* Action configuration
|
|
128
|
+
*/
|
|
129
|
+
config?: ActionConfiguration;
|
|
130
|
+
/**
|
|
131
|
+
* Whether or not the action is executed synchronously to request / response
|
|
132
|
+
*/
|
|
133
|
+
sync?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Whether or not the request should fail when the action fails.
|
|
136
|
+
*/
|
|
137
|
+
failOnError?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Options passed to the UI.
|
|
140
|
+
*/
|
|
141
|
+
view?: ActionViewConfiguration;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Convenience type that gathers all configurations in one type.
|
|
146
|
+
* @deprecated
|
|
147
|
+
*/
|
|
148
|
+
export type ActionConfiguration = SetCookieConfig | SetVariableConfig | DeleteCookieConfig;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @deprecated
|
|
152
|
+
*/
|
|
153
|
+
export interface SetCookieConfig {
|
|
154
|
+
/**
|
|
155
|
+
* Name of the cookie
|
|
156
|
+
*/
|
|
157
|
+
name: string;
|
|
158
|
+
/**
|
|
159
|
+
* Source of the cookie value
|
|
160
|
+
*/
|
|
161
|
+
source: DataSourceConfiguration;
|
|
162
|
+
/**
|
|
163
|
+
* When set it uses request URL instead of defined URL in the action
|
|
164
|
+
*/
|
|
165
|
+
useRequestUrl?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* An URL associated with the cookie
|
|
168
|
+
*/
|
|
169
|
+
url?: string;
|
|
170
|
+
/**
|
|
171
|
+
* The cookie expiration time
|
|
172
|
+
*/
|
|
173
|
+
expires?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Whether the cookie is host only
|
|
176
|
+
*/
|
|
177
|
+
hostOnly?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Whether the cookie is HTTP only
|
|
180
|
+
*/
|
|
181
|
+
httpOnly?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Whether the cookie is HTTPS only
|
|
184
|
+
*/
|
|
185
|
+
secure?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Whether the cookie is a session cookie
|
|
188
|
+
*/
|
|
189
|
+
session?: boolean;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @deprecated
|
|
194
|
+
*/
|
|
195
|
+
export interface SetVariableConfig {
|
|
196
|
+
/**
|
|
197
|
+
* Name of the variable to set
|
|
198
|
+
*/
|
|
199
|
+
name: string;
|
|
200
|
+
/**
|
|
201
|
+
* Source of the cookie value
|
|
202
|
+
*/
|
|
203
|
+
source: DataSourceConfiguration;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @deprecated
|
|
208
|
+
*/
|
|
209
|
+
export interface DeleteCookieConfig {
|
|
210
|
+
/**
|
|
211
|
+
* When set it uses request URL instead of defined URL in the action.
|
|
212
|
+
*/
|
|
213
|
+
useRequestUrl?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* An URL associated with the cookie.
|
|
216
|
+
* Only used when `useRequestUrl` is not `true`.
|
|
217
|
+
*/
|
|
218
|
+
url?: string;
|
|
219
|
+
/**
|
|
220
|
+
* When set it removes all cookies associated wit the URL.
|
|
221
|
+
*/
|
|
222
|
+
removeAll?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Name of the cookie to remove.
|
|
225
|
+
*/
|
|
226
|
+
name?: string;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @deprecated
|
|
231
|
+
*/
|
|
232
|
+
export interface IteratorConfiguration {
|
|
233
|
+
/**
|
|
234
|
+
* The path to the property to use in the comparison.
|
|
235
|
+
*/
|
|
236
|
+
path: string;
|
|
237
|
+
/**
|
|
238
|
+
* The value of the condition.
|
|
239
|
+
*/
|
|
240
|
+
condition: string;
|
|
241
|
+
/**
|
|
242
|
+
* The comparison operator.
|
|
243
|
+
*/
|
|
244
|
+
operator: OperatorEnum;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated
|
|
249
|
+
*/
|
|
250
|
+
export type OperatorEnum = "equal" | "not-equal" | "greater-than" | "greater-than-equal" | "less-than" | "less-than-equal" | "contains" | "regex";
|
|
251
|
+
/**
|
|
252
|
+
* @deprecated
|
|
253
|
+
*/
|
|
254
|
+
export type RequestDataSourceEnum = "url" | "method" | "headers" | "body";
|
|
255
|
+
/**
|
|
256
|
+
* @deprecated
|
|
257
|
+
*/
|
|
258
|
+
export type ResponseDataSourceEnum = "url" | "status" | "headers" | "body";
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* An UI controlling configuration for an action.
|
|
262
|
+
* @deprecated
|
|
263
|
+
*/
|
|
264
|
+
export interface ActionViewConfiguration {
|
|
265
|
+
/**
|
|
266
|
+
* Whether the action is "opened" in the editor UI.
|
|
267
|
+
*/
|
|
268
|
+
opened?: boolean;
|
|
269
|
+
}
|