glitch-javascript-sdk 2.2.0 → 2.2.1
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 +53 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +36 -0
- package/dist/esm/index.js +53 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +36 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +52 -0
- package/src/routes/TitlesRoute.ts +7 -1
package/dist/cjs/index.js
CHANGED
|
@@ -24536,7 +24536,13 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24536
24536
|
retryAdConversionEvent: {
|
|
24537
24537
|
url: '/titles/{title_id}/ad-conversion-events/{event_id}/retry',
|
|
24538
24538
|
method: HTTP_METHODS.POST
|
|
24539
|
-
}
|
|
24539
|
+
},
|
|
24540
|
+
listLandingPages: { url: '/titles/{title_id}/landing-pages', method: HTTP_METHODS.GET },
|
|
24541
|
+
createLandingPage: { url: '/titles/{title_id}/landing-pages', method: HTTP_METHODS.POST },
|
|
24542
|
+
viewLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.GET },
|
|
24543
|
+
updateLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.PUT },
|
|
24544
|
+
deleteLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.DELETE },
|
|
24545
|
+
translateLandingPage: { url: '/landing-pages/{landing_page_id}/translate', method: HTTP_METHODS.POST },
|
|
24540
24546
|
};
|
|
24541
24547
|
return TitlesRoute;
|
|
24542
24548
|
}());
|
|
@@ -25021,6 +25027,52 @@ var Titles = /** @class */ (function () {
|
|
|
25021
25027
|
Titles.retryAdConversionEvent = function (title_id, event_id) {
|
|
25022
25028
|
return Requests.processRoute(TitlesRoute.routes.retryAdConversionEvent, {}, { title_id: title_id, event_id: event_id });
|
|
25023
25029
|
};
|
|
25030
|
+
/**
|
|
25031
|
+
* List all landing pages for a specific title.
|
|
25032
|
+
* @param title_id The UUID of the title.
|
|
25033
|
+
* @param params Optional query parameters for pagination.
|
|
25034
|
+
*/
|
|
25035
|
+
Titles.listLandingPages = function (title_id, params) {
|
|
25036
|
+
return Requests.processRoute(TitlesRoute.routes.listLandingPages, {}, { title_id: title_id }, params);
|
|
25037
|
+
};
|
|
25038
|
+
/**
|
|
25039
|
+
* Create a new landing page for a title.
|
|
25040
|
+
* @param title_id The UUID of the title.
|
|
25041
|
+
* @param data The data for the new landing page.
|
|
25042
|
+
*/
|
|
25043
|
+
Titles.createLandingPage = function (title_id, data, params) {
|
|
25044
|
+
return Requests.processRoute(TitlesRoute.routes.createLandingPage, data, { title_id: title_id }, params);
|
|
25045
|
+
};
|
|
25046
|
+
/**
|
|
25047
|
+
* View a specific landing page by its ID.
|
|
25048
|
+
* @param landing_page_id The UUID of the landing page.
|
|
25049
|
+
*/
|
|
25050
|
+
Titles.viewLandingPage = function (landing_page_id, params) {
|
|
25051
|
+
return Requests.processRoute(TitlesRoute.routes.viewLandingPage, {}, { landing_page_id: landing_page_id }, params);
|
|
25052
|
+
};
|
|
25053
|
+
/**
|
|
25054
|
+
* Update an existing landing page.
|
|
25055
|
+
* @param landing_page_id The UUID of the landing page to update.
|
|
25056
|
+
* @param data The new data for the landing page.
|
|
25057
|
+
*/
|
|
25058
|
+
Titles.updateLandingPage = function (landing_page_id, data, params) {
|
|
25059
|
+
return Requests.processRoute(TitlesRoute.routes.updateLandingPage, data, { landing_page_id: landing_page_id }, params);
|
|
25060
|
+
};
|
|
25061
|
+
/**
|
|
25062
|
+
* Delete a landing page.
|
|
25063
|
+
* @param landing_page_id The UUID of the landing page to delete.
|
|
25064
|
+
*/
|
|
25065
|
+
Titles.deleteLandingPage = function (landing_page_id, params) {
|
|
25066
|
+
return Requests.processRoute(TitlesRoute.routes.deleteLandingPage, {}, { landing_page_id: landing_page_id }, params);
|
|
25067
|
+
};
|
|
25068
|
+
/**
|
|
25069
|
+
* Trigger an AI translation for a landing page.
|
|
25070
|
+
* @param landing_page_id The UUID of the landing page.
|
|
25071
|
+
* @param data An object containing the target language code, e.g., { language_code: 'es' }.
|
|
25072
|
+
*/
|
|
25073
|
+
Titles.translateLandingPage = function (landing_page_id, data, params) {
|
|
25074
|
+
return Requests.processRoute(TitlesRoute.routes.translateLandingPage, data, { landing_page_id: landing_page_id }, params);
|
|
25075
|
+
};
|
|
25024
25076
|
return Titles;
|
|
25025
25077
|
}());
|
|
25026
25078
|
|