@glodon-aiot/apis 2.4.7

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 (64) hide show
  1. package/README.git.md +73 -0
  2. package/README.lib.md +135 -0
  3. package/dist/es/aecpilot/cosntant.mjs +5 -0
  4. package/dist/es/aecpilot/index.mjs +510 -0
  5. package/dist/es/aecpilot/model.mjs +9 -0
  6. package/dist/es/aecpilotui/index.mjs +607 -0
  7. package/dist/es/agentcliui/index.mjs +418 -0
  8. package/dist/es/aishop/index.mjs +97 -0
  9. package/dist/es/aishop/model.mjs +5 -0
  10. package/dist/es/auth/index.mjs +52 -0
  11. package/dist/es/base/index.mjs +158 -0
  12. package/dist/es/contralyze/index.mjs +91 -0
  13. package/dist/es/cvforce/index.mjs +431 -0
  14. package/dist/es/cvforce/model.mjs +12 -0
  15. package/dist/es/cvforce-datahub/index.mjs +435 -0
  16. package/dist/es/cvforce-datahub/model.mjs +8 -0
  17. package/dist/es/cvforce-modelservice/index.mjs +114 -0
  18. package/dist/es/cvforce-modelservice/model.mjs +4 -0
  19. package/dist/es/index.mjs +62 -0
  20. package/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
  21. package/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
  22. package/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
  23. package/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
  24. package/dist/es/panorama/index.mjs +136 -0
  25. package/dist/es/panorama/model.mjs +5 -0
  26. package/dist/es/pluginmgr/index.mjs +85 -0
  27. package/dist/es/user/index.mjs +193 -0
  28. package/dist/es/utils/fetchEventSource/fetch.mjs +112 -0
  29. package/dist/es/utils/fetchEventSource/parse.mjs +97 -0
  30. package/dist/es/utils/index.mjs +9 -0
  31. package/dist/lib/index.js +3 -0
  32. package/dist/src/aecpilot/cosntant.d.ts +8 -0
  33. package/dist/src/aecpilot/index.d.ts +79 -0
  34. package/dist/src/aecpilot/model.d.ts +350 -0
  35. package/dist/src/aecpilotui/index.d.ts +72 -0
  36. package/dist/src/aecpilotui/model.d.ts +63 -0
  37. package/dist/src/agentcliui/index.d.ts +72 -0
  38. package/dist/src/agentcliui/model.d.ts +39 -0
  39. package/dist/src/aishop/index.d.ts +26 -0
  40. package/dist/src/aishop/model.d.ts +111 -0
  41. package/dist/src/auth/index.d.ts +17 -0
  42. package/dist/src/auth/model.d.ts +24 -0
  43. package/dist/src/base/index.d.ts +41 -0
  44. package/dist/src/base/model.d.ts +20 -0
  45. package/dist/src/contralyze/index.d.ts +24 -0
  46. package/dist/src/contralyze/model.d.ts +75 -0
  47. package/dist/src/cvforce/index.d.ts +130 -0
  48. package/dist/src/cvforce/model.d.ts +519 -0
  49. package/dist/src/cvforce-datahub/index.d.ts +186 -0
  50. package/dist/src/cvforce-datahub/model.d.ts +438 -0
  51. package/dist/src/cvforce-modelservice/index.d.ts +23 -0
  52. package/dist/src/cvforce-modelservice/model.d.ts +156 -0
  53. package/dist/src/index.d.ts +19 -0
  54. package/dist/src/panorama/index.d.ts +42 -0
  55. package/dist/src/panorama/model.d.ts +263 -0
  56. package/dist/src/pluginmgr/index.d.ts +28 -0
  57. package/dist/src/pluginmgr/model.d.ts +48 -0
  58. package/dist/src/user/index.d.ts +42 -0
  59. package/dist/src/user/model.d.ts +247 -0
  60. package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
  61. package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
  62. package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
  63. package/dist/src/utils/index.d.ts +1 -0
  64. package/package.json +88 -0
