@burdenoff/cli-sdk 2026.1101.1 → 2026.1102.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/chunk-O6UCQ5IT.js +1 -0
  2. package/dist/{chunk-REBBLQFS.js → chunk-ZGT7IIOP.js} +494 -522
  3. package/dist/modules/adaptercloud/index.cjs +4 -4
  4. package/dist/modules/adaptercloud/index.js +2 -2
  5. package/dist/modules/artistrybase/index.js +2 -2
  6. package/dist/modules/assethandler/index.cjs +2 -2
  7. package/dist/modules/assethandler/index.js +2 -2
  8. package/dist/modules/atheletebridge/index.cjs +8 -8
  9. package/dist/modules/atheletebridge/index.js +2 -2
  10. package/dist/modules/auth/index.cjs +37 -37
  11. package/dist/modules/auth/index.js +33 -29
  12. package/dist/modules/billing/index.cjs +18 -18
  13. package/dist/modules/billing/index.js +22 -22
  14. package/dist/modules/brainyrich/index.cjs +44 -28
  15. package/dist/modules/brainyrich/index.js +47 -31
  16. package/dist/modules/buildmyiq/index.js +2 -2
  17. package/dist/modules/channels/index.cjs +3 -3
  18. package/dist/modules/channels/index.js +2 -2
  19. package/dist/modules/collabkin/index.cjs +4 -4
  20. package/dist/modules/collabkin/index.js +2 -2
  21. package/dist/modules/comradecircle/index.cjs +6 -6
  22. package/dist/modules/comradecircle/index.js +2 -2
  23. package/dist/modules/conversations/index.cjs +7 -7
  24. package/dist/modules/conversations/index.js +2 -2
  25. package/dist/modules/coolandlovely/index.cjs +2 -2
  26. package/dist/modules/coolandlovely/index.js +2 -2
  27. package/dist/modules/cosmicintersection/index.cjs +6 -6
  28. package/dist/modules/cosmicintersection/index.js +2 -2
  29. package/dist/modules/crewfoundry/index.js +2 -2
  30. package/dist/modules/devportal/index.cjs +40 -34
  31. package/dist/modules/devportal/index.js +49 -43
  32. package/dist/modules/ecoimpacthub/index.cjs +5 -5
  33. package/dist/modules/ecoimpacthub/index.js +2 -2
  34. package/dist/modules/eventfullymanaged/index.cjs +12 -12
  35. package/dist/modules/eventfullymanaged/index.js +2 -2
  36. package/dist/modules/export/index.cjs +4 -4
  37. package/dist/modules/export/index.js +2 -2
  38. package/dist/modules/files/index.cjs +3 -3
  39. package/dist/modules/files/index.js +4 -4
  40. package/dist/modules/fluidgrids/index.cjs +16 -16
  41. package/dist/modules/fluidgrids/index.js +3 -3
  42. package/dist/modules/ggnomad/index.cjs +4 -4
  43. package/dist/modules/ggnomad/index.js +2 -2
  44. package/dist/modules/govcitizenhub/index.cjs +4 -4
  45. package/dist/modules/govcitizenhub/index.js +2 -2
  46. package/dist/modules/groups/index.cjs +4 -4
  47. package/dist/modules/groups/index.js +2 -2
  48. package/dist/modules/headshotmarketing/index.js +2 -2
  49. package/dist/modules/hookmovies/index.cjs +6 -6
  50. package/dist/modules/hookmovies/index.js +2 -2
  51. package/dist/modules/housingvista/index.cjs +3 -3
  52. package/dist/modules/housingvista/index.js +2 -2
  53. package/dist/modules/integrations/index.cjs +5 -5
  54. package/dist/modules/integrations/index.js +2 -2
  55. package/dist/modules/intelwatchtower/index.cjs +5 -5
  56. package/dist/modules/intelwatchtower/index.js +2 -2
  57. package/dist/modules/kadaikodi/index.cjs +2 -2
  58. package/dist/modules/kadaikodi/index.js +2 -2
  59. package/dist/modules/labsofscience/index.cjs +3 -3
  60. package/dist/modules/labsofscience/index.js +2 -2
  61. package/dist/modules/manufacturedops/index.cjs +2 -2
  62. package/dist/modules/manufacturedops/index.js +2 -2
  63. package/dist/modules/movethewheels/index.js +2 -2
  64. package/dist/modules/notifications/index.cjs +2 -2
  65. package/dist/modules/notifications/index.js +2 -2
  66. package/dist/modules/organizations/index.js +2 -2
  67. package/dist/modules/planmagnet/index.js +2 -2
  68. package/dist/modules/products/index.cjs +4 -4
  69. package/dist/modules/products/index.js +2 -2
  70. package/dist/modules/proserviceworld/index.cjs +2 -2
  71. package/dist/modules/proserviceworld/index.js +2 -2
  72. package/dist/modules/rbac/index.js +2 -2
  73. package/dist/modules/sandbox/index.cjs +32 -51
  74. package/dist/modules/sandbox/index.js +1 -1
  75. package/dist/modules/scheduler/index.cjs +2 -2
  76. package/dist/modules/scheduler/index.js +2 -2
  77. package/dist/modules/security/index.cjs +3 -3
  78. package/dist/modules/security/index.js +2 -2
  79. package/dist/modules/semanticfed/index.cjs +3 -3
  80. package/dist/modules/semanticfed/index.js +2 -2
  81. package/dist/modules/store/index.cjs +46 -40
  82. package/dist/modules/store/index.js +45 -39
  83. package/dist/modules/subscriberbot/index.cjs +1 -1
  84. package/dist/modules/subscriberbot/index.js +2 -2
  85. package/dist/modules/support/index.cjs +2 -2
  86. package/dist/modules/support/index.js +2 -2
  87. package/dist/modules/tags/index.js +2 -2
  88. package/dist/modules/technospam/index.cjs +2 -2
  89. package/dist/modules/technospam/index.js +2 -2
  90. package/dist/modules/theculturepost/index.js +2 -2
  91. package/dist/modules/theglobalfuel/index.cjs +2 -2
  92. package/dist/modules/theglobalfuel/index.js +2 -2
  93. package/dist/modules/timecampus/index.js +2 -2
  94. package/dist/modules/tours/index.cjs +2 -2
  95. package/dist/modules/tours/index.js +2 -2
  96. package/dist/modules/vibecontrols/index.cjs +573 -577
  97. package/dist/modules/vibecontrols/index.js +5 -4
  98. package/dist/modules/workspaces/index.cjs +4 -4
  99. package/dist/modules/workspaces/index.js +2 -2
  100. package/package.json +1 -1
  101. package/dist/chunk-W4JZR7RJ.js +0 -1
