@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.
Files changed (50) hide show
  1. package/lib/api/alitrip.d.ts +12 -12
  2. package/lib/api/attendance.d.ts +3 -3
  3. package/lib/api/badge.d.ts +8 -8
  4. package/lib/api/blackboard.d.ts +1 -1
  5. package/lib/api/calendar.d.ts +28 -28
  6. package/lib/api/card.d.ts +6 -6
  7. package/lib/api/conference.d.ts +23 -23
  8. package/lib/api/connector.d.ts +3 -3
  9. package/lib/api/contact.d.ts +2 -2
  10. package/lib/api/convFile.d.ts +4 -4
  11. package/lib/api/crm.d.ts +28 -28
  12. package/lib/api/customerService.d.ts +4 -4
  13. package/lib/api/datacenter.d.ts +26 -26
  14. package/lib/api/devicemng.d.ts +5 -5
  15. package/lib/api/diot.d.ts +1 -1
  16. package/lib/api/doc.d.ts +8 -8
  17. package/lib/api/drive.d.ts +4 -4
  18. package/lib/api/edu.d.ts +5 -5
  19. package/lib/api/esign.d.ts +2 -2
  20. package/lib/api/exclusive.d.ts +14 -14
  21. package/lib/api/h3yun.d.ts +20 -20
  22. package/lib/api/hrm.d.ts +9 -9
  23. package/lib/api/im.d.ts +37 -37
  24. package/lib/api/industry.d.ts +5 -5
  25. package/lib/api/jzcrm.d.ts +13 -13
  26. package/lib/api/link.d.ts +4 -4
  27. package/lib/api/live.d.ts +6 -6
  28. package/lib/api/microApp.d.ts +12 -12
  29. package/lib/api/oapi.d.ts +257 -257
  30. package/lib/api/oauth2.d.ts +7 -7
  31. package/lib/api/pedia.d.ts +6 -6
  32. package/lib/api/project.d.ts +50 -50
  33. package/lib/api/resident.d.ts +6 -6
  34. package/lib/api/robot.d.ts +14 -14
  35. package/lib/api/rooms.d.ts +12 -12
  36. package/lib/api/serviceGroup.d.ts +8 -8
  37. package/lib/api/storage.d.ts +51 -51
  38. package/lib/api/swform.d.ts +3 -3
  39. package/lib/api/todo.d.ts +5 -5
  40. package/lib/api/wiki.d.ts +6 -6
  41. package/lib/api/workbench.d.ts +3 -3
  42. package/lib/api/yida.d.ts +60 -60
  43. package/lib/bot.d.ts +5 -6
  44. package/lib/http.d.ts +2 -3
  45. package/lib/index.js +164 -165
  46. package/lib/index.js.map +2 -2
  47. package/lib/message.d.ts +2 -2
  48. package/lib/utils.d.ts +2 -2
  49. package/lib/ws.d.ts +3 -3
  50. 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.conversationTitle)
