@im-more/dsh-dingtalk 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/cordis.patch.yml +11 -0
- package/lib/index.js +2765 -0
- package/lib/index.js.map +1 -0
- package/lib/types/api/alitrip.d.ts +397 -0
- package/lib/types/api/alitrip.d.ts.map +1 -0
- package/lib/types/api/alitrip.js +21 -0
- package/lib/types/api/alitrip.js.map +1 -0
- package/lib/types/api/attendance.d.ts +63 -0
- package/lib/types/api/attendance.d.ts.map +1 -0
- package/lib/types/api/attendance.js +8 -0
- package/lib/types/api/attendance.js.map +1 -0
- package/lib/types/api/badge.d.ts +233 -0
- package/lib/types/api/badge.d.ts.map +1 -0
- package/lib/types/api/badge.js +19 -0
- package/lib/types/api/badge.js.map +1 -0
- package/lib/types/api/blackboard.d.ts +17 -0
- package/lib/types/api/blackboard.d.ts.map +1 -0
- package/lib/types/api/blackboard.js +6 -0
- package/lib/types/api/blackboard.js.map +1 -0
- package/lib/types/api/calendar.d.ts +621 -0
- package/lib/types/api/calendar.d.ts.map +1 -0
- package/lib/types/api/calendar.js +57 -0
- package/lib/types/api/calendar.js.map +1 -0
- package/lib/types/api/card.d.ts +185 -0
- package/lib/types/api/card.d.ts.map +1 -0
- package/lib/types/api/card.js +13 -0
- package/lib/types/api/card.js.map +1 -0
- package/lib/types/api/conference.d.ts +404 -0
- package/lib/types/api/conference.d.ts.map +1 -0
- package/lib/types/api/conference.js +60 -0
- package/lib/types/api/conference.js.map +1 -0
- package/lib/types/api/connector.d.ts +79 -0
- package/lib/types/api/connector.d.ts.map +1 -0
- package/lib/types/api/connector.js +8 -0
- package/lib/types/api/connector.js.map +1 -0
- package/lib/types/api/contact.d.ts +40 -0
- package/lib/types/api/contact.d.ts.map +1 -0
- package/lib/types/api/contact.js +9 -0
- package/lib/types/api/contact.js.map +1 -0
- package/lib/types/api/convFile.d.ts +135 -0
- package/lib/types/api/convFile.d.ts.map +1 -0
- package/lib/types/api/convFile.js +9 -0
- package/lib/types/api/convFile.js.map +1 -0
- package/lib/types/api/crm.d.ts +662 -0
- package/lib/types/api/crm.d.ts.map +1 -0
- package/lib/types/api/crm.js +59 -0
- package/lib/types/api/crm.js.map +1 -0
- package/lib/types/api/customerService.d.ts +128 -0
- package/lib/types/api/customerService.d.ts.map +1 -0
- package/lib/types/api/customerService.js +13 -0
- package/lib/types/api/customerService.js.map +1 -0
- package/lib/types/api/datacenter.d.ts +506 -0
- package/lib/types/api/datacenter.d.ts.map +1 -0
- package/lib/types/api/datacenter.js +61 -0
- package/lib/types/api/datacenter.js.map +1 -0
- package/lib/types/api/devicemng.d.ts +161 -0
- package/lib/types/api/devicemng.d.ts.map +1 -0
- package/lib/types/api/devicemng.js +20 -0
- package/lib/types/api/devicemng.js.map +1 -0
- package/lib/types/api/diot.d.ts +13 -0
- package/lib/types/api/diot.d.ts.map +1 -0
- package/lib/types/api/diot.js +4 -0
- package/lib/types/api/diot.js.map +1 -0
- package/lib/types/api/doc.d.ts +141 -0
- package/lib/types/api/doc.d.ts.map +1 -0
- package/lib/types/api/doc.js +27 -0
- package/lib/types/api/doc.js.map +1 -0
- package/lib/types/api/drive.d.ts +88 -0
- package/lib/types/api/drive.d.ts.map +1 -0
- package/lib/types/api/drive.js +11 -0
- package/lib/types/api/drive.js.map +1 -0
- package/lib/types/api/edu.d.ts +23 -0
- package/lib/types/api/edu.d.ts.map +1 -0
- package/lib/types/api/edu.js +4 -0
- package/lib/types/api/edu.js.map +1 -0
- package/lib/types/api/esign.d.ts +34 -0
- package/lib/types/api/esign.d.ts.map +1 -0
- package/lib/types/api/esign.js +7 -0
- package/lib/types/api/esign.js.map +1 -0
- package/lib/types/api/exclusive.d.ts +304 -0
- package/lib/types/api/exclusive.d.ts.map +1 -0
- package/lib/types/api/exclusive.js +27 -0
- package/lib/types/api/exclusive.js.map +1 -0
- package/lib/types/api/h3yun.d.ts +438 -0
- package/lib/types/api/h3yun.d.ts.map +1 -0
- package/lib/types/api/h3yun.js +33 -0
- package/lib/types/api/h3yun.js.map +1 -0
- package/lib/types/api/hrm.d.ts +215 -0
- package/lib/types/api/hrm.d.ts.map +1 -0
- package/lib/types/api/hrm.js +20 -0
- package/lib/types/api/hrm.js.map +1 -0
- package/lib/types/api/im.d.ts +773 -0
- package/lib/types/api/im.d.ts.map +1 -0
- package/lib/types/api/im.js +72 -0
- package/lib/types/api/im.js.map +1 -0
- package/lib/types/api/industry.d.ts +118 -0
- package/lib/types/api/industry.d.ts.map +1 -0
- package/lib/types/api/industry.js +14 -0
- package/lib/types/api/industry.js.map +1 -0
- package/lib/types/api/jzcrm.d.ts +255 -0
- package/lib/types/api/jzcrm.d.ts.map +1 -0
- package/lib/types/api/jzcrm.js +18 -0
- package/lib/types/api/jzcrm.js.map +1 -0
- package/lib/types/api/link.d.ts +73 -0
- package/lib/types/api/link.d.ts.map +1 -0
- package/lib/types/api/link.js +9 -0
- package/lib/types/api/link.js.map +1 -0
- package/lib/types/api/live.d.ts +132 -0
- package/lib/types/api/live.d.ts.map +1 -0
- package/lib/types/api/live.js +13 -0
- package/lib/types/api/live.js.map +1 -0
- package/lib/types/api/microApp.d.ts +240 -0
- package/lib/types/api/microApp.d.ts.map +1 -0
- package/lib/types/api/microApp.js +29 -0
- package/lib/types/api/microApp.js.map +1 -0
- package/lib/types/api/oapi.d.ts +3362 -0
- package/lib/types/api/oapi.d.ts.map +1 -0
- package/lib/types/api/oapi.js +247 -0
- package/lib/types/api/oapi.js.map +1 -0
- package/lib/types/api/oauth2.d.ts +115 -0
- package/lib/types/api/oauth2.d.ts.map +1 -0
- package/lib/types/api/oauth2.js +12 -0
- package/lib/types/api/oauth2.js.map +1 -0
- package/lib/types/api/pedia.d.ts +186 -0
- package/lib/types/api/pedia.d.ts.map +1 -0
- package/lib/types/api/pedia.js +13 -0
- package/lib/types/api/pedia.js.map +1 -0
- package/lib/types/api/project.d.ts +1119 -0
- package/lib/types/api/project.d.ts.map +1 -0
- package/lib/types/api/project.js +135 -0
- package/lib/types/api/project.js.map +1 -0
- package/lib/types/api/resident.d.ts +107 -0
- package/lib/types/api/resident.d.ts.map +1 -0
- package/lib/types/api/resident.js +10 -0
- package/lib/types/api/resident.js.map +1 -0
- package/lib/types/api/robot.d.ts +256 -0
- package/lib/types/api/robot.d.ts.map +1 -0
- package/lib/types/api/robot.js +21 -0
- package/lib/types/api/robot.js.map +1 -0
- package/lib/types/api/rooms.d.ts +256 -0
- package/lib/types/api/rooms.d.ts.map +1 -0
- package/lib/types/api/rooms.js +23 -0
- package/lib/types/api/rooms.js.map +1 -0
- package/lib/types/api/serviceGroup.d.ts +176 -0
- package/lib/types/api/serviceGroup.d.ts.map +1 -0
- package/lib/types/api/serviceGroup.js +15 -0
- package/lib/types/api/serviceGroup.js.map +1 -0
- package/lib/types/api/storage.d.ts +1241 -0
- package/lib/types/api/storage.d.ts.map +1 -0
- package/lib/types/api/storage.js +128 -0
- package/lib/types/api/storage.js.map +1 -0
- package/lib/types/api/swform.d.ts +71 -0
- package/lib/types/api/swform.d.ts.map +1 -0
- package/lib/types/api/swform.js +8 -0
- package/lib/types/api/swform.js.map +1 -0
- package/lib/types/api/todo.d.ts +169 -0
- package/lib/types/api/todo.d.ts.map +1 -0
- package/lib/types/api/todo.js +16 -0
- package/lib/types/api/todo.js.map +1 -0
- package/lib/types/api/wiki.d.ts +195 -0
- package/lib/types/api/wiki.d.ts.map +1 -0
- package/lib/types/api/wiki.js +11 -0
- package/lib/types/api/wiki.js.map +1 -0
- package/lib/types/api/workbench.d.ts +46 -0
- package/lib/types/api/workbench.d.ts.map +1 -0
- package/lib/types/api/workbench.js +14 -0
- package/lib/types/api/workbench.js.map +1 -0
- package/lib/types/api/yida.d.ts +1838 -0
- package/lib/types/api/yida.d.ts.map +1 -0
- package/lib/types/api/yida.js +103 -0
- package/lib/types/api/yida.js.map +1 -0
- package/lib/types/bot.d.ts +62 -0
- package/lib/types/bot.d.ts.map +1 -0
- package/lib/types/bot.js +134 -0
- package/lib/types/bot.js.map +1 -0
- package/lib/types/config.d.ts +47 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/config.js +53 -0
- package/lib/types/config.js.map +1 -0
- package/lib/types/decode.d.ts +36 -0
- package/lib/types/decode.d.ts.map +1 -0
- package/lib/types/decode.js +200 -0
- package/lib/types/decode.js.map +1 -0
- package/lib/types/errors.d.ts +77 -0
- package/lib/types/errors.d.ts.map +1 -0
- package/lib/types/errors.js +249 -0
- package/lib/types/errors.js.map +1 -0
- package/lib/types/index.d.ts +22 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +22 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/internal.d.ts +15 -0
- package/lib/types/internal.d.ts.map +1 -0
- package/lib/types/internal.js +57 -0
- package/lib/types/internal.js.map +1 -0
- package/lib/types/media.d.ts +57 -0
- package/lib/types/media.d.ts.map +1 -0
- package/lib/types/media.js +99 -0
- package/lib/types/media.js.map +1 -0
- package/lib/types/modes/markdown.d.ts +12 -0
- package/lib/types/modes/markdown.d.ts.map +1 -0
- package/lib/types/modes/markdown.js +148 -0
- package/lib/types/modes/markdown.js.map +1 -0
- package/lib/types/modes/shared.d.ts +183 -0
- package/lib/types/modes/shared.d.ts.map +1 -0
- package/lib/types/modes/shared.js +358 -0
- package/lib/types/modes/shared.js.map +1 -0
- package/lib/types/request.d.ts +63 -0
- package/lib/types/request.d.ts.map +1 -0
- package/lib/types/request.js +182 -0
- package/lib/types/request.js.map +1 -0
- package/lib/types/send.d.ts +38 -0
- package/lib/types/send.d.ts.map +1 -0
- package/lib/types/send.js +128 -0
- package/lib/types/send.js.map +1 -0
- package/lib/types/token.d.ts +32 -0
- package/lib/types/token.d.ts.map +1 -0
- package/lib/types/token.js +62 -0
- package/lib/types/token.js.map +1 -0
- package/lib/types/transport/stream.d.ts +89 -0
- package/lib/types/transport/stream.d.ts.map +1 -0
- package/lib/types/transport/stream.js +345 -0
- package/lib/types/transport/stream.js.map +1 -0
- package/lib/types/transport/webhook.d.ts +54 -0
- package/lib/types/transport/webhook.d.ts.map +1 -0
- package/lib/types/transport/webhook.js +159 -0
- package/lib/types/transport/webhook.js.map +1 -0
- package/lib/types/types/index.d.ts +150 -0
- package/lib/types/types/index.d.ts.map +1 -0
- package/lib/types/types/index.js +43 -0
- package/lib/types/types/index.js.map +1 -0
- package/package.json +61 -3
- 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 +211 -0
- package/src/config.ts +88 -0
- package/src/decode.ts +250 -0
- package/src/errors.ts +282 -0
- package/src/index.ts +82 -0
- package/src/internal.ts +60 -0
- package/src/media.ts +149 -0
- package/src/modes/markdown.ts +173 -0
- package/src/modes/shared.ts +473 -0
- package/src/request.ts +262 -0
- package/src/send.ts +195 -0
- package/src/token.ts +72 -0
- package/src/transport/stream.ts +436 -0
- package/src/transport/webhook.ts +198 -0
- package/src/types/index.ts +165 -0
- package/README.md +0 -3
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
import { Internal } from '../internal.ts'
|
|
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.ts'
|
|
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
|
+
}
|