glitch-javascript-sdk 2.7.6 → 2.7.7
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 +30 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +10 -0
- package/dist/esm/api/Communities.d.ts +14 -0
- package/dist/esm/index.js +30 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +24 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +20 -11
- package/src/api/Communities.ts +20 -0
- package/src/routes/CampaignsRoute.ts +2 -0
- package/src/routes/CommunitiesRoute.ts +6 -3
package/dist/index.d.ts
CHANGED
|
@@ -1828,6 +1828,20 @@ declare class Communities {
|
|
|
1828
1828
|
* List all Stripe invoices for the community.
|
|
1829
1829
|
*/
|
|
1830
1830
|
static listInvoices<T>(community_id: string): AxiosPromise<Response<T>>;
|
|
1831
|
+
/**
|
|
1832
|
+
* List influencers saved to the community's private talent pool.
|
|
1833
|
+
*
|
|
1834
|
+
* @param community_id The UUID of the community.
|
|
1835
|
+
* @param params Optional filters like 'list_name'.
|
|
1836
|
+
*/
|
|
1837
|
+
static listSavedInfluencers<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1838
|
+
/**
|
|
1839
|
+
* Save an influencer to the community's talent pool (Shortlist).
|
|
1840
|
+
*
|
|
1841
|
+
* @param community_id The UUID of the community.
|
|
1842
|
+
* @param data { influencer_id: string, list_name?: string, tags?: string[] }
|
|
1843
|
+
*/
|
|
1844
|
+
static saveInfluencerToPool<T>(community_id: string, data: object): AxiosPromise<Response<T>>;
|
|
1831
1845
|
}
|
|
1832
1846
|
|
|
1833
1847
|
declare class Users {
|
|
@@ -5010,6 +5024,16 @@ declare class Campaigns {
|
|
|
5010
5024
|
static sendOnboarding<T>(campaign_id: string, user_id: string, data?: {
|
|
5011
5025
|
template_id?: string;
|
|
5012
5026
|
}): AxiosPromise<Response<T>>;
|
|
5027
|
+
/**
|
|
5028
|
+
* Bulk invite influencers from a previous campaign into the current one.
|
|
5029
|
+
*
|
|
5030
|
+
* @param campaign_id The UUID of the target campaign.
|
|
5031
|
+
* @param data { source_campaign_id: string, only_successful: boolean }
|
|
5032
|
+
*/
|
|
5033
|
+
static crossPromote<T>(campaign_id: string, data: {
|
|
5034
|
+
source_campaign_id: string;
|
|
5035
|
+
only_successful?: boolean;
|
|
5036
|
+
}): AxiosPromise<Response<T>>;
|
|
5013
5037
|
}
|
|
5014
5038
|
|
|
5015
5039
|
declare class Subscriptions {
|
package/package.json
CHANGED
package/src/api/Campaigns.ts
CHANGED
|
@@ -998,9 +998,9 @@ class Campaigns {
|
|
|
998
998
|
*/
|
|
999
999
|
public static getSpecificInfluencerInstallReport<T>(campaign_id: string, influencer_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
1000
1000
|
return Requests.processRoute(
|
|
1001
|
-
CampaignsRoute.routes.getSpecificInfluencerInstallReport,
|
|
1002
|
-
undefined,
|
|
1003
|
-
{ campaign_id, influencer_id },
|
|
1001
|
+
CampaignsRoute.routes.getSpecificInfluencerInstallReport,
|
|
1002
|
+
undefined,
|
|
1003
|
+
{ campaign_id, influencer_id },
|
|
1004
1004
|
params
|
|
1005
1005
|
);
|
|
1006
1006
|
}
|
|
@@ -1009,13 +1009,13 @@ class Campaigns {
|
|
|
1009
1009
|
* Generate AI Landing Page for an Influencer Campaign.
|
|
1010
1010
|
*/
|
|
1011
1011
|
public static generateInfluencerLandingPage<T>(
|
|
1012
|
-
campaign_id: string,
|
|
1013
|
-
user_id: string,
|
|
1012
|
+
campaign_id: string,
|
|
1013
|
+
user_id: string,
|
|
1014
1014
|
data: { prompt: string, privacy_mode: string }
|
|
1015
1015
|
): AxiosPromise<Response<T>> {
|
|
1016
1016
|
return Requests.processRoute(
|
|
1017
|
-
CampaignsRoute.routes.generateInfluencerLandingPage,
|
|
1018
|
-
data,
|
|
1017
|
+
CampaignsRoute.routes.generateInfluencerLandingPage,
|
|
1018
|
+
data,
|
|
1019
1019
|
{ campaign_id, user_id }
|
|
1020
1020
|
);
|
|
1021
1021
|
}
|
|
@@ -1024,13 +1024,13 @@ class Campaigns {
|
|
|
1024
1024
|
* Update settings for the Influencer Landing Page.
|
|
1025
1025
|
*/
|
|
1026
1026
|
public static updateInfluencerLandingPage<T>(
|
|
1027
|
-
campaign_id: string,
|
|
1028
|
-
user_id: string,
|
|
1027
|
+
campaign_id: string,
|
|
1028
|
+
user_id: string,
|
|
1029
1029
|
data: { is_landing_page_active?: boolean, landing_page_slug?: string }
|
|
1030
1030
|
): AxiosPromise<Response<T>> {
|
|
1031
1031
|
return Requests.processRoute(
|
|
1032
|
-
CampaignsRoute.routes.updateInfluencerLandingPage,
|
|
1033
|
-
data,
|
|
1032
|
+
CampaignsRoute.routes.updateInfluencerLandingPage,
|
|
1033
|
+
data,
|
|
1034
1034
|
{ campaign_id, user_id }
|
|
1035
1035
|
);
|
|
1036
1036
|
}
|
|
@@ -1064,6 +1064,15 @@ class Campaigns {
|
|
|
1064
1064
|
return Requests.processRoute(CampaignsRoute.routes.sendOnboarding, data, { campaign_id, user_id });
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* Bulk invite influencers from a previous campaign into the current one.
|
|
1069
|
+
*
|
|
1070
|
+
* @param campaign_id The UUID of the target campaign.
|
|
1071
|
+
* @param data { source_campaign_id: string, only_successful: boolean }
|
|
1072
|
+
*/
|
|
1073
|
+
public static crossPromote<T>(campaign_id: string, data: { source_campaign_id: string, only_successful?: boolean }): AxiosPromise<Response<T>> {
|
|
1074
|
+
return Requests.processRoute(CampaignsRoute.routes.crossPromote, data, { campaign_id });
|
|
1075
|
+
}
|
|
1067
1076
|
}
|
|
1068
1077
|
|
|
1069
1078
|
export default Campaigns;
|
package/src/api/Communities.ts
CHANGED
|
@@ -985,6 +985,26 @@ class Communities {
|
|
|
985
985
|
return Requests.processRoute(CommunitiesRoute.routes.listInvoices, undefined, { community_id });
|
|
986
986
|
}
|
|
987
987
|
|
|
988
|
+
/**
|
|
989
|
+
* List influencers saved to the community's private talent pool.
|
|
990
|
+
*
|
|
991
|
+
* @param community_id The UUID of the community.
|
|
992
|
+
* @param params Optional filters like 'list_name'.
|
|
993
|
+
*/
|
|
994
|
+
public static listSavedInfluencers<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
995
|
+
return Requests.processRoute(CommunitiesRoute.routes.listSavedInfluencers, undefined, { community_id }, params);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Save an influencer to the community's talent pool (Shortlist).
|
|
1000
|
+
*
|
|
1001
|
+
* @param community_id The UUID of the community.
|
|
1002
|
+
* @param data { influencer_id: string, list_name?: string, tags?: string[] }
|
|
1003
|
+
*/
|
|
1004
|
+
public static saveInfluencerToPool<T>(community_id: string, data: object): AxiosPromise<Response<T>> {
|
|
1005
|
+
return Requests.processRoute(CommunitiesRoute.routes.saveInfluencerToPool, data, { community_id });
|
|
1006
|
+
}
|
|
1007
|
+
|
|
988
1008
|
}
|
|
989
1009
|
|
|
990
1010
|
export default Communities;
|
|
@@ -104,6 +104,8 @@ class CampaignsRoute {
|
|
|
104
104
|
},
|
|
105
105
|
sendOnboarding: { url: '/campaigns/{campaign_id}/influencers/{user_id}/onboarding', method: HTTP_METHODS.POST },
|
|
106
106
|
|
|
107
|
+
crossPromote: { url: '/campaigns/{campaign_id}/cross-promote', method: HTTP_METHODS.POST },
|
|
108
|
+
|
|
107
109
|
};
|
|
108
110
|
|
|
109
111
|
}
|
|
@@ -99,9 +99,9 @@ class CommunitiesRoute {
|
|
|
99
99
|
method: HTTP_METHODS.POST
|
|
100
100
|
},
|
|
101
101
|
// New Invoicing and Statement Routes
|
|
102
|
-
listInvoices: {
|
|
103
|
-
url: '/communities/{community_id}/payment/invoices',
|
|
104
|
-
method: HTTP_METHODS.GET
|
|
102
|
+
listInvoices: {
|
|
103
|
+
url: '/communities/{community_id}/payment/invoices',
|
|
104
|
+
method: HTTP_METHODS.GET
|
|
105
105
|
},
|
|
106
106
|
getInvoiceDetails: {
|
|
107
107
|
url: '/communities/{community_id}/payment/invoices/{invoice_id}',
|
|
@@ -112,6 +112,9 @@ class CommunitiesRoute {
|
|
|
112
112
|
method: HTTP_METHODS.GET
|
|
113
113
|
},
|
|
114
114
|
|
|
115
|
+
listSavedInfluencers: { url: '/communities/{community_id}/influencers', method: HTTP_METHODS.GET },
|
|
116
|
+
saveInfluencerToPool: { url: '/communities/{community_id}/influencers', method: HTTP_METHODS.POST }
|
|
117
|
+
|
|
115
118
|
};
|
|
116
119
|
|
|
117
120
|
|