Skip to content

Commit e9152a8

Browse files
release: 0.5.1 (#32)
* codegen metadata * chore(api): dedupe location types * codegen metadata * release: 0.5.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 885d19a commit e9152a8

File tree

9 files changed

+79
-43
lines changed

9 files changed

+79
-43
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.5.0"
2+
".": "0.5.1"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 95
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nextbillion-ai%2Fnextbillion-sdk-7ee76f0ff6794db818b352ca1566016118ee6d90e8fec84a363e7bcdbfea27a0.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nextbillion-ai%2Fnextbillion-sdk-b647f1808dda89d18a6340cee497eca5248f6f7d0172dfcf903a6361a1261013.yml
33
openapi_spec_hash: 6af51daccd4c91b5d04f71c45dbc31d8
4-
config_hash: 71717c156c0393d102a83129ad3859e1
4+
config_hash: 297ad5b2a79da3c4bae12d9bce4efcc7

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.5.1 (2025-08-06)
4+
5+
Full Changelog: [v0.5.0...v0.5.1](https://github.com/nextbillion-ai/nextbillion-sdk-python/compare/v0.5.0...v0.5.1)
6+
7+
### Chores
8+
9+
* **api:** dedupe location types ([c6afed0](https://github.com/nextbillion-ai/nextbillion-sdk-python/commit/c6afed06267d9f05284e0559029fe135b1e44f30))
10+
311
## 0.5.0 (2025-07-31)
412

513
Full Changelog: [v0.4.1...v0.5.0](https://github.com/nextbillion-ai/nextbillion-sdk-python/compare/v0.4.1...v0.5.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "nextbillionai"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
description = "The official Python library for the nextbillion-sdk API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/nextbillionai/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "nextbillionai"
4-
__version__ = "0.5.0" # x-release-please-version
4+
__version__ = "0.5.1" # x-release-please-version

src/nextbillionai/types/optimization/vehicle_param.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,14 @@
77

88
from .location_param import LocationParam
99

10-
__all__ = ["VehicleParam", "Location"]
11-
12-
13-
class Location(TypedDict, total=False):
14-
lat: float
15-
"""Latitude of the vehicle's current location."""
16-
17-
lng: float
18-
"""Longitude of the vehicle's current location."""
10+
__all__ = ["VehicleParam"]
1911

2012

2113
class VehicleParam(TypedDict, total=False):
2214
id: Required[str]
2315
"""Specify a unique ID for the vehicle."""
2416

25-
location: Required[Location]
17+
location: Required[LocationParam]
2618
"""Specify the location coordinates where the vehicle is currently located.
2719
2820
This input is mandatory for each vehicle.

tests/api_resources/optimization/test_driver_assignment.py

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ def test_method_assign(self, client: NextbillionSDK) -> None:
3232
vehicles=[
3333
{
3434
"id": "id",
35-
"location": {},
35+
"location": {
36+
"lat": -90,
37+
"lon": -180,
38+
},
3639
}
3740
],
3841
)
@@ -93,8 +96,8 @@ def test_method_assign_with_all_params(self, client: NextbillionSDK) -> None:
9396
{
9497
"id": "id",
9598
"location": {
96-
"lat": 0,
97-
"lng": 0,
99+
"lat": -90,
100+
"lon": -180,
98101
},
99102
"attributes": '"attributes":{\n "driver_rating": "4.0",\n "trip_types": "premium"\n }',
100103
"priority": 0,
@@ -145,7 +148,10 @@ def test_raw_response_assign(self, client: NextbillionSDK) -> None:
145148
vehicles=[
146149
{
147150
"id": "id",
148-
"location": {},
151+
"location": {
152+
"lat": -90,
153+
"lon": -180,
154+
},
149155
}
150156
],
151157
)
@@ -170,7 +176,10 @@ def test_streaming_response_assign(self, client: NextbillionSDK) -> None:
170176
vehicles=[
171177
{
172178
"id": "id",
173-
"location": {},
179+
"location": {
180+
"lat": -90,
181+
"lon": -180,
182+
},
174183
}
175184
],
176185
) as response:
@@ -203,7 +212,10 @@ async def test_method_assign(self, async_client: AsyncNextbillionSDK) -> None:
203212
vehicles=[
204213
{
205214
"id": "id",
206-
"location": {},
215+
"location": {
216+
"lat": -90,
217+
"lon": -180,
218+
},
207219
}
208220
],
209221
)
@@ -264,8 +276,8 @@ async def test_method_assign_with_all_params(self, async_client: AsyncNextbillio
264276
{
265277
"id": "id",
266278
"location": {
267-
"lat": 0,
268-
"lng": 0,
279+
"lat": -90,
280+
"lon": -180,
269281
},
270282
"attributes": '"attributes":{\n "driver_rating": "4.0",\n "trip_types": "premium"\n }',
271283
"priority": 0,
@@ -316,7 +328,10 @@ async def test_raw_response_assign(self, async_client: AsyncNextbillionSDK) -> N
316328
vehicles=[
317329
{
318330
"id": "id",
319-
"location": {},
331+
"location": {
332+
"lat": -90,
333+
"lon": -180,
334+
},
320335
}
321336
],
322337
)
@@ -341,7 +356,10 @@ async def test_streaming_response_assign(self, async_client: AsyncNextbillionSDK
341356
vehicles=[
342357
{
343358
"id": "id",
344-
"location": {},
359+
"location": {
360+
"lat": -90,
361+
"lon": -180,
362+
},
345363
}
346364
],
347365
) as response:

tests/api_resources/optimization/test_v2.py

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ def test_method_submit(self, client: NextbillionSDK) -> None:
6464
vehicles=[
6565
{
6666
"id": "id",
67-
"location": {},
67+
"location": {
68+
"lat": -90,
69+
"lon": -180,
70+
},
6871
}
6972
],
7073
)
@@ -84,8 +87,8 @@ def test_method_submit_with_all_params(self, client: NextbillionSDK) -> None:
8487
{
8588
"id": "id",
8689
"location": {
87-
"lat": 0,
88-
"lng": 0,
90+
"lat": -90,
91+
"lon": -180,
8992
},
9093
"attributes": '"attributes":{\n "driver_rating": "4.0",\n "trip_types": "premium"\n }',
9194
"priority": 0,
@@ -300,7 +303,10 @@ def test_raw_response_submit(self, client: NextbillionSDK) -> None:
300303
vehicles=[
301304
{
302305
"id": "id",
303-
"location": {},
306+
"location": {
307+
"lat": -90,
308+
"lon": -180,
309+
},
304310
}
305311
],
306312
)
@@ -319,7 +325,10 @@ def test_streaming_response_submit(self, client: NextbillionSDK) -> None:
319325
vehicles=[
320326
{
321327
"id": "id",
322-
"location": {},
328+
"location": {
329+
"lat": -90,
330+
"lon": -180,
331+
},
323332
}
324333
],
325334
) as response:
@@ -383,7 +392,10 @@ async def test_method_submit(self, async_client: AsyncNextbillionSDK) -> None:
383392
vehicles=[
384393
{
385394
"id": "id",
386-
"location": {},
395+
"location": {
396+
"lat": -90,
397+
"lon": -180,
398+
},
387399
}
388400
],
389401
)
@@ -403,8 +415,8 @@ async def test_method_submit_with_all_params(self, async_client: AsyncNextbillio
403415
{
404416
"id": "id",
405417
"location": {
406-
"lat": 0,
407-
"lng": 0,
418+
"lat": -90,
419+
"lon": -180,
408420
},
409421
"attributes": '"attributes":{\n "driver_rating": "4.0",\n "trip_types": "premium"\n }',
410422
"priority": 0,
@@ -619,7 +631,10 @@ async def test_raw_response_submit(self, async_client: AsyncNextbillionSDK) -> N
619631
vehicles=[
620632
{
621633
"id": "id",
622-
"location": {},
634+
"location": {
635+
"lat": -90,
636+
"lon": -180,
637+
},
623638
}
624639
],
625640
)
@@ -638,7 +653,10 @@ async def test_streaming_response_submit(self, async_client: AsyncNextbillionSDK
638653
vehicles=[
639654
{
640655
"id": "id",
641-
"location": {},
656+
"location": {
657+
"lat": -90,
658+
"lon": -180,
659+
},
642660
}
643661
],
644662
) as response:

tests/api_resources/test_optimization.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def test_method_re_optimize_with_all_params(self, client: NextbillionSDK) -> Non
248248
{
249249
"id": "id",
250250
"location": {
251-
"lat": 0,
252-
"lng": 0,
251+
"lat": -90,
252+
"lon": -180,
253253
},
254254
"attributes": '"attributes":{\n "driver_rating": "4.0",\n "trip_types": "premium"\n }',
255255
"priority": 0,
@@ -264,8 +264,8 @@ def test_method_re_optimize_with_all_params(self, client: NextbillionSDK) -> Non
264264
"modify": {
265265
"id": "id",
266266
"location": {
267-
"lat": 0,
268-
"lng": 0,
267+
"lat": -90,
268+
"lon": -180,
269269
},
270270
"attributes": '"attributes":{\n "driver_rating": "4.0",\n "trip_types": "premium"\n }',
271271
"priority": 0,
@@ -543,8 +543,8 @@ async def test_method_re_optimize_with_all_params(self, async_client: AsyncNextb
543543
{
544544
"id": "id",
545545
"location": {
546-
"lat": 0,
547-
"lng": 0,
546+
"lat": -90,
547+
"lon": -180,
548548
},
549549
"attributes": '"attributes":{\n "driver_rating": "4.0",\n "trip_types": "premium"\n }',
550550
"priority": 0,
@@ -559,8 +559,8 @@ async def test_method_re_optimize_with_all_params(self, async_client: AsyncNextb
559559
"modify": {
560560
"id": "id",
561561
"location": {
562-
"lat": 0,
563-
"lng": 0,
562+
"lat": -90,
563+
"lon": -180,
564564
},
565565
"attributes": '"attributes":{\n "driver_rating": "4.0",\n "trip_types": "premium"\n }',
566566
"priority": 0,

0 commit comments

Comments
 (0)