From 90f7abfbe3cb8c1fd87607739c8065fd48862385 Mon Sep 17 00:00:00 2001 From: John Michael Mizerany Date: Wed, 1 Apr 2026 16:47:09 -0500 Subject: [PATCH 1/3] bump api version, adjust paths --- tap_fleetio/streams.py | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/tap_fleetio/streams.py b/tap_fleetio/streams.py index 2c0910f..dd3f927 100644 --- a/tap_fleetio/streams.py +++ b/tap_fleetio/streams.py @@ -12,9 +12,9 @@ class IssuesStream(fleetioStream): name = "issues" - path = "/v2/issues" + path = "/issues" primary_keys = ["id"] - api_version = "2024-03-15" + api_version = "2025-05-05" records_jsonpath = "$.records[*]" schema_filepath = SCHEMAS_DIR / "issues.json" # noqa: ERA001 @@ -22,9 +22,9 @@ class IssuesStream(fleetioStream): class ServiceEntriesStream(fleetioStream): name = "service_entries" - path = "/v2/service_entries" + path = "/service_entries" primary_keys = ["id"] - api_version = "2024-03-15" + api_version = "2025-05-05" records_jsonpath = "$.records[*]" schema_filepath = SCHEMAS_DIR / "service_entries.json" # noqa: ERA001 @@ -32,9 +32,9 @@ class ServiceEntriesStream(fleetioStream): class SubmittedInspectionFormsStream(fleetioStream): name = "submitted_inspection_forms" - path = "/v1/submitted_inspection_forms" + path = "/submitted_inspection_forms" primary_keys = ["id"] - api_version = "2024-03-15" + api_version = "2025-05-05" records_jsonpath = "$.records[*]" schema_filepath = SCHEMAS_DIR / "submitted_inspection_forms.json" # noqa: ERA001 @@ -42,9 +42,9 @@ class SubmittedInspectionFormsStream(fleetioStream): class VehiclesStream(fleetioStream): name = "vehicles" - path = "/v1/vehicles" + path = "/vehicles" primary_keys = ["id"] - api_version = "2024-03-15" + api_version = "2025-05-05" records_jsonpath = "$.records[*]" schema_filepath = SCHEMAS_DIR / "vehicles.json" # noqa: ERA001 @@ -52,9 +52,9 @@ class VehiclesStream(fleetioStream): class ExpenseEntriesStream(fleetioStream): name = "expense_entries" - path = "/v1/expense_entries" + path = "/expense_entries" primary_keys = ["id"] - api_version = "2024-03-15" + api_version = "2025-05-05" records_jsonpath = "$.records[*]" schema_filepath = SCHEMAS_DIR / "expense_entries.json" # noqa: ERA001 @@ -62,9 +62,9 @@ class ExpenseEntriesStream(fleetioStream): class ContactsStream(fleetioStream): name = "contacts" - path = "/v2/contacts" + path = "/contacts" primary_keys = ["id"] - api_version = "2024-03-15" + api_version = "2025-05-05" records_jsonpath = "$.records[*]" schema_filepath = SCHEMAS_DIR / "contacts.json" # noqa: ERA001 @@ -72,9 +72,9 @@ class ContactsStream(fleetioStream): class FuelEntriesStream(fleetioStream): name = "fuel_entries" - path = "/v1/fuel_entries" + path = "/fuel_entries" primary_keys = ["id"] - api_version = "2024-03-15" + api_version = "2025-05-05" records_jsonpath = "$.records[*]" schema_filepath = SCHEMAS_DIR / "fuel_entries.json" # noqa: ERA001 @@ -82,9 +82,9 @@ class FuelEntriesStream(fleetioStream): class PartsStream(fleetioStream): name = "parts" - path = "/v1/parts" + path = "/parts" primary_keys = ["id"] - api_version = "2024-03-15" + api_version = "2025-05-05" records_jsonpath = "$.records[*]" schema_filepath = SCHEMAS_DIR / "parts.json" # noqa: ERA001 @@ -92,9 +92,9 @@ class PartsStream(fleetioStream): class PurchaseOrdersStream(fleetioStream): name = "purchase_orders" - path = "/v1/purchase_orders" + path = "/purchase_orders" primary_keys = ["id"] - api_version = "2024-03-15" + api_version = "2025-05-05" records_jsonpath = "$.records[*]" schema_filepath = SCHEMAS_DIR / "purchase_orders.json" # noqa: ERA001 @@ -102,8 +102,8 @@ class PurchaseOrdersStream(fleetioStream): class VehicleAssignmentsStream(fleetioStream): name = "vehicle_assignments" - path = "/v1/vehicle_assignments" + path = "/vehicle_assignments" primary_keys = ["id"] - api_version = "2024-03-15" + api_version = "2025-05-05" records_jsonpath = "$.records[*]" schema_filepath = SCHEMAS_DIR / "vehicle_assignments.json" # noqa: ERA001 From 409bef3c537e485802dbc1158eb15e0c40e13aca Mon Sep 17 00:00:00 2001 From: John Michael Mizerany Date: Wed, 1 Apr 2026 16:47:41 -0500 Subject: [PATCH 2/3] remove version check for pagination --- tap_fleetio/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_fleetio/client.py b/tap_fleetio/client.py index 99d3043..24497e5 100644 --- a/tap_fleetio/client.py +++ b/tap_fleetio/client.py @@ -89,7 +89,7 @@ def get_url_params( A dictionary of URL query parameters. """ params: dict = {} - if next_page_token and self.api_version == "2024-03-15": + if next_page_token: params["start_cursor"] = next_page_token params["per_page"] = 100 return params From 2a0332fcc5d3b907dc6efeffb5abd6597e06e313 Mon Sep 17 00:00:00 2001 From: John Michael Mizerany Date: Wed, 1 Apr 2026 16:48:01 -0500 Subject: [PATCH 3/3] update schema for submitted_inspection_forms --- tap_fleetio/schemas/submitted_inspection_forms.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tap_fleetio/schemas/submitted_inspection_forms.json b/tap_fleetio/schemas/submitted_inspection_forms.json index 73b30cf..fcd2e24 100644 --- a/tap_fleetio/schemas/submitted_inspection_forms.json +++ b/tap_fleetio/schemas/submitted_inspection_forms.json @@ -34,13 +34,13 @@ "starting_latitude": { "type": [ "null", - "number" + "string" ] }, "starting_longitude": { "type": [ "null", - "number" + "string" ] }, "submitted_at": { @@ -49,13 +49,13 @@ "submitted_latitude": { "type": [ "null", - "number" + "string" ] }, "submitted_longitude": { "type": [ "null", - "number" + "string" ] }, "user": {