@atlassianlabs/jira-pi-meta-models
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -142,2 +142,25 @@ export var UIType; | ||
} | ||
export var emptyIssueTypeUI = { | ||
siteDetails: { | ||
baseApiUrl: '', | ||
isCloud: true | ||
}, | ||
apiVersion: 2, | ||
fields: {}, | ||
fieldValues: {}, | ||
selectFieldOptions: {}, | ||
nonRenderableFields: [], | ||
hasRequiredNonRenderables: false | ||
}; | ||
export function createEmptyIssueTypeUI(emptySiteDetails) { | ||
return { | ||
siteDetails: emptySiteDetails, | ||
apiVersion: 2, | ||
fields: {}, | ||
fieldValues: {}, | ||
selectFieldOptions: {}, | ||
nonRenderableFields: [], | ||
hasRequiredNonRenderables: false | ||
}; | ||
} | ||
export var multiSelectSchemas = ['components', 'fixVersions', 'labels', 'com.atlassian.jira.plugin.system.customfieldtypes:labels', 'versions', 'issuelinks', 'subtasks', 'com.atlassian.jira.plugin.system.customfieldtypes:multiselect', 'com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker', 'com.atlassian.jira.plugin.system.customfieldtypes:multigrouppicker']; | ||
@@ -144,0 +167,0 @@ export var createableSelectSchemas = ['components', 'fixVersions', 'labels', 'com.atlassian.jira.plugin.system.customfieldtypes:labels', 'versions', 'subtasks']; |
{ | ||
"name": "@atlassianlabs/jira-pi-meta-models", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Meta Jira models for related jira-pi-clients", | ||
@@ -15,6 +15,7 @@ "repository": { | ||
"dependencies": { | ||
"@atlassianlabs/jira-pi-common-models": "^0.1.0" | ||
"@atlassianlabs/jira-pi-common-models": "^0.1.1" | ||
}, | ||
"gitHead": "138506aa8f62428de15eb793d77e4989f0404aab", | ||
"main": "./index.js", | ||
"typings": "./index.d.ts" | ||
} |
@@ -102,2 +102,4 @@ import { IssueLinkType } from '@atlassianlabs/jira-pi-common-models/entities'; | ||
}; | ||
export declare const emptyIssueTypeUI: IssueTypeUI<JiraSiteInfo>; | ||
export declare function createEmptyIssueTypeUI<S extends JiraSiteInfo>(emptySiteDetails: S): IssueTypeUI<S>; | ||
export interface FieldProblem { | ||
@@ -104,0 +106,0 @@ key: string; |
@@ -8,3 +8,4 @@ "use strict"; | ||
exports.isSelectFieldUI = isSelectFieldUI; | ||
exports.customSchemaToUIMap = exports.schemaOptionToUIMap = exports.schemaTypeToUIMap = exports.multiLineStringSchemas = exports.createableSelectSchemas = exports.multiSelectSchemas = exports.ValueType = exports.UIType = void 0; | ||
exports.createEmptyIssueTypeUI = createEmptyIssueTypeUI; | ||
exports.customSchemaToUIMap = exports.schemaOptionToUIMap = exports.schemaTypeToUIMap = exports.multiLineStringSchemas = exports.createableSelectSchemas = exports.multiSelectSchemas = exports.emptyIssueTypeUI = exports.ValueType = exports.UIType = void 0; | ||
var UIType; | ||
@@ -156,2 +157,28 @@ exports.UIType = UIType; | ||
var emptyIssueTypeUI = { | ||
siteDetails: { | ||
baseApiUrl: '', | ||
isCloud: true | ||
}, | ||
apiVersion: 2, | ||
fields: {}, | ||
fieldValues: {}, | ||
selectFieldOptions: {}, | ||
nonRenderableFields: [], | ||
hasRequiredNonRenderables: false | ||
}; | ||
exports.emptyIssueTypeUI = emptyIssueTypeUI; | ||
function createEmptyIssueTypeUI(emptySiteDetails) { | ||
return { | ||
siteDetails: emptySiteDetails, | ||
apiVersion: 2, | ||
fields: {}, | ||
fieldValues: {}, | ||
selectFieldOptions: {}, | ||
nonRenderableFields: [], | ||
hasRequiredNonRenderables: false | ||
}; | ||
} | ||
var multiSelectSchemas = ['components', 'fixVersions', 'labels', 'com.atlassian.jira.plugin.system.customfieldtypes:labels', 'versions', 'issuelinks', 'subtasks', 'com.atlassian.jira.plugin.system.customfieldtypes:multiselect', 'com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker', 'com.atlassian.jira.plugin.system.customfieldtypes:multigrouppicker']; | ||
@@ -158,0 +185,0 @@ exports.multiSelectSchemas = multiSelectSchemas; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33487
853
0