n8n-nodes-wechat-offiaccount-custom 0.3.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.
Files changed (225) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +129 -0
  3. package/dist/credentials/WechatOfficialAccountCredentialsApi.credentials.d.ts +12 -0
  4. package/dist/credentials/WechatOfficialAccountCredentialsApi.credentials.js +91 -0
  5. package/dist/credentials/WechatOfficialAccountCredentialsApi.credentials.js.map +1 -0
  6. package/dist/nodes/WechatOfficialAccountNode/WechatOfficialAccountNode.node.d.ts +5 -0
  7. package/dist/nodes/WechatOfficialAccountNode/WechatOfficialAccountNode.node.js +91 -0
  8. package/dist/nodes/WechatOfficialAccountNode/WechatOfficialAccountNode.node.js.map +1 -0
  9. package/dist/nodes/WechatOfficialAccountNode/icon.png +0 -0
  10. package/dist/nodes/WechatOfficialAccountNode/resource/AuthResource.d.ts +3 -0
  11. package/dist/nodes/WechatOfficialAccountNode/resource/AuthResource.js +7 -0
  12. package/dist/nodes/WechatOfficialAccountNode/resource/AuthResource.js.map +1 -0
  13. package/dist/nodes/WechatOfficialAccountNode/resource/CommentResource.d.ts +3 -0
  14. package/dist/nodes/WechatOfficialAccountNode/resource/CommentResource.js +8 -0
  15. package/dist/nodes/WechatOfficialAccountNode/resource/CommentResource.js.map +1 -0
  16. package/dist/nodes/WechatOfficialAccountNode/resource/DraftResource.d.ts +3 -0
  17. package/dist/nodes/WechatOfficialAccountNode/resource/DraftResource.js +8 -0
  18. package/dist/nodes/WechatOfficialAccountNode/resource/DraftResource.js.map +1 -0
  19. package/dist/nodes/WechatOfficialAccountNode/resource/MediaResource.d.ts +3 -0
  20. package/dist/nodes/WechatOfficialAccountNode/resource/MediaResource.js +8 -0
  21. package/dist/nodes/WechatOfficialAccountNode/resource/MediaResource.js.map +1 -0
  22. package/dist/nodes/WechatOfficialAccountNode/resource/MenuResource.d.ts +3 -0
  23. package/dist/nodes/WechatOfficialAccountNode/resource/MenuResource.js +8 -0
  24. package/dist/nodes/WechatOfficialAccountNode/resource/MenuResource.js.map +1 -0
  25. package/dist/nodes/WechatOfficialAccountNode/resource/OtherResource.d.ts +3 -0
  26. package/dist/nodes/WechatOfficialAccountNode/resource/OtherResource.js +8 -0
  27. package/dist/nodes/WechatOfficialAccountNode/resource/OtherResource.js.map +1 -0
  28. package/dist/nodes/WechatOfficialAccountNode/resource/PublishResource.d.ts +3 -0
  29. package/dist/nodes/WechatOfficialAccountNode/resource/PublishResource.js +8 -0
  30. package/dist/nodes/WechatOfficialAccountNode/resource/PublishResource.js.map +1 -0
  31. package/dist/nodes/WechatOfficialAccountNode/resource/TemplateResource.d.ts +3 -0
  32. package/dist/nodes/WechatOfficialAccountNode/resource/TemplateResource.js +8 -0
  33. package/dist/nodes/WechatOfficialAccountNode/resource/TemplateResource.js.map +1 -0
  34. package/dist/nodes/WechatOfficialAccountNode/resource/UserResource.d.ts +3 -0
  35. package/dist/nodes/WechatOfficialAccountNode/resource/UserResource.js +8 -0
  36. package/dist/nodes/WechatOfficialAccountNode/resource/UserResource.js.map +1 -0
  37. package/dist/nodes/WechatOfficialAccountNode/resource/UserTagResource.d.ts +3 -0
  38. package/dist/nodes/WechatOfficialAccountNode/resource/UserTagResource.js +8 -0
  39. package/dist/nodes/WechatOfficialAccountNode/resource/UserTagResource.js.map +1 -0
  40. package/dist/nodes/WechatOfficialAccountNode/resource/auth/GetAccessTokenOperate.d.ts +3 -0
  41. package/dist/nodes/WechatOfficialAccountNode/resource/auth/GetAccessTokenOperate.js +22 -0
  42. package/dist/nodes/WechatOfficialAccountNode/resource/auth/GetAccessTokenOperate.js.map +1 -0
  43. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentCloseOperate.d.ts +3 -0
  44. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentCloseOperate.js +43 -0
  45. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentCloseOperate.js.map +1 -0
  46. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentDeleteOperate.d.ts +3 -0
  47. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentDeleteOperate.js +51 -0
  48. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentDeleteOperate.js.map +1 -0
  49. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentListOperate.d.ts +3 -0
  50. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentListOperate.js +85 -0
  51. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentListOperate.js.map +1 -0
  52. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentMarkElectOperate.d.ts +3 -0
  53. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentMarkElectOperate.js +52 -0
  54. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentMarkElectOperate.js.map +1 -0
  55. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentOpenOperate.d.ts +3 -0
  56. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentOpenOperate.js +43 -0
  57. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentOpenOperate.js.map +1 -0
  58. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentReplyAddOperate.d.ts +3 -0
  59. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentReplyAddOperate.js +61 -0
  60. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentReplyAddOperate.js.map +1 -0
  61. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentReplyDeleteOperate.d.ts +3 -0
  62. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentReplyDeleteOperate.js +51 -0
  63. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentReplyDeleteOperate.js.map +1 -0
  64. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentUnmarkElectOperate.d.ts +3 -0
  65. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentUnmarkElectOperate.js +52 -0
  66. package/dist/nodes/WechatOfficialAccountNode/resource/comment/CommentUnmarkElectOperate.js.map +1 -0
  67. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftAddOperate.d.ts +3 -0
  68. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftAddOperate.js +34 -0
  69. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftAddOperate.js.map +1 -0
  70. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftCountOperate.d.ts +3 -0
  71. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftCountOperate.js +20 -0
  72. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftCountOperate.js.map +1 -0
  73. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftDeleteOperate.d.ts +3 -0
  74. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftDeleteOperate.js +33 -0
  75. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftDeleteOperate.js.map +1 -0
  76. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftGetOperate.d.ts +3 -0
  77. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftGetOperate.js +33 -0
  78. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftGetOperate.js.map +1 -0
  79. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftListOperate.d.ts +3 -0
  80. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftListOperate.js +51 -0
  81. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftListOperate.js.map +1 -0
  82. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftUpdateOperate.d.ts +3 -0
  83. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftUpdateOperate.js +54 -0
  84. package/dist/nodes/WechatOfficialAccountNode/resource/draft/DraftUpdateOperate.js.map +1 -0
  85. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaCountMaterialOperate.d.ts +3 -0
  86. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaCountMaterialOperate.js +19 -0
  87. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaCountMaterialOperate.js.map +1 -0
  88. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaDelMaterialOperate.d.ts +3 -0
  89. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaDelMaterialOperate.js +31 -0
  90. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaDelMaterialOperate.js.map +1 -0
  91. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaGetMaterialOperate.d.ts +3 -0
  92. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaGetMaterialOperate.js +31 -0
  93. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaGetMaterialOperate.js.map +1 -0
  94. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaGetOperate.d.ts +3 -0
  95. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaGetOperate.js +31 -0
  96. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaGetOperate.js.map +1 -0
  97. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaListOperate.d.ts +3 -0
  98. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaListOperate.js +60 -0
  99. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaListOperate.js.map +1 -0
  100. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaUploadImageOperate.d.ts +3 -0
  101. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaUploadImageOperate.js +37 -0
  102. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaUploadImageOperate.js.map +1 -0
  103. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaUploadOperate.d.ts +3 -0
  104. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaUploadOperate.js +54 -0
  105. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaUploadOperate.js.map +1 -0
  106. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaUploadOtherOperate.d.ts +3 -0
  107. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaUploadOtherOperate.js +93 -0
  108. package/dist/nodes/WechatOfficialAccountNode/resource/media/MediaUploadOtherOperate.js.map +1 -0
  109. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuCreateOperate.d.ts +3 -0
  110. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuCreateOperate.js +32 -0
  111. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuCreateOperate.js.map +1 -0
  112. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuDeleteOperate.d.ts +3 -0
  113. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuDeleteOperate.js +20 -0
  114. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuDeleteOperate.js.map +1 -0
  115. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuGetOperate.d.ts +3 -0
  116. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuGetOperate.js +20 -0
  117. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuGetOperate.js.map +1 -0
  118. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuQueryOperate.d.ts +3 -0
  119. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuQueryOperate.js +20 -0
  120. package/dist/nodes/WechatOfficialAccountNode/resource/menu/MenuQueryOperate.js.map +1 -0
  121. package/dist/nodes/WechatOfficialAccountNode/resource/other/QRCodeGenerateOperate.d.ts +3 -0
  122. package/dist/nodes/WechatOfficialAccountNode/resource/other/QRCodeGenerateOperate.js +65 -0
  123. package/dist/nodes/WechatOfficialAccountNode/resource/other/QRCodeGenerateOperate.js.map +1 -0
  124. package/dist/nodes/WechatOfficialAccountNode/resource/other/ShortenFetchOperate.d.ts +3 -0
  125. package/dist/nodes/WechatOfficialAccountNode/resource/other/ShortenFetchOperate.js +33 -0
  126. package/dist/nodes/WechatOfficialAccountNode/resource/other/ShortenFetchOperate.js.map +1 -0
  127. package/dist/nodes/WechatOfficialAccountNode/resource/other/ShortenGenOperate.d.ts +3 -0
  128. package/dist/nodes/WechatOfficialAccountNode/resource/other/ShortenGenOperate.js +43 -0
  129. package/dist/nodes/WechatOfficialAccountNode/resource/other/ShortenGenOperate.js.map +1 -0
  130. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishDeleteOperate.d.ts +3 -0
  131. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishDeleteOperate.js +43 -0
  132. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishDeleteOperate.js.map +1 -0
  133. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishGetArticleOperate.d.ts +3 -0
  134. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishGetArticleOperate.js +34 -0
  135. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishGetArticleOperate.js.map +1 -0
  136. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishListOperate.d.ts +3 -0
  137. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishListOperate.js +52 -0
  138. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishListOperate.js.map +1 -0
  139. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishStatusOperate.d.ts +3 -0
  140. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishStatusOperate.js +32 -0
  141. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishStatusOperate.js.map +1 -0
  142. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishSubmitOperate.d.ts +3 -0
  143. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishSubmitOperate.js +33 -0
  144. package/dist/nodes/WechatOfficialAccountNode/resource/publish/PublishSubmitOperate.js.map +1 -0
  145. package/dist/nodes/WechatOfficialAccountNode/resource/template/TemplateDeleteOperate.d.ts +3 -0
  146. package/dist/nodes/WechatOfficialAccountNode/resource/template/TemplateDeleteOperate.js +33 -0
  147. package/dist/nodes/WechatOfficialAccountNode/resource/template/TemplateDeleteOperate.js.map +1 -0
  148. package/dist/nodes/WechatOfficialAccountNode/resource/template/TemplateListOperate.d.ts +3 -0
  149. package/dist/nodes/WechatOfficialAccountNode/resource/template/TemplateListOperate.js +20 -0
  150. package/dist/nodes/WechatOfficialAccountNode/resource/template/TemplateListOperate.js.map +1 -0
  151. package/dist/nodes/WechatOfficialAccountNode/resource/template/TemplateSendOperate.d.ts +3 -0
  152. package/dist/nodes/WechatOfficialAccountNode/resource/template/TemplateSendOperate.js +103 -0
  153. package/dist/nodes/WechatOfficialAccountNode/resource/template/TemplateSendOperate.js.map +1 -0
  154. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserBatchBlacklistOperate.d.ts +3 -0
  155. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserBatchBlacklistOperate.js +53 -0
  156. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserBatchBlacklistOperate.js.map +1 -0
  157. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserBatchUnblacklistOperate.d.ts +3 -0
  158. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserBatchUnblacklistOperate.js +53 -0
  159. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserBatchUnblacklistOperate.js.map +1 -0
  160. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserBlacklistOperate.d.ts +3 -0
  161. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserBlacklistOperate.js +21 -0
  162. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserBlacklistOperate.js.map +1 -0
  163. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserGetOperate.d.ts +3 -0
  164. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserGetOperate.js +43 -0
  165. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserGetOperate.js.map +1 -0
  166. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserListOperate.d.ts +3 -0
  167. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserListOperate.js +34 -0
  168. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserListOperate.js.map +1 -0
  169. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserUpdateRemarkOperate.d.ts +3 -0
  170. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserUpdateRemarkOperate.js +43 -0
  171. package/dist/nodes/WechatOfficialAccountNode/resource/user/UserUpdateRemarkOperate.js.map +1 -0
  172. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagBatchTaggingOperate.d.ts +3 -0
  173. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagBatchTaggingOperate.js +61 -0
  174. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagBatchTaggingOperate.js.map +1 -0
  175. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagBatchUntaggingOperate.d.ts +3 -0
  176. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagBatchUntaggingOperate.js +61 -0
  177. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagBatchUntaggingOperate.js.map +1 -0
  178. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagCreateOperate.d.ts +3 -0
  179. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagCreateOperate.js +34 -0
  180. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagCreateOperate.js.map +1 -0
  181. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagDeleteOperate.d.ts +3 -0
  182. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagDeleteOperate.js +33 -0
  183. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagDeleteOperate.js.map +1 -0
  184. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagGetIdListOperate.d.ts +3 -0
  185. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagGetIdListOperate.js +33 -0
  186. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagGetIdListOperate.js.map +1 -0
  187. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagGetOperate.d.ts +3 -0
  188. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagGetOperate.js +20 -0
  189. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagGetOperate.js.map +1 -0
  190. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagGetUserListOperate.d.ts +3 -0
  191. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagGetUserListOperate.js +42 -0
  192. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagGetUserListOperate.js.map +1 -0
  193. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagUpdateOperate.d.ts +3 -0
  194. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagUpdateOperate.js +42 -0
  195. package/dist/nodes/WechatOfficialAccountNode/resource/userTag/TagUpdateOperate.js.map +1 -0
  196. package/dist/nodes/WechatOfficialAccountResponseNode/WechatOfficialAccountResponseNode.node.d.ts +6 -0
  197. package/dist/nodes/WechatOfficialAccountResponseNode/WechatOfficialAccountResponseNode.node.js +124 -0
  198. package/dist/nodes/WechatOfficialAccountResponseNode/WechatOfficialAccountResponseNode.node.js.map +1 -0
  199. package/dist/nodes/WechatOfficialAccountResponseNode/icon.png +0 -0
  200. package/dist/nodes/WechatOfficialAccountTrigger/WechatOfficialAccountTrigger.node.d.ts +6 -0
  201. package/dist/nodes/WechatOfficialAccountTrigger/WechatOfficialAccountTrigger.node.js +153 -0
  202. package/dist/nodes/WechatOfficialAccountTrigger/WechatOfficialAccountTrigger.node.js.map +1 -0
  203. package/dist/nodes/WechatOfficialAccountTrigger/icon.png +0 -0
  204. package/dist/nodes/help/builder/ResourceBuilder.d.ts +11 -0
  205. package/dist/nodes/help/builder/ResourceBuilder.js +84 -0
  206. package/dist/nodes/help/builder/ResourceBuilder.js.map +1 -0
  207. package/dist/nodes/help/type/IResource.d.ts +9 -0
  208. package/dist/nodes/help/type/IResource.js +3 -0
  209. package/dist/nodes/help/type/IResource.js.map +1 -0
  210. package/dist/nodes/help/utils/ModuleLoadUtils.d.ts +4 -0
  211. package/dist/nodes/help/utils/ModuleLoadUtils.js +24 -0
  212. package/dist/nodes/help/utils/ModuleLoadUtils.js.map +1 -0
  213. package/dist/nodes/help/utils/NodeUtils.d.ts +8 -0
  214. package/dist/nodes/help/utils/NodeUtils.js +45 -0
  215. package/dist/nodes/help/utils/NodeUtils.js.map +1 -0
  216. package/dist/nodes/help/utils/RequestUtils.d.ts +7 -0
  217. package/dist/nodes/help/utils/RequestUtils.js +37 -0
  218. package/dist/nodes/help/utils/RequestUtils.js.map +1 -0
  219. package/dist/nodes/help/utils/WechatMsgSignUtils.d.ts +12 -0
  220. package/dist/nodes/help/utils/WechatMsgSignUtils.js +129 -0
  221. package/dist/nodes/help/utils/WechatMsgSignUtils.js.map +1 -0
  222. package/dist/package.json +67 -0
  223. package/dist/tsconfig.tsbuildinfo +1 -0
  224. package/index.js +0 -0
  225. package/package.json +67 -0
