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,190 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateUserDescription = void 0;
4
+ const showOnlyForUpdate = {
5
+ resource: ['contact'],
6
+ operation: ['updateUser'],
7
+ };
8
+ exports.updateUserDescription = [
9
+ {
10
+ displayName: 'UserID',
11
+ name: 'userid',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForUpdate,
16
+ },
17
+ default: '',
18
+ description: '成员UserID。企业内必须唯一。',
19
+ hint: '成员UserID',
20
+ },
21
+ {
22
+ displayName: '姓名',
23
+ name: 'name',
24
+ type: 'string',
25
+ displayOptions: {
26
+ show: showOnlyForUpdate,
27
+ },
28
+ default: '',
29
+ description: '成员名称。长度为1~64个utf8字符。',
30
+ hint: '成员姓名',
31
+ },
32
+ {
33
+ displayName: '手机号',
34
+ name: 'mobile',
35
+ type: 'string',
36
+ displayOptions: {
37
+ show: showOnlyForUpdate,
38
+ },
39
+ default: '',
40
+ description: '手机号码。企业内必须唯一。',
41
+ hint: '手机号码',
42
+ },
43
+ {
44
+ displayName: '所属部门',
45
+ name: 'department',
46
+ type: 'string',
47
+ displayOptions: {
48
+ show: showOnlyForUpdate,
49
+ },
50
+ default: '',
51
+ description: '成员所属部门ID列表,多个部门用逗号分隔。',
52
+ hint: '部门ID列表,用逗号分隔',
53
+ },
54
+ {
55
+ displayName: '职务信息',
56
+ name: 'position',
57
+ type: 'string',
58
+ displayOptions: {
59
+ show: showOnlyForUpdate,
60
+ },
61
+ default: '',
62
+ description: '职务信息。长度为0~128个字符。',
63
+ hint: '职务信息',
64
+ },
65
+ {
66
+ displayName: '性别',
67
+ name: 'gender',
68
+ type: 'options',
69
+ displayOptions: {
70
+ show: showOnlyForUpdate,
71
+ },
72
+ options: [
73
+ {
74
+ name: '保密',
75
+ value: '0',
76
+ },
77
+ {
78
+ name: '男',
79
+ value: '1',
80
+ },
81
+ {
82
+ name: '女',
83
+ value: '2',
84
+ },
85
+ ],
86
+ default: '0',
87
+ description: '性别。0表示未定义,1表示男性,2表示女性。',
88
+ hint: '性别',
89
+ },
90
+ {
91
+ displayName: '邮箱',
92
+ name: 'email',
93
+ type: 'string',
94
+ placeholder: 'name@email.com',
95
+ displayOptions: {
96
+ show: showOnlyForUpdate,
97
+ },
98
+ default: '',
99
+ description: '邮箱。长度6~64个字节,且为有效的email格式。',
100
+ hint: '邮箱地址',
101
+ },
102
+ {
103
+ displayName: '企业邮箱',
104
+ name: 'biz_mail',
105
+ type: 'string',
106
+ displayOptions: {
107
+ show: showOnlyForUpdate,
108
+ },
109
+ default: '',
110
+ description: '企业邮箱。长度6~64个字节,且为有效的企业邮箱格式。',
111
+ hint: '企业邮箱',
112
+ },
113
+ {
114
+ displayName: '个数地址',
115
+ name: 'address',
116
+ type: 'string',
117
+ displayOptions: {
118
+ show: showOnlyForUpdate,
119
+ },
120
+ default: '',
121
+ description: '地址。长度最大128个字符。',
122
+ hint: '地址',
123
+ },
124
+ {
125
+ displayName: '别名',
126
+ name: 'alias',
127
+ type: 'string',
128
+ displayOptions: {
129
+ show: showOnlyForUpdate,
130
+ },
131
+ default: '',
132
+ description: '成员别名。长度1~64个utf8字符。',
133
+ hint: '别名',
134
+ },
135
+ {
136
+ displayName: '座机',
137
+ name: 'telephone',
138
+ type: 'string',
139
+ displayOptions: {
140
+ show: showOnlyForUpdate,
141
+ },
142
+ default: '',
143
+ description: '座机。32字节以内,由纯数字、"-"、"+"或","组成。',
144
+ hint: '座机号码',
145
+ },
146
+ {
147
+ displayName: '启用状态',
148
+ name: 'enable',
149
+ type: 'options',
150
+ displayOptions: {
151
+ show: showOnlyForUpdate,
152
+ },
153
+ options: [
154
+ {
155
+ name: '启用',
156
+ value: 1,
157
+ },
158
+ {
159
+ name: '禁用',
160
+ value: 0,
161
+ },
162
+ ],
163
+ default: 1,
164
+ description: '启用/禁用成员。1表示启用成员,0表示禁用成员。',
165
+ hint: '启用状态',
166
+ },
167
+ {
168
+ displayName: '头像MediaID',
169
+ name: 'avatar_mediaid',
170
+ type: 'string',
171
+ displayOptions: {
172
+ show: showOnlyForUpdate,
173
+ },
174
+ default: '',
175
+ description: '成员头像的mediaid,通过素材管理接口上传图片获得的mediaid。',
176
+ hint: '头像MediaID',
177
+ },
178
+ {
179
+ displayName: '成员对外属性',
180
+ name: 'external_profile',
181
+ type: 'json',
182
+ displayOptions: {
183
+ show: showOnlyForUpdate,
184
+ },
185
+ default: '{}',
186
+ description: '成员对外属性,字段详情参见对外属性。',
187
+ hint: '对外属性JSON',
188
+ },
189
+ ];
190
+ //# sourceMappingURL=updateUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateUser.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/contact/updateUser.ts"],"names":[],"mappings":";;;AAEA,MAAM,iBAAiB,GAAG;IACzB,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,SAAS,EAAE,CAAC,YAAY,CAAC;CACzB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,QAAQ;QACrB,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,mBAAmB;QAChC,IAAI,EAAE,UAAU;KAChB;IACD;QACC,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,MAAM;KACZ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AQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,WAAW;KACjB;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,MAAM;QACZ,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,UAAU;KAChB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const addChainRuleDescription: INodeProperties[];
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addChainRuleDescription = void 0;
4
+ const showOnlyForAddRule = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['addChainRule'],
7
+ };
8
+ exports.addChainRuleDescription = [
9
+ {
10
+ displayName: '上下游ID',
11
+ name: 'chain_id',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForAddRule,
16
+ },
17
+ default: '',
18
+ description: '上下游的唯一ID。',
19
+ hint: '上下游ID',
20
+ },
21
+ {
22
+ displayName: '规则名称',
23
+ name: 'rule_name',
24
+ type: 'string',
25
+ required: true,
26
+ displayOptions: {
27
+ show: showOnlyForAddRule,
28
+ },
29
+ default: '',
30
+ description: '对接规则名称。',
31
+ hint: '规则名称',
32
+ },
33
+ {
34
+ displayName: '规则配置',
35
+ name: 'rule_config',
36
+ type: 'json',
37
+ required: true,
38
+ displayOptions: {
39
+ show: showOnlyForAddRule,
40
+ },
41
+ default: '{}',
42
+ description: '对接规则配置,JSON格式。包含match_type(匹配类型)、range(匹配范围)等。',
43
+ hint: '规则配置JSON',
44
+ },
45
+ ];
46
+ //# sourceMappingURL=addChainRule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addChainRule.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/addChainRule.ts"],"names":[],"mappings":";;;AAEA,MAAM,kBAAkB,GAAG;IAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,cAAc,CAAC;CAC3B,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,kBAAkB;SACxB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,OAAO;KACb;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,kBAAkB;SACxB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,kBAAkB;SACxB;QACD,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,gDAAgD;QAC7D,IAAI,EAAE,UAAU;KAChB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const batchImportChainContactDescription: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.batchImportChainContactDescription = void 0;
4
+ const showOnlyForBatchImport = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['batchImportChainContact'],
7
+ };
8
+ exports.batchImportChainContactDescription = [
9
+ {
10
+ displayName: '上下游ID',
11
+ name: 'chain_id',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForBatchImport,
16
+ },
17
+ default: '',
18
+ description: '上下游的唯一ID。',
19
+ hint: '上下游ID',
20
+ },
21
+ {
22
+ displayName: 'Media ID',
23
+ name: 'media_ID',
24
+ type: 'string',
25
+ required: true,
26
+ displayOptions: {
27
+ show: showOnlyForBatchImport,
28
+ },
29
+ default: '',
30
+ description: '上传的csv文件的media_ID,通过素材管理接口上传文件获得。',
31
+ hint: '素材Media ID',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=batchImportChainContact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchImportChainContact.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/batchImportChainContact.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,yBAAyB,CAAC;CACtC,CAAC;AAEW,QAAA,kCAAkC,GAAsB;IACpE;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,UAAU;QACvB,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,mCAAmC;QAChD,IAAI,EAAE,YAAY;KAClB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const deleteChainRuleDescription: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteChainRuleDescription = void 0;
4
+ const showOnlyForDeleteRule = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['deleteChainRule'],
7
+ };
8
+ exports.deleteChainRuleDescription = [
9
+ {
10
+ displayName: '上下游ID',
11
+ name: 'chain_id',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForDeleteRule,
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: showOnlyForDeleteRule,
28
+ },
29
+ default: '',
30
+ description: '对接规则的唯一ID。',
31
+ hint: '规则ID',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=deleteChainRule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteChainRule.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/deleteChainRule.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;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function executeLinkedcorp(this: IExecuteFunctions, operation: string, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.executeLinkedcorp = executeLinkedcorp;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const transport_1 = require("../../shared/transport");
6
+ async function executeLinkedcorp(operation, items) {
7
+ const returnData = [];
8
+ for (let i = 0; i < items.length; i++) {
9
+ try {
10
+ const credentials = await this.getCredentials('weComApi');
11
+ const defaultAgentId = credentials.agentId;
12
+ let response;
13
+ if (operation === 'getAppShareInfo') {
14
+ const agentid = this.getNodeParameter('agentid', i, defaultAgentId);
15
+ const corpid = this.getNodeParameter('corpid', i, '');
16
+ const body = { agentid };
17
+ if (corpid)
18
+ body.corpid = corpid;
19
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/linkedcorp/agent/get_perm_list', body);
20
+ }
21
+ else if (operation === 'getLinkedCorpToken') {
22
+ const business_type = this.getNodeParameter('business_type', i);
23
+ const corpid = this.getNodeParameter('corpid', i);
24
+ const agentid = this.getNodeParameter('agentid', i, defaultAgentId);
25
+ const body = {
26
+ business_type,
27
+ corpid,
28
+ agentid,
29
+ };
30
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/linkedcorp/access_token', body);
31
+ }
32
+ else if (operation === 'getMiniProgramSession') {
33
+ const code = this.getNodeParameter('code', i);
34
+ const business_type = this.getNodeParameter('business_type', i);
35
+ const corpid = this.getNodeParameter('corpid', i);
36
+ const agentid = this.getNodeParameter('agentid', i, defaultAgentId);
37
+ const body = {
38
+ code,
39
+ business_type,
40
+ corpid,
41
+ agentid,
42
+ };
43
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/miniprogram/jscode2session', body);
44
+ }
45
+ else if (operation === 'getLinkedCustomer') {
46
+ const customer_type = this.getNodeParameter('customer_type', i);
47
+ const external_userid = this.getNodeParameter('external_userid', i);
48
+ const corpid = this.getNodeParameter('corpid', i, '');
49
+ const body = { external_userid };
50
+ if (corpid)
51
+ body.corpid = corpid;
52
+ const endpoint = customer_type === 'added'
53
+ ? '/cgi-bin/externalcontact/get_new_external_userid'
54
+ : '/cgi-bin/externalcontact/unionid_to_external_userid';
55
+ response = await transport_1.weComApiRequest.call(this, 'POST', endpoint, body);
56
+ }
57
+ else if (operation === 'getChainInfo') {
58
+ const chain_id = this.getNodeParameter('chain_id', i, '');
59
+ const qs = {};
60
+ if (chain_id)
61
+ qs.chain_id = chain_id;
62
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/get_chain_group_list', qs);
63
+ }
64
+ else if (operation === 'batchImportChainContact') {
65
+ const chain_id = this.getNodeParameter('chain_id', i);
66
+ const media_ID = this.getNodeParameter('media_ID', i);
67
+ const body = {
68
+ chain_id,
69
+ media_ID,
70
+ };
71
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/import_chain_contact', body);
72
+ }
73
+ else if (operation === 'getChainAsyncResult') {
74
+ const jobid = this.getNodeParameter('jobid', i);
75
+ response = await transport_1.weComApiRequest.call(this, 'GET', '/cgi-bin/externalcontact/get_group_chain_result', {}, { jobid });
76
+ }
77
+ else if (operation === 'removeChainCorp') {
78
+ const chain_id = this.getNodeParameter('chain_id', i);
79
+ const corpid = this.getNodeParameter('corpid', i);
80
+ const body = {
81
+ chain_id,
82
+ corpid,
83
+ };
84
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/del_corp_in_chain', body);
85
+ }
86
+ else if (operation === 'getCustomUserId') {
87
+ const chain_id = this.getNodeParameter('chain_id', i);
88
+ const userid_list = this.getNodeParameter('userid_list', i);
89
+ const body = {
90
+ chain_id,
91
+ userid_list: userid_list.split(',').map((id) => id.trim()),
92
+ };
93
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/get_custom_userid', body);
94
+ }
95
+ else if (operation === 'getSubCorpChainList') {
96
+ const corpid = this.getNodeParameter('corpid', i);
97
+ const body = { corpid };
98
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/get_subcorp_chain_list', body);
99
+ }
100
+ else if (operation === 'getChainRuleList') {
101
+ const chain_id = this.getNodeParameter('chain_id', i);
102
+ const body = { chain_id };
103
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/customer/get_rule_list', body);
104
+ }
105
+ else if (operation === 'deleteChainRule') {
106
+ const chain_id = this.getNodeParameter('chain_id', i);
107
+ const rule_id = this.getNodeParameter('rule_id', i);
108
+ const body = {
109
+ chain_id,
110
+ rule_id,
111
+ };
112
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/customer/del_rule', body);
113
+ }
114
+ else if (operation === 'getChainRuleDetail') {
115
+ const chain_id = this.getNodeParameter('chain_id', i);
116
+ const rule_id = this.getNodeParameter('rule_id', i);
117
+ const body = {
118
+ chain_id,
119
+ rule_id,
120
+ };
121
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/customer/get_rule_detail', body);
122
+ }
123
+ else if (operation === 'addChainRule') {
124
+ const chain_id = this.getNodeParameter('chain_id', i);
125
+ const rule_name = this.getNodeParameter('rule_name', i);
126
+ const rule_config = this.getNodeParameter('rule_config', i);
127
+ let parsedConfig;
128
+ try {
129
+ parsedConfig = JSON.parse(rule_config);
130
+ }
131
+ catch (error) {
132
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `rule_config 必须是有效的 JSON: ${error.message}`, { itemIndex: i });
133
+ }
134
+ const body = {
135
+ chain_id,
136
+ rule_name,
137
+ rule_config: parsedConfig,
138
+ };
139
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/customer/add_rule', body);
140
+ }
141
+ else if (operation === 'updateChainRule') {
142
+ const chain_id = this.getNodeParameter('chain_id', i);
143
+ const rule_id = this.getNodeParameter('rule_id', i);
144
+ const rule_name = this.getNodeParameter('rule_name', i, '');
145
+ const rule_config = this.getNodeParameter('rule_config', i, '{}');
146
+ const body = {
147
+ chain_id,
148
+ rule_id,
149
+ };
150
+ if (rule_name)
151
+ body.rule_name = rule_name;
152
+ if (rule_config && rule_config !== '{}') {
153
+ try {
154
+ body.rule_config = JSON.parse(rule_config);
155
+ }
156
+ catch (error) {
157
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `rule_config 必须是有效的 JSON: ${error.message}`, { itemIndex: i });
158
+ }
159
+ }
160
+ response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/customer/update_rule', body);
161
+ }
162
+ else {
163
+ response = {};
164
+ }
165
+ returnData.push({
166
+ json: response,
167
+ pairedItem: { item: i },
168
+ });
169
+ }
170
+ catch (error) {
171
+ if (this.continueOnFail()) {
172
+ returnData.push({
173
+ json: {
174
+ error: error.message,
175
+ },
176
+ pairedItem: { item: i },
177
+ });
178
+ continue;
179
+ }
180
+ throw error;
181
+ }
182
+ }
183
+ return returnData;
184
+ }
185
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/execute.ts"],"names":[],"mappings":";;AAIA,8CA8MC;AAjND,+CAAkD;AAClD,sDAAyD;AAElD,KAAK,UAAU,iBAAiB,CAEtC,SAAiB,EACjB,KAA2B;IAE3B,MAAM,UAAU,GAAyB,EAAE,CAAC;IAE5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,IAAI,CAAC;YACJ,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;YAC1D,M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BAAe,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,+CAA+C,EAAE,IAAI,CAAC,CAAC;YAC5G,CAAC;iBAAM,CAAC;gBACP,QAAQ,GAAG,EAAE,CAAC;YACf,CAAC;YAED,UAAU,CAAC,IAAI,CAAC;gBACf,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;aACvB,CAAC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC;oBACf,IAAI,EAAE;wBACL,KAAK,EAAE,KAAK,CAAC,OAAO;qBACpB;oBACD,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;iBACvB,CAAC,CAAC;gBACH,SAAS;YACV,CAAC;YACD,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAppShareInfoDescription: INodeProperties[];
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAppShareInfoDescription = void 0;
4
+ const showOnlyForGetAppShareInfo = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['getAppShareInfo'],
7
+ };
8
+ exports.getAppShareInfoDescription = [
9
+ {
10
+ displayName: '应用AgentID',
11
+ name: 'agentid',
12
+ type: 'string',
13
+ displayOptions: {
14
+ show: showOnlyForGetAppShareInfo,
15
+ },
16
+ default: '',
17
+ description: '上级/上游企业应用的agentid。如果不填,默认使用凭证中的agentid。',
18
+ hint: '应用AgentID(可选)',
19
+ },
20
+ {
21
+ displayName: '企业CorpID',
22
+ name: 'corpid',
23
+ type: 'string',
24
+ displayOptions: {
25
+ show: showOnlyForGetAppShareInfo,
26
+ },
27
+ default: '',
28
+ description: '下级/下游企业的corpid。若需要获取自身企业的应用共享信息,则不需要填写。',
29
+ hint: '企业CorpID(可选)',
30
+ },
31
+ ];
32
+ //# sourceMappingURL=getAppShareInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAppShareInfo.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/getAppShareInfo.ts"],"names":[],"mappings":";;;AAEA,MAAM,0BAA0B,GAAG;IAClC,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,iBAAiB,CAAC;CAC9B,CAAC;AAEW,QAAA,0BAA0B,GAAsB;IAC5D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,0BAA0B;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,eAAe;KACrB;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,0BAA0B;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,cAAc;KACpB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getChainAsyncResultDescription: INodeProperties[];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getChainAsyncResultDescription = void 0;
4
+ const showOnlyForGetResult = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['getChainAsyncResult'],
7
+ };
8
+ exports.getChainAsyncResultDescription = [
9
+ {
10
+ displayName: 'Job ID',
11
+ name: 'jobid',
12
+ type: 'string',
13
+ required: true,
14
+ displayOptions: {
15
+ show: showOnlyForGetResult,
16
+ },
17
+ default: '',
18
+ description: '异步任务ID,最大长度为64字节。',
19
+ hint: '任务ID',
20
+ },
21
+ ];
22
+ //# sourceMappingURL=getChainAsyncResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getChainAsyncResult.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/getChainAsyncResult.ts"],"names":[],"mappings":";;;AAEA,MAAM,oBAAoB,GAAG;IAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,qBAAqB,CAAC;CAClC,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,oBAAoB;SAC1B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,MAAM;KACZ;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getChainInfoDescription: INodeProperties[];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getChainInfoDescription = void 0;
4
+ const showOnlyForGetChain = {
5
+ resource: ['linkedcorp'],
6
+ operation: ['getChainInfo'],
7
+ };
8
+ exports.getChainInfoDescription = [
9
+ {
10
+ displayName: '上下游ID',
11
+ name: 'chain_id',
12
+ type: 'string',
13
+ displayOptions: {
14
+ show: showOnlyForGetChain,
15
+ },
16
+ default: '',
17
+ description: '上下游的唯一ID。不填则返回该企业作为上游企业的所有上下游列表。',
18
+ hint: '上下游ID(可选)',
19
+ },
20
+ ];
21
+ //# sourceMappingURL=getChainInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getChainInfo.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/linkedcorp/getChainInfo.ts"],"names":[],"mappings":";;;AAEA,MAAM,mBAAmB,GAAG;IAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,SAAS,EAAE,CAAC,cAAc,CAAC;CAC3B,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,mBAAmB;SACzB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kCAAkC;QAC/C,IAAI,EAAE,WAAW;KACjB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getChainRuleDetailDescription: INodeProperties[];