@iflyrpa/actions 1.2.12 → 1.2.14

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.
@@ -11,7 +11,7 @@ export interface ToutiaoPublishParams extends ActiomCommonParams {
11
11
  toutiaoSingleCover: string;
12
12
  toutiaoMultCover: string[];
13
13
  toutiaoAd: string;
14
- toutiaoOriginal: string;
14
+ toutiaoOriginal?: string;
15
15
  toutiaoExclusive?: number;
16
16
  toutiaoClaim?: {
17
17
  type: number;
package/dist/bundle.js CHANGED
@@ -14300,7 +14300,8 @@ var __webpack_exports__ = {};
14300
14300
  2004005714: "网络环境异常,请检查网络后重试发布。",
14301
14301
  401100032: "异常,请检查图片(如:格式、版权、合规性等)。",
14302
14302
  20040034: "封面图片推荐jpg、png格式,不支持gif格式。",
14303
- 20040124: "服务器异常,请稍后重试!"
14303
+ 20040124: "服务器异常,请稍后重试!",
14304
+ 20040001: "当前用户未登录,请登陆后重试!"
14304
14305
  };
14305
14306
  const mockAction = async (task, params)=>{
14306
14307
  const { baijiahaoSingleCover, baijiahaoMultCover, baijiahaoCoverType } = params.settingInfo;
@@ -14899,6 +14900,7 @@ var __webpack_exports__ = {};
14899
14900
  2010: "无头条广告权限,请修改后重试。",
14900
14901
  3103: "今日头条号发布次数已达上限,请明天再试。",
14901
14902
  1053: "正文图片和封面图片推荐jpg、png格式。",
14903
+ 1050: "图片上传失败,请重试上传。",
14902
14904
  2005: "账号无【申明原创】权限,请关闭申明后重试。",
14903
14905
  100004: "用户未登录或登陆已过期,请重新登陆后重试。"
14904
14906
  };
@@ -15047,7 +15049,7 @@ var __webpack_exports__ = {};
15047
15049
  }
15048
15050
  }))),
15049
15051
  article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
15050
- claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal.includes("exclusive") ? 1 : 0
15052
+ claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal?.includes("exclusive") ? 1 : 0
15051
15053
  };
15052
15054
  const msToken = params.cookies.find((it)=>"msToken" === it.name)?.value;
15053
15055
  let publishOption = {};
@@ -15219,7 +15221,7 @@ var __webpack_exports__ = {};
15219
15221
  const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
15220
15222
  hasText: "声明首发"
15221
15223
  }).locator("xpath=..");
15222
- if (params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
15224
+ if (params.settingInfo.toutiaoOriginal && params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
15223
15225
  else exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").uncheck();
15224
15226
  let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
15225
15227
  switch(claim){
@@ -16994,6 +16996,7 @@ var __webpack_exports__ = {};
16994
16996
  }
16995
16997
  const xiaohongshuPublish_mock_errnoMap = {
16996
16998
  915: "所属C端账号手机号被修改,请重新登录",
16999
+ 914: "所属C端账号密码被修改,请重新登录",
16997
17000
  903: "账户已登出,需重新登陆重试!",
16998
17001
  902: "登录已过期,请重新登录!"
16999
17002
  };
@@ -17402,7 +17405,7 @@ var __webpack_exports__ = {};
17402
17405
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
17403
17406
  };
17404
17407
  var package_namespaceObject = {
17405
- i8: "1.2.11"
17408
+ i8: "1.2.13"
17406
17409
  };
17407
17410
  class Action {
17408
17411
  constructor(task){