@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.
Files changed (48) 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 +3 -4
  44. package/lib/http.d.ts +2 -2
  45. package/lib/index.js +159 -157
  46. package/lib/index.js.map +2 -2
  47. package/lib/ws.d.ts +1 -1
  48. 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.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,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.Server {
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 start(bot) {
111
+ async connect(bot) {
111
112
  await bot.refreshToken();
112
- bot.selfId = bot.config.appkey;
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(session);
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
- this.bot.selfId = this.bot.config.appkey;
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.bot.socket.addEventListener("message", async ({ data }) => {
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.bot.socket.send(JSON.stringify({
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.WsClient.Config
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 initialize() {
384
- const { appList } = await this.internal.OapiMicroappList();
384
+ async getLogin() {
385
+ const { appList } = await this.internal.oapiMicroappList();
385
386
  const self = appList.find((v) => v.agentId === this.config.agentId);
386
- this.username = self.name;
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: { 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 } },
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: { OapiSmartworkHrmRosterMetaGet: true }
477
+ POST: { oapiSmartworkHrmRosterMetaGet: true }
476
478
  },
477
479
  "/smartwork/hrm/employee/v2/list": {
478
- POST: { OapiSmartworkHrmEmployeeV2List: true }
480
+ POST: { oapiSmartworkHrmEmployeeV2List: true }
479
481
  },
480
482
  "/smartwork/hrm/employee/v2/update": {
481
- POST: { OapiSmartworkHrmEmployeeV2Update: true }
483
+ POST: { oapiSmartworkHrmEmployeeV2Update: true }
482
484
  },
483
485
  "/smartwork/hrm/employee/field/grouplist": {
484
- POST: { OapiSmartworkHrmEmployeeFieldGrouplist: true }
486
+ POST: { oapiSmartworkHrmEmployeeFieldGrouplist: true }
485
487
  },
486
488
  "/smartwork/hrm/employee/update": {
487
- POST: { OapiSmartworkHrmEmployeeUpdate: true }
489
+ POST: { oapiSmartworkHrmEmployeeUpdate: true }
488
490
  },
489
491
  "/smartwork/hrm/employee/queryonjob": {
490
- POST: { OapiSmartworkHrmEmployeeQueryonjob: true }
492
+ POST: { oapiSmartworkHrmEmployeeQueryonjob: true }
491
493
  },
492
494
  "/smartwork/hrm/employee/querypreentry": {
493
- POST: { OapiSmartworkHrmEmployeeQuerypreentry: true }
495
+ POST: { oapiSmartworkHrmEmployeeQuerypreentry: true }
494
496
  },
495
497
  "/smartwork/hrm/employee/addpreentry": {
496
- POST: { OapiSmartworkHrmEmployeeAddpreentry: true }
498
+ POST: { oapiSmartworkHrmEmployeeAddpreentry: true }
497
499
  },
498
500
  "/smartwork/hrm/employee/list": {
499
- POST: { OapiSmartworkHrmEmployeeList: true }
501
+ POST: { oapiSmartworkHrmEmployeeList: true }
500
502
  },
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 } },
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: { OapiReportStatisticsListbytype: true }
508
+ POST: { oapiReportStatisticsListbytype: true }
507
509
  },
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 } },
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: { 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 } },
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: { OapiHealthStepinfoGetuserstatus: true }
528
+ POST: { oapiHealthStepinfoGetuserstatus: true }
527
529
  },
528
530
  "/health/stepinfo/listbyuserid": {
529
- POST: { OapiHealthStepinfoListbyuserid: true }
531
+ POST: { oapiHealthStepinfoListbyuserid: true }
530
532
  },
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 } },
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: { OapiMicroappSetVisibleScopes: true }
538
+ POST: { oapiMicroappSetVisibleScopes: true }
537
539
  },
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 } },
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: { OapiImChatScencegroupMessageSendV2: true }
545
+ POST: { oapiImChatScencegroupMessageSendV2: true }
544
546
  },
545
547
  "/im/chat/scenegroup/template/close": {
546
- POST: { OapiImChatScenegroupTemplateClose: true }
548
+ POST: { oapiImChatScenegroupTemplateClose: true }
547
549
  },
