@burdenoff/cli-sdk 2026.627.1 → 2026.627.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/assethandler/index.cjs +255 -0
- package/dist/modules/assethandler/index.d.cts +7 -0
- package/dist/modules/assethandler/index.d.ts +7 -0
- package/dist/modules/assethandler/index.js +255 -0
- package/dist/modules/eventfullymanaged/index.cjs +247 -0
- package/dist/modules/eventfullymanaged/index.d.cts +7 -0
- package/dist/modules/eventfullymanaged/index.d.ts +7 -0
- package/dist/modules/eventfullymanaged/index.js +247 -0
- package/dist/modules/headshotmarketing/index.cjs +1083 -0
- package/dist/modules/headshotmarketing/index.d.cts +7 -0
- package/dist/modules/headshotmarketing/index.d.ts +7 -0
- package/dist/modules/headshotmarketing/index.js +1083 -0
- package/dist/modules/movethewheels/index.cjs +565 -0
- package/dist/modules/movethewheels/index.d.cts +7 -0
- package/dist/modules/movethewheels/index.d.ts +7 -0
- package/dist/modules/movethewheels/index.js +565 -0
- package/dist/modules/planmagnet/index.cjs +795 -0
- package/dist/modules/planmagnet/index.d.cts +7 -0
- package/dist/modules/planmagnet/index.d.ts +7 -0
- package/dist/modules/planmagnet/index.js +795 -0
- package/dist/modules/proserviceworld/index.cjs +193 -0
- package/dist/modules/proserviceworld/index.d.cts +7 -0
- package/dist/modules/proserviceworld/index.d.ts +7 -0
- package/dist/modules/proserviceworld/index.js +193 -0
- package/dist/modules/timecampus/index.cjs +444 -0
- package/dist/modules/timecampus/index.d.cts +7 -0
- package/dist/modules/timecampus/index.d.ts +7 -0
- package/dist/modules/timecampus/index.js +444 -0
- package/package.json +1 -1
|
@@ -0,0 +1,247 @@
|
|
|
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. Run \`${t.productName} auth login\`.`)}async function r(t,n){return re(),v().gql.workspace.request(t,n)}function a(t){let n=t instanceof Error?t.message:String(t);throw new m(n)}function s(t,n,e){v().output.formatAndOutput(t,n,e);}function c(t){v().output.printSuccess(t);}function E(t){return v().output.formatDate(t)}function u(t,n){return v().output.truncate(t,n)}var I=`
|
|
2
|
+
id name description type status visibility timezone startAt endAt capacity
|
|
3
|
+
metadata createdAt updatedAt workspaceId
|
|
4
|
+
`,N=`
|
|
5
|
+
query EventfullymanagedEvents($limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
|
|
6
|
+
eventfullyManagedEvents(limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
|
|
7
|
+
total
|
|
8
|
+
items { ${I} }
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`,P=`
|
|
12
|
+
query EventfullymanagedEvent($id: ID!) {
|
|
13
|
+
eventfullyManagedEvent(id: $id) { ${I} }
|
|
14
|
+
}
|
|
15
|
+
`,q=`
|
|
16
|
+
mutation EventfullymanagedCreateEvent($input: EventfullyManagedEventInput!) {
|
|
17
|
+
eventfullyManagedCreateEvent(input: $input) { ${I} }
|
|
18
|
+
}
|
|
19
|
+
`,_=`
|
|
20
|
+
mutation EventfullymanagedUpdateEvent($id: ID!, $input: EventfullyManagedEventInput!) {
|
|
21
|
+
eventfullyManagedUpdateEvent(id: $id, input: $input) { ${I} }
|
|
22
|
+
}
|
|
23
|
+
`,U=`
|
|
24
|
+
mutation EventfullymanagedDeleteEvent($id: ID!) {
|
|
25
|
+
eventfullyManagedDeleteEvent(id: $id)
|
|
26
|
+
}
|
|
27
|
+
`,k=`
|
|
28
|
+
id name description status capacity addressLine1 city state country postalCode
|
|
29
|
+
amenities openingHours pricing metadata createdAt updatedAt workspaceId
|
|
30
|
+
`,V=`
|
|
31
|
+
query EventfullymanagedVenues($limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
|
|
32
|
+
eventfullyManagedVenues(limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
|
|
33
|
+
total
|
|
34
|
+
items { ${k} }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`,F=`
|
|
38
|
+
query EventfullymanagedVenue($id: ID!) {
|
|
39
|
+
eventfullyManagedVenue(id: $id) { ${k} }
|
|
40
|
+
}
|
|
41
|
+
`,j=`
|
|
42
|
+
mutation EventfullymanagedCreateVenue($input: EventfullyManagedVenueInput!) {
|
|
43
|
+
eventfullyManagedCreateVenue(input: $input) { ${k} }
|
|
44
|
+
}
|
|
45
|
+
`,W=`
|
|
46
|
+
mutation EventfullymanagedUpdateVenue($id: ID!, $input: EventfullyManagedVenueInput!) {
|
|
47
|
+
eventfullyManagedUpdateVenue(id: $id, input: $input) { ${k} }
|
|
48
|
+
}
|
|
49
|
+
`,J=`
|
|
50
|
+
mutation EventfullymanagedDeleteVenue($id: ID!) {
|
|
51
|
+
eventfullyManagedDeleteVenue(id: $id)
|
|
52
|
+
}
|
|
53
|
+
`,C=`
|
|
54
|
+
id eventId name level logoUrl website contactName contactEmail contactPhone
|
|
55
|
+
metrics metadata createdAt updatedAt workspaceId
|
|
56
|
+
`,z=`
|
|
57
|
+
query EventfullymanagedSponsors($eventId: ID, $limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
|
|
58
|
+
eventfullyManagedSponsors(eventId: $eventId, limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
|
|
59
|
+
total
|
|
60
|
+
items { ${C} }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`,G=`
|
|
64
|
+
query EventfullymanagedSponsor($id: ID!) {
|
|
65
|
+
eventfullyManagedSponsor(id: $id) { ${C} }
|
|
66
|
+
}
|
|
67
|
+
`,H=`
|
|
68
|
+
mutation EventfullymanagedCreateSponsor($input: EventfullyManagedSponsorInput!) {
|
|
69
|
+
eventfullyManagedCreateSponsor(input: $input) { ${C} }
|
|
70
|
+
}
|
|
71
|
+
`,B=`
|
|
72
|
+
mutation EventfullymanagedUpdateSponsor($id: ID!, $input: EventfullyManagedSponsorInput!) {
|
|
73
|
+
eventfullyManagedUpdateSponsor(id: $id, input: $input) { ${C} }
|
|
74
|
+
}
|
|
75
|
+
`,K=`
|
|
76
|
+
mutation EventfullymanagedDeleteSponsor($id: ID!) {
|
|
77
|
+
eventfullyManagedDeleteSponsor(id: $id)
|
|
78
|
+
}
|
|
79
|
+
`,S=`
|
|
80
|
+
id eventId fullName email phone company role tags profile metadata
|
|
81
|
+
createdAt updatedAt workspaceId
|
|
82
|
+
`,Y=`
|
|
83
|
+
query EventfullymanagedAttendees($eventId: ID, $limit: Int, $offset: Int, $workspaceId: ID) {
|
|
84
|
+
eventfullyManagedAttendees(eventId: $eventId, limit: $limit, offset: $offset, workspaceId: $workspaceId) {
|
|
85
|
+
total
|
|
86
|
+
items { ${S} }
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
`,X=`
|
|
90
|
+
mutation EventfullymanagedCreateAttendee($input: EventfullyManagedAttendeeInput!) {
|
|
91
|
+
eventfullyManagedCreateAttendee(input: $input) { ${S} }
|
|
92
|
+
}
|
|
93
|
+
`,Q=`
|
|
94
|
+
mutation EventfullymanagedUpdateAttendee($id: ID!, $input: EventfullyManagedAttendeeInput!) {
|
|
95
|
+
eventfullyManagedUpdateAttendee(id: $id, input: $input) { ${S} }
|
|
96
|
+
}
|
|
97
|
+
`,T=`
|
|
98
|
+
id eventId title description sessionType track status startsAt endsAt
|
|
99
|
+
capacity venueId metadata createdAt updatedAt workspaceId
|
|
100
|
+
`,Z=`
|
|
101
|
+
query EventfullymanagedEventSessions($eventId: ID, $limit: Int, $offset: Int, $workspaceId: ID) {
|
|
102
|
+
eventfullyManagedEventSessions(eventId: $eventId, limit: $limit, offset: $offset, workspaceId: $workspaceId) {
|
|
103
|
+
total
|
|
104
|
+
items { ${T} }
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,tt=`
|
|
108
|
+
mutation EventfullymanagedCreateEventSession($input: EventfullyManagedEventSessionInput!) {
|
|
109
|
+
eventfullyManagedCreateEventSession(input: $input) { ${T} }
|
|
110
|
+
}
|
|
111
|
+
`,et=`
|
|
112
|
+
mutation EventfullymanagedUpdateEventSession($id: ID!, $input: EventfullyManagedEventSessionInput!) {
|
|
113
|
+
eventfullyManagedUpdateEventSession(id: $id, input: $input) { ${T} }
|
|
114
|
+
}
|
|
115
|
+
`,b=`
|
|
116
|
+
id eventId name description price currency capacity soldCount isActive
|
|
117
|
+
salesStartAt salesEndAt metadata createdAt updatedAt workspaceId
|
|
118
|
+
`,nt=`
|
|
119
|
+
query EventfullymanagedTicketTypes($eventId: ID, $limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
|
|
120
|
+
eventfullyManagedTicketTypes(eventId: $eventId, limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
|
|
121
|
+
total
|
|
122
|
+
items { ${b} }
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
`,ot=`
|
|
126
|
+
mutation EventfullymanagedCreateTicketType($input: EventfullyManagedTicketTypeInput!) {
|
|
127
|
+
eventfullyManagedCreateTicketType(input: $input) { ${b} }
|
|
128
|
+
}
|
|
129
|
+
`,it=`
|
|
130
|
+
mutation EventfullymanagedUpdateTicketType($id: ID!, $input: EventfullyManagedTicketTypeInput!) {
|
|
131
|
+
eventfullyManagedUpdateTicketType(id: $id, input: $input) { ${b} }
|
|
132
|
+
}
|
|
133
|
+
`,rt=`
|
|
134
|
+
mutation EventfullymanagedDeleteTicketType($id: ID!) {
|
|
135
|
+
eventfullyManagedDeleteTicketType(id: $id)
|
|
136
|
+
}
|
|
137
|
+
`,A=`
|
|
138
|
+
id eventId attendeeId ticketTypeId quantity status totalAmount currency
|
|
139
|
+
registeredAt checkedInAt metadata createdAt updatedAt workspaceId
|
|
140
|
+
`,at=`
|
|
141
|
+
query EventfullymanagedRegistrations($eventId: ID, $limit: Int, $offset: Int, $workspaceId: ID) {
|
|
142
|
+
eventfullyManagedRegistrations(eventId: $eventId, limit: $limit, offset: $offset, workspaceId: $workspaceId) {
|
|
143
|
+
total
|
|
144
|
+
items { ${A} }
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
`,st=`
|
|
148
|
+
mutation EventfullymanagedCreateRegistration($input: EventfullyManagedRegistrationInput!) {
|
|
149
|
+
eventfullyManagedCreateRegistration(input: $input) { ${A} }
|
|
150
|
+
}
|
|
151
|
+
`,dt=`
|
|
152
|
+
mutation EventfullymanagedUpdateRegistration($id: ID!, $input: EventfullyManagedRegistrationInput!) {
|
|
153
|
+
eventfullyManagedUpdateRegistration(id: $id, input: $input) { ${A} }
|
|
154
|
+
}
|
|
155
|
+
`,O=`
|
|
156
|
+
id fullName title organization bio email phone avatarUrl socialLinks
|
|
157
|
+
createdAt updatedAt workspaceId
|
|
158
|
+
`,ct=`
|
|
159
|
+
query EventfullymanagedSpeakers($limit: Int, $offset: Int, $workspaceId: ID) {
|
|
160
|
+
eventfullyManagedSpeakers(limit: $limit, offset: $offset, workspaceId: $workspaceId) {
|
|
161
|
+
total
|
|
162
|
+
items { ${O} }
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`,pt=`
|
|
166
|
+
mutation EventfullymanagedCreateSpeaker($input: EventfullyManagedSpeakerInput!) {
|
|
167
|
+
eventfullyManagedCreateSpeaker(input: $input) { ${O} }
|
|
168
|
+
}
|
|
169
|
+
`,ut=`
|
|
170
|
+
mutation EventfullymanagedUpdateSpeaker($id: ID!, $input: EventfullyManagedSpeakerInput!) {
|
|
171
|
+
eventfullyManagedUpdateSpeaker(id: $id, input: $input) { ${O} }
|
|
172
|
+
}
|
|
173
|
+
`,D=`
|
|
174
|
+
id eventId name boothCode category contactName contactEmail status metadata
|
|
175
|
+
createdAt updatedAt workspaceId
|
|
176
|
+
`,lt=`
|
|
177
|
+
query EventfullymanagedExhibitors($eventId: ID, $limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
|
|
178
|
+
eventfullyManagedExhibitors(eventId: $eventId, limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
|
|
179
|
+
total
|
|
180
|
+
items { ${D} }
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
`,mt=`
|
|
184
|
+
mutation EventfullymanagedCreateExhibitor($input: EventfullyManagedExhibitorInput!) {
|
|
185
|
+
eventfullyManagedCreateExhibitor(input: $input) { ${D} }
|
|
186
|
+
}
|
|
187
|
+
`,gt=`
|
|
188
|
+
mutation EventfullymanagedUpdateExhibitor($id: ID!, $input: EventfullyManagedExhibitorInput!) {
|
|
189
|
+
eventfullyManagedUpdateExhibitor(id: $id, input: $input) { ${D} }
|
|
190
|
+
}
|
|
191
|
+
`,ft=`
|
|
192
|
+
mutation EventfullymanagedDeleteExhibitor($id: ID!) {
|
|
193
|
+
eventfullyManagedDeleteExhibitor(id: $id)
|
|
194
|
+
}
|
|
195
|
+
`,x=`
|
|
196
|
+
id eventId attendeeName attendeeEmail exhibitorId sponsorId status score
|
|
197
|
+
notes capturedAt metadata createdAt updatedAt workspaceId
|
|
198
|
+
`,yt=`
|
|
199
|
+
query EventfullymanagedLeads($eventId: ID, $limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
|
|
200
|
+
eventfullyManagedLeads(eventId: $eventId, limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
|
|
201
|
+
total
|
|
202
|
+
items { ${x} }
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
`,vt=`
|
|
206
|
+
mutation EventfullymanagedCreateLead($input: EventfullyManagedLeadInput!) {
|
|
207
|
+
eventfullyManagedCreateLead(input: $input) { ${x} }
|
|
208
|
+
}
|
|
209
|
+
`,Et=`
|
|
210
|
+
mutation EventfullymanagedUpdateLead($id: ID!, $input: EventfullyManagedLeadInput!) {
|
|
211
|
+
eventfullyManagedUpdateLead(id: $id, input: $input) { ${x} }
|
|
212
|
+
}
|
|
213
|
+
`,It=`
|
|
214
|
+
mutation EventfullymanagedDeleteLead($id: ID!) {
|
|
215
|
+
eventfullyManagedDeleteLead(id: $id)
|
|
216
|
+
}
|
|
217
|
+
`,$=`
|
|
218
|
+
id eventId code description discountType discountValue maxUses usedCount
|
|
219
|
+
isActive startsAt endsAt metadata createdAt updatedAt workspaceId
|
|
220
|
+
`,kt=`
|
|
221
|
+
query EventfullymanagedPromoCodes($eventId: ID, $limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
|
|
222
|
+
eventfullyManagedPromoCodes(eventId: $eventId, limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
|
|
223
|
+
total
|
|
224
|
+
items { ${$} }
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
`,Ct=`
|
|
228
|
+
mutation EventfullymanagedCreatePromoCode($input: EventfullyManagedPromoCodeInput!) {
|
|
229
|
+
eventfullyManagedCreatePromoCode(input: $input) { ${$} }
|
|
230
|
+
}
|
|
231
|
+
`,wt=`
|
|
232
|
+
mutation EventfullymanagedUpdatePromoCode($id: ID!, $input: EventfullyManagedPromoCodeInput!) {
|
|
233
|
+
eventfullyManagedUpdatePromoCode(id: $id, input: $input) { ${$} }
|
|
234
|
+
}
|
|
235
|
+
`,ht=`
|
|
236
|
+
mutation EventfullymanagedDeletePromoCode($id: ID!) {
|
|
237
|
+
eventfullyManagedDeletePromoCode(id: $id)
|
|
238
|
+
}
|
|
239
|
+
`,St=`
|
|
240
|
+
query EventfullymanagedDashboardSummary($workspaceId: ID) {
|
|
241
|
+
eventfullyManagedDashboardSummary(workspaceId: $workspaceId) {
|
|
242
|
+
activeEvents totalAttendees totalEvents totalRegistrations totalSponsors
|
|
243
|
+
totalVenues upcomingSessions
|
|
244
|
+
latestEvents { id name status type startAt endAt }
|
|
245
|
+
}
|
|
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 w(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(q,{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(_,{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 At(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=w(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 Ot(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:At({...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:At({...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=w(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 qt(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 _t(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:qt(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:qt(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(Ct,{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(wt,{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),Ot(e),xt(e),Mt(e),Lt(e),Pt(e),_t(e),Vt(e),jt(e),Jt(e),Gt(e),Ht(e);}},mo=ae;module.exports=mo;
|