|
1 | 1 | const functions = require("../../../../src/v1/index");
|
2 | 2 | const functionsv2 = require("../../../../src/v2/index");
|
3 |
| -const firestoreTranslateText = require("../../extsdk/translate").firestoreTranslateText; |
4 |
| -const backfill = require("../../extsdk/local").backfill; |
5 | 3 | const params = require("../../../../src/params");
|
6 | 4 | params.clearParams();
|
7 | 5 |
|
@@ -30,27 +28,3 @@ exports.v2http = functionsv2.https.onRequest({
|
30 | 28 | }, (req, resp) => {
|
31 | 29 | resp.status(200).send("Hello world!");
|
32 | 30 | });
|
33 |
| - |
34 |
| -// A Firebase extension by ref |
35 |
| -const extRef1 = firestoreTranslateText("extRef1", { |
36 |
| - "COLLECTION_PATH": "collection1", |
37 |
| - "INPUT_FIELD_NAME": "input1", |
38 |
| - "LANGUAGES": "de,es", |
39 |
| - "OUTPUT_FIELD_NAME": "translated", |
40 |
| - "_EVENT_ARC_REGION": "us-central1", |
41 |
| - "_FUNCTION_LOCATION": "us-central1", |
42 |
| -}); |
43 |
| -exports.extRef1 = extRef1; |
44 |
| - |
45 |
| -// A Firebase function defined by extension event |
46 |
| -const ttOnStart = extRef1.onStart((event) => { |
47 |
| - console.log("onStart got event: " + JSON.stringify(event, null, 2)); |
48 |
| -}); |
49 |
| -exports.ttOnStart = ttOnStart; |
50 |
| - |
51 |
| -// A Firebase extension by localPath |
52 |
| -const extLocal2 = backfill("extLocal2", { |
53 |
| - DO_BACKFILL: "False", |
54 |
| - LOCATION: "us-central1", |
55 |
| -}); |
56 |
| -exports.extLocal2 = extLocal2; |
0 commit comments