lws 9.0.0 → 9.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lws/apps/auth.rb +51 -0
- data/lib/lws/apps/corporate_website.rb +5 -0
- data/lib/lws/apps/digital_signage.rb +271 -5
- data/lib/lws/apps/generic.rb +29 -1
- data/lib/lws/apps/maps.rb +9 -1
- data/lib/lws/apps/presence.rb +53 -0
- data/lib/lws/apps/resource.rb +28 -74
- data/lib/lws/apps/ticket.rb +23 -0
- data/lib/lws/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb45ec2506f9fd04eb49e0c1f93963abbf26d3ab0ee3c613fd9912a799f190ca
|
4
|
+
data.tar.gz: 493c7dce245f07ca9715ac954078edabefd4d5771c69023f04b1710bd4bf22b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0d79ee284170f38c5be9ab66fc5a5c67e2fbcf85593d0cde02c73a1e6df0d10379f8ef76778bb5c0a8aff73d6ed750c119466c1038192ed3466bc5601162ccd
|
7
|
+
data.tar.gz: eaddf89999075ac539ada4c691f741724dc44b5b4a5cccb854e90b923243a62a49044e5114989064c409fbf411e565b8873b965ac5a0fa09d05185f31d09c47d
|
data/lib/lws/apps/auth.rb
CHANGED
@@ -43,6 +43,11 @@ module LWS::Auth
|
|
43
43
|
# @return [String] the avatar URL of the account
|
44
44
|
attribute :avatar_url
|
45
45
|
|
46
|
+
# @!attribute app_ids
|
47
|
+
# @return [Array<Integer>] the IDS of the apps that are assigned to the
|
48
|
+
# account
|
49
|
+
attribute :app_ids
|
50
|
+
|
46
51
|
# @!attribute apps
|
47
52
|
# @return [Array<App>] the apps that are assigned to the account
|
48
53
|
has_many :apps
|
@@ -55,6 +60,11 @@ module LWS::Auth
|
|
55
60
|
# @return [Integer] the ID of the company that the account belongs to
|
56
61
|
attribute :company_id
|
57
62
|
|
63
|
+
# @!attribute device_ids
|
64
|
+
# @return [Array<Integer>] the IDs of the devices that are assigned to the
|
65
|
+
# account
|
66
|
+
attribute :device_ids
|
67
|
+
|
58
68
|
# @!attribute devices
|
59
69
|
# @return [Array<Device>] the devices that are assigned to the account
|
60
70
|
has_many :devices
|
@@ -69,6 +79,11 @@ module LWS::Auth
|
|
69
79
|
# (at least 8 characters long)
|
70
80
|
attribute :name
|
71
81
|
|
82
|
+
# @!attribute user_ids
|
83
|
+
# @return [Array<Integer>] the IDS of the users that are assigned to the
|
84
|
+
# account
|
85
|
+
attribute :user_ids
|
86
|
+
|
72
87
|
# @!attribute users
|
73
88
|
# @return [Array<User>] the users that are assigned to the account
|
74
89
|
has_many :users
|
@@ -78,6 +93,10 @@ module LWS::Auth
|
|
78
93
|
class App < LWS::Generic::Model
|
79
94
|
use_api LWS::Auth.api
|
80
95
|
|
96
|
+
# @!attribute account_ids
|
97
|
+
# @return [Array<Integer>] the IDs of the accounts using the app
|
98
|
+
attribute :account_ids
|
99
|
+
|
81
100
|
# @!attribute accounts
|
82
101
|
# @return [Array<Account>] the accounts using the app
|
83
102
|
has_many :accounts
|
@@ -91,6 +110,10 @@ module LWS::Auth
|
|
91
110
|
# a newly created account and/or company
|
92
111
|
attribute :autoassign
|
93
112
|
|
113
|
+
# @!attribute company_ids
|
114
|
+
# @return [Array<Integer>] the IDS of the companies using the app
|
115
|
+
attribute :company_ids
|
116
|
+
|
94
117
|
# @!attribute companies
|
95
118
|
# @return [Array<Company>] the companies using the app
|
96
119
|
has_many :companies
|
@@ -99,6 +122,11 @@ module LWS::Auth
|
|
99
122
|
# @return [String] the icon ID/name of the app
|
100
123
|
attribute :icon
|
101
124
|
|
125
|
+
# @!attribute license_ids
|
126
|
+
# @return [Array<Integer>] the IDs of the licenses that provide access to
|
127
|
+
# the app
|
128
|
+
attribute :license_ids
|
129
|
+
|
102
130
|
# @!attribute licenses
|
103
131
|
# @return [Array<License>] the licenses that provide access to the app
|
104
132
|
has_many :licenses
|
@@ -125,6 +153,11 @@ module LWS::Auth
|
|
125
153
|
class Company < LWS::Generic::Model
|
126
154
|
use_api LWS::Auth.api
|
127
155
|
|
156
|
+
# @!attribute account_ids
|
157
|
+
# @return [Array<Integer>] the IDs of the accounts that are assigned to
|
158
|
+
# the company
|
159
|
+
attribute :account_ids
|
160
|
+
|
128
161
|
# @!attribute accounts
|
129
162
|
# @return [Array<Account>] the accounts that are assigned to the company
|
130
163
|
has_many :accounts
|
@@ -133,6 +166,11 @@ module LWS::Auth
|
|
133
166
|
# @return [Boolean] whether the company has been activated
|
134
167
|
attribute :activated
|
135
168
|
|
169
|
+
# @!attribute app_ids
|
170
|
+
# @return [Array<Integer>] the IDs of the apps that are assigned to the
|
171
|
+
# company
|
172
|
+
attribute :app_ids
|
173
|
+
|
136
174
|
# @!attribute apps
|
137
175
|
# @return [Array<App>] the apps that are assigned to the company
|
138
176
|
has_many :apps
|
@@ -157,6 +195,10 @@ module LWS::Auth
|
|
157
195
|
# @return [Integer] the ID of the contact person of the company
|
158
196
|
attribute :contact_person_id
|
159
197
|
|
198
|
+
# @!attribute contracts
|
199
|
+
# @return [Array<Integer>] the IDs of the contracts of the company
|
200
|
+
attribute :contract_ids
|
201
|
+
|
160
202
|
# @!attribute contracts
|
161
203
|
# @return [Array<Contract>] the contracts of the company
|
162
204
|
has_many :contracts, uri: "companies/:company_id/contracts(/:id)"
|
@@ -171,6 +213,10 @@ module LWS::Auth
|
|
171
213
|
# after the contract ends
|
172
214
|
attribute :expire
|
173
215
|
|
216
|
+
# @!attribute licence_ids
|
217
|
+
# @return [Array<Integer>] the IDs of the licenses that provide access to the app
|
218
|
+
attribute :license_ids
|
219
|
+
|
174
220
|
# @!attribute licenses
|
175
221
|
# @return [Array<License>] the licenses of the company
|
176
222
|
has_many :licenses, uri: "companies/:company_id/licenses(/:id)"
|
@@ -205,6 +251,11 @@ module LWS::Auth
|
|
205
251
|
# (at least 2 characters long)
|
206
252
|
attribute :telephone_number
|
207
253
|
|
254
|
+
# @!attribute usage_report_ids
|
255
|
+
# @return [Array<Integer>] the IDs of the usage reports
|
256
|
+
# available/generated for the company
|
257
|
+
attribute :usage_report_ids
|
258
|
+
|
208
259
|
# @!attribute usage_reports
|
209
260
|
# @return [Array<UsageReport>] the usage reports available/generated
|
210
261
|
# for the company
|
@@ -132,6 +132,11 @@ module LWS::CorporateWebsite
|
|
132
132
|
class Page < LWS::Generic::Model
|
133
133
|
use_api LWS::CorporateWebsite.api
|
134
134
|
|
135
|
+
# @!attribute article_ids
|
136
|
+
# @return [Array<Integer>] the IDs of the articles that are part of the
|
137
|
+
# page
|
138
|
+
attribute :article_ids
|
139
|
+
|
135
140
|
# @!attribute articles
|
136
141
|
# @return [Array<Article>] the articles that are part of the page
|
137
142
|
has_many :articles,
|
@@ -74,6 +74,10 @@ module LWS::DigitalSignage
|
|
74
74
|
# @return [Integer] the ID of the display of the channel
|
75
75
|
attribute :display_id
|
76
76
|
|
77
|
+
# @!attribute group_ids
|
78
|
+
# @return [Array<Integer>] the IDs of the groups the channel is a member of
|
79
|
+
attribute :group_ids
|
80
|
+
|
77
81
|
# @!attribute groups
|
78
82
|
# @return [Array<Channel::Group>] the groups the channel is a member of
|
79
83
|
has_many :groups, class_name: "LWS::DigitalSignage::Channel::Group"
|
@@ -101,6 +105,10 @@ module LWS::DigitalSignage
|
|
101
105
|
# network connection
|
102
106
|
attribute :persistent_connection
|
103
107
|
|
108
|
+
# @!attribute player_ids
|
109
|
+
# @return [Array<Integer>] the IDs of the players linked to the channel
|
110
|
+
attribute :player_ids
|
111
|
+
|
104
112
|
# @!attribute players
|
105
113
|
# @return [Array<Player>] the players linked to the channel
|
106
114
|
has_many :players, class_name: "LWS::DigitalSignage::Player"
|
@@ -109,10 +117,18 @@ module LWS::DigitalSignage
|
|
109
117
|
# @return [Boolean] whether remote control is enabled for the channel
|
110
118
|
attribute :remote_control
|
111
119
|
|
120
|
+
# @!attribute slide_ids
|
121
|
+
# @return [Array<Integer>] the IDs of the slides schedules on the channel
|
122
|
+
attribute :slide_ids
|
123
|
+
|
112
124
|
# @!attribute slides
|
113
125
|
# @return [Array<Slide>] the slides schedules on the channel
|
114
126
|
has_many :slides, class_name: "LWS::DigitalSignage::Slide"
|
115
127
|
|
128
|
+
# @!attribute tag_ids
|
129
|
+
# @return [Array<Integer>] the IDs of the tags of the channel
|
130
|
+
attribute :tag_ids
|
131
|
+
|
116
132
|
# @!attribute tags
|
117
133
|
# @return [Array<Channel::Tag>] the tags of the channel
|
118
134
|
has_many :tags, class_name: "LWS::DigitalSignage::Channel::Tag"
|
@@ -126,6 +142,11 @@ module LWS::DigitalSignage
|
|
126
142
|
# @return [Integer] the ID of the time schedule of the channel
|
127
143
|
attribute :time_schedule_id
|
128
144
|
|
145
|
+
# @!attribute time_schedule_override_ids
|
146
|
+
# @return [Array<Integer>] the IDs of the time schedule overrides of the
|
147
|
+
# channel
|
148
|
+
attribute :time_schedule_override_ids
|
149
|
+
|
129
150
|
# @!attribute time_schedule_overrides
|
130
151
|
# @return [Array<Channel::TimeScheduleOverride>] the time schedule
|
131
152
|
# overrides of the channel
|
@@ -145,6 +166,11 @@ module LWS::DigitalSignage
|
|
145
166
|
use_api LWS::DigitalSignage.api
|
146
167
|
uri "channel/groups(/:id)"
|
147
168
|
|
169
|
+
# @!attribute channel_ids
|
170
|
+
# @return [Array<Integer>] the IDs of the channels that are part of the
|
171
|
+
# channel group
|
172
|
+
attribute :channel_ids
|
173
|
+
|
148
174
|
# @!attribute channels
|
149
175
|
# @return [Array<Channel>] the channels that are part of the channel group
|
150
176
|
has_many :channels, class_name: "LWS::DigitalSignage::Channel",
|
@@ -172,15 +198,29 @@ module LWS::DigitalSignage
|
|
172
198
|
# @return [Integer, nil] the ID of the parent group of the channel group
|
173
199
|
attribute :parent_id
|
174
200
|
|
201
|
+
# @!attribute slide_ids
|
202
|
+
# @return [Array<Integer>] the IDs of the slides schedules on the channel
|
203
|
+
# group
|
204
|
+
attribute :slide_ids
|
205
|
+
|
175
206
|
# @!attribute slides
|
176
207
|
# @return [Array<Slide>] the slides schedules on the channel group
|
177
208
|
has_many :slides, class_name: "LWS::DigitalSignage::Slide"
|
178
209
|
|
210
|
+
#@!attribute tag_ids
|
211
|
+
# @return [Array<Integer>] the IDs of the tags of the channel group
|
212
|
+
attribute :tag_ids
|
213
|
+
|
179
214
|
#@!attribute tags
|
180
215
|
# @return [Array<Channel::Group::Tag>] the tags of the channel group
|
181
216
|
has_many :tags, class_name: "LWS::DigitalSignage::Channel::Group::Tag",
|
182
217
|
uri: "channel/groups/:group_id/tags(/:id)"
|
183
218
|
|
219
|
+
# @!attribute time_schedule_override_ids
|
220
|
+
# @return [Array<Integer>] the IDs of the time schedule overrides of the
|
221
|
+
# channel group
|
222
|
+
attribute :time_schedule_override_ids
|
223
|
+
|
184
224
|
# @!attribute time_schedule_overrides
|
185
225
|
# @return [Array<Channel::TimeScheduleOverride>] the time schedule overrides of the channel group
|
186
226
|
has_many :time_schedule_overrides, class_name: "LWS::DigitalSignage::Channel::TimeScheduleOverride",
|
@@ -260,11 +300,21 @@ module LWS::DigitalSignage
|
|
260
300
|
# @return [Integer] the ID of the company the channel time schedule belongs to
|
261
301
|
attribute :company_id
|
262
302
|
|
303
|
+
# @!attribute channel_ids
|
304
|
+
# @return [Array<Integer>] the IDs of the channels using the time
|
305
|
+
# schedule
|
306
|
+
attribute :channel_ids
|
307
|
+
|
263
308
|
# @!attribute channels
|
264
309
|
# @return [Array<Channel>] the channels using the time schedule
|
265
310
|
has_many :channels, class_name: "LWS::DigitalSignage::Channel",
|
266
311
|
uri: "channel/time_schedules/:time_schedule_id/channels(/:id)"
|
267
312
|
|
313
|
+
# @!attribute day_ids
|
314
|
+
# @return [Array<Integer>] the IDs of the days included in the channel
|
315
|
+
# time schedule
|
316
|
+
attribute :day_ids
|
317
|
+
|
268
318
|
# @!attribute days
|
269
319
|
# @return [Array<Channel::TimeSchedule::Day>] the days included in the
|
270
320
|
# channel time schedule
|
@@ -313,6 +363,11 @@ module LWS::DigitalSignage
|
|
313
363
|
use_api LWS::DigitalSignage.api
|
314
364
|
uri "channel/time_schedule_overrides(/:id)"
|
315
365
|
|
366
|
+
# @!attribute channel_ids
|
367
|
+
# @return [Array<Integer>] the IDs of the channels using the time
|
368
|
+
# schedule override
|
369
|
+
attribute :channel_ids
|
370
|
+
|
316
371
|
# @!attribute channels
|
317
372
|
# @return [Array<Channel>] the channels using the time schedule override
|
318
373
|
has_many :channels, class_name: "LWS::DigitalSignage::Channel",
|
@@ -330,7 +385,12 @@ module LWS::DigitalSignage
|
|
330
385
|
# @return [String] the end date (inclusive) of the channel time schedule override
|
331
386
|
attribute :end
|
332
387
|
|
333
|
-
# @!attribute
|
388
|
+
# @!attribute group_ids
|
389
|
+
# @return [Array<Integer>] the IDs of the channel groups using the time
|
390
|
+
# schedule override
|
391
|
+
attribute :group_ids
|
392
|
+
|
393
|
+
# @!attribute groups
|
334
394
|
# @return [Array<Channel::Group>] the channel groups using the time schedule override
|
335
395
|
has_many :groups, class_name: "LWS::DigitalSignage::Channel::Group",
|
336
396
|
uri: "channel/time_schedule_overrides/:time_schedule_override_id/groups(/:id)"
|
@@ -364,6 +424,10 @@ module LWS::DigitalSignage
|
|
364
424
|
# @return [String] the baud rate of the RS232 connection to the display
|
365
425
|
attribute :baud_rate
|
366
426
|
|
427
|
+
# @!attribute channel_ids
|
428
|
+
# @return [Array<Integer>] the IDs of the channels using the display
|
429
|
+
attribute :channel_ids
|
430
|
+
|
367
431
|
# @!attribute channels
|
368
432
|
# @return [Array<Channel>] the channels using the display
|
369
433
|
has_many :channels, class_name: "LWS::DigitalSignage::Channel"
|
@@ -372,6 +436,10 @@ module LWS::DigitalSignage
|
|
372
436
|
# @return [String] the data bits setting of the RS232 connection to the display
|
373
437
|
attribute :data_bits
|
374
438
|
|
439
|
+
# @!attribute input_ids
|
440
|
+
# @return [Array<Integer>] the IDs of the inputs supported by the display
|
441
|
+
attribute :input_ids
|
442
|
+
|
375
443
|
# @!attribute inputs
|
376
444
|
# @return [Array<Display::Input>] the inputs supported by the display
|
377
445
|
has_many :inputs, class_name: "LWS::DigitalSignage::Display::Input"
|
@@ -409,6 +477,10 @@ module LWS::DigitalSignage
|
|
409
477
|
# @return [String, nil] the result of the feedback command to turn the display off via the RS232 connection
|
410
478
|
attribute :power_off_feedback_result
|
411
479
|
|
480
|
+
# @!attribute resolution_ids
|
481
|
+
# @return [Array<Integer>] the IDs of the resolutions supported by the display
|
482
|
+
attribute :resolution_ids
|
483
|
+
|
412
484
|
# @!attribute resolutions
|
413
485
|
# @return [Array<Display::Resolution>] the resolutions supported by the display
|
414
486
|
has_many :resolutions, class_name: "LWS::DigitalSignage::Display::Resolution"
|
@@ -473,6 +545,11 @@ module LWS::DigitalSignage
|
|
473
545
|
# @return [String] the aspect ratio of the resolution
|
474
546
|
attribute :aspect_ratio
|
475
547
|
|
548
|
+
# @!attribute display_ids
|
549
|
+
# @return [Array<Integer>] the IDs of the displays supporting the display
|
550
|
+
# resolution
|
551
|
+
attribute :display_ids
|
552
|
+
|
476
553
|
# @!attribute displays
|
477
554
|
# @return [Array<Display>] the displays supporting the display resolution
|
478
555
|
has_many :displays, class_name: "LWS::DigitalSignage::Display",
|
@@ -482,6 +559,11 @@ module LWS::DigitalSignage
|
|
482
559
|
# @return [Integer] the height of the resolution
|
483
560
|
attribute :height
|
484
561
|
|
562
|
+
# @!attribute model_ids
|
563
|
+
# @return [Array<Integer>] the IDs of the player models that support the
|
564
|
+
# display resolution
|
565
|
+
attribute :model_ids
|
566
|
+
|
485
567
|
# @!attribute models
|
486
568
|
# @return [Array<Player::Model>] the player models that support the
|
487
569
|
# display resolution
|
@@ -581,6 +663,10 @@ module LWS::DigitalSignage
|
|
581
663
|
# layout
|
582
664
|
attribute :rotation
|
583
665
|
|
666
|
+
# @!attribute slide_ids
|
667
|
+
# @return [Array<Integer>] the IDs of the slides using the layout
|
668
|
+
attribute :slide_ids
|
669
|
+
|
584
670
|
# @!attribute slides
|
585
671
|
# @return [Array<Slide>] the slides using the layout
|
586
672
|
has_many :slides, class_name: "LWS::DigitalSignage::Slide",
|
@@ -604,6 +690,10 @@ module LWS::DigitalSignage
|
|
604
690
|
# @return [Integer] the duration of the transition of the entire layout
|
605
691
|
attribute :trans_duration
|
606
692
|
|
693
|
+
# @!attribute version_ids
|
694
|
+
# @return [Array<Integer>] the IDs of the versions of the layout
|
695
|
+
attribute :version_ids
|
696
|
+
|
607
697
|
# @!attribute versions
|
608
698
|
# @return [Array<Version>] the versions of the layout
|
609
699
|
has_many :versions, class_name: "LWS::DigitalSignage::Layout::Version",
|
@@ -619,6 +709,11 @@ module LWS::DigitalSignage
|
|
619
709
|
# @return [String, nil] the description of the layout category
|
620
710
|
attribute :description
|
621
711
|
|
712
|
+
# @!attribute layout_ids
|
713
|
+
# @return [Array<Integer>] the IDs of the layouts that are associated
|
714
|
+
# with the category
|
715
|
+
attribute :layout_ids
|
716
|
+
|
622
717
|
# @!attribute layouts
|
623
718
|
# @return [Array<Layout>] the layouts that are associated with
|
624
719
|
# the category
|
@@ -653,6 +748,11 @@ module LWS::DigitalSignage
|
|
653
748
|
# @return [Array<Hash{String => String}>] the assets of the layout element
|
654
749
|
attribute :asset_urls
|
655
750
|
|
751
|
+
# @!attribute customizable_ids
|
752
|
+
# @return [Array<Integer>] the IDs of the customizable properties of the
|
753
|
+
# layout element
|
754
|
+
attribute :customizable_ids
|
755
|
+
|
656
756
|
# @!attribute customizables
|
657
757
|
# @return [Array<Layout::Element::Customizable>] the customizable properties
|
658
758
|
# of the layout element
|
@@ -683,6 +783,10 @@ module LWS::DigitalSignage
|
|
683
783
|
# @return [Integer, nil] the ID of the parent of the layout element
|
684
784
|
attribute :parent_id
|
685
785
|
|
786
|
+
# @!attribute property_ids
|
787
|
+
# @return [Array<Integer>] the IDs of the properties of the layout element
|
788
|
+
attribute :property_ids
|
789
|
+
|
686
790
|
# @!attribute properties
|
687
791
|
# @return [Array<Layout::Element::Property>] the properties of the layout
|
688
792
|
# element
|
@@ -803,6 +907,11 @@ module LWS::DigitalSignage
|
|
803
907
|
# version (if accessible)
|
804
908
|
attribute :archive_url
|
805
909
|
|
910
|
+
# @!attribute element_ids
|
911
|
+
# @return [Array<Integer>] the IDs of the elements contained in the
|
912
|
+
# layout version
|
913
|
+
attribute :element_ids
|
914
|
+
|
806
915
|
# @!attribute elements
|
807
916
|
# @return [Array<Layout::Element>] the elements contained in the layout
|
808
917
|
# version
|
@@ -863,6 +972,10 @@ module LWS::DigitalSignage
|
|
863
972
|
# @return [Integer] the ID of the company the player belongs to
|
864
973
|
attribute :company_id
|
865
974
|
|
975
|
+
# @!attribute component_ids
|
976
|
+
# @return [Array<Integer>] the IDs of the components of the player
|
977
|
+
attribute :component_ids
|
978
|
+
|
866
979
|
# @!attribute components
|
867
980
|
# @return [Array<Player::Component>] the components of the player
|
868
981
|
has_many :components, class_name: "LWS::DigitalSignage::Player::Component"
|
@@ -888,6 +1001,10 @@ module LWS::DigitalSignage
|
|
888
1001
|
# @return [String] the hostname used by the player (for DHCP for example)
|
889
1002
|
attribute :hostname
|
890
1003
|
|
1004
|
+
# @!attribute log_ids
|
1005
|
+
# @return [Array<Integer>] the IDs of the logs of the player
|
1006
|
+
attribute :log_ids
|
1007
|
+
|
891
1008
|
# @!attribute logs
|
892
1009
|
# @return [Array<Player::Log>] the logs of the player
|
893
1010
|
has_many :logs, class_name: "LWS::DigitalSignage::Player::Log"
|
@@ -913,6 +1030,10 @@ module LWS::DigitalSignage
|
|
913
1030
|
# @return [String] the name of the player
|
914
1031
|
attribute :name
|
915
1032
|
|
1033
|
+
# @!attribute notification_ids
|
1034
|
+
# @return [Array<Integer>] the IDs of the notifications for the player
|
1035
|
+
attribute :notification_ids
|
1036
|
+
|
916
1037
|
# @!attribute notifications
|
917
1038
|
# @return [Array<Player::Notification>] the notifications for the player
|
918
1039
|
has_many :notifications, class_name: "LWS::DigitalSignage::Player::Notification"
|
@@ -930,6 +1051,10 @@ module LWS::DigitalSignage
|
|
930
1051
|
# @return [String, nil] the OS version the player is using (if known)
|
931
1052
|
attribute :os_release_version
|
932
1053
|
|
1054
|
+
# @!attribute part_ids
|
1055
|
+
# @return [Array<Integer>] the IDs of the parts of the player
|
1056
|
+
attribute :part_ids
|
1057
|
+
|
933
1058
|
# @!attribute parts
|
934
1059
|
# @return [Array<Player::Component::Part>] the parts of the player
|
935
1060
|
has_many :parts, class_name: "LWS::DigitalSignage::Player::Component::Part"
|
@@ -953,10 +1078,18 @@ module LWS::DigitalSignage
|
|
953
1078
|
# player
|
954
1079
|
attribute :release_channel_id
|
955
1080
|
|
1081
|
+
# @!attribute request_ids
|
1082
|
+
# @return [Array<Integer>] the IDs of the requests for the player
|
1083
|
+
attribute :request_ids
|
1084
|
+
|
956
1085
|
# @!attribute requests
|
957
1086
|
# @return [Array<Player::Request>] the requests for the player
|
958
1087
|
has_many :requests, class_name: "LWS::DigitalSignage::Player::Request"
|
959
1088
|
|
1089
|
+
# @!attribute screenshot_ids
|
1090
|
+
# @return [Array<Integer>] the IDs of the screenshots of the player
|
1091
|
+
attribute :screenshot_ids
|
1092
|
+
|
960
1093
|
# @!attribute screenshots
|
961
1094
|
# @return [Array<Player::Screenshot>] the screenshots of the player
|
962
1095
|
has_many :screenshots, class_name: "LWS::DigitalSignage::Player::Screenshot"
|
@@ -987,6 +1120,10 @@ module LWS::DigitalSignage
|
|
987
1120
|
# @return [String] the date/time the status was last updated
|
988
1121
|
attribute :status_updated_at
|
989
1122
|
|
1123
|
+
# @!attribute tag_ids
|
1124
|
+
# @return [Array<Tag>] the IDs of the tags of the player
|
1125
|
+
attribute :tag_ids
|
1126
|
+
|
990
1127
|
# @!attribute tags
|
991
1128
|
# @return [Array<Player::Tag>] the tags of the player
|
992
1129
|
has_many :tags, class_name: "LWS::DigitalSignage::Player::Tag"
|
@@ -1001,6 +1138,11 @@ module LWS::DigitalSignage
|
|
1001
1138
|
# @return [String, nil] the description of the player component
|
1002
1139
|
attribute :description
|
1003
1140
|
|
1141
|
+
# @!attribute model_ids
|
1142
|
+
# @return [Array<Integer>] the IDs of the player models that use the
|
1143
|
+
# component
|
1144
|
+
attribute :model_ids
|
1145
|
+
|
1004
1146
|
# @!attribute models
|
1005
1147
|
# @return [Array<Player::Model>] the player models that use the component
|
1006
1148
|
has_many :models, class_name: "LWS::DigitalSignage::Player::Model",
|
@@ -1010,6 +1152,10 @@ module LWS::DigitalSignage
|
|
1010
1152
|
# @return [String] the name of the player component
|
1011
1153
|
attribute :name
|
1012
1154
|
|
1155
|
+
# @!attribute part_ids
|
1156
|
+
# @return [Array<Integer>] the IDs of the parts the component is made out of
|
1157
|
+
attribute :part_ids
|
1158
|
+
|
1013
1159
|
# @!attribute parts
|
1014
1160
|
# @return [Array<Player::Component::Part>] the parts the component is made out of
|
1015
1161
|
has_many :parts, class_name: "LWS::DigitalSignage::Player::Component::Part",
|
@@ -1082,6 +1228,11 @@ module LWS::DigitalSignage
|
|
1082
1228
|
# @return [String] the name of the player configuration
|
1083
1229
|
attribute :name
|
1084
1230
|
|
1231
|
+
# @!attribute player_ids
|
1232
|
+
# @return [Array<Integer>] the IDs of the players the configuration is
|
1233
|
+
# used for
|
1234
|
+
attribute :player_ids
|
1235
|
+
|
1085
1236
|
# @!attribute players
|
1086
1237
|
# @return [Array<Player>] the players the configuration is used for
|
1087
1238
|
has_many :players, class_name: "LWS::DigitalSignage::Player",
|
@@ -1098,8 +1249,14 @@ module LWS::DigitalSignage
|
|
1098
1249
|
# as a basis for the player configuration
|
1099
1250
|
attribute :predefined_configuration_id
|
1100
1251
|
|
1252
|
+
# @!attribute setting_ids
|
1253
|
+
# @return [Array<Integer>] the IDs of the settings of the player
|
1254
|
+
# configuration
|
1255
|
+
attribute :setting_ids
|
1256
|
+
|
1101
1257
|
# @!attribute settings
|
1102
|
-
# @return [Player::Configuration::Setting] the settings of the
|
1258
|
+
# @return [Array<Player::Configuration::Setting>] the settings of the
|
1259
|
+
# player configuration
|
1103
1260
|
has_many :settings, class_name: "LWS::DigitalSignage::Player::Configuration::Setting",
|
1104
1261
|
uri: "player/configurations/:configuration_id/settings(/:id)"
|
1105
1262
|
end
|
@@ -1167,18 +1324,33 @@ module LWS::DigitalSignage
|
|
1167
1324
|
use_api LWS::DigitalSignage.api
|
1168
1325
|
uri "player/models(/:id)"
|
1169
1326
|
|
1327
|
+
# @!attribute branch_ids
|
1328
|
+
# @return [Array<Integer>] the IDs of the player OS branches allowed for
|
1329
|
+
# the player model
|
1330
|
+
attribute :branch_ids
|
1331
|
+
|
1170
1332
|
# @!attribute branches
|
1171
1333
|
# @return [Array<Player::Os::Branch>] the player OS branches allowed for
|
1172
1334
|
# the player model
|
1173
1335
|
has_many :branches, class_name: "LWS::DigitalSignage::Player::Os::Branch",
|
1174
1336
|
uri: "player/models/:model_id/branches(/:id)"
|
1175
1337
|
|
1338
|
+
# @!attribute capability_ids
|
1339
|
+
# @return [Array<Integer>] the IDs of the capabilities of the player
|
1340
|
+
# model
|
1341
|
+
attribute :capability_ids
|
1342
|
+
|
1176
1343
|
# @!attribute capabilities
|
1177
1344
|
# @return [Array<Player::Model::Capability>] the capabilities of the
|
1178
1345
|
# player model
|
1179
1346
|
has_many :capabilities, class_name: "LWS::DigitalSignage::Player::Model::Capability",
|
1180
1347
|
uri: "player/models/:model_id/capabilities(/:id)"
|
1181
1348
|
|
1349
|
+
# @!attribute component_ids
|
1350
|
+
# @return [Array<Integer>] the IDs of the player components that are used
|
1351
|
+
# in the player model
|
1352
|
+
attribute :component_ids
|
1353
|
+
|
1182
1354
|
# @!attribute components
|
1183
1355
|
# @return [Array<Player::Component>] the player components that are
|
1184
1356
|
# used in the player model
|
@@ -1194,17 +1366,32 @@ module LWS::DigitalSignage
|
|
1194
1366
|
# @return [String] the name of the player model
|
1195
1367
|
attribute :name
|
1196
1368
|
|
1369
|
+
# @!attribute player_ids
|
1370
|
+
# @return [Array<Integer>] the IDs of the player that have the player
|
1371
|
+
# model
|
1372
|
+
attribute :player_ids
|
1373
|
+
|
1197
1374
|
# @!attribute players
|
1198
1375
|
# @return [Array<Player>] the player that have the player model
|
1199
1376
|
has_many :players, class_name: "LWS::DigitalSignage::Player",
|
1200
1377
|
uri: "player/models/:model_id/players(/:id)"
|
1201
1378
|
|
1379
|
+
# @!attribute release_channel_ids
|
1380
|
+
# @return [Array<Integer>] the IDs of the player OS release channels used
|
1381
|
+
# for the player model
|
1382
|
+
attribute :release_channel_ids
|
1383
|
+
|
1202
1384
|
# @!attribute release_channels
|
1203
1385
|
# @return [Array<Player::Os::ReleaseChannel>] the player OS release
|
1204
1386
|
# channels used for the player model
|
1205
1387
|
has_many :release_channels, class_name: "LWS::DigitalSignage::Player::Os::ReleaseChannel",
|
1206
1388
|
uri: "player/models/:model_id/release_channels(/:id)"
|
1207
1389
|
|
1390
|
+
# @!attribute resolution_ids
|
1391
|
+
# @return [Array<Integer>] the IDs of the display resolutions supported
|
1392
|
+
# by the player model
|
1393
|
+
attribute :resolution_ids
|
1394
|
+
|
1208
1395
|
# @!attribute resolutions
|
1209
1396
|
# @return [Array<Display::Resolution>] the display resolutions
|
1210
1397
|
# supported by the player model
|
@@ -1308,6 +1495,11 @@ module LWS::DigitalSignage
|
|
1308
1495
|
use_api LWS::DigitalSignage.api
|
1309
1496
|
uri "player/os/branches(/:id)"
|
1310
1497
|
|
1498
|
+
# @!attribute model_ids
|
1499
|
+
# @return [Array<Integer>] the IDs of the player models that allow the
|
1500
|
+
# player OS branch to be used
|
1501
|
+
attribute :model_ids
|
1502
|
+
|
1311
1503
|
# @!attribute models
|
1312
1504
|
# @return [Array<Player::Model>] the player models that allow the player
|
1313
1505
|
# OS branch to be used
|
@@ -1328,6 +1520,11 @@ module LWS::DigitalSignage
|
|
1328
1520
|
# is for
|
1329
1521
|
attribute :release_channel_id
|
1330
1522
|
|
1523
|
+
# @!attribute release_ids
|
1524
|
+
# @return [Array<Integer>] the IDs of the releases that are part of the
|
1525
|
+
# branch
|
1526
|
+
attribute :release_ids
|
1527
|
+
|
1331
1528
|
# @!attribute releases
|
1332
1529
|
# @return [Array<Player::Os::Branch::Release>] the releases that are part
|
1333
1530
|
# of the branch
|
@@ -1369,6 +1566,11 @@ module LWS::DigitalSignage
|
|
1369
1566
|
# @return [String] the message of the release (commit)
|
1370
1567
|
attribute :commit_message
|
1371
1568
|
|
1569
|
+
# @!attribute package_version_ids
|
1570
|
+
# @return [Array<Integer>] the IDs of the player OS package versions in
|
1571
|
+
# this release
|
1572
|
+
attribute :package_version_ids
|
1573
|
+
|
1372
1574
|
# @!attribute package_versions
|
1373
1575
|
# @return [Array<Player::Os::Package::Version>] the player OS package
|
1374
1576
|
# versions in this release
|
@@ -1376,6 +1578,11 @@ module LWS::DigitalSignage
|
|
1376
1578
|
has_many :package_versions, class_name: "LWS::DigitalSignage::Player::Os::Package::Version",
|
1377
1579
|
uri: "player/os/branches/:branch_id/releases/:release_id/package_versions(/:id)"
|
1378
1580
|
|
1581
|
+
# @!attribute package_version_change_ids
|
1582
|
+
# @return [Array<Integer>] the IDs of the player OS package version
|
1583
|
+
# changes in this release
|
1584
|
+
attribute :package_version_change_ids
|
1585
|
+
|
1379
1586
|
# @!attribute package_version_changes
|
1380
1587
|
# @return [Array<Player::Os::Package::VersionChange>] the player OS package
|
1381
1588
|
# version changes in this release
|
@@ -1406,10 +1613,15 @@ module LWS::DigitalSignage
|
|
1406
1613
|
# release is a promotion of
|
1407
1614
|
attribute :promoted_release_id
|
1408
1615
|
|
1616
|
+
# @!attribute promoting_release_ids
|
1617
|
+
# @return [Array<Integer>] the IDs of the player OS branch releases that
|
1618
|
+
# promote the release
|
1619
|
+
attribute :promoting_release_ids
|
1620
|
+
|
1409
1621
|
# @!attribute promoting_releases
|
1410
1622
|
# @return [Array<Player::Os::Branch::Release>] the player OS branch releases
|
1411
1623
|
# that promote the release
|
1412
|
-
has_many :
|
1624
|
+
has_many :promoting_releases, class_name: "LWS::DigitalSignage::Player::Os::Branch::Release"
|
1413
1625
|
|
1414
1626
|
# @!attribute version
|
1415
1627
|
# @return [String] the version of the release
|
@@ -1425,12 +1637,22 @@ module LWS::DigitalSignage
|
|
1425
1637
|
# @return [String] the name of the player OS package
|
1426
1638
|
attribute :name
|
1427
1639
|
|
1640
|
+
# @!attribute version_change_ids
|
1641
|
+
# @return [Array<Integer>] the IDs of the version changes of the player
|
1642
|
+
# OS package present in branches
|
1643
|
+
attribute :version_change_ids
|
1644
|
+
|
1428
1645
|
# @!attribute version_changes
|
1429
1646
|
# @return [Array<Player::Os::Package::VersionChange>] the version
|
1430
1647
|
# changes of the player OS package present in branches
|
1431
1648
|
has_many :version_changes, class_name: "LWS::DigitalSignage::Player::Os::Package::VersionChange",
|
1432
1649
|
uri: "player/os/packages/:package_id/version_changes(/:id)"
|
1433
1650
|
|
1651
|
+
# @!attribute version_ids
|
1652
|
+
# @return [Array<Integer>] the IDs of the versions of the player OS
|
1653
|
+
# package present in branches
|
1654
|
+
attribute :version_ids
|
1655
|
+
|
1434
1656
|
# @!attribute versions
|
1435
1657
|
# @return [Array<Player::Os::Package::Version>] the versions of the
|
1436
1658
|
# player OS package present in branches
|
@@ -1460,6 +1682,11 @@ module LWS::DigitalSignage
|
|
1460
1682
|
# @return [Integer] the ID the player OS package the version is of
|
1461
1683
|
attribute :package_id
|
1462
1684
|
|
1685
|
+
# @!attribute branch_release_ids
|
1686
|
+
# @return [Array<Integer>] the IDs of the branch releases the player OS
|
1687
|
+
# package version is a part of
|
1688
|
+
attribute :branch_release_ids
|
1689
|
+
|
1463
1690
|
# @!attribute branch_releases
|
1464
1691
|
# @return [Array<Player::Os::Branch::Release>] the branch releases the
|
1465
1692
|
# player OS package version is a part of
|
@@ -1554,6 +1781,11 @@ module LWS::DigitalSignage
|
|
1554
1781
|
use_api LWS::DigitalSignage.api
|
1555
1782
|
uri "player/os/release_channels(/:id)"
|
1556
1783
|
|
1784
|
+
# @!attribute branch_ids
|
1785
|
+
# @return [Array<Integer>] the IDs of the branches that belong to the
|
1786
|
+
# player OS release channel
|
1787
|
+
attribute :branch_ids
|
1788
|
+
|
1557
1789
|
# @!attribute branches
|
1558
1790
|
# @return [Array<Player::Os::Branch>] the branches that belong to the
|
1559
1791
|
# player OS release channel
|
@@ -1564,6 +1796,11 @@ module LWS::DigitalSignage
|
|
1564
1796
|
# @return [String] the name of the player OS release channel
|
1565
1797
|
attribute :name
|
1566
1798
|
|
1799
|
+
# @!attribute player_ids
|
1800
|
+
# @return [Array<Integer>] the IDs of the players that use the player OS
|
1801
|
+
# release channel
|
1802
|
+
attribute :player_ids
|
1803
|
+
|
1567
1804
|
# @!attribute players
|
1568
1805
|
# @return [Array<Player>] the players that use the player OS release channel
|
1569
1806
|
has_many :players, class_name: "LWS::DigitalSignage::Player",
|
@@ -1587,6 +1824,11 @@ module LWS::DigitalSignage
|
|
1587
1824
|
# @return [Integer] the ID of the company the predefined player configuration belongs to
|
1588
1825
|
attribute :compandy_id
|
1589
1826
|
|
1827
|
+
# @!attribute configuration_ids
|
1828
|
+
# @return [Array<Integer>] the IDs of the player configurations that use
|
1829
|
+
# the predefined player configuration as a basis
|
1830
|
+
attribute :configuration_ids
|
1831
|
+
|
1590
1832
|
# @!attribute configurations
|
1591
1833
|
# @return [Array<Player::Configuration>] the player configurations that use
|
1592
1834
|
# the predefined player configuration as a basis
|
@@ -1601,9 +1843,14 @@ module LWS::DigitalSignage
|
|
1601
1843
|
# @return [String] the name of the predefined player configuration
|
1602
1844
|
attribute :name
|
1603
1845
|
|
1846
|
+
# @!attribute setting_ids
|
1847
|
+
# @return [Array<Integer>] the IDs of the settings of the predefined
|
1848
|
+
# player configuration
|
1849
|
+
attribute :setting_ids
|
1850
|
+
|
1604
1851
|
# @!attribute settings
|
1605
|
-
# @return [Player::PredefinedConfiguration::Setting] the settings
|
1606
|
-
# predefined player configuration
|
1852
|
+
# @return [Array<Player::PredefinedConfiguration::Setting>] the settings
|
1853
|
+
# of the predefined player configuration
|
1607
1854
|
has_many :settings, class_name: "LWS::DigitalSignage::Player::PredefinedConfiguration::Setting",
|
1608
1855
|
uri: "player/predefined_configurations/:predefined_configuration_id/settings(/:id)"
|
1609
1856
|
end
|
@@ -1769,10 +2016,19 @@ module LWS::DigitalSignage
|
|
1769
2016
|
# @return [Integer] the ID of the account used for creating the slide
|
1770
2017
|
attribute :account_id
|
1771
2018
|
|
2019
|
+
# @!attribute channel_ids
|
2020
|
+
# @return [Array<Integer>] the IDs of the channels the slide is scheduled on
|
2021
|
+
attribute :channel_ids
|
2022
|
+
|
1772
2023
|
# @!attribute channels
|
1773
2024
|
# @return [Array<Channel>] the channels the slide is scheduled on
|
1774
2025
|
has_many :channels, class_name: "LWS::DigitalSignage::Channel"
|
1775
2026
|
|
2027
|
+
# @!attribute channel_group_ids
|
2028
|
+
# @return [Array<Integer>] the IDs of the channel group the slide is
|
2029
|
+
# scheduled on
|
2030
|
+
attribute :channel_group_ids
|
2031
|
+
|
1776
2032
|
# @!attribute channel_groups
|
1777
2033
|
# @return [Array<Channel::Group>] the channel group the slide is
|
1778
2034
|
# scheduled on
|
@@ -1819,6 +2075,11 @@ module LWS::DigitalSignage
|
|
1819
2075
|
# @return [Integer] the order priority within a playlist for a channel
|
1820
2076
|
attribute :order_priority
|
1821
2077
|
|
2078
|
+
# @!attribute schedule_ids
|
2079
|
+
# @return [Array<Integer>] the IDs of the slide schedules that apply for
|
2080
|
+
# the slide
|
2081
|
+
attribute :schedule_ids
|
2082
|
+
|
1822
2083
|
# @!attribute schedules
|
1823
2084
|
# @return [Array<Schedule>] the slide schedules that apply for the slide
|
1824
2085
|
has_many :schedules, class_name: "LWS::DigitalSignage::Slide::Schedule"
|
@@ -1867,6 +2128,11 @@ module LWS::DigitalSignage
|
|
1867
2128
|
# schedule
|
1868
2129
|
attribute :skip_every
|
1869
2130
|
|
2131
|
+
# @!attribute slide_ids
|
2132
|
+
# @return [Array<Integer>] the IDs of the slides that use the slide
|
2133
|
+
# schedule
|
2134
|
+
attribute :slide_ids
|
2135
|
+
|
1870
2136
|
# @!attribute slides
|
1871
2137
|
# @return [Array<Slide>] the slides that use the slide schedule
|
1872
2138
|
# FIXME: Missing endpoint in LWS
|
data/lib/lws/apps/generic.rb
CHANGED
@@ -64,7 +64,7 @@ module LWS::Generic
|
|
64
64
|
# @private
|
65
65
|
# @!visibility private
|
66
66
|
#
|
67
|
-
# Adds an attribute for this class.
|
67
|
+
# Adds an attribute for this class; also adds change tracking.
|
68
68
|
#
|
69
69
|
# @note
|
70
70
|
# This is just a singular version helper method of the +attributes+
|
@@ -80,6 +80,34 @@ module LWS::Generic
|
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
+
# @private
|
84
|
+
# @!visibility private
|
85
|
+
#
|
86
|
+
# Adds change tracking for the +_ids+ method related to has-many
|
87
|
+
# assocation.
|
88
|
+
#
|
89
|
+
# @param [Symbol] name the name of the has-many relation
|
90
|
+
# @param [Hash] options the options of the has-many relation
|
91
|
+
# @raise [NameError] if the +_ids+ method has not been defined as an
|
92
|
+
# attribute (yet)
|
93
|
+
# @return [void]
|
94
|
+
def self.has_many(name, options = {})
|
95
|
+
name_sing = name.to_s.singularize
|
96
|
+
unless method_defined?("#{name_sing}_ids")
|
97
|
+
raise NameError, "missing definition of attribute #{name_sing}_ids"
|
98
|
+
end
|
99
|
+
|
100
|
+
super
|
101
|
+
|
102
|
+
alias_method :"orig_#{name_sing}_ids=", :"#{name_sing}_ids="
|
103
|
+
define_method(:"#{name_sing}_ids=") do |ids|
|
104
|
+
unless ids.reject(&:blank?) == send(:"#{name_sing}_ids")
|
105
|
+
send(:"#{name_sing}_ids_will_change!")
|
106
|
+
end
|
107
|
+
send(:"orig_#{name_sing}_ids=", ids)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
83
111
|
# @private
|
84
112
|
# @!visibility private
|
85
113
|
#
|
data/lib/lws/apps/maps.rb
CHANGED
@@ -47,8 +47,12 @@ module LWS::Maps
|
|
47
47
|
# @return [Integer] the ID of the company that maintains/owns the map
|
48
48
|
attribute :company_id
|
49
49
|
|
50
|
+
# @!attribute marker_ids
|
51
|
+
# @return [Array<Integer>] the IDs of the associated markers
|
52
|
+
attribute :marker_ids
|
53
|
+
|
50
54
|
# @!attribute markers
|
51
|
-
# @return [Array<Marker>] the
|
55
|
+
# @return [Array<Marker>] the associated markers
|
52
56
|
has_many :markers
|
53
57
|
|
54
58
|
# @!attribute name
|
@@ -102,6 +106,10 @@ module LWS::Maps
|
|
102
106
|
# map source
|
103
107
|
attribute :key
|
104
108
|
|
109
|
+
# @!attribute map_ids
|
110
|
+
# @return [Array<Integer>] the IDs of the maps using the map source
|
111
|
+
attribute :map_ids
|
112
|
+
|
105
113
|
# @!attribute maps
|
106
114
|
# @return [Array<Map>] the maps using the map source
|
107
115
|
has_many :maps
|
data/lib/lws/apps/presence.rb
CHANGED
@@ -75,6 +75,11 @@ module LWS::Presence
|
|
75
75
|
# @return [Fixnum] the ID of the organiser of the appointment
|
76
76
|
attribute :organiser_id
|
77
77
|
|
78
|
+
# @!attribute person_ids
|
79
|
+
# @return [Array<Integer>] the IDs of the people associated with the
|
80
|
+
# appointment
|
81
|
+
attribute :person_ids
|
82
|
+
|
78
83
|
# @!attribute people
|
79
84
|
# @return [Array<Person>] the people associated with the appointment
|
80
85
|
has_many :people
|
@@ -137,6 +142,11 @@ module LWS::Presence
|
|
137
142
|
# including the location itself
|
138
143
|
attribute :ancestor_ids
|
139
144
|
|
145
|
+
# @!attribute appointment_ids
|
146
|
+
# @return [Array<Integer>] the IDs of the appointments taking place at
|
147
|
+
# the location
|
148
|
+
attribute :appointment_ids
|
149
|
+
|
140
150
|
# @!attribute appointments
|
141
151
|
# @return [Array<Appointment>] the appointments taking place at the location
|
142
152
|
has_many :appointments
|
@@ -225,6 +235,11 @@ module LWS::Presence
|
|
225
235
|
# appointments involving the location
|
226
236
|
attribute :invite_remarks
|
227
237
|
|
238
|
+
# @!attribute journal_ids
|
239
|
+
# @return [Array<Integer>] the IDs of the journal (entries) associated
|
240
|
+
# with the location
|
241
|
+
attribute :journal_ids
|
242
|
+
|
228
243
|
# @!attribute journals
|
229
244
|
# @return [Array<Journal>] the journal (entries) associated with the location
|
230
245
|
has_many :journals, class: "LWS::Presence::Journal"
|
@@ -243,11 +258,20 @@ module LWS::Presence
|
|
243
258
|
# @return [Float] the longitude of the location
|
244
259
|
attribute :long
|
245
260
|
|
261
|
+
# @!attribute map_position_ids
|
262
|
+
# @return [Array<Integer>] the IDs of the location map positions that
|
263
|
+
# track this location
|
264
|
+
attribute :map_position_ids
|
265
|
+
|
246
266
|
# @!attribute map_positions
|
247
267
|
# @return [Array<Location::Map::Position>] the location map positions
|
248
268
|
# that track this location
|
249
269
|
has_many :map_positions, class_name: "LWS::Presence::Location::Map::Position"
|
250
270
|
|
271
|
+
# @attribute map_ids
|
272
|
+
# @return [Array<Integer>] the IDs of the maps for this location
|
273
|
+
attribute :map_ids
|
274
|
+
|
251
275
|
# @attribute maps
|
252
276
|
# @return [Array<Location::Map>] the maps for this location
|
253
277
|
has_many :maps, class_name: "LWS::Presence::Location::Map"
|
@@ -276,10 +300,20 @@ module LWS::Presence
|
|
276
300
|
# @return [Integer] the ID of the parent of the location
|
277
301
|
attribute :parent_id
|
278
302
|
|
303
|
+
# @!attribute person_ids
|
304
|
+
# @return [Array<Integer>] the IDs of the people associated with the
|
305
|
+
# location
|
306
|
+
attribute :person_ids
|
307
|
+
|
279
308
|
# @!attribute people
|
280
309
|
# @return [Array<Person>] the people associated with the location
|
281
310
|
has_many :people
|
282
311
|
|
312
|
+
# @!attribute people_tree_ids
|
313
|
+
# @return [Array<Integer>] the IDs of the people associated with the
|
314
|
+
# location including descendant locations
|
315
|
+
attribute :people_tree_ids
|
316
|
+
|
283
317
|
# @!attribute people_tree
|
284
318
|
# @return [Array<Person>] the people associated with the location
|
285
319
|
# including descendant locations
|
@@ -289,6 +323,11 @@ module LWS::Presence
|
|
289
323
|
# @return [Integer] the range around the location in meters
|
290
324
|
attribute :range
|
291
325
|
|
326
|
+
# @!attribute reader_ids
|
327
|
+
# @return [Array<Integer>] the IDs of the (RFID/code/ID/...) readers
|
328
|
+
# linked to this location
|
329
|
+
attribute :reader_ids
|
330
|
+
|
292
331
|
# @!attribute readers
|
293
332
|
# @return [Array<Reader>] the (RFID/code/ID/...) readers linked to this location
|
294
333
|
has_many :readers
|
@@ -358,6 +397,10 @@ module LWS::Presence
|
|
358
397
|
# present
|
359
398
|
attribute :position
|
360
399
|
|
400
|
+
# @!attribute position_ids
|
401
|
+
# @return [Array<Integer>] the IDs of the positions linked to this map
|
402
|
+
attribute :position_ids
|
403
|
+
|
361
404
|
# @!attribute positions
|
362
405
|
# @return [Array<Location::Map::Position>] the positions linked to this
|
363
406
|
# map
|
@@ -458,6 +501,11 @@ module LWS::Presence
|
|
458
501
|
# @return [String, nil] the address of the person
|
459
502
|
attribute :address
|
460
503
|
|
504
|
+
# @!attribute appointment_ids
|
505
|
+
# @return [Array<Appointment>] the IDs of the appointments involving the
|
506
|
+
# person
|
507
|
+
attribute :appointment_ids
|
508
|
+
|
461
509
|
# @!attribute appointments
|
462
510
|
# @return [Array<Appointment>] the appointments involving the person
|
463
511
|
has_many :appointments
|
@@ -563,6 +611,11 @@ module LWS::Presence
|
|
563
611
|
# @return [String] the name of the person
|
564
612
|
attribute :name
|
565
613
|
|
614
|
+
# @!attribute people_responsible_for_ids
|
615
|
+
# @return [Array<Integer>] the IDs of the people the person is
|
616
|
+
# responsible for
|
617
|
+
attribute :people_responsible_for_ids
|
618
|
+
|
566
619
|
# @!attribute people_responsible_for
|
567
620
|
# @return [Array<Person>] the people the person is responsible for
|
568
621
|
has_many :people_responsible_for, class_name: "LWS::Presence::Person"
|
data/lib/lws/apps/resource.rb
CHANGED
@@ -88,11 +88,17 @@ module LWS::Resource
|
|
88
88
|
# filed in
|
89
89
|
attribute :folder_id
|
90
90
|
|
91
|
+
# @!attribute item_ids
|
92
|
+
# @return [Array<Integer>] the ID of the items that are part of the
|
93
|
+
# collection
|
94
|
+
attribute :item_ids
|
95
|
+
|
91
96
|
# @!attribute items
|
92
|
-
# The returned
|
93
|
-
# this collection.
|
97
|
+
# The returned cllection item (sub)class that is determined by the kind
|
98
|
+
# of this collection.
|
94
99
|
#
|
95
|
-
# @return [Collection::Item] the items that are part of the
|
100
|
+
# @return [Array<Collection::Item>] the items that are part of the
|
101
|
+
# collection
|
96
102
|
has_many :items, class_name: "LWS::Resource::Collection::Item"
|
97
103
|
|
98
104
|
# @!attribute kind
|
@@ -116,76 +122,6 @@ module LWS::Resource
|
|
116
122
|
# @!attribute uuid
|
117
123
|
# @return [String] the UUID used for unique file name generation
|
118
124
|
attribute :uuid
|
119
|
-
|
120
|
-
|
121
|
-
# @!group Collection Items Attribute Summary
|
122
|
-
|
123
|
-
# @!attribute config
|
124
|
-
# @return [Collection::Config] the configuration that is part of the
|
125
|
-
# collection (if kind is +:config+)
|
126
|
-
has_one :config
|
127
|
-
|
128
|
-
# @!attribute feed
|
129
|
-
# @return [Collection::Feed] the feed that is part of the collection
|
130
|
-
# (if kind is +:feed+)
|
131
|
-
has_one :feed
|
132
|
-
|
133
|
-
# @!attribute feeds
|
134
|
-
# @return [Array<Collection::Feed>] the feeds that are part of the collection
|
135
|
-
# (if kind is +:feeds+)
|
136
|
-
has_many :feeds
|
137
|
-
|
138
|
-
# @!attribute image
|
139
|
-
# @return [Collection::Image] the image that is part of the collection
|
140
|
-
# (if kind is +:image+)
|
141
|
-
has_one :image
|
142
|
-
|
143
|
-
# @!attribute images
|
144
|
-
# @return [Array<Collection::Image>] the images that are part of the
|
145
|
-
# collection (if kind is +:images+)
|
146
|
-
has_many :images
|
147
|
-
|
148
|
-
# @!attribute powerpoint
|
149
|
-
# @return [Collection::PowerPoint] the PowerPoint presentation that is
|
150
|
-
# part of the collection (if kind is +:powerpoint+)
|
151
|
-
has_one :powerpoint
|
152
|
-
|
153
|
-
# @!attribute youtube
|
154
|
-
# @return [Collection::YouTube] the YouTube video that is part of the collection
|
155
|
-
# (if kind is +:youtube+)
|
156
|
-
has_one :youtube
|
157
|
-
|
158
|
-
# @!attribute youtubes
|
159
|
-
# @return [Array<Collection::YouTube>] the YouTube videos that are part
|
160
|
-
# of the collection (if kind is +:youtubes+)
|
161
|
-
has_many :youtubes
|
162
|
-
|
163
|
-
# @!attribute video
|
164
|
-
# @return [Collection::Video] the video that is part of the collection
|
165
|
-
# (if kind is +:video+)
|
166
|
-
has_one :video
|
167
|
-
|
168
|
-
# @!attribute videos
|
169
|
-
# @return [Array<Collection::Video>] the videos that are part of the
|
170
|
-
# collection (if kind is +:videos+)
|
171
|
-
has_many :videos
|
172
|
-
|
173
|
-
# @!attribute vimeo
|
174
|
-
# @return [Collection::Vimeo] the Vimeo video that is part of the collection
|
175
|
-
# (if kind is +:vimeo+)
|
176
|
-
has_one :vimeo
|
177
|
-
|
178
|
-
# @!attribute vimeos
|
179
|
-
# @return [Array<Collection::Vimeo>] the Vimeo videos that are part of
|
180
|
-
# the collection (if kind is +:vimeos+)
|
181
|
-
has_many :vimeos
|
182
|
-
|
183
|
-
# @!attribute weather_location
|
184
|
-
# @return [Collection::WeatherLocation] the weather collection that is
|
185
|
-
# part of the collection (if kind is +:weather_location+)
|
186
|
-
has_one :weather_location
|
187
|
-
|
188
|
-
# @!endgroup Collection Items Attribute Summary
|
189
125
|
end
|
190
126
|
|
191
127
|
# = The collection item class
|
@@ -297,6 +233,10 @@ module LWS::Resource
|
|
297
233
|
# @return [String] the URL of the feed
|
298
234
|
attribute :feed_url
|
299
235
|
|
236
|
+
# @!attribute post_ids
|
237
|
+
# @return [Collection::Post] the IDs of the posts included in the feed
|
238
|
+
attribute :post_ids
|
239
|
+
|
300
240
|
# @!attribute posts
|
301
241
|
# @return [Collection::Post] the posts included in the feed
|
302
242
|
has_many :posts,
|
@@ -402,6 +342,10 @@ module LWS::Resource
|
|
402
342
|
# @return [String] the URL of the feed of the weather location
|
403
343
|
attribute :feed_url
|
404
344
|
|
345
|
+
# @!attribute forecast_ids
|
346
|
+
# @return [Forecast] the IDs of the forecasts for the weather location
|
347
|
+
attribute :forecast_ids
|
348
|
+
|
405
349
|
# @!attribute forecasts
|
406
350
|
# @return [Forecast] the forecasts for the weather location
|
407
351
|
has_many :forecasts,
|
@@ -502,6 +446,10 @@ module LWS::Resource
|
|
502
446
|
# the folder
|
503
447
|
attribute :account_id
|
504
448
|
|
449
|
+
# @!attribute collection_ids
|
450
|
+
# @return [Array<Integer>] the IDs of the collections filed in the folder
|
451
|
+
attribute :collection_ids
|
452
|
+
|
505
453
|
# @!attribute collections
|
506
454
|
# @return [Array<Collection>] the collections filed in the folder
|
507
455
|
has_many :collections
|
@@ -524,9 +472,15 @@ module LWS::Resource
|
|
524
472
|
|
525
473
|
# @!attribute email [r]
|
526
474
|
# @return [String] the email adress of the folder
|
475
|
+
attribute :email
|
476
|
+
|
477
|
+
# @!attribute folder_ids
|
478
|
+
# @return [Array<Integer>] the IDs of the (child) folders contained in
|
479
|
+
# the folder
|
480
|
+
attribute :folder_ids
|
527
481
|
|
528
482
|
# @!attribute folders
|
529
|
-
# @return [Array<Folder>] the folders contained in the folder
|
483
|
+
# @return [Array<Folder>] the (child) folders contained in the folder
|
530
484
|
has_many :folders
|
531
485
|
|
532
486
|
# @!attribute favourite
|
data/lib/lws/apps/ticket.rb
CHANGED
@@ -83,6 +83,11 @@ module LWS::Ticket
|
|
83
83
|
# @return [String] the slug of the ticket group
|
84
84
|
attribute :slug
|
85
85
|
|
86
|
+
# @!attribute ticket_ids
|
87
|
+
# @return [Array<Integer>] the IDs of the tickets that are assigned to
|
88
|
+
# the ticket group
|
89
|
+
attribute :ticket_ids
|
90
|
+
|
86
91
|
# @!attribute tickets
|
87
92
|
# @return [Array<Ticket>] the tickets that are assigned to the ticket
|
88
93
|
# group
|
@@ -103,6 +108,11 @@ module LWS::Ticket
|
|
103
108
|
# ticket message
|
104
109
|
attribute :account_id
|
105
110
|
|
111
|
+
# @!attribute attachment_ids
|
112
|
+
# @return [Array<Integer>] the IDs of the attachments associated with the
|
113
|
+
# ticket message
|
114
|
+
attribute :attachment_ids
|
115
|
+
|
106
116
|
# @!attribute attachments
|
107
117
|
# @return [Array<Attachment>] the attachments associated with the ticket
|
108
118
|
# message
|
@@ -163,6 +173,10 @@ module LWS::Ticket
|
|
163
173
|
# @return [String] the slug of the ticket tag
|
164
174
|
attribute :slug
|
165
175
|
|
176
|
+
# @!attribute ticket_ids
|
177
|
+
# @return [Array<Ticket>] the IDs of the ticket associated with the tag
|
178
|
+
attribute :ticket_ids
|
179
|
+
|
166
180
|
# @!attribute tickets
|
167
181
|
# @return [Array<Ticket>] the ticket associated with the tag
|
168
182
|
has_many :tickets
|
@@ -224,6 +238,11 @@ module LWS::Ticket
|
|
224
238
|
# @return [Integer] the ID of the group the ticket belongs to
|
225
239
|
attribute :group_id
|
226
240
|
|
241
|
+
# @!attribute message_ids
|
242
|
+
# @return [Array<Integer>] the IDs of the messages associated with the
|
243
|
+
# ticket
|
244
|
+
attribute :message_ids
|
245
|
+
|
227
246
|
# @!attribute messages
|
228
247
|
# @return [Array<Message>] the messages associated with the ticket
|
229
248
|
has_many :messages
|
@@ -248,6 +267,10 @@ module LWS::Ticket
|
|
248
267
|
# "feedback", "priority", "reassign"] the current ticket status
|
249
268
|
attribute :status
|
250
269
|
|
270
|
+
# @!attribute tag_ids
|
271
|
+
# @return [Array<Integer>] the IDs of the tags associated with the ticket
|
272
|
+
attribute :tag_ids
|
273
|
+
|
251
274
|
# @!attribute tags
|
252
275
|
# @return [Array<Tag>] the tags associated with the ticket
|
253
276
|
has_many :tags
|
data/lib/lws/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.0.
|
4
|
+
version: 9.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LeftClick B.V.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday-http-cache
|