@iflyrpa/actions 1.2.25 → 1.2.26

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.
@@ -25,6 +25,12 @@ export interface BaijiahaoPublishParams extends ActiomCommonParams {
25
25
  confName: string;
26
26
  isChecked: boolean;
27
27
  }[];
28
+ baijiahaoTopic?: Record<string, any>;
29
+ baijiahaoCms?: string[];
30
+ baijiahaoEventSpec?: {
31
+ time: string;
32
+ pos: string;
33
+ };
28
34
  baijiahaoEvent2News: boolean;
29
35
  baijiahaoSelectActivityCache: string[];
30
36
  timer?: number;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 生成百家号话题html
3
+ * @param topic
4
+ * @param id
5
+ * @param sv_small_images
6
+ */
7
+ export declare const generateTopicHtml: (topic: string, id?: string, sv_small_images?: {
8
+ http: string;
9
+ https: string;
10
+ }) => string;
@@ -0,0 +1,40 @@
1
+ import { type CommonAction } from "@iflyrpa/share";
2
+ import type { ActiomCommonParams } from "../../types";
3
+ export interface GetToutiaoCollectionParams extends ActiomCommonParams {
4
+ }
5
+ export interface GetToutiaoCollectionResult {
6
+ id: string;
7
+ collection_attr: {
8
+ title: string;
9
+ cover_image: {
10
+ url: string;
11
+ uri: string;
12
+ width: number;
13
+ height: number;
14
+ mime_type: string;
15
+ };
16
+ item_status: number;
17
+ visibility_level: number;
18
+ create_time: string;
19
+ suppress_reason: string;
20
+ user_id: string;
21
+ };
22
+ collection_stat: {
23
+ impression_count: string;
24
+ go_detail_count: string;
25
+ repin_count: string;
26
+ forward_count: string;
27
+ };
28
+ menu_list: {
29
+ show_delete: boolean;
30
+ show_modify: boolean;
31
+ show_hide: boolean;
32
+ forbid_delete_reason: string;
33
+ forbid_modify_reason: string;
34
+ forbid_hide_reason: string;
35
+ };
36
+ sub_item_count: number;
37
+ item_status_desc: string;
38
+ }
39
+ export type PublishAction = CommonAction<GetToutiaoCollectionParams, GetToutiaoCollectionResult[]>;
40
+ export declare const getToutiaoCollection: PublishAction;
@@ -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;
@@ -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?: {
@@ -34,6 +35,8 @@ export interface WeixinPublishParams extends ActiomCommonParams {
34
35
  wxCreationSource?: string[];
35
36
  wxInteraction?: WxInteraction;
36
37
  timer?: number;
38
+ wxTopic?: string[];
39
+ wxCollectionInfo?: CollectDetail;
37
40
  };
38
41
  safeQrcodeCallback?: (qrcodePath: string) => void;
39
42
  }
@@ -12,3 +12,9 @@ export interface QuotaDetail {
12
12
  quota_item_list: QuotaItem[];
13
13
  quota_type: string;
14
14
  }
15
+ /**
16
+ * 生成微信话题 HTML 代码
17
+ * @param topics - 话题数组
18
+ * @returns 生成的 HTML 字符串
19
+ */
20
+ export declare function genTopicHTML(topics: string[]): string;
@@ -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
  }
@@ -23,9 +24,14 @@ export interface XiaohongshuPublishParams extends ActiomCommonParams {
23
24
  topic?: Xiaohongshu.Topic[];
24
25
  proxyLoc?: string;
25
26
  huiwenToken?: string;
26
- visibleRange: "public" | "private";
27
+ visibleRange: "public" | "private" | "friends";
27
28
  isImmediatelyPublish?: boolean;
28
29
  scheduledPublish?: string;
30
+ collectionId?: string;
31
+ groupBind?: GroupDetail;
32
+ noteCopyBind?: boolean;
33
+ coProduceBind?: boolean;
34
+ originalBind?: boolean;
29
35
  }
30
36
  export type PublishAction = CommonAction<XiaohongshuPublishParams, string>;
31
37
  export declare const xiaohongshuPublish: PublishAction;