|
1022 | 1022 | "kind": "Content", |
1023 | 1023 | "text": "> = " |
1024 | 1024 | }, |
| 1025 | + { |
| 1026 | + "kind": "Reference", |
| 1027 | + "text": "OpenFunction", |
| 1028 | + "canonicalReference": "@openfunction/functions-framework!OpenFunction:interface" |
| 1029 | + }, |
| 1030 | + { |
| 1031 | + "kind": "Content", |
| 1032 | + "text": " | " |
| 1033 | + }, |
1025 | 1034 | { |
1026 | 1035 | "kind": "Reference", |
1027 | 1036 | "text": "HttpFunction", |
|
1065 | 1074 | }, |
1066 | 1075 | { |
1067 | 1076 | "kind": "Content", |
1068 | | - "text": "<T> | " |
1069 | | - }, |
1070 | | - { |
1071 | | - "kind": "Reference", |
1072 | | - "text": "OpenFunction", |
1073 | | - "canonicalReference": "@openfunction/functions-framework!OpenFunction:interface" |
| 1077 | + "text": "<T>" |
1074 | 1078 | }, |
1075 | 1079 | { |
1076 | 1080 | "kind": "Content", |
|
1094 | 1098 | ], |
1095 | 1099 | "typeTokenRange": { |
1096 | 1100 | "startIndex": 3, |
1097 | | - "endIndex": 14 |
| 1101 | + "endIndex": 15 |
1098 | 1102 | } |
1099 | 1103 | }, |
1100 | 1104 | { |
|
1968 | 1972 | "excerptTokens": [ |
1969 | 1973 | { |
1970 | 1974 | "kind": "Content", |
1971 | | - "text": "readonly context: " |
| 1975 | + "text": "protected readonly context: " |
1972 | 1976 | }, |
1973 | 1977 | { |
1974 | 1978 | "kind": "Reference", |
|
2084 | 2088 | "name": "ProxyContext" |
2085 | 2089 | }, |
2086 | 2090 | { |
2087 | | - "kind": "Method", |
2088 | | - "canonicalReference": "@openfunction/functions-framework!OpenFunctionRuntime#response:member(1)", |
2089 | | - "docComment": "/**\n * It returns an HTTP style response object with a `code`, `headers`, and `body` property\n *\n * @param body - The data you want to send back to the client.\n *\n * @param code - The HTTP status code to return.\n *\n * @param headers - An object containing the headers to be sent with the response.\n *\n * @returns A function that takes in data, code, and headers and returns an response object.\n */\n", |
| 2091 | + "kind": "Property", |
| 2092 | + "canonicalReference": "@openfunction/functions-framework!OpenFunctionRuntime#req:member", |
| 2093 | + "docComment": "/**\n * Getter returns the request object from the trigger.\n *\n * @returns The request object.\n */\n", |
2090 | 2094 | "excerptTokens": [ |
2091 | 2095 | { |
2092 | 2096 | "kind": "Content", |
2093 | | - "text": "response(body: " |
| 2097 | + "text": "get req(): " |
2094 | 2098 | }, |
2095 | 2099 | { |
2096 | | - "kind": "Content", |
2097 | | - "text": "unknown" |
| 2100 | + "kind": "Reference", |
| 2101 | + "text": "Request", |
| 2102 | + "canonicalReference": "@types/express!~e.Request:interface" |
2098 | 2103 | }, |
2099 | 2104 | { |
2100 | 2105 | "kind": "Content", |
2101 | | - "text": ", code?: " |
| 2106 | + "text": "<import(\"express-serve-static-core\")." |
2102 | 2107 | }, |
2103 | 2108 | { |
2104 | | - "kind": "Content", |
2105 | | - "text": "number" |
| 2109 | + "kind": "Reference", |
| 2110 | + "text": "ParamsDictionary", |
| 2111 | + "canonicalReference": "@types/express-serve-static-core!ParamsDictionary:interface" |
2106 | 2112 | }, |
2107 | 2113 | { |
2108 | 2114 | "kind": "Content", |
2109 | | - "text": ", headers?: " |
| 2115 | + "text": ", any, any, import(\"qs\")." |
2110 | 2116 | }, |
2111 | 2117 | { |
2112 | 2118 | "kind": "Reference", |
2113 | | - "text": "Record", |
2114 | | - "canonicalReference": "!Record:type" |
| 2119 | + "text": "ParsedQs", |
| 2120 | + "canonicalReference": "@types/qs!~QueryString.ParsedQs:interface" |
2115 | 2121 | }, |
2116 | 2122 | { |
2117 | 2123 | "kind": "Content", |
2118 | | - "text": "<string, string>" |
| 2124 | + "text": ", " |
2119 | 2125 | }, |
2120 | 2126 | { |
2121 | | - "kind": "Content", |
2122 | | - "text": "): " |
| 2127 | + "kind": "Reference", |
| 2128 | + "text": "Record", |
| 2129 | + "canonicalReference": "!Record:type" |
2123 | 2130 | }, |
2124 | 2131 | { |
2125 | | - "kind": "Reference", |
2126 | | - "text": "HttpFunctionResponse", |
2127 | | - "canonicalReference": "@openfunction/functions-framework!HttpFunctionResponse:interface" |
| 2132 | + "kind": "Content", |
| 2133 | + "text": "<string, any>> | undefined" |
2128 | 2134 | }, |
2129 | 2135 | { |
2130 | 2136 | "kind": "Content", |
2131 | 2137 | "text": ";" |
2132 | 2138 | } |
2133 | 2139 | ], |
2134 | 2140 | "isOptional": false, |
2135 | | - "isStatic": false, |
2136 | | - "returnTypeTokenRange": { |
2137 | | - "startIndex": 8, |
| 2141 | + "releaseTag": "Public", |
| 2142 | + "name": "req", |
| 2143 | + "propertyTypeTokenRange": { |
| 2144 | + "startIndex": 1, |
2138 | 2145 | "endIndex": 9 |
2139 | 2146 | }, |
2140 | | - "releaseTag": "Public", |
2141 | | - "overloadIndex": 1, |
2142 | | - "parameters": [ |
| 2147 | + "isStatic": false |
| 2148 | + }, |
| 2149 | + { |
| 2150 | + "kind": "Property", |
| 2151 | + "canonicalReference": "@openfunction/functions-framework!OpenFunctionRuntime#res:member", |
| 2152 | + "docComment": "/**\n * Getter returns the response object from the trigger.\n *\n * @returns The res property of the trigger object.\n */\n", |
| 2153 | + "excerptTokens": [ |
2143 | 2154 | { |
2144 | | - "parameterName": "body", |
2145 | | - "parameterTypeTokenRange": { |
2146 | | - "startIndex": 1, |
2147 | | - "endIndex": 2 |
2148 | | - } |
| 2155 | + "kind": "Content", |
| 2156 | + "text": "get res(): " |
2149 | 2157 | }, |
2150 | 2158 | { |
2151 | | - "parameterName": "code", |
2152 | | - "parameterTypeTokenRange": { |
2153 | | - "startIndex": 3, |
2154 | | - "endIndex": 4 |
2155 | | - } |
| 2159 | + "kind": "Reference", |
| 2160 | + "text": "Response", |
| 2161 | + "canonicalReference": "@types/express!~e.Response:interface" |
2156 | 2162 | }, |
2157 | 2163 | { |
2158 | | - "parameterName": "headers", |
2159 | | - "parameterTypeTokenRange": { |
2160 | | - "startIndex": 5, |
2161 | | - "endIndex": 7 |
2162 | | - } |
| 2164 | + "kind": "Content", |
| 2165 | + "text": "<any, " |
| 2166 | + }, |
| 2167 | + { |
| 2168 | + "kind": "Reference", |
| 2169 | + "text": "Record", |
| 2170 | + "canonicalReference": "!Record:type" |
| 2171 | + }, |
| 2172 | + { |
| 2173 | + "kind": "Content", |
| 2174 | + "text": "<string, any>> | undefined" |
| 2175 | + }, |
| 2176 | + { |
| 2177 | + "kind": "Content", |
| 2178 | + "text": ";" |
2163 | 2179 | } |
2164 | 2180 | ], |
2165 | | - "name": "response" |
| 2181 | + "isOptional": false, |
| 2182 | + "releaseTag": "Public", |
| 2183 | + "name": "res", |
| 2184 | + "propertyTypeTokenRange": { |
| 2185 | + "startIndex": 1, |
| 2186 | + "endIndex": 5 |
| 2187 | + }, |
| 2188 | + "isStatic": false |
2166 | 2189 | }, |
2167 | 2190 | { |
2168 | 2191 | "kind": "Method", |
|
2229 | 2252 | ], |
2230 | 2253 | "name": "send" |
2231 | 2254 | }, |
| 2255 | + { |
| 2256 | + "kind": "Method", |
| 2257 | + "canonicalReference": "@openfunction/functions-framework!OpenFunctionRuntime#setTrigger:member(1)", |
| 2258 | + "docComment": "/**\n * It sets the trigger object to the request and response objects passed in\n *\n * @param req - The HTTP request object\n *\n * @param res - The HTTP response object\n */\n", |
| 2259 | + "excerptTokens": [ |
| 2260 | + { |
| 2261 | + "kind": "Content", |
| 2262 | + "text": "setTrigger(req: " |
| 2263 | + }, |
| 2264 | + { |
| 2265 | + "kind": "Reference", |
| 2266 | + "text": "Request", |
| 2267 | + "canonicalReference": "@types/express!~e.Request:interface" |
| 2268 | + }, |
| 2269 | + { |
| 2270 | + "kind": "Content", |
| 2271 | + "text": ", res?: " |
| 2272 | + }, |
| 2273 | + { |
| 2274 | + "kind": "Reference", |
| 2275 | + "text": "Response", |
| 2276 | + "canonicalReference": "@types/express!~e.Response:interface" |
| 2277 | + }, |
| 2278 | + { |
| 2279 | + "kind": "Content", |
| 2280 | + "text": "): " |
| 2281 | + }, |
| 2282 | + { |
| 2283 | + "kind": "Content", |
| 2284 | + "text": "void" |
| 2285 | + }, |
| 2286 | + { |
| 2287 | + "kind": "Content", |
| 2288 | + "text": ";" |
| 2289 | + } |
| 2290 | + ], |
| 2291 | + "isOptional": false, |
| 2292 | + "isStatic": false, |
| 2293 | + "returnTypeTokenRange": { |
| 2294 | + "startIndex": 5, |
| 2295 | + "endIndex": 6 |
| 2296 | + }, |
| 2297 | + "releaseTag": "Public", |
| 2298 | + "overloadIndex": 1, |
| 2299 | + "parameters": [ |
| 2300 | + { |
| 2301 | + "parameterName": "req", |
| 2302 | + "parameterTypeTokenRange": { |
| 2303 | + "startIndex": 1, |
| 2304 | + "endIndex": 2 |
| 2305 | + } |
| 2306 | + }, |
| 2307 | + { |
| 2308 | + "parameterName": "res", |
| 2309 | + "parameterTypeTokenRange": { |
| 2310 | + "startIndex": 3, |
| 2311 | + "endIndex": 4 |
| 2312 | + } |
| 2313 | + } |
| 2314 | + ], |
| 2315 | + "name": "setTrigger" |
| 2316 | + }, |
2232 | 2317 | { |
2233 | 2318 | "kind": "Property", |
2234 | 2319 | "canonicalReference": "@openfunction/functions-framework!OpenFunctionRuntime#sidecarPort:member", |
|
2255 | 2340 | "endIndex": 2 |
2256 | 2341 | }, |
2257 | 2342 | "isStatic": false |
| 2343 | + }, |
| 2344 | + { |
| 2345 | + "kind": "Property", |
| 2346 | + "canonicalReference": "@openfunction/functions-framework!OpenFunctionRuntime#trigger:member", |
| 2347 | + "docComment": "/**\n * The optional trigger of OpenFunction.\n */\n", |
| 2348 | + "excerptTokens": [ |
| 2349 | + { |
| 2350 | + "kind": "Content", |
| 2351 | + "text": "protected trigger?: " |
| 2352 | + }, |
| 2353 | + { |
| 2354 | + "kind": "Reference", |
| 2355 | + "text": "OpenFunctionTrigger", |
| 2356 | + "canonicalReference": "@openfunction/functions-framework!OpenFunctionTrigger:type" |
| 2357 | + }, |
| 2358 | + { |
| 2359 | + "kind": "Content", |
| 2360 | + "text": ";" |
| 2361 | + } |
| 2362 | + ], |
| 2363 | + "isOptional": true, |
| 2364 | + "releaseTag": "Public", |
| 2365 | + "name": "trigger", |
| 2366 | + "propertyTypeTokenRange": { |
| 2367 | + "startIndex": 1, |
| 2368 | + "endIndex": 2 |
| 2369 | + }, |
| 2370 | + "isStatic": false |
2258 | 2371 | } |
2259 | 2372 | ], |
2260 | 2373 | "implementsTokenRanges": [] |
|
0 commit comments