-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Version 1.2.0 ### Changes - The `fieldType` attribute has been added to the `DirectAnswer` model. (#84) - The `endpoints` attribute of `AnswersConfig` is now public, as is the `Endpoints` type. This attribute can be used to override the endpoints for search, autocomplete, and question submission. (#81) - Added test coverage reports to the repository. (#78) ### Bug Fixes - The `Snippet` type is now properly exported. (#83)
- Loading branch information
Showing
45 changed files
with
521 additions
and
103 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,30 @@ | ||
# This workflow will run our tests, generate an lcov code coverage file, | ||
# and send that coverage to Coveralls | ||
|
||
name: Code Coverage | ||
|
||
on: | ||
push: | ||
branches-ignore: dev/* | ||
pull_request: | ||
|
||
jobs: | ||
Coveralls: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci | ||
- run: npx jest --coverage | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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) > [@yext/answers-core](./answers-core.md) > [AnswersConfig](./answers-core.answersconfig.md) > [endpoints](./answers-core.answersconfig.endpoints.md) | ||
|
||
## AnswersConfig.endpoints property | ||
|
||
Overrides for the URLs which are used when making requests to the Answers API. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
endpoints?: Endpoints; | ||
``` |
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) > [@yext/answers-core](./answers-core.md) > [DirectAnswer](./answers-core.directanswer.md) > [fieldType](./answers-core.directanswer.fieldtype.md) | ||
|
||
## DirectAnswer.fieldType property | ||
|
||
The field type of the direct answer. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
fieldType: 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
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) > [@yext/answers-core](./answers-core.md) > [Endpoints](./answers-core.endpoints.md) > [filterSearch](./answers-core.endpoints.filtersearch.md) | ||
|
||
## Endpoints.filterSearch property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
filterSearch?: 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,26 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/answers-core](./answers-core.md) > [Endpoints](./answers-core.endpoints.md) | ||
|
||
## Endpoints interface | ||
|
||
Overrides for the URLs which are used when making requests to the Answers API. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface Endpoints | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [filterSearch?](./answers-core.endpoints.filtersearch.md) | string | <i>(Optional)</i> | | ||
| [questionSubmission?](./answers-core.endpoints.questionsubmission.md) | string | <i>(Optional)</i> | | ||
| [status?](./answers-core.endpoints.status.md) | string | <i>(Optional)</i> | | ||
| [universalAutocomplete?](./answers-core.endpoints.universalautocomplete.md) | string | <i>(Optional)</i> | | ||
| [universalSearch?](./answers-core.endpoints.universalsearch.md) | string | <i>(Optional)</i> | | ||
| [verticalAutocomplete?](./answers-core.endpoints.verticalautocomplete.md) | string | <i>(Optional)</i> | | ||
| [verticalSearch?](./answers-core.endpoints.verticalsearch.md) | string | <i>(Optional)</i> | | ||
|
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) > [@yext/answers-core](./answers-core.md) > [Endpoints](./answers-core.endpoints.md) > [questionSubmission](./answers-core.endpoints.questionsubmission.md) | ||
|
||
## Endpoints.questionSubmission property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
questionSubmission?: 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) > [@yext/answers-core](./answers-core.md) > [Endpoints](./answers-core.endpoints.md) > [status](./answers-core.endpoints.status.md) | ||
|
||
## Endpoints.status property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
status?: 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) > [@yext/answers-core](./answers-core.md) > [Endpoints](./answers-core.endpoints.md) > [universalAutocomplete](./answers-core.endpoints.universalautocomplete.md) | ||
|
||
## Endpoints.universalAutocomplete property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
universalAutocomplete?: 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) > [@yext/answers-core](./answers-core.md) > [Endpoints](./answers-core.endpoints.md) > [universalSearch](./answers-core.endpoints.universalsearch.md) | ||
|
||
## Endpoints.universalSearch property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
universalSearch?: 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) > [@yext/answers-core](./answers-core.md) > [Endpoints](./answers-core.endpoints.md) > [verticalAutocomplete](./answers-core.endpoints.verticalautocomplete.md) | ||
|
||
## Endpoints.verticalAutocomplete property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
verticalAutocomplete?: 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) > [@yext/answers-core](./answers-core.md) > [Endpoints](./answers-core.endpoints.md) > [verticalSearch](./answers-core.endpoints.verticalsearch.md) | ||
|
||
## Endpoints.verticalSearch property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
verticalSearch?: string; | ||
``` |
13 changes: 13 additions & 0 deletions
13
docs/answers-core.featuredsnippetdirectanswer.fieldtype.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/answers-core](./answers-core.md) > [FeaturedSnippetDirectAnswer](./answers-core.featuredsnippetdirectanswer.md) > [fieldType](./answers-core.featuredsnippetdirectanswer.fieldtype.md) | ||
|
||
## FeaturedSnippetDirectAnswer.fieldType property | ||
|
||
The field type of the direct answer. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
fieldType: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/answers-core](./answers-core.md) > [Snippet](./answers-core.snippet.md) > [matchedSubstrings](./answers-core.snippet.matchedsubstrings.md) | ||
|
||
## Snippet.matchedSubstrings property | ||
|
||
The locations in the document text of the [FeaturedSnippetDirectAnswer.value](./answers-core.featuredsnippetdirectanswer.value.md) | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
matchedSubstrings: { | ||
offset: number; | ||
length: 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
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/answers-core](./answers-core.md) > [Snippet](./answers-core.snippet.md) | ||
|
||
## Snippet interface | ||
|
||
The section of text where a [FeaturedSnippetDirectAnswer](./answers-core.featuredsnippetdirectanswer.md) was found. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface Snippet | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [matchedSubstrings](./answers-core.snippet.matchedsubstrings.md) | { offset: number; length: number; }\[\] | The locations in the document text of the [FeaturedSnippetDirectAnswer.value](./answers-core.featuredsnippetdirectanswer.value.md) | | ||
| [value](./answers-core.snippet.value.md) | string | The snippet's body of text | | ||
|
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/answers-core](./answers-core.md) > [Snippet](./answers-core.snippet.md) > [value](./answers-core.snippet.value.md) | ||
|
||
## Snippet.value property | ||
|
||
The snippet's body of text | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
value: string; | ||
``` |
Oops, something went wrong.