-
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.
- Loading branch information
Showing
34 changed files
with
954 additions
and
1,213 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,8 @@ | ||
const config = { | ||
trailingComma: 'es5', | ||
tabWidth: 2, | ||
semi: true, | ||
singleQuote: true, | ||
}; | ||
|
||
module.exports = config; |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ module.exports = { | |
['@babel/preset-env', { targets: { node: 'current' } }], | ||
'@babel/preset-typescript', | ||
], | ||
}; | ||
}; |
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,35 +1,35 @@ | ||
import {Environment} from './Environment'; | ||
import {Region} from './Region'; | ||
import { Environment } from './Environment'; | ||
import { Region } from './Region'; | ||
|
||
/** | ||
* The main configuration options for Analytics Events. | ||
* | ||
* @public | ||
*/ | ||
export interface AnalyticsConfig { | ||
/** The API Key or OAuth for accessing the Analytics Events API | ||
* Only one of key or bearer should be set. | ||
* */ | ||
key?: string; | ||
/** The bearer token for accessing the Analytics Events API. | ||
* Only one of key or bearer should be set. | ||
* */ | ||
bearer?: string; | ||
/** The Yext environment to send requests to. Defaults to 'PRODUCTION'. */ | ||
env?: Environment; | ||
/** The region to send requests to. Defaults to 'US'. */ | ||
region?: Region; | ||
/** | ||
* Whether to enable session tracking for analytics events. | ||
* Defaults to true for both environments. If set to false, sessionId will automatically | ||
* be set to undefined in the event payload. | ||
* @remarks | ||
* This generates a ULID to tie together events in a single browsing session. | ||
*/ | ||
sessionTrackingEnabled?: boolean; | ||
/** | ||
* Used to force sending the request with fetch even if the browser | ||
* does not support fetch with the keepalive flag (like Firefox). | ||
* If the browser does support it, fetch is used by default. */ | ||
forceFetch?: boolean; | ||
} | ||
/** The API Key or OAuth for accessing the Analytics Events API | ||
* Only one of key or bearer should be set. | ||
* */ | ||
key?: string; | ||
/** The bearer token for accessing the Analytics Events API. | ||
* Only one of key or bearer should be set. | ||
* */ | ||
bearer?: string; | ||
/** The Yext environment to send requests to. Defaults to 'PRODUCTION'. */ | ||
env?: Environment; | ||
/** The region to send requests to. Defaults to 'US'. */ | ||
region?: Region; | ||
/** | ||
* Whether to enable session tracking for analytics events. | ||
* Defaults to true for both environments. If set to false, sessionId will automatically | ||
* be set to undefined in the event payload. | ||
* @remarks | ||
* This generates a ULID to tie together events in a single browsing session. | ||
*/ | ||
sessionTrackingEnabled?: boolean; | ||
/** | ||
* Used to force sending the request with fetch even if the browser | ||
* does not support fetch with the keepalive flag (like Firefox). | ||
* If the browser does support it, fetch is used by default. */ | ||
forceFetch?: boolean; | ||
} |
Oops, something went wrong.