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