@iflyrpa/actions 2.0.0-beta.7 → 2.0.0-beta.8
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/createShipinhaoComment/index.d.ts +19 -0
- package/dist/actions/douyinCreateCommentReply/index.d.ts +16 -0
- package/dist/actions/douyinCreateCommentReply/schema.d.ts +35 -0
- package/dist/actions/douyinGetCommentList/index.d.ts +32 -0
- package/dist/actions/douyinGetCommentList/schema.d.ts +35 -0
- package/dist/actions/douyinGetCommentReplyList/index.d.ts +31 -0
- package/dist/actions/douyinGetCommentReplyList/schema.d.ts +35 -0
- package/dist/actions/douyinGetWorkList/index.d.ts +39 -0
- package/dist/actions/douyinGetWorkList/schema.d.ts +34 -0
- package/dist/actions/douyinPublish/index.d.ts +3 -0
- package/dist/actions/shipinhaoCheckLinkValidate/index.d.ts +4 -0
- package/dist/actions/shipinhaoGetLocation/index.d.ts +12 -0
- package/dist/bundle.js +750 -262
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +25 -0
- package/dist/index.js +749 -261
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +745 -261
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface CreateShipinhaoCommentParams extends ActiomCommonParams {
|
|
4
|
+
content: string;
|
|
5
|
+
exportId: string;
|
|
6
|
+
rootCommentId?: string;
|
|
7
|
+
replyCommentId?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateCommentResponse {
|
|
10
|
+
errCode: number;
|
|
11
|
+
errMsg: string;
|
|
12
|
+
data?: {
|
|
13
|
+
commentId: string;
|
|
14
|
+
createTime: number;
|
|
15
|
+
success: boolean;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export type CreateCommentAction = CommonAction<CreateShipinhaoCommentParams, CreateCommentResponse["data"]>;
|
|
19
|
+
export declare const createShipinhaoComment: CreateCommentAction;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DouyinCreateCommentReplyParamsSchema } from "./schema";
|
|
4
|
+
export type DouyinCreateCommentReplyParams = z.infer<typeof DouyinCreateCommentReplyParamsSchema>;
|
|
5
|
+
export { DouyinCreateCommentReplyParamsSchema } from "./schema";
|
|
6
|
+
export interface DouyinCreateCommentReplyResponse {
|
|
7
|
+
status_code: number;
|
|
8
|
+
status_msg: string;
|
|
9
|
+
comment?: {
|
|
10
|
+
cid: string;
|
|
11
|
+
text: string;
|
|
12
|
+
create_time: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export type DouyinCreateCommentReplyAction = CommonAction<DouyinCreateCommentReplyParams, DouyinCreateCommentReplyResponse>;
|
|
16
|
+
export declare const douyinCreateCommentReply: DouyinCreateCommentReplyAction;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinCreateCommentReplyParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
extraParam: z.ZodOptional<z.ZodAny>;
|
|
20
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
mockApi: "mockApi";
|
|
22
|
+
rpa: "rpa";
|
|
23
|
+
server: "server";
|
|
24
|
+
}>>;
|
|
25
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
28
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
29
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
31
|
+
itemId: z.ZodString;
|
|
32
|
+
commentId: z.ZodString;
|
|
33
|
+
text: z.ZodString;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type DouyinCreateCommentReplyParams = z.infer<typeof DouyinCreateCommentReplyParamsSchema>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DouyinGetCommentListParamsSchema } from "./schema";
|
|
4
|
+
export type DouyinGetCommentListParams = z.infer<typeof DouyinGetCommentListParamsSchema>;
|
|
5
|
+
export { DouyinGetCommentListParamsSchema } from "./schema";
|
|
6
|
+
export interface CommentUser {
|
|
7
|
+
uid: string;
|
|
8
|
+
nickname: string;
|
|
9
|
+
avatar_thumb?: {
|
|
10
|
+
url_list: string[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface CommentItem {
|
|
14
|
+
cid: string;
|
|
15
|
+
text: string;
|
|
16
|
+
create_time: number;
|
|
17
|
+
digg_count: number;
|
|
18
|
+
reply_comment_total: number;
|
|
19
|
+
user: CommentUser;
|
|
20
|
+
reply_to_reply_id?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface DouyinCommentListResponse {
|
|
23
|
+
status_code: number;
|
|
24
|
+
status_msg: string;
|
|
25
|
+
comment_info_list?: CommentItem[];
|
|
26
|
+
has_more?: boolean;
|
|
27
|
+
cursor?: number;
|
|
28
|
+
total_count?: number;
|
|
29
|
+
has_vcd_filter?: number;
|
|
30
|
+
}
|
|
31
|
+
export type DouyinGetCommentListAction = CommonAction<DouyinGetCommentListParams, DouyinCommentListResponse>;
|
|
32
|
+
export declare const douyinGetCommentList: DouyinGetCommentListAction;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinGetCommentListParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
extraParam: z.ZodOptional<z.ZodAny>;
|
|
20
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
mockApi: "mockApi";
|
|
22
|
+
rpa: "rpa";
|
|
23
|
+
server: "server";
|
|
24
|
+
}>>;
|
|
25
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
28
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
29
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
31
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
itemId: z.ZodString;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type DouyinGetCommentListParams = z.infer<typeof DouyinGetCommentListParamsSchema>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DouyinGetCommentReplyListParamsSchema } from "./schema";
|
|
4
|
+
export type DouyinGetCommentReplyListParams = z.infer<typeof DouyinGetCommentReplyListParamsSchema>;
|
|
5
|
+
export { DouyinGetCommentReplyListParamsSchema } from "./schema";
|
|
6
|
+
export interface ReplyUser {
|
|
7
|
+
uid: string;
|
|
8
|
+
nickname: string;
|
|
9
|
+
avatar_thumb?: {
|
|
10
|
+
url_list: string[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface ReplyItem {
|
|
14
|
+
cid: string;
|
|
15
|
+
text: string;
|
|
16
|
+
create_time: number;
|
|
17
|
+
digg_count: number;
|
|
18
|
+
user: ReplyUser;
|
|
19
|
+
reply_to_userid?: string;
|
|
20
|
+
reply_to_username?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface DouyinCommentReplyListResponse {
|
|
23
|
+
status_code: number;
|
|
24
|
+
status_msg: string;
|
|
25
|
+
reply_comment_list?: ReplyItem[];
|
|
26
|
+
has_more?: boolean;
|
|
27
|
+
cursor?: number;
|
|
28
|
+
total_count?: number;
|
|
29
|
+
}
|
|
30
|
+
export type DouyinGetCommentReplyListAction = CommonAction<DouyinGetCommentReplyListParams, DouyinCommentReplyListResponse>;
|
|
31
|
+
export declare const douyinGetCommentReplyList: DouyinGetCommentReplyListAction;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinGetCommentReplyListParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
extraParam: z.ZodOptional<z.ZodAny>;
|
|
20
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
mockApi: "mockApi";
|
|
22
|
+
rpa: "rpa";
|
|
23
|
+
server: "server";
|
|
24
|
+
}>>;
|
|
25
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
28
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
29
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
31
|
+
commentId: z.ZodString;
|
|
32
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type DouyinGetCommentReplyListParams = z.infer<typeof DouyinGetCommentReplyListParamsSchema>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DouyinGetWorkListParamsSchema } from "./schema";
|
|
4
|
+
export type DouyinGetWorkListParams = z.infer<typeof DouyinGetWorkListParamsSchema>;
|
|
5
|
+
export { DouyinGetWorkListParamsSchema } from "./schema";
|
|
6
|
+
export interface WorkItem {
|
|
7
|
+
aweme_id: string;
|
|
8
|
+
desc: string;
|
|
9
|
+
create_time: number;
|
|
10
|
+
statistics: {
|
|
11
|
+
digg_count: number;
|
|
12
|
+
comment_count: number;
|
|
13
|
+
share_count: number;
|
|
14
|
+
play_count: number;
|
|
15
|
+
};
|
|
16
|
+
video?: {
|
|
17
|
+
cover: {
|
|
18
|
+
url_list: string[];
|
|
19
|
+
};
|
|
20
|
+
play_addr: {
|
|
21
|
+
url_list: string[];
|
|
22
|
+
};
|
|
23
|
+
duration: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface DouyinWorkListResponse {
|
|
27
|
+
status_code: number;
|
|
28
|
+
status_msg: string;
|
|
29
|
+
aweme_list?: WorkItem[];
|
|
30
|
+
has_more?: boolean;
|
|
31
|
+
cursor?: number;
|
|
32
|
+
}
|
|
33
|
+
export type DouyinGetWorkListAction = CommonAction<DouyinGetWorkListParams, {
|
|
34
|
+
works: WorkItem[];
|
|
35
|
+
has_more: boolean;
|
|
36
|
+
cursor: number;
|
|
37
|
+
total: number;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const douyinGetWorkList: DouyinGetWorkListAction;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinGetWorkListParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
extraParam: z.ZodOptional<z.ZodAny>;
|
|
20
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
mockApi: "mockApi";
|
|
22
|
+
rpa: "rpa";
|
|
23
|
+
server: "server";
|
|
24
|
+
}>>;
|
|
25
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
28
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
29
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
31
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type DouyinGetWorkListParams = z.infer<typeof DouyinGetWorkListParamsSchema>;
|
|
@@ -42,8 +42,11 @@ export declare const DouyinPublishParamsSchema: z.ZodObject<{
|
|
|
42
42
|
mix: z.ZodOptional<z.ZodObject<{
|
|
43
43
|
mix_id: z.ZodString;
|
|
44
44
|
mix_order: z.ZodNumber;
|
|
45
|
+
mix_name: z.ZodOptional<z.ZodString>;
|
|
45
46
|
}, z.core.$strip>>;
|
|
46
47
|
musicId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
musicName: z.ZodOptional<z.ZodString>;
|
|
49
|
+
musicAuthor: z.ZodOptional<z.ZodString>;
|
|
47
50
|
musicDuration: z.ZodOptional<z.ZodNumber>;
|
|
48
51
|
challengeIds: z.ZodOptional<z.ZodString>;
|
|
49
52
|
hotSentence: z.ZodOptional<z.ZodString>;
|
|
@@ -16,16 +16,28 @@ export interface Location {
|
|
|
16
16
|
source: number;
|
|
17
17
|
poiCheckSum: string;
|
|
18
18
|
}
|
|
19
|
+
export interface Address {
|
|
20
|
+
city: string;
|
|
21
|
+
country: string;
|
|
22
|
+
countryCode: string;
|
|
23
|
+
latitude: number;
|
|
24
|
+
longitude: number;
|
|
25
|
+
poiCheckSum: string;
|
|
26
|
+
province: string;
|
|
27
|
+
region: string;
|
|
28
|
+
}
|
|
19
29
|
export interface ShipinhaoLocationResponse {
|
|
20
30
|
errCode: number;
|
|
21
31
|
errMsg: string;
|
|
22
32
|
data?: {
|
|
23
33
|
list?: Location[];
|
|
34
|
+
address?: Address;
|
|
24
35
|
total?: number;
|
|
25
36
|
};
|
|
26
37
|
}
|
|
27
38
|
export type ShipinhaoGetLocationAction = CommonAction<ShipinhaoGetLocationParams, {
|
|
28
39
|
locations: Location[];
|
|
29
40
|
total: number;
|
|
41
|
+
address?: Address | undefined;
|
|
30
42
|
}>;
|
|
31
43
|
export declare const shipinhaoGetLocation: ShipinhaoGetLocationAction;
|