@insight-sales-global/plat 0.0.0-stage → 0.1.2
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 +53 -2
- package/THIRD_PARTY_LICENSES.txt +70 -0
- package/package.json +26 -4
- package/plat.mjs +238 -0
package/README.md
CHANGED
|
@@ -1,3 +1,54 @@
|
|
|
1
|
-
#
|
|
1
|
+
# plat
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Command-line client for the Insight Sales Platform: list organizations and HubSpot portals, read health findings and manage fixes, manage portal configuration with Deploy, follow data migrations, manage custom alerts, CNPJ enrichment and postal code lookup, reports and integration rules, and run jobs. It uses the platform's public API and the same API keys.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Requires Node.js 22.12 or later.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @insight-sales-global/plat
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Sign in
|
|
14
|
+
|
|
15
|
+
Create an API key in the platform dashboard, on the **Developers** page (organization admins only). The key is shown once. Then sign in with the address of the platform you use:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
plat login --url <platform URL>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The key is asked without echo, checked against the API and saved only on this machine, in `~/.config/plat/config.json` with permission 600. The CLI only talks to the platform over HTTPS and never follows redirects, so the key is not sent to another address.
|
|
22
|
+
|
|
23
|
+
Check the setup without printing secrets:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
plat doctor
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Use
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
plat whoami
|
|
33
|
+
plat portals
|
|
34
|
+
plat findings --severity high
|
|
35
|
+
plat --help
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Every command accepts `--json` for scripts. Environment variables override the saved file, which is useful in CI:
|
|
39
|
+
|
|
40
|
+
| Variable | Purpose |
|
|
41
|
+
| ----------------- | ----------------------------------------------------- |
|
|
42
|
+
| `PLAT_API_URL` | Platform URL (HTTPS; plain HTTP only for `localhost`) |
|
|
43
|
+
| `PLAT_API_KEY` | API key |
|
|
44
|
+
| `XDG_CONFIG_HOME` | Where `plat/config.json` lives (default `~/.config`) |
|
|
45
|
+
|
|
46
|
+
`plat logout` removes the saved key from this machine; the key stays valid until it is revoked in the dashboard.
|
|
47
|
+
|
|
48
|
+
## Help
|
|
49
|
+
|
|
50
|
+
`plat --help` lists every command, and `plat <command> --help` shows its options. For access or plan questions, talk to your Insight Sales contact.
|
|
51
|
+
|
|
52
|
+
## License
|
|
53
|
+
|
|
54
|
+
Proprietary software of Insight Sales, distributed for use with the Insight Sales Platform. The open source libraries bundled in `plat.mjs` and their licenses are listed in `THIRD_PARTY_LICENSES.txt`.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
Open source libraries bundled in plat.mjs, with their licenses.
|
|
2
|
+
|
|
3
|
+
commander@15.1.0 (MIT)
|
|
4
|
+
|
|
5
|
+
(The MIT License)
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
10
|
+
a copy of this software and associated documentation files (the
|
|
11
|
+
'Software'), to deal in the Software without restriction, including
|
|
12
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
13
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
14
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
15
|
+
the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be
|
|
18
|
+
included in all copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
21
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
22
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
23
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
24
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
25
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
26
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
27
|
+
|
|
28
|
+
------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
yaml@2.9.1 (ISC)
|
|
31
|
+
|
|
32
|
+
Copyright Eemeli Aro <eemeli@gmail.com>
|
|
33
|
+
|
|
34
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
35
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
36
|
+
and this permission notice appear in all copies.
|
|
37
|
+
|
|
38
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
39
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
40
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
41
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
42
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
43
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
44
|
+
THIS SOFTWARE.
|
|
45
|
+
|
|
46
|
+
------------------------------------------------------------------------
|
|
47
|
+
|
|
48
|
+
zod@4.6.7 (MIT)
|
|
49
|
+
|
|
50
|
+
MIT License
|
|
51
|
+
|
|
52
|
+
Copyright (c) 2025 Colin McDonnell
|
|
53
|
+
|
|
54
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
55
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
56
|
+
in the Software without restriction, including without limitation the rights
|
|
57
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
58
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
59
|
+
furnished to do so, subject to the following conditions:
|
|
60
|
+
|
|
61
|
+
The above copyright notice and this permission notice shall be included in all
|
|
62
|
+
copies or substantial portions of the Software.
|
|
63
|
+
|
|
64
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
65
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
66
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
67
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
68
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
69
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
70
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insight-sales-global/plat",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Command-line client for the Insight Sales Platform: HubSpot portals, health findings and fixes, Deploy, migrations, alerts, enrichment, reports and integration rules.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"hubspot",
|
|
7
|
+
"revops",
|
|
8
|
+
"cli",
|
|
9
|
+
"insight-sales"
|
|
10
|
+
],
|
|
11
|
+
"license": "UNLICENSED",
|
|
12
|
+
"author": "Insight Sales",
|
|
13
|
+
"type": "module",
|
|
14
|
+
"bin": {
|
|
15
|
+
"plat": "plat.mjs"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"plat.mjs",
|
|
19
|
+
"README.md",
|
|
20
|
+
"THIRD_PARTY_LICENSES.txt"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=22.12.0"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
}
|
|
28
|
+
}
|