@appaflytech/zeyrek-ai-mcp 0.0.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 (88) hide show
  1. package/.env.example +46 -0
  2. package/README.md +260 -0
  3. package/dist/config.js +128 -0
  4. package/dist/index.js +88 -0
  5. package/dist/knowledge/componentCatalog.js +438 -0
  6. package/dist/knowledge/componentEvents.js +164 -0
  7. package/dist/knowledge/coverage.js +60 -0
  8. package/dist/knowledge/normalize.js +1309 -0
  9. package/dist/knowledge/outlines.js +167 -0
  10. package/dist/knowledge/policy.js +44 -0
  11. package/dist/knowledge/reservedTables.js +75 -0
  12. package/dist/knowledge/rules.js +1725 -0
  13. package/dist/observability/trace.js +337 -0
  14. package/dist/platform/errors.js +132 -0
  15. package/dist/platform/http.js +169 -0
  16. package/dist/platform/responses.js +94 -0
  17. package/dist/platform/token.js +79 -0
  18. package/dist/resources/examples/entity-pair-m2m.json +105 -0
  19. package/dist/resources/examples/flow-list-to-form.json +65 -0
  20. package/dist/resources/examples/flow-load-table.json +178 -0
  21. package/dist/resources/examples/microservice-table-list.json +49 -0
  22. package/dist/resources/examples/middleware-authenticate.json +194 -0
  23. package/dist/resources/examples/page-detail-profile.json +95 -0
  24. package/dist/resources/examples/page-dynamic-form.json +221 -0
  25. package/dist/resources/examples/page-form-upsert.json +279 -0
  26. package/dist/resources/examples/page-html-embed.json +106 -0
  27. package/dist/resources/examples/page-sign-in.json +194 -0
  28. package/dist/resources/examples/workflow-basic.json +94 -0
  29. package/dist/resources/guides/component.md +108 -0
  30. package/dist/resources/guides/entity.md +348 -0
  31. package/dist/resources/guides/expressions.md +139 -0
  32. package/dist/resources/guides/getting-started.md +109 -0
  33. package/dist/resources/guides/html.md +106 -0
  34. package/dist/resources/guides/microservice.md +313 -0
  35. package/dist/resources/guides/middleware.md +271 -0
  36. package/dist/resources/guides/modify-existing.md +35 -0
  37. package/dist/resources/guides/page.md +1574 -0
  38. package/dist/resources/guides/view.md +89 -0
  39. package/dist/resources/guides/workflow.md +359 -0
  40. package/dist/resources/knowledge.js +44 -0
  41. package/dist/resources/schemas/CreateDatasourceCommand.json +54 -0
  42. package/dist/resources/schemas/CreateDiscoveredEntitiesCommand.json +133 -0
  43. package/dist/resources/schemas/CreateEntityCommand.json +387 -0
  44. package/dist/resources/schemas/CreateMicroserviceCommand.json +528 -0
  45. package/dist/resources/schemas/CreateQueryCommand.json +43 -0
  46. package/dist/resources/schemas/CreateViewCommand.json +158 -0
  47. package/dist/resources/schemas/CreateWorkflowCommand.json +1719 -0
  48. package/dist/resources/schemas/Filter.json +124 -0
  49. package/dist/resources/schemas/GetRowsQuery.json +122 -0
  50. package/dist/resources/schemas/PreviewMicroserviceCommand.json +565 -0
  51. package/dist/resources/schemas/PreviewQueryCommand.json +74 -0
  52. package/dist/resources/schemas/PreviewWorkflowCommand.json +981 -0
  53. package/dist/resources/schemas/StepDto.json +900 -0
  54. package/dist/resources/schemas/UpdateDatasourceCommand.json +58 -0
  55. package/dist/resources/schemas/UpdateEntityCommand.json +679 -0
  56. package/dist/resources/schemas/UpdateMicroserviceCommand.json +512 -0
  57. package/dist/resources/schemas/UpdateQueryCommand.json +86 -0
  58. package/dist/resources/schemas/UpdateViewCommand.json +153 -0
  59. package/dist/resources/schemas/UpdateWorkflowCommand.json +1719 -0
  60. package/dist/resources/schemas.js +40 -0
  61. package/dist/server.js +63 -0
  62. package/dist/tools/access.js +27 -0
  63. package/dist/tools/applications.js +59 -0
  64. package/dist/tools/automations.js +103 -0
  65. package/dist/tools/common.js +18 -0
  66. package/dist/tools/components.js +280 -0
  67. package/dist/tools/datasources.js +82 -0
  68. package/dist/tools/dependencies.js +17 -0
  69. package/dist/tools/deployments.js +17 -0
  70. package/dist/tools/dtos.js +54 -0
  71. package/dist/tools/entities.js +166 -0
  72. package/dist/tools/files.js +138 -0
  73. package/dist/tools/flows.js +226 -0
  74. package/dist/tools/folders.js +51 -0
  75. package/dist/tools/layouts.js +105 -0
  76. package/dist/tools/microservices.js +198 -0
  77. package/dist/tools/organizations.js +65 -0
  78. package/dist/tools/pages.js +597 -0
  79. package/dist/tools/platformInfo.js +44 -0
  80. package/dist/tools/projects.js +152 -0
  81. package/dist/tools/queries.js +48 -0
  82. package/dist/tools/rows.js +115 -0
  83. package/dist/tools/screens.js +97 -0
  84. package/dist/tools/templates.js +65 -0
  85. package/dist/tools/variables.js +94 -0
  86. package/dist/tools/views.js +58 -0
  87. package/dist/tools/workflows.js +196 -0
  88. package/package.json +49 -0
