component-shipinlv 1.3.7 → 1.3.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/UI/Money/index.css.js +1 -1
  2. package/dist/VideoPublish/account-manage/home.js +1 -1
  3. package/dist/VideoPublish/account-manage/list.js +1 -1
  4. package/dist/VideoPublish/account-manage/setting/index.js +2 -0
  5. package/dist/VideoPublish/publish-task-plan/tool.js +65 -11
  6. package/dist/VideoPublish/video-publish-statistic/index.js +28 -3
  7. package/dist/VideoPublish/video-publish-statistic/operation/list.d.ts +7 -0
  8. package/dist/VideoPublish/video-publish-statistic/operation/list.js +203 -0
  9. package/dist/VideoPublish/video-publish-statistic/operation/list.less +10 -0
  10. package/dist/VideoPublish/video-publish-statistic/operation/query.d.ts +8 -0
  11. package/dist/VideoPublish/video-publish-statistic/operation/query.js +56 -0
  12. package/dist/VideoPublish/video-publish-statistic/{list.js → publish-plan/list.js} +35 -9
  13. package/dist/VideoPublish/video-publish-statistic/{query.js → publish-plan/query.js} +1 -1
  14. package/dist/VideoPublish/video-publish-statistic/publish-plan/query.less +3 -0
  15. package/dist/component/isFileExist.d.ts +2 -0
  16. package/dist/component/isFileExist.js +50 -0
  17. package/dist/lib/Tool.d.ts +1 -1
  18. package/dist/lib/getPublishExtensionDir.d.ts +2 -0
  19. package/dist/lib/getPublishExtensionDir.js +55 -0
  20. package/dist/lib/openChrome.d.ts +1 -1
  21. package/dist/lib/openChrome.js +210 -113
  22. package/dist/lib/video-api/open-chrome.js +3 -1
  23. package/dist/service/api/VideoPublishStatisticOperationController.d.ts +7 -0
  24. package/dist/service/api/VideoPublishStatisticOperationController.js +28 -0
  25. package/dist/service/local/VideoPublishTaskController.js +1 -1
  26. package/dist/service/video-api/BaseController.d.ts +1 -0
  27. package/dist/service/video-api/BaseController.js +27 -0
  28. package/dist/service/video-api/FileController.d.ts +1 -0
  29. package/dist/service/video-api/FileController.js +27 -0
  30. package/dist/types/File.d.ts +8 -0
  31. package/dist/types/File.js +0 -0
  32. package/dist/types/VideoPublishStatisticOperation.d.ts +12 -0
  33. package/dist/types/VideoPublishStatisticOperation.js +0 -0
  34. package/dist/types/VideoPublishVideoAccount.d.ts +1 -0
  35. package/dist/types/VidepApiBase.d.ts +5 -0
  36. package/dist/types/VidepApiBase.js +0 -0
  37. package/package.json +1 -1
  38. /package/dist/VideoPublish/video-publish-statistic/{query.less → operation/query.less} +0 -0
  39. /package/dist/VideoPublish/video-publish-statistic/{list.d.ts → publish-plan/list.d.ts} +0 -0
  40. /package/dist/VideoPublish/video-publish-statistic/{list.less → publish-plan/list.less} +0 -0
  41. /package/dist/VideoPublish/video-publish-statistic/{query.d.ts → publish-plan/query.d.ts} +0 -0
