-
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.6.0 ### Features - Added AUTOCOMPLETE as a query source to support visual autocomplete (#126) - Added support for data returned in search responses from query rules actions (#128) - Added support for passing Answers Agents in the HTTP header (#141, #144) - Added number range facets and filters support (#145) - Updated `AppliedQueryFilter` to support a type and details (#159) ### Changes - Exposed Service interfaces and the `AnswersCore` constructor (#131) - Updated the `v` param to have number range facets returned in API responses (#149) ### Bug Fixes - Updated `FilterSearchResponse` to match the fields returned in the API response (#112) - Updated `Source` to allow CUSTOM_SEARCHER as a source of results (#158)
- Loading branch information
Showing
173 changed files
with
7,965 additions
and
2,938 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 @@ | ||
* @yext/slapshot |
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 |
---|---|---|
@@ -1,27 +1,11 @@ | ||
name: create PR from main to develop | ||
name: Create PR from main to develop | ||
|
||
on: | ||
push: | ||
branches: [main, master] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
createPullRequest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: extract package version | ||
id: vars | ||
run: | | ||
PACKAGE_VERSION="v$(cat ./package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')" | ||
echo ::set-output name=tag::${PACKAGE_VERSION} | ||
- uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: "${{ github.event.repository.default_branch }}" | ||
destination_branch: "develop" | ||
pr_title: "Merge ${{ github.event.repository.default_branch }} (${{ steps.vars.outputs.tag }}) into develop" | ||
pr_body: "Merge ${{ github.event.repository.default_branch }} (${{ steps.vars.outputs.tag }}) into develop" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
call_sync_develop_and_main: | ||
uses: yext/slapshot-reusable-workflows/.github/workflows/sync_develop_and_main.yml@v1 | ||
secrets: | ||
caller_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Check and Update Third Party Notices | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
call_notices_check: | ||
uses: yext/slapshot-reusable-workflows/.github/workflows/third_party_notices_check.yml@v1 | ||
secrets: | ||
REPO_SCOPED_TOKEN: ${{ secrets.BOT_REPO_SCOPED_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Check and Update Repo's documenation | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
call_update_docs: | ||
uses: yext/slapshot-reusable-workflows/.github/workflows/update_docs.yml@v1 | ||
with: | ||
build_script: npm run build-ci | ||
secrets: | ||
REPO_SCOPED_TOKEN: ${{ secrets.BOT_REPO_SCOPED_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
node_modules/ | ||
dist/ | ||
lib/ | ||
temp/ | ||
coverage/ | ||
.DS_Store |
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 |
---|---|---|
|
@@ -59,7 +59,7 @@ THE SOFTWARE. | |
|
||
The following NPM package may be included in this product: | ||
|
||
- [email protected].4 | ||
- [email protected].5 | ||
|
||
This package contains the following license and notice below: | ||
|
||
|
@@ -89,7 +89,7 @@ SOFTWARE. | |
|
||
The following NPM package may be included in this product: | ||
|
||
- [email protected].1 | ||
- [email protected].7 | ||
|
||
This package contains the following license and notice below: | ||
|
||
|
@@ -147,4 +147,65 @@ SOFTWARE. | |
|
||
----------- | ||
|
||
The following NPM package may be included in this product: | ||
|
||
- [email protected] | ||
|
||
This package contains the following license and notice below: | ||
|
||
(MIT) | ||
|
||
----------- | ||
|
||
The following NPM package may be included in this product: | ||
|
||
- [email protected] | ||
|
||
This package contains the following license and notice below: | ||
|
||
# The BSD 2-Clause License | ||
|
||
Copyright (c) 2014, Domenic Denicola | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
----------- | ||
|
||
The following NPM package may be included in this product: | ||
|
||
- [email protected] | ||
|
||
This package contains the following license and notice below: | ||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015–2016 Sebastian Mayr | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
|
||
----------- | ||
|
||
This file was generated with generate-license-file! https://www.npmjs.com/package/generate-license-file |
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) > [AdditionalHttpHeaders](./answers-core.additionalhttpheaders.md) > ["Client-SDK"](./answers-core.additionalhttpheaders._client-sdk_.md) | ||
|
||
## AdditionalHttpHeaders."Client-SDK" property | ||
|
||
Additional agents and their versions used to create the Answers experience. The information for these agents is added to the Client-SDK HTTP header along with that of the ANSWERS\_CORE agent. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
'Client-SDK'?: ClientSDKHeaderValues; | ||
``` |
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/answers-core](./answers-core.md) > [AdditionalHttpHeaders](./answers-core.additionalhttpheaders.md) | ||
|
||
## AdditionalHttpHeaders interface | ||
|
||
AdditionalHttpHeaders allows users to specify additional values for specific HTTP headers. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface AdditionalHttpHeaders | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| ["Client-SDK"?](./answers-core.additionalhttpheaders._client-sdk_.md) | [ClientSDKHeaderValues](./answers-core.clientsdkheadervalues.md) | <i>(Optional)</i> Additional agents and their versions used to create the Answers experience. The information for these agents is added to the Client-SDK HTTP header along with that of the ANSWERS\_CORE agent. | | ||
|
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,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/answers-core](./answers-core.md) > [AnswersCore](./answers-core.answerscore.md) > [(constructor)](./answers-core.answerscore._constructor_.md) | ||
|
||
## AnswersCore.(constructor) | ||
|
||
Constructs a new instance of the `AnswersCore` class | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
constructor(searchService: SearchService, questionSubmissionService: QuestionSubmissionService, autoCompleteService: AutocompleteService); | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| searchService | [SearchService](./answers-core.searchservice.md) | | | ||
| questionSubmissionService | [QuestionSubmissionService](./answers-core.questionsubmissionservice.md) | | | ||
| autoCompleteService | [AutocompleteService](./answers-core.autocompleteservice.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,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/answers-core](./answers-core.md) > [AnswersRequest](./answers-core.answersrequest.md) > [additionalHttpHeaders](./answers-core.answersrequest.additionalhttpheaders.md) | ||
|
||
## AnswersRequest.additionalHttpHeaders property | ||
|
||
AdditionalHttpHeaders allows users to specify additional values for specific HTTP headers. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
additionalHttpHeaders?: AdditionalHttpHeaders; | ||
``` |
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/answers-core](./answers-core.md) > [AnswersRequest](./answers-core.answersrequest.md) | ||
|
||
## AnswersRequest interface | ||
|
||
Options for an Answers API request. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface AnswersRequest | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [additionalHttpHeaders?](./answers-core.answersrequest.additionalhttpheaders.md) | [AdditionalHttpHeaders](./answers-core.additionalhttpheaders.md) | <i>(Optional)</i> AdditionalHttpHeaders allows users to specify additional values for specific HTTP headers. | | ||
|
Oops, something went wrong.