From 81c960d380cf112ecc63e3b979ad381adaecf36f Mon Sep 17 00:00:00 2001 From: Marvin Blum Date: Tue, 3 Oct 2023 17:38:58 +0200 Subject: [PATCH] Improved inline docs. --- CHANGELOG.md | 4 ++++ src/client.ts | 2 +- src/core.ts | 3 +-- src/web-api.ts | 2 +- src/web.ts | 3 ++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75998c7..52bb411 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.4.2 + +* improved inline docs + ## 2.4.1 * fixed entrypoint diff --git a/src/client.ts b/src/client.ts index 1fbb6d6..76905d4 100644 --- a/src/client.ts +++ b/src/client.ts @@ -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 diff --git a/src/core.ts b/src/core.ts index b7afe04..1a14ebd 100644 --- a/src/core.ts +++ b/src/core.ts @@ -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 * */ diff --git a/src/web-api.ts b/src/web-api.ts index e33cce6..deb285d 100644 --- a/src/web-api.ts +++ b/src/web-api.ts @@ -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 diff --git a/src/web.ts b/src/web.ts index 287c99b..67ff3a2 100644 --- a/src/web.ts +++ b/src/web.ts @@ -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) {