@@ -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" | "error" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
164
+ notification(type: "error" | "success" | "info" | "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;
@@ -0,0 +1,2 @@
1
+ declare const getPublishExtensionDir: (env: Global.Env | '' | undefined) => Promise<string>;
2
+ export default getPublishExtensionDir;
@@ -0,0 +1,55 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import { getLocalVideoServerDir } from "../service/video-api/BaseController";
4
+ var getPublishExtensionDir = /*#__PURE__*/function () {
5
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(env) {
6
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7
+ while (1) switch (_context2.prev = _context2.next) {
8
+ case 0:
9
+ return _context2.abrupt("return", new Promise( /*#__PURE__*/function () {
10
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
11
+ var result, dir;
12
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
13
+ while (1) switch (_context.prev = _context.next) {
14
+ case 0:
15
+ _context.next = 2;
16
+ return getLocalVideoServerDir().catch(function (err) {
17
+ reject(err);
18
+ });
19
+ case 2:
20
+ result = _context.sent;
21
+ if (result) {
22
+ _context.next = 5;
23
+ break;
24
+ }
25
+ return _context.abrupt("return");
26
+ case 5:
27
+ if (!(env === 'local')) {
28
+ _context.next = 7;
29
+ break;
30
+ }
31
+ return _context.abrupt("return", resolve('/Volumes/Data/Web/shipinlv/chrome-shipinlv-video-publish/public'));
32
+ case 7:
33
+ dir = result.dirPath + '/../../../chrome-publish-plugin';
34
+ resolve(dir);
35
+ case 9:
36
+ case "end":
37
+ return _context.stop();
38
+ }
39
+ }, _callee);
40
+ }));
41
+ return function (_x2, _x3) {
42
+ return _ref2.apply(this, arguments);
43
+ };
44
+ }()));
45
+ case 1:
46
+ case "end":
47
+ return _context2.stop();
48
+ }
49
+ }, _callee2);
50
+ }));
51
+ return function getPublishExtensionDir(_x) {
52
+ return _ref.apply(this, arguments);
53
+ };
54
+ }();
55
+ export default getPublishExtensionDir;
@@ -1,2 +1,2 @@
1
- declare const openChrome: (query: ChromeOperate.PropsQuery, isNew: boolean) => Promise<void>;
1
+ declare const openChrome: (query: ChromeOperate.PropsQuery, isNew: boolean, env: Global.Env | '' | undefined) => Promise<unknown>;
2
2
  export default openChrome;
@@ -1,4 +1,5 @@
1
1
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
4
  import AccountManageSettingConfig from "./accountManageSettingConfig";
4
5
  import param from "../component/param";
@@ -8,139 +9,235 @@ import userAgent from "./user-agent";
8
9
  import VideoApiOpenChrome from "./video-api/open-chrome";
9
10
  import sleep from "./sleep";
10
11
  import VideoApiQuitChrome from "./video-api/quit-chrome";
12
+ import event from "./event";
13
+ import * as VideoPublishCrawlerTaskController from "../service/api/VideoPublishCrawlerTaskController";
14
+ import * as LocalVideoPublishTaskController from "../service/local/VideoPublishTaskController";
15
+ import getPublishExtensionDir from "./getPublishExtensionDir";
16
+
11
17
  // @isNew: 只有 新建账户,才要 isNew
