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.
- package/dist/cjs/index.js +7 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +1 -1
- package/dist/esm/config/Config.d.ts +1 -1
- package/dist/esm/index.js +7 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/api/Campaigns.ts +2 -2
- package/src/config/Config.ts +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ declare class Config {
|
|
|
39
39
|
*/
|
|
40
40
|
static setCommunity(community: Record<string, any>): void;
|
|
41
41
|
/**
|
|
42
|
-
* Sets the root level domain so data can accessed across
|
|
42
|
+
* Sets the root level domain so data can be accessed across
|
|
43
43
|
* multiple subdomains
|
|
44
44
|
*
|
|
45
45
|
* @param domain The domain ie: example.com
|
|
@@ -2461,7 +2461,7 @@ declare class Campaigns {
|
|
|
2461
2461
|
*
|
|
2462
2462
|
* @returns promise
|
|
2463
2463
|
*/
|
|
2464
|
-
static listInfluencerCampaignLinkClicks<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
2464
|
+
static listInfluencerCampaignLinkClicks<T>(campaign_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
2465
2465
|
/**
|
|
2466
2466
|
* Create a new campaign link.
|
|
2467
2467
|
*
|
package/package.json
CHANGED
package/src/api/Campaigns.ts
CHANGED
|
@@ -102,8 +102,8 @@ class Campaigns {
|
|
|
102
102
|
*
|
|
103
103
|
* @returns promise
|
|
104
104
|
*/
|
|
105
|
-
public static listInfluencerCampaignLinkClicks<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
106
|
-
return Requests.processRoute(CampaignsRoute.routes.listInfluencerCampaignLinkClicks, undefined, { campaign_id: campaign_id }, params);
|
|
105
|
+
public static listInfluencerCampaignLinkClicks<T>(campaign_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
106
|
+
return Requests.processRoute(CampaignsRoute.routes.listInfluencerCampaignLinkClicks, undefined, { campaign_id: campaign_id, user_id : user_id }, params);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
|
package/src/config/Config.ts
CHANGED
|
@@ -78,12 +78,16 @@ class Config {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* Sets the root level domain so data can accessed across
|
|
81
|
+
* Sets the root level domain so data can be accessed across
|
|
82
82
|
* multiple subdomains
|
|
83
83
|
*
|
|
84
84
|
* @param domain The domain ie: example.com
|
|
85
85
|
*/
|
|
86
86
|
public static setRootDomain(domain: string) {
|
|
87
|
+
if (!domain) {
|
|
88
|
+
console.error("setRootDomain: domain is undefined or null");
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
87
91
|
|
|
88
92
|
const parts = domain.split('.');
|
|
89
93
|
|