component-shipinlv 1.0.16 → 1.0.18

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.
Files changed (41) hide show
  1. package/dist/Product/dict.d.ts +16 -0
  2. package/dist/Product/dict.js +93 -0
  3. package/dist/UI/PageContentWarp.d.ts +6 -0
  4. package/dist/UI/PageContentWarp.js +44 -10
  5. package/dist/UI/PageContentWarp.less +48 -0
  6. package/dist/VideoPublish/creat-task/hour-enabled.d.ts +9 -0
  7. package/dist/VideoPublish/creat-task/hour-enabled.js +42 -0
  8. package/dist/VideoPublish/creat-task/hour-enabled.less +24 -0
  9. package/dist/VideoPublish/creat-task/index.js +22 -2
  10. package/dist/VideoPublish/index.js +1 -1
  11. package/dist/VideoPublish/task-list/index.js +108 -43
  12. package/dist/VideoPublish/task-list/index.less +4 -1
  13. package/dist/VideoPublish/task-list/plan/list.d.ts +8 -0
  14. package/dist/VideoPublish/task-list/plan/list.js +230 -0
  15. package/dist/VideoPublish/task-list/plan/list.less +8 -0
  16. package/dist/VideoPublish/task-list/plan/status.d.ts +13 -0
  17. package/dist/VideoPublish/task-list/plan/status.js +48 -0
  18. package/dist/VideoPublish/task-list/query.d.ts +8 -0
  19. package/dist/VideoPublish/task-list/query.js +57 -0
  20. package/dist/VideoPublish/task-list/query.less +19 -0
  21. package/dist/VideoPublish/video-account/index.js +65 -14
  22. package/dist/VideoPublish/video-account/index.less +21 -0
  23. package/dist/VideoPublish/video-account/query.d.ts +8 -0
  24. package/dist/VideoPublish/video-account/query.js +92 -0
  25. package/dist/VideoPublish/video-account/query.less +15 -0
  26. package/dist/component/video-platform/logo.d.ts +7 -7
  27. package/dist/component/video-platform/logo.js +41 -27
  28. package/dist/lib/Tool.d.ts +1 -1
  29. package/dist/service/api/ProductController.d.ts +3 -0
  30. package/dist/service/api/ProductController.js +31 -7
  31. package/dist/service/api/VideoPublishController.d.ts +4 -0
  32. package/dist/service/api/VideoPublishController.js +3 -2
  33. package/dist/service/api/VideoPublishTaskController.d.ts +1 -1
  34. package/dist/service/api/VideoPublishTaskPlanController.d.ts +5 -0
  35. package/dist/service/api/VideoPublishTaskPlanController.js +28 -0
  36. package/dist/types/VideoPublish.d.ts +26 -10
  37. package/dist/types/VideoPublishTaskPlan.d.ts +22 -0
  38. package/dist/types/VideoPublishTaskPlan.js +0 -0
  39. package/package.json +2 -1
  40. package/dist/UI/PageContentWarp.css.d.ts +0 -5
  41. package/dist/UI/PageContentWarp.css.js +0 -6
@@ -7,16 +7,16 @@ interface Props {
7
7
  className?: string;
8
8
  disabled?: boolean;
9
9
  }
