component-shipinlv 2.0.18 → 2.1.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/ActiveAccountMode/hour-enabled.d.ts +9 -0
- package/dist/ActiveAccountMode/hour-enabled.js +42 -0
- package/dist/ActiveAccountMode/hour-enabled.less +24 -0
- package/dist/ActiveAccountMode/index.d.ts +7 -0
- package/dist/ActiveAccountMode/index.js +12 -0
- package/dist/ActiveAccountMode/index.less +0 -0
- package/dist/ActiveAccountMode/setting.d.ts +8 -0
- package/dist/ActiveAccountMode/setting.js +206 -0
- package/dist/ActiveAccountMode/setting.less +39 -0
- package/dist/ActiveAccountMode/task/index.d.ts +36 -0
- package/dist/ActiveAccountMode/task/index.js +811 -0
- package/dist/Auth/index.js +2 -0
- package/dist/VideoPublish/account-manage/home.js +1 -0
- package/dist/VideoPublish/account-manage/list.js +1 -0
- package/dist/VideoPublish/create-task/base/index.js +1 -1
- package/dist/VideoPublish/index.js +11 -1
- package/dist/VideoPublish/index.less +2 -2
- package/dist/VideoPublish/publish-task-plan/tool.js +1 -1
- package/dist/VideoPublish/video-account/create.js +1 -1
- package/dist/VideoPublish/video-account/group.js +1 -1
- package/dist/VideoPublish/video-account/index.js +56 -5
- package/dist/config/apiUrls.js +1 -1
- package/dist/lib/Tool.js +7 -0
- package/dist/lib/allow-mine-type.d.ts +4 -0
- package/dist/lib/allow-mine-type.js +19 -0
- package/dist/lib/file-type.d.ts +2 -0
- package/dist/lib/file-type.js +156 -0
- package/dist/lib/fs.d.ts +14 -0
- package/dist/lib/fs.js +479 -0
- package/dist/lib/getFileExt.d.ts +2 -0
- package/dist/lib/getFileExt.js +6 -0
- package/dist/lib/save-path.d.ts +17 -0
- package/dist/lib/save-path.js +173 -0
- package/dist/lib/save-path.less +21 -0
- package/dist/service/api/ActiveAccountModeSettingController.d.ts +2 -0
- package/dist/service/api/ActiveAccountModeSettingController.js +53 -0
- package/dist/service/api/PublishTaskPlanStatisticController.d.ts +1 -0
- package/dist/service/api/PublishTaskPlanStatisticController.js +28 -0
- package/dist/service/api/VideoPublishController.d.ts +4 -0
- package/dist/service/api/VideoPublishController.js +23 -0
- package/dist/types/AutoMakeTaskSetting.d.ts +18 -0
- package/dist/types/AutoMakeTaskSetting.js +0 -0
- package/dist/types/PublishTaskPlanStatistic.d.ts +15 -0
- package/dist/types/PublishTaskPlanStatistic.js +0 -0
- package/dist/types/VideoPublish.d.ts +1 -0
- package/dist/typings/VideoPublishVideoAccount.d.ts +1 -0
- package/dist/typings.d.ts +1 -0
- package/dist/window.d.ts +5 -0
- package/package.json +1 -1
@@ -0,0 +1,53 @@
|
|
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 detail(_x, _x2) {
|
7
|
+
return _detail.apply(this, arguments);
|
8
|
+
}
|
9
|
+
function _detail() {
|
10
|
+
_detail = _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(
|
15
|
+
// `user/activeAccountModeSetting/detail`,
|
16
|
+
PublishDomainApi("user/activeAccountModeSetting/detail", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
|
17
|
+
method: 'GET',
|
18
|
+
headers: {
|
19
|
+
'Content-Type': 'application/json'
|
20
|
+
},
|
21
|
+
data: body
|
22
|
+
}, options || {})));
|
23
|
+
case 1:
|
24
|
+
case "end":
|
25
|
+
return _context.stop();
|
26
|
+
}
|
27
|
+
}, _callee);
|
28
|
+
}));
|
29
|
+
return _detail.apply(this, arguments);
|
30
|
+
}
|
31
|
+
export function create(_x3, _x4) {
|
32
|
+
return _create.apply(this, arguments);
|
33
|
+
}
|
34
|
+
function _create() {
|
35
|
+
_create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, options) {
|
36
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
37
|
+
while (1) switch (_context2.prev = _context2.next) {
|
38
|
+
case 0:
|
39
|
+
return _context2.abrupt("return", request(PublishDomainApi("user/activeAccountModeSetting/create", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
|
40
|
+
method: 'POST',
|
41
|
+
headers: {
|
42
|
+
'Content-Type': 'application/json'
|
43
|
+
},
|
44
|
+
data: body
|
45
|
+
}, options || {})));
|
46
|
+
case 1:
|
47
|
+
case "end":
|
48
|
+
return _context2.stop();
|
49
|
+
}
|
50
|
+
}, _callee2);
|
51
|
+
}));
|
52
|
+
return _create.apply(this, arguments);
|
53
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function list(body: PublishTaskPlanStatistic.ListQuery, options?: Global.RequestOptions): Promise<PublishTaskPlanStatistic.List[]>;
|
@@ -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/publishTaskPlanStatistic/list", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
|
15
|
+
method: 'POST',
|
16
|
+
headers: {
|
17
|
+
'Content-Type': 'application/json'
|
18
|
+
},
|
19
|
+
data: body
|
20
|
+
}, options || {})));
|
21
|
+
case 1:
|
22
|
+
case "end":
|
23
|
+
return _context.stop();
|
24
|
+
}
|
25
|
+
}, _callee);
|
26
|
+
}));
|
27
|
+
return _list.apply(this, arguments);
|
28
|
+
}
|
@@ -12,4 +12,8 @@ interface TaskListQuery extends VideoPublish.TaskListQuery {
|
|
12
12
|
pageSize: number;
|
13
13
|
}
|
14
14
|
export declare function taskList(body: TaskListQuery, options?: Global.RequestOptions): Promise<VideoPublish.TaskListResult>;
|
15
|
+
export declare function videoFromFolderCreate(body: {
|
16
|
+
id: number;
|
17
|
+
videoFromFolder: string;
|
18
|
+
}, options?: Global.RequestOptions): Promise<VideoPublish.VideoAccountList>;
|
15
19
|
export {};
|
@@ -84,4 +84,27 @@ function _taskList() {
|
|
84
84
|
}, _callee3);
|
85
85
|
}));
|
86
86
|
return _taskList.apply(this, arguments);
|
87
|
+
}
|
88
|
+
export function videoFromFolderCreate(_x7, _x8) {
|
89
|
+
return _videoFromFolderCreate.apply(this, arguments);
|
90
|
+
}
|
91
|
+
function _videoFromFolderCreate() {
|
92
|
+
_videoFromFolderCreate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(body, options) {
|
93
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
94
|
+
while (1) switch (_context4.prev = _context4.next) {
|
95
|
+
case 0:
|
96
|
+
return _context4.abrupt("return", request(PublishDomainApi("user/videoAccount/videoFromFolderCreate", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
|
97
|
+
method: 'POST',
|
98
|
+
headers: {
|
99
|
+
'Content-Type': 'application/json'
|
100
|
+
},
|
101
|
+
data: _objectSpread({}, body)
|
102
|
+
}, options || {})));
|
103
|
+
case 1:
|
104
|
+
case "end":
|
105
|
+
return _context4.stop();
|
106
|
+
}
|
107
|
+
}, _callee4);
|
108
|
+
}));
|
109
|
+
return _videoFromFolderCreate.apply(this, arguments);
|
87
110
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
declare namespace ActiveAccountModeSetting {
|
2
|
+
interface Detail {
|
3
|
+
dayTimeHourList: string[];
|
4
|
+
dayPublishMaxAmount: number;
|
5
|
+
timeAreaRandOffsetPercent: number;
|
6
|
+
publishMaxDay: number;
|
7
|
+
enabled: boolean;
|
8
|
+
isPublishFinishDelVideo: boolean;
|
9
|
+
}
|
10
|
+
interface SettingForm {
|
11
|
+
dayTimeHourList: string[];
|
12
|
+
dayPublishMaxAmount: number;
|
13
|
+
timeAreaRandOffsetPercent: number;
|
14
|
+
publishMaxDay: number;
|
15
|
+
enabled: boolean;
|
16
|
+
isPublishFinishDelVideo: boolean;
|
17
|
+
}
|
18
|
+
}
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
declare namespace PublishTaskPlanStatistic {
|
2
|
+
interface List {
|
3
|
+
videoAccountId: number;
|
4
|
+
platform: string;
|
5
|
+
status: string;
|
6
|
+
publishTime: number;
|
7
|
+
videoUrl: string;
|
8
|
+
}
|
9
|
+
interface ListQuery {
|
10
|
+
productType: string;
|
11
|
+
platform: string;
|
12
|
+
startTime: number;
|
13
|
+
endTime: number;
|
14
|
+
}
|
15
|
+
}
|
File without changes
|
package/dist/typings.d.ts
CHANGED
@@ -3,6 +3,7 @@ declare namespace Global {
|
|
3
3
|
type AuthClientLoginType = 'wechat' | 'account-login' | 'account-reg' | 'alipay';
|
4
4
|
export type ProductKind = 'vip' | 'vip-card' | string;
|
5
5
|
type OsName = '' | 'darwin' | 'windows' | 'linux' | 'other';
|
6
|
+
type MineTypeKind = 'video' | 'image' | 'sound' | '';
|
6
7
|
|
7
8
|
type VideoPlatformKind = string;
|
8
9
|
interface RequestResult{
|
package/dist/window.d.ts
CHANGED
@@ -12,6 +12,7 @@ declare interface Window{
|
|
12
12
|
fn: ( data?: any ) => void
|
13
13
|
}[];
|
14
14
|
getBridge: () => {
|
15
|
+
path: any;
|
15
16
|
ipcRenderer: {
|
16
17
|
invoke: ( name: string, ...arg) => Promise<any>;
|
17
18
|
},
|
@@ -19,6 +20,10 @@ declare interface Window{
|
|
19
20
|
onLog: ( log: ( query: any ) => void ) => void;
|
20
21
|
getChromiumPath: () => string;
|
21
22
|
getClientUniqueKey: () => string;
|
23
|
+
getFileText: ( dir: string ) => Promise<string>;
|
24
|
+
fs: any;
|
25
|
+
getIpc: any;
|
26
|
+
openDir: ( dir: string ) => Promise<string>
|
22
27
|
|
23
28
|
openVideoAccountBrowser: ( platform: string, subPlatform: string, accountId: string, url: string , proxyInfo?: Global.ProxyInfo ) => void;
|
24
29
|
};
|