glitch-javascript-sdk 1.9.3 → 1.9.5

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 CHANGED
@@ -20102,6 +20102,37 @@ var AdsRoute = /** @class */ (function () {
20102
20102
  url: "/ads/twitter/targeting/suggestions",
20103
20103
  method: HTTP_METHODS.GET,
20104
20104
  },
20105
+ syncCampaignTree: {
20106
+ url: "/ads/campaigns/{campaign_id}/sync_tree",
20107
+ method: HTTP_METHODS.POST,
20108
+ },
20109
+ syncSchedulerCampaigns: {
20110
+ url: "/ads/campaigns/scheduler/{scheduler_id}/syncAll",
20111
+ method: HTTP_METHODS.POST,
20112
+ },
20113
+ // ----------------------------------------------------------------
20114
+ // AD REPORTS
20115
+ // ----------------------------------------------------------------
20116
+ getPerformanceSummary: {
20117
+ url: "/ads/reports/summary",
20118
+ method: HTTP_METHODS.GET,
20119
+ },
20120
+ getSpendDeliveryReport: {
20121
+ url: "/ads/reports/spend-delivery",
20122
+ method: HTTP_METHODS.GET,
20123
+ },
20124
+ getPlatformComparisonReport: {
20125
+ url: "/ads/reports/platform-comparison",
20126
+ method: HTTP_METHODS.GET,
20127
+ },
20128
+ getCreativePerformanceReport: {
20129
+ url: "/ads/reports/creative-performance",
20130
+ method: HTTP_METHODS.GET,
20131
+ },
20132
+ getTimePerformanceReport: {
20133
+ url: "/ads/reports/time-performance",
20134
+ method: HTTP_METHODS.GET,
20135
+ },
20105
20136
  };
20106
20137
  return AdsRoute;
20107
20138
  }());
@@ -20648,6 +20679,59 @@ var Ads = /** @class */ (function () {
20648
20679
  Ads.twitterTargetingSuggestions = function (params) {
20649
20680
  return Requests.processRoute(AdsRoute.routes.twitterTargetingSuggestions, undefined, undefined, params);
20650
20681
  };
20682
+ /**
20683
+ * Deep-sync a campaign tree (campaign → groups → ads) with its remote platform.
20684
+ *
20685
+ * @param campaign_id UUID of the campaign to sync
20686
+ * @param params Optional query params
20687
+ * @returns Fully-hydrated AdCampaign resource
20688
+ */
20689
+ Ads.syncCampaignTree = function (campaign_id, params) {
20690
+ return Requests.processRoute(AdsRoute.routes.syncCampaignTree, undefined, { campaign_id: campaign_id }, params);
20691
+ };
20692
+ /**
20693
+ * Deep-sync all the campaigns for a scheduler.
20694
+ *
20695
+ * @param scheduler_id UUID of the campaign to sync
20696
+ * @param params Optional query params
20697
+ * @returns Fully-hydrated AdCampaign resource
20698
+ */
20699
+ Ads.syncSchedulerCampaigns = function (scheduler_id, params) {
20700
+ return Requests.processRoute(AdsRoute.routes.syncSchedulerCampaigns, undefined, { scheduler_id: scheduler_id }, params);
20701
+ };
20702
+ // ----------------------------------------------------------------------
20703
+ // AD REPORTS
20704
+ // ----------------------------------------------------------------------
20705
+ /**
20706
+ * Get campaign performance summary.
20707
+ */
20708
+ Ads.getPerformanceSummary = function (params) {
20709
+ return Requests.processRoute(AdsRoute.routes.getPerformanceSummary, undefined, undefined, params);
20710
+ };
20711
+ /**
20712
+ * Get spend and delivery metrics over time.
20713
+ */
20714
+ Ads.getSpendDeliveryReport = function (params) {
20715
+ return Requests.processRoute(AdsRoute.routes.getSpendDeliveryReport, undefined, undefined, params);
20716
+ };
20717
+ /**
20718
+ * Compare performance across platforms.
20719
+ */
20720
+ Ads.getPlatformComparisonReport = function (params) {
20721
+ return Requests.processRoute(AdsRoute.routes.getPlatformComparisonReport, undefined, undefined, params);
20722
+ };
20723
+ /**
20724
+ * Get performance metrics for individual ad creatives.
20725
+ */
20726
+ Ads.getCreativePerformanceReport = function (params) {
20727
+ return Requests.processRoute(AdsRoute.routes.getCreativePerformanceReport, undefined, undefined, params);
20728
+ };
20729
+ /**
20730
+ * Get time-based performance metrics by hour and day of week.
20731
+ */
20732
+ Ads.getTimePerformanceReport = function (params) {
20733
+ return Requests.processRoute(AdsRoute.routes.getTimePerformanceReport, undefined, undefined, params);
20734
+ };
20651
20735
  return Ads;
20652
20736
  }());
