@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.
Files changed (231) hide show
  1. package/README.md +66 -125
  2. package/dist/ai/agent.zod.d.ts +164 -0
  3. package/dist/ai/agent.zod.d.ts.map +1 -0
  4. package/dist/ai/agent.zod.js +51 -0
  5. package/dist/data/dataset.zod.d.ts +60 -0
  6. package/dist/data/dataset.zod.d.ts.map +1 -0
  7. package/dist/data/dataset.zod.js +54 -0
  8. package/dist/data/field.zod.d.ts +170 -0
  9. package/dist/data/field.zod.d.ts.map +1 -0
  10. package/dist/data/field.zod.js +81 -0
  11. package/dist/data/flow.zod.d.ts +242 -0
  12. package/dist/data/flow.zod.d.ts.map +1 -0
  13. package/dist/data/flow.zod.js +77 -0
  14. package/dist/data/mapping.zod.d.ts +257 -0
  15. package/dist/data/mapping.zod.d.ts.map +1 -0
  16. package/dist/data/mapping.zod.js +65 -0
  17. package/dist/data/object.zod.d.ts +364 -0
  18. package/dist/data/object.zod.d.ts.map +1 -0
  19. package/dist/data/object.zod.js +54 -0
  20. package/dist/data/permission.zod.d.ts +163 -0
  21. package/dist/data/permission.zod.d.ts.map +1 -0
  22. package/dist/data/permission.zod.js +62 -0
  23. package/dist/data/query.zod.d.ts +89 -0
  24. package/dist/data/query.zod.d.ts.map +1 -0
  25. package/dist/data/query.zod.js +71 -0
  26. package/dist/data/sharing.zod.d.ts +63 -0
  27. package/dist/data/sharing.zod.d.ts.map +1 -0
  28. package/dist/data/sharing.zod.js +57 -0
  29. package/dist/data/validation.zod.d.ts +236 -0
  30. package/dist/data/validation.zod.d.ts.map +1 -0
  31. package/dist/data/validation.zod.js +59 -0
  32. package/dist/data/workflow.zod.d.ts +195 -0
  33. package/dist/data/workflow.zod.d.ts.map +1 -0
  34. package/dist/data/workflow.zod.js +64 -0
  35. package/dist/index.d.ts +33 -5
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +53 -5
  38. package/dist/system/api.zod.d.ts +168 -0
  39. package/dist/system/api.zod.d.ts.map +1 -0
  40. package/dist/system/api.zod.js +53 -0
  41. package/dist/system/constants/index.d.ts +11 -0
  42. package/dist/system/constants/index.d.ts.map +1 -0
  43. package/dist/system/constants/index.js +26 -0
  44. package/dist/system/constants/paths.d.ts +71 -0
  45. package/dist/system/constants/paths.d.ts.map +1 -0
  46. package/dist/system/constants/paths.js +65 -0
  47. package/dist/system/datasource.zod.d.ts +127 -0
  48. package/dist/system/datasource.zod.d.ts.map +1 -0
  49. package/dist/system/datasource.zod.js +62 -0
  50. package/dist/system/identity.zod.d.ts +204 -0
  51. package/dist/system/identity.zod.d.ts.map +1 -0
  52. package/dist/system/identity.zod.js +68 -0
  53. package/dist/system/license.zod.d.ts +110 -0
  54. package/dist/system/license.zod.d.ts.map +1 -0
  55. package/dist/system/license.zod.js +63 -0
  56. package/dist/system/manifest.zod.d.ts +126 -0
  57. package/dist/system/manifest.zod.d.ts.map +1 -0
  58. package/dist/system/manifest.zod.js +68 -0
  59. package/dist/system/policy.zod.d.ts +209 -0
  60. package/dist/system/policy.zod.d.ts.map +1 -0
  61. package/dist/system/policy.zod.js +54 -0
  62. package/dist/system/role.zod.d.ts +34 -0
  63. package/dist/system/role.zod.d.ts.map +1 -0
  64. package/dist/system/role.zod.js +25 -0
  65. package/dist/system/territory.zod.d.ts +91 -0
  66. package/dist/system/territory.zod.d.ts.map +1 -0
  67. package/dist/system/territory.zod.js +64 -0
  68. package/dist/system/translation.zod.d.ts +171 -0
  69. package/dist/system/translation.zod.d.ts.map +1 -0
  70. package/dist/system/translation.zod.js +34 -0
  71. package/dist/system/types/index.d.ts +7 -0
  72. package/dist/system/types/index.d.ts.map +1 -0
  73. package/dist/system/types/index.js +22 -0
  74. package/dist/system/types/plugin.d.ts +113 -0
  75. package/dist/system/types/plugin.d.ts.map +1 -0
  76. package/dist/system/types/plugin.js +6 -0
  77. package/dist/system/webhook.zod.d.ts +106 -0
  78. package/dist/system/webhook.zod.d.ts.map +1 -0
  79. package/dist/system/webhook.zod.js +56 -0
  80. package/dist/ui/action.zod.d.ts +148 -0
  81. package/dist/ui/action.zod.d.ts.map +1 -0
  82. package/dist/ui/action.zod.js +48 -0
  83. package/dist/ui/app.zod.d.ts +299 -0
  84. package/dist/ui/app.zod.d.ts.map +1 -0
  85. package/dist/ui/app.zod.js +127 -0
  86. package/dist/ui/dashboard.zod.d.ts +207 -0
  87. package/dist/ui/dashboard.zod.d.ts.map +1 -0
  88. package/dist/ui/dashboard.zod.js +66 -0
  89. package/dist/ui/page.zod.d.ts +187 -0
  90. package/dist/ui/page.zod.d.ts.map +1 -0
  91. package/dist/ui/page.zod.js +48 -0
  92. package/dist/ui/report.zod.d.ts +224 -0
  93. package/dist/ui/report.zod.d.ts.map +1 -0
  94. package/dist/ui/report.zod.js +68 -0
  95. package/dist/ui/view.zod.d.ts +887 -0
  96. package/dist/ui/view.zod.d.ts.map +1 -0
  97. package/dist/ui/view.zod.js +83 -0
  98. package/json-schema/AIKnowledge.json +30 -0
  99. package/json-schema/AIModelConfig.json +41 -0
  100. package/json-schema/AITool.json +33 -0
  101. package/json-schema/Action.json +156 -0
  102. package/json-schema/ActionParam.json +76 -0
  103. package/json-schema/Agent.json +140 -0
  104. package/json-schema/ApiEndpoint.json +162 -0
  105. package/json-schema/ApiMapping.json +28 -0
  106. package/json-schema/App.json +286 -0
  107. package/json-schema/AppBranding.json +24 -0
  108. package/json-schema/AuditPolicy.json +31 -0
  109. package/json-schema/AuthProtocol.json +17 -0
  110. package/json-schema/AuthProvider.json +171 -0
  111. package/json-schema/CalendarConfig.json +28 -0
  112. package/json-schema/ChartType.json +19 -0
  113. package/json-schema/Dashboard.json +117 -0
  114. package/json-schema/DashboardNavItem.json +42 -0
  115. package/json-schema/DashboardWidget.json +89 -0
  116. package/json-schema/Dataset.json +63 -0
  117. package/json-schema/DatasetMode.json +16 -0
  118. package/json-schema/Datasource.json +93 -0
  119. package/json-schema/DatasourceCapabilities.json +36 -0
  120. package/json-schema/DriverType.json +27 -0
  121. package/json-schema/EmailAlertAction.json +37 -0
  122. package/json-schema/Feature.json +51 -0
  123. package/json-schema/Field.json +219 -0
  124. package/json-schema/FieldMapping.json +83 -0
  125. package/json-schema/FieldNode.json +32 -0
  126. package/json-schema/FieldPermission.json +22 -0
  127. package/json-schema/FieldType.json +36 -0
  128. package/json-schema/FieldUpdateAction.json +32 -0
  129. package/json-schema/FilterNode.json +52 -0
  130. package/json-schema/FilterOperator.json +26 -0
  131. package/json-schema/Flow.json +186 -0
  132. package/json-schema/FlowEdge.json +37 -0
  133. package/json-schema/FlowNode.json +65 -0
  134. package/json-schema/FlowNodeAction.json +24 -0
  135. package/json-schema/FlowVariable.json +34 -0
  136. package/json-schema/FormSection.json +42 -0
  137. package/json-schema/FormView.json +99 -0
  138. package/json-schema/FormatValidation.json +59 -0
  139. package/json-schema/GanttConfig.json +32 -0
  140. package/json-schema/GroupNavItem.json +42 -0
  141. package/json-schema/HttpMethod.json +16 -0
  142. package/json-schema/Index.json +30 -0
  143. package/json-schema/KanbanConfig.json +31 -0
  144. package/json-schema/LDAPConfig.json +39 -0
  145. package/json-schema/License.json +57 -0
  146. package/json-schema/ListView.json +153 -0
  147. package/json-schema/Locale.json +10 -0
  148. package/json-schema/LogicOperator.json +14 -0
  149. package/json-schema/Manifest.json +90 -0
  150. package/json-schema/Mapping.json +270 -0
  151. package/json-schema/MenuItem.json +28 -0
  152. package/json-schema/MetricType.json +14 -0
  153. package/json-schema/NavigationItem.json +214 -0
  154. package/json-schema/NetworkPolicy.json +31 -0
  155. package/json-schema/OIDCConfig.json +46 -0
  156. package/json-schema/OWDModel.json +14 -0
  157. package/json-schema/Object.json +331 -0
  158. package/json-schema/ObjectCapabilities.json +36 -0
  159. package/json-schema/ObjectNavItem.json +46 -0
  160. package/json-schema/ObjectPermission.json +42 -0
  161. package/json-schema/Page.json +117 -0
  162. package/json-schema/PageComponent.json +36 -0
  163. package/json-schema/PageNavItem.json +47 -0
  164. package/json-schema/PageRegion.json +63 -0
  165. package/json-schema/PasswordPolicy.json +41 -0
  166. package/json-schema/PermissionSet.json +96 -0
  167. package/json-schema/Plan.json +53 -0
  168. package/json-schema/Policy.json +138 -0
  169. package/json-schema/Query.json +128 -0
  170. package/json-schema/RateLimit.json +26 -0
  171. package/json-schema/Report.json +219 -0
  172. package/json-schema/ReportChart.json +45 -0
  173. package/json-schema/ReportColumn.json +35 -0
  174. package/json-schema/ReportGrouping.json +38 -0
  175. package/json-schema/ReportType.json +15 -0
  176. package/json-schema/Role.json +32 -0
  177. package/json-schema/SAMLConfig.json +44 -0
  178. package/json-schema/ScriptValidation.json +48 -0
  179. package/json-schema/SelectOption.json +32 -0
  180. package/json-schema/SessionPolicy.json +27 -0
  181. package/json-schema/SharingLevel.json +13 -0
  182. package/json-schema/SharingRule.json +58 -0
  183. package/json-schema/SharingRuleType.json +15 -0
  184. package/json-schema/SortNode.json +26 -0
  185. package/json-schema/StateMachineValidation.json +59 -0
  186. package/json-schema/Territory.json +77 -0
  187. package/json-schema/TerritoryModel.json +34 -0
  188. package/json-schema/TerritoryType.json +15 -0
  189. package/json-schema/TransformType.json +18 -0
  190. package/json-schema/TranslationBundle.json +78 -0
  191. package/json-schema/TranslationData.json +75 -0
  192. package/json-schema/UniquenessValidation.json +59 -0
  193. package/json-schema/UrlNavItem.json +51 -0
  194. package/json-schema/ValidationRule.json +211 -0
  195. package/json-schema/View.json +500 -0
  196. package/json-schema/Webhook.json +88 -0
  197. package/json-schema/WebhookReceiver.json +66 -0
  198. package/json-schema/WebhookTriggerType.json +16 -0
  199. package/json-schema/WorkflowAction.json +84 -0
  200. package/json-schema/WorkflowRule.json +128 -0
  201. package/json-schema/WorkflowTriggerType.json +16 -0
  202. package/package.json +28 -19
  203. package/dist/examples.d.ts +0 -28
  204. package/dist/examples.d.ts.map +0 -1
  205. package/dist/examples.js +0 -250
  206. package/dist/types/index.d.ts +0 -9
  207. package/dist/types/index.d.ts.map +0 -1
  208. package/dist/types/index.js +0 -8
  209. package/dist/types/meta/field-type.d.ts +0 -54
  210. package/dist/types/meta/field-type.d.ts.map +0 -1
  211. package/dist/types/meta/field-type.js +0 -42
  212. package/dist/types/meta/index.d.ts +0 -13
  213. package/dist/types/meta/index.d.ts.map +0 -1
  214. package/dist/types/meta/index.js +0 -12
  215. package/dist/types/meta/object-entity.d.ts +0 -246
  216. package/dist/types/meta/object-entity.d.ts.map +0 -1
  217. package/dist/types/meta/object-entity.js +0 -9
  218. package/dist/types/meta/object-field.d.ts +0 -199
  219. package/dist/types/meta/object-field.d.ts.map +0 -1
  220. package/dist/types/meta/object-field.js +0 -9
  221. package/dist/types/meta/object-view.d.ts +0 -430
  222. package/dist/types/meta/object-view.d.ts.map +0 -1
  223. package/dist/types/meta/object-view.js +0 -9
  224. package/src/examples.ts +0 -257
  225. package/src/index.ts +0 -10
  226. package/src/types/index.ts +0 -9
  227. package/src/types/meta/field-type.ts +0 -91
  228. package/src/types/meta/index.ts +0 -13
  229. package/src/types/meta/object-entity.ts +0 -265
  230. package/src/types/meta/object-field.ts +0 -218
  231. package/src/types/meta/object-view.ts +0 -475
