glitch-javascript-sdk 1.9.8 → 2.0.0

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
@@ -20185,6 +20185,10 @@ var AdsRoute = /** @class */ (function () {
20185
20185
  url: "/ads/posts/google/{post_id}/enable",
20186
20186
  method: HTTP_METHODS.POST,
20187
20187
  },
20188
+ createGoogleAccount: {
20189
+ url: "/ads/google/accounts/create",
20190
+ method: HTTP_METHODS.POST,
20191
+ },
20188
20192
  };
20189
20193
  return AdsRoute;
20190
20194
  }());
@@ -20850,6 +20854,21 @@ var Ads = /** @class */ (function () {
20850
20854
  Ads.enableGoogleAdPost = function (post_id, params) {
20851
20855
  return Requests.processRoute(AdsRoute.routes.enableGoogleAdPost, {}, { post_id: post_id }, params);
20852
20856
  };
20857
+ /**
20858
+ * Creates a new Google Ads client account under a specified manager account.
20859
+ * Corresponds to POST /ads/google/accounts/create
20860
+ *
20861
+ * @param data The creation payload.
20862
+ * @param data.scheduler_id The UUID of the scheduler with auth tokens.
20863
+ * @param data.manager_customer_id The 10-digit MCC ID.
20864
+ * @param data.descriptive_name The name for the new account.
20865
+ * @param data.currency_code ISO 4217 currency code.
20866
+ * @param data.time_zone Time zone identifier (e.g., 'America/New_York').
20867
+ * @returns The newly created Google Ads account details.
20868
+ */
20869
+ Ads.createGoogleAccount = function (data) {
20870
+ return Requests.processRoute(AdsRoute.routes.createGoogleAccount, data, undefined, undefined);
20871
+ };
20853
20872
  return Ads;
20854
20873
  }());
20855
20874
 
@@ -20870,6 +20889,9 @@ var CommunitiesRoute = /** @class */ (function () {
20870
20889
  acceptInvite: { url: '/communities/{community_id}/acceptInvite', method: HTTP_METHODS.POST },
20871
20890
  retrieveInvite: { url: '/communities/{community_id}/invites/{token}', method: HTTP_METHODS.GET },
20872
20891
  listUsers: { url: '/communities/{community_id}/users', method: HTTP_METHODS.GET },
20892
+ myInvites: { url: '/communities/invites/mine', method: HTTP_METHODS.GET },
20893
+ resendInvite: { url: '/communities/{community_id}/invites/{invite_id}/resend', method: HTTP_METHODS.POST },
20894
+ deleteInvite: { url: '/communities/{community_id}/invites/{invite_id}', method: HTTP_METHODS.DELETE },
20873
20895
  addUser: { url: '/communities/{community_id}/users', method: HTTP_METHODS.POST },
20874
20896
  showUser: { url: '/communities/{community_id}/users/{user_id}', method: HTTP_METHODS.GET },
20875
20897
  updateUser: { url: '/communities/{community_id}/users/{user_id}', method: HTTP_METHODS.PUT },
@@ -21686,6 +21708,36 @@ var Communities = /** @class */ (function () {
21686
21708
  Communities.importGameInstalls = function (community_id, newsletter_id, data, params) {
21687
21709
  return Requests.processRoute(CommunitiesRoute.routes.importGameInstalls, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
21688
21710
  };
21711
+ /**
21712
+ * Retrieve the current user's pending community invitations across all communities.
21713
+ *
21714
+ * @returns promise
21715
+ */
21716
+ Communities.myInvites = function (params) {
21717
+ return Requests.processRoute(CommunitiesRoute.routes.myInvites, {}, undefined, params);
21718
+ };
21719
+ /**
21720
+ * Resends an invitation to a user.
21721
+ *
21722
+ * @param community_id The id of the community.
21723
+ * @param invite_id The id of the invite to resend.
21724
+ *
21725
+ * @returns promise
21726
+ */
21727
+ Communities.resendInvite = function (community_id, invite_id, params) {
21728
+ return Requests.processRoute(CommunitiesRoute.routes.resendInvite, {}, { community_id: community_id, invite_id: invite_id }, params);
21729
+ };
21730
+ /**
21731
+ * Revokes/deletes a community invitation.
21732
+ *
21733
+ * @param community_id The id of the community.
21734
+ * @param invite_id The id of the invite to delete.
21735
+ *
21736
+ * @returns promise
21737
+ */
21738
+ Communities.deleteInvite = function (community_id, invite_id, params) {
21739
+ return Requests.processRoute(CommunitiesRoute.routes.deleteInvite, {}, { community_id: community_id, invite_id: invite_id }, params);
21740
+ };
21689
21741
  return Communities;
21690
21742
  }());
21691
21743