@@ -0,0 +1,156 @@
1
+ import { IOperator } from '../cvforce-datahub/model';
2
+ export type IModelServiceState = "Starting" | "Running" | "Aborting" | "Aborted" | "RunError";
3
+ export interface IModelService {
4
+ id: string;
5
+ name: string;
6
+ modelId: string;
7
+ taskId: string;
8
+ state: IModelServiceState;
9
+ description: string;
10
+ type: "service" | "verify";
11
+ creator: string;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ deletedAt: string;
15
+ startTime: string;
16
+ activeTime: string;
17
+ endTime: string;
18
+ modelName: string;
19
+ modelVersion: string;
20
+ stateMessage: string;
21
+ serviceUrl: string;
22
+ documentUrl: string;
23
+ source: string;
24
+ shelfStatus: boolean;
25
+ isLightModel: boolean;
26
+ algServiceUrl: string;
27
+ serviceType: string;
28
+ subModelType: string;
29
+ deployOptions: IServiceDeployOptions;
30
+ apikey?: string;
31
+ alg_options?: {
32
+ modelName: string;
33
+ apiKey?: string;
34
+ };
35
+ operator: IOperator;
36
+ signList: ISign[];
37
+ }
38
+ export interface IServiceParams {
39
+ name?: string;
40
+ description?: string;
41
+ modelId?: string;
42
+ taskId?: string;
43
+ type: "service" | "verify";
44
+ documentUrl?: string;
45
+ isLightModel?: boolean;
46
+ algServiceUrl?: string;
47
+ serviceId?: string;
48
+ subModelType?: string;
49
+ deployOptions?: IServiceDeployOptions;
50
+ signList?: ISign[];
51
+ }
52
+ export interface IServiceQueryParams {
53
+ name?: string;
54
+ state?: string;
55
+ taskId?: string;
56
+ type?: string;
57
+ source?: string;
58
+ shelfStatus?: number;
59
+ isLightModel?: number;
60
+ serviceType?: string;
61
+ creator?: string;
62
+ signList?: string[];
63
+ signName?: string;
64
+ }
65
+ export interface IStatistic {
66
+ id: string;
67
+ name: string;
68
+ isLightModel: boolean;
69
+ shelfStatus: boolean;
70
+ internal: ICountNal;
71
+ external: ICountNal;
72
+ subModelType: string;
73
+ }
74
+ export interface ICountNal {
75
+ successCount: number;
76
+ failCount: number;
77
+ }
78
+ export interface IStatisticQueryParams {
79
+ startTime?: string;
80
+ endTime?: string;
81
+ name?: string;
82
+ isLightModel?: number;
83
+ serviceType?: string;
84
+ shelfStatus?: number;
85
+ }
86
+ export interface IServiceStastic {
87
+ time: string;
88
+ successCount: number;
89
+ failCount: number;
90
+ }
91
+ export interface IServiceStasticParams {
92
+ startTime?: string;
93
+ endTime?: string;
94
+ serviceType?: string;
95
+ }
96
+ export interface IServiceDeployOptions {
97
+ minReplicas?: number;
98
+ maxReplicas?: number;
99
+ containerConcurrency?: number;
100
+ targetUtilizationPercentage?: number;
101
+ scaleDownDelay?: string;
102
+ modelContextLength: number;
103
+ confidence?: IConfidenceData[];
104
+ cpu?: number;
105
+ memory?: number;
106
+ resourceAllocation?: IResourceAllocation;
107
+ image?: string;
108
+ port?: number;
109
+ suffix?: string;
110
+ volumes?: {
111
+ pvc?: IPvc[];
112
+ configmap?: IConfigmap[];
113
+ };
114
+ modelStore?: number;
115
+ pattern?: number;
116
+ concurrencyHard?: number;
117
+ }
118
+ export interface IConfidenceData {
119
+ label: string;
120
+ threshold: number;
121
+ }
122
+ export interface IResourceAllocation {
123
+ type: string;
124
+ gpu: IGpu[];
125
+ adds?: object;
126
+ }
127
+ export interface IGpu {
128
+ gpuType: string;
129
+ gpuMem: number;
130
+ gpuCount: number;
131
+ }
132
+ export interface IPvc {
133
+ name: string;
134
+ pvc: string;
135
+ volumeMount: IVolumeMount[];
136
+ }
137
+ export interface IConfigmap {
138
+ name: string;
139
+ defaultMode: number;
140
+ optional: boolean;
141
+ configmap: string;
142
+ volumeMount: IVolumeMount[];
143
+ }
144
+ export interface IVolumeMount {
145
+ path: string;
146
+ subPath: string;
147
+ readOnly: boolean;
148
+ }
149
+ export interface ISign {
150
+ id?: string;
151
+ name: string;
152
+ }
153
+ export declare enum ImodelStoreEnum {
154
+ minio = 0,
155
+ pvc = 1
156
+ }
@@ -0,0 +1,19 @@
1
+ export type { User, LoginInfo, TRefreshToken } from './auth/model';
2
+ export * from './auth';
3
+ export type { AppResponse, Paged, PageQueryParams, CreateDataResponse, } from './base/model';
4
+ export * from './base';
5
+ export type { ITenant, IOrg, IMeta, IRegion, IUserInfo } from './user/model';
6
+ export * from './user';
7
+ 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';
8
+ export * from './panorama';
9
+ export type { PanoramaPluginParams, PanoramaPlugin, PanoramaPluginData, } from './pluginmgr/model';
10
+ export * from './pluginmgr';
11
+ export type { IArrange, IApplication, IKnowledge, IUploadParam, MinioConfig, IUploadTicket, IAecSessionParam, IAecSession, ICommentParam, IHistory, IAecReference, KnowledgeFileMetadataParams, KnowledgeFileMetadata, IMessageParams, HistoryPrams, IQuestion, ResourceTokenParams, ResourceToken, IPermission, } from './aecpilot/model';
12
+ export * from './aecpilot';
13
+ export * from './agentcliui';
14
+ export * from './aecpilotui';
15
+ export * from './cvforce';
16
+ export * from './cvforce-datahub';
17
+ export * from './cvforce-modelservice';
18
+ export * from './aishop';
19
+ export * from './contralyze';
@@ -0,0 +1,42 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { ApiErrorHandler, BaseApi } from '../base/index';
3
+ import { CreateDataResponse } from '../base/model';
4
+ import { RecordCreateParams, Record, ViewToken, RecordQueryParams, Scene, GUICoords, UploadStatus, PanoramaJWTPayload, ISpacetwinParams, ISpacetwin, IViewToken, IUploadTickets, TrackType, TrackPoint } from './model';
5
+ export declare class PanoramaApi extends BaseApi {
6
+ constructor(axiosInstance?: AxiosInstance, errorHandler?: ApiErrorHandler);
7
+ static parseApiToken(apiToken: string): PanoramaJWTPayload;
8
+ static loadApiToken(baseUrl: string, panoramaApi: string, viewToken: string): Promise<any>;
9
+ listRecord(params: RecordQueryParams): Promise<import('../base/model').Paged<Record>>;
10
+ postRecord(params: RecordCreateParams): Promise<CreateDataResponse>;
11
+ getRecordOverview(id: string): Promise<Record>;
12
+ getRecordViewtoken(id: string): Promise<ViewToken>;
13
+ listScene(recordId: string): Promise<Scene[]>;
14
+ getScenesByTimestamp(recordId: string, timestamp: number): Promise<{
15
+ pre: Scene;
16
+ next: Scene;
17
+ }>;
18
+ recomputeTrack(recordId: string, points: [startpoint: GUICoords, endpoint: GUICoords]): Promise<null>;
19
+ updateRecordUploadStatus(id: string, params: {
20
+ status: UploadStatus;
21
+ fileUrls?: string[];
22
+ }): Promise<any>;
23
+ getApiToken(viewtoken: string): Promise<any>;
24
+ getSpacetwins(params: ISpacetwinParams): Promise<import('../base/model').Paged<ISpacetwin>>;
25
+ postSpacetwins(params: any): Promise<unknown>;
26
+ updateInspection(id: number | string, params: Partial<any>): Promise<any>;
27
+ getSpacetwinsIdViewtoken(id: string): Promise<IViewToken>;
28
+ postSpacetwinsIdUpdateUploadStatus(id: string, params: {
29
+ status: string;
30
+ fileUrls?: string[];
31
+ }): Promise<any>;
32
+ postUploadTicket(params: {
33
+ isv: 'hw';
34
+ files: string[];
35
+ }): Promise<IUploadTickets>;
36
+ getDownloadUrl(params: {
37
+ isv: string;
38
+ key: string;
39
+ }): Promise<string>;
40
+ listTrack(recordId: string, type: TrackType): Promise<TrackPoint[]>;
41
+ }
42
+ export * from './model';
@@ -0,0 +1,263 @@
1
+ export interface PointOfInterest {
2
+ pitch: number;
3
+ yaw: number;
4
+ type: 'scene' | 'label';
5
+ text: string;
6
+ sceneId: string;
7
+ targetPitch?: number;
8
+ targetYaw?: number;
9
+ targetHfov?: number;
10
+ id: number | string;
11
+ cssClass?: string;
12
+ createTooltipFunc?: Function;
13
+ createTooltipArgs?: object;
14
+ clickHandlerFunc?: Function;
15
+ clickHandlerArgs?: object;
16
+ scale?: boolean;
17
+ }
18
+ export interface Config {
19
+ type: 'equirectangular' | 'cubemap' | 'multires';
20
+ title: string;
21
+ author: string;
22
+ authorURL: string;
23
+ basePath: string;
24
+ autoLoad: boolean;
25
+ autoRotate: number;
26
+ autoRotateInactivityDelay: number;
27
+ autoRotateStopDelay: number;
28
+ fallback: string;
29
+ orientationOnByDefault: boolean;
30
+ showZoomCtrl: boolean;
31
+ keyboardZoom: boolean;
32
+ mouseZoom: boolean | string;
33
+ draggable: boolean;
34
+ friction: number;
35
+ disableKeyboardCtrl: boolean;
36
+ showFullscreenCtrl: boolean;
37
+ showControls: boolean;
38
+ touchPanSpeedCoeffFactor: number;
39
+ yaw: number;
40
+ pitch: number;
41
+ hfov: number;
42
+ minYaw: number;
43
+ maxYaw: number;
44
+ minPitch: number;
45
+ maxPitch: number;
46
+ minHfov: number;
47
+ maxHfov: number;
48
+ multiResMinHfov: boolean;
49
+ compass: boolean;
50
+ northOffset: number;
51
+ preview: string;
52
+ previewTitle: string;
53
+ previewAuthor: string;
54
+ horizonPitch: number;
55
+ horizonRoll: number;
56
+ animationTimingFunction: (param: [number, number]) => [number, number];
57
+ escapeHTML: boolean;
58
+ crossOrigin: string;
59
+ hotSpots: PointOfInterest[];
60
+ hotSpotDebug: boolean;
61
+ sceneFadeDuration: number;
62
+ capturedKeyNumbers: number[];
63
+ backgroundColor: [number, number, number];
64
+ avoidShowingBackground: boolean;
65
+ }
66
+ export interface RecordQueryParams {
67
+ afterAt?: string;
68
+ beforeAt?: string;
69
+ orgId?: string | number;
70
+ status?: string;
71
+ pageNo?: number;
72
+ pageSize?: number;
73
+ }
74
+ export type Point = [number, number];
75
+ export type GUICoords = {
76
+ x: number;
77
+ y: number;
78
+ };
79
+ export interface PanoramaCoords {
80
+ pitch: number;
81
+ yaw: number;
82
+ }
83
+ export interface RecordCreateParams {
84
+ beginAt: string;
85
+ finishedAt: string;
86
+ points: [Point, Point];
87
+ orgId: string;
88
+ drawingFileUrl?: string;
89
+ drawingFileBase64?: string;
90
+ }
91
+ export interface Record {
92
+ id: string;
93
+ status: string;
94
+ creator?: string;
95
+ mergingInfo?: {
96
+ firstSceneId: string;
97
+ };
98
+ drawingUrl: string;
99
+ slimDrawingUrl: string;
100
+ fileUrls: string[];
101
+ beginAt: string;
102
+ finishedAt: string;
103
+ points: GUICoords[];
104
+ orgID: string;
105
+ device: {
106
+ brand: string;
107
+ model: string;
108
+ };
109
+ label?: any;
110
+ createdAt: string;
111
+ updatedAt: string;
112
+ deletedAt: string;
113
+ tenantCode: string;
114
+ scenes: Scene[];
115
+ }
116
+ export interface BindRecord {
117
+ spacetwinsId: string;
118
+ }
119
+ export interface BindScene {
120
+ sceneId: string;
121
+ }
122
+ export declare enum RecordStatus {
123
+ Collecting = "\u91C7\u96C6\u4E2D",
124
+ CollectionTimeout = "\u8D85\u65F6",
125
+ CollectionFinish = "\u5B8C\u6210",
126
+ WaitUpload = "\u7B49\u5F85\u4E0A\u4F20",
127
+ Uploading = "\u4E0A\u4F20\u4E2D",
128
+ UploadFinish = "\u4E0A\u4F20\u5B8C\u6210",
129
+ UploadFailed = "\u4E0A\u4F20\u5931\u8D25",
130
+ WaitMerge = "\u7B49\u5F85\u5408\u6210",
131
+ CreateMergeTaskFailed = "\u521B\u5EFA\u5408\u6210\u4EFB\u52A1\u5931\u8D25",
132
+ Merging = "\u5408\u6210\u4E2D",
133
+ MergeFailed = "\u5408\u6210\u5931\u8D25",
134
+ MergeFinish = "\u5408\u6210\u6210\u529F"
135
+ }
136
+ export interface ViewToken {
137
+ viewToken: string;
138
+ expireIn: number;
139
+ }
140
+ export type SpotType = 'scene' | 'info';
141
+ export interface Spot extends PanoramaCoords, BindScene {
142
+ type: SpotType;
143
+ }
144
+ export interface HotSpot extends Spot {
145
+ type: 'scene';
146
+ }
147
+ export type RenderType = 'cubemap';
148
+ export interface Scene extends PanoramaCoords, GUICoords, BindRecord, BindScene {
149
+ type: RenderType;
150
+ cubeMap: [string, string, string, string, string, string];
151
+ prefix: string;
152
+ hotSpots: HotSpot[];
153
+ }
154
+ export type TrackType = 'map' | 'bim';
155
+ export interface TrackPoint extends GUICoords {
156
+ id: string;
157
+ }
158
+ export type UploadStatus = 'Uploading' | 'UploadFinish' | 'UploadFailed';
159
+ export interface PanoramaJWTPayload {
160
+ ro: 'resource';
161
+ ten: string;
162
+ uid: string;
163
+ rid: string;
164
+ pdt: 'panorama';
165
+ coms: ['data'];
166
+ ext: {
167
+ spaceTwinsId: string;
168
+ };
169
+ exp: number;
170
+ }
171
+ export interface ISpacetwinParams {
172
+ afterAt?: string;
173
+ beforeAt?: string;
174
+ orgId?: string | number;
175
+ status?: string;
176
+ spacetwinsIds?: string[];
177
+ pageNo?: number;
178
+ pageSize?: number;
179
+ }
180
+ export interface ISpacetwinCreateParams {
181
+ areaId: number;
182
+ beginAt: string;
183
+ finishedAt: string;
184
+ points: IPoint[];
185
+ scheduleId: number;
186
+ monomerId: number;
187
+ device: {
188
+ brand: string;
189
+ model: string;
190
+ };
191
+ fileUrls: string[];
192
+ orgId: number;
193
+ localFileNames: string[];
194
+ drawingBase64: string;
195
+ drawingUrl: string;
196
+ lastSpaceTwinsId: string;
197
+ aiAnalysis: {
198
+ aiSchedule: {
199
+ areas: {
200
+ id: string;
201
+ posX: number;
202
+ posY: number;
203
+ posR: number;
204
+ }[];
205
+ };
206
+ };
207
+ }
208
+ export interface IPoint {
209
+ x: number;
210
+ y: number;
211
+ }
212
+ export interface ISpacetwin {
213
+ id: string;
214
+ status: string;
215
+ creator?: string;
216
+ mergingInfo: any;
217
+ drawingUrl: string;
218
+ slimDrawingUrl: string;
219
+ fileUrls: string[];
220
+ beginAt: string;
221
+ finishedAt: string;
222
+ points: IPoint[];
223
+ orgId: string;
224
+ device: {
225
+ brand: string;
226
+ model: string;
227
+ };
228
+ label?: any;
229
+ createdAt: string;
230
+ updatedAt: string;
231
+ deletedAt: string;
232
+ tenantCode: string;
233
+ }
234
+ export declare enum ISpacetwinStatus {
235
+ Collecting = "\u91C7\u96C6\u4E2D",
236
+ CollectionTimeout = "\u8D85\u65F6",
237
+ CollectionFinish = "\u5B8C\u6210",
238
+ WaitUpload = "\u7B49\u5F85\u4E0A\u4F20",
239
+ Uploading = "\u4E0A\u4F20\u4E2D",
240
+ UploadFinish = "\u4E0A\u4F20\u5B8C\u6210",
241
+ UploadFailed = "\u4E0A\u4F20\u5931\u8D25",
242
+ WaitMerge = "\u7B49\u5F85\u5408\u6210",
243
+ CreateMergeTaskFailed = "\u521B\u5EFA\u5408\u6210\u4EFB\u52A1\u5931\u8D25",
244
+ Merging = "\u5408\u6210\u4E2D",
245
+ MergeFailed = "\u5408\u6210\u5931\u8D25",
246
+ MergeFinish = "\u5408\u6210\u6210\u529F"
247
+ }
248
+ export interface IViewToken {
249
+ viewToken: string;
250
+ expireIn: number;
251
+ }
252
+ export interface IUploadTickets {
253
+ hw: {
254
+ accessKey: string;
255
+ secertKey: string;
256
+ securityToken: string;
257
+ bucket: string;
258
+ fileKeys: string[];
259
+ };
260
+ }
261
+ export interface TrackPoint extends GUICoords {
262
+ id: string;
263
+ }
@@ -0,0 +1,28 @@
1
+ import { ApiErrorHandler, BaseApi, PageQueryParams } from '../base';
2
+ import { AxiosInstance } from 'axios';
3
+ import { PanoramaPlugin, PanoramaPluginDataParams, PanoramaPluginListItem, PanoramaPluginParams } from './model';
4
+ export declare class PanoramaPluginMgrApi extends BaseApi {
5
+ constructor(axiosInstance?: AxiosInstance, errorHandler?: ApiErrorHandler);
6
+ listPlugin(params?: PageQueryParams & {
7
+ name: string;
8
+ }): Promise<unknown>;
9
+ postPlugin(params: PageQueryParams): Promise<PanoramaPlugin[]>;
10
+ getPlugin(code: string): Promise<PanoramaPlugin>;
11
+ updatePlugin(code: string, params: PanoramaPluginParams): Promise<unknown>;
12
+ listPluginData<T>(code: string, params: {
13
+ pluginVersion?: string;
14
+ }): Promise<PanoramaPluginListItem[]>;
15
+ postPluginData<T>(code: string, params: PanoramaPluginDataParams<T>): Promise<number>;
16
+ getPluginData<T>(code: string, dId: number): Promise<{
17
+ arguments: T;
18
+ id: number;
19
+ pluginCode: string;
20
+ spaceTwinsId: string;
21
+ description?: string | undefined;
22
+ pluginVersion: string;
23
+ createdAt: number;
24
+ updatedAt: number;
25
+ }>;
26
+ updatePluginData<T>(code: string, dId: number, params: PanoramaPluginDataParams<T>): Promise<unknown>;
27
+ deletePluginData(code: string, dId: string): Promise<unknown>;
28
+ }
@@ -0,0 +1,48 @@
1
+ export interface PanoramaPluginParams {
2
+ name?: string;
3
+ description?: string;
4
+ path?: string;
5
+ }
6
+ export interface PanoramaPlugin {
7
+ name: string;
8
+ description: string;
9
+ path: string;
10
+ code: string;
11
+ version: string;
12
+ createdAt?: number;
13
+ updatedAt?: number;
14
+ }
15
+ export interface PanoramaPluginDataParams<T> {
16
+ arguments: T;
17
+ description?: string;
18
+ pluginVersion: string;
19
+ }
20
+ export interface PanoramaPluginListItem {
21
+ id: number;
22
+ pluginCode: string;
23
+ spaceTwinsId: string;
24
+ description?: string;
25
+ pluginVersion: string;
26
+ createdAt: number;
27
+ updatedAt: number;
28
+ }
29
+ export interface PanoramaPluginDetails {
30
+ id: number;
31
+ pluginCode: string;
32
+ spaceTwinsId: string;
33
+ arguments: string;
34
+ description?: string;
35
+ pluginVersion: string;
36
+ createdAt: number;
37
+ updatedAt: number;
38
+ }
39
+ export interface PanoramaPluginData<T> {
40
+ id: number;
41
+ pluginCode: string;
42
+ spaceTwinsId: string;
43
+ arguments: T;
44
+ description?: string;
45
+ pluginVersion: string;
46
+ createdAt: number;
47
+ updatedAt: number;
48
+ }
@@ -0,0 +1,42 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { Paged, PageQueryParams, ApiErrorHandler, BaseApi } from '../base';
3
+ import { City, Province, County, Product, Tenant, IOrg, IOrgParam, IUser, IUserParam, IProductRole, IUserRoleParam, IRole, IRaw, IUserInfo, IPermission, AppInfo, TenantUserInfo, OrgPageQueryParams, UploadResponse, UploadTickets, TenantKeySecretInfo } from './model';
4
+ export declare class DataApi extends BaseApi {
5
+ constructor(axiosInstance?: AxiosInstance, errorHandler?: ApiErrorHandler);
6
+ getTenant(code: string): Promise<Tenant>;
7
+ listProduct(): Promise<Product[]>;
8
+ listProvinces(): Promise<Province[]>;
9
+ listCities(provinceId: string): Promise<City[]>;
10
+ listCounties(provinceId: string, cityId: string): Promise<County[]>;
11
+ getOrgList(params: OrgPageQueryParams): Promise<Paged<IOrg>>;
12
+ getUserIdOrgList(id: number, params: PageQueryParams): Promise<Paged<IOrg>>;
13
+ delOrg(id: number): Promise<IOrg>;
14
+ postOrg(params: IOrgParam): Promise<IOrg>;
15
+ patchOrg(id: number, params: IOrgParam): Promise<IOrg>;
16
+ getUsers(code: string | undefined, params: PageQueryParams): Promise<Paged<IUser>>;
17
+ delUser(code: string | undefined, id: number): Promise<IUser>;
18
+ postUser(code: string | undefined, params: IUserParam): Promise<IUser>;
19
+ patchUser(code: string | undefined, id: number, params: IOrgParam): Promise<IOrg>;
20
+ getTenantList(): Promise<Tenant[]>;
21
+ getUserIdRoles(id: number): Promise<IRole[]>;
22
+ getProductCodeRole(code: string): Promise<IProductRole[]>;
23
+ postUserRole(id: number, params: IUserRoleParam): Promise<IProductRole>;
24
+ patchUserRole(id: number, rid: number, params: IUserRoleParam): Promise<IProductRole>;
25
+ deleteUserRole(id: number, rid: number): Promise<IProductRole>;
26
+ getUsersIdProductCodeMenu(id: string, code: string, groupCode: string | undefined, level: number): Promise<IRaw[]>;
27
+ getUserInfo(id: string): Promise<IUserInfo>;
28
+ uipermission(id: string, code: string, groupCode?: string): Promise<IPermission[]>;
29
+ getAppInfo(code: string): Promise<AppInfo>;
30
+ getTenantUserInfo(code: string, id: string): Promise<TenantUserInfo>;
31
+ uploadFile(data: FormData): Promise<UploadResponse>;
32
+ getUserIdProductCodeOrg(id: string, code: string): Promise<IOrg[]>;
33
+ getOrg(id: number | string): Promise<IOrg>;
34
+ getUploadTicket(params: {
35
+ isv: 'hw';
36
+ productCode: 'gspace';
37
+ }): Promise<UploadTickets>;
38
+ putAppInfo(code: string, params: AppInfo): Promise<null>;
39
+ getTenantKeySecret(tenCode: string): Promise<TenantKeySecretInfo>;
40
+ resetTenantKeySecret(tenCode: string): Promise<null>;
41
+ getProductsCode(code: string): Promise<Product>;
42
+ }