diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/events/createNotificationTemplate.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/events/createNotificationTemplate.ts index bb6f8e4176c..f58c6748ac9 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/api/events/createNotificationTemplate.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/events/createNotificationTemplate.ts @@ -39,6 +39,10 @@ export interface CreateNotificationTemplate { * Handlebars template content for rendering notifications */ templateBody: string; + /** + * Handlebars template for notification subject line + */ + templateSubject: string; } /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/events/notificationTemplateValidationRequest.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/events/notificationTemplateValidationRequest.ts new file mode 100644 index 00000000000..8e1f8fa4510 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/events/notificationTemplateValidationRequest.ts @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Collate. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * Request to validate a notification template + */ +export interface NotificationTemplateValidationRequest { + /** + * The template body to validate + */ + templateBody: string; + /** + * The template subject line to validate + */ + templateSubject: string; +} diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/events/notificationTemplateValidationResponse.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/events/notificationTemplateValidationResponse.ts new file mode 100644 index 00000000000..02286bb0e68 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/events/notificationTemplateValidationResponse.ts @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Collate. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * Response from notification template validation + */ +export interface NotificationTemplateValidationResponse { + /** + * Validation result for template body + */ + templateBody?: FieldValidation; + /** + * Validation result for template subject + */ + templateSubject?: FieldValidation; +} + +/** + * Validation result for template body + * + * Validation result for a template field + * + * Validation result for template subject + */ +export interface FieldValidation { + /** + * Error message if validation failed + */ + error?: string; + /** + * Whether the field validation passed + */ + passed: boolean; +} diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/data/spreadsheet.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/data/spreadsheet.ts index e6270e5e4e6..ef3310a5e05 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/data/spreadsheet.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/data/spreadsheet.ts @@ -409,6 +409,7 @@ export enum EntityStatus { Draft = "Draft", InReview = "In Review", Rejected = "Rejected", + Unprocessed = "Unprocessed", } /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/events/notificationTemplate.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/events/notificationTemplate.ts index 2d1d73ae653..2df4357814f 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/events/notificationTemplate.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/events/notificationTemplate.ts @@ -19,6 +19,11 @@ export interface NotificationTemplate { * Change that lead to this version of the template. */ changeDescription?: ChangeDescription; + /** + * Checksum of the default template to detect if updates are available. Only applicable to + * system templates. + */ + defaultTemplateChecksum?: string; /** * When `true` indicates the template has been soft deleted. */ @@ -47,6 +52,11 @@ export interface NotificationTemplate { * Change that lead to this version of the entity. */ incrementalChangeDescription?: ChangeDescription; + /** + * Indicates if this system template has been modified from its default version. Only + * applicable to system templates. + */ + isModifiedFromDefault?: boolean; /** * Name for the notification template (e.g., 'Default Table Template', 'Custom Pipeline * Alerts'). @@ -61,6 +71,10 @@ export interface NotificationTemplate { * Handlebars HTML template body with placeholders. */ templateBody: string; + /** + * Handlebars template for the email subject line with placeholders. + */ + templateSubject?: string; /** * Last update time corresponding to the new version of the template. */