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
package/dist/cjs/index.js
CHANGED
|
@@ -19822,6 +19822,10 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
19822
19822
|
url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers/export',
|
|
19823
19823
|
method: HTTP_METHODS.POST
|
|
19824
19824
|
},
|
|
19825
|
+
importGameInstalls: {
|
|
19826
|
+
url: '/communities/{community_id}/newsletters/{newsletter_id}/import_game_installs',
|
|
19827
|
+
method: HTTP_METHODS.POST
|
|
19828
|
+
},
|
|
19825
19829
|
// Campaigns
|
|
19826
19830
|
listCampaigns: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.GET },
|
|
19827
19831
|
createCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.POST },
|
|
@@ -20580,6 +20584,17 @@ var Communities = /** @class */ (function () {
|
|
|
20580
20584
|
Communities.exportNewsletterSubscribers = function (community_id, newsletter_id, data, params) {
|
|
20581
20585
|
return Requests.processRoute(CommunitiesRoute.routes.exportNewsletterSubscribers, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
20582
20586
|
};
|
|
20587
|
+
/**
|
|
20588
|
+
* Import game installs from a game title installations to a newsletter
|
|
20589
|
+
*
|
|
20590
|
+
* @param community_id The ID of the community.
|
|
20591
|
+
* @param newsletter_id The ID of the newsletter.
|
|
20592
|
+
* @param data Export options (format: 'csv' or 'xlsx').
|
|
20593
|
+
* @returns Promise
|
|
20594
|
+
*/
|
|
20595
|
+
Communities.importGameInstalls = function (community_id, newsletter_id, data, params) {
|
|
20596
|
+
return Requests.processRoute(CommunitiesRoute.routes.importGameInstalls, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
20597
|
+
};
|
|
20583
20598
|
return Communities;
|
|
20584
20599
|
}());
|
|
20585
20600
|
|
|
@@ -22834,6 +22849,10 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
22834
22849
|
url: '/titles/{title_id}/installs/sessions/average',
|
|
22835
22850
|
method: HTTP_METHODS.GET
|
|
22836
22851
|
},
|
|
22852
|
+
sessionsHistogram: {
|
|
22853
|
+
url: '/titles/{title_id}/sessions/histogram',
|
|
22854
|
+
method: HTTP_METHODS.GET
|
|
22855
|
+
},
|
|
22837
22856
|
};
|
|
22838
22857
|
return TitlesRoute;
|
|
22839
22858
|
}());
|
|
@@ -23137,6 +23156,9 @@ var Titles = /** @class */ (function () {
|
|
|
23137
23156
|
Titles.sessionsAverage = function (title_id, params) {
|
|
23138
23157
|
return Requests.processRoute(TitlesRoute.routes.sessionsAverage, {}, { title_id: title_id }, params);
|
|
23139
23158
|
};
|
|
23159
|
+
Titles.sessionsHistogram = function (title_id, params) {
|
|
23160
|
+
return Requests.processRoute(TitlesRoute.routes.sessionsHistogram, {}, { title_id: title_id }, params);
|
|
23161
|
+
};
|
|
23140
23162
|
return Titles;
|
|
23141
23163
|
}());
|
|
23142
23164
|
|