mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: plumb time_til_autostop_notify template field (#26439)
This commit is contained in:
Generated
+19
@@ -3686,6 +3686,12 @@ export interface CreateTemplateRequest {
|
||||
* but can be set to 0 to disable activity bumping.
|
||||
*/
|
||||
readonly activity_bump_ms?: number;
|
||||
/**
|
||||
* TimeTilAutostopNotifyMillis allows optionally specifying the duration
|
||||
* before the autostop deadline at which a reminder notification is sent for
|
||||
* workspaces created from this template. Defaults to 0 (disabled).
|
||||
*/
|
||||
readonly time_til_autostop_notify_ms?: number;
|
||||
/**
|
||||
* AutostopRequirement allows optionally specifying the autostop requirement
|
||||
* for workspaces created from this template. This is an enterprise feature.
|
||||
@@ -8168,6 +8174,12 @@ export interface Template {
|
||||
readonly icon: string;
|
||||
readonly default_ttl_ms: number;
|
||||
readonly activity_bump_ms: number;
|
||||
/**
|
||||
* TimeTilAutostopNotifyMillis is the duration before the workspace's
|
||||
* autostop deadline at which a reminder notification is sent. 0 disables
|
||||
* the notification.
|
||||
*/
|
||||
readonly time_til_autostop_notify_ms: number;
|
||||
/**
|
||||
* AutostopRequirement and AutostartRequirement are enterprise features. Its
|
||||
* value is only used if your license is entitled to use the advanced template
|
||||
@@ -9106,6 +9118,13 @@ export interface UpdateTemplateMeta {
|
||||
* but can be set to 0 to disable activity bumping.
|
||||
*/
|
||||
readonly activity_bump_ms?: number;
|
||||
/**
|
||||
* TimeTilAutostopNotifyMillis allows optionally specifying the duration
|
||||
* before the autostop deadline at which a reminder notification is sent for
|
||||
* workspaces created from this template. Defaults to 0 (disabled). Omitting
|
||||
* the field keeps the existing value.
|
||||
*/
|
||||
readonly time_til_autostop_notify_ms?: number;
|
||||
/**
|
||||
* AutostopRequirement and AutostartRequirement can only be set if your license
|
||||
* includes the advanced template scheduling feature. If you attempt to set this
|
||||
|
||||
+4
-1
@@ -19,7 +19,10 @@ import TemplateSettingsPage from "./TemplateSettingsPage";
|
||||
type FormValues = Required<
|
||||
Omit<
|
||||
UpdateTemplateMeta,
|
||||
"default_ttl_ms" | "activity_bump_ms" | "deprecation_message"
|
||||
| "default_ttl_ms"
|
||||
| "activity_bump_ms"
|
||||
| "time_til_autostop_notify_ms"
|
||||
| "deprecation_message"
|
||||
>
|
||||
>;
|
||||
|
||||
|
||||
@@ -899,6 +899,7 @@ export const MockTemplate: TypesGen.Template = {
|
||||
description: "This is a test description.",
|
||||
default_ttl_ms: 24 * 60 * 60 * 1000,
|
||||
activity_bump_ms: 1 * 60 * 60 * 1000,
|
||||
time_til_autostop_notify_ms: 0,
|
||||
autostop_requirement: {
|
||||
days_of_week: ["sunday"],
|
||||
weeks: 1,
|
||||
|
||||
Reference in New Issue
Block a user