zyjj-web-sdk 1.0.21 → 1.0.23

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 (49) hide show
  1. package/package.json +1 -1
  2. package/lib/APlayer.min-9ukXWHtq.js +0 -1306
  3. package/lib/DPlayer.min-Cl9WiJp7.js +0 -7739
  4. package/lib/api/api.d.ts +0 -48
  5. package/lib/api/entity.d.ts +0 -66
  6. package/lib/api/request.d.ts +0 -1
  7. package/lib/components/ConcatButton.d.ts +0 -9
  8. package/lib/components/MaterialCard.d.ts +0 -6
  9. package/lib/components/PageTable.d.ts +0 -19
  10. package/lib/components/TokenInput.d.ts +0 -5
  11. package/lib/components/ToolCard.d.ts +0 -10
  12. package/lib/components/UserLogin.d.ts +0 -10
  13. package/lib/components/lab/ElementTypeAlert.d.ts +0 -3
  14. package/lib/components/lab/ElementTypeAudio.d.ts +0 -10
  15. package/lib/components/lab/ElementTypeImage.d.ts +0 -2
  16. package/lib/components/lab/ElementTypeImageList.d.ts +0 -2
  17. package/lib/components/lab/ElementTypeInput.d.ts +0 -3
  18. package/lib/components/lab/ElementTypeNumber.d.ts +0 -3
  19. package/lib/components/lab/ElementTypeSelect.d.ts +0 -3
  20. package/lib/components/lab/ElementTypeSlider.d.ts +0 -3
  21. package/lib/components/lab/ElementTypeText.d.ts +0 -2
  22. package/lib/components/lab/ElementTypeTextArea.d.ts +0 -3
  23. package/lib/components/lab/ElementTypeUpload.d.ts +0 -4
  24. package/lib/components/lab/ElementTypeVideo.d.ts +0 -10
  25. package/lib/components/lab/LabElement.d.ts +0 -7
  26. package/lib/components/lab/common.d.ts +0 -28
  27. package/lib/index-DYCuXcu7.js +0 -6554
  28. package/lib/index-DtMxRUqJ.js +0 -59003
  29. package/lib/index.d.ts +0 -121
  30. package/lib/index.js +0 -16
  31. package/lib/index.umd.cjs +0 -4885
  32. package/lib/pages/MaterialList.d.ts +0 -8
  33. package/lib/pages/SearchBar.d.ts +0 -29
  34. package/lib/pages/TaskList.d.ts +0 -12
  35. package/lib/pages/ToolList.d.ts +0 -10
  36. package/lib/pages/UserInfoPage.d.ts +0 -9
  37. package/lib/store/entity.d.ts +0 -15
  38. package/lib/store/mqtt.d.ts +0 -11
  39. package/lib/store/user.d.ts +0 -11
  40. package/lib/style.css +0 -1
  41. package/lib/tool/db.d.ts +0 -7
  42. package/lib/tool/render.d.ts +0 -3
  43. package/lib/tool/utils.d.ts +0 -21
  44. package/lib/types/cloud.d.ts +0 -78
  45. package/lib/types/config.d.ts +0 -36
  46. package/lib/types/local-task.d.ts +0 -162
  47. package/lib/types/map.d.ts +0 -2
  48. package/lib/types/mqtt.d.ts +0 -16
  49. package/lib/types/tool-task.d.ts +0 -135
