@transai/connector-runner-ai-agent 0.53.9 → 0.53.11
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/CHANGELOG.md +8 -0
- package/index.cjs +198 -198
- package/index.cjs.map +2 -2
- package/libs/connector-runtime-sdk/src/lib/sdk/receiver.sdk.interface.d.ts +1 -0
- package/libs/helper-functions/src/lib/workflow-run-generator.d.ts +3 -1
- package/libs/kafka-base-service/src/lib/factories.d.ts +1 -0
- package/libs/types/src/lib/http-status-codes.enum.d.ts +2 -1
- package/libs/types/src/lib/management-api/workflow/auto-retry.d.ts +26 -0
- package/libs/types/src/lib/management-api/workflow/enums/workflow-status.enum.d.ts +1 -0
- package/libs/types/src/lib/management-api/workflow/index.d.ts +1 -0
- package/libs/types/src/lib/management-api/workflow/workflow-definition.interface.d.ts +2 -0
- package/libs/types/src/lib/management-api/workflow/workflow-drawing.interface.d.ts +2 -0
- package/libs/types/src/lib/management-api/workflow/workflow-run.interface.d.ts +2 -0
- package/libs/types/src/lib/types.d.ts +2 -1
- package/package.json +1 -1
package/index.cjs.map
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/index.cjs.map
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 43273992 bytes
|
|
4
|
+
sha256: 1485c3e98dea2fa589c2cfc9f4e8cbf3619c0c2616e748cee8e2ded63168ea96
|
|
@@ -7,6 +7,7 @@ export interface ReceiverSDKInterface {
|
|
|
7
7
|
readonly unprocessableEntity: KafkaCallbackResponseType;
|
|
8
8
|
readonly notFound: KafkaCallbackResponseType;
|
|
9
9
|
readonly internalServerError: KafkaCallbackResponseType;
|
|
10
|
+
readonly temporarilyUnavailable: KafkaCallbackResponseType;
|
|
10
11
|
};
|
|
11
12
|
registerCallback<T extends XodJobType = XodJobType>(callbackFunction: (message: T) => Promise<KafkaCallbackResponse>, eventType?: string, identifier?: string): void;
|
|
12
13
|
getActionConfig(message: XodJobType): Promise<ActionInterface | null>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { EventInterface, WorkflowDefinition, WorkflowRunInterface, WorkflowDrawing, WorkflowJobInterface, WorkflowDefinitionStepBase } from '@xip-online-data/types';
|
|
2
2
|
export declare const isRootWorkflowStep: (step: Pick<WorkflowDefinitionStepBase, "parentIterationId">) => boolean;
|
|
3
|
+
/** The restart identifiers plus everything that depends on them, directly or transitively. */
|
|
4
|
+
export declare const getRerunIdentifiers: (steps: WorkflowDefinition["steps"], restartFrom: Array<string>) => Set<string>;
|
|
3
5
|
export declare const createRunFromDefinition: (workflowDefinition: WorkflowDefinition, actionJobs: Array<Omit<WorkflowJobInterface, "run">>, eventDetails: EventInterface, drawing?: WorkflowDrawing, restartOptions?: {
|
|
4
6
|
existingRun: WorkflowRunInterface;
|
|
5
|
-
restartFrom?: string
|
|
7
|
+
restartFrom?: string | Array<string>;
|
|
6
8
|
}) => Omit<WorkflowRunInterface, "id" | "createdAt" | "updatedAt">;
|
|
@@ -6,3 +6,4 @@ export declare function BadRequest(additionalMessage?: string): (message: XodBas
|
|
|
6
6
|
export declare function NotFound(additionalMessage?: string): (message: XodBaseMessageType) => Promise<KafkaCallbackResponse>;
|
|
7
7
|
export declare function InternalServerError(additionalMessage?: string): (message: XodBaseMessageType) => Promise<KafkaCallbackResponse>;
|
|
8
8
|
export declare function Aborted(additionalMessage?: string): (message: XodBaseMessageType) => Promise<KafkaCallbackResponse>;
|
|
9
|
+
export declare function TemporarilyUnavailable(additionalMessage?: string): (message: XodBaseMessageType) => Promise<KafkaCallbackResponse>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum AutoRetryBackoff {
|
|
2
|
+
FIXED = "FIXED",
|
|
3
|
+
LINEAR = "LINEAR",
|
|
4
|
+
EXPONENTIAL = "EXPONENTIAL"
|
|
5
|
+
}
|
|
6
|
+
export declare enum AutoRetryRestartFrom {
|
|
7
|
+
FAILED_STEP = "FAILED_STEP",
|
|
8
|
+
BEGINNING = "BEGINNING"
|
|
9
|
+
}
|
|
10
|
+
export declare enum AutoRetryOn {
|
|
11
|
+
RETRYABLE_ONLY = "RETRYABLE_ONLY",
|
|
12
|
+
ALL_FAILED = "ALL_FAILED"
|
|
13
|
+
}
|
|
14
|
+
export interface AutoRetrySettings {
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
/** 1-100; automatic retries after the initial run. */
|
|
17
|
+
maxRetries: number;
|
|
18
|
+
backoff: AutoRetryBackoff;
|
|
19
|
+
/** 1-3600; base delay in seconds. */
|
|
20
|
+
delaySeconds: number;
|
|
21
|
+
restartFrom: AutoRetryRestartFrom;
|
|
22
|
+
retryOn: AutoRetryOn;
|
|
23
|
+
}
|
|
24
|
+
export declare const AUTO_RETRY_DEFAULTS: AutoRetrySettings;
|
|
25
|
+
/** `null`/`undefined` means auto retry is not configured; partial input is completed with the defaults. */
|
|
26
|
+
export declare const normalizeAutoRetrySettings: (input?: Partial<AutoRetrySettings> | null) => AutoRetrySettings | null;
|
|
@@ -12,5 +12,6 @@ export declare enum WorkflowJobStatusStatus {
|
|
|
12
12
|
SKIPPED = "SKIPPED",
|
|
13
13
|
BAD_REQUEST = "BAD_REQUEST",// input validation errors
|
|
14
14
|
INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",
|
|
15
|
+
TEMPORARILY_UNAVAILABLE = "TEMPORARILY_UNAVAILABLE",// connector marked the failure as temporary
|
|
15
16
|
ABORTED = "ABORTED"
|
|
16
17
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AutoRetrySettings } from './auto-retry';
|
|
1
2
|
import { NodeTypes, TriggerType } from './enums';
|
|
2
3
|
import { ConditionMapper, JsonataMapper, NodeMapper, ValidationMapper, WorkflowTitleMapper } from './parameter-mapper.interface';
|
|
3
4
|
import { IterationConfig, IterationInput, NodeSelectors, WorkflowDrawing } from './workflow-drawing.interface';
|
|
@@ -59,6 +60,7 @@ export interface CreateWorkflowDefinition {
|
|
|
59
60
|
identifier: string;
|
|
60
61
|
name: string;
|
|
61
62
|
ttl: number;
|
|
63
|
+
autoRetry?: AutoRetrySettings | null;
|
|
62
64
|
triggerName: string;
|
|
63
65
|
triggerType: TriggerType;
|
|
64
66
|
triggerIdentifier: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChartInterface } from '../chart.interface';
|
|
2
|
+
import { AutoRetrySettings } from './auto-retry';
|
|
2
3
|
import { ConditionalTypes, NodeTypes, TriggerType, WorkflowRunStatusStatus } from './enums';
|
|
3
4
|
import { ArrayMapper, ConditionMapper, MessageMapper, SimpleArrayMapper, ValidationMapper, WorkflowTitleMapper } from './parameter-mapper.interface';
|
|
4
5
|
export interface Conditional {
|
|
@@ -101,6 +102,7 @@ export interface CreateWorkflowDrawingInterface {
|
|
|
101
102
|
description: string;
|
|
102
103
|
identifier: string;
|
|
103
104
|
ttl: number;
|
|
105
|
+
autoRetry?: AutoRetrySettings | null;
|
|
104
106
|
trigger: TriggerNode;
|
|
105
107
|
nodes: Array<WorkflowNode>;
|
|
106
108
|
edges: Array<Edge>;
|
|
@@ -41,7 +41,8 @@ export declare enum ConfiguredConnectorTypes {
|
|
|
41
41
|
JVC_TELEMETRY_TEST = "jvc-telemetry-test",
|
|
42
42
|
RIDDER_IQ = "ridder-iq",
|
|
43
43
|
XYLEM = "xylem",
|
|
44
|
-
OSEON = "oseon"
|
|
44
|
+
OSEON = "oseon",
|
|
45
|
+
CONTROL_OFFICE = "control-office"
|
|
45
46
|
}
|
|
46
47
|
export interface ConnectorConfig {
|
|
47
48
|
type: ConfiguredConnectorTypes;
|