glitch-javascript-sdk 1.7.4 → 1.7.6
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 +22 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Communities.d.ts +11 -0
- package/dist/esm/api/Titles.d.ts +1 -0
- package/dist/esm/index.js +22 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/api/Communities.ts +35 -13
- package/src/api/Titles.ts +13 -0
- package/src/routes/CommunitiesRoute.ts +4 -0
- package/src/routes/TitlesRoute.ts +4 -0
|
@@ -594,5 +594,16 @@ declare class Communities {
|
|
|
594
594
|
static exportNewsletterSubscribers<T>(community_id: string, newsletter_id: string, data: {
|
|
595
595
|
format: 'csv' | 'xlsx';
|
|
596
596
|
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
597
|
+
/**
|
|
598
|
+
* Import game installs from a game title installations to a newsletter
|
|
599
|
+
*
|
|
600
|
+
* @param community_id The ID of the community.
|
|
601
|
+
* @param newsletter_id The ID of the newsletter.
|
|
602
|
+
* @param data Export options (format: 'csv' or 'xlsx').
|
|
603
|
+
* @returns Promise
|
|
604
|
+
*/
|
|
605
|
+
static importGameInstalls<T>(community_id: string, newsletter_id: string, data: {
|
|
606
|
+
format: 'csv' | 'xlsx';
|
|
607
|
+
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
597
608
|
}
|
|
598
609
|
export default Communities;
|
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -232,5 +232,6 @@ declare class Titles {
|
|
|
232
232
|
* Optionally filter by platform/device_type/OS/version and group by one dimension.
|
|
233
233
|
*/
|
|
234
234
|
static sessionsAverage<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
235
|
+
static sessionsHistogram<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
235
236
|
}
|
|
236
237
|
export default Titles;
|
package/dist/esm/index.js
CHANGED
|
@@ -6638,6 +6638,10 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
6638
6638
|
url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers/export',
|
|
6639
6639
|
method: HTTP_METHODS.POST
|
|
6640
6640
|
},
|
|
6641
|
+
importGameInstalls: {
|
|
6642
|
+
url: '/communities/{community_id}/newsletters/{newsletter_id}/import_game_installs',
|
|
6643
|
+
method: HTTP_METHODS.POST
|
|
6644
|
+
},
|
|
6641
6645
|
// Campaigns
|
|
6642
6646
|
listCampaigns: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.GET },
|
|
6643
6647
|
createCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.POST },
|
|
@@ -7396,6 +7400,17 @@ var Communities = /** @class */ (function () {
|
|
|
7396
7400
|
Communities.exportNewsletterSubscribers = function (community_id, newsletter_id, data, params) {
|
|
7397
7401
|
return Requests.processRoute(CommunitiesRoute.routes.exportNewsletterSubscribers, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
7398
7402
|
};
|
|
7403
|
+
/**
|
|
7404
|
+
* Import game installs from a game title installations to a newsletter
|
|
7405
|
+
*
|
|
7406
|
+
* @param community_id The ID of the community.
|
|
7407
|
+
* @param newsletter_id The ID of the newsletter.
|
|
7408
|
+
* @param data Export options (format: 'csv' or 'xlsx').
|
|
7409
|
+
* @returns Promise
|
|
7410
|
+
*/
|
|
7411
|
+
Communities.importGameInstalls = function (community_id, newsletter_id, data, params) {
|
|
7412
|
+
return Requests.processRoute(CommunitiesRoute.routes.importGameInstalls, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
7413
|
+
};
|
|
7399
7414
|
return Communities;
|
|
7400
7415
|
}());
|
|
7401
7416
|
|
|
@@ -9650,6 +9665,10 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
9650
9665
|
url: '/titles/{title_id}/installs/sessions/average',
|
|
9651
9666
|
method: HTTP_METHODS.GET
|
|
9652
9667
|
},
|
|
9668
|
+
sessionsHistogram: {
|
|
9669
|
+
url: '/titles/{title_id}/sessions/histogram',
|
|
9670
|
+
method: HTTP_METHODS.GET
|
|
9671
|
+
},
|
|
9653
9672
|
};
|
|
9654
9673
|
return TitlesRoute;
|
|
9655
9674
|
}());
|
|
@@ -9953,6 +9972,9 @@ var Titles = /** @class */ (function () {
|
|
|
9953
9972
|
Titles.sessionsAverage = function (title_id, params) {
|
|
9954
9973
|
return Requests.processRoute(TitlesRoute.routes.sessionsAverage, {}, { title_id: title_id }, params);
|
|
9955
9974
|
};
|
|
9975
|
+
Titles.sessionsHistogram = function (title_id, params) {
|
|
9976
|
+
return Requests.processRoute(TitlesRoute.routes.sessionsHistogram, {}, { title_id: title_id }, params);
|
|
9977
|
+
};
|
|
9956
9978
|
return Titles;
|
|
9957
9979
|
}());
|
|
9958
9980
|
|