sumba 2.46.2 → 2.47.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/.github/FUNDING.yml +0 -0
- package/.github/workflows/repo-lockdown.yml +0 -0
- package/.jsdoc.conf.json +0 -0
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/docs/Sumba.html +0 -0
- package/docs/data/search.json +0 -0
- package/docs/fonts/Inconsolata-Regular.ttf +0 -0
- package/docs/fonts/OpenSans-Regular.ttf +0 -0
- package/docs/fonts/WorkSans-Bold.ttf +0 -0
- package/docs/global.html +0 -0
- package/docs/index.html +0 -0
- package/docs/index.js.html +0 -0
- package/docs/lib_config.js.html +0 -0
- package/docs/lib_constant.js.html +0 -0
- package/docs/lib_token-schema.js.html +0 -0
- package/docs/scripts/core.js +0 -0
- package/docs/scripts/core.min.js +0 -0
- package/docs/scripts/resize.js +0 -0
- package/docs/scripts/search.js +0 -0
- package/docs/scripts/search.min.js +5 -5
- package/docs/scripts/third-party/Apache-License-2.0.txt +0 -0
- package/docs/scripts/third-party/fuse.js +0 -0
- package/docs/scripts/third-party/hljs-line-num-original.js +0 -0
- package/docs/scripts/third-party/hljs-line-num.js +0 -0
- package/docs/scripts/third-party/hljs-original.js +0 -0
- package/docs/scripts/third-party/hljs.js +0 -0
- package/docs/scripts/third-party/popper.js +0 -0
- package/docs/scripts/third-party/tippy.js +0 -0
- package/docs/scripts/third-party/tocbot.js +0 -0
- package/docs/scripts/third-party/tocbot.min.js +0 -0
- package/docs/static/bitcoin.jpeg +0 -0
- package/docs/static/home.md +0 -0
- package/docs/static/logo-ecosystem.png +0 -0
- package/docs/static/logo.png +0 -0
- package/docs/styles/clean-jsdoc-theme-base.css +0 -0
- package/docs/styles/clean-jsdoc-theme-dark.css +0 -0
- package/docs/styles/clean-jsdoc-theme-light.css +0 -0
- package/docs/styles/clean-jsdoc-theme-scrollbar.css +0 -0
- package/docs/styles/clean-jsdoc-theme-without-scrollbar.min.css +0 -0
- package/docs/styles/clean-jsdoc-theme.min.css +0 -0
- package/extend/bajo/hook.js +300 -300
- package/extend/bajo/intl/en-US.json +0 -0
- package/extend/bajo/intl/id.json +0 -0
- package/extend/bajoCli/applet/create-new-site.js +21 -21
- package/extend/bajoCli/applet/populate-model-with-site.js +54 -54
- package/extend/bajoCli/applet/remove-site.js +20 -20
- package/extend/bajoCli/applet.js +0 -0
- package/extend/bajoTemplate/layout/centered.html +0 -0
- package/extend/bajoTemplate/layout/default.html +0 -0
- package/extend/bajoTemplate/layout/email.html +0 -0
- package/extend/bajoTemplate/layout/email.id.html +0 -0
- package/extend/bajoTemplate/layout/error.html +0 -0
- package/extend/bajoTemplate/layout/info.html +0 -0
- package/extend/bajoTemplate/partial/403.html +0 -0
- package/extend/bajoTemplate/partial/_admin/reset-user-password.html +0 -0
- package/extend/bajoTemplate/partial/_mail/help-contact-form.html +0 -0
- package/extend/bajoTemplate/partial/_mail/help-contact-form.id.html +0 -0
- package/extend/bajoTemplate/partial/_mail/mystuff-change-password.html +0 -0
- package/extend/bajoTemplate/partial/_mail/mystuff-change-password.id.html +0 -0
- package/extend/bajoTemplate/partial/_mail/mystuff-reset-api-key.html +0 -0
- package/extend/bajoTemplate/partial/_mail/mystuff-reset-api-key.id.html +0 -0
- package/extend/bajoTemplate/partial/_mail/user-activation-success.html +0 -0
- package/extend/bajoTemplate/partial/_mail/user-activation-success.id.html +0 -0
- package/extend/bajoTemplate/partial/_mail/user-forgot-password-changed.html +0 -0
- package/extend/bajoTemplate/partial/_mail/user-forgot-password-changed.id.html +0 -0
- package/extend/bajoTemplate/partial/_mail/user-forgot-password-link.html +0 -0
- package/extend/bajoTemplate/partial/_mail/user-forgot-password-link.id.html +0 -0
- package/extend/bajoTemplate/partial/_mail/user-signup-success-active.html +0 -0
- package/extend/bajoTemplate/partial/_mail/user-signup-success-active.id.html +0 -0
- package/extend/bajoTemplate/partial/_mail/user-signup-success.html +0 -0
- package/extend/bajoTemplate/partial/_mail/user-signup-success.id.html +0 -0
- package/extend/bajoTemplate/partial/api-key-modal.html +0 -0
- package/extend/bajoTemplate/partial/app-launcher.html +0 -0
- package/extend/bajoTemplate/partial/help/contact-form/form.html +0 -0
- package/extend/bajoTemplate/partial/help/contact-form/success.html +0 -0
- package/extend/bajoTemplate/partial/help/trouble-tickets/add.html +0 -0
- package/extend/bajoTemplate/partial/help/trouble-tickets/details.html +0 -0
- package/extend/bajoTemplate/partial/help/trouble-tickets/list.html +0 -0
- package/extend/bajoTemplate/partial/layout/address.html +0 -0
- package/extend/bajoTemplate/partial/layout/breadcrumb.html +0 -0
- package/extend/bajoTemplate/partial/layout/footer.html +0 -0
- package/extend/bajoTemplate/partial/layout/more-info.html +0 -0
- package/extend/bajoTemplate/partial/layout/more-info.id.html +0 -0
- package/extend/bajoTemplate/partial/layout/navbar.html +0 -0
- package/extend/bajoTemplate/partial/layout/sidebar.html +0 -0
- package/extend/bajoTemplate/partial/layout/socmed.html +0 -0
- package/extend/bajoTemplate/partial/list-item/change-password.html +0 -0
- package/extend/bajoTemplate/partial/list-item/forgot-password.html +0 -0
- package/extend/bajoTemplate/partial/list-item/goto-home.html +0 -0
- package/extend/bajoTemplate/partial/list-item/member-links.html +0 -0
- package/extend/bajoTemplate/partial/list-item/oauth-signin.html +0 -0
- package/extend/bajoTemplate/partial/list-item/signin.html +0 -0
- package/extend/bajoTemplate/partial/list-item/signout.html +0 -0
- package/extend/bajoTemplate/partial/list-item/user-signup.html +0 -0
- package/extend/bajoTemplate/partial/list-item/your-profile.html +0 -0
- package/extend/bajoTemplate/partial/signin.html +0 -0
- package/extend/bajoTemplate/partial/signout.html +0 -0
- package/extend/bajoTemplate/partial/user/activation.html +0 -0
- package/extend/bajoTemplate/partial/user/forgot-password-nomail.id.md +0 -0
- package/extend/bajoTemplate/partial/user/forgot-password-nomail.md +0 -0
- package/extend/bajoTemplate/partial/user/forgot-password.html +0 -0
- package/extend/bajoTemplate/partial/user/fpl-invalid.html +0 -0
- package/extend/bajoTemplate/partial/user/fpl-invalid.id.md +0 -0
- package/extend/bajoTemplate/partial/user/fpl-invalid.md +0 -0
- package/extend/bajoTemplate/partial/user/fpl.html +0 -0
- package/extend/bajoTemplate/partial/user/signup/form.html +0 -0
- package/extend/bajoTemplate/partial/user/signup/success-mail.id.md +0 -0
- package/extend/bajoTemplate/partial/user/signup/success-mail.md +0 -0
- package/extend/bajoTemplate/partial/user/signup/success-nomail.id.md +0 -0
- package/extend/bajoTemplate/partial/user/signup/success-nomail.md +0 -0
- package/extend/bajoTemplate/partial/user/signup/success.html +0 -0
- package/extend/bajoTemplate/partial/your-stuff/change-password.html +0 -0
- package/extend/bajoTemplate/partial/your-stuff/profile/edit.html +0 -0
- package/extend/bajoTemplate/partial/your-stuff/profile/view.html +0 -0
- package/extend/bajoTemplate/partial/your-stuff/reset-api-key.html +0 -0
- package/extend/bajoTemplate/template/403.html +0 -0
- package/extend/bajoTemplate/template/_admin/reset-user-password.html +0 -0
- package/extend/bajoTemplate/template/_mail/help-contact-form.html +0 -0
- package/extend/bajoTemplate/template/_mail/mystuff-change-password.html +0 -0
- package/extend/bajoTemplate/template/_mail/mystuff-reset-api-key.html +0 -0
- package/extend/bajoTemplate/template/_mail/user-activation-success.html +0 -0
- package/extend/bajoTemplate/template/_mail/user-forgot-password-changed.html +0 -0
- package/extend/bajoTemplate/template/_mail/user-forgot-password-link.html +0 -0
- package/extend/bajoTemplate/template/_mail/user-signup-success-active.html +0 -0
- package/extend/bajoTemplate/template/_mail/user-signup-success.html +0 -0
- package/extend/bajoTemplate/template/help/contact-form/form.html +0 -0
- package/extend/bajoTemplate/template/help/contact-form/success.html +0 -0
- package/extend/bajoTemplate/template/help/trouble-tickets/add.html +0 -0
- package/extend/bajoTemplate/template/help/trouble-tickets/details.html +0 -0
- package/extend/bajoTemplate/template/help/trouble-tickets/list.html +0 -0
- package/extend/bajoTemplate/template/info/about-us.md +0 -0
- package/extend/bajoTemplate/template/info/cookie-policy.md +0 -0
- package/extend/bajoTemplate/template/info/privacy.md +0 -0
- package/extend/bajoTemplate/template/info/terms-conditions.md +0 -0
- package/extend/bajoTemplate/template/signin.html +0 -0
- package/extend/bajoTemplate/template/signout.html +0 -0
- package/extend/bajoTemplate/template/user/activation.html +0 -0
- package/extend/bajoTemplate/template/user/forgot-password.html +0 -0
- package/extend/bajoTemplate/template/user/fpl-invalid.html +0 -0
- package/extend/bajoTemplate/template/user/fpl.html +0 -0
- package/extend/bajoTemplate/template/user/signup/form.html +0 -0
- package/extend/bajoTemplate/template/user/signup/success.html +0 -0
- package/extend/bajoTemplate/template/your-stuff/change-password.html +0 -0
- package/extend/bajoTemplate/template/your-stuff/profile/edit.html +0 -0
- package/extend/bajoTemplate/template/your-stuff/profile/view.html +0 -0
- package/extend/bajoTemplate/template/your-stuff/reset-api-key.html +0 -0
- package/extend/dobo/feature/address.js +0 -0
- package/extend/dobo/feature/category.js +0 -0
- package/extend/dobo/feature/country.js +0 -0
- package/extend/dobo/feature/email.js +0 -0
- package/extend/dobo/feature/lat-lng.js +0 -0
- package/extend/dobo/feature/lat.js +0 -0
- package/extend/dobo/feature/lng.js +0 -0
- package/extend/dobo/feature/notes.js +0 -0
- package/extend/dobo/feature/person-in-charge.js +0 -0
- package/extend/dobo/feature/phone.js +0 -0
- package/extend/dobo/feature/site-id.js +0 -0
- package/extend/dobo/feature/site-ids.js +0 -0
- package/extend/dobo/feature/slug.js +0 -0
- package/extend/dobo/feature/social.js +0 -0
- package/extend/dobo/feature/status.js +0 -0
- package/extend/dobo/feature/team-id.js +0 -0
- package/extend/dobo/feature/team-ids.js +0 -0
- package/extend/dobo/feature/ts.js +0 -0
- package/extend/dobo/feature/url.js +0 -0
- package/extend/dobo/feature/user-id.js +0 -0
- package/extend/dobo/fixture/contact-form-cat.json +0 -0
- package/extend/dobo/fixture/site.json +0 -0
- package/extend/dobo/fixture/team-user.json +0 -0
- package/extend/dobo/fixture/team.json +0 -0
- package/extend/dobo/fixture/ticket-cat.json +0 -0
- package/extend/dobo/fixture/user.json +0 -0
- package/extend/dobo/model.js +303 -303
- package/extend/dobo/model.json +161 -161
- package/extend/masohiSocketIo/middleware/server/auth.js +0 -0
- package/extend/sumba/route/anonymous.json +5 -5
- package/extend/sumba/route/secure.json +8 -8
- package/extend/waibuBootstrap/theme/component/widget/nav-dropdown-user.js +0 -0
- package/extend/waibuDb/schema/anonymous-guard.js +0 -0
- package/extend/waibuDb/schema/attrib-guard.js +0 -0
- package/extend/waibuDb/schema/contact-form-cat.json +0 -0
- package/extend/waibuDb/schema/contact-form.json +0 -0
- package/extend/waibuDb/schema/download.js +0 -0
- package/extend/waibuDb/schema/model-guard.js +0 -0
- package/extend/waibuDb/schema/secure-guard.js +0 -0
- package/extend/waibuDb/schema/site-setting.js +0 -0
- package/extend/waibuDb/schema/site.js +0 -0
- package/extend/waibuDb/schema/team-setting.js +0 -0
- package/extend/waibuDb/schema/team-user.js +0 -0
- package/extend/waibuDb/schema/team.json +0 -0
- package/extend/waibuDb/schema/ticket-cat.json +0 -0
- package/extend/waibuDb/schema/ticket.js +0 -0
- package/extend/waibuDb/schema/user-setting.js +0 -0
- package/extend/waibuDb/schema/user.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/action-guard/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/anonymous-guard/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/attrib-guard/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/contact-form/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/contact-form-cat/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/download/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/query-guard/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/reset-user-password.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/secure-guard/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/site-setting/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/site.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/team/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/team-setting/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/team-user/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/ticket/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/ticket-cat/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/user/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/user-setting/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/x/cache/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/x/session/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/x/site/@action.js +0 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/x/site-setting/@action.js +0 -0
- package/extend/waibuMpa/route/access-token.js +0 -0
- package/extend/waibuMpa/route/help/contact-form.js +0 -0
- package/extend/waibuMpa/route/help/trouble-tickets/add.js +0 -0
- package/extend/waibuMpa/route/help/trouble-tickets/details/@id.js +0 -0
- package/extend/waibuMpa/route/help/trouble-tickets/list.js +0 -0
- package/extend/waibuMpa/route/info/@item.js +0 -0
- package/extend/waibuMpa/route/signin.js +0 -0
- package/extend/waibuMpa/route/signout.js +0 -0
- package/extend/waibuMpa/route/user/activation.js +0 -0
- package/extend/waibuMpa/route/user/forgot-password/@fpl.js +0 -0
- package/extend/waibuMpa/route/user/forgot-password.js +0 -0
- package/extend/waibuMpa/route/user/signup.js +0 -0
- package/extend/waibuMpa/route/your-stuff/change-password.js +0 -0
- package/extend/waibuMpa/route/your-stuff/download/@action.js +0 -0
- package/extend/waibuMpa/route/your-stuff/download/get.js +0 -0
- package/extend/waibuMpa/route/your-stuff/profile/edit.js +0 -0
- package/extend/waibuMpa/route/your-stuff/profile.js +0 -0
- package/extend/waibuMpa/route/your-stuff/reset-api-key.js +0 -0
- package/extend/waibuRestApi/route/info/get.js +0 -0
- package/extend/waibuRestApi/route/manage/anonymous-guard/model-builder.json +0 -0
- package/extend/waibuRestApi/route/manage/secure-guard/model-builder.json +0 -0
- package/extend/waibuRestApi/route/manage/team/model-builder.json +0 -0
- package/extend/waibuRestApi/route/manage/ticket-cat/model-builder.json +0 -0
- package/extend/waibuRestApi/route/manage/user/model-builder.json +0 -0
- package/extend/waibuRestApi/route/user/access-token/@type/create.js +0 -0
- package/extend/waibuRestApi/route/user/api-key/get.js +0 -0
- package/extend/waibuRestApi/route/your-stuff/api-key/get.js +0 -0
- package/extend/waibuRestApi/route/your-stuff/api-key/update.js +0 -0
- package/extend/waibuRestApi/route/your-stuff/change-password/update.js +0 -0
- package/extend/waibuRestApi/route/your-stuff/profile/get.js +0 -0
- package/extend/waibuRestApi/route/your-stuff/profile/update.js +0 -0
- package/extend/waibuSocketIo/middleware/server/auth.js +0 -0
- package/extend/waibuStatic/asset/user-profile.png +0 -0
- package/index.js +4 -3
- package/lib/config.js +202 -202
- package/lib/constant.js +0 -0
- package/logo.png +0 -0
- package/package.json +1 -1
- package/wiki/CHANGES.md +391 -380
- package/wiki/CONFIG.md +0 -0
- package/wiki/CONTRIBUTING.md +0 -0
- package/wiki/DEV-GUIDE.md +0 -0
- package/wiki/ECOSYSTEM.md +0 -0
- package/wiki/GETTING-STARTED.md +0 -0
- package/wiki/USER-GUIDE.md +0 -0
package/extend/dobo/model.json
CHANGED
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
[{
|
|
2
|
-
"baseName": "contact-form-cat",
|
|
3
|
-
"features": ["sumba:category", "sumba:siteId"]
|
|
4
|
-
}, {
|
|
5
|
-
"baseName": "contact-form",
|
|
6
|
-
"properties": [
|
|
7
|
-
"firstName,,50,true,true",
|
|
8
|
-
"lastName,,50,true,true",
|
|
9
|
-
"email,,50,true,true",
|
|
10
|
-
"category,,50,true",
|
|
11
|
-
"subject,,255,,true",
|
|
12
|
-
"message,text"
|
|
13
|
-
],
|
|
14
|
-
"features": [{
|
|
15
|
-
"name": "sumba:status",
|
|
16
|
-
"default": "NEW",
|
|
17
|
-
"values": ["NEW", "ACK"]
|
|
18
|
-
}, "sumba:userId", "sumba:siteId", "dobo:createdAt", "dobo:updatedAt"
|
|
19
|
-
]
|
|
20
|
-
}, {
|
|
21
|
-
"baseName": "site-setting",
|
|
22
|
-
"properties": [
|
|
23
|
-
"ns,,50,true,true",
|
|
24
|
-
"key,,255,true,true",
|
|
25
|
-
"value,text"
|
|
26
|
-
],
|
|
27
|
-
"indexes": [{
|
|
28
|
-
"fields": ["ns", "key", "siteId"],
|
|
29
|
-
"type": "unique"
|
|
30
|
-
}],
|
|
31
|
-
"features": [
|
|
32
|
-
"sumba:siteId",
|
|
33
|
-
"dobo:immutable",
|
|
34
|
-
"dobo:updatedAt"
|
|
35
|
-
]
|
|
36
|
-
}, {
|
|
37
|
-
"buildLevel": 1,
|
|
38
|
-
"baseName": "site",
|
|
39
|
-
"properties": [{
|
|
40
|
-
"name": "hostname",
|
|
41
|
-
"type": "string",
|
|
42
|
-
"maxLength": 100,
|
|
43
|
-
"required": true,
|
|
44
|
-
"index": "unique"
|
|
45
|
-
}, {
|
|
46
|
-
"name": "alias",
|
|
47
|
-
"type": "string",
|
|
48
|
-
"maxLength": 100,
|
|
49
|
-
"index": "unique",
|
|
50
|
-
"required": true,
|
|
51
|
-
"immutable": true
|
|
52
|
-
}, {
|
|
53
|
-
"name": "title",
|
|
54
|
-
"type": "string",
|
|
55
|
-
"maxLength": 50,
|
|
56
|
-
"required": true
|
|
57
|
-
}, {
|
|
58
|
-
"name": "subTitle",
|
|
59
|
-
"type": "string",
|
|
60
|
-
"maxLength": 50
|
|
61
|
-
}, {
|
|
62
|
-
"name": "orgName",
|
|
63
|
-
"type": "string",
|
|
64
|
-
"maxLength": 100,
|
|
65
|
-
"index": true
|
|
66
|
-
}, {
|
|
67
|
-
"name": "email",
|
|
68
|
-
"type": "string",
|
|
69
|
-
"maxLength": 100,
|
|
70
|
-
"rules": ["email"]
|
|
71
|
-
}],
|
|
72
|
-
"features": [
|
|
73
|
-
"sumba:personInCharge",
|
|
74
|
-
"sumba:address",
|
|
75
|
-
"sumba:social",
|
|
76
|
-
"sumba:status",
|
|
77
|
-
"dobo:createdAt",
|
|
78
|
-
"dobo:updatedAt",
|
|
79
|
-
"dobo:immutable"
|
|
80
|
-
],
|
|
81
|
-
"scanables": ["hostname", "alias", "title", "orgName"]
|
|
82
|
-
}, {
|
|
83
|
-
"buildLevel": 5,
|
|
84
|
-
"baseName": "team-setting",
|
|
85
|
-
"properties": [
|
|
86
|
-
"ns,,50,true,true",
|
|
87
|
-
"key,,255,true,true",
|
|
88
|
-
"value,text"
|
|
89
|
-
],
|
|
90
|
-
"indexes": [{
|
|
91
|
-
"fields": ["ns", "key", "siteId", "teamId"],
|
|
92
|
-
"type": "unique"
|
|
93
|
-
}],
|
|
94
|
-
"features": [
|
|
95
|
-
"sumba:siteId",
|
|
96
|
-
"dobo:updatedAt",
|
|
97
|
-
"sumba:teamId"
|
|
98
|
-
]
|
|
99
|
-
}, {
|
|
100
|
-
"buildLevel": 4,
|
|
101
|
-
"baseName": "team-user",
|
|
102
|
-
"properties": [],
|
|
103
|
-
"indexes": [{
|
|
104
|
-
"fields": ["userId", "siteId", "teamId"],
|
|
105
|
-
"type": "unique"
|
|
106
|
-
}],
|
|
107
|
-
"features": [
|
|
108
|
-
"dobo:createdAt",
|
|
109
|
-
"dobo:updatedAt",
|
|
110
|
-
"sumba:siteId",
|
|
111
|
-
"sumba:userId",
|
|
112
|
-
"sumba:teamId",
|
|
113
|
-
"sumba:status",
|
|
114
|
-
"dobo:immutable"
|
|
115
|
-
]
|
|
116
|
-
}, {
|
|
117
|
-
"buildLevel": 3,
|
|
118
|
-
"baseName": "team",
|
|
119
|
-
"properties": [
|
|
120
|
-
"alias,,20,,true",
|
|
121
|
-
"name,,50,true,true"
|
|
122
|
-
],
|
|
123
|
-
"indexes": [{
|
|
124
|
-
"fields": ["alias", "siteId"],
|
|
125
|
-
"type": "unique"
|
|
126
|
-
}],
|
|
127
|
-
"features": [
|
|
128
|
-
"dobo:createdAt",
|
|
129
|
-
"dobo:updatedAt",
|
|
130
|
-
"dobo:immutable",
|
|
131
|
-
"sumba:siteId",
|
|
132
|
-
"sumba:status",
|
|
133
|
-
"dobo:immutable"
|
|
134
|
-
]
|
|
135
|
-
}, {
|
|
136
|
-
"baseName": "ticket-cat",
|
|
137
|
-
"features": ["sumba:category", "sumba:siteId"]
|
|
138
|
-
}, {
|
|
139
|
-
"baseName": "ticket-detail",
|
|
140
|
-
"properties": [
|
|
141
|
-
"masterId,,255,true,true",
|
|
142
|
-
"message,text"
|
|
143
|
-
],
|
|
144
|
-
"features": ["dobo:createdAt", "sumba:userId", "sumba:siteId"]
|
|
145
|
-
}, {
|
|
146
|
-
"buildLevel": 5,
|
|
147
|
-
"baseName": "user-setting",
|
|
148
|
-
"properties": [
|
|
149
|
-
"ns,,50,true,true",
|
|
150
|
-
"key,,255,true,true",
|
|
151
|
-
"value,text"
|
|
152
|
-
],
|
|
153
|
-
"indexes": [{
|
|
154
|
-
"fields": ["ns", "key", "siteId", "userId"],
|
|
155
|
-
"type": "unique"
|
|
156
|
-
}],
|
|
157
|
-
"features": [
|
|
158
|
-
"sumba:siteId",
|
|
159
|
-
"dobo:updatedAt",
|
|
160
|
-
"sumba:userId"
|
|
161
|
-
]
|
|
1
|
+
[{
|
|
2
|
+
"baseName": "contact-form-cat",
|
|
3
|
+
"features": ["sumba:category", "sumba:siteId"]
|
|
4
|
+
}, {
|
|
5
|
+
"baseName": "contact-form",
|
|
6
|
+
"properties": [
|
|
7
|
+
"firstName,,50,true,true",
|
|
8
|
+
"lastName,,50,true,true",
|
|
9
|
+
"email,,50,true,true",
|
|
10
|
+
"category,,50,true",
|
|
11
|
+
"subject,,255,,true",
|
|
12
|
+
"message,text"
|
|
13
|
+
],
|
|
14
|
+
"features": [{
|
|
15
|
+
"name": "sumba:status",
|
|
16
|
+
"default": "NEW",
|
|
17
|
+
"values": ["NEW", "ACK"]
|
|
18
|
+
}, "sumba:userId", "sumba:siteId", "dobo:createdAt", "dobo:updatedAt"
|
|
19
|
+
]
|
|
20
|
+
}, {
|
|
21
|
+
"baseName": "site-setting",
|
|
22
|
+
"properties": [
|
|
23
|
+
"ns,,50,true,true",
|
|
24
|
+
"key,,255,true,true",
|
|
25
|
+
"value,text"
|
|
26
|
+
],
|
|
27
|
+
"indexes": [{
|
|
28
|
+
"fields": ["ns", "key", "siteId"],
|
|
29
|
+
"type": "unique"
|
|
30
|
+
}],
|
|
31
|
+
"features": [
|
|
32
|
+
"sumba:siteId",
|
|
33
|
+
"dobo:immutable",
|
|
34
|
+
"dobo:updatedAt"
|
|
35
|
+
]
|
|
36
|
+
}, {
|
|
37
|
+
"buildLevel": 1,
|
|
38
|
+
"baseName": "site",
|
|
39
|
+
"properties": [{
|
|
40
|
+
"name": "hostname",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"maxLength": 100,
|
|
43
|
+
"required": true,
|
|
44
|
+
"index": "unique"
|
|
45
|
+
}, {
|
|
46
|
+
"name": "alias",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"maxLength": 100,
|
|
49
|
+
"index": "unique",
|
|
50
|
+
"required": true,
|
|
51
|
+
"immutable": true
|
|
52
|
+
}, {
|
|
53
|
+
"name": "title",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"maxLength": 50,
|
|
56
|
+
"required": true
|
|
57
|
+
}, {
|
|
58
|
+
"name": "subTitle",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"maxLength": 50
|
|
61
|
+
}, {
|
|
62
|
+
"name": "orgName",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"maxLength": 100,
|
|
65
|
+
"index": true
|
|
66
|
+
}, {
|
|
67
|
+
"name": "email",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"maxLength": 100,
|
|
70
|
+
"rules": ["email"]
|
|
71
|
+
}],
|
|
72
|
+
"features": [
|
|
73
|
+
"sumba:personInCharge",
|
|
74
|
+
"sumba:address",
|
|
75
|
+
"sumba:social",
|
|
76
|
+
"sumba:status",
|
|
77
|
+
"dobo:createdAt",
|
|
78
|
+
"dobo:updatedAt",
|
|
79
|
+
"dobo:immutable"
|
|
80
|
+
],
|
|
81
|
+
"scanables": ["hostname", "alias", "title", "orgName"]
|
|
82
|
+
}, {
|
|
83
|
+
"buildLevel": 5,
|
|
84
|
+
"baseName": "team-setting",
|
|
85
|
+
"properties": [
|
|
86
|
+
"ns,,50,true,true",
|
|
87
|
+
"key,,255,true,true",
|
|
88
|
+
"value,text"
|
|
89
|
+
],
|
|
90
|
+
"indexes": [{
|
|
91
|
+
"fields": ["ns", "key", "siteId", "teamId"],
|
|
92
|
+
"type": "unique"
|
|
93
|
+
}],
|
|
94
|
+
"features": [
|
|
95
|
+
"sumba:siteId",
|
|
96
|
+
"dobo:updatedAt",
|
|
97
|
+
"sumba:teamId"
|
|
98
|
+
]
|
|
99
|
+
}, {
|
|
100
|
+
"buildLevel": 4,
|
|
101
|
+
"baseName": "team-user",
|
|
102
|
+
"properties": [],
|
|
103
|
+
"indexes": [{
|
|
104
|
+
"fields": ["userId", "siteId", "teamId"],
|
|
105
|
+
"type": "unique"
|
|
106
|
+
}],
|
|
107
|
+
"features": [
|
|
108
|
+
"dobo:createdAt",
|
|
109
|
+
"dobo:updatedAt",
|
|
110
|
+
"sumba:siteId",
|
|
111
|
+
"sumba:userId",
|
|
112
|
+
"sumba:teamId",
|
|
113
|
+
"sumba:status",
|
|
114
|
+
"dobo:immutable"
|
|
115
|
+
]
|
|
116
|
+
}, {
|
|
117
|
+
"buildLevel": 3,
|
|
118
|
+
"baseName": "team",
|
|
119
|
+
"properties": [
|
|
120
|
+
"alias,,20,,true",
|
|
121
|
+
"name,,50,true,true"
|
|
122
|
+
],
|
|
123
|
+
"indexes": [{
|
|
124
|
+
"fields": ["alias", "siteId"],
|
|
125
|
+
"type": "unique"
|
|
126
|
+
}],
|
|
127
|
+
"features": [
|
|
128
|
+
"dobo:createdAt",
|
|
129
|
+
"dobo:updatedAt",
|
|
130
|
+
"dobo:immutable",
|
|
131
|
+
"sumba:siteId",
|
|
132
|
+
"sumba:status",
|
|
133
|
+
"dobo:immutable"
|
|
134
|
+
]
|
|
135
|
+
}, {
|
|
136
|
+
"baseName": "ticket-cat",
|
|
137
|
+
"features": ["sumba:category", "sumba:siteId"]
|
|
138
|
+
}, {
|
|
139
|
+
"baseName": "ticket-detail",
|
|
140
|
+
"properties": [
|
|
141
|
+
"masterId,,255,true,true",
|
|
142
|
+
"message,text"
|
|
143
|
+
],
|
|
144
|
+
"features": ["dobo:createdAt", "sumba:userId", "sumba:siteId"]
|
|
145
|
+
}, {
|
|
146
|
+
"buildLevel": 5,
|
|
147
|
+
"baseName": "user-setting",
|
|
148
|
+
"properties": [
|
|
149
|
+
"ns,,50,true,true",
|
|
150
|
+
"key,,255,true,true",
|
|
151
|
+
"value,text"
|
|
152
|
+
],
|
|
153
|
+
"indexes": [{
|
|
154
|
+
"fields": ["ns", "key", "siteId", "userId"],
|
|
155
|
+
"type": "unique"
|
|
156
|
+
}],
|
|
157
|
+
"features": [
|
|
158
|
+
"sumba:siteId",
|
|
159
|
+
"dobo:updatedAt",
|
|
160
|
+
"sumba:userId"
|
|
161
|
+
]
|
|
162
162
|
}]
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[
|
|
2
|
-
"/user/**/*",
|
|
3
|
-
"/signin",
|
|
4
|
-
"restapi:/user/access-token/**/*"
|
|
5
|
-
]
|
|
1
|
+
[
|
|
2
|
+
"/user/**/*",
|
|
3
|
+
"/signin",
|
|
4
|
+
"restapi:/user/access-token/**/*"
|
|
5
|
+
]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
[
|
|
2
|
-
"/your-stuff/**/*",
|
|
3
|
-
"/signout",
|
|
4
|
-
"/help/trouble-tickets/**/*",
|
|
5
|
-
"restapi:/user/api-key",
|
|
6
|
-
"restapi:/your-stuff/**/*",
|
|
7
|
-
"restapi:/manage/**/*"
|
|
8
|
-
]
|
|
1
|
+
[
|
|
2
|
+
"/your-stuff/**/*",
|
|
3
|
+
"/signout",
|
|
4
|
+
"/help/trouble-tickets/**/*",
|
|
5
|
+
"restapi:/user/api-key",
|
|
6
|
+
"restapi:/your-stuff/**/*",
|
|
7
|
+
"restapi:/manage/**/*"
|
|
8
|
+
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/index.js
CHANGED
|
@@ -98,7 +98,7 @@ async function factory (pkgName) {
|
|
|
98
98
|
*/
|
|
99
99
|
start = async () => {
|
|
100
100
|
await this.populateRouteGuards()
|
|
101
|
-
const {
|
|
101
|
+
const { startInterval } = this.app.lib
|
|
102
102
|
if (!this.config.multiSite.enabled) {
|
|
103
103
|
this.config.xSiteAdmins = []
|
|
104
104
|
return
|
|
@@ -108,7 +108,7 @@ async function factory (pkgName) {
|
|
|
108
108
|
const user = await getModel('SumbaUser').findOneRecord({ query: { username: 'admin', siteId: site.id + '' } }, { noMagic: true })
|
|
109
109
|
this.config.xSiteAdmins.push(`${site.alias}:${user.username}`)
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
startInterval(this.execDownload, this.config.queue.intvDur, 'download')
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
/**
|
|
@@ -1501,7 +1501,8 @@ async function factory (pkgName) {
|
|
|
1501
1501
|
else if (op === 'between') value = { $gte: values[0], $lte: values[1] }
|
|
1502
1502
|
else value = set({}, '$' + op, values[0])
|
|
1503
1503
|
const teamOk = item.allTeams ? true : (item.teamIds.length === 0 ? false : includes(item.teamIds, teamIds))
|
|
1504
|
-
if (!teamOk) throw this.error('_abortAction')
|
|
1504
|
+
// if (!teamOk) throw this.error('_abortAction')
|
|
1505
|
+
if (!teamOk) continue
|
|
1505
1506
|
results.push(set({}, field, value))
|
|
1506
1507
|
}
|
|
1507
1508
|
}
|