Closed harjotgill closed 5 months ago
This is what I came up with based on what I see in the Webhook event for the DiffNote:
export interface DiscussionNotePositionTextLineSchema {
line_code?: string;
type?: 'new' | 'old';
old_line?: number;
new_line?: number;
}
export interface DiscussionNotePositionLineRangeSchema {
start?: DiscussionNotePositionTextLineSchema;
end?: DiscussionNotePositionTextLineSchema;
}
export type DiscussionNotePositionTextSchema = DiscussionNotePositionBaseSchema & {
position_type: 'text';
new_line?: string;
old_line?: string;
line_range?: DiscussionNotePositionLineRangeSchema;
};
:rocket: Issue was released in 40.0.3
:rocket:
Description
Missing
line_range
field in theposition
schema for DiscussionNotePositionTextSchema.Steps to reproduce
Expected behaviour
Actual behaviour
Possible fixes
Checklist