@versori/run 0.2.0-alpha.7 → 0.2.0-alpha.9
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/{script/deps/jsr.io/@std/fmt/1.0.6 → esm/deps/jsr.io/@std/fmt/1.0.7}/colors.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/exists.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/src/dsl/http/types.d.ts +13 -2
- package/esm/src/dsl/http/types.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/activation.d.ts +13 -0
- package/esm/src/dsl/http/versori/activation.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/activation.js +65 -0
- package/esm/src/dsl/http/versori/constants.d.ts +5 -0
- package/esm/src/dsl/http/versori/constants.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/constants.js +5 -0
- package/esm/src/dsl/http/versori/cronapi.d.ts +10 -0
- package/esm/src/dsl/http/versori/cronapi.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/cronapi.js +51 -0
- package/esm/src/dsl/http/versori/platformapi.d.ts +4 -1
- package/esm/src/dsl/http/versori/platformapi.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/platformapi.js +38 -6
- package/esm/src/dsl/http/versori/roundtripper.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/roundtripper.js +8 -5
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts +4 -2
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/memory/MemoryInterpreter.js +24 -3
- package/esm/src/interpreter/memory/ObservableCompiler.d.ts +1 -0
- package/esm/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/schedule.js +18 -23
- package/package.json +1 -1
- package/{esm/deps/jsr.io/@std/fmt/1.0.6 → script/deps/jsr.io/@std/fmt/1.0.7}/colors.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/exists.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/script/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/script/src/dsl/http/types.d.ts +13 -2
- package/script/src/dsl/http/types.d.ts.map +1 -1
- package/script/src/dsl/http/versori/activation.d.ts +13 -0
- package/script/src/dsl/http/versori/activation.d.ts.map +1 -0
- package/script/src/dsl/http/versori/activation.js +69 -0
- package/script/src/dsl/http/versori/constants.d.ts +5 -0
- package/script/src/dsl/http/versori/constants.d.ts.map +1 -1
- package/script/src/dsl/http/versori/constants.js +6 -1
- package/script/src/dsl/http/versori/cronapi.d.ts +10 -0
- package/script/src/dsl/http/versori/cronapi.d.ts.map +1 -0
- package/script/src/dsl/http/versori/cronapi.js +55 -0
- package/script/src/dsl/http/versori/platformapi.d.ts +4 -1
- package/script/src/dsl/http/versori/platformapi.d.ts.map +1 -1
- package/script/src/dsl/http/versori/platformapi.js +38 -6
- package/script/src/dsl/http/versori/roundtripper.d.ts.map +1 -1
- package/script/src/dsl/http/versori/roundtripper.js +8 -5
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts +4 -2
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/memory/MemoryInterpreter.js +24 -3
- package/script/src/interpreter/memory/ObservableCompiler.d.ts +1 -0
- package/script/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/schedule.js +18 -23
- /package/esm/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.7}/colors.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.7}/colors.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/exists.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/exists.js +0 -0
- /package/script/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.7}/colors.d.ts +0 -0
- /package/script/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.7}/colors.js +0 -0
- /package/script/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/exists.d.ts +0 -0
- /package/script/deps/jsr.io/@std/fs/{1.0.16 → 1.0.17}/exists.js +0 -0
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { CronJob } from 'cron';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
2
|
import { ScheduleTrigger } from '../../../dsl/triggers/ScheduleTrigger.js';
|
|
4
3
|
function compileSchedule(ctx, trigger, signal) {
|
|
5
4
|
return new Observable((subscriber) => {
|
|
5
|
+
// Add HTTP endpoint for manual triggering
|
|
6
|
+
if (!ctx.router) {
|
|
7
|
+
throw new Error('Router not available in compiler context');
|
|
8
|
+
}
|
|
6
9
|
const client = ctx.connectionProvider;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
ctx.cronRegistry.set(trigger.id, trigger.schedule);
|
|
11
|
+
ctx.router.post(`/cron/${trigger.id}`, async (req, res) => {
|
|
12
|
+
try {
|
|
10
13
|
if (trigger.activationPredicate === undefined) {
|
|
11
14
|
const executionCtx = ctx.contextProvider.create({}, undefined);
|
|
12
15
|
try {
|
|
@@ -15,6 +18,7 @@ function compileSchedule(ctx, trigger, signal) {
|
|
|
15
18
|
catch (error) {
|
|
16
19
|
executionCtx.log.error('execution error inside schedule', { error });
|
|
17
20
|
}
|
|
21
|
+
res.status(200).json({ status: 'triggered', executionId: executionCtx.executionId });
|
|
18
22
|
return;
|
|
19
23
|
}
|
|
20
24
|
const activations = await client.listActivations();
|
|
@@ -27,6 +31,7 @@ function compileSchedule(ctx, trigger, signal) {
|
|
|
27
31
|
catch (error) {
|
|
28
32
|
executionCtx.log.error('execution error inside schedule', { error });
|
|
29
33
|
}
|
|
34
|
+
res.status(200).json({ status: 'triggered', executionId: executionCtx.executionId });
|
|
30
35
|
return;
|
|
31
36
|
}
|
|
32
37
|
activations.forEach((activation) => {
|
|
@@ -39,31 +44,21 @@ function compileSchedule(ctx, trigger, signal) {
|
|
|
39
44
|
executionCtx.log.error('execution error inside schedule', { error });
|
|
40
45
|
}
|
|
41
46
|
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
subscriber.complete();
|
|
49
|
-
},
|
|
50
|
-
errorHandler: (error) => {
|
|
51
|
-
ctx.log.error('schedule execution error', { error });
|
|
52
|
-
subscriber.error(error);
|
|
53
|
-
},
|
|
54
|
-
start: true,
|
|
47
|
+
res.status(200).json({ status: 'triggered' });
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
executionCtx.log.error('execution error inside schedule', { error });
|
|
51
|
+
res.status(500).json({ error: 'Failed to trigger schedule' });
|
|
52
|
+
}
|
|
55
53
|
});
|
|
56
54
|
function cleanup() {
|
|
57
|
-
ctx.log.debug('
|
|
58
|
-
|
|
55
|
+
ctx.log.debug('scheduler trigger stopped');
|
|
56
|
+
subscriber.complete();
|
|
59
57
|
}
|
|
60
58
|
signal.addEventListener('abort', cleanup, { once: true });
|
|
61
59
|
return () => {
|
|
62
60
|
signal.removeEventListener('abort', cleanup);
|
|
63
|
-
ctx.log.debug('
|
|
64
|
-
// call job.stop() directly rather than using cleanup since cleanup is called when the
|
|
65
|
-
// signal is aborted and we don't want duplicate logs when the unsubscription happens.
|
|
66
|
-
job.stop();
|
|
61
|
+
ctx.log.debug('scheduler execution unsubscribed');
|
|
67
62
|
};
|
|
68
63
|
});
|
|
69
64
|
}
|
package/package.json
CHANGED
package/{esm/deps/jsr.io/@std/fmt/1.0.6 → script/deps/jsr.io/@std/fmt/1.0.7}/colors.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fmt/1.0.
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fmt/1.0.7/colors.ts"],"names":[],"mappings":"AAoEA,qEAAqE;AACrE,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;CACX;AAID;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,QAM7C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AA0BD;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,GAAG,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;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAcD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAuB9D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAuBhE;AAWD;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.17/exists.ts"],"names":[],"mappings":"AAEA,iEAAiE;AACjE,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AACH,wBAAsB,MAAM,CAC1B,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,OAAO,CAAC,CAsClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAqCT"}
|
|
@@ -16,7 +16,7 @@ exports.ConsoleHandler = void 0;
|
|
|
16
16
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
17
17
|
// This module is browser compatible.
|
|
18
18
|
const levels_js_1 = require("./levels.js");
|
|
19
|
-
const colors_js_1 = require("../../fmt/1.0.
|
|
19
|
+
const colors_js_1 = require("../../fmt/1.0.7/colors.js");
|
|
20
20
|
const base_handler_js_1 = require("./base_handler.js");
|
|
21
21
|
function applyColors(msg, level) {
|
|
22
22
|
switch (level) {
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _RotatingFileHandler_maxBytes, _RotatingFileHandler_maxBackupCount, _RotatingFileHandler_currentFileSize;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.RotatingFileHandler = void 0;
|
|
16
|
-
const exists_js_1 = require("../../fs/1.0.
|
|
16
|
+
const exists_js_1 = require("../../fs/1.0.17/exists.js");
|
|
17
17
|
const file_handler_js_1 = require("./file_handler.js");
|
|
18
18
|
const _file_handler_symbols_js_1 = require("./_file_handler_symbols.js");
|
|
19
19
|
/**
|
|
@@ -10,6 +10,15 @@ export interface ConnectionProvider {
|
|
|
10
10
|
getActivationConnection(templateId: string, activationId: string): Promise<Connection | undefined>;
|
|
11
11
|
getActivation(activationId: string): Promise<Activation | undefined>;
|
|
12
12
|
listActivations(): Promise<Activation[]>;
|
|
13
|
+
updateDynamicVariable(activationId: string, name: string, value: unknown): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export type CronConfig = {
|
|
16
|
+
name: string;
|
|
17
|
+
schedule: string;
|
|
18
|
+
url: string;
|
|
19
|
+
};
|
|
20
|
+
export interface CronProvider {
|
|
21
|
+
updateCrons(crons: Map<string, string>): Promise<void>;
|
|
13
22
|
}
|
|
14
23
|
export type User = {
|
|
15
24
|
id: string;
|
|
@@ -19,10 +28,12 @@ export type User = {
|
|
|
19
28
|
externalId: string;
|
|
20
29
|
organisationId: string;
|
|
21
30
|
};
|
|
22
|
-
export
|
|
31
|
+
export interface Activation {
|
|
23
32
|
id: string;
|
|
24
33
|
user: User;
|
|
25
|
-
|
|
34
|
+
getVariable(name: string): unknown;
|
|
35
|
+
setVariable(name: string, value: unknown): Promise<void>;
|
|
36
|
+
}
|
|
26
37
|
export type AuthSchemeType = 'none' | 'api-key' | 'basic-auth' | 'oauth2' | 'hmac' | 'jwt-bearer' | 'custom-function' | 'certificate' | 'oauth1';
|
|
27
38
|
export type AuthSchemeConfig = {
|
|
28
39
|
type: AuthSchemeType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/http/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,GAAG,GAAG,EAAE,I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AAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,UAAU,EAAE,UAAU,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,oBAAoB,EAAE,CAAC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE;QACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Logger } from '../../../observability/logging/Logger.js';
|
|
2
|
+
import { Activation, ConnectionProvider, User } from '../types.js';
|
|
3
|
+
export declare class ActivationImpl implements Activation {
|
|
4
|
+
id: string;
|
|
5
|
+
user: User;
|
|
6
|
+
private variables?;
|
|
7
|
+
private connectionProvider;
|
|
8
|
+
private log;
|
|
9
|
+
constructor(id: string, user: User, connectionProvider: ConnectionProvider, log: Logger, variables: Record<string, unknown>);
|
|
10
|
+
getVariable(name: string): unknown;
|
|
11
|
+
setVariable(name: string, value: unknown): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=activation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activation.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/activation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnE,qBAAa,cAAe,YAAW,UAAU;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;IAElB,OAAO,CAAC,SAAS,CAAC,CAA0B;IAC5C,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,GAAG,CAAS;gBAGhB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,IAAI,EACV,kBAAkB,EAAE,kBAAkB,EACtC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAWtC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAQ5B,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAkBjE"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivationImpl = void 0;
|
|
4
|
+
class ActivationImpl {
|
|
5
|
+
constructor(id, user, connectionProvider, log, variables) {
|
|
6
|
+
Object.defineProperty(this, "id", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: void 0
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(this, "user", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: void 0
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(this, "variables", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: true,
|
|
22
|
+
value: void 0
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(this, "connectionProvider", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
configurable: true,
|
|
27
|
+
writable: true,
|
|
28
|
+
value: void 0
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(this, "log", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true,
|
|
33
|
+
writable: true,
|
|
34
|
+
value: void 0
|
|
35
|
+
});
|
|
36
|
+
this.id = id;
|
|
37
|
+
this.user = user;
|
|
38
|
+
this.connectionProvider = connectionProvider;
|
|
39
|
+
this.variables = variables;
|
|
40
|
+
this.log = log.child({
|
|
41
|
+
activationId: id,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
getVariable(name) {
|
|
45
|
+
if (!this.variables) {
|
|
46
|
+
this.log.error(`No variables found for activation`);
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
return this.variables[name];
|
|
50
|
+
}
|
|
51
|
+
async setVariable(name, value) {
|
|
52
|
+
if (!this.variables) {
|
|
53
|
+
this.log.error(`No variables found for activation`);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
try {
|
|
57
|
+
await this.connectionProvider.updateDynamicVariable(this.id, name, value);
|
|
58
|
+
}
|
|
59
|
+
catch (err) {
|
|
60
|
+
this.log.error(`Failed to set variable`, {
|
|
61
|
+
error: err,
|
|
62
|
+
variableName: name,
|
|
63
|
+
});
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
this.variables[name] = value;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.ActivationImpl = ActivationImpl;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export declare const envVarOrgId = "RUN_ORGANISATION_ID";
|
|
2
2
|
export declare const envVarEnvId = "RUN_ENVIRONMENT_ID";
|
|
3
|
+
export declare const envVarEnvironmentName = "RUN_ENVIRONMENT";
|
|
4
|
+
export declare const envVarProjectId = "RUN_SERVICE_ID";
|
|
5
|
+
export declare const envVarOrgSlug = "RUN_ORGANISATION_SLUG";
|
|
3
6
|
export declare const envVarPlatformApiBaseURL = "RUN_PLATFORM_API_INTERNAL_URL";
|
|
7
|
+
export declare const envVarCronApiBaseURL = "RUN_CRON_API_INTERNAL_URL";
|
|
8
|
+
export declare const envVarSelfRefURL = "RUN_SELF_REF_URL";
|
|
4
9
|
export declare const envVarCredsBaseURL = "RUN_CREDENTIALS_SERVICE_INTERNAL_URL";
|
|
5
10
|
export declare const envVarConfigFile = "RUN_CONFIG_FILE";
|
|
6
11
|
export declare const envVarClientId = "RUN_CLIENT_ID";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAChD,eAAO,MAAM,wBAAwB,kCAAkC,CAAC;AACxE,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AAGzE,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAGlD,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AACxD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAChD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,wBAAwB,kCAAkC,CAAC;AACxE,eAAO,MAAM,oBAAoB,8BAA8B,CAAC;AAChE,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AAGzE,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAGlD,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AACxD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.envVarInternalToken = exports.envVarTokenEndpoint = exports.envVarClientSecret = exports.envVarClientId = exports.envVarConfigFile = exports.envVarCredsBaseURL = exports.envVarPlatformApiBaseURL = exports.envVarEnvId = exports.envVarOrgId = void 0;
|
|
3
|
+
exports.envVarInternalToken = exports.envVarTokenEndpoint = exports.envVarClientSecret = exports.envVarClientId = exports.envVarConfigFile = exports.envVarCredsBaseURL = exports.envVarSelfRefURL = exports.envVarCronApiBaseURL = exports.envVarPlatformApiBaseURL = exports.envVarOrgSlug = exports.envVarProjectId = exports.envVarEnvironmentName = exports.envVarEnvId = exports.envVarOrgId = void 0;
|
|
4
4
|
// This file contains constants used in the Versori DSL HTTP client.
|
|
5
5
|
exports.envVarOrgId = 'RUN_ORGANISATION_ID';
|
|
6
6
|
exports.envVarEnvId = 'RUN_ENVIRONMENT_ID';
|
|
7
|
+
exports.envVarEnvironmentName = 'RUN_ENVIRONMENT';
|
|
8
|
+
exports.envVarProjectId = 'RUN_SERVICE_ID';
|
|
9
|
+
exports.envVarOrgSlug = 'RUN_ORGANISATION_SLUG';
|
|
7
10
|
exports.envVarPlatformApiBaseURL = 'RUN_PLATFORM_API_INTERNAL_URL';
|
|
11
|
+
exports.envVarCronApiBaseURL = 'RUN_CRON_API_INTERNAL_URL';
|
|
12
|
+
exports.envVarSelfRefURL = 'RUN_SELF_REF_URL';
|
|
8
13
|
exports.envVarCredsBaseURL = 'RUN_CREDENTIALS_SERVICE_INTERNAL_URL';
|
|
9
14
|
// The following environment variables are used for the config file
|
|
10
15
|
exports.envVarConfigFile = 'RUN_CONFIG_FILE';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CronProvider } from '../types.js';
|
|
2
|
+
export declare class CronAPIClient implements CronProvider {
|
|
3
|
+
private baseUrl;
|
|
4
|
+
private envId;
|
|
5
|
+
private integrationUrl;
|
|
6
|
+
constructor(baseUrl: string, envId: string, integrationUrl: string);
|
|
7
|
+
static fromEnv(): CronAPIClient;
|
|
8
|
+
updateCrons(crons: Map<string, string>): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=cronapi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cronapi.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/cronapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,qBAAa,aAAc,YAAW,YAAY;IAC9C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,cAAc,CAAS;gBAG3B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM;IAO1B,MAAM,CAAC,OAAO,IAAI,aAAa;IAgBzB,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAe/D"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CronAPIClient = void 0;
|
|
4
|
+
const constants_js_1 = require("./constants.js");
|
|
5
|
+
class CronAPIClient {
|
|
6
|
+
constructor(baseUrl, envId, integrationUrl) {
|
|
7
|
+
Object.defineProperty(this, "baseUrl", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
configurable: true,
|
|
10
|
+
writable: true,
|
|
11
|
+
value: void 0
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(this, "envId", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: void 0
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(this, "integrationUrl", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: void 0
|
|
24
|
+
});
|
|
25
|
+
this.baseUrl = baseUrl;
|
|
26
|
+
this.envId = envId;
|
|
27
|
+
this.integrationUrl = integrationUrl;
|
|
28
|
+
}
|
|
29
|
+
static fromEnv() {
|
|
30
|
+
const baseUrl = Deno.env.get(constants_js_1.envVarCronApiBaseURL) || 'http://cron-api.platform.svc.cluster.local';
|
|
31
|
+
const envId = Deno.env.get(constants_js_1.envVarEnvId);
|
|
32
|
+
const projectId = Deno.env.get(constants_js_1.envVarProjectId);
|
|
33
|
+
const orgSlug = Deno.env.get(constants_js_1.envVarOrgSlug);
|
|
34
|
+
const envName = Deno.env.get(constants_js_1.envVarEnvironmentName);
|
|
35
|
+
if (!baseUrl || !envId || !projectId || !orgSlug || !envName) {
|
|
36
|
+
throw new Error('Missing required environment variables');
|
|
37
|
+
}
|
|
38
|
+
const integrationUrl = Deno.env.get(constants_js_1.envVarSelfRefURL) || `http://svc-${projectId.toLowerCase()}-${envName.toLowerCase()}.sb-${orgSlug.toLowerCase()}.svc.cluster.local`;
|
|
39
|
+
return new CronAPIClient(baseUrl, envId, integrationUrl);
|
|
40
|
+
}
|
|
41
|
+
async updateCrons(crons) {
|
|
42
|
+
const cronsArray = Array.from(crons.entries()).map(([name, schedule]) => ({ name, schedule, url: `${this.integrationUrl}/cron/${name}` }));
|
|
43
|
+
const resp = await fetch(`${this.baseUrl}/cron/environments/${this.envId}`, {
|
|
44
|
+
method: 'PUT',
|
|
45
|
+
headers: {
|
|
46
|
+
'Content-Type': 'application/json',
|
|
47
|
+
},
|
|
48
|
+
body: JSON.stringify({ crons: cronsArray }),
|
|
49
|
+
});
|
|
50
|
+
if (!resp.ok) {
|
|
51
|
+
throw new Error(`Failed to update crons: ${resp.statusText}`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.CronAPIClient = CronAPIClient;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { Logger } from '../../../observability/mod.js';
|
|
1
2
|
import { Activation, Connection, ConnectionProvider } from '../types.js';
|
|
2
3
|
export declare class PlatformAPIClient implements ConnectionProvider {
|
|
3
4
|
private baseUrl;
|
|
4
5
|
private orgId;
|
|
5
6
|
private envId;
|
|
6
7
|
private internalAuth;
|
|
7
|
-
|
|
8
|
+
private log;
|
|
9
|
+
constructor(baseUrl: string, orgId: string, envId: string, log: Logger);
|
|
8
10
|
static fromEnv(): PlatformAPIClient;
|
|
9
11
|
getStaticConnection(cnxId: string): Promise<Connection | undefined>;
|
|
10
12
|
getUserActivations(userId: string): Promise<Activation[]>;
|
|
11
13
|
getActivation(activationId: string): Promise<Activation | undefined>;
|
|
12
14
|
getActivationConnection(templateId: string, activationId: string): Promise<Connection | undefined>;
|
|
13
15
|
listActivations(): Promise<Activation[]>;
|
|
16
|
+
updateDynamicVariable(activationId: string, name: string, value: unknown): Promise<void>;
|
|
14
17
|
}
|
|
15
18
|
//# sourceMappingURL=platformapi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platformapi.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/platformapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"platformapi.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/platformapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAmBzE,qBAAa,iBAAkB,YAAW,kBAAkB;IACxD,OAAO,CAAC,OAAO,CAAS;IAExB,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,YAAY,CAAe;IAEnC,OAAO,CAAC,GAAG,CAAS;gBAER,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAQtE,MAAM,CAAC,OAAO,IAAI,iBAAiB;IAa7B,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAgBnE,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAuBzD,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAmBpE,uBAAuB,CACzB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GACrB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAmB5B,eAAe,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAuBxC,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAqBjG"}
|
|
@@ -3,8 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PlatformAPIClient = void 0;
|
|
4
4
|
const constants_js_1 = require("./constants.js");
|
|
5
5
|
const internalauth_js_1 = require("./internalauth.js");
|
|
6
|
+
const mod_js_1 = require("../../../mod.js");
|
|
7
|
+
const activation_js_1 = require("./activation.js");
|
|
6
8
|
class PlatformAPIClient {
|
|
7
|
-
constructor(baseUrl, orgId, envId) {
|
|
9
|
+
constructor(baseUrl, orgId, envId, log) {
|
|
8
10
|
Object.defineProperty(this, "baseUrl", {
|
|
9
11
|
enumerable: true,
|
|
10
12
|
configurable: true,
|
|
@@ -29,19 +31,27 @@ class PlatformAPIClient {
|
|
|
29
31
|
writable: true,
|
|
30
32
|
value: void 0
|
|
31
33
|
});
|
|
34
|
+
Object.defineProperty(this, "log", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: void 0
|
|
39
|
+
});
|
|
32
40
|
this.baseUrl = baseUrl;
|
|
33
41
|
this.orgId = orgId;
|
|
34
42
|
this.envId = envId;
|
|
35
43
|
this.internalAuth = new internalauth_js_1.InternalAuth();
|
|
44
|
+
this.log = log;
|
|
36
45
|
}
|
|
37
46
|
static fromEnv() {
|
|
38
47
|
const baseUrl = Deno.env.get(constants_js_1.envVarPlatformApiBaseURL);
|
|
39
48
|
const orgId = Deno.env.get(constants_js_1.envVarOrgId);
|
|
40
49
|
const envId = Deno.env.get(constants_js_1.envVarEnvId);
|
|
50
|
+
const log = new mod_js_1.ConsoleLogger('debug');
|
|
41
51
|
if (!baseUrl || !orgId || !envId) {
|
|
42
52
|
throw new Error('Missing required environment variables');
|
|
43
53
|
}
|
|
44
|
-
return new PlatformAPIClient(baseUrl, orgId, envId);
|
|
54
|
+
return new PlatformAPIClient(baseUrl, orgId, envId, log);
|
|
45
55
|
}
|
|
46
56
|
async getStaticConnection(cnxId) {
|
|
47
57
|
const resp = await fetch(`${this.baseUrl}/o/${this.orgId}/connections/${cnxId}`, {
|
|
@@ -64,7 +74,10 @@ class PlatformAPIClient {
|
|
|
64
74
|
if (!resp.ok) {
|
|
65
75
|
return [];
|
|
66
76
|
}
|
|
67
|
-
const
|
|
77
|
+
const activations = (await resp.json());
|
|
78
|
+
const result = activations.map((act) => {
|
|
79
|
+
return new activation_js_1.ActivationImpl(act.id, act.user, this, this.log, act.dynamicVariables);
|
|
80
|
+
});
|
|
68
81
|
return result;
|
|
69
82
|
}
|
|
70
83
|
async getActivation(activationId) {
|
|
@@ -76,8 +89,8 @@ class PlatformAPIClient {
|
|
|
76
89
|
if (!resp.ok) {
|
|
77
90
|
return undefined;
|
|
78
91
|
}
|
|
79
|
-
const
|
|
80
|
-
return
|
|
92
|
+
const act = (await resp.json());
|
|
93
|
+
return new activation_js_1.ActivationImpl(act.id, act.user, this, this.log, act.dynamicVariables);
|
|
81
94
|
}
|
|
82
95
|
async getActivationConnection(templateId, activationId) {
|
|
83
96
|
const resp = await fetch(`${this.baseUrl}/o/${this.orgId}/environment-systems/${templateId}/activations/${activationId}`, {
|
|
@@ -100,8 +113,27 @@ class PlatformAPIClient {
|
|
|
100
113
|
if (!resp.ok) {
|
|
101
114
|
return [];
|
|
102
115
|
}
|
|
103
|
-
const
|
|
116
|
+
const activations = (await resp.json());
|
|
117
|
+
const result = activations.map((act) => {
|
|
118
|
+
return new activation_js_1.ActivationImpl(act.id, act.user, this, this.log, act.dynamicVariables);
|
|
119
|
+
});
|
|
104
120
|
return result;
|
|
105
121
|
}
|
|
122
|
+
async updateDynamicVariable(activationId, name, value) {
|
|
123
|
+
this.log.debug(`value is ${JSON.stringify(value)}`);
|
|
124
|
+
const resp = await fetch(`${this.baseUrl}/o/${this.orgId}/environments/${this.envId}/activations/${activationId}/variables/${name}`, {
|
|
125
|
+
method: 'PUT',
|
|
126
|
+
headers: {
|
|
127
|
+
'x-versori-internal-token': await this.internalAuth.getToken(),
|
|
128
|
+
'Content-Type': 'application/json',
|
|
129
|
+
},
|
|
130
|
+
body: JSON.stringify({
|
|
131
|
+
value,
|
|
132
|
+
}),
|
|
133
|
+
});
|
|
134
|
+
if (!resp.ok) {
|
|
135
|
+
throw new Error(`Failed to update dynamic variable ${name}`);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
106
138
|
}
|
|
107
139
|
exports.PlatformAPIClient = PlatformAPIClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roundtripper.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/roundtripper.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,cAAc,EACd,mBAAmB,EAEtB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAUlE;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IAClE,OAAO,CAAC,WAAW,CAA0B;IAE7C,OAAO,CAAC,iBAAiB,CAAoB;IAE7C,OAAO,CAAC,UAAU,CAAmB;IAErC,OAAO,CAAC,GAAG,CAAS;IAEpB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAK7B;gBAGE,WAAW,EAAE,uBAAuB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,MAAM,EAAE,MAAM;IAQlB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,0BAA0B;
|
|
1
|
+
{"version":3,"file":"roundtripper.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/roundtripper.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,cAAc,EACd,mBAAmB,EAEtB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAUlE;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IAClE,OAAO,CAAC,WAAW,CAA0B;IAE7C,OAAO,CAAC,iBAAiB,CAAoB;IAE7C,OAAO,CAAC,UAAU,CAAmB;IAErC,OAAO,CAAC,GAAG,CAAS;IAEpB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAK7B;gBAGE,WAAW,EAAE,uBAAuB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,MAAM,EAAE,MAAM;IAQlB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,0BAA0B;IA4B3D,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,aAAa;IAwBf,MAAM,CACR,QAAQ,EAAE,MAAM,EAChB,EAAE,GAAE,OAAO,KAAwB,GACpC,OAAO,CAAC,OAAO,KAAK,GAAG,SAAS,CAAC;IAqC9B,aAAa,CACf,YAAY,EAAE,MAAM,EACpB,EAAE,GAAE,OAAO,KAAwB,GACpC,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IA+CtC,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,aAAa;YAYP,aAAa;YAyDb,gBAAgB;YAqChB,kBAAkB;YAmClB,aAAa;CAuE9B"}
|
|
@@ -77,20 +77,23 @@ class VersoriRoundTripperFactory {
|
|
|
77
77
|
missingVars.push(constants_js_1.envVarCredsBaseURL);
|
|
78
78
|
throw new Error(`Missing environment variables: ${missingVars.join(', ')}`);
|
|
79
79
|
}
|
|
80
|
-
const pAPIClient = new platformapi_js_1.PlatformAPIClient(platformApiBaseURL, orgId, envId);
|
|
81
|
-
const tokenClient = new mod_js_1.VersoriCredentialClient(credsBaseURL);
|
|
82
80
|
const log = logger || new mod_js_2.ConsoleLogger('debug');
|
|
81
|
+
const pAPIClient = new platformapi_js_1.PlatformAPIClient(platformApiBaseURL, orgId, envId, log);
|
|
82
|
+
const tokenClient = new mod_js_1.VersoriCredentialClient(credsBaseURL);
|
|
83
83
|
return new VersoriRoundTripperFactory(tokenClient, pAPIClient, log);
|
|
84
84
|
}
|
|
85
85
|
// takes the info and modifies the url using changeBaseUrl if necessary
|
|
86
|
+
// if a full valid URL is passed as a string, it will be returned as is
|
|
87
|
+
// if a valid URL object is passed, it will be returned as is
|
|
86
88
|
changeRequestInit(info, conn) {
|
|
87
89
|
if (typeof info === 'string') {
|
|
88
|
-
|
|
90
|
+
if (isValidURL(info)) {
|
|
91
|
+
return info;
|
|
92
|
+
}
|
|
89
93
|
return this.changeBaseUrl(info, conn);
|
|
90
94
|
}
|
|
91
95
|
else if (info instanceof URL) {
|
|
92
|
-
|
|
93
|
-
return newUrl;
|
|
96
|
+
return info;
|
|
94
97
|
}
|
|
95
98
|
else if (info instanceof Request) {
|
|
96
99
|
const url = this.changeBaseUrl(info.url, conn);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Router } from 'express';
|
|
2
2
|
import { Observable, Subscription } from 'rxjs';
|
|
3
3
|
import { ContextProvider } from '../../context/ContextProvider.js';
|
|
4
|
-
import { ConnectionProvider, RoundTripperFactory } from '../../dsl/http/types.js';
|
|
4
|
+
import { ConnectionProvider, CronProvider, RoundTripperFactory } from '../../dsl/http/types.js';
|
|
5
5
|
import { Workflow } from '../../dsl/Workflow.js';
|
|
6
6
|
import { Logger } from '../../observability/logging/Logger.js';
|
|
7
7
|
import { ObservableCompiler } from './ObservableCompiler.js';
|
|
@@ -26,12 +26,14 @@ export declare class MemoryInterpreter {
|
|
|
26
26
|
private readonly contextProvider;
|
|
27
27
|
private readonly roundTripperFactory;
|
|
28
28
|
private readonly router;
|
|
29
|
+
private cronRegistry;
|
|
29
30
|
private readonly connectionProvider;
|
|
31
|
+
private readonly cronProvider;
|
|
30
32
|
private registeredWorkflows;
|
|
31
33
|
private server?;
|
|
32
34
|
private shutdownServer?;
|
|
33
35
|
private isShuttingDown;
|
|
34
|
-
constructor(log: Logger, compiler: ObservableCompiler, contextProvider: ContextProvider, roundTripperFactory: RoundTripperFactory, router: Router, connectionProvider: ConnectionProvider);
|
|
36
|
+
constructor(log: Logger, compiler: ObservableCompiler, contextProvider: ContextProvider, roundTripperFactory: RoundTripperFactory, router: Router, cronRegistry: Map<string, string>, connectionProvider: ConnectionProvider, cronProvider: CronProvider);
|
|
35
37
|
static newInstance(options?: MemoryInterpreterOptions): Promise<MemoryInterpreter>;
|
|
36
38
|
register<O>(workflow: Workflow<O>, options?: MemoryInterpreterOptions): Registration;
|
|
37
39
|
start(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemoryInterpreter.d.ts","sourceRoot":"","sources":["../../../../src/src/interpreter/memory/MemoryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAqB,MAAM,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAA+B,UAAU,EAAW,YAAY,EAAE,MAAM,MAAM,CAAC;AACtF,OAAO,EAAE,eAAe,EAAuB,MAAM,kCAAkC,CAAC;AAExF,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"MemoryInterpreter.d.ts","sourceRoot":"","sources":["../../../../src/src/interpreter/memory/MemoryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAqB,MAAM,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAA+B,UAAU,EAAW,YAAY,EAAE,MAAM,MAAM,CAAC;AACtF,OAAO,EAAE,eAAe,EAAuB,MAAM,kCAAkC,CAAC;AAExF,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGhG,OAAO,EAAE,QAAQ,EAAgB,MAAM,uBAAuB,CAAC;AAI/D,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAmB,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,uBA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