@cyberismo/assets 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +100 -98
- package/package.json +1 -1
- package/src/calculations/common/queryLanguage.lp +66 -11
- package/src/calculations/common/utils.lp +23 -48
- package/src/calculations/queries/card.lp +28 -46
- package/src/schema/cardsConfigSchema.json +3 -3
- package/src/schema/resources/fieldTypeSchema.json +2 -1
- package/src/schema/resources/linkTypeSchema.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e={title:"Card",$id:"cardBaseSchema",description:"Cards represent different types of tickets, issues and documents. All cards must be valid against this parent schema.",type:"object",additionalProperties:!0,properties:{cardType:{type:"string",minLength:1,description:"The name of the card type",pattern:"^[A-Za-z]*/?[A-Za-z]*/?[A-Za-z-_]+$"},title:{type:"string",minLength:1,description:"A short title of the card"},workflowState:{type:"string",description:"the name of the card's current state in the workflow"},rank:{type:"string",description:"The rank of the card in relative to its siblings"},lastTransitioned:{type:"string",format:"date-time",description:"The date and time of the last transition of the card"},lastUpdated:{type:"string",format:"date-time",description:"The date and time of the last update of the card"},labels:{type:"array",description:"Labels or tags that can be used for organising cards",items:{type:"string",minLength:1}},links:{type:"array",description:"links to or from this card to other cards",items:{type:"object",properties:{cardKey:{type:"string",minLength:3,maxLength:20,pattern:"^[a-z]+_[0-9a-z]+$"},linkType:{description:"The name of the link type. For example, 'base/linkTypes/causes'",type:"string"},linkDescription:{type:"string",description:"A description of the link"}},required:["cardKey","linkType"],additionalProperties:!1}},templateCardKey:{type:"string",description:"Card key from which this card has been instantiated"}},required:["title","cardType","workflowState","rank"]};var t={title:"CardsConfig",$id:"cardsConfigSchema",description:"General configuration settings for the card tree.",type:"object",additionalProperties:!1,properties:{cardKeyPrefix:{type:"string",description:"The prefix or the fist component of the card key. For example, ABC",pattern:"^[a-z]+$",minLength:3,maxLength:10},name:{description:"Name of the project",type:"string",minLength:1,pattern:"^[A-Za-z ._-]+$"},modules:{description:"List of modules that have been included in the project",type:"array",items:{type:"object",properties:{name:{description:"Module name (project prefix). Must be unique.",type:"string"},location:{description:"URI that is either a git URL with HTTPS, or relative file reference",type:"string"},branch:{description:"If using git URL in 'location' defines git branch. If empty, assumed to be 'main'. ",type:"string"},private:{description:"If true, the module is private and requires credentials (CYBERISMO_GIT_USER / CYBERISMO_GIT_TOKEN)",type:"boolean"}},required:["name","location"]}}},required:["cardKeyPrefix"]};var i={title:"Cardtype",$id:"cardTypeSchema",description:"Card type defines the workflow and optional additional fields for the cards.",type:"object",additionalProperties:!1,properties:{name:{description:"The name of the card type",type:"string",minLength:1,pattern:"^[A-Za-z0-9]*/?[A-Za-z]*/?[A-Za-z-_]+[.json]*$"},description:{description:"A description that describes the card type",type:"string"},displayName:{description:"A name by which the card type is referred to in the user interface",type:"string"},workflow:{description:"The name of the workflow",type:"string",minLength:1,pattern:"^[A-Za-z0-9]*/?[A-Za-z0-9]*/?[A-Za-z-_]+[.json]*$"},customFields:{type:"array",items:{type:"object",additionalProperties:!1,properties:{name:{description:"The technical name by which the field is referred to in JSON files.",type:"string"},displayName:{description:"A name by which the field is referred to in the user interface.",type:"string"},isCalculated:{description:"Defines if field value is a calculated field.",type:"boolean",default:!0}},required:["name"]}},alwaysVisibleFields:{type:"array",items:{type:"string"}},optionallyVisibleFields:{type:"array",items:{type:"string"}}},required:["displayName","name","workflow"]};var n={type:"object",$id:"createCardsMacroSchema",properties:{buttonLabel:{type:"string",description:"The label of the button to create from this template. For example, 'Create a New Decision'."},template:{type:"string",description:"The name of the template"},cardKey:{type:"string",description:"The card key of the parent under which the template should be instantiated. If not given, the template will be instantiated under the card that includes this macro."},link:{type:"object",properties:{linkType:{type:"string",description:"Name of the link type to create"},direction:{type:"string",description:"Direction of the link. Can be 'inbound' or 'outbound'."},cardKey:{type:"string",description:"Either the source of an inbound link or the target of an outbound link"}},additionalProperties:!1,required:["linkType","direction","cardKey"]}},additionalProperties:!1,required:["buttonLabel","template"]};var a={title:"Csv content",$id:"csvSchema",description:"Contains the content of a CSV file as an array of objects. Each object represents a row in the CSV file.",type:"array",items:{type:"object",additionalProperties:!0,properties:{title:{type:"string",minLength:1,description:"The title of the card"},template:{type:"string",minLength:1,description:"the name of the template for creating the card. Notice that the template must have exactly one card"},description:{type:"string",description:"The AsciiDoc contents of the card"},labels:{type:"string"}},required:["title","template"]}};var o={title:"Dot Schema",$id:"dotSchema",description:"Schema of the .schema ",type:"array",items:{type:"object",additionalProperties:!1,properties:{version:{description:"Version of the schema",type:"number"},file:{description:"File that is being validated. If empty, validates all json using the schema in the directory.",type:"string"},id:{description:"Id of the schema that is used to validate the given file",type:"string"}},required:["version","id"]}};var r={title:"FieldType",$id:"fieldTypeSchema",description:"Field type defines the workflow and optional additional fields for the cards.",type:"object",additionalProperties:!1,properties:{name:{type:"string",description:"The technical name by which the field is referred to in JSON files."},displayName:{type:"string",description:"A name by which the field is referred to in the user interface."},description:{type:"string",description:"A description that describes the field type"},dataType:{type:"string",description:"",pattern:"^shortText$|^longText$|^number$|^integer$|^boolean$|^enum$|^list$|^date$|^dateTime$|^person$"},enumValues:{description:"An array of available enum values. Used for the enum fieldType only.",type:"array",items:{type:"object",additionalProperties:!1,properties:{enumValue:{type:"string"},enumDisplayValue:{type:"string"},enumDescription:{type:"string"}},required:["enumValue"]}}},required:["displayName","name","dataType"]};var s={title:"Graph",$id:"graphMacroBaseSchema",description:"A graph object provides supplemental information about a graph",type:"object",properties:{model:{description:"Model",type:"string"},view:{description:"View",type:"string"}},required:["model","view"]};var l={title:"GraphModel",$id:"graphModelSchema",description:"A graph model object provides data for graph views",type:"object",properties:{name:{description:"The name of this graph model",type:"string",minLength:1,pattern:"^[A-Za-z0-9/._-]+$"},displayName:{description:"The name of the graph model as it should be displayed in the user interface. For example, 'Workflow data'.",type:"string"},description:{description:"A description of the graph model. For example, 'Workflow data defines necessary data elements to show workflow graphically.'.",type:"string"},category:{description:"The category of the graph model. For example, 'UserModels'.",type:"string"}},required:["displayName","name","displayName"],additionalProperties:!1};var d={title:"GraphView",$id:"graphViewSchema",description:"A graph view object provides means to show graph model data to users",type:"object",properties:{name:{description:"The name of this graph view",type:"string",minLength:1,pattern:"^[A-Za-z0-9/._-]+$"},displayName:{description:"The name of the graph view as it should be displayed in the user interface. For example, 'Workflow view'.",type:"string"},description:{description:"A description of the graph view. For example, 'Workflow view defines ways how to show workflow data to the user'.",type:"string"},category:{description:"The category of the graph view. For example, 'UserViews'.",type:"string"}},required:["displayName","name","displayName"],additionalProperties:!1};var f={type:"object",$id:"imageMacroSchema",properties:{fileName:{type:"string",description:"The filename of the image attachment to display"},cardKey:{type:"string",description:"The key of the card containing the image attachment. If not specified, uses the current card"},alt:{type:"string",description:"Alternative text for the image"},title:{type:"string",description:"Title attribute for the image"}},additionalProperties:!1,required:["fileName"]};var p={type:"object",$id:"includeMacroSchema",properties:{cardKey:{type:"string",description:"The key of the card to include content from"},levelOffset:{type:"string",description:"Optional offset to adjust the heading levels of the included content. Should be a number as string (e.g., '+1', '+2' or '-1')."},title:{type:"enum",description:"Whether to include the title of the card in the included content. If 'only' is selected, the title will be the only content included.",enum:["include","exclude","only"]},pageTitles:{type:"enum",description:"If discrete, page titles will be included as discrete headings(read asciidoctor docs for more info). If normal, page titles will be included as normal headings.",enum:["normal","discrete"]}},additionalProperties:!1,required:["cardKey"]};var c={title:"LinkType",$id:"linkTypeSchema",description:"Link types defined different ways to link cards together.",type:"object",additionalProperties:!1,properties:{description:{description:"A description that describes the link type",type:"string"},displayName:{description:"A name by which the link type is referred to in the user interface",type:"string"},name:{type:"string",description:"The technical name by which the field is referred to in JSON files."},outboundDisplayName:{type:"string",description:"A name by which the field is referred to in the user interface(from-to)."},inboundDisplayName:{type:"string",description:"A name by which the field is referred to in the user interface(to-from)."},sourceCardTypes:{type:"array",description:"The card types that can be the source of this link type. If empty, all card types are allowed.",items:{type:"string"}},destinationCardTypes:{type:"array",description:"The card types that can be the target of this link type. If empty, all card types are allowed.",items:{type:"string"}},enableLinkDescription:{type:"boolean",description:"If true, the user can add a description to the link."}},required:["displayName","name","outboundDisplayName","inboundDisplayName","sourceCardTypes","destinationCardTypes","enableLinkDescription"]};var h={type:"object",$id:"percentageMacroSchema",properties:{title:{type:"string",description:"Title text on top of the widget"},value:{type:"number",description:"Percentage value (0-100)"},legend:{type:"string",description:"Description text shown below the value"},colour:{type:"string",enum:["blue","green","yellow","red","orange","purple"],description:"Colour of the progress arc (optional)"}},additionalProperties:!1,required:["title","value","legend"]};var u={title:"Report",$id:"reportMacroBaseSchema",description:"A report object provides supplemental information about a report",type:"object",properties:{name:{description:"The name of the report",type:"string"}},required:["name"]};var g={title:"Report",$id:"reportSchema",description:"A report object provides supplemental information about a report",type:"object",properties:{name:{description:"The name of this report",type:"string",minLength:1,pattern:"^[A-Za-z0-9/._-]+$"},displayName:{description:"The name of the report as it should be displayed in the user interface. For example, 'Children list'.",type:"string"},description:{description:"A description of the report. For example, 'A Children list shows the child cards as an unordered list.'.",type:"string"},category:{description:"The category of the report. For example, 'Architecture'.",type:"string"}},required:["name","displayName","category"],additionalProperties:!1};var m={$schema:"http://json-schema.org/draft-07/schema#",$id:"jsonSchema",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var y={type:"object",$id:"scoreCardMacroSchema",properties:{title:{type:"string",description:"Title text on top of the card (optional)"},value:{type:"number",description:"Value shown as content of the card"},unit:{type:"string",description:"Unit shown after the value (optional)"},legend:{type:"string",description:"Description text shown below the value (optional)"}},additionalProperties:!1,required:["value"]};var b={title:"Template",$id:"templateSchema",description:"A template object provides supplemental information about a template directory structure ",type:"object",additionalProperties:!1,properties:{name:{description:"The name of this template",type:"string",minLength:1,pattern:"^[A-Za-z0-9/._-]+$"},displayName:{description:"The name of the template as it should be displayed in the user interface. For example, 'Decision'.",type:"string"},description:{description:"A description of the template. For example, 'A decision is a choice between two or more options.'.",type:"string"},category:{description:"The category of the template. For example, 'Decision'.",type:"string"}},required:["displayName","name"]};var v={$id:"vegaLiteMacroSchema",type:"object",properties:{spec:{$ref:"#/definitions/TopLevelSpec"}},$schema:"http://json-schema.org/draft-07/schema#",required:["spec"],definitions:{Aggregate:{anyOf:[{$ref:"#/definitions/NonArgAggregateOp"},{$ref:"#/definitions/ArgmaxDef"},{$ref:"#/definitions/ArgminDef"}]},AggregateOp:{enum:["argmax","argmin","average","count","distinct","max","mean","median","min","missing","product","q1","q3","ci0","ci1","stderr","stdev","stdevp","sum","valid","values","variance","variancep","exponential","exponentialb"],type:"string"},AggregateTransform:{additionalProperties:!1,properties:{aggregate:{description:"Array of objects that define fields to aggregate.",items:{$ref:"#/definitions/AggregatedFieldDef"},type:"array"},groupby:{description:"The data fields to group by. If not specified, a single group containing all data objects will be used.",items:{$ref:"#/definitions/FieldName"},type:"array"}},required:["aggregate"],type:"object"},AggregatedFieldDef:{additionalProperties:!1,properties:{as:{$ref:"#/definitions/FieldName",description:"The output field names to use for each aggregated field."},field:{$ref:"#/definitions/FieldName",description:'The data field for which to compute aggregate function. This is required for all aggregation operations except `"count"`.'},op:{$ref:"#/definitions/AggregateOp",description:'The aggregation operation to apply to the fields (e.g., `"sum"`, `"average"`, or `"count"`). See the [full list of supported aggregation operations](https://vega.github.io/vega-lite/docs/aggregate.html#ops) for more information.'}},required:["op","as"],type:"object"},Align:{enum:["left","center","right"],type:"string"},AllSortString:{anyOf:[{$ref:"#/definitions/SortOrder"},{$ref:"#/definitions/SortByChannel"},{$ref:"#/definitions/SortByChannelDesc"}]},AnyMark:{anyOf:[{$ref:"#/definitions/CompositeMark"},{$ref:"#/definitions/CompositeMarkDef"},{$ref:"#/definitions/Mark"},{$ref:"#/definitions/MarkDef"}]},AnyMarkConfig:{anyOf:[{$ref:"#/definitions/MarkConfig"},{$ref:"#/definitions/AreaConfig"},{$ref:"#/definitions/BarConfig"},{$ref:"#/definitions/RectConfig"},{$ref:"#/definitions/LineConfig"},{$ref:"#/definitions/TickConfig"}]},AreaConfig:{additionalProperties:!1,properties:{align:{anyOf:[{$ref:"#/definitions/Align"},{$ref:"#/definitions/ExprRef"}],description:'The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of `"left"`, `"right"`, `"center"`.\n\n__Note:__ Expression reference is *not* supported for range marks.'},angle:{anyOf:[{description:"The rotation angle of the text, in degrees.",maximum:360,minimum:0,type:"number"},{$ref:"#/definitions/ExprRef"}]},aria:{anyOf:[{description:'A boolean flag indicating if [ARIA attributes](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) should be included (SVG output only). If `false`, the "aria-hidden" attribute will be set on the output SVG element, removing the mark item from the ARIA accessibility tree.',type:"boolean"},{$ref:"#/definitions/ExprRef"}]},ariaRole:{anyOf:[{description:'Sets the type of user interface element of the mark item for [ARIA accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) (SVG output only). If specified, this property determines the "role" attribute. Warning: this property is experimental and may be changed in the future.',type:"string"},{$ref:"#/definitions/ExprRef"}]},ariaRoleDescription:{anyOf:[{description:'A human-readable, author-localized description for the role of the mark item for [ARIA accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) (SVG output only). If specified, this property determines the "aria-roledescription" attribute. Warning: this property is experimental and may be changed in the future.',type:"string"},{$ref:"#/definitions/ExprRef"}]},aspect:{anyOf:[{description:"Whether to keep aspect ratio of image marks.",type:"boolean"},{$ref:"#/definitions/ExprRef"}]},baseline:{anyOf:[{$ref:"#/definitions/TextBaseline"},{$ref:"#/definitions/ExprRef"}],description:'For text marks, the vertical text baseline. One of `"alphabetic"` (default), `"top"`, `"middle"`, `"bottom"`, `"line-top"`, `"line-bottom"`, or an expression reference that provides one of the valid values. The `"line-top"` and `"line-bottom"` values operate similarly to `"top"` and `"bottom"`, but are calculated relative to the `lineHeight` rather than `fontSize` alone.\n\nFor range marks, the vertical alignment of the marks. One of `"top"`, `"middle"`, `"bottom"`.\n\n__Note:__ Expression reference is *not* supported for range marks.'},blend:{anyOf:[{$ref:"#/definitions/Blend",description:'The color blend mode for drawing an item on its current background. Any valid [CSS mix-blend-mode](https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode) value can be used.\n\n__Default value: `"source-over"`'},{$ref:"#/definitions/ExprRef"}]},color:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/Gradient"},{$ref:"#/definitions/ExprRef"}],description:'Default color.\n\n__Default value:__ <span style="color: #4682b4;">■</span> `"#4682b4"`\n\n__Note:__\n- This property cannot be used in a [style config](https://vega.github.io/vega-lite/docs/mark.html#style-config).\n- The `fill` and `stroke` properties have higher precedence than `color` and will override `color`.'},cornerRadius:{anyOf:[{description:"The radius in pixels of rounded rectangles or arcs' corners.\n\n__Default value:__ `0`",type:"number"},{$ref:"#/definitions/ExprRef"}]},cornerRadiusBottomLeft:{anyOf:[{description:"The radius in pixels of rounded rectangles' bottom left corner.\n\n__Default value:__ `0`",type:"number"},{$ref:"#/definitions/ExprRef"}]},cornerRadiusBottomRight:{anyOf:[{description:"The radius in pixels of rounded rectangles' bottom right corner.\n\n__Default value:__ `0`",type:"number"},{$ref:"#/definitions/ExprRef"}]},cornerRadiusTopLeft:{anyOf:[{description:"The radius in pixels of rounded rectangles' top right corner.\n\n__Default value:__ `0`",type:"number"},{$ref:"#/definitions/ExprRef"}]},cornerRadiusTopRight:{anyOf:[{description:"The radius in pixels of rounded rectangles' top left corner.\n\n__Default value:__ `0`",type:"number"},{$ref:"#/definitions/ExprRef"}]},cursor:{anyOf:[{$ref:"#/definitions/Cursor",description:"The mouse cursor used over the mark. Any valid [CSS cursor type](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#Values) can be used."},{$ref:"#/definitions/ExprRef"}]},description:{anyOf:[{description:'A text description of the mark item for [ARIA accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) (SVG output only). If specified, this property determines the ["aria-label" attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute).',type:"string"},{$ref:"#/definitions/ExprRef"}]},dir:{anyOf:[{$ref:"#/definitions/TextDirection",description:'The direction of the text. One of `"ltr"` (left-to-right) or `"rtl"` (right-to-left). This property determines on which side is truncated in response to the limit parameter.\n\n__Default value:__ `"ltr"`'},{$ref:"#/definitions/ExprRef"}]},dx:{anyOf:[{description:"The horizontal offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the _angle_ property.",type:"number"},{$ref:"#/definitions/ExprRef"}]},dy:{anyOf:[{description:"The vertical offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the _angle_ property.",type:"number"},{$ref:"#/definitions/ExprRef"}]},ellipsis:{anyOf:[{description:'The ellipsis string for text truncated in response to the limit parameter.\n\n__Default value:__ `"\u2026"`',type:"string"},{$ref:"#/definitions/ExprRef"}]},endAngle:{anyOf:[{description:"The end angle in radians for arc marks. A value of `0` indicates up (north), increasing values proceed clockwise.",type:"number"},{$ref:"#/definitions/ExprRef"}]},fill:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/Gradient"},{type:"null"},{$ref:"#/definitions/ExprRef"}],description:"Default fill color. This property has higher precedence than `config.color`. Set to `null` to remove fill.\n\n__Default value:__ (None)"},fillOpacity:{anyOf:[{description:"The fill opacity (value between [0,1]).\n\n__Default value:__ `1`",maximum:1,minimum:0,type:"number"},{$ref:"#/definitions/ExprRef"}]},filled:{description:"Whether the mark's color should be used as fill color instead of stroke color.\n\n__Default value:__ `false` for all `point`, `line`, and `rule` marks as well as `geoshape` marks for [`graticule`](https://vega.github.io/vega-lite/docs/data.html#graticule) data sources; otherwise, `true`.\n\n__Note:__ This property cannot be used in a [style config](https://vega.github.io/vega-lite/docs/mark.html#style-config).",type:"boolean"},font:{anyOf:[{description:'The typeface to set the text in (e.g., `"Helvetica Neue"`).',type:"string"},{$ref:"#/definitions/ExprRef"}]},fontSize:{anyOf:[{description:"The font size, in pixels.\n\n__Default value:__ `11`",minimum:0,type:"number"},{$ref:"#/definitions/ExprRef"}]},fontStyle:{anyOf:[{$ref:"#/definitions/FontStyle",description:'The font style (e.g., `"italic"`).'},{$ref:"#/definitions/ExprRef"}]},fontWeight:{anyOf:[{$ref:"#/definitions/FontWeight",description:'The font weight. This can be either a string (e.g `"bold"`, `"normal"`) or a number (`100`, `200`, `300`, ..., `900` where `"normal"` = `400` and `"bold"` = `700`).'},{$ref:"#/definitions/ExprRef"}]},height:{anyOf:[{description:"Height of the marks.",type:"number"},{$ref:"#/definitions/ExprRef"}]},href:{anyOf:[{$ref:"#/definitions/URI",description:"A URL to load upon mouse click. If defined, the mark acts as a hyperlink."},{$ref:"#/definitions/ExprRef"}]},innerRadius:{anyOf:[{type:"number"},{$ref:"#/definitions/ExprRef"}],description:"The inner radius in pixels of arc marks. `innerRadius` is an alias for `radius2`.\n\n__Default value:__ `0`",minimum:0},interpolate:{anyOf:[{$ref:"#/definitions/Interpolate",description:'The line interpolation method to use for line and area marks. One of the following:\n- `"linear"`: piecewise linear segments, as in a polyline.\n- `"linear-closed"`: close the linear segments to form a polygon.\n- `"step"`: alternate between horizontal and vertical segments, as in a step function.\n- `"step-before"`: alternate between vertical and horizontal segments, as in a step function.\n- `"step-after"`: alternate between horizontal and vertical segments, as in a step function.\n- `"basis"`: a B-spline, with control point duplication on the ends.\n- `"basis-open"`: an open B-spline; may not intersect the start or end.\n- `"basis-closed"`: a closed B-spline, as in a loop.\n- `"cardinal"`: a Cardinal spline, with control point duplication on the ends.\n- `"cardinal-open"`: an open Cardinal spline; may not intersect the start or end, but will intersect other control points.\n- `"cardinal-closed"`: a closed Cardinal spline, as in a loop.\n- `"bundle"`: equivalent to basis, except the tension parameter is used to straighten the spline.\n- `"monotone"`: cubic interpolation that preserves monotonicity in y.'},{$ref:"#/definitions/ExprRef"}]},invalid:{anyOf:[{$ref:"#/definitions/MarkInvalidDataMode"},{type:"null"}],description:'Invalid data mode, which defines how the marks and corresponding scales should represent invalid values (`null` and `NaN` in continuous scales *without* defined output for invalid values).\n\n- `"filter"` \u2014 *Exclude* all invalid values from the visualization\'s *marks* and *scales*. For path marks (for line, area, trail), this option will create paths that connect valid points, as if the data rows with invalid values do not exist.\n\n- `"break-paths-filter-domains"` \u2014 Break path marks (for line, area, trail) at invalid values. For non-path marks, this is equivalent to `"filter"`. All *scale* domains will *exclude* these filtered data points.\n\n- `"break-paths-show-domains"` \u2014 Break paths (for line, area, trail) at invalid values. Hide invalid values for non-path marks. All *scale* domains will *include* these filtered data points (for both path and non-path marks).\n\n- `"show"` or `null` \u2014 Show all data points in the marks and scale domains. Each scale will use the output for invalid values defined in `config.scale.invalid` or, if unspecified, by default invalid values will produce the same visual values as zero (if the scale includes zero) or the minimum value (if the scale does not include zero).\n\n- `"break-paths-show-path-domains"` (default) \u2014 This is equivalent to `"break-paths-show-domains"` for path-based marks (line/area/trail) and `"filter"` for non-path marks.\n\n__Note__: If any channel\'s scale has an output for invalid values defined in `config.scale.invalid`, all values for the scales will be considered "valid" since they can produce a reasonable output for the scales. Thus, fields for such channels will not be filtered and will not cause path breaks.'},limit:{anyOf:[{description:"The maximum length of the text mark in pixels. The text value will be automatically truncated if the rendered size exceeds the limit.\n\n__Default value:__ `0` -- indicating no limit",type:"number"},{$ref:"#/definitions/ExprRef"}]},line:{anyOf:[{type:"boolean"},{$ref:"#/definitions/OverlayMarkDef"}],description:"A flag for overlaying line on top of area marks, or an object defining the properties of the overlayed lines.\n\n- If this value is an empty object (`{}`) or `true`, lines with default properties will be used.\n\n- If this value is `false`, no lines would be automatically added to area marks.\n\n__Default value:__ `false`."},lineBreak:{anyOf:[{description:"A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property is ignored if the text is array-valued.",type:"string"},{$ref:"#/definitions/ExprRef"}]},lineHeight:{anyOf:[{description:"The line height in pixels (the spacing between subsequent lines of text) for multi-line text marks.",type:"number"},{$ref:"#/definitions/ExprRef"}]},opacity:{anyOf:[{type:"number"},{$ref:"#/definitions/ExprRef"}],description:"The overall opacity (value between [0,1]).\n\n__Default value:__ `0.7` for non-aggregate plots with `point`, `tick`, `circle`, or `square` marks or layered `bar` charts and `1` otherwise.",maximum:1,minimum:0},order:{description:"For line and trail marks, this `order` property can be set to `null` or `false` to make the lines use the original order in the data sources.",type:["null","boolean"]},orient:{$ref:"#/definitions/Orientation",description:`The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical.
|
|
1
|
+
var e={title:"Card",$id:"cardBaseSchema",description:"Cards represent different types of tickets, issues and documents. All cards must be valid against this parent schema.",type:"object",additionalProperties:!0,properties:{cardType:{type:"string",minLength:1,description:"The name of the card type",pattern:"^[A-Za-z]*/?[A-Za-z]*/?[A-Za-z-_]+$"},title:{type:"string",minLength:1,description:"A short title of the card"},workflowState:{type:"string",description:"the name of the card's current state in the workflow"},rank:{type:"string",description:"The rank of the card in relative to its siblings"},lastTransitioned:{type:"string",format:"date-time",description:"The date and time of the last transition of the card"},lastUpdated:{type:"string",format:"date-time",description:"The date and time of the last update of the card"},labels:{type:"array",description:"Labels or tags that can be used for organising cards",items:{type:"string",minLength:1}},links:{type:"array",description:"links to or from this card to other cards",items:{type:"object",properties:{cardKey:{type:"string",minLength:3,maxLength:20,pattern:"^[a-z]+_[0-9a-z]+$"},linkType:{description:"The name of the link type. For example, 'base/linkTypes/causes'",type:"string"},linkDescription:{type:"string",description:"A description of the link"}},required:["cardKey","linkType"],additionalProperties:!1}},templateCardKey:{type:"string",description:"Card key from which this card has been instantiated"}},required:["title","cardType","workflowState","rank"]};var t={title:"CardsConfig",$id:"cardsConfigSchema",description:"General configuration settings for the card tree.",type:"object",additionalProperties:!1,properties:{cardKeyPrefix:{type:"string",description:"The prefix or the fist component of the card key. For example, ABC",pattern:"^[a-z]+$",minLength:3,maxLength:10},name:{description:"Name of the project",type:"string",minLength:1,pattern:"^[A-Za-z ._-]+$"},modules:{description:"List of modules that have been included in the project",type:"array",items:{type:"object",properties:{name:{description:"Module name (project prefix). Must be unique.",type:"string"},location:{description:"Git remote URL, or relative file reference.",type:"string"},branch:{description:"If using git remote URL in 'location' defines git branch. If empty, uses repository default branch'.",type:"string"},private:{description:"If true, the module is private and requires credentials (CYBERISMO_GIT_USER / CYBERISMO_GIT_TOKEN) or SSH. Does not apply for local file modules.",type:"boolean"}},required:["name","location"]}}},required:["cardKeyPrefix"]};var i={title:"Cardtype",$id:"cardTypeSchema",description:"Card type defines the workflow and optional additional fields for the cards.",type:"object",additionalProperties:!1,properties:{name:{description:"The name of the card type",type:"string",minLength:1,pattern:"^[A-Za-z0-9]*/?[A-Za-z]*/?[A-Za-z-_]+[.json]*$"},description:{description:"A description that describes the card type",type:"string"},displayName:{description:"A name by which the card type is referred to in the user interface",type:"string"},workflow:{description:"The name of the workflow",type:"string",minLength:1,pattern:"^[A-Za-z0-9]*/?[A-Za-z0-9]*/?[A-Za-z-_]+[.json]*$"},customFields:{type:"array",items:{type:"object",additionalProperties:!1,properties:{name:{description:"The technical name by which the field is referred to in JSON files.",type:"string"},displayName:{description:"A name by which the field is referred to in the user interface.",type:"string"},isCalculated:{description:"Defines if field value is a calculated field.",type:"boolean",default:!0}},required:["name"]}},alwaysVisibleFields:{type:"array",items:{type:"string"}},optionallyVisibleFields:{type:"array",items:{type:"string"}}},required:["displayName","name","workflow"]};var n={type:"object",$id:"createCardsMacroSchema",properties:{buttonLabel:{type:"string",description:"The label of the button to create from this template. For example, 'Create a New Decision'."},template:{type:"string",description:"The name of the template"},cardKey:{type:"string",description:"The card key of the parent under which the template should be instantiated. If not given, the template will be instantiated under the card that includes this macro."},link:{type:"object",properties:{linkType:{type:"string",description:"Name of the link type to create"},direction:{type:"string",description:"Direction of the link. Can be 'inbound' or 'outbound'."},cardKey:{type:"string",description:"Either the source of an inbound link or the target of an outbound link"}},additionalProperties:!1,required:["linkType","direction","cardKey"]}},additionalProperties:!1,required:["buttonLabel","template"]};var a={title:"Csv content",$id:"csvSchema",description:"Contains the content of a CSV file as an array of objects. Each object represents a row in the CSV file.",type:"array",items:{type:"object",additionalProperties:!0,properties:{title:{type:"string",minLength:1,description:"The title of the card"},template:{type:"string",minLength:1,description:"the name of the template for creating the card. Notice that the template must have exactly one card"},description:{type:"string",description:"The AsciiDoc contents of the card"},labels:{type:"string"}},required:["title","template"]}};var o={title:"Dot Schema",$id:"dotSchema",description:"Schema of the .schema ",type:"array",items:{type:"object",additionalProperties:!1,properties:{version:{description:"Version of the schema",type:"number"},file:{description:"File that is being validated. If empty, validates all json using the schema in the directory.",type:"string"},id:{description:"Id of the schema that is used to validate the given file",type:"string"}},required:["version","id"]}};var r={title:"FieldType",$id:"fieldTypeSchema",description:"Field type defines the workflow and optional additional fields for the cards.",type:"object",additionalProperties:!1,properties:{name:{type:"string",description:"The technical name by which the field is referred to in JSON files.",pattern:"^[A-Za-z0-9/._-]+$"},displayName:{type:"string",description:"A name by which the field is referred to in the user interface."},description:{type:"string",description:"A description that describes the field type"},dataType:{type:"string",description:"",pattern:"^shortText$|^longText$|^number$|^integer$|^boolean$|^enum$|^list$|^date$|^dateTime$|^person$"},enumValues:{description:"An array of available enum values. Used for the enum fieldType only.",type:"array",items:{type:"object",additionalProperties:!1,properties:{enumValue:{type:"string"},enumDisplayValue:{type:"string"},enumDescription:{type:"string"}},required:["enumValue"]}}},required:["displayName","name","dataType"]};var s={title:"Graph",$id:"graphMacroBaseSchema",description:"A graph object provides supplemental information about a graph",type:"object",properties:{model:{description:"Model",type:"string"},view:{description:"View",type:"string"}},required:["model","view"]};var l={title:"GraphModel",$id:"graphModelSchema",description:"A graph model object provides data for graph views",type:"object",properties:{name:{description:"The name of this graph model",type:"string",minLength:1,pattern:"^[A-Za-z0-9/._-]+$"},displayName:{description:"The name of the graph model as it should be displayed in the user interface. For example, 'Workflow data'.",type:"string"},description:{description:"A description of the graph model. For example, 'Workflow data defines necessary data elements to show workflow graphically.'.",type:"string"},category:{description:"The category of the graph model. For example, 'UserModels'.",type:"string"}},required:["displayName","name","displayName"],additionalProperties:!1};var d={title:"GraphView",$id:"graphViewSchema",description:"A graph view object provides means to show graph model data to users",type:"object",properties:{name:{description:"The name of this graph view",type:"string",minLength:1,pattern:"^[A-Za-z0-9/._-]+$"},displayName:{description:"The name of the graph view as it should be displayed in the user interface. For example, 'Workflow view'.",type:"string"},description:{description:"A description of the graph view. For example, 'Workflow view defines ways how to show workflow data to the user'.",type:"string"},category:{description:"The category of the graph view. For example, 'UserViews'.",type:"string"}},required:["displayName","name","displayName"],additionalProperties:!1};var f={type:"object",$id:"imageMacroSchema",properties:{fileName:{type:"string",description:"The filename of the image attachment to display"},cardKey:{type:"string",description:"The key of the card containing the image attachment. If not specified, uses the current card"},alt:{type:"string",description:"Alternative text for the image"},title:{type:"string",description:"Title attribute for the image"}},additionalProperties:!1,required:["fileName"]};var p={type:"object",$id:"includeMacroSchema",properties:{cardKey:{type:"string",description:"The key of the card to include content from"},levelOffset:{type:"string",description:"Optional offset to adjust the heading levels of the included content. Should be a number as string (e.g., '+1', '+2' or '-1')."},title:{type:"enum",description:"Whether to include the title of the card in the included content. If 'only' is selected, the title will be the only content included.",enum:["include","exclude","only"]},pageTitles:{type:"enum",description:"If discrete, page titles will be included as discrete headings(read asciidoctor docs for more info). If normal, page titles will be included as normal headings.",enum:["normal","discrete"]}},additionalProperties:!1,required:["cardKey"]};var c={title:"LinkType",$id:"linkTypeSchema",description:"Link types defined different ways to link cards together.",type:"object",additionalProperties:!1,properties:{description:{description:"A description that describes the link type",type:"string"},displayName:{description:"A name by which the link type is referred to in the user interface",type:"string"},name:{type:"string",description:"The technical name by which the field is referred to in JSON files.",pattern:"^[A-Za-z0-9/._-]+$"},outboundDisplayName:{type:"string",description:"A name by which the field is referred to in the user interface(from-to)."},inboundDisplayName:{type:"string",description:"A name by which the field is referred to in the user interface(to-from)."},sourceCardTypes:{type:"array",description:"The card types that can be the source of this link type. If empty, all card types are allowed.",items:{type:"string"}},destinationCardTypes:{type:"array",description:"The card types that can be the target of this link type. If empty, all card types are allowed.",items:{type:"string"}},enableLinkDescription:{type:"boolean",description:"If true, the user can add a description to the link."}},required:["displayName","name","outboundDisplayName","inboundDisplayName","sourceCardTypes","destinationCardTypes","enableLinkDescription"]};var h={type:"object",$id:"percentageMacroSchema",properties:{title:{type:"string",description:"Title text on top of the widget"},value:{type:"number",description:"Percentage value (0-100)"},legend:{type:"string",description:"Description text shown below the value"},colour:{type:"string",enum:["blue","green","yellow","red","orange","purple"],description:"Colour of the progress arc (optional)"}},additionalProperties:!1,required:["title","value","legend"]};var u={title:"Report",$id:"reportMacroBaseSchema",description:"A report object provides supplemental information about a report",type:"object",properties:{name:{description:"The name of the report",type:"string"}},required:["name"]};var g={title:"Report",$id:"reportSchema",description:"A report object provides supplemental information about a report",type:"object",properties:{name:{description:"The name of this report",type:"string",minLength:1,pattern:"^[A-Za-z0-9/._-]+$"},displayName:{description:"The name of the report as it should be displayed in the user interface. For example, 'Children list'.",type:"string"},description:{description:"A description of the report. For example, 'A Children list shows the child cards as an unordered list.'.",type:"string"},category:{description:"The category of the report. For example, 'Architecture'.",type:"string"}},required:["name","displayName","category"],additionalProperties:!1};var m={$schema:"http://json-schema.org/draft-07/schema#",$id:"jsonSchema",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var y={type:"object",$id:"scoreCardMacroSchema",properties:{title:{type:"string",description:"Title text on top of the card (optional)"},value:{type:"number",description:"Value shown as content of the card"},unit:{type:"string",description:"Unit shown after the value (optional)"},legend:{type:"string",description:"Description text shown below the value (optional)"}},additionalProperties:!1,required:["value"]};var b={title:"Template",$id:"templateSchema",description:"A template object provides supplemental information about a template directory structure ",type:"object",additionalProperties:!1,properties:{name:{description:"The name of this template",type:"string",minLength:1,pattern:"^[A-Za-z0-9/._-]+$"},displayName:{description:"The name of the template as it should be displayed in the user interface. For example, 'Decision'.",type:"string"},description:{description:"A description of the template. For example, 'A decision is a choice between two or more options.'.",type:"string"},category:{description:"The category of the template. For example, 'Decision'.",type:"string"}},required:["displayName","name"]};var v={$id:"vegaLiteMacroSchema",type:"object",properties:{spec:{$ref:"#/definitions/TopLevelSpec"}},$schema:"http://json-schema.org/draft-07/schema#",required:["spec"],definitions:{Aggregate:{anyOf:[{$ref:"#/definitions/NonArgAggregateOp"},{$ref:"#/definitions/ArgmaxDef"},{$ref:"#/definitions/ArgminDef"}]},AggregateOp:{enum:["argmax","argmin","average","count","distinct","max","mean","median","min","missing","product","q1","q3","ci0","ci1","stderr","stdev","stdevp","sum","valid","values","variance","variancep","exponential","exponentialb"],type:"string"},AggregateTransform:{additionalProperties:!1,properties:{aggregate:{description:"Array of objects that define fields to aggregate.",items:{$ref:"#/definitions/AggregatedFieldDef"},type:"array"},groupby:{description:"The data fields to group by. If not specified, a single group containing all data objects will be used.",items:{$ref:"#/definitions/FieldName"},type:"array"}},required:["aggregate"],type:"object"},AggregatedFieldDef:{additionalProperties:!1,properties:{as:{$ref:"#/definitions/FieldName",description:"The output field names to use for each aggregated field."},field:{$ref:"#/definitions/FieldName",description:'The data field for which to compute aggregate function. This is required for all aggregation operations except `"count"`.'},op:{$ref:"#/definitions/AggregateOp",description:'The aggregation operation to apply to the fields (e.g., `"sum"`, `"average"`, or `"count"`). See the [full list of supported aggregation operations](https://vega.github.io/vega-lite/docs/aggregate.html#ops) for more information.'}},required:["op","as"],type:"object"},Align:{enum:["left","center","right"],type:"string"},AllSortString:{anyOf:[{$ref:"#/definitions/SortOrder"},{$ref:"#/definitions/SortByChannel"},{$ref:"#/definitions/SortByChannelDesc"}]},AnyMark:{anyOf:[{$ref:"#/definitions/CompositeMark"},{$ref:"#/definitions/CompositeMarkDef"},{$ref:"#/definitions/Mark"},{$ref:"#/definitions/MarkDef"}]},AnyMarkConfig:{anyOf:[{$ref:"#/definitions/MarkConfig"},{$ref:"#/definitions/AreaConfig"},{$ref:"#/definitions/BarConfig"},{$ref:"#/definitions/RectConfig"},{$ref:"#/definitions/LineConfig"},{$ref:"#/definitions/TickConfig"}]},AreaConfig:{additionalProperties:!1,properties:{align:{anyOf:[{$ref:"#/definitions/Align"},{$ref:"#/definitions/ExprRef"}],description:'The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule). One of `"left"`, `"right"`, `"center"`.\n\n__Note:__ Expression reference is *not* supported for range marks.'},angle:{anyOf:[{description:"The rotation angle of the text, in degrees.",maximum:360,minimum:0,type:"number"},{$ref:"#/definitions/ExprRef"}]},aria:{anyOf:[{description:'A boolean flag indicating if [ARIA attributes](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) should be included (SVG output only). If `false`, the "aria-hidden" attribute will be set on the output SVG element, removing the mark item from the ARIA accessibility tree.',type:"boolean"},{$ref:"#/definitions/ExprRef"}]},ariaRole:{anyOf:[{description:'Sets the type of user interface element of the mark item for [ARIA accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) (SVG output only). If specified, this property determines the "role" attribute. Warning: this property is experimental and may be changed in the future.',type:"string"},{$ref:"#/definitions/ExprRef"}]},ariaRoleDescription:{anyOf:[{description:'A human-readable, author-localized description for the role of the mark item for [ARIA accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) (SVG output only). If specified, this property determines the "aria-roledescription" attribute. Warning: this property is experimental and may be changed in the future.',type:"string"},{$ref:"#/definitions/ExprRef"}]},aspect:{anyOf:[{description:"Whether to keep aspect ratio of image marks.",type:"boolean"},{$ref:"#/definitions/ExprRef"}]},baseline:{anyOf:[{$ref:"#/definitions/TextBaseline"},{$ref:"#/definitions/ExprRef"}],description:'For text marks, the vertical text baseline. One of `"alphabetic"` (default), `"top"`, `"middle"`, `"bottom"`, `"line-top"`, `"line-bottom"`, or an expression reference that provides one of the valid values. The `"line-top"` and `"line-bottom"` values operate similarly to `"top"` and `"bottom"`, but are calculated relative to the `lineHeight` rather than `fontSize` alone.\n\nFor range marks, the vertical alignment of the marks. One of `"top"`, `"middle"`, `"bottom"`.\n\n__Note:__ Expression reference is *not* supported for range marks.'},blend:{anyOf:[{$ref:"#/definitions/Blend",description:'The color blend mode for drawing an item on its current background. Any valid [CSS mix-blend-mode](https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode) value can be used.\n\n__Default value: `"source-over"`'},{$ref:"#/definitions/ExprRef"}]},color:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/Gradient"},{$ref:"#/definitions/ExprRef"}],description:'Default color.\n\n__Default value:__ <span style="color: #4682b4;">■</span> `"#4682b4"`\n\n__Note:__\n- This property cannot be used in a [style config](https://vega.github.io/vega-lite/docs/mark.html#style-config).\n- The `fill` and `stroke` properties have higher precedence than `color` and will override `color`.'},cornerRadius:{anyOf:[{description:"The radius in pixels of rounded rectangles or arcs' corners.\n\n__Default value:__ `0`",type:"number"},{$ref:"#/definitions/ExprRef"}]},cornerRadiusBottomLeft:{anyOf:[{description:"The radius in pixels of rounded rectangles' bottom left corner.\n\n__Default value:__ `0`",type:"number"},{$ref:"#/definitions/ExprRef"}]},cornerRadiusBottomRight:{anyOf:[{description:"The radius in pixels of rounded rectangles' bottom right corner.\n\n__Default value:__ `0`",type:"number"},{$ref:"#/definitions/ExprRef"}]},cornerRadiusTopLeft:{anyOf:[{description:"The radius in pixels of rounded rectangles' top right corner.\n\n__Default value:__ `0`",type:"number"},{$ref:"#/definitions/ExprRef"}]},cornerRadiusTopRight:{anyOf:[{description:"The radius in pixels of rounded rectangles' top left corner.\n\n__Default value:__ `0`",type:"number"},{$ref:"#/definitions/ExprRef"}]},cursor:{anyOf:[{$ref:"#/definitions/Cursor",description:"The mouse cursor used over the mark. Any valid [CSS cursor type](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#Values) can be used."},{$ref:"#/definitions/ExprRef"}]},description:{anyOf:[{description:'A text description of the mark item for [ARIA accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) (SVG output only). If specified, this property determines the ["aria-label" attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute).',type:"string"},{$ref:"#/definitions/ExprRef"}]},dir:{anyOf:[{$ref:"#/definitions/TextDirection",description:'The direction of the text. One of `"ltr"` (left-to-right) or `"rtl"` (right-to-left). This property determines on which side is truncated in response to the limit parameter.\n\n__Default value:__ `"ltr"`'},{$ref:"#/definitions/ExprRef"}]},dx:{anyOf:[{description:"The horizontal offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the _angle_ property.",type:"number"},{$ref:"#/definitions/ExprRef"}]},dy:{anyOf:[{description:"The vertical offset, in pixels, between the text label and its anchor point. The offset is applied after rotation by the _angle_ property.",type:"number"},{$ref:"#/definitions/ExprRef"}]},ellipsis:{anyOf:[{description:'The ellipsis string for text truncated in response to the limit parameter.\n\n__Default value:__ `"\u2026"`',type:"string"},{$ref:"#/definitions/ExprRef"}]},endAngle:{anyOf:[{description:"The end angle in radians for arc marks. A value of `0` indicates up (north), increasing values proceed clockwise.",type:"number"},{$ref:"#/definitions/ExprRef"}]},fill:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/Gradient"},{type:"null"},{$ref:"#/definitions/ExprRef"}],description:"Default fill color. This property has higher precedence than `config.color`. Set to `null` to remove fill.\n\n__Default value:__ (None)"},fillOpacity:{anyOf:[{description:"The fill opacity (value between [0,1]).\n\n__Default value:__ `1`",maximum:1,minimum:0,type:"number"},{$ref:"#/definitions/ExprRef"}]},filled:{description:"Whether the mark's color should be used as fill color instead of stroke color.\n\n__Default value:__ `false` for all `point`, `line`, and `rule` marks as well as `geoshape` marks for [`graticule`](https://vega.github.io/vega-lite/docs/data.html#graticule) data sources; otherwise, `true`.\n\n__Note:__ This property cannot be used in a [style config](https://vega.github.io/vega-lite/docs/mark.html#style-config).",type:"boolean"},font:{anyOf:[{description:'The typeface to set the text in (e.g., `"Helvetica Neue"`).',type:"string"},{$ref:"#/definitions/ExprRef"}]},fontSize:{anyOf:[{description:"The font size, in pixels.\n\n__Default value:__ `11`",minimum:0,type:"number"},{$ref:"#/definitions/ExprRef"}]},fontStyle:{anyOf:[{$ref:"#/definitions/FontStyle",description:'The font style (e.g., `"italic"`).'},{$ref:"#/definitions/ExprRef"}]},fontWeight:{anyOf:[{$ref:"#/definitions/FontWeight",description:'The font weight. This can be either a string (e.g `"bold"`, `"normal"`) or a number (`100`, `200`, `300`, ..., `900` where `"normal"` = `400` and `"bold"` = `700`).'},{$ref:"#/definitions/ExprRef"}]},height:{anyOf:[{description:"Height of the marks.",type:"number"},{$ref:"#/definitions/ExprRef"}]},href:{anyOf:[{$ref:"#/definitions/URI",description:"A URL to load upon mouse click. If defined, the mark acts as a hyperlink."},{$ref:"#/definitions/ExprRef"}]},innerRadius:{anyOf:[{type:"number"},{$ref:"#/definitions/ExprRef"}],description:"The inner radius in pixels of arc marks. `innerRadius` is an alias for `radius2`.\n\n__Default value:__ `0`",minimum:0},interpolate:{anyOf:[{$ref:"#/definitions/Interpolate",description:'The line interpolation method to use for line and area marks. One of the following:\n- `"linear"`: piecewise linear segments, as in a polyline.\n- `"linear-closed"`: close the linear segments to form a polygon.\n- `"step"`: alternate between horizontal and vertical segments, as in a step function.\n- `"step-before"`: alternate between vertical and horizontal segments, as in a step function.\n- `"step-after"`: alternate between horizontal and vertical segments, as in a step function.\n- `"basis"`: a B-spline, with control point duplication on the ends.\n- `"basis-open"`: an open B-spline; may not intersect the start or end.\n- `"basis-closed"`: a closed B-spline, as in a loop.\n- `"cardinal"`: a Cardinal spline, with control point duplication on the ends.\n- `"cardinal-open"`: an open Cardinal spline; may not intersect the start or end, but will intersect other control points.\n- `"cardinal-closed"`: a closed Cardinal spline, as in a loop.\n- `"bundle"`: equivalent to basis, except the tension parameter is used to straighten the spline.\n- `"monotone"`: cubic interpolation that preserves monotonicity in y.'},{$ref:"#/definitions/ExprRef"}]},invalid:{anyOf:[{$ref:"#/definitions/MarkInvalidDataMode"},{type:"null"}],description:'Invalid data mode, which defines how the marks and corresponding scales should represent invalid values (`null` and `NaN` in continuous scales *without* defined output for invalid values).\n\n- `"filter"` \u2014 *Exclude* all invalid values from the visualization\'s *marks* and *scales*. For path marks (for line, area, trail), this option will create paths that connect valid points, as if the data rows with invalid values do not exist.\n\n- `"break-paths-filter-domains"` \u2014 Break path marks (for line, area, trail) at invalid values. For non-path marks, this is equivalent to `"filter"`. All *scale* domains will *exclude* these filtered data points.\n\n- `"break-paths-show-domains"` \u2014 Break paths (for line, area, trail) at invalid values. Hide invalid values for non-path marks. All *scale* domains will *include* these filtered data points (for both path and non-path marks).\n\n- `"show"` or `null` \u2014 Show all data points in the marks and scale domains. Each scale will use the output for invalid values defined in `config.scale.invalid` or, if unspecified, by default invalid values will produce the same visual values as zero (if the scale includes zero) or the minimum value (if the scale does not include zero).\n\n- `"break-paths-show-path-domains"` (default) \u2014 This is equivalent to `"break-paths-show-domains"` for path-based marks (line/area/trail) and `"filter"` for non-path marks.\n\n__Note__: If any channel\'s scale has an output for invalid values defined in `config.scale.invalid`, all values for the scales will be considered "valid" since they can produce a reasonable output for the scales. Thus, fields for such channels will not be filtered and will not cause path breaks.'},limit:{anyOf:[{description:"The maximum length of the text mark in pixels. The text value will be automatically truncated if the rendered size exceeds the limit.\n\n__Default value:__ `0` -- indicating no limit",type:"number"},{$ref:"#/definitions/ExprRef"}]},line:{anyOf:[{type:"boolean"},{$ref:"#/definitions/OverlayMarkDef"}],description:"A flag for overlaying line on top of area marks, or an object defining the properties of the overlayed lines.\n\n- If this value is an empty object (`{}`) or `true`, lines with default properties will be used.\n\n- If this value is `false`, no lines would be automatically added to area marks.\n\n__Default value:__ `false`."},lineBreak:{anyOf:[{description:"A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property is ignored if the text is array-valued.",type:"string"},{$ref:"#/definitions/ExprRef"}]},lineHeight:{anyOf:[{description:"The line height in pixels (the spacing between subsequent lines of text) for multi-line text marks.",type:"number"},{$ref:"#/definitions/ExprRef"}]},opacity:{anyOf:[{type:"number"},{$ref:"#/definitions/ExprRef"}],description:"The overall opacity (value between [0,1]).\n\n__Default value:__ `0.7` for non-aggregate plots with `point`, `tick`, `circle`, or `square` marks or layered `bar` charts and `1` otherwise.",maximum:1,minimum:0},order:{description:"For line and trail marks, this `order` property can be set to `null` or `false` to make the lines use the original order in the data sources.",type:["null","boolean"]},orient:{$ref:"#/definitions/Orientation",description:`The orientation of a non-stacked bar, tick, area, and line charts. The value is either horizontal (default) or vertical.
|
|
2
2
|
- For bar, rule and tick, this determines whether the size of the bar and tick should be applied to x or y dimension.
|
|
3
3
|
- For area, this property determines the orient property of the Vega output.
|
|
4
4
|
- For line and trail marks, this property determines the sort order of the points in the line if \`config.sortLineBy\` is not specified. For stacked charts, this is always determined by the orientation of the stack; therefore explicitly specified value will be ignored.`},outerRadius:{anyOf:[{type:"number"},{$ref:"#/definitions/ExprRef"}],description:"The outer radius in pixels of arc marks. `outerRadius` is an alias for `radius`.\n\n__Default value:__ `0`",minimum:0},padAngle:{anyOf:[{description:"The angular padding applied to sides of the arc, in radians.",type:"number"},{$ref:"#/definitions/ExprRef"}]},point:{anyOf:[{type:"boolean"},{$ref:"#/definitions/OverlayMarkDef"},{const:"transparent",type:"string"}],description:'A flag for overlaying points on top of line or area marks, or an object defining the properties of the overlayed points.\n\n- If this property is `"transparent"`, transparent points will be used (for enhancing tooltips and selections).\n\n- If this property is an empty object (`{}`) or `true`, filled points with default properties will be used.\n\n- If this property is `false`, no points would be automatically added to line or area marks.\n\n__Default value:__ `false`.'},radius:{anyOf:[{type:"number"},{$ref:"#/definitions/ExprRef"}],description:"For arc mark, the primary (outer) radius in pixels.\n\nFor text marks, polar coordinate radial offset, in pixels, of the text from the origin determined by the `x` and `y` properties.\n\n__Default value:__ `min(plot_width, plot_height)/2`",minimum:0},radius2:{anyOf:[{type:"number"},{$ref:"#/definitions/ExprRef"}],description:"The secondary (inner) radius in pixels of arc marks.\n\n__Default value:__ `0`",minimum:0},shape:{anyOf:[{anyOf:[{$ref:"#/definitions/SymbolShape"},{type:"string"}],description:'Shape of the point marks. Supported values include:\n- plotting shapes: `"circle"`, `"square"`, `"cross"`, `"diamond"`, `"triangle-up"`, `"triangle-down"`, `"triangle-right"`, or `"triangle-left"`.\n- the line symbol `"stroke"`\n- centered directional shapes `"arrow"`, `"wedge"`, or `"triangle"`\n- a custom [SVG path string](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths) (For correct sizing, custom shape paths should be defined within a square bounding box with coordinates ranging from -1 to 1 along both the x and y dimensions.)\n\n__Default value:__ `"circle"`'},{$ref:"#/definitions/ExprRef"}]},size:{anyOf:[{type:"number"},{$ref:"#/definitions/ExprRef"}],description:"Default size for marks.\n- For `point`/`circle`/`square`, this represents the pixel area of the marks. Note that this value sets the area of the symbol; the side lengths will increase with the square root of this value.\n- For `bar`, this represents the band size of the bar, in pixels.\n- For `text`, this represents the font size, in pixels.\n\n__Default value:__\n- `30` for point, circle, square marks; width/height's `step`\n- `2` for bar marks with discrete dimensions;\n- `5` for bar marks with continuous dimensions;\n- `11` for text marks.",minimum:0},smooth:{anyOf:[{description:"A boolean flag (default true) indicating if the image should be smoothed when resized. If false, individual pixels should be scaled directly rather than interpolated with smoothing. For SVG rendering, this option may not work in some browsers due to lack of standardization.",type:"boolean"},{$ref:"#/definitions/ExprRef"}]},startAngle:{anyOf:[{description:"The start angle in radians for arc marks. A value of `0` indicates up (north), increasing values proceed clockwise.",type:"number"},{$ref:"#/definitions/ExprRef"}]},stroke:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/Gradient"},{type:"null"},{$ref:"#/definitions/ExprRef"}],description:"Default stroke color. This property has higher precedence than `config.color`. Set to `null` to remove stroke.\n\n__Default value:__ (None)"},strokeCap:{anyOf:[{$ref:"#/definitions/StrokeCap",description:'The stroke cap for line ending style. One of `"butt"`, `"round"`, or `"square"`.\n\n__Default value:__ `"butt"`'},{$ref:"#/definitions/ExprRef"}]},strokeDash:{anyOf:[{description:"An array of alternating stroke, space lengths for creating dashed or dotted lines.",items:{type:"number"},type:"array"},{$ref:"#/definitions/ExprRef"}]},strokeDashOffset:{anyOf:[{description:"The offset (in pixels) into which to begin drawing with the stroke dash array.",type:"number"},{$ref:"#/definitions/ExprRef"}]},strokeJoin:{anyOf:[{$ref:"#/definitions/StrokeJoin",description:'The stroke line join method. One of `"miter"`, `"round"` or `"bevel"`.\n\n__Default value:__ `"miter"`'},{$ref:"#/definitions/ExprRef"}]},strokeMiterLimit:{anyOf:[{description:"The miter limit at which to bevel a line join.",type:"number"},{$ref:"#/definitions/ExprRef"}]},strokeOffset:{anyOf:[{description:"The offset in pixels at which to draw the group stroke and fill. If unspecified, the default behavior is to dynamically offset stroked groups such that 1 pixel stroke widths align with the pixel grid.",type:"number"},{$ref:"#/definitions/ExprRef"}]},strokeOpacity:{anyOf:[{description:"The stroke opacity (value between [0,1]).\n\n__Default value:__ `1`",maximum:1,minimum:0,type:"number"},{$ref:"#/definitions/ExprRef"}]},strokeWidth:{anyOf:[{description:"The stroke width, in pixels.",minimum:0,type:"number"},{$ref:"#/definitions/ExprRef"}]},tension:{anyOf:[{description:"Depending on the interpolation type, sets the tension parameter (for line and area marks).",type:"number"},{$ref:"#/definitions/ExprRef"}]},text:{anyOf:[{$ref:"#/definitions/Text",description:"Placeholder text if the `text` channel is not specified"},{$ref:"#/definitions/ExprRef"}]},theta:{anyOf:[{type:"number"},{$ref:"#/definitions/ExprRef"}],description:`- For arc marks, the arc length in radians if theta2 is not specified, otherwise the start arc angle. (A value of 0 indicates up or \u201Cnorth\u201D, increasing values proceed clockwise.)
|
|
@@ -577,48 +577,89 @@ showField(Key, Field) :-
|
|
|
577
577
|
select(Level, Collection, Field),
|
|
578
578
|
not queryError.
|
|
579
579
|
showField(Key, Field) :- showAll(Key), field(Key, Field, _).
|
|
580
|
+
resultField(Key, Field, Value, DataType) :-
|
|
581
|
+
resultFields(Key, Field, Value, DataType, _, _, _).
|
|
582
|
+
resultField(Key, Field, Value, DataType) :-
|
|
583
|
+
resultFields(Key, _, _, _, Field, Value, DataType).
|
|
584
|
+
resultField(Key, Field, Value, DataType) :-
|
|
585
|
+
resultFields(Key, Field, Value, DataType, _, _, _, _, _, _).
|
|
586
|
+
resultField(Key, Field, Value, DataType) :-
|
|
587
|
+
resultFields(Key, _, _, _, Field, Value, DataType, _, _, _).
|
|
588
|
+
resultField(Key, Field, Value, DataType) :-
|
|
589
|
+
resultFields(Key, _, _, _, _, _, _, Field, Value, DataType).
|
|
580
590
|
#show field(Key, Field, Value, DataType) :
|
|
581
591
|
field(Key, Field, Value),
|
|
582
592
|
dataType(Key, Field, DataType),
|
|
583
593
|
DataType != "enum",
|
|
584
594
|
DataType != "list",
|
|
585
595
|
showField(Key, Field).
|
|
596
|
+
#show field(Key, Field, Value, DataType) :
|
|
597
|
+
DataType != "enum",
|
|
598
|
+
DataType != "list",
|
|
599
|
+
resultField(Key, Field, Value, DataType).
|
|
586
600
|
#show field(Key, Field, Value, "shortText") :
|
|
587
601
|
field(Key, Field, Value),
|
|
588
602
|
not dataType(Key, Field, _),
|
|
589
603
|
showField(Key, Field).
|
|
604
|
+
childResult(Key, (Key, Field, Value), Field) :-
|
|
605
|
+
DataType = "list",
|
|
606
|
+
resultField(Key, Field, Value, DataType).
|
|
607
|
+
resultField((Key, Field, Value), "value", Value, "shortText") :-
|
|
608
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
609
|
+
resultField(Key, Field, Value, _).
|
|
610
|
+
resultField((Key, Field, Value), "index", Index, "integer") :-
|
|
611
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
612
|
+
resultField(Key, Field, Value, _),
|
|
613
|
+
field((Field, Value), "index", Index).
|
|
614
|
+
resultField((Key, Field, Value), "displayName", EnumDisplayValue, "shortText") :-
|
|
615
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
616
|
+
resultField(Key, Field, Value, _),
|
|
617
|
+
field((Field, Value), "enumDisplayValue", EnumDisplayValue).
|
|
590
618
|
childResult(Key, (Key, Field, Value), Field) :-
|
|
591
619
|
field(Key, Field, Value),
|
|
592
620
|
dataType(Key, Field, "list"),
|
|
593
621
|
showField(Key, Field).
|
|
594
|
-
|
|
622
|
+
resultField((Key, Field, Value), "value", Value, "shortText") :-
|
|
595
623
|
childResult(Key, (Key, Field, Value), Field),
|
|
596
624
|
field(Key, Field, Value),
|
|
597
625
|
dataType(Key, Field, "list").
|
|
598
|
-
|
|
626
|
+
resultField((Key, Field, Value), "index", Index, "integer") :-
|
|
599
627
|
childResult(Key, (Key, Field, Value), Field),
|
|
600
628
|
field(Key, Field, Value),
|
|
601
629
|
dataType(Key, Field, "list"),
|
|
602
630
|
field((Field, Value), "index", Index).
|
|
603
|
-
|
|
631
|
+
resultField((Key, Field, Value), "displayName", EnumDisplayValue, "shortText") :-
|
|
604
632
|
childResult(Key, (Key, Field, Value), Field),
|
|
605
633
|
field(Key, Field, Value),
|
|
606
634
|
dataType(Key, Field, "list"),
|
|
607
635
|
field((Field, Value), "enumDisplayValue", EnumDisplayValue).
|
|
636
|
+
childObject(Key, (Key, Field), Field) :-
|
|
637
|
+
DataType = "enum",
|
|
638
|
+
resultField(Key, Field, _, DataType).
|
|
639
|
+
resultField((Key, Field), "value", Value, "shortText") :-
|
|
640
|
+
childObject(Key, (Key, Field), Field),
|
|
641
|
+
resultField(Key, Field, Value, _).
|
|
642
|
+
resultField((Key, Field), "index", Index, "integer") :-
|
|
643
|
+
childObject(Key, (Key, Field), Field),
|
|
644
|
+
resultField(Key, Field, _, _),
|
|
645
|
+
field((Field, Value), "index", Index).
|
|
646
|
+
resultField((Key, Field), "displayValue", EnumDisplayValue, "shortText") :-
|
|
647
|
+
childObject(Key, (Key, Field), Field),
|
|
648
|
+
field((Field, Value), "enumDisplayValue", EnumDisplayValue).
|
|
608
649
|
childObject(Key, (Key, Field), Field) :-
|
|
609
650
|
field(Key, Field, _),
|
|
610
651
|
dataType(Key, Field, "enum"),
|
|
611
652
|
showField(Key, Field).
|
|
612
|
-
|
|
653
|
+
resultField((Key, Field), "value", Value, "shortText") :-
|
|
613
654
|
childObject(Key, (Key, Field), Field),
|
|
614
655
|
field(Key, Field, Value),
|
|
615
656
|
dataType(Key, Field, "enum").
|
|
616
|
-
|
|
657
|
+
resultField((Key, Field), "index", Index, "integer") :-
|
|
617
658
|
childObject(Key, (Key, Field), Field),
|
|
618
659
|
field(Key, Field, Value),
|
|
619
660
|
dataType(Key, Field, "enum"),
|
|
620
661
|
field((Field, Value), "index", Index).
|
|
621
|
-
|
|
662
|
+
resultField((Key, Field), "displayValue", EnumDisplayValue, "shortText") :-
|
|
622
663
|
childObject(Key, (Key, Field), Field),
|
|
623
664
|
field(Key, Field, Value),
|
|
624
665
|
dataType(Key, Field, "enum"),
|
|
@@ -633,9 +674,6 @@ field(Key, Field, Value) :-
|
|
|
633
674
|
fields(Key, _, _, Field, Value, _, _).
|
|
634
675
|
field(Key, Field, Value) :-
|
|
635
676
|
fields(Key, _, _, _, _, Field, Value).
|
|
636
|
-
showField(Key, Field) :- field(Key, Field, _, _).
|
|
637
|
-
field(Key, Field, Value) :- field(Key, Field, Value, _).
|
|
638
|
-
dataType(Key, Field, DataType) :- field(Key, Field, _, DataType).
|
|
639
677
|
#show childResultCollection(ParentKey, Collection) : childResultCollection(ParentKey, Collection).
|
|
640
678
|
order(N, "results", 1, Field, Direction) :- orderBy(Field, Direction), resultLevel(_, N, "results").
|
|
641
679
|
order(N, "results", 1, Field1, Direction1) :- orderBy(Field1, Direction1, _, _), resultLevel(_, N, "results").
|
|
@@ -670,13 +708,7 @@ queryError :- queryError(_, _).
|
|
|
670
708
|
#show queryError/2.
|
|
671
709
|
level(Level) :-
|
|
672
710
|
resultLevel(_, Level, _).
|
|
673
|
-
`;var k=`
|
|
674
|
-
selectCollectionField("successes", "category").
|
|
675
|
-
selectCollectionField("failures", "title").
|
|
676
|
-
selectCollectionField("failures", "category").
|
|
677
|
-
selectCollectionField("failures", "errorMessage").
|
|
678
|
-
selectCollectionField("failures", "fieldName").
|
|
679
|
-
childObject(Card, (Card, "policyChecks"), "policyChecks") :-
|
|
711
|
+
`;var k=`childObject(Card, (Card, "policyChecks"), "policyChecks") :-
|
|
680
712
|
showField(Card, "policyChecks").
|
|
681
713
|
childResultCollection((Card, "policyChecks"), "successes") :-
|
|
682
714
|
childObject(Card, (Card, "policyChecks"), "policyChecks").
|
|
@@ -685,7 +717,7 @@ childResultCollection((Card, "policyChecks"), "failures") :-
|
|
|
685
717
|
childResult((Card, "policyChecks"), (Card, Category, Title), "successes") :-
|
|
686
718
|
childObject(Card, (Card, "policyChecks"), "policyChecks"),
|
|
687
719
|
policyCheckSuccess(Card, Category, Title).
|
|
688
|
-
|
|
720
|
+
resultFields((Card, Category, Title), "category", Category, "shortText", "title", Title, "shortText") :-
|
|
689
721
|
childObject(Card, (Card, "policyChecks"), "policyChecks"),
|
|
690
722
|
policyCheckSuccess(Card, Category, Title).
|
|
691
723
|
policyCheckFailure(Card, Category, Title, ErrorMessage, "") :-
|
|
@@ -694,21 +726,13 @@ policyCheckFailure(Card, Category, Title, ErrorMessage, "") :-
|
|
|
694
726
|
childResult((Card, "policyChecks"), (Card, Category, Title, ErrorMessage, Field), "failures") :-
|
|
695
727
|
childObject(Card, (Card, "policyChecks"), "policyChecks"),
|
|
696
728
|
policyCheckFailure(Card, Category, Title, ErrorMessage, Field).
|
|
697
|
-
|
|
729
|
+
resultFields((Card, Category, Title, ErrorMessage, Field), "category", Category, "shortText", "title", Title, "shortText", "errorMessage", ErrorMessage, "shortText") :-
|
|
698
730
|
childObject(Card, (Card, "policyChecks"), "policyChecks"),
|
|
699
731
|
policyCheckFailure(Card, Category, Title, ErrorMessage, Field).
|
|
700
|
-
|
|
732
|
+
resultField((Card, Category, Title, ErrorMessage, Field), "fieldName", Field, "shortText") :-
|
|
701
733
|
childObject(Card, (Card, "policyChecks"), "policyChecks"),
|
|
702
734
|
Field != "",
|
|
703
735
|
policyCheckFailure(Card, Category, Title, ErrorMessage, Field).
|
|
704
|
-
selectCollectionField("links", "displayName").
|
|
705
|
-
selectCollectionField("links", "linkDescription").
|
|
706
|
-
selectCollectionField("links", "direction").
|
|
707
|
-
selectCollectionField("links", "linkType").
|
|
708
|
-
selectCollectionField("links", "displayName").
|
|
709
|
-
selectCollectionField("links", "linkSource").
|
|
710
|
-
selectCollectionField("links", "title").
|
|
711
|
-
selectCollectionField("links", "key").
|
|
712
736
|
childResultCollection(Card, "links") :-
|
|
713
737
|
showField(Card, "links").
|
|
714
738
|
childResult(Card, (Card, Destination, LinkType, "", "outbound"), "links") :-
|
|
@@ -723,61 +747,51 @@ childResult(Card, (Source, Card, LinkType, "", "inbound"), "links") :-
|
|
|
723
747
|
childResult(Card, (Source, Card, LinkType, LinkDescription, "inbound"), "links") :-
|
|
724
748
|
link(Source, Card, LinkType, LinkDescription),
|
|
725
749
|
showField(Card, "links").
|
|
726
|
-
|
|
750
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "displayName", DisplayName, "shortText") :-
|
|
727
751
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
728
752
|
Direction = "outbound",
|
|
729
753
|
field(LinkType, "outboundDisplayName", DisplayName).
|
|
730
|
-
|
|
754
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "displayName", DisplayName, "shortText") :-
|
|
731
755
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
732
756
|
Direction = "inbound",
|
|
733
757
|
field(LinkType, "inboundDisplayName", DisplayName).
|
|
734
|
-
|
|
758
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "linkDescription", LinkDescription, "shortText") :-
|
|
735
759
|
LinkDescription != "",
|
|
736
760
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links").
|
|
737
|
-
|
|
761
|
+
resultFields((Source, Destination, LinkType, LinkDescription, Direction), "direction", Direction, "shortText", "linkType", LinkType, "shortText") :-
|
|
738
762
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links").
|
|
739
|
-
|
|
763
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "linkSource", "user", "shortText") :-
|
|
740
764
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
741
765
|
userLink(Source, Destination, LinkType).
|
|
742
|
-
|
|
766
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "linkSource", "user", "shortText") :-
|
|
743
767
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
744
768
|
userLink(Source, Destination, LinkType, LinkDescription).
|
|
745
|
-
|
|
769
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "linkSource", "calculated", "shortText") :-
|
|
746
770
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
747
771
|
calculatedLink(Source, Destination, LinkType).
|
|
748
|
-
|
|
772
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "linkSource", "calculated", "shortText") :-
|
|
749
773
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
750
774
|
calculatedLink(Source, Destination, LinkType, LinkDescription).
|
|
751
|
-
|
|
775
|
+
resultField((Card, Destination, LinkType, LinkDescription, Direction), "title", Title, "shortText") :-
|
|
752
776
|
childResult(Card, (Card, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
753
777
|
field(Destination, "title", Title).
|
|
754
|
-
|
|
778
|
+
resultField((Source, Card, LinkType, LinkDescription, Direction), "title", Title, "shortText") :-
|
|
755
779
|
childResult(Card, (Source, Card, LinkType, LinkDescription, Direction), "links"),
|
|
756
780
|
field(Source, "title", Title).
|
|
757
|
-
|
|
781
|
+
resultField((Card, Destination, LinkType, LinkDescription, Direction), "key", Destination, "shortText") :-
|
|
758
782
|
childResult(Card, (Card, Destination, LinkType, LinkDescription, Direction), "links").
|
|
759
|
-
|
|
783
|
+
resultField((Source, Card, LinkType, LinkDescription, Direction), "key", Source, "shortText") :-
|
|
760
784
|
childResult(Card, (Source, Card, LinkType, LinkDescription, Direction), "links"),
|
|
761
785
|
field(Source, "title", Title).
|
|
762
|
-
select(2, "notifications", "title").
|
|
763
|
-
select(2, "notifications", "category").
|
|
764
|
-
select(2, "notifications", "message").
|
|
765
786
|
childResultCollection(Card, "notifications") :-
|
|
766
787
|
showField(Card, "notifications").
|
|
767
788
|
childResult(Card, (Card, Category, Title, Message), "notifications") :-
|
|
768
789
|
showField(Card, "notifications"),
|
|
769
790
|
notification(Card, Category, Title, Message).
|
|
770
|
-
|
|
791
|
+
resultFields((Card, Category, Title, Message), "key", Card, "shortText", "category", Category, "shortText", "title", Title, "shortText") :-
|
|
771
792
|
childResult(Card, (Card, Category, Title, Message), "notifications").
|
|
772
|
-
|
|
793
|
+
resultField((Card, Category, Title, Message), "message", Message, "shortText") :-
|
|
773
794
|
childResult(Card, (Card, Category, Title, Message), "notifications").
|
|
774
|
-
selectCollectionField("transition", "transitionName").
|
|
775
|
-
selectCollectionField("transition", "errorMessage").
|
|
776
|
-
selectCollectionField("move", "errorMessage").
|
|
777
|
-
selectCollectionField("delete", "errorMessage").
|
|
778
|
-
selectCollectionField("editField", "fieldName").
|
|
779
|
-
selectCollectionField("editField", "errorMessage").
|
|
780
|
-
selectCollectionField("editContent", "errorMessage").
|
|
781
795
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations") :-
|
|
782
796
|
showField(Card, "deniedOperations").
|
|
783
797
|
childResultCollection((Card, "deniedOperations"), "transition") :-
|
|
@@ -785,39 +799,39 @@ childResultCollection((Card, "deniedOperations"), "transition") :-
|
|
|
785
799
|
childResult((Card, "deniedOperations"), (Card, TransitionName, ErrorMessage), "transition") :-
|
|
786
800
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations"),
|
|
787
801
|
transitionDenied(Card, TransitionName, ErrorMessage).
|
|
788
|
-
|
|
802
|
+
resultFields((Card, TransitionName, ErrorMessage), "transitionName", TransitionName, "shortText", "errorMessage", ErrorMessage, "shortText") :-
|
|
789
803
|
childResult((Card, "deniedOperations"), (Card, TransitionName, ErrorMessage), "transition").
|
|
790
804
|
childResultCollection((Card, "deniedOperations"), "move") :-
|
|
791
805
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations").
|
|
792
806
|
childResult((Card, "deniedOperations"), (Card, ErrorMessage), "move") :-
|
|
793
807
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations"),
|
|
794
808
|
movingCardDenied(Card, ErrorMessage).
|
|
795
|
-
|
|
809
|
+
resultField((Card, ErrorMessage), "errorMessage", ErrorMessage, "shortText") :-
|
|
796
810
|
childResult((Card, "deniedOperations"), (Card, ErrorMessage), "move").
|
|
797
811
|
childResultCollection((Card, "deniedOperations"), "delete") :-
|
|
798
812
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations").
|
|
799
813
|
childResult((Card, "deniedOperations"), (Card, ErrorMessage), "delete") :-
|
|
800
814
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations"),
|
|
801
815
|
deletingCardDenied(Card, ErrorMessage).
|
|
802
|
-
|
|
816
|
+
resultField((Card, ErrorMessage), "errorMessage", ErrorMessage, "shortText") :-
|
|
803
817
|
childResult((Card, "deniedOperations"), (Card, ErrorMessage), "delete").
|
|
804
818
|
childResultCollection((Card, "deniedOperations"), "editField") :-
|
|
805
819
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations").
|
|
806
820
|
childResult((Card, "deniedOperations"), (Card, FieldName, ErrorMessage), "editField") :-
|
|
807
821
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations"),
|
|
808
822
|
editingFieldDenied(Card, FieldName, ErrorMessage).
|
|
809
|
-
|
|
823
|
+
resultFields((Card, FieldName, ErrorMessage), "fieldName", FieldName, "shortText", "errorMessage", ErrorMessage, "shortText") :-
|
|
810
824
|
childResult((Card, "deniedOperations"), (Card, FieldName, ErrorMessage), "editField").
|
|
811
825
|
childResultCollection((Card, "deniedOperations"), "editContent") :-
|
|
812
826
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations").
|
|
813
827
|
childResult((Card, "deniedOperations"), (Card, ErrorMessage), "editContent") :-
|
|
814
828
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations"),
|
|
815
829
|
editingContentDenied(Card, ErrorMessage).
|
|
816
|
-
|
|
830
|
+
resultField((Card, ErrorMessage), "errorMessage", ErrorMessage, "shortText") :-
|
|
817
831
|
childResult((Card, "deniedOperations"), (Card, ErrorMessage), "editContent").
|
|
818
832
|
childResultCollection(Card, "labels") :-
|
|
819
833
|
showField(Card, "labels").
|
|
820
|
-
|
|
834
|
+
resultField(Card, "labels", Label, "stringList") :-
|
|
821
835
|
showField(Card, "labels"),
|
|
822
836
|
label(Card, Label).
|
|
823
837
|
`;var D=`{{#if cardKey}}
|
|
@@ -835,83 +849,71 @@ displayName(Card, (Card, Field), DisplayName) :-
|
|
|
835
849
|
field(Card, "cardType", CardType),
|
|
836
850
|
fieldType(Field),
|
|
837
851
|
field((CardType, Field), "displayName", DisplayName).
|
|
838
|
-
|
|
852
|
+
resultField((Card, Field), "key", Field, "shortText") :-
|
|
839
853
|
customField(CardType, Field),
|
|
840
854
|
field(Card, "cardType", CardType),
|
|
841
855
|
result(Card).
|
|
842
|
-
|
|
856
|
+
resultField((Card, Field), "visibility", "always", "shortText") :-
|
|
843
857
|
alwaysVisibleField(CardType, Field),
|
|
844
858
|
field(Card, "cardType", CardType),
|
|
845
859
|
result(Card).
|
|
846
|
-
|
|
860
|
+
resultField((Card, Field), "visibility", "optional", "shortText") :-
|
|
847
861
|
optionallyVisibleField(CardType, Field),
|
|
848
862
|
field(Card, "cardType", CardType),
|
|
849
863
|
result(Card).
|
|
850
|
-
|
|
864
|
+
resultField((Card, Field), "index", Index, "integer") :-
|
|
851
865
|
alwaysVisibleField(CardType, Field),
|
|
852
866
|
field((CardType, Field), "index", Index),
|
|
853
867
|
field(Card, "cardType", CardType),
|
|
854
868
|
result(Card).
|
|
855
|
-
|
|
869
|
+
resultField((Card, Field), "index", Index, "integer") :-
|
|
856
870
|
optionallyVisibleField(CardType, Field),
|
|
857
871
|
field((CardType, Field), "index", Index),
|
|
858
872
|
field(Card, "cardType", CardType),
|
|
859
873
|
result(Card).
|
|
860
|
-
|
|
874
|
+
resultField((Card, Field), "fieldDisplayName", DisplayName, "shortText") :-
|
|
861
875
|
childResult(Card, (Card, Field), "fields"),
|
|
862
876
|
result(Card),
|
|
863
877
|
displayName(Card, (Card, Field), DisplayName).
|
|
864
|
-
|
|
878
|
+
resultField((Card, Field), "fieldDescription", Description, "shortText") :-
|
|
865
879
|
childResult(Card, (Card, Field), "fields"),
|
|
866
880
|
result(Card),
|
|
867
881
|
field(Field, "description", Description).
|
|
868
882
|
dataType((Card, Field), "isCalculated", "boolean") :-
|
|
869
883
|
childResult(Card, (Card, Field), "fields"),
|
|
870
884
|
field((Card, Field), "isCalculated", _).
|
|
871
|
-
|
|
885
|
+
resultField((Card, Field), "isCalculated", true, "boolean") :-
|
|
872
886
|
result(Card),
|
|
873
887
|
field(Card, "cardType", CardType),
|
|
874
888
|
calculatedField(CardType, Field).
|
|
875
|
-
field((Card, Field), "isCalculated", false) :-
|
|
889
|
+
field((Card, Field), "isCalculated", false, "boolean") :-
|
|
876
890
|
childResult(Card, (Card, Field), "fields"),
|
|
877
891
|
result(Card),
|
|
878
892
|
field(Card, "cardType", CardType),
|
|
879
893
|
not calculatedField(CardType, Field).
|
|
880
|
-
|
|
894
|
+
resultField((Card, Field), "dataType", DataType, "shortText") :-
|
|
881
895
|
childResult(Card, (Card, Field), "fields"),
|
|
882
896
|
result(Card),
|
|
883
897
|
field(Field, "dataType", DataType).
|
|
884
|
-
|
|
885
|
-
childResult(Card, (Card, Field), "fields"),
|
|
886
|
-
result(Card),
|
|
887
|
-
field(Card, Field, Value),
|
|
888
|
-
dataType(Card, Field, DataType).
|
|
889
|
-
field((Card, Field), "value", Value) :-
|
|
898
|
+
resultField((Card, Field), "value", Value, DataType) :-
|
|
890
899
|
childResult(Card, (Card, Field), "fields"),
|
|
900
|
+
dataType(Card, Field, DataType),
|
|
891
901
|
field(Card, Field, Value).
|
|
892
|
-
|
|
902
|
+
resultField(Card, "cardTypeDisplayName", DisplayName, "shortText") :-
|
|
893
903
|
result(Card),
|
|
894
904
|
field(Card, "cardType", CardType),
|
|
895
905
|
field(CardType, "displayName", DisplayName).
|
|
896
|
-
select(1, "cardType").
|
|
897
|
-
select(1, "cardTypeDisplayName").
|
|
898
|
-
select(1, "title").
|
|
899
|
-
select(1, "key").
|
|
900
|
-
select(1, "lastUpdated").
|
|
901
|
-
select(1, "workflowState").
|
|
902
|
-
select(1, "policyChecks").
|
|
903
|
-
select(1, "links").
|
|
904
|
-
select(1, "notifications").
|
|
905
|
-
select(1, "deniedOperations").
|
|
906
|
-
select(1, "labels").
|
|
907
|
-
select(2, "fields", "key").
|
|
908
|
-
select(2, "fields", "visibility").
|
|
909
|
-
select(2, "fields", "index").
|
|
910
|
-
select(2, "fields", "fieldDisplayName").
|
|
911
|
-
select(2, "fields", "fieldDescription").
|
|
912
|
-
select(2, "fields", "dataType").
|
|
913
|
-
select(2, "fields", "isCalculated").
|
|
914
|
-
select(2, "fields", "value").
|
|
906
|
+
select(1, "results", "cardType").
|
|
907
|
+
select(1, "results", "cardTypeDisplayName").
|
|
908
|
+
select(1, "results", "title").
|
|
909
|
+
select(1, "results", "key").
|
|
910
|
+
select(1, "results", "lastUpdated").
|
|
911
|
+
select(1, "results", "workflowState").
|
|
912
|
+
select(1, "results", "policyChecks").
|
|
913
|
+
select(1, "results", "links").
|
|
914
|
+
select(1, "results", "notifications").
|
|
915
|
+
select(1, "results", "deniedOperations").
|
|
916
|
+
select(1, "results", "labels").
|
|
915
917
|
childResultCollection(Card, "fields") :-
|
|
916
918
|
result(Card).
|
|
917
919
|
childResult(Card, (Card, Field), "fields") :-
|
|
@@ -922,10 +924,10 @@ childResult(Card, (Card, Field), "fields") :-
|
|
|
922
924
|
optionallyVisibleField(CardType, Field),
|
|
923
925
|
field(Card, "cardType", CardType),
|
|
924
926
|
result(Card).
|
|
925
|
-
select(3, "index").
|
|
926
|
-
select(3, "enumDisplayValue").
|
|
927
|
-
select(3, "enumDescription").
|
|
928
|
-
select(3, "enumValue").
|
|
927
|
+
select(3, "enumValues", "index").
|
|
928
|
+
select(3, "enumValues", "enumDisplayValue").
|
|
929
|
+
select(3, "enumValues", "enumDescription").
|
|
930
|
+
select(3, "enumValues", "enumValue").
|
|
929
931
|
childResult((Card, Field), (Field, EnumValue), "enumValues") :-
|
|
930
932
|
enumValue(Field, EnumValue),
|
|
931
933
|
childResult(Card, (Card, Field), "fields").
|
package/package.json
CHANGED
|
@@ -60,7 +60,23 @@ showField(Key, Field) :-
|
|
|
60
60
|
% showField is also defined if showAll is defined so there is only a single show predicate for each result
|
|
61
61
|
showField(Key, Field) :- showAll(Key), field(Key, Field, _).
|
|
62
62
|
|
|
63
|
-
%
|
|
63
|
+
% Allow specifying up to 3 fields at the same time for showField, similar to field
|
|
64
|
+
% For specifying 2 fields
|
|
65
|
+
resultField(Key, Field, Value, DataType) :-
|
|
66
|
+
resultFields(Key, Field, Value, DataType, _, _, _).
|
|
67
|
+
|
|
68
|
+
resultField(Key, Field, Value, DataType) :-
|
|
69
|
+
resultFields(Key, _, _, _, Field, Value, DataType).
|
|
70
|
+
|
|
71
|
+
% For specifying 3 fields
|
|
72
|
+
resultField(Key, Field, Value, DataType) :-
|
|
73
|
+
resultFields(Key, Field, Value, DataType, _, _, _, _, _, _).
|
|
74
|
+
|
|
75
|
+
resultField(Key, Field, Value, DataType) :-
|
|
76
|
+
resultFields(Key, _, _, _, Field, Value, DataType, _, _, _).
|
|
77
|
+
|
|
78
|
+
resultField(Key, Field, Value, DataType) :-
|
|
79
|
+
resultFields(Key, _, _, _, _, _, _, Field, Value, DataType).
|
|
64
80
|
%
|
|
65
81
|
% field(key, field, value, data type):
|
|
66
82
|
% "field" of result/child result "key" has value "value",
|
|
@@ -79,52 +95,95 @@ showField(Key, Field) :- showAll(Key), field(Key, Field, _).
|
|
|
79
95
|
DataType != "list",
|
|
80
96
|
showField(Key, Field).
|
|
81
97
|
|
|
98
|
+
#show field(Key, Field, Value, DataType) :
|
|
99
|
+
DataType != "enum",
|
|
100
|
+
DataType != "list",
|
|
101
|
+
resultField(Key, Field, Value, DataType).
|
|
102
|
+
|
|
82
103
|
#show field(Key, Field, Value, "shortText") :
|
|
83
104
|
field(Key, Field, Value),
|
|
84
105
|
not dataType(Key, Field, _),
|
|
85
106
|
showField(Key, Field).
|
|
86
107
|
|
|
87
108
|
% list
|
|
109
|
+
childResult(Key, (Key, Field, Value), Field) :-
|
|
110
|
+
DataType = "list",
|
|
111
|
+
resultField(Key, Field, Value, DataType).
|
|
112
|
+
|
|
113
|
+
resultField((Key, Field, Value), "value", Value, "shortText") :-
|
|
114
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
115
|
+
resultField(Key, Field, Value, _).
|
|
116
|
+
|
|
117
|
+
resultField((Key, Field, Value), "index", Index, "integer") :-
|
|
118
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
119
|
+
resultField(Key, Field, Value, _),
|
|
120
|
+
field((Field, Value), "index", Index).
|
|
121
|
+
|
|
122
|
+
resultField((Key, Field, Value), "displayName", EnumDisplayValue, "shortText") :-
|
|
123
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
124
|
+
resultField(Key, Field, Value, _),
|
|
125
|
+
field((Field, Value), "enumDisplayValue", EnumDisplayValue).
|
|
126
|
+
|
|
88
127
|
childResult(Key, (Key, Field, Value), Field) :-
|
|
89
128
|
field(Key, Field, Value),
|
|
90
129
|
dataType(Key, Field, "list"),
|
|
91
130
|
showField(Key, Field).
|
|
92
131
|
|
|
93
|
-
|
|
132
|
+
resultField((Key, Field, Value), "value", Value, "shortText") :-
|
|
94
133
|
childResult(Key, (Key, Field, Value), Field),
|
|
95
134
|
field(Key, Field, Value),
|
|
96
135
|
dataType(Key, Field, "list").
|
|
97
136
|
|
|
98
|
-
|
|
137
|
+
resultField((Key, Field, Value), "index", Index, "integer") :-
|
|
99
138
|
childResult(Key, (Key, Field, Value), Field),
|
|
100
139
|
field(Key, Field, Value),
|
|
101
140
|
dataType(Key, Field, "list"),
|
|
102
141
|
field((Field, Value), "index", Index).
|
|
103
142
|
|
|
104
|
-
|
|
143
|
+
resultField((Key, Field, Value), "displayName", EnumDisplayValue, "shortText") :-
|
|
105
144
|
childResult(Key, (Key, Field, Value), Field),
|
|
106
145
|
field(Key, Field, Value),
|
|
107
146
|
dataType(Key, Field, "list"),
|
|
108
147
|
field((Field, Value), "enumDisplayValue", EnumDisplayValue).
|
|
109
148
|
|
|
110
149
|
% enum
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
childObject(Key, (Key, Field), Field) :-
|
|
153
|
+
DataType = "enum",
|
|
154
|
+
resultField(Key, Field, _, DataType).
|
|
155
|
+
|
|
156
|
+
resultField((Key, Field), "value", Value, "shortText") :-
|
|
157
|
+
childObject(Key, (Key, Field), Field),
|
|
158
|
+
resultField(Key, Field, Value, _).
|
|
159
|
+
|
|
160
|
+
resultField((Key, Field), "index", Index, "integer") :-
|
|
161
|
+
childObject(Key, (Key, Field), Field),
|
|
162
|
+
resultField(Key, Field, _, _),
|
|
163
|
+
field((Field, Value), "index", Index).
|
|
164
|
+
|
|
165
|
+
resultField((Key, Field), "displayValue", EnumDisplayValue, "shortText") :-
|
|
166
|
+
childObject(Key, (Key, Field), Field),
|
|
167
|
+
field((Field, Value), "enumDisplayValue", EnumDisplayValue).
|
|
168
|
+
|
|
169
|
+
|
|
111
170
|
childObject(Key, (Key, Field), Field) :-
|
|
112
171
|
field(Key, Field, _),
|
|
113
172
|
dataType(Key, Field, "enum"),
|
|
114
173
|
showField(Key, Field).
|
|
115
174
|
|
|
116
|
-
|
|
175
|
+
resultField((Key, Field), "value", Value, "shortText") :-
|
|
117
176
|
childObject(Key, (Key, Field), Field),
|
|
118
177
|
field(Key, Field, Value),
|
|
119
178
|
dataType(Key, Field, "enum").
|
|
120
179
|
|
|
121
|
-
|
|
180
|
+
resultField((Key, Field), "index", Index, "integer") :-
|
|
122
181
|
childObject(Key, (Key, Field), Field),
|
|
123
182
|
field(Key, Field, Value),
|
|
124
183
|
dataType(Key, Field, "enum"),
|
|
125
184
|
field((Field, Value), "index", Index).
|
|
126
185
|
|
|
127
|
-
|
|
186
|
+
resultField((Key, Field), "displayValue", EnumDisplayValue, "shortText") :-
|
|
128
187
|
childObject(Key, (Key, Field), Field),
|
|
129
188
|
field(Key, Field, Value),
|
|
130
189
|
dataType(Key, Field, "enum"),
|
|
@@ -148,10 +207,6 @@ field(Key, Field, Value) :-
|
|
|
148
207
|
|
|
149
208
|
% allow using field directly
|
|
150
209
|
% fields are always shown
|
|
151
|
-
% TODO: instead of creating datatype and showField facts, we should simply show the field directly with #show
|
|
152
|
-
showField(Key, Field) :- field(Key, Field, _, _).
|
|
153
|
-
field(Key, Field, Value) :- field(Key, Field, Value, _).
|
|
154
|
-
dataType(Key, Field, DataType) :- field(Key, Field, _, DataType).
|
|
155
210
|
|
|
156
211
|
|
|
157
212
|
% childResultCollection(ParentKey, Collection): Defines a childResult. Allows guaranteeing an empty list, if no elements are present
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
% Utils extends the cyberismo query language
|
|
2
2
|
|
|
3
3
|
% policy checks
|
|
4
|
-
selectCollectionField("successes", "title").
|
|
5
|
-
selectCollectionField("successes", "category").
|
|
6
|
-
selectCollectionField("failures", "title").
|
|
7
|
-
selectCollectionField("failures", "category").
|
|
8
|
-
selectCollectionField("failures", "errorMessage").
|
|
9
|
-
selectCollectionField("failures", "fieldName").
|
|
10
4
|
|
|
11
5
|
childObject(Card, (Card, "policyChecks"), "policyChecks") :-
|
|
12
6
|
showField(Card, "policyChecks").
|
|
@@ -22,7 +16,7 @@ childResult((Card, "policyChecks"), (Card, Category, Title), "successes") :-
|
|
|
22
16
|
childObject(Card, (Card, "policyChecks"), "policyChecks"),
|
|
23
17
|
policyCheckSuccess(Card, Category, Title).
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
resultFields((Card, Category, Title), "category", Category, "shortText", "title", Title, "shortText") :-
|
|
26
20
|
childObject(Card, (Card, "policyChecks"), "policyChecks"),
|
|
27
21
|
policyCheckSuccess(Card, Category, Title).
|
|
28
22
|
|
|
@@ -37,11 +31,11 @@ childResult((Card, "policyChecks"), (Card, Category, Title, ErrorMessage, Field)
|
|
|
37
31
|
childObject(Card, (Card, "policyChecks"), "policyChecks"),
|
|
38
32
|
policyCheckFailure(Card, Category, Title, ErrorMessage, Field).
|
|
39
33
|
|
|
40
|
-
|
|
34
|
+
resultFields((Card, Category, Title, ErrorMessage, Field), "category", Category, "shortText", "title", Title, "shortText", "errorMessage", ErrorMessage, "shortText") :-
|
|
41
35
|
childObject(Card, (Card, "policyChecks"), "policyChecks"),
|
|
42
36
|
policyCheckFailure(Card, Category, Title, ErrorMessage, Field).
|
|
43
37
|
|
|
44
|
-
|
|
38
|
+
resultField((Card, Category, Title, ErrorMessage, Field), "fieldName", Field, "shortText") :-
|
|
45
39
|
childObject(Card, (Card, "policyChecks"), "policyChecks"),
|
|
46
40
|
Field != "",
|
|
47
41
|
policyCheckFailure(Card, Category, Title, ErrorMessage, Field).
|
|
@@ -49,14 +43,6 @@ field((Card, Category, Title, ErrorMessage, Field), "fieldName", Field) :-
|
|
|
49
43
|
|
|
50
44
|
|
|
51
45
|
% links
|
|
52
|
-
selectCollectionField("links", "displayName").
|
|
53
|
-
selectCollectionField("links", "linkDescription").
|
|
54
|
-
selectCollectionField("links", "direction").
|
|
55
|
-
selectCollectionField("links", "linkType").
|
|
56
|
-
selectCollectionField("links", "displayName").
|
|
57
|
-
selectCollectionField("links", "linkSource").
|
|
58
|
-
selectCollectionField("links", "title").
|
|
59
|
-
selectCollectionField("links", "key").
|
|
60
46
|
|
|
61
47
|
childResultCollection(Card, "links") :-
|
|
62
48
|
showField(Card, "links").
|
|
@@ -78,66 +64,62 @@ childResult(Card, (Source, Card, LinkType, LinkDescription, "inbound"), "links")
|
|
|
78
64
|
showField(Card, "links").
|
|
79
65
|
|
|
80
66
|
% links: displayName
|
|
81
|
-
|
|
67
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "displayName", DisplayName, "shortText") :-
|
|
82
68
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
83
69
|
Direction = "outbound",
|
|
84
70
|
field(LinkType, "outboundDisplayName", DisplayName).
|
|
85
71
|
|
|
86
|
-
|
|
72
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "displayName", DisplayName, "shortText") :-
|
|
87
73
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
88
74
|
Direction = "inbound",
|
|
89
75
|
field(LinkType, "inboundDisplayName", DisplayName).
|
|
90
76
|
|
|
91
77
|
% links: link description
|
|
92
|
-
|
|
78
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "linkDescription", LinkDescription, "shortText") :-
|
|
93
79
|
LinkDescription != "",
|
|
94
80
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links").
|
|
95
81
|
|
|
96
82
|
% links: direction and link type
|
|
97
|
-
|
|
83
|
+
resultFields((Source, Destination, LinkType, LinkDescription, Direction), "direction", Direction, "shortText", "linkType", LinkType, "shortText") :-
|
|
98
84
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links").
|
|
99
85
|
|
|
100
86
|
% links: link source
|
|
101
87
|
|
|
102
|
-
|
|
88
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "linkSource", "user", "shortText") :-
|
|
103
89
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
104
90
|
userLink(Source, Destination, LinkType).
|
|
105
91
|
|
|
106
|
-
|
|
92
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "linkSource", "user", "shortText") :-
|
|
107
93
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
108
94
|
userLink(Source, Destination, LinkType, LinkDescription).
|
|
109
95
|
|
|
110
|
-
|
|
96
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "linkSource", "calculated", "shortText") :-
|
|
111
97
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
112
98
|
calculatedLink(Source, Destination, LinkType).
|
|
113
99
|
|
|
114
|
-
|
|
100
|
+
resultField((Source, Destination, LinkType, LinkDescription, Direction), "linkSource", "calculated", "shortText") :-
|
|
115
101
|
childResult(_, (Source, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
116
102
|
calculatedLink(Source, Destination, LinkType, LinkDescription).
|
|
117
103
|
|
|
118
104
|
% links: title
|
|
119
|
-
|
|
105
|
+
resultField((Card, Destination, LinkType, LinkDescription, Direction), "title", Title, "shortText") :-
|
|
120
106
|
childResult(Card, (Card, Destination, LinkType, LinkDescription, Direction), "links"),
|
|
121
107
|
field(Destination, "title", Title).
|
|
122
108
|
|
|
123
|
-
|
|
109
|
+
resultField((Source, Card, LinkType, LinkDescription, Direction), "title", Title, "shortText") :-
|
|
124
110
|
childResult(Card, (Source, Card, LinkType, LinkDescription, Direction), "links"),
|
|
125
111
|
field(Source, "title", Title).
|
|
126
112
|
|
|
127
113
|
% links: key
|
|
128
|
-
|
|
114
|
+
resultField((Card, Destination, LinkType, LinkDescription, Direction), "key", Destination, "shortText") :-
|
|
129
115
|
childResult(Card, (Card, Destination, LinkType, LinkDescription, Direction), "links").
|
|
130
116
|
|
|
131
|
-
|
|
117
|
+
resultField((Source, Card, LinkType, LinkDescription, Direction), "key", Source, "shortText") :-
|
|
132
118
|
childResult(Card, (Source, Card, LinkType, LinkDescription, Direction), "links"),
|
|
133
119
|
field(Source, "title", Title).
|
|
134
120
|
|
|
135
121
|
|
|
136
122
|
% notifications
|
|
137
|
-
select(2, "notifications", "title").
|
|
138
|
-
select(2, "notifications", "category").
|
|
139
|
-
select(2, "notifications", "message").
|
|
140
|
-
|
|
141
123
|
childResultCollection(Card, "notifications") :-
|
|
142
124
|
showField(Card, "notifications").
|
|
143
125
|
|
|
@@ -146,21 +128,14 @@ childResult(Card, (Card, Category, Title, Message), "notifications") :-
|
|
|
146
128
|
showField(Card, "notifications"),
|
|
147
129
|
notification(Card, Category, Title, Message).
|
|
148
130
|
|
|
149
|
-
|
|
131
|
+
resultFields((Card, Category, Title, Message), "key", Card, "shortText", "category", Category, "shortText", "title", Title, "shortText") :-
|
|
150
132
|
childResult(Card, (Card, Category, Title, Message), "notifications").
|
|
151
133
|
|
|
152
|
-
|
|
134
|
+
resultField((Card, Category, Title, Message), "message", Message, "shortText") :-
|
|
153
135
|
childResult(Card, (Card, Category, Title, Message), "notifications").
|
|
154
136
|
|
|
155
137
|
|
|
156
138
|
% denied operations
|
|
157
|
-
selectCollectionField("transition", "transitionName").
|
|
158
|
-
selectCollectionField("transition", "errorMessage").
|
|
159
|
-
selectCollectionField("move", "errorMessage").
|
|
160
|
-
selectCollectionField("delete", "errorMessage").
|
|
161
|
-
selectCollectionField("editField", "fieldName").
|
|
162
|
-
selectCollectionField("editField", "errorMessage").
|
|
163
|
-
selectCollectionField("editContent", "errorMessage").
|
|
164
139
|
|
|
165
140
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations") :-
|
|
166
141
|
showField(Card, "deniedOperations").
|
|
@@ -173,7 +148,7 @@ childResult((Card, "deniedOperations"), (Card, TransitionName, ErrorMessage), "t
|
|
|
173
148
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations"),
|
|
174
149
|
transitionDenied(Card, TransitionName, ErrorMessage).
|
|
175
150
|
|
|
176
|
-
|
|
151
|
+
resultFields((Card, TransitionName, ErrorMessage), "transitionName", TransitionName, "shortText", "errorMessage", ErrorMessage, "shortText") :-
|
|
177
152
|
childResult((Card, "deniedOperations"), (Card, TransitionName, ErrorMessage), "transition").
|
|
178
153
|
|
|
179
154
|
% move denied operations
|
|
@@ -184,7 +159,7 @@ childResult((Card, "deniedOperations"), (Card, ErrorMessage), "move") :-
|
|
|
184
159
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations"),
|
|
185
160
|
movingCardDenied(Card, ErrorMessage).
|
|
186
161
|
|
|
187
|
-
|
|
162
|
+
resultField((Card, ErrorMessage), "errorMessage", ErrorMessage, "shortText") :-
|
|
188
163
|
childResult((Card, "deniedOperations"), (Card, ErrorMessage), "move").
|
|
189
164
|
|
|
190
165
|
% delete denied operations
|
|
@@ -195,7 +170,7 @@ childResult((Card, "deniedOperations"), (Card, ErrorMessage), "delete") :-
|
|
|
195
170
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations"),
|
|
196
171
|
deletingCardDenied(Card, ErrorMessage).
|
|
197
172
|
|
|
198
|
-
|
|
173
|
+
resultField((Card, ErrorMessage), "errorMessage", ErrorMessage, "shortText") :-
|
|
199
174
|
childResult((Card, "deniedOperations"), (Card, ErrorMessage), "delete").
|
|
200
175
|
|
|
201
176
|
% editField denied operations
|
|
@@ -206,7 +181,7 @@ childResult((Card, "deniedOperations"), (Card, FieldName, ErrorMessage), "editFi
|
|
|
206
181
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations"),
|
|
207
182
|
editingFieldDenied(Card, FieldName, ErrorMessage).
|
|
208
183
|
|
|
209
|
-
|
|
184
|
+
resultFields((Card, FieldName, ErrorMessage), "fieldName", FieldName, "shortText", "errorMessage", ErrorMessage, "shortText") :-
|
|
210
185
|
childResult((Card, "deniedOperations"), (Card, FieldName, ErrorMessage), "editField").
|
|
211
186
|
|
|
212
187
|
% editContent denied operations
|
|
@@ -217,7 +192,7 @@ childResult((Card, "deniedOperations"), (Card, ErrorMessage), "editContent") :-
|
|
|
217
192
|
childObject(Card, (Card, "deniedOperations"), "deniedOperations"),
|
|
218
193
|
editingContentDenied(Card, ErrorMessage).
|
|
219
194
|
|
|
220
|
-
|
|
195
|
+
resultField((Card, ErrorMessage), "errorMessage", ErrorMessage, "shortText") :-
|
|
221
196
|
childResult((Card, "deniedOperations"), (Card, ErrorMessage), "editContent").
|
|
222
197
|
|
|
223
198
|
|
|
@@ -225,6 +200,6 @@ field((Card, ErrorMessage), "errorMessage", ErrorMessage) :-
|
|
|
225
200
|
childResultCollection(Card, "labels") :-
|
|
226
201
|
showField(Card, "labels").
|
|
227
202
|
|
|
228
|
-
|
|
203
|
+
resultField(Card, "labels", Label, "stringList") :-
|
|
229
204
|
showField(Card, "labels"),
|
|
230
205
|
label(Card, Label).
|
|
@@ -22,39 +22,38 @@ displayName(Card, (Card, Field), DisplayName) :-
|
|
|
22
22
|
% we include the card key in the key of the fields, because the same query is used
|
|
23
23
|
% when generating static sites for all project cards at the same time
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
resultField((Card, Field), "key", Field, "shortText") :-
|
|
26
26
|
customField(CardType, Field),
|
|
27
27
|
field(Card, "cardType", CardType),
|
|
28
28
|
result(Card).
|
|
29
|
-
|
|
30
|
-
field((Card, Field), "visibility", "always") :-
|
|
29
|
+
resultField((Card, Field), "visibility", "always", "shortText") :-
|
|
31
30
|
alwaysVisibleField(CardType, Field),
|
|
32
31
|
field(Card, "cardType", CardType),
|
|
33
32
|
result(Card).
|
|
34
33
|
|
|
35
|
-
|
|
34
|
+
resultField((Card, Field), "visibility", "optional", "shortText") :-
|
|
36
35
|
optionallyVisibleField(CardType, Field),
|
|
37
36
|
field(Card, "cardType", CardType),
|
|
38
37
|
result(Card).
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
resultField((Card, Field), "index", Index, "integer") :-
|
|
41
40
|
alwaysVisibleField(CardType, Field),
|
|
42
41
|
field((CardType, Field), "index", Index),
|
|
43
42
|
field(Card, "cardType", CardType),
|
|
44
43
|
result(Card).
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
resultField((Card, Field), "index", Index, "integer") :-
|
|
47
46
|
optionallyVisibleField(CardType, Field),
|
|
48
47
|
field((CardType, Field), "index", Index),
|
|
49
48
|
field(Card, "cardType", CardType),
|
|
50
49
|
result(Card).
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
resultField((Card, Field), "fieldDisplayName", DisplayName, "shortText") :-
|
|
53
52
|
childResult(Card, (Card, Field), "fields"),
|
|
54
53
|
result(Card),
|
|
55
54
|
displayName(Card, (Card, Field), DisplayName).
|
|
56
55
|
|
|
57
|
-
|
|
56
|
+
resultField((Card, Field), "fieldDescription", Description, "shortText") :-
|
|
58
57
|
childResult(Card, (Card, Field), "fields"),
|
|
59
58
|
result(Card),
|
|
60
59
|
field(Field, "description", Description).
|
|
@@ -63,64 +62,47 @@ dataType((Card, Field), "isCalculated", "boolean") :-
|
|
|
63
62
|
childResult(Card, (Card, Field), "fields"),
|
|
64
63
|
field((Card, Field), "isCalculated", _).
|
|
65
64
|
|
|
66
|
-
|
|
65
|
+
resultField((Card, Field), "isCalculated", true, "boolean") :-
|
|
67
66
|
result(Card),
|
|
68
67
|
field(Card, "cardType", CardType),
|
|
69
68
|
calculatedField(CardType, Field).
|
|
70
69
|
|
|
71
|
-
field((Card, Field), "isCalculated", false) :-
|
|
70
|
+
field((Card, Field), "isCalculated", false, "boolean") :-
|
|
72
71
|
childResult(Card, (Card, Field), "fields"),
|
|
73
72
|
result(Card),
|
|
74
73
|
field(Card, "cardType", CardType),
|
|
75
74
|
not calculatedField(CardType, Field).
|
|
76
75
|
|
|
77
76
|
% add dataType of field
|
|
78
|
-
|
|
77
|
+
resultField((Card, Field), "dataType", DataType, "shortText") :-
|
|
79
78
|
childResult(Card, (Card, Field), "fields"),
|
|
80
79
|
result(Card),
|
|
81
80
|
field(Field, "dataType", DataType).
|
|
82
81
|
|
|
83
82
|
% add value
|
|
84
|
-
|
|
85
|
-
childResult(Card, (Card, Field), "fields"),
|
|
86
|
-
result(Card),
|
|
87
|
-
field(Card, Field, Value),
|
|
88
|
-
dataType(Card, Field, DataType).
|
|
89
|
-
|
|
90
|
-
% add value
|
|
91
|
-
field((Card, Field), "value", Value) :-
|
|
83
|
+
resultField((Card, Field), "value", Value, DataType) :-
|
|
92
84
|
childResult(Card, (Card, Field), "fields"),
|
|
85
|
+
dataType(Card, Field, DataType),
|
|
93
86
|
field(Card, Field, Value).
|
|
94
87
|
|
|
95
88
|
% add cardTypeDisplayName
|
|
96
|
-
|
|
89
|
+
resultField(Card, "cardTypeDisplayName", DisplayName, "shortText") :-
|
|
97
90
|
result(Card),
|
|
98
91
|
field(Card, "cardType", CardType),
|
|
99
92
|
field(CardType, "displayName", DisplayName).
|
|
100
93
|
|
|
101
94
|
% select only non-custom fields
|
|
102
|
-
select(1, "cardType").
|
|
103
|
-
select(1, "cardTypeDisplayName").
|
|
104
|
-
select(1, "title").
|
|
105
|
-
select(1, "key").
|
|
106
|
-
select(1, "lastUpdated").
|
|
107
|
-
select(1, "workflowState").
|
|
108
|
-
select(1, "policyChecks").
|
|
109
|
-
select(1, "links").
|
|
110
|
-
select(1, "notifications").
|
|
111
|
-
select(1, "deniedOperations").
|
|
112
|
-
select(1, "labels").
|
|
113
|
-
|
|
114
|
-
% Fields
|
|
115
|
-
|
|
116
|
-
select(2, "fields", "key").
|
|
117
|
-
select(2, "fields", "visibility").
|
|
118
|
-
select(2, "fields", "index").
|
|
119
|
-
select(2, "fields", "fieldDisplayName").
|
|
120
|
-
select(2, "fields", "fieldDescription").
|
|
121
|
-
select(2, "fields", "dataType").
|
|
122
|
-
select(2, "fields", "isCalculated").
|
|
123
|
-
select(2, "fields", "value").
|
|
95
|
+
select(1, "results", "cardType").
|
|
96
|
+
select(1, "results", "cardTypeDisplayName").
|
|
97
|
+
select(1, "results", "title").
|
|
98
|
+
select(1, "results", "key").
|
|
99
|
+
select(1, "results", "lastUpdated").
|
|
100
|
+
select(1, "results", "workflowState").
|
|
101
|
+
select(1, "results", "policyChecks").
|
|
102
|
+
select(1, "results", "links").
|
|
103
|
+
select(1, "results", "notifications").
|
|
104
|
+
select(1, "results", "deniedOperations").
|
|
105
|
+
select(1, "results", "labels").
|
|
124
106
|
|
|
125
107
|
childResultCollection(Card, "fields") :-
|
|
126
108
|
result(Card).
|
|
@@ -136,10 +118,10 @@ childResult(Card, (Card, Field), "fields") :-
|
|
|
136
118
|
result(Card).
|
|
137
119
|
|
|
138
120
|
% for enum fields, add enum values as child results:
|
|
139
|
-
select(3, "index").
|
|
140
|
-
select(3, "enumDisplayValue").
|
|
141
|
-
select(3, "enumDescription").
|
|
142
|
-
select(3, "enumValue").
|
|
121
|
+
select(3, "enumValues", "index").
|
|
122
|
+
select(3, "enumValues", "enumDisplayValue").
|
|
123
|
+
select(3, "enumValues", "enumDescription").
|
|
124
|
+
select(3, "enumValues", "enumValue").
|
|
143
125
|
|
|
144
126
|
childResult((Card, Field), (Field, EnumValue), "enumValues") :-
|
|
145
127
|
enumValue(Field, EnumValue),
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"type": "string"
|
|
30
30
|
},
|
|
31
31
|
"location": {
|
|
32
|
-
"description": "
|
|
32
|
+
"description": "Git remote URL, or relative file reference.",
|
|
33
33
|
"type": "string"
|
|
34
34
|
},
|
|
35
35
|
"branch": {
|
|
36
|
-
"description": "If using git URL in 'location' defines git branch. If empty,
|
|
36
|
+
"description": "If using git remote URL in 'location' defines git branch. If empty, uses repository default branch'.",
|
|
37
37
|
"type": "string"
|
|
38
38
|
},
|
|
39
39
|
"private": {
|
|
40
|
-
"description": "If true, the module is private and requires credentials (CYBERISMO_GIT_USER / CYBERISMO_GIT_TOKEN)",
|
|
40
|
+
"description": "If true, the module is private and requires credentials (CYBERISMO_GIT_USER / CYBERISMO_GIT_TOKEN) or SSH. Does not apply for local file modules.",
|
|
41
41
|
"type": "boolean"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
"properties": {
|
|
8
8
|
"name": {
|
|
9
9
|
"type": "string",
|
|
10
|
-
"description": "The technical name by which the field is referred to in JSON files."
|
|
10
|
+
"description": "The technical name by which the field is referred to in JSON files.",
|
|
11
|
+
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
11
12
|
},
|
|
12
13
|
"displayName": {
|
|
13
14
|
"type": "string",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"name": {
|
|
17
17
|
"type": "string",
|
|
18
|
-
"description": "The technical name by which the field is referred to in JSON files."
|
|
18
|
+
"description": "The technical name by which the field is referred to in JSON files.",
|
|
19
|
+
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
19
20
|
},
|
|
20
21
|
"outboundDisplayName": {
|
|
21
22
|
"type": "string",
|