12
18
  var openChrome = /*#__PURE__*/function () {
13
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(query, isNew) {
14
- var settingConfig, data, cmdResult;
15
- return _regeneratorRuntime().wrap(function _callee$(_context) {
16
- while (1) switch (_context.prev = _context.next) {
19
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(query, isNew, env) {
20
+ var settingConfig;
21
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
22
+ while (1) switch (_context3.prev = _context3.next) {
17
23
  case 0:
18
24
  settingConfig = AccountManageSettingConfig();
19
25
  if (!query.chromePath) {
20
26
  query.chromePath = settingConfig.chromePath;
21
27
  }
22
28
  if (query.chromePath) {
23
- _context.next = 5;
29
+ _context3.next = 5;
24
30
  break;
25
31
  }
26
32
  notification.notificationError('没找到 Google 浏览器', '请设置 谷歌浏览器地址,或者重新安装 https://google.cn/chrome/');
27
- return _context.abrupt("return");
33
+ return _context3.abrupt("return");
28
34
  case 5:
29
- data = getOpenQuery(query, isNew, settingConfig);
30
- if (!query.chromeProfileName) {
31
- _context.next = 11;
32
- break;
33
- }
34
- _context.next = 9;
35
- return VideoApiQuitChrome({
36
- platform: query.platform,
37
- platformVideoAccountId: query.platformAccountId,
38
- chromeProfileName: query.chromeProfileName
39
- }).catch(function (err) {
40
- console.warn('关闭 chrome 失败', query);
41
- });
42
- case 9:
43
- _context.next = 11;
44
- return sleep(2e3);
45
- case 11:
46
- _context.next = 13;
47
- return VideoApiOpenChrome({
48
- commandList: data.commandList
49
- }).catch(function (err) {
50
- // todo 上报
51
- console.log('open chrome err:', err);
52
- // VideoPublishCrawlerTaskController.report({
53
- // success: false,
54
- // code: 'open-chrome-fail',
55
- // message: err?.message,
56
- //
57
- // taskType: '',
58
- // taskId: query.taskId,
59
- // platform: query.platform,
60
- // platformAccountId: query.platformAccountId,
61
- // },{
62
- // // env,
63
- // });
64
- });
65
- case 13:
66
- cmdResult = _context.sent;
67
- console.log("cmd:", query);
68
- if (!cmdResult) {
69
- // await sleep( 6e3 );
70
- // VideoApiQuitChrome({
71
- // platform: query.platform,
72
- // platformVideoAccountId: query.platformAccountId,
73
- // chromeProfileName: query.chromeProfileName,
74
- // });
75
- }
76
- case 16:
35
+ return _context3.abrupt("return", new Promise( /*#__PURE__*/function () {
36
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(resolve, reject) {
37
+ var data, cmdResult;
38
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
39
+ while (1) switch (_context2.prev = _context2.next) {
40
+ case 0:
41
+ _context2.next = 2;
42
+ return getOpenQuery(query, isNew, settingConfig, env).catch(function (err) {
43
+ reject(err);
44
+ });
45
+ case 2:
46
+ data = _context2.sent;
47
+ if (data) {
48
+ _context2.next = 5;
49
+ break;
50
+ }
51
+ return _context2.abrupt("return");
52
+ case 5:
53
+ if (!query.chromeProfileName) {
54
+ _context2.next = 10;
55
+ break;
56
+ }
57
+ _context2.next = 8;
58
+ return VideoApiQuitChrome({
59
+ platform: query.platform,
60
+ platformVideoAccountId: query.platformAccountId,
61
+ chromeProfileName: query.chromeProfileName
62
+ }).catch(function (err) {
63
+ console.warn('关闭 chrome 失败', query);
64
+ });
65
+ case 8:
66
+ _context2.next = 10;
67
+ return sleep(2e3);
68
+ case 10:
69
+ _context2.next = 12;
70
+ return VideoApiOpenChrome({
71
+ commandList: data.commandList
72
+ }).catch( /*#__PURE__*/function () {
73
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(err) {
74
+ var sendData;
75
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
76
+ while (1) switch (_context.prev = _context.next) {
77
+ case 0:
78
+ console.log('open chrome err:', err);
79
+ notification.notificationError('打开 Google 浏览器 失败', err === null || err === void 0 ? void 0 : err.message);
80
+ sendData = {
81
+ success: false,
82
+ platform: query.platform,
83
+ platformAccountId: query.platformAccountId,
84
+ code: 'open-chrome-fail',
85
+ message: (err === null || err === void 0 ? void 0 : err.message) || JSON.stringify(err),
86
+ taskId: query.taskId,
87
+ taskType: 'publish-video'
88
+ };
89
+ event.run('publish-video-log-publish-video', sendData);
90
+
91
+ // 发消息 , 不管结果,无论失败
92
+ LocalVideoPublishTaskController.sendMessageToPort(_objectSpread({}, sendData));
93
+ VideoPublishCrawlerTaskController.report(_objectSpread({}, sendData), {
94
+ // env: this.env,
95
+ });
96
+ _context.next = 8;
97
+ return sleep(2e3);
98
+ case 8:
99
+ reject(err);
100
+
101
+ // VideoPublishCrawlerTaskController.report({
102
+ // success: false,
103
+ // code: 'open-chrome-fail',
104
+ // message: err?.message,
105
+ //
106
+ // taskType: '',
107
+ // taskId: query.taskId,
108
+ // platform: query.platform,
109
+ // platformAccountId: query.platformAccountId,
110
+ // },{
111
+ // // env,
112
+ // });
113
+ case 9:
114
+ case "end":
115
+ return _context.stop();
116
+ }
117
+ }, _callee);
118
+ }));
119
+ return function (_x6) {
120
+ return _ref3.apply(this, arguments);
121
+ };
122
+ }());
123
+ case 12:
124
+ cmdResult = _context2.sent;
125
+ console.log("cmd:", query);
126
+ if (cmdResult) {
127
+ _context2.next = 16;
128
+ break;
129
+ }
130
+ return _context2.abrupt("return");
131
+ case 16:
132
+ resolve(true);
133
+ case 17:
134
+ case "end":
135
+ return _context2.stop();
136
+ }
137
+ }, _callee2);
138
+ }));
139
+ return function (_x4, _x5) {
140
+ return _ref2.apply(this, arguments);
141
+ };
142
+ }()));
143
+ case 6:
77
144
  case "end":
