-
Notifications
You must be signed in to change notification settings - Fork 5
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
af3d26f
commit 8eb2038
Showing
16 changed files
with
232 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/pages](./pages.md) > [GetDestination](./pages.getdestination.md) | ||
|
||
## GetDestination type | ||
|
||
The type definition for the redirect's getDestination function. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type GetDestination<T extends TemplateProps> = (props: T) => string; | ||
``` | ||
|
||
**References:** [TemplateProps](./pages.templateprops.md) |
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,17 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/pages](./pages.md) > [GetSources](./pages.getsources.md) | ||
|
||
## GetSources type | ||
|
||
The type definiton for the redirect's getSources function. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type GetSources<T extends TemplateProps> = ( | ||
props: T | ||
) => RedirectSource[]; | ||
``` | ||
|
||
**References:** [TemplateProps](./pages.templateprops.md)<!-- -->, [RedirectSource](./pages.redirectsource.md) |
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,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/pages](./pages.md) > [RedirectConfig](./pages.redirectconfig.md) | ||
|
||
## RedirectConfig interface | ||
|
||
The exported `config` function's definition. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export interface RedirectConfig | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Modifiers | Type | Description | | ||
| ----------------------------------------------- | --------- | --------------------------- | ----------------------------------------------------------------------------------------------------- | | ||
| [name?](./pages.redirectconfig.name.md) | | string | _(Optional)_ The name of the redirect. If not defined uses the redirect filename (without extension) | | ||
| [stream?](./pages.redirectconfig.stream.md) | | [Stream](./pages.stream.md) | _(Optional)_ The stream configuration used by the redirect | | ||
| [streamId?](./pages.redirectconfig.streamid.md) | | string | _(Optional)_ The stream that this redirect uses. If a stream is defined the streamId is not required. | |
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) > [@yext/pages](./pages.md) > [RedirectConfig](./pages.redirectconfig.md) > [name](./pages.redirectconfig.name.md) | ||
|
||
## RedirectConfig.name property | ||
|
||
The name of the redirect. If not defined uses the redirect filename (without extension) | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
name?: 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) > [@yext/pages](./pages.md) > [RedirectConfig](./pages.redirectconfig.md) > [stream](./pages.redirectconfig.stream.md) | ||
|
||
## RedirectConfig.stream property | ||
|
||
The stream configuration used by the redirect | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
stream?: Stream; | ||
``` |
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) > [@yext/pages](./pages.md) > [RedirectConfig](./pages.redirectconfig.md) > [streamId](./pages.redirectconfig.streamid.md) | ||
|
||
## RedirectConfig.streamId property | ||
|
||
The stream that this redirect uses. If a stream is defined the streamId is not required. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
streamId?: 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) > [@yext/pages](./pages.md) > [RedirectModule](./pages.redirectmodule.md) > [config](./pages.redirectmodule.config.md) | ||
|
||
## RedirectModule.config property | ||
|
||
The exported config function | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
config?: RedirectConfig; | ||
``` |
13 changes: 13 additions & 0 deletions
13
packages/pages/docs/api/pages.redirectmodule.getdestination.md
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) > [@yext/pages](./pages.md) > [RedirectModule](./pages.redirectmodule.md) > [getDestination](./pages.redirectmodule.getdestination.md) | ||
|
||
## RedirectModule.getDestination property | ||
|
||
The exported GetDestination function | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getDestination: GetDestination<T>; | ||
``` |
13 changes: 13 additions & 0 deletions
13
packages/pages/docs/api/pages.redirectmodule.getsources.md
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) > [@yext/pages](./pages.md) > [RedirectModule](./pages.redirectmodule.md) > [getSources](./pages.redirectmodule.getsources.md) | ||
|
||
## RedirectModule.getSources property | ||
|
||
The exported GetSources function | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getSources: GetSources<T>; | ||
``` |
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) > [@yext/pages](./pages.md) > [RedirectModule](./pages.redirectmodule.md) | ||
|
||
## RedirectModule interface | ||
|
||
The type to include in any redirect file. It defines the available functions and fields that are available to the redirect. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export interface RedirectModule<T extends TemplateProps> | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Modifiers | Type | Description | | ||
| ---------------------------------------------------------- | --------- | ------------------------------------------------------------ | ----------------------------------------- | | ||
| [config?](./pages.redirectmodule.config.md) | | [RedirectConfig](./pages.redirectconfig.md) | _(Optional)_ The exported config function | | ||
| [getDestination](./pages.redirectmodule.getdestination.md) | | [GetDestination](./pages.getdestination.md)<!-- --><T> | The exported GetDestination function | | ||
| [getSources](./pages.redirectmodule.getsources.md) | | [GetSources](./pages.getsources.md)<!-- --><T> | The exported GetSources function | |
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) > [@yext/pages](./pages.md) > [RedirectSource](./pages.redirectsource.md) | ||
|
||
## RedirectSource interface | ||
|
||
The type of a RedirectSource. It defines the source and statusCode for a redirect. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export interface RedirectSource | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Modifiers | Type | Description | | ||
| -------------------------------------------------- | --------- | ------ | ------------------------------- | | ||
| [source](./pages.redirectsource.source.md) | | string | The source to redirect from | | ||
| [statusCode](./pages.redirectsource.statuscode.md) | | number | The status code of the redirect | |
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) > [@yext/pages](./pages.md) > [RedirectSource](./pages.redirectsource.md) > [source](./pages.redirectsource.source.md) | ||
|
||
## RedirectSource.source property | ||
|
||
The source to redirect from | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
source: string; | ||
``` |
13 changes: 13 additions & 0 deletions
13
packages/pages/docs/api/pages.redirectsource.statuscode.md
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) > [@yext/pages](./pages.md) > [RedirectSource](./pages.redirectsource.md) > [statusCode](./pages.redirectsource.statuscode.md) | ||
|
||
## RedirectSource.statusCode property | ||
|
||
The status code of the redirect | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
statusCode: number; | ||
``` |
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