@burdenoff/cli-sdk 2026.1031.2 → 2026.1102.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/dist/{chunk-REBBLQFS.js → chunk-AYNNSLCL.js} +360 -379
- package/dist/{chunk-SQSFZFQZ.js → chunk-W4JZR7RJ.js} +1 -1
- package/dist/{chunk-UAFYTYK6.js → chunk-YIY5IDXQ.js} +5 -5
- package/dist/core/index.cjs +4 -4
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +1 -1
- package/dist/modules/adaptercloud/index.js +1 -1
- package/dist/modules/artistrybase/index.js +1 -1
- package/dist/modules/assethandler/index.js +1 -1
- package/dist/modules/atheletebridge/index.js +1 -1
- package/dist/modules/auth/index.cjs +31 -31
- package/dist/modules/auth/index.js +1 -1
- package/dist/modules/billing/index.cjs +18 -18
- package/dist/modules/billing/index.js +22 -22
- package/dist/modules/brainyrich/index.js +1 -1
- package/dist/modules/buildmyiq/index.cjs +3 -3
- package/dist/modules/buildmyiq/index.js +1 -1
- package/dist/modules/channels/index.js +1 -1
- package/dist/modules/collabkin/index.js +1 -1
- package/dist/modules/comradecircle/index.js +1 -1
- package/dist/modules/conversations/index.js +1 -1
- package/dist/modules/coolandlovely/index.js +1 -1
- package/dist/modules/cosmicintersection/index.js +1 -1
- package/dist/modules/crewfoundry/index.js +1 -1
- package/dist/modules/devportal/index.cjs +41 -35
- package/dist/modules/devportal/index.js +49 -43
- package/dist/modules/ecoimpacthub/index.js +1 -1
- package/dist/modules/eventfullymanaged/index.cjs +4 -4
- package/dist/modules/eventfullymanaged/index.js +1 -1
- package/dist/modules/export/index.js +1 -1
- package/dist/modules/files/index.js +1 -1
- package/dist/modules/fluidgrids/index.js +1 -1
- package/dist/modules/ggnomad/index.cjs +16 -16
- package/dist/modules/ggnomad/index.js +21 -21
- package/dist/modules/govcitizenhub/index.js +1 -1
- package/dist/modules/groups/index.js +1 -1
- package/dist/modules/headshotmarketing/index.js +1 -1
- package/dist/modules/hookmovies/index.js +1 -1
- package/dist/modules/housingvista/index.js +1 -1
- package/dist/modules/integrations/index.js +1 -1
- package/dist/modules/intelwatchtower/index.js +1 -1
- package/dist/modules/kadaikodi/index.js +1 -1
- package/dist/modules/labsofscience/index.js +1 -1
- package/dist/modules/manufacturedops/index.js +1 -1
- package/dist/modules/movethewheels/index.js +1 -1
- package/dist/modules/mybodyshield/index.cjs +52 -28
- package/dist/modules/mybodyshield/index.js +71 -47
- package/dist/modules/notifications/index.js +1 -1
- package/dist/modules/organizations/index.js +1 -1
- package/dist/modules/planmagnet/index.js +1 -1
- package/dist/modules/products/index.js +1 -1
- package/dist/modules/proserviceworld/index.js +1 -1
- package/dist/modules/rbac/index.js +1 -1
- package/dist/modules/sandbox/index.cjs +27 -46
- package/dist/modules/sandbox/index.js +1 -1
- package/dist/modules/scheduler/index.js +1 -1
- package/dist/modules/security/index.cjs +3 -3
- package/dist/modules/security/index.js +1 -1
- package/dist/modules/semanticfed/index.js +1 -1
- package/dist/modules/store/index.cjs +46 -40
- package/dist/modules/store/index.js +45 -39
- package/dist/modules/subscriberbot/index.js +1 -1
- package/dist/modules/support/index.js +1 -1
- package/dist/modules/tags/index.cjs +2 -2
- package/dist/modules/tags/index.js +1 -1
- package/dist/modules/technospam/index.js +1 -1
- package/dist/modules/theculturepost/index.js +1 -1
- package/dist/modules/theglobalfuel/index.js +1 -1
- package/dist/modules/timecampus/index.cjs +3 -3
- package/dist/modules/timecampus/index.js +1 -1
- package/dist/modules/tours/index.js +1 -1
- package/dist/modules/vibecontrols/index.cjs +332 -332
- package/dist/modules/vibecontrols/index.js +4 -4
- package/dist/modules/workspaces/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,79 +1,83 @@
|
|
|
1
|
-
import {a,c,h as h$1,p,
|
|
2
|
-
query
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import {a,c,h as h$1,p,g,i,n}from'../../chunk-W4JZR7RJ.js';import {o}from'../../chunk-YIY5IDXQ.js';var R=`
|
|
2
|
+
query ListDeveloperOrganizations($limit: Int, $offset: Int) {
|
|
3
|
+
developerOrganizations(limit: $limit, offset: $offset) {
|
|
4
|
+
edges { node { id name slug tier isVerified totalApps publishedApps } }
|
|
5
|
+
totalCount
|
|
6
|
+
pageInfo { hasNextPage endCursor }
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
9
|
`,w=`
|
|
9
|
-
query
|
|
10
|
-
|
|
11
|
-
id name description
|
|
10
|
+
query GetDeveloperOrganization($id: ID!) {
|
|
11
|
+
developerOrganization(id: $id) {
|
|
12
|
+
id name slug description tier isVerified isCertified
|
|
13
|
+
totalApps publishedApps totalRevenue contactEmail supportEmail websiteUrl
|
|
14
|
+
createdAt updatedAt
|
|
12
15
|
}
|
|
13
16
|
}
|
|
14
|
-
`,
|
|
15
|
-
mutation
|
|
16
|
-
|
|
17
|
-
id name slug
|
|
17
|
+
`,D=`
|
|
18
|
+
mutation CreateDeveloperOrganization($input: CreateDeveloperOrganizationInput!) {
|
|
19
|
+
createDeveloperOrganization(input: $input) {
|
|
20
|
+
id name slug description tier
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
|
-
`,
|
|
21
|
-
mutation
|
|
22
|
-
|
|
23
|
-
id name updatedAt
|
|
23
|
+
`,S=`
|
|
24
|
+
mutation UpdateDeveloperOrganization($id: ID!, $input: UpdateDeveloperOrganizationInput!) {
|
|
25
|
+
updateDeveloperOrganization(id: $id, input: $input) {
|
|
26
|
+
id name description updatedAt
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
|
-
`,
|
|
27
|
-
mutation
|
|
28
|
-
|
|
29
|
+
`,C=`
|
|
30
|
+
mutation DeleteDeveloperOrganization($id: ID!) {
|
|
31
|
+
deleteDeveloperOrganization(id: $id)
|
|
29
32
|
}
|
|
30
|
-
`,
|
|
33
|
+
`,y=`
|
|
31
34
|
query ListApplications($organizationId: ID, $status: AppStatus, $limit: Int) {
|
|
32
35
|
applications(organizationId: $organizationId, status: $status, limit: $limit) {
|
|
33
36
|
edges { node { id name status installCount averageRating } }
|
|
34
37
|
totalCount
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
|
-
`,
|
|
40
|
+
`,P=`
|
|
38
41
|
query GetApplication($id: ID!) {
|
|
39
42
|
application(id: $id) {
|
|
40
43
|
id name status reviewStatus publishedAt installCount
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
`,h=`
|
|
44
47
|
mutation CreateApplication($input: CreateApplicationInput!) {
|
|
45
48
|
createApplication(input: $input) {
|
|
46
49
|
id name status appId
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
|
-
`,
|
|
52
|
+
`,N=`
|
|
50
53
|
mutation UpdateApplication($id: ID!, $input: UpdateApplicationInput!) {
|
|
51
54
|
updateApplication(id: $id, input: $input) {
|
|
52
55
|
id description updatedAt
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
|
-
|
|
58
|
+
`,$=`
|
|
56
59
|
mutation SubmitApplicationForReview($id: ID!, $notes: String) {
|
|
57
60
|
submitApplicationForReview(id: $id, notes: $notes) {
|
|
58
61
|
id status reviewStatus submittedAt
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
|
-
`,
|
|
64
|
+
`,b=`
|
|
62
65
|
mutation PublishApplication($id: ID!) {
|
|
63
66
|
publishApplication(id: $id) {
|
|
64
67
|
id status publishedAt
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
|
-
`,
|
|
70
|
+
`,_=`
|
|
68
71
|
mutation DeleteApplication($id: ID!) {
|
|
69
72
|
deleteApplication(id: $id)
|
|
70
73
|
}
|
|
71
|
-
`,
|
|
74
|
+
`,L=`
|
|
72
75
|
query ApplicationVersions($applicationId: ID!) {
|
|
73
76
|
application(id: $applicationId) {
|
|
74
77
|
id
|
|
75
78
|
versions {
|
|
76
|
-
id version status isLatest isStable releaseNotes
|
|
79
|
+
edges { node { id version status isLatest isStable releaseNotes publishedAt } }
|
|
80
|
+
totalCount
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
83
|
}
|
|
@@ -90,44 +94,46 @@ import {a,c,h as h$1,p,n,g,i}from'../../chunk-SQSFZFQZ.js';import {o}from'../../
|
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
96
|
`,U=`
|
|
93
|
-
mutation CreateDevportalWebhook($input: CreateWebhookInput!) {
|
|
94
|
-
createWebhook(input: $input) {
|
|
95
|
-
|
|
97
|
+
mutation CreateDevportalWebhook($applicationId: ID!, $input: CreateWebhookInput!) {
|
|
98
|
+
createWebhook(applicationId: $applicationId, input: $input) {
|
|
99
|
+
secret
|
|
100
|
+
webhook { id name url events isActive status }
|
|
96
101
|
}
|
|
97
102
|
}
|
|
98
103
|
`,x=`
|
|
99
104
|
mutation DeleteDevportalWebhook($id: ID!) {
|
|
100
|
-
deleteWebhook(id: $id)
|
|
105
|
+
deleteWebhook(id: $id)
|
|
101
106
|
}
|
|
102
|
-
`,
|
|
107
|
+
`,V=`
|
|
103
108
|
query ApplicationAnalytics($applicationId: ID!, $period: String!, $startDate: DateTime, $endDate: DateTime) {
|
|
104
109
|
applicationAnalytics(applicationId: $applicationId, period: $period, startDate: $startDate, endDate: $endDate) {
|
|
105
110
|
date period activeUsers apiCalls avgResponseTime sessions
|
|
106
111
|
}
|
|
107
112
|
}
|
|
108
|
-
`,
|
|
109
|
-
query OrganizationRevenue($organizationId: ID!, $period: String) {
|
|
113
|
+
`,W=`
|
|
114
|
+
query OrganizationRevenue($organizationId: ID!, $period: String!) {
|
|
110
115
|
developerOrgRevenueSummary(organizationId: $organizationId, period: $period) {
|
|
111
|
-
|
|
116
|
+
period currency totalGrossRevenue totalNetRevenue totalPlatformFees totalRefunds
|
|
117
|
+
totalSales pendingBalance nextPayoutAmount nextPayoutDate
|
|
112
118
|
}
|
|
113
119
|
}
|
|
114
|
-
`,
|
|
115
|
-
query AdminReviews($status:
|
|
116
|
-
|
|
117
|
-
edges { node { id
|
|
120
|
+
`,G=`
|
|
121
|
+
query AdminReviews($status: AppStatus, $limit: Int, $offset: Int) {
|
|
122
|
+
applications(status: $status, limit: $limit, offset: $offset) {
|
|
123
|
+
edges { node { id name slug status reviewStatus reviewNotes submittedAt lastReviewedAt } }
|
|
118
124
|
totalCount
|
|
119
125
|
}
|
|
120
126
|
}
|
|
121
|
-
`,
|
|
127
|
+
`,B=`
|
|
122
128
|
mutation ApproveApplication($id: ID!, $notes: String) {
|
|
123
129
|
approveApplication(id: $id, notes: $notes) {
|
|
124
130
|
id status reviewStatus publishedAt
|
|
125
131
|
}
|
|
126
132
|
}
|
|
127
|
-
`,
|
|
133
|
+
`,q=`
|
|
128
134
|
mutation RejectApplication($id: ID!, $notes: String!) {
|
|
129
135
|
rejectApplication(id: $id, notes: $notes) {
|
|
130
136
|
id status reviewStatus reviewNotes
|
|
131
137
|
}
|
|
132
138
|
}
|
|
133
|
-
`;function
|
|
139
|
+
`;function M(g$1){let d=g$1.command("devportal").description("Developer portal: orgs, apps, webhooks, revenue"),m=d.command("orgs").description("Publisher organizations");m.command("list").description("List devportal organizations").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e=(await c(R,{limit:t.limit,offset:0})).developerOrganizations.edges.map(n=>n.node);h$1(t,e,{headers:["ID","Name","Slug","Tier","Verified","Apps"],rows:e.map(n=>[p(n.id,12),n.name,n.slug??"-",n.tier??"-",String(!!n.isVerified),String(n.totalApps??0)])});}catch(i){g(i);}}),m.command("get").description("Get an organization").argument("<id>").option("-f, --format <format>").action(async(t,i)=>{try{let e=await c(w,{id:t});if(!e.developerOrganization)throw new o(`Organization ${t} not found`);h$1(i,e.developerOrganization);}catch(e){g(e);}}),m.command("create").description("Create a publisher organization").requiredOption("--name <s>").option("--slug <s>","Unique slug (derived from the name when omitted)").option("--description <s>").option("--contact-email <email>").option("--website <url>").option("-f, --format <format>").action(async t=>{try{let i$1={name:t.name,slug:t.slug,description:t.description,contactEmail:t.contactEmail,websiteUrl:t.website},e=await c(D,{input:i$1});i(`Organization created: ${e.createDeveloperOrganization.name}`),h$1(t,e.createDeveloperOrganization);}catch(i){g(i);}}),m.command("update").description("Update an organization").argument("<id>").option("--name <s>").option("--description <s>").option("-f, --format <format>").action(async(t,i$1)=>{try{let e={};if(i$1.name&&(e.name=i$1.name),i$1.description!==void 0&&(e.description=i$1.description),!Object.keys(e).length)throw new o("No updates specified");let n=await c(S,{id:t,input:e});i("Organization updated"),h$1(i$1,n.updateDeveloperOrganization);}catch(e){g(e);}}),m.command("delete").description("Delete an organization").argument("<id>").action(async t=>{try{await c(C,{id:t}),i("Organization deleted");}catch(i){g(i);}});let p$1=d.command("apps").description("Applications");p$1.command("list").description("List applications").option("--organization <id>").option("--status <s>","DRAFT|SUBMITTED|IN_REVIEW|APPROVED|PUBLISHED|REJECTED|SUSPENDED").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e=(await c(y,{organizationId:t.organization,status:t.status?.toUpperCase(),limit:t.limit})).applications.edges.map(n=>n.node);h$1(t,e,{headers:["ID","Name","Status","Installs","Rating"],rows:e.map(n$1=>[p(n$1.id,12),n$1.name,n(n$1.status),String(n$1.installCount??0),String(n$1.averageRating??"-")])});}catch(i){g(i);}}),p$1.command("get").description("Get an application").argument("<id>").option("-f, --format <format>").action(async(t,i)=>{try{let e=await c(P,{id:t});if(!e.application)throw new o(`Application ${t} not found`);h$1(i,e.application);}catch(e){g(e);}}),p$1.command("create").description("Create an application").requiredOption("--name <s>").requiredOption("--organization <id>").option("--type <t>","API_INTEGRATION|WEB_APP|MOBILE_APP","API_INTEGRATION").option("--description <s>").option("-f, --format <format>").action(async t=>{try{let i$1={name:t.name,developerOrganizationId:t.organization,appType:(t.type??"API_INTEGRATION").toUpperCase(),description:t.description},e=await c(h,{input:i$1});i(`Application created: ${e.createApplication.name}`),h$1(t,e.createApplication);}catch(i){g(i);}}),p$1.command("update").description("Update an application").argument("<id>").option("--description <s>").option("--pricing <p>","FREE|PAID_ONETIME|SUBSCRIPTION").option("--docs-url <url>").option("-f, --format <format>").action(async(t,i$1)=>{try{let e={};if(i$1.description!==void 0&&(e.description=i$1.description),i$1.pricing&&(e.pricingType=i$1.pricing.toUpperCase()),i$1.docsUrl&&(e.documentationUrl=i$1.docsUrl),!Object.keys(e).length)throw new o("No updates specified");let n=await c(N,{id:t,input:e});i("Application updated"),h$1(i$1,n.updateApplication);}catch(e){g(e);}}),p$1.command("submit-review").description("Submit an application for review").argument("<id>").option("--notes <s>").action(async(t,i$1)=>{try{await c($,{id:t,notes:i$1.notes}),i("Submitted for review");}catch(e){g(e);}}),p$1.command("publish").description("Publish an application").argument("<id>").action(async t=>{try{await c(b,{id:t}),i("Application published");}catch(i){g(i);}}),p$1.command("delete").description("Delete an application").argument("<id>").action(async t=>{try{await c(_,{id:t}),i("Application deleted");}catch(i){g(i);}});let O=p$1.command("versions").description("Application versions");O.command("list").description("List versions for an application").argument("<applicationId>").option("-f, --format <format>").action(async(t,i)=>{try{let n$1=(await c(L,{applicationId:t})).application?.versions.edges.map(c=>c.node)??[];h$1(i,n$1,{headers:["ID","Version","Status","Latest","Stable"],rows:n$1.map(c=>[p(c.id,12),c.version,n(c.status),String(!!c.isLatest),String(!!c.isStable)])});}catch(e){g(e);}}),O.command("create").description("Create an application version").requiredOption("--application <id>").requiredOption("--version <v>").option("--notes <s>").option("--package <url>","Package URL").option("-f, --format <format>").action(async t=>{try{let i$1={version:t.version,releaseNotes:t.notes,packageUrl:t.package},e=await c(z,{applicationId:t.application,input:i$1});i(`Version created: ${e.createApplicationVersion.version}`),h$1(t,e.createApplicationVersion);}catch(i){g(i);}});let A=p$1.command("webhooks").description("Application webhooks");A.command("list").description("List webhooks for an application").argument("<applicationId>").option("-f, --format <format>").action(async(t,i)=>{try{let e=await c(k,{applicationId:t});h$1(i,e.webhooks,{headers:["ID","Name","URL","Active","Failures"],rows:e.webhooks.map(n=>[p(n.id,12),n.name,p(n.url,40),String(!!n.isActive),String(n.failureCount??0)])});}catch(e){g(e);}}),A.command("add").description("Add a webhook to an application").requiredOption("--application <id>").requiredOption("--name <s>").requiredOption("--url <url>").requiredOption("--events <s>","Comma-separated event names").option("--max-retries <n>","",t=>parseInt(t,10),5).option("-f, --format <format>").action(async t=>{try{let i$1={name:t.name,url:t.url,events:t.events.split(",").map(n=>n.trim()).filter(Boolean),retryEnabled:!0,maxRetries:t.maxRetries},e=await c(U,{applicationId:t.application,input:i$1});i("Webhook created. Store the signing secret now: it is shown only once."),h$1(t,e.createWebhook);}catch(i){g(i);}}),A.command("remove").description("Remove a webhook").argument("<id>").action(async t=>{try{await c(x,{id:t}),i("Webhook removed");}catch(i){g(i);}}),p$1.command("analytics").description("Application analytics for a period").requiredOption("--application <id>").option("--period <p>","LAST_7_DAYS|LAST_30_DAYS|CUSTOM","LAST_30_DAYS").option("--from <iso>").option("--to <iso>").option("-f, --format <format>").action(async t=>{try{let i=await c(V,{applicationId:t.application,period:(t.period??"LAST_30_DAYS").toUpperCase(),startDate:t.from,endDate:t.to});h$1(t,i.applicationAnalytics);}catch(i){g(i);}}),d.command("revenue").description("Revenue for an organization").requiredOption("--organization <id>").option("--period <p>","LAST_7_DAYS|LAST_30_DAYS|YTD","LAST_30_DAYS").option("-f, --format <format>").action(async t=>{try{let i=await c(W,{organizationId:t.organization,period:(t.period??"LAST_30_DAYS").toUpperCase()});h$1(t,i.developerOrgRevenueSummary);}catch(i){g(i);}});let I=d.command("admin").description("Admin operations").command("reviews").description("Application review queue");I.command("list").description("List applications pending review").option("--status <s>","SUBMITTED|IN_REVIEW","SUBMITTED").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let i=await c(G,{status:(t.status??"SUBMITTED").toUpperCase(),limit:t.limit});h$1(t,i.applications.edges.map(e=>e.node));}catch(i){g(i);}}),I.command("approve").description("Approve an application").argument("<applicationId>").option("--notes <s>").action(async(t,i$1)=>{try{await c(B,{id:t,notes:i$1.notes}),i("Application approved");}catch(e){g(e);}}),I.command("reject").description("Reject an application").argument("<applicationId>").requiredOption("--notes <s>","Reason for rejection").action(async(t,i$1)=>{try{await c(q,{id:t,notes:i$1.notes}),i("Application rejected");}catch(e){g(e);}});}var Y={id:"devportal",version:"1.0.0",displayName:"Developer Portal",dependsOn:["auth"],register(g,d){a(d),M(g);}},it=Y;export{it as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b as b$1,h as h$1,p as p$1,g,i,o as o$1,d as d$1}from'../../chunk-
|
|
1
|
+
import {a,b as b$1,h as h$1,p as p$1,g,i,o as o$1,d as d$1}from'../../chunk-W4JZR7RJ.js';import {o}from'../../chunk-YIY5IDXQ.js';var O=`
|
|
2
2
|
query EcoSite($id: ID!) {
|
|
3
3
|
ecoSite(id: $id) {
|
|
4
4
|
id name code description type status country region latitude longitude
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var m=class extends Error{exitCode;hint;constructor(n,e){super(n),this.name="CliUserError",this.exitCode=e?.exitCode??1,this.hint=e?.hint;}},y=class extends m{constructor(n,e){super(n,{exitCode:2,hint:e?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},f=class extends Error{cause;constructor(n,e){super(n),this.name="CliInternalError",this.cause=e;}};var h=null;function L(t){h=t;}function v(){if(!h)throw new f("vibecontrols module helpers used before setHelpersContext was called");return h}function re(){let t=v();if(!t.auth.isAuthenticated())throw new y("Authentication required.",{hint:`Run \`${t.productName} auth login\` to authenticate.`})}async function r(t,n){return re(),v().gql.workspace.request(t,n)}function a(t){let n=t instanceof Error?t.message:String(t);throw new m(n)}function s(t,n,e){v().output.formatAndOutput(t,n,e);}function c(t){v().output.printSuccess(t);}function E(t){return v().output.formatDate(t)}function
|
|
1
|
+
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var m=class extends Error{exitCode;hint;constructor(n,e){super(n),this.name="CliUserError",this.exitCode=e?.exitCode??1,this.hint=e?.hint;}},y=class extends m{constructor(n,e){super(n,{exitCode:2,hint:e?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},f=class extends Error{cause;constructor(n,e){super(n),this.name="CliInternalError",this.cause=e;}};var h=null;function L(t){h=t;}function v(){if(!h)throw new f("vibecontrols module helpers used before setHelpersContext was called");return h}function re(){let t=v();if(!t.auth.isAuthenticated())throw new y("Authentication required.",{hint:`Run \`${t.productName} auth login\` to authenticate.`})}async function r(t,n){return re(),v().gql.workspace.request(t,n)}function a(t){let n=t instanceof Error?t.message:String(t);throw new m(n)}function s(t,n,e){v().output.formatAndOutput(t,n,e);}function c(t){v().output.printSuccess(t);}function E(t){return v().output.formatDate(t)}function u(t,n){return v().output.truncate(t,n)}var I=`
|
|
2
2
|
id name description type status visibility timezone startAt endAt capacity
|
|
3
3
|
metadata createdAt updatedAt workspaceId
|
|
4
4
|
`,N=`
|
|
@@ -162,11 +162,11 @@
|
|
|
162
162
|
items { ${A} }
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
`,
|
|
165
|
+
`,pt=`
|
|
166
166
|
mutation EventfullymanagedCreateSpeaker($input: EventfullyManagedSpeakerInput!) {
|
|
167
167
|
eventfullyManagedCreateSpeaker(input: $input) { ${A} }
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
169
|
+
`,ut=`
|
|
170
170
|
mutation EventfullymanagedUpdateSpeaker($id: ID!, $input: EventfullyManagedSpeakerInput!) {
|
|
171
171
|
eventfullyManagedUpdateSpeaker(id: $id, input: $input) { ${A} }
|
|
172
172
|
}
|
|
@@ -244,4 +244,4 @@
|
|
|
244
244
|
latestEvents { id name status type startAt endAt }
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
`;function l(t,n){try{return JSON.parse(n)}catch{throw new m(`--${t} must be valid JSON`)}}function d(t){let n=Number.parseInt(t,10);if(Number.isNaN(n))throw new m(`Expected an integer but got "${t}"`);return n}function C(t){return t.split(",").map(n=>n.trim()).filter(n=>n.length>0)}function Tt(t){let n={name:t.name,type:t.type,timezone:t.timezone,startAt:t.startAt,endAt:t.endAt};return t.status&&(n.status=t.status),t.visibility&&(n.visibility=t.visibility),t.capacity!==void 0&&(n.capacity=t.capacity),t.description&&(n.description=t.description),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function bt(t){let n=t.command("events").description("Eventfullymanaged events");n.command("list").description("List events").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(N,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedEvents.items,{headers:["ID","Name","Type","Status","Start","End"],rows:i.eventfullyManagedEvents.items.map(o=>[p(o.id,12),o.name,o.type,o.status,E(o.startAt),E(o.endAt)])});}catch(i){a(i);}}),n.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(P,{id:e});if(!o.eventfullyManagedEvent)throw new m(`Event ${e} not found`);s(i,o.eventfullyManagedEvent);}catch(o){a(o);}}),n.command("create").description("Create an event").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type (e.g. conference, webinar)").requiredOption("--timezone <tz>","IANA timezone (e.g. Asia/Kolkata)").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility (e.g. public, private)").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(_,{input:Tt(e)});c(`Event created: ${i.eventfullyManagedCreateEvent.name}`),s(e,i.eventfullyManagedCreateEvent);}catch(i){a(i);}}),n.command("update").description("Update an event (the subgraph input requires the core fields)").argument("<id>","Event ID").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type").requiredOption("--timezone <tz>","IANA timezone").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(q,{id:e,input:Tt(i)});c("Event updated"),s(i,o.eventfullyManagedUpdateEvent);}catch(o){a(o);}}),n.command("remove").description("Delete an event").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(U,{id:e});c(o.eventfullyManagedDeleteEvent?"Event deleted":"Event not deleted"),s(i,{deleted:o.eventfullyManagedDeleteEvent});}catch(o){a(o);}});}function Ot(t){let n={name:t.name};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.capacity!==void 0&&(n.capacity=t.capacity),t.addressLine1&&(n.addressLine1=t.addressLine1),t.city&&(n.city=t.city),t.state&&(n.state=t.state),t.country&&(n.country=t.country),t.postalCode&&(n.postalCode=t.postalCode),t.amenities&&(n.amenities=C(t.amenities)),t.openingHours&&(n.openingHours=l("opening-hours",t.openingHours)),t.pricing&&(n.pricing=l("pricing",t.pricing)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function At(t){let n=t.command("venues").description("Eventfullymanaged venues");n.command("list").description("List venues").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(V,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedVenues.items,{headers:["ID","Name","Status","City","Country","Capacity"],rows:i.eventfullyManagedVenues.items.map(o=>[p(o.id,12),o.name,o.status,o.city??"-",o.country??"-",o.capacity!=null?String(o.capacity):"-"])});}catch(i){a(i);}}),n.command("get").description("Get a venue by id").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(F,{id:e});if(!o.eventfullyManagedVenue)throw new m(`Venue ${e} not found`);s(i,o.eventfullyManagedVenue);}catch(o){a(o);}}),n.command("create").description("Create a venue").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(j,{input:Ot({...e,addressLine1:e.address})});c(`Venue created: ${i.eventfullyManagedCreateVenue.name}`),s(e,i.eventfullyManagedCreateVenue);}catch(i){a(i);}}),n.command("update").description("Update a venue").argument("<id>","Venue ID").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(W,{id:e,input:Ot({...i,addressLine1:i.address})});c("Venue updated"),s(i,o.eventfullyManagedUpdateVenue);}catch(o){a(o);}}),n.command("remove").description("Delete a venue").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(J,{id:e});c(o.eventfullyManagedDeleteVenue?"Venue deleted":"Venue not deleted"),s(i,{deleted:o.eventfullyManagedDeleteVenue});}catch(o){a(o);}});}function Dt(t){let n={eventId:t.event,name:t.name,level:t.level};return t.logoUrl&&(n.logoUrl=t.logoUrl),t.website&&(n.website=t.website),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.contactPhone&&(n.contactPhone=t.contactPhone),t.metrics&&(n.metrics=l("metrics",t.metrics)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function xt(t){let n=t.command("sponsors").description("Eventfullymanaged sponsors");n.command("list").description("List sponsors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(z,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedSponsors.items,{headers:["ID","Name","Level","Event","Website"],rows:i.eventfullyManagedSponsors.items.map(o=>[p(o.id,12),o.name,o.level,p(o.eventId,12),o.website??"-"])});}catch(i){a(i);}}),n.command("get").description("Get a sponsor by id").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(G,{id:e});if(!o.eventfullyManagedSponsor)throw new m(`Sponsor ${e} not found`);s(i,o.eventfullyManagedSponsor);}catch(o){a(o);}}),n.command("create").description("Create a sponsor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level (e.g. gold, silver)").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(H,{input:Dt(e)});c(`Sponsor created: ${i.eventfullyManagedCreateSponsor.name}`),s(e,i.eventfullyManagedCreateSponsor);}catch(i){a(i);}}),n.command("update").description("Update a sponsor").argument("<id>","Sponsor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(B,{id:e,input:Dt(i)});c("Sponsor updated"),s(i,o.eventfullyManagedUpdateSponsor);}catch(o){a(o);}}),n.command("remove").description("Delete a sponsor").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(K,{id:e});c(o.eventfullyManagedDeleteSponsor?"Sponsor deleted":"Sponsor not deleted"),s(i,{deleted:o.eventfullyManagedDeleteSponsor});}catch(o){a(o);}});}function $t(t){let n={eventId:t.event,fullName:t.fullName,email:t.email};return t.phone&&(n.phone=t.phone),t.company&&(n.company=t.company),t.role&&(n.role=t.role),t.tags&&(n.tags=C(t.tags)),t.profile&&(n.profile=l("profile",t.profile)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Mt(t){let n=t.command("attendees").description("Eventfullymanaged attendees");n.command("list").description("List attendees").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Y,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedAttendees.items,{headers:["ID","Name","Email","Company","Role"],rows:i.eventfullyManagedAttendees.items.map(o=>[p(o.id,12),o.fullName,o.email,o.company??"-",o.role??"-"])});}catch(i){a(i);}}),n.command("create").description("Create an attendee").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--tags <csv>","Comma-separated tags").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(X,{input:$t(e)});c(`Attendee created: ${i.eventfullyManagedCreateAttendee.fullName}`),s(e,i.eventfullyManagedCreateAttendee);}catch(i){a(i);}}),n.command("update").description("Update an attendee").argument("<id>","Attendee ID").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--tags <csv>","Comma-separated tags").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(Q,{id:e,input:$t(i)});c("Attendee updated"),s(i,o.eventfullyManagedUpdateAttendee);}catch(o){a(o);}});}function Rt(t){let n={eventId:t.event,title:t.title,sessionType:t.sessionType,startsAt:t.startsAt,endsAt:t.endsAt};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.track&&(n.track=t.track),t.capacity!==void 0&&(n.capacity=t.capacity),t.venue&&(n.venueId=t.venue),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Lt(t){let n=t.command("sessions").description("Eventfullymanaged event sessions");n.command("list").description("List event sessions").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Z,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedEventSessions.items,{headers:["ID","Title","Type","Status","Track","Starts"],rows:i.eventfullyManagedEventSessions.items.map(o=>[p(o.id,12),o.title,o.sessionType,o.status,o.track??"-",E(o.startsAt)])});}catch(i){a(i);}}),n.command("create").description("Create an event session").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type (e.g. talk, workshop)").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(tt,{input:Rt(e)});c(`Session created: ${i.eventfullyManagedCreateEventSession.title}`),s(e,i.eventfullyManagedCreateEventSession);}catch(i){a(i);}}),n.command("update").description("Update an event session").argument("<id>","Session ID").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(et,{id:e,input:Rt(i)});c("Session updated"),s(i,o.eventfullyManagedUpdateEventSession);}catch(o){a(o);}});}function Nt(t){let n={eventId:t.event,name:t.name,price:t.price};return t.currency&&(n.currency=t.currency),t.description&&(n.description=t.description),t.capacity!==void 0&&(n.capacity=t.capacity),t.soldCount!==void 0&&(n.soldCount=t.soldCount),t.active!==void 0&&(n.isActive=t.active),t.salesStartAt&&(n.salesStartAt=t.salesStartAt),t.salesEndAt&&(n.salesEndAt=t.salesEndAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Pt(t){let n=t.command("tickets").description("Eventfullymanaged ticket types");n.command("list").description("List ticket types").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(nt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedTicketTypes.items,{headers:["ID","Name","Price","Currency","Active","Sold"],rows:i.eventfullyManagedTicketTypes.items.map(o=>[p(o.id,12),o.name,o.price,o.currency,o.isActive?"yes":"no",String(o.soldCount)])});}catch(i){a(i);}}),n.command("create").description("Create a ticket type").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--sold-count <n>","Sold count",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(ot,{input:Nt(e)});c(`Ticket type created: ${i.eventfullyManagedCreateTicketType.name}`),s(e,i.eventfullyManagedCreateTicketType);}catch(i){a(i);}}),n.command("update").description("Update a ticket type").argument("<id>","Ticket type ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--sold-count <n>","Sold count",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(it,{id:e,input:Nt(i)});c("Ticket type updated"),s(i,o.eventfullyManagedUpdateTicketType);}catch(o){a(o);}}),n.command("remove").description("Delete a ticket type").argument("<id>","Ticket type ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(rt,{id:e});c(o.eventfullyManagedDeleteTicketType?"Ticket type deleted":"Ticket type not deleted"),s(i,{deleted:o.eventfullyManagedDeleteTicketType});}catch(o){a(o);}});}function _t(t){let n={eventId:t.event};return t.attendee&&(n.attendeeId=t.attendee),t.ticketType&&(n.ticketTypeId=t.ticketType),t.quantity!==void 0&&(n.quantity=t.quantity),t.status&&(n.status=t.status),t.totalAmount&&(n.totalAmount=t.totalAmount),t.currency&&(n.currency=t.currency),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function qt(t){let n=t.command("registrations").description("Eventfullymanaged registrations");n.command("list").description("List registrations").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(at,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedRegistrations.items,{headers:["ID","Event","Attendee","Status","Qty","Total"],rows:i.eventfullyManagedRegistrations.items.map(o=>[p(o.id,12),p(o.eventId,12),o.attendeeId?p(o.attendeeId,12):"-",o.status,String(o.quantity),o.totalAmount??"-"])});}catch(i){a(i);}}),n.command("create").description("Create a registration").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(st,{input:_t(e)});c(`Registration created: ${i.eventfullyManagedCreateRegistration.id}`),s(e,i.eventfullyManagedCreateRegistration);}catch(i){a(i);}}),n.command("update").description("Update a registration").argument("<id>","Registration ID").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(dt,{id:e,input:_t(i)});c("Registration updated"),s(i,o.eventfullyManagedUpdateRegistration);}catch(o){a(o);}});}function Ut(t){let n={fullName:t.fullName};return t.title&&(n.title=t.title),t.organization&&(n.organization=t.organization),t.bio&&(n.bio=t.bio),t.email&&(n.email=t.email),t.phone&&(n.phone=t.phone),t.avatarUrl&&(n.avatarUrl=t.avatarUrl),t.socialLinks&&(n.socialLinks=l("social-links",t.socialLinks)),n}function Vt(t){let n=t.command("speakers").description("Eventfullymanaged speakers");n.command("list").description("List speakers").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(ct,{workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedSpeakers.items,{headers:["ID","Name","Title","Organization","Email"],rows:i.eventfullyManagedSpeakers.items.map(o=>[p(o.id,12),o.fullName,o.title??"-",o.organization??"-",o.email??"-"])});}catch(i){a(i);}}),n.command("create").description("Create a speaker").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(ut,{input:Ut(e)});c(`Speaker created: ${i.eventfullyManagedCreateSpeaker.fullName}`),s(e,i.eventfullyManagedCreateSpeaker);}catch(i){a(i);}}),n.command("update").description("Update a speaker").argument("<id>","Speaker ID").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(pt,{id:e,input:Ut(i)});c("Speaker updated"),s(i,o.eventfullyManagedUpdateSpeaker);}catch(o){a(o);}});}function Ft(t){let n={eventId:t.event,name:t.name};return t.boothCode&&(n.boothCode=t.boothCode),t.category&&(n.category=t.category),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.status&&(n.status=t.status),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function jt(t){let n=t.command("exhibitors").description("Eventfullymanaged exhibitors");n.command("list").description("List exhibitors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(lt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedExhibitors.items,{headers:["ID","Name","Status","Booth","Category"],rows:i.eventfullyManagedExhibitors.items.map(o=>[p(o.id,12),o.name,o.status,o.boothCode??"-",o.category??"-"])});}catch(i){a(i);}}),n.command("create").description("Create an exhibitor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(mt,{input:Ft(e)});c(`Exhibitor created: ${i.eventfullyManagedCreateExhibitor.name}`),s(e,i.eventfullyManagedCreateExhibitor);}catch(i){a(i);}}),n.command("update").description("Update an exhibitor").argument("<id>","Exhibitor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(gt,{id:e,input:Ft(i)});c("Exhibitor updated"),s(i,o.eventfullyManagedUpdateExhibitor);}catch(o){a(o);}}),n.command("remove").description("Delete an exhibitor").argument("<id>","Exhibitor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(ft,{id:e});c(o.eventfullyManagedDeleteExhibitor?"Exhibitor deleted":"Exhibitor not deleted"),s(i,{deleted:o.eventfullyManagedDeleteExhibitor});}catch(o){a(o);}});}function Wt(t){let n={eventId:t.event,attendeeName:t.attendeeName,attendeeEmail:t.attendeeEmail};return t.exhibitor&&(n.exhibitorId=t.exhibitor),t.sponsor&&(n.sponsorId=t.sponsor),t.status&&(n.status=t.status),t.score!==void 0&&(n.score=t.score),t.notes&&(n.notes=t.notes),t.capturedAt&&(n.capturedAt=t.capturedAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Jt(t){let n=t.command("leads").description("Eventfullymanaged exhibitor leads");n.command("list").description("List leads").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(yt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedLeads.items,{headers:["ID","Name","Email","Status","Score"],rows:i.eventfullyManagedLeads.items.map(o=>[p(o.id,12),o.attendeeName,o.attendeeEmail,o.status,o.score!=null?String(o.score):"-"])});}catch(i){a(i);}}),n.command("create").description("Create a lead").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(vt,{input:Wt(e)});c(`Lead created: ${i.eventfullyManagedCreateLead.attendeeName}`),s(e,i.eventfullyManagedCreateLead);}catch(i){a(i);}}),n.command("update").description("Update a lead").argument("<id>","Lead ID").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(Et,{id:e,input:Wt(i)});c("Lead updated"),s(i,o.eventfullyManagedUpdateLead);}catch(o){a(o);}}),n.command("remove").description("Delete a lead").argument("<id>","Lead ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(It,{id:e});c(o.eventfullyManagedDeleteLead?"Lead deleted":"Lead not deleted"),s(i,{deleted:o.eventfullyManagedDeleteLead});}catch(o){a(o);}});}function zt(t){let n={eventId:t.event,code:t.code,discountType:t.discountType,discountValue:t.discountValue};return t.description&&(n.description=t.description),t.maxUses!==void 0&&(n.maxUses=t.maxUses),t.usedCount!==void 0&&(n.usedCount=t.usedCount),t.active!==void 0&&(n.isActive=t.active),t.startsAt&&(n.startsAt=t.startsAt),t.endsAt&&(n.endsAt=t.endsAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Gt(t){let n=t.command("promo-codes").description("Eventfullymanaged promo codes");n.command("list").description("List promo codes").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(kt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedPromoCodes.items,{headers:["ID","Code","Type","Value","Active","Used"],rows:i.eventfullyManagedPromoCodes.items.map(o=>[p(o.id,12),o.code,o.discountType,o.discountValue,o.isActive?"yes":"no",String(o.usedCount)])});}catch(i){a(i);}}),n.command("create").description("Create a promo code").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type (e.g. percentage, fixed)").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--used-count <n>","Used count",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(wt,{input:zt(e)});c(`Promo code created: ${i.eventfullyManagedCreatePromoCode.code}`),s(e,i.eventfullyManagedCreatePromoCode);}catch(i){a(i);}}),n.command("update").description("Update a promo code").argument("<id>","Promo code ID").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--used-count <n>","Used count",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(Ct,{id:e,input:zt(i)});c("Promo code updated"),s(i,o.eventfullyManagedUpdatePromoCode);}catch(o){a(o);}}),n.command("remove").description("Delete a promo code").argument("<id>","Promo code ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(ht,{id:e});c(o.eventfullyManagedDeletePromoCode?"Promo code deleted":"Promo code not deleted"),s(i,{deleted:o.eventfullyManagedDeletePromoCode});}catch(o){a(o);}});}function Ht(t){t.command("analytics").description("Eventfullymanaged analytics & dashboard").command("dashboard").description("Dashboard summary (event/attendee/registration/sponsor/venue counts + latest events)").option("--workspace <id>","Filter by workspace ID").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(St,{workspaceId:e.workspace});s(e,i.eventfullyManagedDashboardSummary);}catch(i){a(i);}});}var ae={id:"eventfullymanaged",version:"1.0.0",displayName:"Eventfullymanaged",dependsOn:["auth","workspaces"],register(t,n){L(n);let e=t.command("eventfullymanaged").description("Eventfullymanaged event-management platform");bt(e),At(e),xt(e),Mt(e),Lt(e),Pt(e),qt(e),Vt(e),jt(e),Jt(e),Gt(e),Ht(e);}},mo=ae;module.exports=mo;
|
|
247
|
+
`;function l(t,n){try{return JSON.parse(n)}catch{throw new m(`--${t} must be valid JSON`)}}function d(t){let n=Number.parseInt(t,10);if(Number.isNaN(n))throw new m(`Expected an integer but got "${t}"`);return n}function C(t){return t.split(",").map(n=>n.trim()).filter(n=>n.length>0)}function Tt(t){let n={name:t.name,type:t.type,timezone:t.timezone,startAt:t.startAt,endAt:t.endAt};return t.status&&(n.status=t.status),t.visibility&&(n.visibility=t.visibility),t.capacity!==void 0&&(n.capacity=t.capacity),t.description&&(n.description=t.description),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function bt(t){let n=t.command("events").description("Eventfullymanaged events");n.command("list").description("List events").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(N,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedEvents.items,{headers:["ID","Name","Type","Status","Start","End"],rows:i.eventfullyManagedEvents.items.map(o=>[u(o.id,12),o.name,o.type,o.status,E(o.startAt),E(o.endAt)])});}catch(i){a(i);}}),n.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(P,{id:e});if(!o.eventfullyManagedEvent)throw new m(`Event ${e} not found`);s(i,o.eventfullyManagedEvent);}catch(o){a(o);}}),n.command("create").description("Create an event").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type (e.g. conference, webinar)").requiredOption("--timezone <tz>","IANA timezone (e.g. Asia/Kolkata)").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility (e.g. public, private)").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(_,{input:Tt(e)});c(`Event created: ${i.eventfullyManagedCreateEvent.name}`),s(e,i.eventfullyManagedCreateEvent);}catch(i){a(i);}}),n.command("update").description("Update an event (the subgraph input requires the core fields)").argument("<id>","Event ID").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type").requiredOption("--timezone <tz>","IANA timezone").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(q,{id:e,input:Tt(i)});c("Event updated"),s(i,o.eventfullyManagedUpdateEvent);}catch(o){a(o);}}),n.command("remove").description("Delete an event").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(U,{id:e});c(o.eventfullyManagedDeleteEvent?"Event deleted":"Event not deleted"),s(i,{deleted:o.eventfullyManagedDeleteEvent});}catch(o){a(o);}});}function Ot(t){let n={name:t.name};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.capacity!==void 0&&(n.capacity=t.capacity),t.addressLine1&&(n.addressLine1=t.addressLine1),t.city&&(n.city=t.city),t.state&&(n.state=t.state),t.country&&(n.country=t.country),t.postalCode&&(n.postalCode=t.postalCode),t.amenities&&(n.amenities=C(t.amenities)),t.openingHours&&(n.openingHours=l("opening-hours",t.openingHours)),t.pricing&&(n.pricing=l("pricing",t.pricing)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function At(t){let n=t.command("venues").description("Eventfullymanaged venues");n.command("list").description("List venues").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(V,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedVenues.items,{headers:["ID","Name","Status","City","Country","Capacity"],rows:i.eventfullyManagedVenues.items.map(o=>[u(o.id,12),o.name,o.status,o.city??"-",o.country??"-",o.capacity!=null?String(o.capacity):"-"])});}catch(i){a(i);}}),n.command("get").description("Get a venue by id").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(F,{id:e});if(!o.eventfullyManagedVenue)throw new m(`Venue ${e} not found`);s(i,o.eventfullyManagedVenue);}catch(o){a(o);}}),n.command("create").description("Create a venue").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(j,{input:Ot({...e,addressLine1:e.address})});c(`Venue created: ${i.eventfullyManagedCreateVenue.name}`),s(e,i.eventfullyManagedCreateVenue);}catch(i){a(i);}}),n.command("update").description("Update a venue").argument("<id>","Venue ID").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(W,{id:e,input:Ot({...i,addressLine1:i.address})});c("Venue updated"),s(i,o.eventfullyManagedUpdateVenue);}catch(o){a(o);}}),n.command("remove").description("Delete a venue").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(J,{id:e});c(o.eventfullyManagedDeleteVenue?"Venue deleted":"Venue not deleted"),s(i,{deleted:o.eventfullyManagedDeleteVenue});}catch(o){a(o);}});}function Dt(t){let n={eventId:t.event,name:t.name,level:t.level};return t.logoUrl&&(n.logoUrl=t.logoUrl),t.website&&(n.website=t.website),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.contactPhone&&(n.contactPhone=t.contactPhone),t.metrics&&(n.metrics=l("metrics",t.metrics)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function xt(t){let n=t.command("sponsors").description("Eventfullymanaged sponsors");n.command("list").description("List sponsors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(z,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedSponsors.items,{headers:["ID","Name","Level","Event","Website"],rows:i.eventfullyManagedSponsors.items.map(o=>[u(o.id,12),o.name,o.level,u(o.eventId,12),o.website??"-"])});}catch(i){a(i);}}),n.command("get").description("Get a sponsor by id").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(G,{id:e});if(!o.eventfullyManagedSponsor)throw new m(`Sponsor ${e} not found`);s(i,o.eventfullyManagedSponsor);}catch(o){a(o);}}),n.command("create").description("Create a sponsor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level (e.g. gold, silver)").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(H,{input:Dt(e)});c(`Sponsor created: ${i.eventfullyManagedCreateSponsor.name}`),s(e,i.eventfullyManagedCreateSponsor);}catch(i){a(i);}}),n.command("update").description("Update a sponsor").argument("<id>","Sponsor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(B,{id:e,input:Dt(i)});c("Sponsor updated"),s(i,o.eventfullyManagedUpdateSponsor);}catch(o){a(o);}}),n.command("remove").description("Delete a sponsor").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(K,{id:e});c(o.eventfullyManagedDeleteSponsor?"Sponsor deleted":"Sponsor not deleted"),s(i,{deleted:o.eventfullyManagedDeleteSponsor});}catch(o){a(o);}});}function $t(t){let n={eventId:t.event,fullName:t.fullName,email:t.email};return t.phone&&(n.phone=t.phone),t.company&&(n.company=t.company),t.role&&(n.role=t.role),t.tags&&(n.tags=C(t.tags)),t.profile&&(n.profile=l("profile",t.profile)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Mt(t){let n=t.command("attendees").description("Eventfullymanaged attendees");n.command("list").description("List attendees").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Y,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedAttendees.items,{headers:["ID","Name","Email","Company","Role"],rows:i.eventfullyManagedAttendees.items.map(o=>[u(o.id,12),o.fullName,o.email,o.company??"-",o.role??"-"])});}catch(i){a(i);}}),n.command("create").description("Create an attendee").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--tags <csv>","Comma-separated tags").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(X,{input:$t(e)});c(`Attendee created: ${i.eventfullyManagedCreateAttendee.fullName}`),s(e,i.eventfullyManagedCreateAttendee);}catch(i){a(i);}}),n.command("update").description("Update an attendee").argument("<id>","Attendee ID").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--tags <csv>","Comma-separated tags").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(Q,{id:e,input:$t(i)});c("Attendee updated"),s(i,o.eventfullyManagedUpdateAttendee);}catch(o){a(o);}});}function Rt(t){let n={eventId:t.event,title:t.title,sessionType:t.sessionType,startsAt:t.startsAt,endsAt:t.endsAt};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.track&&(n.track=t.track),t.capacity!==void 0&&(n.capacity=t.capacity),t.venue&&(n.venueId=t.venue),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Lt(t){let n=t.command("sessions").description("Eventfullymanaged event sessions");n.command("list").description("List event sessions").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(Z,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedEventSessions.items,{headers:["ID","Title","Type","Status","Track","Starts"],rows:i.eventfullyManagedEventSessions.items.map(o=>[u(o.id,12),o.title,o.sessionType,o.status,o.track??"-",E(o.startsAt)])});}catch(i){a(i);}}),n.command("create").description("Create an event session").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type (e.g. talk, workshop)").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(tt,{input:Rt(e)});c(`Session created: ${i.eventfullyManagedCreateEventSession.title}`),s(e,i.eventfullyManagedCreateEventSession);}catch(i){a(i);}}),n.command("update").description("Update an event session").argument("<id>","Session ID").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(et,{id:e,input:Rt(i)});c("Session updated"),s(i,o.eventfullyManagedUpdateEventSession);}catch(o){a(o);}});}function Nt(t){let n={eventId:t.event,name:t.name,price:t.price};return t.currency&&(n.currency=t.currency),t.description&&(n.description=t.description),t.capacity!==void 0&&(n.capacity=t.capacity),t.soldCount!==void 0&&(n.soldCount=t.soldCount),t.active!==void 0&&(n.isActive=t.active),t.salesStartAt&&(n.salesStartAt=t.salesStartAt),t.salesEndAt&&(n.salesEndAt=t.salesEndAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Pt(t){let n=t.command("tickets").description("Eventfullymanaged ticket types");n.command("list").description("List ticket types").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(nt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedTicketTypes.items,{headers:["ID","Name","Price","Currency","Active","Sold"],rows:i.eventfullyManagedTicketTypes.items.map(o=>[u(o.id,12),o.name,o.price,o.currency,o.isActive?"yes":"no",String(o.soldCount)])});}catch(i){a(i);}}),n.command("create").description("Create a ticket type").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--sold-count <n>","Sold count",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(ot,{input:Nt(e)});c(`Ticket type created: ${i.eventfullyManagedCreateTicketType.name}`),s(e,i.eventfullyManagedCreateTicketType);}catch(i){a(i);}}),n.command("update").description("Update a ticket type").argument("<id>","Ticket type ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--sold-count <n>","Sold count",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(it,{id:e,input:Nt(i)});c("Ticket type updated"),s(i,o.eventfullyManagedUpdateTicketType);}catch(o){a(o);}}),n.command("remove").description("Delete a ticket type").argument("<id>","Ticket type ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(rt,{id:e});c(o.eventfullyManagedDeleteTicketType?"Ticket type deleted":"Ticket type not deleted"),s(i,{deleted:o.eventfullyManagedDeleteTicketType});}catch(o){a(o);}});}function _t(t){let n={eventId:t.event};return t.attendee&&(n.attendeeId=t.attendee),t.ticketType&&(n.ticketTypeId=t.ticketType),t.quantity!==void 0&&(n.quantity=t.quantity),t.status&&(n.status=t.status),t.totalAmount&&(n.totalAmount=t.totalAmount),t.currency&&(n.currency=t.currency),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function qt(t){let n=t.command("registrations").description("Eventfullymanaged registrations");n.command("list").description("List registrations").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(at,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedRegistrations.items,{headers:["ID","Event","Attendee","Status","Qty","Total"],rows:i.eventfullyManagedRegistrations.items.map(o=>[u(o.id,12),u(o.eventId,12),o.attendeeId?u(o.attendeeId,12):"-",o.status,String(o.quantity),o.totalAmount??"-"])});}catch(i){a(i);}}),n.command("create").description("Create a registration").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(st,{input:_t(e)});c(`Registration created: ${i.eventfullyManagedCreateRegistration.id}`),s(e,i.eventfullyManagedCreateRegistration);}catch(i){a(i);}}),n.command("update").description("Update a registration").argument("<id>","Registration ID").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(dt,{id:e,input:_t(i)});c("Registration updated"),s(i,o.eventfullyManagedUpdateRegistration);}catch(o){a(o);}});}function Ut(t){let n={fullName:t.fullName};return t.title&&(n.title=t.title),t.organization&&(n.organization=t.organization),t.bio&&(n.bio=t.bio),t.email&&(n.email=t.email),t.phone&&(n.phone=t.phone),t.avatarUrl&&(n.avatarUrl=t.avatarUrl),t.socialLinks&&(n.socialLinks=l("social-links",t.socialLinks)),n}function Vt(t){let n=t.command("speakers").description("Eventfullymanaged speakers");n.command("list").description("List speakers").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(ct,{workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedSpeakers.items,{headers:["ID","Name","Title","Organization","Email"],rows:i.eventfullyManagedSpeakers.items.map(o=>[u(o.id,12),o.fullName,o.title??"-",o.organization??"-",o.email??"-"])});}catch(i){a(i);}}),n.command("create").description("Create a speaker").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(pt,{input:Ut(e)});c(`Speaker created: ${i.eventfullyManagedCreateSpeaker.fullName}`),s(e,i.eventfullyManagedCreateSpeaker);}catch(i){a(i);}}),n.command("update").description("Update a speaker").argument("<id>","Speaker ID").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(ut,{id:e,input:Ut(i)});c("Speaker updated"),s(i,o.eventfullyManagedUpdateSpeaker);}catch(o){a(o);}});}function Ft(t){let n={eventId:t.event,name:t.name};return t.boothCode&&(n.boothCode=t.boothCode),t.category&&(n.category=t.category),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.status&&(n.status=t.status),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function jt(t){let n=t.command("exhibitors").description("Eventfullymanaged exhibitors");n.command("list").description("List exhibitors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(lt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedExhibitors.items,{headers:["ID","Name","Status","Booth","Category"],rows:i.eventfullyManagedExhibitors.items.map(o=>[u(o.id,12),o.name,o.status,o.boothCode??"-",o.category??"-"])});}catch(i){a(i);}}),n.command("create").description("Create an exhibitor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(mt,{input:Ft(e)});c(`Exhibitor created: ${i.eventfullyManagedCreateExhibitor.name}`),s(e,i.eventfullyManagedCreateExhibitor);}catch(i){a(i);}}),n.command("update").description("Update an exhibitor").argument("<id>","Exhibitor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(gt,{id:e,input:Ft(i)});c("Exhibitor updated"),s(i,o.eventfullyManagedUpdateExhibitor);}catch(o){a(o);}}),n.command("remove").description("Delete an exhibitor").argument("<id>","Exhibitor ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(ft,{id:e});c(o.eventfullyManagedDeleteExhibitor?"Exhibitor deleted":"Exhibitor not deleted"),s(i,{deleted:o.eventfullyManagedDeleteExhibitor});}catch(o){a(o);}});}function Wt(t){let n={eventId:t.event,attendeeName:t.attendeeName,attendeeEmail:t.attendeeEmail};return t.exhibitor&&(n.exhibitorId=t.exhibitor),t.sponsor&&(n.sponsorId=t.sponsor),t.status&&(n.status=t.status),t.score!==void 0&&(n.score=t.score),t.notes&&(n.notes=t.notes),t.capturedAt&&(n.capturedAt=t.capturedAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Jt(t){let n=t.command("leads").description("Eventfullymanaged exhibitor leads");n.command("list").description("List leads").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(yt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedLeads.items,{headers:["ID","Name","Email","Status","Score"],rows:i.eventfullyManagedLeads.items.map(o=>[u(o.id,12),o.attendeeName,o.attendeeEmail,o.status,o.score!=null?String(o.score):"-"])});}catch(i){a(i);}}),n.command("create").description("Create a lead").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(vt,{input:Wt(e)});c(`Lead created: ${i.eventfullyManagedCreateLead.attendeeName}`),s(e,i.eventfullyManagedCreateLead);}catch(i){a(i);}}),n.command("update").description("Update a lead").argument("<id>","Lead ID").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(Et,{id:e,input:Wt(i)});c("Lead updated"),s(i,o.eventfullyManagedUpdateLead);}catch(o){a(o);}}),n.command("remove").description("Delete a lead").argument("<id>","Lead ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(It,{id:e});c(o.eventfullyManagedDeleteLead?"Lead deleted":"Lead not deleted"),s(i,{deleted:o.eventfullyManagedDeleteLead});}catch(o){a(o);}});}function zt(t){let n={eventId:t.event,code:t.code,discountType:t.discountType,discountValue:t.discountValue};return t.description&&(n.description=t.description),t.maxUses!==void 0&&(n.maxUses=t.maxUses),t.usedCount!==void 0&&(n.usedCount=t.usedCount),t.active!==void 0&&(n.isActive=t.active),t.startsAt&&(n.startsAt=t.startsAt),t.endsAt&&(n.endsAt=t.endsAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Gt(t){let n=t.command("promo-codes").description("Eventfullymanaged promo codes");n.command("list").description("List promo codes").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(kt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,i.eventfullyManagedPromoCodes.items,{headers:["ID","Code","Type","Value","Active","Used"],rows:i.eventfullyManagedPromoCodes.items.map(o=>[u(o.id,12),o.code,o.discountType,o.discountValue,o.isActive?"yes":"no",String(o.usedCount)])});}catch(i){a(i);}}),n.command("create").description("Create a promo code").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type (e.g. percentage, fixed)").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--used-count <n>","Used count",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(wt,{input:zt(e)});c(`Promo code created: ${i.eventfullyManagedCreatePromoCode.code}`),s(e,i.eventfullyManagedCreatePromoCode);}catch(i){a(i);}}),n.command("update").description("Update a promo code").argument("<id>","Promo code ID").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--used-count <n>","Used count",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(Ct,{id:e,input:zt(i)});c("Promo code updated"),s(i,o.eventfullyManagedUpdatePromoCode);}catch(o){a(o);}}),n.command("remove").description("Delete a promo code").argument("<id>","Promo code ID").option("-f, --format <format>","Output format").action(async(e,i)=>{try{let o=await r(ht,{id:e});c(o.eventfullyManagedDeletePromoCode?"Promo code deleted":"Promo code not deleted"),s(i,{deleted:o.eventfullyManagedDeletePromoCode});}catch(o){a(o);}});}function Ht(t){t.command("analytics").description("Eventfullymanaged analytics & dashboard").command("dashboard").description("Dashboard summary (event/attendee/registration/sponsor/venue counts + latest events)").option("--workspace <id>","Filter by workspace ID").option("-f, --format <format>","Output format").action(async e=>{try{let i=await r(St,{workspaceId:e.workspace});s(e,i.eventfullyManagedDashboardSummary);}catch(i){a(i);}});}var ae={id:"eventfullymanaged",version:"1.0.0",displayName:"Eventfullymanaged",dependsOn:["auth","workspaces"],register(t,n){L(n);let e=t.command("eventfullymanaged").description("Eventfullymanaged event-management platform");bt(e),At(e),xt(e),Mt(e),Lt(e),Pt(e),qt(e),Vt(e),jt(e),Jt(e),Gt(e),Ht(e);}},mo=ae;module.exports=mo;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b,h as h$1,p,o,g,i}from'../../chunk-
|
|
1
|
+
import {a,b,h as h$1,p,o,g,i}from'../../chunk-W4JZR7RJ.js';import {o as o$1}from'../../chunk-YIY5IDXQ.js';var v=`
|
|
2
2
|
id name description type status visibility timezone startAt endAt capacity
|
|
3
3
|
metadata createdAt updatedAt workspaceId
|
|
4
4
|
`,$=`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b,h as h$1,p,n,o,g,i as i$1,k,s}from'../../chunk-
|
|
1
|
+
import {a,b,h as h$1,p,n,o,g,i as i$1,k,s}from'../../chunk-W4JZR7RJ.js';import {o as o$1}from'../../chunk-YIY5IDXQ.js';import {writeFile}from'fs/promises';var J=`
|
|
2
2
|
query ListExportJobs($context: ContextInput!, $filter: ExportJobFilterInput, $pagination: ExportPaginationInput) {
|
|
3
3
|
listExportJobs(context: $context, filter: $filter, pagination: $pagination) {
|
|
4
4
|
edges { node {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b,h as h$1,k,p,g,i}from'../../chunk-
|
|
1
|
+
import {a,b,h as h$1,k,p,g,i}from'../../chunk-W4JZR7RJ.js';import {o}from'../../chunk-YIY5IDXQ.js';import {statSync,readFileSync}from'fs';import {basename,extname}from'path';import {createHash}from'crypto';var h=`
|
|
2
2
|
query BrowseFolderRoot($pagination: PaginationInput) {
|
|
3
3
|
getFilesInFolder(pagination: $pagination) {
|
|
4
4
|
files { id name size mimeType extension createdAt }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b,h as h$1,i,o as o$1,p as p$1,q as q$1}from'../../chunk-
|
|
1
|
+
import {a,b,h as h$1,i,o as o$1,p as p$1,q as q$1}from'../../chunk-W4JZR7RJ.js';import {o}from'../../chunk-YIY5IDXQ.js';import {readFileSync}from'fs';import {createInterface}from'readline';import {Writable}from'stream';var E=`
|
|
2
2
|
id workflowKey name description version status category tags icon isActive
|
|
3
3
|
totalVersions projectId createdAt updatedAt
|
|
4
4
|
`,q=`
|