@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
@@ -0,0 +1,51 @@
1
+ {
2
+ "schema": {
3
+ "required": [
4
+ "fileId"
5
+ ],
6
+ "type": "object",
7
+ "properties": {
8
+ "datasourceId": {
9
+ "type": "string",
10
+ "format": "uuid"
11
+ },
12
+ "fileId": {
13
+ "minLength": 1,
14
+ "type": "string",
15
+ "format": "uuid"
16
+ },
17
+ "locale": {
18
+ "type": "string",
19
+ "nullable": true
20
+ },
21
+ "headerRow": {
22
+ "minimum": 0,
23
+ "type": "integer",
24
+ "format": "int32",
25
+ "nullable": true
26
+ },
27
+ "csv": {
28
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Datastore.Imports.ImportCsvOptionsDto"
29
+ }
30
+ },
31
+ "additionalProperties": false
32
+ },
33
+ "components": {
34
+ "schemas": {
35
+ "NgApps.Application.Contexts.Datastore.Imports.ImportCsvOptionsDto": {
36
+ "type": "object",
37
+ "properties": {
38
+ "delimiter": {
39
+ "type": "string",
40
+ "nullable": true
41
+ },
42
+ "encoding": {
43
+ "type": "string",
44
+ "nullable": true
45
+ }
46
+ },
47
+ "additionalProperties": false
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "schema": {
3
+ "type": "object",
4
+ "properties": {
5
+ "projectId": {
6
+ "type": "string",
7
+ "format": "uuid"
8
+ },
9
+ "planId": {
10
+ "type": "string",
11
+ "format": "uuid"
12
+ }
13
+ },
14
+ "additionalProperties": false
15
+ },
16
+ "components": {
17
+ "schemas": {}
18
+ }
19
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "schema": {
3
+ "required": [
4
+ "rows"
5
+ ],
6
+ "type": "object",
7
+ "properties": {
8
+ "entityId": {
9
+ "type": "string",
10
+ "format": "uuid"
11
+ },
12
+ "rows": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "object",
16
+ "additionalProperties": {}
17
+ },
18
+ "nullable": true
19
+ },
20
+ "rowContext": {
21
+ "type": "object",
22
+ "additionalProperties": {
23
+ "nullable": true
24
+ },
25
+ "nullable": true
26
+ },
27
+ "relationsByName": {
28
+ "type": "boolean"
29
+ }
30
+ },
31
+ "additionalProperties": false
32
+ },
33
+ "components": {
34
+ "schemas": {}
35
+ }
36
+ }
@@ -1,25 +1,34 @@
1
1
  {
2
2
  "schema": {
3
+ "required": [
4
+ "dbName",
5
+ "host",
6
+ "name"
7
+ ],
3
8
  "type": "object",
4
9
  "properties": {
5
10
  "name": {
6
- "type": "string",
7
- "nullable": true
11
+ "maxLength": 50,
12
+ "minLength": 1,
13
+ "type": "string"
8
14
  },
9
15
  "description": {
16
+ "maxLength": 255,
10
17
  "type": "string",
11
18
  "nullable": true
12
19
  },
13
20
  "dbName": {
14
- "type": "string",
15
- "nullable": true
21
+ "maxLength": 63,
22
+ "minLength": 1,
23
+ "type": "string"
16
24
  },
17
25
  "type": {
18
26
  "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Datasources.DatasourceType"
19
27
  },
20
28
  "host": {
21
- "type": "string",
22
- "nullable": true
29
+ "maxLength": 255,
30
+ "minLength": 1,
31
+ "type": "string"
23
32
  },
24
33
  "port": {
25
34
  "type": "integer",
@@ -19,6 +19,10 @@
19
19
  "components": {
20
20
  "schemas": {
21
21
  "NgApps.Domain.Contexts.Datastore.Entities.DiscoveredEntityDto": {
22
+ "required": [
23
+ "name",
24
+ "slug"
25
+ ],
22
26
  "type": "object",
23
27
  "properties": {
24
28
  "tableSchema": {
@@ -26,12 +30,13 @@
26
30
  "nullable": true
27
31
  },
28
32
  "slug": {
29
- "type": "string",
30
- "nullable": true
33
+ "minLength": 1,
34
+ "type": "string"
31
35
  },
32
36
  "name": {
33
- "type": "string",
34
- "nullable": true
37
+ "maxLength": 255,
38
+ "minLength": 1,
39
+ "type": "string"
35
40
  },
36
41
  "fields": {
37
42
  "type": "array",
@@ -44,19 +49,25 @@
44
49
  "additionalProperties": false
45
50
  },
46
51
  "NgApps.Domain.Contexts.Datastore.Entities.DiscoveredFieldDto": {
52
+ "required": [
53
+ "dbType",
54
+ "slug"
55
+ ],
47
56
  "type": "object",
48
57
  "properties": {
49
58
  "slug": {
50
- "type": "string",
51
- "nullable": true
59
+ "minLength": 1,
60
+ "type": "string"
52
61
  },
53
62
  "name": {
63
+ "maxLength": 50,
54
64
  "type": "string",
55
65
  "nullable": true
56
66
  },
57
67
  "dbType": {
58
- "type": "string",
59
- "nullable": true
68
+ "maxLength": 50,
69
+ "minLength": 1,
70
+ "type": "string"
60
71
  },
61
72
  "primaryKey": {
62
73
  "type": "boolean"
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "schema": {
3
+ "required": [
4
+ "name",
5
+ "slug"
6
+ ],
3
7
  "type": "object",
4
8
  "properties": {
5
9
  "id": {
@@ -11,16 +15,18 @@
11
15
  "format": "uuid"
12
16
  },
13
17
  "name": {
14
- "type": "string",
15
- "nullable": true
18
+ "maxLength": 255,
19
+ "minLength": 1,
20
+ "type": "string"
16
21
  },
17
22
  "description": {
23
+ "maxLength": 1024,
18
24
  "type": "string",
19
25
  "nullable": true
20
26
  },
21
27
  "slug": {
22
- "type": "string",
23
- "nullable": true
28
+ "minLength": 1,
29
+ "type": "string"
24
30
  },
25
31
  "isAuditTrailActive": {
26
32
  "type": "boolean"
@@ -75,6 +81,10 @@
75
81
  "format": ""
76
82
  },
77
83
  "NgApps.Application.Contexts.Datastore.Entities.FieldDto": {
84
+ "required": [
85
+ "dbType",
86
+ "slug"
87
+ ],
78
88
  "type": "object",
79
89
  "properties": {
80
90
  "id": {
@@ -82,20 +92,23 @@
82
92
  "format": "uuid"
83
93
  },
84
94
  "description": {
95
+ "maxLength": 512,
85
96
  "type": "string",
86
97
  "nullable": true
87
98
  },
88
99
  "name": {
100
+ "maxLength": 50,
89
101
  "type": "string",
90
102
  "nullable": true
91
103
  },
92
104
  "slug": {
93
- "type": "string",
94
- "nullable": true
105
+ "minLength": 1,
106
+ "type": "string"
95
107
  },
96
108
  "dbType": {
97
- "type": "string",
98
- "nullable": true
109
+ "maxLength": 50,
110
+ "minLength": 1,
111
+ "type": "string"
99
112
  },
100
113
  "primaryKey": {
101
114
  "type": "boolean"
@@ -184,11 +197,26 @@
184
197
  },
185
198
  "isSystemField": {
186
199
  "type": "boolean"
200
+ },
201
+ "isLocalized": {
202
+ "type": "boolean"
203
+ },
204
+ "nameTranslations": {
205
+ "type": "object",
206
+ "additionalProperties": {
207
+ "type": "string",
208
+ "nullable": true
209
+ },
210
+ "nullable": true
187
211
  }
188
212
  },
189
213
  "additionalProperties": false
190
214
  },
191
215
  "NgApps.Application.Contexts.Datastore.Entities.EntityIndexDto": {
216
+ "required": [
217
+ "fieldIds",
218
+ "name"
219
+ ],
192
220
  "type": "object",
193
221
  "properties": {
194
222
  "id": {
@@ -196,19 +224,19 @@
196
224
  "format": "uuid"
197
225
  },
198
226
  "name": {
199
- "type": "string",
200
- "nullable": true
227
+ "minLength": 1,
228
+ "type": "string"
201
229
  },
202
230
  "unique": {
203
231
  "type": "boolean"
204
232
  },
205
233
  "fieldIds": {
234
+ "minItems": 1,
206
235
  "type": "array",
207
236
  "items": {
208
237
  "type": "string",
209
238
  "format": "uuid"
210
- },
211
- "nullable": true
239
+ }
212
240
  }
213
241
  },
214
242
  "additionalProperties": false
@@ -296,6 +324,18 @@
296
324
  "icon": {
297
325
  "type": "string",
298
326
  "nullable": true
327
+ },
328
+ "order": {
329
+ "type": "integer",
330
+ "format": "int32"
331
+ },
332
+ "labels": {
333
+ "type": "object",
334
+ "additionalProperties": {
335
+ "type": "string",
336
+ "nullable": true
337
+ },
338
+ "nullable": true
299
339
  }
300
340
  },
301
341
  "additionalProperties": false
@@ -0,0 +1,31 @@
1
+ {
2
+ "schema": {
3
+ "required": [
4
+ "name"
5
+ ],
6
+ "type": "object",
7
+ "properties": {
8
+ "projectId": {
9
+ "type": "string",
10
+ "format": "uuid"
11
+ },
12
+ "name": {
13
+ "minLength": 1,
14
+ "pattern": "\\A(?=.{3,31}\\z)[a-z][a-z0-9_-]*(/[a-z0-9][a-z0-9_-]*)*\\z",
15
+ "type": "string"
16
+ },
17
+ "parentEnvironmentId": {
18
+ "type": "string",
19
+ "format": "uuid",
20
+ "nullable": true
21
+ },
22
+ "includeRecords": {
23
+ "type": "boolean"
24
+ }
25
+ },
26
+ "additionalProperties": false
27
+ },
28
+ "components": {
29
+ "schemas": {}
30
+ }
31
+ }
@@ -0,0 +1,95 @@
1
+ {
2
+ "schema": {
3
+ "required": [
4
+ "body",
5
+ "name",
6
+ "source"
7
+ ],
8
+ "type": "object",
9
+ "properties": {
10
+ "source": {
11
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.GlobalFunctions.GlobalFunctionSource"
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
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.GlobalFunctions.GlobalFunctionScope"
25
+ },
26
+ "name": {
27
+ "minLength": 1,
28
+ "type": "string"
29
+ },
30
+ "description": {
31
+ "type": "string",
32
+ "nullable": true
33
+ },
34
+ "isAsync": {
35
+ "type": "boolean"
36
+ },
37
+ "parameters": {
38
+ "type": "array",
39
+ "items": {
40
+ "$ref": "#/components/schemas/NgApps.Application.Contexts.Studio.GlobalFunctions.GlobalFunctionParameterDto"
41
+ },
42
+ "nullable": true
43
+ },
44
+ "body": {
45
+ "minLength": 1,
46
+ "type": "string"
47
+ }
48
+ },
49
+ "additionalProperties": false
50
+ },
51
+ "components": {
52
+ "schemas": {
53
+ "NgApps.Domain.Contexts.Studio.GlobalFunctions.GlobalFunctionSource": {
54
+ "enum": [
55
+ "workflow",
56
+ "studio"
57
+ ],
58
+ "type": "string",
59
+ "format": ""
60
+ },
61
+ "NgApps.Domain.Contexts.Studio.GlobalFunctions.GlobalFunctionScope": {
62
+ "enum": [
63
+ "application",
64
+ "page"
65
+ ],
66
+ "type": "string",
67
+ "format": ""
68
+ },
69
+ "NgApps.Application.Contexts.Studio.GlobalFunctions.GlobalFunctionParameterDto": {
70
+ "type": "object",
71
+ "properties": {
72
+ "name": {
73
+ "type": "string",
74
+ "nullable": true
75
+ },
76
+ "type": {
77
+ "type": "string",
78
+ "nullable": true
79
+ },
80
+ "required": {
81
+ "type": "boolean"
82
+ },
83
+ "defaultValue": {
84
+ "nullable": true
85
+ },
86
+ "description": {
87
+ "type": "string",
88
+ "nullable": true
89
+ }
90
+ },
91
+ "additionalProperties": false
92
+ }
93
+ }
94
+ }
95
+ }