UNPKG

@mathrunet/masamune

Version:

Manages packages for the server portion (NodeJS) of the Masamune framework.

34 lines (33 loc) 1.19 kB
import { FunctionsBase, SchedulerFunctionsOptions } from "./functions_base"; /** * Base class for defining the data of Functions for periodic scheduled execution. * * 定期スケジュール実行用のFunctionのデータを定義するためのベースクラス。 */ export declare abstract class ScheduleProcessFunctionBase extends FunctionsBase { /** * Base class for defining the data of Functions for periodic scheduled execution. * * 定期スケジュール実行用のFunctionのデータを定義するためのベースクラス。 */ constructor(options?: SchedulerFunctionsOptions); /** * Specify the schedule to execute the process in cron format. * * 処理を実行するスケジュールをcron形式で指定します。 * * https://firebase.google.com/docs/functions/schedule-functions */ abstract schedule: string; /** * Specify the actual contents of the process. * * 実際の処理の中身を指定します。 */ abstract process(): Promise<void>; abstract id: string; data: { [key: string]: any; }; build(regions: string[]): Function; }