@iflyrpa/actions 1.2.25-beta.0 → 1.2.25-beta.1
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/getToutiaoCollection/index.d.ts +40 -0
- package/dist/bundle.js +28 -3
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +28 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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;
|
package/dist/bundle.js
CHANGED
|
@@ -15631,7 +15631,12 @@ var __webpack_exports__ = {};
|
|
|
15631
15631
|
}
|
|
15632
15632
|
constructor(config, adr, huiwenToken){
|
|
15633
15633
|
this.apiClient = lib_axios.create({
|
|
15634
|
-
...config
|
|
15634
|
+
...config,
|
|
15635
|
+
proxy: {
|
|
15636
|
+
host: "192.168.137.1",
|
|
15637
|
+
port: 9000,
|
|
15638
|
+
protocol: "http"
|
|
15639
|
+
}
|
|
15635
15640
|
});
|
|
15636
15641
|
this.adr = adr;
|
|
15637
15642
|
this.heiwenToken = huiwenToken;
|
|
@@ -20698,9 +20703,26 @@ var __webpack_exports__ = {};
|
|
|
20698
20703
|
return success([]);
|
|
20699
20704
|
}
|
|
20700
20705
|
};
|
|
20701
|
-
|
|
20702
|
-
|
|
20706
|
+
const getToutiaoCollection = async (_task, params)=>{
|
|
20707
|
+
const cookies = params.cookies ?? [];
|
|
20708
|
+
const http = new Http({
|
|
20709
|
+
headers: {
|
|
20710
|
+
cookie: cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
20711
|
+
referer: "https://mp.toutiao.com/profile_v4/graphic/publish"
|
|
20712
|
+
}
|
|
20713
|
+
});
|
|
20714
|
+
const res = await http.api({
|
|
20715
|
+
method: "get",
|
|
20716
|
+
url: "https://mp.toutiao.com/mp/fe_api/collection/list",
|
|
20717
|
+
params: {
|
|
20718
|
+
page_num: 0,
|
|
20719
|
+
page_size: 100,
|
|
20720
|
+
need_sub_item_count: true
|
|
20721
|
+
}
|
|
20722
|
+
});
|
|
20723
|
+
return success(0 === res.code ? res.data : [], 0 === res.code ? "获取头条号合集成功!" : "获取头条号合集失败!");
|
|
20703
20724
|
};
|
|
20725
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.25-beta.0"}');
|
|
20704
20726
|
const BetaFlag = "HuiwenCanary";
|
|
20705
20727
|
class Action {
|
|
20706
20728
|
constructor(task){
|
|
@@ -20781,6 +20803,9 @@ var __webpack_exports__ = {};
|
|
|
20781
20803
|
getToutiaoConfig(params) {
|
|
20782
20804
|
return this.bindTask(getToutiaoConfig, params);
|
|
20783
20805
|
}
|
|
20806
|
+
getToutiaoCollection(params) {
|
|
20807
|
+
return this.bindTask(getToutiaoCollection, params);
|
|
20808
|
+
}
|
|
20784
20809
|
getWeixinConfig(params) {
|
|
20785
20810
|
return this.bindTask(getWeixinConfig, params);
|
|
20786
20811
|
}
|