64
- session.channelName = body.conversationTitle;
65
- session.userId = body.senderStaffId;
66
- session.author = {
67
- userId: body.senderStaffId,
68
- username: body.senderNick,
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 = Number(body.createAt);
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.Server {
106
+ var _HttpServer = class _HttpServer extends import_satori2.Adapter {
106
107
  logger = new import_satori2.Logger("dingtalk");
107
- constructor(ctx, bot) {
108
- super();
109
- }
110
- async start(bot) {
108
+ async connect(bot) {
111
109
  await bot.refreshToken();
112
- bot.selfId = bot.config.appkey;
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(require("util").inspect(body, false, null, true));
124
+ this.logger.debug(body);
128
125
  const session = await decodeMessage(bot, body);
129
- this.logger.debug(require("util").inspect(session, false, null, true));
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(session);
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
- this.bot.selfId = this.bot.config.appkey;
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.bot.socket.addEventListener("message", async ({ data }) => {
279
+ this.socket.addEventListener("message", async ({ data }) => {
283
280
  const parsed = JSON.parse(data.toString());
284
- this.ctx.logger("dingtalk").debug(require("util").inspect(parsed, false, null, true));
281
+ this.ctx.logger("dingtalk").debug(parsed);
285
282
  if (parsed.type === "SYSTEM") {
286
283
  if (parsed.headers.topic === "ping") {
287
- this.bot.socket.send(JSON.stringify({
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(require("util").inspect(JSON.parse(parsed.data), false, null, true));
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(require("util").inspect(session, false, null, true));
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.WsClient.Config
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 initialize() {
384
- const { appList } = await this.internal.OapiMicroappList();
381
+ async getLogin() {
382
+ const { appList } = await this.internal.oapiMicroappList();
385
383
  const self = appList.find((v) => v.agentId === this.config.agentId);
386
- this.username = self.name;
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: { OapiServiceGetCorpToken: true } },
464
- "/sso/gettoken": { GET: { OapiSsoGettoken: true } },
465
- "/get_jsapi_ticket": { GET: { OapiGetJsapiTicket: true } },
466
- "/gettoken": { GET: { OapiGettoken: true } },
467
- "/v2/user/getuserinfo": { POST: { OapiV2UserGetuserinfo: true } },
468
- "/sns/getuserinfo_bycode": { POST: { OapiSnsGetuserinfoBycode: true } },
469
- "/sso/getuserinfo": { GET: { OapiSsoGetuserinfo: true } },
470
- "/service/get_auth_info": { POST: { OapiServiceGetAuthInfo: true } },
471
- "/v2/user/update": { POST: { OapiV2UserUpdate: true } },
472
- "/v2/user/create": { POST: { OapiV2UserCreate: true } },
473
- "/org/union/trunk/get": { POST: { OapiOrgUnionTrunkGet: true } },
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: { OapiSmartworkHrmRosterMetaGet: true }
474
+ POST: { oapiSmartworkHrmRosterMetaGet: true }
476
475
  },
477
476
  "/smartwork/hrm/employee/v2/list": {
478
- POST: { OapiSmartworkHrmEmployeeV2List: true }
477
+ POST: { oapiSmartworkHrmEmployeeV2List: true }
479
478
  },
480
479
  "/smartwork/hrm/employee/v2/update": {
481
- POST: { OapiSmartworkHrmEmployeeV2Update: true }
480
+ POST: { oapiSmartworkHrmEmployeeV2Update: true }
482
481
  },
483
482
  "/smartwork/hrm/employee/field/grouplist": {
484
- POST: { OapiSmartworkHrmEmployeeFieldGrouplist: true }
483
+ POST: { oapiSmartworkHrmEmployeeFieldGrouplist: true }
485
484
  },
486
485
  "/smartwork/hrm/employee/update": {
487
- POST: { OapiSmartworkHrmEmployeeUpdate: true }
486
+ POST: { oapiSmartworkHrmEmployeeUpdate: true }
488
487
  },
489
488
  "/smartwork/hrm/employee/queryonjob": {
490
- POST: { OapiSmartworkHrmEmployeeQueryonjob: true }
489
+ POST: { oapiSmartworkHrmEmployeeQueryonjob: true }
491
490
  },
492
491
  "/smartwork/hrm/employee/querypreentry": {
493
- POST: { OapiSmartworkHrmEmployeeQuerypreentry: true }
492
+ POST: { oapiSmartworkHrmEmployeeQuerypreentry: true }
494
493
  },
495
494
  "/smartwork/hrm/employee/addpreentry": {
496
- POST: { OapiSmartworkHrmEmployeeAddpreentry: true }
495
+ POST: { oapiSmartworkHrmEmployeeAddpreentry: true }
497
496
  },
498
497
  "/smartwork/hrm/employee/list": {
499
- POST: { OapiSmartworkHrmEmployeeList: true }
498
+ POST: { oapiSmartworkHrmEmployeeList: true }
500
499
  },
501
- "/report/template/getbyname": { POST: { OapiReportTemplateGetbyname: true } },
502
- "/report/create": { POST: { OapiReportCreate: true } },
503
- "/report/savecontent": { POST: { OapiReportSavecontent: true } },
504
- "/report/simplelist": { POST: { OapiReportSimplelist: true } },
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: { OapiReportStatisticsListbytype: true }
505
+ POST: { oapiReportStatisticsListbytype: true }
507
506
  },
508
- "/report/receiver/list": { POST: { OapiReportReceiverList: true } },
509
- "/report/comment/list": { POST: { OapiReportCommentList: true } },
510
- "/report/statistics": { POST: { OapiReportStatistics: true } },
511
- "/report/getunreadcount": { POST: { OapiReportGetunreadcount: true } },
512
- "/report/list": { POST: { OapiReportList: true } },
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: { OapiReportTemplateListbyuserid: true }
515
- },
516
- "/checkin/record/get": { POST: { OapiCheckinRecordGet: true } },
517
- "/checkin/record": { GET: { OapiCheckinRecord: true } },
518
- "/blackboard/category/list": { POST: { OapiBlackboardCategoryList: true } },
519
- "/blackboard/update": { POST: { OapiBlackboardUpdate: true } },
520
- "/blackboard/delete": { POST: { OapiBlackboardDelete: true } },
521
- "/blackboard/get": { POST: { OapiBlackboardGet: true } },
522
- "/blackboard/listids": { POST: { OapiBlackboardListids: true } },
523
- "/blackboard/create": { POST: { OapiBlackboardCreate: true } },
524
- "/blackboard/listtopten": { POST: { OapiBlackboardListtopten: true } },
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: { OapiHealthStepinfoGetuserstatus: true }
525
+ POST: { oapiHealthStepinfoGetuserstatus: true }
527
526
  },
528
527
  "/health/stepinfo/listbyuserid": {
529
- POST: { OapiHealthStepinfoListbyuserid: true }
528
+ POST: { oapiHealthStepinfoListbyuserid: true }
530
529
  },
531
- "/health/stepinfo/list": { POST: { OapiHealthStepinfoList: true } },
532
- "/microapp/list_by_userid": { GET: { OapiMicroappListByUserid: true } },
533
- "/microapp/list": { POST: { OapiMicroappList: true } },
534
- "/microapp/delete": { POST: { OapiMicroappDelete: true } },
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: { OapiMicroappSetVisibleScopes: true }
535
+ POST: { oapiMicroappSetVisibleScopes: true }
537
536
  },
538
- "/microapp/visible_scopes": { POST: { OapiMicroappVisibleScopes: true } },
539
- "/asr/voice/translate": { POST: { OapiAsrVoiceTranslate: true } },
540
- "/ai/mt/translate": { POST: { OapiAiMtTranslate: true } },
541
- "/ocr/structured/recognize": { POST: { OapiOcrStructuredRecognize: true } },
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: { OapiImChatScencegroupMessageSendV2: true }
542
+ POST: { oapiImChatScencegroupMessageSendV2: true }
544
543
  },
545
544
  "/im/chat/scenegroup/template/close": {
546
- POST: { OapiImChatScenegroupTemplateClose: true }
545
+ POST: { oapiImChatScenegroupTemplateClose: true }
547
546
  },
548
547
  "/im/chat/scenegroup/template/apply": {
549
- POST: { OapiImChatScenegroupTemplateApply: true }
548
+ POST: { oapiImChatScenegroupTemplateApply: true }
550
549
  },
551
550
  "/im/chat/scencegroup/interactivecard/callback/register": {
552
- POST: { OapiImChatScencegroupInteractivecardCallbackRegister: true }
551
+ POST: { oapiImChatScencegroupInteractivecardCallbackRegister: true }
553
552
  },
554
- "/im/chat/scenegroup/create": { POST: { OapiImChatScenegroupCreate: true } },
553
+ "/im/chat/scenegroup/create": { POST: { oapiImChatScenegroupCreate: true } },
555
554
  "/im/chat/scenegroup/member/add": {
556
- POST: { OapiImChatScenegroupMemberAdd: true }
555
+ POST: { oapiImChatScenegroupMemberAdd: true }
557
556
  },
558
557
  "/im/chat/scenegroup/member/get": {
559
- POST: { OapiImChatScenegroupMemberGet: true }
558
+ POST: { oapiImChatScenegroupMemberGet: true }
560
559
  },
561
- "/im/chat/scenegroup/update": { POST: { OapiImChatScenegroupUpdate: true } },
560
+ "/im/chat/scenegroup/update": { POST: { oapiImChatScenegroupUpdate: true } },
562
561
  "/im/chat/scenegroup/member/delete": {
563
- POST: { OapiImChatScenegroupMemberDelete: true }
562
+ POST: { oapiImChatScenegroupMemberDelete: true }
564
563
  },
565
- "/im/chat/scenegroup/get": { POST: { OapiImChatScenegroupGet: true } },
566
- "/robot/send": { POST: { OapiRobotSend: true } },
564
+ "/im/chat/scenegroup/get": { POST: { oapiImChatScenegroupGet: true } },
565
+ "/robot/send": { POST: { oapiRobotSend: true } },
567
566
  "/alitrip/btrip/invoice/setting/rule": {
568
- POST: { OapiAlitripBtripInvoiceSettingRule: true }
567
+ POST: { oapiAlitripBtripInvoiceSettingRule: true }
569
568
  },
570
569
  "/alitrip/btrip/invoice/setting/add": {
571
- POST: { OapiAlitripBtripInvoiceSettingAdd: true }
570
+ POST: { oapiAlitripBtripInvoiceSettingAdd: true }
572
571
  },
573
572
  "/alitrip/btrip/project/delete": {
574
- POST: { OapiAlitripBtripProjectDelete: true }
573
+ POST: { oapiAlitripBtripProjectDelete: true }
575
574
  },
576
575
  "/alitrip/btrip/project/modify": {
577
- POST: { OapiAlitripBtripProjectModify: true }
576
+ POST: { oapiAlitripBtripProjectModify: true }
578
577
  },
579
- "/alitrip/btrip/project/add": { POST: { OapiAlitripBtripProjectAdd: true } },
578
+ "/alitrip/btrip/project/add": { POST: { oapiAlitripBtripProjectAdd: true } },
580
579
  "/alitrip/btrip/invoice/setting/delete": {
581
- POST: { OapiAlitripBtripInvoiceSettingDelete: true }
580
+ POST: { oapiAlitripBtripInvoiceSettingDelete: true }
582
581
  },
583
582
  "/alitrip/btrip/invoice/setting/modify": {
584
- POST: { OapiAlitripBtripInvoiceSettingModify: true }
583
+ POST: { oapiAlitripBtripInvoiceSettingModify: true }
585
584
  },
586
- "/alitrip/btrip/price/query": { POST: { OapiAlitripBtripPriceQuery: true } },
585
+ "/alitrip/btrip/price/query": { POST: { oapiAlitripBtripPriceQuery: true } },
587
586
  "/alitrip/btrip/train/city/suggest": {
588
- POST: { OapiAlitripBtripTrainCitySuggest: true }
587
+ POST: { oapiAlitripBtripTrainCitySuggest: true }
589
588
  },
590
589
  "/alitrip/btrip/monthbill/url/get": {
591
- POST: { OapiAlitripBtripMonthbillUrlGet: true }
590
+ POST: { oapiAlitripBtripMonthbillUrlGet: true }
592
591
  },
593
- "/alitrip/btrip/address/get": { POST: { OapiAlitripBtripAddressGet: true } },
592
+ "/alitrip/btrip/address/get": { POST: { oapiAlitripBtripAddressGet: true } },
594
593
  "/alitrip/btrip/approval/modify": {
595
- POST: { OapiAlitripBtripApprovalModify: true }
594
+ POST: { oapiAlitripBtripApprovalModify: true }
596
595
  },
597
596
  "/alitrip/btrip/flight/city/suggest": {
598
- POST: { OapiAlitripBtripFlightCitySuggest: true }
597
+ POST: { oapiAlitripBtripFlightCitySuggest: true }
599
598
  },
600
599
  "/alitrip/btrip/vehicle/order/search": {
601
- POST: { OapiAlitripBtripVehicleOrderSearch: true }
600
+ POST: { oapiAlitripBtripVehicleOrderSearch: true }
602
601
  },
603
602
  "/alitrip/btrip/cost/center/query": {
604
- POST: { OapiAlitripBtripCostCenterQuery: true }
603
+ POST: { oapiAlitripBtripCostCenterQuery: true }
605
604
  },
606
605
  "/alitrip/btrip/approval/update": {
607
- POST: { OapiAlitripBtripApprovalUpdate: true }
606
+ POST: { oapiAlitripBtripApprovalUpdate: true }
608
607
  },
609
608
  "/alitrip/btrip/cost/center/new": {
610
- POST: { OapiAlitripBtripCostCenterNew: true }
609
+ POST: { oapiAlitripBtripCostCenterNew: true }
611
610
  },
612
611
  "/alitrip/btrip/cost/center/modify": {
613
- POST: { OapiAlitripBtripCostCenterModify: true }
612
+ POST: { oapiAlitripBtripCostCenterModify: true }
614
613
  },
615
614
  "/alitrip/btrip/cost/center/delete": {
616
- POST: { OapiAlitripBtripCostCenterDelete: true }
615
+ POST: { oapiAlitripBtripCostCenterDelete: true }
617
616
  },
618
617
  "/alitrip/btrip/cost/center/entity/set": {
619
- POST: { OapiAlitripBtripCostCenterEntitySet: true }
618
+ POST: { oapiAlitripBtripCostCenterEntitySet: true }
620
619
  },
621
620
  "/alitrip/btrip/hotel/order/search": {
622
- POST: { OapiAlitripBtripHotelOrderSearch: true }
621
+ POST: { oapiAlitripBtripHotelOrderSearch: true }
623
622
  },
624
623
  "/alitrip/btrip/train/order/search": {
625
- POST: { OapiAlitripBtripTrainOrderSearch: true }
624
+ POST: { oapiAlitripBtripTrainOrderSearch: true }
626
625
  },
627
626
  "/alitrip/btrip/flight/order/search": {
628
- POST: { OapiAlitripBtripFlightOrderSearch: true }
627
+ POST: { oapiAlitripBtripFlightOrderSearch: true }
629
628
  },
630
629
  "/alitrip/btrip/invoice/search": {
631
- POST: { OapiAlitripBtripInvoiceSearch: true }
630
+ POST: { oapiAlitripBtripInvoiceSearch: true }
632
631
  },
633
632
  "/alitrip/btrip/cost/center/transfer": {
634
- POST: { OapiAlitripBtripCostCenterTransfer: true }
633
+ POST: { oapiAlitripBtripCostCenterTransfer: true }
635
634
  },
636
- "/alitrip/btrip/apply/get": { POST: { OapiAlitripBtripApplyGet: true } },
635
+ "/alitrip/btrip/apply/get": { POST: { oapiAlitripBtripApplyGet: true } },
637
636
  "/alitrip/btrip/apply/search": {
638
- POST: { OapiAlitripBtripApplySearch: true }
637
+ POST: { oapiAlitripBtripApplySearch: true }
639
638
  },
640
639
  "/alitrip/btrip/approval/new": {
641
- POST: { OapiAlitripBtripApprovalNew: true }
640
+ POST: { oapiAlitripBtripApprovalNew: true }
642
641
  },
643
642
  "/alitrip/btrip/cost/center/entity/delete": {
644
- POST: { OapiAlitripBtripCostCenterEntityDelete: true }
643
+ POST: { oapiAlitripBtripCostCenterEntityDelete: true }
645
644
  },
646
- "/workspace/auditlog/list": { POST: { OapiWorkspaceAuditlogList: true } },
647
- "/edu/cert/get": { POST: { OapiEduCertGet: true } },
648
- "/edu/user/list": { POST: { OapiEduUserList: true } },
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: { OapiSmartdeviceDeviceQuerybyid: true }
649
+ POST: { oapiSmartdeviceDeviceQuerybyid: true }
651
650
  },
652
651
  "/smartdevice/device/querylist": {
653
- POST: { OapiSmartdeviceDeviceQuerylist: true }
652
+ POST: { oapiSmartdeviceDeviceQuerylist: true }
654
653
  },
655
- "/smartdevice/device/query": { POST: { OapiSmartdeviceDeviceQuery: true } },
654
+ "/smartdevice/device/query": { POST: { oapiSmartdeviceDeviceQuery: true } },
656
655
  "/smartdevice/device/updatenick": {
657
- POST: { OapiSmartdeviceDeviceUpdatenick: true }
656
+ POST: { oapiSmartdeviceDeviceUpdatenick: true }
658
657
  },
659
- "/smartdevice/device/unbind": { POST: { OapiSmartdeviceDeviceUnbind: true } },
660
- "/smartdevice/external/bind": { POST: { OapiSmartdeviceExternalBind: true } },
658
+ "/smartdevice/device/unbind": { POST: { oapiSmartdeviceDeviceUnbind: true } },
659
+ "/smartdevice/external/bind": { POST: { oapiSmartdeviceExternalBind: true } },
661
660
  "/crm/objectdata/contact/delete": {
662
- POST: { OapiCrmObjectdataContactDelete: true }
661
+ POST: { oapiCrmObjectdataContactDelete: true }
663
662
  },
664
663
  "/crm/objectdata/customobject/create": {
665
- POST: { OapiCrmObjectdataCustomobjectCreate: true }
664
+ POST: { oapiCrmObjectdataCustomobjectCreate: true }
666
665
  },
667
666
  "/crm/objectdata/customobject/update": {
668
- POST: { OapiCrmObjectdataCustomobjectUpdate: true }
667
+ POST: { oapiCrmObjectdataCustomobjectUpdate: true }
669
668
  },
670
- "/crm/objectdata/list": { POST: { OapiCrmObjectdataList: true } },
671
- "/crm/objectdata/query": { POST: { OapiCrmObjectdataQuery: true } },
672
- "/crm/objectmeta/describe": { POST: { OapiCrmObjectmetaDescribe: true } },
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: { OapiCrmObjectdataContactQuery: true }
673
+ POST: { oapiCrmObjectdataContactQuery: true }
675
674
  },
676
675
  "/crm/objectdata/followrecord/list": {
677
- POST: { OapiCrmObjectdataFollowrecordList: true }
676
+ POST: { oapiCrmObjectdataFollowrecordList: true }
678
677
  },
679
678
  "/crm/objectdata/followrecord/query": {
680
- POST: { OapiCrmObjectdataFollowrecordQuery: true }
679
+ POST: { oapiCrmObjectdataFollowrecordQuery: true }
681
680
  },
682
681
  "/crm/objectdata/contact/list": {
683
- POST: { OapiCrmObjectdataContactList: true }
682
+ POST: { oapiCrmObjectdataContactList: true }
684
683
  },
685
684
  "/crm/objectmeta/contact/describe": {
686
- POST: { OapiCrmObjectmetaContactDescribe: true }
685
+ POST: { oapiCrmObjectmetaContactDescribe: true }
687
686
  },
688
687
  "/crm/objectmeta/followrecord/describe": {
689
- POST: { OapiCrmObjectmetaFollowrecordDescribe: true }
690
- },
691
- "/cspace/add_to_single_chat": { POST: { OapiCspaceAddToSingleChat: true } },
692
- "/cspace/grant_custom_space": { GET: { OapiCspaceGrantCustomSpace: true } },
693
- "/cspace/get_custom_space": { GET: { OapiCspaceGetCustomSpace: true } },
694
- "/cspace/add": { GET: { OapiCspaceAdd: true } },
695
- "/chat/subadmin/update": { POST: { OapiChatSubadminUpdate: true } },
696
- "/chat/qrcode/get": { POST: { OapiChatQrcodeGet: true } },
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: { OapiChatMemberFriendswitchUpdate: true }
697
+ POST: { oapiChatMemberFriendswitchUpdate: true }
699
698
  },
700
- "/chat/updategroupnick": { POST: { OapiChatUpdategroupnick: true } },
701
- "/chat/update": { POST: { OapiChatUpdate: true } },
702
- "/chat/create": { POST: { OapiChatCreate: true } },
703
- "/chat/get": { GET: { OapiChatGet: true } },
704
- "/smartbot/msg/push": { POST: { OapiSmartbotMsgPush: true } }
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