glitch-javascript-sdk 1.8.3 → 1.8.4

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.
@@ -253,6 +253,16 @@ declare class Titles {
253
253
  * @returns AxiosPromise
254
254
  */
255
255
  static getUtmAnalytics<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
256
+ /**
257
+ * Get the web tracking token used for websites.
258
+ *
259
+ * GET /titles/{title_id}/webTrackingToken
260
+ *
261
+ * @param title_id The UUID of the title
262
+ * @param params Optional query params:
263
+ * @returns AxiosPromise
264
+ */
265
+ static getWebTrackingToken<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
256
266
  /**
257
267
  * Analyze UTM data with optional group_by (source, campaign, medium, device_type, etc.)
258
268
  *
package/dist/esm/index.js CHANGED
@@ -10164,6 +10164,10 @@ var TitlesRoute = /** @class */ (function () {
10164
10164
  url: "/titles/{title_id}/utm",
10165
10165
  method: HTTP_METHODS.GET,
10166
10166
  },
10167
+ getWebTrackingToken: {
10168
+ url: "/titles/{title_id}/webTrackingToken",
10169
+ method: HTTP_METHODS.GET,
10170
+ },
10167
10171
  /**
10168
10172
  * 3) Analyze UTM data with optional group_by / dimension-based aggregates
10169
10173
  * GET /titles/{title_id}/utm/analysis
@@ -10503,6 +10507,18 @@ var Titles = /** @class */ (function () {
10503
10507
  Titles.getUtmAnalytics = function (title_id, params) {
10504
10508
  return Requests.processRoute(TitlesRoute.routes.getUtmAnalytics, {}, { title_id: title_id }, params);
10505
10509
  };
10510
+ /**
10511
+ * Get the web tracking token used for websites.
10512
+ *
10513
+ * GET /titles/{title_id}/webTrackingToken
10514
+ *
10515
+ * @param title_id The UUID of the title
10516
+ * @param params Optional query params:
10517
+ * @returns AxiosPromise
10518
+ */
10519
+ Titles.getWebTrackingToken = function (title_id, params) {
10520
+ return Requests.processRoute(TitlesRoute.routes.getWebTrackingToken, {}, { title_id: title_id }, params);
10521
+ };
10506
10522
  /**
10507
10523
  * Analyze UTM data with optional group_by (source, campaign, medium, device_type, etc.)
10508
10524
  *