@xyo-network/location-payload-plugin 5.3.1 → 5.3.3
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/package.json +18 -13
- package/src/GeographicCoordinateSystemLocationPayload.ts +0 -26
- package/src/GeographicCoordinateSystemLocationSchema.ts +0 -10
- package/src/HeadingPayload.ts +0 -23
- package/src/HeadingSchema.ts +0 -4
- package/src/Plugin.ts +0 -7
- package/src/Schema.ts +0 -4
- package/src/index.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/location-payload-plugin",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,21 +30,26 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|
|
33
|
-
"
|
|
34
|
-
"!**/*.bench.*",
|
|
35
|
-
"!**/*.spec.*",
|
|
36
|
-
"!**/*.test.*"
|
|
33
|
+
"README.md"
|
|
37
34
|
],
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@xyo-network/payload-model": "~5.3.2",
|
|
40
|
-
"@xyo-network/payload-plugin": "~5.3.2"
|
|
41
|
-
},
|
|
42
35
|
"devDependencies": {
|
|
43
|
-
"@xylabs/
|
|
44
|
-
"@xylabs/
|
|
45
|
-
"@xylabs/
|
|
36
|
+
"@xylabs/sdk-js": "^5.0.90",
|
|
37
|
+
"@xylabs/ts-scripts-common": "~7.5.10",
|
|
38
|
+
"@xylabs/ts-scripts-yarn3": "~7.5.10",
|
|
39
|
+
"@xylabs/tsconfig": "~7.5.10",
|
|
40
|
+
"@xylabs/vitest-extended": "~5.0.90",
|
|
41
|
+
"@xyo-network/payload-model": "~5.3.5",
|
|
42
|
+
"@xyo-network/payload-plugin": "~5.3.5",
|
|
46
43
|
"typescript": "~5.9.3",
|
|
47
|
-
"vitest": "~4.
|
|
44
|
+
"vitest": "~4.1.2",
|
|
45
|
+
"zod": "^4.3.6"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@xylabs/sdk-js": "^5",
|
|
49
|
+
"@xylabs/vitest-extended": "^5",
|
|
50
|
+
"@xyo-network/payload-model": "^5",
|
|
51
|
+
"@xyo-network/payload-plugin": "^5",
|
|
52
|
+
"zod": "^4"
|
|
48
53
|
},
|
|
49
54
|
"publishConfig": {
|
|
50
55
|
"access": "public"
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
import type { GeographicCoordinateSystemLocationSchema, QuadkeyLocationSchema } from './GeographicCoordinateSystemLocationSchema.ts'
|
|
4
|
-
|
|
5
|
-
// Geographic Coordinate system (GCS) is the official name of lng/lat system
|
|
6
|
-
export interface GeographicCoordinateSystemLocation {
|
|
7
|
-
accuracy?: number
|
|
8
|
-
altitude?: number
|
|
9
|
-
altitudeAccuracy?: number
|
|
10
|
-
latitude: number
|
|
11
|
-
longitude: number
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface QuadkeyLocation {
|
|
15
|
-
altitude?: number
|
|
16
|
-
altitudeAccuracy?: number
|
|
17
|
-
quadkey: string
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type Location = GeographicCoordinateSystemLocation | QuadkeyLocation
|
|
21
|
-
|
|
22
|
-
export type GeographicCoordinateSystemLocationPayload = Payload<GeographicCoordinateSystemLocation, GeographicCoordinateSystemLocationSchema>
|
|
23
|
-
|
|
24
|
-
export type QuadkeyLocationPayload = Payload<QuadkeyLocation, QuadkeyLocationSchema>
|
|
25
|
-
|
|
26
|
-
export type LocationPayload = Payload<Location>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
export type GeographicCoordinateSystemLocationSchema = typeof GeographicCoordinateSystemLocationSchema
|
|
4
|
-
export const GeographicCoordinateSystemLocationSchema = asSchema('network.xyo.location.gcs', true)
|
|
5
|
-
|
|
6
|
-
export type QuadkeyLocationSchema = typeof QuadkeyLocationSchema
|
|
7
|
-
export const QuadkeyLocationSchema = asSchema('network.xyo.location.quadkey', true)
|
|
8
|
-
|
|
9
|
-
export type LocationSchema = typeof LocationSchema
|
|
10
|
-
export const LocationSchema = asSchema('network.xyo.location', true)
|
package/src/HeadingPayload.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
import type { LocationHeadingSchema } from './HeadingSchema.ts'
|
|
4
|
-
|
|
5
|
-
export type Acceleration = {
|
|
6
|
-
acceleration: number
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type Heading = {
|
|
10
|
-
heading: number
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type Speed = {
|
|
14
|
-
speed: number
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type Velocity = Heading & Speed
|
|
18
|
-
|
|
19
|
-
export type Motion = Velocity & Partial<Acceleration>
|
|
20
|
-
|
|
21
|
-
export type LocationHeading = Motion | Heading
|
|
22
|
-
|
|
23
|
-
export type LocationHeadingPayload = Payload<LocationHeading, LocationHeadingSchema>
|
package/src/HeadingSchema.ts
DELETED
package/src/Plugin.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { createPayloadPlugin } from '@xyo-network/payload-plugin'
|
|
2
|
-
|
|
3
|
-
import type { LocationPayload } from './GeographicCoordinateSystemLocationPayload.ts'
|
|
4
|
-
import { LocationSchema } from './GeographicCoordinateSystemLocationSchema.ts'
|
|
5
|
-
|
|
6
|
-
export const LocationPayloadPlugin = () =>
|
|
7
|
-
createPayloadPlugin<LocationPayload>({ schema: LocationSchema })
|
package/src/Schema.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './GeographicCoordinateSystemLocationPayload.ts'
|
|
2
|
-
export * from './GeographicCoordinateSystemLocationSchema.ts'
|
|
3
|
-
export * from './HeadingPayload.ts'
|
|
4
|
-
export * from './HeadingSchema.ts'
|
|
5
|
-
export { LocationPayloadPlugin as default, LocationPayloadPlugin } from './Plugin.ts'
|
|
6
|
-
export * from './Schema.ts'
|