@nocobase/plugin-notification-manager 2.2.0-alpha.1 → 2.2.0-alpha.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.
Files changed (289) hide show
  1. package/dist/client/{507.6b177256a5fdfe2f.js → 507.fdef14cca9c18c29.js} +1 -1
  2. package/dist/client/{89.4f9da72110fbe97a.js → 89.4305cb8d81323fe6.js} +1 -1
  3. package/dist/client/index.js +1 -1
  4. package/dist/client/manager/channel/types.d.ts +11 -0
  5. package/dist/client-v2/49.3feca41b2843a6b2.js +10 -0
  6. package/dist/client-v2/components/MessageConfigForm.d.ts +1 -1
  7. package/dist/client-v2/components/User/UserAddition.d.ts +6 -2
  8. package/dist/client-v2/components/User/UserSelect.d.ts +8 -3
  9. package/dist/client-v2/index.js +1 -1
  10. package/dist/client-v2/notification-manager.d.ts +7 -2
  11. package/dist/collections/channel.js +1 -1
  12. package/dist/externalVersion.js +10 -10
  13. package/dist/locale/de-DE.json +1 -1
  14. package/dist/locale/en-US.json +1 -1
  15. package/dist/locale/es-ES.json +1 -1
  16. package/dist/locale/fr-FR.json +1 -1
  17. package/dist/locale/hu-HU.json +1 -1
  18. package/dist/locale/id-ID.json +1 -1
  19. package/dist/locale/it-IT.json +1 -1
  20. package/dist/locale/ja-JP.json +1 -1
  21. package/dist/locale/ko-KR.json +1 -1
  22. package/dist/locale/nl-NL.json +1 -1
  23. package/dist/locale/pt-BR.json +1 -1
  24. package/dist/locale/ru-RU.json +1 -1
  25. package/dist/locale/tr-TR.json +1 -1
  26. package/dist/locale/uk-UA.json +1 -1
  27. package/dist/locale/vi-VN.json +1 -1
  28. package/dist/locale/zh-CN.json +1 -1
  29. package/dist/locale/zh-TW.json +1 -1
  30. package/dist/node_modules/uuid/dist/cjs/index.d.ts +15 -0
  31. package/dist/node_modules/uuid/dist/cjs/index.js +1 -0
  32. package/dist/node_modules/uuid/dist/cjs/max.d.ts +2 -0
  33. package/dist/node_modules/uuid/dist/cjs/max.js +3 -0
  34. package/dist/node_modules/uuid/dist/cjs/md5.d.ts +4 -0
  35. package/dist/node_modules/uuid/dist/cjs/md5.js +13 -0
  36. package/dist/node_modules/uuid/dist/cjs/native.d.ts +6 -0
  37. package/dist/node_modules/uuid/dist/cjs/native.js +4 -0
  38. package/dist/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
  39. package/dist/node_modules/uuid/dist/cjs/nil.js +3 -0
  40. package/dist/node_modules/uuid/dist/cjs/package.json +1 -0
  41. package/dist/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
  42. package/dist/node_modules/uuid/dist/cjs/parse.js +11 -0
  43. package/dist/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
  44. package/dist/node_modules/uuid/dist/cjs/regex.js +3 -0
  45. package/dist/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
  46. package/dist/node_modules/uuid/dist/cjs/rng.js +13 -0
  47. package/dist/node_modules/uuid/dist/cjs/sha1.d.ts +4 -0
  48. package/dist/node_modules/uuid/dist/cjs/sha1.js +13 -0
  49. package/dist/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
  50. package/dist/node_modules/uuid/dist/cjs/stringify.js +39 -0
  51. package/dist/node_modules/uuid/dist/cjs/types.d.ts +21 -0
  52. package/dist/node_modules/uuid/dist/cjs/types.js +2 -0
  53. package/dist/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
  54. package/dist/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
  55. package/dist/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
  56. package/dist/node_modules/uuid/dist/cjs/v1.js +87 -0
  57. package/dist/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
  58. package/dist/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
  59. package/dist/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
  60. package/dist/node_modules/uuid/dist/cjs/v3.js +14 -0
  61. package/dist/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
  62. package/dist/node_modules/uuid/dist/cjs/v35.js +44 -0
  63. package/dist/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
  64. package/dist/node_modules/uuid/dist/cjs/v4.js +29 -0
  65. package/dist/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
  66. package/dist/node_modules/uuid/dist/cjs/v5.js +14 -0
  67. package/dist/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
  68. package/dist/node_modules/uuid/dist/cjs/v6.js +22 -0
  69. package/dist/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
  70. package/dist/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
  71. package/dist/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
  72. package/dist/node_modules/uuid/dist/cjs/v7.js +69 -0
  73. package/dist/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
  74. package/dist/node_modules/uuid/dist/cjs/validate.js +7 -0
  75. package/dist/node_modules/uuid/dist/cjs/version.d.ts +2 -0
  76. package/dist/node_modules/uuid/dist/cjs/version.js +10 -0
  77. package/dist/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
  78. package/dist/node_modules/uuid/dist/cjs-browser/index.js +31 -0
  79. package/dist/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
  80. package/dist/node_modules/uuid/dist/cjs-browser/max.js +3 -0
  81. package/dist/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
  82. package/dist/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
  83. package/dist/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
  84. package/dist/node_modules/uuid/dist/cjs-browser/native.js +4 -0
  85. package/dist/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
  86. package/dist/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
  87. package/dist/node_modules/uuid/dist/cjs-browser/package.json +1 -0
  88. package/dist/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
  89. package/dist/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
  90. package/dist/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
  91. package/dist/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
  92. package/dist/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
  93. package/dist/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
  94. package/dist/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
  95. package/dist/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
  96. package/dist/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
  97. package/dist/node_modules/uuid/dist/cjs-browser/stringify.js +39 -0
  98. package/dist/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
  99. package/dist/node_modules/uuid/dist/cjs-browser/types.js +2 -0
  100. package/dist/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
  101. package/dist/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
  102. package/dist/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
  103. package/dist/node_modules/uuid/dist/cjs-browser/v1.js +87 -0
  104. package/dist/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
  105. package/dist/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
  106. package/dist/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
  107. package/dist/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
  108. package/dist/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
  109. package/dist/node_modules/uuid/dist/cjs-browser/v35.js +44 -0
  110. package/dist/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
  111. package/dist/node_modules/uuid/dist/cjs-browser/v4.js +29 -0
  112. package/dist/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
  113. package/dist/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
  114. package/dist/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
  115. package/dist/node_modules/uuid/dist/cjs-browser/v6.js +22 -0
  116. package/dist/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
  117. package/dist/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
  118. package/dist/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
  119. package/dist/node_modules/uuid/dist/cjs-browser/v7.js +69 -0
  120. package/dist/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
  121. package/dist/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
  122. package/dist/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
  123. package/dist/node_modules/uuid/dist/cjs-browser/version.js +10 -0
  124. package/dist/node_modules/uuid/dist/esm/bin/uuid +2 -0
  125. package/dist/node_modules/uuid/dist/esm/index.d.ts +15 -0
  126. package/dist/node_modules/uuid/dist/{esm-node → esm}/index.js +1 -1
  127. package/dist/node_modules/uuid/dist/esm/max.d.ts +2 -0
  128. package/dist/node_modules/uuid/dist/esm/max.js +1 -0
  129. package/dist/node_modules/uuid/dist/esm/md5.d.ts +4 -0
  130. package/dist/node_modules/uuid/dist/esm/md5.js +11 -0
  131. package/dist/node_modules/uuid/dist/esm/native.d.ts +6 -0
  132. package/dist/node_modules/uuid/dist/esm/native.js +2 -0
  133. package/dist/node_modules/uuid/dist/esm/nil.d.ts +2 -0
  134. package/dist/node_modules/uuid/dist/esm/nil.js +1 -0
  135. package/dist/node_modules/uuid/dist/esm/parse.d.ts +2 -0
  136. package/dist/node_modules/uuid/dist/esm/parse.js +9 -0
  137. package/dist/node_modules/uuid/dist/esm/regex.d.ts +2 -0
  138. package/dist/node_modules/uuid/dist/{esm-node → esm}/regex.js +1 -1
  139. package/dist/node_modules/uuid/dist/esm/rng.d.ts +1 -0
  140. package/dist/node_modules/uuid/dist/esm/rng.js +10 -0
  141. package/dist/node_modules/uuid/dist/esm/sha1.d.ts +4 -0
  142. package/dist/node_modules/uuid/dist/esm/sha1.js +11 -0
  143. package/dist/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
  144. package/dist/node_modules/uuid/dist/esm/stringify.js +35 -0
  145. package/dist/node_modules/uuid/dist/esm/types.d.ts +21 -0
  146. package/dist/node_modules/uuid/dist/esm/types.js +1 -0
  147. package/dist/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
  148. package/dist/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
  149. package/dist/node_modules/uuid/dist/esm/v1.d.ts +11 -0
  150. package/dist/node_modules/uuid/dist/esm/v1.js +83 -0
  151. package/dist/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
  152. package/dist/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
  153. package/dist/node_modules/uuid/dist/esm/v3.d.ts +9 -0
  154. package/dist/node_modules/uuid/dist/esm/v3.js +9 -0
  155. package/dist/node_modules/uuid/dist/esm/v35.d.ts +7 -0
  156. package/dist/node_modules/uuid/dist/esm/v35.js +39 -0
  157. package/dist/node_modules/uuid/dist/esm/v4.d.ts +4 -0
  158. package/dist/node_modules/uuid/dist/esm/v4.js +27 -0
  159. package/dist/node_modules/uuid/dist/esm/v5.d.ts +9 -0
  160. package/dist/node_modules/uuid/dist/esm/v5.js +9 -0
  161. package/dist/node_modules/uuid/dist/esm/v6.d.ts +4 -0
  162. package/dist/node_modules/uuid/dist/esm/v6.js +20 -0
  163. package/dist/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
  164. package/dist/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
  165. package/dist/node_modules/uuid/dist/esm/v7.d.ts +9 -0
  166. package/dist/node_modules/uuid/dist/esm/v7.js +65 -0
  167. package/dist/node_modules/uuid/dist/esm/validate.d.ts +2 -0
  168. package/dist/node_modules/uuid/dist/esm/validate.js +5 -0
  169. package/dist/node_modules/uuid/dist/esm/version.d.ts +2 -0
  170. package/dist/node_modules/uuid/dist/esm/version.js +8 -0
  171. package/dist/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
  172. package/dist/node_modules/uuid/dist/esm-browser/index.js +1 -1
  173. package/dist/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
  174. package/dist/node_modules/uuid/dist/esm-browser/max.js +1 -1
  175. package/dist/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
  176. package/dist/node_modules/uuid/dist/esm-browser/md5.js +113 -172
  177. package/dist/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
  178. package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -4
  179. package/dist/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
  180. package/dist/node_modules/uuid/dist/esm-browser/nil.js +1 -1
  181. package/dist/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
  182. package/dist/node_modules/uuid/dist/esm-browser/parse.js +6 -34
  183. package/dist/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
  184. package/dist/node_modules/uuid/dist/esm-browser/regex.js +1 -1
  185. package/dist/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
  186. package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -14
  187. package/dist/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
  188. package/dist/node_modules/uuid/dist/esm-browser/sha1.js +62 -68
  189. package/dist/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
  190. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +29 -25
  191. package/dist/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
  192. package/dist/node_modules/uuid/dist/esm-browser/types.js +1 -0
  193. package/dist/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
  194. package/dist/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
  195. package/dist/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
  196. package/dist/node_modules/uuid/dist/esm-browser/v1.js +75 -117
  197. package/dist/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
  198. package/dist/node_modules/uuid/dist/esm-browser/v1ToV6.js +6 -16
  199. package/dist/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
  200. package/dist/node_modules/uuid/dist/esm-browser/v3.js +8 -3
  201. package/dist/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
  202. package/dist/node_modules/uuid/dist/esm-browser/v35.js +31 -47
  203. package/dist/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
  204. package/dist/node_modules/uuid/dist/esm-browser/v4.js +21 -19
  205. package/dist/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
  206. package/dist/node_modules/uuid/dist/esm-browser/v5.js +8 -3
  207. package/dist/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
  208. package/dist/node_modules/uuid/dist/esm-browser/v6.js +16 -32
  209. package/dist/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
  210. package/dist/node_modules/uuid/dist/esm-browser/v6ToV1.js +5 -15
  211. package/dist/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
  212. package/dist/node_modules/uuid/dist/esm-browser/v7.js +58 -139
  213. package/dist/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
  214. package/dist/node_modules/uuid/dist/esm-browser/validate.js +2 -2
  215. package/dist/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
  216. package/dist/node_modules/uuid/dist/esm-browser/version.js +5 -5
  217. package/dist/node_modules/uuid/package.json +1 -1
  218. package/dist/server/plugin.js +10 -5
  219. package/dist/swagger/index.d.ts +542 -0
  220. package/dist/swagger/index.js +492 -0
  221. package/package.json +2 -2
  222. package/dist/client-v2/49.83c515a7f909c364.js +0 -10
  223. package/dist/node_modules/uuid/dist/bin/uuid +0 -2
  224. package/dist/node_modules/uuid/dist/commonjs-browser/index.js +0 -104
  225. package/dist/node_modules/uuid/dist/commonjs-browser/max.js +0 -7
  226. package/dist/node_modules/uuid/dist/commonjs-browser/md5.js +0 -200
  227. package/dist/node_modules/uuid/dist/commonjs-browser/native.js +0 -10
  228. package/dist/node_modules/uuid/dist/commonjs-browser/nil.js +0 -7
  229. package/dist/node_modules/uuid/dist/commonjs-browser/parse.js +0 -44
  230. package/dist/node_modules/uuid/dist/commonjs-browser/regex.js +0 -7
  231. package/dist/node_modules/uuid/dist/commonjs-browser/rng.js +0 -23
  232. package/dist/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -82
  233. package/dist/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -38
  234. package/dist/node_modules/uuid/dist/commonjs-browser/v1.js +0 -131
  235. package/dist/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +0 -26
  236. package/dist/node_modules/uuid/dist/commonjs-browser/v3.js +0 -11
  237. package/dist/node_modules/uuid/dist/commonjs-browser/v35.js +0 -63
  238. package/dist/node_modules/uuid/dist/commonjs-browser/v4.js +0 -32
  239. package/dist/node_modules/uuid/dist/commonjs-browser/v5.js +0 -11
  240. package/dist/node_modules/uuid/dist/commonjs-browser/v6.js +0 -42
  241. package/dist/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +0 -26
  242. package/dist/node_modules/uuid/dist/commonjs-browser/v7.js +0 -152
  243. package/dist/node_modules/uuid/dist/commonjs-browser/validate.js +0 -12
  244. package/dist/node_modules/uuid/dist/commonjs-browser/version.js +0 -15
  245. package/dist/node_modules/uuid/dist/esm-node/max.js +0 -1
  246. package/dist/node_modules/uuid/dist/esm-node/md5.js +0 -10
  247. package/dist/node_modules/uuid/dist/esm-node/native.js +0 -4
  248. package/dist/node_modules/uuid/dist/esm-node/nil.js +0 -1
  249. package/dist/node_modules/uuid/dist/esm-node/parse.js +0 -37
  250. package/dist/node_modules/uuid/dist/esm-node/rng.js +0 -10
  251. package/dist/node_modules/uuid/dist/esm-node/sha1.js +0 -10
  252. package/dist/node_modules/uuid/dist/esm-node/stringify.js +0 -31
  253. package/dist/node_modules/uuid/dist/esm-node/v1.js +0 -125
  254. package/dist/node_modules/uuid/dist/esm-node/v1ToV6.js +0 -20
  255. package/dist/node_modules/uuid/dist/esm-node/v3.js +0 -4
  256. package/dist/node_modules/uuid/dist/esm-node/v35.js +0 -55
  257. package/dist/node_modules/uuid/dist/esm-node/v4.js +0 -25
  258. package/dist/node_modules/uuid/dist/esm-node/v5.js +0 -4
  259. package/dist/node_modules/uuid/dist/esm-node/v6.js +0 -32
  260. package/dist/node_modules/uuid/dist/esm-node/v6ToV1.js +0 -20
  261. package/dist/node_modules/uuid/dist/esm-node/v7.js +0 -146
  262. package/dist/node_modules/uuid/dist/esm-node/validate.js +0 -5
  263. package/dist/node_modules/uuid/dist/esm-node/version.js +0 -8
  264. package/dist/node_modules/uuid/dist/index.js +0 -1
  265. package/dist/node_modules/uuid/dist/max.js +0 -7
  266. package/dist/node_modules/uuid/dist/md5-browser.js +0 -200
  267. package/dist/node_modules/uuid/dist/md5.js +0 -17
  268. package/dist/node_modules/uuid/dist/native-browser.js +0 -10
  269. package/dist/node_modules/uuid/dist/native.js +0 -11
  270. package/dist/node_modules/uuid/dist/nil.js +0 -7
  271. package/dist/node_modules/uuid/dist/parse.js +0 -44
  272. package/dist/node_modules/uuid/dist/regex.js +0 -7
  273. package/dist/node_modules/uuid/dist/rng-browser.js +0 -23
  274. package/dist/node_modules/uuid/dist/rng.js +0 -17
  275. package/dist/node_modules/uuid/dist/sha1-browser.js +0 -82
  276. package/dist/node_modules/uuid/dist/sha1.js +0 -17
  277. package/dist/node_modules/uuid/dist/stringify.js +0 -38
  278. package/dist/node_modules/uuid/dist/uuid-bin.js +0 -75
  279. package/dist/node_modules/uuid/dist/v1.js +0 -131
  280. package/dist/node_modules/uuid/dist/v1ToV6.js +0 -26
  281. package/dist/node_modules/uuid/dist/v3.js +0 -11
  282. package/dist/node_modules/uuid/dist/v35.js +0 -63
  283. package/dist/node_modules/uuid/dist/v4.js +0 -32
  284. package/dist/node_modules/uuid/dist/v5.js +0 -11
  285. package/dist/node_modules/uuid/dist/v6.js +0 -38
  286. package/dist/node_modules/uuid/dist/v6ToV1.js +0 -26
  287. package/dist/node_modules/uuid/dist/v7.js +0 -152
  288. package/dist/node_modules/uuid/dist/validate.js +0 -12
  289. package/dist/node_modules/uuid/dist/version.js +0 -15
