Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve typing in prefect.server.events #16692

Merged
merged 4 commits into from
Jan 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert UI changes
desertaxle committed Jan 11, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit a8d6d522402a5bbc3da0824897485edc6dbdc7f6
56 changes: 7 additions & 49 deletions ui-v2/src/api/prefect.ts
Original file line number Diff line number Diff line change
@@ -3249,7 +3249,7 @@ export interface components {
* Trigger
* @description The criteria for which events this Automation covers and how it will respond to the presence or absence of those events
*/
trigger: components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Output"] | components["schemas"]["SequenceTrigger-Output"] | components["schemas"]["CompositeTrigger-Output"];
trigger: components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Output"] | components["schemas"]["SequenceTrigger-Output"];
/**
* Actions
* @description The actions to perform when this Automation triggers
@@ -3298,7 +3298,7 @@ export interface components {
* Trigger
* @description The criteria for which events this Automation covers and how it will respond to the presence or absence of those events
*/
trigger: components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Input"] | components["schemas"]["SequenceTrigger-Input"] | components["schemas"]["CompositeTrigger-Input"];
trigger: components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Input"] | components["schemas"]["SequenceTrigger-Input"];
/**
* Actions
* @description The actions to perform when this Automation triggers
@@ -3392,7 +3392,7 @@ export interface components {
* Trigger
* @description The criteria for which events this Automation covers and how it will respond to the presence or absence of those events
*/
trigger: components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Input"] | components["schemas"]["SequenceTrigger-Input"] | components["schemas"]["CompositeTrigger-Input"];
trigger: components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Input"] | components["schemas"]["SequenceTrigger-Input"];
/**
* Actions
* @description The actions to perform when this Automation triggers
@@ -4796,48 +4796,6 @@ export interface components {
*/
message?: string | null;
};
/**
* CompositeTrigger
* @description Requires some number of triggers to have fired within the given time period.
*/
"CompositeTrigger-Input": {
/**
* Type
* @enum {string}
*/
type: "compound" | "sequence";
/**
* Id
* Format: uuid
* @description The unique ID of this trigger
*/
id?: string;
/** Triggers */
triggers: (components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Input"] | components["schemas"]["SequenceTrigger-Input"] | components["schemas"]["CompositeTrigger-Input"])[];
/** Within */
within: number | null;
};
/**
* CompositeTrigger
* @description Requires some number of triggers to have fired within the given time period.
*/
"CompositeTrigger-Output": {
/**
* Type
* @enum {string}
*/
type: "compound" | "sequence";
/**
* Id
* Format: uuid
* @description The unique ID of this trigger
*/
id?: string;
/** Triggers */
triggers: (components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Output"] | components["schemas"]["SequenceTrigger-Output"] | components["schemas"]["CompositeTrigger-Output"])[];
/** Within */
within: number | null;
};
/**
* CompoundTrigger
* @description A composite trigger that requires some number of triggers to have
@@ -4857,7 +4815,7 @@ export interface components {
*/
id?: string;
/** Triggers */
triggers: (components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Input"] | components["schemas"]["SequenceTrigger-Input"] | components["schemas"]["CompositeTrigger-Input"])[];
triggers: (components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Input"] | components["schemas"]["SequenceTrigger-Input"])[];
/** Within */
within: number | null;
/** Require */
@@ -4882,7 +4840,7 @@ export interface components {
*/
id?: string;
/** Triggers */
triggers: (components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Output"] | components["schemas"]["SequenceTrigger-Output"] | components["schemas"]["CompositeTrigger-Output"])[];
triggers: (components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Output"] | components["schemas"]["SequenceTrigger-Output"])[];
/** Within */
within: number | null;
/** Require */
@@ -8114,7 +8072,7 @@ export interface components {
*/
id?: string;
/** Triggers */
triggers: (components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Input"] | components["schemas"]["SequenceTrigger-Input"] | components["schemas"]["CompositeTrigger-Input"])[];
triggers: (components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Input"] | components["schemas"]["SequenceTrigger-Input"])[];
/** Within */
within: number | null;
};
@@ -8137,7 +8095,7 @@ export interface components {
*/
id?: string;
/** Triggers */
triggers: (components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Output"] | components["schemas"]["SequenceTrigger-Output"] | components["schemas"]["CompositeTrigger-Output"])[];
triggers: (components["schemas"]["EventTrigger"] | components["schemas"]["CompoundTrigger-Output"] | components["schemas"]["SequenceTrigger-Output"])[];
/** Within */
within: number | null;
};