@superatomai/sdk-web 0.0.10 → 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 +541 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +579 -60
- package/dist/index.d.ts +579 -60
- package/dist/index.js +541 -56
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -481,11 +481,28 @@ zod.z.object({
|
|
|
481
481
|
to: MessageParticipantSchema.optional(),
|
|
482
482
|
payload: UsersResponsePayloadSchema
|
|
483
483
|
});
|
|
484
|
+
var DashboardQueryFiltersSchema = zod.z.object({
|
|
485
|
+
dashboardId: zod.z.string().optional(),
|
|
486
|
+
projectId: zod.z.string().optional(),
|
|
487
|
+
createdBy: zod.z.number().optional(),
|
|
488
|
+
updatedBy: zod.z.number().optional(),
|
|
489
|
+
name: zod.z.string().optional()
|
|
490
|
+
});
|
|
484
491
|
var DashboardsRequestPayloadSchema = zod.z.object({
|
|
485
|
-
operation: zod.z.enum(["create", "update", "delete", "getAll", "getOne"]),
|
|
492
|
+
operation: zod.z.enum(["create", "update", "delete", "getAll", "getOne", "query"]),
|
|
486
493
|
data: zod.z.object({
|
|
494
|
+
id: zod.z.number().optional(),
|
|
487
495
|
dashboardId: zod.z.string().optional(),
|
|
488
|
-
|
|
496
|
+
projectId: zod.z.string().optional(),
|
|
497
|
+
name: zod.z.string().optional(),
|
|
498
|
+
description: zod.z.string().optional(),
|
|
499
|
+
createdBy: zod.z.number().optional(),
|
|
500
|
+
updatedBy: zod.z.number().optional(),
|
|
501
|
+
dashboard: DSLRendererPropsSchema.optional(),
|
|
502
|
+
// Query operation fields
|
|
503
|
+
filters: DashboardQueryFiltersSchema.optional(),
|
|
504
|
+
limit: zod.z.number().optional(),
|
|
505
|
+
sort: zod.z.enum(["ASC", "DESC"]).optional()
|
|
489
506
|
}).optional()
|
|
490
507
|
});
|
|
491
508
|
var DashboardsRequestMessageSchema = zod.z.object({
|
|
@@ -516,11 +533,28 @@ zod.z.object({
|
|
|
516
533
|
to: MessageParticipantSchema.optional(),
|
|
517
534
|
payload: DashboardsResponsePayloadSchema
|
|
518
535
|
});
|
|
536
|
+
var ReportQueryFiltersSchema = zod.z.object({
|
|
537
|
+
reportId: zod.z.string().optional(),
|
|
538
|
+
projectId: zod.z.string().optional(),
|
|
539
|
+
createdBy: zod.z.number().optional(),
|
|
540
|
+
updatedBy: zod.z.number().optional(),
|
|
541
|
+
name: zod.z.string().optional()
|
|
542
|
+
});
|
|
519
543
|
var ReportsRequestPayloadSchema = zod.z.object({
|
|
520
|
-
operation: zod.z.enum(["create", "update", "delete", "getAll", "getOne"]),
|
|
544
|
+
operation: zod.z.enum(["create", "update", "delete", "getAll", "getOne", "query"]),
|
|
521
545
|
data: zod.z.object({
|
|
546
|
+
id: zod.z.number().optional(),
|
|
522
547
|
reportId: zod.z.string().optional(),
|
|
523
|
-
|
|
548
|
+
projectId: zod.z.string().optional(),
|
|
549
|
+
name: zod.z.string().optional(),
|
|
550
|
+
description: zod.z.string().optional(),
|
|
551
|
+
createdBy: zod.z.number().optional(),
|
|
552
|
+
updatedBy: zod.z.number().optional(),
|
|
553
|
+
report: DSLRendererPropsSchema2.optional(),
|
|
554
|
+
// Query operation fields
|
|
555
|
+
filters: ReportQueryFiltersSchema.optional(),
|
|
556
|
+
limit: zod.z.number().optional(),
|
|
557
|
+
sort: zod.z.enum(["ASC", "DESC"]).optional()
|
|
524
558
|
}).optional()
|
|
525
559
|
});
|
|
526
560
|
var ReportsRequestMessageSchema = zod.z.object({
|
|
@@ -551,18 +585,79 @@ zod.z.object({
|
|
|
551
585
|
to: MessageParticipantSchema.optional(),
|
|
552
586
|
payload: ReportsResponsePayloadSchema
|
|
553
587
|
});
|
|
588
|
+
var UIQueryFiltersSchema = zod.z.object({
|
|
589
|
+
uiId: zod.z.string().optional(),
|
|
590
|
+
projectId: zod.z.string().optional(),
|
|
591
|
+
createdBy: zod.z.number().optional(),
|
|
592
|
+
updatedBy: zod.z.number().optional(),
|
|
593
|
+
name: zod.z.string().optional()
|
|
594
|
+
});
|
|
595
|
+
var UIsRequestPayloadSchema = zod.z.object({
|
|
596
|
+
operation: zod.z.enum(["create", "update", "delete", "getAll", "getOne", "query"]),
|
|
597
|
+
data: zod.z.object({
|
|
598
|
+
id: zod.z.number().optional(),
|
|
599
|
+
uiId: zod.z.string().optional(),
|
|
600
|
+
projectId: zod.z.string().optional(),
|
|
601
|
+
name: zod.z.string().optional(),
|
|
602
|
+
description: zod.z.string().optional(),
|
|
603
|
+
createdBy: zod.z.number().optional(),
|
|
604
|
+
updatedBy: zod.z.number().optional(),
|
|
605
|
+
ui: DSLRendererPropsSchema.optional(),
|
|
606
|
+
// Query operation fields
|
|
607
|
+
filters: UIQueryFiltersSchema.optional(),
|
|
608
|
+
limit: zod.z.number().optional(),
|
|
609
|
+
sort: zod.z.enum(["ASC", "DESC"]).optional()
|
|
610
|
+
}).optional()
|
|
611
|
+
});
|
|
612
|
+
var UIsRequestMessageSchema = zod.z.object({
|
|
613
|
+
id: zod.z.string(),
|
|
614
|
+
type: zod.z.literal("UIS"),
|
|
615
|
+
from: MessageParticipantSchema,
|
|
616
|
+
to: MessageParticipantSchema.optional(),
|
|
617
|
+
payload: UIsRequestPayloadSchema
|
|
618
|
+
});
|
|
619
|
+
var UIsResponsePayloadSchema = zod.z.object({
|
|
620
|
+
success: zod.z.boolean(),
|
|
621
|
+
error: zod.z.string().optional(),
|
|
622
|
+
data: zod.z.object({
|
|
623
|
+
uiId: zod.z.union([zod.z.string(), zod.z.number()]).optional(),
|
|
624
|
+
ui: DSLRendererPropsSchema.optional(),
|
|
625
|
+
uis: zod.z.array(zod.z.object({
|
|
626
|
+
uiId: zod.z.string(),
|
|
627
|
+
ui: DSLRendererPropsSchema.optional()
|
|
628
|
+
})).optional(),
|
|
629
|
+
count: zod.z.number().optional(),
|
|
630
|
+
message: zod.z.string().optional()
|
|
631
|
+
}).optional()
|
|
632
|
+
});
|
|
633
|
+
zod.z.object({
|
|
634
|
+
id: zod.z.string(),
|
|
635
|
+
type: zod.z.literal("UIS_RES"),
|
|
636
|
+
from: MessageParticipantSchema,
|
|
637
|
+
to: MessageParticipantSchema.optional(),
|
|
638
|
+
payload: UIsResponsePayloadSchema
|
|
639
|
+
});
|
|
640
|
+
var DBUIBlockSchema = zod.z.object({
|
|
641
|
+
id: zod.z.string(),
|
|
642
|
+
component: zod.z.record(zod.z.string(), zod.z.any()).nullable(),
|
|
643
|
+
analysis: zod.z.string().nullable(),
|
|
644
|
+
user_prompt: zod.z.string()
|
|
645
|
+
});
|
|
554
646
|
var BookmarkDataSchema = zod.z.object({
|
|
555
647
|
id: zod.z.number().optional(),
|
|
556
|
-
uiblock:
|
|
557
|
-
// JSON object
|
|
648
|
+
uiblock: DBUIBlockSchema,
|
|
558
649
|
created_at: zod.z.string().optional(),
|
|
559
650
|
updated_at: zod.z.string().optional()
|
|
560
651
|
});
|
|
561
652
|
var BookmarksRequestPayloadSchema = zod.z.object({
|
|
562
|
-
operation: zod.z.enum(["create", "update", "delete", "getAll", "getOne"]),
|
|
653
|
+
operation: zod.z.enum(["create", "update", "delete", "getAll", "getOne", "getByUser", "getByThread"]),
|
|
563
654
|
data: zod.z.object({
|
|
564
655
|
id: zod.z.number().optional(),
|
|
565
|
-
|
|
656
|
+
userId: zod.z.number().optional(),
|
|
657
|
+
threadId: zod.z.string().optional(),
|
|
658
|
+
name: zod.z.string().optional(),
|
|
659
|
+
description: zod.z.string().optional(),
|
|
660
|
+
uiblock: DBUIBlockSchema.optional()
|
|
566
661
|
}).optional()
|
|
567
662
|
});
|
|
568
663
|
var BookmarksRequestMessageSchema = zod.z.object({
|
|
@@ -614,21 +709,30 @@ __export(services_exports, {
|
|
|
614
709
|
createBookmark: () => createBookmark,
|
|
615
710
|
createDashboard: () => createDashboard,
|
|
616
711
|
createReport: () => createReport,
|
|
712
|
+
createUI: () => createUI,
|
|
617
713
|
createUser: () => createUser,
|
|
618
714
|
deleteBookmark: () => deleteBookmark,
|
|
619
715
|
deleteDashboard: () => deleteDashboard,
|
|
620
716
|
deleteReport: () => deleteReport,
|
|
717
|
+
deleteUI: () => deleteUI,
|
|
621
718
|
deleteUser: () => deleteUser,
|
|
622
719
|
getActions: () => getActions,
|
|
623
720
|
getAllBookmarks: () => getAllBookmarks,
|
|
624
721
|
getAllDashboards: () => getAllDashboards,
|
|
625
722
|
getAllReports: () => getAllReports,
|
|
723
|
+
getAllUIs: () => getAllUIs,
|
|
626
724
|
getAllUsers: () => getAllUsers,
|
|
627
725
|
getBookmark: () => getBookmark,
|
|
726
|
+
getBookmarksByThread: () => getBookmarksByThread,
|
|
727
|
+
getBookmarksByUser: () => getBookmarksByUser,
|
|
628
728
|
getComponentSuggestions: () => getComponentSuggestions,
|
|
629
729
|
getDashboard: () => getDashboard,
|
|
630
730
|
getReport: () => getReport,
|
|
731
|
+
getUI: () => getUI,
|
|
631
732
|
getUser: () => getUser,
|
|
733
|
+
queryDashboards: () => queryDashboards,
|
|
734
|
+
queryReports: () => queryReports,
|
|
735
|
+
queryUIs: () => queryUIs,
|
|
632
736
|
requestBundle: () => requestBundle,
|
|
633
737
|
requestData: () => requestData,
|
|
634
738
|
sendAuthLoginRequest: () => sendAuthLoginRequest,
|
|
@@ -639,6 +743,7 @@ __export(services_exports, {
|
|
|
639
743
|
updateBookmark: () => updateBookmark,
|
|
640
744
|
updateDashboard: () => updateDashboard,
|
|
641
745
|
updateReport: () => updateReport,
|
|
746
|
+
updateUI: () => updateUI,
|
|
642
747
|
updateUser: () => updateUser
|
|
643
748
|
});
|
|
644
749
|
|
|
@@ -983,7 +1088,8 @@ async function getUser(client, username, timeout) {
|
|
|
983
1088
|
}
|
|
984
1089
|
|
|
985
1090
|
// src/services/dashboards/index.ts
|
|
986
|
-
async function createDashboard(client,
|
|
1091
|
+
async function createDashboard(client, options, timeout) {
|
|
1092
|
+
const { dashboardId, projectId, name, description, createdBy, dashboard } = options;
|
|
987
1093
|
const messageId = `dashboards_create_${Date.now()}`;
|
|
988
1094
|
const message = DashboardsRequestMessageSchema.parse({
|
|
989
1095
|
id: messageId,
|
|
@@ -994,6 +1100,10 @@ async function createDashboard(client, dashboardId, dashboard, timeout) {
|
|
|
994
1100
|
operation: "create",
|
|
995
1101
|
data: {
|
|
996
1102
|
dashboardId,
|
|
1103
|
+
projectId,
|
|
1104
|
+
name,
|
|
1105
|
+
description,
|
|
1106
|
+
createdBy,
|
|
997
1107
|
dashboard
|
|
998
1108
|
}
|
|
999
1109
|
}
|
|
@@ -1004,11 +1114,13 @@ async function createDashboard(client, dashboardId, dashboard, timeout) {
|
|
|
1004
1114
|
success: payload.success,
|
|
1005
1115
|
error: payload.error,
|
|
1006
1116
|
message: payload.data?.message,
|
|
1117
|
+
id: payload.data?.id,
|
|
1007
1118
|
dashboardId: payload.data?.dashboardId,
|
|
1008
1119
|
dashboard: payload.data?.dashboard
|
|
1009
1120
|
};
|
|
1010
1121
|
}
|
|
1011
|
-
async function updateDashboard(client,
|
|
1122
|
+
async function updateDashboard(client, options, timeout) {
|
|
1123
|
+
const { id, name, description, createdBy, updatedBy, dashboard } = options;
|
|
1012
1124
|
const messageId = `dashboards_update_${Date.now()}`;
|
|
1013
1125
|
const message = DashboardsRequestMessageSchema.parse({
|
|
1014
1126
|
id: messageId,
|
|
@@ -1018,7 +1130,11 @@ async function updateDashboard(client, dashboardId, dashboard, timeout) {
|
|
|
1018
1130
|
payload: {
|
|
1019
1131
|
operation: "update",
|
|
1020
1132
|
data: {
|
|
1021
|
-
|
|
1133
|
+
id,
|
|
1134
|
+
name,
|
|
1135
|
+
description,
|
|
1136
|
+
createdBy,
|
|
1137
|
+
updatedBy,
|
|
1022
1138
|
dashboard
|
|
1023
1139
|
}
|
|
1024
1140
|
}
|
|
@@ -1029,11 +1145,12 @@ async function updateDashboard(client, dashboardId, dashboard, timeout) {
|
|
|
1029
1145
|
success: payload.success,
|
|
1030
1146
|
error: payload.error,
|
|
1031
1147
|
message: payload.data?.message,
|
|
1148
|
+
id: payload.data?.id,
|
|
1032
1149
|
dashboardId: payload.data?.dashboardId,
|
|
1033
1150
|
dashboard: payload.data?.dashboard
|
|
1034
1151
|
};
|
|
1035
1152
|
}
|
|
1036
|
-
async function deleteDashboard(client,
|
|
1153
|
+
async function deleteDashboard(client, id, timeout) {
|
|
1037
1154
|
const messageId = `dashboards_delete_${Date.now()}`;
|
|
1038
1155
|
const message = DashboardsRequestMessageSchema.parse({
|
|
1039
1156
|
id: messageId,
|
|
@@ -1043,7 +1160,7 @@ async function deleteDashboard(client, dashboardId, timeout) {
|
|
|
1043
1160
|
payload: {
|
|
1044
1161
|
operation: "delete",
|
|
1045
1162
|
data: {
|
|
1046
|
-
|
|
1163
|
+
id
|
|
1047
1164
|
}
|
|
1048
1165
|
}
|
|
1049
1166
|
});
|
|
@@ -1053,7 +1170,7 @@ async function deleteDashboard(client, dashboardId, timeout) {
|
|
|
1053
1170
|
success: payload.success,
|
|
1054
1171
|
error: payload.error,
|
|
1055
1172
|
message: payload.data?.message,
|
|
1056
|
-
|
|
1173
|
+
id: payload.data?.id
|
|
1057
1174
|
};
|
|
1058
1175
|
}
|
|
1059
1176
|
async function getAllDashboards(client, timeout) {
|
|
@@ -1077,7 +1194,7 @@ async function getAllDashboards(client, timeout) {
|
|
|
1077
1194
|
message: payload.data?.message
|
|
1078
1195
|
};
|
|
1079
1196
|
}
|
|
1080
|
-
async function getDashboard(client,
|
|
1197
|
+
async function getDashboard(client, id, timeout) {
|
|
1081
1198
|
const messageId = `dashboards_getone_${Date.now()}`;
|
|
1082
1199
|
const message = DashboardsRequestMessageSchema.parse({
|
|
1083
1200
|
id: messageId,
|
|
@@ -1087,7 +1204,7 @@ async function getDashboard(client, dashboardId, timeout) {
|
|
|
1087
1204
|
payload: {
|
|
1088
1205
|
operation: "getOne",
|
|
1089
1206
|
data: {
|
|
1090
|
-
|
|
1207
|
+
id
|
|
1091
1208
|
}
|
|
1092
1209
|
}
|
|
1093
1210
|
});
|
|
@@ -1096,14 +1213,43 @@ async function getDashboard(client, dashboardId, timeout) {
|
|
|
1096
1213
|
return {
|
|
1097
1214
|
success: payload.success,
|
|
1098
1215
|
error: payload.error,
|
|
1216
|
+
id: payload.data?.id,
|
|
1099
1217
|
dashboardId: payload.data?.dashboardId,
|
|
1100
1218
|
dashboard: payload.data?.dashboard,
|
|
1101
1219
|
message: payload.data?.message
|
|
1102
1220
|
};
|
|
1103
1221
|
}
|
|
1222
|
+
async function queryDashboards(client, options = {}, timeout) {
|
|
1223
|
+
const { filters, limit, sort } = options;
|
|
1224
|
+
const messageId = `dashboards_query_${Date.now()}`;
|
|
1225
|
+
const message = DashboardsRequestMessageSchema.parse({
|
|
1226
|
+
id: messageId,
|
|
1227
|
+
type: "DASHBOARDS",
|
|
1228
|
+
from: { type: client.type },
|
|
1229
|
+
to: { type: "data-agent" },
|
|
1230
|
+
payload: {
|
|
1231
|
+
operation: "query",
|
|
1232
|
+
data: {
|
|
1233
|
+
filters,
|
|
1234
|
+
limit,
|
|
1235
|
+
sort
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
});
|
|
1239
|
+
const response = await client.sendWithResponse(message, timeout);
|
|
1240
|
+
const payload = response.payload;
|
|
1241
|
+
return {
|
|
1242
|
+
success: payload.success,
|
|
1243
|
+
error: payload.error,
|
|
1244
|
+
dashboards: payload.data?.dashboards,
|
|
1245
|
+
count: payload.data?.count,
|
|
1246
|
+
message: payload.data?.message
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1104
1249
|
|
|
1105
1250
|
// src/services/reports/index.ts
|
|
1106
|
-
async function createReport(client,
|
|
1251
|
+
async function createReport(client, options, timeout) {
|
|
1252
|
+
const { reportId, projectId, name, description, createdBy, report } = options;
|
|
1107
1253
|
const messageId = `reports_create_${Date.now()}`;
|
|
1108
1254
|
const message = ReportsRequestMessageSchema.parse({
|
|
1109
1255
|
id: messageId,
|
|
@@ -1114,6 +1260,10 @@ async function createReport(client, reportId, report, timeout) {
|
|
|
1114
1260
|
operation: "create",
|
|
1115
1261
|
data: {
|
|
1116
1262
|
reportId,
|
|
1263
|
+
projectId,
|
|
1264
|
+
name,
|
|
1265
|
+
description,
|
|
1266
|
+
createdBy,
|
|
1117
1267
|
report
|
|
1118
1268
|
}
|
|
1119
1269
|
}
|
|
@@ -1124,11 +1274,13 @@ async function createReport(client, reportId, report, timeout) {
|
|
|
1124
1274
|
success: payload.success,
|
|
1125
1275
|
error: payload.error,
|
|
1126
1276
|
message: payload.data?.message,
|
|
1277
|
+
id: payload.data?.id,
|
|
1127
1278
|
reportId: payload.data?.reportId,
|
|
1128
1279
|
report: payload.data?.report
|
|
1129
1280
|
};
|
|
1130
1281
|
}
|
|
1131
|
-
async function updateReport(client,
|
|
1282
|
+
async function updateReport(client, options, timeout) {
|
|
1283
|
+
const { id, name, description, createdBy, updatedBy, report } = options;
|
|
1132
1284
|
const messageId = `reports_update_${Date.now()}`;
|
|
1133
1285
|
const message = ReportsRequestMessageSchema.parse({
|
|
1134
1286
|
id: messageId,
|
|
@@ -1138,7 +1290,11 @@ async function updateReport(client, reportId, report, timeout) {
|
|
|
1138
1290
|
payload: {
|
|
1139
1291
|
operation: "update",
|
|
1140
1292
|
data: {
|
|
1141
|
-
|
|
1293
|
+
id,
|
|
1294
|
+
name,
|
|
1295
|
+
description,
|
|
1296
|
+
createdBy,
|
|
1297
|
+
updatedBy,
|
|
1142
1298
|
report
|
|
1143
1299
|
}
|
|
1144
1300
|
}
|
|
@@ -1149,11 +1305,12 @@ async function updateReport(client, reportId, report, timeout) {
|
|
|
1149
1305
|
success: payload.success,
|
|
1150
1306
|
error: payload.error,
|
|
1151
1307
|
message: payload.data?.message,
|
|
1308
|
+
id: payload.data?.id,
|
|
1152
1309
|
reportId: payload.data?.reportId,
|
|
1153
1310
|
report: payload.data?.report
|
|
1154
1311
|
};
|
|
1155
1312
|
}
|
|
1156
|
-
async function deleteReport(client,
|
|
1313
|
+
async function deleteReport(client, id, timeout) {
|
|
1157
1314
|
const messageId = `reports_delete_${Date.now()}`;
|
|
1158
1315
|
const message = ReportsRequestMessageSchema.parse({
|
|
1159
1316
|
id: messageId,
|
|
@@ -1163,7 +1320,7 @@ async function deleteReport(client, reportId, timeout) {
|
|
|
1163
1320
|
payload: {
|
|
1164
1321
|
operation: "delete",
|
|
1165
1322
|
data: {
|
|
1166
|
-
|
|
1323
|
+
id
|
|
1167
1324
|
}
|
|
1168
1325
|
}
|
|
1169
1326
|
});
|
|
@@ -1173,7 +1330,7 @@ async function deleteReport(client, reportId, timeout) {
|
|
|
1173
1330
|
success: payload.success,
|
|
1174
1331
|
error: payload.error,
|
|
1175
1332
|
message: payload.data?.message,
|
|
1176
|
-
|
|
1333
|
+
id: payload.data?.id
|
|
1177
1334
|
};
|
|
1178
1335
|
}
|
|
1179
1336
|
async function getAllReports(client, timeout) {
|
|
@@ -1197,7 +1354,7 @@ async function getAllReports(client, timeout) {
|
|
|
1197
1354
|
message: payload.data?.message
|
|
1198
1355
|
};
|
|
1199
1356
|
}
|
|
1200
|
-
async function getReport(client,
|
|
1357
|
+
async function getReport(client, id, timeout) {
|
|
1201
1358
|
const messageId = `reports_getone_${Date.now()}`;
|
|
1202
1359
|
const message = ReportsRequestMessageSchema.parse({
|
|
1203
1360
|
id: messageId,
|
|
@@ -1207,7 +1364,7 @@ async function getReport(client, reportId, timeout) {
|
|
|
1207
1364
|
payload: {
|
|
1208
1365
|
operation: "getOne",
|
|
1209
1366
|
data: {
|
|
1210
|
-
|
|
1367
|
+
id
|
|
1211
1368
|
}
|
|
1212
1369
|
}
|
|
1213
1370
|
});
|
|
@@ -1216,14 +1373,43 @@ async function getReport(client, reportId, timeout) {
|
|
|
1216
1373
|
return {
|
|
1217
1374
|
success: payload.success,
|
|
1218
1375
|
error: payload.error,
|
|
1376
|
+
id: payload.data?.id,
|
|
1219
1377
|
reportId: payload.data?.reportId,
|
|
1220
1378
|
report: payload.data?.report,
|
|
1221
1379
|
message: payload.data?.message
|
|
1222
1380
|
};
|
|
1223
1381
|
}
|
|
1382
|
+
async function queryReports(client, options = {}, timeout) {
|
|
1383
|
+
const { filters, limit, sort } = options;
|
|
1384
|
+
const messageId = `reports_query_${Date.now()}`;
|
|
1385
|
+
const message = ReportsRequestMessageSchema.parse({
|
|
1386
|
+
id: messageId,
|
|
1387
|
+
type: "REPORTS",
|
|
1388
|
+
from: { type: client.type },
|
|
1389
|
+
to: { type: "data-agent" },
|
|
1390
|
+
payload: {
|
|
1391
|
+
operation: "query",
|
|
1392
|
+
data: {
|
|
1393
|
+
filters,
|
|
1394
|
+
limit,
|
|
1395
|
+
sort
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
});
|
|
1399
|
+
const response = await client.sendWithResponse(message, timeout);
|
|
1400
|
+
const payload = response.payload;
|
|
1401
|
+
return {
|
|
1402
|
+
success: payload.success,
|
|
1403
|
+
error: payload.error,
|
|
1404
|
+
reports: payload.data?.reports,
|
|
1405
|
+
count: payload.data?.count,
|
|
1406
|
+
message: payload.data?.message
|
|
1407
|
+
};
|
|
1408
|
+
}
|
|
1224
1409
|
|
|
1225
1410
|
// src/services/bookmarks/index.ts
|
|
1226
|
-
async function createBookmark(client,
|
|
1411
|
+
async function createBookmark(client, options, timeout) {
|
|
1412
|
+
const { userId, uiblock, threadId, name, description } = options;
|
|
1227
1413
|
const messageId = `bookmarks_create_${Date.now()}`;
|
|
1228
1414
|
const message = BookmarksRequestMessageSchema.parse({
|
|
1229
1415
|
id: messageId,
|
|
@@ -1233,6 +1419,10 @@ async function createBookmark(client, uiblock, timeout) {
|
|
|
1233
1419
|
payload: {
|
|
1234
1420
|
operation: "create",
|
|
1235
1421
|
data: {
|
|
1422
|
+
userId,
|
|
1423
|
+
threadId,
|
|
1424
|
+
name,
|
|
1425
|
+
description,
|
|
1236
1426
|
uiblock
|
|
1237
1427
|
}
|
|
1238
1428
|
}
|
|
@@ -1246,7 +1436,8 @@ async function createBookmark(client, uiblock, timeout) {
|
|
|
1246
1436
|
data: Array.isArray(payload.data) ? payload.data[0] : payload.data
|
|
1247
1437
|
};
|
|
1248
1438
|
}
|
|
1249
|
-
async function updateBookmark(client,
|
|
1439
|
+
async function updateBookmark(client, options, timeout) {
|
|
1440
|
+
const { id, uiblock, threadId, name, description } = options;
|
|
1250
1441
|
const messageId = `bookmarks_update_${Date.now()}`;
|
|
1251
1442
|
const message = BookmarksRequestMessageSchema.parse({
|
|
1252
1443
|
id: messageId,
|
|
@@ -1257,6 +1448,9 @@ async function updateBookmark(client, id, uiblock, timeout) {
|
|
|
1257
1448
|
operation: "update",
|
|
1258
1449
|
data: {
|
|
1259
1450
|
id,
|
|
1451
|
+
threadId,
|
|
1452
|
+
name,
|
|
1453
|
+
description,
|
|
1260
1454
|
uiblock
|
|
1261
1455
|
}
|
|
1262
1456
|
}
|
|
@@ -1337,6 +1531,55 @@ async function getBookmark(client, id, timeout) {
|
|
|
1337
1531
|
message: payload.message
|
|
1338
1532
|
};
|
|
1339
1533
|
}
|
|
1534
|
+
async function getBookmarksByUser(client, userId, threadId, timeout) {
|
|
1535
|
+
const messageId = `bookmarks_getbyuser_${Date.now()}`;
|
|
1536
|
+
const message = BookmarksRequestMessageSchema.parse({
|
|
1537
|
+
id: messageId,
|
|
1538
|
+
type: "BOOKMARKS",
|
|
1539
|
+
from: { type: client.type },
|
|
1540
|
+
to: { type: "data-agent" },
|
|
1541
|
+
payload: {
|
|
1542
|
+
operation: "getByUser",
|
|
1543
|
+
data: {
|
|
1544
|
+
userId,
|
|
1545
|
+
threadId
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
});
|
|
1549
|
+
const response = await client.sendWithResponse(message, timeout);
|
|
1550
|
+
const payload = response.payload;
|
|
1551
|
+
return {
|
|
1552
|
+
success: payload.success,
|
|
1553
|
+
error: payload.error,
|
|
1554
|
+
data: Array.isArray(payload.data) ? payload.data : payload.data ? [payload.data] : [],
|
|
1555
|
+
count: payload.count,
|
|
1556
|
+
message: payload.message
|
|
1557
|
+
};
|
|
1558
|
+
}
|
|
1559
|
+
async function getBookmarksByThread(client, threadId, timeout) {
|
|
1560
|
+
const messageId = `bookmarks_getbythread_${Date.now()}`;
|
|
1561
|
+
const message = BookmarksRequestMessageSchema.parse({
|
|
1562
|
+
id: messageId,
|
|
1563
|
+
type: "BOOKMARKS",
|
|
1564
|
+
from: { type: client.type },
|
|
1565
|
+
to: { type: "data-agent" },
|
|
1566
|
+
payload: {
|
|
1567
|
+
operation: "getByThread",
|
|
1568
|
+
data: {
|
|
1569
|
+
threadId
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
});
|
|
1573
|
+
const response = await client.sendWithResponse(message, timeout);
|
|
1574
|
+
const payload = response.payload;
|
|
1575
|
+
return {
|
|
1576
|
+
success: payload.success,
|
|
1577
|
+
error: payload.error,
|
|
1578
|
+
data: Array.isArray(payload.data) ? payload.data : payload.data ? [payload.data] : [],
|
|
1579
|
+
count: payload.count,
|
|
1580
|
+
message: payload.message
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1340
1583
|
|
|
1341
1584
|
// src/services/actions.ts
|
|
1342
1585
|
async function getActions(client, options) {
|
|
@@ -1359,6 +1602,166 @@ async function getActions(client, options) {
|
|
|
1359
1602
|
};
|
|
1360
1603
|
}
|
|
1361
1604
|
|
|
1605
|
+
// src/services/uis/index.ts
|
|
1606
|
+
async function createUI(client, options, timeout) {
|
|
1607
|
+
const { uiId, projectId, name, description, createdBy, ui } = options;
|
|
1608
|
+
const messageId = `uis_create_${Date.now()}`;
|
|
1609
|
+
const message = UIsRequestMessageSchema.parse({
|
|
1610
|
+
id: messageId,
|
|
1611
|
+
type: "UIS",
|
|
1612
|
+
from: { type: client.type },
|
|
1613
|
+
to: { type: "data-agent" },
|
|
1614
|
+
payload: {
|
|
1615
|
+
operation: "create",
|
|
1616
|
+
data: {
|
|
1617
|
+
uiId,
|
|
1618
|
+
projectId,
|
|
1619
|
+
name,
|
|
1620
|
+
description,
|
|
1621
|
+
createdBy,
|
|
1622
|
+
ui
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
});
|
|
1626
|
+
const response = await client.sendWithResponse(message, timeout);
|
|
1627
|
+
const payload = response.payload;
|
|
1628
|
+
return {
|
|
1629
|
+
success: payload.success,
|
|
1630
|
+
error: payload.error,
|
|
1631
|
+
message: payload.data?.message,
|
|
1632
|
+
id: payload.data?.id,
|
|
1633
|
+
uiId: payload.data?.uiId,
|
|
1634
|
+
ui: payload.data?.ui
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
async function updateUI(client, options, timeout) {
|
|
1638
|
+
const { id, name, description, createdBy, updatedBy, ui } = options;
|
|
1639
|
+
const messageId = `uis_update_${Date.now()}`;
|
|
1640
|
+
const message = UIsRequestMessageSchema.parse({
|
|
1641
|
+
id: messageId,
|
|
1642
|
+
type: "UIS",
|
|
1643
|
+
from: { type: client.type },
|
|
1644
|
+
to: { type: "data-agent" },
|
|
1645
|
+
payload: {
|
|
1646
|
+
operation: "update",
|
|
1647
|
+
data: {
|
|
1648
|
+
id,
|
|
1649
|
+
name,
|
|
1650
|
+
description,
|
|
1651
|
+
createdBy,
|
|
1652
|
+
updatedBy,
|
|
1653
|
+
ui
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
});
|
|
1657
|
+
const response = await client.sendWithResponse(message, timeout);
|
|
1658
|
+
const payload = response.payload;
|
|
1659
|
+
return {
|
|
1660
|
+
success: payload.success,
|
|
1661
|
+
error: payload.error,
|
|
1662
|
+
message: payload.data?.message,
|
|
1663
|
+
id: payload.data?.id,
|
|
1664
|
+
uiId: payload.data?.uiId,
|
|
1665
|
+
ui: payload.data?.ui
|
|
1666
|
+
};
|
|
1667
|
+
}
|
|
1668
|
+
async function deleteUI(client, id, timeout) {
|
|
1669
|
+
const messageId = `uis_delete_${Date.now()}`;
|
|
1670
|
+
const message = UIsRequestMessageSchema.parse({
|
|
1671
|
+
id: messageId,
|
|
1672
|
+
type: "UIS",
|
|
1673
|
+
from: { type: client.type },
|
|
1674
|
+
to: { type: "data-agent" },
|
|
1675
|
+
payload: {
|
|
1676
|
+
operation: "delete",
|
|
1677
|
+
data: {
|
|
1678
|
+
id
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
});
|
|
1682
|
+
const response = await client.sendWithResponse(message, timeout);
|
|
1683
|
+
const payload = response.payload;
|
|
1684
|
+
return {
|
|
1685
|
+
success: payload.success,
|
|
1686
|
+
error: payload.error,
|
|
1687
|
+
message: payload.data?.message,
|
|
1688
|
+
id: payload.data?.id
|
|
1689
|
+
};
|
|
1690
|
+
}
|
|
1691
|
+
async function getAllUIs(client, timeout) {
|
|
1692
|
+
const messageId = `uis_getall_${Date.now()}`;
|
|
1693
|
+
const message = UIsRequestMessageSchema.parse({
|
|
1694
|
+
id: messageId,
|
|
1695
|
+
type: "UIS",
|
|
1696
|
+
from: { type: client.type },
|
|
1697
|
+
to: { type: "data-agent" },
|
|
1698
|
+
payload: {
|
|
1699
|
+
operation: "getAll"
|
|
1700
|
+
}
|
|
1701
|
+
});
|
|
1702
|
+
const response = await client.sendWithResponse(message, timeout);
|
|
1703
|
+
const payload = response.payload;
|
|
1704
|
+
return {
|
|
1705
|
+
success: payload.success,
|
|
1706
|
+
error: payload.error,
|
|
1707
|
+
uis: payload.data?.uis,
|
|
1708
|
+
count: payload.data?.count,
|
|
1709
|
+
message: payload.data?.message
|
|
1710
|
+
};
|
|
1711
|
+
}
|
|
1712
|
+
async function getUI(client, id, timeout) {
|
|
1713
|
+
const messageId = `uis_getone_${Date.now()}`;
|
|
1714
|
+
const message = UIsRequestMessageSchema.parse({
|
|
1715
|
+
id: messageId,
|
|
1716
|
+
type: "UIS",
|
|
1717
|
+
from: { type: client.type },
|
|
1718
|
+
to: { type: "data-agent" },
|
|
1719
|
+
payload: {
|
|
1720
|
+
operation: "getOne",
|
|
1721
|
+
data: {
|
|
1722
|
+
id
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
});
|
|
1726
|
+
const response = await client.sendWithResponse(message, timeout);
|
|
1727
|
+
const payload = response.payload;
|
|
1728
|
+
return {
|
|
1729
|
+
success: payload.success,
|
|
1730
|
+
error: payload.error,
|
|
1731
|
+
id: payload.data?.id,
|
|
1732
|
+
uiId: payload.data?.uiId,
|
|
1733
|
+
ui: payload.data?.ui,
|
|
1734
|
+
message: payload.data?.message
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
async function queryUIs(client, options = {}, timeout) {
|
|
1738
|
+
const { filters, limit, sort } = options;
|
|
1739
|
+
const messageId = `uis_query_${Date.now()}`;
|
|
1740
|
+
const message = UIsRequestMessageSchema.parse({
|
|
1741
|
+
id: messageId,
|
|
1742
|
+
type: "UIS",
|
|
1743
|
+
from: { type: client.type },
|
|
1744
|
+
to: { type: "data-agent" },
|
|
1745
|
+
payload: {
|
|
1746
|
+
operation: "query",
|
|
1747
|
+
data: {
|
|
1748
|
+
filters,
|
|
1749
|
+
limit,
|
|
1750
|
+
sort
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
});
|
|
1754
|
+
const response = await client.sendWithResponse(message, timeout);
|
|
1755
|
+
const payload = response.payload;
|
|
1756
|
+
return {
|
|
1757
|
+
success: payload.success,
|
|
1758
|
+
error: payload.error,
|
|
1759
|
+
uis: payload.data?.uis,
|
|
1760
|
+
count: payload.data?.count,
|
|
1761
|
+
message: payload.data?.message
|
|
1762
|
+
};
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1362
1765
|
// src/client.ts
|
|
1363
1766
|
var SuperatomClient = class {
|
|
1364
1767
|
constructor(config) {
|
|
@@ -1742,25 +2145,25 @@ var SuperatomClient = class {
|
|
|
1742
2145
|
* Create a new dashboard
|
|
1743
2146
|
* Delegates to dashboards service
|
|
1744
2147
|
*/
|
|
1745
|
-
async createDashboard(
|
|
1746
|
-
this.log("info", "Creating dashboard:", dashboardId);
|
|
1747
|
-
return createDashboard(this,
|
|
2148
|
+
async createDashboard(options, timeout) {
|
|
2149
|
+
this.log("info", "Creating dashboard:", options.dashboardId);
|
|
2150
|
+
return createDashboard(this, options, timeout);
|
|
1748
2151
|
}
|
|
1749
2152
|
/**
|
|
1750
2153
|
* Update an existing dashboard
|
|
1751
2154
|
* Delegates to dashboards service
|
|
1752
2155
|
*/
|
|
1753
|
-
async updateDashboard(
|
|
1754
|
-
this.log("info", "Updating dashboard:",
|
|
1755
|
-
return updateDashboard(this,
|
|
2156
|
+
async updateDashboard(options, timeout) {
|
|
2157
|
+
this.log("info", "Updating dashboard:", options.id);
|
|
2158
|
+
return updateDashboard(this, options, timeout);
|
|
1756
2159
|
}
|
|
1757
2160
|
/**
|
|
1758
2161
|
* Delete a dashboard
|
|
1759
2162
|
* Delegates to dashboards service
|
|
1760
2163
|
*/
|
|
1761
|
-
async deleteDashboard(
|
|
1762
|
-
this.log("info", "Deleting dashboard:",
|
|
1763
|
-
return deleteDashboard(this,
|
|
2164
|
+
async deleteDashboard(id, timeout) {
|
|
2165
|
+
this.log("info", "Deleting dashboard:", id);
|
|
2166
|
+
return deleteDashboard(this, id, timeout);
|
|
1764
2167
|
}
|
|
1765
2168
|
/**
|
|
1766
2169
|
* Get all dashboards
|
|
@@ -1774,9 +2177,17 @@ var SuperatomClient = class {
|
|
|
1774
2177
|
* Get a specific dashboard by ID
|
|
1775
2178
|
* Delegates to dashboards service
|
|
1776
2179
|
*/
|
|
1777
|
-
async getDashboard(
|
|
1778
|
-
this.log("info", "Fetching dashboard:",
|
|
1779
|
-
return getDashboard(this,
|
|
2180
|
+
async getDashboard(id, timeout) {
|
|
2181
|
+
this.log("info", "Fetching dashboard:", id);
|
|
2182
|
+
return getDashboard(this, id, timeout);
|
|
2183
|
+
}
|
|
2184
|
+
/**
|
|
2185
|
+
* Query dashboards with filters
|
|
2186
|
+
* Delegates to dashboards service
|
|
2187
|
+
*/
|
|
2188
|
+
async queryDashboards(options, timeout) {
|
|
2189
|
+
this.log("info", "Querying dashboards with filters:", options?.filters);
|
|
2190
|
+
return queryDashboards(this, options, timeout);
|
|
1780
2191
|
}
|
|
1781
2192
|
// ==================== Bookmark Management Methods ====================
|
|
1782
2193
|
// These methods delegate to bookmark service for bookmark CRUD operations
|
|
@@ -1784,17 +2195,17 @@ var SuperatomClient = class {
|
|
|
1784
2195
|
* Create a new bookmark
|
|
1785
2196
|
* Delegates to bookmarks service
|
|
1786
2197
|
*/
|
|
1787
|
-
async createBookmark(
|
|
1788
|
-
this.log("info", "Creating bookmark");
|
|
1789
|
-
return createBookmark(this,
|
|
2198
|
+
async createBookmark(options, timeout) {
|
|
2199
|
+
this.log("info", "Creating bookmark for user:", options.userId);
|
|
2200
|
+
return createBookmark(this, options, timeout);
|
|
1790
2201
|
}
|
|
1791
2202
|
/**
|
|
1792
2203
|
* Update an existing bookmark
|
|
1793
2204
|
* Delegates to bookmarks service
|
|
1794
2205
|
*/
|
|
1795
|
-
async updateBookmark(
|
|
1796
|
-
this.log("info", "Updating bookmark:", id);
|
|
1797
|
-
return updateBookmark(this,
|
|
2206
|
+
async updateBookmark(options, timeout) {
|
|
2207
|
+
this.log("info", "Updating bookmark:", options.id);
|
|
2208
|
+
return updateBookmark(this, options, timeout);
|
|
1798
2209
|
}
|
|
1799
2210
|
/**
|
|
1800
2211
|
* Delete a bookmark
|
|
@@ -1820,31 +2231,47 @@ var SuperatomClient = class {
|
|
|
1820
2231
|
this.log("info", "Fetching bookmark:", id);
|
|
1821
2232
|
return getBookmark(this, id, timeout);
|
|
1822
2233
|
}
|
|
2234
|
+
/**
|
|
2235
|
+
* Get bookmarks by user ID (and optionally by thread ID)
|
|
2236
|
+
* Delegates to bookmarks service
|
|
2237
|
+
*/
|
|
2238
|
+
async getBookmarksByUser(userId, threadId, timeout) {
|
|
2239
|
+
this.log("info", "Fetching bookmarks for user:", userId);
|
|
2240
|
+
return getBookmarksByUser(this, userId, threadId, timeout);
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
* Get bookmarks by thread ID
|
|
2244
|
+
* Delegates to bookmarks service
|
|
2245
|
+
*/
|
|
2246
|
+
async getBookmarksByThread(threadId, timeout) {
|
|
2247
|
+
this.log("info", "Fetching bookmarks for thread:", threadId);
|
|
2248
|
+
return getBookmarksByThread(this, threadId, timeout);
|
|
2249
|
+
}
|
|
1823
2250
|
// ==================== Report Management Methods ====================
|
|
1824
2251
|
// These methods delegate to report service for admin report CRUD operations
|
|
1825
2252
|
/**
|
|
1826
2253
|
* Create a new report
|
|
1827
2254
|
* Delegates to reports service
|
|
1828
2255
|
*/
|
|
1829
|
-
async createReport(
|
|
1830
|
-
this.log("info", "Creating report:", reportId);
|
|
1831
|
-
return createReport(this,
|
|
2256
|
+
async createReport(options, timeout) {
|
|
2257
|
+
this.log("info", "Creating report:", options.reportId);
|
|
2258
|
+
return createReport(this, options, timeout);
|
|
1832
2259
|
}
|
|
1833
2260
|
/**
|
|
1834
2261
|
* Update an existing report
|
|
1835
2262
|
* Delegates to reports service
|
|
1836
2263
|
*/
|
|
1837
|
-
async updateReport(
|
|
1838
|
-
this.log("info", "Updating report:",
|
|
1839
|
-
return updateReport(this,
|
|
2264
|
+
async updateReport(options, timeout) {
|
|
2265
|
+
this.log("info", "Updating report:", options.id);
|
|
2266
|
+
return updateReport(this, options, timeout);
|
|
1840
2267
|
}
|
|
1841
2268
|
/**
|
|
1842
2269
|
* Delete a report
|
|
1843
2270
|
* Delegates to reports service
|
|
1844
2271
|
*/
|
|
1845
|
-
async deleteReport(
|
|
1846
|
-
this.log("info", "Deleting report:",
|
|
1847
|
-
return deleteReport(this,
|
|
2272
|
+
async deleteReport(id, timeout) {
|
|
2273
|
+
this.log("info", "Deleting report:", id);
|
|
2274
|
+
return deleteReport(this, id, timeout);
|
|
1848
2275
|
}
|
|
1849
2276
|
/**
|
|
1850
2277
|
* Get all reports
|
|
@@ -1858,9 +2285,67 @@ var SuperatomClient = class {
|
|
|
1858
2285
|
* Get a specific report by ID
|
|
1859
2286
|
* Delegates to reports service
|
|
1860
2287
|
*/
|
|
1861
|
-
async getReport(
|
|
1862
|
-
this.log("info", "Fetching report:",
|
|
1863
|
-
return getReport(this,
|
|
2288
|
+
async getReport(id, timeout) {
|
|
2289
|
+
this.log("info", "Fetching report:", id);
|
|
2290
|
+
return getReport(this, id, timeout);
|
|
2291
|
+
}
|
|
2292
|
+
/**
|
|
2293
|
+
* Query reports with filters
|
|
2294
|
+
* Delegates to reports service
|
|
2295
|
+
*/
|
|
2296
|
+
async queryReports(options, timeout) {
|
|
2297
|
+
this.log("info", "Querying reports with filters:", options?.filters);
|
|
2298
|
+
return queryReports(this, options, timeout);
|
|
2299
|
+
}
|
|
2300
|
+
// ==================== UI Management Methods ====================
|
|
2301
|
+
// These methods delegate to uis service for admin UI CRUD operations
|
|
2302
|
+
/**
|
|
2303
|
+
* Create a new UI
|
|
2304
|
+
* Delegates to uis service
|
|
2305
|
+
*/
|
|
2306
|
+
async createUI(options, timeout) {
|
|
2307
|
+
this.log("info", "Creating UI:", options.uiId);
|
|
2308
|
+
return createUI(this, options, timeout);
|
|
2309
|
+
}
|
|
2310
|
+
/**
|
|
2311
|
+
* Update an existing UI
|
|
2312
|
+
* Delegates to uis service
|
|
2313
|
+
*/
|
|
2314
|
+
async updateUI(options, timeout) {
|
|
2315
|
+
this.log("info", "Updating UI:", options.id);
|
|
2316
|
+
return updateUI(this, options, timeout);
|
|
2317
|
+
}
|
|
2318
|
+
/**
|
|
2319
|
+
* Delete a UI
|
|
2320
|
+
* Delegates to uis service
|
|
2321
|
+
*/
|
|
2322
|
+
async deleteUI(id, timeout) {
|
|
2323
|
+
this.log("info", "Deleting UI:", id);
|
|
2324
|
+
return deleteUI(this, id, timeout);
|
|
2325
|
+
}
|
|
2326
|
+
/**
|
|
2327
|
+
* Get all UIs
|
|
2328
|
+
* Delegates to uis service
|
|
2329
|
+
*/
|
|
2330
|
+
async getAllUIs(timeout) {
|
|
2331
|
+
this.log("info", "Fetching all UIs");
|
|
2332
|
+
return getAllUIs(this, timeout);
|
|
2333
|
+
}
|
|
2334
|
+
/**
|
|
2335
|
+
* Get a specific UI by ID
|
|
2336
|
+
* Delegates to uis service
|
|
2337
|
+
*/
|
|
2338
|
+
async getUI(id, timeout) {
|
|
2339
|
+
this.log("info", "Fetching UI:", id);
|
|
2340
|
+
return getUI(this, id, timeout);
|
|
2341
|
+
}
|
|
2342
|
+
/**
|
|
2343
|
+
* Query UIs with filters
|
|
2344
|
+
* Delegates to uis service
|
|
2345
|
+
*/
|
|
2346
|
+
async queryUIs(options, timeout) {
|
|
2347
|
+
this.log("info", "Querying UIs with filters:", options?.filters);
|
|
2348
|
+
return queryUIs(this, options, timeout);
|
|
1864
2349
|
}
|
|
1865
2350
|
/**
|
|
1866
2351
|
* Internal logging
|