alula-ruby 1.9.1 → 1.9.3
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 +5 -6
- data/lib/alula/resources/device_notification.rb +1 -1
- data/lib/alula/resources/revision.rb +1 -1
- data/lib/alula/resources/user.rb +1 -1
- data/lib/alula/resources/video_verification_camera.rb +49 -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: c9fda10242201f1b45a68931b9d4be414288a993e14b5aec0eeb2435cdad4c80
         | 
| 4 | 
            +
              data.tar.gz: aeb5216b6ea157072231e5fae8a8ab16f26aa56631d9feec9b8294ed95a6d30f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 1e579d456f0600473a710e5db28c98e8e22a1fd9e3406d5eaaef7b31610e49ca5eca5a9f7166810e160e6ca5bf08d6397726195735a3a6d5d1e5892ecc172937
         | 
| 7 | 
            +
              data.tar.gz: df396c343275834aee9567cb3be9cc4e4f9f9c957c980932621b1f18e5e854e8dda3ea7ae355060b5658ba8ac722a6efdd07845e6cbf40a82b919658d078edfe
         | 
    
        data/VERSION.md
    CHANGED
    
    | @@ -2,6 +2,8 @@ | |
| 2 2 |  | 
| 3 3 | 
             
            | Version | Date      | Description                                                                 |
         | 
| 4 4 | 
             
            | ------- | --------- | --------------------------------------------------------------------------- |
         | 
| 5 | 
            +
            | v1.9.2  | 2024-07-10  | Update video verification cameras relation and object       |
         | 
| 6 | 
            +
            | v1.9.2  | 2024-07-04  | Fix devices-notifications type pluralization and sms notification pluralization        |
         | 
| 5 7 | 
             
            | v1.9.1  | 2024-07-03  | Add video and sms device features       |
         | 
| 6 8 | 
             
            | v1.9.0  | 2024-07-03  | Add DeviceNotification resource with relationships        |
         | 
| 7 9 | 
             
            | v1.8.1  | 2024-06-25  | Update client to accept impersonator authorization to change admin user langauge preference from dealer app        |
         | 
| @@ -8,7 +8,6 @@ module Alula | |
| 8 8 |  | 
| 9 9 | 
             
                include Alula::DeviceAttributeTranslations
         | 
| 10 10 |  | 
| 11 | 
            -
             | 
| 12 11 | 
             
                class FeaturesSelected < Alula::ObjectField
         | 
| 13 12 | 
             
                  field :alarm_transmission, type: :boolean
         | 
| 14 13 | 
             
                  field :alarm_notifications, type: :boolean
         | 
| @@ -19,9 +18,9 @@ module Alula | |
| 19 18 | 
             
                  field :alarm_verification, type: :boolean
         | 
| 20 19 | 
             
                  field :alula_messenger, type: :boolean
         | 
| 21 20 | 
             
                  field :video_verification, type: :boolean
         | 
| 22 | 
            -
                  field : | 
| 23 | 
            -
             | 
| 24 | 
            -
             | 
| 21 | 
            +
                  field :sms_notification, type: :boolean
         | 
| 22 | 
            +
                end
         | 
| 23 | 
            +
             | 
| 25 24 | 
             
                resource_path 'devices'
         | 
| 26 25 | 
             
                type 'devices'
         | 
| 27 26 |  | 
| @@ -32,7 +31,8 @@ module Alula | |
| 32 31 | 
             
                # relationship :eventlog, type: 'devices-eventlog', cardinality: 'To-many'
         | 
| 33 32 | 
             
                relationship :receiver_group, type: 'receivers-groups', cardinality: 'To-one'
         | 
| 34 33 | 
             
                # relationship :helix_users, type: 'helix-user', cardinality: 'To-many'
         | 
| 35 | 
            -
                relationship :notifications, type: ' | 
| 34 | 
            +
                relationship :notifications, type: 'devices-notifications', cardinality: 'To-many'
         | 
