Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-adapter-wecom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
koishi-plugin-adapter-wecom
Commits
a0aea6aa
Commit
a0aea6aa
authored
Oct 31, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix event name
parent
a686ebd6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
15 deletions
+23
-15
src/index.ts
src/index.ts
+15
-15
webpack.config.js
webpack.config.js
+8
-0
No files found.
src/index.ts
View file @
a0aea6aa
...
...
@@ -20,15 +20,15 @@ declare module 'koishi' {
wecom
?:
WecomEventBody
;
}
interface
EventMap
{
'
wecom/enter
_
agent
'
:
WecomEventFunction
;
'
wecom/enter
-
agent
'
:
WecomEventFunction
;
'
wecom/subscribe
'
:
WecomEventFunction
;
'
wecom/unsubscribe
'
:
WecomEventFunction
;
'
wecom/
LOCATION
'
:
WecomEventFunction
<
{
'
wecom/
location
'
:
WecomEventFunction
<
{
Latitude
:
number
;
Longitude
:
number
;
Precision
:
number
;
}
>
;
'
wecom/batch
_job_
result
'
:
WecomEventFunction
<
{
'
wecom/batch
-job-
result
'
:
WecomEventFunction
<
{
BatchJob
:
{
JobId
:
string
;
JobType
:
string
;
...
...
@@ -38,12 +38,12 @@ declare module 'koishi' {
}
>
;
'
wecom/click
'
:
WecomEventFunction
<
EventKeyBody
>
;
'
wecom/view
'
:
WecomEventFunction
<
EventKeyBody
>
;
'
wecom/scancode
_
push
'
:
WecomEventFunction
<
ScanCodeEventBody
>
;
'
wecom/scancode
_
waitmsg
'
:
WecomEventFunction
<
ScanCodeEventBody
>
;
'
wecom/pic
_
sysphoto
'
:
WecomEventFunction
<
PhotoEventBody
>
;
'
wecom/pic
_photo_or_
album
'
:
WecomEventFunction
<
PhotoEventBody
>
;
'
wecom/pic
_
weixin
'
:
WecomEventFunction
<
PhotoEventBody
>
;
'
wecom/location
_
select
'
:
WecomEventFunction
<
'
wecom/scancode
-
push
'
:
WecomEventFunction
<
ScanCodeEventBody
>
;
'
wecom/scancode
-
waitmsg
'
:
WecomEventFunction
<
ScanCodeEventBody
>
;
'
wecom/pic
-
sysphoto
'
:
WecomEventFunction
<
PhotoEventBody
>
;
'
wecom/pic
-photo-or-
album
'
:
WecomEventFunction
<
PhotoEventBody
>
;
'
wecom/pic
-
weixin
'
:
WecomEventFunction
<
PhotoEventBody
>
;
'
wecom/location
-
select
'
:
WecomEventFunction
<
EventKeyBody
&
{
SendLocationInfo
:
{
Location_X
:
number
;
...
...
@@ -54,18 +54,18 @@ declare module 'koishi' {
};
}
>
;
'
wecom/share
_agent_
change
'
:
WecomEventFunction
;
'
wecom/share
_chain_
change
'
:
WecomEventFunction
;
'
wecom/template
_card_
event
'
:
WecomEventFunction
<
'
wecom/share
-agent-
change
'
:
WecomEventFunction
;
'
wecom/share
-chain-
change
'
:
WecomEventFunction
;
'
wecom/template
-card-
event
'
:
WecomEventFunction
<
CardEvent
&
{
SelectedItems
:
CardEventSelectedItems
;
}
>
;
'
wecom/template
_card_menu_
event
'
:
WecomEventFunction
<
CardEvent
>
;
'
wecom/open
_approval_
change
'
:
WecomEventFunction
<
{
'
wecom/template
-card-menu-
event
'
:
WecomEventFunction
<
CardEvent
>
;
'
wecom/open
-approval-
change
'
:
WecomEventFunction
<
{
ApprovalInfo
:
ApprovalInfo
;
}
>
;
'
wecom/change
_
contact
'
:
WecomEventFunction
<
ChangeContact
>
;
'
wecom/change
-
contact
'
:
WecomEventFunction
<
ChangeContact
>
;
}
}
...
...
webpack.config.js
View file @
a0aea6aa
const
path
=
require
(
'
path
'
);
const
packgeInfo
=
require
(
'
./package.json
'
);
const
{
ESBuildMinifyPlugin
}
=
require
(
'
esbuild-loader
'
);
function
externalsFromDep
()
{
return
Object
.
fromEntries
(
...
...
@@ -43,4 +44,11 @@ module.exports = {
koishi
:
'
koishi
'
,
...(
packAll
?
{}
:
externalsFromDep
()),
},
optimization
:
{
minimizer
:
[
new
ESBuildMinifyPlugin
({
keepNames
:
true
,
}),
],
},
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment