@iflyrpa/actions 1.2.12 → 1.2.13
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/toutiaoPublish/index.d.ts +1 -1
- package/dist/bundle.js +3 -3
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
@@ -15047,7 +15047,7 @@ var __webpack_exports__ = {};
|
|
|
15047
15047
|
}
|
|
15048
15048
|
}))),
|
|
15049
15049
|
article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
|
|
15050
|
-
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal
|
|
15050
|
+
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal?.includes("exclusive") ? 1 : 0
|
|
15051
15051
|
};
|
|
15052
15052
|
const msToken = params.cookies.find((it)=>"msToken" === it.name)?.value;
|
|
15053
15053
|
let publishOption = {};
|
|
@@ -15219,7 +15219,7 @@ var __webpack_exports__ = {};
|
|
|
15219
15219
|
const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
|
|
15220
15220
|
hasText: "声明首发"
|
|
15221
15221
|
}).locator("xpath=..");
|
|
15222
|
-
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();
|
|
15223
15223
|
else exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").uncheck();
|
|
15224
15224
|
let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
|
|
15225
15225
|
switch(claim){
|
|
@@ -17402,7 +17402,7 @@ var __webpack_exports__ = {};
|
|
|
17402
17402
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
17403
17403
|
};
|
|
17404
17404
|
var package_namespaceObject = {
|
|
17405
|
-
i8: "1.2.
|
|
17405
|
+
i8: "1.2.12"
|
|
17406
17406
|
};
|
|
17407
17407
|
class Action {
|
|
17408
17408
|
constructor(task){
|