Update generated TypeScript types

This commit is contained in:
github-actions[bot] 2025-09-25 15:52:55 +00:00
parent e4f43aa3b6
commit a503c72c12
5 changed files with 87 additions and 0 deletions

View File

@ -39,6 +39,10 @@ export interface CreateNotificationTemplate {
* Handlebars template content for rendering notifications
*/
templateBody: string;
/**
* Handlebars template for notification subject line
*/
templateSubject: string;
}
/**

View File

@ -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;
}

View File

@ -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;
}

View File

@ -409,6 +409,7 @@ export enum EntityStatus {
Draft = "Draft",
InReview = "In Review",
Rejected = "Rejected",
Unprocessed = "Unprocessed",
}
/**

View File

@ -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.
*/