548
550
  "/im/chat/scenegroup/template/apply": {
549
- POST: { OapiImChatScenegroupTemplateApply: true }
551
+ POST: { oapiImChatScenegroupTemplateApply: true }
550
552
  },
551
553
  "/im/chat/scencegroup/interactivecard/callback/register": {
552
- POST: { OapiImChatScencegroupInteractivecardCallbackRegister: true }
554
+ POST: { oapiImChatScencegroupInteractivecardCallbackRegister: true }
553
555
  },
554
- "/im/chat/scenegroup/create": { POST: { OapiImChatScenegroupCreate: true } },
556
+ "/im/chat/scenegroup/create": { POST: { oapiImChatScenegroupCreate: true } },
555
557
  "/im/chat/scenegroup/member/add": {
556
- POST: { OapiImChatScenegroupMemberAdd: true }
558
+ POST: { oapiImChatScenegroupMemberAdd: true }
557
559
  },
558
560
  "/im/chat/scenegroup/member/get": {
559
- POST: { OapiImChatScenegroupMemberGet: true }
561
+ POST: { oapiImChatScenegroupMemberGet: true }
560
562
  },
561
- "/im/chat/scenegroup/update": { POST: { OapiImChatScenegroupUpdate: true } },
563
+ "/im/chat/scenegroup/update": { POST: { oapiImChatScenegroupUpdate: true } },
562
564
  "/im/chat/scenegroup/member/delete": {
563
- POST: { OapiImChatScenegroupMemberDelete: true }
565
+ POST: { oapiImChatScenegroupMemberDelete: true }
564
566
  },
565
- "/im/chat/scenegroup/get": { POST: { OapiImChatScenegroupGet: true } },
566
- "/robot/send": { POST: { OapiRobotSend: true } },
567
+ "/im/chat/scenegroup/get": { POST: { oapiImChatScenegroupGet: true } },
568
+ "/robot/send": { POST: { oapiRobotSend: true } },
567
569
  "/alitrip/btrip/invoice/setting/rule": {
568
- POST: { OapiAlitripBtripInvoiceSettingRule: true }
570
+ POST: { oapiAlitripBtripInvoiceSettingRule: true }
569
571
  },
570
572
  "/alitrip/btrip/invoice/setting/add": {
571
- POST: { OapiAlitripBtripInvoiceSettingAdd: true }
573
+ POST: { oapiAlitripBtripInvoiceSettingAdd: true }
572
574
  },
573
575
  "/alitrip/btrip/project/delete": {
574
- POST: { OapiAlitripBtripProjectDelete: true }
576
+ POST: { oapiAlitripBtripProjectDelete: true }
575
577
  },
576
578
  "/alitrip/btrip/project/modify": {
577
- POST: { OapiAlitripBtripProjectModify: true }
579
+ POST: { oapiAlitripBtripProjectModify: true }
578
580
  },
579
- "/alitrip/btrip/project/add": { POST: { OapiAlitripBtripProjectAdd: true } },
581
+ "/alitrip/btrip/project/add": { POST: { oapiAlitripBtripProjectAdd: true } },
580
582
  "/alitrip/btrip/invoice/setting/delete": {
581
- POST: { OapiAlitripBtripInvoiceSettingDelete: true }
583
+ POST: { oapiAlitripBtripInvoiceSettingDelete: true }
582
584
  },
583
585
  "/alitrip/btrip/invoice/setting/modify": {
584
- POST: { OapiAlitripBtripInvoiceSettingModify: true }
586
+ POST: { oapiAlitripBtripInvoiceSettingModify: true }
585
587
  },
586
- "/alitrip/btrip/price/query": { POST: { OapiAlitripBtripPriceQuery: true } },
588
+ "/alitrip/btrip/price/query": { POST: { oapiAlitripBtripPriceQuery: true } },
587
589
  "/alitrip/btrip/train/city/suggest": {
588
- POST: { OapiAlitripBtripTrainCitySuggest: true }
590
+ POST: { oapiAlitripBtripTrainCitySuggest: true }
589
591
  },
