Skip to content

Commit e109f95

Browse files
committed
Updated typedoc-plugin-markdown, extended Index section in README
1 parent 4b19233 commit e109f95

5 files changed

+90
-40
lines changed

README.md

+69-23
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,26 @@
1212

1313
## Index
1414

15-
<!-- MarkdownTOC levels="2" autolink="true" -->
15+
<!-- MarkdownTOC levels="2,3" autolink="true" -->
1616

1717
- [Supported Platforms](#supported-platforms)
1818
- [Installation](#installation)
19+
- [Adding required configuration files](#adding-required-configuration-files)
1920
- [Type Aliases](#type-aliases)
21+
- [DynamicLinkAndroidInfo](#dynamiclinkandroidinfo)
22+
- [DynamicLinkGoogleAnalyticsInfo](#dynamiclinkgoogleanalyticsinfo)
23+
- [DynamicLinkIosInfo](#dynamiclinkiosinfo)
24+
- [DynamicLinkItunesAnalyticsInfo](#dynamiclinkitunesanalyticsinfo)
25+
- [DynamicLinkNavigationInfo](#dynamiclinknavigationinfo)
26+
- [DynamicLinkOptions](#dynamiclinkoptions)
27+
- [DynamicLinkPayload](#dynamiclinkpayload)
28+
- [DynamicLinkSocialInfo](#dynamiclinksocialinfo)
2029
- [Functions](#functions)
30+
- [createDynamicLink](#createdynamiclink)
31+
- [createShortDynamicLink](#createshortdynamiclink)
32+
- [createUnguessableDynamicLink](#createunguessabledynamiclink)
33+
- [getDynamicLink](#getdynamiclink)
34+
- [onDynamicLink](#ondynamiclink)
2135

2236
<!-- /MarkdownTOC -->
2337

@@ -80,6 +94,8 @@ Cordova supports `resource-file` tag for easy copying resources files. Firebase
8094
| `androidMinPackageVersionCode` | `number` | VersionCode of the minimum version of your app that can open the link. |
8195
| `androidPackageName` | `string` | Package name of the Android app to use to open the link. |
8296

97+
___
98+
8399
### DynamicLinkGoogleAnalyticsInfo
84100

85101
**DynamicLinkGoogleAnalyticsInfo**: `Object`
@@ -94,6 +110,8 @@ Cordova supports `resource-file` tag for easy copying resources files. Firebase
94110
| `utmSource` | `string` | Campaign source; used to identify a search engine, newsletter, or other source. |
95111
| `utmTerm` | `string` | Campaign term; used with paid search to supply the keywords for ads. |
96112

113+
___
114+
97115
### DynamicLinkIosInfo
98116

99117
**DynamicLinkIosInfo**: `Object`
@@ -108,6 +126,8 @@ Cordova supports `resource-file` tag for easy copying resources files. Firebase
108126
| `iosIpadBundleId` | `string` | Bundle ID of the iOS app to use on iPads to open the link. |
109127
| `iosIpadFallbackLink` | `string` | Link to open on iPads when the app isn't installed. |
110128

129+
___
130+
111131
### DynamicLinkItunesAnalyticsInfo
112132

113133
**DynamicLinkItunesAnalyticsInfo**: `Object`
@@ -120,6 +140,8 @@ Cordova supports `resource-file` tag for easy copying resources files. Firebase
120140
| `ct` | `string` | Campaign token that developers can add to any link in order to track sales from a specific marketing campaign. |
121141
| `pt` | `string` | Provider token that enables analytics for Dynamic Links from within iTunes Connect. |
122142

143+
___
144+
123145
### DynamicLinkNavigationInfo
124146

125147
**DynamicLinkNavigationInfo**: `Object`
@@ -130,6 +152,8 @@ Cordova supports `resource-file` tag for easy copying resources files. Firebase
130152
| :------ | :------ | :------ |
131153
| `enableForcedRedirect` | `boolean` | If true, app preview page will be disabled and there will be a redirect to the FDL. |
132154

155+
___
156+
133157
### DynamicLinkOptions
134158

135159
**DynamicLinkOptions**: `Object`
@@ -141,14 +165,16 @@ in the [Firebase Dynamic Links Short Links API Reference](https://firebase.googl
141165

142166
| Name | Type | Description |
143167
| :------ | :------ | :------ |
144-
| `androidInfo?` | [`DynamicLinkAndroidInfo`](FirebaseDynamicLinks.md#dynamiclinkandroidinfo) | Android parameters. |
168+
| `androidInfo?` | [`DynamicLinkAndroidInfo`](README.md#dynamiclinkandroidinfo) | Android parameters. |
145169
| `domainUriPrefix?` | `string` | Domain uri prefix to use for this Dynamic Link. |
146-
| `googlePlayAnalytics?` | [`DynamicLinkGoogleAnalyticsInfo`](FirebaseDynamicLinks.md#dynamiclinkgoogleanalyticsinfo) | Google Analytics parameters. |
147-
| `iosInfo?` | [`DynamicLinkIosInfo`](FirebaseDynamicLinks.md#dynamiclinkiosinfo) | iOS parameters. |
148-
| `itunesConnectAnalytics?` | [`DynamicLinkItunesAnalyticsInfo`](FirebaseDynamicLinks.md#dynamiclinkitunesanalyticsinfo) | iTunes Connect App Analytics parameters. |
170+
| `googlePlayAnalytics?` | [`DynamicLinkGoogleAnalyticsInfo`](README.md#dynamiclinkgoogleanalyticsinfo) | Google Analytics parameters. |
171+
| `iosInfo?` | [`DynamicLinkIosInfo`](README.md#dynamiclinkiosinfo) | iOS parameters. |
172+
| `itunesConnectAnalytics?` | [`DynamicLinkItunesAnalyticsInfo`](README.md#dynamiclinkitunesanalyticsinfo) | iTunes Connect App Analytics parameters. |
149173
| `link` | `string` | The link your app will open. |
150-
| `navigationInfo?` | [`DynamicLinkNavigationInfo`](FirebaseDynamicLinks.md#dynamiclinknavigationinfo) | Navigation info parameters. |
151-
| `socialMetaTagInfo?` | [`DynamicLinkSocialInfo`](FirebaseDynamicLinks.md#dynamiclinksocialinfo) | Social meta-tag parameters. |
174+
| `navigationInfo?` | [`DynamicLinkNavigationInfo`](README.md#dynamiclinknavigationinfo) | Navigation info parameters. |
175+
| `socialMetaTagInfo?` | [`DynamicLinkSocialInfo`](README.md#dynamiclinksocialinfo) | Social meta-tag parameters. |
176+
177+
___
152178

153179
### DynamicLinkPayload
154180

@@ -162,6 +188,8 @@ in the [Firebase Dynamic Links Short Links API Reference](https://firebase.googl
162188
| `deepLink` | `string` \| ``null`` | Link parameter of the dynamic link. |
163189
| `minimumAppVersion?` | `number` | The minimum app version requested to process the dynamic link that can be compared directly with versionCode (Android only) |
164190

191+
___
192+
165193
### DynamicLinkSocialInfo
166194

167195
**DynamicLinkSocialInfo**: `Object`
@@ -176,7 +204,9 @@ in the [Firebase Dynamic Links Short Links API Reference](https://firebase.googl
176204

177205
## Functions
178206

179-
### **createDynamicLink**(`params`): `Promise`<`string`\>
207+
### createDynamicLink
208+
209+
**createDynamicLink**(`params`): `Promise`<`string`\>
180210

181211
Creates a Dynamic Link from the parameters.
182212

@@ -192,15 +222,19 @@ cordova.plugins.firebase.dynamiclinks.createDynamicLink({
192222

193223
| Name | Type | Description |
194224
| :------ | :------ | :------ |
195-
| `params` | [`DynamicLinkOptions`](FirebaseDynamicLinks.md#dynamiclinkoptions) | Parameters to use for building a link |
225+
| `params` | [`DynamicLinkOptions`](README.md#dynamiclinkoptions) | Parameters to use for building a link |
196226

197227
#### Returns
198228

199229
`Promise`<`string`\>
200230

201-
Fulfils promise with created link value
231+
Fulfils promise with created link string
202232

203-
### **createShortDynamicLink**(`params`): `Promise`<`string`\>
233+
___
234+
235+
### createShortDynamicLink
236+
237+
**createShortDynamicLink**(`params`): `Promise`<`string`\>
204238

205239
Creates a shortened Dynamic Link from the parameters. Shorten the path
206240
to a string that is only as long as needed to be unique, with a minimum
@@ -219,15 +253,19 @@ cordova.plugins.firebase.dynamiclinks.createShortDynamicLink({
219253

220254
| Name | Type | Description |
221255
| :------ | :------ | :------ |
222-
| `params` | [`DynamicLinkOptions`](FirebaseDynamicLinks.md#dynamiclinkoptions) | Parameters to use for building a link |
256+
| `params` | [`DynamicLinkOptions`](README.md#dynamiclinkoptions) | Parameters to use for building a link |
223257

224258
#### Returns
225259

226260
`Promise`<`string`\>
227261

228-
Fulfils promise with created link value
262+
Fulfils promise with created link string
263+
264+
___
265+
266+
### createUnguessableDynamicLink
229267

230-
### **createUnguessableDynamicLink**(`params`): `Promise`<`string`\>
268+
**createUnguessableDynamicLink**(`params`): `Promise`<`string`\>
231269

232270
Creates a Dynamic Link from the parameters. Shorten the path to
233271
an unguessable string. Such strings are created by base62-encoding
@@ -247,15 +285,19 @@ cordova.plugins.firebase.dynamiclinks.createShortDynamicLink({
247285

248286
| Name | Type | Description |
249287
| :------ | :------ | :------ |
250-
| `params` | [`DynamicLinkOptions`](FirebaseDynamicLinks.md#dynamiclinkoptions) | Parameters to use for building a link |
288+
| `params` | [`DynamicLinkOptions`](README.md#dynamiclinkoptions) | Parameters to use for building a link |
251289

252290
#### Returns
253291

254292
`Promise`<`string`\>
255293

256-
Fulfils promise with created link value
294+
Fulfils promise with created link string
257295

258-
### **getDynamicLink**(): `Promise`<[`DynamicLinkPayload`](FirebaseDynamicLinks.md#dynamiclinkpayload) \| ``null``\>
296+
___
297+
298+
### getDynamicLink
299+
300+
**getDynamicLink**(): `Promise`<[`DynamicLinkPayload`](README.md#dynamiclinkpayload) \| ``null``\>
259301

260302
Determines if the app has a pending dynamic link and provide access to the dynamic link parameters.
261303

@@ -273,27 +315,31 @@ cordova.plugins.firebase.dynamiclinks.getDynamicLink().then(function(payload) {
273315

274316
#### Returns
275317

276-
`Promise`<[`DynamicLinkPayload`](FirebaseDynamicLinks.md#dynamiclinkpayload) \| ``null``\>
318+
`Promise`<[`DynamicLinkPayload`](README.md#dynamiclinkpayload) \| ``null``\>
319+
320+
Fulfils promise with dynamic link payload when it exists.
321+
322+
___
277323

278-
Dynamic link payload.
324+
### onDynamicLink
279325

280-
### **onDynamicLink**(`callback`, `errorCallback`): `void`
326+
**onDynamicLink**(`callback`, `errorCallback`): `void`
281327

282328
Registers callback that is triggered on each dynamic link click.
283329

284330
**`Example`**
285331

286332
```ts
287-
cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(data) {
288-
console.log("Dynamic link click with data:", data);
333+
cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(payload) {
334+
console.log("Dynamic link click with data:", payload);
289335
});
290336
```
291337

292338
#### Parameters
293339

294340
| Name | Type | Description |
295341
| :------ | :------ | :------ |
296-
| `callback` | (`payload`: [`DynamicLinkPayload`](FirebaseDynamicLinks.md#dynamiclinkpayload)) => `void` | Callback function |
342+
| `callback` | (`payload`: [`DynamicLinkPayload`](README.md#dynamiclinkpayload)) => `void` | Callback function |
297343
| `errorCallback` | (`error`: `string`) => `void` | Error callback function |
298344

299345
#### Returns

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
"version": "perl -i -pe 's/(version=)\"\\d+\\.\\d+\\.\\d+\"/$1\"'$npm_package_version'\"$2/' plugin.xml && git add plugin.xml README.md",
3737
"postversion": "git push && git push --tags",
3838
"predocs": "tsc www/* --declaration --allowJs --checkJs --lib es2015,dom --emitDeclarationOnly --outDir types",
39-
"docs": "typedoc ./types",
40-
"postdocs": "perl -i -0pe 's/(<!-- TypedocGenerated -->).*/$1\n\n/gms' README.md && cat ./docs/modules/FirebaseDynamicLinks.md >> README.md"
39+
"docs": "typedoc",
40+
"postdocs": "perl -i -0pe 's/(<!-- TypedocGenerated -->).*/$1\n\n/gms' README.md && cat ./docs/README.md >> README.md"
4141
},
4242
"devDependencies": {
43-
"@colony/typedoc-plugin-markdown": "3.16.0",
44-
"typedoc": "^0.23.9"
43+
"typedoc": "^0.23.9",
44+
"typedoc-plugin-markdown": "^3.13.4"
4545
}
4646
}

tsconfig.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
"typedocOptions": {
33
"out": "docs",
44
"readme": "none",
5+
"entryPoints": "./types",
6+
"exclude": "./types/index.d.ts",
57
"entryPointStrategy": "expand",
68
"hideBreadcrumbs": true,
79
"hideInPageTOC": true,
810
"hidePageTitle": true,
9-
"hideMembersSymbol": true
11+
"hideMembersSymbol": true,
12+
"disableSources": true,
13+
"githubPages": false
1014
}
1115
}

types/FirebaseDynamicLinks.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
*
33
* Determines if the app has a pending dynamic link and provide access to the dynamic link parameters.
4-
* @returns {Promise<DynamicLinkPayload|null>} Dynamic link payload.
4+
* @returns {Promise<DynamicLinkPayload|null>} Fulfils promise with dynamic link payload when it exists.
55
*
66
* @example
77
* cordova.plugins.firebase.dynamiclinks.getDynamicLink().then(function(payload) {
@@ -20,16 +20,16 @@ export function getDynamicLink(): Promise<DynamicLinkPayload | null>;
2020
* @param {(error: string) => void} errorCallback Error callback function
2121
*
2222
* @example
23-
* cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(data) {
24-
* console.log("Dynamic link click with data:", data);
23+
* cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(payload) {
24+
* console.log("Dynamic link click with data:", payload);
2525
* });
2626
*/
2727
export function onDynamicLink(callback: (payload: DynamicLinkPayload) => void, errorCallback: (error: string) => void): void;
2828
/**
2929
*
3030
* Creates a Dynamic Link from the parameters.
3131
* @param {DynamicLinkOptions} params Parameters to use for building a link
32-
* @returns {Promise<string>} Fulfils promise with created link value
32+
* @returns {Promise<string>} Fulfils promise with created link string
3333
*
3434
* @example
3535
* cordova.plugins.firebase.dynamiclinks.createDynamicLink({
@@ -44,7 +44,7 @@ export function createDynamicLink(params: DynamicLinkOptions): Promise<string>;
4444
* length of 4 characters. Use this method if sensitive information would
4545
* not be exposed if a short Dynamic Link URL were guessed.
4646
* @param {DynamicLinkOptions} params Parameters to use for building a link
47-
* @returns {Promise<string>} Fulfils promise with created link value
47+
* @returns {Promise<string>} Fulfils promise with created link string
4848
*
4949
* @example
5050
* cordova.plugins.firebase.dynamiclinks.createShortDynamicLink({
@@ -60,7 +60,7 @@ export function createShortDynamicLink(params: DynamicLinkOptions): Promise<stri
6060
* characters. Use unguessable strings to prevent your Dynamic Links
6161
* from being crawled, which can potentially expose sensitive information.
6262
* @param {DynamicLinkOptions} params Parameters to use for building a link
63-
* @returns {Promise<string>} Fulfils promise with created link value
63+
* @returns {Promise<string>} Fulfils promise with created link string
6464
*
6565
* @example
6666
* cordova.plugins.firebase.dynamiclinks.createShortDynamicLink({

www/FirebaseDynamicLinks.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports.getDynamicLink =
66
/**
77
*
88
* Determines if the app has a pending dynamic link and provide access to the dynamic link parameters.
9-
* @returns {Promise<DynamicLinkPayload|null>} Dynamic link payload.
9+
* @returns {Promise<DynamicLinkPayload|null>} Fulfils promise with dynamic link payload when it exists.
1010
*
1111
* @example
1212
* cordova.plugins.firebase.dynamiclinks.getDynamicLink().then(function(payload) {
@@ -31,8 +31,8 @@ exports.onDynamicLink =
3131
* @param {(error: string) => void} errorCallback Error callback function
3232
*
3333
* @example
34-
* cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(data) {
35-
* console.log("Dynamic link click with data:", data);
34+
* cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(payload) {
35+
* console.log("Dynamic link click with data:", payload);
3636
* });
3737
*/
3838
function(callback, errorCallback) {
@@ -44,7 +44,7 @@ exports.createDynamicLink =
4444
*
4545
* Creates a Dynamic Link from the parameters.
4646
* @param {DynamicLinkOptions} params Parameters to use for building a link
47-
* @returns {Promise<string>} Fulfils promise with created link value
47+
* @returns {Promise<string>} Fulfils promise with created link string
4848
*
4949
* @example
5050
* cordova.plugins.firebase.dynamiclinks.createDynamicLink({
@@ -65,7 +65,7 @@ exports.createShortDynamicLink =
6565
* length of 4 characters. Use this method if sensitive information would
6666
* not be exposed if a short Dynamic Link URL were guessed.
6767
* @param {DynamicLinkOptions} params Parameters to use for building a link
68-
* @returns {Promise<string>} Fulfils promise with created link value
68+
* @returns {Promise<string>} Fulfils promise with created link string
6969
*
7070
* @example
7171
* cordova.plugins.firebase.dynamiclinks.createShortDynamicLink({
@@ -91,7 +91,7 @@ exports.createUnguessableDynamicLink =
9191
* characters. Use unguessable strings to prevent your Dynamic Links
9292
* from being crawled, which can potentially expose sensitive information.
9393
* @param {DynamicLinkOptions} params Parameters to use for building a link
94-
* @returns {Promise<string>} Fulfils promise with created link value
94+
* @returns {Promise<string>} Fulfils promise with created link string
9595
*
9696
* @example
9797
* cordova.plugins.firebase.dynamiclinks.createShortDynamicLink({

0 commit comments

Comments
 (0)