n8n-nodes-wecom 0.1.8 → 0.1.9

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 (305) hide show
  1. package/README.md +135 -3
  2. package/dist/nodes/WeCom/WeCom.node.js +26 -2
  3. package/dist/nodes/WeCom/WeCom.node.js.map +1 -1
  4. package/dist/nodes/WeCom/resources/appChat/execute.js +4 -4
  5. package/dist/nodes/WeCom/resources/appChat/sendFile.js +3 -3
  6. package/dist/nodes/WeCom/resources/appChat/sendImage.js +3 -3
  7. package/dist/nodes/WeCom/resources/contact/addTagUsers.d.ts +2 -0
  8. package/dist/nodes/WeCom/resources/contact/addTagUsers.js +44 -0
  9. package/dist/nodes/WeCom/resources/contact/addTagUsers.js.map +1 -0
  10. package/dist/nodes/WeCom/resources/contact/batchDeleteUser.d.ts +2 -0
  11. package/dist/nodes/WeCom/resources/contact/batchDeleteUser.js +22 -0
  12. package/dist/nodes/WeCom/resources/contact/batchDeleteUser.js.map +1 -0
  13. package/dist/nodes/WeCom/resources/contact/batchReplaceDepartment.d.ts +2 -0
  14. package/dist/nodes/WeCom/resources/contact/batchReplaceDepartment.js +33 -0
  15. package/dist/nodes/WeCom/resources/contact/batchReplaceDepartment.js.map +1 -0
  16. package/dist/nodes/WeCom/resources/contact/batchReplaceUser.d.ts +2 -0
  17. package/dist/nodes/WeCom/resources/contact/batchReplaceUser.js +33 -0
  18. package/dist/nodes/WeCom/resources/contact/batchReplaceUser.js.map +1 -0
  19. package/dist/nodes/WeCom/resources/contact/batchSyncUser.d.ts +2 -0
  20. package/dist/nodes/WeCom/resources/contact/batchSyncUser.js +33 -0
  21. package/dist/nodes/WeCom/resources/contact/batchSyncUser.js.map +1 -0
  22. package/dist/nodes/WeCom/resources/contact/convertTmpExternalUserId.d.ts +2 -0
  23. package/dist/nodes/WeCom/resources/contact/convertTmpExternalUserId.js +22 -0
  24. package/dist/nodes/WeCom/resources/contact/convertTmpExternalUserId.js.map +1 -0
  25. package/dist/nodes/WeCom/resources/contact/createDepartment.d.ts +2 -0
  26. package/dist/nodes/WeCom/resources/contact/createDepartment.js +67 -0
  27. package/dist/nodes/WeCom/resources/contact/createDepartment.js.map +1 -0
  28. package/dist/nodes/WeCom/resources/contact/createTag.d.ts +2 -0
  29. package/dist/nodes/WeCom/resources/contact/createTag.js +33 -0
  30. package/dist/nodes/WeCom/resources/contact/createTag.js.map +1 -0
  31. package/dist/nodes/WeCom/resources/contact/createUser.d.ts +2 -0
  32. package/dist/nodes/WeCom/resources/contact/createUser.js +203 -0
  33. package/dist/nodes/WeCom/resources/contact/createUser.js.map +1 -0
  34. package/dist/nodes/WeCom/resources/contact/delTagUsers.d.ts +2 -0
  35. package/dist/nodes/WeCom/resources/contact/delTagUsers.js +44 -0
  36. package/dist/nodes/WeCom/resources/contact/delTagUsers.js.map +1 -0
  37. package/dist/nodes/WeCom/resources/contact/deleteDepartment.d.ts +2 -0
  38. package/dist/nodes/WeCom/resources/contact/deleteDepartment.js +22 -0
  39. package/dist/nodes/WeCom/resources/contact/deleteDepartment.js.map +1 -0
  40. package/dist/nodes/WeCom/resources/contact/deleteTag.d.ts +2 -0
  41. package/dist/nodes/WeCom/resources/contact/deleteTag.js +22 -0
  42. package/dist/nodes/WeCom/resources/contact/deleteTag.js.map +1 -0
  43. package/dist/nodes/WeCom/resources/contact/deleteUser.d.ts +2 -0
  44. package/dist/nodes/WeCom/resources/contact/deleteUser.js +22 -0
  45. package/dist/nodes/WeCom/resources/contact/deleteUser.js.map +1 -0
  46. package/dist/nodes/WeCom/resources/contact/execute.js +305 -0
  47. package/dist/nodes/WeCom/resources/contact/execute.js.map +1 -1
  48. package/dist/nodes/WeCom/resources/contact/exportDepartment.d.ts +2 -0
  49. package/dist/nodes/WeCom/resources/contact/exportDepartment.js +32 -0
  50. package/dist/nodes/WeCom/resources/contact/exportDepartment.js.map +1 -0
  51. package/dist/nodes/WeCom/resources/contact/exportSimpleUser.d.ts +2 -0
  52. package/dist/nodes/WeCom/resources/contact/exportSimpleUser.js +32 -0
  53. package/dist/nodes/WeCom/resources/contact/exportSimpleUser.js.map +1 -0
  54. package/dist/nodes/WeCom/resources/contact/exportTagUser.d.ts +2 -0
  55. package/dist/nodes/WeCom/resources/contact/exportTagUser.js +44 -0
  56. package/dist/nodes/WeCom/resources/contact/exportTagUser.js.map +1 -0
  57. package/dist/nodes/WeCom/resources/contact/exportUser.d.ts +2 -0
  58. package/dist/nodes/WeCom/resources/contact/exportUser.js +32 -0
  59. package/dist/nodes/WeCom/resources/contact/exportUser.js.map +1 -0
  60. package/dist/nodes/WeCom/resources/contact/getAsyncResult.d.ts +2 -0
  61. package/dist/nodes/WeCom/resources/contact/getAsyncResult.js +22 -0
  62. package/dist/nodes/WeCom/resources/contact/getAsyncResult.js.map +1 -0
  63. package/dist/nodes/WeCom/resources/contact/getDepartmentDetail.d.ts +2 -0
  64. package/dist/nodes/WeCom/resources/contact/getDepartmentDetail.js +22 -0
  65. package/dist/nodes/WeCom/resources/contact/getDepartmentDetail.js.map +1 -0
  66. package/dist/nodes/WeCom/resources/contact/getExportResult.d.ts +2 -0
  67. package/dist/nodes/WeCom/resources/contact/getExportResult.js +22 -0
  68. package/dist/nodes/WeCom/resources/contact/getExportResult.js.map +1 -0
  69. package/dist/nodes/WeCom/resources/contact/getJoinQrCode.d.ts +2 -0
  70. package/dist/nodes/WeCom/resources/contact/getJoinQrCode.js +39 -0
  71. package/dist/nodes/WeCom/resources/contact/getJoinQrCode.js.map +1 -0
  72. package/dist/nodes/WeCom/resources/contact/getSubDepartmentIds.d.ts +2 -0
  73. package/dist/nodes/WeCom/resources/contact/getSubDepartmentIds.js +21 -0
  74. package/dist/nodes/WeCom/resources/contact/getSubDepartmentIds.js.map +1 -0
  75. package/dist/nodes/WeCom/resources/contact/getUserIdByEmail.d.ts +2 -0
  76. package/dist/nodes/WeCom/resources/contact/getUserIdByEmail.js +44 -0
  77. package/dist/nodes/WeCom/resources/contact/getUserIdByEmail.js.map +1 -0
  78. package/dist/nodes/WeCom/resources/contact/getUserIdByMobile.d.ts +2 -0
  79. package/dist/nodes/WeCom/resources/contact/getUserIdByMobile.js +22 -0
  80. package/dist/nodes/WeCom/resources/contact/getUserIdByMobile.js.map +1 -0
  81. package/dist/nodes/WeCom/resources/contact/index.js +217 -3
  82. package/dist/nodes/WeCom/resources/contact/index.js.map +1 -1
  83. package/dist/nodes/WeCom/resources/contact/inviteUser.d.ts +2 -0
  84. package/dist/nodes/WeCom/resources/contact/inviteUser.js +43 -0
  85. package/dist/nodes/WeCom/resources/contact/inviteUser.js.map +1 -0
  86. package/dist/nodes/WeCom/resources/contact/updateDepartment.d.ts +2 -0
  87. package/dist/nodes/WeCom/resources/contact/updateDepartment.js +66 -0
  88. package/dist/nodes/WeCom/resources/contact/updateDepartment.js.map +1 -0
  89. package/dist/nodes/WeCom/resources/contact/updateTag.d.ts +2 -0
  90. package/dist/nodes/WeCom/resources/contact/updateTag.js +34 -0
  91. package/dist/nodes/WeCom/resources/contact/updateTag.js.map +1 -0
  92. package/dist/nodes/WeCom/resources/contact/updateUser.d.ts +2 -0
  93. package/dist/nodes/WeCom/resources/contact/updateUser.js +190 -0
  94. package/dist/nodes/WeCom/resources/contact/updateUser.js.map +1 -0
  95. package/dist/nodes/WeCom/resources/linkedcorp/addChainRule.d.ts +2 -0
  96. package/dist/nodes/WeCom/resources/linkedcorp/addChainRule.js +46 -0
  97. package/dist/nodes/WeCom/resources/linkedcorp/addChainRule.js.map +1 -0
  98. package/dist/nodes/WeCom/resources/linkedcorp/batchImportChainContact.d.ts +2 -0
  99. package/dist/nodes/WeCom/resources/linkedcorp/batchImportChainContact.js +34 -0
  100. package/dist/nodes/WeCom/resources/linkedcorp/batchImportChainContact.js.map +1 -0
  101. package/dist/nodes/WeCom/resources/linkedcorp/deleteChainRule.d.ts +2 -0
  102. package/dist/nodes/WeCom/resources/linkedcorp/deleteChainRule.js +34 -0
  103. package/dist/nodes/WeCom/resources/linkedcorp/deleteChainRule.js.map +1 -0
  104. package/dist/nodes/WeCom/resources/linkedcorp/execute.d.ts +2 -0
  105. package/dist/nodes/WeCom/resources/linkedcorp/execute.js +185 -0
  106. package/dist/nodes/WeCom/resources/linkedcorp/execute.js.map +1 -0
  107. package/dist/nodes/WeCom/resources/linkedcorp/getAppShareInfo.d.ts +2 -0
  108. package/dist/nodes/WeCom/resources/linkedcorp/getAppShareInfo.js +32 -0
  109. package/dist/nodes/WeCom/resources/linkedcorp/getAppShareInfo.js.map +1 -0
  110. package/dist/nodes/WeCom/resources/linkedcorp/getChainAsyncResult.d.ts +2 -0
  111. package/dist/nodes/WeCom/resources/linkedcorp/getChainAsyncResult.js +22 -0
  112. package/dist/nodes/WeCom/resources/linkedcorp/getChainAsyncResult.js.map +1 -0
  113. package/dist/nodes/WeCom/resources/linkedcorp/getChainInfo.d.ts +2 -0
  114. package/dist/nodes/WeCom/resources/linkedcorp/getChainInfo.js +21 -0
  115. package/dist/nodes/WeCom/resources/linkedcorp/getChainInfo.js.map +1 -0
  116. package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleDetail.d.ts +2 -0
  117. package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleDetail.js +34 -0
  118. package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleDetail.js.map +1 -0
  119. package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleList.d.ts +2 -0
  120. package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleList.js +22 -0
  121. package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleList.js.map +1 -0
  122. package/dist/nodes/WeCom/resources/linkedcorp/getCustomUserId.d.ts +2 -0
  123. package/dist/nodes/WeCom/resources/linkedcorp/getCustomUserId.js +34 -0
  124. package/dist/nodes/WeCom/resources/linkedcorp/getCustomUserId.js.map +1 -0
  125. package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCorpToken.d.ts +2 -0
  126. package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCorpToken.js +55 -0
  127. package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCorpToken.js.map +1 -0
  128. package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCustomer.d.ts +2 -0
  129. package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCustomer.js +55 -0
  130. package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCustomer.js.map +1 -0
  131. package/dist/nodes/WeCom/resources/linkedcorp/getMiniProgramSession.d.ts +2 -0
  132. package/dist/nodes/WeCom/resources/linkedcorp/getMiniProgramSession.js +67 -0
  133. package/dist/nodes/WeCom/resources/linkedcorp/getMiniProgramSession.js.map +1 -0
  134. package/dist/nodes/WeCom/resources/linkedcorp/getSubCorpChainList.d.ts +2 -0
  135. package/dist/nodes/WeCom/resources/linkedcorp/getSubCorpChainList.js +22 -0
  136. package/dist/nodes/WeCom/resources/linkedcorp/getSubCorpChainList.js.map +1 -0
  137. package/dist/nodes/WeCom/resources/linkedcorp/index.d.ts +2 -0
  138. package/dist/nodes/WeCom/resources/linkedcorp/index.js +50 -0
  139. package/dist/nodes/WeCom/resources/linkedcorp/index.js.map +1 -0
  140. package/dist/nodes/WeCom/resources/linkedcorp/removeChainCorp.d.ts +2 -0
  141. package/dist/nodes/WeCom/resources/linkedcorp/removeChainCorp.js +34 -0
  142. package/dist/nodes/WeCom/resources/linkedcorp/removeChainCorp.js.map +1 -0
  143. package/dist/nodes/WeCom/resources/linkedcorp/updateChainRule.d.ts +2 -0
  144. package/dist/nodes/WeCom/resources/linkedcorp/updateChainRule.js +56 -0
  145. package/dist/nodes/WeCom/resources/linkedcorp/updateChainRule.js.map +1 -0
  146. package/dist/nodes/WeCom/resources/material/execute.js +70 -6
  147. package/dist/nodes/WeCom/resources/material/execute.js.map +1 -1
  148. package/dist/nodes/WeCom/resources/material/getHighQualityVoice.d.ts +2 -0
  149. package/dist/nodes/WeCom/resources/material/getHighQualityVoice.js +22 -0
  150. package/dist/nodes/WeCom/resources/material/getHighQualityVoice.js.map +1 -0
  151. package/dist/nodes/WeCom/resources/material/getPermanent.js +2 -2
  152. package/dist/nodes/WeCom/resources/material/getTemp.js +2 -2
  153. package/dist/nodes/WeCom/resources/material/index.js +8 -26
  154. package/dist/nodes/WeCom/resources/material/index.js.map +1 -1
  155. package/dist/nodes/WeCom/resources/material/uploadImage.d.ts +2 -0
  156. package/dist/nodes/WeCom/resources/material/uploadImage.js +33 -0
  157. package/dist/nodes/WeCom/resources/material/uploadImage.js.map +1 -0
  158. package/dist/nodes/WeCom/resources/material/uploadTempAsync.d.ts +2 -0
  159. package/dist/nodes/WeCom/resources/material/uploadTempAsync.js +74 -0
  160. package/dist/nodes/WeCom/resources/material/uploadTempAsync.js.map +1 -0
  161. package/dist/nodes/WeCom/resources/message/execute.js +47 -8
  162. package/dist/nodes/WeCom/resources/message/execute.js.map +1 -1
  163. package/dist/nodes/WeCom/resources/message/index.js +4 -87
  164. package/dist/nodes/WeCom/resources/message/index.js.map +1 -1
  165. package/dist/nodes/WeCom/resources/message/sendFile.js +1 -1
  166. package/dist/nodes/WeCom/resources/message/sendImage.js +1 -1
  167. package/dist/nodes/WeCom/resources/message/sendMpNews.js +2 -2
  168. package/dist/nodes/WeCom/resources/message/sendSchoolNotice.d.ts +2 -0
  169. package/dist/nodes/WeCom/resources/message/sendSchoolNotice.js +100 -0
  170. package/dist/nodes/WeCom/resources/message/sendSchoolNotice.js.map +1 -0
  171. package/dist/nodes/WeCom/resources/message/sendVideo.js +2 -2
  172. package/dist/nodes/WeCom/resources/message/sendVoice.js +2 -2
  173. package/dist/nodes/WeCom/resources/pushMessage/execute.js +2 -2
  174. package/dist/nodes/WeCom/resources/pushMessage/sendFile.js +1 -1
  175. package/dist/nodes/WeCom/resources/pushMessage/sendTemplateCard.js +2 -2
  176. package/dist/nodes/WeCom/resources/pushMessage/sendVoice.js +1 -1
  177. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetField.d.ts +2 -0
  178. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetField.js +10 -0
  179. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetField.js.map +1 -0
  180. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetRecord.d.ts +2 -0
  181. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetRecord.js +10 -0
  182. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetRecord.js.map +1 -0
  183. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetSheet.d.ts +2 -0
  184. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetSheet.js +9 -0
  185. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetSheet.js.map +1 -0
  186. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetView.d.ts +2 -0
  187. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetView.js +10 -0
  188. package/dist/nodes/WeCom/resources/wedoc/addSmartsheetView.js.map +1 -0
  189. package/dist/nodes/WeCom/resources/wedoc/allocateAdvancedAccount.d.ts +2 -0
  190. package/dist/nodes/WeCom/resources/wedoc/allocateAdvancedAccount.js +8 -0
  191. package/dist/nodes/WeCom/resources/wedoc/allocateAdvancedAccount.js.map +1 -0
  192. package/dist/nodes/WeCom/resources/wedoc/createDoc.d.ts +2 -0
  193. package/dist/nodes/WeCom/resources/wedoc/createDoc.js +59 -0
  194. package/dist/nodes/WeCom/resources/wedoc/createDoc.js.map +1 -0
  195. package/dist/nodes/WeCom/resources/wedoc/createForm.d.ts +2 -0
  196. package/dist/nodes/WeCom/resources/wedoc/createForm.js +10 -0
  197. package/dist/nodes/WeCom/resources/wedoc/createForm.js.map +1 -0
  198. package/dist/nodes/WeCom/resources/wedoc/deallocateAdvancedAccount.d.ts +2 -0
  199. package/dist/nodes/WeCom/resources/wedoc/deallocateAdvancedAccount.js +8 -0
  200. package/dist/nodes/WeCom/resources/wedoc/deallocateAdvancedAccount.js.map +1 -0
  201. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetField.d.ts +2 -0
  202. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetField.js +10 -0
  203. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetField.js.map +1 -0
  204. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetRecord.d.ts +2 -0
  205. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetRecord.js +10 -0
  206. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetRecord.js.map +1 -0
  207. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetSheet.d.ts +2 -0
  208. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetSheet.js +9 -0
  209. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetSheet.js.map +1 -0
  210. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetView.d.ts +2 -0
  211. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetView.js +10 -0
  212. package/dist/nodes/WeCom/resources/wedoc/delSmartsheetView.js.map +1 -0
  213. package/dist/nodes/WeCom/resources/wedoc/deleteDoc.d.ts +2 -0
  214. package/dist/nodes/WeCom/resources/wedoc/deleteDoc.js +22 -0
  215. package/dist/nodes/WeCom/resources/wedoc/deleteDoc.js.map +1 -0
  216. package/dist/nodes/WeCom/resources/wedoc/execute.d.ts +2 -0
  217. package/dist/nodes/WeCom/resources/wedoc/execute.js +385 -0
  218. package/dist/nodes/WeCom/resources/wedoc/execute.js.map +1 -0
  219. package/dist/nodes/WeCom/resources/wedoc/getAdvancedAccountList.d.ts +2 -0
  220. package/dist/nodes/WeCom/resources/wedoc/getAdvancedAccountList.js +12 -0
  221. package/dist/nodes/WeCom/resources/wedoc/getAdvancedAccountList.js.map +1 -0
  222. package/dist/nodes/WeCom/resources/wedoc/getDocAuth.d.ts +2 -0
  223. package/dist/nodes/WeCom/resources/wedoc/getDocAuth.js +8 -0
  224. package/dist/nodes/WeCom/resources/wedoc/getDocAuth.js.map +1 -0
  225. package/dist/nodes/WeCom/resources/wedoc/getDocData.d.ts +2 -0
  226. package/dist/nodes/WeCom/resources/wedoc/getDocData.js +8 -0
  227. package/dist/nodes/WeCom/resources/wedoc/getDocData.js.map +1 -0
  228. package/dist/nodes/WeCom/resources/wedoc/getDocInfo.d.ts +2 -0
  229. package/dist/nodes/WeCom/resources/wedoc/getDocInfo.js +22 -0
  230. package/dist/nodes/WeCom/resources/wedoc/getDocInfo.js.map +1 -0
  231. package/dist/nodes/WeCom/resources/wedoc/getFormAnswer.d.ts +2 -0
  232. package/dist/nodes/WeCom/resources/wedoc/getFormAnswer.js +13 -0
  233. package/dist/nodes/WeCom/resources/wedoc/getFormAnswer.js.map +1 -0
  234. package/dist/nodes/WeCom/resources/wedoc/getFormInfo.d.ts +2 -0
  235. package/dist/nodes/WeCom/resources/wedoc/getFormInfo.js +8 -0
  236. package/dist/nodes/WeCom/resources/wedoc/getFormInfo.js.map +1 -0
  237. package/dist/nodes/WeCom/resources/wedoc/getFormStatistic.d.ts +2 -0
  238. package/dist/nodes/WeCom/resources/wedoc/getFormStatistic.js +8 -0
  239. package/dist/nodes/WeCom/resources/wedoc/getFormStatistic.js.map +1 -0
  240. package/dist/nodes/WeCom/resources/wedoc/getSheetData.d.ts +2 -0
  241. package/dist/nodes/WeCom/resources/wedoc/getSheetData.js +9 -0
  242. package/dist/nodes/WeCom/resources/wedoc/getSheetData.js.map +1 -0
  243. package/dist/nodes/WeCom/resources/wedoc/getSheetRange.d.ts +2 -0
  244. package/dist/nodes/WeCom/resources/wedoc/getSheetRange.js +8 -0
  245. package/dist/nodes/WeCom/resources/wedoc/getSheetRange.js.map +1 -0
  246. package/dist/nodes/WeCom/resources/wedoc/index.d.ts +2 -0
  247. package/dist/nodes/WeCom/resources/wedoc/index.js +336 -0
  248. package/dist/nodes/WeCom/resources/wedoc/index.js.map +1 -0
  249. package/dist/nodes/WeCom/resources/wedoc/manageSmartsheetAuth.d.ts +2 -0
  250. package/dist/nodes/WeCom/resources/wedoc/manageSmartsheetAuth.js +10 -0
  251. package/dist/nodes/WeCom/resources/wedoc/manageSmartsheetAuth.js.map +1 -0
  252. package/dist/nodes/WeCom/resources/wedoc/modDocContent.d.ts +2 -0
  253. package/dist/nodes/WeCom/resources/wedoc/modDocContent.js +34 -0
  254. package/dist/nodes/WeCom/resources/wedoc/modDocContent.js.map +1 -0
  255. package/dist/nodes/WeCom/resources/wedoc/modDocMemberRule.d.ts +2 -0
  256. package/dist/nodes/WeCom/resources/wedoc/modDocMemberRule.js +9 -0
  257. package/dist/nodes/WeCom/resources/wedoc/modDocMemberRule.js.map +1 -0
  258. package/dist/nodes/WeCom/resources/wedoc/modDocSafeRule.d.ts +2 -0
  259. package/dist/nodes/WeCom/resources/wedoc/modDocSafeRule.js +9 -0
  260. package/dist/nodes/WeCom/resources/wedoc/modDocSafeRule.js.map +1 -0
  261. package/dist/nodes/WeCom/resources/wedoc/modDocShareScope.d.ts +2 -0
  262. package/dist/nodes/WeCom/resources/wedoc/modDocShareScope.js +9 -0
  263. package/dist/nodes/WeCom/resources/wedoc/modDocShareScope.js.map +1 -0
  264. package/dist/nodes/WeCom/resources/wedoc/modForm.d.ts +2 -0
  265. package/dist/nodes/WeCom/resources/wedoc/modForm.js +9 -0
  266. package/dist/nodes/WeCom/resources/wedoc/modForm.js.map +1 -0
  267. package/dist/nodes/WeCom/resources/wedoc/modSheetContent.d.ts +2 -0
  268. package/dist/nodes/WeCom/resources/wedoc/modSheetContent.js +34 -0
  269. package/dist/nodes/WeCom/resources/wedoc/modSheetContent.js.map +1 -0
  270. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetField.d.ts +2 -0
  271. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetField.js +9 -0
  272. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetField.js.map +1 -0
  273. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetRecord.d.ts +2 -0
  274. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetRecord.js +11 -0
  275. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetRecord.js.map +1 -0
  276. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetSheet.d.ts +2 -0
  277. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetSheet.js +8 -0
  278. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetSheet.js.map +1 -0
  279. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetView.d.ts +2 -0
  280. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetView.js +9 -0
  281. package/dist/nodes/WeCom/resources/wedoc/querySmartsheetView.js.map +1 -0
  282. package/dist/nodes/WeCom/resources/wedoc/renameDoc.d.ts +2 -0
  283. package/dist/nodes/WeCom/resources/wedoc/renameDoc.js +34 -0
  284. package/dist/nodes/WeCom/resources/wedoc/renameDoc.js.map +1 -0
  285. package/dist/nodes/WeCom/resources/wedoc/shareDoc.d.ts +2 -0
  286. package/dist/nodes/WeCom/resources/wedoc/shareDoc.js +22 -0
  287. package/dist/nodes/WeCom/resources/wedoc/shareDoc.js.map +1 -0
  288. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetField.d.ts +2 -0
  289. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetField.js +11 -0
  290. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetField.js.map +1 -0
  291. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetRecord.d.ts +2 -0
  292. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetRecord.js +10 -0
  293. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetRecord.js.map +1 -0
  294. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetSheet.d.ts +2 -0
  295. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetSheet.js +10 -0
  296. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetSheet.js.map +1 -0
  297. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetView.d.ts +2 -0
  298. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetView.js +11 -0
  299. package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetView.js.map +1 -0
  300. package/dist/nodes/WeCom/resources/wedoc/uploadDocImage.d.ts +2 -0
  301. package/dist/nodes/WeCom/resources/wedoc/uploadDocImage.js +10 -0
  302. package/dist/nodes/WeCom/resources/wedoc/uploadDocImage.js.map +1 -0
  303. package/dist/package.json +1 -1
  304. package/dist/tsconfig.tsbuildinfo +1 -1
  305. package/package.json +1 -1
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getChainRuleDetailDescription = void 0;
4
+ const showOnlyForGetRuleDetail = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['getChainRuleDetail'],
7
+ };
8
+ exports.getChainRuleDetailDescription = [
9
+ {
10
+ displayName: '上下游ID',
11
+ name: 'chain_id',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForGetRuleDetail,
16
+ },
17
+ default: '',
18
+ description: '上下游的唯一ID。',
19
+ hint: '上下游ID',
20
+ },
21
+ {
22
+ displayName: '规则ID',
23
+ name: 'rule_id',
24
+ type: 'string',
25
+ required: true,
26
+ displayOptions: {
27
+ show: showOnlyForGetRuleDetail,
28
+ },
29
+ default: '',
30
+ description: '对接规则的唯一ID。',
31
+ hint: '规则ID',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=getChainRuleDetail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getChainRuleDetail.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/getChainRuleDetail.ts"],"names":[],"mappings":";;;AAEA,MAAM,wBAAwB,GAAG;IAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,oBAAoB,CAAC;CACjC,CAAC;AAEW,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,OAAO;KACb;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,MAAM;KACZ;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getChainRuleListDescription: INodeProperties[];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getChainRuleListDescription = void 0;
4
+ const showOnlyForGetRuleList = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['getChainRuleList'],
7
+ };
8
+ exports.getChainRuleListDescription = [
9
+ {
10
+ displayName: '上下游ID',
11
+ name: 'chain_id',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForGetRuleList,
16
+ },
17
+ default: '',
18
+ description: '上下游的唯一ID。',
19
+ hint: '上下游ID',
20
+ },
21
+ ];
22
+ //# sourceMappingURL=getChainRuleList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getChainRuleList.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/getChainRuleList.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,kBAAkB,CAAC;CAC/B,CAAC;AAEW,QAAA,2BAA2B,GAAsB;IAC7D;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,OAAO;KACb;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getCustomUserIdDescription: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCustomUserIdDescription = void 0;
4
+ const showOnlyForGetCustomId = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['getCustomUserId'],
7
+ };
8
+ exports.getCustomUserIdDescription = [
9
+ {
10
+ displayName: '上下游ID',
11
+ name: 'chain_id',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForGetCustomId,
16
+ },
17
+ default: '',
18
+ description: '上下游的唯一ID。',
19
+ hint: '上下游ID',
20
+ },
21
+ {
22
+ displayName: '成员UserID列表',
23
+ name: 'userid_list',
24
+ type: 'string',
25
+ required: true,
26
+ displayOptions: {
27
+ show: showOnlyForGetCustomId,
28
+ },
29
+ default: '',
30
+ description: '成员UserID列表,多个用逗号分隔,最多支持100个。',
31
+ hint: 'UserID列表,用逗号分隔',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=getCustomUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCustomUserId.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/getCustomUserId.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,iBAAiB,CAAC;CAC9B,CAAC;AAEW,QAAA,0BAA0B,GAAsB;IAC5D;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,OAAO;KACb;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,gBAAgB;KACtB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getLinkedCorpTokenDescription: INodeProperties[];
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLinkedCorpTokenDescription = void 0;
4
+ const showOnlyForGetToken = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['getLinkedCorpToken'],
7
+ };
8
+ exports.getLinkedCorpTokenDescription = [
9
+ {
10
+ displayName: '业务类型',
11
+ name: 'business_type',
12
+ type: 'options',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForGetToken,
16
+ },
17
+ options: [
18
+ {
19
+ name: '互联企业',
20
+ value: 'linked_corp',
21
+ },
22
+ {
23
+ name: '上下游',
24
+ value: 'chain',
25
+ },
26
+ ],
27
+ default: 'linked_corp',
28
+ description: '业务类型。linked_corp表示互联企业,chain表示上下游。',
29
+ hint: '业务类型',
30
+ },
31
+ {
32
+ displayName: '下级/下游企业CorpID',
33
+ name: 'corpid',
34
+ type: 'string',
35
+ required: true,
36
+ displayOptions: {
37
+ show: showOnlyForGetToken,
38
+ },
39
+ default: '',
40
+ description: '下级/下游企业的corpid。',
41
+ hint: '企业CorpID',
42
+ },
43
+ {
44
+ displayName: '应用AgentID',
45
+ name: 'agentid',
46
+ type: 'string',
47
+ displayOptions: {
48
+ show: showOnlyForGetToken,
49
+ },
50
+ default: '',
51
+ description: '上级/上游企业应用的agentid。如果不填,默认使用凭证中的agentid。',
52
+ hint: '应用AgentID(可选)',
53
+ },
54
+ ];
55
+ //# sourceMappingURL=getLinkedCorpToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLinkedCorpToken.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/getLinkedCorpToken.ts"],"names":[],"mappings":";;;AAEA,MAAM,mBAAmB,GAAG;IAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,oBAAoB,CAAC;CACjC,CAAC;AAEW,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,mBAAmB;SACzB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,aAAa;aACpB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,OAAO;aACd;SACD;QACD,OAAO,EAAE,aAAa;QACtB,WAAW,EAAE,oCAAoC;QACjD,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,mBAAmB;SACzB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,UAAU;KAChB;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,mBAAmB;SACzB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,eAAe;KACrB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getLinkedCustomerDescription: INodeProperties[];
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLinkedCustomerDescription = void 0;
4
+ const showOnlyForGetCustomer = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['getLinkedCustomer'],
7
+ };
8
+ exports.getLinkedCustomerDescription = [
9
+ {
10
+ displayName: '客户类型',
11
+ name: 'customer_type',
12
+ type: 'options',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForGetCustomer,
16
+ },
17
+ options: [
18
+ {
19
+ name: '已添加客户',
20
+ value: 'added',
21
+ },
22
+ {
23
+ name: '未添加客户',
24
+ value: 'pending',
25
+ },
26
+ ],
27
+ default: 'added',
28
+ description: '客户类型。added表示已添加客户,pending表示未添加客户。',
29
+ hint: '客户类型',
30
+ },
31
+ {
32
+ displayName: '外部联系人ID',
33
+ name: 'external_userid',
34
+ type: 'string',
35
+ required: true,
36
+ displayOptions: {
37
+ show: showOnlyForGetCustomer,
38
+ },
39
+ default: '',
40
+ description: '外部联系人的userid。',
41
+ hint: '外部联系人ID',
42
+ },
43
+ {
44
+ displayName: '下游企业CorpID',
45
+ name: 'corpid',
46
+ type: 'string',
47
+ displayOptions: {
48
+ show: showOnlyForGetCustomer,
49
+ },
50
+ default: '',
51
+ description: '下游企业的corpid。仅对未添加客户类型有效。',
52
+ hint: '企业CorpID(可选)',
53
+ },
54
+ ];
55
+ //# sourceMappingURL=getLinkedCustomer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLinkedCustomer.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/getLinkedCustomer.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,mBAAmB,CAAC;CAChC,CAAC;AAEW,QAAA,4BAA4B,GAAsB;IAC9D;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;aACd;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,SAAS;aAChB;SACD;QACD,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,mCAAmC;QAChD,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,SAAS;KACf;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,cAAc;KACpB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getMiniProgramSessionDescription: INodeProperties[];
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMiniProgramSessionDescription = void 0;
4
+ const showOnlyForGetSession = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['getMiniProgramSession'],
7
+ };
8
+ exports.getMiniProgramSessionDescription = [
9
+ {
10
+ displayName: '用户授权码',
11
+ name: 'code',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForGetSession,
16
+ },
17
+ default: '',
18
+ description: '通过wx.qy.login获取的code。',
19
+ hint: '授权码',
20
+ },
21
+ {
22
+ displayName: '业务类型',
23
+ name: 'business_type',
24
+ type: 'options',
25
+ required: true,
26
+ displayOptions: {
27
+ show: showOnlyForGetSession,
28
+ },
29
+ options: [
30
+ {
31
+ name: '互联企业',
32
+ value: 'linked_corp',
33
+ },
34
+ {
35
+ name: '上下游',
36
+ value: 'chain',
37
+ },
38
+ ],
39
+ default: 'linked_corp',
40
+ description: '业务类型。linked_corp表示互联企业,chain表示上下游。',
41
+ hint: '业务类型',
42
+ },
43
+ {
44
+ displayName: '下级/下游企业CorpID',
45
+ name: 'corpid',
46
+ type: 'string',
47
+ required: true,
48
+ displayOptions: {
49
+ show: showOnlyForGetSession,
50
+ },
51
+ default: '',
52
+ description: '下级/下游企业的corpid。',
53
+ hint: '企业CorpID',
54
+ },
55
+ {
56
+ displayName: '应用AgentID',
57
+ name: 'agentid',
58
+ type: 'string',
59
+ displayOptions: {
60
+ show: showOnlyForGetSession,
61
+ },
62
+ default: '',
63
+ description: '上级/上游企业应用的agentid。如果不填,默认使用凭证中的agentid。',
64
+ hint: '应用AgentID(可选)',
65
+ },
66
+ ];
67
+ //# sourceMappingURL=getMiniProgramSession.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMiniProgramSession.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/getMiniProgramSession.ts"],"names":[],"mappings":";;;AAEA,MAAM,qBAAqB,GAAG;IAC7B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,uBAAuB,CAAC;CACpC,CAAC;AAEW,QAAA,gCAAgC,GAAsB;IAClE;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,KAAK;KACX;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,aAAa;aACpB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,OAAO;aACd;SACD;QACD,OAAO,EAAE,aAAa;QACtB,WAAW,EAAE,oCAAoC;QACjD,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,UAAU;KAChB;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,eAAe;KACrB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getSubCorpChainListDescription: INodeProperties[];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSubCorpChainListDescription = void 0;
4
+ const showOnlyForGetSubChain = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['getSubCorpChainList'],
7
+ };
8
+ exports.getSubCorpChainListDescription = [
9
+ {
10
+ displayName: '下级企业CorpID',
11
+ name: 'corpid',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForGetSubChain,
16
+ },
17
+ default: '',
18
+ description: '下级企业的corpid。',
19
+ hint: '企业CorpID',
20
+ },
21
+ ];
22
+ //# sourceMappingURL=getSubCorpChainList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSubCorpChainList.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/getSubCorpChainList.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,qBAAqB,CAAC;CAClC,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,UAAU;KAChB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const linkedcorpDescription: INodeProperties[];
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.linkedcorpDescription = void 0;
4
+ const getAppShareInfo_1 = require("./getAppShareInfo");
5
+ const getLinkedCorpToken_1 = require("./getLinkedCorpToken");
6
+ const getMiniProgramSession_1 = require("./getMiniProgramSession");
7
+ const getLinkedCustomer_1 = require("./getLinkedCustomer");
8
+ const getChainInfo_1 = require("./getChainInfo");
9
+ const batchImportChainContact_1 = require("./batchImportChainContact");
10
+ const getChainAsyncResult_1 = require("./getChainAsyncResult");
11
+ const removeChainCorp_1 = require("./removeChainCorp");
12
+ const getCustomUserId_1 = require("./getCustomUserId");
13
+ const getSubCorpChainList_1 = require("./getSubCorpChainList");
14
+ const getChainRuleList_1 = require("./getChainRuleList");
15
+ const deleteChainRule_1 = require("./deleteChainRule");
16
+ const getChainRuleDetail_1 = require("./getChainRuleDetail");
17
+ const addChainRule_1 = require("./addChainRule");
18
+ const updateChainRule_1 = require("./updateChainRule");
19
+ const showOnlyForLinkedcorp = {
20
+ resource: ['linkedcorp'],
21
+ };
22
+ exports.linkedcorpDescription = [
23
+ {
24
+ displayName: '操作',
25
+ name: 'operation',
26
+ type: 'options',
27
+ noDataExpression: true,
28
+ displayOptions: {
29
+ show: showOnlyForLinkedcorp,
30
+ },
31
+ options: [],
32
+ default: '',
33
+ },
34
+ ...getAppShareInfo_1.getAppShareInfoDescription,
35
+ ...getLinkedCorpToken_1.getLinkedCorpTokenDescription,
36
+ ...getMiniProgramSession_1.getMiniProgramSessionDescription,
37
+ ...getLinkedCustomer_1.getLinkedCustomerDescription,
38
+ ...getChainInfo_1.getChainInfoDescription,
39
+ ...batchImportChainContact_1.batchImportChainContactDescription,
40
+ ...getChainAsyncResult_1.getChainAsyncResultDescription,
41
+ ...removeChainCorp_1.removeChainCorpDescription,
42
+ ...getCustomUserId_1.getCustomUserIdDescription,
43
+ ...getSubCorpChainList_1.getSubCorpChainListDescription,
44
+ ...getChainRuleList_1.getChainRuleListDescription,
45
+ ...deleteChainRule_1.deleteChainRuleDescription,
46
+ ...getChainRuleDetail_1.getChainRuleDetailDescription,
47
+ ...addChainRule_1.addChainRuleDescription,
48
+ ...updateChainRule_1.updateChainRuleDescription,
49
+ ];
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/index.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAC/D,6DAAqE;AACrE,mEAA2E;AAC3E,2DAAmE;AACnE,iDAAyD;AACzD,uEAA+E;AAC/E,+DAAuE;AACvE,uDAA+D;AAC/D,uDAA+D;AAC/D,+DAAuE;AACvE,yDAAiE;AACjE,uDAA+D;AAC/D,6DAAqE;AACrE,iDAAyD;AACzD,uDAA+D;AAE/D,MAAM,qBAAqB,GAAG;IAC7B,QAAQ,EAAE,CAAC,YAAY,CAAC;CACxB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE,EACP;QACF,OAAO,EAAE,EAAE;KACX;IACD,GAAG,4CAA0B;IAC7B,GAAG,kDAA6B;IAChC,GAAG,wDAAgC;IACnC,GAAG,gDAA4B;IAC/B,GAAG,sCAAuB;IAC1B,GAAG,4DAAkC;IACrC,GAAG,oDAA8B;IACjC,GAAG,4CAA0B;IAC7B,GAAG,4CAA0B;IAC7B,GAAG,oDAA8B;IACjC,GAAG,8CAA2B;IAC9B,GAAG,4CAA0B;IAC7B,GAAG,kDAA6B;IAChC,GAAG,sCAAuB;IAC1B,GAAG,4CAA0B;CAC7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const removeChainCorpDescription: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeChainCorpDescription = void 0;
4
+ const showOnlyForRemove = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['removeChainCorp'],
7
+ };
8
+ exports.removeChainCorpDescription = [
9
+ {
10
+ displayName: '上下游ID',
11
+ name: 'chain_id',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForRemove,
16
+ },
17
+ default: '',
18
+ description: '上下游的唯一ID。',
19
+ hint: '上下游ID',
20
+ },
21
+ {
22
+ displayName: '企业CorpID',
23
+ name: 'corpid',
24
+ type: 'string',
25
+ required: true,
26
+ displayOptions: {
27
+ show: showOnlyForRemove,
28
+ },
29
+ default: '',
30
+ description: '要移除的企业corpid。',
31
+ hint: '企业CorpID',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=removeChainCorp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removeChainCorp.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/removeChainCorp.ts"],"names":[],"mappings":";;;AAEA,MAAM,iBAAiB,GAAG;IACzB,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,iBAAiB,CAAC;CAC9B,CAAC;AAEW,QAAA,0BAA0B,GAAsB;IAC5D;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,OAAO;KACb;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,UAAU;KAChB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const updateChainRuleDescription: INodeProperties[];
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateChainRuleDescription = void 0;
4
+ const showOnlyForUpdateRule = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['updateChainRule'],
7
+ };
8
+ exports.updateChainRuleDescription = [
9
+ {
10
+ displayName: '上下游ID',
11
+ name: 'chain_id',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForUpdateRule,
16
+ },
17
+ default: '',
18
+ description: '上下游的唯一ID。',
19
+ hint: '上下游ID',
20
+ },
21
+ {
22
+ displayName: '规则ID',
23
+ name: 'rule_id',
24
+ type: 'string',
25
+ required: true,
26
+ displayOptions: {
27
+ show: showOnlyForUpdateRule,
28
+ },
29
+ default: '',
30
+ description: '对接规则的唯一ID。',
31
+ hint: '规则ID',
32
+ },
33
+ {
34
+ displayName: '规则名称',
35
+ name: 'rule_name',
36
+ type: 'string',
37
+ displayOptions: {
38
+ show: showOnlyForUpdateRule,
39
+ },
40
+ default: '',
41
+ description: '对接规则名称。',
42
+ hint: '规则名称(可选)',
43
+ },
44
+ {
45
+ displayName: '规则配置',
46
+ name: 'rule_config',
47
+ type: 'json',
48
+ displayOptions: {
49
+ show: showOnlyForUpdateRule,
50
+ },
51
+ default: '{}',
52
+ description: '对接规则配置,JSON格式。包含match_type(匹配类型)、range(匹配范围)等。',
53
+ hint: '规则配置JSON(可选)',
54
+ },
55
+ ];
56
+ //# sourceMappingURL=updateChainRule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateChainRule.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/updateChainRule.ts"],"names":[],"mappings":";;;AAEA,MAAM,qBAAqB,GAAG;IAC7B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,iBAAiB,CAAC;CAC9B,CAAC;AAEW,QAAA,0BAA0B,GAAsB;IAC5D;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,OAAO;KACb;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,UAAU;KAChB;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,MAAM;QACZ,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,gDAAgD;QAC7D,IAAI,EAAE,cAAc;KACpB;CACD,CAAC"}
@@ -37,9 +37,9 @@ async function executeMaterial(operation, items) {
37
37
  }
