n8n-nodes-wecom 0.1.8 → 0.1.10
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/WeCom.node.json +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/nodes/WeComTrigger/WeComTrigger.node.json +3 -2
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeWedoc = executeWedoc;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const transport_1 = require("../../shared/transport");
|
|
6
|
+
async function executeWedoc(operation, items) {
|
|
7
|
+
const returnData = [];
|
|
8
|
+
for (let i = 0; i < items.length; i++) {
|
|
9
|
+
try {
|
|
10
|
+
let response;
|
|
11
|
+
if (operation === 'createDoc') {
|
|
12
|
+
const doctype = this.getNodeParameter('doctype', i);
|
|
13
|
+
const doc_name = this.getNodeParameter('doc_name', i);
|
|
14
|
+
const admin_users = this.getNodeParameter('admin_users', i, '');
|
|
15
|
+
const body = { doctype, doc_name };
|
|
16
|
+
if (admin_users) {
|
|
17
|
+
body.admin_users = admin_users.split(',').map((id) => id.trim());
|
|
18
|
+
}
|
|
19
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/create_doc', body);
|
|
20
|
+
}
|
|
21
|
+
else if (operation === 'renameDoc') {
|
|
22
|
+
const docid = this.getNodeParameter('docid', i);
|
|
23
|
+
const new_name = this.getNodeParameter('new_name', i);
|
|
24
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/rename_doc', {
|
|
25
|
+
docid,
|
|
26
|
+
new_name,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
else if (operation === 'deleteDoc') {
|
|
30
|
+
const docid = this.getNodeParameter('docid', i);
|
|
31
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/del_doc', { docid });
|
|
32
|
+
}
|
|
33
|
+
else if (operation === 'getDocInfo') {
|
|
34
|
+
const docid = this.getNodeParameter('docid', i);
|
|
35
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/doc_get_info', { docid });
|
|
36
|
+
}
|
|
37
|
+
else if (operation === 'shareDoc') {
|
|
38
|
+
const docid = this.getNodeParameter('docid', i);
|
|
39
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/doc_share', { docid });
|
|
40
|
+
}
|
|
41
|
+
else if (operation === 'modDocContent') {
|
|
42
|
+
const docid = this.getNodeParameter('docid', i);
|
|
43
|
+
const content = this.getNodeParameter('content', i);
|
|
44
|
+
let parsedContent;
|
|
45
|
+
try {
|
|
46
|
+
parsedContent = JSON.parse(content);
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `content 必须是有效的 JSON: ${error.message}`, { itemIndex: i });
|
|
50
|
+
}
|
|
51
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/mod_doc', {
|
|
52
|
+
docid,
|
|
53
|
+
...parsedContent,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
else if (operation === 'modSheetContent') {
|
|
57
|
+
const docid = this.getNodeParameter('docid', i);
|
|
58
|
+
const content = this.getNodeParameter('content', i);
|
|
59
|
+
let parsedContent;
|
|
60
|
+
try {
|
|
61
|
+
parsedContent = JSON.parse(content);
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `content 必须是有效的 JSON: ${error.message}`, { itemIndex: i });
|
|
65
|
+
}
|
|
66
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/spreadsheet/batch_update', {
|
|
67
|
+
docid,
|
|
68
|
+
requests: parsedContent,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
else if (operation === 'addSmartsheetSheet') {
|
|
72
|
+
const docid = this.getNodeParameter('docid', i);
|
|
73
|
+
const properties = this.getNodeParameter('properties', i);
|
|
74
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/add_sheet', {
|
|
75
|
+
docid,
|
|
76
|
+
properties: JSON.parse(properties),
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
else if (operation === 'delSmartsheetSheet') {
|
|
80
|
+
const docid = this.getNodeParameter('docid', i);
|
|
81
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
82
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/delete_sheet', {
|
|
83
|
+
docid,
|
|
84
|
+
sheet_id,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
else if (operation === 'updateSmartsheetSheet') {
|
|
88
|
+
const docid = this.getNodeParameter('docid', i);
|
|
89
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
90
|
+
const properties = this.getNodeParameter('properties', i);
|
|
91
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/update_sheet', {
|
|
92
|
+
docid,
|
|
93
|
+
sheet_id,
|
|
94
|
+
properties: JSON.parse(properties),
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
else if (operation === 'addSmartsheetView') {
|
|
98
|
+
const docid = this.getNodeParameter('docid', i);
|
|
99
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
100
|
+
const properties = this.getNodeParameter('properties', i);
|
|
101
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/add_view', {
|
|
102
|
+
docid,
|
|
103
|
+
sheet_id,
|
|
104
|
+
properties: JSON.parse(properties),
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
else if (operation === 'delSmartsheetView') {
|
|
108
|
+
const docid = this.getNodeParameter('docid', i);
|
|
109
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
110
|
+
const view_id = this.getNodeParameter('view_id', i);
|
|
111
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/delete_view', {
|
|
112
|
+
docid,
|
|
113
|
+
sheet_id,
|
|
114
|
+
view_id,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
else if (operation === 'updateSmartsheetView') {
|
|
118
|
+
const docid = this.getNodeParameter('docid', i);
|
|
119
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
120
|
+
const view_id = this.getNodeParameter('view_id', i);
|
|
121
|
+
const properties = this.getNodeParameter('properties', i, '{}');
|
|
122
|
+
const body = { docid, sheet_id, view_id };
|
|
123
|
+
if (properties && properties !== '{}') {
|
|
124
|
+
body.properties = JSON.parse(properties);
|
|
125
|
+
}
|
|
126
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/update_view', body);
|
|
127
|
+
}
|
|
128
|
+
else if (operation === 'addSmartsheetField') {
|
|
129
|
+
const docid = this.getNodeParameter('docid', i);
|
|
130
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
131
|
+
const properties = this.getNodeParameter('properties', i);
|
|
132
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/add_fields', {
|
|
133
|
+
docid,
|
|
134
|
+
sheet_id,
|
|
135
|
+
properties: JSON.parse(properties),
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
else if (operation === 'delSmartsheetField') {
|
|
139
|
+
const docid = this.getNodeParameter('docid', i);
|
|
140
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
141
|
+
const field_id = this.getNodeParameter('field_id', i);
|
|
142
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/delete_fields', {
|
|
143
|
+
docid,
|
|
144
|
+
sheet_id,
|
|
145
|
+
field_ids: [field_id],
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
else if (operation === 'updateSmartsheetField') {
|
|
149
|
+
const docid = this.getNodeParameter('docid', i);
|
|
150
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
151
|
+
const field_id = this.getNodeParameter('field_id', i);
|
|
152
|
+
const properties = this.getNodeParameter('properties', i, '{}');
|
|
153
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/update_fields', {
|
|
154
|
+
docid,
|
|
155
|
+
sheet_id,
|
|
156
|
+
field_id,
|
|
157
|
+
properties: properties !== '{}' ? JSON.parse(properties) : {},
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
else if (operation === 'addSmartsheetRecord') {
|
|
161
|
+
const docid = this.getNodeParameter('docid', i);
|
|
162
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
163
|
+
const records = this.getNodeParameter('records', i);
|
|
164
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/add_records', {
|
|
165
|
+
docid,
|
|
166
|
+
sheet_id,
|
|
167
|
+
records: JSON.parse(records),
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
else if (operation === 'delSmartsheetRecord') {
|
|
171
|
+
const docid = this.getNodeParameter('docid', i);
|
|
172
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
173
|
+
const record_ids = this.getNodeParameter('record_ids', i);
|
|
174
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/delete_records', {
|
|
175
|
+
docid,
|
|
176
|
+
sheet_id,
|
|
177
|
+
record_ids: record_ids.split(',').map((id) => id.trim()),
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
else if (operation === 'updateSmartsheetRecord') {
|
|
181
|
+
const docid = this.getNodeParameter('docid', i);
|
|
182
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
183
|
+
const records = this.getNodeParameter('records', i);
|
|
184
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/update_records', {
|
|
185
|
+
docid,
|
|
186
|
+
sheet_id,
|
|
187
|
+
records: JSON.parse(records),
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
else if (operation === 'getDocData') {
|
|
191
|
+
const docid = this.getNodeParameter('docid', i);
|
|
192
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/document/get', { docid });
|
|
193
|
+
}
|
|
194
|
+
else if (operation === 'getSheetRange') {
|
|
195
|
+
const docid = this.getNodeParameter('docid', i);
|
|
196
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/spreadsheet/get_sheet_properties', { docid });
|
|
197
|
+
}
|
|
198
|
+
else if (operation === 'getSheetData') {
|
|
199
|
+
const docid = this.getNodeParameter('docid', i);
|
|
200
|
+
const range = this.getNodeParameter('range', i, '');
|
|
201
|
+
const body = { docid };
|
|
202
|
+
if (range)
|
|
203
|
+
body.range = range;
|
|
204
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/spreadsheet/get_sheet_range_data', body);
|
|
205
|
+
}
|
|
206
|
+
else if (operation === 'querySmartsheetSheet') {
|
|
207
|
+
const docid = this.getNodeParameter('docid', i);
|
|
208
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/get_sheets', { docid });
|
|
209
|
+
}
|
|
210
|
+
else if (operation === 'querySmartsheetView') {
|
|
211
|
+
const docid = this.getNodeParameter('docid', i);
|
|
212
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
213
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/get_views', {
|
|
214
|
+
docid,
|
|
215
|
+
sheet_id,
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
else if (operation === 'querySmartsheetField') {
|
|
219
|
+
const docid = this.getNodeParameter('docid', i);
|
|
220
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
221
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/get_fields', {
|
|
222
|
+
docid,
|
|
223
|
+
sheet_id,
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
else if (operation === 'querySmartsheetRecord') {
|
|
227
|
+
const docid = this.getNodeParameter('docid', i);
|
|
228
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
229
|
+
const view_id = this.getNodeParameter('view_id', i, '');
|
|
230
|
+
const filter = this.getNodeParameter('filter', i, '{}');
|
|
231
|
+
const body = { docid, sheet_id };
|
|
232
|
+
if (view_id)
|
|
233
|
+
body.view_id = view_id;
|
|
234
|
+
if (filter && filter !== '{}')
|
|
235
|
+
body.filter = JSON.parse(filter);
|
|
236
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/get_records', body);
|
|
237
|
+
}
|
|
238
|
+
else if (operation === 'getDocAuth') {
|
|
239
|
+
const docid = this.getNodeParameter('docid', i);
|
|
240
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/doc_get_auth', { docid });
|
|
241
|
+
}
|
|
242
|
+
else if (operation === 'modDocSafeRule') {
|
|
243
|
+
const docid = this.getNodeParameter('docid', i);
|
|
244
|
+
const safe_setting = this.getNodeParameter('safe_setting', i);
|
|
245
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/mod_doc_safe_setting', {
|
|
246
|
+
docid,
|
|
247
|
+
safe_setting: JSON.parse(safe_setting),
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
else if (operation === 'modDocMemberRule') {
|
|
251
|
+
const docid = this.getNodeParameter('docid', i);
|
|
252
|
+
const auth_info = this.getNodeParameter('auth_info', i);
|
|
253
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/mod_doc_member', {
|
|
254
|
+
docid,
|
|
255
|
+
auth_info: JSON.parse(auth_info),
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
else if (operation === 'modDocShareScope') {
|
|
259
|
+
const docid = this.getNodeParameter('docid', i);
|
|
260
|
+
const view_rule = this.getNodeParameter('view_rule', i);
|
|
261
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/mod_doc_join_rule', {
|
|
262
|
+
docid,
|
|
263
|
+
view_rule: JSON.parse(view_rule),
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
else if (operation === 'manageSmartsheetAuth') {
|
|
267
|
+
const docid = this.getNodeParameter('docid', i);
|
|
268
|
+
const sheet_id = this.getNodeParameter('sheet_id', i);
|
|
269
|
+
const auth_info = this.getNodeParameter('auth_info', i);
|
|
270
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/smartsheet/set_sheet_permissions', {
|
|
271
|
+
docid,
|
|
272
|
+
sheet_id,
|
|
273
|
+
...JSON.parse(auth_info),
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
else if (operation === 'createForm') {
|
|
277
|
+
const docid = this.getNodeParameter('docid', i);
|
|
278
|
+
const title = this.getNodeParameter('title', i);
|
|
279
|
+
const form_setting = this.getNodeParameter('form_setting', i, '{}');
|
|
280
|
+
const body = { docid, title };
|
|
281
|
+
if (form_setting && form_setting !== '{}') {
|
|
282
|
+
body.form_setting = JSON.parse(form_setting);
|
|
283
|
+
}
|
|
284
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/create_form', body);
|
|
285
|
+
}
|
|
286
|
+
else if (operation === 'modForm') {
|
|
287
|
+
const formid = this.getNodeParameter('formid', i);
|
|
288
|
+
const form_setting = this.getNodeParameter('form_setting', i);
|
|
289
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/mod_form', {
|
|
290
|
+
formid,
|
|
291
|
+
form_setting: JSON.parse(form_setting),
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
else if (operation === 'getFormInfo') {
|
|
295
|
+
const formid = this.getNodeParameter('formid', i);
|
|
296
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/get_form_info', { formid });
|
|
297
|
+
}
|
|
298
|
+
else if (operation === 'getFormStatistic') {
|
|
299
|
+
const formid = this.getNodeParameter('formid', i);
|
|
300
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/get_form_statistic', { formid });
|
|
301
|
+
}
|
|
302
|
+
else if (operation === 'getFormAnswer') {
|
|
303
|
+
const formid = this.getNodeParameter('formid', i);
|
|
304
|
+
const limit = this.getNodeParameter('limit', i, 100);
|
|
305
|
+
const offset = this.getNodeParameter('offset', i, 0);
|
|
306
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/get_form_answer', {
|
|
307
|
+
formid,
|
|
308
|
+
limit,
|
|
309
|
+
offset,
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
else if (operation === 'allocateAdvancedAccount') {
|
|
313
|
+
const userids = this.getNodeParameter('userids', i);
|
|
314
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/vip_batch_add', {
|
|
315
|
+
userids: userids.split(',').map((id) => id.trim()),
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
else if (operation === 'deallocateAdvancedAccount') {
|
|
319
|
+
const userids = this.getNodeParameter('userids', i);
|
|
320
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/vip_batch_del', {
|
|
321
|
+
userids: userids.split(',').map((id) => id.trim()),
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
else if (operation === 'getAdvancedAccountList') {
|
|
325
|
+
const limit = this.getNodeParameter('limit', i, 100);
|
|
326
|
+
const cursor = this.getNodeParameter('cursor', i, '');
|
|
327
|
+
const body = { limit };
|
|
328
|
+
if (cursor)
|
|
329
|
+
body.cursor = cursor;
|
|
330
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/wedoc/vip_list', body);
|
|
331
|
+
}
|
|
332
|
+
else if (operation === 'uploadDocImage') {
|
|
333
|
+
const docid = this.getNodeParameter('docid', i);
|
|
334
|
+
const binaryPropertyName = this.getNodeParameter('file', i, 'data');
|
|
335
|
+
const filename = this.getNodeParameter('filename', i, '');
|
|
336
|
+
const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName);
|
|
337
|
+
const dataBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName);
|
|
338
|
+
const accessToken = await transport_1.getAccessToken.call(this);
|
|
339
|
+
const uploadOptions = {
|
|
340
|
+
method: 'POST',
|
|
341
|
+
url: 'https://qyapi.weixin.qq.com/cgi-bin/wedoc/upload_img',
|
|
342
|
+
qs: {
|
|
343
|
+
access_token: accessToken,
|
|
344
|
+
docid,
|
|
345
|
+
},
|
|
346
|
+
formData: {
|
|
347
|
+
media: {
|
|
348
|
+
value: dataBuffer,
|
|
349
|
+
options: {
|
|
350
|
+
filename: filename || binaryData.fileName || 'image.jpg',
|
|
351
|
+
contentType: binaryData.mimeType,
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
json: true,
|
|
356
|
+
};
|
|
357
|
+
response = await this.helpers.httpRequest(uploadOptions);
|
|
358
|
+
if (response.errcode !== undefined && response.errcode !== 0) {
|
|
359
|
+
throw new Error(`企业微信 API 错误: ${response.errmsg} (错误码: ${response.errcode})`);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
else {
|
|
363
|
+
response = {};
|
|
364
|
+
}
|
|
365
|
+
returnData.push({
|
|
366
|
+
json: response,
|
|
367
|
+
pairedItem: { item: i },
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
catch (error) {
|
|
371
|
+
if (this.continueOnFail()) {
|
|
372
|
+
returnData.push({
|
|
373
|
+
json: {
|
|
374
|
+
error: error.message,
|
|
375
|
+
},
|
|
376
|
+
pairedItem: { item: i },
|
|
377
|
+
});
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
throw error;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return returnData;
|
|
384
|
+
}
|
|
385
|
+
//# sourceMappingURL=execute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/wedoc/execute.ts"],"names":[],"mappings":";;AAIA,oCA8ZC;AAjaD,+CAAkD;AAClD,sDAAyE;AAElE,KAAK,UAAU,YAAY,CAEjC,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,IAAI,QAAqB,CAAC;YAG1B,IAAI,SAAS,KAAK,WAAW,EAAE,CAAC;gBAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CA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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,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAdvancedAccountListDescription = void 0;
|
|
4
|
+
const showOnly = { resource: ['wedoc'], operation: ['getAdvancedAccountList'] };
|
|
5
|
+
exports.getAdvancedAccountListDescription = [
|
|
6
|
+
{ displayName: '限制数量', name: 'limit', type: 'number',
|
|
7
|
+
typeOptions: {
|
|
8
|
+
minValue: 1,
|
|
9
|
+
}, displayOptions: { show: showOnly }, default: 50, description: 'Max number of results to return', hint: '限制数量' },
|
|
10
|
+
{ displayName: '游标', name: 'cursor', type: 'string', displayOptions: { show: showOnly }, default: '', description: '分页游标,用于获取下一页。', hint: '游标' },
|
|
11
|
+
];
|
|
12
|
+
//# sourceMappingURL=getAdvancedAccountList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAdvancedAccountList.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/wedoc/getAdvancedAccountList.ts"],"names":[],"mappings":";;;AACA,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,wBAAwB,CAAC,EAAE,CAAC;AACnE,QAAA,iCAAiC,GAAsB;IACnE,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ;QACnD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAE,IAAI,EAAE,MAAM,EAAE;IACnH,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE;CAChJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDocAuthDescription = void 0;
|
|
4
|
+
const showOnly = { resource: ['wedoc'], operation: ['getDocAuth'] };
|
|
5
|
+
exports.getDocAuthDescription = [
|
|
6
|
+
{ displayName: '文档ID', name: 'docid', type: 'string', required: true, displayOptions: { show: showOnly }, default: '', description: '文档的docid。', hint: '文档ID' },
|
|
7
|
+
];
|
|
8
|
+
//# sourceMappingURL=getDocAuth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDocAuth.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/wedoc/getDocAuth.ts"],"names":[],"mappings":";;;AACA,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;AACvD,QAAA,qBAAqB,GAAsB;IACvD,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE;CAC/J,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDocDataDescription = void 0;
|
|
4
|
+
const showOnly = { resource: ['wedoc'], operation: ['getDocData'] };
|
|
5
|
+
exports.getDocDataDescription = [
|
|
6
|
+
{ displayName: '文档ID', name: 'docid', type: 'string', required: true, displayOptions: { show: showOnly }, default: '', description: '文档的docid。', hint: '文档ID' },
|
|
7
|
+
];
|
|
8
|
+
//# sourceMappingURL=getDocData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDocData.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/wedoc/getDocData.ts"],"names":[],"mappings":";;;AACA,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;AACvD,QAAA,qBAAqB,GAAsB;IACvD,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE;CAC/J,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDocInfoDescription = void 0;
|
|
4
|
+
const showOnlyForGetInfo = {
|
|
5
|
+
resource: ['wedoc'],
|
|
6
|
+
operation: ['getDocInfo'],
|
|
7
|
+
};
|
|
8
|
+
exports.getDocInfoDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '文档ID',
|
|
11
|
+
name: 'docid',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForGetInfo,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: '文档的docid。',
|
|
19
|
+
hint: '文档ID',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
//# sourceMappingURL=getDocInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDocInfo.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/wedoc/getDocInfo.ts"],"names":[],"mappings":";;;AAEA,MAAM,kBAAkB,GAAG;IAC1B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,SAAS,EAAE,CAAC,YAAY,CAAC;CACzB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,OAAO;QACb,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,MAAM;KACZ;CACD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFormAnswerDescription = void 0;
|
|
4
|
+
const showOnly = { resource: ['wedoc'], operation: ['getFormAnswer'] };
|
|
5
|
+
exports.getFormAnswerDescription = [
|
|
6
|
+
{ displayName: '收集表ID', name: 'formid', type: 'string', required: true, displayOptions: { show: showOnly }, default: '', description: '收集表的formid。', hint: '收集表ID' },
|
|
7
|
+
{ displayName: '限制数量', name: 'limit', type: 'number',
|
|
8
|
+
typeOptions: {
|
|
9
|
+
minValue: 1,
|
|
10
|
+
}, displayOptions: { show: showOnly }, default: 50, description: 'Max number of results to return', hint: '限制数量' },
|
|
11
|
+
{ displayName: '偏移量', name: 'offset', type: 'number', displayOptions: { show: showOnly }, default: 0, description: '数据偏移量,用于分页,默认0。', hint: '偏移量' },
|
|
12
|
+
];
|
|
13
|
+
//# sourceMappingURL=getFormAnswer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFormAnswer.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/wedoc/getFormAnswer.ts"],"names":[],"mappings":";;;AACA,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC;AAC1D,QAAA,wBAAwB,GAAsB;IAC1D,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE;IACpK,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ;QACnD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAE,IAAI,EAAE,MAAM,EAAE;IACnH,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE,KAAK,EAAE;CACnJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFormInfoDescription = void 0;
|
|
4
|
+
const showOnly = { resource: ['wedoc'], operation: ['getFormInfo'] };
|
|
5
|
+
exports.getFormInfoDescription = [
|
|
6
|
+
{ displayName: '收集表ID', name: 'formid', type: 'string', required: true, displayOptions: { show: showOnly }, default: '', description: '收集表的formid。', hint: '收集表ID' },
|
|
7
|
+
];
|
|
8
|
+
//# sourceMappingURL=getFormInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFormInfo.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/wedoc/getFormInfo.ts"],"names":[],"mappings":";;;AACA,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;AACxD,QAAA,sBAAsB,GAAsB;IACxD,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE;CACpK,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFormStatisticDescription = void 0;
|
|
4
|
+
const showOnly = { resource: ['wedoc'], operation: ['getFormStatistic'] };
|
|
5
|
+
exports.getFormStatisticDescription = [
|
|
6
|
+
{ displayName: '收集表ID', name: 'formid', type: 'string', required: true, displayOptions: { show: showOnly }, default: '', description: '收集表的formid。', hint: '收集表ID' },
|
|
7
|
+
];
|
|
8
|
+
//# sourceMappingURL=getFormStatistic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFormStatistic.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/wedoc/getFormStatistic.ts"],"names":[],"mappings":";;;AACA,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC;AAC7D,QAAA,2BAA2B,GAAsB;IAC7D,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE;CACpK,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSheetDataDescription = void 0;
|
|
4
|
+
const showOnly = { resource: ['wedoc'], operation: ['getSheetData'] };
|
|
5
|
+
exports.getSheetDataDescription = [
|
|
6
|
+
{ displayName: '文档ID', name: 'docid', type: 'string', required: true, displayOptions: { show: showOnly }, default: '', description: '表格文档的docid。', hint: '文档ID' },
|
|
7
|
+
{ displayName: '范围', name: 'range', type: 'string', displayOptions: { show: showOnly }, default: '', description: '要获取的数据范围,如"Sheet1!A1:C10"。', hint: '数据范围' },
|
|
8
|
+
];
|
|
9
|
+
//# sourceMappingURL=getSheetData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSheetData.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/wedoc/getSheetData.ts"],"names":[],"mappings":";;;AACA,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;AACzD,QAAA,uBAAuB,GAAsB;IACzD,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE;IACjK,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,4BAA4B,EAAE,IAAI,EAAE,MAAM,EAAE;CAC9J,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSheetRangeDescription = void 0;
|
|
4
|
+
const showOnly = { resource: ['wedoc'], operation: ['getSheetRange'] };
|
|
5
|
+
exports.getSheetRangeDescription = [
|
|
6
|
+
{ displayName: '文档ID', name: 'docid', type: 'string', required: true, displayOptions: { show: showOnly }, default: '', description: '表格文档的docid。', hint: '文档ID' },
|
|
7
|
+
];
|
|
8
|
+
//# sourceMappingURL=getSheetRange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSheetRange.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/wedoc/getSheetRange.ts"],"names":[],"mappings":";;;AACA,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC;AAC1D,QAAA,wBAAwB,GAAsB;IAC1D,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE;CACjK,CAAC"}
|