@api-client/core 0.9.4 → 0.9.5
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 +12 -2
- package/build/browser.js +15 -2
- package/build/browser.js.map +1 -1
- package/build/index.d.ts +13 -3
- package/build/index.js +16 -3
- package/build/index.js.map +1 -1
- package/build/src/data/{JmesparthReader.d.ts → JmespathReader.d.ts} +1 -1
- package/build/src/data/{JmesparthReader.js → JmespathReader.js} +2 -2
- package/build/src/data/JmespathReader.js.map +1 -0
- package/build/src/data/RequestDataExtractor.d.ts +5 -5
- package/build/src/data/RequestDataExtractor.js.map +1 -1
- package/build/src/data/XmlReader.js +14 -1
- package/build/src/data/XmlReader.js.map +1 -1
- package/build/src/models/ClientCertificate.d.ts +9 -0
- package/build/src/models/ClientCertificate.js.map +1 -1
- package/build/src/models/Environment.d.ts +3 -2
- package/build/src/models/Environment.js +11 -6
- package/build/src/models/Environment.js.map +1 -1
- package/build/src/models/ErrorResponse.js.map +1 -1
- package/build/src/models/HttpRequest.d.ts +2 -7
- package/build/src/models/HttpRequest.js +1 -6
- package/build/src/models/HttpRequest.js.map +1 -1
- package/build/src/models/HttpResponse.d.ts +2 -7
- package/build/src/models/HttpResponse.js +1 -3
- package/build/src/models/HttpResponse.js.map +1 -1
- package/build/src/models/ProjectRequest.d.ts +19 -0
- package/build/src/models/ProjectRequest.js +50 -0
- package/build/src/models/ProjectRequest.js.map +1 -1
- package/build/src/models/Request.d.ts +12 -3
- package/build/src/models/Request.js +14 -1
- package/build/src/models/Request.js.map +1 -1
- package/build/src/models/RequestAuthorization.js.map +1 -1
- package/build/src/models/RequestLog.d.ts +11 -0
- package/build/src/models/RequestLog.js +15 -1
- package/build/src/models/RequestLog.js.map +1 -1
- package/build/src/models/SerializablePayload.d.ts +6 -1
- package/build/src/models/SerializablePayload.js +10 -6
- package/build/src/models/SerializablePayload.js.map +1 -1
- package/build/src/models/http-actions/AssertionError.d.ts +36 -0
- package/build/src/models/http-actions/AssertionError.js +35 -0
- package/build/src/models/http-actions/AssertionError.js.map +1 -0
- package/build/src/models/http-actions/HttpAssertion.d.ts +84 -0
- package/build/src/models/http-actions/HttpAssertion.js +52 -0
- package/build/src/models/http-actions/HttpAssertion.js.map +1 -0
- package/build/src/models/http-actions/HttpFlows.d.ts +109 -0
- package/build/src/models/http-actions/HttpFlows.js +31 -0
- package/build/src/models/http-actions/HttpFlows.js.map +1 -0
- package/build/src/models/http-actions/HttpStep.d.ts +29 -0
- package/build/src/models/http-actions/HttpStep.js +30 -0
- package/build/src/models/http-actions/HttpStep.js.map +1 -0
- package/build/src/models/http-actions/LegacyTranslator.d.ts +8 -7
- package/build/src/models/http-actions/LegacyTranslator.js +18 -13
- package/build/src/models/http-actions/LegacyTranslator.js.map +1 -1
- package/build/src/models/http-actions/steps/assertion/EqualAssertion.d.ts +76 -0
- package/build/src/models/http-actions/steps/assertion/EqualAssertion.js +79 -0
- package/build/src/models/http-actions/steps/assertion/EqualAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/GreaterThanAssertion.d.ts +36 -0
- package/build/src/models/http-actions/steps/assertion/GreaterThanAssertion.js +59 -0
- package/build/src/models/http-actions/steps/assertion/GreaterThanAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/IncludesAssertion.d.ts +28 -0
- package/build/src/models/http-actions/steps/assertion/IncludesAssertion.js +45 -0
- package/build/src/models/http-actions/steps/assertion/IncludesAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/IsEmptyAssertion.d.ts +18 -0
- package/build/src/models/http-actions/steps/assertion/IsEmptyAssertion.js +29 -0
- package/build/src/models/http-actions/steps/assertion/IsEmptyAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/IsNotEmptyAssertion.d.ts +18 -0
- package/build/src/models/http-actions/steps/assertion/IsNotEmptyAssertion.js +29 -0
- package/build/src/models/http-actions/steps/assertion/IsNotEmptyAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/LengthOfAssertion.d.ts +28 -0
- package/build/src/models/http-actions/steps/assertion/LengthOfAssertion.js +45 -0
- package/build/src/models/http-actions/steps/assertion/LengthOfAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/LessThanAssertion.d.ts +36 -0
- package/build/src/models/http-actions/steps/assertion/LessThanAssertion.js +59 -0
- package/build/src/models/http-actions/steps/assertion/LessThanAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/MatchesAssertion.d.ts +28 -0
- package/build/src/models/http-actions/steps/assertion/MatchesAssertion.js +45 -0
- package/build/src/models/http-actions/steps/assertion/MatchesAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/MatchesSchemaAssertion.d.ts +36 -0
- package/build/src/models/http-actions/steps/assertion/MatchesSchemaAssertion.js +59 -0
- package/build/src/models/http-actions/steps/assertion/MatchesSchemaAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/NotEqualAssertion.d.ts +76 -0
- package/build/src/models/http-actions/steps/assertion/NotEqualAssertion.js +79 -0
- package/build/src/models/http-actions/steps/assertion/NotEqualAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/NotIncludesAssertion.d.ts +28 -0
- package/build/src/models/http-actions/steps/assertion/NotIncludesAssertion.js +45 -0
- package/build/src/models/http-actions/steps/assertion/NotIncludesAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/NotOkAssertion.d.ts +18 -0
- package/build/src/models/http-actions/steps/assertion/NotOkAssertion.js +29 -0
- package/build/src/models/http-actions/steps/assertion/NotOkAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/NotToBeAssertion.d.ts +29 -0
- package/build/src/models/http-actions/steps/assertion/NotToBeAssertion.js +45 -0
- package/build/src/models/http-actions/steps/assertion/NotToBeAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/OkAssertion.d.ts +18 -0
- package/build/src/models/http-actions/steps/assertion/OkAssertion.js +29 -0
- package/build/src/models/http-actions/steps/assertion/OkAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/ToBeAssertion.d.ts +35 -0
- package/build/src/models/http-actions/steps/assertion/ToBeAssertion.js +53 -0
- package/build/src/models/http-actions/steps/assertion/ToBeAssertion.js.map +1 -0
- package/build/src/models/http-actions/steps/assertion/index.d.ts +15 -0
- package/build/src/models/http-actions/steps/assertion/index.js +16 -0
- package/build/src/models/http-actions/steps/assertion/index.js.map +1 -0
- package/build/src/models/http-actions/steps/data/DeleteCookieStep.d.ts +44 -0
- package/build/src/models/http-actions/steps/data/DeleteCookieStep.js +67 -0
- package/build/src/models/http-actions/steps/data/DeleteCookieStep.js.map +1 -0
- package/build/src/models/http-actions/steps/data/ReadDataSourceStep.d.ts +53 -0
- package/build/src/models/http-actions/steps/data/ReadDataSourceStep.js +60 -0
- package/build/src/models/http-actions/steps/data/ReadDataSourceStep.js.map +1 -0
- package/build/src/models/http-actions/steps/data/ReadDataStep.d.ts +67 -0
- package/build/src/models/http-actions/steps/data/ReadDataStep.js +77 -0
- package/build/src/models/http-actions/steps/data/ReadDataStep.js.map +1 -0
- package/build/src/models/http-actions/steps/data/ReadValueStep.d.ts +45 -0
- package/build/src/models/http-actions/steps/data/ReadValueStep.js +52 -0
- package/build/src/models/http-actions/steps/data/ReadValueStep.js.map +1 -0
- package/build/src/models/http-actions/steps/data/SetCookieStep.d.ts +100 -0
- package/build/src/models/http-actions/steps/data/SetCookieStep.js +138 -0
- package/build/src/models/http-actions/steps/data/SetCookieStep.js.map +1 -0
- package/build/src/models/http-actions/steps/data/SetDataStep.d.ts +77 -0
- package/build/src/models/http-actions/steps/data/SetDataStep.js +69 -0
- package/build/src/models/http-actions/steps/data/SetDataStep.js.map +1 -0
- package/build/src/models/http-actions/steps/data/SetVariableStep.d.ts +40 -0
- package/build/src/models/http-actions/steps/data/SetVariableStep.js +44 -0
- package/build/src/models/http-actions/steps/data/SetVariableStep.js.map +1 -0
- package/build/src/models/http-actions/steps/data/index.d.ts +7 -0
- package/build/src/models/http-actions/steps/data/index.js +8 -0
- package/build/src/models/http-actions/steps/data/index.js.map +1 -0
- package/build/src/models/http-actions/steps/transformation/AsLowerCaseStep.d.ts +18 -0
- package/build/src/models/http-actions/steps/transformation/AsLowerCaseStep.js +29 -0
- package/build/src/models/http-actions/steps/transformation/AsLowerCaseStep.js.map +1 -0
- package/build/src/models/http-actions/steps/transformation/AsNumberStep.d.ts +18 -0
- package/build/src/models/http-actions/steps/transformation/AsNumberStep.js +29 -0
- package/build/src/models/http-actions/steps/transformation/AsNumberStep.js.map +1 -0
- package/build/src/models/http-actions/steps/transformation/AsUpperCaseStep.d.ts +18 -0
- package/build/src/models/http-actions/steps/transformation/AsUpperCaseStep.js +29 -0
- package/build/src/models/http-actions/steps/transformation/AsUpperCaseStep.js.map +1 -0
- package/build/src/models/http-actions/steps/transformation/RoundStep.d.ts +43 -0
- package/build/src/models/http-actions/steps/transformation/RoundStep.js +52 -0
- package/build/src/models/http-actions/steps/transformation/RoundStep.js.map +1 -0
- package/build/src/models/http-actions/steps/transformation/SubstringStep.d.ts +38 -0
- package/build/src/models/http-actions/steps/transformation/SubstringStep.js +65 -0
- package/build/src/models/http-actions/steps/transformation/SubstringStep.js.map +1 -0
- package/build/src/models/http-actions/steps/transformation/TrimStep.d.ts +20 -0
- package/build/src/models/http-actions/steps/transformation/TrimStep.js +30 -0
- package/build/src/models/http-actions/steps/transformation/TrimStep.js.map +1 -0
- package/build/src/models/http-actions/steps/transformation/index.d.ts +6 -0
- package/build/src/models/http-actions/steps/transformation/index.js +7 -0
- package/build/src/models/http-actions/steps/transformation/index.js.map +1 -0
- package/build/src/proxy/RequestProxy.d.ts +7 -2
- package/build/src/proxy/RequestProxy.js +4 -1
- package/build/src/proxy/RequestProxy.js.map +1 -1
- package/build/src/runtime/http-runner/ConditionCheck.d.ts +10 -10
- package/build/src/runtime/http-runner/ConditionCheck.js.map +1 -1
- package/build/src/runtime/http-runner/HttpAssertionRunner.d.ts +75 -0
- package/build/src/runtime/http-runner/HttpAssertionRunner.js +538 -0
- package/build/src/runtime/http-runner/HttpAssertionRunner.js.map +1 -0
- package/build/src/runtime/http-runner/HttpFlowRunner.d.ts +11 -6
- package/build/src/runtime/http-runner/HttpFlowRunner.js +24 -15
- package/build/src/runtime/http-runner/HttpFlowRunner.js.map +1 -1
- package/build/src/runtime/http-runner/HttpRequestRunner.d.ts +14 -3
- package/build/src/runtime/http-runner/HttpRequestRunner.js +44 -0
- package/build/src/runtime/http-runner/HttpRequestRunner.js.map +1 -1
- package/build/src/runtime/node/ProjectParallelRunner.d.ts +1 -1
- package/build/src/runtime/node/ProjectParallelRunner.js +2 -2
- package/build/src/runtime/node/ProjectParallelRunner.js.map +1 -1
- package/build/src/runtime/node/ProjectRequestRunner.js +6 -2
- package/build/src/runtime/node/ProjectRequestRunner.js.map +1 -1
- package/package.json +3 -2
- package/src/data/{JmesparthReader.ts → JmespathReader.ts} +2 -2
- package/src/data/RequestDataExtractor.ts +5 -5
- package/src/data/XmlReader.ts +16 -2
- package/src/models/ClientCertificate.ts +9 -0
- package/src/models/Environment.ts +11 -7
- package/src/models/ErrorResponse.ts +1 -1
- package/src/models/HttpRequest.ts +4 -14
- package/src/models/HttpResponse.ts +5 -11
- package/src/models/ProjectRequest.ts +54 -0
- package/src/models/Request.ts +23 -4
- package/src/models/RequestAuthorization.ts +1 -1
- package/src/models/RequestLog.ts +21 -1
- package/src/models/SerializablePayload.ts +18 -1
- package/src/models/http-actions/AssertionError.ts +57 -0
- package/src/models/http-actions/HttpAssertion.ts +89 -0
- package/src/models/http-actions/HttpFlows.ts +115 -0
- package/src/models/http-actions/HttpStep.ts +50 -0
- package/src/models/http-actions/LegacyTranslator.ts +42 -30
- package/src/models/http-actions/steps/assertion/EqualAssertion.ts +130 -0
- package/src/models/http-actions/steps/assertion/GreaterThanAssertion.ts +87 -0
- package/src/models/http-actions/steps/assertion/IncludesAssertion.ts +68 -0
- package/src/models/http-actions/steps/assertion/IsEmptyAssertion.ts +41 -0
- package/src/models/http-actions/steps/assertion/IsNotEmptyAssertion.ts +41 -0
- package/src/models/http-actions/steps/assertion/LengthOfAssertion.ts +68 -0
- package/src/models/http-actions/steps/assertion/LessThanAssertion.ts +87 -0
- package/src/models/http-actions/steps/assertion/MatchesAssertion.ts +68 -0
- package/src/models/http-actions/steps/assertion/MatchesSchemaAssertion.ts +85 -0
- package/src/models/http-actions/steps/assertion/NotEqualAssertion.ts +130 -0
- package/src/models/http-actions/steps/assertion/NotIncludesAssertion.ts +68 -0
- package/src/models/http-actions/steps/assertion/NotOkAssertion.ts +41 -0
- package/src/models/http-actions/steps/assertion/NotToBeAssertion.ts +69 -0
- package/src/models/http-actions/steps/assertion/OkAssertion.ts +41 -0
- package/src/models/http-actions/steps/assertion/ToBeAssertion.ts +76 -0
- package/src/models/http-actions/steps/data/DeleteCookieStep.ts +102 -0
- package/src/models/http-actions/steps/data/ReadDataSourceStep.ts +103 -0
- package/src/models/http-actions/steps/data/ReadDataStep.ts +128 -0
- package/src/models/http-actions/steps/data/ReadValueStep.ts +88 -0
- package/src/models/http-actions/steps/data/SetCookieStep.ts +206 -0
- package/src/models/http-actions/steps/data/SetDataStep.ts +124 -0
- package/src/models/http-actions/steps/data/SetVariableStep.ts +82 -0
- package/src/models/http-actions/steps/transformation/AsLowerCaseStep.ts +41 -0
- package/src/models/http-actions/steps/transformation/AsNumberStep.ts +41 -0
- package/src/models/http-actions/steps/transformation/AsUpperCaseStep.ts +41 -0
- package/src/models/http-actions/steps/transformation/RoundStep.ts +86 -0
- package/src/models/http-actions/steps/transformation/SubstringStep.ts +93 -0
- package/src/models/http-actions/steps/transformation/TrimStep.ts +43 -0
- package/src/proxy/RequestProxy.ts +11 -3
- package/src/runtime/http-runner/ConditionCheck.ts +13 -14
- package/src/runtime/http-runner/HttpAssertionRunner.ts +540 -0
- package/src/runtime/http-runner/HttpFlowRunner.ts +33 -19
- package/src/runtime/http-runner/HttpRequestRunner.ts +53 -5
- package/src/runtime/node/ProjectParallelRunner.ts +4 -4
- package/src/runtime/node/ProjectRequestRunner.ts +6 -2
- package/build/src/data/JmesparthReader.js.map +0 -1
- package/build/src/models/http-actions/HttpActions.d.ts +0 -256
- package/build/src/models/http-actions/HttpActions.js +0 -46
- package/build/src/models/http-actions/HttpActions.js.map +0 -1
- package/src/models/http-actions/HttpActions.ts +0 -270
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { HttpStep } from "../../HttpStep.js";
|
|
2
|
+
export const SetDataStepKind = 'HttpAction#SetData';
|
|
3
|
+
export class SetDataStep extends HttpStep {
|
|
4
|
+
kind = SetDataStepKind;
|
|
5
|
+
/**
|
|
6
|
+
* The value to return to the next step.
|
|
7
|
+
* This is always a string. Use the `dataType` to determine the correct data type.
|
|
8
|
+
*/
|
|
9
|
+
value = '';
|
|
10
|
+
/**
|
|
11
|
+
* The data type of the value. This is a value prefixed with
|
|
12
|
+
* `http://www.w3.org/2001/XMLSchema#` or `http://a.ml/vocabularies/shapes#`.
|
|
13
|
+
*
|
|
14
|
+
* Examples:
|
|
15
|
+
*
|
|
16
|
+
* - `http://www.w3.org/2001/XMLSchema#boolean`
|
|
17
|
+
* - `http://www.w3.org/2001/XMLSchema#string`
|
|
18
|
+
* - `http://www.w3.org/2001/XMLSchema#number`
|
|
19
|
+
* - `http://www.w3.org/2001/XMLSchema#integer`
|
|
20
|
+
* - `http://www.w3.org/2001/XMLSchema#long`
|
|
21
|
+
* - `http://a.ml/vocabularies/shapes#number`
|
|
22
|
+
* - `http://a.ml/vocabularies/shapes#integer`
|
|
23
|
+
* - `http://a.ml/vocabularies/shapes#double`
|
|
24
|
+
* - ...
|
|
25
|
+
*
|
|
26
|
+
* @default `http://www.w3.org/2001/XMLSchema#string`
|
|
27
|
+
*/
|
|
28
|
+
dataType;
|
|
29
|
+
constructor(valueOrInit, dataType) {
|
|
30
|
+
super();
|
|
31
|
+
if (!valueOrInit) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (typeof valueOrInit === 'object') {
|
|
35
|
+
const typed = valueOrInit;
|
|
36
|
+
this.new(typed);
|
|
37
|
+
}
|
|
38
|
+
else if (typeof valueOrInit === 'string') {
|
|
39
|
+
this.new({
|
|
40
|
+
kind: SetDataStepKind,
|
|
41
|
+
value: valueOrInit,
|
|
42
|
+
dataType,
|
|
43
|
+
enabled: true,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
new(init) {
|
|
48
|
+
super.new(init);
|
|
49
|
+
this.kind = SetDataStepKind;
|
|
50
|
+
this.value = init.value;
|
|
51
|
+
this.dataType = init.dataType;
|
|
52
|
+
}
|
|
53
|
+
checkValidity() {
|
|
54
|
+
const { value } = this;
|
|
55
|
+
return !!value;
|
|
56
|
+
}
|
|
57
|
+
toJSON() {
|
|
58
|
+
const result = {
|
|
59
|
+
...super.toJSON(),
|
|
60
|
+
kind: SetDataStepKind,
|
|
61
|
+
value: this.value,
|
|
62
|
+
};
|
|
63
|
+
if (this.dataType) {
|
|
64
|
+
result.dataType = this.dataType;
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=SetDataStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetDataStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/data/SetDataStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAiCpD,MAAM,OAAO,WAAY,SAAQ,QAAQ;IAC9B,IAAI,GAAG,eAAe,CAAC;IAEhC;;;OAGG;IACH,KAAK,GAAG,EAAE,CAAC;IAEX;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAU;IAoBlB,YAAY,WAAmC,EAAE,QAAiB;QAChE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO;SACR;QACD,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YACnC,MAAM,KAAK,GAAG,WAA2B,CAAC;YAC1C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACjB;aAAM,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YAC1C,IAAI,CAAC,GAAG,CAAC;gBACP,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,WAAW;gBAClB,QAAQ;gBACR,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;SACJ;IACH,CAAC;IAEQ,GAAG,CAAC,IAAkB;QAC7B,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAChC,CAAC;IAED,aAAa;QACX,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QACvB,OAAO,CAAC,CAAC,KAAK,CAAC;IACjB,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAiB;YAC3B,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;QACF,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;SACjC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { HttpStep, IHttpStep } from "../../HttpStep.js";
|
|
2
|
+
export declare const SetVariableStepKind = "HttpAction#SetVariable";
|
|
3
|
+
/**
|
|
4
|
+
* A step that accepts an input from the previous step and sets a variable in the current environment
|
|
5
|
+
* with this value. If the value is `void`, `null`, or `undefined` then the variable is removed from the
|
|
6
|
+
* environment.
|
|
7
|
+
*
|
|
8
|
+
* All variables are strings.
|
|
9
|
+
*/
|
|
10
|
+
export interface ISetVariableStep extends IHttpStep {
|
|
11
|
+
kind: typeof SetVariableStepKind;
|
|
12
|
+
/**
|
|
13
|
+
* The name of the variable to set
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class SetVariableStep extends HttpStep {
|
|
18
|
+
kind: string;
|
|
19
|
+
/**
|
|
20
|
+
* The name of the variable to set
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* Creates the step from values.
|
|
25
|
+
* @param name The name of the variable to set
|
|
26
|
+
*/
|
|
27
|
+
constructor(name: string);
|
|
28
|
+
/**
|
|
29
|
+
* Creates the step from serialized schema.
|
|
30
|
+
* @param init The serialized step values.
|
|
31
|
+
*/
|
|
32
|
+
constructor(init: ISetVariableStep);
|
|
33
|
+
/**
|
|
34
|
+
* Creates an empty step.
|
|
35
|
+
*/
|
|
36
|
+
constructor();
|
|
37
|
+
new(init: ISetVariableStep): void;
|
|
38
|
+
checkValidity(): boolean;
|
|
39
|
+
toJSON(): ISetVariableStep;
|
|
40
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { HttpStep } from "../../HttpStep.js";
|
|
2
|
+
export const SetVariableStepKind = 'HttpAction#SetVariable';
|
|
3
|
+
export class SetVariableStep extends HttpStep {
|
|
4
|
+
kind = SetVariableStepKind;
|
|
5
|
+
/**
|
|
6
|
+
* The name of the variable to set
|
|
7
|
+
*/
|
|
8
|
+
name = '';
|
|
9
|
+
constructor(nameOrInit) {
|
|
10
|
+
super();
|
|
11
|
+
if (!nameOrInit) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (typeof nameOrInit === 'object') {
|
|
15
|
+
const typed = nameOrInit;
|
|
16
|
+
this.new(typed);
|
|
17
|
+
}
|
|
18
|
+
else if (typeof nameOrInit === 'string') {
|
|
19
|
+
this.new({
|
|
20
|
+
kind: SetVariableStepKind,
|
|
21
|
+
name: nameOrInit,
|
|
22
|
+
enabled: true,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
new(init) {
|
|
27
|
+
super.new(init);
|
|
28
|
+
this.kind = SetVariableStepKind;
|
|
29
|
+
this.name = init.name;
|
|
30
|
+
}
|
|
31
|
+
checkValidity() {
|
|
32
|
+
const { name } = this;
|
|
33
|
+
return !!name;
|
|
34
|
+
}
|
|
35
|
+
toJSON() {
|
|
36
|
+
const result = {
|
|
37
|
+
...super.toJSON(),
|
|
38
|
+
kind: SetVariableStepKind,
|
|
39
|
+
name: this.name,
|
|
40
|
+
};
|
|
41
|
+
return result;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=SetVariableStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetVariableStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/data/SetVariableStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAkB5D,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAClC,IAAI,GAAG,mBAAmB,CAAC;IAEpC;;OAEG;IACH,IAAI,GAAG,EAAE,CAAC;IAmBV,YAAY,UAAsC;QAChD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QACD,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;YAClC,MAAM,KAAK,GAAG,UAA8B,CAAC;YAC7C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACjB;aAAM,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;YACzC,IAAI,CAAC,GAAG,CAAC;gBACP,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;SACJ;IACH,CAAC;IAEQ,GAAG,CAAC,IAAsB;QACjC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IACxB,CAAC;IAED,aAAa;QACX,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,OAAO,CAAC,CAAC,IAAI,CAAC;IAChB,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAqB;YAC/B,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './DeleteCookieStep.js';
|
|
2
|
+
export * from './ReadDataSourceStep.js';
|
|
3
|
+
export * from './ReadDataStep.js';
|
|
4
|
+
export * from './ReadValueStep.js';
|
|
5
|
+
export * from './SetCookieStep.js';
|
|
6
|
+
export * from './SetDataStep.js';
|
|
7
|
+
export * from './SetVariableStep.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './DeleteCookieStep.js';
|
|
2
|
+
export * from './ReadDataSourceStep.js';
|
|
3
|
+
export * from './ReadDataStep.js';
|
|
4
|
+
export * from './ReadValueStep.js';
|
|
5
|
+
export * from './SetCookieStep.js';
|
|
6
|
+
export * from './SetDataStep.js';
|
|
7
|
+
export * from './SetVariableStep.js';
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpStep, IHttpStep } from "../../HttpStep.js";
|
|
2
|
+
export declare const AsLowerCaseStepKind = "HttpAction#AsLowerCase";
|
|
3
|
+
/**
|
|
4
|
+
* Reads the input and returns a lower case value of it.
|
|
5
|
+
*/
|
|
6
|
+
export interface IAsLowerCaseStep extends IHttpStep {
|
|
7
|
+
kind: typeof AsLowerCaseStepKind;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Reads the input and returns a lower case value of it.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AsLowerCaseStep extends HttpStep {
|
|
13
|
+
kind: string;
|
|
14
|
+
constructor(init?: IAsLowerCaseStep);
|
|
15
|
+
new(init: IAsLowerCaseStep): void;
|
|
16
|
+
checkValidity(): boolean;
|
|
17
|
+
toJSON(): IAsLowerCaseStep;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HttpStep } from "../../HttpStep.js";
|
|
2
|
+
export const AsLowerCaseStepKind = 'HttpAction#AsLowerCase';
|
|
3
|
+
/**
|
|
4
|
+
* Reads the input and returns a lower case value of it.
|
|
5
|
+
*/
|
|
6
|
+
export class AsLowerCaseStep extends HttpStep {
|
|
7
|
+
kind = AsLowerCaseStepKind;
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super();
|
|
10
|
+
if (typeof init === 'object') {
|
|
11
|
+
this.new(init);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
new(init) {
|
|
15
|
+
super.new(init);
|
|
16
|
+
this.kind = AsLowerCaseStepKind;
|
|
17
|
+
}
|
|
18
|
+
checkValidity() {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
toJSON() {
|
|
22
|
+
const result = {
|
|
23
|
+
...super.toJSON(),
|
|
24
|
+
kind: AsLowerCaseStepKind,
|
|
25
|
+
};
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=AsLowerCaseStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsLowerCaseStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/AsLowerCaseStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAS5D;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAClC,IAAI,GAAG,mBAAmB,CAAC;IAEpC,YAAY,IAAuB;QACjC,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAChB;IACH,CAAC;IAEQ,GAAG,CAAC,IAAsB;QACjC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAqB;YAC/B,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,mBAAmB;SAC1B,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpStep, IHttpStep } from "../../HttpStep.js";
|
|
2
|
+
export declare const AsNumberStepKind = "HttpAction#AsNumber";
|
|
3
|
+
/**
|
|
4
|
+
* Reads the input and returns is as a number.
|
|
5
|
+
*/
|
|
6
|
+
export interface IAsNumberStep extends IHttpStep {
|
|
7
|
+
kind: typeof AsNumberStepKind;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Reads the input and returns is as a number.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AsNumberStep extends HttpStep {
|
|
13
|
+
kind: string;
|
|
14
|
+
constructor(init?: IAsNumberStep);
|
|
15
|
+
new(init: IAsNumberStep): void;
|
|
16
|
+
checkValidity(): boolean;
|
|
17
|
+
toJSON(): IAsNumberStep;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HttpStep } from "../../HttpStep.js";
|
|
2
|
+
export const AsNumberStepKind = 'HttpAction#AsNumber';
|
|
3
|
+
/**
|
|
4
|
+
* Reads the input and returns is as a number.
|
|
5
|
+
*/
|
|
6
|
+
export class AsNumberStep extends HttpStep {
|
|
7
|
+
kind = AsNumberStepKind;
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super();
|
|
10
|
+
if (typeof init === 'object') {
|
|
11
|
+
this.new(init);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
new(init) {
|
|
15
|
+
super.new(init);
|
|
16
|
+
this.kind = AsNumberStepKind;
|
|
17
|
+
}
|
|
18
|
+
checkValidity() {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
toJSON() {
|
|
22
|
+
const result = {
|
|
23
|
+
...super.toJSON(),
|
|
24
|
+
kind: AsNumberStepKind,
|
|
25
|
+
};
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=AsNumberStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsNumberStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/AsNumberStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AAStD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,QAAQ;IAC/B,IAAI,GAAG,gBAAgB,CAAC;IAEjC,YAAY,IAAoB;QAC9B,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAChB;IACH,CAAC;IAEQ,GAAG,CAAC,IAAmB;QAC9B,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IAC/B,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAkB;YAC5B,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,gBAAgB;SACvB,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpStep, IHttpStep } from "../../HttpStep.js";
|
|
2
|
+
export declare const AsUpperCaseStepKind = "HttpAction#AsUpperCase";
|
|
3
|
+
/**
|
|
4
|
+
* Reads the input and returns an upper case value of it.
|
|
5
|
+
*/
|
|
6
|
+
export interface IAsUpperCaseStep extends IHttpStep {
|
|
7
|
+
kind: typeof AsUpperCaseStepKind;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Reads the input and returns an upper case value of it.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AsUpperCaseStep extends HttpStep {
|
|
13
|
+
kind: string;
|
|
14
|
+
constructor(init?: IAsUpperCaseStep);
|
|
15
|
+
new(init: IAsUpperCaseStep): void;
|
|
16
|
+
checkValidity(): boolean;
|
|
17
|
+
toJSON(): IAsUpperCaseStep;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HttpStep } from "../../HttpStep.js";
|
|
2
|
+
export const AsUpperCaseStepKind = 'HttpAction#AsUpperCase';
|
|
3
|
+
/**
|
|
4
|
+
* Reads the input and returns an upper case value of it.
|
|
5
|
+
*/
|
|
6
|
+
export class AsUpperCaseStep extends HttpStep {
|
|
7
|
+
kind = AsUpperCaseStepKind;
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super();
|
|
10
|
+
if (typeof init === 'object') {
|
|
11
|
+
this.new(init);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
new(init) {
|
|
15
|
+
super.new(init);
|
|
16
|
+
this.kind = AsUpperCaseStepKind;
|
|
17
|
+
}
|
|
18
|
+
checkValidity() {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
toJSON() {
|
|
22
|
+
const result = {
|
|
23
|
+
...super.toJSON(),
|
|
24
|
+
kind: AsUpperCaseStepKind,
|
|
25
|
+
};
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=AsUpperCaseStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsUpperCaseStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/AsUpperCaseStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAS5D;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAClC,IAAI,GAAG,mBAAmB,CAAC;IAEpC,YAAY,IAAuB;QACjC,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAChB;IACH,CAAC;IAEQ,GAAG,CAAC,IAAsB;QACjC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAqB;YAC/B,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,mBAAmB;SAC1B,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HttpStep, IHttpStep } from "../../HttpStep.js";
|
|
2
|
+
export declare const RoundStepKind = "HttpAction#Round";
|
|
3
|
+
/**
|
|
4
|
+
* Formats the input as a number using fixed-point notation.
|
|
5
|
+
*/
|
|
6
|
+
export interface IRoundStep extends IHttpStep {
|
|
7
|
+
kind: typeof RoundStepKind;
|
|
8
|
+
/**
|
|
9
|
+
* The number of digits to appear after the decimal point; should be a value between 0 and 100, inclusive.
|
|
10
|
+
* If this argument is omitted, it is treated as 0.
|
|
11
|
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed.
|
|
12
|
+
*/
|
|
13
|
+
precision?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Formats the input as a number using fixed-point notation.
|
|
17
|
+
*/
|
|
18
|
+
export declare class RoundStep extends HttpStep {
|
|
19
|
+
kind: string;
|
|
20
|
+
/**
|
|
21
|
+
* The number of digits to appear after the decimal point; should be a value between 0 and 100, inclusive.
|
|
22
|
+
* If this argument is omitted, it is treated as 0.
|
|
23
|
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed.
|
|
24
|
+
*/
|
|
25
|
+
precision?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Creates the step from values.
|
|
28
|
+
* @param precision The name of the variable to set
|
|
29
|
+
*/
|
|
30
|
+
constructor(precision: number);
|
|
31
|
+
/**
|
|
32
|
+
* Creates the step from serialized schema.
|
|
33
|
+
* @param init The serialized step values.
|
|
34
|
+
*/
|
|
35
|
+
constructor(init: IRoundStep);
|
|
36
|
+
/**
|
|
37
|
+
* Creates an empty step.
|
|
38
|
+
*/
|
|
39
|
+
constructor();
|
|
40
|
+
new(init: IRoundStep): void;
|
|
41
|
+
checkValidity(): boolean;
|
|
42
|
+
toJSON(): IRoundStep;
|
|
43
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { HttpStep } from "../../HttpStep.js";
|
|
2
|
+
export const RoundStepKind = 'HttpAction#Round';
|
|
3
|
+
/**
|
|
4
|
+
* Formats the input as a number using fixed-point notation.
|
|
5
|
+
*/
|
|
6
|
+
export class RoundStep extends HttpStep {
|
|
7
|
+
kind = RoundStepKind;
|
|
8
|
+
/**
|
|
9
|
+
* The number of digits to appear after the decimal point; should be a value between 0 and 100, inclusive.
|
|
10
|
+
* If this argument is omitted, it is treated as 0.
|
|
11
|
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed.
|
|
12
|
+
*/
|
|
13
|
+
precision;
|
|
14
|
+
constructor(precisionOrInit) {
|
|
15
|
+
super();
|
|
16
|
+
if (typeof precisionOrInit === 'object') {
|
|
17
|
+
const typed = precisionOrInit;
|
|
18
|
+
this.new(typed);
|
|
19
|
+
}
|
|
20
|
+
else if (typeof precisionOrInit === 'number') {
|
|
21
|
+
this.new({
|
|
22
|
+
kind: RoundStepKind,
|
|
23
|
+
precision: precisionOrInit,
|
|
24
|
+
enabled: true,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
new(init) {
|
|
29
|
+
super.new(init);
|
|
30
|
+
this.kind = RoundStepKind;
|
|
31
|
+
if (typeof init.precision === 'number') {
|
|
32
|
+
this.precision = init.precision;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this.precision = undefined;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
checkValidity() {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
toJSON() {
|
|
42
|
+
const result = {
|
|
43
|
+
...super.toJSON(),
|
|
44
|
+
kind: RoundStepKind,
|
|
45
|
+
};
|
|
46
|
+
if (typeof this.precision === 'number') {
|
|
47
|
+
result.precision = this.precision;
|
|
48
|
+
}
|
|
49
|
+
return result;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=RoundStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoundStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/RoundStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC;AAehD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,QAAQ;IAC5B,IAAI,GAAG,aAAa,CAAC;IAE9B;;;;OAIG;IACH,SAAS,CAAU;IAmBnB,YAAY,eAAqC;QAC/C,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE;YACvC,MAAM,KAAK,GAAG,eAA6B,CAAC;YAC5C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACjB;aAAM,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE;YAC9C,IAAI,CAAC,GAAG,CAAC;gBACP,IAAI,EAAE,aAAa;gBACnB,SAAS,EAAE,eAAe;gBAC1B,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;SACJ;IACH,CAAC;IAEQ,GAAG,CAAC,IAAgB;QAC3B,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;QAC1B,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE;YACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;SACjC;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;SAC5B;IACH,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAe;YACzB,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,aAAa;SACpB,CAAC;QACF,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE;YACtC,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;SACnC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HttpStep, IHttpStep } from "../../HttpStep.js";
|
|
2
|
+
export declare const SubstringStepKind = "HttpAction#Substring";
|
|
3
|
+
/**
|
|
4
|
+
* Returns the part of the string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.
|
|
5
|
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
|
|
6
|
+
*/
|
|
7
|
+
export interface ISubstringStep extends IHttpStep {
|
|
8
|
+
kind: typeof SubstringStepKind;
|
|
9
|
+
/**
|
|
10
|
+
* The index of the first character to include in the returned substring.
|
|
11
|
+
*/
|
|
12
|
+
start?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The index of the first character to exclude from the returned substring.
|
|
15
|
+
*/
|
|
16
|
+
end?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns the part of the string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.
|
|
20
|
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
|
|
21
|
+
*/
|
|
22
|
+
export declare class SubstringStep extends HttpStep {
|
|
23
|
+
kind: string;
|
|
24
|
+
/**
|
|
25
|
+
* The index of the first character to include in the returned substring.
|
|
26
|
+
*/
|
|
27
|
+
start?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The index of the first character to exclude from the returned substring.
|
|
30
|
+
*/
|
|
31
|
+
end?: number;
|
|
32
|
+
constructor(start: number, end?: number);
|
|
33
|
+
constructor(init: ISubstringStep);
|
|
34
|
+
constructor();
|
|
35
|
+
new(init: ISubstringStep): void;
|
|
36
|
+
checkValidity(): boolean;
|
|
37
|
+
toJSON(): ISubstringStep;
|
|
38
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { HttpStep } from "../../HttpStep.js";
|
|
2
|
+
export const SubstringStepKind = 'HttpAction#Substring';
|
|
3
|
+
/**
|
|
4
|
+
* Returns the part of the string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.
|
|
5
|
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
|
|
6
|
+
*/
|
|
7
|
+
export class SubstringStep extends HttpStep {
|
|
8
|
+
kind = SubstringStepKind;
|
|
9
|
+
/**
|
|
10
|
+
* The index of the first character to include in the returned substring.
|
|
11
|
+
*/
|
|
12
|
+
start;
|
|
13
|
+
/**
|
|
14
|
+
* The index of the first character to exclude from the returned substring.
|
|
15
|
+
*/
|
|
16
|
+
end;
|
|
17
|
+
constructor(startOrInit, end) {
|
|
18
|
+
super();
|
|
19
|
+
if (typeof startOrInit === 'object') {
|
|
20
|
+
const typed = startOrInit;
|
|
21
|
+
this.new(typed);
|
|
22
|
+
}
|
|
23
|
+
else if (typeof startOrInit === 'number') {
|
|
24
|
+
this.new({
|
|
25
|
+
kind: SubstringStepKind,
|
|
26
|
+
start: startOrInit,
|
|
27
|
+
end,
|
|
28
|
+
enabled: true,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
new(init) {
|
|
33
|
+
super.new(init);
|
|
34
|
+
this.kind = SubstringStepKind;
|
|
35
|
+
if (typeof init.start === 'number') {
|
|
36
|
+
this.start = init.start;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
this.start = undefined;
|
|
40
|
+
}
|
|
41
|
+
if (typeof init.end === 'number') {
|
|
42
|
+
this.end = init.end;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
this.end = undefined;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
checkValidity() {
|
|
49
|
+
return typeof this.start === 'number';
|
|
50
|
+
}
|
|
51
|
+
toJSON() {
|
|
52
|
+
const result = {
|
|
53
|
+
...super.toJSON(),
|
|
54
|
+
kind: SubstringStepKind,
|
|
55
|
+
};
|
|
56
|
+
if (typeof this.start === 'number') {
|
|
57
|
+
result.start = this.start;
|
|
58
|
+
}
|
|
59
|
+
if (typeof this.end === 'number') {
|
|
60
|
+
result.end = this.end;
|
|
61
|
+
}
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=SubstringStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubstringStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/SubstringStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;AAoBxD;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,QAAQ;IAChC,IAAI,GAAG,iBAAiB,CAAC;IAElC;;OAEG;IACH,KAAK,CAAU;IAEf;;OAEG;IACH,GAAG,CAAU;IAQb,YAAY,WAAqC,EAAE,GAAY;QAC7D,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YACnC,MAAM,KAAK,GAAG,WAA6B,CAAC;YAC5C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACjB;aAAM,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YAC1C,IAAI,CAAC,GAAG,CAAC;gBACP,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,WAAW;gBAClB,GAAG;gBACH,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;SACJ;IACH,CAAC;IAEQ,GAAG,CAAC,IAAoB;QAC/B,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAC9B,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;YAClC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;SACzB;aAAM;YACL,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;SACxB;QACD,IAAI,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,EAAE;YAChC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;SACrB;aAAM;YACL,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC;SACtB;IACH,CAAC;IAED,aAAa;QACX,OAAO,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC;IACxC,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAmB;YAC7B,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,iBAAiB;SACxB,CAAC;QACF,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;YAClC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;SAC3B;QACD,IAAI,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,EAAE;YAChC,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;SACvB;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpStep, IHttpStep } from "../../HttpStep.js";
|
|
2
|
+
export declare const TrimStepKind = "HttpAction#Trim";
|
|
3
|
+
/**
|
|
4
|
+
* Reads the input and trims it.
|
|
5
|
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim.
|
|
6
|
+
*/
|
|
7
|
+
export interface ITrimStep extends IHttpStep {
|
|
8
|
+
kind: typeof TrimStepKind;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Reads the input and trims it.
|
|
12
|
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim.
|
|
13
|
+
*/
|
|
14
|
+
export declare class TrimStep extends HttpStep {
|
|
15
|
+
kind: string;
|
|
16
|
+
constructor(init?: ITrimStep);
|
|
17
|
+
new(init: ITrimStep): void;
|
|
18
|
+
checkValidity(): boolean;
|
|
19
|
+
toJSON(): ITrimStep;
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { HttpStep } from "../../HttpStep.js";
|
|
2
|
+
export const TrimStepKind = 'HttpAction#Trim';
|
|
3
|
+
/**
|
|
4
|
+
* Reads the input and trims it.
|
|
5
|
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim.
|
|
6
|
+
*/
|
|
7
|
+
export class TrimStep extends HttpStep {
|
|
8
|
+
kind = TrimStepKind;
|
|
9
|
+
constructor(init) {
|
|
10
|
+
super();
|
|
11
|
+
if (typeof init === 'object') {
|
|
12
|
+
this.new(init);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
new(init) {
|
|
16
|
+
super.new(init);
|
|
17
|
+
this.kind = TrimStepKind;
|
|
18
|
+
}
|
|
19
|
+
checkValidity() {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
toJSON() {
|
|
23
|
+
const result = {
|
|
24
|
+
...super.toJSON(),
|
|
25
|
+
kind: TrimStepKind,
|
|
26
|
+
};
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=TrimStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrimStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/TrimStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC;AAU9C;;;GAGG;AACH,MAAM,OAAO,QAAS,SAAQ,QAAQ;IAC3B,IAAI,GAAG,YAAY,CAAC;IAE7B,YAAY,IAAgB;QAC1B,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAChB;IACH,CAAC;IAEQ,GAAG,CAAC,IAAe;QAC1B,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC3B,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAc;YACxB,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,YAAY;SACnB,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|