sumba 2.37.0 → 2.38.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/docs/Sumba.html +1 -1
- package/docs/data/search.json +1 -1
- package/docs/index.js.html +229 -243
- package/extend/waibuMpa/route/your-stuff/download/get.js +2 -2
- package/index.js +225 -239
- package/package.json +1 -1
- package/wiki/CHANGES.md +5 -0
package/docs/data/search.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"list":[{"title":"Sumba","link":"<a href=\"Sumba.html\">Sumba</a>","description":"<p>Constructor</p>"},{"title":"Sumba#adminMenu","link":"<a href=\"Sumba.html#adminMenu\">adminMenu</a>","description":"<p>Build admin menu based on locals and request.</p>\n<ul>\n<li>If multi-site is enabled, it will include the cross-site menu with options to manage all sites and site settings.</li>\n<li>If caching is enabled, it will include the cache storage menu in the appropriate section.</li>\n<li>Session management menu is also included in the appropriate section.</li>\n</ul>"},{"title":"Sumba#applyActionHook","link":"<a href=\"Sumba.html#applyActionHook\">applyActionHook</a>","description":"<p>Apply action hook to the provided model.</p>"},{"title":"Sumba#applyQueryHook","link":"<a href=\"Sumba.html#applyQueryHook\">applyQueryHook</a>","description":"<p>Apply query hook to the provided model.</p>"},{"title":"Sumba#checkIconset","link":"<a href=\"Sumba.html#checkIconset\">checkIconset</a>","description":"<p>Check and set the iconset for a request.</p>"},{"title":"Sumba#checkRoute","link":"<a href=\"Sumba.html#checkRoute\">checkRoute</a>","description":"<p>Check the route for a request.</p>"},{"title":"Sumba#checkRouteGuard","link":"<a href=\"Sumba.html#checkRouteGuard\">checkRouteGuard</a>","description":"<p>Check route guard</p>"},{"title":"Sumba#checkTeam","link":"<a href=\"Sumba.html#checkTeam\">checkTeam</a>","description":"<p>Check and set the team for a request.</p>"},{"title":"Sumba#checkTheme","link":"<a href=\"Sumba.html#checkTheme\">checkTheme</a>","description":"<p>Check and set the theme for a request.</p>"},{"title":"Sumba#checkUser","link":"<a href=\"Sumba.html#checkUser\">checkUser</a>","description":"<p>Check and set the user for a request.</p>"},{"title":"Sumba#checkXSite","link":"<a href=\"Sumba.html#checkXSite\">checkXSite</a>","description":"<p>Check and set the Cross-site settings for a request.</p>"},{"title":"Sumba#clearCacheSite","link":"<a href=\"Sumba.html#clearCacheSite\">clearCacheSite</a>","description":"<p>Clear the cache for a specific site.</p>"},{"title":"Sumba#clearCacheUser","link":"<a href=\"Sumba.html#clearCacheUser\">clearCacheUser</a>","description":"<p>Clear the cache for a specific user.</p>"},{"title":"Sumba#createJwtFromUserRecord","link":"<a href=\"Sumba.html#createJwtFromUserRecord\">createJwtFromUserRecord</a>","description":"<p>Create JWT from user record</p>"},{"title":"Sumba#createNewSite","link":"<a href=\"Sumba.html#createNewSite\">createNewSite</a>","description":"<p>Create a new site with the specified alias and optional hostname, using fixtures for initial data.</p>"},{"title":"Sumba#createRefs","link":"<a href=\"Sumba.html#createRefs\">createRefs</a>","description":"<p>Create references for the specified site using the provided data, options, and verbosity settings.</p>"},{"title":"Sumba#filterModelFromSetting","link":"<a href=\"Sumba.html#filterModelFromSetting\">filterModelFromSetting</a>","description":"<p>Filter model data based on settings.</p>"},{"title":"Sumba#generatePassword","link":"<a href=\"Sumba.html#generatePassword\">generatePassword</a>","description":"<p>Generate a random password based on the configuration settings</p>"},{"title":"Sumba#getActionGuards","link":"<a href=\"Sumba.html#getActionGuards\">getActionGuards</a>","description":"<p>Get action guards, optionally reloading them from the database.</p>"},{"title":"Sumba#getAllFixtures","link":"<a href=\"Sumba.html#getAllFixtures\">getAllFixtures</a>","description":"<p>Get all fixtures for the specified alias, replacing any occurrences of '{alias}' in the fixture data with the provided alias.</p>"},{"title":"Sumba#getAnonymousGuards","link":"<a href=\"Sumba.html#getAnonymousGuards\">getAnonymousGuards</a>","description":"<p>Get anonymous guards, optionally reloading them from the database.</p>"},{"title":"Sumba#getApiKeyFromUserId","link":"<a href=\"Sumba.html#getApiKeyFromUserId\">getApiKeyFromUserId</a>","description":"<p>Get API key from user ID by hashing the user's salt</p>"},{"title":"Sumba#getAttribGuards","link":"<a href=\"Sumba.html#getAttribGuards\">getAttribGuards</a>","description":"<p>Get attribute guards, optionally reloading them from the database.</p>"},{"title":"Sumba#getCountriesValues","link":"<a href=\"Sumba.html#getCountriesValues\">getCountriesValues</a>","description":"<p>Get a list of countries with their values and names</p>"},{"title":"Sumba#getModelNames","link":"<a href=\"Sumba.html#getModelNames\">getModelNames</a>","description":"<p>Get all loaded model names, optionally returning them as value-text pairs.</p>"},{"title":"Sumba#getQueryGuards","link":"<a href=\"Sumba.html#getQueryGuards\">getQueryGuards</a>","description":"<p>Get query guards, optionally reloading them from the database.</p>"},{"title":"Sumba#getSecureGuards","link":"<a href=\"Sumba.html#getSecureGuards\">getSecureGuards</a>","description":"<p>Get secure guards, optionally reloading them from the database.</p>"},{"title":"Sumba#getSite","link":"<a href=\"Sumba.html#getSite\">getSite</a>","description":"<p>Get site information based on the provided input, which can be either a hostname or an ID. If multi-site is enabled, it will fetch the site based on the hostname or ID; otherwise, it will return the default site.</p>"},{"title":"Sumba#getTeamIdsAndAliases","link":"<a href=\"Sumba.html#getTeamIdsAndAliases\">getTeamIdsAndAliases</a>","description":"<p>Get the team IDs and aliases for the user in the request.</p>"},{"title":"Sumba#getUserById","link":"<a href=\"Sumba.html#getUserById\">getUserById</a>","description":"<p>Get a user by their ID.</p>"},{"title":"Sumba#getUserByToken","link":"<a href=\"Sumba.html#getUserByToken\">getUserByToken</a>","description":"<p>Get a user by their token.</p>"},{"title":"Sumba#hash","link":"<a href=\"Sumba.html#hash\">hash</a>","description":"<p>Hash the given item using the specified algorithm from the configuration.</p>"},{"title":"Sumba#init","link":"<a href=\"Sumba.html#init\">init</a>","description":"<p>Plugin initialization method. This method is called by the {@link https://ardhi.github.io/bajo|Bajo framework} during plugin initialization.</p>"},{"title":"Sumba#isActionAllowed","link":"<a href=\"Sumba.html#isActionAllowed\">isActionAllowed</a>","description":"<p>Check if the specified action is allowed for the given model and request. It retrieves the action guards, filters them based on the site ID, model name, and team IDs, and checks if the action is included in the allowed values. If any guard denies the action, it returns false; otherwise, it returns true.</p>"},{"title":"Sumba#mergeTeam","link":"<a href=\"Sumba.html#mergeTeam\">mergeTeam</a>","description":"<p>Merge team information into the user object.</p>"},{"title":"Sumba#parseNsSettings","link":"<a href=\"Sumba.html#parseNsSettings\">parseNsSettings</a>","description":"<p>Parse namespace settings for a request.</p>"},{"title":"Sumba#passwordRule","link":"<a href=\"Sumba.html#passwordRule\">passwordRule</a>","description":"<p>Generate a password validation rule based on the configuration settings.</p>"},{"title":"Sumba#pathsToCheck","link":"<a href=\"Sumba.html#pathsToCheck\">pathsToCheck</a>","description":"<p>Gather all paths to check for a request.</p>"},{"title":"Sumba#populateRouteGuards","link":"<a href=\"Sumba.html#populateRouteGuards\">populateRouteGuards</a>","description":"<p>Populate route guards at start</p>"},{"title":"Sumba#rebuildFilter","link":"<a href=\"Sumba.html#rebuildFilter\">rebuildFilter</a>","description":"<p>Rebuild the filter for the provided model.</p>"},{"title":"Sumba#removeRefs","link":"<a href=\"Sumba.html#removeRefs\">removeRefs</a>","description":"<p>Remove references for the specified site using the provided options and verbosity settings.</p>"},{"title":"Sumba#removeSite","link":"<a href=\"Sumba.html#removeSite\">removeSite</a>","description":"<p>Remove a site with the specified alias, along with its references, using the provided verbosity settings.</p>"},{"title":"Sumba#resetToken","link":"<a href=\"Sumba.html#resetToken\">resetToken</a>","description":"<p>Reset token by generating a new salt and hashing it twice to create a new token.</p>"},{"title":"Sumba#runAttribGuard","link":"<a href=\"Sumba.html#runAttribGuard\">runAttribGuard</a>","description":"<p>Apply attribute guards to the provided model.</p>"},{"title":"Sumba#runQueryGuard","link":"<a href=\"Sumba.html#runQueryGuard\">runQueryGuard</a>","description":"<p>Apply query guards to the provided query.</p>"},{"title":"Sumba#sendMail","link":"<a href=\"Sumba.html#sendMail\">sendMail</a>","description":"<p>Method to send mail through Masohi Messaging System. It is a thin wrapper\nfor {@link https://github.com/ardhi/masohi-mail|masohi-mail} send method.</p>\n<p>If both masohiMail and waibu are not loaded, nothing is delivered.</p>"},{"title":"Sumba#signin","link":"<a href=\"Sumba.html#signin\">signin</a>","description":"<p>Sign in user and redirect to the specified URL</p>"},{"title":"Sumba#signout","link":"<a href=\"Sumba.html#signout\">signout</a>","description":"<p>Sign out user and redirect to the specified URL</p>"},{"title":"Sumba#start","link":"<a href=\"Sumba.html#start\">start</a>","description":"<p>Plugin start method. This method is called by the {@link https://ardhi.github.io/bajo|Bajo framework} during plugin start.</p>"},{"title":"Sumba#verifyApiKey","link":"<a href=\"Sumba.html#verifyApiKey\">verifyApiKey</a>","description":"<p>Verify API key</p>"},{"title":"Sumba#verifyBasic","link":"<a href=\"Sumba.html#verifyBasic\">verifyBasic</a>","description":"<p>Verify basic authentication</p>"},{"title":"Sumba#verifyJwt","link":"<a href=\"Sumba.html#verifyJwt\">verifyJwt</a>","description":"<p>Verify JWT authentication</p>"},{"title":"Sumba#verifySession","link":"<a href=\"Sumba.html#verifySession\">verifySession</a>","description":"<p>Verify user session</p>"},{"title":"TConfig","link":"<a href=\"global.html#TConfig\">TConfig</a>","description":"<p>Sumba configuration object</p>"},{"title":"TTokenBody","link":"<a href=\"global.html#TTokenBody\">TTokenBody</a>"},{"title":"TTokenData","link":"<a href=\"global.html#TTokenData\">TTokenData</a>"},{"title":"factory","link":"<a href=\"global.html#factory\">factory</a>","description":"<p>Plugin factory.</p>\n<p><strong>Never</strong> call this function directly!!! It's only-meant to be called by the {@link https://ardhi.github.io/bajo|Bajo framework} during plugin initialization.</p>"}]}
|
|
1
|
+
{"list":[{"title":"Sumba","link":"<a href=\"Sumba.html\">Sumba</a>","description":"<p>Constructor</p>"},{"title":"Sumba#_getAuthSetting","link":"<a href=\"Sumba.html#_getAuthSetting\">_getAuthSetting</a>","description":"<p>Get authentication setting based on type and source</p>"},{"title":"Sumba#_getAuthToken","link":"<a href=\"Sumba.html#_getAuthToken\">_getAuthToken</a>","description":"<p>Get authentication token based on type, request, and source</p>"},{"title":"Sumba#actionGuards","link":"<a href=\"Sumba.html#actionGuards\">actionGuards</a>","description":"<p>Action guards container</p>"},{"title":"Sumba#adminMenu","link":"<a href=\"Sumba.html#adminMenu\">adminMenu</a>","description":"<p>Build admin menu based on locals and request.</p>\n<ul>\n<li>If multi-site is enabled, it will include the cross-site menu with options to manage all sites and site settings</li>\n<li>If caching is enabled, it will include the cache storage menu in the appropriate section</li>\n<li>Session management menu is also included in the appropriate section.</li>\n</ul>"},{"title":"Sumba#anonymousGuards","link":"<a href=\"Sumba.html#anonymousGuards\">anonymousGuards</a>","description":"<p>Anonymous guards container</p>"},{"title":"Sumba#applyActionHook","link":"<a href=\"Sumba.html#applyActionHook\">applyActionHook</a>","description":"<p>Apply action hook to the provided model.</p>"},{"title":"Sumba#applyQueryHook","link":"<a href=\"Sumba.html#applyQueryHook\">applyQueryHook</a>","description":"<p>Apply query hook to the provided model.</p>"},{"title":"Sumba#attribGuards","link":"<a href=\"Sumba.html#attribGuards\">attribGuards</a>","description":"<p>Attribute guards container</p>"},{"title":"Sumba#checkIconset","link":"<a href=\"Sumba.html#checkIconset\">checkIconset</a>","description":"<p>Check and set the iconset for a request</p>"},{"title":"Sumba#checkRoute","link":"<a href=\"Sumba.html#checkRoute\">checkRoute</a>","description":"<p>Check the route for a request</p>"},{"title":"Sumba#checkRouteGuard","link":"<a href=\"Sumba.html#checkRouteGuard\">checkRouteGuard</a>","description":"<p>Check route guard</p>"},{"title":"Sumba#checkTeam","link":"<a href=\"Sumba.html#checkTeam\">checkTeam</a>","description":"<p>Check and set the team for a request</p>"},{"title":"Sumba#checkTheme","link":"<a href=\"Sumba.html#checkTheme\">checkTheme</a>","description":"<p>Check and set the theme for a request</p>"},{"title":"Sumba#checkUser","link":"<a href=\"Sumba.html#checkUser\">checkUser</a>","description":"<p>Check and set the user for a request</p>"},{"title":"Sumba#checkXSite","link":"<a href=\"Sumba.html#checkXSite\">checkXSite</a>","description":"<p>Check and set the Cross-site settings for a request</p>"},{"title":"Sumba#clearCacheSite","link":"<a href=\"Sumba.html#clearCacheSite\">clearCacheSite</a>","description":"<p>Clear the cache for a specific site.</p>"},{"title":"Sumba#clearCacheUser","link":"<a href=\"Sumba.html#clearCacheUser\">clearCacheUser</a>","description":"<p>Clear the cache for a specific user.</p>"},{"title":"Sumba#config","link":"<a href=\"Sumba.html#config\">config</a>","description":"<p>Configuration object</p>"},{"title":"Sumba#createJwtFromUserRecord","link":"<a href=\"Sumba.html#createJwtFromUserRecord\">createJwtFromUserRecord</a>","description":"<p>Create JWT from user record</p>"},{"title":"Sumba#createNewSite","link":"<a href=\"Sumba.html#createNewSite\">createNewSite</a>","description":"<p>Create a new site with the specified alias and optional hostname, using fixtures for initial data.</p>"},{"title":"Sumba#createRefs","link":"<a href=\"Sumba.html#createRefs\">createRefs</a>","description":"<p>Create references for the specified site using the provided data, options, and verbosity settings.</p>"},{"title":"Sumba#downloadDir","link":"<a href=\"Sumba.html#downloadDir\">downloadDir</a>","description":"<p>Download directory path for storing exported files.</p>"},{"title":"Sumba#filterModelFromSetting","link":"<a href=\"Sumba.html#filterModelFromSetting\">filterModelFromSetting</a>","description":"<p>Filter model data based on settings.</p>"},{"title":"Sumba#generatePassword","link":"<a href=\"Sumba.html#generatePassword\">generatePassword</a>","description":"<p>Generate a random password based on the configuration settings</p>"},{"title":"Sumba#getActionGuards","link":"<a href=\"Sumba.html#getActionGuards\">getActionGuards</a>","description":"<p>Get action guards, optionally reloading them from the database</p>"},{"title":"Sumba#getAllFixtures","link":"<a href=\"Sumba.html#getAllFixtures\">getAllFixtures</a>","description":"<p>Get all fixtures for the specified alias, replacing any occurrences of '{alias}' in the fixture data with the provided alias</p>"},{"title":"Sumba#getAnonymousGuards","link":"<a href=\"Sumba.html#getAnonymousGuards\">getAnonymousGuards</a>","description":"<p>Get anonymous guards, optionally reloading them from the database</p>"},{"title":"Sumba#getApiKeyFromUserId","link":"<a href=\"Sumba.html#getApiKeyFromUserId\">getApiKeyFromUserId</a>","description":"<p>Get API key from user ID by hashing the user's salt</p>"},{"title":"Sumba#getAttribGuards","link":"<a href=\"Sumba.html#getAttribGuards\">getAttribGuards</a>","description":"<p>Get attribute guards, optionally reloading them from the database</p>"},{"title":"Sumba#getCountriesValues","link":"<a href=\"Sumba.html#getCountriesValues\">getCountriesValues</a>","description":"<p>Get a list of countries with their values and names</p>"},{"title":"Sumba#getModelNames","link":"<a href=\"Sumba.html#getModelNames\">getModelNames</a>","description":"<p>Get all loaded model names, optionally returning them as value-text pairs</p>"},{"title":"Sumba#getQueryGuards","link":"<a href=\"Sumba.html#getQueryGuards\">getQueryGuards</a>","description":"<p>Get query guards, optionally reloading them from the database</p>"},{"title":"Sumba#getSecureGuards","link":"<a href=\"Sumba.html#getSecureGuards\">getSecureGuards</a>","description":"<p>Get secure guards, optionally reloading them from the database</p>"},{"title":"Sumba#getSite","link":"<a href=\"Sumba.html#getSite\">getSite</a>","description":"<p>Get site information based on the provided input, which can be either a hostname or an ID. If multi-site is enabled, it will fetch the site based on the hostname or ID; otherwise, it will return the default site.</p>"},{"title":"Sumba#getTeamIdsAndAliases","link":"<a href=\"Sumba.html#getTeamIdsAndAliases\">getTeamIdsAndAliases</a>","description":"<p>Get the team IDs and aliases for the user in the request.</p>"},{"title":"Sumba#getUserById","link":"<a href=\"Sumba.html#getUserById\">getUserById</a>","description":"<p>Get a user by their ID.</p>"},{"title":"Sumba#getUserByToken","link":"<a href=\"Sumba.html#getUserByToken\">getUserByToken</a>","description":"<p>Get a user by their token.</p>"},{"title":"Sumba#hash","link":"<a href=\"Sumba.html#hash\">hash</a>","description":"<p>Hash the given item using the specified algorithm from the configuration</p>"},{"title":"Sumba#init","link":"<a href=\"Sumba.html#init\">init</a>","description":"<p>Plugin initialization method</p>"},{"title":"Sumba#isActionAllowed","link":"<a href=\"Sumba.html#isActionAllowed\">isActionAllowed</a>","description":"<p>Check if the specified action is allowed for the given model and request. It retrieves the action guards, filters them based on the site ID, model name, and team IDs, and checks if the action is included in the allowed values. If any guard denies the action, it returns false; otherwise, it returns true.</p>"},{"title":"Sumba#mergeTeam","link":"<a href=\"Sumba.html#mergeTeam\">mergeTeam</a>","description":"<p>Merge team information into the user object</p>"},{"title":"Sumba#parseNsSettings","link":"<a href=\"Sumba.html#parseNsSettings\">parseNsSettings</a>","description":"<p>Parse namespace settings for a request</p>"},{"title":"Sumba#passwordRule","link":"<a href=\"Sumba.html#passwordRule\">passwordRule</a>","description":"<p>Generate a password validation rule based on the configuration settings</p>"},{"title":"Sumba#pathsToCheck","link":"<a href=\"Sumba.html#pathsToCheck\">pathsToCheck</a>","description":"<p>Gather all paths to check for a request</p>"},{"title":"Sumba#populateRouteGuards","link":"<a href=\"Sumba.html#populateRouteGuards\">populateRouteGuards</a>","description":"<p>Populate route guards at start</p>"},{"title":"Sumba#queryGuards","link":"<a href=\"Sumba.html#queryGuards\">queryGuards</a>","description":"<p>Query guards container</p>"},{"title":"Sumba#rebuildFilter","link":"<a href=\"Sumba.html#rebuildFilter\">rebuildFilter</a>","description":"<p>Rebuild the filter for the provided model.</p>"},{"title":"Sumba#removeRefs","link":"<a href=\"Sumba.html#removeRefs\">removeRefs</a>","description":"<p>Remove references for the specified site using the provided options and verbosity settings.</p>"},{"title":"Sumba#removeSite","link":"<a href=\"Sumba.html#removeSite\">removeSite</a>","description":"<p>Remove a site with the specified alias, along with its references, using the provided verbosity settings.</p>"},{"title":"Sumba#resetToken","link":"<a href=\"Sumba.html#resetToken\">resetToken</a>","description":"<p>Reset token by generating a new salt and hashing it twice to create a new token</p>"},{"title":"Sumba#runAttribGuard","link":"<a href=\"Sumba.html#runAttribGuard\">runAttribGuard</a>","description":"<p>Apply attribute guards to the provided model.</p>"},{"title":"Sumba#runQueryGuard","link":"<a href=\"Sumba.html#runQueryGuard\">runQueryGuard</a>","description":"<p>Apply query guards to the provided query.</p>"},{"title":"Sumba#secureGuards","link":"<a href=\"Sumba.html#secureGuards\">secureGuards</a>","description":"<p>Secure guards containers</p>"},{"title":"Sumba#sendMail","link":"<a href=\"Sumba.html#sendMail\">sendMail</a>","description":"<p>Method to send mail through Masohi Messaging System. It is a thin wrapper\nfor {@link https://github.com/ardhi/masohi-mail|masohi-mail} send method</p>\n<p>If both masohiMail and waibu are not loaded, nothing is delivered</p>"},{"title":"Sumba#signin","link":"<a href=\"Sumba.html#signin\">signin</a>","description":"<p>Sign in user and redirect to the specified URL</p>"},{"title":"Sumba#signout","link":"<a href=\"Sumba.html#signout\">signout</a>","description":"<p>Sign out user and redirect to the specified URL</p>"},{"title":"Sumba#start","link":"<a href=\"Sumba.html#start\">start</a>","description":"<p>Plugin start method</p>"},{"title":"Sumba#unsafeUserFields","link":"<a href=\"Sumba.html#unsafeUserFields\">unsafeUserFields</a>","description":"<p>Unsafe user fields that should not be exposed or returned in API responses.</p>"},{"title":"Sumba#verifyApiKey","link":"<a href=\"Sumba.html#verifyApiKey\">verifyApiKey</a>","description":"<p>Verify API key</p>"},{"title":"Sumba#verifyBasic","link":"<a href=\"Sumba.html#verifyBasic\">verifyBasic</a>","description":"<p>Verify basic authentication</p>"},{"title":"Sumba#verifyJwt","link":"<a href=\"Sumba.html#verifyJwt\">verifyJwt</a>","description":"<p>Verify JWT authentication</p>"},{"title":"Sumba#verifySession","link":"<a href=\"Sumba.html#verifySession\">verifySession</a>","description":"<p>Verify user session</p>"},{"title":"TConfig","link":"<a href=\"global.html#TConfig\">TConfig</a>","description":"<p>Sumba configuration object</p>"},{"title":"TTokenBody","link":"<a href=\"global.html#TTokenBody\">TTokenBody</a>"},{"title":"TTokenData","link":"<a href=\"global.html#TTokenData\">TTokenData</a>"},{"title":"factory","link":"<a href=\"global.html#factory\">factory</a>","description":"<p>Plugin factory.</p>\n<p><strong>Never</strong> call this function directly!!! It's only-meant to be called by the {@link https://ardhi.github.io/bajo|Bajo framework} during plugin initialization.</p>"}]}
|