@@ -0,0 +1,31 @@
1
+ {
2
+ "$ref": "#/definitions/KanbanConfig",
3
+ "definitions": {
4
+ "KanbanConfig": {
5
+ "type": "object",
6
+ "properties": {
7
+ "groupByField": {
8
+ "type": "string",
9
+ "description": "Field to group columns by (usually status/select)"
10
+ },
11
+ "summarizeField": {
12
+ "type": "string",
13
+ "description": "Field to sum at top of column (e.g. amount)"
14
+ },
15
+ "columns": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string"
19
+ },
20
+ "description": "Fields to show on cards"
21
+ }
22
+ },
23
+ "required": [
24
+ "groupByField",
25
+ "columns"
26
+ ],
27
+ "additionalProperties": false
28
+ }
29
+ },
30
+ "$schema": "http://json-schema.org/draft-07/schema#"
31
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$ref": "#/definitions/LDAPConfig",
3
+ "definitions": {
4
+ "LDAPConfig": {
5
+ "type": "object",
6
+ "properties": {
7
+ "url": {
8
+ "type": "string",
9
+ "format": "uri",
10
+ "description": "LDAP Server URL (ldap:// or ldaps://)"
11
+ },
12
+ "bindDn": {
13
+ "type": "string"
14
+ },
15
+ "bindCredentials": {
16
+ "type": "string"
17
+ },
18
+ "searchBase": {
19
+ "type": "string"
20
+ },
21
+ "searchFilter": {
22
+ "type": "string"
23
+ },
24
+ "groupSearchBase": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "url",
30
+ "bindDn",
31
+ "bindCredentials",
32
+ "searchBase",
33
+ "searchFilter"
34
+ ],
35
+ "additionalProperties": false
36
+ }
37
+ },
38
+ "$schema": "http://json-schema.org/draft-07/schema#"
39
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "$ref": "#/definitions/License",
3
+ "definitions": {
4
+ "License": {
5
+ "type": "object",
6
+ "properties": {
7
+ "tenantId": {
8
+ "type": "string"
9
+ },
10
+ "planCode": {
11
+ "type": "string"
12
+ },
13
+ "issuedAt": {
14
+ "type": "string",
15
+ "format": "date-time"
16
+ },
17
+ "expiresAt": {
18
+ "type": "string",
19
+ "format": "date-time"
20
+ },
21
+ "status": {
22
+ "type": "string",
23
+ "enum": [
24
+ "active",
25
+ "expired",
26
+ "suspended",
27
+ "trial"
28
+ ]
29
+ },
30
+ "customFeatures": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "customLimits": {
37
+ "type": "object",
38
+ "additionalProperties": {
39
+ "type": "number"
40
+ }
41
+ },
42
+ "signature": {
43
+ "type": "string",
44
+ "description": "Cryptographic signature of the license"
45
+ }
46
+ },
47
+ "required": [
48
+ "tenantId",
49
+ "planCode",
50
+ "issuedAt",
51
+ "status"
52
+ ],
53
+ "additionalProperties": false
54
+ }
55
+ },
56
+ "$schema": "http://json-schema.org/draft-07/schema#"
57
+ }
@@ -0,0 +1,153 @@
1
+ {
2
+ "$ref": "#/definitions/ListView",
3
+ "definitions": {
4
+ "ListView": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string"
9
+ },
10
+ "label": {
11
+ "type": "string"
12
+ },
13
+ "type": {
14
+ "type": "string",
15
+ "enum": [
16
+ "grid",
17
+ "kanban",
18
+ "calendar",
19
+ "gantt",
20
+ "map"
21
+ ],
22
+ "default": "grid"
23
+ },
24
+ "columns": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string"
28
+ },
29
+ "description": "Fields to display as columns"
30
+ },
31
+ "filter": {
32
+ "type": "array",
33
+ "description": "Filter criteria (JSON Rules)"
34
+ },
35
+ "sort": {
36
+ "anyOf": [
37
+ {
38
+ "type": "string"
39
+ },
40
+ {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "object",
44
+ "properties": {
45
+ "field": {
46
+ "type": "string"
47
+ },
48
+ "order": {
49
+ "type": "string",
50
+ "enum": [
51
+ "asc",
52
+ "desc"
53
+ ]
54
+ }
55
+ },
56
+ "required": [
57
+ "field",
58
+ "order"
59
+ ],
60
+ "additionalProperties": false
61
+ }
62
+ }
63
+ ]
64
+ },
65
+ "searchableFields": {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "string"
69
+ },
70
+ "description": "Fields enabled for search"
71
+ },
72
+ "kanban": {
73
+ "type": "object",
74
+ "properties": {
75
+ "groupByField": {
76
+ "type": "string",
77
+ "description": "Field to group columns by (usually status/select)"
78
+ },
79
+ "summarizeField": {
80
+ "type": "string",
81
+ "description": "Field to sum at top of column (e.g. amount)"
82
+ },
83
+ "columns": {
84
+ "type": "array",
85
+ "items": {
86
+ "type": "string"
87
+ },
88
+ "description": "Fields to show on cards"
89
+ }
90
+ },
91
+ "required": [
92
+ "groupByField",
93
+ "columns"
94
+ ],
95
+ "additionalProperties": false
96
+ },
97
+ "calendar": {
98
+ "type": "object",
99
+ "properties": {
100
+ "startDateField": {
101
+ "type": "string"
102
+ },
103
+ "endDateField": {
104
+ "type": "string"
105
+ },
106
+ "titleField": {
107
+ "type": "string"
108
+ },
109
+ "colorField": {
110
+ "type": "string"
111
+ }
112
+ },
113
+ "required": [
114
+ "startDateField",
115
+ "titleField"
116
+ ],
117
+ "additionalProperties": false
118
+ },
119
+ "gantt": {
120
+ "type": "object",
121
+ "properties": {
122
+ "startDateField": {
123
+ "type": "string"
124
+ },
125
+ "endDateField": {
126
+ "type": "string"
127
+ },
128
+ "titleField": {
129
+ "type": "string"
130
+ },
131
+ "progressField": {
132
+ "type": "string"
133
+ },
134
+ "dependenciesField": {
135
+ "type": "string"
136
+ }
137
+ },
138
+ "required": [
139
+ "startDateField",
140
+ "endDateField",
141
+ "titleField"
142
+ ],
143
+ "additionalProperties": false
144
+ }
145
+ },
146
+ "required": [
147
+ "columns"
148
+ ],
149
+ "additionalProperties": false
150
+ }
151
+ },
152
+ "$schema": "http://json-schema.org/draft-07/schema#"
153
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$ref": "#/definitions/Locale",
3
+ "definitions": {
4
+ "Locale": {
5
+ "type": "string",
6
+ "description": "BCP-47 Language Tag (e.g. en-US, zh-CN)"
7
+ }
8
+ },
9
+ "$schema": "http://json-schema.org/draft-07/schema#"
10
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$ref": "#/definitions/LogicOperator",
3
+ "definitions": {
4
+ "LogicOperator": {
5
+ "type": "string",
6
+ "enum": [
7
+ "and",
8
+ "or",
9
+ "not"
10
+ ]
11
+ }
12
+ },
13
+ "$schema": "http://json-schema.org/draft-07/schema#"
14
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "$ref": "#/definitions/Manifest",
3
+ "definitions": {
4
+ "Manifest": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "description": "Unique package identifier (reverse domain style)"
10
+ },
11
+ "version": {
12
+ "type": "string",
13
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
14
+ "description": "Package version (semantic versioning)"
15
+ },
16
+ "type": {
17
+ "type": "string",
18
+ "enum": [
19
+ "app",
20
+ "plugin",
21
+ "driver",
22
+ "module"
23
+ ],
24
+ "description": "Type of package"
25
+ },
26
+ "name": {
27
+ "type": "string",
28
+ "description": "Human-readable package name"
29
+ },
30
+ "description": {
31
+ "type": "string",
32
+ "description": "Package description"
33
+ },
34
+ "permissions": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string"
38
+ },
39
+ "description": "Array of required permission strings"
40
+ },
41
+ "menus": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "label": {
47
+ "type": "string",
48
+ "description": "Display label for the menu item"
49
+ },
50
+ "path": {
51
+ "type": "string",
52
+ "description": "Navigation path (route) for the menu item"
53
+ },
54
+ "icon": {
55
+ "type": "string",
56
+ "description": "Optional icon identifier for the menu item"
57
+ }
58
+ },
59
+ "required": [
60
+ "label",
61
+ "path"
62
+ ],
63
+ "additionalProperties": false
64
+ },
65
+ "description": "Navigation menu structure"
66
+ },
67
+ "objects": {
68
+ "type": "array",
69
+ "items": {
70
+ "type": "string"
71
+ },
72
+ "description": "Glob patterns for ObjectQL schemas files"
73
+ },
74
+ "extensions": {
75
+ "type": "object",
76
+ "additionalProperties": {},
77
+ "description": "Extension points and contributions"
78
+ }
79
+ },
80
+ "required": [
81
+ "id",
82
+ "version",
83
+ "type",
84
+ "name"
85
+ ],
86
+ "additionalProperties": false
87
+ }
88
+ },
89
+ "$schema": "http://json-schema.org/draft-07/schema#"
90
+ }
@@ -0,0 +1,270 @@
1
+ {
2
+ "$ref": "#/definitions/Mapping",
3
+ "definitions": {
4
+ "Mapping": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "pattern": "^[a-z_][a-z0-9_]*$"
10
+ },
11
+ "label": {
12
+ "type": "string"
13
+ },
14
+ "sourceFormat": {
15
+ "type": "string",
16
+ "enum": [
17
+ "csv",
18
+ "json",
19
+ "xml",
20
+ "sql"
21
+ ],
22
+ "default": "csv"
23
+ },
24
+ "targetObject": {
25
+ "type": "string",
26
+ "description": "Target Object Name"
27
+ },
28
+ "fieldMapping": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "object",
32
+ "properties": {
33
+ "source": {
34
+ "anyOf": [
35
+ {
36
+ "type": "string"
37
+ },
38
+ {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string"
42
+ }
43
+ }
44
+ ],
45
+ "description": "Source column header(s)"
46
+ },
47
+ "target": {
48
+ "anyOf": [
49
+ {
50
+ "type": "string"
51
+ },
52
+ {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "string"
56
+ }
57
+ }
58
+ ],
59
+ "description": "Target object field(s)"
60
+ },
61
+ "transform": {
62
+ "type": "string",
63
+ "enum": [
64
+ "none",
65
+ "constant",
66
+ "lookup",
67
+ "split",
68
+ "join",
69
+ "javascript",
70
+ "map"
71
+ ],
72
+ "default": "none"
73
+ },
74
+ "params": {
75
+ "type": "object",
76
+ "properties": {
77
+ "value": {},
78
+ "object": {
79
+ "type": "string"
80
+ },
81
+ "fromField": {
82
+ "type": "string"
83
+ },
84
+ "toField": {
85
+ "type": "string"
86
+ },
87
+ "autoCreate": {
88
+ "type": "boolean"
89
+ },
90
+ "valueMap": {
91
+ "type": "object",
92
+ "additionalProperties": {}
93
+ },
94
+ "separator": {
95
+ "type": "string"
96
+ }
97
+ },
98
+ "additionalProperties": false
99
+ }
100
+ },
101
+ "required": [
102
+ "source",
103
+ "target"
104
+ ],
105
+ "additionalProperties": false
106
+ }
107
+ },
108
+ "mode": {
109
+ "type": "string",
110
+ "enum": [
111
+ "insert",
112
+ "update",
113
+ "upsert"
114
+ ],
115
+ "default": "insert"
116
+ },
117
+ "upsertKey": {
118
+ "type": "array",
119
+ "items": {
120
+ "type": "string"
121
+ },
122
+ "description": "Fields to match for upsert (e.g. email)"
123
+ },
124
+ "extractQuery": {
125
+ "type": "object",
126
+ "properties": {
127
+ "object": {
128
+ "type": "string",
129
+ "description": "Object name (e.g. account)"
130
+ },
131
+ "fields": {
132
+ "type": "array",
133
+ "items": {
134
+ "anyOf": [
135
+ {
136
+ "type": "string"
137
+ },
138
+ {
139
+ "type": "object",
140
+ "properties": {
141
+ "field": {
142
+ "type": "string"
143
+ },
144
+ "fields": {
145
+ "type": "array",
146
+ "items": {}
147
+ },
148
+ "alias": {
149
+ "type": "string"
150
+ }
151
+ },
152
+ "required": [
153
+ "field"
154
+ ],
155
+ "additionalProperties": false
156
+ }
157
+ ]
158
+ },
159
+ "description": "Fields to retrieve"
160
+ },
161
+ "filters": {
162
+ "anyOf": [
163
+ {
164
+ "type": "array",
165
+ "minItems": 3,
166
+ "maxItems": 3,
167
+ "items": [
168
+ {
169
+ "type": "string"
170
+ },
171
+ {
172
+ "type": "string",
173
+ "enum": [
174
+ "=",
175
+ "!=",
176
+ "<>",
177
+ ">",
178
+ ">=",
179
+ "<",
180
+ "<=",
181
+ "startswith",
182
+ "contains",
183
+ "notcontains",
184
+ "between",
185
+ "in",
186
+ "notin",
187
+ "is_null",
188
+ "is_not_null"
189
+ ]
190
+ },
191
+ {}
192
+ ]
193
+ },
194
+ {
195
+ "type": "array",
196
+ "items": {
197
+ "anyOf": [
198
+ {
199
+ "type": "string"
200
+ },
201
+ {}
202
+ ]
203
+ }
204
+ }
205
+ ],
206
+ "description": "Filtering criteria"
207
+ },
208
+ "sort": {
209
+ "type": "array",
210
+ "items": {
211
+ "type": "object",
212
+ "properties": {
213
+ "field": {
214
+ "type": "string"
215
+ },
216
+ "order": {
217
+ "type": "string",
218
+ "enum": [
219
+ "asc",
220
+ "desc"
221
+ ],
222
+ "default": "asc"
223
+ }
224
+ },
225
+ "required": [
226
+ "field"
227
+ ],
228
+ "additionalProperties": false
229
+ },
230
+ "description": "Sorting instructions"
231
+ },
232
+ "top": {
233
+ "type": "number",
234
+ "description": "Limit results"
235
+ },
236
+ "skip": {
237
+ "type": "number",
238
+ "description": "Offset results"
239
+ }
240
+ },
241
+ "required": [
242
+ "object"
243
+ ],
244
+ "additionalProperties": false,
245
+ "description": "Query to run for export only"
246
+ },
247
+ "errorPolicy": {
248
+ "type": "string",
249
+ "enum": [
250
+ "skip",
251
+ "abort",
252
+ "retry"
253
+ ],
254
+ "default": "skip"
255
+ },
256
+ "batchSize": {
257
+ "type": "number",
258
+ "default": 1000
259
+ }
260
+ },
261
+ "required": [
262
+ "name",
263
+ "targetObject",
264
+ "fieldMapping"
265
+ ],
266
+ "additionalProperties": false
267
+ }
268
+ },
269
+ "$schema": "http://json-schema.org/draft-07/schema#"
270
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$ref": "#/definitions/MenuItem",
3
+ "definitions": {
4
+ "MenuItem": {
5
+ "type": "object",
6
+ "properties": {
7
+ "label": {
8
+ "type": "string",
9
+ "description": "Display label for the menu item"
10
+ },
11
+ "path": {
12
+ "type": "string",
13
+ "description": "Navigation path (route) for the menu item"
14
+ },
15
+ "icon": {
16
+ "type": "string",
17
+ "description": "Optional icon identifier for the menu item"
18
+ }
19
+ },
20
+ "required": [
21
+ "label",
22
+ "path"
23
+ ],
24
+ "additionalProperties": false
25
+ }
26
+ },
27
+ "$schema": "http://json-schema.org/draft-07/schema#"
28
+ }