glitch-javascript-sdk 1.9.6 → 1.9.8

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
@@ -20133,6 +20133,58 @@ var AdsRoute = /** @class */ (function () {
20133
20133
  url: "/ads/reports/time-performance",
20134
20134
  method: HTTP_METHODS.GET,
20135
20135
  },
20136
+ getGoogleGeoSuggestions: {
20137
+ url: "/ads/google/targeting/geo/suggest",
20138
+ method: HTTP_METHODS.GET,
20139
+ },
20140
+ addGoogleLocationTargets: {
20141
+ url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
20142
+ method: HTTP_METHODS.POST,
20143
+ },
20144
+ getGoogleLocationTargets: {
20145
+ url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
20146
+ method: HTTP_METHODS.GET,
20147
+ },
20148
+ removeGoogleLocationTargets: {
20149
+ url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations",
20150
+ method: HTTP_METHODS.DELETE,
20151
+ },
20152
+ addGoogleProximityTarget: {
20153
+ url: "/ads/google/targeting/campaigns/{customer_id}/{campaign_id}/proximity",
20154
+ method: HTTP_METHODS.POST,
20155
+ },
20156
+ updateGoogleTargetingSettings: {
20157
+ url: "/ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings",
20158
+ method: HTTP_METHODS.PUT,
20159
+ },
20160
+ getGoogleTargetingSettings: {
20161
+ url: "/ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings",
20162
+ method: HTTP_METHODS.GET,
20163
+ },
20164
+ getGoogleAdPosts: {
20165
+ url: "/ads/posts/google",
20166
+ method: HTTP_METHODS.GET,
20167
+ },
20168
+ createGoogleAdPost: {
20169
+ url: "/ads/posts/google",
20170
+ method: HTTP_METHODS.POST,
20171
+ },
20172
+ updateGoogleAdPost: {
20173
+ url: "/ads/posts/google/{post_id}",
20174
+ method: HTTP_METHODS.PUT,
20175
+ },
20176
+ deleteGoogleAdPost: {
20177
+ url: "/ads/posts/google/{post_id}",
20178
+ method: HTTP_METHODS.DELETE,
20179
+ },
20180
+ pauseGoogleAdPost: {
20181
+ url: "/ads/posts/google/{post_id}/pause",
20182
+ method: HTTP_METHODS.POST,
20183
+ },
20184
+ enableGoogleAdPost: {
20185
+ url: "/ads/posts/google/{post_id}/enable",
20186
+ method: HTTP_METHODS.POST,
20187
+ },
20136
20188
  };
20137
20189
  return AdsRoute;
20138
20190
  }());
