@ingissa/navcore-types 1.0.12 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,3 +1,3 @@
1
- Copyright (c) 2026 Abdelnasser Aitabi. All rights reserved.
2
-
3
- No license is granted except by separate written agreement.
1
+ Copyright (c) 2026 Abdelnasser Aitabi. All rights reserved.
2
+
3
+ No license is granted except by separate written agreement.
package/README.md CHANGED
@@ -1,80 +1,80 @@
1
- # @ingissa/navcore-types
2
-
3
- [Official Website](https://navcore-web.vercel.app/)
4
-
5
- > Shared TypeScript definitions and interfaces for the NavCore SDK ecosystem.
6
-
7
- [![npm version](https://img.shields.io/npm/v/@ingissa/navcore-types)](https://www.npmjs.com/package/@ingissa/navcore-types)
8
- ![License](https://img.shields.io/badge/license-Proprietary-red)
9
- [![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue)](https://www.typescriptlang.org/)
10
-
11
- ---
12
-
13
- ## Overview
14
-
15
- `@ingissa/navcore-types` defines the shared domain models, lifecycle states, event maps, and coordinate abstractions used across `@ingissa/navcore-core`, `@ingissa/navcore-mapbox`, `@ingissa/navcore-react-native`, and `@ingissa/navcore-simulator`.
16
-
17
- ---
18
-
19
- ## Installation
20
-
21
- ```bash
22
- npm install -D @ingissa/navcore-types
23
- ```
24
-
25
- *(Note: `@ingissa/navcore-core` re-exports the required types for convenience; installing `@ingissa/navcore-types` directly is useful for decoupled domain modules and testing harnesses).*
26
-
27
- ---
28
-
29
- ## Key Exported Contracts
30
-
31
- | Symbol | Kind | Description |
32
- |---|---|---|
33
- | `Coord` / `Coordinate` | Type | Two-element coordinate tuple `[longitude, latitude]` |
34
- | `NavCoreState` | Interface | Immutable snapshot returned by `engine.update()` and `engine.getState()` |
35
- | `NavGpsUpdate` | Interface | Input payload fed into `engine.update(gps)` |
36
- | `NavInstruction` | Interface | Normalized turn-by-turn maneuver instruction |
37
- | `DirectionsProvider` | Interface | Contract implemented by routing backends (`getRoute`) |
38
- | `RoutePlan` | Interface | Normalized route geometry and associated maneuver points |
39
- | `NavLifecycleState` | Type | Lifecycle machine state (`IDLE`, `OVERVIEW`, `APPROACHING_ROUTE`, `ON_ROUTE`) |
40
- | `LicenseStatus` | Type | Status of license verification (`VALID`, `INVALID`, `EXPIRED`, `MISSING`) |
41
- | `FeatureKey` | Type | Feature entitlement identifier strings |
42
-
43
- ---
44
-
45
- ## Usage Example
46
-
47
- ```typescript
48
- import type {
49
- Coord,
50
- NavCoreState,
51
- NavGpsUpdate,
52
- DirectionsProvider,
53
- RouteResult,
54
- } from '@ingissa/navcore-types';
55
-
56
- export class CustomRouter implements DirectionsProvider {
57
- async getRoute(waypoints: Coord[]): Promise<RouteResult> {
58
- // Custom routing calculation
59
- return {
60
- geometry: waypoints,
61
- distance: 1200,
62
- duration: 180,
63
- legs: [],
64
- };
65
- }
66
- }
67
- ```
68
-
69
- ---
70
-
71
- ## Documentation
72
-
73
- - [API Reference](https://github.com/ingissa/ingissa-navcore-examples/blob/main/docs/api-reference/navcore-types.md)
74
- - [Official Website](https://navcore-web.vercel.app/)
75
-
76
- ---
77
-
78
- ## Licensing
79
-
1
+ # @ingissa/navcore-types
2
+
3
+ [Official Website](https://navcore-web.vercel.app/)
4
+
5
+ > Shared TypeScript definitions and interfaces for the NavCore SDK ecosystem.
6
+
7
+ [![npm version](https://img.shields.io/npm/v/@ingissa/navcore-types)](https://www.npmjs.com/package/@ingissa/navcore-types)
8
+ ![License](https://img.shields.io/badge/license-Proprietary-red)
9
+ [![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue)](https://www.typescriptlang.org/)
10
+
11
+ ---
12
+
13
+ ## Overview
14
+
15
+ `@ingissa/navcore-types` defines the shared domain models, lifecycle states, event maps, and coordinate abstractions used across `@ingissa/navcore-core`, `@ingissa/navcore-mapbox`, `@ingissa/navcore-react-native`, and `@ingissa/navcore-simulator`.
16
+
17
+ ---
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ npm install -D @ingissa/navcore-types
23
+ ```
24
+
25
+ *(Note: `@ingissa/navcore-core` re-exports the required types for convenience; installing `@ingissa/navcore-types` directly is useful for decoupled domain modules and testing harnesses).*
26
+
27
+ ---
28
+
29
+ ## Key Exported Contracts
30
+
31
+ | Symbol | Kind | Description |
32
+ |---|---|---|
33
+ | `Coord` / `Coordinate` | Type | Two-element coordinate tuple `[longitude, latitude]` |
34
+ | `NavCoreState` | Interface | Immutable snapshot returned by `engine.update()` and `engine.getState()` |
35
+ | `NavGpsUpdate` | Interface | Input payload fed into `engine.update(gps)` |
36
+ | `NavInstruction` | Interface | Normalized turn-by-turn maneuver instruction |
37
+ | `DirectionsProvider` | Interface | Contract implemented by routing backends (`getRoute`) |
38
+ | `RoutePlan` | Interface | Normalized route geometry and associated maneuver points |
39
+ | `NavLifecycleState` | Type | Lifecycle machine state (`IDLE`, `OVERVIEW`, `APPROACHING_ROUTE`, `ON_ROUTE`) |
40
+ | `LicenseStatus` | Type | Status of license verification (`VALID`, `INVALID`, `EXPIRED`, `MISSING`) |
41
+ | `FeatureKey` | Type | Feature entitlement identifier strings |
42
+
43
+ ---
44
+
45
+ ## Usage Example
46
+
47
+ ```typescript
48
+ import type {
49
+ Coord,
50
+ NavCoreState,
51
+ NavGpsUpdate,
52
+ DirectionsProvider,
53
+ RouteResult,
54
+ } from '@ingissa/navcore-types';
55
+
56
+ export class CustomRouter implements DirectionsProvider {
57
+ async getRoute(waypoints: Coord[]): Promise<RouteResult> {
58
+ // Custom routing calculation
59
+ return {
60
+ geometry: waypoints,
61
+ distance: 1200,
62
+ duration: 180,
63
+ legs: [],
64
+ };
65
+ }
66
+ }
67
+ ```
68
+
69
+ ---
70
+
71
+ ## Documentation
72
+
73
+ - [API Reference](https://github.com/ingissa/ingissa-navcore-examples/blob/main/docs/api-reference/navcore-types.md)
74
+ - [Official Website](https://navcore-web.vercel.app/)
75
+
76
+ ---
77
+
78
+ ## Licensing
79
+
80
80
  Proprietary software. Copyright (c) 2026 Abdelnasser Aitabi. All rights reserved. No license is granted except by separate written agreement.
package/dist/index.d.mts CHANGED
@@ -90,6 +90,8 @@ interface NavOptions {
90
90
  kalmanQ?: number;
91
91
  kalmanRBase?: number;
92
92
  licenseKey?: string;
93
+ /** Application bundle ID or web domain bound into a Suite license. */
94
+ applicationId?: string;
93
95
  }
94
96
  /** Navigation instruction (turn-by-turn step) */
95
97
  interface NavInstruction {
package/dist/index.d.ts CHANGED
@@ -90,6 +90,8 @@ interface NavOptions {
90
90
  kalmanQ?: number;
91
91
  kalmanRBase?: number;
92
92
  licenseKey?: string;
93
+ /** Application bundle ID or web domain bound into a Suite license. */
94
+ applicationId?: string;
93
95
  }
94
96
  /** Navigation instruction (turn-by-turn step) */
95
97
  interface NavInstruction {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingissa/navcore-types",
3
- "version": "1.0.12",
3
+ "version": "2.0.0",
4
4
  "description": "Shared type definitions for the NavCore SDK ecosystem.",
5
5
  "author": "Ingissa <8abnav@gmail.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",