@fulldivevr/workcord-cli 1.0.0 → 1.1.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 +88 -30
- package/dist/auth.js +38 -4
- package/dist/cli.js +3 -1
- package/dist/client.js +21 -12
- package/dist/commands/auth.js +33 -14
- package/dist/commands/challenges.js +2 -7
- package/dist/commands/custom-agents.js +3 -8
- package/dist/commands/dm.js +2 -3
- package/dist/commands/health.js +29 -0
- package/dist/commands/messages.js +8 -21
- package/dist/commands/room-agents.js +2 -7
- package/dist/commands/rooms.js +24 -31
- package/dist/commands/users.js +4 -9
- package/dist/commands/whoami.js +24 -7
- package/dist/config.js +34 -0
- package/dist/generated/commands/activity.js +3 -6
- package/dist/generated/commands/ai.js +3 -6
- package/dist/generated/commands/ambassador.js +3 -6
- package/dist/generated/commands/apple-iap.js +4 -9
- package/dist/generated/commands/attribution.js +6 -15
- package/dist/generated/commands/auth.js +9 -24
- package/dist/generated/commands/challenges.js +13 -36
- package/dist/generated/commands/clips.js +3 -6
- package/dist/generated/commands/contact-match.js +7 -18
- package/dist/generated/commands/content-crawler.js +2 -3
- package/dist/generated/commands/custom-agents.js +22 -63
- package/dist/generated/commands/desktop-releases.js +5 -12
- package/dist/generated/commands/discover.js +9 -24
- package/dist/generated/commands/dm.js +10 -27
- package/dist/generated/commands/drafts.js +3 -6
- package/dist/generated/commands/embed.js +3 -6
- package/dist/generated/commands/explore.js +2 -3
- package/dist/generated/commands/feed.js +4 -9
- package/dist/generated/commands/feedback.js +2 -3
- package/dist/generated/commands/gamification.js +3 -6
- package/dist/generated/commands/google-play-iap.js +4 -9
- package/dist/generated/commands/internal.js +9 -24
- package/dist/generated/commands/interview.js +4 -9
- package/dist/generated/commands/invite-redirect.js +2 -3
- package/dist/generated/commands/jesuscord-admin.js +3 -6
- package/dist/generated/commands/join.js +2 -3
- package/dist/generated/commands/kits.js +7 -18
- package/dist/generated/commands/meetings.js +6 -15
- package/dist/generated/commands/message-folders.js +5 -12
- package/dist/generated/commands/messages.js +17 -48
- package/dist/generated/commands/one-emulator.js +2 -3
- package/dist/generated/commands/pdf-export.js +2 -3
- package/dist/generated/commands/pin-folders.js +5 -12
- package/dist/generated/commands/pinned-messages.js +4 -9
- package/dist/generated/commands/polls.js +6 -15
- package/dist/generated/commands/premium-feeds.js +2 -3
- package/dist/generated/commands/processors.js +2 -3
- package/dist/generated/commands/questions.js +3 -6
- package/dist/generated/commands/referrals.js +2 -3
- package/dist/generated/commands/reports.js +2 -3
- package/dist/generated/commands/room-a2-a.js +6 -15
- package/dist/generated/commands/room-agents.js +13 -36
- package/dist/generated/commands/room-invites.js +9 -24
- package/dist/generated/commands/room-owned-agent.js +3 -6
- package/dist/generated/commands/room-page.js +2 -3
- package/dist/generated/commands/rooms.js +45 -132
- package/dist/generated/commands/saved-messages.js +4 -9
- package/dist/generated/commands/saved-stories.js +7 -18
- package/dist/generated/commands/search.js +2 -3
- package/dist/generated/commands/shadow-home-agent.js +3 -6
- package/dist/generated/commands/shadow.js +5 -12
- package/dist/generated/commands/share-cards.js +4 -9
- package/dist/generated/commands/share.js +2 -3
- package/dist/generated/commands/sponsors.js +2 -3
- package/dist/generated/commands/stories.js +12 -33
- package/dist/generated/commands/story-by-id.js +2 -3
- package/dist/generated/commands/submissions.js +4 -9
- package/dist/generated/commands/subscriptions.js +8 -21
- package/dist/generated/commands/tips.js +3 -6
- package/dist/generated/commands/users.js +16 -45
- package/dist/generated/commands/voice-token.js +2 -3
- package/dist/generated/commands/well-known.js +3 -6
- package/dist/generated/commands/wrapped.js +2 -3
- package/dist/generated/index.js +0 -2
- package/package.json +3 -2
- package/dist/generated/commands/health.js +0 -32
package/dist/generated/index.js
CHANGED
|
@@ -19,7 +19,6 @@ import { register as register_feed } from "./commands/feed.js";
|
|
|
19
19
|
import { register as register_feedback } from "./commands/feedback.js";
|
|
20
20
|
import { register as register_gamification } from "./commands/gamification.js";
|
|
21
21
|
import { register as register_google_play_iap } from "./commands/google-play-iap.js";
|
|
22
|
-
import { register as register_health } from "./commands/health.js";
|
|
23
22
|
import { register as register_internal } from "./commands/internal.js";
|
|
24
23
|
import { register as register_interview } from "./commands/interview.js";
|
|
25
24
|
import { register as register_invite_redirect } from "./commands/invite-redirect.js";
|
|
@@ -84,7 +83,6 @@ export function registerAll(program) {
|
|
|
84
83
|
register_feedback(program);
|
|
85
84
|
register_gamification(program);
|
|
86
85
|
register_google_play_iap(program);
|
|
87
|
-
register_health(program);
|
|
88
86
|
register_internal(program);
|
|
89
87
|
register_interview(program);
|
|
90
88
|
register_invite_redirect(program);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fulldivevr/workcord-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "CLI for the WorkCord API. One invocation = one user action.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -34,9 +34,10 @@
|
|
|
34
34
|
"sync-spec": "tsx scripts/sync-spec.ts",
|
|
35
35
|
"generate": "tsx scripts/generate-commands.ts",
|
|
36
36
|
"regen": "npm run sync-spec && npm run generate",
|
|
37
|
+
"test": "node --import tsx --test tests/*.test.ts",
|
|
37
38
|
"smoke": "bash tests/smoke.sh",
|
|
38
39
|
"package:dry-run": "npm pack --dry-run",
|
|
39
|
-
"prepack": "npm run typecheck && npm run build"
|
|
40
|
+
"prepack": "npm run typecheck && npm test && npm run build"
|
|
40
41
|
},
|
|
41
42
|
"keywords": [
|
|
42
43
|
"workcord",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { call } from "../../client.js";
|
|
2
|
-
import { getOrCreateGroup, hasSubcommand } from "../_helpers.js";
|
|
3
|
-
export function register(program) {
|
|
4
|
-
const group = getOrCreateGroup(program, "health", "Health operations");
|
|
5
|
-
if (!hasSubcommand(group, "health")) {
|
|
6
|
-
group
|
|
7
|
-
.command("health")
|
|
8
|
-
.description("GET /api/health")
|
|
9
|
-
.action(async (opts) => {
|
|
10
|
-
const { as } = program.opts();
|
|
11
|
-
if (!as)
|
|
12
|
-
throw new Error("--as <userId> is required");
|
|
13
|
-
const path = `/api/health`;
|
|
14
|
-
const data = await call({ method: "GET", path, asUserId: as });
|
|
15
|
-
process.stdout.write(JSON.stringify(data) + "\n");
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
if (!hasSubcommand(group, "hello")) {
|
|
19
|
-
group
|
|
20
|
-
.command("hello")
|
|
21
|
-
.description("GET /api/hello")
|
|
22
|
-
.action(async (opts) => {
|
|
23
|
-
const { as } = program.opts();
|
|
24
|
-
if (!as)
|
|
25
|
-
throw new Error("--as <userId> is required");
|
|
26
|
-
const path = `/api/hello`;
|
|
27
|
-
const data = await call({ method: "GET", path, asUserId: as });
|
|
28
|
-
process.stdout.write(JSON.stringify(data) + "\n");
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=health.js.map
|