Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ pnpm test:sdk-emitters
pnpm generate:api-docs
```

Review and commit that catalog change independently. The current catalog comes from the published PHP SDK [1.4.0 tag](https://github.com/fleetbase/fleetbase-php/releases/tag/1.4.0), commit `f8237cc6bb918061e6aae7ff676393b8b723d6ad`, and includes all six inspection endpoints. Keep future SDK catalog updates separate from the Postman bump.
Review and commit that catalog change independently. The current catalog comes from the published PHP SDK [1.4.1 tag](https://github.com/fleetbase/fleetbase-php/releases/tag/1.4.1), commit `6ca0c2530907d1b669379b326b0e976855dff3ee`, and includes all six inspection endpoints. 1.4.1 tracks the inspection API's renamed submission answers: an inspection is submitted with `answers`, each entry naming its `field`, where 1.4.0 sent `custom_field_values` with `custom_field`. Keep future SDK catalog updates separate from the Postman bump.
6 changes: 3 additions & 3 deletions scripts/php-sdk-examples.generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"schema_version": 1,
"generated_from": {
"repository": "https://github.com/fleetbase/postman",
"ref": "d6a7cc530fa27d7cf19a0d3ef8594cf4e51a76bb",
"ref": "822b867218f174bad18a789d4fd6791ccfd2af34",
"collections": [
"Fleetbase API",
"Fleetbase Core API"
Expand Down Expand Up @@ -1087,8 +1087,8 @@
"name": "Submit an Inspection",
"implementation": "Fleetbase\\Sdk\\Services\\InspectionService::submitInspection",
"variables": [],
"call": "$result = $fleetbase->inspections->submitInspection(\n [\n 'inspection_form' => 'inspection_form_id-fixture',\n 'driver' => 'driver_id-fixture',\n 'vehicle' => 'vehicle_id-fixture',\n 'started_at' => '2026-09-09T07:10:00Z',\n 'odometer' => 120400,\n 'engine_hours' => 3100,\n 'location' => [\n 'latitude' => 1.3521,\n 'longitude' => 103.8198,\n ],\n 'custom_field_values' => [],\n 'item_results' => [\n [\n 'item_key' => 'brakes',\n 'label' => 'Brakes',\n 'category' => 'Safety',\n 'passed' => false,\n 'severity' => 'critical',\n 'comments' => 'Pedal is soft.',\n 'photos' => [\n 'proof_photo_base64-fixture',\n ],\n ],\n [\n 'item_key' => 'lights',\n 'label' => 'Lights',\n 'category' => 'Safety',\n 'passed' => true,\n ],\n ],\n ]\n);",
"code": "<?php\n\n$fleetbase = new \\Fleetbase\\Sdk\\Fleetbase('flb_live_…');\n\n$result = $fleetbase->inspections->submitInspection(\n [\n 'inspection_form' => 'inspection_form_id-fixture',\n 'driver' => 'driver_id-fixture',\n 'vehicle' => 'vehicle_id-fixture',\n 'started_at' => '2026-09-09T07:10:00Z',\n 'odometer' => 120400,\n 'engine_hours' => 3100,\n 'location' => [\n 'latitude' => 1.3521,\n 'longitude' => 103.8198,\n ],\n 'custom_field_values' => [],\n 'item_results' => [\n [\n 'item_key' => 'brakes',\n 'label' => 'Brakes',\n 'category' => 'Safety',\n 'passed' => false,\n 'severity' => 'critical',\n 'comments' => 'Pedal is soft.',\n 'photos' => [\n 'proof_photo_base64-fixture',\n ],\n ],\n [\n 'item_key' => 'lights',\n 'label' => 'Lights',\n 'category' => 'Safety',\n 'passed' => true,\n ],\n ],\n ]\n);"
"call": "$result = $fleetbase->inspections->submitInspection(\n [\n 'inspection_form' => 'inspection_form_id-fixture',\n 'driver' => 'driver_id-fixture',\n 'vehicle' => 'vehicle_id-fixture',\n 'started_at' => '2026-09-09T07:10:00Z',\n 'odometer' => 120400,\n 'engine_hours' => 3100,\n 'location' => [\n 'latitude' => 1.3521,\n 'longitude' => 103.8198,\n ],\n 'answers' => [\n [\n 'field' => 'inspection_pass_fail_field_id-fixture',\n 'value_type' => 'object',\n 'value' => [\n 'passed' => false,\n 'not_applicable' => false,\n 'severity' => 'critical',\n 'comments' => 'Pedal is soft.',\n 'photos' => [\n 'proof_photo_base64-fixture',\n ],\n 'unsafe' => true,\n ],\n ],\n [\n 'field' => 'inspection_number_field_id-fixture',\n 'value_type' => 'number',\n 'value' => 120400,\n ],\n ],\n 'item_results' => [\n [\n 'item_key' => 'brakes',\n 'label' => 'Brakes',\n 'category' => 'Safety',\n 'passed' => false,\n 'severity' => 'critical',\n 'comments' => 'Pedal is soft.',\n 'photos' => [\n 'proof_photo_base64-fixture',\n ],\n ],\n [\n 'item_key' => 'lights',\n 'label' => 'Lights',\n 'category' => 'Safety',\n 'passed' => true,\n ],\n ],\n ]\n);",
"code": "<?php\n\n$fleetbase = new \\Fleetbase\\Sdk\\Fleetbase('flb_live_…');\n\n$result = $fleetbase->inspections->submitInspection(\n [\n 'inspection_form' => 'inspection_form_id-fixture',\n 'driver' => 'driver_id-fixture',\n 'vehicle' => 'vehicle_id-fixture',\n 'started_at' => '2026-09-09T07:10:00Z',\n 'odometer' => 120400,\n 'engine_hours' => 3100,\n 'location' => [\n 'latitude' => 1.3521,\n 'longitude' => 103.8198,\n ],\n 'answers' => [\n [\n 'field' => 'inspection_pass_fail_field_id-fixture',\n 'value_type' => 'object',\n 'value' => [\n 'passed' => false,\n 'not_applicable' => false,\n 'severity' => 'critical',\n 'comments' => 'Pedal is soft.',\n 'photos' => [\n 'proof_photo_base64-fixture',\n ],\n 'unsafe' => true,\n ],\n ],\n [\n 'field' => 'inspection_number_field_id-fixture',\n 'value_type' => 'number',\n 'value' => 120400,\n ],\n ],\n 'item_results' => [\n [\n 'item_key' => 'brakes',\n 'label' => 'Brakes',\n 'category' => 'Safety',\n 'passed' => false,\n 'severity' => 'critical',\n 'comments' => 'Pedal is soft.',\n 'photos' => [\n 'proof_photo_base64-fixture',\n ],\n ],\n [\n 'item_key' => 'lights',\n 'label' => 'Lights',\n 'category' => 'Safety',\n 'passed' => true,\n ],\n ],\n ]\n);"
},
"fleetbase-api-issues-create-an-issue": {
"collection": "Fleetbase API",
Expand Down
Loading