@atlassianlabs/jira-pi-meta-models
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -52,2 +52,3 @@ export var UIType = /*#__PURE__*/function (UIType) { | ||
ValueType["Team"] = "team"; | ||
ValueType["SecurityLevel"] = "securitylevel"; | ||
return ValueType; | ||
@@ -118,2 +119,4 @@ }({}); | ||
return ValueType.Team; | ||
case 'securitylevel': | ||
return ValueType.SecurityLevel; | ||
default: | ||
@@ -184,4 +187,4 @@ return ValueType.String; | ||
// mutli-select, {id, name} | ||
[ValueType.Worklog, UIType.Worklog], [ValueType.Attachment, UIType.Attachment], [ValueType.Status, UIType.NonEditable], [ValueType.Transition, UIType.Select], [ValueType.Group, UIType.Select], [ValueType.Team, UIType.Select]]); | ||
[ValueType.Worklog, UIType.Worklog], [ValueType.Attachment, UIType.Attachment], [ValueType.Status, UIType.NonEditable], [ValueType.Transition, UIType.Select], [ValueType.Group, UIType.Select], [ValueType.Team, UIType.Select], [ValueType.SecurityLevel, UIType.Select]]); | ||
export var schemaOptionToUIMap = new Map([['com.atlassian.jira.plugin.system.customfieldtypes:select', UIType.Select], ['com.atlassian.jira.plugin.system.customfieldtypes:multiselect', UIType.Select], ['com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes', UIType.Checkbox], ['com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons', UIType.Radio], ['com.atlassian.plugins.atlassian-connect-plugin:io.tempo.jira__account', UIType.Select], ['com.atlassian.plugins.atlassian-connect-plugin:io.tempo.jira__team', UIType.Select]]); | ||
export var customSchemaToUIMap = new Map([['com.pyxis.greenhopper.jira:gh-epic-link', UIType.Select], ['com.pyxis.greenhopper.jira:gh-epic-label', UIType.Input], ['com.pyxis.greenhopper.jira:gh-sprint', UIType.Select], [ValueType.Worklog, UIType.Worklog], [ValueType.Attachment, UIType.Attachment], ['com.atlassian.jira.toolkit:participants', UIType.Participants], ['com.atlassian.jira.plugin.system.customfieldtypes:cascadingselect', UIType.Cascading], ['com.atlassian.jira.plugin.system.customfieldtypes:atlassian-team', UIType.Select]]); |
{ | ||
"name": "@atlassianlabs/jira-pi-meta-models", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Meta Jira models for related jira-pi-clients", | ||
@@ -15,8 +15,8 @@ "repository": { | ||
"dependencies": { | ||
"@atlassianlabs/jira-pi-common-models": "^1.0.10", | ||
"@atlassianlabs/jira-pi-common-models": "^1.0.11", | ||
"@babel/runtime": ">=7.10.0" | ||
}, | ||
"gitHead": "73dd837ec68b4628a9056975bbbb0937eb4462d0", | ||
"gitHead": "5b2e28508c7e1c0140661a81d8308512e63daf99", | ||
"main": "./index.js", | ||
"typings": "./index.d.ts" | ||
} |
@@ -53,3 +53,4 @@ import { IssueLinkType } from '@atlassianlabs/jira-pi-common-models/entities'; | ||
Json = "json", | ||
Team = "team" | ||
Team = "team", | ||
SecurityLevel = "securitylevel" | ||
} | ||
@@ -56,0 +57,0 @@ export declare function valueTypeForString(s: string): ValueType; |
@@ -63,2 +63,3 @@ "use strict"; | ||
ValueType["Team"] = "team"; | ||
ValueType["SecurityLevel"] = "securitylevel"; | ||
return ValueType; | ||
@@ -127,2 +128,4 @@ }({}); // Note: Typescript doesn't include reverse mappings for string enums, so we need this method. | ||
return ValueType.Team; | ||
case 'securitylevel': | ||
return ValueType.SecurityLevel; | ||
default: | ||
@@ -193,4 +196,4 @@ return ValueType.String; | ||
// mutli-select, {id, name} | ||
[ValueType.Worklog, UIType.Worklog], [ValueType.Attachment, UIType.Attachment], [ValueType.Status, UIType.NonEditable], [ValueType.Transition, UIType.Select], [ValueType.Group, UIType.Select], [ValueType.Team, UIType.Select]]); | ||
[ValueType.Worklog, UIType.Worklog], [ValueType.Attachment, UIType.Attachment], [ValueType.Status, UIType.NonEditable], [ValueType.Transition, UIType.Select], [ValueType.Group, UIType.Select], [ValueType.Team, UIType.Select], [ValueType.SecurityLevel, UIType.Select]]); | ||
var schemaOptionToUIMap = exports.schemaOptionToUIMap = new Map([['com.atlassian.jira.plugin.system.customfieldtypes:select', UIType.Select], ['com.atlassian.jira.plugin.system.customfieldtypes:multiselect', UIType.Select], ['com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes', UIType.Checkbox], ['com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons', UIType.Radio], ['com.atlassian.plugins.atlassian-connect-plugin:io.tempo.jira__account', UIType.Select], ['com.atlassian.plugins.atlassian-connect-plugin:io.tempo.jira__team', UIType.Select]]); | ||
var customSchemaToUIMap = exports.customSchemaToUIMap = new Map([['com.pyxis.greenhopper.jira:gh-epic-link', UIType.Select], ['com.pyxis.greenhopper.jira:gh-epic-label', UIType.Input], ['com.pyxis.greenhopper.jira:gh-sprint', UIType.Select], [ValueType.Worklog, UIType.Worklog], [ValueType.Attachment, UIType.Attachment], ['com.atlassian.jira.toolkit:participants', UIType.Participants], ['com.atlassian.jira.plugin.system.customfieldtypes:cascadingselect', UIType.Cascading], ['com.atlassian.jira.plugin.system.customfieldtypes:atlassian-team', UIType.Select]]); |
37623
978