jira.js icon indicating copy to clipboard operation
jira.js copied to clipboard

5.2.0+ Missing models/parameters in dist

Open matejdro opened this issue 3 months ago • 3 comments

It seems 5.2.0 version and onwards is missing all the classes in the models and parameters folders, in both cjs and esm:

Image

This causes code importing those to not build:

src/jira.ts:5:59 - error TS2307: Cannot find module 'jira.js/version3/parameters' or its corresponding type declarations.

5 import { SearchForIssuesUsingJqlEnhancedSearchPost } from 'jira.js/version3/parameters'

matejdro avatar Oct 03 '25 05:10 matejdro

Hi @matejdro! Please try this one:

import { Version3Parameters } from 'jira.js'

const search: Version3Parameters.SearchForIssuesUsingJqlEnhancedSearchPost;

MrRefactoring avatar Oct 03 '25 07:10 MrRefactoring

Thanks that works! Although it's not initially what IntelliJ/Webstorm wants to import. Maybe there is a discrepancy between the source files and the dist?

Maybe this could be added to one of the samples in the README?

matejdro avatar Oct 10 '25 05:10 matejdro

It’s strange that it suggests pulling this type from there, since I didn’t create an alias — but it looks like it would be possible to add one

MrRefactoring avatar Oct 10 '25 07:10 MrRefactoring