@wemap/core 14.0.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/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Core Package
2
+
3
+ The core package provides the foundational functionality for the Wemap SDK, including initialization, configuration management, and HTTP client services.
4
+
5
+ ## Features
6
+
7
+ - **SDK Initialization**: Initialize the SDK with your livemap ID and authentication token
8
+ - **Configuration Management**: Access global configuration across all SDK packages
9
+ - **HTTP Client**: Robust HTTP client with automatic JSON parsing, error handling, and timeout support
10
+ - **Livemap Service**: Fetch and parse livemap data from the Wemap API
11
+
12
+ ## Getting Started
13
+
14
+ ```typescript
15
+ import { core } from '@wemap/core';
16
+
17
+ // Initialize the SDK
18
+ await core.init({
19
+ emmid: 'your-emmid',
20
+ token: 'your-token',
21
+ env: 'production' // or 'development'
22
+ });
23
+
24
+ // Access configuration
25
+ const config = CoreConfig.getConfig();
26
+ ```
27
+
28
+ ## Main Classes
29
+
30
+ - **CoreConfig**: Main configuration class for SDK initialization
31
+ - **HttpClient**: HTTP client for making API requests
32
+ - **LivemapService**: Service for fetching livemap data
33
+
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @category Core
3
+ */
4
+ export * from './src/CoreConfig';
5
+ export * from './src/services/LivemapService';
6
+ export * from './src/services/HttpClient';
7
+ export type { LatLngLike } from './src/types/common';
8
+ export { latLngLikeToCoordinates } from './src/utils/map';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAE1C,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC"}