parkgraph 0.0.0-stage → 1.3.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/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/THIRD_PARTY_NOTICES.md +30 -0
- package/bin/parkgraph.cjs +3589 -0
- package/package.json +33 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.3.0 — 2026-10-15
|
|
4
|
+
|
|
5
|
+
- First npm release of the CLI documented at https://parkgraph.com/developers/cli: `parkgraph search`, `book`,
|
|
6
|
+
`status` and `end`, built with commander.
|
|
7
|
+
- `parkgraph search` works without `PARKGRAPH_API_KEY`; `book`, `status` and `end` still ask for it.
|
|
8
|
+
`PARKGRAPH_API_URL` sets a custom API URL (default https://parkgraph.com/api/v1).
|
|
9
|
+
- Self-contained: `@parkgraph/agent-sdk` 1.4.0 and commander are bundled inside, with no runtime dependencies.
|
|
10
|
+
- Works with `pk_test_` sandbox keys; `parkgraph book --test-card` picks a sandbox test card.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Park Graph
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
-
#
|
|
1
|
+
# parkgraph
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The [Park Graph](https://parkgraph.com) CLI. Search, book and manage parking from your terminal.
|
|
4
|
+
|
|
5
|
+
Docs: https://parkgraph.com/developers/cli
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx parkgraph --help
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or install globally:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g parkgraph@1.3.0
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Requires Node.js 20 or newer. The package has no runtime dependencies.
|
|
20
|
+
|
|
21
|
+
## Configure
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
export PARKGRAPH_API_KEY="pk_live_..."
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
| Variable | |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| `PARKGRAPH_API_KEY` | Your API key (required for `book`, `status` and `end`; `search` works without one) |
|
|
30
|
+
| `PARKGRAPH_API_URL` | Custom API URL (default: https://parkgraph.com/api/v1) |
|
|
31
|
+
|
|
32
|
+
## Commands
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
parkgraph search --lat 39.6403 --lng -106.3742 --radius 5 --limit 10
|
|
36
|
+
parkgraph book LOT_UUID --plate "CO-7891"
|
|
37
|
+
parkgraph status SESSION_UUID
|
|
38
|
+
parkgraph end SESSION_UUID SESSION_CODE
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Sandbox
|
|
42
|
+
|
|
43
|
+
With a `pk_test_` key (create one in your Park Graph dashboard, API keys → Test), every command runs against the
|
|
44
|
+
sandbox: three test lots and Stripe test cards, no real payments. `book --test-card "4000 0000 0000 0002"` tries a
|
|
45
|
+
declined card; `4000 0000 0000 3220` needs 3D Secure; the default is `4242 4242 4242 4242`.
|
|
46
|
+
|
|
47
|
+
Sandbox docs: https://parkgraph.com/developers/sandbox
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
MIT. Bundled third-party code: see THIRD_PARTY_NOTICES.md.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
bin/parkgraph.cjs bundles the following package.
|
|
4
|
+
|
|
5
|
+
## commander 13.1.0
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
(The MIT License)
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
13
|
+
a copy of this software and associated documentation files (the
|
|
14
|
+
'Software'), to deal in the Software without restriction, including
|
|
15
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
16
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
17
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
18
|
+
the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be
|
|
21
|
+
included in all copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
24
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
25
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
26
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
27
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
28
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
29
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30
|
+
```
|