@objectstack/spec 0.1.0 → 0.1.1
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 +66 -125
- package/dist/ai/agent.zod.d.ts +164 -0
- package/dist/ai/agent.zod.d.ts.map +1 -0
- package/dist/ai/agent.zod.js +51 -0
- package/dist/data/dataset.zod.d.ts +60 -0
- package/dist/data/dataset.zod.d.ts.map +1 -0
- package/dist/data/dataset.zod.js +54 -0
- package/dist/data/field.zod.d.ts +170 -0
- package/dist/data/field.zod.d.ts.map +1 -0
- package/dist/data/field.zod.js +81 -0
- package/dist/data/flow.zod.d.ts +242 -0
- package/dist/data/flow.zod.d.ts.map +1 -0
- package/dist/data/flow.zod.js +77 -0
- package/dist/data/mapping.zod.d.ts +257 -0
- package/dist/data/mapping.zod.d.ts.map +1 -0
- package/dist/data/mapping.zod.js +65 -0
- package/dist/data/object.zod.d.ts +364 -0
- package/dist/data/object.zod.d.ts.map +1 -0
- package/dist/data/object.zod.js +54 -0
- package/dist/data/permission.zod.d.ts +163 -0
- package/dist/data/permission.zod.d.ts.map +1 -0
- package/dist/data/permission.zod.js +62 -0
- package/dist/data/query.zod.d.ts +89 -0
- package/dist/data/query.zod.d.ts.map +1 -0
- package/dist/data/query.zod.js +71 -0
- package/dist/data/sharing.zod.d.ts +63 -0
- package/dist/data/sharing.zod.d.ts.map +1 -0
- package/dist/data/sharing.zod.js +57 -0
- package/dist/data/validation.zod.d.ts +236 -0
- package/dist/data/validation.zod.d.ts.map +1 -0
- package/dist/data/validation.zod.js +59 -0
- package/dist/data/workflow.zod.d.ts +195 -0
- package/dist/data/workflow.zod.d.ts.map +1 -0
- package/dist/data/workflow.zod.js +64 -0
- package/dist/index.d.ts +33 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -5
- package/dist/system/api.zod.d.ts +168 -0
- package/dist/system/api.zod.d.ts.map +1 -0
- package/dist/system/api.zod.js +53 -0
- package/dist/system/constants/index.d.ts +11 -0
- package/dist/system/constants/index.d.ts.map +1 -0
- package/dist/system/constants/index.js +26 -0
- package/dist/system/constants/paths.d.ts +71 -0
- package/dist/system/constants/paths.d.ts.map +1 -0
- package/dist/system/constants/paths.js +65 -0
- package/dist/system/datasource.zod.d.ts +127 -0
- package/dist/system/datasource.zod.d.ts.map +1 -0
- package/dist/system/datasource.zod.js +62 -0
- package/dist/system/identity.zod.d.ts +204 -0
- package/dist/system/identity.zod.d.ts.map +1 -0
- package/dist/system/identity.zod.js +68 -0
- package/dist/system/license.zod.d.ts +110 -0
- package/dist/system/license.zod.d.ts.map +1 -0
- package/dist/system/license.zod.js +63 -0
- package/dist/system/manifest.zod.d.ts +126 -0
- package/dist/system/manifest.zod.d.ts.map +1 -0
- package/dist/system/manifest.zod.js +68 -0
- package/dist/system/policy.zod.d.ts +209 -0
- package/dist/system/policy.zod.d.ts.map +1 -0
- package/dist/system/policy.zod.js +54 -0
- package/dist/system/role.zod.d.ts +34 -0
- package/dist/system/role.zod.d.ts.map +1 -0
- package/dist/system/role.zod.js +25 -0
- package/dist/system/territory.zod.d.ts +91 -0
- package/dist/system/territory.zod.d.ts.map +1 -0
- package/dist/system/territory.zod.js +64 -0
- package/dist/system/translation.zod.d.ts +171 -0
- package/dist/system/translation.zod.d.ts.map +1 -0
- package/dist/system/translation.zod.js +34 -0
- package/dist/system/types/index.d.ts +7 -0
- package/dist/system/types/index.d.ts.map +1 -0
- package/dist/system/types/index.js +22 -0
- package/dist/system/types/plugin.d.ts +113 -0
- package/dist/system/types/plugin.d.ts.map +1 -0
- package/dist/system/types/plugin.js +6 -0
- package/dist/system/webhook.zod.d.ts +106 -0
- package/dist/system/webhook.zod.d.ts.map +1 -0
- package/dist/system/webhook.zod.js +56 -0
- package/dist/ui/action.zod.d.ts +148 -0
- package/dist/ui/action.zod.d.ts.map +1 -0
- package/dist/ui/action.zod.js +48 -0
- package/dist/ui/app.zod.d.ts +299 -0
- package/dist/ui/app.zod.d.ts.map +1 -0
- package/dist/ui/app.zod.js +127 -0
- package/dist/ui/dashboard.zod.d.ts +207 -0
- package/dist/ui/dashboard.zod.d.ts.map +1 -0
- package/dist/ui/dashboard.zod.js +66 -0
- package/dist/ui/page.zod.d.ts +187 -0
- package/dist/ui/page.zod.d.ts.map +1 -0
- package/dist/ui/page.zod.js +48 -0
- package/dist/ui/report.zod.d.ts +224 -0
- package/dist/ui/report.zod.d.ts.map +1 -0
- package/dist/ui/report.zod.js +68 -0
- package/dist/ui/view.zod.d.ts +887 -0
- package/dist/ui/view.zod.d.ts.map +1 -0
- package/dist/ui/view.zod.js +83 -0
- package/json-schema/AIKnowledge.json +30 -0
- package/json-schema/AIModelConfig.json +41 -0
- package/json-schema/AITool.json +33 -0
- package/json-schema/Action.json +156 -0
- package/json-schema/ActionParam.json +76 -0
- package/json-schema/Agent.json +140 -0
- package/json-schema/ApiEndpoint.json +162 -0
- package/json-schema/ApiMapping.json +28 -0
- package/json-schema/App.json +286 -0
- package/json-schema/AppBranding.json +24 -0
- package/json-schema/AuditPolicy.json +31 -0
- package/json-schema/AuthProtocol.json +17 -0
- package/json-schema/AuthProvider.json +171 -0
- package/json-schema/CalendarConfig.json +28 -0
- package/json-schema/ChartType.json +19 -0
- package/json-schema/Dashboard.json +117 -0
- package/json-schema/DashboardNavItem.json +42 -0
- package/json-schema/DashboardWidget.json +89 -0
- package/json-schema/Dataset.json +63 -0
- package/json-schema/DatasetMode.json +16 -0
- package/json-schema/Datasource.json +93 -0
- package/json-schema/DatasourceCapabilities.json +36 -0
- package/json-schema/DriverType.json +27 -0
- package/json-schema/EmailAlertAction.json +37 -0
- package/json-schema/Feature.json +51 -0
- package/json-schema/Field.json +219 -0
- package/json-schema/FieldMapping.json +83 -0
- package/json-schema/FieldNode.json +32 -0
- package/json-schema/FieldPermission.json +22 -0
- package/json-schema/FieldType.json +36 -0
- package/json-schema/FieldUpdateAction.json +32 -0
- package/json-schema/FilterNode.json +52 -0
- package/json-schema/FilterOperator.json +26 -0
- package/json-schema/Flow.json +186 -0
- package/json-schema/FlowEdge.json +37 -0
- package/json-schema/FlowNode.json +65 -0
- package/json-schema/FlowNodeAction.json +24 -0
- package/json-schema/FlowVariable.json +34 -0
- package/json-schema/FormSection.json +42 -0
- package/json-schema/FormView.json +99 -0
- package/json-schema/FormatValidation.json +59 -0
- package/json-schema/GanttConfig.json +32 -0
- package/json-schema/GroupNavItem.json +42 -0
- package/json-schema/HttpMethod.json +16 -0
- package/json-schema/Index.json +30 -0
- package/json-schema/KanbanConfig.json +31 -0
- package/json-schema/LDAPConfig.json +39 -0
- package/json-schema/License.json +57 -0
- package/json-schema/ListView.json +153 -0
- package/json-schema/Locale.json +10 -0
- package/json-schema/LogicOperator.json +14 -0
- package/json-schema/Manifest.json +90 -0
- package/json-schema/Mapping.json +270 -0
- package/json-schema/MenuItem.json +28 -0
- package/json-schema/MetricType.json +14 -0
- package/json-schema/NavigationItem.json +214 -0
- package/json-schema/NetworkPolicy.json +31 -0
- package/json-schema/OIDCConfig.json +46 -0
- package/json-schema/OWDModel.json +14 -0
- package/json-schema/Object.json +331 -0
- package/json-schema/ObjectCapabilities.json +36 -0
- package/json-schema/ObjectNavItem.json +46 -0
- package/json-schema/ObjectPermission.json +42 -0
- package/json-schema/Page.json +117 -0
- package/json-schema/PageComponent.json +36 -0
- package/json-schema/PageNavItem.json +47 -0
- package/json-schema/PageRegion.json +63 -0
- package/json-schema/PasswordPolicy.json +41 -0
- package/json-schema/PermissionSet.json +96 -0
- package/json-schema/Plan.json +53 -0
- package/json-schema/Policy.json +138 -0
- package/json-schema/Query.json +128 -0
- package/json-schema/RateLimit.json +26 -0
- package/json-schema/Report.json +219 -0
- package/json-schema/ReportChart.json +45 -0
- package/json-schema/ReportColumn.json +35 -0
- package/json-schema/ReportGrouping.json +38 -0
- package/json-schema/ReportType.json +15 -0
- package/json-schema/Role.json +32 -0
- package/json-schema/SAMLConfig.json +44 -0
- package/json-schema/ScriptValidation.json +48 -0
- package/json-schema/SelectOption.json +32 -0
- package/json-schema/SessionPolicy.json +27 -0
- package/json-schema/SharingLevel.json +13 -0
- package/json-schema/SharingRule.json +58 -0
- package/json-schema/SharingRuleType.json +15 -0
- package/json-schema/SortNode.json +26 -0
- package/json-schema/StateMachineValidation.json +59 -0
- package/json-schema/Territory.json +77 -0
- package/json-schema/TerritoryModel.json +34 -0
- package/json-schema/TerritoryType.json +15 -0
- package/json-schema/TransformType.json +18 -0
- package/json-schema/TranslationBundle.json +78 -0
- package/json-schema/TranslationData.json +75 -0
- package/json-schema/UniquenessValidation.json +59 -0
- package/json-schema/UrlNavItem.json +51 -0
- package/json-schema/ValidationRule.json +211 -0
- package/json-schema/View.json +500 -0
- package/json-schema/Webhook.json +88 -0
- package/json-schema/WebhookReceiver.json +66 -0
- package/json-schema/WebhookTriggerType.json +16 -0
- package/json-schema/WorkflowAction.json +84 -0
- package/json-schema/WorkflowRule.json +128 -0
- package/json-schema/WorkflowTriggerType.json +16 -0
- package/package.json +28 -19
- package/dist/examples.d.ts +0 -28
- package/dist/examples.d.ts.map +0 -1
- package/dist/examples.js +0 -250
- package/dist/types/index.d.ts +0 -9
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -8
- package/dist/types/meta/field-type.d.ts +0 -54
- package/dist/types/meta/field-type.d.ts.map +0 -1
- package/dist/types/meta/field-type.js +0 -42
- package/dist/types/meta/index.d.ts +0 -13
- package/dist/types/meta/index.d.ts.map +0 -1
- package/dist/types/meta/index.js +0 -12
- package/dist/types/meta/object-entity.d.ts +0 -246
- package/dist/types/meta/object-entity.d.ts.map +0 -1
- package/dist/types/meta/object-entity.js +0 -9
- package/dist/types/meta/object-field.d.ts +0 -199
- package/dist/types/meta/object-field.d.ts.map +0 -1
- package/dist/types/meta/object-field.js +0 -9
- package/dist/types/meta/object-view.d.ts +0 -430
- package/dist/types/meta/object-view.d.ts.map +0 -1
- package/dist/types/meta/object-view.js +0 -9
- package/src/examples.ts +0 -257
- package/src/index.ts +0 -10
- package/src/types/index.ts +0 -9
- package/src/types/meta/field-type.ts +0 -91
- package/src/types/meta/index.ts +0 -13
- package/src/types/meta/object-entity.ts +0 -265
- package/src/types/meta/object-field.ts +0 -218
- package/src/types/meta/object-view.ts +0 -475
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* 1. Script/Expression Validation
|
|
4
|
+
* Generic formula-based validation.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ScriptValidationSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
+
severity: z.ZodDefault<z.ZodEnum<["error", "warning", "info"]>>;
|
|
10
|
+
message: z.ZodString;
|
|
11
|
+
} & {
|
|
12
|
+
type: z.ZodLiteral<"script">;
|
|
13
|
+
condition: z.ZodString;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
message: string;
|
|
16
|
+
type: "script";
|
|
17
|
+
name: string;
|
|
18
|
+
active: boolean;
|
|
19
|
+
severity: "error" | "warning" | "info";
|
|
20
|
+
condition: string;
|
|
21
|
+
}, {
|
|
22
|
+
message: string;
|
|
23
|
+
type: "script";
|
|
24
|
+
name: string;
|
|
25
|
+
condition: string;
|
|
26
|
+
active?: boolean | undefined;
|
|
27
|
+
severity?: "error" | "warning" | "info" | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* 2. Uniqueness Validation
|
|
31
|
+
* specialized optimized check for unique constraints.
|
|
32
|
+
*/
|
|
33
|
+
export declare const UniquenessValidationSchema: z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
severity: z.ZodDefault<z.ZodEnum<["error", "warning", "info"]>>;
|
|
37
|
+
message: z.ZodString;
|
|
38
|
+
} & {
|
|
39
|
+
type: z.ZodLiteral<"unique">;
|
|
40
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
41
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
42
|
+
caseSensitive: z.ZodDefault<z.ZodBoolean>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
message: string;
|
|
45
|
+
type: "unique";
|
|
46
|
+
name: string;
|
|
47
|
+
fields: string[];
|
|
48
|
+
active: boolean;
|
|
49
|
+
severity: "error" | "warning" | "info";
|
|
50
|
+
caseSensitive: boolean;
|
|
51
|
+
scope?: string | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
message: string;
|
|
54
|
+
type: "unique";
|
|
55
|
+
name: string;
|
|
56
|
+
fields: string[];
|
|
57
|
+
active?: boolean | undefined;
|
|
58
|
+
severity?: "error" | "warning" | "info" | undefined;
|
|
59
|
+
scope?: string | undefined;
|
|
60
|
+
caseSensitive?: boolean | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
/**
|
|
63
|
+
* 3. State Machine Validation
|
|
64
|
+
* State transition logic.
|
|
65
|
+
*/
|
|
66
|
+
export declare const StateMachineValidationSchema: z.ZodObject<{
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
+
severity: z.ZodDefault<z.ZodEnum<["error", "warning", "info"]>>;
|
|
70
|
+
message: z.ZodString;
|
|
71
|
+
} & {
|
|
72
|
+
type: z.ZodLiteral<"state_machine">;
|
|
73
|
+
field: z.ZodString;
|
|
74
|
+
transitions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
message: string;
|
|
77
|
+
type: "state_machine";
|
|
78
|
+
name: string;
|
|
79
|
+
field: string;
|
|
80
|
+
active: boolean;
|
|
81
|
+
severity: "error" | "warning" | "info";
|
|
82
|
+
transitions: Record<string, string[]>;
|
|
83
|
+
}, {
|
|
84
|
+
message: string;
|
|
85
|
+
type: "state_machine";
|
|
86
|
+
name: string;
|
|
87
|
+
field: string;
|
|
88
|
+
transitions: Record<string, string[]>;
|
|
89
|
+
active?: boolean | undefined;
|
|
90
|
+
severity?: "error" | "warning" | "info" | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
/**
|
|
93
|
+
* 4. Value Format Validation
|
|
94
|
+
* Regex or specialized formats.
|
|
95
|
+
*/
|
|
96
|
+
export declare const FormatValidationSchema: z.ZodObject<{
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
99
|
+
severity: z.ZodDefault<z.ZodEnum<["error", "warning", "info"]>>;
|
|
100
|
+
message: z.ZodString;
|
|
101
|
+
} & {
|
|
102
|
+
type: z.ZodLiteral<"format">;
|
|
103
|
+
field: z.ZodString;
|
|
104
|
+
regex: z.ZodOptional<z.ZodString>;
|
|
105
|
+
format: z.ZodOptional<z.ZodEnum<["email", "url", "phone", "json"]>>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
message: string;
|
|
108
|
+
type: "format";
|
|
109
|
+
name: string;
|
|
110
|
+
field: string;
|
|
111
|
+
active: boolean;
|
|
112
|
+
severity: "error" | "warning" | "info";
|
|
113
|
+
format?: "email" | "url" | "phone" | "json" | undefined;
|
|
114
|
+
regex?: string | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
message: string;
|
|
117
|
+
type: "format";
|
|
118
|
+
name: string;
|
|
119
|
+
field: string;
|
|
120
|
+
active?: boolean | undefined;
|
|
121
|
+
severity?: "error" | "warning" | "info" | undefined;
|
|
122
|
+
format?: "email" | "url" | "phone" | "json" | undefined;
|
|
123
|
+
regex?: string | undefined;
|
|
124
|
+
}>;
|
|
125
|
+
/**
|
|
126
|
+
* Master Validation Rule Schema
|
|
127
|
+
*/
|
|
128
|
+
export declare const ValidationRuleSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
129
|
+
name: z.ZodString;
|
|
130
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
131
|
+
severity: z.ZodDefault<z.ZodEnum<["error", "warning", "info"]>>;
|
|
132
|
+
message: z.ZodString;
|
|
133
|
+
} & {
|
|
134
|
+
type: z.ZodLiteral<"script">;
|
|
135
|
+
condition: z.ZodString;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
message: string;
|
|
138
|
+
type: "script";
|
|
139
|
+
name: string;
|
|
140
|
+
active: boolean;
|
|
141
|
+
severity: "error" | "warning" | "info";
|
|
142
|
+
condition: string;
|
|
143
|
+
}, {
|
|
144
|
+
message: string;
|
|
145
|
+
type: "script";
|
|
146
|
+
name: string;
|
|
147
|
+
condition: string;
|
|
148
|
+
active?: boolean | undefined;
|
|
149
|
+
severity?: "error" | "warning" | "info" | undefined;
|
|
150
|
+
}>, z.ZodObject<{
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
153
|
+
severity: z.ZodDefault<z.ZodEnum<["error", "warning", "info"]>>;
|
|
154
|
+
message: z.ZodString;
|
|
155
|
+
} & {
|
|
156
|
+
type: z.ZodLiteral<"unique">;
|
|
157
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
158
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
159
|
+
caseSensitive: z.ZodDefault<z.ZodBoolean>;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
message: string;
|
|
162
|
+
type: "unique";
|
|
163
|
+
name: string;
|
|
164
|
+
fields: string[];
|
|
165
|
+
active: boolean;
|
|
166
|
+
severity: "error" | "warning" | "info";
|
|
167
|
+
caseSensitive: boolean;
|
|
168
|
+
scope?: string | undefined;
|
|
169
|
+
}, {
|
|
170
|
+
message: string;
|
|
171
|
+
type: "unique";
|
|
172
|
+
name: string;
|
|
173
|
+
fields: string[];
|
|
174
|
+
active?: boolean | undefined;
|
|
175
|
+
severity?: "error" | "warning" | "info" | undefined;
|
|
176
|
+
scope?: string | undefined;
|
|
177
|
+
caseSensitive?: boolean | undefined;
|
|
178
|
+
}>, z.ZodObject<{
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
181
|
+
severity: z.ZodDefault<z.ZodEnum<["error", "warning", "info"]>>;
|
|
182
|
+
message: z.ZodString;
|
|
183
|
+
} & {
|
|
184
|
+
type: z.ZodLiteral<"state_machine">;
|
|
185
|
+
field: z.ZodString;
|
|
186
|
+
transitions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
message: string;
|
|
189
|
+
type: "state_machine";
|
|
190
|
+
name: string;
|
|
191
|
+
field: string;
|
|
192
|
+
active: boolean;
|
|
193
|
+
severity: "error" | "warning" | "info";
|
|
194
|
+
transitions: Record<string, string[]>;
|
|
195
|
+
}, {
|
|
196
|
+
message: string;
|
|
197
|
+
type: "state_machine";
|
|
198
|
+
name: string;
|
|
199
|
+
field: string;
|
|
200
|
+
transitions: Record<string, string[]>;
|
|
201
|
+
active?: boolean | undefined;
|
|
202
|
+
severity?: "error" | "warning" | "info" | undefined;
|
|
203
|
+
}>, z.ZodObject<{
|
|
204
|
+
name: z.ZodString;
|
|
205
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
206
|
+
severity: z.ZodDefault<z.ZodEnum<["error", "warning", "info"]>>;
|
|
207
|
+
message: z.ZodString;
|
|
208
|
+
} & {
|
|
209
|
+
type: z.ZodLiteral<"format">;
|
|
210
|
+
field: z.ZodString;
|
|
211
|
+
regex: z.ZodOptional<z.ZodString>;
|
|
212
|
+
format: z.ZodOptional<z.ZodEnum<["email", "url", "phone", "json"]>>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
message: string;
|
|
215
|
+
type: "format";
|
|
216
|
+
name: string;
|
|
217
|
+
field: string;
|
|
218
|
+
active: boolean;
|
|
219
|
+
severity: "error" | "warning" | "info";
|
|
220
|
+
format?: "email" | "url" | "phone" | "json" | undefined;
|
|
221
|
+
regex?: string | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
message: string;
|
|
224
|
+
type: "format";
|
|
225
|
+
name: string;
|
|
226
|
+
field: string;
|
|
227
|
+
active?: boolean | undefined;
|
|
228
|
+
severity?: "error" | "warning" | "info" | undefined;
|
|
229
|
+
format?: "email" | "url" | "phone" | "json" | undefined;
|
|
230
|
+
regex?: string | undefined;
|
|
231
|
+
}>]>;
|
|
232
|
+
export type ValidationRule = z.infer<typeof ValidationRuleSchema>;
|
|
233
|
+
export type ScriptValidation = z.infer<typeof ScriptValidationSchema>;
|
|
234
|
+
export type UniquenessValidation = z.infer<typeof UniquenessValidationSchema>;
|
|
235
|
+
export type StateMachineValidation = z.infer<typeof StateMachineValidationSchema>;
|
|
236
|
+
//# sourceMappingURL=validation.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.zod.d.ts","sourceRoot":"","sources":["../../src/data/validation.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;EAGjC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;EAIvC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidationRuleSchema = exports.FormatValidationSchema = exports.StateMachineValidationSchema = exports.UniquenessValidationSchema = exports.ScriptValidationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Base Validation Rule
|
|
7
|
+
*/
|
|
8
|
+
const BaseValidationSchema = zod_1.z.object({
|
|
9
|
+
name: zod_1.z.string().regex(/^[a-z_][a-z0-9_]*$/).describe('Unique rule name'),
|
|
10
|
+
active: zod_1.z.boolean().default(true),
|
|
11
|
+
severity: zod_1.z.enum(['error', 'warning', 'info']).default('error'),
|
|
12
|
+
message: zod_1.z.string().describe('Error message to display'),
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* 1. Script/Expression Validation
|
|
16
|
+
* Generic formula-based validation.
|
|
17
|
+
*/
|
|
18
|
+
exports.ScriptValidationSchema = BaseValidationSchema.extend({
|
|
19
|
+
type: zod_1.z.literal('script'),
|
|
20
|
+
condition: zod_1.z.string().describe('Formula expression. If TRUE, validation fails. (e.g. amount < 0)'),
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* 2. Uniqueness Validation
|
|
24
|
+
* specialized optimized check for unique constraints.
|
|
25
|
+
*/
|
|
26
|
+
exports.UniquenessValidationSchema = BaseValidationSchema.extend({
|
|
27
|
+
type: zod_1.z.literal('unique'),
|
|
28
|
+
fields: zod_1.z.array(zod_1.z.string()).describe('Fields that must be combined unique'),
|
|
29
|
+
scope: zod_1.z.string().optional().describe('Formula condition for scope (e.g. active = true)'),
|
|
30
|
+
caseSensitive: zod_1.z.boolean().default(true),
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* 3. State Machine Validation
|
|
34
|
+
* State transition logic.
|
|
35
|
+
*/
|
|
36
|
+
exports.StateMachineValidationSchema = BaseValidationSchema.extend({
|
|
37
|
+
type: zod_1.z.literal('state_machine'),
|
|
38
|
+
field: zod_1.z.string().describe('State field (e.g. status)'),
|
|
39
|
+
transitions: zod_1.z.record(zod_1.z.array(zod_1.z.string())).describe('Map of { OldState: [AllowedNewStates] }'),
|
|
40
|
+
});
|
|
41
|
+
/**
|
|
42
|
+
* 4. Value Format Validation
|
|
43
|
+
* Regex or specialized formats.
|
|
44
|
+
*/
|
|
45
|
+
exports.FormatValidationSchema = BaseValidationSchema.extend({
|
|
46
|
+
type: zod_1.z.literal('format'),
|
|
47
|
+
field: zod_1.z.string(),
|
|
48
|
+
regex: zod_1.z.string().optional(),
|
|
49
|
+
format: zod_1.z.enum(['email', 'url', 'phone', 'json']).optional(),
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* Master Validation Rule Schema
|
|
53
|
+
*/
|
|
54
|
+
exports.ValidationRuleSchema = zod_1.z.discriminatedUnion('type', [
|
|
55
|
+
exports.ScriptValidationSchema,
|
|
56
|
+
exports.UniquenessValidationSchema,
|
|
57
|
+
exports.StateMachineValidationSchema,
|
|
58
|
+
exports.FormatValidationSchema
|
|
59
|
+
]);
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Trigger events for workflow automation
|
|
4
|
+
*/
|
|
5
|
+
export declare const WorkflowTriggerType: z.ZodEnum<["on_create", "on_update", "on_create_or_update", "on_delete", "schedule"]>;
|
|
6
|
+
/**
|
|
7
|
+
* Schema for Workflow Field Update Action
|
|
8
|
+
*/
|
|
9
|
+
export declare const FieldUpdateActionSchema: z.ZodObject<{
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
type: z.ZodLiteral<"field_update">;
|
|
12
|
+
field: z.ZodString;
|
|
13
|
+
value: z.ZodAny;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
type: "field_update";
|
|
16
|
+
name: string;
|
|
17
|
+
field: string;
|
|
18
|
+
value?: any;
|
|
19
|
+
}, {
|
|
20
|
+
type: "field_update";
|
|
21
|
+
name: string;
|
|
22
|
+
field: string;
|
|
23
|
+
value?: any;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Schema for Workflow Email Alert Action
|
|
27
|
+
*/
|
|
28
|
+
export declare const EmailAlertActionSchema: z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
type: z.ZodLiteral<"email_alert">;
|
|
31
|
+
template: z.ZodString;
|
|
32
|
+
recipients: z.ZodArray<z.ZodString, "many">;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
type: "email_alert";
|
|
35
|
+
name: string;
|
|
36
|
+
template: string;
|
|
37
|
+
recipients: string[];
|
|
38
|
+
}, {
|
|
39
|
+
type: "email_alert";
|
|
40
|
+
name: string;
|
|
41
|
+
template: string;
|
|
42
|
+
recipients: string[];
|
|
43
|
+
}>;
|
|
44
|
+
/**
|
|
45
|
+
* Generic Workflow Action Wrapper
|
|
46
|
+
*/
|
|
47
|
+
export declare const WorkflowActionSchema: z.ZodUnion<[z.ZodObject<{
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
type: z.ZodLiteral<"field_update">;
|
|
50
|
+
field: z.ZodString;
|
|
51
|
+
value: z.ZodAny;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
type: "field_update";
|
|
54
|
+
name: string;
|
|
55
|
+
field: string;
|
|
56
|
+
value?: any;
|
|
57
|
+
}, {
|
|
58
|
+
type: "field_update";
|
|
59
|
+
name: string;
|
|
60
|
+
field: string;
|
|
61
|
+
value?: any;
|
|
62
|
+
}>, z.ZodObject<{
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
type: z.ZodLiteral<"email_alert">;
|
|
65
|
+
template: z.ZodString;
|
|
66
|
+
recipients: z.ZodArray<z.ZodString, "many">;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
type: "email_alert";
|
|
69
|
+
name: string;
|
|
70
|
+
template: string;
|
|
71
|
+
recipients: string[];
|
|
72
|
+
}, {
|
|
73
|
+
type: "email_alert";
|
|
74
|
+
name: string;
|
|
75
|
+
template: string;
|
|
76
|
+
recipients: string[];
|
|
77
|
+
}>, z.ZodObject<{
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
type: z.ZodString;
|
|
80
|
+
options: z.ZodAny;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
type: string;
|
|
83
|
+
name: string;
|
|
84
|
+
options?: any;
|
|
85
|
+
}, {
|
|
86
|
+
type: string;
|
|
87
|
+
name: string;
|
|
88
|
+
options?: any;
|
|
89
|
+
}>]>;
|
|
90
|
+
/**
|
|
91
|
+
* Schema for Workflow Rules (Automation)
|
|
92
|
+
*/
|
|
93
|
+
export declare const WorkflowRuleSchema: z.ZodObject<{
|
|
94
|
+
/** Machine name */
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
/** Target Object */
|
|
97
|
+
objectName: z.ZodString;
|
|
98
|
+
/** When to evaluate the rule */
|
|
99
|
+
triggerType: z.ZodEnum<["on_create", "on_update", "on_create_or_update", "on_delete", "schedule"]>;
|
|
100
|
+
/**
|
|
101
|
+
* Condition to start the workflow.
|
|
102
|
+
* If empty, runs on every trigger event.
|
|
103
|
+
*/
|
|
104
|
+
criteria: z.ZodOptional<z.ZodString>;
|
|
105
|
+
/** Actions to execute immediately */
|
|
106
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
type: z.ZodLiteral<"field_update">;
|
|
109
|
+
field: z.ZodString;
|
|
110
|
+
value: z.ZodAny;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
type: "field_update";
|
|
113
|
+
name: string;
|
|
114
|
+
field: string;
|
|
115
|
+
value?: any;
|
|
116
|
+
}, {
|
|
117
|
+
type: "field_update";
|
|
118
|
+
name: string;
|
|
119
|
+
field: string;
|
|
120
|
+
value?: any;
|
|
121
|
+
}>, z.ZodObject<{
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
type: z.ZodLiteral<"email_alert">;
|
|
124
|
+
template: z.ZodString;
|
|
125
|
+
recipients: z.ZodArray<z.ZodString, "many">;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
type: "email_alert";
|
|
128
|
+
name: string;
|
|
129
|
+
template: string;
|
|
130
|
+
recipients: string[];
|
|
131
|
+
}, {
|
|
132
|
+
type: "email_alert";
|
|
133
|
+
name: string;
|
|
134
|
+
template: string;
|
|
135
|
+
recipients: string[];
|
|
136
|
+
}>, z.ZodObject<{
|
|
137
|
+
name: z.ZodString;
|
|
138
|
+
type: z.ZodString;
|
|
139
|
+
options: z.ZodAny;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
type: string;
|
|
142
|
+
name: string;
|
|
143
|
+
options?: any;
|
|
144
|
+
}, {
|
|
145
|
+
type: string;
|
|
146
|
+
name: string;
|
|
147
|
+
options?: any;
|
|
148
|
+
}>]>, "many">>;
|
|
149
|
+
/** Active status */
|
|
150
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
name: string;
|
|
153
|
+
active: boolean;
|
|
154
|
+
objectName: string;
|
|
155
|
+
triggerType: "on_create" | "on_update" | "on_create_or_update" | "on_delete" | "schedule";
|
|
156
|
+
criteria?: string | undefined;
|
|
157
|
+
actions?: ({
|
|
158
|
+
type: "field_update";
|
|
159
|
+
name: string;
|
|
160
|
+
field: string;
|
|
161
|
+
value?: any;
|
|
162
|
+
} | {
|
|
163
|
+
type: "email_alert";
|
|
164
|
+
name: string;
|
|
165
|
+
template: string;
|
|
166
|
+
recipients: string[];
|
|
167
|
+
} | {
|
|
168
|
+
type: string;
|
|
169
|
+
name: string;
|
|
170
|
+
options?: any;
|
|
171
|
+
})[] | undefined;
|
|
172
|
+
}, {
|
|
173
|
+
name: string;
|
|
174
|
+
objectName: string;
|
|
175
|
+
triggerType: "on_create" | "on_update" | "on_create_or_update" | "on_delete" | "schedule";
|
|
176
|
+
active?: boolean | undefined;
|
|
177
|
+
criteria?: string | undefined;
|
|
178
|
+
actions?: ({
|
|
179
|
+
type: "field_update";
|
|
180
|
+
name: string;
|
|
181
|
+
field: string;
|
|
182
|
+
value?: any;
|
|
183
|
+
} | {
|
|
184
|
+
type: "email_alert";
|
|
185
|
+
name: string;
|
|
186
|
+
template: string;
|
|
187
|
+
recipients: string[];
|
|
188
|
+
} | {
|
|
189
|
+
type: string;
|
|
190
|
+
name: string;
|
|
191
|
+
options?: any;
|
|
192
|
+
})[] | undefined;
|
|
193
|
+
}>;
|
|
194
|
+
export type WorkflowRule = z.infer<typeof WorkflowRuleSchema>;
|
|
195
|
+
//# sourceMappingURL=workflow.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.zod.d.ts","sourceRoot":"","sources":["../../src/data/workflow.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,mBAAmB,uFAM9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQ/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC7B,mBAAmB;;IAGnB,oBAAoB;;IAGpB,gCAAgC;;IAGhC;;;OAGG;;IAGH,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGrC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowRuleSchema = exports.WorkflowActionSchema = exports.EmailAlertActionSchema = exports.FieldUpdateActionSchema = exports.WorkflowTriggerType = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Trigger events for workflow automation
|
|
7
|
+
*/
|
|
8
|
+
exports.WorkflowTriggerType = zod_1.z.enum([
|
|
9
|
+
'on_create', // When record is created
|
|
10
|
+
'on_update', // When record is updated
|
|
11
|
+
'on_create_or_update', // Both
|
|
12
|
+
'on_delete', // When record is deleted
|
|
13
|
+
'schedule' // Time-based (cron)
|
|
14
|
+
]);
|
|
15
|
+
/**
|
|
16
|
+
* Schema for Workflow Field Update Action
|
|
17
|
+
*/
|
|
18
|
+
exports.FieldUpdateActionSchema = zod_1.z.object({
|
|
19
|
+
name: zod_1.z.string().describe('Action name'),
|
|
20
|
+
type: zod_1.z.literal('field_update'),
|
|
21
|
+
field: zod_1.z.string().describe('Field to update'),
|
|
22
|
+
value: zod_1.z.any().describe('Value or Formula to set'),
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* Schema for Workflow Email Alert Action
|
|
26
|
+
*/
|
|
27
|
+
exports.EmailAlertActionSchema = zod_1.z.object({
|
|
28
|
+
name: zod_1.z.string().describe('Action name'),
|
|
29
|
+
type: zod_1.z.literal('email_alert'),
|
|
30
|
+
template: zod_1.z.string().describe('Email template ID/DevName'),
|
|
31
|
+
recipients: zod_1.z.array(zod_1.z.string()).describe('List of recipient emails or user IDs'),
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* Generic Workflow Action Wrapper
|
|
35
|
+
*/
|
|
36
|
+
exports.WorkflowActionSchema = zod_1.z.union([
|
|
37
|
+
exports.FieldUpdateActionSchema,
|
|
38
|
+
exports.EmailAlertActionSchema,
|
|
39
|
+
zod_1.z.object({
|
|
40
|
+
name: zod_1.z.string(),
|
|
41
|
+
type: zod_1.z.string(),
|
|
42
|
+
options: zod_1.z.any()
|
|
43
|
+
})
|
|
44
|
+
]);
|
|
45
|
+
/**
|
|
46
|
+
* Schema for Workflow Rules (Automation)
|
|
47
|
+
*/
|
|
48
|
+
exports.WorkflowRuleSchema = zod_1.z.object({
|
|
49
|
+
/** Machine name */
|
|
50
|
+
name: zod_1.z.string().regex(/^[a-z_][a-z0-9_]*$/).describe('Unique workflow name'),
|
|
51
|
+
/** Target Object */
|
|
52
|
+
objectName: zod_1.z.string().describe('Target Object'),
|
|
53
|
+
/** When to evaluate the rule */
|
|
54
|
+
triggerType: exports.WorkflowTriggerType.describe('When to evaluate'),
|
|
55
|
+
/**
|
|
56
|
+
* Condition to start the workflow.
|
|
57
|
+
* If empty, runs on every trigger event.
|
|
58
|
+
*/
|
|
59
|
+
criteria: zod_1.z.string().optional().describe('Formula condition. If TRUE, actions execute.'),
|
|
60
|
+
/** Actions to execute immediately */
|
|
61
|
+
actions: zod_1.z.array(exports.WorkflowActionSchema).optional().describe('Immediate actions'),
|
|
62
|
+
/** Active status */
|
|
63
|
+
active: zod_1.z.boolean().default(true).describe('Whether this workflow is active'),
|
|
64
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* @objectstack/spec
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* It defines the contract between backend (ObjectQL) parsers and frontend (ObjectUI) renderers.
|
|
4
|
+
* ObjectStack Protocol & Specification
|
|
6
5
|
*
|
|
7
|
-
*
|
|
6
|
+
* This package contains the core interfaces, schemas, and conventions for the ObjectStack ecosystem.
|
|
7
|
+
* All types and schemas are centralized here.
|
|
8
8
|
*/
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './data/field.zod';
|
|
10
|
+
export * from './data/object.zod';
|
|
11
|
+
export * from './data/validation.zod';
|
|
12
|
+
export * from './data/permission.zod';
|
|
13
|
+
export * from './data/sharing.zod';
|
|
14
|
+
export * from './data/workflow.zod';
|
|
15
|
+
export * from './data/flow.zod';
|
|
16
|
+
export * from './data/dataset.zod';
|
|
17
|
+
export * from './data/query.zod';
|
|
18
|
+
export * from './data/mapping.zod';
|
|
19
|
+
export * from './ai/agent.zod';
|
|
20
|
+
export * from './ui/app.zod';
|
|
21
|
+
export * from './ui/view.zod';
|
|
22
|
+
export * from './ui/dashboard.zod';
|
|
23
|
+
export * from './ui/report.zod';
|
|
24
|
+
export * from './ui/action.zod';
|
|
25
|
+
export * from './ui/page.zod';
|
|
26
|
+
export * from './system/manifest.zod';
|
|
27
|
+
export * from './system/datasource.zod';
|
|
28
|
+
export * from './system/api.zod';
|
|
29
|
+
export * from './system/identity.zod';
|
|
30
|
+
export * from './system/policy.zod';
|
|
31
|
+
export * from './system/role.zod';
|
|
32
|
+
export * from './system/territory.zod';
|
|
33
|
+
export * from './system/license.zod';
|
|
34
|
+
export * from './system/webhook.zod';
|
|
35
|
+
export * from './system/translation.zod';
|
|
36
|
+
export * from './system/constants';
|
|
37
|
+
export * from './system/types';
|
|
10
38
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAG9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
+
* @objectstack/spec
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
* It defines the contract between backend (ObjectQL) parsers and frontend (ObjectUI) renderers.
|
|
5
|
+
* ObjectStack Protocol & Specification
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* This package contains the core interfaces, schemas, and conventions for the ObjectStack ecosystem.
|
|
8
|
+
* All types and schemas are centralized here.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
14
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
// Data Protocol (Schema, Validation, Logic)
|
|
26
|
+
__exportStar(require("./data/field.zod"), exports);
|
|
27
|
+
__exportStar(require("./data/object.zod"), exports);
|
|
28
|
+
__exportStar(require("./data/validation.zod"), exports);
|
|
29
|
+
__exportStar(require("./data/permission.zod"), exports);
|
|
30
|
+
__exportStar(require("./data/sharing.zod"), exports);
|
|
31
|
+
__exportStar(require("./data/workflow.zod"), exports);
|
|
32
|
+
__exportStar(require("./data/flow.zod"), exports);
|
|
33
|
+
__exportStar(require("./data/dataset.zod"), exports);
|
|
34
|
+
__exportStar(require("./data/query.zod"), exports);
|
|
35
|
+
__exportStar(require("./data/mapping.zod"), exports);
|
|
36
|
+
// AI Protocol (Agent, RAG)
|
|
37
|
+
__exportStar(require("./ai/agent.zod"), exports);
|
|
38
|
+
// UI Protocol (Layout, Navigation, Interaction)
|
|
39
|
+
__exportStar(require("./ui/app.zod"), exports);
|
|
40
|
+
__exportStar(require("./ui/view.zod"), exports);
|
|
41
|
+
__exportStar(require("./ui/dashboard.zod"), exports);
|
|
42
|
+
__exportStar(require("./ui/report.zod"), exports);
|
|
43
|
+
__exportStar(require("./ui/action.zod"), exports);
|
|
44
|
+
__exportStar(require("./ui/page.zod"), exports);
|
|
45
|
+
// System Protocol (Manifest, Runtime, Constants)
|
|
46
|
+
__exportStar(require("./system/manifest.zod"), exports);
|
|
47
|
+
__exportStar(require("./system/datasource.zod"), exports);
|
|
48
|
+
__exportStar(require("./system/api.zod"), exports);
|
|
49
|
+
__exportStar(require("./system/identity.zod"), exports);
|
|
50
|
+
__exportStar(require("./system/policy.zod"), exports);
|
|
51
|
+
__exportStar(require("./system/role.zod"), exports);
|
|
52
|
+
__exportStar(require("./system/territory.zod"), exports);
|
|
53
|
+
__exportStar(require("./system/license.zod"), exports);
|
|
54
|
+
__exportStar(require("./system/webhook.zod"), exports);
|
|
55
|
+
__exportStar(require("./system/translation.zod"), exports);
|
|
56
|
+
__exportStar(require("./system/constants"), exports);
|
|
57
|
+
__exportStar(require("./system/types"), exports);
|