@satorijs/adapter-dingtalk 2.0.3 → 2.0.4
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/http.d.ts +3 -2
- package/lib/index.js +10 -8
- package/lib/index.js.map +1 -2
- package/package.json +8 -4
- package/src/api/.eslintrc.yml +2 -0
- package/src/api/alitrip.ts +467 -0
- package/src/api/attendance.ts +81 -0
- package/src/api/badge.ts +285 -0
- package/src/api/blackboard.ts +28 -0
- package/src/api/calendar.ts +817 -0
- package/src/api/card.ts +215 -0
- package/src/api/conference.ts +561 -0
- package/src/api/connector.ts +97 -0
- package/src/api/contact.ts +56 -0
- package/src/api/convFile.ts +166 -0
- package/src/api/crm.ts +830 -0
- package/src/api/customerService.ts +156 -0
- package/src/api/datacenter.ts +672 -0
- package/src/api/devicemng.ts +202 -0
- package/src/api/diot.ts +19 -0
- package/src/api/doc.ts +232 -0
- package/src/api/drive.ts +109 -0
- package/src/api/edu.ts +30 -0
- package/src/api/esign.ts +44 -0
- package/src/api/exclusive.ts +372 -0
- package/src/api/h3yun.ts +537 -0
- package/src/api/hrm.ts +272 -0
- package/src/api/im.ts +978 -0
- package/src/api/industry.ts +153 -0
- package/src/api/jzcrm.ts +304 -0
- package/src/api/link.ts +94 -0
- package/src/api/live.ts +162 -0
- package/src/api/microApp.ts +309 -0
- package/src/api/oapi.ts +4083 -0
- package/src/api/oauth2.ts +146 -0
- package/src/api/pedia.ts +222 -0
- package/src/api/project.ts +1519 -0
- package/src/api/resident.ts +133 -0
- package/src/api/robot.ts +326 -0
- package/src/api/rooms.ts +334 -0
- package/src/api/serviceGroup.ts +216 -0
- package/src/api/storage.ts +1701 -0
- package/src/api/swform.ts +94 -0
- package/src/api/todo.ts +220 -0
- package/src/api/wiki.ts +231 -0
- package/src/api/workbench.ts +73 -0
- package/src/api/yida.ts +2165 -0
- package/src/bot.ts +111 -0
- package/src/http.ts +44 -0
- package/src/index.ts +9 -0
- package/src/internal.ts +47 -0
- package/src/message.ts +141 -0
- package/src/types/index.ts +140 -0
- package/src/utils.ts +51 -0
- package/src/ws.ts +55 -0
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@satorijs/adapter-dingtalk",
|
|
3
3
|
"description": "DingTalk (钉钉) Adapter for Satorijs",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.4",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"lib"
|
|
8
|
+
"lib",
|
|
9
|
+
"src"
|
|
9
10
|
],
|
|
10
11
|
"author": "LittleC <i@ltlec.com>",
|
|
11
12
|
"license": "MIT",
|
|
@@ -28,7 +29,10 @@
|
|
|
28
29
|
"im",
|
|
29
30
|
"chat"
|
|
30
31
|
],
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@satorijs/router": "^1.1.2"
|
|
34
|
+
},
|
|
31
35
|
"peerDependencies": {
|
|
32
|
-
"@satorijs/satori": "^3.0
|
|
36
|
+
"@satorijs/satori": "^3.2.0"
|
|
33
37
|
}
|
|
34
|
-
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
import { Internal } from '../internal'
|
|
2
|
+
// GENERATED CONTENT
|
|
3
|
+
|
|
4
|
+
export interface BillSettementBtripTrainQuery {
|
|
5
|
+
/** 企业id。 */
|
|
6
|
+
corpId?: string
|
|
7
|
+
/** 类目:机酒火车: */
|
|
8
|
+
category?: number
|
|
9
|
+
/** 每页数据量,默认100,最高100。 */
|
|
10
|
+
pageSize?: number
|
|
11
|
+
/** 记账更新开始日期。 */
|
|
12
|
+
periodStart?: string
|
|
13
|
+
/** 页数,从1开始。 */
|
|
14
|
+
pageNumber?: number
|
|
15
|
+
/** 记账更新结束日期。 */
|
|
16
|
+
periodEnd?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface BillSettementBtripTrainResponse {
|
|
20
|
+
resultMsg?: string
|
|
21
|
+
module?: {
|
|
22
|
+
category?: number
|
|
23
|
+
corpId?: string
|
|
24
|
+
dataList?: number
|
|
25
|
+
periodEnd?: string
|
|
26
|
+
periodStart?: string
|
|
27
|
+
totalNum?: number
|
|
28
|
+
}
|
|
29
|
+
success?: unknown
|
|
30
|
+
resultCode?: number
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface BillSettementHotelQuery {
|
|
34
|
+
/** 第三方企业。 */
|
|
35
|
+
corpId?: string
|
|
36
|
+
/** 类目:机酒火车: */
|
|
37
|
+
category?: number
|
|
38
|
+
/** 每页数据量,默认100,最高500。 */
|
|
39
|
+
pageSize?: number
|
|
40
|
+
/** 记账更新开始日期。 */
|
|
41
|
+
periodStart?: string
|
|
42
|
+
/** 页数,从1开始。 */
|
|
43
|
+
pageNumber?: number
|
|
44
|
+
/** 记账更新结束日期。 */
|
|
45
|
+
periodEnd?: string
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface BillSettementHotelResponse {
|
|
49
|
+
resultMsg?: string
|
|
50
|
+
module?: {
|
|
51
|
+
category?: number
|
|
52
|
+
corpId?: string
|
|
53
|
+
dataList?: number
|
|
54
|
+
periodEnd?: string
|
|
55
|
+
periodStart?: string
|
|
56
|
+
totalNum?: number
|
|
57
|
+
}
|
|
58
|
+
success?: unknown
|
|
59
|
+
resultCode?: number
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface BillSettementCarQuery {
|
|
63
|
+
/** 企业id。 */
|
|
64
|
+
corpId?: string
|
|
65
|
+
/** 类目:机酒火车: */
|
|
66
|
+
category?: number
|
|
67
|
+
/** 每页数据量,默认100,最高100。 */
|
|
68
|
+
pageSize?: number
|
|
69
|
+
/** 记账更新开始日期。 */
|
|
70
|
+
periodStart?: string
|
|
71
|
+
/** 记账更新结束日期。 */
|
|
72
|
+
periodEnd?: string
|
|
73
|
+
/** 页数,从1开始。 */
|
|
74
|
+
pageNumber?: number
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface BillSettementCarResponse {
|
|
78
|
+
resultMsg?: string
|
|
79
|
+
module?: {
|
|
80
|
+
category?: number
|
|
81
|
+
corpId?: string
|
|
82
|
+
dataList?: number
|
|
83
|
+
periodEnd?: string
|
|
84
|
+
periodStart?: string
|
|
85
|
+
totalNum?: number
|
|
86
|
+
}
|
|
87
|
+
success?: unknown
|
|
88
|
+
resultCode?: number
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface BillSettementFlightQuery {
|
|
92
|
+
/** 第三方企业的CorpId。 */
|
|
93
|
+
corpId?: string
|
|
94
|
+
/** 类目,取值: */
|
|
95
|
+
category?: number
|
|
96
|
+
/** 分页参数,每页数据量。默认值100,最大值500。 */
|
|
97
|
+
pageSize?: number
|
|
98
|
+
/** 记账更新开始日期。 */
|
|
99
|
+
periodStart?: string
|
|
100
|
+
/** 分页参数,页码,从1开始。 */
|
|
101
|
+
pageNumber?: number
|
|
102
|
+
/** 记账更新结束日期。 */
|
|
103
|
+
periodEnd?: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface BillSettementFlightResponse {
|
|
107
|
+
resultMsg?: string
|
|
108
|
+
module?: {
|
|
109
|
+
category?: number
|
|
110
|
+
corpId?: string
|
|
111
|
+
dataList?: number
|
|
112
|
+
periodEnd?: string
|
|
113
|
+
periodStart?: string
|
|
114
|
+
totalNum?: number
|
|
115
|
+
}
|
|
116
|
+
success?: unknown
|
|
117
|
+
resultCode?: number
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface GetFlightExceedApplyQuery {
|
|
121
|
+
/** 第三方企业的corpId。 */
|
|
122
|
+
corpId: string
|
|
123
|
+
/** 商旅超标审批单ID。 */
|
|
124
|
+
applyId: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface GetFlightExceedApplyResponse {
|
|
128
|
+
corpId: string
|
|
129
|
+
applyId: number
|
|
130
|
+
status: number
|
|
131
|
+
btripCause: string
|
|
132
|
+
exceedType: number
|
|
133
|
+
exceedReason: string
|
|
134
|
+
originStandard: string
|
|
135
|
+
submitTime: string
|
|
136
|
+
userId: string
|
|
137
|
+
applyIntentionInfoDO: {
|
|
138
|
+
arrCity: string
|
|
139
|
+
arrCityName: string
|
|
140
|
+
arrTime: string
|
|
141
|
+
cabin: string
|
|
142
|
+
cabinClass: number
|
|
143
|
+
cabinClassStr: string
|
|
144
|
+
depCity: string
|
|
145
|
+
depCityName: string
|
|
146
|
+
depTime: string
|
|
147
|
+
discount: number
|
|
148
|
+
flightNo: string
|
|
149
|
+
price: number
|
|
150
|
+
type: number
|
|
151
|
+
}
|
|
152
|
+
thirdpartApplyId: string
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface QueryUnionOrderQuery {
|
|
156
|
+
/** 第三方企业corpId。 */
|
|
157
|
+
corpId: string
|
|
158
|
+
/** 第三方申请单ID。 */
|
|
159
|
+
thirdPartApplyId?: string
|
|
160
|
+
/** 关联单号ID。 */
|
|
161
|
+
unionNo?: string
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface QueryUnionOrderResponse {
|
|
165
|
+
flightList?: {
|
|
166
|
+
flightOrderId?: number
|
|
167
|
+
flightOrderStatus?: number
|
|
168
|
+
}[]
|
|
169
|
+
corpId?: string
|
|
170
|
+
trainList?: {
|
|
171
|
+
trainOrderId?: number
|
|
172
|
+
trainOrderstatus?: number
|
|
173
|
+
}[]
|
|
174
|
+
hotelList?: {
|
|
175
|
+
hotelOrderId?: number
|
|
176
|
+
hotelOrderStatus?: number
|
|
177
|
+
}[]
|
|
178
|
+
vehicleList?: {
|
|
179
|
+
vehicleOrderId?: number
|
|
180
|
+
vehicleOrderStatus?: number
|
|
181
|
+
}[]
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface GetTrainExceedApplyQuery {
|
|
185
|
+
/** 第三方企业的corpId。 */
|
|
186
|
+
corpId: string
|
|
187
|
+
/** 商旅审批单ID。 */
|
|
188
|
+
applyId: string
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface GetTrainExceedApplyResponse {
|
|
192
|
+
corpId: string
|
|
193
|
+
applyId: number
|
|
194
|
+
status: number
|
|
195
|
+
btripCause: string
|
|
196
|
+
exceedType: number
|
|
197
|
+
exceedReason: string
|
|
198
|
+
originStandard: string
|
|
199
|
+
submitTime: string
|
|
200
|
+
userId: string
|
|
201
|
+
applyIntentionInfoDO: {
|
|
202
|
+
price: number
|
|
203
|
+
depCityName: string
|
|
204
|
+
arrCityName: string
|
|
205
|
+
depCity: string
|
|
206
|
+
arrCity: string
|
|
207
|
+
depTime: string
|
|
208
|
+
arrTime: string
|
|
209
|
+
arrStation: string
|
|
210
|
+
depStation: string
|
|
211
|
+
trainNo: string
|
|
212
|
+
trainTypeDesc: string
|
|
213
|
+
seatName: string
|
|
214
|
+
}
|
|
215
|
+
thirdpartApplyId: string
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface GetHotelExceedApplyQuery {
|
|
219
|
+
/** 第三方企业的corpId。 */
|
|
220
|
+
corpId: string
|
|
221
|
+
/** 商旅审批单ID。 */
|
|
222
|
+
applyId: string
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export interface GetHotelExceedApplyResponse {
|
|
226
|
+
corpId: string
|
|
227
|
+
applyId: number
|
|
228
|
+
status: number
|
|
229
|
+
btripCause: string
|
|
230
|
+
exceedType: number
|
|
231
|
+
exceedReason: string
|
|
232
|
+
originStandard: string
|
|
233
|
+
submitTime: string
|
|
234
|
+
userId: string
|
|
235
|
+
applyIntentionInfoDO: {
|
|
236
|
+
checkIn: string
|
|
237
|
+
checkOut: string
|
|
238
|
+
cityCode: string
|
|
239
|
+
cityName: string
|
|
240
|
+
price: number
|
|
241
|
+
together: number
|
|
242
|
+
type: number
|
|
243
|
+
}
|
|
244
|
+
thirdpartApplyId: string
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface SyncExceedApplyQuery {
|
|
248
|
+
/** 审批意见。 */
|
|
249
|
+
remark: string
|
|
250
|
+
/** 商旅超标审批单号。 */
|
|
251
|
+
applyId: string
|
|
252
|
+
/** 企业的corpId。 */
|
|
253
|
+
corpId: string
|
|
254
|
+
/** 第三方流程实例ID。 */
|
|
255
|
+
thirdpartyFlowId: string
|
|
256
|
+
/** 员工的userid。 */
|
|
257
|
+
userId: string
|
|
258
|
+
/** 审批单状态,取值: */
|
|
259
|
+
status: number
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface SyncExceedApplyResponse {
|
|
263
|
+
module: unknown
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface QueryCityCarApplyQuery {
|
|
267
|
+
/** 企业的CorpId。 */
|
|
268
|
+
corpId: string
|
|
269
|
+
/** 审批单创建时间小于值,例如2021-03-18 20:26:50。 */
|
|
270
|
+
createdEndAt?: string
|
|
271
|
+
/** 审批单创建时间大于或等于的时间,例如2021-03-18 20:26:56。 */
|
|
272
|
+
createdStartAt?: string
|
|
273
|
+
/** 页码,要求大于等于1,默认1。 */
|
|
274
|
+
pageNumber?: number
|
|
275
|
+
/** 每页数据量,要求大于等于1,默认20。 */
|
|
276
|
+
pageSize?: number
|
|
277
|
+
/** 三方审批单ID。 */
|
|
278
|
+
thirdPartApplyId?: string
|
|
279
|
+
/** 第三方员工ID。 */
|
|
280
|
+
userId?: string
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface QueryCityCarApplyResponse {
|
|
284
|
+
applyList?: {
|
|
285
|
+
approverList?: number
|
|
286
|
+
departId?: string
|
|
287
|
+
departName?: string
|
|
288
|
+
gmtCreate?: string
|
|
289
|
+
gmtModified?: string
|
|
290
|
+
itineraryList?: number
|
|
291
|
+
status?: number
|
|
292
|
+
statusDesc?: string
|
|
293
|
+
thirdPartApplyId?: string
|
|
294
|
+
tripCause?: string
|
|
295
|
+
tripTitle?: string
|
|
296
|
+
userId?: string
|
|
297
|
+
userName?: string
|
|
298
|
+
}[]
|
|
299
|
+
total?: number
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface ApproveCityCarApplyParams {
|
|
303
|
+
/** 第三方企业的corpid。 */
|
|
304
|
+
corpId: string
|
|
305
|
+
/** 审批时间,例如2021-03-18 20:26:56。 */
|
|
306
|
+
operateTime?: string
|
|
307
|
+
/** 审批备注。 */
|
|
308
|
+
remark?: string
|
|
309
|
+
/** 审批结果: */
|
|
310
|
+
status: number
|
|
311
|
+
/** 第三方审批单ID。 */
|
|
312
|
+
thirdPartApplyId: string
|
|
313
|
+
/** 审批的第三方员工ID。 */
|
|
314
|
+
userId: string
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export interface ApproveCityCarApplyResponse {
|
|
318
|
+
approveResult?: unknown
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface AddCityCarApplyParams {
|
|
322
|
+
/** 出差事由。 */
|
|
323
|
+
cause: string
|
|
324
|
+
/** 用车城市。 */
|
|
325
|
+
city: string
|
|
326
|
+
/** 第三方企业的corpid。 */
|
|
327
|
+
corpId: string
|
|
328
|
+
/** 用车时间,按天管控,比如传值2021-03-18 20:26:56表示2021-03-18当天可用车,跨天情况配合finishedDate参数使用 */
|
|
329
|
+
date: string
|
|
330
|
+
/** 审批单关联的项目code。 */
|
|
331
|
+
projectCode?: string
|
|
332
|
+
/** 审批单关联的项目名。 */
|
|
333
|
+
projectName?: string
|
|
334
|
+
/** 审批单状态: */
|
|
335
|
+
status: number
|
|
336
|
+
/** 三方审批单ID。 */
|
|
337
|
+
thirdPartApplyId: string
|
|
338
|
+
/** 审批单关联的三方成本中心ID。 */
|
|
339
|
+
thirdPartCostCenterId: string
|
|
340
|
+
/** 审批单关联的三方发票抬头ID。 */
|
|
341
|
+
thirdPartInvoiceId: string
|
|
342
|
+
/** 审批单可用总次数。 */
|
|
343
|
+
timesTotal: number
|
|
344
|
+
/** 审批单可用次数类型: */
|
|
345
|
+
timesType: number
|
|
346
|
+
/** 审批单已用次数。 */
|
|
347
|
+
timesUsed: number
|
|
348
|
+
/** 审批单标题。 */
|
|
349
|
+
title: string
|
|
350
|
+
/** 发起审批的第三方员工ID。 */
|
|
351
|
+
userId: string
|
|
352
|
+
/** 用车截止时间,按天管控,比如date传值2021-03-18 20:26:56、finishedDate传值2021-03-30 20:26:56表示2021-03-18(含)到2021-03-30(含)之间可用车,该参数不传值情况使用date作为用车截止时间; */
|
|
353
|
+
finishedDate?: string
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export interface AddCityCarApplyResponse {
|
|
357
|
+
applyId?: number
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// funcName: isOldApi
|
|
361
|
+
Internal.define({
|
|
362
|
+
'/alitrip/billSettlements/btripTrains': {
|
|
363
|
+
GET: { billSettementBtripTrain: false },
|
|
364
|
+
},
|
|
365
|
+
'/alitrip/billSettlements/hotels': { GET: { billSettementHotel: false } },
|
|
366
|
+
'/alitrip/billSettlements/cars': { GET: { billSettementCar: false } },
|
|
367
|
+
'/alitrip/billSettlements/flights': { GET: { billSettementFlight: false } },
|
|
368
|
+
'/alitrip/exceedapply/getFlight': { GET: { getFlightExceedApply: false } },
|
|
369
|
+
'/alitrip/unionOrders': { GET: { queryUnionOrder: false } },
|
|
370
|
+
'/alitrip/exceedapply/getTrain': { GET: { getTrainExceedApply: false } },
|
|
371
|
+
'/alitrip/exceedapply/getHotel': { GET: { getHotelExceedApply: false } },
|
|
372
|
+
'/alitrip/exceedapply/sync': { POST: { syncExceedApply: false } },
|
|
373
|
+
'/alitrip/cityCarApprovals': {
|
|
374
|
+
GET: { queryCityCarApply: false },
|
|
375
|
+
PUT: { approveCityCarApply: false },
|
|
376
|
+
POST: { addCityCarApply: false },
|
|
377
|
+
},
|
|
378
|
+
})
|
|
379
|
+
|
|
380
|
+
declare module '../internal' {
|
|
381
|
+
interface Internal {
|
|
382
|
+
/**
|
|
383
|
+
* 查询商旅火车票结算记账数据
|
|
384
|
+
* @see https://open.dingtalk.com/document/isvapp/business-travel-train-ticket-settlement-bookkeeping-query-interface
|
|
385
|
+
*/
|
|
386
|
+
billSettementBtripTrain(
|
|
387
|
+
query: BillSettementBtripTrainQuery,
|
|
388
|
+
): Promise<BillSettementBtripTrainResponse>
|
|
389
|
+
/**
|
|
390
|
+
* 查询酒店结算记账数据
|
|
391
|
+
* @see https://open.dingtalk.com/document/isvapp/hotel-settlement-bookkeeping-query-interface
|
|
392
|
+
*/
|
|
393
|
+
billSettementHotel(
|
|
394
|
+
query: BillSettementHotelQuery,
|
|
395
|
+
): Promise<BillSettementHotelResponse>
|
|
396
|
+
/**
|
|
397
|
+
* 查询用车结算记账记录
|
|
398
|
+
* @see https://open.dingtalk.com/document/isvapp/query-interface-for-vehicle-settlement-and-bookkeeping
|
|
399
|
+
*/
|
|
400
|
+
billSettementCar(
|
|
401
|
+
query: BillSettementCarQuery,
|
|
402
|
+
): Promise<BillSettementCarResponse>
|
|
403
|
+
/**
|
|
404
|
+
* 查询机票结算记账数据
|
|
405
|
+
* @see https://open.dingtalk.com/document/isvapp/ticket-settlement-bookkeeping-query-interface
|
|
406
|
+
*/
|
|
407
|
+
billSettementFlight(
|
|
408
|
+
query: BillSettementFlightQuery,
|
|
409
|
+
): Promise<BillSettementFlightResponse>
|
|
410
|
+
/**
|
|
411
|
+
* 搜索第三方机票超标审批单
|
|
412
|
+
* @see https://open.dingtalk.com/document/isvapp/dingtalk-oapi-alitrip-btrip-exceedapply-flight-get
|
|
413
|
+
*/
|
|
414
|
+
getFlightExceedApply(
|
|
415
|
+
query: GetFlightExceedApplyQuery,
|
|
416
|
+
): Promise<GetFlightExceedApplyResponse>
|
|
417
|
+
/**
|
|
418
|
+
* 关联单号查询相关订单信息列表
|
|
419
|
+
* @see https://open.dingtalk.com/document/isvapp/link-no-to-query-the-list-of-related-order-information
|
|
420
|
+
*/
|
|
421
|
+
queryUnionOrder(
|
|
422
|
+
query: QueryUnionOrderQuery,
|
|
423
|
+
): Promise<QueryUnionOrderResponse>
|
|
424
|
+
/**
|
|
425
|
+
* 搜索第三方火车票超标审批单
|
|
426
|
+
* @see https://open.dingtalk.com/document/isvapp/dingtalk-oapi-alitrip-btrip-exceedapply-train-get
|
|
427
|
+
*/
|
|
428
|
+
getTrainExceedApply(
|
|
429
|
+
query: GetTrainExceedApplyQuery,
|
|
430
|
+
): Promise<GetTrainExceedApplyResponse>
|
|
431
|
+
/**
|
|
432
|
+
* 搜索第三方酒店超标审批单
|
|
433
|
+
* @see https://open.dingtalk.com/document/isvapp/dingtalk-oapi-alitrip-btrip-exceedapply-hotel-get
|
|
434
|
+
*/
|
|
435
|
+
getHotelExceedApply(
|
|
436
|
+
query: GetHotelExceedApplyQuery,
|
|
437
|
+
): Promise<GetHotelExceedApplyResponse>
|
|
438
|
+
/**
|
|
439
|
+
* 同步超标审批结果
|
|
440
|
+
* @see https://open.dingtalk.com/document/isvapp/dingtalk-oapi-alitrip-btrip-exceedapply-sync
|
|
441
|
+
*/
|
|
442
|
+
syncExceedApply(
|
|
443
|
+
query: SyncExceedApplyQuery,
|
|
444
|
+
): Promise<SyncExceedApplyResponse>
|
|
445
|
+
/**
|
|
446
|
+
* 查询市内用车申请单
|
|
447
|
+
* @see https://open.dingtalk.com/document/isvapp/query-the-application-form-for-third-party-vehicles-in-the-city
|
|
448
|
+
*/
|
|
449
|
+
queryCityCarApply(
|
|
450
|
+
query: QueryCityCarApplyQuery,
|
|
451
|
+
): Promise<QueryCityCarApplyResponse>
|
|
452
|
+
/**
|
|
453
|
+
* 审批市内用车申请单
|
|
454
|
+
* @see https://open.dingtalk.com/document/isvapp/approval-of-third-party-city-car-application-form
|
|
455
|
+
*/
|
|
456
|
+
approveCityCarApply(
|
|
457
|
+
params: ApproveCityCarApplyParams,
|
|
458
|
+
): Promise<ApproveCityCarApplyResponse>
|
|
459
|
+
/**
|
|
460
|
+
* 同步市内用车申请单
|
|
461
|
+
* @see https://open.dingtalk.com/document/isvapp/synchronize-third-party-city-vehicle-approval-form
|
|
462
|
+
*/
|
|
463
|
+
addCityCarApply(
|
|
464
|
+
params: AddCityCarApplyParams,
|
|
465
|
+
): Promise<AddCityCarApplyResponse>
|
|
466
|
+
}
|
|
467
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Internal } from '../internal'
|
|
2
|
+
// GENERATED CONTENT
|
|
3
|
+
|
|
4
|
+
export interface GetAdjustmentsQuery {
|
|
5
|
+
/** 分页起始页。 */
|
|
6
|
+
pageNumber: number
|
|
7
|
+
/** 分页大小。 */
|
|
8
|
+
pageSize: number
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface GetAdjustmentsResponse {
|
|
12
|
+
result?: {
|
|
13
|
+
pageNumber?: number
|
|
14
|
+
totalPage?: number
|
|
15
|
+
items?: number
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface GetSimpleOvertimeSettingQuery {
|
|
20
|
+
/** 分页起始页。 */
|
|
21
|
+
pageNumber: number
|
|
22
|
+
/** 分页大小。 */
|
|
23
|
+
pageSize: number
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface GetSimpleOvertimeSettingResponse {
|
|
27
|
+
result?: {
|
|
28
|
+
pageNumber?: number
|
|
29
|
+
totalPage?: number
|
|
30
|
+
items?: number
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface GetOvertimeSettingParams {
|
|
35
|
+
overtimeSettingIds?: number[]
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface GetOvertimeSettingResponse {
|
|
39
|
+
result: {
|
|
40
|
+
settingId?: number
|
|
41
|
+
name?: string
|
|
42
|
+
default?: number
|
|
43
|
+
durationSettings?: number
|
|
44
|
+
warningSettings?: number
|
|
45
|
+
stepType?: number
|
|
46
|
+
stepValue?: number
|
|
47
|
+
workMinutesPerDay?: number
|
|
48
|
+
overtimeDivisions?: number
|
|
49
|
+
id: number
|
|
50
|
+
}[]
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// funcName: isOldApi
|
|
54
|
+
Internal.define({
|
|
55
|
+
'/attendance/adjustments': { GET: { getAdjustments: false } },
|
|
56
|
+
'/attendance/overtimeSettings': { GET: { getSimpleOvertimeSetting: false } },
|
|
57
|
+
'/attendance/overtimeSettings/query': { POST: { getOvertimeSetting: false } },
|
|
58
|
+
})
|
|
59
|
+
declare module '../internal' {
|
|
60
|
+
interface Internal {
|
|
61
|
+
/**
|
|
62
|
+
* 获取补卡规则列表
|
|
63
|
+
* @see https://open.dingtalk.com/document/isvapp/retrieve-a-list-of-replenishment-rules-by-page
|
|
64
|
+
*/
|
|
65
|
+
getAdjustments(query: GetAdjustmentsQuery): Promise<GetAdjustmentsResponse>
|
|
66
|
+
/**
|
|
67
|
+
* 加班规则列表
|
|
68
|
+
* @see https://open.dingtalk.com/document/isvapp/retrieve-a-list-of-overtime-rules-by-page
|
|
69
|
+
*/
|
|
70
|
+
getSimpleOvertimeSetting(
|
|
71
|
+
query: GetSimpleOvertimeSettingQuery,
|
|
72
|
+
): Promise<GetSimpleOvertimeSettingResponse>
|
|
73
|
+
/**
|
|
74
|
+
* 批量获取加班规则设置
|
|
75
|
+
* @see https://open.dingtalk.com/document/isvapp/batch-retrieve-overtime-rules
|
|
76
|
+
*/
|
|
77
|
+
getOvertimeSetting(
|
|
78
|
+
params: GetOvertimeSettingParams,
|
|
79
|
+
): Promise<GetOvertimeSettingResponse>
|
|
80
|
+
}
|
|
81
|
+
}
|