@appaflytech/zeyrek-ai-mcp 0.0.6 → 0.0.7

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 (91) hide show
  1. package/.env.example +2 -2
  2. package/.env.production.example +8 -0
  3. package/README.md +9 -8
  4. package/dist/config.js +18 -3
  5. package/dist/knowledge/backendConstraints.js +85 -0
  6. package/dist/knowledge/componentCatalog.js +357 -54
  7. package/dist/knowledge/componentEvents.js +120 -25
  8. package/dist/knowledge/functionGuards.js +134 -0
  9. package/dist/knowledge/normalize.js +53 -2
  10. package/dist/knowledge/outlines.js +31 -0
  11. package/dist/knowledge/policy.js +14 -5
  12. package/dist/knowledge/rules.js +343 -1
  13. package/dist/platform/csv.js +123 -0
  14. package/dist/platform/errors.js +62 -3
  15. package/dist/platform/http.js +1 -0
  16. package/dist/platform/responses.js +16 -4
  17. package/dist/platform/screenshot.js +18 -1
  18. package/dist/resources/examples/flow-call-function.json +66 -0
  19. package/dist/resources/examples/function-total.json +70 -0
  20. package/dist/resources/examples/microfunction-node-sum.json +56 -0
  21. package/dist/resources/examples/page-dynamic-form.json +1 -1
  22. package/dist/resources/examples/page-sign-in.json +1 -1
  23. package/dist/resources/guides/component.md +13 -1
  24. package/dist/resources/guides/entity.md +321 -17
  25. package/dist/resources/guides/expressions.md +3 -0
  26. package/dist/resources/guides/functions.md +262 -0
  27. package/dist/resources/guides/getting-started.md +5 -0
  28. package/dist/resources/guides/merge.md +231 -0
  29. package/dist/resources/guides/microfunction.md +166 -0
  30. package/dist/resources/guides/microservice.md +61 -2
  31. package/dist/resources/guides/modify-existing.md +23 -0
  32. package/dist/resources/guides/page.md +20 -4
  33. package/dist/resources/guides/translation.md +24 -0
  34. package/dist/resources/guides/workflow.md +1 -1
  35. package/dist/resources/schema-fingerprint.json +4 -4
  36. package/dist/resources/schemas/AnalyzeImportQuery.json +51 -0
  37. package/dist/resources/schemas/ApplyMergePlanCommand.json +19 -0
  38. package/dist/resources/schemas/CreateBulkRowCommand.json +3 -0
  39. package/dist/resources/schemas/CreateEnvironmentCommand.json +31 -0
  40. package/dist/resources/schemas/CreateGlobalFunctionCommand.json +95 -0
  41. package/dist/resources/schemas/CreateImportPlanCommand.json +278 -0
  42. package/dist/resources/schemas/CreateMergePlanCommand.json +34 -0
  43. package/dist/resources/schemas/CreateMicrofunctionCommand.json +117 -0
  44. package/dist/resources/schemas/CreateMicrofunctionRuntimeCommand.json +51 -0
  45. package/dist/resources/schemas/CreateMicroserviceCommand.json +119 -1
  46. package/dist/resources/schemas/CreateWorkflowCommand.json +13 -2
  47. package/dist/resources/schemas/DataJobDto.json +267 -0
  48. package/dist/resources/schemas/ExportRowsCommand.json +172 -0
  49. package/dist/resources/schemas/Filter.json +3 -1
  50. package/dist/resources/schemas/GetRowsQuery.json +3 -1
  51. package/dist/resources/schemas/GlobalFunctionDto.json +89 -0
  52. package/dist/resources/schemas/GlobalFunctionUpdateResultDto.json +249 -0
  53. package/dist/resources/schemas/ImportAnalysisDto.json +401 -0
  54. package/dist/resources/schemas/ImportPlanDto.json +260 -0
  55. package/dist/resources/schemas/ImportSampleDto.json +90 -0
  56. package/dist/resources/schemas/InvokeMicrofunctionCommand.json +25 -0
  57. package/dist/resources/schemas/PreviewMicroserviceCommand.json +119 -1
  58. package/dist/resources/schemas/PreviewWorkflowCommand.json +13 -2
  59. package/dist/resources/schemas/ResolveMergeConflictsCommand.json +58 -0
  60. package/dist/resources/schemas/RevertMergePlanCommand.json +19 -0
  61. package/dist/resources/schemas/RunImportCommand.json +62 -0
  62. package/dist/resources/schemas/StepDto.json +13 -2
  63. package/dist/resources/schemas/UpdateBulkRowCommand.json +3 -0
  64. package/dist/resources/schemas/UpdateEntityCommand.json +3 -1
  65. package/dist/resources/schemas/UpdateGlobalFunctionCommand.json +66 -0
  66. package/dist/resources/schemas/UpdateMicrofunctionCommand.json +121 -0
  67. package/dist/resources/schemas/UpdateMicrofunctionRuntimeCommand.json +54 -0
  68. package/dist/resources/schemas/UpdateMicroserviceCommand.json +119 -1
  69. package/dist/resources/schemas/UpdateWorkflowCommand.json +13 -2
  70. package/dist/server.js +15 -3
  71. package/dist/tools/activities.js +40 -0
  72. package/dist/tools/automations.js +14 -5
  73. package/dist/tools/common.js +16 -0
  74. package/dist/tools/dependencies.js +1 -1
  75. package/dist/tools/environments.js +52 -0
  76. package/dist/tools/files.js +51 -50
  77. package/dist/tools/flows.js +95 -2
  78. package/dist/tools/functions.js +331 -0
  79. package/dist/tools/importSchemas.js +79 -0
  80. package/dist/tools/imports.js +241 -0
  81. package/dist/tools/merges.js +113 -0
  82. package/dist/tools/microfunctions.js +155 -0
  83. package/dist/tools/microservices.js +42 -3
  84. package/dist/tools/pages.js +62 -10
  85. package/dist/tools/platformInfo.js +4 -1
  86. package/dist/tools/revisions.js +94 -0
  87. package/dist/tools/rows.js +342 -22
  88. package/dist/tools/screenWrite.js +11 -2
  89. package/dist/tools/templates.js +32 -5
  90. package/dist/tools/workflows.js +24 -6
  91. package/package.json +3 -1
