glitch-javascript-sdk 2.1.0 → 2.1.2

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/index.d.ts CHANGED
@@ -2709,6 +2709,39 @@ declare class Fingerprinting {
2709
2709
  * @returns Promise with geolocation report data
2710
2710
  */
2711
2711
  static geolocationReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
2712
+ /**
2713
+ * Get pixel and utem reports
2714
+ *
2715
+ * @param params Report options:
2716
+ * - title_id: string - Required title ID
2717
+ * - start_date?: string - Start date (YYYY-MM-DD)
2718
+ * - end_date?: string - End date (YYYY-MM-DD)
2719
+ * - group_by?: 'country'|'region'|'city' - Grouping level
2720
+ * @returns Promise with geolocation report data
2721
+ */
2722
+ static pixelAttributionReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
2723
+ /**
2724
+ * Get an understanding of the path people take to install your game
2725
+ *
2726
+ * @param params Report options:
2727
+ * - title_id: string - Required title ID
2728
+ * - start_date?: string - Start date (YYYY-MM-DD)
2729
+ * - end_date?: string - End date (YYYY-MM-DD)
2730
+ * - group_by?: 'country'|'region'|'city' - Grouping level
2731
+ * @returns Promise with geolocation report data
2732
+ */
2733
+ static installJourneyReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
2734
+ /**
2735
+ * Get how the ad campaigns are performing and turning into installs
2736
+ *
2737
+ * @param params Report options:
2738
+ * - title_id: string - Required title ID
2739
+ * - start_date?: string - Start date (YYYY-MM-DD)
2740
+ * - end_date?: string - End date (YYYY-MM-DD)
2741
+ * - group_by?: 'country'|'region'|'city' - Grouping level
2742
+ * @returns Promise with geolocation report data
2743
+ */
2744
+ static adCampaignPerformanceReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
2712
2745
  }
2713
2746
 
2714
2747
  declare class Teams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -210,6 +210,64 @@ class Fingerprinting {
210
210
  params
211
211
  );
212
212
  }
213
+
214
+ /**
215
+ * Get pixel and utem reports
216
+ *
217
+ * @param params Report options:
218
+ * - title_id: string - Required title ID
219
+ * - start_date?: string - Start date (YYYY-MM-DD)
220
+ * - end_date?: string - End date (YYYY-MM-DD)
221
+ * - group_by?: 'country'|'region'|'city' - Grouping level
222
+ * @returns Promise with geolocation report data
223
+ */
224
+ public static pixelAttributionReport<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
225
+ return Requests.processRoute(
226
+ FingerprintingRoute.routes.pixelAttributionReport,
227
+ {},
228
+ undefined,
229
+ params
230
+ );
231
+ }
232
+
233
+
234
+ /**
235
+ * Get an understanding of the path people take to install your game
236
+ *
237
+ * @param params Report options:
238
+ * - title_id: string - Required title ID
239
+ * - start_date?: string - Start date (YYYY-MM-DD)
240
+ * - end_date?: string - End date (YYYY-MM-DD)
241
+ * - group_by?: 'country'|'region'|'city' - Grouping level
242
+ * @returns Promise with geolocation report data
243
+ */
244
+ public static installJourneyReport<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
245
+ return Requests.processRoute(
246
+ FingerprintingRoute.routes.installJourneyReport,
247
+ {},
248
+ undefined,
249
+ params
250
+ );
251
+ }
252
+
253
+ /**
254
+ * Get how the ad campaigns are performing and turning into installs
255
+ *
256
+ * @param params Report options:
257
+ * - title_id: string - Required title ID
258
+ * - start_date?: string - Start date (YYYY-MM-DD)
259
+ * - end_date?: string - End date (YYYY-MM-DD)
260
+ * - group_by?: 'country'|'region'|'city' - Grouping level
261
+ * @returns Promise with geolocation report data
262
+ */
263
+ public static adCampaignPerformanceReport<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
264
+ return Requests.processRoute(
265
+ FingerprintingRoute.routes.adCampaignPerformanceReport,
266
+ {},
267
+ undefined,
268
+ params
269
+ );
270
+ }
213
271
  }
214
272
 
215
273
  export default Fingerprinting;
@@ -42,7 +42,19 @@ class FingerprintingRoute {
42
42
  geolocationReport: {
43
43
  url: '/reports/fingerprinting/geolocation',
44
44
  method: HTTP_METHODS.GET
45
- }
45
+ },
46
+ pixelAttributionReport: {
47
+ url: '/reports/fingerprinting/pixel-attribution',
48
+ method: HTTP_METHODS.GET
49
+ },
50
+ installJourneyReport: {
51
+ url: '/reports/fingerprinting/install-journey',
52
+ method: HTTP_METHODS.GET
53
+ },
54
+ adCampaignPerformanceReport: {
55
+ url: '/reports/fingerprinting/ad-campaign-performance',
56
+ method: HTTP_METHODS.GET
57
+ },
46
58
  };
47
59
  }
48
60