@@ -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 u(t,n){return v().output.truncate(t,n)}var I=`
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 p(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,53 +162,53 @@
162
162
  items { ${A} }
163
163
  }
164
164
  }
165
- `,pt=`
165
+ `,ut=`
166
166
  mutation EventfullymanagedCreateSpeaker($input: EventfullyManagedSpeakerInput!) {
167
167
  eventfullyManagedCreateSpeaker(input: $input) { ${A} }
168
168
  }
169
- `,ut=`
169
+ `,pt=`
170
170
  mutation EventfullymanagedUpdateSpeaker($id: ID!, $input: EventfullyManagedSpeakerInput!) {
171
171
  eventfullyManagedUpdateSpeaker(id: $id, input: $input) { ${A} }
172
172
  }
173
- `,D=`
173
+ `,x=`
174
174
  id eventId name boothCode category contactName contactEmail status metadata
175
175
  createdAt updatedAt workspaceId
176
176
  `,lt=`
177
177
  query EventfullymanagedExhibitors($eventId: ID, $limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
178
178
  eventfullyManagedExhibitors(eventId: $eventId, limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
179
179
  total
180
- items { ${D} }
180
+ items { ${x} }
181
181
  }
182
182
  }
183
183
  `,mt=`
184
184
  mutation EventfullymanagedCreateExhibitor($input: EventfullyManagedExhibitorInput!) {
185
- eventfullyManagedCreateExhibitor(input: $input) { ${D} }
185
+ eventfullyManagedCreateExhibitor(input: $input) { ${x} }
186
186
  }
187
187
  `,gt=`
188
188
  mutation EventfullymanagedUpdateExhibitor($id: ID!, $input: EventfullyManagedExhibitorInput!) {
189
- eventfullyManagedUpdateExhibitor(id: $id, input: $input) { ${D} }
189
+ eventfullyManagedUpdateExhibitor(id: $id, input: $input) { ${x} }
190
190
  }
191
191
  `,ft=`
192
192
  mutation EventfullymanagedDeleteExhibitor($id: ID!) {
193
193
  eventfullyManagedDeleteExhibitor(id: $id)
194
194
  }
195
- `,x=`
195
+ `,D=`
196
196
  id eventId attendeeName attendeeEmail exhibitorId sponsorId status score
197
197
  notes capturedAt metadata createdAt updatedAt workspaceId
198
198
  `,yt=`
199
199
  query EventfullymanagedLeads($eventId: ID, $limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
200
200
  eventfullyManagedLeads(eventId: $eventId, limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
201
201
  total
202
- items { ${x} }
202
+ items { ${D} }
203
203
  }
204
204
  }
205
205
  `,vt=`
206
206
  mutation EventfullymanagedCreateLead($input: EventfullyManagedLeadInput!) {
207
- eventfullyManagedCreateLead(input: $input) { ${x} }
207
+ eventfullyManagedCreateLead(input: $input) { ${D} }
208
208
  }
209
209
  `,Et=`
210
210
  mutation EventfullymanagedUpdateLead($id: ID!, $input: EventfullyManagedLeadInput!) {
211
- eventfullyManagedUpdateLead(id: $id, input: $input) { ${x} }
211
+ eventfullyManagedUpdateLead(id: $id, input: $input) { ${D} }
212
212
  }
213
213
  `,It=`
214
214
  mutation EventfullymanagedDeleteLead($id: ID!) {
@@ -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=>[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;
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 xt(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 Dt(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:xt(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:xt(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),Dt(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-W4JZR7RJ.js';import {o as o$1}from'../../chunk-YIY5IDXQ.js';var v=`
1
+ import {a,b,i,r,q as q$1,h as h$1,k as k$1}from'../../chunk-O6UCQ5IT.js';import {o}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
  `,$=`
@@ -244,4 +244,4 @@ import {a,b,h as h$1,p,o,g,i}from'../../chunk-W4JZR7RJ.js';import {o as o$1}from
244
244
  latestEvents { id name status type startAt endAt }
245
245
  }
246
246
  }
