@superatomai/sdk-node 0.0.25 → 0.0.26
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.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +34 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -395,6 +395,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
395
395
|
password: z.ZodString;
|
|
396
396
|
fullname: z.ZodOptional<z.ZodString>;
|
|
397
397
|
role: z.ZodOptional<z.ZodString>;
|
|
398
|
+
userInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
398
399
|
wsIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
399
400
|
}, "strip", z.ZodTypeAny, {
|
|
400
401
|
username: string;
|
|
@@ -402,6 +403,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
402
403
|
email?: string | undefined;
|
|
403
404
|
fullname?: string | undefined;
|
|
404
405
|
role?: string | undefined;
|
|
406
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
405
407
|
wsIds?: string[] | undefined;
|
|
406
408
|
}, {
|
|
407
409
|
username: string;
|
|
@@ -409,6 +411,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
409
411
|
email?: string | undefined;
|
|
410
412
|
fullname?: string | undefined;
|
|
411
413
|
role?: string | undefined;
|
|
414
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
412
415
|
wsIds?: string[] | undefined;
|
|
413
416
|
}>;
|
|
414
417
|
type User = z.infer<typeof UserSchema>;
|
|
@@ -419,6 +422,7 @@ declare const UsersDataSchema: z.ZodObject<{
|
|
|
419
422
|
password: z.ZodString;
|
|
420
423
|
fullname: z.ZodOptional<z.ZodString>;
|
|
421
424
|
role: z.ZodOptional<z.ZodString>;
|
|
425
|
+
userInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
422
426
|
wsIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
423
427
|
}, "strip", z.ZodTypeAny, {
|
|
424
428
|
username: string;
|
|
@@ -426,6 +430,7 @@ declare const UsersDataSchema: z.ZodObject<{
|
|
|
426
430
|
email?: string | undefined;
|
|
427
431
|
fullname?: string | undefined;
|
|
428
432
|
role?: string | undefined;
|
|
433
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
429
434
|
wsIds?: string[] | undefined;
|
|
430
435
|
}, {
|
|
431
436
|
username: string;
|
|
@@ -433,6 +438,7 @@ declare const UsersDataSchema: z.ZodObject<{
|
|
|
433
438
|
email?: string | undefined;
|
|
434
439
|
fullname?: string | undefined;
|
|
435
440
|
role?: string | undefined;
|
|
441
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
436
442
|
wsIds?: string[] | undefined;
|
|
437
443
|
}>, "many">;
|
|
438
444
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -442,6 +448,7 @@ declare const UsersDataSchema: z.ZodObject<{
|
|
|
442
448
|
email?: string | undefined;
|
|
443
449
|
fullname?: string | undefined;
|
|
444
450
|
role?: string | undefined;
|
|
451
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
445
452
|
wsIds?: string[] | undefined;
|
|
446
453
|
}[];
|
|
447
454
|
}, {
|
|
@@ -451,6 +458,7 @@ declare const UsersDataSchema: z.ZodObject<{
|
|
|
451
458
|
email?: string | undefined;
|
|
452
459
|
fullname?: string | undefined;
|
|
453
460
|
role?: string | undefined;
|
|
461
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
454
462
|
wsIds?: string[] | undefined;
|
|
455
463
|
}[];
|
|
456
464
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -395,6 +395,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
395
395
|
password: z.ZodString;
|
|
396
396
|
fullname: z.ZodOptional<z.ZodString>;
|
|
397
397
|
role: z.ZodOptional<z.ZodString>;
|
|
398
|
+
userInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
398
399
|
wsIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
399
400
|
}, "strip", z.ZodTypeAny, {
|
|
400
401
|
username: string;
|
|
@@ -402,6 +403,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
402
403
|
email?: string | undefined;
|
|
403
404
|
fullname?: string | undefined;
|
|
404
405
|
role?: string | undefined;
|
|
406
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
405
407
|
wsIds?: string[] | undefined;
|
|
406
408
|
}, {
|
|
407
409
|
username: string;
|
|
@@ -409,6 +411,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
409
411
|
email?: string | undefined;
|
|
410
412
|
fullname?: string | undefined;
|
|
411
413
|
role?: string | undefined;
|
|
414
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
412
415
|
wsIds?: string[] | undefined;
|
|
413
416
|
}>;
|
|
414
417
|
type User = z.infer<typeof UserSchema>;
|
|
@@ -419,6 +422,7 @@ declare const UsersDataSchema: z.ZodObject<{
|
|
|
419
422
|
password: z.ZodString;
|
|
420
423
|
fullname: z.ZodOptional<z.ZodString>;
|
|
421
424
|
role: z.ZodOptional<z.ZodString>;
|
|
425
|
+
userInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
422
426
|
wsIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
423
427
|
}, "strip", z.ZodTypeAny, {
|
|
424
428
|
username: string;
|
|
@@ -426,6 +430,7 @@ declare const UsersDataSchema: z.ZodObject<{
|
|
|
426
430
|
email?: string | undefined;
|
|
427
431
|
fullname?: string | undefined;
|
|
428
432
|
role?: string | undefined;
|
|
433
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
429
434
|
wsIds?: string[] | undefined;
|
|
430
435
|
}, {
|
|
431
436
|
username: string;
|
|
@@ -433,6 +438,7 @@ declare const UsersDataSchema: z.ZodObject<{
|
|
|
433
438
|
email?: string | undefined;
|
|
434
439
|
fullname?: string | undefined;
|
|
435
440
|
role?: string | undefined;
|
|
441
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
436
442
|
wsIds?: string[] | undefined;
|
|
437
443
|
}>, "many">;
|
|
438
444
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -442,6 +448,7 @@ declare const UsersDataSchema: z.ZodObject<{
|
|
|
442
448
|
email?: string | undefined;
|
|
443
449
|
fullname?: string | undefined;
|
|
444
450
|
role?: string | undefined;
|
|
451
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
445
452
|
wsIds?: string[] | undefined;
|
|
446
453
|
}[];
|
|
447
454
|
}, {
|
|
@@ -451,6 +458,7 @@ declare const UsersDataSchema: z.ZodObject<{
|
|
|
451
458
|
email?: string | undefined;
|
|
452
459
|
fullname?: string | undefined;
|
|
453
460
|
role?: string | undefined;
|
|
461
|
+
userInfo?: Record<string, unknown> | undefined;
|
|
454
462
|
wsIds?: string[] | undefined;
|
|
455
463
|
}[];
|
|
456
464
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -385,6 +385,7 @@ var UserSchema = import_zod3.z.object({
|
|
|
385
385
|
password: import_zod3.z.string().min(1, "Password is required"),
|
|
386
386
|
fullname: import_zod3.z.string().optional(),
|
|
387
387
|
role: import_zod3.z.string().optional(),
|
|
388
|
+
userInfo: import_zod3.z.record(import_zod3.z.unknown()).optional(),
|
|
388
389
|
wsIds: import_zod3.z.array(import_zod3.z.string()).optional()
|
|
389
390
|
// Only in memory, not persisted to file
|
|
390
391
|
});
|
|
@@ -514,6 +515,7 @@ var UsersRequestPayloadSchema = import_zod3.z.object({
|
|
|
514
515
|
password: import_zod3.z.string().optional(),
|
|
515
516
|
fullname: import_zod3.z.string().optional(),
|
|
516
517
|
role: import_zod3.z.string().optional(),
|
|
518
|
+
userInfo: import_zod3.z.record(import_zod3.z.unknown()).optional(),
|
|
517
519
|
// Query operation fields
|
|
518
520
|
filters: UserQueryFiltersSchema.optional(),
|
|
519
521
|
limit: import_zod3.z.number().optional(),
|
|
@@ -559,7 +561,8 @@ var DashboardQueryFiltersSchema = import_zod3.z.object({
|
|
|
559
561
|
projectId: import_zod3.z.string().optional(),
|
|
560
562
|
createdBy: import_zod3.z.number().optional(),
|
|
561
563
|
updatedBy: import_zod3.z.number().optional(),
|
|
562
|
-
name: import_zod3.z.string().optional()
|
|
564
|
+
name: import_zod3.z.string().optional(),
|
|
565
|
+
published: import_zod3.z.boolean().optional()
|
|
563
566
|
});
|
|
564
567
|
var DashboardsRequestPayloadSchema = import_zod3.z.object({
|
|
565
568
|
operation: import_zod3.z.enum(["create", "update", "delete", "getAll", "getOne", "query"]),
|
|
@@ -569,6 +572,7 @@ var DashboardsRequestPayloadSchema = import_zod3.z.object({
|
|
|
569
572
|
projectId: import_zod3.z.string().optional(),
|
|
570
573
|
name: import_zod3.z.string().optional(),
|
|
571
574
|
description: import_zod3.z.string().optional(),
|
|
575
|
+
published: import_zod3.z.boolean().optional(),
|
|
572
576
|
createdBy: import_zod3.z.number().optional(),
|
|
573
577
|
updatedBy: import_zod3.z.number().optional(),
|
|
574
578
|
dashboard: DSLRendererPropsSchema.optional(),
|
|
@@ -589,7 +593,8 @@ var ReportQueryFiltersSchema = import_zod3.z.object({
|
|
|
589
593
|
projectId: import_zod3.z.string().optional(),
|
|
590
594
|
createdBy: import_zod3.z.number().optional(),
|
|
591
595
|
updatedBy: import_zod3.z.number().optional(),
|
|
592
|
-
name: import_zod3.z.string().optional()
|
|
596
|
+
name: import_zod3.z.string().optional(),
|
|
597
|
+
published: import_zod3.z.boolean().optional()
|
|
593
598
|
});
|
|
594
599
|
var ReportsRequestPayloadSchema = import_zod3.z.object({
|
|
595
600
|
operation: import_zod3.z.enum(["create", "update", "delete", "getAll", "getOne", "query"]),
|
|
@@ -599,6 +604,7 @@ var ReportsRequestPayloadSchema = import_zod3.z.object({
|
|
|
599
604
|
projectId: import_zod3.z.string().optional(),
|
|
600
605
|
name: import_zod3.z.string().optional(),
|
|
601
606
|
description: import_zod3.z.string().optional(),
|
|
607
|
+
published: import_zod3.z.boolean().optional(),
|
|
602
608
|
createdBy: import_zod3.z.number().optional(),
|
|
603
609
|
updatedBy: import_zod3.z.number().optional(),
|
|
604
610
|
report: DSLRendererPropsSchema2.optional(),
|
|
@@ -4411,6 +4417,7 @@ ${JSON.stringify(tool.requiredFields || [], null, 2)}`;
|
|
|
4411
4417
|
*/
|
|
4412
4418
|
async classifyQuestionCategory(userPrompt, apiKey, logCollector, conversationHistory, externalTools) {
|
|
4413
4419
|
try {
|
|
4420
|
+
const schemaDoc = schema.generateSchemaDocumentation();
|
|
4414
4421
|
const availableToolsDoc = externalTools && externalTools.length > 0 ? externalTools.map((tool) => {
|
|
4415
4422
|
const paramsStr = Object.entries(tool.params || {}).map(([key, type]) => `${key}: ${type}`).join(", ");
|
|
4416
4423
|
return `- **${tool.name}** (id: ${tool.id})
|
|
@@ -4420,7 +4427,8 @@ ${JSON.stringify(tool.requiredFields || [], null, 2)}`;
|
|
|
4420
4427
|
const prompts = await promptLoader.loadPrompts("category-classification", {
|
|
4421
4428
|
USER_PROMPT: userPrompt,
|
|
4422
4429
|
CONVERSATION_HISTORY: conversationHistory || "No previous conversation",
|
|
4423
|
-
AVAILABLE_TOOLS: availableToolsDoc
|
|
4430
|
+
AVAILABLE_TOOLS: availableToolsDoc,
|
|
4431
|
+
SCHEMA_DOC: schemaDoc || "No database schema available"
|
|
4424
4432
|
});
|
|
4425
4433
|
const result = await LLM.stream(
|
|
4426
4434
|
{
|
|
@@ -6535,6 +6543,7 @@ async function handleUsersRequest(data, collections, sendMessage) {
|
|
|
6535
6543
|
const password = requestData?.password;
|
|
6536
6544
|
const fullname = requestData?.fullname;
|
|
6537
6545
|
const role = requestData?.role;
|
|
6546
|
+
const userInfo = requestData?.userInfo;
|
|
6538
6547
|
const filters = requestData?.filters;
|
|
6539
6548
|
const limit = requestData?.limit;
|
|
6540
6549
|
const sort = requestData?.sort;
|
|
@@ -6549,10 +6558,10 @@ async function handleUsersRequest(data, collections, sendMessage) {
|
|
|
6549
6558
|
const userManager = getUserManager();
|
|
6550
6559
|
switch (operation) {
|
|
6551
6560
|
case "create":
|
|
6552
|
-
await handleCreate(id, { username, email, password, fullname, role }, executeCollection, userManager, sendMessage, from.id);
|
|
6561
|
+
await handleCreate(id, { username, email, password, fullname, role, userInfo }, executeCollection, userManager, sendMessage, from.id);
|
|
6553
6562
|
break;
|
|
6554
6563
|
case "update":
|
|
6555
|
-
await handleUpdate(id, numericId, { username, email, password, fullname, role }, executeCollection, userManager, sendMessage, from.id);
|
|
6564
|
+
await handleUpdate(id, numericId, { username, email, password, fullname, role, userInfo }, executeCollection, userManager, sendMessage, from.id);
|
|
6556
6565
|
break;
|
|
6557
6566
|
case "delete":
|
|
6558
6567
|
await handleDelete(id, numericId, username, executeCollection, userManager, sendMessage, from.id);
|
|
@@ -6581,7 +6590,7 @@ async function handleUsersRequest(data, collections, sendMessage) {
|
|
|
6581
6590
|
}
|
|
6582
6591
|
}
|
|
6583
6592
|
async function handleCreate(id, userData, executeCollection, userManager, sendMessage, clientId) {
|
|
6584
|
-
const { username, email, password, fullname, role } = userData;
|
|
6593
|
+
const { username, email, password, fullname, role, userInfo } = userData;
|
|
6585
6594
|
if (!username || username.trim().length === 0) {
|
|
6586
6595
|
sendResponse3(id, {
|
|
6587
6596
|
success: false,
|
|
@@ -6612,7 +6621,8 @@ async function handleCreate(id, userData, executeCollection, userManager, sendMe
|
|
|
6612
6621
|
email: email || void 0,
|
|
6613
6622
|
password,
|
|
6614
6623
|
fullname: fullname || void 0,
|
|
6615
|
-
role: role || void 0
|
|
6624
|
+
role: role || void 0,
|
|
6625
|
+
userInfo: userInfo || void 0
|
|
6616
6626
|
});
|
|
6617
6627
|
if (result && result.success) {
|
|
6618
6628
|
logger.info(`[DB] User created successfully: ${username}`);
|
|
@@ -6680,7 +6690,7 @@ async function handleCreate(id, userData, executeCollection, userManager, sendMe
|
|
|
6680
6690
|
}
|
|
6681
6691
|
}
|
|
6682
6692
|
async function handleUpdate(id, numericId, userData, executeCollection, userManager, sendMessage, clientId) {
|
|
6683
|
-
const { username, email, password, fullname, role } = userData;
|
|
6693
|
+
const { username, email, password, fullname, role, userInfo } = userData;
|
|
6684
6694
|
if (!numericId && !username) {
|
|
6685
6695
|
sendResponse3(id, {
|
|
6686
6696
|
success: false,
|
|
@@ -6696,7 +6706,8 @@ async function handleUpdate(id, numericId, userData, executeCollection, userMana
|
|
|
6696
6706
|
email,
|
|
6697
6707
|
password,
|
|
6698
6708
|
fullname,
|
|
6699
|
-
role
|
|
6709
|
+
role,
|
|
6710
|
+
userInfo
|
|
6700
6711
|
});
|
|
6701
6712
|
if (result && result.success) {
|
|
6702
6713
|
logger.info(`[DB] User updated successfully, ID: ${numericId}`);
|
|
@@ -7056,6 +7067,7 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
|
|
|
7056
7067
|
const projectId = requestData?.projectId;
|
|
7057
7068
|
const name = requestData?.name;
|
|
7058
7069
|
const description = requestData?.description;
|
|
7070
|
+
const published = requestData?.published;
|
|
7059
7071
|
const createdBy = requestData?.createdBy;
|
|
7060
7072
|
const updatedBy = requestData?.updatedBy;
|
|
7061
7073
|
const numericId = requestData?.id;
|
|
@@ -7073,10 +7085,10 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
|
|
|
7073
7085
|
const dashboardManager2 = getDashboardManager();
|
|
7074
7086
|
switch (operation) {
|
|
7075
7087
|
case "create":
|
|
7076
|
-
await handleCreate2(id, dashboardId, dashboard, projectId, name, description, createdBy, executeCollection, dashboardManager2, sendMessage, from.id);
|
|
7088
|
+
await handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, executeCollection, dashboardManager2, sendMessage, from.id);
|
|
7077
7089
|
break;
|
|
7078
7090
|
case "update":
|
|
7079
|
-
await handleUpdate2(id, numericId, dashboardId, dashboard, name, description, updatedBy, executeCollection, dashboardManager2, sendMessage, from.id);
|
|
7091
|
+
await handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, executeCollection, dashboardManager2, sendMessage, from.id);
|
|
7080
7092
|
break;
|
|
7081
7093
|
case "delete":
|
|
7082
7094
|
await handleDelete2(id, numericId, dashboardId, executeCollection, dashboardManager2, sendMessage, from.id);
|
|
@@ -7104,7 +7116,7 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
|
|
|
7104
7116
|
}, sendMessage);
|
|
7105
7117
|
}
|
|
7106
7118
|
}
|
|
7107
|
-
async function handleCreate2(id, dashboardId, dashboard, projectId, name, description, createdBy, executeCollection, dashboardManager2, sendMessage, clientId) {
|
|
7119
|
+
async function handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, executeCollection, dashboardManager2, sendMessage, clientId) {
|
|
7108
7120
|
if (!dashboardId || dashboardId.trim().length === 0) {
|
|
7109
7121
|
sendResponse4(id, {
|
|
7110
7122
|
success: false,
|
|
@@ -7126,6 +7138,7 @@ async function handleCreate2(id, dashboardId, dashboard, projectId, name, descri
|
|
|
7126
7138
|
name: name || "",
|
|
7127
7139
|
description,
|
|
7128
7140
|
dashboard,
|
|
7141
|
+
published,
|
|
7129
7142
|
createdBy
|
|
7130
7143
|
});
|
|
7131
7144
|
if (result && result.success) {
|
|
@@ -7165,7 +7178,7 @@ async function handleCreate2(id, dashboardId, dashboard, projectId, name, descri
|
|
|
7165
7178
|
}, sendMessage, clientId);
|
|
7166
7179
|
}
|
|
7167
7180
|
}
|
|
7168
|
-
async function handleUpdate2(id, numericId, dashboardId, dashboard, name, description, updatedBy, executeCollection, dashboardManager2, sendMessage, clientId) {
|
|
7181
|
+
async function handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, executeCollection, dashboardManager2, sendMessage, clientId) {
|
|
7169
7182
|
if (!numericId) {
|
|
7170
7183
|
sendResponse4(id, {
|
|
7171
7184
|
success: false,
|
|
@@ -7179,6 +7192,7 @@ async function handleUpdate2(id, numericId, dashboardId, dashboard, name, descri
|
|
|
7179
7192
|
name,
|
|
7180
7193
|
description,
|
|
7181
7194
|
dashboard,
|
|
7195
|
+
published,
|
|
7182
7196
|
updatedBy
|
|
7183
7197
|
});
|
|
7184
7198
|
if (result && result.success) {
|
|
@@ -7421,6 +7435,7 @@ async function handleReportsRequest(data, collections, sendMessage) {
|
|
|
7421
7435
|
const projectId = requestData?.projectId;
|
|
7422
7436
|
const name = requestData?.name;
|
|
7423
7437
|
const description = requestData?.description;
|
|
7438
|
+
const published = requestData?.published;
|
|
7424
7439
|
const createdBy = requestData?.createdBy;
|
|
7425
7440
|
const updatedBy = requestData?.updatedBy;
|
|
7426
7441
|
const numericId = requestData?.id;
|
|
@@ -7438,10 +7453,10 @@ async function handleReportsRequest(data, collections, sendMessage) {
|
|
|
7438
7453
|
const reportManager2 = getReportManager();
|
|
7439
7454
|
switch (operation) {
|
|
7440
7455
|
case "create":
|
|
7441
|
-
await handleCreate3(id, reportId, report, projectId, name, description, createdBy, executeCollection, reportManager2, sendMessage, from.id);
|
|
7456
|
+
await handleCreate3(id, reportId, report, projectId, name, description, published, createdBy, executeCollection, reportManager2, sendMessage, from.id);
|
|
7442
7457
|
break;
|
|
7443
7458
|
case "update":
|
|
7444
|
-
await handleUpdate3(id, numericId, reportId, report, name, description, updatedBy, executeCollection, reportManager2, sendMessage, from.id);
|
|
7459
|
+
await handleUpdate3(id, numericId, reportId, report, name, description, published, updatedBy, executeCollection, reportManager2, sendMessage, from.id);
|
|
7445
7460
|
break;
|
|
7446
7461
|
case "delete":
|
|
7447
7462
|
await handleDelete3(id, numericId, reportId, executeCollection, reportManager2, sendMessage, from.id);
|
|
@@ -7469,7 +7484,7 @@ async function handleReportsRequest(data, collections, sendMessage) {
|
|
|
7469
7484
|
}, sendMessage);
|
|
7470
7485
|
}
|
|
7471
7486
|
}
|
|
7472
|
-
async function handleCreate3(id, reportId, report, projectId, name, description, createdBy, executeCollection, reportManager2, sendMessage, clientId) {
|
|
7487
|
+
async function handleCreate3(id, reportId, report, projectId, name, description, published, createdBy, executeCollection, reportManager2, sendMessage, clientId) {
|
|
7473
7488
|
if (!reportId || reportId.trim().length === 0) {
|
|
7474
7489
|
sendResponse5(id, {
|
|
7475
7490
|
success: false,
|
|
@@ -7491,6 +7506,7 @@ async function handleCreate3(id, reportId, report, projectId, name, description,
|
|
|
7491
7506
|
name: name || "",
|
|
7492
7507
|
description,
|
|
7493
7508
|
report,
|
|
7509
|
+
published,
|
|
7494
7510
|
createdBy
|
|
7495
7511
|
});
|
|
7496
7512
|
if (result && result.success) {
|
|
@@ -7530,7 +7546,7 @@ async function handleCreate3(id, reportId, report, projectId, name, description,
|
|
|
7530
7546
|
}, sendMessage, clientId);
|
|
7531
7547
|
}
|
|
7532
7548
|
}
|
|
7533
|
-
async function handleUpdate3(id, numericId, reportId, report, name, description, updatedBy, executeCollection, reportManager2, sendMessage, clientId) {
|
|
7549
|
+
async function handleUpdate3(id, numericId, reportId, report, name, description, published, updatedBy, executeCollection, reportManager2, sendMessage, clientId) {
|
|
7534
7550
|
if (!numericId) {
|
|
7535
7551
|
sendResponse5(id, {
|
|
7536
7552
|
success: false,
|
|
@@ -7544,6 +7560,7 @@ async function handleUpdate3(id, numericId, reportId, report, name, description,
|
|
|
7544
7560
|
name,
|
|
7545
7561
|
description,
|
|
7546
7562
|
report,
|
|
7563
|
+
published,
|
|
7547
7564
|
updatedBy
|
|
7548
7565
|
});
|
|
7549
7566
|
if (result && result.success) {
|