glitch-javascript-sdk 3.2.6 → 3.2.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 +141 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +22 -0
- package/dist/esm/api/Campaigns.d.ts +15 -0
- package/dist/esm/api/Messages.d.ts +8 -0
- package/dist/esm/api/Scheduler.d.ts +43 -0
- package/dist/esm/api/SocialPosts.d.ts +1 -1
- package/dist/esm/index.js +141 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +89 -1
- package/package.json +1 -1
- package/src/api/Ads.ts +36 -0
- package/src/api/Campaigns.ts +24 -2
- package/src/api/Messages.ts +12 -1
- package/src/api/Scheduler.ts +105 -0
- package/src/api/SocialPosts.ts +3 -3
- package/src/routes/AdsRoute.ts +10 -0
- package/src/routes/CampaignsRoute.ts +3 -1
- package/src/routes/MessagesRoute.ts +2 -1
- package/src/routes/PostsRoute.ts +2 -2
- package/src/routes/SchedulerRoute.ts +25 -0
package/dist/esm/api/Ads.d.ts
CHANGED
|
@@ -418,6 +418,19 @@ declare class Ads {
|
|
|
418
418
|
platform?: string;
|
|
419
419
|
}): AxiosPromise<Response<T>>;
|
|
420
420
|
/**
|
|
421
|
+
* Get detailed paid campaign performance rows for tables and exports.
|
|
422
|
+
*/
|
|
423
|
+
static getDetailedBreakdownReport<T>(params: {
|
|
424
|
+
start_date: string;
|
|
425
|
+
end_date: string;
|
|
426
|
+
community_id?: string;
|
|
427
|
+
scheduler_id?: string;
|
|
428
|
+
platform?: string;
|
|
429
|
+
campaign_id?: string;
|
|
430
|
+
ad_group_id?: string;
|
|
431
|
+
ad_id?: string;
|
|
432
|
+
}): AxiosPromise<Response<T>>;
|
|
433
|
+
/**
|
|
421
434
|
* GET /ads/google/targeting/geo/suggest
|
|
422
435
|
*/
|
|
423
436
|
static listGoogleGeoSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
@@ -476,5 +489,14 @@ declare class Ads {
|
|
|
476
489
|
currency_code: string;
|
|
477
490
|
time_zone: string;
|
|
478
491
|
}): AxiosPromise<Response<T>>;
|
|
492
|
+
/**
|
|
493
|
+
* Submit a SKAN attribution postback to the public Apple app attribution endpoint.
|
|
494
|
+
* This mirrors POST /.well-known/appattribution/report-attribution.
|
|
495
|
+
*/
|
|
496
|
+
static reportSkanAttributionPostback<T>(data: {
|
|
497
|
+
"jws-string"?: string;
|
|
498
|
+
jws?: string;
|
|
499
|
+
[key: string]: any;
|
|
500
|
+
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
479
501
|
}
|
|
480
502
|
export default Ads;
|
|
@@ -9,6 +9,14 @@ declare class Campaigns {
|
|
|
9
9
|
* @returns promise
|
|
10
10
|
*/
|
|
11
11
|
static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
12
|
+
/**
|
|
13
|
+
* List public influencer campaigns.
|
|
14
|
+
*
|
|
15
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/getPublicCampaigns
|
|
16
|
+
*
|
|
17
|
+
* @returns promise
|
|
18
|
+
*/
|
|
19
|
+
static listPublic<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
12
20
|
/**
|
|
13
21
|
* Create a new campaign.
|
|
14
22
|
*
|
|
@@ -165,6 +173,13 @@ declare class Campaigns {
|
|
|
165
173
|
* @returns promise
|
|
166
174
|
*/
|
|
167
175
|
static updateInfluencerCampaign<T>(campaign_id: string, user_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
176
|
+
/**
|
|
177
|
+
* Delete an influencer campaign relationship.
|
|
178
|
+
*
|
|
179
|
+
* The backend route currently exists, but the controller destroy implementation is intentionally
|
|
180
|
+
* treated as an agent/admin stop-gate because removal can orphan posts, payouts, or contracts.
|
|
181
|
+
*/
|
|
182
|
+
static deleteInfluencerCampaign<T>(campaign_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
168
183
|
/**
|
|
169
184
|
* Retrieve the information for a single campaign.
|
|
170
185
|
*
|
|
@@ -17,6 +17,14 @@ declare class Messages {
|
|
|
17
17
|
* @returns A promise
|
|
18
18
|
*/
|
|
19
19
|
static sendMessage<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
20
|
+
/**
|
|
21
|
+
* Updates a message.
|
|
22
|
+
*
|
|
23
|
+
* @see https://api.glitch.fun/api/documentation#/Messages/updateMessage
|
|
24
|
+
*
|
|
25
|
+
* @returns A promise
|
|
26
|
+
*/
|
|
27
|
+
static updateMessage<T>(message_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
20
28
|
/**
|
|
21
29
|
* Deletes a message.
|
|
22
30
|
*
|
|
@@ -295,6 +295,14 @@ declare class Scheduler {
|
|
|
295
295
|
* @returns promise
|
|
296
296
|
*/
|
|
297
297
|
static getRedditSubredditFlairs<T>(scheduler_id: string, subreddit: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
298
|
+
/**
|
|
299
|
+
* Get posting rules for a specific Reddit subreddit.
|
|
300
|
+
*
|
|
301
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
302
|
+
* @param subreddit The name of the subreddit.
|
|
303
|
+
* @returns promise
|
|
304
|
+
*/
|
|
305
|
+
static getRedditSubredditRules<T>(scheduler_id: string, subreddit: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
298
306
|
/**
|
|
299
307
|
* Get Discord channels associated with the scheduler's Discord account.
|
|
300
308
|
*
|
|
@@ -385,6 +393,36 @@ declare class Scheduler {
|
|
|
385
393
|
* GET /schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/posts
|
|
386
394
|
*/
|
|
387
395
|
static crossPromoteRelationshipPosts<T>(scheduler_id: string, relationship_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
396
|
+
/**
|
|
397
|
+
* Search cross-promote opportunities using the normalized route family.
|
|
398
|
+
* GET /schedulers/cross-promote/search
|
|
399
|
+
*/
|
|
400
|
+
static crossPromoteSearch<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
401
|
+
/**
|
|
402
|
+
* Send a normalized cross-promote invitation.
|
|
403
|
+
* POST /schedulers/cross-promote/invitations
|
|
404
|
+
*/
|
|
405
|
+
static crossPromoteInvitationSend<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
406
|
+
/**
|
|
407
|
+
* Respond to a normalized cross-promote invitation.
|
|
408
|
+
* POST /schedulers/cross-promote/invitations/{invitation_id}/respond
|
|
409
|
+
*/
|
|
410
|
+
static crossPromoteInvitationRespond<T>(invitation_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
411
|
+
/**
|
|
412
|
+
* List normalized cross-promote relationships.
|
|
413
|
+
* GET /schedulers/cross-promote/relationships
|
|
414
|
+
*/
|
|
415
|
+
static crossPromoteRelationshipsList<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
416
|
+
/**
|
|
417
|
+
* End a normalized cross-promote relationship.
|
|
418
|
+
* POST /schedulers/cross-promote/relationships/{relationship_id}/end
|
|
419
|
+
*/
|
|
420
|
+
static crossPromoteRelationshipEnd<T>(relationship_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
421
|
+
/**
|
|
422
|
+
* List normalized cross-promote relationship logs.
|
|
423
|
+
* GET /schedulers/cross-promote/relationships/{relationship_id}/logs
|
|
424
|
+
*/
|
|
425
|
+
static crossPromoteRelationshipLogs<T>(relationship_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
388
426
|
/**
|
|
389
427
|
* List platform-level businesses for the given campaign ID,
|
|
390
428
|
* as defined by /schedulers/{scheduler_id}/businesses on the backend.
|
|
@@ -421,6 +459,11 @@ declare class Scheduler {
|
|
|
421
459
|
* @returns A response object with data (funding instruments)
|
|
422
460
|
*/
|
|
423
461
|
static listCampaignFundingInstruments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
462
|
+
/**
|
|
463
|
+
* List Google Ads conversion actions available to a scheduler account.
|
|
464
|
+
* GET /schedulers/{scheduler_id}/conversion-actions
|
|
465
|
+
*/
|
|
466
|
+
static listConversionActions<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
424
467
|
/**
|
|
425
468
|
* List all destinations for a title update.
|
|
426
469
|
*
|
|
@@ -116,7 +116,7 @@ declare class SocialPosts {
|
|
|
116
116
|
*
|
|
117
117
|
* @returns promise
|
|
118
118
|
*/
|
|
119
|
-
static reports<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
119
|
+
static reports<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
120
120
|
/**
|
|
121
121
|
* Update the information about a post impressions, for posts who API do not give view counts.
|
|
122
122
|
*
|
package/dist/esm/index.js
CHANGED
|
@@ -7102,6 +7102,10 @@ var AdsRoute = /** @class */ (function () {
|
|
|
7102
7102
|
url: "/ads/reports/time-performance",
|
|
7103
7103
|
method: HTTP_METHODS.GET,
|
|
7104
7104
|
},
|
|
7105
|
+
getDetailedBreakdownReport: {
|
|
7106
|
+
url: "/ads/reports/detailed-breakdown",
|
|
7107
|
+
method: HTTP_METHODS.GET,
|
|
7108
|
+
},
|
|
7105
7109
|
getGoogleGeoSuggestions: {
|
|
7106
7110
|
url: "/ads/google/targeting/geo/suggest",
|
|
7107
7111
|
method: HTTP_METHODS.GET,
|
|
@@ -7158,6 +7162,10 @@ var AdsRoute = /** @class */ (function () {
|
|
|
7158
7162
|
url: "/ads/google/accounts/create",
|
|
7159
7163
|
method: HTTP_METHODS.POST,
|
|
7160
7164
|
},
|
|
7165
|
+
reportSkanAttributionPostback: {
|
|
7166
|
+
url: "/.well-known/appattribution/report-attribution",
|
|
7167
|
+
method: HTTP_METHODS.POST,
|
|
7168
|
+
},
|
|
7161
7169
|
};
|
|
7162
7170
|
return AdsRoute;
|
|
7163
7171
|
}());
|
|
@@ -7758,6 +7766,12 @@ var Ads = /** @class */ (function () {
|
|
|
7758
7766
|
return Requests.processRoute(AdsRoute.routes.getTimePerformanceReport, undefined, undefined, params);
|
|
7759
7767
|
};
|
|
7760
7768
|
/**
|
|
7769
|
+
* Get detailed paid campaign performance rows for tables and exports.
|
|
7770
|
+
*/
|
|
7771
|
+
Ads.getDetailedBreakdownReport = function (params) {
|
|
7772
|
+
return Requests.processRoute(AdsRoute.routes.getDetailedBreakdownReport, undefined, undefined, params);
|
|
7773
|
+
};
|
|
7774
|
+
/**
|
|
7761
7775
|
* GET /ads/google/targeting/geo/suggest
|
|
7762
7776
|
*/
|
|
7763
7777
|
Ads.listGoogleGeoSuggestions = function (params) {
|
|
@@ -7838,6 +7852,13 @@ var Ads = /** @class */ (function () {
|
|
|
7838
7852
|
Ads.createGoogleAccount = function (data) {
|
|
7839
7853
|
return Requests.processRoute(AdsRoute.routes.createGoogleAccount, data, undefined, undefined);
|
|
7840
7854
|
};
|
|
7855
|
+
/**
|
|
7856
|
+
* Submit a SKAN attribution postback to the public Apple app attribution endpoint.
|
|
7857
|
+
* This mirrors POST /.well-known/appattribution/report-attribution.
|
|
7858
|
+
*/
|
|
7859
|
+
Ads.reportSkanAttributionPostback = function (data, params) {
|
|
7860
|
+
return Requests.processRoute(AdsRoute.routes.reportSkanAttributionPostback, data, undefined, params);
|
|
7861
|
+
};
|
|
7841
7862
|
return Ads;
|
|
7842
7863
|
}());
|
|
7843
7864
|
|
|
@@ -10571,7 +10592,7 @@ var PostsRoute = /** @class */ (function () {
|
|
|
10571
10592
|
join: { url: '/posts/{post_id}/join', method: HTTP_METHODS.POST },
|
|
10572
10593
|
follow: { url: '/posts/{post_id}/follow', method: HTTP_METHODS.POST },
|
|
10573
10594
|
leave: { url: '/posts/{post_id}/leave', method: HTTP_METHODS.DELETE },
|
|
10574
|
-
resolve: { url: '/posts/{post_id}/resolve', method: HTTP_METHODS.
|
|
10595
|
+
resolve: { url: '/posts/{post_id}/resolve', method: HTTP_METHODS.PATCH },
|
|
10575
10596
|
updatePreferences: { url: '/posts/{post_id}/participants/me', method: HTTP_METHODS.PUT },
|
|
10576
10597
|
};
|
|
10577
10598
|
return PostsRoute;
|
|
@@ -11479,8 +11500,8 @@ var SocialPosts = /** @class */ (function () {
|
|
|
11479
11500
|
*
|
|
11480
11501
|
* @returns promise
|
|
11481
11502
|
*/
|
|
11482
|
-
SocialPosts.reports = function (params) {
|
|
11483
|
-
return Requests.processRoute(SocialPostsRoute.routes.reports, undefined,
|
|
11503
|
+
SocialPosts.reports = function (post_id, params) {
|
|
11504
|
+
return Requests.processRoute(SocialPostsRoute.routes.reports, undefined, { post_id: post_id }, params);
|
|
11484
11505
|
};
|
|
11485
11506
|
/**
|
|
11486
11507
|
* Update the information about a post impressions, for posts who API do not give view counts.
|
|
@@ -13074,6 +13095,7 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
13074
13095
|
}
|
|
13075
13096
|
CampaignsRoute.routes = {
|
|
13076
13097
|
listCampaigns: { url: '/campaigns', method: HTTP_METHODS.GET },
|
|
13098
|
+
listPublicCampaigns: { url: '/campaigns/public', method: HTTP_METHODS.GET },
|
|
13077
13099
|
createCampaign: { url: '/campaigns', method: HTTP_METHODS.POST },
|
|
13078
13100
|
viewCampaign: { url: '/campaigns/{campaign_id}', method: HTTP_METHODS.GET },
|
|
13079
13101
|
updateCampaign: { url: '/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
|
|
@@ -13090,6 +13112,7 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
13090
13112
|
listInfluencerCampaigns: { url: '/campaigns/influencers', method: HTTP_METHODS.GET },
|
|
13091
13113
|
viewInfluencerCampaign: { url: '/campaigns/{campaign_id}/influencers/{user_id}', method: HTTP_METHODS.GET },
|
|
13092
13114
|
updateInfluencerCampaign: { url: '/campaigns/{campaign_id}/influencers/{user_id}', method: HTTP_METHODS.PUT },
|
|
13115
|
+
deleteInfluencerCampaign: { url: '/campaigns/{campaign_id}/influencers/{user_id}', method: HTTP_METHODS.DELETE },
|
|
13093
13116
|
markInfluencerCampaignComplete: { url: '/campaigns/{campaign_id}/influencers/{user_id}/setComplete', method: HTTP_METHODS.POST },
|
|
13094
13117
|
markInfluencerCampaignIncomplete: { url: '/campaigns/{campaign_id}/influencers/{user_id}/setIncomplete', method: HTTP_METHODS.POST },
|
|
13095
13118
|
listInfluencerCampaignLinks: { url: '/campaigns/{campaign_id}/influencers/{user_id}/links', method: HTTP_METHODS.GET },
|
|
@@ -13190,6 +13213,16 @@ var Campaigns = /** @class */ (function () {
|
|
|
13190
13213
|
Campaigns.list = function (params) {
|
|
13191
13214
|
return Requests.processRoute(CampaignsRoute.routes.listCampaigns, undefined, undefined, params);
|
|
13192
13215
|
};
|
|
13216
|
+
/**
|
|
13217
|
+
* List public influencer campaigns.
|
|
13218
|
+
*
|
|
13219
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/getPublicCampaigns
|
|
13220
|
+
*
|
|
13221
|
+
* @returns promise
|
|
13222
|
+
*/
|
|
13223
|
+
Campaigns.listPublic = function (params) {
|
|
13224
|
+
return Requests.processRoute(CampaignsRoute.routes.listPublicCampaigns, undefined, undefined, params);
|
|
13225
|
+
};
|
|
13193
13226
|
/**
|
|
13194
13227
|
* Create a new campaign.
|
|
13195
13228
|
*
|
|
@@ -13380,6 +13413,15 @@ var Campaigns = /** @class */ (function () {
|
|
|
13380
13413
|
Campaigns.updateInfluencerCampaign = function (campaign_id, user_id, data, params) {
|
|
13381
13414
|
return Requests.processRoute(CampaignsRoute.routes.updateInfluencerCampaign, data, { campaign_id: campaign_id, user_id: user_id }, params);
|
|
13382
13415
|
};
|
|
13416
|
+
/**
|
|
13417
|
+
* Delete an influencer campaign relationship.
|
|
13418
|
+
*
|
|
13419
|
+
* The backend route currently exists, but the controller destroy implementation is intentionally
|
|
13420
|
+
* treated as an agent/admin stop-gate because removal can orphan posts, payouts, or contracts.
|
|
13421
|
+
*/
|
|
13422
|
+
Campaigns.deleteInfluencerCampaign = function (campaign_id, user_id, params) {
|
|
13423
|
+
return Requests.processRoute(CampaignsRoute.routes.deleteInfluencerCampaign, undefined, { campaign_id: campaign_id, user_id: user_id }, params);
|
|
13424
|
+
};
|
|
13383
13425
|
/**
|
|
13384
13426
|
* Retrieve the information for a single campaign.
|
|
13385
13427
|
*
|
|
@@ -13805,7 +13847,7 @@ var Campaigns = /** @class */ (function () {
|
|
|
13805
13847
|
* @returns promise
|
|
13806
13848
|
*/
|
|
13807
13849
|
Campaigns.listPayouts = function (campaign_id, params) {
|
|
13808
|
-
return Requests.processRoute(CampaignsRoute.routes.
|
|
13850
|
+
return Requests.processRoute(CampaignsRoute.routes.listPayouts, undefined, { campaign_id: campaign_id }, params);
|
|
13809
13851
|
};
|
|
13810
13852
|
/**
|
|
13811
13853
|
* Generate a contract for the influencer based on the values in the campaign.
|
|
@@ -14293,6 +14335,7 @@ var MessagesRoute = /** @class */ (function () {
|
|
|
14293
14335
|
MessagesRoute.routes = {
|
|
14294
14336
|
listMessageThreads: { url: '/messages', method: HTTP_METHODS.GET },
|
|
14295
14337
|
sendMessage: { url: '/messages', method: HTTP_METHODS.POST },
|
|
14338
|
+
updateMessage: { url: '/messages/{message_id}', method: HTTP_METHODS.PUT },
|
|
14296
14339
|
deleteMessage: { url: '/messages/{message_id}', method: HTTP_METHODS.DELETE },
|
|
14297
14340
|
createOrGetThread: { url: '/messages/makeThread', method: HTTP_METHODS.POST },
|
|
14298
14341
|
getThread: { url: '/messages/thread/{thread_id}', method: HTTP_METHODS.GET },
|
|
@@ -14323,6 +14366,16 @@ var Messages = /** @class */ (function () {
|
|
|
14323
14366
|
Messages.sendMessage = function (data, params) {
|
|
14324
14367
|
return Requests.processRoute(MessagesRoute.routes.sendMessage, data, {}, params);
|
|
14325
14368
|
};
|
|
14369
|
+
/**
|
|
14370
|
+
* Updates a message.
|
|
14371
|
+
*
|
|
14372
|
+
* @see https://api.glitch.fun/api/documentation#/Messages/updateMessage
|
|
14373
|
+
*
|
|
14374
|
+
* @returns A promise
|
|
14375
|
+
*/
|
|
14376
|
+
Messages.updateMessage = function (message_id, data, params) {
|
|
14377
|
+
return Requests.processRoute(MessagesRoute.routes.updateMessage, data, { message_id: message_id }, params);
|
|
14378
|
+
};
|
|
14326
14379
|
/**
|
|
14327
14380
|
* Deletes a message.
|
|
14328
14381
|
*
|
|
@@ -15554,6 +15607,7 @@ var SchedulerRoute = /** @class */ (function () {
|
|
|
15554
15607
|
getInstagramAccounts: { url: '/schedulers/{scheduler_id}/instagram/accounts', method: HTTP_METHODS.GET },
|
|
15555
15608
|
getRedditSubreddits: { url: '/schedulers/{scheduler_id}/reddit/subreddits', method: HTTP_METHODS.GET },
|
|
15556
15609
|
getRedditSubredditFlairs: { url: '/schedulers/{scheduler_id}/reddit/subreddits/{subreddit}/flairs', method: HTTP_METHODS.GET },
|
|
15610
|
+
getRedditSubredditRules: { url: '/schedulers/{scheduler_id}/reddit/subreddits/{subreddit}/rules', method: HTTP_METHODS.GET },
|
|
15557
15611
|
getDiscordChannels: { url: '/schedulers/{scheduler_id}/discord/channels', method: HTTP_METHODS.GET },
|
|
15558
15612
|
crossPromoteListRelationships: {
|
|
15559
15613
|
url: '/schedulers/{scheduler_id}/crosspromote/relationships',
|
|
@@ -15595,6 +15649,30 @@ var SchedulerRoute = /** @class */ (function () {
|
|
|
15595
15649
|
url: '/schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/posts',
|
|
15596
15650
|
method: HTTP_METHODS.GET
|
|
15597
15651
|
},
|
|
15652
|
+
crossPromoteSearch: {
|
|
15653
|
+
url: '/schedulers/cross-promote/search',
|
|
15654
|
+
method: HTTP_METHODS.GET
|
|
15655
|
+
},
|
|
15656
|
+
crossPromoteInvitationSend: {
|
|
15657
|
+
url: '/schedulers/cross-promote/invitations',
|
|
15658
|
+
method: HTTP_METHODS.POST
|
|
15659
|
+
},
|
|
15660
|
+
crossPromoteInvitationRespond: {
|
|
15661
|
+
url: '/schedulers/cross-promote/invitations/{invitation_id}/respond',
|
|
15662
|
+
method: HTTP_METHODS.POST
|
|
15663
|
+
},
|
|
15664
|
+
crossPromoteRelationshipsList: {
|
|
15665
|
+
url: '/schedulers/cross-promote/relationships',
|
|
15666
|
+
method: HTTP_METHODS.GET
|
|
15667
|
+
},
|
|
15668
|
+
crossPromoteRelationshipEnd: {
|
|
15669
|
+
url: '/schedulers/cross-promote/relationships/{relationship_id}/end',
|
|
15670
|
+
method: HTTP_METHODS.POST
|
|
15671
|
+
},
|
|
15672
|
+
crossPromoteRelationshipLogs: {
|
|
15673
|
+
url: '/schedulers/cross-promote/relationships/{relationship_id}/logs',
|
|
15674
|
+
method: HTTP_METHODS.GET
|
|
15675
|
+
},
|
|
15598
15676
|
getCampaignBusinesses: {
|
|
15599
15677
|
url: "/schedulers/{scheduler_id}/businesses",
|
|
15600
15678
|
method: HTTP_METHODS.GET,
|
|
@@ -16007,6 +16085,16 @@ var Scheduler = /** @class */ (function () {
|
|
|
16007
16085
|
Scheduler.getRedditSubredditFlairs = function (scheduler_id, subreddit, params) {
|
|
16008
16086
|
return Requests.processRoute(SchedulerRoute.routes.getRedditSubredditFlairs, {}, { scheduler_id: scheduler_id, subreddit: subreddit }, params);
|
|
16009
16087
|
};
|
|
16088
|
+
/**
|
|
16089
|
+
* Get posting rules for a specific Reddit subreddit.
|
|
16090
|
+
*
|
|
16091
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
16092
|
+
* @param subreddit The name of the subreddit.
|
|
16093
|
+
* @returns promise
|
|
16094
|
+
*/
|
|
16095
|
+
Scheduler.getRedditSubredditRules = function (scheduler_id, subreddit, params) {
|
|
16096
|
+
return Requests.processRoute(SchedulerRoute.routes.getRedditSubredditRules, {}, { scheduler_id: scheduler_id, subreddit: subreddit }, params);
|
|
16097
|
+
};
|
|
16010
16098
|
/**
|
|
16011
16099
|
* Get Discord channels associated with the scheduler's Discord account.
|
|
16012
16100
|
*
|
|
@@ -16134,6 +16222,48 @@ var Scheduler = /** @class */ (function () {
|
|
|
16134
16222
|
Scheduler.crossPromoteRelationshipPosts = function (scheduler_id, relationship_id, params) {
|
|
16135
16223
|
return Requests.processRoute(SchedulerRoute.routes.crossPromoteRelationshipPosts, {}, { scheduler_id: scheduler_id, relationship_id: relationship_id }, params);
|
|
16136
16224
|
};
|
|
16225
|
+
/**
|
|
16226
|
+
* Search cross-promote opportunities using the normalized route family.
|
|
16227
|
+
* GET /schedulers/cross-promote/search
|
|
16228
|
+
*/
|
|
16229
|
+
Scheduler.crossPromoteSearch = function (params) {
|
|
16230
|
+
return Requests.processRoute(SchedulerRoute.routes.crossPromoteSearch, {}, {}, params);
|
|
16231
|
+
};
|
|
16232
|
+
/**
|
|
16233
|
+
* Send a normalized cross-promote invitation.
|
|
16234
|
+
* POST /schedulers/cross-promote/invitations
|
|
16235
|
+
*/
|
|
16236
|
+
Scheduler.crossPromoteInvitationSend = function (data, params) {
|
|
16237
|
+
return Requests.processRoute(SchedulerRoute.routes.crossPromoteInvitationSend, data, {}, params);
|
|
16238
|
+
};
|
|
16239
|
+
/**
|
|
16240
|
+
* Respond to a normalized cross-promote invitation.
|
|
16241
|
+
* POST /schedulers/cross-promote/invitations/{invitation_id}/respond
|
|
16242
|
+
*/
|
|
16243
|
+
Scheduler.crossPromoteInvitationRespond = function (invitation_id, data, params) {
|
|
16244
|
+
return Requests.processRoute(SchedulerRoute.routes.crossPromoteInvitationRespond, data, { invitation_id: invitation_id }, params);
|
|
16245
|
+
};
|
|
16246
|
+
/**
|
|
16247
|
+
* List normalized cross-promote relationships.
|
|
16248
|
+
* GET /schedulers/cross-promote/relationships
|
|
16249
|
+
*/
|
|
16250
|
+
Scheduler.crossPromoteRelationshipsList = function (params) {
|
|
16251
|
+
return Requests.processRoute(SchedulerRoute.routes.crossPromoteRelationshipsList, {}, {}, params);
|
|
16252
|
+
};
|
|
16253
|
+
/**
|
|
16254
|
+
* End a normalized cross-promote relationship.
|
|
16255
|
+
* POST /schedulers/cross-promote/relationships/{relationship_id}/end
|
|
16256
|
+
*/
|
|
16257
|
+
Scheduler.crossPromoteRelationshipEnd = function (relationship_id, params) {
|
|
16258
|
+
return Requests.processRoute(SchedulerRoute.routes.crossPromoteRelationshipEnd, {}, { relationship_id: relationship_id }, params);
|
|
16259
|
+
};
|
|
16260
|
+
/**
|
|
16261
|
+
* List normalized cross-promote relationship logs.
|
|
16262
|
+
* GET /schedulers/cross-promote/relationships/{relationship_id}/logs
|
|
16263
|
+
*/
|
|
16264
|
+
Scheduler.crossPromoteRelationshipLogs = function (relationship_id, params) {
|
|
16265
|
+
return Requests.processRoute(SchedulerRoute.routes.crossPromoteRelationshipLogs, {}, { relationship_id: relationship_id }, params);
|
|
16266
|
+
};
|
|
16137
16267
|
/**
|
|
16138
16268
|
* List platform-level businesses for the given campaign ID,
|
|
16139
16269
|
* as defined by /schedulers/{scheduler_id}/businesses on the backend.
|
|
@@ -16179,6 +16309,13 @@ var Scheduler = /** @class */ (function () {
|
|
|
16179
16309
|
Scheduler.listCampaignFundingInstruments = function (scheduler_id, params) {
|
|
16180
16310
|
return Requests.processRoute(SchedulerRoute.routes.getCampaignFundingInstruments, undefined, { scheduler_id: scheduler_id }, params);
|
|
16181
16311
|
};
|
|
16312
|
+
/**
|
|
16313
|
+
* List Google Ads conversion actions available to a scheduler account.
|
|
16314
|
+
* GET /schedulers/{scheduler_id}/conversion-actions
|
|
16315
|
+
*/
|
|
16316
|
+
Scheduler.listConversionActions = function (scheduler_id, params) {
|
|
16317
|
+
return Requests.processRoute(SchedulerRoute.routes.getConversionActions, undefined, { scheduler_id: scheduler_id }, params);
|
|
16318
|
+
};
|
|
16182
16319
|
/**
|
|
16183
16320
|
* List all destinations for a title update.
|
|
16184
16321
|
*
|