UNPKG

@intuitionrobotics/thunderstorm

Version:
59 lines 3.14 kB
/* * Thunderstorm is a full web app framework! * * Typescript & Express backend infrastructure that natively runs on firebase function * Typescript & React frontend infrastructure * * Copyright (C) 2020 Intuition Robotics * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ export * from "./app-backend/modules/proxy/RemoteProxyCaller.js"; export * from "./app-backend/modules/proxy/RemoteProxy.js"; export * from "./app-backend/modules/CleanupScheduler.js"; export * from "./app-backend/modules/FirestoreBackupScheduler.js"; export * from "./app-backend/modules/server/server-errors.js"; export * from "./app-backend/modules/server/server-api.js"; export * from "./app-backend/modules/server/HttpServer.js"; export * from "./app-backend/modules/server/ApiFunction.js"; // Raw-Express endpoint primitives — the endpoint API: a typed `handler()` // wrapper (+ `redirectHandler`), composable validate/auth middleware // (`validateBody`, `makeRequireAuth`, `useMiddleware`), and the shared error // pipeline. (The legacy `ServerApi` class was removed — see ROADMAP #8.) export * from "./app-backend/modules/server/handler.js"; export * from "./app-backend/modules/server/validators.js"; export * from "./app-backend/modules/server/requireAuth.js"; export * from "./app-backend/modules/server/api-error.js"; export * from "./app-backend/modules/server/app-middleware.js"; // Side-effect import: loads the `req.account` global augmentation into the // emitted type graph so consumers of @intuitionrobotics/thunderstorm/backend // see it (without this, `req.account` silently degrades to `any`). import "./app-backend/modules/server/express-augmentation.js"; // Re-exported from /shared so endpoint files can write // `import {handler, HttpMethod} from "@intuitionrobotics/thunderstorm/backend"` // without a second import line. export { HttpMethod } from "./shared/types.js"; export * from "./app-backend/modules/http/AxiosHttpModule.js"; export * from "./app-backend/modules/http/types.js"; export * from "./app-backend/modules/ForceUpgrade.js"; export * from "./app-backend/utils/promisify-request.js"; export * from "./app-backend/utils/to-be-removed.js"; export * from "./app-backend/utils/types.js"; export * from "./app-backend/utils/LogClient_File.js"; export * from "./app-backend/utils/file.js"; export * from "./app-backend/exceptions.js"; export * from "./app-backend/core/Storm.js"; // Smart, transparent health endpoint — mount explicitly: `v1.get("/health", healthHandler())`. export * from "./app-backend/api/v1/utils/health/get.js"; export * from "./shared/health.js"; //# sourceMappingURL=backend.js.map