@@ -0,0 +1,492 @@
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
+ const jsonObjectSchema = {
33
+ type: "object",
34
+ additionalProperties: true
35
+ };
36
+ const listParameters = [
37
+ {
38
+ name: "filter",
39
+ in: "query",
40
+ required: false,
41
+ description: "Filter object encoded as JSON.",
42
+ schema: jsonObjectSchema
43
+ },
44
+ {
45
+ name: "sort",
46
+ in: "query",
47
+ required: false,
48
+ description: "Sort fields, for example `-createdAt`.",
49
+ schema: {
50
+ oneOf: [
51
+ { type: "string" },
52
+ {
53
+ type: "array",
54
+ items: { type: "string" }
55
+ }
56
+ ]
57
+ }
58
+ },
59
+ {
60
+ name: "page",
61
+ in: "query",
62
+ required: false,
63
+ schema: {
64
+ type: "integer"
65
+ }
66
+ },
67
+ {
68
+ name: "pageSize",
69
+ in: "query",
70
+ required: false,
71
+ schema: {
72
+ type: "integer"
73
+ }
74
+ }
75
+ ];
76
+ const filterByTkParameter = {
77
+ name: "filterByTk",
78
+ in: "query",
79
+ required: true,
80
+ description: "Primary key value. For notification channels this is the channel `name`.",
81
+ schema: {
82
+ type: "string"
83
+ }
84
+ };
85
+ var swagger_default = {
86
+ openapi: "3.0.2",
87
+ info: {
88
+ title: "NocoBase API - Notification manager plugin"
89
+ },
90
+ paths: {
91
+ "/notificationChannels:list": {
92
+ get: {
93
+ tags: ["notificationChannels"],
94
+ summary: "List notification channels",
95
+ description: "List configured notification channels. Channel `name` is the primary key used by send APIs.",
96
+ parameters: listParameters,
97
+ responses: {
98
+ 200: {
99
+ description: "OK",
100
+ content: {
101
+ "application/json": {
102
+ schema: {
103
+ $ref: "#/components/schemas/NotificationChannelListResponse"
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+ },
111
+ "/notificationChannels:get": {
112
+ get: {
113
+ tags: ["notificationChannels"],
114
+ summary: "Get one notification channel",
115
+ parameters: [filterByTkParameter],
116
+ responses: {
117
+ 200: {
118
+ description: "OK",
119
+ content: {
120
+ "application/json": {
121
+ schema: {
122
+ $ref: "#/components/schemas/NotificationChannelResponse"
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "/notificationChannels:create": {
131
+ post: {
132
+ tags: ["notificationChannels"],
133
+ summary: "Create a notification channel",
134
+ requestBody: {
135
+ required: true,
136
+ content: {
137
+ "application/json": {
138
+ schema: {
139
+ $ref: "#/components/schemas/NotificationChannelInput"
140
+ }
141
+ }
142
+ }
143
+ },
144
+ responses: {
145
+ 200: {
146
+ description: "OK",
147
+ content: {
148
+ "application/json": {
149
+ schema: {
150
+ $ref: "#/components/schemas/NotificationChannelResponse"
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ },
158
+ "/notificationChannels:update": {
159
+ post: {
160
+ tags: ["notificationChannels"],
161
+ summary: "Update a notification channel",
162
+ parameters: [filterByTkParameter],
163
+ requestBody: {
164
+ required: true,
165
+ content: {
166
+ "application/json": {
167
+ schema: {
168
+ $ref: "#/components/schemas/NotificationChannelInput"
169
+ }
170
+ }
171
+ }
172
+ },
173
+ responses: {
174
+ 200: {
175
+ description: "OK",
176
+ content: {
177
+ "application/json": {
178
+ schema: {
179
+ $ref: "#/components/schemas/NotificationChannelResponse"
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ }
186
+ },
187
+ "/notificationChannels:destroy": {
188
+ post: {
189
+ tags: ["notificationChannels"],
190
+ summary: "Delete a notification channel",
191
+ parameters: [filterByTkParameter],
192
+ responses: {
193
+ 200: {
194
+ description: "OK"
195
+ }
196
+ }
197
+ }
198
+ },
199
+ "/notificationSendLogs:list": {
200
+ get: {
201
+ tags: ["notificationSendLogs"],
202
+ summary: "List notification send logs",
203
+ description: "List delivery records written by the notification manager after send attempts.",
204
+ parameters: listParameters,
205
+ responses: {
206
+ 200: {
207
+ description: "OK",
208
+ content: {
209
+ "application/json": {
210
+ schema: {
211
+ $ref: "#/components/schemas/NotificationSendLogListResponse"
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
217
+ }
218
+ },
219
+ "/notificationSendLogs:get": {
220
+ get: {
221
+ tags: ["notificationSendLogs"],
222
+ summary: "Get one notification send log",
223
+ parameters: [
224
+ {
225
+ ...filterByTkParameter,
226
+ description: "Send log UUID."
227
+ }
228
+ ],
229
+ responses: {
230
+ 200: {
231
+ description: "OK",
232
+ content: {
233
+ "application/json": {
234
+ schema: {
235
+ $ref: "#/components/schemas/NotificationSendLogResponse"
236
+ }
237
+ }
238
+ }
239
+ }
240
+ }
241
+ }
242
+ },
243
+ "/messages:send": {
244
+ post: {
245
+ tags: ["notifications"],
246
+ summary: "Queue a notification send",
247
+ description: "Send a notification through a configured channel. The manager may enqueue delivery and writes a `notificationSendLogs` record when the send attempt is processed.",
248
+ requestBody: {
249
+ required: true,
250
+ content: {
251
+ "application/json": {
252
+ schema: {
253
+ $ref: "#/components/schemas/NotificationSendRequest"
254
+ }
255
+ }
256
+ }
257
+ },
258
+ responses: {
259
+ 200: {
260
+ description: "OK",
261
+ content: {
262
+ "application/json": {
263
+ schema: {
264
+ $ref: "#/components/schemas/NotificationSendResponse"
265
+ }
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ }
272
+ },
273
+ components: {
274
+ schemas: {
275
+ NotificationChannel: {
276
+ type: "object",
277
+ properties: {
278
+ name: {
279
+ type: "string",
280
+ description: "Channel primary key, usually generated with the `s_` prefix."
281
+ },
282
+ title: {
283
+ type: "string"
284
+ },
285
+ description: {
286
+ type: "string"
287
+ },
288
+ notificationType: {
289
+ type: "string",
290
+ description: "Registered notification channel type, for example `in-app-message` or `email`."
291
+ },
292
+ options: jsonObjectSchema,
293
+ meta: jsonObjectSchema,
294
+ createdAt: {
295
+ type: "string",
296
+ format: "date-time"
297
+ },
298
+ updatedAt: {
299
+ type: "string",
300
+ format: "date-time"
301
+ }
302
+ },
303
+ additionalProperties: true
304
+ },
305
+ NotificationChannelInput: {
306
+ type: "object",
307
+ required: ["name", "title", "notificationType"],
308
+ properties: {
309
+ name: {
310
+ type: "string"
311
+ },
312
+ title: {
313
+ type: "string"
314
+ },
315
+ description: {
316
+ type: "string"
317
+ },
318
+ notificationType: {
319
+ type: "string"
320
+ },
321
+ options: jsonObjectSchema,
322
+ meta: jsonObjectSchema
323
+ },
324
+ additionalProperties: true
325
+ },
326
+ NotificationChannelResponse: {
327
+ type: "object",
328
+ properties: {
329
+ data: {
330
+ $ref: "#/components/schemas/NotificationChannel"
331
+ }
332
+ }
333
+ },
334
+ NotificationChannelListResponse: {
335
+ type: "object",
336
+ properties: {
337
+ data: {
338
+ type: "array",
339
+ items: {
340
+ $ref: "#/components/schemas/NotificationChannel"
341
+ }
342
+ },
343
+ meta: jsonObjectSchema
344
+ }
345
+ },
346
+ NotificationSendLog: {
347
+ type: "object",
348
+ properties: {
349
+ id: {
350
+ type: "string",
351
+ format: "uuid"
352
+ },
353
+ channelName: {
354
+ type: "string"
355
+ },
356
+ channelTitle: {
357
+ type: "string"
358
+ },
359
+ triggerFrom: {
360
+ type: "string"
361
+ },
362
+ notificationType: {
363
+ type: "string"
364
+ },
365
+ status: {
366
+ type: "string",
367
+ enum: ["success", "failure"]
368
+ },
369
+ message: jsonObjectSchema,
370
+ reason: {
371
+ type: "string"
372
+ },
373
+ createdAt: {
374
+ type: "string",
375
+ format: "date-time"
376
+ },
377
+ updatedAt: {
378
+ type: "string",
379
+ format: "date-time"
380
+ }
381
+ },
382
+ additionalProperties: true
383
+ },
384
+ NotificationSendLogResponse: {
385
+ type: "object",
386
+ properties: {
387
+ data: {
388
+ $ref: "#/components/schemas/NotificationSendLog"
389
+ }
390
+ }
391
+ },
392
+ NotificationSendLogListResponse: {
393
+ type: "object",
394
+ properties: {
395
+ data: {
396
+ type: "array",
397
+ items: {
398
+ $ref: "#/components/schemas/NotificationSendLog"
399
+ }
400
+ },
401
+ meta: jsonObjectSchema
402
+ }
403
+ },
404
+ NotificationReceivers: {
405
+ oneOf: [
406
+ {
407
+ type: "object",
408
+ required: ["type", "value"],
409
+ properties: {
410
+ type: {
411
+ type: "string",
412
+ enum: ["userId"]
413
+ },
414
+ value: {
415
+ type: "array",
416
+ items: {
417
+ type: "integer"
418
+ }
419
+ }
420
+ }
421
+ },
422
+ {
423
+ type: "object",
424
+ required: ["type", "channelType", "value"],
425
+ properties: {
426
+ type: {
427
+ type: "string",
428
+ enum: ["channel-self-defined"]
429
+ },
430
+ channelType: {
431
+ type: "string"
432
+ },
433
+ value: {}
434
+ }
435
+ }
436
+ ]
437
+ },
438
+ NotificationSendRequest: {
439
+ type: "object",
440
+ required: ["channelName", "message", "triggerFrom"],
441
+ properties: {
442
+ channelName: {
443
+ type: "string",
444
+ description: "Existing `notificationChannels.name`."
445
+ },
446
+ message: jsonObjectSchema,
447
+ receivers: {
448
+ $ref: "#/components/schemas/NotificationReceivers"
449
+ },
450
+ triggerFrom: {
451
+ type: "string",
452
+ example: "workflow"
453
+ },
454
+ data: jsonObjectSchema
455
+ }
456
+ },
457
+ NotificationSendResult: {
458
+ type: "object",
459
+ properties: {
460
+ status: {
461
+ type: "string",
462
+ enum: ["success", "failure"]
463
+ },
464
+ reason: {
465
+ type: "string"
466
+ },
467
+ triggerFrom: {
468
+ type: "string"
469
+ },
470
+ channelName: {
471
+ type: "string"
472
+ },
473
+ receivers: {
474
+ $ref: "#/components/schemas/NotificationReceivers"
475
+ },
476
+ queued: {
477
+ type: "boolean"
478
+ }
479
+ },
480
+ additionalProperties: true
481
+ },
482
+ NotificationSendResponse: {
483
+ type: "object",
484
+ properties: {
485
+ data: {
486
+ $ref: "#/components/schemas/NotificationSendResult"
487
+ }
488
+ }
489
+ }
490
+ }
491
+ }
492
+ };
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description.ru-RU": "Предоставляет единый сервис управления, включающий конфигурирование каналов, логирование и другие функции, поддерживает настройку различных каналов уведомлений, включая внутренние сообщения и электронную почту.",
7
7
  "displayName.zh-CN": "通知管理",
8
8
  "description.zh-CN": "提供统一的管理服务,涵盖渠道配置、日志记录等功能,支持多种通知渠道的配置,包括站内信和电子邮件等。",
9
- "version": "2.2.0-alpha.1",
9
+ "version": "2.2.0-alpha.2",
10
10
  "homepage": "https://docs.nocobase.com/handbook/notification-manager",
11
11
  "homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/notification-manager",
12
12
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/notification-manager",
@@ -36,5 +36,5 @@
36
36
  "Notification"
37
37
  ],
38
38
  "license": "Apache-2.0",
39
- "gitHead": "303663aba6c6eefa27e6a6435b4c0352074ec40f"
39
+ "gitHead": "9dd5224bb8f6c1ac12d766b9f175bdc29bddd845"
40
40
  }
@@ -1,10 +0,0 @@
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
- "use strict";(self.webpackChunk_nocobase_plugin_notification_manager_client_v2=self.webpackChunk_nocobase_plugin_notification_manager_client_v2||[]).push([["49"],{624:function(e,t,n){n.r(t),n.d(t,{default:function(){return j}});var r=n(375),o=n(485),i=n(694),a=n(625),l=n(59),u=n(773),c=n(155),s=n.n(c),f=n(553),m={name:f.L.channels,dataCategory:"system",migrationRules:["overwrite","schema-only"],filterTargetKey:"name",autoGenId:!1,createdAt:!0,createdBy:!0,updatedAt:!0,updatedBy:!0,fields:[{name:"name",type:"uid",prefix:"s_",primaryKey:!0,interface:"input",uiSchema:{type:"string",title:'{{t("Channel name")}}',"x-component":"Input",required:!0,description:"{{t('Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.')}}"}},{name:"title",type:"string",interface:"input",uiSchema:{type:"string","x-component":"Input",title:'{{t("Channel display name")}}',required:!0}},{name:"options",type:"json",interface:"json",uiSchema:{type:"object","x-component":"ConfigForm"}},{name:"meta",type:"json",interface:"json"},{interface:"input",type:"string",name:"notificationType",uiSchema:{type:"string",title:'{{t("Notification type")}}',"x-component":"Select",enum:"{{notificationTypeOptions}}",required:!0}},{name:"description",type:"text",interface:"textarea",uiSchema:{type:"string","x-component":"Input.TextArea",title:'{{t("Description")}}'}}]},p=n(488),d=n(667),y=n(705);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,l,"next",e)}function l(e){h(i,r,o,a,l,"throw",e)}a(void 0)})}}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:u(0)}),l(a,"throw",{value:u(1)}),l(a,"return",{value:u(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function u(l){return function(u){var c=[l,u];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function O(e){var t,n=(0,p.yr)().t,r=(0,i.useFlowContext)(),m=(0,c.useMemo)(function(){return r.api.resource(f.L.channels)},[r.api]),d=E(l.Form.useForm(),1)[0],y=E((0,c.useState)(!1),2),b=y[0],h=y[1],O=(0,c.useMemo)(function(){return"edit"===e.mode?(0,u.cloneDeep)(e.record||{}):{name:(0,i.randomId)("s_"),notificationType:e.notificationType,options:{}}},[e.mode,e.notificationType,e.record]);(0,c.useEffect)(function(){d.setFieldsValue(O)},[d,O]);var S=e.plugin.channelTypes.get(e.notificationType),j=null==S||null==(t=S.components)?void 0:t.ChannelConfigFormLoader,T=(0,c.useMemo)(function(){return j?(0,c.lazy)(j):null},[j]),A=(0,a.useMemoizedFn)(function(){return g(function(){var t,n,r;return w(this,function(o){switch(o.label){case 0:return[4,d.validateFields()];case 1:t=o.sent(),h(!0),o.label=2;case 2:if(o.trys.push([2,,8,9]),"create"!==e.mode)return[3,4];return[4,m.create({values:t})];case 3:case 5:return o.sent(),e.onSubmitted(),[3,7];case 4:var i,a;if((null==(n=e.record)?void 0:n.name)==null)return[3,6];return i=v({},(0,u.cloneDeep)(e.record),t),a=a={options:v({},e.record.options||{},t.options||{})},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(a,e))}),r=i,[4,m.update({filterByTk:e.record.name,values:r})];case 6:throw Error("Edit mode requires record.name; got ".concat(JSON.stringify(e.record)));case 7:return[3,9];case 8:return h(!1),[7];case 9:return[2]}})})()});return s().createElement(o.DrawerFormLayout,{title:n("create"===e.mode?"Add new":"Edit"),onSubmit:A,submitting:b,submitText:n("Submit"),cancelText:n("Cancel")},s().createElement(l.Form,{form:d,layout:"vertical",initialValues:O},s().createElement(l.Form.Item,{name:"name",label:n("Channel name"),extra:n("Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter."),rules:[{required:!0,message:n("The field value is required")}]},s().createElement(l.Input,{disabled:!0})),s().createElement(l.Form.Item,{name:"title",label:n("Channel display name"),rules:[{required:!0,message:n("The field value is required")}]},s().createElement(l.Input,null)),s().createElement(l.Form.Item,{name:"description",label:n("Description")},s().createElement(l.Input.TextArea,{autoSize:{minRows:2}})),s().createElement(l.Form.Item,{name:"notificationType",hidden:!0},s().createElement(l.Input,null)),T?s().createElement(c.Suspense,{fallback:s().createElement(l.Spin,null)},s().createElement(T,null)):null))}function S(){var e,t,n=(0,p.yr)().t,u=(0,p.kj)(),m=(0,i.useFlowContext)(),y=(0,i.useFlowEngine)(),b=l.theme.useToken().token,h=l.App.useApp(),S=h.modal,j=h.message,T=(0,c.useMemo)(function(){return m.api.resource(f.L.channels)},[m.api]),A=m.app.pm.get(d.A),k=(0,c.useMemo)(function(){var e,t,n,r;return null==(r=y.context.dataSourceManager)||null==(n=r.getDataSource)||null==(t=n.call(r,"main"))||null==(e=t.getCollection)?void 0:e.call(t,f.L.channels)},[y]),C=E((0,c.useState)(1),2),P=C[0],x=C[1],I=E((0,c.useState)(o.DEFAULT_PAGE_SIZE),2),F=I[0],D=I[1],_=E((0,c.useState)([]),2),M=_[0],z=_[1],q=E((0,c.useState)(void 0),2),N=q[0],R=q[1],B=(0,a.useRequest)(function(){return g(function(){return w(this,function(e){switch(e.label){case 0:return[4,T.list(v({page:P,pageSize:F,sort:["createdAt"]},N?{filter:N}:{}))];case 1:var t,n,r,o,i;return[2,{records:o=Array.isArray(r=null==(n=null==(t=e.sent())?void 0:t.data)?void 0:n.data)?r:Array.isArray(null==r?void 0:r.data)?r.data:[],total:(i=(null==n?void 0:n.meta)||(null==r?void 0:r.meta)||{}).count||i.total||o.length}]}})})()},{refreshDeps:[P,F,N]}),L=B.data,G=B.loading,K=B.refresh,U=(0,a.useMemoizedFn)(function(e,t){if(t!==F){D(t),x(1);return}x(e)}),V=(0,c.useMemo)(function(){return A?Array.from(A.channelTypes.getEntities()).map(function(e){return E(e,2)[1]}):[]},[A]),$=(0,a.useMemoizedFn)(function(e){if(!e)return"";var t=V.find(function(t){return t.type===e});return u((null==t?void 0:t.title)||e)}),J=(0,a.useMemoizedFn)(function(e,t,n){m.viewer.drawer({width:"50%",closable:!0,content:function(){return s().createElement(O,{mode:e,notificationType:t,plugin:A,record:n,onSubmitted:function(){return K()}})}})}),Z=(0,a.useMemoizedFn)(function(e){S.confirm({title:n("Delete"),content:n("Are you sure you want to delete it?"),onOk:function(){return g(function(){return w(this,function(t){switch(t.label){case 0:return[4,T.destroy({filterByTk:e})];case 1:return t.sent(),z([]),K(),[2]}})})()}})}),H=(null==(t=m.api)||null==(e=t.auth)?void 0:e.locale)==="zh-CN"?"https://docs-cn.nocobase.com/handbook/notification-manager":"https://docs.nocobase.com/handbook/notification-manager",Q=(0,c.useMemo)(function(){return V.filter(function(e){var t;return(null==(t=e.meta)?void 0:t.creatable)!==!1})},[V]),W=(0,c.useMemo)(function(){return 0===Q.length?{items:[{key:"__empty__",label:s().createElement(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,description:s().createElement(s().Fragment,null,n("No channel enabled yet"),s().createElement("br",null),s().createElement("a",{target:"_blank",href:H,rel:"noreferrer"},n("View documentation")))})}]}:{items:Q.map(function(e){return{key:e.type,label:u(e.title),onClick:function(){return J("create",e.type)}}})}},[Q,u,H,J,n]),X=(0,c.useMemo)(function(){return[{title:n("Channel display name"),dataIndex:"title",ellipsis:!0,render:function(e){return e?u(e):""}},{title:n("Channel name"),dataIndex:"name",ellipsis:!0},{title:n("Description"),dataIndex:"description",ellipsis:!0,render:function(e){return e?u(e):""}},{title:n("Notification type"),dataIndex:"notificationType",render:function(e){return e?s().createElement(l.Tag,null,$(e)):null}},{title:n("Actions"),width:160,render:function(e,t){var r,o;return s().createElement(l.Space,null,(null==(r=t.meta)?void 0:r.editable)===!1?null:s().createElement("a",{onClick:function(){if(t.notificationType){if(!(null==A?void 0:A.channelTypes.get(t.notificationType)))return void j.error(n("Notification type {{type}} is not registered.").replace("{{type}}",t.notificationType));J("edit",t.notificationType,t)}}},n("Edit")),(null==(o=t.meta)?void 0:o.deletable)===!1?null:s().createElement("a",{onClick:function(){return Z(t.name)}},n("Delete")))}}]},[$,u,Z,j,J,A,n]);return s().createElement(l.Card,{variant:"borderless"},s().createElement(l.Flex,{justify:"space-between",style:{marginBottom:b.margin}},s().createElement(o.CollectionFilter,{collection:k,onChange:R,t:u}),s().createElement(l.Space,null,s().createElement(l.Button,{icon:s().createElement(r.ReloadOutlined,null),onClick:function(){return K()}},n("Refresh")),s().createElement(l.Button,{icon:s().createElement(r.DeleteOutlined,null),disabled:!M.length,onClick:function(){return Z(M)}},n("Delete")),s().createElement(l.Dropdown,{menu:W},s().createElement(l.Button,{type:"primary",icon:s().createElement(r.PlusOutlined,null)},n("Add new")," ",s().createElement(r.DownOutlined,null))))),s().createElement(o.Table,{rowKey:"name",loading:G,columns:X,dataSource:(null==L?void 0:L.records)||[],rowSelection:{selectedRowKeys:M,onChange:z},pagination:{current:P,pageSize:F,total:(null==L?void 0:L.total)||0,onChange:U}}))}function j(){var e=(0,i.useFlowContext)(),t=(0,p.kj)(),n=e.app.pm.get(d.A),r=(0,c.useMemo)(function(){var e=(0,y.k)(n,t);return[(0,y.N)(m,e)]},[n,t]);return s().createElement(o.ExtendCollectionsProvider,{collections:r},s().createElement(S,null))}},705:function(e,t,n){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function a(e,t){return e?Array.from(e.channelTypes.getEntities()).map(function(e){var n=(function(e){if(Array.isArray(e))return e}(e)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],i=!0,a=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return{label:t(n.title),value:n.type}}):[]}function l(e,t){return i(o({},e),{fields:e.fields.map(function(e){return(null==e?void 0:e.name)==="notificationType"&&e.uiSchema?i(o({},e),{uiSchema:i(o({},e.uiSchema),{enum:t})}):e})})}n.d(t,{N:function(){return l},k:function(){return a}})}}]);
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- require('../uuid-bin');
@@ -1,104 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "MAX", {
7
- enumerable: true,
8
- get: function get() {
9
- return _max.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "NIL", {
13
- enumerable: true,
14
- get: function get() {
15
- return _nil.default;
16
- }
17
- });
18
- Object.defineProperty(exports, "parse", {
19
- enumerable: true,
20
- get: function get() {
21
- return _parse.default;
22
- }
23
- });
24
- Object.defineProperty(exports, "stringify", {
25
- enumerable: true,
26
- get: function get() {
27
- return _stringify.default;
28
- }
29
- });
30
- Object.defineProperty(exports, "v1", {
31
- enumerable: true,
32
- get: function get() {
33
- return _v.default;
34
- }
35
- });
36
- Object.defineProperty(exports, "v1ToV6", {
37
- enumerable: true,
38
- get: function get() {
39
- return _v1ToV.default;
40
- }
41
- });
42
- Object.defineProperty(exports, "v3", {
43
- enumerable: true,
44
- get: function get() {
45
- return _v2.default;
46
- }
47
- });
48
- Object.defineProperty(exports, "v4", {
49
- enumerable: true,
50
- get: function get() {
51
- return _v3.default;
52
- }
53
- });
54
- Object.defineProperty(exports, "v5", {
55
- enumerable: true,
56
- get: function get() {
57
- return _v4.default;
58
- }
59
- });
60
- Object.defineProperty(exports, "v6", {
61
- enumerable: true,
62
- get: function get() {
63
- return _v5.default;
64
- }
65
- });
66
- Object.defineProperty(exports, "v6ToV1", {
67
- enumerable: true,
68
- get: function get() {
69
- return _v6ToV.default;
70
- }
71
- });
72
- Object.defineProperty(exports, "v7", {
73
- enumerable: true,
74
- get: function get() {
75
- return _v6.default;
76
- }
77
- });
78
- Object.defineProperty(exports, "validate", {
79
- enumerable: true,
80
- get: function get() {
81
- return _validate.default;
82
- }
83
- });
84
- Object.defineProperty(exports, "version", {
85
- enumerable: true,
86
- get: function get() {
87
- return _version.default;
88
- }
89
- });
90
- var _max = _interopRequireDefault(require("./max.js"));
91
- var _nil = _interopRequireDefault(require("./nil.js"));
92
- var _parse = _interopRequireDefault(require("./parse.js"));
93
- var _stringify = _interopRequireDefault(require("./stringify.js"));
94
- var _v = _interopRequireDefault(require("./v1.js"));
95
- var _v1ToV = _interopRequireDefault(require("./v1ToV6.js"));
96
- var _v2 = _interopRequireDefault(require("./v3.js"));
97
- var _v3 = _interopRequireDefault(require("./v4.js"));
98
- var _v4 = _interopRequireDefault(require("./v5.js"));
99
- var _v5 = _interopRequireDefault(require("./v6.js"));
100
- var _v6ToV = _interopRequireDefault(require("./v6ToV1.js"));
101
- var _v6 = _interopRequireDefault(require("./v7.js"));
102
- var _validate = _interopRequireDefault(require("./validate.js"));
103
- var _version = _interopRequireDefault(require("./version.js"));
104
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = exports.default = 'ffffffff-ffff-ffff-ffff-ffffffffffff';