This repository has been archived by the owner on Aug 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: API key integration (CORE-5134) (#37)
* chore: add verror to project * feat: add API key to authorization header of interact requests * feat: add apiKey param to RuntimeClientFactory * test: fix current unit tests * test: add new unit tests * chore: run lint * chore: remove extra space * fix: move API key to Client instead of RuntimeClient and pass into axios.create() * test: fix unit tests * fix: re-order imports
- Loading branch information
Showing
8 changed files
with
76 additions
and
14 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
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,24 @@ | ||
declare module '@voiceflow/verror' { | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
import httpStatus, { HttpStatus } from 'http-status'; | ||
|
||
class VError { | ||
constructor(message: string, code?: number | string, data?: any); | ||
|
||
static HTTP_STATUS: HttpStatus; | ||
|
||
public name: string; | ||
|
||
public code: number | string; | ||
|
||
public message: string; | ||
|
||
public data: any; | ||
|
||
public dateTime: Date; | ||
} | ||
|
||
export { httpStatus as HTTP_STATUS }; | ||
|
||
export default VError; | ||
} |
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