package/LICENSE.md ADDED
@@ -0,0 +1,19 @@
1
+ Copyright 2022 n8n
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,129 @@
1
+ ## fork from https://github.com/other-blowsnow/n8n-nodes-wechat-offiaccount
2
+ ## author: blowsnow
3
+ ### 增加了对协议的自定义
4
+
5
+ # Features
6
+ ## User tags
7
+ - Edit tags
8
+ - Get the fan list under the tag
9
+ - Get the tag list
10
+ - Get the tag list of the user
11
+ - Delete tags
12
+ - Create tags
13
+ - Untag users in batches
14
+ - Tag users in batches
15
+ ## User
16
+ - Set user note name
17
+ - Get user list
18
+ - Get user information
19
+ - Get blacklist list
20
+ - Unblock users
21
+ - Blacklist users
22
+ ## Template
23
+ - Send template message
24
+ - Get template list
25
+ - Delete template
26
+ ## Publish
27
+ - Publish draft
28
+ - Publish status polling
29
+ - Get the list of successful publishes
30
+ - Get published articles
31
+ - Delete publish
32
+ ## Others
33
+ - Generate short key
34
+ - Get long information
35
+ - Generate QR code with parameters
36
+ ## Menu
37
+ - Query
38
+ - Get current menu configuration
39
+ - Delete
40
+ - Create
41
+ ## Material
42
+ - Upload temporary material
43
+ - Upload permanent material
44
+ - Get material list
45
+ - Get temporary material
46
+ - Get permanent material
47
+ - Delete permanent materials
48
+ - Get total materials
49
+ ## Drafts
50
+ - Modify drafts
51
+ - Get draft list
52
+ - Get drafts
53
+ - Delete drafts
54
+ - Get total drafts
55
+ - Create new drafts
56
+ ## Comments
57
+ - Unselect
58
+ - Delete replies
59
+ - Reply to comments
60
+ - Open comments
61
+ - Mark selected
62
+ - View comments
63
+ - Delete comments
64
+ - Close comments
65
+
66
+ # 功能
67
+ ## 用户标签
68
+ - 编辑标签
69
+ - 获取标签下粉丝列表
70
+ - 获取标签列表
71
+ - 获取用户身上的标签列表
72
+ - 删除标签
73
+ - 创建标签
74
+ - 批量为用户取消标签
75
+ - 批量为用户打标签
76
+ ## 用户
77
+ - 设置用户备注名
78
+ - 获取用户列表
79
+ - 获取用户信息
80
+ - 获取黑名单列表
81
+ - 取消拉黑用户
82
+ - 拉黑用户
83
+ ## 模板
84
+ - 发送模板消息
85
+ - 获取模板列表
86
+ - 删除模板
87
+ ## 发布
88
+ - 发布草稿
89
+ - 发布状态轮询
90
+ - 获取成功发布列表
91
+ - 获取已发布文章
92
+ - 删除发布
93
+ ## 其他
94
+ - 生成短Key
95
+ - 获取长信息
96
+ - 生成带参数的二维码
97
+ ## 菜单
98
+ - 查询
99
+ - 获取当前菜单配置
100
+ - 删除
101
+ - 创建
102
+ ## 素材
103
+ - 上传临时素材
104
+ - 上传永久素材
105
+ - 获取素材列表
106
+ - 获取临时素材
107
+ - 获取永久素材
108
+ - 删除永久素材
109
+ - 获取素材总数
110
+ ## 草稿
111
+ - 修改草稿
112
+ - 获取草稿列表
113
+ - 获取草稿
114
+ - 删除草稿
115
+ - 获取草稿总数
116
+ - 新建草稿
117
+ ## 评论
118
+ - 取消精选
119
+ - 删除回复
120
+ - 回复评论
121
+ - 打开评论
122
+ - 标记精选
123
+ - 查看评论
124
+ - 删除评论
125
+ - 关闭评论
126
+
127
+
128
+
129
+
@@ -0,0 +1,12 @@
1
+ import { ICredentialDataDecryptedObject, ICredentialTestRequest, ICredentialType, IHttpRequestHelper, INodeProperties } from 'n8n-workflow';
2
+ import { IHttpRequestOptions } from 'n8n-workflow/dist/Interfaces';
3
+ export declare class WechatOfficialAccountCredentialsApi implements ICredentialType {
4
+ name: string;
5
+ displayName: string;
6
+ properties: INodeProperties[];
7
+ preAuthentication(this: IHttpRequestHelper, credentials: ICredentialDataDecryptedObject): Promise<{
8
+ accessToken: any;
9
+ }>;
10
+ authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions>;
11
+ test: ICredentialTestRequest;
12
+ }
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WechatOfficialAccountCredentialsApi = void 0;
4
+ class WechatOfficialAccountCredentialsApi {
5
+ constructor() {
6
+ this.name = 'wechatOfficialAccountCredentialsApi';
7
+ this.displayName = 'Wechat Official Account Credentials API';
8
+ this.properties = [
9
+ {
10
+ displayName: 'Base URL',
11
+ name: 'baseUrl',
12
+ type: 'string',
13
+ default: 'https://api.weixin.qq.com',
14
+ required: true,
15
+ },
16
+ {
17
+ displayName: 'Appid',
18
+ description: '第三方用户唯一凭证,AppID和AppSecret可在“微信公众平台-设置与开发--基本配置”页中获得',
19
+ name: 'appid',
20
+ type: 'string',
21
+ default: '',
22
+ },
23
+ {
24
+ displayName: 'AppSecret',
25
+ name: 'appsecret',
26
+ description: '第三方用户唯一凭证密钥',
27
+ type: 'string',
28
+ default: '',
29
+ },
30
+ {
31
+ displayName: 'AccessToken',
32
+ name: 'accessToken',
33
+ type: 'hidden',
34
+ default: '',
35
+ typeOptions: {
36
+ expirable: true,
37
+ },
38
+ },
39
+ ];
40
+ this.test = {
41
+ request: {
42
+ baseURL: '={{$credentials.baseUrl}}',
43
+ url: '/cgi-bin/get_api_domain_ip',
44
+ },
45
+ rules: [
46
+ {
47
+ type: 'responseSuccessBody',
48
+ properties: {
49
+ key: 'errcode',
50
+ value: 0,
51
+ message: '凭证验证失败',
52
+ },
53
+ },
54
+ ],
55
+ };
56
+ }
57
+ async preAuthentication(credentials) {
58
+ console.log('credentials', credentials);
59
+ if (credentials.accessToken) {
60
+ const res = (await this.helpers.httpRequest({
61
+ method: 'GET',
62
+ url: `${credentials.baseUrl}/cgi-bin/get_api_domain_ip?access_token=${credentials.accessToken}`,
63
+ }));
64
+ console.log('exist accessToken', res);
65
+ if (res.errcode === 42001) {
66
+ }
67
+ else if (res.errcode !== 0) {
68
+ throw new Error('请求失败:' + res.errcode + ', ' + res.errmsg);
69
+ }
70
+ }
71
+ const res = (await this.helpers.httpRequest({
72
+ method: 'GET',
73
+ url: `${credentials.baseUrl}/cgi-bin/token?grant_type=client_credential&appid=${credentials.appid}&secret=${credentials.appsecret}`,
74
+ }));
75
+ console.log('preAuthentication', res);
76
+ if (res.errcode && res.errcode !== 0) {
77
+ throw new Error('授权失败:' + res.errcode + ', ' + res.errmsg);
78
+ }
79
+ return { accessToken: res.access_token };
80
+ }
81
+ async authenticate(credentials, requestOptions) {
82
+ requestOptions.baseURL = `${credentials.baseUrl}`;
83
+ requestOptions.qs = {
84
+ ...(requestOptions.qs || {}),
85
+ access_token: credentials.accessToken,
86
+ };
87
+ return requestOptions;
88
+ }
89
+ }
90
+ exports.WechatOfficialAccountCredentialsApi = WechatOfficialAccountCredentialsApi;
91
+ //# sourceMappingURL=WechatOfficialAccountCredentialsApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WechatOfficialAccountCredentialsApi.credentials.js","sourceRoot":"","sources":["../../credentials/WechatOfficialAccountCredentialsApi.credentials.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class WechatOfficialAccountNode implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WechatOfficialAccountNode = void 0;
7
+ const n8n_workflow_1 = require("n8n-workflow");
8
+ const ResourceBuilder_1 = __importDefault(require("../help/builder/ResourceBuilder"));
9
+ const ModuleLoadUtils_1 = __importDefault(require("../help/utils/ModuleLoadUtils"));
10
+ const resourceBuilder = new ResourceBuilder_1.default();
11
+ ModuleLoadUtils_1.default.loadModules(__dirname, 'resource/*.js').forEach((resource) => {
12
+ resourceBuilder.addResource(resource);
13
+ ModuleLoadUtils_1.default.loadModules(__dirname, `resource/${resource.value}/*.js`).forEach((operate) => {
14
+ resourceBuilder.addOperate(resource.value, operate);
15
+ });
16
+ });
17
+ class WechatOfficialAccountNode {
18
+ constructor() {
19
+ this.description = {
20
+ displayName: 'Wechat Official Account Node',
21
+ name: 'wechatOfficialAccountNode',
22
+ icon: 'file:icon.png',
23
+ group: ['transform'],
24
+ version: 1,
25
+ description: 'Wechat Official Account Node',
26
+ defaults: {
27
+ name: 'Wechat Official Account Node',
28
+ },
29
+ usableAsTool: true,
30
+ inputs: ['main'],
31
+ outputs: ['main'],
32
+ credentials: [
33
+ {
34
+ name: 'wechatOfficialAccountCredentialsApi',
35
+ required: true,
36
+ },
37
+ ],
38
+ properties: resourceBuilder.build(),
39
+ };
40
+ }
41
+ async execute() {
42
+ const items = this.getInputData();
43
+ let responseData = {};
44
+ let returnData = [];
45
+ const resource = this.getNodeParameter('resource', 0);
46
+ const operation = this.getNodeParameter('operation', 0);
47
+ const callFunc = resourceBuilder.getCall(resource, operation);
48
+ if (!callFunc) {
49
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), '未实现方法: ' + resource + '.' + operation);
50
+ }
51
+ for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
52
+ try {
53
+ this.logger.debug('call function', {
54
+ resource,
55
+ operation,
56
+ itemIndex,
57
+ });
58
+ responseData = await callFunc.call(this, itemIndex);
59
+ }
60
+ catch (error) {
61
+ this.logger.error('call function error', {
62
+ resource,
63
+ operation,
64
+ itemIndex,
65
+ errorMessage: error.message,
66
+ stack: error.stack,
67
+ });
68
+ if (this.continueOnFail()) {
69
+ returnData.push({
70
+ json: {
71
+ error: error.message
72
+ },
73
+ pairedItem: itemIndex,
74
+ });
75
+ continue;
76
+ }
77
+ else {
78
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
79
+ message: error.message,
80
+ itemIndex,
81
+ });
82
+ }
83
+ }
84
+ const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: itemIndex } });
85
+ returnData.push(...executionData);
86
+ }
87
+ return [returnData];
88
+ }
89
+ }
90
+ exports.WechatOfficialAccountNode = WechatOfficialAccountNode;
91
+ //# sourceMappingURL=WechatOfficialAccountNode.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WechatOfficialAccountNode.node.js","sourceRoot":"","sources":["../../../nodes/WechatOfficialAccountNode/WechatOfficialAccountNode.node.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ import { INodePropertyOptions } from 'n8n-workflow/dist/Interfaces';
2
+ declare const _default: INodePropertyOptions;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ name: '授权',
5
+ value: 'auth',
6
+ };
7
+ //# sourceMappingURL=AuthResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthResource.js","sourceRoot":"","sources":["../../../../nodes/WechatOfficialAccountNode/resource/AuthResource.ts"],"names":[],"mappings":";;AAEA,kBAAe;IACd,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,MAAM;CACW,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INodePropertyOptions } from 'n8n-workflow/dist/Interfaces';
2
+ declare const CommentResource: INodePropertyOptions;
3
+ export default CommentResource;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const CommentResource = {
4
+ name: '评论',
5
+ value: 'comment',
6
+ };
7
+ exports.default = CommentResource;
8
+ //# sourceMappingURL=CommentResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommentResource.js","sourceRoot":"","sources":["../../../../nodes/WechatOfficialAccountNode/resource/CommentResource.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAyB;IAC7C,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,SAAS;CAChB,CAAC;AAEF,kBAAe,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INodePropertyOptions } from 'n8n-workflow/dist/Interfaces';
2
+ declare const DraftResource: INodePropertyOptions;
3
+ export default DraftResource;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const DraftResource = {
4
+ name: '草稿',
5
+ value: 'draft',
6
+ };
7
+ exports.default = DraftResource;
8
+ //# sourceMappingURL=DraftResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DraftResource.js","sourceRoot":"","sources":["../../../../nodes/WechatOfficialAccountNode/resource/DraftResource.ts"],"names":[],"mappings":";;AAEA,MAAM,aAAa,GAAyB;IAC3C,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,OAAO;CACd,CAAC;AAEF,kBAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INodePropertyOptions } from 'n8n-workflow/dist/Interfaces';
2
+ declare const MediaResource: INodePropertyOptions;
3
+ export default MediaResource;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const MediaResource = {
4
+ name: '素材',
5
+ value: 'media',
6
+ };
7
+ exports.default = MediaResource;
8
+ //# sourceMappingURL=MediaResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaResource.js","sourceRoot":"","sources":["../../../../nodes/WechatOfficialAccountNode/resource/MediaResource.ts"],"names":[],"mappings":";;AAEA,MAAM,aAAa,GAAyB;IAC3C,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,OAAO;CACd,CAAC;AAEF,kBAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INodePropertyOptions } from 'n8n-workflow/dist/Interfaces';
2
+ declare const MenuResource: INodePropertyOptions;
3
+ export default MenuResource;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const MenuResource = {
4
+ name: '菜单',
5
+ value: 'menu',
6
+ };
7
+ exports.default = MenuResource;
8
+ //# sourceMappingURL=MenuResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuResource.js","sourceRoot":"","sources":["../../../../nodes/WechatOfficialAccountNode/resource/MenuResource.ts"],"names":[],"mappings":";;AAEA,MAAM,YAAY,GAAyB;IAC1C,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,MAAM;CACb,CAAC;AAEF,kBAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INodePropertyOptions } from 'n8n-workflow/dist/Interfaces';
2
+ declare const OtherResource: INodePropertyOptions;
3
+ export default OtherResource;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const OtherResource = {
4
+ name: '其他',
5
+ value: 'other',
6
+ };
7
+ exports.default = OtherResource;
8
+ //# sourceMappingURL=OtherResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OtherResource.js","sourceRoot":"","sources":["../../../../nodes/WechatOfficialAccountNode/resource/OtherResource.ts"],"names":[],"mappings":";;AAEA,MAAM,aAAa,GAAyB;IAC3C,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,OAAO;CACd,CAAC;AAEF,kBAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INodePropertyOptions } from 'n8n-workflow/dist/Interfaces';
2
+ declare const PublishResource: INodePropertyOptions;
3
+ export default PublishResource;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const PublishResource = {
4
+ name: '发布',
5
+ value: 'publish',
6
+ };
7
+ exports.default = PublishResource;
8
+ //# sourceMappingURL=PublishResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublishResource.js","sourceRoot":"","sources":["../../../../nodes/WechatOfficialAccountNode/resource/PublishResource.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAyB;IAC7C,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,SAAS;CAChB,CAAC;AAEF,kBAAe,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INodePropertyOptions } from 'n8n-workflow/dist/Interfaces';
2
+ declare const TemplateResource: INodePropertyOptions;
3
+ export default TemplateResource;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const TemplateResource = {
4
+ name: '模板',
5
+ value: 'template',
6
+ };
7
+ exports.default = TemplateResource;
8
+ //# sourceMappingURL=TemplateResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplateResource.js","sourceRoot":"","sources":["../../../../nodes/WechatOfficialAccountNode/resource/TemplateResource.ts"],"names":[],"mappings":";;AAEA,MAAM,gBAAgB,GAAyB;IAC9C,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,UAAU;CACjB,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INodePropertyOptions } from 'n8n-workflow/dist/Interfaces';
2
+ declare const UserResource: INodePropertyOptions;
3
+ export default UserResource;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const UserResource = {
4
+ name: '用户',
5
+ value: 'user',
6
+ };
7
+ exports.default = UserResource;
8
+ //# sourceMappingURL=UserResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserResource.js","sourceRoot":"","sources":["../../../../nodes/WechatOfficialAccountNode/resource/UserResource.ts"],"names":[],"mappings":";;AAEA,MAAM,YAAY,GAAyB;IAC1C,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,MAAM;CACb,CAAC;AAEF,kBAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INodePropertyOptions } from 'n8n-workflow/dist/Interfaces';
2
+ declare const UserTagResource: INodePropertyOptions;
3
+ export default UserTagResource;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const UserTagResource = {
4
+ name: '用户标签',
5
+ value: 'userTag',
6
+ };
7
+ exports.default = UserTagResource;
8
+ //# sourceMappingURL=UserTagResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserTagResource.js","sourceRoot":"","sources":["../../../../nodes/WechatOfficialAccountNode/resource/UserTagResource.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAyB;IAC7C,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,SAAS;CAChB,CAAC;AAEF,kBAAe,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ResourceOperations } from '../../../help/type/IResource';
2
+ declare const _default: ResourceOperations;
3
+ export default _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const RequestUtils_1 = __importDefault(require("../../../help/utils/RequestUtils"));
7
+ exports.default = {
8
+ name: '获取AccessToken',
9
+ value: 'auth:getAccessToken',
10
+ options: [],
11
+ async call(index) {
12
+ await RequestUtils_1.default.request.call(this, {
13
+ method: 'GET',
14
+ url: `/cgi-bin/get_api_domain_ip`,
15
+ });
16
+ const credentials = await this.getCredentials('wechatOfficialAccountCredentialsApi');
17
+ return {
18
+ accessToken: credentials.accessToken,
19
+ };
20
+ },
21
+ };
22
+ //# sourceMappingURL=GetAccessTokenOperate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetAccessTokenOperate.js","sourceRoot":"","sources":["../../../../../nodes/WechatOfficialAccountNode/resource/auth/GetAccessTokenOperate.ts"],"names":[],"mappings":";;;;;AAEA,oFAA4D;AAE5D,kBAAe;IACd,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,qBAAqB;IAC5B,OAAO,EAAE,EAAE;IACX,KAAK,CAAC,IAAI,CAA0B,KAAa;QAEhD,MAAM,sBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE;YACrC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,4BAA4B;SACjC,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,qCAAqC,CAAC,CAAC;QAErF,OAAO;YACN,WAAW,EAAE,WAAW,CAAC,WAAW;SACpC,CAAC;IACH,CAAC;CACqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ResourceOperations } from '../../../help/type/IResource';
2
+ declare const CommentCloseOperate: ResourceOperations;
3
+ export default CommentCloseOperate;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const RequestUtils_1 = __importDefault(require("../../../help/utils/RequestUtils"));
7
+ const CommentCloseOperate = {
8
+ name: '关闭评论',
9
+ value: 'comment:close',
10
+ description: '关闭已群发文章的评论',
11
+ options: [
12
+ {
13
+ displayName: '消息数据ID',
14
+ name: 'msg_data_id',
15
+ type: 'string',
16
+ required: true,
17
+ default: '',
18
+ description: '群发返回的 msg_data_id',
19
+ },
20
+ {
21
+ displayName: '图文索引',
22
+ name: 'index',
23
+ type: 'number',
24
+ default: 0,
25
+ description: '多图文时,用来指定第几篇图文,从0开始,不带默认操作该 msg_data_id 的第一篇图文',
26
+ },
27
+ ],
28
+ async call(index) {
29
+ const msgDataId = this.getNodeParameter('msg_data_id', index);
30
+ const articleIndex = this.getNodeParameter('index', index);
31
+ const body = {
32
+ msg_data_id: msgDataId,
33
+ index: articleIndex,
34
+ };
35
+ return RequestUtils_1.default.request.call(this, {
36
+ method: 'POST',
37
+ url: `/cgi-bin/comment/close`,
38
+ body,
39
+ });
40
+ },
41
+ };
42
+ exports.default = CommentCloseOperate;
43
+ //# sourceMappingURL=CommentCloseOperate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommentCloseOperate.js","sourceRoot":"","sources":["../../../../../nodes/WechatOfficialAccountNode/resource/comment/CommentCloseOperate.ts"],"names":[],"mappings":";;;;;AACA,oFAA4D;AAG5D,MAAM,mBAAmB,GAAuB;IAC/C,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,YAAY;IACzB,OAAO,EAAE;QACR;YACC,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,mBAAmB;SAChC;QACD;YACC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,gDAAgD;SAC7D;KACD;IACD,KAAK,CAAC,IAAI,CAA0B,KAAa;QAChD,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,KAAK,CAAW,CAAC;QACxE,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;QAErE,MAAM,IAAI,GAAgB;YACzB,WAAW,EAAE,SAAS;YACtB,KAAK,EAAE,YAAY;SACnB,CAAC;QAEF,OAAO,sBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE;YACtC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,wBAAwB;YAC7B,IAAI;SACJ,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}