zyjj-web-sdk 1.0.26 → 1.0.28

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.
@@ -1,4 +1,4 @@
1
- import { w as E } from "./index-DT3bFTPD.js";
1
+ import { w as E } from "./index-CCr0UK7Y.js";
2
2
  function S(T, L) {
3
3
  for (var f = 0; f < L.length; f++) {
4
4
  const h = L[f];
@@ -1,4 +1,4 @@
1
- import { w as So, o as Io } from "./index-DT3bFTPD.js";
1
+ import { w as So, o as Io } from "./index-CCr0UK7Y.js";
2
2
  function Lo(pe, Ze) {
3
3
  for (var J = 0; J < Ze.length; J++) {
4
4
  const U = Ze[J];
package/lib/api/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AddTaskReq, GetCosResp, GetPageInfo, MqttClientInfo, UserLoginReq, GetPageReq, GetToolDetailResp } from './entity.ts';
1
+ import { AddTaskReq, GetCosResp, GetPageInfo, MqttClientInfo, UserLoginReq, GetPageReq, GetToolDetailResp, SendCommonRequestInfo } 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: (os: string, version: string, uid?: string) => Promise<AppInfo>;
@@ -18,6 +18,7 @@ export declare const CostPoint: (data: {
18
18
  export declare const GetToolList: (req: GetPageReq) => Promise<GetPageInfo<ToolInfo>>;
19
19
  export declare const GetAllToolList: () => Promise<GetPageInfo<ToolInfo>>;
20
20
  export declare const GetToolDetail: (id: string) => Promise<GetToolDetailResp>;
21
+ export declare const ToolInc: (id: string) => Promise<unknown>;
21
22
  export declare const GetToolTagList: () => Promise<string[]>;
22
23
  export declare const GetTencentCosInfo: () => Promise<GetCosResp>;
23
24
  export declare const AddTask: (data: AddTaskReq) => Promise<string>;
@@ -29,11 +30,7 @@ export declare const UserDownloadMaterial: (id: string) => Promise<string>;
29
30
  export declare const GetMaterialUrl: (key_list: string[]) => Promise<{
30
31
  [key: string]: string;
31
32
  }>;
32
- export declare const SendCommonRequest: <T>(data: {
33
- url: string;
34
- data?: any;
35
- method: string;
36
- }) => Promise<T>;
33
+ export declare const SendCommonRequest: <T>(data: SendCommonRequestInfo) => Promise<T>;
37
34
  export declare const AddFeedback: (data: any) => Promise<unknown>;
38
35
  export declare const GetConfig: (key: string) => Promise<{
39
36
  name: string;
@@ -45,3 +45,8 @@ export interface GetToolDetailResp {
45
45
  tool: ToolInfo;
46
46
  detail: ToolDetailInfo;
47
47
  }
48
+ export interface SendCommonRequestInfo {
49
+ method: 'get' | 'post' | 'delete' | 'put' | 'patch';
50
+ url: string;
51
+ data?: any;
52
+ }
@@ -1,4 +1,4 @@
1
- import { a as Z, p as ne, r as xn, s as xe, c as Mn, b as ue, d as sn, e as dr, m as R, f as H, g as gr, h as yr, i as cn, j as A, k as ee, n as Ee, l as Qe, o as _n, q as De, t as xr, u as kr, v as It, w as br, x as wr, y as Ke } from "./index-DT3bFTPD.js";
1
+ import { a as Z, p as ne, r as xn, s as xe, c as Mn, b as ue, d as sn, e as dr, m as R, f as H, g as gr, h as yr, i as cn, j as A, k as ee, n as Ee, l as Qe, o as _n, q as De, t as xr, u as kr, v as It, w as br, x as wr, y as Ke } from "./index-CCr0UK7Y.js";
2
2
  const Bn = document.createElement("i");
3
3
  function kn(e) {
4
4
  const n = "&" + e + ";";