@nocobase/plugin-notification-in-app-message 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 (265) hide show
  1. package/dist/client/840.ce9ba2a36037778a.js +10 -0
  2. package/dist/client/index.js +1 -1
  3. package/dist/client-v2/839.1731373ad55724b2.js +10 -0
  4. package/dist/client-v2/components/MessageConfigForm.d.ts +12 -0
  5. package/dist/client-v2/index.js +1 -1
  6. package/dist/client-v2/plugin.d.ts +0 -5
  7. package/dist/externalVersion.js +12 -10
  8. package/dist/node_modules/uuid/dist/cjs/index.d.ts +15 -0
  9. package/dist/node_modules/uuid/dist/cjs/index.js +1 -0
  10. package/dist/node_modules/uuid/dist/cjs/max.d.ts +2 -0
  11. package/dist/node_modules/uuid/dist/cjs/max.js +3 -0
  12. package/dist/node_modules/uuid/dist/cjs/md5.d.ts +4 -0
  13. package/dist/node_modules/uuid/dist/cjs/md5.js +13 -0
  14. package/dist/node_modules/uuid/dist/cjs/native.d.ts +6 -0
  15. package/dist/node_modules/uuid/dist/cjs/native.js +4 -0
  16. package/dist/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
  17. package/dist/node_modules/uuid/dist/cjs/nil.js +3 -0
  18. package/dist/node_modules/uuid/dist/cjs/package.json +1 -0
  19. package/dist/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
  20. package/dist/node_modules/uuid/dist/cjs/parse.js +11 -0
  21. package/dist/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
  22. package/dist/node_modules/uuid/dist/cjs/regex.js +3 -0
  23. package/dist/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
  24. package/dist/node_modules/uuid/dist/cjs/rng.js +13 -0
  25. package/dist/node_modules/uuid/dist/cjs/sha1.d.ts +4 -0
  26. package/dist/node_modules/uuid/dist/cjs/sha1.js +13 -0
  27. package/dist/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
  28. package/dist/node_modules/uuid/dist/cjs/stringify.js +39 -0
  29. package/dist/node_modules/uuid/dist/cjs/types.d.ts +21 -0
  30. package/dist/node_modules/uuid/dist/cjs/types.js +2 -0
  31. package/dist/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
  32. package/dist/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
  33. package/dist/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
  34. package/dist/node_modules/uuid/dist/cjs/v1.js +87 -0
  35. package/dist/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
  36. package/dist/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
  37. package/dist/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
  38. package/dist/node_modules/uuid/dist/cjs/v3.js +14 -0
  39. package/dist/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
  40. package/dist/node_modules/uuid/dist/cjs/v35.js +44 -0
  41. package/dist/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
  42. package/dist/node_modules/uuid/dist/cjs/v4.js +29 -0
  43. package/dist/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
  44. package/dist/node_modules/uuid/dist/cjs/v5.js +14 -0
  45. package/dist/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
  46. package/dist/node_modules/uuid/dist/cjs/v6.js +22 -0
  47. package/dist/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
  48. package/dist/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
  49. package/dist/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
  50. package/dist/node_modules/uuid/dist/cjs/v7.js +69 -0
  51. package/dist/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
  52. package/dist/node_modules/uuid/dist/cjs/validate.js +7 -0
  53. package/dist/node_modules/uuid/dist/cjs/version.d.ts +2 -0
  54. package/dist/node_modules/uuid/dist/cjs/version.js +10 -0
  55. package/dist/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
  56. package/dist/node_modules/uuid/dist/cjs-browser/index.js +31 -0
  57. package/dist/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
  58. package/dist/node_modules/uuid/dist/cjs-browser/max.js +3 -0
  59. package/dist/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
  60. package/dist/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
  61. package/dist/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
  62. package/dist/node_modules/uuid/dist/cjs-browser/native.js +4 -0
  63. package/dist/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
  64. package/dist/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
  65. package/dist/node_modules/uuid/dist/cjs-browser/package.json +1 -0
  66. package/dist/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
  67. package/dist/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
  68. package/dist/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
  69. package/dist/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
  70. package/dist/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
  71. package/dist/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
  72. package/dist/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
  73. package/dist/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
  74. package/dist/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
  75. package/dist/node_modules/uuid/dist/cjs-browser/stringify.js +39 -0
  76. package/dist/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
  77. package/dist/node_modules/uuid/dist/cjs-browser/types.js +2 -0
  78. package/dist/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
  79. package/dist/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
  80. package/dist/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
  81. package/dist/node_modules/uuid/dist/cjs-browser/v1.js +87 -0
  82. package/dist/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
  83. package/dist/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
  84. package/dist/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
  85. package/dist/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
  86. package/dist/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
  87. package/dist/node_modules/uuid/dist/cjs-browser/v35.js +44 -0
  88. package/dist/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
  89. package/dist/node_modules/uuid/dist/cjs-browser/v4.js +29 -0
  90. package/dist/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
  91. package/dist/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
  92. package/dist/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
  93. package/dist/node_modules/uuid/dist/cjs-browser/v6.js +22 -0
  94. package/dist/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
  95. package/dist/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
  96. package/dist/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
  97. package/dist/node_modules/uuid/dist/cjs-browser/v7.js +69 -0
  98. package/dist/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
  99. package/dist/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
  100. package/dist/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
  101. package/dist/node_modules/uuid/dist/cjs-browser/version.js +10 -0
  102. package/dist/node_modules/uuid/dist/esm/bin/uuid +2 -0
  103. package/dist/node_modules/uuid/dist/esm/index.d.ts +15 -0
  104. package/dist/node_modules/uuid/dist/{esm-node → esm}/index.js +1 -1
  105. package/dist/node_modules/uuid/dist/esm/max.d.ts +2 -0
  106. package/dist/node_modules/uuid/dist/esm/max.js +1 -0
  107. package/dist/node_modules/uuid/dist/esm/md5.d.ts +4 -0
  108. package/dist/node_modules/uuid/dist/esm/md5.js +11 -0
  109. package/dist/node_modules/uuid/dist/esm/native.d.ts +6 -0
  110. package/dist/node_modules/uuid/dist/esm/native.js +2 -0
  111. package/dist/node_modules/uuid/dist/esm/nil.d.ts +2 -0
  112. package/dist/node_modules/uuid/dist/esm/nil.js +1 -0
  113. package/dist/node_modules/uuid/dist/esm/parse.d.ts +2 -0
  114. package/dist/node_modules/uuid/dist/esm/parse.js +9 -0
  115. package/dist/node_modules/uuid/dist/esm/regex.d.ts +2 -0
  116. package/dist/node_modules/uuid/dist/{esm-node → esm}/regex.js +1 -1
  117. package/dist/node_modules/uuid/dist/esm/rng.d.ts +1 -0
  118. package/dist/node_modules/uuid/dist/esm/rng.js +10 -0
  119. package/dist/node_modules/uuid/dist/esm/sha1.d.ts +4 -0
  120. package/dist/node_modules/uuid/dist/esm/sha1.js +11 -0
  121. package/dist/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
  122. package/dist/node_modules/uuid/dist/esm/stringify.js +35 -0
  123. package/dist/node_modules/uuid/dist/esm/types.d.ts +21 -0
  124. package/dist/node_modules/uuid/dist/esm/types.js +1 -0
  125. package/dist/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
  126. package/dist/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
  127. package/dist/node_modules/uuid/dist/esm/v1.d.ts +11 -0
  128. package/dist/node_modules/uuid/dist/esm/v1.js +83 -0
  129. package/dist/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
  130. package/dist/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
  131. package/dist/node_modules/uuid/dist/esm/v3.d.ts +9 -0
  132. package/dist/node_modules/uuid/dist/esm/v3.js +9 -0
  133. package/dist/node_modules/uuid/dist/esm/v35.d.ts +7 -0
  134. package/dist/node_modules/uuid/dist/esm/v35.js +39 -0
  135. package/dist/node_modules/uuid/dist/esm/v4.d.ts +4 -0
  136. package/dist/node_modules/uuid/dist/esm/v4.js +27 -0
  137. package/dist/node_modules/uuid/dist/esm/v5.d.ts +9 -0
  138. package/dist/node_modules/uuid/dist/esm/v5.js +9 -0
  139. package/dist/node_modules/uuid/dist/esm/v6.d.ts +4 -0
  140. package/dist/node_modules/uuid/dist/esm/v6.js +20 -0
  141. package/dist/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
  142. package/dist/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
  143. package/dist/node_modules/uuid/dist/esm/v7.d.ts +9 -0
  144. package/dist/node_modules/uuid/dist/esm/v7.js +65 -0
  145. package/dist/node_modules/uuid/dist/esm/validate.d.ts +2 -0
  146. package/dist/node_modules/uuid/dist/esm/validate.js +5 -0
  147. package/dist/node_modules/uuid/dist/esm/version.d.ts +2 -0
  148. package/dist/node_modules/uuid/dist/esm/version.js +8 -0
  149. package/dist/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
  150. package/dist/node_modules/uuid/dist/esm-browser/index.js +1 -1
  151. package/dist/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
  152. package/dist/node_modules/uuid/dist/esm-browser/max.js +1 -1
  153. package/dist/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
  154. package/dist/node_modules/uuid/dist/esm-browser/md5.js +113 -172
  155. package/dist/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
  156. package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -4
  157. package/dist/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
  158. package/dist/node_modules/uuid/dist/esm-browser/nil.js +1 -1
  159. package/dist/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
  160. package/dist/node_modules/uuid/dist/esm-browser/parse.js +6 -34
  161. package/dist/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
  162. package/dist/node_modules/uuid/dist/esm-browser/regex.js +1 -1
  163. package/dist/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
  164. package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -14
  165. package/dist/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
  166. package/dist/node_modules/uuid/dist/esm-browser/sha1.js +62 -68
  167. package/dist/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
  168. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +29 -25
  169. package/dist/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
  170. package/dist/node_modules/uuid/dist/esm-browser/types.js +1 -0
  171. package/dist/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
  172. package/dist/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
  173. package/dist/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
  174. package/dist/node_modules/uuid/dist/esm-browser/v1.js +75 -117
  175. package/dist/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
  176. package/dist/node_modules/uuid/dist/esm-browser/v1ToV6.js +6 -16
  177. package/dist/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
  178. package/dist/node_modules/uuid/dist/esm-browser/v3.js +8 -3
  179. package/dist/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
  180. package/dist/node_modules/uuid/dist/esm-browser/v35.js +31 -47
  181. package/dist/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
  182. package/dist/node_modules/uuid/dist/esm-browser/v4.js +21 -19
  183. package/dist/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
  184. package/dist/node_modules/uuid/dist/esm-browser/v5.js +8 -3
  185. package/dist/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
  186. package/dist/node_modules/uuid/dist/esm-browser/v6.js +16 -32
  187. package/dist/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
  188. package/dist/node_modules/uuid/dist/esm-browser/v6ToV1.js +5 -15
  189. package/dist/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
  190. package/dist/node_modules/uuid/dist/esm-browser/v7.js +58 -139
  191. package/dist/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
  192. package/dist/node_modules/uuid/dist/esm-browser/validate.js +2 -2
  193. package/dist/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
  194. package/dist/node_modules/uuid/dist/esm-browser/version.js +5 -5
  195. package/dist/node_modules/uuid/package.json +1 -1
  196. package/dist/swagger/index.d.ts +357 -0
  197. package/dist/swagger/index.js +375 -0
  198. package/package.json +4 -2
  199. package/dist/node_modules/uuid/dist/bin/uuid +0 -2
  200. package/dist/node_modules/uuid/dist/commonjs-browser/index.js +0 -104
  201. package/dist/node_modules/uuid/dist/commonjs-browser/max.js +0 -7
  202. package/dist/node_modules/uuid/dist/commonjs-browser/md5.js +0 -200
  203. package/dist/node_modules/uuid/dist/commonjs-browser/native.js +0 -10
  204. package/dist/node_modules/uuid/dist/commonjs-browser/nil.js +0 -7
  205. package/dist/node_modules/uuid/dist/commonjs-browser/parse.js +0 -44
  206. package/dist/node_modules/uuid/dist/commonjs-browser/regex.js +0 -7
  207. package/dist/node_modules/uuid/dist/commonjs-browser/rng.js +0 -23
  208. package/dist/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -82
  209. package/dist/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -38
  210. package/dist/node_modules/uuid/dist/commonjs-browser/v1.js +0 -131
  211. package/dist/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +0 -26
  212. package/dist/node_modules/uuid/dist/commonjs-browser/v3.js +0 -11
  213. package/dist/node_modules/uuid/dist/commonjs-browser/v35.js +0 -63
  214. package/dist/node_modules/uuid/dist/commonjs-browser/v4.js +0 -32
  215. package/dist/node_modules/uuid/dist/commonjs-browser/v5.js +0 -11
  216. package/dist/node_modules/uuid/dist/commonjs-browser/v6.js +0 -42
  217. package/dist/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +0 -26
  218. package/dist/node_modules/uuid/dist/commonjs-browser/v7.js +0 -152
  219. package/dist/node_modules/uuid/dist/commonjs-browser/validate.js +0 -12
  220. package/dist/node_modules/uuid/dist/commonjs-browser/version.js +0 -15
  221. package/dist/node_modules/uuid/dist/esm-node/max.js +0 -1
  222. package/dist/node_modules/uuid/dist/esm-node/md5.js +0 -10
  223. package/dist/node_modules/uuid/dist/esm-node/native.js +0 -4
  224. package/dist/node_modules/uuid/dist/esm-node/nil.js +0 -1
  225. package/dist/node_modules/uuid/dist/esm-node/parse.js +0 -37
  226. package/dist/node_modules/uuid/dist/esm-node/rng.js +0 -10
  227. package/dist/node_modules/uuid/dist/esm-node/sha1.js +0 -10
  228. package/dist/node_modules/uuid/dist/esm-node/stringify.js +0 -31
  229. package/dist/node_modules/uuid/dist/esm-node/v1.js +0 -125
  230. package/dist/node_modules/uuid/dist/esm-node/v1ToV6.js +0 -20
  231. package/dist/node_modules/uuid/dist/esm-node/v3.js +0 -4
  232. package/dist/node_modules/uuid/dist/esm-node/v35.js +0 -55
  233. package/dist/node_modules/uuid/dist/esm-node/v4.js +0 -25
  234. package/dist/node_modules/uuid/dist/esm-node/v5.js +0 -4
  235. package/dist/node_modules/uuid/dist/esm-node/v6.js +0 -32
  236. package/dist/node_modules/uuid/dist/esm-node/v6ToV1.js +0 -20
  237. package/dist/node_modules/uuid/dist/esm-node/v7.js +0 -146
  238. package/dist/node_modules/uuid/dist/esm-node/validate.js +0 -5
  239. package/dist/node_modules/uuid/dist/esm-node/version.js +0 -8
  240. package/dist/node_modules/uuid/dist/index.js +0 -1
  241. package/dist/node_modules/uuid/dist/max.js +0 -7
  242. package/dist/node_modules/uuid/dist/md5-browser.js +0 -200
  243. package/dist/node_modules/uuid/dist/md5.js +0 -17
  244. package/dist/node_modules/uuid/dist/native-browser.js +0 -10
  245. package/dist/node_modules/uuid/dist/native.js +0 -11
  246. package/dist/node_modules/uuid/dist/nil.js +0 -7
  247. package/dist/node_modules/uuid/dist/parse.js +0 -44
  248. package/dist/node_modules/uuid/dist/regex.js +0 -7
  249. package/dist/node_modules/uuid/dist/rng-browser.js +0 -23
  250. package/dist/node_modules/uuid/dist/rng.js +0 -17
  251. package/dist/node_modules/uuid/dist/sha1-browser.js +0 -82
  252. package/dist/node_modules/uuid/dist/sha1.js +0 -17
  253. package/dist/node_modules/uuid/dist/stringify.js +0 -38
  254. package/dist/node_modules/uuid/dist/uuid-bin.js +0 -75
  255. package/dist/node_modules/uuid/dist/v1.js +0 -131
  256. package/dist/node_modules/uuid/dist/v1ToV6.js +0 -26
  257. package/dist/node_modules/uuid/dist/v3.js +0 -11
  258. package/dist/node_modules/uuid/dist/v35.js +0 -63
  259. package/dist/node_modules/uuid/dist/v4.js +0 -32
  260. package/dist/node_modules/uuid/dist/v5.js +0 -11
  261. package/dist/node_modules/uuid/dist/v6.js +0 -38
  262. package/dist/node_modules/uuid/dist/v6ToV1.js +0 -26
  263. package/dist/node_modules/uuid/dist/v7.js +0 -152
  264. package/dist/node_modules/uuid/dist/validate.js +0 -12
  265. package/dist/node_modules/uuid/dist/version.js +0 -15
