@superatomai/sdk-web 0.0.16 → 0.0.18
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/README.md +755 -755
- package/dist/index.cjs +25 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -6
- package/dist/index.d.ts +32 -6
- package/dist/index.js +25 -4
- package/dist/index.js.map +1 -1
- package/package.json +43 -41
package/dist/index.cjs
CHANGED
|
@@ -70,6 +70,13 @@ var UIElementSchema = zod.z.lazy(
|
|
|
70
70
|
}).optional()
|
|
71
71
|
})
|
|
72
72
|
);
|
|
73
|
+
var PageSchema = zod.z.object({
|
|
74
|
+
id: zod.z.string(),
|
|
75
|
+
name: zod.z.string(),
|
|
76
|
+
order: zod.z.number(),
|
|
77
|
+
icon: zod.z.string().optional(),
|
|
78
|
+
render: UIElementSchema
|
|
79
|
+
});
|
|
73
80
|
var UIComponentSchema = zod.z.object({
|
|
74
81
|
id: zod.z.string(),
|
|
75
82
|
name: zod.z.string().optional(),
|
|
@@ -89,7 +96,11 @@ var UIComponentSchema = zod.z.object({
|
|
|
89
96
|
})
|
|
90
97
|
).optional(),
|
|
91
98
|
data: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
92
|
-
|
|
99
|
+
// OLD: Single page (optional for backward compatibility)
|
|
100
|
+
render: UIElementSchema.optional(),
|
|
101
|
+
// NEW: Multi-page support
|
|
102
|
+
pages: zod.z.array(PageSchema).optional(),
|
|
103
|
+
defaultPageId: zod.z.string().optional(),
|
|
93
104
|
query: QuerySpecSchema.optional()
|
|
94
105
|
});
|
|
95
106
|
var DSLRendererPropsSchema = zod.z.object({
|
|
@@ -179,7 +190,8 @@ var UIComponentSchema2 = zod.z.object({
|
|
|
179
190
|
})
|
|
180
191
|
).optional(),
|
|
181
192
|
data: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
182
|
-
|
|
193
|
+
// Made optional to align with dashboards schema (dashboards use pages instead)
|
|
194
|
+
render: UIElementSchema2.optional(),
|
|
183
195
|
query: QuerySpecSchema2.optional()
|
|
184
196
|
});
|
|
185
197
|
var DSLRendererPropsSchema2 = zod.z.object({
|
|
@@ -472,18 +484,26 @@ var UsersResponsePayloadSchema = zod.z.object({
|
|
|
472
484
|
role: zod.z.string().optional(),
|
|
473
485
|
message: zod.z.string().optional(),
|
|
474
486
|
users: zod.z.array(zod.z.object({
|
|
487
|
+
id: zod.z.number(),
|
|
475
488
|
username: zod.z.string(),
|
|
476
489
|
email: zod.z.string().optional(),
|
|
477
490
|
fullname: zod.z.string().optional(),
|
|
478
491
|
role: zod.z.string().optional(),
|
|
479
|
-
|
|
492
|
+
userInfo: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
|
|
493
|
+
wsIds: zod.z.array(zod.z.string()).optional(),
|
|
494
|
+
createdAt: zod.z.string().optional(),
|
|
495
|
+
updatedAt: zod.z.string().optional()
|
|
480
496
|
})).optional(),
|
|
481
497
|
user: zod.z.object({
|
|
498
|
+
id: zod.z.number(),
|
|
482
499
|
username: zod.z.string(),
|
|
483
500
|
email: zod.z.string().optional(),
|
|
484
501
|
fullname: zod.z.string().optional(),
|
|
485
502
|
role: zod.z.string().optional(),
|
|
486
|
-
|
|
503
|
+
userInfo: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
|
|
504
|
+
wsIds: zod.z.array(zod.z.string()).optional(),
|
|
505
|
+
createdAt: zod.z.string().optional(),
|
|
506
|
+
updatedAt: zod.z.string().optional()
|
|
487
507
|
}).optional(),
|
|
488
508
|
count: zod.z.number().optional()
|
|
489
509
|
}).optional()
|
|
@@ -806,6 +826,7 @@ __export(services_exports, {
|
|
|
806
826
|
DSLRendererPropsSchema: () => DSLRendererPropsSchema,
|
|
807
827
|
ExpressionSchema: () => ExpressionSchema,
|
|
808
828
|
ForDirectiveSchema: () => ForDirectiveSchema,
|
|
829
|
+
PageSchema: () => PageSchema,
|
|
809
830
|
QuerySpecSchema: () => QuerySpecSchema,
|
|
810
831
|
UIComponentSchema: () => UIComponentSchema,
|
|
811
832
|
UIElementSchema: () => UIElementSchema,
|