@superatomai/sdk-web 0.0.11 → 0.0.12
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/dist/index.cjs +469 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +524 -62
- package/dist/index.d.ts +524 -62
- package/dist/index.js +469 -55
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ declare const UIComponentSchema: z.ZodObject<{
|
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
type UIComponent = z.infer<typeof UIComponentSchema>;
|
|
78
|
-
declare const DSLRendererPropsSchema$
|
|
78
|
+
declare const DSLRendererPropsSchema$2: z.ZodObject<{
|
|
79
79
|
dsl: z.ZodObject<{
|
|
80
80
|
id: z.ZodString;
|
|
81
81
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -108,9 +108,9 @@ declare const DSLRendererPropsSchema$1: z.ZodObject<{
|
|
|
108
108
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
109
109
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
110
110
|
}, z.core.$strip>;
|
|
111
|
-
type DSLRendererProps$
|
|
111
|
+
type DSLRendererProps$2 = z.infer<typeof DSLRendererPropsSchema$2>;
|
|
112
112
|
|
|
113
|
-
declare const DSLRendererPropsSchema: z.ZodObject<{
|
|
113
|
+
declare const DSLRendererPropsSchema$1: z.ZodObject<{
|
|
114
114
|
dsl: z.ZodObject<{
|
|
115
115
|
id: z.ZodString;
|
|
116
116
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -143,7 +143,7 @@ declare const DSLRendererPropsSchema: z.ZodObject<{
|
|
|
143
143
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
144
144
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
145
145
|
}, z.core.$strip>;
|
|
146
|
-
type DSLRendererProps = z.infer<typeof DSLRendererPropsSchema>;
|
|
146
|
+
type DSLRendererProps$1 = z.infer<typeof DSLRendererPropsSchema$1>;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* Message participant schema (from/to)
|
|
@@ -826,13 +826,65 @@ declare const ComponentsSendMessageSchema: z.ZodObject<{
|
|
|
826
826
|
}, z.core.$strip>;
|
|
827
827
|
}, z.core.$strip>;
|
|
828
828
|
type ComponentsSendMessage = z.infer<typeof ComponentsSendMessageSchema>;
|
|
829
|
+
/**
|
|
830
|
+
* Dashboard query filters schema
|
|
831
|
+
* Synced with sdk-nodejs: DashboardQueryFiltersSchema
|
|
832
|
+
*/
|
|
833
|
+
declare const DashboardQueryFiltersSchema: z.ZodObject<{
|
|
834
|
+
dashboardId: z.ZodOptional<z.ZodString>;
|
|
835
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
836
|
+
createdBy: z.ZodOptional<z.ZodNumber>;
|
|
837
|
+
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
838
|
+
name: z.ZodOptional<z.ZodString>;
|
|
839
|
+
}, z.core.$strip>;
|
|
840
|
+
type DashboardQueryFilters = z.infer<typeof DashboardQueryFiltersSchema>;
|
|
841
|
+
/**
|
|
842
|
+
* Report query filters schema
|
|
843
|
+
* Synced with sdk-nodejs: ReportQueryFiltersSchema
|
|
844
|
+
*/
|
|
845
|
+
declare const ReportQueryFiltersSchema: z.ZodObject<{
|
|
846
|
+
reportId: z.ZodOptional<z.ZodString>;
|
|
847
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
848
|
+
createdBy: z.ZodOptional<z.ZodNumber>;
|
|
849
|
+
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
850
|
+
name: z.ZodOptional<z.ZodString>;
|
|
851
|
+
}, z.core.$strip>;
|
|
852
|
+
type ReportQueryFilters = z.infer<typeof ReportQueryFiltersSchema>;
|
|
853
|
+
/**
|
|
854
|
+
* UI query filters schema
|
|
855
|
+
* Synced with sdk-nodejs: UIQueryFiltersSchema
|
|
856
|
+
*/
|
|
857
|
+
declare const UIQueryFiltersSchema: z.ZodObject<{
|
|
858
|
+
uiId: z.ZodOptional<z.ZodString>;
|
|
859
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
860
|
+
createdBy: z.ZodOptional<z.ZodNumber>;
|
|
861
|
+
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
862
|
+
name: z.ZodOptional<z.ZodString>;
|
|
863
|
+
}, z.core.$strip>;
|
|
864
|
+
type UIQueryFilters = z.infer<typeof UIQueryFiltersSchema>;
|
|
865
|
+
/**
|
|
866
|
+
* DBUIBlock schema for database storage
|
|
867
|
+
* Synced with sdk-nodejs: DBUIBlockSchema (from conversation-saver.ts)
|
|
868
|
+
*/
|
|
869
|
+
declare const DBUIBlockSchema: z.ZodObject<{
|
|
870
|
+
id: z.ZodString;
|
|
871
|
+
component: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
872
|
+
analysis: z.ZodNullable<z.ZodString>;
|
|
873
|
+
user_prompt: z.ZodString;
|
|
874
|
+
}, z.core.$strip>;
|
|
875
|
+
type DBUIBlock = z.infer<typeof DBUIBlockSchema>;
|
|
829
876
|
/**
|
|
830
877
|
* Bookmark data schema
|
|
831
878
|
* Synced with sdk-nodejs: BookmarkDataSchema
|
|
832
879
|
*/
|
|
833
880
|
declare const BookmarkDataSchema: z.ZodObject<{
|
|
834
881
|
id: z.ZodOptional<z.ZodNumber>;
|
|
835
|
-
uiblock: z.
|
|
882
|
+
uiblock: z.ZodObject<{
|
|
883
|
+
id: z.ZodString;
|
|
884
|
+
component: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
885
|
+
analysis: z.ZodNullable<z.ZodString>;
|
|
886
|
+
user_prompt: z.ZodString;
|
|
887
|
+
}, z.core.$strip>;
|
|
836
888
|
created_at: z.ZodOptional<z.ZodString>;
|
|
837
889
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
838
890
|
}, z.core.$strip>;
|
|
@@ -1081,51 +1133,89 @@ declare function getUser(client: SuperatomClient, username: string, timeout?: nu
|
|
|
1081
1133
|
* Dashboard interface for response data
|
|
1082
1134
|
*/
|
|
1083
1135
|
interface Dashboard {
|
|
1136
|
+
id?: number;
|
|
1137
|
+
dashboardId: string;
|
|
1138
|
+
projectId?: string;
|
|
1139
|
+
name?: string;
|
|
1140
|
+
description?: string;
|
|
1141
|
+
dashboard?: DSLRendererProps$2;
|
|
1142
|
+
createdBy?: number;
|
|
1143
|
+
updatedBy?: number;
|
|
1144
|
+
createdAt?: string;
|
|
1145
|
+
updatedAt?: string;
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Create dashboard options
|
|
1149
|
+
*/
|
|
1150
|
+
interface CreateDashboardOptions {
|
|
1084
1151
|
dashboardId: string;
|
|
1085
|
-
|
|
1152
|
+
projectId: string;
|
|
1153
|
+
name?: string;
|
|
1154
|
+
description?: string;
|
|
1155
|
+
createdBy?: number;
|
|
1156
|
+
dashboard?: DSLRendererProps$2;
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Update dashboard options
|
|
1160
|
+
*/
|
|
1161
|
+
interface UpdateDashboardOptions {
|
|
1162
|
+
id: number;
|
|
1163
|
+
name?: string;
|
|
1164
|
+
description?: string;
|
|
1165
|
+
createdBy?: number;
|
|
1166
|
+
updatedBy?: number;
|
|
1167
|
+
dashboard?: DSLRendererProps$2;
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* Query dashboards options
|
|
1171
|
+
*/
|
|
1172
|
+
interface QueryDashboardsOptions {
|
|
1173
|
+
filters?: DashboardQueryFilters;
|
|
1174
|
+
limit?: number;
|
|
1175
|
+
sort?: 'ASC' | 'DESC';
|
|
1086
1176
|
}
|
|
1087
1177
|
/**
|
|
1088
1178
|
* Create a new dashboard
|
|
1089
1179
|
* @param client - SuperatomClient instance
|
|
1090
|
-
* @param
|
|
1091
|
-
* @param dashboard - Dashboard DSL data
|
|
1180
|
+
* @param options - Dashboard creation options
|
|
1092
1181
|
* @param timeout - Request timeout in milliseconds
|
|
1093
1182
|
* @returns Server response with success status
|
|
1094
1183
|
*/
|
|
1095
|
-
declare function createDashboard(client: SuperatomClient,
|
|
1184
|
+
declare function createDashboard(client: SuperatomClient, options: CreateDashboardOptions, timeout?: number): Promise<{
|
|
1096
1185
|
success: boolean;
|
|
1097
1186
|
error?: string;
|
|
1098
1187
|
message?: string;
|
|
1188
|
+
id?: number;
|
|
1099
1189
|
dashboardId?: string;
|
|
1100
|
-
dashboard?: DSLRendererProps$
|
|
1190
|
+
dashboard?: DSLRendererProps$2;
|
|
1101
1191
|
}>;
|
|
1102
1192
|
/**
|
|
1103
1193
|
* Update an existing dashboard
|
|
1104
1194
|
* @param client - SuperatomClient instance
|
|
1105
|
-
* @param
|
|
1106
|
-
* @param dashboard - Updated dashboard DSL data
|
|
1195
|
+
* @param options - Dashboard update options
|
|
1107
1196
|
* @param timeout - Request timeout in milliseconds
|
|
1108
1197
|
* @returns Server response with success status
|
|
1109
1198
|
*/
|
|
1110
|
-
declare function updateDashboard(client: SuperatomClient,
|
|
1199
|
+
declare function updateDashboard(client: SuperatomClient, options: UpdateDashboardOptions, timeout?: number): Promise<{
|
|
1111
1200
|
success: boolean;
|
|
1112
1201
|
error?: string;
|
|
1113
1202
|
message?: string;
|
|
1203
|
+
id?: number;
|
|
1114
1204
|
dashboardId?: string;
|
|
1115
|
-
dashboard?: DSLRendererProps$
|
|
1205
|
+
dashboard?: DSLRendererProps$2;
|
|
1116
1206
|
}>;
|
|
1117
1207
|
/**
|
|
1118
1208
|
* Delete a dashboard
|
|
1119
1209
|
* @param client - SuperatomClient instance
|
|
1120
|
-
* @param
|
|
1210
|
+
* @param id - Dashboard ID (numeric) to delete
|
|
1121
1211
|
* @param timeout - Request timeout in milliseconds
|
|
1122
1212
|
* @returns Server response with success status
|
|
1123
1213
|
*/
|
|
1124
|
-
declare function deleteDashboard(client: SuperatomClient,
|
|
1214
|
+
declare function deleteDashboard(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1125
1215
|
success: boolean;
|
|
1126
1216
|
error?: string;
|
|
1127
1217
|
message?: string;
|
|
1128
|
-
|
|
1218
|
+
id?: number;
|
|
1129
1219
|
}>;
|
|
1130
1220
|
/**
|
|
1131
1221
|
* Get all dashboards
|
|
@@ -1143,15 +1233,30 @@ declare function getAllDashboards(client: SuperatomClient, timeout?: number): Pr
|
|
|
1143
1233
|
/**
|
|
1144
1234
|
* Get a specific dashboard by ID
|
|
1145
1235
|
* @param client - SuperatomClient instance
|
|
1146
|
-
* @param
|
|
1236
|
+
* @param id - Dashboard ID (numeric) to retrieve
|
|
1147
1237
|
* @param timeout - Request timeout in milliseconds
|
|
1148
1238
|
* @returns Server response with dashboard data
|
|
1149
1239
|
*/
|
|
1150
|
-
declare function getDashboard(client: SuperatomClient,
|
|
1240
|
+
declare function getDashboard(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1151
1241
|
success: boolean;
|
|
1152
1242
|
error?: string;
|
|
1243
|
+
id?: number;
|
|
1153
1244
|
dashboardId?: string;
|
|
1154
|
-
dashboard?: DSLRendererProps$
|
|
1245
|
+
dashboard?: DSLRendererProps$2;
|
|
1246
|
+
message?: string;
|
|
1247
|
+
}>;
|
|
1248
|
+
/**
|
|
1249
|
+
* Query dashboards with filters, limit, and sort
|
|
1250
|
+
* @param client - SuperatomClient instance
|
|
1251
|
+
* @param options - Query options with filters, limit, and sort
|
|
1252
|
+
* @param timeout - Request timeout in milliseconds
|
|
1253
|
+
* @returns Server response with list of dashboards
|
|
1254
|
+
*/
|
|
1255
|
+
declare function queryDashboards(client: SuperatomClient, options?: QueryDashboardsOptions, timeout?: number): Promise<{
|
|
1256
|
+
success: boolean;
|
|
1257
|
+
error?: string;
|
|
1258
|
+
dashboards?: Dashboard[];
|
|
1259
|
+
count?: number;
|
|
1155
1260
|
message?: string;
|
|
1156
1261
|
}>;
|
|
1157
1262
|
|
|
@@ -1164,51 +1269,89 @@ declare function getDashboard(client: SuperatomClient, dashboardId: string, time
|
|
|
1164
1269
|
* Report interface for response data
|
|
1165
1270
|
*/
|
|
1166
1271
|
interface Report {
|
|
1272
|
+
id?: number;
|
|
1273
|
+
reportId: string;
|
|
1274
|
+
projectId?: string;
|
|
1275
|
+
name?: string;
|
|
1276
|
+
description?: string;
|
|
1277
|
+
report?: DSLRendererProps$1;
|
|
1278
|
+
createdBy?: number;
|
|
1279
|
+
updatedBy?: number;
|
|
1280
|
+
createdAt?: string;
|
|
1281
|
+
updatedAt?: string;
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Create report options
|
|
1285
|
+
*/
|
|
1286
|
+
interface CreateReportOptions {
|
|
1167
1287
|
reportId: string;
|
|
1168
|
-
|
|
1288
|
+
projectId: string;
|
|
1289
|
+
name?: string;
|
|
1290
|
+
description?: string;
|
|
1291
|
+
createdBy?: number;
|
|
1292
|
+
report?: DSLRendererProps$1;
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Update report options
|
|
1296
|
+
*/
|
|
1297
|
+
interface UpdateReportOptions {
|
|
1298
|
+
id: number;
|
|
1299
|
+
name?: string;
|
|
1300
|
+
description?: string;
|
|
1301
|
+
createdBy?: number;
|
|
1302
|
+
updatedBy?: number;
|
|
1303
|
+
report?: DSLRendererProps$1;
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Query reports options
|
|
1307
|
+
*/
|
|
1308
|
+
interface QueryReportsOptions {
|
|
1309
|
+
filters?: ReportQueryFilters;
|
|
1310
|
+
limit?: number;
|
|
1311
|
+
sort?: 'ASC' | 'DESC';
|
|
1169
1312
|
}
|
|
1170
1313
|
/**
|
|
1171
1314
|
* Create a new report
|
|
1172
1315
|
* @param client - SuperatomClient instance
|
|
1173
|
-
* @param
|
|
1174
|
-
* @param report - Report DSL data
|
|
1316
|
+
* @param options - Report creation options
|
|
1175
1317
|
* @param timeout - Request timeout in milliseconds
|
|
1176
1318
|
* @returns Server response with success status
|
|
1177
1319
|
*/
|
|
1178
|
-
declare function createReport(client: SuperatomClient,
|
|
1320
|
+
declare function createReport(client: SuperatomClient, options: CreateReportOptions, timeout?: number): Promise<{
|
|
1179
1321
|
success: boolean;
|
|
1180
1322
|
error?: string;
|
|
1181
1323
|
message?: string;
|
|
1324
|
+
id?: number;
|
|
1182
1325
|
reportId?: string;
|
|
1183
|
-
report?: DSLRendererProps;
|
|
1326
|
+
report?: DSLRendererProps$1;
|
|
1184
1327
|
}>;
|
|
1185
1328
|
/**
|
|
1186
1329
|
* Update an existing report
|
|
1187
1330
|
* @param client - SuperatomClient instance
|
|
1188
|
-
* @param
|
|
1189
|
-
* @param report - Updated report DSL data
|
|
1331
|
+
* @param options - Report update options
|
|
1190
1332
|
* @param timeout - Request timeout in milliseconds
|
|
1191
1333
|
* @returns Server response with success status
|
|
1192
1334
|
*/
|
|
1193
|
-
declare function updateReport(client: SuperatomClient,
|
|
1335
|
+
declare function updateReport(client: SuperatomClient, options: UpdateReportOptions, timeout?: number): Promise<{
|
|
1194
1336
|
success: boolean;
|
|
1195
1337
|
error?: string;
|
|
1196
1338
|
message?: string;
|
|
1339
|
+
id?: number;
|
|
1197
1340
|
reportId?: string;
|
|
1198
|
-
report?: DSLRendererProps;
|
|
1341
|
+
report?: DSLRendererProps$1;
|
|
1199
1342
|
}>;
|
|
1200
1343
|
/**
|
|
1201
1344
|
* Delete a report
|
|
1202
1345
|
* @param client - SuperatomClient instance
|
|
1203
|
-
* @param
|
|
1346
|
+
* @param id - Report ID (numeric) to delete
|
|
1204
1347
|
* @param timeout - Request timeout in milliseconds
|
|
1205
1348
|
* @returns Server response with success status
|
|
1206
1349
|
*/
|
|
1207
|
-
declare function deleteReport(client: SuperatomClient,
|
|
1350
|
+
declare function deleteReport(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1208
1351
|
success: boolean;
|
|
1209
1352
|
error?: string;
|
|
1210
1353
|
message?: string;
|
|
1211
|
-
|
|
1354
|
+
id?: number;
|
|
1212
1355
|
}>;
|
|
1213
1356
|
/**
|
|
1214
1357
|
* Get all reports
|
|
@@ -1226,15 +1369,30 @@ declare function getAllReports(client: SuperatomClient, timeout?: number): Promi
|
|
|
1226
1369
|
/**
|
|
1227
1370
|
* Get a specific report by ID
|
|
1228
1371
|
* @param client - SuperatomClient instance
|
|
1229
|
-
* @param
|
|
1372
|
+
* @param id - Report ID (numeric) to retrieve
|
|
1230
1373
|
* @param timeout - Request timeout in milliseconds
|
|
1231
1374
|
* @returns Server response with report data
|
|
1232
1375
|
*/
|
|
1233
|
-
declare function getReport(client: SuperatomClient,
|
|
1376
|
+
declare function getReport(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1234
1377
|
success: boolean;
|
|
1235
1378
|
error?: string;
|
|
1379
|
+
id?: number;
|
|
1236
1380
|
reportId?: string;
|
|
1237
|
-
report?: DSLRendererProps;
|
|
1381
|
+
report?: DSLRendererProps$1;
|
|
1382
|
+
message?: string;
|
|
1383
|
+
}>;
|
|
1384
|
+
/**
|
|
1385
|
+
* Query reports with filters, limit, and sort
|
|
1386
|
+
* @param client - SuperatomClient instance
|
|
1387
|
+
* @param options - Query options with filters, limit, and sort
|
|
1388
|
+
* @param timeout - Request timeout in milliseconds
|
|
1389
|
+
* @returns Server response with list of reports
|
|
1390
|
+
*/
|
|
1391
|
+
declare function queryReports(client: SuperatomClient, options?: QueryReportsOptions, timeout?: number): Promise<{
|
|
1392
|
+
success: boolean;
|
|
1393
|
+
error?: string;
|
|
1394
|
+
reports?: Report[];
|
|
1395
|
+
count?: number;
|
|
1238
1396
|
message?: string;
|
|
1239
1397
|
}>;
|
|
1240
1398
|
|
|
@@ -1250,34 +1408,53 @@ interface Bookmark {
|
|
|
1250
1408
|
id?: number;
|
|
1251
1409
|
userId?: number;
|
|
1252
1410
|
threadId?: string;
|
|
1253
|
-
|
|
1411
|
+
name?: string;
|
|
1412
|
+
description?: string;
|
|
1413
|
+
uiblock: DBUIBlock;
|
|
1254
1414
|
created_at?: string;
|
|
1255
1415
|
updated_at?: string;
|
|
1256
1416
|
}
|
|
1417
|
+
/**
|
|
1418
|
+
* Create bookmark options
|
|
1419
|
+
*/
|
|
1420
|
+
interface CreateBookmarkOptions {
|
|
1421
|
+
userId: number;
|
|
1422
|
+
uiblock: DBUIBlock;
|
|
1423
|
+
threadId?: string;
|
|
1424
|
+
name?: string;
|
|
1425
|
+
description?: string;
|
|
1426
|
+
}
|
|
1257
1427
|
/**
|
|
1258
1428
|
* Create a new bookmark
|
|
1259
1429
|
* @param client - SuperatomClient instance
|
|
1260
|
-
* @param
|
|
1261
|
-
* @param uiblock - UIBlock JSON data
|
|
1262
|
-
* @param threadId - Thread ID (optional)
|
|
1430
|
+
* @param options - Bookmark creation options
|
|
1263
1431
|
* @param timeout - Request timeout in milliseconds
|
|
1264
1432
|
* @returns Server response with success status
|
|
1265
1433
|
*/
|
|
1266
|
-
declare function createBookmark(client: SuperatomClient,
|
|
1434
|
+
declare function createBookmark(client: SuperatomClient, options: CreateBookmarkOptions, timeout?: number): Promise<{
|
|
1267
1435
|
success: boolean;
|
|
1268
1436
|
error?: string;
|
|
1269
1437
|
message?: string;
|
|
1270
1438
|
data?: BookmarkData;
|
|
1271
1439
|
}>;
|
|
1440
|
+
/**
|
|
1441
|
+
* Update bookmark options
|
|
1442
|
+
*/
|
|
1443
|
+
interface UpdateBookmarkOptions {
|
|
1444
|
+
id: number;
|
|
1445
|
+
uiblock?: DBUIBlock;
|
|
1446
|
+
threadId?: string;
|
|
1447
|
+
name?: string;
|
|
1448
|
+
description?: string;
|
|
1449
|
+
}
|
|
1272
1450
|
/**
|
|
1273
1451
|
* Update an existing bookmark
|
|
1274
1452
|
* @param client - SuperatomClient instance
|
|
1275
|
-
* @param
|
|
1276
|
-
* @param uiblock - Updated UIBlock JSON data
|
|
1453
|
+
* @param options - Bookmark update options
|
|
1277
1454
|
* @param timeout - Request timeout in milliseconds
|
|
1278
1455
|
* @returns Server response with success status
|
|
1279
1456
|
*/
|
|
1280
|
-
declare function updateBookmark(client: SuperatomClient,
|
|
1457
|
+
declare function updateBookmark(client: SuperatomClient, options: UpdateBookmarkOptions, timeout?: number): Promise<{
|
|
1281
1458
|
success: boolean;
|
|
1282
1459
|
error?: string;
|
|
1283
1460
|
message?: string;
|
|
@@ -1361,6 +1538,177 @@ declare function getActions(client: SuperatomClient, options: {
|
|
|
1361
1538
|
error?: string;
|
|
1362
1539
|
}>;
|
|
1363
1540
|
|
|
1541
|
+
declare const DSLRendererPropsSchema: z.ZodObject<{
|
|
1542
|
+
dsl: z.ZodObject<{
|
|
1543
|
+
id: z.ZodString;
|
|
1544
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1545
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1546
|
+
states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1547
|
+
methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1548
|
+
fn: z.ZodString;
|
|
1549
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1550
|
+
}, z.core.$strip>>>;
|
|
1551
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1552
|
+
fn: z.ZodString;
|
|
1553
|
+
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1554
|
+
}, z.core.$strip>>>;
|
|
1555
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1556
|
+
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
1557
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
1558
|
+
graphql: z.ZodOptional<z.ZodString>;
|
|
1559
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1561
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1562
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1563
|
+
refetchPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1564
|
+
"cache-first": "cache-first";
|
|
1565
|
+
"network-only": "network-only";
|
|
1566
|
+
"cache-and-network": "cache-and-network";
|
|
1567
|
+
}>>;
|
|
1568
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1569
|
+
}, z.core.$strip>>;
|
|
1570
|
+
}, z.core.$strip>;
|
|
1571
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1572
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1573
|
+
}, z.core.$strip>;
|
|
1574
|
+
type DSLRendererProps = z.infer<typeof DSLRendererPropsSchema>;
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* UIs Service
|
|
1578
|
+
* Handles UIS message for UI CRUD operations
|
|
1579
|
+
*/
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* UI interface for response data
|
|
1583
|
+
*/
|
|
1584
|
+
interface UI {
|
|
1585
|
+
id?: number;
|
|
1586
|
+
uiId: string;
|
|
1587
|
+
projectId?: string;
|
|
1588
|
+
name?: string;
|
|
1589
|
+
description?: string;
|
|
1590
|
+
ui?: DSLRendererProps;
|
|
1591
|
+
createdBy?: number;
|
|
1592
|
+
updatedBy?: number;
|
|
1593
|
+
createdAt?: string;
|
|
1594
|
+
updatedAt?: string;
|
|
1595
|
+
}
|
|
1596
|
+
/**
|
|
1597
|
+
* Create UI options
|
|
1598
|
+
*/
|
|
1599
|
+
interface CreateUIOptions {
|
|
1600
|
+
uiId: string;
|
|
1601
|
+
projectId: string;
|
|
1602
|
+
name?: string;
|
|
1603
|
+
description?: string;
|
|
1604
|
+
createdBy?: number;
|
|
1605
|
+
ui?: DSLRendererProps;
|
|
1606
|
+
}
|
|
1607
|
+
/**
|
|
1608
|
+
* Update UI options
|
|
1609
|
+
*/
|
|
1610
|
+
interface UpdateUIOptions {
|
|
1611
|
+
id: number;
|
|
1612
|
+
name?: string;
|
|
1613
|
+
description?: string;
|
|
1614
|
+
createdBy?: number;
|
|
1615
|
+
updatedBy?: number;
|
|
1616
|
+
ui?: DSLRendererProps;
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
* Query UIs options
|
|
1620
|
+
*/
|
|
1621
|
+
interface QueryUIsOptions {
|
|
1622
|
+
filters?: UIQueryFilters;
|
|
1623
|
+
limit?: number;
|
|
1624
|
+
sort?: 'ASC' | 'DESC';
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Create a new UI
|
|
1628
|
+
* @param client - SuperatomClient instance
|
|
1629
|
+
* @param options - UI creation options
|
|
1630
|
+
* @param timeout - Request timeout in milliseconds
|
|
1631
|
+
* @returns Server response with success status
|
|
1632
|
+
*/
|
|
1633
|
+
declare function createUI(client: SuperatomClient, options: CreateUIOptions, timeout?: number): Promise<{
|
|
1634
|
+
success: boolean;
|
|
1635
|
+
error?: string;
|
|
1636
|
+
message?: string;
|
|
1637
|
+
id?: number;
|
|
1638
|
+
uiId?: string;
|
|
1639
|
+
ui?: DSLRendererProps;
|
|
1640
|
+
}>;
|
|
1641
|
+
/**
|
|
1642
|
+
* Update an existing UI
|
|
1643
|
+
* @param client - SuperatomClient instance
|
|
1644
|
+
* @param options - UI update options
|
|
1645
|
+
* @param timeout - Request timeout in milliseconds
|
|
1646
|
+
* @returns Server response with success status
|
|
1647
|
+
*/
|
|
1648
|
+
declare function updateUI(client: SuperatomClient, options: UpdateUIOptions, timeout?: number): Promise<{
|
|
1649
|
+
success: boolean;
|
|
1650
|
+
error?: string;
|
|
1651
|
+
message?: string;
|
|
1652
|
+
id?: number;
|
|
1653
|
+
uiId?: string;
|
|
1654
|
+
ui?: DSLRendererProps;
|
|
1655
|
+
}>;
|
|
1656
|
+
/**
|
|
1657
|
+
* Delete a UI
|
|
1658
|
+
* @param client - SuperatomClient instance
|
|
1659
|
+
* @param id - UI ID (numeric) to delete
|
|
1660
|
+
* @param timeout - Request timeout in milliseconds
|
|
1661
|
+
* @returns Server response with success status
|
|
1662
|
+
*/
|
|
1663
|
+
declare function deleteUI(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1664
|
+
success: boolean;
|
|
1665
|
+
error?: string;
|
|
1666
|
+
message?: string;
|
|
1667
|
+
id?: number;
|
|
1668
|
+
}>;
|
|
1669
|
+
/**
|
|
1670
|
+
* Get all UIs
|
|
1671
|
+
* @param client - SuperatomClient instance
|
|
1672
|
+
* @param timeout - Request timeout in milliseconds
|
|
1673
|
+
* @returns Server response with list of UIs
|
|
1674
|
+
*/
|
|
1675
|
+
declare function getAllUIs(client: SuperatomClient, timeout?: number): Promise<{
|
|
1676
|
+
success: boolean;
|
|
1677
|
+
error?: string;
|
|
1678
|
+
uis?: UI[];
|
|
1679
|
+
count?: number;
|
|
1680
|
+
message?: string;
|
|
1681
|
+
}>;
|
|
1682
|
+
/**
|
|
1683
|
+
* Get a specific UI by ID
|
|
1684
|
+
* @param client - SuperatomClient instance
|
|
1685
|
+
* @param id - UI ID (numeric) to retrieve
|
|
1686
|
+
* @param timeout - Request timeout in milliseconds
|
|
1687
|
+
* @returns Server response with UI data
|
|
1688
|
+
*/
|
|
1689
|
+
declare function getUI(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1690
|
+
success: boolean;
|
|
1691
|
+
error?: string;
|
|
1692
|
+
id?: number;
|
|
1693
|
+
uiId?: string;
|
|
1694
|
+
ui?: DSLRendererProps;
|
|
1695
|
+
message?: string;
|
|
1696
|
+
}>;
|
|
1697
|
+
/**
|
|
1698
|
+
* Query UIs with filters, limit, and sort
|
|
1699
|
+
* @param client - SuperatomClient instance
|
|
1700
|
+
* @param options - Query options with filters, limit, and sort
|
|
1701
|
+
* @param timeout - Request timeout in milliseconds
|
|
1702
|
+
* @returns Server response with list of UIs
|
|
1703
|
+
*/
|
|
1704
|
+
declare function queryUIs(client: SuperatomClient, options?: QueryUIsOptions, timeout?: number): Promise<{
|
|
1705
|
+
success: boolean;
|
|
1706
|
+
error?: string;
|
|
1707
|
+
uis?: UI[];
|
|
1708
|
+
count?: number;
|
|
1709
|
+
message?: string;
|
|
1710
|
+
}>;
|
|
1711
|
+
|
|
1364
1712
|
/**
|
|
1365
1713
|
* Services Index
|
|
1366
1714
|
* Re-exports all service functions for easy importing
|
|
@@ -1369,31 +1717,46 @@ declare function getActions(client: SuperatomClient, options: {
|
|
|
1369
1717
|
type index_Binding = Binding;
|
|
1370
1718
|
declare const index_BindingSchema: typeof BindingSchema;
|
|
1371
1719
|
type index_Bookmark = Bookmark;
|
|
1720
|
+
type index_CreateBookmarkOptions = CreateBookmarkOptions;
|
|
1721
|
+
type index_CreateDashboardOptions = CreateDashboardOptions;
|
|
1722
|
+
type index_CreateReportOptions = CreateReportOptions;
|
|
1723
|
+
type index_CreateUIOptions = CreateUIOptions;
|
|
1372
1724
|
type index_Dashboard = Dashboard;
|
|
1373
1725
|
type index_Expression = Expression;
|
|
1374
1726
|
declare const index_ExpressionSchema: typeof ExpressionSchema;
|
|
1375
1727
|
type index_ForDirective = ForDirective;
|
|
1376
1728
|
declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
|
|
1729
|
+
type index_QueryDashboardsOptions = QueryDashboardsOptions;
|
|
1730
|
+
type index_QueryReportsOptions = QueryReportsOptions;
|
|
1377
1731
|
type index_QuerySpec = QuerySpec;
|
|
1378
1732
|
declare const index_QuerySpecSchema: typeof QuerySpecSchema;
|
|
1733
|
+
type index_QueryUIsOptions = QueryUIsOptions;
|
|
1379
1734
|
type index_Report = Report;
|
|
1735
|
+
type index_UI = UI;
|
|
1380
1736
|
type index_UIComponent = UIComponent;
|
|
1381
1737
|
declare const index_UIComponentSchema: typeof UIComponentSchema;
|
|
1382
1738
|
type index_UIElement = UIElement;
|
|
1383
1739
|
declare const index_UIElementSchema: typeof UIElementSchema;
|
|
1740
|
+
type index_UpdateBookmarkOptions = UpdateBookmarkOptions;
|
|
1741
|
+
type index_UpdateDashboardOptions = UpdateDashboardOptions;
|
|
1742
|
+
type index_UpdateReportOptions = UpdateReportOptions;
|
|
1743
|
+
type index_UpdateUIOptions = UpdateUIOptions;
|
|
1384
1744
|
type index_User = User;
|
|
1385
1745
|
declare const index_createBookmark: typeof createBookmark;
|
|
1386
1746
|
declare const index_createDashboard: typeof createDashboard;
|
|
1387
1747
|
declare const index_createReport: typeof createReport;
|
|
1748
|
+
declare const index_createUI: typeof createUI;
|
|
1388
1749
|
declare const index_createUser: typeof createUser;
|
|
1389
1750
|
declare const index_deleteBookmark: typeof deleteBookmark;
|
|
1390
1751
|
declare const index_deleteDashboard: typeof deleteDashboard;
|
|
1391
1752
|
declare const index_deleteReport: typeof deleteReport;
|
|
1753
|
+
declare const index_deleteUI: typeof deleteUI;
|
|
1392
1754
|
declare const index_deleteUser: typeof deleteUser;
|
|
1393
1755
|
declare const index_getActions: typeof getActions;
|
|
1394
1756
|
declare const index_getAllBookmarks: typeof getAllBookmarks;
|
|
1395
1757
|
declare const index_getAllDashboards: typeof getAllDashboards;
|
|
1396
1758
|
declare const index_getAllReports: typeof getAllReports;
|
|
1759
|
+
declare const index_getAllUIs: typeof getAllUIs;
|
|
1397
1760
|
declare const index_getAllUsers: typeof getAllUsers;
|
|
1398
1761
|
declare const index_getBookmark: typeof getBookmark;
|
|
1399
1762
|
declare const index_getBookmarksByThread: typeof getBookmarksByThread;
|
|
@@ -1401,7 +1764,11 @@ declare const index_getBookmarksByUser: typeof getBookmarksByUser;
|
|
|
1401
1764
|
declare const index_getComponentSuggestions: typeof getComponentSuggestions;
|
|
1402
1765
|
declare const index_getDashboard: typeof getDashboard;
|
|
1403
1766
|
declare const index_getReport: typeof getReport;
|
|
1767
|
+
declare const index_getUI: typeof getUI;
|
|
1404
1768
|
declare const index_getUser: typeof getUser;
|
|
1769
|
+
declare const index_queryDashboards: typeof queryDashboards;
|
|
1770
|
+
declare const index_queryReports: typeof queryReports;
|
|
1771
|
+
declare const index_queryUIs: typeof queryUIs;
|
|
1405
1772
|
declare const index_requestBundle: typeof requestBundle;
|
|
1406
1773
|
declare const index_requestData: typeof requestData;
|
|
1407
1774
|
declare const index_sendAuthLoginRequest: typeof sendAuthLoginRequest;
|
|
@@ -1412,9 +1779,10 @@ declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSugge
|
|
|
1412
1779
|
declare const index_updateBookmark: typeof updateBookmark;
|
|
1413
1780
|
declare const index_updateDashboard: typeof updateDashboard;
|
|
1414
1781
|
declare const index_updateReport: typeof updateReport;
|
|
1782
|
+
declare const index_updateUI: typeof updateUI;
|
|
1415
1783
|
declare const index_updateUser: typeof updateUser;
|
|
1416
1784
|
declare namespace index {
|
|
1417
|
-
export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type DSLRendererProps$
|
|
1785
|
+
export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getBookmark as getBookmark, index_getBookmarksByThread as getBookmarksByThread, index_getBookmarksByUser as getBookmarksByUser, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getReport as getReport, index_getUI as getUI, index_getUser as getUser, index_queryDashboards as queryDashboards, index_queryReports as queryReports, index_queryUIs as queryUIs, index_requestBundle as requestBundle, index_requestData as requestData, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
|
|
1418
1786
|
}
|
|
1419
1787
|
|
|
1420
1788
|
type MessageHandler = (message: Message) => void;
|
|
@@ -1672,33 +2040,34 @@ declare class SuperatomClient {
|
|
|
1672
2040
|
* Create a new dashboard
|
|
1673
2041
|
* Delegates to dashboards service
|
|
1674
2042
|
*/
|
|
1675
|
-
createDashboard(
|
|
2043
|
+
createDashboard(options: CreateDashboardOptions, timeout?: number): Promise<{
|
|
1676
2044
|
success: boolean;
|
|
1677
2045
|
error?: string;
|
|
1678
2046
|
message?: string;
|
|
1679
2047
|
dashboardId?: string;
|
|
1680
|
-
dashboard?: DSLRendererProps$
|
|
2048
|
+
dashboard?: DSLRendererProps$2;
|
|
1681
2049
|
}>;
|
|
1682
2050
|
/**
|
|
1683
2051
|
* Update an existing dashboard
|
|
1684
2052
|
* Delegates to dashboards service
|
|
1685
2053
|
*/
|
|
1686
|
-
updateDashboard(
|
|
2054
|
+
updateDashboard(options: UpdateDashboardOptions, timeout?: number): Promise<{
|
|
1687
2055
|
success: boolean;
|
|
1688
2056
|
error?: string;
|
|
1689
2057
|
message?: string;
|
|
2058
|
+
id?: number;
|
|
1690
2059
|
dashboardId?: string;
|
|
1691
|
-
dashboard?: DSLRendererProps$
|
|
2060
|
+
dashboard?: DSLRendererProps$2;
|
|
1692
2061
|
}>;
|
|
1693
2062
|
/**
|
|
1694
2063
|
* Delete a dashboard
|
|
1695
2064
|
* Delegates to dashboards service
|
|
1696
2065
|
*/
|
|
1697
|
-
deleteDashboard(
|
|
2066
|
+
deleteDashboard(id: number, timeout?: number): Promise<{
|
|
1698
2067
|
success: boolean;
|
|
1699
2068
|
error?: string;
|
|
1700
2069
|
message?: string;
|
|
1701
|
-
|
|
2070
|
+
id?: number;
|
|
1702
2071
|
}>;
|
|
1703
2072
|
/**
|
|
1704
2073
|
* Get all dashboards
|
|
@@ -1715,18 +2084,30 @@ declare class SuperatomClient {
|
|
|
1715
2084
|
* Get a specific dashboard by ID
|
|
1716
2085
|
* Delegates to dashboards service
|
|
1717
2086
|
*/
|
|
1718
|
-
getDashboard(
|
|
2087
|
+
getDashboard(id: number, timeout?: number): Promise<{
|
|
1719
2088
|
success: boolean;
|
|
1720
2089
|
error?: string;
|
|
2090
|
+
id?: number;
|
|
1721
2091
|
dashboardId?: string;
|
|
1722
|
-
dashboard?: DSLRendererProps$
|
|
2092
|
+
dashboard?: DSLRendererProps$2;
|
|
2093
|
+
message?: string;
|
|
2094
|
+
}>;
|
|
2095
|
+
/**
|
|
2096
|
+
* Query dashboards with filters
|
|
2097
|
+
* Delegates to dashboards service
|
|
2098
|
+
*/
|
|
2099
|
+
queryDashboards(options?: QueryDashboardsOptions, timeout?: number): Promise<{
|
|
2100
|
+
success: boolean;
|
|
2101
|
+
error?: string;
|
|
2102
|
+
dashboards?: Dashboard[];
|
|
2103
|
+
count?: number;
|
|
1723
2104
|
message?: string;
|
|
1724
2105
|
}>;
|
|
1725
2106
|
/**
|
|
1726
2107
|
* Create a new bookmark
|
|
1727
2108
|
* Delegates to bookmarks service
|
|
1728
2109
|
*/
|
|
1729
|
-
createBookmark(
|
|
2110
|
+
createBookmark(options: CreateBookmarkOptions, timeout?: number): Promise<{
|
|
1730
2111
|
success: boolean;
|
|
1731
2112
|
error?: string;
|
|
1732
2113
|
message?: string;
|
|
@@ -1736,7 +2117,7 @@ declare class SuperatomClient {
|
|
|
1736
2117
|
* Update an existing bookmark
|
|
1737
2118
|
* Delegates to bookmarks service
|
|
1738
2119
|
*/
|
|
1739
|
-
updateBookmark(
|
|
2120
|
+
updateBookmark(options: UpdateBookmarkOptions, timeout?: number): Promise<{
|
|
1740
2121
|
success: boolean;
|
|
1741
2122
|
error?: string;
|
|
1742
2123
|
message?: string;
|
|
@@ -1799,33 +2180,34 @@ declare class SuperatomClient {
|
|
|
1799
2180
|
* Create a new report
|
|
1800
2181
|
* Delegates to reports service
|
|
1801
2182
|
*/
|
|
1802
|
-
createReport(
|
|
2183
|
+
createReport(options: CreateReportOptions, timeout?: number): Promise<{
|
|
1803
2184
|
success: boolean;
|
|
1804
2185
|
error?: string;
|
|
1805
2186
|
message?: string;
|
|
1806
2187
|
reportId?: string;
|
|
1807
|
-
report?: DSLRendererProps;
|
|
2188
|
+
report?: DSLRendererProps$1;
|
|
1808
2189
|
}>;
|
|
1809
2190
|
/**
|
|
1810
2191
|
* Update an existing report
|
|
1811
2192
|
* Delegates to reports service
|
|
1812
2193
|
*/
|
|
1813
|
-
updateReport(
|
|
2194
|
+
updateReport(options: UpdateReportOptions, timeout?: number): Promise<{
|
|
1814
2195
|
success: boolean;
|
|
1815
2196
|
error?: string;
|
|
1816
2197
|
message?: string;
|
|
2198
|
+
id?: number;
|
|
1817
2199
|
reportId?: string;
|
|
1818
|
-
report?: DSLRendererProps;
|
|
2200
|
+
report?: DSLRendererProps$1;
|
|
1819
2201
|
}>;
|
|
1820
2202
|
/**
|
|
1821
2203
|
* Delete a report
|
|
1822
2204
|
* Delegates to reports service
|
|
1823
2205
|
*/
|
|
1824
|
-
deleteReport(
|
|
2206
|
+
deleteReport(id: number, timeout?: number): Promise<{
|
|
1825
2207
|
success: boolean;
|
|
1826
2208
|
error?: string;
|
|
1827
2209
|
message?: string;
|
|
1828
|
-
|
|
2210
|
+
id?: number;
|
|
1829
2211
|
}>;
|
|
1830
2212
|
/**
|
|
1831
2213
|
* Get all reports
|
|
@@ -1842,11 +2224,91 @@ declare class SuperatomClient {
|
|
|
1842
2224
|
* Get a specific report by ID
|
|
1843
2225
|
* Delegates to reports service
|
|
1844
2226
|
*/
|
|
1845
|
-
getReport(
|
|
2227
|
+
getReport(id: number, timeout?: number): Promise<{
|
|
1846
2228
|
success: boolean;
|
|
1847
2229
|
error?: string;
|
|
2230
|
+
id?: number;
|
|
1848
2231
|
reportId?: string;
|
|
1849
|
-
report?: DSLRendererProps;
|
|
2232
|
+
report?: DSLRendererProps$1;
|
|
2233
|
+
message?: string;
|
|
2234
|
+
}>;
|
|
2235
|
+
/**
|
|
2236
|
+
* Query reports with filters
|
|
2237
|
+
* Delegates to reports service
|
|
2238
|
+
*/
|
|
2239
|
+
queryReports(options?: QueryReportsOptions, timeout?: number): Promise<{
|
|
2240
|
+
success: boolean;
|
|
2241
|
+
error?: string;
|
|
2242
|
+
reports?: Report[];
|
|
2243
|
+
count?: number;
|
|
2244
|
+
message?: string;
|
|
2245
|
+
}>;
|
|
2246
|
+
/**
|
|
2247
|
+
* Create a new UI
|
|
2248
|
+
* Delegates to uis service
|
|
2249
|
+
*/
|
|
2250
|
+
createUI(options: CreateUIOptions, timeout?: number): Promise<{
|
|
2251
|
+
success: boolean;
|
|
2252
|
+
error?: string;
|
|
2253
|
+
message?: string;
|
|
2254
|
+
id?: number;
|
|
2255
|
+
uiId?: string;
|
|
2256
|
+
ui?: DSLRendererProps$2;
|
|
2257
|
+
}>;
|
|
2258
|
+
/**
|
|
2259
|
+
* Update an existing UI
|
|
2260
|
+
* Delegates to uis service
|
|
2261
|
+
*/
|
|
2262
|
+
updateUI(options: UpdateUIOptions, timeout?: number): Promise<{
|
|
2263
|
+
success: boolean;
|
|
2264
|
+
error?: string;
|
|
2265
|
+
message?: string;
|
|
2266
|
+
id?: number;
|
|
2267
|
+
uiId?: string;
|
|
2268
|
+
ui?: DSLRendererProps$2;
|
|
2269
|
+
}>;
|
|
2270
|
+
/**
|
|
2271
|
+
* Delete a UI
|
|
2272
|
+
* Delegates to uis service
|
|
2273
|
+
*/
|
|
2274
|
+
deleteUI(id: number, timeout?: number): Promise<{
|
|
2275
|
+
success: boolean;
|
|
2276
|
+
error?: string;
|
|
2277
|
+
message?: string;
|
|
2278
|
+
id?: number;
|
|
2279
|
+
}>;
|
|
2280
|
+
/**
|
|
2281
|
+
* Get all UIs
|
|
2282
|
+
* Delegates to uis service
|
|
2283
|
+
*/
|
|
2284
|
+
getAllUIs(timeout?: number): Promise<{
|
|
2285
|
+
success: boolean;
|
|
2286
|
+
error?: string;
|
|
2287
|
+
uis?: UI[];
|
|
2288
|
+
count?: number;
|
|
2289
|
+
message?: string;
|
|
2290
|
+
}>;
|
|
2291
|
+
/**
|
|
2292
|
+
* Get a specific UI by ID
|
|
2293
|
+
* Delegates to uis service
|
|
2294
|
+
*/
|
|
2295
|
+
getUI(id: number, timeout?: number): Promise<{
|
|
2296
|
+
success: boolean;
|
|
2297
|
+
error?: string;
|
|
2298
|
+
id?: number;
|
|
2299
|
+
uiId?: string;
|
|
2300
|
+
ui?: DSLRendererProps$2;
|
|
2301
|
+
message?: string;
|
|
2302
|
+
}>;
|
|
2303
|
+
/**
|
|
2304
|
+
* Query UIs with filters
|
|
2305
|
+
* Delegates to uis service
|
|
2306
|
+
*/
|
|
2307
|
+
queryUIs(options?: QueryUIsOptions, timeout?: number): Promise<{
|
|
2308
|
+
success: boolean;
|
|
2309
|
+
error?: string;
|
|
2310
|
+
uis?: UI[];
|
|
2311
|
+
count?: number;
|
|
1850
2312
|
message?: string;
|
|
1851
2313
|
}>;
|
|
1852
2314
|
/**
|