@superatomai/sdk-node 0.0.31 → 0.0.33
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 +61 -9
- package/dist/index.d.ts +61 -9
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1520,6 +1520,13 @@ var UIElementSchema = z.lazy(
|
|
|
1520
1520
|
}).optional()
|
|
1521
1521
|
})
|
|
1522
1522
|
);
|
|
1523
|
+
var PageSchema = z.object({
|
|
1524
|
+
id: z.string(),
|
|
1525
|
+
name: z.string(),
|
|
1526
|
+
order: z.number(),
|
|
1527
|
+
icon: z.string().optional(),
|
|
1528
|
+
render: UIElementSchema
|
|
1529
|
+
});
|
|
1523
1530
|
var UIComponentSchema = z.object({
|
|
1524
1531
|
id: z.string(),
|
|
1525
1532
|
name: z.string().optional(),
|
|
@@ -1539,7 +1546,9 @@ var UIComponentSchema = z.object({
|
|
|
1539
1546
|
})
|
|
1540
1547
|
).optional(),
|
|
1541
1548
|
data: z.record(z.string(), z.any()).optional(),
|
|
1542
|
-
render: UIElementSchema,
|
|
1549
|
+
render: UIElementSchema.optional(),
|
|
1550
|
+
pages: z.array(PageSchema).optional(),
|
|
1551
|
+
defaultPageId: z.string().optional(),
|
|
1543
1552
|
query: QuerySpecSchema.optional()
|
|
1544
1553
|
});
|
|
1545
1554
|
var DSLRendererPropsSchema = z.object({
|
|
@@ -7066,6 +7075,7 @@ async function handleGetAll(id, executeCollection, userManager, sendMessage, cli
|
|
|
7066
7075
|
email: user.email,
|
|
7067
7076
|
fullname: user.fullname,
|
|
7068
7077
|
role: user.role,
|
|
7078
|
+
userInfo: user.userInfo,
|
|
7069
7079
|
createdAt: user.createdAt,
|
|
7070
7080
|
updatedAt: user.updatedAt
|
|
7071
7081
|
}));
|
|
@@ -7119,6 +7129,7 @@ async function handleGetOne(id, numericId, username, executeCollection, userMana
|
|
|
7119
7129
|
email: result.data?.email,
|
|
7120
7130
|
fullname: result.data?.fullname,
|
|
7121
7131
|
role: result.data?.role,
|
|
7132
|
+
userInfo: result.data?.userInfo,
|
|
7122
7133
|
createdAt: result.data?.createdAt,
|
|
7123
7134
|
updatedAt: result.data?.updatedAt
|
|
7124
7135
|
};
|
|
@@ -7181,6 +7192,7 @@ async function handleQuery(id, filters, limit, sort, executeCollection, userMana
|
|
|
7181
7192
|
email: user.email,
|
|
7182
7193
|
fullname: user.fullname,
|
|
7183
7194
|
role: user.role,
|
|
7195
|
+
userInfo: user.userInfo,
|
|
7184
7196
|
createdAt: user.createdAt,
|
|
7185
7197
|
updatedAt: user.updatedAt
|
|
7186
7198
|
}));
|
|
@@ -7204,6 +7216,7 @@ async function handleQuery(id, filters, limit, sort, executeCollection, userMana
|
|
|
7204
7216
|
email: user.email,
|
|
7205
7217
|
fullname: user.fullname,
|
|
7206
7218
|
role: user.role,
|
|
7219
|
+
userInfo: user.userInfo,
|
|
7207
7220
|
wsIds: user.wsIds || []
|
|
7208
7221
|
}));
|
|
7209
7222
|
logger.info(`[FILE] Retrieved ${sanitizedUsers.length} users (all - no query filter)`);
|