590
592
  "/alitrip/btrip/monthbill/url/get": {
591
- POST: { OapiAlitripBtripMonthbillUrlGet: true }
593
+ POST: { oapiAlitripBtripMonthbillUrlGet: true }
592
594
  },
593
- "/alitrip/btrip/address/get": { POST: { OapiAlitripBtripAddressGet: true } },
595
+ "/alitrip/btrip/address/get": { POST: { oapiAlitripBtripAddressGet: true } },
594
596
  "/alitrip/btrip/approval/modify": {
595
- POST: { OapiAlitripBtripApprovalModify: true }
597
+ POST: { oapiAlitripBtripApprovalModify: true }
596
598
  },
597
599
  "/alitrip/btrip/flight/city/suggest": {
598
- POST: { OapiAlitripBtripFlightCitySuggest: true }
600
+ POST: { oapiAlitripBtripFlightCitySuggest: true }
599
601
  },
600
602
  "/alitrip/btrip/vehicle/order/search": {
601
- POST: { OapiAlitripBtripVehicleOrderSearch: true }
603
+ POST: { oapiAlitripBtripVehicleOrderSearch: true }
602
604
  },
603
605
  "/alitrip/btrip/cost/center/query": {
604
- POST: { OapiAlitripBtripCostCenterQuery: true }
606
+ POST: { oapiAlitripBtripCostCenterQuery: true }
605
607
  },
606
608
  "/alitrip/btrip/approval/update": {
607
- POST: { OapiAlitripBtripApprovalUpdate: true }
609
+ POST: { oapiAlitripBtripApprovalUpdate: true }
608
610
  },
609
611
  "/alitrip/btrip/cost/center/new": {
610
- POST: { OapiAlitripBtripCostCenterNew: true }
612
+ POST: { oapiAlitripBtripCostCenterNew: true }
611
613
  },
612
614
  "/alitrip/btrip/cost/center/modify": {
613
- POST: { OapiAlitripBtripCostCenterModify: true }
615
+ POST: { oapiAlitripBtripCostCenterModify: true }
614
616
  },
615
617
  "/alitrip/btrip/cost/center/delete": {
616
- POST: { OapiAlitripBtripCostCenterDelete: true }
618
+ POST: { oapiAlitripBtripCostCenterDelete: true }
617
619
  },
618
620
  "/alitrip/btrip/cost/center/entity/set": {
619
- POST: { OapiAlitripBtripCostCenterEntitySet: true }
621
+ POST: { oapiAlitripBtripCostCenterEntitySet: true }
620
622
  },
621
623
  "/alitrip/btrip/hotel/order/search": {
622
- POST: { OapiAlitripBtripHotelOrderSearch: true }
624
+ POST: { oapiAlitripBtripHotelOrderSearch: true }
623
625
  },
624
626
  "/alitrip/btrip/train/order/search": {
625
- POST: { OapiAlitripBtripTrainOrderSearch: true }
627
+ POST: { oapiAlitripBtripTrainOrderSearch: true }
626
628
  },
627
629
  "/alitrip/btrip/flight/order/search": {
628
- POST: { OapiAlitripBtripFlightOrderSearch: true }
630
+ POST: { oapiAlitripBtripFlightOrderSearch: true }
629
631
  },
630
632
  "/alitrip/btrip/invoice/search": {
631
- POST: { OapiAlitripBtripInvoiceSearch: true }
633
+ POST: { oapiAlitripBtripInvoiceSearch: true }
632
634
  },
633
635
  "/alitrip/btrip/cost/center/transfer": {
634
- POST: { OapiAlitripBtripCostCenterTransfer: true }
636
+ POST: { oapiAlitripBtripCostCenterTransfer: true }
635
637
  },
636
- "/alitrip/btrip/apply/get": { POST: { OapiAlitripBtripApplyGet: true } },
638
+ "/alitrip/btrip/apply/get": { POST: { oapiAlitripBtripApplyGet: true } },
637
639
  "/alitrip/btrip/apply/search": {
638
- POST: { OapiAlitripBtripApplySearch: true }
640
+ POST: { oapiAlitripBtripApplySearch: true }
639
641
  },
