sumba 2.34.4 → 2.35.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.
Files changed (31) hide show
  1. package/docs/Sumba.html +1 -1
  2. package/docs/data/search.json +1 -1
  3. package/docs/global.html +1 -1
  4. package/docs/index.html +1 -1
  5. package/docs/index.js.html +1564 -233
  6. package/docs/lib_constant.js.html +98 -0
  7. package/docs/lib_token-schema.js.html +47 -0
  8. package/extend/bajo/hook.js +27 -192
  9. package/extend/bajo/intl/en-US.json +12 -12
  10. package/extend/bajo/intl/id.json +13 -13
  11. package/extend/dobo/model.js +27 -1
  12. package/extend/waibuDb/schema/model-guard.js +2 -2
  13. package/extend/waibuMpa/extend/waibuAdmin/route/action-guard/@action.js +11 -0
  14. package/extend/waibuMpa/extend/waibuAdmin/route/{model-guard → query-guard}/@action.js +2 -2
  15. package/extend/waibuMpa/extend/waibuAdmin/route/team/@action.js +1 -1
  16. package/extend/waibuMpa/extend/waibuAdmin/route/team-setting/@action.js +1 -1
  17. package/extend/waibuMpa/extend/waibuAdmin/route/team-user/@action.js +1 -1
  18. package/extend/waibuMpa/extend/waibuAdmin/route/user/@action.js +1 -1
  19. package/extend/waibuMpa/extend/waibuAdmin/route/user-setting/@action.js +1 -1
  20. package/extend/waibuRestApi/route/user/access-token/@type/create.js +1 -1
  21. package/extend/waibuRestApi/route/user/api-key/get.js +1 -1
  22. package/extend/waibuRestApi/route/your-stuff/api-key/update.js +1 -1
  23. package/index.js +1061 -45
  24. package/lib/constant.js +95 -0
  25. package/package.json +9 -3
  26. package/wiki/CHANGES.md +6 -0
  27. package/lib/create-new-site.js +0 -106
  28. package/lib/get-site.js +0 -70
  29. package/lib/get-user.js +0 -89
  30. package/lib/remove-site.js +0 -39
  31. package/lib/token-schema.js +0 -29
@@ -1,4 +1,4 @@
1
- async function modelGuard () {
1
+ async function queryGuard () {
2
2
  return {
3
3
  common: {
4
4
  widget: {
@@ -12,4 +12,4 @@ async function modelGuard () {
12
12
  }
13
13
  }
14
14
 
15
- export default modelGuard
15
+ export default queryGuard
@@ -0,0 +1,11 @@
1
+ const action = {
2
+ method: ['GET', 'POST'],
3
+ title: 'actionGuard',
4
+ handler: async function (req, reply) {
5
+ const { importModule } = this.app.bajo
6
+ const crudSkel = await importModule('waibuAdmin:/lib/crud-skel.js')
7
+ return await crudSkel.call(this, 'SumbaActionGuard', req, reply)
8
+ }
9
+ }
10
+
11
+ export default action
@@ -1,10 +1,10 @@
1
1
  const action = {
2
2
  method: ['GET', 'POST'],
3
- title: 'modelGuard',
3
+ title: 'queryGuard',
4
4
  handler: async function (req, reply) {
5
5
  const { importModule } = this.app.bajo
6
6
  const crudSkel = await importModule('waibuAdmin:/lib/crud-skel.js')
7
- return await crudSkel.call(this, 'SumbaModelGuard', req, reply)
7
+ return await crudSkel.call(this, 'SumbaQueryGuard', req, reply)
8
8
  }
9
9
  }
10
10
 
@@ -1,6 +1,6 @@
1
1
  const action = {
2
2
  method: ['GET', 'POST'],
3
- title: 'teamProfile',
3
+ title: 'manageTeam',
4
4
  handler: async function (req, reply) {
5
5
  const { importModule } = this.app.bajo
6
6
  const crudSkel = await importModule('waibuAdmin:/lib/crud-skel.js')
@@ -1,6 +1,6 @@
1
1
  const action = {
2
2
  method: ['GET', 'POST'],
3
- title: 'teamSetting',
3
+ title: 'manageTeamSetting',
4
4
  handler: async function (req, reply) {
5
5
  const { importModule } = this.app.bajo
6
6
  const crudSkel = await importModule('waibuAdmin:/lib/crud-skel.js')
@@ -1,6 +1,6 @@
1
1
  const action = {
2
2
  method: ['GET', 'POST'],
3
- title: 'teamUser',
3
+ title: 'manageTeamUser',
4
4
  handler: async function (req, reply) {
5
5
  const { importModule } = this.app.bajo
6
6
  const crudSkel = await importModule('waibuAdmin:/lib/crud-skel.js')
@@ -1,6 +1,6 @@
1
1
  const action = {
2
2
  method: ['GET', 'POST'],
3
- title: 'userProfile',
3
+ title: 'manageUser',
4
4
  handler: async function (req, reply) {
5
5
  const { importModule } = this.app.bajo
6
6
  const crudSkel = await importModule('waibuAdmin:/lib/crud-skel.js')
@@ -1,6 +1,6 @@
1
1
  const action = {
2
2
  method: ['GET', 'POST'],
3
- title: 'userSetting',
3
+ title: 'manageUserSetting',
4
4
  handler: async function (req, reply) {
5
5
  const { importModule } = this.app.bajo
6
6
  const crudSkel = await importModule('waibuAdmin:/lib/crud-skel.js')
@@ -1,4 +1,4 @@
1
- import { data, body } from '../../../../../../lib/token-schema.js'
1
+ import { data, body } from '../../../../../../lib/constant.js'
2
2
 
3
3
  async function create () {
4
4
  const schema = {
@@ -1,4 +1,4 @@
1
- import { data } from '../../../../../lib/token-schema.js'
1
+ import { data } from '../../../../../lib/constant.js'
2
2
 
3
3
  async function get () {
4
4
  const schema = {
@@ -1,4 +1,4 @@
1
- import { data } from '../../../../../lib/token-schema.js'
1
+ import { data } from '../../../../../lib/constant.js'
2
2
 
3
3
  export function response () {
4
4
  return {