@appaflytech/zeyrek-ai-mcp 0.0.5 → 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 (145) hide show
  1. package/.env.example +2 -2
  2. package/.env.production.example +9 -1
  3. package/README.md +14 -38
  4. package/dist/config.js +36 -3
  5. package/dist/knowledge/backendConstraints.js +982 -0
  6. package/dist/knowledge/componentCatalog.js +549 -92
  7. package/dist/knowledge/componentEvents.js +120 -25
  8. package/dist/knowledge/coverage.js +43 -0
  9. package/dist/knowledge/flowGuards.js +30 -0
  10. package/dist/knowledge/functionGuards.js +134 -0
  11. package/dist/knowledge/guideSections.js +49 -0
  12. package/dist/knowledge/hydrate.js +97 -0
  13. package/dist/knowledge/languageCodes.js +36 -0
  14. package/dist/knowledge/languages.js +105 -0
  15. package/dist/knowledge/layoutSummary.js +10 -0
  16. package/dist/knowledge/localization.js +51 -0
  17. package/dist/knowledge/normalize.js +500 -16
  18. package/dist/knowledge/outlines.js +167 -12
  19. package/dist/knowledge/policy.js +14 -5
  20. package/dist/knowledge/propTypes.js +80 -0
  21. package/dist/knowledge/rules.js +961 -44
  22. package/dist/knowledge/schemaGuard.js +199 -0
  23. package/dist/knowledge/styleResolve.js +63 -4
  24. package/dist/observability/trace.js +27 -3
  25. package/dist/platform/csv.js +123 -0
  26. package/dist/platform/errors.js +107 -6
  27. package/dist/platform/http.js +34 -4
  28. package/dist/platform/patch.js +27 -0
  29. package/dist/platform/refs.js +104 -0
  30. package/dist/platform/responses.js +25 -6
  31. package/dist/platform/screenshot.js +544 -16
  32. package/dist/platform/secrets.js +40 -0
  33. package/dist/platform/tokenVault.js +89 -0
  34. package/dist/platform/writeDiff.js +281 -0
  35. package/dist/resources/examples/flow-call-function.json +66 -0
  36. package/dist/resources/examples/function-total.json +70 -0
  37. package/dist/resources/examples/layout-app-shell.json +1 -1
  38. package/dist/resources/examples/microfunction-node-sum.json +56 -0
  39. package/dist/resources/examples/microservice-table-list.json +2 -4
  40. package/dist/resources/examples/page-dynamic-form.json +3 -3
  41. package/dist/resources/examples/page-flex-sections.json +99 -0
  42. package/dist/resources/examples/page-sign-in.json +4 -3
  43. package/dist/resources/guides/component.md +81 -8
  44. package/dist/resources/guides/entity.md +712 -20
  45. package/dist/resources/guides/expressions.md +47 -2
  46. package/dist/resources/guides/external-component.md +9 -0
  47. package/dist/resources/guides/functions.md +262 -0
  48. package/dist/resources/guides/getting-started.md +82 -7
  49. package/dist/resources/guides/layout.md +53 -10
  50. package/dist/resources/guides/merge.md +231 -0
  51. package/dist/resources/guides/microfunction.md +166 -0
  52. package/dist/resources/guides/microservice.md +287 -15
  53. package/dist/resources/guides/middleware.md +89 -1
  54. package/dist/resources/guides/modify-existing.md +23 -0
  55. package/dist/resources/guides/page.md +402 -49
  56. package/dist/resources/guides/translation.md +150 -8
  57. package/dist/resources/guides/view.md +16 -1
  58. package/dist/resources/guides/workflow.md +199 -28
  59. package/dist/resources/knowledge.js +5 -0
  60. package/dist/resources/rules.js +27 -0
  61. package/dist/resources/schema-fingerprint.json +8 -0
  62. package/dist/resources/schemas/AnalyzeImportQuery.json +51 -0
  63. package/dist/resources/schemas/ApplyMergePlanCommand.json +19 -0
  64. package/dist/resources/schemas/CreateBulkRowCommand.json +36 -0
  65. package/dist/resources/schemas/CreateDatasourceCommand.json +15 -6
  66. package/dist/resources/schemas/CreateDiscoveredEntitiesCommand.json +19 -8
  67. package/dist/resources/schemas/CreateEntityCommand.json +52 -12
  68. package/dist/resources/schemas/CreateEnvironmentCommand.json +31 -0
  69. package/dist/resources/schemas/CreateGlobalFunctionCommand.json +95 -0
  70. package/dist/resources/schemas/CreateImportPlanCommand.json +278 -0
  71. package/dist/resources/schemas/CreateMergePlanCommand.json +34 -0
  72. package/dist/resources/schemas/CreateMicrofunctionCommand.json +117 -0
  73. package/dist/resources/schemas/CreateMicrofunctionRuntimeCommand.json +51 -0
  74. package/dist/resources/schemas/CreateMicroserviceCommand.json +145 -3
  75. package/dist/resources/schemas/CreateQueryCommand.json +56 -3
  76. package/dist/resources/schemas/CreateRowCommand.json +38 -0
  77. package/dist/resources/schemas/CreateViewCommand.json +13 -10
  78. package/dist/resources/schemas/CreateWorkflowCommand.json +106 -14
  79. package/dist/resources/schemas/DataJobDto.json +267 -0
  80. package/dist/resources/schemas/ExportRowsCommand.json +172 -0
  81. package/dist/resources/schemas/Filter.json +3 -1
  82. package/dist/resources/schemas/GetRowsQuery.json +6 -1
  83. package/dist/resources/schemas/GlobalFunctionDto.json +89 -0
  84. package/dist/resources/schemas/GlobalFunctionUpdateResultDto.json +249 -0
  85. package/dist/resources/schemas/ImportAnalysisDto.json +401 -0
  86. package/dist/resources/schemas/ImportPlanDto.json +260 -0
  87. package/dist/resources/schemas/ImportSampleDto.json +90 -0
  88. package/dist/resources/schemas/InvokeMicrofunctionCommand.json +25 -0
  89. package/dist/resources/schemas/PreviewMicroserviceCommand.json +135 -1
  90. package/dist/resources/schemas/PreviewQueryCommand.json +5 -2
  91. package/dist/resources/schemas/PreviewWorkflowCommand.json +45 -9
  92. package/dist/resources/schemas/ResolveMergeConflictsCommand.json +58 -0
  93. package/dist/resources/schemas/RevertMergePlanCommand.json +19 -0
  94. package/dist/resources/schemas/RunImportCommand.json +62 -0
  95. package/dist/resources/schemas/StepDto.json +34 -3
  96. package/dist/resources/schemas/UpdateBulkRowCommand.json +36 -0
  97. package/dist/resources/schemas/UpdateDatasourceCommand.json +15 -6
  98. package/dist/resources/schemas/UpdateEntityCommand.json +52 -11
  99. package/dist/resources/schemas/UpdateGlobalFunctionCommand.json +66 -0
  100. package/dist/resources/schemas/UpdateMicrofunctionCommand.json +121 -0
  101. package/dist/resources/schemas/UpdateMicrofunctionRuntimeCommand.json +54 -0
  102. package/dist/resources/schemas/UpdateMicroserviceCommand.json +147 -4
  103. package/dist/resources/schemas/UpdateQueryCommand.json +13 -3
  104. package/dist/resources/schemas/UpdateRowCommand.json +40 -0
  105. package/dist/resources/schemas/UpdateViewCommand.json +15 -10
  106. package/dist/resources/schemas/UpdateWorkflowCommand.json +106 -14
  107. package/dist/server.js +17 -1
  108. package/dist/tools/access.js +3 -3
  109. package/dist/tools/activities.js +40 -0
  110. package/dist/tools/applications.js +1 -1
  111. package/dist/tools/automations.js +76 -34
  112. package/dist/tools/common.js +55 -0
  113. package/dist/tools/components.js +16 -7
  114. package/dist/tools/datasources.js +83 -21
  115. package/dist/tools/dependencies.js +1 -1
  116. package/dist/tools/deployments.js +34 -2
  117. package/dist/tools/dtos.js +25 -12
  118. package/dist/tools/entities.js +113 -28
  119. package/dist/tools/environments.js +52 -0
  120. package/dist/tools/externalComponents.js +9 -3
  121. package/dist/tools/files.js +57 -42
  122. package/dist/tools/flows.js +205 -13
  123. package/dist/tools/folders.js +7 -2
  124. package/dist/tools/functions.js +331 -0
  125. package/dist/tools/globalFunctions.js +63 -0
  126. package/dist/tools/importSchemas.js +79 -0
  127. package/dist/tools/imports.js +241 -0
  128. package/dist/tools/layouts.js +103 -29
  129. package/dist/tools/merges.js +113 -0
  130. package/dist/tools/microfunctions.js +155 -0
  131. package/dist/tools/microservices.js +270 -40
  132. package/dist/tools/organizations.js +5 -6
  133. package/dist/tools/pages.js +421 -104
  134. package/dist/tools/platformInfo.js +155 -11
  135. package/dist/tools/projects.js +183 -33
  136. package/dist/tools/queries.js +32 -10
  137. package/dist/tools/revisions.js +94 -0
  138. package/dist/tools/rows.js +484 -50
  139. package/dist/tools/screenWrite.js +68 -0
  140. package/dist/tools/screens.js +28 -0
  141. package/dist/tools/templates.js +32 -5
  142. package/dist/tools/translations.js +24 -8
  143. package/dist/tools/views.js +20 -10
  144. package/dist/tools/workflows.js +56 -21
  145. package/package.json +7 -2
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "schema": {
3
+ "required": [
4
+ "datasourceId",
5
+ "rawQuery",
6
+ "slug"
7
+ ],
3
8
  "type": "object",
4
9
  "properties": {
5
10
  "id": {
@@ -7,21 +12,33 @@
7
12
  "format": "uuid"
8
13
  },
9
14
  "rawQuery": {
10
- "type": "string",
11
- "nullable": true
15
+ "minLength": 1,
16
+ "type": "string"
12
17
  },
13
18
  "slug": {
19
+ "minLength": 1,
20
+ "type": "string"
21
+ },
22
+ "name": {
14
23
  "type": "string",
15
24
  "nullable": true
16
25
  },
17
- "name": {
26
+ "description": {
18
27
  "type": "string",
19
28
  "nullable": true
20
29
  },
21
30
  "datasourceId": {
31
+ "minLength": 1,
22
32
  "type": "string",
23
33
  "format": "uuid"
24
34
  },
35
+ "parameters": {
36
+ "type": "array",
37
+ "items": {
38
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Queries.QueryParameter"
39
+ },
40
+ "nullable": true
41
+ },
25
42
  "outputType": {
26
43
  "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Queries.QueryOutputType"
27
44
  }
@@ -30,6 +47,22 @@
30
47
  },
31
48
  "components": {
32
49
  "schemas": {
50
+ "NgApps.Domain.Contexts.Datastore.Queries.QueryParameter": {
51
+ "type": "object",
52
+ "properties": {
53
+ "name": {
54
+ "type": "string",
55
+ "nullable": true
56
+ },
57
+ "type": {
58
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType"
59
+ },
60
+ "value": {
61
+ "nullable": true
62
+ }
63
+ },
64
+ "additionalProperties": false
65
+ },
33
66
  "NgApps.Domain.Contexts.Datastore.Queries.QueryOutputType": {
34
67
  "enum": [
35
68
  "array",
@@ -37,6 +70,26 @@
37
70
  ],
38
71
  "type": "string",
39
72
  "format": ""
73
+ },
74
+ "NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType": {
75
+ "enum": [
76
+ "text",
77
+ "number",
78
+ "bool",
79
+ "date",
80
+ "time",
81
+ "datetime",
82
+ "guid",
83
+ "float",
84
+ "relation",
85
+ "custom",
86
+ "object",
87
+ "array",
88
+ "file",
89
+ "incremental"
90
+ ],
91
+ "type": "string",
92
+ "format": ""
40
93
  }
41
94
  }
42
95
  }
@@ -0,0 +1,38 @@
1
+ {
2
+ "schema": {
3
+ "type": "object",
4
+ "properties": {
5
+ "entityId": {
6
+ "type": "string",
7
+ "format": "uuid"
8
+ },
9
+ "row": {
10
+ "type": "object",
11
+ "additionalProperties": {
12
+ "nullable": true
13
+ },
14
+ "nullable": true
15
+ },
16
+ "rowContext": {
17
+ "type": "object",
18
+ "additionalProperties": {
19
+ "nullable": true
20
+ },
21
+ "nullable": true
22
+ },
23
+ "localizations": {
24
+ "type": "object",
25
+ "additionalProperties": {
26
+ "type": "object",
27
+ "additionalProperties": {},
28
+ "nullable": true
29
+ },
30
+ "nullable": true
31
+ }
32
+ },
33
+ "additionalProperties": false
34
+ },
35
+ "components": {
36
+ "schemas": {}
37
+ }
38
+ }
@@ -1,5 +1,8 @@
1
1
  {
2
2
  "schema": {
3
+ "required": [
4
+ "name"
5
+ ],
3
6
  "type": "object",
4
7
  "properties": {
5
8
  "id": {
@@ -7,8 +10,8 @@
7
10
  "format": "uuid"
8
11
  },
9
12
  "name": {
10
- "type": "string",
11
- "nullable": true
13
+ "minLength": 1,
14
+ "type": "string"
12
15
  },
13
16
  "slug": {
14
17
  "type": "string",
@@ -48,6 +51,13 @@
48
51
  },
49
52
  "components": {
50
53
  "schemas": {
54
+ "NgApps.Domain.Contexts.Datastore.Views.ViewProviderType": {
55
+ "enum": [
56
+ "postgres"
57
+ ],
58
+ "type": "string",
59
+ "format": ""
60
+ },
51
61
  "NgApps.Application.Contexts.Datastore.Views.ViewAnalyzerInput": {
52
62
  "type": "object",
53
63
  "properties": {
@@ -110,13 +120,6 @@
110
120
  },
111
121
  "additionalProperties": false
112
122
  },
113
- "NgApps.Domain.Contexts.Datastore.Views.ViewProviderType": {
114
- "enum": [
115
- "postgres"
116
- ],
117
- "type": "string",
118
- "format": ""
119
- },
120
123
  "NgApps.Domain.Contexts.Datastore.Views.ViewLanguage": {
121
124
  "enum": [
122
125
  "simple",
@@ -155,4 +158,4 @@
155
158
  }
156
159
  }
157
160
  }
158
- }
161
+ }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "schema": {
3
+ "required": [
4
+ "name",
5
+ "slug",
6
+ "steps"
7
+ ],
3
8
  "type": "object",
4
9
  "properties": {
5
10
  "id": {
@@ -7,10 +12,18 @@
7
12
  "format": "uuid"
8
13
  },
9
14
  "slug": {
15
+ "minLength": 1,
16
+ "type": "string"
17
+ },
18
+ "name": {
19
+ "minLength": 1,
20
+ "type": "string"
21
+ },
22
+ "description": {
10
23
  "type": "string",
11
24
  "nullable": true
12
25
  },
13
- "name": {
26
+ "caution": {
14
27
  "type": "string",
15
28
  "nullable": true
16
29
  },
@@ -31,11 +44,11 @@
31
44
  "$ref": "#/components/schemas/NgApps.Domain.Contexts.Shared.DataTransferObjects.DataTransferObjectBehavior"
32
45
  },
33
46
  "steps": {
47
+ "minItems": 1,
34
48
  "type": "array",
35
49
  "items": {
36
50
  "$ref": "#/components/schemas/NgApps.Application.Contexts.Flow.Workflows.StepDto"
37
- },
38
- "nullable": true
51
+ }
39
52
  },
40
53
  "schema": {
41
54
  "nullable": true
@@ -86,6 +99,14 @@
86
99
  "type": "string",
87
100
  "nullable": true
88
101
  },
102
+ "description": {
103
+ "type": "string",
104
+ "nullable": true
105
+ },
106
+ "caution": {
107
+ "type": "string",
108
+ "nullable": true
109
+ },
89
110
  "type": {
90
111
  "$ref": "#/components/schemas/NgApps.Domain.Contexts.Flow.Workflows.StepType"
91
112
  },
@@ -196,7 +217,7 @@
196
217
  "convert",
197
218
  "revert",
198
219
  "set-user",
199
- "end"
220
+ "microfunction"
200
221
  ],
201
222
  "type": "string",
202
223
  "format": ""
@@ -296,6 +317,11 @@
296
317
  "type": "string",
297
318
  "nullable": true
298
319
  },
320
+ "microfunctionId": {
321
+ "type": "string",
322
+ "format": "uuid",
323
+ "nullable": true
324
+ },
299
325
  "queryId": {
300
326
  "type": "string",
301
327
  "format": "uuid",
@@ -668,6 +694,20 @@
668
694
  "automationCount": {
669
695
  "type": "integer",
670
696
  "format": "int32"
697
+ },
698
+ "version": {
699
+ "type": "integer",
700
+ "format": "int64"
701
+ },
702
+ "localizationEntityId": {
703
+ "type": "string",
704
+ "format": "uuid",
705
+ "nullable": true
706
+ },
707
+ "localizationParentId": {
708
+ "type": "string",
709
+ "format": "uuid",
710
+ "nullable": true
671
711
  }
672
712
  },
673
713
  "additionalProperties": false
@@ -868,6 +908,9 @@
868
908
  "order": {
869
909
  "type": "integer",
870
910
  "format": "int32"
911
+ },
912
+ "writeOn": {
913
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.MicroserviceFieldWriteOn"
871
914
  }
872
915
  },
873
916
  "additionalProperties": false
@@ -1012,7 +1055,8 @@
1012
1055
  "enum": [
1013
1056
  "normal",
1014
1057
  "junction",
1015
- "enum-values"
1058
+ "enum-values",
1059
+ "localization"
1016
1060
  ],
1017
1061
  "type": "string",
1018
1062
  "format": ""
@@ -1055,6 +1099,9 @@
1055
1099
  "isSystemField": {
1056
1100
  "type": "boolean"
1057
1101
  },
1102
+ "isLocalized": {
1103
+ "type": "boolean"
1104
+ },
1058
1105
  "order": {
1059
1106
  "type": "integer",
1060
1107
  "format": "int32",
@@ -1095,6 +1142,10 @@
1095
1142
  "additionalProperties": false
1096
1143
  },
1097
1144
  "NgApps.Application.Contexts.Datastore.Entities.FieldDto": {
1145
+ "required": [
1146
+ "dbType",
1147
+ "slug"
1148
+ ],
1098
1149
  "type": "object",
1099
1150
  "properties": {
1100
1151
  "id": {
@@ -1102,20 +1153,23 @@
1102
1153
  "format": "uuid"
1103
1154
  },
1104
1155
  "description": {
1156
+ "maxLength": 512,
1105
1157
  "type": "string",
1106
1158
  "nullable": true
1107
1159
  },
1108
1160
  "name": {
1161
+ "maxLength": 50,
1109
1162
  "type": "string",
1110
1163
  "nullable": true
1111
1164
  },
1112
1165
  "slug": {
1113
- "type": "string",
1114
- "nullable": true
1166
+ "minLength": 1,
1167
+ "type": "string"
1115
1168
  },
1116
1169
  "dbType": {
1117
- "type": "string",
1118
- "nullable": true
1170
+ "maxLength": 50,
1171
+ "minLength": 1,
1172
+ "type": "string"
1119
1173
  },
1120
1174
  "primaryKey": {
1121
1175
  "type": "boolean"
@@ -1204,6 +1258,17 @@
1204
1258
  },
1205
1259
  "isSystemField": {
1206
1260
  "type": "boolean"
1261
+ },
1262
+ "isLocalized": {
1263
+ "type": "boolean"
1264
+ },
1265
+ "nameTranslations": {
1266
+ "type": "object",
1267
+ "additionalProperties": {
1268
+ "type": "string",
1269
+ "nullable": true
1270
+ },
1271
+ "nullable": true
1207
1272
  }
1208
1273
  },
1209
1274
  "additionalProperties": false
@@ -1255,6 +1320,10 @@
1255
1320
  "additionalProperties": false
1256
1321
  },
1257
1322
  "NgApps.Application.Contexts.Datastore.Entities.EntityIndexDto": {
1323
+ "required": [
1324
+ "fieldIds",
1325
+ "name"
1326
+ ],
1258
1327
  "type": "object",
1259
1328
  "properties": {
1260
1329
  "id": {
@@ -1262,19 +1331,19 @@
1262
1331
  "format": "uuid"
1263
1332
  },
1264
1333
  "name": {
1265
- "type": "string",
1266
- "nullable": true
1334
+ "minLength": 1,
1335
+ "type": "string"
1267
1336
  },
1268
1337
  "unique": {
1269
1338
  "type": "boolean"
1270
1339
  },
1271
1340
  "fieldIds": {
1341
+ "minItems": 1,
1272
1342
  "type": "array",
1273
1343
  "items": {
1274
1344
  "type": "string",
1275
1345
  "format": "uuid"
1276
- },
1277
- "nullable": true
1346
+ }
1278
1347
  }
1279
1348
  },
1280
1349
  "additionalProperties": false
@@ -1287,6 +1356,15 @@
1287
1356
  "type": "string",
1288
1357
  "format": ""
1289
1358
  },
1359
+ "NgApps.Domain.Contexts.Studio.Microservices.MicroserviceFieldWriteOn": {
1360
+ "enum": [
1361
+ "always",
1362
+ "create",
1363
+ "update"
1364
+ ],
1365
+ "type": "string",
1366
+ "format": ""
1367
+ },
1290
1368
  "NgApps.Domain.Contexts.Datastore.Entities.OperatorType": {
1291
1369
  "enum": [
1292
1370
  "eq",
@@ -1302,7 +1380,9 @@
1302
1380
  "startswith",
1303
1381
  "endswith",
1304
1382
  "istartswith",
1305
- "iendswith"
1383
+ "iendswith",
1384
+ "isnull",
1385
+ "isnotnull"
1306
1386
  ],
1307
1387
  "type": "string",
1308
1388
  "format": ""
@@ -1378,6 +1458,18 @@
1378
1458
  "icon": {
1379
1459
  "type": "string",
1380
1460
  "nullable": true
1461
+ },
1462
+ "order": {
1463
+ "type": "integer",
1464
+ "format": "int32"
1465
+ },
1466
+ "labels": {
1467
+ "type": "object",
1468
+ "additionalProperties": {
1469
+ "type": "string",
1470
+ "nullable": true
1471
+ },
1472
+ "nullable": true
1381
1473
  }
1382
1474
  },
1383
1475
  "additionalProperties": false