Skip to content

Commit

Permalink
feat(javascript): expose current apiKey on the client instance [skip-…
Browse files Browse the repository at this point in the history
…bc] (#4285) (generated) [skip ci]

Co-authored-by: Haroen Viaene <[email protected]>
  • Loading branch information
algolia-bot and Haroenv committed Dec 24, 2024
1 parent e972f9b commit ff0627e
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ export function createLiteClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export function createAbtestingClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export function createAnalyticsClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ export function createCompositionClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ export function createInsightsClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ export function createPersonalizationClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ export function createQuerySuggestionsClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ export function createSearchClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ export function createIngestionClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ export function createMonitoringClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export function createRecommendClient({
*/
appId: appIdOption,

/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,

/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down

0 comments on commit ff0627e

Please sign in to comment.