@neoatalaya/contracts-common
v1.0.2
Published
Common shared types for Neo Atalaya
Readme
@neoatalaya/contracts-common
Shared primitive types for the Neo Atalaya ecosystem.
📦 What's inside?
This package provides the base building blocks used across all Neo Atalaya services:
| Type | Description |
|------|-------------|
| GeoPoint | Geographic coordinates (latitude, longitude) with validation |
| Timestamp | ISO 8601 date‑time string (wrapped as a branded type) |
These types are the foundation for incident reports, patrol tracking, and every other domain contract in the ecosystem.
🧭 Table of Contents
📥 Installation
npm install @neoatalaya/contracts-commonNo runtime dependencies – pure TypeScript types and lightweight validation helpers.
🚀 Usage
Importing types
import { GeoPoint, Timestamp } from '@neoatalaya/contracts-common';Examples
// GeoPoint
const point: GeoPoint = { lat: 10.391, lng: -75.483 };
// Coordinates are validated – lat ∈ [-90,90], lng ∈ [-180,180]
// Timestamp (ISO 8601 string)
const incidentTime: Timestamp = '2026-05-10T14:30:00Z';📄 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
