halo_msp_api 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +21 -24
- data/examples/basic_usage.rb +5 -0
- data/lib/halo_msp_api/resources/actions.rb +10 -10
- data/lib/halo_msp_api/resources/agents.rb +12 -12
- data/lib/halo_msp_api/resources/appointments.rb +6 -6
- data/lib/halo_msp_api/resources/assets.rb +22 -22
- data/lib/halo_msp_api/resources/base.rb +2 -1
- data/lib/halo_msp_api/resources/clients.rb +10 -10
- data/lib/halo_msp_api/resources/invoices.rb +17 -17
- data/lib/halo_msp_api/resources/knowledge_base.rb +15 -15
- data/lib/halo_msp_api/resources/reports.rb +5 -5
- data/lib/halo_msp_api/resources/services.rb +27 -27
- data/lib/halo_msp_api/resources/slas.rb +10 -10
- data/lib/halo_msp_api/resources/suppliers.rb +5 -5
- data/lib/halo_msp_api/resources/tickets.rb +40 -25
- data/lib/halo_msp_api/resources/users.rb +7 -7
- data/lib/halo_msp_api/resources/webhooks.rb +10 -10
- data/lib/halo_msp_api/version.rb +1 -1
- metadata +1 -1
@@ -68,22 +68,22 @@ module HaloMspApi
|
|
68
68
|
# Ticket Approval methods
|
69
69
|
# GET /TicketApproval - List Ticket approvals
|
70
70
|
def approvals(params = {})
|
71
|
-
|
71
|
+
list_resource('TicketApproval', params)
|
72
72
|
end
|
73
73
|
|
74
74
|
# GET /TicketApproval/{id} - Get specific Ticket approval
|
75
75
|
def approval(id, params = {})
|
76
|
-
|
76
|
+
get_resource('TicketApproval', id, params)
|
77
77
|
end
|
78
78
|
|
79
79
|
# GET /TicketApproval/{id}&{seq} - Get specific Ticket approval with sequence
|
80
80
|
def approval_with_sequence(id, seq, params = {})
|
81
|
-
|
81
|
+
get_resource('TicketApproval', "#{id}&#{seq}", params)
|
82
82
|
end
|
83
83
|
|
84
84
|
# POST /TicketApproval - Create Ticket approval
|
85
85
|
def create_approval(data)
|
86
|
-
|
86
|
+
create_resource('TicketApproval', data)
|
87
87
|
end
|
88
88
|
|
89
89
|
# PUT /TicketApproval/{id} - Update Ticket approval
|
@@ -99,110 +99,125 @@ module HaloMspApi
|
|
99
99
|
# Ticket Area methods
|
100
100
|
# GET /TicketArea - List Ticket areas
|
101
101
|
def areas(params = {})
|
102
|
-
|
102
|
+
list_resource('TicketArea', params)
|
103
103
|
end
|
104
104
|
|
105
105
|
# GET /TicketArea/{id} - Get specific Ticket area
|
106
106
|
def area(id, params = {})
|
107
|
-
|
107
|
+
get_resource('TicketArea', id, params)
|
108
108
|
end
|
109
109
|
|
110
110
|
# POST /TicketArea - Create Ticket area
|
111
111
|
def create_area(data)
|
112
|
-
|
112
|
+
create_resource('TicketArea', data)
|
113
113
|
end
|
114
114
|
|
115
115
|
# PUT /TicketArea/{id} - Update Ticket area
|
116
116
|
def update_area(id, data)
|
117
|
-
|
117
|
+
update_resource('TicketArea', id, data)
|
118
118
|
end
|
119
119
|
|
120
120
|
# DELETE /TicketArea/{id} - Delete Ticket area
|
121
121
|
def delete_area(id)
|
122
|
-
|
122
|
+
delete_resource('TicketArea', id)
|
123
123
|
end
|
124
124
|
|
125
125
|
# Ticket Rules methods
|
126
126
|
# GET /TicketRules - List Ticket rules
|
127
127
|
def rules(params = {})
|
128
|
-
|
128
|
+
list_resource('TicketRules', params)
|
129
129
|
end
|
130
130
|
|
131
131
|
# GET /TicketRules/{id} - Get specific Ticket rule
|
132
132
|
def rule(id, params = {})
|
133
|
-
|
133
|
+
get_resource('TicketRules', id, params)
|
134
134
|
end
|
135
135
|
|
136
136
|
# POST /TicketRules - Create Ticket rule
|
137
137
|
def create_rule(data)
|
138
|
-
|
138
|
+
create_resource('TicketRules', data)
|
139
139
|
end
|
140
140
|
|
141
141
|
# PUT /TicketRules/{id} - Update Ticket rule
|
142
142
|
def update_rule(id, data)
|
143
|
-
|
143
|
+
update_resource('TicketRules', id, data)
|
144
144
|
end
|
145
145
|
|
146
146
|
# DELETE /TicketRules/{id} - Delete Ticket rule
|
147
147
|
def delete_rule(id)
|
148
|
-
|
148
|
+
delete_resource('TicketRules', id)
|
149
149
|
end
|
150
150
|
|
151
151
|
# Ticket Type methods
|
152
152
|
# GET /TicketType - List Ticket types
|
153
153
|
def types(params = {})
|
154
|
-
|
154
|
+
list_resource('TicketType', params)
|
155
155
|
end
|
156
156
|
|
157
157
|
# GET /TicketType/{id} - Get specific Ticket type
|
158
158
|
def type(id, params = {})
|
159
|
-
|
159
|
+
get_resource('TicketType', id, params)
|
160
160
|
end
|
161
161
|
|
162
162
|
# POST /TicketType - Create Ticket type
|
163
163
|
def create_type(data)
|
164
|
-
|
164
|
+
create_resource('TicketType', data)
|
165
165
|
end
|
166
166
|
|
167
167
|
# PUT /TicketType/{id} - Update Ticket type
|
168
168
|
def update_type(id, data)
|
169
|
-
|
169
|
+
update_resource('TicketType', id, data)
|
170
170
|
end
|
171
171
|
|
172
172
|
# DELETE /TicketType/{id} - Delete Ticket type
|
173
173
|
def delete_type(id)
|
174
|
-
|
174
|
+
delete_resource('TicketType', id)
|
175
175
|
end
|
176
176
|
|
177
177
|
# GET /TicketTypeField - List Ticket type fields
|
178
178
|
def type_fields(params = {})
|
179
|
-
|
179
|
+
list_resource('TicketTypeField', params)
|
180
180
|
end
|
181
181
|
|
182
182
|
# Ticket Type Group methods
|
183
183
|
# GET /TicketTypeGroup - List Ticket type groups
|
184
184
|
def type_groups(params = {})
|
185
|
-
|
185
|
+
list_resource('TicketTypeGroup', params)
|
186
186
|
end
|
187
187
|
|
188
188
|
# GET /TicketTypeGroup/{id} - Get specific Ticket type group
|
189
189
|
def type_group(id, params = {})
|
190
|
-
|
190
|
+
get_resource('TicketTypeGroup', id, params)
|
191
191
|
end
|
192
192
|
|
193
193
|
# POST /TicketTypeGroup - Create Ticket type group
|
194
194
|
def create_type_group(data)
|
195
|
-
|
195
|
+
create_resource('TicketTypeGroup', data)
|
196
196
|
end
|
197
197
|
|
198
198
|
# PUT /TicketTypeGroup/{id} - Update Ticket type group
|
199
199
|
def update_type_group(id, data)
|
200
|
-
|
200
|
+
update_resource('TicketTypeGroup', id, data)
|
201
201
|
end
|
202
202
|
|
203
203
|
# DELETE /TicketTypeGroup/{id} - Delete Ticket type group
|
204
204
|
def delete_type_group(id)
|
205
|
-
|
205
|
+
delete_resource('TicketTypeGroup', id)
|
206
|
+
end
|
207
|
+
|
208
|
+
# GET /Status - List Ticket statuses
|
209
|
+
def statuses(params = {})
|
210
|
+
list_resource('Status', params)
|
211
|
+
end
|
212
|
+
|
213
|
+
# GET /Category - List Ticket categories
|
214
|
+
def categories(params = {})
|
215
|
+
list_resource('Category', params)
|
216
|
+
end
|
217
|
+
|
218
|
+
# GET /Lookup - List Tenant defined lookups
|
219
|
+
def lookups(params = {})
|
220
|
+
list_resource('Lookup', params)
|
206
221
|
end
|
207
222
|
end
|
208
223
|
end
|
@@ -42,38 +42,38 @@ module HaloMspApi
|
|
42
42
|
# User Change methods
|
43
43
|
# GET /UserChange - List User changes
|
44
44
|
def changes(params = {})
|
45
|
-
|
45
|
+
list_resource('UserChange', params)
|
46
46
|
end
|
47
47
|
|
48
48
|
# POST /UserChange - Create User change
|
49
49
|
def create_change(data)
|
50
|
-
|
50
|
+
create_resource('UserChange', data)
|
51
51
|
end
|
52
52
|
|
53
53
|
# User Roles methods
|
54
54
|
# GET /UserRoles - List User roles
|
55
55
|
def roles(params = {})
|
56
|
-
|
56
|
+
list_resource('UserRoles', params)
|
57
57
|
end
|
58
58
|
|
59
59
|
# GET /UserRoles/{id} - Get specific User role
|
60
60
|
def role(id, params = {})
|
61
|
-
|
61
|
+
get_resource('UserRoles', id, params)
|
62
62
|
end
|
63
63
|
|
64
64
|
# POST /UserRoles - Create User role
|
65
65
|
def create_role(data)
|
66
|
-
|
66
|
+
create_resource('UserRoles', data)
|
67
67
|
end
|
68
68
|
|
69
69
|
# PUT /UserRoles/{id} - Update User role
|
70
70
|
def update_role(id, data)
|
71
|
-
|
71
|
+
update_resource('UserRoles', id, data)
|
72
72
|
end
|
73
73
|
|
74
74
|
# DELETE /UserRoles/{id} - Delete User role
|
75
75
|
def delete_role(id)
|
76
|
-
|
76
|
+
delete_resource('UserRoles', id)
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
@@ -37,53 +37,53 @@ module HaloMspApi
|
|
37
37
|
# Webhook Event methods
|
38
38
|
# GET /WebhookEvent - List Webhook events
|
39
39
|
def events(params = {})
|
40
|
-
|
40
|
+
list_resource('WebhookEvent', params)
|
41
41
|
end
|
42
42
|
|
43
43
|
# GET /WebhookEvent/{id} - Get specific Webhook event
|
44
44
|
def event(id, params = {})
|
45
|
-
|
45
|
+
get_resource('WebhookEvent', id, params)
|
46
46
|
end
|
47
47
|
|
48
48
|
# POST /WebhookEvent - Create Webhook event
|
49
49
|
def create_event(data)
|
50
|
-
|
50
|
+
create_resource('WebhookEvent', data)
|
51
51
|
end
|
52
52
|
|
53
53
|
# PUT /WebhookEvent/{id} - Update Webhook event
|
54
54
|
def update_event(id, data)
|
55
|
-
|
55
|
+
update_resource('WebhookEvent', id, data)
|
56
56
|
end
|
57
57
|
|
58
58
|
# DELETE /WebhookEvent/{id} - Delete Webhook event
|
59
59
|
def delete_event(id)
|
60
|
-
|
60
|
+
delete_resource('WebhookEvent', id)
|
61
61
|
end
|
62
62
|
|
63
63
|
# Webhook Subscription methods
|
64
64
|
# GET /WebhookSubscription - List Webhook subscriptions
|
65
65
|
def subscriptions(params = {})
|
66
|
-
|
66
|
+
list_resource('WebhookSubscription', params)
|
67
67
|
end
|
68
68
|
|
69
69
|
# GET /WebhookSubscription/{id} - Get specific Webhook subscription
|
70
70
|
def subscription(id, params = {})
|
71
|
-
|
71
|
+
get_resource('WebhookSubscription', id, params)
|
72
72
|
end
|
73
73
|
|
74
74
|
# POST /WebhookSubscription - Create Webhook subscription
|
75
75
|
def create_subscription(data)
|
76
|
-
|
76
|
+
create_resource('WebhookSubscription', data)
|
77
77
|
end
|
78
78
|
|
79
79
|
# PUT /WebhookSubscription/{id} - Update Webhook subscription
|
80
80
|
def update_subscription(id, data)
|
81
|
-
|
81
|
+
update_resource('WebhookSubscription', id, data)
|
82
82
|
end
|
83
83
|
|
84
84
|
# DELETE /WebhookSubscription/{id} - Delete Webhook subscription
|
85
85
|
def delete_subscription(id)
|
86
|
-
|
86
|
+
delete_resource('WebhookSubscription', id)
|
87
87
|
end
|
88
88
|
end
|
89
89
|
end
|
data/lib/halo_msp_api/version.rb
CHANGED