@sap-ux/fiori-mcp-server 1.9.2 → 1.9.3
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/dist/index.js
CHANGED
|
@@ -4083,7 +4083,7 @@ This is in contrast to [DataFieldForIntentBasedNavigation](#DataFieldForIntentBa
|
|
|
4083
4083
|
This switches off the validation of user input with respect to decimals.`},LeadingEntitySet:{$Kind:"Term",$AppliesTo:["EntityContainer"],"@com.sap.vocabularies.Common.v1.Experimental":!0,"@Org.OData.Core.V1.Description":"The referenced entity set is the preferred starting point for UIs using this service"},ActionName:{$Kind:"TypeDefinition",$UnderlyingType:"Edm.String","@Org.OData.Core.V1.Description":"Name of an Action, Function, ActionImport, or FunctionImport in scope","@Org.OData.Core.V1.LongDescription":"Possible values are\n\n- Namespace-qualified name of an action or function (`foo.bar`)\n- Namespace-qualified name of an action or function followed by parentheses with the parameter signature to identify a specific overload, like in an [annotation target](https://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/odata-csdl-xml-v4.01.html#sec_Target) (`foo.bar(baz.qux)`)\n- Simple name of an action import or function import of the annotated service (`quux`)\n- Namespace-qualified name of an entity container, followed by a slash and the simple name of an action import or function import in any referenced schema (`foo.corge/quux`)"}}};var Dyi={$Version:"4.0",$Reference:{"https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.json":{$Include:[{$Namespace:"Org.OData.Core.V1",$Alias:"Core"}]},"https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.json":{$Include:[{$Namespace:"Org.OData.Validation.V1",$Alias:"Validation"}]},"https://sap.github.io/odata-vocabularies/vocabularies/Common.json":{$Include:[{$Namespace:"com.sap.vocabularies.Common.v1",$Alias:"Common"}]},"https://sap.github.io/odata-vocabularies/vocabularies/UI.json":{$Include:[{$Namespace:"com.sap.vocabularies.UI.v1",$Alias:"UI"}]}},"com.sap.vocabularies.HTML5.v1":{$Alias:"HTML5","@Org.OData.Core.V1.Description":"Terms for HTML5","@Org.OData.Core.V1.LongDescription":"The HTML5 vocabulary provides rendering hints for HTML5 clients","@Org.OData.Core.V1.Description#Published":"2020-04-21 \xA9 Copyright 2020 SAP SE. All rights reserved","@Org.OData.Core.V1.Links":[{rel:"alternate",href:"https://sap.github.io/odata-vocabularies/vocabularies/HTML5.xml"},{rel:"latest-version",href:"https://sap.github.io/odata-vocabularies/vocabularies/HTML5.json"},{rel:"describedby",href:"https://github.com/sap/odata-vocabularies/blob/main/vocabularies/HTML5.md"}],CssDefaults:{$Kind:"Term",$Type:"com.sap.vocabularies.HTML5.v1.CssDefaultsType",$AppliesTo:["Record"],"@Org.OData.Core.V1.Description":"CSS definitions that may be used as defaults","@Org.OData.Core.V1.LongDescription":"This term can applied to e.g. UI.DataFieldAbstract records"},CssDefaultsType:{$Kind:"ComplexType",width:{$Nullable:!0,"@Org.OData.Core.V1.Description":"css: width, see https://www.w3.org/TR/CSS21/visudet.html#propdef-width","@Org.OData.Core.V1.LongDescription":`
|
|
4084
4084
|
The property allows all values specified for the original css width property.
|
|
4085
4085
|
Note that clients consuming this annotation may only support selected length units.
|
|
4086
|
-
`}},LinkTarget:{$Kind:"Term",$Type:"com.sap.vocabularies.HTML5.v1.LinkTargetType",$DefaultValue:"_self","@Org.OData.Core.V1.Description":"Where to open a link for the annotated [URL](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.html#IsURL)","@Org.OData.Core.V1.LongDescription":"When the UI contains a link to the URL, it shall open as specified by this annotation.\n This can be achieved, for example, by giving the UI5 `sap.m.Link` element a corresponding `target` property.\n Applicability of this term is governed by [`Validation.ApplicableTerms`](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.html#ApplicableTerms) annotations."},LinkTargetType:{$Kind:"TypeDefinition",$UnderlyingType:"Edm.String","@Org.OData.Core.V1.Description":"The values are interpreted like the [target attribute](https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-target) in HTML","@Org.OData.Validation.V1.AllowedValues":[{Value:"_self","@Org.OData.Core.V1.Description":"Open link in the current browsing context"},{Value:"_blank","@Org.OData.Core.V1.Description":"Open link in a new browsing context"},{Value:"_parent","@Org.OData.Core.V1.Description":"Open link in the parent browsing context"},{Value:"_top","@Org.OData.Core.V1.Description":"Open link in the top browsing context"}]},RowSpanForDuplicateValues:{$Kind:"Term",$Type:"Org.OData.Core.V1.Tag",$DefaultValue:!0,$AppliesTo:["Record"],"@com.sap.vocabularies.Common.v1.Experimental":!0,"@Org.OData.Core.V1.RequiresType":"com.sap.vocabularies.UI.v1.DataFieldAbstract","@Org.OData.Core.V1.Description":"The annotated data field might use a rowSpan for adjacent duplicate values if used in a table.","@Org.OData.Core.V1.LongDescription":"In order to achieve a good user experience the respective columns should be sorted.\n Applicability of this term is governed by [`Validation.ApplicableTerms`](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.html#ApplicableTerms) annotations.\n "}}};var Iyi={"com.sap.cds.vocabularies.ObjectModel":{$Alias:"ObjectModel","@Org.OData.Core.V1.Description":"CDS annotation for ObjectModel (subset)",modelingPattern:{$Kind:"Term",$AppliesTo:["EntityType"],$Type:"com.sap.cds.vocabularies.ObjectModel.ModelingPatternType","@Org.OData.Core.V1.Description":"(CDS annotation) Describes the intention of an entity; used for tools/editors."},ModelingPatternType:{$Kind:"EnumType",ANALYTICAL_DIMENSION:0,"ANALYTICAL_DIMENSION@Org.OData.Core.V1.Description":'Annotated entity represents the master data of an analytical cube. Usually should be accompanied by supportedCapabilities "ANALYTICAL_DIMENSION".',ANALYTICAL_FACT:1,"ANALYTICAL_FACT@Org.OData.Core.V1.Description":'Annotated entity contains transactional data and the relationship to master data entities. Usually should be accompanied by supportedCapabilities "DATA_STRUCTURE".',ANALYTICAL_CUBE:2,"ANALYTICAL_CUBE@Org.OData.Core.V1.Description":'Describes star schema as an analytical cube. Usually accompanied by supportedCapabilities "ANALYTICAL_PROVIDER" to expose the entity for reporting tools.',LANGUAGE_DEPENDENT_TEXT:3,"LANGUAGE_DEPENDENT_TEXT@Org.OData.Core.V1.Description":'Annotated entity contains language-dependent text for master data entities. Usually should be accompanied by supportedCapabilities "LANGUAGE_DEPENDENT_TEXT".'},supportedCapabilities:{$Kind:"Term",$AppliesTo:["EntityType"],$Type:"com.sap.cds.vocabularies.ObjectModel.SupportedCapabilitiesType","@Org.OData.Core.V1.Description":"(CDS annotation) Represents consumption scenarios for the entity."},SupportedCapabilitiesType:{$Kind:"EnumType",$IsFlags:!0,ANALYTICAL_DIMENSION:0,"ANALYTICAL_DIMENSION@Org.OData.Core.V1.Description":'Defines an entity that represents the master data of an analytical cube. Usually should be accompanied by modelingPattern "ANALYTICAL_DIMENSION".',ANALYTICAL_PROVIDER:1,"ANALYTICAL_PROVIDER@Org.OData.Core.V1.Description":'Exposes an analytical query for reporting. Usually accompanied by modelingPattern "ANALYTICAL_CUBE".',DATA_STRUCTURE:2,"DATA_STRUCTURE@Org.OData.Core.V1.Description":'Defines a data structure. Usually accompanied by modelingPattern "ANALYTICAL_FACT".',LANGUAGE_DEPENDENT_TEXT:3,"LANGUAGE_DEPENDENT_TEXT@Org.OData.Core.V1.Description":'Functions as a text view that contains language-dependent text for another entity. Usually accompanied by modelingPattern "LANGUAGE_DEPENDENT_TEXT".'},foreignKey:{$Kind:"Term",$Type:"com.sap.cds.vocabularies.ObjectModel.ForeignKeyType",$AppliesTo:["Property"],"@Org.OData.Core.V1.Description":"(CDS annotation) Points to a value list entity for the annotated element."},ForeignKeyType:{$Kind:"ComplexType",association:{$Type:"Edm.NavigationPropertyPath","@Org.OData.Core.V1.Description":"Association to an entity that is a value list for the annotated element."}},representativeKey:{$Kind:"Term",$AppliesTo:["EntityType"],$Type:"Edm.PropertyPath","@Org.OData.Core.V1.Description":"(CDS annotation) Most specific element of the primary key. It is the key element for which the entity serves as a value list."}}};var Ryi={"com.sap.cds.vocabularies.AnalyticsDetails":{$Alias:"AnalyticsDetails","@Org.OData.Core.V1.Description":"CDS annotation for AnalyticsDetails (subset)",measureType:{$Kind:"Term",$AppliesTo:["Property"],$Type:"com.sap.cds.vocabularies.AnalyticsDetails.MeasureTypeEnumeration","@Org.OData.Core.V1.Description":"(CDS annotation) Specifies in which way a measure should treated."},MeasureTypeEnumeration:{$Kind:"EnumType",BASE:0,"BASE@Org.OData.Core.V1.Description":"Measure from the provider",RESTRICTION:1,"RESTRICTION@Org.OData.Core.V1.Description":"Restricted measure",CALCULATION:2,"CALCULATION@Org.OData.Core.V1.Description":"Calculated measure (formula) after aggregation"},exceptionAggregationSteps:{$Kind:"Term",$AppliesTo:["Property"],$Collection:!0,$Type:"com.sap.cds.vocabularies.AnalyticsDetails.ExceptionAggregationStepType","@Org.OData.Core.V1.Description":"(CDS annotation) Used to define different (to the default aggregation) aggregation behavior for specified elements. In general there can be multiple elements in which a measure has to be aggregated differently. Therefore a list of ExceptionAggregationSteps can be assigned."},ExceptionAggregationStepType:{$Kind:"ComplexType","@Org.OData.Core.V1.Description":"Used to define different (to the default aggregation) aggregation behavior for specified elements.",exceptionAggregationBehavior:{$Type:"com.sap.cds.vocabularies.AnalyticsDetails.ExceptionAggregationBehaviorType","@Org.OData.Core.V1.Description":"Defines the aggregation behavior."},exceptionAggregationElements:{$Collection:!0,$Type:"Edm.PropertyPath","@Org.OData.Core.V1.Description":"Specifies the elements which should be aggregated in this step."}},ExceptionAggregationBehaviorType:{$Kind:"EnumType",SUM:0,"SUM@Org.OData.Core.V1.Description":"Sum",MIN:1,"MIN@Org.OData.Core.V1.Description":"Minimum",MAX:2,"MAX@Org.OData.Core.V1.Description":"Maximum",COUNT:3,"COUNT@Org.OData.Core.V1.Description":"Count data",COUNTNULL:4,"COUNTNULL@Org.OData.Core.V1.Description":"Count data, where the value is not NULL.",COUNTNULLZERO:5,"COUNTNULLZERO@Org.OData.Core.V1.Description":"Count data, where the value is not NULL or exactly 0.",AVG:6,"AVG@Org.OData.Core.V1.Description":"Average",AVERAGENULL:7,"AVERAGENULL@Org.OData.Core.V1.Description":"Average, but data with a NULL value in the aggregated column is not counted.",AVERAGENULLZERO:8,"AVERAGENULLZERO@Org.OData.Core.V1.Description":"Like AVERAGENULL, but data with value exactly 0 are also not counted.",STD:9,"STD@Org.OData.Core.V1.Description":"Standard deviation",FIRST:10,"FIRST@Org.OData.Core.V1.Description":"First",LAST:11,"LAST@Org.OData.Core.V1.Description":"Last"},variable:{$Kind:"Term",$AppliesTo:["Parameter"],$Type:"com.sap.cds.vocabularies.AnalyticsDetails.VariableType","@Org.OData.Core.V1.Description":"(CDS annotation) Annotation for a parameter, only supported in analytics. With this annotation a parameter can become a variable which represents an interval or a range. It can also become optional or can represent multiple values."},VariableType:{$Kind:"ComplexType","@Org.OData.Core.V1.Description":"Defines the specifics of the variable.",usageType:{$Type:"com.sap.cds.vocabularies.AnalyticsDetails.VariableUsageTypeEnumeration","@Org.OData.Core.V1.Description":"Describes how the variable is used. It is a mandatory classification corresponding to the terminology Parameter Variable, Filter Variable, Formula Variable."},referenceElement:{$Type:"Edm.PropertyPath",$Nullable:!0,"@Org.OData.Core.V1.Description":"An element in the entity to which the variable refers. In case of a filter variable this annotation is mandatory and must contain the element which represents the dimension. In general it restricts the usage in expressions, serves a reference for default values and it may result in a default value help."},mandatory:{$Type:"Edm.Boolean",$Nullable:!0,$DefaultValue:!1,"@Org.OData.Core.V1.Description":"If mandatory is set to true or if the annotation is not set, the system enforces that the variable contains a value at runtime. If set to false, the variable is optional."},defaultValue:{$Nullable:!0,"@Org.OData.Core.V1.Description":"Specifies a default value. If the variable is input enabled, the variable is prefilled with the default value. If the variable is hidden, the variable is processed with the default value."},defaultValueHigh:{$Nullable:!0,"@Org.OData.Core.V1.Description":"Only for variables with selectionType #INTERVAL or #RANGE. Is used in combination with defaultValue: defaultValue contains the lower, defaultValueHigh the upper boundary of the interval."},defaultRanges:{$Nullable:!0,$Collection:!0,$Type:"com.sap.cds.vocabularies.AnalyticsDetails.RangeType","@Org.OData.Core.V1.Description":'Specifies a complex default filter in combination with the selectionType #RANGE (or #SINGLE / #INTERVAL in combinaton with "multipleSelections: true"). The default value ranges must comply to the combination of selectionType and multipleSelections.'},selectionType:{$Nullable:!0,$Type:"com.sap.cds.vocabularies.AnalyticsDetails.VariableSelectionTypeEnumeration","@Org.OData.Core.V1.Description":"Determines how values can be entered."},multipleSelections:{$Type:"Edm.Boolean",$Nullable:!0,$DefaultValue:!0,"@Org.OData.Core.V1.Description":"Is used to indicate that several lines (aka \u201Crows\u201D) can be entered on the filter input (selection) UIs."}},VariableUsageTypeEnumeration:{$Kind:"EnumType",PARAMETER:0,"PARAMETER@Org.OData.Core.V1.Description":"The variable is used for a parameter of the underlying data source.",FILTER:1,"FILTER@Org.OData.Core.V1.Description":"The variable is used in filters for the dimension represented by the element annotated as referenceElement.",FORMULA:2,"FORMULA@Org.OData.Core.V1.Description":"The variable is used as a placeholder in expressions defining calculated measures."},VariableSelectionTypeEnumeration:{$Kind:"EnumType",SINGLE:0,"SINGLE@Org.OData.Core.V1.Description":"Single value.",INTERVAL:1,"INTERVAL@Org.OData.Core.V1.Description":'Interval is a special case of a Range with "sign = including" and "option = BT".',RANGE:2,"RANGE@Org.OData.Core.V1.Description":"A Range is a complete (ABAP like) SELECT-option including sign (including/excluding) and operator (EQ, CP, BT...)."},RangeType:{$Kind:"ComplexType","@Org.OData.Core.V1.Description":'Specifies a #RANGE via sub fields "sign", "option", "low", and "high".',sign:{$Type:"com.sap.cds.vocabularies.AnalyticsDetails.RangeSignType","@Org.OData.Core.V1.Description":"Include or exclude matching values."},option:{$Type:"com.sap.cds.vocabularies.AnalyticsDetails.RangeOptionType","@Org.OData.Core.V1.Description":"Specifies the comparison operator."},low:{"@Org.OData.Core.V1.Description":"Specifies the comparison value."},high:{"@Org.OData.Core.V1.Description":"Specifies the upper value for comparison operators BT and NB."}},RangeSignType:{$Kind:"EnumType",I:0,"I@Org.OData.Core.V1.Description":"Include",E:1,"E@Org.OData.Core.V1.Description":"Exclude"},RangeOptionType:{$Kind:"EnumType",EQ:0,"EQ@Org.OData.Core.V1.Description":"Equals",BT:1,"BT@Org.OData.Core.V1.Description":"Between",CP:2,"CP@Org.OData.Core.V1.Description":"Covers pattern",LE:3,"LE@Org.OData.Core.V1.Description":"Less or equal",GE:4,"GE@Org.OData.Core.V1.Description":"Greater or equal",NE:5,"NE@Org.OData.Core.V1.Description":"Not equals",NB:6,"NB@Org.OData.Core.V1.Description":"Not between",NP:7,"NP@Org.OData.Core.V1.Description":"Not covers pattern",GT:8,"GT@Org.OData.Core.V1.Description":"Greater than",LT:9,"LT@Org.OData.Core.V1.Description":"Less than"}}};var Out=new Map([["Org.OData.Aggregation.V1","Aggregation"],["Org.OData.Authorization.V1","Auth"],["Org.OData.Capabilities.V1","Capabilities"],["Org.OData.Core.V1","Core"],["Org.OData.Measures.V1","Measures"],["Org.OData.Repeatability.V1","Repeatability"],["Org.OData.Temporal.V1","Temporal"],["Org.OData.Validation.V1","Validation"],["Org.OData.JSON.V1","JSON"],["com.sap.vocabularies.Analytics.v1","Analytics"],["com.sap.vocabularies.Auditing.v1","Auditing"],["com.sap.vocabularies.CDS.v1","CDS"],["com.sap.vocabularies.CodeList.v1","CodeList"],["com.sap.vocabularies.Common.v1","Common"],["com.sap.vocabularies.Communication.v1","Communication"],["com.sap.vocabularies.DataIntegration.v1","DataIntegration"],["com.sap.vocabularies.DirectEdit.v1","DirectEdit"],["com.sap.vocabularies.Graph.v1","Graph"],["com.sap.vocabularies.Hierarchy.v1","Hierarchy"],["com.sap.vocabularies.ODM.v1","ODM"],["com.sap.vocabularies.PDF.v1","PDF"],["com.sap.vocabularies.PersonalData.v1","PersonalData"],["com.sap.vocabularies.Session.v1","Session"],["com.sap.vocabularies.Support.v1","Support"],["com.sap.vocabularies.UI.v1","UI"],["com.sap.vocabularies.HTML5.v1","HTML5"],["com.sap.cds.vocabularies.ObjectModel","ObjectModel"],["com.sap.cds.vocabularies.AnalyticsDetails","AnalyticsDetails"]]),Lyi=new Map([["Aggregation","Org.OData.Aggregation.V1"],["Auth","Org.OData.Authorization.V1"],["Capabilities","Org.OData.Capabilities.V1"],["Core","Org.OData.Core.V1"],["Measures","Org.OData.Measures.V1"],["Repeatability","Org.OData.Repeatability.V1"],["Temporal","Org.OData.Temporal.V1"],["Validation","Org.OData.Validation.V1"],["JSON","Org.OData.JSON.V1"],["Analytics","com.sap.vocabularies.Analytics.v1"],["Auditing","com.sap.vocabularies.Auditing.v1"],["CDS","com.sap.vocabularies.CDS.v1"],["CodeList","com.sap.vocabularies.CodeList.v1"],["Common","com.sap.vocabularies.Common.v1"],["Communication","com.sap.vocabularies.Communication.v1"],["DataIntegration","com.sap.vocabularies.DataIntegration.v1"],["DirectEdit","com.sap.vocabularies.DirectEdit.v1"],["Graph","com.sap.vocabularies.Graph.v1"],["Hierarchy","com.sap.vocabularies.Hierarchy.v1"],["ODM","com.sap.vocabularies.ODM.v1"],["PDF","com.sap.vocabularies.PDF.v1"],["PersonalData","com.sap.vocabularies.PersonalData.v1"],["Session","com.sap.vocabularies.Session.v1"],["Support","com.sap.vocabularies.Support.v1"],["UI","com.sap.vocabularies.UI.v1"],["HTML5","com.sap.vocabularies.HTML5.v1"],["ObjectModel","com.sap.cds.vocabularies.ObjectModel"],["AnalyticsDetails","com.sap.cds.vocabularies.AnalyticsDetails"]]),Sns={"Org.OData.Aggregation.V1":ayi,"Org.OData.Authorization.V1":cyi,"Org.OData.Capabilities.V1":lyi,"Org.OData.Core.V1":uyi,"Org.OData.Measures.V1":pyi,"Org.OData.Repeatability.V1":dyi,"Org.OData.Temporal.V1":fyi,"Org.OData.Validation.V1":hyi,"Org.OData.JSON.V1":myi,"com.sap.vocabularies.Analytics.v1":gyi,"com.sap.vocabularies.Auditing.v1":syi,"com.sap.vocabularies.CDS.v1":yyi,"com.sap.vocabularies.CodeList.v1":vyi,"com.sap.vocabularies.Common.v1":_yi,"com.sap.vocabularies.Communication.v1":Eyi,"com.sap.vocabularies.DataIntegration.v1":byi,"com.sap.vocabularies.DirectEdit.v1":Tyi,"com.sap.vocabularies.Graph.v1":Syi,"com.sap.vocabularies.Hierarchy.v1":Oyi,"com.sap.vocabularies.ODM.v1":Ayi,"com.sap.vocabularies.PDF.v1":Cyi,"com.sap.vocabularies.PersonalData.v1":Pyi,"com.sap.vocabularies.Session.v1":xyi,"com.sap.vocabularies.Support.v1":wyi,"com.sap.vocabularies.UI.v1":Nyi,"com.sap.vocabularies.HTML5.v1":Dyi,"com.sap.cds.vocabularies.ObjectModel":Iyi,"com.sap.cds.vocabularies.AnalyticsDetails":Ryi},Myi=Sns;var Ons=/^(\w){1,128}$/,Ans=new Set(["Org.OData.Aggregation.V1","Org.OData.Authorization.V1","Org.OData.Capabilities.V1","Org.OData.Core.V1","Org.OData.Measures.V1","Org.OData.Repeatability.V1","Org.OData.Temporal.V1","Org.OData.Validation.V1","Org.OData.JSON.V1","com.sap.vocabularies.Analytics.v1","com.sap.vocabularies.Auditing.v1","com.sap.vocabularies.CDS.v1","com.sap.vocabularies.CodeList.v1","com.sap.vocabularies.Common.v1","com.sap.vocabularies.Communication.v1","com.sap.vocabularies.DataIntegration.v1","com.sap.vocabularies.DirectEdit.v1","com.sap.vocabularies.Graph.v1","com.sap.vocabularies.ODM.v1","com.sap.vocabularies.PDF.v1","com.sap.vocabularies.PersonalData.v1","com.sap.vocabularies.Hierarchy.v1","com.sap.vocabularies.Session.v1","com.sap.vocabularies.UI.v1","com.sap.vocabularies.HTML5.v1","com.sap.cds.vocabularies.ObjectModel","com.sap.cds.vocabularies.AnalyticsDetails"]),kyi=new Map;function njt(t,e,r=""){let n=e[`${r}@Org.OData.Core.V1.Description`];n!==void 0&&(t.description=n);let i=e[`${r}@Org.OData.Core.V1.LongDescription`];i!==void 0&&(t.longDescription=i);let a=e[`${r}@com.sap.vocabularies.Common.v1.Experimental`];a!==void 0&&(t.experimental=a);let c=(e[`${r}@Org.OData.Core.V1.Revisions`]??[]).find(l=>l.Kind==="Deprecated");c&&(t.deprecated=!0,t.deprecatedDescription=c.Description)}function yNr(t,e){njt(t,e),e.$UnderlyingType!==void 0&&(t.underlyingType=e.$UnderlyingType)}function vNr(t){let e={};return t.$Nullable!==void 0&&(e.isNullable=!!t.$Nullable),t.$Precision!==void 0&&Number.isInteger(t.$Precision)&&(e.precision=t.$Precision),Object.keys(e).length?e:void 0}function Cns(t){let e=t["@Org.OData.Validation.V1.AllowedValues"];return e?.length?e.map(r=>({value:r.Value,description:r["@Org.OData.Core.V1.Description"],longDescription:r["@Org.OData.Core.V1.LongDescription"]??""})):[]}var $yi=t=>!!(t.startsWith("$")&&t.length<=512||t.indexOf("@")>=0&&t.length<=512);function tjt(t){let e={},r=Cns(t);r?.length&&(e.allowedValues=r);let n=t["@Org.OData.Validation.V1.AllowedTerms"];n?.length&&(e.allowedTerms=n.map(Mns));let i=t["@Org.OData.Core.V1.IsLanguageDependent"];i!==void 0&&(e.isLanguageDependent=!!i);let a=t["@Org.OData.Core.V1.RequiresType"];a&&(e.requiresType=a);let s=t["@Org.OData.Validation.V1.OpenPropertyTypeConstraint"];s&&(e.openPropertyTypeConstraints=s);let c=t["@Org.OData.Validation.V1.ApplicableTerms"];return c?.length&&(e.applicableTerms=c),e}function Pns(t,e){let r={kind:vut,name:t};yNr(r,e);let n=vNr(e);n&&(r.facets=n);let i=tjt(e);return Object.keys(i).length&&(r.constraints=i),r}function xns(t,e){let r={kind:ICe,name:t,isFlags:!1,values:[],deprecated:!1};try{yNr(r,e),r.isFlags=e.$IsFlags===!0,r.values=Object.keys(e).filter(n=>!$yi(n)).map(n=>{let i=Number.parseInt(e[n],10),a={kind:oyi,name:n,value:i};return njt(a,e,n),a})}catch{return r}return r}function wns(t,e){let r={kind:MK,name:t,properties:new Map};yNr(r,e),e.$BaseType!==void 0&&(r.baseType=e.$BaseType),e.$Abstract!==void 0&&(r.isAbstract=!!e.$Abstract),e.$OpenType!==void 0&&(r.isOpenType=!!e.$OpenType);let n=tjt(e);return Object.keys(n).length&&(r.constraints=n),Object.keys(e).filter(i=>!$yi(i)).forEach(i=>{let a=e[i],s={kind:KVt,name:i,type:a.$Type??"Edm.String",isCollection:!!a.$Collection};njt(s,a),a.$DefaultValue!==void 0&&(s.defaultValue=a.$DefaultValue);let c=vNr(a);c&&(s.facets=c);let l=tjt(a),u=a["@Org.OData.Validation.V1.DerivedTypeConstraint"];u?.length&&(l.derivedTypeConstraints=u),Object.keys(l).length&&(s.constraints=l),r.properties.set(s.name,s)}),r}function Nns(t,e){let r={kind:y$,name:t,type:e.$Type??"Edm.String",isCollection:!!e.$Collection};njt(r,e),e.$DefaultValue!==void 0&&(r.defaultValue=e.$DefaultValue),e.$AppliesTo!==void 0&&(r.appliesTo=e.$AppliesTo),e.$BaseTerm!==void 0&&(r.baseTerm=e.$BaseTerm),e.$CdsName!==void 0&&(r.cdsName=e.$CdsName);let n=vNr(e);n&&(r.facets=n);let i=tjt(e);return Object.keys(i).length&&(r.constraints=i),r}function Fyi(t,e){if(e.$Kind!==void 0)switch(e.$Kind){case"EnumType":return xns(t,e);case"TypeDefinition":return Pns(t,e);case"ComplexType":return wns(t,e);case"Term":return Nns(t,e);default:}}function Vyi(t){return t.startsWith("com.sap.cds.vocabularies")}var VUe=(t,e,r)=>{let n=e.toUpperCase(),i=t.get(n);if(!r)!i||typeof i=="string"?t.set(n,e):typeof i=="object"&&t.set(n,Object.assign(i,{$Self:e}));else{let a=new Map;i?typeof i=="string"?a.set("$Self",i):a=i:a.set("$Self",e),a.set(r.toUpperCase(),r),t.set(n,a)}},Dns=t=>{let e=t?.["@Org.OData.Core.V1.Links"]??[],r=new Map;for(let a of e)r.set(a.rel??"",a.href??"");let n=r.get("latest-version"),i=r.get("alternate");return n?.endsWith(".xml")?n:i?.endsWith(".xml")?i:n||i||""},Ins=(t,e)=>(r,n)=>{let{byTarget:i,derivedTypesPerType:a,dictionary:s,upperCaseNameMap:c}=t;switch(s.set(n,r),VUe(c,n),r.kind){case y$:{for(let l of r.appliesTo??[""])i.set(l,i.get(l)??new Set),i.get(l)?.add(n);break}case MK:{r.properties.forEach(d=>{VUe(c,n,d.name)});let l=r.baseType;if(!l)break;let u=l.split(".").pop()??"",p=e[u];if(p){let d=Fyi(l,p);d?.kind===MK&&d.properties.forEach(f=>{VUe(c,n,f.name)})}a.set(l,a.get(l)??new Map),a.get(l)?.set(n,!!r.isAbstract);break}case ICe:{r.values.forEach(l=>{VUe(c,n,l.name)});break}default:return}},Rns=(t,e)=>r=>{let{includeCds:n,includeCdsAnalytics:i}=e,{supportedVocabularies:a}=t,s=Vyi(r);if(!n&&(r===Sut||s)||!i&&s)return;let c=Out.get(r);if(!c)return;let l=Myi[r];if(!l)return;let u=l[r];a.set(r,{namespace:r,defaultAlias:c,defaultUri:Dns(u)});let p=Ins(t,u),d=Object.keys(u);for(let f of d.filter(h=>Ons.test(h))){let h=r+"."+f,m=u[f],g=Fyi(h,m);g&&p(g,h)}},jyi=(t,e)=>{let r=t?"withCDS":"";t&&e&&(r+="IncludingAnalytics");let n=kyi.get(r);if(n)return n;let i=new Map,a=new Map,s=new Map,c=new Map,l=new Map,u=new Map;Out.forEach((f,h)=>{let m=Vyi(h);!t&&(f==="CDS"||m)||!e&&m||(VUe(u,f),VUe(u,h),c.set(f,h))});let p=Rns({byTarget:a,derivedTypesPerType:l,dictionary:i,supportedVocabularies:s,upperCaseNameMap:u},{includeCds:t,includeCdsAnalytics:e});for(let f of Ans)p(f);Lns(i,l);let d={dictionary:i,byTarget:a,derivedTypesPerType:l,supportedVocabularies:s,namespaceByDefaultAlias:c,upperCaseNameMap:u};return kyi.set(r,d),d};function Lns(t,e){for(let r of e.keys())Uyi(r,t,e)}function Uyi(t,e,r){let n=(s,c)=>{for(let l of c.keys()){let u=e.get(l);u?.kind===MK&&(u.constraints={...s,...u.constraints??{}}),r.has(l)&&Uyi(l,e,r)}},i=e.get(t),a=r.get(t);i?.kind===MK&&i.constraints&&Object.keys(i.constraints).length&&a&&n(i.constraints,a)}function Mns(t){let e=t.split(".");if(e.length!==2)return t;let r=Lyi.get(e[0]);return r?(e[0]=r,e.join(".")):t}var c9=class{dictionary;byTarget;supportedVocabularies;namespaceByDefaultAlias;derivedTypesPerType;upperCaseNameMap;cdsVocabulary;resolveName(e){let r=(e||"").trim().split("."),n=r.pop()??"";return{namespace:r.join("."),name:n}}toAliasQualifiedName(e,r){let n=this.resolveName(e),i=n.namespace?r.reverseAliasMap[n.namespace]:void 0;return i?`${i}.${n.name}`:e}isOfType(e,r){let n=!1;if(e===r)n=!0;else if(e.startsWith("Edm."))if(r.startsWith("Edm."))n=r===e;else{let i=this.getType(r);i?.underlyingType&&(n=i.underlyingType===e)}else n=this.getDerivedTypeNames(e).has(r);return n}constructor(e,r){if(!e&&r)throw new Error("Vocabulary service instantiation: invalid parameterization includeCds=false and includeCdsAnalytics=true");let n=jyi(e,r);n=e?this.addCdsSpecificAnnotations(n):n,this.dictionary=n.dictionary,this.byTarget=n.byTarget,this.supportedVocabularies=n.supportedVocabularies,this.namespaceByDefaultAlias=n.namespaceByDefaultAlias,this.derivedTypesPerType=n.derivedTypesPerType,this.upperCaseNameMap=n.upperCaseNameMap,this.cdsVocabulary={namespace:Sut,alias:"CDS",nameMap:new Map,reverseNameMap:new Map,groupNames:new Set,singletonNames:new Set},e&&(this.dictionary.forEach(i=>{let a=this.resolveName(i.name);if(a.namespace===Sut){let s=i.kind==="Term"&&i.cdsName||a.name.replace(/([A-Z])/g," $1").trim().split(" ").join(".").toLowerCase(),c=`${"CDS"}.${a.name}`;this.cdsVocabulary.nameMap.set(s,c);let l=s.split(".");l.length===1?this.cdsVocabulary.singletonNames.add(s):this.cdsVocabulary.groupNames.add(l[0])}}),this.cdsVocabulary.nameMap.forEach((i,a)=>this.cdsVocabulary.reverseNameMap.set(i,a)))}addCdsSpecificAnnotations(e){let r={kind:"Term",name:"com.sap.vocabularies.Common.v1.TextArrangement",type:"com.sap.vocabularies.UI.v1.TextArrangementType",isCollection:!1,description:"Describes the arrangement of a code or ID value and its text",longDescription:"If used for a single property the Common.Text annotation is annotated",appliesTo:["Property"],facets:{isNullable:!0}},n={kind:"Term",name:"Org.OData.Capabilities.V1.Insertable",type:"Edm.Boolean",isCollection:!1,description:"Entities can be inserted",defaultValue:!0,appliesTo:["EntitySet"]},i={kind:"Term",name:"Org.OData.Capabilities.V1.Updatable",type:"Edm.Boolean",isCollection:!1,description:"Entities can be updated",defaultValue:!0,appliesTo:["EntitySet"]},a={kind:"Term",name:"Org.OData.Capabilities.V1.Deletable",type:"Edm.Boolean",isCollection:!1,description:"Entities can be deleted",defaultValue:!0,appliesTo:["EntitySet"]},s={kind:"Term",name:"Org.OData.Capabilities.V1.Readable",type:"Edm.Boolean",isCollection:!1,description:"Entities can be retrieved",defaultValue:!0,appliesTo:["EntitySet"]};e.dictionary.has("com.sap.vocabularies.Common.v1.TextArrangement")||e.dictionary.set("com.sap.vocabularies.Common.v1.TextArrangement",r);let c=e.byTarget.get("Property");c&&!c.has(r.name)&&c.add(r.name),e.dictionary.has("Org.OData.Capabilities.V1.Insertable")||e.dictionary.set("Org.OData.Capabilities.V1.Insertable",n),e.dictionary.has("Org.OData.Capabilities.V1.Deletable")||e.dictionary.set("Org.OData.Capabilities.V1.Deletable",a),e.dictionary.has("Org.OData.Capabilities.V1.Updatable")||e.dictionary.set("Org.OData.Capabilities.V1.Updatable",i),e.dictionary.has("Org.OData.Capabilities.V1.Readable")||e.dictionary.set("Org.OData.Capabilities.V1.Readable",s);let l=e.byTarget.get("EntitySet");return l&&(l.has("Org.OData.Capabilities.V1.Insertable")||l.add("Org.OData.Capabilities.V1.Insertable"),l.has("Org.OData.Capabilities.V1.Deletable")||l.add("Org.OData.Capabilities.V1.Deletable"),l.has("Org.OData.Capabilities.V1.Updatable")||l.add("Org.OData.Capabilities.V1.Updatable"),l.has("Org.OData.Capabilities.V1.Readable")||l.add("Org.OData.Capabilities.V1.Readable")),e}getDefaultAlias(e){return Out.get(e)}getVocabularies(){return this.supportedVocabularies}getVocabularyNamespace(e){let r=this.getVocabulary(e);if(r)return r.namespace;let n=this.resolveName(e).namespace;return n&&(r=this.getVocabulary(n)),r?.namespace}getVocabulary(e){let r=this.namespaceByDefaultAlias.get(e)??e;return this.supportedVocabularies.get(r)??null}getTermsForTargetKinds(e,r){let n=new Set;for(let a of["",...e]){let s=this.byTarget.get(a)?.keys()??[];for(let c of s)n.add(c)}return[...n.keys()].filter(a=>{let s=this.dictionary.get(a);return s?.kind!=="Term"?!1:s.constraints?.requiresType&&r?this.isOfType(s.constraints.requiresType,r):!0})}checkTermApplicability(e,r,n){let i=this.getTerm(e),a=this.getVocabularyNamespace(e);if(!i&&!this.supportedVocabularies.has(a))return nie.UnSupportedVocabulary;if(i){let s=this.byTarget.get("")?.has(e);for(let c=0;c<r.length&&!s;c++)s=this.byTarget.get(r[c])?.has(e);if(s)if(n&&i.constraints?.requiresType){let c=i.constraints.requiresType;return this.isOfType(c,n)?nie.Applicable:nie.TypeNotApplicable}else return nie.Applicable;else return nie.TermNotApplicable}else return nie.UnknownTerm}getElementTypeDescription(e,r,n,i){let a=[];if(r?.description&&a.push(`**Type Description:** ${r.description}
|
|
4086
|
+
`}},LinkTarget:{$Kind:"Term",$Type:"com.sap.vocabularies.HTML5.v1.LinkTargetType",$DefaultValue:"_self","@Org.OData.Core.V1.Description":"Where to open a link for the annotated [URL](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.html#IsURL)","@Org.OData.Core.V1.LongDescription":"When the UI contains a link to the URL, it shall open as specified by this annotation.\n This can be achieved, for example, by giving the UI5 `sap.m.Link` element a corresponding `target` property.\n Applicability of this term is governed by [`Validation.ApplicableTerms`](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.html#ApplicableTerms) annotations."},LinkTargetType:{$Kind:"TypeDefinition",$UnderlyingType:"Edm.String","@Org.OData.Core.V1.Description":"The values are interpreted like the [target attribute](https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-target) in HTML","@Org.OData.Validation.V1.AllowedValues":[{Value:"_self","@Org.OData.Core.V1.Description":"Open link in the current browsing context"},{Value:"_blank","@Org.OData.Core.V1.Description":"Open link in a new browsing context"},{Value:"_parent","@Org.OData.Core.V1.Description":"Open link in the parent browsing context"},{Value:"_top","@Org.OData.Core.V1.Description":"Open link in the top browsing context"}]},RowSpanForDuplicateValues:{$Kind:"Term",$Type:"Org.OData.Core.V1.Tag",$DefaultValue:!0,$AppliesTo:["Record"],"@com.sap.vocabularies.Common.v1.Experimental":!0,"@Org.OData.Core.V1.RequiresType":"com.sap.vocabularies.UI.v1.DataFieldAbstract","@Org.OData.Core.V1.Description":"The annotated data field might use a rowSpan for adjacent duplicate values if used in a table.","@Org.OData.Core.V1.LongDescription":"In order to achieve a good user experience the respective columns should be sorted.\n Applicability of this term is governed by [`Validation.ApplicableTerms`](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.html#ApplicableTerms) annotations.\n "}}};var Iyi={"com.sap.cds.vocabularies.ObjectModel":{$Alias:"ObjectModel","@Org.OData.Core.V1.Description":"CDS annotation for ObjectModel (subset)",modelingPattern:{$Kind:"Term",$AppliesTo:["EntityType"],$Type:"com.sap.cds.vocabularies.ObjectModel.ModelingPatternType","@Org.OData.Core.V1.Description":"(CDS annotation) Describes the intention of an entity; used for tools/editors."},ModelingPatternType:{$Kind:"EnumType",ANALYTICAL_DIMENSION:0,"ANALYTICAL_DIMENSION@Org.OData.Core.V1.Description":'Annotated entity represents the master data of an analytical cube. Usually should be accompanied by supportedCapabilities "ANALYTICAL_DIMENSION".',ANALYTICAL_FACT:1,"ANALYTICAL_FACT@Org.OData.Core.V1.Description":'Annotated entity contains transactional data and the relationship to master data entities. Usually should be accompanied by supportedCapabilities "DATA_STRUCTURE".',ANALYTICAL_CUBE:2,"ANALYTICAL_CUBE@Org.OData.Core.V1.Description":'Describes star schema as an analytical cube. Usually accompanied by supportedCapabilities "ANALYTICAL_PROVIDER" to expose the entity for reporting tools.',LANGUAGE_DEPENDENT_TEXT:3,"LANGUAGE_DEPENDENT_TEXT@Org.OData.Core.V1.Description":'Annotated entity contains language-dependent text for master data entities. Usually should be accompanied by supportedCapabilities "LANGUAGE_DEPENDENT_TEXT".'},supportedCapabilities:{$Kind:"Term",$AppliesTo:["EntityType"],$Type:"com.sap.cds.vocabularies.ObjectModel.SupportedCapabilitiesType","@Org.OData.Core.V1.Description":"(CDS annotation) Represents consumption scenarios for the entity."},SupportedCapabilitiesType:{$Kind:"EnumType",$IsFlags:!0,ANALYTICAL_DIMENSION:0,"ANALYTICAL_DIMENSION@Org.OData.Core.V1.Description":'Defines an entity that represents the master data of an analytical cube. Usually should be accompanied by modelingPattern "ANALYTICAL_DIMENSION".',ANALYTICAL_PROVIDER:1,"ANALYTICAL_PROVIDER@Org.OData.Core.V1.Description":'Exposes an analytical query for reporting. Usually accompanied by modelingPattern "ANALYTICAL_CUBE".',DATA_STRUCTURE:2,"DATA_STRUCTURE@Org.OData.Core.V1.Description":'Defines a data structure. Usually accompanied by modelingPattern "ANALYTICAL_FACT".',LANGUAGE_DEPENDENT_TEXT:3,"LANGUAGE_DEPENDENT_TEXT@Org.OData.Core.V1.Description":'Functions as a text view that contains language-dependent text for another entity. Usually accompanied by modelingPattern "LANGUAGE_DEPENDENT_TEXT".'},foreignKey:{$Kind:"Term",$Type:"com.sap.cds.vocabularies.ObjectModel.ForeignKeyType",$AppliesTo:["Property"],"@Org.OData.Core.V1.Description":"(CDS annotation) Points to a value list entity for the annotated element."},ForeignKeyType:{$Kind:"ComplexType",association:{$Type:"Edm.NavigationPropertyPath","@Org.OData.Core.V1.Description":"Association to an entity that is a value list for the annotated element."}},representativeKey:{$Kind:"Term",$AppliesTo:["EntityType"],$Type:"Edm.PropertyPath","@Org.OData.Core.V1.Description":"(CDS annotation) Most specific element of the primary key. It is the key element for which the entity serves as a value list."}}};var Ryi={"com.sap.cds.vocabularies.AnalyticsDetails":{$Alias:"AnalyticsDetails","@Org.OData.Core.V1.Description":"CDS annotation for AnalyticsDetails (subset)",measureType:{$Kind:"Term",$AppliesTo:["Property"],$Type:"com.sap.cds.vocabularies.AnalyticsDetails.MeasureTypeEnumeration","@Org.OData.Core.V1.Description":"(CDS annotation) Specifies in which way a measure should treated."},MeasureTypeEnumeration:{$Kind:"EnumType",BASE:0,"BASE@Org.OData.Core.V1.Description":"Measure from the provider",RESTRICTION:1,"RESTRICTION@Org.OData.Core.V1.Description":"Restricted measure",CALCULATION:2,"CALCULATION@Org.OData.Core.V1.Description":"Calculated measure (formula) after aggregation"},exceptionAggregationSteps:{$Kind:"Term",$AppliesTo:["Property"],$Collection:!0,$Type:"com.sap.cds.vocabularies.AnalyticsDetails.ExceptionAggregationStepType","@Org.OData.Core.V1.Description":"(CDS annotation) Used to define different (to the default aggregation) aggregation behavior for specified elements. In general there can be multiple elements in which a measure has to be aggregated differently. Therefore a list of ExceptionAggregationSteps can be assigned."},ExceptionAggregationStepType:{$Kind:"ComplexType","@Org.OData.Core.V1.Description":"Used to define different (to the default aggregation) aggregation behavior for specified elements.",exceptionAggregationBehavior:{$Type:"com.sap.cds.vocabularies.AnalyticsDetails.ExceptionAggregationBehaviorType","@Org.OData.Core.V1.Description":"Defines the aggregation behavior."},exceptionAggregationElements:{$Collection:!0,$Type:"Edm.PropertyPath","@Org.OData.Core.V1.Description":"Specifies the elements which should be aggregated in this step."}},ExceptionAggregationBehaviorType:{$Kind:"EnumType",SUM:0,"SUM@Org.OData.Core.V1.Description":"Sum",MIN:1,"MIN@Org.OData.Core.V1.Description":"Minimum",MAX:2,"MAX@Org.OData.Core.V1.Description":"Maximum",COUNT:3,"COUNT@Org.OData.Core.V1.Description":"Count data",COUNTNULL:4,"COUNTNULL@Org.OData.Core.V1.Description":"Count data, where the value is not NULL.",COUNTNULLZERO:5,"COUNTNULLZERO@Org.OData.Core.V1.Description":"Count data, where the value is not NULL or exactly 0.",AVG:6,"AVG@Org.OData.Core.V1.Description":"Average",AVERAGENULL:7,"AVERAGENULL@Org.OData.Core.V1.Description":"Average, but data with a NULL value in the aggregated column is not counted.",AVERAGENULLZERO:8,"AVERAGENULLZERO@Org.OData.Core.V1.Description":"Like AVERAGENULL, but data with value exactly 0 are also not counted.",STD:9,"STD@Org.OData.Core.V1.Description":"Standard deviation",FIRST:10,"FIRST@Org.OData.Core.V1.Description":"First",LAST:11,"LAST@Org.OData.Core.V1.Description":"Last"},variable:{$Kind:"Term",$AppliesTo:["Parameter"],$Type:"com.sap.cds.vocabularies.AnalyticsDetails.VariableType","@Org.OData.Core.V1.Description":"(CDS annotation) Annotation for a parameter, only supported in analytics. With this annotation a parameter can become a variable which represents an interval or a range. It can also become optional or can represent multiple values."},VariableType:{$Kind:"ComplexType","@Org.OData.Core.V1.Description":"Defines the specifics of the variable.",usageType:{$Type:"com.sap.cds.vocabularies.AnalyticsDetails.VariableUsageTypeEnumeration","@Org.OData.Core.V1.Description":"Describes how the variable is used. It is a mandatory classification corresponding to the terminology Parameter Variable, Filter Variable, Formula Variable."},referenceElement:{$Type:"Edm.PropertyPath",$Nullable:!0,"@Org.OData.Core.V1.Description":"An element in the entity to which the variable refers. In case of a filter variable this annotation is mandatory and must contain the element which represents the dimension. In general it restricts the usage in expressions, serves a reference for default values and it may result in a default value help."},mandatory:{$Type:"Edm.Boolean",$Nullable:!0,$DefaultValue:!1,"@Org.OData.Core.V1.Description":"If mandatory is set to true or if the annotation is not set, the system enforces that the variable contains a value at runtime. If set to false, the variable is optional."},defaultValue:{$Nullable:!0,"@Org.OData.Core.V1.Description":"Specifies a default value. If the variable is input enabled, the variable is prefilled with the default value. If the variable is hidden, the variable is processed with the default value."},defaultValueHigh:{$Nullable:!0,"@Org.OData.Core.V1.Description":"Only for variables with selectionType #INTERVAL or #RANGE. Is used in combination with defaultValue: defaultValue contains the lower, defaultValueHigh the upper boundary of the interval."},defaultRanges:{$Nullable:!0,$Collection:!0,$Type:"com.sap.cds.vocabularies.AnalyticsDetails.RangeType","@Org.OData.Core.V1.Description":'Specifies a complex default filter in combination with the selectionType #RANGE (or #SINGLE / #INTERVAL in combinaton with "multipleSelections: true"). The default value ranges must comply to the combination of selectionType and multipleSelections.'},selectionType:{$Nullable:!0,$Type:"com.sap.cds.vocabularies.AnalyticsDetails.VariableSelectionTypeEnumeration","@Org.OData.Core.V1.Description":"Determines how values can be entered."},multipleSelections:{$Type:"Edm.Boolean",$Nullable:!0,$DefaultValue:!0,"@Org.OData.Core.V1.Description":"Is used to indicate that several lines (aka \u201Crows\u201D) can be entered on the filter input (selection) UIs."}},VariableUsageTypeEnumeration:{$Kind:"EnumType",PARAMETER:0,"PARAMETER@Org.OData.Core.V1.Description":"The variable is used for a parameter of the underlying data source.",FILTER:1,"FILTER@Org.OData.Core.V1.Description":"The variable is used in filters for the dimension represented by the element annotated as referenceElement.",FORMULA:2,"FORMULA@Org.OData.Core.V1.Description":"The variable is used as a placeholder in expressions defining calculated measures."},VariableSelectionTypeEnumeration:{$Kind:"EnumType",SINGLE:0,"SINGLE@Org.OData.Core.V1.Description":"Single value.",INTERVAL:1,"INTERVAL@Org.OData.Core.V1.Description":'Interval is a special case of a Range with "sign = including" and "option = BT".',RANGE:2,"RANGE@Org.OData.Core.V1.Description":"A Range is a complete (ABAP like) SELECT-option including sign (including/excluding) and operator (EQ, CP, BT...)."},RangeType:{$Kind:"ComplexType","@Org.OData.Core.V1.Description":'Specifies a #RANGE via sub fields "sign", "option", "low", and "high".',sign:{$Type:"com.sap.cds.vocabularies.AnalyticsDetails.RangeSignType","@Org.OData.Core.V1.Description":"Include or exclude matching values."},option:{$Type:"com.sap.cds.vocabularies.AnalyticsDetails.RangeOptionType","@Org.OData.Core.V1.Description":"Specifies the comparison operator."},low:{"@Org.OData.Core.V1.Description":"Specifies the comparison value."},high:{"@Org.OData.Core.V1.Description":"Specifies the upper value for comparison operators BT and NB."}},RangeSignType:{$Kind:"EnumType",I:0,"I@Org.OData.Core.V1.Description":"Include",E:1,"E@Org.OData.Core.V1.Description":"Exclude"},RangeOptionType:{$Kind:"EnumType",EQ:0,"EQ@Org.OData.Core.V1.Description":"Equals",BT:1,"BT@Org.OData.Core.V1.Description":"Between",CP:2,"CP@Org.OData.Core.V1.Description":"Covers pattern",LE:3,"LE@Org.OData.Core.V1.Description":"Less or equal",GE:4,"GE@Org.OData.Core.V1.Description":"Greater or equal",NE:5,"NE@Org.OData.Core.V1.Description":"Not equals",NB:6,"NB@Org.OData.Core.V1.Description":"Not between",NP:7,"NP@Org.OData.Core.V1.Description":"Not covers pattern",GT:8,"GT@Org.OData.Core.V1.Description":"Greater than",LT:9,"LT@Org.OData.Core.V1.Description":"Less than"}}};var Out=new Map([["Org.OData.Aggregation.V1","Aggregation"],["Org.OData.Authorization.V1","Auth"],["Org.OData.Capabilities.V1","Capabilities"],["Org.OData.Core.V1","Core"],["Org.OData.Measures.V1","Measures"],["Org.OData.Repeatability.V1","Repeatability"],["Org.OData.Temporal.V1","Temporal"],["Org.OData.Validation.V1","Validation"],["Org.OData.JSON.V1","JSON"],["com.sap.vocabularies.Analytics.v1","Analytics"],["com.sap.vocabularies.Auditing.v1","Auditing"],["com.sap.vocabularies.CDS.v1","CDS"],["com.sap.vocabularies.CodeList.v1","CodeList"],["com.sap.vocabularies.Common.v1","Common"],["com.sap.vocabularies.Communication.v1","Communication"],["com.sap.vocabularies.DataIntegration.v1","DataIntegration"],["com.sap.vocabularies.DirectEdit.v1","DirectEdit"],["com.sap.vocabularies.Graph.v1","Graph"],["com.sap.vocabularies.Hierarchy.v1","Hierarchy"],["com.sap.vocabularies.ODM.v1","ODM"],["com.sap.vocabularies.PDF.v1","PDF"],["com.sap.vocabularies.PersonalData.v1","PersonalData"],["com.sap.vocabularies.Session.v1","Session"],["com.sap.vocabularies.Support.v1","Support"],["com.sap.vocabularies.UI.v1","UI"],["com.sap.vocabularies.HTML5.v1","HTML5"],["com.sap.cds.vocabularies.ObjectModel","ObjectModel"],["com.sap.cds.vocabularies.AnalyticsDetails","AnalyticsDetails"]]),Lyi=new Map([["Aggregation","Org.OData.Aggregation.V1"],["Auth","Org.OData.Authorization.V1"],["Capabilities","Org.OData.Capabilities.V1"],["Core","Org.OData.Core.V1"],["Measures","Org.OData.Measures.V1"],["Repeatability","Org.OData.Repeatability.V1"],["Temporal","Org.OData.Temporal.V1"],["Validation","Org.OData.Validation.V1"],["JSON","Org.OData.JSON.V1"],["Analytics","com.sap.vocabularies.Analytics.v1"],["Auditing","com.sap.vocabularies.Auditing.v1"],["CDS","com.sap.vocabularies.CDS.v1"],["CodeList","com.sap.vocabularies.CodeList.v1"],["Common","com.sap.vocabularies.Common.v1"],["Communication","com.sap.vocabularies.Communication.v1"],["DataIntegration","com.sap.vocabularies.DataIntegration.v1"],["DirectEdit","com.sap.vocabularies.DirectEdit.v1"],["Graph","com.sap.vocabularies.Graph.v1"],["Hierarchy","com.sap.vocabularies.Hierarchy.v1"],["ODM","com.sap.vocabularies.ODM.v1"],["PDF","com.sap.vocabularies.PDF.v1"],["PersonalData","com.sap.vocabularies.PersonalData.v1"],["Session","com.sap.vocabularies.Session.v1"],["Support","com.sap.vocabularies.Support.v1"],["UI","com.sap.vocabularies.UI.v1"],["HTML5","com.sap.vocabularies.HTML5.v1"],["ObjectModel","com.sap.cds.vocabularies.ObjectModel"],["AnalyticsDetails","com.sap.cds.vocabularies.AnalyticsDetails"]]),Sns={"Org.OData.Aggregation.V1":ayi,"Org.OData.Authorization.V1":cyi,"Org.OData.Capabilities.V1":lyi,"Org.OData.Core.V1":uyi,"Org.OData.Measures.V1":pyi,"Org.OData.Repeatability.V1":dyi,"Org.OData.Temporal.V1":fyi,"Org.OData.Validation.V1":hyi,"Org.OData.JSON.V1":myi,"com.sap.vocabularies.Analytics.v1":gyi,"com.sap.vocabularies.Auditing.v1":syi,"com.sap.vocabularies.CDS.v1":yyi,"com.sap.vocabularies.CodeList.v1":vyi,"com.sap.vocabularies.Common.v1":_yi,"com.sap.vocabularies.Communication.v1":Eyi,"com.sap.vocabularies.DataIntegration.v1":byi,"com.sap.vocabularies.DirectEdit.v1":Tyi,"com.sap.vocabularies.Graph.v1":Syi,"com.sap.vocabularies.Hierarchy.v1":Oyi,"com.sap.vocabularies.ODM.v1":Ayi,"com.sap.vocabularies.PDF.v1":Cyi,"com.sap.vocabularies.PersonalData.v1":Pyi,"com.sap.vocabularies.Session.v1":xyi,"com.sap.vocabularies.Support.v1":wyi,"com.sap.vocabularies.UI.v1":Nyi,"com.sap.vocabularies.HTML5.v1":Dyi,"com.sap.cds.vocabularies.ObjectModel":Iyi,"com.sap.cds.vocabularies.AnalyticsDetails":Ryi},Myi=Sns;var Ons=/^(\w){1,128}$/,Ans=new Set(["Org.OData.Aggregation.V1","Org.OData.Authorization.V1","Org.OData.Capabilities.V1","Org.OData.Core.V1","Org.OData.Measures.V1","Org.OData.Repeatability.V1","Org.OData.Temporal.V1","Org.OData.Validation.V1","Org.OData.JSON.V1","com.sap.vocabularies.Analytics.v1","com.sap.vocabularies.Auditing.v1","com.sap.vocabularies.CDS.v1","com.sap.vocabularies.CodeList.v1","com.sap.vocabularies.Common.v1","com.sap.vocabularies.Communication.v1","com.sap.vocabularies.DataIntegration.v1","com.sap.vocabularies.DirectEdit.v1","com.sap.vocabularies.Graph.v1","com.sap.vocabularies.ODM.v1","com.sap.vocabularies.PDF.v1","com.sap.vocabularies.PersonalData.v1","com.sap.vocabularies.Hierarchy.v1","com.sap.vocabularies.Session.v1","com.sap.vocabularies.Support.v1","com.sap.vocabularies.UI.v1","com.sap.vocabularies.HTML5.v1","com.sap.cds.vocabularies.ObjectModel","com.sap.cds.vocabularies.AnalyticsDetails"]),kyi=new Map;function njt(t,e,r=""){let n=e[`${r}@Org.OData.Core.V1.Description`];n!==void 0&&(t.description=n);let i=e[`${r}@Org.OData.Core.V1.LongDescription`];i!==void 0&&(t.longDescription=i);let a=e[`${r}@com.sap.vocabularies.Common.v1.Experimental`];a!==void 0&&(t.experimental=a);let c=(e[`${r}@Org.OData.Core.V1.Revisions`]??[]).find(l=>l.Kind==="Deprecated");c&&(t.deprecated=!0,t.deprecatedDescription=c.Description)}function yNr(t,e){njt(t,e),e.$UnderlyingType!==void 0&&(t.underlyingType=e.$UnderlyingType)}function vNr(t){let e={};return t.$Nullable!==void 0&&(e.isNullable=!!t.$Nullable),t.$Precision!==void 0&&Number.isInteger(t.$Precision)&&(e.precision=t.$Precision),Object.keys(e).length?e:void 0}function Cns(t){let e=t["@Org.OData.Validation.V1.AllowedValues"];return e?.length?e.map(r=>({value:r.Value,description:r["@Org.OData.Core.V1.Description"],longDescription:r["@Org.OData.Core.V1.LongDescription"]??""})):[]}var $yi=t=>!!(t.startsWith("$")&&t.length<=512||t.indexOf("@")>=0&&t.length<=512);function tjt(t){let e={},r=Cns(t);r?.length&&(e.allowedValues=r);let n=t["@Org.OData.Validation.V1.AllowedTerms"];n?.length&&(e.allowedTerms=n.map(Mns));let i=t["@Org.OData.Core.V1.IsLanguageDependent"];i!==void 0&&(e.isLanguageDependent=!!i);let a=t["@Org.OData.Core.V1.RequiresType"];a&&(e.requiresType=a);let s=t["@Org.OData.Validation.V1.OpenPropertyTypeConstraint"];s&&(e.openPropertyTypeConstraints=s);let c=t["@Org.OData.Validation.V1.ApplicableTerms"];return c?.length&&(e.applicableTerms=c),e}function Pns(t,e){let r={kind:vut,name:t};yNr(r,e);let n=vNr(e);n&&(r.facets=n);let i=tjt(e);return Object.keys(i).length&&(r.constraints=i),r}function xns(t,e){let r={kind:ICe,name:t,isFlags:!1,values:[],deprecated:!1};try{yNr(r,e),r.isFlags=e.$IsFlags===!0,r.values=Object.keys(e).filter(n=>!$yi(n)).map(n=>{let i=Number.parseInt(e[n],10),a={kind:oyi,name:n,value:i};return njt(a,e,n),a})}catch{return r}return r}function wns(t,e){let r={kind:MK,name:t,properties:new Map};yNr(r,e),e.$BaseType!==void 0&&(r.baseType=e.$BaseType),e.$Abstract!==void 0&&(r.isAbstract=!!e.$Abstract),e.$OpenType!==void 0&&(r.isOpenType=!!e.$OpenType);let n=tjt(e);return Object.keys(n).length&&(r.constraints=n),Object.keys(e).filter(i=>!$yi(i)).forEach(i=>{let a=e[i],s={kind:KVt,name:i,type:a.$Type??"Edm.String",isCollection:!!a.$Collection};njt(s,a),a.$DefaultValue!==void 0&&(s.defaultValue=a.$DefaultValue);let c=vNr(a);c&&(s.facets=c);let l=tjt(a),u=a["@Org.OData.Validation.V1.DerivedTypeConstraint"];u?.length&&(l.derivedTypeConstraints=u),Object.keys(l).length&&(s.constraints=l),r.properties.set(s.name,s)}),r}function Nns(t,e){let r={kind:y$,name:t,type:e.$Type??"Edm.String",isCollection:!!e.$Collection};njt(r,e),e.$DefaultValue!==void 0&&(r.defaultValue=e.$DefaultValue),e.$AppliesTo!==void 0&&(r.appliesTo=e.$AppliesTo),e.$BaseTerm!==void 0&&(r.baseTerm=e.$BaseTerm),e.$CdsName!==void 0&&(r.cdsName=e.$CdsName);let n=vNr(e);n&&(r.facets=n);let i=tjt(e);return Object.keys(i).length&&(r.constraints=i),r}function Fyi(t,e){if(e.$Kind!==void 0)switch(e.$Kind){case"EnumType":return xns(t,e);case"TypeDefinition":return Pns(t,e);case"ComplexType":return wns(t,e);case"Term":return Nns(t,e);default:}}function Vyi(t){return t.startsWith("com.sap.cds.vocabularies")}var VUe=(t,e,r)=>{let n=e.toUpperCase(),i=t.get(n);if(!r)!i||typeof i=="string"?t.set(n,e):typeof i=="object"&&t.set(n,Object.assign(i,{$Self:e}));else{let a=new Map;i?typeof i=="string"?a.set("$Self",i):a=i:a.set("$Self",e),a.set(r.toUpperCase(),r),t.set(n,a)}},Dns=t=>{let e=t?.["@Org.OData.Core.V1.Links"]??[],r=new Map;for(let a of e)r.set(a.rel??"",a.href??"");let n=r.get("latest-version"),i=r.get("alternate");return n?.endsWith(".xml")?n:i?.endsWith(".xml")?i:n||i||""},Ins=(t,e)=>(r,n)=>{let{byTarget:i,derivedTypesPerType:a,dictionary:s,upperCaseNameMap:c}=t;switch(s.set(n,r),VUe(c,n),r.kind){case y$:{for(let l of r.appliesTo??[""])i.set(l,i.get(l)??new Set),i.get(l)?.add(n);break}case MK:{r.properties.forEach(d=>{VUe(c,n,d.name)});let l=r.baseType;if(!l)break;let u=l.split(".").pop()??"",p=e[u];if(p){let d=Fyi(l,p);d?.kind===MK&&d.properties.forEach(f=>{VUe(c,n,f.name)})}a.set(l,a.get(l)??new Map),a.get(l)?.set(n,!!r.isAbstract);break}case ICe:{r.values.forEach(l=>{VUe(c,n,l.name)});break}default:return}},Rns=(t,e)=>r=>{let{includeCds:n,includeCdsAnalytics:i}=e,{supportedVocabularies:a}=t,s=Vyi(r);if(!n&&(r===Sut||s)||!i&&s)return;let c=Out.get(r);if(!c)return;let l=Myi[r];if(!l)return;let u=l[r];a.set(r,{namespace:r,defaultAlias:c,defaultUri:Dns(u)});let p=Ins(t,u),d=Object.keys(u);for(let f of d.filter(h=>Ons.test(h))){let h=r+"."+f,m=u[f],g=Fyi(h,m);g&&p(g,h)}},jyi=(t,e)=>{let r=t?"withCDS":"";t&&e&&(r+="IncludingAnalytics");let n=kyi.get(r);if(n)return n;let i=new Map,a=new Map,s=new Map,c=new Map,l=new Map,u=new Map;Out.forEach((f,h)=>{let m=Vyi(h);!t&&(f==="CDS"||m)||!e&&m||(VUe(u,f),VUe(u,h),c.set(f,h))});let p=Rns({byTarget:a,derivedTypesPerType:l,dictionary:i,supportedVocabularies:s,upperCaseNameMap:u},{includeCds:t,includeCdsAnalytics:e});for(let f of Ans)p(f);Lns(i,l);let d={dictionary:i,byTarget:a,derivedTypesPerType:l,supportedVocabularies:s,namespaceByDefaultAlias:c,upperCaseNameMap:u};return kyi.set(r,d),d};function Lns(t,e){for(let r of e.keys())Uyi(r,t,e)}function Uyi(t,e,r){let n=(s,c)=>{for(let l of c.keys()){let u=e.get(l);u?.kind===MK&&(u.constraints={...s,...u.constraints??{}}),r.has(l)&&Uyi(l,e,r)}},i=e.get(t),a=r.get(t);i?.kind===MK&&i.constraints&&Object.keys(i.constraints).length&&a&&n(i.constraints,a)}function Mns(t){let e=t.split(".");if(e.length!==2)return t;let r=Lyi.get(e[0]);return r?(e[0]=r,e.join(".")):t}var c9=class{dictionary;byTarget;supportedVocabularies;namespaceByDefaultAlias;derivedTypesPerType;upperCaseNameMap;cdsVocabulary;resolveName(e){let r=(e||"").trim().split("."),n=r.pop()??"";return{namespace:r.join("."),name:n}}toAliasQualifiedName(e,r){let n=this.resolveName(e),i=n.namespace?r.reverseAliasMap[n.namespace]:void 0;return i?`${i}.${n.name}`:e}isOfType(e,r){let n=!1;if(e===r)n=!0;else if(e.startsWith("Edm."))if(r.startsWith("Edm."))n=r===e;else{let i=this.getType(r);i?.underlyingType&&(n=i.underlyingType===e)}else n=this.getDerivedTypeNames(e).has(r);return n}constructor(e,r){if(!e&&r)throw new Error("Vocabulary service instantiation: invalid parameterization includeCds=false and includeCdsAnalytics=true");let n=jyi(e,r);n=e?this.addCdsSpecificAnnotations(n):n,this.dictionary=n.dictionary,this.byTarget=n.byTarget,this.supportedVocabularies=n.supportedVocabularies,this.namespaceByDefaultAlias=n.namespaceByDefaultAlias,this.derivedTypesPerType=n.derivedTypesPerType,this.upperCaseNameMap=n.upperCaseNameMap,this.cdsVocabulary={namespace:Sut,alias:"CDS",nameMap:new Map,reverseNameMap:new Map,groupNames:new Set,singletonNames:new Set},e&&(this.dictionary.forEach(i=>{let a=this.resolveName(i.name);if(a.namespace===Sut){let s=i.kind==="Term"&&i.cdsName||a.name.replace(/([A-Z])/g," $1").trim().split(" ").join(".").toLowerCase(),c=`${"CDS"}.${a.name}`;this.cdsVocabulary.nameMap.set(s,c);let l=s.split(".");l.length===1?this.cdsVocabulary.singletonNames.add(s):this.cdsVocabulary.groupNames.add(l[0])}}),this.cdsVocabulary.nameMap.forEach((i,a)=>this.cdsVocabulary.reverseNameMap.set(i,a)))}addCdsSpecificAnnotations(e){let r={kind:"Term",name:"com.sap.vocabularies.Common.v1.TextArrangement",type:"com.sap.vocabularies.UI.v1.TextArrangementType",isCollection:!1,description:"Describes the arrangement of a code or ID value and its text",longDescription:"If used for a single property the Common.Text annotation is annotated",appliesTo:["Property"],facets:{isNullable:!0}},n={kind:"Term",name:"Org.OData.Capabilities.V1.Insertable",type:"Edm.Boolean",isCollection:!1,description:"Entities can be inserted",defaultValue:!0,appliesTo:["EntitySet"]},i={kind:"Term",name:"Org.OData.Capabilities.V1.Updatable",type:"Edm.Boolean",isCollection:!1,description:"Entities can be updated",defaultValue:!0,appliesTo:["EntitySet"]},a={kind:"Term",name:"Org.OData.Capabilities.V1.Deletable",type:"Edm.Boolean",isCollection:!1,description:"Entities can be deleted",defaultValue:!0,appliesTo:["EntitySet"]},s={kind:"Term",name:"Org.OData.Capabilities.V1.Readable",type:"Edm.Boolean",isCollection:!1,description:"Entities can be retrieved",defaultValue:!0,appliesTo:["EntitySet"]};e.dictionary.has("com.sap.vocabularies.Common.v1.TextArrangement")||e.dictionary.set("com.sap.vocabularies.Common.v1.TextArrangement",r);let c=e.byTarget.get("Property");c&&!c.has(r.name)&&c.add(r.name),e.dictionary.has("Org.OData.Capabilities.V1.Insertable")||e.dictionary.set("Org.OData.Capabilities.V1.Insertable",n),e.dictionary.has("Org.OData.Capabilities.V1.Deletable")||e.dictionary.set("Org.OData.Capabilities.V1.Deletable",a),e.dictionary.has("Org.OData.Capabilities.V1.Updatable")||e.dictionary.set("Org.OData.Capabilities.V1.Updatable",i),e.dictionary.has("Org.OData.Capabilities.V1.Readable")||e.dictionary.set("Org.OData.Capabilities.V1.Readable",s);let l=e.byTarget.get("EntitySet");return l&&(l.has("Org.OData.Capabilities.V1.Insertable")||l.add("Org.OData.Capabilities.V1.Insertable"),l.has("Org.OData.Capabilities.V1.Deletable")||l.add("Org.OData.Capabilities.V1.Deletable"),l.has("Org.OData.Capabilities.V1.Updatable")||l.add("Org.OData.Capabilities.V1.Updatable"),l.has("Org.OData.Capabilities.V1.Readable")||l.add("Org.OData.Capabilities.V1.Readable")),e}getDefaultAlias(e){return Out.get(e)}getVocabularies(){return this.supportedVocabularies}getVocabularyNamespace(e){let r=this.getVocabulary(e);if(r)return r.namespace;let n=this.resolveName(e).namespace;return n&&(r=this.getVocabulary(n)),r?.namespace}getVocabulary(e){let r=this.namespaceByDefaultAlias.get(e)??e;return this.supportedVocabularies.get(r)??null}getTermsForTargetKinds(e,r){let n=new Set;for(let a of["",...e]){let s=this.byTarget.get(a)?.keys()??[];for(let c of s)n.add(c)}return[...n.keys()].filter(a=>{let s=this.dictionary.get(a);return s?.kind!=="Term"?!1:s.constraints?.requiresType&&r?this.isOfType(s.constraints.requiresType,r):!0})}checkTermApplicability(e,r,n){let i=this.getTerm(e),a=this.getVocabularyNamespace(e);if(!i&&!this.supportedVocabularies.has(a))return nie.UnSupportedVocabulary;if(i){let s=this.byTarget.get("")?.has(e);for(let c=0;c<r.length&&!s;c++)s=this.byTarget.get(r[c])?.has(e);if(s)if(n&&i.constraints?.requiresType){let c=i.constraints.requiresType;return this.isOfType(c,n)?nie.Applicable:nie.TypeNotApplicable}else return nie.Applicable;else return nie.TermNotApplicable}else return nie.UnknownTerm}getElementTypeDescription(e,r,n,i){let a=[];if(r?.description&&a.push(`**Type Description:** ${r.description}
|
|
4087
4087
|
`),r?.longDescription&&a.push(`**Type Long Description:** ${r.longDescription}
|
|
4088
4088
|
`),a.push(...this.getElementRequireTypeValue(e)),r?.experimental&&a.push(`**Type Experimental:** ${n}
|
|
4089
4089
|
`),r?.deprecated&&a.push(`**Type Deprecated:** ${r.deprecatedDescription}
|
|
@@ -4313,7 +4313,7 @@ PGHZoN9jcvvvWDLUGtJkEotMgdFpEA2XWR83H4fVFVc=
|
|
|
4313
4313
|
This is the **final step** of the workflow and performs the actual modification.
|
|
4314
4314
|
You MUST provide the exact parameter information obtained from get_functionality_details (Step 2).`,annotations:{title:"Execute Fiori Functionality",readOnlyHint:!1,destructiveHint:!0,idempotentHint:!1,openWorldHint:!0},inputSchema:Av(qZr),outputSchema:Av(XZr)}];var zpt=class{applicationKey="";extensionName="";extensionVersion="";getApplicationKey(){return this.applicationKey}getExtensionVersion(){return this.extensionVersion}getExtensionName(){return this.extensionName}};var Jfo=br(z6r(),1);var Ugt=class{extensionName;eventName;constructor(e,r){this.extensionName=e,this.eventName=r}getExtensionName(){return this.extensionName}getEventName(){return this.eventName}toString(){return`${this.extensionName}/${this.eventName}`}};var PM;(function(t){t[t.OnePercent=0]="OnePercent",t[t.TenPercent=1]="TenPercent",t[t.NoSampling=2]="NoSampling"})(PM||(PM={}));function j9t(t){if(t.setUseDiskRetryCaching)try{t.setUseDiskRetryCaching(!0)}catch{}t.addTelemetryProcessor(e=>(e.tags??={},e.tags["ai.location.ip"]="0.0.0.0",e.tags["ai.cloud.roleInstance"]="masked",e.tags["ai.cloud.role"]="masked",e.tags["ai.device.type"]="masked",!0))}var K6r={name:"@sap-ux/telemetry",version:"1.0.19",description:"Library for sending usage telemetry data",type:"module",repository:{type:"git",url:"https://github.com/SAP/open-ux-tools.git",directory:"packages/telemetry"},bugs:{url:"https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Atelemetry"},license:"Apache-2.0",private:!1,main:"dist/index.js",scripts:{build:"tsc --build",watch:"tsc --watch",clean:"rimraf --glob dist coverage *.tsbuildinfo",format:"prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",lint:"eslint","lint:fix":"eslint --fix",test:"cross-env NODE_OPTIONS='--experimental-vm-modules' jest --ci --forceExit --detectOpenHandles --colors","test-u":"cross-env NODE_OPTIONS='--experimental-vm-modules' jest --ci --forceExit --detectOpenHandles --colors -u",link:"pnpm link --global",unlink:"pnpm unlink --global",example:"ts-node example/index.ts"},dependencies:{"@sap-ux/store":"workspace:*","@sap-ux/project-access":"workspace:*","@sap-ux/btp-utils":"workspace:*","@sap-ux/ui5-config":"workspace:*","@sap-ux/logger":"workspace:*","@sap-ux/nodejs-utils":"workspace:*",applicationinsights:"3.15.0",axios:"1.18.1","performance-now":"2.1.0",yaml:"2.9.0"},devDependencies:{"@jest/globals":"30.4.1","jest-extended":"7.0.0",memfs:"3.4.13",unionfs:"4.6.0",dotenv:"17.4.2"},files:["dist","LICENSE","!dist/*.map","!dist/**/*.map"],engines:{node:">=22.x"}};var xM={azureInstrumentationKey:"",telemetryEnabled:!0,telemetryLibName:K6r.name,telemetryLibVersion:K6r.version,consumerModuleName:"",consumerModuleVersion:""};process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL??="true";var Bgt=class extends zpt{clients;constructor(e,r,n){super(),this.clients=new Map,this.applicationKey=e,this.extensionVersion=n,this.extensionName=r;let i=this.createTelemetryClient(PM.OnePercent),a=this.createTelemetryClient(PM.TenPercent),s=this.createTelemetryClient(PM.NoSampling);this.clients.set(PM.OnePercent,i),this.clients.set(PM.TenPercent,a),this.clients.set(PM.NoSampling,s)}reportBlocking(e,r,n,i,a=!1){if(!a||xM.telemetryEnabled){let{client:s,event:c}=this.prepareClientAndEvent(e,r,n,i);return this.trackEventBlocking(s,c)}return Promise.resolve()}async report(e,r,n,i,a,s){if(s!==void 0&&!s||!xM.telemetryEnabled)return;let{client:c,event:l}=this.prepareClientAndEvent(e,r,n,i);this.trackEvent(c,l)}prepareClientAndEvent(e,r,n,i=PM.NoSampling){let a=this.clients.get(i),c={name:new Ugt(this.extensionName,e).toString(),properties:r,measurements:n};return{client:a,event:c}}async trackEventBlocking(e,r){process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY!=="true"&&(e.trackEvent(r),await e.flush())}trackEvent(e,r){return process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY!=="true"?(e.trackEvent(r),!0):!1}createTelemetryClient(e){let r;switch(e){case PM.OnePercent:r=1;break;case PM.TenPercent:r=10;break;case PM.NoSampling:default:r=100;break}let n=new Jfo.TelemetryClient(this.applicationKey);return n.config.samplingPercentage=r,j9t(n),n}};var W6r=()=>{let t=new Date().getTime();return new Date(t).toISOString()};var qgt=class extends Bgt{constructor(e,r,n){super(e,r,n)}async report(e,r,n,i,a,s){let c=await U9t(a),l={v:this.extensionVersion,datetime:W6r()},u={...r,...c,...l};await super.report(e,u,n,i,a,s)}async reportEvent(e,r,n,i){let{finalProperties:a,finalMeasurements:s}=await this.collectToolsSuiteTelemetry(e,n);return super.report(e.eventName,a,s,r,n,i)}async reportEventBlocking(e,r,n,i){let{finalProperties:a,finalMeasurements:s}=await this.collectToolsSuiteTelemetry(e,n);return super.reportBlocking(e.eventName,a,s,r,i)}async collectToolsSuiteTelemetry(e,r){let n=await U9t(r),i={v:this.extensionVersion,datetime:W6r()},a={...e.properties,...n,...i},s={...e.measurements};return{finalProperties:a,finalMeasurements:s}}};dar();var Qfo=br(sk(),1),Zfo=br(Ior(),1);nU();import IX from"node:fs";import Loe from"node:path";var B9t={internalFeature:!1};var Ggt;(function(t){t.UNKNOWN="UNKNOWN",t.NO_TOOLS_ID="NO_TOOLS_ID"})(Ggt||(Ggt={}));var fee;(function(t){t.CAPJava="CAPJava",t.CAPNode="CAPNode",t.ABAP="ABAP",t.UNKNOWN="UNKNOWN"})(fee||(fee={}));var k1e;(function(t){t.CF="CF",t.ABAP="ABAP",t.UNKNOWN_DEPLOY_CONFIG="UNKNOWN_DEPLOY_CONFIG",t.NO_DEPLOY_CONFIG="NO_DEPLOY_CONFIG"})(k1e||(k1e={}));var C0;(function(t){t.DevSpace="cmn.devspace",t.AppStudio="cmn.appstudio",t.AppStudioBackwardCompatible="appstudio",t.InternlVsExternal="cmn.internalFeatures",t.InternlVsExternalBackwardCompatible="internalVsExternal",t.TemplateType="cmn.template",t.DeployTargetType="cmn.deployTarget",t.ODataSourceType="cmn.odataSource",t.AppToolsId="cmn.toolsId",t.NodeVersion="cmn.nodeVersion",t.AppProgrammingLanguage="cmn.appLanguage",t.TemplateId="cmn.templateId",t.TemplateVersion="cmn.templateVersion",t.ApplicationType="cmn.applicationType",t.IdeType="cmn.ideType"})(C0||(C0={}));async function U9t(t){let e=await X6r(),r={};return t&&(r=await BTc(t.appPath)),{...e,...r}}async function X6r(){let t={};return t[C0.DevSpace]=await UTc(),t[C0.AppStudio]=zA(),t[C0.AppStudioBackwardCompatible]=t[C0.AppStudio],t[C0.InternlVsExternal]=KTc(),t[C0.InternlVsExternalBackwardCompatible]=t[C0.InternlVsExternal],t[C0.NodeVersion]=await YTc(),t[C0.IdeType]=J6r(),t}async function UTc(){if(zA())try{if(!process.env.H2O_URL||!process.env.WORKSPACE_ID)return"";let t=process.env.H2O_URL,e=process.env.WORKSPACE_ID.replace("workspaces-",""),r=`${t}/ws-manager/api/v1/workspace/${e}`,n=await Qfo.default.get(r);if(n.data)return n.data?.config?.annotations?.pack}catch{}return""}async function BTc(t){if(!t)return{};let e=await qTc(t),r=await zTc(t),n=await XLe(t),i=await GTc(t);n==="Fiori Reuse"&&(i=fee.UNKNOWN);let a=await WTc(t),s=await L6e(t),c={};return c[C0.TemplateType]=e,c[C0.DeployTargetType]=r,c[C0.ODataSourceType]=i,c[C0.AppToolsId]=a.toolsId??"",c[C0.AppProgrammingLanguage]=s,c[C0.TemplateId]=a.id??"",c[C0.TemplateVersion]=a.version??"",c[C0.ApplicationType]=n??"",c}async function qTc(t){let e=Loe.join(t,"README.md"),r=Loe.join(t,".appGenInfo.json");if(IX.existsSync(r)){let n=await IX.promises.readFile(r,"utf-8"),i=JSON.parse(n);if(i?.generationParameters?.template)return i.generationParameters.template.trim()}if(IX.existsSync(e)){let n=await IX.promises.readFile(e,"utf-8");if(n){let i="",a=n.split(/\r?\n/);for(let s of a){let l=/\|\*\*Template Used\*\*<br>(.*?)\|/.exec(s);if(l&&l.length>=2){i=l[1].trim();break}}return i}}return""}async function GTc(t){try{let e;try{e=await T7(t)}catch{}if(!e)try{let i=Loe.dirname(t);e=await T7(i,!1)}catch{}let r=!1;if(!e){let i=Loe.dirname(t),a=Loe.dirname(i);r=await FLe(a),e=r?a:t}if(r)return fee.CAPJava;let n=await SOe(e);return HTc(n)}catch{return fee.UNKNOWN}}function HTc(t){return t==="EDMXBackend"?fee.ABAP:t==="CAPNodejs"?fee.CAPNode:t==="CAPJava"?fee.CAPJava:fee.UNKNOWN}async function zTc(t){let e=k1e.NO_DEPLOY_CONFIG,r=Loe.join(t,"ui5-deploy.yaml");try{await IX.promises.access(r);let n=await IX.promises.readFile(r,"utf-8"),a=Zfo.default.parse(n)?.builder?.customTasks;a?e=a.some(c=>c.name==="deploy-to-abap")?k1e.ABAP:k1e.CF:e=k1e.UNKNOWN_DEPLOY_CONFIG}catch{}return e}function KTc(){return B9t.internalFeature?"internal":"external"}async function WTc(t){let e=await tk(t),r={manifest:Loe.join(e,"manifest.json"),appdescr:Loe.join(e,"manifest.appdescr_variant"),ui5Yaml:Loe.join(t,"ui5.yaml")};try{if(IX.existsSync(r.manifest)){let n=await IX.promises.readFile(r.manifest,"utf-8"),i=JSON.parse(n);return Y6r(i["sap.app"]?.sourceTemplate??{})}if(IX.existsSync(r.appdescr)&&IX.existsSync(r.ui5Yaml)){let n=await IX.promises.readFile(r.ui5Yaml,"utf-8"),a=(await jSe.newInstance(n)).getCustomConfiguration("adp");return Y6r(a?.support??{})}}catch{}return Y6r({})}function Y6r(t){return{id:t.id??"",version:t.version??"",toolsId:t.toolsId??Ggt.NO_TOOLS_ID}}async function YTc(){try{return(await new sMe().run("node",["-v"])??"unknown").replaceAll(/(?:^v)|([\r\n]{1,100})/g,"")}catch{return"unknown"}}function J6r(){if(zA())return"appstudio";let t=process.env.VSCODE_CWD?.toLowerCase()??"",e=process.env.VSCODE_PID,r=process.env.TERM_PROGRAM??"",n=process.env.VSCODE_APPNAME?.toLowerCase()??"";return!e&&!t&&r!=="vscode"&&r!=="vscode-insiders"?"unknown":process.env.CURSOR_TRACE_ID||n.includes("cursor")||t.includes("cursor")?"cursor":n.includes("windsurf")||t.includes("windsurf")||t.includes("codeium")?"windsurf":n.includes("antigravity")||t.includes("antigravity")?"antigravity":n.includes("trae")||t.includes("trae")?"trae":n.includes("kiro")||t.includes("kiro")?"kiro":n.includes("vscodium")||n.includes("codium")||t.includes("vscodium")||t.includes("codium")?"vscodium":n.includes("code-server")||t.includes("code-server")||process.env.CODE_SERVER_SESSION?"code-server":n.includes("insiders")||t.includes("code - insiders")||t.includes("code insiders")||t.includes("vscode-insiders")||r==="vscode-insiders"?"vscode-insiders":e||r==="vscode"?"vscode":"unknown"}var eho=br(z6r(),1);var Eze;(function(t){t.Test="test",t.TELEMETRY_SETTINGS_INIT_FAILED="TELEMETRY_SETTINGS_INIT_FAILED",t.DISABLE_TELEMETRY="DISABLE_TELEMETRY"})(Eze||(Eze={}));var XTc=t=>{let e=[/sap-ux.+/gi,/[-a-zA-Z]+\/ide-extension\/.+/gi,/(\/telemetry\/.+)/gi],r=[],n=t.split(`
|
|
4315
4315
|
`).filter(i=>!!/^\s*at .*(\S+:\d+|\(native\))/m.exec(i));return n.length&&n.forEach(i=>{let a=i.replace(/^\s+/,""),c=/ (\((.+):(\d+):(\d+)\)$)/.exec(i);if(!c)return;let l=null,u=c[2].replace(/\\/g,"/");for(let m of e){let g=m.exec(u);if(g){l=g[0];break}}if(!l)return;a=a.replace(c[0],"");let p=a.split(/\s+/).slice(1).join(""),d=c[3],f=c[4],h=`${p} at (${l}:${d}:${f});`;r.push(h)}),r},q9t,tho=t=>{process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY?.trim()!=="true"&&(q9t=new eho.TelemetryClient(xM.azureInstrumentationKey),j9t(q9t));let e={message:t.message};if(t.stack){let n=XTc(t.stack);n.length&&(e.stack=n.join(`
|
|
4316
|
-
`))}let r={name:Eze.TELEMETRY_SETTINGS_INIT_FAILED,properties:e,measurements:{}};process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY!=="true"&&q9t.trackEvent(r)},rho=(t,e)=>{let r={name:Eze.DISABLE_TELEMETRY,properties:{disableTelemetry:`${!t}`,...e},measurements:{}};process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY!=="true"&&q9t.trackEvent(r)};import JTc from"node:os";import QTc from"node:path";import ZTc from"node:fs";var eSc={win32:"\\AppData\\Roaming\\Code\\User\\settings.json",darwin:"/Library/Application Support/Code/User/settings.json",linux:"/.config/Code/User/settings.json",theia:"/.theia/settings.json"},tSc=["sap.ux.annotation.lsp.enableTelemetry","sap.ux.applicationModeler.enableTelemetry","sap.ux.help.enableTelemetry","sap.ux.serviceModeler.enableTelemetry"],rSc=t=>{let e=process.platform,r=t[e];if(zA()&&(r=t.theia),!r)return null;let n=JTc.homedir();return QTc.join(n,r)};async function nSc(t){let e;try{e=await t.read(new jye)}catch{}if(e)xM.telemetryEnabled=e.enableTelemetry;else{let r=rSc(eSc);if(!r)await G9t(!0);else{let n;try{n=await ZTc.promises.readFile(r,"utf-8");let i=JSON.parse(n),s=tSc.map(c=>i[c]??!0).reduce((c,l)=>c&&l,!0);await G9t(s)}catch{await G9t(!0)}}}}function iSc(t){y2t(FPe.TelemetrySetting,()=>{t.read(new jye).then(e=>{e&&(xM.telemetryEnabled=e.enableTelemetry)}).catch(()=>{})})}var Q6r=async t=>{try{xM.consumerModuleName=t.consumerModule.name,xM.consumerModuleVersion=t.consumerModule.version,B9t.internalFeature=t.internalFeature??!1,t.resourceId&&(xM.azureInstrumentationKey=t.resourceId);let e=await Bpt({entityName:"telemetrySetting"});await nSc(e),t.watchTelemetrySettingStore&&iSc(e)}catch(e){tho(e)}};async function G9t(t){try{let r=await Bpt({entityName:"telemetrySetting"}),n=new jpt({enableTelemetry:t});await r.write(n),xM.telemetryEnabled=t}catch{}let e=await X6r();rho(t,e)}var oSc="ApplicationInsightsInstrumentationKeyPLACEH0LDER",Q8=class t{static clientMap=new Map;static getTelemetryClient(){return t.getTelemetryClientByClass(qgt)}static getTelemetryClientByClass(e){let r=t.clientMap.get(e.name);if(r)return r;let n=t.buildConnectionString(xM.azureInstrumentationKey);return r=new e(n,xM.consumerModuleName,xM.consumerModuleVersion),t.clientMap.set(e.name,r),r}static buildConnectionString(e){return e?`InstrumentationKey=${e===oSc?"00000000-0000-0000-0000-000000000000":e}`:""}};var Z8;(function(t){t.START_MARK="START_MARK",t.END_MARK="END_MARK",t.MEASUREMENT="MEASUREMENT"})(Z8||(Z8={}));var H9t=class{static initTiming;static enteries;static initialize;static startMark;static endMark;static measure;static getEntries;static getEntriesByName;static getEntriesByType;static getEntriesByNameType;static getMeasurementDuration;static clearEntries};var Hgt=class{startTime;name;type;getStartTime(){return this.startTime}constructor(e,r,n){this.startTime=n,this.name=e,this.startTime=n,this.type=r}},z9t=class extends Hgt{startTime;duration;constructor(e,r,n){super(e,Z8.MEASUREMENT,r),this.startTime=r,this.duration=n,this.duration=n}getDurationTime(){return this.duration}};import{performance as aSc}from"node:perf_hooks";var sSc=()=>aSc.now(),GC=class t extends H9t{static initTiming;static now=sSc;static entries=[];static initialize(){t.initTiming=t.now()}static mark(e,r,n){let i=new Hgt(e,r,n);t.entries.push(i)}static startMark(e){let r=t.now(),n=e+r;return t.mark(n,Z8.START_MARK,r),n}static endMark(e){let r=t.now();t.mark(e,Z8.END_MARK,r)}static measure(e){let r=t.getEntriesByNameType(e,Z8.START_MARK).slice(-1)[0],n=t.getEntriesByNameType(e,Z8.END_MARK).slice(-1)[0];if(!r&&!n)throw new Error(`Failed to execute 'measure': mark '${e}' doesn't exist.`);if(!r||!n){let l=r?Z8.END_MARK:Z8.START_MARK;throw new Error(`Failed to execute 'measure': mark '${e}'of type '${l}' doesn't exist.`)}let i=r.getStartTime(),s=n.getStartTime()-i,c=new z9t(`${e}`,t.now(),s);t.entries.push(c)}static getEntries(){return t.entries}static getEntriesByName(e){return t.entries.filter(r=>r.name===e)}static getEntriesByNameType(e,r){return t.entries.filter(n=>n.name===e&&n.type===r)}static getEntriesByType(e){return t.entries.filter(r=>r.type===e)}static getMeasurementDuration(e){return t.getEntriesByNameType(e,Z8.MEASUREMENT).slice(-1)[0].getDurationTime()}static clearEntries(){t.entries=[]}};GC.initialize();var cSc=(t,e)=>new Error(`Wrong path for '${t}' field is specified in instructions with index - ${e}`),lSc=(t,e,r,n)=>{let i=e.split("/"),a=t,s=0;for(;s<i.length;){if(a=a[i[s]],a===void 0)throw cSc(r,n);s++}return a},nho=(t,e)=>{let r={},n={},i=null;e.paramIndex!==void 0&&(i=t[e.paramIndex]);let a=e.key?e.key:"data",s="";return typeof e.value=="string"?s=e.value:e.value!==void 0&&e.paramIndex!==void 0?s=lSc(i,e.value.path,"val",e.paramIndex):s=i,typeof s=="number"&&!Number.isNaN(s)?n[a]=s:r[a]=s,[r,n]},Z6r=(t,e)=>{let r,n,i={},a={};if(Array.isArray(e))for(let s of e)[r,n]=nho(t,s),i={...i,...r},a={...a,...n};else[i,a]=nho(t,e);return[i,a]};var iho=(t,e,r,n)=>(...i)=>{let a=e.apply(t,i);return Q8.getTelemetryClient().report(r,{},{},n),a},oho=(t,e,r,n)=>async(...i)=>{let a=await e.apply(t,i);return Q8.getTelemetryClient().report(r,{},{},n),a},aho=(t,e,r,n)=>(...i)=>{let a=GC.startMark("mark"),s=e.apply(t,i);GC.endMark(a),GC.measure(a);let c=GC.getMeasurementDuration(a);return Q8.getTelemetryClient().report(r,{},{ms:c},n),s},sho=(t,e,r,n)=>async(...i)=>{let a=GC.startMark("mark"),s=await e.apply(t,i);GC.endMark(a),GC.measure(a);let c=GC.getMeasurementDuration(a);return Q8.getTelemetryClient().report(r,{},{ms:c},n),s},cho=(t,e,r,n,i)=>(...a)=>{let s=e.apply(t,a),[c,l]=Z6r(a,i);return Q8.getTelemetryClient().report(r,c,l,n),s},lho=(t,e,r,n,i)=>async(...a)=>{let s=await e.apply(t,a),[c,l]=Z6r(a,i);return Q8.getTelemetryClient().report(r,c,l,n),s};var Moe;(function(t){t.NOTIFICATION="notify",t.DURATION="duration",t.CAPTURE_PARAM="captureParam"})(Moe||(Moe={}));var K9t=new Map;K9t.set(Moe.NOTIFICATION,iho);K9t.set(Moe.DURATION,aho);K9t.set(Moe.CAPTURE_PARAM,cho);var W9t=new Map;W9t.set(Moe.NOTIFICATION,oho);W9t.set(Moe.DURATION,sho);W9t.set(Moe.CAPTURE_PARAM,lho);var eYr={AnnotationModeler:"sap.ux.annotationModeler",AppGenerator:"sap.ux.appGenerator",ApplicationModeler:"sap.ux.applicationModeler",Help:"sap.ux.help",ServiceModeler:"sap.ux.serviceModeler",Internal:"sap.ux.internal"},tYr={"sap.ux.help.testBetaFeatures.enableAppStudioGDContribution":"c8c52f0b-0d7d-4697-997a-d6f29814f42e","sap.ux.help.testBetaFeatures.showTestGuides":"fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3","sap.ux.help.testBetaFeatures.enableFioriAI":"165a0e31-35ea-4bee-8d47-b8593435a82d","sap.ux.help.testBetaFeatures.enableFioriAIJoule":"165a0e31-35ea-4bee-8d47-b8593435a82e","sap.ux.help.testBetaFeatures.enableFioriAIVsCode":"165a0e31-35ea-4bee-8d47-b8593435a82f","sap.ux.help.testBetaFeatures.enableFioriAIAppModeler":"165a0e31-35ea-4bee-8d47-b8593435a82g","sap.ux.help.testBetaFeatures.enableFioriAIRapGeneration":"165a0e31-35ea-4bee-8d47-b8593435a82h","sap.ux.applicationModeler.testBetaFeatures.manifestEditor":!0,"sap.ux.appGenerator.testBetaFeatures.newAnnotationAPI":!0},Y9t="testBetaFeatures",rYr="sap.ux.applicationModeler.enableExperimentalFeatures";import{createRequire as pSc}from"node:module";var dSc=pSc(import.meta.url);function uho(){try{return dSc("vscode")}catch{return}}var fSc=uho(),X9t=class t{static get vscode(){return fSc}static getFeatureToggle(e){let r,n=t.vscode;if((e.includes(Y9t)||e===rYr)&&n){let a=e.slice(0,e.lastIndexOf(".")),s=e.slice(e.lastIndexOf(".")+1,e.length);r=n.workspace.getConfiguration(a)?.get(s)}else r=!1;return process.env.TOOLSUITE_FEATURES&&(r=process.env.TOOLSUITE_FEATURES.split(",").includes(e)?!0:r),tYr[e]&&(tYr[e]===r?r=!0:r=!1),{feature:e,isEnabled:r===!0?r:!1}}static getAllFeatureToggles(){let e=[],r=t.vscode;if(r)Object.keys(eYr).forEach(n=>{let i=`${eYr[n]}.${Y9t}`,a,s=[];try{a=r.workspace.getConfiguration(i),s=Object.keys(a).filter(c=>typeof a?.[c]!="function")}catch{}a&&s.forEach(c=>{let l=a.get(c),u={feature:`${i}.${c}`,isEnabled:l||!1};e.push(u)})});else if(process.env.TOOLSUITE_FEATURES){let n=process.env.TOOLSUITE_FEATURES.split(",");for(let i of n){let a={feature:i,isEnabled:!0};e.push(a)}}return e}};function nYr(){let t="sap.ux.internal.enableInternalFeatures",e=!1,r=X9t.vscode;return r&&(e=(r.workspace?r.workspace.getConfiguration().get(t):!1)??!1),process.env.TOOLSUITE_INTERNAL&&process.env.TOOLSUITE_INTERNAL==="true"&&(e=!0),e}var xmo=br(Tmo(),1);import{randomUUID as XOc}from"node:crypto";var zOc=["@sap-ux","fiori-mcp-server"].join("/");var KOc="1.9.2",Smo={name:zOc,version:KOc};var Omo={telemetry:{unknownOs:"Unknown"}};var mYr="fiori-mcp-server",Amo=sE.createInstance();async function YOc(){await Amo.init({resources:{en:{[mYr]:Omo}},lng:"en",fallbackLng:"en",defaultNS:mYr,ns:[mYr],showSupportNotice:!1})}function Cmo(t,e){return Amo.t(t,e)}YOc().catch(()=>{});var{version:JOc}=Smo,Pmo="@sap-ux/fiori-mcp-server",wmo="unknown-tool",QOc="0a65e45d-6bf4-421d-b845-61e888c50e9e",hee=class{static _telemetryData;static _previousEventTimestamp;static _sessionId;static get telemetryData(){return this._telemetryData}static get sessionId(){return this._sessionId}static initSessionId(){this._sessionId=XOc(),Po.info(`Telemetry session initialized with ID: ${this._sessionId}`)}static async initTelemetrySettings(e){this._sessionId||this.initSessionId();let r={consumerModule:{name:Pmo,version:JOc},watchTelemetrySettingStore:!1,internalFeature:nYr(),resourceId:QOc,...e};try{await Q6r(r)}catch(n){Po.error(`Error initializing telemetry settings: ${n}`)}}static createTelemetryData(e,r=!1){let n=new Date().getTime();if(this._previousEventTimestamp||(r=!1,this._previousEventTimestamp=n),!this._telemetryData){let i=Cmo("telemetry.unknownOs");try{i=(0,xmo.default)()}catch{}this._telemetryData={Platform:zA()?"SBAS":"VSCode",OperatingSystem:i,SessionId:this.sessionId}}if(r){let i={...this._telemetryData,...e};if(Math.abs(this._previousEventTimestamp-n)<1e3&&JSON.stringify(i)===JSON.stringify(this._telemetryData))return}return this._previousEventTimestamp=n,this._telemetryData=Object.assign(this._telemetryData,e),this._telemetryData}static prepareTelemetryEvent(e,r){this.markToolsEndTime();let n=r.markName?GC.getMeasurementDuration(r.markName):void 0;return{eventName:e,properties:r,measurements:n?{RequestTime:n}:{}}}static markToolStartTime(){this.createTelemetryData({markName:GC.startMark("MCP_LOADING_TIME")})}static markToolsEndTime(){this._telemetryData?.markName&&(GC.endMark(this._telemetryData.markName),GC.measure(this._telemetryData.markName))}static async sendTelemetry(e,r,n){let i=this.createTelemetryData(r)??r,a=this.prepareTelemetryEvent(e,i);await Q8.getTelemetryClient().reportEvent(a,PM.NoSampling,n?{appPath:n}:void 0)}static getTelemetryName(){return Pmo}};var Nmo="2024-11-05";function ZOc(t){return GTe.includes(t)?t:GTe.includes(Nmo)?Nmo:GTe[GTe.length-1]}var fXt=class{server;mcpClientName="unknown-client";mcpClientVersion="unknown-version";constructor(){this.server=new HSt({name:"fiori-mcp",version:cRe,icons:[{src:"https://raw.githubusercontent.com/SAP/open-ux-tools/main/packages/fiori-mcp-server/assets/icon.svg",mimeType:"image/svg+xml"},{src:"https://raw.githubusercontent.com/SAP/open-ux-tools/main/packages/fiori-mcp-server/assets/icon.png",mimeType:"image/png"}],title:"MCP Server for SAP Fiori"},{capabilities:{tools:{}}}),this.setupToolHandlers(),this.setupErrorHandling()}setupErrorHandling(){this.server.onerror=e=>Po.error(`[MCP Error] ${e}`),process.on("SIGINT",async()=>{await this.server.close(),process.exit(0)})}async setupTelemetry(){await hee.initTelemetrySettings()}setupToolHandlers(){this.server.setRequestHandler(nKe,async e=>{this.mcpClientName=e.params.clientInfo?.name||"unknown-client",this.mcpClientVersion=e.params.clientInfo?.version||"unknown-version",Po.info(`MCP Client connected: ${this.mcpClientName} v${this.mcpClientVersion}`);let r={mcpClientName:this.mcpClientName,mcpClientVersion:this.mcpClientVersion};return await hee.sendTelemetry(Lkn,r),{protocolVersion:ZOc(e.params.protocolVersion),capabilities:{tools:{}},serverInfo:{name:"fiori-mcp",version:cRe},instructions:`
|
|
4316
|
+
`))}let r={name:Eze.TELEMETRY_SETTINGS_INIT_FAILED,properties:e,measurements:{}};process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY!=="true"&&q9t.trackEvent(r)},rho=(t,e)=>{let r={name:Eze.DISABLE_TELEMETRY,properties:{disableTelemetry:`${!t}`,...e},measurements:{}};process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY!=="true"&&q9t.trackEvent(r)};import JTc from"node:os";import QTc from"node:path";import ZTc from"node:fs";var eSc={win32:"\\AppData\\Roaming\\Code\\User\\settings.json",darwin:"/Library/Application Support/Code/User/settings.json",linux:"/.config/Code/User/settings.json",theia:"/.theia/settings.json"},tSc=["sap.ux.annotation.lsp.enableTelemetry","sap.ux.applicationModeler.enableTelemetry","sap.ux.help.enableTelemetry","sap.ux.serviceModeler.enableTelemetry"],rSc=t=>{let e=process.platform,r=t[e];if(zA()&&(r=t.theia),!r)return null;let n=JTc.homedir();return QTc.join(n,r)};async function nSc(t){let e;try{e=await t.read(new jye)}catch{}if(e)xM.telemetryEnabled=e.enableTelemetry;else{let r=rSc(eSc);if(!r)await G9t(!0);else{let n;try{n=await ZTc.promises.readFile(r,"utf-8");let i=JSON.parse(n),s=tSc.map(c=>i[c]??!0).reduce((c,l)=>c&&l,!0);await G9t(s)}catch{await G9t(!0)}}}}function iSc(t){y2t(FPe.TelemetrySetting,()=>{t.read(new jye).then(e=>{e&&(xM.telemetryEnabled=e.enableTelemetry)}).catch(()=>{})})}var Q6r=async t=>{try{xM.consumerModuleName=t.consumerModule.name,xM.consumerModuleVersion=t.consumerModule.version,B9t.internalFeature=t.internalFeature??!1,t.resourceId&&(xM.azureInstrumentationKey=t.resourceId);let e=await Bpt({entityName:"telemetrySetting"});await nSc(e),t.watchTelemetrySettingStore&&iSc(e)}catch(e){tho(e)}};async function G9t(t){try{let r=await Bpt({entityName:"telemetrySetting"}),n=new jpt({enableTelemetry:t});await r.write(n),xM.telemetryEnabled=t}catch{}let e=await X6r();rho(t,e)}var oSc="ApplicationInsightsInstrumentationKeyPLACEH0LDER",Q8=class t{static clientMap=new Map;static getTelemetryClient(){return t.getTelemetryClientByClass(qgt)}static getTelemetryClientByClass(e){let r=t.clientMap.get(e.name);if(r)return r;let n=t.buildConnectionString(xM.azureInstrumentationKey);return r=new e(n,xM.consumerModuleName,xM.consumerModuleVersion),t.clientMap.set(e.name,r),r}static buildConnectionString(e){return e?`InstrumentationKey=${e===oSc?"00000000-0000-0000-0000-000000000000":e}`:""}};var Z8;(function(t){t.START_MARK="START_MARK",t.END_MARK="END_MARK",t.MEASUREMENT="MEASUREMENT"})(Z8||(Z8={}));var H9t=class{static initTiming;static enteries;static initialize;static startMark;static endMark;static measure;static getEntries;static getEntriesByName;static getEntriesByType;static getEntriesByNameType;static getMeasurementDuration;static clearEntries};var Hgt=class{startTime;name;type;getStartTime(){return this.startTime}constructor(e,r,n){this.startTime=n,this.name=e,this.startTime=n,this.type=r}},z9t=class extends Hgt{startTime;duration;constructor(e,r,n){super(e,Z8.MEASUREMENT,r),this.startTime=r,this.duration=n,this.duration=n}getDurationTime(){return this.duration}};import{performance as aSc}from"node:perf_hooks";var sSc=()=>aSc.now(),GC=class t extends H9t{static initTiming;static now=sSc;static entries=[];static initialize(){t.initTiming=t.now()}static mark(e,r,n){let i=new Hgt(e,r,n);t.entries.push(i)}static startMark(e){let r=t.now(),n=e+r;return t.mark(n,Z8.START_MARK,r),n}static endMark(e){let r=t.now();t.mark(e,Z8.END_MARK,r)}static measure(e){let r=t.getEntriesByNameType(e,Z8.START_MARK).slice(-1)[0],n=t.getEntriesByNameType(e,Z8.END_MARK).slice(-1)[0];if(!r&&!n)throw new Error(`Failed to execute 'measure': mark '${e}' doesn't exist.`);if(!r||!n){let l=r?Z8.END_MARK:Z8.START_MARK;throw new Error(`Failed to execute 'measure': mark '${e}'of type '${l}' doesn't exist.`)}let i=r.getStartTime(),s=n.getStartTime()-i,c=new z9t(`${e}`,t.now(),s);t.entries.push(c)}static getEntries(){return t.entries}static getEntriesByName(e){return t.entries.filter(r=>r.name===e)}static getEntriesByNameType(e,r){return t.entries.filter(n=>n.name===e&&n.type===r)}static getEntriesByType(e){return t.entries.filter(r=>r.type===e)}static getMeasurementDuration(e){return t.getEntriesByNameType(e,Z8.MEASUREMENT).slice(-1)[0].getDurationTime()}static clearEntries(){t.entries=[]}};GC.initialize();var cSc=(t,e)=>new Error(`Wrong path for '${t}' field is specified in instructions with index - ${e}`),lSc=(t,e,r,n)=>{let i=e.split("/"),a=t,s=0;for(;s<i.length;){if(a=a[i[s]],a===void 0)throw cSc(r,n);s++}return a},nho=(t,e)=>{let r={},n={},i=null;e.paramIndex!==void 0&&(i=t[e.paramIndex]);let a=e.key?e.key:"data",s="";return typeof e.value=="string"?s=e.value:e.value!==void 0&&e.paramIndex!==void 0?s=lSc(i,e.value.path,"val",e.paramIndex):s=i,typeof s=="number"&&!Number.isNaN(s)?n[a]=s:r[a]=s,[r,n]},Z6r=(t,e)=>{let r,n,i={},a={};if(Array.isArray(e))for(let s of e)[r,n]=nho(t,s),i={...i,...r},a={...a,...n};else[i,a]=nho(t,e);return[i,a]};var iho=(t,e,r,n)=>(...i)=>{let a=e.apply(t,i);return Q8.getTelemetryClient().report(r,{},{},n),a},oho=(t,e,r,n)=>async(...i)=>{let a=await e.apply(t,i);return Q8.getTelemetryClient().report(r,{},{},n),a},aho=(t,e,r,n)=>(...i)=>{let a=GC.startMark("mark"),s=e.apply(t,i);GC.endMark(a),GC.measure(a);let c=GC.getMeasurementDuration(a);return Q8.getTelemetryClient().report(r,{},{ms:c},n),s},sho=(t,e,r,n)=>async(...i)=>{let a=GC.startMark("mark"),s=await e.apply(t,i);GC.endMark(a),GC.measure(a);let c=GC.getMeasurementDuration(a);return Q8.getTelemetryClient().report(r,{},{ms:c},n),s},cho=(t,e,r,n,i)=>(...a)=>{let s=e.apply(t,a),[c,l]=Z6r(a,i);return Q8.getTelemetryClient().report(r,c,l,n),s},lho=(t,e,r,n,i)=>async(...a)=>{let s=await e.apply(t,a),[c,l]=Z6r(a,i);return Q8.getTelemetryClient().report(r,c,l,n),s};var Moe;(function(t){t.NOTIFICATION="notify",t.DURATION="duration",t.CAPTURE_PARAM="captureParam"})(Moe||(Moe={}));var K9t=new Map;K9t.set(Moe.NOTIFICATION,iho);K9t.set(Moe.DURATION,aho);K9t.set(Moe.CAPTURE_PARAM,cho);var W9t=new Map;W9t.set(Moe.NOTIFICATION,oho);W9t.set(Moe.DURATION,sho);W9t.set(Moe.CAPTURE_PARAM,lho);var eYr={AnnotationModeler:"sap.ux.annotationModeler",AppGenerator:"sap.ux.appGenerator",ApplicationModeler:"sap.ux.applicationModeler",Help:"sap.ux.help",ServiceModeler:"sap.ux.serviceModeler",Internal:"sap.ux.internal"},tYr={"sap.ux.help.testBetaFeatures.enableAppStudioGDContribution":"c8c52f0b-0d7d-4697-997a-d6f29814f42e","sap.ux.help.testBetaFeatures.showTestGuides":"fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3","sap.ux.help.testBetaFeatures.enableFioriAI":"165a0e31-35ea-4bee-8d47-b8593435a82d","sap.ux.help.testBetaFeatures.enableFioriAIJoule":"165a0e31-35ea-4bee-8d47-b8593435a82e","sap.ux.help.testBetaFeatures.enableFioriAIVsCode":"165a0e31-35ea-4bee-8d47-b8593435a82f","sap.ux.help.testBetaFeatures.enableFioriAIAppModeler":"165a0e31-35ea-4bee-8d47-b8593435a82g","sap.ux.help.testBetaFeatures.enableFioriAIRapGeneration":"165a0e31-35ea-4bee-8d47-b8593435a82h","sap.ux.applicationModeler.testBetaFeatures.manifestEditor":!0,"sap.ux.appGenerator.testBetaFeatures.newAnnotationAPI":!0},Y9t="testBetaFeatures",rYr="sap.ux.applicationModeler.enableExperimentalFeatures";import{createRequire as pSc}from"node:module";var dSc=pSc(import.meta.url);function uho(){try{return dSc("vscode")}catch{return}}var fSc=uho(),X9t=class t{static get vscode(){return fSc}static getFeatureToggle(e){let r,n=t.vscode;if((e.includes(Y9t)||e===rYr)&&n){let a=e.slice(0,e.lastIndexOf(".")),s=e.slice(e.lastIndexOf(".")+1,e.length);r=n.workspace.getConfiguration(a)?.get(s)}else r=!1;return process.env.TOOLSUITE_FEATURES&&(r=process.env.TOOLSUITE_FEATURES.split(",").includes(e)?!0:r),tYr[e]&&(tYr[e]===r?r=!0:r=!1),{feature:e,isEnabled:r===!0?r:!1}}static getAllFeatureToggles(){let e=[],r=t.vscode;if(r)Object.keys(eYr).forEach(n=>{let i=`${eYr[n]}.${Y9t}`,a,s=[];try{a=r.workspace.getConfiguration(i),s=Object.keys(a).filter(c=>typeof a?.[c]!="function")}catch{}a&&s.forEach(c=>{let l=a.get(c),u={feature:`${i}.${c}`,isEnabled:l||!1};e.push(u)})});else if(process.env.TOOLSUITE_FEATURES){let n=process.env.TOOLSUITE_FEATURES.split(",");for(let i of n){let a={feature:i,isEnabled:!0};e.push(a)}}return e}};function nYr(){let t="sap.ux.internal.enableInternalFeatures",e=!1,r=X9t.vscode;return r&&(e=(r.workspace?r.workspace.getConfiguration().get(t):!1)??!1),process.env.TOOLSUITE_INTERNAL&&process.env.TOOLSUITE_INTERNAL==="true"&&(e=!0),e}var xmo=br(Tmo(),1);import{randomUUID as XOc}from"node:crypto";var zOc=["@sap-ux","fiori-mcp-server"].join("/");var KOc="1.9.3",Smo={name:zOc,version:KOc};var Omo={telemetry:{unknownOs:"Unknown"}};var mYr="fiori-mcp-server",Amo=sE.createInstance();async function YOc(){await Amo.init({resources:{en:{[mYr]:Omo}},lng:"en",fallbackLng:"en",defaultNS:mYr,ns:[mYr],showSupportNotice:!1})}function Cmo(t,e){return Amo.t(t,e)}YOc().catch(()=>{});var{version:JOc}=Smo,Pmo="@sap-ux/fiori-mcp-server",wmo="unknown-tool",QOc="0a65e45d-6bf4-421d-b845-61e888c50e9e",hee=class{static _telemetryData;static _previousEventTimestamp;static _sessionId;static get telemetryData(){return this._telemetryData}static get sessionId(){return this._sessionId}static initSessionId(){this._sessionId=XOc(),Po.info(`Telemetry session initialized with ID: ${this._sessionId}`)}static async initTelemetrySettings(e){this._sessionId||this.initSessionId();let r={consumerModule:{name:Pmo,version:JOc},watchTelemetrySettingStore:!1,internalFeature:nYr(),resourceId:QOc,...e};try{await Q6r(r)}catch(n){Po.error(`Error initializing telemetry settings: ${n}`)}}static createTelemetryData(e,r=!1){let n=new Date().getTime();if(this._previousEventTimestamp||(r=!1,this._previousEventTimestamp=n),!this._telemetryData){let i=Cmo("telemetry.unknownOs");try{i=(0,xmo.default)()}catch{}this._telemetryData={Platform:zA()?"SBAS":"VSCode",OperatingSystem:i,SessionId:this.sessionId}}if(r){let i={...this._telemetryData,...e};if(Math.abs(this._previousEventTimestamp-n)<1e3&&JSON.stringify(i)===JSON.stringify(this._telemetryData))return}return this._previousEventTimestamp=n,this._telemetryData=Object.assign(this._telemetryData,e),this._telemetryData}static prepareTelemetryEvent(e,r){this.markToolsEndTime();let n=r.markName?GC.getMeasurementDuration(r.markName):void 0;return{eventName:e,properties:r,measurements:n?{RequestTime:n}:{}}}static markToolStartTime(){this.createTelemetryData({markName:GC.startMark("MCP_LOADING_TIME")})}static markToolsEndTime(){this._telemetryData?.markName&&(GC.endMark(this._telemetryData.markName),GC.measure(this._telemetryData.markName))}static async sendTelemetry(e,r,n){let i=this.createTelemetryData(r)??r,a=this.prepareTelemetryEvent(e,i);await Q8.getTelemetryClient().reportEvent(a,PM.NoSampling,n?{appPath:n}:void 0)}static getTelemetryName(){return Pmo}};var Nmo="2024-11-05";function ZOc(t){return GTe.includes(t)?t:GTe.includes(Nmo)?Nmo:GTe[GTe.length-1]}var fXt=class{server;mcpClientName="unknown-client";mcpClientVersion="unknown-version";constructor(){this.server=new HSt({name:"fiori-mcp",version:cRe,icons:[{src:"https://raw.githubusercontent.com/SAP/open-ux-tools/main/packages/fiori-mcp-server/assets/icon.svg",mimeType:"image/svg+xml"},{src:"https://raw.githubusercontent.com/SAP/open-ux-tools/main/packages/fiori-mcp-server/assets/icon.png",mimeType:"image/png"}],title:"MCP Server for SAP Fiori"},{capabilities:{tools:{}}}),this.setupToolHandlers(),this.setupErrorHandling()}setupErrorHandling(){this.server.onerror=e=>Po.error(`[MCP Error] ${e}`),process.on("SIGINT",async()=>{await this.server.close(),process.exit(0)})}async setupTelemetry(){await hee.initTelemetrySettings()}setupToolHandlers(){this.server.setRequestHandler(nKe,async e=>{this.mcpClientName=e.params.clientInfo?.name||"unknown-client",this.mcpClientVersion=e.params.clientInfo?.version||"unknown-version",Po.info(`MCP Client connected: ${this.mcpClientName} v${this.mcpClientVersion}`);let r={mcpClientName:this.mcpClientName,mcpClientVersion:this.mcpClientVersion};return await hee.sendTelemetry(Lkn,r),{protocolVersion:ZOc(e.params.protocolVersion),capabilities:{tools:{}},serverInfo:{name:"fiori-mcp",version:cRe},instructions:`
|
|
4317
4317
|
\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501
|
|
4318
4318
|
\u{1F6A8}\u{1F6A8}\u{1F6A8} STOP - READ THIS BEFORE CALLING ANY TOOLS \u{1F6A8}\u{1F6A8}\u{1F6A8}
|
|
4319
4319
|
\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fiori-mcp-server",
|
|
3
3
|
"description": "SAP Fiori - Model Context Protocol (MCP) server",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.3",
|
|
5
5
|
"mcpName": "io.github.SAP/fiori-mcp-server",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"SAP Fiori tools",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@sap-ux/axios-extension": "2.0.7",
|
|
61
61
|
"@sap-ux/btp-utils": "2.0.5",
|
|
62
62
|
"@sap-ux/feature-toggle": "1.0.5",
|
|
63
|
-
"@sap-ux/fiori-annotation-api": "1.0.
|
|
63
|
+
"@sap-ux/fiori-annotation-api": "1.0.17",
|
|
64
64
|
"@sap-ux/fiori-docs-embeddings": "1.2.6",
|
|
65
65
|
"@sap-ux/i18n": "1.0.2",
|
|
66
66
|
"@sap-ux/logger": "1.0.3",
|