glitch-javascript-sdk 3.8.8 → 3.8.10
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 +2054 -14017
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +7 -0
- package/dist/esm/api/Campaigns.d.ts +2 -0
- package/dist/esm/api/Communities.d.ts +2 -0
- package/dist/esm/api/Education.d.ts +5 -1
- package/dist/esm/api/Titles.d.ts +2 -0
- package/dist/esm/index.js +35 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +18 -1
- package/package.json +1 -1
- package/src/api/Ads.ts +10 -0
- package/src/api/Campaigns.ts +5 -0
- package/src/api/Communities.ts +5 -0
- package/src/api/Education.ts +15 -3
- package/src/api/Titles.ts +5 -0
package/dist/index.d.ts
CHANGED
|
@@ -1058,6 +1058,13 @@ declare class Ads {
|
|
|
1058
1058
|
static deleteTwitterTargetingCriterion<T>(criterion_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1059
1059
|
static twitterBatchTargetingCriteria<T>(data: object[], params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1060
1060
|
static lookupTwitterTargeting<T>(resource: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1061
|
+
/**
|
|
1062
|
+
* Look up Twitter location targeting options.
|
|
1063
|
+
*
|
|
1064
|
+
* Kept as a named convenience method for frontend compatibility while the
|
|
1065
|
+
* generic lookupTwitterTargeting method remains the canonical route helper.
|
|
1066
|
+
*/
|
|
1067
|
+
static listTwitterTargetingLocations<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1061
1068
|
static twitterTargetingSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1062
1069
|
/**
|
|
1063
1070
|
* Deep-sync a campaign tree (campaign → groups → ads) with its remote platform.
|
|
@@ -1412,6 +1419,8 @@ declare class Communities {
|
|
|
1412
1419
|
* @returns promise
|
|
1413
1420
|
*/
|
|
1414
1421
|
static updatetUser<T>(community_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1422
|
+
/** Correctly-spelled alias retained alongside the legacy method name. */
|
|
1423
|
+
static updateUser<T>(community_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1415
1424
|
/**
|
|
1416
1425
|
* Removes a user from a community.
|
|
1417
1426
|
*
|
|
@@ -4774,6 +4783,8 @@ declare class Titles {
|
|
|
4774
4783
|
static submitProgressionRun<T>(title_id: string, install_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4775
4784
|
static getProgressionPlayerStats<T>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
|
|
4776
4785
|
static getProgressionPlayerAchievements<T>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
|
|
4786
|
+
/** Compatibility alias matching the list-style naming used by the frontend. */
|
|
4787
|
+
static listProgressionPlayerAchievements<T>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
|
|
4777
4788
|
/**
|
|
4778
4789
|
* View leaderboard rankings.
|
|
4779
4790
|
* @param params Optional filters like { around_me: true, install_id: 'uuid', season_id: 'uuid' }
|
|
@@ -5368,6 +5379,8 @@ declare class Campaigns {
|
|
|
5368
5379
|
* @returns promise
|
|
5369
5380
|
*/
|
|
5370
5381
|
static widthdrawInfluencerInvite<T>(campaign_id: string, influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
5382
|
+
/** Correctly-spelled alias retained alongside the legacy method name. */
|
|
5383
|
+
static withdrawInfluencerInvite<T>(campaign_id: string, influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
5371
5384
|
/**
|
|
5372
5385
|
* The route to mark an influencer reachout and finished, and it will no longer send reachouts.
|
|
5373
5386
|
*
|
|
@@ -8864,7 +8877,11 @@ declare class Education {
|
|
|
8864
8877
|
static awardBadge<T>(data: object): AxiosPromise<Response<T>>;
|
|
8865
8878
|
static myCertificates<T>(): AxiosPromise<Response<T>>;
|
|
8866
8879
|
static downloadCertificate<T>(uuid: string): AxiosPromise<Response<T>>;
|
|
8867
|
-
static listTemplates<T>(): AxiosPromise<Response<T>>;
|
|
8880
|
+
static listTemplates<T>(params?: object): AxiosPromise<Response<T>>;
|
|
8881
|
+
static createTemplate<T>(data: object): AxiosPromise<Response<T>>;
|
|
8882
|
+
static viewTemplate<T>(uuid: string, params?: object): AxiosPromise<Response<T>>;
|
|
8883
|
+
static updateTemplate<T>(uuid: string, data: object): AxiosPromise<Response<T>>;
|
|
8884
|
+
static deleteTemplate<T>(uuid: string): AxiosPromise<Response<T>>;
|
|
8868
8885
|
static uploadTemplateSignature<T>(uuid: string, file: File): AxiosPromise<Response<T>>;
|
|
8869
8886
|
static uploadTemplateBackground<T>(uuid: string, file: File): AxiosPromise<Response<T>>;
|
|
8870
8887
|
}
|
package/package.json
CHANGED
package/src/api/Ads.ts
CHANGED
|
@@ -985,6 +985,16 @@ class Ads {
|
|
|
985
985
|
return Requests.processRoute(AdsRoute.routes.twitterTargetingDiscovery, undefined, { resource }, params);
|
|
986
986
|
}
|
|
987
987
|
|
|
988
|
+
/**
|
|
989
|
+
* Look up Twitter location targeting options.
|
|
990
|
+
*
|
|
991
|
+
* Kept as a named convenience method for frontend compatibility while the
|
|
992
|
+
* generic lookupTwitterTargeting method remains the canonical route helper.
|
|
993
|
+
*/
|
|
994
|
+
public static listTwitterTargetingLocations<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
995
|
+
return this.lookupTwitterTargeting<T>('locations', params);
|
|
996
|
+
}
|
|
997
|
+
|
|
988
998
|
public static twitterTargetingSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
|
|
989
999
|
return Requests.processRoute(AdsRoute.routes.twitterTargetingSuggestions, undefined, undefined, params);
|
|
990
1000
|
}
|
package/src/api/Campaigns.ts
CHANGED
|
@@ -668,6 +668,11 @@ class Campaigns {
|
|
|
668
668
|
return Requests.processRoute(CampaignsRoute.routes.widthdrawInfluencerInvite, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
|
|
669
669
|
}
|
|
670
670
|
|
|
671
|
+
/** Correctly-spelled alias retained alongside the legacy method name. */
|
|
672
|
+
public static withdrawInfluencerInvite<T>(campaign_id: string, influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
673
|
+
return this.widthdrawInfluencerInvite<T>(campaign_id, influencer_id, data, params);
|
|
674
|
+
}
|
|
675
|
+
|
|
671
676
|
/**
|
|
672
677
|
* The route to mark an influencer reachout and finished, and it will no longer send reachouts.
|
|
673
678
|
*
|
package/src/api/Communities.ts
CHANGED
|
@@ -297,6 +297,11 @@ class Communities {
|
|
|
297
297
|
return Requests.processRoute(CommunitiesRoute.routes.updateUser, data, { community_id: community_id, user_id: user_id }, params);
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
+
/** Correctly-spelled alias retained alongside the legacy method name. */
|
|
301
|
+
public static updateUser<T>(community_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
302
|
+
return this.updatetUser<T>(community_id, user_id, data, params);
|
|
303
|
+
}
|
|
304
|
+
|
|
300
305
|
/**
|
|
301
306
|
* Removes a user from a community.
|
|
302
307
|
*
|
package/src/api/Education.ts
CHANGED
|
@@ -214,8 +214,20 @@ class Education {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
// --- 10. TEMPLATES & UPLOADS ---
|
|
217
|
-
public static listTemplates<T>(): AxiosPromise<Response<T>> {
|
|
218
|
-
return Requests.processRoute(EducationRoute.routes.listTemplates);
|
|
217
|
+
public static listTemplates<T>(params?: object): AxiosPromise<Response<T>> {
|
|
218
|
+
return Requests.processRoute(EducationRoute.routes.listTemplates, undefined, undefined, params);
|
|
219
|
+
}
|
|
220
|
+
public static createTemplate<T>(data: object): AxiosPromise<Response<T>> {
|
|
221
|
+
return Requests.processRoute(EducationRoute.routes.createTemplate, data);
|
|
222
|
+
}
|
|
223
|
+
public static viewTemplate<T>(uuid: string, params?: object): AxiosPromise<Response<T>> {
|
|
224
|
+
return Requests.processRoute(EducationRoute.routes.viewTemplate, undefined, { uuid }, params);
|
|
225
|
+
}
|
|
226
|
+
public static updateTemplate<T>(uuid: string, data: object): AxiosPromise<Response<T>> {
|
|
227
|
+
return Requests.processRoute(EducationRoute.routes.updateTemplate, data, { uuid });
|
|
228
|
+
}
|
|
229
|
+
public static deleteTemplate<T>(uuid: string): AxiosPromise<Response<T>> {
|
|
230
|
+
return Requests.processRoute(EducationRoute.routes.deleteTemplate, undefined, { uuid });
|
|
219
231
|
}
|
|
220
232
|
public static uploadTemplateSignature<T>(uuid: string, file: File): AxiosPromise<Response<T>> {
|
|
221
233
|
const url = EducationRoute.routes.uploadTemplateSignature.url.replace('{uuid}', uuid);
|
|
@@ -227,4 +239,4 @@ class Education {
|
|
|
227
239
|
}
|
|
228
240
|
}
|
|
229
241
|
|
|
230
|
-
export default Education;
|
|
242
|
+
export default Education;
|
package/src/api/Titles.ts
CHANGED
|
@@ -1263,6 +1263,11 @@ class Titles {
|
|
|
1263
1263
|
return Requests.processRoute(TitlesRoute.routes.progressionPlayerAchievements, undefined, { title_id, install_id });
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
|
+
/** Compatibility alias matching the list-style naming used by the frontend. */
|
|
1267
|
+
public static listProgressionPlayerAchievements<T>(title_id: string, install_id: string): AxiosPromise<Response<T>> {
|
|
1268
|
+
return this.getProgressionPlayerAchievements<T>(title_id, install_id);
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1266
1271
|
/**
|
|
1267
1272
|
* View leaderboard rankings.
|
|
1268
1273
|
* @param params Optional filters like { around_me: true, install_id: 'uuid', season_id: 'uuid' }
|