@vertesia/common 0.60.0 → 0.62.0
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/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/interaction.js +2 -1
- package/lib/cjs/interaction.js.map +1 -1
- package/lib/cjs/json.js +3 -0
- package/lib/cjs/json.js.map +1 -0
- package/lib/cjs/store/workflow.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/interaction.js +1 -0
- package/lib/esm/interaction.js.map +1 -1
- package/lib/esm/json.js +2 -0
- package/lib/esm/json.js.map +1 -0
- package/lib/esm/store/workflow.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/Progress.d.ts +0 -1
- package/lib/types/access-control.d.ts +0 -1
- package/lib/types/analytics.d.ts +0 -1
- package/lib/types/apikey.d.ts +0 -1
- package/lib/types/common.d.ts +0 -1
- package/lib/types/environment.d.ts +0 -1
- package/lib/types/facets.d.ts +0 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/integrations.d.ts +0 -1
- package/lib/types/interaction.d.ts +39 -1
- package/lib/types/interaction.d.ts.map +1 -1
- package/lib/types/json-schema.d.ts +0 -1
- package/lib/types/json.d.ts +1 -0
- package/lib/types/json.d.ts.map +1 -0
- package/lib/types/meters.d.ts +0 -1
- package/lib/types/payload.d.ts +0 -1
- package/lib/types/plugin.d.ts +29 -2
- package/lib/types/plugin.d.ts.map +1 -1
- package/lib/types/project.d.ts +0 -1
- package/lib/types/prompt.d.ts +0 -1
- package/lib/types/query.d.ts +1 -2
- package/lib/types/refs.d.ts +0 -1
- package/lib/types/runs.d.ts +0 -1
- package/lib/types/store/activity-catalog.d.ts +0 -1
- package/lib/types/store/agent.d.ts +0 -1
- package/lib/types/store/collections.d.ts +1 -1
- package/lib/types/store/collections.d.ts.map +1 -1
- package/lib/types/store/common.d.ts +0 -1
- package/lib/types/store/doc-analyzer.d.ts +0 -1
- package/lib/types/store/dsl-workflow.d.ts +0 -1
- package/lib/types/store/index.d.ts +0 -1
- package/lib/types/store/object-types.d.ts +0 -1
- package/lib/types/store/signals.d.ts +0 -1
- package/lib/types/store/store.d.ts +0 -1
- package/lib/types/store/temporalio.d.ts +0 -1
- package/lib/types/store/workflow.d.ts +20 -7
- package/lib/types/store/workflow.d.ts.map +1 -1
- package/lib/types/tenant.d.ts +0 -1
- package/lib/types/training.d.ts +0 -1
- package/lib/types/transient-tokens.d.ts +0 -1
- package/lib/types/user.d.ts +0 -1
- package/lib/types/utils/auth.d.ts +0 -1
- package/lib/types/utils/schemas.d.ts +0 -1
- package/lib/vertesia-common.js +1 -1
- package/lib/vertesia-common.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/interaction.ts +44 -0
- package/src/json.ts +4 -0
- package/src/plugin.ts +33 -1
- package/src/query.ts +1 -1
- package/src/store/collections.ts +1 -0
- package/src/store/workflow.ts +20 -6
package/src/store/collections.ts
CHANGED
package/src/store/workflow.ts
CHANGED
@@ -184,19 +184,21 @@ interface WorkflowRunEvent {
|
|
184
184
|
event_id: number;
|
185
185
|
event_time: number;
|
186
186
|
event_type: string;
|
187
|
-
task_id
|
187
|
+
task_id?: string;
|
188
188
|
attempt: number;
|
189
189
|
|
190
190
|
activity?: {
|
191
|
-
name
|
192
|
-
id
|
191
|
+
name?: string;
|
192
|
+
id?: string;
|
193
193
|
input?: any;
|
194
|
+
scheduledEventId?: string;
|
195
|
+
startedEventId?: string;
|
194
196
|
};
|
195
197
|
|
196
198
|
error?: {
|
197
|
-
message
|
198
|
-
source
|
199
|
-
stacktrace
|
199
|
+
message?: string;
|
200
|
+
source?: string;
|
201
|
+
stacktrace?: string;
|
200
202
|
type?: string;
|
201
203
|
};
|
202
204
|
|
@@ -205,6 +207,11 @@ interface WorkflowRunEvent {
|
|
205
207
|
|
206
208
|
export interface WorkflowRun {
|
207
209
|
status?: WorkflowExecutionStatus | string;
|
210
|
+
/**
|
211
|
+
* The Temporal Workflow Type of this Workflow Run.
|
212
|
+
*
|
213
|
+
* @see https://docs.temporal.io/workflows
|
214
|
+
*/
|
208
215
|
type?: string;
|
209
216
|
started_at?: number;
|
210
217
|
closed_at?: number;
|
@@ -214,6 +221,13 @@ export interface WorkflowRun {
|
|
214
221
|
initiated_by?: string;
|
215
222
|
result?: any;
|
216
223
|
raw?: any;
|
224
|
+
/**
|
225
|
+
* The Vertesia Workflow Type of this Workflow Run.
|
226
|
+
* - For DSL workflows (`type:dslWorkflow`), the vertesia_type refers to the "Workflow Rule Name" specified in the
|
227
|
+
* DSL. For example, "Standard Document Intake" or "Standard Image Intake".
|
228
|
+
* - For non-DSL workflows, the vertesia_type is the name of the Temporal Workflow Type.
|
229
|
+
*/
|
230
|
+
vertesia_workflow_type?: string;
|
217
231
|
}
|
218
232
|
|
219
233
|
export interface WorkflowRunWithDetails extends WorkflowRun {
|