alula-ruby 1.9.17 → 1.10.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/VERSION.md +1 -0
- data/lib/alula/resources/device.rb +2 -2
- data/lib/alula/resources/device_user.rb +45 -0
- data/lib/alula/resources/helix_user.rb +125 -0
- data/lib/alula/version.rb +1 -1
- data/lib/alula.rb +4 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a1e7ffa073f707398977ddeda42b71e4d53d0e85ec7dc43706ed54b2d5f2c97
|
4
|
+
data.tar.gz: 0cd33559f523abf10bd6288f5b51b5fc9e80829292e10dac8735a1accfee3ef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2625ebca239b0856ff1b48f48431d619a728392137d247f5880fe60a2a6b436c6ddd6aaae3c3c9b75138e40a8d6fe0b5f6968bac2325ed6720e0088e443219bb
|
7
|
+
data.tar.gz: cdc90a0521b929a9b583a0d8a88dca8202f7a31a4c866724375e222768d7ad913e60622e94a3cc69ab8dc06238a3ce466618ad902e7a4d3c525fe900c8864e22
|
data/VERSION.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
| Version | Date | Description |
|
4
4
|
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v1.10.0 | 2024-09-18 | Add DeviceUser and HelixUser resources |
|
5
6
|
| v1.9.17 | 2024-09-17 | Bump HTTParty version |
|
6
7
|
| v1.9.16 | 2024-09-04 | Add get camera stats proc |
|
7
8
|
| v1.9.15 | 2024-09-02 | Add impersonated_by accessor to the ImpersonatedToken |
|
@@ -32,10 +32,10 @@ module Alula
|
|
32
32
|
relationship :dealer, type: 'dealers', cardinality: 'To-one'
|
33
33
|
# relationship :eventlog, type: 'devices-eventlog', cardinality: 'To-many'
|
34
34
|
relationship :receiver_group, type: 'receivers-groups', cardinality: 'To-one'
|
35
|
-
|
35
|
+
relationship :helix_users, type: 'helix-users', cardinality: 'To-many'
|
36
36
|
relationship :notifications, type: 'devices-notifications', cardinality: 'To-many'
|
37
37
|
relationship :video_verification_cameras, type: 'video-verification-cameras', cardinality: 'To-many'
|
38
|
-
|
38
|
+
relationship :users, type: 'devices-users', cardinality: 'To-many'
|
39
39
|
# relationship :features_supported, type: 'devices-features-supported', cardinality: 'To-one'
|
40
40
|
# relationship :features_disabled, type: 'devices-features-disabled', cardinality: 'To-one'
|
41
41
|
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Alula
|
4
|
+
class DeviceUser < Alula::RestResource
|
5
|
+
extend Alula::ResourceAttributes
|
6
|
+
extend Alula::RelationshipAttributes
|
7
|
+
extend Alula::ApiOperations::Request
|
8
|
+
extend Alula::ApiOperations::List
|
9
|
+
extend Alula::ApiOperations::Save
|
10
|
+
extend Alula::ApiOperations::Delete
|
11
|
+
|
12
|
+
resource_path 'devices/users'
|
13
|
+
type 'devices-users'
|
14
|
+
|
15
|
+
relationship :device, type: 'devices', cardinality: 'To-one'
|
16
|
+
relationship :user, type: 'users', cardinality: 'To-one'
|
17
|
+
relationship :helix_users, type: 'helix-users', cardinality: 'To-many'
|
18
|
+
# unused relationships below
|
19
|
+
# relationship :hybrid_panel_users, type: 'devices-partitions-users', cardinality: 'To-many'
|
20
|
+
|
21
|
+
field :id,
|
22
|
+
type: :string,
|
23
|
+
sortable: false,
|
24
|
+
filterable: false
|
25
|
+
|
26
|
+
field :device_id,
|
27
|
+
type: :string,
|
28
|
+
sortable: false,
|
29
|
+
filterable: true,
|
30
|
+
creatable_by: %i[system station dealer technician user]
|
31
|
+
|
32
|
+
field :user_id,
|
33
|
+
type: :string,
|
34
|
+
sortable: false,
|
35
|
+
filterable: true,
|
36
|
+
creatable_by: %i[system station dealer technician user]
|
37
|
+
|
38
|
+
field :panel_user_index,
|
39
|
+
type: :number,
|
40
|
+
sortable: true,
|
41
|
+
filterable: true,
|
42
|
+
creatable_by: %i[system station dealer technician user],
|
43
|
+
patchable_by: %i[system station dealer technician user]
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Alula
|
4
|
+
# HelixUser records are present for anything older than XiP
|
5
|
+
# There might be records for XiP as well, but DeviceUser should be used instead
|
6
|
+
class HelixUser < Alula::RestResource
|
7
|
+
extend Alula::ResourceAttributes
|
8
|
+
extend Alula::RelationshipAttributes
|
9
|
+
extend Alula::ApiOperations::Request
|
10
|
+
extend Alula::ApiOperations::List
|
11
|
+
extend Alula::ApiOperations::Save
|
12
|
+
|
13
|
+
resource_path 'helix/users'
|
14
|
+
type 'helix-users'
|
15
|
+
|
16
|
+
relationship :device, type: 'devices', cardinality: 'To-one'
|
17
|
+
relationship :user, type: 'users', cardinality: 'To-one'
|
18
|
+
|
19
|
+
field :id,
|
20
|
+
type: :string,
|
21
|
+
sortable: false,
|
22
|
+
filterable: false
|
23
|
+
|
24
|
+
field :device_id,
|
25
|
+
type: :string,
|
26
|
+
sortable: false,
|
27
|
+
filterable: true
|
28
|
+
|
29
|
+
field :user_id,
|
30
|
+
type: :string,
|
31
|
+
sortable: false,
|
32
|
+
filterable: true
|
33
|
+
|
34
|
+
field :number,
|
35
|
+
type: :number,
|
36
|
+
sortable: true,
|
37
|
+
filterable: false
|
38
|
+
|
39
|
+
field :pin,
|
40
|
+
type: :string,
|
41
|
+
patchable_by: %i[system station dealer technician user]
|
42
|
+
|
43
|
+
field :auth_master,
|
44
|
+
type: :boolean,
|
45
|
+
patchable_by: %i[system station dealer technician user]
|
46
|
+
|
47
|
+
field :auth_installer,
|
48
|
+
type: :boolean,
|
49
|
+
patchable_by: %i[system station dealer technician user]
|
50
|
+
|
51
|
+
field :auth_dealer,
|
52
|
+
type: :boolean,
|
53
|
+
patchable_by: %i[system station dealer technician user]
|
54
|
+
|
55
|
+
field :auth_system_test,
|
56
|
+
type: :boolean,
|
57
|
+
patchable_by: %i[system station dealer technician user]
|
58
|
+
|
59
|
+
field :auth_edit_user_credentials,
|
60
|
+
type: :boolean,
|
61
|
+
patchable_by: %i[system station dealer technician user]
|
62
|
+
|
63
|
+
field :auth_bypass_zones,
|
64
|
+
type: :boolean,
|
65
|
+
patchable_by: %i[system station dealer technician user]
|
66
|
+
|
67
|
+
field :allow_disarm,
|
68
|
+
type: :boolean,
|
69
|
+
patchable_by: %i[system station dealer technician user]
|
70
|
+
|
71
|
+
field :allow_stay,
|
72
|
+
type: :boolean,
|
73
|
+
patchable_by: %i[system station dealer technician user]
|
74
|
+
|
75
|
+
field :allow_night,
|
76
|
+
type: :boolean,
|
77
|
+
patchable_by: %i[system station dealer technician user]
|
78
|
+
|
79
|
+
field :allow_away,
|
80
|
+
type: :boolean,
|
81
|
+
patchable_by: %i[system station dealer technician user]
|
82
|
+
|
83
|
+
field :allow_all_off,
|
84
|
+
type: :boolean,
|
85
|
+
patchable_by: %i[system station dealer technician user]
|
86
|
+
|
87
|
+
field :allow_level1,
|
88
|
+
type: :boolean,
|
89
|
+
patchable_by: %i[system station dealer technician user]
|
90
|
+
|
91
|
+
field :allow_level2,
|
92
|
+
type: :boolean,
|
93
|
+
patchable_by: %i[system station dealer technician user]
|
94
|
+
|
95
|
+
field :allow_level3,
|
96
|
+
type: :boolean,
|
97
|
+
patchable_by: %i[system station dealer technician user]
|
98
|
+
|
99
|
+
field :allow_level4,
|
100
|
+
type: :boolean,
|
101
|
+
patchable_by: %i[system station dealer technician user]
|
102
|
+
|
103
|
+
field :allow_level5,
|
104
|
+
type: :boolean,
|
105
|
+
patchable_by: %i[system station dealer technician user]
|
106
|
+
|
107
|
+
field :allow_level6,
|
108
|
+
type: :boolean,
|
109
|
+
patchable_by: %i[system station dealer technician user]
|
110
|
+
|
111
|
+
field :allow_level7,
|
112
|
+
type: :boolean,
|
113
|
+
patchable_by: %i[system station dealer technician user]
|
114
|
+
|
115
|
+
field :allow_level8,
|
116
|
+
type: :boolean,
|
117
|
+
patchable_by: %i[system station dealer technician user]
|
118
|
+
|
119
|
+
field :sync_needed,
|
120
|
+
type: :boolean
|
121
|
+
|
122
|
+
field :is_new,
|
123
|
+
type: :boolean
|
124
|
+
end
|
125
|
+
end
|
data/lib/alula/version.rb
CHANGED
data/lib/alula.rb
CHANGED
@@ -32,6 +32,7 @@ require_relative 'alula/resources/device_credit'
|
|
32
32
|
require_relative 'alula/resources/device_event_log'
|
33
33
|
require_relative 'alula/resources/device_cellular_status'
|
34
34
|
require_relative 'alula/resources/device_program'
|
35
|
+
require_relative 'alula/resources/device_user'
|
35
36
|
require_relative 'alula/resources/dealer_address'
|
36
37
|
require_relative 'alula/resources/dealer_phone'
|
37
38
|
require_relative 'alula/resources/dealer_account_transfer'
|
@@ -39,6 +40,7 @@ require_relative 'alula/resources/dealer_suspension_log'
|
|
39
40
|
require_relative 'alula/resources/dealer_program'
|
40
41
|
require_relative 'alula/resources/event_trigger'
|
41
42
|
require_relative 'alula/resources/event_webhook'
|
43
|
+
require_relative 'alula/resources/helix_user'
|
42
44
|
require_relative 'alula/resources/self'
|
43
45
|
require_relative 'alula/resources/user'
|
44
46
|
require_relative 'alula/resources/user_phone'
|
@@ -121,6 +123,7 @@ module Alula
|
|
121
123
|
Alula::DeviceCredit,
|
122
124
|
Alula::DeviceEventLog,
|
123
125
|
Alula::DeviceNotification,
|
126
|
+
Alula::DeviceUser,
|
124
127
|
Alula::VideoVerificationCamera,
|
125
128
|
Alula::DeviceProgram,
|
126
129
|
Alula::DealerAddress,
|
@@ -129,6 +132,7 @@ module Alula
|
|
129
132
|
Alula::FeaturePlan,
|
130
133
|
Alula::FeaturePlanVideo,
|
131
134
|
Alula::FeaturePrice,
|
135
|
+
Alula::HelixUser,
|
132
136
|
Alula::OAuthClient,
|
133
137
|
Alula::ReceiverGroup,
|
134
138
|
Alula::ReceiverDisabled,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alula-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -270,12 +270,14 @@ files:
|
|
270
270
|
- lib/alula/resources/device_event_log.rb
|
271
271
|
- lib/alula/resources/device_notification.rb
|
272
272
|
- lib/alula/resources/device_program.rb
|
273
|
+
- lib/alula/resources/device_user.rb
|
273
274
|
- lib/alula/resources/event_trigger.rb
|
274
275
|
- lib/alula/resources/event_webhook.rb
|
275
276
|
- lib/alula/resources/feature_bysubject.rb
|
276
277
|
- lib/alula/resources/feature_plan.rb
|
277
278
|
- lib/alula/resources/feature_planvideo.rb
|
278
279
|
- lib/alula/resources/feature_price.rb
|
280
|
+
- lib/alula/resources/helix_user.rb
|
279
281
|
- lib/alula/resources/oauth_client.rb
|
280
282
|
- lib/alula/resources/receiver_connection.rb
|
281
283
|
- lib/alula/resources/receiver_disabled.rb
|