glitch-javascript-sdk 3.2.7 → 3.2.9
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 +39 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +22 -0
- package/dist/esm/api/Scheduler.d.ts +13 -0
- package/dist/esm/index.js +39 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +35 -0
- package/package.json +1 -1
- package/src/api/Ads.ts +36 -0
- package/src/api/Scheduler.ts +27 -0
- package/src/routes/AdsRoute.ts +10 -0
- package/src/routes/SchedulerRoute.ts +1 -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;
|
|
@@ -459,6 +459,11 @@ declare class Scheduler {
|
|
|
459
459
|
* @returns A response object with data (funding instruments)
|
|
460
460
|
*/
|
|
461
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>>;
|
|
462
467
|
/**
|
|
463
468
|
* List all destinations for a title update.
|
|
464
469
|
*
|
|
@@ -580,6 +585,14 @@ declare class Scheduler {
|
|
|
580
585
|
platform: string;
|
|
581
586
|
account_id?: string;
|
|
582
587
|
}): AxiosPromise<Response<T>>;
|
|
588
|
+
/**
|
|
589
|
+
* Send a platform test conversion event through the backend scheduler route.
|
|
590
|
+
*
|
|
591
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
592
|
+
* @param platform Platform key, e.g. reddit, tiktok, facebook, google.
|
|
593
|
+
* @param params Query parameters such as Reddit test_id or Meta test_event_code.
|
|
594
|
+
*/
|
|
595
|
+
static sendTestConversionEvent<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
583
596
|
/**
|
|
584
597
|
* Trigger a historical sync for a specific platform on a scheduler.
|
|
585
598
|
*
|
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
|
|
|
@@ -15680,6 +15701,7 @@ var SchedulerRoute = /** @class */ (function () {
|
|
|
15680
15701
|
getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
|
|
15681
15702
|
syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
|
|
15682
15703
|
getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
|
|
15704
|
+
sendTestConversionEvent: { url: '/schedulers/{scheduler_id}/test-event/{platform}', method: HTTP_METHODS.GET },
|
|
15683
15705
|
syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
|
|
15684
15706
|
generateHashtags: {
|
|
15685
15707
|
url: '/schedulers/{scheduler_id}/generateHashtags',
|
|
@@ -16288,6 +16310,13 @@ var Scheduler = /** @class */ (function () {
|
|
|
16288
16310
|
Scheduler.listCampaignFundingInstruments = function (scheduler_id, params) {
|
|
16289
16311
|
return Requests.processRoute(SchedulerRoute.routes.getCampaignFundingInstruments, undefined, { scheduler_id: scheduler_id }, params);
|
|
16290
16312
|
};
|
|
16313
|
+
/**
|
|
16314
|
+
* List Google Ads conversion actions available to a scheduler account.
|
|
16315
|
+
* GET /schedulers/{scheduler_id}/conversion-actions
|
|
16316
|
+
*/
|
|
16317
|
+
Scheduler.listConversionActions = function (scheduler_id, params) {
|
|
16318
|
+
return Requests.processRoute(SchedulerRoute.routes.getConversionActions, undefined, { scheduler_id: scheduler_id }, params);
|
|
16319
|
+
};
|
|
16291
16320
|
/**
|
|
16292
16321
|
* List all destinations for a title update.
|
|
16293
16322
|
*
|
|
@@ -16431,6 +16460,16 @@ var Scheduler = /** @class */ (function () {
|
|
|
16431
16460
|
Scheduler.getConversionActions = function (scheduler_id, params) {
|
|
16432
16461
|
return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id: scheduler_id }, params);
|
|
16433
16462
|
};
|
|
16463
|
+
/**
|
|
16464
|
+
* Send a platform test conversion event through the backend scheduler route.
|
|
16465
|
+
*
|
|
16466
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
16467
|
+
* @param platform Platform key, e.g. reddit, tiktok, facebook, google.
|
|
16468
|
+
* @param params Query parameters such as Reddit test_id or Meta test_event_code.
|
|
16469
|
+
*/
|
|
16470
|
+
Scheduler.sendTestConversionEvent = function (scheduler_id, platform, params) {
|
|
16471
|
+
return Requests.processRoute(SchedulerRoute.routes.sendTestConversionEvent, {}, { scheduler_id: scheduler_id, platform: platform }, params);
|
|
16472
|
+
};
|
|
16434
16473
|
/**
|
|
16435
16474
|
* Trigger a historical sync for a specific platform on a scheduler.
|
|
16436
16475
|
*
|