diff --git a/CHANGELOG.md b/CHANGELOG.md index eef0783be..70e1e2d79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## [v2.42.0](https://github.com/auth0/node-auth0/tree/v2.42.0) (2022-05-23) + +[Full Changelog](https://github.com/auth0/node-auth0/compare/v2.41.0...v2.42.0) + +**Added** + +- chore: add branding theme routes [\#725](https://github.com/auth0/node-auth0/pull/725) ([alejofernandez](https://github.com/alejofernandez)) + ## [v2.41.0](https://github.com/auth0/node-auth0/tree/v2.41.0) (2022-05-20) [Full Changelog](https://github.com/auth0/node-auth0/compare/v2.40.0...v2.41.0) diff --git a/docs/ActionsManager.html b/docs/ActionsManager.html index a0705ac2e..65dcbaae8 100644 --- a/docs/ActionsManager.html +++ b/docs/ActionsManager.html @@ -24,7 +24,7 @@ @@ -4858,7 +4858,7 @@
Create a new theme.
+Name | + + +Type | + + +Attributes | + + + + +Description | +
---|---|---|---|
data |
+
+
+
+
+
+object
+
+
+
+ |
+
+
+ + + + + + + | + + + + +
+ theme data object. + + |
+
cb |
+
+
+
+
+
+function
+
+
+
+ |
+
+
+
+
+ <optional> + + + + + + |
+
+
+
+
+
+ Callback function. + + |
+
Promise
+|
+
+undefined
+
+
+ management.branding.createTheme(data, function (err, theme) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Theme created.
+ console.log(theme);
+});
+
+Delete a theme.
+Name | + + +Type | + + +Attributes | + + + + +Description | +||||||
---|---|---|---|---|---|---|---|---|---|
params |
+
+
+
+
+
+object
+
+
+
+ |
+
+
+ + + + + + + | + + + + +
+ Theme parameters. + + + +
|
+ ||||||
cb |
+
+
+
+
+
+function
+
+
+
+ |
+
+
+
+
+ <optional> + + + + + + |
+
+
+
+
+
+ Callback function. + + |
+
Promise
+|
+
+undefined
+
+
+ var params = { id: THEME_ID };
+
+management.branding.deleteTheme(params, function (err) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Theme deleted.
+});
+
+Delete the new universal login template (revert to default).
+Delete the new universal login template (revert to default).
+Name | + + +Type | + + +Attributes | + + + + +Description | +
---|---|---|---|
params |
+
+
+
+
+
+object
+
+
+
+ |
+
+
+ + + + + + + | + + + + +
+ Branding parameters (leavy empty). + + |
+
data |
+
+
+
+
+
+object
+
+
+
+ |
+
+
+ + + + + + + | + + + + +
+ Branding data (leave empty). + + |
+
cb |
+
+
+
+
+
+function
+
+
+
+ |
+
+
+
+
+ <optional> + + + + + + |
+
+
+
+
+
+ Callback function. + + |
+
Promise
+|
+
+undefined
+
+
+ management.branding.deleteUniversalLoginTemplate(data, function (err) {
+ if (err) {
+ // Handle error.
+ }
+});
+
+Get the default new universal login theme.
+Name | + + +Type | + + +Attributes | + + + + +Description | +
---|---|---|---|
cb |
+
+
+
+
+
+function
+
+
+
+ |
+
+
+
+
+ <optional> + + + + + + |
+
+
+
+
+
+ Callback function. + + |
+
Promise
+|
+
+undefined
+
+
+ management.branding.getDefaultTheme(function (err, theme) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Theme
+ console.log(theme);
+});
+
+Get the branding settings..
+Name | + + +Type | + + +Attributes | + + + + +Description | +
---|---|---|---|
params |
+
+
+
+
+
+object
+
+
+
+ |
+
+
+ + + + + + + | + + + + +
+ Branding parameters. + + |
+
data |
+
+
+
+
+
+object
+
+
+
+ |
+
+
+ + + + + + + | + + + + +
+ Branding data. + + |
+
cb |
+
+
+
+
+
+function
+
+
+
+ |
+
+
+
+
+ <optional> + + + + + + |
+
+
+
+
+
+ Callback function. + + |
+
Promise
+|
+
+undefined
+
+
+ management.branding.getSettings(data, function (err, branding) {
+ if (err) {
+ // Handle error.
+ }
+
+// Branding
+ console.log(branding);
+});
+
+Get the new universal login theme by id.
Branding parameters (leavy empty).
+Theme params
-Name | + + +Type | + + + + + +Description | +||
---|---|---|---|---|
data |
+ id |
@@ -479,19 +1674,19 @@ Parameters: |
- - - + + |
+ Theme identifier. - |
-
+
+
Branding data (leave empty).
management.branding.deleteUniversalLoginTemplate(data, function (err) {
+ var params = { id: THEME_ID };
+
+management.branding.getTheme(params, function (err, theme) {
if (err) {
// Handle error.
}
+
+ // Theme
+ console.log(theme);
});
Get the branding settings..
+Get the new universal login template.
Branding parameters.
+Branding parameters (leave empty).
Branding data.
+Branding data (leave empty).
management.branding.getSettings(data, function (err, branding) {
+ management.branding.getUniversalLoginTemplate(data, function (err, template) {
if (err) {
// Handle error.
}
// Branding
- console.log(branding);
+ console.log(template);
});
Get the new universal login template.
+Set the new universal login template.
Branding parameters (leave empty).
+Branding parameters (leavy empty).
Branding data (leave empty).
+Branding data (object with template field).
management.branding.getUniversalLoginTemplate(data, function (err, template) {
+ management.branding.setUniversalLoginTemplate(params, data, function (err) {
if (err) {
// Handle error.
}
-
-// Branding
- console.log(template);
});
Set the new universal login template.
+Update the branding settings.
Branding data (object with template field).
+Updated branding data.
management.branding.setUniversalLoginTemplate(params, data, function (err) {
+ management.branding.updateSettings(params, data, function (err, branding) {
if (err) {
// Handle error.
}
+
+// Updated branding
+ console.log(branding);
});
Update the branding settings.
+Update a theme.
Branding parameters (leavy empty).
+Theme parameters.
+ + + +Name | + + +Type | + + + + + +Description | +
---|---|---|
id |
+
+
+
+
+
+object
+
+
+
+ |
+
+
+
+
+
+
+ Theme identifier. + + |
+
Updated branding data.
+Updated theme data.
management.branding.updateSettings(params, data, function (err, branding) {
+ var data = THEME_OBJ;
+var params = { id: THEME_ID };
+
+management.branding.updateTheme(params, data, function (err, theme) {
if (err) {
// Handle error.
}
-// Updated branding
- console.log(branding);
+ // Theme updated.
+ console.log(theme);
});