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.
- package/README.md +135 -3
- package/dist/nodes/WeCom/WeCom.node.js +26 -2
- package/dist/nodes/WeCom/WeCom.node.js.map +1 -1
- package/dist/nodes/WeCom/resources/appChat/execute.js +4 -4
- package/dist/nodes/WeCom/resources/appChat/sendFile.js +3 -3
- package/dist/nodes/WeCom/resources/appChat/sendImage.js +3 -3
- package/dist/nodes/WeCom/resources/contact/addTagUsers.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/addTagUsers.js +44 -0
- package/dist/nodes/WeCom/resources/contact/addTagUsers.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/batchDeleteUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/batchDeleteUser.js +22 -0
- package/dist/nodes/WeCom/resources/contact/batchDeleteUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/batchReplaceDepartment.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/batchReplaceDepartment.js +33 -0
- package/dist/nodes/WeCom/resources/contact/batchReplaceDepartment.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/batchReplaceUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/batchReplaceUser.js +33 -0
- package/dist/nodes/WeCom/resources/contact/batchReplaceUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/batchSyncUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/batchSyncUser.js +33 -0
- package/dist/nodes/WeCom/resources/contact/batchSyncUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/convertTmpExternalUserId.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/convertTmpExternalUserId.js +22 -0
- package/dist/nodes/WeCom/resources/contact/convertTmpExternalUserId.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/createDepartment.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/createDepartment.js +67 -0
- package/dist/nodes/WeCom/resources/contact/createDepartment.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/createTag.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/createTag.js +33 -0
- package/dist/nodes/WeCom/resources/contact/createTag.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/createUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/createUser.js +203 -0
- package/dist/nodes/WeCom/resources/contact/createUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/delTagUsers.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/delTagUsers.js +44 -0
- package/dist/nodes/WeCom/resources/contact/delTagUsers.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/deleteDepartment.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/deleteDepartment.js +22 -0
- package/dist/nodes/WeCom/resources/contact/deleteDepartment.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/deleteTag.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/deleteTag.js +22 -0
- package/dist/nodes/WeCom/resources/contact/deleteTag.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/deleteUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/deleteUser.js +22 -0
- package/dist/nodes/WeCom/resources/contact/deleteUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/execute.js +305 -0
- package/dist/nodes/WeCom/resources/contact/execute.js.map +1 -1
- package/dist/nodes/WeCom/resources/contact/exportDepartment.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/exportDepartment.js +32 -0
- package/dist/nodes/WeCom/resources/contact/exportDepartment.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/exportSimpleUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/exportSimpleUser.js +32 -0
- package/dist/nodes/WeCom/resources/contact/exportSimpleUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/exportTagUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/exportTagUser.js +44 -0
- package/dist/nodes/WeCom/resources/contact/exportTagUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/exportUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/exportUser.js +32 -0
- package/dist/nodes/WeCom/resources/contact/exportUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getAsyncResult.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getAsyncResult.js +22 -0
- package/dist/nodes/WeCom/resources/contact/getAsyncResult.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getDepartmentDetail.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getDepartmentDetail.js +22 -0
- package/dist/nodes/WeCom/resources/contact/getDepartmentDetail.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getExportResult.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getExportResult.js +22 -0
- package/dist/nodes/WeCom/resources/contact/getExportResult.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getJoinQrCode.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getJoinQrCode.js +39 -0
- package/dist/nodes/WeCom/resources/contact/getJoinQrCode.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getSubDepartmentIds.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getSubDepartmentIds.js +21 -0
- package/dist/nodes/WeCom/resources/contact/getSubDepartmentIds.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getUserIdByEmail.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getUserIdByEmail.js +44 -0
- package/dist/nodes/WeCom/resources/contact/getUserIdByEmail.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getUserIdByMobile.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getUserIdByMobile.js +22 -0
- package/dist/nodes/WeCom/resources/contact/getUserIdByMobile.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/index.js +217 -3
- package/dist/nodes/WeCom/resources/contact/index.js.map +1 -1
- package/dist/nodes/WeCom/resources/contact/inviteUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/inviteUser.js +43 -0
- package/dist/nodes/WeCom/resources/contact/inviteUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/updateDepartment.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/updateDepartment.js +66 -0
- package/dist/nodes/WeCom/resources/contact/updateDepartment.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/updateTag.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/updateTag.js +34 -0
- package/dist/nodes/WeCom/resources/contact/updateTag.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/updateUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/updateUser.js +190 -0
- package/dist/nodes/WeCom/resources/contact/updateUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/addChainRule.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/addChainRule.js +46 -0
- package/dist/nodes/WeCom/resources/linkedcorp/addChainRule.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/batchImportChainContact.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/batchImportChainContact.js +34 -0
- package/dist/nodes/WeCom/resources/linkedcorp/batchImportChainContact.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/deleteChainRule.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/deleteChainRule.js +34 -0
- package/dist/nodes/WeCom/resources/linkedcorp/deleteChainRule.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/execute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/execute.js +185 -0
- package/dist/nodes/WeCom/resources/linkedcorp/execute.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getAppShareInfo.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getAppShareInfo.js +32 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getAppShareInfo.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainAsyncResult.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainAsyncResult.js +22 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainAsyncResult.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainInfo.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainInfo.js +21 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainInfo.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleDetail.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleDetail.js +34 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleDetail.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleList.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleList.js +22 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getChainRuleList.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getCustomUserId.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getCustomUserId.js +34 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getCustomUserId.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCorpToken.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCorpToken.js +55 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCorpToken.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCustomer.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCustomer.js +55 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getLinkedCustomer.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getMiniProgramSession.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getMiniProgramSession.js +67 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getMiniProgramSession.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getSubCorpChainList.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getSubCorpChainList.js +22 -0
- package/dist/nodes/WeCom/resources/linkedcorp/getSubCorpChainList.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/index.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/index.js +50 -0
- package/dist/nodes/WeCom/resources/linkedcorp/index.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/removeChainCorp.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/removeChainCorp.js +34 -0
- package/dist/nodes/WeCom/resources/linkedcorp/removeChainCorp.js.map +1 -0
- package/dist/nodes/WeCom/resources/linkedcorp/updateChainRule.d.ts +2 -0
- package/dist/nodes/WeCom/resources/linkedcorp/updateChainRule.js +56 -0
- package/dist/nodes/WeCom/resources/linkedcorp/updateChainRule.js.map +1 -0
- package/dist/nodes/WeCom/resources/material/execute.js +70 -6
- package/dist/nodes/WeCom/resources/material/execute.js.map +1 -1
- package/dist/nodes/WeCom/resources/material/getHighQualityVoice.d.ts +2 -0
- package/dist/nodes/WeCom/resources/material/getHighQualityVoice.js +22 -0
- package/dist/nodes/WeCom/resources/material/getHighQualityVoice.js.map +1 -0
- package/dist/nodes/WeCom/resources/material/getPermanent.js +2 -2
- package/dist/nodes/WeCom/resources/material/getTemp.js +2 -2
- package/dist/nodes/WeCom/resources/material/index.js +8 -26
- package/dist/nodes/WeCom/resources/material/index.js.map +1 -1
- package/dist/nodes/WeCom/resources/material/uploadImage.d.ts +2 -0
- package/dist/nodes/WeCom/resources/material/uploadImage.js +33 -0
- package/dist/nodes/WeCom/resources/material/uploadImage.js.map +1 -0
- package/dist/nodes/WeCom/resources/material/uploadTempAsync.d.ts +2 -0
- package/dist/nodes/WeCom/resources/material/uploadTempAsync.js +74 -0
- package/dist/nodes/WeCom/resources/material/uploadTempAsync.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/execute.js +47 -8
- package/dist/nodes/WeCom/resources/message/execute.js.map +1 -1
- package/dist/nodes/WeCom/resources/message/index.js +4 -87
- package/dist/nodes/WeCom/resources/message/index.js.map +1 -1
- package/dist/nodes/WeCom/resources/message/sendFile.js +1 -1
- package/dist/nodes/WeCom/resources/message/sendImage.js +1 -1
- package/dist/nodes/WeCom/resources/message/sendMpNews.js +2 -2
- package/dist/nodes/WeCom/resources/message/sendSchoolNotice.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendSchoolNotice.js +100 -0
- package/dist/nodes/WeCom/resources/message/sendSchoolNotice.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendVideo.js +2 -2
- package/dist/nodes/WeCom/resources/message/sendVoice.js +2 -2
- package/dist/nodes/WeCom/resources/pushMessage/execute.js +2 -2
- package/dist/nodes/WeCom/resources/pushMessage/sendFile.js +1 -1
- package/dist/nodes/WeCom/resources/pushMessage/sendTemplateCard.js +2 -2
- package/dist/nodes/WeCom/resources/pushMessage/sendVoice.js +1 -1
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetField.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetField.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetField.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetRecord.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetRecord.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetRecord.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetSheet.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetSheet.js +9 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetSheet.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetView.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetView.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/addSmartsheetView.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/allocateAdvancedAccount.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/allocateAdvancedAccount.js +8 -0
- package/dist/nodes/WeCom/resources/wedoc/allocateAdvancedAccount.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/createDoc.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/createDoc.js +59 -0
- package/dist/nodes/WeCom/resources/wedoc/createDoc.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/createForm.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/createForm.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/createForm.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/deallocateAdvancedAccount.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/deallocateAdvancedAccount.js +8 -0
- package/dist/nodes/WeCom/resources/wedoc/deallocateAdvancedAccount.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetField.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetField.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetField.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetRecord.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetRecord.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetRecord.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetSheet.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetSheet.js +9 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetSheet.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetView.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetView.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/delSmartsheetView.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/deleteDoc.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/deleteDoc.js +22 -0
- package/dist/nodes/WeCom/resources/wedoc/deleteDoc.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/execute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/execute.js +385 -0
- package/dist/nodes/WeCom/resources/wedoc/execute.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/getAdvancedAccountList.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/getAdvancedAccountList.js +12 -0
- package/dist/nodes/WeCom/resources/wedoc/getAdvancedAccountList.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/getDocAuth.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/getDocAuth.js +8 -0
- package/dist/nodes/WeCom/resources/wedoc/getDocAuth.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/getDocData.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/getDocData.js +8 -0
- package/dist/nodes/WeCom/resources/wedoc/getDocData.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/getDocInfo.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/getDocInfo.js +22 -0
- package/dist/nodes/WeCom/resources/wedoc/getDocInfo.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/getFormAnswer.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/getFormAnswer.js +13 -0
- package/dist/nodes/WeCom/resources/wedoc/getFormAnswer.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/getFormInfo.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/getFormInfo.js +8 -0
- package/dist/nodes/WeCom/resources/wedoc/getFormInfo.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/getFormStatistic.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/getFormStatistic.js +8 -0
- package/dist/nodes/WeCom/resources/wedoc/getFormStatistic.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/getSheetData.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/getSheetData.js +9 -0
- package/dist/nodes/WeCom/resources/wedoc/getSheetData.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/getSheetRange.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/getSheetRange.js +8 -0
- package/dist/nodes/WeCom/resources/wedoc/getSheetRange.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/index.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/index.js +336 -0
- package/dist/nodes/WeCom/resources/wedoc/index.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/manageSmartsheetAuth.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/manageSmartsheetAuth.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/manageSmartsheetAuth.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocContent.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocContent.js +34 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocContent.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocMemberRule.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocMemberRule.js +9 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocMemberRule.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocSafeRule.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocSafeRule.js +9 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocSafeRule.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocShareScope.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocShareScope.js +9 -0
- package/dist/nodes/WeCom/resources/wedoc/modDocShareScope.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/modForm.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/modForm.js +9 -0
- package/dist/nodes/WeCom/resources/wedoc/modForm.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/modSheetContent.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/modSheetContent.js +34 -0
- package/dist/nodes/WeCom/resources/wedoc/modSheetContent.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetField.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetField.js +9 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetField.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetRecord.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetRecord.js +11 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetRecord.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetSheet.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetSheet.js +8 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetSheet.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetView.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetView.js +9 -0
- package/dist/nodes/WeCom/resources/wedoc/querySmartsheetView.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/renameDoc.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/renameDoc.js +34 -0
- package/dist/nodes/WeCom/resources/wedoc/renameDoc.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/shareDoc.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/shareDoc.js +22 -0
- package/dist/nodes/WeCom/resources/wedoc/shareDoc.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetField.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetField.js +11 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetField.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetRecord.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetRecord.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetRecord.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetSheet.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetSheet.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetSheet.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetView.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetView.js +11 -0
- package/dist/nodes/WeCom/resources/wedoc/updateSmartsheetView.js.map +1 -0
- package/dist/nodes/WeCom/resources/wedoc/uploadDocImage.d.ts +2 -0
- package/dist/nodes/WeCom/resources/wedoc/uploadDocImage.js +10 -0
- package/dist/nodes/WeCom/resources/wedoc/uploadDocImage.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- 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;IACD;QACC,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,cAAc;KACpB;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mBAAmB;QAChC,IAAI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AAI,EAAE,IAAI;KACV;IACD;QACC,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,CAAC;aACR;YACD;gBACC,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,CAAC;aACR;SACD;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;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,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,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,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,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,C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AAQ,GAAG,MAAM,2BAAe,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,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,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,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"}
|