38
38
  }
39
39
  else if (operation === 'getTemp') {
40
- const media_id = this.getNodeParameter('media_id', i);
40
+ const media_ID = this.getNodeParameter('media_ID', i);
41
41
  const binaryPropertyName = this.getNodeParameter('binaryProperty', i);
42
- const responseData = await transport_1.weComApiRequest.call(this, 'GET', '/cgi-bin/media/get', {}, { media_id }, {}, { encoding: null, resolveWithFullResponse: true });
42
+ const responseData = await transport_1.weComApiRequest.call(this, 'GET', '/cgi-bin/media/get', {}, { media_ID }, {}, { encoding: null, resolveWithFullResponse: true });
43
43
  let buffer;
44
44
  let filename = 'file';
45
45
  if (Buffer.isBuffer(responseData.body)) {
@@ -60,7 +60,7 @@ async function executeMaterial(operation, items) {
60
60
  }
61
61
  const binaryData = await this.helpers.prepareBinaryData(buffer, filename);
62
62
  returnData.push({
63
- json: { media_id },
63
+ json: { media_ID },
64
64
  binary: {
65
65
  [binaryPropertyName]: binaryData,
66
66
  },
@@ -98,9 +98,9 @@ async function executeMaterial(operation, items) {
98
98
  }
99
99
  }
100
100
  else if (operation === 'getPermanent') {
101
- const media_id = this.getNodeParameter('media_id', i);
101
+ const media_ID = this.getNodeParameter('media_ID', i);
102
102
  const binaryPropertyName = this.getNodeParameter('binaryProperty', i);
103
- const responseData = await transport_1.weComApiRequest.call(this, 'GET', '/cgi-bin/material/get', {}, { media_id }, {}, { encoding: null, resolveWithFullResponse: true });
103
+ const responseData = await transport_1.weComApiRequest.call(this, 'GET', '/cgi-bin/material/get', {}, { media_ID }, {}, { encoding: null, resolveWithFullResponse: true });
104
104
  let buffer;
105
105
  let filename = 'file';
106
106
  if (Buffer.isBuffer(responseData.body)) {
@@ -121,7 +121,7 @@ async function executeMaterial(operation, items) {
121
121
  }
122
122
  const binaryData = await this.helpers.prepareBinaryData(buffer, filename);
123
123
  returnData.push({
124
- json: { media_id },
124
+ json: { media_ID },
125
125
  binary: {
126
126
  [binaryPropertyName]: binaryData,
127
127
  },
@@ -129,6 +129,70 @@ async function executeMaterial(operation, items) {
129
129
  });
130
130
  continue;
131
131
  }
132
+ else if (operation === 'uploadImage') {
133
+ const binaryPropertyName = this.getNodeParameter('file', i, 'data');
134
+ const filename = this.getNodeParameter('filename', i, '');
135
+ const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName);
136
+ const dataBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName);
137
+ const accessToken = await transport_1.getAccessToken.call(this);
138
+ const uploadOptions = {
139
+ method: 'POST',
140
+ url: 'https://qyapi.weixin.qq.com/cgi-bin/media/uploadimg',
141
+ qs: {
142
+ access_token: accessToken,
143
+ },
144
+ formData: {
145
+ media: {
146
+ value: dataBuffer,
147
+ options: {
148
+ filename: filename || binaryData.fileName || 'image',
149
+ contentType: binaryData.mimeType,
150
+ },
151
+ },
152
+ },
153
+ json: true,
154
+ };
155
+ response = await this.helpers.httpRequest(uploadOptions);
156
+ if (response.errcode !== undefined && response.errcode !== 0) {
157
+ throw new Error(`企业微信 API 错误: ${response.errmsg} (错误码: ${response.errcode})`);
158
+ }
159
+ }
160
+ else if (operation === 'getHighQualityVoice') {
161
+ const media_ID = this.getNodeParameter('media_ID', i);
162
+ response = await transport_1.weComApiRequest.call(this, 'GET', '/cgi-bin/media/get/jssdk', {}, { media_ID });
163
+ }
164
+ else if (operation === 'uploadTempAsync') {
165
+ const type = this.getNodeParameter('type', i);
166
+ const binaryPropertyName = this.getNodeParameter('file', i, 'data');
167
+ const filename = this.getNodeParameter('filename', i, '');
168
+ const attachment_type = this.getNodeParameter('attachment_type', i, 1);
169
+ const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName);
170
+ const dataBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName);
171
+ const accessToken = await transport_1.getAccessToken.call(this);
172
+ const uploadOptions = {
173
+ method: 'POST',
174
+ url: 'https://qyapi.weixin.qq.com/cgi-bin/media/upload_by_url',
175
+ qs: {
176
+ access_token: accessToken,
177
+ type,
178
+ attachment_type,
179
+ },
180
+ formData: {
181
+ media: {
182
+ value: dataBuffer,
183
+ options: {
184
+ filename: filename || binaryData.fileName || 'file',
185
+ contentType: binaryData.mimeType,
186
+ },
187
+ },
188
+ },
189
+ json: true,
190
+ };
191
+ response = await this.helpers.httpRequest(uploadOptions);
192
+ if (response.errcode !== undefined && response.errcode !== 0) {
193
+ throw new Error(`企业微信 API 错误: ${response.errmsg} (错误码: ${response.errcode})`);
194
+ }
195
+ }
132
196
  else {
133
197
  response = {};
134
198
  }