247
- `;function c(t,i){try{return JSON.parse(i)}catch{throw new o$1(`--${t} must be valid JSON`)}}function d(t){let i=Number.parseInt(t,10);if(Number.isNaN(i))throw new o$1(`Expected an integer but got "${t}"`);return i}function S(t){return t.split(",").map(i=>i.trim()).filter(i=>i.length>0)}function St(t){let i={name:t.name,type:t.type,timezone:t.timezone,startAt:t.startAt,endAt:t.endAt};return t.status&&(i.status=t.status),t.visibility&&(i.visibility=t.visibility),t.capacity!==void 0&&(i.capacity=t.capacity),t.description&&(i.description=t.description),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function kt(t){let i$1=t.command("events").description("Eventfullymanaged events");i$1.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 a=await b($,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedEvents.items,{headers:["ID","Name","Type","Status","Start","End"],rows:a.eventfullyManagedEvents.items.map(n=>[p(n.id,12),n.name,n.type,n.status,o(n.startAt),o(n.endAt)])});}catch(a){g(a);}}),i$1.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(M,{id:e});if(!n.eventfullyManagedEvent)throw new o$1(`Event ${e} not found`);h$1(a,n.eventfullyManagedEvent);}catch(n){g(n);}}),i$1.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 a=await b(R,{input:St(e)});i(`Event created: ${a.eventfullyManagedCreateEvent.name}`),h$1(e,a.eventfullyManagedCreateEvent);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(L,{id:e,input:St(a)});i("Event updated"),h$1(a,n.eventfullyManagedUpdateEvent);}catch(n){g(n);}}),i$1.command("remove").description("Delete an event").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(N,{id:e});i(n.eventfullyManagedDeleteEvent?"Event deleted":"Event not deleted"),h$1(a,{deleted:n.eventfullyManagedDeleteEvent});}catch(n){g(n);}});}function Ct(t){let i={name:t.name};return t.description&&(i.description=t.description),t.status&&(i.status=t.status),t.capacity!==void 0&&(i.capacity=t.capacity),t.addressLine1&&(i.addressLine1=t.addressLine1),t.city&&(i.city=t.city),t.state&&(i.state=t.state),t.country&&(i.country=t.country),t.postalCode&&(i.postalCode=t.postalCode),t.amenities&&(i.amenities=S(t.amenities)),t.openingHours&&(i.openingHours=c("opening-hours",t.openingHours)),t.pricing&&(i.pricing=c("pricing",t.pricing)),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function Ot(t){let i$1=t.command("venues").description("Eventfullymanaged venues");i$1.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 a=await b(P,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedVenues.items,{headers:["ID","Name","Status","City","Country","Capacity"],rows:a.eventfullyManagedVenues.items.map(n=>[p(n.id,12),n.name,n.status,n.city??"-",n.country??"-",n.capacity!=null?String(n.capacity):"-"])});}catch(a){g(a);}}),i$1.command("get").description("Get a venue by id").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(U,{id:e});if(!n.eventfullyManagedVenue)throw new o$1(`Venue ${e} not found`);h$1(a,n.eventfullyManagedVenue);}catch(n){g(n);}}),i$1.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 a=await b(_,{input:Ct({...e,addressLine1:e.address})});i(`Venue created: ${a.eventfullyManagedCreateVenue.name}`),h$1(e,a.eventfullyManagedCreateVenue);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(x,{id:e,input:Ct({...a,addressLine1:a.address})});i("Venue updated"),h$1(a,n.eventfullyManagedUpdateVenue);}catch(n){g(n);}}),i$1.command("remove").description("Delete a venue").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(q,{id:e});i(n.eventfullyManagedDeleteVenue?"Venue deleted":"Venue not deleted"),h$1(a,{deleted:n.eventfullyManagedDeleteVenue});}catch(n){g(n);}});}function wt(t){let i={eventId:t.event,name:t.name,level:t.level};return t.logoUrl&&(i.logoUrl=t.logoUrl),t.website&&(i.website=t.website),t.contactName&&(i.contactName=t.contactName),t.contactEmail&&(i.contactEmail=t.contactEmail),t.contactPhone&&(i.contactPhone=t.contactPhone),t.metrics&&(i.metrics=c("metrics",t.metrics)),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function Tt(t){let i$1=t.command("sponsors").description("Eventfullymanaged sponsors");i$1.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 a=await b(V,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedSponsors.items,{headers:["ID","Name","Level","Event","Website"],rows:a.eventfullyManagedSponsors.items.map(n=>[p(n.id,12),n.name,n.level,p(n.eventId,12),n.website??"-"])});}catch(a){g(a);}}),i$1.command("get").description("Get a sponsor by id").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(F,{id:e});if(!n.eventfullyManagedSponsor)throw new o$1(`Sponsor ${e} not found`);h$1(a,n.eventfullyManagedSponsor);}catch(n){g(n);}}),i$1.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 a=await b(J,{input:wt(e)});i(`Sponsor created: ${a.eventfullyManagedCreateSponsor.name}`),h$1(e,a.eventfullyManagedCreateSponsor);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(z,{id:e,input:wt(a)});i("Sponsor updated"),h$1(a,n.eventfullyManagedUpdateSponsor);}catch(n){g(n);}}),i$1.command("remove").description("Delete a sponsor").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(j,{id:e});i(n.eventfullyManagedDeleteSponsor?"Sponsor deleted":"Sponsor not deleted"),h$1(a,{deleted:n.eventfullyManagedDeleteSponsor});}catch(n){g(n);}});}function Dt(t){let i={eventId:t.event,fullName:t.fullName,email:t.email};return t.phone&&(i.phone=t.phone),t.company&&(i.company=t.company),t.role&&(i.role=t.role),t.tags&&(i.tags=S(t.tags)),t.profile&&(i.profile=c("profile",t.profile)),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function ht(t){let i$1=t.command("attendees").description("Eventfullymanaged attendees");i$1.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 a=await b(H,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedAttendees.items,{headers:["ID","Name","Email","Company","Role"],rows:a.eventfullyManagedAttendees.items.map(n=>[p(n.id,12),n.fullName,n.email,n.company??"-",n.role??"-"])});}catch(a){g(a);}}),i$1.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 a=await b(K,{input:Dt(e)});i(`Attendee created: ${a.eventfullyManagedCreateAttendee.fullName}`),h$1(e,a.eventfullyManagedCreateAttendee);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(W,{id:e,input:Dt(a)});i("Attendee updated"),h$1(a,n.eventfullyManagedUpdateAttendee);}catch(n){g(n);}});}function At(t){let i={eventId:t.event,title:t.title,sessionType:t.sessionType,startsAt:t.startsAt,endsAt:t.endsAt};return t.description&&(i.description=t.description),t.status&&(i.status=t.status),t.track&&(i.track=t.track),t.capacity!==void 0&&(i.capacity=t.capacity),t.venue&&(i.venueId=t.venue),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function bt(t){let i$1=t.command("sessions").description("Eventfullymanaged event sessions");i$1.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 a=await b(B,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedEventSessions.items,{headers:["ID","Title","Type","Status","Track","Starts"],rows:a.eventfullyManagedEventSessions.items.map(n=>[p(n.id,12),n.title,n.sessionType,n.status,n.track??"-",o(n.startsAt)])});}catch(a){g(a);}}),i$1.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 a=await b(G,{input:At(e)});i(`Session created: ${a.eventfullyManagedCreateEventSession.title}`),h$1(e,a.eventfullyManagedCreateEventSession);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(Y,{id:e,input:At(a)});i("Session updated"),h$1(a,n.eventfullyManagedUpdateEventSession);}catch(n){g(n);}});}function $t(t){let i={eventId:t.event,name:t.name,price:t.price};return t.currency&&(i.currency=t.currency),t.description&&(i.description=t.description),t.capacity!==void 0&&(i.capacity=t.capacity),t.soldCount!==void 0&&(i.soldCount=t.soldCount),t.active!==void 0&&(i.isActive=t.active),t.salesStartAt&&(i.salesStartAt=t.salesStartAt),t.salesEndAt&&(i.salesEndAt=t.salesEndAt),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function Mt(t){let i$1=t.command("tickets").description("Eventfullymanaged ticket types");i$1.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 a=await b(X,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedTicketTypes.items,{headers:["ID","Name","Price","Currency","Active","Sold"],rows:a.eventfullyManagedTicketTypes.items.map(n=>[p(n.id,12),n.name,n.price,n.currency,n.isActive?"yes":"no",String(n.soldCount)])});}catch(a){g(a);}}),i$1.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 a=await b(Q,{input:$t(e)});i(`Ticket type created: ${a.eventfullyManagedCreateTicketType.name}`),h$1(e,a.eventfullyManagedCreateTicketType);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(Z,{id:e,input:$t(a)});i("Ticket type updated"),h$1(a,n.eventfullyManagedUpdateTicketType);}catch(n){g(n);}}),i$1.command("remove").description("Delete a ticket type").argument("<id>","Ticket type ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(tt,{id:e});i(n.eventfullyManagedDeleteTicketType?"Ticket type deleted":"Ticket type not deleted"),h$1(a,{deleted:n.eventfullyManagedDeleteTicketType});}catch(n){g(n);}});}function Rt(t){let i={eventId:t.event};return t.attendee&&(i.attendeeId=t.attendee),t.ticketType&&(i.ticketTypeId=t.ticketType),t.quantity!==void 0&&(i.quantity=t.quantity),t.status&&(i.status=t.status),t.totalAmount&&(i.totalAmount=t.totalAmount),t.currency&&(i.currency=t.currency),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function Lt(t){let i$1=t.command("registrations").description("Eventfullymanaged registrations");i$1.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 a=await b(et,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedRegistrations.items,{headers:["ID","Event","Attendee","Status","Qty","Total"],rows:a.eventfullyManagedRegistrations.items.map(n=>[p(n.id,12),p(n.eventId,12),n.attendeeId?p(n.attendeeId,12):"-",n.status,String(n.quantity),n.totalAmount??"-"])});}catch(a){g(a);}}),i$1.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 a=await b(nt,{input:Rt(e)});i(`Registration created: ${a.eventfullyManagedCreateRegistration.id}`),h$1(e,a.eventfullyManagedCreateRegistration);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(at,{id:e,input:Rt(a)});i("Registration updated"),h$1(a,n.eventfullyManagedUpdateRegistration);}catch(n){g(n);}});}function Nt(t){let i={fullName:t.fullName};return t.title&&(i.title=t.title),t.organization&&(i.organization=t.organization),t.bio&&(i.bio=t.bio),t.email&&(i.email=t.email),t.phone&&(i.phone=t.phone),t.avatarUrl&&(i.avatarUrl=t.avatarUrl),t.socialLinks&&(i.socialLinks=c("social-links",t.socialLinks)),i}function Pt(t){let i$1=t.command("speakers").description("Eventfullymanaged speakers");i$1.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 a=await b(it,{workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedSpeakers.items,{headers:["ID","Name","Title","Organization","Email"],rows:a.eventfullyManagedSpeakers.items.map(n=>[p(n.id,12),n.fullName,n.title??"-",n.organization??"-",n.email??"-"])});}catch(a){g(a);}}),i$1.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 a=await b(ot,{input:Nt(e)});i(`Speaker created: ${a.eventfullyManagedCreateSpeaker.fullName}`),h$1(e,a.eventfullyManagedCreateSpeaker);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(rt,{id:e,input:Nt(a)});i("Speaker updated"),h$1(a,n.eventfullyManagedUpdateSpeaker);}catch(n){g(n);}});}function Ut(t){let i={eventId:t.event,name:t.name};return t.boothCode&&(i.boothCode=t.boothCode),t.category&&(i.category=t.category),t.contactName&&(i.contactName=t.contactName),t.contactEmail&&(i.contactEmail=t.contactEmail),t.status&&(i.status=t.status),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function _t(t){let i$1=t.command("exhibitors").description("Eventfullymanaged exhibitors");i$1.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 a=await b(st,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedExhibitors.items,{headers:["ID","Name","Status","Booth","Category"],rows:a.eventfullyManagedExhibitors.items.map(n=>[p(n.id,12),n.name,n.status,n.boothCode??"-",n.category??"-"])});}catch(a){g(a);}}),i$1.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 a=await b(dt,{input:Ut(e)});i(`Exhibitor created: ${a.eventfullyManagedCreateExhibitor.name}`),h$1(e,a.eventfullyManagedCreateExhibitor);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(pt,{id:e,input:Ut(a)});i("Exhibitor updated"),h$1(a,n.eventfullyManagedUpdateExhibitor);}catch(n){g(n);}}),i$1.command("remove").description("Delete an exhibitor").argument("<id>","Exhibitor ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(mt,{id:e});i(n.eventfullyManagedDeleteExhibitor?"Exhibitor deleted":"Exhibitor not deleted"),h$1(a,{deleted:n.eventfullyManagedDeleteExhibitor});}catch(n){g(n);}});}function xt(t){let i={eventId:t.event,attendeeName:t.attendeeName,attendeeEmail:t.attendeeEmail};return t.exhibitor&&(i.exhibitorId=t.exhibitor),t.sponsor&&(i.sponsorId=t.sponsor),t.status&&(i.status=t.status),t.score!==void 0&&(i.score=t.score),t.notes&&(i.notes=t.notes),t.capturedAt&&(i.capturedAt=t.capturedAt),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function qt(t){let i$1=t.command("leads").description("Eventfullymanaged exhibitor leads");i$1.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 a=await b(ct,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedLeads.items,{headers:["ID","Name","Email","Status","Score"],rows:a.eventfullyManagedLeads.items.map(n=>[p(n.id,12),n.attendeeName,n.attendeeEmail,n.status,n.score!=null?String(n.score):"-"])});}catch(a){g(a);}}),i$1.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 a=await b(ut,{input:xt(e)});i(`Lead created: ${a.eventfullyManagedCreateLead.attendeeName}`),h$1(e,a.eventfullyManagedCreateLead);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(lt,{id:e,input:xt(a)});i("Lead updated"),h$1(a,n.eventfullyManagedUpdateLead);}catch(n){g(n);}}),i$1.command("remove").description("Delete a lead").argument("<id>","Lead ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(gt,{id:e});i(n.eventfullyManagedDeleteLead?"Lead deleted":"Lead not deleted"),h$1(a,{deleted:n.eventfullyManagedDeleteLead});}catch(n){g(n);}});}function Vt(t){let i={eventId:t.event,code:t.code,discountType:t.discountType,discountValue:t.discountValue};return t.description&&(i.description=t.description),t.maxUses!==void 0&&(i.maxUses=t.maxUses),t.usedCount!==void 0&&(i.usedCount=t.usedCount),t.active!==void 0&&(i.isActive=t.active),t.startsAt&&(i.startsAt=t.startsAt),t.endsAt&&(i.endsAt=t.endsAt),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function Ft(t){let i$1=t.command("promo-codes").description("Eventfullymanaged promo codes");i$1.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 a=await b(ft,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});h$1(e,a.eventfullyManagedPromoCodes.items,{headers:["ID","Code","Type","Value","Active","Used"],rows:a.eventfullyManagedPromoCodes.items.map(n=>[p(n.id,12),n.code,n.discountType,n.discountValue,n.isActive?"yes":"no",String(n.usedCount)])});}catch(a){g(a);}}),i$1.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 a=await b(yt,{input:Vt(e)});i(`Promo code created: ${a.eventfullyManagedCreatePromoCode.code}`),h$1(e,a.eventfullyManagedCreatePromoCode);}catch(a){g(a);}}),i$1.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,a)=>{try{let n=await b(vt,{id:e,input:Vt(a)});i("Promo code updated"),h$1(a,n.eventfullyManagedUpdatePromoCode);}catch(n){g(n);}}),i$1.command("remove").description("Delete a promo code").argument("<id>","Promo code ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(Et,{id:e});i(n.eventfullyManagedDeletePromoCode?"Promo code deleted":"Promo code not deleted"),h$1(a,{deleted:n.eventfullyManagedDeletePromoCode});}catch(n){g(n);}});}function Jt(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 a=await b(It,{workspaceId:e.workspace});h$1(e,a.eventfullyManagedDashboardSummary);}catch(a){g(a);}});}var zt={id:"eventfullymanaged",version:"1.0.0",displayName:"Eventfullymanaged",dependsOn:["auth","workspaces"],register(t,i){a(i);let e=t.command("eventfullymanaged").description("Eventfullymanaged event-management platform");kt(e),Ot(e),Tt(e),ht(e),bt(e),Mt(e),Lt(e),Pt(e),_t(e),qt(e),Ft(e),Jt(e);}},He=zt;export{He as default};
247
+ `;function c(t,i){try{return JSON.parse(i)}catch{throw new o(`--${t} must be valid JSON`)}}function d(t){let i=Number.parseInt(t,10);if(Number.isNaN(i))throw new o(`Expected an integer but got "${t}"`);return i}function S(t){return t.split(",").map(i=>i.trim()).filter(i=>i.length>0)}function St(t){let i={name:t.name,type:t.type,timezone:t.timezone,startAt:t.startAt,endAt:t.endAt};return t.status&&(i.status=t.status),t.visibility&&(i.visibility=t.visibility),t.capacity!==void 0&&(i.capacity=t.capacity),t.description&&(i.description=t.description),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function kt(t){let i$1=t.command("events").description("Eventfullymanaged events");i$1.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 a=await b($,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedEvents.items,{headers:["ID","Name","Type","Status","Start","End"],rows:a.eventfullyManagedEvents.items.map(n=>[r(n.id,12),n.name,n.type,n.status,q$1(n.startAt),q$1(n.endAt)])});}catch(a){h$1(a);}}),i$1.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(M,{id:e});if(!n.eventfullyManagedEvent)throw new o(`Event ${e} not found`);i(a,n.eventfullyManagedEvent);}catch(n){h$1(n);}}),i$1.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 a=await b(R,{input:St(e)});k$1(`Event created: ${a.eventfullyManagedCreateEvent.name}`),i(e,a.eventfullyManagedCreateEvent);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(L,{id:e,input:St(a)});k$1("Event updated"),i(a,n.eventfullyManagedUpdateEvent);}catch(n){h$1(n);}}),i$1.command("remove").description("Delete an event").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(N,{id:e});k$1(n.eventfullyManagedDeleteEvent?"Event deleted":"Event not deleted"),i(a,{deleted:n.eventfullyManagedDeleteEvent});}catch(n){h$1(n);}});}function Ct(t){let i={name:t.name};return t.description&&(i.description=t.description),t.status&&(i.status=t.status),t.capacity!==void 0&&(i.capacity=t.capacity),t.addressLine1&&(i.addressLine1=t.addressLine1),t.city&&(i.city=t.city),t.state&&(i.state=t.state),t.country&&(i.country=t.country),t.postalCode&&(i.postalCode=t.postalCode),t.amenities&&(i.amenities=S(t.amenities)),t.openingHours&&(i.openingHours=c("opening-hours",t.openingHours)),t.pricing&&(i.pricing=c("pricing",t.pricing)),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function Ot(t){let i$1=t.command("venues").description("Eventfullymanaged venues");i$1.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 a=await b(P,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedVenues.items,{headers:["ID","Name","Status","City","Country","Capacity"],rows:a.eventfullyManagedVenues.items.map(n=>[r(n.id,12),n.name,n.status,n.city??"-",n.country??"-",n.capacity!=null?String(n.capacity):"-"])});}catch(a){h$1(a);}}),i$1.command("get").description("Get a venue by id").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(U,{id:e});if(!n.eventfullyManagedVenue)throw new o(`Venue ${e} not found`);i(a,n.eventfullyManagedVenue);}catch(n){h$1(n);}}),i$1.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 a=await b(_,{input:Ct({...e,addressLine1:e.address})});k$1(`Venue created: ${a.eventfullyManagedCreateVenue.name}`),i(e,a.eventfullyManagedCreateVenue);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(x,{id:e,input:Ct({...a,addressLine1:a.address})});k$1("Venue updated"),i(a,n.eventfullyManagedUpdateVenue);}catch(n){h$1(n);}}),i$1.command("remove").description("Delete a venue").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(q,{id:e});k$1(n.eventfullyManagedDeleteVenue?"Venue deleted":"Venue not deleted"),i(a,{deleted:n.eventfullyManagedDeleteVenue});}catch(n){h$1(n);}});}function wt(t){let i={eventId:t.event,name:t.name,level:t.level};return t.logoUrl&&(i.logoUrl=t.logoUrl),t.website&&(i.website=t.website),t.contactName&&(i.contactName=t.contactName),t.contactEmail&&(i.contactEmail=t.contactEmail),t.contactPhone&&(i.contactPhone=t.contactPhone),t.metrics&&(i.metrics=c("metrics",t.metrics)),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function Tt(t){let i$1=t.command("sponsors").description("Eventfullymanaged sponsors");i$1.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 a=await b(V,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedSponsors.items,{headers:["ID","Name","Level","Event","Website"],rows:a.eventfullyManagedSponsors.items.map(n=>[r(n.id,12),n.name,n.level,r(n.eventId,12),n.website??"-"])});}catch(a){h$1(a);}}),i$1.command("get").description("Get a sponsor by id").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(F,{id:e});if(!n.eventfullyManagedSponsor)throw new o(`Sponsor ${e} not found`);i(a,n.eventfullyManagedSponsor);}catch(n){h$1(n);}}),i$1.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 a=await b(J,{input:wt(e)});k$1(`Sponsor created: ${a.eventfullyManagedCreateSponsor.name}`),i(e,a.eventfullyManagedCreateSponsor);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(z,{id:e,input:wt(a)});k$1("Sponsor updated"),i(a,n.eventfullyManagedUpdateSponsor);}catch(n){h$1(n);}}),i$1.command("remove").description("Delete a sponsor").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(j,{id:e});k$1(n.eventfullyManagedDeleteSponsor?"Sponsor deleted":"Sponsor not deleted"),i(a,{deleted:n.eventfullyManagedDeleteSponsor});}catch(n){h$1(n);}});}function Dt(t){let i={eventId:t.event,fullName:t.fullName,email:t.email};return t.phone&&(i.phone=t.phone),t.company&&(i.company=t.company),t.role&&(i.role=t.role),t.tags&&(i.tags=S(t.tags)),t.profile&&(i.profile=c("profile",t.profile)),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function ht(t){let i$1=t.command("attendees").description("Eventfullymanaged attendees");i$1.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 a=await b(H,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedAttendees.items,{headers:["ID","Name","Email","Company","Role"],rows:a.eventfullyManagedAttendees.items.map(n=>[r(n.id,12),n.fullName,n.email,n.company??"-",n.role??"-"])});}catch(a){h$1(a);}}),i$1.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 a=await b(K,{input:Dt(e)});k$1(`Attendee created: ${a.eventfullyManagedCreateAttendee.fullName}`),i(e,a.eventfullyManagedCreateAttendee);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(W,{id:e,input:Dt(a)});k$1("Attendee updated"),i(a,n.eventfullyManagedUpdateAttendee);}catch(n){h$1(n);}});}function At(t){let i={eventId:t.event,title:t.title,sessionType:t.sessionType,startsAt:t.startsAt,endsAt:t.endsAt};return t.description&&(i.description=t.description),t.status&&(i.status=t.status),t.track&&(i.track=t.track),t.capacity!==void 0&&(i.capacity=t.capacity),t.venue&&(i.venueId=t.venue),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function bt(t){let i$1=t.command("sessions").description("Eventfullymanaged event sessions");i$1.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 a=await b(B,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedEventSessions.items,{headers:["ID","Title","Type","Status","Track","Starts"],rows:a.eventfullyManagedEventSessions.items.map(n=>[r(n.id,12),n.title,n.sessionType,n.status,n.track??"-",q$1(n.startsAt)])});}catch(a){h$1(a);}}),i$1.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 a=await b(G,{input:At(e)});k$1(`Session created: ${a.eventfullyManagedCreateEventSession.title}`),i(e,a.eventfullyManagedCreateEventSession);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(Y,{id:e,input:At(a)});k$1("Session updated"),i(a,n.eventfullyManagedUpdateEventSession);}catch(n){h$1(n);}});}function $t(t){let i={eventId:t.event,name:t.name,price:t.price};return t.currency&&(i.currency=t.currency),t.description&&(i.description=t.description),t.capacity!==void 0&&(i.capacity=t.capacity),t.soldCount!==void 0&&(i.soldCount=t.soldCount),t.active!==void 0&&(i.isActive=t.active),t.salesStartAt&&(i.salesStartAt=t.salesStartAt),t.salesEndAt&&(i.salesEndAt=t.salesEndAt),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function Mt(t){let i$1=t.command("tickets").description("Eventfullymanaged ticket types");i$1.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 a=await b(X,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedTicketTypes.items,{headers:["ID","Name","Price","Currency","Active","Sold"],rows:a.eventfullyManagedTicketTypes.items.map(n=>[r(n.id,12),n.name,n.price,n.currency,n.isActive?"yes":"no",String(n.soldCount)])});}catch(a){h$1(a);}}),i$1.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 a=await b(Q,{input:$t(e)});k$1(`Ticket type created: ${a.eventfullyManagedCreateTicketType.name}`),i(e,a.eventfullyManagedCreateTicketType);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(Z,{id:e,input:$t(a)});k$1("Ticket type updated"),i(a,n.eventfullyManagedUpdateTicketType);}catch(n){h$1(n);}}),i$1.command("remove").description("Delete a ticket type").argument("<id>","Ticket type ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(tt,{id:e});k$1(n.eventfullyManagedDeleteTicketType?"Ticket type deleted":"Ticket type not deleted"),i(a,{deleted:n.eventfullyManagedDeleteTicketType});}catch(n){h$1(n);}});}function Rt(t){let i={eventId:t.event};return t.attendee&&(i.attendeeId=t.attendee),t.ticketType&&(i.ticketTypeId=t.ticketType),t.quantity!==void 0&&(i.quantity=t.quantity),t.status&&(i.status=t.status),t.totalAmount&&(i.totalAmount=t.totalAmount),t.currency&&(i.currency=t.currency),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function Lt(t){let i$1=t.command("registrations").description("Eventfullymanaged registrations");i$1.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 a=await b(et,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedRegistrations.items,{headers:["ID","Event","Attendee","Status","Qty","Total"],rows:a.eventfullyManagedRegistrations.items.map(n=>[r(n.id,12),r(n.eventId,12),n.attendeeId?r(n.attendeeId,12):"-",n.status,String(n.quantity),n.totalAmount??"-"])});}catch(a){h$1(a);}}),i$1.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 a=await b(nt,{input:Rt(e)});k$1(`Registration created: ${a.eventfullyManagedCreateRegistration.id}`),i(e,a.eventfullyManagedCreateRegistration);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(at,{id:e,input:Rt(a)});k$1("Registration updated"),i(a,n.eventfullyManagedUpdateRegistration);}catch(n){h$1(n);}});}function Nt(t){let i={fullName:t.fullName};return t.title&&(i.title=t.title),t.organization&&(i.organization=t.organization),t.bio&&(i.bio=t.bio),t.email&&(i.email=t.email),t.phone&&(i.phone=t.phone),t.avatarUrl&&(i.avatarUrl=t.avatarUrl),t.socialLinks&&(i.socialLinks=c("social-links",t.socialLinks)),i}function Pt(t){let i$1=t.command("speakers").description("Eventfullymanaged speakers");i$1.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 a=await b(it,{workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedSpeakers.items,{headers:["ID","Name","Title","Organization","Email"],rows:a.eventfullyManagedSpeakers.items.map(n=>[r(n.id,12),n.fullName,n.title??"-",n.organization??"-",n.email??"-"])});}catch(a){h$1(a);}}),i$1.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 a=await b(ot,{input:Nt(e)});k$1(`Speaker created: ${a.eventfullyManagedCreateSpeaker.fullName}`),i(e,a.eventfullyManagedCreateSpeaker);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(rt,{id:e,input:Nt(a)});k$1("Speaker updated"),i(a,n.eventfullyManagedUpdateSpeaker);}catch(n){h$1(n);}});}function Ut(t){let i={eventId:t.event,name:t.name};return t.boothCode&&(i.boothCode=t.boothCode),t.category&&(i.category=t.category),t.contactName&&(i.contactName=t.contactName),t.contactEmail&&(i.contactEmail=t.contactEmail),t.status&&(i.status=t.status),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function _t(t){let i$1=t.command("exhibitors").description("Eventfullymanaged exhibitors");i$1.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 a=await b(st,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedExhibitors.items,{headers:["ID","Name","Status","Booth","Category"],rows:a.eventfullyManagedExhibitors.items.map(n=>[r(n.id,12),n.name,n.status,n.boothCode??"-",n.category??"-"])});}catch(a){h$1(a);}}),i$1.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 a=await b(dt,{input:Ut(e)});k$1(`Exhibitor created: ${a.eventfullyManagedCreateExhibitor.name}`),i(e,a.eventfullyManagedCreateExhibitor);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(pt,{id:e,input:Ut(a)});k$1("Exhibitor updated"),i(a,n.eventfullyManagedUpdateExhibitor);}catch(n){h$1(n);}}),i$1.command("remove").description("Delete an exhibitor").argument("<id>","Exhibitor ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(mt,{id:e});k$1(n.eventfullyManagedDeleteExhibitor?"Exhibitor deleted":"Exhibitor not deleted"),i(a,{deleted:n.eventfullyManagedDeleteExhibitor});}catch(n){h$1(n);}});}function xt(t){let i={eventId:t.event,attendeeName:t.attendeeName,attendeeEmail:t.attendeeEmail};return t.exhibitor&&(i.exhibitorId=t.exhibitor),t.sponsor&&(i.sponsorId=t.sponsor),t.status&&(i.status=t.status),t.score!==void 0&&(i.score=t.score),t.notes&&(i.notes=t.notes),t.capturedAt&&(i.capturedAt=t.capturedAt),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function qt(t){let i$1=t.command("leads").description("Eventfullymanaged exhibitor leads");i$1.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 a=await b(ct,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedLeads.items,{headers:["ID","Name","Email","Status","Score"],rows:a.eventfullyManagedLeads.items.map(n=>[r(n.id,12),n.attendeeName,n.attendeeEmail,n.status,n.score!=null?String(n.score):"-"])});}catch(a){h$1(a);}}),i$1.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 a=await b(ut,{input:xt(e)});k$1(`Lead created: ${a.eventfullyManagedCreateLead.attendeeName}`),i(e,a.eventfullyManagedCreateLead);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(lt,{id:e,input:xt(a)});k$1("Lead updated"),i(a,n.eventfullyManagedUpdateLead);}catch(n){h$1(n);}}),i$1.command("remove").description("Delete a lead").argument("<id>","Lead ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(gt,{id:e});k$1(n.eventfullyManagedDeleteLead?"Lead deleted":"Lead not deleted"),i(a,{deleted:n.eventfullyManagedDeleteLead});}catch(n){h$1(n);}});}function Vt(t){let i={eventId:t.event,code:t.code,discountType:t.discountType,discountValue:t.discountValue};return t.description&&(i.description=t.description),t.maxUses!==void 0&&(i.maxUses=t.maxUses),t.usedCount!==void 0&&(i.usedCount=t.usedCount),t.active!==void 0&&(i.isActive=t.active),t.startsAt&&(i.startsAt=t.startsAt),t.endsAt&&(i.endsAt=t.endsAt),t.metadata&&(i.metadata=c("metadata",t.metadata)),i}function Ft(t){let i$1=t.command("promo-codes").description("Eventfullymanaged promo codes");i$1.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 a=await b(ft,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});i(e,a.eventfullyManagedPromoCodes.items,{headers:["ID","Code","Type","Value","Active","Used"],rows:a.eventfullyManagedPromoCodes.items.map(n=>[r(n.id,12),n.code,n.discountType,n.discountValue,n.isActive?"yes":"no",String(n.usedCount)])});}catch(a){h$1(a);}}),i$1.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 a=await b(yt,{input:Vt(e)});k$1(`Promo code created: ${a.eventfullyManagedCreatePromoCode.code}`),i(e,a.eventfullyManagedCreatePromoCode);}catch(a){h$1(a);}}),i$1.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,a)=>{try{let n=await b(vt,{id:e,input:Vt(a)});k$1("Promo code updated"),i(a,n.eventfullyManagedUpdatePromoCode);}catch(n){h$1(n);}}),i$1.command("remove").description("Delete a promo code").argument("<id>","Promo code ID").option("-f, --format <format>","Output format").action(async(e,a)=>{try{let n=await b(Et,{id:e});k$1(n.eventfullyManagedDeletePromoCode?"Promo code deleted":"Promo code not deleted"),i(a,{deleted:n.eventfullyManagedDeletePromoCode});}catch(n){h$1(n);}});}function Jt(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 a=await b(It,{workspaceId:e.workspace});i(e,a.eventfullyManagedDashboardSummary);}catch(a){h$1(a);}});}var zt={id:"eventfullymanaged",version:"1.0.0",displayName:"Eventfullymanaged",dependsOn:["auth","workspaces"],register(t,i){a(i);let e=t.command("eventfullymanaged").description("Eventfullymanaged event-management platform");kt(e),Ot(e),Tt(e),ht(e),bt(e),Mt(e),Lt(e),Pt(e),_t(e),qt(e),Ft(e),Jt(e);}},He=zt;export{He as default};
@@ -1,4 +1,4 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var promises=require('fs/promises');var s=class extends Error{exitCode;hint;constructor(r,a){super(r),this.name="CliUserError",this.exitCode=a?.exitCode??1,this.hint=a?.hint;}},E=class extends s{constructor(r,a){super(r,{exitCode:2,hint:a?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},x=class extends Error{cause;constructor(r,a){super(r),this.name="CliInternalError",this.cause=a;}};var y=null;function k(o){y=o;}function f(){if(!y)throw new x("vibecontrols module helpers used before setHelpersContext was called");return y}function tt(){let o=f();if(!o.auth.isAuthenticated())throw new E("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function c(o,r){return tt(),f().gql.workspace.request(o,r)}function p(o){let r=o instanceof Error?o.message:String(o);throw new s(r)}function g(o,r,a){f().output.formatAndOutput(o,r,a);}function m(o){f().output.printSuccess(o);}function I(o){f().output.printInfo(o);}function A(o){return f().output.formatStatus(o)}function v(o){return f().output.formatDate(o)}function O(o,r){return f().output.truncate(o,r)}function $(){return f()}var P=`
1
+ 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var promises=require('fs/promises');var s=class extends Error{exitCode;hint;constructor(r,a){super(r),this.name="CliUserError",this.exitCode=a?.exitCode??1,this.hint=a?.hint;}},E=class extends s{constructor(r,a){super(r,{exitCode:2,hint:a?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},x=class extends Error{cause;constructor(r,a){super(r),this.name="CliInternalError",this.cause=a;}};var y=null;function k(o){y=o;}function g(){if(!y)throw new x("vibecontrols module helpers used before setHelpersContext was called");return y}function tt(){let o=g();if(!o.auth.isAuthenticated())throw new E("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function c(o,r){return tt(),g().gql.workspace.request(o,r)}function p(o){let r=o instanceof Error?o.message:String(o);throw new s(r)}function f(o,r,a){g().output.formatAndOutput(o,r,a);}function m(o){g().output.printSuccess(o);}function I(o){g().output.printInfo(o);}function A(o){return g().output.formatStatus(o)}function v(o){return g().output.formatDate(o)}function O(o,r){return g().output.truncate(o,r)}function $(){return g()}var S=`
2
2
  query ListExportJobs($context: ContextInput!, $filter: ExportJobFilterInput, $pagination: ExportPaginationInput) {
3
3
  listExportJobs(context: $context, filter: $filter, pagination: $pagination) {
4
4
  edges { node {
@@ -8,14 +8,14 @@
8
8
  pageInfo { totalCount hasNextPage }
9
9
  }
10
10
  }
11
- `,T=`
11
+ `,h=`
12
12
  query GetExportJob($context: ContextInput, $id: ID!) {
13
13
  getExportJob(context: $context, id: $id) {
14
14
  id name status progress
15
15
  downloadUrl downloadExpiresAt totalSizeBytes
16
16
  }
17
17
  }
18
- `,S=`
18
+ `,P=`
19
19
  mutation CreateExportJob($context: ContextInput!, $input: CreateExportJobInput!) {
20
20
  createExportJob(context: $context, input: $input) {
21
21
  id status progress entityTypes
@@ -92,4 +92,4 @@
92
92
  downloadUrl downloadExpiresAt
93
93
  }
94
94
  }
95
- `;function d(){let o=$().auth.read();if(!o?.workspaceId)throw new s("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:o.workspaceId}}function F(o){let r=o.command("export").description("Workspace data export jobs"),a=r.command("jobs").description("Export job lifecycle");a.command("list").description("List export jobs").option("--status <s>").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e={};t.status&&(e.status=t.status.toUpperCase());let i=(await c(P,{context:d(),filter:Object.keys(e).length?e:void 0,pagination:{first:t.limit}})).listExportJobs.edges.map(l=>l.node);g(t,i,{headers:["ID","Name","Status","Progress","Started"],rows:i.map(l=>[O(l.id,12),l.name??"-",A(l.status),`${l.processedEntities??0}/${l.totalEntities??"-"}`,v(l.startedAt)])});}catch(e){p(e);}}),a.command("get").description("Get an export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(T,{context:d(),id:t});if(!n.getExportJob)throw new s(`Export job ${t} not found`);g(e,n.getExportJob);}catch(n){p(n);}}),a.command("create").description("Create an export job").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV|ZIP","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("--from <iso>","Date range start").option("--to <iso>","Date range end").option("-f, --format-output <format>").action(async t=>{try{let e={name:t.name,entityTypes:t.types.split(","),format:(t.format??"JSON").toUpperCase(),includeMedia:!!t.includeMedia,includeMetadata:t.includeMetadata!==!1,dateRangeStart:t.from,dateRangeEnd:t.to},n=await c(S,{context:d(),input:e});m(`Export job created: ${n.createExportJob.id}`),g({format:t.formatOutput},n.createExportJob);}catch(e){p(e);}}),a.command("cancel").description("Cancel a running export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(_,{context:d(),id:t});m(`Export job cancelled: ${n.cancelExportJob.id}`),g(e,n.cancelExportJob);}catch(n){p(n);}}),a.command("delete").description("Delete an export job").argument("<id>").action(async t=>{try{if(!(await c(L,{context:d(),id:t})).deleteExportJob)throw new s(`Failed to delete export job ${t}`);m(`Export job deleted: ${t}`);}catch(e){p(e);}}),a.command("retry").description("Retry a failed export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(N,{context:d(),id:t});m(`Export job retry queued: ${n.retryExportJob.id}`),g(e,n.retryExportJob);}catch(n){p(n);}}),r.command("entities").description("List entity types available for export").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let n=(await c(j,{context:d(),pagination:{first:t.limit}})).getAvailableExportEntities.edges.map(i=>i.node);g(t,n,{headers:["Type","Display","Enabled","DateRange","Media","Size"],rows:n.map(i=>[i.entityType,i.displayName,i.enabled?"yes":"no",i.supportsDateRange?"yes":"no",i.supportsMediaExport?"yes":"no",i.estimatedSize??"-"])});}catch(e){p(e);}}),r.command("part").description("Get an export part by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(G,{context:d(),id:t});if(!n.getExportPart)throw new s(`Export part ${t} not found`);g(e,n.getExportPart);}catch(n){p(n);}}),r.command("download").description("Download a completed export job to a local path").argument("<jobId>").requiredOption("--to <path>","Local file path to write").action(async(t,e)=>{try{let n=await c(T,{context:d(),id:t});if(!n.getExportJob)throw new s(`Export job ${t} not found`);let i=n.getExportJob.downloadUrl;if(!i)throw new s(`Job ${t} has no downloadUrl yet (status=${n.getExportJob.status??"UNKNOWN"}).`);I(`Downloading from ${i}`);let l=await fetch(i);if(!l.ok)throw new s(`Download failed: ${l.status} ${l.statusText}`);let h=Buffer.from(await l.arrayBuffer());await promises.writeFile(e.to,h),m(`Saved ${h.length} bytes to ${e.to}`);}catch(n){p(n);}});let w=r.command("templates").description("Export templates");w.command("list").description("List export templates").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e=await c(R,{context:d(),pagination:{first:t.limit}});g(t,e.listExportTemplates.edges.map(n=>n.node));}catch(e){p(e);}}),w.command("get").description("Get an export template").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(D,{context:d(),id:t});if(!n.getExportTemplate)throw new s(`Template ${t} not found`);g(e,n.getExportTemplate);}catch(n){p(n);}}),w.command("create").description("Create an export template").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--description <s>").option("--format <fmt>","JSON|CSV","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("-f, --format-output <format>").action(async t=>{try{let e={name:t.name,entityTypes:t.types.split(","),format:(t.format??"JSON").toUpperCase(),includeMedia:!!t.includeMedia,includeMetadata:t.includeMetadata!==!1};t.description&&(e.description=t.description);let n=await c(q,{context:d(),input:e});m(`Template created: ${n.createExportTemplate.id}`),g({format:t.formatOutput},n.createExportTemplate);}catch(e){p(e);}}),w.command("update").description("Update an export template").argument("<id>").option("--name <s>").option("--description <s>").option("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV").option("--include-media <bool>","true|false").option("--include-metadata <bool>","true|false").option("--default <bool>","Set isDefault: true|false").option("-f, --format-output <format>").action(async(t,e)=>{try{let n={};e.name&&(n.name=e.name),e.description&&(n.description=e.description),e.types&&(n.entityTypes=e.types.split(",")),e.format&&(n.format=e.format.toUpperCase()),e.includeMedia!==void 0&&(n.includeMedia=e.includeMedia==="true"),e.includeMetadata!==void 0&&(n.includeMetadata=e.includeMetadata==="true"),e.default!==void 0&&(n.isDefault=e.default==="true");let i=await c(M,{context:d(),id:t,input:n});m(`Template updated: ${i.updateExportTemplate.id}`),g({format:e.formatOutput},i.updateExportTemplate);}catch(n){p(n);}}),w.command("delete").description("Delete an export template").argument("<id>").action(async t=>{try{if(!(await c(J,{context:d(),id:t})).deleteExportTemplate)throw new s(`Failed to delete template ${t}`);m(`Template deleted: ${t}`);}catch(e){p(e);}});}var ot={id:"export",version:"1.0.0",displayName:"Export",dependsOn:["auth","workspaces"],register(o,r){k(r),F(o);}},fe=ot;module.exports=fe;
95
+ `;function d(){let o=$().auth.read();if(!o?.workspaceId)throw new s("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:o.workspaceId}}function F(o){let r=o.command("export").description("Workspace data export jobs"),a=r.command("jobs").description("Export job lifecycle");a.command("list").description("List export jobs").option("--status <s>").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e={};t.status&&(e.status=t.status.toUpperCase());let i=(await c(S,{context:d(),filter:Object.keys(e).length?e:void 0,pagination:{first:t.limit}})).listExportJobs.edges.map(l=>l.node);f(t,i,{headers:["ID","Name","Status","Progress","Started"],rows:i.map(l=>[O(l.id,12),l.name??"-",A(l.status),`${l.processedEntities??0}/${l.totalEntities??"-"}`,v(l.startedAt)])});}catch(e){p(e);}}),a.command("get").description("Get an export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(h,{context:d(),id:t});if(!n.getExportJob)throw new s(`Export job ${t} not found`);f(e,n.getExportJob);}catch(n){p(n);}}),a.command("create").description("Create an export job").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV|ZIP","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("--from <iso>","Date range start").option("--to <iso>","Date range end").option("-f, --format-output <format>").action(async t=>{try{let e={name:t.name,entityTypes:t.types.split(","),format:(t.format??"JSON").toUpperCase(),includeMedia:!!t.includeMedia,includeMetadata:t.includeMetadata!==!1,dateRangeStart:t.from,dateRangeEnd:t.to},n=await c(P,{context:d(),input:e});m(`Export job created: ${n.createExportJob.id}`),f({format:t.formatOutput},n.createExportJob);}catch(e){p(e);}}),a.command("cancel").description("Cancel a running export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(_,{context:d(),id:t});m(`Export job cancelled: ${n.cancelExportJob.id}`),f(e,n.cancelExportJob);}catch(n){p(n);}}),a.command("delete").description("Delete an export job").argument("<id>").action(async t=>{try{if(!(await c(L,{context:d(),id:t})).deleteExportJob)throw new s(`Failed to delete export job ${t}`);m(`Export job deleted: ${t}`);}catch(e){p(e);}}),a.command("retry").description("Retry a failed export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(N,{context:d(),id:t});m(`Export job retry queued: ${n.retryExportJob.id}`),f(e,n.retryExportJob);}catch(n){p(n);}}),r.command("entities").description("List entity types available for export").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let n=(await c(j,{context:d(),pagination:{first:t.limit}})).getAvailableExportEntities.edges.map(i=>i.node);f(t,n,{headers:["Type","Display","Enabled","DateRange","Media","Size"],rows:n.map(i=>[i.entityType,i.displayName,i.enabled?"yes":"no",i.supportsDateRange?"yes":"no",i.supportsMediaExport?"yes":"no",i.estimatedSize??"-"])});}catch(e){p(e);}}),r.command("part").description("Get an export part by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(G,{context:d(),id:t});if(!n.getExportPart)throw new s(`Export part ${t} not found`);f(e,n.getExportPart);}catch(n){p(n);}}),r.command("download").description("Download a completed export job to a local path").argument("<jobId>").requiredOption("--to <path>","Local file path to write").action(async(t,e)=>{try{let n=await c(h,{context:d(),id:t});if(!n.getExportJob)throw new s(`Export job ${t} not found`);let i=n.getExportJob.downloadUrl;if(!i)throw new s(`Job ${t} has no downloadUrl yet (status=${n.getExportJob.status??"UNKNOWN"}).`);I(`Downloading from ${i}`);let l=await fetch(i);if(!l.ok)throw new s(`Download failed: ${l.status} ${l.statusText}`);let T=Buffer.from(await l.arrayBuffer());await promises.writeFile(e.to,T),m(`Saved ${T.length} bytes to ${e.to}`);}catch(n){p(n);}});let w=r.command("templates").description("Export templates");w.command("list").description("List export templates").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e=await c(R,{context:d(),pagination:{first:t.limit}});f(t,e.listExportTemplates.edges.map(n=>n.node));}catch(e){p(e);}}),w.command("get").description("Get an export template").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(D,{context:d(),id:t});if(!n.getExportTemplate)throw new s(`Template ${t} not found`);f(e,n.getExportTemplate);}catch(n){p(n);}}),w.command("create").description("Create an export template").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--description <s>").option("--format <fmt>","JSON|CSV","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("-f, --format-output <format>").action(async t=>{try{let e={name:t.name,entityTypes:t.types.split(","),format:(t.format??"JSON").toUpperCase(),includeMedia:!!t.includeMedia,includeMetadata:t.includeMetadata!==!1};t.description&&(e.description=t.description);let n=await c(q,{context:d(),input:e});m(`Template created: ${n.createExportTemplate.id}`),f({format:t.formatOutput},n.createExportTemplate);}catch(e){p(e);}}),w.command("update").description("Update an export template").argument("<id>").option("--name <s>").option("--description <s>").option("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV").option("--include-media <bool>","true|false").option("--include-metadata <bool>","true|false").option("--default <bool>","Set isDefault: true|false").option("-f, --format-output <format>").action(async(t,e)=>{try{let n={};e.name&&(n.name=e.name),e.description&&(n.description=e.description),e.types&&(n.entityTypes=e.types.split(",")),e.format&&(n.format=e.format.toUpperCase()),e.includeMedia!==void 0&&(n.includeMedia=e.includeMedia==="true"),e.includeMetadata!==void 0&&(n.includeMetadata=e.includeMetadata==="true"),e.default!==void 0&&(n.isDefault=e.default==="true");let i=await c(M,{context:d(),id:t,input:n});m(`Template updated: ${i.updateExportTemplate.id}`),f({format:e.formatOutput},i.updateExportTemplate);}catch(n){p(n);}}),w.command("delete").description("Delete an export template").argument("<id>").action(async t=>{try{if(!(await c(J,{context:d(),id:t})).deleteExportTemplate)throw new s(`Failed to delete template ${t}`);m(`Template deleted: ${t}`);}catch(e){p(e);}});}var ot={id:"export",version:"1.0.0",displayName:"Export",dependsOn:["auth","workspaces"],register(o,r){k(r),F(o);}},ge=ot;module.exports=ge;