Update generated TypeScript types

This commit is contained in:
github-actions[bot] 2025-09-20 18:09:47 +00:00
parent 9b1a068b00
commit 2de642f45f
2 changed files with 28 additions and 8 deletions

View File

@ -250,11 +250,10 @@ export interface TriggerConfiguration {
*/
exclude?: string[];
/**
* JSON Logic expression to determine if the workflow should be triggered. The expression
* has access to: entity (current entity), changeDescription (what changed), updatedBy (user
* who made the change), changedFields (array of field names that changed).
* JSON Logic expression to determine if the workflow should be triggered. Can be a string
* (applied to all entity types) or an object mapping entity types to their specific filters.
*/
filter?: string;
filter?: FilterConditionObject | string;
/**
* Number of Entities to process at once.
*/
@ -278,6 +277,17 @@ export enum Event {
Updated = "Updated",
}
/**
* Entity-specific filters with optional default
*/
export interface FilterConditionObject {
/**
* Default filter for entity types not explicitly configured
*/
default?: string;
[property: string]: string;
}
/**
* Entity-specific filters with optional default
*/

View File

@ -42,11 +42,10 @@ export interface TriggerConfiguration {
*/
exclude?: string[];
/**
* JSON Logic expression to determine if the workflow should be triggered. The expression
* has access to: entity (current entity), changeDescription (what changed), updatedBy (user
* who made the change), changedFields (array of field names that changed).
* JSON Logic expression to determine if the workflow should be triggered. Can be a string
* (applied to all entity types) or an object mapping entity types to their specific filters.
*/
filter?: string;
filter?: FilterConditionObject | string;
}
/**
@ -56,3 +55,14 @@ export enum Event {
Created = "Created",
Updated = "Updated",
}
/**
* Entity-specific filters with optional default
*/
export interface FilterConditionObject {
/**
* Default filter for entity types not explicitly configured
*/
default?: string;
[property: string]: string;
}