forked from jpoehls/go-conduit
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support maniphest.gettasktransactions
- Loading branch information
Showing
5 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package entities | ||
|
||
import "github.com/etcinit/gonduit/util" | ||
|
||
// ManiphestTaskTranscation represents a single task's transcation on Maniphest. | ||
type ManiphestTaskTranscation struct { | ||
TaskID string `json:"taskID"` | ||
TransactionID string `json:"transactionID"` | ||
TransactionPHID string `json:"transactionPHID"` | ||
TransactionType string `json:"transactionType"` | ||
OldValue interface{} `json:"oldValue"` | ||
NewValue interface{} `json:"newValue"` | ||
Comments string `json:"comments"` | ||
AuthorPHID string `json:"authorPHID"` | ||
DateCreated util.UnixTimestamp `json:"dateCreated"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package requests | ||
|
||
// ManiphestGetTaskTransactions represents a request to maniphest.gettasktransactions. | ||
type ManiphestGetTaskTransactions struct { | ||
IDs []string `json:"ids"` | ||
Request | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package responses | ||
|
||
import "github.com/etcinit/gonduit/entities" | ||
|
||
// ManiphestGetTaskTransactionsResponse is the response of calling maniphest.query. | ||
type ManiphestGetTaskTransactionsResponse map[string][]*entities.ManiphestTaskTranscation |