page_title | subcategory | description |
---|---|---|
epilot-schema_schema Resource - terraform-provider-epilot-schema |
Schema Resource |
Schema Resource
resource "epilot-schema_schema" "my_schema" {
attributes = "{ \"see\": \"documentation\" }"
blueprint = "908c64a5-6ec4-462f-bc04-47cf986dab4a"
capabilities = "{ \"see\": \"documentation\" }"
category = "customer_relations"
created_at = "...my_created_at..."
description = "Example description"
dialog_config = {
key = jsonencode("value"),
}
docs_url = "https://docs.epilot.io/docs/pricing/entities"
draft = false
enable_setting = [
"360_features"
]
explicit_search_mappings = {
fields = {
key = jsonencode("value"),
}
index = false
type = "flattened"
}
feature_flag = "FF_MY_FEATURE_FLAG"
group_headlines = "{ \"see\": \"documentation\" }"
group_settings = "{ \"see\": \"documentation\" }"
icon = "person"
id = "89868668-91fd-45da-ba4d-b78cf9b60131"
layout_settings = {
additional_properties = "{ \"see\": \"documentation\" }"
grid_gap = "...my_grid_gap..."
grid_template_columns = "...my_grid_template_columns..."
}
name = "Contact"
plural = "Contacts"
published = false
purpose = [
"..."
]
slug = "contact"
title_template = "{{first_name}} {{last_name}}"
ui_config = {
create_view = {
entity_default_create = {
search_params = {
key = "value",
}
view_type = "default"
}
entity_view_disabled = {
view_type = "disabled"
}
redirect_entity_view = {
route = "/app/pricing-hub/product/:entityId"
view_type = "redirect"
}
}
edit_view = {
entity_default_edit = {
search_params = {
key = "value",
}
summary_attributes = [
"email"
]
view_type = "default"
}
entity_view_disabled = {
view_type = "disabled"
}
redirect_entity_view = {
route = "/app/pricing-hub/product/:entityId"
view_type = "redirect"
}
}
list_item = {
quick_actions = [
{
action = "preview_file"
icon = "visibility"
label = "Preview File"
permission = "entity:edit"
}
]
summary_attributes = [
{
str = "email"
summary_attribute = {
content_line_cap = 1.23
content_wrap = "normal"
display_mode = "inline"
feature_flag = "...my_feature_flag..."
hide_label = true
highlight_container = true
label = "...my_label..."
render_condition = "...my_render_condition..."
settings_flag = [
{
enabled = true
name = "...my_name..."
}
]
show_as_tag = false
tag_color = "...my_tag_color..."
value = "...my_value..."
}
}
]
ui_config = {
content_direction = "row"
}
}
sharing = {
show_sharing_button = true
}
single_view = {
entity_default_edit = {
search_params = {
key = "value",
}
summary_attributes = [
"email"
]
view_type = "default"
}
entity_view_disabled = {
view_type = "disabled"
}
redirect_entity_view = {
route = "/app/pricing-hub/product/:entityId"
view_type = "redirect"
}
}
table_view = {
entity_default_table = {
bulk_actions = [
{
entity_action = {
action = "preview_file"
icon = "visibility"
label = "Preview File"
permission = "entity:edit"
}
str = "...my_str..."
}
]
enable_thumbnails = true
navbar_actions = [
{
options = [
{
label = "...my_label..."
params = {
# ...
}
}
]
type = "...my_type..."
}
]
row_actions = [
{
entity_action = {
action = "preview_file"
icon = "visibility"
label = "Preview File"
permission = "entity:edit"
}
str = "...my_str..."
}
]
view_type = "default"
}
entity_view_disabled = {
view_type = "disabled"
}
redirect_entity_view = {
route = "/app/pricing-hub/product/:entityId"
view_type = "redirect"
}
}
}
updated_at = "...my_updated_at..."
version = 2
}
attributes
(String) Parsed as JSON.capabilities
(String) Parsed as JSON.name
(String) User-friendly identifier for the entity schemaplural
(String)slug
(String) Entity Type
blueprint
(String) Reference to blueprintcategory
(String)created_at
(String)description
(String)dialog_config
(Map of String)docs_url
(String)draft
(Boolean) Default: falseenable_setting
(List of String) This schema should only be active when one of the organization settings is enabledexplicit_search_mappings
(Attributes Map) Advanced: explicit Elasticsearch index mapping definitions for entity data (see below for nested schema)feature_flag
(String) This schema should only be active when the feature flag is enabledgroup_headlines
(String) Parsed as JSON.group_settings
(String) Parsed as JSON.icon
(String)id
(String) Generated uuid for schemalayout_settings
(Attributes) Custom grid definitions for the layout. These settings are composed by managed and un-managed properties:- Managed Properties: are interpreted and transformed into layout styles
- Un-managed Properties: are appended as styles into the attribute mounting node (see below for nested schema)
published
(Boolean)purpose
(List of String)title_template
(String) Template for rendering the title field. Uses handlebarsui_config
(Attributes) (see below for nested schema)updated_at
(String)version
(Number)
Optional:
fields
(Map of String)index
(Boolean) Default: truetype
(String) must be one of ["keyword", "text", "boolean", "integer", "long", "float", "date", "flattened", "nested"]
Optional:
additional_properties
(String) Parsed as JSON.grid_gap
(String) Defines the grid gap for the mounting node of the attribute.grid_template_columns
(String) Defines the grid column template for the mounting node of the attribute.
Optional:
create_view
(Attributes) (see below for nested schema)edit_view
(Attributes) (see below for nested schema)list_item
(Attributes) (see below for nested schema)sharing
(Attributes) (see below for nested schema)single_view
(Attributes) (see below for nested schema)table_view
(Attributes) (see below for nested schema)
Optional:
entity_default_create
(Attributes) (see below for nested schema)entity_view_disabled
(Attributes) (see below for nested schema)redirect_entity_view
(Attributes) (see below for nested schema)
Optional:
search_params
(Map of String)view_type
(String) must be "default"
Optional:
view_type
(String) must be "disabled"
Optional:
route
(String)view_type
(String) must be "redirect"
Optional:
entity_default_edit
(Attributes) (see below for nested schema)entity_view_disabled
(Attributes) (see below for nested schema)redirect_entity_view
(Attributes) (see below for nested schema)
Optional:
search_params
(Map of String)summary_attributes
(List of String) List of attribute names that we show in the summary headerview_type
(String) must be "default"
Optional:
view_type
(String) must be "disabled"
Optional:
route
(String)view_type
(String) must be "redirect"
Optional:
quick_actions
(Attributes List) (see below for nested schema)summary_attributes
(Attributes List) (see below for nested schema)ui_config
(Attributes) (see below for nested schema)
Optional:
action
(String) A unique action name. Not Nullicon
(String)label
(String) Not Nullpermission
(String) Permission required to show the action. If not provided, the action will be shown to all users.
Optional:
str
(String)summary_attribute
(Attributes) Represents an expanded version of an attribute to be displayed in the list item summary. This configuration can be used in the following way:
{
"label": "Price components"
"value": "{{"{{"}}item.prices.length{{"}}"}} price components"
"show_as_tag": true
"render_condition": "is_composite_price = "true""
}
The value field supports handlebar expressions from which you can pick any field from the entity state. (see below for nested schema)
Optional:
content_line_cap
(Number) Defines the line numbers of the content. For instance, When set to 1, the content will be displayed in a single line.content_wrap
(String) Defines white-space of the content. must be one of ["normal", "nowrap", "pre", "pre-wrap"]display_mode
(String) Defines the display mode of the summary attribute. When set toinline
, the label and value will be displayed in the same line. When set toblock
, the label and value will be displayed in separate lines. must be one of ["inline", "block"]feature_flag
(String) Binds summary field visibility to the feature flag state.hide_label
(Boolean) When set to true, will hide the label of the field.highlight_container
(Boolean) When set to true, will highlight the container of the field.label
(String) Label to be shown on the top of the value. Not Nullrender_condition
(String) Defines the conditional rendering expression for showing this field. When a valid expression is parsed, their evaluation defines the visibility of this attribute. Note: Empty or invalid expression have no effect on the field visibility.settings_flag
(Attributes List) This summary attribute should only be visible when all the settings have the correct value (see below for nested schema)show_as_tag
(Boolean) Displays the value within a tag chip.tag_color
(String) CSS hex color or CSS color name for the tag chip.value
(String) A static value or an handlebar expression. Not Null
Optional:
enabled
(Boolean) Whether the setting should be enabled or notname
(String) The name of the organization setting to check
Optional:
content_direction
(String) Show attributes in a row or column. must be one of ["row", "column"]
Optional:
show_sharing_button
(Boolean) Show the sharing button in entity detail view
Optional:
entity_default_edit
(Attributes) (see below for nested schema)entity_view_disabled
(Attributes) (see below for nested schema)redirect_entity_view
(Attributes) (see below for nested schema)
Optional:
search_params
(Map of String)summary_attributes
(List of String) List of attribute names that we show in the summary headerview_type
(String) must be "default"
Optional:
view_type
(String) must be "disabled"
Optional:
route
(String)view_type
(String) must be "redirect"
Optional:
entity_default_table
(Attributes) (see below for nested schema)entity_view_disabled
(Attributes) (see below for nested schema)redirect_entity_view
(Attributes) (see below for nested schema)
Optional:
bulk_actions
(Attributes List) (see below for nested schema)enable_thumbnails
(Boolean) Enable the thumbnail column. Default: falsenavbar_actions
(Attributes List) (see below for nested schema)row_actions
(Attributes List) (see below for nested schema)view_type
(String) must be "default"
Optional:
entity_action
(Attributes) An entity action configured from the entity schema (see below for nested schema)str
(String)
Optional:
action
(String) A unique action name. Not Nullicon
(String)label
(String) Not Nullpermission
(String) Permission required to show the action. If not provided, the action will be shown to all users.
Optional:
options
(Attributes List) (see below for nested schema)type
(String) Not Null
Optional:
label
(String) Not Nullparams
(Attributes) (see below for nested schema)
Optional:
entity_action
(Attributes) An entity action configured from the entity schema (see below for nested schema)str
(String)
Optional:
action
(String) A unique action name. Not Nullicon
(String)label
(String) Not Nullpermission
(String) Permission required to show the action. If not provided, the action will be shown to all users.
Optional:
view_type
(String) must be "disabled"
Optional:
route
(String)view_type
(String) must be "redirect"
Import is supported using the following syntax:
terraform import epilot-schema_schema.my_epilot-schema_schema "contact"