| 35 | 
            +
                relationship :video_verification_cameras, type: 'video-verification-cameras', cardinality: 'To-many'
         | 
| 36 36 | 
             
                # relationship :users, type: 'devices-user', cardinality: 'To-many'
         | 
| 37 37 | 
             
                # relationship :features_supported, type: 'devices-features-supported', cardinality: 'To-one'
         | 
| 38 38 | 
             
                # relationship :features_disabled, type: 'devices-features-disabled', cardinality: 'To-one'
         | 
| @@ -699,6 +699,5 @@ module Alula | |
| 699 699 | 
             
                      filterable: false,
         | 
| 700 700 | 
             
                      creatable_by: [],
         | 
| 701 701 | 
             
                      patchable_by: [:system]
         | 
| 702 | 
            -
             | 
| 703 702 | 
             
              end
         | 
| 704 703 | 
             
            end
         | 
| @@ -9,7 +9,7 @@ module Alula | |
| 9 9 | 
             
                extend Alula::ApiOperations::Save
         | 
| 10 10 |  | 
| 11 11 | 
             
                resource_path 'devices/notifications'
         | 
| 12 | 
            -
                type ' | 
| 12 | 
            +
                type 'devices-notifications'
         | 
| 13 13 |  | 
| 14 14 | 
             
                relationship :device, type: 'devices', cardinality: 'To-one'
         | 
| 15 15 | 
             
                relationship :revisions, type: 'revisions', cardinality: 'To-many'
         | 
| @@ -13,7 +13,7 @@ module Alula | |
| 13 13 | 
             
                # Relationships
         | 
| 14 14 | 
             
                relationship :creator, type: 'users', cardinality: 'To-one'
         | 
| 15 15 | 
             
                relationship :device, type: 'devices', cardinality: 'To-one'
         | 
| 16 | 
            -
                relationship :device_notification, type: ' | 
| 16 | 
            +
                relationship :device_notification, type: 'devices-notifications', cardinality: 'To-one'
         | 
| 17 17 | 
             
                relationship :user, type: 'users', cardinality: 'To-one'
         | 
| 18 18 | 
             
                relationship :dealer, type: 'dealers', cardinality: 'To-one'
         | 
| 19 19 |  | 
    
        data/lib/alula/resources/user.rb
    CHANGED
    
    | @@ -12,7 +12,7 @@ module Alula | |
| 12 12 | 
             
                type 'users'
         | 
| 13 13 |  | 
| 14 14 | 
             
                relationship :devices, type: 'devices', cardinality: 'To-many'
         | 
| 15 | 
            -
                relationship :device_notifications, type: ' | 
| 15 | 
            +
                relationship :device_notifications, type: 'devices-notifications', cardinality: 'To-many'
         | 
| 16 16 | 
             
                relationship :dealer, type: 'dealers', cardinality: 'To-one'
         | 
| 17 17 | 
             
                relationship :phone, type: 'users-phones', cardinality: 'To-one'
         | 
| 18 18 | 
             
                relationship :address, type: 'users-addresses', cardinality: 'To-one'
         | 
| @@ -0,0 +1,49 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            module Alula
         | 
| 4 | 
            +
              class VideoVerificationCamera < 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 | 
            +
             | 
| 11 | 
            +
                resource_path 'video/verification/cameras'
         | 
| 12 | 
            +
                type 'video-verification-cameras'
         | 
| 13 | 
            +
             | 
| 14 | 
            +
                relationship :device, type: 'device', cardinality: 'To-one'
         | 
| 15 | 
            +
                relationship :camera, type: 'camera', cardinality: 'To-one'
         | 
| 16 | 
            +
             | 
| 17 | 
            +
                field :id,
         | 
| 18 | 
            +
                      type: :string,
         | 
| 19 | 
            +
                      sortable: false,
         | 
