@sap-ux/fiori-mcp-server 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.
- package/LICENSE +201 -0
- package/README.md +99 -0
- package/dist/constant.d.ts +5 -0
- package/dist/constant.js +8 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +7 -0
- package/dist/page-editor-api/api.d.ts +48 -0
- package/dist/page-editor-api/api.js +93 -0
- package/dist/page-editor-api/index.d.ts +5 -0
- package/dist/page-editor-api/index.js +24 -0
- package/dist/page-editor-api/json-helper.d.ts +11 -0
- package/dist/page-editor-api/json-helper.js +64 -0
- package/dist/page-editor-api/parser/annotations.d.ts +9 -0
- package/dist/page-editor-api/parser/annotations.js +13 -0
- package/dist/page-editor-api/parser/index.d.ts +3 -0
- package/dist/page-editor-api/parser/index.js +19 -0
- package/dist/page-editor-api/parser/model/AggregationValidator.d.ts +64 -0
- package/dist/page-editor-api/parser/model/AggregationValidator.js +209 -0
- package/dist/page-editor-api/parser/model/ArrayAggregation.d.ts +49 -0
- package/dist/page-editor-api/parser/model/ArrayAggregation.js +122 -0
- package/dist/page-editor-api/parser/model/ObjectAggregation.d.ts +374 -0
- package/dist/page-editor-api/parser/model/ObjectAggregation.js +802 -0
- package/dist/page-editor-api/parser/model/PageEditModel.d.ts +223 -0
- package/dist/page-editor-api/parser/model/PageEditModel.js +954 -0
- package/dist/page-editor-api/parser/model/PageEditProperty.d.ts +38 -0
- package/dist/page-editor-api/parser/model/PageEditProperty.js +49 -0
- package/dist/page-editor-api/parser/model/RootAggregation.d.ts +24 -0
- package/dist/page-editor-api/parser/model/RootAggregation.js +54 -0
- package/dist/page-editor-api/parser/model/actions/ActionAggregation.d.ts +34 -0
- package/dist/page-editor-api/parser/model/actions/ActionAggregation.js +92 -0
- package/dist/page-editor-api/parser/model/actions/ActionsAggregation.d.ts +96 -0
- package/dist/page-editor-api/parser/model/actions/ActionsAggregation.js +252 -0
- package/dist/page-editor-api/parser/model/actions/index.d.ts +3 -0
- package/dist/page-editor-api/parser/model/actions/index.js +19 -0
- package/dist/page-editor-api/parser/model/additionalObjects/AdditionalObjectAggregation.d.ts +17 -0
- package/dist/page-editor-api/parser/model/additionalObjects/AdditionalObjectAggregation.js +26 -0
- package/dist/page-editor-api/parser/model/additionalObjects/AdditionalObjectsAggregation.d.ts +46 -0
- package/dist/page-editor-api/parser/model/additionalObjects/AdditionalObjectsAggregation.js +66 -0
- package/dist/page-editor-api/parser/model/additionalObjects/index.d.ts +3 -0
- package/dist/page-editor-api/parser/model/additionalObjects/index.js +19 -0
- package/dist/page-editor-api/parser/model/chart/ChartAggregation.d.ts +41 -0
- package/dist/page-editor-api/parser/model/chart/ChartAggregation.js +94 -0
- package/dist/page-editor-api/parser/model/chart/index.d.ts +2 -0
- package/dist/page-editor-api/parser/model/chart/index.js +18 -0
- package/dist/page-editor-api/parser/model/fields/ConnectedFieldsAggregation.d.ts +9 -0
- package/dist/page-editor-api/parser/model/fields/ConnectedFieldsAggregation.js +13 -0
- package/dist/page-editor-api/parser/model/fields/FieldAggregation.d.ts +25 -0
- package/dist/page-editor-api/parser/model/fields/FieldAggregation.js +42 -0
- package/dist/page-editor-api/parser/model/fields/FieldsAggregation.d.ts +22 -0
- package/dist/page-editor-api/parser/model/fields/FieldsAggregation.js +34 -0
- package/dist/page-editor-api/parser/model/fields/index.d.ts +4 -0
- package/dist/page-editor-api/parser/model/fields/index.js +20 -0
- package/dist/page-editor-api/parser/model/filter-fields/FilterFieldAggregation.d.ts +39 -0
- package/dist/page-editor-api/parser/model/filter-fields/FilterFieldAggregation.js +94 -0
- package/dist/page-editor-api/parser/model/filter-fields/FilterFieldsAggregation.d.ts +36 -0
- package/dist/page-editor-api/parser/model/filter-fields/FilterFieldsAggregation.js +59 -0
- package/dist/page-editor-api/parser/model/filter-fields/index.d.ts +3 -0
- package/dist/page-editor-api/parser/model/filter-fields/index.js +19 -0
- package/dist/page-editor-api/parser/model/index.d.ts +19 -0
- package/dist/page-editor-api/parser/model/index.js +35 -0
- package/dist/page-editor-api/parser/model/macros/MacrosRoot.d.ts +48 -0
- package/dist/page-editor-api/parser/model/macros/MacrosRoot.js +114 -0
- package/dist/page-editor-api/parser/model/macros/index.d.ts +2 -0
- package/dist/page-editor-api/parser/model/macros/index.js +18 -0
- package/dist/page-editor-api/parser/model/sections/HeaderSectionsAggregation.d.ts +31 -0
- package/dist/page-editor-api/parser/model/sections/HeaderSectionsAggregation.js +82 -0
- package/dist/page-editor-api/parser/model/sections/SectionAggregation.d.ts +78 -0
- package/dist/page-editor-api/parser/model/sections/SectionAggregation.js +131 -0
- package/dist/page-editor-api/parser/model/sections/SectionsAggregation.d.ts +135 -0
- package/dist/page-editor-api/parser/model/sections/SectionsAggregation.js +402 -0
- package/dist/page-editor-api/parser/model/sections/SectionsObjectAggregation.d.ts +50 -0
- package/dist/page-editor-api/parser/model/sections/SectionsObjectAggregation.js +119 -0
- package/dist/page-editor-api/parser/model/sections/SubSectionsAggregation.d.ts +39 -0
- package/dist/page-editor-api/parser/model/sections/SubSectionsAggregation.js +70 -0
- package/dist/page-editor-api/parser/model/sections/index.d.ts +6 -0
- package/dist/page-editor-api/parser/model/sections/index.js +22 -0
- package/dist/page-editor-api/parser/model/table/ColumnAggregation.d.ts +89 -0
- package/dist/page-editor-api/parser/model/table/ColumnAggregation.js +175 -0
- package/dist/page-editor-api/parser/model/table/ColumnsAggregation.d.ts +113 -0
- package/dist/page-editor-api/parser/model/table/ColumnsAggregation.js +293 -0
- package/dist/page-editor-api/parser/model/table/TableAggregation.d.ts +13 -0
- package/dist/page-editor-api/parser/model/table/TableAggregation.js +21 -0
- package/dist/page-editor-api/parser/model/table/ToolbarAggregation.d.ts +15 -0
- package/dist/page-editor-api/parser/model/table/ToolbarAggregation.js +22 -0
- package/dist/page-editor-api/parser/model/table/index.d.ts +5 -0
- package/dist/page-editor-api/parser/model/table/index.js +21 -0
- package/dist/page-editor-api/parser/model/table/utils.d.ts +12 -0
- package/dist/page-editor-api/parser/model/table/utils.js +44 -0
- package/dist/page-editor-api/parser/model/types/annotations.d.ts +63 -0
- package/dist/page-editor-api/parser/model/types/annotations.js +29 -0
- package/dist/page-editor-api/parser/model/types/common.d.ts +13 -0
- package/dist/page-editor-api/parser/model/types/common.js +3 -0
- package/dist/page-editor-api/parser/model/types/index.d.ts +220 -0
- package/dist/page-editor-api/parser/model/types/index.js +149 -0
- package/dist/page-editor-api/parser/model/utils/annotations.d.ts +38 -0
- package/dist/page-editor-api/parser/model/utils/annotations.js +120 -0
- package/dist/page-editor-api/parser/model/utils/i18n.d.ts +33 -0
- package/dist/page-editor-api/parser/model/utils/i18n.js +69 -0
- package/dist/page-editor-api/parser/model/utils/index.d.ts +6 -0
- package/dist/page-editor-api/parser/model/utils/index.js +22 -0
- package/dist/page-editor-api/parser/model/utils/object.d.ts +25 -0
- package/dist/page-editor-api/parser/model/utils/object.js +68 -0
- package/dist/page-editor-api/parser/model/utils/sort.d.ts +31 -0
- package/dist/page-editor-api/parser/model/utils/sort.js +18 -0
- package/dist/page-editor-api/parser/model/utils/utils.d.ts +94 -0
- package/dist/page-editor-api/parser/model/utils/utils.js +267 -0
- package/dist/page-editor-api/parser/model/views/ViewAggregation.d.ts +62 -0
- package/dist/page-editor-api/parser/model/views/ViewAggregation.js +112 -0
- package/dist/page-editor-api/parser/model/views/ViewsAggregation.d.ts +54 -0
- package/dist/page-editor-api/parser/model/views/ViewsAggregation.js +141 -0
- package/dist/page-editor-api/parser/model/views/index.d.ts +3 -0
- package/dist/page-editor-api/parser/model/views/index.js +19 -0
- package/dist/page-editor-api/parser/model/visual-filters/VisualFilterAggregation.d.ts +11 -0
- package/dist/page-editor-api/parser/model/visual-filters/VisualFilterAggregation.js +15 -0
- package/dist/page-editor-api/parser/model/visual-filters/VisualFiltersAggregation.d.ts +11 -0
- package/dist/page-editor-api/parser/model/visual-filters/VisualFiltersAggregation.js +15 -0
- package/dist/page-editor-api/parser/model/visual-filters/index.d.ts +3 -0
- package/dist/page-editor-api/parser/model/visual-filters/index.js +19 -0
- package/dist/page-editor-api/parser/tree.d.ts +135 -0
- package/dist/page-editor-api/parser/tree.js +464 -0
- package/dist/page-editor-api/project.d.ts +40 -0
- package/dist/page-editor-api/project.js +124 -0
- package/dist/page-editor-api/sapuxFtfsFileIO.d.ts +84 -0
- package/dist/page-editor-api/sapuxFtfsFileIO.js +195 -0
- package/dist/server.d.ts +35 -0
- package/dist/server.js +120 -0
- package/dist/tools/execute-functionality.d.ts +19 -0
- package/dist/tools/execute-functionality.js +175 -0
- package/dist/tools/functionalities/controller-extension/index.d.ts +4 -0
- package/dist/tools/functionalities/controller-extension/index.js +136 -0
- package/dist/tools/functionalities/functionalities.d.ts +4 -0
- package/dist/tools/functionalities/functionalities.js +19 -0
- package/dist/tools/functionalities/generate-fiori-ui-app/command.d.ts +9 -0
- package/dist/tools/functionalities/generate-fiori-ui-app/command.js +158 -0
- package/dist/tools/functionalities/generate-fiori-ui-app/generate-fiori-ui-app.d.ts +4 -0
- package/dist/tools/functionalities/generate-fiori-ui-app/generate-fiori-ui-app.js +240 -0
- package/dist/tools/functionalities/generate-fiori-ui-app/index.d.ts +2 -0
- package/dist/tools/functionalities/generate-fiori-ui-app/index.js +7 -0
- package/dist/tools/functionalities/index.d.ts +2 -0
- package/dist/tools/functionalities/index.js +18 -0
- package/dist/tools/functionalities/page/add-page.d.ts +5 -0
- package/dist/tools/functionalities/page/add-page.js +89 -0
- package/dist/tools/functionalities/page/application.d.ts +212 -0
- package/dist/tools/functionalities/page/application.js +616 -0
- package/dist/tools/functionalities/page/delete-page.d.ts +4 -0
- package/dist/tools/functionalities/page/delete-page.js +71 -0
- package/dist/tools/functionalities/page/index.d.ts +3 -0
- package/dist/tools/functionalities/page/index.js +10 -0
- package/dist/tools/functionalities/page/service.d.ts +82 -0
- package/dist/tools/functionalities/page/service.js +114 -0
- package/dist/tools/functionalities/page/serviceStore.d.ts +17 -0
- package/dist/tools/functionalities/page/serviceStore.js +34 -0
- package/dist/tools/functionalities/page/types.d.ts +42 -0
- package/dist/tools/functionalities/page/types.js +11 -0
- package/dist/tools/functionalities/page/utils.d.ts +12 -0
- package/dist/tools/functionalities/page/utils.js +63 -0
- package/dist/tools/get-functionality-details.d.ts +24 -0
- package/dist/tools/get-functionality-details.js +142 -0
- package/dist/tools/index.d.ts +7 -0
- package/dist/tools/index.js +55 -0
- package/dist/tools/input-schema/execute-functionality.json +28 -0
- package/dist/tools/input-schema/get-functionality-details.json +24 -0
- package/dist/tools/input-schema/index.d.ts +5 -0
- package/dist/tools/input-schema/index.js +15 -0
- package/dist/tools/input-schema/list-fiori-apps.json +12 -0
- package/dist/tools/input-schema/list-functionality.json +10 -0
- package/dist/tools/list-fiori-apps.d.ts +10 -0
- package/dist/tools/list-fiori-apps.js +33 -0
- package/dist/tools/list-functionalities.d.ts +10 -0
- package/dist/tools/list-functionalities.js +145 -0
- package/dist/tools/output-schema/execute-functionality.json +39 -0
- package/dist/tools/output-schema/get-functionality-details.json +142 -0
- package/dist/tools/output-schema/index.d.ts +5 -0
- package/dist/tools/output-schema/index.js +15 -0
- package/dist/tools/output-schema/list-fiori-apps.json +41 -0
- package/dist/tools/output-schema/list-functionality.json +37 -0
- package/dist/tools/utils.d.ts +16 -0
- package/dist/tools/utils.js +74 -0
- package/dist/types.d.ts +170 -0
- package/dist/types.js +3 -0
- package/package.json +63 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# @sap-ux/fiori-mcp-server
|
|
2
|
+
|
|
3
|
+
This package includes a [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server for integration with AI coding assistants.
|
|
4
|
+
|
|
5
|
+
The server helps AI models create or modify SAP Fiori applications based on prompts, such as:
|
|
6
|
+
|
|
7
|
+
- _Please add a SAP Fiori elements list report app to my CAP project_
|
|
8
|
+
- _Generate a new CAP project and SAP Fiori app based on my_picture.png_
|
|
9
|
+
- _Add the FCL to the SAP Fiori elements app_
|
|
10
|
+
- _Enable initial load for the fiori app_
|
|
11
|
+
|
|
12
|
+
For the best experience we recommend using this server alongside [@cap-js/mcp-server](https://www.npmjs.com/package/@cap-js/mcp-server) and [@ui5/mcp-server](https://www.npmjs.com/package/@ui5/mcp-server).
|
|
13
|
+
|
|
14
|
+
> ⚠️ Caution
|
|
15
|
+
>
|
|
16
|
+
> This is an experimental feature and may change at any time without notice.
|
|
17
|
+
> It is not intended for productive use.
|
|
18
|
+
> Please back up your data before using it.
|
|
19
|
+
|
|
20
|
+
## [Usage](#usage)
|
|
21
|
+
|
|
22
|
+
### Method 1: npx
|
|
23
|
+
|
|
24
|
+
Configure your MCP client to start the server with command `fiori-mcp`. Here is a sample configuration for Cline:
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"fiori-mcp": {
|
|
29
|
+
"command": "npx",
|
|
30
|
+
"args": ["--yes","@sap-ux/fiori-mcp-server@latest", "fiori-mcp"]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
### Method 2: npm
|
|
36
|
+
|
|
37
|
+
First, install the required package globally using `npm`:
|
|
38
|
+
```bash
|
|
39
|
+
npm install -g @sap-ux/fiori-mcp-server
|
|
40
|
+
```
|
|
41
|
+
Then, configure your MCP client to start the server with command `fiori-mcp`. Here is a sample configuration for Cline:
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"mcpServers": {
|
|
45
|
+
"fiori-mcp": {
|
|
46
|
+
"type": "stdio",
|
|
47
|
+
"command": "fiori-mcp"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## [Rules](#rules)
|
|
54
|
+
|
|
55
|
+
The following rules help guide the LLM to use the server correctly:
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
## Rules for creation or modification of SAP Fiori elements apps
|
|
59
|
+
|
|
60
|
+
- When asked to create an SAP Fiori elements app check whether the user input can be interpreted as an application organized into one or more pages containing table data or forms, these can be translated into a SAP Fiori elements application, else ask the user for suitable input.
|
|
61
|
+
- The application typically starts with a List Report page showing the data of the base entity of the application in a table. Details of a specific table row are shown in the ObjectPage. This first Object Page is therefore based on the base entity of the application.
|
|
62
|
+
- An Object Page can contain one or more table sections based on to-many associations of its entity type. The details of a table section row can be shown in an another Object Page based on the associations target entity.
|
|
63
|
+
- The data model must be suitable for usage in a SAP Fiori elements frontend application. So there must be one main entity and one or more navigation properties to related entities.
|
|
64
|
+
- Each property of an entity must have a proper datatype.
|
|
65
|
+
- For all entities in the data model provide primary keys of type UUID.
|
|
66
|
+
- When creating sample data in CSV files, all primary keys and foreign keys MUST be in UUID format (e.g., `550e8400-e29b-41d4-a716-446655440001`).
|
|
67
|
+
- When generating or modifying the SAP Fiori elements application on top of the CAP service use the Fiori MCP server if available.
|
|
68
|
+
- When attempting to modify the SAP Fiori elements application like adding columns you must not use the screen personalization but instead modify the code of the project, before this first check whether an MCP server provides a suitable function.
|
|
69
|
+
- When previewing the SAP Fiori elements application use the most specific script for the app in the `package.json`.
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## [Available Tools](#available-tools)
|
|
73
|
+
|
|
74
|
+
#### `list-fiori-apps`
|
|
75
|
+
Scans a specified directory to find existing SAP Fiori applications that can be modified.
|
|
76
|
+
|
|
77
|
+
#### `list-functionalities` (Step 1 of 3)
|
|
78
|
+
Gets the list of supported functionalities to create a new or modify an existing SAP Fiori application.
|
|
79
|
+
|
|
80
|
+
The main functionalities are:
|
|
81
|
+
|
|
82
|
+
- Generating a Fiori elements app within an [SAP Cloud Application Programming Model (CAP)](https://cap.cloud.sap/) project
|
|
83
|
+
- Adding and deleting pages from an app
|
|
84
|
+
- Adding and modifying controller extensions
|
|
85
|
+
- Modifying `manifest.json` properties depending on the app (e.g. adding Flexible Column Layout, enabling initial load)
|
|
86
|
+
|
|
87
|
+
#### `get-functionality-details` (Step 2 of 3)
|
|
88
|
+
Gets the required parameters and detailed information for a specific functionality to create a new or modify an existing SAP Fiori application.
|
|
89
|
+
|
|
90
|
+
#### `execute-functionality` (Step 3 of 3)
|
|
91
|
+
Executes a specific functionality to create a new or modify an existing SAP Fiori application with provided parameters.
|
|
92
|
+
|
|
93
|
+
## Code of Conduct
|
|
94
|
+
|
|
95
|
+
Everyone participating in this joint project is welcome as long as our [Code of Conduct](https://github.com/SAP/open-ux-tools/blob/main/docs/CODE_OF_CONDUCT.md) is being adhered to.
|
|
96
|
+
|
|
97
|
+
## Licensing
|
|
98
|
+
|
|
99
|
+
Please see our [LICENSE](./LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the [REUSE tool](https://api.reuse.software/info/github.com/SAP/open-ux-tools).
|
package/dist/constant.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DELETE_PAGE = exports.ADD_PAGE = exports.GENERATE_FIORI_UI_APP_ID = exports.LATEST_UI5_VERSION = void 0;
|
|
4
|
+
exports.LATEST_UI5_VERSION = '1.136.7';
|
|
5
|
+
exports.GENERATE_FIORI_UI_APP_ID = 'generate-fiori-ui-app';
|
|
6
|
+
exports.ADD_PAGE = 'add-page';
|
|
7
|
+
exports.DELETE_PAGE = 'delete-page';
|
|
8
|
+
//# sourceMappingURL=constant.js.map
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const server_1 = require("./server");
|
|
5
|
+
const server = new server_1.FioriFunctionalityServer();
|
|
6
|
+
server.run().catch(console.error);
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ExportResults } from '@sap/ux-specification/dist/types/src';
|
|
2
|
+
import type { PageAnnotations, TreeNode, PropertyPath } from './parser';
|
|
3
|
+
import type { AppData } from './sapuxFtfsFileIO';
|
|
4
|
+
import type { ApplicationAccess } from '@sap-ux/project-access';
|
|
5
|
+
/**
|
|
6
|
+
* Class representing the Page Editor API
|
|
7
|
+
*/
|
|
8
|
+
export declare class PageEditorApi {
|
|
9
|
+
appAccess: ApplicationAccess;
|
|
10
|
+
pageId?: string | undefined;
|
|
11
|
+
private readonly ftfsIO;
|
|
12
|
+
/**
|
|
13
|
+
* Creates an instance of PageEditorApi.
|
|
14
|
+
*
|
|
15
|
+
* @param appAccess - The application access object
|
|
16
|
+
* @param pageId - Optional page identifier
|
|
17
|
+
*/
|
|
18
|
+
constructor(appAccess: ApplicationAccess, pageId?: string | undefined);
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves the page tree structure.
|
|
21
|
+
*
|
|
22
|
+
* @param annotation - Optional page annotations
|
|
23
|
+
* @returns Promise resolving to the TreeNode structure
|
|
24
|
+
*/
|
|
25
|
+
getPageTree(annotation?: PageAnnotations): Promise<TreeNode>;
|
|
26
|
+
/**
|
|
27
|
+
* Changes a property in the page or application configuration.
|
|
28
|
+
*
|
|
29
|
+
* @param path - The property path to change
|
|
30
|
+
* @param value - The new value for the property
|
|
31
|
+
* @returns Promise resolving to ExportResults or undefined
|
|
32
|
+
*/
|
|
33
|
+
changeProperty(path: PropertyPath, value: unknown): Promise<ExportResults | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves the application data.
|
|
36
|
+
*
|
|
37
|
+
* @returns Promise resolving to application data
|
|
38
|
+
*/
|
|
39
|
+
getApplication(): Promise<AppData>;
|
|
40
|
+
/**
|
|
41
|
+
* Updates the application data.
|
|
42
|
+
*
|
|
43
|
+
* @param appData - The new application data
|
|
44
|
+
* @returns Promise resolving when the update is complete
|
|
45
|
+
*/
|
|
46
|
+
updateApplication(appData: AppData): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageEditorApi = void 0;
|
|
4
|
+
const src_1 = require("@sap/ux-specification/dist/types/src");
|
|
5
|
+
const parser_1 = require("./parser");
|
|
6
|
+
const sapuxFtfsFileIO_1 = require("./sapuxFtfsFileIO");
|
|
7
|
+
const json_helper_1 = require("./json-helper");
|
|
8
|
+
/**
|
|
9
|
+
* Class representing the Page Editor API
|
|
10
|
+
*/
|
|
11
|
+
class PageEditorApi {
|
|
12
|
+
appAccess;
|
|
13
|
+
pageId;
|
|
14
|
+
ftfsIO;
|
|
15
|
+
/**
|
|
16
|
+
* Creates an instance of PageEditorApi.
|
|
17
|
+
*
|
|
18
|
+
* @param appAccess - The application access object
|
|
19
|
+
* @param pageId - Optional page identifier
|
|
20
|
+
*/
|
|
21
|
+
constructor(appAccess, pageId) {
|
|
22
|
+
this.appAccess = appAccess;
|
|
23
|
+
this.pageId = pageId;
|
|
24
|
+
this.ftfsIO = new sapuxFtfsFileIO_1.SapuxFtfsFileIO(appAccess);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves the page tree structure.
|
|
28
|
+
*
|
|
29
|
+
* @param annotation - Optional page annotations
|
|
30
|
+
* @returns Promise resolving to the TreeNode structure
|
|
31
|
+
*/
|
|
32
|
+
async getPageTree(annotation) {
|
|
33
|
+
let tree = {
|
|
34
|
+
children: [],
|
|
35
|
+
path: [],
|
|
36
|
+
properties: [],
|
|
37
|
+
text: ''
|
|
38
|
+
};
|
|
39
|
+
if (this.pageId) {
|
|
40
|
+
const pageData = await this.ftfsIO.readPageData(this.pageId);
|
|
41
|
+
if (pageData) {
|
|
42
|
+
tree = (0, parser_1.getTree)(pageData.schema, pageData.config, pageData.pageType, annotation);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
const pageData = await this.ftfsIO.readApp();
|
|
47
|
+
if (pageData) {
|
|
48
|
+
tree = (0, parser_1.getTree)(pageData.schema, pageData.config, src_1.PageTypeV4.ListReport);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return tree;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Changes a property in the page or application configuration.
|
|
55
|
+
*
|
|
56
|
+
* @param path - The property path to change
|
|
57
|
+
* @param value - The new value for the property
|
|
58
|
+
* @returns Promise resolving to ExportResults or undefined
|
|
59
|
+
*/
|
|
60
|
+
async changeProperty(path, value) {
|
|
61
|
+
if (this.pageId) {
|
|
62
|
+
const pageData = await this.ftfsIO.readPageData(this.pageId);
|
|
63
|
+
if (pageData) {
|
|
64
|
+
(0, json_helper_1.updateProperty)(pageData.config, path, value);
|
|
65
|
+
return this.ftfsIO.writePage(pageData);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const appData = await this.ftfsIO.readApp();
|
|
70
|
+
(0, json_helper_1.updateProperty)(appData.config, path, value);
|
|
71
|
+
return this.ftfsIO.writeApp(appData);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves the application data.
|
|
76
|
+
*
|
|
77
|
+
* @returns Promise resolving to application data
|
|
78
|
+
*/
|
|
79
|
+
async getApplication() {
|
|
80
|
+
return this.ftfsIO.readApp();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Updates the application data.
|
|
84
|
+
*
|
|
85
|
+
* @param appData - The new application data
|
|
86
|
+
* @returns Promise resolving when the update is complete
|
|
87
|
+
*/
|
|
88
|
+
async updateApplication(appData) {
|
|
89
|
+
await this.ftfsIO.writeApp(appData);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.PageEditorApi = PageEditorApi;
|
|
93
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.findByPath = exports.findNodeByAnnotationNodeId = void 0;
|
|
18
|
+
__exportStar(require("./api"), exports);
|
|
19
|
+
__exportStar(require("./sapuxFtfsFileIO"), exports);
|
|
20
|
+
var parser_1 = require("./parser");
|
|
21
|
+
Object.defineProperty(exports, "findNodeByAnnotationNodeId", { enumerable: true, get: function () { return parser_1.findNodeByAnnotationNodeId; } });
|
|
22
|
+
Object.defineProperty(exports, "findByPath", { enumerable: true, get: function () { return parser_1.findByPath; } });
|
|
23
|
+
__exportStar(require("./project"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PropertyPath } from './parser';
|
|
2
|
+
/**
|
|
3
|
+
* Static method updates object for passed path.
|
|
4
|
+
*
|
|
5
|
+
* @param obj Object to update.
|
|
6
|
+
* @param paths Path for update.
|
|
7
|
+
* @param value New value to update with.
|
|
8
|
+
* @param arrayElement Value should be inserted into array.
|
|
9
|
+
*/
|
|
10
|
+
export declare function updateProperty(obj: object, paths: PropertyPath, value: unknown, arrayElement?: boolean): void;
|
|
11
|
+
//# sourceMappingURL=json-helper.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateProperty = updateProperty;
|
|
4
|
+
/**
|
|
5
|
+
* Static method updates object for passed path.
|
|
6
|
+
*
|
|
7
|
+
* @param obj Object to update.
|
|
8
|
+
* @param paths Path for update.
|
|
9
|
+
* @param value New value to update with.
|
|
10
|
+
* @param arrayElement Value should be inserted into array.
|
|
11
|
+
*/
|
|
12
|
+
function updateProperty(obj, paths, value, arrayElement = false) {
|
|
13
|
+
traverseProperty(obj, paths, value !== undefined, (context, key) => {
|
|
14
|
+
if (typeof context !== 'object' || context === null) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const ctx = context;
|
|
18
|
+
// Update received element
|
|
19
|
+
if (value !== undefined) {
|
|
20
|
+
if (arrayElement && Array.isArray(ctx[key])) {
|
|
21
|
+
ctx[key].push(value);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
ctx[key] = arrayElement ? [value] : value;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else if (Array.isArray(ctx)) {
|
|
28
|
+
ctx.splice(typeof key === 'string' ? parseInt(key, 10) : key, 1);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
delete ctx[key];
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Method traverse object by given path and call callback when given path is resolved/found.
|
|
37
|
+
*
|
|
38
|
+
* @param obj Object to update.
|
|
39
|
+
* @param paths Path for update.
|
|
40
|
+
* @param prepare If any sub property is not found, then prepare object.
|
|
41
|
+
* @param callback Callback listener.
|
|
42
|
+
*/
|
|
43
|
+
function traverseProperty(obj, paths, prepare, callback) {
|
|
44
|
+
let current = obj;
|
|
45
|
+
for (let i = 0; i < paths.length; i++) {
|
|
46
|
+
if (paths[i] === undefined) {
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if (i === paths.length - 1) {
|
|
50
|
+
// We found edge - call callback
|
|
51
|
+
callback(current, paths[i]);
|
|
52
|
+
}
|
|
53
|
+
if (current[paths[i]] === undefined && prepare) {
|
|
54
|
+
// Check if next path is integer, then consider, that array should be created
|
|
55
|
+
const isArray = paths[i + 1] !== undefined && typeof paths[i + 1] === 'number';
|
|
56
|
+
current[paths[i]] = !isArray ? {} : [];
|
|
57
|
+
}
|
|
58
|
+
current = current[paths[i]];
|
|
59
|
+
if (!current) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=json-helper.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TooComplexData } from './model';
|
|
2
|
+
/**
|
|
3
|
+
* Type guard to check whether a given value is of type `TooComplexData`.
|
|
4
|
+
*
|
|
5
|
+
* @param value The value to check.
|
|
6
|
+
* @returns true if the value is a TooComplexData object.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isTooComplex<T>(value: T | TooComplexData): value is TooComplexData;
|
|
9
|
+
//# sourceMappingURL=annotations.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isTooComplex = isTooComplex;
|
|
4
|
+
/**
|
|
5
|
+
* Type guard to check whether a given value is of type `TooComplexData`.
|
|
6
|
+
*
|
|
7
|
+
* @param value The value to check.
|
|
8
|
+
* @returns true if the value is a TooComplexData object.
|
|
9
|
+
*/
|
|
10
|
+
function isTooComplex(value) {
|
|
11
|
+
return value?.tooComplex === true;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=annotations.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./model"), exports);
|
|
18
|
+
__exportStar(require("./tree"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|