glitch-javascript-sdk 2.2.1 → 2.2.2
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 +18 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +16 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +16 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +17 -0
- package/src/routes/CommunitiesRoute.ts +1 -0
- package/src/routes/TitlesRoute.ts +3 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24543,6 +24543,8 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24543
24543
|
updateLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.PUT },
|
|
24544
24544
|
deleteLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.DELETE },
|
|
24545
24545
|
translateLandingPage: { url: '/landing-pages/{landing_page_id}/translate', method: HTTP_METHODS.POST },
|
|
24546
|
+
generateLandingPageAiContent: { url: '/landing-pages/{landing_page_id}/generate-ai-content', method: HTTP_METHODS.POST },
|
|
24547
|
+
saveLandingPageTranslation: { url: '/landing-pages/{landing_page_id}/translations', method: HTTP_METHODS.POST },
|
|
24546
24548
|
};
|
|
24547
24549
|
return TitlesRoute;
|
|
24548
24550
|
}());
|
|
@@ -25073,6 +25075,22 @@ var Titles = /** @class */ (function () {
|
|
|
25073
25075
|
Titles.translateLandingPage = function (landing_page_id, data, params) {
|
|
25074
25076
|
return Requests.processRoute(TitlesRoute.routes.translateLandingPage, data, { landing_page_id: landing_page_id }, params);
|
|
25075
25077
|
};
|
|
25078
|
+
/**
|
|
25079
|
+
* Generate or regenerate AI-powered HTML content for a landing page.
|
|
25080
|
+
* @param landing_page_id The UUID of the landing page.
|
|
25081
|
+
* @param data An object containing the prompt, language_code, and privacy_mode.
|
|
25082
|
+
*/
|
|
25083
|
+
Titles.generateLandingPageAiContent = function (landing_page_id, data, params) {
|
|
25084
|
+
return Requests.processRoute(TitlesRoute.routes.generateLandingPageAiContent, data, { landing_page_id: landing_page_id }, params);
|
|
25085
|
+
};
|
|
25086
|
+
/**
|
|
25087
|
+
* Create or update a specific translation for a landing page.
|
|
25088
|
+
* @param landing_page_id The UUID of the landing page.
|
|
25089
|
+
* @param translationData The full translation object to be saved.
|
|
25090
|
+
*/
|
|
25091
|
+
Titles.saveLandingPageTranslation = function (landing_page_id, translationData, params) {
|
|
25092
|
+
return Requests.processRoute(TitlesRoute.routes.saveLandingPageTranslation, translationData, { landing_page_id: landing_page_id }, params);
|
|
25093
|
+
};
|
|
25076
25094
|
return Titles;
|
|
25077
25095
|
}());
|
|
25078
25096
|
|