@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/index.js
CHANGED
|
@@ -58,17 +58,25 @@ async function decodeMessage(bot, body) {
|
|
|
58
58
|
const session = bot.session();
|
|
59
59
|
session.type = "message";
|
|
60
60
|
session.messageId = body.msgId;
|
|
61
|
-
session.isDirect = body.conversationType === "1";
|
|
62
61
|
session.guildId = body.chatbotCorpId;
|
|
63
|
-
if (body.
|
|
64
|
-
session.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
if (body.conversationType === "1") {
|
|
63
|
+
session.channelId = session.userId;
|
|
64
|
+
} else {
|
|
65
|
+
const atUsers = body.atUsers.filter((v) => v.dingtalkId !== body.chatbotUserId).map((v) => import_satori.h.at(v.staffId));
|
|
66
|
+
session.elements = [import_satori.h.at(body.robotCode), ...atUsers, ...session.elements];
|
|
67
|
+
session.channelId = body.conversationId;
|
|
68
|
+
}
|
|
69
|
+
if (body.conversationTitle) {
|
|
70
|
+
session.event.channel.name = body.conversationTitle;
|
|
71
|
+
}
|
|
72
|
+
session.event.user = {
|
|
73
|
+
id: body.senderStaffId,
|
|
74
|
+
name: body.senderNick
|
|
75
|
+
};
|
|
76
|
+
session.event.member = {
|
|
69
77
|
roles: body.isAdmin ? ["admin"] : []
|
|
70
78
|
};
|
|
71
|
-
session.timestamp =
|
|
79
|
+
session.timestamp = +body.createAt;
|
|
72
80
|
if (body.msgtype === "text") {
|
|
73
81
|
session.elements = [import_satori.h.text(body.text.content)];
|
|
74
82
|
} else if (body.msgtype === "richText") {
|
|
@@ -89,28 +97,20 @@ async function decodeMessage(bot, body) {
|
|
|
89
97
|
} else {
|
|
90
98
|
return;
|
|
91
99
|
}
|
|
92
|
-
if (!session.isDirect) {
|
|
93
|
-
const atUsers = body.atUsers.filter((v) => v.dingtalkId !== body.chatbotUserId).map((v) => import_satori.h.at(v.staffId));
|
|
94
|
-
session.elements = [import_satori.h.at(body.robotCode), ...atUsers, ...session.elements];
|
|
95
|
-
session.channelId = body.conversationId;
|
|
96
|
-
} else {
|
|
97
|
-
session.channelId = session.userId;
|
|
98
|
-
}
|
|
99
100
|
session.content = session.elements.join("");
|
|
100
101
|
return session;
|
|
101
102
|
}
|
|
102
103
|
__name(decodeMessage, "decodeMessage");
|
|
103
104
|
|
|
104
105
|
// satori/adapters/dingtalk/src/http.ts
|
|
105
|
-
var _HttpServer = class _HttpServer extends import_satori2.Adapter
|
|
106
|
+
var _HttpServer = class _HttpServer extends import_satori2.Adapter {
|
|
106
107
|
logger = new import_satori2.Logger("dingtalk");
|
|
107
108
|
constructor(ctx, bot) {
|
|
108
109
|
super();
|
|
109
110
|
}
|
|
110
|
-
async
|
|
111
|
+
async connect(bot) {
|
|
111
112
|
await bot.refreshToken();
|
|
112
|
-
|
|
113
|
-
await bot.initialize();
|
|
113
|
+
await bot.getLogin();
|
|
114
114
|
bot.ctx.router.post("/dingtalk", async (ctx) => {
|
|
115
115
|
const timestamp = ctx.get("timestamp");
|
|
116
116
|
const sign = ctx.get("sign");
|
|
@@ -175,9 +175,10 @@ var _DingtalkMessageEncoder = class _DingtalkMessageEncoder extends import_sator
|
|
|
175
175
|
session.messageId = processQueryKey;
|
|
176
176
|
session.channelId = this.session.channelId;
|
|
177
177
|
session.guildId = this.session.guildId;
|
|
178
|
-
console.log(session, processQueryKey);
|
|
179
178
|
session.app.emit(session, "send", session);
|
|
180
|
-
this.results.push(
|
|
179
|
+
this.results.push({
|
|
180
|
+
id: processQueryKey
|
|
181
|
+
});
|
|
181
182
|
}
|
|
182
183
|
// https://open.dingtalk.com/document/orgapp/upload-media-files?spm=ding_open_doc.document.0.0.3b166172ERBuHw
|
|
183
184
|
async uploadMedia(attrs) {
|
|
@@ -263,8 +264,7 @@ var import_satori4 = require("@satorijs/satori");
|
|
|
263
264
|
var _WsClient = class _WsClient extends import_satori4.Adapter.WsClient {
|
|
264
265
|
async prepare() {
|
|
265
266
|
await this.bot.refreshToken();
|
|
266
|
-
|
|
267
|
-
await this.bot.initialize();
|
|
267
|
+
await this.bot.getLogin();
|
|
268
268
|
const { endpoint, ticket } = await this.bot.http.post("/gateway/connections/open", {
|
|
269
269
|
clientId: this.bot.config.appkey,
|
|
270
270
|
clientSecret: this.bot.config.secret,
|
|
@@ -279,12 +279,12 @@ var _WsClient = class _WsClient extends import_satori4.Adapter.WsClient {
|
|
|
279
279
|
}
|
|
280
280
|
accept() {
|
|
281
281
|
this.bot.online();
|
|
282
|
-
this.
|
|
282
|
+
this.socket.addEventListener("message", async ({ data }) => {
|
|
283
283
|
const parsed = JSON.parse(data.toString());
|
|
284
284
|
this.ctx.logger("dingtalk").debug(require("util").inspect(parsed, false, null, true));
|
|
285
285
|
if (parsed.type === "SYSTEM") {
|
|
286
286
|
if (parsed.headers.topic === "ping") {
|
|
287
|
-
this.
|
|
287
|
+
this.socket.send(JSON.stringify({
|
|
288
288
|
code: 200,
|
|
289
289
|
headers: parsed.headers,
|
|
290
290
|
message: "OK",
|
|
@@ -305,7 +305,7 @@ __name(_WsClient, "WsClient");
|
|
|
305
305
|
var WsClient = _WsClient;
|
|
306
306
|
((WsClient2) => {
|
|
307
307
|
WsClient2.Config = import_satori4.Schema.intersect([
|
|
308
|
-
import_satori4.Adapter.
|
|
308
|
+
import_satori4.Adapter.WsClientConfig
|
|
309
309
|
]);
|
|
310
310
|
})(WsClient || (WsClient = {}));
|
|
311
311
|
|
|
@@ -371,6 +371,7 @@ var _DingtalkBot = class _DingtalkBot extends import_satori6.Bot {
|
|
|
371
371
|
constructor(ctx, config) {
|
|
372
372
|
super(ctx, config);
|
|
373
373
|
this.platform = "dingtalk";
|
|
374
|
+
this.selfId = config.appkey;
|
|
374
375
|
this.http = ctx.http.extend(config.api);
|
|
375
376
|
this.oldHttp = ctx.http.extend(config.oldApi);
|
|
376
377
|
this.internal = new Internal(this);
|
|
@@ -380,15 +381,16 @@ var _DingtalkBot = class _DingtalkBot extends import_satori6.Bot {
|
|
|
380
381
|
ctx.plugin(WsClient, this);
|
|
381
382
|
}
|
|
382
383
|
}
|
|
383
|
-
async
|
|
384
|
-
const { appList } = await this.internal.
|
|
384
|
+
async getLogin() {
|
|
385
|
+
const { appList } = await this.internal.oapiMicroappList();
|
|
385
386
|
const self = appList.find((v) => v.agentId === this.config.agentId);
|
|
386
|
-
this.
|
|
387
|
-
this.avatar = self.appIcon;
|
|
387
|
+
this.user.name = self.name;
|
|
388
|
+
this.user.avatar = self.appIcon;
|
|
389
|
+
return this.toJSON();
|
|
388
390
|
}
|
|
389
|
-
// @ts-ignore
|
|
390
391
|
stop() {
|
|
391
392
|
clearTimeout(this.refreshTokenTimer);
|
|
393
|
+
return super.stop();
|
|
392
394
|
}
|
|
393
395
|
token;
|
|
394
396
|
async refreshToken() {
|
|
@@ -460,248 +462,248 @@ Internal.define({
|
|
|
460
462
|
|
|
461
463
|
// satori/adapters/dingtalk/src/api/oapi.ts
|
|
462
464
|
Internal.define({
|
|
463
|
-
"/service/get_corp_token": { POST: {
|
|
464
|
-
"/sso/gettoken": { GET: {
|
|
465
|
-
"/get_jsapi_ticket": { GET: {
|
|
466
|
-
"/gettoken": { GET: {
|
|
467
|
-
"/v2/user/getuserinfo": { POST: {
|
|
468
|
-
"/sns/getuserinfo_bycode": { POST: {
|
|
469
|
-
"/sso/getuserinfo": { GET: {
|
|
470
|
-
"/service/get_auth_info": { POST: {
|
|
471
|
-
"/v2/user/update": { POST: {
|
|
472
|
-
"/v2/user/create": { POST: {
|
|
473
|
-
"/org/union/trunk/get": { POST: {
|
|
465
|
+
"/service/get_corp_token": { POST: { oapiServiceGetCorpToken: true } },
|
|
466
|
+
"/sso/gettoken": { GET: { oapiSsoGettoken: true } },
|
|
467
|
+
"/get_jsapi_ticket": { GET: { oapiGetJsapiTicket: true } },
|
|
468
|
+
"/gettoken": { GET: { oapiGettoken: true } },
|
|
469
|
+
"/v2/user/getuserinfo": { POST: { oapiV2UserGetuserinfo: true } },
|
|
470
|
+
"/sns/getuserinfo_bycode": { POST: { oapiSnsGetuserinfoBycode: true } },
|
|
471
|
+
"/sso/getuserinfo": { GET: { oapiSsoGetuserinfo: true } },
|
|
472
|
+
"/service/get_auth_info": { POST: { oapiServiceGetAuthInfo: true } },
|
|
473
|
+
"/v2/user/update": { POST: { oapiV2UserUpdate: true } },
|
|
474
|
+
"/v2/user/create": { POST: { oapiV2UserCreate: true } },
|
|
475
|
+
"/org/union/trunk/get": { POST: { oapiOrgUnionTrunkGet: true } },
|
|
474
476
|
"/smartwork/hrm/roster/meta/get": {
|
|
475
|
-
POST: {
|
|
477
|
+
POST: { oapiSmartworkHrmRosterMetaGet: true }
|
|
476
478
|
},
|
|
477
479
|
"/smartwork/hrm/employee/v2/list": {
|
|
478
|
-
POST: {
|
|
480
|
+
POST: { oapiSmartworkHrmEmployeeV2List: true }
|
|
479
481
|
},
|
|
480
482
|
"/smartwork/hrm/employee/v2/update": {
|
|
481
|
-
POST: {
|
|
483
|
+
POST: { oapiSmartworkHrmEmployeeV2Update: true }
|
|
482
484
|
},
|
|
483
485
|
"/smartwork/hrm/employee/field/grouplist": {
|
|
484
|
-
POST: {
|
|
486
|
+
POST: { oapiSmartworkHrmEmployeeFieldGrouplist: true }
|
|
485
487
|
},
|
|
486
488
|
"/smartwork/hrm/employee/update": {
|
|
487
|
-
POST: {
|
|
489
|
+
POST: { oapiSmartworkHrmEmployeeUpdate: true }
|
|
488
490
|
},
|
|
489
491
|
"/smartwork/hrm/employee/queryonjob": {
|
|
490
|
-
POST: {
|
|
492
|
+
POST: { oapiSmartworkHrmEmployeeQueryonjob: true }
|
|
491
493
|
},
|
|
492
494
|
"/smartwork/hrm/employee/querypreentry": {
|
|
493
|
-
POST: {
|
|
495
|
+
POST: { oapiSmartworkHrmEmployeeQuerypreentry: true }
|
|
494
496
|
},
|
|
495
497
|
"/smartwork/hrm/employee/addpreentry": {
|
|
496
|
-
POST: {
|
|
498
|
+
POST: { oapiSmartworkHrmEmployeeAddpreentry: true }
|
|
497
499
|
},
|
|
498
500
|
"/smartwork/hrm/employee/list": {
|
|
499
|
-
POST: {
|
|
501
|
+
POST: { oapiSmartworkHrmEmployeeList: true }
|
|
500
502
|
},
|
|
501
|
-
"/report/template/getbyname": { POST: {
|
|
502
|
-
"/report/create": { POST: {
|
|
503
|
-
"/report/savecontent": { POST: {
|
|
504
|
-
"/report/simplelist": { POST: {
|
|
503
|
+
"/report/template/getbyname": { POST: { oapiReportTemplateGetbyname: true } },
|
|
504
|
+
"/report/create": { POST: { oapiReportCreate: true } },
|
|
505
|
+
"/report/savecontent": { POST: { oapiReportSavecontent: true } },
|
|
506
|
+
"/report/simplelist": { POST: { oapiReportSimplelist: true } },
|
|
505
507
|
"/report/statistics/listbytype": {
|
|
506
|
-
POST: {
|
|
508
|
+
POST: { oapiReportStatisticsListbytype: true }
|
|
507
509
|
},
|
|
508
|
-
"/report/receiver/list": { POST: {
|
|
509
|
-
"/report/comment/list": { POST: {
|
|
510
|
-
"/report/statistics": { POST: {
|
|
511
|
-
"/report/getunreadcount": { POST: {
|
|
512
|
-
"/report/list": { POST: {
|
|
510
|
+
"/report/receiver/list": { POST: { oapiReportReceiverList: true } },
|
|
511
|
+
"/report/comment/list": { POST: { oapiReportCommentList: true } },
|
|
512
|
+
"/report/statistics": { POST: { oapiReportStatistics: true } },
|
|
513
|
+
"/report/getunreadcount": { POST: { oapiReportGetunreadcount: true } },
|
|
514
|
+
"/report/list": { POST: { oapiReportList: true } },
|
|
513
515
|
"/report/template/listbyuserid": {
|
|
514
|
-
POST: {
|
|
515
|
-
},
|
|
516
|
-
"/checkin/record/get": { POST: {
|
|
517
|
-
"/checkin/record": { GET: {
|
|
518
|
-
"/blackboard/category/list": { POST: {
|
|
519
|
-
"/blackboard/update": { POST: {
|
|
520
|
-
"/blackboard/delete": { POST: {
|
|
521
|
-
"/blackboard/get": { POST: {
|
|
522
|
-
"/blackboard/listids": { POST: {
|
|
523
|
-
"/blackboard/create": { POST: {
|
|
524
|
-
"/blackboard/listtopten": { POST: {
|
|
516
|
+
POST: { oapiReportTemplateListbyuserid: true }
|
|
517
|
+
},
|
|
518
|
+
"/checkin/record/get": { POST: { oapiCheckinRecordGet: true } },
|
|
519
|
+
"/checkin/record": { GET: { oapiCheckinRecord: true } },
|
|
520
|
+
"/blackboard/category/list": { POST: { oapiBlackboardCategoryList: true } },
|
|
521
|
+
"/blackboard/update": { POST: { oapiBlackboardUpdate: true } },
|
|
522
|
+
"/blackboard/delete": { POST: { oapiBlackboardDelete: true } },
|
|
523
|
+
"/blackboard/get": { POST: { oapiBlackboardGet: true } },
|
|
524
|
+
"/blackboard/listids": { POST: { oapiBlackboardListids: true } },
|
|
525
|
+
"/blackboard/create": { POST: { oapiBlackboardCreate: true } },
|
|
526
|
+
"/blackboard/listtopten": { POST: { oapiBlackboardListtopten: true } },
|
|
525
527
|
"/health/stepinfo/getuserstatus": {
|
|
526
|
-
POST: {
|
|
528
|
+
POST: { oapiHealthStepinfoGetuserstatus: true }
|
|
527
529
|
},
|
|
528
530
|
"/health/stepinfo/listbyuserid": {
|
|
529
|
-
POST: {
|
|
531
|
+
POST: { oapiHealthStepinfoListbyuserid: true }
|
|
530
532
|
},
|
|
531
|
-
"/health/stepinfo/list": { POST: {
|
|
532
|
-
"/microapp/list_by_userid": { GET: {
|
|
533
|
-
"/microapp/list": { POST: {
|
|
534
|
-
"/microapp/delete": { POST: {
|
|
533
|
+
"/health/stepinfo/list": { POST: { oapiHealthStepinfoList: true } },
|
|
534
|
+
"/microapp/list_by_userid": { GET: { oapiMicroappListByUserid: true } },
|
|
535
|
+
"/microapp/list": { POST: { oapiMicroappList: true } },
|
|
536
|
+
"/microapp/delete": { POST: { oapiMicroappDelete: true } },
|
|
535
537
|
"/microapp/set_visible_scopes": {
|
|
536
|
-
POST: {
|
|
538
|
+
POST: { oapiMicroappSetVisibleScopes: true }
|
|
537
539
|
},
|
|
538
|
-
"/microapp/visible_scopes": { POST: {
|
|
539
|
-
"/asr/voice/translate": { POST: {
|
|
540
|
-
"/ai/mt/translate": { POST: {
|
|
541
|
-
"/ocr/structured/recognize": { POST: {
|
|
540
|
+
"/microapp/visible_scopes": { POST: { oapiMicroappVisibleScopes: true } },
|
|
541
|
+
"/asr/voice/translate": { POST: { oapiAsrVoiceTranslate: true } },
|
|
542
|
+
"/ai/mt/translate": { POST: { oapiAiMtTranslate: true } },
|
|
543
|
+
"/ocr/structured/recognize": { POST: { oapiOcrStructuredRecognize: true } },
|
|
542
544
|
"/im/chat/scencegroup/message/send_v2": {
|
|
543
|
-
POST: {
|
|
545
|
+
POST: { oapiImChatScencegroupMessageSendV2: true }
|
|
544
546
|
},
|
|
545
547
|
"/im/chat/scenegroup/template/close": {
|
|
546
|
-
POST: {
|
|
548
|
+
POST: { oapiImChatScenegroupTemplateClose: true }
|
|
547
549
|
},
|
|
548
550
|
"/im/chat/scenegroup/template/apply": {
|
|
549
|
-
POST: {
|
|
551
|
+
POST: { oapiImChatScenegroupTemplateApply: true }
|
|
550
552
|
},
|
|
551
553
|
"/im/chat/scencegroup/interactivecard/callback/register": {
|
|
552
|
-
POST: {
|
|
554
|
+
POST: { oapiImChatScencegroupInteractivecardCallbackRegister: true }
|
|
553
555
|
},
|
|
554
|
-
"/im/chat/scenegroup/create": { POST: {
|
|
556
|
+
"/im/chat/scenegroup/create": { POST: { oapiImChatScenegroupCreate: true } },
|
|
555
557
|
"/im/chat/scenegroup/member/add": {
|
|
556
|
-
POST: {
|
|
558
|
+
POST: { oapiImChatScenegroupMemberAdd: true }
|
|
557
559
|
},
|
|
558
560
|
"/im/chat/scenegroup/member/get": {
|
|
559
|
-
POST: {
|
|
561
|
+
POST: { oapiImChatScenegroupMemberGet: true }
|
|
560
562
|
},
|
|
561
|
-
"/im/chat/scenegroup/update": { POST: {
|
|
563
|
+
"/im/chat/scenegroup/update": { POST: { oapiImChatScenegroupUpdate: true } },
|
|
562
564
|
"/im/chat/scenegroup/member/delete": {
|
|
563
|
-
POST: {
|
|
565
|
+
POST: { oapiImChatScenegroupMemberDelete: true }
|
|
564
566
|
},
|
|
565
|
-
"/im/chat/scenegroup/get": { POST: {
|
|
566
|
-
"/robot/send": { POST: {
|
|
567
|
+
"/im/chat/scenegroup/get": { POST: { oapiImChatScenegroupGet: true } },
|
|
568
|
+
"/robot/send": { POST: { oapiRobotSend: true } },
|
|
567
569
|
"/alitrip/btrip/invoice/setting/rule": {
|
|
568
|
-
POST: {
|
|
570
|
+
POST: { oapiAlitripBtripInvoiceSettingRule: true }
|
|
569
571
|
},
|
|
570
572
|
"/alitrip/btrip/invoice/setting/add": {
|
|
571
|
-
POST: {
|
|
573
|
+
POST: { oapiAlitripBtripInvoiceSettingAdd: true }
|
|
572
574
|
},
|
|
573
575
|
"/alitrip/btrip/project/delete": {
|
|
574
|
-
POST: {
|
|
576
|
+
POST: { oapiAlitripBtripProjectDelete: true }
|
|
575
577
|
},
|
|
576
578
|
"/alitrip/btrip/project/modify": {
|
|
577
|
-
POST: {
|
|
579
|
+
POST: { oapiAlitripBtripProjectModify: true }
|
|
578
580
|
},
|
|
579
|
-
"/alitrip/btrip/project/add": { POST: {
|
|
581
|
+
"/alitrip/btrip/project/add": { POST: { oapiAlitripBtripProjectAdd: true } },
|
|
580
582
|
"/alitrip/btrip/invoice/setting/delete": {
|
|
581
|
-
POST: {
|
|
583
|
+
POST: { oapiAlitripBtripInvoiceSettingDelete: true }
|
|
582
584
|
},
|
|
583
585
|
"/alitrip/btrip/invoice/setting/modify": {
|
|
584
|
-
POST: {
|
|
586
|
+
POST: { oapiAlitripBtripInvoiceSettingModify: true }
|
|
585
587
|
},
|
|
586
|
-
"/alitrip/btrip/price/query": { POST: {
|
|
588
|
+
"/alitrip/btrip/price/query": { POST: { oapiAlitripBtripPriceQuery: true } },
|
|
587
589
|
"/alitrip/btrip/train/city/suggest": {
|
|
588
|
-
POST: {
|
|
590
|
+
POST: { oapiAlitripBtripTrainCitySuggest: true }
|
|
589
591
|
},
|
|
590
592
|
"/alitrip/btrip/monthbill/url/get": {
|
|
591
|
-
POST: {
|
|
593
|
+
POST: { oapiAlitripBtripMonthbillUrlGet: true }
|
|
592
594
|
},
|
|
593
|
-
"/alitrip/btrip/address/get": { POST: {
|
|
595
|
+
"/alitrip/btrip/address/get": { POST: { oapiAlitripBtripAddressGet: true } },
|
|
594
596
|
"/alitrip/btrip/approval/modify": {
|
|
595
|
-
POST: {
|
|
597
|
+
POST: { oapiAlitripBtripApprovalModify: true }
|
|
596
598
|
},
|
|
597
599
|
"/alitrip/btrip/flight/city/suggest": {
|
|
598
|
-
POST: {
|
|
600
|
+
POST: { oapiAlitripBtripFlightCitySuggest: true }
|
|
599
601
|
},
|
|
600
602
|
"/alitrip/btrip/vehicle/order/search": {
|
|
601
|
-
POST: {
|
|
603
|
+
POST: { oapiAlitripBtripVehicleOrderSearch: true }
|
|
602
604
|
},
|
|
603
605
|
"/alitrip/btrip/cost/center/query": {
|
|
604
|
-
POST: {
|
|
606
|
+
POST: { oapiAlitripBtripCostCenterQuery: true }
|
|
605
607
|
},
|
|
606
608
|
"/alitrip/btrip/approval/update": {
|
|
607
|
-
POST: {
|
|
609
|
+
POST: { oapiAlitripBtripApprovalUpdate: true }
|
|
608
610
|
},
|
|
609
611
|
"/alitrip/btrip/cost/center/new": {
|
|
610
|
-
POST: {
|
|
612
|
+
POST: { oapiAlitripBtripCostCenterNew: true }
|
|
611
613
|
},
|
|
612
614
|
"/alitrip/btrip/cost/center/modify": {
|
|
613
|
-
POST: {
|
|
615
|
+
POST: { oapiAlitripBtripCostCenterModify: true }
|
|
614
616
|
},
|
|
615
617
|
"/alitrip/btrip/cost/center/delete": {
|
|
616
|
-
POST: {
|
|
618
|
+
POST: { oapiAlitripBtripCostCenterDelete: true }
|
|
617
619
|
},
|
|
618
620
|
"/alitrip/btrip/cost/center/entity/set": {
|
|
619
|
-
POST: {
|
|
621
|
+
POST: { oapiAlitripBtripCostCenterEntitySet: true }
|
|
620
622
|
},
|
|
621
623
|
"/alitrip/btrip/hotel/order/search": {
|
|
622
|
-
POST: {
|
|
624
|
+
POST: { oapiAlitripBtripHotelOrderSearch: true }
|
|
623
625
|
},
|
|
624
626
|
"/alitrip/btrip/train/order/search": {
|
|
625
|
-
POST: {
|
|
627
|
+
POST: { oapiAlitripBtripTrainOrderSearch: true }
|
|
626
628
|
},
|
|
627
629
|
"/alitrip/btrip/flight/order/search": {
|
|
628
|
-
POST: {
|
|
630
|
+
POST: { oapiAlitripBtripFlightOrderSearch: true }
|
|
629
631
|
},
|
|
630
632
|
"/alitrip/btrip/invoice/search": {
|
|
631
|
-
POST: {
|
|
633
|
+
POST: { oapiAlitripBtripInvoiceSearch: true }
|
|
632
634
|
},
|
|
633
635
|
"/alitrip/btrip/cost/center/transfer": {
|
|
634
|
-
POST: {
|
|
636
|
+
POST: { oapiAlitripBtripCostCenterTransfer: true }
|
|
635
637
|
},
|
|
636
|
-
"/alitrip/btrip/apply/get": { POST: {
|
|
638
|
+
"/alitrip/btrip/apply/get": { POST: { oapiAlitripBtripApplyGet: true } },
|
|
637
639
|
"/alitrip/btrip/apply/search": {
|
|
638
|
-
POST: {
|
|
640
|
+
POST: { oapiAlitripBtripApplySearch: true }
|
|
639
641
|
},
|
|
640
642
|
"/alitrip/btrip/approval/new": {
|
|
641
|
-
POST: {
|
|
643
|
+
POST: { oapiAlitripBtripApprovalNew: true }
|
|
642
644
|
},
|
|
643
645
|
"/alitrip/btrip/cost/center/entity/delete": {
|
|
644
|
-
POST: {
|
|
646
|
+
POST: { oapiAlitripBtripCostCenterEntityDelete: true }
|
|
645
647
|
},
|
|
646
|
-
"/workspace/auditlog/list": { POST: {
|
|
647
|
-
"/edu/cert/get": { POST: {
|
|
648
|
-
"/edu/user/list": { POST: {
|
|
648
|
+
"/workspace/auditlog/list": { POST: { oapiWorkspaceAuditlogList: true } },
|
|
649
|
+
"/edu/cert/get": { POST: { oapiEduCertGet: true } },
|
|
650
|
+
"/edu/user/list": { POST: { oapiEduUserList: true } },
|
|
649
651
|
"/smartdevice/device/querybyid": {
|
|
650
|
-
POST: {
|
|
652
|
+
POST: { oapiSmartdeviceDeviceQuerybyid: true }
|
|
651
653
|
},
|
|
652
654
|
"/smartdevice/device/querylist": {
|
|
653
|
-
POST: {
|
|
655
|
+
POST: { oapiSmartdeviceDeviceQuerylist: true }
|
|
654
656
|
},
|
|
655
|
-
"/smartdevice/device/query": { POST: {
|
|
657
|
+
"/smartdevice/device/query": { POST: { oapiSmartdeviceDeviceQuery: true } },
|
|
656
658
|
"/smartdevice/device/updatenick": {
|
|
657
|
-
POST: {
|
|
659
|
+
POST: { oapiSmartdeviceDeviceUpdatenick: true }
|
|
658
660
|
},
|
|
659
|
-
"/smartdevice/device/unbind": { POST: {
|
|
660
|
-
"/smartdevice/external/bind": { POST: {
|
|
661
|
+
"/smartdevice/device/unbind": { POST: { oapiSmartdeviceDeviceUnbind: true } },
|
|
662
|
+
"/smartdevice/external/bind": { POST: { oapiSmartdeviceExternalBind: true } },
|
|
661
663
|
"/crm/objectdata/contact/delete": {
|
|
662
|
-
POST: {
|
|
664
|
+
POST: { oapiCrmObjectdataContactDelete: true }
|
|
663
665
|
},
|
|
664
666
|
"/crm/objectdata/customobject/create": {
|
|
665
|
-
POST: {
|
|
667
|
+
POST: { oapiCrmObjectdataCustomobjectCreate: true }
|
|
666
668
|
},
|
|
667
669
|
"/crm/objectdata/customobject/update": {
|
|
668
|
-
POST: {
|
|
670
|
+
POST: { oapiCrmObjectdataCustomobjectUpdate: true }
|
|
669
671
|
},
|
|
670
|
-
"/crm/objectdata/list": { POST: {
|
|
671
|
-
"/crm/objectdata/query": { POST: {
|
|
672
|
-
"/crm/objectmeta/describe": { POST: {
|
|
672
|
+
"/crm/objectdata/list": { POST: { oapiCrmObjectdataList: true } },
|
|
673
|
+
"/crm/objectdata/query": { POST: { oapiCrmObjectdataQuery: true } },
|
|
674
|
+
"/crm/objectmeta/describe": { POST: { oapiCrmObjectmetaDescribe: true } },
|
|
673
675
|
"/crm/objectdata/contact/query": {
|
|
674
|
-
POST: {
|
|
676
|
+
POST: { oapiCrmObjectdataContactQuery: true }
|
|
675
677
|
},
|
|
676
678
|
"/crm/objectdata/followrecord/list": {
|
|
677
|
-
POST: {
|
|
679
|
+
POST: { oapiCrmObjectdataFollowrecordList: true }
|
|
678
680
|
},
|
|
679
681
|
"/crm/objectdata/followrecord/query": {
|
|
680
|
-
POST: {
|
|
682
|
+
POST: { oapiCrmObjectdataFollowrecordQuery: true }
|
|
681
683
|
},
|
|
682
684
|
"/crm/objectdata/contact/list": {
|
|
683
|
-
POST: {
|
|
685
|
+
POST: { oapiCrmObjectdataContactList: true }
|
|
684
686
|
},
|
|
685
687
|
"/crm/objectmeta/contact/describe": {
|
|
686
|
-
POST: {
|
|
688
|
+
POST: { oapiCrmObjectmetaContactDescribe: true }
|
|
687
689
|
},
|
|
688
690
|
"/crm/objectmeta/followrecord/describe": {
|
|
689
|
-
POST: {
|
|
690
|
-
},
|
|
691
|
-
"/cspace/add_to_single_chat": { POST: {
|
|
692
|
-
"/cspace/grant_custom_space": { GET: {
|
|
693
|
-
"/cspace/get_custom_space": { GET: {
|
|
694
|
-
"/cspace/add": { GET: {
|
|
695
|
-
"/chat/subadmin/update": { POST: {
|
|
696
|
-
"/chat/qrcode/get": { POST: {
|
|
691
|
+
POST: { oapiCrmObjectmetaFollowrecordDescribe: true }
|
|
692
|
+
},
|
|
693
|
+
"/cspace/add_to_single_chat": { POST: { oapiCspaceAddToSingleChat: true } },
|
|
694
|
+
"/cspace/grant_custom_space": { GET: { oapiCspaceGrantCustomSpace: true } },
|
|
695
|
+
"/cspace/get_custom_space": { GET: { oapiCspaceGetCustomSpace: true } },
|
|
696
|
+
"/cspace/add": { GET: { oapiCspaceAdd: true } },
|
|
697
|
+
"/chat/subadmin/update": { POST: { oapiChatSubadminUpdate: true } },
|
|
698
|
+
"/chat/qrcode/get": { POST: { oapiChatQrcodeGet: true } },
|
|
697
699
|
"/chat/member/friendswitch/update": {
|
|
698
|
-
POST: {
|
|
700
|
+
POST: { oapiChatMemberFriendswitchUpdate: true }
|
|
699
701
|
},
|
|
700
|
-
"/chat/updategroupnick": { POST: {
|
|
701
|
-
"/chat/update": { POST: {
|
|
702
|
-
"/chat/create": { POST: {
|
|
703
|
-
"/chat/get": { GET: {
|
|
704
|
-
"/smartbot/msg/push": { POST: {
|
|
702
|
+
"/chat/updategroupnick": { POST: { oapiChatUpdategroupnick: true } },
|
|
703
|
+
"/chat/update": { POST: { oapiChatUpdate: true } },
|
|
704
|
+
"/chat/create": { POST: { oapiChatCreate: true } },
|
|
705
|
+
"/chat/get": { GET: { oapiChatGet: true } },
|
|
706
|
+
"/smartbot/msg/push": { POST: { oapiSmartbotMsgPush: true } }
|
|
705
707
|
});
|
|
706
708
|
|
|
707
709
|
// satori/adapters/dingtalk/src/api/contact.ts
|