78
- return _context.stop();
145
+ return _context3.stop();
79
146
  }
80
- }, _callee);
147
+ }, _callee3);
81
148
  }));
82
- return function openChrome(_x, _x2) {
149
+ return function openChrome(_x, _x2, _x3) {
83
150
  return _ref.apply(this, arguments);
84
151
  };
85
152
  }();
86
- var getOpenQuery = function getOpenQuery(query, isNew, settingConfig) {
87
- var cmdList = [];
88
- var url = query.url;
89
- var openUrl = url + ((url === null || url === void 0 ? void 0 : url.indexOf('?')) === -1 ? '?' : '&') + param({
90
- _shipinlvFrom: 'auto',
91
- _action: query.action || '',
92
- _platformAccountId: query.platformAccountId,
93
- _nickname: query.nickname || '',
94
- _chromeProfileName: query.chromeProfileName || ''
95
- });
96
- var chromeProfileDir = settingConfig.chromeUserDataDir + '/' + query.chromeProfileName;
97
- switch (Tool.getOsName()) {
98
- case "windows":
99
- // 艹,屎一样的 windows cmd
100
- // powershell -NoProfile -Command "Start-Process -FilePath 'C:\Program Files\Google\Chrome\Application\chrome.exe'"
101
- // cmdList.push( "cmd", "/c", "start" );
102
- // cmdList.push( "powershell", "-NoProfile", "-Command", "\"Start-Process", "-FilePath" );
103
- if (query.chromePath) {
104
- cmdList.push("".concat(query.chromePath));
105
- } else {
106
- cmdList.push("chrome");
107
- }
108
- if (!query.isOpen) {
109
- cmdList.push("--headless=old");
110
-
111
- // --disable-gpu是为了解决一些在无头模式下可能出现的GPU相关的问题
112
- cmdList.push("--disable-gpu");
113
- }
114
- break;
115
- case "darwin":
116
- cmdList = ["open"];
117
- if (isNew) {
118
- cmdList.push("-n");
119
- }
120
- cmdList.push("-a", "".concat(query.chromePath || 'Google Chrome'), "--args");
121
- if (!query.isOpen) {
122
- cmdList.push("--headless");
153
+ var getOpenQuery = /*#__PURE__*/function () {
154
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(query, isNew, settingConfig, env) {
155
+ var cmdList, url, openUrl, chromeProfileDir, publishExtensionDir;
156
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
157
+ while (1) switch (_context4.prev = _context4.next) {
158
+ case 0:
159
+ cmdList = [];
160
+ url = query.url; // todo
161
+ query.isOpen = true;
162
+ openUrl = url + ((url === null || url === void 0 ? void 0 : url.indexOf('?')) === -1 ? '?' : '&') + param({
163
+ _shipinlvFrom: 'auto',
164
+ _action: query.action || '',
165
+ _platformAccountId: query.platformAccountId,
166
+ _nickname: query.nickname || '',
167
+ _chromeProfileName: query.chromeProfileName || ''
168
+ });
169
+ chromeProfileDir = settingConfig.chromeUserDataDir + '/' + query.chromeProfileName;
170
+ _context4.t0 = Tool.getOsName();
171
+ _context4.next = _context4.t0 === "windows" ? 8 : _context4.t0 === "darwin" ? 11 : 16;
172
+ break;
173
+ case 8:
174
+ // 艹,屎一样的 windows cmd
175
+ // powershell -NoProfile -Command "Start-Process -FilePath 'C:\Program Files\Google\Chrome\Application\chrome.exe'"
176
+ // cmdList.push( "cmd", "/c", "start" );
177
+ // cmdList.push( "powershell", "-NoProfile", "-Command", "\"Start-Process", "-FilePath" );
178
+ if (query.chromePath) {
179
+ cmdList.push("".concat(query.chromePath));
180
+ } else {
181
+ cmdList.push("chrome");
182
+ }
183
+ if (!query.isOpen) {
184
+ cmdList.push("--headless=old");
123
185
 
124
- // --disable-gpu是为了解决一些在无头模式下可能出现的GPU相关的问题
125
- cmdList.push("--disable-gpu");
126
- }
127
- break;
128
- default:
129
- notification.notificationError('不支持的系统', '发布不支持此系统');
130
- }
186
+ // --disable-gpu是为了解决一些在无头模式下可能出现的GPU相关的问题
187
+ cmdList.push("--disable-gpu");
188
+ }
189
+ return _context4.abrupt("break", 17);
190
+ case 11:
191
+ cmdList = ["open"];
192
+ if (isNew) {
193
+ cmdList.push("-n");
194
+ }
195
+ cmdList.push("-a", "".concat(query.chromePath || 'Google Chrome'), "--args");
196
+ if (!query.isOpen) {
197
+ cmdList.push("--headless");
131
198
 
132
- // 尺寸
133
- cmdList.push("--window-size=".concat(window.screen.width, ",").concat(window.screen.height));
134
- cmdList.push("--user-data-dir=".concat(chromeProfileDir));
135
- cmdList.push("--user-agent=".concat(userAgent()));
199
+ // --disable-gpu是为了解决一些在无头模式下可能出现的GPU相关的问题
200
+ cmdList.push("--disable-gpu");
201
+ }
202
+ return _context4.abrupt("break", 17);
203
+ case 16:
204
+ notification.notificationError('不支持的系统', '发布不支持此系统');
205
+ case 17:
206
+ // 尺寸
207
+ cmdList.push("--window-position=".concat(-window.screen.width + 20, ",10"));
208
+ cmdList.push("--window-size=".concat(window.screen.width, ",").concat(window.screen.height - 100));
209
+ cmdList.push("--user-data-dir=".concat(chromeProfileDir));
210
+ cmdList.push("--user-agent=".concat(userAgent()));
136
211
 
137
- // 不要检查
138
- cmdList.push('--no-first-run', '--no-default-browser-check', '--disable-default-apps');
139
- cmdList.push("".concat(openUrl));
140
- console.log('profileName:', cmdList, chromeProfileDir);
141
- return {
142
- commandList: cmdList,
143
- chromeProfileDir: chromeProfileDir
212
+ // 不要检查
213
+ cmdList.push('--no-first-run', '--no-default-browser-check', '--disable-default-apps');
214
+ _context4.next = 24;
215
+ return getPublishExtensionDir(env).catch(function (err) {
216
+ notification.notificationError('获取插件地址失败', err.message);
217
+ });
218
+ case 24:
219
+ publishExtensionDir = _context4.sent;
220
+ if (publishExtensionDir) {
221
+ _context4.next = 27;
222
+ break;
223
+ }
224
+ return _context4.abrupt("return", Promise.reject(new Error('获取插件地址失败')));
225
+ case 27:
226
+ cmdList.push("--load-extension=".concat(publishExtensionDir));
227
+ cmdList.push("".concat(openUrl));
228
+ console.log('profileName:', cmdList, chromeProfileDir);
229
+ return _context4.abrupt("return", {
230
+ commandList: cmdList,
231
+ chromeProfileDir: chromeProfileDir
232
+ });
233
+ case 31:
234
+ case "end":
235
+ return _context4.stop();
236
+ }
237
+ }, _callee4);
238
+ }));
239
+ return function getOpenQuery(_x7, _x8, _x9, _x10) {
240
+ return _ref4.apply(this, arguments);
144
241
  };
