component-shipinlv 1.1.12 → 1.1.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,6 @@ declare class PublishTaskPlanClass {
11
11
  doWorkWait(): Promise<void>;
12
12
  onReport(success: boolean, message: string, saveBaseData: PublishTaskPlan.ReportTaskQueryBaseInfo): void;
13
13
  onTaskGet(): Promise<PublishTaskPlan.TaskDetail>;
14
- onPublishVideo(platform: Global.VideoPlatformKind, platformVideoAccountId: string, taskInfo: PublishTaskPlan.TaskInfo): Promise<PublishNpm.VideoPublishResult>;
14
+ onPublishVideo(platform: Global.VideoPlatformKind, platformVideoAccountId: string, taskInfo: PublishTaskPlan.TaskInfo, proxyInfo: Global.ProxyInfo): Promise<PublishNpm.VideoPublishResult>;
15
15
  }
16
16
  export default PublishTaskPlanClass;
@@ -123,7 +123,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
123
123
  return _context2.abrupt("break", 26);
124
124
  case 16:
125
125
  _context2.next = 18;
126
- return this.onPublishVideo(taskDetail.platform, taskDetail.platformVideoAccountId, taskDetail.taskInfo).catch(function (err) {
126
+ return this.onPublishVideo(taskDetail.platform, taskDetail.platformVideoAccountId, taskDetail.taskInfo, taskDetail.proxyInfo).catch(function (err) {
127
127
  console.warn("onPublishVideo err:", err);
128
128
  _this2.onReport(false, err === null || err === void 0 ? void 0 : err.message, saveBaseData);
129
129
  });
@@ -242,7 +242,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
242
242
  }, {
243
243
  key: "onPublishVideo",
244
244
  value: function () {
245
- var _onPublishVideo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(platform, platformVideoAccountId, taskInfo) {
245
+ var _onPublishVideo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(platform, platformVideoAccountId, taskInfo, proxyInfo) {
246
246
  var _this3 = this;
247
247
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
248
248
  while (1) switch (_context7.prev = _context7.next) {
@@ -260,7 +260,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
260
260
  settingConfig = AccountManageSettingConfig();
261
261
  console.log('settingConfig 1:', settingConfig);
262
262
  _context6.next = 4;
263
- return (_window$getBridge2 = (_window2 = window).getBridge) === null || _window$getBridge2 === void 0 ? void 0 : _window$getBridge2.call(_window2).videoPublish({
263
+ return (_window$getBridge2 = (_window2 = window).getBridge) === null || _window$getBridge2 === void 0 ? void 0 : _window$getBridge2.call(_window2).videoPublish(proxyInfo, {
264
264
  platformVideoAccountId: platformVideoAccountId,
265
265
  platform: platform,
266
266
  open: settingConfig.isChromeOpen,
@@ -329,7 +329,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
329
329
  }
330
330
  }, _callee6);
331
331
  }));
332
- return function (_x6, _x7) {
332
+ return function (_x7, _x8) {
333
333
  return _ref.apply(this, arguments);
334
334
  };
335
335
  }()));
@@ -339,7 +339,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
339
339
  }
340
340
  }, _callee7);
341
341
  }));
342
- function onPublishVideo(_x3, _x4, _x5) {
342
+ function onPublishVideo(_x3, _x4, _x5, _x6) {
343
343
  return _onPublishVideo.apply(this, arguments);
344
344
  }
345
345
  return onPublishVideo;
@@ -161,7 +161,7 @@ declare const Tool: {
161
161
  OsPathSeparator(): string;
162
162
  getTitleByPath(path: string): string;
163
163
  h5Pay(query: Pay.H5PayQuery): void;
164
- notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
164
+ notification(type: "success" | "info" | "error" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
165
165
  notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
166
166
  notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
167
167
  notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
@@ -6,6 +6,7 @@ declare namespace PublishTaskPlan {
6
6
  platformVideoAccountId: string;
7
7
  platform: Global.VideoPlatformKind;
8
8
  taskInfo: TaskInfo;
9
+ proxyInfo: Global.ProxyInfo;
9
10
  }
10
11
  interface TaskInfo {
11
12
  taskType: '' | TaskType;
package/dist/typings.d.ts CHANGED
@@ -71,6 +71,13 @@ declare namespace Global {
71
71
  authApi: string;
72
72
  }
73
73
 
74
+ interface ProxyInfo {
75
+ ip?: string;
76
+ port?: number;
77
+ username?: string;
78
+ password?: string;
79
+ }
80
+
74
81
  type PayMethod = ( 'wepay' | 'alipay' )[];
75
82
  }
76
83
 
package/dist/window.d.ts CHANGED
@@ -14,7 +14,7 @@ declare interface Window{
14
14
  ipcRenderer: {
15
15
  invoke: ( name: string, ...arg) => Promise<any>;
16
16
  },
17
- videoPublish: ( query: any ) => Promise<any>;
17
+ videoPublish: ( proxyInfo: Global.ProxyInfo, query: any ) => Promise<any>;
18
18
  onLog: ( log: ( query: any ) => void ) => void;
19
19
  getChromiumPath: () => string;
20
20
  getClientUniqueKey: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.1.12",
3
+ "version": "1.1.15",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",