shift_planning_client 0.0.2 → 0.0.3
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/lib/shift_planning/client.rb +163 -0
- data/lib/shift_planning/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e89c4ef24a47cc95c70cd829e7a40c8dd05b404
|
4
|
+
data.tar.gz: 55588f2976080b4e6882d28afa836046ac1efdb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f82dcc1edf7ca28fd13fde66aae3d5317343fdb3d885ae7eec08aa11f4fa71fc5f1b69a87948385e67e20ec6d6d73206ce94890ebf529b38174b4df4e6bff07d
|
7
|
+
data.tar.gz: 116a2f4d13c65dfcc111fd598300e8ebc498f10623a3cc1f59a4dcea5be4b4957b5e7f176c4caf19e4daf7041d73a0bc1acb3b68aa6206c57327181468da44ce
|
@@ -196,6 +196,169 @@ class ShiftPlanning::Client
|
|
196
196
|
|
197
197
|
m.get :publish_note, [:id]
|
198
198
|
end
|
199
|
+
|
200
|
+
api_module :messaging do |m|
|
201
|
+
m.get :messages
|
202
|
+
|
203
|
+
m.get :message, [:id]
|
204
|
+
m.create :message, [:subject, :message, :to]
|
205
|
+
m.update :message, [:id]
|
206
|
+
m.delete :message, [:id]
|
207
|
+
|
208
|
+
m.create :shift, [:subject, :message, :id]
|
209
|
+
|
210
|
+
m.get :wall
|
211
|
+
m.create :wall, [:post]
|
212
|
+
m.delete :wall, [:id, :delete]
|
213
|
+
|
214
|
+
m.get :notices
|
215
|
+
|
216
|
+
m.get :notice, [:id]
|
217
|
+
m.create :notice
|
218
|
+
m.update :notice, [:id]
|
219
|
+
m.delete :notice, [:id]
|
220
|
+
end
|
221
|
+
|
222
|
+
api_module :payroll do |m|
|
223
|
+
m.get :report, [:type]
|
224
|
+
|
225
|
+
m.get :enhancedreport
|
226
|
+
|
227
|
+
m.get :ratecards
|
228
|
+
|
229
|
+
m.get :ratecard, [:id]
|
230
|
+
m.create :ratecard, [:name]
|
231
|
+
m.update :ratecard, [:id]
|
232
|
+
m.delete :ratecard, [:id]
|
233
|
+
end
|
234
|
+
|
235
|
+
api_module :availability do |m|
|
236
|
+
m.get :available, [:start_date]
|
237
|
+
|
238
|
+
m.get :weekly
|
239
|
+
m.update :weekly, [:flag]
|
240
|
+
m.delete :weekly, [:start_time, :end_time]
|
241
|
+
|
242
|
+
m.get :future
|
243
|
+
m.create :future, [:start_date]
|
244
|
+
m.update :future, [:id, :flag]
|
245
|
+
m.delete :future, [:id]
|
246
|
+
|
247
|
+
m.get :approve, [:type]
|
248
|
+
m.create :approve
|
249
|
+
m.update :approve, [:user, :type, :action]
|
250
|
+
end
|
251
|
+
|
252
|
+
api_module :admin do |m|
|
253
|
+
m.get :settings
|
254
|
+
m.update :settings
|
255
|
+
|
256
|
+
m.get :details
|
257
|
+
m.update :details
|
258
|
+
|
259
|
+
m.get :files
|
260
|
+
|
261
|
+
m.get :file, [:id]
|
262
|
+
m.create :file, [:filename, :filedata, :filelength, :mimetype]
|
263
|
+
m.update :file, [:id]
|
264
|
+
m.delete :file, [:id]
|
265
|
+
|
266
|
+
m.get :backups
|
267
|
+
|
268
|
+
m.get :backup, [:id]
|
269
|
+
m.create :backup, [:filename, :filedata, :filelength, :mimetype]
|
270
|
+
m.delete :backup, [:id]
|
271
|
+
|
272
|
+
m.get :nrequests
|
273
|
+
|
274
|
+
m.get :business
|
275
|
+
|
276
|
+
m.get :group_perms
|
277
|
+
m.update :group_perms, [:group_perms]
|
278
|
+
end
|
279
|
+
|
280
|
+
api_module :reports do |m|
|
281
|
+
m.get :schedule, [:start_date, :end_date, :type]
|
282
|
+
|
283
|
+
m.get :budget, [:start_date, :end_date]
|
284
|
+
|
285
|
+
m.get :timesheets, [:start_date, :end_date, :type]
|
286
|
+
|
287
|
+
m.get :employee, [:start_date, :end_date, :type]
|
288
|
+
|
289
|
+
m.get :custom, [:fields, :start_date, :end_date, :type]
|
290
|
+
|
291
|
+
m.get :daily_peak_hours_new, [:start_date, :end_date]
|
292
|
+
|
293
|
+
m.get :daily_peak_hours, [:start_date, :end_date]
|
294
|
+
|
295
|
+
m.get :google, [:start_date, :end_date]
|
296
|
+
|
297
|
+
m.get :workunits
|
298
|
+
|
299
|
+
m.get :mu_daily_report
|
300
|
+
end
|
301
|
+
|
302
|
+
api_module :training do |m|
|
303
|
+
m.get :sections
|
304
|
+
|
305
|
+
m.get :section, [:id]
|
306
|
+
m.create :section, [:title]
|
307
|
+
m.update :section, [:id, :title]
|
308
|
+
m.delete :section, [:id]
|
309
|
+
|
310
|
+
m.get :modules
|
311
|
+
|
312
|
+
m.get :module, [:id]
|
313
|
+
m.create :module, [:title]
|
314
|
+
m.update :module, [:id]
|
315
|
+
m.delete :module, [:id]
|
316
|
+
|
317
|
+
m.update :complete, [:id]
|
318
|
+
|
319
|
+
m.update :reorder, [:mode]
|
320
|
+
|
321
|
+
m.get :digital_signature, [:module_id]
|
322
|
+
|
323
|
+
m.get :comments, [:module_id, :type]
|
324
|
+
m.update :comments, [:module_id, :type]
|
325
|
+
|
326
|
+
m.update :sync, [:id]
|
327
|
+
|
328
|
+
m.update :quiz, [:answer]
|
329
|
+
|
330
|
+
m.update :multiassign, [:assignments, :modules, :mode]
|
331
|
+
|
332
|
+
m.get :tutorial, [:tutorial_id]
|
333
|
+
end
|
334
|
+
|
335
|
+
api_module :group do |m|
|
336
|
+
m.get :accounts
|
337
|
+
m.create :accounts, [:accounts]
|
338
|
+
|
339
|
+
m.get :account, [:id]
|
340
|
+
m.create :account
|
341
|
+
m.update :account, [:id]
|
342
|
+
m.delete :account, [:id]
|
343
|
+
|
344
|
+
m.create :accountsplit, [:location, :main_user_id]
|
345
|
+
|
346
|
+
m.get :reports, [:start_date, :end_date, :type]
|
347
|
+
end
|
348
|
+
|
349
|
+
api_module :sales do |m|
|
350
|
+
m.get :budgets, [:start_date, :end_date]
|
351
|
+
|
352
|
+
m.get :budget, [:start_date, :end_date]
|
353
|
+
m.create :budget, [:start_date, :end_date]
|
354
|
+
m.update :budget, [:start_date, :end_date]
|
355
|
+
m.delete :budget, [:start_date, :end_date]
|
356
|
+
end
|
357
|
+
|
358
|
+
api_module :dashboard do |m|
|
359
|
+
m.get :onnow
|
360
|
+
m.get :notifications
|
361
|
+
end
|
199
362
|
end
|
200
363
|
|
201
364
|
def api_module(name, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shift_planning_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Askar Zinurov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|