UNPKG

@mathrunet/masamune

Version:

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

245 lines 13.7 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Functions = void 0; const data = __importStar(require("./lib/src/functions_data")); /** * Define a list of applicable Functions for FirebaseFunctions. * * FirebaseFunctions用の適用可能なFunctionの一覧を定義します。 */ exports.Functions = { /** * Delete the FirebaseAuthentication user. * * FirebaseAuthenticationのユーザーを削除するようにします。 */ deleteUser: (options = {}) => new data.FunctionsData({ id: "delete_user", func: require("./functions/delete_user"), options: options }), /** * When a document is deleted, the related collections should be deleted together. * * ドキュメントが削除された場合関連するコレクションをまとめて削除するようにします。 */ deleteDocuments: (options = {}) => new data.FunctionsData({ id: "delete_documents", func: require("./functions/delete_documents"), options: options }), /** * Synchronize data to Algolia. * * Algoliaにデータを同期します。 */ algolia: (options = {}) => new data.FunctionsData({ id: "algolia", func: require("./functions/algolia"), options: options }), /** * Get latitude and longitude with GeocodingAPI. * * GeocodingAPIで緯度経度を取得します。 */ geocoding: (options = {}) => new data.FunctionsData({ id: "geocoding", func: require("./functions/geocoding"), options: options }), /** * Function for sending PUSH notifications. * * PUSH通知を送信するためのFunction。 */ sendNotification: (options = {}) => new data.FunctionsData({ id: "send_notification", func: require("./functions/send_notification"), options: options }), /** * Function for periodic processing. * * 定期的に処理するためのFunction。 */ scheduler: (options = {}) => new data.FunctionsData({ id: "scheduler", func: require("./functions/scheduler"), options: options }), /** * The text is generated using Open AI's GPT. * * Open AIのChat GPTを利用して文章を生成します。 */ openAIChatGPT: (options = {}) => new data.FunctionsData({ id: "openai_chat_gpt", func: require("./functions/openai_chat_gpt"), options: options }), /** * Obtain an Agora.io security token. * * Agora.ioのセキュリティトークンを取得します。 */ agoraToken: (options = {}) => new data.FunctionsData({ id: "agora_token", func: require("./functions/agora_token"), options: options }), /** * Convert files generated by Agora.io's cloud recording into an easy-to-handle format from within the app. * * It is executed when the file is saved to FirebaseStorage. * * Agora.ioのクラウドレコーディングで生成されたファイルをアプリ上から扱いやすい形式に変換します。 * * FirebaseStorageにファイルが保存されたタイミングで実行されます。 */ agoraCloudRecording: (options = {}) => new data.FunctionsData({ id: "agora_cloud_recording", func: require("./functions/agora_cloud_recording"), options: options }), /** * Performs various Stripe processes. * * Firestore integration is a must; please make Firestore available as well. * * Stripeの各種処理を実行します。 * * Firestoreとの連携が必須です。Firestoreも利用可能にしてください。 */ stripe: (options = {}) => new data.FunctionsData({ id: "stripe", func: require("./functions/stripe"), options: options }), /** * Receives and processes webhooks from Stripe. * * Please register the URL when you deploy this in your Stripe webhook settings. * * Firestore integration is a must; please make Firestore available as well. * * StripeからのWebhookを受け取り処理を行います。 * * こちらをデプロイした際のURLをStripeのWebhook設定に登録してください。 * * Firestoreとの連携が必須です。Firestoreも利用可能にしてください。 */ stripeWebhook: (options = {}) => new data.FunctionsData({ id: "stripe_webhook", func: require("./functions/stripe_webhook"), options: options }), /** * Receive and process webhooks for Stripe Connect. * * If you do not use Stripe Connect, do not configure it as a Webhook. * * Please register the URL when you deploy this in your Stripe webhook settings. * * Firestore integration is a must; please make Firestore available as well. * * Stripe Connect用のWebhookを受信して処理します。 * * Stripe Connectを利用しない場合はWebhookとして設定しないでください。 * * こちらをデプロイした際のURLをStripeのWebhook設定に登録してください。 * * Firestoreとの連携が必須です。Firestoreも利用可能にしてください。 */ stripeWebhookConnect: (options = {}) => new data.FunctionsData({ id: "stripe_webhook_connect", func: require("./functions/stripe_webhook_connect"), options: options }), /** * Webhook for proper redirection when 3D Secure authentication is required. * * It is used by accessing the URL directly. * * Please set here for [returnUrl]. * * 3Dセキュア認証が必要な場合、適切なリダイレクトを行うためのWebhookです。 * * 直接URLにアクセスすることで利用します。 * * [returnUrl]にこちらを設定してください。 */ stripeWebhookSecure: (options = {}) => new data.FunctionsData({ id: "stripe_webhook_secure", func: require("./functions/stripe_webhook_secure"), options: options }), /** * Send email via Gmail. * * Gmailでメールを送信します。 */ gmail: (options = {}) => new data.FunctionsData({ id: "gmail", func: require("./functions/gmail"), options: options }), /** * Send mail through SendGrid. * * SendGridでメールを送信します。 */ sendGrid: (options = {}) => new data.FunctionsData({ id: "send_grid", func: require("./functions/send_grid"), options: options }), /** * After being redirected from [android_auth_code], you will get a refresh token to connect to Google's API. Applications Library System Users Volumes bin cores dev etc home opt private sbin tmp usr var Execute [android_auth_code] after registering the required information. * * [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。 * 必要情報を登録した後[android_auth_code]を実行してください。 */ androidAuthCode: (options = {}) => new data.FunctionsData({ id: "android_auth_code", func: require("./functions/android_auth_code"), options: options }), /** * After being redirected from [android_auth_code], you will get a refresh token to connect to Google's API. Applications Library System Users Volumes bin cores dev etc home opt private sbin tmp usr var Execute [android_auth_code] after registering the required information. * * [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。 * 必要情報を登録した後[android_auth_code]を実行してください。 */ androidToken: (options = {}) => new data.FunctionsData({ id: "android_token", func: require("./functions/android_token"), options: options }), /** * Performs a consumption-type in-app purchase. The value of the field in the document specified in [path] is added to [value]. * * 消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を[value]に加算します。 */ consumableVerifyAndroid: (options = {}) => new data.FunctionsData({ id: "consumable_verify_android", func: require("./functions/consumable_verify_android"), options: options }), /** * Performs a consumption-type in-app purchase. The value of the field in the document specified in [path] is added to [value]. * * 消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を[value]に加算します。 */ consumableVerifyIOS: (options = {}) => new data.FunctionsData({ id: "consumable_verify_ios", func: require("./functions/consumable_verify_ios"), options: options }), /** * Performs non-consumable in-app purchases. Unlock by setting the value of the field in the document specified in [path] to `true`. * * 非消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を`true`にすることでアンロックを行います。 */ nonconsumableVerifyAndroid: (options = {}) => new data.FunctionsData({ id: "nonconsumable_verify_android", func: require("./functions/nonconsumable_verify_android"), options: options }), /** * Performs non-consumable in-app purchases. Unlock by setting the value of the field in the document specified in [path] to `true`. * * 非消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を`true`にすることでアンロックを行います。 */ nonconsumableVerifyIOS: (options = {}) => new data.FunctionsData({ id: "nonconsumable_verify_ios", func: require("./functions/nonconsumable_verify_ios"), options: options }), /** * This is a webhook endpoint for Android. you can create a `purchasing` topic in GCP's pub/sub and set the principal to "google-play-developer-notifications@system.gserviceaccount.com" to receive notifications. * * Android用のWebhookのエンドポイントです。GCPのpub/subに`purchasing`のトピックを作成しプリンシパルに「google-play-developer-notifications@system.gserviceaccount.com」を設定することで通知を受け取ることができるようになります。 */ purchaseWebhookAndroid: (options = {}) => new data.FunctionsData({ id: "purchase_webhook_android", func: require("./functions/purchase_webhook_android"), options: options }), /** * Webhook endpoint for IOS, which allows you to receive notifications by setting the endpoint in AppStoreConnect's [App]->[App Information]->[App Store Server Notification]. * * IOS用のWebhookのエンドポイントです。AppStoreConnectの[App]->[App情報]->[App Storeサーバ通知]にエンドポイントを設定することで通知を受け取ることができるようになります。 */ purchaseWebhookIOS: (options = {}) => new data.FunctionsData({ id: "purchase_webhook_ios", func: require("./functions/purchase_webhook_ios"), options: options }), /** * Verify subscriptions and add data. * * サブスクリプションの検証とデータの追加を行います。 */ subscriptionVerifyAndroid: (options = {}) => new data.FunctionsData({ id: "subscription_verify_android", func: require("./functions/subscription_verify_android"), options: options }), /** * Verify subscriptions and add data. * * サブスクリプションの検証とデータの追加を行います。 */ subscriptionVerifyIOS: (options = {}) => new data.FunctionsData({ id: "subscription_verify_ios", func: require("./functions/subscription_verify_ios"), options: options }), /** * Convert videos uploaded to storage to HLS format. * * ストレージにアップロードされた動画をHLS形式に変換します。 */ hls: (options = {}) => new data.FunctionsData({ id: "hls", func: require("./functions/hls"), options: options }), /** * Endpoints for testing. * * テストを行うためのエンドポイントです。 */ test: (options = {}) => new data.FunctionsData({ id: "test", func: require("./functions/test"), options: options }), }; //# sourceMappingURL=functions.js.map