alula-ruby 2.18.0 → 2.20.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 +2 -0
- data/lib/alula/resources/device.rb +1 -0
- data/lib/alula/resources/nfc_tag.rb +56 -0
- data/lib/alula/resources/receiver.rb +7 -0
- data/lib/alula/version.rb +1 -1
- data/lib/alula.rb +3 -1
- 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: 91928304c0ae5bf4b3314ee3c76f88e7ce0fd8f533472391b13be7166f74b86a
|
4
|
+
data.tar.gz: 96c3c4b1ca210019151d2faf64bd327befe6ada7a05b9980eebfbe3bbf7d0195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2b1c52667420e81bbb29b3424aa44e45b522eb7ec8003a5a0c614d1413d0ae2c8772ff3dcbf968952addcbdea61c17451030755740b962dfac1ae8e51e9c9de
|
7
|
+
data.tar.gz: 4705740e6065e11a0aab3c3d46989aba60f777616a765611ccc42b4d5332fdd7d60495ae1fc3a25863ed5090afc2c6b8f428f65495786bed09b9f1593a860ecd
|
data/VERSION.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
| Version | Date | Description |
|
4
4
|
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v2.20.0 | 2025-07-07 | Add NFC Tags |
|
6
|
+
| v2.19.0 | 2025-07-03 | Add line_num_alphanumeric to Receiver model |
|
5
7
|
| v2.18.0 | 2025-07-02 | Add remote_central_station_id to Receiver model |
|
6
8
|
| v2.17.0 | 2025-07-01 | Add force logic to API resource creation |
|
7
9
|
| v2.16.2 | 2025-06-26 | Rename DCP fields, fix primitive arrays |
|
@@ -41,6 +41,7 @@ module Alula
|
|
41
41
|
relationship :video_verification_cameras, type: 'video-verification-cameras', cardinality: 'To-many'
|
42
42
|
relationship :users, type: 'devices-users', cardinality: 'To-many'
|
43
43
|
relationship :features_prices, type: 'devices-features-prices', cardinality: 'To-one'
|
44
|
+
relationship :tags, type: 'tags', cardinality: 'To-many'
|
44
45
|
# relationship :features_supported, type: 'devices-features-supported', cardinality: 'To-one'
|
45
46
|
# relationship :features_disabled, type: 'devices-features-disabled', cardinality: 'To-one'
|
46
47
|
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Alula
|
4
|
+
class NfcTag < Alula::RestResource
|
5
|
+
extend Alula::ResourceAttributes
|
6
|
+
extend Alula::RelationshipAttributes
|
7
|
+
extend Alula::ApiOperations::Request
|
8
|
+
extend Alula::ApiOperations::List
|
9
|
+
|
10
|
+
resource_path 'tags'
|
11
|
+
type 'tags'
|
12
|
+
|
13
|
+
relationship :device, type: 'devices', cardinality: 'To-one'
|
14
|
+
|
15
|
+
class NfcTagParams < Alula::ObjectField
|
16
|
+
# unknown other fields for now
|
17
|
+
field :partition_index, type: :number
|
18
|
+
end
|
19
|
+
|
20
|
+
field :id,
|
21
|
+
type: :string,
|
22
|
+
sortable: false,
|
23
|
+
filterable: true,
|
24
|
+
creatable_by: [],
|
25
|
+
patchable_by: []
|
26
|
+
|
27
|
+
field :name,
|
28
|
+
type: :string,
|
29
|
+
sortable: true,
|
30
|
+
filterable: true,
|
31
|
+
creatable_by: [],
|
32
|
+
patchable_by: []
|
33
|
+
|
34
|
+
field :device_id,
|
35
|
+
type: :string,
|
36
|
+
sortable: false,
|
37
|
+
filterable: true,
|
38
|
+
creatable_by: [],
|
39
|
+
patchable_by: []
|
40
|
+
|
41
|
+
field :action,
|
42
|
+
type: :string,
|
43
|
+
sortable: false,
|
44
|
+
filterable: false,
|
45
|
+
creatable_by: [],
|
46
|
+
patchable_by: []
|
47
|
+
|
48
|
+
field :params,
|
49
|
+
type: :object,
|
50
|
+
use: NfcTagParams,
|
51
|
+
sortable: false,
|
52
|
+
filterable: false,
|
53
|
+
creatable_by: [],
|
54
|
+
patchable_by: []
|
55
|
+
end
|
56
|
+
end
|
@@ -69,6 +69,13 @@ module Alula
|
|
69
69
|
creatable_by: [:system, :station, :dealer],
|
70
70
|
patchable_by: [:system, :station, :dealer]
|
71
71
|
|
72
|
+
field :line_num_alphanumeric,
|
73
|
+
type: :string,
|
74
|
+
sortable: false,
|
75
|
+
filterable: false,
|
76
|
+
creatable_by: [:system, :station, :dealer],
|
77
|
+
patchable_by: [:system, :station, :dealer]
|
78
|
+
|
72
79
|
field :dealer_acnt,
|
73
80
|
type: :string,
|
74
81
|
sortable: false,
|
data/lib/alula/version.rb
CHANGED
data/lib/alula.rb
CHANGED
@@ -144,10 +144,11 @@ require_relative 'alula/resources/feature_plan'
|
|
144
144
|
require_relative 'alula/resources/feature_planvideo'
|
145
145
|
require_relative 'alula/resources/feature_price'
|
146
146
|
require_relative 'alula/resources/feature_bysubject'
|
147
|
-
|
147
|
+
require_relative 'alula/resources/nfc_tag'
|
148
148
|
require_relative 'alula/resources/dcp/config/synchronize'
|
149
149
|
require_relative 'alula/resources/video/base_resource'
|
150
150
|
require_relative 'alula/resources/video/device'
|
151
|
+
|
151
152
|
require_relative 'alula/procedures/device_cellular_history_proc'
|
152
153
|
require_relative 'alula/procedures/device_rateplan_get_proc'
|
153
154
|
require_relative 'alula/procedures/device_register_proc'
|
@@ -223,6 +224,7 @@ module Alula
|
|
223
224
|
Alula::FeaturePlanVideo,
|
224
225
|
Alula::FeaturePrice,
|
225
226
|
Alula::HelixUser,
|
227
|
+
Alula::NfcTag,
|
226
228
|
Alula::OAuthClient,
|
227
229
|
Alula::ReceiverGroup,
|
228
230
|
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: 2.
|
4
|
+
version: 2.20.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-07-
|
11
|
+
date: 2025-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -340,6 +340,7 @@ files:
|
|
340
340
|
- lib/alula/resources/feature_planvideo.rb
|
341
341
|
- lib/alula/resources/feature_price.rb
|
342
342
|
- lib/alula/resources/helix_user.rb
|
343
|
+
- lib/alula/resources/nfc_tag.rb
|
343
344
|
- lib/alula/resources/oauth_client.rb
|
344
345
|
- lib/alula/resources/receiver.rb
|
345
346
|
- lib/alula/resources/receiver_bind.rb
|