@objectstack/spec 0.3.1 → 0.3.2
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/api/contract.zod.d.ts +4 -4
- package/dist/ui/view.zod.d.ts +2315 -54
- package/dist/ui/view.zod.d.ts.map +1 -1
- package/dist/ui/view.zod.js +102 -3
- package/json-schema/ui/FormField.json +61 -0
- package/json-schema/ui/FormSection.json +60 -1
- package/json-schema/ui/FormView.json +257 -2
- package/json-schema/ui/HttpMethod.json +16 -0
- package/json-schema/ui/HttpRequest.json +46 -0
- package/json-schema/ui/ListColumn.json +57 -0
- package/json-schema/ui/ListView.json +249 -4
- package/json-schema/ui/PaginationConfig.json +26 -0
- package/json-schema/ui/SelectionConfig.json +22 -0
- package/json-schema/ui/View.json +1012 -12
- package/json-schema/ui/ViewData.json +142 -0
- package/package.json +1 -1
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ViewData",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ViewData": {
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"provider": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "object"
|
|
12
|
+
},
|
|
13
|
+
"object": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Target object name"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"provider",
|
|
20
|
+
"object"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"provider": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"const": "api"
|
|
30
|
+
},
|
|
31
|
+
"read": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"url": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "API endpoint URL"
|
|
37
|
+
},
|
|
38
|
+
"method": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"GET",
|
|
42
|
+
"POST",
|
|
43
|
+
"PUT",
|
|
44
|
+
"PATCH",
|
|
45
|
+
"DELETE"
|
|
46
|
+
],
|
|
47
|
+
"default": "GET",
|
|
48
|
+
"description": "HTTP method"
|
|
49
|
+
},
|
|
50
|
+
"headers": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"additionalProperties": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"description": "Custom HTTP headers"
|
|
56
|
+
},
|
|
57
|
+
"params": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": {},
|
|
60
|
+
"description": "Query parameters"
|
|
61
|
+
},
|
|
62
|
+
"body": {
|
|
63
|
+
"description": "Request body for POST/PUT/PATCH"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"url"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"description": "Configuration for fetching data"
|
|
71
|
+
},
|
|
72
|
+
"write": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"url": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "API endpoint URL"
|
|
78
|
+
},
|
|
79
|
+
"method": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"enum": [
|
|
82
|
+
"GET",
|
|
83
|
+
"POST",
|
|
84
|
+
"PUT",
|
|
85
|
+
"PATCH",
|
|
86
|
+
"DELETE"
|
|
87
|
+
],
|
|
88
|
+
"default": "GET",
|
|
89
|
+
"description": "HTTP method"
|
|
90
|
+
},
|
|
91
|
+
"headers": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"description": "Custom HTTP headers"
|
|
97
|
+
},
|
|
98
|
+
"params": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": {},
|
|
101
|
+
"description": "Query parameters"
|
|
102
|
+
},
|
|
103
|
+
"body": {
|
|
104
|
+
"description": "Request body for POST/PUT/PATCH"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": [
|
|
108
|
+
"url"
|
|
109
|
+
],
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"description": "Configuration for submitting data (for forms/editable tables)"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": [
|
|
115
|
+
"provider"
|
|
116
|
+
],
|
|
117
|
+
"additionalProperties": false
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"provider": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"const": "value"
|
|
125
|
+
},
|
|
126
|
+
"items": {
|
|
127
|
+
"type": "array",
|
|
128
|
+
"items": {},
|
|
129
|
+
"description": "Static data array"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": [
|
|
133
|
+
"provider",
|
|
134
|
+
"items"
|
|
135
|
+
],
|
|
136
|
+
"additionalProperties": false
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
142
|
+
}
|
package/package.json
CHANGED