145
- };
242
+ }();
146
243
  export default openChrome;
@@ -13,7 +13,9 @@ var VideoApiOpenChrome = /*#__PURE__*/function () {
13
13
  while (1) switch (_context.prev = _context.next) {
14
14
  case 0:
15
15
  _context.next = 2;
16
- return VideoApiOpenChromeController.openChrome(query).catch(function (err) {
16
+ return VideoApiOpenChromeController.openChrome(query, {
17
+ timeout: 60e3
18
+ }).catch(function (err) {
17
19
  // if( err?.name === "shipinlv-client-not-run" ){
18
20
  // return reject( err );
19
21
  // }
@@ -0,0 +1,7 @@
1
+ export declare function list(body: {
2
+ year: number;
3
+ month: number;
4
+ day: number;
5
+ current: number;
6
+ pageSize: number;
7
+ }, options?: Global.RequestOptions): Promise<VideoPublishStatisticOperation.ListResult>;
@@ -0,0 +1,28 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ import { PublishDomainApi } from "./VideoPublishController";
6
+ export function list(_x, _x2) {
7
+ return _list.apply(this, arguments);
8
+ }
9
+ function _list() {
10
+ _list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
11
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
12
+ while (1) switch (_context.prev = _context.next) {
13
+ case 0:
14
+ return _context.abrupt("return", request(PublishDomainApi("user/videoAccountStatisticOperation/list", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
15
+ method: 'POST',
16
+ headers: {
17
+ 'Content-Type': 'application/json'
18
+ },
19
+ data: _objectSpread({}, body)
20
+ }, options || {})));
21
+ case 1:
22
+ case "end":
23
+ return _context.stop();
24
+ }
25
+ }, _callee);
26
+ }));
27
+ return _list.apply(this, arguments);
28
+ }
@@ -19,7 +19,7 @@ function _sendMessageToPort() {
19
19
  'Content-Type': 'application/json'
20
20
  },
