n8n-nodes-wecom 0.3.44 → 0.3.45
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 +97 -16
- package/dist/nodes/WeCom/resources/accountId/convertTmpExternalUserid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/convertTmpExternalUserid.js +17 -0
- package/dist/nodes/WeCom/resources/accountId/convertTmpExternalUserid.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/corpidToOpencorpid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/corpidToOpencorpid.js +37 -0
- package/dist/nodes/WeCom/resources/accountId/corpidToOpencorpid.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/execute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/execute.js +83 -0
- package/dist/nodes/WeCom/resources/accountId/execute.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/externalTagidToOpenExternalTagid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/externalTagidToOpenExternalTagid.js +13 -0
- package/dist/nodes/WeCom/resources/accountId/externalTagidToOpenExternalTagid.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/externalUseridToPendingId.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/externalUseridToPendingId.js +17 -0
- package/dist/nodes/WeCom/resources/accountId/externalUseridToPendingId.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/finishOpenidMigration.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/finishOpenidMigration.js +42 -0
- package/dist/nodes/WeCom/resources/accountId/finishOpenidMigration.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/fromServiceExternalUserid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/fromServiceExternalUserid.js +15 -0
- package/dist/nodes/WeCom/resources/accountId/fromServiceExternalUserid.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/getNewExternalUserid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/getNewExternalUserid.js +13 -0
- package/dist/nodes/WeCom/resources/accountId/getNewExternalUserid.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/getNewExternalUseridGroupchat.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/getNewExternalUseridGroupchat.js +15 -0
- package/dist/nodes/WeCom/resources/accountId/getNewExternalUseridGroupchat.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/index.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/index.js +491 -0
- package/dist/nodes/WeCom/resources/accountId/index.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/openKfidToNewOpenKfid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/openKfidToNewOpenKfid.js +13 -0
- package/dist/nodes/WeCom/resources/accountId/openKfidToNewOpenKfid.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/openuseridToUserid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/openuseridToUserid.js +15 -0
- package/dist/nodes/WeCom/resources/accountId/openuseridToUserid.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/unionidToExternalUserid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/unionidToExternalUserid.js +17 -0
- package/dist/nodes/WeCom/resources/accountId/unionidToExternalUserid.js.map +1 -0
- package/dist/nodes/WeCom/resources/accountId/useridToOpenuserid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/accountId/useridToOpenuserid.js +13 -0
- package/dist/nodes/WeCom/resources/accountId/useridToOpenuserid.js.map +1 -0
- package/dist/nodes/WeCom/resources/appAuth/corpidToOpencorpid.js.map +1 -1
- package/dist/nodes/WeCom/resources/appAuth/execute.js +12 -0
- package/dist/nodes/WeCom/resources/appAuth/execute.js.map +1 -1
- package/dist/nodes/WeCom/resources/appAuth/getAdminList.js.map +1 -1
- package/dist/nodes/WeCom/resources/appAuth/getAppQrcode.js.map +1 -1
- package/dist/nodes/WeCom/resources/appAuth/getAuthInfo.js.map +1 -1
- package/dist/nodes/WeCom/resources/appAuth/getOrder.d.ts +2 -0
- package/dist/nodes/WeCom/resources/appAuth/getOrder.js +38 -0
- package/dist/nodes/WeCom/resources/appAuth/getOrder.js.map +1 -0
- package/dist/nodes/WeCom/resources/appAuth/getOrderList.d.ts +2 -0
- package/dist/nodes/WeCom/resources/appAuth/getOrderList.js +47 -0
- package/dist/nodes/WeCom/resources/appAuth/getOrderList.js.map +1 -0
- package/dist/nodes/WeCom/resources/appAuth/getPermanentCode.js.map +1 -1
- package/dist/nodes/WeCom/resources/appAuth/getPermissions.js.map +1 -1
- package/dist/nodes/WeCom/resources/appAuth/getPreAuthCode.js.map +1 -1
- package/dist/nodes/WeCom/resources/appAuth/index.js +184 -0
- package/dist/nodes/WeCom/resources/appAuth/index.js.map +1 -1
- package/dist/nodes/WeCom/resources/appAuth/prolongTry.d.ts +2 -0
- package/dist/nodes/WeCom/resources/appAuth/prolongTry.js +47 -0
- package/dist/nodes/WeCom/resources/appAuth/prolongTry.js.map +1 -0
- package/dist/nodes/WeCom/resources/appAuth/setSessionInfo.js.map +1 -1
- package/dist/nodes/WeCom/resources/license/activeAccount.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/activeAccount.js +47 -0
- package/dist/nodes/WeCom/resources/license/activeAccount.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/activeAccountByType.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/activeAccountByType.js +47 -0
- package/dist/nodes/WeCom/resources/license/activeAccountByType.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/batchActiveAccount.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/batchActiveAccount.js +64 -0
- package/dist/nodes/WeCom/resources/license/batchActiveAccount.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/batchGetActiveInfoByCode.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/batchGetActiveInfoByCode.js +52 -0
- package/dist/nodes/WeCom/resources/license/batchGetActiveInfoByCode.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/batchShareActiveCode.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/batchShareActiveCode.js +70 -0
- package/dist/nodes/WeCom/resources/license/batchShareActiveCode.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/batchTransferLicense.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/batchTransferLicense.js +64 -0
- package/dist/nodes/WeCom/resources/license/batchTransferLicense.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/cancelOrder.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/cancelOrder.js +46 -0
- package/dist/nodes/WeCom/resources/license/cancelOrder.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/createNewOrder.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/createNewOrder.js +72 -0
- package/dist/nodes/WeCom/resources/license/createNewOrder.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/createNewOrderJob.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/createNewOrderJob.js +94 -0
- package/dist/nodes/WeCom/resources/license/createNewOrderJob.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/createRenewOrderJob.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/createRenewOrderJob.js +69 -0
- package/dist/nodes/WeCom/resources/license/createRenewOrderJob.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/execute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/execute.js +143 -0
- package/dist/nodes/WeCom/resources/license/execute.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/getAccountBalance.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/getAccountBalance.js +30 -0
- package/dist/nodes/WeCom/resources/license/getAccountBalance.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/getActiveInfoByCode.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/getActiveInfoByCode.js +42 -0
- package/dist/nodes/WeCom/resources/license/getActiveInfoByCode.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/getActiveInfoByUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/getActiveInfoByUser.js +42 -0
- package/dist/nodes/WeCom/resources/license/getActiveInfoByUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/getAppLicenseInfo.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/getAppLicenseInfo.js +47 -0
- package/dist/nodes/WeCom/resources/license/getAppLicenseInfo.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/getAutoActiveStatus.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/getAutoActiveStatus.js +38 -0
- package/dist/nodes/WeCom/resources/license/getAutoActiveStatus.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/getOrder.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/getOrder.js +37 -0
- package/dist/nodes/WeCom/resources/license/getOrder.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/getUnionOrder.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/getUnionOrder.js +47 -0
- package/dist/nodes/WeCom/resources/license/getUnionOrder.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/index.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/index.js +1406 -0
- package/dist/nodes/WeCom/resources/license/index.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/listActivedAccount.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/listActivedAccount.js +47 -0
- package/dist/nodes/WeCom/resources/license/listActivedAccount.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/listOrder.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/listOrder.js +66 -0
- package/dist/nodes/WeCom/resources/license/listOrder.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/listOrderAccount.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/listOrderAccount.js +47 -0
- package/dist/nodes/WeCom/resources/license/listOrderAccount.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/newOrderJobResult.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/newOrderJobResult.js +37 -0
- package/dist/nodes/WeCom/resources/license/newOrderJobResult.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/payJobResult.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/payJobResult.js +37 -0
- package/dist/nodes/WeCom/resources/license/payJobResult.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/setAutoActiveStatus.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/setAutoActiveStatus.js +43 -0
- package/dist/nodes/WeCom/resources/license/setAutoActiveStatus.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/submitNewOrderJob.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/submitNewOrderJob.js +42 -0
- package/dist/nodes/WeCom/resources/license/submitNewOrderJob.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/submitOrderJob.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/submitOrderJob.js +76 -0
- package/dist/nodes/WeCom/resources/license/submitOrderJob.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/submitPayJob.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/submitPayJob.js +42 -0
- package/dist/nodes/WeCom/resources/license/submitPayJob.js.map +1 -0
- package/dist/nodes/WeCom/resources/license/supportPolicyQuery.d.ts +2 -0
- package/dist/nodes/WeCom/resources/license/supportPolicyQuery.js +38 -0
- package/dist/nodes/WeCom/resources/license/supportPolicyQuery.js.map +1 -0
- package/dist/nodes/WeCom/resources/paytool/cancelOrder.d.ts +2 -0
- package/dist/nodes/WeCom/resources/paytool/cancelOrder.js +95 -0
- package/dist/nodes/WeCom/resources/paytool/cancelOrder.js.map +1 -0
- package/dist/nodes/WeCom/resources/paytool/createOrder.d.ts +2 -0
- package/dist/nodes/WeCom/resources/paytool/createOrder.js +250 -0
- package/dist/nodes/WeCom/resources/paytool/createOrder.js.map +1 -0
- package/dist/nodes/WeCom/resources/paytool/execute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/paytool/execute.js +59 -0
- package/dist/nodes/WeCom/resources/paytool/execute.js.map +1 -0
- package/dist/nodes/WeCom/resources/paytool/getInvoiceList.d.ts +2 -0
- package/dist/nodes/WeCom/resources/paytool/getInvoiceList.js +57 -0
- package/dist/nodes/WeCom/resources/paytool/getInvoiceList.js.map +1 -0
- package/dist/nodes/WeCom/resources/paytool/getOrderDetail.d.ts +2 -0
- package/dist/nodes/WeCom/resources/paytool/getOrderDetail.js +95 -0
- package/dist/nodes/WeCom/resources/paytool/getOrderDetail.js.map +1 -0
- package/dist/nodes/WeCom/resources/paytool/getOrderList.d.ts +2 -0
- package/dist/nodes/WeCom/resources/paytool/getOrderList.js +111 -0
- package/dist/nodes/WeCom/resources/paytool/getOrderList.js.map +1 -0
- package/dist/nodes/WeCom/resources/paytool/index.d.ts +2 -0
- package/dist/nodes/WeCom/resources/paytool/index.js +887 -0
- package/dist/nodes/WeCom/resources/paytool/index.js.map +1 -0
- package/dist/nodes/WeCom/resources/paytool/markInvoiceStatus.d.ts +2 -0
- package/dist/nodes/WeCom/resources/paytool/markInvoiceStatus.js +57 -0
- package/dist/nodes/WeCom/resources/paytool/markInvoiceStatus.js.map +1 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/execute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/execute.js +51 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/execute.js.map +1 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/getRegisterCode.d.ts +2 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/getRegisterCode.js +58 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/getRegisterCode.js.map +1 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/getRegisterInfo.d.ts +2 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/getRegisterInfo.js +38 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/getRegisterInfo.js.map +1 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/index.d.ts +2 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/index.js +249 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/index.js.map +1 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/setAgentScope.d.ts +2 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/setAgentScope.js +56 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/setAgentScope.js.map +1 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/setContactSyncSuccess.d.ts +2 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/setContactSyncSuccess.js +30 -0
- package/dist/nodes/WeCom/resources/promotionQrcode/setContactSyncSuccess.js.map +1 -0
- package/dist/nodes/WeComBase/WeComBase.node.js +74 -2
- package/dist/nodes/WeComBase/WeComBase.node.js.map +1 -1
- package/dist/nodes/WeComSuiteTrigger/WeComSuiteTrigger.node.js +55 -0
- package/dist/nodes/WeComSuiteTrigger/WeComSuiteTrigger.node.js.map +1 -1
- package/dist/nodes/WeComTrigger/WeComTrigger.node.js +13 -3
- package/dist/nodes/WeComTrigger/WeComTrigger.node.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,7 +56,11 @@
|
|
|
56
56
|
- **企业互联** - 企业互联和上下游管理
|
|
57
57
|
- **素材管理** - 素材上传和管理
|
|
58
58
|
- **电子发票** - 电子发票查询和状态管理
|
|
59
|
-
-
|
|
59
|
+
- **第三方应用授权** - 获取第三方应用凭证
|
|
60
|
+
- **第三方应用接口调用许可** - 接口调用许可管理(下单购买账号)
|
|
61
|
+
- **第三方应用收银台** - 第三方应用收银台(创建收款订单)
|
|
62
|
+
- **第三方应用推广二维码** - 第三方应用推广二维码(获取注册码)
|
|
63
|
+
- **账号 ID** - 自建应用与第三方应用的对接(userid转换、external_userid转换、corpid转换)
|
|
60
64
|
|
|
61
65
|
### 2. 企业微信-办公
|
|
62
66
|
|
|
@@ -177,21 +181,6 @@ npm install n8n-nodes-wecom
|
|
|
177
181
|
|
|
178
182
|
## 一、基础功能(企业微信-基础 节点)
|
|
179
183
|
|
|
180
|
-
### 应用授权
|
|
181
|
-
|
|
182
|
-
> [官方文档:应用授权](https://developer.work.weixin.qq.com/document/path/90600)
|
|
183
|
-
|
|
184
|
-
- ✅ [获取第三方应用凭证](https://developer.work.weixin.qq.com/document/path/90600)
|
|
185
|
-
- ✅ [获取预授权码](https://developer.work.weixin.qq.com/document/path/90601)
|
|
186
|
-
- ✅ [设置授权配置](https://developer.work.weixin.qq.com/document/path/90602)
|
|
187
|
-
- ✅ [获取企业永久授权码](https://developer.work.weixin.qq.com/document/path/90603)
|
|
188
|
-
- ✅ [获取企业授权信息](https://developer.work.weixin.qq.com/document/path/90604)
|
|
189
|
-
- ✅ [获取企业凭证](https://developer.work.weixin.qq.com/document/path/90605)
|
|
190
|
-
- ✅ [获取应用二维码](https://developer.work.weixin.qq.com/document/path/95430)
|
|
191
|
-
- ✅ [明文corpid转换为加密corpid](https://developer.work.weixin.qq.com/document/path/95435)
|
|
192
|
-
- ✅ [获取应用权限详情](https://developer.work.weixin.qq.com/document/path/95436)
|
|
193
|
-
- ✅ [获取应用管理员列表](https://developer.work.weixin.qq.com/document/path/95437)
|
|
194
|
-
|
|
195
184
|
### 消息接收(触发器节点)
|
|
196
185
|
|
|
197
186
|
> [官方文档:接收消息与事件](https://developer.work.weixin.qq.com/document/path/90238)
|
|
@@ -206,6 +195,7 @@ npm install n8n-nodes-wecom
|
|
|
206
195
|
- ✅ [接收位置消息](https://developer.work.weixin.qq.com/document/path/90239)
|
|
207
196
|
- ✅ [接收链接消息](https://developer.work.weixin.qq.com/document/path/90239)
|
|
208
197
|
- ✅ [接收事件推送](https://developer.work.weixin.qq.com/document/path/90240)(成员变更、部门变更等)
|
|
198
|
+
- ✅ [接口许可失效通知](https://developer.work.weixin.qq.com/document/path/90600)(当许可账号失效的企业成员访问应用时触发)
|
|
209
199
|
- ✅ URL 验证
|
|
210
200
|
- ✅ 消息加解密
|
|
211
201
|
- ✅ 签名验证
|
|
@@ -257,6 +247,17 @@ npm install n8n-nodes-wecom
|
|
|
257
247
|
- ✅ [接收应用管理员变更通知](https://developer.work.weixin.qq.com/document/path/91125)(change_app_admin)
|
|
258
248
|
- ✅ [接收授权组织架构权限通知](https://developer.work.weixin.qq.com/document/path/91126)(corp_arch_auth)
|
|
259
249
|
- ✅ [接收获客助手权限变更通知](https://developer.work.weixin.qq.com/document/path/91127)(approve_special_auth/cancel_special_auth)
|
|
250
|
+
- ✅ [接收支付成功通知](https://developer.work.weixin.qq.com/document/path/90600)(license_pay_success - 接口调用许可支付成功通知)
|
|
251
|
+
- ✅ [接收退款结果通知](https://developer.work.weixin.qq.com/document/path/90600)(license_refund - 接口调用许可退款结果通知)
|
|
252
|
+
- ✅ [接收自动激活回调通知](https://developer.work.weixin.qq.com/document/path/90600)(auto_activate - 接口调用许可自动激活回调通知)
|
|
253
|
+
- ✅ [接收下单成功通知](https://developer.work.weixin.qq.com/document/path/90600)(open_order - 当企业在应用市场购买付费应用完成下单后,或服务商在管理端为企业代下单后推送)
|
|
254
|
+
- ✅ [接收改单通知](https://developer.work.weixin.qq.com/document/path/90600)(change_order - 当服务商管理员修改订单价格后推送,会产生新的订单号)
|
|
255
|
+
- ✅ [接收支付成功通知](https://developer.work.weixin.qq.com/document/path/90600)(pay_for_app_success - 当企业对某一个订单完成付款后推送)
|
|
256
|
+
- ✅ [接收退款通知](https://developer.work.weixin.qq.com/document/path/90600)(refund - 当某个客户发起有效的退款,经服务商在管理端同意后或过期自动完成退款后推送)
|
|
257
|
+
- ✅ [接收应用版本变更通知](https://developer.work.weixin.qq.com/document/path/90600)(change_editon - 付费版本购买/扩容/续期、退款成功、试用期变更、版本到期等情况下推送)
|
|
258
|
+
- ✅ [接收取消订单通知](https://developer.work.weixin.qq.com/document/path/90600)(cancel_order - 当服务商或客户企业取消订单后推送)
|
|
259
|
+
- ✅ [接收注册完成回调事件](https://developer.work.weixin.qq.com/document/path/90585)(register_corp - 企业通过注册定制化新创建企业注册成功时推送)
|
|
260
|
+
- ✅ [接收扫描推广二维码事件](https://developer.work.weixin.qq.com/document/path/98071)(enter_register_package - 已有授权关系的企业成员扫描推广二维码时触发)
|
|
260
261
|
- ✅ URL 验证
|
|
261
262
|
- ✅ 消息加解密(使用SuiteID作为receiveid)
|
|
262
263
|
- ✅ 签名验证
|
|
@@ -362,6 +363,15 @@ npm install n8n-nodes-wecom
|
|
|
362
363
|
- ✅ [用户ID转OpenID](https://developer.work.weixin.qq.com/document/path/90202)
|
|
363
364
|
- ✅ [OpenID转用户ID](https://developer.work.weixin.qq.com/document/path/90202)
|
|
364
365
|
- ✅ [临时外部联系人ID转换](https://developer.work.weixin.qq.com/document/path/98729)
|
|
366
|
+
- ✅ [corpid转换(第三方应用)](https://developer.work.weixin.qq.com/document/path/95890)
|
|
367
|
+
- ✅ [userid转换(第三方应用)](https://developer.work.weixin.qq.com/document/path/95890)
|
|
368
|
+
- ✅ [external_userid转换(第三方应用)](https://developer.work.weixin.qq.com/document/path/95890)
|
|
369
|
+
- ✅ [external_userid转换(客户群成员)](https://developer.work.weixin.qq.com/document/path/95890)
|
|
370
|
+
- ✅ [unionid转换(第三方应用)](https://developer.work.weixin.qq.com/document/path/95890)
|
|
371
|
+
- ✅ [external_userid查询pending_id(第三方应用)](https://developer.work.weixin.qq.com/document/path/95890)
|
|
372
|
+
- ✅ [客户标签ID转换(第三方应用)](https://developer.work.weixin.qq.com/document/path/95890)
|
|
373
|
+
- ✅ [微信客服ID转换(第三方应用)](https://developer.work.weixin.qq.com/document/path/95890)
|
|
374
|
+
- ✅ [ID迁移完成状态设置(第三方应用)](https://developer.work.weixin.qq.com/document/path/95890)
|
|
365
375
|
|
|
366
376
|
#### 异步导入接口
|
|
367
377
|
|
|
@@ -445,6 +455,77 @@ npm install n8n-nodes-wecom
|
|
|
445
455
|
- ✅ [批量更新发票状态](https://developer.work.weixin.qq.com/document/path/90286)
|
|
446
456
|
- ✅ [批量查询电子发票](https://developer.work.weixin.qq.com/document/path/90287)
|
|
447
457
|
|
|
458
|
+
### 第三方应用授权
|
|
459
|
+
|
|
460
|
+
> [官方文档:应用授权](https://developer.work.weixin.qq.com/document/path/90600)
|
|
461
|
+
|
|
462
|
+
- ✅ [获取第三方应用凭证](https://developer.work.weixin.qq.com/document/path/90600)
|
|
463
|
+
- ✅ [获取预授权码](https://developer.work.weixin.qq.com/document/path/90601)
|
|
464
|
+
- ✅ [设置授权配置](https://developer.work.weixin.qq.com/document/path/90602)
|
|
465
|
+
- ✅ [获取企业永久授权码](https://developer.work.weixin.qq.com/document/path/100776)
|
|
466
|
+
- ✅ [获取企业授权信息](https://developer.work.weixin.qq.com/document/path/100779)
|
|
467
|
+
- ✅ [获取企业凭证](https://developer.work.weixin.qq.com/document/path/90605)
|
|
468
|
+
- ✅ [获取应用二维码](https://developer.work.weixin.qq.com/document/path/95430)
|
|
469
|
+
- ✅ [明文corpid转换为加密corpid](https://developer.work.weixin.qq.com/document/path/95890)
|
|
470
|
+
- ✅ [获取应用权限详情](https://developer.work.weixin.qq.com/document/path/99052)
|
|
471
|
+
- ✅ [获取应用管理员列表](https://developer.work.weixin.qq.com/document/path/100073)
|
|
472
|
+
- ✅ [获取订单列表](https://developer.work.weixin.qq.com/document/path/90600)
|
|
473
|
+
- ✅ [获取订单详情](https://developer.work.weixin.qq.com/document/path/90600)
|
|
474
|
+
- ✅ [延长试用期](https://developer.work.weixin.qq.com/document/path/90600)
|
|
475
|
+
|
|
476
|
+
### 第三方应用接口调用许可
|
|
477
|
+
|
|
478
|
+
> [官方文档:接口调用许可](https://developer.work.weixin.qq.com/document/path/95652)
|
|
479
|
+
|
|
480
|
+
- ✅ [下单购买账号](https://developer.work.weixin.qq.com/document/path/95644)
|
|
481
|
+
- ✅ [下单续期账号](https://developer.work.weixin.qq.com/document/path/95646)(创建续期任务、提交续期订单)
|
|
482
|
+
- ✅ [获取订单列表](https://developer.work.weixin.qq.com/document/path/95647)
|
|
483
|
+
- ✅ [获取订单详情](https://developer.work.weixin.qq.com/document/path/95648)
|
|
484
|
+
- ✅ [获取订单中的账号列表](https://developer.work.weixin.qq.com/document/path/95649)
|
|
485
|
+
- ✅ [取消订单](https://developer.work.weixin.qq.com/document/path/96106)
|
|
486
|
+
- ✅ [下单购买多企业账号](https://developer.work.weixin.qq.com/document/path/98892)(创建多企业新购任务、提交多企业新购订单、获取多企业新购订单提交结果)
|
|
487
|
+
- ✅ [获取多企业订单详情](https://developer.work.weixin.qq.com/document/path/98893)
|
|
488
|
+
|
|
489
|
+
### 第三方应用收银台
|
|
490
|
+
|
|
491
|
+
> [官方文档:第三方应用收银台](https://developer.work.weixin.qq.com/document/path/97654)
|
|
492
|
+
|
|
493
|
+
- ✅ [创建收款订单](https://developer.work.weixin.qq.com/document/path/98045)(支持普通第三方应用、代开发应用、行业解决方案三种业务类型)
|
|
494
|
+
- ✅ [取消收款订单](https://developer.work.weixin.qq.com/document/path/98046)
|
|
495
|
+
- ✅ [获取收款订单列表](https://developer.work.weixin.qq.com/document/path/98053)
|
|
496
|
+
- ✅ [获取收款订单详情](https://developer.work.weixin.qq.com/document/path/98054)
|
|
497
|
+
- ✅ [获取发票列表](https://developer.work.weixin.qq.com/document/path/99436)
|
|
498
|
+
- ✅ [标记开票状态](https://developer.work.weixin.qq.com/document/path/99437)
|
|
499
|
+
- ✅ [签名算法](https://developer.work.weixin.qq.com/document/path/98768)
|
|
500
|
+
- ✅ [使用余额支付订单](https://developer.work.weixin.qq.com/document/path/99415)(提交余额支付订单任务、获取订单支付结果)
|
|
501
|
+
|
|
502
|
+
### 第三方应用推广二维码
|
|
503
|
+
|
|
504
|
+
> [官方文档:第三方应用推广二维码](https://developer.work.weixin.qq.com/document/path/90578)
|
|
505
|
+
|
|
506
|
+
- ✅ [获取注册码](https://developer.work.weixin.qq.com/document/path/90581)(根据注册推广包生成注册码)
|
|
507
|
+
- ✅ [查询注册状态](https://developer.work.weixin.qq.com/document/path/90582)(查询通过注册定制化新创建的企业注册状态)
|
|
508
|
+
- ✅ [设置授权应用可见范围](https://developer.work.weixin.qq.com/document/path/90583)(设置授权应用的可见范围,包括成员、部门、标签)
|
|
509
|
+
- ✅ [设置通讯录同步完成](https://developer.work.weixin.qq.com/document/path/90584)(设置通讯录同步完成,解除通讯录锁定状态)
|
|
510
|
+
- ✅ [激活账号](https://developer.work.weixin.qq.com/document/path/95553)(激活账号、批量激活账号、指定账号类型激活)
|
|
511
|
+
- ✅ [获取激活码详情](https://developer.work.weixin.qq.com/document/path/95552)(获取激活码详情、批量获取激活码详情)
|
|
512
|
+
- ✅ [获取企业的账号列表](https://developer.work.weixin.qq.com/document/path/95544)
|
|
513
|
+
- ✅ [获取成员的激活详情](https://developer.work.weixin.qq.com/document/path/95555)
|
|
514
|
+
- ✅ [账号继承](https://developer.work.weixin.qq.com/document/path/95673)
|
|
515
|
+
- ✅ [分配激活码给下游/下级企业](https://developer.work.weixin.qq.com/document/path/96059)
|
|
516
|
+
- ✅ [获取应用的接口许可状态](https://developer.work.weixin.qq.com/document/path/95844)
|
|
517
|
+
- ✅ [设置企业的许可自动激活状态](https://developer.work.weixin.qq.com/document/path/95873)
|
|
518
|
+
- ✅ [查询企业的许可自动激活状态](https://developer.work.weixin.qq.com/document/path/95874)
|
|
519
|
+
- ✅ [充值账户余额查询](https://developer.work.weixin.qq.com/document/path/100137)
|
|
520
|
+
- ✅ [民生优惠条件查询](https://developer.work.weixin.qq.com/document/path/96515)(注:民生行业接口许可优惠政策于2023年3月31日到期,到期后不再支持查询)
|
|
521
|
+
|
|
522
|
+
**接口调用许可事件通知:**
|
|
523
|
+
|
|
524
|
+
- ✅ [接口许可失效通知](https://developer.work.weixin.qq.com/document/path/95716)(unlicensed_notify - 当许可账号失效的企业成员访问应用时触发)
|
|
525
|
+
- ✅ [支付成功通知](https://developer.work.weixin.qq.com/document/path/95804)(license_pay_success - 当服务商购买接口调用许可账号并完成付款后推送)
|
|
526
|
+
- ✅ [退款结果通知](https://developer.work.weixin.qq.com/document/path/95805)(license_refund - 当服务商提交退款申请的订单发生状态变更时推送)
|
|
527
|
+
- ✅ [自动激活回调通知](https://developer.work.weixin.qq.com/document/path/95994)(auto_activate - 当企业成员满足自动激活条件并触发自动激活后推送)
|
|
528
|
+
|
|
448
529
|
---
|
|
449
530
|
|
|
450
531
|
## 二、办公功能(企业微信-办公 节点)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertTmpExternalUserid = convertTmpExternalUserid;
|
|
4
|
+
const transport_1 = require("../../shared/transport");
|
|
5
|
+
async function convertTmpExternalUserid(index) {
|
|
6
|
+
const businessType = this.getNodeParameter('businessType', index);
|
|
7
|
+
const userType = this.getNodeParameter('userType', index);
|
|
8
|
+
const tmpExternalUseridList = this.getNodeParameter('tmpExternalUseridList', index);
|
|
9
|
+
const body = {
|
|
10
|
+
business_type: businessType,
|
|
11
|
+
user_type: userType,
|
|
12
|
+
tmp_external_userid_list: tmpExternalUseridList,
|
|
13
|
+
};
|
|
14
|
+
const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/idconvert/convert_tmp_external_userid', body);
|
|
15
|
+
return responseData;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=convertTmpExternalUserid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convertTmpExternalUserid.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/accountId/convertTmpExternalUserid.ts"],"names":[],"mappings":";;AAGA,4DAsBC;AAxBD,sDAAyD;AAElD,KAAK,UAAU,wBAAwB,CAE7C,KAAa;IAEb,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,KAAK,CAAW,CAAC;IAC5E,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAW,CAAC;IACpE,MAAM,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,KAAK,CAAa,CAAC;IAEhG,MAAM,IAAI,GAAgB;QACzB,aAAa,EAAE,YAAY;QAC3B,SAAS,EAAE,QAAQ;QACnB,wBAAwB,EAAE,qBAAqB;KAC/C,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,gDAAgD,EAChD,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.corpidToOpencorpid = corpidToOpencorpid;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
async function corpidToOpencorpid(index) {
|
|
6
|
+
const providerAccessToken = this.getNodeParameter('providerAccessToken', index);
|
|
7
|
+
const corpid = this.getNodeParameter('corpid', index);
|
|
8
|
+
if (!providerAccessToken) {
|
|
9
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Provider Access Token不能为空', { itemIndex: index });
|
|
10
|
+
}
|
|
11
|
+
if (!corpid) {
|
|
12
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), '企业ID不能为空', { itemIndex: index });
|
|
13
|
+
}
|
|
14
|
+
const options = {
|
|
15
|
+
method: 'POST',
|
|
16
|
+
url: 'https://qyapi.weixin.qq.com/cgi-bin/service/corpid_to_opencorpid',
|
|
17
|
+
qs: {
|
|
18
|
+
provider_access_token: providerAccessToken,
|
|
19
|
+
},
|
|
20
|
+
body: {
|
|
21
|
+
corpid,
|
|
22
|
+
},
|
|
23
|
+
json: true,
|
|
24
|
+
};
|
|
25
|
+
try {
|
|
26
|
+
const response = (await this.helpers.httpRequest(options));
|
|
27
|
+
if (response.errcode !== undefined && response.errcode !== 0) {
|
|
28
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `corpid转换失败: ${response.errmsg} (错误码: ${response.errcode})`, { itemIndex: index });
|
|
29
|
+
}
|
|
30
|
+
return response;
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
const err = error;
|
|
34
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `corpid转换失败: ${err.message}`, { itemIndex: index });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=corpidToOpencorpid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"corpidToOpencorpid.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/accountId/corpidToOpencorpid.ts"],"names":[],"mappings":";;AAGA,gDAuDC;AAzDD,+CAAkD;AAE3C,KAAK,UAAU,kBAAkB,CAEvC,KAAa;IAEb,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,KAAK,CAAW,CAAC;IAC1F,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAW,CAAC;IAEhE,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC1B,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,2BAA2B,EAC3B,EAAE,SAAS,EAAE,KAAK,EAAE,CACpB,CAAC;IACH,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,UAAU,EACV,EAAE,SAAS,EAAE,KAAK,EAAE,CACpB,CAAC;IACH,CAAC;IAED,MAAM,OAAO,GAAwB;QACpC,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,kEAAkE;QACvE,EAAE,EAAE;YACH,qBAAqB,EAAE,mBAAmB;SAC1C;QACD,IAAI,EAAE;YACL,MAAM;SACN;QACD,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,IAAI,CAAC;QACJ,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAgB,CAAC;QAE1E,IAAI,QAAQ,CAAC,OAAO,KAAK,SAAS,IAAI,QAAQ,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC;YAC9D,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,eAAe,QAAQ,CAAC,MAAM,UAAU,QAAQ,CAAC,OAAO,GAAG,EAC3D,EAAE,SAAS,EAAE,KAAK,EAAE,CACpB,CAAC;QACH,CAAC;QAED,OAAO,QAAQ,CAAC;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,GAAG,GAAG,KAAc,CAAC;QAC3B,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,eAAe,GAAG,CAAC,OAAO,EAAE,EAC5B,EAAE,SAAS,EAAE,KAAK,EAAE,CACpB,CAAC;IACH,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeAccountId = executeAccountId;
|
|
4
|
+
const openuseridToUserid_1 = require("./openuseridToUserid");
|
|
5
|
+
const useridToOpenuserid_1 = require("./useridToOpenuserid");
|
|
6
|
+
const fromServiceExternalUserid_1 = require("./fromServiceExternalUserid");
|
|
7
|
+
const getNewExternalUserid_1 = require("./getNewExternalUserid");
|
|
8
|
+
const getNewExternalUseridGroupchat_1 = require("./getNewExternalUseridGroupchat");
|
|
9
|
+
const convertTmpExternalUserid_1 = require("./convertTmpExternalUserid");
|
|
10
|
+
const corpidToOpencorpid_1 = require("./corpidToOpencorpid");
|
|
11
|
+
const unionidToExternalUserid_1 = require("./unionidToExternalUserid");
|
|
12
|
+
const externalUseridToPendingId_1 = require("./externalUseridToPendingId");
|
|
13
|
+
const externalTagidToOpenExternalTagid_1 = require("./externalTagidToOpenExternalTagid");
|
|
14
|
+
const openKfidToNewOpenKfid_1 = require("./openKfidToNewOpenKfid");
|
|
15
|
+
const finishOpenidMigration_1 = require("./finishOpenidMigration");
|
|
16
|
+
async function executeAccountId(operation, items) {
|
|
17
|
+
const returnData = [];
|
|
18
|
+
for (let i = 0; i < items.length; i++) {
|
|
19
|
+
try {
|
|
20
|
+
let responseData = {};
|
|
21
|
+
switch (operation) {
|
|
22
|
+
case 'openuseridToUserid':
|
|
23
|
+
responseData = await openuseridToUserid_1.openuseridToUserid.call(this, i);
|
|
24
|
+
break;
|
|
25
|
+
case 'useridToOpenuserid':
|
|
26
|
+
responseData = await useridToOpenuserid_1.useridToOpenuserid.call(this, i);
|
|
27
|
+
break;
|
|
28
|
+
case 'fromServiceExternalUserid':
|
|
29
|
+
responseData = await fromServiceExternalUserid_1.fromServiceExternalUserid.call(this, i);
|
|
30
|
+
break;
|
|
31
|
+
case 'getNewExternalUserid':
|
|
32
|
+
responseData = await getNewExternalUserid_1.getNewExternalUserid.call(this, i);
|
|
33
|
+
break;
|
|
34
|
+
case 'getNewExternalUseridGroupchat':
|
|
35
|
+
responseData = await getNewExternalUseridGroupchat_1.getNewExternalUseridGroupchat.call(this, i);
|
|
36
|
+
break;
|
|
37
|
+
case 'convertTmpExternalUserid':
|
|
38
|
+
responseData = await convertTmpExternalUserid_1.convertTmpExternalUserid.call(this, i);
|
|
39
|
+
break;
|
|
40
|
+
case 'corpidToOpencorpid':
|
|
41
|
+
responseData = await corpidToOpencorpid_1.corpidToOpencorpid.call(this, i);
|
|
42
|
+
break;
|
|
43
|
+
case 'unionidToExternalUserid':
|
|
44
|
+
responseData = await unionidToExternalUserid_1.unionidToExternalUserid.call(this, i);
|
|
45
|
+
break;
|
|
46
|
+
case 'externalUseridToPendingId':
|
|
47
|
+
responseData = await externalUseridToPendingId_1.externalUseridToPendingId.call(this, i);
|
|
48
|
+
break;
|
|
49
|
+
case 'externalTagidToOpenExternalTagid':
|
|
50
|
+
responseData = await externalTagidToOpenExternalTagid_1.externalTagidToOpenExternalTagid.call(this, i);
|
|
51
|
+
break;
|
|
52
|
+
case 'openKfidToNewOpenKfid':
|
|
53
|
+
responseData = await openKfidToNewOpenKfid_1.openKfidToNewOpenKfid.call(this, i);
|
|
54
|
+
break;
|
|
55
|
+
case 'finishOpenidMigration':
|
|
56
|
+
responseData = await finishOpenidMigration_1.finishOpenidMigration.call(this, i);
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
throw new Error(`未知操作: ${operation}`);
|
|
60
|
+
}
|
|
61
|
+
returnData.push({
|
|
62
|
+
json: responseData,
|
|
63
|
+
pairedItem: { item: i },
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
if (this.continueOnFail()) {
|
|
68
|
+
returnData.push({
|
|
69
|
+
json: {
|
|
70
|
+
error: error.message,
|
|
71
|
+
success: false,
|
|
72
|
+
},
|
|
73
|
+
pairedItem: { item: i },
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
throw error;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return returnData;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=execute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/accountId/execute.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.externalTagidToOpenExternalTagid = externalTagidToOpenExternalTagid;
|
|
4
|
+
const transport_1 = require("../../shared/transport");
|
|
5
|
+
async function externalTagidToOpenExternalTagid(index) {
|
|
6
|
+
const externalTagidList = this.getNodeParameter('externalTagidList', index);
|
|
7
|
+
const body = {
|
|
8
|
+
external_tagid_list: externalTagidList,
|
|
9
|
+
};
|
|
10
|
+
const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/idconvert/external_tagid', body);
|
|
11
|
+
return responseData;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=externalTagidToOpenExternalTagid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"externalTagidToOpenExternalTagid.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/accountId/externalTagidToOpenExternalTagid.ts"],"names":[],"mappings":";;AAGA,4EAkBC;AApBD,sDAAyD;AAElD,KAAK,UAAU,gCAAgC,CAErD,KAAa;IAEb,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,KAAK,CAAa,CAAC;IAExF,MAAM,IAAI,GAAgB;QACzB,mBAAmB,EAAE,iBAAiB;KACtC,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,mCAAmC,EACnC,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.externalUseridToPendingId = externalUseridToPendingId;
|
|
4
|
+
const transport_1 = require("../../shared/transport");
|
|
5
|
+
async function externalUseridToPendingId(index) {
|
|
6
|
+
const externalUserid = this.getNodeParameter('externalUserid', index);
|
|
7
|
+
const chatId = this.getNodeParameter('chatId', index, '');
|
|
8
|
+
const body = {
|
|
9
|
+
external_userid: externalUserid,
|
|
10
|
+
};
|
|
11
|
+
if (chatId) {
|
|
12
|
+
body.chat_id = chatId;
|
|
13
|
+
}
|
|
14
|
+
const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/idconvert/batch/external_userid_to_pending_id', body);
|
|
15
|
+
return responseData;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=externalUseridToPendingId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"externalUseridToPendingId.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/accountId/externalUseridToPendingId.ts"],"names":[],"mappings":";;AAGA,8DAuBC;AAzBD,sDAAyD;AAElD,KAAK,UAAU,yBAAyB,CAE9C,KAAa;IAEb,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,KAAK,CAAa,CAAC;IAClF,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAW,CAAC;IAEpE,MAAM,IAAI,GAAgB;QACzB,eAAe,EAAE,cAAc;KAC/B,CAAC;IAEF,IAAI,MAAM,EAAE,CAAC;QACZ,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,wDAAwD,EACxD,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.finishOpenidMigration = finishOpenidMigration;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
async function finishOpenidMigration(index) {
|
|
6
|
+
const providerAccessToken = this.getNodeParameter('providerAccessToken', index);
|
|
7
|
+
const corpid = this.getNodeParameter('corpid', index);
|
|
8
|
+
const openidType = this.getNodeParameter('openidType', index);
|
|
9
|
+
if (!providerAccessToken) {
|
|
10
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Provider Access Token不能为空', { itemIndex: index });
|
|
11
|
+
}
|
|
12
|
+
if (!corpid) {
|
|
13
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), '企业ID不能为空', { itemIndex: index });
|
|
14
|
+
}
|
|
15
|
+
if (!openidType || openidType.length === 0) {
|
|
16
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'ID类型不能为空', { itemIndex: index });
|
|
17
|
+
}
|
|
18
|
+
const options = {
|
|
19
|
+
method: 'POST',
|
|
20
|
+
url: 'https://qyapi.weixin.qq.com/cgi-bin/service/finish_openid_migration',
|
|
21
|
+
qs: {
|
|
22
|
+
provider_access_token: providerAccessToken,
|
|
23
|
+
},
|
|
24
|
+
body: {
|
|
25
|
+
corpid,
|
|
26
|
+
openid_type: openidType,
|
|
27
|
+
},
|
|
28
|
+
json: true,
|
|
29
|
+
};
|
|
30
|
+
try {
|
|
31
|
+
const response = (await this.helpers.httpRequest(options));
|
|
32
|
+
if (response.errcode !== undefined && response.errcode !== 0) {
|
|
33
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `ID迁移完成状态设置失败: ${response.errmsg} (错误码: ${response.errcode})`, { itemIndex: index });
|
|
34
|
+
}
|
|
35
|
+
return response;
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
const err = error;
|
|
39
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `ID迁移完成状态设置失败: ${err.message}`, { itemIndex: index });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=finishOpenidMigration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finishOpenidMigration.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/accountId/finishOpenidMigration.ts"],"names":[],"mappings":";;AAGA,sDAiEC;AAnED,+CAAkD;AAE3C,KAAK,UAAU,qBAAqB,CAE1C,KAAa;IAEb,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,KAAK,CAAW,CAAC;IAC1F,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAW,CAAC;IAChE,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,KAAK,CAAa,CAAC;IAE1E,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC1B,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,2BAA2B,EAC3B,EAAE,SAAS,EAAE,KAAK,EAAE,CACpB,CAAC;IACH,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,UAAU,EACV,EAAE,SAAS,EAAE,KAAK,EAAE,CACpB,CAAC;IACH,CAAC;IAED,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5C,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,UAAU,EACV,EAAE,SAAS,EAAE,KAAK,EAAE,CACpB,CAAC;IACH,CAAC;IAED,MAAM,OAAO,GAAwB;QACpC,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,qEAAqE;QAC1E,EAAE,EAAE;YACH,qBAAqB,EAAE,mBAAmB;SAC1C;QACD,IAAI,EAAE;YACL,MAAM;YACN,WAAW,EAAE,UAAU;SACvB;QACD,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,IAAI,CAAC;QACJ,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAgB,CAAC;QAE1E,IAAI,QAAQ,CAAC,OAAO,KAAK,SAAS,IAAI,QAAQ,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC;YAC9D,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,iBAAiB,QAAQ,CAAC,MAAM,UAAU,QAAQ,CAAC,OAAO,GAAG,EAC7D,EAAE,SAAS,EAAE,KAAK,EAAE,CACpB,CAAC;QACH,CAAC;QAED,OAAO,QAAQ,CAAC;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,GAAG,GAAG,KAAc,CAAC;QAC3B,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,iBAAiB,GAAG,CAAC,OAAO,EAAE,EAC9B,EAAE,SAAS,EAAE,KAAK,EAAE,CACpB,CAAC;IACH,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fromServiceExternalUserid = fromServiceExternalUserid;
|
|
4
|
+
const transport_1 = require("../../shared/transport");
|
|
5
|
+
async function fromServiceExternalUserid(index) {
|
|
6
|
+
const sourceAgentid = this.getNodeParameter('sourceAgentid', index);
|
|
7
|
+
const externalUserid = this.getNodeParameter('externalUserid', index);
|
|
8
|
+
const body = {
|
|
9
|
+
external_userid: externalUserid,
|
|
10
|
+
source_agentid: sourceAgentid,
|
|
11
|
+
};
|
|
12
|
+
const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/from_service_external_userid', body);
|
|
13
|
+
return responseData;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=fromServiceExternalUserid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fromServiceExternalUserid.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/accountId/fromServiceExternalUserid.ts"],"names":[],"mappings":";;AAGA,8DAoBC;AAtBD,sDAAyD;AAElD,KAAK,UAAU,yBAAyB,CAE9C,KAAa;IAEb,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,KAAK,CAAW,CAAC;IAC9E,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,KAAK,CAAW,CAAC;IAEhF,MAAM,IAAI,GAAgB;QACzB,eAAe,EAAE,cAAc;QAC/B,cAAc,EAAE,aAAa;KAC7B,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,uDAAuD,EACvD,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNewExternalUserid = getNewExternalUserid;
|
|
4
|
+
const transport_1 = require("../../shared/transport");
|
|
5
|
+
async function getNewExternalUserid(index) {
|
|
6
|
+
const externalUseridList = this.getNodeParameter('externalUseridList', index);
|
|
7
|
+
const body = {
|
|
8
|
+
external_userid_list: externalUseridList,
|
|
9
|
+
};
|
|
10
|
+
const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/get_new_external_userid', body);
|
|
11
|
+
return responseData;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=getNewExternalUserid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNewExternalUserid.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/accountId/getNewExternalUserid.ts"],"names":[],"mappings":";;AAGA,oDAkBC;AApBD,sDAAyD;AAElD,KAAK,UAAU,oBAAoB,CAEzC,KAAa;IAEb,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,KAAK,CAAa,CAAC;IAE1F,MAAM,IAAI,GAAgB;QACzB,oBAAoB,EAAE,kBAAkB;KACxC,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,kDAAkD,EAClD,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNewExternalUseridGroupchat = getNewExternalUseridGroupchat;
|
|
4
|
+
const transport_1 = require("../../shared/transport");
|
|
5
|
+
async function getNewExternalUseridGroupchat(index) {
|
|
6
|
+
const chatId = this.getNodeParameter('chatId', index);
|
|
7
|
+
const externalUseridList = this.getNodeParameter('externalUseridList', index);
|
|
8
|
+
const body = {
|
|
9
|
+
chat_id: chatId,
|
|
10
|
+
external_userid_list: externalUseridList,
|
|
11
|
+
};
|
|
12
|
+
const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/externalcontact/groupchat/get_new_external_userid', body);
|
|
13
|
+
return responseData;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=getNewExternalUseridGroupchat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNewExternalUseridGroupchat.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/accountId/getNewExternalUseridGroupchat.ts"],"names":[],"mappings":";;AAGA,sEAoBC;AAtBD,sDAAyD;AAElD,KAAK,UAAU,6BAA6B,CAElD,KAAa;IAEb,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAW,CAAC;IAChE,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,KAAK,CAAa,CAAC;IAE1F,MAAM,IAAI,GAAgB;QACzB,OAAO,EAAE,MAAM;QACf,oBAAoB,EAAE,kBAAkB;KACxC,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,4DAA4D,EAC5D,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
|