package/lib/api/api.d.ts DELETED
@@ -1,48 +0,0 @@
1
- import { AddTaskReq, GetCosResp, GetPageInfo, MqttClientInfo, PayCodeInfo, PayMethodInfo, PointRecordInfo, UserLoginReq, GetPageReq, GetToolDetailResp } from './entity.ts';
2
- import { AppInfo, TaskInfo, ToolInfo, UserInfo } from "../types/cloud.ts";
3
- export declare const UserLogin: (data: UserLoginReq) => Promise<string>;
4
- export declare const GetAppInfo: () => Promise<AppInfo>;
5
- export declare const UserRegister: (data: UserLoginReq) => Promise<void>;
6
- export declare const UserPasswordReset: (data: UserLoginReq) => Promise<void>;
7
- export declare const GetToken: (email: string) => Promise<void>;
8
- export declare const GetUserInfo: () => Promise<UserInfo>;
9
- export declare const UpdateUserInfo: (data: {
10
- tool_id_list?: string[];
11
- }) => Promise<unknown>;
12
- export declare const UserCheckIn: () => Promise<void>;
13
- export declare const PointExchange: (code: string) => Promise<void>;
14
- export declare const GetPointRecordList: (no: number, size: number) => Promise<GetPageInfo<PointRecordInfo>>;
15
- export declare const GetPayMethodsList: () => Promise<PayMethodInfo[]>;
16
- export declare const GetPayCode: (id: number, price: number) => Promise<PayCodeInfo>;
17
- export declare const GetPayStatus: (id: string) => Promise<number>;
18
- export declare const CostPoint: (data: {
19
- name: string;
20
- point: number;
21
- desc: string;
22
- uid: string;
23
- }) => Promise<void>;
24
- export declare const GetToolList: (req: GetPageReq) => Promise<GetPageInfo<ToolInfo>>;
25
- export declare const GetAllToolList: () => Promise<GetPageInfo<ToolInfo>>;
26
- export declare const GetToolDetail: (id: string) => Promise<GetToolDetailResp>;
27
- export declare const GetToolTagList: () => Promise<string[]>;
28
- export declare const ToolCountInc: (id: string) => Promise<void>;
29
- export declare const GetTencentCosInfo: () => Promise<GetCosResp>;
30
- export declare const AddTask: (data: AddTaskReq) => Promise<string>;
31
- export declare const GetTaskInfo: (id: string) => Promise<TaskInfo>;
32
- export declare const GetMqttTaskClientInfo: () => Promise<MqttClientInfo>;
33
- export declare const GetMaterialTagList: () => Promise<string[]>;
34
- export declare const GetMaterialList: (req: GetPageReq) => Promise<GetPageInfo<any>>;
35
- export declare const UserDownloadMaterial: (id: string) => Promise<string>;
36
- export declare const GetMaterialUrl: (key_list: string[]) => Promise<{
37
- [key: string]: string;
38
- }>;
39
- export declare const SendCommonRequest: <T>(data: {
40
- url: string;
41
- data?: any;
42
- method: string;
43
- }) => Promise<T>;
44
- export declare const AddFeedback: (data: any) => Promise<unknown>;
45
- export declare const GetConfig: (key: string) => Promise<{
46
- name: string;
47
- value: string;
48
- }>;
@@ -1,66 +0,0 @@
1
- import { ToolDetailInfo, ToolInfo } from "../types/cloud.ts";
2
- export interface UserLoginReq {
3
- email: string;
4
- password?: string;
5
- token?: string;
6
- }
7
- export interface GetPageReq {
8
- page_no: number;
9
- page_size: number;
10
- tag?: string;
11
- name?: string;
12
- id_list?: string;
13
- sort?: string;
14
- }
15
- export interface GetPageInfo<T> {
16
- total: number;
17
- list: T[];
18
- }
19
- export interface GetCosResp {
20
- token: GetCosToken;
21
- bucket: string;
22
- region: string;
23
- path: string;
24
- start_time: number;
25
- end_time: number;
26
- }
27
- export interface GetCosToken {
28
- Token: string;
29
- TmpSecretId: string;
30
- TmpSecretKey: string;
31
- }
32
- export interface AddTaskReq {
33
- task_type: number;
34
- input: string;
35
- status: number;
36
- }
37
- export interface MqttClientInfo {
38
- host: string;
39
- client_id: string;
40
- topic: string;
41
- username: string;
42
- password: string;
43
- }
44
- export interface PointRecordInfo {
45
- id: string;
46
- uid: string;
47
- name: string;
48
- point: number;
49
- desc: string;
50
- create_time: number;
51
- }
52
- export interface PayMethodInfo {
53
- id: number;
54
- name: string;
55
- pic?: string;
56
- msg?: string;
57
- support: boolean;
58
- }
59
- export interface PayCodeInfo {
60
- html: string;
61
- no: string;
62
- }
63
- export interface GetToolDetailResp {
64
- tool: ToolInfo;
65
- detail: ToolDetailInfo;
66
- }
@@ -1 +0,0 @@
1
- export default function request<D, T>(url: string, data: D, type: string, alert?: boolean): Promise<T>;
@@ -1,9 +0,0 @@
1
- import './css/concat-button.css';
2
- export interface ConcatButtonProps {
3
- wechat?: string;
4
- qq?: string;
5
- x?: number;
6
- y?: number;
7
- uid?: string;
8
- }
9
- export default function ConcatButton(props: ConcatButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import './css/material.css';
2
- import { MaterialInfo } from "../types/cloud.ts";
3
- export default function MaterialCard(props: {
4
- material: MaterialInfo;
5
- onDownload: () => void;
6
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- import { ColumnProps } from '@arco-design/web-react/es/Table/interface';
2
- import { GetPageInfo } from "../api/entity.ts";
3
- export interface PageTableProps<T> {
4
- columns: ColumnProps<T>[];
5
- data: (num: number, size: number, find?: any) => Promise<GetPageInfo<T>>;
6
- refresh?: (refresh: () => void) => void;
7
- id?: string;
8
- pageSize?: number;
9
- search?: {
10
- field: string;
11
- label: string;
12
- tp: 'input' | 'custom';
13
- data: {
14
- placeholder?: string;
15
- };
16
- ele?: any;
17
- }[];
18
- }
19
- export default function PageTable<T>(props: PageTableProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { ReactElement } from 'react';
2
- export default function TokenInput(props: {
3
- callback: () => Promise<void>;
4
- onChange?: (value: string) => void;
5
- }): ReactElement;
@@ -1,10 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { ToolInfo } from "../types/cloud.ts";
3
- import './css/tool-card.css';
4
- export default function ToolCard(props: {
5
- onTool: () => void;
6
- onHelp: () => void;
7
- info: ToolInfo;
8
- star: boolean;
9
- onStar: (choose: boolean) => void;
10
- }): ReactElement;
@@ -1,10 +0,0 @@
1
- export declare const LoginComponent: (props: {
2
- loginSuccess: (token: string) => void;
3
- onForget: () => void;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export interface UserLoginModalProps {
6
- visible: boolean;
7
- onCancel: () => void;
8
- loginSuccess: (token: string) => void;
9
- }
10
- export default function UserLoginModal(props: UserLoginModalProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- import { AlertData } from "../../types/tool-task.ts";
3
- export default function ElementTypeAlert(props: ElementTypeProps<string, AlertData>): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- import 'aplayer/dist/APlayer.min.css';
3
- export interface ElementTypeAudioData {
4
- url: string;
5
- name: string;
6
- artist?: string;
7
- cover?: string;
8
- lrc?: string;
9
- }
10
- export default function ElementTypeAudio(props: ElementTypeProps<string | ElementTypeAudioData>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- export default function ElementTypeImage(props: ElementTypeProps<string>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- export default function ElementTypeImageList(props: ElementTypeProps<string[]>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- import { InputData } from "../../types/tool-task.ts";
3
- export default function ElementTypeInput(props: ElementTypeProps<string, InputData>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- import { SliderData } from "../../types/tool-task.ts";
3
- export default function ElementTypeNumber(props: ElementTypeProps<number, SliderData>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- import { SelectData } from "../../types/tool-task.ts";
3
- export default function ElementTypeSelect(props: ElementTypeProps<string, SelectData>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- import { SliderData } from "../../types/tool-task.ts";
3
- export default function ElementTypeSlider(props: ElementTypeProps<number, SliderData>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- export default function ElementTypeText(props: ElementTypeProps<string>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- import { TextAreaData } from "../../types/tool-task.ts";
3
- export default function ElementTypeTextArea(props: ElementTypeProps<string, TextAreaData>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- import { UploadData } from "../../types/tool-task.ts";
3
- import { ToolParamFile } from "../../types/local-task.ts";
4
- export default function ElementTypeFileUpload(props: ElementTypeProps<ToolParamFile | undefined, UploadData>): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { ElementTypeProps } from "./common.tsx";
2
- export interface ElementTypeVideoData {
3
- url: string;
4
- pic?: string;
5
- thumbnails?: string;
6
- subtitle?: {
7
- url: string;
8
- };
9
- }
10
- export default function ElementTypeVideo(props: ElementTypeProps<ElementTypeVideoData>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- export default function LabElement(props: {
2
- tp: any;
3
- isInput?: boolean;
4
- data?: any;
5
- value?: any;
6
- onChange?: (value: any) => void;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,28 +0,0 @@
1
- import { JSX } from "react";
2
- import './common.css';
3
- export interface ElementTypeProps<T, D = undefined> {
4
- value?: T;
5
- onChange?: (value: T) => void;
6
- data?: D;
7
- }
8
- export declare const SmallIcon: (props: {
9
- icon: JSX.Element;
10
- tip: string;
11
- noSuccess?: boolean;
12
- onClick?: () => Promise<void>;
13
- }) => import("react/jsx-runtime").JSX.Element;
14
- export declare const CopyButton: (props: {
15
- value?: string;
16
- }) => import("react/jsx-runtime").JSX.Element;
17
- export declare const LaunchButton: (props: {
18
- value?: string;
19
- }) => import("react/jsx-runtime").JSX.Element;
20
- export declare const DownloadButton: (props: {
21
- value?: string;
22
- }) => import("react/jsx-runtime").JSX.Element;
23
- export declare const SourceButton: (props: {
24
- link?: string;
25
- }) => import("react/jsx-runtime").JSX.Element;
26
- export declare const ImgPreview: (props: {
27
- src?: string;
28
- }) => import("react/jsx-runtime").JSX.Element;