@iflyrpa/actions 1.2.11-beta.3 → 1.2.11
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 +0 -6
- package/dist/actions/toutiaoPublish/index.d.ts +0 -16
- package/dist/actions/weixinPublish/index.d.ts +0 -1
- package/dist/bundle.js +75 -1615
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +1 -15
- package/dist/index.js +2805 -4358
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +75 -1627
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +5 -35
- package/dist/utils/index.d.ts +0 -9
- package/package.json +1 -1
- package/dist/actions/common/FansTool/index.d.ts +0 -19
- package/dist/actions/getBaijiaohaoConfig/index.d.ts +0 -13
- package/dist/actions/searchToutiaoLocation/index.d.ts +0 -7
- package/dist/actions/searchToutiaoUserID/index.d.ts +0 -7
package/dist/types.d.ts
CHANGED
|
@@ -10,26 +10,13 @@ export interface ActiomCommonParams {
|
|
|
10
10
|
actionType?: "mockApi" | "rpa";
|
|
11
11
|
readonly articleId?: string;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
cdnurl: string;
|
|
19
|
-
file_id: number;
|
|
20
|
-
width: number;
|
|
21
|
-
height: number;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export declare namespace BaiJiaHao {
|
|
25
|
-
interface FansCount {
|
|
26
|
-
fans_count: number | null;
|
|
27
|
-
}
|
|
13
|
+
export interface WeiXinCropResult {
|
|
14
|
+
cdnurl: string;
|
|
15
|
+
file_id: number;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
28
18
|
}
|
|
29
19
|
export declare namespace Toutiao {
|
|
30
|
-
interface FansCount {
|
|
31
|
-
fans_count: number | null;
|
|
32
|
-
}
|
|
33
20
|
interface Topic {
|
|
34
21
|
concern_id: string;
|
|
35
22
|
id: string;
|
|
@@ -38,20 +25,6 @@ export declare namespace Toutiao {
|
|
|
38
25
|
type: number;
|
|
39
26
|
word: string;
|
|
40
27
|
}
|
|
41
|
-
interface SuggestWords {
|
|
42
|
-
user_id: number;
|
|
43
|
-
name: string;
|
|
44
|
-
avatar_url: string;
|
|
45
|
-
followers_count: number;
|
|
46
|
-
}
|
|
47
|
-
interface CityPoi {
|
|
48
|
-
position: string;
|
|
49
|
-
city: string;
|
|
50
|
-
longitude: number;
|
|
51
|
-
latitude: number;
|
|
52
|
-
type_code: string;
|
|
53
|
-
poi_id: string;
|
|
54
|
-
}
|
|
55
28
|
interface CityDistrict {
|
|
56
29
|
gps_location: {
|
|
57
30
|
city_name: string;
|
|
@@ -77,9 +50,6 @@ export declare namespace Toutiao {
|
|
|
77
50
|
}
|
|
78
51
|
}
|
|
79
52
|
export declare namespace Xiaohongshu {
|
|
80
|
-
interface FansCount {
|
|
81
|
-
fans_count: number | null;
|
|
82
|
-
}
|
|
83
53
|
interface Topic {
|
|
84
54
|
id?: string;
|
|
85
55
|
name: string;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -29,15 +29,6 @@ export type CropCoordinates = {
|
|
|
29
29
|
*/
|
|
30
30
|
export declare const calculateCropCoordinates: (width: number, height: number, aspectRatio: AspectRatio) => CropCoordinates;
|
|
31
31
|
export declare const extractImgTag: (html: string) => string[];
|
|
32
|
-
/**
|
|
33
|
-
* 时间格式化
|
|
34
|
-
* @param time
|
|
35
|
-
* @param format 默认 yyyy-MM-dd HH:mm
|
|
36
|
-
* @returns 时间字符串
|
|
37
|
-
*/
|
|
38
|
-
export declare class TimeFormatter {
|
|
39
|
-
static format(timestamp: number, formatStr?: String): string;
|
|
40
|
-
}
|
|
41
32
|
export declare const replaceImgSrc: (html: string, callback: (dom: Element) => Element) => string;
|
|
42
33
|
export declare const stringifyError: (error: unknown) => {} | undefined;
|
|
43
34
|
/**
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
-
import type { ActiomCommonParams, Toutiao, Xiaohongshu, Weixin, BaiJiaHao } from "../../../types";
|
|
3
|
-
export interface GetTTFansSearchParams extends ActiomCommonParams {
|
|
4
|
-
}
|
|
5
|
-
export type ttSearchAction = CommonAction<GetTTFansSearchParams, Toutiao.FansCount>;
|
|
6
|
-
export interface GetXhsFansSearchParams extends ActiomCommonParams {
|
|
7
|
-
}
|
|
8
|
-
export type xhsSearchAction = CommonAction<GetXhsFansSearchParams, Xiaohongshu.FansCount>;
|
|
9
|
-
export interface GetWxFansSearchParams extends ActiomCommonParams {
|
|
10
|
-
token: string | number;
|
|
11
|
-
}
|
|
12
|
-
export type wxSearchAction = CommonAction<GetWxFansSearchParams, Weixin.FansCount>;
|
|
13
|
-
export interface GetBjhFansSearchParams extends ActiomCommonParams {
|
|
14
|
-
}
|
|
15
|
-
export type bjhSearchAction = CommonAction<GetBjhFansSearchParams, BaiJiaHao.FansCount>;
|
|
16
|
-
export declare const TTFansExport: ttSearchAction;
|
|
17
|
-
export declare const XhsFansExport: xhsSearchAction;
|
|
18
|
-
export declare const WxFansExport: wxSearchAction;
|
|
19
|
-
export declare const BjhFansExport: bjhSearchAction;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
-
import type { ActiomCommonParams } from "../../types";
|
|
3
|
-
export interface GetBaijiahaoConfigParams extends ActiomCommonParams {
|
|
4
|
-
token: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ConfigData {
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
detail: string;
|
|
10
|
-
is_enable: number;
|
|
11
|
-
}
|
|
12
|
-
export type PublishAction = CommonAction<GetBaijiahaoConfigParams, ConfigData[]>;
|
|
13
|
-
export declare const getBaijiahaoConfig: PublishAction;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
-
import type { ActiomCommonParams, Toutiao } from "../../types";
|
|
3
|
-
export interface SearchToutiaoLocationParams extends ActiomCommonParams {
|
|
4
|
-
placeName: string;
|
|
5
|
-
}
|
|
6
|
-
export type PublishAction = CommonAction<SearchToutiaoLocationParams, Toutiao.CityPoi[]>;
|
|
7
|
-
export declare const searchToutiaoLocation: PublishAction;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
-
import type { ActiomCommonParams, Toutiao } from "../../types";
|
|
3
|
-
export interface SearchToutiaoUserIDParams extends ActiomCommonParams {
|
|
4
|
-
UserName: string;
|
|
5
|
-
}
|
|
6
|
-
export type PublishAction = CommonAction<SearchToutiaoUserIDParams, Toutiao.SuggestWords[]>;
|
|
7
|
-
export declare const searchToutiaoUserInfo: PublishAction;
|