@neoatalaya/contracts-patrol
v1.0.0
Published
Patrol domain types (GPSTrace) for Neo Atalaya
Readme
@neoatalaya/contracts-patrol / neoatalaya_contracts_patrol
Patrol tracking types for the Neo Atalaya ecosystem – available for TypeScript and Python.
📦 What's inside?
This package provides the patrol unit tracking structure used across Neo Atalaya services:
| Type | Description |
|------|-------------|
| GPSTrace | Real‑time GPS position of a patrol unit (extends GeoPoint) |
These types are the foundation for fleet monitoring, route optimization, and incident response coordination.
📥 Installation
TypeScript (npm)
npm install @neoatalaya/contracts-patrolPython (PyPI)
uv add neoatalaya_contracts_patrol
# or
pip install neoatalaya_contracts_patrolDependencies are resolved automatically (
neoatalaya_contracts_commonwill be installed).
🚀 Usage
TypeScript
import { GPSTrace } from '@neoatalaya/contracts-patrol';
const trace: GPSTrace = {
patrol_id: 'unit-42',
lat: 10.391,
lng: -75.483,
timestamp: '2026-05-10T14:30:00Z',
};Peer dependency: you also need
@neoatalaya/contracts-common(types are used but not bundled).
Python
from neoatalaya_contracts_patrol import GPSTrace
trace = GPSTrace(
patrol_id="unit-42",
lat=10.391,
lng=-75.483,
timestamp="2026-05-10T14:30:00Z",
)Both GPSTrace inherits from GeoPoint, so it includes lat and lng fields automatically.
🔧 Publishing & Maintenance
This package is generated automatically from JSON Schema sources in the contract-packages-transpiler repository. Do not edit the code directly – update the schemas in packages/contracts/patrol/schema/ and run the transpilation pipeline.
Source repository: https://www.github.com/neoatalaya/contract-packages-transpiler
Issues: Report problems with the generated types in the source repository.
📄 License
This project is licensed under the Eclipse Public License 2.0 (EPL-2.0).
You may obtain a copy of the License at
https://www.eclipse.org/legal/epl-2.0/
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Made with ❤️ by NeoAtalaya