| 20 | 
            +
                      filterable: true,
         | 
| 21 | 
            +
                      creatable_by: %i[],
         | 
| 22 | 
            +
                      patchable_by: %i[]
         | 
| 23 | 
            +
             | 
| 24 | 
            +
                field :camera_id,
         | 
| 25 | 
            +
                      type: :string,
         | 
| 26 | 
            +
                      sortable: false,
         | 
| 27 | 
            +
                      filterable: false,
         | 
| 28 | 
            +
                      creatable_by: %i[system dealer],
         | 
| 29 | 
            +
                      patchable_by: %i[system dealer]
         | 
| 30 | 
            +
             | 
| 31 | 
            +
             | 
| 32 | 
            +
                field :device_id,
         | 
| 33 | 
            +
                      type: :string,
         | 
| 34 | 
            +
                      sortable: false,
         | 
| 35 | 
            +
                      filterable: true,
         | 
| 36 | 
            +
                      creatable_by: %i[system dealer],
         | 
| 37 | 
            +
                      creatable_by: %i[system dealer]
         | 
| 38 | 
            +
             | 
| 39 | 
            +
             | 
| 40 | 
            +
             | 
| 41 | 
            +
                field :zone_index,
         | 
| 42 | 
            +
                      type: :string,
         | 
| 43 | 
            +
                      sortable: true,
         | 
| 44 | 
            +
                      filterable: true,
         | 
| 45 | 
            +
                      creatable_by: %i[system dealer],
         | 
| 46 | 
            +
                      patchable_by: %i[system dealer]
         | 
| 47 | 
            +
             | 
| 48 | 
            +
              end
         | 
| 49 | 
            +
            end
         | 
    
        data/lib/alula/version.rb
    CHANGED
    
    
    
        data/lib/alula.rb
    CHANGED
    
    | @@ -61,6 +61,7 @@ require_relative 'alula/resources/station' | |
| 61 61 | 
             
            require_relative 'alula/resources/oauth_client'
         | 
| 62 62 | 
             
            require_relative 'alula/resources/device_alias'
         | 
| 63 63 | 
             
            require_relative 'alula/resources/device_notification'
         | 
| 64 | 
            +
            require_relative 'alula/resources/video_verification_camera'
         | 
| 64 65 |  | 
| 65 66 | 
             
            require_relative 'alula/resources/feature_plan'
         | 
| 66 67 | 
             
            require_relative 'alula/resources/feature_planvideo'
         | 
| @@ -118,6 +119,7 @@ module Alula | |
| 118 119 | 
             
                Alula::DeviceCredit,
         | 
| 119 120 | 
             
                Alula::DeviceEventLog,
         | 
| 120 121 | 
             
                Alula::DeviceNotification,
         | 
| 122 | 
            +
                Alula::VideoVerificationCamera,
         | 
| 121 123 | 
             
                Alula::DeviceProgram,
         | 
| 122 124 | 
             
                Alula::DealerAddress,
         | 
| 123 125 | 
             
                Alula::DeviceCellularStatus,
         | 
    
        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.9. | 
| 4 | 
            +
              version: 1.9.3
         | 
| 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-07- | 
| 11 | 
            +
            date: 2024-07-11 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: httparty
         | 
| @@ -284,6 +284,7 @@ files: | |
| 284 284 | 
             
            - lib/alula/resources/user_videoprofile.rb
         | 
| 285 285 | 
             
            - lib/alula/resources/video/base_resource.rb
         | 
| 286 286 | 
             
            - lib/alula/resources/video/device.rb
         | 
| 287 | 
            +
            - lib/alula/resources/video_verification_camera.rb
         | 
| 287 288 | 
             
            - lib/alula/rest_resource.rb
         | 
| 288 289 | 
             
            - lib/alula/rpc_resource.rb
         | 
| 289 290 | 
             
            - lib/alula/rpc_response.rb
         |