/
sm_request.go
118 lines (104 loc) · 4.93 KB
/
sm_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package models
type ServiceRequestOptionScheme struct {
ApprovalStatus, RequestStatus, SearchTerm string
OrganizationID, ServiceDeskID int
RequestTypeID int
Expand, RequestOwnerships []string
}
type CustomerRequestTransitionPageScheme struct {
Size int `json:"size,omitempty"`
Start int `json:"start,omitempty"`
Limit int `json:"limit,omitempty"`
IsLastPage bool `json:"isLastPage,omitempty"`
Values []*CustomerRequestTransitionScheme `json:"values,omitempty"`
Expands []string `json:"_expands,omitempty"`
Links *CustomerRequestTransitionPageLinkScheme `json:"_links,omitempty"`
}
type CustomerRequestTransitionScheme struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
type CustomerRequestTransitionPageLinkScheme struct {
Self string `json:"self,omitempty"`
Base string `json:"base,omitempty"`
Context string `json:"context,omitempty"`
Next string `json:"next,omitempty"`
Prev string `json:"prev,omitempty"`
}
type CustomerRequestPageScheme struct {
Size int `json:"size,omitempty"`
Start int `json:"start,omitempty"`
Limit int `json:"limit,omitempty"`
IsLastPage bool `json:"isLastPage,omitempty"`
Values []*CustomerRequestScheme `json:"values,omitempty"`
Expands []string `json:"_expands,omitempty"`
Links *CustomerRequestsLinksScheme `json:"_links,omitempty"`
}
type CustomerRequestsLinksScheme struct {
Self string `json:"self,omitempty"`
Base string `json:"base,omitempty"`
Context string `json:"context,omitempty"`
Next string `json:"next,omitempty"`
Prev string `json:"prev,omitempty"`
}
type CustomerRequestTypeScheme struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
HelpText string `json:"helpText,omitempty"`
IssueTypeID string `json:"issueTypeId,omitempty"`
ServiceDeskID string `json:"serviceDeskId,omitempty"`
GroupIds []string `json:"groupIds,omitempty"`
}
type CustomerRequestServiceDeskScheme struct {
ID string `json:"id,omitempty"`
ProjectID string `json:"projectId,omitempty"`
ProjectName string `json:"projectName,omitempty"`
ProjectKey string `json:"projectKey,omitempty"`
}
type CustomerRequestDateScheme struct {
Iso8601 string `json:"iso8601,omitempty"`
Jira string `json:"jira,omitempty"`
Friendly string `json:"friendly,omitempty"`
EpochMillis int `json:"epochMillis,omitempty"`
}
type CustomerRequestReporterScheme struct {
AccountID string `json:"accountId,omitempty"`
Name string `json:"name,omitempty"`
Key string `json:"key,omitempty"`
EmailAddress string `json:"emailAddress,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Active bool `json:"active,omitempty"`
TimeZone string `json:"timeZone,omitempty"`
}
type CustomerRequestRequestFieldValueScheme struct {
FieldID string `json:"fieldId,omitempty"`
Label string `json:"label,omitempty"`
Value interface{} `json:"value,omitempty"`
}
type CustomerRequestCurrentStatusScheme struct {
Status string `json:"status,omitempty"`
StatusCategory string `json:"statusCategory,omitempty"`
StatusDate struct {
} `json:"statusDate,omitempty"`
}
type CustomerRequestLinksScheme struct {
Self string `json:"self,omitempty"`
JiraRest string `json:"jiraRest,omitempty"`
Web string `json:"web,omitempty"`
Agent string `json:"agent,omitempty"`
}
type CustomerRequestScheme struct {
IssueID string `json:"issueId,omitempty"`
IssueKey string `json:"issueKey,omitempty"`
RequestTypeID string `json:"requestTypeId,omitempty"`
RequestType *CustomerRequestTypeScheme `json:"requestType,omitempty"`
ServiceDeskID string `json:"serviceDeskId,omitempty"`
ServiceDesk *CustomerRequestServiceDeskScheme `json:"serviceDesk,omitempty"`
CreatedDate *CustomerRequestDateScheme `json:"createdDate,omitempty"`
Reporter *CustomerRequestReporterScheme `json:"reporter,omitempty"`
RequestFieldValues []*CustomerRequestRequestFieldValueScheme `json:"requestFieldValues,omitempty"`
CurrentStatus *CustomerRequestCurrentStatusScheme `json:"currentStatus,omitempty"`
Expands []string `json:"_expands,omitempty"`
Links *CustomerRequestLinksScheme `json:"_links,omitempty"`
}