glitch-javascript-sdk 1.7.2 → 1.7.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.
package/dist/cjs/index.js CHANGED
@@ -24823,37 +24823,30 @@ var SchedulerRoute = /** @class */ (function () {
24823
24823
  url: '/schedulers/{scheduler_id}/crosspromote/relationships',
24824
24824
  method: HTTP_METHODS.GET
24825
24825
  },
24826
- // 2) Find potential cross-promote partners
24827
24826
  crossPromoteFind: {
24828
24827
  url: '/schedulers/{scheduler_id}/crosspromote/find',
24829
24828
  method: HTTP_METHODS.GET
24830
24829
  },
24831
- // 3) List invites
24832
24830
  crossPromoteInvitesList: {
24833
24831
  url: '/schedulers/{scheduler_id}/crosspromote/invites',
24834
24832
  method: HTTP_METHODS.GET
24835
24833
  },
24836
- // 4) Send an invite to cross-promote
24837
24834
  crossPromoteInviteSend: {
24838
24835
  url: '/schedulers/{scheduler_id}/crosspromote/invites',
24839
24836
  method: HTTP_METHODS.POST
24840
24837
  },
24841
- // 5) Accept an invite
24842
24838
  crossPromoteInviteAccept: {
24843
24839
  url: '/schedulers/{scheduler_id}/crosspromote/invites/{invite_id}/accept',
24844
24840
  method: HTTP_METHODS.POST
24845
24841
  },
24846
- // 6) Reject an invite
24847
24842
  crossPromoteInviteReject: {
24848
24843
  url: '/schedulers/{scheduler_id}/crosspromote/invites/{invite_id}/reject',
24849
24844
  method: HTTP_METHODS.POST
24850
24845
  },
24851
- // 7) End a cross-promote relationship
24852
24846
  crossPromoteRelationshipDelete: {
24853
24847
  url: '/schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}',
24854
24848
  method: HTTP_METHODS.DELETE
24855
24849
  },
24856
- // 8) Get/Set which platforms are cross-promoted in an existing relationship
24857
24850
  crossPromoteRelationshipGetPlatforms: {
24858
24851
  url: '/schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/platforms',
24859
24852
  method: HTTP_METHODS.GET
@@ -24862,7 +24855,6 @@ var SchedulerRoute = /** @class */ (function () {
24862
24855
  url: '/schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/platforms',
24863
24856
  method: HTTP_METHODS.PUT
24864
24857
  },
24865
- // 9) Get recently cross-promoted posts under a relationship
24866
24858
  crossPromoteRelationshipPosts: {
24867
24859
  url: '/schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/posts',
24868
24860
  method: HTTP_METHODS.GET
@@ -25230,36 +25222,31 @@ var Scheduler = /** @class */ (function () {
25230
25222
  return Requests.processRoute(SchedulerRoute.routes.getSchedulerProgression, {}, { scheduler_id: scheduler_id }, params);
25231
25223
  };
25232
25224
  /**
25233
- * List active cross-promote relationships for a scheduler.
25234
- *
25235
- * @param scheduler_id The ID of the promotion schedule
25236
- * @param params Optional query params
25237
- */
25225
+ * List cross-promote relationships for a scheduler (with optional pagination).
25226
+ * GET /schedulers/{scheduler_id}/crosspromote/relationships
25227
+ */
25238
25228
  Scheduler.crossPromoteListRelationships = function (scheduler_id, params) {
25239
25229
  return Requests.processRoute(SchedulerRoute.routes.crossPromoteListRelationships, {}, { scheduler_id: scheduler_id }, params);
25240
25230
  };
25241
25231
  /**
25242
- * Find potential cross-promote partners for a scheduler.
25243
- *
25244
- * @param scheduler_id The ID of the promotion schedule
25245
- * @param params Optional query params
25232
+ * Find potential cross-promote partners for a scheduler (with optional filters).
25233
+ * GET /schedulers/{scheduler_id}/crosspromote/find
25246
25234
  */
25247
25235
  Scheduler.crossPromoteFind = function (scheduler_id, params) {
25236
+ // e.g. { platform:'twitter', min_followers:500, sort:'desc', page:2, limit:5 }
25248
25237
  return Requests.processRoute(SchedulerRoute.routes.crossPromoteFind, {}, { scheduler_id: scheduler_id }, params);
25249
25238
  };
25250
25239
  /**
25251
- * List cross-promote invites for a scheduler.
25252
- *
25253
- * @param scheduler_id The ID of the promotion schedule
25254
- * @param params Optional query params
25240
+ * List cross-promote invites for a scheduler (incoming + outgoing).
25241
+ * GET /schedulers/{scheduler_id}/crosspromote/invites
25255
25242
  */
25256
25243
  Scheduler.crossPromoteInvitesList = function (scheduler_id, params) {
25257
25244
  return Requests.processRoute(SchedulerRoute.routes.crossPromoteInvitesList, {}, { scheduler_id: scheduler_id }, params);
25258
25245
  };
25259
25246
  /**
25260
- * Send an invite to cross-promote.
25247
+ * Send an invite to cross-promote (from scheduler_id to partner_scheduler_id).
25248
+ * POST /schedulers/{scheduler_id}/crosspromote/invites
25261
25249
  *
25262
- * @param scheduler_id The ID of the promotion schedule
25263
25250
  * @param data { partner_scheduler_id, optional_message }
25264
25251
  */
25265
25252
  Scheduler.crossPromoteInviteSend = function (scheduler_id, data, params) {
@@ -25267,55 +25254,43 @@ var Scheduler = /** @class */ (function () {
25267
25254
  };
25268
25255
  /**
25269
25256
  * Accept an invite to cross-promote.
25270
- *
25271
- * @param scheduler_id The ID of the promotion schedule
25272
- * @param invite_id The ID of the invite
25257
+ * POST /schedulers/{scheduler_id}/crosspromote/invites/{invite_id}/accept
25273
25258
  */
25274
25259
  Scheduler.crossPromoteInviteAccept = function (scheduler_id, invite_id, params) {
25275
25260
  return Requests.processRoute(SchedulerRoute.routes.crossPromoteInviteAccept, {}, { scheduler_id: scheduler_id, invite_id: invite_id }, params);
25276
25261
  };
25277
25262
  /**
25278
25263
  * Reject an invite to cross-promote.
25279
- *
25280
- * @param scheduler_id The ID of the promotion schedule
25281
- * @param invite_id The ID of the invite
25264
+ * POST /schedulers/{scheduler_id}/crosspromote/invites/{invite_id}/reject
25282
25265
  */
25283
25266
  Scheduler.crossPromoteInviteReject = function (scheduler_id, invite_id, params) {
25284
25267
  return Requests.processRoute(SchedulerRoute.routes.crossPromoteInviteReject, {}, { scheduler_id: scheduler_id, invite_id: invite_id }, params);
25285
25268
  };
25286
25269
  /**
25287
- * End a cross-promote relationship.
25288
- *
25289
- * @param scheduler_id The ID of the promotion schedule
25290
- * @param relationship_id The ID of the relationship
25270
+ * End a cross-promote relationship (delete).
25271
+ * DELETE /schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}
25291
25272
  */
25292
25273
  Scheduler.crossPromoteRelationshipDelete = function (scheduler_id, relationship_id, params) {
25293
25274
  return Requests.processRoute(SchedulerRoute.routes.crossPromoteRelationshipDelete, {}, { scheduler_id: scheduler_id, relationship_id: relationship_id }, params);
25294
25275
  };
25295
25276
  /**
25296
25277
  * Get which platforms are cross-promoted in an existing relationship.
25297
- *
25298
- * @param scheduler_id The ID of the promotion schedule
25299
- * @param relationship_id The ID of the relationship
25278
+ * GET /schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/platforms
25300
25279
  */
25301
25280
  Scheduler.crossPromoteRelationshipGetPlatforms = function (scheduler_id, relationship_id, params) {
25302
25281
  return Requests.processRoute(SchedulerRoute.routes.crossPromoteRelationshipGetPlatforms, {}, { scheduler_id: scheduler_id, relationship_id: relationship_id }, params);
25303
25282
  };
25304
25283
  /**
25305
25284
  * Set which platforms are cross-promoted in an existing relationship.
25306
- *
25307
- * @param scheduler_id The ID of the promotion schedule
25308
- * @param relationship_id The ID of the relationship
25309
- * @param data An object like { platforms: ['twitter', 'facebook', ...] }
25285
+ * PUT /schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/platforms
25286
+ * data = { platforms: ['twitter','facebook',...]}
25310
25287
  */
25311
25288
  Scheduler.crossPromoteRelationshipSetPlatforms = function (scheduler_id, relationship_id, data, params) {
25312
25289
  return Requests.processRoute(SchedulerRoute.routes.crossPromoteRelationshipSetPlatforms, data, { scheduler_id: scheduler_id, relationship_id: relationship_id }, params);
25313
25290
  };
25314
25291
  /**
25315
- * Get recently cross-promoted posts under a relationship.
25316
- *
25317
- * @param scheduler_id The ID of the promotion schedule
25318
- * @param relationship_id The ID of the relationship
25292
+ * Get recently cross-promoted logs under a relationship.
25293
+ * GET /schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/posts
25319
25294
  */
25320
25295
  Scheduler.crossPromoteRelationshipPosts = function (scheduler_id, relationship_id, params) {
25321
25296
  return Requests.processRoute(SchedulerRoute.routes.crossPromoteRelationshipPosts, {}, { scheduler_id: scheduler_id, relationship_id: relationship_id }, params);