-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de549e1
commit 9460e36
Showing
14 changed files
with
3,548 additions
and
3,332 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
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,26 @@ | ||
const input = | ||
` | ||
/** | ||
* Some comment | ||
*/ | ||
export type RecordActionAPIParams = AxiosRequestConfig & { | ||
/** | ||
* Id of a record taken from {@link RecordJSON} | ||
*/ | ||
recordId: string; | ||
} | ||
` | ||
|
||
const outputs = [ | ||
'/**', | ||
'* Some comment', | ||
'* @typedef {object} RecordActionAPIParams', | ||
'* @property {string} recordId Id of a record taken from {@link RecordJSON}', | ||
'*/', | ||
] | ||
|
||
|
||
module.exports = { | ||
input, | ||
outputs, | ||
} |
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,43 @@ | ||
const input = | ||
` | ||
/** | ||
* @alias BuildHandlerOptions | ||
* | ||
* @memberof module:admin-bro-firebase-functions | ||
*/ | ||
export type BuildHandlerOptions = { | ||
/** Function region */ | ||
region: string; | ||
/** Optional before async hook which can be used to initialize database */ | ||
before?: () => Promise<any>; | ||
/** | ||
* custom authentication options | ||
*/ | ||
auth?: { | ||
/** | ||
* secret which is used to encrypt the session cookie | ||
*/ | ||
secret: string; | ||
/** | ||
* authenticate function | ||
*/ | ||
authenticate?: ( | ||
email: string, | ||
password: string) => Promise<CurrentAdmin | null> | CurrentAdmin | null; | ||
}; | ||
} | ||
` | ||
|
||
const outputs = [ | ||
'/**', | ||
'* @property {object} [auth] custom authentication options', | ||
'* @property {string} auth.secret secret which is used to encrypt the session cookie', | ||
'* @property {function} [auth.authenticate] authenticate function', | ||
'*/', | ||
] | ||
|
||
|
||
module.exports = { | ||
input, | ||
outputs, | ||
} |
Oops, something went wrong.