alula-ruby 2.24.0 → 2.26.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c45c97a74b8359adbe282b56af55dc872abb0f7254dbf9302650a7e617726d5a
4
- data.tar.gz: 688d1e8fa635ee6acb8d672dcf6660f9d64ce64b0de58cbb930470ce0657b1b2
3
+ metadata.gz: e7abfc0174b7fa2592bcde69e32139f260ea2bc0d12c3e8f08da56714bf2aae1
4
+ data.tar.gz: cd0c84fd01d7c4c9e5683b7162b9917b7670e49cb75e8def393d37b8a560d2fd
5
5
  SHA512:
6
- metadata.gz: 36079e853c703f56f6955b82a9d3f49899cd51170cce4d5b5327f59ea494fe5c9e8eb25ea34c8f68c3f0bcc0c4a8099f01c44b88fd08010f7713a58f0beffbf4
7
- data.tar.gz: 8abb92be68ac4d7701da5b4cf7e10044f34e511fdfc58e6f3932c531783c26b0f7ee45685eb0a1fb2fb49c4b8a4bd462840f7bb3bad0005cdc9acf13f700d297
6
+ metadata.gz: 395442bb6a183fb4813a0bbd7a777b0d9a301e2e984a7990842731ea8692f919597a6b618ba56819dd2e1b9c2e6a2136fd0d908ad6d17842872bc57d312e780f
7
+ data.tar.gz: fca687b38aebfe63ae47c83d43ac036dcafaf43a99da9b2000b133044156b09e931530bd2e2abc5e6a27cb4c067caf49f202f6e082cccbe9904d19fb38b59b1e
data/VERSION.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v2.26.0 | 2025-10-02 | Add nfc_tags device feature |
6
+ | v2.25.0 | 2025-08-20 | Add SIM Cards |
5
7
  | v2.24.0 | 2025-08-13 | Add app identifier fields to dealer branding |
6
8
  | v2.23.0 | 2025-07-16 | Replace monitoring device feature with intrusion_services and video_monitoring_with_ai |
7
9
  | v2.22.0 | 2025-07-07 | Add is_default config_template field |
@@ -27,6 +27,7 @@ module Alula
27
27
  field :onvif_video_hub, type: :boolean
28
28
  field :intrusion_services, type: :boolean
29
29
  field :video_monitoring_with_ai, type: :boolean
30
+ field :nfc_tags, type: :boolean
30
31
  end
31
32
 
32
33
  resource_path 'devices'
@@ -44,6 +45,7 @@ module Alula
44
45
  relationship :users, type: 'devices-users', cardinality: 'To-many'
45
46
  relationship :features_prices, type: 'devices-features-prices', cardinality: 'To-one'
46
47
  relationship :tags, type: 'tags', cardinality: 'To-many'
48
+ relationship :sims, type: 'devices-sims', cardinality: 'To-many'
47
49
  # relationship :features_supported, type: 'devices-features-supported', cardinality: 'To-one'
48
50
  # relationship :features_disabled, type: 'devices-features-disabled', cardinality: 'To-one'
49
51
 
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alula
4
+ class SimCard < Alula::RestResource
5
+ extend Alula::ResourceAttributes
6
+ extend Alula::RelationshipAttributes
7
+ extend Alula::ApiOperations::Request
8
+ extend Alula::ApiOperations::List
9
+
10
+ resource_path 'devices/sims'
11
+ type 'devices-sims'
12
+
13
+ relationship :device, type: 'devices', cardinality: 'To-one'
14
+
15
+ field :id,
16
+ type: :string,
17
+ sortable: false,
18
+ filterable: false,
19
+ creatable_by: [],
20
+ patchable_by: []
21
+
22
+ field :device_id,
23
+ type: :string,
24
+ sortable: false,
25
+ filterable: true,
26
+ creatable_by: [],
27
+ patchable_by: []
28
+
29
+ field :iccid,
30
+ type: :string,
31
+ sortable: false,
32
+ filterable: true,
33
+ creatable_by: [],
34
+ patchable_by: []
35
+
36
+ field :imei,
37
+ type: :string,
38
+ sortable: false,
39
+ filterable: true,
40
+ creatable_by: [],
41
+ patchable_by: []
42
+
43
+ field :eid,
44
+ type: :string,
45
+ sortable: false,
46
+ filterable: true,
47
+ creatable_by: [],
48
+ patchable_by: []
49
+
50
+ field :mno,
51
+ type: :string,
52
+ sortable: false,
53
+ filterable: true,
54
+ creatable_by: [],
55
+ patchable_by: []
56
+
57
+ field :type,
58
+ type: :string,
59
+ sortable: false,
60
+ filterable: true,
61
+ creatable_by: [],
62
+ patchable_by: []
63
+ end
64
+ end
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '2.24.0'
4
+ VERSION = '2.26.0'
5
5
  end
data/lib/alula.rb CHANGED
@@ -145,6 +145,7 @@ 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
+ require_relative 'alula/resources/sim_card'
148
149
  require_relative 'alula/resources/dcp/config/synchronize'
149
150
  require_relative 'alula/resources/video/base_resource'
150
151
  require_relative 'alula/resources/video/device'
@@ -225,6 +226,7 @@ module Alula
225
226
  Alula::FeaturePrice,
226
227
  Alula::HelixUser,
227
228
  Alula::NfcTag,
229
+ Alula::SimCard,
228
230
  Alula::OAuthClient,
229
231
  Alula::ReceiverGroup,
230
232
  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.24.0
4
+ version: 2.26.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-08-14 00:00:00.000000000 Z
11
+ date: 2025-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -349,6 +349,7 @@ files:
349
349
  - lib/alula/resources/receiver_group.rb
350
350
  - lib/alula/resources/revision.rb
351
351
  - lib/alula/resources/self.rb
352
+ - lib/alula/resources/sim_card.rb
352
353
  - lib/alula/resources/station.rb
353
354
  - lib/alula/resources/token_exchange.rb
354
355
  - lib/alula/resources/user.rb