zyjj-web-sdk 1.0.1 → 1.0.3
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/lib/api/api.d.ts +5 -4
- package/lib/api/entity.d.ts +5 -0
- package/lib/index.d.ts +21 -6
- package/lib/index.js +6909 -6822
- package/lib/index.umd.cjs +22 -22
- package/lib/types/cloud.d.ts +30 -0
- package/lib/types/local-task.d.ts +34 -3
- package/lib/types/tool-task.d.ts +84 -0
- package/lib/utils/tool.d.ts +3 -0
- package/package.json +6 -2
package/lib/api/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddTaskReq, GetCosResp, GetPageInfo, MqttClientInfo, PayCodeInfo, PayMethodInfo, PointRecordInfo, UserLoginReq, GetPageReq } from './entity.ts';
|
|
1
|
+
import { AddTaskReq, GetCosResp, GetPageInfo, MqttClientInfo, PayCodeInfo, PayMethodInfo, PointRecordInfo, UserLoginReq, GetPageReq, GetToolDetailResp } from './entity.ts';
|
|
2
2
|
import { AppInfo, TaskInfo, ToolInfo, UserInfo } from "../types/cloud.ts";
|
|
3
3
|
export declare const UserLogin: (data: UserLoginReq) => Promise<string>;
|
|
4
4
|
export declare const GetAppInfo: () => Promise<AppInfo>;
|
|
@@ -19,6 +19,7 @@ export declare const CostPoint: (data: {
|
|
|
19
19
|
uid: string;
|
|
20
20
|
}) => Promise<void>;
|
|
21
21
|
export declare const GetToolList: (req: GetPageReq) => Promise<GetPageInfo<ToolInfo>>;
|
|
22
|
+
export declare const GetToolDetail: (id: string) => Promise<GetToolDetailResp>;
|
|
22
23
|
export declare const GetToolTagList: () => Promise<string[]>;
|
|
23
24
|
export declare const GetTencentCosInfo: () => Promise<GetCosResp>;
|
|
24
25
|
export declare const AddTask: (data: AddTaskReq) => Promise<string>;
|
|
@@ -30,9 +31,9 @@ export declare const UserDownloadMaterial: (id: string) => Promise<string>;
|
|
|
30
31
|
export declare const GetMaterialUrl: (key_list: string[]) => Promise<{
|
|
31
32
|
[key: string]: string;
|
|
32
33
|
}>;
|
|
33
|
-
export declare const SendCommonRequest: (data: {
|
|
34
|
+
export declare const SendCommonRequest: <T>(data: {
|
|
34
35
|
url: string;
|
|
35
|
-
data
|
|
36
|
+
data?: any;
|
|
36
37
|
method: string;
|
|
37
|
-
}) => Promise<
|
|
38
|
+
}) => Promise<T>;
|
|
38
39
|
export declare const AddFeedback: (data: any) => Promise<unknown>;
|
package/lib/api/entity.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ToolDetailInfo, ToolInfo } from "../types/cloud.ts";
|
|
1
2
|
export interface UserLoginReq {
|
|
2
3
|
email: string;
|
|
3
4
|
password?: string;
|
|
@@ -57,3 +58,7 @@ export interface PayCodeInfo {
|
|
|
57
58
|
html: string;
|
|
58
59
|
no: string;
|
|
59
60
|
}
|
|
61
|
+
export interface GetToolDetailResp {
|
|
62
|
+
tool: ToolInfo;
|
|
63
|
+
detail: ToolDetailInfo;
|
|
64
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FileSource, LocalTaskStatus, LocalActionReqType, LocalActionResType } from "./types/local-task.ts";
|
|
2
|
-
import { CloudTaskStatus, ToolType } from "./types/cloud.ts";
|
|
1
|
+
import { FileSource, LocalTaskStatus, LocalActionReqType, LocalActionResType, LocalTaskEventType } from "./types/local-task.ts";
|
|
2
|
+
import { CloudTaskStatus, CloudTaskType, ToolType } from "./types/cloud.ts";
|
|
3
3
|
import { MQTTEventType } from "./types/mqtt.ts";
|
|
4
|
-
import { FfmpegActionType, ToolTaskType } from "./types/tool-task.ts";
|
|
4
|
+
import { FfmpegActionType, LabElementType, ToolConfigType, ToolTaskType } from "./types/tool-task.ts";
|
|
5
5
|
export { default as UserLoginModal } from './components/UserLogin.tsx';
|
|
6
6
|
export type { UserLoginModalProps } from './components/UserLogin.tsx';
|
|
7
7
|
export { default as PageTable } from './components/PageTable.tsx';
|
|
@@ -21,11 +21,11 @@ export declare const Api: {
|
|
|
21
21
|
desc: string;
|
|
22
22
|
uid: string;
|
|
23
23
|
}) => Promise<void>;
|
|
24
|
-
SendCommonRequest: (data: {
|
|
24
|
+
SendCommonRequest: <T>(data: {
|
|
25
25
|
url: string;
|
|
26
|
-
data
|
|
26
|
+
data?: any;
|
|
27
27
|
method: string;
|
|
28
|
-
}) => Promise<
|
|
28
|
+
}) => Promise<T>;
|
|
29
29
|
GetUserInfo: () => Promise<import("./types/cloud.ts").UserInfo>;
|
|
30
30
|
UserDownloadMaterial: (id: string) => Promise<string>;
|
|
31
31
|
GetMqttTaskClientInfo: () => Promise<import("./api/entity.ts").MqttClientInfo>;
|
|
@@ -34,6 +34,9 @@ export declare const Api: {
|
|
|
34
34
|
GetMaterialUrl: (key_list: string[]) => Promise<{
|
|
35
35
|
[key: string]: string;
|
|
36
36
|
}>;
|
|
37
|
+
GetMaterialTagList: () => Promise<string[]>;
|
|
38
|
+
GetToolTagList: () => Promise<string[]>;
|
|
39
|
+
GetToolDetail: (id: string) => Promise<import("./api/entity.ts").GetToolDetailResp>;
|
|
37
40
|
};
|
|
38
41
|
export declare const Enum: {
|
|
39
42
|
ToolType: typeof ToolType;
|
|
@@ -42,7 +45,19 @@ export declare const Enum: {
|
|
|
42
45
|
MQTTEventType: typeof MQTTEventType;
|
|
43
46
|
FileSource: typeof FileSource;
|
|
44
47
|
LocalTaskStatus: typeof LocalTaskStatus;
|
|
48
|
+
LocalTaskEventType: typeof LocalTaskEventType;
|
|
45
49
|
ToolTaskType: typeof ToolTaskType;
|
|
46
50
|
FfmpegActionType: typeof FfmpegActionType;
|
|
47
51
|
CloudTaskStatus: typeof CloudTaskStatus;
|
|
52
|
+
CloudTaskType: typeof CloudTaskType;
|
|
53
|
+
CloudTaskTypeMap: Map<CloudTaskType, string>;
|
|
54
|
+
LabElementType: typeof LabElementType;
|
|
55
|
+
ToolConfigType: typeof ToolConfigType;
|
|
56
|
+
};
|
|
57
|
+
export declare const Tool: {
|
|
58
|
+
RenderTime: (time: number) => string;
|
|
59
|
+
RenderEllipsis: (value: string) => import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
RenderCopy: (value: string) => import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
File2ToolParamFile: (file: File) => import("./types/local-task.ts").ToolParamFile;
|
|
62
|
+
Seconds2TimeStr: (seconds: number) => string;
|
|
48
63
|
};
|