@iflyrpa/actions 4.0.2-beta.0 → 4.0.4-beta.0
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/dist/actions/searchPublishInfo/handleDouyinData.d.ts +17 -0
- package/dist/actions/searchPublishInfo/handleShipinhaoData.d.ts +17 -0
- package/dist/actions/searchPublishInfo/index.d.ts +7 -0
- package/dist/actions/searchPublishInfo/types.d.ts +94 -0
- package/dist/actions/weixinPublish/index.d.ts +2 -2
- package/dist/actions/xiaohongshuPublish/index.d.ts +1 -1
- package/dist/bundle.js +4379 -239
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +60 -0
- package/dist/index.js +451 -1154
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +451 -1148
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/utils/http.d.ts +2 -1
- package/dist/utils/proxy.d.ts +2 -2
- package/package.json +2 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AutomateTask } from "@iflyrpa/share";
|
|
2
|
+
import { type FetchArticlesParams } from ".";
|
|
3
|
+
import { FetchArticlesResponse } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* 抖音作品数据采集
|
|
6
|
+
*
|
|
7
|
+
* 采集内容:
|
|
8
|
+
* 1. 账号维度数据:粉丝、获赞、近7日数据(需开通数据中心)
|
|
9
|
+
* 2. 作品维度数据:封面图、标题、发布时间、统计数据等
|
|
10
|
+
*
|
|
11
|
+
* 参考小红书实现模式:
|
|
12
|
+
* - 内部封装 fetchWorks 函数
|
|
13
|
+
* - 支持自动分页
|
|
14
|
+
* - 支持代理配置
|
|
15
|
+
* - 支持重试机制
|
|
16
|
+
*/
|
|
17
|
+
export declare function handleDouyinData(_task: AutomateTask, params: FetchArticlesParams): Promise<FetchArticlesResponse>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AutomateTask } from "@iflyrpa/share";
|
|
2
|
+
import { type FetchArticlesParams } from ".";
|
|
3
|
+
import { FetchArticlesResponse } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* 视频号作品数据采集
|
|
6
|
+
*
|
|
7
|
+
* 采集内容:
|
|
8
|
+
* 1. 账号维度数据:关注者、昨日净增关注、昨日新增播放、昨日新增喜欢、昨日新增评论
|
|
9
|
+
* 2. 作品维度数据:封面图、标题、发布时间、阅读/喜欢/评论/转发/点赞等
|
|
10
|
+
*
|
|
11
|
+
* 参考小红书实现模式:
|
|
12
|
+
* - 内部封装 fetchPosts 函数
|
|
13
|
+
* - 支持代理配置
|
|
14
|
+
* - 支持重试机制
|
|
15
|
+
* - 视频和图文分别获取后合并
|
|
16
|
+
*/
|
|
17
|
+
export declare function handleShipinhaoData(_task: AutomateTask, params: FetchArticlesParams): Promise<FetchArticlesResponse>;
|
|
@@ -45,6 +45,13 @@ export declare const FetchArticlesParamsSchema: z.ZodObject<{
|
|
|
45
45
|
cursor: z.ZodOptional<z.ZodNumber>;
|
|
46
46
|
lastPage: z.ZodOptional<z.ZodNumber>;
|
|
47
47
|
containsArticle: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
includeAccount: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
postType: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
article: "article";
|
|
52
|
+
video: "video";
|
|
53
|
+
all: "all";
|
|
54
|
+
}>>;
|
|
48
55
|
}, z.core.$strip>;
|
|
49
56
|
export type FetchArticlesParams = z.infer<typeof FetchArticlesParamsSchema>;
|
|
50
57
|
export declare const FetchArticles: CommonAction<FetchArticlesParams, FetchArticlesData | Record<string, never>>;
|
|
@@ -50,6 +50,40 @@ export declare const XiaohongshuArticleSchema: z.ZodObject<{
|
|
|
50
50
|
shareNum: z.ZodNumber;
|
|
51
51
|
}, z.core.$strip>;
|
|
52
52
|
export type XiaohongshuArticle = z.infer<typeof XiaohongshuArticleSchema>;
|
|
53
|
+
export declare const DouyinArticleSchema: z.ZodObject<{
|
|
54
|
+
title: z.ZodString;
|
|
55
|
+
imageUrl: z.ZodString;
|
|
56
|
+
createTime: z.ZodNumber;
|
|
57
|
+
redirectUrl: z.ZodString;
|
|
58
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
59
|
+
playNum: z.ZodNumber;
|
|
60
|
+
likeNum: z.ZodNumber;
|
|
61
|
+
commentNum: z.ZodNumber;
|
|
62
|
+
shareNum: z.ZodNumber;
|
|
63
|
+
collectNum: z.ZodNumber;
|
|
64
|
+
awemeId: z.ZodString;
|
|
65
|
+
awemeType: z.ZodNumber;
|
|
66
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
status: z.ZodString;
|
|
68
|
+
publicUrl: z.ZodString;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type DouyinArticle = z.infer<typeof DouyinArticleSchema>;
|
|
71
|
+
export declare const ShipinhaoArticleSchema: z.ZodObject<{
|
|
72
|
+
title: z.ZodString;
|
|
73
|
+
imageUrl: z.ZodString;
|
|
74
|
+
createTime: z.ZodNumber;
|
|
75
|
+
redirectUrl: z.ZodString;
|
|
76
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
77
|
+
readNum: z.ZodNumber;
|
|
78
|
+
likeNum: z.ZodNumber;
|
|
79
|
+
commentNum: z.ZodNumber;
|
|
80
|
+
forwardNum: z.ZodNumber;
|
|
81
|
+
favNum: z.ZodNumber;
|
|
82
|
+
objectId: z.ZodString;
|
|
83
|
+
postType: z.ZodString;
|
|
84
|
+
postStatus: z.ZodNumber;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type ShipinhaoArticle = z.infer<typeof ShipinhaoArticleSchema>;
|
|
53
87
|
export declare const FetchArticlesDataSchema: z.ZodObject<{
|
|
54
88
|
articleCell: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
55
89
|
title: z.ZodString;
|
|
@@ -94,6 +128,36 @@ export declare const FetchArticlesDataSchema: z.ZodObject<{
|
|
|
94
128
|
commentNum: z.ZodNumber;
|
|
95
129
|
collectNum: z.ZodNumber;
|
|
96
130
|
shareNum: z.ZodNumber;
|
|
131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
132
|
+
title: z.ZodString;
|
|
133
|
+
imageUrl: z.ZodString;
|
|
134
|
+
createTime: z.ZodNumber;
|
|
135
|
+
redirectUrl: z.ZodString;
|
|
136
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
137
|
+
playNum: z.ZodNumber;
|
|
138
|
+
likeNum: z.ZodNumber;
|
|
139
|
+
commentNum: z.ZodNumber;
|
|
140
|
+
shareNum: z.ZodNumber;
|
|
141
|
+
collectNum: z.ZodNumber;
|
|
142
|
+
awemeId: z.ZodString;
|
|
143
|
+
awemeType: z.ZodNumber;
|
|
144
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
status: z.ZodString;
|
|
146
|
+
publicUrl: z.ZodString;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
+
title: z.ZodString;
|
|
149
|
+
imageUrl: z.ZodString;
|
|
150
|
+
createTime: z.ZodNumber;
|
|
151
|
+
redirectUrl: z.ZodString;
|
|
152
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
153
|
+
readNum: z.ZodNumber;
|
|
154
|
+
likeNum: z.ZodNumber;
|
|
155
|
+
commentNum: z.ZodNumber;
|
|
156
|
+
forwardNum: z.ZodNumber;
|
|
157
|
+
favNum: z.ZodNumber;
|
|
158
|
+
objectId: z.ZodString;
|
|
159
|
+
postType: z.ZodString;
|
|
160
|
+
postStatus: z.ZodNumber;
|
|
97
161
|
}, z.core.$strip>]>>>;
|
|
98
162
|
timerPublish: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
99
163
|
title: z.ZodString;
|
|
@@ -138,6 +202,36 @@ export declare const FetchArticlesDataSchema: z.ZodObject<{
|
|
|
138
202
|
commentNum: z.ZodNumber;
|
|
139
203
|
collectNum: z.ZodNumber;
|
|
140
204
|
shareNum: z.ZodNumber;
|
|
205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
206
|
+
title: z.ZodString;
|
|
207
|
+
imageUrl: z.ZodString;
|
|
208
|
+
createTime: z.ZodNumber;
|
|
209
|
+
redirectUrl: z.ZodString;
|
|
210
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
211
|
+
playNum: z.ZodNumber;
|
|
212
|
+
likeNum: z.ZodNumber;
|
|
213
|
+
commentNum: z.ZodNumber;
|
|
214
|
+
shareNum: z.ZodNumber;
|
|
215
|
+
collectNum: z.ZodNumber;
|
|
216
|
+
awemeId: z.ZodString;
|
|
217
|
+
awemeType: z.ZodNumber;
|
|
218
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
status: z.ZodString;
|
|
220
|
+
publicUrl: z.ZodString;
|
|
221
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
222
|
+
title: z.ZodString;
|
|
223
|
+
imageUrl: z.ZodString;
|
|
224
|
+
createTime: z.ZodNumber;
|
|
225
|
+
redirectUrl: z.ZodString;
|
|
226
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
227
|
+
readNum: z.ZodNumber;
|
|
228
|
+
likeNum: z.ZodNumber;
|
|
229
|
+
commentNum: z.ZodNumber;
|
|
230
|
+
forwardNum: z.ZodNumber;
|
|
231
|
+
favNum: z.ZodNumber;
|
|
232
|
+
objectId: z.ZodString;
|
|
233
|
+
postType: z.ZodString;
|
|
234
|
+
postStatus: z.ZodNumber;
|
|
141
235
|
}, z.core.$strip>]>>>;
|
|
142
236
|
pagination: z.ZodOptional<z.ZodObject<{
|
|
143
237
|
total: z.ZodOptional<z.ZodNumber>;
|
|
@@ -11,8 +11,8 @@ export interface WxInteraction {
|
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
export declare const WxInteractionSchema: z.ZodObject<{
|
|
13
13
|
Type: z.ZodEnum<{
|
|
14
|
-
public: "public";
|
|
15
14
|
private: "private";
|
|
15
|
+
public: "public";
|
|
16
16
|
off: "off";
|
|
17
17
|
}>;
|
|
18
18
|
Option: z.ZodOptional<z.ZodObject<{
|
|
@@ -88,8 +88,8 @@ export declare const WeixinPublishParamsSchema: z.ZodObject<{
|
|
|
88
88
|
wxCreationSource: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
89
|
wxInteraction: z.ZodOptional<z.ZodObject<{
|
|
90
90
|
Type: z.ZodEnum<{
|
|
91
|
-
public: "public";
|
|
92
91
|
private: "private";
|
|
92
|
+
public: "public";
|
|
93
93
|
off: "off";
|
|
94
94
|
}>;
|
|
95
95
|
Option: z.ZodOptional<z.ZodObject<{
|
|
@@ -62,8 +62,8 @@ export declare const XiaohongshuPublishParamsSchema: z.ZodObject<{
|
|
|
62
62
|
localIP: z.ZodOptional<z.ZodString>;
|
|
63
63
|
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
64
64
|
visibleRange: z.ZodEnum<{
|
|
65
|
-
public: "public";
|
|
66
65
|
private: "private";
|
|
66
|
+
public: "public";
|
|
67
67
|
friends: "friends";
|
|
68
68
|
}>;
|
|
69
69
|
isImmediatelyPublish: z.ZodOptional<z.ZodBoolean>;
|