640
642
  "/alitrip/btrip/approval/new": {
641
- POST: { OapiAlitripBtripApprovalNew: true }
643
+ POST: { oapiAlitripBtripApprovalNew: true }
642
644
  },
643
645
  "/alitrip/btrip/cost/center/entity/delete": {
644
- POST: { OapiAlitripBtripCostCenterEntityDelete: true }
646
+ POST: { oapiAlitripBtripCostCenterEntityDelete: true }
645
647
  },
646
- "/workspace/auditlog/list": { POST: { OapiWorkspaceAuditlogList: true } },
647
- "/edu/cert/get": { POST: { OapiEduCertGet: true } },
648
- "/edu/user/list": { POST: { OapiEduUserList: true } },
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: { OapiSmartdeviceDeviceQuerybyid: true }
652
+ POST: { oapiSmartdeviceDeviceQuerybyid: true }
651
653
  },
652
654
  "/smartdevice/device/querylist": {
653
- POST: { OapiSmartdeviceDeviceQuerylist: true }
655
+ POST: { oapiSmartdeviceDeviceQuerylist: true }
654
656
  },
655
- "/smartdevice/device/query": { POST: { OapiSmartdeviceDeviceQuery: true } },
657
+ "/smartdevice/device/query": { POST: { oapiSmartdeviceDeviceQuery: true } },
656
658
  "/smartdevice/device/updatenick": {
657
- POST: { OapiSmartdeviceDeviceUpdatenick: true }
659
+ POST: { oapiSmartdeviceDeviceUpdatenick: true }
658
660
  },
659
- "/smartdevice/device/unbind": { POST: { OapiSmartdeviceDeviceUnbind: true } },
660
- "/smartdevice/external/bind": { POST: { OapiSmartdeviceExternalBind: true } },
661
+ "/smartdevice/device/unbind": { POST: { oapiSmartdeviceDeviceUnbind: true } },
662
+ "/smartdevice/external/bind": { POST: { oapiSmartdeviceExternalBind: true } },
661
663
  "/crm/objectdata/contact/delete": {
662
- POST: { OapiCrmObjectdataContactDelete: true }
664
+ POST: { oapiCrmObjectdataContactDelete: true }
663
665
  },
664
666
  "/crm/objectdata/customobject/create": {
665
- POST: { OapiCrmObjectdataCustomobjectCreate: true }
667
+ POST: { oapiCrmObjectdataCustomobjectCreate: true }
666
668
  },
667
669
  "/crm/objectdata/customobject/update": {
668
- POST: { OapiCrmObjectdataCustomobjectUpdate: true }
670
+ POST: { oapiCrmObjectdataCustomobjectUpdate: true }
669
671
  },
670
- "/crm/objectdata/list": { POST: { OapiCrmObjectdataList: true } },
671
- "/crm/objectdata/query": { POST: { OapiCrmObjectdataQuery: true } },
672
- "/crm/objectmeta/describe": { POST: { OapiCrmObjectmetaDescribe: true } },
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: { OapiCrmObjectdataContactQuery: true }
676
+ POST: { oapiCrmObjectdataContactQuery: true }
675
677
  },
676
678
  "/crm/objectdata/followrecord/list": {
677
- POST: { OapiCrmObjectdataFollowrecordList: true }
679
+ POST: { oapiCrmObjectdataFollowrecordList: true }
678
680
  },
679
681
  "/crm/objectdata/followrecord/query": {
680
- POST: { OapiCrmObjectdataFollowrecordQuery: true }
682
+ POST: { oapiCrmObjectdataFollowrecordQuery: true }
681
683
  },
682
684
  "/crm/objectdata/contact/list": {
683
- POST: { OapiCrmObjectdataContactList: true }
685
+ POST: { oapiCrmObjectdataContactList: true }
684
686
  },
685
687
  "/crm/objectmeta/contact/describe": {
686
- POST: { OapiCrmObjectmetaContactDescribe: true }
688
+ POST: { oapiCrmObjectmetaContactDescribe: true }
687
689
  },
688
690
  "/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 } },
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: { OapiChatMemberFriendswitchUpdate: true }
700
+ POST: { oapiChatMemberFriendswitchUpdate: true }
699
701
  },
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 } }
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