@iflyrpa/actions 1.2.24 → 1.2.25-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/baijiahaoPublish/index.d.ts +8 -0
- package/dist/actions/baijiahaoPublish/utils.d.ts +10 -0
- package/dist/actions/getWeixinCollection/index.d.ts +32 -0
- package/dist/actions/getXhsCollection/index.d.ts +31 -0
- package/dist/actions/getXhsGroup/index.d.ts +19 -0
- package/dist/actions/getXhsHotTopic/index.d.ts +35 -0
- package/dist/actions/searchBjhTopicList/index.d.ts +12 -0
- package/dist/actions/toutiaoPublish/index.d.ts +4 -0
- package/dist/actions/weixinPublish/index.d.ts +5 -0
- package/dist/actions/weixinPublish/utils.d.ts +6 -0
- package/dist/actions/xiaohongshuPublish/index.d.ts +9 -1
- package/dist/bundle.js +1578 -94
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1603 -51
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1596 -51
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/utils/http.d.ts +9 -3
- package/dist/utils/proxy.d.ts +2 -0
- package/package.json +2 -2
|
@@ -10,6 +10,8 @@ export interface BaijiahaoPublishParams extends ActiomCommonParams {
|
|
|
10
10
|
token: string;
|
|
11
11
|
title: string;
|
|
12
12
|
content: string;
|
|
13
|
+
proxyLoc?: string;
|
|
14
|
+
huiwenToken?: string;
|
|
13
15
|
settingInfo: {
|
|
14
16
|
baijiahaoTitle: string;
|
|
15
17
|
baijiahaoCoverType: "single" | "multiple";
|
|
@@ -23,6 +25,12 @@ export interface BaijiahaoPublishParams extends ActiomCommonParams {
|
|
|
23
25
|
confName: string;
|
|
24
26
|
isChecked: boolean;
|
|
25
27
|
}[];
|
|
28
|
+
baijiahaoTopic?: Record<string, any>;
|
|
29
|
+
baijiahaoCms?: string[];
|
|
30
|
+
baijiahaoEventSpec?: {
|
|
31
|
+
time: string;
|
|
32
|
+
pos: string;
|
|
33
|
+
};
|
|
26
34
|
baijiahaoEvent2News: boolean;
|
|
27
35
|
baijiahaoSelectActivityCache: string[];
|
|
28
36
|
timer?: number;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface GetWeixinCollectionParams extends ActiomCommonParams {
|
|
4
|
+
token: string | number;
|
|
5
|
+
}
|
|
6
|
+
export interface CollectDetailResponse {
|
|
7
|
+
base_resp: {
|
|
8
|
+
err_msg: string;
|
|
9
|
+
ret: number;
|
|
10
|
+
};
|
|
11
|
+
list_resp: {
|
|
12
|
+
items: CollectDetail[];
|
|
13
|
+
total: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface CollectDetail {
|
|
17
|
+
continous_read_on: number;
|
|
18
|
+
cover_url: string;
|
|
19
|
+
create_time: number;
|
|
20
|
+
id: string;
|
|
21
|
+
is_ban: number;
|
|
22
|
+
is_updating: number;
|
|
23
|
+
need_pay: number;
|
|
24
|
+
title: string;
|
|
25
|
+
total: number;
|
|
26
|
+
type: number;
|
|
27
|
+
update_time: number;
|
|
28
|
+
url: string;
|
|
29
|
+
uv: number;
|
|
30
|
+
}
|
|
31
|
+
export type PublishAction = CommonAction<GetWeixinCollectionParams, CollectDetail[]>;
|
|
32
|
+
export declare const getWeixinCollection: PublishAction;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface CollectionResponse {
|
|
4
|
+
success: boolean;
|
|
5
|
+
result: number;
|
|
6
|
+
data: {
|
|
7
|
+
userDetail: {
|
|
8
|
+
id: string;
|
|
9
|
+
nickname: string;
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
collections: CollectionDetail[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface CollectionDetail {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
desc: string;
|
|
19
|
+
userId: string;
|
|
20
|
+
noteNum: number;
|
|
21
|
+
viewNum: number;
|
|
22
|
+
cursor: string;
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
status: number;
|
|
25
|
+
createTime: number;
|
|
26
|
+
unreadCount: number;
|
|
27
|
+
coverImage: null;
|
|
28
|
+
deeplink: string;
|
|
29
|
+
}
|
|
30
|
+
export type PublishAction = CommonAction<ActiomCommonParams, CollectionDetail[]>;
|
|
31
|
+
export declare const getXhsCollection: PublishAction;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface GroupListResponse {
|
|
4
|
+
success: boolean;
|
|
5
|
+
msg: string;
|
|
6
|
+
data: {
|
|
7
|
+
group_list: GroupDetail[];
|
|
8
|
+
};
|
|
9
|
+
code: number;
|
|
10
|
+
}
|
|
11
|
+
export interface GroupDetail {
|
|
12
|
+
avatar: string;
|
|
13
|
+
desc: string;
|
|
14
|
+
group_id: string;
|
|
15
|
+
group_name: string;
|
|
16
|
+
linkable: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type PublishAction = CommonAction<ActiomCommonParams, GroupDetail[]>;
|
|
19
|
+
export declare const getXhsGroup: PublishAction;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface HotTopicResponse {
|
|
4
|
+
code: number;
|
|
5
|
+
success: boolean;
|
|
6
|
+
msg: string;
|
|
7
|
+
data: {
|
|
8
|
+
activity_list: HotTopicDetail[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface HotTopicDetail {
|
|
12
|
+
page_id: string;
|
|
13
|
+
activity_name: string;
|
|
14
|
+
start_time: number;
|
|
15
|
+
activity_status: number;
|
|
16
|
+
capa_deep_link: string;
|
|
17
|
+
instance_id: number;
|
|
18
|
+
activity_id: number;
|
|
19
|
+
end_time: number;
|
|
20
|
+
picture_link: string;
|
|
21
|
+
focus_status: number;
|
|
22
|
+
activity_reward: string;
|
|
23
|
+
activity_link: string;
|
|
24
|
+
sort_score: string;
|
|
25
|
+
pc_post_link: string;
|
|
26
|
+
topic_infos: [
|
|
27
|
+
{
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
link: string;
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
export type PublishAction = CommonAction<ActiomCommonParams, HotTopicDetail[]>;
|
|
35
|
+
export declare const getXhsHotTopic: PublishAction;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface SearchBjhTopicListParams extends ActiomCommonParams {
|
|
4
|
+
token: string;
|
|
5
|
+
topicContent: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TopicData {
|
|
8
|
+
title: string;
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
export type PublishAction = CommonAction<SearchBjhTopicListParams, TopicData[]>;
|
|
12
|
+
export declare const searchBjhTopicList: PublishAction;
|
|
@@ -5,6 +5,8 @@ export interface ToutiaoPublishParams extends ActiomCommonParams {
|
|
|
5
5
|
saveType: "draft" | "publish";
|
|
6
6
|
title: string;
|
|
7
7
|
content: string;
|
|
8
|
+
proxyLoc?: string;
|
|
9
|
+
huiwenToken?: string;
|
|
8
10
|
settingInfo: {
|
|
9
11
|
toutiaoCoverType: CoverType;
|
|
10
12
|
toutiaoTitleType: "single" | "multiple";
|
|
@@ -13,6 +15,8 @@ export interface ToutiaoPublishParams extends ActiomCommonParams {
|
|
|
13
15
|
toutiaoAd: string;
|
|
14
16
|
toutiaoOriginal?: string;
|
|
15
17
|
toutiaoExclusive?: number;
|
|
18
|
+
toutiaoCollectionId?: string;
|
|
19
|
+
toutiaoTransWtt?: boolean;
|
|
16
20
|
toutiaoClaim?: {
|
|
17
21
|
type: number;
|
|
18
22
|
source_author_uid?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CommonAction } from "@iflyrpa/share";
|
|
2
2
|
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
import { CollectDetail } from '../getWeixinCollection';
|
|
3
4
|
export interface WxInteraction {
|
|
4
5
|
Type: "public" | "private" | "off";
|
|
5
6
|
Option?: {
|
|
@@ -18,6 +19,8 @@ export interface WeixinPublishParams extends ActiomCommonParams {
|
|
|
18
19
|
uuid?: string;
|
|
19
20
|
appMsgId?: string;
|
|
20
21
|
operation_seq?: string;
|
|
22
|
+
proxyLoc?: string;
|
|
23
|
+
huiwenToken?: string;
|
|
21
24
|
settingInfo: {
|
|
22
25
|
wxCover: string;
|
|
23
26
|
wxAuthor?: string;
|
|
@@ -32,6 +35,8 @@ export interface WeixinPublishParams extends ActiomCommonParams {
|
|
|
32
35
|
wxCreationSource?: string[];
|
|
33
36
|
wxInteraction?: WxInteraction;
|
|
34
37
|
timer?: number;
|
|
38
|
+
wxTopic?: string[];
|
|
39
|
+
wxCollectionInfo?: CollectDetail;
|
|
35
40
|
};
|
|
36
41
|
safeQrcodeCallback?: (qrcodePath: string) => void;
|
|
37
42
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CommonAction } from "@iflyrpa/share";
|
|
2
2
|
import type { ActiomCommonParams, Xiaohongshu } from "../../types";
|
|
3
|
+
import { GroupDetail } from "../getXhsGroup";
|
|
3
4
|
interface FictionalRendition {
|
|
4
5
|
type: "fictional-rendition";
|
|
5
6
|
}
|
|
@@ -21,9 +22,16 @@ export interface XiaohongshuPublishParams extends ActiomCommonParams {
|
|
|
21
22
|
address?: Xiaohongshu.Location;
|
|
22
23
|
selfDeclaration?: SelfDeclaration;
|
|
23
24
|
topic?: Xiaohongshu.Topic[];
|
|
24
|
-
|
|
25
|
+
proxyLoc?: string;
|
|
26
|
+
huiwenToken?: string;
|
|
27
|
+
visibleRange: "public" | "private" | "friends";
|
|
25
28
|
isImmediatelyPublish?: boolean;
|
|
26
29
|
scheduledPublish?: string;
|
|
30
|
+
collectionId?: string;
|
|
31
|
+
groupBind?: GroupDetail;
|
|
32
|
+
noteCopyBind?: boolean;
|
|
33
|
+
coProduceBind?: boolean;
|
|
34
|
+
originalBind?: boolean;
|
|
27
35
|
}
|
|
28
36
|
export type PublishAction = CommonAction<XiaohongshuPublishParams, string>;
|
|
29
37
|
export declare const xiaohongshuPublish: PublishAction;
|