@@ -0,0 +1,267 @@
1
+ {
2
+ "schema": {
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "format": "uuid"
8
+ },
9
+ "kind": {
10
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.DataJobs.DataJobKind"
11
+ },
12
+ "datasourceId": {
13
+ "type": "string",
14
+ "format": "uuid"
15
+ },
16
+ "entityIds": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string",
20
+ "format": "uuid"
21
+ },
22
+ "nullable": true
23
+ },
24
+ "status": {
25
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.DataJobs.DataJobStatus"
26
+ },
27
+ "sequence": {
28
+ "type": "integer",
29
+ "format": "int32",
30
+ "nullable": true
31
+ },
32
+ "changeCount": {
33
+ "type": "integer",
34
+ "format": "int32"
35
+ },
36
+ "progress": {
37
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.DataJobs.DataJobProgressDto"
38
+ },
39
+ "startedAt": {
40
+ "type": "string",
41
+ "format": "date-time",
42
+ "nullable": true
43
+ },
44
+ "completedAt": {
45
+ "type": "string",
46
+ "format": "date-time",
47
+ "nullable": true
48
+ },
49
+ "createdByUserId": {
50
+ "type": "string",
51
+ "nullable": true
52
+ },
53
+ "correlationId": {
54
+ "type": "string",
55
+ "nullable": true
56
+ },
57
+ "source": {
58
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.DataJobs.DataJobSourceDto"
59
+ },
60
+ "result": {
61
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.DataJobs.DataJobResultDto"
62
+ },
63
+ "error": {
64
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.DataJobs.DataJobErrorDto"
65
+ },
66
+ "expiresAt": {
67
+ "type": "string",
68
+ "format": "date-time",
69
+ "nullable": true
70
+ },
71
+ "undoAvailableUntil": {
72
+ "type": "string",
73
+ "format": "date-time",
74
+ "nullable": true
75
+ }
76
+ },
77
+ "additionalProperties": false
78
+ },
79
+ "components": {
80
+ "schemas": {
81
+ "NgApps.Domain.Contexts.Datastore.DataJobs.DataJobKind": {
82
+ "enum": [
83
+ "import",
84
+ "export",
85
+ "undo"
86
+ ],
87
+ "type": "string",
88
+ "format": ""
89
+ },
90
+ "NgApps.Domain.Contexts.Datastore.DataJobs.DataJobStatus": {
91
+ "enum": [
92
+ "planned",
93
+ "pending",
94
+ "validating",
95
+ "writing",
96
+ "completed",
97
+ "failed",
98
+ "cancelled",
99
+ "undone"
100
+ ],
101
+ "type": "string",
102
+ "format": ""
103
+ },
104
+ "NgApps.Application.Contexts.Datastore.DataJobs.DataJobProgressDto": {
105
+ "type": "object",
106
+ "properties": {
107
+ "total": {
108
+ "type": "integer",
109
+ "format": "int32"
110
+ },
111
+ "written": {
112
+ "type": "integer",
113
+ "format": "int32"
114
+ },
115
+ "failed": {
116
+ "type": "integer",
117
+ "format": "int32"
118
+ },
119
+ "currentTable": {
120
+ "type": "string",
121
+ "nullable": true
122
+ },
123
+ "batch": {
124
+ "type": "integer",
125
+ "format": "int32"
126
+ },
127
+ "batches": {
128
+ "type": "integer",
129
+ "format": "int32"
130
+ }
131
+ },
132
+ "additionalProperties": false
133
+ },
134
+ "NgApps.Application.Contexts.Datastore.DataJobs.DataJobSourceDto": {
135
+ "type": "object",
136
+ "properties": {
137
+ "fileId": {
138
+ "type": "string",
139
+ "format": "uuid",
140
+ "nullable": true
141
+ },
142
+ "fileName": {
143
+ "type": "string",
144
+ "nullable": true
145
+ },
146
+ "planId": {
147
+ "type": "string",
148
+ "format": "uuid",
149
+ "nullable": true
150
+ }
151
+ },
152
+ "additionalProperties": false
153
+ },
154
+ "NgApps.Application.Contexts.Datastore.DataJobs.DataJobResultDto": {
155
+ "type": "object",
156
+ "properties": {
157
+ "tables": {
158
+ "type": "array",
159
+ "items": {
160
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.DataJobs.DataJobResultTableDto"
161
+ },
162
+ "nullable": true
163
+ },
164
+ "skippedRows": {
165
+ "type": "integer",
166
+ "format": "int32"
167
+ },
168
+ "fixedRows": {
169
+ "type": "integer",
170
+ "format": "int32"
171
+ },
172
+ "reportFileId": {
173
+ "type": "string",
174
+ "format": "uuid",
175
+ "nullable": true
176
+ },
177
+ "undoAvailableUntil": {
178
+ "type": "string",
179
+ "format": "date-time",
180
+ "nullable": true
181
+ },
182
+ "durationMs": {
183
+ "type": "integer",
184
+ "format": "int64"
185
+ },
186
+ "rolledBack": {
187
+ "type": "boolean"
188
+ },
189
+ "snapshotFileId": {
190
+ "type": "string",
191
+ "format": "uuid",
192
+ "nullable": true
193
+ },
194
+ "undoScope": {
195
+ "type": "string",
196
+ "nullable": true
197
+ },
198
+ "undoSkipped": {
199
+ "type": "array",
200
+ "items": {
201
+ "type": "string"
202
+ },
203
+ "nullable": true
204
+ }
205
+ },
206
+ "additionalProperties": false
207
+ },
208
+ "NgApps.Application.Contexts.Datastore.DataJobs.DataJobErrorDto": {
209
+ "type": "object",
210
+ "properties": {
211
+ "code": {
212
+ "type": "string",
213
+ "nullable": true
214
+ },
215
+ "message": {
216
+ "type": "string",
217
+ "nullable": true
218
+ },
219
+ "table": {
220
+ "type": "string",
221
+ "nullable": true
222
+ },
223
+ "batch": {
224
+ "type": "integer",
225
+ "format": "int32",
226
+ "nullable": true
227
+ }
228
+ },
229
+ "additionalProperties": false
230
+ },
231
+ "NgApps.Application.Contexts.Datastore.DataJobs.DataJobResultTableDto": {
232
+ "type": "object",
233
+ "properties": {
234
+ "entityId": {
235
+ "type": "string",
236
+ "format": "uuid",
237
+ "nullable": true
238
+ },
239
+ "name": {
240
+ "type": "string",
241
+ "nullable": true
242
+ },
243
+ "created": {
244
+ "type": "boolean"
245
+ },
246
+ "inserted": {
247
+ "type": "integer",
248
+ "format": "int32"
249
+ },
250
+ "updated": {
251
+ "type": "integer",
252
+ "format": "int32"
253
+ },
254
+ "unchanged": {
255
+ "type": "integer",
256
+ "format": "int32"
257
+ },
258
+ "skipped": {
259
+ "type": "integer",
260
+ "format": "int32"
261
+ }
262
+ },
263
+ "additionalProperties": false
264
+ }
265
+ }
266
+ }
267
+ }
@@ -0,0 +1,172 @@
1
+ {
2
+ "schema": {
3
+ "type": "object",
4
+ "properties": {
5
+ "entityId": {
6
+ "type": "string",
7
+ "format": "uuid"
8
+ },
9
+ "format": {
10
+ "type": "string",
11
+ "nullable": true
12
+ },
13
+ "scope": {
14
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.Exports.ExportScopeDto"
15
+ },
16
+ "columns": {
17
+ "type": "string",
18
+ "nullable": true
19
+ },
20
+ "selectedFields": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "string"
24
+ },
25
+ "nullable": true
26
+ },
27
+ "relations": {
28
+ "type": "string",
29
+ "nullable": true
30
+ },
31
+ "languages": {
32
+ "type": "string",
33
+ "nullable": true
34
+ },
35
+ "files": {
36
+ "type": "string",
37
+ "nullable": true
38
+ },
39
+ "reimportable": {
40
+ "type": "boolean"
41
+ }
42
+ },
43
+ "additionalProperties": false
44
+ },
45
+ "components": {
46
+ "schemas": {
47
+ "NgApps.Application.Contexts.Datastore.Exports.ExportScopeDto": {
48
+ "type": "object",
49
+ "properties": {
50
+ "kind": {
51
+ "type": "string",
52
+ "nullable": true
53
+ },
54
+ "filters": {
55
+ "type": "array",
56
+ "items": {
57
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.Filter"
58
+ },
59
+ "nullable": true
60
+ },
61
+ "sort": {
62
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.Sort"
63
+ },
64
+ "rowIds": {
65
+ "type": "array",
66
+ "items": {
67
+ "type": "string"
68
+ },
69
+ "nullable": true
70
+ }
71
+ },
72
+ "additionalProperties": false
73
+ },
74
+ "NgApps.Domain.Contexts.Datastore.Entities.Filter": {
75
+ "type": "object",
76
+ "properties": {
77
+ "field": {
78
+ "type": "string",
79
+ "nullable": true
80
+ },
81
+ "operator": {
82
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.OperatorType"
83
+ },
84
+ "value": {
85
+ "nullable": true
86
+ },
87
+ "filterType": {
88
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.FilterType"
89
+ },
90
+ "conditionType": {
91
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.ConditionType"
92
+ },
93
+ "children": {
94
+ "type": "array",
95
+ "items": {
96
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.Filter"
97
+ },
98
+ "nullable": true
99
+ },
100
+ "isParentRequired": {
101
+ "type": "boolean"
102
+ },
103
+ "rawSql": {
104
+ "type": "string",
105
+ "nullable": true
106
+ },
107
+ "rawBindings": {
108
+ "type": "array",
109
+ "items": {},
110
+ "nullable": true
111
+ }
112
+ },
113
+ "additionalProperties": false
114
+ },
115
+ "NgApps.Domain.Contexts.Datastore.Entities.Sort": {
116
+ "type": "object",
117
+ "properties": {
118
+ "field": {
119
+ "type": "string",
120
+ "nullable": true
121
+ },
122
+ "ascending": {
123
+ "type": "boolean"
124
+ },
125
+ "rawSql": {
126
+ "type": "string",
127
+ "nullable": true
128
+ }
129
+ },
130
+ "additionalProperties": false
131
+ },
132
+ "NgApps.Domain.Contexts.Datastore.Entities.OperatorType": {
133
+ "enum": [
134
+ "eq",
135
+ "neq",
136
+ "lt",
137
+ "lte",
138
+ "gt",
139
+ "gte",
140
+ "contains",
141
+ "icontains",
142
+ "in",
143
+ "notin",
144
+ "startswith",
145
+ "endswith",
146
+ "istartswith",
147
+ "iendswith",
148
+ "isnull",
149
+ "isnotnull"
150
+ ],
151
+ "type": "string",
152
+ "format": ""
153
+ },
154
+ "NgApps.Domain.Contexts.Datastore.Entities.FilterType": {
155
+ "enum": [
156
+ "single",
157
+ "group"
158
+ ],
159
+ "type": "string",
160
+ "format": ""
161
+ },
162
+ "NgApps.Domain.Contexts.Datastore.Entities.ConditionType": {
163
+ "enum": [
164
+ "and",
165
+ "or"
166
+ ],
167
+ "type": "string",
168
+ "format": ""
169
+ }
170
+ }
171
+ }
172
+ }
@@ -57,7 +57,9 @@
57
57
  "startswith",
