glitch-javascript-sdk 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,7 +72,7 @@ declare class Campaigns {
72
72
  *
73
73
  * @returns promise
74
74
  */
75
- static listInfluencerCampaignLinkClicks<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
75
+ static listInfluencerCampaignLinkClicks<T>(campaign_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
76
76
  /**
77
77
  * Create a new campaign link.
78
78
  *
@@ -37,7 +37,7 @@ declare class Config {
37
37
  */
38
38
  static setCommunity(community: Record<string, any>): void;
39
39
  /**
40
- * Sets the root level domain so data can accessed across
40
+ * Sets the root level domain so data can be accessed across
41
41
  * multiple subdomains
42
42
  *
43
43
  * @param domain The domain ie: example.com
package/dist/esm/index.js CHANGED
@@ -5716,12 +5716,16 @@ var Config = /** @class */ (function () {
5716
5716
  LabelManager.initialize(community);
5717
5717
  };
5718
5718
  /**
5719
- * Sets the root level domain so data can accessed across
5719
+ * Sets the root level domain so data can be accessed across
5720
5720
  * multiple subdomains
5721
5721
  *
5722
5722
  * @param domain The domain ie: example.com
5723
5723
  */
5724
5724
  Config.setRootDomain = function (domain) {
5725
+ if (!domain) {
5726
+ console.error("setRootDomain: domain is undefined or null");
5727
+ return;
5728
+ }
5725
5729
  var parts = domain.split('.');
5726
5730
  if (parts.length > 2) {
5727
5731
  parts.shift();
@@ -9180,8 +9184,8 @@ var Campaigns = /** @class */ (function () {
9180
9184
  *
9181
9185
  * @returns promise
9182
9186
  */
9183
- Campaigns.listInfluencerCampaignLinkClicks = function (campaign_id, params) {
9184
- return Requests.processRoute(CampaignsRoute.routes.listInfluencerCampaignLinkClicks, undefined, { campaign_id: campaign_id }, params);
9187
+ Campaigns.listInfluencerCampaignLinkClicks = function (campaign_id, user_id, params) {
9188
+ return Requests.processRoute(CampaignsRoute.routes.listInfluencerCampaignLinkClicks, undefined, { campaign_id: campaign_id, user_id: user_id }, params);
9185
9189
  };
9186
9190
  /**
9187
9191
  * Create a new campaign link.