@iflyrpa/actions 1.2.16 → 1.2.18
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/common/FansTool/index.d.ts +3 -9
- package/dist/actions/common/sessionCheck/index.d.ts +16 -0
- package/dist/actions/getBaijiaohaoConfig/index.d.ts +1 -0
- package/dist/actions/getWeixinConfig/index.d.ts +16 -0
- package/dist/actions/searchAccountInfo/getBjhInfo.d.ts +3 -0
- package/dist/actions/searchAccountInfo/getTTInfo.d.ts +3 -0
- package/dist/actions/searchAccountInfo/getWxInfo.d.ts +3 -0
- package/dist/actions/searchAccountInfo/getXhsInfo.d.ts +3 -0
- package/dist/actions/searchAccountInfo/index.d.ts +8 -0
- package/dist/actions/searchAccountInfo/types.d.ts +44 -0
- package/dist/actions/searchPublishInfo/handleBjhData.d.ts +3 -0
- package/dist/actions/searchPublishInfo/handleTTData.d.ts +3 -0
- package/dist/actions/searchPublishInfo/handleWXData.d.ts +3 -0
- package/dist/actions/searchPublishInfo/handleXhsData.d.ts +3 -0
- package/dist/actions/searchPublishInfo/index.d.ts +15 -0
- package/dist/actions/searchPublishInfo/types.d.ts +52 -0
- package/dist/bundle.js +1495 -16
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +15 -6
- package/dist/index.js +1481 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1481 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { type CommonAction } from "@iflyrpa/share";
|
|
2
2
|
import type { ActiomCommonParams, Toutiao, Xiaohongshu, Weixin, BaiJiaHao } from "../../../types";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
export type ttSearchAction = CommonAction<GetTTFansSearchParams, Toutiao.FansCount>;
|
|
6
|
-
export interface GetXhsFansSearchParams extends ActiomCommonParams {
|
|
7
|
-
}
|
|
8
|
-
export type xhsSearchAction = CommonAction<GetXhsFansSearchParams, Xiaohongshu.FansCount>;
|
|
3
|
+
export type ttSearchAction = CommonAction<ActiomCommonParams, Toutiao.FansCount>;
|
|
4
|
+
export type xhsSearchAction = CommonAction<ActiomCommonParams, Xiaohongshu.FansCount>;
|
|
9
5
|
export interface GetWxFansSearchParams extends ActiomCommonParams {
|
|
10
6
|
token: string | number;
|
|
11
7
|
}
|
|
12
8
|
export type wxSearchAction = CommonAction<GetWxFansSearchParams, Weixin.FansCount>;
|
|
13
|
-
export
|
|
14
|
-
}
|
|
15
|
-
export type bjhSearchAction = CommonAction<GetBjhFansSearchParams, BaiJiaHao.FansCount>;
|
|
9
|
+
export type bjhSearchAction = CommonAction<ActiomCommonParams, BaiJiaHao.FansCount>;
|
|
16
10
|
export declare const TTFansExport: ttSearchAction;
|
|
17
11
|
export declare const XhsFansExport: xhsSearchAction;
|
|
18
12
|
export declare const WxFansExport: wxSearchAction;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../../types";
|
|
3
|
+
export interface sessionCheckResult {
|
|
4
|
+
isValidSession: boolean;
|
|
5
|
+
}
|
|
6
|
+
export type ttSessionCheck = CommonAction<ActiomCommonParams, sessionCheckResult>;
|
|
7
|
+
export interface wxSessionParams extends ActiomCommonParams {
|
|
8
|
+
token: string | number;
|
|
9
|
+
}
|
|
10
|
+
export type wxSessionCheck = CommonAction<wxSessionParams, sessionCheckResult>;
|
|
11
|
+
export type xhsSessionCheck = CommonAction<ActiomCommonParams, sessionCheckResult>;
|
|
12
|
+
export type bjhSessionCheck = CommonAction<ActiomCommonParams, sessionCheckResult>;
|
|
13
|
+
export declare const TTSessionCheck: ttSessionCheck;
|
|
14
|
+
export declare const WxSessionCheck: wxSessionCheck;
|
|
15
|
+
export declare const XhsSessionCheck: xhsSessionCheck;
|
|
16
|
+
export declare const BjhSessionCheck: bjhSessionCheck;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface GetWeixinConfigParams extends ActiomCommonParams {
|
|
4
|
+
token: string | number;
|
|
5
|
+
}
|
|
6
|
+
interface QuotaDetail {
|
|
7
|
+
original_quota: number;
|
|
8
|
+
quota: number;
|
|
9
|
+
str_date: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ConfigData {
|
|
12
|
+
publishQuota: QuotaDetail[];
|
|
13
|
+
}
|
|
14
|
+
export type PublishAction = CommonAction<GetWeixinConfigParams, ConfigData>;
|
|
15
|
+
export declare const getWeixinConfig: PublishAction;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
import { ttConfigData, xhsConfigData, wxConfigData, bjhConfigData } from "./types";
|
|
4
|
+
export interface SearchAccountInfoParams extends ActiomCommonParams {
|
|
5
|
+
token?: string | number;
|
|
6
|
+
platform: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SearchAccountInfo: CommonAction<SearchAccountInfoParams, ttConfigData | xhsConfigData | wxConfigData | bjhConfigData | null>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface ttConfigData {
|
|
2
|
+
fansNum: number;
|
|
3
|
+
fansNumYesterday: number | null;
|
|
4
|
+
readNum: number;
|
|
5
|
+
incomeNum: number;
|
|
6
|
+
incomeNumYesterday: number | null;
|
|
7
|
+
showNumYesterday: number | null;
|
|
8
|
+
readNumYesterday: number | null;
|
|
9
|
+
likeNumYesterday: number | null;
|
|
10
|
+
commentNumYesterday: number | null;
|
|
11
|
+
}
|
|
12
|
+
export interface xhsConfigData {
|
|
13
|
+
fansNum: number;
|
|
14
|
+
favedNum: number;
|
|
15
|
+
watchNumLastWeek: number;
|
|
16
|
+
likeNumLastWeek: number;
|
|
17
|
+
collectNumLastWeek: number;
|
|
18
|
+
commentNumLastWeek: number;
|
|
19
|
+
fansNumLastWeek: number;
|
|
20
|
+
fansNumYesterday: number;
|
|
21
|
+
}
|
|
22
|
+
export interface wxConfigData {
|
|
23
|
+
fansNum: number;
|
|
24
|
+
fansNumYesterday: number;
|
|
25
|
+
readNumYesterday: number;
|
|
26
|
+
shareNumYesterday: number;
|
|
27
|
+
}
|
|
28
|
+
export interface bjhConfigData {
|
|
29
|
+
fansNum: number;
|
|
30
|
+
fansNumYesterday: number | null;
|
|
31
|
+
readNum: number;
|
|
32
|
+
incomeNum: number;
|
|
33
|
+
incomeNumYesterday: number | null;
|
|
34
|
+
recommendNumYesterday: number | null;
|
|
35
|
+
readNumYesterday: number | null;
|
|
36
|
+
likeNumYesterday: number | null;
|
|
37
|
+
commentNumYesterday: number | null;
|
|
38
|
+
}
|
|
39
|
+
export interface SearchAccountInfoResponse {
|
|
40
|
+
code: number;
|
|
41
|
+
message: string;
|
|
42
|
+
data: ttConfigData | xhsConfigData | wxConfigData | bjhConfigData | null;
|
|
43
|
+
}
|
|
44
|
+
export declare const errorResponse: (message: string, code?: number) => SearchAccountInfoResponse;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { FetchArticlesData } from "./types";
|
|
3
|
+
import type { ActiomCommonParams } from "../../types";
|
|
4
|
+
export interface FetchArticlesParams extends ActiomCommonParams {
|
|
5
|
+
platform: string;
|
|
6
|
+
token?: string | number;
|
|
7
|
+
pageNum?: number;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
size?: number;
|
|
10
|
+
onlySuccess?: boolean;
|
|
11
|
+
showOriginalData?: boolean;
|
|
12
|
+
cursor?: number;
|
|
13
|
+
lastPage?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const FetchArticles: CommonAction<FetchArticlesParams, FetchArticlesData | null>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
interface BaseArticle {
|
|
2
|
+
title: string;
|
|
3
|
+
imageUrl: string;
|
|
4
|
+
createTime: number;
|
|
5
|
+
redirectUrl: string;
|
|
6
|
+
originalData?: any;
|
|
7
|
+
}
|
|
8
|
+
export interface ToutiaoArticle extends BaseArticle {
|
|
9
|
+
showNum: number;
|
|
10
|
+
readNum: number;
|
|
11
|
+
likeNum: number;
|
|
12
|
+
commentNum: number;
|
|
13
|
+
}
|
|
14
|
+
export interface WeixinArticle extends BaseArticle {
|
|
15
|
+
readNum: number;
|
|
16
|
+
likeNum: number;
|
|
17
|
+
shareNum: number;
|
|
18
|
+
recommendNum: number;
|
|
19
|
+
}
|
|
20
|
+
export interface BaijiahaoArticle extends BaseArticle {
|
|
21
|
+
recommendNum: number;
|
|
22
|
+
collectNum: number;
|
|
23
|
+
readNum: number;
|
|
24
|
+
likeNum: number;
|
|
25
|
+
commentNum: number;
|
|
26
|
+
shareNum: number;
|
|
27
|
+
}
|
|
28
|
+
export interface XiaohongshuArticle extends BaseArticle {
|
|
29
|
+
readNum: number;
|
|
30
|
+
likeNum: number;
|
|
31
|
+
commentNum: number;
|
|
32
|
+
collectNum: number;
|
|
33
|
+
shareNum: number;
|
|
34
|
+
}
|
|
35
|
+
export interface FetchArticlesData {
|
|
36
|
+
articleCell?: (ToutiaoArticle | WeixinArticle | BaijiahaoArticle | XiaohongshuArticle)[];
|
|
37
|
+
pagination?: {
|
|
38
|
+
total?: number;
|
|
39
|
+
nextPage?: boolean;
|
|
40
|
+
lastPage?: number;
|
|
41
|
+
cursor?: number;
|
|
42
|
+
pageNum: number;
|
|
43
|
+
pageSize: number;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface FetchArticlesResponse {
|
|
47
|
+
code: number;
|
|
48
|
+
message: string;
|
|
49
|
+
data: FetchArticlesData | null;
|
|
50
|
+
}
|
|
51
|
+
export declare const errorResponse: (message: string, code?: number) => FetchArticlesResponse;
|
|
52
|
+
export {};
|