10
- interface VideoPlatformLogoList {
10
+ interface VideoPlatformList {
11
11
  platform: Global.VideoPlatformKind;
12
12
  name: string;
13
13
  videoWebSiteUrl: string;
14
14
  allowMainDomainList: string[];
15
15
  }
16
- interface VideoPlatformLogoDict {
17
- [name: string]: VideoPlatformLogoList;
16
+ interface VideoPlatformDict {
17
+ [name: string]: VideoPlatformList;
18
18
  }
19
- export declare const VideoPlatformLogoList: VideoPlatformLogoList[];
20
- export declare const VideoPlatformLogoDict: VideoPlatformLogoDict;
21
- declare const VideoPlatformLogo: React.FC<Props>;
22
- export default VideoPlatformLogo;
19
+ export declare const VideoPlatformList: VideoPlatformList[];
20
+ export declare const VideoPlatformDict: VideoPlatformDict;
21
+ declare const VideoPlatform: React.FC<Props>;
22
+ export default VideoPlatform;
@@ -4,7 +4,7 @@ import "./logo.less";
4
4
  // https://olived.app/zh-hans/olivetv/#bilibili
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
7
- export var VideoPlatformLogoList = [{
7
+ export var VideoPlatformList = [{
8
8
  platform: 'douyin',
9
9
  name: '抖音',
10
10
  videoWebSiteUrl: 'https://www.douyin.com/user/self?showTab=post',
@@ -15,35 +15,49 @@ export var VideoPlatformLogoList = [{
15
15
  name: '快手',
16
16
  videoWebSiteUrl: 'https://www.kuaishou.com/',
17
17
  allowMainDomainList: ['kuaishou.com']
18
- }, {
19
- platform: 'bilibili',
20
- name: '哔哩哔哩',
21
- videoWebSiteUrl: 'https://www.bilibili.com/',
22
- allowMainDomainList: ['bilibili.com']
23
- }, {
24
- platform: 'douyu',
25
- name: '斗鱼',
26
- videoWebSiteUrl: 'https://www.douyu.com/',
27
- allowMainDomainList: ['douyu.com']
28
- }, {
29
- platform: 'huya',
30
- name: '虎牙',
31
- videoWebSiteUrl: 'https://www.huya.com/',
32
- allowMainDomainList: ['huya.com']
33
- }, {
34
- platform: 'youtube',
35
- name: 'YouTuBe',
36
- videoWebSiteUrl: 'https://www.youtube.com/',
37
- allowMainDomainList: ['youtube.com']
38
- }];
39
- export var VideoPlatformLogoDict = function () {
18
+ }
19
+ // {
20
+ // platform: 'bilibili',
21
+ // name: '哔哩哔哩',
22
+ // videoWebSiteUrl: 'https://www.bilibili.com/',
23
+ // allowMainDomainList: [
24
+ // 'bilibili.com',
25
+ // ],
26
+ // },
27
+ // {
28
+ // platform: 'douyu',
29
+ // name: '斗鱼',
30
+ // videoWebSiteUrl: 'https://www.douyu.com/',
31
+ // allowMainDomainList: [
32
+ // 'douyu.com',
33
+ // ],
34
+ // },
35
+ // {
36
+ // platform: 'huya',
37
+ // name: '虎牙',
38
+ // videoWebSiteUrl: 'https://www.huya.com/',
39
+ // allowMainDomainList: [
40
+ // 'huya.com',
41
+ // ],
42
+ // },
43
+ // {
44
+ // platform: 'youtube',
45
+ // name: 'YouTuBe',
46
+ // videoWebSiteUrl: 'https://www.youtube.com/',
47
+ // allowMainDomainList: [
48
+ // 'youtube.com',
49
+ // ],
50
+ // },
51
+ ];
52
+
53
+ export var VideoPlatformDict = function () {
40
54
  var dict = {};
41
- VideoPlatformLogoList.forEach(function (item) {
55
+ VideoPlatformList.forEach(function (item) {
42
56
  dict[item.platform] = item;
43
57
  });
44
58
  return dict;
45
59
  }();
46
- var VideoPlatformLogo = function VideoPlatformLogo(_ref) {
60
+ var VideoPlatform = function VideoPlatform(_ref) {
47
61
  var platform = _ref.platform,
48
62
  _ref$size = _ref.size,
49
63
  size = _ref$size === void 0 ? 16 : _ref$size,
@@ -52,7 +66,7 @@ var VideoPlatformLogo = function VideoPlatformLogo(_ref) {
52
66
  _ref$disabled = _ref.disabled,
53
67
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
54
68
  showName = _ref.showName;
55
- var itemData = VideoPlatformLogoDict[platform] || {
69
+ var itemData = VideoPlatformDict[platform] || {
56
70
  name: platform
57
71
  };
58
72
  return /*#__PURE__*/_jsxs("span", {
@@ -69,4 +83,4 @@ var VideoPlatformLogo = function VideoPlatformLogo(_ref) {
69
83
  })]
70
84
  });
71
85
  };
72
- export default VideoPlatformLogo;
86
+ export default VideoPlatform;
@@ -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: "error" | "success" | "info" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
164
+ notification(type: "error" | "info" | "success" | "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;
@@ -1,6 +1,9 @@
1
1
  export declare function detail(body?: {
2
2
  productType: string;
3
3
  }, options?: Global.RequestOptions): Promise<Product.Detail>;
4
+ export declare function list(body: {
5
+ webDomain: string;
6
+ }, options?: Global.RequestOptions): Promise<Product.Detail[]>;
4
7
  export declare function versionList(body?: {
5
8
  dealerId: number;
6
9
  productType: string;
@@ -5,8 +5,6 @@ import request from "../../lib/request";
5
5
  export function detail(_x, _x2) {
6
6
  return _detail.apply(this, arguments);
7
7
  }
8
-
9
- // versionList
10
8
  function _detail() {
11
9
  _detail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
12
10
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -28,15 +26,18 @@ function _detail() {
28
26
  }));
29
27
  return _detail.apply(this, arguments);
30
28
  }
31
- export function versionList(_x3, _x4) {
32
- return _versionList.apply(this, arguments);
29
+ export function list(_x3, _x4) {
30
+ return _list.apply(this, arguments);
33
31
  }
34
- function _versionList() {
35
- _versionList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, options) {
32
+
33
+ // versionList
34
+ function _list() {
35
+ _list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, options) {
36
36
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
37
37
  while (1) switch (_context2.prev = _context2.next) {
38
38
  case 0:
39
- return _context2.abrupt("return", request("clientVersion/list", _objectSpread({
39
+ return _context2.abrupt("return", request("product/list", _objectSpread({
40
+ env: (options === null || options === void 0 ? void 0 : options.env) || '',
40
41
  method: 'GET',
41
42
  headers: {
42
43
  'Content-Type': 'application/json'
@@ -49,5 +50,28 @@ function _versionList() {
49
50
  }
50
51
  }, _callee2);
51
52
  }));
53
+ return _list.apply(this, arguments);
54
+ }
55
+ export function versionList(_x5, _x6) {
56
+ return _versionList.apply(this, arguments);
57
+ }
58
+ function _versionList() {
59
+ _versionList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(body, options) {
60
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
61
+ while (1) switch (_context3.prev = _context3.next) {
62
+ case 0:
63
+ return _context3.abrupt("return", request("clientVersion/list", _objectSpread({
64
+ method: 'GET',
65
+ headers: {
66
+ 'Content-Type': 'application/json'
67
+ },
68
+ params: _objectSpread({}, body)
69
+ }, options || {})));
70
+ case 1:
71
+ case "end":
72
+ return _context3.stop();
73
+ }
74
+ }, _callee3);
75
+ }));
52
76
  return _versionList.apply(this, arguments);
53
77
  }
@@ -1,4 +1,8 @@
1
+ export declare const PublishDomainApi: (apiName: string, env?: Global.Env | '') => string;
1
2
  export declare function videoAccountList(body: {
3
+ isLoginValid: '' | '1' | '0';
4
+ keyword: string;
5
+ platform: string;
2
6
  current: number;
3
7
  pageSize: number;
4
8
  }, options?: Global.RequestOptions): Promise<VideoPublish.VideoAccountResult>;
@@ -10,9 +10,10 @@ var ApiUrls = {
10
10
  api: 'https://api-video-publish.shipinlv.com/'
11
11
  }
12
12
  };
13
- var PublishDomainApi = function PublishDomainApi(apiName, env) {
13
+ export var PublishDomainApi = function PublishDomainApi(apiName, env) {
14
+ var _ApiUrls$env;
14
15
  // @ts-ignore
15
- return (ApiUrls[env].api || 'https://api-video-publish.shipinlv.com/') + (apiName === null || apiName === void 0 ? void 0 : apiName.toLocaleLowerCase());
16
+ return (((_ApiUrls$env = ApiUrls[env]) === null || _ApiUrls$env === void 0 ? void 0 : _ApiUrls$env.api) || 'https://api-video-publish.shipinlv.com/') + (apiName === null || apiName === void 0 ? void 0 : apiName.toLocaleLowerCase());
16
17
  };
17
18
  export function videoAccountList(_x, _x2) {
18
19
  return _videoAccountList.apply(this, arguments);
@@ -3,6 +3,6 @@ declare const _default: {
3
3
  taskStatus: string;
4
4
  current: number;
5
5
  pageSize: number;
6
- }, options?: Global.RequestOptions) => Promise<VideoPublish.TaskListResult>;
6
+ }, options?: Global.RequestOptions) => Promise<VideoPublish.CreateTaskListResult>;
7
7
  };
8
8
  export default _default;
@@ -0,0 +1,5 @@
1
+ export declare function list(body: {
2
+ publishTaskId: number;
3
+ current: number;
4
+ pageSize: number;
5
+ }, options?: Global.RequestOptions): Promise<VideoPublishTaskPlan.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/publishTaskPlan/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
+ }
@@ -3,6 +3,8 @@ declare namespace VideoPublish {
3
3
  type ProductType = 'long-video-sales';
4
4
  type VideoKindTag = 'shopping' | 'location' | 'min-app';
5
5
  type VideoKindRateType = '' | 'now';
6
+ type VideoFrom = 'local' | 'task';
7
+ type VideoRateType = 'hour' | 'day';
6
8
  interface CreateTaskList {
7
9
  id: number;
8
10
  title: string;
@@ -17,22 +19,27 @@ declare namespace VideoPublish {
17
19
  finishUrl?: string;
18
20
  videoFinishUrl?: string;
19
21
  }
22
+ interface CreateTaskListResult {
23
+ list: CreateTaskList[];
24
+ pagination: Global.Pagination;
25
+ }
20
26
  interface TaskListResult {
21
27
  list: TaskList[];
22
28
  pagination: Global.Pagination;
23
29
  }
24
30
  interface TaskList {
25
31
  id: number;
26
- title: string;
27
- videoSize: number;
28
- videoDuration: number;
29
- taskStatus: string;
30
- accountId: string;
31
- accountNickname: string;
32
- introduction: string;
33
- videoKindTag: '' | VideoKindTag;
34
- kindTagValue: string;
35
- videoFinishUrl: string;
32
+ videoFrom: VideoFrom;
33
+ normalVideoRate: number;
34
+ normalVideoRateType: VideoRateType;
35
+ normalDayMaxCount: number;
36
+ salesVideoRate: number;
37
+ salesVideoRateType: VideoRateType;
38
+ salesDayMaxCount: number;
39
+ startTime: number;
40
+ created: number;
41
+ taskFromProductType: string;
42
+ taskFromProductTypeName: string;
36
43
  }
37
44
  interface VideoSelectList {
38
45
  id: number;
@@ -68,6 +75,11 @@ declare namespace VideoPublish {
68
75
  created: number;
69
76
  updated: number;
70
77
  }
78
+ interface VideoAccountListQuery {
79
+ isLoginValid: '' | '1' | '0';
80
+ keyword: string;
81
+ platform: string;
82
+ }
71
83
  interface TreeVideoAccount {
72
84
  title: React.ReactNode;
73
85
  value: string;
@@ -92,6 +104,7 @@ declare namespace VideoPublish {
92
104
  }
93
105
  interface TaskCreate {
94
106
  videoFrom: 'task' | 'local';
107
+ taskFromProductType: string;
95
108
  normalVideoRate: number;
96
109
  normalVideoRateType: 'hour' | 'day';
97
110
  normalDayMaxCount: number;
@@ -102,6 +115,7 @@ declare namespace VideoPublish {
102
115
  salesVideoKindRateType: VideoKindRateType;
103
116
  accountList: string[];
104
117
  startTime: number | null;
118
+ hourEnabled: number[];
105
119
  videoList: {
106
120
  taskId: number;
107
121
  productType: string;
@@ -113,5 +127,7 @@ declare namespace VideoPublish {
113
127
  }[];
114
128
  }
115
129
  interface TaskListQuery {
130
+ startTime: number;
131
+ endTime: number;
116
132
  }
117
133
  }
@@ -0,0 +1,22 @@
1
+ declare namespace VideoPublishTaskPlan {
2
+ type PlanStatus = 'wait' | 'progress' | 'finish' | 'fail';
3
+ interface ListResult {
4
+ list: List[];
5
+ pagination: Global.Pagination;
6
+ }
7
+ interface List {
8
+ id: number;
9
+ videoAccountId: number;
10
+ platform: string;
11
+ productType: string;
12
+ status: PlanStatus;
13
+ productTaskId: number;
14
+ introduction: string;
15
+ videoKindTag: VideoPublish.VideoKindTag;
16
+ kindTagValue: string;
17
+ videoUrl: string;
18
+ publishTime: number;
19
+ }
20
+ interface ListQuery {
21
+ }
22
+ }
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -69,6 +69,7 @@
69
69
  "@ant-design/icons": "^5.x",
70
70
  "@babel/runtime": "^7.23.6",
71
71
  "@umijs/hooks": "^1.9.3",
72
+ "dayjs": "^1.11.12",
72
73
  "jr-qrcode": "^1.1.4",
73
74
  "moment": "^2.29.4",
74
75
  "qrcode.react": "^3.1.0",
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- PageContentBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
4
- };
5
- export default _default;
@@ -1,6 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
- import styled from 'styled-components';
4
- export default {
5
- PageContentBox: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ktv-ai-loading{\n padding: 20px;\n text-align: center;\n display: flex;\n flex-direction: row;\n justify-content: center;\n font-size: 30px;\n }\n "])))
6
- };