@entrydesk/cli 1.18.0 → 1.20.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/dist/{agents-7XASAILN.js → agents-ILNVMFJT.js} +1 -1
- package/dist/billing-FWDGBFXX.js +24 -0
- package/dist/{budget-E4MIKV33.js → budget-HC4RRKBM.js} +1 -1
- package/dist/{meeting-DWJABQ3Q.js → chunk-CECPYYET.js} +11 -77
- package/dist/chunk-EIX7AV4F.js +4 -0
- package/dist/chunk-YBS4DYFH.js +2 -0
- package/dist/{config-MAO5TQEB.js → config-BRLPQW3X.js} +1 -1
- package/dist/{config-JRJVFRT3.js → config-Y6VAHJFF.js} +1 -1
- package/dist/{config-help-ZWR52H55.js → config-help-ZTHSANAW.js} +1 -1
- package/dist/connectors-GWHJEIPL.js +39 -0
- package/dist/help-RTXIBJ6C.js +4 -0
- package/dist/index.js +1 -1
- package/dist/{login-GGUSZBMP.js → login-62SHYTYL.js} +1 -1
- package/dist/{logout-DDKAWMZ4.js → logout-DUDWGSSH.js} +1 -1
- package/dist/marketplace-I5CPHCMV.js +38 -0
- package/dist/{mcp-VIM4EXHV.js → mcp-42I2ILS7.js} +1 -1
- package/dist/meeting-F55223JK.js +68 -0
- package/dist/{models-LBT6N52A.js → models-5L2J4PIS.js} +1 -1
- package/dist/{notifications-XQVFALKW.js → notifications-GK2XLM5S.js} +1 -1
- package/dist/{profile-QNR7NAEU.js → profile-SA5GTVBZ.js} +1 -1
- package/dist/recordings-DQUNZHXK.js +42 -0
- package/dist/{schedules-JPOOWXID.js → schedules-O25TSYEY.js} +1 -1
- package/dist/skills-GMI3HSG6.js +27 -0
- package/dist/{status-Y4MUTFMJ.js → status-J77PC3PX.js} +1 -1
- package/dist/{task-C3ITCXH4.js → task-UA3BYLVA.js} +60 -35
- package/dist/tasks-KOMITUOV.js +41 -0
- package/dist/{tool-HOWJ4M6M.js → tool-TW2I32SE.js} +6 -6
- package/dist/usage-4ZIO6EC5.js +29 -0
- package/dist/{version-OVZYDUUX.js → version-7UBQKXV7.js} +1 -1
- package/dist/{workflow-TXNP3Z53.js → workflow-U5OA6K4T.js} +1 -1
- package/dist/{workspaces-ENEOI2LZ.js → workspaces-BWXFSML5.js} +1 -1
- package/package.json +3 -3
- package/dist/chunk-GQWF4JEC.js +0 -4
- package/dist/connectors-KHWU2ZWF.js +0 -3
- package/dist/help-CJZSDNUL.js +0 -215
- package/dist/skills-QIEVXMWP.js +0 -25
- package/dist/tasks-LJHCATKL.js +0 -21
- package/dist/usage-R366J6YU.js +0 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{h as u,
|
|
2
|
+
import{h as u,r as f,t as h}from"./chunk-EIX7AV4F.js";import"./chunk-KURQCTT3.js";function m(){console.log(`
|
|
3
3
|
Usage: entrydesk agents [list|show|create|update|delete|publish|share] [options]
|
|
4
4
|
|
|
5
5
|
Commands:
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{h as u,i as p,r as m,t as d}from"./chunk-EIX7AV4F.js";import"./chunk-KURQCTT3.js";function f(){console.log(`
|
|
3
|
+
Usage: entrydesk billing [status|invoices] [options]
|
|
4
|
+
|
|
5
|
+
Commands:
|
|
6
|
+
status Plan, seats, and extra-usage balance (default)
|
|
7
|
+
invoices List finalized invoices
|
|
8
|
+
|
|
9
|
+
Invoices Options:
|
|
10
|
+
--limit <number> Max invoices per page (default: 20)
|
|
11
|
+
--next-key <cursor> Fetch next page using cursor
|
|
12
|
+
--all Fetch all invoices (auto-paginate)
|
|
13
|
+
|
|
14
|
+
Flags:
|
|
15
|
+
--json Output JSON
|
|
16
|
+
|
|
17
|
+
Examples:
|
|
18
|
+
entrydesk billing
|
|
19
|
+
entrydesk billing invoices --limit 10
|
|
20
|
+
|
|
21
|
+
Note: billing endpoints require an interactive login (OAuth); a workspace
|
|
22
|
+
PAT (ENTRYDESK_TOKEN) cannot read billing.
|
|
23
|
+
`)}function l(n){return`$${n.toFixed(2)}`}function x(n){if(console.log(`Billing status: ${n.lifecycle.kind}`),n.subscription){let i=n.subscription,t=i.nextInvoiceDueAt?` \xB7 next invoice ${new Date(i.nextInvoiceDueAt).toLocaleDateString()}`:"";console.log(` Plan: ${i.planName} \xB7 ~${l(i.estimatedMonthlyChargeUsd)}/month${t}`)}else console.log(" Plan: (no active subscription)");let e=n.seats;console.log(` Seats: pro ${e.assigned.pro}/${e.purchased.pro}, premium ${e.assigned.premium}/${e.purchased.premium} (assigned/purchased)`);let o=n.extraUsage;console.log(` Balance: ${l(o.balanceUsd)} extra usage`),console.log(` Spent: ${l(o.currentSpentUsd)} this period`),o.monthlyExtraUsageLimitUsd!=null&&console.log(` Limit: ${l(o.monthlyExtraUsageLimitUsd)} / month`)}function v(n){console.log(`Invoices (${n.length}):
|
|
24
|
+
`);for(let e of n){let o=new Date(e.billingDate).toLocaleDateString();console.log(` ${o} \xB7 ${e.type} \xB7 ${e.status} \xB7 ${l(e.totalUsd)}`),e.hostedInvoiceUrl&&console.log(` ${e.hostedInvoiceUrl}`),console.log(` ID: ${e.id}`),console.log("")}}async function y(n,e,o,i){if(i.all&&i.nextKey&&(console.error("Cannot use --all and --next-key together."),process.exit(1)),i.all){let r=[],c;for(let a=0;;a++){a>=100&&(console.error("Reached maximum page limit (100). Use --limit and --next-key for manual pagination."),process.exit(1));let g=await n.getBillingInvoices(e,o,{limit:i.limit??20,nextKey:c});if(r.push(...g.invoices),c=g.nextKey,!c)break}if(i.json){console.log(JSON.stringify({invoices:r}));return}if(r.length===0){console.log("No invoices.");return}v(r);return}let{invoices:t,nextKey:s}=await n.getBillingInvoices(e,o,{limit:i.limit,nextKey:i.nextKey});if(i.json){console.log(JSON.stringify({invoices:t,nextKey:s}));return}if(t.length===0){console.log("No invoices.");return}v(t),s&&console.log(`Next page: --next-key ${s}`)}async function B(n){try{if(n.help){f();return}p()&&(console.error("Billing requires an interactive login. A workspace PAT (ENTRYDESK_TOKEN) cannot read billing \u2014 run `entrydesk login`."),process.exit(1));let{accessToken:e,workspaceId:o}=await m(),i=n.action||"status",t=new u;if(i==="status"){let s=await t.getBillingOverview(e,o);if(n.json){console.log(JSON.stringify(s));return}x(s);return}if(i==="invoices"){await y(t,e,o,n);return}console.error(`Unknown billing command: ${i}`),f(),process.exit(1)}catch(e){d(e)}}export{B as runBilling};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{h as c,
|
|
2
|
+
import{h as c,r as a,t as d}from"./chunk-EIX7AV4F.js";import"./chunk-KURQCTT3.js";function p(){console.log(`
|
|
3
3
|
Usage: entrydesk budget [get|set|clear] [options]
|
|
4
4
|
|
|
5
5
|
Commands:
|