@versori/run 0.5.0 → 0.5.2
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/esm/mod.d.ts +1 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -1
- package/esm/src/connection/VanillaConnectionFactory.d.ts +16 -0
- package/esm/src/connection/VanillaConnectionFactory.d.ts.map +1 -0
- package/esm/src/connection/VanillaConnectionFactory.js +35 -0
- package/esm/src/context/ActivationImpl.d.ts +2 -1
- package/esm/src/context/ActivationImpl.d.ts.map +1 -1
- package/esm/src/context/Context.d.ts +2 -1
- package/esm/src/context/Context.d.ts.map +1 -1
- package/esm/src/context/ContextProvider.d.ts +8 -8
- package/esm/src/context/ContextProvider.d.ts.map +1 -1
- package/esm/src/context/ContextProvider.js +1 -1
- package/esm/src/context/VanillaContext.d.ts +63 -0
- package/esm/src/context/VanillaContext.d.ts.map +1 -0
- package/esm/src/context/VanillaContext.js +313 -0
- package/esm/src/context/WorkflowClient.d.ts +2 -2
- package/esm/src/context/WorkflowClient.d.ts.map +1 -1
- package/esm/src/dsl/http/mod.d.ts +1 -1
- package/esm/src/dsl/http/mod.d.ts.map +1 -1
- package/esm/src/dsl/http/types.d.ts +20 -134
- package/esm/src/dsl/http/types.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/configloader.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/configloader.js +3 -0
- package/esm/src/dsl/http/versori/webhookmiddleware.d.ts +1 -1
- package/esm/src/dsl/http/versori/webhookmiddleware.d.ts.map +1 -1
- package/esm/src/dsl/tasks/HttpTask.d.ts +4 -4
- package/esm/src/dsl/tasks/HttpTask.d.ts.map +1 -1
- package/esm/src/dsl/triggers/ScheduleTrigger.d.ts +2 -2
- package/esm/src/dsl/triggers/ScheduleTrigger.d.ts.map +1 -1
- package/esm/src/interpreter/durable/DurableInterpreter.d.ts +1 -0
- package/esm/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/durable/DurableInterpreter.js +24 -7
- package/esm/src/interpreter/durable/Queue.d.ts +1 -1
- package/esm/src/interpreter/durable/Queue.js +1 -1
- package/esm/src/interpreter/durable/compilers/durableworkflow.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/durableworkflow.js +2 -1
- package/esm/src/interpreter/durable/compilers/fn.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/fn.js +7 -4
- package/esm/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/webhook.js +7 -6
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts +3 -2
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/memory/MemoryInterpreter.js +24 -7
- package/esm/src/interpreter/memory/compilers/fn.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/fn.js +7 -4
- package/esm/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/webhook.js +7 -6
- package/esm/src/interpreter/mod.d.ts +1 -0
- package/esm/src/interpreter/mod.d.ts.map +1 -1
- package/esm/src/interpreter/mod.js +1 -0
- package/esm/src/interpreter/vanilla/ExecutionError.d.ts +25 -0
- package/esm/src/interpreter/vanilla/ExecutionError.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/ExecutionError.js +46 -0
- package/esm/src/interpreter/vanilla/ObservableCompiler.d.ts +38 -0
- package/esm/src/interpreter/vanilla/ObservableCompiler.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/ObservableCompiler.js +95 -0
- package/esm/src/interpreter/vanilla/VanillaInterpreter.d.ts +96 -0
- package/esm/src/interpreter/vanilla/VanillaInterpreter.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/VanillaInterpreter.js +435 -0
- package/esm/src/interpreter/vanilla/compilers/background.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/background.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/background.js +34 -0
- package/esm/src/interpreter/vanilla/compilers/catch.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/catch.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/catch.js +75 -0
- package/esm/src/interpreter/vanilla/compilers/chain.d.ts +3 -0
- package/esm/src/interpreter/vanilla/compilers/chain.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/chain.js +21 -0
- package/esm/src/interpreter/vanilla/compilers/durableworkflow.d.ts +8 -0
- package/esm/src/interpreter/vanilla/compilers/durableworkflow.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/durableworkflow.js +91 -0
- package/esm/src/interpreter/vanilla/compilers/fn.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/fn.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/fn.js +37 -0
- package/esm/src/interpreter/vanilla/compilers/http.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/http.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/http.js +54 -0
- package/esm/src/interpreter/vanilla/compilers/mod.d.ts +2 -0
- package/esm/src/interpreter/vanilla/compilers/mod.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/mod.js +13 -0
- package/esm/src/interpreter/vanilla/compilers/parallel.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/parallel.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/parallel.js +31 -0
- package/esm/src/interpreter/vanilla/compilers/schedule.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/schedule.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/schedule.js +76 -0
- package/esm/src/interpreter/vanilla/compilers/serial.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/serial.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/serial.js +28 -0
- package/esm/src/interpreter/vanilla/compilers/types.d.ts +15 -0
- package/esm/src/interpreter/vanilla/compilers/types.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/types.js +13 -0
- package/esm/src/interpreter/vanilla/compilers/unpack.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/unpack.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/unpack.js +34 -0
- package/esm/src/interpreter/vanilla/compilers/webhook.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/webhook.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/webhook.js +261 -0
- package/esm/src/interpreter/vanilla/mod.d.ts +3 -0
- package/esm/src/interpreter/vanilla/mod.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/mod.js +14 -0
- package/esm/src/issues/Issues.d.ts.map +1 -1
- package/esm/src/observability/logging/ConsoleLogger.d.ts +1 -1
- package/esm/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
- package/esm/src/observability/logging/ConsoleLogger.js +11 -1
- package/esm/src/services/platform/generated/core/pathSerializer.gen.d.ts +2 -2
- package/package.json +1 -1
- package/script/mod.d.ts +1 -1
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +2 -1
- package/script/src/connection/VanillaConnectionFactory.d.ts +16 -0
- package/script/src/connection/VanillaConnectionFactory.d.ts.map +1 -0
- package/script/src/connection/VanillaConnectionFactory.js +40 -0
- package/script/src/context/ActivationImpl.d.ts +2 -1
- package/script/src/context/ActivationImpl.d.ts.map +1 -1
- package/script/src/context/Context.d.ts +2 -1
- package/script/src/context/Context.d.ts.map +1 -1
- package/script/src/context/ContextProvider.d.ts +8 -8
- package/script/src/context/ContextProvider.d.ts.map +1 -1
- package/script/src/context/ContextProvider.js +1 -1
- package/script/src/context/VanillaContext.d.ts +63 -0
- package/script/src/context/VanillaContext.d.ts.map +1 -0
- package/script/src/context/VanillaContext.js +319 -0
- package/script/src/context/WorkflowClient.d.ts +2 -2
- package/script/src/context/WorkflowClient.d.ts.map +1 -1
- package/script/src/dsl/http/mod.d.ts +1 -1
- package/script/src/dsl/http/mod.d.ts.map +1 -1
- package/script/src/dsl/http/types.d.ts +20 -134
- package/script/src/dsl/http/types.d.ts.map +1 -1
- package/script/src/dsl/http/versori/configloader.d.ts.map +1 -1
- package/script/src/dsl/http/versori/configloader.js +3 -0
- package/script/src/dsl/http/versori/webhookmiddleware.d.ts +1 -1
- package/script/src/dsl/http/versori/webhookmiddleware.d.ts.map +1 -1
- package/script/src/dsl/tasks/HttpTask.d.ts +4 -4
- package/script/src/dsl/tasks/HttpTask.d.ts.map +1 -1
- package/script/src/dsl/triggers/ScheduleTrigger.d.ts +2 -2
- package/script/src/dsl/triggers/ScheduleTrigger.d.ts.map +1 -1
- package/script/src/interpreter/durable/DurableInterpreter.d.ts +1 -0
- package/script/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/durable/DurableInterpreter.js +24 -7
- package/script/src/interpreter/durable/Queue.d.ts +1 -1
- package/script/src/interpreter/durable/Queue.js +1 -1
- package/script/src/interpreter/durable/compilers/durableworkflow.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/durableworkflow.js +2 -1
- package/script/src/interpreter/durable/compilers/fn.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/fn.js +7 -4
- package/script/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/webhook.js +7 -6
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts +3 -2
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/memory/MemoryInterpreter.js +24 -7
- package/script/src/interpreter/memory/compilers/fn.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/fn.js +7 -4
- package/script/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/webhook.js +7 -6
- package/script/src/interpreter/mod.d.ts +1 -0
- package/script/src/interpreter/mod.d.ts.map +1 -1
- package/script/src/interpreter/mod.js +2 -1
- package/script/src/interpreter/vanilla/ExecutionError.d.ts +25 -0
- package/script/src/interpreter/vanilla/ExecutionError.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/ExecutionError.js +50 -0
- package/script/src/interpreter/vanilla/ObservableCompiler.d.ts +38 -0
- package/script/src/interpreter/vanilla/ObservableCompiler.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/ObservableCompiler.js +99 -0
- package/script/src/interpreter/vanilla/VanillaInterpreter.d.ts +96 -0
- package/script/src/interpreter/vanilla/VanillaInterpreter.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/VanillaInterpreter.js +442 -0
- package/script/src/interpreter/vanilla/compilers/background.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/background.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/background.js +37 -0
- package/script/src/interpreter/vanilla/compilers/catch.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/catch.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/catch.js +78 -0
- package/script/src/interpreter/vanilla/compilers/chain.d.ts +3 -0
- package/script/src/interpreter/vanilla/compilers/chain.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/chain.js +24 -0
- package/script/src/interpreter/vanilla/compilers/durableworkflow.d.ts +8 -0
- package/script/src/interpreter/vanilla/compilers/durableworkflow.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/durableworkflow.js +95 -0
- package/script/src/interpreter/vanilla/compilers/fn.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/fn.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/fn.js +40 -0
- package/script/src/interpreter/vanilla/compilers/http.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/http.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/http.js +57 -0
- package/script/src/interpreter/vanilla/compilers/mod.d.ts +2 -0
- package/script/src/interpreter/vanilla/compilers/mod.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/mod.js +14 -0
- package/script/src/interpreter/vanilla/compilers/parallel.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/parallel.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/parallel.js +34 -0
- package/script/src/interpreter/vanilla/compilers/schedule.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/schedule.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/schedule.js +79 -0
- package/script/src/interpreter/vanilla/compilers/serial.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/serial.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/serial.js +31 -0
- package/script/src/interpreter/vanilla/compilers/types.d.ts +15 -0
- package/script/src/interpreter/vanilla/compilers/types.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/types.js +14 -0
- package/script/src/interpreter/vanilla/compilers/unpack.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/unpack.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/unpack.js +37 -0
- package/script/src/interpreter/vanilla/compilers/webhook.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/webhook.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/webhook.js +267 -0
- package/script/src/interpreter/vanilla/mod.d.ts +3 -0
- package/script/src/interpreter/vanilla/mod.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/mod.js +30 -0
- package/script/src/issues/Issues.d.ts.map +1 -1
- package/script/src/observability/logging/ConsoleLogger.d.ts +1 -1
- package/script/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
- package/script/src/observability/logging/ConsoleLogger.js +11 -1
- package/script/src/services/platform/generated/core/pathSerializer.gen.d.ts +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VanillaContext.d.ts","sourceRoot":"","sources":["../../../src/src/context/VanillaContext.ts"],"names":[],"mappings":"AAcA,OAAO,EACH,UAAU,EAC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+
* Copyright (c) 2025 Versori Group Inc
|
|
4
|
+
*
|
|
5
|
+
* Use of this software is governed by the Business Source License 1.1
|
|
6
|
+
* included in the LICENSE file at the root of this repository.
|
|
7
|
+
*
|
|
8
|
+
* Change Date: 2029-01-01
|
|
9
|
+
* Change License: Apache License, Version 2.0
|
|
10
|
+
*
|
|
11
|
+
* As of the Change Date, in accordance with the Business Source License,
|
|
12
|
+
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
|
+
*/
|
|
14
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
15
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
16
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
17
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
18
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
19
|
+
};
|
|
20
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
21
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
22
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
23
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
24
|
+
};
|
|
25
|
+
var _VanillaContext_activation, _VanillaContext_issues;
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.VanillaContextProvider = exports.VanillaContext = exports.VanillaActivation = void 0;
|
|
28
|
+
const ulid_js_1 = require("../../deps/jsr.io/@std/ulid/1.0.0/ulid.js");
|
|
29
|
+
const AsyncWorkflow_js_1 = require("./AsyncWorkflow.js");
|
|
30
|
+
const WorkflowClient_js_1 = require("./WorkflowClient.js");
|
|
31
|
+
class VanillaActivation {
|
|
32
|
+
constructor(activation, organisationId, environmentId, log) {
|
|
33
|
+
Object.defineProperty(this, "activation", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
value: activation
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(this, "organisationId", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true,
|
|
42
|
+
writable: true,
|
|
43
|
+
value: organisationId
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(this, "environmentId", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
configurable: true,
|
|
48
|
+
writable: true,
|
|
49
|
+
value: environmentId
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(this, "log", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
configurable: true,
|
|
54
|
+
writable: true,
|
|
55
|
+
value: log
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
get id() {
|
|
59
|
+
return this.activation.id;
|
|
60
|
+
}
|
|
61
|
+
get user() {
|
|
62
|
+
return this.activation.user;
|
|
63
|
+
}
|
|
64
|
+
get environment() {
|
|
65
|
+
return this.activation.environment;
|
|
66
|
+
}
|
|
67
|
+
get connections() {
|
|
68
|
+
return this.activation.connections;
|
|
69
|
+
}
|
|
70
|
+
get dynamicVariables() {
|
|
71
|
+
return this.activation.dynamicVariables;
|
|
72
|
+
}
|
|
73
|
+
getVariable(name) {
|
|
74
|
+
if (!this.activation.dynamicVariables) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
return this.activation.dynamicVariables[name];
|
|
78
|
+
}
|
|
79
|
+
setVariable(_, __) {
|
|
80
|
+
return Promise.resolve();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.VanillaActivation = VanillaActivation;
|
|
84
|
+
class VanillaContext {
|
|
85
|
+
constructor(log, kvp, executionId, startTime, data, activation, issues, queue, options = {}) {
|
|
86
|
+
Object.defineProperty(this, "log", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
configurable: true,
|
|
89
|
+
writable: true,
|
|
90
|
+
value: void 0
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(this, "executionId", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
configurable: true,
|
|
95
|
+
writable: true,
|
|
96
|
+
value: void 0
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(this, "startTime", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
configurable: true,
|
|
101
|
+
writable: true,
|
|
102
|
+
value: void 0
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(this, "data", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
configurable: true,
|
|
107
|
+
writable: true,
|
|
108
|
+
value: void 0
|
|
109
|
+
});
|
|
110
|
+
_VanillaContext_activation.set(this, void 0);
|
|
111
|
+
Object.defineProperty(this, "idx", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
configurable: true,
|
|
114
|
+
writable: true,
|
|
115
|
+
value: void 0
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(this, "kvp", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
configurable: true,
|
|
120
|
+
writable: true,
|
|
121
|
+
value: void 0
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(this, "queue", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
configurable: true,
|
|
126
|
+
writable: true,
|
|
127
|
+
value: void 0
|
|
128
|
+
}); // Optional, can be used for durable workflows
|
|
129
|
+
_VanillaContext_issues.set(this, void 0);
|
|
130
|
+
Object.defineProperty(this, "options", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
configurable: true,
|
|
133
|
+
writable: true,
|
|
134
|
+
value: void 0
|
|
135
|
+
});
|
|
136
|
+
this.log = log;
|
|
137
|
+
this.executionId = executionId;
|
|
138
|
+
this.startTime = startTime;
|
|
139
|
+
this.data = data;
|
|
140
|
+
__classPrivateFieldSet(this, _VanillaContext_activation, activation, "f");
|
|
141
|
+
this.idx = void 0;
|
|
142
|
+
__classPrivateFieldSet(this, _VanillaContext_issues, issues, "f");
|
|
143
|
+
this.kvp = kvp;
|
|
144
|
+
this.options = options;
|
|
145
|
+
this.queue = queue;
|
|
146
|
+
// all methods on ContextImpl which are exposed via the Context interface need to be bound
|
|
147
|
+
// so that destructuring the context object doesn't break the binding of the methods to the
|
|
148
|
+
// correct instance.
|
|
149
|
+
this.openKv = this.openKv.bind(this);
|
|
150
|
+
this.credentials = this.credentials.bind(this);
|
|
151
|
+
this.start = this.start.bind(this);
|
|
152
|
+
this.request = this.request.bind(this);
|
|
153
|
+
this.createIssue = this.createIssue.bind(this);
|
|
154
|
+
this.destroy = this.destroy.bind(this);
|
|
155
|
+
this.workflowClient = this.workflowClient.bind(this);
|
|
156
|
+
}
|
|
157
|
+
get activation() {
|
|
158
|
+
return __classPrivateFieldGet(this, _VanillaContext_activation, "f");
|
|
159
|
+
}
|
|
160
|
+
get workflow() {
|
|
161
|
+
return this.options.workflow;
|
|
162
|
+
}
|
|
163
|
+
setIndex(idx) {
|
|
164
|
+
const next = new VanillaContext(this.log, this.kvp, this.executionId, this.startTime, this.data, __classPrivateFieldGet(this, _VanillaContext_activation, "f"), __classPrivateFieldGet(this, _VanillaContext_issues, "f"), this.queue, this.options);
|
|
165
|
+
next.idx = idx;
|
|
166
|
+
return next;
|
|
167
|
+
}
|
|
168
|
+
withData(data) {
|
|
169
|
+
return new VanillaContext(this.log, this.kvp, this.executionId, this.startTime, data, __classPrivateFieldGet(this, _VanillaContext_activation, "f"), __classPrivateFieldGet(this, _VanillaContext_issues, "f"), this.queue, this.options);
|
|
170
|
+
}
|
|
171
|
+
openKv(scope = ':project:') {
|
|
172
|
+
if (scope === ':execution:') {
|
|
173
|
+
return this.kvp.kv({
|
|
174
|
+
scope,
|
|
175
|
+
executionId: this.executionId,
|
|
176
|
+
activationId: this.activation?.id,
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
return this.kvp.kv({
|
|
180
|
+
scope,
|
|
181
|
+
activationId: this.activation?.id,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
request() {
|
|
185
|
+
return this.options.request;
|
|
186
|
+
}
|
|
187
|
+
workflowClient() {
|
|
188
|
+
if (!this.queue) {
|
|
189
|
+
throw new Error('Queue is not available for this context, cannot start workflow');
|
|
190
|
+
}
|
|
191
|
+
return new WorkflowClient_js_1.WorkflowImpl(this.queue, this.executionId, this.activation);
|
|
192
|
+
}
|
|
193
|
+
async start(group, opts) {
|
|
194
|
+
// this makes a post request to the endpoint sending a message and schedule the workflow to run
|
|
195
|
+
if (!this.queue) {
|
|
196
|
+
throw new Error('Queue is not available for this context, cannot start workflow');
|
|
197
|
+
}
|
|
198
|
+
let payload;
|
|
199
|
+
if (opts.data) {
|
|
200
|
+
payload = btoa(JSON.stringify(opts.data));
|
|
201
|
+
}
|
|
202
|
+
else if (opts.dataRaw) {
|
|
203
|
+
payload = opts.dataRaw; // Assume this is already base64 encoded
|
|
204
|
+
}
|
|
205
|
+
const resp = await this.queue.submit({
|
|
206
|
+
workflows: [
|
|
207
|
+
{
|
|
208
|
+
group,
|
|
209
|
+
metadata: {
|
|
210
|
+
executionId: this.executionId,
|
|
211
|
+
activationId: this.activation?.id,
|
|
212
|
+
userId: this.activation?.user?.externalId,
|
|
213
|
+
},
|
|
214
|
+
payload: payload ?? btoa('{}'),
|
|
215
|
+
maxAttempts: opts.maxAttempts,
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
});
|
|
219
|
+
return new AsyncWorkflow_js_1.AsyncWorkflow(this.queue, resp.workflows[0].id ?? 'unknown');
|
|
220
|
+
}
|
|
221
|
+
createIssue(issue, options) {
|
|
222
|
+
return __classPrivateFieldGet(this, _VanillaContext_issues, "f").createIssue({
|
|
223
|
+
reason: 'manual',
|
|
224
|
+
...issue,
|
|
225
|
+
}, { deduplicate: true, ...options });
|
|
226
|
+
}
|
|
227
|
+
credentials() {
|
|
228
|
+
throw new Error('Credentials are not available in VanillaContext');
|
|
229
|
+
}
|
|
230
|
+
destroy(scope) {
|
|
231
|
+
if (scope === ':execution:') {
|
|
232
|
+
return this.kvp.destroy({
|
|
233
|
+
scope,
|
|
234
|
+
executionId: this.executionId,
|
|
235
|
+
activationId: this.activation?.id,
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
return this.kvp.destroy({
|
|
239
|
+
scope,
|
|
240
|
+
activationId: this.activation?.id,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
[(_VanillaContext_activation = new WeakMap(), _VanillaContext_issues = new WeakMap(), Symbol.toPrimitive)]() {
|
|
244
|
+
return {
|
|
245
|
+
startTime: this.startTime,
|
|
246
|
+
executionId: this.executionId,
|
|
247
|
+
activation: this.activation,
|
|
248
|
+
data: this.data,
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
exports.VanillaContext = VanillaContext;
|
|
253
|
+
class VanillaContextProvider {
|
|
254
|
+
constructor(log, kvp, organisationId, environmentId, issues, queue = undefined) {
|
|
255
|
+
Object.defineProperty(this, "organisationId", {
|
|
256
|
+
enumerable: true,
|
|
257
|
+
configurable: true,
|
|
258
|
+
writable: true,
|
|
259
|
+
value: organisationId
|
|
260
|
+
});
|
|
261
|
+
Object.defineProperty(this, "environmentId", {
|
|
262
|
+
enumerable: true,
|
|
263
|
+
configurable: true,
|
|
264
|
+
writable: true,
|
|
265
|
+
value: environmentId
|
|
266
|
+
});
|
|
267
|
+
Object.defineProperty(this, "log", {
|
|
268
|
+
enumerable: true,
|
|
269
|
+
configurable: true,
|
|
270
|
+
writable: true,
|
|
271
|
+
value: void 0
|
|
272
|
+
});
|
|
273
|
+
Object.defineProperty(this, "kvp", {
|
|
274
|
+
enumerable: true,
|
|
275
|
+
configurable: true,
|
|
276
|
+
writable: true,
|
|
277
|
+
value: void 0
|
|
278
|
+
});
|
|
279
|
+
Object.defineProperty(this, "issues", {
|
|
280
|
+
enumerable: true,
|
|
281
|
+
configurable: true,
|
|
282
|
+
writable: true,
|
|
283
|
+
value: void 0
|
|
284
|
+
});
|
|
285
|
+
Object.defineProperty(this, "queue", {
|
|
286
|
+
enumerable: true,
|
|
287
|
+
configurable: true,
|
|
288
|
+
writable: true,
|
|
289
|
+
value: void 0
|
|
290
|
+
});
|
|
291
|
+
this.log = log;
|
|
292
|
+
this.kvp = kvp;
|
|
293
|
+
this.issues = issues;
|
|
294
|
+
this.queue = queue;
|
|
295
|
+
}
|
|
296
|
+
create(activation, data, options = {}) {
|
|
297
|
+
const executionId = (0, ulid_js_1.ulid)();
|
|
298
|
+
const logger = this.log.child({
|
|
299
|
+
executionId,
|
|
300
|
+
activationId: activation.id,
|
|
301
|
+
externalUserId: activation.user.externalId,
|
|
302
|
+
});
|
|
303
|
+
const activationImpl = new VanillaActivation(activation, this.organisationId, this.environmentId, logger);
|
|
304
|
+
return new VanillaContext(logger, this.kvp, executionId, new Date(), data, activationImpl, this.issues, this.queue, options);
|
|
305
|
+
}
|
|
306
|
+
createWithExecutionId(activation, data, executionId, options = {}) {
|
|
307
|
+
const logger = this.log.child({
|
|
308
|
+
executionId,
|
|
309
|
+
activationId: activation.id,
|
|
310
|
+
externalUserId: activation.user.externalId,
|
|
311
|
+
});
|
|
312
|
+
const activationImpl = new VanillaActivation(activation, this.organisationId, this.environmentId, logger);
|
|
313
|
+
return new VanillaContext(logger, this.kvp, executionId, new Date(), data, activationImpl, this.issues, this.queue, options);
|
|
314
|
+
}
|
|
315
|
+
destroy(_) {
|
|
316
|
+
return Promise.resolve();
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
exports.VanillaContextProvider = VanillaContextProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueueAPI, Workflow } from '../interpreter/durable/Queue.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ActivationInterface } from '../dsl/http/types.js';
|
|
3
3
|
export type WorkflowOpts = {
|
|
4
4
|
maxAttempts?: number;
|
|
5
5
|
data?: unknown;
|
|
@@ -17,7 +17,7 @@ export declare class WorkflowImpl implements WorkflowInterface {
|
|
|
17
17
|
private queue;
|
|
18
18
|
private executionId;
|
|
19
19
|
private activation;
|
|
20
|
-
constructor(queue: QueueAPI, executionId: string, activation:
|
|
20
|
+
constructor(queue: QueueAPI, executionId: string, activation: ActivationInterface);
|
|
21
21
|
startWorkflow(group: string, opts: WorkflowOpts): Promise<Workflow>;
|
|
22
22
|
getWorkflow(wf: Workflow): Promise<Workflow>;
|
|
23
23
|
getWorkflowById(id: string): Promise<Workflow>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowClient.d.ts","sourceRoot":"","sources":["../../../src/src/context/WorkflowClient.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"WorkflowClient.d.ts","sourceRoot":"","sources":["../../../src/src/context/WorkflowClient.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAK3D,MAAM,MAAM,YAAY,GAAG;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAC9B,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACpE,WAAW,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9C,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/C,iBAAiB,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnD,kBAAkB,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,gBAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,GAAG,QAAQ,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/F;AAED,qBAAa,YAAa,YAAW,iBAAiB;IAClD,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAsB;gBAE5B,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,mBAAmB;IAc3E,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC;IAmBnE,WAAW,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI5C,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI9C,iBAAiB,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IASlD,kBAAkB,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0B9D,gBAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,GAAG,QAAQ,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CAYpG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/http/mod.ts"],"names":[],"mappings":"AAaA,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/http/mod.ts"],"names":[],"mappings":"AAaA,YAAY,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ProjectEnvironment, DynamicVariables, Connection } from '../../services/platform/mod.js';
|
|
1
2
|
import { CredentialsProvider } from './versori/contextcredentials.js';
|
|
2
|
-
export type DynamicFetcher = (activation:
|
|
3
|
+
export type DynamicFetcher = (activation: ActivationInterface, input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
3
4
|
export type BaseUrlFetcher = (activationId: string) => Promise<string>;
|
|
4
5
|
export interface RoundTripperFactory {
|
|
5
6
|
create(connName: string): Promise<typeof fetch | undefined>;
|
|
@@ -7,7 +8,7 @@ export interface RoundTripperFactory {
|
|
|
7
8
|
credentials(): CredentialsProvider;
|
|
8
9
|
baseUrlFetcher(templateName: string): BaseUrlFetcher;
|
|
9
10
|
}
|
|
10
|
-
export declare function wrapDynamicFetcher(fetcher: DynamicFetcher, activation:
|
|
11
|
+
export declare function wrapDynamicFetcher(fetcher: DynamicFetcher, activation: ActivationInterface): typeof fetch;
|
|
11
12
|
export interface ConfigReader {
|
|
12
13
|
getCnxMapping(name: string): CnxMap | undefined;
|
|
13
14
|
getConnectionID(connName: string): string;
|
|
@@ -15,11 +16,11 @@ export interface ConfigReader {
|
|
|
15
16
|
}
|
|
16
17
|
export interface ConnectionProvider {
|
|
17
18
|
getStaticConnection(cnxId: string): Promise<Connection | undefined>;
|
|
18
|
-
getUserActivations(userId: string): Promise<
|
|
19
|
+
getUserActivations(userId: string): Promise<ActivationInterface[]>;
|
|
19
20
|
getActivationConnection(templateId: string, activationId: string): Promise<Connection | undefined>;
|
|
20
|
-
getActivation(activationId: string): Promise<
|
|
21
|
-
getStaticActivation(): Promise<
|
|
22
|
-
listActivations(): Promise<
|
|
21
|
+
getActivation(activationId: string): Promise<ActivationInterface | undefined>;
|
|
22
|
+
getStaticActivation(): Promise<ActivationInterface | undefined>;
|
|
23
|
+
listActivations(): Promise<ActivationInterface[]>;
|
|
23
24
|
updateDynamicVariable(activationId: string, name: string, value: unknown): Promise<void>;
|
|
24
25
|
}
|
|
25
26
|
export type CronConfig = {
|
|
@@ -64,7 +65,7 @@ export type User = {
|
|
|
64
65
|
* Activation represents a user's activation of an integration. Activations contain user-specific configuration and
|
|
65
66
|
* credentials for accessing external systems. Workflows can be scoped to specific activations using predicates.
|
|
66
67
|
*/
|
|
67
|
-
export interface
|
|
68
|
+
export interface ActivationInterface {
|
|
68
69
|
/**
|
|
69
70
|
* The unique identifier for this activation.
|
|
70
71
|
*/
|
|
@@ -73,6 +74,18 @@ export interface Activation {
|
|
|
73
74
|
* The user who owns this activation.
|
|
74
75
|
*/
|
|
75
76
|
user: User;
|
|
77
|
+
/**
|
|
78
|
+
* The environment this activation is associated with.
|
|
79
|
+
*/
|
|
80
|
+
environment?: ProjectEnvironment;
|
|
81
|
+
/**
|
|
82
|
+
* The connections associated with this activation.
|
|
83
|
+
*/
|
|
84
|
+
connections?: Array<Connection>;
|
|
85
|
+
/**
|
|
86
|
+
* Dynamic variables associated with this activation.
|
|
87
|
+
*/
|
|
88
|
+
dynamicVariables?: DynamicVariables;
|
|
76
89
|
/**
|
|
77
90
|
* Get a dynamic variable value for this activation.
|
|
78
91
|
*
|
|
@@ -88,132 +101,6 @@ export interface Activation {
|
|
|
88
101
|
*/
|
|
89
102
|
setVariable(name: string, value: unknown): Promise<void>;
|
|
90
103
|
}
|
|
91
|
-
export type AuthSchemeType = 'none' | 'api-key' | 'basic-auth' | 'oauth2' | 'hmac' | 'jwt-bearer' | 'custom-function' | 'certificate' | 'oauth1';
|
|
92
|
-
export type AuthSchemeConfig = {
|
|
93
|
-
type: AuthSchemeType;
|
|
94
|
-
none?: AuthSchemeConfigNone;
|
|
95
|
-
apiKey?: AuthSchemeConfigApiKey;
|
|
96
|
-
basicAuth?: AuthSchemeConfigBasicAuth;
|
|
97
|
-
oauth2?: AuthSchemeConfigOAuth2;
|
|
98
|
-
oauth1?: AuthSchemeConfigOAuth1;
|
|
99
|
-
hmac?: AuthSchemeConfigHMAC;
|
|
100
|
-
certificate?: AuthSchemeConfigCertificate;
|
|
101
|
-
};
|
|
102
|
-
type AuthSchemeConfigBase = {
|
|
103
|
-
id: string;
|
|
104
|
-
description: string;
|
|
105
|
-
};
|
|
106
|
-
export type AuthSchemeConfigNone = AuthSchemeConfigBase & {
|
|
107
|
-
schemeType: 'none';
|
|
108
|
-
};
|
|
109
|
-
export type AuthSchemeConfigBasicAuth = AuthSchemeConfigBase & {
|
|
110
|
-
schemeType: 'basic-auth';
|
|
111
|
-
};
|
|
112
|
-
export type AuthSchemeConfigApiKey = AuthSchemeConfigBase & {
|
|
113
|
-
schemeType: 'api-key';
|
|
114
|
-
in: 'query' | 'header' | 'cookie';
|
|
115
|
-
name: string;
|
|
116
|
-
};
|
|
117
|
-
type OAuth2Scope = {
|
|
118
|
-
name: string;
|
|
119
|
-
description: string;
|
|
120
|
-
};
|
|
121
|
-
type OAuth2GrantAuthCode = {
|
|
122
|
-
credentialId: string;
|
|
123
|
-
organisationId: string;
|
|
124
|
-
clientId: string;
|
|
125
|
-
clientSecret: string;
|
|
126
|
-
};
|
|
127
|
-
type OAuth2GrantClientCredentials = Record<PropertyKey, never>;
|
|
128
|
-
type OAuth2GrantPassword = {
|
|
129
|
-
credentialId: string;
|
|
130
|
-
organisationId: string;
|
|
131
|
-
clientId: string;
|
|
132
|
-
clientSecret: string;
|
|
133
|
-
};
|
|
134
|
-
type OAuth2Grant = {
|
|
135
|
-
type: 'authorizationCode' | 'clientCredentials' | 'password';
|
|
136
|
-
authorizationCode?: OAuth2GrantAuthCode;
|
|
137
|
-
clientCredentials?: OAuth2GrantClientCredentials;
|
|
138
|
-
password?: OAuth2GrantPassword;
|
|
139
|
-
};
|
|
140
|
-
export type AuthSchemeConfigOAuth2 = AuthSchemeConfigBase & {
|
|
141
|
-
schemeType: 'oauth2';
|
|
142
|
-
authorizeUrl: string;
|
|
143
|
-
tokenUrl: string;
|
|
144
|
-
scopes: OAuth2Scope[];
|
|
145
|
-
defaultScopes: string[];
|
|
146
|
-
additionalAuthorizeParams: string;
|
|
147
|
-
additionalTokenParams: string;
|
|
148
|
-
mltsEnabled: boolean;
|
|
149
|
-
mltsCredentialId: string;
|
|
150
|
-
grant: OAuth2Grant;
|
|
151
|
-
};
|
|
152
|
-
export type DigestInput = 'body' | 'url';
|
|
153
|
-
export type AuthSchemeConfigHMAC = AuthSchemeConfigBase & {
|
|
154
|
-
schemeType: 'hmac';
|
|
155
|
-
name: string;
|
|
156
|
-
in: 'query' | 'header' | 'cookie';
|
|
157
|
-
algorithm: 'sha1' | 'sha256' | 'sha512';
|
|
158
|
-
digestInputs: DigestInput[];
|
|
159
|
-
encoding: 'hex' | 'base64' | 'base64url';
|
|
160
|
-
};
|
|
161
|
-
type ParameterConfig = {
|
|
162
|
-
parameterName: string;
|
|
163
|
-
targetName: string;
|
|
164
|
-
location: 'LOCATION_IGNORE' | 'LOCATION_QUERY' | 'LOCATION_HEADER' | 'LOCATION_BODY' | 'LOCATION_ENDPOINT' | 'LOCAITON_HEADER_PARAMETER';
|
|
165
|
-
usages: 'USAGE_UNKNOWN' | 'USAGE_TEMP_CREDENTIAL_ENDPOINT' | 'USAGE_TOKEN_REQUEST_ENDPOINT';
|
|
166
|
-
required: boolean;
|
|
167
|
-
modifiable: boolean;
|
|
168
|
-
};
|
|
169
|
-
type Endpoint = {
|
|
170
|
-
url: string;
|
|
171
|
-
additionalParamConfigs: ParameterConfig[];
|
|
172
|
-
parameterTransmission: 'AUTH_STYLE_AUTHORIZATION_HEADER' | 'AUTH_STYLE_QUERY' | 'AUTH_STYLE_FORM';
|
|
173
|
-
};
|
|
174
|
-
export type AuthSchemeConfigOAuth1 = AuthSchemeConfigBase & {
|
|
175
|
-
consumerKey: string;
|
|
176
|
-
consumerSecret: string;
|
|
177
|
-
schemeType: 'oauth1';
|
|
178
|
-
tempCredentialEndpoint: Endpoint;
|
|
179
|
-
resourceOwnerAuthorizationEndpoint: Endpoint;
|
|
180
|
-
tokenEndpoint: Endpoint;
|
|
181
|
-
signatureMethod: string;
|
|
182
|
-
credentialId: string;
|
|
183
|
-
};
|
|
184
|
-
export type AuthSchemeConfigCertificate = AuthSchemeConfigBase & {
|
|
185
|
-
schemeType: 'certificate';
|
|
186
|
-
};
|
|
187
|
-
export type Credential = {
|
|
188
|
-
data: Record<string, string>;
|
|
189
|
-
id: string;
|
|
190
|
-
name: string;
|
|
191
|
-
organisationId: string;
|
|
192
|
-
type: string;
|
|
193
|
-
};
|
|
194
|
-
export type ConnectionCredential = {
|
|
195
|
-
authSchemeConfig: AuthSchemeConfig;
|
|
196
|
-
credential: Credential;
|
|
197
|
-
id: string;
|
|
198
|
-
};
|
|
199
|
-
export type Connection = {
|
|
200
|
-
createdAt: string;
|
|
201
|
-
credentials: ConnectionCredential[];
|
|
202
|
-
id: string;
|
|
203
|
-
name: string;
|
|
204
|
-
templateId: string;
|
|
205
|
-
dynamic: boolean;
|
|
206
|
-
updatedAt: string;
|
|
207
|
-
baseUrl: string;
|
|
208
|
-
};
|
|
209
|
-
export type System = {
|
|
210
|
-
documentationUrl: string;
|
|
211
|
-
name: string;
|
|
212
|
-
protocol: string;
|
|
213
|
-
variablesSchema: {
|
|
214
|
-
[key: string]: any;
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
104
|
export type StaticCnxMap = {
|
|
218
105
|
name: string;
|
|
219
106
|
dynamic: false;
|
|
@@ -232,5 +119,4 @@ export type VersoriAPIError = {
|
|
|
232
119
|
message: string;
|
|
233
120
|
code: string;
|
|
234
121
|
};
|
|
235
|
-
export {};
|
|
236
122
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/http/types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,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AAW,YAAY;IACpD,OAAO,CAAC,UAAU,CAAmB;gBAEzB,GAAG,EAAE,gBAAgB;IAIjC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB;IAShD,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;
|
|
1
|
+
{"version":3,"file":"configloader.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/configloader.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,YAAY,EAA+B,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIlG;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,gBAAgB,CAUrD;AAED,qBAAa,mBAAoB,YAAW,YAAY;IACpD,OAAO,CAAC,UAAU,CAAmB;gBAEzB,GAAG,EAAE,gBAAgB;IAIjC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB;IAShD,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAO/C,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAczC,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAa9C"}
|
|
@@ -53,6 +53,9 @@ class VersoriConfigReader {
|
|
|
53
53
|
return new VersoriConfigReader(versoriCfg);
|
|
54
54
|
}
|
|
55
55
|
getCnxMapping(name) {
|
|
56
|
+
if (this.versoriCfg.mappings === null) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
56
59
|
return this.versoriCfg.mappings.find((c) => c.name.toLowerCase() === name.toLowerCase());
|
|
57
60
|
}
|
|
58
61
|
getConnectionID(connName) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlatformApi } from '
|
|
1
|
+
import { PlatformApi } from '../../../services/platform/mod.js';
|
|
2
2
|
import { NextFunction, Request, Response } from 'express';
|
|
3
3
|
import { ConnectionFactory } from '../../../connection/types.js';
|
|
4
4
|
import { Logger } from '../../../observability/logging/Logger.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookmiddleware.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/webhookmiddleware.ts"],"names":[],"mappings":"AAaA,OAAO,EAAc,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"webhookmiddleware.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/webhookmiddleware.ts"],"names":[],"mappings":"AAaA,OAAO,EAAc,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,2BAA2B,GAAG;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,SAAS,EAAE,YAAY,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,6BAA6B,CACzC,IAAI,EAAE,2BAA2B,GAClC,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CA4GpE;AAED,wBAAgB,mCAAmC,CAC/C,IAAI,EAAE,2BAA2B,GAClC,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAkGpE;AAED,wBAAgB,oCAAoC,CAChD,IAAI,EAAE,2BAA2B,GAClC,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAqFpE"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type * as express from 'express';
|
|
2
2
|
import { FetchLike } from '../../connection/types.js';
|
|
3
|
-
import { ActivationImpl } from '../../context/ActivationImpl.js';
|
|
4
3
|
import { AsyncWorkflow } from '../../context/AsyncWorkflow.js';
|
|
5
|
-
import { Context,
|
|
4
|
+
import { Context, CreateIssue } from '../../context/Context.js';
|
|
6
5
|
import { WorkflowInterface, WorkflowOpts } from '../../context/WorkflowClient.js';
|
|
7
6
|
import { Issue } from '../../issues/Issues.js';
|
|
8
7
|
import { KeyValue, KeyValueScope } from '../../kv/KeyValue.js';
|
|
9
8
|
import { Logger } from '../../observability/logging/Logger.js';
|
|
9
|
+
import { ActivationInterface } from '../http/types.js';
|
|
10
10
|
import { CredentialsProvider } from '../http/versori/contextcredentials.js';
|
|
11
11
|
import { ArrayTask, Task, Taskable, TaskType } from '../Task.js';
|
|
12
12
|
/**
|
|
@@ -94,11 +94,11 @@ export declare class HttpContextImpl<D, PageParams> implements HttpContext<D, Pa
|
|
|
94
94
|
pageParams?: PageParams;
|
|
95
95
|
readonly fetch: FetchLike;
|
|
96
96
|
readonly baseUrl: Promise<string>;
|
|
97
|
-
constructor(ctx:
|
|
97
|
+
constructor(ctx: Context<D>, connectionVars: Record<string, any>, fetch: FetchLike, baseUrl: string, pageParams?: PageParams);
|
|
98
98
|
get log(): Logger;
|
|
99
99
|
get executionId(): string;
|
|
100
100
|
get startTime(): Date;
|
|
101
|
-
get activation():
|
|
101
|
+
get activation(): ActivationInterface;
|
|
102
102
|
get data(): D;
|
|
103
103
|
openKv(scope?: KeyValueScope): KeyValue;
|
|
104
104
|
destroy(scope: KeyValueScope): Promise<void>;
|