20653
20737
 
@@ -26004,6 +26088,8 @@ var SchedulerRoute = /** @class */ (function () {
26004
26088
  clearSteamAuth: { url: '/schedulers/{scheduler_id}/clearSteamAuth', method: HTTP_METHODS.DELETE },
26005
26089
  clearDiscordAuth: { url: '/schedulers/{scheduler_id}/clearDiscordAuth', method: HTTP_METHODS.DELETE },
26006
26090
  clearBlueskyAuth: { url: '/schedulers/{scheduler_id}/clearBlueskyAuth', method: HTTP_METHODS.DELETE },
26091
+ clearTiktokAdsAuth: { url: '/schedulers/{scheduler_id}/clearTiktokAdsAuth', method: HTTP_METHODS.DELETE },
26092
+ clearGoogleAdsAuth: { url: '/schedulers/{scheduler_id}/clearGoogleAdsAuth', method: HTTP_METHODS.DELETE },
26007
26093
  //Social Utility Routes
26008
26094
  getFacebookGroups: { url: '/schedulers/{scheduler_id}/facebook/groups', method: HTTP_METHODS.GET },
26009
26095
  getInstagramAccounts: { url: '/schedulers/{scheduler_id}/instagram/accounts', method: HTTP_METHODS.GET },
@@ -26447,6 +26533,30 @@ var Scheduler = /** @class */ (function () {
26447
26533
  Scheduler.getDiscordChannels = function (scheduler_id, params) {
26448
26534
  return Requests.processRoute(SchedulerRoute.routes.getDiscordChannels, {}, { scheduler_id: scheduler_id }, params);
26449
26535
  };
26536
+ /**
26537
+ * Clear Google Ads OAuth credentials from a promotion schedule.
26538
+ *
26539
+ * @param scheduler_id The ID of the promotion schedule.
26540
+ * @returns promise
26541
+ */
26542
+ Scheduler.clearGoogleAdsAuth = function (scheduler_id, params) {
26543
+ return Requests.processRoute(SchedulerRoute.routes.clearGoogleAdsAuth, {}, // no body
26544
+ { scheduler_id: scheduler_id }, // path params
26545
+ params // optional query params
26546
+ );
26547
+ };
26548
+ /**
26549
+ * Clear Tiktok Ads OAuth credentials from a promotion schedule.
26550
+ *
26551
+ * @param scheduler_id The ID of the promotion schedule.
26552
+ * @returns promise
26553
+ */
26554
+ Scheduler.clearTiktokAdsAuth = function (scheduler_id, params) {
26555
+ return Requests.processRoute(SchedulerRoute.routes.clearTiktokAdsAuth, {}, // no body
26556
+ { scheduler_id: scheduler_id }, // path params
26557
+ params // optional query params
26558
+ );
26559
+ };
26450
26560
  /**
26451
26561
  * Get aggregated reports for a promotion schedule.
26452
26562
  *