@wovvmap/contracts 1.2.0 → 1.2.1
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 +33 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @wovvmap/contracts
|
|
2
|
+
|
|
3
|
+
## Package reference and installation
|
|
4
|
+
|
|
5
|
+
Portable contracts and schemas for the WovVMap SDK ecosystem.
|
|
6
|
+
|
|
7
|
+
[Published package](https://www.npmjs.com/package/@wovvmap/contracts) · [Integration guide](https://sdk-doc.wovvtech.com/docs/architecture/overview) · [Public API reference](https://sdk-doc.wovvtech.com/api/contracts/index.html)
|
|
8
|
+
|
|
9
|
+
Install version `1.2.0` in your application with one package manager.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install @wovvmap/contracts
|
|
13
|
+
# or
|
|
14
|
+
yarn add @wovvmap/contracts
|
|
15
|
+
# or
|
|
16
|
+
pnpm add @wovvmap/contracts
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
This release declares no peer dependencies.
|
|
20
|
+
|
|
21
|
+
## Use a category returned by the SDK
|
|
22
|
+
|
|
23
|
+
The code identifies this category when setting a filter. Display the name in your list. The optional nodePointsKey projection contains location keys on data shapes that include it. A missing projection does not prove there are no stores.
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import type { PublicCategoryData } from '@wovvmap/contracts'
|
|
27
|
+
|
|
28
|
+
export function categoryButton(category: PublicCategoryData) {
|
|
29
|
+
return { label: category.name, filter: { categoryCode: category.code } }
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Repository: [WovVMap platform](https://git.wovvtech.com/Wovvtech/wovvmap-platform). Package license field: `UNLICENSED`.
|