@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/oauth2.d.ts
CHANGED
|
@@ -77,37 +77,37 @@ declare module '../internal' {
|
|
|
77
77
|
interface Internal {
|
|
78
78
|
/**
|
|
79
79
|
* 生成jsapi ticket
|
|
80
|
-
* @see https://
|
|
80
|
+
* @see https://open.dingtalk.com/document/isvapp/create-a-jsapi-ticket
|
|
81
81
|
*/
|
|
82
82
|
createJsapiTicket(): Promise<CreateJsapiTicketResponse>;
|
|
83
83
|
/**
|
|
84
84
|
* 生成微应用管理后台accessToken
|
|
85
|
-
* @see https://
|
|
85
|
+
* @see https://open.dingtalk.com/document/isvapp/obtain-the-access_token-of-the-micro-application-background-without-log-on
|
|
86
86
|
*/
|
|
87
87
|
getSsoAccessToken(params: GetSsoAccessTokenParams): Promise<GetSsoAccessTokenResponse>;
|
|
88
88
|
/**
|
|
89
89
|
* 查询个人授权记录
|
|
90
|
-
* @see https://
|
|
90
|
+
* @see https://open.dingtalk.com/document/isvapp/query-individual-authorization-records
|
|
91
91
|
*/
|
|
92
92
|
getPersonalAuthRule(): Promise<GetPersonalAuthRuleResponse>;
|
|
93
93
|
/**
|
|
94
94
|
* 获取企业accessToken(企业内部应用)
|
|
95
|
-
* @see https://
|
|
95
|
+
* @see https://open.dingtalk.com/document/orgapp/obtain-the-access_token-of-an-internal-app
|
|
96
96
|
*/
|
|
97
97
|
getAccessToken(params: GetAccessTokenParams): Promise<GetAccessTokenResponse>;
|
|
98
98
|
/**
|
|
99
99
|
* 获取企业accessToken(应用商店应用)
|
|
100
|
-
* @see https://
|
|
100
|
+
* @see https://open.dingtalk.com/document/isvapp/obtain-the-access_token-of-the-authorized-enterprise
|
|
101
101
|
*/
|
|
102
102
|
getCorpAccessToken(params: GetCorpAccessTokenParams): Promise<GetCorpAccessTokenResponse>;
|
|
103
103
|
/**
|
|
104
104
|
* 获取用户token
|
|
105
|
-
* @see https://
|
|
105
|
+
* @see https://open.dingtalk.com/document/isvapp/obtain-user-token
|
|
106
106
|
*/
|
|
107
107
|
getUserToken(params: GetUserTokenParams): Promise<GetUserTokenResponse>;
|
|
108
108
|
/**
|
|
109
109
|
* 查询微应用后台免登的用户信息
|
|
110
|
-
* @see https://
|
|
110
|
+
* @see https://open.dingtalk.com/document/isvapp/obtains-the-identity-of-an-application-administrator
|
|
111
111
|
*/
|
|
112
112
|
getSsoUserInfo(query: GetSsoUserInfoQuery): Promise<GetSsoUserInfoResponse>;
|
|
113
113
|
}
|
package/lib/api/pedia.d.ts
CHANGED
|
@@ -153,32 +153,32 @@ declare module '../internal' {
|
|
|
153
153
|
interface Internal {
|
|
154
154
|
/**
|
|
155
155
|
* 根据词条主键ID查询当前词条详情
|
|
156
|
-
* @see https://
|
|
156
|
+
* @see https://open.dingtalk.com/document/app/entry-query
|
|
157
157
|
*/
|
|
158
158
|
pediaWordsQuery(query: PediaWordsQueryQuery): Promise<PediaWordsQueryResponse>;
|
|
159
159
|
/**
|
|
160
160
|
* 分页获取企业词条信息
|
|
161
|
-
* @see https://
|
|
161
|
+
* @see https://open.dingtalk.com/document/app/entry-search
|
|
162
162
|
*/
|
|
163
163
|
pediaWordsSearch(params: PediaWordsSearchParams): Promise<PediaWordsSearchResponse>;
|
|
164
164
|
/**
|
|
165
165
|
* 企业百科针对待审核词条进行审核
|
|
166
|
-
* @see https://
|
|
166
|
+
* @see https://open.dingtalk.com/document/app/entry-review
|
|
167
167
|
*/
|
|
168
168
|
pediaWordsApprove(params: PediaWordsApproveParams): Promise<PediaWordsApproveResponse>;
|
|
169
169
|
/**
|
|
170
170
|
* 企业百科针对uuid删除当前词条
|
|
171
|
-
* @see https://
|
|
171
|
+
* @see https://open.dingtalk.com/document/app/entry-delete
|
|
172
172
|
*/
|
|
173
173
|
pediaWordsDelete(query: PediaWordsDeleteQuery): Promise<PediaWordsDeleteResponse>;
|
|
174
174
|
/**
|
|
175
175
|
* 企业百科对当前已经生效词条进行编辑
|
|
176
|
-
* @see https://
|
|
176
|
+
* @see https://open.dingtalk.com/document/app/update-entry
|
|
177
177
|
*/
|
|
178
178
|
pediaWordsUpdate(params: PediaWordsUpdateParams): Promise<PediaWordsUpdateResponse>;
|
|
179
179
|
/**
|
|
180
180
|
* 企业百科增加当前企业词条信息
|
|
181
|
-
* @see https://
|
|
181
|
+
* @see https://open.dingtalk.com/document/app/new-entry
|
|
182
182
|
*/
|
|
183
183
|
pediaWordsAdd(params: PediaWordsAddParams): Promise<PediaWordsAddResponse>;
|
|
184
184
|
}
|
package/lib/api/project.d.ts
CHANGED
|
@@ -866,252 +866,252 @@ declare module '../internal' {
|
|
|
866
866
|
interface Internal {
|
|
867
867
|
/**
|
|
868
868
|
* 创建或更新项目概览中自定义字段值
|
|
869
|
-
* @see https://
|
|
869
|
+
* @see https://open.dingtalk.com/document/orgapp/create-project-custom-fields
|
|
870
870
|
*/
|
|
871
871
|
createProjectCustomfieldStatus(userId: string, projectId: string, params: CreateProjectCustomfieldStatusParams): Promise<CreateProjectCustomfieldStatusResponse>;
|
|
872
872
|
/**
|
|
873
873
|
* 更新任务标题
|
|
874
|
-
* @see https://
|
|
874
|
+
* @see https://open.dingtalk.com/document/orgapp/update-task-content
|
|
875
875
|
*/
|
|
876
876
|
updateTaskContent(userId: string, taskId: string, params: UpdateTaskContentParams): Promise<UpdateTaskContentResponse>;
|
|
877
877
|
/**
|
|
878
878
|
* 更新任务备注
|
|
879
|
-
* @see https://
|
|
879
|
+
* @see https://open.dingtalk.com/document/orgapp/update-task-notes
|
|
880
880
|
*/
|
|
881
881
|
updateTaskNote(userId: string, taskId: string, params: UpdateTaskNoteParams): Promise<UpdateTaskNoteResponse>;
|
|
882
882
|
/**
|
|
883
883
|
* 更新任务参与者
|
|
884
|
-
* @see https://
|
|
884
|
+
* @see https://open.dingtalk.com/document/orgapp/update-task-participants
|
|
885
885
|
*/
|
|
886
886
|
updateTaskInvolvemembers(userId: string, taskId: string, params: UpdateTaskInvolvemembersParams): Promise<UpdateTaskInvolvemembersResponse>;
|
|
887
887
|
/**
|
|
888
888
|
* 更新任务执行者
|
|
889
|
-
* @see https://
|
|
889
|
+
* @see https://open.dingtalk.com/document/orgapp/update-task-performer
|
|
890
890
|
*/
|
|
891
891
|
updateTaskExecutor(userId: string, taskId: string, params: UpdateTaskExecutorParams): Promise<UpdateTaskExecutorResponse>;
|
|
892
892
|
/**
|
|
893
893
|
* 更新任务优先级
|
|
894
|
-
* @see https://
|
|
894
|
+
* @see https://open.dingtalk.com/document/orgapp/update-task-priority
|
|
895
895
|
*/
|
|
896
896
|
updateTaskPriority(userId: string, taskId: string, params: UpdateTaskPriorityParams): Promise<UpdateTaskPriorityResponse>;
|
|
897
897
|
/**
|
|
898
898
|
* 更新任务截止时间
|
|
899
|
-
* @see https://
|
|
899
|
+
* @see https://open.dingtalk.com/document/orgapp/update-task-deadline
|
|
900
900
|
*/
|
|
901
901
|
updateTaskDueDate(userId: string, taskId: string, params: UpdateTaskDueDateParams): Promise<UpdateTaskDueDateResponse>;
|
|
902
902
|
/**
|
|
903
903
|
* 获取任务详情
|
|
904
|
-
* @see https://
|
|
904
|
+
* @see https://open.dingtalk.com/document/orgapp/get-task-details
|
|
905
905
|
*/
|
|
906
906
|
getTaskByIds(userId: string, query: GetTaskByIdsQuery): Promise<GetTaskByIdsResponse>;
|
|
907
907
|
/**
|
|
908
908
|
* 任务迁移至回收站
|
|
909
|
-
* @see https://
|
|
909
|
+
* @see https://open.dingtalk.com/document/orgapp/archive-tasks
|
|
910
910
|
*/
|
|
911
911
|
archiveTask(userId: string, taskId: string): Promise<ArchiveTaskResponse>;
|
|
912
912
|
/**
|
|
913
913
|
* 查询用户任务列表
|
|
914
|
-
* @see https://
|
|
914
|
+
* @see https://open.dingtalk.com/document/orgapp/querying-user-tasks
|
|
915
915
|
*/
|
|
916
916
|
searchUserTask(userId: string, query: SearchUserTaskQuery): Promise<SearchUserTaskResponse>;
|
|
917
917
|
/**
|
|
918
918
|
* 获取任务列表
|
|
919
|
-
* @see https://
|
|
919
|
+
* @see https://open.dingtalk.com/document/orgapp/get-task-list
|
|
920
920
|
*/
|
|
921
921
|
seachTaskStage(userId: string, projectId: string, query: SeachTaskStageQuery): Promise<SeachTaskStageResponse>;
|
|
922
922
|
/**
|
|
923
923
|
* 查询任务分组
|
|
924
|
-
* @see https://
|
|
924
|
+
* @see https://open.dingtalk.com/document/orgapp/query-task-grouping
|
|
925
925
|
*/
|
|
926
926
|
searchTaskList(userId: string, projectId: string, query: SearchTaskListQuery): Promise<SearchTaskListResponse>;
|
|
927
927
|
/**
|
|
928
928
|
* 查询任务工作流
|
|
929
|
-
* @see https://
|
|
929
|
+
* @see https://open.dingtalk.com/document/orgapp/query-task-workflow
|
|
930
930
|
*/
|
|
931
931
|
searchTaskFlow(userId: string, projectId: string, query: SearchTaskFlowQuery): Promise<SearchTaskFlowResponse>;
|
|
932
932
|
/**
|
|
933
933
|
* 查询项目状态
|
|
934
|
-
* @see https://
|
|
934
|
+
* @see https://open.dingtalk.com/document/orgapp/query-project-status
|
|
935
935
|
*/
|
|
936
936
|
getProjectStatusList(userId: string, projectId: string): Promise<GetProjectStatusListResponse>;
|
|
937
937
|
/**
|
|
938
938
|
* 删除项目成员
|
|
939
|
-
* @see https://
|
|
939
|
+
* @see https://open.dingtalk.com/document/orgapp/delete-project-members
|
|
940
940
|
*/
|
|
941
941
|
deleteProjectMember(userId: string, projectId: string, params: DeleteProjectMemberParams): Promise<DeleteProjectMemberResponse>;
|
|
942
942
|
/**
|
|
943
943
|
* 获取项目成员
|
|
944
|
-
* @see https://
|
|
944
|
+
* @see https://open.dingtalk.com/document/orgapp/get-project-members
|
|
945
945
|
*/
|
|
946
946
|
getProjectMemebers(userId: string, projectId: string, query: GetProjectMemebersQuery): Promise<GetProjectMemebersResponse>;
|
|
947
947
|
/**
|
|
948
948
|
* 查询项目
|
|
949
|
-
* @see https://
|
|
949
|
+
* @see https://open.dingtalk.com/document/orgapp/query-enterprise-all-projects
|
|
950
950
|
*/
|
|
951
951
|
queryProject(userId: string, query: QueryProjectQuery): Promise<QueryProjectResponse>;
|
|
952
952
|
/**
|
|
953
953
|
* 搜索任务工作流状态
|
|
954
|
-
* @see https://
|
|
954
|
+
* @see https://open.dingtalk.com/document/isvapp/search-task-workflow-status
|
|
955
955
|
*/
|
|
956
956
|
searchTaskflowStatus(userId: string, projectId: string, query: SearchTaskflowStatusQuery): Promise<SearchTaskflowStatusResponse>;
|
|
957
957
|
/**
|
|
958
958
|
* 更新任务工作流状态
|
|
959
|
-
* @see https://
|
|
959
|
+
* @see https://open.dingtalk.com/document/isvapp/update-task-workflow-status
|
|
960
960
|
*/
|
|
961
961
|
updateTaskTaskflowstatus(userId: string, taskId: string, params: UpdateTaskTaskflowstatusParams): Promise<UpdateTaskTaskflowstatusResponse>;
|
|
962
962
|
/**
|
|
963
963
|
* 更新任务开始时间
|
|
964
|
-
* @see https://
|
|
964
|
+
* @see https://open.dingtalk.com/document/orgapp/update-task-start-time
|
|
965
965
|
*/
|
|
966
966
|
updateTaskStartdate(userId: string, taskId: string, params: UpdateTaskStartdateParams): Promise<UpdateTaskStartdateResponse>;
|
|
967
967
|
/**
|
|
968
968
|
* 创建项目
|
|
969
|
-
* @see https://
|
|
969
|
+
* @see https://open.dingtalk.com/document/orgapp/create-project
|
|
970
970
|
*/
|
|
971
971
|
createProject(userId: string, params: CreateProjectParams): Promise<CreateProjectResponse>;
|
|
972
972
|
/**
|
|
973
973
|
* 获取用户加入的项目
|
|
974
|
-
* @see https://
|
|
974
|
+
* @see https://open.dingtalk.com/document/orgapp/get-projects-joined-by-users
|
|
975
975
|
*/
|
|
976
976
|
getUserJoinedProject(userId: string, query: GetUserJoinedProjectQuery): Promise<GetUserJoinedProjectResponse>;
|
|
977
977
|
/**
|
|
978
978
|
* 项目放入回收站
|
|
979
|
-
* @see https://
|
|
979
|
+
* @see https://open.dingtalk.com/document/orgapp/items-in-recycle-bin
|
|
980
980
|
*/
|
|
981
981
|
archiveProject(userId: string, projectId: string): Promise<ArchiveProjectResponse>;
|
|
982
982
|
/**
|
|
983
983
|
* 恢复项目归档
|
|
984
|
-
* @see https://
|
|
984
|
+
* @see https://open.dingtalk.com/document/orgapp/cancel-project-archiving
|
|
985
985
|
*/
|
|
986
986
|
unSuspendProject(projectId: string, userId: string): Promise<UnSuspendProjectResponse>;
|
|
987
987
|
/**
|
|
988
988
|
* 归档项目
|
|
989
|
-
* @see https://
|
|
989
|
+
* @see https://open.dingtalk.com/document/orgapp/archiving-project
|
|
990
990
|
*/
|
|
991
991
|
suspendProject(projectId: string, userId: string): Promise<SuspendProjectResponse>;
|
|
992
992
|
/**
|
|
993
993
|
* 查询项目中的任务
|
|
994
|
-
* @see https://
|
|
994
|
+
* @see https://open.dingtalk.com/document/isvapp/query-tasks-in-a-project
|
|
995
995
|
*/
|
|
996
996
|
queryTaskOfProject(userId: string, projectId: string, query: QueryTaskOfProjectQuery): Promise<QueryTaskOfProjectResponse>;
|
|
997
997
|
/**
|
|
998
998
|
* 录入实际工时接口
|
|
999
|
-
* @see https://
|
|
999
|
+
* @see https://open.dingtalk.com/document/isvapp/create-actual-work
|
|
1000
1000
|
*/
|
|
1001
1001
|
createWorkTime(userId: string, query: CreateWorkTimeQuery, params: CreateWorkTimeParams): Promise<CreateWorkTimeResponse>;
|
|
1002
1002
|
/**
|
|
1003
1003
|
* 录入计划工时
|
|
1004
|
-
* @see https://
|
|
1004
|
+
* @see https://open.dingtalk.com/document/isvapp/create-planned-work
|
|
1005
1005
|
*/
|
|
1006
1006
|
createPlanTime(userId: string, query: CreatePlanTimeQuery, params: CreatePlanTimeParams): Promise<CreatePlanTimeResponse>;
|
|
1007
1007
|
/**
|
|
1008
1008
|
* 更新任务自定义字段的值
|
|
1009
|
-
* @see https://
|
|
1009
|
+
* @see https://open.dingtalk.com/document/isvapp/update-task-custom-field-value
|
|
1010
1010
|
*/
|
|
1011
1011
|
updateCustomfieldValue(userId: string, taskId: string, params: UpdateCustomfieldValueParams): Promise<UpdateCustomfieldValueResponse>;
|
|
1012
1012
|
/**
|
|
1013
1013
|
* 根据钉钉UserId获取Teambition用户Id
|
|
1014
|
-
* @see https://
|
|
1014
|
+
* @see https://open.dingtalk.com/document/isvapp/obtain-dingtalk-teambition-user-id-based-on-userid
|
|
1015
1015
|
*/
|
|
1016
1016
|
getTbUserIdByStaffId(query: GetTbUserIdByStaffIdQuery): Promise<GetTbUserIdByStaffIdResponse>;
|
|
1017
1017
|
/**
|
|
1018
1018
|
* 获取Teambition企业Id
|
|
1019
|
-
* @see https://
|
|
1019
|
+
* @see https://open.dingtalk.com/document/isvapp/obtain-the-teambition-enterprise-id
|
|
1020
1020
|
*/
|
|
1021
1021
|
getTbOrgIdByDingOrgId(query: GetTbOrgIdByDingOrgIdQuery): Promise<GetTbOrgIdByDingOrgIdResponse>;
|
|
1022
1022
|
/**
|
|
1023
1023
|
* 更新项目的分组
|
|
1024
|
-
* @see https://
|
|
1024
|
+
* @see https://open.dingtalk.com/document/isvapp/update-project-grouping
|
|
1025
1025
|
*/
|
|
1026
1026
|
updateProjectGroup(userId: string, projectId: string, params: UpdateProjectGroupParams): Promise<UpdateProjectGroupResponse>;
|
|
1027
1027
|
/**
|
|
1028
1028
|
* 增加项目成员
|
|
1029
|
-
* @see https://
|
|
1029
|
+
* @see https://open.dingtalk.com/document/isvapp/add-project-members
|
|
1030
1030
|
*/
|
|
1031
1031
|
addProjectMember(userId: string, projectId: string, params: AddProjectMemberParams): Promise<AddProjectMemberResponse>;
|
|
1032
1032
|
/**
|
|
1033
1033
|
* 根据项目模板创建项目
|
|
1034
|
-
* @see https://
|
|
1034
|
+
* @see https://open.dingtalk.com/document/isvapp/create-a-project-from-a-project-template
|
|
1035
1035
|
*/
|
|
1036
1036
|
createProjectByTemplate(userId: string, params: CreateProjectByTemplateParams): Promise<CreateProjectByTemplateResponse>;
|
|
1037
1037
|
/**
|
|
1038
1038
|
* 查询可见的项目分组
|
|
1039
|
-
* @see https://
|
|
1039
|
+
* @see https://open.dingtalk.com/document/isvapp/query-available-project-groups
|
|
1040
1040
|
*/
|
|
1041
1041
|
getProjectGroup(userId: string, query: GetProjectGroupQuery): Promise<GetProjectGroupResponse>;
|
|
1042
1042
|
/**
|
|
1043
1043
|
* 按项目模板名字搜索企业自定义模板
|
|
1044
|
-
* @see https://
|
|
1044
|
+
* @see https://open.dingtalk.com/document/isvapp/search-for-enterprise-custom-templates-by-project-template-name
|
|
1045
1045
|
*/
|
|
1046
1046
|
searchProjectTemplate(userId: string, query: SearchProjectTemplateQuery): Promise<SearchProjectTemplateResponse>;
|
|
1047
1047
|
/**
|
|
1048
1048
|
* 创建任务关联对象
|
|
1049
|
-
* @see https://
|
|
1049
|
+
* @see https://open.dingtalk.com/document/isvapp/create-a-linked-object-associated-with-a-task
|
|
1050
1050
|
*/
|
|
1051
1051
|
createTaskObjectLink(userId: string, taskId: string, params: CreateTaskObjectLinkParams): Promise<CreateTaskObjectLinkResponse>;
|
|
1052
1052
|
/**
|
|
1053
1053
|
* 创建项目任务
|
|
1054
|
-
* @see https://
|
|
1054
|
+
* @see https://open.dingtalk.com/document/isvapp/create-a-project-task
|
|
1055
1055
|
*/
|
|
1056
1056
|
createTask(userId: string, params: CreateTaskParams): Promise<CreateTaskResponse>;
|
|
1057
1057
|
/**
|
|
1058
1058
|
* 批量获取任务详情
|
|
1059
|
-
* @see https://
|
|
1059
|
+
* @see https://open.dingtalk.com/document/isvapp/obtains-details-about-multiple-free-tasks-isv
|
|
1060
1060
|
*/
|
|
1061
1061
|
getOrganizatioTaskByIds(userId: string, query: GetOrganizatioTaskByIdsQuery): Promise<GetOrganizatioTaskByIdsResponse>;
|
|
1062
1062
|
/**
|
|
1063
1063
|
* 更新自由任务优先级
|
|
1064
|
-
* @see https://
|
|
1064
|
+
* @see https://open.dingtalk.com/document/isvapp/update-the-priority-of-a-free-migration-job
|
|
1065
1065
|
*/
|
|
1066
1066
|
updateOrganizationTaskPriority(taskId: string, userId: string, params: UpdateOrganizationTaskPriorityParams): Promise<UpdateOrganizationTaskPriorityResponse>;
|
|
1067
1067
|
/**
|
|
1068
1068
|
* 更改自由任务备注
|
|
1069
|
-
* @see https://
|
|
1069
|
+
* @see https://open.dingtalk.com/document/isvapp/update-free-task-notes-isv
|
|
1070
1070
|
*/
|
|
1071
1071
|
updateOrganizationTaskNote(taskId: string, userId: string, params: UpdateOrganizationTaskNoteParams): Promise<UpdateOrganizationTaskNoteResponse>;
|
|
1072
1072
|
/**
|
|
1073
1073
|
* 更新自由任务参与者
|
|
1074
|
-
* @see https://
|
|
1074
|
+
* @see https://open.dingtalk.com/document/isvapp/add-or-remove-participants-of-free-tasks
|
|
1075
1075
|
*/
|
|
1076
1076
|
updateOrganizationTaskInvolveMembers(taskId: string, userId: string, params: UpdateOrganizationTaskInvolveMembersParams): Promise<UpdateOrganizationTaskInvolveMembersResponse>;
|
|
1077
1077
|
/**
|
|
1078
1078
|
* 更改自由任务执行者
|
|
1079
|
-
* @see https://
|
|
1079
|
+
* @see https://open.dingtalk.com/document/isvapp/update-free-task-executor
|
|
1080
1080
|
*/
|
|
1081
1081
|
updateOrganizationTaskExecutor(taskId: string, userId: string, params: UpdateOrganizationTaskExecutorParams): Promise<UpdateOrganizationTaskExecutorResponse>;
|
|
1082
1082
|
/**
|
|
1083
1083
|
* 更新自由任务截止时间
|
|
1084
|
-
* @see https://
|
|
1084
|
+
* @see https://open.dingtalk.com/document/isvapp/update-free-task-deadline
|
|
1085
1085
|
*/
|
|
1086
1086
|
updateOrganizationTaskDueDate(taskId: string, userId: string, params: UpdateOrganizationTaskDueDateParams): Promise<UpdateOrganizationTaskDueDateResponse>;
|
|
1087
1087
|
/**
|
|
1088
1088
|
* 更改自由任务标题
|
|
1089
|
-
* @see https://
|
|
1089
|
+
* @see https://open.dingtalk.com/document/isvapp/update-free-task-title
|
|
1090
1090
|
*/
|
|
1091
1091
|
updateOrganizationTaskContent(taskId: string, userId: string, params: UpdateOrganizationTaskContentParams): Promise<UpdateOrganizationTaskContentResponse>;
|
|
1092
1092
|
/**
|
|
1093
1093
|
* 更改自由任务状态
|
|
1094
|
-
* @see https://
|
|
1094
|
+
* @see https://open.dingtalk.com/document/isvapp/update-free-task-status
|
|
1095
1095
|
*/
|
|
1096
1096
|
updateOrganizationTaskStatus(taskId: string, userId: string, params: UpdateOrganizationTaskStatusParams): Promise<UpdateOrganizationTaskStatusResponse>;
|
|
1097
1097
|
/**
|
|
1098
1098
|
* 获取企业优先级列表
|
|
1099
|
-
* @see https://
|
|
1099
|
+
* @see https://open.dingtalk.com/document/isvapp/query-a-priority-list-isv
|
|
1100
1100
|
*/
|
|
1101
1101
|
getOrganizationPriorityList(userId: string): Promise<GetOrganizationPriorityListResponse>;
|
|
1102
1102
|
/**
|
|
1103
1103
|
* 获取自由任务详情
|
|
1104
|
-
* @see https://
|
|
1104
|
+
* @see https://open.dingtalk.com/document/isvapp/queries-free-task-details-isv
|
|
1105
1105
|
*/
|
|
1106
1106
|
getOrganizationTask(taskId: string, userId: string): Promise<GetOrganizationTaskResponse>;
|
|
1107
1107
|
/**
|
|
1108
1108
|
* 删除任务
|
|
1109
|
-
* @see https://
|
|
1109
|
+
* @see https://open.dingtalk.com/document/orgapp/delete-task
|
|
1110
1110
|
*/
|
|
1111
1111
|
deleteTask(userId: string, taskId: string): Promise<DeleteTaskResponse>;
|
|
1112
1112
|
/**
|
|
1113
1113
|
* 创建自由任务
|
|
1114
|
-
* @see https://
|
|
1114
|
+
* @see https://open.dingtalk.com/document/isvapp/create-a-free-task-isv
|
|
1115
1115
|
*/
|
|
1116
1116
|
createOrganizationTask(userId: string, params: CreateOrganizationTaskParams): Promise<CreateOrganizationTaskResponse>;
|
|
1117
1117
|
}
|
package/lib/api/resident.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export interface AddPointQuery {
|
|
|
3
3
|
isCircle: unknown;
|
|
4
4
|
/** 加减积分的唯一幂等标志,由调用方自己生成。 */
|
|
5
5
|
uuid: string;
|
|
6
|
-
/** 用户userid,可以调用[通过免登码获取用户信息](https://
|
|
6
|
+
/** 用户userid,可以调用[通过免登码获取用户信息](https://open.dingtalk.com/document/app/obtain-the-userid-of-a-user-by-using-the-log-free)接口获取。 */
|
|
7
7
|
userId: string;
|
|
8
8
|
/** 规则代码。可以为空。 */
|
|
9
9
|
ruleCode?: string;
|
|
@@ -79,27 +79,27 @@ declare module '../internal' {
|
|
|
79
79
|
interface Internal {
|
|
80
80
|
/**
|
|
81
81
|
* 增加或减少居民积分
|
|
82
|
-
* @see https://
|
|
82
|
+
* @see https://open.dingtalk.com/document/isvapp/increase-or-decrease-resident-points
|
|
83
83
|
*/
|
|
84
84
|
addPoint(query: AddPointQuery): Promise<void>;
|
|
85
85
|
/**
|
|
86
86
|
* 查询数字区县居民积分流水
|
|
87
|
-
* @see https://
|
|
87
|
+
* @see https://open.dingtalk.com/document/isvapp/query-the-integral-flow-records-by-page
|
|
88
88
|
*/
|
|
89
89
|
pagePointHistory(query: PagePointHistoryQuery): Promise<PagePointHistoryResponse>;
|
|
90
90
|
/**
|
|
91
91
|
* 查询组织维度配置的的积分规则
|
|
92
|
-
* @see https://
|
|
92
|
+
* @see https://open.dingtalk.com/document/isvapp/query-all-credit-rules
|
|
93
93
|
*/
|
|
94
94
|
listPointRules(query: ListPointRulesQuery): Promise<ListPointRulesResponse>;
|
|
95
95
|
/**
|
|
96
96
|
* 获取行业角色下的用户列表
|
|
97
|
-
* @see https://
|
|
97
|
+
* @see https://open.dingtalk.com/document/isvapp/obtains-a-list-of-users-under-an-industry-role
|
|
98
98
|
*/
|
|
99
99
|
listIndustryRoleUsers(query: ListIndustryRoleUsersQuery): Promise<ListIndustryRoleUsersResponse>;
|
|
100
100
|
/**
|
|
101
101
|
* 获取用户所在的行业角色信息
|
|
102
|
-
* @see https://
|
|
102
|
+
* @see https://open.dingtalk.com/document/isvapp/obtains-information-about-the-industry-role-to-which-the-user
|
|
103
103
|
*/
|
|
104
104
|
listUserIndustryRoles(query: ListUserIndustryRolesQuery): Promise<ListUserIndustryRolesResponse>;
|
|
105
105
|
}
|
package/lib/api/robot.d.ts
CHANGED
|
@@ -183,72 +183,72 @@ declare module '../internal' {
|
|
|
183
183
|
interface Internal {
|
|
184
184
|
/**
|
|
185
185
|
* 查询群内的机器人列表
|
|
186
|
-
* @see https://
|
|
186
|
+
* @see https://open.dingtalk.com/document/orgapp/obtain-the-list-of-robots-in-the-group
|
|
187
187
|
*/
|
|
188
188
|
getBotListInGroup(params: GetBotListInGroupParams): Promise<GetBotListInGroupResponse>;
|
|
189
189
|
/**
|
|
190
190
|
* 获取机器人消息中文件下载链接
|
|
191
|
-
* @see https://
|
|
191
|
+
* @see https://open.dingtalk.com/document/isvapp/download-the-file-content-of-the-robot-receiving-message
|
|
192
192
|
*/
|
|
193
193
|
robotMessageFileDownload(params: RobotMessageFileDownloadParams): Promise<RobotMessageFileDownloadResponse>;
|
|
194
194
|
/**
|
|
195
195
|
* 清空单聊机器人快捷入口
|
|
196
|
-
* @see https://
|
|
196
|
+
* @see https://open.dingtalk.com/document/orgapp/clear-single-chat-robot-quick-entry
|
|
197
197
|
*/
|
|
198
198
|
clearRobotPlugin(params: ClearRobotPluginParams): Promise<ClearRobotPluginResponse>;
|
|
199
199
|
/**
|
|
200
200
|
* 设置单聊机器人快捷入口
|
|
201
|
-
* @see https://
|
|
201
|
+
* @see https://open.dingtalk.com/document/orgapp/set-robot-quick-entrance
|
|
202
202
|
*/
|
|
203
203
|
setRobotPlugin(params: SetRobotPluginParams): Promise<SetRobotPluginResponse>;
|
|
204
204
|
/**
|
|
205
205
|
* 查询单聊机器人快捷入口
|
|
206
|
-
* @see https://
|
|
206
|
+
* @see https://open.dingtalk.com/document/orgapp/quick-entrance-of-inquiry-single-chat-robot
|
|
207
207
|
*/
|
|
208
208
|
queryRobotPlugin(params: QueryRobotPluginParams): Promise<QueryRobotPluginResponse>;
|
|
209
209
|
/**
|
|
210
210
|
* 企业机器人撤回内部群消息
|
|
211
|
-
* @see https://
|
|
211
|
+
* @see https://open.dingtalk.com/document/orgapp/enterprise-chatbot-withdraws-internal-group-messages
|
|
212
212
|
*/
|
|
213
213
|
orgGroupRecall(params: OrgGroupRecallParams): Promise<OrgGroupRecallResponse>;
|
|
214
214
|
/**
|
|
215
215
|
* 查询企业机器人群聊消息用户已读状态
|
|
216
|
-
* @see https://
|
|
216
|
+
* @see https://open.dingtalk.com/document/orgapp/chatbot-queries-the-read-status-of-a-message
|
|
217
217
|
*/
|
|
218
218
|
orgGroupQuery(params: OrgGroupQueryParams): Promise<OrgGroupQueryResponse>;
|
|
219
219
|
/**
|
|
220
220
|
* 机器人发送群聊消息
|
|
221
|
-
* @see https://
|
|
221
|
+
* @see https://open.dingtalk.com/document/orgapp/the-robot-sends-a-group-message
|
|
222
222
|
*/
|
|
223
223
|
orgGroupSend(params: OrgGroupSendParams): Promise<OrgGroupSendResponse>;
|
|
224
224
|
/**
|
|
225
225
|
* 批量撤回人与机器人会话中机器人消息
|
|
226
|
-
* @see https://
|
|
226
|
+
* @see https://open.dingtalk.com/document/orgapp/batch-message-recall-chat
|
|
227
227
|
*/
|
|
228
228
|
batchRecallOTO(params: BatchRecallOTOParams): Promise<BatchRecallOTOResponse>;
|
|
229
229
|
/**
|
|
230
230
|
* 批量查询人与机器人会话机器人消息是否已读
|
|
231
|
-
* @see https://
|
|
231
|
+
* @see https://open.dingtalk.com/document/orgapp/chatbot-batch-query-the-read-status-of-messages
|
|
232
232
|
*/
|
|
233
233
|
batchOTOQuery(query: BatchOTOQueryQuery): Promise<BatchOTOQueryResponse>;
|
|
234
234
|
/**
|
|
235
235
|
* 批量发送人与机器人会话中机器人消息
|
|
236
|
-
* @see https://
|
|
236
|
+
* @see https://open.dingtalk.com/document/orgapp/chatbots-send-one-on-one-chat-messages-in-batches
|
|
237
237
|
*/
|
|
238
238
|
batchSendOTO(params: BatchSendOTOParams): Promise<BatchSendOTOResponse>;
|
|
239
239
|
/**
|
|
240
240
|
* 人与人会话中机器人发送普通消息
|
|
241
|
-
* @see https://
|
|
241
|
+
* @see https://open.dingtalk.com/document/orgapp/the-robot-sends-ordinary-messages-in-a-person-to-person-conversation
|
|
242
242
|
*/
|
|
243
243
|
privateChatSend(params: PrivateChatSendParams): Promise<PrivateChatSendResponse>;
|
|
244
244
|
/**
|
|
245
245
|
* 查询人与人会话中机器人已读消息
|
|
246
|
-
* @see https://
|
|
246
|
+
* @see https://open.dingtalk.com/document/orgapp/query-the-read-list-of-robot-messages-in-person-to-person-conversations
|
|
247
247
|
*/
|
|
248
248
|
privateChatQuery(params: PrivateChatQueryParams): Promise<PrivateChatQueryResponse>;
|
|
249
249
|
/**
|
|
250
250
|
* 批量撤回人与人会话中机器人消息
|
|
251
|
-
* @see https://
|
|
251
|
+
* @see https://open.dingtalk.com/document/orgapp/batch-withdrawal-of-single-chat-robot-messages-in-person-to-person-conversations
|
|
252
252
|
*/
|
|
253
253
|
batchRecallPrivateChat(params: BatchRecallPrivateChatParams): Promise<BatchRecallPrivateChatResponse>;
|
|
254
254
|
}
|
package/lib/api/rooms.d.ts
CHANGED
|
@@ -193,62 +193,62 @@ declare module '../internal' {
|
|
|
193
193
|
interface Internal {
|
|
194
194
|
/**
|
|
195
195
|
* 查询设备属性
|
|
196
|
-
* @see https://
|
|
196
|
+
* @see https://open.dingtalk.com/document/app/querying-video-conference-device-attribute-information
|
|
197
197
|
*/
|
|
198
198
|
queryDeviceProperties(query: QueryDevicePropertiesQuery, params: QueryDevicePropertiesParams): Promise<QueryDevicePropertiesResponse>;
|
|
199
199
|
/**
|
|
200
200
|
* 查询设备信息
|
|
201
|
-
* @see https://
|
|
201
|
+
* @see https://open.dingtalk.com/document/app/querying-video-conference-device-information
|
|
202
202
|
*/
|
|
203
203
|
queryMeetingRoomDevice(query: QueryMeetingRoomDeviceQuery): Promise<QueryMeetingRoomDeviceResponse>;
|
|
204
204
|
/**
|
|
205
205
|
* 删除会议室分组
|
|
206
|
-
* @see https://
|
|
206
|
+
* @see https://open.dingtalk.com/document/isvapp/delete-a-conference-room-group
|
|
207
207
|
*/
|
|
208
208
|
deleteMeetingRoomGroup(groupId: number, query: DeleteMeetingRoomGroupQuery): Promise<DeleteMeetingRoomGroupResponse>;
|
|
209
209
|
/**
|
|
210
210
|
* 更新会议室分组信息
|
|
211
|
-
* @see https://
|
|
211
|
+
* @see https://open.dingtalk.com/document/isvapp/update-meeting-room-group-information
|
|
212
212
|
*/
|
|
213
213
|
updateMeetingRoomGroup(params: UpdateMeetingRoomGroupParams): Promise<UpdateMeetingRoomGroupResponse>;
|
|
214
214
|
/**
|
|
215
215
|
* 查询会议室分组列表
|
|
216
|
-
* @see https://
|
|
216
|
+
* @see https://open.dingtalk.com/document/isvapp/query-meeting-room-groups
|
|
217
217
|
*/
|
|
218
218
|
queryMeetingRoomGroupList(query: QueryMeetingRoomGroupListQuery): Promise<QueryMeetingRoomGroupListResponse>;
|
|
219
219
|
/**
|
|
220
220
|
* 查询会议室分组信息
|
|
221
|
-
* @see https://
|
|
221
|
+
* @see https://open.dingtalk.com/document/isvapp/query-meeting-room-group-information
|
|
222
222
|
*/
|
|
223
223
|
queryMeetingRoomGroup(groupId: number, query: QueryMeetingRoomGroupQuery): Promise<QueryMeetingRoomGroupResponse>;
|
|
224
224
|
/**
|
|
225
225
|
* 创建会议室分组
|
|
226
|
-
* @see https://
|
|
226
|
+
* @see https://open.dingtalk.com/document/isvapp/create-a-meeting-room-group
|
|
227
227
|
*/
|
|
228
228
|
createMeetingRoomGroup(params: CreateMeetingRoomGroupParams): Promise<CreateMeetingRoomGroupResponse>;
|
|
229
229
|
/**
|
|
230
230
|
* 删除会议室
|
|
231
|
-
* @see https://
|
|
231
|
+
* @see https://open.dingtalk.com/document/isvapp/delete-a-meeting-room
|
|
232
232
|
*/
|
|
233
233
|
deleteMeetingRoom(roomId: string, query: DeleteMeetingRoomQuery): Promise<DeleteMeetingRoomResponse>;
|
|
234
234
|
/**
|
|
235
235
|
* 查询会议室列表
|
|
236
|
-
* @see https://
|
|
236
|
+
* @see https://open.dingtalk.com/document/isvapp/check-the-meeting-room-list
|
|
237
237
|
*/
|
|
238
238
|
queryMeetingRoomList(query: QueryMeetingRoomListQuery): Promise<QueryMeetingRoomListResponse>;
|
|
239
239
|
/**
|
|
240
240
|
* 更新会议室信息
|
|
241
|
-
* @see https://
|
|
241
|
+
* @see https://open.dingtalk.com/document/isvapp/update-meeting-room-information
|
|
242
242
|
*/
|
|
243
243
|
updateMeetingRoom(params: UpdateMeetingRoomParams): Promise<UpdateMeetingRoomResponse>;
|
|
244
244
|
/**
|
|
245
245
|
* 查询会议室详情
|
|
246
|
-
* @see https://
|
|
246
|
+
* @see https://open.dingtalk.com/document/isvapp/check-meeting-room-details
|
|
247
247
|
*/
|
|
248
248
|
queryMeetingRoom(roomId: string, query: QueryMeetingRoomQuery): Promise<QueryMeetingRoomResponse>;
|
|
249
249
|
/**
|
|
250
250
|
* 创建智能会议室
|
|
251
|
-
* @see https://
|
|
251
|
+
* @see https://open.dingtalk.com/document/isvapp/create-a-meeting-room
|
|
252
252
|
*/
|
|
253
253
|
createMeetingRoom(params: CreateMeetingRoomParams): Promise<CreateMeetingRoomResponse>;
|
|
254
254
|
}
|