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/esm/api/Ads.d.ts
CHANGED
|
@@ -357,6 +357,13 @@ declare class Ads {
|
|
|
357
357
|
static deleteTwitterTargetingCriterion<T>(criterion_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
358
358
|
static twitterBatchTargetingCriteria<T>(data: object[], params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
359
359
|
static lookupTwitterTargeting<T>(resource: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
360
|
+
/**
|
|
361
|
+
* Look up Twitter location targeting options.
|
|
362
|
+
*
|
|
363
|
+
* Kept as a named convenience method for frontend compatibility while the
|
|
364
|
+
* generic lookupTwitterTargeting method remains the canonical route helper.
|
|
365
|
+
*/
|
|
366
|
+
static listTwitterTargetingLocations<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
360
367
|
static twitterTargetingSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
361
368
|
/**
|
|
362
369
|
* Deep-sync a campaign tree (campaign → groups → ads) with its remote platform.
|
|
@@ -465,6 +465,8 @@ declare class Campaigns {
|
|
|
465
465
|
* @returns promise
|
|
466
466
|
*/
|
|
467
467
|
static widthdrawInfluencerInvite<T>(campaign_id: string, influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
468
|
+
/** Correctly-spelled alias retained alongside the legacy method name. */
|
|
469
|
+
static withdrawInfluencerInvite<T>(campaign_id: string, influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
468
470
|
/**
|
|
469
471
|
* The route to mark an influencer reachout and finished, and it will no longer send reachouts.
|
|
470
472
|
*
|
|
@@ -211,6 +211,8 @@ declare class Communities {
|
|
|
211
211
|
* @returns promise
|
|
212
212
|
*/
|
|
213
213
|
static updatetUser<T>(community_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
214
|
+
/** Correctly-spelled alias retained alongside the legacy method name. */
|
|
215
|
+
static updateUser<T>(community_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
214
216
|
/**
|
|
215
217
|
* Removes a user from a community.
|
|
216
218
|
*
|
|
@@ -66,7 +66,11 @@ declare class Education {
|
|
|
66
66
|
static awardBadge<T>(data: object): AxiosPromise<Response<T>>;
|
|
67
67
|
static myCertificates<T>(): AxiosPromise<Response<T>>;
|
|
68
68
|
static downloadCertificate<T>(uuid: string): AxiosPromise<Response<T>>;
|
|
69
|
-
static listTemplates<T>(): AxiosPromise<Response<T>>;
|
|
69
|
+
static listTemplates<T>(params?: object): AxiosPromise<Response<T>>;
|
|
70
|
+
static createTemplate<T>(data: object): AxiosPromise<Response<T>>;
|
|
71
|
+
static viewTemplate<T>(uuid: string, params?: object): AxiosPromise<Response<T>>;
|
|
72
|
+
static updateTemplate<T>(uuid: string, data: object): AxiosPromise<Response<T>>;
|
|
73
|
+
static deleteTemplate<T>(uuid: string): AxiosPromise<Response<T>>;
|
|
70
74
|
static uploadTemplateSignature<T>(uuid: string, file: File): AxiosPromise<Response<T>>;
|
|
71
75
|
static uploadTemplateBackground<T>(uuid: string, file: File): AxiosPromise<Response<T>>;
|
|
72
76
|
}
|
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -680,6 +680,8 @@ declare class Titles {
|
|
|
680
680
|
static submitProgressionRun<T>(title_id: string, install_id: string, data: object): AxiosPromise<Response<T>>;
|
|
681
681
|
static getProgressionPlayerStats<T>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
|
|
682
682
|
static getProgressionPlayerAchievements<T>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
|
|
683
|
+
/** Compatibility alias matching the list-style naming used by the frontend. */
|
|
684
|
+
static listProgressionPlayerAchievements<T>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
|
|
683
685
|
/**
|
|
684
686
|
* View leaderboard rankings.
|
|
685
687
|
* @param params Optional filters like { around_me: true, install_id: 'uuid', season_id: 'uuid' }
|
package/dist/esm/index.js
CHANGED
|
@@ -7807,6 +7807,15 @@ var Ads = /** @class */ (function () {
|
|
|
7807
7807
|
Ads.lookupTwitterTargeting = function (resource, params) {
|
|
7808
7808
|
return Requests.processRoute(AdsRoute.routes.twitterTargetingDiscovery, undefined, { resource: resource }, params);
|
|
7809
7809
|
};
|
|
7810
|
+
/**
|
|
7811
|
+
* Look up Twitter location targeting options.
|
|
7812
|
+
*
|
|
7813
|
+
* Kept as a named convenience method for frontend compatibility while the
|
|
7814
|
+
* generic lookupTwitterTargeting method remains the canonical route helper.
|
|
7815
|
+
*/
|
|
7816
|
+
Ads.listTwitterTargetingLocations = function (params) {
|
|
7817
|
+
return this.lookupTwitterTargeting('locations', params);
|
|
7818
|
+
};
|
|
7810
7819
|
Ads.twitterTargetingSuggestions = function (params) {
|
|
7811
7820
|
return Requests.processRoute(AdsRoute.routes.twitterTargetingSuggestions, undefined, undefined, params);
|
|
7812
7821
|
};
|
|
@@ -8328,6 +8337,10 @@ var Communities = /** @class */ (function () {
|
|
|
8328
8337
|
Communities.updatetUser = function (community_id, user_id, data, params) {
|
|
8329
8338
|
return Requests.processRoute(CommunitiesRoute.routes.updateUser, data, { community_id: community_id, user_id: user_id }, params);
|
|
8330
8339
|
};
|
|
8340
|
+
/** Correctly-spelled alias retained alongside the legacy method name. */
|
|
8341
|
+
Communities.updateUser = function (community_id, user_id, data, params) {
|
|
8342
|
+
return this.updatetUser(community_id, user_id, data, params);
|
|
8343
|
+
};
|
|
8331
8344
|
/**
|
|
8332
8345
|
* Removes a user from a community.
|
|
8333
8346
|
*
|
|
@@ -13093,6 +13106,10 @@ var Titles = /** @class */ (function () {
|
|
|
13093
13106
|
Titles.getProgressionPlayerAchievements = function (title_id, install_id) {
|
|
13094
13107
|
return Requests.processRoute(TitlesRoute.routes.progressionPlayerAchievements, undefined, { title_id: title_id, install_id: install_id });
|
|
13095
13108
|
};
|
|
13109
|
+
/** Compatibility alias matching the list-style naming used by the frontend. */
|
|
13110
|
+
Titles.listProgressionPlayerAchievements = function (title_id, install_id) {
|
|
13111
|
+
return this.getProgressionPlayerAchievements(title_id, install_id);
|
|
13112
|
+
};
|
|
13096
13113
|
/**
|
|
13097
13114
|
* View leaderboard rankings.
|
|
13098
13115
|
* @param params Optional filters like { around_me: true, install_id: 'uuid', season_id: 'uuid' }
|
|
@@ -13934,6 +13951,10 @@ var Campaigns = /** @class */ (function () {
|
|
|
13934
13951
|
Campaigns.widthdrawInfluencerInvite = function (campaign_id, influencer_id, data, params) {
|
|
13935
13952
|
return Requests.processRoute(CampaignsRoute.routes.widthdrawInfluencerInvite, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
|
|
13936
13953
|
};
|
|
13954
|
+
/** Correctly-spelled alias retained alongside the legacy method name. */
|
|
13955
|
+
Campaigns.withdrawInfluencerInvite = function (campaign_id, influencer_id, data, params) {
|
|
13956
|
+
return this.widthdrawInfluencerInvite(campaign_id, influencer_id, data, params);
|
|
13957
|
+
};
|
|
13937
13958
|
/**
|
|
13938
13959
|
* The route to mark an influencer reachout and finished, and it will no longer send reachouts.
|
|
13939
13960
|
*
|
|
@@ -19091,8 +19112,20 @@ var Education = /** @class */ (function () {
|
|
|
19091
19112
|
return Requests.processRoute(EducationRoute.routes.downloadCertificate, undefined, { uuid: uuid });
|
|
19092
19113
|
};
|
|
19093
19114
|
// --- 10. TEMPLATES & UPLOADS ---
|
|
19094
|
-
Education.listTemplates = function () {
|
|
19095
|
-
return Requests.processRoute(EducationRoute.routes.listTemplates);
|
|
19115
|
+
Education.listTemplates = function (params) {
|
|
19116
|
+
return Requests.processRoute(EducationRoute.routes.listTemplates, undefined, undefined, params);
|
|
19117
|
+
};
|
|
19118
|
+
Education.createTemplate = function (data) {
|
|
19119
|
+
return Requests.processRoute(EducationRoute.routes.createTemplate, data);
|
|
19120
|
+
};
|
|
19121
|
+
Education.viewTemplate = function (uuid, params) {
|
|
19122
|
+
return Requests.processRoute(EducationRoute.routes.viewTemplate, undefined, { uuid: uuid }, params);
|
|
19123
|
+
};
|
|
19124
|
+
Education.updateTemplate = function (uuid, data) {
|
|
19125
|
+
return Requests.processRoute(EducationRoute.routes.updateTemplate, data, { uuid: uuid });
|
|
19126
|
+
};
|
|
19127
|
+
Education.deleteTemplate = function (uuid) {
|
|
19128
|
+
return Requests.processRoute(EducationRoute.routes.deleteTemplate, undefined, { uuid: uuid });
|
|
19096
19129
|
};
|
|
19097
19130
|
Education.uploadTemplateSignature = function (uuid, file) {
|
|
19098
19131
|
var url = EducationRoute.routes.uploadTemplateSignature.url.replace('{uuid}', uuid);
|