@sap-ux/fiori-freestyle-writer 0.10.28 → 0.11.2

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/README.md CHANGED
@@ -36,7 +36,7 @@ const exampleWriter = async () => {
36
36
  url: 'https://services.odata.org',
37
37
  path: '/V2/Northwind/Northwind.svc',
38
38
  version: OdataVersion.v2,
39
- metadata: '<?xml version="1.0" encoding="utf-8" standalone="yes"?><edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"><edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="1.0"><Schema Namespace="NorthwindModel" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"><EntityType Name="Category"><Key><PropertyRef Name="CategoryID" /></Key><Property Name="CategoryID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /><Property Name="CategoryName" Type="Edm.String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="Description" Type="Edm.String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" /><Property Name="Picture" Type="Edm.Binary" Nullable="true" MaxLength="Max" FixedLength="false" /><NavigationProperty Name="Products" Relationship="NorthwindModel.FK_Products_Categories" FromRole="Categories" ToRole="Products" /></EntityType><EntityType Name="CustomerDemographic"><Key><PropertyRef Name="CustomerTypeID" /></Key><Property Name="CustomerTypeID" Type="Edm.String" Nullable="false" MaxLength="10" Unicode="true" FixedLength="true" /><Property Name="CustomerDesc" Type="Edm.String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" /><NavigationProperty Name="Customers" Relationship="NorthwindModel.CustomerCustomerDemo" FromRole="CustomerDemographics" ToRole="Customers" /></EntityType><EntityType Name="Customer"><Key><PropertyRef Name="CustomerID" /></Key><Property Name="CustomerID" Type="Edm.String" Nullable="false" MaxLength="5" Unicode="true" FixedLength="true" /><Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="ContactName" Type="Edm.String" Nullable="true" MaxLength="30" Unicode="true" FixedLength="false" /><Property Name="ContactTitle" Type="Edm.String" Nullable="true" MaxLength="30" Unicode="true" FixedLength="false" /><Property Name="Address" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" FixedLength="false" /><Property Name="City" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="Region" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="PostalCode" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="true" FixedLength="false" /><Property Name="Country" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="Phone" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true" FixedLength="false" /><Property Name="Fax" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true" FixedLength="false" /><NavigationProperty Name="Orders" Relationship="NorthwindModel.FK_Orders_Customers" FromRole="Customers" ToRole="Orders" /><NavigationProperty Name="CustomerDemographics" Relationship="NorthwindModel.CustomerCustomerDemo" FromRole="Customers" ToRole="CustomerDemographics" /></EntityType><EntityType Name="Employee"><Key><PropertyRef Name="EmployeeID" /></Key><Property Name="EmployeeID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /><Property Name="LastName" Type="Edm.String" Nullable="false" MaxLength="20" Unicode="true" FixedLength="false" /><Property Name="FirstName" Type="Edm.String" Nullable="false" MaxLength="10" Unicode="true" FixedLength="false" /><Property Name="Title" Type="Edm.String" Nullable="true" MaxLength="30" Unicode="true" FixedLength="false" /><Property Name="TitleOfCourtesy" Type="Edm.String" Nullable="true" MaxLength="25" Unicode="true" FixedLength="false" /><Property Name="BirthDate" Type="Edm.DateTime" Nullable="true" /><Property Name="HireDate" Type="Edm.DateTime" Nullable="true" /><Property Name="Address" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" FixedLength="false" /><Property Name="City" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="Region" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="PostalCode" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="true" FixedLength="false" /><Property Name="Country" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="HomePhone" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true" FixedLength="false" /><Property Name="Extension" Type="Edm.String" Nullable="true" MaxLength="4" Unicode="true" FixedLength="false" /><Property Name="Photo" Type="Edm.Binary" Nullable="true" MaxLength="Max" FixedLength="false" /><Property Name="Notes" Type="Edm.String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" /><Property Name="ReportsTo" Type="Edm.Int32" Nullable="true" /><Property Name="PhotoPath" Type="Edm.String" Nullable="true" MaxLength="255" Unicode="true" FixedLength="false" /><NavigationProperty Name="Employees1" Relationship="NorthwindModel.FK_Employees_Employees" FromRole="Employees" ToRole="Employees1" /><NavigationProperty Name="Employee1" Relationship="NorthwindModel.FK_Employees_Employees" FromRole="Employees1" ToRole="Employees" /><NavigationProperty Name="Orders" Relationship="NorthwindModel.FK_Orders_Employees" FromRole="Employees" ToRole="Orders" /><NavigationProperty Name="Territories" Relationship="NorthwindModel.EmployeeTerritories" FromRole="Employees" ToRole="Territories" /></EntityType><EntityType Name="Order_Detail"><Key><PropertyRef Name="OrderID" /><PropertyRef Name="ProductID" /></Key><Property Name="OrderID" Type="Edm.Int32" Nullable="false" /><Property Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property Name="UnitPrice" Type="Edm.Decimal" Nullable="false" Precision="19" Scale="4" /><Property Name="Quantity" Type="Edm.Int16" Nullable="false" /><Property Name="Discount" Type="Edm.Single" Nullable="false" /><NavigationProperty Name="Order" Relationship="NorthwindModel.FK_Order_Details_Orders" FromRole="Order_Details" ToRole="Orders" /><NavigationProperty Name="Product" Relationship="NorthwindModel.FK_Order_Details_Products" FromRole="Order_Details" ToRole="Products" /></EntityType><EntityType Name="Order"><Key><PropertyRef Name="OrderID" /></Key><Property Name="OrderID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /><Property Name="CustomerID" Type="Edm.String" Nullable="true" MaxLength="5" Unicode="true" FixedLength="true" /><Property Name="EmployeeID" Type="Edm.Int32" Nullable="true" /><Property Name="OrderDate" Type="Edm.DateTime" Nullable="true" /><Property Name="RequiredDate" Type="Edm.DateTime" Nullable="true" /><Property Name="ShippedDate" Type="Edm.DateTime" Nullable="true" /><Property Name="ShipVia" Type="Edm.Int32" Nullable="true" /><Property Name="Freight" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /><Property Name="ShipName" Type="Edm.String" Nullable="true" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="ShipAddress" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" FixedLength="false" /><Property Name="ShipCity" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="ShipRegion" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="ShipPostalCode" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="true" FixedLength="false" /><Property Name="ShipCountry" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><NavigationProperty Name="Customer" Relationship="NorthwindModel.FK_Orders_Customers" FromRole="Orders" ToRole="Customers" /><NavigationProperty Name="Employee" Relationship="NorthwindModel.FK_Orders_Employees" FromRole="Orders" ToRole="Employees" /><NavigationProperty Name="Order_Details" Relationship="NorthwindModel.FK_Order_Details_Orders" FromRole="Orders" ToRole="Order_Details" /><NavigationProperty Name="Shipper" Relationship="NorthwindModel.FK_Orders_Shippers" FromRole="Orders" ToRole="Shippers" /></EntityType><EntityType Name="Product"><Key><PropertyRef Name="ProductID" /></Key><Property Name="ProductID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /><Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="SupplierID" Type="Edm.Int32" Nullable="true" /><Property Name="CategoryID" Type="Edm.Int32" Nullable="true" /><Property Name="QuantityPerUnit" Type="Edm.String" Nullable="true" MaxLength="20" Unicode="true" FixedLength="false" /><Property Name="UnitPrice" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /><Property Name="UnitsInStock" Type="Edm.Int16" Nullable="true" /><Property Name="UnitsOnOrder" Type="Edm.Int16" Nullable="true" /><Property Name="ReorderLevel" Type="Edm.Int16" Nullable="true" /><Property Name="Discontinued" Type="Edm.Boolean" Nullable="false" /><NavigationProperty Name="Category" Relationship="NorthwindModel.FK_Products_Categories" FromRole="Products" ToRole="Categories" /><NavigationProperty Name="Order_Details" Relationship="NorthwindModel.FK_Order_Details_Products" FromRole="Products" ToRole="Order_Details" /><NavigationProperty Name="Supplier" Relationship="NorthwindModel.FK_Products_Suppliers" FromRole="Products" ToRole="Suppliers" /></EntityType><EntityType Name="Region"><Key><PropertyRef Name="RegionID" /></Key><Property Name="RegionID" Type="Edm.Int32" Nullable="false" /><Property Name="RegionDescription" Type="Edm.String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="true" /><NavigationProperty Name="Territories" Relationship="NorthwindModel.FK_Territories_Region" FromRole="Region" ToRole="Territories" /></EntityType><EntityType Name="Shipper"><Key><PropertyRef Name="ShipperID" /></Key><Property Name="ShipperID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /><Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="Phone" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true" FixedLength="false" /><NavigationProperty Name="Orders" Relationship="NorthwindModel.FK_Orders_Shippers" FromRole="Shippers" ToRole="Orders" /></EntityType><EntityType Name="Supplier"><Key><PropertyRef Name="SupplierID" /></Key><Property Name="SupplierID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /><Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="ContactName" Type="Edm.String" Nullable="true" MaxLength="30" Unicode="true" FixedLength="false" /><Property Name="ContactTitle" Type="Edm.String" Nullable="true" MaxLength="30" Unicode="true" FixedLength="false" /><Property Name="Address" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" FixedLength="false" /><Property Name="City" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="Region" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="PostalCode" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="true" FixedLength="false" /><Property Name="Country" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="Phone" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true" FixedLength="false" /><Property Name="Fax" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true" FixedLength="false" /><Property Name="HomePage" Type="Edm.String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" /><NavigationProperty Name="Products" Relationship="NorthwindModel.FK_Products_Suppliers" FromRole="Suppliers" ToRole="Products" /></EntityType><EntityType Name="Territory"><Key><PropertyRef Name="TerritoryID" /></Key><Property Name="TerritoryID" Type="Edm.String" Nullable="false" MaxLength="20" Unicode="true" FixedLength="false" /><Property Name="TerritoryDescription" Type="Edm.String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="true" /><Property Name="RegionID" Type="Edm.Int32" Nullable="false" /><NavigationProperty Name="Region" Relationship="NorthwindModel.FK_Territories_Region" FromRole="Territories" ToRole="Region" /><NavigationProperty Name="Employees" Relationship="NorthwindModel.EmployeeTerritories" FromRole="Territories" ToRole="Employees" /></EntityType><EntityType Name="Alphabetical_list_of_product"><Key><PropertyRef Name="ProductID" /><PropertyRef Name="ProductName" /><PropertyRef Name="Discontinued" /><PropertyRef Name="CategoryName" /></Key><Property Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="SupplierID" Type="Edm.Int32" Nullable="true" /><Property Name="CategoryID" Type="Edm.Int32" Nullable="true" /><Property Name="QuantityPerUnit" Type="Edm.String" Nullable="true" MaxLength="20" Unicode="true" FixedLength="false" /><Property Name="UnitPrice" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /><Property Name="UnitsInStock" Type="Edm.Int16" Nullable="true" /><Property Name="UnitsOnOrder" Type="Edm.Int16" Nullable="true" /><Property Name="ReorderLevel" Type="Edm.Int16" Nullable="true" /><Property Name="Discontinued" Type="Edm.Boolean" Nullable="false" /><Property Name="CategoryName" Type="Edm.String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /></EntityType><EntityType Name="Category_Sales_for_1997"><Key><PropertyRef Name="CategoryName" /></Key><Property Name="CategoryName" Type="Edm.String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="CategorySales" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /></EntityType><EntityType Name="Current_Product_List"><Key><PropertyRef Name="ProductID" /><PropertyRef Name="ProductName" /></Key><Property Name="ProductID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity" xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /><Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /></EntityType><EntityType Name="Customer_and_Suppliers_by_City"><Key><PropertyRef Name="CompanyName" /><PropertyRef Name="Relationship" /></Key><Property Name="City" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="ContactName" Type="Edm.String" Nullable="true" MaxLength="30" Unicode="true" FixedLength="false" /><Property Name="Relationship" Type="Edm.String" Nullable="false" MaxLength="9" Unicode="false" FixedLength="false" /></EntityType><EntityType Name="Invoice"><Key><PropertyRef Name="CustomerName" /><PropertyRef Name="Salesperson" /><PropertyRef Name="OrderID" /><PropertyRef Name="ShipperName" /><PropertyRef Name="ProductID" /><PropertyRef Name="ProductName" /><PropertyRef Name="UnitPrice" /><PropertyRef Name="Quantity" /><PropertyRef Name="Discount" /></Key><Property Name="ShipName" Type="Edm.String" Nullable="true" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="ShipAddress" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" FixedLength="false" /><Property Name="ShipCity" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="ShipRegion" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="ShipPostalCode" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="true" FixedLength="false" /><Property Name="ShipCountry" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="CustomerID" Type="Edm.String" Nullable="true" MaxLength="5" Unicode="true" FixedLength="true" /><Property Name="CustomerName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="Address" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" FixedLength="false" /><Property Name="City" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="Region" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="PostalCode" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="true" FixedLength="false" /><Property Name="Country" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="Salesperson" Type="Edm.String" Nullable="false" MaxLength="31" Unicode="true" FixedLength="false" /><Property Name="OrderID" Type="Edm.Int32" Nullable="false" /><Property Name="OrderDate" Type="Edm.DateTime" Nullable="true" /><Property Name="RequiredDate" Type="Edm.DateTime" Nullable="true" /><Property Name="ShippedDate" Type="Edm.DateTime" Nullable="true" /><Property Name="ShipperName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="UnitPrice" Type="Edm.Decimal" Nullable="false" Precision="19" Scale="4" /><Property Name="Quantity" Type="Edm.Int16" Nullable="false" /><Property Name="Discount" Type="Edm.Single" Nullable="false" /><Property Name="ExtendedPrice" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /><Property Name="Freight" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /></EntityType><EntityType Name="Order_Details_Extended"><Key><PropertyRef Name="OrderID" /><PropertyRef Name="ProductID" /><PropertyRef Name="ProductName" /><PropertyRef Name="UnitPrice" /><PropertyRef Name="Quantity" /><PropertyRef Name="Discount" /></Key><Property Name="OrderID" Type="Edm.Int32" Nullable="false" /><Property Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="UnitPrice" Type="Edm.Decimal" Nullable="false" Precision="19" Scale="4" /><Property Name="Quantity" Type="Edm.Int16" Nullable="false" /><Property Name="Discount" Type="Edm.Single" Nullable="false" /><Property Name="ExtendedPrice" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /></EntityType><EntityType Name="Order_Subtotal"><Key><PropertyRef Name="OrderID" /></Key><Property Name="OrderID" Type="Edm.Int32" Nullable="false" /><Property Name="Subtotal" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /></EntityType><EntityType Name="Orders_Qry"><Key><PropertyRef Name="OrderID" /><PropertyRef Name="CompanyName" /></Key><Property Name="OrderID" Type="Edm.Int32" Nullable="false" /><Property Name="CustomerID" Type="Edm.String" Nullable="true" MaxLength="5" Unicode="true" FixedLength="true" /><Property Name="EmployeeID" Type="Edm.Int32" Nullable="true" /><Property Name="OrderDate" Type="Edm.DateTime" Nullable="true" /><Property Name="RequiredDate" Type="Edm.DateTime" Nullable="true" /><Property Name="ShippedDate" Type="Edm.DateTime" Nullable="true" /><Property Name="ShipVia" Type="Edm.Int32" Nullable="true" /><Property Name="Freight" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /><Property Name="ShipName" Type="Edm.String" Nullable="true" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="ShipAddress" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" FixedLength="false" /><Property Name="ShipCity" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="ShipRegion" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="ShipPostalCode" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="true" FixedLength="false" /><Property Name="ShipCountry" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="Address" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" FixedLength="false" /><Property Name="City" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="Region" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="PostalCode" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="true" FixedLength="false" /><Property Name="Country" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" FixedLength="false" /></EntityType><EntityType Name="Product_Sales_for_1997"><Key><PropertyRef Name="CategoryName" /><PropertyRef Name="ProductName" /></Key><Property Name="CategoryName" Type="Edm.String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="ProductSales" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /></EntityType><EntityType Name="Products_Above_Average_Price"><Key><PropertyRef Name="ProductName" /></Key><Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="UnitPrice" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /></EntityType><EntityType Name="Products_by_Category"><Key><PropertyRef Name="CategoryName" /><PropertyRef Name="ProductName" /><PropertyRef Name="Discontinued" /></Key><Property Name="CategoryName" Type="Edm.String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="QuantityPerUnit" Type="Edm.String" Nullable="true" MaxLength="20" Unicode="true" FixedLength="false" /><Property Name="UnitsInStock" Type="Edm.Int16" Nullable="true" /><Property Name="Discontinued" Type="Edm.Boolean" Nullable="false" /></EntityType><EntityType Name="Sales_by_Category"><Key><PropertyRef Name="CategoryID" /><PropertyRef Name="CategoryName" /><PropertyRef Name="ProductName" /></Key><Property Name="CategoryID" Type="Edm.Int32" Nullable="false" /><Property Name="CategoryName" Type="Edm.String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /><Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="ProductSales" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /></EntityType><EntityType Name="Sales_Totals_by_Amount"><Key><PropertyRef Name="OrderID" /><PropertyRef Name="CompanyName" /></Key><Property Name="SaleAmount" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /><Property Name="OrderID" Type="Edm.Int32" Nullable="false" /><Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /><Property Name="ShippedDate" Type="Edm.DateTime" Nullable="true" /></EntityType><EntityType Name="Summary_of_Sales_by_Quarter"><Key><PropertyRef Name="OrderID" /></Key><Property Name="ShippedDate" Type="Edm.DateTime" Nullable="true" /><Property Name="OrderID" Type="Edm.Int32" Nullable="false" /><Property Name="Subtotal" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /></EntityType><EntityType Name="Summary_of_Sales_by_Year"><Key><PropertyRef Name="OrderID" /></Key><Property Name="ShippedDate" Type="Edm.DateTime" Nullable="true" /><Property Name="OrderID" Type="Edm.Int32" Nullable="false" /><Property Name="Subtotal" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4" /></EntityType><Association Name="FK_Products_Categories"><End Role="Categories" Type="NorthwindModel.Category" Multiplicity="0..1" /><End Role="Products" Type="NorthwindModel.Product" Multiplicity="*" /><ReferentialConstraint><Principal Role="Categories"><PropertyRef Name="CategoryID" /></Principal><Dependent Role="Products"><PropertyRef Name="CategoryID" /></Dependent></ReferentialConstraint></Association><Association Name="FK_Orders_Customers"><End Role="Customers" Type="NorthwindModel.Customer" Multiplicity="0..1" /><End Role="Orders" Type="NorthwindModel.Order" Multiplicity="*" /><ReferentialConstraint><Principal Role="Customers"><PropertyRef Name="CustomerID" /></Principal><Dependent Role="Orders"><PropertyRef Name="CustomerID" /></Dependent></ReferentialConstraint></Association><Association Name="FK_Employees_Employees"><End Role="Employees" Type="NorthwindModel.Employee" Multiplicity="0..1" /><End Role="Employees1" Type="NorthwindModel.Employee" Multiplicity="*" /><ReferentialConstraint><Principal Role="Employees"><PropertyRef Name="EmployeeID" /></Principal><Dependent Role="Employees1"><PropertyRef Name="ReportsTo" /></Dependent></ReferentialConstraint></Association><Association Name="FK_Orders_Employees"><End Role="Employees" Type="NorthwindModel.Employee" Multiplicity="0..1" /><End Role="Orders" Type="NorthwindModel.Order" Multiplicity="*" /><ReferentialConstraint><Principal Role="Employees"><PropertyRef Name="EmployeeID" /></Principal><Dependent Role="Orders"><PropertyRef Name="EmployeeID" /></Dependent></ReferentialConstraint></Association><Association Name="FK_Order_Details_Orders"><End Role="Orders" Type="NorthwindModel.Order" Multiplicity="1" /><End Role="Order_Details" Type="NorthwindModel.Order_Detail" Multiplicity="*" /><ReferentialConstraint><Principal Role="Orders"><PropertyRef Name="OrderID" /></Principal><Dependent Role="Order_Details"><PropertyRef Name="OrderID" /></Dependent></ReferentialConstraint></Association><Association Name="FK_Order_Details_Products"><End Role="Products" Type="NorthwindModel.Product" Multiplicity="1" /><End Role="Order_Details" Type="NorthwindModel.Order_Detail" Multiplicity="*" /><ReferentialConstraint><Principal Role="Products"><PropertyRef Name="ProductID" /></Principal><Dependent Role="Order_Details"><PropertyRef Name="ProductID" /></Dependent></ReferentialConstraint></Association><Association Name="FK_Orders_Shippers"><End Role="Shippers" Type="NorthwindModel.Shipper" Multiplicity="0..1" /><End Role="Orders" Type="NorthwindModel.Order" Multiplicity="*" /><ReferentialConstraint><Principal Role="Shippers"><PropertyRef Name="ShipperID" /></Principal><Dependent Role="Orders"><PropertyRef Name="ShipVia" /></Dependent></ReferentialConstraint></Association><Association Name="FK_Products_Suppliers"><End Role="Suppliers" Type="NorthwindModel.Supplier" Multiplicity="0..1" /><End Role="Products" Type="NorthwindModel.Product" Multiplicity="*" /><ReferentialConstraint><Principal Role="Suppliers"><PropertyRef Name="SupplierID" /></Principal><Dependent Role="Products"><PropertyRef Name="SupplierID" /></Dependent></ReferentialConstraint></Association><Association Name="FK_Territories_Region"><End Role="Region" Type="NorthwindModel.Region" Multiplicity="1" /><End Role="Territories" Type="NorthwindModel.Territory" Multiplicity="*" /><ReferentialConstraint><Principal Role="Region"><PropertyRef Name="RegionID" /></Principal><Dependent Role="Territories"><PropertyRef Name="RegionID" /></Dependent></ReferentialConstraint></Association><Association Name="CustomerCustomerDemo"><End Role="CustomerDemographics" Type="NorthwindModel.CustomerDemographic" Multiplicity="*" /><End Role="Customers" Type="NorthwindModel.Customer" Multiplicity="*" /></Association><Association Name="EmployeeTerritories"><End Role="Employees" Type="NorthwindModel.Employee" Multiplicity="*" /><End Role="Territories" Type="NorthwindModel.Territory" Multiplicity="*" /></Association></Schema><Schema Namespace="ODataWeb.Northwind.Model" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"><EntityContainer Name="NorthwindEntities" p7:LazyLoadingEnabled="true" m:IsDefaultEntityContainer="true" xmlns:p7="http://schemas.microsoft.com/ado/2009/02/edm/annotation"><EntitySet Name="Categories" EntityType="NorthwindModel.Category" /><EntitySet Name="CustomerDemographics" EntityType="NorthwindModel.CustomerDemographic" /><EntitySet Name="Customers" EntityType="NorthwindModel.Customer" /><EntitySet Name="Employees" EntityType="NorthwindModel.Employee" /><EntitySet Name="Order_Details" EntityType="NorthwindModel.Order_Detail" /><EntitySet Name="Orders" EntityType="NorthwindModel.Order" /><EntitySet Name="Products" EntityType="NorthwindModel.Product" /><EntitySet Name="Regions" EntityType="NorthwindModel.Region" /><EntitySet Name="Shippers" EntityType="NorthwindModel.Shipper" /><EntitySet Name="Suppliers" EntityType="NorthwindModel.Supplier" /><EntitySet Name="Territories" EntityType="NorthwindModel.Territory" /><EntitySet Name="Alphabetical_list_of_products" EntityType="NorthwindModel.Alphabetical_list_of_product" /><EntitySet Name="Category_Sales_for_1997" EntityType="NorthwindModel.Category_Sales_for_1997" /><EntitySet Name="Current_Product_Lists" EntityType="NorthwindModel.Current_Product_List" /><EntitySet Name="Customer_and_Suppliers_by_Cities" EntityType="NorthwindModel.Customer_and_Suppliers_by_City" /><EntitySet Name="Invoices" EntityType="NorthwindModel.Invoice" /><EntitySet Name="Order_Details_Extendeds" EntityType="NorthwindModel.Order_Details_Extended" /><EntitySet Name="Order_Subtotals" EntityType="NorthwindModel.Order_Subtotal" /><EntitySet Name="Orders_Qries" EntityType="NorthwindModel.Orders_Qry" /><EntitySet Name="Product_Sales_for_1997" EntityType="NorthwindModel.Product_Sales_for_1997" /><EntitySet Name="Products_Above_Average_Prices" EntityType="NorthwindModel.Products_Above_Average_Price" /><EntitySet Name="Products_by_Categories" EntityType="NorthwindModel.Products_by_Category" /><EntitySet Name="Sales_by_Categories" EntityType="NorthwindModel.Sales_by_Category" /><EntitySet Name="Sales_Totals_by_Amounts" EntityType="NorthwindModel.Sales_Totals_by_Amount" /><EntitySet Name="Summary_of_Sales_by_Quarters" EntityType="NorthwindModel.Summary_of_Sales_by_Quarter" /><EntitySet Name="Summary_of_Sales_by_Years" EntityType="NorthwindModel.Summary_of_Sales_by_Year" /><AssociationSet Name="FK_Products_Categories" Association="NorthwindModel.FK_Products_Categories"><End Role="Categories" EntitySet="Categories" /><End Role="Products" EntitySet="Products" /></AssociationSet><AssociationSet Name="FK_Orders_Customers" Association="NorthwindModel.FK_Orders_Customers"><End Role="Customers" EntitySet="Customers" /><End Role="Orders" EntitySet="Orders" /></AssociationSet><AssociationSet Name="FK_Employees_Employees" Association="NorthwindModel.FK_Employees_Employees"><End Role="Employees" EntitySet="Employees" /><End Role="Employees1" EntitySet="Employees" /></AssociationSet><AssociationSet Name="FK_Orders_Employees" Association="NorthwindModel.FK_Orders_Employees"><End Role="Employees" EntitySet="Employees" /><End Role="Orders" EntitySet="Orders" /></AssociationSet><AssociationSet Name="FK_Order_Details_Orders" Association="NorthwindModel.FK_Order_Details_Orders"><End Role="Orders" EntitySet="Orders" /><End Role="Order_Details" EntitySet="Order_Details" /></AssociationSet><AssociationSet Name="FK_Order_Details_Products" Association="NorthwindModel.FK_Order_Details_Products"><End Role="Products" EntitySet="Products" /><End Role="Order_Details" EntitySet="Order_Details" /></AssociationSet><AssociationSet Name="FK_Orders_Shippers" Association="NorthwindModel.FK_Orders_Shippers"><End Role="Shippers" EntitySet="Shippers" /><End Role="Orders" EntitySet="Orders" /></AssociationSet><AssociationSet Name="FK_Products_Suppliers" Association="NorthwindModel.FK_Products_Suppliers"><End Role="Suppliers" EntitySet="Suppliers" /><End Role="Products" EntitySet="Products" /></AssociationSet><AssociationSet Name="FK_Territories_Region" Association="NorthwindModel.FK_Territories_Region"><End Role="Region" EntitySet="Regions" /><End Role="Territories" EntitySet="Territories" /></AssociationSet><AssociationSet Name="CustomerCustomerDemo" Association="NorthwindModel.CustomerCustomerDemo"><End Role="CustomerDemographics" EntitySet="CustomerDemographics" /><End Role="Customers" EntitySet="Customers" /></AssociationSet><AssociationSet Name="EmployeeTerritories" Association="NorthwindModel.EmployeeTerritories"><End Role="Employees" EntitySet="Employees" /><End Role="Territories" EntitySet="Territories" /></AssociationSet></EntityContainer></Schema></edmx:DataServices></edmx:Edmx>'
39
+ metadata: // Fetch from: https://services.odata.org/V2/Northwind/Northwind.svc$metadata
40
40
  },