@@ -20732,6 +20784,72 @@ var Ads = /** @class */ (function () {
20732
20784
  Ads.getTimePerformanceReport = function (params) {
20733
20785
  return Requests.processRoute(AdsRoute.routes.getTimePerformanceReport, undefined, undefined, params);
20734
20786
  };
20787
+ /**
20788
+ * GET /ads/google/targeting/geo/suggest
20789
+ */
20790
+ Ads.listGoogleGeoSuggestions = function (params) {
20791
+ return Requests.processRoute(AdsRoute.routes.getGoogleGeoSuggestions, undefined, undefined, params);
20792
+ };
20793
+ /**
20794
+ * POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
20795
+ */
20796
+ Ads.addGoogleLocationTargets = function (customer_id, campaign_id, data) {
20797
+ return Requests.processRoute(AdsRoute.routes.addGoogleLocationTargets, data, { customer_id: customer_id, campaign_id: campaign_id });
20798
+ };
20799
+ /**
20800
+ * GET /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
20801
+ */
20802
+ Ads.getGoogleLocationTargets = function (customer_id, campaign_id, params) {
20803
+ return Requests.processRoute(AdsRoute.routes.getGoogleLocationTargets, undefined, { customer_id: customer_id, campaign_id: campaign_id }, params);
20804
+ };
20805
+ /**
20806
+ * DELETE /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/locations
20807
+ */
20808
+ Ads.removeGoogleLocationTargets = function (customer_id, campaign_id, data) {
20809
+ return Requests.processRoute(AdsRoute.routes.removeGoogleLocationTargets, data, { customer_id: customer_id, campaign_id: campaign_id });
20810
+ };
20811
+ /**
20812
+ * POST /ads/google/targeting/campaigns/{customer_id}/{campaign_id}/proximity
20813
+ */
20814
+ Ads.addGoogleProximityTarget = function (customer_id, campaign_id, data) {
20815
+ return Requests.processRoute(AdsRoute.routes.addGoogleProximityTarget, data, { customer_id: customer_id, campaign_id: campaign_id });
20816
+ };
20817
+ /**
20818
+ * PUT /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
20819
+ */
20820
+ Ads.updateGoogleTargetingSettings = function (resource_type, customer_id, resource_id, data) {
20821
+ return Requests.processRoute(AdsRoute.routes.updateGoogleTargetingSettings, data, { resource_type: resource_type, customer_id: customer_id, resource_id: resource_id });
20822
+ };
20823
+ /**
20824
+ * GET /ads/google/targeting/{resource_type}/{customer_id}/{resource_id}/settings
20825
+ */
20826
+ Ads.getGoogleTargetingSettings = function (resource_type, customer_id, resource_id, params) {
20827
+ return Requests.processRoute(AdsRoute.routes.getGoogleTargetingSettings, undefined, { resource_type: resource_type, customer_id: customer_id, resource_id: resource_id }, params);
20828
+ };
20829
+ /** GET /ads/posts/google */
20830
+ Ads.listGoogleAdPosts = function (params) {
20831
+ return Requests.processRoute(AdsRoute.routes.getGoogleAdPosts, undefined, undefined, params);
20832
+ };
20833
+ /** POST /ads/posts/google */
20834
+ Ads.createGoogleAdPost = function (data, params) {
20835
+ return Requests.processRoute(AdsRoute.routes.createGoogleAdPost, data, {}, params);
20836
+ };
20837
+ /** PUT /ads/posts/google/{post_id} */
20838
+ Ads.updateGoogleAdPost = function (post_id, data, params) {
20839
+ return Requests.processRoute(AdsRoute.routes.updateGoogleAdPost, data, { post_id: post_id }, params);
20840
+ };
20841
+ /** DELETE /ads/posts/google/{post_id} */
20842
+ Ads.deleteGoogleAdPost = function (post_id, params) {
20843
+ return Requests.processRoute(AdsRoute.routes.deleteGoogleAdPost, {}, { post_id: post_id }, params);
20844
+ };
20845
+ /** POST /ads/posts/google/{post_id}/pause */
20846
+ Ads.pauseGoogleAdPost = function (post_id, params) {
20847
+ return Requests.processRoute(AdsRoute.routes.pauseGoogleAdPost, {}, { post_id: post_id }, params);
20848
+ };
20849
+ /** POST /ads/posts/google/{post_id}/enable */
20850
+ Ads.enableGoogleAdPost = function (post_id, params) {
20851
+ return Requests.processRoute(AdsRoute.routes.enableGoogleAdPost, {}, { post_id: post_id }, params);
20852
+ };
20735
20853
  return Ads;
20736
20854
  }());
20737
20855
 
@@ -24514,6 +24632,14 @@ var CampaignsRoute = /** @class */ (function () {
24514
24632
  listPayouts: { url: '/campaigns/{campaign_id}/payouts', method: HTTP_METHODS.GET },
24515
24633
  generateCampaignContract: { url: '/campaigns/{campaign_id}/influencers/{user_id}/contract', method: HTTP_METHODS.POST },
24516
24634
  sendCampaignContractWithDocusign: { url: '/campaigns/{campaign_id}/influencers/{user_id}/docusign', method: HTTP_METHODS.POST },
24635
+ sourcingSearchIgdbForCampaignGame: { url: '/campaigns/{campaign_id}/sourcing/search-game', method: HTTP_METHODS.GET },
24636
+ sourcingGetSimilarIgdbGames: { url: '/campaigns/{campaign_id}/sourcing/similar-games', method: HTTP_METHODS.GET },
24637
+ sourcingFindCreators: { url: '/campaigns/{campaign_id}/sourcing/find-creators', method: HTTP_METHODS.POST },
24638
+ updateSourcingSettings: { url: '/campaigns/{campaign_id}/sourcing/settings', method: HTTP_METHODS.PUT },
24639
+ sourcingFindAndSaveCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-creators', method: HTTP_METHODS.POST },
24640
+ getSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators', method: HTTP_METHODS.GET },
24641
+ getSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}', method: HTTP_METHODS.GET },
24642
+ updateSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}', method: HTTP_METHODS.PUT },
24517
24643
  };
24518
24644
  return CampaignsRoute;
24519
24645
  }());
