glitch-javascript-sdk 1.7.8 → 1.8.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 +114 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +36 -0
- package/dist/esm/api/Scheduler.d.ts +36 -0
- package/dist/esm/index.js +114 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +72 -0
- package/package.json +1 -1
- package/src/api/Ads.ts +447 -377
- package/src/api/Scheduler.ts +69 -0
- package/src/routes/AdsRoute.ts +128 -113
- package/src/routes/SchedulerRoute.ts +16 -0
package/dist/index.d.ts
CHANGED
|
@@ -826,6 +826,42 @@ declare class Ads {
|
|
|
826
826
|
* @returns A 204 No Content response on success
|
|
827
827
|
*/
|
|
828
828
|
static deleteTrigger<T>(campaign_id: string, group_id: string, trigger_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
829
|
+
/**
|
|
830
|
+
* List platform-level businesses for the given campaign ID,
|
|
831
|
+
* as defined by /ads/campaigns/{id}/businesses on the backend.
|
|
832
|
+
*
|
|
833
|
+
* Typically relevant for Reddit (list businesses), or might return a
|
|
834
|
+
* "not supported" message for Meta/TikTok.
|
|
835
|
+
*
|
|
836
|
+
* @param campaign_id The UUID of the Ad Campaign
|
|
837
|
+
* @param params Optional query parameters, e.g. page.size, etc.
|
|
838
|
+
* @returns A response object with data (business list or messages)
|
|
839
|
+
*/
|
|
840
|
+
static listCampaignBusinesses<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
841
|
+
/**
|
|
842
|
+
* List Ad Accounts for the given campaign ID,
|
|
843
|
+
* as defined by /ads/campaigns/{id}/ad_accounts on the backend.
|
|
844
|
+
*
|
|
845
|
+
* E.g. for Reddit, you can pass ?business_id= to get business-level ad accounts,
|
|
846
|
+
* or for Twitter, it might just return a user’s ad accounts, etc.
|
|
847
|
+
*
|
|
848
|
+
* @param campaign_id The UUID of the Ad Campaign
|
|
849
|
+
* @param params Optional query parameters, e.g. business_id, page.size, etc.
|
|
850
|
+
* @returns A response object with data (ad account list)
|
|
851
|
+
*/
|
|
852
|
+
static listCampaignAdAccounts<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
853
|
+
/**
|
|
854
|
+
* List funding instruments for the given campaign ID,
|
|
855
|
+
* as defined by /ads/campaigns/{id}/funding_instruments on the backend.
|
|
856
|
+
*
|
|
857
|
+
* For Twitter, pass ?account_id=...
|
|
858
|
+
* For Reddit, pass ?ad_account_id=... or ?business_id=...
|
|
859
|
+
*
|
|
860
|
+
* @param campaign_id The UUID of the Ad Campaign
|
|
861
|
+
* @param params Optional query parameters
|
|
862
|
+
* @returns A response object with data (funding instruments)
|
|
863
|
+
*/
|
|
864
|
+
static listCampaignFundingInstruments<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
829
865
|
}
|
|
830
866
|
|
|
831
867
|
declare class Communities {
|
|
@@ -4716,6 +4752,42 @@ declare class Scheduler {
|
|
|
4716
4752
|
* GET /schedulers/{scheduler_id}/crosspromote/relationships/{relationship_id}/posts
|
|
4717
4753
|
*/
|
|
4718
4754
|
static crossPromoteRelationshipPosts<T>(scheduler_id: string, relationship_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4755
|
+
/**
|
|
4756
|
+
* List platform-level businesses for the given campaign ID,
|
|
4757
|
+
* as defined by /schedulers/{scheduler_id}/businesses on the backend.
|
|
4758
|
+
*
|
|
4759
|
+
* Typically relevant for Reddit (list businesses), or might return a
|
|
4760
|
+
* "not supported" message for Meta/TikTok.
|
|
4761
|
+
*
|
|
4762
|
+
* @param scheduler_id The UUID of the Ad Campaign
|
|
4763
|
+
* @param params Optional query parameters, e.g. page.size, etc.
|
|
4764
|
+
* @returns A response object with data (business list or messages)
|
|
4765
|
+
*/
|
|
4766
|
+
static listCampaignBusinesses<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4767
|
+
/**
|
|
4768
|
+
* List Ad Accounts for the given campaign ID,
|
|
4769
|
+
* as defined by /schedulers/{scheduler_id}/ad_accounts on the backend.
|
|
4770
|
+
*
|
|
4771
|
+
* E.g. for Reddit, you can pass ?business_id= to get business-level ad accounts,
|
|
4772
|
+
* or for Twitter, it might just return a user’s ad accounts, etc.
|
|
4773
|
+
*
|
|
4774
|
+
* @param scheduler_id The UUID of the Ad Campaign
|
|
4775
|
+
* @param params Optional query parameters, e.g. business_id, page.size, etc.
|
|
4776
|
+
* @returns A response object with data (ad account list)
|
|
4777
|
+
*/
|
|
4778
|
+
static listCampaignAdAccounts<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4779
|
+
/**
|
|
4780
|
+
* List funding instruments for the given campaign ID,
|
|
4781
|
+
* as defined by /schedulers/{scheduler_id}/funding_instruments on the backend.
|
|
4782
|
+
*
|
|
4783
|
+
* For Twitter, pass ?account_id=...
|
|
4784
|
+
* For Reddit, pass ?ad_account_id=... or ?business_id=...
|
|
4785
|
+
*
|
|
4786
|
+
* @param scheduler_id The UUID of the Ad Campaign
|
|
4787
|
+
* @param params Optional query parameters
|
|
4788
|
+
* @returns A response object with data (funding instruments)
|
|
4789
|
+
*/
|
|
4790
|
+
static listCampaignFundingInstruments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4719
4791
|
}
|
|
4720
4792
|
|
|
4721
4793
|
declare class Funnel {
|