@sap-ux/fiori-mcp-server 0.0.4 → 0.0.5

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.
@@ -1,37 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "applicationPath": {
5
- "type": "string"
6
- },
7
- "functionalities": {
8
- "type": "array",
9
- "items": {
10
- "type": "object",
11
- "properties": {
12
- "functionalityId": {
13
- "anyOf": [
14
- {
15
- "type": "array",
16
- "items": {
17
- "type": ["string", "number"]
18
- }
19
- },
20
- {
21
- "type": "string"
22
- }
23
- ],
24
- "description": "Identifier to pass as the `functionalityId` parameter when calling `get-functionality-details` or `execute-functionality`"
25
- },
26
- "description": {
27
- "type": "string"
28
- }
29
- },
30
- "required": ["functionalityId", "description"],
31
- "additionalProperties": false
32
- }
33
- }
34
- },
35
- "required": ["applicationPath", "functionalities"],
36
- "additionalProperties": false
37
- }
package/dist/types.d.ts DELETED
@@ -1,174 +0,0 @@
1
- import type { ApplicationAccess, ProjectType } from '@sap-ux/project-access';
2
- /**
3
- * Types for Fiori functionality
4
- */
5
- /**
6
- * Input interface for the 'list-fiori-apps' functionality
7
- */
8
- export interface ListFioriAppsInput {
9
- /** Array of paths to search for Fiori applications */
10
- searchPath: string[];
11
- }
12
- /**
13
- * Output interface for the 'list-fiori-apps' functionality
14
- */
15
- export interface ListFioriAppsOutput {
16
- /** Array of found Fiori applications */
17
- applications: FioriApp[];
18
- }
19
- /**
20
- * Input interface for the 'list-functionality' functionality
21
- */
22
- export interface ListFunctionalitiesInput {
23
- /** Path to the Fiori application */
24
- appPath: string;
25
- }
26
- /**
27
- * Output interface for the 'list-functionality' functionality
28
- */
29
- export interface ListFunctionalitiesOutput {
30
- /** Path to the Fiori application */
31
- applicationPath: string;
32
- /** Array of available functionalities */
33
- functionalities: Functionality[];
34
- }
35
- /**
36
- * Input interface for the 'get-functionality-details' functionality
37
- */
38
- export interface GetFunctionalityDetailsInput {
39
- /** Path to the Fiori application */
40
- appPath: string;
41
- /** ID or array of IDs of the functionality(ies) */
42
- functionalityId: FunctionalityId;
43
- }
44
- /**
45
- * Output interface for the 'get-functionality-details' functionality
46
- */
47
- export interface GetFunctionalityDetailsOutput {
48
- /** ID of the functionality */
49
- functionalityId: FunctionalityId;
50
- /** Name of the functionality */
51
- name: string;
52
- /** Description of the functionality */
53
- description: string;
54
- /** Technical description of the functionality */
55
- technicalDescription?: string;
56
- /** Array of parameters for the functionality */
57
- parameters: Parameter[];
58
- /** Array of prerequisites for the functionality */
59
- prerequisites?: string[];
60
- /** Impact of the functionality */
61
- impact?: string;
62
- /** Array of examples for the functionality */
63
- examples?: string[];
64
- /** Name of the page associated with the functionality */
65
- pageName?: string;
66
- }
67
- /**
68
- * Input interface for the 'execute-functionality' functionality
69
- */
70
- export interface ExecuteFunctionalitiesInput {
71
- /** ID or array of IDs of the functionality(ies) to execute */
72
- functionalityId: FunctionalityId;
73
- /** Parameters for the functionality execution */
74
- parameters: {
75
- [key: string]: unknown;
76
- };
77
- /** Path to the Fiori application */
78
- appPath: string;
79
- }
80
- /**
81
- * Output interface for the 'execute-functionality' functionality
82
- */
83
- export interface ExecuteFunctionalityOutput {
84
- /** ID or array of IDs of the executed functionality(ies) */
85
- functionalityId: FunctionalityId;
86
- /** Status of the execution */
87
- status: string;
88
- /** Message describing the execution result */
89
- message: string;
90
- /** Parameters used in the execution */
91
- parameters: unknown;
92
- /** Path to the Fiori application */
93
- appPath: string;
94
- /** Array of changes made during the execution */
95
- changes: string[];
96
- /** Timestamp of the execution */
97
- timestamp: string;
98
- }
99
- /**
100
- * Interface representing a Fiori application
101
- */
102
- export interface FioriApp {
103
- /** Name of the Fiori application */
104
- name: string;
105
- /** Path to the Fiori application */
106
- appPath: string;
107
- /** Path to project */
108
- projectPath: string;
109
- /** Type of the Fiori project */
110
- projectType: ProjectType;
111
- /** OData version of the Fiori application */
112
- odataVersion: string;
113
- }
114
- /**
115
- * Interface representing a functionality
116
- */
117
- export interface Functionality {
118
- /** ID or array of IDs for the functionality */
119
- functionalityId: FunctionalityId;
120
- /** Description of the functionality */
121
- description: string;
122
- }
123
- /**
124
- * Type for functionality id
125
- */
126
- export type FunctionalityId = Array<string | number> | string;
127
- /**
128
- * Interface representing a parameter
129
- */
130
- export interface Parameter {
131
- /** ID of the parameter */
132
- id: string;
133
- /** Name of the parameter */
134
- name?: string;
135
- /** Type of the parameter */
136
- type: 'string' | 'number' | 'boolean' | 'array' | 'object';
137
- /** Whether the parameter is required */
138
- required?: boolean;
139
- /** Description of the parameter */
140
- description?: string;
141
- /** Default value of the parameter */
142
- defaultValue?: unknown;
143
- /** Possible options for the parameter */
144
- options?: Array<string | number | boolean | undefined | null>;
145
- /** Current value of the parameter */
146
- currentValue?: unknown;
147
- /** Examples for the parameter */
148
- examples?: string[];
149
- /** Regex pattern to validate the value of this parameter */
150
- pattern?: string;
151
- /** Nested parameters (for 'object' type) */
152
- parameters?: Parameter[];
153
- }
154
- /**
155
- * Interface for functionality handlers
156
- */
157
- export interface FunctionalityHandlers {
158
- /** Handler for getting functionality details */
159
- getFunctionalityDetails: (params: GetFunctionalityDetailsInput) => Promise<GetFunctionalityDetailsOutput>;
160
- /** Handler for executing functionality */
161
- executeFunctionality: (params: ExecuteFunctionalitiesInput) => Promise<ExecuteFunctionalityOutput>;
162
- }
163
- /**
164
- * Interface representing application details
165
- */
166
- export interface Appdetails {
167
- /** Root path of the application */
168
- root: string;
169
- /** ID of the application */
170
- appId: string;
171
- /** Access details for the application */
172
- applicationAccess?: ApplicationAccess;
173
- }
174
- //# sourceMappingURL=types.d.ts.map