alula-ruby 2.4.0 → 2.6.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: d4292b6cc0112aa0e2eaf62194f6894e4ccef4071d35a0fee33b08cad35e05eb
4
- data.tar.gz: b80a6aea89b8e23ff1bc113029f3622defcad05231471995f9b2b2ea65303638
3
+ metadata.gz: 7e51b7f36321feadae1b87401320b5d85f544a724c484680fe1e73124e1e4776
4
+ data.tar.gz: c11764b061d10c3132cbea8353f87992ee4608345d382c2c7590fc046c4e318e
5
5
  SHA512:
6
- metadata.gz: 813be7a704e54bcbaf514480f9d2554ce7e2243ee2a7d52fa59f63922fe963cdf6d44ff0da13628139cc6131e38a5b1e6f8f700c25cc4476586ce4498f1780bd
7
- data.tar.gz: 974ef551d3fc09091ad2b4a6e1b319ff7bb1c69732a45a1075c9b3d0b58c623c84b2aa69d02ea64603a22ee4a07a94269b43a27624cc2c7192e0305e8dc333d6
6
+ metadata.gz: 4b3d4bf6aa24737497ea58e400d326f0b8fba47221880a10ebbb98911c121915b72ebe9e110b22facfbe1e6ac14e965239a696af648b610d3e6586df5fe49c8c
7
+ data.tar.gz: af06c0421b28d2421da2c7352b4d546e5d55d5cca5e04e907d822e376d7f112945d945456fb9e295cd98e97f3496dd0517f2c2f4641fe584ddce5cc7b3ed5d28
data/VERSION.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v2.6.0 | 2025-01-09 | Add ability to request specific scopes for impersonator tokens |
6
+ | v2.5.0 | 2025-01-06 | Add country/state fields to dealer, device, and user |
5
7
  | v2.4.0 | 2024-12-19 | Add DeviceUser and HelixUser Revision relationships |
6
8
  | v2.3.0 | 2024-12-17 | Add Video Register Proc |
7
9
  | v2.2.0 | 2024-12-10 | Add SMS Limit to Device model and the Device Feature Price model |
@@ -78,6 +78,13 @@ module Alula
78
78
  creatable_by: [],
79
79
  patchable_by: [:system, :station, :dealer]
80
80
 
81
+ field :country,
82
+ type: :string,
83
+ sortable: false,
84
+ filterable: false,
85
+ creatable_by: [],
86
+ patchable_by: [:system, :station, :dealer]
87
+
81
88
  field :zip_code,
82
89
  type: :string,
83
90
  sortable: false,
@@ -362,6 +362,13 @@ module Alula
362
362
  creatable_by: [],
363
363
  patchable_by: %i[system station dealer technician user]
364
364
 
365
+ field :physical_country,
366
+ type: :string,
367
+ sortable: false,
368
+ filterable: true,
369
+ creatable_by: [],
370
+ patchable_by: %i[system station dealer technician user]
371
+
365
372
  field :physical_zip,
366
373
  type: :string,
367
374
  sortable: false,
@@ -6,10 +6,10 @@ module Alula
6
6
  # Helper class to generate OAuth access tokens (core API) and JWT tokens (VSP API)
7
7
  class TokenExchange
8
8
  class << self
9
- def token_for_user(user_id)
9
+ def token_for_user(user_id, opts = {}, scope: nil)
10
10
  url = '/rest/v1/oauth/accesstokens'
11
11
  payload = { data: { attributes: { userId: user_id } } }
12
- opts = {}
12
+ payload[:data][:attributes][:scope] = scope if scope
13
13
 
14
14
  response = Alula::Client.request(:post, url, payload, opts)
15
15
 
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.4.0'
4
+ VERSION = '2.6.0'
5
5
  end
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.0
4
+ version: 2.6.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-12-19 00:00:00.000000000 Z
11
+ date: 2025-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty