nextbillionai 0.1.0.pre.alpha.5 → 0.1.0.pre.alpha.6

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: 6749bc60cf4ceb78826c640908da8ec9dfafcde656521c3a14fd8efa37dc1d87
4
- data.tar.gz: 6b257122c607d6e902e34eb7bef88964145a99bec6988fa324faeed87a73b9bc
3
+ metadata.gz: 8c3677bef149eeb968ed267893dd6c90856e29872b494e84fad2a0e0c65662d1
4
+ data.tar.gz: a3a95fc6a17cfa18f409f690db20f8819ad4e0da9c2544cda63eb94f904fde6b
5
5
  SHA512:
6
- metadata.gz: c1e7eea8fa0dd08c745e5bdf98b6b3ac6f2965eaea288729c9862258abfc353e058eebf489c7fa5d72ee16c837162cd130ce4d937d6511b0371b8f9e9ef51123
7
- data.tar.gz: 8465b5b9453520026fd79fba09e3e4b148dc1782540428dd5bd1e842bdc893f3170f1c956f3ed363d94186e03ea31777b0b7a5b7c7ed6f8f31a47246bfd9baff
6
+ metadata.gz: 779cd496eead9d234acbbac7729c6fbeeb396adccd8df488d52efea8d579023b2ddff48689d097042df464a08d4ab81bfb4771162486ff87a70bcd066dfa3009
7
+ data.tar.gz: 8bea5f1219ca643cb6c622766f9c63f89ae081622c8a02ca7c683e9a56f6be2c6ee460505ce65c5a135ea750bd08605acd4c34548ec8c34c6a4be1a9e1e5f7a7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.6 (2025-08-06)
4
+
5
+ Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/nextbillion-ai/nextbillion-sdk-ruby/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
6
+
7
+ ### Chores
8
+
9
+ * **api:** dedupe location types ([3c8eebd](https://github.com/nextbillion-ai/nextbillion-sdk-ruby/commit/3c8eebdbcd82ec1a65feba70b870239693852364))
10
+
3
11
  ## 0.1.0-alpha.5 (2025-08-01)
4
12
 
5
13
  Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/nextbillion-ai/nextbillion-sdk-ruby/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "nextbillionai", "~> 0.1.0.pre.alpha.5"
20
+ gem "nextbillionai", "~> 0.1.0.pre.alpha.6"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -14,8 +14,8 @@ module Nextbillionai
14
14
  # Specify the location coordinates where the vehicle is currently located. This
15
15
  # input is mandatory for each vehicle.
16
16
  #
17
- # @return [Nextbillionai::Models::Optimization::Vehicle::Location]
18
- required :location, -> { Nextbillionai::Optimization::Vehicle::Location }
17
+ # @return [Nextbillionai::Models::Optimization::Location]
18
+ required :location, -> { Nextbillionai::Optimization::Location }
19
19
 
20
20
  # @!attribute attributes
21
21
  # Specify custom attributes for the vehicle. Each attribute should be created as a
@@ -56,36 +56,13 @@ module Nextbillionai
56
56
  #
57
57
  # @param id [String] Specify a unique ID for the vehicle.
58
58
  #
59
- # @param location [Nextbillionai::Models::Optimization::Vehicle::Location] Specify the location coordinates where the vehicle is currently located. This in
59
+ # @param location [Nextbillionai::Models::Optimization::Location] Specify the location coordinates where the vehicle is currently located. This in
60
60
  #
61
61
  # @param attributes [Object] Specify custom attributes for the vehicle. Each attribute should be created as a
62
62
  #
63
63
  # @param priority [Integer] Specify the priority for this vehicle. A higher value indicates a higher priorit
64
64
  #
65
65
  # @param remaining_waypoints [Array<Nextbillionai::Models::Optimization::Location>] An array of objects to collect the location coordinates of the stops remaining o
66
-
67
- # @see Nextbillionai::Models::Optimization::Vehicle#location
68
- class Location < Nextbillionai::Internal::Type::BaseModel
69
- # @!attribute lat
70
- # Latitude of the vehicle's current location.
71
- #
72
- # @return [Float, nil]
73
- optional :lat, Float
74
-
75
- # @!attribute lng
76
- # Longitude of the vehicle's current location.
77
- #
78
- # @return [Float, nil]
79
- optional :lng, Float
80
-
81
- # @!method initialize(lat: nil, lng: nil)
82
- # Specify the location coordinates where the vehicle is currently located. This
83
- # input is mandatory for each vehicle.
84
- #
85
- # @param lat [Float] Latitude of the vehicle's current location.
86
- #
87
- # @param lng [Float] Longitude of the vehicle's current location.
88
- end
89
66
  end
90
67
  end
91
68
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nextbillionai
4
- VERSION = "0.1.0.pre.alpha.5"
4
+ VERSION = "0.1.0.pre.alpha.6"
5
5
  end
@@ -18,13 +18,11 @@ module Nextbillionai
18
18
 
19
19
  # Specify the location coordinates where the vehicle is currently located. This
20
20
  # input is mandatory for each vehicle.
21
- sig { returns(Nextbillionai::Optimization::Vehicle::Location) }
21
+ sig { returns(Nextbillionai::Optimization::Location) }
22
22
  attr_reader :location
23
23
 
24
24
  sig do
25
- params(
26
- location: Nextbillionai::Optimization::Vehicle::Location::OrHash
27
- ).void
25
+ params(location: Nextbillionai::Optimization::Location::OrHash).void
28
26
  end
29
27
  attr_writer :location
30
28
 
@@ -73,7 +71,7 @@ module Nextbillionai
73
71
  sig do
74
72
  params(
75
73
  id: String,
76
- location: Nextbillionai::Optimization::Vehicle::Location::OrHash,
74
+ location: Nextbillionai::Optimization::Location::OrHash,
77
75
  attributes: T.anything,
78
76
  priority: Integer,
79
77
  remaining_waypoints:
@@ -113,7 +111,7 @@ module Nextbillionai
113
111
  override.returns(
114
112
  {
115
113
  id: String,
116
- location: Nextbillionai::Optimization::Vehicle::Location,
114
+ location: Nextbillionai::Optimization::Location,
117
115
  attributes: T.anything,
118
116
  priority: Integer,
119
117
  remaining_waypoints:
@@ -123,45 +121,6 @@ module Nextbillionai
123
121
  end
124
122
  def to_hash
125
123
  end
126
-
127
- class Location < Nextbillionai::Internal::Type::BaseModel
128
- OrHash =
129
- T.type_alias do
130
- T.any(
131
- Nextbillionai::Optimization::Vehicle::Location,
132
- Nextbillionai::Internal::AnyHash
133
- )
134
- end
135
-
136
- # Latitude of the vehicle's current location.
137
- sig { returns(T.nilable(Float)) }
138
- attr_reader :lat
139
-
140
- sig { params(lat: Float).void }
141
- attr_writer :lat
142
-
143
- # Longitude of the vehicle's current location.
144
- sig { returns(T.nilable(Float)) }
145
- attr_reader :lng
146
-
147
- sig { params(lng: Float).void }
148
- attr_writer :lng
149
-
150
- # Specify the location coordinates where the vehicle is currently located. This
151
- # input is mandatory for each vehicle.
152
- sig { params(lat: Float, lng: Float).returns(T.attached_class) }
153
- def self.new(
154
- # Latitude of the vehicle's current location.
155
- lat: nil,
156
- # Longitude of the vehicle's current location.
157
- lng: nil
158
- )
159
- end
160
-
161
- sig { override.returns({ lat: Float, lng: Float }) }
162
- def to_hash
163
- end
164
- end
165
124
  end
166
125
  end
167
126
  end
@@ -4,7 +4,7 @@ module Nextbillionai
4
4
  type vehicle =
5
5
  {
6
6
  id: String,
7
- location: Nextbillionai::Optimization::Vehicle::Location,
7
+ location: Nextbillionai::Optimization::Location,
8
8
  attributes: top,
9
9
  priority: Integer,
10
10
  remaining_waypoints: ::Array[Nextbillionai::Optimization::Location]
@@ -13,7 +13,7 @@ module Nextbillionai
13
13
  class Vehicle < Nextbillionai::Internal::Type::BaseModel
14
14
  attr_accessor id: String
15
15
 
16
- attr_accessor location: Nextbillionai::Optimization::Vehicle::Location
16
+ attr_accessor location: Nextbillionai::Optimization::Location
17
17
 
18
18
  attr_reader attributes: top?
19
19
 
@@ -31,7 +31,7 @@ module Nextbillionai
31
31
 
32
32
  def initialize: (
33
33
  id: String,
34
- location: Nextbillionai::Optimization::Vehicle::Location,
34
+ location: Nextbillionai::Optimization::Location,
35
35
  ?attributes: top,
36
36
  ?priority: Integer,
37
37
  ?remaining_waypoints: ::Array[Nextbillionai::Optimization::Location]
@@ -39,27 +39,11 @@ module Nextbillionai
39
39
 
40
40
  def to_hash: -> {
41
41
  id: String,
42
- location: Nextbillionai::Optimization::Vehicle::Location,
42
+ location: Nextbillionai::Optimization::Location,
43
43
  attributes: top,
44
44
  priority: Integer,
45
45
  remaining_waypoints: ::Array[Nextbillionai::Optimization::Location]
46
46
  }
47
-
48
- type location = { lat: Float, lng: Float }
49
-
50
- class Location < Nextbillionai::Internal::Type::BaseModel
51
- attr_reader lat: Float?
52
-
53
- def lat=: (Float) -> Float
54
-
55
- attr_reader lng: Float?
56
-
57
- def lng=: (Float) -> Float
58
-
59
- def initialize: (?lat: Float, ?lng: Float) -> void
60
-
61
- def to_hash: -> { lat: Float, lng: Float }
62
- end
63
47
  end
64
48
  end
65
49
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nextbillionai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.5
4
+ version: 0.1.0.pre.alpha.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nextbillion SDK
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-01 00:00:00.000000000 Z
11
+ date: 2025-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool