@iflyrpa/actions 1.2.11-beta.5 → 1.2.12-beta.0
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 +1 -1
- package/dist/actions/toutiaoPublish/index.d.ts +1 -1
- package/dist/bundle.js +5 -8
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ export interface BaijiahaoPublishParams extends ActiomCommonParams {
|
|
|
17
17
|
baijiahaoIsAi: string[];
|
|
18
18
|
baijiahaoSingleCover: string;
|
|
19
19
|
baijiahaoMultCover: string[];
|
|
20
|
-
baijiahaoVerticalCover
|
|
20
|
+
baijiahaoVerticalCover?: string;
|
|
21
21
|
baijiahaoActivity: ActivityData[];
|
|
22
22
|
baijiahaoPublishConf?: {
|
|
23
23
|
confName: string;
|
|
@@ -11,7 +11,7 @@ export interface ToutiaoPublishParams extends ActiomCommonParams {
|
|
|
11
11
|
toutiaoSingleCover: string;
|
|
12
12
|
toutiaoMultCover: string[];
|
|
13
13
|
toutiaoAd: string;
|
|
14
|
-
toutiaoOriginal
|
|
14
|
+
toutiaoOriginal?: string;
|
|
15
15
|
toutiaoExclusive?: number;
|
|
16
16
|
toutiaoClaim?: {
|
|
17
17
|
type: number;
|
package/dist/bundle.js
CHANGED
|
@@ -14371,10 +14371,6 @@ var __webpack_exports__ = {};
|
|
|
14371
14371
|
}
|
|
14372
14372
|
return dom;
|
|
14373
14373
|
});
|
|
14374
|
-
let vertical_cover = params.settingInfo.baijiahaoVerticalCover;
|
|
14375
|
-
if (vertical_cover) vertical_cover = (await uploadImages([
|
|
14376
|
-
vertical_cover
|
|
14377
|
-
]))[0].bos_url;
|
|
14378
14374
|
const horizontalCoverUrl = "single" === baijiahaoCoverType ? [
|
|
14379
14375
|
baijiahaoSingleCover
|
|
14380
14376
|
] : baijiahaoMultCover;
|
|
@@ -14410,7 +14406,6 @@ var __webpack_exports__ = {};
|
|
|
14410
14406
|
const publishData = {
|
|
14411
14407
|
title: params.settingInfo.baijiahaoTitle,
|
|
14412
14408
|
content,
|
|
14413
|
-
vertical_cover,
|
|
14414
14409
|
abstract: params.settingInfo.baijiahaoAbstract,
|
|
14415
14410
|
cover_layout,
|
|
14416
14411
|
cover_images: JSON.stringify(cover_images),
|
|
@@ -15052,7 +15047,7 @@ var __webpack_exports__ = {};
|
|
|
15052
15047
|
}
|
|
15053
15048
|
}))),
|
|
15054
15049
|
article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
|
|
15055
|
-
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal
|
|
15050
|
+
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal?.includes("exclusive") ? 1 : 0
|
|
15056
15051
|
};
|
|
15057
15052
|
const msToken = params.cookies.find((it)=>"msToken" === it.name)?.value;
|
|
15058
15053
|
let publishOption = {};
|
|
@@ -15224,7 +15219,7 @@ var __webpack_exports__ = {};
|
|
|
15224
15219
|
const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
|
|
15225
15220
|
hasText: "声明首发"
|
|
15226
15221
|
}).locator("xpath=..");
|
|
15227
|
-
if (params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
|
|
15222
|
+
if (params.settingInfo.toutiaoOriginal && params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
|
|
15228
15223
|
else exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").uncheck();
|
|
15229
15224
|
let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
|
|
15230
15225
|
switch(claim){
|
|
@@ -17406,7 +17401,9 @@ var __webpack_exports__ = {};
|
|
|
17406
17401
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
17407
17402
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
17408
17403
|
};
|
|
17409
|
-
var package_namespaceObject =
|
|
17404
|
+
var package_namespaceObject = {
|
|
17405
|
+
i8: "1.2.11"
|
|
17406
|
+
};
|
|
17410
17407
|
class Action {
|
|
17411
17408
|
constructor(task){
|
|
17412
17409
|
this.task = task;
|