@nocobase/plugin-notification-email 2.2.0-beta.2 → 2.2.0-beta.5
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-v2/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@nocobase/flow-engine")):"function"==typeof define&&define.amd?define("@nocobase/plugin-notification-email/client-v2",["react-i18next","@nocobase/plugin-notification-manager/client-v2","@nocobase/client-v2","react","antd","@nocobase/flow-engine"],t):"object"==typeof exports?exports["@nocobase/plugin-notification-email/client-v2"]=t(require("react-i18next"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@nocobase/flow-engine")):e["@nocobase/plugin-notification-email/client-v2"]=t(e["react-i18next"],e["@nocobase/plugin-notification-manager/client-v2"],e["@nocobase/client-v2"],e.react,e.antd,e["@nocobase/flow-engine"])}(self,function(e,t,n,r,o,i){return function(){"use strict";var c,a,u,l={488:function(e,t,n){n.d(t,{CU:function(){return i},MZ:function(){return u},Yb:function(){return a}});var r=n(694),o=n(953),i="notification-email",c="@nocobase/plugin-notification-email";function a(){return(0,o.useTranslation)([i,c,"client"],{nsMode:"fallback"})}function u(e){return(0,r.tExpr)(e,{ns:[i,c,"client"]})}},485:function(e){e.exports=n},694:function(e){e.exports=i},341:function(e){e.exports=t},59:function(e){e.exports=o},155:function(e){e.exports=r},953:function(t){t.exports=e}},f={};function p(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return l[e](n,n.exports,p),n.exports}p.m=l,p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=function(e){return Promise.all(Object.keys(p.f).reduce(function(t,n){return p.f[n](e,t),t},[]))},p.u=function(e){return""+e+".b4e6d867cd397b33.js"},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s={},p.l=function(e,t,n,r){if(s[e])return void s[e].push(t);if(void 0!==n)for(var o,i,c=document.getElementsByTagName("script"),a=0;a<c.length;a++){var u=c[a];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@nocobase/plugin-notification-email/client-v2:"+n){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.setAttribute("data-rspack","@nocobase/plugin-notification-email/client-v2:"+n),o.src=e),s[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(f);var r=s[e];if(delete s[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},p.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.g.importScripts&&(b=p.g.location+"");var s,b,d=p.g.document;if(!b&&d&&(d.currentScript&&"SCRIPT"===d.currentScript.tagName.toUpperCase()&&(b=d.currentScript.src),!b)){var v=d.getElementsByTagName("script");if(v.length)for(var h=v.length-1;h>-1&&(!b||!/^http(s?):/.test(b));)b=v[h--].src}if(!b)throw Error("Automatic publicPath is not supported in this browser");p.p=b.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c={889:0},p.f.j=function(e,t){var n=p.o(c,e)?c[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=c[e]=[t,r]});t.push(n[2]=r);var o=p.p+p.u(e),i=Error();p.l(o,function(t){if(p.o(c,e)&&(0!==(n=c[e])&&(c[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+e,e)}},a=function(e,t){var n,r,o=t[0],i=t[1],a=t[2],u=0;if(o.some(function(e){return 0!==c[e]})){for(n in i)p.o(i,n)&&(p.m[n]=i[n]);a&&a(p)}for(e&&e(t);u<o.length;u++)r=o[u],p.o(c,r)&&c[r]&&c[r][0](),c[r]=0},(u=self.webpackChunk_nocobase_plugin_notification_email_client_v2=self.webpackChunk_nocobase_plugin_notification_email_client_v2||[]).forEach(a.bind(null,0)),u.push=a.bind(null,u.push.bind(u));var g={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src&&(e=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")),!e){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),e=n+"static/plugins/@nocobase/plugin-notification-email/dist/client-v2/")}if(!e){var r=window.__nocobase_modern_client_prefix__||"v",o="/"+(r=String(r).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var i=window.location.pathname||"/",c=i.indexOf(o);e=c>=0?i.slice(0,c+1):"/"}e&&(e=e.replace(RegExp("/"+r+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-notification-email/dist/client-v2/"}p.p=e}(),!function(){p.r(g),p.d(g,{NAMESPACE:function(){return r.CU},PluginNotificationEmailClientV2:function(){return f},default:function(){return s}});var e=p(485),t=p(341),n=p.n(t),r=p(488);function o(e,t,n,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function i(e,t,n){return(i=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&a(o,n.prototype),o}).apply(null,arguments)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return i(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)})(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var f=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function i(){var e,t;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return e=i,t=arguments,e=c(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,l()?Reflect.construct(e,t||[],c(this).constructor):e.apply(this,t))}return i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&a(i,e),t=[{key:"beforeLoad",value:function(){var e;return(e=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:u(0)}),a(c,"throw",{value:u(1)}),a(c,"return",{value:u(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function u(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(t){return(e=this.pm.get(n()))&&e.registerChannelType({type:"email",title:(0,r.MZ)("Email"),components:{ChannelConfigFormLoader:function(){return p.e("658").then(p.bind(p,153))}},meta:{creatable:!0,editable:!0,deletable:!0}}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,i){var c=e.apply(t,n);function a(e){o(c,r,i,a,u,"next",e)}function u(e){o(c,r,i,a,u,"throw",e)}a(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,t),i}(u(e.Plugin)),s=f}(),g}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.2.0-beta.
|
|
11
|
+
"@nocobase/client": "2.2.0-beta.5",
|
|
12
12
|
"react": "18.2.0",
|
|
13
|
-
"@nocobase/plugin-notification-manager": "2.2.0-beta.
|
|
14
|
-
"@nocobase/utils": "2.2.0-beta.
|
|
15
|
-
"@nocobase/flow-engine": "2.2.0-beta.
|
|
13
|
+
"@nocobase/plugin-notification-manager": "2.2.0-beta.5",
|
|
14
|
+
"@nocobase/utils": "2.2.0-beta.5",
|
|
15
|
+
"@nocobase/flow-engine": "2.2.0-beta.5",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
|
-
"@nocobase/client-v2": "2.2.0-beta.
|
|
18
|
-
"@nocobase/server": "2.2.0-beta.
|
|
17
|
+
"@nocobase/client-v2": "2.2.0-beta.5",
|
|
18
|
+
"@nocobase/server": "2.2.0-beta.5",
|
|
19
19
|
"antd": "5.24.2"
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"nodemailer","version":"6.9.7","description":"Easy as cake e-mail sending from your Node.js applications","main":"lib/nodemailer.js","scripts":{"test":"grunt --trace-warnings","update":"rm -rf node_modules/ package-lock.json && ncu -u && npm install"},"repository":{"type":"git","url":"https://github.com/nodemailer/nodemailer.git"},"keywords":["Nodemailer"],"author":"Andris Reinman","license":"MIT-0","bugs":{"url":"https://github.com/nodemailer/nodemailer/issues"},"homepage":"https://nodemailer.com/","devDependencies":{"@aws-sdk/client-ses":"3.433.0","aws-sdk":"2.1478.0","bunyan":"1.8.15","chai":"4.3.10","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.0.0","grunt":"1.6.1","grunt-cli":"1.4.3","grunt-eslint":"24.3.0","grunt-mocha-test":"0.13.3","libbase64":"1.2.1","libmime":"5.2.1","libqp":"2.0.1","mocha":"10.2.0","nodemailer-ntlm-auth":"1.0.4","proxy":"1.0.2","proxy-test-server":"1.0.0","sinon":"17.0.0","smtp-server":"3.13.0"},"engines":{"node":">=6.0.0"},"_lastModified":"2026-06-
|
|
1
|
+
{"name":"nodemailer","version":"6.9.7","description":"Easy as cake e-mail sending from your Node.js applications","main":"lib/nodemailer.js","scripts":{"test":"grunt --trace-warnings","update":"rm -rf node_modules/ package-lock.json && ncu -u && npm install"},"repository":{"type":"git","url":"https://github.com/nodemailer/nodemailer.git"},"keywords":["Nodemailer"],"author":"Andris Reinman","license":"MIT-0","bugs":{"url":"https://github.com/nodemailer/nodemailer/issues"},"homepage":"https://nodemailer.com/","devDependencies":{"@aws-sdk/client-ses":"3.433.0","aws-sdk":"2.1478.0","bunyan":"1.8.15","chai":"4.3.10","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.0.0","grunt":"1.6.1","grunt-cli":"1.4.3","grunt-eslint":"24.3.0","grunt-mocha-test":"0.13.3","libbase64":"1.2.1","libmime":"5.2.1","libqp":"2.0.1","mocha":"10.2.0","nodemailer-ntlm-auth":"1.0.4","proxy":"1.0.2","proxy-test-server":"1.0.0","sinon":"17.0.0","smtp-server":"3.13.0"},"engines":{"node":">=6.0.0"},"_lastModified":"2026-06-16T14:52:45.858Z"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: {
|
|
10
|
+
openapi: string;
|
|
11
|
+
info: {
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
14
|
+
paths: {};
|
|
15
|
+
components: {
|
|
16
|
+
schemas: {
|
|
17
|
+
EmailNotificationChannelOptions: {
|
|
18
|
+
type: string;
|
|
19
|
+
required: string[];
|
|
20
|
+
properties: {
|
|
21
|
+
transport: {
|
|
22
|
+
type: string;
|
|
23
|
+
enum: string[];
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
host: {
|
|
27
|
+
type: string;
|
|
28
|
+
example: string;
|
|
29
|
+
};
|
|
30
|
+
port: {
|
|
31
|
+
type: string;
|
|
32
|
+
minimum: number;
|
|
33
|
+
maximum: number;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
secure: {
|
|
37
|
+
type: string;
|
|
38
|
+
default: boolean;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
account: {
|
|
42
|
+
type: string;
|
|
43
|
+
example: string;
|
|
44
|
+
};
|
|
45
|
+
password: {
|
|
46
|
+
type: string;
|
|
47
|
+
format: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
from: {
|
|
51
|
+
type: string;
|
|
52
|
+
example: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
additionalProperties: boolean;
|
|
56
|
+
};
|
|
57
|
+
EmailNotificationMessage: {
|
|
58
|
+
type: string;
|
|
59
|
+
required: string[];
|
|
60
|
+
properties: {
|
|
61
|
+
to: {
|
|
62
|
+
type: string;
|
|
63
|
+
items: {
|
|
64
|
+
type: string;
|
|
65
|
+
format: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
cc: {
|
|
69
|
+
type: string;
|
|
70
|
+
items: {
|
|
71
|
+
type: string;
|
|
72
|
+
format: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
bcc: {
|
|
76
|
+
type: string;
|
|
77
|
+
items: {
|
|
78
|
+
type: string;
|
|
79
|
+
format: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
subject: {
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
contentType: {
|
|
86
|
+
type: string;
|
|
87
|
+
enum: string[];
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
html: {
|
|
91
|
+
type: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
text: {
|
|
95
|
+
type: string;
|
|
96
|
+
description: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
additionalProperties: boolean;
|
|
100
|
+
};
|
|
101
|
+
EmailNotificationChannel: {
|
|
102
|
+
type: string;
|
|
103
|
+
required: string[];
|
|
104
|
+
properties: {
|
|
105
|
+
name: {
|
|
106
|
+
type: string;
|
|
107
|
+
};
|
|
108
|
+
title: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
description: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
notificationType: {
|
|
115
|
+
type: string;
|
|
116
|
+
enum: string[];
|
|
117
|
+
};
|
|
118
|
+
options: {
|
|
119
|
+
$ref: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
additionalProperties: boolean;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
export default _default;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var swagger_exports = {};
|
|
28
|
+
__export(swagger_exports, {
|
|
29
|
+
default: () => swagger_default
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(swagger_exports);
|
|
32
|
+
var swagger_default = {
|
|
33
|
+
openapi: "3.0.2",
|
|
34
|
+
info: {
|
|
35
|
+
title: "NocoBase API - Notification email plugin"
|
|
36
|
+
},
|
|
37
|
+
paths: {},
|
|
38
|
+
components: {
|
|
39
|
+
schemas: {
|
|
40
|
+
EmailNotificationChannelOptions: {
|
|
41
|
+
type: "object",
|
|
42
|
+
required: ["transport", "host", "port", "secure", "account", "password", "from"],
|
|
43
|
+
properties: {
|
|
44
|
+
transport: {
|
|
45
|
+
type: "string",
|
|
46
|
+
enum: ["smtp"],
|
|
47
|
+
default: "smtp"
|
|
48
|
+
},
|
|
49
|
+
host: {
|
|
50
|
+
type: "string",
|
|
51
|
+
example: "smtp.example.com"
|
|
52
|
+
},
|
|
53
|
+
port: {
|
|
54
|
+
type: "integer",
|
|
55
|
+
minimum: 1,
|
|
56
|
+
maximum: 65535,
|
|
57
|
+
default: 465
|
|
58
|
+
},
|
|
59
|
+
secure: {
|
|
60
|
+
type: "boolean",
|
|
61
|
+
default: true,
|
|
62
|
+
description: "Usually true for port 465; verify with the SMTP provider for other ports."
|
|
63
|
+
},
|
|
64
|
+
account: {
|
|
65
|
+
type: "string",
|
|
66
|
+
example: "example@domain.com"
|
|
67
|
+
},
|
|
68
|
+
password: {
|
|
69
|
+
type: "string",
|
|
70
|
+
format: "password",
|
|
71
|
+
description: "SMTP password or provider app password. Do not expose this value in logs."
|
|
72
|
+
},
|
|
73
|
+
from: {
|
|
74
|
+
type: "string",
|
|
75
|
+
example: "noreply <example@domain.com>"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
additionalProperties: true
|
|
79
|
+
},
|
|
80
|
+
EmailNotificationMessage: {
|
|
81
|
+
type: "object",
|
|
82
|
+
required: ["to", "subject", "contentType"],
|
|
83
|
+
properties: {
|
|
84
|
+
to: {
|
|
85
|
+
type: "array",
|
|
86
|
+
items: {
|
|
87
|
+
type: "string",
|
|
88
|
+
format: "email"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
cc: {
|
|
92
|
+
type: "array",
|
|
93
|
+
items: {
|
|
94
|
+
type: "string",
|
|
95
|
+
format: "email"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
bcc: {
|
|
99
|
+
type: "array",
|
|
100
|
+
items: {
|
|
101
|
+
type: "string",
|
|
102
|
+
format: "email"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
subject: {
|
|
106
|
+
type: "string"
|
|
107
|
+
},
|
|
108
|
+
contentType: {
|
|
109
|
+
type: "string",
|
|
110
|
+
enum: ["html", "text"],
|
|
111
|
+
default: "html"
|
|
112
|
+
},
|
|
113
|
+
html: {
|
|
114
|
+
type: "string",
|
|
115
|
+
description: "Required when `contentType` is `html`."
|
|
116
|
+
},
|
|
117
|
+
text: {
|
|
118
|
+
type: "string",
|
|
119
|
+
description: "Required when `contentType` is `text`."
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
additionalProperties: true
|
|
123
|
+
},
|
|
124
|
+
EmailNotificationChannel: {
|
|
125
|
+
type: "object",
|
|
126
|
+
required: ["name", "title", "notificationType", "options"],
|
|
127
|
+
properties: {
|
|
128
|
+
name: {
|
|
129
|
+
type: "string"
|
|
130
|
+
},
|
|
131
|
+
title: {
|
|
132
|
+
type: "string"
|
|
133
|
+
},
|
|
134
|
+
description: {
|
|
135
|
+
type: "string"
|
|
136
|
+
},
|
|
137
|
+
notificationType: {
|
|
138
|
+
type: "string",
|
|
139
|
+
enum: ["email"]
|
|
140
|
+
},
|
|
141
|
+
options: {
|
|
142
|
+
$ref: "#/components/schemas/EmailNotificationChannelOptions"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
additionalProperties: true
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-notification-email",
|
|
3
|
-
"version": "2.2.0-beta.
|
|
3
|
+
"version": "2.2.0-beta.5",
|
|
4
4
|
"displayName": "Notification: Email",
|
|
5
5
|
"displayName.ru-RU": "Уведомления: Электронная почта (Email)",
|
|
6
6
|
"displayName.zh-CN": "通知:电子邮件",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"Notification"
|
|
27
27
|
],
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "81eab2cfa9d3d989e99ba0c914807b38db55f023"
|
|
30
30
|
}
|