@@ -0,0 +1,133 @@
1
+ {
2
+ "schema": {
3
+ "type": "object",
4
+ "properties": {
5
+ "datasourceId": {
6
+ "type": "string",
7
+ "format": "uuid"
8
+ },
9
+ "discoveredEntityList": {
10
+ "type": "array",
11
+ "items": {
12
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.DiscoveredEntityDto"
13
+ },
14
+ "nullable": true
15
+ }
16
+ },
17
+ "additionalProperties": false
18
+ },
19
+ "components": {
20
+ "schemas": {
21
+ "NgApps.Domain.Contexts.Datastore.Entities.DiscoveredEntityDto": {
22
+ "type": "object",
23
+ "properties": {
24
+ "tableSchema": {
25
+ "type": "string",
26
+ "nullable": true
27
+ },
28
+ "slug": {
29
+ "type": "string",
30
+ "nullable": true
31
+ },
32
+ "name": {
33
+ "type": "string",
34
+ "nullable": true
35
+ },
36
+ "fields": {
37
+ "type": "array",
38
+ "items": {
39
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.DiscoveredFieldDto"
40
+ },
41
+ "nullable": true
42
+ }
43
+ },
44
+ "additionalProperties": false
45
+ },
46
+ "NgApps.Domain.Contexts.Datastore.Entities.DiscoveredFieldDto": {
47
+ "type": "object",
48
+ "properties": {
49
+ "slug": {
50
+ "type": "string",
51
+ "nullable": true
52
+ },
53
+ "name": {
54
+ "type": "string",
55
+ "nullable": true
56
+ },
57
+ "dbType": {
58
+ "type": "string",
59
+ "nullable": true
60
+ },
61
+ "primaryKey": {
62
+ "type": "boolean"
63
+ },
64
+ "nullable": {
65
+ "type": "boolean"
66
+ },
67
+ "unique": {
68
+ "type": "boolean"
69
+ },
70
+ "identity": {
71
+ "type": "boolean"
72
+ },
73
+ "defaultValueType": {
74
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.DefaultValueType"
75
+ },
76
+ "commonType": {
77
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType"
78
+ },
79
+ "defaultValue": {
80
+ "type": "string",
81
+ "nullable": true
82
+ },
83
+ "relationId": {
84
+ "type": "string",
85
+ "nullable": true
86
+ },
87
+ "order": {
88
+ "type": "integer",
89
+ "format": "int32",
90
+ "nullable": true
91
+ },
92
+ "properties": {
93
+ "type": "object",
94
+ "additionalProperties": {
95
+ "nullable": true
96
+ },
97
+ "nullable": true
98
+ }
99
+ },
100
+ "additionalProperties": false
101
+ },
102
+ "NgApps.Domain.Contexts.Datastore.Entities.DefaultValueType": {
103
+ "enum": [
104
+ "none",
105
+ "default-value",
106
+ "sql-expression"
107
+ ],
108
+ "type": "string",
109
+ "format": ""
110
+ },
111
+ "NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType": {
112
+ "enum": [
113
+ "text",
114
+ "number",
115
+ "bool",
116
+ "date",
117
+ "time",
118
+ "datetime",
119
+ "guid",
120
+ "float",
121
+ "relation",
122
+ "custom",
123
+ "object",
124
+ "array",
125
+ "file",
126
+ "incremental"
127
+ ],
128
+ "type": "string",
129
+ "format": ""
130
+ }
131
+ }
132
+ }
133
+ }
@@ -0,0 +1,387 @@
1
+ {
2
+ "schema": {
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "format": "uuid"
8
+ },
9
+ "datasourceId": {
10
+ "type": "string",
11
+ "format": "uuid"
12
+ },
13
+ "name": {
14
+ "type": "string",
15
+ "nullable": true
16
+ },
17
+ "description": {
18
+ "type": "string",
19
+ "nullable": true
20
+ },
21
+ "slug": {
22
+ "type": "string",
23
+ "nullable": true
24
+ },
25
+ "isAuditTrailActive": {
26
+ "type": "boolean"
27
+ },
28
+ "auditTrailType": {
29
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.AuditTrails.AuditTrailType"
30
+ },
31
+ "fields": {
32
+ "type": "array",
33
+ "items": {
34
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.Entities.FieldDto"
35
+ },
36
+ "nullable": true
37
+ },
38
+ "applicationIds": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string",
42
+ "format": "uuid"
43
+ },
44
+ "nullable": true
45
+ },
46
+ "indexes": {
47
+ "type": "array",
48
+ "items": {
49
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.Entities.EntityIndexDto"
50
+ },
51
+ "nullable": true
52
+ },
53
+ "recordTransferMode": {
54
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.RecordTransferMode"
55
+ },
56
+ "transferRowIds": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "string"
60
+ },
61
+ "nullable": true
62
+ }
63
+ },
64
+ "additionalProperties": false
65
+ },
66
+ "components": {
67
+ "schemas": {
68
+ "NgApps.Domain.Contexts.Datastore.AuditTrails.AuditTrailType": {
69
+ "enum": [
70
+ "simple",
71
+ "basic",
72
+ "detailed"
73
+ ],
74
+ "type": "string",
75
+ "format": ""
76
+ },
77
+ "NgApps.Application.Contexts.Datastore.Entities.FieldDto": {
78
+ "type": "object",
79
+ "properties": {
80
+ "id": {
81
+ "type": "string",
82
+ "format": "uuid"
83
+ },
84
+ "description": {
85
+ "type": "string",
86
+ "nullable": true
87
+ },
88
+ "name": {
89
+ "type": "string",
90
+ "nullable": true
91
+ },
92
+ "slug": {
93
+ "type": "string",
94
+ "nullable": true
95
+ },
96
+ "dbType": {
97
+ "type": "string",
98
+ "nullable": true
99
+ },
100
+ "primaryKey": {
101
+ "type": "boolean"
102
+ },
103
+ "nullable": {
104
+ "type": "boolean"
105
+ },
106
+ "unique": {
107
+ "type": "boolean"
108
+ },
109
+ "identity": {
110
+ "type": "boolean"
111
+ },
112
+ "defaultValueType": {
113
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.DefaultValueType"
114
+ },
115
+ "defaultValue": {
116
+ "type": "string",
117
+ "nullable": true
118
+ },
119
+ "properties": {
120
+ "nullable": true
121
+ },
122
+ "relationType": {
123
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.RelationType"
124
+ },
125
+ "relationId": {
126
+ "type": "string",
127
+ "format": "uuid",
128
+ "nullable": true
129
+ },
130
+ "order": {
131
+ "type": "integer",
132
+ "format": "int32",
133
+ "nullable": true
134
+ },
135
+ "isDefault": {
136
+ "type": "boolean"
137
+ },
138
+ "specifications": {
139
+ "nullable": true
140
+ },
141
+ "fields": {
142
+ "type": "array",
143
+ "items": {
144
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.Entities.FieldDto"
145
+ },
146
+ "nullable": true
147
+ },
148
+ "commonType": {
149
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType"
150
+ },
151
+ "validations": {
152
+ "type": "array",
153
+ "items": {
154
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Shared.Validations.ValidationModel"
155
+ },
156
+ "nullable": true
157
+ },
158
+ "display": {
159
+ "type": "boolean"
160
+ },
161
+ "valueOptions": {
162
+ "type": "array",
163
+ "items": {
164
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.ValueOption"
165
+ },
166
+ "nullable": true
167
+ },
168
+ "isEnum": {
169
+ "type": "boolean"
170
+ },
171
+ "relation": {
172
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.Entities.RelationDto"
173
+ },
174
+ "hidden": {
175
+ "type": "boolean"
176
+ },
177
+ "folderId": {
178
+ "type": "string",
179
+ "format": "uuid",
180
+ "nullable": true
181
+ },
182
+ "relationMetadata": {
183
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.Entities.FieldRelationMetadataDto"
184
+ },
185
+ "isSystemField": {
186
+ "type": "boolean"
187
+ }
188
+ },
189
+ "additionalProperties": false
190
+ },
191
+ "NgApps.Application.Contexts.Datastore.Entities.EntityIndexDto": {
192
+ "type": "object",
193
+ "properties": {
194
+ "id": {
195
+ "type": "string",
196
+ "format": "uuid"
197
+ },
198
+ "name": {
199
+ "type": "string",
200
+ "nullable": true
201
+ },
202
+ "unique": {
203
+ "type": "boolean"
204
+ },
205
+ "fieldIds": {
206
+ "type": "array",
207
+ "items": {
208
+ "type": "string",
209
+ "format": "uuid"
210
+ },
211
+ "nullable": true
212
+ }
213
+ },
214
+ "additionalProperties": false
215
+ },
216
+ "NgApps.Domain.Contexts.Datastore.Entities.RecordTransferMode": {
217
+ "enum": [
218
+ "all",
219
+ "specific"
220
+ ],
221
+ "type": "string",
222
+ "format": ""
223
+ },
224
+ "NgApps.Domain.Contexts.Datastore.Entities.DefaultValueType": {
225
+ "enum": [
226
+ "none",
227
+ "default-value",
228
+ "sql-expression"
229
+ ],
230
+ "type": "string",
231
+ "format": ""
232
+ },
233
+ "NgApps.Domain.Contexts.Datastore.Entities.RelationType": {
234
+ "enum": [
235
+ "none",
236
+ "one-to-one",
237
+ "one-to-many",
238
+ "many-to-many"
239
+ ],
240
+ "type": "string",
241
+ "format": ""
242
+ },
243
+ "NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType": {
244
+ "enum": [
245
+ "text",
246
+ "number",
247
+ "bool",
248
+ "date",
249
+ "time",
250
+ "datetime",
251
+ "guid",
252
+ "float",
253
+ "relation",
254
+ "custom",
255
+ "object",
256
+ "array",
257
+ "file",
258
+ "incremental"
259
+ ],
260
+ "type": "string",
261
+ "format": ""
262
+ },
263
+ "NgApps.Domain.Contexts.Shared.Validations.ValidationModel": {
264
+ "type": "object",
265
+ "properties": {
266
+ "referenceId": {
267
+ "type": "string",
268
+ "format": "uuid"
269
+ },
270
+ "type": {
271
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Shared.Validations.ValidationType"
272
+ },
273
+ "message": {
274
+ "type": "string",
275
+ "nullable": true
276
+ },
277
+ "value": {
278
+ "nullable": true
279
+ },
280
+ "isDefault": {
281
+ "type": "boolean"
282
+ },
283
+ "isActive": {
284
+ "type": "boolean"
285
+ }
286
+ },
287
+ "additionalProperties": false
288
+ },
289
+ "NgApps.Domain.Contexts.Datastore.Entities.ValueOption": {
290
+ "type": "object",
291
+ "properties": {
292
+ "value": {
293
+ "type": "string",
294
+ "nullable": true
295
+ },
296
+ "icon": {
297
+ "type": "string",
298
+ "nullable": true
299
+ }
300
+ },
301
+ "additionalProperties": false
302
+ },
303
+ "NgApps.Application.Contexts.Datastore.Entities.RelationDto": {
304
+ "type": "object",
305
+ "properties": {
306
+ "primaryKeyId": {
307
+ "type": "string",
308
+ "format": "uuid"
309
+ },
310
+ "primaryKeySlug": {
311
+ "type": "string",
312
+ "nullable": true
313
+ },
314
+ "primaryKeyCommonFieldType": {
315
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType"
316
+ },
317
+ "displayFieldId": {
318
+ "type": "string",
319
+ "format": "uuid"
320
+ },
321
+ "displayFieldSlug": {
322
+ "type": "string",
323
+ "nullable": true
324
+ }
325
+ },
326
+ "additionalProperties": false
327
+ },
328
+ "NgApps.Application.Contexts.Datastore.Entities.FieldRelationMetadataDto": {
329
+ "type": "object",
330
+ "properties": {
331
+ "entityName": {
332
+ "type": "string",
333
+ "nullable": true
334
+ },
335
+ "leftField": {
336
+ "type": "string",
337
+ "nullable": true
338
+ },
339
+ "rightField": {
340
+ "type": "string",
341
+ "nullable": true
342
+ },
343
+ "junctionEntityId": {
344
+ "type": "string",
345
+ "format": "uuid",
346
+ "nullable": true
347
+ },
348
+ "leftFieldId": {
349
+ "type": "string",
350
+ "format": "uuid",
351
+ "nullable": true
352
+ },
353
+ "rightFieldId": {
354
+ "type": "string",
355
+ "format": "uuid",
356
+ "nullable": true
357
+ },
358
+ "enumValuesEntityId": {
359
+ "type": "string",
360
+ "format": "uuid",
361
+ "nullable": true
362
+ }
363
+ },
364
+ "additionalProperties": false
365
+ },
366
+ "NgApps.Domain.Contexts.Shared.Validations.ValidationType": {
367
+ "enum": [
368
+ "regex",
369
+ "email",
370
+ "required",
371
+ "max-length",
372
+ "min-length",
373
+ "max-value",
374
+ "min-value",
375
+ "value-options",
376
+ "pattern",
377
+ "minLength",
378
+ "maxLength",
379
+ "max",
380
+ "min"
381
+ ],
382
+ "type": "string",
383
+ "format": ""
384
+ }
385
+ }
386
+ }
387
+ }