Output-module-snippets is a small library with code snippets to save time and effort when writing Output Module queries.
code --install-extension output-module-snippets-1.0.0.vsix
Start typing any of the snippet prefixes and automatically complete the Output Module statement. Start with either tvc or vc.
Use tab to jump to snippet properties and update the default values. Some properties have multiple choices. The choices are represented as {choice1|choice2} in the examples below.
Prefix(es): filter-and
"Filter": {
"AND": [
{"Field": {"name": "", "operator": "{EQUALS|NOT_EQUALS|STARTS_WITH|NOT_STARTS_WITH|STARTS_WITH_DIGIT|ENDS_WITH|NOT_ENDS_WITH|INCLUDES|NOT_INCLUDES|LESS|GREATER|LESS_OR_EQUALS|GREATER_OR_EQUALS|BETWEEN|NULL|NOT_NULL|IN|NOT_IN|EXISTS|NOT_EXISTS}", "value": ""}}
]
}
Prefix(es): asset, source-asset, target-asset
"{Asset|SourceAsset|TargetAsset}": {
"Id": {"name": "assetId"},
"signifier": {"name": "assetFullName"},
"displayName": {"name": "assetDisplayName"},
}
A relation object where the parent node is an asset. Prefix(es): relation-asset
"Relation": [
{
"typeId": "",
"type": "{SOURCE|TARGET}",
}
]
Prefix(es): asset-type, source-asset-type, target-asset-type
"{AssetType|SourceAssetType|TargetAssetType}": {
"Id": {"name": "assetTypeId"},
"Name": {"name": "assetTypeName"},
"description": {"name": "assetTypeDesc"},
"color": {"name": "assetTypeColor"},
"icon": {"name": "assetTypeIcon"},
"acronym": {"name": "assetTypeAcronym"}
}
Prefix(es): attribute
"Attribute": {
"labelId": "",
"value": {"name": "attrVal"}
}
Prefix(es): attribute-type
"AttributeType": {
"Id": {"name": "attributeTypeId"},
"Name": {"name": "attributeTypeName"},
"description": {"name": "attributeTypeDesc"},
"attributeKind": {"name": "attributeTypeKind"}
}
Prefix(es): attribute-boolean
"BooleanAttribute": {
"labelId": "",
"booleanValue": {"name": "booleanAttrVal"}
}
Prefix(es): column, tvc-column, table-view-config-column
{"Column": {"fieldName": ""}}
Prefix(es): comment, parent-comment
"{Comment|ParentComment}": {
"content": {"name": "commentContent"}
}
Prefix(es): community, parent-community
"{Community|ParentCommunity}": {
"Id": {"name": "communityId"},
"Name": {"name": "communityName"}
}
Prefix(es): created, created-on, created-by
"createdOn": {"name": "createdOn"},
"createdBy": {"name": "createdBy"}
Prefix(es): attribute-date
"DateAttribute": {
"labelId": "",
"date": {"name": "dateAttrVal"},
"timestamp": {"name": "dateAttrVal"}
}
Prefix(es): attribute-date-time
"DateTimeAttribute": {
"labelId": "",
"dateTime": {"name": "dateTimeAttrVal"}
}
Prefix(es): domain
"Domain": {
"Id": {"name": "domainId"},
"Name": {"name": "domainName"}
}
Prefix(es): domain-type
"DomainType": {
"Id": {"name": "domainTypeId"},
"Name": {"name": "domainTypeName"}
}
Simple filter with single condition. Prefix(es): filter
"Filter": {"Field": {"name": "", "operator": "{EQUALS|NOT_EQUALS|STARTS_WITH|NOT_STARTS_WITH|STARTS_WITH_DIGIT|ENDS_WITH|NOT_ENDS_WITH|INCLUDES|NOT_INCLUDES|LESS|GREATER|LESS_OR_EQUALS|GREATER_OR_EQUALS|BETWEEN|NULL|NOT_NULL|IN|NOT_IN|EXISTS|NOT_EXISTS}", "value": ""}}
Prefix(es): filter-field
{"Field": {"name": "", "operator": "{EQUALS|NOT_EQUALS|STARTS_WITH|NOT_STARTS_WITH|STARTS_WITH_DIGIT|ENDS_WITH|NOT_ENDS_WITH|INCLUDES|NOT_INCLUDES|LESS|GREATER|LESS_OR_EQUALS|GREATER_OR_EQUALS|BETWEEN|NULL|NOT_NULL|IN|NOT_IN|EXISTS|NOT_EXISTS}", "value": ""}}
Prefix(es): group, user-group
"Group": {
"Id": {"name": "groupId"},
"groupName": {"name": "groupName"}
}
Prefix(es): modified, modified-on, modified-by
"modifiedOn": {"name": "modifiedOn"},
"modifiedBy": {"name": "modifiedBy"}
Prefix(es): attribute-multi-value
"MultiValueAttribute": {
"labelId": "",
"values": {"name": "attrVals"}
}
Prefix(es): attribute-numeric
"NumbericAttribute": {
"labelId": "",
"numericValue": {"name": "numericAttrVal"}
}
Prefix(es): filter-or
"Filter": {
"OR": [
{"Field": {"name": "", "operator": "{EQUALS|NOT_EQUALS|STARTS_WITH|NOT_STARTS_WITH|STARTS_WITH_DIGIT|ENDS_WITH|NOT_ENDS_WITH|INCLUDES|NOT_INCLUDES|LESS|GREATER|LESS_OR_EQUALS|GREATER_OR_EQUALS|BETWEEN|NULL|NOT_NULL|IN|NOT_IN|EXISTS|NOT_EXISTS}", "value": ""}}
]
}
Prefix(es): order
"Order": [
{"Field": {"name": "", "order": "{ASC|DESC}"}}
]
Prefix(es): paging
"displayStart": 0,
"displayLength": 50,
"maxCountLimit": 0
Prefix(es): relation
"Relation": {
"RelationType": {
"Id": {"name": "relationTypeId"},
"role": {"name": "role"},
"corole": {"name": "corole"},
"description": {"name": "relationTypeDesc"}
},
"SourceAssetType": {
"Id": {"name": "sourceAssetTypeId"},
"Name": {"name": "sourceAssetTypeName"}
},
"TargetAssetType": {
"Id": {"name": "targetAssetTypeId"},
"Name": {"name": "targetAssetTypeName"}
}
}
Prefix(es): relation-object
{
"typeId": "",
"type": "{SOURCE|TARGET}",
}
Prefix(es): relation-type
"RelationType": {
"Id": {"name": "relationTypeId"},
"role": {"name": "role"},
"corole": {"name": "corole"},
"description": {"name": "relationTypeDesc"}
}
Prefix(es): responsibility
"Responsibility": [
{
"roleId": "",
}
]
Prefix(es): role
"Role": {
"Id": {"name": "roleId"},
"Signifier": {"name": "roleName"}
}
Prefix(es): status
"Status": {
"Id": {"name": "statusId"},
"signifier": {"name": "statusName"}
}
Prefix(es): tvc, table-view-config
{
"TableViewConfig": {
"Resources": {
},
"Columns": [
{"Column": {"fieldName": ""}}
]
}
}
Prefix(es): tag
"Tag": {
"Name": {"name": "tagName"},
"assetsCount": {"name": "tagAssetCount"}
}
Prefix(es): user
"User": {
"linkType": "{CREATED|MODIFIED}",
"Id": {"name": "userId"},
"userName": {"name": "userName"},
"firstName": {"name": "firstName"},
"lastName": {"name": "lastName"},
"fullName": {"name": "fullName"},
"emailAddress": {"name": "emailAddress"}
}
Prefix(es): vc, view-config
{
"ViewConfig": {
"Resources": {
}
}
}
Prefix(es): view-permission
"ViewPermission": {
}
Initial release.




