@glodon-aiot/apis 3.2.2-beta.2 → 3.2.2-beta.4

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.
@@ -215,7 +215,8 @@ export interface IHistory {
215
215
  isSuspend?: boolean;
216
216
  reasoningContent?: string;
217
217
  thinkingSecs?: number;
218
- thinkingStatus?: string;
218
+ thinkingStatus?: 'start' | 'end';
219
+ searchingStatus?: 'start' | 'end';
219
220
  }
220
221
  export declare enum IThinkingStatus {
221
222
  Start = "start",
@@ -245,6 +246,10 @@ export interface ISearchReference {
245
246
  link: string;
246
247
  title: string;
247
248
  snippet: string;
249
+ siteIcon?: string;
250
+ siteName: string;
251
+ ts?: string;
252
+ datePublished?: string;
248
253
  }
249
254
  export interface KnowledgeFileMetadataParams {
250
255
  name: string;
@@ -14,4 +14,5 @@ export declare class AuthApi extends BaseApi {
14
14
  tenantCode: string;
15
15
  }): Promise<string>;
16
16
  postRefreshToken(oldToken: string, tenant: string, orgId?: string, expired?: string, product?: string): Promise<TRefreshToken>;
17
+ logout(): Promise<unknown>;
17
18
  }
@@ -38,4 +38,4 @@ export declare const needPrettifyMsg: (status: number) => boolean;
38
38
  * @returns {string} 优化后的 message
39
39
  */
40
40
  export declare const prettifyMsg: (status: number, message?: string) => string;
41
- export * from './model';
41
+ export type { AppResponse, Paged, PageQueryParams, CreateDataResponse } from './model';
@@ -258,6 +258,7 @@ export interface IChatMessage {
258
258
  thinkingSecs?: number;
259
259
  thinkingStatus?: "end" | "start";
260
260
  reasoningContent?: string;
261
+ searchingStatus?: 'start' | 'end';
261
262
  }
262
263
  export interface IReference {
263
264
  text: string;
@@ -38,16 +38,16 @@ export declare class CVForceDatahubApi extends BaseApi {
38
38
  id: string;
39
39
  label: string;
40
40
  box: any;
41
- shapeType?: string | undefined;
42
- type?: string | undefined;
43
- catagoryId?: string | undefined;
44
- words?: string | undefined;
41
+ shapeType?: string;
42
+ type?: string;
43
+ catagoryId?: string;
44
+ words?: string;
45
45
  cell?: {
46
46
  rowIdx: number;
47
47
  colIdx: number;
48
48
  rowSpan: number;
49
49
  colSpan: number;
50
- } | undefined;
50
+ };
51
51
  }[];
52
52
  id: string;
53
53
  versionId: string;
@@ -66,18 +66,18 @@ export declare class CVForceDatahubApi extends BaseApi {
66
66
  countSubsection: number;
67
67
  recordId: string;
68
68
  metadata?: {
69
- charactersCount?: string | undefined;
70
- originKey?: string | undefined;
69
+ charactersCount?: string;
70
+ originKey?: string;
71
71
  fileName: string;
72
72
  oriUrl: string;
73
- } | undefined;
73
+ };
74
74
  sampleFileName: {
75
75
  name: string;
76
76
  oriSize: number;
77
77
  originalName: string;
78
78
  };
79
79
  operator: import('./model').IOperator;
80
- confirmStatus?: number | undefined;
80
+ confirmStatus?: number;
81
81
  }>;
82
82
  getImportInfo(): Promise<{
83
83
  token: string;
@@ -1,7 +1,8 @@
1
1
  export type { User, LoginInfo, TRefreshToken } from './auth/model';
2
2
  export * from './auth';
3
3
  export type { AppResponse, Paged, PageQueryParams, CreateDataResponse, } from './base/model';
4
- export * from './base';
4
+ export { BaseApi, needPrettifyMsg, prettifyMsg } from './base';
5
+ export type { ApiErrorHandler } from './base';
5
6
  export type { ITenant, IOrg, IMeta, IRegion, IUserInfo } from './user/model';
6
7
  export * from './user';
7
8
  export type { PointOfInterest, Config, RecordQueryParams, Point, GUICoords, PanoramaCoords, RecordCreateParams, Record, BindRecord, BindScene, RecordStatus, ViewToken, SpotType, Spot, HotSpot, RenderType, Scene, TrackType, TrackPoint, UploadStatus, PanoramaJWTPayload, ISpacetwinParams, IPoint, ISpacetwin, ISpacetwinStatus, IViewToken, IUploadTickets, } from './panorama/model';
@@ -18,7 +18,7 @@ export declare class PanoramaPluginMgrApi extends BaseApi {
18
18
  id: number;
19
19
  pluginCode: string;
20
20
  spaceTwinsId: string;
21
- description?: string | undefined;
21
+ description?: string;
22
22
  pluginVersion: string;
23
23
  createdAt: number;
24
24
  updatedAt: number;
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@glodon-aiot/apis",
3
- "version": "3.2.2-beta.2",
3
+ "version": "3.2.2-beta.4",
4
4
  "author": "glodoncv",
5
5
  "description": "aiot apis",
6
6
  "type": "module",
7
+ "sideEffects": false,
7
8
  "keywords": [
8
9
  "aiot",
9
10
  "aiot-apis"
@@ -65,9 +66,11 @@
65
66
  "less": "^4.1.2",
66
67
  "prettier": "2.7.1",
67
68
  "require-from-string": "^2.0.2",
69
+ "rollup-plugin-visualizer": "^6.0.1",
68
70
  "typescript": "*",
69
71
  "vite": "^4.1.1",
70
- "vite-plugin-dts": "4.1.1"
72
+ "vite-plugin-dts": "4.1.1",
73
+ "vite-plugin-externalize-deps": "^0.9.0"
71
74
  },
72
75
  "lint-staged": {
73
76
  "*.{js,css,md,jsx,less,ts,tsx,json}": "prettier --write"
@@ -77,8 +80,9 @@
77
80
  "registry": "https://registry.npmjs.org/"
78
81
  },
79
82
  "dependencies": {
80
- "@glodon-aiot/minio": "^0.1.4",
83
+ "@glodon-aiot/minio": "^0.1.6",
81
84
  "axios": "0.24.0",
82
- "dayjs": "^1.11.13"
85
+ "dayjs": "^1.11.13",
86
+ "uuid": "^11.1.0"
83
87
  }
84
88
  }
@@ -1,4 +0,0 @@
1
- var e = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2
- export {
3
- e as commonjsGlobal
4
- };
@@ -1,4 +0,0 @@
1
- var o = { exports: {} };
2
- export {
3
- o as __module
4
- };