@mathrunet/masamune
Version:
Manages packages for the server portion (NodeJS) of the Masamune framework.
40 lines (39 loc) • 1.35 kB
TypeScript
import * as functions from "firebase-functions/v2";
import { FunctionsBase, HttpFunctionsOptions } from "./functions_base";
export { CallableRequest } from "firebase-functions/v2/https";
/**
* Base class for defining the data of Functions for executing the Call method of Functions.
*
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
*/
export declare abstract class CallProcessFunctionBase extends FunctionsBase {
/**
* Base class for defining the data of Functions for executing the Call method of Functions.
*
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
*/
constructor(options?: HttpFunctionsOptions);
/**
* Specify the actual contents of the process.
*
* 実際の処理の中身を指定します。
*
* @param {any} query
* Query passed to Functions.
*
* Functionsに渡されたクエリ。
*
* @returns {{ [key: string]: any }}
* Return value of the process.
*
* 処理の戻り値。
*/
abstract process(query: functions.https.CallableRequest<any>): Promise<{
[key: string]: any;
}>;
abstract id: string;
data: {
[key: string]: any;
};
build(regions: string[]): Function;
}