-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update exp docgen script and add functions-exp docs (#3412)
- Loading branch information
Showing
40 changed files
with
482 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
## API Report File for "@firebase/functions-types-exp" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
import { FirebaseApp } from '@firebase/app-types-exp'; | ||
import { FirebaseError } from '@firebase/util'; | ||
|
||
// @public | ||
export interface Functions { | ||
app: FirebaseApp; | ||
|
||
region: string; | ||
} | ||
|
||
// @public (undocumented) | ||
export interface FunctionsError extends FirebaseError { | ||
readonly code: FunctionsErrorCode; | ||
|
||
readonly details?: any; | ||
} | ||
|
||
// @public | ||
export type FunctionsErrorCode = | ||
| 'ok' | ||
| 'cancelled' | ||
| 'unknown' | ||
| 'invalid-argument' | ||
| 'deadline-exceeded' | ||
| 'not-found' | ||
| 'already-exists' | ||
| 'permission-denied' | ||
| 'resource-exhausted' | ||
| 'failed-precondition' | ||
| 'aborted' | ||
| 'out-of-range' | ||
| 'unimplemented' | ||
| 'internal' | ||
| 'unavailable' | ||
| 'data-loss' | ||
| 'unauthenticated'; | ||
|
||
// @public | ||
export interface HttpsCallable { | ||
// (undocumented) | ||
(data?: {} | null): Promise<HttpsCallableResult>; | ||
} | ||
|
||
// @public | ||
export interface HttpsCallableOptions { | ||
// (undocumented) | ||
timeout?: number; // in millis | ||
} | ||
|
||
// @public | ||
export interface HttpsCallableResult { | ||
// (undocumented) | ||
readonly data: any; | ||
} | ||
|
||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ getPlatformInfoString(): string; | |
``` | ||
<b>Returns:</b> | ||
|
||
`string` | ||
string | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@firebase/app-types](./app-types.md) > [VersionService](./app-types.versionservice.md) > [library](./app-types.versionservice.library.md) | ||
|
||
## VersionService.library property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
library: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@firebase/app-types](./app-types.md) > [VersionService](./app-types.versionservice.md) | ||
|
||
## VersionService interface | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface VersionService | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [library](./app-types.versionservice.library.md) | string | | | ||
| [version](./app-types.versionservice.version.md) | string | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@firebase/app-types](./app-types.md) > [VersionService](./app-types.versionservice.md) > [version](./app-types.versionservice.version.md) | ||
|
||
## VersionService.version property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
version: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@firebase/functions-types](./functions-types.md) > [Functions](./functions-types.functions.md) > [app](./functions-types.functions.app.md) | ||
|
||
## Functions.app property | ||
|
||
The FirebaseApp this Functions instance is associated with. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
app: FirebaseApp; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@firebase/functions-types](./functions-types.md) > [Functions](./functions-types.functions.md) | ||
|
||
## Functions interface | ||
|
||
`Functions` represents a Functions instance, and is a required argument for all Functions operations. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface Functions | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [app](./functions-types.functions.app.md) | [FirebaseApp](./app-types.firebaseapp.md) | The FirebaseApp this Functions instance is associated with. | | ||
| [region](./functions-types.functions.region.md) | string | The region the callable Cloud Functions are located in. Default is <code>us-central-1</code>. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@firebase/functions-types](./functions-types.md) > [Functions](./functions-types.functions.md) > [region](./functions-types.functions.region.md) | ||
|
||
## Functions.region property | ||
|
||
The region the callable Cloud Functions are located in. Default is `us-central-1`<!-- -->. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
region: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@firebase/functions-types](./functions-types.md) > [FunctionsError](./functions-types.functionserror.md) > [code](./functions-types.functionserror.code.md) | ||
|
||
## FunctionsError.code property | ||
|
||
A standard error code that will be returned to the client. This also determines the HTTP status code of the response, as defined in code.proto. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
readonly code: FunctionsErrorCode; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@firebase/functions-types](./functions-types.md) > [FunctionsError](./functions-types.functionserror.md) > [details](./functions-types.functionserror.details.md) | ||
|
||
## FunctionsError.details property | ||
|
||
Extra data to be converted to JSON and included in the error response. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
readonly details?: any; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@firebase/functions-types](./functions-types.md) > [FunctionsError](./functions-types.functionserror.md) | ||
|
||
## FunctionsError interface | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface FunctionsError extends FirebaseError | ||
``` | ||
<b>Extends:</b> FirebaseError | ||
## Properties | ||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [code](./functions-types.functionserror.code.md) | [FunctionsErrorCode](./functions-types.functionserrorcode.md) | A standard error code that will be returned to the client. This also determines the HTTP status code of the response, as defined in code.proto. | | ||
| [details](./functions-types.functionserror.details.md) | any | Extra data to be converted to JSON and included in the error response. | | ||
Oops, something went wrong.