21
21
  data: _objectSpread({}, body),
22
- timeout: 6e3,
22
+ timeout: 10e3,
23
23
  silent: true
24
24
  }, options || {})));
25
25
  case 2:
@@ -0,0 +1 @@
1
+ export declare function getLocalVideoServerDir(body?: {}, options?: ServicesApi.RequestOptions): Promise<VideoApiBase.LocalVideoServerDir>;
@@ -0,0 +1,27 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ export function getLocalVideoServerDir(_x, _x2) {
6
+ return _getLocalVideoServerDir.apply(this, arguments);
7
+ }
8
+ function _getLocalVideoServerDir() {
9
+ _getLocalVideoServerDir = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ return _context.abrupt("return", request("_video-api/base/getLocalVideoServerDir", _objectSpread({
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json'
17
+ },
18
+ data: body
19
+ }, options || {})));
20
+ case 1:
21
+ case "end":
22
+ return _context.stop();
23
+ }
24
+ }, _callee);
25
+ }));
26
+ return _getLocalVideoServerDir.apply(this, arguments);
27
+ }
@@ -0,0 +1 @@
1
+ export declare function isExist(body: File.IsExistQuery, options?: ServicesApi.RequestOptions): Promise<File.IsExistResult>;
@@ -0,0 +1,27 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ export function isExist(_x, _x2) {
6
+ return _isExist.apply(this, arguments);
7
+ }
8
+ function _isExist() {
9
+ _isExist = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ return _context.abrupt("return", request("_video-api/file/isExist", _objectSpread({
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json'
17
+ },
18
+ data: body
19
+ }, options || {})));
20
+ case 1:
21
+ case "end":
22
+ return _context.stop();
23
+ }
24
+ }, _callee);
25
+ }));
26
+ return _isExist.apply(this, arguments);
27
+ }
@@ -0,0 +1,8 @@
1
+ declare namespace File {
2
+ interface IsExistQuery {
3
+ filePath: string;
4
+ }
5
+ interface IsExistResult {
6
+ isExist: boolean;
7
+ }
8
+ }
File without changes
@@ -0,0 +1,12 @@
1
+ declare namespace VideoPublishStatisticOperation {
2
+ interface List {
3
+ accountInfo: VideoPublishVideoAccount.BaseInfo;
4
+ }
5
+ interface ListResult {
6
+ list: List[];
7
+ pagination: Global.Pagination;
8
+ }
9
+ interface ListQuery {
10
+ time: number;
11
+ }
12
+ }
File without changes
@@ -17,6 +17,7 @@ declare namespace VideoPublishVideoAccount {
17
17
  isLoginValid: boolean;
18
18
  "groupId": number;
19
19
  "groupName": string;
20
+ followerCount: number;
20
21
  "uniqueId": string;
21
22
  "accountId": string;
22
23
  "avatar": string;
@@ -0,0 +1,5 @@
1
+ declare namespace VideoApiBase {
2
+ interface LocalVideoServerDir {
3
+ dirPath: string;
4
+ }
5
+ }
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.3.7",
3
+ "version": "1.3.10",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",