@nocobase/plugin-notification-manager 2.2.0-beta.1 → 2.2.0-beta.10
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/client/{507.6b177256a5fdfe2f.js → 507.fdef14cca9c18c29.js} +1 -1
- package/dist/client/{89.4f9da72110fbe97a.js → 89.4305cb8d81323fe6.js} +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client-v2/49.3feca41b2843a6b2.js +10 -0
- package/dist/client-v2/index.js +1 -1
- package/dist/collections/channel.js +1 -1
- package/dist/externalVersion.js +9 -9
- package/dist/locale/de-DE.json +1 -1
- package/dist/locale/en-US.json +1 -1
- package/dist/locale/es-ES.json +1 -1
- package/dist/locale/fr-FR.json +1 -1
- package/dist/locale/hu-HU.json +1 -1
- package/dist/locale/id-ID.json +1 -1
- package/dist/locale/it-IT.json +1 -1
- package/dist/locale/ja-JP.json +1 -1
- package/dist/locale/ko-KR.json +1 -1
- package/dist/locale/nl-NL.json +1 -1
- package/dist/locale/pt-BR.json +1 -1
- package/dist/locale/ru-RU.json +1 -1
- package/dist/locale/tr-TR.json +1 -1
- package/dist/locale/uk-UA.json +1 -1
- package/dist/locale/vi-VN.json +1 -1
- package/dist/locale/zh-CN.json +1 -1
- package/dist/locale/zh-TW.json +1 -1
- package/dist/node_modules/uuid/package.json +1 -1
- package/dist/server/plugin.js +10 -5
- package/dist/swagger/index.d.ts +542 -0
- package/dist/swagger/index.js +492 -0
- package/package.json +2 -2
- package/dist/client-v2/49.83c515a7f909c364.js +0 -10
package/dist/locale/ko-KR.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Notification type": "알림 유형",
|
|
32
32
|
"Notification type {{type}} is not registered.": "알림 유형 {{type}}이(가) 등록되지 않았습니다.",
|
|
33
33
|
"Query users": "사용자 조회",
|
|
34
|
-
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with
|
|
34
|
+
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.": "무작위로 생성되며 수정할 수 없습니다. 영문자, 숫자, 밑줄을 지원하며, 반드시 영문자로 시작해야 합니다.",
|
|
35
35
|
"Reason": "사유",
|
|
36
36
|
"Receiver": "수신자",
|
|
37
37
|
"Receiver type": "수신자 유형",
|
package/dist/locale/nl-NL.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Notification type": "Notificatietype",
|
|
32
32
|
"Notification type {{type}} is not registered.": "Notificatietype {{type}} is niet geregistreerd.",
|
|
33
33
|
"Query users": "Gebruikers zoeken",
|
|
34
|
-
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with
|
|
34
|
+
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.": "Willekeurig gegenereerd en kan niet worden gewijzigd. Ondersteunende letters, cijfers en underscores, moeten beginnen met een letter.",
|
|
35
35
|
"Reason": "Reden",
|
|
36
36
|
"Receiver": "Ontvanger",
|
|
37
37
|
"Receiver type": "Ontvanger type",
|
package/dist/locale/pt-BR.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
32
|
"Notification type {{type}} is not registered.": "O tipo de notificação {{type}} não está registrado.",
|
|
33
33
|
"Query users": "Query users",
|
|
34
|
-
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with
|
|
34
|
+
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.",
|
|
35
35
|
"Reason": "Reason",
|
|
36
36
|
"Receiver": "Receiver",
|
|
37
37
|
"Receiver type": "Receiver type",
|
package/dist/locale/ru-RU.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Notification type": "Тип уведомления",
|
|
32
32
|
"Notification type {{type}} is not registered.": "Тип уведомления {{type}} не зарегистрирован.",
|
|
33
33
|
"Query users": "Запрос пользователей",
|
|
34
|
-
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with
|
|
34
|
+
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.": "Генерируется случайным образом и не может быть изменено. Поддерживаются буквы, цифры и подчеркивания, должно начинаться с буквы.",
|
|
35
35
|
"Reason": "Причина",
|
|
36
36
|
"Receiver": "Получатель",
|
|
37
37
|
"Receiver type": "Тип получателя",
|
package/dist/locale/tr-TR.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
32
|
"Notification type {{type}} is not registered.": "Bildirim türü {{type}} kayıtlı değil.",
|
|
33
33
|
"Query users": "Query users",
|
|
34
|
-
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with
|
|
34
|
+
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.",
|
|
35
35
|
"Reason": "Reason",
|
|
36
36
|
"Receiver": "Receiver",
|
|
37
37
|
"Receiver type": "Receiver type",
|
package/dist/locale/uk-UA.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
32
|
"Notification type {{type}} is not registered.": "Тип сповіщення {{type}} не зареєстровано.",
|
|
33
33
|
"Query users": "Query users",
|
|
34
|
-
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with
|
|
34
|
+
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.",
|
|
35
35
|
"Reason": "Reason",
|
|
36
36
|
"Receiver": "Receiver",
|
|
37
37
|
"Receiver type": "Receiver type",
|
package/dist/locale/vi-VN.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
32
|
"Notification type {{type}} is not registered.": "Loại thông báo {{type}} chưa được đăng ký.",
|
|
33
33
|
"Query users": "Query users",
|
|
34
|
-
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with
|
|
34
|
+
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.",
|
|
35
35
|
"Reason": "Reason",
|
|
36
36
|
"Receiver": "Receiver",
|
|
37
37
|
"Receiver type": "Receiver type",
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Notification type": "通知类型",
|
|
32
32
|
"Notification type {{type}} is not registered.": "通知类型 {{type}} 尚未注册。",
|
|
33
33
|
"Query users": "查询用户",
|
|
34
|
-
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with
|
|
34
|
+
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.": "随机生成,不可修改。支持英文、数字和下划线,必须以英文字母开头。",
|
|
35
35
|
"Reason": "原因",
|
|
36
36
|
"Receiver": "接收人",
|
|
37
37
|
"Receiver type": "接收人类型",
|
package/dist/locale/zh-TW.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
32
|
"Notification type {{type}} is not registered.": "通知類型 {{type}} 尚未註冊。",
|
|
33
33
|
"Query users": "Query users",
|
|
34
|
-
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with
|
|
34
|
+
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with a letter.",
|
|
35
35
|
"Reason": "Reason",
|
|
36
36
|
"Receiver": "Receiver",
|
|
37
37
|
"Receiver type": "Receiver type",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"uuid","version":"10.0.0","description":"RFC9562 UUIDs","funding":["https://github.com/sponsors/broofa","https://github.com/sponsors/ctavan"],"commitlint":{"extends":["@commitlint/config-conventional"]},"keywords":["uuid","guid","rfc4122","rfc9562"],"license":"MIT","bin":{"uuid":"dist/bin/uuid"},"sideEffects":false,"main":"./dist/index.js","exports":{".":{"node":{"module":"./dist/esm-node/index.js","require":"./dist/index.js","import":"./wrapper.mjs"},"browser":{"import":"./dist/esm-browser/index.js","require":"./dist/commonjs-browser/index.js"},"default":"./dist/esm-browser/index.js"},"./package.json":"./package.json"},"module":"./dist/esm-node/index.js","browser":{"./dist/esm-node/index.js":"./dist/esm-browser/index.js","./dist/md5.js":"./dist/md5-browser.js","./dist/native.js":"./dist/native-browser.js","./dist/rng.js":"./dist/rng-browser.js","./dist/sha1.js":"./dist/sha1-browser.js"},"files":["CHANGELOG.md","CONTRIBUTING.md","LICENSE.md","README.md","dist","wrapper.mjs"],"devDependencies":{"@babel/cli":"7.24.6","@babel/core":"7.24.6","@babel/eslint-parser":"7.24.6","@babel/plugin-syntax-import-attributes":"7.24.6","@babel/preset-env":"7.24.6","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@wdio/browserstack-service":"7.16.10","@wdio/cli":"7.16.10","@wdio/jasmine-framework":"7.16.6","@wdio/local-runner":"7.16.10","@wdio/spec-reporter":"7.16.9","@wdio/static-server-service":"7.16.6","bundlewatch":"0.3.3","eslint":"9.4.0","eslint-plugin-prettier":"5.1.3","globals":"15.3.0","husky":"9.0.11","jest":"29.7.0","lint-staged":"15.2.5","neostandard":"0.5.1","npm-run-all":"4.1.5","optional-dev-dependency":"2.0.1","prettier":"3.3.0","random-seed":"0.3.0","runmd":"1.3.9","standard-version":"9.5.0"},"optionalDevDependencies":{"@wdio/browserstack-service":"7.16.10","@wdio/cli":"7.16.10","@wdio/jasmine-framework":"7.16.6","@wdio/local-runner":"7.16.10","@wdio/spec-reporter":"7.16.9","@wdio/static-server-service":"7.16.6"},"scripts":{"examples:browser:webpack:build":"cd examples/browser-webpack && npm install && npm run build","examples:browser:rollup:build":"cd examples/browser-rollup && npm install && npm run build","examples:node:commonjs:test":"cd examples/node-commonjs && npm install && npm test","examples:node:esmodules:test":"cd examples/node-esmodules && npm install && npm test","examples:node:jest:test":"cd examples/node-jest && npm install && npm test","prepare":"husky install","lint":"npm run eslint:check && npm run prettier:check","eslint:check":"eslint src/ test/ examples/ *.js","eslint:fix":"eslint --fix src/ test/ examples/ *.js","pretest":"npm run build","test":"BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/","test:matching":"BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/ -t","pretest:browser":"optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**","test:browser":"wdio run ./wdio.conf.js","pretest:node":"npm run build","test:node":"npm-run-all --parallel examples:node:**","test:pack":"./scripts/testpack.sh","pretest:benchmark":"npm run build","test:benchmark":"cd examples/benchmark && HUSKY=0 npm install && npm test","prettier:check":"prettier --check .","prettier:fix":"prettier --write .","bundlewatch":"npm run pretest:browser && bundlewatch --config bundlewatch.config.json","md":"runmd --watch --output=README.md README_js.md","docs":"npm run build && npx runmd --output=README.md README_js.md","docs:diff":"npm run docs && git diff --quiet README.md","build":"./scripts/build.sh","prepack":"npm run build","release":"standard-version --no-verify"},"repository":{"type":"git","url":"git+https://github.com/uuidjs/uuid.git"},"lint-staged":{"*":["prettier --no-error-on-unmatched-pattern --write"],"*.{js,jsx}":["eslint --no-error-on-unmatched-pattern --fix"]},"standard-version":{"scripts":{"postchangelog":"prettier --write CHANGELOG.md"}},"packageManager":"npm@10.8.1+sha256.b8807aebb9656758e2872fa6e7c564b506aa2faa9297439a478d471d2fe32483","_lastModified":"2026-
|
|
1
|
+
{"name":"uuid","version":"10.0.0","description":"RFC9562 UUIDs","funding":["https://github.com/sponsors/broofa","https://github.com/sponsors/ctavan"],"commitlint":{"extends":["@commitlint/config-conventional"]},"keywords":["uuid","guid","rfc4122","rfc9562"],"license":"MIT","bin":{"uuid":"dist/bin/uuid"},"sideEffects":false,"main":"./dist/index.js","exports":{".":{"node":{"module":"./dist/esm-node/index.js","require":"./dist/index.js","import":"./wrapper.mjs"},"browser":{"import":"./dist/esm-browser/index.js","require":"./dist/commonjs-browser/index.js"},"default":"./dist/esm-browser/index.js"},"./package.json":"./package.json"},"module":"./dist/esm-node/index.js","browser":{"./dist/esm-node/index.js":"./dist/esm-browser/index.js","./dist/md5.js":"./dist/md5-browser.js","./dist/native.js":"./dist/native-browser.js","./dist/rng.js":"./dist/rng-browser.js","./dist/sha1.js":"./dist/sha1-browser.js"},"files":["CHANGELOG.md","CONTRIBUTING.md","LICENSE.md","README.md","dist","wrapper.mjs"],"devDependencies":{"@babel/cli":"7.24.6","@babel/core":"7.24.6","@babel/eslint-parser":"7.24.6","@babel/plugin-syntax-import-attributes":"7.24.6","@babel/preset-env":"7.24.6","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@wdio/browserstack-service":"7.16.10","@wdio/cli":"7.16.10","@wdio/jasmine-framework":"7.16.6","@wdio/local-runner":"7.16.10","@wdio/spec-reporter":"7.16.9","@wdio/static-server-service":"7.16.6","bundlewatch":"0.3.3","eslint":"9.4.0","eslint-plugin-prettier":"5.1.3","globals":"15.3.0","husky":"9.0.11","jest":"29.7.0","lint-staged":"15.2.5","neostandard":"0.5.1","npm-run-all":"4.1.5","optional-dev-dependency":"2.0.1","prettier":"3.3.0","random-seed":"0.3.0","runmd":"1.3.9","standard-version":"9.5.0"},"optionalDevDependencies":{"@wdio/browserstack-service":"7.16.10","@wdio/cli":"7.16.10","@wdio/jasmine-framework":"7.16.6","@wdio/local-runner":"7.16.10","@wdio/spec-reporter":"7.16.9","@wdio/static-server-service":"7.16.6"},"scripts":{"examples:browser:webpack:build":"cd examples/browser-webpack && npm install && npm run build","examples:browser:rollup:build":"cd examples/browser-rollup && npm install && npm run build","examples:node:commonjs:test":"cd examples/node-commonjs && npm install && npm test","examples:node:esmodules:test":"cd examples/node-esmodules && npm install && npm test","examples:node:jest:test":"cd examples/node-jest && npm install && npm test","prepare":"husky install","lint":"npm run eslint:check && npm run prettier:check","eslint:check":"eslint src/ test/ examples/ *.js","eslint:fix":"eslint --fix src/ test/ examples/ *.js","pretest":"npm run build","test":"BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/","test:matching":"BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/ -t","pretest:browser":"optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**","test:browser":"wdio run ./wdio.conf.js","pretest:node":"npm run build","test:node":"npm-run-all --parallel examples:node:**","test:pack":"./scripts/testpack.sh","pretest:benchmark":"npm run build","test:benchmark":"cd examples/benchmark && HUSKY=0 npm install && npm test","prettier:check":"prettier --check .","prettier:fix":"prettier --write .","bundlewatch":"npm run pretest:browser && bundlewatch --config bundlewatch.config.json","md":"runmd --watch --output=README.md README_js.md","docs":"npm run build && npx runmd --output=README.md README_js.md","docs:diff":"npm run docs && git diff --quiet README.md","build":"./scripts/build.sh","prepack":"npm run build","release":"standard-version --no-verify"},"repository":{"type":"git","url":"git+https://github.com/uuidjs/uuid.git"},"lint-staged":{"*":["prettier --no-error-on-unmatched-pattern --write"],"*.{js,jsx}":["eslint --no-error-on-unmatched-pattern --fix"]},"standard-version":{"scripts":{"postchangelog":"prettier --write CHANGELOG.md"}},"packageManager":"npm@10.8.1+sha256.b8807aebb9656758e2872fa6e7c564b506aa2faa9297439a478d471d2fe32483","_lastModified":"2026-07-09T02:56:44.363Z"}
|
package/dist/server/plugin.js
CHANGED
|
@@ -110,11 +110,16 @@ class PluginNotificationManagerServer extends import_server.Plugin {
|
|
|
110
110
|
this.manager = new import_manager.default({ plugin: this });
|
|
111
111
|
}
|
|
112
112
|
async beforeLoad() {
|
|
113
|
-
this.app.resourceManager.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
this.app.resourceManager.define({
|
|
114
|
+
name: import_constant.COLLECTION_NAME.messages,
|
|
115
|
+
actions: {
|
|
116
|
+
send: async (ctx, next) => {
|
|
117
|
+
var _a, _b;
|
|
118
|
+
const sendOptions = (_b = (_a = ctx.action) == null ? void 0 : _a.params) == null ? void 0 : _b.values;
|
|
119
|
+
ctx.body = await this.send(sendOptions);
|
|
120
|
+
await next();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
118
123
|
});
|
|
119
124
|
this.app.acl.registerSnippet({
|
|
120
125
|
name: "pm.notification.channels",
|