{
    "$schema": "https://schema.dawiso.com/package-schema.json",
    "package": {
        "key": "cust_recipe_datamarket",
        "name": "Recipe Manager (Data Market)",
        "provider": "https://dawiso.com",
        "autoInstall": false,
        "settings": {
            "createAssetMappingsForExistingAssets": false,
            "search": [
                {
                    "isSearchable": true,
                    "description": "Data Market for Recipes",
                    "applicationKey": "cust_recipe_metadata_app_app",
                    "objectTypeKey": "cust_recipe_metadata_app_recipe",
                    "functionKey": "mr_object_import_func",
                    "indexKey": "search_index"
                }
            ]
        },
        "dependsOn": [
            {
                "packageKey": "core"
            },
            {
                "packageKey": "cust_recipe_metadata_app"
            }
        ],
        "assets": {
            "pages": [
                {
                    "key": "dashboard",
                    "name": "Recipes Data Market",
                    "url": "recipes_market",
                    "orderNumber": 1,
                    "iconKey": "core_recommended",
                    "locationKey": "top-menu",
                    "template": {
                        "centerArea": [
                            {
                                "componentId": "search#recipe_datamarket",
                                "type": "search",
                                "title": "template.object.market.title",
                                "placeholder": "template.object.market.placeholder",
                                "searchFormKey": "search_form",
                                "targetDataComponentId": "api-card#recipe_target"
                            },
                            {
                                "componentId": "api_card_inline#recipe_datamarket",
                                "type": "api-card-inline",
                                "api": "api/mr-object/recommendations/customizable-overview-filter",
                                "headerTitle": "template.recommendation-api-card.header",
                                "headerClaim": "template.recommendation-api-card.claim",
                                "noDataText": "no_data",
                                "targetComponentId": "api-card#recipe_target",
                                "onClickOpens": "rightPanelDetail",
                                "nameAttribute": "objectName",
                                "leftData": {
                                    "type": "relationTypeKey",
                                    "value": "cust_recipe_metadata_app_has_dietary_category"
                                },
                                "rightData": {
                                    "type": "userRelationTypeKey",
                                    "value": "cust_recipe_metadata_app_recipe_owner"
                                },
                                "filter": {
                                    "objectTypeKeys": {
                                        "value": [
                                            "cust_recipe_metadata_app_recipe"
                                        ]
                                    }
                                }
                            },
                            {
                                "componentId": "api-card#recipe_target",
                                "type": "api-card",
                                "api": "api/dashboard/search-object",
                                "headerTitle": "template.object.api-card.header",
                                "noDataText": "template.object.api-card.no_data",
                                "noDataIconKey": "core_recently_viewed",
                                "onClickOpens": "rightPanelDetail",
                                "sortTypes": [
                                    "name",
                                    "created",
                                    "modified",
                                    "popularity"
                                ],
                                "nameAttribute": "name",
                                "secondaryNameAttribute": "48",
                                "userRelationTypeKey": "cust_recipe_metadata_app_best_cook",
                                "objectPathKey": "objectPath",
                                "middleSectionAttributeTypeKey": "core_description_scanned",
                                "searchFormKey": "search_form",
                                "additionalRelationTypes": [
                                    {
                                        "key": "cust_recipe_metadata_app_has_dietary_category"
                                    }
                                ],
                                "additionalUserRelationTypes": [
                                    {
                                        "key": "cust_recipe_metadata_app_recipe_owner"
                                    },
                                    {
                                        "key": "cust_recipe_metadata_app_best_cook"
                                    }
                                ],
                                "favouriteObjectTypes": [
                                    {
                                        "key": "cust_recipe_metadata_app_recipe"
                                    }
                                ],
                                "layouts": [
                                    {
                                        "type": "cards"
                                    }
                                ]
                            }
                        ],
                        "settings": {
                            "componentId": "template-settings#app_overview_settings",
                            "type": "template-settings",
                            "hide": {
                                "attachments": true,
                                "changes": true,
                                "commentSection": true,
                                "concepts": true,
                                "editButton": true,
                                "favouriteButton": true,
                                "hideEmptyAttributesButton": true,
                                "shareObject": true,
                                "watchingButton": true,
                                "workflowStatus": true,
                                "likeButton": true,
                                "anchors": true,
                                "moveObject": true,
                                "renameObject": true,
                                "removeObject": true
                            }
                        }
                    }
                }
            ],
            "searchQueries": [
                {
                    "key": "empty",
                    "searchQueryTypeKey": "empty",
                    "description": "",
                    "searchQuery": "{ \"bool\": { \"must\" : [     __permissionPart__                 __facetsPart__                 __filterPart__                        { \"bool\" : {\"should\": [         { \"match_all\": { } },         {\"bool\" : {\"should\": [             {\"rank_feature\": {\"field\": \"boost\", \"boost\": 50.0 } },             {\"bool\": {\"must_not\": { \"exists\": { \"field\": \"boost\" } } } }         ] } }     ], \"minimum_should_match\": 2 } }       ] } }"
                },
                {
                    "key": "basic",
                    "searchQueryTypeKey": "basic",
                    "description": "",
                    "searchQuery": "{ \"bool\": { \"must\" : [      __permissionPart__                    __facetsPart__                    __filterPart__                        {\"bool\" : {\"should\": [          {\"bool\": {\"boost\": 0.5,\"must\": [              { \"fuzzy\": { \"name.nameAnalyzed\": { \"value\": \"__searchTerm__\" } } } ] } },          {\"bool\": {\"boost\": 1.0,\"must\": [              {\"query_string\": {\"query\": \"__searchTermPrefix__\",\"fields\": [\"name\",\"name.trimmed\", \"name.notAnalyzed\", \"name.nameAnalyzed\", \"name.exactMatch\", \"nameWithNumbering.exactMatch\"], \"default_operator\": \"AND\" } } ] } },          {\"bool\": {\"boost\": 2.0,\"must\": [              {\"query_string\": {\"query\": \"__searchTerm__*\",\"fields\": [\"name.trimmed\", \"name.notAnalyzed\", \"nameWithNumbering.exactMatch\"], \"default_operator\": \"AND\" } } ] } },          {\"bool\": {\"boost\": 5.0,\"must\": [              {\"query_string\": {\"query\": \"__searchTerm__\",\"fields\": [\"name.keyword\", \"name.exactMatch\", \"nameWithNumbering.exactMatch\"], \"default_operator\": \"AND\" } } ] } },          {\"bool\" : {\"should\": [              {\"rank_feature\": {\"field\": \"boost\", \"boost\": 50.0 } },              {\"bool\": {\"must_not\": { \"exists\": { \"field\": \"boost\" } } } }          ] } }      ], \"minimum_should_match\": 2 } }  ] } }"
                },
                {
                    "key": "advanced",
                    "searchQueryTypeKey": "advanced",
                    "description": "",
                    "searchQuery": "{ \"bool\": { \"must\" : [     __permissionPart__                 __facetsPart__                 __filterPart__                    {\"bool\" : {\"should\": [         {\"bool\": {\"boost\": 0.5,\"must\": [             { \"fuzzy\": { \"name.nameAnalyzed\": { \"value\": \"__searchTerm__\" } } } ] } },         {\"bool\": {\"boost\": 1.0,\"must\": [             {\"query_string\": {\"query\": \"__searchTermPrefix__\",\"fields\": [\"name\",\"name.trimmed\", \"name.notAnalyzed\", \"name.nameAnalyzed\", \"name.exactMatch\", \"nameWithNumbering.exactMatch\"], \"default_operator\": \"AND\" } } ] } },         {\"bool\": {\"boost\": 2.0,\"must\": [             {\"query_string\": {\"query\": \"__searchTerm__*\",\"fields\": [\"name.trimmed\", \"name.notAnalyzed\", \"nameWithNumbering.exactMatch\"], \"default_operator\": \"AND\" } } ] } },         {\"bool\": {\"boost\": 5.0,\"must\": [             {\"query_string\": {\"query\": \"__searchTerm__\",\"fields\": [\"name.keyword\", \"name.exactMatch\", \"nameWithNumbering.exactMatch\"], \"default_operator\": \"AND\" } } ] } },         {\"bool\" : {\"should\": [             {\"rank_feature\": {\"field\": \"boost\", \"boost\": 50.0 } },             {\"bool\": {\"must_not\": { \"exists\": { \"field\": \"boost\" } } } }         ] } }     ], \"minimum_should_match\": 2 } } ] } }"
                }
            ],
            "searchIndexes": [
                {
                    "key": "search_index",
                    "indexName": "search_index"
                }
            ],
            "searchForms": [
                {
                    "key": "search_form",
                    "state": "hidden",
                    "searchIndexKey": "search_index",
                    "orderNumber": 3,
                    "iconKey": "core_default_search",
                    "searchQueryKeys": [
                        "empty",
                        "basic",
                        "advanced"
                    ],
                    "template": {
                        "formId": "search_form",
                        "title": "template.searchForm.recipe_catalog_search.title",
                        "defaultFacets": [
                            {
                                "type": "faceted-element",
                                "enumKeyType": "objectType",
                                "enumKey": "#_nameKey",
                                "title": "facet.object.objectTypeNameKey.name",
                                "elementType": "hidden",
                                "valueType": "isTranslationKey",
                                "orderBucketsType": "value",
                                "iconKey": "core_default_object_type",
                                "values": [
                                    "object.type.cust_recipe_metadata_app_recipe.name"
                                ]
                            },
                            {
                                "type": "faceted-element",
                                "enumKeyType": "userRelation",
                                "enumKey": "cust_recipe_metadata_app_recipe_owner",
                                "title": "facet.cust_recipe_metadata_app_recipe_owner",
                                "elementType": "selectBox",
                                "orderBucketsType": "value",
                                "valueType": "isText",
                                "iconKey": "core_job"
                            },
                            {
                                "type": "faceted-element",
                                "enumKeyType": "relation",
                                "enumKey": "cust_recipe_metadata_app_has_dietary_category",
                                "title": "facet.cust_recipe_metadata_app_has_dietary_category",
                                "elementType": "listedValues",
                                "valueType": "isText",
                                "orderBucketsType": "value",
                                "iconKey": "core_parameter"
                            },
                            {
                                "type": "faceted-element",
                                "enumKeyType": "attribute",
                                "enumKey": "core_description_scanned",
                                "title": "facet.core_description_scanned",
                                "elementType": "none",
                                "valueType": "isText",
                                "orderBucketsType": "value",
                                "iconKey": "core_measure"
                            }
                        ],
                        "sort": [
                            {
                                "key": "name",
                                "title": "search.sort.name",
                                "reverse": false
                            },
                            {
                                "key": "name",
                                "title": "search.sort.name_reversed",
                                "reverse": true
                            },
                            {
                                "key": "visited",
                                "title": "search.sort.most_popular",
                                "reverse": false
                            },
                            {
                                "key": "created",
                                "title": "search.sort.most_recent",
                                "reverse": false
                            },
                            {
                                "key": "modified",
                                "title": "search.sort.recently_modified",
                                "reverse": false
                            }
                        ]
                    }
                }
            ],
            "translations": [
                {
                    "key": "template.object.market.title",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Recipes Data Market"
                        }
                    ]
                },
                {
                    "key": "template.object.market.placeholder",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Search recipes..."
                        }
                    ]
                },
                {
                    "key": "template.recommendation-api-card.header",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Recommended Recipes"
                        }
                    ]
                },
                {
                    "key": "template.recommendation-api-card.claim",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Discover recipes recommended for you"
                        }
                    ]
                },
                {
                    "key": "no_data",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "No data available"
                        }
                    ]
                },
                {
                    "key": "template.object.api-card.header",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Search Results"
                        }
                    ]
                },
                {
                    "key": "template.object.api-card.no_data",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "No recipes found"
                        }
                    ]
                },
                {
                    "key": "template.searchForm.recipe_catalog_search.title",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Recipe Catalog Search"
                        }
                    ]
                },
                {
                    "key": "facet.object.objectTypeNameKey.name",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Object Type"
                        }
                    ]
                },
                {
                    "key": "facet.cust_recipe_metadata_app_recipe_owner",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Recipe Owner"
                        }
                    ]
                },
                {
                    "key": "facet.cust_recipe_metadata_app_has_dietary_category",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Dietary Category"
                        }
                    ]
                },
                {
                    "key": "facet.core_description_scanned",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Scanned Description"
                        }
                    ]
                },
                {
                    "key": "search.sort.name",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Name (A–Z)"
                        }
                    ]
                },
                {
                    "key": "search.sort.name_reversed",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Name (Z–A)"
                        }
                    ]
                },
                {
                    "key": "search.sort.most_popular",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Most Popular"
                        }
                    ]
                },
                {
                    "key": "search.sort.most_recent",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Most Recent"
                        }
                    ]
                },
                {
                    "key": "search.sort.recently_modified",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Recently Modified"
                        }
                    ]
                }
            ]
        }
    }
}