20 lines
627 B
Go
20 lines
627 B
Go
package itemevents
|
|
|
|
type extractionResponse struct {
|
|
Events []itemEventResponse `json:"events"`
|
|
}
|
|
|
|
type itemEventResponse struct {
|
|
Name string `json:"name"`
|
|
Kind string `json:"kind"`
|
|
Quantity *int `json:"quantity,omitempty"`
|
|
From string `json:"from,omitempty"`
|
|
To string `json:"to,omitempty"`
|
|
SourceRefs []itemEventSourceRefResponse `json:"source_refs"`
|
|
}
|
|
|
|
type itemEventSourceRefResponse struct {
|
|
StartSegment int `json:"start_segment"`
|
|
EndSegment int `json:"end_segment"`
|
|
}
|