@@ -0,0 +1,375 @@
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: "page",
46
+ in: "query",
47
+ required: false,
48
+ schema: {
49
+ type: "integer"
50
+ }
51
+ },
52
+ {
53
+ name: "pageSize",
54
+ in: "query",
55
+ required: false,
56
+ schema: {
57
+ type: "integer"
58
+ }
59
+ }
60
+ ];
61
+ const myInAppChannelListParameters = [
62
+ {
63
+ name: "filter",
64
+ in: "query",
65
+ required: false,
66
+ description: "Filter object encoded as JSON. Supports `status`, `name`, and `latestMsgReceiveTimestamp.$lt` for cursor-like pagination.",
67
+ schema: jsonObjectSchema
68
+ },
69
+ {
70
+ name: "limit",
71
+ in: "query",
72
+ required: false,
73
+ schema: {
74
+ type: "integer",
75
+ default: 30
76
+ }
77
+ }
78
+ ];
79
+ const userIdSchema = {
80
+ oneOf: [
81
+ {
82
+ type: "string",
83
+ description: "User id serialized as a string. This is common for bigInt identifiers."
84
+ },
85
+ {
86
+ type: "integer",
87
+ description: "User id when the runtime serializes the value as a JSON number."
88
+ }
89
+ ]
90
+ };
91
+ var swagger_default = {
92
+ openapi: "3.0.2",
93
+ info: {
94
+ title: "NocoBase API - Notification in-app message plugin"
95
+ },
96
+ paths: {
97
+ "/myInAppMessages:list": {
98
+ get: {
99
+ tags: ["myInAppMessages"],
100
+ summary: "List current user in-app messages",
101
+ description: "List messages for the current user. The server always scopes results to `ctx.state.currentUser.id`.",
102
+ parameters: listParameters,
103
+ responses: {
104
+ 200: {
105
+ description: "OK",
106
+ content: {
107
+ "application/json": {
108
+ schema: {
109
+ $ref: "#/components/schemas/MyInAppMessagesResponse"
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "/myInAppMessages:count": {
118
+ get: {
119
+ tags: ["myInAppMessages"],
120
+ summary: "Count current user unread in-app messages",
121
+ responses: {
122
+ 200: {
123
+ description: "OK",
124
+ content: {
125
+ "application/json": {
126
+ schema: {
127
+ type: "object",
128
+ properties: {
129
+ count: {
130
+ type: "integer"
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ },
140
+ "/myInAppChannels:list": {
141
+ get: {
142
+ tags: ["myInAppChannels"],
143
+ summary: "List current user in-app message channels",
144
+ description: "List channels that have messages for the current user, including unread counts and latest message metadata.",
145
+ parameters: myInAppChannelListParameters,
146
+ responses: {
147
+ 200: {
148
+ description: "OK",
149
+ content: {
150
+ "application/json": {
151
+ schema: {
152
+ $ref: "#/components/schemas/MyInAppChannelsResponse"
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+ }
159
+ },
160
+ "/notificationInAppMessages:list": {
161
+ get: {
162
+ tags: ["notificationInAppMessages"],
163
+ summary: "List in-app message records",
164
+ parameters: listParameters,
165
+ responses: {
166
+ 200: {
167
+ description: "OK",
168
+ content: {
169
+ "application/json": {
170
+ schema: {
171
+ type: "object",
172
+ properties: {
173
+ data: {
174
+ type: "array",
175
+ items: {
176
+ $ref: "#/components/schemas/InAppMessage"
177
+ }
178
+ },
179
+ meta: jsonObjectSchema
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ },
188
+ "/notificationInAppMessages:get": {
189
+ get: {
190
+ tags: ["notificationInAppMessages"],
191
+ summary: "Get one in-app message record",
192
+ parameters: [
193
+ {
194
+ name: "filterByTk",
195
+ in: "query",
196
+ required: true,
197
+ description: "In-app message UUID.",
198
+ schema: {
199
+ type: "string",
200
+ format: "uuid"
201
+ }
202
+ }
203
+ ],
204
+ responses: {
205
+ 200: {
206
+ description: "OK",
207
+ content: {
208
+ "application/json": {
209
+ schema: {
210
+ type: "object",
211
+ properties: {
212
+ data: {
213
+ $ref: "#/components/schemas/InAppMessage"
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
219
+ }
220
+ }
221
+ }
222
+ },
223
+ "/notificationInAppMessages:updateMyOwn": {
224
+ post: {
225
+ tags: ["notificationInAppMessages"],
226
+ summary: "Update current user own in-app message",
227
+ description: "Update only the current user own message. The action merges `filter.userId` from the current user and whitelists `status`.",
228
+ parameters: [
229
+ {
230
+ name: "filterByTk",
231
+ in: "query",
232
+ required: false,
233
+ description: "In-app message UUID.",
234
+ schema: {
235
+ type: "string",
236
+ format: "uuid"
237
+ }
238
+ },
239
+ {
240
+ name: "filter",
241
+ in: "query",
242
+ required: false,
243
+ schema: jsonObjectSchema
244
+ }
245
+ ],
246
+ requestBody: {
247
+ required: true,
248
+ content: {
249
+ "application/json": {
250
+ schema: {
251
+ type: "object",
252
+ required: ["status"],
253
+ properties: {
254
+ status: {
255
+ type: "string",
256
+ enum: ["read", "unread"]
257
+ }
258
+ }
259
+ }
260
+ }
261
+ }
262
+ },
263
+ responses: {
264
+ 200: {
265
+ description: "OK",
266
+ content: {
267
+ "application/json": {
268
+ schema: {
269
+ type: "object",
270
+ properties: {
271
+ data: {
272
+ $ref: "#/components/schemas/InAppMessage"
273
+ }
274
+ }
275
+ }
276
+ }
277
+ }
278
+ }
279
+ }
280
+ }
281
+ }
282
+ },
283
+ components: {
284
+ schemas: {
285
+ InAppMessage: {
286
+ type: "object",
287
+ properties: {
288
+ id: {
289
+ type: "string",
290
+ format: "uuid"
291
+ },
292
+ userId: {
293
+ ...userIdSchema
294
+ },
295
+ channelName: {
296
+ type: "string"
297
+ },
298
+ title: {
299
+ type: "string"
300
+ },
301
+ content: {
302
+ type: "string"
303
+ },
304
+ status: {
305
+ type: "string",
306
+ enum: ["read", "unread"]
307
+ },
308
+ receiveTimestamp: {
309
+ type: "integer",
310
+ format: "int64"
311
+ },
312
+ options: jsonObjectSchema,
313
+ createdAt: {
314
+ type: "string",
315
+ format: "date-time"
316
+ }
317
+ },
318
+ additionalProperties: true
319
+ },
320
+ MyInAppMessagesResponse: {
321
+ type: "object",
322
+ properties: {
323
+ messages: {
324
+ type: "array",
325
+ items: {
326
+ $ref: "#/components/schemas/InAppMessage"
327
+ }
328
+ }
329
+ }
330
+ },
331
+ MyInAppChannel: {
332
+ type: "object",
333
+ properties: {
334
+ name: {
335
+ type: "string"
336
+ },
337
+ title: {
338
+ type: "string"
339
+ },
340
+ userId: {
341
+ ...userIdSchema
342
+ },
343
+ unreadMsgCnt: {
344
+ type: "integer"
345
+ },
346
+ totalMsgCnt: {
347
+ type: "integer"
348
+ },
349
+ latestMsgReceiveTimestamp: {
350
+ type: "integer",
351
+ format: "int64"
352
+ },
353
+ latestMsgTitle: {
354
+ type: "string"
355
+ }
356
+ },
357
+ additionalProperties: true
358
+ },
359
+ MyInAppChannelsResponse: {
360
+ type: "object",
361
+ properties: {
362
+ rows: {
363
+ type: "array",
364
+ items: {
365
+ $ref: "#/components/schemas/MyInAppChannel"
366
+ }
367
+ },
368
+ count: {
369
+ type: "integer"
370
+ }
371
+ }
372
+ }
373
+ }
374
+ }
375
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-notification-in-app-message",
3
- "version": "2.2.0-alpha.1",
3
+ "version": "2.2.0-alpha.2",
4
4
  "displayName": "Notification: In-app message",
5
5
  "displayName.ru-RU": "Уведомления: Всплывающие сообщения внутри приложения",
6
6
  "displayName.zh-CN": "通知:站内信",
@@ -18,6 +18,8 @@
18
18
  "immer": "^10.1.1"
19
19
  },
20
20
  "devDependencies": {
21
+ "@dnd-kit/core": "^6.0.0",
22
+ "@dnd-kit/sortable": "^7.0.0",
21
23
  "antd-mobile": "^5.38"
22
24
  },
23
25
  "peerDependencies": {
@@ -33,5 +35,5 @@
33
35
  "react-router-dom": "^6.x"
34
36
  },
35
37
  "license": "Apache-2.0",
36
- "gitHead": "303663aba6c6eefa27e6a6435b4c0352074ec40f"
38
+ "gitHead": "9dd5224bb8f6c1ac12d766b9f175bdc29bddd845"
37
39
  }
@@ -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';
@@ -1,200 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /*
8
- * Browser-compatible JavaScript MD5
9
- *
10
- * Modification of JavaScript MD5
11
- * https://github.com/blueimp/JavaScript-MD5
12
- *
13
- * Copyright 2011, Sebastian Tschan
14
- * https://blueimp.net
15
- *
16
- * Licensed under the MIT license:
17
- * https://opensource.org/licenses/MIT
18
- *
19
- * Based on
20
- * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
21
- * Digest Algorithm, as defined in RFC 1321.
22
- * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
23
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
24
- * Distributed under the BSD License
25
- * See http://pajhome.org.uk/crypt/md5 for more info.
26
- */
27
- function md5(bytes) {
28
- if (typeof bytes === 'string') {
29
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
30
-
31
- bytes = new Uint8Array(msg.length);
32
- for (var i = 0; i < msg.length; ++i) {
33
- bytes[i] = msg.charCodeAt(i);
34
- }
35
- }
36
- return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
37
- }
38
-
39
- /*
40
- * Convert an array of little-endian words to an array of bytes
41
- */
42
- function md5ToHexEncodedArray(input) {
43
- var output = [];
44
- var length32 = input.length * 32;
45
- var hexTab = '0123456789abcdef';
46
- for (var i = 0; i < length32; i += 8) {
47
- var x = input[i >> 5] >>> i % 32 & 0xff;
48
- var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
49
- output.push(hex);
50
- }
51
- return output;
52
- }
53
-
54
- /**
55
- * Calculate output length with padding and bit length
56
- */
57
- function getOutputLength(inputLength8) {
58
- return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
59
- }
60
-
61
- /*
62
- * Calculate the MD5 of an array of little-endian words, and a bit length.
63
- */
64
- function wordsToMd5(x, len) {
65
- /* append padding */
66
- x[len >> 5] |= 0x80 << len % 32;
67
- x[getOutputLength(len) - 1] = len;
68
- var a = 1732584193;
69
- var b = -271733879;
70
- var c = -1732584194;
71
- var d = 271733878;
72
- for (var i = 0; i < x.length; i += 16) {
73
- var olda = a;
74
- var oldb = b;
75
- var oldc = c;
76
- var oldd = d;
77
- a = md5ff(a, b, c, d, x[i], 7, -680876936);
78
- d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
79
- c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
80
- b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
81
- a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
82
- d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
83
- c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
84
- b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
85
- a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
86
- d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
87
- c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
88
- b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
89
- a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
90
- d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
91
- c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
92
- b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
93
- a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
94
- d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
95
- c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
96
- b = md5gg(b, c, d, a, x[i], 20, -373897302);
97
- a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
98
- d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
99
- c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
100
- b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
101
- a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
102
- d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
103
- c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
104
- b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
105
- a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
106
- d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
107
- c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
108
- b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
109
- a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
110
- d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
111
- c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
112
- b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
113
- a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
114
- d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
115
- c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
116
- b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
117
- a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
118
- d = md5hh(d, a, b, c, x[i], 11, -358537222);
119
- c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
120
- b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
121
- a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
122
- d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
123
- c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
124
- b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
125
- a = md5ii(a, b, c, d, x[i], 6, -198630844);
126
- d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
127
- c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
128
- b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
129
- a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
130
- d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
131
- c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
132
- b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
133
- a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
134
- d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
135
- c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
136
- b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
137
- a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
138
- d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
139
- c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
140
- b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
141
- a = safeAdd(a, olda);
142
- b = safeAdd(b, oldb);
143
- c = safeAdd(c, oldc);
144
- d = safeAdd(d, oldd);
145
- }
146
- return [a, b, c, d];
147
- }
148
-
149
- /*
150
- * Convert an array bytes to an array of little-endian words
151
- * Characters >255 have their high-byte silently ignored.
152
- */
153
- function bytesToWords(input) {
154
- if (input.length === 0) {
155
- return [];
156
- }
157
- var length8 = input.length * 8;
158
- var output = new Uint32Array(getOutputLength(length8));
159
- for (var i = 0; i < length8; i += 8) {
160
- output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
161
- }
162
- return output;
163
- }
164
-
165
- /*
166
- * Add integers, wrapping at 2^32. This uses 16-bit operations internally
167
- * to work around bugs in some JS interpreters.
168
- */
169
- function safeAdd(x, y) {
170
- var lsw = (x & 0xffff) + (y & 0xffff);
171
- var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
172
- return msw << 16 | lsw & 0xffff;
173
- }
174
-
175
- /*
176
- * Bitwise rotate a 32-bit number to the left.
177
- */
178
- function bitRotateLeft(num, cnt) {
179
- return num << cnt | num >>> 32 - cnt;
180
- }
181
-
182
- /*
183
- * These functions implement the four basic operations the algorithm uses.
184
- */
185
- function md5cmn(q, a, b, x, s, t) {
186
- return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
187
- }
188
- function md5ff(a, b, c, d, x, s, t) {
189
- return md5cmn(b & c | ~b & d, a, b, x, s, t);
190
- }
191
- function md5gg(a, b, c, d, x, s, t) {
192
- return md5cmn(b & d | c & ~d, a, b, x, s, t);
193
- }
194
- function md5hh(a, b, c, d, x, s, t) {
195
- return md5cmn(b ^ c ^ d, a, b, x, s, t);
196
- }
197
- function md5ii(a, b, c, d, x, s, t) {
198
- return md5cmn(c ^ (b | ~d), a, b, x, s, t);
199
- }
200
- var _default = exports.default = md5;