@iflyrpa/actions 1.2.32 → 2.0.0-beta.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.
- package/dist/actions/baijiahaoLogin/index.d.ts +3 -3
- package/dist/actions/baijiahaoPublish/index.d.ts +6 -0
- package/dist/actions/common/sessionCheck/index.d.ts +12 -0
- package/dist/actions/douyinGetCollection/index.d.ts +27 -0
- package/dist/actions/douyinGetCollection/schema.d.ts +33 -0
- package/dist/actions/douyinGetHot/index.d.ts +30 -0
- package/dist/actions/douyinGetHot/schema.d.ts +33 -0
- package/dist/actions/douyinGetLocation/index.d.ts +30 -0
- package/dist/actions/douyinGetLocation/schema.d.ts +33 -0
- package/dist/actions/douyinGetMusic/index.d.ts +33 -0
- package/dist/actions/douyinGetMusic/schema.d.ts +33 -0
- package/dist/actions/douyinGetMusicByCategory/index.d.ts +26 -0
- package/dist/actions/douyinGetMusicByCategory/schema.d.ts +34 -0
- package/dist/actions/douyinGetMusicCategory/index.d.ts +46 -0
- package/dist/actions/douyinGetMusicCategory/schema.d.ts +33 -0
- package/dist/actions/douyinGetTopics/index.d.ts +27 -0
- package/dist/actions/douyinGetTopics/schema.d.ts +33 -0
- package/dist/actions/douyinLogin/index.d.ts +3 -3
- package/dist/actions/douyinPublish/index.d.ts +102 -0
- package/dist/actions/douyinPublish/mock.d.ts +2 -0
- package/dist/actions/douyinPublish/rpa.d.ts +2 -0
- package/dist/actions/searchAccountInfo/index.d.ts +6 -0
- package/dist/actions/searchPublishInfo/index.d.ts +6 -0
- package/dist/actions/toutiaoLogin/index.d.ts +3 -3
- package/dist/actions/toutiaoPublish/index.d.ts +6 -0
- package/dist/actions/weixinLogin/index.d.ts +3 -3
- package/dist/actions/weixinPublish/index.d.ts +6 -0
- package/dist/actions/xiaohongshuLogin/index.d.ts +3 -3
- package/dist/actions/xiaohongshuPublish/index.d.ts +6 -0
- package/dist/actions/xiaohongshuWebSearch/index.d.ts +6 -0
- package/dist/bundle.js +2386 -619
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.js +2378 -606
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2372 -588
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +15 -27
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -7,7 +7,21 @@ declare module "axios" {
|
|
|
7
7
|
defaultErrorMsg?: string;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
+
export declare const ActionParamsSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodOptional<z.ZodString>;
|
|
12
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
13
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
14
|
+
width: z.ZodNumber;
|
|
15
|
+
height: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
10
18
|
export declare const ActionCommonParamsSchema: z.ZodObject<{
|
|
19
|
+
id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
21
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
22
|
+
width: z.ZodNumber;
|
|
23
|
+
height: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
11
25
|
url: z.ZodOptional<z.ZodString>;
|
|
12
26
|
cookies: z.ZodArray<z.ZodObject<{
|
|
13
27
|
name: z.ZodString;
|
|
@@ -38,32 +52,6 @@ export type AxiosProxyParams = [
|
|
|
38
52
|
string?,
|
|
39
53
|
number?
|
|
40
54
|
];
|
|
41
|
-
export declare const ActionParamsSchema: z.ZodObject<{
|
|
42
|
-
url: z.ZodOptional<z.ZodString>;
|
|
43
|
-
cookies: z.ZodArray<z.ZodObject<{
|
|
44
|
-
name: z.ZodString;
|
|
45
|
-
value: z.ZodString;
|
|
46
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
47
|
-
path: z.ZodOptional<z.ZodString>;
|
|
48
|
-
expires: z.ZodOptional<z.ZodNumber>;
|
|
49
|
-
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
-
secure: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
52
|
-
actionType: z.ZodOptional<z.ZodEnum<{
|
|
53
|
-
mockApi: "mockApi";
|
|
54
|
-
rpa: "rpa";
|
|
55
|
-
server: "server";
|
|
56
|
-
}>>;
|
|
57
|
-
accountId: z.ZodOptional<z.ZodNumber>;
|
|
58
|
-
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
localIP: z.ZodOptional<z.ZodString>;
|
|
60
|
-
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
61
|
-
articleId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
saveType: z.ZodOptional<z.ZodString>;
|
|
63
|
-
id: z.ZodOptional<z.ZodString>;
|
|
64
|
-
userAgent: z.ZodOptional<z.ZodString>;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
export type ActionParams = z.infer<typeof ActionParamsSchema>;
|
|
67
55
|
export declare enum ExecutionState {
|
|
68
56
|
RUNNING = "RUNNING",
|
|
69
57
|
SCAN_WAITING = "SCAN_WAITING",
|
|
@@ -165,4 +153,4 @@ export declare namespace Xiaohongshu {
|
|
|
165
153
|
}
|
|
166
154
|
}
|
|
167
155
|
export declare const errorResponse: (message: string, code?: number) => SearchAccountInfoResponse;
|
|
168
|
-
export declare const MockPublish =
|
|
156
|
+
export declare const MockPublish = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iflyrpa/actions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"mime-types": "^2.1.35",
|
|
19
19
|
"node-fetch": "^2.7.0",
|
|
20
20
|
"playwright-core": "^1.46.1",
|
|
21
|
-
"@iflyrpa/share": "0.0.18"
|
|
21
|
+
"@iflyrpa/share": "0.0.18-beta.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@rslib/core": "^0.4.1",
|