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/index.d.ts
CHANGED
|
@@ -1119,6 +1119,19 @@ declare class Ads {
|
|
|
1119
1119
|
platform?: string;
|
|
1120
1120
|
}): AxiosPromise<Response<T>>;
|
|
1121
1121
|
/**
|
|
1122
|
+
* Get detailed paid campaign performance rows for tables and exports.
|
|
1123
|
+
*/
|
|
1124
|
+
static getDetailedBreakdownReport<T>(params: {
|
|
1125
|
+
start_date: string;
|
|
1126
|
+
end_date: string;
|
|
1127
|
+
community_id?: string;
|
|
1128
|
+
scheduler_id?: string;
|
|
1129
|
+
platform?: string;
|
|
1130
|
+
campaign_id?: string;
|
|
1131
|
+
ad_group_id?: string;
|
|
1132
|
+
ad_id?: string;
|
|
1133
|
+
}): AxiosPromise<Response<T>>;
|
|
1134
|
+
/**
|
|
1122
1135
|
* GET /ads/google/targeting/geo/suggest
|
|
1123
1136
|
*/
|
|
1124
1137
|
static listGoogleGeoSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
@@ -1177,6 +1190,15 @@ declare class Ads {
|
|
|
1177
1190
|
currency_code: string;
|
|
1178
1191
|
time_zone: string;
|
|
1179
1192
|
}): AxiosPromise<Response<T>>;
|
|
1193
|
+
/**
|
|
1194
|
+
* Submit a SKAN attribution postback to the public Apple app attribution endpoint.
|
|
1195
|
+
* This mirrors POST /.well-known/appattribution/report-attribution.
|
|
1196
|
+
*/
|
|
1197
|
+
static reportSkanAttributionPostback<T>(data: {
|
|
1198
|
+
"jws-string"?: string;
|
|
1199
|
+
jws?: string;
|
|
1200
|
+
[key: string]: any;
|
|
1201
|
+
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1180
1202
|
}
|
|
1181
1203
|
|
|
1182
1204
|
declare class Communities {
|
|
@@ -3693,7 +3715,7 @@ declare class SocialPosts {
|
|
|
3693
3715
|
*
|
|
3694
3716
|
* @returns promise
|
|
3695
3717
|
*/
|
|
3696
|
-
static reports<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
3718
|
+
static reports<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
3697
3719
|
/**
|
|
3698
3720
|
* Update the information about a post impressions, for posts who API do not give view counts.
|
|
3699
3721
|
*
|
|
@@ -4770,6 +4792,14 @@ declare class Campaigns {
|
|
|
4770
4792
|
* @returns promise
|
|
4771
4793
|
*/
|
|
4772
4794
|
static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4795
|
+
/**
|
|
4796
|
+
* List public influencer campaigns.
|
|
4797
|
+
*
|
|
4798
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/getPublicCampaigns
|
|
4799
|
+
*
|
|
4800
|
+
* @returns promise
|
|
4801
|
+
*/
|
|
4802
|
+
static listPublic<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4773
4803
|
/**
|
|
4774
4804
|
* Create a new campaign.
|
|
4775
4805
|
*
|
|
@@ -4926,6 +4956,13 @@ declare class Campaigns {
|
|
|
4926
4956
|
* @returns promise
|
|
4927
4957
|
*/
|
|
4928
4958
|
static updateInfluencerCampaign<T>(campaign_id: string, user_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4959
|
+
/**
|
|
4960
|
+
* Delete an influencer campaign relationship.
|
|
4961
|
+
*
|
|
4962
|
+
* The backend route currently exists, but the controller destroy implementation is intentionally
|
|
4963
|
+
* treated as an agent/admin stop-gate because removal can orphan posts, payouts, or contracts.
|
|
4964
|
+
*/
|
|
4965
|
+
static deleteInfluencerCampaign<T>(campaign_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4929
4966
|
/**
|
|
4930
4967
|
* Retrieve the information for a single campaign.
|
|
4931
4968
|
*
|
|
@@ -5683,6 +5720,14 @@ declare class Messages {
|
|
|
5683
5720
|
* @returns A promise
|
|
5684
5721
|
*/
|
|
5685
5722
|
static sendMessage<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
5723
|
+
/**
|
|
5724
|
+
* Updates a message.
|
|
5725
|
+
*
|
|
5726
|
+
* @see https://api.glitch.fun/api/documentation#/Messages/updateMessage
|
|
5727
|
+
*
|
|
5728
|
+
* @returns A promise
|
|
5729
|
+
*/
|
|
5730
|
+
static updateMessage<T>(message_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
5686
5731
|
/**
|
|
5687
5732
|
* Deletes a message.
|
|
5688
5733
|
*
|
|
@@ -6884,6 +6929,14 @@ declare class Scheduler {
|
|
|
6884
6929
|
* @returns promise
|
|
6885
6930
|
*/
|
|
6886
6931
|
static getRedditSubredditFlairs<T>(scheduler_id: string, subreddit: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6932
|
+
/**
|
|
6933
|
+
* Get posting rules for a specific Reddit subreddit.
|
|
6934
|
+
*
|
|
6935
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
6936
|
+
* @param subreddit The name of the subreddit.
|
|
6937
|
+
* @returns promise
|
|
6938
|
+
*/
|
|
6939
|
+
static getRedditSubredditRules<T>(scheduler_id: string, subreddit: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6887
6940
|
/**
|
|
6888
6941
|
* Get Discord channels associated with the scheduler's Discord account.
|
|
6889
6942
|
*
|
|
@@ -6974,6 +7027,36 @@ declare class Scheduler {
|
|
|
6974
7027
|
* GET /schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/posts
|
|
6975
7028
|
*/
|
|
6976
7029
|
static crossPromoteRelationshipPosts<T>(scheduler_id: string, relationship_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7030
|
+
/**
|
|
7031
|
+
* Search cross-promote opportunities using the normalized route family.
|
|
7032
|
+
* GET /schedulers/cross-promote/search
|
|
7033
|
+
*/
|
|
7034
|
+
static crossPromoteSearch<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7035
|
+
/**
|
|
7036
|
+
* Send a normalized cross-promote invitation.
|
|
7037
|
+
* POST /schedulers/cross-promote/invitations
|
|
7038
|
+
*/
|
|
7039
|
+
static crossPromoteInvitationSend<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7040
|
+
/**
|
|
7041
|
+
* Respond to a normalized cross-promote invitation.
|
|
7042
|
+
* POST /schedulers/cross-promote/invitations/{invitation_id}/respond
|
|
7043
|
+
*/
|
|
7044
|
+
static crossPromoteInvitationRespond<T>(invitation_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7045
|
+
/**
|
|
7046
|
+
* List normalized cross-promote relationships.
|
|
7047
|
+
* GET /schedulers/cross-promote/relationships
|
|
7048
|
+
*/
|
|
7049
|
+
static crossPromoteRelationshipsList<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7050
|
+
/**
|
|
7051
|
+
* End a normalized cross-promote relationship.
|
|
7052
|
+
* POST /schedulers/cross-promote/relationships/{relationship_id}/end
|
|
7053
|
+
*/
|
|
7054
|
+
static crossPromoteRelationshipEnd<T>(relationship_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7055
|
+
/**
|
|
7056
|
+
* List normalized cross-promote relationship logs.
|
|
7057
|
+
* GET /schedulers/cross-promote/relationships/{relationship_id}/logs
|
|
7058
|
+
*/
|
|
7059
|
+
static crossPromoteRelationshipLogs<T>(relationship_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6977
7060
|
/**
|
|
6978
7061
|
* List platform-level businesses for the given campaign ID,
|
|
6979
7062
|
* as defined by /schedulers/{scheduler_id}/businesses on the backend.
|
|
@@ -7010,6 +7093,11 @@ declare class Scheduler {
|
|
|
7010
7093
|
* @returns A response object with data (funding instruments)
|
|
7011
7094
|
*/
|
|
7012
7095
|
static listCampaignFundingInstruments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7096
|
+
/**
|
|
7097
|
+
* List Google Ads conversion actions available to a scheduler account.
|
|
7098
|
+
* GET /schedulers/{scheduler_id}/conversion-actions
|
|
7099
|
+
*/
|
|
7100
|
+
static listConversionActions<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7013
7101
|
/**
|
|
7014
7102
|
* List all destinations for a title update.
|
|
7015
7103
|
*
|
package/package.json
CHANGED
package/src/api/Ads.ts
CHANGED
|
@@ -1090,6 +1090,22 @@ class Ads {
|
|
|
1090
1090
|
return Requests.processRoute(AdsRoute.routes.getTimePerformanceReport, undefined, undefined, params);
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
|
+
/**
|
|
1094
|
+
* Get detailed paid campaign performance rows for tables and exports.
|
|
1095
|
+
*/
|
|
1096
|
+
public static getDetailedBreakdownReport<T>(params: {
|
|
1097
|
+
start_date: string;
|
|
1098
|
+
end_date: string;
|
|
1099
|
+
community_id?: string;
|
|
1100
|
+
scheduler_id?: string;
|
|
1101
|
+
platform?: string;
|
|
1102
|
+
campaign_id?: string;
|
|
1103
|
+
ad_group_id?: string;
|
|
1104
|
+
ad_id?: string;
|
|
1105
|
+
}): AxiosPromise<Response<T>> {
|
|
1106
|
+
return Requests.processRoute(AdsRoute.routes.getDetailedBreakdownReport, undefined, undefined, params);
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1093
1109
|
/**
|
|
1094
1110
|
* GET /ads/google/targeting/geo/suggest
|
|
1095
1111
|
*/
|
|
@@ -1303,6 +1319,26 @@ class Ads {
|
|
|
1303
1319
|
);
|
|
1304
1320
|
}
|
|
1305
1321
|
|
|
1322
|
+
/**
|
|
1323
|
+
* Submit a SKAN attribution postback to the public Apple app attribution endpoint.
|
|
1324
|
+
* This mirrors POST /.well-known/appattribution/report-attribution.
|
|
1325
|
+
*/
|
|
1326
|
+
public static reportSkanAttributionPostback<T>(
|
|
1327
|
+
data: {
|
|
1328
|
+
"jws-string"?: string;
|
|
1329
|
+
jws?: string;
|
|
1330
|
+
[key: string]: any;
|
|
1331
|
+
},
|
|
1332
|
+
params?: Record<string, any>
|
|
1333
|
+
): AxiosPromise<Response<T>> {
|
|
1334
|
+
return Requests.processRoute(
|
|
1335
|
+
AdsRoute.routes.reportSkanAttributionPostback,
|
|
1336
|
+
data,
|
|
1337
|
+
undefined,
|
|
1338
|
+
params
|
|
1339
|
+
);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1306
1342
|
|
|
1307
1343
|
}
|
|
1308
1344
|
|
package/src/api/Campaigns.ts
CHANGED
|
@@ -16,6 +16,17 @@ class Campaigns {
|
|
|
16
16
|
return Requests.processRoute(CampaignsRoute.routes.listCampaigns, undefined, undefined, params);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* List public influencer campaigns.
|
|
21
|
+
*
|
|
22
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/getPublicCampaigns
|
|
23
|
+
*
|
|
24
|
+
* @returns promise
|
|
25
|
+
*/
|
|
26
|
+
public static listPublic<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
27
|
+
return Requests.processRoute(CampaignsRoute.routes.listPublicCampaigns, undefined, undefined, params);
|
|
28
|
+
}
|
|
29
|
+
|
|
19
30
|
/**
|
|
20
31
|
* Create a new campaign.
|
|
21
32
|
*
|
|
@@ -233,6 +244,17 @@ class Campaigns {
|
|
|
233
244
|
return Requests.processRoute(CampaignsRoute.routes.updateInfluencerCampaign, data, { campaign_id: campaign_id, user_id: user_id }, params);
|
|
234
245
|
}
|
|
235
246
|
|
|
247
|
+
/**
|
|
248
|
+
* Delete an influencer campaign relationship.
|
|
249
|
+
*
|
|
250
|
+
* The backend route currently exists, but the controller destroy implementation is intentionally
|
|
251
|
+
* treated as an agent/admin stop-gate because removal can orphan posts, payouts, or contracts.
|
|
252
|
+
*/
|
|
253
|
+
public static deleteInfluencerCampaign<T>(campaign_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
254
|
+
|
|
255
|
+
return Requests.processRoute(CampaignsRoute.routes.deleteInfluencerCampaign, undefined, { campaign_id: campaign_id, user_id: user_id }, params);
|
|
256
|
+
}
|
|
257
|
+
|
|
236
258
|
/**
|
|
237
259
|
* Retrieve the information for a single campaign.
|
|
238
260
|
*
|
|
@@ -734,7 +756,7 @@ class Campaigns {
|
|
|
734
756
|
* @returns promise
|
|
735
757
|
*/
|
|
736
758
|
public static listPayouts<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
737
|
-
return Requests.processRoute(CampaignsRoute.routes.
|
|
759
|
+
return Requests.processRoute(CampaignsRoute.routes.listPayouts, undefined, { campaign_id: campaign_id }, params);
|
|
738
760
|
}
|
|
739
761
|
|
|
740
762
|
/**
|
|
@@ -1075,4 +1097,4 @@ class Campaigns {
|
|
|
1075
1097
|
}
|
|
1076
1098
|
}
|
|
1077
1099
|
|
|
1078
|
-
export default Campaigns;
|
|
1100
|
+
export default Campaigns;
|
package/src/api/Messages.ts
CHANGED
|
@@ -27,6 +27,17 @@ class Messages {
|
|
|
27
27
|
return Requests.processRoute(MessagesRoute.routes.sendMessage, data, {}, params);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Updates a message.
|
|
32
|
+
*
|
|
33
|
+
* @see https://api.glitch.fun/api/documentation#/Messages/updateMessage
|
|
34
|
+
*
|
|
35
|
+
* @returns A promise
|
|
36
|
+
*/
|
|
37
|
+
public static updateMessage<T>(message_id: string, data? : object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
|
|
38
|
+
return Requests.processRoute(MessagesRoute.routes.updateMessage, data, {message_id : message_id}, params);
|
|
39
|
+
}
|
|
40
|
+
|
|
30
41
|
/**
|
|
31
42
|
* Deletes a message.
|
|
32
43
|
*
|
|
@@ -65,4 +76,4 @@ class Messages {
|
|
|
65
76
|
|
|
66
77
|
}
|
|
67
78
|
|
|
68
|
-
export default Messages;
|
|
79
|
+
export default Messages;
|
package/src/api/Scheduler.ts
CHANGED
|
@@ -410,6 +410,17 @@ class Scheduler {
|
|
|
410
410
|
return Requests.processRoute(SchedulerRoute.routes.getRedditSubredditFlairs, {}, { scheduler_id, subreddit }, params);
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
+
/**
|
|
414
|
+
* Get posting rules for a specific Reddit subreddit.
|
|
415
|
+
*
|
|
416
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
417
|
+
* @param subreddit The name of the subreddit.
|
|
418
|
+
* @returns promise
|
|
419
|
+
*/
|
|
420
|
+
public static getRedditSubredditRules<T>(scheduler_id: string, subreddit: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
421
|
+
return Requests.processRoute(SchedulerRoute.routes.getRedditSubredditRules, {}, { scheduler_id, subreddit }, params);
|
|
422
|
+
}
|
|
423
|
+
|
|
413
424
|
/**
|
|
414
425
|
* Get Discord channels associated with the scheduler's Discord account.
|
|
415
426
|
*
|
|
@@ -612,6 +623,84 @@ class Scheduler {
|
|
|
612
623
|
);
|
|
613
624
|
}
|
|
614
625
|
|
|
626
|
+
/**
|
|
627
|
+
* Search cross-promote opportunities using the normalized route family.
|
|
628
|
+
* GET /schedulers/cross-promote/search
|
|
629
|
+
*/
|
|
630
|
+
public static crossPromoteSearch<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
631
|
+
return Requests.processRoute(
|
|
632
|
+
SchedulerRoute.routes.crossPromoteSearch,
|
|
633
|
+
{},
|
|
634
|
+
{},
|
|
635
|
+
params
|
|
636
|
+
);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Send a normalized cross-promote invitation.
|
|
641
|
+
* POST /schedulers/cross-promote/invitations
|
|
642
|
+
*/
|
|
643
|
+
public static crossPromoteInvitationSend<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
644
|
+
return Requests.processRoute(
|
|
645
|
+
SchedulerRoute.routes.crossPromoteInvitationSend,
|
|
646
|
+
data,
|
|
647
|
+
{},
|
|
648
|
+
params
|
|
649
|
+
);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Respond to a normalized cross-promote invitation.
|
|
654
|
+
* POST /schedulers/cross-promote/invitations/{invitation_id}/respond
|
|
655
|
+
*/
|
|
656
|
+
public static crossPromoteInvitationRespond<T>(invitation_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
657
|
+
return Requests.processRoute(
|
|
658
|
+
SchedulerRoute.routes.crossPromoteInvitationRespond,
|
|
659
|
+
data,
|
|
660
|
+
{ invitation_id },
|
|
661
|
+
params
|
|
662
|
+
);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* List normalized cross-promote relationships.
|
|
667
|
+
* GET /schedulers/cross-promote/relationships
|
|
668
|
+
*/
|
|
669
|
+
public static crossPromoteRelationshipsList<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
670
|
+
return Requests.processRoute(
|
|
671
|
+
SchedulerRoute.routes.crossPromoteRelationshipsList,
|
|
672
|
+
{},
|
|
673
|
+
{},
|
|
674
|
+
params
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* End a normalized cross-promote relationship.
|
|
680
|
+
* POST /schedulers/cross-promote/relationships/{relationship_id}/end
|
|
681
|
+
*/
|
|
682
|
+
public static crossPromoteRelationshipEnd<T>(relationship_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
683
|
+
return Requests.processRoute(
|
|
684
|
+
SchedulerRoute.routes.crossPromoteRelationshipEnd,
|
|
685
|
+
{},
|
|
686
|
+
{ relationship_id },
|
|
687
|
+
params
|
|
688
|
+
);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* List normalized cross-promote relationship logs.
|
|
693
|
+
* GET /schedulers/cross-promote/relationships/{relationship_id}/logs
|
|
694
|
+
*/
|
|
695
|
+
public static crossPromoteRelationshipLogs<T>(relationship_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
696
|
+
return Requests.processRoute(
|
|
697
|
+
SchedulerRoute.routes.crossPromoteRelationshipLogs,
|
|
698
|
+
{},
|
|
699
|
+
{ relationship_id },
|
|
700
|
+
params
|
|
701
|
+
);
|
|
702
|
+
}
|
|
703
|
+
|
|
615
704
|
/**
|
|
616
705
|
* List platform-level businesses for the given campaign ID,
|
|
617
706
|
* as defined by /schedulers/{scheduler_id}/businesses on the backend.
|
|
@@ -681,6 +770,22 @@ class Scheduler {
|
|
|
681
770
|
);
|
|
682
771
|
}
|
|
683
772
|
|
|
773
|
+
/**
|
|
774
|
+
* List Google Ads conversion actions available to a scheduler account.
|
|
775
|
+
* GET /schedulers/{scheduler_id}/conversion-actions
|
|
776
|
+
*/
|
|
777
|
+
public static listConversionActions<T>(
|
|
778
|
+
scheduler_id: string,
|
|
779
|
+
params?: Record<string, any>
|
|
780
|
+
): AxiosPromise<Response<T>> {
|
|
781
|
+
return Requests.processRoute(
|
|
782
|
+
SchedulerRoute.routes.getConversionActions,
|
|
783
|
+
undefined,
|
|
784
|
+
{ scheduler_id },
|
|
785
|
+
params
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
|
|
684
789
|
/**
|
|
685
790
|
* List all destinations for a title update.
|
|
686
791
|
*
|
package/src/api/SocialPosts.ts
CHANGED
|
@@ -161,8 +161,8 @@ class SocialPosts {
|
|
|
161
161
|
*
|
|
162
162
|
* @returns promise
|
|
163
163
|
*/
|
|
164
|
-
public static reports<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
165
|
-
return Requests.processRoute(SocialPostsRoute.routes.reports, undefined,
|
|
164
|
+
public static reports<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
165
|
+
return Requests.processRoute(SocialPostsRoute.routes.reports, undefined, { post_id }, params);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
/**
|
|
@@ -533,4 +533,4 @@ class SocialPosts {
|
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
|
|
536
|
-
export default SocialPosts;
|
|
536
|
+
export default SocialPosts;
|
package/src/routes/AdsRoute.ts
CHANGED
|
@@ -402,6 +402,11 @@ class AdsRoute {
|
|
|
402
402
|
method: HTTP_METHODS.GET,
|
|
403
403
|
},
|
|
404
404
|
|
|
405
|
+
getDetailedBreakdownReport: {
|
|
406
|
+
url: "/ads/reports/detailed-breakdown",
|
|
407
|
+
method: HTTP_METHODS.GET,
|
|
408
|
+
},
|
|
409
|
+
|
|
405
410
|
getGoogleGeoSuggestions: {
|
|
406
411
|
url: "/ads/google/targeting/geo/suggest",
|
|
407
412
|
method: HTTP_METHODS.GET,
|
|
@@ -465,6 +470,11 @@ class AdsRoute {
|
|
|
465
470
|
method: HTTP_METHODS.POST,
|
|
466
471
|
},
|
|
467
472
|
|
|
473
|
+
reportSkanAttributionPostback: {
|
|
474
|
+
url: "/.well-known/appattribution/report-attribution",
|
|
475
|
+
method: HTTP_METHODS.POST,
|
|
476
|
+
},
|
|
477
|
+
|
|
468
478
|
};
|
|
469
479
|
}
|
|
470
480
|
|
|
@@ -5,6 +5,7 @@ class CampaignsRoute {
|
|
|
5
5
|
|
|
6
6
|
public static routes: { [key: string]: Route } = {
|
|
7
7
|
listCampaigns: { url: '/campaigns', method: HTTP_METHODS.GET },
|
|
8
|
+
listPublicCampaigns: { url: '/campaigns/public', method: HTTP_METHODS.GET },
|
|
8
9
|
createCampaign: { url: '/campaigns', method: HTTP_METHODS.POST },
|
|
9
10
|
viewCampaign: { url: '/campaigns/{campaign_id}', method: HTTP_METHODS.GET },
|
|
10
11
|
updateCampaign: { url: '/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
|
|
@@ -21,6 +22,7 @@ class CampaignsRoute {
|
|
|
21
22
|
listInfluencerCampaigns: { url: '/campaigns/influencers', method: HTTP_METHODS.GET },
|
|
22
23
|
viewInfluencerCampaign: { url: '/campaigns/{campaign_id}/influencers/{user_id}', method: HTTP_METHODS.GET },
|
|
23
24
|
updateInfluencerCampaign: { url: '/campaigns/{campaign_id}/influencers/{user_id}', method: HTTP_METHODS.PUT },
|
|
25
|
+
deleteInfluencerCampaign: { url: '/campaigns/{campaign_id}/influencers/{user_id}', method: HTTP_METHODS.DELETE },
|
|
24
26
|
markInfluencerCampaignComplete: { url: '/campaigns/{campaign_id}/influencers/{user_id}/setComplete', method: HTTP_METHODS.POST },
|
|
25
27
|
markInfluencerCampaignIncomplete: { url: '/campaigns/{campaign_id}/influencers/{user_id}/setIncomplete', method: HTTP_METHODS.POST },
|
|
26
28
|
listInfluencerCampaignLinks: { url: '/campaigns/{campaign_id}/influencers/{user_id}/links', method: HTTP_METHODS.GET },
|
|
@@ -110,4 +112,4 @@ class CampaignsRoute {
|
|
|
110
112
|
|
|
111
113
|
}
|
|
112
114
|
|
|
113
|
-
export default CampaignsRoute;
|
|
115
|
+
export default CampaignsRoute;
|
|
@@ -6,6 +6,7 @@ class MessagesRoute {
|
|
|
6
6
|
public static routes: { [key: string]: Route } = {
|
|
7
7
|
listMessageThreads: { url: '/messages', method: HTTP_METHODS.GET },
|
|
8
8
|
sendMessage: { url: '/messages', method: HTTP_METHODS.POST },
|
|
9
|
+
updateMessage: { url: '/messages/{message_id}', method: HTTP_METHODS.PUT },
|
|
9
10
|
deleteMessage: { url: '/messages/{message_id}', method: HTTP_METHODS.DELETE },
|
|
10
11
|
createOrGetThread: { url: '/messages/makeThread', method: HTTP_METHODS.POST },
|
|
11
12
|
getThread: { url: '/messages/thread/{thread_id}', method: HTTP_METHODS.GET },
|
|
@@ -13,4 +14,4 @@ class MessagesRoute {
|
|
|
13
14
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
export default MessagesRoute;
|
|
17
|
+
export default MessagesRoute;
|
package/src/routes/PostsRoute.ts
CHANGED
|
@@ -13,10 +13,10 @@ class PostsRoute {
|
|
|
13
13
|
join: { url: '/posts/{post_id}/join', method: HTTP_METHODS.POST },
|
|
14
14
|
follow: { url: '/posts/{post_id}/follow', method: HTTP_METHODS.POST },
|
|
15
15
|
leave: { url: '/posts/{post_id}/leave', method: HTTP_METHODS.DELETE },
|
|
16
|
-
resolve: { url: '/posts/{post_id}/resolve', method: HTTP_METHODS.
|
|
16
|
+
resolve: { url: '/posts/{post_id}/resolve', method: HTTP_METHODS.PATCH },
|
|
17
17
|
updatePreferences: { url: '/posts/{post_id}/participants/me', method: HTTP_METHODS.PUT },
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export default PostsRoute;
|
|
22
|
+
export default PostsRoute;
|
|
@@ -48,6 +48,7 @@ class SchedulerRoute {
|
|
|
48
48
|
getInstagramAccounts: { url: '/schedulers/{scheduler_id}/instagram/accounts', method: HTTP_METHODS.GET },
|
|
49
49
|
getRedditSubreddits: { url: '/schedulers/{scheduler_id}/reddit/subreddits', method: HTTP_METHODS.GET },
|
|
50
50
|
getRedditSubredditFlairs: { url: '/schedulers/{scheduler_id}/reddit/subreddits/{subreddit}/flairs', method: HTTP_METHODS.GET },
|
|
51
|
+
getRedditSubredditRules: { url: '/schedulers/{scheduler_id}/reddit/subreddits/{subreddit}/rules', method: HTTP_METHODS.GET },
|
|
51
52
|
getDiscordChannels: { url: '/schedulers/{scheduler_id}/discord/channels', method: HTTP_METHODS.GET },
|
|
52
53
|
|
|
53
54
|
crossPromoteListRelationships: {
|
|
@@ -90,6 +91,30 @@ class SchedulerRoute {
|
|
|
90
91
|
url: '/schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/posts',
|
|
91
92
|
method: HTTP_METHODS.GET
|
|
92
93
|
},
|
|
94
|
+
crossPromoteSearch: {
|
|
95
|
+
url: '/schedulers/cross-promote/search',
|
|
96
|
+
method: HTTP_METHODS.GET
|
|
97
|
+
},
|
|
98
|
+
crossPromoteInvitationSend: {
|
|
99
|
+
url: '/schedulers/cross-promote/invitations',
|
|
100
|
+
method: HTTP_METHODS.POST
|
|
101
|
+
},
|
|
102
|
+
crossPromoteInvitationRespond: {
|
|
103
|
+
url: '/schedulers/cross-promote/invitations/{invitation_id}/respond',
|
|
104
|
+
method: HTTP_METHODS.POST
|
|
105
|
+
},
|
|
106
|
+
crossPromoteRelationshipsList: {
|
|
107
|
+
url: '/schedulers/cross-promote/relationships',
|
|
108
|
+
method: HTTP_METHODS.GET
|
|
109
|
+
},
|
|
110
|
+
crossPromoteRelationshipEnd: {
|
|
111
|
+
url: '/schedulers/cross-promote/relationships/{relationship_id}/end',
|
|
112
|
+
method: HTTP_METHODS.POST
|
|
113
|
+
},
|
|
114
|
+
crossPromoteRelationshipLogs: {
|
|
115
|
+
url: '/schedulers/cross-promote/relationships/{relationship_id}/logs',
|
|
116
|
+
method: HTTP_METHODS.GET
|
|
117
|
+
},
|
|
93
118
|
|
|
94
119
|
getCampaignBusinesses: {
|
|
95
120
|
url: "/schedulers/{scheduler_id}/businesses",
|