lws 6.2.2.1 → 6.2.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/CHANGELOG.md +7 -0
- data/lib/lws/apps/auth.rb +10 -108
- data/lib/lws/apps/corporate_website.rb +0 -60
- data/lib/lws/apps/digital_signage.rb +0 -384
- data/lib/lws/apps/generic.rb +20 -0
- data/lib/lws/apps/maps.rb +0 -36
- data/lib/lws/apps/presence.rb +0 -60
- data/lib/lws/apps/resource.rb +7 -35
- data/lib/lws/apps/ticket.rb +0 -63
- data/lib/lws/version.rb +1 -1
- metadata +2 -2
data/lib/lws/apps/generic.rb
CHANGED
@@ -87,6 +87,26 @@ module LWS::Generic
|
|
87
87
|
api
|
88
88
|
end
|
89
89
|
|
90
|
+
# @!attribute id [r]
|
91
|
+
# @return [Integer] the (unique) ID of the model
|
92
|
+
attribute :id
|
93
|
+
|
94
|
+
# @!attribute created_at [r]
|
95
|
+
# @return [String] the timestamp of when the app was created
|
96
|
+
attribute :created_at
|
97
|
+
|
98
|
+
# @!attribute updated_at [r]
|
99
|
+
# @return [String] the timestamp of when the app was last updated
|
100
|
+
attribute :updated_at
|
101
|
+
|
102
|
+
# @!attribute url [r]
|
103
|
+
# @return [String] the URL of the model on the REST API
|
104
|
+
attribute :url
|
105
|
+
|
106
|
+
# @!attribute url_html [r]
|
107
|
+
# @return [String] the URL of the web/HTML page of the model
|
108
|
+
attribute :url_html
|
109
|
+
|
90
110
|
# @private
|
91
111
|
# @!visibility private
|
92
112
|
#
|
data/lib/lws/apps/maps.rb
CHANGED
@@ -39,10 +39,6 @@ module LWS::Maps
|
|
39
39
|
class Map < LWS::Generic::Model
|
40
40
|
use_api LWS::Maps.api
|
41
41
|
|
42
|
-
# @!attribute id [r]
|
43
|
-
# @return [Integer] the (unique) ID of the map
|
44
|
-
attribute :id
|
45
|
-
|
46
42
|
# @!attribute company
|
47
43
|
# @return [LWS::Auth::Company] the company that maintains/owns the map
|
48
44
|
belongs_to :company, class_name: "LWS::Auth::Company"
|
@@ -66,24 +62,12 @@ module LWS::Maps
|
|
66
62
|
# @!attribute source_id
|
67
63
|
# @return [Integer] the ID of the map source used for tiling the map
|
68
64
|
attribute :source_id
|
69
|
-
|
70
|
-
# @!attribute created_at [r]
|
71
|
-
# @return [String] the timestamp of when the map was created
|
72
|
-
attribute :created_at
|
73
|
-
|
74
|
-
# @!attribute updated_at [r]
|
75
|
-
# @return [String] the timestamp of when the map was last updated
|
76
|
-
attribute :updated_at
|
77
65
|
end
|
78
66
|
|
79
67
|
# = The map marker class
|
80
68
|
class Marker < LWS::Generic::Model
|
81
69
|
use_api LWS::Maps.api
|
82
70
|
|
83
|
-
# @!attribute id [r]
|
84
|
-
# @return [Integer] the (unique) ID of the map marker
|
85
|
-
attribute :id
|
86
|
-
|
87
71
|
# @attribute lat
|
88
72
|
# @return [String, nil] the latitude of the map marker
|
89
73
|
attribute :lat
|
@@ -107,24 +91,12 @@ module LWS::Maps
|
|
107
91
|
# @attribute website
|
108
92
|
# @return [String, nil] the website URL of the map marker
|
109
93
|
attribute :website
|
110
|
-
|
111
|
-
# @!attribute created_at [r]
|
112
|
-
# @return [String] the timestamp of when the map marker was created
|
113
|
-
attribute :created_at
|
114
|
-
|
115
|
-
# @!attribute updated_at [r]
|
116
|
-
# @return [String] the timestamp of when the map marker was last updated
|
117
|
-
attribute :updated_at
|
118
94
|
end
|
119
95
|
|
120
96
|
# = The map source class
|
121
97
|
class Source < LWS::Generic::Model
|
122
98
|
use_api LWS::Maps.api
|
123
99
|
|
124
|
-
# @!attribute id [r]
|
125
|
-
# @return [Integer] the (unique) ID of the map source
|
126
|
-
attribute :id
|
127
|
-
|
128
100
|
# @!attribute key
|
129
101
|
# @return [String] the key used by the map implementation to select the
|
130
102
|
# map source
|
@@ -137,14 +109,6 @@ module LWS::Maps
|
|
137
109
|
# @!attribute name
|
138
110
|
# @return [String] the name of the map source
|
139
111
|
attribute :name
|
140
|
-
|
141
|
-
# @!attribute created_at [r]
|
142
|
-
# @return [String] the timestamp of when the map source was created
|
143
|
-
attribute :created_at
|
144
|
-
|
145
|
-
# @!attribute updated_at [r]
|
146
|
-
# @return [String] the timestamp of when the map source was last updated
|
147
|
-
attribute :updated_at
|
148
112
|
end
|
149
113
|
|
150
114
|
end
|
data/lib/lws/apps/presence.rb
CHANGED
@@ -39,10 +39,6 @@ module LWS::Presence
|
|
39
39
|
class Location < LWS::Generic::Model
|
40
40
|
use_api LWS::Presence.api
|
41
41
|
|
42
|
-
# @!attribute id [r]
|
43
|
-
# @return [Integer] the (unique) ID of the location
|
44
|
-
attribute :id
|
45
|
-
|
46
42
|
# @!attribute ancestor_ids
|
47
43
|
# @return [Array<Integer>] the ID of the locations that containt the location,
|
48
44
|
# including the location itself
|
@@ -151,14 +147,6 @@ module LWS::Presence
|
|
151
147
|
# @!attribute readers
|
152
148
|
# @return [Array<Reader>] the (RFID/code/ID/...) readers linked to this location
|
153
149
|
has_many :readers
|
154
|
-
|
155
|
-
# @!attribute created_at [r]
|
156
|
-
# @return [String] the timestamp of when the location was created
|
157
|
-
attribute :created_at
|
158
|
-
|
159
|
-
# @!attribute updated_at [r]
|
160
|
-
# @return [String] the timestamp of when the location was last updated
|
161
|
-
attribute :updated_at
|
162
150
|
end
|
163
151
|
|
164
152
|
# = The location map class
|
@@ -169,10 +157,6 @@ module LWS::Presence
|
|
169
157
|
use_api LWS::Presence.api
|
170
158
|
uri "locations/:location_id/maps(/:id)"
|
171
159
|
|
172
|
-
# @!attribute id [r]
|
173
|
-
# @return [Integer] the (unique) ID of the location
|
174
|
-
attribute :id
|
175
|
-
|
176
160
|
# @!attribute location
|
177
161
|
# @return [Location] the location the map belongs to
|
178
162
|
belongs_to :location
|
@@ -198,14 +182,6 @@ module LWS::Presence
|
|
198
182
|
# @return [Array<Location::Map::Position>] the positions linked to this
|
199
183
|
# map
|
200
184
|
has_many :positions
|
201
|
-
|
202
|
-
# @!attribute created_at [r]
|
203
|
-
# @return [String] the timestamp of when the location was created
|
204
|
-
attribute :created_at
|
205
|
-
|
206
|
-
# @!attribute updated_at [r]
|
207
|
-
# @return [String] the timestamp of when the location was last updated
|
208
|
-
attribute :updated_at
|
209
185
|
end
|
210
186
|
|
211
187
|
# = The map position class
|
@@ -216,10 +192,6 @@ module LWS::Presence
|
|
216
192
|
use_api LWS::Presence.api
|
217
193
|
uri "locations/:location_id/maps/:location_map_id/positions(/:id)"
|
218
194
|
|
219
|
-
# @!attribute id [r]
|
220
|
-
# @return [Integer] the (unique) ID of the location
|
221
|
-
attribute :id
|
222
|
-
|
223
195
|
# @!attribute height
|
224
196
|
# @return [Integer] the height of the position on the map in percentage
|
225
197
|
attribute :height
|
@@ -265,24 +237,12 @@ module LWS::Presence
|
|
265
237
|
# @!attribute y_pos
|
266
238
|
# @return [Integer] the y_pos of the position on the map in percentage
|
267
239
|
attribute :y_pos
|
268
|
-
|
269
|
-
# @!attribute created_at [r]
|
270
|
-
# @return [String] the timestamp of when the location was created
|
271
|
-
attribute :created_at
|
272
|
-
|
273
|
-
# @!attribute updated_at [r]
|
274
|
-
# @return [String] the timestamp of when the location was last updated
|
275
|
-
attribute :updated_at
|
276
240
|
end
|
277
241
|
|
278
242
|
# = The person class
|
279
243
|
class Person < LWS::Generic::Model
|
280
244
|
use_api LWS::Presence.api
|
281
245
|
|
282
|
-
# @!attribute id [r]
|
283
|
-
# @return [Integer] the (unique) ID of the person
|
284
|
-
attribute :id
|
285
|
-
|
286
246
|
# @!attribute company
|
287
247
|
# @return [LWS::Auth::Company] the company the person belongs to
|
288
248
|
belongs_to :company, class_name: "LWS::Auth::Company"
|
@@ -385,24 +345,12 @@ module LWS::Presence
|
|
385
345
|
# @!attribute visibility
|
386
346
|
# @return ["public", "private"] if a person should be protected by not showing critical information
|
387
347
|
attribute :visibility
|
388
|
-
|
389
|
-
# @!attribute created_at [r]
|
390
|
-
# @return [String] the timestamp of when the person was created
|
391
|
-
attribute :created_at
|
392
|
-
|
393
|
-
# @!attribute updated_at [r]
|
394
|
-
# @return [String] the timestamp of when the person was last updated
|
395
|
-
attribute :updated_at
|
396
348
|
end
|
397
349
|
|
398
350
|
# = The reader class
|
399
351
|
class Reader < LWS::Generic::Model
|
400
352
|
use_api LWS::Presence.api
|
401
353
|
|
402
|
-
# @!attribute id [r]
|
403
|
-
# @return [Integer] the (unique) ID of the reader
|
404
|
-
attribute :id
|
405
|
-
|
406
354
|
# @!attribute gateway
|
407
355
|
# @return [Integer] the (32-bit) LCIO gateway ID of the reader
|
408
356
|
attribute :gateway
|
@@ -418,14 +366,6 @@ module LWS::Presence
|
|
418
366
|
# @!attribute node
|
419
367
|
# @return [Integer] the (8-bit) LCIO gateway node number of the reader
|
420
368
|
attribute :node
|
421
|
-
|
422
|
-
# @!attribute created_at [r]
|
423
|
-
# @return [String] the timestamp of when the reader was created
|
424
|
-
attribute :created_at
|
425
|
-
|
426
|
-
# @!attribute updated_at [r]
|
427
|
-
# @return [String] the timestamp of when the reader was last updated
|
428
|
-
attribute :updated_at
|
429
369
|
end
|
430
370
|
|
431
371
|
end
|
data/lib/lws/apps/resource.rb
CHANGED
@@ -45,10 +45,6 @@ module LWS::Resource
|
|
45
45
|
class Collection < LWS::Generic::Model
|
46
46
|
use_api LWS::Resource.api
|
47
47
|
|
48
|
-
# @!attribute id [r]
|
49
|
-
# @return [Integer] the (unique) ID of the collection
|
50
|
-
attribute :id
|
51
|
-
|
52
48
|
# @!attribute account
|
53
49
|
# @return [LWS::Auth::Account] the account of the user that created the
|
54
50
|
# collection
|
@@ -67,6 +63,10 @@ module LWS::Resource
|
|
67
63
|
# @return [Integer] the ID of the company the collection belongs to
|
68
64
|
attribute :company_id
|
69
65
|
|
66
|
+
# @!attribute email
|
67
|
+
# @return [String, nil] the email address used for email imports
|
68
|
+
attribute :email
|
69
|
+
|
70
70
|
# @!attribute folder
|
71
71
|
# @return [Folder] the folder that the collection is filed in
|
72
72
|
belongs_to :folder
|
@@ -100,13 +100,9 @@ module LWS::Resource
|
|
100
100
|
# @return [String] the URL of a preview of the collection
|
101
101
|
attribute :preview_url
|
102
102
|
|
103
|
-
# @!attribute
|
104
|
-
# @return [String] the
|
105
|
-
attribute :
|
106
|
-
|
107
|
-
# @!attribute updated_at [r]
|
108
|
-
# @return [String] the timestamp of when the collection was last updated
|
109
|
-
attribute :updated_at
|
103
|
+
# @!attribute uuid
|
104
|
+
# @return [String] the UUID used for unique file name generation
|
105
|
+
attribute :uuid
|
110
106
|
|
111
107
|
|
112
108
|
# @!group Collection Items Attribute Summary
|
@@ -154,10 +150,6 @@ module LWS::Resource
|
|
154
150
|
use_api LWS::Resource.api
|
155
151
|
uri "collections/:collection_id/items(/:id)"
|
156
152
|
|
157
|
-
# @!attribute id [r]
|
158
|
-
# @return [Integer] the (unique) ID of the collection item
|
159
|
-
attribute :id
|
160
|
-
|
161
153
|
# @!attribute collection
|
162
154
|
# @return [Collection] the collection that the collection item is a
|
163
155
|
# part of
|
@@ -171,14 +163,6 @@ module LWS::Resource
|
|
171
163
|
# @!attribute name
|
172
164
|
# @return [String] the name of the collection item
|
173
165
|
attribute :name
|
174
|
-
|
175
|
-
# @!attribute created_at [r]
|
176
|
-
# @return [String] the timestamp of when the collection item was created
|
177
|
-
attribute :created_at
|
178
|
-
|
179
|
-
# @!attribute updated_at [r]
|
180
|
-
# @return [String] the timestamp of when the collection item was last updated
|
181
|
-
attribute :updated_at
|
182
166
|
end
|
183
167
|
|
184
168
|
# = The collection post class
|
@@ -427,10 +411,6 @@ module LWS::Resource
|
|
427
411
|
class Folder < LWS::Generic::Model
|
428
412
|
use_api LWS::Resource.api
|
429
413
|
|
430
|
-
# @!attribute id [r]
|
431
|
-
# @return [Integer] the (unique) ID of the folder
|
432
|
-
attribute :id
|
433
|
-
|
434
414
|
# @!attribute account
|
435
415
|
# @return [LWS::Auth::Account] the account of the user that created
|
436
416
|
# the folder
|
@@ -473,14 +453,6 @@ module LWS::Resource
|
|
473
453
|
# @!attribute parent_id
|
474
454
|
# @return [Integer, nil] the ID of the parent folder of the folder
|
475
455
|
attribute :parent_id
|
476
|
-
|
477
|
-
# @!attribute created_at [r]
|
478
|
-
# @return [String] the timestamp of when the folder was created
|
479
|
-
attribute :created_at
|
480
|
-
|
481
|
-
# @!attribute updated_at [r]
|
482
|
-
# @return [String] the timestamp of when the folder was last updated
|
483
|
-
attribute :updated_at
|
484
456
|
end
|
485
457
|
|
486
458
|
end
|
data/lib/lws/apps/ticket.rb
CHANGED
@@ -39,10 +39,6 @@ module LWS::Ticket
|
|
39
39
|
class Attachment < LWS::Generic::Model
|
40
40
|
use_api LWS::Ticket.api
|
41
41
|
|
42
|
-
# @!attribute id [r]
|
43
|
-
# @return [Integer] the (unique) ID of the ticket message attachment
|
44
|
-
attribute :id
|
45
|
-
|
46
42
|
# @!attribute av_scanned_at
|
47
43
|
# @return [String, nil] the timestamp of when an anti-virus scan on the
|
48
44
|
# attached file was performed
|
@@ -73,26 +69,12 @@ module LWS::Ticket
|
|
73
69
|
# @return [String] the URL to the attachment that can be used to
|
74
70
|
# download it
|
75
71
|
attribute :url
|
76
|
-
|
77
|
-
# @!attribute created_at [r]
|
78
|
-
# @return [String] the timestamp of when the ticket message attachment
|
79
|
-
# was created
|
80
|
-
attribute :created_at
|
81
|
-
|
82
|
-
# @!attribute updated_at [r]
|
83
|
-
# @return [String] the timestamp of when the ticket message attachment
|
84
|
-
# was last updated
|
85
|
-
attribute :updated_at
|
86
72
|
end
|
87
73
|
|
88
74
|
# = The ticket group class
|
89
75
|
class Group < LWS::Generic::Model
|
90
76
|
use_api LWS::Ticket.api
|
91
77
|
|
92
|
-
# @!attribute id [r]
|
93
|
-
# @return [Integer] the (unique) ID of the ticket group
|
94
|
-
attribute :id
|
95
|
-
|
96
78
|
# @!attribute name
|
97
79
|
# @return [String] the name of the ticket group
|
98
80
|
attribute :name
|
@@ -105,24 +87,12 @@ module LWS::Ticket
|
|
105
87
|
# @return [Array<Ticket>] the tickets that are assigned to the ticket
|
106
88
|
# group
|
107
89
|
has_many :tickets
|
108
|
-
|
109
|
-
# @!attribute created_at [r]
|
110
|
-
# @return [String] the timestamp of when the ticket group was created
|
111
|
-
attribute :created_at
|
112
|
-
|
113
|
-
# @!attribute updated_at [r]
|
114
|
-
# @return [String] the timestamp of when the ticket group was last updated
|
115
|
-
attribute :updated_at
|
116
90
|
end
|
117
91
|
|
118
92
|
# = The ticket message class
|
119
93
|
class Message < LWS::Generic::Model
|
120
94
|
use_api LWS::Ticket.api
|
121
95
|
|
122
|
-
# @!attribute id [r]
|
123
|
-
# @return [Integer] the (unique) ID of the ticket message
|
124
|
-
attribute :id
|
125
|
-
|
126
96
|
# @!attribute account
|
127
97
|
# @return [LWS::Auth::Account] the account of the user that created the
|
128
98
|
# ticket message
|
@@ -170,25 +140,12 @@ module LWS::Ticket
|
|
170
140
|
# @!attribute ticket_id
|
171
141
|
# @return [Integer] the ID of the ticket associated with the message
|
172
142
|
attribute :ticket_id
|
173
|
-
|
174
|
-
# @!attribute created_at [r]
|
175
|
-
# @return [String] the timestamp of when the ticket message was created
|
176
|
-
attribute :created_at
|
177
|
-
|
178
|
-
# @!attribute updated_at [r]
|
179
|
-
# @return [String] the timestamp of when the ticket message was last
|
180
|
-
# updated
|
181
|
-
attribute :updated_at
|
182
143
|
end
|
183
144
|
|
184
145
|
# = The ticket tag class
|
185
146
|
class Tag < LWS::Generic::Model
|
186
147
|
use_api LWS::Ticket.api
|
187
148
|
|
188
|
-
# @!attribute id [r]
|
189
|
-
# @return [Integer] the (unique) ID of the ticket tag
|
190
|
-
attribute :id
|
191
|
-
|
192
149
|
# @!attribute description
|
193
150
|
# @return [String, nil] the description of the ticket tag
|
194
151
|
attribute :description
|
@@ -209,24 +166,12 @@ module LWS::Ticket
|
|
209
166
|
# @!attribute tickets
|
210
167
|
# @return [Array<Ticket>] the ticket associated with the tag
|
211
168
|
has_many :tickets
|
212
|
-
|
213
|
-
# @!attribute created_at [r]
|
214
|
-
# @return [String] the timestamp of when the ticket tag was created
|
215
|
-
attribute :created_at
|
216
|
-
|
217
|
-
# @!attribute updated_at [r]
|
218
|
-
# @return [String] the timestamp of when the ticket tag was last updated
|
219
|
-
attribute :updated_at
|
220
169
|
end
|
221
170
|
|
222
171
|
# = The ticket class
|
223
172
|
class Ticket < LWS::Generic::Model
|
224
173
|
use_api LWS::Ticket.api
|
225
174
|
|
226
|
-
# @!attribute id [r]
|
227
|
-
# @return [Integer] the (unique) ID of the ticket
|
228
|
-
attribute :id
|
229
|
-
|
230
175
|
# @!attribute account
|
231
176
|
# @return [LWS::Auth::Account] the account of the user that created the
|
232
177
|
# ticket
|
@@ -319,14 +264,6 @@ module LWS::Ticket
|
|
319
264
|
# @!attribute title
|
320
265
|
# @return [String] the title (short description) of the ticket
|
321
266
|
attribute :title
|
322
|
-
|
323
|
-
# @!attribute created_at [r]
|
324
|
-
# @return [String] the timestamp of when the ticket was created
|
325
|
-
attribute :created_at
|
326
|
-
|
327
|
-
# @!attribute updated_at [r]
|
328
|
-
# @return [String] the timestamp of when the ticket was last updated
|
329
|
-
attribute :updated_at
|
330
267
|
end
|
331
268
|
|
332
269
|
end
|