-
Notifications
You must be signed in to change notification settings - Fork 6
Add support for fetching and resolving issues #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| ### UnknownError | ||
|
|
||
| [(view source)](./src/error.ts) | ||
| Fallback error type when something unexpected happens. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Realised this was missing from the readme so I documented this as well!
| "rollup-plugin-esbuild": "^5.0.0", | ||
| "typedoc": "^0.24.7", | ||
| "typedoc-plugin-missing-exports": "^2.0.0", | ||
| "typescript": "^5.1.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to install typescript since pnpm is a lot stricter than npm (which is a good thing)
| * Resolve an issue for a customer. | ||
| */ | ||
| async resolveIssue( | ||
| input: VariablesOf<typeof ResolveIssueDocument>['input'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels a little 'raw' for an SDK, this could just be issueId and we construct the input
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what it is but just as a named argument (notice the 'input' at the end):
This means this is valid:
const foo = await client.resolveIssue({
issueId: 'it_123'
})There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or did you mean: resolveIssue('asda') would be nicer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latter
As part of this I've also moved all CI to use node 18 and pnpm.