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 +4 -4
- data/VERSION.md +2 -0
- data/lib/alula/resources/dealer_address.rb +7 -0
- data/lib/alula/resources/device.rb +7 -0
- data/lib/alula/resources/token_exchange.rb +2 -2
- data/lib/alula/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e51b7f36321feadae1b87401320b5d85f544a724c484680fe1e73124e1e4776
|
4
|
+
data.tar.gz: c11764b061d10c3132cbea8353f87992ee4608345d382c2c7590fc046c4e318e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
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.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:
|
11
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|