Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WeeklyWindow

import type { WeeklyWindow } from "https://googleapis.deno.dev/v1/clouddeploy:v1.ts";

Weekly windows. For example, blocking actions every Saturday and Sunday. Another example would be blocking actions every weekday from 5pm to midnight.

interface WeeklyWindow {
daysOfWeek?:
| "DAY_OF_WEEK_UNSPECIFIED"
| "MONDAY"
| "TUESDAY"
| "WEDNESDAY"
| "THURSDAY"
| "FRIDAY"
| "SATURDAY"
| "SUNDAY"[];
endTime?: TimeOfDay;
startTime?: TimeOfDay;
}

§Properties

§
daysOfWeek?: "DAY_OF_WEEK_UNSPECIFIED" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY"[]
[src]

Optional. Days of week. If left empty, all days of the week will be included.

§
endTime?: TimeOfDay
[src]

Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.

§
startTime?: TimeOfDay
[src]

Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.