41
41
  ui5: {
42
42
  localVersion: '1.90.0',
@@ -1,6 +1,7 @@
1
- import { FreestyleApp } from './types';
1
+ import type { FreestyleApp } from './types';
2
2
  /**
3
3
  * Set defaults for missing parameters on the given instance of the overal config.
4
+ * Adds source template info.
4
5
  *
5
6
  * @param ffApp full config object used by the generate method
6
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,YAAY,EAAgB,MAAM,SAAS,CAAC;AAoBjF;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,CAO9D"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA8B,YAAY,EAAE,MAAM,SAAS,CAAC;AAsBxE;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,CAiB9D"}
package/dist/defaults.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.setDefaults = void 0;
7
+ const read_pkg_up_1 = __importDefault(require("read-pkg-up"));
4
8
  const types_1 = require("./types");
5
9
  /**
6
10
  * Set defaults for missing parameters on the given Fiori/UI5 app instance.
@@ -8,6 +12,7 @@ const types_1 = require("./types");
8
12
  * @param app Fiori application configuration
9
13
  */
10
14
  function setAppDefaults(app) {
15
+ app.baseComponent = app.baseComponent || 'sap/ui/core/UIComponent';
11
16
  app.flpAppId = app.flpAppId || `${app.id.replace(/[-_.]/g, '')}-tile`;
12
17
  }
13
18
  /**
@@ -20,11 +25,21 @@ function setBasicTemplateDefaults(settings) {
20
25
  }
21
26
  /**
22
27
  * Set defaults for missing parameters on the given instance of the overal config.
28
+ * Adds source template info.
23
29
  *
24
30
  * @param ffApp full config object used by the generate method
25
31
  */
26
32
  function setDefaults(ffApp) {
33
+ var _a, _b;
27
34
  setAppDefaults(ffApp.app);
35
+ // Add template information
36
+ if (!((_a = ffApp.app.sourceTemplate) === null || _a === void 0 ? void 0 : _a.version) || !((_b = ffApp.app.sourceTemplate) === null || _b === void 0 ? void 0 : _b.id)) {
37
+ const packageInfo = read_pkg_up_1.default.sync({ cwd: __dirname });
38
+ ffApp.app.sourceTemplate = {
39
+ id: `${packageInfo === null || packageInfo === void 0 ? void 0 : packageInfo.packageJson.name}:${ffApp.template.type}`,
40
+ version: packageInfo === null || packageInfo === void 0 ? void 0 : packageInfo.packageJson.version
41
+ };
42
+ }
28
43
  if (ffApp.template.type === types_1.TemplateType.Basic) {
29
44
  setBasicTemplateDefaults(ffApp.template.settings);
30
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../src/defaults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AI,OAAO,CAAC;AACrD,CAAC;AAED;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,KAA4B;;IACpD,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE1B,2BAA2B;IAC3B,IAAI,CAAC,CAAA,MAAA,KAAK,CAAC,GAAG,CAAC,cAAc,0CAAE,OAAO,CAAA,IAAI,CAAC,CAAA,MAAA,KAAK,CAAC,GAAG,CAAC,cAAc,0CAAE,EAAE,CAAA,EAAE;QACrE,MAAM,WAAW,GAAG,qBAAS,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;QACvD,KAAK,CAAC,GAAG,CAAC,cAAc,GAAG;YACvB,EAAE,EAAE,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,CAAC,IAAI,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE;YAC7D,OAAO,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,CAAC,OAAO;SAC5C,CAAC;KACL;IAED,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,KAAK,oBAAY,CAAC,KAAK,EAAE;QAC5C,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC,QAA4B,CAAC,CAAC;KACzE;IACD,oFAAoF;IACpF,KAAK,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;AAChF,CAAC;AAjBD,kCAiBC"}
package/dist/i18n.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TOptions } from 'i18next';
1
+ import type { TOptions } from 'i18next';
2
2
  /**
3
3
  * Initialize i18next with the translations for this module.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAK5C;;GAEG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAY9C;AAED;;;;;;GAMG;AACH,wBAAgB,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAEzD"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMxC;;GAEG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAY9C;AAED;;;;;;GAMG;AACH,wBAAgB,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAEzD"}
package/dist/i18n.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sDAA4C;AAC5C,uHAA2E;AAE3E,MAAM,EAAE,GAAG,wBAAwB,CAAC;AAEpC;;GAEG;AACH,SAAsB,QAAQ;;QAC1B,MAAM,iBAAO,CAAC,IAAI,CAAC;YACf,SAAS,EAAE;gBACP,EAAE,EAAE;oBACA,CAAC,EAAE,CAAC,EAAE,0CAAY;iBACrB;aACJ;YACD,GAAG,EAAE,IAAI;YACT,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,EAAE;YACb,EAAE,EAAE,CAAC,EAAE,CAAC;SACX,CAAC,CAAC;IACP,CAAC;CAAA;AAZD,4BAYC;AAED;;;;;;GAMG;AACH,SAAgB,CAAC,CAAC,GAAW,EAAE,OAAkB;IAC7C,OAAO,iBAAO,CAAC,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACnC,CAAC;AAFD,cAEC;AAED,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,sDAA8B;AAC9B,uHAA2E;AAE3E,MAAM,EAAE,GAAG,wBAAwB,CAAC;AAEpC;;GAEG;AACH,SAAsB,QAAQ;;QAC1B,MAAM,iBAAO,CAAC,IAAI,CAAC;YACf,SAAS,EAAE;gBACP,EAAE,EAAE;oBACA,CAAC,EAAE,CAAC,EAAE,0CAAY;iBACrB;aACJ;YACD,GAAG,EAAE,IAAI;YACT,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,EAAE;YACb,EAAE,EAAE,CAAC,EAAE,CAAC;SACX,CAAC,CAAC;IACP,CAAC;CAAA;AAZD,4BAYC;AAED;;;;;;GAMG;AACH,SAAgB,CAAC,CAAC,GAAW,EAAE,OAAkB;IAC7C,OAAO,iBAAO,CAAC,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACnC,CAAC;AAFD,cAEC;AAED,QAAQ,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Editor } from 'mem-fs-editor';
1
+ import type { Editor } from 'mem-fs-editor';
2
2
  import { FreestyleApp } from './types';
3
3
  /**
4
4
  * Generate a UI5 application based on the specified Fiori Freestyle floorplan template.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAMvC,OAAO,EAAoB,YAAY,EAAgB,MAAM,SAAS,CAAC;AAGvE;;;;;;;GAOG;AACH,iBAAe,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA+DhG;AAED,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAQ5C,OAAO,EAAE,YAAY,EAAgB,MAAM,SAAS,CAAC;AAGrD;;;;;;;GAOG;AACH,iBAAe,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA0DhG;AAED,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -34,9 +34,7 @@ function generate(basePath, data, fs) {
34
34
  return __awaiter(this, void 0, void 0, function* () {
35
35
  // Clone rather than modifying callers refs
36
36
  const ffApp = (0, cloneDeep_1.default)(data);
37
- // generate base UI5 project
38
- ffApp.app.baseComponent = ffApp.app.baseComponent || 'sap/ui/core/UIComponent';
39
- // set additional defaults
37
+ // set defaults
40
38
  (0, defaults_1.setDefaults)(ffApp);
41
39
  fs = yield (0, ui5_application_writer_1.generate)(basePath, ffApp, fs);
42
40
  // add new and overwrite files from templates e.g.
@@ -51,10 +49,9 @@ function generate(basePath, data, fs) {
51
49
  const controllerTarget = (0, path_1.join)(basePath, `webapp/controller/${viewName}.controller.js`);
52
50
  fs.copyTpl((0, path_1.join)(tmplPath, ffApp.template.type, 'custom/Controller.js'), controllerTarget, ffApp);
53
51
  }
54
- // merge content into existing files
55
- const extRoot = (0, path_1.join)(__dirname, '..', 'templates', ffApp.template.type, 'extend', 'webapp');
56
- // manifest.json
52
+ // Add template specific manifest settings
57
53
  const manifestPath = (0, path_1.join)(basePath, 'webapp', 'manifest.json');
54
+ const extRoot = (0, path_1.join)(__dirname, '..', 'templates', ffApp.template.type, 'extend', 'webapp');
58
55
  fs.extendJSON(manifestPath, JSON.parse((0, ejs_1.render)(fs.read((0, path_1.join)(extRoot, 'manifest.json')), ffApp)));
59
56
  // i18n.properties
60
57
  fs.append((0, path_1.join)(basePath, 'webapp', 'i18n', 'i18n.properties'), (0, ejs_1.render)(fs.read((0, path_1.join)(extRoot, 'i18n', 'i18n.properties')), ffApp));
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+BAA4B;AAE5B,6BAA6B;AAC7B,2EAAyF;AACzF,uEAA2E;AAC3E,mDAAsD;AACtD,iEAAyC;AACzC,mCAAuE;AACvE,yCAAyC;AAEzC;;;;;;;GAOG;AACH,SAAe,QAAQ,CAAI,QAAgB,EAAE,IAAqB,EAAE,EAAW;;;QAC3E,2CAA2C;QAC3C,MAAM,KAAK,GAAoB,IAAA,mBAAS,EAAC,IAAI,CAAoB,CAAC;QAClE,4BAA4B;QAC5B,KAAK,CAAC,GAAG,CAAC,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,aAAa,IAAI,yBAAyB,CAAC;QAE/E,0BAA0B;QAC1B,IAAA,sBAAW,EAAC,KAAK,CAAC,CAAC;QAEnB,EAAE,GAAG,MAAM,IAAA,iCAAkB,EAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QAEnD,kDAAkD;QAClD,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;QACpD,eAAe;QACf,EAAE,CAAC,OAAO,CAAC,IAAA,WAAI,EAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAEvE,EAAE,CAAC,OAAO,CAAC,IAAA,WAAI,EAAC,QA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E;YACf,MAAM,IAAA,+BAAe,EAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;SACtD;QAED,OAAO,EAAE,CAAC;;CACb;AAEQ,4BAAQ;AACjB,iCAAqG;AAAtD,qGAAA,YAAY,OAAA;AAAY,qGAAA,YAAY,OAAA"}
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Ui5App, App } from '@sap-ux/ui5-application-writer';
2
- import { OdataService } from '@sap-ux/odata-service-writer';
1
+ import type { Ui5App, App } from '@sap-ux/ui5-application-writer';
2
+ import type { OdataService } from '@sap-ux/odata-service-writer';
3
3
  export declare enum TemplateType {
4
4
  Basic = "basic",
5
5
  Worklist = "worklist",
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,oBAAY,YAAY;IACpB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC5B;AAED,UAAU,MAAM;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,EAAE;IAC5B,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,E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Y,CAAC,CAAC,CAAE,SAAQ,MAAM;IAC3C,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,GAAG,EAAE,QAAQ,CAAC;CACjB;AAGD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC"}
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAGA,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;AAC7B,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAoCD,uCAAuC;AACvC,qEAA4D;AAAnD,oHAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAGA,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;AAC7B,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAmCD,uCAAuC;AACvC,qEAA4D;AAAnD,oHAAA,YAAY,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-freestyle-writer",
3
- "version": "0.10.28",
3
+ "version": "0.11.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -9,14 +9,15 @@
9
9
  "templates"
10
10
  ],
11
11
  "dependencies": {
12
- "@sap-ux/odata-service-writer": "0.11.1",
13
- "@sap-ux/ui5-application-writer": "0.11.2",
14
- "@sap-ux/ui5-config": "0.12.0",
12
+ "@sap-ux/odata-service-writer": "0.11.2",
13
+ "@sap-ux/ui5-application-writer": "0.12.2",
14
+ "@sap-ux/ui5-config": "0.12.1",
15
15
  "ejs": "3.1.6",
16
16
  "i18next": "20.3.2",
17
17
  "lodash": "4.17.21",
18
18
  "mem-fs": "2.1.0",
19
- "mem-fs-editor": "9.0.0"
19
+ "mem-fs-editor": "9.0.0",
20
+ "read-pkg-up": "7.0.1"
20
21
  },
21
22
  "devDependencies": {
22
23
  "@types/ejs": "3.1.0",
@@ -34,11 +35,12 @@
34
35
  "clean": "rimraf dist test/test-output coverage",
35
36
  "watch": "tsc --watch",
36
37
  "lint": "eslint . --ext .ts",
38
+ "lint:fix": "eslint . --ext .ts --fix",
37
39
  "test": "jest --ci --forceExit --detectOpenHandles --colors",
38
40
  "test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
39
41
  "test:local": "node -r ts-node/register test/index.ts",
40
42
  "link": "pnpm link --global",
41
43
  "unlink": "pnpm unlink --global"
42
44
  },
43
- "readme": "# @sap-ux/fiori-freestyle-writer\n\nEasy to use Fiori Freestyle project files writer for use within Yeoman generator and other prompting libraries. \n\n\n## Installation\nNpm\n`npm install --save @sap-ux/fiori-freestyle-writer`\n\nYarn\n`yarn add @sap-ux/fiori-freestyle-writer`\n\nPnpm\n`pnpm add @sap-ux/fiori-freestyle-writer`\n\n## Usage\n\nCalling the `generate` function\n```javascript\nimport { FreestyleApp, generate, OdataVersion, TemplateType } from '@sap-ux/fiori-freestyle-writer'\nimport { join } from 'path';\n\nconst exampleWriter = async () => {\n\n const appConfig =\n {\n app: {\n id: 'test.me',\n title: 'My Test App',\n flpAppId: 'testme-app'\n },\n package: {\n name: 'test.me'\n },\n service: {\n url: 'https://services.odata.org',\n path: '/V2/Northwind/Northwind.svc',\n version: OdataVersion.v2,\n metadata: '<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?><edmx:Edmx Version=\"1.0\" xmlns:edmx=\"http://schemas.microsoft.com/ado/2007/06/edmx\"><edmx:DataServices xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\" m:DataServiceVersion=\"1.0\"><Schema Namespace=\"NorthwindModel\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\" xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\" xmlns=\"http://schemas.microsoft.com/ado/2008/09/edm\"><EntityType Name=\"Category\"><Key><PropertyRef Name=\"CategoryID\" /></Key><Property Name=\"CategoryID\" Type=\"Edm.Int32\" Nullable=\"false\" p8:StoreGeneratedPattern=\"Identity\" xmlns:p8=\"http://schemas.microsoft.com/ado/2009/02/edm/annotation\" /><Property Name=\"CategoryName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Description\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"Max\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Picture\" Type=\"Edm.Binary\" Nullable=\"true\" MaxLength=\"Max\" FixedLength=\"false\" /><NavigationProperty Name=\"Products\" Relationship=\"NorthwindModel.FK_Products_Categories\" FromRole=\"Categories\" ToRole=\"Products\" /></EntityType><EntityType Name=\"CustomerDemographic\"><Key><PropertyRef Name=\"CustomerTypeID\" /></Key><Property Name=\"CustomerTypeID\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"10\" Unicode=\"true\" FixedLength=\"true\" /><Property Name=\"CustomerDesc\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"Max\" Unicode=\"true\" FixedLength=\"false\" /><NavigationProperty Name=\"Customers\" Relationship=\"NorthwindModel.CustomerCustomerDemo\" FromRole=\"CustomerDemographics\" ToRole=\"Customers\" /></EntityType><EntityType Name=\"Customer\"><Key><PropertyRef Name=\"CustomerID\" /></Key><Property Name=\"CustomerID\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"5\" Unicode=\"true\" FixedLength=\"true\" /><Property Name=\"CompanyName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ContactName\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"30\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ContactTitle\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"30\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Address\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"60\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"City\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Region\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"PostalCode\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"10\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Country\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Phone\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"24\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Fax\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"24\" Unicode=\"true\" FixedLength=\"false\" /><NavigationProperty Name=\"Orders\" Relationship=\"NorthwindModel.FK_Orders_Customers\" FromRole=\"Customers\" ToRole=\"Orders\" /><NavigationProperty Name=\"CustomerDemographics\" Relationship=\"NorthwindModel.CustomerCustomerDemo\" FromRole=\"Customers\" ToRole=\"CustomerDemographics\" /></EntityType><EntityType Name=\"Employee\"><Key><PropertyRef Name=\"EmployeeID\" /></Key><Property Name=\"EmployeeID\" Type=\"Edm.Int32\" Nullable=\"false\" p8:StoreGeneratedPattern=\"Identity\" xmlns:p8=\"http://schemas.microsoft.com/ado/2009/02/edm/annotation\" /><Property Name=\"LastName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"20\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"FirstName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"10\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Title\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"30\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"TitleOfCourtesy\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"25\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"BirthDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"HireDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"Address\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"60\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"City\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Region\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"PostalCode\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"10\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Country\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"HomePhone\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"24\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Extension\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"4\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Photo\" Type=\"Edm.Binary\" Nullable=\"true\" MaxLength=\"Max\" FixedLength=\"false\" /><Property Name=\"Notes\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"Max\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ReportsTo\" Type=\"Edm.Int32\" Nullable=\"true\" /><Property Name=\"PhotoPath\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"255\" Unicode=\"true\" FixedLength=\"false\" /><NavigationProperty Name=\"Employees1\" Relationship=\"NorthwindModel.FK_Employees_Employees\" FromRole=\"Employees\" ToRole=\"Employees1\" /><NavigationProperty Name=\"Employee1\" Relationship=\"NorthwindModel.FK_Employees_Employees\" FromRole=\"Employees1\" ToRole=\"Employees\" /><NavigationProperty Name=\"Orders\" Relationship=\"NorthwindModel.FK_Orders_Employees\" FromRole=\"Employees\" ToRole=\"Orders\" /><NavigationProperty Name=\"Territories\" Relationship=\"NorthwindModel.EmployeeTerritories\" FromRole=\"Employees\" ToRole=\"Territories\" /></EntityType><EntityType Name=\"Order_Detail\"><Key><PropertyRef Name=\"OrderID\" /><PropertyRef Name=\"ProductID\" /></Key><Property Name=\"OrderID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"ProductID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"UnitPrice\" Type=\"Edm.Decimal\" Nullable=\"false\" Precision=\"19\" Scale=\"4\" /><Property Name=\"Quantity\" Type=\"Edm.Int16\" Nullable=\"false\" /><Property Name=\"Discount\" Type=\"Edm.Single\" Nullable=\"false\" /><NavigationProperty Name=\"Order\" Relationship=\"NorthwindModel.FK_Order_Details_Orders\" FromRole=\"Order_Details\" ToRole=\"Orders\" /><NavigationProperty Name=\"Product\" Relationship=\"NorthwindModel.FK_Order_Details_Products\" FromRole=\"Order_Details\" ToRole=\"Products\" /></EntityType><EntityType Name=\"Order\"><Key><PropertyRef Name=\"OrderID\" /></Key><Property Name=\"OrderID\" Type=\"Edm.Int32\" Nullable=\"false\" p8:StoreGeneratedPattern=\"Identity\" xmlns:p8=\"http://schemas.microsoft.com/ado/2009/02/edm/annotation\" /><Property Name=\"CustomerID\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"5\" Unicode=\"true\" FixedLength=\"true\" /><Property Name=\"EmployeeID\" Type=\"Edm.Int32\" Nullable=\"true\" /><Property Name=\"OrderDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"RequiredDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"ShippedDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"ShipVia\" Type=\"Edm.Int32\" Nullable=\"true\" /><Property Name=\"Freight\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /><Property Name=\"ShipName\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipAddress\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"60\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipCity\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipRegion\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipPostalCode\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"10\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipCountry\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><NavigationProperty Name=\"Customer\" Relationship=\"NorthwindModel.FK_Orders_Customers\" FromRole=\"Orders\" ToRole=\"Customers\" /><NavigationProperty Name=\"Employee\" Relationship=\"NorthwindModel.FK_Orders_Employees\" FromRole=\"Orders\" ToRole=\"Employees\" /><NavigationProperty Name=\"Order_Details\" Relationship=\"NorthwindModel.FK_Order_Details_Orders\" FromRole=\"Orders\" ToRole=\"Order_Details\" /><NavigationProperty Name=\"Shipper\" Relationship=\"NorthwindModel.FK_Orders_Shippers\" FromRole=\"Orders\" ToRole=\"Shippers\" /></EntityType><EntityType Name=\"Product\"><Key><PropertyRef Name=\"ProductID\" /></Key><Property Name=\"ProductID\" Type=\"Edm.Int32\" Nullable=\"false\" p8:StoreGeneratedPattern=\"Identity\" xmlns:p8=\"http://schemas.microsoft.com/ado/2009/02/edm/annotation\" /><Property Name=\"ProductName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"SupplierID\" Type=\"Edm.Int32\" Nullable=\"true\" /><Property Name=\"CategoryID\" Type=\"Edm.Int32\" Nullable=\"true\" /><Property Name=\"QuantityPerUnit\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"20\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"UnitPrice\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /><Property Name=\"UnitsInStock\" Type=\"Edm.Int16\" Nullable=\"true\" /><Property Name=\"UnitsOnOrder\" Type=\"Edm.Int16\" Nullable=\"true\" /><Property Name=\"ReorderLevel\" Type=\"Edm.Int16\" Nullable=\"true\" /><Property Name=\"Discontinued\" Type=\"Edm.Boolean\" Nullable=\"false\" /><NavigationProperty Name=\"Category\" Relationship=\"NorthwindModel.FK_Products_Categories\" FromRole=\"Products\" ToRole=\"Categories\" /><NavigationProperty Name=\"Order_Details\" Relationship=\"NorthwindModel.FK_Order_Details_Products\" FromRole=\"Products\" ToRole=\"Order_Details\" /><NavigationProperty Name=\"Supplier\" Relationship=\"NorthwindModel.FK_Products_Suppliers\" FromRole=\"Products\" ToRole=\"Suppliers\" /></EntityType><EntityType Name=\"Region\"><Key><PropertyRef Name=\"RegionID\" /></Key><Property Name=\"RegionID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"RegionDescription\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"50\" Unicode=\"true\" FixedLength=\"true\" /><NavigationProperty Name=\"Territories\" Relationship=\"NorthwindModel.FK_Territories_Region\" FromRole=\"Region\" ToRole=\"Territories\" /></EntityType><EntityType Name=\"Shipper\"><Key><PropertyRef Name=\"ShipperID\" /></Key><Property Name=\"ShipperID\" Type=\"Edm.Int32\" Nullable=\"false\" p8:StoreGeneratedPattern=\"Identity\" xmlns:p8=\"http://schemas.microsoft.com/ado/2009/02/edm/annotation\" /><Property Name=\"CompanyName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Phone\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"24\" Unicode=\"true\" FixedLength=\"false\" /><NavigationProperty Name=\"Orders\" Relationship=\"NorthwindModel.FK_Orders_Shippers\" FromRole=\"Shippers\" ToRole=\"Orders\" /></EntityType><EntityType Name=\"Supplier\"><Key><PropertyRef Name=\"SupplierID\" /></Key><Property Name=\"SupplierID\" Type=\"Edm.Int32\" Nullable=\"false\" p8:StoreGeneratedPattern=\"Identity\" xmlns:p8=\"http://schemas.microsoft.com/ado/2009/02/edm/annotation\" /><Property Name=\"CompanyName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ContactName\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"30\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ContactTitle\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"30\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Address\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"60\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"City\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Region\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"PostalCode\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"10\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Country\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Phone\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"24\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Fax\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"24\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"HomePage\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"Max\" Unicode=\"true\" FixedLength=\"false\" /><NavigationProperty Name=\"Products\" Relationship=\"NorthwindModel.FK_Products_Suppliers\" FromRole=\"Suppliers\" ToRole=\"Products\" /></EntityType><EntityType Name=\"Territory\"><Key><PropertyRef Name=\"TerritoryID\" /></Key><Property Name=\"TerritoryID\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"20\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"TerritoryDescription\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"50\" Unicode=\"true\" FixedLength=\"true\" /><Property Name=\"RegionID\" Type=\"Edm.Int32\" Nullable=\"false\" /><NavigationProperty Name=\"Region\" Relationship=\"NorthwindModel.FK_Territories_Region\" FromRole=\"Territories\" ToRole=\"Region\" /><NavigationProperty Name=\"Employees\" Relationship=\"NorthwindModel.EmployeeTerritories\" FromRole=\"Territories\" ToRole=\"Employees\" /></EntityType><EntityType Name=\"Alphabetical_list_of_product\"><Key><PropertyRef Name=\"ProductID\" /><PropertyRef Name=\"ProductName\" /><PropertyRef Name=\"Discontinued\" /><PropertyRef Name=\"CategoryName\" /></Key><Property Name=\"ProductID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"ProductName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"SupplierID\" Type=\"Edm.Int32\" Nullable=\"true\" /><Property Name=\"CategoryID\" Type=\"Edm.Int32\" Nullable=\"true\" /><Property Name=\"QuantityPerUnit\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"20\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"UnitPrice\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /><Property Name=\"UnitsInStock\" Type=\"Edm.Int16\" Nullable=\"true\" /><Property Name=\"UnitsOnOrder\" Type=\"Edm.Int16\" Nullable=\"true\" /><Property Name=\"ReorderLevel\" Type=\"Edm.Int16\" Nullable=\"true\" /><Property Name=\"Discontinued\" Type=\"Edm.Boolean\" Nullable=\"false\" /><Property Name=\"CategoryName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /></EntityType><EntityType Name=\"Category_Sales_for_1997\"><Key><PropertyRef Name=\"CategoryName\" /></Key><Property Name=\"CategoryName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"CategorySales\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /></EntityType><EntityType Name=\"Current_Product_List\"><Key><PropertyRef Name=\"ProductID\" /><PropertyRef Name=\"ProductName\" /></Key><Property Name=\"ProductID\" Type=\"Edm.Int32\" Nullable=\"false\" p8:StoreGeneratedPattern=\"Identity\" xmlns:p8=\"http://schemas.microsoft.com/ado/2009/02/edm/annotation\" /><Property Name=\"ProductName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /></EntityType><EntityType Name=\"Customer_and_Suppliers_by_City\"><Key><PropertyRef Name=\"CompanyName\" /><PropertyRef Name=\"Relationship\" /></Key><Property Name=\"City\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"CompanyName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ContactName\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"30\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Relationship\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"9\" Unicode=\"false\" FixedLength=\"false\" /></EntityType><EntityType Name=\"Invoice\"><Key><PropertyRef Name=\"CustomerName\" /><PropertyRef Name=\"Salesperson\" /><PropertyRef Name=\"OrderID\" /><PropertyRef Name=\"ShipperName\" /><PropertyRef Name=\"ProductID\" /><PropertyRef Name=\"ProductName\" /><PropertyRef Name=\"UnitPrice\" /><PropertyRef Name=\"Quantity\" /><PropertyRef Name=\"Discount\" /></Key><Property Name=\"ShipName\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipAddress\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"60\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipCity\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipRegion\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipPostalCode\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"10\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipCountry\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"CustomerID\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"5\" Unicode=\"true\" FixedLength=\"true\" /><Property Name=\"CustomerName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Address\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"60\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"City\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Region\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"PostalCode\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"10\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Country\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Salesperson\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"31\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"OrderID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"OrderDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"RequiredDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"ShippedDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"ShipperName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ProductID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"ProductName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"UnitPrice\" Type=\"Edm.Decimal\" Nullable=\"false\" Precision=\"19\" Scale=\"4\" /><Property Name=\"Quantity\" Type=\"Edm.Int16\" Nullable=\"false\" /><Property Name=\"Discount\" Type=\"Edm.Single\" Nullable=\"false\" /><Property Name=\"ExtendedPrice\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /><Property Name=\"Freight\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /></EntityType><EntityType Name=\"Order_Details_Extended\"><Key><PropertyRef Name=\"OrderID\" /><PropertyRef Name=\"ProductID\" /><PropertyRef Name=\"ProductName\" /><PropertyRef Name=\"UnitPrice\" /><PropertyRef Name=\"Quantity\" /><PropertyRef Name=\"Discount\" /></Key><Property Name=\"OrderID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"ProductID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"ProductName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"UnitPrice\" Type=\"Edm.Decimal\" Nullable=\"false\" Precision=\"19\" Scale=\"4\" /><Property Name=\"Quantity\" Type=\"Edm.Int16\" Nullable=\"false\" /><Property Name=\"Discount\" Type=\"Edm.Single\" Nullable=\"false\" /><Property Name=\"ExtendedPrice\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /></EntityType><EntityType Name=\"Order_Subtotal\"><Key><PropertyRef Name=\"OrderID\" /></Key><Property Name=\"OrderID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"Subtotal\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /></EntityType><EntityType Name=\"Orders_Qry\"><Key><PropertyRef Name=\"OrderID\" /><PropertyRef Name=\"CompanyName\" /></Key><Property Name=\"OrderID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"CustomerID\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"5\" Unicode=\"true\" FixedLength=\"true\" /><Property Name=\"EmployeeID\" Type=\"Edm.Int32\" Nullable=\"true\" /><Property Name=\"OrderDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"RequiredDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"ShippedDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"ShipVia\" Type=\"Edm.Int32\" Nullable=\"true\" /><Property Name=\"Freight\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /><Property Name=\"ShipName\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipAddress\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"60\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipCity\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipRegion\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipPostalCode\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"10\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShipCountry\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"CompanyName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Address\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"60\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"City\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Region\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"PostalCode\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"10\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"Country\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /></EntityType><EntityType Name=\"Product_Sales_for_1997\"><Key><PropertyRef Name=\"CategoryName\" /><PropertyRef Name=\"ProductName\" /></Key><Property Name=\"CategoryName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ProductName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ProductSales\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /></EntityType><EntityType Name=\"Products_Above_Average_Price\"><Key><PropertyRef Name=\"ProductName\" /></Key><Property Name=\"ProductName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"UnitPrice\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /></EntityType><EntityType Name=\"Products_by_Category\"><Key><PropertyRef Name=\"CategoryName\" /><PropertyRef Name=\"ProductName\" /><PropertyRef Name=\"Discontinued\" /></Key><Property Name=\"CategoryName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ProductName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"QuantityPerUnit\" Type=\"Edm.String\" Nullable=\"true\" MaxLength=\"20\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"UnitsInStock\" Type=\"Edm.Int16\" Nullable=\"true\" /><Property Name=\"Discontinued\" Type=\"Edm.Boolean\" Nullable=\"false\" /></EntityType><EntityType Name=\"Sales_by_Category\"><Key><PropertyRef Name=\"CategoryID\" /><PropertyRef Name=\"CategoryName\" /><PropertyRef Name=\"ProductName\" /></Key><Property Name=\"CategoryID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"CategoryName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"15\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ProductName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ProductSales\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /></EntityType><EntityType Name=\"Sales_Totals_by_Amount\"><Key><PropertyRef Name=\"OrderID\" /><PropertyRef Name=\"CompanyName\" /></Key><Property Name=\"SaleAmount\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /><Property Name=\"OrderID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"CompanyName\" Type=\"Edm.String\" Nullable=\"false\" MaxLength=\"40\" Unicode=\"true\" FixedLength=\"false\" /><Property Name=\"ShippedDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /></EntityType><EntityType Name=\"Summary_of_Sales_by_Quarter\"><Key><PropertyRef Name=\"OrderID\" /></Key><Property Name=\"ShippedDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"OrderID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"Subtotal\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /></EntityType><EntityType Name=\"Summary_of_Sales_by_Year\"><Key><PropertyRef Name=\"OrderID\" /></Key><Property Name=\"ShippedDate\" Type=\"Edm.DateTime\" Nullable=\"true\" /><Property Name=\"OrderID\" Type=\"Edm.Int32\" Nullable=\"false\" /><Property Name=\"Subtotal\" Type=\"Edm.Decimal\" Nullable=\"true\" Precision=\"19\" Scale=\"4\" /></EntityType><Association Name=\"FK_Products_Categories\"><End Role=\"Categories\" Type=\"NorthwindModel.Category\" Multiplicity=\"0..1\" /><End Role=\"Products\" Type=\"NorthwindModel.Product\" Multiplicity=\"*\" /><ReferentialConstraint><Principal Role=\"Categories\"><PropertyRef Name=\"CategoryID\" /></Principal><Dependent Role=\"Products\"><PropertyRef Name=\"CategoryID\" /></Dependent></ReferentialConstraint></Association><Association Name=\"FK_Orders_Customers\"><End Role=\"Customers\" Type=\"NorthwindModel.Customer\" Multiplicity=\"0..1\" /><End Role=\"Orders\" Type=\"NorthwindModel.Order\" Multiplicity=\"*\" /><ReferentialConstraint><Principal Role=\"Customers\"><PropertyRef Name=\"CustomerID\" /></Principal><Dependent Role=\"Orders\"><PropertyRef Name=\"CustomerID\" /></Dependent></ReferentialConstraint></Association><Association Name=\"FK_Employees_Employees\"><End Role=\"Employees\" Type=\"NorthwindModel.Employee\" Multiplicity=\"0..1\" /><End Role=\"Employees1\" Type=\"NorthwindModel.Employee\" Multiplicity=\"*\" /><ReferentialConstraint><Principal Role=\"Employees\"><PropertyRef Name=\"EmployeeID\" /></Principal><Dependent Role=\"Employees1\"><PropertyRef Name=\"ReportsTo\" /></Dependent></ReferentialConstraint></Association><Association Name=\"FK_Orders_Employees\"><End Role=\"Employees\" Type=\"NorthwindModel.Employee\" Multiplicity=\"0..1\" /><End Role=\"Orders\" Type=\"NorthwindModel.Order\" Multiplicity=\"*\" /><ReferentialConstraint><Principal Role=\"Employees\"><PropertyRef Name=\"EmployeeID\" /></Principal><Dependent Role=\"Orders\"><PropertyRef Name=\"EmployeeID\" /></Dependent></ReferentialConstraint></Association><Association Name=\"FK_Order_Details_Orders\"><End Role=\"Orders\" Type=\"NorthwindModel.Order\" Multiplicity=\"1\" /><End Role=\"Order_Details\" Type=\"NorthwindModel.Order_Detail\" Multiplicity=\"*\" /><ReferentialConstraint><Principal Role=\"Orders\"><PropertyRef Name=\"OrderID\" /></Principal><Dependent Role=\"Order_Details\"><PropertyRef Name=\"OrderID\" /></Dependent></ReferentialConstraint></Association><Association Name=\"FK_Order_Details_Products\"><End Role=\"Products\" Type=\"NorthwindModel.Product\" Multiplicity=\"1\" /><End Role=\"Order_Details\" Type=\"NorthwindModel.Order_Detail\" Multiplicity=\"*\" /><ReferentialConstraint><Principal Role=\"Products\"><PropertyRef Name=\"ProductID\" /></Principal><Dependent Role=\"Order_Details\"><PropertyRef Name=\"ProductID\" /></Dependent></ReferentialConstraint></Association><Association Name=\"FK_Orders_Shippers\"><End Role=\"Shippers\" Type=\"NorthwindModel.Shipper\" Multiplicity=\"0..1\" /><End Role=\"Orders\" Type=\"NorthwindModel.Order\" Multiplicity=\"*\" /><ReferentialConstraint><Principal Role=\"Shippers\"><PropertyRef Name=\"ShipperID\" /></Principal><Dependent Role=\"Orders\"><PropertyRef Name=\"ShipVia\" /></Dependent></ReferentialConstraint></Association><Association Name=\"FK_Products_Suppliers\"><End Role=\"Suppliers\" Type=\"NorthwindModel.Supplier\" Multiplicity=\"0..1\" /><End Role=\"Products\" Type=\"NorthwindModel.Product\" Multiplicity=\"*\" /><ReferentialConstraint><Principal Role=\"Suppliers\"><PropertyRef Name=\"SupplierID\" /></Principal><Dependent Role=\"Products\"><PropertyRef Name=\"SupplierID\" /></Dependent></ReferentialConstraint></Association><Association Name=\"FK_Territories_Region\"><End Role=\"Region\" Type=\"NorthwindModel.Region\" Multiplicity=\"1\" /><End Role=\"Territories\" Type=\"NorthwindModel.Territory\" Multiplicity=\"*\" /><ReferentialConstraint><Principal Role=\"Region\"><PropertyRef Name=\"RegionID\" /></Principal><Dependent Role=\"Territories\"><PropertyRef Name=\"RegionID\" /></Dependent></ReferentialConstraint></Association><Association Name=\"CustomerCustomerDemo\"><End Role=\"CustomerDemographics\" Type=\"NorthwindModel.CustomerDemographic\" Multiplicity=\"*\" /><End Role=\"Customers\" Type=\"NorthwindModel.Customer\" Multiplicity=\"*\" /></Association><Association Name=\"EmployeeTerritories\"><End Role=\"Employees\" Type=\"NorthwindModel.Employee\" Multiplicity=\"*\" /><End Role=\"Territories\" Type=\"NorthwindModel.Territory\" Multiplicity=\"*\" /></Association></Schema><Schema Namespace=\"ODataWeb.Northwind.Model\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\" xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\" xmlns=\"http://schemas.microsoft.com/ado/2008/09/edm\"><EntityContainer Name=\"NorthwindEntities\" p7:LazyLoadingEnabled=\"true\" m:IsDefaultEntityContainer=\"true\" xmlns:p7=\"http://schemas.microsoft.com/ado/2009/02/edm/annotation\"><EntitySet Name=\"Categories\" EntityType=\"NorthwindModel.Category\" /><EntitySet Name=\"CustomerDemographics\" EntityType=\"NorthwindModel.CustomerDemographic\" /><EntitySet Name=\"Customers\" EntityType=\"NorthwindModel.Customer\" /><EntitySet Name=\"Employees\" EntityType=\"NorthwindModel.Employee\" /><EntitySet Name=\"Order_Details\" EntityType=\"NorthwindModel.Order_Detail\" /><EntitySet Name=\"Orders\" EntityType=\"NorthwindModel.Order\" /><EntitySet Name=\"Products\" EntityType=\"NorthwindModel.Product\" /><EntitySet Name=\"Regions\" EntityType=\"NorthwindModel.Region\" /><EntitySet Name=\"Shippers\" EntityType=\"NorthwindModel.Shipper\" /><EntitySet Name=\"Suppliers\" EntityType=\"NorthwindModel.Supplier\" /><EntitySet Name=\"Territories\" EntityType=\"NorthwindModel.Territory\" /><EntitySet Name=\"Alphabetical_list_of_products\" EntityType=\"NorthwindModel.Alphabetical_list_of_product\" /><EntitySet Name=\"Category_Sales_for_1997\" EntityType=\"NorthwindModel.Category_Sales_for_1997\" /><EntitySet Name=\"Current_Product_Lists\" EntityType=\"NorthwindModel.Current_Product_List\" /><EntitySet Name=\"Customer_and_Suppliers_by_Cities\" EntityType=\"NorthwindModel.Customer_and_Suppliers_by_City\" /><EntitySet Name=\"Invoices\" EntityType=\"NorthwindModel.Invoice\" /><EntitySet Name=\"Order_Details_Extendeds\" EntityType=\"NorthwindModel.Order_Details_Extended\" /><EntitySet Name=\"Order_Subtotals\" EntityType=\"NorthwindModel.Order_Subtotal\" /><EntitySet Name=\"Orders_Qries\" EntityType=\"NorthwindModel.Orders_Qry\" /><EntitySet Name=\"Product_Sales_for_1997\" EntityType=\"NorthwindModel.Product_Sales_for_1997\" /><EntitySet Name=\"Products_Above_Average_Prices\" EntityType=\"NorthwindModel.Products_Above_Average_Price\" /><EntitySet Name=\"Products_by_Categories\" EntityType=\"NorthwindModel.Products_by_Category\" /><EntitySet Name=\"Sales_by_Categories\" EntityType=\"NorthwindModel.Sales_by_Category\" /><EntitySet Name=\"Sales_Totals_by_Amounts\" EntityType=\"NorthwindModel.Sales_Totals_by_Amount\" /><EntitySet Name=\"Summary_of_Sales_by_Quarters\" EntityType=\"NorthwindModel.Summary_of_Sales_by_Quarter\" /><EntitySet Name=\"Summary_of_Sales_by_Years\" EntityType=\"NorthwindModel.Summary_of_Sales_by_Year\" /><AssociationSet Name=\"FK_Products_Categories\" Association=\"NorthwindModel.FK_Products_Categories\"><End Role=\"Categories\" EntitySet=\"Categories\" /><End Role=\"Products\" EntitySet=\"Products\" /></AssociationSet><AssociationSet Name=\"FK_Orders_Customers\" Association=\"NorthwindModel.FK_Orders_Customers\"><End Role=\"Customers\" EntitySet=\"Customers\" /><End Role=\"Orders\" EntitySet=\"Orders\" /></AssociationSet><AssociationSet Name=\"FK_Employees_Employees\" Association=\"NorthwindModel.FK_Employees_Employees\"><End Role=\"Employees\" EntitySet=\"Employees\" /><End Role=\"Employees1\" EntitySet=\"Employees\" /></AssociationSet><AssociationSet Name=\"FK_Orders_Employees\" Association=\"NorthwindModel.FK_Orders_Employees\"><End Role=\"Employees\" EntitySet=\"Employees\" /><End Role=\"Orders\" EntitySet=\"Orders\" /></AssociationSet><AssociationSet Name=\"FK_Order_Details_Orders\" Association=\"NorthwindModel.FK_Order_Details_Orders\"><End Role=\"Orders\" EntitySet=\"Orders\" /><End Role=\"Order_Details\" EntitySet=\"Order_Details\" /></AssociationSet><AssociationSet Name=\"FK_Order_Details_Products\" Association=\"NorthwindModel.FK_Order_Details_Products\"><End Role=\"Products\" EntitySet=\"Products\" /><End Role=\"Order_Details\" EntitySet=\"Order_Details\" /></AssociationSet><AssociationSet Name=\"FK_Orders_Shippers\" Association=\"NorthwindModel.FK_Orders_Shippers\"><End Role=\"Shippers\" EntitySet=\"Shippers\" /><End Role=\"Orders\" EntitySet=\"Orders\" /></AssociationSet><AssociationSet Name=\"FK_Products_Suppliers\" Association=\"NorthwindModel.FK_Products_Suppliers\"><End Role=\"Suppliers\" EntitySet=\"Suppliers\" /><End Role=\"Products\" EntitySet=\"Products\" /></AssociationSet><AssociationSet Name=\"FK_Territories_Region\" Association=\"NorthwindModel.FK_Territories_Region\"><End Role=\"Region\" EntitySet=\"Regions\" /><End Role=\"Territories\" EntitySet=\"Territories\" /></AssociationSet><AssociationSet Name=\"CustomerCustomerDemo\" Association=\"NorthwindModel.CustomerCustomerDemo\"><End Role=\"CustomerDemographics\" EntitySet=\"CustomerDemographics\" /><End Role=\"Customers\" EntitySet=\"Customers\" /></AssociationSet><AssociationSet Name=\"EmployeeTerritories\" Association=\"NorthwindModel.EmployeeTerritories\"><End Role=\"Employees\" EntitySet=\"Employees\" /><End Role=\"Territories\" EntitySet=\"Territories\" /></AssociationSet></EntityContainer></Schema></edmx:DataServices></edmx:Edmx>'\n },\n ui5: {\n localVersion: '1.90.0',\n version: '', // I.e Latest\n ui5Theme: 'sap_fiori_3',\n ui5Libs: 'sap.m,sap.ushell'\n },\n template: {\n type: TemplateType.ListDetail,\n settings: {\n entity: {\n name: 'Suppliers',\n key: 'SupplierID',\n idProperty: 'CompanyName',\n numberProperty: undefined,\n unitOfMeasureProperty: undefined\n },\n lineItem: {\n name: 'Products',\n key: 'ProductID',\n idProperty: 'ProductName',\n numberProperty: 'UnitsInStock',\n unitOfMeasureProperty: 'QuantityPerUnit'\n }\n }\n }\n };\n \nconst projectPath = join(curTestOutPath, name);\nconst fs = await generate(join(projectPath), appConfig);\nreturn new Promise((resolve) => {\n fs.commit(resolve); // When using with Yeoman it handle the fs commit.\n});\n}\n\n// Calling the function\nawait exampleWriter();\n\n```\n\n## Keywords\nSAP Fiori Freestyle\n"
45
+ "readme": "# @sap-ux/fiori-freestyle-writer\n\nEasy to use Fiori Freestyle project files writer for use within Yeoman generator and other prompting libraries. \n\n\n## Installation\nNpm\n`npm install --save @sap-ux/fiori-freestyle-writer`\n\nYarn\n`yarn add @sap-ux/fiori-freestyle-writer`\n\nPnpm\n`pnpm add @sap-ux/fiori-freestyle-writer`\n\n## Usage\n\nCalling the `generate` function\n```javascript\nimport { FreestyleApp, generate, OdataVersion, TemplateType } from '@sap-ux/fiori-freestyle-writer'\nimport { join } from 'path';\n\nconst exampleWriter = async () => {\n\n const appConfig =\n {\n app: {\n id: 'test.me',\n title: 'My Test App',\n flpAppId: 'testme-app'\n },\n package: {\n name: 'test.me'\n },\n service: {\n url: 'https://services.odata.org',\n path: '/V2/Northwind/Northwind.svc',\n version: OdataVersion.v2,\n metadata: // Fetch from: https://services.odata.org/V2/Northwind/Northwind.svc$metadata\n },\n ui5: {\n localVersion: '1.90.0',\n version: '', // I.e Latest\n ui5Theme: 'sap_fiori_3',\n ui5Libs: 'sap.m,sap.ushell'\n },\n template: {\n type: TemplateType.ListDetail,\n settings: {\n entity: {\n name: 'Suppliers',\n key: 'SupplierID',\n idProperty: 'CompanyName',\n numberProperty: undefined,\n unitOfMeasureProperty: undefined\n },\n lineItem: {\n name: 'Products',\n key: 'ProductID',\n idProperty: 'ProductName',\n numberProperty: 'UnitsInStock',\n unitOfMeasureProperty: 'QuantityPerUnit'\n }\n }\n }\n };\n \nconst projectPath = join(curTestOutPath, name);\nconst fs = await generate(join(projectPath), appConfig);\nreturn new Promise((resolve) => {\n fs.commit(resolve); // When using with Yeoman it handle the fs commit.\n});\n}\n\n// Calling the function\nawait exampleWriter();\n\n```\n\n## Keywords\nSAP Fiori Freestyle\n"
44
46
  }