alula-ruby 2.10.1 → 2.12.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 +4 -2
- data/lib/alula/helpers/device_helpers/program_id_helper.rb +3 -1
- data/lib/alula/resources/receiver_bind.rb +81 -0
- data/lib/alula/resources/receiver_group.rb +1 -0
- data/lib/alula/version.rb +1 -1
- data/lib/alula.rb +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cfef2fee4669e1d78c8e0cfc65b2e1c33eccb2709cec1d956ffc82510ae1d5d
|
4
|
+
data.tar.gz: af667ac85774ee8913b56305455d313658a9f3016070d6271007838be488480a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 045aba45c7c51da82cc14012e59f1babd4e156b9d816f667f9aeedc44a01bf452b791b68442426d82de22f49f2da277bff7cd66f24c8cd7bb04acbc042012f5c
|
7
|
+
data.tar.gz: 4cb43c7f08d69fa5ec6822b6e24c318dde856f04c0341304951c851ce969c72ec5f4be32e8e6549fe291ec5694c45daa31eba03ca441777f2a6251aa13bcf0b9
|
data/VERSION.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
| Version | Date | Description |
|
4
4
|
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v2.12.0 | 2025-03-13 | Add new Eufy Cameras Program IDs |
|
6
|
+
| v2.11.0 | 2025-03-11 | Add a model for Receiver Bind |
|
5
7
|
| v2.10.1 | 2025-03-10 | Update includeCustomerIP field's type for Receiver model |
|
6
8
|
| v2.10.0 | 2025-02-27 | Add a model for Receiver |
|
7
9
|
| v2.9.1 | 2025-02-25 | Fix Alula::ListObject initialization |
|
@@ -154,7 +156,7 @@
|
|
154
156
|
| v0.7.0 | 2019-11-11 | Implements the start of RPC resources, beginning with Device Registration, Unregistration, Assignment, Unassignment, and Dealer Device Stats |
|
155
157
|
| v0.6.0 | 2019-10-28 | Implements related model loading when fetching a single model, or loading a collection. Call `.includes(:some_model, :othermodel)` in the filter chain, and if present the related models will be available after loading. |
|
156
158
|
| v0.5.1 | 2019-10-21 | Whitelists the EULA as patchable for uType 96 |
|
157
|
-
| v0.5.0 | 2019-10-10 | Inverts how readers & writers are set. <ol><li>Model metadata is now the be-all end-all of defining how an attribute becomes available.</li><li>Readers & writers are set during object initialization. We no longer throw `NoMethodAvailable` errors when attempting to write to an attribute that exists, but your uTYpe doesn't allow writing to. Instead we will accept the write, but continue to exclude that attribute from being sent to the API</li><li>This change fixes an issue where if the API sent down a model that was missing an attribute, we would run into `NoMethodErrors` when rendering the model. Since I don't want to safe-access check every single API model property, having concrete models is the way to go.</li></ol>)
|
159
|
+
| v0.5.0 | 2019-10-10 | Inverts how readers & writers are set. <ol><li>Model metadata is now the be-all end-all of defining how an attribute becomes available.</li><li>Readers & writers are set during object initialization. We no longer throw `NoMethodAvailable` errors when attempting to write to an attribute that exists, but your uTYpe doesn't allow writing to. Instead we will accept the write, but continue to exclude that attribute from being sent to the API</li><li>This change fixes an issue where if the API sent down a model that was missing an attribute, we would run into `NoMethodErrors` when rendering the model. Since I don't want to safe-access check every single API model property, having concrete models is the way to go.</li></ol>)
|
158
160
|
| v0.4.3 | 2019-10-3 | Adds timezone field to Dealer resource |
|
159
161
|
| v0.4.2 | 2019-10-3 | Excludes fields not annotated on the model with the `fields` property. This fixes an issue where a password hash would be used as the basis for a new user password when system users saved a user model. |
|
160
162
|
| v0.4.1 | 2019-10-2 | Handles unknown/empty errors from the API |
|
@@ -169,4 +171,4 @@
|
|
169
171
|
| v0.1.8 | 2019-8-9 | Bugfix, switches api_root in Alula::Client to api_url |
|
170
172
|
| v0.1.7 | 2019-8-8 | Adds RequestStore as a thread-safe storage system for tokens, auth keys, and debug info |
|
171
173
|
| v0.1.6 | 2019-8-7 | Added Dealers and Branding, bug with non-patchable attributes, client grant |
|
172
|
-
| v0.1.0 | 2019-7-25 | Initial release, GET and POST devices, dealer_addresses, user, self |
|
174
|
+
| v0.1.0 | 2019-7-25 | Initial release, GET and POST devices, dealer_addresses, user, self |
|
@@ -0,0 +1,81 @@
|
|
1
|
+
module Alula
|
2
|
+
class ReceiverBind < Alula::RestResource
|
3
|
+
extend Alula::ResourceAttributes
|
4
|
+
extend Alula::RelationshipAttributes
|
5
|
+
extend Alula::ApiOperations::Request
|
6
|
+
extend Alula::ApiOperations::List
|
7
|
+
extend Alula::ApiOperations::Save
|
8
|
+
|
9
|
+
resource_path 'receivers/binds'
|
10
|
+
type 'receivers-binds'
|
11
|
+
|
12
|
+
# Relationships
|
13
|
+
relationship :dealer, type: 'dealers', cardinality: 'To-one'
|
14
|
+
relationship :receiver, type: 'receivers', cardinality: 'To-one'
|
15
|
+
relationship :receiver_group, type: 'receivers-groups', cardinality: 'To-one'
|
16
|
+
|
17
|
+
# Resource Fields
|
18
|
+
field :id,
|
19
|
+
type: :string,
|
20
|
+
sortable: false,
|
21
|
+
filterable: false,
|
22
|
+
creatable_by: [],
|
23
|
+
patchable_by: []
|
24
|
+
|
25
|
+
field :dealer_id,
|
26
|
+
type: :string,
|
27
|
+
sortable: false,
|
28
|
+
filterable: true,
|
29
|
+
creatable_by: [:system, :station, :dealer],
|
30
|
+
patchable_by: []
|
31
|
+
|
32
|
+
field :receiver_id,
|
33
|
+
type: :string,
|
34
|
+
sortable: false,
|
35
|
+
filterable: true,
|
36
|
+
creatable_by: [:system, :station, :dealer],
|
37
|
+
patchable_by: []
|
38
|
+
|
39
|
+
field :receiver_group_id,
|
40
|
+
type: :string,
|
41
|
+
sortable: false,
|
42
|
+
filterable: true,
|
43
|
+
creatable_by: [:system, :station, :dealer],
|
44
|
+
patchable_by: []
|
45
|
+
|
46
|
+
field :priority,
|
47
|
+
type: :number,
|
48
|
+
sortable: true,
|
49
|
+
filterable: false,
|
50
|
+
creatable_by: [:system, :station, :dealer],
|
51
|
+
patchable_by: [:system, :station, :dealer]
|
52
|
+
|
53
|
+
field :date_modified,
|
54
|
+
type: :date,
|
55
|
+
sortable: true,
|
56
|
+
filterable: true,
|
57
|
+
creatable_by: [],
|
58
|
+
patchable_by: []
|
59
|
+
|
60
|
+
field :date_entered,
|
61
|
+
type: :date,
|
62
|
+
sortable: true,
|
63
|
+
filterable: true,
|
64
|
+
creatable_by: [],
|
65
|
+
patchable_by: []
|
66
|
+
|
67
|
+
field :created_by,
|
68
|
+
type: :string,
|
69
|
+
sortable: false,
|
70
|
+
filterable: false,
|
71
|
+
creatable_by: [],
|
72
|
+
patchable_by: []
|
73
|
+
|
74
|
+
field :modified_by,
|
75
|
+
type: :string,
|
76
|
+
sortable: false,
|
77
|
+
filterable: false,
|
78
|
+
creatable_by: [],
|
79
|
+
patchable_by: []
|
80
|
+
end
|
81
|
+
end
|
data/lib/alula/version.rb
CHANGED
data/lib/alula.rb
CHANGED
@@ -68,6 +68,7 @@ require_relative 'alula/resources/receiver_connection'
|
|
68
68
|
require_relative 'alula/resources/receiver_group'
|
69
69
|
require_relative 'alula/resources/receiver_disabled'
|
70
70
|
require_relative 'alula/resources/receiver'
|
71
|
+
require_relative 'alula/resources/receiver_bind'
|
71
72
|
require_relative 'alula/resources/revision'
|
72
73
|
require_relative 'alula/resources/station'
|
73
74
|
require_relative 'alula/resources/oauth_client'
|
@@ -164,6 +165,7 @@ module Alula
|
|
164
165
|
Alula::ReceiverDisabled,
|
165
166
|
Alula::ReceiverConnection,
|
166
167
|
Alula::Receiver,
|
168
|
+
Alula::ReceiverBind,
|
167
169
|
Alula::Revision,
|
168
170
|
Alula::Self,
|
169
171
|
Alula::Station,
|
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: 2.
|
4
|
+
version: 2.12.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: 2025-03-
|
11
|
+
date: 2025-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -301,6 +301,7 @@ files:
|
|
301
301
|
- lib/alula/resources/helix_user.rb
|
302
302
|
- lib/alula/resources/oauth_client.rb
|
303
303
|
- lib/alula/resources/receiver.rb
|
304
|
+
- lib/alula/resources/receiver_bind.rb
|
304
305
|
- lib/alula/resources/receiver_connection.rb
|
305
306
|
- lib/alula/resources/receiver_disabled.rb
|
306
307
|
- lib/alula/resources/receiver_group.rb
|