@satorijs/adapter-dingtalk 2.0.0 → 2.0.1
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/lib/api/alitrip.d.ts +12 -12
- package/lib/api/attendance.d.ts +3 -3
- package/lib/api/badge.d.ts +8 -8
- package/lib/api/blackboard.d.ts +1 -1
- package/lib/api/calendar.d.ts +28 -28
- package/lib/api/card.d.ts +6 -6
- package/lib/api/conference.d.ts +23 -23
- package/lib/api/connector.d.ts +3 -3
- package/lib/api/contact.d.ts +2 -2
- package/lib/api/convFile.d.ts +4 -4
- package/lib/api/crm.d.ts +28 -28
- package/lib/api/customerService.d.ts +4 -4
- package/lib/api/datacenter.d.ts +26 -26
- package/lib/api/devicemng.d.ts +5 -5
- package/lib/api/diot.d.ts +1 -1
- package/lib/api/doc.d.ts +8 -8
- package/lib/api/drive.d.ts +4 -4
- package/lib/api/edu.d.ts +5 -5
- package/lib/api/esign.d.ts +2 -2
- package/lib/api/exclusive.d.ts +14 -14
- package/lib/api/h3yun.d.ts +20 -20
- package/lib/api/hrm.d.ts +9 -9
- package/lib/api/im.d.ts +37 -37
- package/lib/api/industry.d.ts +5 -5
- package/lib/api/jzcrm.d.ts +13 -13
- package/lib/api/link.d.ts +4 -4
- package/lib/api/live.d.ts +6 -6
- package/lib/api/microApp.d.ts +12 -12
- package/lib/api/oapi.d.ts +257 -257
- package/lib/api/oauth2.d.ts +7 -7
- package/lib/api/pedia.d.ts +6 -6
- package/lib/api/project.d.ts +50 -50
- package/lib/api/resident.d.ts +6 -6
- package/lib/api/robot.d.ts +14 -14
- package/lib/api/rooms.d.ts +12 -12
- package/lib/api/serviceGroup.d.ts +8 -8
- package/lib/api/storage.d.ts +51 -51
- package/lib/api/swform.d.ts +3 -3
- package/lib/api/todo.d.ts +5 -5
- package/lib/api/wiki.d.ts +6 -6
- package/lib/api/workbench.d.ts +3 -3
- package/lib/api/yida.d.ts +60 -60
- package/lib/bot.d.ts +3 -4
- package/lib/http.d.ts +2 -2
- package/lib/index.js +159 -157
- package/lib/index.js.map +2 -2
- package/lib/ws.d.ts +1 -1
- package/package.json +2 -2
package/lib/api/yida.d.ts
CHANGED
|
@@ -1535,302 +1535,302 @@ declare module '../internal' {
|
|
|
1535
1535
|
interface Internal {
|
|
1536
1536
|
/**
|
|
1537
1537
|
* 获取应用内表单列表信息
|
|
1538
|
-
* @see https://
|
|
1538
|
+
* @see https://open.dingtalk.com/document/app/depending-on-the-application-id-to-get-the-form-list
|
|
1539
1539
|
*/
|
|
1540
1540
|
getFormListInApp(query: GetFormListInAppQuery): Promise<GetFormListInAppResponse>;
|
|
1541
1541
|
/**
|
|
1542
1542
|
* 根据表单ID获取字段信息
|
|
1543
|
-
* @see https://
|
|
1543
|
+
* @see https://open.dingtalk.com/document/isvapp/get-form-field-information-based-on-form-uuid
|
|
1544
1544
|
*/
|
|
1545
1545
|
getFieldDefByUuid(query: GetFieldDefByUuidQuery): Promise<GetFieldDefByUuidResponse>;
|
|
1546
1546
|
/**
|
|
1547
1547
|
* 批量审批
|
|
1548
|
-
* @see https://
|
|
1548
|
+
* @see https://open.dingtalk.com/document/app/bulk-approval
|
|
1549
1549
|
*/
|
|
1550
1550
|
executeBatchTask(params: ExecuteBatchTaskParams): Promise<ExecuteBatchTaskResponse>;
|
|
1551
1551
|
/**
|
|
1552
1552
|
* 查询表单的变更记录
|
|
1553
|
-
* @see https://
|
|
1553
|
+
* @see https://open.dingtalk.com/document/app/query-the-operation-records-of-a-form
|
|
1554
1554
|
*/
|
|
1555
1555
|
listOperationLogs(params: ListOperationLogsParams): Promise<ListOperationLogsResponse>;
|
|
1556
1556
|
/**
|
|
1557
1557
|
* 查询表单实例评论列表
|
|
1558
|
-
* @see https://
|
|
1558
|
+
* @see https://open.dingtalk.com/document/isvapp/batch-query-of-comments-appropriate-for-form-instances
|
|
1559
1559
|
*/
|
|
1560
1560
|
listFormRemarks(params: ListFormRemarksParams): Promise<ListFormRemarksResponse>;
|
|
1561
1561
|
/**
|
|
1562
1562
|
* 查询服务调用记录
|
|
1563
|
-
* @see https://
|
|
1563
|
+
* @see https://open.dingtalk.com/document/isvapp/execution-records-of-form-service-calls
|
|
1564
1564
|
*/
|
|
1565
1565
|
queryServiceRecord(query: QueryServiceRecordQuery): Promise<QueryServiceRecordResponse>;
|
|
1566
1566
|
/**
|
|
1567
1567
|
* 批量删除指定的表单实例
|
|
1568
|
-
* @see https://
|
|
1568
|
+
* @see https://open.dingtalk.com/document/isvapp/delete-multiple-form-instances
|
|
1569
1569
|
*/
|
|
1570
1570
|
batchRemovalByFormInstanceIdList(params: BatchRemovalByFormInstanceIdListParams): Promise<void>;
|
|
1571
1571
|
/**
|
|
1572
1572
|
* 将多条表单实例的指定表单组件更新成指定值
|
|
1573
|
-
* @see https://
|
|
1573
|
+
* @see https://open.dingtalk.com/document/isvapp/batch-update-of-component-values-in-form-instances
|
|
1574
1574
|
*/
|
|
1575
1575
|
batchUpdateFormDataByInstanceId(params: BatchUpdateFormDataByInstanceIdParams): Promise<BatchUpdateFormDataByInstanceIdResponse>;
|
|
1576
1576
|
/**
|
|
1577
1577
|
* 通过表单实例数据批量更新表单实例
|
|
1578
|
-
* @see https://
|
|
1578
|
+
* @see https://open.dingtalk.com/document/isvapp/batch-update-of-form-instances-through-form-component-data
|
|
1579
1579
|
*/
|
|
1580
1580
|
batchUpdateFormDataByInstanceMap(params: BatchUpdateFormDataByInstanceMapParams): Promise<BatchUpdateFormDataByInstanceMapResponse>;
|
|
1581
1581
|
/**
|
|
1582
1582
|
* 获取组织下的宜搭应用列表
|
|
1583
|
-
* @see https://
|
|
1583
|
+
* @see https://open.dingtalk.com/document/isvapp/query-the-application-list
|
|
1584
1584
|
*/
|
|
1585
1585
|
listApplication(query: ListApplicationQuery): Promise<ListApplicationResponse>;
|
|
1586
1586
|
/**
|
|
1587
1587
|
* 批量保存表单实例数据
|
|
1588
|
-
* @see https://
|
|
1588
|
+
* @see https://open.dingtalk.com/document/isvapp/create-multiple-form-instances
|
|
1589
1589
|
*/
|
|
1590
1590
|
batchSaveFormData(params: BatchSaveFormDataParams): Promise<BatchSaveFormDataResponse>;
|
|
1591
1591
|
/**
|
|
1592
1592
|
* 通过高级查询条件查询表单实例数据(不返回子表单组件数据)
|
|
1593
|
-
* @see https://
|
|
1593
|
+
* @see https://open.dingtalk.com/document/isvapp/obtain-form-instance-data-using-advanced-query-conditions-excluding-subform
|
|
1594
1594
|
*/
|
|
1595
1595
|
searchFormDataSecondGenerationNoTableField(params: SearchFormDataSecondGenerationNoTableFieldParams): Promise<SearchFormDataSecondGenerationNoTableFieldResponse>;
|
|
1596
1596
|
/**
|
|
1597
1597
|
* 新增或更新表单实例
|
|
1598
|
-
* @see https://
|
|
1598
|
+
* @see https://open.dingtalk.com/document/isvapp/add-or-update-form-instances
|
|
1599
1599
|
*/
|
|
1600
1600
|
createOrUpdateFormData(params: CreateOrUpdateFormDataParams): Promise<CreateOrUpdateFormDataResponse>;
|
|
1601
1601
|
/**
|
|
1602
1602
|
* 通过高级检索条件查询表单实例
|
|
1603
|
-
* @see https://
|
|
1603
|
+
* @see https://open.dingtalk.com/document/isvapp/query-form-instances-using-advanced-search-conditions
|
|
1604
1604
|
*/
|
|
1605
1605
|
searchFormDataSecondGeneration(params: SearchFormDataSecondGenerationParams): Promise<SearchFormDataSecondGenerationResponse>;
|
|
1606
1606
|
/**
|
|
1607
1607
|
* 批量获取指定表单实例ID列表对应的表单实例数据
|
|
1608
|
-
* @see https://
|
|
1608
|
+
* @see https://open.dingtalk.com/document/isvapp/obtain-multiple-form-instance-data
|
|
1609
1609
|
*/
|
|
1610
1610
|
batchGetFormDataByIdList(params: BatchGetFormDataByIdListParams): Promise<BatchGetFormDataByIdListResponse>;
|
|
1611
1611
|
/**
|
|
1612
1612
|
* 查询抄送我的任务列表(应用维度)
|
|
1613
|
-
* @see https://
|
|
1613
|
+
* @see https://open.dingtalk.com/document/app/query-copied-my-task-list-application-dimension
|
|
1614
1614
|
*/
|
|
1615
1615
|
getTaskCopies(query: GetTaskCopiesQuery): Promise<GetTaskCopiesResponse>;
|
|
1616
1616
|
/**
|
|
1617
1617
|
* 根据条件搜索表单实例 ID 列表
|
|
1618
|
-
* @see https://
|
|
1618
|
+
* @see https://open.dingtalk.com/document/app/obtain-the-ids-of-multiple-form-instances
|
|
1619
1619
|
*/
|
|
1620
1620
|
searchFormDataIdList(appType: string, formUuid: string, query: SearchFormDataIdListQuery, params: SearchFormDataIdListParams): Promise<SearchFormDataIdListResponse>;
|
|
1621
1621
|
/**
|
|
1622
1622
|
* 获取子表单数据
|
|
1623
|
-
* @see https://
|
|
1623
|
+
* @see https://open.dingtalk.com/document/app/obtain-child-table-component-data
|
|
1624
1624
|
*/
|
|
1625
1625
|
listTableDataByFormInstanceIdTableId(formInstanceId: string, query: ListTableDataByFormInstanceIdTableIdQuery): Promise<ListTableDataByFormInstanceIdTableIdResponse>;
|
|
1626
1626
|
/**
|
|
1627
1627
|
* 查询已完成任务列表
|
|
1628
|
-
* @see https://
|
|
1628
|
+
* @see https://open.dingtalk.com/document/app/obtains-the-completed-approval-tasks-in-an-organization
|
|
1629
1629
|
*/
|
|
1630
1630
|
getCorpAccomplishmentTasks(corpId: string, userId: string, query: GetCorpAccomplishmentTasksQuery): Promise<GetCorpAccomplishmentTasksResponse>;
|
|
1631
1631
|
/**
|
|
1632
1632
|
* 获取表单定义
|
|
1633
|
-
* @see https://
|
|
1633
|
+
* @see https://open.dingtalk.com/document/app/get-a-list-of-form-component-definitions
|
|
1634
1634
|
*/
|
|
1635
1635
|
getFormComponentDefinitionList(appType: string, formUuid: string, query: GetFormComponentDefinitionListQuery): Promise<GetFormComponentDefinitionListResponse>;
|
|
1636
1636
|
/**
|
|
1637
1637
|
* 根据条件搜索流程实例 ID
|
|
1638
|
-
* @see https://
|
|
1638
|
+
* @see https://open.dingtalk.com/document/app/obtains-a-list-of-instance-ids
|
|
1639
1639
|
*/
|
|
1640
1640
|
getInstanceIdList(query: GetInstanceIdListQuery, params: GetInstanceIdListParams): Promise<GetInstanceIdListResponse>;
|
|
1641
1641
|
/**
|
|
1642
1642
|
* 根据实例 ID 列表批量获取流程实例详情
|
|
1643
|
-
* @see https://
|
|
1643
|
+
* @see https://open.dingtalk.com/document/app/queries-multiple-process-instances
|
|
1644
1644
|
*/
|
|
1645
1645
|
getInstancesByIdList(query: GetInstancesByIdListQuery): Promise<GetInstancesByIdListResponse>;
|
|
1646
1646
|
/**
|
|
1647
1647
|
* 获取组织内某人提交的任务
|
|
1648
|
-
* @see https://
|
|
1648
|
+
* @see https://open.dingtalk.com/document/app/obtains-the-tasks-submitted-by-someone-in-an-organization
|
|
1649
1649
|
*/
|
|
1650
1650
|
getMeCorpSubmission(userId: string, query: GetMeCorpSubmissionQuery): Promise<GetMeCorpSubmissionResponse>;
|
|
1651
1651
|
/**
|
|
1652
1652
|
* 获取流程定义
|
|
1653
|
-
* @see https://
|
|
1653
|
+
* @see https://open.dingtalk.com/document/isvapp-server/obtain-process-definition
|
|
1654
1654
|
*/
|
|
1655
1655
|
getProcessDefinition(processInstanceId: string, query: GetProcessDefinitionQuery): Promise<GetProcessDefinitionResponse>;
|
|
1656
1656
|
/**
|
|
1657
1657
|
* 查询待办任务列表
|
|
1658
|
-
* @see https://
|
|
1658
|
+
* @see https://open.dingtalk.com/document/app/query-tasks-from-the-organization-dimension
|
|
1659
1659
|
*/
|
|
1660
1660
|
getCorpTasks(query: GetCorpTasksQuery): Promise<GetCorpTasksResponse>;
|
|
1661
1661
|
/**
|
|
1662
1662
|
* 查询抄送我的任务列表(企业维度)
|
|
1663
|
-
* @see https://
|
|
1663
|
+
* @see https://open.dingtalk.com/document/app/get-notifications-sent-to-users
|
|
1664
1664
|
*/
|
|
1665
1665
|
getNotifyMe(userId: string, query: GetNotifyMeQuery): Promise<GetNotifyMeResponse>;
|
|
1666
1666
|
/**
|
|
1667
1667
|
* 获取流程节点按钮列表
|
|
1668
|
-
* @see https://
|
|
1668
|
+
* @see https://open.dingtalk.com/document/isvapp-server/obtain-a-list-of-process-node-buttons-1
|
|
1669
1669
|
*/
|
|
1670
1670
|
getActivityButtonList(appType: string, processCode: string, activityId: string, query: GetActivityButtonListQuery): Promise<GetActivityButtonListResponse>;
|
|
1671
1671
|
/**
|
|
1672
1672
|
* 获取平台服务资源
|
|
1673
|
-
* @see https://
|
|
1673
|
+
* @see https://open.dingtalk.com/document/isvapp-server/obtain-platform-service-resources
|
|
1674
1674
|
*/
|
|
1675
1675
|
getApplicationAuthorizationServicePlatformResource(query: GetApplicationAuthorizationServicePlatformResourceQuery): Promise<GetApplicationAuthorizationServicePlatformResourceResponse>;
|
|
1676
1676
|
/**
|
|
1677
1677
|
* 更新流程实例
|
|
1678
|
-
* @see https://
|
|
1678
|
+
* @see https://open.dingtalk.com/document/isvapp-server/update-process-instance-1
|
|
1679
1679
|
*/
|
|
1680
1680
|
updateInstance(params: UpdateInstanceParams): Promise<void>;
|
|
1681
1681
|
/**
|
|
1682
1682
|
* 删除流程实例
|
|
1683
|
-
* @see https://
|
|
1683
|
+
* @see https://open.dingtalk.com/document/app/delete-process-instance
|
|
1684
1684
|
*/
|
|
1685
1685
|
deleteInstance(query: DeleteInstanceQuery): Promise<void>;
|
|
1686
1686
|
/**
|
|
1687
1687
|
* 获取审批记录
|
|
1688
|
-
* @see https://
|
|
1688
|
+
* @see https://open.dingtalk.com/document/app/queries-an-approval-record
|
|
1689
1689
|
*/
|
|
1690
1690
|
getOperationRecords(query: GetOperationRecordsQuery): Promise<GetOperationRecordsResponse>;
|
|
1691
1691
|
/**
|
|
1692
1692
|
* 终止流程实例
|
|
1693
|
-
* @see https://
|
|
1693
|
+
* @see https://open.dingtalk.com/document/app/terminate-a-process-instance
|
|
1694
1694
|
*/
|
|
1695
1695
|
terminateInstance(query: TerminateInstanceQuery): Promise<void>;
|
|
1696
1696
|
/**
|
|
1697
1697
|
* 执行审批任务
|
|
1698
|
-
* @see https://
|
|
1698
|
+
* @see https://open.dingtalk.com/document/app/execute-approval-tasks
|
|
1699
1699
|
*/
|
|
1700
1700
|
executeTask(params: ExecuteTaskParams): Promise<void>;
|
|
1701
1701
|
/**
|
|
1702
1702
|
* 执行宜搭平台的审批任务
|
|
1703
|
-
* @see https://
|
|
1703
|
+
* @see https://open.dingtalk.com/document/isvapp-server/execute-appropriate-approval-tasks
|
|
1704
1704
|
*/
|
|
1705
1705
|
executePlatformTask(params: ExecutePlatformTaskParams): Promise<void>;
|
|
1706
1706
|
/**
|
|
1707
1707
|
* 执行转交任务
|
|
1708
|
-
* @see https://
|
|
1708
|
+
* @see https://open.dingtalk.com/document/app/transfer-tasks
|
|
1709
1709
|
*/
|
|
1710
1710
|
redirectTask(params: RedirectTaskParams): Promise<void>;
|
|
1711
1711
|
/**
|
|
1712
1712
|
* 附件地址转临时免登地址
|
|
1713
|
-
* @see https://
|
|
1713
|
+
* @see https://open.dingtalk.com/document/isvapp/obtain-the-temporary-free-access-address-of-yixian-accessories
|
|
1714
1714
|
*/
|
|
1715
1715
|
getOpenUrl(appType: string, query: GetOpenUrlQuery): Promise<GetOpenUrlResponse>;
|
|
1716
1716
|
/**
|
|
1717
1717
|
* 提交表单/流程实例下的评论
|
|
1718
|
-
* @see https://
|
|
1718
|
+
* @see https://open.dingtalk.com/document/app/submit-comment
|
|
1719
1719
|
*/
|
|
1720
1720
|
saveFormRemark(params: SaveFormRemarkParams): Promise<SaveFormRemarkResponse>;
|
|
1721
1721
|
/**
|
|
1722
1722
|
* 获取应用下的页面列表
|
|
1723
|
-
* @see https://
|
|
1723
|
+
* @see https://open.dingtalk.com/document/isvapp-server/obtains-the-page-list-under-an-application
|
|
1724
1724
|
*/
|
|
1725
1725
|
listNavigationByFormType(query: ListNavigationByFormTypeQuery): Promise<ListNavigationByFormTypeResponse>;
|
|
1726
1726
|
/**
|
|
1727
1727
|
* 多渠道新购校验
|
|
1728
|
-
* @see https://
|
|
1728
|
+
* @see https://open.dingtalk.com/document/isvapp-server/multi-channel-new-purchase-verification
|
|
1729
1729
|
*/
|
|
1730
1730
|
validateOrderBuy(query: ValidateOrderBuyQuery): Promise<ValidateOrderBuyResponse>;
|
|
1731
1731
|
/**
|
|
1732
1732
|
* 查询流程运行任务(vpc)
|
|
1733
|
-
* @see https://
|
|
1733
|
+
* @see https://open.dingtalk.com/document/app/query-process-running-tasks-vpc
|
|
1734
1734
|
*/
|
|
1735
1735
|
getRunningTasks(query: GetRunningTasksQuery): Promise<GetRunningTasksResponse>;
|
|
1736
1736
|
/**
|
|
1737
1737
|
* 获取流程设计的节点信息
|
|
1738
|
-
* @see https://
|
|
1738
|
+
* @see https://open.dingtalk.com/document/isvapp-server/obtain-the-information-about-the-nodes-in-process-design-1
|
|
1739
1739
|
*/
|
|
1740
1740
|
getActivityList(query: GetActivityListQuery): Promise<GetActivityListResponse>;
|
|
1741
1741
|
/**
|
|
1742
1742
|
* 执行自定义API
|
|
1743
|
-
* @see https://
|
|
1743
|
+
* @see https://open.dingtalk.com/document/isvapp-server/run-custom-api
|
|
1744
1744
|
*/
|
|
1745
1745
|
executeCustomApi(query: ExecuteCustomApiQuery): Promise<ExecuteCustomApiResponse>;
|
|
1746
1746
|
/**
|
|
1747
1747
|
* 查询激活码
|
|
1748
|
-
* @see https://
|
|
1748
|
+
* @see https://open.dingtalk.com/document/isvapp-server/query-activation-code
|
|
1749
1749
|
*/
|
|
1750
1750
|
searchActivationCode(query: SearchActivationCodeQuery): Promise<SearchActivationCodeResponse>;
|
|
1751
1751
|
/**
|
|
1752
1752
|
* 查询销售用户信息
|
|
1753
|
-
* @see https://
|
|
1753
|
+
* @see https://open.dingtalk.com/document/isvapp-server/query-sales-user-information
|
|
1754
1754
|
*/
|
|
1755
1755
|
getSaleUserInfoByUserId(query: GetSaleUserInfoByUserIdQuery): Promise<GetSaleUserInfoByUserIdResponse>;
|
|
1756
1756
|
/**
|
|
1757
1757
|
* 查询企业级别
|
|
1758
|
-
* @see https://
|
|
1758
|
+
* @see https://open.dingtalk.com/document/isvapp-server/query-enterprise-level
|
|
1759
1759
|
*/
|
|
1760
1760
|
getCorpLevelByAccountId(query: GetCorpLevelByAccountIdQuery): Promise<GetCorpLevelByAccountIdResponse>;
|
|
1761
1761
|
/**
|
|
1762
1762
|
* 更新状态
|
|
1763
|
-
* @see https://
|
|
1763
|
+
* @see https://open.dingtalk.com/document/isvapp-server/update-status
|
|
1764
1764
|
*/
|
|
1765
1765
|
updateStatus(params: UpdateStatusParams): Promise<void>;
|
|
1766
1766
|
/**
|
|
1767
1767
|
* 校验订单的升级
|
|
1768
|
-
* @see https://
|
|
1768
|
+
* @see https://open.dingtalk.com/document/isvapp-server/verification-order-upgrade
|
|
1769
1769
|
*/
|
|
1770
1770
|
validateOrderUpgrade(query: ValidateOrderUpgradeQuery): Promise<ValidateOrderUpgradeResponse>;
|
|
1771
1771
|
/**
|
|
1772
1772
|
* 发布商品
|
|
1773
|
-
* @see https://
|
|
1773
|
+
* @see https://open.dingtalk.com/document/isvapp-server/release-products
|
|
1774
1774
|
*/
|
|
1775
1775
|
releaseCommodity(query: ReleaseCommodityQuery): Promise<ReleaseCommodityResponse>;
|
|
1776
1776
|
/**
|
|
1777
1777
|
* 使商品过期
|
|
1778
|
-
* @see https://
|
|
1778
|
+
* @see https://open.dingtalk.com/document/isvapp-server/make-goods-expire
|
|
1779
1779
|
*/
|
|
1780
1780
|
expireCommodity(query: ExpireCommodityQuery): Promise<ExpireCommodityResponse>;
|
|
1781
1781
|
/**
|
|
1782
1782
|
* 退还商品
|
|
1783
|
-
* @see https://
|
|
1783
|
+
* @see https://open.dingtalk.com/document/isvapp-server/refund-of-goods
|
|
1784
1784
|
*/
|
|
1785
1785
|
refundCommodity(query: RefundCommodityQuery): Promise<RefundCommodityResponse>;
|
|
1786
1786
|
/**
|
|
1787
1787
|
* 搜索表单中指定人员组件的值
|
|
1788
|
-
* @see https://
|
|
1788
|
+
* @see https://open.dingtalk.com/document/app/gets-the-value-of-the-employee-component
|
|
1789
1789
|
*/
|
|
1790
1790
|
searchEmployeeFieldValues(params: SearchEmployeeFieldValuesParams): Promise<SearchEmployeeFieldValuesResponse>;
|
|
1791
1791
|
/**
|
|
1792
1792
|
* 删除序列
|
|
1793
|
-
* @see https://
|
|
1793
|
+
* @see https://open.dingtalk.com/document/isvapp-server/delete-sequence
|
|
1794
1794
|
*/
|
|
1795
1795
|
deleteSequence(query: DeleteSequenceQuery): Promise<void>;
|
|
1796
1796
|
/**
|
|
1797
1797
|
* 新增表单实例
|
|
1798
|
-
* @see https://
|
|
1798
|
+
* @see https://open.dingtalk.com/document/app/save-form-data
|
|
1799
1799
|
*/
|
|
1800
1800
|
saveFormData(params: SaveFormDataParams): Promise<SaveFormDataResponse>;
|
|
1801
1801
|
/**
|
|
1802
1802
|
* 更新表单实例
|
|
1803
|
-
* @see https://
|
|
1803
|
+
* @see https://open.dingtalk.com/document/orgapp/update-form-data
|
|
1804
1804
|
*/
|
|
1805
1805
|
updateFormData(params: UpdateFormDataParams): Promise<void>;
|
|
1806
1806
|
/**
|
|
1807
1807
|
* 根据条件搜索表单实例详情列表,对应原searchFormDatas
|
|
1808
|
-
* @see https://
|
|
1808
|
+
* @see https://open.dingtalk.com/document/app/querying-form-instance-data
|
|
1809
1809
|
*/
|
|
1810
1810
|
searchFormDatas(params: SearchFormDatasParams): Promise<SearchFormDatasResponse>;
|
|
1811
1811
|
/**
|
|
1812
1812
|
* 根据搜索条件获取流程表单实例详情
|
|
1813
|
-
* @see https://
|
|
1813
|
+
* @see https://open.dingtalk.com/document/app/obtain-process-instance
|
|
1814
1814
|
*/
|
|
1815
1815
|
getInstances(query: GetInstancesQuery, params: GetInstancesParams): Promise<GetInstancesResponse>;
|
|
1816
1816
|
/**
|
|
1817
1817
|
* 删除表单实例
|
|
1818
|
-
* @see https://
|
|
1818
|
+
* @see https://open.dingtalk.com/document/app/delete-form-data
|
|
1819
1819
|
*/
|
|
1820
1820
|
deleteFormData(query: DeleteFormDataQuery): Promise<void>;
|
|
1821
1821
|
/**
|
|
1822
1822
|
* 根据实例 ID 获取流程实例详情
|
|
1823
|
-
* @see https://
|
|
1823
|
+
* @see https://open.dingtalk.com/document/app/queries-a-process-instance-based-on-its-id
|
|
1824
1824
|
*/
|
|
1825
1825
|
getInstanceById(id: string, query: GetInstanceByIdQuery): Promise<GetInstanceByIdResponse>;
|
|
1826
1826
|
/**
|
|
1827
1827
|
* 发起新的流程实例
|
|
1828
|
-
* @see https://
|
|
1828
|
+
* @see https://open.dingtalk.com/document/app/initiate-the-approval-process
|
|
1829
1829
|
*/
|
|
1830
1830
|
startInstance(params: StartInstanceParams): Promise<StartInstanceResponse>;
|
|
1831
1831
|
/**
|
|
1832
1832
|
* 根据表单 ID 查询实例详情
|
|
1833
|
-
* @see https://
|
|
1833
|
+
* @see https://open.dingtalk.com/document/app/query-form-data
|
|
1834
1834
|
*/
|
|
1835
1835
|
getFormDataByID(id: string, query: GetFormDataByIDQuery): Promise<GetFormDataByIDResponse>;
|
|
1836
1836
|
}
|
package/lib/bot.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Bot, Context, Quester, Schema } from '@satorijs/satori';
|
|
3
2
|
import { DingtalkMessageEncoder } from './message';
|
|
4
3
|
import { WsClient } from './ws';
|
|
@@ -8,9 +7,9 @@ export declare class DingtalkBot extends Bot<DingtalkBot.Config> {
|
|
|
8
7
|
oldHttp: Quester;
|
|
9
8
|
http: Quester;
|
|
10
9
|
internal: Internal;
|
|
11
|
-
refreshTokenTimer
|
|
10
|
+
private refreshTokenTimer;
|
|
12
11
|
constructor(ctx: Context, config: DingtalkBot.Config);
|
|
13
|
-
|
|
12
|
+
getLogin(): Promise<import("@satorijs/protocol").Login>;
|
|
14
13
|
stop(): Promise<void>;
|
|
15
14
|
token: string;
|
|
16
15
|
refreshToken(): Promise<void>;
|
|
@@ -18,7 +17,7 @@ export declare class DingtalkBot extends Bot<DingtalkBot.Config> {
|
|
|
18
17
|
deleteMessage(channelId: string, messageId: string): Promise<void>;
|
|
19
18
|
}
|
|
20
19
|
export declare namespace DingtalkBot {
|
|
21
|
-
interface Config extends
|
|
20
|
+
interface Config extends WsClient.Config {
|
|
22
21
|
secret: string;
|
|
23
22
|
protocol: string;
|
|
24
23
|
appkey: string;
|
package/lib/http.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Adapter, Context, Logger } from '@satorijs/satori';
|
|
2
2
|
import { DingtalkBot } from './bot';
|
|
3
|
-
export declare class HttpServer extends Adapter
|
|
3
|
+
export declare class HttpServer extends Adapter<DingtalkBot> {
|
|
4
4
|
logger: Logger;
|
|
5
5
|
constructor(ctx: Context, bot: DingtalkBot);
|
|
6
|
-
|
|
6
|
+
connect(bot: DingtalkBot): Promise<void>;
|
|
7
7
|
}
|