@iflyrpa/actions 1.2.11 → 1.2.12

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/types.d.ts CHANGED
@@ -10,13 +10,26 @@ export interface ActiomCommonParams {
10
10
  actionType?: "mockApi" | "rpa";
11
11
  readonly articleId?: string;
12
12
  }
13
- export interface WeiXinCropResult {
14
- cdnurl: string;
15
- file_id: number;
16
- width: number;
17
- height: number;
13
+ export declare namespace Weixin {
14
+ interface FansCount {
15
+ fans_count: number | null;
16
+ }
17
+ interface WeiXinCropResult {
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
+ }
18
28
  }
19
29
  export declare namespace Toutiao {
30
+ interface FansCount {
31
+ fans_count: number | null;
32
+ }
20
33
  interface Topic {
21
34
  concern_id: string;
22
35
  id: string;
@@ -25,6 +38,20 @@ export declare namespace Toutiao {
25
38
  type: number;
26
39
  word: string;
27
40
  }
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
+ }
28
55
  interface CityDistrict {
29
56
  gps_location: {
30
57
  city_name: string;
@@ -50,6 +77,9 @@ export declare namespace Toutiao {
50
77
  }
51
78
  }
52
79
  export declare namespace Xiaohongshu {
80
+ interface FansCount {
81
+ fans_count: number | null;
82
+ }
53
83
  interface Topic {
54
84
  id?: string;
55
85
  name: string;
@@ -29,6 +29,15 @@ 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
+ }
32
41
  export declare const replaceImgSrc: (html: string, callback: (dom: Element) => Element) => string;
33
42
  export declare const stringifyError: (error: unknown) => {} | undefined;
34
43
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iflyrpa/actions",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",