58
58
  "endswith",
59
59
  "istartswith",
60
- "iendswith"
60
+ "iendswith",
61
+ "isnull",
62
+ "isnotnull"
61
63
  ],
62
64
  "type": "string",
63
65
  "format": ""
@@ -99,7 +99,9 @@
99
99
  "startswith",
100
100
  "endswith",
101
101
  "istartswith",
102
- "iendswith"
102
+ "iendswith",
103
+ "isnull",
104
+ "isnotnull"
103
105
  ],
104
106
  "type": "string",
105
107
  "format": ""
@@ -0,0 +1,89 @@
1
+ {
2
+ "schema": {
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "format": "uuid"
8
+ },
9
+ "source": {
10
+ "type": "string",
11
+ "nullable": true
12
+ },
13
+ "applicationId": {
14
+ "type": "string",
15
+ "format": "uuid",
16
+ "nullable": true
17
+ },
18
+ "pageId": {
19
+ "type": "string",
20
+ "format": "uuid",
21
+ "nullable": true
22
+ },
23
+ "scope": {
24
+ "type": "string",
25
+ "nullable": true
26
+ },
27
+ "name": {
28
+ "type": "string",
29
+ "nullable": true
30
+ },
31
+ "description": {
32
+ "type": "string",
33
+ "nullable": true
34
+ },
35
+ "isAsync": {
36
+ "type": "boolean"
37
+ },
38
+ "parameters": {
39
+ "type": "array",
40
+ "items": {
41
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Studio.GlobalFunctions.GlobalFunctionParameterDto"
42
+ },
43
+ "nullable": true
44
+ },
45
+ "body": {
46
+ "type": "string",
47
+ "nullable": true
48
+ },
49
+ "createdAt": {
50
+ "type": "string",
51
+ "format": "date-time"
52
+ },
53
+ "updatedAt": {
54
+ "type": "string",
55
+ "format": "date-time",
56
+ "nullable": true
57
+ }
58
+ },
59
+ "additionalProperties": false
60
+ },
61
+ "components": {
62
+ "schemas": {
63
+ "NgApps.Application.Contexts.Studio.GlobalFunctions.GlobalFunctionParameterDto": {
64
+ "type": "object",
65
+ "properties": {
66
+ "name": {
67
+ "type": "string",
68
+ "nullable": true
69
+ },
70
+ "type": {
71
+ "type": "string",
72
+ "nullable": true
73
+ },
74
+ "required": {
75
+ "type": "boolean"
76
+ },
77
+ "defaultValue": {
78
+ "nullable": true
79
+ },
80
+ "description": {
81
+ "type": "string",
82
+ "nullable": true
83
+ }
84
+ },
85
+ "additionalProperties": false
86
+ }
87
+ }
88
+ }
89
+ }