mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-11-30 16:02:58 +08:00
feat: 扩展 Skill 支持定时日报操作
This commit is contained in:
1 parent
7cf043e3c3
commit
a007e110ac
9 files changed
+1233
-16
No files matched your search
@@ -11,6 +11,16 @@ export const LOCAL_API_ENDPOINTS = {
|
||||
},
|
||||
'group-snapshot': { method: 'GET', path: '/api/v1/group_snapshot', queryKeys: ['md5'] },
|
||||
resolve: { method: 'GET', path: '/api/v1/resolve', queryKeys: ['q'] },
|
||||
'wechat-send-capability': {
|
||||
method: 'GET',
|
||||
path: '/api/v1/wechat-personal/send-capability',
|
||||
queryKeys: []
|
||||
},
|
||||
'scheduled-reports': {
|
||||
method: 'GET',
|
||||
path: '/api/v1/scheduled-reports',
|
||||
queryKeys: []
|
||||
},
|
||||
report: { method: 'POST', path: '/api/v1/report', queryKeys: [] },
|
||||
'agent-status': { method: 'GET', path: '/api/v1/agent/status', queryKeys: [] },
|
||||
'agent-group-report': { method: 'POST', path: '/api/v1/agent/group-report', queryKeys: [] },
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
import type { ScheduledReportRange, ScheduledReportExecutionStatus } from './scheduled-report'
|
||||
|
||||
export type ScheduledReportApiSchedule = {
|
||||
type: 'daily'
|
||||
time: string
|
||||
}
|
||||
|
||||
export interface ScheduledReportApiGroupRef {
|
||||
talker?: string
|
||||
name?: string
|
||||
}
|
||||
|
||||
export interface ScheduledReportApiTargetRef {
|
||||
type: 'wechat_group'
|
||||
talker?: string
|
||||
name?: string
|
||||
}
|
||||
|
||||
export interface ScheduledReportApiTask {
|
||||
id: string
|
||||
name: string
|
||||
group: {
|
||||
talker: string
|
||||
name: string
|
||||
}
|
||||
schedule: ScheduledReportApiSchedule
|
||||
reportRange: ScheduledReportRange
|
||||
target: {
|
||||
type: 'wechat_group'
|
||||
talker: string
|
||||
name: string
|
||||
}
|
||||
enabled: boolean
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
lastRunAt?: string
|
||||
nextRunAt: string
|
||||
}
|
||||
|
||||
export interface ScheduledReportApiCreateRequest {
|
||||
name?: string
|
||||
group: ScheduledReportApiGroupRef | string
|
||||
schedule: ScheduledReportApiSchedule
|
||||
reportRange?: ScheduledReportRange
|
||||
target?: ScheduledReportApiTargetRef
|
||||
enabled?: boolean
|
||||
}
|
||||
|
||||
export interface ScheduledReportApiUpdateRequest {
|
||||
name?: string
|
||||
group?: ScheduledReportApiGroupRef | string
|
||||
schedule?: ScheduledReportApiSchedule
|
||||
reportRange?: ScheduledReportRange
|
||||
target?: ScheduledReportApiTargetRef
|
||||
enabled?: boolean
|
||||
}
|
||||
|
||||
export interface ScheduledReportApiExecution {
|
||||
id: string
|
||||
taskId: string
|
||||
startedAt: string
|
||||
finishedAt?: string
|
||||
status: ScheduledReportExecutionStatus
|
||||
error?: string
|
||||
message?: string
|
||||
scheduledSlot?: string
|
||||
}
|
||||
Reference in new issue
Block a user