UNPKG

firebase-functions

Version:
74 lines (73 loc) 3.88 kB
"use strict"; // The MIT License (MIT) // // Copyright (c) 2021 Firebase // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. Object.defineProperty(exports, "__esModule", { value: true }); exports.app = exports.config = exports.params = exports.Change = exports.onInit = exports.setGlobalOptions = exports.firestore = exports.testLab = exports.remoteConfig = exports.scheduler = exports.eventarc = exports.tasks = exports.logger = exports.pubsub = exports.identity = exports.https = exports.storage = exports.database = exports.alerts = void 0; /** * The 2nd gen API for Cloud Functions for Firebase. * This SDK supports deep imports. For example, the namespace * `pubsub` is available at `firebase-functions/v2` or is directly importable * from `firebase-functions/v2/pubsub`. * @packageDocumentation */ const logger = require("../logger"); exports.logger = logger; const alerts = require("./providers/alerts"); exports.alerts = alerts; const database = require("./providers/database"); exports.database = database; const eventarc = require("./providers/eventarc"); exports.eventarc = eventarc; const https = require("./providers/https"); exports.https = https; const identity = require("./providers/identity"); exports.identity = identity; const pubsub = require("./providers/pubsub"); exports.pubsub = pubsub; const scheduler = require("./providers/scheduler"); exports.scheduler = scheduler; const storage = require("./providers/storage"); exports.storage = storage; const tasks = require("./providers/tasks"); exports.tasks = tasks; const remoteConfig = require("./providers/remoteConfig"); exports.remoteConfig = remoteConfig; const testLab = require("./providers/testLab"); exports.testLab = testLab; const firestore = require("./providers/firestore"); exports.firestore = firestore; var options_1 = require("./options"); Object.defineProperty(exports, "setGlobalOptions", { enumerable: true, get: function () { return options_1.setGlobalOptions; } }); var core_1 = require("./core"); Object.defineProperty(exports, "onInit", { enumerable: true, get: function () { return core_1.onInit; } }); var change_1 = require("../common/change"); Object.defineProperty(exports, "Change", { enumerable: true, get: function () { return change_1.Change; } }); // NOTE: Equivalent to `export * as params from "../params"` but api-extractor doesn't support that syntax. const params = require("../params"); exports.params = params; // NOTE: Required to support the Functions Emulator which monkey patches `functions.config()` // TODO(danielylee): Remove in next major release. var config_1 = require("../v1/config"); Object.defineProperty(exports, "config", { enumerable: true, get: function () { return config_1.config; } }); // Required for v1 Emulator support. const app_1 = require("../common/app"); exports.app = { setEmulatedAdminApp: app_1.setApp };