( __startDate?: dayjs.Dayjs, )
| 133 | }; |
| 134 | |
| 135 | export const defaultWorkspaceExtension = ( |
| 136 | __startDate?: dayjs.Dayjs, |
| 137 | ): TypesGen.PutExtendWorkspaceRequest => { |
| 138 | const now = __startDate ? dayjs(__startDate) : dayjs(); |
| 139 | const fourHoursFromNow = now.add(4, "hours").utc(); |
| 140 | |
| 141 | return { |
| 142 | deadline: fourHoursFromNow.format(), |
| 143 | }; |
| 144 | }; |
| 145 | |
| 146 | export const getDisplayWorkspaceTemplateName = ( |
| 147 | workspace: TypesGen.Workspace, |