@@ -25172,6 +25298,79 @@ var Campaigns = /** @class */ (function () {
25172
25298
  Campaigns.sendCampaignContractWithDocusign = function (campaign_id, user_id, data, params) {
25173
25299
  return Requests.processRoute(CampaignsRoute.routes.sendCampaignContractWithDocusign, data, { campaign_id: campaign_id, user_id: user_id }, params);
25174
25300
  };
25301
+ /**
25302
+ * Search IGDB for the campaign's game.
25303
+ * @param campaign_id The UUID of the campaign.
25304
+ * @param params Query parameters (e.g., search_query, limit).
25305
+ * @returns promise
25306
+ */
25307
+ Campaigns.sourcingSearchIgdbForCampaignGame = function (campaign_id, params) {
25308
+ return Requests.processRoute(CampaignsRoute.routes.sourcingSearchIgdbForCampaignGame, undefined, { campaign_id: campaign_id }, params);
25309
+ };
25310
+ /**
25311
+ * Find popular similar games from IGDB.
25312
+ * @param campaign_id The UUID of the campaign.
25313
+ * @param params Query parameters (e.g., igdb_id, limit).
25314
+ * @returns promise
25315
+ */
25316
+ Campaigns.sourcingGetSimilarIgdbGames = function (campaign_id, params) {
25317
+ return Requests.processRoute(CampaignsRoute.routes.sourcingGetSimilarIgdbGames, undefined, { campaign_id: campaign_id }, params);
25318
+ };
25319
+ /**
25320
+ * Find content creators for selected games. This does not save them to the database.
25321
+ * @param campaign_id The UUID of the campaign.
25322
+ * @param data The search criteria (source, igdb_ids, etc.).
25323
+ * @returns promise
25324
+ */
25325
+ Campaigns.sourcingFindCreators = function (campaign_id, data) {
25326
+ return Requests.processRoute(CampaignsRoute.routes.sourcingFindCreators, data, { campaign_id: campaign_id });
25327
+ };
25328
+ /**
25329
+ * Update campaign sourcing settings.
25330
+ * @param campaign_id The UUID of the campaign.
25331
+ * @param data The settings to update (igdb_id, similar_game_igdb_ids, etc.).
25332
+ * @returns promise
25333
+ */
25334
+ Campaigns.updateSourcingSettings = function (campaign_id, data) {
25335
+ return Requests.processRoute(CampaignsRoute.routes.updateSourcingSettings, data, { campaign_id: campaign_id });
25336
+ };
25337
+ /**
25338
+ * Find and save content creators for selected games to the database.
25339
+ * @param campaign_id The UUID of the campaign.
25340
+ * @param data The search criteria (source, igdb_ids, etc.).
25341
+ * @returns promise
25342
+ */
25343
+ Campaigns.sourcingFindAndSaveCreators = function (campaign_id, data) {
25344
+ return Requests.processRoute(CampaignsRoute.routes.sourcingFindAndSaveCreators, data, { campaign_id: campaign_id });
25345
+ };
25346
+ /**
25347
+ * Get sourced creators for a campaign from the database.
25348
+ * @param campaign_id The UUID of the campaign.
25349
+ * @param params Query parameters for filtering, sorting, and pagination.
25350
+ * @returns promise
25351
+ */
25352
+ Campaigns.getSourcedCreators = function (campaign_id, params) {
25353
+ return Requests.processRoute(CampaignsRoute.routes.getSourcedCreators, undefined, { campaign_id: campaign_id }, params);
25354
+ };
25355
+ /**
25356
+ * Get a single sourced creator.
25357
+ * @param campaign_id The UUID of the campaign.
25358
+ * @param sourced_creator_id The UUID of the sourced creator.
25359
+ * @returns promise
25360
+ */
25361
+ Campaigns.getSourcedCreator = function (campaign_id, sourced_creator_id) {
25362
+ return Requests.processRoute(CampaignsRoute.routes.getSourcedCreator, undefined, { campaign_id: campaign_id, sourced_creator_id: sourced_creator_id });
25363
+ };
25364
+ /**
25365
+ * Update a sourced creator (e.g., approve or reject).
25366
+ * @param campaign_id The UUID of the campaign.
25367
+ * @param sourced_creator_id The UUID of the sourced creator to update.
25368
+ * @param data The update data (e.g., is_approved, is_rejected).
25369
+ * @returns promise
25370
+ */
25371
+ Campaigns.updateSourcedCreator = function (campaign_id, sourced_creator_id, data) {
25372
+ return Requests.processRoute(CampaignsRoute.routes.updateSourcedCreator, data, { campaign_id: campaign_id, sourced_creator_id: sourced_creator_id });
25373
+ };
25175
25374
  return Campaigns;
25176
25375
  }());
25177
25376