Skip to content

Commit

Permalink
Improved inline docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kugelschieber committed Oct 3, 2023
1 parent e2783e5 commit 81c960d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.4.2

* improved inline docs

## 2.4.1

* fixed entrypoint
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class PirschNodeApiClient extends PirschCoreClient {
/**
* The constructor creates a new client.
*
* @param {object} configuration You need to pass in the **Hostname**, **Client ID**, and **Client Secret** you have configured on the Pirsch dashboard.
* @param {object} configuration You need to pass in the **Hostname**, **Client ID** and **Client Secret** or **Access Key** you have configured on the Pirsch dashboard.
* It's also recommended to set the proper protocol for your website, else it will be set to `https` by default.
* All other configuration parameters can be left to their defaults.
* @param {string} configuration.baseUrl The base URL for the pirsch API
Expand Down
3 changes: 1 addition & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@ export abstract class PirschCoreClient extends PirschCommon {
/**
* The constructor creates a new client.
*
* @param {object} configuration You need to pass in the **Hostname**, **Client ID**, and **Client Secret** you have configured on the Pirsch dashboard.
* @param {object} configuration You need to pass in the **Client ID** and **Client Secret** or **Access Key** you have configured on the Pirsch dashboard.
* It's also recommended to set the proper protocol for your website, else it will be set to `https` by default.
* All other configuration parameters can be left to their defaults.
* @param {string} configuration.baseUrl The base URL for the pirsch API
* @param {number} configuration.timeout The default HTTP timeout in milliseconds
* @param {string} configuration.clientId The OAuth client ID
* @param {string} configuration.clientSecret The OAuth client secret
* @param {string} configuration.hostname The hostname of the domain to track
* @param {string} configuration.protocol The default HTTP protocol to use for tracking
*
*/
Expand Down
2 changes: 1 addition & 1 deletion src/web-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class PirschWebApiClient extends PirschCoreClient {
/**
* The constructor creates a new client.
*
* @param {object} configuration You need to pass in the **Hostname** and **Access Token** you have configured on the Pirsch dashboard.
* @param {object} configuration You need to pass in the **Access Token** you have configured on the Pirsch dashboard.
* It's also recommended to set the proper protocol for your website, else it will be set to `https` by default.
* All other configuration parameters can be left to their defaults.
* @param {string} configuration.baseUrl The base URL for the pirsch API
Expand Down
3 changes: 2 additions & 1 deletion src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ export class PirschWebClient extends PirschCommon {
/**
* The constructor creates a new client.
*
* @param {object} configuration You need to pass in the **Hostname** and **Access Token** you have configured on the Pirsch dashboard.
* @param {object} configuration You need to pass in the **Identification Code** you have configured on the Pirsch dashboard.
* It's also recommended to set the proper protocol for your website, else it will be set to `https` by default.
* All other configuration parameters can be left to their defaults.
* @param {string} configuration.baseUrl The base URL for the pirsch API
* @param {number} configuration.timeout The default HTTP timeout in milliseconds
* @param {string} configuration.identificationCode The identification code
* @param {string} configuration.hostname The hostname to rewrite the URL. Usually only required for testing
*
*/
constructor(configuration: PirschIdentificationCodeClientConfig) {
Expand Down

0 comments on commit 81c960d

Please sign in to comment.